commit 74e0c248a1e193a5ad80b653973a476d124bed2c Author: cirroskais Date: Mon Mar 18 14:46:25 2024 -0400 We testing out here diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cf7ff2f --- /dev/null +++ b/.gitignore @@ -0,0 +1,24 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +# dist +dist-ssr +*.local + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +.DS_Store +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..bdef820 --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,3 @@ +{ + "recommendations": ["svelte.svelte-vscode"] +} diff --git a/README.md b/README.md new file mode 100644 index 0000000..e6cd94f --- /dev/null +++ b/README.md @@ -0,0 +1,47 @@ +# Svelte + TS + Vite + +This template should help get you started developing with Svelte and TypeScript in Vite. + +## Recommended IDE Setup + +[VS Code](https://code.visualstudio.com/) + [Svelte](https://marketplace.visualstudio.com/items?itemName=svelte.svelte-vscode). + +## Need an official Svelte framework? + +Check out [SvelteKit](https://github.com/sveltejs/kit#readme), which is also powered by Vite. Deploy anywhere with its serverless-first approach and adapt to various platforms, with out of the box support for TypeScript, SCSS, and Less, and easily-added support for mdsvex, GraphQL, PostCSS, Tailwind CSS, and more. + +## Technical considerations + +**Why use this over SvelteKit?** + +- It brings its own routing solution which might not be preferable for some users. +- It is first and foremost a framework that just happens to use Vite under the hood, not a Vite app. + +This template contains as little as possible to get started with Vite + TypeScript + Svelte, while taking into account the developer experience with regards to HMR and intellisense. It demonstrates capabilities on par with the other `create-vite` templates and is a good starting point for beginners dipping their toes into a Vite + Svelte project. + +Should you later need the extended capabilities and extensibility provided by SvelteKit, the template has been structured similarly to SvelteKit so that it is easy to migrate. + +**Why `global.d.ts` instead of `compilerOptions.types` inside `jsconfig.json` or `tsconfig.json`?** + +Setting `compilerOptions.types` shuts out all other types not explicitly listed in the configuration. Using triple-slash references keeps the default TypeScript setting of accepting type information from the entire workspace, while also adding `svelte` and `vite/client` type information. + +**Why include `.vscode/extensions.json`?** + +Other templates indirectly recommend extensions via the README, but this file allows VS Code to prompt the user to install the recommended extension upon opening the project. + +**Why enable `allowJs` in the TS template?** + +While `allowJs: false` would indeed prevent the use of `.js` files in the project, it does not prevent the use of JavaScript syntax in `.svelte` files. In addition, it would force `checkJs: false`, bringing the worst of both worlds: not being able to guarantee the entire codebase is TypeScript, and also having worse typechecking for the existing JavaScript. In addition, there are valid use cases in which a mixed codebase may be relevant. + +**Why is HMR not preserving my local component state?** + +HMR state preservation comes with a number of gotchas! It has been disabled by default in both `svelte-hmr` and `@sveltejs/vite-plugin-svelte` due to its often surprising behavior. You can read the details [here](https://github.com/rixo/svelte-hmr#svelte-hmr). + +If you have state that's important to retain within a component, consider creating an external store which would not be replaced by HMR. + +```ts +// store.ts +// An extremely simple external store +import { writable } from 'svelte/store' +export default writable(0) +``` diff --git a/dist/assets/index-Bl40p7Gf.js b/dist/assets/index-Bl40p7Gf.js new file mode 100644 index 0000000..66f862d --- /dev/null +++ b/dist/assets/index-Bl40p7Gf.js @@ -0,0 +1 @@ +var Ms=Object.defineProperty;var ks=(e,t,n)=>t in e?Ms(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var kr=(e,t,n)=>(ks(e,typeof t!="symbol"?t+"":t,n),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const l of a.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();function Xt(){}function Li(e){return e()}function Ei(){return Object.create(null)}function gr(e){e.forEach(Li)}function Pi(e){return typeof e=="function"}function Us(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function Bs(e){return Object.keys(e).length===0}function Zs(e,t,n){e.insertBefore(t,n||null)}function Mi(e){e.parentNode&&e.parentNode.removeChild(e)}function Gs(e){return document.createElement(e)}function Vs(e){return Array.from(e.childNodes)}let Cr;function pn(e){Cr=e}const Ft=[],Ti=[];let zt=[];const bi=[],Hs=Promise.resolve();let Hr=!1;function js(){Hr||(Hr=!0,Hs.then(ki))}function jr(e){zt.push(e)}const Ur=new Set;let $t=0;function ki(){if($t!==0)return;const e=Cr;do{try{for(;$te.indexOf(r)===-1?t.push(r):n.push(r)),n.forEach(r=>r()),zt=t}const $s=new Set;function Fs(e,t){e&&e.i&&($s.delete(e),e.i(t))}function Ys(e,t,n){const{fragment:r,after_update:i}=e.$$;r&&r.m(t,n),jr(()=>{const a=e.$$.on_mount.map(Li).filter(Pi);e.$$.on_destroy?e.$$.on_destroy.push(...a):gr(a),e.$$.on_mount=[]}),i.forEach(jr)}function Xs(e,t){const n=e.$$;n.fragment!==null&&(Ks(n.after_update),gr(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function zs(e,t){e.$$.dirty[0]===-1&&(Ft.push(e),js(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<{const j=x.length?x[0]:A;return p.ctx&&i(p.ctx[g],p.ctx[g]=j)&&(!p.skip_bound&&p.bound[g]&&p.bound[g](j),f&&zs(e,g)),A}):[],p.update(),f=!0,gr(p.before_update),p.fragment=r?r(p.ctx):!1,t.target){if(t.hydrate){const g=Vs(t.target);p.fragment&&p.fragment.l(g),g.forEach(Mi)}else p.fragment&&p.fragment.c();t.intro&&Fs(e.$$.fragment),Ys(e,t.target,t.anchor),ki()}pn(h)}class Js{constructor(){kr(this,"$$");kr(this,"$$set")}$destroy(){Xs(this,1),this.$destroy=Xt}$on(t,n){if(!Pi(n))return Xt;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(n),()=>{const i=r.indexOf(n);i!==-1&&r.splice(i,1)}}$set(t){this.$$set&&!Bs(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Cs="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Cs);var Qn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ui(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Bi={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(h,p,f){this.fn=h,this.context=p,this.once=f||!1}function a(h,p,f,g,A){if(typeof f!="function")throw new TypeError("The listener must be a function");var x=new i(f,g||h,A),j=n?n+p:p;return h._events[j]?h._events[j].fn?h._events[j]=[h._events[j],x]:h._events[j].push(x):(h._events[j]=x,h._eventsCount++),h}function l(h,p){--h._eventsCount===0?h._events=new r:delete h._events[p]}function c(){this._events=new r,this._eventsCount=0}c.prototype.eventNames=function(){var p=[],f,g;if(this._eventsCount===0)return p;for(g in f=this._events)t.call(f,g)&&p.push(n?g.slice(1):g);return Object.getOwnPropertySymbols?p.concat(Object.getOwnPropertySymbols(f)):p},c.prototype.listeners=function(p){var f=n?n+p:p,g=this._events[f];if(!g)return[];if(g.fn)return[g.fn];for(var A=0,x=g.length,j=new Array(x);Ai;function t(i){}e.assertIs=t;function n(i){throw new Error}e.assertNever=n,e.arrayToEnum=i=>{const a={};for(const l of i)a[l]=l;return a},e.getValidEnumValues=i=>{const a=e.objectKeys(i).filter(c=>typeof i[i[c]]!="number"),l={};for(const c of a)l[c]=i[c];return e.objectValues(l)},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 l in i)Object.prototype.hasOwnProperty.call(i,l)&&a.push(l);return a},e.find=(i,a)=>{for(const l of i)if(a(l))return l},e.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&isFinite(i)&&Math.floor(i)===i;function r(i,a=" | "){return i.map(l=>typeof l=="string"?`'${l}'`:l).join(a)}e.joinValues=r,e.jsonStringifyReplacer=(i,a)=>typeof a=="bigint"?a.toString():a})(re||(re={}));var qr;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(qr||(qr={}));const L=re.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Et=e=>{switch(typeof e){case"undefined":return L.undefined;case"string":return L.string;case"number":return isNaN(e)?L.nan:L.number;case"boolean":return L.boolean;case"function":return L.function;case"bigint":return L.bigint;case"symbol":return L.symbol;case"object":return Array.isArray(e)?L.array:e===null?L.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?L.promise:typeof Map<"u"&&e instanceof Map?L.map:typeof Set<"u"&&e instanceof Set?L.set:typeof Date<"u"&&e instanceof Date?L.date:L.object;default:return L.unknown}},O=re.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"]),to=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class ze extends Error{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}get errors(){return this.issues}format(t){const n=t||function(a){return a.message},r={_errors:[]},i=a=>{for(const l of a.issues)if(l.code==="invalid_union")l.unionErrors.map(i);else if(l.code==="invalid_return_type")i(l.returnTypeError);else if(l.code==="invalid_arguments")i(l.argumentsError);else if(l.path.length===0)r._errors.push(n(l));else{let c=r,h=0;for(;hn.message){const n={},r=[];for(const i of this.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}}get formErrors(){return this.flatten()}}ze.create=e=>new ze(e);const hn=(e,t)=>{let n;switch(e.code){case O.invalid_type:e.received===L.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case O.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,re.jsonStringifyReplacer)}`;break;case O.unrecognized_keys:n=`Unrecognized key(s) in object: ${re.joinValues(e.keys,", ")}`;break;case O.invalid_union:n="Invalid input";break;case O.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${re.joinValues(e.options)}`;break;case O.invalid_enum_value:n=`Invalid enum value. Expected ${re.joinValues(e.options)}, received '${e.received}'`;break;case O.invalid_arguments:n="Invalid function arguments";break;case O.invalid_return_type:n="Invalid function return type";break;case O.invalid_date:n="Invalid date";break;case O.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}"`:re.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case O.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==="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 O.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 O.custom:n="Invalid input";break;case O.invalid_intersection_types:n="Intersection results could not be merged";break;case O.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case O.not_finite:n="Number must be finite";break;default:n=t.defaultError,re.assertNever(e)}return{message:n}};let Zi=hn;function no(e){Zi=e}function ir(){return Zi}const ar=e=>{const{data:t,path:n,errorMaps:r,issueData:i}=e,a=[...n,...i.path||[]],l={...i,path:a};let c="";const h=r.filter(p=>!!p).slice().reverse();for(const p of h)c=p(l,{data:t,defaultError:c}).message;return{...i,path:a,message:i.message||c}},ro=[];function P(e,t){const n=ar({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,ir(),hn].filter(r=>!!r)});e.common.issues.push(n)}class Re{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 X;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)r.push({key:await i.key,value:await i.value});return Re.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const i of n){const{key:a,value:l}=i;if(a.status==="aborted"||l.status==="aborted")return X;a.status==="dirty"&&t.dirty(),l.status==="dirty"&&t.dirty(),a.value!=="__proto__"&&(typeof l.value<"u"||i.alwaysSet)&&(r[a.value]=l.value)}return{status:t.value,value:r}}}const X=Object.freeze({status:"aborted"}),Gi=e=>({status:"dirty",value:e}),Me=e=>({status:"valid",value:e}),Kr=e=>e.status==="aborted",$r=e=>e.status==="dirty",gn=e=>e.status==="valid",sr=e=>typeof Promise<"u"&&e instanceof Promise;var V;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(V||(V={}));class tt{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||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Ai=(e,t)=>{if(gn(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 ze(e.common.issues);return this._error=n,this._error}}};function z(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:(l,c)=>l.code!=="invalid_type"?{message:c.defaultError}:typeof c.data>"u"?{message:r??c.defaultError}:{message:n??c.defaultError},description:i}}class W{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)}get description(){return this._def.description}_getType(t){return Et(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Et(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Re,ctx:{common:t.parent.common,data:t.data,parsedType:Et(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(sr(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){var r;const i={common:{issues:[],async:(r=n==null?void 0:n.async)!==null&&r!==void 0?r:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Et(t)},a=this._parseSync({data:t,path:i.path,parent:i});return Ai(i,a)}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==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Et(t)},i=this._parse({data:t,path:r.path,parent:r}),a=await(sr(i)?i:Promise.resolve(i));return Ai(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 l=t(i),c=()=>a.addIssue({code:O.custom,...r(i)});return typeof Promise<"u"&&l instanceof Promise?l.then(h=>h?!0:(c(),!1)):l?!0:(c(),!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 Je({schema:this,typeName:K.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return ht.create(this,this._def)}nullable(){return Gt.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return We.create(this,this._def)}promise(){return Ct.create(this,this._def)}or(t){return yn.create([this,t],this._def)}and(t){return En.create(this,t,this._def)}transform(t){return new Je({...z(this._def),schema:this,typeName:K.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new Sn({...z(this._def),innerType:this,defaultValue:n,typeName:K.ZodDefault})}brand(){return new Hi({typeName:K.ZodBranded,type:this,...z(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new cr({...z(this._def),innerType:this,catchValue:n,typeName:K.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return On.create(this,t)}readonly(){return pr.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const io=/^c[^\s-]{8,}$/i,ao=/^[a-z][a-z0-9]*$/,so=/^[0-9A-HJKMNP-TV-Z]{26}$/,oo=/^[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,lo=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,uo="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Br;const co=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,fo=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,po=e=>e.precision?e.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}Z$`):e.precision===0?e.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):e.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function ho(e,t){return!!((t==="v4"||!t)&&co.test(e)||(t==="v6"||!t)&&fo.test(e))}class Xe extends W{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==L.string){const a=this._getOrReturnCtx(t);return P(a,{code:O.invalid_type,expected:L.string,received:a.parsedType}),X}const r=new Re;let i;for(const a of this._def.checks)if(a.kind==="min")t.data.lengtha.value&&(i=this._getOrReturnCtx(t,i),P(i,{code:O.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),r.dirty());else if(a.kind==="length"){const l=t.data.length>a.value,c=t.data.lengtht.test(i),{validation:n,code:O.invalid_string,...V.errToObj(r)})}_addCheck(t){return new Xe({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...V.errToObj(t)})}url(t){return this._addCheck({kind:"url",...V.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...V.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...V.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...V.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...V.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...V.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...V.errToObj(t)})}datetime(t){var n;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(n=t==null?void 0:t.offset)!==null&&n!==void 0?n:!1,...V.errToObj(t==null?void 0:t.message)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...V.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...V.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...V.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...V.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...V.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...V.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...V.errToObj(n)})}nonempty(t){return this.min(1,V.errToObj(t))}trim(){return new Xe({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Xe({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Xe({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}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 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 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{var t;return new Xe({checks:[],typeName:K.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...z(e)})};function go(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r,a=parseInt(e.toFixed(i).replace(".","")),l=parseInt(t.toFixed(i).replace(".",""));return a%l/Math.pow(10,i)}class At extends W{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)!==L.number){const a=this._getOrReturnCtx(t);return P(a,{code:O.invalid_type,expected:L.number,received:a.parsedType}),X}let r;const i=new Re;for(const a of this._def.checks)a.kind==="int"?re.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),P(r,{code:O.invalid_type,expected:"integer",received:"float",message:a.message}),i.dirty()):a.kind==="min"?(a.inclusive?t.dataa.value:t.data>=a.value)&&(r=this._getOrReturnCtx(t,r),P(r,{code:O.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),i.dirty()):a.kind==="multipleOf"?go(t.data,a.value)!==0&&(r=this._getOrReturnCtx(t,r),P(r,{code:O.not_multiple_of,multipleOf:a.value,message:a.message}),i.dirty()):a.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),P(r,{code:O.not_finite,message:a.message}),i.dirty()):re.assertNever(a);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,V.toString(n))}gt(t,n){return this.setLimit("min",t,!1,V.toString(n))}lte(t,n){return this.setLimit("max",t,!0,V.toString(n))}lt(t,n){return this.setLimit("max",t,!1,V.toString(n))}setLimit(t,n,r,i){return new At({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:V.toString(i)}]})}_addCheck(t){return new At({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:V.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:V.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:V.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:V.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:V.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:V.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:V.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:V.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:V.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.valuet.kind==="int"||t.kind==="multipleOf"&&re.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.valuenew At({checks:[],typeName:K.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...z(e)});class wt extends W{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==L.bigint){const a=this._getOrReturnCtx(t);return P(a,{code:O.invalid_type,expected:L.bigint,received:a.parsedType}),X}let r;const i=new Re;for(const a of this._def.checks)a.kind==="min"?(a.inclusive?t.dataa.value:t.data>=a.value)&&(r=this._getOrReturnCtx(t,r),P(r,{code:O.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),P(r,{code:O.not_multiple_of,multipleOf:a.value,message:a.message}),i.dirty()):re.assertNever(a);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,V.toString(n))}gt(t,n){return this.setLimit("min",t,!1,V.toString(n))}lte(t,n){return this.setLimit("max",t,!0,V.toString(n))}lt(t,n){return this.setLimit("max",t,!1,V.toString(n))}setLimit(t,n,r,i){return new wt({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:V.toString(i)}]})}_addCheck(t){return new wt({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:V.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:V.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:V.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:V.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:V.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{var t;return new wt({checks:[],typeName:K.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...z(e)})};class mn extends W{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==L.boolean){const r=this._getOrReturnCtx(t);return P(r,{code:O.invalid_type,expected:L.boolean,received:r.parsedType}),X}return Me(t.data)}}mn.create=e=>new mn({typeName:K.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...z(e)});class Bt extends W{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==L.date){const a=this._getOrReturnCtx(t);return P(a,{code:O.invalid_type,expected:L.date,received:a.parsedType}),X}if(isNaN(t.data.getTime())){const a=this._getOrReturnCtx(t);return P(a,{code:O.invalid_date}),X}const r=new Re;let i;for(const a of this._def.checks)a.kind==="min"?t.data.getTime()a.value&&(i=this._getOrReturnCtx(t,i),P(i,{code:O.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),r.dirty()):re.assertNever(a);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Bt({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:V.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:V.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.valuenew Bt({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:K.ZodDate,...z(e)});class or extends W{_parse(t){if(this._getType(t)!==L.symbol){const r=this._getOrReturnCtx(t);return P(r,{code:O.invalid_type,expected:L.symbol,received:r.parsedType}),X}return Me(t.data)}}or.create=e=>new or({typeName:K.ZodSymbol,...z(e)});class _n extends W{_parse(t){if(this._getType(t)!==L.undefined){const r=this._getOrReturnCtx(t);return P(r,{code:O.invalid_type,expected:L.undefined,received:r.parsedType}),X}return Me(t.data)}}_n.create=e=>new _n({typeName:K.ZodUndefined,...z(e)});class vn extends W{_parse(t){if(this._getType(t)!==L.null){const r=this._getOrReturnCtx(t);return P(r,{code:O.invalid_type,expected:L.null,received:r.parsedType}),X}return Me(t.data)}}vn.create=e=>new vn({typeName:K.ZodNull,...z(e)});class Jt extends W{constructor(){super(...arguments),this._any=!0}_parse(t){return Me(t.data)}}Jt.create=e=>new Jt({typeName:K.ZodAny,...z(e)});class kt extends W{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Me(t.data)}}kt.create=e=>new kt({typeName:K.ZodUnknown,...z(e)});class mt extends W{_parse(t){const n=this._getOrReturnCtx(t);return P(n,{code:O.invalid_type,expected:L.never,received:n.parsedType}),X}}mt.create=e=>new mt({typeName:K.ZodNever,...z(e)});class lr extends W{_parse(t){if(this._getType(t)!==L.undefined){const r=this._getOrReturnCtx(t);return P(r,{code:O.invalid_type,expected:L.void,received:r.parsedType}),X}return Me(t.data)}}lr.create=e=>new lr({typeName:K.ZodVoid,...z(e)});class We extends W{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),i=this._def;if(n.parsedType!==L.array)return P(n,{code:O.invalid_type,expected:L.array,received:n.parsedType}),X;if(i.exactLength!==null){const l=n.data.length>i.exactLength.value,c=n.data.lengthi.maxLength.value&&(P(n,{code:O.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((l,c)=>i.type._parseAsync(new tt(n,l,n.path,c)))).then(l=>Re.mergeArray(r,l));const a=[...n.data].map((l,c)=>i.type._parseSync(new tt(n,l,n.path,c)));return Re.mergeArray(r,a)}get element(){return this._def.type}min(t,n){return new We({...this._def,minLength:{value:t,message:V.toString(n)}})}max(t,n){return new We({...this._def,maxLength:{value:t,message:V.toString(n)}})}length(t,n){return new We({...this._def,exactLength:{value:t,message:V.toString(n)}})}nonempty(t){return this.min(1,t)}}We.create=(e,t)=>new We({type:e,minLength:null,maxLength:null,exactLength:null,typeName:K.ZodArray,...z(t)});function Yt(e){if(e instanceof he){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=ht.create(Yt(r))}return new he({...e._def,shape:()=>t})}else return e instanceof We?new We({...e._def,type:Yt(e.element)}):e instanceof ht?ht.create(Yt(e.unwrap())):e instanceof Gt?Gt.create(Yt(e.unwrap())):e instanceof nt?nt.create(e.items.map(t=>Yt(t))):e}class he extends W{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=re.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==L.object){const p=this._getOrReturnCtx(t);return P(p,{code:O.invalid_type,expected:L.object,received:p.parsedType}),X}const{status:r,ctx:i}=this._processInputParams(t),{shape:a,keys:l}=this._getCached(),c=[];if(!(this._def.catchall instanceof mt&&this._def.unknownKeys==="strip"))for(const p in i.data)l.includes(p)||c.push(p);const h=[];for(const p of l){const f=a[p],g=i.data[p];h.push({key:{status:"valid",value:p},value:f._parse(new tt(i,g,i.path,p)),alwaysSet:p in i.data})}if(this._def.catchall instanceof mt){const p=this._def.unknownKeys;if(p==="passthrough")for(const f of c)h.push({key:{status:"valid",value:f},value:{status:"valid",value:i.data[f]}});else if(p==="strict")c.length>0&&(P(i,{code:O.unrecognized_keys,keys:c}),r.dirty());else if(p!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const p=this._def.catchall;for(const f of c){const g=i.data[f];h.push({key:{status:"valid",value:f},value:p._parse(new tt(i,g,i.path,f)),alwaysSet:f in i.data})}}return i.common.async?Promise.resolve().then(async()=>{const p=[];for(const f of h){const g=await f.key;p.push({key:g,value:await f.value,alwaysSet:f.alwaysSet})}return p}).then(p=>Re.mergeObjectSync(r,p)):Re.mergeObjectSync(r,h)}get shape(){return this._def.shape()}strict(t){return V.errToObj,new he({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var i,a,l,c;const h=(l=(a=(i=this._def).errorMap)===null||a===void 0?void 0:a.call(i,n,r).message)!==null&&l!==void 0?l:r.defaultError;return n.code==="unrecognized_keys"?{message:(c=V.errToObj(t).message)!==null&&c!==void 0?c:h}:{message:h}}}:{}})}strip(){return new he({...this._def,unknownKeys:"strip"})}passthrough(){return new he({...this._def,unknownKeys:"passthrough"})}extend(t){return new he({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new he({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:K.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new he({...this._def,catchall:t})}pick(t){const n={};return re.objectKeys(t).forEach(r=>{t[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new he({...this._def,shape:()=>n})}omit(t){const n={};return re.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new he({...this._def,shape:()=>n})}deepPartial(){return Yt(this)}partial(t){const n={};return re.objectKeys(this.shape).forEach(r=>{const i=this.shape[r];t&&!t[r]?n[r]=i:n[r]=i.optional()}),new he({...this._def,shape:()=>n})}required(t){const n={};return re.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let a=this.shape[r];for(;a instanceof ht;)a=a._def.innerType;n[r]=a}}),new he({...this._def,shape:()=>n})}keyof(){return Vi(re.objectKeys(this.shape))}}he.create=(e,t)=>new he({shape:()=>e,unknownKeys:"strip",catchall:mt.create(),typeName:K.ZodObject,...z(t)});he.strictCreate=(e,t)=>new he({shape:()=>e,unknownKeys:"strict",catchall:mt.create(),typeName:K.ZodObject,...z(t)});he.lazycreate=(e,t)=>new he({shape:e,unknownKeys:"strip",catchall:mt.create(),typeName:K.ZodObject,...z(t)});class yn extends W{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function i(a){for(const c of a)if(c.result.status==="valid")return c.result;for(const c of a)if(c.result.status==="dirty")return n.common.issues.push(...c.ctx.common.issues),c.result;const l=a.map(c=>new ze(c.ctx.common.issues));return P(n,{code:O.invalid_union,unionErrors:l}),X}if(n.common.async)return Promise.all(r.map(async a=>{const l={...n,common:{...n.common,issues:[]},parent:null};return{result:await a._parseAsync({data:n.data,path:n.path,parent:l}),ctx:l}})).then(i);{let a;const l=[];for(const h of r){const p={...n,common:{...n.common,issues:[]},parent:null},f=h._parseSync({data:n.data,path:n.path,parent:p});if(f.status==="valid")return f;f.status==="dirty"&&!a&&(a={result:f,ctx:p}),p.common.issues.length&&l.push(p.common.issues)}if(a)return n.common.issues.push(...a.ctx.common.issues),a.result;const c=l.map(h=>new ze(h));return P(n,{code:O.invalid_union,unionErrors:c}),X}}get options(){return this._def.options}}yn.create=(e,t)=>new yn({options:e,typeName:K.ZodUnion,...z(t)});const rr=e=>e instanceof bn?rr(e.schema):e instanceof Je?rr(e.innerType()):e instanceof An?[e.value]:e instanceof St?e.options:e instanceof wn?Object.keys(e.enum):e instanceof Sn?rr(e._def.innerType):e instanceof _n?[void 0]:e instanceof vn?[null]:null;class mr extends W{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==L.object)return P(n,{code:O.invalid_type,expected:L.object,received:n.parsedType}),X;const r=this.discriminator,i=n.data[r],a=this.optionsMap.get(i);return a?n.common.async?a._parseAsync({data:n.data,path:n.path,parent:n}):a._parseSync({data:n.data,path:n.path,parent:n}):(P(n,{code:O.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),X)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const i=new Map;for(const a of n){const l=rr(a.shape[t]);if(!l)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const c of l){if(i.has(c))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(c)}`);i.set(c,a)}}return new mr({typeName:K.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:i,...z(r)})}}function Fr(e,t){const n=Et(e),r=Et(t);if(e===t)return{valid:!0,data:e};if(n===L.object&&r===L.object){const i=re.objectKeys(t),a=re.objectKeys(e).filter(c=>i.indexOf(c)!==-1),l={...e,...t};for(const c of a){const h=Fr(e[c],t[c]);if(!h.valid)return{valid:!1};l[c]=h.data}return{valid:!0,data:l}}else if(n===L.array&&r===L.array){if(e.length!==t.length)return{valid:!1};const i=[];for(let a=0;a{if(Kr(a)||Kr(l))return X;const c=Fr(a.value,l.value);return c.valid?(($r(a)||$r(l))&&n.dirty(),{status:n.value,value:c.data}):(P(r,{code:O.invalid_intersection_types}),X)};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,l])=>i(a,l)):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}))}}En.create=(e,t,n)=>new En({left:e,right:t,typeName:K.ZodIntersection,...z(n)});class nt extends W{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==L.array)return P(r,{code:O.invalid_type,expected:L.array,received:r.parsedType}),X;if(r.data.lengththis._def.items.length&&(P(r,{code:O.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const a=[...r.data].map((l,c)=>{const h=this._def.items[c]||this._def.rest;return h?h._parse(new tt(r,l,r.path,c)):null}).filter(l=>!!l);return r.common.async?Promise.all(a).then(l=>Re.mergeArray(n,l)):Re.mergeArray(n,a)}get items(){return this._def.items}rest(t){return new nt({...this._def,rest:t})}}nt.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new nt({items:e,typeName:K.ZodTuple,rest:null,...z(t)})};class Tn extends W{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!==L.object)return P(r,{code:O.invalid_type,expected:L.object,received:r.parsedType}),X;const i=[],a=this._def.keyType,l=this._def.valueType;for(const c in r.data)i.push({key:a._parse(new tt(r,c,r.path,c)),value:l._parse(new tt(r,r.data[c],r.path,c))});return r.common.async?Re.mergeObjectAsync(n,i):Re.mergeObjectSync(n,i)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof W?new Tn({keyType:t,valueType:n,typeName:K.ZodRecord,...z(r)}):new Tn({keyType:Xe.create(),valueType:t,typeName:K.ZodRecord,...z(n)})}}class ur extends W{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!==L.map)return P(r,{code:O.invalid_type,expected:L.map,received:r.parsedType}),X;const i=this._def.keyType,a=this._def.valueType,l=[...r.data.entries()].map(([c,h],p)=>({key:i._parse(new tt(r,c,r.path,[p,"key"])),value:a._parse(new tt(r,h,r.path,[p,"value"]))}));if(r.common.async){const c=new Map;return Promise.resolve().then(async()=>{for(const h of l){const p=await h.key,f=await h.value;if(p.status==="aborted"||f.status==="aborted")return X;(p.status==="dirty"||f.status==="dirty")&&n.dirty(),c.set(p.value,f.value)}return{status:n.value,value:c}})}else{const c=new Map;for(const h of l){const p=h.key,f=h.value;if(p.status==="aborted"||f.status==="aborted")return X;(p.status==="dirty"||f.status==="dirty")&&n.dirty(),c.set(p.value,f.value)}return{status:n.value,value:c}}}}ur.create=(e,t,n)=>new ur({valueType:t,keyType:e,typeName:K.ZodMap,...z(n)});class Zt extends W{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==L.set)return P(r,{code:O.invalid_type,expected:L.set,received:r.parsedType}),X;const i=this._def;i.minSize!==null&&r.data.sizei.maxSize.value&&(P(r,{code:O.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),n.dirty());const a=this._def.valueType;function l(h){const p=new Set;for(const f of h){if(f.status==="aborted")return X;f.status==="dirty"&&n.dirty(),p.add(f.value)}return{status:n.value,value:p}}const c=[...r.data.values()].map((h,p)=>a._parse(new tt(r,h,r.path,p)));return r.common.async?Promise.all(c).then(h=>l(h)):l(c)}min(t,n){return new Zt({...this._def,minSize:{value:t,message:V.toString(n)}})}max(t,n){return new Zt({...this._def,maxSize:{value:t,message:V.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}Zt.create=(e,t)=>new Zt({valueType:e,minSize:null,maxSize:null,typeName:K.ZodSet,...z(t)});class Wt extends W{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==L.function)return P(n,{code:O.invalid_type,expected:L.function,received:n.parsedType}),X;function r(c,h){return ar({data:c,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,ir(),hn].filter(p=>!!p),issueData:{code:O.invalid_arguments,argumentsError:h}})}function i(c,h){return ar({data:c,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,ir(),hn].filter(p=>!!p),issueData:{code:O.invalid_return_type,returnTypeError:h}})}const a={errorMap:n.common.contextualErrorMap},l=n.data;if(this._def.returns instanceof Ct){const c=this;return Me(async function(...h){const p=new ze([]),f=await c._def.args.parseAsync(h,a).catch(x=>{throw p.addIssue(r(h,x)),p}),g=await Reflect.apply(l,this,f);return await c._def.returns._def.type.parseAsync(g,a).catch(x=>{throw p.addIssue(i(g,x)),p})})}else{const c=this;return Me(function(...h){const p=c._def.args.safeParse(h,a);if(!p.success)throw new ze([r(h,p.error)]);const f=Reflect.apply(l,this,p.data),g=c._def.returns.safeParse(f,a);if(!g.success)throw new ze([i(f,g.error)]);return g.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new Wt({...this._def,args:nt.create(t).rest(kt.create())})}returns(t){return new Wt({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new Wt({args:t||nt.create([]).rest(kt.create()),returns:n||kt.create(),typeName:K.ZodFunction,...z(r)})}}class bn extends W{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})}}bn.create=(e,t)=>new bn({getter:e,typeName:K.ZodLazy,...z(t)});class An extends W{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return P(n,{received:n.data,code:O.invalid_literal,expected:this._def.value}),X}return{status:"valid",value:t.data}}get value(){return this._def.value}}An.create=(e,t)=>new An({value:e,typeName:K.ZodLiteral,...z(t)});function Vi(e,t){return new St({values:e,typeName:K.ZodEnum,...z(t)})}class St extends W{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return P(n,{expected:re.joinValues(r),received:n.parsedType,code:O.invalid_type}),X}if(this._def.values.indexOf(t.data)===-1){const n=this._getOrReturnCtx(t),r=this._def.values;return P(n,{received:n.data,code:O.invalid_enum_value,options:r}),X}return Me(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){return St.create(t)}exclude(t){return St.create(this.options.filter(n=>!t.includes(n)))}}St.create=Vi;class wn extends W{_parse(t){const n=re.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==L.string&&r.parsedType!==L.number){const i=re.objectValues(n);return P(r,{expected:re.joinValues(i),received:r.parsedType,code:O.invalid_type}),X}if(n.indexOf(t.data)===-1){const i=re.objectValues(n);return P(r,{received:r.data,code:O.invalid_enum_value,options:i}),X}return Me(t.data)}get enum(){return this._def.values}}wn.create=(e,t)=>new wn({values:e,typeName:K.ZodNativeEnum,...z(t)});class Ct extends W{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==L.promise&&n.common.async===!1)return P(n,{code:O.invalid_type,expected:L.promise,received:n.parsedType}),X;const r=n.parsedType===L.promise?n.data:Promise.resolve(n.data);return Me(r.then(i=>this._def.type.parseAsync(i,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Ct.create=(e,t)=>new Ct({type:e,typeName:K.ZodPromise,...z(t)});class Je extends W{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===K.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:l=>{P(r,l),l.fatal?n.abort():n.dirty()},get path(){return r.path}};if(a.addIssue=a.addIssue.bind(a),i.type==="preprocess"){const l=i.transform(r.data,a);return r.common.issues.length?{status:"dirty",value:r.data}:r.common.async?Promise.resolve(l).then(c=>this._def.schema._parseAsync({data:c,path:r.path,parent:r})):this._def.schema._parseSync({data:l,path:r.path,parent:r})}if(i.type==="refinement"){const l=c=>{const h=i.refinement(c,a);if(r.common.async)return Promise.resolve(h);if(h instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return c};if(r.common.async===!1){const c=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return c.status==="aborted"?X:(c.status==="dirty"&&n.dirty(),l(c.value),{status:n.value,value:c.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(c=>c.status==="aborted"?X:(c.status==="dirty"&&n.dirty(),l(c.value).then(()=>({status:n.value,value:c.value}))))}if(i.type==="transform")if(r.common.async===!1){const l=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!gn(l))return l;const c=i.transform(l.value,a);if(c instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:c}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(l=>gn(l)?Promise.resolve(i.transform(l.value,a)).then(c=>({status:n.value,value:c})):l);re.assertNever(i)}}Je.create=(e,t,n)=>new Je({schema:e,typeName:K.ZodEffects,effect:t,...z(n)});Je.createWithPreprocess=(e,t,n)=>new Je({schema:t,effect:{type:"preprocess",transform:e},typeName:K.ZodEffects,...z(n)});class ht extends W{_parse(t){return this._getType(t)===L.undefined?Me(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}ht.create=(e,t)=>new ht({innerType:e,typeName:K.ZodOptional,...z(t)});class Gt extends W{_parse(t){return this._getType(t)===L.null?Me(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Gt.create=(e,t)=>new Gt({innerType:e,typeName:K.ZodNullable,...z(t)});class Sn extends W{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===L.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Sn.create=(e,t)=>new Sn({innerType:e,typeName:K.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...z(t)});class cr extends W{_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 sr(i)?i.then(a=>({status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new ze(r.common.issues)},input:r.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new ze(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}cr.create=(e,t)=>new cr({innerType:e,typeName:K.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...z(t)});class fr extends W{_parse(t){if(this._getType(t)!==L.nan){const r=this._getOrReturnCtx(t);return P(r,{code:O.invalid_type,expected:L.nan,received:r.parsedType}),X}return{status:"valid",value:t.data}}}fr.create=e=>new fr({typeName:K.ZodNaN,...z(e)});const mo=Symbol("zod_brand");class Hi extends W{_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 On extends W{_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"?X:a.status==="dirty"?(n.dirty(),Gi(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"?X: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 On({in:t,out:n,typeName:K.ZodPipeline})}}class pr extends W{_parse(t){const n=this._def.innerType._parse(t);return gn(n)&&(n.value=Object.freeze(n.value)),n}}pr.create=(e,t)=>new pr({innerType:e,typeName:K.ZodReadonly,...z(t)});const Qr=(e,t={},n)=>e?Jt.create().superRefine((r,i)=>{var a,l;if(!e(r)){const c=typeof t=="function"?t(r):typeof t=="string"?{message:t}:t,h=(l=(a=c.fatal)!==null&&a!==void 0?a:n)!==null&&l!==void 0?l:!0,p=typeof c=="string"?{message:c}:c;i.addIssue({code:"custom",...p,fatal:h})}}):Jt.create(),_o={object:he.lazycreate};var K;(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"})(K||(K={}));const vo=(e,t={message:`Input not instance of ${e.name}`})=>Qr(n=>n instanceof e,t),y=Xe.create,Z=At.create,yo=fr.create,ji=wt.create,F=mn.create,Eo=Bt.create,To=or.create,bo=_n.create,ei=vn.create,Ao=Jt.create,In=kt.create,wo=mt.create,So=lr.create,ee=We.create,D=he.create,Io=he.strictCreate,ti=yn.create,No=mr.create,Oo=En.create,Ro=nt.create,Do=Tn.create,xo=ur.create,Lo=Zt.create,Po=Wt.create,Mo=bn.create,ye=An.create,ko=St.create,en=wn.create,Uo=Ct.create,wi=Je.create,qi=ht.create,Bo=Gt.create,Ki=Je.createWithPreprocess,Zo=On.create,Go=()=>y().optional(),Vo=()=>Z().optional(),Ho=()=>F().optional(),jo={string:e=>Xe.create({...e,coerce:!0}),number:e=>At.create({...e,coerce:!0}),boolean:e=>mn.create({...e,coerce:!0}),bigint:e=>wt.create({...e,coerce:!0}),date:e=>Bt.create({...e,coerce:!0})},qo=X;var k=Object.freeze({__proto__:null,defaultErrorMap:hn,setErrorMap:no,getErrorMap:ir,makeIssue:ar,EMPTY_PATH:ro,addIssueToContext:P,ParseStatus:Re,INVALID:X,DIRTY:Gi,OK:Me,isAborted:Kr,isDirty:$r,isValid:gn,isAsync:sr,get util(){return re},get objectUtil(){return qr},ZodParsedType:L,getParsedType:Et,ZodType:W,ZodString:Xe,ZodNumber:At,ZodBigInt:wt,ZodBoolean:mn,ZodDate:Bt,ZodSymbol:or,ZodUndefined:_n,ZodNull:vn,ZodAny:Jt,ZodUnknown:kt,ZodNever:mt,ZodVoid:lr,ZodArray:We,ZodObject:he,ZodUnion:yn,ZodDiscriminatedUnion:mr,ZodIntersection:En,ZodTuple:nt,ZodRecord:Tn,ZodMap:ur,ZodSet:Zt,ZodFunction:Wt,ZodLazy:bn,ZodLiteral:An,ZodEnum:St,ZodNativeEnum:wn,ZodPromise:Ct,ZodEffects:Je,ZodTransformer:Je,ZodOptional:ht,ZodNullable:Gt,ZodDefault:Sn,ZodCatch:cr,ZodNaN:fr,BRAND:mo,ZodBranded:Hi,ZodPipeline:On,ZodReadonly:pr,custom:Qr,Schema:W,ZodSchema:W,late:_o,get ZodFirstPartyTypeKind(){return K},coerce:jo,any:Ao,array:ee,bigint:ji,boolean:F,date:Eo,discriminatedUnion:No,effect:wi,enum:ko,function:Po,instanceof:vo,intersection:Oo,lazy:Mo,literal:ye,map:xo,nan:yo,nativeEnum:en,never:wo,null:ei,nullable:Bo,number:Z,object:D,oboolean:Ho,onumber:Vo,optional:qi,ostring:Go,pipeline:Zo,preprocess:Ki,promise:Uo,record:Do,set:Lo,strictObject:Io,string:y,symbol:To,transformer:wi,tuple:Ro,undefined:bo,union:ti,unknown:In,void:So,NEVER:qo,ZodIssueCode:O,quotelessJson:to,ZodError:ze}),$i={exports:{}};(function(e){var t=function(n){var r=1e7,i=7,a=9007199254740992,l=j(a),c="0123456789abcdefghijklmnopqrstuvwxyz",h=typeof BigInt=="function";function p(s,u,m,v){return typeof s>"u"?p[0]:typeof u<"u"?+u==10&&!m?q(s):Gn(s,u,m,v):q(s)}function f(s,u){this.value=s,this.sign=u,this.isSmall=!1}f.prototype=Object.create(p.prototype);function g(s){this.value=s,this.sign=s<0,this.isSmall=!0}g.prototype=Object.create(p.prototype);function A(s){this.value=s}A.prototype=Object.create(p.prototype);function x(s){return-a0?Math.floor(s):Math.ceil(s)}function C(s,u){var m=s.length,v=u.length,T=new Array(m),E=0,w=r,S,I;for(I=0;I=w?1:0,T[I]=S-E*w;for(;I0&&T.push(E),T}function ge(s,u){return s.length>=u.length?C(s,u):C(u,s)}function pe(s,u){var m=s.length,v=new Array(m),T=r,E,w;for(w=0;w0;)v[w++]=u%T,u=Math.floor(u/T);return v}f.prototype.add=function(s){var u=q(s);if(this.sign!==u.sign)return this.subtract(u.negate());var m=this.value,v=u.value;return u.isSmall?new f(pe(m,Math.abs(v)),this.sign):new f(ge(m,v),this.sign)},f.prototype.plus=f.prototype.add,g.prototype.add=function(s){var u=q(s),m=this.value;if(m<0!==u.sign)return this.subtract(u.negate());var v=u.value;if(u.isSmall){if(x(m+v))return new g(m+v);v=j(Math.abs(v))}return new f(pe(v,Math.abs(m)),m<0)},g.prototype.plus=g.prototype.add,A.prototype.add=function(s){return new A(this.value+q(s).value)},A.prototype.plus=A.prototype.add;function ke(s,u){var m=s.length,v=u.length,T=new Array(m),E=0,w=r,S,I;for(S=0;S=0?v=ke(s,u):(v=ke(u,s),m=!m),v=B(v),typeof v=="number"?(m&&(v=-v),new g(v)):new f(v,m)}function Ze(s,u,m){var v=s.length,T=new Array(v),E=-u,w=r,S,I;for(S=0;S=0)},g.prototype.minus=g.prototype.subtract,A.prototype.subtract=function(s){return new A(this.value-q(s).value)},A.prototype.minus=A.prototype.subtract,f.prototype.negate=function(){return new f(this.value,!this.sign)},g.prototype.negate=function(){var s=this.sign,u=new g(-this.value);return u.sign=!s,u},A.prototype.negate=function(){return new A(-this.value)},f.prototype.abs=function(){return new f(this.value,!1)},g.prototype.abs=function(){return new g(Math.abs(this.value))},A.prototype.abs=function(){return new A(this.value>=0?this.value:-this.value)};function $e(s,u){var m=s.length,v=u.length,T=m+v,E=ue(T),w=r,S,I,H,Q,$;for(H=0;H0;)v[S++]=E%T,E=Math.floor(E/T);return v}function xe(s,u){for(var m=[];u-- >0;)m.push(0);return m.concat(s)}function oe(s,u){var m=Math.max(s.length,u.length);if(m<=30)return $e(s,u);m=Math.ceil(m/2);var v=s.slice(m),T=s.slice(0,m),E=u.slice(m),w=u.slice(0,m),S=oe(T,w),I=oe(v,E),H=oe(ge(T,v),ge(w,E)),Q=ge(ge(S,xe(ke(ke(H,S),I),m)),xe(I,2*m));return R(Q),Q}function Er(s,u){return-.012*s-.012*u+15e-6*s*u>0}f.prototype.multiply=function(s){var u=q(s),m=this.value,v=u.value,T=this.sign!==u.sign,E;if(u.isSmall){if(v===0)return p[0];if(v===1)return this;if(v===-1)return this.negate();if(E=Math.abs(v),E=0;$--){for(Q=T-1,I[$+v]!==w&&(Q=Math.floor((I[$+v]*T+I[$+v-1])/w)),te=0,Le=0,ln=H.length,we=0;wev&&(H=(H+1)*w),S=Math.ceil(H/Q);do{if($=Ve(u,S),at($,E)<=0)break;S--}while(S);T.push(S),E=ke(E,$)}return T.reverse(),[B(T),B(E)]}function Ln(s,u){var m=s.length,v=ue(m),T=r,E,w,S,I;for(S=0,E=m-1;E>=0;--E)I=S*T+s[E],w=J(I/u),S=I-w*u,v[E]=w|0;return[v,S|0]}function it(s,u){var m,v=q(u);if(h)return[new A(s.value/v.value),new A(s.value%v.value)];var T=s.value,E=v.value,w;if(E===0)throw new Error("Cannot divide by zero");if(s.isSmall)return v.isSmall?[new g(J(T/E)),new g(T%E)]:[p[0],s];if(v.isSmall){if(E===1)return[s,p[0]];if(E==-1)return[s.negate(),p[0]];var S=Math.abs(E);if(Su.length?1:-1;for(var m=s.length-1;m>=0;m--)if(s[m]!==u[m])return s[m]>u[m]?1:-1;return 0}f.prototype.compareAbs=function(s){var u=q(s),m=this.value,v=u.value;return u.isSmall?1:at(m,v)},g.prototype.compareAbs=function(s){var u=q(s),m=Math.abs(this.value),v=u.value;return u.isSmall?(v=Math.abs(v),m===v?0:m>v?1:-1):-1},A.prototype.compareAbs=function(s){var u=this.value,m=q(s).value;return u=u>=0?u:-u,m=m>=0?m:-m,u===m?0:u>m?1:-1},f.prototype.compare=function(s){if(s===1/0)return-1;if(s===-1/0)return 1;var u=q(s),m=this.value,v=u.value;return this.sign!==u.sign?u.sign?1:-1:u.isSmall?this.sign?-1:1:at(m,v)*(this.sign?-1:1)},f.prototype.compareTo=f.prototype.compare,g.prototype.compare=function(s){if(s===1/0)return-1;if(s===-1/0)return 1;var u=q(s),m=this.value,v=u.value;return u.isSmall?m==v?0:m>v?1:-1:m<0!==u.sign?m<0?-1:1:m<0?1:-1},g.prototype.compareTo=g.prototype.compare,A.prototype.compare=function(s){if(s===1/0)return-1;if(s===-1/0)return 1;var u=this.value,m=q(s).value;return u===m?0:u>m?1:-1},A.prototype.compareTo=A.prototype.compare,f.prototype.equals=function(s){return this.compare(s)===0},A.prototype.eq=A.prototype.equals=g.prototype.eq=g.prototype.equals=f.prototype.eq=f.prototype.equals,f.prototype.notEquals=function(s){return this.compare(s)!==0},A.prototype.neq=A.prototype.notEquals=g.prototype.neq=g.prototype.notEquals=f.prototype.neq=f.prototype.notEquals,f.prototype.greater=function(s){return this.compare(s)>0},A.prototype.gt=A.prototype.greater=g.prototype.gt=g.prototype.greater=f.prototype.gt=f.prototype.greater,f.prototype.lesser=function(s){return this.compare(s)<0},A.prototype.lt=A.prototype.lesser=g.prototype.lt=g.prototype.lesser=f.prototype.lt=f.prototype.lesser,f.prototype.greaterOrEquals=function(s){return this.compare(s)>=0},A.prototype.geq=A.prototype.greaterOrEquals=g.prototype.geq=g.prototype.greaterOrEquals=f.prototype.geq=f.prototype.greaterOrEquals,f.prototype.lesserOrEquals=function(s){return this.compare(s)<=0},A.prototype.leq=A.prototype.lesserOrEquals=g.prototype.leq=g.prototype.lesserOrEquals=f.prototype.leq=f.prototype.lesserOrEquals,f.prototype.isEven=function(){return(this.value[0]&1)===0},g.prototype.isEven=function(){return(this.value&1)===0},A.prototype.isEven=function(){return(this.value&BigInt(1))===BigInt(0)},f.prototype.isOdd=function(){return(this.value[0]&1)===1},g.prototype.isOdd=function(){return(this.value&1)===1},A.prototype.isOdd=function(){return(this.value&BigInt(1))===BigInt(1)},f.prototype.isPositive=function(){return!this.sign},g.prototype.isPositive=function(){return this.value>0},A.prototype.isPositive=g.prototype.isPositive,f.prototype.isNegative=function(){return this.sign},g.prototype.isNegative=function(){return this.value<0},A.prototype.isNegative=g.prototype.isNegative,f.prototype.isUnit=function(){return!1},g.prototype.isUnit=function(){return Math.abs(this.value)===1},A.prototype.isUnit=function(){return this.abs().value===BigInt(1)},f.prototype.isZero=function(){return!1},g.prototype.isZero=function(){return this.value===0},A.prototype.isZero=function(){return this.value===BigInt(0)},f.prototype.isDivisibleBy=function(s){var u=q(s);return u.isZero()?!1:u.isUnit()?!0:u.compareAbs(2)===0?this.isEven():this.mod(u).isZero()},A.prototype.isDivisibleBy=g.prototype.isDivisibleBy=f.prototype.isDivisibleBy;function Pn(s){var u=s.abs();if(u.isUnit())return!1;if(u.equals(2)||u.equals(3)||u.equals(5))return!0;if(u.isEven()||u.isDivisibleBy(3)||u.isDivisibleBy(5))return!1;if(u.lesser(49))return!0}function an(s,u){for(var m=s.prev(),v=m,T=0,E,w,S;v.isEven();)v=v.divide(2),T++;e:for(w=0;w-a?new g(s-1):new f(l,!0)},A.prototype.prev=function(){return new A(this.value-BigInt(1))};for(var Fe=[1];2*Fe[Fe.length-1]<=r;)Fe.push(2*Fe[Fe.length-1]);var Ot=Fe.length,st=Fe[Ot-1];function Mn(s){return Math.abs(s)<=r}f.prototype.shiftLeft=function(s){var u=q(s).toJSNumber();if(!Mn(u))throw new Error(String(u)+" is too large for shifting.");if(u<0)return this.shiftRight(-u);var m=this;if(m.isZero())return m;for(;u>=Ot;)m=m.multiply(st),u-=Ot-1;return m.multiply(Fe[u])},A.prototype.shiftLeft=g.prototype.shiftLeft=f.prototype.shiftLeft,f.prototype.shiftRight=function(s){var u,m=q(s).toJSNumber();if(!Mn(m))throw new Error(String(m)+" is too large for shifting.");if(m<0)return this.shiftLeft(-m);for(var v=this;m>=Ot;){if(v.isZero()||v.isNegative()&&v.isUnit())return v;u=it(v,st),v=u[1].isNegative()?u[0].prev():u[0],m-=Ot-1}return u=it(v,Fe[m]),u[1].isNegative()?u[0].prev():u[0]},A.prototype.shiftRight=g.prototype.shiftRight=f.prototype.shiftRight;function sn(s,u,m){u=q(u);for(var v=s.isNegative(),T=u.isNegative(),E=v?s.not():s,w=T?u.not():u,S=0,I=0,H=null,Q=null,$=[];!E.isZero()||!w.isZero();)H=it(E,st),S=H[1].toJSNumber(),v&&(S=st-1-S),Q=it(w,st),I=Q[1].toJSNumber(),T&&(I=st-1-I),E=H[0],w=Q[0],$.push(m(S,I));for(var te=m(v?1:0,T?1:0)!==0?t(-1):t(0),Le=$.length-1;Le>=0;Le-=1)te=te.multiply(st).add(t($[Le]));return te}f.prototype.not=function(){return this.negate().prev()},A.prototype.not=g.prototype.not=f.prototype.not,f.prototype.and=function(s){return sn(this,s,function(u,m){return u&m})},A.prototype.and=g.prototype.and=f.prototype.and,f.prototype.or=function(s){return sn(this,s,function(u,m){return u|m})},A.prototype.or=g.prototype.or=f.prototype.or,f.prototype.xor=function(s){return sn(this,s,function(u,m){return u^m})},A.prototype.xor=g.prototype.xor=f.prototype.xor;var ie=1<<30,kn=(r&-r)*(r&-r)|ie;function Ht(s){var u=s.value,m=typeof u=="number"?u|ie:typeof u=="bigint"?u|BigInt(ie):u[0]+u[1]*r|kn;return m&-m}function Ye(s,u){if(u.compareTo(s)<=0){var m=Ye(s,u.square(u)),v=m.p,T=m.e,E=v.multiply(u);return E.compareTo(s)<=0?{p:E,e:T*2+1}:{p:v,e:T*2}}return{p:t(1),e:0}}f.prototype.bitLength=function(){var s=this;return s.compareTo(t(0))<0&&(s=s.negate().subtract(t(1))),s.compareTo(t(0))===0?t(0):t(Ye(s,t(2)).e).add(t(1))},A.prototype.bitLength=g.prototype.bitLength=f.prototype.bitLength;function on(s,u){return s=q(s),u=q(u),s.greater(u)?s:u}function jt(s,u){return s=q(s),u=q(u),s.lesser(u)?s:u}function Un(s,u){if(s=q(s).abs(),u=q(u).abs(),s.equals(u))return s;if(s.isZero())return u;if(u.isZero())return s;for(var m=p[1],v,T;s.isEven()&&u.isEven();)v=jt(Ht(s),Ht(u)),s=s.divide(v),u=u.divide(v),m=m.multiply(v);for(;s.isEven();)s=s.divide(Ht(s));do{for(;u.isEven();)u=u.divide(Ht(u));s.greater(u)&&(T=u,u=s,s=T),u=u.subtract(s)}while(!u.isZero());return m.isUnit()?s:s.multiply(m)}function Bn(s,u){return s=q(s).abs(),u=q(u).abs(),s.divide(Un(s,u)).multiply(u)}function Zn(s,u,m){s=q(s),u=q(u);var v=m||Math.random,T=jt(s,u),E=on(s,u),w=E.subtract(T).add(1);if(w.isSmall)return T.add(Math.floor(v()*w));for(var S=Rt(w,r).value,I=[],H=!0,Q=0;Q=w){if(I==="1"&&w===1)continue;throw new Error(I+" is not a valid digit in base "+u+".")}}u=q(u);var H=[],Q=s[0]==="-";for(E=Q?1:0;E"&&E=0;E--)v=v.add(s[E].times(T)),T=T.times(u);return m?v.negate():v}function Ar(s,u){return u=u||c,s"}function Rt(s,u){if(u=t(u),u.isZero()){if(s.isZero())return{value:[0],isNegative:!1};throw new Error("Cannot convert nonzero numbers to base 0.")}if(u.equals(-1)){if(s.isZero())return{value:[0],isNegative:!1};if(s.isNegative())return{value:[].concat.apply([],Array.apply(null,Array(-s.toJSNumber())).map(Array.prototype.valueOf,[1,0])),isNegative:!1};var m=Array.apply(null,Array(s.toJSNumber()-1)).map(Array.prototype.valueOf,[0,1]);return m.unshift([1]),{value:[].concat.apply([],m),isNegative:!1}}var v=!1;if(s.isNegative()&&u.isPositive()&&(v=!0,s=s.abs()),u.isUnit())return s.isZero()?{value:[0],isNegative:!1}:{value:Array.apply(null,Array(s.toJSNumber())).map(Number.prototype.valueOf,1),isNegative:v};for(var T=[],E=s,w;E.isNegative()||E.compareAbs(u)>=0;){w=E.divmod(u),E=w.quotient;var S=w.remainder;S.isNegative()&&(S=u.minus(S).abs(),E=E.next()),T.push(S.toJSNumber())}return T.push(E.toJSNumber()),{value:T.reverse(),isNegative:v}}function Hn(s,u,m){var v=Rt(s,u);return(v.isNegative?"-":"")+v.value.map(function(T){return Ar(T,m)}).join("")}f.prototype.toArray=function(s){return Rt(this,s)},g.prototype.toArray=function(s){return Rt(this,s)},A.prototype.toArray=function(s){return Rt(this,s)},f.prototype.toString=function(s,u){if(s===n&&(s=10),s!==10)return Hn(this,s,u);for(var m=this.value,v=m.length,T=String(m[--v]),E="0000000",w;--v>=0;)w=String(m[v]),T+=E.slice(w.length)+w;var S=this.sign?"-":"";return S+T},g.prototype.toString=function(s,u){return s===n&&(s=10),s!=10?Hn(this,s,u):String(this.value)},A.prototype.toString=g.prototype.toString,A.prototype.toJSON=f.prototype.toJSON=g.prototype.toJSON=function(){return this.toString()},f.prototype.valueOf=function(){return parseInt(this.toString(),10)},f.prototype.toJSNumber=f.prototype.valueOf,g.prototype.valueOf=function(){return this.value},g.prototype.toJSNumber=g.prototype.valueOf,A.prototype.valueOf=A.prototype.toJSNumber=function(){return parseInt(this.toString(),10)};function jn(s){if(x(+s)){var u=+s;if(u===J(u))return h?new A(BigInt(u)):new g(u);throw new Error("Invalid integer: "+s)}var m=s[0]==="-";m&&(s=s.slice(1));var v=s.split(/e/i);if(v.length>2)throw new Error("Invalid integer: "+v.join("e"));if(v.length===2){var T=v[1];if(T[0]==="+"&&(T=T.slice(1)),T=+T,T!==J(T)||!x(T))throw new Error("Invalid integer: "+T+" is not a valid exponent.");var E=v[0],w=E.indexOf(".");if(w>=0&&(T-=E.length-w-1,E=E.slice(0,w)+E.slice(w+1)),T<0)throw new Error("Cannot include negative exponent part for integers");E+=new Array(T+1).join("0"),s=E}var S=/^([0-9][0-9]*)$/.test(s);if(!S)throw new Error("Invalid integer: "+s);if(h)return new A(BigInt(m?"-"+s:s));for(var I=[],H=s.length,Q=i,$=H-Q;H>0;)I.push(+s.slice($,H)),$-=Q,$<0&&($=0),H-=Q;return R(I),new f(I,m)}function wr(s){if(h)return new A(BigInt(s));if(x(s)){if(s!==J(s))throw new Error(s+" is not an integer.");return new g(s)}return jn(s.toString())}function q(s){return typeof s=="number"?wr(s):typeof s=="string"?jn(s):typeof s=="bigint"?new A(s):s}for(var ot=0;ot<1e3;ot++)p[ot]=q(ot),ot>0&&(p[-ot]=q(-ot));return p.one=p[1],p.zero=p[0],p.minusOne=p[-1],p.max=on,p.min=jt,p.gcd=Un,p.lcm=Bn,p.isInstance=function(s){return s instanceof f||s instanceof g||s instanceof A},p.randBetween=Zn,p.fromArray=function(s,u,m){return Vn(s.map(q),q(u||10),m)},p}();e.hasOwnProperty("exports")&&(e.exports=t)})($i);var Ko=$i.exports,$o=Ui(Ko);const Fi=64,Yr=16,Tt=Fi/Yr;function Fo(){try{return!0}catch{return!1}}function Yo(e,t,n){let r=0;for(let i=0;in&t[r]))}or({parts:t}){return new Ce(this.parts.map((n,r)=>n|t[r]))}xor({parts:t}){return new Ce(this.parts.map((n,r)=>n^t[r]))}not(){return new Ce(this.parts.map(t=>~t))}equals({parts:t}){return this.parts.every((n,r)=>n===t[r])}toString(){if(this.str!=null)return this.str;const t=new Array(Fi/4);return this.parts.forEach((n,r)=>{const i=Yi(n.toString());for(let a=0;a<4;a++)t[a+r*4]=i[3-a]||0}),this.str=$o.fromArray(t,16).toString()}toJSON(){return this.toString()}}const Nt=Fo();Nt&&BigInt.prototype.toJSON==null&&(BigInt.prototype.toJSON=function(){return this.toString()});const er={},Xi=Nt?function(t){return BigInt(t)}:function(t){return t instanceof Ce?t:(typeof t=="number"&&(t=t.toString()),er[t]!=null||(er[t]=Ce.fromString(t)),er[t])},be=Xi(0),_r=Nt?function(t=be,n=be){return t&n}:function(t=be,n=be){return t.and(n)},zi=Nt?function(t=be,n=be){return t|n}:function(t=be,n=be){return t.or(n)},zo=Nt?function(t=be,n=be){return t^n}:function(t=be,n=be){return t.xor(n)},Wo=Nt?function(t=be){return~t}:function(t=be){return t.not()},ni=Nt?function(t,n){return t===n}:function(t,n){return t==null||n==null?t==n:t.equals(n)};function Jo(...e){let t=e[0];for(let n=1;n{var n;const[r]=(n=Object.entries(e).find(([,i])=>i===t))!==null&&n!==void 0?n:[];return t!=null&&r===void 0?e.UNHANDLED:t},y().or(Z()))}function rl(e){const t=Qr().transform(n=>{const r=e.safeParse(n);return r.success?r.data:e._def.defaultValue()});return t.overlayType=e,t}const il=k.object({image_url:k.string()}),al=k.object({mediaUrl:k.string().max(1024)}),sl=k.object({access_token:k.union([k.string(),k.null()]).optional()}),Wi=k.object({access_token:k.string(),user:k.object({username:k.string(),discriminator:k.string(),id:k.string(),avatar:k.union([k.string(),k.null()]).optional(),public_flags:k.number(),global_name:k.union([k.string(),k.null()]).optional()}),scopes:k.array(rl(k.enum(["identify","email","connections","guilds","guilds.join","guilds.members.read","gdm.join","rpc","rpc.notifications.read","rpc.voice.read","rpc.voice.write","rpc.video.read","rpc.video.write","rpc.screenshare.read","rpc.screenshare.write","rpc.activities.write","bot","webhook.incoming","messages.read","applications.builds.upload","applications.builds.read","applications.commands","applications.commands.update","applications.commands.permissions.update","applications.store.update","applications.entitlements","activities.read","activities.write","relationships.read","voice","dm_channels.read","role_connections.write"]).or(k.literal(-1)).default(-1))),expires:k.string(),application:k.object({description:k.string(),icon:k.union([k.string(),k.null()]).optional(),id:k.string(),rpc_origins:k.array(k.string()).optional(),name:k.string()})}),Ji=k.object({participants:k.array(k.object({id:k.string(),username:k.string(),global_name:k.union([k.string(),k.null()]).optional(),discriminator:k.string(),avatar:k.union([k.string(),k.null()]).optional(),flags:k.number(),bot:k.boolean(),avatar_decoration_data:k.union([k.object({asset:k.string(),skuId:k.string().optional()}),k.null()]).optional(),premium_type:k.union([k.number(),k.null()]).optional(),nickname:k.string().optional()}))});var Qe;(function(e){e.INITIATE_IMAGE_UPLOAD="INITIATE_IMAGE_UPLOAD",e.OPEN_SHARE_MOMENT_DIALOG="OPEN_SHARE_MOMENT_DIALOG",e.AUTHENTICATE="AUTHENTICATE",e.GET_ACTIVITY_INSTANCE_CONNECTED_PARTICIPANTS="GET_ACTIVITY_INSTANCE_CONNECTED_PARTICIPANTS"})(Qe||(Qe={}));const ol=k.object({}).optional().nullable(),Ni=k.void(),Ci={[Qe.INITIATE_IMAGE_UPLOAD]:{request:Ni,response:il},[Qe.OPEN_SHARE_MOMENT_DIALOG]:{request:al,response:ol},[Qe.AUTHENTICATE]:{request:sl,response:Wi},[Qe.GET_ACTIVITY_INSTANCE_CONNECTED_PARTICIPANTS]:{request:Ni,response:Ji}},ll="DISPATCH";var G;(function(e){e.AUTHORIZE="AUTHORIZE",e.AUTHENTICATE="AUTHENTICATE",e.GET_GUILDS="GET_GUILDS",e.GET_GUILD="GET_GUILD",e.GET_CHANNEL="GET_CHANNEL",e.GET_CHANNELS="GET_CHANNELS",e.SELECT_VOICE_CHANNEL="SELECT_VOICE_CHANNEL",e.SELECT_TEXT_CHANNEL="SELECT_TEXT_CHANNEL",e.SUBSCRIBE="SUBSCRIBE",e.UNSUBSCRIBE="UNSUBSCRIBE",e.CAPTURE_SHORTCUT="CAPTURE_SHORTCUT",e.SET_CERTIFIED_DEVICES="SET_CERTIFIED_DEVICES",e.SET_ACTIVITY="SET_ACTIVITY",e.GET_SKUS="GET_SKUS",e.GET_ENTITLEMENTS="GET_ENTITLEMENTS",e.GET_SKUS_EMBEDDED="GET_SKUS_EMBEDDED",e.GET_ENTITLEMENTS_EMBEDDED="GET_ENTITLEMENTS_EMBEDDED",e.START_PURCHASE="START_PURCHASE",e.SET_CONFIG="SET_CONFIG",e.SEND_ANALYTICS_EVENT="SEND_ANALYTICS_EVENT",e.USER_SETTINGS_GET_LOCALE="USER_SETTINGS_GET_LOCALE",e.OPEN_EXTERNAL_LINK="OPEN_EXTERNAL_LINK",e.ENCOURAGE_HW_ACCELERATION="ENCOURAGE_HW_ACCELERATION",e.CAPTURE_LOG="CAPTURE_LOG",e.SET_ORIENTATION_LOCK_STATE="SET_ORIENTATION_LOCK_STATE",e.OPEN_INVITE_DIALOG="OPEN_INVITE_DIALOG",e.GET_PLATFORM_BEHAVIORS="GET_PLATFORM_BEHAVIORS",e.GET_CHANNEL_PERMISSIONS="GET_CHANNEL_PERMISSIONS",e.OPEN_SHARE_MOMENT_DIALOG="OPEN_SHARE_MOMENT_DIALOG",e.INITIATE_IMAGE_UPLOAD="INITIATE_IMAGE_UPLOAD",e.GET_ACTIVITY_INSTANCE_CONNECTED_PARTICIPANTS="GET_ACTIVITY_INSTANCE_CONNECTED_PARTICIPANTS"})(G||(G={}));const tn=D({cmd:y(),data:In(),evt:ei(),nonce:y()}).passthrough(),ul=Object.assign(Object.assign({},Wi.shape.scopes.element.overlayType._def.innerType.options[0].Values),{UNHANDLED:-1});De(ul);const It=D({id:y(),username:y(),discriminator:y(),global_name:y().optional().nullable(),avatar:y().optional().nullable(),avatar_decoration_data:D({asset:y(),sku_id:y().optional()}).nullable(),bot:F(),flags:Z().optional().nullable(),premium_type:Z().optional().nullable()}),ri=D({user:It,nick:y().optional().nullable(),roles:ee(y()),joined_at:y(),deaf:F(),mute:F()}),ii=D({id:y(),name:y().optional().nullable(),roles:ee(y()).optional().nullable(),user:It.optional().nullable(),require_colons:F().optional().nullable(),managed:F().optional().nullable(),animated:F().optional().nullable(),available:F().optional().nullable()}),Qi=D({mute:F(),deaf:F(),self_mute:F(),self_deaf:F(),suppress:F()}),ea=D({mute:F(),nick:y(),user:It,voice_state:Qi,volume:Z()}),cl={UNHANDLED:-1,IDLE:"idle",DND:"dnd",ONLINE:"online",OFFLINE:"offline"},tr=De(cl),dn=D({name:y(),type:Z(),url:y().optional().nullable(),created_at:Z().optional().nullable(),timestamps:D({start:Z(),end:Z()}).partial().optional().nullable(),application_id:y().optional().nullable(),details:y().optional().nullable(),state:y().optional().nullable(),emoji:ii.optional().nullable(),party:D({id:y().optional().nullable(),size:ee(Z()).optional().nullable()}).optional().nullable(),assets:D({large_image:y().nullable(),large_text:y().nullable(),small_image:y().nullable(),small_text:y().nullable()}).partial().optional().nullable(),secrets:D({join:y(),match:y()}).partial().optional().nullable(),instance:F().optional().nullable(),flags:Z().optional().nullable()}),fl={UNHANDLED:-1,ROLE:0,MEMBER:1},pl=D({id:y(),type:De(fl),allow:y(),deny:y()}),ta={UNHANDLED:-1,DM:1,GROUP_DM:3,GUILD_TEXT:0,GUILD_VOICE:2,GUILD_CATEGORY:4,GUILD_ANNOUNCEMENT:5,GUILD_STORE:6,ANNOUNCEMENT_THREAD:10,PUBLIC_THREAD:11,PRIVATE_THREAD:12,GUILD_STAGE_VOICE:13,GUILD_DIRECTORY:14,GUILD_FORUM:15},na=D({id:y(),type:De(ta),guild_id:y().optional().nullable(),position:Z().optional().nullable(),permission_overwrites:ee(pl).optional().nullable(),name:y().optional().nullable(),topic:y().optional().nullable(),nsfw:F().optional().nullable(),last_message_id:y().optional().nullable(),bitrate:Z().optional().nullable(),user_limit:Z().optional().nullable(),rate_limit_per_user:Z().optional().nullable(),recipients:ee(It).optional().nullable(),icon:y().optional().nullable(),owner_id:y().optional().nullable(),application_id:y().optional().nullable(),parent_id:y().optional().nullable(),last_pin_timestamp:y().optional().nullable()}),dl=D({user:It,guild_id:y(),status:tr,activities:ee(dn),client_status:D({desktop:tr,mobile:tr,web:tr}).partial()}),hl=D({id:y(),name:y(),color:Z(),hoist:F(),position:Z(),permissions:y(),managed:F(),mentionable:F()});D({id:y(),name:y(),owner_id:y(),icon:y().nullable(),icon_hash:y().optional().nullable(),splash:y().nullable(),discovery_splash:y().nullable(),owner:F().optional().nullable(),permissions:y().optional().nullable(),region:y(),afk_channel_id:y().nullable(),afk_timeout:Z(),widget_enabled:F().optional().nullable(),widget_channel_id:y().optional().nullable(),verification_level:Z(),default_message_notifications:Z(),explicit_content_filter:Z(),roles:ee(hl),emojis:ee(ii),features:ee(y()),mfa_level:Z(),application_id:y().nullable(),system_channel_id:y().nullable(),system_channel_flags:Z(),rules_channel_id:y().nullable(),joined_at:y().optional().nullable(),large:F().optional().nullable(),unavailable:F().optional().nullable(),member_count:Z().optional().nullable(),voice_states:ee(Qi).optional().nullable(),members:ee(ri).optional().nullable(),channels:ee(na).optional().nullable(),presences:ee(dl).optional().nullable(),max_presences:Z().optional().nullable(),max_members:Z().optional().nullable(),vanity_url_code:y().nullable(),description:y().nullable(),banner:y().nullable(),premium_tier:Z(),premium_subscription_count:Z().optional().nullable(),preferred_locale:y(),public_updates_channel_id:y().nullable(),max_video_channel_users:Z().optional().nullable(),approximate_member_count:Z().optional().nullable(),approximate_presence_count:Z().optional().nullable()});const gl=D({id:y(),guild_id:y(),type:Z(),name:y()}),ml=D({id:y(),filename:y(),size:Z(),url:y(),proxy_url:y(),height:Z().optional().nullable(),width:Z().optional().nullable()}),_l=D({text:y(),icon_url:y().optional().nullable(),proxy_icon_url:y().optional().nullable()}),Wr=D({url:y().optional().nullable(),proxy_url:y().optional().nullable(),height:Z().optional().nullable(),width:Z().optional().nullable()}),vl=Wr.omit({proxy_url:!0}),yl=D({name:y().optional().nullable(),url:y().optional().nullable()}),El=D({name:y().optional().nullable(),url:y().optional().nullable(),icon_url:y().optional().nullable(),proxy_icon_url:y().optional().nullable()}),Tl=D({name:y(),value:y(),inline:F()}),bl=D({title:y().optional().nullable(),type:y().optional().nullable(),description:y().optional().nullable(),url:y().optional().nullable(),timestamp:y().optional().nullable(),color:Z().optional().nullable(),footer:_l.optional().nullable(),image:Wr.optional().nullable(),thumbnail:Wr.optional().nullable(),video:vl.optional().nullable(),provider:yl.optional().nullable(),author:El.optional().nullable(),fields:ee(Tl).optional().nullable()}),Al=D({count:Z(),me:F(),emoji:ii}),wl=D({type:Z(),party_id:y().optional().nullable()}),Sl=D({id:y(),cover_image:y().optional().nullable(),description:y(),icon:y().optional().nullable(),name:y()}),Il=D({message_id:y().optional().nullable(),channel_id:y().optional().nullable(),guild_id:y().optional().nullable()}),Nl=D({id:y(),channel_id:y(),guild_id:y().optional().nullable(),author:It.optional().nullable(),member:ri.optional().nullable(),content:y(),timestamp:y(),edited_timestamp:y().optional().nullable(),tts:F(),mention_everyone:F(),mentions:ee(It),mention_roles:ee(y()),mention_channels:ee(gl),attachments:ee(ml),embeds:ee(bl),reactions:ee(Al).optional().nullable(),nonce:ti([y(),Z()]).optional().nullable(),pinned:F(),webhook_id:y().optional().nullable(),type:Z(),activity:wl.optional().nullable(),application:Sl.optional().nullable(),message_reference:Il.optional().nullable(),flags:Z().optional().nullable(),stickers:ee(In()).optional().nullable(),referenced_message:In().optional().nullable()}),Ol=D({id:y(),name:y()}),Rl={UNHANDLED:-1,KEYBOARD_KEY:0,MOUSE_BUTTON:1,KEYBOARD_MODIFIER_KEY:2,GAMEPAD_BUTTON:3},ra=D({type:De(Rl),code:Z(),name:y()}),Dl={UNHANDLED:-1,PUSH_TO_TALK:"PUSH_TO_TALK",VOICE_ACTIVITY:"VOICE_ACTIVITY"},xl=D({type:De(Dl),auto_threshold:F(),threshold:Z(),shortcut:ee(ra),delay:Z()}),Oi=D({device_id:y(),volume:Z(),available_devices:ee(Ol)}),Ll={UNHANDLED:-1,AUDIO_INPUT:"AUDIO_INPUT",AUDIO_OUTPUT:"AUDIO_OUTPUT",VIDEO_INPUT:"VIDEO_INPUT"};D({type:De(Ll),id:y(),vendor:D({name:y(),url:y()}),model:D({name:y(),url:y()}),related:ee(y()),echo_cancellation:F().optional().nullable(),noise_suppression:F().optional().nullable(),automatic_gain_control:F().optional().nullable(),hardware_mute:F().optional().nullable()});const Pl={UNHANDLED:-1,APPLICATION:1,DLC:2,CONSUMABLE:3,BUNDLE:4,SUBSCRIPTION:5},Ml=D({id:y(),name:y(),type:De(Pl),price:D({amount:Z(),currency:y()}),application_id:y(),flags:Z(),release_date:y().nullable()}),kl={UNHANDLED:-1,PURCHASE:1,PREMIUM_SUBSCRIPTION:2,DEVELOPER_GIFT:3,TEST_MODE_PURCHASE:4,FREE_PURCHASE:5,USER_GIFT:6,PREMIUM_PURCHASE:7},ai=D({id:y(),sku_id:y(),application_id:y(),user_id:y(),gift_code_flags:Z(),type:De(kl),gifter_user_id:y().optional().nullable(),branches:ee(y()).optional().nullable(),starts_at:y().optional().nullable(),ends_at:y().optional().nullable(),parent_id:y().optional().nullable(),consumed:F().optional().nullable(),deleted:F().optional().nullable(),gift_code_batch_id:y().optional().nullable()}),Ul={UNHANDLED:-1,UNLOCKED:1,PORTRAIT:2,LANDSCAPE:3};De(Ul);const Bl={UNHANDLED:-1,NOMINAL:0,FAIR:1,SERIOUS:2,CRITICAL:3},Zl=De(Bl),ia={UNHANDLED:-1,PORTRAIT:0,LANDSCAPE:1};De(ia);const aa={UNHANDLED:-1,FOCUSED:0,PIP:1,GRID:2};De(aa);const si="ERROR";var ae;(function(e){e.READY="READY",e.VOICE_STATE_UPDATE="VOICE_STATE_UPDATE",e.SPEAKING_START="SPEAKING_START",e.SPEAKING_STOP="SPEAKING_STOP",e.ACTIVITY_LAYOUT_MODE_UPDATE="ACTIVITY_LAYOUT_MODE_UPDATE",e.ORIENTATION_UPDATE="ORIENTATION_UPDATE",e.CURRENT_USER_UPDATE="CURRENT_USER_UPDATE",e.ENTITLEMENT_CREATE="ENTITLEMENT_CREATE",e.THERMAL_STATE_UPDATE="THERMAL_STATE_UPDATE",e.ACTIVITY_INSTANCE_PARTICIPANTS_UPDATE="ACTIVITY_INSTANCE_PARTICIPANTS_UPDATE"})(ae||(ae={}));const qe=tn.extend({evt:en(ae),nonce:y().nullable(),cmd:ye(ll),data:D({}).passthrough()}),sa=tn.extend({evt:ye(si),data:D({code:Z(),message:y().optional()}).passthrough(),cmd:en(G),nonce:y().nullable()}),Gl=qe.extend({evt:y()}),Vl=ti([qe,Gl,sa]);function Hl(e){const t=e.evt;if(!(t in ae))throw new Error(`Unrecognized event type ${e.evt}`);return jl[t].payload.parse(e)}const jl={[ae.READY]:{payload:qe.extend({evt:ye(ae.READY),data:D({v:Z(),config:D({cdn_host:y().optional(),api_endpoint:y(),environment:y()}),user:D({id:y(),username:y(),discriminator:y(),avatar:y().optional()}).optional()})})},[ae.VOICE_STATE_UPDATE]:{payload:qe.extend({evt:ye(ae.VOICE_STATE_UPDATE),data:ea}),subscribeArgs:D({channel_id:y()})},[ae.SPEAKING_START]:{payload:qe.extend({evt:ye(ae.SPEAKING_START),data:D({lobby_id:y().optional(),channel_id:y().optional(),user_id:y()})}),subscribeArgs:D({lobby_id:y().nullable().optional(),channel_id:y().nullable().optional()})},[ae.SPEAKING_STOP]:{payload:qe.extend({evt:ye(ae.SPEAKING_STOP),data:D({lobby_id:y().optional(),channel_id:y().optional(),user_id:y()})}),subscribeArgs:D({lobby_id:y().nullable().optional(),channel_id:y().nullable().optional()})},[ae.ACTIVITY_LAYOUT_MODE_UPDATE]:{payload:qe.extend({evt:ye(ae.ACTIVITY_LAYOUT_MODE_UPDATE),data:D({layout_mode:De(aa)})})},[ae.ORIENTATION_UPDATE]:{payload:qe.extend({evt:ye(ae.ORIENTATION_UPDATE),data:D({screen_orientation:De(ia),orientation:en(zr)})})},[ae.CURRENT_USER_UPDATE]:{payload:qe.extend({evt:ye(ae.CURRENT_USER_UPDATE),data:It})},[ae.ENTITLEMENT_CREATE]:{payload:qe.extend({evt:ye(ae.ENTITLEMENT_CREATE),data:D({entitlement:ai})})},[ae.THERMAL_STATE_UPDATE]:{payload:qe.extend({evt:ye(ae.THERMAL_STATE_UPDATE),data:D({thermal_state:Zl})})},[ae.ACTIVITY_INSTANCE_PARTICIPANTS_UPDATE]:{payload:qe.extend({evt:ye(ae.ACTIVITY_INSTANCE_PARTICIPANTS_UPDATE),data:D({participants:Ji.shape.participants})})}};function ql(e,t){throw t}const Rn=D({}).nullable(),oa=D({code:y()}),Kl=D({guilds:ee(D({id:y(),name:y()}))}),$l=D({id:y(),name:y(),icon_url:y().optional(),members:ee(ri)}),Qt=D({id:y(),type:De(ta),guild_id:y().optional().nullable(),name:y().optional().nullable(),topic:y().optional().nullable(),bitrate:Z().optional().nullable(),user_limit:Z().optional().nullable(),position:Z().optional().nullable(),voice_states:ee(ea),messages:ee(Nl)}),Fl=D({channels:ee(na)});Qt.nullable();const Yl=Qt.nullable(),Xl=Qt.nullable();D({input:Oi,output:Oi,mode:xl,automatic_gain_control:F(),echo_cancellation:F(),noise_suppression:F(),qos:F(),silence_warning:F(),deaf:F(),mute:F()});const zl=D({evt:y()}),Wl=D({shortcut:ra}),la=dn,ua=D({skus:ee(Ml)}),ca=D({entitlements:ee(ai)}),fa=ee(ai).nullable(),pa=D({use_interactive_pip:F()}),da=D({locale:y()}),ha=D({enabled:F()}),ga=D({permissions:ji().or(y())}),ma=D({iosKeyboardResizesView:qi(F())}),Jl=tn.extend({cmd:en(G),evt:ei()});function Cl({cmd:e,data:t}){switch(e){case G.AUTHORIZE:return oa.parse(t);case G.CAPTURE_SHORTCUT:return Wl.parse(t);case G.ENCOURAGE_HW_ACCELERATION:return ha.parse(t);case G.GET_CHANNEL:return Qt.parse(t);case G.GET_CHANNELS:return Fl.parse(t);case G.GET_CHANNEL_PERMISSIONS:return ga.parse(t);case G.GET_GUILD:return $l.parse(t);case G.GET_GUILDS:return Kl.parse(t);case G.GET_PLATFORM_BEHAVIORS:return ma.parse(t);case G.GET_CHANNEL:return Qt.parse(t);case G.SELECT_TEXT_CHANNEL:return Xl.parse(t);case G.SELECT_VOICE_CHANNEL:return Yl.parse(t);case G.SET_ACTIVITY:return la.parse(t);case G.GET_SKUS_EMBEDDED:return ua.parse(t);case G.GET_ENTITLEMENTS_EMBEDDED:return ca.parse(t);case G.SET_CONFIG:return pa.parse(t);case G.START_PURCHASE:return fa.parse(t);case G.SUBSCRIBE:case G.UNSUBSCRIBE:return zl.parse(t);case G.USER_SETTINGS_GET_LOCALE:return da.parse(t);case G.OPEN_EXTERNAL_LINK:case G.SET_ORIENTATION_LOCK_STATE:case G.SET_CERTIFIED_DEVICES:case G.SEND_ANALYTICS_EVENT:case G.OPEN_INVITE_DIALOG:case G.CAPTURE_LOG:case G.GET_SKUS:case G.GET_ENTITLEMENTS:return Rn.parse(t);case G.AUTHENTICATE:case G.INITIATE_IMAGE_UPLOAD:case G.OPEN_SHARE_MOMENT_DIALOG:case G.GET_ACTIVITY_INSTANCE_CONNECTED_PARTICIPANTS:const{response:n}=Ci[e];return n.parse(t);default:ql(e,new Error(`Unrecognized command ${e}`))}}function Ql(e){return Object.assign(Object.assign({},e),{data:Cl(e)})}D({frame_id:y(),platform:en(Mt).optional().nullable()});D({v:ye(1),encoding:ye("json").optional(),client_id:y(),frame_id:y()});const eu=D({code:Z(),message:y().optional()}),tu=D({evt:y().nullable(),nonce:y().nullable(),data:In().nullable(),cmd:y()}).passthrough();function nu(e){const t=tu.parse(e);return t.evt!=null?t.evt===si?sa.parse(t):Hl(Vl.parse(t)):Ql(Jl.passthrough().parse(t))}function Be(e,t,n,r=()=>{}){const i=tn.extend({cmd:ye(t),data:n});return async a=>{const l=await e({cmd:t,args:a,transfer:r(a)});return i.parse(l).data}}function vr(e,t=()=>{}){const n=Ci[e].response,r=tn.extend({cmd:ye(e),data:n});return i=>async a=>{const l=await i({cmd:e,args:a,transfer:t(a)});return r.parse(l).data}}const ru=vr(Qe.AUTHENTICATE),iu=e=>Be(e,G.AUTHORIZE,oa),au=e=>Be(e,G.CAPTURE_LOG,Rn),su=e=>Be(e,G.ENCOURAGE_HW_ACCELERATION,ha),ou=e=>Be(e,G.GET_ENTITLEMENTS_EMBEDDED,ca),lu=e=>Be(e,G.GET_SKUS_EMBEDDED,ua),uu=e=>Be(e,G.GET_CHANNEL_PERMISSIONS,ga),cu=e=>Be(e,G.GET_PLATFORM_BEHAVIORS,ma),fu=e=>Be(e,G.OPEN_EXTERNAL_LINK,Rn),pu=e=>Be(e,G.OPEN_INVITE_DIALOG,Rn),du=vr(Qe.OPEN_SHARE_MOMENT_DIALOG);dn.pick({state:!0,details:!0,timestamps:!0,assets:!0,party:!0,secrets:!0,buttons:!0,instance:!0,supported_platforms:!0,type:!0}).extend({type:dn.shape.type.optional(),instance:dn.shape.instance.optional()}).nullable();const hu=e=>Be(e,G.SET_ACTIVITY,la),gu=e=>Be(e,G.SET_CONFIG,pa);function mu({sendCommand:e,cmd:t,response:n,fallbackTransform:r,transferTransform:i=()=>{}}){const a=tn.extend({cmd:ye(t),data:n});return async l=>{try{const c=await e({cmd:t,args:l,transfer:i(l)});return a.parse(c).data}catch(c){if(c.code===Xr.INVALID_PAYLOAD){const h=r(l),p=await e({cmd:t,args:h,transfer:i(h)});return a.parse(p).data}else throw c}}}const _u=e=>({lock_state:e.lock_state,picture_in_picture_lock_state:e.picture_in_picture_lock_state}),vu=e=>mu({sendCommand:e,cmd:G.SET_ORIENTATION_LOCK_STATE,response:Rn,fallbackTransform:_u}),yu=e=>Be(e,G.START_PURCHASE,fa),Eu=e=>Be(e,G.USER_SETTINGS_GET_LOCALE,da),Tu=vr(Qe.INITIATE_IMAGE_UPLOAD),bu=e=>Be(e,G.GET_CHANNEL,Qt),Au=vr(Qe.GET_ACTIVITY_INSTANCE_CONNECTED_PARTICIPANTS);function wu(e){return{authenticate:ru(e),authorize:iu(e),captureLog:au(e),encourageHardwareAcceleration:su(e),getChannel:bu(e),getChannelPermissions:uu(e),getEntitlements:ou(e),getPlatformBehaviors:cu(e),getSkus:lu(e),openExternalLink:fu(e),openInviteDialog:pu(e),openShareMomentDialog:du(e),setActivity:hu(e),setConfig:gu(e),setOrientationLockState:vu(e),startPurchase:yu(e),userSettingsGetLocale:Eu(e),initiateImageUpload:Tu(e),getInstanceConnectedParticipants:Au(e)}}var Su=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function _a(e){return typeof e=="string"&&Su.test(e)}var Te=[];for(var Zr=0;Zr<256;++Zr)Te.push((Zr+256).toString(16).substr(1));function va(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(Te[e[t+0]]+Te[e[t+1]]+Te[e[t+2]]+Te[e[t+3]]+"-"+Te[e[t+4]]+Te[e[t+5]]+"-"+Te[e[t+6]]+Te[e[t+7]]+"-"+Te[e[t+8]]+Te[e[t+9]]+"-"+Te[e[t+10]]+Te[e[t+11]]+Te[e[t+12]]+Te[e[t+13]]+Te[e[t+14]]+Te[e[t+15]]).toLowerCase();if(!_a(n))throw TypeError("Stringified UUID is invalid");return n}function Iu(e){if(!_a(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=t&255,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=t&255,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=t&255,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=t&255,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=t&255,n}function Nu(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n>5]>>>i%32&255,l=parseInt(r.charAt(a>>>4&15)+r.charAt(a&15),16);t.push(l)}return t}function Ea(e){return(e+64>>>9<<4)+14+1}function Lu(e,t){e[t>>5]|=128<>5]|=(e[r/8]&255)<>16)+(t>>16)+(n>>16);return r<<16|n&65535}function Mu(e,t){return e<>>32-t}function yr(e,t,n,r,i,a){return bt(Mu(bt(bt(t,e),bt(r,a)),i),n)}function Se(e,t,n,r,i,a,l){return yr(t&n|~t&r,e,t,i,a,l)}function Ie(e,t,n,r,i,a,l){return yr(t&r|n&~r,e,t,i,a,l)}function Ne(e,t,n,r,i,a,l){return yr(t^n^r,e,t,i,a,l)}function Oe(e,t,n,r,i,a,l){return yr(n^(t|~r),e,t,i,a,l)}ya("v3",48,Du);var nr,ku=new Uint8Array(16);function Uu(){if(!nr&&(nr=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!nr))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return nr(ku)}function Ri(e,t,n){e=e||{};var r=e.random||(e.rng||Uu)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return va(r)}function Bu(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:return t^n^r;case 2:return t&n^t&r^n&r;case 3:return t^n^r}}function Gr(e,t){return e<>>32-t}function Zu(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof e=="string"){var r=unescape(encodeURIComponent(e));e=[];for(var i=0;i>>0;C=J,J=ue,ue=Gr(R,30)>>>0,R=B,B=ke}n[0]=n[0]+B>>>0,n[1]=n[1]+R>>>0,n[2]=n[2]+ue>>>0,n[3]=n[3]+J>>>0,n[4]=n[4]+C>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,n[0]&255,n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,n[1]&255,n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,n[2]&255,n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,n[3]&255,n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,n[4]&255]}ya("v5",80,Zu);class Gu extends Error{constructor(t,n=""){super(n),this.code=t,this.message=n,this.name="Discord SDK Error"}}function Vu(){return{disableConsoleLogOverride:!1}}const Hu=["log","warn","debug","info","error"];function ju(e,t,n){const r=e[t],i=e;r&&(e[t]=function(){const a=[].slice.call(arguments),l=""+a.join(" ");n(t,l),r.apply(i,a)})}var dt;(function(e){e[e.HANDSHAKE=0]="HANDSHAKE",e[e.FRAME=1]="FRAME",e[e.CLOSE=2]="CLOSE",e[e.HELLO=3]="HELLO"})(dt||(dt={}));const qu=new Set([window.location.origin,"https://discord.com","https://discordapp.com","https://ptb.discord.com","https://ptb.discordapp.com","https://canary.discord.com","https://canary.discordapp.com","https://staging.discord.co","http://localhost:3333","https://pax.discord.com","null"]);function Ku(){var e;return[(e=window.parent.opener)!==null&&e!==void 0?e:window.parent,document.referrer?document.referrer:"*"]}class $u{getTransfer(t){var n;switch(t.cmd){case G.SUBSCRIBE:case G.UNSUBSCRIBE:return;default:return(n=t.transfer)!==null&&n!==void 0?n:void 0}}constructor(t,n){this.eventBus=new eo,this.source=null,this.sourceOrigin="",this.pendingCommands=new Map,this.sendCommand=c=>{var h;if(this.source==null)throw new Error("Attempting to send message before initialization");const p=Ri();return(h=this.source)===null||h===void 0||h.postMessage([dt.FRAME,Object.assign(Object.assign({},c),{nonce:p})],this.sourceOrigin,this.getTransfer(c)),new Promise((g,A)=>{this.pendingCommands.set(p,{resolve:g,reject:A})})},this.commands=wu(this.sendCommand),this.handleMessage=c=>{if(!qu.has(c.origin))return;const h=c.data;if(!Array.isArray(h))return;const[p,f]=h;switch(p){case dt.HELLO:return;case dt.CLOSE:return this.handleClose(f);case dt.HANDSHAKE:return this.handleHandshake();case dt.FRAME:return this.handleFrame(f);default:throw new Error("Invalid message format")}},this.isReady=!1,this.clientId=t,this.configuration=n??Vu(),window.addEventListener("message",this.handleMessage);const r=new URLSearchParams(window.location.search),i=r.get("frame_id");if(!i)throw new Error("frame_id query param is not defined");this.frameId=i;const a=r.get("instance_id");if(!a)throw new Error("instance_id query param is not defined");this.instanceId=a;const l=r.get("platform");if(l){if(l!==Mt.DESKTOP&&l!==Mt.MOBILE)throw new Error(`Invalid query param "platform" of "${l}". Valid values are "${Mt.DESKTOP}" or "${Mt.MOBILE}"`)}else throw new Error("platform query param is not defined");this.platform=l,this.guildId=r.get("guild_id"),this.channelId=r.get("channel_id"),[this.source,this.sourceOrigin]=Ku(),this.addOnReadyListener(),this.handshake()}close(t,n){var r;window.removeEventListener("message",this.handleMessage);const i=Ri();(r=this.source)===null||r===void 0||r.postMessage([dt.CLOSE,{code:t,message:n,nonce:i}],this.sourceOrigin)}async subscribe(t,n,...r){const[i]=r,a=this.eventBus.listenerCount(t),l=this.eventBus.on(t,n);return Object.values(ae).includes(t)&&t!==ae.READY&&a===0&&await this.sendCommand({cmd:G.SUBSCRIBE,args:i,evt:t}),l}async unsubscribe(t,n,...r){const[i]=r;return t!==ae.READY&&this.eventBus.listenerCount(t)===1&&await this.sendCommand({cmd:G.UNSUBSCRIBE,evt:t,args:i}),this.eventBus.off(t,n)}async ready(){this.isReady||await new Promise(t=>{this.eventBus.once(ae.READY,t)})}handshake(){var t;(t=this.source)===null||t===void 0||t.postMessage([dt.HANDSHAKE,{v:1,encoding:"json",client_id:this.clientId,frame_id:this.frameId}],this.sourceOrigin)}addOnReadyListener(){this.eventBus.once(ae.READY,()=>{this.overrideConsoleLogging(),this.isReady=!0})}overrideConsoleLogging(){if(this.configuration.disableConsoleLogOverride)return;const t=(n,r)=>{this.commands.captureLog({level:n,message:r})};Hu.forEach(n=>{ju(console,n,t)})}handleClose(t){eu.parse(t)}handleHandshake(){}handleFrame(t){var n,r;let i;try{i=nu(t)}catch(a){console.error("Failed to parse",t),console.error(a);return}if(i.cmd==="DISPATCH")this.eventBus.emit(i.evt,i.data);else{if(i.evt===si){if(i.nonce!=null){(n=this.pendingCommands.get(i.nonce))===null||n===void 0||n.reject(i.data),this.pendingCommands.delete(i.nonce);return}this.eventBus.emit("error",new Gu(i.data.code,i.data.message))}if(i.nonce==null){console.error("Missing nonce",t);return}(r=this.pendingCommands.get(i.nonce))===null||r===void 0||r.resolve(i),this.pendingCommands.delete(i.nonce)}}}var nn=1e9,Fu={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Ia,fe=!0,Ke="[DecimalError] ",Ut=Ke+"Invalid argument: ",oi=Ke+"Exponent out of range: ",rn=Math.floor,Pt=Math.pow,Yu=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Ge,Ee=1e7,ce=7,Ta=9007199254740991,dr=rn(Ta/ce),M={};M.absoluteValue=M.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};M.comparedTo=M.cmp=function(e){var t,n,r,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(r=a.d.length,i=e.d.length,t=0,n=re.d[t]^a.s<0?1:-1;return r===i?0:r>i^a.s<0?1:-1};M.decimalPlaces=M.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*ce;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};M.dividedBy=M.div=function(e){return gt(this,new this.constructor(e))};M.dividedToIntegerBy=M.idiv=function(e){var t=this,n=t.constructor;return le(gt(t,new n(e),0,1),n.precision)};M.equals=M.eq=function(e){return!this.cmp(e)};M.exponent=function(){return me(this)};M.greaterThan=M.gt=function(e){return this.cmp(e)>0};M.greaterThanOrEqualTo=M.gte=function(e){return this.cmp(e)>=0};M.isInteger=M.isint=function(){return this.e>this.d.length-2};M.isNegative=M.isneg=function(){return this.s<0};M.isPositive=M.ispos=function(){return this.s>0};M.isZero=function(){return this.s===0};M.lessThan=M.lt=function(e){return this.cmp(e)<0};M.lessThanOrEqualTo=M.lte=function(e){return this.cmp(e)<1};M.logarithm=M.log=function(e){var t,n=this,r=n.constructor,i=r.precision,a=i+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(Ge))throw Error(Ke+"NaN");if(n.s<1)throw Error(Ke+(n.s?"NaN":"-Infinity"));return n.eq(Ge)?new r(0):(fe=!1,t=gt(Nn(n,a),Nn(e,a),a),fe=!0,le(t,i))};M.minus=M.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?wa(t,e):ba(t,(e.s=-e.s,e))};M.modulo=M.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(e=new r(e),!e.s)throw Error(Ke+"NaN");return n.s?(fe=!1,t=gt(n,e,0,1).times(e),fe=!0,n.minus(t)):le(new r(n),i)};M.naturalExponential=M.exp=function(){return Aa(this)};M.naturalLogarithm=M.ln=function(){return Nn(this)};M.negated=M.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};M.plus=M.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?ba(t,e):wa(t,(e.s=-e.s,e))};M.precision=M.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Ut+e);if(t=me(i)+1,r=i.d.length-1,n=r*ce+1,r=i.d[r],r){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};M.squareRoot=M.sqrt=function(){var e,t,n,r,i,a,l,c=this,h=c.constructor;if(c.s<1){if(!c.s)return new h(0);throw Error(Ke+"NaN")}for(e=me(c),fe=!1,i=Math.sqrt(+c),i==0||i==1/0?(t=et(c.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=rn((e+1)/2)-(e<0||e%2),i==1/0?t="1e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new h(t)):r=new h(i.toString()),n=h.precision,i=l=n+3;;)if(a=r,r=a.plus(gt(c,a,l+2)).times(.5),et(a.d).slice(0,l)===(t=et(r.d)).slice(0,l)){if(t=t.slice(l-3,l+1),i==l&&t=="4999"){if(le(a,n+1,0),a.times(a).eq(c)){r=a;break}}else if(t!="9999")break;l+=4}return fe=!0,le(r,n)};M.times=M.mul=function(e){var t,n,r,i,a,l,c,h,p,f=this,g=f.constructor,A=f.d,x=(e=new g(e)).d;if(!f.s||!e.s)return new g(0);for(e.s*=f.s,n=f.e+e.e,h=A.length,p=x.length,h=0;){for(t=0,i=h+r;i>r;)c=a[i]+x[r]*A[i-r-1]+t,a[i--]=c%Ee|0,t=c/Ee|0;a[i]=(a[i]+t)%Ee|0}for(;!a[--l];)a.pop();return t?++n:a.shift(),e.d=a,e.e=n,fe?le(e,g.precision):e};M.toDecimalPlaces=M.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(rt(e,0,nn),t===void 0?t=r.rounding:rt(t,0,8),le(n,e+me(n)+1,t))};M.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=Vt(r,!0):(rt(e,0,nn),t===void 0?t=i.rounding:rt(t,0,8),r=le(new i(r),e+1,t),n=Vt(r,!0,e+1)),n};M.toFixed=function(e,t){var n,r,i=this,a=i.constructor;return e===void 0?Vt(i):(rt(e,0,nn),t===void 0?t=a.rounding:rt(t,0,8),r=le(new a(i),e+me(i)+1,t),n=Vt(r.abs(),!1,e+me(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)};M.toInteger=M.toint=function(){var e=this,t=e.constructor;return le(new t(e),me(e)+1,t.rounding)};M.toNumber=function(){return+this};M.toPower=M.pow=function(e){var t,n,r,i,a,l,c=this,h=c.constructor,p=12,f=+(e=new h(e));if(!e.s)return new h(Ge);if(c=new h(c),!c.s){if(e.s<1)throw Error(Ke+"Infinity");return c}if(c.eq(Ge))return c;if(r=h.precision,e.eq(Ge))return le(c,r);if(t=e.e,n=e.d.length-1,l=t>=n,a=c.s,l){if((n=f<0?-f:f)<=Ta){for(i=new h(Ge),t=Math.ceil(r/ce+4),fe=!1;n%2&&(i=i.times(c),xi(i.d,t)),n=rn(n/2),n!==0;)c=c.times(c),xi(c.d,t);return fe=!0,e.s<0?new h(Ge).div(i):le(i,r)}}else if(a<0)throw Error(Ke+"NaN");return a=a<0&&e.d[Math.max(t,n)]&1?-1:1,c.s=1,fe=!1,i=e.times(Nn(c,r+p)),fe=!0,i=Aa(i),i.s=a,i};M.toPrecision=function(e,t){var n,r,i=this,a=i.constructor;return e===void 0?(n=me(i),r=Vt(i,n<=a.toExpNeg||n>=a.toExpPos)):(rt(e,1,nn),t===void 0?t=a.rounding:rt(t,0,8),i=le(new a(i),e,t),n=me(i),r=Vt(i,e<=n||n<=a.toExpNeg,e)),r};M.toSignificantDigits=M.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(rt(e,1,nn),t===void 0?t=r.rounding:rt(t,0,8)),le(new r(n),e,t)};M.toString=M.valueOf=M.val=M.toJSON=M[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=me(e),n=e.constructor;return Vt(e,t<=n.toExpNeg||t>=n.toExpPos)};function ba(e,t){var n,r,i,a,l,c,h,p,f=e.constructor,g=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),fe?le(t,g):t;if(h=e.d,p=t.d,l=e.e,i=t.e,h=h.slice(),a=l-i,a){for(a<0?(r=h,a=-a,c=p.length):(r=p,i=l,c=h.length),l=Math.ceil(g/ce),c=l>c?l+1:c+1,a>c&&(a=c,r.length=1),r.reverse();a--;)r.push(0);r.reverse()}for(c=h.length,a=p.length,c-a<0&&(a=c,r=p,p=h,h=r),n=0;a;)n=(h[--a]=h[a]+p[a]+n)/Ee|0,h[a]%=Ee;for(n&&(h.unshift(n),++i),c=h.length;h[--c]==0;)h.pop();return t.d=h,t.e=i,fe?le(t,g):t}function rt(e,t,n){if(e!==~~e||en)throw Error(Ut+e)}function et(e){var t,n,r,i=e.length-1,a="",l=e[0];if(i>0){for(a+=l,t=1;tl?1:-1;else for(c=h=0;ci[c]?1:-1;break}return h}function n(r,i,a){for(var l=0;a--;)r[a]-=l,l=r[a]1;)r.shift()}return function(r,i,a,l){var c,h,p,f,g,A,x,j,B,R,ue,J,C,ge,pe,ke,Ae,Ze,$e=r.constructor,Ve=r.s==i.s?1:-1,xe=r.d,oe=i.d;if(!r.s)return new $e(r);if(!i.s)throw Error(Ke+"Division by zero");for(h=r.e-i.e,Ae=oe.length,pe=xe.length,x=new $e(Ve),j=x.d=[],p=0;oe[p]==(xe[p]||0);)++p;if(oe[p]>(xe[p]||0)&&--h,a==null?J=a=$e.precision:l?J=a+(me(r)-me(i))+1:J=a,J<0)return new $e(0);if(J=J/ce+2|0,p=0,Ae==1)for(f=0,oe=oe[0],J++;(p1&&(oe=e(oe,f),xe=e(xe,f),Ae=oe.length,pe=xe.length),ge=Ae,B=xe.slice(0,Ae),R=B.length;R=Ee/2&&++ke;do f=0,c=t(oe,B,Ae,R),c<0?(ue=B[0],Ae!=R&&(ue=ue*Ee+(B[1]||0)),f=ue/ke|0,f>1?(f>=Ee&&(f=Ee-1),g=e(oe,f),A=g.length,R=B.length,c=t(g,B,A,R),c==1&&(f--,n(g,Ae16)throw Error(oi+me(e));if(!e.s)return new f(Ge);for(t==null?(fe=!1,c=g):c=t,l=new f(.03125);e.abs().gte(.1);)e=e.times(l),p+=5;for(r=Math.log(Pt(2,p))/Math.LN10*2+5|0,c+=r,n=i=a=new f(Ge),f.precision=c;;){if(i=le(i.times(e),c),n=n.times(++h),l=a.plus(gt(i,n,c)),et(l.d).slice(0,c)===et(a.d).slice(0,c)){for(;p--;)a=le(a.times(a),c);return f.precision=g,t==null?(fe=!0,le(a,g)):a}a=l}}function me(e){for(var t=e.e*ce,n=e.d[0];n>=10;n/=10)t++;return t}function Vr(e,t,n){if(t>e.LN10.sd())throw fe=!0,n&&(e.precision=n),Error(Ke+"LN10 precision limit exceeded");return le(new e(e.LN10),t)}function yt(e){for(var t="";e--;)t+="0";return t}function Nn(e,t){var n,r,i,a,l,c,h,p,f,g=1,A=10,x=e,j=x.d,B=x.constructor,R=B.precision;if(x.s<1)throw Error(Ke+(x.s?"NaN":"-Infinity"));if(x.eq(Ge))return new B(0);if(t==null?(fe=!1,p=R):p=t,x.eq(10))return t==null&&(fe=!0),Vr(B,p);if(p+=A,B.precision=p,n=et(j),r=n.charAt(0),a=me(x),Math.abs(a)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)x=x.times(e),n=et(x.d),r=n.charAt(0),g++;a=me(x),r>1?(x=new B("0."+n),a++):x=new B(r+"."+n.slice(1))}else return h=Vr(B,p+2,R).times(a+""),x=Nn(new B(r+"."+n.slice(1)),p-A).plus(h),B.precision=R,t==null?(fe=!0,le(x,R)):x;for(c=l=x=gt(x.minus(Ge),x.plus(Ge),p),f=le(x.times(x),p),i=3;;){if(l=le(l.times(f),p),h=c.plus(gt(l,new B(i),p)),et(h.d).slice(0,p)===et(c.d).slice(0,p))return c=c.times(2),a!==0&&(c=c.plus(Vr(B,p+2,R).times(a+""))),c=gt(c,new B(g),p),B.precision=R,t==null?(fe=!0,le(c,R)):c;c=h,i+=2}}function Di(e,t){var n,r,i;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(r,i),t){if(i-=r,n=n-r-1,e.e=rn(n/ce),e.d=[],r=(n+1)%ce,n<0&&(r+=ce),rdr||e.e<-dr))throw Error(oi+n)}else e.s=0,e.e=0,e.d=[0];return e}function le(e,t,n){var r,i,a,l,c,h,p,f,g=e.d;for(l=1,a=g[0];a>=10;a/=10)l++;if(r=t-l,r<0)r+=ce,i=t,p=g[f=0];else{if(f=Math.ceil((r+1)/ce),a=g.length,f>=a)return e;for(p=a=g[f],l=1;a>=10;a/=10)l++;r%=ce,i=r-ce+l}if(n!==void 0&&(a=Pt(10,l-i-1),c=p/a%10|0,h=t<0||g[f+1]!==void 0||p%a,h=n<4?(c||h)&&(n==0||n==(e.s<0?3:2)):c>5||c==5&&(n==4||h||n==6&&(r>0?i>0?p/Pt(10,l-i):0:g[f-1])%10&1||n==(e.s<0?8:7))),t<1||!g[0])return h?(a=me(e),g.length=1,t=t-a-1,g[0]=Pt(10,(ce-t%ce)%ce),e.e=rn(-t/ce)||0):(g.length=1,g[0]=e.e=e.s=0),e;if(r==0?(g.length=f,a=1,f--):(g.length=f+1,a=Pt(10,ce-r),g[f]=i>0?(p/Pt(10,l-i)%Pt(10,i)|0)*a:0),h)for(;;)if(f==0){(g[0]+=a)==Ee&&(g[0]=1,++e.e);break}else{if(g[f]+=a,g[f]!=Ee)break;g[f--]=0,a=1}for(r=g.length;g[--r]===0;)g.pop();if(fe&&(e.e>dr||e.e<-dr))throw Error(oi+me(e));return e}function wa(e,t){var n,r,i,a,l,c,h,p,f,g,A=e.constructor,x=A.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new A(e),fe?le(t,x):t;if(h=e.d,g=t.d,r=t.e,p=e.e,h=h.slice(),l=p-r,l){for(f=l<0,f?(n=h,l=-l,c=g.length):(n=g,r=p,c=h.length),i=Math.max(Math.ceil(x/ce),c)+2,l>i&&(l=i,n.length=1),n.reverse(),i=l;i--;)n.push(0);n.reverse()}else{for(i=h.length,c=g.length,f=i0;--i)h[c++]=0;for(i=g.length;i>l;){if(h[--i]0?a=a.charAt(0)+"."+a.slice(1)+yt(r):l>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+yt(-i-1)+a,n&&(r=n-l)>0&&(a+=yt(r))):i>=l?(a+=yt(i+1-l),n&&(r=n-i-1)>0&&(a=a+"."+yt(r))):((r=i+1)0&&(i+1===l&&(a+="."),a+=yt(r))),e.s<0?"-"+a:a}function xi(e,t){if(e.length>t)return e.length=t,!0}function Sa(e){var t,n,r;function i(a){var l=this;if(!(l instanceof i))return new i(a);if(l.constructor=i,a instanceof i){l.s=a.s,l.e=a.e,l.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(Ut+a);if(a>0)l.s=1;else if(a<0)a=-a,l.s=-1;else{l.s=0,l.e=0,l.d=[0];return}if(a===~~a&&a<1e7){l.e=0,l.d=[a];return}return Di(l,a.toString())}else if(typeof a!="string")throw Error(Ut+a);if(a.charCodeAt(0)===45?(a=a.slice(1),l.s=-1):l.s=1,Yu.test(a))Di(l,a);else throw Error(Ut+a)}if(i.prototype=M,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=Sa,i.config=i.set=Xu,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(Ut+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(Ut+n+": "+r);return this}var Ia=Sa(Fu);Ge=new Ia(1);var _;(function(e){e.AED="aed",e.AFN="afn",e.ALL="all",e.AMD="amd",e.ANG="ang",e.AOA="aoa",e.ARS="ars",e.AUD="aud",e.AWG="awg",e.AZN="azn",e.BAM="bam",e.BBD="bbd",e.BDT="bdt",e.BGN="bgn",e.BHD="bhd",e.BIF="bif",e.BMD="bmd",e.BND="bnd",e.BOB="bob",e.BOV="bov",e.BRL="brl",e.BSD="bsd",e.BTN="btn",e.BWP="bwp",e.BYN="byn",e.BYR="byr",e.BZD="bzd",e.CAD="cad",e.CDF="cdf",e.CHE="che",e.CHF="chf",e.CHW="chw",e.CLF="clf",e.CLP="clp",e.CNY="cny",e.COP="cop",e.COU="cou",e.CRC="crc",e.CUC="cuc",e.CUP="cup",e.CVE="cve",e.CZK="czk",e.DJF="djf",e.DKK="dkk",e.DOP="dop",e.DZD="dzd",e.EGP="egp",e.ERN="ern",e.ETB="etb",e.EUR="eur",e.FJD="fjd",e.FKP="fkp",e.GBP="gbp",e.GEL="gel",e.GHS="ghs",e.GIP="gip",e.GMD="gmd",e.GNF="gnf",e.GTQ="gtq",e.GYD="gyd",e.HKD="hkd",e.HNL="hnl",e.HRK="hrk",e.HTG="htg",e.HUF="huf",e.IDR="idr",e.ILS="ils",e.INR="inr",e.IQD="iqd",e.IRR="irr",e.ISK="isk",e.JMD="jmd",e.JOD="jod",e.JPY="jpy",e.KES="kes",e.KGS="kgs",e.KHR="khr",e.KMF="kmf",e.KPW="kpw",e.KRW="krw",e.KWD="kwd",e.KYD="kyd",e.KZT="kzt",e.LAK="lak",e.LBP="lbp",e.LKR="lkr",e.LRD="lrd",e.LSL="lsl",e.LTL="ltl",e.LVL="lvl",e.LYD="lyd",e.MAD="mad",e.MDL="mdl",e.MGA="mga",e.MKD="mkd",e.MMK="mmk",e.MNT="mnt",e.MOP="mop",e.MRO="mro",e.MUR="mur",e.MVR="mvr",e.MWK="mwk",e.MXN="mxn",e.MXV="mxv",e.MYR="myr",e.MZN="mzn",e.NAD="nad",e.NGN="ngn",e.NIO="nio",e.NOK="nok",e.NPR="npr",e.NZD="nzd",e.OMR="omr",e.PAB="pab",e.PEN="pen",e.PGK="pgk",e.PHP="php",e.PKR="pkr",e.PLN="pln",e.PYG="pyg",e.QAR="qar",e.RON="ron",e.RSD="rsd",e.RUB="rub",e.RWF="rwf",e.SAR="sar",e.SBD="sbd",e.SCR="scr",e.SDG="sdg",e.SEK="sek",e.SGD="sgd",e.SHP="shp",e.SLL="sll",e.SOS="sos",e.SRD="srd",e.SSP="ssp",e.STD="std",e.SVC="svc",e.SYP="syp",e.SZL="szl",e.THB="thb",e.TJS="tjs",e.TMT="tmt",e.TND="tnd",e.TOP="top",e.TRY="try",e.TTD="ttd",e.TWD="twd",e.TZS="tzs",e.UAH="uah",e.UGX="ugx",e.USD="usd",e.USN="usn",e.USS="uss",e.UYI="uyi",e.UYU="uyu",e.UZS="uzs",e.VEF="vef",e.VND="vnd",e.VUV="vuv",e.WST="wst",e.XAF="xaf",e.XAG="xag",e.XAU="xau",e.XBA="xba",e.XBB="xbb",e.XBC="xbc",e.XBD="xbd",e.XCD="xcd",e.XDR="xdr",e.XFU="xfu",e.XOF="xof",e.XPD="xpd",e.XPF="xpf",e.XPT="xpt",e.XSU="xsu",e.XTS="xts",e.XUA="xua",e.YER="yer",e.ZAR="zar",e.ZMW="zmw",e.ZWL="zwl"})(_||(_={}));_.AED+"",_.AFN+"",_.ALL+"",_.AMD+"",_.ANG+"",_.AOA+"",_.ARS+"",_.AUD+"",_.AWG+"",_.AZN+"",_.BAM+"",_.BBD+"",_.BDT+"",_.BGN+"",_.BHD+"",_.BIF+"",_.BMD+"",_.BND+"",_.BOB+"",_.BOV+"",_.BRL+"",_.BSD+"",_.BTN+"",_.BWP+"",_.BYR+"",_.BYN+"",_.BZD+"",_.CAD+"",_.CDF+"",_.CHE+"",_.CHF+"",_.CHW+"",_.CLF+"",_.CLP+"",_.CNY+"",_.COP+"",_.COU+"",_.CRC+"",_.CUC+"",_.CUP+"",_.CVE+"",_.CZK+"",_.DJF+"",_.DKK+"",_.DOP+"",_.DZD+"",_.EGP+"",_.ERN+"",_.ETB+"",_.EUR+"",_.FJD+"",_.FKP+"",_.GBP+"",_.GEL+"",_.GHS+"",_.GIP+"",_.GMD+"",_.GNF+"",_.GTQ+"",_.GYD+"",_.HKD+"",_.HNL+"",_.HRK+"",_.HTG+"",_.HUF+"",_.IDR+"",_.ILS+"",_.INR+"",_.IQD+"",_.IRR+"",_.ISK+"",_.JMD+"",_.JOD+"",_.JPY+"",_.KES+"",_.KGS+"",_.KHR+"",_.KMF+"",_.KPW+"",_.KRW+"",_.KWD+"",_.KYD+"",_.KZT+"",_.LAK+"",_.LBP+"",_.LKR+"",_.LRD+"",_.LSL+"",_.LTL+"",_.LVL+"",_.LYD+"",_.MAD+"",_.MDL+"",_.MGA+"",_.MKD+"",_.MMK+"",_.MNT+"",_.MOP+"",_.MRO+"",_.MUR+"",_.MVR+"",_.MWK+"",_.MXN+"",_.MXV+"",_.MYR+"",_.MZN+"",_.NAD+"",_.NGN+"",_.NIO+"",_.NOK+"",_.NPR+"",_.NZD+"",_.OMR+"",_.PAB+"",_.PEN+"",_.PGK+"",_.PHP+"",_.PKR+"",_.PLN+"",_.PYG+"",_.QAR+"",_.RON+"",_.RSD+"",_.RUB+"",_.RWF+"",_.SAR+"",_.SBD+"",_.SCR+"",_.SDG+"",_.SEK+"",_.SGD+"",_.SHP+"",_.SLL+"",_.SOS+"",_.SRD+"",_.SSP+"",_.STD+"",_.SVC+"",_.SYP+"",_.SZL+"",_.THB+"",_.TJS+"",_.TMT+"",_.TND+"",_.TOP+"",_.TRY+"",_.TTD+"",_.TWD+"",_.TZS+"",_.UAH+"",_.UGX+"",_.USD+"",_.USN+"",_.USS+"",_.UYI+"",_.UYU+"",_.UZS+"",_.VEF+"",_.VND+"",_.VUV+"",_.WST+"",_.XAF+"",_.XAG+"",_.XAU+"",_.XBA+"",_.XBB+"",_.XBC+"",_.XBD+"",_.XCD+"",_.XDR+"",_.XFU+"",_.XOF+"",_.XPD+"",_.XPF+"",_.XPT+"",_.XSU+"",_.XTS+"",_.XUA+"",_.YER+"",_.ZAR+"",_.ZMW+"",_.ZWL+"";var hr={exports:{}};hr.exports;(function(e,t){var n=200,r="Expected a function",i="__lodash_hash_undefined__",a=1,l=2,c=1/0,h=9007199254740991,p="[object Arguments]",f="[object Array]",g="[object Boolean]",A="[object Date]",x="[object Error]",j="[object Function]",B="[object GeneratorFunction]",R="[object Map]",ue="[object Number]",J="[object Object]",C="[object Promise]",ge="[object RegExp]",pe="[object Set]",ke="[object String]",Ae="[object Symbol]",Ze="[object WeakMap]",$e="[object ArrayBuffer]",Ve="[object DataView]",xe="[object Float32Array]",oe="[object Float64Array]",Er="[object Int8Array]",Dn="[object Int16Array]",xn="[object Int32Array]",Tr="[object Uint8Array]",br="[object Uint8ClampedArray]",Ln="[object Uint16Array]",it="[object Uint32Array]",at=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Pn=/^\w*$/,an=/^\./,Fe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ot=/[\\^$.*+?()[\]{}|]/g,st=/\\(\\)?/g,Mn=/^\[object .+?Constructor\]$/,sn=/^(?:0|[1-9]\d*)$/,ie={};ie[xe]=ie[oe]=ie[Er]=ie[Dn]=ie[xn]=ie[Tr]=ie[br]=ie[Ln]=ie[it]=!0,ie[p]=ie[f]=ie[$e]=ie[g]=ie[Ve]=ie[A]=ie[x]=ie[j]=ie[R]=ie[ue]=ie[J]=ie[ge]=ie[pe]=ie[ke]=ie[Ze]=!1;var kn=typeof Qn=="object"&&Qn&&Qn.Object===Object&&Qn,Ht=typeof self=="object"&&self&&self.Object===Object&&self,Ye=kn||Ht||Function("return this")(),on=t&&!t.nodeType&&t,jt=on&&!0&&e&&!e.nodeType&&e,Un=jt&&jt.exports===on,Bn=Un&&kn.process,Zn=function(){try{return Bn&&Bn.binding("util")}catch{}}(),Gn=Zn&&Zn.isTypedArray;function Vn(o,d){for(var b=-1,N=o?o.length:0;++b-1}function qa(o,d){var b=this.__data__,N=$n(b,o);return N<0?b.push([o,d]):b[N][1]=d,this}lt.prototype.clear=Ga,lt.prototype.delete=Va,lt.prototype.get=Ha,lt.prototype.has=ja,lt.prototype.set=qa;function ut(o){var d=-1,b=o?o.length:0;for(this.clear();++dse))return!1;var _e=U.get(o);if(_e&&U.get(d))return _e==d;var Pe=-1,Ue=!0,ve=Y&a?new Kn:void 0;for(U.set(o,d),U.set(d,o);++Pe-1&&o%1==0&&o-1&&o%1==0&&o<=h}function Kt(o){var d=typeof o;return!!o&&(d=="object"||d=="function")}function zn(o){return!!o&&typeof o=="object"}function Mr(o){return typeof o=="symbol"||zn(o)&&H.call(o)==Ae}var vi=Gn?jn(Gn):fs;function Os(o){return o==null?"":_s(o)}function Rs(o,d,b){var N=o==null?void 0:ui(o,d);return N===void 0?b:N}function Ds(o,d){return o!=null&&bs(o,d,os)}function Wn(o){return _i(o)?ns(o):ds(o)}function xs(o,d,b){var N=ft(o)||vi(o);if(d=ps(d),b==null)if(N||Kt(o)){var Y=o.constructor;N?b=ft(o)?new Y:[]:b=Lr(Y)?rs(Le(o)):{}}else b={};return(N?Vn:as)(o,function(U,ne,se){return d(b,U,ne,se)}),b}function Ls(o){return o}function Ps(o){return Yn(o)?Rt(Xn(o)):ms(o)}e.exports=xs})(hr,hr.exports);hr.exports;const Na="869016244613951539",Jr=new $u(Na);async function zu(){const{code:e}=await Jr.commands.authorize({client_id:Na,response_type:"code",state:"",prompt:"none",scope:["identify","rpc.activities.write"]}),t=await fetch("/api/token",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:e})}),{access_token:n}=await t.json();return await Jr.commands.authenticate({access_token:n})}async function Wu(){return await Jr.commands.setActivity({activity:{type:0,details:"garf",state:"Playing"}})}function Ju(e){let t;return{c(){t=Gs("main"),t.innerHTML="

yo

"},m(n,r){Zs(n,t,r)},p:Xt,i:Xt,o:Xt,d(n){n&&Mi(t)}}}function Cu(e){return zu().then(async t=>{await Wu()}),[]}class Qu extends Js{constructor(t){super(),Ws(this,t,Cu,Ju,Us,{})}}new Qu({target:document.getElementById("app")}); diff --git a/dist/garf.mp4 b/dist/garf.mp4 new file mode 100644 index 0000000..03a967e Binary files /dev/null and b/dist/garf.mp4 differ diff --git a/dist/index.html b/dist/index.html new file mode 100644 index 0000000..8dc39bc --- /dev/null +++ b/dist/index.html @@ -0,0 +1,12 @@ + + + + + + garf + + + +
+ + diff --git a/index.html b/index.html new file mode 100644 index 0000000..037b7b1 --- /dev/null +++ b/index.html @@ -0,0 +1,12 @@ + + + + + + garf + + +
+ + + diff --git a/package.json b/package.json new file mode 100644 index 0000000..2fd8a48 --- /dev/null +++ b/package.json @@ -0,0 +1,24 @@ +{ + "name": "garf", + "private": true, + "version": "0.0.0", + "type": "module", + "scripts": { + "dev": "vite", + "build": "vite build", + "preview": "vite preview", + "check": "svelte-check --tsconfig ./tsconfig.json" + }, + "devDependencies": { + "@sveltejs/vite-plugin-svelte": "^3.0.2", + "@tsconfig/svelte": "^5.0.2", + "svelte": "^4.2.12", + "svelte-check": "^3.6.6", + "tslib": "^2.6.2", + "typescript": "^5.2.2", + "vite": "^5.1.6" + }, + "dependencies": { + "@discord/embedded-app-sdk": "^1.0.0" + } +} diff --git a/public/garf.mp4 b/public/garf.mp4 new file mode 100644 index 0000000..03a967e Binary files /dev/null and b/public/garf.mp4 differ diff --git a/src/App.svelte b/src/App.svelte new file mode 100644 index 0000000..f78f5ee --- /dev/null +++ b/src/App.svelte @@ -0,0 +1,12 @@ + + +
+

yo

+
diff --git a/src/app.css b/src/app.css new file mode 100644 index 0000000..e69de29 diff --git a/src/lib/discord.js b/src/lib/discord.js new file mode 100644 index 0000000..9f879da --- /dev/null +++ b/src/lib/discord.js @@ -0,0 +1,44 @@ +const CLIENT_ID = "869016244613951539"; + +import { DiscordSDK } from "@discord/embedded-app-sdk"; +import { writable } from "svelte/store"; +const discordSdk = new DiscordSDK(CLIENT_ID); + +export let information = writable(); + +export async function authorize() { + const { code } = await discordSdk.commands.authorize({ + client_id: CLIENT_ID, + response_type: "code", + state: "", + prompt: "none", + scope: ["identify", "rpc.activities.write"], + }); + + const response = await fetch("/api/token", { + method: "POST", + headers: { + "Content-Type": "application/json", + }, + body: JSON.stringify({ + code, + }), + }); + + const { access_token } = await response.json(); + + const auth = await discordSdk.commands.authenticate({ access_token }); + information.set(auth); + + return auth; +} + +export async function setActivity() { + return await discordSdk.commands.setActivity({ + activity: { + type: 0, + details: "garf", + state: "Playing", + }, + }); +} diff --git a/src/main.ts b/src/main.ts new file mode 100644 index 0000000..4d67e2a --- /dev/null +++ b/src/main.ts @@ -0,0 +1,8 @@ +import './app.css' +import App from './App.svelte' + +const app = new App({ + target: document.getElementById('app')!, +}) + +export default app diff --git a/src/vite-env.d.ts b/src/vite-env.d.ts new file mode 100644 index 0000000..4078e74 --- /dev/null +++ b/src/vite-env.d.ts @@ -0,0 +1,2 @@ +/// +/// diff --git a/svelte.config.js b/svelte.config.js new file mode 100644 index 0000000..b0683fd --- /dev/null +++ b/svelte.config.js @@ -0,0 +1,7 @@ +import { vitePreprocess } from '@sveltejs/vite-plugin-svelte' + +export default { + // Consult https://svelte.dev/docs#compile-time-svelte-preprocess + // for more information about preprocessors + preprocess: vitePreprocess(), +} diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..5fb548f --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,20 @@ +{ + "extends": "@tsconfig/svelte/tsconfig.json", + "compilerOptions": { + "target": "ESNext", + "useDefineForClassFields": true, + "module": "ESNext", + "resolveJsonModule": true, + /** + * Typecheck JS in `.svelte` and `.js` files by default. + * Disable checkJs if you'd like to use dynamic types in JS. + * Note that setting allowJs false does not prevent the use + * of JS in `.svelte` files. + */ + "allowJs": true, + "checkJs": true, + "isolatedModules": true + }, + "include": ["src/**/*.ts", "src/**/*.js", "src/**/*.svelte"], + "references": [{ "path": "./tsconfig.node.json" }] +} diff --git a/tsconfig.node.json b/tsconfig.node.json new file mode 100644 index 0000000..d02c37d --- /dev/null +++ b/tsconfig.node.json @@ -0,0 +1,10 @@ +{ + "compilerOptions": { + "composite": true, + "skipLibCheck": true, + "module": "ESNext", + "moduleResolution": "bundler", + "strict": true + }, + "include": ["vite.config.ts"] +} diff --git a/vite.config.ts b/vite.config.ts new file mode 100644 index 0000000..d701969 --- /dev/null +++ b/vite.config.ts @@ -0,0 +1,7 @@ +import { defineConfig } from 'vite' +import { svelte } from '@sveltejs/vite-plugin-svelte' + +// https://vitejs.dev/config/ +export default defineConfig({ + plugins: [svelte()], +}) diff --git a/yarn.lock b/yarn.lock new file mode 100644 index 0000000..7221182 --- /dev/null +++ b/yarn.lock @@ -0,0 +1,927 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + +"@ampproject/remapping@^2.2.1": + version "2.3.0" + resolved "https://registry.yarnpkg.com/@ampproject/remapping/-/remapping-2.3.0.tgz#ed441b6fa600072520ce18b43d2c8cc8caecc7f4" + integrity sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw== + dependencies: + "@jridgewell/gen-mapping" "^0.3.5" + "@jridgewell/trace-mapping" "^0.3.24" + +"@discord/embedded-app-sdk@^1.0.0": + version "1.0.0" + resolved "https://registry.yarnpkg.com/@discord/embedded-app-sdk/-/embedded-app-sdk-1.0.0.tgz#be921bd41844e8900131943da029fbd9a15566c8" + integrity sha512-h8H1W1BXJaVozpeEBWXOsglrmDbbIlohd13IRMSuclg6mIPRPBs5RBdJcuYqg7ljXObIMh0/NGFw7RirXGR/Fg== + dependencies: + "@types/lodash.transform" "^4.6.6" + "@types/uuid" "^8.3.1" + big-integer "1.6.48" + decimal.js-light "2.5.0" + eventemitter3 "^4.0.7" + lodash.transform "^4.6.0" + rollup "^4.8.0" + uuid "^8.3.2" + zod "^3.9.8" + +"@esbuild/aix-ppc64@0.19.12": + version "0.19.12" + resolved "https://registry.yarnpkg.com/@esbuild/aix-ppc64/-/aix-ppc64-0.19.12.tgz#d1bc06aedb6936b3b6d313bf809a5a40387d2b7f" + integrity sha512-bmoCYyWdEL3wDQIVbcyzRyeKLgk2WtWLTWz1ZIAZF/EGbNOwSA6ew3PftJ1PqMiOOGu0OyFMzG53L0zqIpPeNA== + +"@esbuild/android-arm64@0.19.12": + version "0.19.12" + resolved "https://registry.yarnpkg.com/@esbuild/android-arm64/-/android-arm64-0.19.12.tgz#7ad65a36cfdb7e0d429c353e00f680d737c2aed4" + integrity sha512-P0UVNGIienjZv3f5zq0DP3Nt2IE/3plFzuaS96vihvD0Hd6H/q4WXUGpCxD/E8YrSXfNyRPbpTq+T8ZQioSuPA== + +"@esbuild/android-arm@0.19.12": + version "0.19.12" + resolved "https://registry.yarnpkg.com/@esbuild/android-arm/-/android-arm-0.19.12.tgz#b0c26536f37776162ca8bde25e42040c203f2824" + integrity sha512-qg/Lj1mu3CdQlDEEiWrlC4eaPZ1KztwGJ9B6J+/6G+/4ewxJg7gqj8eVYWvao1bXrqGiW2rsBZFSX3q2lcW05w== + +"@esbuild/android-x64@0.19.12": + version "0.19.12" + resolved "https://registry.yarnpkg.com/@esbuild/android-x64/-/android-x64-0.19.12.tgz#cb13e2211282012194d89bf3bfe7721273473b3d" + integrity sha512-3k7ZoUW6Q6YqhdhIaq/WZ7HwBpnFBlW905Fa4s4qWJyiNOgT1dOqDiVAQFwBH7gBRZr17gLrlFCRzF6jFh7Kew== + +"@esbuild/darwin-arm64@0.19.12": + version "0.19.12" + resolved "https://registry.yarnpkg.com/@esbuild/darwin-arm64/-/darwin-arm64-0.19.12.tgz#cbee41e988020d4b516e9d9e44dd29200996275e" + integrity sha512-B6IeSgZgtEzGC42jsI+YYu9Z3HKRxp8ZT3cqhvliEHovq8HSX2YX8lNocDn79gCKJXOSaEot9MVYky7AKjCs8g== + +"@esbuild/darwin-x64@0.19.12": + version "0.19.12" + resolved "https://registry.yarnpkg.com/@esbuild/darwin-x64/-/darwin-x64-0.19.12.tgz#e37d9633246d52aecf491ee916ece709f9d5f4cd" + integrity sha512-hKoVkKzFiToTgn+41qGhsUJXFlIjxI/jSYeZf3ugemDYZldIXIxhvwN6erJGlX4t5h417iFuheZ7l+YVn05N3A== + +"@esbuild/freebsd-arm64@0.19.12": + version "0.19.12" + resolved "https://registry.yarnpkg.com/@esbuild/freebsd-arm64/-/freebsd-arm64-0.19.12.tgz#1ee4d8b682ed363b08af74d1ea2b2b4dbba76487" + integrity sha512-4aRvFIXmwAcDBw9AueDQ2YnGmz5L6obe5kmPT8Vd+/+x/JMVKCgdcRwH6APrbpNXsPz+K653Qg8HB/oXvXVukA== + +"@esbuild/freebsd-x64@0.19.12": + version "0.19.12" + resolved "https://registry.yarnpkg.com/@esbuild/freebsd-x64/-/freebsd-x64-0.19.12.tgz#37a693553d42ff77cd7126764b535fb6cc28a11c" + integrity sha512-EYoXZ4d8xtBoVN7CEwWY2IN4ho76xjYXqSXMNccFSx2lgqOG/1TBPW0yPx1bJZk94qu3tX0fycJeeQsKovA8gg== + +"@esbuild/linux-arm64@0.19.12": + version "0.19.12" + resolved "https://registry.yarnpkg.com/@esbuild/linux-arm64/-/linux-arm64-0.19.12.tgz#be9b145985ec6c57470e0e051d887b09dddb2d4b" + integrity sha512-EoTjyYyLuVPfdPLsGVVVC8a0p1BFFvtpQDB/YLEhaXyf/5bczaGeN15QkR+O4S5LeJ92Tqotve7i1jn35qwvdA== + +"@esbuild/linux-arm@0.19.12": + version "0.19.12" + resolved "https://registry.yarnpkg.com/@esbuild/linux-arm/-/linux-arm-0.19.12.tgz#207ecd982a8db95f7b5279207d0ff2331acf5eef" + integrity sha512-J5jPms//KhSNv+LO1S1TX1UWp1ucM6N6XuL6ITdKWElCu8wXP72l9MM0zDTzzeikVyqFE6U8YAV9/tFyj0ti+w== + +"@esbuild/linux-ia32@0.19.12": + version "0.19.12" + resolved "https://registry.yarnpkg.com/@esbuild/linux-ia32/-/linux-ia32-0.19.12.tgz#d0d86b5ca1562523dc284a6723293a52d5860601" + integrity sha512-Thsa42rrP1+UIGaWz47uydHSBOgTUnwBwNq59khgIwktK6x60Hivfbux9iNR0eHCHzOLjLMLfUMLCypBkZXMHA== + +"@esbuild/linux-loong64@0.19.12": + version "0.19.12" + resolved "https://registry.yarnpkg.com/@esbuild/linux-loong64/-/linux-loong64-0.19.12.tgz#9a37f87fec4b8408e682b528391fa22afd952299" + integrity sha512-LiXdXA0s3IqRRjm6rV6XaWATScKAXjI4R4LoDlvO7+yQqFdlr1Bax62sRwkVvRIrwXxvtYEHHI4dm50jAXkuAA== + +"@esbuild/linux-mips64el@0.19.12": + version "0.19.12" + resolved "https://registry.yarnpkg.com/@esbuild/linux-mips64el/-/linux-mips64el-0.19.12.tgz#4ddebd4e6eeba20b509d8e74c8e30d8ace0b89ec" + integrity sha512-fEnAuj5VGTanfJ07ff0gOA6IPsvrVHLVb6Lyd1g2/ed67oU1eFzL0r9WL7ZzscD+/N6i3dWumGE1Un4f7Amf+w== + +"@esbuild/linux-ppc64@0.19.12": + version "0.19.12" + resolved "https://registry.yarnpkg.com/@esbuild/linux-ppc64/-/linux-ppc64-0.19.12.tgz#adb67dadb73656849f63cd522f5ecb351dd8dee8" + integrity sha512-nYJA2/QPimDQOh1rKWedNOe3Gfc8PabU7HT3iXWtNUbRzXS9+vgB0Fjaqr//XNbd82mCxHzik2qotuI89cfixg== + +"@esbuild/linux-riscv64@0.19.12": + version "0.19.12" + resolved "https://registry.yarnpkg.com/@esbuild/linux-riscv64/-/linux-riscv64-0.19.12.tgz#11bc0698bf0a2abf8727f1c7ace2112612c15adf" + integrity sha512-2MueBrlPQCw5dVJJpQdUYgeqIzDQgw3QtiAHUC4RBz9FXPrskyyU3VI1hw7C0BSKB9OduwSJ79FTCqtGMWqJHg== + +"@esbuild/linux-s390x@0.19.12": + version "0.19.12" + resolved "https://registry.yarnpkg.com/@esbuild/linux-s390x/-/linux-s390x-0.19.12.tgz#e86fb8ffba7c5c92ba91fc3b27ed5a70196c3cc8" + integrity sha512-+Pil1Nv3Umes4m3AZKqA2anfhJiVmNCYkPchwFJNEJN5QxmTs1uzyy4TvmDrCRNT2ApwSari7ZIgrPeUx4UZDg== + +"@esbuild/linux-x64@0.19.12": + version "0.19.12" + resolved "https://registry.yarnpkg.com/@esbuild/linux-x64/-/linux-x64-0.19.12.tgz#5f37cfdc705aea687dfe5dfbec086a05acfe9c78" + integrity sha512-B71g1QpxfwBvNrfyJdVDexenDIt1CiDN1TIXLbhOw0KhJzE78KIFGX6OJ9MrtC0oOqMWf+0xop4qEU8JrJTwCg== + +"@esbuild/netbsd-x64@0.19.12": + version "0.19.12" + resolved "https://registry.yarnpkg.com/@esbuild/netbsd-x64/-/netbsd-x64-0.19.12.tgz#29da566a75324e0d0dd7e47519ba2f7ef168657b" + integrity sha512-3ltjQ7n1owJgFbuC61Oj++XhtzmymoCihNFgT84UAmJnxJfm4sYCiSLTXZtE00VWYpPMYc+ZQmB6xbSdVh0JWA== + +"@esbuild/openbsd-x64@0.19.12": + version "0.19.12" + resolved "https://registry.yarnpkg.com/@esbuild/openbsd-x64/-/openbsd-x64-0.19.12.tgz#306c0acbdb5a99c95be98bdd1d47c916e7dc3ff0" + integrity sha512-RbrfTB9SWsr0kWmb9srfF+L933uMDdu9BIzdA7os2t0TXhCRjrQyCeOt6wVxr79CKD4c+p+YhCj31HBkYcXebw== + +"@esbuild/sunos-x64@0.19.12": + version "0.19.12" + resolved "https://registry.yarnpkg.com/@esbuild/sunos-x64/-/sunos-x64-0.19.12.tgz#0933eaab9af8b9b2c930236f62aae3fc593faf30" + integrity sha512-HKjJwRrW8uWtCQnQOz9qcU3mUZhTUQvi56Q8DPTLLB+DawoiQdjsYq+j+D3s9I8VFtDr+F9CjgXKKC4ss89IeA== + +"@esbuild/win32-arm64@0.19.12": + version "0.19.12" + resolved "https://registry.yarnpkg.com/@esbuild/win32-arm64/-/win32-arm64-0.19.12.tgz#773bdbaa1971b36db2f6560088639ccd1e6773ae" + integrity sha512-URgtR1dJnmGvX864pn1B2YUYNzjmXkuJOIqG2HdU62MVS4EHpU2946OZoTMnRUHklGtJdJZ33QfzdjGACXhn1A== + +"@esbuild/win32-ia32@0.19.12": + version "0.19.12" + resolved "https://registry.yarnpkg.com/@esbuild/win32-ia32/-/win32-ia32-0.19.12.tgz#000516cad06354cc84a73f0943a4aa690ef6fd67" + integrity sha512-+ZOE6pUkMOJfmxmBZElNOx72NKpIa/HFOMGzu8fqzQJ5kgf6aTGrcJaFsNiVMH4JKpMipyK+7k0n2UXN7a8YKQ== + +"@esbuild/win32-x64@0.19.12": + version "0.19.12" + resolved "https://registry.yarnpkg.com/@esbuild/win32-x64/-/win32-x64-0.19.12.tgz#c57c8afbb4054a3ab8317591a0b7320360b444ae" + integrity sha512-T1QyPSDCyMXaO3pzBkF96E8xMkiRYbUEZADd29SyPGabqxMViNoii+NcK7eWJAEoU6RZyEm5lVSIjTmcdoB9HA== + +"@jridgewell/gen-mapping@^0.3.5": + version "0.3.5" + resolved "https://registry.yarnpkg.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz#dcce6aff74bdf6dad1a95802b69b04a2fcb1fb36" + integrity sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg== + dependencies: + "@jridgewell/set-array" "^1.2.1" + "@jridgewell/sourcemap-codec" "^1.4.10" + "@jridgewell/trace-mapping" "^0.3.24" + +"@jridgewell/resolve-uri@^3.1.0": + version "3.1.2" + resolved "https://registry.yarnpkg.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz#7a0ee601f60f99a20c7c7c5ff0c80388c1189bd6" + integrity sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw== + +"@jridgewell/set-array@^1.2.1": + version "1.2.1" + resolved "https://registry.yarnpkg.com/@jridgewell/set-array/-/set-array-1.2.1.tgz#558fb6472ed16a4c850b889530e6b36438c49280" + integrity sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A== + +"@jridgewell/sourcemap-codec@^1.4.10", "@jridgewell/sourcemap-codec@^1.4.14", "@jridgewell/sourcemap-codec@^1.4.15": + version "1.4.15" + resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz#d7c6e6755c78567a951e04ab52ef0fd26de59f32" + integrity sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg== + +"@jridgewell/trace-mapping@^0.3.17", "@jridgewell/trace-mapping@^0.3.18", "@jridgewell/trace-mapping@^0.3.24": + version "0.3.25" + resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz#15f190e98895f3fc23276ee14bc76b675c2e50f0" + integrity sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ== + dependencies: + "@jridgewell/resolve-uri" "^3.1.0" + "@jridgewell/sourcemap-codec" "^1.4.14" + +"@nodelib/fs.scandir@2.1.5": + version "2.1.5" + resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz#7619c2eb21b25483f6d167548b4cfd5a7488c3d5" + integrity sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g== + dependencies: + "@nodelib/fs.stat" "2.0.5" + run-parallel "^1.1.9" + +"@nodelib/fs.stat@2.0.5", "@nodelib/fs.stat@^2.0.2": + version "2.0.5" + resolved "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz#5bd262af94e9d25bd1e71b05deed44876a222e8b" + integrity sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A== + +"@nodelib/fs.walk@^1.2.3": + version "1.2.8" + resolved "https://registry.yarnpkg.com/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz#e95737e8bb6746ddedf69c556953494f196fe69a" + integrity sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg== + dependencies: + "@nodelib/fs.scandir" "2.1.5" + fastq "^1.6.0" + +"@rollup/rollup-android-arm-eabi@4.13.0": + version "4.13.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.13.0.tgz#b98786c1304b4ff8db3a873180b778649b5dff2b" + integrity sha512-5ZYPOuaAqEH/W3gYsRkxQATBW3Ii1MfaT4EQstTnLKViLi2gLSQmlmtTpGucNP3sXEpOiI5tdGhjdE111ekyEg== + +"@rollup/rollup-android-arm64@4.13.0": + version "4.13.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.13.0.tgz#8833679af11172b1bf1ab7cb3bad84df4caf0c9e" + integrity sha512-BSbaCmn8ZadK3UAQdlauSvtaJjhlDEjS5hEVVIN3A4bbl3X+otyf/kOJV08bYiRxfejP3DXFzO2jz3G20107+Q== + +"@rollup/rollup-darwin-arm64@4.13.0": + version "4.13.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.13.0.tgz#ef02d73e0a95d406e0eb4fd61a53d5d17775659b" + integrity sha512-Ovf2evVaP6sW5Ut0GHyUSOqA6tVKfrTHddtmxGQc1CTQa1Cw3/KMCDEEICZBbyppcwnhMwcDce9ZRxdWRpVd6g== + +"@rollup/rollup-darwin-x64@4.13.0": + version "4.13.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.13.0.tgz#3ce5b9bcf92b3341a5c1c58a3e6bcce0ea9e7455" + integrity sha512-U+Jcxm89UTK592vZ2J9st9ajRv/hrwHdnvyuJpa5A2ngGSVHypigidkQJP+YiGL6JODiUeMzkqQzbCG3At81Gg== + +"@rollup/rollup-linux-arm-gnueabihf@4.13.0": + version "4.13.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.13.0.tgz#3d3d2c018bdd8e037c6bfedd52acfff1c97e4be4" + integrity sha512-8wZidaUJUTIR5T4vRS22VkSMOVooG0F4N+JSwQXWSRiC6yfEsFMLTYRFHvby5mFFuExHa/yAp9juSphQQJAijQ== + +"@rollup/rollup-linux-arm64-gnu@4.13.0": + version "4.13.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.13.0.tgz#5fc8cc978ff396eaa136d7bfe05b5b9138064143" + integrity sha512-Iu0Kno1vrD7zHQDxOmvweqLkAzjxEVqNhUIXBsZ8hu8Oak7/5VTPrxOEZXYC1nmrBVJp0ZcL2E7lSuuOVaE3+w== + +"@rollup/rollup-linux-arm64-musl@4.13.0": + version "4.13.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.13.0.tgz#f2ae7d7bed416ffa26d6b948ac5772b520700eef" + integrity sha512-C31QrW47llgVyrRjIwiOwsHFcaIwmkKi3PCroQY5aVq4H0A5v/vVVAtFsI1nfBngtoRpeREvZOkIhmRwUKkAdw== + +"@rollup/rollup-linux-riscv64-gnu@4.13.0": + version "4.13.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.13.0.tgz#303d57a328ee9a50c85385936f31cf62306d30b6" + integrity sha512-Oq90dtMHvthFOPMl7pt7KmxzX7E71AfyIhh+cPhLY9oko97Zf2C9tt/XJD4RgxhaGeAraAXDtqxvKE1y/j35lA== + +"@rollup/rollup-linux-x64-gnu@4.13.0": + version "4.13.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.13.0.tgz#f672f6508f090fc73f08ba40ff76c20b57424778" + integrity sha512-yUD/8wMffnTKuiIsl6xU+4IA8UNhQ/f1sAnQebmE/lyQ8abjsVyDkyRkWop0kdMhKMprpNIhPmYlCxgHrPoXoA== + +"@rollup/rollup-linux-x64-musl@4.13.0": + version "4.13.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.13.0.tgz#d2f34b1b157f3e7f13925bca3288192a66755a89" + integrity sha512-9RyNqoFNdF0vu/qqX63fKotBh43fJQeYC98hCaf89DYQpv+xu0D8QFSOS0biA7cGuqJFOc1bJ+m2rhhsKcw1hw== + +"@rollup/rollup-win32-arm64-msvc@4.13.0": + version "4.13.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.13.0.tgz#8ffecc980ae4d9899eb2f9c4ae471a8d58d2da6b" + integrity sha512-46ue8ymtm/5PUU6pCvjlic0z82qWkxv54GTJZgHrQUuZnVH+tvvSP0LsozIDsCBFO4VjJ13N68wqrKSeScUKdA== + +"@rollup/rollup-win32-ia32-msvc@4.13.0": + version "4.13.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.13.0.tgz#a7505884f415662e088365b9218b2b03a88fc6f2" + integrity sha512-P5/MqLdLSlqxbeuJ3YDeX37srC8mCflSyTrUsgbU1c/U9j6l2g2GiIdYaGD9QjdMQPMSgYm7hgg0551wHyIluw== + +"@rollup/rollup-win32-x64-msvc@4.13.0": + version "4.13.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.13.0.tgz#6abd79db7ff8d01a58865ba20a63cfd23d9e2a10" + integrity sha512-UKXUQNbO3DOhzLRwHSpa0HnhhCgNODvfoPWv2FCXme8N/ANFfhIPMGuOT+QuKd16+B5yxZ0HdpNlqPvTMS1qfw== + +"@sveltejs/vite-plugin-svelte-inspector@^2.0.0": + version "2.0.0" + resolved "https://registry.yarnpkg.com/@sveltejs/vite-plugin-svelte-inspector/-/vite-plugin-svelte-inspector-2.0.0.tgz#365afaa0dd63517838ce4686a3dc3982be348a9b" + integrity sha512-gjr9ZFg1BSlIpfZ4PRewigrvYmHWbDrq2uvvPB1AmTWKuM+dI1JXQSUu2pIrYLb/QncyiIGkFDFKTwJ0XqQZZg== + dependencies: + debug "^4.3.4" + +"@sveltejs/vite-plugin-svelte@^3.0.2": + version "3.0.2" + resolved "https://registry.yarnpkg.com/@sveltejs/vite-plugin-svelte/-/vite-plugin-svelte-3.0.2.tgz#5c33534d07130283cff92304f627010387c11af0" + integrity sha512-MpmF/cju2HqUls50WyTHQBZUV3ovV/Uk8k66AN2gwHogNAG8wnW8xtZDhzNBsFJJuvmq1qnzA5kE7YfMJNFv2Q== + dependencies: + "@sveltejs/vite-plugin-svelte-inspector" "^2.0.0" + debug "^4.3.4" + deepmerge "^4.3.1" + kleur "^4.1.5" + magic-string "^0.30.5" + svelte-hmr "^0.15.3" + vitefu "^0.2.5" + +"@tsconfig/svelte@^5.0.2": + version "5.0.2" + resolved "https://registry.yarnpkg.com/@tsconfig/svelte/-/svelte-5.0.2.tgz#c9ed3575c5445afb14965bb76e8446fbf7e4a0e6" + integrity sha512-BRbo1fOtyVbhfLyuCWw6wAWp+U8UQle+ZXu84MYYWzYSEB28dyfnRBIE99eoG+qdAC0po6L2ScIEivcT07UaMA== + +"@types/estree@*", "@types/estree@1.0.5", "@types/estree@^1.0.0", "@types/estree@^1.0.1": + version "1.0.5" + resolved "https://registry.yarnpkg.com/@types/estree/-/estree-1.0.5.tgz#a6ce3e556e00fd9895dd872dd172ad0d4bd687f4" + integrity sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw== + +"@types/lodash.transform@^4.6.6": + version "4.6.9" + resolved "https://registry.yarnpkg.com/@types/lodash.transform/-/lodash.transform-4.6.9.tgz#6fc6700afe3dc356801b52e6bef422dc81578f84" + integrity sha512-1iIn+l7Vrj8hsr2iZLtxRkcV9AtjTafIyxKO9DX2EEcdOgz3Op5dhwKQFhMJgdfIRbYHBUF+SU97Y6P+zyLXNg== + dependencies: + "@types/lodash" "*" + +"@types/lodash@*": + version "4.17.0" + resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.17.0.tgz#d774355e41f372d5350a4d0714abb48194a489c3" + integrity sha512-t7dhREVv6dbNj0q17X12j7yDG4bD/DHYX7o5/DbDxobP0HnGPgpRz2Ej77aL7TZT3DSw13fqUTj8J4mMnqa7WA== + +"@types/pug@^2.0.6": + version "2.0.10" + resolved "https://registry.yarnpkg.com/@types/pug/-/pug-2.0.10.tgz#52f8dbd6113517aef901db20b4f3fca543b88c1f" + integrity sha512-Sk/uYFOBAB7mb74XcpizmH0KOR2Pv3D2Hmrh1Dmy5BmK3MpdSa5kqZcg6EKBdklU0bFXX9gCfzvpnyUehrPIuA== + +"@types/uuid@^8.3.1": + version "8.3.4" + resolved "https://registry.yarnpkg.com/@types/uuid/-/uuid-8.3.4.tgz#bd86a43617df0594787d38b735f55c805becf1bc" + integrity sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw== + +acorn@^8.10.0, acorn@^8.9.0: + version "8.11.3" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.11.3.tgz#71e0b14e13a4ec160724b38fb7b0f233b1b81d7a" + integrity sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg== + +anymatch@~3.1.2: + version "3.1.3" + resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-3.1.3.tgz#790c58b19ba1720a84205b57c618d5ad8524973e" + integrity sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw== + dependencies: + normalize-path "^3.0.0" + picomatch "^2.0.4" + +aria-query@^5.3.0: + version "5.3.0" + resolved "https://registry.yarnpkg.com/aria-query/-/aria-query-5.3.0.tgz#650c569e41ad90b51b3d7df5e5eed1c7549c103e" + integrity sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A== + dependencies: + dequal "^2.0.3" + +axobject-query@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/axobject-query/-/axobject-query-4.0.0.tgz#04a4c90dce33cc5d606c76d6216e3b250ff70dab" + integrity sha512-+60uv1hiVFhHZeO+Lz0RYzsVHy5Wr1ayX0mwda9KPDVLNJgZ1T9Ny7VmFbLDzxsH0D87I86vgj3gFrjTJUYznw== + dependencies: + dequal "^2.0.3" + +balanced-match@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee" + integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw== + +big-integer@1.6.48: + version "1.6.48" + resolved "https://registry.yarnpkg.com/big-integer/-/big-integer-1.6.48.tgz#8fd88bd1632cba4a1c8c3e3d7159f08bb95b4b9e" + integrity sha512-j51egjPa7/i+RdiRuJbPdJ2FIUYYPhvYLjzoYbcMMm62ooO6F94fETG4MTs46zPAF9Brs04OajboA/qTGuz78w== + +binary-extensions@^2.0.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-2.3.0.tgz#f6e14a97858d327252200242d4ccfe522c445522" + integrity sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw== + +brace-expansion@^1.1.7: + version "1.1.11" + resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" + integrity sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA== + dependencies: + balanced-match "^1.0.0" + concat-map "0.0.1" + +braces@^3.0.2, braces@~3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.2.tgz#3454e1a462ee8d599e236df336cd9ea4f8afe107" + integrity sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A== + dependencies: + fill-range "^7.0.1" + +buffer-crc32@^0.2.5: + version "0.2.13" + resolved "https://registry.yarnpkg.com/buffer-crc32/-/buffer-crc32-0.2.13.tgz#0d333e3f00eac50aa1454abd30ef8c2a5d9a7242" + integrity sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ== + +callsites@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/callsites/-/callsites-3.1.0.tgz#b3630abd8943432f54b3f0519238e33cd7df2f73" + integrity sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ== + +chokidar@^3.4.1: + version "3.6.0" + resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.6.0.tgz#197c6cc669ef2a8dc5e7b4d97ee4e092c3eb0d5b" + integrity sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw== + dependencies: + anymatch "~3.1.2" + braces "~3.0.2" + glob-parent "~5.1.2" + is-binary-path "~2.1.0" + is-glob "~4.0.1" + normalize-path "~3.0.0" + readdirp "~3.6.0" + optionalDependencies: + fsevents "~2.3.2" + +code-red@^1.0.3: + version "1.0.4" + resolved "https://registry.yarnpkg.com/code-red/-/code-red-1.0.4.tgz#59ba5c9d1d320a4ef795bc10a28bd42bfebe3e35" + integrity sha512-7qJWqItLA8/VPVlKJlFXU+NBlo/qyfs39aJcuMT/2ere32ZqvF5OSxgdM5xOfJJ7O429gg2HM47y8v9P+9wrNw== + dependencies: + "@jridgewell/sourcemap-codec" "^1.4.15" + "@types/estree" "^1.0.1" + acorn "^8.10.0" + estree-walker "^3.0.3" + periscopic "^3.1.0" + +concat-map@0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" + integrity sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg== + +css-tree@^2.3.1: + version "2.3.1" + resolved "https://registry.yarnpkg.com/css-tree/-/css-tree-2.3.1.tgz#10264ce1e5442e8572fc82fbe490644ff54b5c20" + integrity sha512-6Fv1DV/TYw//QF5IzQdqsNDjx/wc8TrMBZsqjL9eW01tWb7R7k/mq+/VXfJCl7SoD5emsJop9cOByJZfs8hYIw== + dependencies: + mdn-data "2.0.30" + source-map-js "^1.0.1" + +debug@^4.3.4: + version "4.3.4" + resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.4.tgz#1319f6579357f2338d3337d2cdd4914bb5dcc865" + integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ== + dependencies: + ms "2.1.2" + +decimal.js-light@2.5.0: + version "2.5.0" + resolved "https://registry.yarnpkg.com/decimal.js-light/-/decimal.js-light-2.5.0.tgz#ca7faf504c799326df94b0ab920424fdfc125348" + integrity sha512-b3VJCbd2hwUpeRGG3Toob+CRo8W22xplipNhP3tN7TSVB/cyMX71P1vM2Xjc9H74uV6dS2hDDmo/rHq8L87Upg== + +deepmerge@^4.3.1: + version "4.3.1" + resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-4.3.1.tgz#44b5f2147cd3b00d4b56137685966f26fd25dd4a" + integrity sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A== + +dequal@^2.0.3: + version "2.0.3" + resolved "https://registry.yarnpkg.com/dequal/-/dequal-2.0.3.tgz#2644214f1997d39ed0ee0ece72335490a7ac67be" + integrity sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA== + +detect-indent@^6.1.0: + version "6.1.0" + resolved "https://registry.yarnpkg.com/detect-indent/-/detect-indent-6.1.0.tgz#592485ebbbf6b3b1ab2be175c8393d04ca0d57e6" + integrity sha512-reYkTUJAZb9gUuZ2RvVCNhVHdg62RHnJ7WJl8ftMi4diZ6NWlciOzQN88pUhSELEwflJht4oQDv0F0BMlwaYtA== + +es6-promise@^3.1.2: + version "3.3.1" + resolved "https://registry.yarnpkg.com/es6-promise/-/es6-promise-3.3.1.tgz#a08cdde84ccdbf34d027a1451bc91d4bcd28a613" + integrity sha512-SOp9Phqvqn7jtEUxPWdWfWoLmyt2VaJ6MpvP9Comy1MceMXqE6bxvaTu4iaxpYYPzhny28Lc+M87/c2cPK6lDg== + +esbuild@^0.19.3: + version "0.19.12" + resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.19.12.tgz#dc82ee5dc79e82f5a5c3b4323a2a641827db3e04" + integrity sha512-aARqgq8roFBj054KvQr5f1sFu0D65G+miZRCuJyJ0G13Zwx7vRar5Zhn2tkQNzIXcBrNVsv/8stehpj+GAjgbg== + optionalDependencies: + "@esbuild/aix-ppc64" "0.19.12" + "@esbuild/android-arm" "0.19.12" + "@esbuild/android-arm64" "0.19.12" + "@esbuild/android-x64" "0.19.12" + "@esbuild/darwin-arm64" "0.19.12" + "@esbuild/darwin-x64" "0.19.12" + "@esbuild/freebsd-arm64" "0.19.12" + "@esbuild/freebsd-x64" "0.19.12" + "@esbuild/linux-arm" "0.19.12" + "@esbuild/linux-arm64" "0.19.12" + "@esbuild/linux-ia32" "0.19.12" + "@esbuild/linux-loong64" "0.19.12" + "@esbuild/linux-mips64el" "0.19.12" + "@esbuild/linux-ppc64" "0.19.12" + "@esbuild/linux-riscv64" "0.19.12" + "@esbuild/linux-s390x" "0.19.12" + "@esbuild/linux-x64" "0.19.12" + "@esbuild/netbsd-x64" "0.19.12" + "@esbuild/openbsd-x64" "0.19.12" + "@esbuild/sunos-x64" "0.19.12" + "@esbuild/win32-arm64" "0.19.12" + "@esbuild/win32-ia32" "0.19.12" + "@esbuild/win32-x64" "0.19.12" + +estree-walker@^3.0.0, estree-walker@^3.0.3: + version "3.0.3" + resolved "https://registry.yarnpkg.com/estree-walker/-/estree-walker-3.0.3.tgz#67c3e549ec402a487b4fc193d1953a524752340d" + integrity sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g== + dependencies: + "@types/estree" "^1.0.0" + +eventemitter3@^4.0.7: + version "4.0.7" + resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-4.0.7.tgz#2de9b68f6528d5644ef5c59526a1b4a07306169f" + integrity sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw== + +fast-glob@^3.2.7: + version "3.3.2" + resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.3.2.tgz#a904501e57cfdd2ffcded45e99a54fef55e46129" + integrity sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow== + dependencies: + "@nodelib/fs.stat" "^2.0.2" + "@nodelib/fs.walk" "^1.2.3" + glob-parent "^5.1.2" + merge2 "^1.3.0" + micromatch "^4.0.4" + +fastq@^1.6.0: + version "1.17.1" + resolved "https://registry.yarnpkg.com/fastq/-/fastq-1.17.1.tgz#2a523f07a4e7b1e81a42b91b8bf2254107753b47" + integrity sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w== + dependencies: + reusify "^1.0.4" + +fill-range@^7.0.1: + version "7.0.1" + resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-7.0.1.tgz#1919a6a7c75fe38b2c7c77e5198535da9acdda40" + integrity sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ== + dependencies: + to-regex-range "^5.0.1" + +fs.realpath@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" + integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw== + +fsevents@~2.3.2, fsevents@~2.3.3: + version "2.3.3" + resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.3.tgz#cac6407785d03675a2a5e1a5305c697b347d90d6" + integrity sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw== + +glob-parent@^5.1.2, glob-parent@~5.1.2: + version "5.1.2" + resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.2.tgz#869832c58034fe68a4093c17dc15e8340d8401c4" + integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow== + dependencies: + is-glob "^4.0.1" + +glob@^7.1.3: + version "7.2.3" + resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.3.tgz#b8df0fb802bbfa8e89bd1d938b4e16578ed44f2b" + integrity sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q== + dependencies: + fs.realpath "^1.0.0" + inflight "^1.0.4" + inherits "2" + minimatch "^3.1.1" + once "^1.3.0" + path-is-absolute "^1.0.0" + +graceful-fs@^4.1.3: + version "4.2.11" + resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.11.tgz#4183e4e8bf08bb6e05bbb2f7d2e0c8f712ca40e3" + integrity sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ== + +import-fresh@^3.2.1: + version "3.3.0" + resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-3.3.0.tgz#37162c25fcb9ebaa2e6e53d5b4d88ce17d9e0c2b" + integrity sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw== + dependencies: + parent-module "^1.0.0" + resolve-from "^4.0.0" + +inflight@^1.0.4: + version "1.0.6" + resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" + integrity sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA== + dependencies: + once "^1.3.0" + wrappy "1" + +inherits@2: + version "2.0.4" + resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" + integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== + +is-binary-path@~2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-2.1.0.tgz#ea1f7f3b80f064236e83470f86c09c254fb45b09" + integrity sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw== + dependencies: + binary-extensions "^2.0.0" + +is-extglob@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2" + integrity sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ== + +is-glob@^4.0.1, is-glob@~4.0.1: + version "4.0.3" + resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.3.tgz#64f61e42cbbb2eec2071a9dac0b28ba1e65d5084" + integrity sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg== + dependencies: + is-extglob "^2.1.1" + +is-number@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/is-number/-/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b" + integrity sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng== + +is-reference@^3.0.0, is-reference@^3.0.1: + version "3.0.2" + resolved "https://registry.yarnpkg.com/is-reference/-/is-reference-3.0.2.tgz#154747a01f45cd962404ee89d43837af2cba247c" + integrity sha512-v3rht/LgVcsdZa3O2Nqs+NMowLOxeOm7Ay9+/ARQ2F+qEoANRcqrjAZKGN0v8ymUetZGgkp26LTnGT7H0Qo9Pg== + dependencies: + "@types/estree" "*" + +kleur@^4.1.5: + version "4.1.5" + resolved "https://registry.yarnpkg.com/kleur/-/kleur-4.1.5.tgz#95106101795f7050c6c650f350c683febddb1780" + integrity sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ== + +locate-character@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/locate-character/-/locate-character-3.0.0.tgz#0305c5b8744f61028ef5d01f444009e00779f974" + integrity sha512-SW13ws7BjaeJ6p7Q6CO2nchbYEc3X3J6WrmTTDto7yMPqVSZTUyY5Tjbid+Ab8gLnATtygYtiDIJGQRRn2ZOiA== + +lodash.transform@^4.6.0: + version "4.6.0" + resolved "https://registry.yarnpkg.com/lodash.transform/-/lodash.transform-4.6.0.tgz#12306422f63324aed8483d3f38332b5f670547a0" + integrity sha512-LO37ZnhmBVx0GvOU/caQuipEh4GN82TcWv3yHlebGDgOxbxiwwzW5Pcx2AcvpIv2WmvmSMoC492yQFNhy/l/UQ== + +magic-string@^0.30.4, magic-string@^0.30.5: + version "0.30.8" + resolved "https://registry.yarnpkg.com/magic-string/-/magic-string-0.30.8.tgz#14e8624246d2bedba70d5462aa99ac9681844613" + integrity sha512-ISQTe55T2ao7XtlAStud6qwYPZjE4GK1S/BeVPus4jrq6JuOnQ00YKQC581RWhR122W7msZV263KzVeLoqidyQ== + dependencies: + "@jridgewell/sourcemap-codec" "^1.4.15" + +mdn-data@2.0.30: + version "2.0.30" + resolved "https://registry.yarnpkg.com/mdn-data/-/mdn-data-2.0.30.tgz#ce4df6f80af6cfbe218ecd5c552ba13c4dfa08cc" + integrity sha512-GaqWWShW4kv/G9IEucWScBx9G1/vsFZZJUO+tD26M8J8z3Kw5RDQjaoZe03YAClgeS/SWPOcb4nkFBTEi5DUEA== + +merge2@^1.3.0: + version "1.4.1" + resolved "https://registry.yarnpkg.com/merge2/-/merge2-1.4.1.tgz#4368892f885e907455a6fd7dc55c0c9d404990ae" + integrity sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg== + +micromatch@^4.0.4: + version "4.0.5" + resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.5.tgz#bc8999a7cbbf77cdc89f132f6e467051b49090c6" + integrity sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA== + dependencies: + braces "^3.0.2" + picomatch "^2.3.1" + +min-indent@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/min-indent/-/min-indent-1.0.1.tgz#a63f681673b30571fbe8bc25686ae746eefa9869" + integrity sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg== + +minimatch@^3.1.1: + version "3.1.2" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b" + integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw== + dependencies: + brace-expansion "^1.1.7" + +minimist@^1.2.0, minimist@^1.2.6: + version "1.2.8" + resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.8.tgz#c1a464e7693302e082a075cee0c057741ac4772c" + integrity sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA== + +mkdirp@^0.5.1: + version "0.5.6" + resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.6.tgz#7def03d2432dcae4ba1d611445c48396062255f6" + integrity sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw== + dependencies: + minimist "^1.2.6" + +mri@^1.1.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/mri/-/mri-1.2.0.tgz#6721480fec2a11a4889861115a48b6cbe7cc8f0b" + integrity sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA== + +ms@2.1.2: + version "2.1.2" + resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" + integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== + +nanoid@^3.3.7: + version "3.3.7" + resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.7.tgz#d0c301a691bc8d54efa0a2226ccf3fe2fd656bd8" + integrity sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g== + +normalize-path@^3.0.0, normalize-path@~3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65" + integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA== + +once@^1.3.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" + integrity sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w== + dependencies: + wrappy "1" + +parent-module@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/parent-module/-/parent-module-1.0.1.tgz#691d2709e78c79fae3a156622452d00762caaaa2" + integrity sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g== + dependencies: + callsites "^3.0.0" + +path-is-absolute@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" + integrity sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg== + +periscopic@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/periscopic/-/periscopic-3.1.0.tgz#7e9037bf51c5855bd33b48928828db4afa79d97a" + integrity sha512-vKiQ8RRtkl9P+r/+oefh25C3fhybptkHKCZSPlcXiJux2tJF55GnEj3BVn4A5gKfq9NWWXXrxkHBwVPUfH0opw== + dependencies: + "@types/estree" "^1.0.0" + estree-walker "^3.0.0" + is-reference "^3.0.0" + +picocolors@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.0.0.tgz#cb5bdc74ff3f51892236eaf79d68bc44564ab81c" + integrity sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ== + +picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.3.1: + version "2.3.1" + resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42" + integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA== + +postcss@^8.4.35: + version "8.4.36" + resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.36.tgz#dba513c3c3733c44e0288a712894f8910bbaabc6" + integrity sha512-/n7eumA6ZjFHAsbX30yhHup/IMkOmlmvtEi7P+6RMYf+bGJSUHc3geH4a0NSZxAz/RJfiS9tooCTs9LAVYUZKw== + dependencies: + nanoid "^3.3.7" + picocolors "^1.0.0" + source-map-js "^1.1.0" + +queue-microtask@^1.2.2: + version "1.2.3" + resolved "https://registry.yarnpkg.com/queue-microtask/-/queue-microtask-1.2.3.tgz#4929228bbc724dfac43e0efb058caf7b6cfb6243" + integrity sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A== + +readdirp@~3.6.0: + version "3.6.0" + resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-3.6.0.tgz#74a370bd857116e245b29cc97340cd431a02a6c7" + integrity sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA== + dependencies: + picomatch "^2.2.1" + +resolve-from@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-4.0.0.tgz#4abcd852ad32dd7baabfe9b40e00a36db5f392e6" + integrity sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g== + +reusify@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/reusify/-/reusify-1.0.4.tgz#90da382b1e126efc02146e90845a88db12925d76" + integrity sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw== + +rimraf@^2.5.2: + version "2.7.1" + resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.7.1.tgz#35797f13a7fdadc566142c29d4f07ccad483e3ec" + integrity sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w== + dependencies: + glob "^7.1.3" + +rollup@^4.2.0, rollup@^4.8.0: + version "4.13.0" + resolved "https://registry.yarnpkg.com/rollup/-/rollup-4.13.0.tgz#dd2ae144b4cdc2ea25420477f68d4937a721237a" + integrity sha512-3YegKemjoQnYKmsBlOHfMLVPPA5xLkQ8MHLLSw/fBrFaVkEayL51DilPpNNLq1exr98F2B1TzrV0FUlN3gWRPg== + dependencies: + "@types/estree" "1.0.5" + optionalDependencies: + "@rollup/rollup-android-arm-eabi" "4.13.0" + "@rollup/rollup-android-arm64" "4.13.0" + "@rollup/rollup-darwin-arm64" "4.13.0" + "@rollup/rollup-darwin-x64" "4.13.0" + "@rollup/rollup-linux-arm-gnueabihf" "4.13.0" + "@rollup/rollup-linux-arm64-gnu" "4.13.0" + "@rollup/rollup-linux-arm64-musl" "4.13.0" + "@rollup/rollup-linux-riscv64-gnu" "4.13.0" + "@rollup/rollup-linux-x64-gnu" "4.13.0" + "@rollup/rollup-linux-x64-musl" "4.13.0" + "@rollup/rollup-win32-arm64-msvc" "4.13.0" + "@rollup/rollup-win32-ia32-msvc" "4.13.0" + "@rollup/rollup-win32-x64-msvc" "4.13.0" + fsevents "~2.3.2" + +run-parallel@^1.1.9: + version "1.2.0" + resolved "https://registry.yarnpkg.com/run-parallel/-/run-parallel-1.2.0.tgz#66d1368da7bdf921eb9d95bd1a9229e7f21a43ee" + integrity sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA== + dependencies: + queue-microtask "^1.2.2" + +sade@^1.7.4: + version "1.8.1" + resolved "https://registry.yarnpkg.com/sade/-/sade-1.8.1.tgz#0a78e81d658d394887be57d2a409bf703a3b2701" + integrity sha512-xal3CZX1Xlo/k4ApwCFrHVACi9fBqJ7V+mwhBsuf/1IOKbBy098Fex+Wa/5QMubw09pSZ/u8EY8PWgevJsXp1A== + dependencies: + mri "^1.1.0" + +sander@^0.5.0: + version "0.5.1" + resolved "https://registry.yarnpkg.com/sander/-/sander-0.5.1.tgz#741e245e231f07cafb6fdf0f133adfa216a502ad" + integrity sha512-3lVqBir7WuKDHGrKRDn/1Ye3kwpXaDOMsiRP1wd6wpZW56gJhsbp5RqQpA6JG/P+pkXizygnr1dKR8vzWaVsfA== + dependencies: + es6-promise "^3.1.2" + graceful-fs "^4.1.3" + mkdirp "^0.5.1" + rimraf "^2.5.2" + +sorcery@^0.11.0: + version "0.11.0" + resolved "https://registry.yarnpkg.com/sorcery/-/sorcery-0.11.0.tgz#310c80ee993433854bb55bb9aa4003acd147fca8" + integrity sha512-J69LQ22xrQB1cIFJhPfgtLuI6BpWRiWu1Y3vSsIwK/eAScqJxd/+CJlUuHQRdX2C9NGFamq+KqNywGgaThwfHw== + dependencies: + "@jridgewell/sourcemap-codec" "^1.4.14" + buffer-crc32 "^0.2.5" + minimist "^1.2.0" + sander "^0.5.0" + +source-map-js@^1.0.1, source-map-js@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/source-map-js/-/source-map-js-1.1.0.tgz#9e7d5cb46f0689fb6691b30f226937558d0fa94b" + integrity sha512-9vC2SfsJzlej6MAaMPLu8HiBSHGdRAJ9hVFYN1ibZoNkeanmDmLUcIrj6G9DGL7XMJ54AKg/G75akXl1/izTOw== + +strip-indent@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/strip-indent/-/strip-indent-3.0.0.tgz#c32e1cee940b6b3432c771bc2c54bcce73cd3001" + integrity sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ== + dependencies: + min-indent "^1.0.0" + +svelte-check@^3.6.6: + version "3.6.7" + resolved "https://registry.yarnpkg.com/svelte-check/-/svelte-check-3.6.7.tgz#ff903e8306950e06c42d7cd61d8f55690f41a4c8" + integrity sha512-tKEjemK9FYCySAseCaIt+ps5o0XRvLC7ECjyJXXtO7vOQhR9E6JavgoUbGP1PCulD2OTcB/fi9RjV3nyF1AROw== + dependencies: + "@jridgewell/trace-mapping" "^0.3.17" + chokidar "^3.4.1" + fast-glob "^3.2.7" + import-fresh "^3.2.1" + picocolors "^1.0.0" + sade "^1.7.4" + svelte-preprocess "^5.1.3" + typescript "^5.0.3" + +svelte-hmr@^0.15.3: + version "0.15.3" + resolved "https://registry.yarnpkg.com/svelte-hmr/-/svelte-hmr-0.15.3.tgz#df54ccde9be3f091bf5f18fc4ef7b8eb6405fbe6" + integrity sha512-41snaPswvSf8TJUhlkoJBekRrABDXDMdpNpT2tfHIv4JuhgvHqLMhEPGtaQn0BmbNSTkuz2Ed20DF2eHw0SmBQ== + +svelte-preprocess@^5.1.3: + version "5.1.3" + resolved "https://registry.yarnpkg.com/svelte-preprocess/-/svelte-preprocess-5.1.3.tgz#7682239fe53f724c845b53026816fdfe15d028f9" + integrity sha512-xxAkmxGHT+J/GourS5mVJeOXZzne1FR5ljeOUAMXUkfEhkLEllRreXpbl3dIYJlcJRfL1LO1uIAPpBpBfiqGPw== + dependencies: + "@types/pug" "^2.0.6" + detect-indent "^6.1.0" + magic-string "^0.30.5" + sorcery "^0.11.0" + strip-indent "^3.0.0" + +svelte@^4.2.12: + version "4.2.12" + resolved "https://registry.yarnpkg.com/svelte/-/svelte-4.2.12.tgz#13d98d2274d24d3ad216c8fdc801511171c70bb1" + integrity sha512-d8+wsh5TfPwqVzbm4/HCXC783/KPHV60NvwitJnyTA5lWn1elhXMNWhXGCJ7PwPa8qFUnyJNIyuIRt2mT0WMug== + dependencies: + "@ampproject/remapping" "^2.2.1" + "@jridgewell/sourcemap-codec" "^1.4.15" + "@jridgewell/trace-mapping" "^0.3.18" + "@types/estree" "^1.0.1" + acorn "^8.9.0" + aria-query "^5.3.0" + axobject-query "^4.0.0" + code-red "^1.0.3" + css-tree "^2.3.1" + estree-walker "^3.0.3" + is-reference "^3.0.1" + locate-character "^3.0.0" + magic-string "^0.30.4" + periscopic "^3.1.0" + +to-regex-range@^5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-5.0.1.tgz#1648c44aae7c8d988a326018ed72f5b4dd0392e4" + integrity sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ== + dependencies: + is-number "^7.0.0" + +tslib@^2.6.2: + version "2.6.2" + resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.6.2.tgz#703ac29425e7b37cd6fd456e92404d46d1f3e4ae" + integrity sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q== + +typescript@^5.0.3, typescript@^5.2.2: + version "5.4.2" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.4.2.tgz#0ae9cebcfae970718474fe0da2c090cad6577372" + integrity sha512-+2/g0Fds1ERlP6JsakQQDXjZdZMM+rqpamFZJEKh4kwTIn3iDkgKtby0CeNd5ATNZ4Ry1ax15TMx0W2V+miizQ== + +uuid@^8.3.2: + version "8.3.2" + resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.3.2.tgz#80d5b5ced271bb9af6c445f21a1a04c606cefbe2" + integrity sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg== + +vite@^5.1.6: + version "5.1.6" + resolved "https://registry.yarnpkg.com/vite/-/vite-5.1.6.tgz#706dae5fab9e97f57578469eef1405fc483943e4" + integrity sha512-yYIAZs9nVfRJ/AiOLCA91zzhjsHUgMjB+EigzFb6W2XTLO8JixBCKCjvhKZaye+NKYHCrkv3Oh50dH9EdLU2RA== + dependencies: + esbuild "^0.19.3" + postcss "^8.4.35" + rollup "^4.2.0" + optionalDependencies: + fsevents "~2.3.3" + +vitefu@^0.2.5: + version "0.2.5" + resolved "https://registry.yarnpkg.com/vitefu/-/vitefu-0.2.5.tgz#c1b93c377fbdd3e5ddd69840ea3aa70b40d90969" + integrity sha512-SgHtMLoqaeeGnd2evZ849ZbACbnwQCIwRH57t18FxcXoZop0uQu0uzlIhJBlF/eWVzuce0sHeqPcDo+evVcg8Q== + +wrappy@1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" + integrity sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ== + +zod@^3.9.8: + version "3.22.4" + resolved "https://registry.yarnpkg.com/zod/-/zod-3.22.4.tgz#f31c3a9386f61b1f228af56faa9255e845cf3fff" + integrity sha512-iC+8Io04lddc+mVqQ9AZ7OQ2MrUKGN+oIQyq1vemgt46jwCwLfhq7/pwnBnNXXXZb8VTVLKwp9EDkx+ryxIWmg==