From d4a140677f587547a2e29e4a81ae81da8b2f2ac0 Mon Sep 17 00:00:00 2001 From: Batyr Date: Thu, 6 Feb 2025 18:03:18 +0500 Subject: [PATCH] build --- .../{about-Bf0Cdvh4.js => about-CmFc3Whw.js} | 2 +- dist/assets/axios-upsvKRUO.js | 6 + .../{b2b-Cul00Ui-.js => b2b-DDcVmyjP.js} | 2 +- ...Denln9LM.js => become-sponsor-B4H_Vmz7.js} | 2 +- dist/assets/contacts-5i8qZt57.js | 1 + dist/assets/contacts-CP1BzZjt.js | 1 - .../{home-BhSPwqSK.js => home-CUo3rv9m.js} | 2 +- .../{index-B8hTaFzt.js => index-B8JNL7Ng.js} | 4 +- dist/assets/index-BszhZ6q_.css | 1 - dist/assets/index-C_aLVrZJ.js | 6 - dist/assets/index-Ch9EIl61.css | 1 + ...up-CIa7-cps.js => radio-group-DgXw47SH.js} | 2 +- ...ervice-iDSMiddG.js => service-D5qlX6-G.js} | 2 +- dist/assets/stend-form-BsyKO9pw.js | 1 - dist/assets/stend-form-C6tB-uem.js | 1 + dist/assets/ui-library-BGb6MWUm.js | 127 ----------------- dist/assets/ui-library-rbj8Yi4H.js | 132 ++++++++++++++++++ dist/index.html | 6 +- 18 files changed, 152 insertions(+), 147 deletions(-) rename dist/assets/{about-Bf0Cdvh4.js => about-CmFc3Whw.js} (85%) create mode 100644 dist/assets/axios-upsvKRUO.js rename dist/assets/{b2b-Cul00Ui-.js => b2b-DDcVmyjP.js} (66%) rename dist/assets/{become-sponsor-Denln9LM.js => become-sponsor-B4H_Vmz7.js} (77%) create mode 100644 dist/assets/contacts-5i8qZt57.js delete mode 100644 dist/assets/contacts-CP1BzZjt.js rename dist/assets/{home-BhSPwqSK.js => home-CUo3rv9m.js} (76%) rename dist/assets/{index-B8hTaFzt.js => index-B8JNL7Ng.js} (69%) delete mode 100644 dist/assets/index-BszhZ6q_.css delete mode 100644 dist/assets/index-C_aLVrZJ.js create mode 100644 dist/assets/index-Ch9EIl61.css rename dist/assets/{radio-group-CIa7-cps.js => radio-group-DgXw47SH.js} (92%) rename dist/assets/{service-iDSMiddG.js => service-D5qlX6-G.js} (80%) delete mode 100644 dist/assets/stend-form-BsyKO9pw.js create mode 100644 dist/assets/stend-form-C6tB-uem.js delete mode 100644 dist/assets/ui-library-BGb6MWUm.js create mode 100644 dist/assets/ui-library-rbj8Yi4H.js diff --git a/dist/assets/about-Bf0Cdvh4.js b/dist/assets/about-CmFc3Whw.js similarity index 85% rename from dist/assets/about-Bf0Cdvh4.js rename to dist/assets/about-CmFc3Whw.js index ef47d1b..35fbb91 100644 --- a/dist/assets/about-Bf0Cdvh4.js +++ b/dist/assets/about-CmFc3Whw.js @@ -1 +1 @@ -import{u as t,j as s,f as e,C as u,L as n,A as r,g as i,h as x,i as j,k as l}from"./ui-library-BGb6MWUm.js";import"./react-vendor-OnsDvTPE.js";import{u as m}from"./use-scroll-top-ByehxtTO.js";function f(){m();const o=t(a=>a.lang);return s.jsxs("div",{className:e(""),children:[s.jsx(u,{title:o===n.RU?"О выставке":"About exhibition"}),s.jsx(r,{}),s.jsx(i,{}),s.jsx(x,{}),s.jsx(j,{}),s.jsx(l,{})]})}export{f as default}; +import{u as t,j as s,f as e,C as u,L as n,A as r,g as i,h as x,i as j,k as l}from"./ui-library-rbj8Yi4H.js";import"./react-vendor-OnsDvTPE.js";import{u as m}from"./use-scroll-top-ByehxtTO.js";function f(){m();const o=t(a=>a.lang);return s.jsxs("div",{className:e(""),children:[s.jsx(u,{title:o===n.RU?"О выставке":"About exhibition"}),s.jsx(r,{}),s.jsx(i,{}),s.jsx(x,{}),s.jsx(j,{}),s.jsx(l,{})]})}export{f as default}; diff --git a/dist/assets/axios-upsvKRUO.js b/dist/assets/axios-upsvKRUO.js new file mode 100644 index 0000000..44f89ed --- /dev/null +++ b/dist/assets/axios-upsvKRUO.js @@ -0,0 +1,6 @@ +function Ne(e,t){return function(){return e.apply(t,arguments)}}const{toString:Ze}=Object.prototype,{getPrototypeOf:ue}=Object,K=(e=>t=>{const n=Ze.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),C=e=>(e=e.toLowerCase(),t=>K(t)===e),v=e=>t=>typeof t===e,{isArray:U}=Array,q=v("undefined");function Ye(e){return e!==null&&!q(e)&&e.constructor!==null&&!q(e.constructor)&&x(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Pe=C("ArrayBuffer");function et(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Pe(e.buffer),t}const tt=v("string"),x=v("function"),_e=v("number"),X=e=>e!==null&&typeof e=="object",nt=e=>e===!0||e===!1,z=e=>{if(K(e)!=="object")return!1;const t=ue(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},rt=C("Date"),st=C("File"),ot=C("Blob"),it=C("FileList"),at=e=>X(e)&&x(e.pipe),ct=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||x(e.append)&&((t=K(e))==="formdata"||t==="object"&&x(e.toString)&&e.toString()==="[object FormData]"))},ut=C("URLSearchParams"),[lt,ft,dt,pt]=["ReadableStream","Request","Response","Headers"].map(C),ht=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function I(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),U(e))for(r=0,s=e.length;r0;)if(s=n[r],t===s.toLowerCase())return s;return null}const L=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Le=e=>!q(e)&&e!==L;function re(){const{caseless:e}=Le(this)&&this||{},t={},n=(r,s)=>{const o=e&&Fe(t,s)||s;z(t[o])&&z(r)?t[o]=re(t[o],r):z(r)?t[o]=re({},r):U(r)?t[o]=r.slice():t[o]=r};for(let r=0,s=arguments.length;r(I(t,(s,o)=>{n&&x(s)?e[o]=Ne(s,n):e[o]=s},{allOwnKeys:r}),e),yt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),bt=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},wt=(e,t,n,r)=>{let s,o,i;const c={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!c[i]&&(t[i]=e[i],c[i]=!0);e=n!==!1&&ue(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Et=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Rt=e=>{if(!e)return null;if(U(e))return e;let t=e.length;if(!_e(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},St=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ue(Uint8Array)),gt=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},Ot=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Tt=C("HTMLFormElement"),At=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),he=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),xt=C("RegExp"),Be=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};I(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},Ct=e=>{Be(e,(t,n)=>{if(x(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(x(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Nt=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return U(e)?r(e):r(String(e).split(t)),n},Pt=()=>{},_t=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Y="abcdefghijklmnopqrstuvwxyz",me="0123456789",De={DIGIT:me,ALPHA:Y,ALPHA_DIGIT:Y+Y.toUpperCase()+me},Ft=(e=16,t=De.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Lt(e){return!!(e&&x(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Bt=e=>{const t=new Array(10),n=(r,s)=>{if(X(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const o=U(r)?[]:{};return I(r,(i,c)=>{const f=n(i,s+1);!q(f)&&(o[c]=f)}),t[s]=void 0,o}}return r};return n(e,0)},Dt=C("AsyncFunction"),Ut=e=>e&&(X(e)||x(e))&&x(e.then)&&x(e.catch),Ue=((e,t)=>e?setImmediate:t?((n,r)=>(L.addEventListener("message",({source:s,data:o})=>{s===L&&o===n&&r.length&&r.shift()()},!1),s=>{r.push(s),L.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",x(L.postMessage)),kt=typeof queueMicrotask<"u"?queueMicrotask.bind(L):typeof process<"u"&&process.nextTick||Ue,a={isArray:U,isArrayBuffer:Pe,isBuffer:Ye,isFormData:ct,isArrayBufferView:et,isString:tt,isNumber:_e,isBoolean:nt,isObject:X,isPlainObject:z,isReadableStream:lt,isRequest:ft,isResponse:dt,isHeaders:pt,isUndefined:q,isDate:rt,isFile:st,isBlob:ot,isRegExp:xt,isFunction:x,isStream:at,isURLSearchParams:ut,isTypedArray:St,isFileList:it,forEach:I,merge:re,extend:mt,trim:ht,stripBOM:yt,inherits:bt,toFlatObject:wt,kindOf:K,kindOfTest:C,endsWith:Et,toArray:Rt,forEachEntry:gt,matchAll:Ot,isHTMLForm:Tt,hasOwnProperty:he,hasOwnProp:he,reduceDescriptors:Be,freezeMethods:Ct,toObjectSet:Nt,toCamelCase:At,noop:Pt,toFiniteNumber:_t,findKey:Fe,global:L,isContextDefined:Le,ALPHABET:De,generateString:Ft,isSpecCompliantForm:Lt,toJSONObject:Bt,isAsyncFn:Dt,isThenable:Ut,setImmediate:Ue,asap:kt};function m(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}a.inherits(m,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:a.toJSONObject(this.config),code:this.code,status:this.status}}});const ke=m.prototype,je={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{je[e]={value:e}});Object.defineProperties(m,je);Object.defineProperty(ke,"isAxiosError",{value:!0});m.from=(e,t,n,r,s,o)=>{const i=Object.create(ke);return a.toFlatObject(e,i,function(f){return f!==Error.prototype},c=>c!=="isAxiosError"),m.call(i,e.message,t,n,r,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const jt=null;function se(e){return a.isPlainObject(e)||a.isArray(e)}function qe(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function ye(e,t,n){return e?e.concat(t).map(function(s,o){return s=qe(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function qt(e){return a.isArray(e)&&!e.some(se)}const It=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function G(e,t,n){if(!a.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,h){return!a.isUndefined(h[y])});const r=n.metaTokens,s=n.visitor||l,o=n.dots,i=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(t);if(!a.isFunction(s))throw new TypeError("visitor must be a function");function u(p){if(p===null)return"";if(a.isDate(p))return p.toISOString();if(!f&&a.isBlob(p))throw new m("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(p)||a.isTypedArray(p)?f&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function l(p,y,h){let w=p;if(p&&!h&&typeof p=="object"){if(a.endsWith(y,"{}"))y=r?y:y.slice(0,-2),p=JSON.stringify(p);else if(a.isArray(p)&&qt(p)||(a.isFileList(p)||a.endsWith(y,"[]"))&&(w=a.toArray(p)))return y=qe(y),w.forEach(function(g,P){!(a.isUndefined(g)||g===null)&&t.append(i===!0?ye([y],P,o):i===null?y:y+"[]",u(g))}),!1}return se(p)?!0:(t.append(ye(h,y,o),u(p)),!1)}const d=[],b=Object.assign(It,{defaultVisitor:l,convertValue:u,isVisitable:se});function E(p,y){if(!a.isUndefined(p)){if(d.indexOf(p)!==-1)throw Error("Circular reference detected in "+y.join("."));d.push(p),a.forEach(p,function(w,R){(!(a.isUndefined(w)||w===null)&&s.call(t,w,a.isString(R)?R.trim():R,y,b))===!0&&E(w,y?y.concat(R):[R])}),d.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return E(e),t}function be(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function le(e,t){this._pairs=[],e&&G(e,this,t)}const Ie=le.prototype;Ie.append=function(t,n){this._pairs.push([t,n])};Ie.toString=function(t){const n=t?function(r){return t.call(this,r,be)}:be;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Ht(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function He(e,t,n){if(!t)return e;const r=n&&n.encode||Ht;a.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let o;if(s?o=s(t,n):o=a.isURLSearchParams(t)?t.toString():new le(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class we{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){a.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Me={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Mt=typeof URLSearchParams<"u"?URLSearchParams:le,zt=typeof FormData<"u"?FormData:null,Jt=typeof Blob<"u"?Blob:null,Vt={isBrowser:!0,classes:{URLSearchParams:Mt,FormData:zt,Blob:Jt},protocols:["http","https","file","blob","url","data"]},fe=typeof window<"u"&&typeof document<"u",oe=typeof navigator=="object"&&navigator||void 0,$t=fe&&(!oe||["ReactNative","NativeScript","NS"].indexOf(oe.product)<0),Wt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Kt=fe&&window.location.href||"http://localhost",vt=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:fe,hasStandardBrowserEnv:$t,hasStandardBrowserWebWorkerEnv:Wt,navigator:oe,origin:Kt},Symbol.toStringTag,{value:"Module"})),O={...vt,...Vt};function Xt(e,t){return G(e,new O.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return O.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Gt(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Qt(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r=n.length;return i=!i&&a.isArray(s)?s.length:i,f?(a.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!c):((!s[i]||!a.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&a.isArray(s[i])&&(s[i]=Qt(s[i])),!c)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(r,s)=>{t(Gt(r),s,n,0)}),n}return null}function Zt(e,t,n){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const H={transitional:Me,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=a.isObject(t);if(o&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return s?JSON.stringify(ze(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t)||a.isReadableStream(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Xt(t,this.formSerializer).toString();if((c=a.isFileList(t))||r.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return G(c?{"files[]":t}:t,f&&new f,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),Zt(t)):t}],transformResponse:[function(t){const n=this.transitional||H.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(a.isResponse(t)||a.isReadableStream(t))return t;if(t&&a.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(c){if(i)throw c.name==="SyntaxError"?m.from(c,m.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:O.classes.FormData,Blob:O.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.forEach(["delete","get","head","post","put","patch"],e=>{H.headers[e]={}});const Yt=a.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),en=e=>{const t={};let n,r,s;return e&&e.split(` +`).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||t[n]&&Yt[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Ee=Symbol("internals");function j(e){return e&&String(e).trim().toLowerCase()}function J(e){return e===!1||e==null?e:a.isArray(e)?e.map(J):String(e)}function tn(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const nn=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ee(e,t,n,r,s){if(a.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!a.isString(t)){if(a.isString(r))return t.indexOf(r)!==-1;if(a.isRegExp(r))return r.test(t)}}function rn(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function sn(e,t){const n=a.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,o,i){return this[r].call(this,t,s,o,i)},configurable:!0})})}class A{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(c,f,u){const l=j(f);if(!l)throw new Error("header name must be a non-empty string");const d=a.findKey(s,l);(!d||s[d]===void 0||u===!0||u===void 0&&s[d]!==!1)&&(s[d||f]=J(c))}const i=(c,f)=>a.forEach(c,(u,l)=>o(u,l,f));if(a.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(a.isString(t)&&(t=t.trim())&&!nn(t))i(en(t),n);else if(a.isHeaders(t))for(const[c,f]of t.entries())o(f,c,r);else t!=null&&o(n,t,r);return this}get(t,n){if(t=j(t),t){const r=a.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return tn(s);if(a.isFunction(n))return n.call(this,s,r);if(a.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=j(t),t){const r=a.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||ee(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(i){if(i=j(i),i){const c=a.findKey(r,i);c&&(!n||ee(r,r[c],c,n))&&(delete r[c],s=!0)}}return a.isArray(t)?t.forEach(o):o(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!t||ee(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,r={};return a.forEach(this,(s,o)=>{const i=a.findKey(r,o);if(i){n[i]=J(s),delete n[o];return}const c=t?rn(o):String(o).trim();c!==o&&delete n[o],n[c]=J(s),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return a.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&a.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[Ee]=this[Ee]={accessors:{}}).accessors,s=this.prototype;function o(i){const c=j(i);r[c]||(sn(s,i),r[c]=!0)}return a.isArray(t)?t.forEach(o):o(t),this}}A.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);a.reduceDescriptors(A.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});a.freezeMethods(A);function te(e,t){const n=this||H,r=t||n,s=A.from(r.headers);let o=r.data;return a.forEach(e,function(c){o=c.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function Je(e){return!!(e&&e.__CANCEL__)}function k(e,t,n){m.call(this,e??"canceled",m.ERR_CANCELED,t,n),this.name="CanceledError"}a.inherits(k,m,{__CANCEL__:!0});function Ve(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new m("Request failed with status code "+n.status,[m.ERR_BAD_REQUEST,m.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function on(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function an(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(f){const u=Date.now(),l=r[o];i||(i=u),n[s]=f,r[s]=u;let d=o,b=0;for(;d!==s;)b+=n[d++],d=d%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),u-i{n=l,s=null,o&&(clearTimeout(o),o=null),e.apply(null,u)};return[(...u)=>{const l=Date.now(),d=l-n;d>=r?i(u,l):(s=u,o||(o=setTimeout(()=>{o=null,i(s)},r-d)))},()=>s&&i(s)]}const $=(e,t,n=3)=>{let r=0;const s=an(50,250);return cn(o=>{const i=o.loaded,c=o.lengthComputable?o.total:void 0,f=i-r,u=s(f),l=i<=c;r=i;const d={loaded:i,total:c,progress:c?i/c:void 0,bytes:f,rate:u||void 0,estimated:u&&c&&l?(c-i)/u:void 0,event:o,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(d)},n)},Re=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Se=e=>(...t)=>a.asap(()=>e(...t)),un=O.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,O.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(O.origin),O.navigator&&/(msie|trident)/i.test(O.navigator.userAgent)):()=>!0,ln=O.hasStandardBrowserEnv?{write(e,t,n,r,s,o){const i=[e+"="+encodeURIComponent(t)];a.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),a.isString(r)&&i.push("path="+r),a.isString(s)&&i.push("domain="+s),o===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function fn(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function dn(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function $e(e,t){return e&&!fn(t)?dn(e,t):t}const ge=e=>e instanceof A?{...e}:e;function D(e,t){t=t||{};const n={};function r(u,l,d,b){return a.isPlainObject(u)&&a.isPlainObject(l)?a.merge.call({caseless:b},u,l):a.isPlainObject(l)?a.merge({},l):a.isArray(l)?l.slice():l}function s(u,l,d,b){if(a.isUndefined(l)){if(!a.isUndefined(u))return r(void 0,u,d,b)}else return r(u,l,d,b)}function o(u,l){if(!a.isUndefined(l))return r(void 0,l)}function i(u,l){if(a.isUndefined(l)){if(!a.isUndefined(u))return r(void 0,u)}else return r(void 0,l)}function c(u,l,d){if(d in t)return r(u,l);if(d in e)return r(void 0,u)}const f={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:c,headers:(u,l,d)=>s(ge(u),ge(l),d,!0)};return a.forEach(Object.keys(Object.assign({},e,t)),function(l){const d=f[l]||s,b=d(e[l],t[l],l);a.isUndefined(b)&&d!==c||(n[l]=b)}),n}const We=e=>{const t=D({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:o,headers:i,auth:c}=t;t.headers=i=A.from(i),t.url=He($e(t.baseURL,t.url),e.params,e.paramsSerializer),c&&i.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let f;if(a.isFormData(n)){if(O.hasStandardBrowserEnv||O.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((f=i.getContentType())!==!1){const[u,...l]=f?f.split(";").map(d=>d.trim()).filter(Boolean):[];i.setContentType([u||"multipart/form-data",...l].join("; "))}}if(O.hasStandardBrowserEnv&&(r&&a.isFunction(r)&&(r=r(t)),r||r!==!1&&un(t.url))){const u=s&&o&&ln.read(o);u&&i.set(s,u)}return t},pn=typeof XMLHttpRequest<"u",hn=pn&&function(e){return new Promise(function(n,r){const s=We(e);let o=s.data;const i=A.from(s.headers).normalize();let{responseType:c,onUploadProgress:f,onDownloadProgress:u}=s,l,d,b,E,p;function y(){E&&E(),p&&p(),s.cancelToken&&s.cancelToken.unsubscribe(l),s.signal&&s.signal.removeEventListener("abort",l)}let h=new XMLHttpRequest;h.open(s.method.toUpperCase(),s.url,!0),h.timeout=s.timeout;function w(){if(!h)return;const g=A.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),T={data:!c||c==="text"||c==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:g,config:e,request:h};Ve(function(F){n(F),y()},function(F){r(F),y()},T),h=null}"onloadend"in h?h.onloadend=w:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(w)},h.onabort=function(){h&&(r(new m("Request aborted",m.ECONNABORTED,e,h)),h=null)},h.onerror=function(){r(new m("Network Error",m.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let P=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const T=s.transitional||Me;s.timeoutErrorMessage&&(P=s.timeoutErrorMessage),r(new m(P,T.clarifyTimeoutError?m.ETIMEDOUT:m.ECONNABORTED,e,h)),h=null},o===void 0&&i.setContentType(null),"setRequestHeader"in h&&a.forEach(i.toJSON(),function(P,T){h.setRequestHeader(T,P)}),a.isUndefined(s.withCredentials)||(h.withCredentials=!!s.withCredentials),c&&c!=="json"&&(h.responseType=s.responseType),u&&([b,p]=$(u,!0),h.addEventListener("progress",b)),f&&h.upload&&([d,E]=$(f),h.upload.addEventListener("progress",d),h.upload.addEventListener("loadend",E)),(s.cancelToken||s.signal)&&(l=g=>{h&&(r(!g||g.type?new k(null,e,h):g),h.abort(),h=null)},s.cancelToken&&s.cancelToken.subscribe(l),s.signal&&(s.signal.aborted?l():s.signal.addEventListener("abort",l)));const R=on(s.url);if(R&&O.protocols.indexOf(R)===-1){r(new m("Unsupported protocol "+R+":",m.ERR_BAD_REQUEST,e));return}h.send(o||null)})},mn=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,s;const o=function(u){if(!s){s=!0,c();const l=u instanceof Error?u:this.reason;r.abort(l instanceof m?l:new k(l instanceof Error?l.message:l))}};let i=t&&setTimeout(()=>{i=null,o(new m(`timeout ${t} of ms exceeded`,m.ETIMEDOUT))},t);const c=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(o):u.removeEventListener("abort",o)}),e=null)};e.forEach(u=>u.addEventListener("abort",o));const{signal:f}=r;return f.unsubscribe=()=>a.asap(c),f}},yn=function*(e,t){let n=e.byteLength;if(n{const s=bn(e,t);let o=0,i,c=f=>{i||(i=!0,r&&r(f))};return new ReadableStream({async pull(f){try{const{done:u,value:l}=await s.next();if(u){c(),f.close();return}let d=l.byteLength;if(n){let b=o+=d;n(b)}f.enqueue(new Uint8Array(l))}catch(u){throw c(u),u}},cancel(f){return c(f),s.return()}},{highWaterMark:2})},Q=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Ke=Q&&typeof ReadableStream=="function",En=Q&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),ve=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Rn=Ke&&ve(()=>{let e=!1;const t=new Request(O.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Te=64*1024,ie=Ke&&ve(()=>a.isReadableStream(new Response("").body)),W={stream:ie&&(e=>e.body)};Q&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!W[t]&&(W[t]=a.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new m(`Response type '${t}' is not supported`,m.ERR_NOT_SUPPORT,r)})})})(new Response);const Sn=async e=>{if(e==null)return 0;if(a.isBlob(e))return e.size;if(a.isSpecCompliantForm(e))return(await new Request(O.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(a.isArrayBufferView(e)||a.isArrayBuffer(e))return e.byteLength;if(a.isURLSearchParams(e)&&(e=e+""),a.isString(e))return(await En(e)).byteLength},gn=async(e,t)=>{const n=a.toFiniteNumber(e.getContentLength());return n??Sn(t)},On=Q&&(async e=>{let{url:t,method:n,data:r,signal:s,cancelToken:o,timeout:i,onDownloadProgress:c,onUploadProgress:f,responseType:u,headers:l,withCredentials:d="same-origin",fetchOptions:b}=We(e);u=u?(u+"").toLowerCase():"text";let E=mn([s,o&&o.toAbortSignal()],i),p;const y=E&&E.unsubscribe&&(()=>{E.unsubscribe()});let h;try{if(f&&Rn&&n!=="get"&&n!=="head"&&(h=await gn(l,r))!==0){let T=new Request(t,{method:"POST",body:r,duplex:"half"}),_;if(a.isFormData(r)&&(_=T.headers.get("content-type"))&&l.setContentType(_),T.body){const[F,M]=Re(h,$(Se(f)));r=Oe(T.body,Te,F,M)}}a.isString(d)||(d=d?"include":"omit");const w="credentials"in Request.prototype;p=new Request(t,{...b,signal:E,method:n.toUpperCase(),headers:l.normalize().toJSON(),body:r,duplex:"half",credentials:w?d:void 0});let R=await fetch(p);const g=ie&&(u==="stream"||u==="response");if(ie&&(c||g&&y)){const T={};["status","statusText","headers"].forEach(pe=>{T[pe]=R[pe]});const _=a.toFiniteNumber(R.headers.get("content-length")),[F,M]=c&&Re(_,$(Se(c),!0))||[];R=new Response(Oe(R.body,Te,F,()=>{M&&M(),y&&y()}),T)}u=u||"text";let P=await W[a.findKey(W,u)||"text"](R,e);return!g&&y&&y(),await new Promise((T,_)=>{Ve(T,_,{data:P,headers:A.from(R.headers),status:R.status,statusText:R.statusText,config:e,request:p})})}catch(w){throw y&&y(),w&&w.name==="TypeError"&&/fetch/i.test(w.message)?Object.assign(new m("Network Error",m.ERR_NETWORK,e,p),{cause:w.cause||w}):m.from(w,w&&w.code,e,p)}}),ae={http:jt,xhr:hn,fetch:On};a.forEach(ae,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ae=e=>`- ${e}`,Tn=e=>a.isFunction(e)||e===null||e===!1,Xe={getAdapter:e=>{e=a.isArray(e)?e:[e];const{length:t}=e;let n,r;const s={};for(let o=0;o`adapter ${c} `+(f===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since : +`+o.map(Ae).join(` +`):" "+Ae(o[0]):"as no adapter specified";throw new m("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:ae};function ne(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new k(null,e)}function xe(e){return ne(e),e.headers=A.from(e.headers),e.data=te.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Xe.getAdapter(e.adapter||H.adapter)(e).then(function(r){return ne(e),r.data=te.call(e,e.transformResponse,r),r.headers=A.from(r.headers),r},function(r){return Je(r)||(ne(e),r&&r.response&&(r.response.data=te.call(e,e.transformResponse,r.response),r.response.headers=A.from(r.response.headers))),Promise.reject(r)})}const Ge="1.7.9",Z={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Z[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Ce={};Z.transitional=function(t,n,r){function s(o,i){return"[Axios v"+Ge+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,c)=>{if(t===!1)throw new m(s(i," has been removed"+(n?" in "+n:"")),m.ERR_DEPRECATED);return n&&!Ce[i]&&(Ce[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,c):!0}};Z.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function An(e,t,n){if(typeof e!="object")throw new m("options must be an object",m.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const o=r[s],i=t[o];if(i){const c=e[o],f=c===void 0||i(c,o,e);if(f!==!0)throw new m("option "+o+" must be "+f,m.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new m("Unknown option "+o,m.ERR_BAD_OPTION)}}const V={assertOptions:An,validators:Z},N=V.validators;class B{constructor(t){this.defaults=t,this.interceptors={request:new we,response:new we}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const o=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=` +`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=D(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&V.assertOptions(r,{silentJSONParsing:N.transitional(N.boolean),forcedJSONParsing:N.transitional(N.boolean),clarifyTimeoutError:N.transitional(N.boolean)},!1),s!=null&&(a.isFunction(s)?n.paramsSerializer={serialize:s}:V.assertOptions(s,{encode:N.function,serialize:N.function},!0)),V.assertOptions(n,{baseUrl:N.spelling("baseURL"),withXsrfToken:N.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&a.merge(o.common,o[n.method]);o&&a.forEach(["delete","get","head","post","put","patch","common"],p=>{delete o[p]}),n.headers=A.concat(i,o);const c=[];let f=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(f=f&&y.synchronous,c.unshift(y.fulfilled,y.rejected))});const u=[];this.interceptors.response.forEach(function(y){u.push(y.fulfilled,y.rejected)});let l,d=0,b;if(!f){const p=[xe.bind(this),void 0];for(p.unshift.apply(p,c),p.push.apply(p,u),b=p.length,l=Promise.resolve(n);d{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(c=>{r.subscribe(c),o=c}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,c){r.reason||(r.reason=new k(o,i,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new de(function(s){t=s}),cancel:t}}}function xn(e){return function(n){return e.apply(null,n)}}function Cn(e){return a.isObject(e)&&e.isAxiosError===!0}const ce={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ce).forEach(([e,t])=>{ce[t]=e});function Qe(e){const t=new B(e),n=Ne(B.prototype.request,t);return a.extend(n,B.prototype,t,{allOwnKeys:!0}),a.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return Qe(D(e,s))},n}const S=Qe(H);S.Axios=B;S.CanceledError=k;S.CancelToken=de;S.isCancel=Je;S.VERSION=Ge;S.toFormData=G;S.AxiosError=m;S.Cancel=S.CanceledError;S.all=function(t){return Promise.all(t)};S.spread=xn;S.isAxiosError=Cn;S.mergeConfig=D;S.AxiosHeaders=A;S.formToJSON=e=>ze(a.isHTMLForm(e)?new FormData(e):e);S.getAdapter=Xe.getAdapter;S.HttpStatusCode=ce;S.default=S;export{S as a}; diff --git a/dist/assets/b2b-Cul00Ui-.js b/dist/assets/b2b-DDcVmyjP.js similarity index 66% rename from dist/assets/b2b-Cul00Ui-.js rename to dist/assets/b2b-DDcVmyjP.js index 4b8576d..7b8a914 100644 --- a/dist/assets/b2b-Cul00Ui-.js +++ b/dist/assets/b2b-DDcVmyjP.js @@ -1 +1 @@ -import{l as B,u as f,j as e,m as S,n as r,o as R,p as j,q as y,L as u,r as v,s as o,B as h,t as V,v as D,w as q,x as N,y as z,C as E,z as H}from"./ui-library-BGb6MWUm.js";import{a as w}from"./react-vendor-OnsDvTPE.js";import{z as s,t as L,a as U}from"./index-C_aLVrZJ.js";import{R as A,a as C}from"./radio-group-CIa7-cps.js";import{u as T}from"./use-scroll-top-ByehxtTO.js";const I=s.object({type:s.string(),company_name:s.string().min(3,{message:"Название компании должно быть не менее 3 символов"}),representative_name:s.string().min(3,{message:"Имя представителя должно быть не менее 3 символов"}),job_title:s.string().min(3,{message:"Должность должна быть не менее 3 символов"}),participants_number:s.string().min(1,{message:"Укажите количество участников"}),country:s.string().min(3,{message:"Название страны должно быть не менее 3 символов"}),email_address:s.string().email({message:"Укажите корректный email"}),phone_number:s.string().min(8,{message:"Номер телефона должен быть не менее 8 символов"}),website:s.string().optional(),meeting_objective:s.string().min(3,{message:"Укажите цель встречи"}),proposal_description:s.string().optional(),government_agency:s.string().optional(),sector_industry:s.string().optional(),key_services:s.string().optional(),government_experience:s.string().optional(),preferred_meeting_datetime:s.string().optional(),meeting_mode:s.string().optional(),language_preference:s.string().optional(),technical_requirements:s.string().optional(),company_profile:s.custom(l=>l instanceof File,{message:"Выберите корректный файл"}).refine(l=>l&&["image/jpeg","image/png","application/pdf"].includes(l.type),{message:"Допускаются только файлы JPG, PNG и PDF"}).optional(),proposal_presentation:s.custom(l=>l instanceof File,{message:"Выберите корректный файл"}).refine(l=>l&&["image/jpeg","image/png","application/pdf"].includes(l.type),{message:"Допускаются только файлы JPG, PNG и PDF"}).optional(),relevant_certification:s.custom(l=>l instanceof File,{message:"Выберите корректный файл"}).refine(l=>l&&["image/jpeg","image/png","application/pdf"].includes(l.type),{message:"Допускаются только файлы JPG, PNG и PDF"}).optional()}),J={type:"B2B",company_name:"",representative_name:"",job_title:"",participants_number:"",country:"",email_address:"",phone_number:"",website:"",meeting_objective:"",proposal_description:"",government_agency:"",sector_industry:"",key_services:"",government_experience:"",preferred_meeting_datetime:"",meeting_mode:"",language_preference:"",technical_requirements:""},m=[{h2:"Информация об экспоненте:",data:[{label:"Название компании/организации"},{label:"Имя представителя"},{label:"Название должности/позиция"},{label:"Количество участников"},{label:"Страна"},{label:"E-mail адрес"},{label:"Номер телефона"},{label:"Вебсайт"}]},{h2:"Applicant Information:",data:[{label:"Company/Organization Name"},{label:"Name of Representative"},{label:"Job title/Position"},{label:"Number of the participants"},{label:"Country"},{label:"E-mail address"},{label:"Phone number"},{label:"Website"}]}],p=[{h2:"Цели встречи:",secondH2:"Информация о компании/организации:",data:[{label:"Основная цель встречи"},{label:"Краткое описание вашего предложения/проекта/запроса"},{label:"Соответствующее государственное учреждение/департамент"},{label:"Отраслевая промышленность"},{label:"Ключевые услуги/продукты"},{label:"Предыдущий опыт работы с правительствами (если применимо)"}]},{h2:"Meeting Purpose: ",secondH2:"Company/Organization Profile:",data:[{label:"Primary objective of the meeting"},{label:"Brief description of your proposal/project/request"},{label:"Relevant government agency/department"},{label:"Sector Industry "},{label:"Key Services/Products"},{label:"Previous Experience working with Governments (if applicable)"}]}],c=[{h2:"Логистика встречи:",secondH2:"Логистика встречи:",subtitle:"(Пожалуйста приложите следующие документы, если это необходимо)",data:[{label:"Предпочтительная дата и время"},{label:"Предпочтительный способ проведения встречи (лично, виртуально (через zoom/ teams/другое), гибридный)"},{label:"Предпочитаемый язык (английский, туркменский, русский, другой)"},{label:"Дополнительные технические или логистические требования (например, аудио-видео оборудование, переводчики и т.д.)"},{label:"Название компании/организации"},{label:"Предложение/презентация"},{label:"Соответствующие сертификаты/лицензии"}],button:"Отправить"},{h2:"Приложения:",secondH2:"Attachments",subtitle:"(Please attach the following documents as applicable)",data:[{label:"Preferred date and time for the meeting"},{label:"Preferred mode of meeting (in-person, virtual (via zoom/teams/other), hybrid)"},{label:"Language preference (English, turkmen, Russian, other)"},{label:"Additional technical or logistical requirements (e.g. AV equipment, interpreters, etc)"},{label:"Company/organization profile"},{label:"Proposal presentation"},{label:"Relevant certification/licenses"}],button:"Send"}],O=({handleNext:l})=>{const{control:n,formState:t}=B(),a=f(i=>i.lang);return e.jsxs(S.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,y:"100%",transition:{duration:.2}},className:"w-full",children:[e.jsx("h2",{className:"h2 mb-8",children:m[r(a)].h2}),e.jsxs("div",{className:"flex flex-col gap-8",children:[e.jsx(R,{defaultValue:1,control:n,name:"type",render:({field:i})=>e.jsxs(j,{className:"space-y-3",children:[e.jsx(y,{className:"text-xl",children:a===u.RU?"Тип:":"Type:"}),e.jsx(v,{children:e.jsxs(A,{onValueChange:i.onChange,defaultValue:i.value,className:"flex flex-col space-y-4",children:[e.jsxs(j,{className:"flex items-center space-x-3 space-y-0",children:[e.jsx(v,{children:e.jsx(C,{value:"B2B",checked:i.value==="B2B"})}),e.jsx(y,{className:"text-base",children:"B2B"})]}),e.jsxs(j,{className:"flex items-center space-x-3 space-y-0",children:[e.jsx(v,{children:e.jsx(C,{value:"B2G",checked:i.value==="B2G"})}),e.jsx(y,{className:"text-base",children:"B2G"})]})]})})]})}),e.jsx(o,{control:n,name:"company_name",error:t.errors.company_name,placeholder:"",label:m[r(a)].data[0].label}),e.jsx(o,{control:n,name:"representative_name",error:t.errors.representative_name,placeholder:"",label:m[r(a)].data[1].label}),e.jsx(o,{control:n,name:"job_title",error:t.errors.job_title,placeholder:"",label:m[r(a)].data[2].label}),e.jsx(o,{control:n,name:"participants_number",error:t.errors.participants_number,placeholder:"",label:m[r(a)].data[3].label}),e.jsx(o,{control:n,name:"country",error:t.errors.country,placeholder:"",label:m[r(a)].data[4].label}),e.jsx(o,{control:n,name:"email_address",error:t.errors.email_address,placeholder:"",label:m[r(a)].data[5].label}),e.jsx(o,{control:n,name:"phone_number",error:t.errors.phone_number,placeholder:"",label:m[r(a)].data[6].label}),e.jsx(o,{control:n,name:"website",placeholder:"",label:m[r(a)].data[7].label})]}),e.jsx(h,{variant:"secondary",type:"button",onClick:l,className:"w-full mt-10",children:a===u.RU?"Далее":"Next"})]})},$=({handleNext:l,handlePrev:n})=>{const t=f(x=>x.lang),{control:a,formState:i}=B();return e.jsxs(S.div,{initial:{opacity:0,y:-100},animate:{opacity:1,y:0,transition:{delay:.5,duration:.3}},exit:{opacity:0,y:100},children:[e.jsx("h2",{className:"h2 mb-8",children:p[r(t)].h2}),e.jsxs("div",{className:"flex flex-col gap-8",children:[e.jsx(o,{control:a,name:"meeting_objective",error:i.errors.meeting_objective,placeholder:"",label:p[r(t)].data[0].label}),e.jsx(o,{control:a,name:"proposal_description",error:i.errors.proposal_description,placeholder:"",label:p[r(t)].data[1].label}),e.jsx(o,{control:a,name:"government_agency",error:i.errors.government_agency,placeholder:"",label:p[r(t)].data[2].label}),e.jsx("h2",{className:"h2 mt-4",children:p[r(t)].secondH2}),e.jsx(o,{control:a,name:"sector_industry",error:i.errors.sector_industry,placeholder:"",label:p[r(t)].data[3].label}),e.jsx(o,{control:a,name:"key_services",error:i.errors.key_services,placeholder:"",label:p[r(t)].data[4].label}),e.jsx(o,{control:a,name:"government_experience",error:i.errors.government_experience,placeholder:"",label:p[r(t)].data[5].label})]}),e.jsxs("div",{className:"flex items-center gap-6 mt-10",children:[e.jsx(h,{type:"button",onClick:n,variant:"outline",className:"text-on_surface",children:t===u.RU?"Вернуться назад":"Back"}),e.jsx(h,{variant:"secondary",type:"button",onClick:l,className:"w-full",children:t===u.RU?"Далее":"Next"})]})]})},K=({handlePrev:l})=>{const{control:n,formState:t}=B(),a=f(i=>i.lang);return e.jsxs(S.div,{initial:{opacity:0,y:-100},animate:{opacity:1,y:0,transition:{delay:.5,duration:.3}},transition:{duration:1},children:[e.jsx("h2",{className:"h2 mb-8",children:c[r(a)].h2}),e.jsxs("div",{className:"flex flex-col gap-6",children:[e.jsx(o,{control:n,name:"preferred_meeting_datetime",error:t.errors.preferred_meeting_datetime,placeholder:"",label:c[r(a)].data[0].label}),e.jsx(o,{control:n,name:"preferred_mode",error:t.errors.preferred_mode,placeholder:"",label:c[r(a)].data[1].label}),e.jsx(o,{control:n,name:"language_preference",error:t.errors.language_preference,placeholder:"",label:c[r(a)].data[2].label}),e.jsx(o,{control:n,name:"additional_technical",error:t.errors.additional_technical,placeholder:"",label:c[r(a)].data[3].label})]}),e.jsxs("div",{className:"flex flex-col gap-8",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"h2 mt-10",children:c[r(a)].secondH2}),e.jsx("h5",{className:"text-on_surface_v",children:c[r(a)].subtitle})]}),e.jsx(o,{control:n,name:"company_profile",label:c[r(a)].data[4].label,type:"file",textDark:!0}),e.jsx(o,{control:n,name:"proposal_presentation",label:c[r(a)].data[5].label,type:"file",textDark:!0}),e.jsx(o,{control:n,name:"relevant_certification",label:c[r(a)].data[6].label,type:"file",textDark:!0})]}),e.jsxs("div",{className:"flex items-center gap-6 mt-10",children:[e.jsx(h,{type:"button",onClick:l,variant:"outline",className:"text-on_surface",children:a===u.RU?"Вернуться назад":"Back"}),e.jsx(h,{disabled:t.isSubmitting,type:"submit",className:"w-full",children:t.isSubmitting?e.jsx(V,{className:"animate-spin"}):c[r(a)].button})]})]})},M=({stage:l,setStage:n,success:t,setSuccess:a})=>{const i=D({resolver:L(I),defaultValues:J,mode:"onChange"}),x=d=>{switch(d){case 1:return["type","company_name","representative_name","job_title","participants_number","country","email_address","phone_number","website"];case 2:return["meeting_objective","proposal_description","government_agency","sector_industry","key_services","government_experience"];case 3:return["preferred_meeting_datetime","meeting_mode","language_preference","technical_requirements","company_profile","proposal_presentation","relevant_certification"];default:return[]}},P=async()=>{const d=x(l);await i.trigger(d)&&n(k=>k+1)},F=()=>n(d=>d-1),G=async d=>{try{const b=new FormData;Object.entries(d).forEach(([_,g])=>{g instanceof File?(console.log(`Добавляем файл: ${_}`,g),b.append(_,g)):g!==void 0&&(console.log(`Добавляем поле: ${_}`,g),b.append(_,g))}),(await U.post("https://turkmentextile.turkmenexpo.com/app/api/v1/form",b,{headers:{"Content-Type":"multipart/form-data"}})).status===201&&a(!0)}catch(b){console.error("Ошибка при отправке B2B формы:",b)}};return e.jsx(q,{...i,children:e.jsx("form",{onSubmit:i.handleSubmit(G),children:e.jsxs("div",{className:"relative",children:[e.jsx(N,{children:l===1&&e.jsx(O,{handleNext:P})}),e.jsx(N,{children:l===2&&e.jsx($,{handleNext:P,handlePrev:F})}),e.jsx(N,{children:l===3&&t===!1&&e.jsx(K,{handlePrev:F})}),t&&e.jsx(z,{})]})})})};function ee(){T();const l=f(x=>x.lang),[n,t]=w.useState(1),[a,i]=w.useState(!1);return e.jsxs("div",{className:"pb-[120px]",children:[e.jsx(E,{title:l===u.RU?"B2B | B2G встречи":"B2B | B2G meetings"}),!a&&n!==0&&e.jsx(H,{stage:n}),e.jsx("div",{className:"max-w-[808px] md:mx-auto mx-5",children:e.jsx(M,{success:a,setSuccess:i,stage:n,setStage:t})})]})}export{ee as default}; +import{z as n,l as B,u as f,j as e,m as S,n as r,o as R,p as j,q as y,L as u,r as v,s as o,B as h,t as D,v as V,w as E,x as N,y as q,D as z,C as H,E as L}from"./ui-library-rbj8Yi4H.js";import{a as w}from"./react-vendor-OnsDvTPE.js";import{a as U}from"./axios-upsvKRUO.js";import{R as A,a as C}from"./radio-group-DgXw47SH.js";import{u as T}from"./use-scroll-top-ByehxtTO.js";const I=n.object({type:n.string(),company_name:n.string().min(3,{message:"Название компании должно быть не менее 3 символов"}),representative_name:n.string().min(3,{message:"Имя представителя должно быть не менее 3 символов"}),job_title:n.string().min(3,{message:"Должность должна быть не менее 3 символов"}),participants_number:n.string().min(1,{message:"Укажите количество участников"}),country:n.string().min(3,{message:"Название страны должно быть не менее 3 символов"}),email_address:n.string().email({message:"Укажите корректный email"}),phone_number:n.string().min(8,{message:"Номер телефона должен быть не менее 8 символов"}),website:n.string().optional(),meeting_objective:n.string().min(3,{message:"Укажите цель встречи"}),proposal_description:n.string().optional(),government_agency:n.string().optional(),sector_industry:n.string().optional(),key_services:n.string().optional(),government_experience:n.string().optional(),preferred_meeting_datetime:n.string().optional(),meeting_mode:n.string().optional(),language_preference:n.string().optional(),technical_requirements:n.string().optional(),company_profile:n.custom(s=>s instanceof File,{message:"Выберите корректный файл"}).refine(s=>s&&["image/jpeg","image/png","application/pdf"].includes(s.type),{message:"Допускаются только файлы JPG, PNG и PDF"}).optional(),proposal_presentation:n.custom(s=>s instanceof File,{message:"Выберите корректный файл"}).refine(s=>s&&["image/jpeg","image/png","application/pdf"].includes(s.type),{message:"Допускаются только файлы JPG, PNG и PDF"}).optional(),relevant_certification:n.custom(s=>s instanceof File,{message:"Выберите корректный файл"}).refine(s=>s&&["image/jpeg","image/png","application/pdf"].includes(s.type),{message:"Допускаются только файлы JPG, PNG и PDF"}).optional()}),J={type:"B2B",company_name:"",representative_name:"",job_title:"",participants_number:"",country:"",email_address:"",phone_number:"",website:"",meeting_objective:"",proposal_description:"",government_agency:"",sector_industry:"",key_services:"",government_experience:"",preferred_meeting_datetime:"",meeting_mode:"",language_preference:"",technical_requirements:""},m=[{h2:"Информация об экспоненте:",data:[{label:"Название компании/организации"},{label:"Имя представителя"},{label:"Название должности/позиция"},{label:"Количество участников"},{label:"Страна"},{label:"E-mail адрес"},{label:"Номер телефона"},{label:"Вебсайт"}]},{h2:"Applicant Information:",data:[{label:"Company/Organization Name"},{label:"Name of Representative"},{label:"Job title/Position"},{label:"Number of the participants"},{label:"Country"},{label:"E-mail address"},{label:"Phone number"},{label:"Website"}]}],p=[{h2:"Цели встречи:",secondH2:"Информация о компании/организации:",data:[{label:"Основная цель встречи"},{label:"Краткое описание вашего предложения/проекта/запроса"},{label:"Соответствующее государственное учреждение/департамент"},{label:"Отраслевая промышленность"},{label:"Ключевые услуги/продукты"},{label:"Предыдущий опыт работы с правительствами (если применимо)"}]},{h2:"Meeting Purpose: ",secondH2:"Company/Organization Profile:",data:[{label:"Primary objective of the meeting"},{label:"Brief description of your proposal/project/request"},{label:"Relevant government agency/department"},{label:"Sector Industry "},{label:"Key Services/Products"},{label:"Previous Experience working with Governments (if applicable)"}]}],c=[{h2:"Логистика встречи:",secondH2:"Логистика встречи:",subtitle:"(Пожалуйста приложите следующие документы, если это необходимо)",data:[{label:"Предпочтительная дата и время"},{label:"Предпочтительный способ проведения встречи (лично, виртуально (через zoom/ teams/другое), гибридный)"},{label:"Предпочитаемый язык (английский, туркменский, русский, другой)"},{label:"Дополнительные технические или логистические требования (например, аудио-видео оборудование, переводчики и т.д.)"},{label:"Название компании/организации"},{label:"Предложение/презентация"},{label:"Соответствующие сертификаты/лицензии"}],button:"Отправить"},{h2:"Приложения:",secondH2:"Attachments",subtitle:"(Please attach the following documents as applicable)",data:[{label:"Preferred date and time for the meeting"},{label:"Preferred mode of meeting (in-person, virtual (via zoom/teams/other), hybrid)"},{label:"Language preference (English, turkmen, Russian, other)"},{label:"Additional technical or logistical requirements (e.g. AV equipment, interpreters, etc)"},{label:"Company/organization profile"},{label:"Proposal presentation"},{label:"Relevant certification/licenses"}],button:"Send"}],O=({handleNext:s})=>{const{control:l,formState:t}=B(),a=f(i=>i.lang);return e.jsxs(S.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,y:"100%",transition:{duration:.2}},className:"w-full",children:[e.jsx("h2",{className:"h2 mb-8",children:m[r(a)].h2}),e.jsxs("div",{className:"flex flex-col gap-8",children:[e.jsx(R,{defaultValue:1,control:l,name:"type",render:({field:i})=>e.jsxs(j,{className:"space-y-3",children:[e.jsx(y,{className:"text-xl",children:a===u.RU?"Тип:":"Type:"}),e.jsx(v,{children:e.jsxs(A,{onValueChange:i.onChange,defaultValue:i.value,className:"flex flex-col space-y-4",children:[e.jsxs(j,{className:"flex items-center space-x-3 space-y-0",children:[e.jsx(v,{children:e.jsx(C,{value:"B2B",checked:i.value==="B2B"})}),e.jsx(y,{className:"text-base",children:"B2B"})]}),e.jsxs(j,{className:"flex items-center space-x-3 space-y-0",children:[e.jsx(v,{children:e.jsx(C,{value:"B2G",checked:i.value==="B2G"})}),e.jsx(y,{className:"text-base",children:"B2G"})]})]})})]})}),e.jsx(o,{control:l,name:"company_name",error:t.errors.company_name,placeholder:"",label:m[r(a)].data[0].label}),e.jsx(o,{control:l,name:"representative_name",error:t.errors.representative_name,placeholder:"",label:m[r(a)].data[1].label}),e.jsx(o,{control:l,name:"job_title",error:t.errors.job_title,placeholder:"",label:m[r(a)].data[2].label}),e.jsx(o,{control:l,name:"participants_number",error:t.errors.participants_number,placeholder:"",label:m[r(a)].data[3].label}),e.jsx(o,{control:l,name:"country",error:t.errors.country,placeholder:"",label:m[r(a)].data[4].label}),e.jsx(o,{control:l,name:"email_address",error:t.errors.email_address,placeholder:"",label:m[r(a)].data[5].label}),e.jsx(o,{control:l,name:"phone_number",error:t.errors.phone_number,placeholder:"",label:m[r(a)].data[6].label}),e.jsx(o,{control:l,name:"website",placeholder:"",label:m[r(a)].data[7].label})]}),e.jsx(h,{variant:"secondary",type:"button",onClick:s,className:"w-full mt-10",children:a===u.RU?"Далее":"Next"})]})},$=({handleNext:s,handlePrev:l})=>{const t=f(x=>x.lang),{control:a,formState:i}=B();return e.jsxs(S.div,{initial:{opacity:0,y:-100},animate:{opacity:1,y:0,transition:{delay:.5,duration:.3}},exit:{opacity:0,y:100},children:[e.jsx("h2",{className:"h2 mb-8",children:p[r(t)].h2}),e.jsxs("div",{className:"flex flex-col gap-8",children:[e.jsx(o,{control:a,name:"meeting_objective",error:i.errors.meeting_objective,placeholder:"",label:p[r(t)].data[0].label}),e.jsx(o,{control:a,name:"proposal_description",error:i.errors.proposal_description,placeholder:"",label:p[r(t)].data[1].label}),e.jsx(o,{control:a,name:"government_agency",error:i.errors.government_agency,placeholder:"",label:p[r(t)].data[2].label}),e.jsx("h2",{className:"h2 mt-4",children:p[r(t)].secondH2}),e.jsx(o,{control:a,name:"sector_industry",error:i.errors.sector_industry,placeholder:"",label:p[r(t)].data[3].label}),e.jsx(o,{control:a,name:"key_services",error:i.errors.key_services,placeholder:"",label:p[r(t)].data[4].label}),e.jsx(o,{control:a,name:"government_experience",error:i.errors.government_experience,placeholder:"",label:p[r(t)].data[5].label})]}),e.jsxs("div",{className:"flex items-center gap-6 mt-10",children:[e.jsx(h,{type:"button",onClick:l,variant:"outline",className:"text-on_surface",children:t===u.RU?"Вернуться назад":"Back"}),e.jsx(h,{variant:"secondary",type:"button",onClick:s,className:"w-full",children:t===u.RU?"Далее":"Next"})]})]})},K=({handlePrev:s})=>{const{control:l,formState:t}=B(),a=f(i=>i.lang);return e.jsxs(S.div,{initial:{opacity:0,y:-100},animate:{opacity:1,y:0,transition:{delay:.5,duration:.3}},transition:{duration:1},children:[e.jsx("h2",{className:"h2 mb-8",children:c[r(a)].h2}),e.jsxs("div",{className:"flex flex-col gap-6",children:[e.jsx(o,{control:l,name:"preferred_meeting_datetime",error:t.errors.preferred_meeting_datetime,placeholder:"",label:c[r(a)].data[0].label}),e.jsx(o,{control:l,name:"preferred_mode",error:t.errors.preferred_mode,placeholder:"",label:c[r(a)].data[1].label}),e.jsx(o,{control:l,name:"language_preference",error:t.errors.language_preference,placeholder:"",label:c[r(a)].data[2].label}),e.jsx(o,{control:l,name:"additional_technical",error:t.errors.additional_technical,placeholder:"",label:c[r(a)].data[3].label})]}),e.jsxs("div",{className:"flex flex-col gap-8",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"h2 mt-10",children:c[r(a)].secondH2}),e.jsx("h5",{className:"text-on_surface_v",children:c[r(a)].subtitle})]}),e.jsx(o,{control:l,name:"company_profile",label:c[r(a)].data[4].label,type:"file",textDark:!0}),e.jsx(o,{control:l,name:"proposal_presentation",label:c[r(a)].data[5].label,type:"file",textDark:!0}),e.jsx(o,{control:l,name:"relevant_certification",label:c[r(a)].data[6].label,type:"file",textDark:!0})]}),e.jsxs("div",{className:"flex items-center gap-6 mt-10",children:[e.jsx(h,{type:"button",onClick:s,variant:"outline",className:"text-on_surface",children:a===u.RU?"Вернуться назад":"Back"}),e.jsx(h,{disabled:t.isSubmitting,type:"submit",className:"w-full",children:t.isSubmitting?e.jsx(D,{className:"animate-spin"}):c[r(a)].button})]})]})},M=({stage:s,setStage:l,success:t,setSuccess:a})=>{const i=V({resolver:z(I),defaultValues:J,mode:"onChange"}),x=d=>{switch(d){case 1:return["type","company_name","representative_name","job_title","participants_number","country","email_address","phone_number","website"];case 2:return["meeting_objective","proposal_description","government_agency","sector_industry","key_services","government_experience"];case 3:return["preferred_meeting_datetime","meeting_mode","language_preference","technical_requirements","company_profile","proposal_presentation","relevant_certification"];default:return[]}},P=async()=>{const d=x(s);await i.trigger(d)&&l(k=>k+1)},F=()=>l(d=>d-1),G=async d=>{try{const b=new FormData;Object.entries(d).forEach(([_,g])=>{g instanceof File?(console.log(`Добавляем файл: ${_}`,g),b.append(_,g)):g!==void 0&&(console.log(`Добавляем поле: ${_}`,g),b.append(_,g))}),(await U.post("https://turkmentextile.turkmenexpo.com/app/api/v1/form",b,{headers:{"Content-Type":"multipart/form-data"}})).status===201&&a(!0)}catch(b){console.error("Ошибка при отправке B2B формы:",b)}};return e.jsx(E,{...i,children:e.jsx("form",{onSubmit:i.handleSubmit(G),children:e.jsxs("div",{className:"relative",children:[e.jsx(N,{children:s===1&&e.jsx(O,{handleNext:P})}),e.jsx(N,{children:s===2&&e.jsx($,{handleNext:P,handlePrev:F})}),e.jsx(N,{children:s===3&&t===!1&&e.jsx(K,{handlePrev:F})}),t&&e.jsx(q,{})]})})})};function ee(){T();const s=f(x=>x.lang),[l,t]=w.useState(1),[a,i]=w.useState(!1);return e.jsxs("div",{className:"pb-[120px]",children:[e.jsx(H,{title:s===u.RU?"B2B | B2G встречи":"B2B | B2G meetings"}),!a&&l!==0&&e.jsx(L,{stage:l}),e.jsx("div",{className:"max-w-[808px] md:mx-auto mx-5",children:e.jsx(M,{success:a,setSuccess:i,stage:l,setStage:t})})]})}export{ee as default}; diff --git a/dist/assets/become-sponsor-Denln9LM.js b/dist/assets/become-sponsor-B4H_Vmz7.js similarity index 77% rename from dist/assets/become-sponsor-Denln9LM.js rename to dist/assets/become-sponsor-B4H_Vmz7.js index d6c5fa7..ea7e9cf 100644 --- a/dist/assets/become-sponsor-Denln9LM.js +++ b/dist/assets/become-sponsor-B4H_Vmz7.js @@ -1 +1 @@ -import{u as h,v as _,j as e,C as g,L as f,x as y,w as S,m as v,s as l,n as o,o as F,p as c,q as i,r as p,B as N,t as w,y as C}from"./ui-library-BGb6MWUm.js";import{a as L}from"./react-vendor-OnsDvTPE.js";import{R,a as j}from"./radio-group-CIa7-cps.js";import{z as t,t as B}from"./index-C_aLVrZJ.js";import{p as V}from"./service-iDSMiddG.js";import{u as T}from"./use-scroll-top-ByehxtTO.js";import{s as r}from"./stend.data-MYN6KI5Y.js";const k=t.object({company_name:t.string().min(3,{message:"Название компании должно быть не менее 3 символов"}),rep_name:t.string().min(3,{message:"Имя представителя должно быть не менее 3 символов"}),job_title:t.string().min(3,{message:"Должность должна быть не менее 3 символов"}),country:t.string().min(3,{message:"Название страны должно быть не менее 3 символов"}),email:t.string().email({message:"Укажите корректный email"}),phone:t.string().min(8,{message:"Номер телефона должен быть не менее 8 символов"}),website:t.string().optional(),visa_support:t.string().optional()}),D={company_name:"",rep_name:"",job_title:"",country:"",email:"",phone:"",website:"",visa_support:""};function O(){T();const a=h(n=>n.lang),[x,b]=L.useState(!1),s=_({resolver:B(k),defaultValues:D}),d=async n=>{try{await V(n)&&b(!0)}catch(u){console.error("POST sponsor error",u)}},{errors:m}=s.formState;return e.jsxs("div",{children:[e.jsx(g,{title:a===f.RU?"Стать спонсором":"Become a sponsor"}),e.jsx(y,{children:!x&&e.jsx(S,{...s,children:e.jsxs(v.form,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"max-w-[828px] mx-auto px-5 md:mt-20 mt-10 mb-20 md:mb-[120px] flex flex-col gap-8",onSubmit:s.handleSubmit(d),children:[e.jsx(l,{label:r[o(a)].label_1,name:"company_name",control:s.control,error:m.company_name}),e.jsx(l,{label:r[o(a)].label_2,name:"rep_name",control:s.control,error:m.rep_name}),e.jsx(l,{label:r[o(a)].label_3,name:"job_title",control:s.control,error:m.job_title}),e.jsx(l,{label:r[o(a)].label_4,name:"country",control:s.control,error:m.country}),e.jsx(l,{label:r[o(a)].label_5,name:"email",control:s.control,error:m.email}),e.jsx(l,{label:r[o(a)].label_6,name:"phone",control:s.control,error:m.phone}),e.jsx(l,{label:r[o(a)].label_7,name:"website",control:s.control}),e.jsx(F,{control:s.control,name:"visa_support",render:({field:n})=>e.jsxs(c,{className:"space-y-5",children:[e.jsx(i,{className:"text-xl",children:r[o(a)].visa}),e.jsx(p,{children:e.jsxs(R,{onValueChange:n.onChange,defaultValue:n.value,className:"flex flex-col space-y-4 ml-3",children:[e.jsxs(c,{className:"flex items-center space-x-5 space-y-0",children:[e.jsx(p,{children:e.jsx(j,{value:"yes",checked:n.value==="yes"})}),e.jsx(i,{className:"text-base",children:r[o(a)].visa_radio})]}),e.jsxs(c,{className:"flex items-center space-x-5 space-y-0 ",children:[e.jsx(p,{children:e.jsx(j,{value:"no",checked:n.value==="no"})}),e.jsx(i,{className:"text-base",children:r[o(a)].visa_radio_2})]})]})})]})}),e.jsx(N,{disabled:s.formState.isSubmitting,className:"mt-5",children:s.formState.isSubmitting?e.jsx(w,{className:"animate-spin"}):r[o(a)].button})]})})}),x&&e.jsx(C,{delay:.3})]})}export{O as default}; +import{z as t,u as h,v as _,j as e,C as g,L as f,x as y,w as S,m as v,s as l,n as o,o as F,p as c,q as i,r as p,B as N,t as w,y as C,D as L}from"./ui-library-rbj8Yi4H.js";import{a as R}from"./react-vendor-OnsDvTPE.js";import{R as B,a as j}from"./radio-group-DgXw47SH.js";import{p as V}from"./service-D5qlX6-G.js";import{u as D}from"./use-scroll-top-ByehxtTO.js";import{s as r}from"./stend.data-MYN6KI5Y.js";import"./axios-upsvKRUO.js";const T=t.object({company_name:t.string().min(3,{message:"Название компании должно быть не менее 3 символов"}),rep_name:t.string().min(3,{message:"Имя представителя должно быть не менее 3 символов"}),job_title:t.string().min(3,{message:"Должность должна быть не менее 3 символов"}),country:t.string().min(3,{message:"Название страны должно быть не менее 3 символов"}),email:t.string().email({message:"Укажите корректный email"}),phone:t.string().min(8,{message:"Номер телефона должен быть не менее 8 символов"}),website:t.string().optional(),visa_support:t.string().optional()}),k={company_name:"",rep_name:"",job_title:"",country:"",email:"",phone:"",website:"",visa_support:""};function O(){D();const a=h(n=>n.lang),[x,b]=R.useState(!1),s=_({resolver:L(T),defaultValues:k}),d=async n=>{try{await V(n)&&b(!0)}catch(u){console.error("POST sponsor error",u)}},{errors:m}=s.formState;return e.jsxs("div",{children:[e.jsx(g,{title:a===f.RU?"Стать спонсором":"Become a sponsor"}),e.jsx(y,{children:!x&&e.jsx(S,{...s,children:e.jsxs(v.form,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"max-w-[828px] mx-auto px-5 md:mt-20 mt-10 mb-20 md:mb-[120px] flex flex-col gap-8",onSubmit:s.handleSubmit(d),children:[e.jsx(l,{label:r[o(a)].label_1,name:"company_name",control:s.control,error:m.company_name}),e.jsx(l,{label:r[o(a)].label_2,name:"rep_name",control:s.control,error:m.rep_name}),e.jsx(l,{label:r[o(a)].label_3,name:"job_title",control:s.control,error:m.job_title}),e.jsx(l,{label:r[o(a)].label_4,name:"country",control:s.control,error:m.country}),e.jsx(l,{label:r[o(a)].label_5,name:"email",control:s.control,error:m.email}),e.jsx(l,{label:r[o(a)].label_6,name:"phone",control:s.control,error:m.phone}),e.jsx(l,{label:r[o(a)].label_7,name:"website",control:s.control}),e.jsx(F,{control:s.control,name:"visa_support",render:({field:n})=>e.jsxs(c,{className:"space-y-5",children:[e.jsx(i,{className:"text-xl",children:r[o(a)].visa}),e.jsx(p,{children:e.jsxs(B,{onValueChange:n.onChange,defaultValue:n.value,className:"flex flex-col space-y-4 ml-3",children:[e.jsxs(c,{className:"flex items-center space-x-5 space-y-0",children:[e.jsx(p,{children:e.jsx(j,{value:"yes",checked:n.value==="yes"})}),e.jsx(i,{className:"text-base",children:r[o(a)].visa_radio})]}),e.jsxs(c,{className:"flex items-center space-x-5 space-y-0 ",children:[e.jsx(p,{children:e.jsx(j,{value:"no",checked:n.value==="no"})}),e.jsx(i,{className:"text-base",children:r[o(a)].visa_radio_2})]})]})})]})}),e.jsx(N,{disabled:s.formState.isSubmitting,className:"mt-5",children:s.formState.isSubmitting?e.jsx(w,{className:"animate-spin"}):r[o(a)].button})]})})}),x&&e.jsx(C,{delay:.3})]})}export{O as default}; diff --git a/dist/assets/contacts-5i8qZt57.js b/dist/assets/contacts-5i8qZt57.js new file mode 100644 index 0000000..79c9c66 --- /dev/null +++ b/dist/assets/contacts-5i8qZt57.js @@ -0,0 +1 @@ +import{z as a,v as x,j as s,f as d,w as h,s as l,B as u,R as p,D as g,T as j}from"./ui-library-rbj8Yi4H.js";import{a as f}from"./react-vendor-OnsDvTPE.js";import{b}from"./service-D5qlX6-G.js";import{u as N}from"./use-scroll-top-ByehxtTO.js";import"./axios-upsvKRUO.js";const v=a.object({name:a.string().min(2,"error"),email:a.string().email(),phone:a.string().min(8,"error"),company:a.string().min(2,"error"),msg:a.string().min(5,"error")}),C={name:"",email:"",phone:"",company:"",msg:""},w=({className:n})=>{const[c,o]=f.useState(!1),e=x({resolver:g(v),defaultValues:C});async function m(i){try{const t=await b(i);o(t)}catch(t){console.error("POST contact",t)}}const{errors:r}=e.formState;return s.jsx("div",{className:d("bg-primary rounded-[8px] py-8 px-6 ",n),children:s.jsx(h,{...e,children:s.jsxs("form",{onSubmit:e.handleSubmit(m),children:[s.jsx("h2",{className:"h2 !text-on_primary lg:mb-8 mb-6",children:"Связаться с нами"}),s.jsxs("div",{className:"flex flex-col gap-8",children:[s.jsx(l,{onPrimary:!0,name:"name",control:e.control,label:"Имя",error:r.name}),s.jsxs("div",{className:"flex flex-col lg:flex-row gap-6",children:[s.jsx(l,{onPrimary:!0,name:"email",control:e.control,label:"E-mail",error:r.email}),s.jsx(l,{onPrimary:!0,name:"phone",control:e.control,label:"Телефон",error:r.phone})]}),s.jsx(l,{onPrimary:!0,name:"company",control:e.control,label:"Название компании",error:r.name}),s.jsx(l,{onPrimary:!0,textArea:!0,name:"msg",label:"Сообщение",control:e.control,error:r.msg}),s.jsx(u,{disabled:e.formState.isSubmitting||c,className:"w-full h-12 overflow-hidden",variant:"secondary",children:c?"Форма отправлена":e.formState.isSubmitting?s.jsx(p,{className:"animate-spin text-white"}):"Отправить"})]})]})})})};function F(){return N(),s.jsxs("div",{className:"flex flex-col gap-20 pt-10 md:pt-20",children:[s.jsx(j,{children:s.jsxs("section",{className:"grid grid-cols-1 lg:grid-cols-2 gap-20 lg:gap-6",children:[s.jsx(w,{}),s.jsxs("div",{className:"p-6 bg-bg_surface_container rounded-[8px]",children:[s.jsx("h2",{className:"h2 mb-10 xl:mb-8",children:"Контакты"}),s.jsxs("div",{className:"flex flex-col gap-20",children:[s.jsxs("div",{className:"flex items-center gap-6",children:[s.jsx("img",{src:"/contacts/map.svg",alt:"address"}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl mb-2",children:"Адрес офиса:"}),s.jsx("address",{className:"text-base normal not-italic",children:"744000, г. Ашхабад, просп. Битарап Туркменистан, 183"})]})]}),s.jsxs("div",{className:"flex items-center gap-6",children:[s.jsx("img",{src:"/contacts/phone.svg",alt:"phone"}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl mb-2",children:"Телефон:"}),s.jsx("h4",{className:"text-base normal",children:"+99371871812; 99363719588"})]})]}),s.jsxs("div",{className:"flex items-center gap-6",children:[s.jsx("img",{src:"/contacts/fax.svg",alt:"fax"}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl mb-2",children:"Факс:"}),s.jsx("h4",{className:"text-base normal",children:"+99312454111"})]})]}),s.jsxs("div",{className:"flex items-center gap-6",children:[s.jsx("img",{src:"/contacts/email.svg",alt:"email"}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl mb-2",children:"E-mail:"}),s.jsx("h4",{className:"text-base normal",children:"contact@turkmenexpo.com"})]})]})]})]})]})}),s.jsx("section",{className:"relative w-full h-[300px] sm:h-[350px] md:h-[400px] lg:h-[600px]",children:s.jsx("iframe",{src:"https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d1443.0869986358682!2d58.35620779177324!3d37.921200202365405!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x3f7001fd7afd2a95%3A0x9ce9dca95ea4b87e!2z0JDQstC40LDQutCw0YHRgdCwINCw0LLQuNCw0LrQvtC80L_QsNC90LjQuCDCq9CR0LXQu9Cw0LLQuNCwwrsg0LIg0KLRg9GA0LrQvNC10L3QuNGB0YLQsNC90LU!5e0!3m2!1sru!2sru!4v1738063695919!5m2!1sru!2sru",className:"absolute inset-0 w-full h-full ",style:{border:0},allowFullScreen:!0,loading:"lazy"})})]})}export{F as default}; diff --git a/dist/assets/contacts-CP1BzZjt.js b/dist/assets/contacts-CP1BzZjt.js deleted file mode 100644 index 9afdab9..0000000 --- a/dist/assets/contacts-CP1BzZjt.js +++ /dev/null @@ -1 +0,0 @@ -import{v as x,j as s,f as d,w as h,s as l,B as u,O as p,Q as g}from"./ui-library-BGb6MWUm.js";import{a as f}from"./react-vendor-OnsDvTPE.js";import{z as a,t as j}from"./index-C_aLVrZJ.js";import{b}from"./service-iDSMiddG.js";import{u as N}from"./use-scroll-top-ByehxtTO.js";const v=a.object({name:a.string().min(2,"error"),email:a.string().email(),phone:a.string().min(8,"error"),company:a.string().min(2,"error"),msg:a.string().min(5,"error")}),C={name:"",email:"",phone:"",company:"",msg:""},w=({className:n})=>{const[c,o]=f.useState(!1),e=x({resolver:j(v),defaultValues:C});async function m(i){try{const t=await b(i);o(t)}catch(t){console.error("POST contact",t)}}const{errors:r}=e.formState;return s.jsx("div",{className:d("bg-primary rounded-[8px] py-8 px-6 ",n),children:s.jsx(h,{...e,children:s.jsxs("form",{onSubmit:e.handleSubmit(m),children:[s.jsx("h2",{className:"h2 !text-on_primary lg:mb-8 mb-6",children:"Связаться с нами"}),s.jsxs("div",{className:"flex flex-col gap-8",children:[s.jsx(l,{onPrimary:!0,name:"name",control:e.control,label:"Имя",error:r.name}),s.jsxs("div",{className:"flex flex-col lg:flex-row gap-6",children:[s.jsx(l,{onPrimary:!0,name:"email",control:e.control,label:"E-mail",error:r.email}),s.jsx(l,{onPrimary:!0,name:"phone",control:e.control,label:"Телефон",error:r.phone})]}),s.jsx(l,{onPrimary:!0,name:"company",control:e.control,label:"Название компании",error:r.name}),s.jsx(l,{onPrimary:!0,textArea:!0,name:"msg",label:"Сообщение",control:e.control,error:r.msg}),s.jsx(u,{disabled:e.formState.isSubmitting||c,className:"w-full h-12 overflow-hidden",variant:"secondary",children:c?"Форма отправлена":e.formState.isSubmitting?s.jsx(p,{className:"animate-spin text-white"}):"Отправить"})]})]})})})};function F(){return N(),s.jsxs("div",{className:"flex flex-col gap-20 pt-10 md:pt-20",children:[s.jsx(g,{children:s.jsxs("section",{className:"grid grid-cols-1 lg:grid-cols-2 gap-20 lg:gap-6",children:[s.jsx(w,{}),s.jsxs("div",{className:"p-6 bg-bg_surface_container rounded-[8px]",children:[s.jsx("h2",{className:"h2 mb-10 xl:mb-8",children:"Контакты"}),s.jsxs("div",{className:"flex flex-col gap-20",children:[s.jsxs("div",{className:"flex items-center gap-6",children:[s.jsx("img",{src:"/contacts/map.svg",alt:"address"}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl mb-2",children:"Адрес офиса:"}),s.jsx("address",{className:"text-base normal not-italic",children:"744000, г. Ашхабад, просп. Битарап Туркменистан, 183"})]})]}),s.jsxs("div",{className:"flex items-center gap-6",children:[s.jsx("img",{src:"/contacts/phone.svg",alt:"phone"}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl mb-2",children:"Телефон:"}),s.jsx("h4",{className:"text-base normal",children:"+99371871812; 99363719588"})]})]}),s.jsxs("div",{className:"flex items-center gap-6",children:[s.jsx("img",{src:"/contacts/fax.svg",alt:"fax"}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl mb-2",children:"Факс:"}),s.jsx("h4",{className:"text-base normal",children:"+99312454111"})]})]}),s.jsxs("div",{className:"flex items-center gap-6",children:[s.jsx("img",{src:"/contacts/email.svg",alt:"email"}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl mb-2",children:"E-mail:"}),s.jsx("h4",{className:"text-base normal",children:"contact@turkmenexpo.com"})]})]})]})]})]})}),s.jsx("section",{className:"relative w-full h-[300px] sm:h-[350px] md:h-[400px] lg:h-[600px]",children:s.jsx("iframe",{src:"https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d1443.0869986358682!2d58.35620779177324!3d37.921200202365405!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x3f7001fd7afd2a95%3A0x9ce9dca95ea4b87e!2z0JDQstC40LDQutCw0YHRgdCwINCw0LLQuNCw0LrQvtC80L_QsNC90LjQuCDCq9CR0LXQu9Cw0LLQuNCwwrsg0LIg0KLRg9GA0LrQvNC10L3QuNGB0YLQsNC90LU!5e0!3m2!1sru!2sru!4v1738063695919!5m2!1sru!2sru",className:"absolute inset-0 w-full h-full ",style:{border:0},allowFullScreen:!0,loading:"lazy"})})]})}export{F as default}; diff --git a/dist/assets/home-BhSPwqSK.js b/dist/assets/home-CUo3rv9m.js similarity index 76% rename from dist/assets/home-BhSPwqSK.js rename to dist/assets/home-CUo3rv9m.js index 0080c52..c9ee86a 100644 --- a/dist/assets/home-BhSPwqSK.js +++ b/dist/assets/home-CUo3rv9m.js @@ -1 +1 @@ -import{j as e,a as s,b as o,c as m,d as a,e as x}from"./ui-library-BGb6MWUm.js";import"./react-vendor-OnsDvTPE.js";function j(){return e.jsxs("div",{className:"flex flex-col gap-20",children:[e.jsx(s,{}),e.jsx(o,{}),e.jsx(m,{}),e.jsx(a,{}),e.jsx(x,{})]})}export{j as default}; +import{j as e,a as s,b as o,c as m,d as a,e as x}from"./ui-library-rbj8Yi4H.js";import"./react-vendor-OnsDvTPE.js";function j(){return e.jsxs("div",{className:"flex flex-col gap-20",children:[e.jsx(s,{}),e.jsx(o,{}),e.jsx(m,{}),e.jsx(a,{}),e.jsx(x,{})]})}export{j as default}; diff --git a/dist/assets/index-B8hTaFzt.js b/dist/assets/index-B8JNL7Ng.js similarity index 69% rename from dist/assets/index-B8hTaFzt.js rename to dist/assets/index-B8JNL7Ng.js index ccdd7d9..2167056 100644 --- a/dist/assets/index-B8hTaFzt.js +++ b/dist/assets/index-B8JNL7Ng.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/home-BhSPwqSK.js","assets/ui-library-BGb6MWUm.js","assets/react-vendor-OnsDvTPE.js","assets/about-Bf0Cdvh4.js","assets/use-scroll-top-ByehxtTO.js","assets/b2b-Cul00Ui-.js","assets/index-C_aLVrZJ.js","assets/radio-group-CIa7-cps.js","assets/become-sponsor-Denln9LM.js","assets/service-iDSMiddG.js","assets/stend.data-MYN6KI5Y.js","assets/stend-form-BsyKO9pw.js","assets/contacts-CP1BzZjt.js"])))=>i.map(i=>d[i]); -import{j as o,H as R,F as j}from"./ui-library-BGb6MWUm.js";import{f as P,O as v,a as c,g,h as O}from"./react-vendor-OnsDvTPE.js";(function(){const u=document.createElement("link").relList;if(u&&u.supports&&u.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))p(e);new MutationObserver(e=>{for(const r of e)if(r.type==="childList")for(const t of r.addedNodes)t.tagName==="LINK"&&t.rel==="modulepreload"&&p(t)}).observe(document,{childList:!0,subtree:!0});function d(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?r.credentials="include":e.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function p(e){if(e.ep)return;e.ep=!0;const r=d(e);fetch(e.href,r)}})();const L="modulepreload",b=function(l){return"/"+l},h={},a=function(u,d,p){let e=Promise.resolve();if(d&&d.length>0){document.getElementsByTagName("link");const t=document.querySelector("meta[property=csp-nonce]"),n=(t==null?void 0:t.nonce)||(t==null?void 0:t.getAttribute("nonce"));e=Promise.allSettled(d.map(s=>{if(s=b(s),s in h)return;h[s]=!0;const m=s.endsWith(".css"),y=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${s}"]${y}`))return;const i=document.createElement("link");if(i.rel=m?"stylesheet":L,m||(i.as="script"),i.crossOrigin="",i.href=s,n&&i.setAttribute("nonce",n),document.head.appendChild(i),m)return new Promise((E,x)=>{i.addEventListener("load",E),i.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${s}`)))})}))}function r(t){const n=new Event("vite:preloadError",{cancelable:!0});if(n.payload=t,window.dispatchEvent(n),!n.defaultPrevented)throw t}return e.then(t=>{for(const n of t||[])n.status==="rejected"&&r(n.reason);return u().catch(r)})};var f={},_;function A(){if(_)return f;_=1;var l=P();return f.createRoot=l.createRoot,f.hydrateRoot=l.hydrateRoot,f}var S=A();function w(){return o.jsxs("main",{className:"flex flex-col min-h-screen",children:[o.jsx(R,{}),o.jsx("div",{className:"flex-auto",children:o.jsx(v,{})}),o.jsx(j,{})]})}const B=c.lazy(()=>a(()=>import("./home-BhSPwqSK.js"),__vite__mapDeps([0,1,2]))),I=c.lazy(()=>a(()=>import("./about-Bf0Cdvh4.js"),__vite__mapDeps([3,1,2,4]))),D=c.lazy(()=>a(()=>import("./b2b-Cul00Ui-.js"),__vite__mapDeps([5,1,2,6,7,4]))),T=c.lazy(()=>a(()=>import("./become-sponsor-Denln9LM.js"),__vite__mapDeps([8,1,2,7,6,9,4,10]))),q=c.lazy(()=>a(()=>import("./stend-form-BsyKO9pw.js"),__vite__mapDeps([11,1,2,7,6,9,10]))),z=c.lazy(()=>a(()=>import("./contacts-CP1BzZjt.js"),__vite__mapDeps([12,1,2,6,9,4]))),C=g([{element:o.jsx(w,{}),path:"/",children:[{element:o.jsx(B,{}),path:""},{element:o.jsx(I,{}),path:"/about"},{element:o.jsx(D,{}),path:"/B2B-B2G"},{element:o.jsx(T,{}),path:"/become-sponsor"},{element:o.jsx(q,{}),path:"/stend-form"},{element:o.jsx(z,{}),path:"/contacts"}]}]);S.createRoot(document.getElementById("root")).render(o.jsx(c.StrictMode,{children:o.jsx(O,{router:C})})); +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/home-CUo3rv9m.js","assets/ui-library-rbj8Yi4H.js","assets/react-vendor-OnsDvTPE.js","assets/about-CmFc3Whw.js","assets/use-scroll-top-ByehxtTO.js","assets/b2b-DDcVmyjP.js","assets/axios-upsvKRUO.js","assets/radio-group-DgXw47SH.js","assets/become-sponsor-B4H_Vmz7.js","assets/service-D5qlX6-G.js","assets/stend.data-MYN6KI5Y.js","assets/stend-form-C6tB-uem.js","assets/contacts-5i8qZt57.js"])))=>i.map(i=>d[i]); +import{j as o,H as R,F as j}from"./ui-library-rbj8Yi4H.js";import{f as P,O as v,a as c,g,h as O}from"./react-vendor-OnsDvTPE.js";(function(){const u=document.createElement("link").relList;if(u&&u.supports&&u.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))p(e);new MutationObserver(e=>{for(const r of e)if(r.type==="childList")for(const t of r.addedNodes)t.tagName==="LINK"&&t.rel==="modulepreload"&&p(t)}).observe(document,{childList:!0,subtree:!0});function d(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?r.credentials="include":e.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function p(e){if(e.ep)return;e.ep=!0;const r=d(e);fetch(e.href,r)}})();const L="modulepreload",b=function(l){return"/"+l},h={},a=function(u,d,p){let e=Promise.resolve();if(d&&d.length>0){document.getElementsByTagName("link");const t=document.querySelector("meta[property=csp-nonce]"),n=(t==null?void 0:t.nonce)||(t==null?void 0:t.getAttribute("nonce"));e=Promise.allSettled(d.map(s=>{if(s=b(s),s in h)return;h[s]=!0;const m=s.endsWith(".css"),y=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${s}"]${y}`))return;const i=document.createElement("link");if(i.rel=m?"stylesheet":L,m||(i.as="script"),i.crossOrigin="",i.href=s,n&&i.setAttribute("nonce",n),document.head.appendChild(i),m)return new Promise((E,x)=>{i.addEventListener("load",E),i.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${s}`)))})}))}function r(t){const n=new Event("vite:preloadError",{cancelable:!0});if(n.payload=t,window.dispatchEvent(n),!n.defaultPrevented)throw t}return e.then(t=>{for(const n of t||[])n.status==="rejected"&&r(n.reason);return u().catch(r)})};var f={},_;function A(){if(_)return f;_=1;var l=P();return f.createRoot=l.createRoot,f.hydrateRoot=l.hydrateRoot,f}var S=A();function w(){return o.jsxs("main",{className:"flex flex-col min-h-screen",children:[o.jsx(R,{}),o.jsx("div",{className:"flex-auto",children:o.jsx(v,{})}),o.jsx(j,{})]})}const B=c.lazy(()=>a(()=>import("./home-CUo3rv9m.js"),__vite__mapDeps([0,1,2]))),I=c.lazy(()=>a(()=>import("./about-CmFc3Whw.js"),__vite__mapDeps([3,1,2,4]))),D=c.lazy(()=>a(()=>import("./b2b-DDcVmyjP.js"),__vite__mapDeps([5,1,2,6,7,4]))),T=c.lazy(()=>a(()=>import("./become-sponsor-B4H_Vmz7.js"),__vite__mapDeps([8,1,2,7,9,6,4,10]))),q=c.lazy(()=>a(()=>import("./stend-form-C6tB-uem.js"),__vite__mapDeps([11,1,2,7,9,6,10]))),z=c.lazy(()=>a(()=>import("./contacts-5i8qZt57.js"),__vite__mapDeps([12,1,2,9,6,4]))),C=g([{element:o.jsx(w,{}),path:"/",children:[{element:o.jsx(B,{}),path:""},{element:o.jsx(I,{}),path:"/about"},{element:o.jsx(D,{}),path:"/B2B-B2G"},{element:o.jsx(T,{}),path:"/become-sponsor"},{element:o.jsx(q,{}),path:"/stend-form"},{element:o.jsx(z,{}),path:"/contacts"}]}]);S.createRoot(document.getElementById("root")).render(o.jsx(c.StrictMode,{children:o.jsx(O,{router:C})})); diff --git a/dist/assets/index-BszhZ6q_.css b/dist/assets/index-BszhZ6q_.css deleted file mode 100644 index 6371908..0000000 --- a/dist/assets/index-BszhZ6q_.css +++ /dev/null @@ -1 +0,0 @@ -@font-face{font-family:Gilroy-Regular;src:local("Gilroy-Regular"),url(../fonts/Gilroy-Regular.woff2) format("woff2");font-weight:400}@font-face{font-family:Gilroy-Medium;src:local("Gilroy-Medium"),url(../fonts/Gilroy-Medium.woff2) format("woff2");font-weight:500}@font-face{font-family:Gilroy-Semibold;src:local("Gilroy-Semibold"),url(../fonts/Gilroy-Semibold.woff2) format("woff2");font-weight:600}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}*{box-sizing:border-box}body{font-family:Gilroy-Medium;--tw-bg-opacity: 1;background-color:rgb(249 249 250 / var(--tw-bg-opacity, 1))}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.inset-x-0{left:0;right:0}.inset-y-0{top:0;bottom:0}.-bottom-5{bottom:-1.25rem}.-left-12{left:-3rem}.-right-12{right:-3rem}.-top-6{top:-1.5rem}.bottom-0{bottom:0}.left-0{left:0}.left-1\/3{left:33.333333%}.left-2\.5{left:.625rem}.left-\[20\%\]{left:20%}.right-0{right:0}.right-4{right:1rem}.right-\[17\%\]{right:17%}.top-0{top:0}.top-2{top:.5rem}.top-2\.5{top:.625rem}.top-4{top:1rem}.top-8{top:2rem}.top-\[55\%\]{top:55%}.-z-10,.-z-\[10\]{z-index:-10}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.z-\[3\]{z-index:3}.z-\[5\]{z-index:5}.mx-5{margin-left:1.25rem;margin-right:1.25rem}.mx-auto{margin-left:auto;margin-right:auto}.my-10{margin-top:2.5rem;margin-bottom:2.5rem}.my-16{margin-top:4rem;margin-bottom:4rem}.my-20{margin-top:5rem;margin-bottom:5rem}.my-8{margin-top:2rem;margin-bottom:2rem}.mb-10{margin-bottom:2.5rem}.mb-2{margin-bottom:.5rem}.mb-20{margin-bottom:5rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.mb-\[120px\]{margin-bottom:120px}.ml-3{margin-left:.75rem}.mt-10{margin-top:2.5rem}.mt-16{margin-top:4rem}.mt-2{margin-top:.5rem}.mt-20{margin-top:5rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-8{margin-top:2rem}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.size-10{width:2.5rem;height:2.5rem}.size-12{width:3rem;height:3rem}.size-16{width:4rem;height:4rem}.size-5{width:1.25rem;height:1.25rem}.size-8{width:2rem;height:2rem}.size-\[184px\]{width:184px;height:184px}.size-full{width:100%;height:100%}.h-0\.5{height:.125rem}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-20{height:5rem}.h-40{height:10rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\[124px\]{height:124px}.h-\[160px\]{height:160px}.h-\[216px\]{height:216px}.h-\[296px\]{height:296px}.h-\[300px\]{height:300px}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.min-h-\[60px\]{min-height:60px}.min-h-screen{min-height:100vh}.w-0{width:0px}.w-1\/2{width:50%}.w-3\/4{width:75%}.w-32{width:8rem}.w-4{width:1rem}.w-9{width:2.25rem}.w-\[160px\]{width:160px}.w-\[18px\]{width:18px}.w-\[20\%\]{width:20%}.w-\[300px\]{width:300px}.w-\[75\%\]{width:75%}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.max-w-\[1240px\]{max-width:1240px}.max-w-\[360px\]{max-width:360px}.max-w-\[444px\]{max-width:444px}.max-w-\[808px\]{max-width:808px}.max-w-\[828px\]{max-width:828px}.flex-\[0_0_184px\]{flex:0 0 184px}.flex-\[0_0_288px\]{flex:0 0 288px}.flex-\[0_0_50\%\]{flex:0 0 50%}.flex-auto{flex:1 1 auto}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.\!cursor-pointer{cursor:pointer!important}.cursor-pointer{cursor:pointer}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0{gap:0px}.gap-1{gap:.25rem}.gap-10{gap:2.5rem}.gap-16{gap:4rem}.gap-2{gap:.5rem}.gap-20{gap:5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.25rem * var(--tw-space-x-reverse));margin-left:calc(1.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.whitespace-nowrap{white-space:nowrap}.rounded-\[2px\]{border-radius:2px}.rounded-\[8px\]{border-radius:8px}.rounded-full{border-radius:9999px}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-b-\[2px\]{border-bottom-right-radius:2px;border-bottom-left-radius:2px}.rounded-t-\[4px\]{border-top-left-radius:4px;border-top-right-radius:4px}.border{border-width:1px}.border-\[2px\]{border-width:2px}.border-b{border-bottom-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-\[\#BA1A1A\]{--tw-border-opacity: 1;border-color:rgb(186 26 26 / var(--tw-border-opacity, 1))}.border-on_surface{--tw-border-opacity: 1;border-color:rgb(44 40 40 / var(--tw-border-opacity, 1))}.border-outline{--tw-border-opacity: 1;border-color:rgb(161 167 178 / var(--tw-border-opacity, 1))}.border-primary{--tw-border-opacity: 1;border-color:rgb(153 16 29 / var(--tw-border-opacity, 1))}.border-primary_outline_reverse{--tw-border-opacity: 1;border-color:rgb(238 101 114 / var(--tw-border-opacity, 1))}.border-slate-500\/20{border-color:#64748b33}.border-white\/50{border-color:#ffffff80}.\!bg-\[\#F5F4F4\]{--tw-bg-opacity: 1 !important;background-color:rgb(245 244 244 / var(--tw-bg-opacity, 1))!important}.\!bg-white{--tw-bg-opacity: 1 !important;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))!important}.bg-\[\#D0D3D8\]{--tw-bg-opacity: 1;background-color:rgb(208 211 216 / var(--tw-bg-opacity, 1))}.bg-\[\#D9D9D9\]{--tw-bg-opacity: 1;background-color:rgb(217 217 217 / var(--tw-bg-opacity, 1))}.bg-\[\#FDEDEE\]{--tw-bg-opacity: 1;background-color:rgb(253 237 238 / var(--tw-bg-opacity, 1))}.bg-background{--tw-bg-opacity: 1;background-color:rgb(249 249 250 / var(--tw-bg-opacity, 1))}.bg-bg_surface_container{--tw-bg-opacity: 1;background-color:rgb(238 237 244 / var(--tw-bg-opacity, 1))}.bg-black\/80{background-color:#000c}.bg-primary,.bg-primary_09{--tw-bg-opacity: 1;background-color:rgb(153 16 29 / var(--tw-bg-opacity, 1))}.bg-reverse_primary{--tw-bg-opacity: 1;background-color:rgb(246 178 184 / var(--tw-bg-opacity, 1))}.bg-secondary_container{--tw-bg-opacity: 1;background-color:rgb(221 203 205 / var(--tw-bg-opacity, 1))}.bg-surface_container{--tw-bg-opacity: 1;background-color:rgb(240 239 239 / var(--tw-bg-opacity, 1))}.bg-surface_high{--tw-bg-opacity: 1;background-color:rgb(232 231 239 / var(--tw-bg-opacity, 1))}.bg-teritary{--tw-bg-opacity: 1;background-color:rgb(241 112 13 / var(--tw-bg-opacity, 1))}.bg-teritary_04{--tw-bg-opacity: 1;background-color:rgb(255 206 127 / var(--tw-bg-opacity, 1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-opacity-0{--tw-bg-opacity: 0}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-primary{--tw-gradient-from: #99101D var(--tw-gradient-from-position);--tw-gradient-to: rgb(153 16 29 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-25\%{--tw-gradient-from-position: 25%}.to-primary\/20{--tw-gradient-to: rgb(153 16 29 / .2) var(--tw-gradient-to-position)}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-0{padding-left:0;padding-right:0}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0{padding-top:0;padding-bottom:0}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-20{padding-bottom:5rem}.pb-\[120px\]{padding-bottom:120px}.pl-8{padding-left:2rem}.pt-10{padding-top:2.5rem}.pt-16{padding-top:4rem}.text-left{text-align:left}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-\[0\.8rem\]{font-size:.8rem}.text-\[18px\]{font-size:18px}.text-\[32px\]{font-size:32px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.not-italic{font-style:normal}.leading-\[130\%\]{line-height:130%}.leading-\[140\%\]{line-height:140%}.leading-none{line-height:1}.\!text-on_primary{--tw-text-opacity: 1 !important;color:rgb(255 255 255 / var(--tw-text-opacity, 1))!important}.\!text-primary_09{--tw-text-opacity: 1 !important;color:rgb(153 16 29 / var(--tw-text-opacity, 1))!important}.text-\[\#171717\]{--tw-text-opacity: 1;color:rgb(23 23 23 / var(--tw-text-opacity, 1))}.text-\[\#454545\]{--tw-text-opacity: 1;color:rgb(69 69 69 / var(--tw-text-opacity, 1))}.text-\[\#BA1A1A\]{--tw-text-opacity: 1;color:rgb(186 26 26 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-on_primary{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-on_secondary_container{--tw-text-opacity: 1;color:rgb(29 38 55 / var(--tw-text-opacity, 1))}.text-on_surface{--tw-text-opacity: 1;color:rgb(44 40 40 / var(--tw-text-opacity, 1))}.text-on_surface_v{--tw-text-opacity: 1;color:rgb(111 100 102 / var(--tw-text-opacity, 1))}.text-on_teritary{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-primary{--tw-text-opacity: 1;color:rgb(153 16 29 / var(--tw-text-opacity, 1))}.text-primary_03{--tw-text-opacity: 1;color:rgb(246 178 184 / var(--tw-text-opacity, 1))}.text-primary_09{--tw-text-opacity: 1;color:rgb(153 16 29 / var(--tw-text-opacity, 1))}.text-teritary_04{--tw-text-opacity: 1;color:rgb(255 206 127 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.opacity-0{opacity:0}.opacity-70{opacity:.7}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-offset-background{--tw-ring-offset-color: #F9F9FA}.drop-shadow-md{--tw-drop-shadow: drop-shadow(0 4px 3px rgb(0 0 0 / .07)) drop-shadow(0 2px 2px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-sm{--tw-drop-shadow: drop-shadow(0 1px 1px rgb(0 0 0 / .05));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.duration-300{animation-duration:.3s}.duration-500{animation-duration:.5s}.ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}.normal{font-family:Gilroy-Regular;font-weight:400}.semibold{font-family:Gilroy-Semibold;font-weight:600}.h1{font-size:28px;font-weight:500;line-height:130%}.h2{font-size:1.5rem;line-height:2rem;--tw-text-opacity: 1;color:rgb(23 23 23 / var(--tw-text-opacity, 1))}@media (min-width: 768px){.h2{font-size:1.875rem;line-height:2.25rem}}.p{font-size:1rem;line-height:1.5rem;--tw-text-opacity: 1;color:rgb(111 100 102 / var(--tw-text-opacity, 1))}@media (min-width: 768px){.p{font-size:1.125rem;line-height:1.75rem}}@layer utilities{.text-18{font-family:Gilroy-Regular;font-weight:400}}.text-18{font-size:1.125rem;line-height:1.75rem;--tw-text-opacity: 1;color:rgb(111 100 102 / var(--tw-text-opacity, 1));font-family:Gilroy-Regular;font-weight:400}.dot{height:.25rem;width:1.25rem;cursor:pointer;border-radius:2px;--tw-bg-opacity: 1;background-color:rgb(111 100 102 / var(--tw-bg-opacity, 1))}.dot-active{height:.25rem;width:1.25rem;border-radius:2px;--tw-bg-opacity: 1;background-color:rgb(44 40 40 / var(--tw-bg-opacity, 1))}.nav-btn{display:flex;width:3rem;height:3rem;align-items:center;justify-content:center;border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(217 217 217 / var(--tw-bg-opacity, 1))}.progress-circle{z-index:10;width:3.5rem;height:3.5rem;border-radius:9999px;font-size:1.5rem;line-height:2rem;--tw-text-opacity: 1;color:rgb(95 102 116 / var(--tw-text-opacity, 1))}.file\:w-fit::file-selector-button{width:-moz-fit-content;width:fit-content}.file\:border-0::file-selector-button{border-width:0px}.file\:bg-secondary_container::file-selector-button{--tw-bg-opacity: 1;background-color:rgb(221 203 205 / var(--tw-bg-opacity, 1))}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\:font-medium::file-selector-button{font-weight:500}.file\:text-on_secondary_container::file-selector-button{--tw-text-opacity: 1;color:rgb(29 38 55 / var(--tw-text-opacity, 1))}.file\:outline-none::file-selector-button{outline:2px solid transparent;outline-offset:2px}.before\:absolute:before{content:var(--tw-content);position:absolute}.before\:-left-3:before{content:var(--tw-content);left:-.75rem}.before\:-top-3:before{content:var(--tw-content);top:-.75rem}.before\:size-10:before{content:var(--tw-content);width:2.5rem;height:2.5rem}.before\:scale-0:before{content:var(--tw-content);--tw-scale-x: 0;--tw-scale-y: 0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.before\:rounded-full:before{content:var(--tw-content);border-radius:9999px}.before\:bg-on_surface\/\[8\%\]:before{content:var(--tw-content);background-color:#2c282814}.before\:transition-all:before{content:var(--tw-content);transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.after\:size-\[9px\]:after{content:var(--tw-content);width:9px;height:9px}.after\:rounded-full:after{content:var(--tw-content);border-radius:9999px}.after\:bg-primary:after{content:var(--tw-content);--tw-bg-opacity: 1;background-color:rgb(153 16 29 / var(--tw-bg-opacity, 1))}.after\:bg-opacity-0:after{content:var(--tw-content);--tw-bg-opacity: 0}.hover\:border-on_surface:hover{--tw-border-opacity: 1;border-color:rgb(44 40 40 / var(--tw-border-opacity, 1))}.hover\:border-white:hover{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity, 1))}.hover\:bg-primary\/90:hover{background-color:#99101de6}.hover\:bg-reverse_primary\/90:hover{background-color:#f6b2b8e6}.hover\:bg-secondary_container\/80:hover{background-color:#ddcbcdcc}.hover\:bg-teritary\/90:hover{background-color:#f1700de6}.hover\:bg-teritary_surface_container:hover{--tw-bg-opacity: 1;background-color:rgb(255 243 224 / var(--tw-bg-opacity, 1))}.hover\:bg-white\/90:hover{background-color:#ffffffe6}.hover\:opacity-100:hover{opacity:1}.hover\:before\:scale-100:hover:before{content:var(--tw-content);--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.focus\:border-\[3px\]:focus{border-width:3px}.focus\:border-primary:focus{--tw-border-opacity: 1;border-color:rgb(153 16 29 / var(--tw-border-opacity, 1))}.focus\:border-white:focus{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity, 1))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-1:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.peer:disabled~.peer-disabled\:cursor-not-allowed{cursor:not-allowed}.peer:disabled~.peer-disabled\:opacity-70{opacity:.7}.data-\[state\=open\]\:bg-secondary[data-state=open]{--tw-bg-opacity: 1;background-color:rgb(73 95 137 / var(--tw-bg-opacity, 1))}.data-\[state\=closed\]\:duration-300[data-state=closed]{transition-duration:.3s}.data-\[state\=open\]\:duration-500[data-state=open]{transition-duration:.5s}.data-\[state\=open\]\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\[state\=closed\]\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\[state\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.data-\[state\=closed\]\:slide-out-to-bottom[data-state=closed]{--tw-exit-translate-y: 100%}.data-\[state\=closed\]\:slide-out-to-left[data-state=closed]{--tw-exit-translate-x: -100%}.data-\[state\=closed\]\:slide-out-to-right[data-state=closed]{--tw-exit-translate-x: 100%}.data-\[state\=closed\]\:slide-out-to-top[data-state=closed]{--tw-exit-translate-y: -100%}.data-\[state\=open\]\:slide-in-from-bottom[data-state=open]{--tw-enter-translate-y: 100%}.data-\[state\=open\]\:slide-in-from-left[data-state=open]{--tw-enter-translate-x: -100%}.data-\[state\=open\]\:slide-in-from-right[data-state=open]{--tw-enter-translate-x: 100%}.data-\[state\=open\]\:slide-in-from-top[data-state=open]{--tw-enter-translate-y: -100%}.data-\[state\=closed\]\:duration-300[data-state=closed]{animation-duration:.3s}.data-\[state\=open\]\:duration-500[data-state=open]{animation-duration:.5s}@media (min-width: 640px){.sm\:h-\[350px\]{height:350px}.sm\:max-w-sm{max-width:24rem}.sm\:flex-row{flex-direction:row}.sm\:justify-end{justify-content:flex-end}.sm\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:text-left{text-align:left}.sm\:text-center{text-align:center}}@media (min-width: 768px){.md\:left-1\/2{left:50%}.md\:mx-auto{margin-left:auto;margin-right:auto}.md\:my-20{margin-top:5rem;margin-bottom:5rem}.md\:mb-3{margin-bottom:.75rem}.md\:mb-\[120px\]{margin-bottom:120px}.md\:mt-20{margin-top:5rem}.md\:mt-6{margin-top:1.5rem}.md\:size-\[84px\]{width:84px;height:84px}.md\:size-auto{width:auto;height:auto}.md\:h-\[224px\]{height:224px}.md\:h-\[38px\]{height:38px}.md\:h-\[400px\]{height:400px}.md\:w-1{width:.25rem}.md\:w-fit{width:-moz-fit-content;width:fit-content}.md\:w-full{width:100%}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:items-end{align-items:flex-end}.md\:justify-between{justify-content:space-between}.md\:p-10{padding:2.5rem}.md\:px-6{padding-left:1.5rem;padding-right:1.5rem}.md\:px-8{padding-left:2rem;padding-right:2rem}.md\:py-20{padding-top:5rem;padding-bottom:5rem}.md\:py-6{padding-top:1.5rem;padding-bottom:1.5rem}.md\:py-\[160px\]{padding-top:160px;padding-bottom:160px}.md\:pt-20{padding-top:5rem}.md\:text-2xl{font-size:1.5rem;line-height:2rem}.md\:text-5xl{font-size:3rem;line-height:1}.md\:text-base{font-size:1rem;line-height:1.5rem}.md\:text-lg{font-size:1.125rem;line-height:1.75rem}.md\:text-sm{font-size:.875rem;line-height:1.25rem}.md\:text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width: 1024px){.lg\:mb-8{margin-bottom:2rem}.lg\:flex{display:flex}.lg\:hidden{display:none}.lg\:h-\[600px\]{height:600px}.lg\:h-\[88px\]{height:88px}.lg\:max-h-\[600px\]{max-height:600px}.lg\:min-h-\[320px\]{min-height:320px}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:flex-row{flex-direction:row}.lg\:gap-12{gap:3rem}.lg\:gap-6{gap:1.5rem}}@media (min-width: 1280px){.xl\:mb-8{margin-bottom:2rem}.xl\:hidden{display:none}}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:size-4 svg{width:1rem;height:1rem}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0} diff --git a/dist/assets/index-C_aLVrZJ.js b/dist/assets/index-C_aLVrZJ.js deleted file mode 100644 index a605016..0000000 --- a/dist/assets/index-C_aLVrZJ.js +++ /dev/null @@ -1,6 +0,0 @@ -import{R as lt,T as at,U as Rn}from"./ui-library-BGb6MWUm.js";const Ot=(t,e,n)=>{if(t&&"reportValidity"in t){const r=lt(n,e);t.setCustomValidity(r&&r.message||""),t.reportValidity()}},qt=(t,e)=>{for(const n in e.fields){const r=e.fields[n];r&&r.ref&&"reportValidity"in r.ref?Ot(r.ref,n,t):r.refs&&r.refs.forEach(s=>Ot(s,n,t))}},On=(t,e)=>{e.shouldUseNativeValidation&&qt(t,e);const n={};for(const r in t){const s=lt(e.fields,r),a=Object.assign(t[r]||{},{ref:s&&s.ref});if(An(e.names||Object.keys(t),r)){const i=Object.assign({},lt(n,r));at(i,"root",a),at(n,r,i)}else at(n,r,a)}return n},An=(t,e)=>t.some(n=>n.startsWith(e+"."));var Cn=function(t,e){for(var n={};t.length;){var r=t[0],s=r.code,a=r.message,i=r.path.join(".");if(!n[i])if("unionErrors"in r){var o=r.unionErrors[0].errors[0];n[i]={message:o.message,type:o.code}}else n[i]={message:a,type:s};if("unionErrors"in r&&r.unionErrors.forEach(function(l){return l.errors.forEach(function(p){return t.push(p)})}),e){var u=n[i].types,c=u&&u[r.code];n[i]=Rn(i,e,n,s,c?[].concat(c,r.message):r.message)}t.shift()}return n},ma=function(t,e,n){return n===void 0&&(n={}),function(r,s,a){try{return Promise.resolve(function(i,o){try{var u=Promise.resolve(t[n.mode==="sync"?"parse":"parseAsync"](r,e)).then(function(c){return a.shouldUseNativeValidation&&qt({},a),{errors:{},values:n.raw?r:c}})}catch(c){return o(c)}return u&&u.then?u.then(void 0,o):u}(0,function(i){if(function(o){return Array.isArray(o==null?void 0:o.errors)}(i))return{values:{},errors:On(Cn(i.errors,!a.shouldUseNativeValidation&&a.criteriaMode==="all"),a)};throw i}))}catch(i){return Promise.reject(i)}}};function Ht(t,e){return function(){return t.apply(e,arguments)}}const{toString:Nn}=Object.prototype,{getPrototypeOf:xt}=Object,Ye=(t=>e=>{const n=Nn.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),V=t=>(t=t.toLowerCase(),e=>Ye(e)===t),Qe=t=>e=>typeof e===t,{isArray:ge}=Array,xe=Qe("undefined");function jn(t){return t!==null&&!xe(t)&&t.constructor!==null&&!xe(t.constructor)&&U(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Wt=V("ArrayBuffer");function Pn(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Wt(t.buffer),e}const Zn=Qe("string"),U=Qe("function"),Jt=Qe("number"),et=t=>t!==null&&typeof t=="object",In=t=>t===!0||t===!1,Fe=t=>{if(Ye(t)!=="object")return!1;const e=xt(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Ln=V("Date"),Dn=V("File"),Un=V("Blob"),Mn=V("FileList"),Fn=t=>et(t)&&U(t.pipe),Bn=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||U(t.append)&&((e=Ye(t))==="formdata"||e==="object"&&U(t.toString)&&t.toString()==="[object FormData]"))},$n=V("URLSearchParams"),[Vn,zn,qn,Hn]=["ReadableStream","Request","Response","Headers"].map(V),Wn=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Le(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,s;if(typeof t!="object"&&(t=[t]),ge(t))for(r=0,s=t.length;r0;)if(s=n[r],e===s.toLowerCase())return s;return null}const se=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Gt=t=>!xe(t)&&t!==se;function ft(){const{caseless:t}=Gt(this)&&this||{},e={},n=(r,s)=>{const a=t&&Kt(e,s)||s;Fe(e[a])&&Fe(r)?e[a]=ft(e[a],r):Fe(r)?e[a]=ft({},r):ge(r)?e[a]=r.slice():e[a]=r};for(let r=0,s=arguments.length;r(Le(e,(s,a)=>{n&&U(s)?t[a]=Ht(s,n):t[a]=s},{allOwnKeys:r}),t),Kn=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Gn=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},Xn=(t,e,n,r)=>{let s,a,i;const o={};if(e=e||{},t==null)return e;do{for(s=Object.getOwnPropertyNames(t),a=s.length;a-- >0;)i=s[a],(!r||r(i,t,e))&&!o[i]&&(e[i]=t[i],o[i]=!0);t=n!==!1&&xt(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},Yn=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},Qn=t=>{if(!t)return null;if(ge(t))return t;let e=t.length;if(!Jt(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},er=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&xt(Uint8Array)),tr=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let s;for(;(s=r.next())&&!s.done;){const a=s.value;e.call(t,a[0],a[1])}},nr=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},rr=V("HTMLFormElement"),sr=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),At=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),ar=V("RegExp"),Xt=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};Le(n,(s,a)=>{let i;(i=e(s,a,t))!==!1&&(r[a]=i||s)}),Object.defineProperties(t,r)},ir=t=>{Xt(t,(e,n)=>{if(U(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(U(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},or=(t,e)=>{const n={},r=s=>{s.forEach(a=>{n[a]=!0})};return ge(t)?r(t):r(String(t).split(e)),n},cr=()=>{},ur=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,it="abcdefghijklmnopqrstuvwxyz",Ct="0123456789",Yt={DIGIT:Ct,ALPHA:it,ALPHA_DIGIT:it+it.toUpperCase()+Ct},dr=(t=16,e=Yt.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function lr(t){return!!(t&&U(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const fr=t=>{const e=new Array(10),n=(r,s)=>{if(et(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[s]=r;const a=ge(r)?[]:{};return Le(r,(i,o)=>{const u=n(i,s+1);!xe(u)&&(a[o]=u)}),e[s]=void 0,a}}return r};return n(t,0)},hr=V("AsyncFunction"),pr=t=>t&&(et(t)||U(t))&&U(t.then)&&U(t.catch),Qt=((t,e)=>t?setImmediate:e?((n,r)=>(se.addEventListener("message",({source:s,data:a})=>{s===se&&a===n&&r.length&&r.shift()()},!1),s=>{r.push(s),se.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",U(se.postMessage)),mr=typeof queueMicrotask<"u"?queueMicrotask.bind(se):typeof process<"u"&&process.nextTick||Qt,d={isArray:ge,isArrayBuffer:Wt,isBuffer:jn,isFormData:Bn,isArrayBufferView:Pn,isString:Zn,isNumber:Jt,isBoolean:In,isObject:et,isPlainObject:Fe,isReadableStream:Vn,isRequest:zn,isResponse:qn,isHeaders:Hn,isUndefined:xe,isDate:Ln,isFile:Dn,isBlob:Un,isRegExp:ar,isFunction:U,isStream:Fn,isURLSearchParams:$n,isTypedArray:er,isFileList:Mn,forEach:Le,merge:ft,extend:Jn,trim:Wn,stripBOM:Kn,inherits:Gn,toFlatObject:Xn,kindOf:Ye,kindOfTest:V,endsWith:Yn,toArray:Qn,forEachEntry:tr,matchAll:nr,isHTMLForm:rr,hasOwnProperty:At,hasOwnProp:At,reduceDescriptors:Xt,freezeMethods:ir,toObjectSet:or,toCamelCase:sr,noop:cr,toFiniteNumber:ur,findKey:Kt,global:se,isContextDefined:Gt,ALPHABET:Yt,generateString:dr,isSpecCompliantForm:lr,toJSONObject:fr,isAsyncFn:hr,isThenable:pr,setImmediate:Qt,asap:mr};function w(t,e,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}d.inherits(w,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:d.toJSONObject(this.config),code:this.code,status:this.status}}});const en=w.prototype,tn={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{tn[t]={value:t}});Object.defineProperties(w,tn);Object.defineProperty(en,"isAxiosError",{value:!0});w.from=(t,e,n,r,s,a)=>{const i=Object.create(en);return d.toFlatObject(t,i,function(u){return u!==Error.prototype},o=>o!=="isAxiosError"),w.call(i,t.message,e,n,r,s),i.cause=t,i.name=t.name,a&&Object.assign(i,a),i};const yr=null;function ht(t){return d.isPlainObject(t)||d.isArray(t)}function nn(t){return d.endsWith(t,"[]")?t.slice(0,-2):t}function Nt(t,e,n){return t?t.concat(e).map(function(s,a){return s=nn(s),!n&&a?"["+s+"]":s}).join(n?".":""):e}function gr(t){return d.isArray(t)&&!t.some(ht)}const _r=d.toFlatObject(d,{},null,function(e){return/^is[A-Z]/.test(e)});function tt(t,e,n){if(!d.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=d.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(k,_){return!d.isUndefined(_[k])});const r=n.metaTokens,s=n.visitor||l,a=n.dots,i=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&d.isSpecCompliantForm(e);if(!d.isFunction(s))throw new TypeError("visitor must be a function");function c(g){if(g===null)return"";if(d.isDate(g))return g.toISOString();if(!u&&d.isBlob(g))throw new w("Blob is not supported. Use a Buffer instead.");return d.isArrayBuffer(g)||d.isTypedArray(g)?u&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function l(g,k,_){let A=g;if(g&&!_&&typeof g=="object"){if(d.endsWith(k,"{}"))k=r?k:k.slice(0,-2),g=JSON.stringify(g);else if(d.isArray(g)&&gr(g)||(d.isFileList(g)||d.endsWith(k,"[]"))&&(A=d.toArray(g)))return k=nn(k),A.forEach(function(j,J){!(d.isUndefined(j)||j===null)&&e.append(i===!0?Nt([k],J,a):i===null?k:k+"[]",c(j))}),!1}return ht(g)?!0:(e.append(Nt(_,k,a),c(g)),!1)}const p=[],S=Object.assign(_r,{defaultVisitor:l,convertValue:c,isVisitable:ht});function R(g,k){if(!d.isUndefined(g)){if(p.indexOf(g)!==-1)throw Error("Circular reference detected in "+k.join("."));p.push(g),d.forEach(g,function(A,C){(!(d.isUndefined(A)||A===null)&&s.call(e,A,d.isString(C)?C.trim():C,k,S))===!0&&R(A,k?k.concat(C):[C])}),p.pop()}}if(!d.isObject(t))throw new TypeError("data must be an object");return R(t),e}function jt(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function kt(t,e){this._pairs=[],t&&tt(t,this,e)}const rn=kt.prototype;rn.append=function(e,n){this._pairs.push([e,n])};rn.toString=function(e){const n=e?function(r){return e.call(this,r,jt)}:jt;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function vr(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function sn(t,e,n){if(!e)return t;const r=n&&n.encode||vr;d.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let a;if(s?a=s(e,n):a=d.isURLSearchParams(e)?e.toString():new kt(e,n).toString(r),a){const i=t.indexOf("#");i!==-1&&(t=t.slice(0,i)),t+=(t.indexOf("?")===-1?"?":"&")+a}return t}class Pt{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){d.forEach(this.handlers,function(r){r!==null&&e(r)})}}const an={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},br=typeof URLSearchParams<"u"?URLSearchParams:kt,wr=typeof FormData<"u"?FormData:null,xr=typeof Blob<"u"?Blob:null,kr={isBrowser:!0,classes:{URLSearchParams:br,FormData:wr,Blob:xr},protocols:["http","https","file","blob","url","data"]},Tt=typeof window<"u"&&typeof document<"u",pt=typeof navigator=="object"&&navigator||void 0,Tr=Tt&&(!pt||["ReactNative","NativeScript","NS"].indexOf(pt.product)<0),Er=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Sr=Tt&&window.location.href||"http://localhost",Rr=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Tt,hasStandardBrowserEnv:Tr,hasStandardBrowserWebWorkerEnv:Er,navigator:pt,origin:Sr},Symbol.toStringTag,{value:"Module"})),P={...Rr,...kr};function Or(t,e){return tt(t,new P.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,a){return P.isNode&&d.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},e))}function Ar(t){return d.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Cr(t){const e={},n=Object.keys(t);let r;const s=n.length;let a;for(r=0;r=n.length;return i=!i&&d.isArray(s)?s.length:i,u?(d.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!o):((!s[i]||!d.isObject(s[i]))&&(s[i]=[]),e(n,r,s[i],a)&&d.isArray(s[i])&&(s[i]=Cr(s[i])),!o)}if(d.isFormData(t)&&d.isFunction(t.entries)){const n={};return d.forEachEntry(t,(r,s)=>{e(Ar(r),s,n,0)}),n}return null}function Nr(t,e,n){if(d.isString(t))try{return(e||JSON.parse)(t),d.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(t)}const De={transitional:an,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,a=d.isObject(e);if(a&&d.isHTMLForm(e)&&(e=new FormData(e)),d.isFormData(e))return s?JSON.stringify(on(e)):e;if(d.isArrayBuffer(e)||d.isBuffer(e)||d.isStream(e)||d.isFile(e)||d.isBlob(e)||d.isReadableStream(e))return e;if(d.isArrayBufferView(e))return e.buffer;if(d.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Or(e,this.formSerializer).toString();if((o=d.isFileList(e))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return tt(o?{"files[]":e}:e,u&&new u,this.formSerializer)}}return a||s?(n.setContentType("application/json",!1),Nr(e)):e}],transformResponse:[function(e){const n=this.transitional||De.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(d.isResponse(e)||d.isReadableStream(e))return e;if(e&&d.isString(e)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(e)}catch(o){if(i)throw o.name==="SyntaxError"?w.from(o,w.ERR_BAD_RESPONSE,this,null,this.response):o}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:P.classes.FormData,Blob:P.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};d.forEach(["delete","get","head","post","put","patch"],t=>{De.headers[t]={}});const jr=d.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Pr=t=>{const e={};let n,r,s;return t&&t.split(` -`).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||e[n]&&jr[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},Zt=Symbol("internals");function ve(t){return t&&String(t).trim().toLowerCase()}function Be(t){return t===!1||t==null?t:d.isArray(t)?t.map(Be):String(t)}function Zr(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const Ir=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function ot(t,e,n,r,s){if(d.isFunction(r))return r.call(this,e,n);if(s&&(e=n),!!d.isString(e)){if(d.isString(r))return e.indexOf(r)!==-1;if(d.isRegExp(r))return r.test(e)}}function Lr(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function Dr(t,e){const n=d.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(s,a,i){return this[r].call(this,e,s,a,i)},configurable:!0})})}class D{constructor(e){e&&this.set(e)}set(e,n,r){const s=this;function a(o,u,c){const l=ve(u);if(!l)throw new Error("header name must be a non-empty string");const p=d.findKey(s,l);(!p||s[p]===void 0||c===!0||c===void 0&&s[p]!==!1)&&(s[p||u]=Be(o))}const i=(o,u)=>d.forEach(o,(c,l)=>a(c,l,u));if(d.isPlainObject(e)||e instanceof this.constructor)i(e,n);else if(d.isString(e)&&(e=e.trim())&&!Ir(e))i(Pr(e),n);else if(d.isHeaders(e))for(const[o,u]of e.entries())a(u,o,r);else e!=null&&a(n,e,r);return this}get(e,n){if(e=ve(e),e){const r=d.findKey(this,e);if(r){const s=this[r];if(!n)return s;if(n===!0)return Zr(s);if(d.isFunction(n))return n.call(this,s,r);if(d.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=ve(e),e){const r=d.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||ot(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let s=!1;function a(i){if(i=ve(i),i){const o=d.findKey(r,i);o&&(!n||ot(r,r[o],o,n))&&(delete r[o],s=!0)}}return d.isArray(e)?e.forEach(a):a(e),s}clear(e){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const a=n[r];(!e||ot(this,this[a],a,e,!0))&&(delete this[a],s=!0)}return s}normalize(e){const n=this,r={};return d.forEach(this,(s,a)=>{const i=d.findKey(r,a);if(i){n[i]=Be(s),delete n[a];return}const o=e?Lr(a):String(a).trim();o!==a&&delete n[a],n[o]=Be(s),r[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return d.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=e&&d.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(s=>r.set(s)),r}static accessor(e){const r=(this[Zt]=this[Zt]={accessors:{}}).accessors,s=this.prototype;function a(i){const o=ve(i);r[o]||(Dr(s,i),r[o]=!0)}return d.isArray(e)?e.forEach(a):a(e),this}}D.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);d.reduceDescriptors(D.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}});d.freezeMethods(D);function ct(t,e){const n=this||De,r=e||n,s=D.from(r.headers);let a=r.data;return d.forEach(t,function(o){a=o.call(n,a,s.normalize(),e?e.status:void 0)}),s.normalize(),a}function cn(t){return!!(t&&t.__CANCEL__)}function _e(t,e,n){w.call(this,t??"canceled",w.ERR_CANCELED,e,n),this.name="CanceledError"}d.inherits(_e,w,{__CANCEL__:!0});function un(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new w("Request failed with status code "+n.status,[w.ERR_BAD_REQUEST,w.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Ur(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Mr(t,e){t=t||10;const n=new Array(t),r=new Array(t);let s=0,a=0,i;return e=e!==void 0?e:1e3,function(u){const c=Date.now(),l=r[a];i||(i=c),n[s]=u,r[s]=c;let p=a,S=0;for(;p!==s;)S+=n[p++],p=p%t;if(s=(s+1)%t,s===a&&(a=(a+1)%t),c-i{n=l,s=null,a&&(clearTimeout(a),a=null),t.apply(null,c)};return[(...c)=>{const l=Date.now(),p=l-n;p>=r?i(c,l):(s=c,a||(a=setTimeout(()=>{a=null,i(s)},r-p)))},()=>s&&i(s)]}const Ve=(t,e,n=3)=>{let r=0;const s=Mr(50,250);return Fr(a=>{const i=a.loaded,o=a.lengthComputable?a.total:void 0,u=i-r,c=s(u),l=i<=o;r=i;const p={loaded:i,total:o,progress:o?i/o:void 0,bytes:u,rate:c||void 0,estimated:c&&o&&l?(o-i)/c:void 0,event:a,lengthComputable:o!=null,[e?"download":"upload"]:!0};t(p)},n)},It=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},Lt=t=>(...e)=>d.asap(()=>t(...e)),Br=P.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,P.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(P.origin),P.navigator&&/(msie|trident)/i.test(P.navigator.userAgent)):()=>!0,$r=P.hasStandardBrowserEnv?{write(t,e,n,r,s,a){const i=[t+"="+encodeURIComponent(e)];d.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),d.isString(r)&&i.push("path="+r),d.isString(s)&&i.push("domain="+s),a===!0&&i.push("secure"),document.cookie=i.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Vr(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function zr(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function dn(t,e){return t&&!Vr(e)?zr(t,e):e}const Dt=t=>t instanceof D?{...t}:t;function oe(t,e){e=e||{};const n={};function r(c,l,p,S){return d.isPlainObject(c)&&d.isPlainObject(l)?d.merge.call({caseless:S},c,l):d.isPlainObject(l)?d.merge({},l):d.isArray(l)?l.slice():l}function s(c,l,p,S){if(d.isUndefined(l)){if(!d.isUndefined(c))return r(void 0,c,p,S)}else return r(c,l,p,S)}function a(c,l){if(!d.isUndefined(l))return r(void 0,l)}function i(c,l){if(d.isUndefined(l)){if(!d.isUndefined(c))return r(void 0,c)}else return r(void 0,l)}function o(c,l,p){if(p in e)return r(c,l);if(p in t)return r(void 0,c)}const u={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:o,headers:(c,l,p)=>s(Dt(c),Dt(l),p,!0)};return d.forEach(Object.keys(Object.assign({},t,e)),function(l){const p=u[l]||s,S=p(t[l],e[l],l);d.isUndefined(S)&&p!==o||(n[l]=S)}),n}const ln=t=>{const e=oe({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:a,headers:i,auth:o}=e;e.headers=i=D.from(i),e.url=sn(dn(e.baseURL,e.url),t.params,t.paramsSerializer),o&&i.set("Authorization","Basic "+btoa((o.username||"")+":"+(o.password?unescape(encodeURIComponent(o.password)):"")));let u;if(d.isFormData(n)){if(P.hasStandardBrowserEnv||P.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((u=i.getContentType())!==!1){const[c,...l]=u?u.split(";").map(p=>p.trim()).filter(Boolean):[];i.setContentType([c||"multipart/form-data",...l].join("; "))}}if(P.hasStandardBrowserEnv&&(r&&d.isFunction(r)&&(r=r(e)),r||r!==!1&&Br(e.url))){const c=s&&a&&$r.read(a);c&&i.set(s,c)}return e},qr=typeof XMLHttpRequest<"u",Hr=qr&&function(t){return new Promise(function(n,r){const s=ln(t);let a=s.data;const i=D.from(s.headers).normalize();let{responseType:o,onUploadProgress:u,onDownloadProgress:c}=s,l,p,S,R,g;function k(){R&&R(),g&&g(),s.cancelToken&&s.cancelToken.unsubscribe(l),s.signal&&s.signal.removeEventListener("abort",l)}let _=new XMLHttpRequest;_.open(s.method.toUpperCase(),s.url,!0),_.timeout=s.timeout;function A(){if(!_)return;const j=D.from("getAllResponseHeaders"in _&&_.getAllResponseHeaders()),L={data:!o||o==="text"||o==="json"?_.responseText:_.response,status:_.status,statusText:_.statusText,headers:j,config:t,request:_};un(function(re){n(re),k()},function(re){r(re),k()},L),_=null}"onloadend"in _?_.onloadend=A:_.onreadystatechange=function(){!_||_.readyState!==4||_.status===0&&!(_.responseURL&&_.responseURL.indexOf("file:")===0)||setTimeout(A)},_.onabort=function(){_&&(r(new w("Request aborted",w.ECONNABORTED,t,_)),_=null)},_.onerror=function(){r(new w("Network Error",w.ERR_NETWORK,t,_)),_=null},_.ontimeout=function(){let J=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const L=s.transitional||an;s.timeoutErrorMessage&&(J=s.timeoutErrorMessage),r(new w(J,L.clarifyTimeoutError?w.ETIMEDOUT:w.ECONNABORTED,t,_)),_=null},a===void 0&&i.setContentType(null),"setRequestHeader"in _&&d.forEach(i.toJSON(),function(J,L){_.setRequestHeader(L,J)}),d.isUndefined(s.withCredentials)||(_.withCredentials=!!s.withCredentials),o&&o!=="json"&&(_.responseType=s.responseType),c&&([S,g]=Ve(c,!0),_.addEventListener("progress",S)),u&&_.upload&&([p,R]=Ve(u),_.upload.addEventListener("progress",p),_.upload.addEventListener("loadend",R)),(s.cancelToken||s.signal)&&(l=j=>{_&&(r(!j||j.type?new _e(null,t,_):j),_.abort(),_=null)},s.cancelToken&&s.cancelToken.subscribe(l),s.signal&&(s.signal.aborted?l():s.signal.addEventListener("abort",l)));const C=Ur(s.url);if(C&&P.protocols.indexOf(C)===-1){r(new w("Unsupported protocol "+C+":",w.ERR_BAD_REQUEST,t));return}_.send(a||null)})},Wr=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let r=new AbortController,s;const a=function(c){if(!s){s=!0,o();const l=c instanceof Error?c:this.reason;r.abort(l instanceof w?l:new _e(l instanceof Error?l.message:l))}};let i=e&&setTimeout(()=>{i=null,a(new w(`timeout ${e} of ms exceeded`,w.ETIMEDOUT))},e);const o=()=>{t&&(i&&clearTimeout(i),i=null,t.forEach(c=>{c.unsubscribe?c.unsubscribe(a):c.removeEventListener("abort",a)}),t=null)};t.forEach(c=>c.addEventListener("abort",a));const{signal:u}=r;return u.unsubscribe=()=>d.asap(o),u}},Jr=function*(t,e){let n=t.byteLength;if(n{const s=Kr(t,e);let a=0,i,o=u=>{i||(i=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:c,value:l}=await s.next();if(c){o(),u.close();return}let p=l.byteLength;if(n){let S=a+=p;n(S)}u.enqueue(new Uint8Array(l))}catch(c){throw o(c),c}},cancel(u){return o(u),s.return()}},{highWaterMark:2})},nt=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",fn=nt&&typeof ReadableStream=="function",Xr=nt&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),hn=(t,...e)=>{try{return!!t(...e)}catch{return!1}},Yr=fn&&hn(()=>{let t=!1;const e=new Request(P.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),Mt=64*1024,mt=fn&&hn(()=>d.isReadableStream(new Response("").body)),ze={stream:mt&&(t=>t.body)};nt&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!ze[e]&&(ze[e]=d.isFunction(t[e])?n=>n[e]():(n,r)=>{throw new w(`Response type '${e}' is not supported`,w.ERR_NOT_SUPPORT,r)})})})(new Response);const Qr=async t=>{if(t==null)return 0;if(d.isBlob(t))return t.size;if(d.isSpecCompliantForm(t))return(await new Request(P.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(d.isArrayBufferView(t)||d.isArrayBuffer(t))return t.byteLength;if(d.isURLSearchParams(t)&&(t=t+""),d.isString(t))return(await Xr(t)).byteLength},es=async(t,e)=>{const n=d.toFiniteNumber(t.getContentLength());return n??Qr(e)},ts=nt&&(async t=>{let{url:e,method:n,data:r,signal:s,cancelToken:a,timeout:i,onDownloadProgress:o,onUploadProgress:u,responseType:c,headers:l,withCredentials:p="same-origin",fetchOptions:S}=ln(t);c=c?(c+"").toLowerCase():"text";let R=Wr([s,a&&a.toAbortSignal()],i),g;const k=R&&R.unsubscribe&&(()=>{R.unsubscribe()});let _;try{if(u&&Yr&&n!=="get"&&n!=="head"&&(_=await es(l,r))!==0){let L=new Request(e,{method:"POST",body:r,duplex:"half"}),Y;if(d.isFormData(r)&&(Y=L.headers.get("content-type"))&&l.setContentType(Y),L.body){const[re,Me]=It(_,Ve(Lt(u)));r=Ut(L.body,Mt,re,Me)}}d.isString(p)||(p=p?"include":"omit");const A="credentials"in Request.prototype;g=new Request(e,{...S,signal:R,method:n.toUpperCase(),headers:l.normalize().toJSON(),body:r,duplex:"half",credentials:A?p:void 0});let C=await fetch(g);const j=mt&&(c==="stream"||c==="response");if(mt&&(o||j&&k)){const L={};["status","statusText","headers"].forEach(Rt=>{L[Rt]=C[Rt]});const Y=d.toFiniteNumber(C.headers.get("content-length")),[re,Me]=o&&It(Y,Ve(Lt(o),!0))||[];C=new Response(Ut(C.body,Mt,re,()=>{Me&&Me(),k&&k()}),L)}c=c||"text";let J=await ze[d.findKey(ze,c)||"text"](C,t);return!j&&k&&k(),await new Promise((L,Y)=>{un(L,Y,{data:J,headers:D.from(C.headers),status:C.status,statusText:C.statusText,config:t,request:g})})}catch(A){throw k&&k(),A&&A.name==="TypeError"&&/fetch/i.test(A.message)?Object.assign(new w("Network Error",w.ERR_NETWORK,t,g),{cause:A.cause||A}):w.from(A,A&&A.code,t,g)}}),yt={http:yr,xhr:Hr,fetch:ts};d.forEach(yt,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Ft=t=>`- ${t}`,ns=t=>d.isFunction(t)||t===null||t===!1,pn={getAdapter:t=>{t=d.isArray(t)?t:[t];const{length:e}=t;let n,r;const s={};for(let a=0;a`adapter ${o} `+(u===!1?"is not supported by the environment":"is not available in the build"));let i=e?a.length>1?`since : -`+a.map(Ft).join(` -`):" "+Ft(a[0]):"as no adapter specified";throw new w("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:yt};function ut(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new _e(null,t)}function Bt(t){return ut(t),t.headers=D.from(t.headers),t.data=ct.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),pn.getAdapter(t.adapter||De.adapter)(t).then(function(r){return ut(t),r.data=ct.call(t,t.transformResponse,r),r.headers=D.from(r.headers),r},function(r){return cn(r)||(ut(t),r&&r.response&&(r.response.data=ct.call(t,t.transformResponse,r.response),r.response.headers=D.from(r.response.headers))),Promise.reject(r)})}const mn="1.7.9",rt={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{rt[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const $t={};rt.transitional=function(e,n,r){function s(a,i){return"[Axios v"+mn+"] Transitional option '"+a+"'"+i+(r?". "+r:"")}return(a,i,o)=>{if(e===!1)throw new w(s(i," has been removed"+(n?" in "+n:"")),w.ERR_DEPRECATED);return n&&!$t[i]&&($t[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(a,i,o):!0}};rt.spelling=function(e){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function rs(t,e,n){if(typeof t!="object")throw new w("options must be an object",w.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let s=r.length;for(;s-- >0;){const a=r[s],i=e[a];if(i){const o=t[a],u=o===void 0||i(o,a,t);if(u!==!0)throw new w("option "+a+" must be "+u,w.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new w("Unknown option "+a,w.ERR_BAD_OPTION)}}const $e={assertOptions:rs,validators:rt},z=$e.validators;class ae{constructor(e){this.defaults=e,this.interceptors={request:new Pt,response:new Pt}}async request(e,n){try{return await this._request(e,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const a=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(r.stack+=` -`+a):r.stack=a}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=oe(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:a}=n;r!==void 0&&$e.assertOptions(r,{silentJSONParsing:z.transitional(z.boolean),forcedJSONParsing:z.transitional(z.boolean),clarifyTimeoutError:z.transitional(z.boolean)},!1),s!=null&&(d.isFunction(s)?n.paramsSerializer={serialize:s}:$e.assertOptions(s,{encode:z.function,serialize:z.function},!0)),$e.assertOptions(n,{baseUrl:z.spelling("baseURL"),withXsrfToken:z.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=a&&d.merge(a.common,a[n.method]);a&&d.forEach(["delete","get","head","post","put","patch","common"],g=>{delete a[g]}),n.headers=D.concat(i,a);const o=[];let u=!0;this.interceptors.request.forEach(function(k){typeof k.runWhen=="function"&&k.runWhen(n)===!1||(u=u&&k.synchronous,o.unshift(k.fulfilled,k.rejected))});const c=[];this.interceptors.response.forEach(function(k){c.push(k.fulfilled,k.rejected)});let l,p=0,S;if(!u){const g=[Bt.bind(this),void 0];for(g.unshift.apply(g,o),g.push.apply(g,c),S=g.length,l=Promise.resolve(n);p{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](s);r._listeners=null}),this.promise.then=s=>{let a;const i=new Promise(o=>{r.subscribe(o),a=o}).then(s);return i.cancel=function(){r.unsubscribe(a)},i},e(function(a,i,o){r.reason||(r.reason=new _e(a,i,o),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=r=>{e.abort(r)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new Et(function(s){e=s}),cancel:e}}}function ss(t){return function(n){return t.apply(null,n)}}function as(t){return d.isObject(t)&&t.isAxiosError===!0}const gt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(gt).forEach(([t,e])=>{gt[e]=t});function yn(t){const e=new ae(t),n=Ht(ae.prototype.request,e);return d.extend(n,ae.prototype,e,{allOwnKeys:!0}),d.extend(n,e,null,{allOwnKeys:!0}),n.create=function(s){return yn(oe(t,s))},n}const N=yn(De);N.Axios=ae;N.CanceledError=_e;N.CancelToken=Et;N.isCancel=cn;N.VERSION=mn;N.toFormData=tt;N.AxiosError=w;N.Cancel=N.CanceledError;N.all=function(e){return Promise.all(e)};N.spread=ss;N.isAxiosError=as;N.mergeConfig=oe;N.AxiosHeaders=D;N.formToJSON=t=>on(d.isHTMLForm(t)?new FormData(t):t);N.getAdapter=pn.getAdapter;N.HttpStatusCode=gt;N.default=N;var E;(function(t){t.assertEqual=s=>s;function e(s){}t.assertIs=e;function n(s){throw new Error}t.assertNever=n,t.arrayToEnum=s=>{const a={};for(const i of s)a[i]=i;return a},t.getValidEnumValues=s=>{const a=t.objectKeys(s).filter(o=>typeof s[s[o]]!="number"),i={};for(const o of a)i[o]=s[o];return t.objectValues(i)},t.objectValues=s=>t.objectKeys(s).map(function(a){return s[a]}),t.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{const a=[];for(const i in s)Object.prototype.hasOwnProperty.call(s,i)&&a.push(i);return a},t.find=(s,a)=>{for(const i of s)if(a(i))return i},t.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&isFinite(s)&&Math.floor(s)===s;function r(s,a=" | "){return s.map(i=>typeof i=="string"?`'${i}'`:i).join(a)}t.joinValues=r,t.jsonStringifyReplacer=(s,a)=>typeof a=="bigint"?a.toString():a})(E||(E={}));var _t;(function(t){t.mergeShapes=(e,n)=>({...e,...n})})(_t||(_t={}));const m=E.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),G=t=>{switch(typeof t){case"undefined":return m.undefined;case"string":return m.string;case"number":return isNaN(t)?m.nan:m.number;case"boolean":return m.boolean;case"function":return m.function;case"bigint":return m.bigint;case"symbol":return m.symbol;case"object":return Array.isArray(t)?m.array:t===null?m.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?m.promise:typeof Map<"u"&&t instanceof Map?m.map:typeof Set<"u"&&t instanceof Set?m.set:typeof Date<"u"&&t instanceof Date?m.date:m.object;default:return m.unknown}},f=E.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"]),is=t=>JSON.stringify(t,null,2).replace(/"([^"]+)":/g,"$1:");class M extends Error{get errors(){return this.issues}constructor(e){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=e}format(e){const n=e||function(a){return a.message},r={_errors:[]},s=a=>{for(const i of a.issues)if(i.code==="invalid_union")i.unionErrors.map(s);else if(i.code==="invalid_return_type")s(i.returnTypeError);else if(i.code==="invalid_arguments")s(i.argumentsError);else if(i.path.length===0)r._errors.push(n(i));else{let o=r,u=0;for(;un.message){const n={},r=[];for(const s of this.issues)s.path.length>0?(n[s.path[0]]=n[s.path[0]]||[],n[s.path[0]].push(e(s))):r.push(e(s));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}M.create=t=>new M(t);const pe=(t,e)=>{let n;switch(t.code){case f.invalid_type:t.received===m.undefined?n="Required":n=`Expected ${t.expected}, received ${t.received}`;break;case f.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(t.expected,E.jsonStringifyReplacer)}`;break;case f.unrecognized_keys:n=`Unrecognized key(s) in object: ${E.joinValues(t.keys,", ")}`;break;case f.invalid_union:n="Invalid input";break;case f.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${E.joinValues(t.options)}`;break;case f.invalid_enum_value:n=`Invalid enum value. Expected ${E.joinValues(t.options)}, received '${t.received}'`;break;case f.invalid_arguments:n="Invalid function arguments";break;case f.invalid_return_type:n="Invalid function return type";break;case f.invalid_date:n="Invalid date";break;case f.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(n=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?n=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?n=`Invalid input: must end with "${t.validation.endsWith}"`:E.assertNever(t.validation):t.validation!=="regex"?n=`Invalid ${t.validation}`:n="Invalid";break;case f.too_small:t.type==="array"?n=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?n=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?n=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?n=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:n="Invalid input";break;case f.too_big:t.type==="array"?n=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?n=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?n=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?n=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?n=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:n="Invalid input";break;case f.custom:n="Invalid input";break;case f.invalid_intersection_types:n="Intersection results could not be merged";break;case f.not_multiple_of:n=`Number must be a multiple of ${t.multipleOf}`;break;case f.not_finite:n="Number must be finite";break;default:n=e.defaultError,E.assertNever(t)}return{message:n}};let gn=pe;function os(t){gn=t}function qe(){return gn}const He=t=>{const{data:e,path:n,errorMaps:r,issueData:s}=t,a=[...n,...s.path||[]],i={...s,path:a};if(s.message!==void 0)return{...s,path:a,message:s.message};let o="";const u=r.filter(c=>!!c).slice().reverse();for(const c of u)o=c(i,{data:e,defaultError:o}).message;return{...s,path:a,message:o}},cs=[];function h(t,e){const n=qe(),r=He({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,n,n===pe?void 0:pe].filter(s=>!!s)});t.common.issues.push(r)}class Z{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,n){const r=[];for(const s of n){if(s.status==="aborted")return b;s.status==="dirty"&&e.dirty(),r.push(s.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,n){const r=[];for(const s of n){const a=await s.key,i=await s.value;r.push({key:a,value:i})}return Z.mergeObjectSync(e,r)}static mergeObjectSync(e,n){const r={};for(const s of n){const{key:a,value:i}=s;if(a.status==="aborted"||i.status==="aborted")return b;a.status==="dirty"&&e.dirty(),i.status==="dirty"&&e.dirty(),a.value!=="__proto__"&&(typeof i.value<"u"||s.alwaysSet)&&(r[a.value]=i.value)}return{status:e.value,value:r}}}const b=Object.freeze({status:"aborted"}),fe=t=>({status:"dirty",value:t}),I=t=>({status:"valid",value:t}),vt=t=>t.status==="aborted",bt=t=>t.status==="dirty",ce=t=>t.status==="valid",ke=t=>typeof Promise<"u"&&t instanceof Promise;function We(t,e,n,r){if(typeof e=="function"?t!==e||!0:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e.get(t)}function _n(t,e,n,r,s){if(typeof e=="function"?t!==e||!0:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return e.set(t,n),n}var y;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e==null?void 0:e.message})(y||(y={}));var be,we;class H{constructor(e,n,r,s){this._cachedPath=[],this.parent=e,this.data=n,this._path=r,this._key=s}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 Vt=(t,e)=>{if(ce(e))return{success:!0,data:e.value};if(!t.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 M(t.common.issues);return this._error=n,this._error}}};function x(t){if(!t)return{};const{errorMap:e,invalid_type_error:n,required_error:r,description:s}=t;if(e&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:s}:{errorMap:(i,o)=>{var u,c;const{message:l}=t;return i.code==="invalid_enum_value"?{message:l??o.defaultError}:typeof o.data>"u"?{message:(u=l??r)!==null&&u!==void 0?u:o.defaultError}:i.code!=="invalid_type"?{message:o.defaultError}:{message:(c=l??n)!==null&&c!==void 0?c:o.defaultError}},description:s}}class T{get description(){return this._def.description}_getType(e){return G(e.data)}_getOrReturnCtx(e,n){return n||{common:e.parent.common,data:e.data,parsedType:G(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new Z,ctx:{common:e.parent.common,data:e.data,parsedType:G(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const n=this._parse(e);if(ke(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(e){const n=this._parse(e);return Promise.resolve(n)}parse(e,n){const r=this.safeParse(e,n);if(r.success)return r.data;throw r.error}safeParse(e,n){var r;const s={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:e,parsedType:G(e)},a=this._parseSync({data:e,path:s.path,parent:s});return Vt(s,a)}"~validate"(e){var n,r;const s={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:G(e)};if(!this["~standard"].async)try{const a=this._parseSync({data:e,path:[],parent:s});return ce(a)?{value:a.value}:{issues:s.common.issues}}catch(a){!((r=(n=a==null?void 0:a.message)===null||n===void 0?void 0:n.toLowerCase())===null||r===void 0)&&r.includes("encountered")&&(this["~standard"].async=!0),s.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:s}).then(a=>ce(a)?{value:a.value}:{issues:s.common.issues})}async parseAsync(e,n){const r=await this.safeParseAsync(e,n);if(r.success)return r.data;throw r.error}async safeParseAsync(e,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:e,parsedType:G(e)},s=this._parse({data:e,path:r.path,parent:r}),a=await(ke(s)?s:Promise.resolve(s));return Vt(r,a)}refine(e,n){const r=s=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(s):n;return this._refinement((s,a)=>{const i=e(s),o=()=>a.addIssue({code:f.custom,...r(s)});return typeof Promise<"u"&&i instanceof Promise?i.then(u=>u?!0:(o(),!1)):i?!0:(o(),!1)})}refinement(e,n){return this._refinement((r,s)=>e(r)?!0:(s.addIssue(typeof n=="function"?n(r,s):n),!1))}_refinement(e){return new $({schema:this,typeName:v.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return q.create(this,this._def)}nullable(){return ne.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return B.create(this)}promise(){return ye.create(this,this._def)}or(e){return Re.create([this,e],this._def)}and(e){return Oe.create(this,e,this._def)}transform(e){return new $({...x(this._def),schema:this,typeName:v.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const n=typeof e=="function"?e:()=>e;return new Pe({...x(this._def),innerType:this,defaultValue:n,typeName:v.ZodDefault})}brand(){return new St({typeName:v.ZodBranded,type:this,...x(this._def)})}catch(e){const n=typeof e=="function"?e:()=>e;return new Ze({...x(this._def),innerType:this,catchValue:n,typeName:v.ZodCatch})}describe(e){const n=this.constructor;return new n({...this._def,description:e})}pipe(e){return Ue.create(this,e)}readonly(){return Ie.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const us=/^c[^\s-]{8,}$/i,ds=/^[0-9a-z]+$/,ls=/^[0-9A-HJKMNP-TV-Z]{26}$/i,fs=/^[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,hs=/^[a-z0-9_-]{21}$/i,ps=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,ms=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,ys=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,gs="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let dt;const _s=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,vs=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,bs=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,ws=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,xs=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,ks=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,vn="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Ts=new RegExp(`^${vn}$`);function bn(t){let e="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return t.precision?e=`${e}\\.\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\.\\d+)?`),e}function Es(t){return new RegExp(`^${bn(t)}$`)}function wn(t){let e=`${vn}T${bn(t)}`;const n=[];return n.push(t.local?"Z?":"Z"),t.offset&&n.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${n.join("|")})`,new RegExp(`^${e}$`)}function Ss(t,e){return!!((e==="v4"||!e)&&_s.test(t)||(e==="v6"||!e)&&bs.test(t))}function Rs(t,e){if(!ps.test(t))return!1;try{const[n]=t.split("."),r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),s=JSON.parse(atob(r));return!(typeof s!="object"||s===null||!s.typ||!s.alg||e&&s.alg!==e)}catch{return!1}}function Os(t,e){return!!((e==="v4"||!e)&&vs.test(t)||(e==="v6"||!e)&&ws.test(t))}class F extends T{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==m.string){const a=this._getOrReturnCtx(e);return h(a,{code:f.invalid_type,expected:m.string,received:a.parsedType}),b}const r=new Z;let s;for(const a of this._def.checks)if(a.kind==="min")e.data.lengtha.value&&(s=this._getOrReturnCtx(e,s),h(s,{code:f.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),r.dirty());else if(a.kind==="length"){const i=e.data.length>a.value,o=e.data.lengthe.test(s),{validation:n,code:f.invalid_string,...y.errToObj(r)})}_addCheck(e){return new F({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...y.errToObj(e)})}url(e){return this._addCheck({kind:"url",...y.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...y.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...y.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...y.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...y.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...y.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...y.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...y.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...y.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...y.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...y.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...y.errToObj(e)})}datetime(e){var n,r;return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,offset:(n=e==null?void 0:e.offset)!==null&&n!==void 0?n:!1,local:(r=e==null?void 0:e.local)!==null&&r!==void 0?r:!1,...y.errToObj(e==null?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,...y.errToObj(e==null?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...y.errToObj(e)})}regex(e,n){return this._addCheck({kind:"regex",regex:e,...y.errToObj(n)})}includes(e,n){return this._addCheck({kind:"includes",value:e,position:n==null?void 0:n.position,...y.errToObj(n==null?void 0:n.message)})}startsWith(e,n){return this._addCheck({kind:"startsWith",value:e,...y.errToObj(n)})}endsWith(e,n){return this._addCheck({kind:"endsWith",value:e,...y.errToObj(n)})}min(e,n){return this._addCheck({kind:"min",value:e,...y.errToObj(n)})}max(e,n){return this._addCheck({kind:"max",value:e,...y.errToObj(n)})}length(e,n){return this._addCheck({kind:"length",value:e,...y.errToObj(n)})}nonempty(e){return this.min(1,y.errToObj(e))}trim(){return new F({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new F({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new F({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxLength(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value{var e;return new F({checks:[],typeName:v.ZodString,coerce:(e=t==null?void 0:t.coerce)!==null&&e!==void 0?e:!1,...x(t)})};function As(t,e){const n=(t.toString().split(".")[1]||"").length,r=(e.toString().split(".")[1]||"").length,s=n>r?n:r,a=parseInt(t.toFixed(s).replace(".","")),i=parseInt(e.toFixed(s).replace(".",""));return a%i/Math.pow(10,s)}class Q extends T{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==m.number){const a=this._getOrReturnCtx(e);return h(a,{code:f.invalid_type,expected:m.number,received:a.parsedType}),b}let r;const s=new Z;for(const a of this._def.checks)a.kind==="int"?E.isInteger(e.data)||(r=this._getOrReturnCtx(e,r),h(r,{code:f.invalid_type,expected:"integer",received:"float",message:a.message}),s.dirty()):a.kind==="min"?(a.inclusive?e.dataa.value:e.data>=a.value)&&(r=this._getOrReturnCtx(e,r),h(r,{code:f.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),s.dirty()):a.kind==="multipleOf"?As(e.data,a.value)!==0&&(r=this._getOrReturnCtx(e,r),h(r,{code:f.not_multiple_of,multipleOf:a.value,message:a.message}),s.dirty()):a.kind==="finite"?Number.isFinite(e.data)||(r=this._getOrReturnCtx(e,r),h(r,{code:f.not_finite,message:a.message}),s.dirty()):E.assertNever(a);return{status:s.value,value:e.data}}gte(e,n){return this.setLimit("min",e,!0,y.toString(n))}gt(e,n){return this.setLimit("min",e,!1,y.toString(n))}lte(e,n){return this.setLimit("max",e,!0,y.toString(n))}lt(e,n){return this.setLimit("max",e,!1,y.toString(n))}setLimit(e,n,r,s){return new Q({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:r,message:y.toString(s)}]})}_addCheck(e){return new Q({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:y.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:y.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:y.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:y.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:y.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:y.toString(n)})}finite(e){return this._addCheck({kind:"finite",message:y.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:y.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:y.toString(e)})}get minValue(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.valuee.kind==="int"||e.kind==="multipleOf"&&E.isInteger(e.value))}get isFinite(){let e=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"&&(e===null||r.valuenew Q({checks:[],typeName:v.ZodNumber,coerce:(t==null?void 0:t.coerce)||!1,...x(t)});class ee extends T{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==m.bigint)return this._getInvalidInput(e);let r;const s=new Z;for(const a of this._def.checks)a.kind==="min"?(a.inclusive?e.dataa.value:e.data>=a.value)&&(r=this._getOrReturnCtx(e,r),h(r,{code:f.too_big,type:"bigint",maximum:a.value,inclusive:a.inclusive,message:a.message}),s.dirty()):a.kind==="multipleOf"?e.data%a.value!==BigInt(0)&&(r=this._getOrReturnCtx(e,r),h(r,{code:f.not_multiple_of,multipleOf:a.value,message:a.message}),s.dirty()):E.assertNever(a);return{status:s.value,value:e.data}}_getInvalidInput(e){const n=this._getOrReturnCtx(e);return h(n,{code:f.invalid_type,expected:m.bigint,received:n.parsedType}),b}gte(e,n){return this.setLimit("min",e,!0,y.toString(n))}gt(e,n){return this.setLimit("min",e,!1,y.toString(n))}lte(e,n){return this.setLimit("max",e,!0,y.toString(n))}lt(e,n){return this.setLimit("max",e,!1,y.toString(n))}setLimit(e,n,r,s){return new ee({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:r,message:y.toString(s)}]})}_addCheck(e){return new ee({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:y.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:y.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:y.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:y.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:y.toString(n)})}get minValue(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value{var e;return new ee({checks:[],typeName:v.ZodBigInt,coerce:(e=t==null?void 0:t.coerce)!==null&&e!==void 0?e:!1,...x(t)})};class Te extends T{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==m.boolean){const r=this._getOrReturnCtx(e);return h(r,{code:f.invalid_type,expected:m.boolean,received:r.parsedType}),b}return I(e.data)}}Te.create=t=>new Te({typeName:v.ZodBoolean,coerce:(t==null?void 0:t.coerce)||!1,...x(t)});class ue extends T{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==m.date){const a=this._getOrReturnCtx(e);return h(a,{code:f.invalid_type,expected:m.date,received:a.parsedType}),b}if(isNaN(e.data.getTime())){const a=this._getOrReturnCtx(e);return h(a,{code:f.invalid_date}),b}const r=new Z;let s;for(const a of this._def.checks)a.kind==="min"?e.data.getTime()a.value&&(s=this._getOrReturnCtx(e,s),h(s,{code:f.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),r.dirty()):E.assertNever(a);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new ue({...this._def,checks:[...this._def.checks,e]})}min(e,n){return this._addCheck({kind:"min",value:e.getTime(),message:y.toString(n)})}max(e,n){return this._addCheck({kind:"max",value:e.getTime(),message:y.toString(n)})}get minDate(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.valuenew ue({checks:[],coerce:(t==null?void 0:t.coerce)||!1,typeName:v.ZodDate,...x(t)});class Je extends T{_parse(e){if(this._getType(e)!==m.symbol){const r=this._getOrReturnCtx(e);return h(r,{code:f.invalid_type,expected:m.symbol,received:r.parsedType}),b}return I(e.data)}}Je.create=t=>new Je({typeName:v.ZodSymbol,...x(t)});class Ee extends T{_parse(e){if(this._getType(e)!==m.undefined){const r=this._getOrReturnCtx(e);return h(r,{code:f.invalid_type,expected:m.undefined,received:r.parsedType}),b}return I(e.data)}}Ee.create=t=>new Ee({typeName:v.ZodUndefined,...x(t)});class Se extends T{_parse(e){if(this._getType(e)!==m.null){const r=this._getOrReturnCtx(e);return h(r,{code:f.invalid_type,expected:m.null,received:r.parsedType}),b}return I(e.data)}}Se.create=t=>new Se({typeName:v.ZodNull,...x(t)});class me extends T{constructor(){super(...arguments),this._any=!0}_parse(e){return I(e.data)}}me.create=t=>new me({typeName:v.ZodAny,...x(t)});class ie extends T{constructor(){super(...arguments),this._unknown=!0}_parse(e){return I(e.data)}}ie.create=t=>new ie({typeName:v.ZodUnknown,...x(t)});class X extends T{_parse(e){const n=this._getOrReturnCtx(e);return h(n,{code:f.invalid_type,expected:m.never,received:n.parsedType}),b}}X.create=t=>new X({typeName:v.ZodNever,...x(t)});class Ke extends T{_parse(e){if(this._getType(e)!==m.undefined){const r=this._getOrReturnCtx(e);return h(r,{code:f.invalid_type,expected:m.void,received:r.parsedType}),b}return I(e.data)}}Ke.create=t=>new Ke({typeName:v.ZodVoid,...x(t)});class B extends T{_parse(e){const{ctx:n,status:r}=this._processInputParams(e),s=this._def;if(n.parsedType!==m.array)return h(n,{code:f.invalid_type,expected:m.array,received:n.parsedType}),b;if(s.exactLength!==null){const i=n.data.length>s.exactLength.value,o=n.data.lengths.maxLength.value&&(h(n,{code:f.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((i,o)=>s.type._parseAsync(new H(n,i,n.path,o)))).then(i=>Z.mergeArray(r,i));const a=[...n.data].map((i,o)=>s.type._parseSync(new H(n,i,n.path,o)));return Z.mergeArray(r,a)}get element(){return this._def.type}min(e,n){return new B({...this._def,minLength:{value:e,message:y.toString(n)}})}max(e,n){return new B({...this._def,maxLength:{value:e,message:y.toString(n)}})}length(e,n){return new B({...this._def,exactLength:{value:e,message:y.toString(n)}})}nonempty(e){return this.min(1,e)}}B.create=(t,e)=>new B({type:t,minLength:null,maxLength:null,exactLength:null,typeName:v.ZodArray,...x(e)});function le(t){if(t instanceof O){const e={};for(const n in t.shape){const r=t.shape[n];e[n]=q.create(le(r))}return new O({...t._def,shape:()=>e})}else return t instanceof B?new B({...t._def,type:le(t.element)}):t instanceof q?q.create(le(t.unwrap())):t instanceof ne?ne.create(le(t.unwrap())):t instanceof W?W.create(t.items.map(e=>le(e))):t}class O extends T{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const e=this._def.shape(),n=E.objectKeys(e);return this._cached={shape:e,keys:n}}_parse(e){if(this._getType(e)!==m.object){const c=this._getOrReturnCtx(e);return h(c,{code:f.invalid_type,expected:m.object,received:c.parsedType}),b}const{status:r,ctx:s}=this._processInputParams(e),{shape:a,keys:i}=this._getCached(),o=[];if(!(this._def.catchall instanceof X&&this._def.unknownKeys==="strip"))for(const c in s.data)i.includes(c)||o.push(c);const u=[];for(const c of i){const l=a[c],p=s.data[c];u.push({key:{status:"valid",value:c},value:l._parse(new H(s,p,s.path,c)),alwaysSet:c in s.data})}if(this._def.catchall instanceof X){const c=this._def.unknownKeys;if(c==="passthrough")for(const l of o)u.push({key:{status:"valid",value:l},value:{status:"valid",value:s.data[l]}});else if(c==="strict")o.length>0&&(h(s,{code:f.unrecognized_keys,keys:o}),r.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const c=this._def.catchall;for(const l of o){const p=s.data[l];u.push({key:{status:"valid",value:l},value:c._parse(new H(s,p,s.path,l)),alwaysSet:l in s.data})}}return s.common.async?Promise.resolve().then(async()=>{const c=[];for(const l of u){const p=await l.key,S=await l.value;c.push({key:p,value:S,alwaysSet:l.alwaysSet})}return c}).then(c=>Z.mergeObjectSync(r,c)):Z.mergeObjectSync(r,u)}get shape(){return this._def.shape()}strict(e){return y.errToObj,new O({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(n,r)=>{var s,a,i,o;const u=(i=(a=(s=this._def).errorMap)===null||a===void 0?void 0:a.call(s,n,r).message)!==null&&i!==void 0?i:r.defaultError;return n.code==="unrecognized_keys"?{message:(o=y.errToObj(e).message)!==null&&o!==void 0?o:u}:{message:u}}}:{}})}strip(){return new O({...this._def,unknownKeys:"strip"})}passthrough(){return new O({...this._def,unknownKeys:"passthrough"})}extend(e){return new O({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new O({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:v.ZodObject})}setKey(e,n){return this.augment({[e]:n})}catchall(e){return new O({...this._def,catchall:e})}pick(e){const n={};return E.objectKeys(e).forEach(r=>{e[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new O({...this._def,shape:()=>n})}omit(e){const n={};return E.objectKeys(this.shape).forEach(r=>{e[r]||(n[r]=this.shape[r])}),new O({...this._def,shape:()=>n})}deepPartial(){return le(this)}partial(e){const n={};return E.objectKeys(this.shape).forEach(r=>{const s=this.shape[r];e&&!e[r]?n[r]=s:n[r]=s.optional()}),new O({...this._def,shape:()=>n})}required(e){const n={};return E.objectKeys(this.shape).forEach(r=>{if(e&&!e[r])n[r]=this.shape[r];else{let a=this.shape[r];for(;a instanceof q;)a=a._def.innerType;n[r]=a}}),new O({...this._def,shape:()=>n})}keyof(){return xn(E.objectKeys(this.shape))}}O.create=(t,e)=>new O({shape:()=>t,unknownKeys:"strip",catchall:X.create(),typeName:v.ZodObject,...x(e)});O.strictCreate=(t,e)=>new O({shape:()=>t,unknownKeys:"strict",catchall:X.create(),typeName:v.ZodObject,...x(e)});O.lazycreate=(t,e)=>new O({shape:t,unknownKeys:"strip",catchall:X.create(),typeName:v.ZodObject,...x(e)});class Re extends T{_parse(e){const{ctx:n}=this._processInputParams(e),r=this._def.options;function s(a){for(const o of a)if(o.result.status==="valid")return o.result;for(const o of a)if(o.result.status==="dirty")return n.common.issues.push(...o.ctx.common.issues),o.result;const i=a.map(o=>new M(o.ctx.common.issues));return h(n,{code:f.invalid_union,unionErrors:i}),b}if(n.common.async)return Promise.all(r.map(async a=>{const i={...n,common:{...n.common,issues:[]},parent:null};return{result:await a._parseAsync({data:n.data,path:n.path,parent:i}),ctx:i}})).then(s);{let a;const i=[];for(const u of r){const c={...n,common:{...n.common,issues:[]},parent:null},l=u._parseSync({data:n.data,path:n.path,parent:c});if(l.status==="valid")return l;l.status==="dirty"&&!a&&(a={result:l,ctx:c}),c.common.issues.length&&i.push(c.common.issues)}if(a)return n.common.issues.push(...a.ctx.common.issues),a.result;const o=i.map(u=>new M(u));return h(n,{code:f.invalid_union,unionErrors:o}),b}}get options(){return this._def.options}}Re.create=(t,e)=>new Re({options:t,typeName:v.ZodUnion,...x(e)});const K=t=>t instanceof Ce?K(t.schema):t instanceof $?K(t.innerType()):t instanceof Ne?[t.value]:t instanceof te?t.options:t instanceof je?E.objectValues(t.enum):t instanceof Pe?K(t._def.innerType):t instanceof Ee?[void 0]:t instanceof Se?[null]:t instanceof q?[void 0,...K(t.unwrap())]:t instanceof ne?[null,...K(t.unwrap())]:t instanceof St||t instanceof Ie?K(t.unwrap()):t instanceof Ze?K(t._def.innerType):[];class st extends T{_parse(e){const{ctx:n}=this._processInputParams(e);if(n.parsedType!==m.object)return h(n,{code:f.invalid_type,expected:m.object,received:n.parsedType}),b;const r=this.discriminator,s=n.data[r],a=this.optionsMap.get(s);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}):(h(n,{code:f.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),b)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,n,r){const s=new Map;for(const a of n){const i=K(a.shape[e]);if(!i.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const o of i){if(s.has(o))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(o)}`);s.set(o,a)}}return new st({typeName:v.ZodDiscriminatedUnion,discriminator:e,options:n,optionsMap:s,...x(r)})}}function wt(t,e){const n=G(t),r=G(e);if(t===e)return{valid:!0,data:t};if(n===m.object&&r===m.object){const s=E.objectKeys(e),a=E.objectKeys(t).filter(o=>s.indexOf(o)!==-1),i={...t,...e};for(const o of a){const u=wt(t[o],e[o]);if(!u.valid)return{valid:!1};i[o]=u.data}return{valid:!0,data:i}}else if(n===m.array&&r===m.array){if(t.length!==e.length)return{valid:!1};const s=[];for(let a=0;a{if(vt(a)||vt(i))return b;const o=wt(a.value,i.value);return o.valid?((bt(a)||bt(i))&&n.dirty(),{status:n.value,value:o.data}):(h(r,{code:f.invalid_intersection_types}),b)};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,i])=>s(a,i)):s(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}Oe.create=(t,e,n)=>new Oe({left:t,right:e,typeName:v.ZodIntersection,...x(n)});class W extends T{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==m.array)return h(r,{code:f.invalid_type,expected:m.array,received:r.parsedType}),b;if(r.data.lengththis._def.items.length&&(h(r,{code:f.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const a=[...r.data].map((i,o)=>{const u=this._def.items[o]||this._def.rest;return u?u._parse(new H(r,i,r.path,o)):null}).filter(i=>!!i);return r.common.async?Promise.all(a).then(i=>Z.mergeArray(n,i)):Z.mergeArray(n,a)}get items(){return this._def.items}rest(e){return new W({...this._def,rest:e})}}W.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new W({items:t,typeName:v.ZodTuple,rest:null,...x(e)})};class Ae extends T{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==m.object)return h(r,{code:f.invalid_type,expected:m.object,received:r.parsedType}),b;const s=[],a=this._def.keyType,i=this._def.valueType;for(const o in r.data)s.push({key:a._parse(new H(r,o,r.path,o)),value:i._parse(new H(r,r.data[o],r.path,o)),alwaysSet:o in r.data});return r.common.async?Z.mergeObjectAsync(n,s):Z.mergeObjectSync(n,s)}get element(){return this._def.valueType}static create(e,n,r){return n instanceof T?new Ae({keyType:e,valueType:n,typeName:v.ZodRecord,...x(r)}):new Ae({keyType:F.create(),valueType:e,typeName:v.ZodRecord,...x(n)})}}class Ge extends T{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==m.map)return h(r,{code:f.invalid_type,expected:m.map,received:r.parsedType}),b;const s=this._def.keyType,a=this._def.valueType,i=[...r.data.entries()].map(([o,u],c)=>({key:s._parse(new H(r,o,r.path,[c,"key"])),value:a._parse(new H(r,u,r.path,[c,"value"]))}));if(r.common.async){const o=new Map;return Promise.resolve().then(async()=>{for(const u of i){const c=await u.key,l=await u.value;if(c.status==="aborted"||l.status==="aborted")return b;(c.status==="dirty"||l.status==="dirty")&&n.dirty(),o.set(c.value,l.value)}return{status:n.value,value:o}})}else{const o=new Map;for(const u of i){const c=u.key,l=u.value;if(c.status==="aborted"||l.status==="aborted")return b;(c.status==="dirty"||l.status==="dirty")&&n.dirty(),o.set(c.value,l.value)}return{status:n.value,value:o}}}}Ge.create=(t,e,n)=>new Ge({valueType:e,keyType:t,typeName:v.ZodMap,...x(n)});class de extends T{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==m.set)return h(r,{code:f.invalid_type,expected:m.set,received:r.parsedType}),b;const s=this._def;s.minSize!==null&&r.data.sizes.maxSize.value&&(h(r,{code:f.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),n.dirty());const a=this._def.valueType;function i(u){const c=new Set;for(const l of u){if(l.status==="aborted")return b;l.status==="dirty"&&n.dirty(),c.add(l.value)}return{status:n.value,value:c}}const o=[...r.data.values()].map((u,c)=>a._parse(new H(r,u,r.path,c)));return r.common.async?Promise.all(o).then(u=>i(u)):i(o)}min(e,n){return new de({...this._def,minSize:{value:e,message:y.toString(n)}})}max(e,n){return new de({...this._def,maxSize:{value:e,message:y.toString(n)}})}size(e,n){return this.min(e,n).max(e,n)}nonempty(e){return this.min(1,e)}}de.create=(t,e)=>new de({valueType:t,minSize:null,maxSize:null,typeName:v.ZodSet,...x(e)});class he extends T{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:n}=this._processInputParams(e);if(n.parsedType!==m.function)return h(n,{code:f.invalid_type,expected:m.function,received:n.parsedType}),b;function r(o,u){return He({data:o,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,qe(),pe].filter(c=>!!c),issueData:{code:f.invalid_arguments,argumentsError:u}})}function s(o,u){return He({data:o,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,qe(),pe].filter(c=>!!c),issueData:{code:f.invalid_return_type,returnTypeError:u}})}const a={errorMap:n.common.contextualErrorMap},i=n.data;if(this._def.returns instanceof ye){const o=this;return I(async function(...u){const c=new M([]),l=await o._def.args.parseAsync(u,a).catch(R=>{throw c.addIssue(r(u,R)),c}),p=await Reflect.apply(i,this,l);return await o._def.returns._def.type.parseAsync(p,a).catch(R=>{throw c.addIssue(s(p,R)),c})})}else{const o=this;return I(function(...u){const c=o._def.args.safeParse(u,a);if(!c.success)throw new M([r(u,c.error)]);const l=Reflect.apply(i,this,c.data),p=o._def.returns.safeParse(l,a);if(!p.success)throw new M([s(l,p.error)]);return p.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new he({...this._def,args:W.create(e).rest(ie.create())})}returns(e){return new he({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,n,r){return new he({args:e||W.create([]).rest(ie.create()),returns:n||ie.create(),typeName:v.ZodFunction,...x(r)})}}class Ce extends T{get schema(){return this._def.getter()}_parse(e){const{ctx:n}=this._processInputParams(e);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}Ce.create=(t,e)=>new Ce({getter:t,typeName:v.ZodLazy,...x(e)});class Ne extends T{_parse(e){if(e.data!==this._def.value){const n=this._getOrReturnCtx(e);return h(n,{received:n.data,code:f.invalid_literal,expected:this._def.value}),b}return{status:"valid",value:e.data}}get value(){return this._def.value}}Ne.create=(t,e)=>new Ne({value:t,typeName:v.ZodLiteral,...x(e)});function xn(t,e){return new te({values:t,typeName:v.ZodEnum,...x(e)})}class te extends T{constructor(){super(...arguments),be.set(this,void 0)}_parse(e){if(typeof e.data!="string"){const n=this._getOrReturnCtx(e),r=this._def.values;return h(n,{expected:E.joinValues(r),received:n.parsedType,code:f.invalid_type}),b}if(We(this,be)||_n(this,be,new Set(this._def.values)),!We(this,be).has(e.data)){const n=this._getOrReturnCtx(e),r=this._def.values;return h(n,{received:n.data,code:f.invalid_enum_value,options:r}),b}return I(e.data)}get options(){return this._def.values}get enum(){const e={};for(const n of this._def.values)e[n]=n;return e}get Values(){const e={};for(const n of this._def.values)e[n]=n;return e}get Enum(){const e={};for(const n of this._def.values)e[n]=n;return e}extract(e,n=this._def){return te.create(e,{...this._def,...n})}exclude(e,n=this._def){return te.create(this.options.filter(r=>!e.includes(r)),{...this._def,...n})}}be=new WeakMap;te.create=xn;class je extends T{constructor(){super(...arguments),we.set(this,void 0)}_parse(e){const n=E.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==m.string&&r.parsedType!==m.number){const s=E.objectValues(n);return h(r,{expected:E.joinValues(s),received:r.parsedType,code:f.invalid_type}),b}if(We(this,we)||_n(this,we,new Set(E.getValidEnumValues(this._def.values))),!We(this,we).has(e.data)){const s=E.objectValues(n);return h(r,{received:r.data,code:f.invalid_enum_value,options:s}),b}return I(e.data)}get enum(){return this._def.values}}we=new WeakMap;je.create=(t,e)=>new je({values:t,typeName:v.ZodNativeEnum,...x(e)});class ye extends T{unwrap(){return this._def.type}_parse(e){const{ctx:n}=this._processInputParams(e);if(n.parsedType!==m.promise&&n.common.async===!1)return h(n,{code:f.invalid_type,expected:m.promise,received:n.parsedType}),b;const r=n.parsedType===m.promise?n.data:Promise.resolve(n.data);return I(r.then(s=>this._def.type.parseAsync(s,{path:n.path,errorMap:n.common.contextualErrorMap})))}}ye.create=(t,e)=>new ye({type:t,typeName:v.ZodPromise,...x(e)});class $ extends T{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===v.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:n,ctx:r}=this._processInputParams(e),s=this._def.effect||null,a={addIssue:i=>{h(r,i),i.fatal?n.abort():n.dirty()},get path(){return r.path}};if(a.addIssue=a.addIssue.bind(a),s.type==="preprocess"){const i=s.transform(r.data,a);if(r.common.async)return Promise.resolve(i).then(async o=>{if(n.value==="aborted")return b;const u=await this._def.schema._parseAsync({data:o,path:r.path,parent:r});return u.status==="aborted"?b:u.status==="dirty"||n.value==="dirty"?fe(u.value):u});{if(n.value==="aborted")return b;const o=this._def.schema._parseSync({data:i,path:r.path,parent:r});return o.status==="aborted"?b:o.status==="dirty"||n.value==="dirty"?fe(o.value):o}}if(s.type==="refinement"){const i=o=>{const u=s.refinement(o,a);if(r.common.async)return Promise.resolve(u);if(u instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return o};if(r.common.async===!1){const o=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?b:(o.status==="dirty"&&n.dirty(),i(o.value),{status:n.value,value:o.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(o=>o.status==="aborted"?b:(o.status==="dirty"&&n.dirty(),i(o.value).then(()=>({status:n.value,value:o.value}))))}if(s.type==="transform")if(r.common.async===!1){const i=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!ce(i))return i;const o=s.transform(i.value,a);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:o}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(i=>ce(i)?Promise.resolve(s.transform(i.value,a)).then(o=>({status:n.value,value:o})):i);E.assertNever(s)}}$.create=(t,e,n)=>new $({schema:t,typeName:v.ZodEffects,effect:e,...x(n)});$.createWithPreprocess=(t,e,n)=>new $({schema:e,effect:{type:"preprocess",transform:t},typeName:v.ZodEffects,...x(n)});class q extends T{_parse(e){return this._getType(e)===m.undefined?I(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}q.create=(t,e)=>new q({innerType:t,typeName:v.ZodOptional,...x(e)});class ne extends T{_parse(e){return this._getType(e)===m.null?I(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ne.create=(t,e)=>new ne({innerType:t,typeName:v.ZodNullable,...x(e)});class Pe extends T{_parse(e){const{ctx:n}=this._processInputParams(e);let r=n.data;return n.parsedType===m.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Pe.create=(t,e)=>new Pe({innerType:t,typeName:v.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...x(e)});class Ze extends T{_parse(e){const{ctx:n}=this._processInputParams(e),r={...n,common:{...n.common,issues:[]}},s=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return ke(s)?s.then(a=>({status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new M(r.common.issues)},input:r.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new M(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}Ze.create=(t,e)=>new Ze({innerType:t,typeName:v.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...x(e)});class Xe extends T{_parse(e){if(this._getType(e)!==m.nan){const r=this._getOrReturnCtx(e);return h(r,{code:f.invalid_type,expected:m.nan,received:r.parsedType}),b}return{status:"valid",value:e.data}}}Xe.create=t=>new Xe({typeName:v.ZodNaN,...x(t)});const Cs=Symbol("zod_brand");class St extends T{_parse(e){const{ctx:n}=this._processInputParams(e),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class Ue extends T{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);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"?b:a.status==="dirty"?(n.dirty(),fe(a.value)):this._def.out._parseAsync({data:a.value,path:r.path,parent:r})})();{const s=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?b:s.status==="dirty"?(n.dirty(),{status:"dirty",value:s.value}):this._def.out._parseSync({data:s.value,path:r.path,parent:r})}}static create(e,n){return new Ue({in:e,out:n,typeName:v.ZodPipeline})}}class Ie extends T{_parse(e){const n=this._def.innerType._parse(e),r=s=>(ce(s)&&(s.value=Object.freeze(s.value)),s);return ke(n)?n.then(s=>r(s)):r(n)}unwrap(){return this._def.innerType}}Ie.create=(t,e)=>new Ie({innerType:t,typeName:v.ZodReadonly,...x(e)});function kn(t,e={},n){return t?me.create().superRefine((r,s)=>{var a,i;if(!t(r)){const o=typeof e=="function"?e(r):typeof e=="string"?{message:e}:e,u=(i=(a=o.fatal)!==null&&a!==void 0?a:n)!==null&&i!==void 0?i:!0,c=typeof o=="string"?{message:o}:o;s.addIssue({code:"custom",...c,fatal:u})}}):me.create()}const Ns={object:O.lazycreate};var v;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(v||(v={}));const js=(t,e={message:`Input not instance of ${t.name}`})=>kn(n=>n instanceof t,e),Tn=F.create,En=Q.create,Ps=Xe.create,Zs=ee.create,Sn=Te.create,Is=ue.create,Ls=Je.create,Ds=Ee.create,Us=Se.create,Ms=me.create,Fs=ie.create,Bs=X.create,$s=Ke.create,Vs=B.create,zs=O.create,qs=O.strictCreate,Hs=Re.create,Ws=st.create,Js=Oe.create,Ks=W.create,Gs=Ae.create,Xs=Ge.create,Ys=de.create,Qs=he.create,ea=Ce.create,ta=Ne.create,na=te.create,ra=je.create,sa=ye.create,zt=$.create,aa=q.create,ia=ne.create,oa=$.createWithPreprocess,ca=Ue.create,ua=()=>Tn().optional(),da=()=>En().optional(),la=()=>Sn().optional(),fa={string:t=>F.create({...t,coerce:!0}),number:t=>Q.create({...t,coerce:!0}),boolean:t=>Te.create({...t,coerce:!0}),bigint:t=>ee.create({...t,coerce:!0}),date:t=>ue.create({...t,coerce:!0})},ha=b;var ya=Object.freeze({__proto__:null,defaultErrorMap:pe,setErrorMap:os,getErrorMap:qe,makeIssue:He,EMPTY_PATH:cs,addIssueToContext:h,ParseStatus:Z,INVALID:b,DIRTY:fe,OK:I,isAborted:vt,isDirty:bt,isValid:ce,isAsync:ke,get util(){return E},get objectUtil(){return _t},ZodParsedType:m,getParsedType:G,ZodType:T,datetimeRegex:wn,ZodString:F,ZodNumber:Q,ZodBigInt:ee,ZodBoolean:Te,ZodDate:ue,ZodSymbol:Je,ZodUndefined:Ee,ZodNull:Se,ZodAny:me,ZodUnknown:ie,ZodNever:X,ZodVoid:Ke,ZodArray:B,ZodObject:O,ZodUnion:Re,ZodDiscriminatedUnion:st,ZodIntersection:Oe,ZodTuple:W,ZodRecord:Ae,ZodMap:Ge,ZodSet:de,ZodFunction:he,ZodLazy:Ce,ZodLiteral:Ne,ZodEnum:te,ZodNativeEnum:je,ZodPromise:ye,ZodEffects:$,ZodTransformer:$,ZodOptional:q,ZodNullable:ne,ZodDefault:Pe,ZodCatch:Ze,ZodNaN:Xe,BRAND:Cs,ZodBranded:St,ZodPipeline:Ue,ZodReadonly:Ie,custom:kn,Schema:T,ZodSchema:T,late:Ns,get ZodFirstPartyTypeKind(){return v},coerce:fa,any:Ms,array:Vs,bigint:Zs,boolean:Sn,date:Is,discriminatedUnion:Ws,effect:zt,enum:na,function:Qs,instanceof:js,intersection:Js,lazy:ea,literal:ta,map:Xs,nan:Ps,nativeEnum:ra,never:Bs,null:Us,nullable:ia,number:En,object:zs,oboolean:la,onumber:da,optional:aa,ostring:ua,pipeline:ca,preprocess:oa,promise:sa,record:Gs,set:Ys,strictObject:qs,string:Tn,symbol:Ls,transformer:zt,tuple:Ks,undefined:Ds,union:Hs,unknown:Fs,void:$s,NEVER:ha,ZodIssueCode:f,quotelessJson:is,ZodError:M});export{N as a,ma as t,ya as z}; diff --git a/dist/assets/index-Ch9EIl61.css b/dist/assets/index-Ch9EIl61.css new file mode 100644 index 0000000..3e0e35d --- /dev/null +++ b/dist/assets/index-Ch9EIl61.css @@ -0,0 +1 @@ +@font-face{font-family:Gilroy-Regular;src:local("Gilroy-Regular"),url(../fonts/Gilroy-Regular.woff2) format("woff2");font-weight:400}@font-face{font-family:Gilroy-Medium;src:local("Gilroy-Medium"),url(../fonts/Gilroy-Medium.woff2) format("woff2");font-weight:500}@font-face{font-family:Gilroy-Semibold;src:local("Gilroy-Semibold"),url(../fonts/Gilroy-Semibold.woff2) format("woff2");font-weight:600}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}*{box-sizing:border-box}body{font-family:Gilroy-Medium;--tw-bg-opacity: 1;background-color:rgb(249 249 250 / var(--tw-bg-opacity, 1))}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.inset-x-0{left:0;right:0}.inset-y-0{top:0;bottom:0}.-bottom-5{bottom:-1.25rem}.-bottom-6{bottom:-1.5rem}.-left-12{left:-3rem}.-right-12{right:-3rem}.-top-6{top:-1.5rem}.bottom-0{bottom:0}.left-0{left:0}.left-1\/3{left:33.333333%}.left-2\.5{left:.625rem}.left-\[20\%\]{left:20%}.right-0{right:0}.right-4{right:1rem}.right-\[17\%\]{right:17%}.top-0{top:0}.top-2{top:.5rem}.top-2\.5{top:.625rem}.top-4{top:1rem}.top-8{top:2rem}.top-\[55\%\]{top:55%}.-z-10,.-z-\[10\]{z-index:-10}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.z-\[3\]{z-index:3}.z-\[5\]{z-index:5}.mx-5{margin-left:1.25rem;margin-right:1.25rem}.mx-auto{margin-left:auto;margin-right:auto}.my-10{margin-top:2.5rem;margin-bottom:2.5rem}.my-16{margin-top:4rem;margin-bottom:4rem}.my-20{margin-top:5rem;margin-bottom:5rem}.my-8{margin-top:2rem;margin-bottom:2rem}.mb-10{margin-bottom:2.5rem}.mb-2{margin-bottom:.5rem}.mb-20{margin-bottom:5rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.mb-\[120px\]{margin-bottom:120px}.ml-3{margin-left:.75rem}.mt-10{margin-top:2.5rem}.mt-16{margin-top:4rem}.mt-2{margin-top:.5rem}.mt-20{margin-top:5rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-8{margin-top:2rem}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.size-10{width:2.5rem;height:2.5rem}.size-12{width:3rem;height:3rem}.size-16{width:4rem;height:4rem}.size-5{width:1.25rem;height:1.25rem}.size-8{width:2rem;height:2rem}.size-\[184px\]{width:184px;height:184px}.size-full{width:100%;height:100%}.h-0\.5{height:.125rem}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-20{height:5rem}.h-40{height:10rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\[124px\]{height:124px}.h-\[160px\]{height:160px}.h-\[216px\]{height:216px}.h-\[296px\]{height:296px}.h-\[300px\]{height:300px}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.min-h-\[60px\]{min-height:60px}.min-h-screen{min-height:100vh}.w-0{width:0px}.w-1\/2{width:50%}.w-3\/4{width:75%}.w-32{width:8rem}.w-4{width:1rem}.w-9{width:2.25rem}.w-\[160px\]{width:160px}.w-\[18px\]{width:18px}.w-\[20\%\]{width:20%}.w-\[220px\]{width:220px}.w-\[300px\]{width:300px}.w-\[320px\]{width:320px}.w-\[75\%\]{width:75%}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.max-w-\[1240px\]{max-width:1240px}.max-w-\[360px\]{max-width:360px}.max-w-\[444px\]{max-width:444px}.max-w-\[808px\]{max-width:808px}.max-w-\[828px\]{max-width:828px}.flex-\[0_0_184px\]{flex:0 0 184px}.flex-\[0_0_288px\]{flex:0 0 288px}.flex-\[0_0_300px\]{flex:0 0 300px}.flex-\[0_0_50\%\]{flex:0 0 50%}.flex-auto{flex:1 1 auto}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.\!cursor-pointer{cursor:pointer!important}.cursor-pointer{cursor:pointer}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0{gap:0px}.gap-1{gap:.25rem}.gap-10{gap:2.5rem}.gap-16{gap:4rem}.gap-2{gap:.5rem}.gap-20{gap:5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.25rem * var(--tw-space-x-reverse));margin-left:calc(1.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.whitespace-nowrap{white-space:nowrap}.rounded-\[2px\]{border-radius:2px}.rounded-\[8px\]{border-radius:8px}.rounded-full{border-radius:9999px}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-b-\[2px\]{border-bottom-right-radius:2px;border-bottom-left-radius:2px}.rounded-t-\[4px\]{border-top-left-radius:4px;border-top-right-radius:4px}.border{border-width:1px}.border-\[2px\]{border-width:2px}.border-b{border-bottom-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-\[\#BA1A1A\]{--tw-border-opacity: 1;border-color:rgb(186 26 26 / var(--tw-border-opacity, 1))}.border-on_surface{--tw-border-opacity: 1;border-color:rgb(44 40 40 / var(--tw-border-opacity, 1))}.border-outline{--tw-border-opacity: 1;border-color:rgb(161 167 178 / var(--tw-border-opacity, 1))}.border-primary{--tw-border-opacity: 1;border-color:rgb(153 16 29 / var(--tw-border-opacity, 1))}.border-primary_outline_reverse{--tw-border-opacity: 1;border-color:rgb(238 101 114 / var(--tw-border-opacity, 1))}.border-slate-500\/20{border-color:#64748b33}.border-white\/50{border-color:#ffffff80}.\!bg-\[\#F5F4F4\]{--tw-bg-opacity: 1 !important;background-color:rgb(245 244 244 / var(--tw-bg-opacity, 1))!important}.\!bg-white{--tw-bg-opacity: 1 !important;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))!important}.bg-\[\#D0D3D8\]{--tw-bg-opacity: 1;background-color:rgb(208 211 216 / var(--tw-bg-opacity, 1))}.bg-\[\#D9D9D9\]{--tw-bg-opacity: 1;background-color:rgb(217 217 217 / var(--tw-bg-opacity, 1))}.bg-\[\#FDEDEE\]{--tw-bg-opacity: 1;background-color:rgb(253 237 238 / var(--tw-bg-opacity, 1))}.bg-background{--tw-bg-opacity: 1;background-color:rgb(249 249 250 / var(--tw-bg-opacity, 1))}.bg-bg_surface_container{--tw-bg-opacity: 1;background-color:rgb(238 237 244 / var(--tw-bg-opacity, 1))}.bg-black\/80{background-color:#000c}.bg-primary,.bg-primary_09{--tw-bg-opacity: 1;background-color:rgb(153 16 29 / var(--tw-bg-opacity, 1))}.bg-reverse_primary{--tw-bg-opacity: 1;background-color:rgb(246 178 184 / var(--tw-bg-opacity, 1))}.bg-secondary_container{--tw-bg-opacity: 1;background-color:rgb(221 203 205 / var(--tw-bg-opacity, 1))}.bg-surface_container{--tw-bg-opacity: 1;background-color:rgb(240 239 239 / var(--tw-bg-opacity, 1))}.bg-surface_high{--tw-bg-opacity: 1;background-color:rgb(232 231 239 / var(--tw-bg-opacity, 1))}.bg-teritary{--tw-bg-opacity: 1;background-color:rgb(241 112 13 / var(--tw-bg-opacity, 1))}.bg-teritary_04{--tw-bg-opacity: 1;background-color:rgb(255 206 127 / var(--tw-bg-opacity, 1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-opacity-0{--tw-bg-opacity: 0}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-primary{--tw-gradient-from: #99101D var(--tw-gradient-from-position);--tw-gradient-to: rgb(153 16 29 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-25\%{--tw-gradient-from-position: 25%}.to-primary\/20{--tw-gradient-to: rgb(153 16 29 / .2) var(--tw-gradient-to-position)}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-0{padding-left:0;padding-right:0}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0{padding-top:0;padding-bottom:0}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-20{padding-bottom:5rem}.pb-\[120px\]{padding-bottom:120px}.pl-8{padding-left:2rem}.pt-10{padding-top:2.5rem}.pt-16{padding-top:4rem}.text-left{text-align:left}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-\[0\.8rem\]{font-size:.8rem}.text-\[18px\]{font-size:18px}.text-\[32px\]{font-size:32px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.not-italic{font-style:normal}.leading-\[130\%\]{line-height:130%}.leading-\[140\%\]{line-height:140%}.leading-none{line-height:1}.\!text-on_primary{--tw-text-opacity: 1 !important;color:rgb(255 255 255 / var(--tw-text-opacity, 1))!important}.\!text-primary_09{--tw-text-opacity: 1 !important;color:rgb(153 16 29 / var(--tw-text-opacity, 1))!important}.text-\[\#171717\]{--tw-text-opacity: 1;color:rgb(23 23 23 / var(--tw-text-opacity, 1))}.text-\[\#454545\]{--tw-text-opacity: 1;color:rgb(69 69 69 / var(--tw-text-opacity, 1))}.text-\[\#BA1A1A\]{--tw-text-opacity: 1;color:rgb(186 26 26 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-on_primary{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-on_secondary_container{--tw-text-opacity: 1;color:rgb(29 38 55 / var(--tw-text-opacity, 1))}.text-on_surface{--tw-text-opacity: 1;color:rgb(44 40 40 / var(--tw-text-opacity, 1))}.text-on_surface_v{--tw-text-opacity: 1;color:rgb(111 100 102 / var(--tw-text-opacity, 1))}.text-on_teritary{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-primary{--tw-text-opacity: 1;color:rgb(153 16 29 / var(--tw-text-opacity, 1))}.text-primary_03{--tw-text-opacity: 1;color:rgb(246 178 184 / var(--tw-text-opacity, 1))}.text-primary_09{--tw-text-opacity: 1;color:rgb(153 16 29 / var(--tw-text-opacity, 1))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.text-teritary_04{--tw-text-opacity: 1;color:rgb(255 206 127 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.opacity-0{opacity:0}.opacity-70{opacity:.7}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-offset-background{--tw-ring-offset-color: #F9F9FA}.drop-shadow-md{--tw-drop-shadow: drop-shadow(0 4px 3px rgb(0 0 0 / .07)) drop-shadow(0 2px 2px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-sm{--tw-drop-shadow: drop-shadow(0 1px 1px rgb(0 0 0 / .05));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.duration-300{animation-duration:.3s}.duration-500{animation-duration:.5s}.ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}.normal{font-family:Gilroy-Regular;font-weight:400}.semibold{font-family:Gilroy-Semibold;font-weight:600}.h1{font-size:28px;font-weight:500;line-height:130%}.h2{font-size:1.5rem;line-height:2rem;--tw-text-opacity: 1;color:rgb(23 23 23 / var(--tw-text-opacity, 1))}@media (min-width: 768px){.h2{font-size:1.875rem;line-height:2.25rem}}.p{font-size:1rem;line-height:1.5rem;--tw-text-opacity: 1;color:rgb(111 100 102 / var(--tw-text-opacity, 1))}@media (min-width: 768px){.p{font-size:1.125rem;line-height:1.75rem}}.text-18{font-size:1.125rem;line-height:1.75rem;--tw-text-opacity: 1;color:rgb(111 100 102 / var(--tw-text-opacity, 1));font-family:Gilroy-Regular;font-weight:400}.dot{height:.25rem;width:1.25rem;cursor:pointer;border-radius:2px;--tw-bg-opacity: 1;background-color:rgb(111 100 102 / var(--tw-bg-opacity, 1))}.dot-active{height:.25rem;width:1.25rem;border-radius:2px;--tw-bg-opacity: 1;background-color:rgb(44 40 40 / var(--tw-bg-opacity, 1))}.nav-btn{display:flex;width:3rem;height:3rem;align-items:center;justify-content:center;border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(217 217 217 / var(--tw-bg-opacity, 1))}.progress-circle{z-index:10;width:3.5rem;height:3.5rem;border-radius:9999px;font-size:1.5rem;line-height:2rem;--tw-text-opacity: 1;color:rgb(95 102 116 / var(--tw-text-opacity, 1))}.input{display:flex;height:3.5rem;border-radius:2px;border-width:1px;background-color:transparent;padding:1rem;font-size:1rem;line-height:1.5rem;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(161 167 178 / var(--tw-ring-opacity, 1));transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;font-family:Gilroy-Regular;font-weight:400}.input::file-selector-button{width:-moz-fit-content;width:fit-content;border-width:0px;--tw-bg-opacity: 1;background-color:rgb(221 203 205 / var(--tw-bg-opacity, 1));font-size:.875rem;line-height:1.25rem;font-weight:500;--tw-text-opacity: 1;color:rgb(29 38 55 / var(--tw-text-opacity, 1));outline:2px solid transparent;outline-offset:2px}.input:hover{--tw-ring-opacity: 1;--tw-ring-color: rgb(44 40 40 / var(--tw-ring-opacity, 1))}.input:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(153 16 29 / var(--tw-ring-opacity, 1))}.input:focus-visible{outline:2px solid transparent;outline-offset:2px}.input:disabled{cursor:not-allowed;opacity:.5}.file\:w-fit::file-selector-button{width:-moz-fit-content;width:fit-content}.file\:border-0::file-selector-button{border-width:0px}.file\:bg-secondary_container::file-selector-button{--tw-bg-opacity: 1;background-color:rgb(221 203 205 / var(--tw-bg-opacity, 1))}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\:font-medium::file-selector-button{font-weight:500}.file\:text-on_secondary_container::file-selector-button{--tw-text-opacity: 1;color:rgb(29 38 55 / var(--tw-text-opacity, 1))}.file\:outline-none::file-selector-button{outline:2px solid transparent;outline-offset:2px}.before\:absolute:before{content:var(--tw-content);position:absolute}.before\:-left-3:before{content:var(--tw-content);left:-.75rem}.before\:-top-3:before{content:var(--tw-content);top:-.75rem}.before\:size-10:before{content:var(--tw-content);width:2.5rem;height:2.5rem}.before\:scale-0:before{content:var(--tw-content);--tw-scale-x: 0;--tw-scale-y: 0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.before\:rounded-full:before{content:var(--tw-content);border-radius:9999px}.before\:bg-on_surface\/\[8\%\]:before{content:var(--tw-content);background-color:#2c282814}.before\:transition-all:before{content:var(--tw-content);transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.after\:size-\[9px\]:after{content:var(--tw-content);width:9px;height:9px}.after\:rounded-full:after{content:var(--tw-content);border-radius:9999px}.after\:bg-primary:after{content:var(--tw-content);--tw-bg-opacity: 1;background-color:rgb(153 16 29 / var(--tw-bg-opacity, 1))}.after\:bg-opacity-0:after{content:var(--tw-content);--tw-bg-opacity: 0}.hover\:border-on_surface:hover{--tw-border-opacity: 1;border-color:rgb(44 40 40 / var(--tw-border-opacity, 1))}.hover\:border-white:hover{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity, 1))}.hover\:bg-primary\/90:hover{background-color:#99101de6}.hover\:bg-reverse_primary\/90:hover{background-color:#f6b2b8e6}.hover\:bg-secondary_container\/80:hover{background-color:#ddcbcdcc}.hover\:bg-teritary\/90:hover{background-color:#f1700de6}.hover\:bg-teritary_surface_container:hover{--tw-bg-opacity: 1;background-color:rgb(255 243 224 / var(--tw-bg-opacity, 1))}.hover\:bg-white\/90:hover{background-color:#ffffffe6}.hover\:opacity-100:hover{opacity:1}.hover\:before\:scale-100:hover:before{content:var(--tw-content);--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.focus\:border-\[3px\]:focus{border-width:3px}.focus\:border-primary:focus{--tw-border-opacity: 1;border-color:rgb(153 16 29 / var(--tw-border-opacity, 1))}.focus\:border-white:focus{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity, 1))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-1:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.peer:disabled~.peer-disabled\:cursor-not-allowed{cursor:not-allowed}.peer:disabled~.peer-disabled\:opacity-70{opacity:.7}.data-\[state\=open\]\:bg-secondary[data-state=open]{--tw-bg-opacity: 1;background-color:rgb(73 95 137 / var(--tw-bg-opacity, 1))}.data-\[state\=closed\]\:duration-300[data-state=closed]{transition-duration:.3s}.data-\[state\=open\]\:duration-500[data-state=open]{transition-duration:.5s}.data-\[state\=open\]\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\[state\=closed\]\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\[state\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.data-\[state\=closed\]\:slide-out-to-bottom[data-state=closed]{--tw-exit-translate-y: 100%}.data-\[state\=closed\]\:slide-out-to-left[data-state=closed]{--tw-exit-translate-x: -100%}.data-\[state\=closed\]\:slide-out-to-right[data-state=closed]{--tw-exit-translate-x: 100%}.data-\[state\=closed\]\:slide-out-to-top[data-state=closed]{--tw-exit-translate-y: -100%}.data-\[state\=open\]\:slide-in-from-bottom[data-state=open]{--tw-enter-translate-y: 100%}.data-\[state\=open\]\:slide-in-from-left[data-state=open]{--tw-enter-translate-x: -100%}.data-\[state\=open\]\:slide-in-from-right[data-state=open]{--tw-enter-translate-x: 100%}.data-\[state\=open\]\:slide-in-from-top[data-state=open]{--tw-enter-translate-y: -100%}.data-\[state\=closed\]\:duration-300[data-state=closed]{animation-duration:.3s}.data-\[state\=open\]\:duration-500[data-state=open]{animation-duration:.5s}@media (min-width: 640px){.sm\:h-\[350px\]{height:350px}.sm\:max-w-sm{max-width:24rem}.sm\:flex-\[0_0_600px\]{flex:0 0 600px}.sm\:flex-row{flex-direction:row}.sm\:justify-end{justify-content:flex-end}.sm\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:text-left{text-align:left}.sm\:text-center{text-align:center}}@media (min-width: 768px){.md\:left-1\/2{left:50%}.md\:mx-auto{margin-left:auto;margin-right:auto}.md\:my-20{margin-top:5rem;margin-bottom:5rem}.md\:mb-3{margin-bottom:.75rem}.md\:mb-\[120px\]{margin-bottom:120px}.md\:mt-20{margin-top:5rem}.md\:mt-6{margin-top:1.5rem}.md\:size-\[84px\]{width:84px;height:84px}.md\:size-auto{width:auto;height:auto}.md\:h-\[224px\]{height:224px}.md\:h-\[38px\]{height:38px}.md\:h-\[400px\]{height:400px}.md\:w-1{width:.25rem}.md\:w-fit{width:-moz-fit-content;width:fit-content}.md\:w-full{width:100%}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:items-end{align-items:flex-end}.md\:justify-between{justify-content:space-between}.md\:p-10{padding:2.5rem}.md\:px-6{padding-left:1.5rem;padding-right:1.5rem}.md\:px-8{padding-left:2rem;padding-right:2rem}.md\:py-20{padding-top:5rem;padding-bottom:5rem}.md\:py-6{padding-top:1.5rem;padding-bottom:1.5rem}.md\:py-\[160px\]{padding-top:160px;padding-bottom:160px}.md\:pt-20{padding-top:5rem}.md\:text-2xl{font-size:1.5rem;line-height:2rem}.md\:text-5xl{font-size:3rem;line-height:1}.md\:text-base{font-size:1rem;line-height:1.5rem}.md\:text-lg{font-size:1.125rem;line-height:1.75rem}.md\:text-sm{font-size:.875rem;line-height:1.25rem}.md\:text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width: 1024px){.lg\:mb-8{margin-bottom:2rem}.lg\:flex{display:flex}.lg\:hidden{display:none}.lg\:h-\[600px\]{height:600px}.lg\:h-\[88px\]{height:88px}.lg\:max-h-\[600px\]{max-height:600px}.lg\:min-h-\[320px\]{min-height:320px}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:flex-row{flex-direction:row}.lg\:gap-12{gap:3rem}.lg\:gap-6{gap:1.5rem}}@media (min-width: 1280px){.xl\:mb-8{margin-bottom:2rem}.xl\:hidden{display:none}.xl\:w-\[288px\]{width:288px}.xl\:w-\[392px\]{width:392px}}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:size-4 svg{width:1rem;height:1rem}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0} diff --git a/dist/assets/radio-group-CIa7-cps.js b/dist/assets/radio-group-DgXw47SH.js similarity index 92% rename from dist/assets/radio-group-CIa7-cps.js rename to dist/assets/radio-group-DgXw47SH.js index cb2d615..279806d 100644 --- a/dist/assets/radio-group-CIa7-cps.js +++ b/dist/assets/radio-group-DgXw47SH.js @@ -1 +1 @@ -import{D as N,E as F,j as d,S as L,G as K,I as fe,P as A,J as y,K as pe,M as me,N as ve,f as U}from"./ui-library-BGb6MWUm.js";import{d as w,a as s}from"./react-vendor-OnsDvTPE.js";function Re(e){const o=e+"CollectionProvider",[t,n]=N(o),[a,i]=t(o,{collectionRef:{current:null},itemMap:new Map}),p=c=>{const{scope:r,children:l}=c,m=w.useRef(null),v=w.useRef(new Map).current;return d.jsx(a,{scope:r,itemMap:v,collectionRef:m,children:l})};p.displayName=o;const C=e+"CollectionSlot",f=w.forwardRef((c,r)=>{const{scope:l,children:m}=c,v=i(C,l),I=F(r,v.collectionRef);return d.jsx(L,{ref:I,children:m})});f.displayName=C;const u=e+"CollectionItemSlot",g="data-radix-collection-item",R=w.forwardRef((c,r)=>{const{scope:l,children:m,...v}=c,I=w.useRef(null),h=F(r,I),S=i(u,l);return w.useEffect(()=>(S.itemMap.set(I,{ref:I,...v}),()=>void S.itemMap.delete(I))),d.jsx(L,{[g]:"",ref:h,children:m})});R.displayName=u;function b(c){const r=i(e+"CollectionConsumer",c);return w.useCallback(()=>{const m=r.collectionRef.current;if(!m)return[];const v=Array.from(m.querySelectorAll(`[${g}]`));return Array.from(r.itemMap.values()).sort((S,_)=>v.indexOf(S.ref.current)-v.indexOf(_.ref.current))},[r.collectionRef,r.itemMap])}return[{Provider:p,Slot:f,ItemSlot:R},b,n]}var be=s.createContext(void 0);function V(e){const o=s.useContext(be);return e||o||"ltr"}var G="rovingFocusGroup.onEntryFocus",Ie={bubbles:!1,cancelable:!0},P="RovingFocusGroup",[k,B,Ce]=Re(P),[ge,q]=N(P,[Ce]),[xe,ye]=ge(P),z=s.forwardRef((e,o)=>d.jsx(k.Provider,{scope:e.__scopeRovingFocusGroup,children:d.jsx(k.Slot,{scope:e.__scopeRovingFocusGroup,children:d.jsx(Ee,{...e,ref:o})})}));z.displayName=P;var Ee=s.forwardRef((e,o)=>{const{__scopeRovingFocusGroup:t,orientation:n,loop:a=!1,dir:i,currentTabStopId:p,defaultCurrentTabStopId:C,onCurrentTabStopIdChange:f,onEntryFocus:u,preventScrollOnEntryFocus:g=!1,...R}=e,b=s.useRef(null),c=F(o,b),r=V(i),[l=null,m]=K({prop:p,defaultProp:C,onChange:f}),[v,I]=s.useState(!1),h=fe(u),S=B(t),_=s.useRef(!1),[ae,j]=s.useState(0);return s.useEffect(()=>{const x=b.current;if(x)return x.addEventListener(G,h),()=>x.removeEventListener(G,h)},[h]),d.jsx(xe,{scope:t,orientation:n,dir:r,loop:a,currentTabStopId:l,onItemFocus:s.useCallback(x=>m(x),[m]),onItemShiftTab:s.useCallback(()=>I(!0),[]),onFocusableItemAdd:s.useCallback(()=>j(x=>x+1),[]),onFocusableItemRemove:s.useCallback(()=>j(x=>x-1),[]),children:d.jsx(A.div,{tabIndex:v||ae===0?-1:0,"data-orientation":n,...R,ref:c,style:{outline:"none",...e.style},onMouseDown:y(e.onMouseDown,()=>{_.current=!0}),onFocus:y(e.onFocus,x=>{const ie=!_.current;if(x.target===x.currentTarget&&ie&&!v){const O=new CustomEvent(G,Ie);if(x.currentTarget.dispatchEvent(O),!O.defaultPrevented){const T=S().filter(E=>E.focusable),ue=T.find(E=>E.active),de=T.find(E=>E.id===l),le=[ue,de,...T].filter(Boolean).map(E=>E.ref.current);H(le,g)}}_.current=!1}),onBlur:y(e.onBlur,()=>I(!1))})})}),Y="RovingFocusGroupItem",$=s.forwardRef((e,o)=>{const{__scopeRovingFocusGroup:t,focusable:n=!0,active:a=!1,tabStopId:i,...p}=e,C=pe(),f=i||C,u=ye(Y,t),g=u.currentTabStopId===f,R=B(t),{onFocusableItemAdd:b,onFocusableItemRemove:c}=u;return s.useEffect(()=>{if(n)return b(),()=>c()},[n,b,c]),d.jsx(k.ItemSlot,{scope:t,id:f,focusable:n,active:a,children:d.jsx(A.span,{tabIndex:g?0:-1,"data-orientation":u.orientation,...p,ref:o,onMouseDown:y(e.onMouseDown,r=>{n?u.onItemFocus(f):r.preventDefault()}),onFocus:y(e.onFocus,()=>u.onItemFocus(f)),onKeyDown:y(e.onKeyDown,r=>{if(r.key==="Tab"&&r.shiftKey){u.onItemShiftTab();return}if(r.target!==r.currentTarget)return;const l=Se(r,u.orientation,u.dir);if(l!==void 0){if(r.metaKey||r.ctrlKey||r.altKey||r.shiftKey)return;r.preventDefault();let v=R().filter(I=>I.focusable).map(I=>I.ref.current);if(l==="last")v.reverse();else if(l==="prev"||l==="next"){l==="prev"&&v.reverse();const I=v.indexOf(r.currentTarget);v=u.loop?_e(v,I+1):v.slice(I+1)}setTimeout(()=>H(v))}})})})});$.displayName=Y;var we={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function he(e,o){return o!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Se(e,o,t){const n=he(e.key,t);if(!(o==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(o==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return we[n]}function H(e,o=!1){const t=document.activeElement;for(const n of e)if(n===t||(n.focus({preventScroll:o}),document.activeElement!==t))return}function _e(e,o){return e.map((t,n)=>e[(o+n)%e.length])}var Fe=z,Ae=$;function Ne(e){const o=s.useRef({value:e,previous:e});return s.useMemo(()=>(o.current.value!==e&&(o.current.previous=o.current.value,o.current.value=e),o.current.previous),[e])}var M="Radio",[Pe,J]=N(M),[Te,Ge]=Pe(M),W=s.forwardRef((e,o)=>{const{__scopeRadio:t,name:n,checked:a=!1,required:i,disabled:p,value:C="on",onCheck:f,form:u,...g}=e,[R,b]=s.useState(null),c=F(o,m=>b(m)),r=s.useRef(!1),l=R?u||!!R.closest("form"):!0;return d.jsxs(Te,{scope:t,checked:a,disabled:p,children:[d.jsx(A.button,{type:"button",role:"radio","aria-checked":a,"data-state":Z(a),"data-disabled":p?"":void 0,disabled:p,value:C,...g,ref:c,onClick:y(e.onClick,m=>{a||f==null||f(),l&&(r.current=m.isPropagationStopped(),r.current||m.stopPropagation())})}),l&&d.jsx(ke,{control:R,bubbles:!r.current,name:n,value:C,checked:a,required:i,disabled:p,form:u,style:{transform:"translateX(-100%)"}})]})});W.displayName=M;var X="RadioIndicator",Q=s.forwardRef((e,o)=>{const{__scopeRadio:t,forceMount:n,...a}=e,i=Ge(X,t);return d.jsx(me,{present:n||i.checked,children:d.jsx(A.span,{"data-state":Z(i.checked),"data-disabled":i.disabled?"":void 0,...a,ref:o})})});Q.displayName=X;var ke=e=>{const{control:o,checked:t,bubbles:n=!0,...a}=e,i=s.useRef(null),p=Ne(t),C=ve(o);return s.useEffect(()=>{const f=i.current,u=window.HTMLInputElement.prototype,R=Object.getOwnPropertyDescriptor(u,"checked").set;if(p!==t&&R){const b=new Event("click",{bubbles:n});R.call(f,t),f.dispatchEvent(b)}},[p,t,n]),d.jsx("input",{type:"radio","aria-hidden":!0,defaultChecked:t,...a,tabIndex:-1,ref:i,style:{...e.style,...C,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function Z(e){return e?"checked":"unchecked"}var Me=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],D="RadioGroup",[De,Ye]=N(D,[q,J]),ee=q(),oe=J(),[je,Oe]=De(D),te=s.forwardRef((e,o)=>{const{__scopeRadioGroup:t,name:n,defaultValue:a,value:i,required:p=!1,disabled:C=!1,orientation:f,dir:u,loop:g=!0,onValueChange:R,...b}=e,c=ee(t),r=V(u),[l,m]=K({prop:i,defaultProp:a,onChange:R});return d.jsx(je,{scope:t,name:n,required:p,disabled:C,value:l,onValueChange:m,children:d.jsx(Fe,{asChild:!0,...c,orientation:f,dir:r,loop:g,children:d.jsx(A.div,{role:"radiogroup","aria-required":p,"aria-orientation":f,"data-disabled":C?"":void 0,dir:r,...b,ref:o})})})});te.displayName=D;var re="RadioGroupItem",ne=s.forwardRef((e,o)=>{const{__scopeRadioGroup:t,disabled:n,...a}=e,i=Oe(re,t),p=i.disabled||n,C=ee(t),f=oe(t),u=s.useRef(null),g=F(o,u),R=i.value===a.value,b=s.useRef(!1);return s.useEffect(()=>{const c=l=>{Me.includes(l.key)&&(b.current=!0)},r=()=>b.current=!1;return document.addEventListener("keydown",c),document.addEventListener("keyup",r),()=>{document.removeEventListener("keydown",c),document.removeEventListener("keyup",r)}},[]),d.jsx(Ae,{asChild:!0,...C,focusable:!p,active:R,children:d.jsx(W,{disabled:p,required:i.required,checked:R,...f,...a,name:i.name,ref:g,onCheck:()=>i.onValueChange(a.value),onKeyDown:y(c=>{c.key==="Enter"&&c.preventDefault()}),onFocus:y(a.onFocus,()=>{var c;b.current&&((c=u.current)==null||c.click())})})})});ne.displayName=re;var Le="RadioGroupIndicator",Ke=s.forwardRef((e,o)=>{const{__scopeRadioGroup:t,...n}=e,a=oe(t);return d.jsx(Q,{...a,...n,ref:o})});Ke.displayName=Le;var se=te,ce=ne;const Ue=s.forwardRef(({className:e,...o},t)=>d.jsx(se,{className:U("grid gap-2",e),...o,ref:t}));Ue.displayName=se.displayName;const Ve=s.forwardRef(({className:e,...o},t)=>d.jsx(ce,{ref:t,className:U(o.checked?"border-primary after:bg-opacity-1":"border-on_surface bg-transparent after:bg-opacity-0","size-5 rounded-full border-[2px] after:size-[9px] after:bg-primary before:scale-0 hover:before:scale-100 before:size-10 before:rounded-full before:transition-all before:absolute before:-top-3 before:-left-3 before:bg-on_surface/[8%] duration-300 after:rounded-full flex relative items-center justify-center text-primary focus:outline-none focus-visible:ring-1 focus-visible:ring-ring transition-all disabled:cursor-not-allowed disabled:opacity-50",e),...o}));Ve.displayName=ce.displayName;export{Ue as R,Ve as a}; +import{G as N,I as F,j as d,S as L,J as K,K as fe,P as A,M as y,N as pe,O as me,Q as ve,f as U}from"./ui-library-rbj8Yi4H.js";import{d as w,a as s}from"./react-vendor-OnsDvTPE.js";function Re(e){const o=e+"CollectionProvider",[t,n]=N(o),[a,i]=t(o,{collectionRef:{current:null},itemMap:new Map}),p=c=>{const{scope:r,children:l}=c,m=w.useRef(null),v=w.useRef(new Map).current;return d.jsx(a,{scope:r,itemMap:v,collectionRef:m,children:l})};p.displayName=o;const C=e+"CollectionSlot",f=w.forwardRef((c,r)=>{const{scope:l,children:m}=c,v=i(C,l),I=F(r,v.collectionRef);return d.jsx(L,{ref:I,children:m})});f.displayName=C;const u=e+"CollectionItemSlot",g="data-radix-collection-item",R=w.forwardRef((c,r)=>{const{scope:l,children:m,...v}=c,I=w.useRef(null),h=F(r,I),S=i(u,l);return w.useEffect(()=>(S.itemMap.set(I,{ref:I,...v}),()=>void S.itemMap.delete(I))),d.jsx(L,{[g]:"",ref:h,children:m})});R.displayName=u;function b(c){const r=i(e+"CollectionConsumer",c);return w.useCallback(()=>{const m=r.collectionRef.current;if(!m)return[];const v=Array.from(m.querySelectorAll(`[${g}]`));return Array.from(r.itemMap.values()).sort((S,_)=>v.indexOf(S.ref.current)-v.indexOf(_.ref.current))},[r.collectionRef,r.itemMap])}return[{Provider:p,Slot:f,ItemSlot:R},b,n]}var be=s.createContext(void 0);function V(e){const o=s.useContext(be);return e||o||"ltr"}var G="rovingFocusGroup.onEntryFocus",Ie={bubbles:!1,cancelable:!0},P="RovingFocusGroup",[k,B,Ce]=Re(P),[ge,q]=N(P,[Ce]),[xe,ye]=ge(P),z=s.forwardRef((e,o)=>d.jsx(k.Provider,{scope:e.__scopeRovingFocusGroup,children:d.jsx(k.Slot,{scope:e.__scopeRovingFocusGroup,children:d.jsx(Ee,{...e,ref:o})})}));z.displayName=P;var Ee=s.forwardRef((e,o)=>{const{__scopeRovingFocusGroup:t,orientation:n,loop:a=!1,dir:i,currentTabStopId:p,defaultCurrentTabStopId:C,onCurrentTabStopIdChange:f,onEntryFocus:u,preventScrollOnEntryFocus:g=!1,...R}=e,b=s.useRef(null),c=F(o,b),r=V(i),[l=null,m]=K({prop:p,defaultProp:C,onChange:f}),[v,I]=s.useState(!1),h=fe(u),S=B(t),_=s.useRef(!1),[ae,j]=s.useState(0);return s.useEffect(()=>{const x=b.current;if(x)return x.addEventListener(G,h),()=>x.removeEventListener(G,h)},[h]),d.jsx(xe,{scope:t,orientation:n,dir:r,loop:a,currentTabStopId:l,onItemFocus:s.useCallback(x=>m(x),[m]),onItemShiftTab:s.useCallback(()=>I(!0),[]),onFocusableItemAdd:s.useCallback(()=>j(x=>x+1),[]),onFocusableItemRemove:s.useCallback(()=>j(x=>x-1),[]),children:d.jsx(A.div,{tabIndex:v||ae===0?-1:0,"data-orientation":n,...R,ref:c,style:{outline:"none",...e.style},onMouseDown:y(e.onMouseDown,()=>{_.current=!0}),onFocus:y(e.onFocus,x=>{const ie=!_.current;if(x.target===x.currentTarget&&ie&&!v){const O=new CustomEvent(G,Ie);if(x.currentTarget.dispatchEvent(O),!O.defaultPrevented){const T=S().filter(E=>E.focusable),ue=T.find(E=>E.active),de=T.find(E=>E.id===l),le=[ue,de,...T].filter(Boolean).map(E=>E.ref.current);H(le,g)}}_.current=!1}),onBlur:y(e.onBlur,()=>I(!1))})})}),Y="RovingFocusGroupItem",$=s.forwardRef((e,o)=>{const{__scopeRovingFocusGroup:t,focusable:n=!0,active:a=!1,tabStopId:i,...p}=e,C=pe(),f=i||C,u=ye(Y,t),g=u.currentTabStopId===f,R=B(t),{onFocusableItemAdd:b,onFocusableItemRemove:c}=u;return s.useEffect(()=>{if(n)return b(),()=>c()},[n,b,c]),d.jsx(k.ItemSlot,{scope:t,id:f,focusable:n,active:a,children:d.jsx(A.span,{tabIndex:g?0:-1,"data-orientation":u.orientation,...p,ref:o,onMouseDown:y(e.onMouseDown,r=>{n?u.onItemFocus(f):r.preventDefault()}),onFocus:y(e.onFocus,()=>u.onItemFocus(f)),onKeyDown:y(e.onKeyDown,r=>{if(r.key==="Tab"&&r.shiftKey){u.onItemShiftTab();return}if(r.target!==r.currentTarget)return;const l=Se(r,u.orientation,u.dir);if(l!==void 0){if(r.metaKey||r.ctrlKey||r.altKey||r.shiftKey)return;r.preventDefault();let v=R().filter(I=>I.focusable).map(I=>I.ref.current);if(l==="last")v.reverse();else if(l==="prev"||l==="next"){l==="prev"&&v.reverse();const I=v.indexOf(r.currentTarget);v=u.loop?_e(v,I+1):v.slice(I+1)}setTimeout(()=>H(v))}})})})});$.displayName=Y;var we={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function he(e,o){return o!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Se(e,o,t){const n=he(e.key,t);if(!(o==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(o==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return we[n]}function H(e,o=!1){const t=document.activeElement;for(const n of e)if(n===t||(n.focus({preventScroll:o}),document.activeElement!==t))return}function _e(e,o){return e.map((t,n)=>e[(o+n)%e.length])}var Fe=z,Ae=$;function Ne(e){const o=s.useRef({value:e,previous:e});return s.useMemo(()=>(o.current.value!==e&&(o.current.previous=o.current.value,o.current.value=e),o.current.previous),[e])}var M="Radio",[Pe,J]=N(M),[Te,Ge]=Pe(M),Q=s.forwardRef((e,o)=>{const{__scopeRadio:t,name:n,checked:a=!1,required:i,disabled:p,value:C="on",onCheck:f,form:u,...g}=e,[R,b]=s.useState(null),c=F(o,m=>b(m)),r=s.useRef(!1),l=R?u||!!R.closest("form"):!0;return d.jsxs(Te,{scope:t,checked:a,disabled:p,children:[d.jsx(A.button,{type:"button",role:"radio","aria-checked":a,"data-state":Z(a),"data-disabled":p?"":void 0,disabled:p,value:C,...g,ref:c,onClick:y(e.onClick,m=>{a||f==null||f(),l&&(r.current=m.isPropagationStopped(),r.current||m.stopPropagation())})}),l&&d.jsx(ke,{control:R,bubbles:!r.current,name:n,value:C,checked:a,required:i,disabled:p,form:u,style:{transform:"translateX(-100%)"}})]})});Q.displayName=M;var W="RadioIndicator",X=s.forwardRef((e,o)=>{const{__scopeRadio:t,forceMount:n,...a}=e,i=Ge(W,t);return d.jsx(me,{present:n||i.checked,children:d.jsx(A.span,{"data-state":Z(i.checked),"data-disabled":i.disabled?"":void 0,...a,ref:o})})});X.displayName=W;var ke=e=>{const{control:o,checked:t,bubbles:n=!0,...a}=e,i=s.useRef(null),p=Ne(t),C=ve(o);return s.useEffect(()=>{const f=i.current,u=window.HTMLInputElement.prototype,R=Object.getOwnPropertyDescriptor(u,"checked").set;if(p!==t&&R){const b=new Event("click",{bubbles:n});R.call(f,t),f.dispatchEvent(b)}},[p,t,n]),d.jsx("input",{type:"radio","aria-hidden":!0,defaultChecked:t,...a,tabIndex:-1,ref:i,style:{...e.style,...C,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function Z(e){return e?"checked":"unchecked"}var Me=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],D="RadioGroup",[De,Ye]=N(D,[q,J]),ee=q(),oe=J(),[je,Oe]=De(D),te=s.forwardRef((e,o)=>{const{__scopeRadioGroup:t,name:n,defaultValue:a,value:i,required:p=!1,disabled:C=!1,orientation:f,dir:u,loop:g=!0,onValueChange:R,...b}=e,c=ee(t),r=V(u),[l,m]=K({prop:i,defaultProp:a,onChange:R});return d.jsx(je,{scope:t,name:n,required:p,disabled:C,value:l,onValueChange:m,children:d.jsx(Fe,{asChild:!0,...c,orientation:f,dir:r,loop:g,children:d.jsx(A.div,{role:"radiogroup","aria-required":p,"aria-orientation":f,"data-disabled":C?"":void 0,dir:r,...b,ref:o})})})});te.displayName=D;var re="RadioGroupItem",ne=s.forwardRef((e,o)=>{const{__scopeRadioGroup:t,disabled:n,...a}=e,i=Oe(re,t),p=i.disabled||n,C=ee(t),f=oe(t),u=s.useRef(null),g=F(o,u),R=i.value===a.value,b=s.useRef(!1);return s.useEffect(()=>{const c=l=>{Me.includes(l.key)&&(b.current=!0)},r=()=>b.current=!1;return document.addEventListener("keydown",c),document.addEventListener("keyup",r),()=>{document.removeEventListener("keydown",c),document.removeEventListener("keyup",r)}},[]),d.jsx(Ae,{asChild:!0,...C,focusable:!p,active:R,children:d.jsx(Q,{disabled:p,required:i.required,checked:R,...f,...a,name:i.name,ref:g,onCheck:()=>i.onValueChange(a.value),onKeyDown:y(c=>{c.key==="Enter"&&c.preventDefault()}),onFocus:y(a.onFocus,()=>{var c;b.current&&((c=u.current)==null||c.click())})})})});ne.displayName=re;var Le="RadioGroupIndicator",Ke=s.forwardRef((e,o)=>{const{__scopeRadioGroup:t,...n}=e,a=oe(t);return d.jsx(X,{...a,...n,ref:o})});Ke.displayName=Le;var se=te,ce=ne;const Ue=s.forwardRef(({className:e,...o},t)=>d.jsx(se,{className:U("grid gap-2",e),...o,ref:t}));Ue.displayName=se.displayName;const Ve=s.forwardRef(({className:e,...o},t)=>d.jsx(ce,{ref:t,className:U(o.checked?"border-primary after:bg-opacity-1":"border-on_surface bg-transparent after:bg-opacity-0","size-5 rounded-full border-[2px] after:size-[9px] after:bg-primary before:scale-0 hover:before:scale-100 before:size-10 before:rounded-full before:transition-all before:absolute before:-top-3 before:-left-3 before:bg-on_surface/[8%] duration-300 after:rounded-full flex relative items-center justify-center text-primary focus:outline-none focus-visible:ring-1 focus-visible:ring-ring transition-all disabled:cursor-not-allowed disabled:opacity-50",e),...o}));Ve.displayName=ce.displayName;export{Ue as R,Ve as a}; diff --git a/dist/assets/service-iDSMiddG.js b/dist/assets/service-D5qlX6-G.js similarity index 80% rename from dist/assets/service-iDSMiddG.js rename to dist/assets/service-D5qlX6-G.js index f709052..86dbfa1 100644 --- a/dist/assets/service-iDSMiddG.js +++ b/dist/assets/service-D5qlX6-G.js @@ -1 +1 @@ -import{a as s}from"./index-C_aLVrZJ.js";const o="https://turkmentextile.turkmenexpo.com/app/api/v1",n=async t=>(await s.post(`${o}/book_stand_form`,t)).status===201,e=async t=>(await s.post(`${o}/become_sponsor_form`,t)).status===201,p=async t=>(await s.post(`${o}/contact_form`,t)).status===201;export{n as a,p as b,e as p}; +import{a as s}from"./axios-upsvKRUO.js";const o="https://turkmentextile.turkmenexpo.com/app/api/v1",n=async t=>(await s.post(`${o}/book_stand_form`,t)).status===201,e=async t=>(await s.post(`${o}/become_sponsor_form`,t)).status===201,p=async t=>(await s.post(`${o}/contact_form`,t)).status===201;export{n as a,p as b,e as p}; diff --git a/dist/assets/stend-form-BsyKO9pw.js b/dist/assets/stend-form-BsyKO9pw.js deleted file mode 100644 index 785cb7b..0000000 --- a/dist/assets/stend-form-BsyKO9pw.js +++ /dev/null @@ -1 +0,0 @@ -import{u as g,v as f,j as e,C as y,n as s,x as v,w as N,m as S,o as d,p as m,q as i,r as p,s as l,B as F,t as k,y as w}from"./ui-library-BGb6MWUm.js";import{a as j}from"./react-vendor-OnsDvTPE.js";import{R as b,a as x}from"./radio-group-CIa7-cps.js";import{z as o,t as C}from"./index-C_aLVrZJ.js";import{a as V}from"./service-iDSMiddG.js";import{s as t}from"./stend.data-MYN6KI5Y.js";const R=o.object({space_package:o.string(),company_name:o.string().min(3,{message:"Название компании должно быть не менее 3 символов"}),rep_name:o.string().min(3,{message:"Имя представителя должно быть не менее 3 символов"}),job_title:o.string().min(3,{message:"Должность должна быть не менее 3 символов"}),participants_number:o.preprocess(a=>Number(a),o.number().min(1,"Укажите количество участников")),country:o.string().min(3,{message:"Название страны должно быть не менее 3 символов"}),email:o.string().email({message:"Укажите корректный email"}),phone:o.string().min(8,{message:"Номер телефона должен быть не менее 8 символов"}),website:o.string().optional(),visa_support:o.string().optional()}),E={space_package:"space",company_name:"",rep_name:"",job_title:"",participants_number:1,country:"",email:"",phone:"",website:"",visa_support:""};function z(){const a=g(n=>n.lang),[u,h]=j.useState(!1),r=f({resolver:C(R),defaultValues:E}),_=async n=>{await V(n)&&h(!0)};j.useEffect(()=>{window.scrollTo({behavior:"smooth",top:0})},[status]);const{errors:c}=r.formState;return e.jsxs("div",{children:[e.jsx(y,{title:t[s(a)].cover}),e.jsx(v,{children:!u&&e.jsx(N,{...r,children:e.jsxs(S.form,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"max-w-[828px] px-5 mx-auto mt-20 mb-[120px] flex flex-col gap-8",onSubmit:r.handleSubmit(_),children:[e.jsx(d,{control:r.control,name:"space_package",render:({field:n})=>e.jsxs(m,{className:"space-y-5",children:[e.jsx(i,{className:"text-xl",children:t[s(a)].h2}),e.jsx(p,{children:e.jsxs(b,{onValueChange:n.onChange,defaultValue:n.value,className:"flex flex-col space-y-4 ml-3",children:[e.jsxs(m,{className:"flex items-center space-x-5 space-y-0",children:[e.jsx(p,{children:e.jsx(x,{value:"space",checked:n.value==="space"})}),e.jsx(i,{className:"text-base",children:t[s(a)].radio})]}),e.jsxs(m,{className:"flex items-center space-x-5 space-y-0",children:[e.jsx(p,{children:e.jsx(x,{value:"package",checked:n.value==="package"})}),e.jsx(i,{className:"text-base",children:t[s(a)].radio_2})]})]})})]})}),e.jsx(l,{label:t[s(a)].label_1,name:"company_name",control:r.control,error:c.company_name}),e.jsx(l,{label:t[s(a)].label_2,name:"rep_name",control:r.control,error:c.rep_name}),e.jsx(l,{label:t[s(a)].label_3,name:"job_title",control:r.control,error:c.job_title}),e.jsx(l,{label:t[s(a)].number_of_participants,type:"number",name:"participants_number",control:r.control,error:c.participants_number}),e.jsx(l,{label:t[s(a)].label_4,name:"country",control:r.control,error:c.country}),e.jsx(l,{label:t[s(a)].label_5,name:"email",control:r.control,error:c.email}),e.jsx(l,{label:t[s(a)].label_6,name:"phone",control:r.control,error:c.phone}),e.jsx(l,{label:t[s(a)].label_7,name:"website",control:r.control}),e.jsx(d,{control:r.control,name:"visa_support",render:({field:n})=>e.jsxs(m,{className:"space-y-5",children:[e.jsx(i,{className:"text-xl",children:t[s(a)].visa}),e.jsx(p,{children:e.jsxs(b,{onValueChange:n.onChange,defaultValue:n.value,className:"flex flex-col space-y-4 ml-3",children:[e.jsxs(m,{className:"flex items-center space-x-5 space-y-0",children:[e.jsx(p,{children:e.jsx(x,{value:"yes",checked:n.value==="yes"})}),e.jsx(i,{className:"text-base",children:t[s(a)].visa_radio})]}),e.jsxs(m,{className:"flex items-center space-x-5 space-y-0 ",children:[e.jsx(p,{children:e.jsx(x,{value:"no",checked:n.value==="no"})}),e.jsx(i,{className:"text-base",children:t[s(a)].visa_radio_2})]})]})})]})}),e.jsx(F,{disabled:r.formState.isSubmitting,className:"mt-5",children:r.formState.isSubmitting?e.jsx(k,{className:"animate-spin"}):t[s(a)].button})]})})}),u&&e.jsx(w,{delay:.3})]})}export{z as default}; diff --git a/dist/assets/stend-form-C6tB-uem.js b/dist/assets/stend-form-C6tB-uem.js new file mode 100644 index 0000000..d1fcc27 --- /dev/null +++ b/dist/assets/stend-form-C6tB-uem.js @@ -0,0 +1 @@ +import{z as o,u as g,v as f,j as e,C as y,n as s,x as v,w as N,m as S,o as d,p as m,q as i,r as p,s as l,B as F,t as k,y as w,D as C}from"./ui-library-rbj8Yi4H.js";import{a as j}from"./react-vendor-OnsDvTPE.js";import{R as b,a as x}from"./radio-group-DgXw47SH.js";import{a as V}from"./service-D5qlX6-G.js";import{s as t}from"./stend.data-MYN6KI5Y.js";import"./axios-upsvKRUO.js";const R=o.object({space_package:o.string(),company_name:o.string().min(3,{message:"Название компании должно быть не менее 3 символов"}),rep_name:o.string().min(3,{message:"Имя представителя должно быть не менее 3 символов"}),job_title:o.string().min(3,{message:"Должность должна быть не менее 3 символов"}),participants_number:o.preprocess(a=>Number(a),o.number().min(1,"Укажите количество участников")),country:o.string().min(3,{message:"Название страны должно быть не менее 3 символов"}),email:o.string().email({message:"Укажите корректный email"}),phone:o.string().min(8,{message:"Номер телефона должен быть не менее 8 символов"}),website:o.string().optional(),visa_support:o.string().optional()}),D={space_package:"space",company_name:"",rep_name:"",job_title:"",participants_number:1,country:"",email:"",phone:"",website:"",visa_support:""};function z(){const a=g(n=>n.lang),[u,h]=j.useState(!1),r=f({resolver:C(R),defaultValues:D}),_=async n=>{await V(n)&&h(!0)};j.useEffect(()=>{window.scrollTo({behavior:"smooth",top:0})},[status]);const{errors:c}=r.formState;return e.jsxs("div",{children:[e.jsx(y,{title:t[s(a)].cover}),e.jsx(v,{children:!u&&e.jsx(N,{...r,children:e.jsxs(S.form,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"max-w-[828px] px-5 mx-auto mt-20 mb-[120px] flex flex-col gap-8",onSubmit:r.handleSubmit(_),children:[e.jsx(d,{control:r.control,name:"space_package",render:({field:n})=>e.jsxs(m,{className:"space-y-5",children:[e.jsx(i,{className:"text-xl",children:t[s(a)].h2}),e.jsx(p,{children:e.jsxs(b,{onValueChange:n.onChange,defaultValue:n.value,className:"flex flex-col space-y-4 ml-3",children:[e.jsxs(m,{className:"flex items-center space-x-5 space-y-0",children:[e.jsx(p,{children:e.jsx(x,{value:"space",checked:n.value==="space"})}),e.jsx(i,{className:"text-base",children:t[s(a)].radio})]}),e.jsxs(m,{className:"flex items-center space-x-5 space-y-0",children:[e.jsx(p,{children:e.jsx(x,{value:"package",checked:n.value==="package"})}),e.jsx(i,{className:"text-base",children:t[s(a)].radio_2})]})]})})]})}),e.jsx(l,{label:t[s(a)].label_1,name:"company_name",control:r.control,error:c.company_name}),e.jsx(l,{label:t[s(a)].label_2,name:"rep_name",control:r.control,error:c.rep_name}),e.jsx(l,{label:t[s(a)].label_3,name:"job_title",control:r.control,error:c.job_title}),e.jsx(l,{label:t[s(a)].number_of_participants,type:"number",name:"participants_number",control:r.control,error:c.participants_number}),e.jsx(l,{label:t[s(a)].label_4,name:"country",control:r.control,error:c.country}),e.jsx(l,{label:t[s(a)].label_5,name:"email",control:r.control,error:c.email}),e.jsx(l,{label:t[s(a)].label_6,name:"phone",control:r.control,error:c.phone}),e.jsx(l,{label:t[s(a)].label_7,name:"website",control:r.control}),e.jsx(d,{control:r.control,name:"visa_support",render:({field:n})=>e.jsxs(m,{className:"space-y-5",children:[e.jsx(i,{className:"text-xl",children:t[s(a)].visa}),e.jsx(p,{children:e.jsxs(b,{onValueChange:n.onChange,defaultValue:n.value,className:"flex flex-col space-y-4 ml-3",children:[e.jsxs(m,{className:"flex items-center space-x-5 space-y-0",children:[e.jsx(p,{children:e.jsx(x,{value:"yes",checked:n.value==="yes"})}),e.jsx(i,{className:"text-base",children:t[s(a)].visa_radio})]}),e.jsxs(m,{className:"flex items-center space-x-5 space-y-0 ",children:[e.jsx(p,{children:e.jsx(x,{value:"no",checked:n.value==="no"})}),e.jsx(i,{className:"text-base",children:t[s(a)].visa_radio_2})]})]})})]})}),e.jsx(F,{disabled:r.formState.isSubmitting,className:"mt-5",children:r.formState.isSubmitting?e.jsx(k,{className:"animate-spin"}):t[s(a)].button})]})})}),u&&e.jsx(w,{delay:.3})]})}export{z as default}; diff --git a/dist/assets/ui-library-BGb6MWUm.js b/dist/assets/ui-library-BGb6MWUm.js deleted file mode 100644 index 4e05fa8..0000000 --- a/dist/assets/ui-library-BGb6MWUm.js +++ /dev/null @@ -1,127 +0,0 @@ -import{r as vf,a as y,R as xf,b as kl,c as bf,d as re,L as De,e as sr}from"./react-vendor-OnsDvTPE.js";var ss={exports:{}},xn={};/** - * @license React - * react-jsx-runtime.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var To;function wf(){if(To)return xn;To=1;var e=vf(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,s=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function o(a,l,c){var u,d={},f=null,m=null;c!==void 0&&(f=""+c),l.key!==void 0&&(f=""+l.key),l.ref!==void 0&&(m=l.ref);for(u in l)r.call(l,u)&&!i.hasOwnProperty(u)&&(d[u]=l[u]);if(a&&a.defaultProps)for(u in l=a.defaultProps,l)d[u]===void 0&&(d[u]=l[u]);return{$$typeof:t,type:a,key:f,ref:m,props:d,_owner:s.current}}return xn.Fragment=n,xn.jsx=o,xn.jsxs=o,xn}var Eo;function Sf(){return Eo||(Eo=1,ss.exports=wf()),ss.exports}var p=Sf();function Le(e,t,{checkForDefaultPrevented:n=!0}={}){return function(s){if(e==null||e(s),n===!1||!s.defaultPrevented)return t==null?void 0:t(s)}}function Ro(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function _l(...e){return t=>{let n=!1;const r=e.map(s=>{const i=Ro(s,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s{const{children:o,...a}=i,l=y.useMemo(()=>a,Object.values(a));return p.jsx(n.Provider,{value:l,children:o})};r.displayName=e+"Provider";function s(i){const o=y.useContext(n);if(o)return o;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,s]}function li(e,t=[]){let n=[];function r(i,o){const a=y.createContext(o),l=n.length;n=[...n,o];const c=d=>{var v;const{scope:f,children:m,...g}=d,h=((v=f==null?void 0:f[e])==null?void 0:v[l])||a,x=y.useMemo(()=>g,Object.values(g));return p.jsx(h.Provider,{value:x,children:m})};c.displayName=i+"Provider";function u(d,f){var h;const m=((h=f==null?void 0:f[e])==null?void 0:h[l])||a,g=y.useContext(m);if(g)return g;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[c,u]}const s=()=>{const i=n.map(o=>y.createContext(o));return function(a){const l=(a==null?void 0:a[e])||i;return y.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return s.scopeName=e,[r,Cf(s,...t)]}function Cf(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=r.reduce((a,{useScope:l,scopeName:c})=>{const d=l(i)[`__scope${c}`];return{...a,...d}},{});return y.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}var Bt=globalThis!=null&&globalThis.document?y.useLayoutEffect:()=>{},Pf=xf.useId||(()=>{}),Tf=0;function yr(e){const[t,n]=y.useState(Pf());return Bt(()=>{n(r=>r??String(Tf++))},[e]),t?`radix-${t}`:""}function Ct(e){const t=y.useRef(e);return y.useEffect(()=>{t.current=e}),y.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Vl({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,s]=Ef({defaultProp:t,onChange:n}),i=e!==void 0,o=i?e:r,a=Ct(n),l=y.useCallback(c=>{if(i){const d=typeof c=="function"?c(e):c;d!==e&&a(d)}else s(c)},[i,e,s,a]);return[o,l]}function Ef({defaultProp:e,onChange:t}){const n=y.useState(e),[r]=n,s=y.useRef(r),i=Ct(t);return y.useEffect(()=>{s.current!==r&&(i(r),s.current=r)},[r,s,i]),n}var un=y.forwardRef((e,t)=>{const{children:n,...r}=e,s=y.Children.toArray(n),i=s.find(Df);if(i){const o=i.props.children,a=s.map(l=>l===i?y.Children.count(o)>1?y.Children.only(null):y.isValidElement(o)?o.props.children:null:l);return p.jsx(Ns,{...r,ref:t,children:y.isValidElement(o)?y.cloneElement(o,void 0,a):null})}return p.jsx(Ns,{...r,ref:t,children:n})});un.displayName="Slot";var Ns=y.forwardRef((e,t)=>{const{children:n,...r}=e;if(y.isValidElement(n)){const s=Nf(n);return y.cloneElement(n,{...jf(r,n.props),ref:t?_l(t,s):s})}return y.Children.count(n)>1?y.Children.only(null):null});Ns.displayName="SlotClone";var Rf=({children:e})=>p.jsx(p.Fragment,{children:e});function Df(e){return y.isValidElement(e)&&e.type===Rf}function jf(e,t){const n={...t};for(const r in t){const s=e[r],i=t[r];/^on[A-Z]/.test(r)?s&&i?n[r]=(...a)=>{i(...a),s(...a)}:s&&(n[r]=s):r==="style"?n[r]={...s,...i}:r==="className"&&(n[r]=[s,i].filter(Boolean).join(" "))}return{...e,...n}}function Nf(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Mf=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Me=Mf.reduce((e,t)=>{const n=y.forwardRef((r,s)=>{const{asChild:i,...o}=r,a=i?un:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(a,{...o,ref:s})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function kf(e,t){e&&kl.flushSync(()=>e.dispatchEvent(t))}function _f(e,t=globalThis==null?void 0:globalThis.document){const n=Ct(e);y.useEffect(()=>{const r=s=>{s.key==="Escape"&&n(s)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Vf="DismissableLayer",Ms="dismissableLayer.update",Of="dismissableLayer.pointerDownOutside",Ff="dismissableLayer.focusOutside",Do,Ol=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ci=y.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:o,onDismiss:a,...l}=e,c=y.useContext(Ol),[u,d]=y.useState(null),f=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=y.useState({}),g=Qe(t,E=>d(E)),h=Array.from(c.layers),[x]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),v=h.indexOf(x),b=u?h.indexOf(u):-1,A=c.layersWithOutsidePointerEventsDisabled.size>0,P=b>=v,S=Bf(E=>{const D=E.target,M=[...c.branches].some(_=>_.contains(D));!P||M||(s==null||s(E),o==null||o(E),E.defaultPrevented||a==null||a())},f),T=Uf(E=>{const D=E.target;[...c.branches].some(_=>_.contains(D))||(i==null||i(E),o==null||o(E),E.defaultPrevented||a==null||a())},f);return _f(E=>{b===c.layers.size-1&&(r==null||r(E),!E.defaultPrevented&&a&&(E.preventDefault(),a()))},f),y.useEffect(()=>{if(u)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(Do=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),jo(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=Do)}},[u,f,n,c]),y.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),jo())},[u,c]),y.useEffect(()=>{const E=()=>m({});return document.addEventListener(Ms,E),()=>document.removeEventListener(Ms,E)},[]),p.jsx(Me.div,{...l,ref:g,style:{pointerEvents:A?P?"auto":"none":void 0,...e.style},onFocusCapture:Le(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Le(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Le(e.onPointerDownCapture,S.onPointerDownCapture)})});ci.displayName=Vf;var Lf="DismissableLayerBranch",If=y.forwardRef((e,t)=>{const n=y.useContext(Ol),r=y.useRef(null),s=Qe(t,r);return y.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),p.jsx(Me.div,{...e,ref:s})});If.displayName=Lf;function Bf(e,t=globalThis==null?void 0:globalThis.document){const n=Ct(e),r=y.useRef(!1),s=y.useRef(()=>{});return y.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let l=function(){Fl(Of,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=l,t.addEventListener("click",s.current,{once:!0})):l()}else t.removeEventListener("click",s.current);r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",i),t.removeEventListener("click",s.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Uf(e,t=globalThis==null?void 0:globalThis.document){const n=Ct(e),r=y.useRef(!1);return y.useEffect(()=>{const s=i=>{i.target&&!r.current&&Fl(Ff,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function jo(){const e=new CustomEvent(Ms);document.dispatchEvent(e)}function Fl(e,t,n,{discrete:r}){const s=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),r?kf(s,i):s.dispatchEvent(i)}var is="focusScope.autoFocusOnMount",os="focusScope.autoFocusOnUnmount",No={bubbles:!1,cancelable:!0},$f="FocusScope",ui=y.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:s,onUnmountAutoFocus:i,...o}=e,[a,l]=y.useState(null),c=Ct(s),u=Ct(i),d=y.useRef(null),f=Qe(t,h=>l(h)),m=y.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;y.useEffect(()=>{if(r){let h=function(A){if(m.paused||!a)return;const P=A.target;a.contains(P)?d.current=P:wt(d.current,{select:!0})},x=function(A){if(m.paused||!a)return;const P=A.relatedTarget;P!==null&&(a.contains(P)||wt(d.current,{select:!0}))},v=function(A){if(document.activeElement===document.body)for(const S of A)S.removedNodes.length>0&&wt(a)};document.addEventListener("focusin",h),document.addEventListener("focusout",x);const b=new MutationObserver(v);return a&&b.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",x),b.disconnect()}}},[r,a,m.paused]),y.useEffect(()=>{if(a){ko.add(m);const h=document.activeElement;if(!a.contains(h)){const v=new CustomEvent(is,No);a.addEventListener(is,c),a.dispatchEvent(v),v.defaultPrevented||(zf(qf(Ll(a)),{select:!0}),document.activeElement===h&&wt(a))}return()=>{a.removeEventListener(is,c),setTimeout(()=>{const v=new CustomEvent(os,No);a.addEventListener(os,u),a.dispatchEvent(v),v.defaultPrevented||wt(h??document.body,{select:!0}),a.removeEventListener(os,u),ko.remove(m)},0)}}},[a,c,u,m]);const g=y.useCallback(h=>{if(!n&&!r||m.paused)return;const x=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,v=document.activeElement;if(x&&v){const b=h.currentTarget,[A,P]=Wf(b);A&&P?!h.shiftKey&&v===P?(h.preventDefault(),n&&wt(A,{select:!0})):h.shiftKey&&v===A&&(h.preventDefault(),n&&wt(P,{select:!0})):v===b&&h.preventDefault()}},[n,r,m.paused]);return p.jsx(Me.div,{tabIndex:-1,...o,ref:f,onKeyDown:g})});ui.displayName=$f;function zf(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(wt(r,{select:t}),document.activeElement!==n)return}function Wf(e){const t=Ll(e),n=Mo(t,e),r=Mo(t.reverse(),e);return[n,r]}function Ll(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Mo(e,t){for(const n of e)if(!Hf(n,{upTo:t}))return n}function Hf(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Gf(e){return e instanceof HTMLInputElement&&"select"in e}function wt(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Gf(e)&&t&&e.select()}}var ko=Kf();function Kf(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=_o(e,t),e.unshift(t)},remove(t){var n;e=_o(e,t),(n=e[0])==null||n.resume()}}}function _o(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function qf(e){return e.filter(t=>t.tagName!=="A")}var Xf="Portal",di=y.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[s,i]=y.useState(!1);Bt(()=>i(!0),[]);const o=n||s&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return o?bf.createPortal(p.jsx(Me.div,{...r,ref:t}),o):null});di.displayName=Xf;function Yf(e,t){return y.useReducer((n,r)=>t[n][r]??n,e)}var dn=e=>{const{present:t,children:n}=e,r=Zf(t),s=typeof n=="function"?n({present:r.isPresent}):y.Children.only(n),i=Qe(r.ref,Jf(s));return typeof n=="function"||r.isPresent?y.cloneElement(s,{ref:i}):null};dn.displayName="Presence";function Zf(e){const[t,n]=y.useState(),r=y.useRef({}),s=y.useRef(e),i=y.useRef("none"),o=e?"mounted":"unmounted",[a,l]=Yf(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return y.useEffect(()=>{const c=ir(r.current);i.current=a==="mounted"?c:"none"},[a]),Bt(()=>{const c=r.current,u=s.current;if(u!==e){const f=i.current,m=ir(c);e?l("MOUNT"):m==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&f!==m?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,l]),Bt(()=>{if(t){let c;const u=t.ownerDocument.defaultView??window,d=m=>{const h=ir(r.current).includes(m.animationName);if(m.target===t&&h&&(l("ANIMATION_END"),!s.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",c=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},f=m=>{m.target===t&&(i.current=ir(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(c),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:y.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function ir(e){return(e==null?void 0:e.animationName)||"none"}function Jf(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var as=0;function Il(){y.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Vo()),document.body.insertAdjacentElement("beforeend",e[1]??Vo()),as++,()=>{as===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),as--}},[])}function Vo(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var rt=function(){return rt=Object.assign||function(t){for(var n,r=1,s=arguments.length;r"u")return ph;var t=gh(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},vh=zl(),tn="data-scroll-locked",xh=function(e,t,n,r){var s=e.left,i=e.top,o=e.right,a=e.gap;return n===void 0&&(n="margin"),` - .`.concat(eh,` { - overflow: hidden `).concat(r,`; - padding-right: `).concat(a,"px ").concat(r,`; - } - body[`).concat(tn,`] { - overflow: hidden `).concat(r,`; - overscroll-behavior: contain; - `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` - padding-left: `.concat(s,`px; - padding-top: `).concat(i,`px; - padding-right: `).concat(o,`px; - margin-left:0; - margin-top:0; - margin-right: `).concat(a,"px ").concat(r,`; - `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),` - } - - .`).concat(vr,` { - right: `).concat(a,"px ").concat(r,`; - } - - .`).concat(xr,` { - margin-right: `).concat(a,"px ").concat(r,`; - } - - .`).concat(vr," .").concat(vr,` { - right: 0 `).concat(r,`; - } - - .`).concat(xr," .").concat(xr,` { - margin-right: 0 `).concat(r,`; - } - - body[`).concat(tn,`] { - `).concat(th,": ").concat(a,`px; - } -`)},Fo=function(){var e=parseInt(document.body.getAttribute(tn)||"0",10);return isFinite(e)?e:0},bh=function(){y.useEffect(function(){return document.body.setAttribute(tn,(Fo()+1).toString()),function(){var e=Fo()-1;e<=0?document.body.removeAttribute(tn):document.body.setAttribute(tn,e.toString())}},[])},wh=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,s=r===void 0?"margin":r;bh();var i=y.useMemo(function(){return yh(s)},[s]);return y.createElement(vh,{styles:xh(i,!t,s,n?"":"!important")})},ks=!1;if(typeof window<"u")try{var or=Object.defineProperty({},"passive",{get:function(){return ks=!0,!0}});window.addEventListener("test",or,or),window.removeEventListener("test",or,or)}catch{ks=!1}var Gt=ks?{passive:!1}:!1,Sh=function(e){return e.tagName==="TEXTAREA"},Wl=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Sh(e)&&n[t]==="visible")},Ah=function(e){return Wl(e,"overflowY")},Ch=function(e){return Wl(e,"overflowX")},Lo=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var s=Hl(e,r);if(s){var i=Gl(e,r),o=i[1],a=i[2];if(o>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Ph=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Th=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Hl=function(e,t){return e==="v"?Ah(t):Ch(t)},Gl=function(e,t){return e==="v"?Ph(t):Th(t)},Eh=function(e,t){return e==="h"&&t==="rtl"?-1:1},Rh=function(e,t,n,r,s){var i=Eh(e,window.getComputedStyle(t).direction),o=i*r,a=n.target,l=t.contains(a),c=!1,u=o>0,d=0,f=0;do{var m=Gl(e,a),g=m[0],h=m[1],x=m[2],v=h-x-i*g;(g||v)&&Hl(e,a)&&(d+=v,f+=g),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(u&&Math.abs(d)<1||!u&&Math.abs(f)<1)&&(c=!0),c},ar=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Io=function(e){return[e.deltaX,e.deltaY]},Bo=function(e){return e&&"current"in e?e.current:e},Dh=function(e,t){return e[0]===t[0]&&e[1]===t[1]},jh=function(e){return` - .block-interactivity-`.concat(e,` {pointer-events: none;} - .allow-interactivity-`).concat(e,` {pointer-events: all;} -`)},Nh=0,Kt=[];function Mh(e){var t=y.useRef([]),n=y.useRef([0,0]),r=y.useRef(),s=y.useState(Nh++)[0],i=y.useState(zl)[0],o=y.useRef(e);y.useEffect(function(){o.current=e},[e]),y.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var h=Qf([e.lockRef.current],(e.shards||[]).map(Bo),!0).filter(Boolean);return h.forEach(function(x){return x.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),h.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var a=y.useCallback(function(h,x){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!o.current.allowPinchZoom;var v=ar(h),b=n.current,A="deltaX"in h?h.deltaX:b[0]-v[0],P="deltaY"in h?h.deltaY:b[1]-v[1],S,T=h.target,E=Math.abs(A)>Math.abs(P)?"h":"v";if("touches"in h&&E==="h"&&T.type==="range")return!1;var D=Lo(E,T);if(!D)return!0;if(D?S=E:(S=E==="v"?"h":"v",D=Lo(E,T)),!D)return!1;if(!r.current&&"changedTouches"in h&&(A||P)&&(r.current=S),!S)return!0;var M=r.current||S;return Rh(M,x,h,M==="h"?A:P)},[]),l=y.useCallback(function(h){var x=h;if(!(!Kt.length||Kt[Kt.length-1]!==i)){var v="deltaY"in x?Io(x):ar(x),b=t.current.filter(function(S){return S.name===x.type&&(S.target===x.target||x.target===S.shadowParent)&&Dh(S.delta,v)})[0];if(b&&b.should){x.cancelable&&x.preventDefault();return}if(!b){var A=(o.current.shards||[]).map(Bo).filter(Boolean).filter(function(S){return S.contains(x.target)}),P=A.length>0?a(x,A[0]):!o.current.noIsolation;P&&x.cancelable&&x.preventDefault()}}},[]),c=y.useCallback(function(h,x,v,b){var A={name:h,delta:x,target:v,should:b,shadowParent:kh(v)};t.current.push(A),setTimeout(function(){t.current=t.current.filter(function(P){return P!==A})},1)},[]),u=y.useCallback(function(h){n.current=ar(h),r.current=void 0},[]),d=y.useCallback(function(h){c(h.type,Io(h),h.target,a(h,e.lockRef.current))},[]),f=y.useCallback(function(h){c(h.type,ar(h),h.target,a(h,e.lockRef.current))},[]);y.useEffect(function(){return Kt.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,Gt),document.addEventListener("touchmove",l,Gt),document.addEventListener("touchstart",u,Gt),function(){Kt=Kt.filter(function(h){return h!==i}),document.removeEventListener("wheel",l,Gt),document.removeEventListener("touchmove",l,Gt),document.removeEventListener("touchstart",u,Gt)}},[]);var m=e.removeScrollBar,g=e.inert;return y.createElement(y.Fragment,null,g?y.createElement(i,{styles:jh(s)}):null,m?y.createElement(wh,{gapMode:e.gapMode}):null)}function kh(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const _h=lh($l,Mh);var fi=y.forwardRef(function(e,t){return y.createElement(zr,rt({},e,{ref:t,sideCar:_h}))});fi.classNames=zr.classNames;var Vh=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},qt=new WeakMap,lr=new WeakMap,cr={},ds=0,Kl=function(e){return e&&(e.host||Kl(e.parentNode))},Oh=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Kl(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Fh=function(e,t,n,r){var s=Oh(t,Array.isArray(e)?e:[e]);cr[n]||(cr[n]=new WeakMap);var i=cr[n],o=[],a=new Set,l=new Set(s),c=function(d){!d||a.has(d)||(a.add(d),c(d.parentNode))};s.forEach(c);var u=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(f){if(a.has(f))u(f);else try{var m=f.getAttribute(r),g=m!==null&&m!=="false",h=(qt.get(f)||0)+1,x=(i.get(f)||0)+1;qt.set(f,h),i.set(f,x),o.push(f),h===1&&g&&lr.set(f,!0),x===1&&f.setAttribute(n,"true"),g||f.setAttribute(r,"true")}catch(v){console.error("aria-hidden: cannot operate on ",f,v)}})};return u(t),a.clear(),ds++,function(){o.forEach(function(d){var f=qt.get(d)-1,m=i.get(d)-1;qt.set(d,f),i.set(d,m),f||(lr.has(d)||d.removeAttribute(r),lr.delete(d)),m||d.removeAttribute(n)}),ds--,ds||(qt=new WeakMap,qt=new WeakMap,lr=new WeakMap,cr={})}},ql=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),s=Vh(e);return s?(r.push.apply(r,Array.from(s.querySelectorAll("[aria-live]"))),Fh(r,s,n,"aria-hidden")):function(){return null}},hi="Dialog",[Xl,m0]=li(hi),[Lh,et]=Xl(hi),Yl=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:s,onOpenChange:i,modal:o=!0}=e,a=y.useRef(null),l=y.useRef(null),[c=!1,u]=Vl({prop:r,defaultProp:s,onChange:i});return p.jsx(Lh,{scope:t,triggerRef:a,contentRef:l,contentId:yr(),titleId:yr(),descriptionId:yr(),open:c,onOpenChange:u,onOpenToggle:y.useCallback(()=>u(d=>!d),[u]),modal:o,children:n})};Yl.displayName=hi;var Zl="DialogTrigger",Jl=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=et(Zl,n),i=Qe(t,s.triggerRef);return p.jsx(Me.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":gi(s.open),...r,ref:i,onClick:Le(e.onClick,s.onOpenToggle)})});Jl.displayName=Zl;var mi="DialogPortal",[Ih,Ql]=Xl(mi,{forceMount:void 0}),ec=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:s}=e,i=et(mi,t);return p.jsx(Ih,{scope:t,forceMount:n,children:y.Children.map(r,o=>p.jsx(dn,{present:n||i.open,children:p.jsx(di,{asChild:!0,container:s,children:o})}))})};ec.displayName=mi;var Tr="DialogOverlay",tc=y.forwardRef((e,t)=>{const n=Ql(Tr,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,i=et(Tr,e.__scopeDialog);return i.modal?p.jsx(dn,{present:r||i.open,children:p.jsx(Bh,{...s,ref:t})}):null});tc.displayName=Tr;var Bh=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=et(Tr,n);return p.jsx(fi,{as:un,allowPinchZoom:!0,shards:[s.contentRef],children:p.jsx(Me.div,{"data-state":gi(s.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Ut="DialogContent",nc=y.forwardRef((e,t)=>{const n=Ql(Ut,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,i=et(Ut,e.__scopeDialog);return p.jsx(dn,{present:r||i.open,children:i.modal?p.jsx(Uh,{...s,ref:t}):p.jsx($h,{...s,ref:t})})});nc.displayName=Ut;var Uh=y.forwardRef((e,t)=>{const n=et(Ut,e.__scopeDialog),r=y.useRef(null),s=Qe(t,n.contentRef,r);return y.useEffect(()=>{const i=r.current;if(i)return ql(i)},[]),p.jsx(rc,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Le(e.onCloseAutoFocus,i=>{var o;i.preventDefault(),(o=n.triggerRef.current)==null||o.focus()}),onPointerDownOutside:Le(e.onPointerDownOutside,i=>{const o=i.detail.originalEvent,a=o.button===0&&o.ctrlKey===!0;(o.button===2||a)&&i.preventDefault()}),onFocusOutside:Le(e.onFocusOutside,i=>i.preventDefault())})}),$h=y.forwardRef((e,t)=>{const n=et(Ut,e.__scopeDialog),r=y.useRef(!1),s=y.useRef(!1);return p.jsx(rc,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,a;(o=e.onCloseAutoFocus)==null||o.call(e,i),i.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),r.current=!1,s.current=!1},onInteractOutside:i=>{var l,c;(l=e.onInteractOutside)==null||l.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const o=i.target;((c=n.triggerRef.current)==null?void 0:c.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&s.current&&i.preventDefault()}})}),rc=y.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:i,...o}=e,a=et(Ut,n),l=y.useRef(null),c=Qe(t,l);return Il(),p.jsxs(p.Fragment,{children:[p.jsx(ui,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:i,children:p.jsx(ci,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":gi(a.open),...o,ref:c,onDismiss:()=>a.onOpenChange(!1)})}),p.jsxs(p.Fragment,{children:[p.jsx(zh,{titleId:a.titleId}),p.jsx(Hh,{contentRef:l,descriptionId:a.descriptionId})]})]})}),pi="DialogTitle",sc=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=et(pi,n);return p.jsx(Me.h2,{id:s.titleId,...r,ref:t})});sc.displayName=pi;var ic="DialogDescription",oc=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=et(ic,n);return p.jsx(Me.p,{id:s.descriptionId,...r,ref:t})});oc.displayName=ic;var ac="DialogClose",lc=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=et(ac,n);return p.jsx(Me.button,{type:"button",...r,ref:t,onClick:Le(e.onClick,()=>s.onOpenChange(!1))})});lc.displayName=ac;function gi(e){return e?"open":"closed"}var cc="DialogTitleWarning",[p0,uc]=Af(cc,{contentName:Ut,titleName:pi,docsSlug:"dialog"}),zh=({titleId:e})=>{const t=uc(cc),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. - -If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. - -For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return y.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Wh="DialogDescriptionWarning",Hh=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${uc(Wh).contentName}}.`;return y.useEffect(()=>{var i;const s=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&s&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Gh=Yl,Kh=Jl,qh=ec,dc=tc,fc=nc,hc=sc,mc=oc,pc=lc;function gc(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;ttypeof e=="boolean"?`${e}`:e===0?"0":e,$o=yc,yi=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return $o(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:s,defaultVariants:i}=t,o=Object.keys(s).map(c=>{const u=n==null?void 0:n[c],d=i==null?void 0:i[c];if(u===null)return null;const f=Uo(u)||Uo(d);return s[c][f]}),a=n&&Object.entries(n).reduce((c,u)=>{let[d,f]=u;return f===void 0||(c[d]=f),c},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,u)=>{let{class:d,className:f,...m}=u;return Object.entries(m).every(g=>{let[h,x]=g;return Array.isArray(x)?x.includes({...i,...a}[h]):{...i,...a}[h]===x})?[...c,d,f]:c},[]);return $o(e,o,l,n==null?void 0:n.class,n==null?void 0:n.className)};/** - * @license lucide-react v0.473.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Xh=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),vc=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** - * @license lucide-react v0.473.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */var Yh={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** - * @license lucide-react v0.473.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Zh=y.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:s="",children:i,iconNode:o,...a},l)=>y.createElement("svg",{ref:l,...Yh,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:vc("lucide",s),...a},[...o.map(([c,u])=>y.createElement(c,u)),...Array.isArray(i)?i:[i]]));/** - * @license lucide-react v0.473.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Wt=(e,t)=>{const n=y.forwardRef(({className:r,...s},i)=>y.createElement(Zh,{ref:i,iconNode:t,className:vc(`lucide-${Xh(e)}`,r),...s}));return n.displayName=`${e}`,n};/** - * @license lucide-react v0.473.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Jh=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],Qh=Wt("ArrowUpRight",Jh);/** - * @license lucide-react v0.473.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const em=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],g0=Wt("LoaderCircle",em);/** - * @license lucide-react v0.473.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const tm=[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]],y0=Wt("Loader",tm);/** - * @license lucide-react v0.473.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const nm=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],rm=Wt("MapPin",nm);/** - * @license lucide-react v0.473.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const sm=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],im=Wt("Smartphone",sm);/** - * @license lucide-react v0.473.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const om=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]],am=Wt("Upload",om);/** - * @license lucide-react v0.473.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const lm=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],cm=Wt("X",lm),vi="-",um=e=>{const t=fm(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{const a=o.split(vi);return a[0]===""&&a.length!==1&&a.shift(),xc(a,t)||dm(o)},getConflictingClassGroupIds:(o,a)=>{const l=n[o]||[];return a&&r[o]?[...l,...r[o]]:l}}},xc=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),s=r?xc(e.slice(1),r):void 0;if(s)return s;if(t.validators.length===0)return;const i=e.join(vi);return(o=t.validators.find(({validator:a})=>a(i)))==null?void 0:o.classGroupId},zo=/^\[(.+)\]$/,dm=e=>{if(zo.test(e)){const t=zo.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},fm=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return mm(Object.entries(e.classGroups),n).forEach(([i,o])=>{_s(o,r,i,t)}),r},_s=(e,t,n,r)=>{e.forEach(s=>{if(typeof s=="string"){const i=s===""?t:Wo(t,s);i.classGroupId=n;return}if(typeof s=="function"){if(hm(s)){_s(s(r),t,n,r);return}t.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([i,o])=>{_s(o,Wo(t,i),n,r)})})},Wo=(e,t)=>{let n=e;return t.split(vi).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},hm=e=>e.isThemeGetter,mm=(e,t)=>t?e.map(([n,r])=>{const s=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([o,a])=>[t+o,a])):i);return[n,s]}):e,pm=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const s=(i,o)=>{n.set(i,o),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let o=n.get(i);if(o!==void 0)return o;if((o=r.get(i))!==void 0)return s(i,o),o},set(i,o){n.has(i)?n.set(i,o):s(i,o)}}},bc="!",gm=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,s=t[0],i=t.length,o=a=>{const l=[];let c=0,u=0,d;for(let x=0;xu?d-u:void 0;return{modifiers:l,hasImportantModifier:m,baseClassName:g,maybePostfixModifierPosition:h}};return n?a=>n({className:a,parseClassName:o}):o},ym=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},vm=e=>({cache:pm(e.cacheSize),parseClassName:gm(e),...um(e)}),xm=/\s+/,bm=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s}=t,i=[],o=e.trim().split(xm);let a="";for(let l=o.length-1;l>=0;l-=1){const c=o[l],{modifiers:u,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:m}=n(c);let g=!!m,h=r(g?f.substring(0,m):f);if(!h){if(!g){a=c+(a.length>0?" "+a:a);continue}if(h=r(f),!h){a=c+(a.length>0?" "+a:a);continue}g=!1}const x=ym(u).join(":"),v=d?x+bc:x,b=v+h;if(i.includes(b))continue;i.push(b);const A=s(h,g);for(let P=0;P0?" "+a:a)}return a};function wm(){let e=0,t,n,r="";for(;e{if(typeof e=="string")return e;let t,n="";for(let r=0;rd(u),e());return n=vm(c),r=n.cache.get,s=n.cache.set,i=a,a(l)}function a(l){const c=r(l);if(c)return c;const u=bm(l,n);return s(l,u),u}return function(){return i(wm.apply(null,arguments))}}const ae=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Sc=/^\[(?:([a-z-]+):)?(.+)\]$/i,Am=/^\d+\/\d+$/,Cm=new Set(["px","full","screen"]),Pm=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Tm=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Em=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Rm=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Dm=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,dt=e=>nn(e)||Cm.has(e)||Am.test(e),xt=e=>fn(e,"length",Fm),nn=e=>!!e&&!Number.isNaN(Number(e)),fs=e=>fn(e,"number",nn),bn=e=>!!e&&Number.isInteger(Number(e)),jm=e=>e.endsWith("%")&&nn(e.slice(0,-1)),Y=e=>Sc.test(e),bt=e=>Pm.test(e),Nm=new Set(["length","size","percentage"]),Mm=e=>fn(e,Nm,Ac),km=e=>fn(e,"position",Ac),_m=new Set(["image","url"]),Vm=e=>fn(e,_m,Im),Om=e=>fn(e,"",Lm),wn=()=>!0,fn=(e,t,n)=>{const r=Sc.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},Fm=e=>Tm.test(e)&&!Em.test(e),Ac=()=>!1,Lm=e=>Rm.test(e),Im=e=>Dm.test(e),Bm=()=>{const e=ae("colors"),t=ae("spacing"),n=ae("blur"),r=ae("brightness"),s=ae("borderColor"),i=ae("borderRadius"),o=ae("borderSpacing"),a=ae("borderWidth"),l=ae("contrast"),c=ae("grayscale"),u=ae("hueRotate"),d=ae("invert"),f=ae("gap"),m=ae("gradientColorStops"),g=ae("gradientColorStopPositions"),h=ae("inset"),x=ae("margin"),v=ae("opacity"),b=ae("padding"),A=ae("saturate"),P=ae("scale"),S=ae("sepia"),T=ae("skew"),E=ae("space"),D=ae("translate"),M=()=>["auto","contain","none"],_=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto",Y,t],j=()=>[Y,t],F=()=>["",dt,xt],L=()=>["auto",nn,Y],G=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],W=()=>["solid","dashed","dotted","double","none"],U=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],B=()=>["start","end","center","between","around","evenly","stretch"],K=()=>["","0",Y],ee=()=>["auto","avoid","all","avoid-page","page","left","right","column"],te=()=>[nn,Y];return{cacheSize:500,separator:":",theme:{colors:[wn],spacing:[dt,xt],blur:["none","",bt,Y],brightness:te(),borderColor:[e],borderRadius:["none","","full",bt,Y],borderSpacing:j(),borderWidth:F(),contrast:te(),grayscale:K(),hueRotate:te(),invert:K(),gap:j(),gradientColorStops:[e],gradientColorStopPositions:[jm,xt],inset:I(),margin:I(),opacity:te(),padding:j(),saturate:te(),scale:te(),sepia:K(),skew:te(),space:j(),translate:j()},classGroups:{aspect:[{aspect:["auto","square","video",Y]}],container:["container"],columns:[{columns:[bt]}],"break-after":[{"break-after":ee()}],"break-before":[{"break-before":ee()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...G(),Y]}],overflow:[{overflow:_()}],"overflow-x":[{"overflow-x":_()}],"overflow-y":[{"overflow-y":_()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",bn,Y]}],basis:[{basis:I()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Y]}],grow:[{grow:K()}],shrink:[{shrink:K()}],order:[{order:["first","last","none",bn,Y]}],"grid-cols":[{"grid-cols":[wn]}],"col-start-end":[{col:["auto",{span:["full",bn,Y]},Y]}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":[wn]}],"row-start-end":[{row:["auto",{span:[bn,Y]},Y]}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Y]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Y]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...B()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...B(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...B(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[E]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[E]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Y,t]}],"min-w":[{"min-w":[Y,t,"min","max","fit"]}],"max-w":[{"max-w":[Y,t,"none","full","min","max","fit","prose",{screen:[bt]},bt]}],h:[{h:[Y,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Y,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Y,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Y,t,"auto","min","max","fit"]}],"font-size":[{text:["base",bt,xt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",fs]}],"font-family":[{font:[wn]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Y]}],"line-clamp":[{"line-clamp":["none",nn,fs]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",dt,Y]}],"list-image":[{"list-image":["none",Y]}],"list-style-type":[{list:["none","disc","decimal",Y]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...W(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",dt,xt]}],"underline-offset":[{"underline-offset":["auto",dt,Y]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:j()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Y]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Y]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...G(),km]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Mm]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Vm]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...W(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:W()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...W()]}],"outline-offset":[{"outline-offset":[dt,Y]}],"outline-w":[{outline:[dt,xt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:F()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[dt,xt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",bt,Om]}],"shadow-color":[{shadow:[wn]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...U(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":U()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",bt,Y]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[A]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[A]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Y]}],duration:[{duration:te()}],ease:[{ease:["linear","in","out","in-out",Y]}],delay:[{delay:te()}],animate:[{animate:["none","spin","ping","pulse","bounce",Y]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[P]}],"scale-x":[{"scale-x":[P]}],"scale-y":[{"scale-y":[P]}],rotate:[{rotate:[bn,Y]}],"translate-x":[{"translate-x":[D]}],"translate-y":[{"translate-y":[D]}],"skew-x":[{"skew-x":[T]}],"skew-y":[{"skew-y":[T]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Y]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Y]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Y]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[dt,xt,fs]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},Um=Sm(Bm);function q(...e){return Um(yc(e))}const $m=Gh,zm=Kh,Wm=pc,Hm=qh,Cc=y.forwardRef(({className:e,...t},n)=>p.jsx(dc,{className:q("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));Cc.displayName=dc.displayName;const Gm=yi("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-full data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),Pc=y.forwardRef(({side:e="right",className:t,children:n,...r},s)=>p.jsxs(Hm,{children:[p.jsx(Cc,{}),p.jsxs(fc,{ref:s,className:q(Gm({side:e}),t),...r,children:[p.jsxs(pc,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none disabled:pointer-events-none data-[state=open]:bg-secondary",children:[p.jsx(cm,{className:"size-8"}),p.jsx("span",{className:"sr-only",children:"Close"})]}),n]})]}));Pc.displayName=fc.displayName;const Tc=({className:e,...t})=>p.jsx("div",{className:q("flex flex-col space-y-2 text-center sm:text-left",e),...t});Tc.displayName="SheetHeader";const Km=y.forwardRef(({className:e,...t},n)=>p.jsx(hc,{ref:n,className:q("text-lg font-semibold text-foreground",e),...t}));Km.displayName=hc.displayName;const qm=y.forwardRef(({className:e,...t},n)=>p.jsx(mc,{ref:n,className:q("text-sm text-muted-foreground",e),...t}));qm.displayName=mc.displayName;const Xm=yi("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-[18px] leading-[140%] font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-on_primary shadow hover:bg-primary/90",teritary:"bg-teritary hover:bg-teritary/90 text-on_surface",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-outline text-on_surface",secondary:"bg-secondary_container hover:bg-secondary_container/80 text-on_secondary_container",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-white h-8"},size:{default:"h-12 px-5 py-2 rounded-[2px]",sm:"h-10 text-base px-4 rounded-[2px]",lg:"lg:h-[88px] h-12 rounded-[2px] px-8 ",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),Ge=y.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...s},i)=>{const o=r?un:"button";return p.jsx(o,{className:q(Xm({variant:t,size:n,className:e})),ref:i,...s})});Ge.displayName="Button";const Ho=e=>{let t;const n=new Set,r=(c,u)=>{const d=typeof c=="function"?c(t):c;if(!Object.is(d,t)){const f=t;t=u??(typeof d!="object"||d===null)?d:Object.assign({},t,d),n.forEach(m=>m(t,f))}},s=()=>t,a={setState:r,getState:s,getInitialState:()=>l,subscribe:c=>(n.add(c),()=>n.delete(c))},l=t=e(r,s,a);return a},Ym=e=>e?Ho(e):Ho,Zm=e=>e;function Jm(e,t=Zm){const n=re.useSyncExternalStore(e.subscribe,()=>t(e.getState()),()=>t(e.getInitialState()));return re.useDebugValue(n),n}const Qm=e=>{const t=Ym(e),n=r=>Jm(t,r);return Object.assign(n,t),n},ep=e=>Qm;function tp(e,t){let n;try{n=e()}catch{return}return{getItem:s=>{var i;const o=l=>l===null?null:JSON.parse(l,void 0),a=(i=n.getItem(s))!=null?i:null;return a instanceof Promise?a.then(o):o(a)},setItem:(s,i)=>n.setItem(s,JSON.stringify(i,void 0)),removeItem:s=>n.removeItem(s)}}const Vs=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return Vs(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return Vs(r)(n)}}}},np=(e,t)=>(n,r,s)=>{let i={storage:tp(()=>localStorage),partialize:h=>h,version:0,merge:(h,x)=>({...x,...h}),...t},o=!1;const a=new Set,l=new Set;let c=i.storage;if(!c)return e((...h)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),n(...h)},r,s);const u=()=>{const h=i.partialize({...r()});return c.setItem(i.name,{state:h,version:i.version})},d=s.setState;s.setState=(h,x)=>{d(h,x),u()};const f=e((...h)=>{n(...h),u()},r,s);s.getInitialState=()=>f;let m;const g=()=>{var h,x;if(!c)return;o=!1,a.forEach(b=>{var A;return b((A=r())!=null?A:f)});const v=((x=i.onRehydrateStorage)==null?void 0:x.call(i,(h=r())!=null?h:f))||void 0;return Vs(c.getItem.bind(c))(i.name).then(b=>{if(b)if(typeof b.version=="number"&&b.version!==i.version){if(i.migrate){const A=i.migrate(b.state,b.version);return A instanceof Promise?A.then(P=>[!0,P]):[!0,A]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,b.state];return[!1,void 0]}).then(b=>{var A;const[P,S]=b;if(m=i.merge(S,(A=r())!=null?A:f),n(m,!0),P)return u()}).then(()=>{v==null||v(m,void 0),m=r(),o=!0,l.forEach(b=>b(m))}).catch(b=>{v==null||v(void 0,b)})};return s.persist={setOptions:h=>{i={...i,...h},h.storage&&(c=h.storage)},clearStorage:()=>{c==null||c.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>g(),hasHydrated:()=>o,onHydrate:h=>(a.add(h),()=>{a.delete(h)}),onFinishHydration:h=>(l.add(h),()=>{l.delete(h)})},i.skipHydration||g(),m||f},rp=np;var we=(e=>(e.EN="en",e.RU="ru",e))(we||{});const Ne=ep()(rp(e=>({lang:"en",setLang:t=>e({lang:t})}),{name:"lang-storage"})),Os=[{lang:we.RU,data:[{title:"Медиа",link:""},{title:"Контакты",link:"/contacts"},{title:"О выставке",link:"/about"},{title:"Посетителям",link:""},{title:"Экспонентам",link:""}]},{lang:we.EN,data:[{title:"Media",link:""},{title:"Contacts",link:"/contacts"},{title:"About exhibition",link:"/about"},{title:"To the Visitors",link:""},{title:"To the Exhibitors",link:""}]}],Q=e=>e===we.RU?0:1,sp=()=>{const[e,t]=y.useState(!1),n=Ne(r=>r.lang);return p.jsxs($m,{onOpenChange:()=>t(!e),open:e,children:[p.jsx(zm,{children:p.jsxs("div",{className:"flex flex-col gap-1 lg:hidden items-center justify-center size-10",children:[p.jsx("div",{className:"w-[18px] h-0.5 bg-white rounded-[2px]"}),p.jsx("div",{className:"w-[18px] h-0.5 bg-white rounded-[2px]"}),p.jsx("div",{className:"w-[18px] h-0.5 bg-white rounded-[2px]"})]})}),p.jsxs(Pc,{className:"overflow-y-auto",children:[p.jsx(Wm,{}),p.jsxs(Tc,{className:"mt-16 flex flex-col gap-2",children:[p.jsx(De,{to:"",children:p.jsx(Ge,{variant:"secondary",size:"sm",className:"bg-teritary w-full text-on_teritary hover:bg-teritary/90",children:"Официальная поддержка"})}),p.jsx(De,{to:"/B2B-B2G",onClick:()=>t(!1),children:p.jsx(Ge,{className:"text-base w-full",size:"sm",children:"B2B | B2G встречи"})})]}),p.jsx("hr",{className:"border-slate-500/20 my-8"}),p.jsx("div",{className:"flex flex-col gap-6",children:Os[Q(n)].data.map(r=>p.jsx(De,{onClick:()=>t(!1),className:"h-10 text-on_surface",to:r.link,children:r.title},r.title))})]})]})},Ec=({className:e})=>p.jsx("div",{className:q("",e),children:p.jsx("img",{src:"/logo.svg",alt:"logo",className:"md:size-auto h-10"})}),Rc=({className:e,img:t,title:n,iconClassName:r})=>p.jsxs("article",{className:q("bg-bg_surface_container relative hover:bg-teritary_surface_container transition-all md:px-6 px-2 md:h-[224px] h-[124px]",e),children:[p.jsx("div",{className:"bg-primary size-full -z-[10] absolute top-2.5 left-2.5"}),p.jsx("div",{className:q("md:size-[84px] size-12 bg-teritary p-3",r),children:p.jsx("img",{src:t,alt:"theme icon"})}),p.jsx("h3",{className:"md:mt-6 mt-2 md:text-xl text-sm",children:n})]}),ip=({className:e,nums:t,text:n})=>p.jsxs("article",{className:q("px-6 py-4 relative bg-surface_container h-[160px] w-full overflow-hidden",e),children:[p.jsx("img",{src:"/about-card-bg.svg",className:"absolute top-2 right-0"}),p.jsx("h2",{className:"text-primary text-[32px] semibold leading-[130%] mb-4",children:t}),p.jsx("h4",{className:"text-on_surface normal text-base",children:n})]}),op=({className:e,title:t,text:n,img:r,link:s,btnText:i})=>p.jsxs("article",{className:q("md:px-8 md:py-6 p-4 relative overflow-hidden h-[296px] md:w-full w-[300px] text-on_primary",e),children:[p.jsx("div",{className:"absolute size-full z-10 top-0 left-0 bg-gradient-to-r from-25% from-primary to-primary/20 "}),p.jsx("img",{src:r,className:"absolute size-full top-0 right-0 object-cover"}),p.jsxs("div",{className:"relative z-20 h-full",children:[p.jsxs("div",{className:"",children:[p.jsx("h4",{className:"md:text-2xl text-lg mb-4 max-w-[444px] z-20 h-16",children:t}),p.jsx("p",{className:"md:text-base text-sm normal max-w-[360px] z-20",children:n})]}),p.jsx(De,{className:"absolute bottom-0 left-0",target:"_blank",to:s,children:p.jsxs(Ge,{className:"text-sm px-0 h-fit py-0 z-20",variant:"link",children:[i," ",p.jsx(Qh,{})]})})]})]}),Dc=({className:e,name:t,date:n,bottomClassName:r})=>p.jsxs("div",{className:q("rounded-t-[4px] overflow-hidden",e),children:[p.jsx("div",{className:"bg-teritary text-white flex items-center h-11 px-4",children:t}),p.jsx("div",{className:q("h-14 bg-bg_surface_container semibold flex items-center text-lg px-4",r),children:n})]}),ap=({className:e,subtitle:t,title:n,img:r})=>p.jsxs("div",{className:q("flex items-center gap-4",e),children:[p.jsx("div",{className:"bg-secondary_container size-16 rounded-[2px] p-3",children:p.jsx("img",{src:r,alt:"contact icon",className:"size-full"})}),p.jsxs("div",{className:"flex flex-col gap-2",children:[p.jsx("h5",{className:"text-sm text-[#454545]",children:t}),p.jsx("h4",{className:"text-[#171717] semibold",children:n})]})]}),xi=y.createContext({});function bi(e){const t=y.useRef(null);return t.current===null&&(t.current=e()),t.current}const Wr=y.createContext(null),wi=y.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class lp extends y.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,s=r instanceof HTMLElement&&r.offsetWidth||0,i=this.props.sizeRef.current;i.height=n.offsetHeight||0,i.width=n.offsetWidth||0,i.top=n.offsetTop,i.left=n.offsetLeft,i.right=s-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}}function cp({children:e,isPresent:t,anchorX:n}){const r=y.useId(),s=y.useRef(null),i=y.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:o}=y.useContext(wi);return y.useInsertionEffect(()=>{const{width:a,height:l,top:c,left:u,right:d}=i.current;if(t||!s.current||!a||!l)return;const f=n==="left"?`left: ${u}`:`right: ${d}`;s.current.dataset.motionPopId=r;const m=document.createElement("style");return o&&(m.nonce=o),document.head.appendChild(m),m.sheet&&m.sheet.insertRule(` - [data-motion-pop-id="${r}"] { - position: absolute !important; - width: ${a}px !important; - height: ${l}px !important; - ${f}px !important; - top: ${c}px !important; - } - `),()=>{document.head.removeChild(m)}},[t]),p.jsx(lp,{isPresent:t,childRef:s,sizeRef:i,children:y.cloneElement(e,{ref:s})})}const up=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:s,presenceAffectsLayout:i,mode:o,anchorX:a})=>{const l=bi(dp),c=y.useId(),u=y.useCallback(f=>{l.set(f,!0);for(const m of l.values())if(!m)return;r&&r()},[l,r]),d=y.useMemo(()=>({id:c,initial:t,isPresent:n,custom:s,onExitComplete:u,register:f=>(l.set(f,!1),()=>l.delete(f))}),i?[Math.random(),u]:[n,u]);return y.useMemo(()=>{l.forEach((f,m)=>l.set(m,!1))},[n]),y.useEffect(()=>{!n&&!l.size&&r&&r()},[n]),o==="popLayout"&&(e=p.jsx(cp,{isPresent:n,anchorX:a,children:e})),p.jsx(Wr.Provider,{value:d,children:e})};function dp(){return new Map}function jc(e=!0){const t=y.useContext(Wr);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:s}=t,i=y.useId();y.useEffect(()=>{e&&s(i)},[e]);const o=y.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,o]:[!0]}const ur=e=>e.key||"";function Go(e){const t=[];return y.Children.forEach(e,n=>{y.isValidElement(n)&&t.push(n)}),t}const Si=typeof window<"u",Nc=Si?y.useLayoutEffect:y.useEffect,v0=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:s=!0,mode:i="sync",propagate:o=!1,anchorX:a="left"})=>{const[l,c]=jc(o),u=y.useMemo(()=>Go(e),[e]),d=o&&!l?[]:u.map(ur),f=y.useRef(!0),m=y.useRef(u),g=bi(()=>new Map),[h,x]=y.useState(u),[v,b]=y.useState(u);Nc(()=>{f.current=!1,m.current=u;for(let S=0;S{const T=ur(S),E=o&&!l?!1:u===v||d.includes(T),D=()=>{if(g.has(T))g.set(T,!0);else return;let M=!0;g.forEach(_=>{_||(M=!1)}),M&&(P==null||P(),b(m.current),o&&(c==null||c()),r&&r())};return p.jsx(up,{isPresent:E,initial:!f.current||n?void 0:!1,custom:E?void 0:t,presenceAffectsLayout:s,mode:i,onExitComplete:E?void 0:D,anchorX:a,children:S},T)})})},Ie=e=>e;let Fs=Ie;const fp={skipAnimations:!1,useManualTiming:!1};function hp(e){let t=new Set,n=new Set,r=!1,s=!1;const i=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function a(c){i.has(c)&&(l.schedule(c),e()),c(o)}const l={schedule:(c,u=!1,d=!1)=>{const m=d&&r?t:n;return u&&i.add(c),m.has(c)||m.add(c),c},cancel:c=>{n.delete(c),i.delete(c)},process:c=>{if(o=c,r){s=!0;return}r=!0,[t,n]=[n,t],t.forEach(a),t.clear(),r=!1,s&&(s=!1,l.process(c))}};return l}const dr=["read","resolveKeyframes","update","preRender","render","postRender"],mp=40;function Mc(e,t){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,o=dr.reduce((v,b)=>(v[b]=hp(i),v),{}),{read:a,resolveKeyframes:l,update:c,preRender:u,render:d,postRender:f}=o,m=()=>{const v=performance.now();n=!1,s.delta=r?1e3/60:Math.max(Math.min(v-s.timestamp,mp),1),s.timestamp=v,s.isProcessing=!0,a.process(s),l.process(s),c.process(s),u.process(s),d.process(s),f.process(s),s.isProcessing=!1,n&&t&&(r=!1,e(m))},g=()=>{n=!0,r=!0,s.isProcessing||e(m)};return{schedule:dr.reduce((v,b)=>{const A=o[b];return v[b]=(P,S=!1,T=!1)=>(n||g(),A.schedule(P,S,T)),v},{}),cancel:v=>{for(let b=0;bKo[e].some(n=>!!t[n])};function pp(e){for(const t in e)sn[t]={...sn[t],...e[t]}}const gp=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Er(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||gp.has(e)}let _c=e=>!Er(e);function yp(e){e&&(_c=t=>t.startsWith("on")?!Er(t):e(t))}try{yp(require("@emotion/is-prop-valid").default)}catch{}function vp(e,t,n){const r={};for(const s in e)s==="values"&&typeof e.values=="object"||(_c(s)||n===!0&&Er(s)||!t&&!Er(s)||e.draggable&&s.startsWith("onDrag"))&&(r[s]=e[s]);return r}function xp(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,s)=>s==="create"?e:(t.has(s)||t.set(s,e(s)),t.get(s))})}const Hr=y.createContext({});function Fn(e){return typeof e=="string"||Array.isArray(e)}function Gr(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Ai=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ci=["initial",...Ai];function Kr(e){return Gr(e.animate)||Ci.some(t=>Fn(e[t]))}function Vc(e){return!!(Kr(e)||e.variants)}function bp(e,t){if(Kr(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Fn(n)?n:void 0,animate:Fn(r)?r:void 0}}return e.inherit!==!1?t:{}}function wp(e){const{initial:t,animate:n}=bp(e,y.useContext(Hr));return y.useMemo(()=>({initial:t,animate:n}),[qo(t),qo(n)])}function qo(e){return Array.isArray(e)?e.join(" "):e}const Sp=Symbol.for("motionComponentSymbol");function Yt(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Ap(e,t,n){return y.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Yt(n)&&(n.current=r))},[t])}const Pi=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Cp="framerAppearId",Oc="data-"+Pi(Cp),{schedule:Ti,cancel:x0}=Mc(queueMicrotask,!1),Fc=y.createContext({});function Pp(e,t,n,r,s){var i,o;const{visualElement:a}=y.useContext(Hr),l=y.useContext(kc),c=y.useContext(Wr),u=y.useContext(wi).reducedMotion,d=y.useRef(null);r=r||l.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:a,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u}));const f=d.current,m=y.useContext(Fc);f&&!f.projection&&s&&(f.type==="html"||f.type==="svg")&&Tp(d.current,n,s,m);const g=y.useRef(!1);y.useInsertionEffect(()=>{f&&g.current&&f.update(n,c)});const h=n[Oc],x=y.useRef(!!h&&!(!((i=window.MotionHandoffIsComplete)===null||i===void 0)&&i.call(window,h))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,h)));return Nc(()=>{f&&(g.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),Ti.render(f.render),x.current&&f.animationState&&f.animationState.animateChanges())}),y.useEffect(()=>{f&&(!x.current&&f.animationState&&f.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{var v;(v=window.MotionHandoffMarkAsComplete)===null||v===void 0||v.call(window,h)}),x.current=!1))}),f}function Tp(e,t,n,r){const{layoutId:s,layout:i,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Lc(e.parent)),e.projection.setOptions({layoutId:s,layout:i,alwaysMeasureLayout:!!o||a&&Yt(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:c})}function Lc(e){if(e)return e.options.allowProjection!==!1?e.projection:Lc(e.parent)}function Ep({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:s}){var i,o;e&&pp(e);function a(c,u){let d;const f={...y.useContext(wi),...c,layoutId:Rp(c)},{isStatic:m}=f,g=wp(c),h=r(c,m);if(!m&&Si){Dp();const x=jp(f);d=x.MeasureLayout,g.visualElement=Pp(s,h,f,t,x.ProjectionNode)}return p.jsxs(Hr.Provider,{value:g,children:[d&&g.visualElement?p.jsx(d,{visualElement:g.visualElement,...f}):null,n(s,c,Ap(h,g.visualElement,u),h,m,g.visualElement)]})}a.displayName=`motion.${typeof s=="string"?s:`create(${(o=(i=s.displayName)!==null&&i!==void 0?i:s.name)!==null&&o!==void 0?o:""})`}`;const l=y.forwardRef(a);return l[Sp]=s,l}function Rp({layoutId:e}){const t=y.useContext(xi).id;return t&&e!==void 0?t+"-"+e:e}function Dp(e,t){y.useContext(kc).strict}function jp(e){const{drag:t,layout:n}=sn;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const Np=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Ei(e){return typeof e!="string"||e.includes("-")?!1:!!(Np.indexOf(e)>-1||/[A-Z]/u.test(e))}function Xo(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Ri(e,t,n,r){if(typeof t=="function"){const[s,i]=Xo(r);t=t(n!==void 0?n:e.custom,s,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[s,i]=Xo(r);t=t(n!==void 0?n:e.custom,s,i)}return t}const Ls=e=>Array.isArray(e),Mp=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),kp=e=>Ls(e)?e[e.length-1]||0:e,Te=e=>!!(e&&e.getVelocity);function br(e){const t=Te(e)?e.get():e;return Mp(t)?t.toValue():t}function _p({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,s,i){const o={latestValues:Vp(r,s,i,e),renderState:t()};return n&&(o.onMount=a=>n({props:r,current:a,...o}),o.onUpdate=a=>n(a)),o}const Ic=e=>(t,n)=>{const r=y.useContext(Hr),s=y.useContext(Wr),i=()=>_p(e,t,r,s);return n?i():bi(i)};function Vp(e,t,n,r){const s={},i=r(e,{});for(const f in i)s[f]=br(i[f]);let{initial:o,animate:a}=e;const l=Kr(e),c=Vc(e);t&&c&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let u=n?n.initial===!1:!1;u=u||o===!1;const d=u?a:o;if(d&&typeof d!="boolean"&&!Gr(d)){const f=Array.isArray(d)?d:[d];for(let m=0;mt=>typeof t=="string"&&t.startsWith(e),Di=Bc("--"),Op=Bc("var(--"),ji=e=>Op(e)?Fp.test(e.split("/*")[0].trim()):!1,Fp=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Uc=(e,t)=>t&&typeof e=="number"?t.transform(e):e,gt=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},Ln={...mn,transform:e=>gt(0,1,e)},fr={...mn,default:1},qn=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),St=qn("deg"),ot=qn("%"),H=qn("px"),Lp=qn("vh"),Ip=qn("vw"),Yo={...ot,parse:e=>ot.parse(e)/100,transform:e=>ot.transform(e*100)},Bp={borderWidth:H,borderTopWidth:H,borderRightWidth:H,borderBottomWidth:H,borderLeftWidth:H,borderRadius:H,radius:H,borderTopLeftRadius:H,borderTopRightRadius:H,borderBottomRightRadius:H,borderBottomLeftRadius:H,width:H,maxWidth:H,height:H,maxHeight:H,top:H,right:H,bottom:H,left:H,padding:H,paddingTop:H,paddingRight:H,paddingBottom:H,paddingLeft:H,margin:H,marginTop:H,marginRight:H,marginBottom:H,marginLeft:H,backgroundPositionX:H,backgroundPositionY:H},Up={rotate:St,rotateX:St,rotateY:St,rotateZ:St,scale:fr,scaleX:fr,scaleY:fr,scaleZ:fr,skew:St,skewX:St,skewY:St,distance:H,translateX:H,translateY:H,translateZ:H,x:H,y:H,z:H,perspective:H,transformPerspective:H,opacity:Ln,originX:Yo,originY:Yo,originZ:H},Zo={...mn,transform:Math.round},Ni={...Bp,...Up,zIndex:Zo,size:H,fillOpacity:Ln,strokeOpacity:Ln,numOctaves:Zo},$p={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},zp=hn.length;function Wp(e,t,n){let r="",s=!0;for(let i=0;i({style:{},transform:{},transformOrigin:{},vars:{}}),$c=()=>({..._i(),attrs:{}}),Vi=e=>typeof e=="string"&&e.toLowerCase()==="svg";function zc(e,{style:t,vars:n},r,s){Object.assign(e.style,t,s&&s.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const Wc=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Hc(e,t,n,r){zc(e,t,void 0,r);for(const s in t.attrs)e.setAttribute(Wc.has(s)?s:Pi(s),t.attrs[s])}const In={};function Xp(e){for(const t in e)In[t]=e[t],Di(t)&&(In[t].isCSSVariable=!0)}function Gc(e,{layout:t,layoutId:n}){return Ht.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!In[e]||e==="opacity")}function Oi(e,t,n){var r;const{style:s}=e,i={};for(const o in s)(Te(s[o])||t.style&&Te(t.style[o])||Gc(o,e)||((r=n==null?void 0:n.getValue(o))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(i[o]=s[o]);return i}function Kc(e,t,n){const r=Oi(e,t,n);for(const s in e)if(Te(e[s])||Te(t[s])){const i=hn.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;r[i]=e[s]}return r}function Yp(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const Qo=["x","y","width","height","cx","cy","r"],Zp={useVisualState:Ic({scrapeMotionValuesFromProps:Kc,createRenderState:$c,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:s})=>{if(!n)return;let i=!!e.drag;if(!i){for(const a in s)if(Ht.has(a)){i=!0;break}}if(!i)return;let o=!t;if(t)for(let a=0;a{Yp(n,r),le.render(()=>{ki(r,s,Vi(n.tagName),e.transformTemplate),Hc(n,r)})})}})},Jp={useVisualState:Ic({scrapeMotionValuesFromProps:Oi,createRenderState:_i})};function qc(e,t,n){for(const r in t)!Te(t[r])&&!Gc(r,n)&&(e[r]=t[r])}function Qp({transformTemplate:e},t){return y.useMemo(()=>{const n=_i();return Mi(n,t,e),Object.assign({},n.vars,n.style)},[t])}function eg(e,t){const n=e.style||{},r={};return qc(r,n,e),Object.assign(r,Qp(e,t)),r}function tg(e,t){const n={},r=eg(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function ng(e,t,n,r){const s=y.useMemo(()=>{const i=$c();return ki(i,t,Vi(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};qc(i,e.style,e),s.style={...i,...s.style}}return s}function rg(e=!1){return(n,r,s,{latestValues:i},o)=>{const l=(Ei(n)?ng:tg)(r,i,o,n),c=vp(r,typeof n=="string",e),u=n!==y.Fragment?{...c,...l,ref:s}:{},{children:d}=r,f=y.useMemo(()=>Te(d)?d.get():d,[d]);return y.createElement(n,{...u,children:f})}}function sg(e,t){return function(r,{forwardMotionProps:s}={forwardMotionProps:!1}){const o={...Ei(r)?Zp:Jp,preloadedFeatures:e,useRender:rg(s),createVisualElement:t,Component:r};return Ep(o)}}function Xc(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r(wr===void 0&&at.set(Se.isProcessing||fp.useManualTiming?Se.timestamp:performance.now()),wr),set:e=>{wr=e,queueMicrotask(ig)}};function Li(e,t){e.indexOf(t)===-1&&e.push(t)}function Ii(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Bi{constructor(){this.subscriptions=[]}add(t){return Li(this.subscriptions,t),()=>Ii(this.subscriptions,t)}notify(t,n,r){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,n,r);else for(let i=0;i!isNaN(parseFloat(e));class ag{constructor(t,n={}){this.version="12.0.6",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,s=!0)=>{const i=at.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),s&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=at.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=og(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Bi);const r=this.events[t].add(n);return t==="change"?()=>{r(),le.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=at.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>ea)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,ea);return Zc(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Bn(e,t){return new ag(e,t)}function lg(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Bn(n))}function cg(e,t){const n=qr(e,t);let{transitionEnd:r={},transition:s={},...i}=n||{};i={...i,...r};for(const o in i){const a=kp(i[o]);lg(e,o,a)}}function ug(e){return!!(Te(e)&&e.add)}function Is(e,t){const n=e.getValue("willChange");if(ug(n))return n.add(t)}function Jc(e){return e.props[Oc]}function Ui(e){let t;return()=>(t===void 0&&(t=e()),t)}const dg=Ui(()=>window.ScrollTimeline!==void 0);class fg{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r{if(dg()&&s.attachTimeline)return s.attachTimeline(t);if(typeof n=="function")return n(s)});return()=>{r.forEach((s,i)=>{s&&s(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;nn[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class hg extends fg{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}const mt=e=>e*1e3,pt=e=>e/1e3;function $i(e){return typeof e=="function"}function ta(e,t){e.timeline=t,e.onfinish=null}const zi=e=>Array.isArray(e)&&typeof e[0]=="number",mg={linearEasing:void 0};function pg(e,t){const n=Ui(e);return()=>{var r;return(r=mg[t])!==null&&r!==void 0?r:n()}}const Rr=pg(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),on=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Qc=(e,t,n=10)=>{let r="";const s=Math.max(Math.round(t/n),2);for(let i=0;i`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Bs={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Pn([0,.65,.55,1]),circOut:Pn([.55,0,1,.45]),backIn:Pn([.31,.01,.66,-.59]),backOut:Pn([.33,1.53,.69,.99])};function tu(e,t){if(e)return typeof e=="function"&&Rr()?Qc(e,t):zi(e)?Pn(e):Array.isArray(e)?e.map(n=>tu(n,t)||Bs.easeOut):Bs[e]}const nu=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,gg=1e-7,yg=12;function vg(e,t,n,r,s){let i,o,a=0;do o=t+(n-t)/2,i=nu(o,r,s)-e,i>0?n=o:t=o;while(Math.abs(i)>gg&&++avg(i,0,1,e,n);return i=>i===0||i===1?i:nu(s(i),t,r)}const ru=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,su=e=>t=>1-e(1-t),iu=Xn(.33,1.53,.69,.99),Wi=su(iu),ou=ru(Wi),au=e=>(e*=2)<1?.5*Wi(e):.5*(2-Math.pow(2,-10*(e-1))),Hi=e=>1-Math.sin(Math.acos(e)),lu=su(Hi),cu=ru(Hi),uu=e=>/^0[^.\s]+$/u.test(e);function xg(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||uu(e):!0}const Dn=e=>Math.round(e*1e5)/1e5,Gi=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function bg(e){return e==null}const wg=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ki=(e,t)=>n=>!!(typeof n=="string"&&wg.test(n)&&n.startsWith(e)||t&&!bg(n)&&Object.prototype.hasOwnProperty.call(n,t)),du=(e,t,n)=>r=>{if(typeof r!="string")return r;const[s,i,o,a]=r.match(Gi);return{[e]:parseFloat(s),[t]:parseFloat(i),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},Sg=e=>gt(0,255,e),ms={...mn,transform:e=>Math.round(Sg(e))},Ft={test:Ki("rgb","red"),parse:du("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ms.transform(e)+", "+ms.transform(t)+", "+ms.transform(n)+", "+Dn(Ln.transform(r))+")"};function Ag(e){let t="",n="",r="",s="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),s=e.substring(4,5),t+=t,n+=n,r+=r,s+=s),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}}const Us={test:Ki("#"),parse:Ag,transform:Ft.transform},Zt={test:Ki("hsl","hue"),parse:du("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ot.transform(Dn(t))+", "+ot.transform(Dn(n))+", "+Dn(Ln.transform(r))+")"},Pe={test:e=>Ft.test(e)||Us.test(e)||Zt.test(e),parse:e=>Ft.test(e)?Ft.parse(e):Zt.test(e)?Zt.parse(e):Us.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ft.transform(e):Zt.transform(e)},Cg=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Pg(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Gi))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Cg))===null||n===void 0?void 0:n.length)||0)>0}const fu="number",hu="color",Tg="var",Eg="var(",na="${}",Rg=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Un(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},s=[];let i=0;const a=t.replace(Rg,l=>(Pe.test(l)?(r.color.push(i),s.push(hu),n.push(Pe.parse(l))):l.startsWith(Eg)?(r.var.push(i),s.push(Tg),n.push(l)):(r.number.push(i),s.push(fu),n.push(parseFloat(l))),++i,na)).split(na);return{values:n,split:a,indexes:r,types:s}}function mu(e){return Un(e).values}function pu(e){const{split:t,types:n}=Un(e),r=t.length;return s=>{let i="";for(let o=0;otypeof e=="number"?0:e;function jg(e){const t=mu(e);return pu(e)(t.map(Dg))}const Tt={test:Pg,parse:mu,createTransformer:pu,getAnimatableNone:jg},Ng=new Set(["brightness","contrast","saturate","opacity"]);function Mg(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Gi)||[];if(!r)return e;const s=n.replace(r,"");let i=Ng.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+s+")"}const kg=/\b([a-z-]*)\(.*?\)/gu,$s={...Tt,getAnimatableNone:e=>{const t=e.match(kg);return t?t.map(Mg).join(" "):e}},_g={...Ni,color:Pe,backgroundColor:Pe,outlineColor:Pe,fill:Pe,stroke:Pe,borderColor:Pe,borderTopColor:Pe,borderRightColor:Pe,borderBottomColor:Pe,borderLeftColor:Pe,filter:$s,WebkitFilter:$s},qi=e=>_g[e];function gu(e,t){let n=qi(e);return n!==$s&&(n=Tt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Vg=new Set(["auto","none","0"]);function Og(e,t,n){let r=0,s;for(;re===mn||e===H,sa=(e,t)=>parseFloat(e.split(", ")[t]),ia=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const s=r.match(/^matrix3d\((.+)\)$/u);if(s)return sa(s[1],t);{const i=r.match(/^matrix\((.+)\)$/u);return i?sa(i[1],e):0}},Fg=new Set(["x","y","z"]),Lg=hn.filter(e=>!Fg.has(e));function Ig(e){const t=[];return Lg.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const an={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:ia(4,13),y:ia(5,14)};an.translateX=an.x;an.translateY=an.y;const It=new Set;let zs=!1,Ws=!1;function yu(){if(Ws){const e=Array.from(It).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const s=Ig(r);s.length&&(n.set(r,s),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const s=n.get(r);s&&s.forEach(([i,o])=>{var a;(a=r.getValue(i))===null||a===void 0||a.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Ws=!1,zs=!1,It.forEach(e=>e.complete()),It.clear()}function vu(){It.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Ws=!0)})}function Bg(){vu(),yu()}class Xi{constructor(t,n,r,s,i,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=s,this.element=i,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(It.add(this),zs||(zs=!0,le.read(vu),le.resolveKeyframes(yu))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:s}=this;for(let i=0;i/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Ug=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function $g(e){const t=Ug.exec(e);if(!t)return[,];const[,n,r,s]=t;return[`--${n??r}`,s]}function bu(e,t,n=1){const[r,s]=$g(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const o=i.trim();return xu(o)?parseFloat(o):o}return ji(s)?bu(s,t,n+1):s}const wu=e=>t=>t.test(e),zg={test:e=>e==="auto",parse:e=>e},Su=[mn,H,ot,St,Ip,Lp,zg],oa=e=>Su.find(wu(e));class Au extends Xi{constructor(t,n,r,s,i){super(t,n,r,s,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l{n.getValue(l).set(c)}),this.resolveNoneKeyframes()}}const aa=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Tt.test(e)||e==="0")&&!e.startsWith("url("));function Wg(e){const t=e[0];if(e.length===1)return!0;for(let n=0;ne!==null;function Xr(e,{repeat:t,repeatType:n="loop"},r){const s=e.filter(Gg),i=t&&n!=="loop"&&t%2===1?0:s.length-1;return!i||r===void 0?s[i]:r}const Kg=40;class Cu{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:o="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=at.now(),this.options={autoplay:t,delay:n,type:r,repeat:s,repeatDelay:i,repeatType:o,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>Kg?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Bg(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=at.now(),this.hasAttemptedResolve=!0;const{name:r,type:s,velocity:i,delay:o,onComplete:a,onUpdate:l,isGenerator:c}=this.options;if(!c&&!Hg(t,r,s,i))if(o)this.options.duration=0;else{l&&l(Xr(t,this.options,n)),a&&a(),this.resolveFinishedPromise();return}const u=this.initPlayback(t,n);u!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...u},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const Hs=2e4;function Pu(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=Hs?1/0:t}const ce=(e,t,n)=>e+(t-e)*n;function ps(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function qg({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let s=0,i=0,o=0;if(!t)s=i=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;s=ps(l,a,e+1/3),i=ps(l,a,e),o=ps(l,a,e-1/3)}return{red:Math.round(s*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:r}}function Dr(e,t){return n=>n>0?t:e}const gs=(e,t,n)=>{const r=e*e,s=n*(t*t-r)+r;return s<0?0:Math.sqrt(s)},Xg=[Us,Ft,Zt],Yg=e=>Xg.find(t=>t.test(e));function la(e){const t=Yg(e);if(!t)return!1;let n=t.parse(e);return t===Zt&&(n=qg(n)),n}const ca=(e,t)=>{const n=la(e),r=la(t);if(!n||!r)return Dr(e,t);const s={...n};return i=>(s.red=gs(n.red,r.red,i),s.green=gs(n.green,r.green,i),s.blue=gs(n.blue,r.blue,i),s.alpha=ce(n.alpha,r.alpha,i),Ft.transform(s))},Zg=(e,t)=>n=>t(e(n)),Yn=(...e)=>e.reduce(Zg),Gs=new Set(["none","hidden"]);function Jg(e,t){return Gs.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Qg(e,t){return n=>ce(e,t,n)}function Yi(e){return typeof e=="number"?Qg:typeof e=="string"?ji(e)?Dr:Pe.test(e)?ca:ny:Array.isArray(e)?Tu:typeof e=="object"?Pe.test(e)?ca:ey:Dr}function Tu(e,t){const n=[...e],r=n.length,s=e.map((i,o)=>Yi(i)(i,t[o]));return i=>{for(let o=0;o{for(const i in r)n[i]=r[i](s);return n}}function ty(e,t){var n;const r=[],s={color:0,var:0,number:0};for(let i=0;i{const n=Tt.createTransformer(t),r=Un(e),s=Un(t);return r.indexes.var.length===s.indexes.var.length&&r.indexes.color.length===s.indexes.color.length&&r.indexes.number.length>=s.indexes.number.length?Gs.has(e)&&!s.values.length||Gs.has(t)&&!r.values.length?Jg(e,t):Yn(Tu(ty(r,s),s.values),n):Dr(e,t)};function Eu(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ce(e,t,n):Yi(e)(e,t)}const ry=5;function Ru(e,t,n){const r=Math.max(t-ry,0);return Zc(n-e(r),t-r)}const de={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},ua=.001;function sy({duration:e=de.duration,bounce:t=de.bounce,velocity:n=de.velocity,mass:r=de.mass}){let s,i,o=1-t;o=gt(de.minDamping,de.maxDamping,o),e=gt(de.minDuration,de.maxDuration,pt(e)),o<1?(s=c=>{const u=c*o,d=u*e,f=u-n,m=Ks(c,o),g=Math.exp(-d);return ua-f/m*g},i=c=>{const d=c*o*e,f=d*n+n,m=Math.pow(o,2)*Math.pow(c,2)*e,g=Math.exp(-d),h=Ks(Math.pow(c,2),o);return(-s(c)+ua>0?-1:1)*((f-m)*g)/h}):(s=c=>{const u=Math.exp(-c*e),d=(c-n)*e+1;return-.001+u*d},i=c=>{const u=Math.exp(-c*e),d=(n-c)*(e*e);return u*d});const a=5/e,l=oy(s,i,a);if(e=mt(e),isNaN(l))return{stiffness:de.stiffness,damping:de.damping,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:o*2*Math.sqrt(r*c),duration:e}}}const iy=12;function oy(e,t,n){let r=n;for(let s=1;se[n]!==void 0)}function cy(e){let t={velocity:de.velocity,stiffness:de.stiffness,damping:de.damping,mass:de.mass,isResolvedFromDuration:!1,...e};if(!da(e,ly)&&da(e,ay))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),s=r*r,i=2*gt(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:de.mass,stiffness:s,damping:i}}else{const n=sy(e);t={...t,...n,mass:de.mass},t.isResolvedFromDuration=!0}return t}function Du(e=de.visualDuration,t=de.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:s}=n;const i=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:l,damping:c,mass:u,duration:d,velocity:f,isResolvedFromDuration:m}=cy({...n,velocity:-pt(n.velocity||0)}),g=f||0,h=c/(2*Math.sqrt(l*u)),x=o-i,v=pt(Math.sqrt(l/u)),b=Math.abs(x)<5;r||(r=b?de.restSpeed.granular:de.restSpeed.default),s||(s=b?de.restDelta.granular:de.restDelta.default);let A;if(h<1){const S=Ks(v,h);A=T=>{const E=Math.exp(-h*v*T);return o-E*((g+h*v*x)/S*Math.sin(S*T)+x*Math.cos(S*T))}}else if(h===1)A=S=>o-Math.exp(-v*S)*(x+(g+v*x)*S);else{const S=v*Math.sqrt(h*h-1);A=T=>{const E=Math.exp(-h*v*T),D=Math.min(S*T,300);return o-E*((g+h*v*x)*Math.sinh(D)+S*x*Math.cosh(D))/S}}const P={calculatedDuration:m&&d||null,next:S=>{const T=A(S);if(m)a.done=S>=d;else{let E=0;h<1&&(E=S===0?mt(g):Ru(A,S,T));const D=Math.abs(E)<=r,M=Math.abs(o-T)<=s;a.done=D&&M}return a.value=a.done?o:T,a},toString:()=>{const S=Math.min(Pu(P),Hs),T=Qc(E=>P.next(S*E).value,S,30);return S+"ms "+T}};return P}function fa({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:i=500,modifyTarget:o,min:a,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],f={done:!1,value:d},m=D=>a!==void 0&&Dl,g=D=>a===void 0?l:l===void 0||Math.abs(a-D)-h*Math.exp(-D/r),A=D=>v+b(D),P=D=>{const M=b(D),_=A(D);f.done=Math.abs(M)<=c,f.value=f.done?v:_};let S,T;const E=D=>{m(f.value)&&(S=D,T=Du({keyframes:[f.value,g(f.value)],velocity:Ru(A,D,f.value),damping:s,stiffness:i,restDelta:c,restSpeed:u}))};return E(0),{calculatedDuration:null,next:D=>{let M=!1;return!T&&S===void 0&&(M=!0,P(D),E(D)),S!==void 0&&D>=S?T.next(D-S):(!M&&P(D),f)}}}const uy=Xn(.42,0,1,1),dy=Xn(0,0,.58,1),ju=Xn(.42,0,.58,1),fy=e=>Array.isArray(e)&&typeof e[0]!="number",ha={linear:Ie,easeIn:uy,easeInOut:ju,easeOut:dy,circIn:Hi,circInOut:cu,circOut:lu,backIn:Wi,backInOut:ou,backOut:iu,anticipate:au},ma=e=>{if(zi(e)){Fs(e.length===4);const[t,n,r,s]=e;return Xn(t,n,r,s)}else if(typeof e=="string")return Fs(ha[e]!==void 0),ha[e];return e};function hy(e,t,n){const r=[],s=n||Eu,i=e.length-1;for(let o=0;ot[0];if(i===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=hy(t,r,s),l=a.length,c=u=>{if(o&&u1)for(;dc(gt(e[0],e[i-1],u)):c}function py(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const s=on(0,t,r);e.push(ce(n,1,s))}}function gy(e){const t=[0];return py(t,e.length-1),t}function yy(e,t){return e.map(n=>n*t)}function vy(e,t){return e.map(()=>t||ju).splice(0,e.length-1)}function jr({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const s=fy(r)?r.map(ma):ma(r),i={done:!1,value:t[0]},o=yy(n&&n.length===t.length?n:gy(t),e),a=my(o,t,{ease:Array.isArray(s)?s:vy(t,s)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const xy=e=>{const t=({timestamp:n})=>e(n);return{start:()=>le.update(t,!0),stop:()=>Pt(t),now:()=>Se.isProcessing?Se.timestamp:at.now()}},by={decay:fa,inertia:fa,tween:jr,keyframes:jr,spring:Du},wy=e=>e/100;class Zi extends Cu{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:r,element:s,keyframes:i}=this.options,o=(s==null?void 0:s.KeyframeResolver)||Xi,a=(l,c)=>this.onKeyframesResolved(l,c);this.resolver=new o(i,a,n,r,s),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:s=0,repeatType:i,velocity:o=0}=this.options,a=$i(n)?n:by[n]||jr;let l,c;a!==jr&&typeof t[0]!="number"&&(l=Yn(wy,Eu(t[0],t[1])),t=[0,100]);const u=a({...this.options,keyframes:t});i==="mirror"&&(c=a({...this.options,keyframes:[...t].reverse(),velocity:-o})),u.calculatedDuration===null&&(u.calculatedDuration=Pu(u));const{calculatedDuration:d}=u,f=d+s,m=f*(r+1)-s;return{generator:u,mirroredGenerator:c,mapPercentToKeyframes:l,calculatedDuration:d,resolvedDuration:f,totalDuration:m}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:D}=this.options;return{done:!0,value:D[D.length-1]}}const{finalKeyframe:s,generator:i,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:c,totalDuration:u,resolvedDuration:d}=r;if(this.startTime===null)return i.next(0);const{delay:f,repeat:m,repeatType:g,repeatDelay:h,onUpdate:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-u/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const v=this.currentTime-f*(this.speed>=0?1:-1),b=this.speed>=0?v<0:v>u;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let A=this.currentTime,P=i;if(m){const D=Math.min(this.currentTime,u)/d;let M=Math.floor(D),_=D%1;!_&&D>=1&&(_=1),_===1&&M--,M=Math.min(M,m+1),!!(M%2)&&(g==="reverse"?(_=1-_,h&&(_-=h/d)):g==="mirror"&&(P=o)),A=gt(0,1,_)*d}const S=b?{done:!1,value:l[0]}:P.next(A);a&&(S.value=a(S.value));let{done:T}=S;!b&&c!==null&&(T=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const E=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&T);return E&&s!==void 0&&(S.value=Xr(l,this.options,s)),x&&x(S.value),E&&this.finish(),S}get duration(){const{resolved:t}=this;return t?pt(t.calculatedDuration):0}get time(){return pt(this.currentTime)}set time(t){t=mt(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=pt(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=xy,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),n&&n();const s=this.driver.now();this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=s):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const Sy=new Set(["opacity","clipPath","filter","transform"]);function Ay(e,t,n,{delay:r=0,duration:s=300,repeat:i=0,repeatType:o="loop",ease:a="easeInOut",times:l}={}){const c={[t]:n};l&&(c.offset=l);const u=tu(a,s);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:r,duration:s,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"})}const Cy=Ui(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Nr=10,Py=2e4;function Ty(e){return $i(e.type)||e.type==="spring"||!eu(e.ease)}function Ey(e,t){const n=new Zi({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const s=[];let i=0;for(;!r.done&&ithis.onKeyframesResolved(o,a),n,r,s),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:s,ease:i,type:o,motionValue:a,name:l,startTime:c}=this.options;if(!a.owner||!a.owner.current)return!1;if(typeof i=="string"&&Rr()&&Ry(i)&&(i=Nu[i]),Ty(this.options)){const{onComplete:d,onUpdate:f,motionValue:m,element:g,...h}=this.options,x=Ey(t,h);t=x.keyframes,t.length===1&&(t[1]=t[0]),r=x.duration,s=x.times,i=x.ease,o="keyframes"}const u=Ay(a.owner.current,l,t,{...this.options,duration:r,times:s,ease:i});return u.startTime=c??this.calcStartTime(),this.pendingTimeline?(ta(u,this.pendingTimeline),this.pendingTimeline=void 0):u.onfinish=()=>{const{onComplete:d}=this.options;a.set(Xr(t,this.options,n)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:r,times:s,type:o,ease:i,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return pt(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return pt(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=mt(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Ie;const{animation:r}=n;ta(r,t)}return Ie}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:s,type:i,ease:o,times:a}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:c,onUpdate:u,onComplete:d,element:f,...m}=this.options,g=new Zi({...m,keyframes:r,duration:s,type:i,ease:o,times:a,isGenerator:!0}),h=mt(this.time);c.setWithVelocity(g.sample(h-Nr).value,g.sample(h).value,Nr)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:s,repeatType:i,damping:o,type:a}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=n.owner.getProps();return Cy()&&r&&Sy.has(r)&&!l&&!c&&!s&&i!=="mirror"&&o!==0&&a!=="inertia"}}const Dy={type:"spring",stiffness:500,damping:25,restSpeed:10},jy=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Ny={type:"keyframes",duration:.8},My={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ky=(e,{keyframes:t})=>t.length>2?Ny:Ht.has(e)?e.startsWith("scale")?jy(t[1]):Dy:My;function _y({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:s,repeat:i,repeatType:o,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}const Ji=(e,t,n,r={},s,i)=>o=>{const a=Fi(r,e)||{},l=a.delay||r.delay||0;let{elapsed:c=0}=r;c=c-mt(l);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:s};_y(a)||(u={...u,...ky(e,u)}),u.duration&&(u.duration=mt(u.duration)),u.repeatDelay&&(u.repeatDelay=mt(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(u.duration=0,u.delay===0&&(d=!0)),d&&!i&&t.get()!==void 0){const f=Xr(u.keyframes,a);if(f!==void 0)return le.update(()=>{u.onUpdate(f),u.onComplete()}),new hg([])}return!i&&pa.supports(u)?new pa(u):new Zi(u)};function Vy({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Mu(e,t,{delay:n=0,transitionOverride:r,type:s}={}){var i;let{transition:o=e.getDefaultTransition(),transitionEnd:a,...l}=t;r&&(o=r);const c=[],u=s&&e.animationState&&e.animationState.getState()[s];for(const d in l){const f=e.getValue(d,(i=e.latestValues[d])!==null&&i!==void 0?i:null),m=l[d];if(m===void 0||u&&Vy(u,d))continue;const g={delay:n,...Fi(o||{},d)};let h=!1;if(window.MotionHandoffAnimation){const v=Jc(e);if(v){const b=window.MotionHandoffAnimation(v,d,le);b!==null&&(g.startTime=b,h=!0)}}Is(e,d),f.start(Ji(d,f,m,e.shouldReduceMotion&&Yc.has(d)?{type:!1}:g,e,h));const x=f.animation;x&&c.push(x)}return a&&Promise.all(c).then(()=>{le.update(()=>{a&&cg(e,a)})}),c}function qs(e,t,n={}){var r;const s=qr(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const o=s?()=>Promise.all(Mu(e,s,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:f}=i;return Oy(e,t,u+c,d,f,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[c,u]=l==="beforeChildren"?[o,a]:[a,o];return c().then(()=>u())}else return Promise.all([o(),a(n.delay)])}function Oy(e,t,n=0,r=0,s=1,i){const o=[],a=(e.variantChildren.size-1)*r,l=s===1?(c=0)=>c*r:(c=0)=>a-c*r;return Array.from(e.variantChildren).sort(Fy).forEach((c,u)=>{c.notify("AnimationStart",t),o.push(qs(c,t,{...i,delay:n+l(u)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(o)}function Fy(e,t){return e.sortNodePosition(t)}function Ly(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const s=t.map(i=>qs(e,i,n));r=Promise.all(s)}else if(typeof t=="string")r=qs(e,t,n);else{const s=typeof t=="function"?qr(e,t,n.custom):t;r=Promise.all(Mu(e,s,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const Iy=Ci.length;function ku(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?ku(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;nPromise.all(t.map(({animation:n,options:r})=>Ly(e,n,r)))}function zy(e){let t=$y(e),n=ga(),r=!0;const s=l=>(c,u)=>{var d;const f=qr(e,u,l==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){const{transition:m,transitionEnd:g,...h}=f;c={...c,...h,...g}}return c};function i(l){t=l(e)}function o(l){const{props:c}=e,u=ku(e.parent)||{},d=[],f=new Set;let m={},g=1/0;for(let x=0;xg&&P,M=!1;const _=Array.isArray(A)?A:[A];let I=_.reduce(s(v),{});S===!1&&(I={});const{prevResolvedValues:j={}}=b,F={...j,...I},L=U=>{D=!0,f.has(U)&&(M=!0,f.delete(U)),b.needsAnimating[U]=!0;const B=e.getValue(U);B&&(B.liveStyle=!1)};for(const U in F){const B=I[U],K=j[U];if(m.hasOwnProperty(U))continue;let ee=!1;Ls(B)&&Ls(K)?ee=!Xc(B,K):ee=B!==K,ee?B!=null?L(U):f.add(U):B!==void 0&&f.has(U)?L(U):b.protectedKeys[U]=!0}b.prevProp=A,b.prevResolvedValues=I,b.isActive&&(m={...m,...I}),r&&e.blockInitialAnimation&&(D=!1),D&&(!(T&&E)||M)&&d.push(..._.map(U=>({animation:U,options:{type:v}})))}if(f.size){const x={};f.forEach(v=>{const b=e.getBaseTarget(v),A=e.getValue(v);A&&(A.liveStyle=!0),x[v]=b??null}),d.push({animation:x})}let h=!!d.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(h=!1),r=!1,h?t(d):Promise.resolve()}function a(l,c){var u;if(n[l].isActive===c)return Promise.resolve();(u=e.variantChildren)===null||u===void 0||u.forEach(f=>{var m;return(m=f.animationState)===null||m===void 0?void 0:m.setActive(l,c)}),n[l].isActive=c;const d=o(l);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:o,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=ga(),r=!0}}}function Wy(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Xc(t,e):!1}function _t(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ga(){return{animate:_t(!0),whileInView:_t(),whileHover:_t(),whileTap:_t(),whileDrag:_t(),whileFocus:_t(),exit:_t()}}class jt{constructor(t){this.isMounted=!1,this.node=t}update(){}}class Hy extends jt{constructor(t){super(t),t.animationState||(t.animationState=zy(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Gr(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let Gy=0;class Ky extends jt{constructor(){super(...arguments),this.id=Gy++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const s=this.node.animationState.setActive("exit",!t);n&&!t&&s.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const qy={animation:{Feature:Hy},exit:{Feature:Ky}},qe={x:!1,y:!1};function _u(){return qe.x||qe.y}function Xy(e){return e==="x"||e==="y"?qe[e]?null:(qe[e]=!0,()=>{qe[e]=!1}):qe.x||qe.y?null:(qe.x=qe.y=!0,()=>{qe.x=qe.y=!1})}const Qi=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function $n(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Zn(e){return{point:{x:e.pageX,y:e.pageY}}}const Yy=e=>t=>Qi(t)&&e(t,Zn(t));function jn(e,t,n,r){return $n(e,t,Yy(n),r)}const ya=(e,t)=>Math.abs(e-t);function Zy(e,t){const n=ya(e.x,t.x),r=ya(e.y,t.y);return Math.sqrt(n**2+r**2)}class Vu{constructor(t,n,{transformPagePoint:r,contextWindow:s,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=vs(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,m=Zy(d.offset,{x:0,y:0})>=3;if(!f&&!m)return;const{point:g}=d,{timestamp:h}=Se;this.history.push({...g,timestamp:h});const{onStart:x,onMove:v}=this.handlers;f||(x&&x(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=ys(f,this.transformPagePoint),le.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:m,onSessionEnd:g,resumeAnimation:h}=this.handlers;if(this.dragSnapToOrigin&&h&&h(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=vs(d.type==="pointercancel"?this.lastMoveEventInfo:ys(f,this.transformPagePoint),this.history);this.startEvent&&m&&m(d,x),g&&g(d,x)},!Qi(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=s||window;const o=Zn(t),a=ys(o,this.transformPagePoint),{point:l}=a,{timestamp:c}=Se;this.history=[{...l,timestamp:c}];const{onSessionStart:u}=n;u&&u(t,vs(a,this.history)),this.removeListeners=Yn(jn(this.contextWindow,"pointermove",this.handlePointerMove),jn(this.contextWindow,"pointerup",this.handlePointerUp),jn(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Pt(this.updatePoint)}}function ys(e,t){return t?{point:t(e.point)}:e}function va(e,t){return{x:e.x-t.x,y:e.y-t.y}}function vs({point:e},t){return{point:e,delta:va(e,Ou(t)),offset:va(e,Jy(t)),velocity:Qy(t,.1)}}function Jy(e){return e[0]}function Ou(e){return e[e.length-1]}function Qy(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const s=Ou(e);for(;n>=0&&(r=e[n],!(s.timestamp-r.timestamp>mt(t)));)n--;if(!r)return{x:0,y:0};const i=pt(s.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const o={x:(s.x-r.x)/i,y:(s.y-r.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}const Fu=1e-4,ev=1-Fu,tv=1+Fu,Lu=.01,nv=0-Lu,rv=0+Lu;function je(e){return e.max-e.min}function sv(e,t,n){return Math.abs(e-t)<=n}function xa(e,t,n,r=.5){e.origin=r,e.originPoint=ce(t.min,t.max,e.origin),e.scale=je(n)/je(t),e.translate=ce(n.min,n.max,e.origin)-e.originPoint,(e.scale>=ev&&e.scale<=tv||isNaN(e.scale))&&(e.scale=1),(e.translate>=nv&&e.translate<=rv||isNaN(e.translate))&&(e.translate=0)}function Nn(e,t,n,r){xa(e.x,t.x,n.x,r?r.originX:void 0),xa(e.y,t.y,n.y,r?r.originY:void 0)}function ba(e,t,n){e.min=n.min+t.min,e.max=e.min+je(t)}function iv(e,t,n){ba(e.x,t.x,n.x),ba(e.y,t.y,n.y)}function wa(e,t,n){e.min=t.min-n.min,e.max=e.min+je(t)}function Mn(e,t,n){wa(e.x,t.x,n.x),wa(e.y,t.y,n.y)}function ov(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?ce(n,e,r.max):Math.min(e,n)),e}function Sa(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function av(e,{top:t,left:n,bottom:r,right:s}){return{x:Sa(e.x,n,s),y:Sa(e.y,t,r)}}function Aa(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=on(t.min,t.max-r,e.min):r>s&&(n=on(e.min,e.max-s,t.min)),gt(0,1,n)}function uv(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Xs=.35;function dv(e=Xs){return e===!1?e=0:e===!0&&(e=Xs),{x:Ca(e,"left","right"),y:Ca(e,"top","bottom")}}function Ca(e,t,n){return{min:Pa(e,t),max:Pa(e,n)}}function Pa(e,t){return typeof e=="number"?e:e[t]||0}const Ta=()=>({translate:0,scale:1,origin:0,originPoint:0}),Jt=()=>({x:Ta(),y:Ta()}),Ea=()=>({min:0,max:0}),me=()=>({x:Ea(),y:Ea()});function We(e){return[e("x"),e("y")]}function Iu({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function fv({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function hv(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function xs(e){return e===void 0||e===1}function Ys({scale:e,scaleX:t,scaleY:n}){return!xs(e)||!xs(t)||!xs(n)}function Vt(e){return Ys(e)||Bu(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Bu(e){return Ra(e.x)||Ra(e.y)}function Ra(e){return e&&e!=="0%"}function Mr(e,t,n){const r=e-n,s=t*r;return n+s}function Da(e,t,n,r,s){return s!==void 0&&(e=Mr(e,s,r)),Mr(e,n,r)+t}function Zs(e,t=0,n=1,r,s){e.min=Da(e.min,t,n,r,s),e.max=Da(e.max,t,n,r,s)}function Uu(e,{x:t,y:n}){Zs(e.x,t.translate,t.scale,t.originPoint),Zs(e.y,n.translate,n.scale,n.originPoint)}const ja=.999999999999,Na=1.0000000000001;function mv(e,t,n,r=!1){const s=n.length;if(!s)return;t.x=t.y=1;let i,o;for(let a=0;aja&&(t.x=1),t.yja&&(t.y=1)}function Qt(e,t){e.min=e.min+t,e.max=e.max+t}function Ma(e,t,n,r,s=.5){const i=ce(e.min,e.max,s);Zs(e,t,n,i,r)}function en(e,t){Ma(e.x,t.x,t.scaleX,t.scale,t.originX),Ma(e.y,t.y,t.scaleY,t.scale,t.originY)}function $u(e,t){return Iu(hv(e.getBoundingClientRect(),t))}function pv(e,t,n){const r=$u(e,n),{scroll:s}=t;return s&&(Qt(r.x,s.offset.x),Qt(r.y,s.offset.y)),r}const zu=({current:e})=>e?e.ownerDocument.defaultView:null,gv=new WeakMap;class yv{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=me(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const s=u=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Zn(u).point)},i=(u,d)=>{const{drag:f,dragPropagation:m,onDragStart:g}=this.getProps();if(f&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Xy(f),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),We(x=>{let v=this.getAxisMotionValue(x).get()||0;if(ot.test(v)){const{projection:b}=this.visualElement;if(b&&b.layout){const A=b.layout.layoutBox[x];A&&(v=je(A)*(parseFloat(v)/100))}}this.originPoint[x]=v}),g&&le.postRender(()=>g(u,d)),Is(this.visualElement,"transform");const{animationState:h}=this.visualElement;h&&h.setActive("whileDrag",!0)},o=(u,d)=>{const{dragPropagation:f,dragDirectionLock:m,onDirectionLock:g,onDrag:h}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:x}=d;if(m&&this.currentDirection===null){this.currentDirection=vv(x),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",d.point,x),this.updateAxis("y",d.point,x),this.visualElement.render(),h&&h(u,d)},a=(u,d)=>this.stop(u,d),l=()=>We(u=>{var d;return this.getAnimationState(u)==="paused"&&((d=this.getAxisMotionValue(u).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new Vu(t,{onSessionStart:s,onStart:i,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:zu(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:s}=n;this.startAnimation(s);const{onDragEnd:i}=this.getProps();i&&le.postRender(()=>i(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:s}=this.getProps();if(!r||!hr(t,s,this.currentDirection))return;const i=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=ov(o,this.constraints[t],this.elastic[t])),i.set(o)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&Yt(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&s?this.constraints=av(s.layoutBox,n):this.constraints=!1,this.elastic=dv(r),i!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&We(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=uv(s.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Yt(t))return!1;const r=t.current,{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const i=pv(r,s.root,this.visualElement.getTransformPagePoint());let o=lv(s.layout.layoutBox,i);if(n){const a=n(fv(o));this.hasMutatedConstraints=!!a,a&&(o=Iu(a))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:s,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=We(u=>{if(!hr(u,n,this.currentDirection))return;let d=l[u]||{};o&&(d={min:0,max:0});const f=s?200:1e6,m=s?40:1e7,g={type:"inertia",velocity:r?t[u]:0,bounceStiffness:f,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(u,g)});return Promise.all(c).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Is(this.visualElement,t),r.start(Ji(t,r,0,n,this.visualElement,!1))}stopAnimation(){We(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){We(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),s=r[n];return s||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){We(n=>{const{drag:r}=this.getProps();if(!hr(n,r,this.currentDirection))return;const{projection:s}=this.visualElement,i=this.getAxisMotionValue(n);if(s&&s.layout){const{min:o,max:a}=s.layout.layoutBox[n];i.set(t[n]-ce(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Yt(n)||!r||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};We(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();s[o]=cv({min:l,max:l},this.constraints[o])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),We(o=>{if(!hr(o,t,null))return;const a=this.getAxisMotionValue(o),{min:l,max:c}=this.constraints[o];a.set(ce(l,c,s[o]))})}addListeners(){if(!this.visualElement.current)return;gv.set(this.visualElement,this);const t=this.visualElement.current,n=jn(t,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Yt(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,i=s.addEventListener("measure",r);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),le.read(r);const o=$n(window,"resize",()=>this.scalePositionWithinConstraints()),a=s.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(We(u=>{const d=this.getAxisMotionValue(u);d&&(this.originPoint[u]+=l[u].translate,d.set(d.get()+l[u].translate))}),this.visualElement.render())});return()=>{o(),n(),i(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:s=!1,dragConstraints:i=!1,dragElastic:o=Xs,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:s,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function hr(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function vv(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class xv extends jt{constructor(t){super(t),this.removeGroupControls=Ie,this.removeListeners=Ie,this.controls=new yv(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ie}unmount(){this.removeGroupControls(),this.removeListeners()}}const ka=e=>(t,n)=>{e&&le.postRender(()=>e(t,n))};class bv extends jt{constructor(){super(...arguments),this.removePointerDownListener=Ie}onPointerDown(t){this.session=new Vu(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:zu(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:s}=this.node.getProps();return{onSessionStart:ka(t),onStart:ka(n),onMove:r,onEnd:(i,o)=>{delete this.session,s&&le.postRender(()=>s(i,o))}}}mount(){this.removePointerDownListener=jn(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Sr={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function _a(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Sn={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(H.test(e))e=parseFloat(e);else return e;const n=_a(e,t.target.x),r=_a(e,t.target.y);return`${n}% ${r}%`}},wv={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,s=Tt.parse(e);if(s.length>5)return r;const i=Tt.createTransformer(e),o=typeof s[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;s[0+o]/=a,s[1+o]/=l;const c=ce(a,l,.5);return typeof s[2+o]=="number"&&(s[2+o]/=c),typeof s[3+o]=="number"&&(s[3+o]/=c),i(s)}};class Sv extends y.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:s}=this.props,{projection:i}=t;Xp(Av),i&&(n.group&&n.group.add(i),r&&r.register&&s&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Sr.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:s,isPresent:i}=this.props,o=r.projection;return o&&(o.isPresent=i,s||t.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?o.promote():o.relegate()||le.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Ti.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:s}=t;s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),r&&r.deregister&&r.deregister(s))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Wu(e){const[t,n]=jc(),r=y.useContext(xi);return p.jsx(Sv,{...e,layoutGroup:r,switchLayoutGroup:y.useContext(Fc),isPresent:t,safeToRemove:n})}const Av={borderRadius:{...Sn,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Sn,borderTopRightRadius:Sn,borderBottomLeftRadius:Sn,borderBottomRightRadius:Sn,boxShadow:wv};function Cv(e,t,n){const r=Te(e)?e:Bn(e);return r.start(Ji("",r,t,n)),r.animation}function Pv(e){return e instanceof SVGElement&&e.tagName!=="svg"}const Tv=(e,t)=>e.depth-t.depth;class Ev{constructor(){this.children=[],this.isDirty=!1}add(t){Li(this.children,t),this.isDirty=!0}remove(t){Ii(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Tv),this.isDirty=!1,this.children.forEach(t)}}function Rv(e,t){const n=at.now(),r=({timestamp:s})=>{const i=s-n;i>=t&&(Pt(r),e(i-t))};return le.read(r,!0),()=>Pt(r)}const Hu=["TopLeft","TopRight","BottomLeft","BottomRight"],Dv=Hu.length,Va=e=>typeof e=="string"?parseFloat(e):e,Oa=e=>typeof e=="number"||H.test(e);function jv(e,t,n,r,s,i){s?(e.opacity=ce(0,n.opacity!==void 0?n.opacity:1,Nv(r)),e.opacityExit=ce(t.opacity!==void 0?t.opacity:1,0,Mv(r))):i&&(e.opacity=ce(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;ort?1:n(on(e,t,r))}function La(e,t){e.min=t.min,e.max=t.max}function ze(e,t){La(e.x,t.x),La(e.y,t.y)}function Ia(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Ba(e,t,n,r,s){return e-=t,e=Mr(e,1/n,r),s!==void 0&&(e=Mr(e,1/s,r)),e}function kv(e,t=0,n=1,r=.5,s,i=e,o=e){if(ot.test(t)&&(t=parseFloat(t),t=ce(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=ce(i.min,i.max,r);e===i&&(a-=t),e.min=Ba(e.min,t,n,a,s),e.max=Ba(e.max,t,n,a,s)}function Ua(e,t,[n,r,s],i,o){kv(e,t[n],t[r],t[s],t.scale,i,o)}const _v=["x","scaleX","originX"],Vv=["y","scaleY","originY"];function $a(e,t,n,r){Ua(e.x,t,_v,n?n.x:void 0,r?r.x:void 0),Ua(e.y,t,Vv,n?n.y:void 0,r?r.y:void 0)}function za(e){return e.translate===0&&e.scale===1}function Ku(e){return za(e.x)&&za(e.y)}function Wa(e,t){return e.min===t.min&&e.max===t.max}function Ov(e,t){return Wa(e.x,t.x)&&Wa(e.y,t.y)}function Ha(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function qu(e,t){return Ha(e.x,t.x)&&Ha(e.y,t.y)}function Ga(e){return je(e.x)/je(e.y)}function Ka(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Fv{constructor(){this.members=[]}add(t){Li(this.members,t),t.scheduleRender()}remove(t){if(Ii(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(s=>t===s);if(n===0)return!1;let r;for(let s=n;s>=0;s--){const i=this.members[s];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:s}=t.options;s===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Lv(e,t,n){let r="";const s=e.x.translate/t.x,i=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((s||i||o)&&(r=`translate3d(${s}px, ${i}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:c,rotate:u,rotateX:d,rotateY:f,skewX:m,skewY:g}=n;c&&(r=`perspective(${c}px) ${r}`),u&&(r+=`rotate(${u}deg) `),d&&(r+=`rotateX(${d}deg) `),f&&(r+=`rotateY(${f}deg) `),m&&(r+=`skewX(${m}deg) `),g&&(r+=`skewY(${g}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const Ot={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Tn=typeof window<"u"&&window.MotionDebug!==void 0,bs=["","X","Y","Z"],Iv={visibility:"hidden"},qa=1e3;let Bv=0;function ws(e,t,n,r){const{latestValues:s}=t;s[e]&&(n[e]=s[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Xu(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Jc(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",le,!(s||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Xu(r)}function Yu({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(o={},a=t==null?void 0:t()){this.id=Bv++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Tn&&(Ot.totalNodes=Ot.resolvedTargetDeltas=Ot.recalculatedProjection=0),this.nodes.forEach(zv),this.nodes.forEach(qv),this.nodes.forEach(Xv),this.nodes.forEach(Wv),Tn&&window.MotionDebug.record(Ot)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=Rv(f,250),Sr.hasAnimatedSinceResize&&(Sr.hasAnimatedSinceResize=!1,this.nodes.forEach(Ya))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeLayoutChanged:m,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const h=this.options.transition||u.getDefaultTransition()||ex,{onLayoutAnimationStart:x,onLayoutAnimationComplete:v}=u.getProps(),b=!this.targetLayout||!qu(this.targetLayout,g),A=!f&&m;if(this.options.layoutRoot||this.resumeFrom||A||f&&(b||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,A);const P={...Fi(h,"layout"),onPlay:x,onComplete:v};(u.shouldReduceMotion||this.options.layoutRoot)&&(P.delay=0,P.type=!1),this.startAnimation(P)}else f||Ya(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Pt(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Yv),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Xu(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!je(this.snapshot.measuredBox.x)&&!je(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const S=P/1e3;Za(d.x,o.x,S),Za(d.y,o.y,S),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Mn(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Jv(this.relativeTarget,this.relativeTargetOrigin,f,S),A&&Ov(this.relativeTarget,A)&&(this.isProjectionDirty=!1),A||(A=me()),ze(A,this.relativeTarget)),h&&(this.animationValues=u,jv(u,c,this.latestValues,S,b,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Pt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=le.update(()=>{Sr.hasAnimatedSinceResize=!0,this.currentAnimation=Cv(0,qa,{...o,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(qa),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=o;if(!(!a||!l||!c)){if(this!==o&&this.layout&&c&&Zu(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||me();const d=je(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+d;const f=je(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+f}ze(a,l),en(a,u),Nn(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new Fv),this.sharedNodes.get(o).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:a}=this.options;return a?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:a}=this.options;return a?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&ws("z",o,c,this.animationValues);for(let u=0;u{var a;return(a=o.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(Xa),this.root.sharedNodes.clear()}}}function Uv(e){e.updateLayout()}function $v(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:s}=e.layout,{animationType:i}=e.options,o=n.source!==e.layout.source;i==="size"?We(d=>{const f=o?n.measuredBox[d]:n.layoutBox[d],m=je(f);f.min=r[d].min,f.max=f.min+m}):Zu(i,n.layoutBox,r)&&We(d=>{const f=o?n.measuredBox[d]:n.layoutBox[d],m=je(r[d]);f.max=f.min+m,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+m)});const a=Jt();Nn(a,r,n.layoutBox);const l=Jt();o?Nn(l,e.applyTransform(s,!0),n.measuredBox):Nn(l,r,n.layoutBox);const c=!Ku(a);let u=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:m}=d;if(f&&m){const g=me();Mn(g,n.layoutBox,f.layoutBox);const h=me();Mn(h,r,m.layoutBox),qu(g,h)||(u=!0),d.options.layoutRoot&&(e.relativeTarget=h,e.relativeTargetOrigin=g,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeLayoutChanged:u})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function zv(e){Tn&&Ot.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Wv(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Hv(e){e.clearSnapshot()}function Xa(e){e.clearMeasurements()}function Gv(e){e.isLayoutDirty=!1}function Kv(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Ya(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function qv(e){e.resolveTargetDelta()}function Xv(e){e.calcProjection()}function Yv(e){e.resetSkewAndRotation()}function Zv(e){e.removeLeadSnapshot()}function Za(e,t,n){e.translate=ce(t.translate,0,n),e.scale=ce(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Ja(e,t,n,r){e.min=ce(t.min,n.min,r),e.max=ce(t.max,n.max,r)}function Jv(e,t,n,r){Ja(e.x,t.x,n.x,r),Ja(e.y,t.y,n.y,r)}function Qv(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const ex={duration:.45,ease:[.4,0,.1,1]},Qa=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),el=Qa("applewebkit/")&&!Qa("chrome/")?Math.round:Ie;function tl(e){e.min=el(e.min),e.max=el(e.max)}function tx(e){tl(e.x),tl(e.y)}function Zu(e,t,n){return e==="position"||e==="preserve-aspect"&&!sv(Ga(t),Ga(n),.2)}function nx(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const rx=Yu({attachResizeListener:(e,t)=>$n(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ss={current:void 0},Ju=Yu({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ss.current){const e=new rx({});e.mount(window),e.setOptions({layoutScroll:!0}),Ss.current=e}return Ss.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),sx={pan:{Feature:bv},drag:{Feature:xv,ProjectionNode:Ju,MeasureLayout:Wu}};function ix(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let s=document;const i=(r=void 0)!==null&&r!==void 0?r:s.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}function Qu(e,t){const n=ix(e),r=new AbortController,s={passive:!0,...t,signal:r.signal};return[n,s,()=>r.abort()]}function nl(e){return!(e.pointerType==="touch"||_u())}function ox(e,t,n={}){const[r,s,i]=Qu(e,n),o=a=>{if(!nl(a))return;const{target:l}=a,c=t(l,a);if(typeof c!="function"||!l)return;const u=d=>{nl(d)&&(c(d),l.removeEventListener("pointerleave",u))};l.addEventListener("pointerleave",u,s)};return r.forEach(a=>{a.addEventListener("pointerenter",o,s)}),i}function rl(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const s="onHover"+n,i=r[s];i&&le.postRender(()=>i(t,Zn(t)))}class ax extends jt{mount(){const{current:t}=this.node;t&&(this.unmount=ox(t,(n,r)=>(rl(this.node,r,"Start"),s=>rl(this.node,s,"End"))))}unmount(){}}class lx extends jt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Yn($n(this.node.current,"focus",()=>this.onFocus()),$n(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const ed=(e,t)=>t?e===t?!0:ed(e,t.parentElement):!1,cx=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function ux(e){return cx.has(e.tagName)||e.tabIndex!==-1}const En=new WeakSet;function sl(e){return t=>{t.key==="Enter"&&e(t)}}function As(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const dx=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=sl(()=>{if(En.has(n))return;As(n,"down");const s=sl(()=>{As(n,"up")}),i=()=>As(n,"cancel");n.addEventListener("keyup",s,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function il(e){return Qi(e)&&!_u()}function fx(e,t,n={}){const[r,s,i]=Qu(e,n),o=a=>{const l=a.currentTarget;if(!il(a)||En.has(l))return;En.add(l);const c=t(l,a),u=(m,g)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),!(!il(m)||!En.has(l))&&(En.delete(l),typeof c=="function"&&c(m,{success:g}))},d=m=>{u(m,n.useGlobalTarget||ed(l,m.target))},f=m=>{u(m,!1)};window.addEventListener("pointerup",d,s),window.addEventListener("pointercancel",f,s)};return r.forEach(a=>{!ux(a)&&a.getAttribute("tabindex")===null&&(a.tabIndex=0),(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,s),a.addEventListener("focus",c=>dx(c,s),s)}),i}function ol(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const s="onTap"+(n==="End"?"":n),i=r[s];i&&le.postRender(()=>i(t,Zn(t)))}class hx extends jt{mount(){const{current:t}=this.node;t&&(this.unmount=fx(t,(n,r)=>(ol(this.node,r,"Start"),(s,{success:i})=>ol(this.node,s,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Js=new WeakMap,Cs=new WeakMap,mx=e=>{const t=Js.get(e.target);t&&t(e)},px=e=>{e.forEach(mx)};function gx({root:e,...t}){const n=e||document;Cs.has(n)||Cs.set(n,{});const r=Cs.get(n),s=JSON.stringify(t);return r[s]||(r[s]=new IntersectionObserver(px,{root:e,...t})),r[s]}function yx(e,t,n){const r=gx(t);return Js.set(e,n),r.observe(e),()=>{Js.delete(e),r.unobserve(e)}}const vx={some:0,all:1};class xx extends jt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:s="some",once:i}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof s=="number"?s:vx[s]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,i&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:d}=this.node.getProps(),f=c?u:d;f&&f(l)};return yx(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(bx(t,n))&&this.startObserver()}unmount(){}}function bx({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const wx={inView:{Feature:xx},tap:{Feature:hx},focus:{Feature:lx},hover:{Feature:ax}},Sx={layout:{ProjectionNode:Ju,MeasureLayout:Wu}},Qs={current:null},td={current:!1};function Ax(){if(td.current=!0,!!Si)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Qs.current=e.matches;e.addListener(t),t()}else Qs.current=!1}const Cx=[...Su,Pe,Tt],Px=e=>Cx.find(wu(e)),al=new WeakMap;function Tx(e,t,n){for(const r in t){const s=t[r],i=n[r];if(Te(s))e.addValue(r,s);else if(Te(i))e.addValue(r,Bn(s,{owner:e}));else if(i!==s)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(s):o.hasAnimated||o.set(s)}else{const o=e.getStaticValue(r);e.addValue(r,Bn(o!==void 0?o:s,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const ll=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Ex{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:s,blockInitialAnimation:i,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Xi,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const m=at.now();this.renderScheduledAtthis.bindToMotionValue(r,n)),td.current||Ax(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Qs.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){al.delete(this.current),this.projection&&this.projection.unmount(),Pt(this.notifyUpdate),Pt(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Ht.has(t),s=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&le.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{s(),i(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in sn){const n=sn[t];if(!n)continue;const{isEnabled:r,Feature:s}=n;if(!this.features[t]&&s&&r(this.props)&&(this.features[t]=new s(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):me()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Bn(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let s=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return s!=null&&(typeof s=="string"&&(xu(s)||uu(s))?s=parseFloat(s):!Px(s)&&Tt.test(n)&&(s=gu(t,n)),this.setBaseTarget(t,Te(s)?s.get():s)),Te(s)?s.get():s}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let s;if(typeof r=="string"||typeof r=="object"){const o=Ri(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(s=o[t])}if(r&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Te(i)?i:this.initialValues[t]!==void 0&&s===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Bi),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class nd extends Ex{constructor(){super(...arguments),this.KeyframeResolver=Au}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Te(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Rx(e){return window.getComputedStyle(e)}class Dx extends nd{constructor(){super(...arguments),this.type="html",this.renderInstance=zc}readValueFromInstance(t,n){if(Ht.has(n)){const r=qi(n);return r&&r.default||0}else{const r=Rx(t),s=(Di(n)?r.getPropertyValue(n):r[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return $u(t,n)}build(t,n,r){Mi(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Oi(t,n,r)}}class jx extends nd{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=me}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Ht.has(n)){const r=qi(n);return r&&r.default||0}return n=Wc.has(n)?n:Pi(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Kc(t,n,r)}build(t,n,r){ki(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,s){Hc(t,n,r,s)}mount(t){this.isSVGTag=Vi(t.tagName),super.mount(t)}}const Nx=(e,t)=>Ei(e)?new jx(t):new Dx(t,{allowProjection:e!==y.Fragment}),Mx=sg({...qy,...wx,...sx,...Sx},Nx),Ar=xp(Mx);var Ps,cl;function kx(){if(cl)return Ps;cl=1;var e="Expected a function",t=NaN,n="[object Symbol]",r=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,a=parseInt,l=typeof sr=="object"&&sr&&sr.Object===Object&&sr,c=typeof self=="object"&&self&&self.Object===Object&&self,u=l||c||Function("return this")(),d=Object.prototype,f=d.toString,m=Math.max,g=Math.min,h=function(){return u.Date.now()};function x(S,T,E){var D,M,_,I,j,F,L=0,G=!1,W=!1,U=!0;if(typeof S!="function")throw new TypeError(e);T=P(T)||0,v(E)&&(G=!!E.leading,W="maxWait"in E,_=W?m(P(E.maxWait)||0,T):_,U="trailing"in E?!!E.trailing:U);function B(Z){var ne=D,fe=M;return D=M=void 0,L=Z,I=S.apply(fe,ne),I}function K(Z){return L=Z,j=setTimeout(Ae,T),G?B(Z):I}function ee(Z){var ne=Z-F,fe=Z-L,ye=T-ne;return W?g(ye,_-fe):ye}function te(Z){var ne=Z-F,fe=Z-L;return F===void 0||ne>=T||ne<0||W&&fe>=_}function Ae(){var Z=h();if(te(Z))return Ve(Z);j=setTimeout(Ae,ee(Z))}function Ve(Z){return j=void 0,U&&D?B(Z):(D=M=void 0,I)}function Ce(){j!==void 0&&clearTimeout(j),L=0,D=F=M=j=void 0}function Ke(){return j===void 0?I:Ve(h())}function Ee(){var Z=h(),ne=te(Z);if(D=arguments,M=this,F=Z,ne){if(j===void 0)return K(F);if(W)return j=setTimeout(Ae,T),B(F)}return j===void 0&&(j=setTimeout(Ae,T)),I}return Ee.cancel=Ce,Ee.flush=Ke,Ee}function v(S){var T=typeof S;return!!S&&(T=="object"||T=="function")}function b(S){return!!S&&typeof S=="object"}function A(S){return typeof S=="symbol"||b(S)&&f.call(S)==n}function P(S){if(typeof S=="number")return S;if(A(S))return t;if(v(S)){var T=typeof S.valueOf=="function"?S.valueOf():S;S=v(T)?T+"":T}if(typeof S!="string")return S===0?S:+S;S=S.replace(r,"");var E=i.test(S);return E||o.test(S)?a(S.slice(2),E?2:8):s.test(S)?t:+S}return Ps=x,Ps}kx();var _x=typeof window<"u"?y.useLayoutEffect:y.useEffect,Vx=typeof window>"u";function ei(e,{defaultValue:t=!1,initializeWithValue:n=!0}={}){const r=a=>Vx?t:window.matchMedia(a).matches,[s,i]=y.useState(()=>n?r(e):t);function o(){i(r(e))}return _x(()=>{const a=window.matchMedia(e);return o(),a.addListener?a.addListener(o):a.addEventListener("change",o),()=>{a.removeListener?a.removeListener(o):a.removeEventListener("change",o)}},[e]),s}const w0=({className:e,stage:t})=>{const n=ei("(min-width: 768px");return p.jsx("div",{className:e,children:p.jsx("div",{className:"max-w-[808px] md:mx-auto my-20 mx-5",children:p.jsxs("div",{className:"relative h-14 w-full",children:[p.jsx("div",{className:q("h-2 absolute bg-[#D0D3D8] rounded-[2px] w-full top-0 left-0")}),p.jsx(Ar.div,{initial:{width:0},animate:t===2?{width:"20%"}:t===3&&{width:"75%"},transition:{delay:.5,duration:.5},className:q("h-2 absolute bg-primary rounded-[2px] top-0 left-0 z-[5]",{"w-0 bg-opacity-0":t===1,"w-[20%]":t===2,"w-[75%]":t===3})}),p.jsx(Ar.div,{initial:{width:n?"50%":"35%"},animate:t===2?{width:"75%"}:t===3&&{width:"100%"},className:q("bg-reverse_primary w-1/2 absolute top-0 left-0 rounded-[2px] z-[3] h-2")}),p.jsx(Ar.div,{className:q("progress-circle absolute transition-all duration-500 -top-6 flex items-center justify-center",{"bg-reverse_primary md:left-1/2 left-1/3":t===1,"bg-primary left-[20%] !text-on_primary":t===2||t===3}),children:"1"}),p.jsx("div",{className:q("progress-circle absolute -top-6 right-[17%] transition-all -translate-x-1/2 flex items-center justify-center",{"bg-[#D0D3D8]":t===1,"bg-reverse_primary":t===2,"bg-primary !text-on_primary":t===3}),children:"2"}),p.jsx("div",{className:q("progress-circle absolute -top-6 right-0 transition-all duration-500 flex items-center justify-center",{"bg-[#D0D3D8]":t===1||t===2,"bg-reverse_primary":t===3}),children:"3"})]})})})};var Jn=e=>e.type==="checkbox",Lt=e=>e instanceof Date,Re=e=>e==null;const rd=e=>typeof e=="object";var ge=e=>!Re(e)&&!Array.isArray(e)&&rd(e)&&!Lt(e),sd=e=>ge(e)&&e.target?Jn(e.target)?e.target.checked:e.target.value:e,Ox=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,id=(e,t)=>e.has(Ox(t)),Fx=e=>{const t=e.constructor&&e.constructor.prototype;return ge(t)&&t.hasOwnProperty("isPrototypeOf")},eo=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function ke(e){let t;const n=Array.isArray(e),r=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(eo&&(e instanceof Blob||r))&&(n||ge(e)))if(t=n?[]:{},!n&&!Fx(e))t=e;else for(const s in e)e.hasOwnProperty(s)&&(t[s]=ke(e[s]));else return e;return t}var Yr=e=>Array.isArray(e)?e.filter(Boolean):[],pe=e=>e===void 0,O=(e,t,n)=>{if(!t||!ge(e))return n;const r=Yr(t.split(/[,[\].]+?/)).reduce((s,i)=>Re(s)?s:s[i],e);return pe(r)||r===e?pe(e[t])?n:e[t]:r},He=e=>typeof e=="boolean",to=e=>/^\w*$/.test(e),od=e=>Yr(e.replace(/["|']|\]/g,"").split(/\.|\[/)),ie=(e,t,n)=>{let r=-1;const s=to(t)?[t]:od(t),i=s.length,o=i-1;for(;++rre.useContext(ad),Lx=e=>{const{children:t,...n}=e;return re.createElement(ad.Provider,{value:n},t)};var ld=(e,t,n,r=!0)=>{const s={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(s,i,{get:()=>{const o=i;return t._proxyFormState[o]!==Xe.all&&(t._proxyFormState[o]=!r||Xe.all),n&&(n[o]=!0),e[o]}});return s},_e=e=>ge(e)&&!Object.keys(e).length,cd=(e,t,n,r)=>{n(e);const{name:s,...i}=e;return _e(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(o=>t[o]===(!r||Xe.all))},kn=e=>Array.isArray(e)?e:[e],ud=(e,t,n)=>!e||!t||e===t||kn(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function no(e){const t=re.useRef(e);t.current=e,re.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function Ix(e){const t=Zr(),{control:n=t.control,disabled:r,name:s,exact:i}=e,[o,a]=re.useState(n._formState),l=re.useRef(!0),c=re.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),u=re.useRef(s);return u.current=s,no({disabled:r,next:d=>l.current&&ud(u.current,d.name,i)&&cd(d,c.current,n._updateFormState)&&a({...n._formState,...d}),subject:n._subjects.state}),re.useEffect(()=>(l.current=!0,c.current.isValid&&n._updateValid(!0),()=>{l.current=!1}),[n]),re.useMemo(()=>ld(o,n,c.current,!1),[o,n])}var it=e=>typeof e=="string",dd=(e,t,n,r,s)=>it(e)?(r&&t.watch.add(e),O(n,e,s)):Array.isArray(e)?e.map(i=>(r&&t.watch.add(i),O(n,i))):(r&&(t.watchAll=!0),n);function Bx(e){const t=Zr(),{control:n=t.control,name:r,defaultValue:s,disabled:i,exact:o}=e,a=re.useRef(r);a.current=r,no({disabled:i,subject:n._subjects.values,next:u=>{ud(a.current,u.name,o)&&c(ke(dd(a.current,n._names,u.values||n._formValues,!1,s)))}});const[l,c]=re.useState(n._getWatch(r,s));return re.useEffect(()=>n._removeUnmounted()),l}function Ux(e){const t=Zr(),{name:n,disabled:r,control:s=t.control,shouldUnregister:i}=e,o=id(s._names.array,n),a=Bx({control:s,name:n,defaultValue:O(s._formValues,n,O(s._defaultValues,n,e.defaultValue)),exact:!0}),l=Ix({control:s,name:n,exact:!0}),c=re.useRef(s.register(n,{...e.rules,value:a,...He(e.disabled)?{disabled:e.disabled}:{}})),u=re.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!O(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!O(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!O(l.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!O(l.validatingFields,n)},error:{enumerable:!0,get:()=>O(l.errors,n)}}),[l,n]),d=re.useMemo(()=>({name:n,value:a,...He(r)||l.disabled?{disabled:l.disabled||r}:{},onChange:f=>c.current.onChange({target:{value:sd(f),name:n},type:kr.CHANGE}),onBlur:()=>c.current.onBlur({target:{value:O(s._formValues,n),name:n},type:kr.BLUR}),ref:f=>{const m=O(s._fields,n);m&&f&&(m._f.ref={focus:()=>f.focus(),select:()=>f.select(),setCustomValidity:g=>f.setCustomValidity(g),reportValidity:()=>f.reportValidity()})}}),[n,s._formValues,r,l.disabled,a,s._fields]);return re.useEffect(()=>{const f=s._options.shouldUnregister||i,m=(g,h)=>{const x=O(s._fields,g);x&&x._f&&(x._f.mount=h)};if(m(n,!0),f){const g=ke(O(s._options.defaultValues,n));ie(s._defaultValues,n,g),pe(O(s._formValues,n))&&ie(s._formValues,n,g)}return!o&&s.register(n),()=>{(o?f&&!s._state.action:f)?s.unregister(n):m(n,!1)}},[n,s,o,i]),re.useEffect(()=>{s._updateDisabledField({disabled:r,fields:s._fields,name:n})},[r,n,s]),re.useMemo(()=>({field:d,formState:l,fieldState:u}),[d,l,u])}const $x=e=>e.render(Ux(e));var zx=(e,t,n,r,s)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:s||!0}}:{},ul=e=>({isOnSubmit:!e||e===Xe.onSubmit,isOnBlur:e===Xe.onBlur,isOnChange:e===Xe.onChange,isOnAll:e===Xe.all,isOnTouch:e===Xe.onTouched}),dl=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const _n=(e,t,n,r)=>{for(const s of n||Object.keys(e)){const i=O(e,s);if(i){const{_f:o,...a}=i;if(o){if(o.refs&&o.refs[0]&&t(o.refs[0],s)&&!r)return!0;if(o.ref&&t(o.ref,o.name)&&!r)return!0;if(_n(a,t))break}else if(ge(a)&&_n(a,t))break}}};var Wx=(e,t,n)=>{const r=kn(O(e,n));return ie(r,"root",t[n]),ie(e,n,r),e},ro=e=>e.type==="file",st=e=>typeof e=="function",_r=e=>{if(!eo)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Cr=e=>it(e),so=e=>e.type==="radio",Vr=e=>e instanceof RegExp;const fl={value:!1,isValid:!1},hl={value:!0,isValid:!0};var fd=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!pe(e[0].attributes.value)?pe(e[0].value)||e[0].value===""?hl:{value:e[0].value,isValid:!0}:hl:fl}return fl};const ml={isValid:!1,value:null};var hd=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,ml):ml;function pl(e,t,n="validate"){if(Cr(e)||Array.isArray(e)&&e.every(Cr)||He(e)&&!e)return{type:n,message:Cr(e)?e:"",ref:t}}var Xt=e=>ge(e)&&!Vr(e)?e:{value:e,message:""},gl=async(e,t,n,r,s,i)=>{const{ref:o,refs:a,required:l,maxLength:c,minLength:u,min:d,max:f,pattern:m,validate:g,name:h,valueAsNumber:x,mount:v}=e._f,b=O(n,h);if(!v||t.has(h))return{};const A=a?a[0]:o,P=j=>{s&&A.reportValidity&&(A.setCustomValidity(He(j)?"":j||""),A.reportValidity())},S={},T=so(o),E=Jn(o),D=T||E,M=(x||ro(o))&&pe(o.value)&&pe(b)||_r(o)&&o.value===""||b===""||Array.isArray(b)&&!b.length,_=zx.bind(null,h,r,S),I=(j,F,L,G=ft.maxLength,W=ft.minLength)=>{const U=j?F:L;S[h]={type:j?G:W,message:U,ref:o,..._(j?G:W,U)}};if(i?!Array.isArray(b)||!b.length:l&&(!D&&(M||Re(b))||He(b)&&!b||E&&!fd(a).isValid||T&&!hd(a).isValid)){const{value:j,message:F}=Cr(l)?{value:!!l,message:l}:Xt(l);if(j&&(S[h]={type:ft.required,message:F,ref:A,..._(ft.required,F)},!r))return P(F),S}if(!M&&(!Re(d)||!Re(f))){let j,F;const L=Xt(f),G=Xt(d);if(!Re(b)&&!isNaN(b)){const W=o.valueAsNumber||b&&+b;Re(L.value)||(j=W>L.value),Re(G.value)||(F=Wnew Date(new Date().toDateString()+" "+ee),B=o.type=="time",K=o.type=="week";it(L.value)&&b&&(j=B?U(b)>U(L.value):K?b>L.value:W>new Date(L.value)),it(G.value)&&b&&(F=B?U(b)+j.value,G=!Re(F.value)&&b.length<+F.value;if((L||G)&&(I(L,j.message,F.message),!r))return P(S[h].message),S}if(m&&!M&&it(b)){const{value:j,message:F}=Xt(m);if(Vr(j)&&!b.match(j)&&(S[h]={type:ft.pattern,message:F,ref:o,..._(ft.pattern,F)},!r))return P(F),S}if(g){if(st(g)){const j=await g(b,n),F=pl(j,A);if(F&&(S[h]={...F,..._(ft.validate,F.message)},!r))return P(F.message),S}else if(ge(g)){let j={};for(const F in g){if(!_e(j)&&!r)break;const L=pl(await g[F](b,n),A,F);L&&(j={...L,..._(F,L.message)},P(L.message),r&&(S[h]=j))}if(!_e(j)&&(S[h]={ref:A,...j},!r))return S}}return P(!0),S};function Hx(e,t){const n=t.slice(0,-1).length;let r=0;for(;r{let e=[];return{get observers(){return e},next:s=>{for(const i of e)i.next&&i.next(s)},subscribe:s=>(e.push(s),{unsubscribe:()=>{e=e.filter(i=>i!==s)}}),unsubscribe:()=>{e=[]}}},ti=e=>Re(e)||!rd(e);function At(e,t){if(ti(e)||ti(t))return e===t;if(Lt(e)&&Lt(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const s of n){const i=e[s];if(!r.includes(s))return!1;if(s!=="ref"){const o=t[s];if(Lt(i)&&Lt(o)||ge(i)&&ge(o)||Array.isArray(i)&&Array.isArray(o)?!At(i,o):i!==o)return!1}}return!0}var md=e=>e.type==="select-multiple",Kx=e=>so(e)||Jn(e),Es=e=>_r(e)&&e.isConnected,pd=e=>{for(const t in e)if(st(e[t]))return!0;return!1};function Or(e,t={}){const n=Array.isArray(e);if(ge(e)||n)for(const r in e)Array.isArray(e[r])||ge(e[r])&&!pd(e[r])?(t[r]=Array.isArray(e[r])?[]:{},Or(e[r],t[r])):Re(e[r])||(t[r]=!0);return t}function gd(e,t,n){const r=Array.isArray(e);if(ge(e)||r)for(const s in e)Array.isArray(e[s])||ge(e[s])&&!pd(e[s])?pe(t)||ti(n[s])?n[s]=Array.isArray(e[s])?Or(e[s],[]):{...Or(e[s])}:gd(e[s],Re(t)?{}:t[s],n[s]):n[s]=!At(e[s],t[s]);return n}var An=(e,t)=>gd(e,t,Or(t)),yd=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>pe(e)?e:t?e===""?NaN:e&&+e:n&&it(e)?new Date(e):r?r(e):e;function Rs(e){const t=e.ref;return ro(t)?t.files:so(t)?hd(e.refs).value:md(t)?[...t.selectedOptions].map(({value:n})=>n):Jn(t)?fd(e.refs).value:yd(pe(t.value)?e.ref.value:t.value,e)}var qx=(e,t,n,r)=>{const s={};for(const i of e){const o=O(t,i);o&&ie(s,i,o._f)}return{criteriaMode:n,names:[...e],fields:s,shouldUseNativeValidation:r}},Cn=e=>pe(e)?e:Vr(e)?e.source:ge(e)?Vr(e.value)?e.value.source:e.value:e;const yl="AsyncFunction";var Xx=e=>!!e&&!!e.validate&&!!(st(e.validate)&&e.validate.constructor.name===yl||ge(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===yl)),Yx=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function vl(e,t,n){const r=O(e,n);if(r||to(n))return{error:r,name:n};const s=n.split(".");for(;s.length;){const i=s.join("."),o=O(t,i),a=O(e,i);if(o&&!Array.isArray(o)&&n!==i)return{name:n};if(a&&a.type)return{name:i,error:a};s.pop()}return{name:n}}var Zx=(e,t,n,r,s)=>s.isOnAll?!1:!n&&s.isOnTouch?!(t||e):(n?r.isOnBlur:s.isOnBlur)?!e:(n?r.isOnChange:s.isOnChange)?e:!0,Jx=(e,t)=>!Yr(O(e,t)).length&&xe(e,t);const Qx={mode:Xe.onSubmit,reValidateMode:Xe.onChange,shouldFocusError:!0};function eb(e={}){let t={...Qx,...e},n={submitCount:0,isDirty:!1,isLoading:st(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},s=ge(t.defaultValues)||ge(t.values)?ke(t.defaultValues||t.values)||{}:{},i=t.shouldUnregister?{}:ke(s),o={action:!1,mount:!1,watch:!1},a={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},l,c=0;const u={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},d={values:Ts(),array:Ts(),state:Ts()},f=ul(t.mode),m=ul(t.reValidateMode),g=t.criteriaMode===Xe.all,h=w=>C=>{clearTimeout(c),c=setTimeout(w,C)},x=async w=>{if(!t.disabled&&(u.isValid||w)){const C=t.resolver?_e((await D()).errors):await _(r,!0);C!==n.isValid&&d.state.next({isValid:C})}},v=(w,C)=>{!t.disabled&&(u.isValidating||u.validatingFields)&&((w||Array.from(a.mount)).forEach(R=>{R&&(C?ie(n.validatingFields,R,C):xe(n.validatingFields,R))}),d.state.next({validatingFields:n.validatingFields,isValidating:!_e(n.validatingFields)}))},b=(w,C=[],R,V,k=!0,N=!0)=>{if(V&&R&&!t.disabled){if(o.action=!0,N&&Array.isArray(O(r,w))){const z=R(O(r,w),V.argA,V.argB);k&&ie(r,w,z)}if(N&&Array.isArray(O(n.errors,w))){const z=R(O(n.errors,w),V.argA,V.argB);k&&ie(n.errors,w,z),Jx(n.errors,w)}if(u.touchedFields&&N&&Array.isArray(O(n.touchedFields,w))){const z=R(O(n.touchedFields,w),V.argA,V.argB);k&&ie(n.touchedFields,w,z)}u.dirtyFields&&(n.dirtyFields=An(s,i)),d.state.next({name:w,isDirty:j(w,C),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else ie(i,w,C)},A=(w,C)=>{ie(n.errors,w,C),d.state.next({errors:n.errors})},P=w=>{n.errors=w,d.state.next({errors:n.errors,isValid:!1})},S=(w,C,R,V)=>{const k=O(r,w);if(k){const N=O(i,w,pe(R)?O(s,w):R);pe(N)||V&&V.defaultChecked||C?ie(i,w,C?N:Rs(k._f)):G(w,N),o.mount&&x()}},T=(w,C,R,V,k)=>{let N=!1,z=!1;const X={name:w};if(!t.disabled){const ve=!!(O(r,w)&&O(r,w)._f&&O(r,w)._f.disabled);if(!R||V){u.isDirty&&(z=n.isDirty,n.isDirty=X.isDirty=j(),N=z!==X.isDirty);const he=ve||At(O(s,w),C);z=!!(!ve&&O(n.dirtyFields,w)),he||ve?xe(n.dirtyFields,w):ie(n.dirtyFields,w,!0),X.dirtyFields=n.dirtyFields,N=N||u.dirtyFields&&z!==!he}if(R){const he=O(n.touchedFields,w);he||(ie(n.touchedFields,w,R),X.touchedFields=n.touchedFields,N=N||u.touchedFields&&he!==R)}N&&k&&d.state.next(X)}return N?X:{}},E=(w,C,R,V)=>{const k=O(n.errors,w),N=u.isValid&&He(C)&&n.isValid!==C;if(t.delayError&&R?(l=h(()=>A(w,R)),l(t.delayError)):(clearTimeout(c),l=null,R?ie(n.errors,w,R):xe(n.errors,w)),(R?!At(k,R):k)||!_e(V)||N){const z={...V,...N&&He(C)?{isValid:C}:{},errors:n.errors,name:w};n={...n,...z},d.state.next(z)}},D=async w=>{v(w,!0);const C=await t.resolver(i,t.context,qx(w||a.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return v(w),C},M=async w=>{const{errors:C}=await D(w);if(w)for(const R of w){const V=O(C,R);V?ie(n.errors,R,V):xe(n.errors,R)}else n.errors=C;return C},_=async(w,C,R={valid:!0})=>{for(const V in w){const k=w[V];if(k){const{_f:N,...z}=k;if(N){const X=a.array.has(N.name),ve=k._f&&Xx(k._f);ve&&u.validatingFields&&v([V],!0);const he=await gl(k,a.disabled,i,g,t.shouldUseNativeValidation&&!C,X);if(ve&&u.validatingFields&&v([V]),he[N.name]&&(R.valid=!1,C))break;!C&&(O(he,N.name)?X?Wx(n.errors,he,N.name):ie(n.errors,N.name,he[N.name]):xe(n.errors,N.name))}!_e(z)&&await _(z,C,R)}}return R.valid},I=()=>{for(const w of a.unMount){const C=O(r,w);C&&(C._f.refs?C._f.refs.every(R=>!Es(R)):!Es(C._f.ref))&&Ee(w)}a.unMount=new Set},j=(w,C)=>!t.disabled&&(w&&C&&ie(i,w,C),!At(te(),s)),F=(w,C,R)=>dd(w,a,{...o.mount?i:pe(C)?s:it(w)?{[w]:C}:C},R,C),L=w=>Yr(O(o.mount?i:s,w,t.shouldUnregister?O(s,w,[]):[])),G=(w,C,R={})=>{const V=O(r,w);let k=C;if(V){const N=V._f;N&&(!N.disabled&&ie(i,w,yd(C,N)),k=_r(N.ref)&&Re(C)?"":C,md(N.ref)?[...N.ref.options].forEach(z=>z.selected=k.includes(z.value)):N.refs?Jn(N.ref)?N.refs.length>1?N.refs.forEach(z=>(!z.defaultChecked||!z.disabled)&&(z.checked=Array.isArray(k)?!!k.find(X=>X===z.value):k===z.value)):N.refs[0]&&(N.refs[0].checked=!!k):N.refs.forEach(z=>z.checked=z.value===k):ro(N.ref)?N.ref.value="":(N.ref.value=k,N.ref.type||d.values.next({name:w,values:{...i}})))}(R.shouldDirty||R.shouldTouch)&&T(w,k,R.shouldTouch,R.shouldDirty,!0),R.shouldValidate&&ee(w)},W=(w,C,R)=>{for(const V in C){const k=C[V],N=`${w}.${V}`,z=O(r,N);(a.array.has(w)||ge(k)||z&&!z._f)&&!Lt(k)?W(N,k,R):G(N,k,R)}},U=(w,C,R={})=>{const V=O(r,w),k=a.array.has(w),N=ke(C);ie(i,w,N),k?(d.array.next({name:w,values:{...i}}),(u.isDirty||u.dirtyFields)&&R.shouldDirty&&d.state.next({name:w,dirtyFields:An(s,i),isDirty:j(w,N)})):V&&!V._f&&!Re(N)?W(w,N,R):G(w,N,R),dl(w,a)&&d.state.next({...n}),d.values.next({name:o.mount?w:void 0,values:{...i}})},B=async w=>{o.mount=!0;const C=w.target;let R=C.name,V=!0;const k=O(r,R),N=()=>C.type?Rs(k._f):sd(w),z=X=>{V=Number.isNaN(X)||Lt(X)&&isNaN(X.getTime())||At(X,O(i,R,X))};if(k){let X,ve;const he=N(),tt=w.type===kr.BLUR||w.type===kr.FOCUS_OUT,yn=!Yx(k._f)&&!t.resolver&&!O(n.errors,R)&&!k._f.deps||Zx(tt,O(n.touchedFields,R),n.isSubmitted,m,f),nt=dl(R,a,tt);ie(i,R,he),tt?(k._f.onBlur&&k._f.onBlur(w),l&&l(0)):k._f.onChange&&k._f.onChange(w);const Mt=T(R,he,tt,!1),vn=!_e(Mt)||nt;if(!tt&&d.values.next({name:R,type:w.type,values:{...i}}),yn)return u.isValid&&(t.mode==="onBlur"&&tt?x():tt||x()),vn&&d.state.next({name:R,...nt?{}:Mt});if(!tt&&nt&&d.state.next({...n}),t.resolver){const{errors:kt}=await D([R]);if(z(he),V){const rs=vl(n.errors,r,R),rr=vl(kt,r,rs.name||R);X=rr.error,R=rr.name,ve=_e(kt)}}else v([R],!0),X=(await gl(k,a.disabled,i,g,t.shouldUseNativeValidation))[R],v([R]),z(he),V&&(X?ve=!1:u.isValid&&(ve=await _(r,!0)));V&&(k._f.deps&&ee(k._f.deps),E(R,ve,X,Mt))}},K=(w,C)=>{if(O(n.errors,C)&&w.focus)return w.focus(),1},ee=async(w,C={})=>{let R,V;const k=kn(w);if(t.resolver){const N=await M(pe(w)?w:k);R=_e(N),V=w?!k.some(z=>O(N,z)):R}else w?(V=(await Promise.all(k.map(async N=>{const z=O(r,N);return await _(z&&z._f?{[N]:z}:z)}))).every(Boolean),!(!V&&!n.isValid)&&x()):V=R=await _(r);return d.state.next({...!it(w)||u.isValid&&R!==n.isValid?{}:{name:w},...t.resolver||!w?{isValid:R}:{},errors:n.errors}),C.shouldFocus&&!V&&_n(r,K,w?k:a.mount),V},te=w=>{const C={...o.mount?i:s};return pe(w)?C:it(w)?O(C,w):w.map(R=>O(C,R))},Ae=(w,C)=>({invalid:!!O((C||n).errors,w),isDirty:!!O((C||n).dirtyFields,w),error:O((C||n).errors,w),isValidating:!!O(n.validatingFields,w),isTouched:!!O((C||n).touchedFields,w)}),Ve=w=>{w&&kn(w).forEach(C=>xe(n.errors,C)),d.state.next({errors:w?n.errors:{}})},Ce=(w,C,R)=>{const V=(O(r,w,{_f:{}})._f||{}).ref,k=O(n.errors,w)||{},{ref:N,message:z,type:X,...ve}=k;ie(n.errors,w,{...ve,...C,ref:V}),d.state.next({name:w,errors:n.errors,isValid:!1}),R&&R.shouldFocus&&V&&V.focus&&V.focus()},Ke=(w,C)=>st(w)?d.values.subscribe({next:R=>w(F(void 0,C),R)}):F(w,C,!0),Ee=(w,C={})=>{for(const R of w?kn(w):a.mount)a.mount.delete(R),a.array.delete(R),C.keepValue||(xe(r,R),xe(i,R)),!C.keepError&&xe(n.errors,R),!C.keepDirty&&xe(n.dirtyFields,R),!C.keepTouched&&xe(n.touchedFields,R),!C.keepIsValidating&&xe(n.validatingFields,R),!t.shouldUnregister&&!C.keepDefaultValue&&xe(s,R);d.values.next({values:{...i}}),d.state.next({...n,...C.keepDirty?{isDirty:j()}:{}}),!C.keepIsValid&&x()},Z=({disabled:w,name:C,field:R,fields:V})=>{(He(w)&&o.mount||w||a.disabled.has(C))&&(w?a.disabled.add(C):a.disabled.delete(C),T(C,Rs(R?R._f:O(V,C)._f),!1,!1,!0))},ne=(w,C={})=>{let R=O(r,w);const V=He(C.disabled)||He(t.disabled);return ie(r,w,{...R||{},_f:{...R&&R._f?R._f:{ref:{name:w}},name:w,mount:!0,...C}}),a.mount.add(w),R?Z({field:R,disabled:He(C.disabled)?C.disabled:t.disabled,name:w}):S(w,!0,C.value),{...V?{disabled:C.disabled||t.disabled}:{},...t.progressive?{required:!!C.required,min:Cn(C.min),max:Cn(C.max),minLength:Cn(C.minLength),maxLength:Cn(C.maxLength),pattern:Cn(C.pattern)}:{},name:w,onChange:B,onBlur:B,ref:k=>{if(k){ne(w,C),R=O(r,w);const N=pe(k.value)&&k.querySelectorAll&&k.querySelectorAll("input,select,textarea")[0]||k,z=Kx(N),X=R._f.refs||[];if(z?X.find(ve=>ve===N):N===R._f.ref)return;ie(r,w,{_f:{...R._f,...z?{refs:[...X.filter(Es),N,...Array.isArray(O(s,w))?[{}]:[]],ref:{type:N.type,name:w}}:{ref:N}}}),S(w,!1,void 0,N)}else R=O(r,w,{}),R._f&&(R._f.mount=!1),(t.shouldUnregister||C.shouldUnregister)&&!(id(a.array,w)&&o.action)&&a.unMount.add(w)}}},fe=()=>t.shouldFocusError&&_n(r,K,a.mount),ye=w=>{He(w)&&(d.state.next({disabled:w}),_n(r,(C,R)=>{const V=O(r,R);V&&(C.disabled=V._f.disabled||w,Array.isArray(V._f.refs)&&V._f.refs.forEach(k=>{k.disabled=V._f.disabled||w}))},0,!1))},se=(w,C)=>async R=>{let V;R&&(R.preventDefault&&R.preventDefault(),R.persist&&R.persist());let k=ke(i);if(a.disabled.size)for(const N of a.disabled)ie(k,N,void 0);if(d.state.next({isSubmitting:!0}),t.resolver){const{errors:N,values:z}=await D();n.errors=N,k=z}else await _(r);if(xe(n.errors,"root"),_e(n.errors)){d.state.next({errors:{}});try{await w(k,R)}catch(N){V=N}}else C&&await C({...n.errors},R),fe(),setTimeout(fe);if(d.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:_e(n.errors)&&!V,submitCount:n.submitCount+1,errors:n.errors}),V)throw V},$=(w,C={})=>{O(r,w)&&(pe(C.defaultValue)?U(w,ke(O(s,w))):(U(w,C.defaultValue),ie(s,w,ke(C.defaultValue))),C.keepTouched||xe(n.touchedFields,w),C.keepDirty||(xe(n.dirtyFields,w),n.isDirty=C.defaultValue?j(w,ke(O(s,w))):j()),C.keepError||(xe(n.errors,w),u.isValid&&x()),d.state.next({...n}))},J=(w,C={})=>{const R=w?ke(w):s,V=ke(R),k=_e(w),N=k?s:V;if(C.keepDefaultValues||(s=R),!C.keepValues){if(C.keepDirtyValues){const z=new Set([...a.mount,...Object.keys(An(s,i))]);for(const X of Array.from(z))O(n.dirtyFields,X)?ie(N,X,O(i,X)):U(X,O(N,X))}else{if(eo&&pe(w))for(const z of a.mount){const X=O(r,z);if(X&&X._f){const ve=Array.isArray(X._f.refs)?X._f.refs[0]:X._f.ref;if(_r(ve)){const he=ve.closest("form");if(he){he.reset();break}}}}r={}}i=t.shouldUnregister?C.keepDefaultValues?ke(s):{}:ke(N),d.array.next({values:{...N}}),d.values.next({values:{...N}})}a={mount:C.keepDirtyValues?a.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},o.mount=!u.isValid||!!C.keepIsValid||!!C.keepDirtyValues,o.watch=!!t.shouldUnregister,d.state.next({submitCount:C.keepSubmitCount?n.submitCount:0,isDirty:k?!1:C.keepDirty?n.isDirty:!!(C.keepDefaultValues&&!At(w,s)),isSubmitted:C.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:k?{}:C.keepDirtyValues?C.keepDefaultValues&&i?An(s,i):n.dirtyFields:C.keepDefaultValues&&w?An(s,w):C.keepDirty?n.dirtyFields:{},touchedFields:C.keepTouched?n.touchedFields:{},errors:C.keepErrors?n.errors:{},isSubmitSuccessful:C.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},oe=(w,C)=>J(st(w)?w(i):w,C);return{control:{register:ne,unregister:Ee,getFieldState:Ae,handleSubmit:se,setError:Ce,_executeSchema:D,_getWatch:F,_getDirty:j,_updateValid:x,_removeUnmounted:I,_updateFieldArray:b,_updateDisabledField:Z,_getFieldArray:L,_reset:J,_resetDefaultValues:()=>st(t.defaultValues)&&t.defaultValues().then(w=>{oe(w,t.resetOptions),d.state.next({isLoading:!1})}),_updateFormState:w=>{n={...n,...w}},_disableForm:ye,_subjects:d,_proxyFormState:u,_setErrors:P,get _fields(){return r},get _formValues(){return i},get _state(){return o},set _state(w){o=w},get _defaultValues(){return s},get _names(){return a},set _names(w){a=w},get _formState(){return n},set _formState(w){n=w},get _options(){return t},set _options(w){t={...t,...w}}},trigger:ee,register:ne,handleSubmit:se,watch:Ke,setValue:U,getValues:te,reset:oe,resetField:$,clearErrors:Ve,unregister:Ee,setError:Ce,setFocus:(w,C={})=>{const R=O(r,w),V=R&&R._f;if(V){const k=V.refs?V.refs[0]:V.ref;k.focus&&(k.focus(),C.shouldSelect&&st(k.select)&&k.select())}},getFieldState:Ae}}function S0(e={}){const t=re.useRef(void 0),n=re.useRef(void 0),[r,s]=re.useState({isDirty:!1,isValidating:!1,isLoading:st(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:st(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...eb(e),formState:r});const i=t.current.control;return i._options=e,no({subject:i._subjects.state,next:o=>{cd(o,i._proxyFormState,i._updateFormState,!0)&&s({...i._formState})}}),re.useEffect(()=>i._disableForm(e.disabled),[i,e.disabled]),re.useEffect(()=>{if(i._proxyFormState.isDirty){const o=i._getDirty();o!==r.isDirty&&i._subjects.state.next({isDirty:o})}},[i,r.isDirty]),re.useEffect(()=>{e.values&&!At(e.values,n.current)?(i._reset(e.values,i._options.resetOptions),n.current=e.values,s(o=>({...o}))):i._resetDefaultValues()},[e.values,i]),re.useEffect(()=>{e.errors&&i._setErrors(e.errors)},[e.errors,i]),re.useEffect(()=>{i._state.mount||(i._updateValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()}),re.useEffect(()=>{e.shouldUnregister&&i._subjects.values.next({values:i._getWatch()})},[e.shouldUnregister,i]),t.current.formState=ld(r,i),t.current}var tb="Label",vd=y.forwardRef((e,t)=>p.jsx(Me.label,{...e,ref:t,onMouseDown:n=>{var s;n.target.closest("button, input, select, textarea")||((s=e.onMouseDown)==null||s.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));vd.displayName=tb;var xd=vd;const nb=yi("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),bd=y.forwardRef(({className:e,...t},n)=>p.jsx(xd,{ref:n,className:q(nb(),e),...t}));bd.displayName=xd.displayName;const A0=Lx,wd=y.createContext({}),rb=({...e})=>p.jsx(wd.Provider,{value:{name:e.name},children:p.jsx($x,{...e})}),Jr=()=>{const e=y.useContext(wd),t=y.useContext(Sd),{getFieldState:n,formState:r}=Zr(),s=n(e.name,r);if(!e)throw new Error("useFormField should be used within ");const{id:i}=t;return{id:i,name:e.name,formItemId:`${i}-form-item`,formDescriptionId:`${i}-form-item-description`,formMessageId:`${i}-form-item-message`,...s}},Sd=y.createContext({}),Ad=y.forwardRef(({className:e,...t},n)=>{const r=y.useId();return p.jsx(Sd.Provider,{value:{id:r},children:p.jsx("div",{ref:n,className:q("space-y-2",e),...t})})});Ad.displayName="FormItem";const Cd=y.forwardRef(({className:e,...t},n)=>{const{error:r,formItemId:s}=Jr();return p.jsx(bd,{ref:n,className:q(r&&"text-destructive",e),htmlFor:s,...t})});Cd.displayName="FormLabel";const Pd=y.forwardRef(({...e},t)=>{const{error:n,formItemId:r,formDescriptionId:s,formMessageId:i}=Jr();return p.jsx(un,{ref:t,id:r,"aria-describedby":n?`${s} ${i}`:`${s}`,"aria-invalid":!!n,...e})});Pd.displayName="FormControl";const sb=y.forwardRef(({className:e,...t},n)=>{const{formDescriptionId:r}=Jr();return p.jsx("p",{ref:n,id:r,className:q("text-[0.8rem] text-muted-foreground",e),...t})});sb.displayName="FormDescription";const Td=y.forwardRef(({className:e,children:t,...n},r)=>{const{error:s,formMessageId:i}=Jr(),o=s?String(s==null?void 0:s.message):t;return o?p.jsx("p",{ref:r,id:i,className:q("text-[0.8rem] font-medium text-destructive",e),...n,children:o}):null});Td.displayName="FormMessage";const ni=y.forwardRef(({className:e,type:t,...n},r)=>t!=="file"?p.jsx("input",{type:t,className:q("flex h-14 rounded-[2px] border p-4 focus:border-[3px] focus:outline-none focus:border-primary transition-all hover:border-on_surface border-outline bg-transparent text-base w-regular file:border-0 file:bg-secondary_container file:outline-none file:text-sm file:w-fit file:text-on_secondary_container file:font-medium placeholder:text-muted-foreground focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...n}):p.jsxs("div",{className:"relative w-[160px] h-9 overflow-hidden !cursor-pointer",children:[p.jsx("input",{ref:r,accept:".pdf, .png, .jpeg, .jpg",type:t,className:q("h-9 absolute top-0 left-0 !cursor-pointer opacity-0 z-20 size-full"),...n}),p.jsxs("div",{className:"absolute rounded-[2px] cursor-pointer size-full flex items-center gap-4 px-3 py-2.5 top-0 left-0 bg-secondary_container",children:[p.jsx(am,{className:"cursor-pointer",size:16})," Upload file"]})]}));ni.displayName="Input";const Ed=y.forwardRef(({className:e,...t},n)=>p.jsx("textarea",{className:q("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...t}));Ed.displayName="Textarea";const C0=({control:e,name:t,label:n,placeholder:r,error:s,type:i="text",className:o,disabled:a,textArea:l=!1,textDark:c,supporText:u,handleChange:d,onPrimary:f=!1})=>p.jsx(rb,{control:e,name:t,render:({field:m})=>p.jsxs(Ad,{className:q(o,"flex flex-col w-full relative"),children:[p.jsx(Cd,{className:q("text-xl",f&&"!text-on_primary",c?"text-on_surface":"text-on_surface_v"),children:n}),p.jsx(Pd,{children:p.jsx(p.Fragment,{children:l?p.jsx(Ed,{rows:3,...m,placeholder:r,className:q(s&&"border-[#BA1A1A]",f&&"border-primary_outline_reverse focus:border-white hover:border-white focus:border-1 text-on_primary")}):i!=="file"?p.jsx(ni,{...m,type:i,placeholder:r,disabled:a,className:q(s&&"border-[#BA1A1A]",f&&"border-primary_outline_reverse focus:border-white hover:border-white focus:border-1 text-on_primary")}):p.jsxs("div",{className:"relative",children:[p.jsx(ni,{type:"file",placeholder:r,onChange:g=>{var x;const h=((x=g.target.files)==null?void 0:x[0])||null;console.log("Выбранный файл:",h),m.onChange(h),d&&d(g)},disabled:a}),m.value&&p.jsxs("div",{className:"text-sm mt-2 text-gray-500 absolute top-8",children:["Выбранный файл: ",m.value.name]})]})})}),p.jsx(Td,{className:q("absolute -bottom-5 left-0 text-sm font-medium leading-[130%]",s&&f?"text-teritary_04":"text-[#BA1A1A]"),children:s?s.message:u})]})}),P0=({className:e,delay:t=.15})=>p.jsxs(Ar.div,{initial:{opacity:0,y:50},animate:{opacity:1,y:0,transition:{delay:t}},className:q("flex flex-col gap-8 my-16",e),children:[p.jsx("h3",{className:"text-3xl text-center",children:"Форма успешно отправлена!"}),p.jsx(De,{className:"w-fit mx-auto",to:"/",children:p.jsx(Ge,{variant:"outline",children:"Вернуться на главную"})})]}),ib=({className:e,slides:t,active:n,scrollTo:r})=>p.jsx("div",{className:q("flex items-center justify-center gap-2",e),children:Array.from({length:t}).map((s,i)=>p.jsx("span",{onClick:()=>r==null?void 0:r(i),className:q(n===i?"dot-active":"dot")},i))}),ob=["top","right","bottom","left"],Et=Math.min,Fe=Math.max,Fr=Math.round,mr=Math.floor,lt=e=>({x:e,y:e}),ab={left:"right",right:"left",bottom:"top",top:"bottom"},lb={start:"end",end:"start"};function ri(e,t,n){return Fe(e,Et(t,n))}function yt(e,t){return typeof e=="function"?e(t):e}function vt(e){return e.split("-")[0]}function pn(e){return e.split("-")[1]}function io(e){return e==="x"?"y":"x"}function oo(e){return e==="y"?"height":"width"}function Rt(e){return["top","bottom"].includes(vt(e))?"y":"x"}function ao(e){return io(Rt(e))}function cb(e,t,n){n===void 0&&(n=!1);const r=pn(e),s=ao(e),i=oo(s);let o=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=Lr(o)),[o,Lr(o)]}function ub(e){const t=Lr(e);return[si(e),t,si(t)]}function si(e){return e.replace(/start|end/g,t=>lb[t])}function db(e,t,n){const r=["left","right"],s=["right","left"],i=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?s:r:t?r:s;case"left":case"right":return t?i:o;default:return[]}}function fb(e,t,n,r){const s=pn(e);let i=db(vt(e),n==="start",r);return s&&(i=i.map(o=>o+"-"+s),t&&(i=i.concat(i.map(si)))),i}function Lr(e){return e.replace(/left|right|bottom|top/g,t=>ab[t])}function hb(e){return{top:0,right:0,bottom:0,left:0,...e}}function Rd(e){return typeof e!="number"?hb(e):{top:e,right:e,bottom:e,left:e}}function Ir(e){const{x:t,y:n,width:r,height:s}=e;return{width:r,height:s,top:n,left:t,right:t+r,bottom:n+s,x:t,y:n}}function xl(e,t,n){let{reference:r,floating:s}=e;const i=Rt(t),o=ao(t),a=oo(o),l=vt(t),c=i==="y",u=r.x+r.width/2-s.width/2,d=r.y+r.height/2-s.height/2,f=r[a]/2-s[a]/2;let m;switch(l){case"top":m={x:u,y:r.y-s.height};break;case"bottom":m={x:u,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:d};break;case"left":m={x:r.x-s.width,y:d};break;default:m={x:r.x,y:r.y}}switch(pn(t)){case"start":m[o]-=f*(n&&c?-1:1);break;case"end":m[o]+=f*(n&&c?-1:1);break}return m}const mb=async(e,t,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:i=[],platform:o}=n,a=i.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let c=await o.getElementRects({reference:e,floating:t,strategy:s}),{x:u,y:d}=xl(c,r,l),f=r,m={},g=0;for(let h=0;h({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:s,rects:i,platform:o,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=yt(e,t)||{};if(c==null)return{};const d=Rd(u),f={x:n,y:r},m=ao(s),g=oo(m),h=await o.getDimensions(c),x=m==="y",v=x?"top":"left",b=x?"bottom":"right",A=x?"clientHeight":"clientWidth",P=i.reference[g]+i.reference[m]-f[m]-i.floating[g],S=f[m]-i.reference[m],T=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c));let E=T?T[A]:0;(!E||!await(o.isElement==null?void 0:o.isElement(T)))&&(E=a.floating[A]||i.floating[g]);const D=P/2-S/2,M=E/2-h[g]/2-1,_=Et(d[v],M),I=Et(d[b],M),j=_,F=E-h[g]-I,L=E/2-h[g]/2+D,G=ri(j,L,F),W=!l.arrow&&pn(s)!=null&&L!==G&&i.reference[g]/2-(LL<=0)){var I,j;const L=(((I=i.flip)==null?void 0:I.index)||0)+1,G=E[L];if(G)return{data:{index:L,overflows:_},reset:{placement:G}};let W=(j=_.filter(U=>U.overflows[0]<=0).sort((U,B)=>U.overflows[1]-B.overflows[1])[0])==null?void 0:j.placement;if(!W)switch(m){case"bestFit":{var F;const U=(F=_.filter(B=>{if(T){const K=Rt(B.placement);return K===b||K==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(K=>K>0).reduce((K,ee)=>K+ee,0)]).sort((B,K)=>B[1]-K[1])[0])==null?void 0:F[0];U&&(W=U);break}case"initialPlacement":W=a;break}if(s!==W)return{reset:{placement:W}}}return{}}}};function bl(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function wl(e){return ob.some(t=>e[t]>=0)}const yb=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...s}=yt(e,t);switch(r){case"referenceHidden":{const i=await zn(t,{...s,elementContext:"reference"}),o=bl(i,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:wl(o)}}}case"escaped":{const i=await zn(t,{...s,altBoundary:!0}),o=bl(i,n.floating);return{data:{escapedOffsets:o,escaped:wl(o)}}}default:return{}}}}};async function vb(e,t){const{placement:n,platform:r,elements:s}=e,i=await(r.isRTL==null?void 0:r.isRTL(s.floating)),o=vt(n),a=pn(n),l=Rt(n)==="y",c=["left","top"].includes(o)?-1:1,u=i&&l?-1:1,d=yt(t,e);let{mainAxis:f,crossAxis:m,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof g=="number"&&(m=a==="end"?g*-1:g),l?{x:m*u,y:f*c}:{x:f*c,y:m*u}}const xb=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:s,y:i,placement:o,middlewareData:a}=t,l=await vb(t,e);return o===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:s+l.x,y:i+l.y,data:{...l,placement:o}}}}},bb=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:s}=t,{mainAxis:i=!0,crossAxis:o=!1,limiter:a={fn:x=>{let{x:v,y:b}=x;return{x:v,y:b}}},...l}=yt(e,t),c={x:n,y:r},u=await zn(t,l),d=Rt(vt(s)),f=io(d);let m=c[f],g=c[d];if(i){const x=f==="y"?"top":"left",v=f==="y"?"bottom":"right",b=m+u[x],A=m-u[v];m=ri(b,m,A)}if(o){const x=d==="y"?"top":"left",v=d==="y"?"bottom":"right",b=g+u[x],A=g-u[v];g=ri(b,g,A)}const h=a.fn({...t,[f]:m,[d]:g});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[f]:i,[d]:o}}}}}},wb=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:s,rects:i,middlewareData:o}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=yt(e,t),u={x:n,y:r},d=Rt(s),f=io(d);let m=u[f],g=u[d];const h=yt(a,t),x=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const A=f==="y"?"height":"width",P=i.reference[f]-i.floating[A]+x.mainAxis,S=i.reference[f]+i.reference[A]-x.mainAxis;mS&&(m=S)}if(c){var v,b;const A=f==="y"?"width":"height",P=["top","left"].includes(vt(s)),S=i.reference[d]-i.floating[A]+(P&&((v=o.offset)==null?void 0:v[d])||0)+(P?0:x.crossAxis),T=i.reference[d]+i.reference[A]+(P?0:((b=o.offset)==null?void 0:b[d])||0)-(P?x.crossAxis:0);gT&&(g=T)}return{[f]:m,[d]:g}}}},Sb=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:s,rects:i,platform:o,elements:a}=t,{apply:l=()=>{},...c}=yt(e,t),u=await zn(t,c),d=vt(s),f=pn(s),m=Rt(s)==="y",{width:g,height:h}=i.floating;let x,v;d==="top"||d==="bottom"?(x=d,v=f===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(v=d,x=f==="end"?"top":"bottom");const b=h-u.top-u.bottom,A=g-u.left-u.right,P=Et(h-u[x],b),S=Et(g-u[v],A),T=!t.middlewareData.shift;let E=P,D=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(D=A),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(E=b),T&&!f){const _=Fe(u.left,0),I=Fe(u.right,0),j=Fe(u.top,0),F=Fe(u.bottom,0);m?D=g-2*(_!==0||I!==0?_+I:Fe(u.left,u.right)):E=h-2*(j!==0||F!==0?j+F:Fe(u.top,u.bottom))}await l({...t,availableWidth:D,availableHeight:E});const M=await o.getDimensions(a.floating);return g!==M.width||h!==M.height?{reset:{rects:!0}}:{}}}};function Qr(){return typeof window<"u"}function gn(e){return Dd(e)?(e.nodeName||"").toLowerCase():"#document"}function Be(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ut(e){var t;return(t=(Dd(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Dd(e){return Qr()?e instanceof Node||e instanceof Be(e).Node:!1}function Ze(e){return Qr()?e instanceof Element||e instanceof Be(e).Element:!1}function ct(e){return Qr()?e instanceof HTMLElement||e instanceof Be(e).HTMLElement:!1}function Sl(e){return!Qr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Be(e).ShadowRoot}function Qn(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=Je(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(s)}function Ab(e){return["table","td","th"].includes(gn(e))}function es(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function lo(e){const t=co(),n=Ze(e)?Je(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function Cb(e){let t=Dt(e);for(;ct(t)&&!ln(t);){if(lo(t))return t;if(es(t))return null;t=Dt(t)}return null}function co(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ln(e){return["html","body","#document"].includes(gn(e))}function Je(e){return Be(e).getComputedStyle(e)}function ts(e){return Ze(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Dt(e){if(gn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Sl(e)&&e.host||ut(e);return Sl(t)?t.host:t}function jd(e){const t=Dt(e);return ln(t)?e.ownerDocument?e.ownerDocument.body:e.body:ct(t)&&Qn(t)?t:jd(t)}function Wn(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=jd(e),i=s===((r=e.ownerDocument)==null?void 0:r.body),o=Be(s);if(i){const a=ii(o);return t.concat(o,o.visualViewport||[],Qn(s)?s:[],a&&n?Wn(a):[])}return t.concat(s,Wn(s,[],n))}function ii(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Nd(e){const t=Je(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=ct(e),i=s?e.offsetWidth:n,o=s?e.offsetHeight:r,a=Fr(n)!==i||Fr(r)!==o;return a&&(n=i,r=o),{width:n,height:r,$:a}}function uo(e){return Ze(e)?e:e.contextElement}function rn(e){const t=uo(e);if(!ct(t))return lt(1);const n=t.getBoundingClientRect(),{width:r,height:s,$:i}=Nd(t);let o=(i?Fr(n.width):n.width)/r,a=(i?Fr(n.height):n.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const Pb=lt(0);function Md(e){const t=Be(e);return!co()||!t.visualViewport?Pb:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Tb(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Be(e)?!1:t}function $t(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),i=uo(e);let o=lt(1);t&&(r?Ze(r)&&(o=rn(r)):o=rn(e));const a=Tb(i,n,r)?Md(i):lt(0);let l=(s.left+a.x)/o.x,c=(s.top+a.y)/o.y,u=s.width/o.x,d=s.height/o.y;if(i){const f=Be(i),m=r&&Ze(r)?Be(r):r;let g=f,h=ii(g);for(;h&&r&&m!==g;){const x=rn(h),v=h.getBoundingClientRect(),b=Je(h),A=v.left+(h.clientLeft+parseFloat(b.paddingLeft))*x.x,P=v.top+(h.clientTop+parseFloat(b.paddingTop))*x.y;l*=x.x,c*=x.y,u*=x.x,d*=x.y,l+=A,c+=P,g=Be(h),h=ii(g)}}return Ir({width:u,height:d,x:l,y:c})}function fo(e,t){const n=ts(e).scrollLeft;return t?t.left+n:$t(ut(e)).left+n}function kd(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=r.left+t.scrollLeft-(n?0:fo(e,r)),i=r.top+t.scrollTop;return{x:s,y:i}}function Eb(e){let{elements:t,rect:n,offsetParent:r,strategy:s}=e;const i=s==="fixed",o=ut(r),a=t?es(t.floating):!1;if(r===o||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=lt(1);const u=lt(0),d=ct(r);if((d||!d&&!i)&&((gn(r)!=="body"||Qn(o))&&(l=ts(r)),ct(r))){const m=$t(r);c=rn(r),u.x=m.x+r.clientLeft,u.y=m.y+r.clientTop}const f=o&&!d&&!i?kd(o,l,!0):lt(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-l.scrollTop*c.y+u.y+f.y}}function Rb(e){return Array.from(e.getClientRects())}function Db(e){const t=ut(e),n=ts(e),r=e.ownerDocument.body,s=Fe(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Fe(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+fo(e);const a=-n.scrollTop;return Je(r).direction==="rtl"&&(o+=Fe(t.clientWidth,r.clientWidth)-s),{width:s,height:i,x:o,y:a}}function jb(e,t){const n=Be(e),r=ut(e),s=n.visualViewport;let i=r.clientWidth,o=r.clientHeight,a=0,l=0;if(s){i=s.width,o=s.height;const c=co();(!c||c&&t==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:i,height:o,x:a,y:l}}function Nb(e,t){const n=$t(e,!0,t==="fixed"),r=n.top+e.clientTop,s=n.left+e.clientLeft,i=ct(e)?rn(e):lt(1),o=e.clientWidth*i.x,a=e.clientHeight*i.y,l=s*i.x,c=r*i.y;return{width:o,height:a,x:l,y:c}}function Al(e,t,n){let r;if(t==="viewport")r=jb(e,n);else if(t==="document")r=Db(ut(e));else if(Ze(t))r=Nb(t,n);else{const s=Md(e);r={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return Ir(r)}function _d(e,t){const n=Dt(e);return n===t||!Ze(n)||ln(n)?!1:Je(n).position==="fixed"||_d(n,t)}function Mb(e,t){const n=t.get(e);if(n)return n;let r=Wn(e,[],!1).filter(a=>Ze(a)&&gn(a)!=="body"),s=null;const i=Je(e).position==="fixed";let o=i?Dt(e):e;for(;Ze(o)&&!ln(o);){const a=Je(o),l=lo(o);!l&&a.position==="fixed"&&(s=null),(i?!l&&!s:!l&&a.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||Qn(o)&&!l&&_d(e,o))?r=r.filter(u=>u!==o):s=a,o=Dt(o)}return t.set(e,r),r}function kb(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const o=[...n==="clippingAncestors"?es(t)?[]:Mb(t,this._c):[].concat(n),r],a=o[0],l=o.reduce((c,u)=>{const d=Al(t,u,s);return c.top=Fe(d.top,c.top),c.right=Et(d.right,c.right),c.bottom=Et(d.bottom,c.bottom),c.left=Fe(d.left,c.left),c},Al(t,a,s));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function _b(e){const{width:t,height:n}=Nd(e);return{width:t,height:n}}function Vb(e,t,n){const r=ct(t),s=ut(t),i=n==="fixed",o=$t(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=lt(0);if(r||!r&&!i)if((gn(t)!=="body"||Qn(s))&&(a=ts(t)),r){const f=$t(t,!0,i,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}else s&&(l.x=fo(s));const c=s&&!r&&!i?kd(s,a):lt(0),u=o.left+a.scrollLeft-l.x-c.x,d=o.top+a.scrollTop-l.y-c.y;return{x:u,y:d,width:o.width,height:o.height}}function Ds(e){return Je(e).position==="static"}function Cl(e,t){if(!ct(e)||Je(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ut(e)===n&&(n=n.ownerDocument.body),n}function Vd(e,t){const n=Be(e);if(es(e))return n;if(!ct(e)){let s=Dt(e);for(;s&&!ln(s);){if(Ze(s)&&!Ds(s))return s;s=Dt(s)}return n}let r=Cl(e,t);for(;r&&Ab(r)&&Ds(r);)r=Cl(r,t);return r&&ln(r)&&Ds(r)&&!lo(r)?n:r||Cb(e)||n}const Ob=async function(e){const t=this.getOffsetParent||Vd,n=this.getDimensions,r=await n(e.floating);return{reference:Vb(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Fb(e){return Je(e).direction==="rtl"}const Lb={convertOffsetParentRelativeRectToViewportRelativeRect:Eb,getDocumentElement:ut,getClippingRect:kb,getOffsetParent:Vd,getElementRects:Ob,getClientRects:Rb,getDimensions:_b,getScale:rn,isElement:Ze,isRTL:Fb};function Od(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ib(e,t){let n=null,r;const s=ut(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function o(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:m}=c;if(a||t(),!f||!m)return;const g=mr(d),h=mr(s.clientWidth-(u+f)),x=mr(s.clientHeight-(d+m)),v=mr(u),A={rootMargin:-g+"px "+-h+"px "+-x+"px "+-v+"px",threshold:Fe(0,Et(1,l))||1};let P=!0;function S(T){const E=T[0].intersectionRatio;if(E!==l){if(!P)return o();E?o(!1,E):r=setTimeout(()=>{o(!1,1e-7)},1e3)}E===1&&!Od(c,e.getBoundingClientRect())&&o(),P=!1}try{n=new IntersectionObserver(S,{...A,root:s.ownerDocument})}catch{n=new IntersectionObserver(S,A)}n.observe(e)}return o(!0),i}function Bb(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=uo(e),u=s||i?[...c?Wn(c):[],...Wn(t)]:[];u.forEach(v=>{s&&v.addEventListener("scroll",n,{passive:!0}),i&&v.addEventListener("resize",n)});const d=c&&a?Ib(c,n):null;let f=-1,m=null;o&&(m=new ResizeObserver(v=>{let[b]=v;b&&b.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var A;(A=m)==null||A.observe(t)})),n()}),c&&!l&&m.observe(c),m.observe(t));let g,h=l?$t(e):null;l&&x();function x(){const v=$t(e);h&&!Od(h,v)&&n(),h=v,g=requestAnimationFrame(x)}return n(),()=>{var v;u.forEach(b=>{s&&b.removeEventListener("scroll",n),i&&b.removeEventListener("resize",n)}),d==null||d(),(v=m)==null||v.disconnect(),m=null,l&&cancelAnimationFrame(g)}}const Ub=xb,$b=bb,zb=gb,Wb=Sb,Hb=yb,Pl=pb,Gb=wb,Kb=(e,t,n)=>{const r=new Map,s={platform:Lb,...n},i={...s.platform,_c:r};return mb(e,t,{...s,platform:i})};var Pr=typeof document<"u"?y.useLayoutEffect:y.useEffect;function Br(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Br(e[r],t[r]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,s[r]))return!1;for(r=n;r--!==0;){const i=s[r];if(!(i==="_owner"&&e.$$typeof)&&!Br(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Fd(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Tl(e,t){const n=Fd(e);return Math.round(t*n)/n}function js(e){const t=y.useRef(e);return Pr(()=>{t.current=e}),t}function qb(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:i,floating:o}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[u,d]=y.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,m]=y.useState(r);Br(f,r)||m(r);const[g,h]=y.useState(null),[x,v]=y.useState(null),b=y.useCallback(B=>{B!==T.current&&(T.current=B,h(B))},[]),A=y.useCallback(B=>{B!==E.current&&(E.current=B,v(B))},[]),P=i||g,S=o||x,T=y.useRef(null),E=y.useRef(null),D=y.useRef(u),M=l!=null,_=js(l),I=js(s),j=js(c),F=y.useCallback(()=>{if(!T.current||!E.current)return;const B={placement:t,strategy:n,middleware:f};I.current&&(B.platform=I.current),Kb(T.current,E.current,B).then(K=>{const ee={...K,isPositioned:j.current!==!1};L.current&&!Br(D.current,ee)&&(D.current=ee,kl.flushSync(()=>{d(ee)}))})},[f,t,n,I,j]);Pr(()=>{c===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,d(B=>({...B,isPositioned:!1})))},[c]);const L=y.useRef(!1);Pr(()=>(L.current=!0,()=>{L.current=!1}),[]),Pr(()=>{if(P&&(T.current=P),S&&(E.current=S),P&&S){if(_.current)return _.current(P,S,F);F()}},[P,S,F,_,M]);const G=y.useMemo(()=>({reference:T,floating:E,setReference:b,setFloating:A}),[b,A]),W=y.useMemo(()=>({reference:P,floating:S}),[P,S]),U=y.useMemo(()=>{const B={position:n,left:0,top:0};if(!W.floating)return B;const K=Tl(W.floating,u.x),ee=Tl(W.floating,u.y);return a?{...B,transform:"translate("+K+"px, "+ee+"px)",...Fd(W.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:K,top:ee}},[n,a,W.floating,u.x,u.y]);return y.useMemo(()=>({...u,update:F,refs:G,elements:W,floatingStyles:U}),[u,F,G,W,U])}const Xb=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:s}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Pl({element:r.current,padding:s}).fn(n):{}:r?Pl({element:r,padding:s}).fn(n):{}}}},Yb=(e,t)=>({...Ub(e),options:[e,t]}),Zb=(e,t)=>({...$b(e),options:[e,t]}),Jb=(e,t)=>({...Gb(e),options:[e,t]}),Qb=(e,t)=>({...zb(e),options:[e,t]}),ew=(e,t)=>({...Wb(e),options:[e,t]}),tw=(e,t)=>({...Hb(e),options:[e,t]}),nw=(e,t)=>({...Xb(e),options:[e,t]});var rw="Arrow",Ld=y.forwardRef((e,t)=>{const{children:n,width:r=10,height:s=5,...i}=e;return p.jsx(Me.svg,{...i,ref:t,width:r,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:p.jsx("polygon",{points:"0,0 30,0 15,10"})})});Ld.displayName=rw;var sw=Ld;function iw(e){const[t,n]=y.useState(void 0);return Bt(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const i=s[0];let o,a;if("borderBoxSize"in i){const l=i.borderBoxSize,c=Array.isArray(l)?l[0]:l;o=c.inlineSize,a=c.blockSize}else o=e.offsetWidth,a=e.offsetHeight;n({width:o,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var ho="Popper",[Id,Bd]=li(ho),[ow,Ud]=Id(ho),$d=e=>{const{__scopePopper:t,children:n}=e,[r,s]=y.useState(null);return p.jsx(ow,{scope:t,anchor:r,onAnchorChange:s,children:n})};$d.displayName=ho;var zd="PopperAnchor",Wd=y.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...s}=e,i=Ud(zd,n),o=y.useRef(null),a=Qe(t,o);return y.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||o.current)}),r?null:p.jsx(Me.div,{...s,ref:a})});Wd.displayName=zd;var mo="PopperContent",[aw,lw]=Id(mo),Hd=y.forwardRef((e,t)=>{var Z,ne,fe,ye,se,$;const{__scopePopper:n,side:r="bottom",sideOffset:s=0,align:i="center",alignOffset:o=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:f=!1,updatePositionStrategy:m="optimized",onPlaced:g,...h}=e,x=Ud(mo,n),[v,b]=y.useState(null),A=Qe(t,J=>b(J)),[P,S]=y.useState(null),T=iw(P),E=(T==null?void 0:T.width)??0,D=(T==null?void 0:T.height)??0,M=r+(i!=="center"?"-"+i:""),_=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},I=Array.isArray(c)?c:[c],j=I.length>0,F={padding:_,boundary:I.filter(uw),altBoundary:j},{refs:L,floatingStyles:G,placement:W,isPositioned:U,middlewareData:B}=qb({strategy:"fixed",placement:M,whileElementsMounted:(...J)=>Bb(...J,{animationFrame:m==="always"}),elements:{reference:x.anchor},middleware:[Yb({mainAxis:s+D,alignmentAxis:o}),l&&Zb({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?Jb():void 0,...F}),l&&Qb({...F}),ew({...F,apply:({elements:J,rects:oe,availableWidth:be,availableHeight:Oe})=>{const{width:$e,height:w}=oe.reference,C=J.floating.style;C.setProperty("--radix-popper-available-width",`${be}px`),C.setProperty("--radix-popper-available-height",`${Oe}px`),C.setProperty("--radix-popper-anchor-width",`${$e}px`),C.setProperty("--radix-popper-anchor-height",`${w}px`)}}),P&&nw({element:P,padding:a}),dw({arrowWidth:E,arrowHeight:D}),f&&tw({strategy:"referenceHidden",...F})]}),[K,ee]=qd(W),te=Ct(g);Bt(()=>{U&&(te==null||te())},[U,te]);const Ae=(Z=B.arrow)==null?void 0:Z.x,Ve=(ne=B.arrow)==null?void 0:ne.y,Ce=((fe=B.arrow)==null?void 0:fe.centerOffset)!==0,[Ke,Ee]=y.useState();return Bt(()=>{v&&Ee(window.getComputedStyle(v).zIndex)},[v]),p.jsx("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...G,transform:U?G.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ke,"--radix-popper-transform-origin":[(ye=B.transformOrigin)==null?void 0:ye.x,(se=B.transformOrigin)==null?void 0:se.y].join(" "),...(($=B.hide)==null?void 0:$.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:p.jsx(aw,{scope:n,placedSide:K,onArrowChange:S,arrowX:Ae,arrowY:Ve,shouldHideArrow:Ce,children:p.jsx(Me.div,{"data-side":K,"data-align":ee,...h,ref:A,style:{...h.style,animation:U?void 0:"none"}})})})});Hd.displayName=mo;var Gd="PopperArrow",cw={top:"bottom",right:"left",bottom:"top",left:"right"},Kd=y.forwardRef(function(t,n){const{__scopePopper:r,...s}=t,i=lw(Gd,r),o=cw[i.placedSide];return p.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:p.jsx(sw,{...s,ref:n,style:{...s.style,display:"block"}})})});Kd.displayName=Gd;function uw(e){return e!==null}var dw=e=>({name:"transformOrigin",options:e,fn(t){var x,v,b;const{placement:n,rects:r,middlewareData:s}=t,o=((x=s.arrow)==null?void 0:x.centerOffset)!==0,a=o?0:e.arrowWidth,l=o?0:e.arrowHeight,[c,u]=qd(n),d={start:"0%",center:"50%",end:"100%"}[u],f=(((v=s.arrow)==null?void 0:v.x)??0)+a/2,m=(((b=s.arrow)==null?void 0:b.y)??0)+l/2;let g="",h="";return c==="bottom"?(g=o?d:`${f}px`,h=`${-l}px`):c==="top"?(g=o?d:`${f}px`,h=`${r.floating.height+l}px`):c==="right"?(g=`${-l}px`,h=o?d:`${m}px`):c==="left"&&(g=`${r.floating.width+l}px`,h=o?d:`${m}px`),{data:{x:g,y:h}}}});function qd(e){const[t,n="center"]=e.split("-");return[t,n]}var fw=$d,Xd=Wd,hw=Hd,mw=Kd,po="Popover",[Yd,T0]=li(po,[Bd]),er=Bd(),[pw,Nt]=Yd(po),Zd=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:s,onOpenChange:i,modal:o=!1}=e,a=er(t),l=y.useRef(null),[c,u]=y.useState(!1),[d=!1,f]=Vl({prop:r,defaultProp:s,onChange:i});return p.jsx(fw,{...a,children:p.jsx(pw,{scope:t,contentId:yr(),triggerRef:l,open:d,onOpenChange:f,onOpenToggle:y.useCallback(()=>f(m=>!m),[f]),hasCustomAnchor:c,onCustomAnchorAdd:y.useCallback(()=>u(!0),[]),onCustomAnchorRemove:y.useCallback(()=>u(!1),[]),modal:o,children:n})})};Zd.displayName=po;var Jd="PopoverAnchor",gw=y.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,s=Nt(Jd,n),i=er(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:a}=s;return y.useEffect(()=>(o(),()=>a()),[o,a]),p.jsx(Xd,{...i,...r,ref:t})});gw.displayName=Jd;var Qd="PopoverTrigger",ef=y.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,s=Nt(Qd,n),i=er(n),o=Qe(t,s.triggerRef),a=p.jsx(Me.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":of(s.open),...r,ref:o,onClick:Le(e.onClick,s.onOpenToggle)});return s.hasCustomAnchor?a:p.jsx(Xd,{asChild:!0,...i,children:a})});ef.displayName=Qd;var go="PopoverPortal",[yw,vw]=Yd(go,{forceMount:void 0}),tf=e=>{const{__scopePopover:t,forceMount:n,children:r,container:s}=e,i=Nt(go,t);return p.jsx(yw,{scope:t,forceMount:n,children:p.jsx(dn,{present:n||i.open,children:p.jsx(di,{asChild:!0,container:s,children:r})})})};tf.displayName=go;var cn="PopoverContent",nf=y.forwardRef((e,t)=>{const n=vw(cn,e.__scopePopover),{forceMount:r=n.forceMount,...s}=e,i=Nt(cn,e.__scopePopover);return p.jsx(dn,{present:r||i.open,children:i.modal?p.jsx(xw,{...s,ref:t}):p.jsx(bw,{...s,ref:t})})});nf.displayName=cn;var xw=y.forwardRef((e,t)=>{const n=Nt(cn,e.__scopePopover),r=y.useRef(null),s=Qe(t,r),i=y.useRef(!1);return y.useEffect(()=>{const o=r.current;if(o)return ql(o)},[]),p.jsx(fi,{as:un,allowPinchZoom:!0,children:p.jsx(rf,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Le(e.onCloseAutoFocus,o=>{var a;o.preventDefault(),i.current||(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:Le(e.onPointerDownOutside,o=>{const a=o.detail.originalEvent,l=a.button===0&&a.ctrlKey===!0,c=a.button===2||l;i.current=c},{checkForDefaultPrevented:!1}),onFocusOutside:Le(e.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1})})})}),bw=y.forwardRef((e,t)=>{const n=Nt(cn,e.__scopePopover),r=y.useRef(!1),s=y.useRef(!1);return p.jsx(rf,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,a;(o=e.onCloseAutoFocus)==null||o.call(e,i),i.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),r.current=!1,s.current=!1},onInteractOutside:i=>{var l,c;(l=e.onInteractOutside)==null||l.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const o=i.target;((c=n.triggerRef.current)==null?void 0:c.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&s.current&&i.preventDefault()}})}),rf=y.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:i,disableOutsidePointerEvents:o,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:u,...d}=e,f=Nt(cn,n),m=er(n);return Il(),p.jsx(ui,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:i,children:p.jsx(ci,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:c,onDismiss:()=>f.onOpenChange(!1),children:p.jsx(hw,{"data-state":of(f.open),role:"dialog",id:f.contentId,...m,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),sf="PopoverClose",ww=y.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,s=Nt(sf,n);return p.jsx(Me.button,{type:"button",...r,ref:t,onClick:Le(e.onClick,()=>s.onOpenChange(!1))})});ww.displayName=sf;var Sw="PopoverArrow",Aw=y.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,s=er(n);return p.jsx(mw,{...s,...r,ref:t})});Aw.displayName=Sw;function of(e){return e?"open":"closed"}var Cw=Zd,Pw=ef,Tw=tf,af=nf;const Ew=Cw,Rw=Pw,lf=y.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},s)=>p.jsx(Tw,{children:p.jsx(af,{ref:s,align:t,sideOffset:n,className:q("z-50 w-32 rounded-[2px] s bg-white p-4 text-popover-foreground drop-shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})}));lf.displayName=af.displayName;const El=[{lang:we.RU},{lang:we.EN}],Dw=({className:e})=>{const t=Ne(i=>i.lang),n=Ne(i=>i.setLang),[r,s]=y.useState(!1);return console.log(El.filter(i=>i.lang===t)),p.jsxs(Ew,{open:r,onOpenChange:()=>s(!r),children:[p.jsxs(Rw,{className:q("flex items-center gap-2",e),children:[p.jsx("img",{src:t===we.RU?"/ru.svg":"/en.svg",alt:""}),t===we.RU?"Ру":"En",p.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.23021 8.01443C4.35919 7.70304 4.66305 7.5 5.00011 7.5H15.0001C15.3372 7.5 15.641 7.70304 15.77 8.01443C15.899 8.32583 15.8277 8.68426 15.5894 8.92259L10.5894 13.9226C10.2639 14.248 9.73629 14.248 9.41085 13.9226L4.41085 8.92259C4.17252 8.68426 4.10122 8.32583 4.23021 8.01443ZM7.01195 9.16667L10.0001 12.1548L12.9883 9.16667H7.01195Z",fill:"#2C2828"})})]}),p.jsx(lf,{className:"flex flex-col gap-6",children:El.filter(i=>i.lang!==t).map((i,o)=>p.jsxs("div",{onClick:()=>{n(i.lang),s(!1)},className:"flex gap-3 py-1 items-center cursor-pointer",children:[p.jsx("img",{src:i.lang===we.RU?"/ru.svg":"/en.svg",alt:"flag"}),p.jsx("h5",{children:i.lang===we.RU?"Русский":"English"})]},o))})]})},Vn=[{title:"Тематические направления выставки",bottom_text:` - Участники смогут продемонстрировать свои инновационные решения, наладить взаимовыгодные партнерства и выйти на новые рынки.`,data:[{title:"Текстильные машины и оборудование",img:"/theme/1.svg"},{title:"Одежда, обувь, кожаные изделия",img:"/theme/2.svg"},{title:"Переработка натуральных волокон",img:"/theme/3.svg"},{title:"Домашний текстиль и эко-текстиль",img:"/theme/4.svg"},{title:"Запасные части и вспомогательные материалы",img:"/theme/5.svg"},{title:"Химические средства и красители",img:"/theme/6.svg"},{title:"Аксессуары и швейная фурнитура",img:"/theme/7.svg"},{title:"Мода и дизайн",img:"/theme/8.svg"}]},{title:"Thematic areas of the exhibition",bottom_text:` - Participants will be able to showcase innovative solutions, establish mutually beneficial partnerships, and enter new markets.`,data:[{title:"Textile machinery and equipment",img:"/theme/1.svg"},{title:"Clothing, footwear, leather goods",img:"/theme/2.svg"},{title:"Natural fibre processing",img:"/theme/3.svg"},{title:"Home textiles and eco-textiles",img:"/theme/4.svg"},{title:"Spare parts and auxiliary materials",img:"/theme/5.svg"},{title:"Chemicals and dyes",img:"/theme/6.svg"},{title:"Accessories and sewing supplies",img:"/theme/7.svg"},{title:"Fashion and design",img:"/theme/8.svg"}]}],E0=({className:e})=>{const t=Ne(n=>n.lang);return p.jsx("section",{className:q("relative w-full bg-[#FDEDEE] -z-10 py-10",e),children:p.jsxs(Ue,{children:[p.jsx("h3",{className:"h2 mb-4",children:Vn[Q(t)].title}),p.jsx("div",{className:"grid md:grid-cols-4 grid-cols-2 gap-6",children:Vn[Q(t)].data.map(n=>p.jsx(Rc,{className:"!bg-[#F5F4F4]",...n},n.title))}),p.jsxs("div",{className:"flex items-center gap-3 mt-8 text-on_surface_v text-lg",children:[p.jsx("div",{className:"md:w-1 w-4 md:h-[38px] h-40 bg-primary_09"}),p.jsx("p",{className:"text-18 !text-primary_09",children:Vn[Q(t)].bottom_text})]})]})})},Ur=[{title:"Время выставки",data:[{name:"Монтаж выставки",date:"12 мая – 10 июня 2025 года"},{name:"Работа",date:"11–13 июня 2025 года"},{name:"Демонтаж",date:"13–14 июня 2025 года"}]},{title:"Exhibition time",data:[{name:"Exhibition assembly",date:"1 — 27 april 2025"},{name:"Exhibition days",date:"29 — 1 may 2025"},{name:"Exhibition dismantling",date:"1 — 2 may 2025"}]}],R0=({className:e})=>{const t=Ne(n=>n.lang);return p.jsx("section",{className:q("bg-bg_surface_container py-10 md:py-[160px]",e),children:p.jsxs(Ue,{children:[p.jsx("h2",{className:"h2 mb-6",children:Ur[Q(t)].title}),p.jsx("div",{className:"flex flex-col md:flex-row items-center gap-6",children:Ur[Q(t)].data.map(n=>y.createElement(Dc,{bottomClassName:"!bg-white rounded-b-[2px]",...n,key:n.name,className:"w-full"}))})]})})},Rl=[{title:"Место проведения",data:["Выставочный центр Торгово-промышленной палаты Туркменистана – это современная площадка для проведения международных выставок, конференций, форумов и деловых встреч","Центр оснащен передовыми техническими решениями, включая мультимедийное оборудование, системы звукоусиления и освещения, конференц-залы с синхронным переводом, а также удобные зоны для переговоров. Просторные выставочные павильоны обеспечивают комфортные условия для демонстрации продукции и услуг. "]},{title:"Venue",data:["The Exhibition Centre of the Chamber of Commerce and Industry of Turkmenistan is a modern venue designed for international exhibitions, conferences, forums, and business meetings.","The centre is equipped with cutting-edge technical solutions, including multimedia equipment, sound and lighting systems, conference rooms with simultaneous translation, and comfortable areas for negotiations. Spacious exhibition pavilions provide ideal conditions for showcasing products and services."]}],D0=({className:e})=>{const t=Ne(n=>n.lang);return p.jsx("section",{className:q("gap-6 relative overflow-hidden",e),children:p.jsxs(Ue,{className:"md:py-20 py-10 grid-cols-1 lg:grid-cols-2 lg:gap-12 gap-0 grid",children:[p.jsxs("div",{className:"flex-[0_0_50%]",children:[p.jsx("h3",{className:"h2 mb-6",children:Rl[Q(t)].title}),p.jsx("div",{className:"text-lg flex flex-col gap-6 text-on_surface_v normal mb-10",children:Rl[Q(t)].data.map(n=>p.jsx("p",{children:n},n))})]}),p.jsx("div",{className:"h-full max-size-[600px] flex-[0_0_50%]",children:p.jsx("img",{src:"/about-place.jpg",alt:"",className:"size-full object-contain"})})]})})},pr=[{title:"Приглашение к участию",p:"Министерство текстильной промышленности Туркменистана приглашает бизнес-сообщество со всего мира присоединиться к этому уникальному событию, которое станет важным шагом к укреплению позиций Туркменистана на глобальной экономической арене.",button1:"Забронировать стенд",button2:"Стать спонсором"},{title:"Invitation to Participate",p:"Ministry of textile industry of Turkmenistan invites the global business community to join this unique event, which will be a significant step toward strengthening Turkmenistan’s position on the global economic stage",button1:"Book a stand",button2:"Become a sponsor"}],j0=({className:e})=>{const t=Ne(n=>n.lang);return p.jsxs("section",{className:q("md:py-20 py-10 relative overflow-hidden",e),children:[p.jsx("img",{src:"/CTA.png",className:"absolute top-0 left-0 size-full -z-10 object-cover"}),p.jsxs(Ue,{children:[p.jsx("h3",{className:"h2 text-center !text-on_primary mb-6",children:pr[Q(t)].title}),p.jsx("p",{className:"text-center md:text-lg text-sm text-primary_03 max-w-[828px] px-5 mx-auto mb-10",children:pr[Q(t)].p}),p.jsxs("div",{className:"flex flex-col md:flex-row items-center gap-6",children:[p.jsx(De,{to:"/stend-form",className:"w-full",children:p.jsx(Ge,{className:"bg-reverse_primary w-full text-primary hover:bg-reverse_primary/90",children:pr[Q(t)].button1})}),p.jsx(De,{to:"/become-sponsor",className:"w-full",children:p.jsx(Ge,{className:"bg-reverse_primary w-full hover:bg-reverse_primary/90 text-primary",children:pr[Q(t)].button2})})]})]})]})},ht=[{title:"Выставка-ярмарка «TurkmenTextile Expo-2025»",p:[`Международная выставка-ярмарка, которая объединит мировых лидеров отрасли, инновационных производителей и творческих дизайнеров. Это уникальная платформа для развития вашего бизнеса в сфере текстиля и моды - `,"Основная цель выставки-ярмарки – позиционирование Туркменистана как ключевого центра международной текстильной и модной индустрии, демонстрация национального ткаческого наследия, содействие внедрению инноваций в отрасли и укрепление международного сотрудничества.","Основная цель выставки-ярмарки – позиционирование Туркменистана как ключевого центра международной текстильной и модной индустрии, демонстрация национального ткаческого наследия, содействие внедрению инноваций в отрасли и укрепление международного сотрудничества.","Основная цель выставки-ярмарки – позиционирование Туркменистана как ключевого центра международной текстильной и модной индустрии, демонстрация национального ткаческого наследия, содействие внедрению инноваций в отрасли и укрепление международного сотрудничества."],title_2:"Почему вам стоить посетить? ",subtitle_2:"TurkmenTextile Expo-2025 открывает широкие перспективы для участников:",p_2:["Деловые встречи с руководителями текстильной отрасли Туркменистана","Возможность установить деловые отношения с предприятиями и фабриками текстильной индустрии Туркменистана для развития экспортных направлений.","Расширение деловых связей — уникальная возможность для B2B и B2G-встреч, заключения торговых соглашений и установления стратегических партнёрств.","Обучение и развитие — мастер-классы и лекции от ведущих мировых экспертов помогут участникам углубить знания и освоить современные подходы в области текстильной индустрии.","Культурный обмен — возможность продемонстрировать богатое текстильное наследие Туркменистана и вдохновиться культурными традициями других стран."],title_3:"Партнёрство и спонсорство",subtitle_3:"TurkmenTextile Expo-2025 приглашает к сотрудничеству международные организации, ассоциации и бренды для продвижения своих продуктов и услуг. Партнёры получат:",subtitle_4:"Партнёры получат:",p_3:["Признание на международной арене — участие в масштабном событии, привлекающем ведущих игроков текстильной и модной индустрий.","Рекламные возможности — интеграция бренда в маркетинговую кампанию выставки, включая digital и офлайн-каналы.","Прямой доступ к аудитории — взаимодействие с производителями, дизайнерами, поставщиками оборудования и покупателями.","Вклад в развитие индустрии — поддержка инноваций, устойчивых практик и культурного наследия."]},{title:"TurkmenTextile Expo-2025",p:["An international exhibition will unite global industry leaders, innovative manufacturers, and creative designers. This is a unique platform for developing your business in the textile and fashion sectors.","The main goal of the exhibition is to position Turkmenistan as a key centre of the international textile and fashion industry, showcase the national weaving heritage, promote the implementation of innovations in the industry, and strengthen international cooperation.","Here, you will have the opportunity to network with leading industry players, present your products or services, learn about the latest market trends, and find new partners and clients.","Here, you will have the opportunity to network with leading industry players, present your products or services, learn about the latest market trends, and find new partners and clients."],title_2:"Why participate?",subtitle_2:"TurkmenTextile Expo-2025 opens wide prospects for participants:",p_2:["Business meetings with the heads of Turkmenistan's textile industry.","The opportunity to establish business relationships with textile enterprises and factories in Turkmenistan to develop export directions.","Expanding business networks — a unique opportunity for B2B and B2G meetings, concluding trade agreements, and establishing strategic partnerships.","Training and development — workshops and lectures from leading global experts will help participants deepen their knowledge and master modern approaches in the textile industry.","Cultural exchange — the chance to showcase Turkmenistan's rich textile heritage and be inspired by the cultural traditions of other countries."],title_3:"Partnership and Sponsorship",subtitle_3:` - TurkmenTextile Expo-2025 invites international organizations, associations, and brands to collaborate in promoting their products and services. - `,subtitle_4:"Partners will receive:",p_3:["Recognition on the international stage — participation in a major event attracting leading players from the textile and fashion industries.","Advertising opportunities — integration of the brand into the exhibition's marketing campaign, including digital and offline channels.","Direct access to the audience — interaction with manufacturers, designers, equipment suppliers, and buyers.","Contribution to industry development — support for innovations, sustainable practices, and cultural heritage."]}],N0=()=>{const e=Ne(t=>t.lang);return p.jsxs(Ue,{className:"flex flex-col md:my-20 my-10 gap-16",children:[p.jsxs("div",{className:"flex flex-col gap-6",children:[p.jsx("h2",{className:"h2",children:ht[Q(e)].title}),p.jsx("div",{className:"flex flex-col gap-3",children:ht[Q(e)].p.map(t=>p.jsx("p",{className:"p",children:t}))})]}),p.jsxs("div",{className:"flex flex-col gap-6",children:[p.jsx("h3",{className:"h2",children:ht[Q(e)].title_2}),p.jsxs("h4",{className:"p",children:[ht[Q(e)].subtitle_2," "]}),p.jsx("ol",{type:"1",className:"list-decimal pl-8 flex flex-col gap-3 ",children:ht[Q(e)].p_2.map(t=>p.jsx("li",{className:"p",children:t}))})]}),p.jsxs("div",{className:"flex flex-col gap-6",children:[p.jsx("h2",{className:"h2",children:ht[Q(e)].title_3}),p.jsx("h3",{className:"p",children:ht[Q(e)].subtitle_3}),p.jsx("h3",{children:ht[Q(e)].subtitle_4}),p.jsx("ul",{className:"list-disc pl-8 flex flex-col gap-3 p",children:ht[Q(e)].p_3.map(t=>p.jsx("li",{children:t},t))})]})]})};function jw(e){return Object.prototype.toString.call(e)==="[object Object]"}function Dl(e){return jw(e)||Array.isArray(e)}function Nw(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function yo(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;const s=JSON.stringify(Object.keys(e.breakpoints||{})),i=JSON.stringify(Object.keys(t.breakpoints||{}));return s!==i?!1:n.every(o=>{const a=e[o],l=t[o];return typeof a=="function"?`${a}`==`${l}`:!Dl(a)||!Dl(l)?a===l:yo(a,l)})}function jl(e){return e.concat().sort((t,n)=>t.name>n.name?1:-1).map(t=>t.options)}function Mw(e,t){if(e.length!==t.length)return!1;const n=jl(e),r=jl(t);return n.every((s,i)=>{const o=r[i];return yo(s,o)})}function vo(e){return typeof e=="number"}function oi(e){return typeof e=="string"}function ns(e){return typeof e=="boolean"}function Nl(e){return Object.prototype.toString.call(e)==="[object Object]"}function ue(e){return Math.abs(e)}function xo(e){return Math.sign(e)}function On(e,t){return ue(e-t)}function kw(e,t){if(e===0||t===0||ue(e)<=ue(t))return 0;const n=On(ue(e),ue(t));return ue(n/e)}function _w(e){return Math.round(e*100)/100}function Hn(e){return Gn(e).map(Number)}function Ye(e){return e[tr(e)]}function tr(e){return Math.max(0,e.length-1)}function bo(e,t){return t===tr(e)}function Ml(e,t=0){return Array.from(Array(e),(n,r)=>t+r)}function Gn(e){return Object.keys(e)}function cf(e,t){return[e,t].reduce((n,r)=>(Gn(r).forEach(s=>{const i=n[s],o=r[s],a=Nl(i)&&Nl(o);n[s]=a?cf(i,o):o}),n),{})}function ai(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function Vw(e,t){const n={start:r,center:s,end:i};function r(){return 0}function s(l){return i(l)/2}function i(l){return t-l}function o(l,c){return oi(e)?n[e](l):e(t,l,c)}return{measure:o}}function Kn(){let e=[];function t(s,i,o,a={passive:!0}){let l;if("addEventListener"in s)s.addEventListener(i,o,a),l=()=>s.removeEventListener(i,o,a);else{const c=s;c.addListener(o),l=()=>c.removeListener(o)}return e.push(l),r}function n(){e=e.filter(s=>s())}const r={add:t,clear:n};return r}function Ow(e,t,n,r){const s=Kn(),i=1e3/60;let o=null,a=0,l=0;function c(){s.add(e,"visibilitychange",()=>{e.hidden&&g()})}function u(){m(),s.clear()}function d(x){if(!l)return;o||(o=x,n(),n());const v=x-o;for(o=x,a+=v;a>=i;)n(),a-=i;const b=a/i;r(b),l&&(l=t.requestAnimationFrame(d))}function f(){l||(l=t.requestAnimationFrame(d))}function m(){t.cancelAnimationFrame(l),o=null,a=0,l=0}function g(){o=null,a=0}return{init:c,destroy:u,start:f,stop:m,update:n,render:r}}function Fw(e,t){const n=t==="rtl",r=e==="y",s=r?"y":"x",i=r?"x":"y",o=!r&&n?-1:1,a=u(),l=d();function c(g){const{height:h,width:x}=g;return r?h:x}function u(){return r?"top":n?"right":"left"}function d(){return r?"bottom":n?"left":"right"}function f(g){return g*o}return{scroll:s,cross:i,startEdge:a,endEdge:l,measureSize:c,direction:f}}function zt(e=0,t=0){const n=ue(e-t);function r(c){return ct}function i(c){return r(c)||s(c)}function o(c){return i(c)?r(c)?e:t:c}function a(c){return n?c-n*Math.ceil((c-t)/n):c}return{length:n,max:t,min:e,constrain:o,reachedAny:i,reachedMax:s,reachedMin:r,removeOffset:a}}function uf(e,t,n){const{constrain:r}=zt(0,e),s=e+1;let i=o(t);function o(f){return n?ue((s+f)%s):r(f)}function a(){return i}function l(f){return i=o(f),d}function c(f){return u().set(a()+f)}function u(){return uf(e,a(),n)}const d={get:a,set:l,add:c,clone:u};return d}function Lw(e,t,n,r,s,i,o,a,l,c,u,d,f,m,g,h,x,v,b){const{cross:A,direction:P}=e,S=["INPUT","SELECT","TEXTAREA"],T={passive:!1},E=Kn(),D=Kn(),M=zt(50,225).constrain(m.measure(20)),_={mouse:300,touch:400},I={mouse:500,touch:600},j=g?43:25;let F=!1,L=0,G=0,W=!1,U=!1,B=!1,K=!1;function ee($){if(!b)return;function J(be){(ns(b)||b($,be))&&Ee(be)}const oe=t;E.add(oe,"dragstart",be=>be.preventDefault(),T).add(oe,"touchmove",()=>{},T).add(oe,"touchend",()=>{}).add(oe,"touchstart",J).add(oe,"mousedown",J).add(oe,"touchcancel",ne).add(oe,"contextmenu",ne).add(oe,"click",fe,!0)}function te(){E.clear(),D.clear()}function Ae(){const $=K?n:t;D.add($,"touchmove",Z,T).add($,"touchend",ne).add($,"mousemove",Z,T).add($,"mouseup",ne)}function Ve($){const J=$.nodeName||"";return S.includes(J)}function Ce(){return(g?I:_)[K?"mouse":"touch"]}function Ke($,J){const oe=d.add(xo($)*-1),be=u.byDistance($,!g).distance;return g||ue($)=2,!(J&&$.button!==0)&&(Ve($.target)||(W=!0,i.pointerDown($),c.useFriction(0).useDuration(0),s.set(o),Ae(),L=i.readPoint($),G=i.readPoint($,A),f.emit("pointerDown")))}function Z($){if(!ai($,r)&&$.touches.length>=2)return ne($);const oe=i.readPoint($),be=i.readPoint($,A),Oe=On(oe,L),$e=On(be,G);if(!U&&!K&&(!$.cancelable||(U=Oe>$e,!U)))return ne($);const w=i.pointerMove($);Oe>h&&(B=!0),c.useFriction(.3).useDuration(.75),a.start(),s.add(P(w)),$.preventDefault()}function ne($){const oe=u.byDistance(0,!1).index!==d.get(),be=i.pointerUp($)*Ce(),Oe=Ke(P(be),oe),$e=kw(be,Oe),w=j-10*$e,C=v+$e/50;U=!1,W=!1,D.clear(),c.useDuration(w).useFriction(C),l.distance(Oe,!g),K=!1,f.emit("pointerUp")}function fe($){B&&($.stopPropagation(),$.preventDefault(),B=!1)}function ye(){return W}return{init:ee,destroy:te,pointerDown:ye}}function Iw(e,t){let r,s;function i(d){return d.timeStamp}function o(d,f){const g=`client${(f||e.scroll)==="x"?"X":"Y"}`;return(ai(d,t)?d:d.touches[0])[g]}function a(d){return r=d,s=d,o(d)}function l(d){const f=o(d)-o(s),m=i(d)-i(r)>170;return s=d,m&&(r=d),f}function c(d){if(!r||!s)return 0;const f=o(s)-o(r),m=i(d)-i(r),g=i(d)-i(s)>170,h=f/m;return m&&!g&&ue(h)>.1?h:0}return{pointerDown:a,pointerMove:l,pointerUp:c,readPoint:o}}function Bw(){function e(n){const{offsetTop:r,offsetLeft:s,offsetWidth:i,offsetHeight:o}=n;return{top:r,right:s+i,bottom:r+o,left:s,width:i,height:o}}return{measure:e}}function Uw(e){function t(r){return e*(r/100)}return{measure:t}}function $w(e,t,n,r,s,i,o){const a=[e].concat(r);let l,c,u=[],d=!1;function f(x){return s.measureSize(o.measure(x))}function m(x){if(!i)return;c=f(e),u=r.map(f);function v(b){for(const A of b){if(d)return;const P=A.target===e,S=r.indexOf(A.target),T=P?c:u[S],E=f(P?e:r[S]);if(ue(E-T)>=.5){x.reInit(),t.emit("resize");break}}}l=new ResizeObserver(b=>{(ns(i)||i(x,b))&&v(b)}),n.requestAnimationFrame(()=>{a.forEach(b=>l.observe(b))})}function g(){d=!0,l&&l.disconnect()}return{init:m,destroy:g}}function zw(e,t,n,r,s,i){let o=0,a=0,l=s,c=i,u=e.get(),d=0;function f(){const T=r.get()-e.get(),E=!l;let D=0;return E?(o=0,n.set(r),e.set(r),D=T):(n.set(e),o+=T/l,o*=c,u+=o,e.add(o),D=u-d),a=xo(D),d=u,S}function m(){const T=r.get()-t.get();return ue(T)<.001}function g(){return l}function h(){return a}function x(){return o}function v(){return A(s)}function b(){return P(i)}function A(T){return l=T,S}function P(T){return c=T,S}const S={direction:h,duration:g,velocity:x,seek:f,settled:m,useBaseFriction:b,useBaseDuration:v,useFriction:P,useDuration:A};return S}function Ww(e,t,n,r,s){const i=s.measure(10),o=s.measure(50),a=zt(.1,.99);let l=!1;function c(){return!(l||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function u(m){if(!c())return;const g=e.reachedMin(t.get())?"min":"max",h=ue(e[g]-t.get()),x=n.get()-t.get(),v=a.constrain(h/o);n.subtract(x*v),!m&&ue(x){const{min:x,max:v}=i,b=i.constrain(g),A=!h,P=bo(n,h);return A?v:P||c(x,b)?x:c(v,b)?v:b}).map(g=>parseFloat(g.toFixed(3)))}function f(){if(t<=e+s)return[i.max];if(r==="keepSnaps")return o;const{min:g,max:h}=a;return o.slice(g,h)}return{snapsContained:l,scrollContainLimit:a}}function Gw(e,t,n){const r=t[0],s=n?r-e:Ye(t);return{limit:zt(s,r)}}function Kw(e,t,n,r){const i=t.min+.1,o=t.max+.1,{reachedMin:a,reachedMax:l}=zt(i,o);function c(f){return f===1?l(n.get()):f===-1?a(n.get()):!1}function u(f){if(!c(f))return;const m=e*(f*-1);r.forEach(g=>g.add(m))}return{loop:u}}function qw(e){const{max:t,length:n}=e;function r(i){const o=i-t;return n?o/-n:0}return{get:r}}function Xw(e,t,n,r,s){const{startEdge:i,endEdge:o}=e,{groupSlides:a}=s,l=d().map(t.measure),c=f(),u=m();function d(){return a(r).map(h=>Ye(h)[o]-h[0][i]).map(ue)}function f(){return r.map(h=>n[i]-h[i]).map(h=>-ue(h))}function m(){return a(c).map(h=>h[0]).map((h,x)=>h+l[x])}return{snaps:c,snapsAligned:u}}function Yw(e,t,n,r,s,i){const{groupSlides:o}=s,{min:a,max:l}=r,c=u();function u(){const f=o(i),m=!e||t==="keepSnaps";return n.length===1?[i]:m?f:f.slice(a,l).map((g,h,x)=>{const v=!h,b=bo(x,h);if(v){const A=Ye(x[0])+1;return Ml(A)}if(b){const A=tr(i)-Ye(x)[0]+1;return Ml(A,Ye(x)[0])}return g})}return{slideRegistry:c}}function Zw(e,t,n,r,s){const{reachedAny:i,removeOffset:o,constrain:a}=r;function l(g){return g.concat().sort((h,x)=>ue(h)-ue(x))[0]}function c(g){const h=e?o(g):a(g),x=t.map((b,A)=>({diff:u(b-h,0),index:A})).sort((b,A)=>ue(b.diff)-ue(A.diff)),{index:v}=x[0];return{index:v,distance:h}}function u(g,h){const x=[g,g+n,g-n];if(!e)return g;if(!h)return l(x);const v=x.filter(b=>xo(b)===h);return v.length?l(v):Ye(x)-n}function d(g,h){const x=t[g]-s.get(),v=u(x,h);return{index:g,distance:v}}function f(g,h){const x=s.get()+g,{index:v,distance:b}=c(x),A=!e&&i(x);if(!h||A)return{index:v,distance:g};const P=t[v]-b,S=g+u(P,0);return{index:v,distance:S}}return{byDistance:f,byIndex:d,shortcut:u}}function Jw(e,t,n,r,s,i,o){function a(d){const f=d.distance,m=d.index!==t.get();i.add(f),f&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),m&&(n.set(t.get()),t.set(d.index),o.emit("select"))}function l(d,f){const m=s.byDistance(d,f);a(m)}function c(d,f){const m=t.clone().set(d),g=s.byIndex(m.get(),f);a(g)}return{distance:l,index:c}}function Qw(e,t,n,r,s,i,o,a){const l={passive:!0,capture:!0};let c=0;function u(m){if(!a)return;function g(h){if(new Date().getTime()-c>10)return;o.emit("slideFocusStart"),e.scrollLeft=0;const b=n.findIndex(A=>A.includes(h));vo(b)&&(s.useDuration(0),r.index(b,0),o.emit("slideFocus"))}i.add(document,"keydown",d,!1),t.forEach((h,x)=>{i.add(h,"focus",v=>{(ns(a)||a(m,v))&&g(x)},l)})}function d(m){m.code==="Tab"&&(c=new Date().getTime())}return{init:u}}function Rn(e){let t=e;function n(){return t}function r(l){t=o(l)}function s(l){t+=o(l)}function i(l){t-=o(l)}function o(l){return vo(l)?l:l.get()}return{get:n,set:r,add:s,subtract:i}}function df(e,t){const n=e.scroll==="x"?o:a,r=t.style;let s=null,i=!1;function o(f){return`translate3d(${f}px,0px,0px)`}function a(f){return`translate3d(0px,${f}px,0px)`}function l(f){if(i)return;const m=_w(e.direction(f));m!==s&&(r.transform=n(m),s=m)}function c(f){i=!f}function u(){i||(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:u,to:l,toggleActive:c}}function e0(e,t,n,r,s,i,o,a,l){const u=Hn(s),d=Hn(s).reverse(),f=v().concat(b());function m(E,D){return E.reduce((M,_)=>M-s[_],D)}function g(E,D){return E.reduce((M,_)=>m(M,D)>0?M.concat([_]):M,[])}function h(E){return i.map((D,M)=>({start:D-r[M]+.5+E,end:D+t-.5+E}))}function x(E,D,M){const _=h(D);return E.map(I=>{const j=M?0:-n,F=M?n:0,L=M?"end":"start",G=_[I][L];return{index:I,loopPoint:G,slideLocation:Rn(-1),translate:df(e,l[I]),target:()=>a.get()>G?j:F}})}function v(){const E=o[0],D=g(d,E);return x(D,n,!1)}function b(){const E=t-o[0]-1,D=g(u,E);return x(D,-n,!0)}function A(){return f.every(({index:E})=>{const D=u.filter(M=>M!==E);return m(D,t)<=.1})}function P(){f.forEach(E=>{const{target:D,translate:M,slideLocation:_}=E,I=D();I!==_.get()&&(M.to(I),_.set(I))})}function S(){f.forEach(E=>E.translate.clear())}return{canLoop:A,clear:S,loop:P,loopPoints:f}}function t0(e,t,n){let r,s=!1;function i(l){if(!n)return;function c(u){for(const d of u)if(d.type==="childList"){l.reInit(),t.emit("slidesChanged");break}}r=new MutationObserver(u=>{s||(ns(n)||n(l,u))&&c(u)}),r.observe(e,{childList:!0})}function o(){r&&r.disconnect(),s=!0}return{init:i,destroy:o}}function n0(e,t,n,r){const s={};let i=null,o=null,a,l=!1;function c(){a=new IntersectionObserver(g=>{l||(g.forEach(h=>{const x=t.indexOf(h.target);s[x]=h}),i=null,o=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:r}),t.forEach(g=>a.observe(g))}function u(){a&&a.disconnect(),l=!0}function d(g){return Gn(s).reduce((h,x)=>{const v=parseInt(x),{isIntersecting:b}=s[v];return(g&&b||!g&&!b)&&h.push(v),h},[])}function f(g=!0){if(g&&i)return i;if(!g&&o)return o;const h=d(g);return g&&(i=h),g||(o=h),h}return{init:c,destroy:u,get:f}}function r0(e,t,n,r,s,i){const{measureSize:o,startEdge:a,endEdge:l}=e,c=n[0]&&s,u=g(),d=h(),f=n.map(o),m=x();function g(){if(!c)return 0;const b=n[0];return ue(t[a]-b[a])}function h(){if(!c)return 0;const b=i.getComputedStyle(Ye(r));return parseFloat(b.getPropertyValue(`margin-${l}`))}function x(){return n.map((b,A,P)=>{const S=!A,T=bo(P,A);return S?f[A]+u:T?f[A]+d:P[A+1][a]-b[a]}).map(ue)}return{slideSizes:f,slideSizesWithGaps:m,startGap:u,endGap:d}}function s0(e,t,n,r,s,i,o,a,l){const{startEdge:c,endEdge:u,direction:d}=e,f=vo(n);function m(v,b){return Hn(v).filter(A=>A%b===0).map(A=>v.slice(A,A+b))}function g(v){return v.length?Hn(v).reduce((b,A,P)=>{const S=Ye(b)||0,T=S===0,E=A===tr(v),D=s[c]-i[S][c],M=s[c]-i[A][u],_=!r&&T?d(o):0,I=!r&&E?d(a):0,j=ue(M-I-(D+_));return P&&j>t+l&&b.push(A),E&&b.push(v.length),b},[]).map((b,A,P)=>{const S=Math.max(P[A-1]||0);return v.slice(S,b)}):[]}function h(v){return f?m(v,n):g(v)}return{groupSlides:h}}function i0(e,t,n,r,s,i,o){const{align:a,axis:l,direction:c,startIndex:u,loop:d,duration:f,dragFree:m,dragThreshold:g,inViewThreshold:h,slidesToScroll:x,skipSnaps:v,containScroll:b,watchResize:A,watchSlides:P,watchDrag:S,watchFocus:T}=i,E=2,D=Bw(),M=D.measure(t),_=n.map(D.measure),I=Fw(l,c),j=I.measureSize(M),F=Uw(j),L=Vw(a,j),G=!d&&!!b,W=d||!!b,{slideSizes:U,slideSizesWithGaps:B,startGap:K,endGap:ee}=r0(I,M,_,n,W,s),te=s0(I,j,x,d,M,_,K,ee,E),{snaps:Ae,snapsAligned:Ve}=Xw(I,L,M,_,te),Ce=-Ye(Ae)+Ye(B),{snapsContained:Ke,scrollContainLimit:Ee}=Hw(j,Ce,Ve,b,E),Z=G?Ke:Ve,{limit:ne}=Gw(Ce,Z,d),fe=uf(tr(Z),u,d),ye=fe.clone(),se=Hn(n),$=({dragHandler:nt,scrollBody:Mt,scrollBounds:vn,options:{loop:kt}})=>{kt||vn.constrain(nt.pointerDown()),Mt.seek()},J=({scrollBody:nt,translate:Mt,location:vn,offsetLocation:kt,previousLocation:rs,scrollLooper:rr,slideLooper:ff,dragHandler:hf,animation:mf,eventHandler:wo,scrollBounds:pf,options:{loop:So}},Ao)=>{const Co=nt.settled(),gf=!pf.shouldConstrain(),Po=So?Co:Co&&gf;Po&&!hf.pointerDown()&&(mf.stop(),wo.emit("settle")),Po||wo.emit("scroll");const yf=vn.get()*Ao+rs.get()*(1-Ao);kt.set(yf),So&&(rr.loop(nt.direction()),ff.loop()),Mt.to(kt.get())},oe=Ow(r,s,()=>$(yn),nt=>J(yn,nt)),be=.68,Oe=Z[fe.get()],$e=Rn(Oe),w=Rn(Oe),C=Rn(Oe),R=Rn(Oe),V=zw($e,C,w,R,f,be),k=Zw(d,Z,Ce,ne,R),N=Jw(oe,fe,ye,V,k,R,o),z=qw(ne),X=Kn(),ve=n0(t,n,o,h),{slideRegistry:he}=Yw(G,b,Z,Ee,te,se),tt=Qw(e,n,he,N,V,X,o,T),yn={ownerDocument:r,ownerWindow:s,eventHandler:o,containerRect:M,slideRects:_,animation:oe,axis:I,dragHandler:Lw(I,e,r,s,R,Iw(I,s),$e,oe,N,V,k,fe,o,F,m,g,v,be,S),eventStore:X,percentOfView:F,index:fe,indexPrevious:ye,limit:ne,location:$e,offsetLocation:C,previousLocation:w,options:i,resizeHandler:$w(t,o,s,n,I,A,D),scrollBody:V,scrollBounds:Ww(ne,C,R,V,F),scrollLooper:Kw(Ce,ne,C,[$e,C,w,R]),scrollProgress:z,scrollSnapList:Z.map(z.get),scrollSnaps:Z,scrollTarget:k,scrollTo:N,slideLooper:e0(I,j,Ce,U,B,Ae,Z,C,n),slideFocus:tt,slidesHandler:t0(t,o,P),slidesInView:ve,slideIndexes:se,slideRegistry:he,slidesToScroll:te,target:R,translate:df(I,t)};return yn}function o0(){let e={},t;function n(c){t=c}function r(c){return e[c]||[]}function s(c){return r(c).forEach(u=>u(t,c)),l}function i(c,u){return e[c]=r(c).concat([u]),l}function o(c,u){return e[c]=r(c).filter(d=>d!==u),l}function a(){e={}}const l={init:n,emit:s,off:o,on:i,clear:a};return l}const a0={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function l0(e){function t(i,o){return cf(i,o||{})}function n(i){const o=i.breakpoints||{},a=Gn(o).filter(l=>e.matchMedia(l).matches).map(l=>o[l]).reduce((l,c)=>t(l,c),{});return t(i,a)}function r(i){return i.map(o=>Gn(o.breakpoints||{})).reduce((o,a)=>o.concat(a),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:r}}function c0(e){let t=[];function n(i,o){return t=o.filter(({options:a})=>e.optionsAtMedia(a).active!==!1),t.forEach(a=>a.init(i,e)),o.reduce((a,l)=>Object.assign(a,{[l.name]:l}),{})}function r(){t=t.filter(i=>i.destroy())}return{init:n,destroy:r}}function $r(e,t,n){const r=e.ownerDocument,s=r.defaultView,i=l0(s),o=c0(i),a=Kn(),l=o0(),{mergeOptions:c,optionsAtMedia:u,optionsMediaQueries:d}=i,{on:f,off:m,emit:g}=l,h=I;let x=!1,v,b=c(a0,$r.globalOptions),A=c(b),P=[],S,T,E;function D(){const{container:se,slides:$}=A;T=(oi(se)?e.querySelector(se):se)||e.children[0];const oe=oi($)?T.querySelectorAll($):$;E=[].slice.call(oe||T.children)}function M(se){const $=i0(e,T,E,r,s,se,l);if(se.loop&&!$.slideLooper.canLoop()){const J=Object.assign({},se,{loop:!1});return M(J)}return $}function _(se,$){x||(b=c(b,se),A=u(b),P=$||P,D(),v=M(A),d([b,...P.map(({options:J})=>J)]).forEach(J=>a.add(J,"change",I)),A.active&&(v.translate.to(v.location.get()),v.animation.init(),v.slidesInView.init(),v.slideFocus.init(ye),v.eventHandler.init(ye),v.resizeHandler.init(ye),v.slidesHandler.init(ye),v.options.loop&&v.slideLooper.loop(),T.offsetParent&&E.length&&v.dragHandler.init(ye),S=o.init(ye,P)))}function I(se,$){const J=te();j(),_(c({startIndex:J},se),$),l.emit("reInit")}function j(){v.dragHandler.destroy(),v.eventStore.clear(),v.translate.clear(),v.slideLooper.clear(),v.resizeHandler.destroy(),v.slidesHandler.destroy(),v.slidesInView.destroy(),v.animation.destroy(),o.destroy(),a.clear()}function F(){x||(x=!0,a.clear(),j(),l.emit("destroy"),l.clear())}function L(se,$,J){!A.active||x||(v.scrollBody.useBaseFriction().useDuration($===!0?0:A.duration),v.scrollTo.index(se,J||0))}function G(se){const $=v.index.add(1).get();L($,se,-1)}function W(se){const $=v.index.add(-1).get();L($,se,1)}function U(){return v.index.add(1).get()!==te()}function B(){return v.index.add(-1).get()!==te()}function K(){return v.scrollSnapList}function ee(){return v.scrollProgress.get(v.location.get())}function te(){return v.index.get()}function Ae(){return v.indexPrevious.get()}function Ve(){return v.slidesInView.get()}function Ce(){return v.slidesInView.get(!1)}function Ke(){return S}function Ee(){return v}function Z(){return e}function ne(){return T}function fe(){return E}const ye={canScrollNext:U,canScrollPrev:B,containerNode:ne,internalEngine:Ee,destroy:F,off:m,on:f,emit:g,plugins:Ke,previousScrollSnap:Ae,reInit:h,rootNode:Z,scrollNext:G,scrollPrev:W,scrollProgress:ee,scrollSnapList:K,scrollTo:L,selectedScrollSnap:te,slideNodes:fe,slidesInView:Ve,slidesNotInView:Ce};return _(t,n),setTimeout(()=>l.emit("init"),0),ye}$r.globalOptions=void 0;function nr(e={},t=[]){const n=y.useRef(e),r=y.useRef(t),[s,i]=y.useState(),[o,a]=y.useState(),l=y.useCallback(()=>{s&&s.reInit(n.current,r.current)},[s]);return y.useEffect(()=>{yo(n.current,e)||(n.current=e,l())},[e,l]),y.useEffect(()=>{Mw(r.current,t)||(r.current=t,l())},[t,l]),y.useEffect(()=>{if(Nw()&&o){$r.globalOptions=nr.globalOptions;const c=$r(o,n.current,r.current);return i(c),()=>c.destroy()}else i(void 0)},[o,i]),[a,s]}nr.globalOptions=void 0;const u0=[{lang:we.RU,data:[{title:"План выставки",link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/Floor%20plan/floor%20plan.pdf",blank:!0},{title:"Забронировать стенд",link:"/stend-form"},{title:"Список участников",link:""},{title:"B2B | B2G встречи",link:"/B2B-B2G"}]},{lang:we.EN,data:[{title:"Floor Plan",link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/Floor%20plan/floor%20plan.pdf",blank:!0},{title:"Book a stand",link:"/stend-form"},{title:"Participants list",link:"/"},{title:"B2B | B2G meetings",link:"/B2B-B2G"}]}],M0=()=>{const[e]=nr(),t=Ne(o=>o.lang),n=ei("(min-width: 1024px)"),r=ei("(min-width: 768px)"),s=t===we.RU?we.RU:we.EN;function i(){return n?`/banners/${s}/l.jpg`:r?`/banners/${s}/m.jpg`:`/banners/${s}/s.jpg`}return p.jsxs("section",{className:"flex flex-col gap-5",children:[p.jsx("div",{ref:e,className:"embla",children:p.jsx("div",{className:"embla__container",children:p.jsx("div",{className:"embla__slide",children:p.jsx("img",{src:i(),alt:"",className:"size-full object-cover lg:max-h-[600px] lg:min-h-[320px]"})})})}),p.jsx(Ue,{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 items-center gap-6 text-2xl",children:u0[Q(t)].data.map(({title:o,link:a,blank:l})=>p.jsx(De,{target:l?"_blank":"",to:a,className:"w-full",children:p.jsx(Ge,{size:"lg",variant:"teritary",className:"w-full drop-shadow-sm shadow-md text-xl bg-teritary text-on_teritary hover:bg-teritary/90",children:o})},o))})]})},d0=[{data:[{title:"contact@turkmenexpo.com",subtitle:"Адрес электронной почты",img:"/contacts/home/mail.svg"},{title:"здание ТПП Туркменистана",subtitle:"Адрес выставки",img:"/contacts/home/location.svg"},{title:"+99371871812; 99363719588",subtitle:"Контактный номер",img:"/contacts/home/mobile.svg"}]},{data:[{title:"contact@turkmenexpo.com",subtitle:"E-mail Address",img:"/contacts/home/mail.svg"},{title:"Building of the CCI of Turkmenistan",subtitle:"Exhibition address",img:"/contacts/home/location.svg"},{title:"+99371871812; 99363719588",subtitle:"Contact Number",img:"/contacts/home/mobile.svg"}]}],k0=({className:e})=>{const t=Ne(n=>n.lang);return p.jsx("section",{className:q("bg-surface_high pt-10 pb-20",e),children:p.jsxs(Ue,{children:[p.jsx("h2",{className:"h2 mb-6",children:Ur[Q(t)].title}),p.jsxs("div",{className:"flex flex-col gap-6",children:[p.jsx("div",{className:"flex flex-col md:flex-row items-center gap-6",children:Ur[Q(t)].data.map(n=>y.createElement(Dc,{...n,key:n.name,className:"w-full"}))}),p.jsx("div",{className:"md:p-10 pt-16 flex flex-col md:flex-row items-center gap-6",children:d0[Q(t)].data.map(n=>y.createElement(ap,{...n,key:n.title,className:"w-full"}))}),p.jsx(De,{to:"/stend-form",className:"md:w-fit w-full mx-auto",children:p.jsx(Ge,{className:"w-full",children:t===we.RU?"Забронируйте стенд":"Book a stand"})})]})]})})},gr=[{h2:"Выставка-ярмарка «TurkmenTextile Expo 2025» в Ашхабаде",p:`Международная выставка-ярмарка, которая объединит мировых лидеров отрасли, инновационных производителей и творческих дизайнеров. - Наша миссия – укрепить позиции Туркменистана как ключевого центра текстильной и модной индустрии. Выставка станет платформой для изучения устойчивых практик, современных технологий и дизайнерских решений, вдохновляя на развитие индустрии - `,data:[{nums:"8,400 m²",text:"выставочной площади"},{nums:"10000+",text:"Посетители посетят выставку"},{nums:"100+",text:"Экспоненты из более чем 30 стран"},{nums:"80%",text:"Участники принимают участие в принятии решений о закупках"}],button:"Подробнее о выставке"},{h2:"TurkmenTextile Expo-2025 in Ashgabat",p:`An international exhibition will unite global industry leaders, innovative manufacturers, and creative designers. - Our mission is to strengthen Turkmenistan's position as a key hub for the textile and fashion industry. The exhibition will serve as a platform to explore sustainable practices, modern technologies, and design solutions, inspiring the development of the industry. - `,data:[{nums:"8,400 m²",text:"Of the exhibition area"},{nums:"10000+",text:"Visitors and specialists attend the exhibition"},{nums:"100+",text:"More than 100 exhibitors from 30 countries "},{nums:"80%",text:"Visitors are involved in procurement decisions"}],button:"More about the exhibition"}],_0=()=>{const[e]=nr(),t=Ne(n=>n.lang);return p.jsx("section",{children:p.jsxs(Ue,{className:"flex flex-col gap-6",children:[p.jsxs("div",{className:"text-center",children:[p.jsx("h2",{className:"h2 md:mb-3 mb-6 text-left sm:text-center",children:gr[Q(t)].h2}),p.jsx("p",{className:"md:text-base text-sm normal text-left sm:text-center text-[#454545]",children:gr[Q(t)].p})]}),p.jsx("div",{ref:e,className:"embla overflow-hidden",children:p.jsx("div",{className:"flex embla__container items-center gap-6",children:gr[Q(t)].data.map(n=>p.jsx(ip,{...n,className:"embla__slide flex-[0_0_288px]"},n.text))})}),p.jsx(De,{to:"/about",className:"mx-auto",children:p.jsx(Ge,{variant:"outline",children:gr[Q(t)].button})})]})})},V0=()=>{const e=Ne(t=>t.lang);return p.jsx("section",{className:"",children:p.jsxs(Ue,{children:[p.jsx("h2",{className:"h2 mb-10 text-center",children:Vn[Q(e)].title}),p.jsx("div",{className:"grid md:grid-cols-4 grid-cols-2 gap-6",children:Vn[Q(e)].data.map(t=>p.jsx(Rc,{...t,iconClassName:"bg-teritary_04"},t.title))})]})})},f0=[{data:[{img:"/offer-1.png",title:"Гостиницы, трансфер, визы",btnText:"Скачать путеводитель",text:"По вопросам размещения в гостиницах, визовой поддержки, транспортного и экскурсионного обслуживания Вы можете ознакомиться с путеводителем",link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/travel_guide/Travel_guide_ru.pdf"},{img:"/offer-2.png",title:"Ознакомьтесь с планом выставки TurkmenTextile Expo 2025",btnText:"Скачать план выставки",text:"Как выбрать лучшее место на выставке? Вы всегда должны помнить, что удачное расположение выставочной экспозиции повышает Ваши шансы привлечь внимание Ваших потенциальных клиентов",link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/Floor%20plan/floor%20plan.pdf"}]},{data:[{img:"/offer-2.png",title:"Hotels, transfers, visa",btnText:"Download the Travel guide",text:`Regarding hotel accommodation, visa support, - transportation and excursion services you can check out the Travel guide`,link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/travel_guide/Travel_guide_ru.pdf"},{img:"/offer-2.png",title:"Check out the Turkmen Textile 2025 Exhibition plan ",btnText:"Download the Floor plan",text:`How to choose the best place in the exhibition? - You should always remember that the good location of the exhibition increases your chance to attract the attention of your potential customers…`,link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/Floor%20plan/floor%20plan.pdf"}]}],O0=()=>{const[e,t]=nr({align:"start"}),[n,r]=y.useState(0),s=Ne(o=>o.lang),i=y.useCallback(o=>{t&&t.scrollTo(o)},[t]);return y.useEffect(()=>{if(!t)return;const o=()=>{r(t.selectedScrollSnap())};return t.on("select",o),()=>{t.off("select",o)}},[t]),p.jsx("section",{className:"bg-surface_high py-10 relative overflow-hidden",children:p.jsx(Ue,{children:p.jsxs("div",{ref:e,className:"embla ",children:[p.jsx("div",{className:"mb-2 flex gap-6 embla__container",children:f0[Q(s)].data.map(o=>y.createElement(op,{...o,key:o.title}))}),p.jsx(ib,{className:"xl:hidden",scrollTo:i,active:n,slides:2})]})})})},F0=()=>{const e=Ne(t=>t.lang);return p.jsxs("header",{children:[p.jsx("div",{className:"h-12 hidden lg:flex bg-sur text-surface-bg items-center overflow-hidden",children:p.jsxs(Ue,{className:"flex items-center justify-between",children:[p.jsxs("div",{className:"gap-8 flex items-center justify-between",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(rm,{}),p.jsx("h4",{className:"text-sm",children:e==="ru"?"Ашхабад, Туркменистан":"Ashgabat, Turkmenistan"})]}),p.jsx("nav",{className:"flex items-center gap-6",children:Os[Q(e)].data.slice(0,2).map(({title:t,link:n})=>p.jsx(De,{className:"py-2",to:n,children:t},t))})]}),p.jsxs("div",{className:"flex items-center gap-6",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(im,{size:16,strokeWidth:"3px"}),p.jsx("h4",{className:"text-sm",children:"+99371871812"})]}),p.jsx(Dw,{})]})]})}),p.jsx("div",{className:"bg-primary py-2 flex items-center justify-between h-20 overflow-hidden",children:p.jsxs(Ue,{className:"flex items-center justify-between ",children:[p.jsxs("div",{className:"flex items-center gap-8",children:[p.jsx(De,{to:"/",children:p.jsx(Ec,{})}),p.jsx("nav",{className:"lg:flex hidden items-center gap-6 text-white",children:Os[Q(e)].data.slice(2,5).map(({title:t,link:n})=>p.jsxs(De,{to:n,className:"flex items-center gap-2",children:[t," ",p.jsx("img",{src:"/chevron.svg"})]},t))})]}),p.jsx("div",{className:"flex items-center",children:p.jsx(sp,{})}),p.jsxs("div",{className:"lg:flex hidden items-center gap-2",children:[p.jsx(De,{to:e===we.RU?"https://turkmentextile.turkmenexpo.com/app/storage/app/media/official_support/official_support_ru.pdf":"https://turkmentextile.turkmenexpo.com/app/storage/app/media/official_support/official_support_eng.pdf",target:"_blank",children:p.jsx(Ge,{variant:"secondary",size:"sm",className:"bg-white text-primary hover:bg-white/90",children:e==="ru"?"Официальная поддержка":"Official Support"})}),p.jsx(De,{to:"/become-sponsor",children:p.jsx(Ge,{variant:"secondary",size:"sm",className:"bg-teritary text-white hover:bg-teritary/90",children:e==="ru"?"Стать спонсором":"Become a sponsor"})})]})]})})]})},L0=()=>{const e=Ne(t=>t.lang);return p.jsx("footer",{className:"py-5 bg-primary",children:p.jsxs(Ue,{className:"flex flex-col gap-6",children:[p.jsxs("div",{className:"flex flex-col md:flex-row gap-6 md:items-end md:justify-between items-center",children:[p.jsx(Ec,{}),p.jsxs("div",{className:"flex items-center gap-6",children:[p.jsx("img",{src:"/inst.svg"}),p.jsx("img",{src:"/in.svg"}),p.jsx("img",{src:"/x.svg"})]})]}),p.jsx("hr",{className:"border-white/50"}),p.jsx("h5",{className:"text-base text-center normal text-white",children:e===we.RU?"©2025 Все права защищены":"All rights reserved"})]})})},Ue=({className:e,children:t})=>p.jsx("div",{className:q("w-full mx-auto max-w-[1240px] px-4",e),children:t}),I0=({title:e})=>p.jsxs("div",{className:"relative flex items-center h-[216px] w-full justify-center",children:[p.jsx("img",{src:"/cover.png",className:"-z-10 absolute size-full object-cover top-0 left-0"}),p.jsx("h1",{className:"text-on_primary md:text-5xl text-3xl",children:e})]});export{N0 as A,Ge as B,I0 as C,li as D,Qe as E,L0 as F,Vl as G,F0 as H,Ct as I,Le as J,yr as K,we as L,dn as M,iw as N,g0 as O,Me as P,Ue as Q,O as R,un as S,ie as T,zx as U,M0 as a,_0 as b,O0 as c,V0 as d,k0 as e,q as f,E0 as g,R0 as h,D0 as i,p as j,j0 as k,Zr as l,Ar as m,Q as n,rb as o,Ad as p,Cd as q,Pd as r,C0 as s,y0 as t,Ne as u,S0 as v,A0 as w,v0 as x,P0 as y,w0 as z}; diff --git a/dist/assets/ui-library-rbj8Yi4H.js b/dist/assets/ui-library-rbj8Yi4H.js new file mode 100644 index 0000000..dcc9ba2 --- /dev/null +++ b/dist/assets/ui-library-rbj8Yi4H.js @@ -0,0 +1,132 @@ +import{r as Gh,a as y,R as Kh,b as Yl,c as qh,d as fe,L as Re,e as ns}from"./react-vendor-OnsDvTPE.js";var ui={exports:{}},tr={};/** + * @license React + * react-jsx-runtime.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Ia;function Yh(){if(Ia)return tr;Ia=1;var e=Gh(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,s=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function o(a,c,l){var u,d={},f=null,m=null;l!==void 0&&(f=""+l),c.key!==void 0&&(f=""+c.key),c.ref!==void 0&&(m=c.ref);for(u in c)r.call(c,u)&&!i.hasOwnProperty(u)&&(d[u]=c[u]);if(a&&a.defaultProps)for(u in c=a.defaultProps,c)d[u]===void 0&&(d[u]=c[u]);return{$$typeof:t,type:a,key:f,ref:m,props:d,_owner:s.current}}return tr.Fragment=n,tr.jsx=o,tr.jsxs=o,tr}var Fa;function Xh(){return Fa||(Fa=1,ui.exports=Yh()),ui.exports}var p=Xh();function Xe(e,t,{checkForDefaultPrevented:n=!0}={}){return function(s){if(e==null||e(s),n===!1||!s.defaultPrevented)return t==null?void 0:t(s)}}function Ba(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Xl(...e){return t=>{let n=!1;const r=e.map(s=>{const i=Ba(s,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s{const{children:o,...a}=i,c=y.useMemo(()=>a,Object.values(a));return p.jsx(n.Provider,{value:c,children:o})};r.displayName=e+"Provider";function s(i){const o=y.useContext(n);if(o)return o;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,s]}function bo(e,t=[]){let n=[];function r(i,o){const a=y.createContext(o),c=n.length;n=[...n,o];const l=d=>{var v;const{scope:f,children:m,...g}=d,h=((v=f==null?void 0:f[e])==null?void 0:v[c])||a,x=y.useMemo(()=>g,Object.values(g));return p.jsx(h.Provider,{value:x,children:m})};l.displayName=i+"Provider";function u(d,f){var h;const m=((h=f==null?void 0:f[e])==null?void 0:h[c])||a,g=y.useContext(m);if(g)return g;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[l,u]}const s=()=>{const i=n.map(o=>y.createContext(o));return function(a){const c=(a==null?void 0:a[e])||i;return y.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return s.scopeName=e,[r,Qh(s,...t)]}function Qh(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=r.reduce((a,{useScope:c,scopeName:l})=>{const d=c(i)[`__scope${l}`];return{...a,...d}},{});return y.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}var pn=globalThis!=null&&globalThis.document?y.useLayoutEffect:()=>{},em=Kh.useId||(()=>{}),tm=0;function ps(e){const[t,n]=y.useState(em());return pn(()=>{n(r=>r??String(tm++))},[e]),t?`radix-${t}`:""}function Ht(e){const t=y.useRef(e);return y.useEffect(()=>{t.current=e}),y.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Jl({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,s]=nm({defaultProp:t,onChange:n}),i=e!==void 0,o=i?e:r,a=Ht(n),c=y.useCallback(l=>{if(i){const d=typeof l=="function"?l(e):l;d!==e&&a(d)}else s(l)},[i,e,s,a]);return[o,c]}function nm({defaultProp:e,onChange:t}){const n=y.useState(e),[r]=n,s=y.useRef(r),i=Ht(t);return y.useEffect(()=>{s.current!==r&&(i(r),s.current=r)},[r,s,i]),n}var Hn=y.forwardRef((e,t)=>{const{children:n,...r}=e,s=y.Children.toArray(n),i=s.find(sm);if(i){const o=i.props.children,a=s.map(c=>c===i?y.Children.count(o)>1?y.Children.only(null):y.isValidElement(o)?o.props.children:null:c);return p.jsx(Ii,{...r,ref:t,children:y.isValidElement(o)?y.cloneElement(o,void 0,a):null})}return p.jsx(Ii,{...r,ref:t,children:n})});Hn.displayName="Slot";var Ii=y.forwardRef((e,t)=>{const{children:n,...r}=e;if(y.isValidElement(n)){const s=om(n);return y.cloneElement(n,{...im(r,n.props),ref:t?Xl(t,s):s})}return y.Children.count(n)>1?y.Children.only(null):null});Ii.displayName="SlotClone";var rm=({children:e})=>p.jsx(p.Fragment,{children:e});function sm(e){return y.isValidElement(e)&&e.type===rm}function im(e,t){const n={...t};for(const r in t){const s=e[r],i=t[r];/^on[A-Z]/.test(r)?s&&i?n[r]=(...a)=>{i(...a),s(...a)}:s&&(n[r]=s):r==="style"?n[r]={...s,...i}:r==="className"&&(n[r]=[s,i].filter(Boolean).join(" "))}return{...e,...n}}function om(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var am=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],We=am.reduce((e,t)=>{const n=y.forwardRef((r,s)=>{const{asChild:i,...o}=r,a=i?Hn:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(a,{...o,ref:s})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function cm(e,t){e&&Yl.flushSync(()=>e.dispatchEvent(t))}function lm(e,t=globalThis==null?void 0:globalThis.document){const n=Ht(e);y.useEffect(()=>{const r=s=>{s.key==="Escape"&&n(s)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var um="DismissableLayer",Fi="dismissableLayer.update",dm="dismissableLayer.pointerDownOutside",fm="dismissableLayer.focusOutside",$a,Ql=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),wo=y.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:o,onDismiss:a,...c}=e,l=y.useContext(Ql),[u,d]=y.useState(null),f=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=y.useState({}),g=pt(t,E=>d(E)),h=Array.from(l.layers),[x]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),v=h.indexOf(x),b=u?h.indexOf(u):-1,S=l.layersWithOutsidePointerEventsDisabled.size>0,A=b>=v,_=pm(E=>{const k=E.target,D=[...l.branches].some(O=>O.contains(k));!A||D||(s==null||s(E),o==null||o(E),E.defaultPrevented||a==null||a())},f),C=gm(E=>{const k=E.target;[...l.branches].some(O=>O.contains(k))||(i==null||i(E),o==null||o(E),E.defaultPrevented||a==null||a())},f);return lm(E=>{b===l.layers.size-1&&(r==null||r(E),!E.defaultPrevented&&a&&(E.preventDefault(),a()))},f),y.useEffect(()=>{if(u)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&($a=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),za(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=$a)}},[u,f,n,l]),y.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),za())},[u,l]),y.useEffect(()=>{const E=()=>m({});return document.addEventListener(Fi,E),()=>document.removeEventListener(Fi,E)},[]),p.jsx(We.div,{...c,ref:g,style:{pointerEvents:S?A?"auto":"none":void 0,...e.style},onFocusCapture:Xe(e.onFocusCapture,C.onFocusCapture),onBlurCapture:Xe(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:Xe(e.onPointerDownCapture,_.onPointerDownCapture)})});wo.displayName=um;var hm="DismissableLayerBranch",mm=y.forwardRef((e,t)=>{const n=y.useContext(Ql),r=y.useRef(null),s=pt(t,r);return y.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),p.jsx(We.div,{...e,ref:s})});mm.displayName=hm;function pm(e,t=globalThis==null?void 0:globalThis.document){const n=Ht(e),r=y.useRef(!1),s=y.useRef(()=>{});return y.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let c=function(){eu(dm,n,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=c,t.addEventListener("click",s.current,{once:!0})):c()}else t.removeEventListener("click",s.current);r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",i),t.removeEventListener("click",s.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function gm(e,t=globalThis==null?void 0:globalThis.document){const n=Ht(e),r=y.useRef(!1);return y.useEffect(()=>{const s=i=>{i.target&&!r.current&&eu(fm,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function za(){const e=new CustomEvent(Fi);document.dispatchEvent(e)}function eu(e,t,n,{discrete:r}){const s=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),r?cm(s,i):s.dispatchEvent(i)}var di="focusScope.autoFocusOnMount",fi="focusScope.autoFocusOnUnmount",Ua={bubbles:!1,cancelable:!0},ym="FocusScope",_o=y.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:s,onUnmountAutoFocus:i,...o}=e,[a,c]=y.useState(null),l=Ht(s),u=Ht(i),d=y.useRef(null),f=pt(t,h=>c(h)),m=y.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;y.useEffect(()=>{if(r){let h=function(S){if(m.paused||!a)return;const A=S.target;a.contains(A)?d.current=A:Ut(d.current,{select:!0})},x=function(S){if(m.paused||!a)return;const A=S.relatedTarget;A!==null&&(a.contains(A)||Ut(d.current,{select:!0}))},v=function(S){if(document.activeElement===document.body)for(const _ of S)_.removedNodes.length>0&&Ut(a)};document.addEventListener("focusin",h),document.addEventListener("focusout",x);const b=new MutationObserver(v);return a&&b.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",x),b.disconnect()}}},[r,a,m.paused]),y.useEffect(()=>{if(a){Za.add(m);const h=document.activeElement;if(!a.contains(h)){const v=new CustomEvent(di,Ua);a.addEventListener(di,l),a.dispatchEvent(v),v.defaultPrevented||(vm(Sm(tu(a)),{select:!0}),document.activeElement===h&&Ut(a))}return()=>{a.removeEventListener(di,l),setTimeout(()=>{const v=new CustomEvent(fi,Ua);a.addEventListener(fi,u),a.dispatchEvent(v),v.defaultPrevented||Ut(h??document.body,{select:!0}),a.removeEventListener(fi,u),Za.remove(m)},0)}}},[a,l,u,m]);const g=y.useCallback(h=>{if(!n&&!r||m.paused)return;const x=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,v=document.activeElement;if(x&&v){const b=h.currentTarget,[S,A]=xm(b);S&&A?!h.shiftKey&&v===A?(h.preventDefault(),n&&Ut(S,{select:!0})):h.shiftKey&&v===S&&(h.preventDefault(),n&&Ut(A,{select:!0})):v===b&&h.preventDefault()}},[n,r,m.paused]);return p.jsx(We.div,{tabIndex:-1,...o,ref:f,onKeyDown:g})});_o.displayName=ym;function vm(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Ut(r,{select:t}),document.activeElement!==n)return}function xm(e){const t=tu(e),n=Wa(t,e),r=Wa(t.reverse(),e);return[n,r]}function tu(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Wa(e,t){for(const n of e)if(!bm(n,{upTo:t}))return n}function bm(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function wm(e){return e instanceof HTMLInputElement&&"select"in e}function Ut(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&wm(e)&&t&&e.select()}}var Za=_m();function _m(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Ha(e,t),e.unshift(t)},remove(t){var n;e=Ha(e,t),(n=e[0])==null||n.resume()}}}function Ha(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Sm(e){return e.filter(t=>t.tagName!=="A")}var Tm="Portal",So=y.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[s,i]=y.useState(!1);pn(()=>i(!0),[]);const o=n||s&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return o?qh.createPortal(p.jsx(We.div,{...r,ref:t}),o):null});So.displayName=Tm;function Am(e,t){return y.useReducer((n,r)=>t[n][r]??n,e)}var Gn=e=>{const{present:t,children:n}=e,r=Cm(t),s=typeof n=="function"?n({present:r.isPresent}):y.Children.only(n),i=pt(r.ref,Em(s));return typeof n=="function"||r.isPresent?y.cloneElement(s,{ref:i}):null};Gn.displayName="Presence";function Cm(e){const[t,n]=y.useState(),r=y.useRef({}),s=y.useRef(e),i=y.useRef("none"),o=e?"mounted":"unmounted",[a,c]=Am(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return y.useEffect(()=>{const l=rs(r.current);i.current=a==="mounted"?l:"none"},[a]),pn(()=>{const l=r.current,u=s.current;if(u!==e){const f=i.current,m=rs(l);e?c("MOUNT"):m==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(u&&f!==m?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,c]),pn(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,d=m=>{const h=rs(r.current).includes(m.animationName);if(m.target===t&&h&&(c("ANIMATION_END"),!s.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},f=m=>{m.target===t&&(i.current=rs(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:y.useCallback(l=>{l&&(r.current=getComputedStyle(l)),n(l)},[])}}function rs(e){return(e==null?void 0:e.animationName)||"none"}function Em(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var hi=0;function nu(){y.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Ga()),document.body.insertAdjacentElement("beforeend",e[1]??Ga()),hi++,()=>{hi===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),hi--}},[])}function Ga(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var xt=function(){return xt=Object.assign||function(t){for(var n,r=1,s=arguments.length;r"u")return Wm;var t=Zm(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Gm=ou(),Mn="data-scroll-locked",Km=function(e,t,n,r){var s=e.left,i=e.top,o=e.right,a=e.gap;return n===void 0&&(n="margin"),` + .`.concat(km,` { + overflow: hidden `).concat(r,`; + padding-right: `).concat(a,"px ").concat(r,`; + } + body[`).concat(Mn,`] { + overflow: hidden `).concat(r,`; + overscroll-behavior: contain; + `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` + padding-left: `.concat(s,`px; + padding-top: `).concat(i,`px; + padding-right: `).concat(o,`px; + margin-left:0; + margin-top:0; + margin-right: `).concat(a,"px ").concat(r,`; + `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),` + } + + .`).concat(gs,` { + right: `).concat(a,"px ").concat(r,`; + } + + .`).concat(ys,` { + margin-right: `).concat(a,"px ").concat(r,`; + } + + .`).concat(gs," .").concat(gs,` { + right: 0 `).concat(r,`; + } + + .`).concat(ys," .").concat(ys,` { + margin-right: 0 `).concat(r,`; + } + + body[`).concat(Mn,`] { + `).concat(Rm,": ").concat(a,`px; + } +`)},qa=function(){var e=parseInt(document.body.getAttribute(Mn)||"0",10);return isFinite(e)?e:0},qm=function(){y.useEffect(function(){return document.body.setAttribute(Mn,(qa()+1).toString()),function(){var e=qa()-1;e<=0?document.body.removeAttribute(Mn):document.body.setAttribute(Mn,e.toString())}},[])},Ym=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,s=r===void 0?"margin":r;qm();var i=y.useMemo(function(){return Hm(s)},[s]);return y.createElement(Gm,{styles:Km(i,!t,s,n?"":"!important")})},Bi=!1;if(typeof window<"u")try{var ss=Object.defineProperty({},"passive",{get:function(){return Bi=!0,!0}});window.addEventListener("test",ss,ss),window.removeEventListener("test",ss,ss)}catch{Bi=!1}var Sn=Bi?{passive:!1}:!1,Xm=function(e){return e.tagName==="TEXTAREA"},au=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Xm(e)&&n[t]==="visible")},Jm=function(e){return au(e,"overflowY")},Qm=function(e){return au(e,"overflowX")},Ya=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var s=cu(e,r);if(s){var i=lu(e,r),o=i[1],a=i[2];if(o>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},ep=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},tp=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},cu=function(e,t){return e==="v"?Jm(t):Qm(t)},lu=function(e,t){return e==="v"?ep(t):tp(t)},np=function(e,t){return e==="h"&&t==="rtl"?-1:1},rp=function(e,t,n,r,s){var i=np(e,window.getComputedStyle(t).direction),o=i*r,a=n.target,c=t.contains(a),l=!1,u=o>0,d=0,f=0;do{var m=lu(e,a),g=m[0],h=m[1],x=m[2],v=h-x-i*g;(g||v)&&cu(e,a)&&(d+=v,f+=g),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!c&&a!==document.body||c&&(t.contains(a)||t===a));return(u&&Math.abs(d)<1||!u&&Math.abs(f)<1)&&(l=!0),l},is=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Xa=function(e){return[e.deltaX,e.deltaY]},Ja=function(e){return e&&"current"in e?e.current:e},sp=function(e,t){return e[0]===t[0]&&e[1]===t[1]},ip=function(e){return` + .block-interactivity-`.concat(e,` {pointer-events: none;} + .allow-interactivity-`).concat(e,` {pointer-events: all;} +`)},op=0,Tn=[];function ap(e){var t=y.useRef([]),n=y.useRef([0,0]),r=y.useRef(),s=y.useState(op++)[0],i=y.useState(ou)[0],o=y.useRef(e);y.useEffect(function(){o.current=e},[e]),y.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var h=Pm([e.lockRef.current],(e.shards||[]).map(Ja),!0).filter(Boolean);return h.forEach(function(x){return x.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),h.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var a=y.useCallback(function(h,x){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!o.current.allowPinchZoom;var v=is(h),b=n.current,S="deltaX"in h?h.deltaX:b[0]-v[0],A="deltaY"in h?h.deltaY:b[1]-v[1],_,C=h.target,E=Math.abs(S)>Math.abs(A)?"h":"v";if("touches"in h&&E==="h"&&C.type==="range")return!1;var k=Ya(E,C);if(!k)return!0;if(k?_=E:(_=E==="v"?"h":"v",k=Ya(E,C)),!k)return!1;if(!r.current&&"changedTouches"in h&&(S||A)&&(r.current=_),!_)return!0;var D=r.current||_;return rp(D,x,h,D==="h"?S:A)},[]),c=y.useCallback(function(h){var x=h;if(!(!Tn.length||Tn[Tn.length-1]!==i)){var v="deltaY"in x?Xa(x):is(x),b=t.current.filter(function(_){return _.name===x.type&&(_.target===x.target||x.target===_.shadowParent)&&sp(_.delta,v)})[0];if(b&&b.should){x.cancelable&&x.preventDefault();return}if(!b){var S=(o.current.shards||[]).map(Ja).filter(Boolean).filter(function(_){return _.contains(x.target)}),A=S.length>0?a(x,S[0]):!o.current.noIsolation;A&&x.cancelable&&x.preventDefault()}}},[]),l=y.useCallback(function(h,x,v,b){var S={name:h,delta:x,target:v,should:b,shadowParent:cp(v)};t.current.push(S),setTimeout(function(){t.current=t.current.filter(function(A){return A!==S})},1)},[]),u=y.useCallback(function(h){n.current=is(h),r.current=void 0},[]),d=y.useCallback(function(h){l(h.type,Xa(h),h.target,a(h,e.lockRef.current))},[]),f=y.useCallback(function(h){l(h.type,is(h),h.target,a(h,e.lockRef.current))},[]);y.useEffect(function(){return Tn.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",c,Sn),document.addEventListener("touchmove",c,Sn),document.addEventListener("touchstart",u,Sn),function(){Tn=Tn.filter(function(h){return h!==i}),document.removeEventListener("wheel",c,Sn),document.removeEventListener("touchmove",c,Sn),document.removeEventListener("touchstart",u,Sn)}},[]);var m=e.removeScrollBar,g=e.inert;return y.createElement(y.Fragment,null,g?y.createElement(i,{styles:ip(s)}):null,m?y.createElement(Ym,{gapMode:e.gapMode}):null)}function cp(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const lp=Lm(iu,ap);var To=y.forwardRef(function(e,t){return y.createElement(Ks,xt({},e,{ref:t,sideCar:lp}))});To.classNames=Ks.classNames;var up=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},An=new WeakMap,os=new WeakMap,as={},yi=0,uu=function(e){return e&&(e.host||uu(e.parentNode))},dp=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=uu(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},fp=function(e,t,n,r){var s=dp(t,Array.isArray(e)?e:[e]);as[n]||(as[n]=new WeakMap);var i=as[n],o=[],a=new Set,c=new Set(s),l=function(d){!d||a.has(d)||(a.add(d),l(d.parentNode))};s.forEach(l);var u=function(d){!d||c.has(d)||Array.prototype.forEach.call(d.children,function(f){if(a.has(f))u(f);else try{var m=f.getAttribute(r),g=m!==null&&m!=="false",h=(An.get(f)||0)+1,x=(i.get(f)||0)+1;An.set(f,h),i.set(f,x),o.push(f),h===1&&g&&os.set(f,!0),x===1&&f.setAttribute(n,"true"),g||f.setAttribute(r,"true")}catch(v){console.error("aria-hidden: cannot operate on ",f,v)}})};return u(t),a.clear(),yi++,function(){o.forEach(function(d){var f=An.get(d)-1,m=i.get(d)-1;An.set(d,f),i.set(d,m),f||(os.has(d)||d.removeAttribute(r),os.delete(d)),m||d.removeAttribute(n)}),yi--,yi||(An=new WeakMap,An=new WeakMap,os=new WeakMap,as={})}},du=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),s=up(e);return s?(r.push.apply(r,Array.from(s.querySelectorAll("[aria-live]"))),fp(r,s,n,"aria-hidden")):function(){return null}},Ao="Dialog",[fu,iT]=bo(Ao),[hp,gt]=fu(Ao),hu=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:s,onOpenChange:i,modal:o=!0}=e,a=y.useRef(null),c=y.useRef(null),[l=!1,u]=Jl({prop:r,defaultProp:s,onChange:i});return p.jsx(hp,{scope:t,triggerRef:a,contentRef:c,contentId:ps(),titleId:ps(),descriptionId:ps(),open:l,onOpenChange:u,onOpenToggle:y.useCallback(()=>u(d=>!d),[u]),modal:o,children:n})};hu.displayName=Ao;var mu="DialogTrigger",pu=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=gt(mu,n),i=pt(t,s.triggerRef);return p.jsx(We.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":Po(s.open),...r,ref:i,onClick:Xe(e.onClick,s.onOpenToggle)})});pu.displayName=mu;var Co="DialogPortal",[mp,gu]=fu(Co,{forceMount:void 0}),yu=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:s}=e,i=gt(Co,t);return p.jsx(mp,{scope:t,forceMount:n,children:y.Children.map(r,o=>p.jsx(Gn,{present:n||i.open,children:p.jsx(So,{asChild:!0,container:s,children:o})}))})};yu.displayName=Co;var Ts="DialogOverlay",vu=y.forwardRef((e,t)=>{const n=gu(Ts,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,i=gt(Ts,e.__scopeDialog);return i.modal?p.jsx(Gn,{present:r||i.open,children:p.jsx(pp,{...s,ref:t})}):null});vu.displayName=Ts;var pp=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=gt(Ts,n);return p.jsx(To,{as:Hn,allowPinchZoom:!0,shards:[s.contentRef],children:p.jsx(We.div,{"data-state":Po(s.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),gn="DialogContent",xu=y.forwardRef((e,t)=>{const n=gu(gn,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,i=gt(gn,e.__scopeDialog);return p.jsx(Gn,{present:r||i.open,children:i.modal?p.jsx(gp,{...s,ref:t}):p.jsx(yp,{...s,ref:t})})});xu.displayName=gn;var gp=y.forwardRef((e,t)=>{const n=gt(gn,e.__scopeDialog),r=y.useRef(null),s=pt(t,n.contentRef,r);return y.useEffect(()=>{const i=r.current;if(i)return du(i)},[]),p.jsx(bu,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Xe(e.onCloseAutoFocus,i=>{var o;i.preventDefault(),(o=n.triggerRef.current)==null||o.focus()}),onPointerDownOutside:Xe(e.onPointerDownOutside,i=>{const o=i.detail.originalEvent,a=o.button===0&&o.ctrlKey===!0;(o.button===2||a)&&i.preventDefault()}),onFocusOutside:Xe(e.onFocusOutside,i=>i.preventDefault())})}),yp=y.forwardRef((e,t)=>{const n=gt(gn,e.__scopeDialog),r=y.useRef(!1),s=y.useRef(!1);return p.jsx(bu,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,a;(o=e.onCloseAutoFocus)==null||o.call(e,i),i.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),r.current=!1,s.current=!1},onInteractOutside:i=>{var c,l;(c=e.onInteractOutside)==null||c.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const o=i.target;((l=n.triggerRef.current)==null?void 0:l.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&s.current&&i.preventDefault()}})}),bu=y.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:i,...o}=e,a=gt(gn,n),c=y.useRef(null),l=pt(t,c);return nu(),p.jsxs(p.Fragment,{children:[p.jsx(_o,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:i,children:p.jsx(wo,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Po(a.open),...o,ref:l,onDismiss:()=>a.onOpenChange(!1)})}),p.jsxs(p.Fragment,{children:[p.jsx(vp,{titleId:a.titleId}),p.jsx(bp,{contentRef:c,descriptionId:a.descriptionId})]})]})}),Eo="DialogTitle",wu=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=gt(Eo,n);return p.jsx(We.h2,{id:s.titleId,...r,ref:t})});wu.displayName=Eo;var _u="DialogDescription",Su=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=gt(_u,n);return p.jsx(We.p,{id:s.descriptionId,...r,ref:t})});Su.displayName=_u;var Tu="DialogClose",Au=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=gt(Tu,n);return p.jsx(We.button,{type:"button",...r,ref:t,onClick:Xe(e.onClick,()=>s.onOpenChange(!1))})});Au.displayName=Tu;function Po(e){return e?"open":"closed"}var Cu="DialogTitleWarning",[oT,Eu]=Jh(Cu,{contentName:gn,titleName:Eo,docsSlug:"dialog"}),vp=({titleId:e})=>{const t=Eu(Cu),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. + +If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. + +For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return y.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},xp="DialogDescriptionWarning",bp=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Eu(xp).contentName}}.`;return y.useEffect(()=>{var i;const s=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&s&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},wp=hu,_p=pu,Sp=yu,Pu=vu,ku=xu,Ru=wu,Nu=Su,ju=Au;function Du(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;ttypeof e=="boolean"?`${e}`:e===0?"0":e,ec=Mu,ko=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return ec(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:s,defaultVariants:i}=t,o=Object.keys(s).map(l=>{const u=n==null?void 0:n[l],d=i==null?void 0:i[l];if(u===null)return null;const f=Qa(u)||Qa(d);return s[l][f]}),a=n&&Object.entries(n).reduce((l,u)=>{let[d,f]=u;return f===void 0||(l[d]=f),l},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((l,u)=>{let{class:d,className:f,...m}=u;return Object.entries(m).every(g=>{let[h,x]=g;return Array.isArray(x)?x.includes({...i,...a}[h]):{...i,...a}[h]===x})?[...l,d,f]:l},[]);return ec(e,o,c,n==null?void 0:n.class,n==null?void 0:n.className)};/** + * @license lucide-react v0.473.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Tp=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ou=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** + * @license lucide-react v0.473.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */var Ap={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** + * @license lucide-react v0.473.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Cp=y.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:s="",children:i,iconNode:o,...a},c)=>y.createElement("svg",{ref:c,...Ap,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Ou("lucide",s),...a},[...o.map(([l,u])=>y.createElement(l,u)),...Array.isArray(i)?i:[i]]));/** + * @license lucide-react v0.473.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const nn=(e,t)=>{const n=y.forwardRef(({className:r,...s},i)=>y.createElement(Cp,{ref:i,iconNode:t,className:Ou(`lucide-${Tp(e)}`,r),...s}));return n.displayName=`${e}`,n};/** + * @license lucide-react v0.473.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Ep=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],Pp=nn("ArrowUpRight",Ep);/** + * @license lucide-react v0.473.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const kp=[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]],Rp=nn("Facebook",kp);/** + * @license lucide-react v0.473.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Np=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],aT=nn("LoaderCircle",Np);/** + * @license lucide-react v0.473.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const jp=[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]],cT=nn("Loader",jp);/** + * @license lucide-react v0.473.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Dp=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],Mp=nn("MapPin",Dp);/** + * @license lucide-react v0.473.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Op=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],Vp=nn("Smartphone",Op);/** + * @license lucide-react v0.473.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Lp=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]],Ip=nn("Upload",Lp);/** + * @license lucide-react v0.473.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Fp=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Bp=nn("X",Fp),Ro="-",$p=e=>{const t=Up(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{const a=o.split(Ro);return a[0]===""&&a.length!==1&&a.shift(),Vu(a,t)||zp(o)},getConflictingClassGroupIds:(o,a)=>{const c=n[o]||[];return a&&r[o]?[...c,...r[o]]:c}}},Vu=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),s=r?Vu(e.slice(1),r):void 0;if(s)return s;if(t.validators.length===0)return;const i=e.join(Ro);return(o=t.validators.find(({validator:a})=>a(i)))==null?void 0:o.classGroupId},tc=/^\[(.+)\]$/,zp=e=>{if(tc.test(e)){const t=tc.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Up=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Zp(Object.entries(e.classGroups),n).forEach(([i,o])=>{$i(o,r,i,t)}),r},$i=(e,t,n,r)=>{e.forEach(s=>{if(typeof s=="string"){const i=s===""?t:nc(t,s);i.classGroupId=n;return}if(typeof s=="function"){if(Wp(s)){$i(s(r),t,n,r);return}t.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([i,o])=>{$i(o,nc(t,i),n,r)})})},nc=(e,t)=>{let n=e;return t.split(Ro).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Wp=e=>e.isThemeGetter,Zp=(e,t)=>t?e.map(([n,r])=>{const s=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([o,a])=>[t+o,a])):i);return[n,s]}):e,Hp=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const s=(i,o)=>{n.set(i,o),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let o=n.get(i);if(o!==void 0)return o;if((o=r.get(i))!==void 0)return s(i,o),o},set(i,o){n.has(i)?n.set(i,o):s(i,o)}}},Lu="!",Gp=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,s=t[0],i=t.length,o=a=>{const c=[];let l=0,u=0,d;for(let x=0;xu?d-u:void 0;return{modifiers:c,hasImportantModifier:m,baseClassName:g,maybePostfixModifierPosition:h}};return n?a=>n({className:a,parseClassName:o}):o},Kp=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},qp=e=>({cache:Hp(e.cacheSize),parseClassName:Gp(e),...$p(e)}),Yp=/\s+/,Xp=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s}=t,i=[],o=e.trim().split(Yp);let a="";for(let c=o.length-1;c>=0;c-=1){const l=o[c],{modifiers:u,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:m}=n(l);let g=!!m,h=r(g?f.substring(0,m):f);if(!h){if(!g){a=l+(a.length>0?" "+a:a);continue}if(h=r(f),!h){a=l+(a.length>0?" "+a:a);continue}g=!1}const x=Kp(u).join(":"),v=d?x+Lu:x,b=v+h;if(i.includes(b))continue;i.push(b);const S=s(h,g);for(let A=0;A0?" "+a:a)}return a};function Jp(){let e=0,t,n,r="";for(;e{if(typeof e=="string")return e;let t,n="";for(let r=0;rd(u),e());return n=qp(l),r=n.cache.get,s=n.cache.set,i=a,a(c)}function a(c){const l=r(c);if(l)return l;const u=Xp(c,n);return s(c,u),u}return function(){return i(Jp.apply(null,arguments))}}const ge=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Fu=/^\[(?:([a-z-]+):)?(.+)\]$/i,eg=/^\d+\/\d+$/,tg=new Set(["px","full","screen"]),ng=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,rg=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,sg=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ig=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,og=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Rt=e=>On(e)||tg.has(e)||eg.test(e),$t=e=>Kn(e,"length",mg),On=e=>!!e&&!Number.isNaN(Number(e)),vi=e=>Kn(e,"number",On),nr=e=>!!e&&Number.isInteger(Number(e)),ag=e=>e.endsWith("%")&&On(e.slice(0,-1)),re=e=>Fu.test(e),zt=e=>ng.test(e),cg=new Set(["length","size","percentage"]),lg=e=>Kn(e,cg,Bu),ug=e=>Kn(e,"position",Bu),dg=new Set(["image","url"]),fg=e=>Kn(e,dg,gg),hg=e=>Kn(e,"",pg),rr=()=>!0,Kn=(e,t,n)=>{const r=Fu.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},mg=e=>rg.test(e)&&!sg.test(e),Bu=()=>!1,pg=e=>ig.test(e),gg=e=>og.test(e),yg=()=>{const e=ge("colors"),t=ge("spacing"),n=ge("blur"),r=ge("brightness"),s=ge("borderColor"),i=ge("borderRadius"),o=ge("borderSpacing"),a=ge("borderWidth"),c=ge("contrast"),l=ge("grayscale"),u=ge("hueRotate"),d=ge("invert"),f=ge("gap"),m=ge("gradientColorStops"),g=ge("gradientColorStopPositions"),h=ge("inset"),x=ge("margin"),v=ge("opacity"),b=ge("padding"),S=ge("saturate"),A=ge("scale"),_=ge("sepia"),C=ge("skew"),E=ge("space"),k=ge("translate"),D=()=>["auto","contain","none"],O=()=>["auto","hidden","clip","visible","scroll"],z=()=>["auto",re,t],R=()=>[re,t],F=()=>["",Rt,$t],$=()=>["auto",On,re],J=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],K=()=>["solid","dashed","dotted","double","none"],W=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],U=()=>["start","end","center","between","around","evenly","stretch"],Q=()=>["","0",re],le=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ue=()=>[On,re];return{cacheSize:500,separator:":",theme:{colors:[rr],spacing:[Rt,$t],blur:["none","",zt,re],brightness:ue(),borderColor:[e],borderRadius:["none","","full",zt,re],borderSpacing:R(),borderWidth:F(),contrast:ue(),grayscale:Q(),hueRotate:ue(),invert:Q(),gap:R(),gradientColorStops:[e],gradientColorStopPositions:[ag,$t],inset:z(),margin:z(),opacity:ue(),padding:R(),saturate:ue(),scale:ue(),sepia:Q(),skew:ue(),space:R(),translate:R()},classGroups:{aspect:[{aspect:["auto","square","video",re]}],container:["container"],columns:[{columns:[zt]}],"break-after":[{"break-after":le()}],"break-before":[{"break-before":le()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...J(),re]}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",nr,re]}],basis:[{basis:z()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",re]}],grow:[{grow:Q()}],shrink:[{shrink:Q()}],order:[{order:["first","last","none",nr,re]}],"grid-cols":[{"grid-cols":[rr]}],"col-start-end":[{col:["auto",{span:["full",nr,re]},re]}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":[rr]}],"row-start-end":[{row:["auto",{span:[nr,re]},re]}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",re]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",re]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...U()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...U(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...U(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[E]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[E]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",re,t]}],"min-w":[{"min-w":[re,t,"min","max","fit"]}],"max-w":[{"max-w":[re,t,"none","full","min","max","fit","prose",{screen:[zt]},zt]}],h:[{h:[re,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[re,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[re,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[re,t,"auto","min","max","fit"]}],"font-size":[{text:["base",zt,$t]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",vi]}],"font-family":[{font:[rr]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",re]}],"line-clamp":[{"line-clamp":["none",On,vi]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Rt,re]}],"list-image":[{"list-image":["none",re]}],"list-style-type":[{list:["none","disc","decimal",re]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...K(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Rt,$t]}],"underline-offset":[{"underline-offset":["auto",Rt,re]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",re]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",re]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...J(),ug]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",lg]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},fg]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...K(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:K()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...K()]}],"outline-offset":[{"outline-offset":[Rt,re]}],"outline-w":[{outline:[Rt,$t]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:F()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[Rt,$t]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",zt,hg]}],"shadow-color":[{shadow:[rr]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...W(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":W()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",zt,re]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[S]}],sepia:[{sepia:[_]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[S]}],"backdrop-sepia":[{"backdrop-sepia":[_]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",re]}],duration:[{duration:ue()}],ease:[{ease:["linear","in","out","in-out",re]}],delay:[{delay:ue()}],animate:[{animate:["none","spin","ping","pulse","bounce",re]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[A]}],"scale-x":[{"scale-x":[A]}],"scale-y":[{"scale-y":[A]}],rotate:[{rotate:[nr,re]}],"translate-x":[{"translate-x":[k]}],"translate-y":[{"translate-y":[k]}],"skew-x":[{"skew-x":[C]}],"skew-y":[{"skew-y":[C]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",re]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",re]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",re]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Rt,$t,vi]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},vg=Qp(yg);function ee(...e){return vg(Mu(e))}const xg=wp,bg=_p,wg=ju,_g=Sp,$u=y.forwardRef(({className:e,...t},n)=>p.jsx(Pu,{className:ee("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));$u.displayName=Pu.displayName;const Sg=ko("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-full data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),zu=y.forwardRef(({side:e="right",className:t,children:n,...r},s)=>p.jsxs(_g,{children:[p.jsx($u,{}),p.jsxs(ku,{ref:s,className:ee(Sg({side:e}),t),...r,children:[p.jsxs(ju,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none disabled:pointer-events-none data-[state=open]:bg-secondary",children:[p.jsx(Bp,{className:"size-8"}),p.jsx("span",{className:"sr-only",children:"Close"})]}),n]})]}));zu.displayName=ku.displayName;const Uu=({className:e,...t})=>p.jsx("div",{className:ee("flex flex-col space-y-2 text-center sm:text-left",e),...t});Uu.displayName="SheetHeader";const Tg=y.forwardRef(({className:e,...t},n)=>p.jsx(Ru,{ref:n,className:ee("text-lg font-semibold text-foreground",e),...t}));Tg.displayName=Ru.displayName;const Ag=y.forwardRef(({className:e,...t},n)=>p.jsx(Nu,{ref:n,className:ee("text-sm text-muted-foreground",e),...t}));Ag.displayName=Nu.displayName;const Cg=ko("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-[18px] leading-[140%] font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-on_primary shadow hover:bg-primary/90",teritary:"bg-teritary hover:bg-teritary/90 text-on_surface",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-outline text-on_surface",secondary:"bg-secondary_container hover:bg-secondary_container/80 text-on_secondary_container",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-white h-8"},size:{default:"h-12 px-5 py-2 rounded-[2px]",sm:"h-10 text-base px-4 rounded-[2px]",lg:"lg:h-[88px] h-12 rounded-[2px] px-8 ",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),tt=y.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...s},i)=>{const o=r?Hn:"button";return p.jsx(o,{className:ee(Cg({variant:t,size:n,className:e})),ref:i,...s})});tt.displayName="Button";const rc=e=>{let t;const n=new Set,r=(l,u)=>{const d=typeof l=="function"?l(t):l;if(!Object.is(d,t)){const f=t;t=u??(typeof d!="object"||d===null)?d:Object.assign({},t,d),n.forEach(m=>m(t,f))}},s=()=>t,a={setState:r,getState:s,getInitialState:()=>c,subscribe:l=>(n.add(l),()=>n.delete(l))},c=t=e(r,s,a);return a},Eg=e=>e?rc(e):rc,Pg=e=>e;function kg(e,t=Pg){const n=fe.useSyncExternalStore(e.subscribe,()=>t(e.getState()),()=>t(e.getInitialState()));return fe.useDebugValue(n),n}const Rg=e=>{const t=Eg(e),n=r=>kg(t,r);return Object.assign(n,t),n},Ng=e=>Rg;function jg(e,t){let n;try{n=e()}catch{return}return{getItem:s=>{var i;const o=c=>c===null?null:JSON.parse(c,void 0),a=(i=n.getItem(s))!=null?i:null;return a instanceof Promise?a.then(o):o(a)},setItem:(s,i)=>n.setItem(s,JSON.stringify(i,void 0)),removeItem:s=>n.removeItem(s)}}const zi=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return zi(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return zi(r)(n)}}}},Dg=(e,t)=>(n,r,s)=>{let i={storage:jg(()=>localStorage),partialize:h=>h,version:0,merge:(h,x)=>({...x,...h}),...t},o=!1;const a=new Set,c=new Set;let l=i.storage;if(!l)return e((...h)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),n(...h)},r,s);const u=()=>{const h=i.partialize({...r()});return l.setItem(i.name,{state:h,version:i.version})},d=s.setState;s.setState=(h,x)=>{d(h,x),u()};const f=e((...h)=>{n(...h),u()},r,s);s.getInitialState=()=>f;let m;const g=()=>{var h,x;if(!l)return;o=!1,a.forEach(b=>{var S;return b((S=r())!=null?S:f)});const v=((x=i.onRehydrateStorage)==null?void 0:x.call(i,(h=r())!=null?h:f))||void 0;return zi(l.getItem.bind(l))(i.name).then(b=>{if(b)if(typeof b.version=="number"&&b.version!==i.version){if(i.migrate){const S=i.migrate(b.state,b.version);return S instanceof Promise?S.then(A=>[!0,A]):[!0,S]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,b.state];return[!1,void 0]}).then(b=>{var S;const[A,_]=b;if(m=i.merge(_,(S=r())!=null?S:f),n(m,!0),A)return u()}).then(()=>{v==null||v(m,void 0),m=r(),o=!0,c.forEach(b=>b(m))}).catch(b=>{v==null||v(void 0,b)})};return s.persist={setOptions:h=>{i={...i,...h},h.storage&&(l=h.storage)},clearStorage:()=>{l==null||l.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>g(),hasHydrated:()=>o,onHydrate:h=>(a.add(h),()=>{a.delete(h)}),onFinishHydration:h=>(c.add(h),()=>{c.delete(h)})},i.skipHydration||g(),m||f},Mg=Dg;var je=(e=>(e.EN="en",e.RU="ru",e))(je||{});const Ie=Ng()(Mg(e=>({lang:"en",setLang:t=>e({lang:t})}),{name:"lang-storage"})),Ui=[{lang:je.RU,data:[{title:"Медиа",link:""},{title:"Контакты",link:"/contacts"},{title:"О выставке",link:"/about"},{title:"Посетителям",link:""},{title:"Экспонентам",link:""}]},{lang:je.EN,data:[{title:"Media",link:""},{title:"Contacts",link:"/contacts"},{title:"About exhibition",link:"/about"},{title:"To the Visitors",link:""},{title:"To the Exhibitors",link:""}]}],ae=e=>e===je.RU?0:1,Og=()=>{const[e,t]=y.useState(!1),n=Ie(r=>r.lang);return p.jsxs(xg,{onOpenChange:()=>t(!e),open:e,children:[p.jsx(bg,{children:p.jsxs("div",{className:"flex flex-col gap-1 lg:hidden items-center justify-center size-10",children:[p.jsx("div",{className:"w-[18px] h-0.5 bg-white rounded-[2px]"}),p.jsx("div",{className:"w-[18px] h-0.5 bg-white rounded-[2px]"}),p.jsx("div",{className:"w-[18px] h-0.5 bg-white rounded-[2px]"})]})}),p.jsxs(zu,{className:"overflow-y-auto",children:[p.jsx(wg,{}),p.jsxs(Uu,{className:"mt-16 flex flex-col gap-2",children:[p.jsx(Re,{to:"",children:p.jsx(tt,{variant:"secondary",size:"sm",className:"bg-teritary w-full text-on_teritary hover:bg-teritary/90",children:"Официальная поддержка"})}),p.jsx(Re,{to:"/B2B-B2G",onClick:()=>t(!1),children:p.jsx(tt,{className:"text-base w-full",size:"sm",children:"B2B | B2G встречи"})})]}),p.jsx("hr",{className:"border-slate-500/20 my-8"}),p.jsx("div",{className:"flex flex-col gap-6",children:Ui[ae(n)].data.map(r=>p.jsx(Re,{onClick:()=>t(!1),className:"h-10 text-on_surface",to:r.link,children:r.title},r.title))})]})]})},Wu=({className:e})=>p.jsx("div",{className:ee("",e),children:p.jsx("img",{src:"/logo.svg",alt:"logo",className:"md:size-auto h-10"})}),Zu=({className:e,img:t,title:n,iconClassName:r})=>p.jsxs("article",{className:ee("bg-bg_surface_container relative hover:bg-teritary_surface_container transition-all md:px-6 px-2 md:h-[224px] h-[124px]",e),children:[p.jsx("div",{className:"bg-primary size-full -z-[10] absolute top-2.5 left-2.5"}),p.jsx("div",{className:ee("md:size-[84px] size-12 bg-teritary p-3",r),children:p.jsx("img",{src:t,alt:"theme icon"})}),p.jsx("h3",{className:"md:mt-6 mt-2 md:text-xl text-sm",children:n})]}),Vg=({className:e,nums:t,text:n})=>p.jsxs("article",{className:ee("px-6 py-4 relative bg-surface_container h-[160px] w-full overflow-hidden",e),children:[p.jsx("img",{src:"/about-card-bg.svg",className:"absolute top-2 right-0"}),p.jsx("h2",{className:"text-primary text-[32px] semibold leading-[130%] mb-4",children:t}),p.jsx("h4",{className:"text-on_surface normal text-base",children:n})]}),Lg=({className:e,title:t,text:n,img:r,link:s,btnText:i})=>p.jsxs("article",{className:ee("md:px-8 md:py-6 p-4 relative overflow-hidden h-[296px] md:w-full w-[300px] text-on_primary",e),children:[p.jsx("div",{className:"absolute size-full z-10 top-0 left-0 bg-gradient-to-r from-25% from-primary to-primary/20 "}),p.jsx("img",{src:r,className:"absolute size-full top-0 right-0 object-cover"}),p.jsxs("div",{className:"relative z-20 h-full",children:[p.jsxs("div",{className:"",children:[p.jsx("h4",{className:"md:text-2xl text-lg mb-4 max-w-[444px] z-20 h-16",children:t}),p.jsx("p",{className:"md:text-base text-sm normal max-w-[360px] z-20",children:n})]}),p.jsx(Re,{className:"absolute bottom-0 left-0",target:"_blank",to:s,children:p.jsxs(tt,{className:"text-sm px-0 h-fit py-0 z-20",variant:"link",children:[i," ",p.jsx(Pp,{})]})})]})]}),Hu=({className:e,name:t,date:n,bottomClassName:r})=>p.jsxs("div",{className:ee("rounded-t-[4px] overflow-hidden",e),children:[p.jsx("div",{className:"bg-teritary text-white flex items-center h-11 px-4",children:t}),p.jsx("div",{className:ee("h-14 bg-bg_surface_container semibold flex items-center text-lg px-4",r),children:n})]}),Ig=({className:e,subtitle:t,title:n,img:r})=>p.jsxs("div",{className:ee("flex items-center gap-4",e),children:[p.jsx("div",{className:"bg-secondary_container size-16 rounded-[2px] p-3",children:p.jsx("img",{src:r,alt:"contact icon",className:"size-full"})}),p.jsxs("div",{className:"flex flex-col gap-2",children:[p.jsx("h5",{className:"text-sm text-[#454545]",children:t}),p.jsx("h4",{className:"text-[#171717] semibold",children:n})]})]}),No=y.createContext({});function jo(e){const t=y.useRef(null);return t.current===null&&(t.current=e()),t.current}const qs=y.createContext(null),Do=y.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class Fg extends y.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,s=r instanceof HTMLElement&&r.offsetWidth||0,i=this.props.sizeRef.current;i.height=n.offsetHeight||0,i.width=n.offsetWidth||0,i.top=n.offsetTop,i.left=n.offsetLeft,i.right=s-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}}function Bg({children:e,isPresent:t,anchorX:n}){const r=y.useId(),s=y.useRef(null),i=y.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:o}=y.useContext(Do);return y.useInsertionEffect(()=>{const{width:a,height:c,top:l,left:u,right:d}=i.current;if(t||!s.current||!a||!c)return;const f=n==="left"?`left: ${u}`:`right: ${d}`;s.current.dataset.motionPopId=r;const m=document.createElement("style");return o&&(m.nonce=o),document.head.appendChild(m),m.sheet&&m.sheet.insertRule(` + [data-motion-pop-id="${r}"] { + position: absolute !important; + width: ${a}px !important; + height: ${c}px !important; + ${f}px !important; + top: ${l}px !important; + } + `),()=>{document.head.removeChild(m)}},[t]),p.jsx(Fg,{isPresent:t,childRef:s,sizeRef:i,children:y.cloneElement(e,{ref:s})})}const $g=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:s,presenceAffectsLayout:i,mode:o,anchorX:a})=>{const c=jo(zg),l=y.useId(),u=y.useCallback(f=>{c.set(f,!0);for(const m of c.values())if(!m)return;r&&r()},[c,r]),d=y.useMemo(()=>({id:l,initial:t,isPresent:n,custom:s,onExitComplete:u,register:f=>(c.set(f,!1),()=>c.delete(f))}),i?[Math.random(),u]:[n,u]);return y.useMemo(()=>{c.forEach((f,m)=>c.set(m,!1))},[n]),y.useEffect(()=>{!n&&!c.size&&r&&r()},[n]),o==="popLayout"&&(e=p.jsx(Bg,{isPresent:n,anchorX:a,children:e})),p.jsx(qs.Provider,{value:d,children:e})};function zg(){return new Map}function Gu(e=!0){const t=y.useContext(qs);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:s}=t,i=y.useId();y.useEffect(()=>{e&&s(i)},[e]);const o=y.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,o]:[!0]}const cs=e=>e.key||"";function sc(e){const t=[];return y.Children.forEach(e,n=>{y.isValidElement(n)&&t.push(n)}),t}const Mo=typeof window<"u",Ku=Mo?y.useLayoutEffect:y.useEffect,lT=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:s=!0,mode:i="sync",propagate:o=!1,anchorX:a="left"})=>{const[c,l]=Gu(o),u=y.useMemo(()=>sc(e),[e]),d=o&&!c?[]:u.map(cs),f=y.useRef(!0),m=y.useRef(u),g=jo(()=>new Map),[h,x]=y.useState(u),[v,b]=y.useState(u);Ku(()=>{f.current=!1,m.current=u;for(let _=0;_{const C=cs(_),E=o&&!c?!1:u===v||d.includes(C),k=()=>{if(g.has(C))g.set(C,!0);else return;let D=!0;g.forEach(O=>{O||(D=!1)}),D&&(A==null||A(),b(m.current),o&&(l==null||l()),r&&r())};return p.jsx($g,{isPresent:E,initial:!f.current||n?void 0:!1,custom:E?void 0:t,presenceAffectsLayout:s,mode:i,onExitComplete:E?void 0:k,anchorX:a,children:_},C)})})},Je=e=>e;let Wi=Je;const Ug={skipAnimations:!1,useManualTiming:!1};function Wg(e){let t=new Set,n=new Set,r=!1,s=!1;const i=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function a(l){i.has(l)&&(c.schedule(l),e()),l(o)}const c={schedule:(l,u=!1,d=!1)=>{const m=d&&r?t:n;return u&&i.add(l),m.has(l)||m.add(l),l},cancel:l=>{n.delete(l),i.delete(l)},process:l=>{if(o=l,r){s=!0;return}r=!0,[t,n]=[n,t],t.forEach(a),t.clear(),r=!1,s&&(s=!1,c.process(l))}};return c}const ls=["read","resolveKeyframes","update","preRender","render","postRender"],Zg=40;function qu(e,t){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,o=ls.reduce((v,b)=>(v[b]=Wg(i),v),{}),{read:a,resolveKeyframes:c,update:l,preRender:u,render:d,postRender:f}=o,m=()=>{const v=performance.now();n=!1,s.delta=r?1e3/60:Math.max(Math.min(v-s.timestamp,Zg),1),s.timestamp=v,s.isProcessing=!0,a.process(s),c.process(s),l.process(s),u.process(s),d.process(s),f.process(s),s.isProcessing=!1,n&&t&&(r=!1,e(m))},g=()=>{n=!0,r=!0,s.isProcessing||e(m)};return{schedule:ls.reduce((v,b)=>{const S=o[b];return v[b]=(A,_=!1,C=!1)=>(n||g(),S.schedule(A,_,C)),v},{}),cancel:v=>{for(let b=0;bic[e].some(n=>!!t[n])};function Hg(e){for(const t in e)In[t]={...In[t],...e[t]}}const Gg=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function As(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Gg.has(e)}let Xu=e=>!As(e);function Kg(e){e&&(Xu=t=>t.startsWith("on")?!As(t):e(t))}try{Kg(require("@emotion/is-prop-valid").default)}catch{}function qg(e,t,n){const r={};for(const s in e)s==="values"&&typeof e.values=="object"||(Xu(s)||n===!0&&As(s)||!t&&!As(s)||e.draggable&&s.startsWith("onDrag"))&&(r[s]=e[s]);return r}function Yg(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,s)=>s==="create"?e:(t.has(s)||t.set(s,e(s)),t.get(s))})}const Ys=y.createContext({});function wr(e){return typeof e=="string"||Array.isArray(e)}function Xs(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Oo=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Vo=["initial",...Oo];function Js(e){return Xs(e.animate)||Vo.some(t=>wr(e[t]))}function Ju(e){return!!(Js(e)||e.variants)}function Xg(e,t){if(Js(e)){const{initial:n,animate:r}=e;return{initial:n===!1||wr(n)?n:void 0,animate:wr(r)?r:void 0}}return e.inherit!==!1?t:{}}function Jg(e){const{initial:t,animate:n}=Xg(e,y.useContext(Ys));return y.useMemo(()=>({initial:t,animate:n}),[oc(t),oc(n)])}function oc(e){return Array.isArray(e)?e.join(" "):e}const Qg=Symbol.for("motionComponentSymbol");function Pn(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function ey(e,t,n){return y.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Pn(n)&&(n.current=r))},[t])}const Lo=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),ty="framerAppearId",Qu="data-"+Lo(ty),{schedule:Io,cancel:uT}=qu(queueMicrotask,!1),ed=y.createContext({});function ny(e,t,n,r,s){var i,o;const{visualElement:a}=y.useContext(Ys),c=y.useContext(Yu),l=y.useContext(qs),u=y.useContext(Do).reducedMotion,d=y.useRef(null);r=r||c.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:a,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:u}));const f=d.current,m=y.useContext(ed);f&&!f.projection&&s&&(f.type==="html"||f.type==="svg")&&ry(d.current,n,s,m);const g=y.useRef(!1);y.useInsertionEffect(()=>{f&&g.current&&f.update(n,l)});const h=n[Qu],x=y.useRef(!!h&&!(!((i=window.MotionHandoffIsComplete)===null||i===void 0)&&i.call(window,h))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,h)));return Ku(()=>{f&&(g.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),Io.render(f.render),x.current&&f.animationState&&f.animationState.animateChanges())}),y.useEffect(()=>{f&&(!x.current&&f.animationState&&f.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{var v;(v=window.MotionHandoffMarkAsComplete)===null||v===void 0||v.call(window,h)}),x.current=!1))}),f}function ry(e,t,n,r){const{layoutId:s,layout:i,drag:o,dragConstraints:a,layoutScroll:c,layoutRoot:l}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:td(e.parent)),e.projection.setOptions({layoutId:s,layout:i,alwaysMeasureLayout:!!o||a&&Pn(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,layoutScroll:c,layoutRoot:l})}function td(e){if(e)return e.options.allowProjection!==!1?e.projection:td(e.parent)}function sy({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:s}){var i,o;e&&Hg(e);function a(l,u){let d;const f={...y.useContext(Do),...l,layoutId:iy(l)},{isStatic:m}=f,g=Jg(l),h=r(l,m);if(!m&&Mo){oy();const x=ay(f);d=x.MeasureLayout,g.visualElement=ny(s,h,f,t,x.ProjectionNode)}return p.jsxs(Ys.Provider,{value:g,children:[d&&g.visualElement?p.jsx(d,{visualElement:g.visualElement,...f}):null,n(s,l,ey(h,g.visualElement,u),h,m,g.visualElement)]})}a.displayName=`motion.${typeof s=="string"?s:`create(${(o=(i=s.displayName)!==null&&i!==void 0?i:s.name)!==null&&o!==void 0?o:""})`}`;const c=y.forwardRef(a);return c[Qg]=s,c}function iy({layoutId:e}){const t=y.useContext(No).id;return t&&e!==void 0?t+"-"+e:e}function oy(e,t){y.useContext(Yu).strict}function ay(e){const{drag:t,layout:n}=In;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const cy=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Fo(e){return typeof e!="string"||e.includes("-")?!1:!!(cy.indexOf(e)>-1||/[A-Z]/u.test(e))}function ac(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Bo(e,t,n,r){if(typeof t=="function"){const[s,i]=ac(r);t=t(n!==void 0?n:e.custom,s,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[s,i]=ac(r);t=t(n!==void 0?n:e.custom,s,i)}return t}const Zi=e=>Array.isArray(e),ly=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),uy=e=>Zi(e)?e[e.length-1]||0:e,Le=e=>!!(e&&e.getVelocity);function vs(e){const t=Le(e)?e.get():e;return ly(t)?t.toValue():t}function dy({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,s,i){const o={latestValues:fy(r,s,i,e),renderState:t()};return n&&(o.onMount=a=>n({props:r,current:a,...o}),o.onUpdate=a=>n(a)),o}const nd=e=>(t,n)=>{const r=y.useContext(Ys),s=y.useContext(qs),i=()=>dy(e,t,r,s);return n?i():jo(i)};function fy(e,t,n,r){const s={},i=r(e,{});for(const f in i)s[f]=vs(i[f]);let{initial:o,animate:a}=e;const c=Js(e),l=Ju(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let u=n?n.initial===!1:!1;u=u||o===!1;const d=u?a:o;if(d&&typeof d!="boolean"&&!Xs(d)){const f=Array.isArray(d)?d:[d];for(let m=0;mt=>typeof t=="string"&&t.startsWith(e),$o=rd("--"),hy=rd("var(--"),zo=e=>hy(e)?my.test(e.split("/*")[0].trim()):!1,my=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,sd=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Lt=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},_r={...Yn,transform:e=>Lt(0,1,e)},us={...Yn,default:1},Zr=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Wt=Zr("deg"),_t=Zr("%"),q=Zr("px"),py=Zr("vh"),gy=Zr("vw"),cc={..._t,parse:e=>_t.parse(e)/100,transform:e=>_t.transform(e*100)},yy={borderWidth:q,borderTopWidth:q,borderRightWidth:q,borderBottomWidth:q,borderLeftWidth:q,borderRadius:q,radius:q,borderTopLeftRadius:q,borderTopRightRadius:q,borderBottomRightRadius:q,borderBottomLeftRadius:q,width:q,maxWidth:q,height:q,maxHeight:q,top:q,right:q,bottom:q,left:q,padding:q,paddingTop:q,paddingRight:q,paddingBottom:q,paddingLeft:q,margin:q,marginTop:q,marginRight:q,marginBottom:q,marginLeft:q,backgroundPositionX:q,backgroundPositionY:q},vy={rotate:Wt,rotateX:Wt,rotateY:Wt,rotateZ:Wt,scale:us,scaleX:us,scaleY:us,scaleZ:us,skew:Wt,skewX:Wt,skewY:Wt,distance:q,translateX:q,translateY:q,translateZ:q,x:q,y:q,z:q,perspective:q,transformPerspective:q,opacity:_r,originX:cc,originY:cc,originZ:q},lc={...Yn,transform:Math.round},Uo={...yy,...vy,zIndex:lc,size:q,fillOpacity:_r,strokeOpacity:_r,numOctaves:lc},xy={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},by=qn.length;function wy(e,t,n){let r="",s=!0;for(let i=0;i({style:{},transform:{},transformOrigin:{},vars:{}}),id=()=>({...Ho(),attrs:{}}),Go=e=>typeof e=="string"&&e.toLowerCase()==="svg";function od(e,{style:t,vars:n},r,s){Object.assign(e.style,t,s&&s.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const ad=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function cd(e,t,n,r){od(e,t,void 0,r);for(const s in t.attrs)e.setAttribute(ad.has(s)?s:Lo(s),t.attrs[s])}const Sr={};function Cy(e){for(const t in e)Sr[t]=e[t],$o(t)&&(Sr[t].isCSSVariable=!0)}function ld(e,{layout:t,layoutId:n}){return _n.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Sr[e]||e==="opacity")}function Ko(e,t,n){var r;const{style:s}=e,i={};for(const o in s)(Le(s[o])||t.style&&Le(t.style[o])||ld(o,e)||((r=n==null?void 0:n.getValue(o))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(i[o]=s[o]);return i}function ud(e,t,n){const r=Ko(e,t,n);for(const s in e)if(Le(e[s])||Le(t[s])){const i=qn.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;r[i]=e[s]}return r}function Ey(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const dc=["x","y","width","height","cx","cy","r"],Py={useVisualState:nd({scrapeMotionValuesFromProps:ud,createRenderState:id,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:s})=>{if(!n)return;let i=!!e.drag;if(!i){for(const a in s)if(_n.has(a)){i=!0;break}}if(!i)return;let o=!t;if(t)for(let a=0;a{Ey(n,r),ye.render(()=>{Zo(r,s,Go(n.tagName),e.transformTemplate),cd(n,r)})})}})},ky={useVisualState:nd({scrapeMotionValuesFromProps:Ko,createRenderState:Ho})};function dd(e,t,n){for(const r in t)!Le(t[r])&&!ld(r,n)&&(e[r]=t[r])}function Ry({transformTemplate:e},t){return y.useMemo(()=>{const n=Ho();return Wo(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Ny(e,t){const n=e.style||{},r={};return dd(r,n,e),Object.assign(r,Ry(e,t)),r}function jy(e,t){const n={},r=Ny(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function Dy(e,t,n,r){const s=y.useMemo(()=>{const i=id();return Zo(i,t,Go(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};dd(i,e.style,e),s.style={...i,...s.style}}return s}function My(e=!1){return(n,r,s,{latestValues:i},o)=>{const c=(Fo(n)?Dy:jy)(r,i,o,n),l=qg(r,typeof n=="string",e),u=n!==y.Fragment?{...l,...c,ref:s}:{},{children:d}=r,f=y.useMemo(()=>Le(d)?d.get():d,[d]);return y.createElement(n,{...u,children:f})}}function Oy(e,t){return function(r,{forwardMotionProps:s}={forwardMotionProps:!1}){const o={...Fo(r)?Py:ky,preloadedFeatures:e,useRender:My(s),createVisualElement:t,Component:r};return sy(o)}}function fd(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r(xs===void 0&&St.set(De.isProcessing||Ug.useManualTiming?De.timestamp:performance.now()),xs),set:e=>{xs=e,queueMicrotask(Vy)}};function Yo(e,t){e.indexOf(t)===-1&&e.push(t)}function Xo(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Jo{constructor(){this.subscriptions=[]}add(t){return Yo(this.subscriptions,t),()=>Xo(this.subscriptions,t)}notify(t,n,r){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,n,r);else for(let i=0;i!isNaN(parseFloat(e));class Iy{constructor(t,n={}){this.version="12.0.6",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,s=!0)=>{const i=St.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),s&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=St.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Ly(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Jo);const r=this.events[t].add(n);return t==="change"?()=>{r(),ye.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=St.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>fc)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,fc);return md(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Tr(e,t){return new Iy(e,t)}function Fy(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Tr(n))}function By(e,t){const n=Qs(e,t);let{transitionEnd:r={},transition:s={},...i}=n||{};i={...i,...r};for(const o in i){const a=uy(i[o]);Fy(e,o,a)}}function $y(e){return!!(Le(e)&&e.add)}function Hi(e,t){const n=e.getValue("willChange");if($y(n))return n.add(t)}function pd(e){return e.props[Qu]}function Qo(e){let t;return()=>(t===void 0&&(t=e()),t)}const zy=Qo(()=>window.ScrollTimeline!==void 0);class Uy{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r{if(zy()&&s.attachTimeline)return s.attachTimeline(t);if(typeof n=="function")return n(s)});return()=>{r.forEach((s,i)=>{s&&s(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;nn[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class Wy extends Uy{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}const Ot=e=>e*1e3,Vt=e=>e/1e3;function ea(e){return typeof e=="function"}function hc(e,t){e.timeline=t,e.onfinish=null}const ta=e=>Array.isArray(e)&&typeof e[0]=="number",Zy={linearEasing:void 0};function Hy(e,t){const n=Qo(e);return()=>{var r;return(r=Zy[t])!==null&&r!==void 0?r:n()}}const Cs=Hy(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Fn=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},gd=(e,t,n=10)=>{let r="";const s=Math.max(Math.round(t/n),2);for(let i=0;i`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Gi={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ar([0,.65,.55,1]),circOut:ar([.55,0,1,.45]),backIn:ar([.31,.01,.66,-.59]),backOut:ar([.33,1.53,.69,.99])};function vd(e,t){if(e)return typeof e=="function"&&Cs()?gd(e,t):ta(e)?ar(e):Array.isArray(e)?e.map(n=>vd(n,t)||Gi.easeOut):Gi[e]}const xd=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Gy=1e-7,Ky=12;function qy(e,t,n,r,s){let i,o,a=0;do o=t+(n-t)/2,i=xd(o,r,s)-e,i>0?n=o:t=o;while(Math.abs(i)>Gy&&++aqy(i,0,1,e,n);return i=>i===0||i===1?i:xd(s(i),t,r)}const bd=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,wd=e=>t=>1-e(1-t),_d=Hr(.33,1.53,.69,.99),na=wd(_d),Sd=bd(na),Td=e=>(e*=2)<1?.5*na(e):.5*(2-Math.pow(2,-10*(e-1))),ra=e=>1-Math.sin(Math.acos(e)),Ad=wd(ra),Cd=bd(ra),Ed=e=>/^0[^.\s]+$/u.test(e);function Yy(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Ed(e):!0}const hr=e=>Math.round(e*1e5)/1e5,sa=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Xy(e){return e==null}const Jy=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ia=(e,t)=>n=>!!(typeof n=="string"&&Jy.test(n)&&n.startsWith(e)||t&&!Xy(n)&&Object.prototype.hasOwnProperty.call(n,t)),Pd=(e,t,n)=>r=>{if(typeof r!="string")return r;const[s,i,o,a]=r.match(sa);return{[e]:parseFloat(s),[t]:parseFloat(i),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},Qy=e=>Lt(0,255,e),bi={...Yn,transform:e=>Math.round(Qy(e))},dn={test:ia("rgb","red"),parse:Pd("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+bi.transform(e)+", "+bi.transform(t)+", "+bi.transform(n)+", "+hr(_r.transform(r))+")"};function ev(e){let t="",n="",r="",s="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),s=e.substring(4,5),t+=t,n+=n,r+=r,s+=s),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}}const Ki={test:ia("#"),parse:ev,transform:dn.transform},kn={test:ia("hsl","hue"),parse:Pd("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+_t.transform(hr(t))+", "+_t.transform(hr(n))+", "+hr(_r.transform(r))+")"},Ve={test:e=>dn.test(e)||Ki.test(e)||kn.test(e),parse:e=>dn.test(e)?dn.parse(e):kn.test(e)?kn.parse(e):Ki.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?dn.transform(e):kn.transform(e)},tv=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function nv(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(sa))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(tv))===null||n===void 0?void 0:n.length)||0)>0}const kd="number",Rd="color",rv="var",sv="var(",mc="${}",iv=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Ar(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},s=[];let i=0;const a=t.replace(iv,c=>(Ve.test(c)?(r.color.push(i),s.push(Rd),n.push(Ve.parse(c))):c.startsWith(sv)?(r.var.push(i),s.push(rv),n.push(c)):(r.number.push(i),s.push(kd),n.push(parseFloat(c))),++i,mc)).split(mc);return{values:n,split:a,indexes:r,types:s}}function Nd(e){return Ar(e).values}function jd(e){const{split:t,types:n}=Ar(e),r=t.length;return s=>{let i="";for(let o=0;otypeof e=="number"?0:e;function av(e){const t=Nd(e);return jd(e)(t.map(ov))}const Kt={test:nv,parse:Nd,createTransformer:jd,getAnimatableNone:av},cv=new Set(["brightness","contrast","saturate","opacity"]);function lv(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(sa)||[];if(!r)return e;const s=n.replace(r,"");let i=cv.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+s+")"}const uv=/\b([a-z-]*)\(.*?\)/gu,qi={...Kt,getAnimatableNone:e=>{const t=e.match(uv);return t?t.map(lv).join(" "):e}},dv={...Uo,color:Ve,backgroundColor:Ve,outlineColor:Ve,fill:Ve,stroke:Ve,borderColor:Ve,borderTopColor:Ve,borderRightColor:Ve,borderBottomColor:Ve,borderLeftColor:Ve,filter:qi,WebkitFilter:qi},oa=e=>dv[e];function Dd(e,t){let n=oa(e);return n!==qi&&(n=Kt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const fv=new Set(["auto","none","0"]);function hv(e,t,n){let r=0,s;for(;re===Yn||e===q,gc=(e,t)=>parseFloat(e.split(", ")[t]),yc=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const s=r.match(/^matrix3d\((.+)\)$/u);if(s)return gc(s[1],t);{const i=r.match(/^matrix\((.+)\)$/u);return i?gc(i[1],e):0}},mv=new Set(["x","y","z"]),pv=qn.filter(e=>!mv.has(e));function gv(e){const t=[];return pv.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Bn={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:yc(4,13),y:yc(5,14)};Bn.translateX=Bn.x;Bn.translateY=Bn.y;const hn=new Set;let Yi=!1,Xi=!1;function Md(){if(Xi){const e=Array.from(hn).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const s=gv(r);s.length&&(n.set(r,s),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const s=n.get(r);s&&s.forEach(([i,o])=>{var a;(a=r.getValue(i))===null||a===void 0||a.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Xi=!1,Yi=!1,hn.forEach(e=>e.complete()),hn.clear()}function Od(){hn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Xi=!0)})}function yv(){Od(),Md()}class aa{constructor(t,n,r,s,i,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=s,this.element=i,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(hn.add(this),Yi||(Yi=!0,ye.read(Od),ye.resolveKeyframes(Md))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:s}=this;for(let i=0;i/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),vv=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function xv(e){const t=vv.exec(e);if(!t)return[,];const[,n,r,s]=t;return[`--${n??r}`,s]}function Ld(e,t,n=1){const[r,s]=xv(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const o=i.trim();return Vd(o)?parseFloat(o):o}return zo(s)?Ld(s,t,n+1):s}const Id=e=>t=>t.test(e),bv={test:e=>e==="auto",parse:e=>e},Fd=[Yn,q,_t,Wt,gy,py,bv],vc=e=>Fd.find(Id(e));class Bd extends aa{constructor(t,n,r,s,i){super(t,n,r,s,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c{n.getValue(c).set(l)}),this.resolveNoneKeyframes()}}const xc=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Kt.test(e)||e==="0")&&!e.startsWith("url("));function wv(e){const t=e[0];if(e.length===1)return!0;for(let n=0;ne!==null;function ei(e,{repeat:t,repeatType:n="loop"},r){const s=e.filter(Sv),i=t&&n!=="loop"&&t%2===1?0:s.length-1;return!i||r===void 0?s[i]:r}const Tv=40;class $d{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:o="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=St.now(),this.options={autoplay:t,delay:n,type:r,repeat:s,repeatDelay:i,repeatType:o,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>Tv?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&yv(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=St.now(),this.hasAttemptedResolve=!0;const{name:r,type:s,velocity:i,delay:o,onComplete:a,onUpdate:c,isGenerator:l}=this.options;if(!l&&!_v(t,r,s,i))if(o)this.options.duration=0;else{c&&c(ei(t,this.options,n)),a&&a(),this.resolveFinishedPromise();return}const u=this.initPlayback(t,n);u!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...u},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const Ji=2e4;function zd(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=Ji?1/0:t}const xe=(e,t,n)=>e+(t-e)*n;function wi(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Av({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let s=0,i=0,o=0;if(!t)s=i=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,c=2*n-a;s=wi(c,a,e+1/3),i=wi(c,a,e),o=wi(c,a,e-1/3)}return{red:Math.round(s*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:r}}function Es(e,t){return n=>n>0?t:e}const _i=(e,t,n)=>{const r=e*e,s=n*(t*t-r)+r;return s<0?0:Math.sqrt(s)},Cv=[Ki,dn,kn],Ev=e=>Cv.find(t=>t.test(e));function bc(e){const t=Ev(e);if(!t)return!1;let n=t.parse(e);return t===kn&&(n=Av(n)),n}const wc=(e,t)=>{const n=bc(e),r=bc(t);if(!n||!r)return Es(e,t);const s={...n};return i=>(s.red=_i(n.red,r.red,i),s.green=_i(n.green,r.green,i),s.blue=_i(n.blue,r.blue,i),s.alpha=xe(n.alpha,r.alpha,i),dn.transform(s))},Pv=(e,t)=>n=>t(e(n)),Gr=(...e)=>e.reduce(Pv),Qi=new Set(["none","hidden"]);function kv(e,t){return Qi.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Rv(e,t){return n=>xe(e,t,n)}function ca(e){return typeof e=="number"?Rv:typeof e=="string"?zo(e)?Es:Ve.test(e)?wc:Dv:Array.isArray(e)?Ud:typeof e=="object"?Ve.test(e)?wc:Nv:Es}function Ud(e,t){const n=[...e],r=n.length,s=e.map((i,o)=>ca(i)(i,t[o]));return i=>{for(let o=0;o{for(const i in r)n[i]=r[i](s);return n}}function jv(e,t){var n;const r=[],s={color:0,var:0,number:0};for(let i=0;i{const n=Kt.createTransformer(t),r=Ar(e),s=Ar(t);return r.indexes.var.length===s.indexes.var.length&&r.indexes.color.length===s.indexes.color.length&&r.indexes.number.length>=s.indexes.number.length?Qi.has(e)&&!s.values.length||Qi.has(t)&&!r.values.length?kv(e,t):Gr(Ud(jv(r,s),s.values),n):Es(e,t)};function Wd(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?xe(e,t,n):ca(e)(e,t)}const Mv=5;function Zd(e,t,n){const r=Math.max(t-Mv,0);return md(n-e(r),t-r)}const we={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},_c=.001;function Ov({duration:e=we.duration,bounce:t=we.bounce,velocity:n=we.velocity,mass:r=we.mass}){let s,i,o=1-t;o=Lt(we.minDamping,we.maxDamping,o),e=Lt(we.minDuration,we.maxDuration,Vt(e)),o<1?(s=l=>{const u=l*o,d=u*e,f=u-n,m=eo(l,o),g=Math.exp(-d);return _c-f/m*g},i=l=>{const d=l*o*e,f=d*n+n,m=Math.pow(o,2)*Math.pow(l,2)*e,g=Math.exp(-d),h=eo(Math.pow(l,2),o);return(-s(l)+_c>0?-1:1)*((f-m)*g)/h}):(s=l=>{const u=Math.exp(-l*e),d=(l-n)*e+1;return-.001+u*d},i=l=>{const u=Math.exp(-l*e),d=(n-l)*(e*e);return u*d});const a=5/e,c=Lv(s,i,a);if(e=Ot(e),isNaN(c))return{stiffness:we.stiffness,damping:we.damping,duration:e};{const l=Math.pow(c,2)*r;return{stiffness:l,damping:o*2*Math.sqrt(r*l),duration:e}}}const Vv=12;function Lv(e,t,n){let r=n;for(let s=1;se[n]!==void 0)}function Bv(e){let t={velocity:we.velocity,stiffness:we.stiffness,damping:we.damping,mass:we.mass,isResolvedFromDuration:!1,...e};if(!Sc(e,Fv)&&Sc(e,Iv))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),s=r*r,i=2*Lt(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:we.mass,stiffness:s,damping:i}}else{const n=Ov(e);t={...t,...n,mass:we.mass},t.isResolvedFromDuration=!0}return t}function Hd(e=we.visualDuration,t=we.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:s}=n;const i=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:m}=Bv({...n,velocity:-Vt(n.velocity||0)}),g=f||0,h=l/(2*Math.sqrt(c*u)),x=o-i,v=Vt(Math.sqrt(c/u)),b=Math.abs(x)<5;r||(r=b?we.restSpeed.granular:we.restSpeed.default),s||(s=b?we.restDelta.granular:we.restDelta.default);let S;if(h<1){const _=eo(v,h);S=C=>{const E=Math.exp(-h*v*C);return o-E*((g+h*v*x)/_*Math.sin(_*C)+x*Math.cos(_*C))}}else if(h===1)S=_=>o-Math.exp(-v*_)*(x+(g+v*x)*_);else{const _=v*Math.sqrt(h*h-1);S=C=>{const E=Math.exp(-h*v*C),k=Math.min(_*C,300);return o-E*((g+h*v*x)*Math.sinh(k)+_*x*Math.cosh(k))/_}}const A={calculatedDuration:m&&d||null,next:_=>{const C=S(_);if(m)a.done=_>=d;else{let E=0;h<1&&(E=_===0?Ot(g):Zd(S,_,C));const k=Math.abs(E)<=r,D=Math.abs(o-C)<=s;a.done=k&&D}return a.value=a.done?o:C,a},toString:()=>{const _=Math.min(zd(A),Ji),C=gd(E=>A.next(_*E).value,_,30);return _+"ms "+C}};return A}function Tc({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:i=500,modifyTarget:o,min:a,max:c,restDelta:l=.5,restSpeed:u}){const d=e[0],f={done:!1,value:d},m=k=>a!==void 0&&kc,g=k=>a===void 0?c:c===void 0||Math.abs(a-k)-h*Math.exp(-k/r),S=k=>v+b(k),A=k=>{const D=b(k),O=S(k);f.done=Math.abs(D)<=l,f.value=f.done?v:O};let _,C;const E=k=>{m(f.value)&&(_=k,C=Hd({keyframes:[f.value,g(f.value)],velocity:Zd(S,k,f.value),damping:s,stiffness:i,restDelta:l,restSpeed:u}))};return E(0),{calculatedDuration:null,next:k=>{let D=!1;return!C&&_===void 0&&(D=!0,A(k),E(k)),_!==void 0&&k>=_?C.next(k-_):(!D&&A(k),f)}}}const $v=Hr(.42,0,1,1),zv=Hr(0,0,.58,1),Gd=Hr(.42,0,.58,1),Uv=e=>Array.isArray(e)&&typeof e[0]!="number",Ac={linear:Je,easeIn:$v,easeInOut:Gd,easeOut:zv,circIn:ra,circInOut:Cd,circOut:Ad,backIn:na,backInOut:Sd,backOut:_d,anticipate:Td},Cc=e=>{if(ta(e)){Wi(e.length===4);const[t,n,r,s]=e;return Hr(t,n,r,s)}else if(typeof e=="string")return Wi(Ac[e]!==void 0),Ac[e];return e};function Wv(e,t,n){const r=[],s=n||Wd,i=e.length-1;for(let o=0;ot[0];if(i===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=Wv(t,r,s),c=a.length,l=u=>{if(o&&u1)for(;dl(Lt(e[0],e[i-1],u)):l}function Hv(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const s=Fn(0,t,r);e.push(xe(n,1,s))}}function Gv(e){const t=[0];return Hv(t,e.length-1),t}function Kv(e,t){return e.map(n=>n*t)}function qv(e,t){return e.map(()=>t||Gd).splice(0,e.length-1)}function Ps({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const s=Uv(r)?r.map(Cc):Cc(r),i={done:!1,value:t[0]},o=Kv(n&&n.length===t.length?n:Gv(t),e),a=Zv(o,t,{ease:Array.isArray(s)?s:qv(t,s)});return{calculatedDuration:e,next:c=>(i.value=a(c),i.done=c>=e,i)}}const Yv=e=>{const t=({timestamp:n})=>e(n);return{start:()=>ye.update(t,!0),stop:()=>Gt(t),now:()=>De.isProcessing?De.timestamp:St.now()}},Xv={decay:Tc,inertia:Tc,tween:Ps,keyframes:Ps,spring:Hd},Jv=e=>e/100;class la extends $d{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:c}=this.options;c&&c()};const{name:n,motionValue:r,element:s,keyframes:i}=this.options,o=(s==null?void 0:s.KeyframeResolver)||aa,a=(c,l)=>this.onKeyframesResolved(c,l);this.resolver=new o(i,a,n,r,s),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:s=0,repeatType:i,velocity:o=0}=this.options,a=ea(n)?n:Xv[n]||Ps;let c,l;a!==Ps&&typeof t[0]!="number"&&(c=Gr(Jv,Wd(t[0],t[1])),t=[0,100]);const u=a({...this.options,keyframes:t});i==="mirror"&&(l=a({...this.options,keyframes:[...t].reverse(),velocity:-o})),u.calculatedDuration===null&&(u.calculatedDuration=zd(u));const{calculatedDuration:d}=u,f=d+s,m=f*(r+1)-s;return{generator:u,mirroredGenerator:l,mapPercentToKeyframes:c,calculatedDuration:d,resolvedDuration:f,totalDuration:m}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:k}=this.options;return{done:!0,value:k[k.length-1]}}const{finalKeyframe:s,generator:i,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:c,calculatedDuration:l,totalDuration:u,resolvedDuration:d}=r;if(this.startTime===null)return i.next(0);const{delay:f,repeat:m,repeatType:g,repeatDelay:h,onUpdate:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-u/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const v=this.currentTime-f*(this.speed>=0?1:-1),b=this.speed>=0?v<0:v>u;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let S=this.currentTime,A=i;if(m){const k=Math.min(this.currentTime,u)/d;let D=Math.floor(k),O=k%1;!O&&k>=1&&(O=1),O===1&&D--,D=Math.min(D,m+1),!!(D%2)&&(g==="reverse"?(O=1-O,h&&(O-=h/d)):g==="mirror"&&(A=o)),S=Lt(0,1,O)*d}const _=b?{done:!1,value:c[0]}:A.next(S);a&&(_.value=a(_.value));let{done:C}=_;!b&&l!==null&&(C=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const E=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&C);return E&&s!==void 0&&(_.value=ei(c,this.options,s)),x&&x(_.value),E&&this.finish(),_}get duration(){const{resolved:t}=this;return t?Vt(t.calculatedDuration):0}get time(){return Vt(this.currentTime)}set time(t){t=Ot(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Vt(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=Yv,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),n&&n();const s=this.driver.now();this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=s):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const Qv=new Set(["opacity","clipPath","filter","transform"]);function ex(e,t,n,{delay:r=0,duration:s=300,repeat:i=0,repeatType:o="loop",ease:a="easeInOut",times:c}={}){const l={[t]:n};c&&(l.offset=c);const u=vd(a,s);return Array.isArray(u)&&(l.easing=u),e.animate(l,{delay:r,duration:s,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"})}const tx=Qo(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),ks=10,nx=2e4;function rx(e){return ea(e.type)||e.type==="spring"||!yd(e.ease)}function sx(e,t){const n=new la({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const s=[];let i=0;for(;!r.done&&ithis.onKeyframesResolved(o,a),n,r,s),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:s,ease:i,type:o,motionValue:a,name:c,startTime:l}=this.options;if(!a.owner||!a.owner.current)return!1;if(typeof i=="string"&&Cs()&&ix(i)&&(i=Kd[i]),rx(this.options)){const{onComplete:d,onUpdate:f,motionValue:m,element:g,...h}=this.options,x=sx(t,h);t=x.keyframes,t.length===1&&(t[1]=t[0]),r=x.duration,s=x.times,i=x.ease,o="keyframes"}const u=ex(a.owner.current,c,t,{...this.options,duration:r,times:s,ease:i});return u.startTime=l??this.calcStartTime(),this.pendingTimeline?(hc(u,this.pendingTimeline),this.pendingTimeline=void 0):u.onfinish=()=>{const{onComplete:d}=this.options;a.set(ei(t,this.options,n)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:r,times:s,type:o,ease:i,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Vt(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Vt(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Ot(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Je;const{animation:r}=n;hc(r,t)}return Je}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:s,type:i,ease:o,times:a}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:l,onUpdate:u,onComplete:d,element:f,...m}=this.options,g=new la({...m,keyframes:r,duration:s,type:i,ease:o,times:a,isGenerator:!0}),h=Ot(this.time);l.setWithVelocity(g.sample(h-ks).value,g.sample(h).value,ks)}const{onStop:c}=this.options;c&&c(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:s,repeatType:i,damping:o,type:a}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:l}=n.owner.getProps();return tx()&&r&&Qv.has(r)&&!c&&!l&&!s&&i!=="mirror"&&o!==0&&a!=="inertia"}}const ox={type:"spring",stiffness:500,damping:25,restSpeed:10},ax=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),cx={type:"keyframes",duration:.8},lx={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ux=(e,{keyframes:t})=>t.length>2?cx:_n.has(e)?e.startsWith("scale")?ax(t[1]):ox:lx;function dx({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:s,repeat:i,repeatType:o,repeatDelay:a,from:c,elapsed:l,...u}){return!!Object.keys(u).length}const ua=(e,t,n,r={},s,i)=>o=>{const a=qo(r,e)||{},c=a.delay||r.delay||0;let{elapsed:l=0}=r;l=l-Ot(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-l,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:s};dx(a)||(u={...u,...ux(e,u)}),u.duration&&(u.duration=Ot(u.duration)),u.repeatDelay&&(u.repeatDelay=Ot(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(u.duration=0,u.delay===0&&(d=!0)),d&&!i&&t.get()!==void 0){const f=ei(u.keyframes,a);if(f!==void 0)return ye.update(()=>{u.onUpdate(f),u.onComplete()}),new Wy([])}return!i&&Ec.supports(u)?new Ec(u):new la(u)};function fx({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function qd(e,t,{delay:n=0,transitionOverride:r,type:s}={}){var i;let{transition:o=e.getDefaultTransition(),transitionEnd:a,...c}=t;r&&(o=r);const l=[],u=s&&e.animationState&&e.animationState.getState()[s];for(const d in c){const f=e.getValue(d,(i=e.latestValues[d])!==null&&i!==void 0?i:null),m=c[d];if(m===void 0||u&&fx(u,d))continue;const g={delay:n,...qo(o||{},d)};let h=!1;if(window.MotionHandoffAnimation){const v=pd(e);if(v){const b=window.MotionHandoffAnimation(v,d,ye);b!==null&&(g.startTime=b,h=!0)}}Hi(e,d),f.start(ua(d,f,m,e.shouldReduceMotion&&hd.has(d)?{type:!1}:g,e,h));const x=f.animation;x&&l.push(x)}return a&&Promise.all(l).then(()=>{ye.update(()=>{a&&By(e,a)})}),l}function to(e,t,n={}){var r;const s=Qs(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const o=s?()=>Promise.all(qd(e,s,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:f}=i;return hx(e,t,u+l,d,f,n)}:()=>Promise.resolve(),{when:c}=i;if(c){const[l,u]=c==="beforeChildren"?[o,a]:[a,o];return l().then(()=>u())}else return Promise.all([o(),a(n.delay)])}function hx(e,t,n=0,r=0,s=1,i){const o=[],a=(e.variantChildren.size-1)*r,c=s===1?(l=0)=>l*r:(l=0)=>a-l*r;return Array.from(e.variantChildren).sort(mx).forEach((l,u)=>{l.notify("AnimationStart",t),o.push(to(l,t,{...i,delay:n+c(u)}).then(()=>l.notify("AnimationComplete",t)))}),Promise.all(o)}function mx(e,t){return e.sortNodePosition(t)}function px(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const s=t.map(i=>to(e,i,n));r=Promise.all(s)}else if(typeof t=="string")r=to(e,t,n);else{const s=typeof t=="function"?Qs(e,t,n.custom):t;r=Promise.all(qd(e,s,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const gx=Vo.length;function Yd(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Yd(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;nPromise.all(t.map(({animation:n,options:r})=>px(e,n,r)))}function bx(e){let t=xx(e),n=Pc(),r=!0;const s=c=>(l,u)=>{var d;const f=Qs(e,u,c==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){const{transition:m,transitionEnd:g,...h}=f;l={...l,...h,...g}}return l};function i(c){t=c(e)}function o(c){const{props:l}=e,u=Yd(e.parent)||{},d=[],f=new Set;let m={},g=1/0;for(let x=0;xg&&A,D=!1;const O=Array.isArray(S)?S:[S];let z=O.reduce(s(v),{});_===!1&&(z={});const{prevResolvedValues:R={}}=b,F={...R,...z},$=W=>{k=!0,f.has(W)&&(D=!0,f.delete(W)),b.needsAnimating[W]=!0;const U=e.getValue(W);U&&(U.liveStyle=!1)};for(const W in F){const U=z[W],Q=R[W];if(m.hasOwnProperty(W))continue;let le=!1;Zi(U)&&Zi(Q)?le=!fd(U,Q):le=U!==Q,le?U!=null?$(W):f.add(W):U!==void 0&&f.has(W)?$(W):b.protectedKeys[W]=!0}b.prevProp=S,b.prevResolvedValues=z,b.isActive&&(m={...m,...z}),r&&e.blockInitialAnimation&&(k=!1),k&&(!(C&&E)||D)&&d.push(...O.map(W=>({animation:W,options:{type:v}})))}if(f.size){const x={};f.forEach(v=>{const b=e.getBaseTarget(v),S=e.getValue(v);S&&(S.liveStyle=!0),x[v]=b??null}),d.push({animation:x})}let h=!!d.length;return r&&(l.initial===!1||l.initial===l.animate)&&!e.manuallyAnimateOnMount&&(h=!1),r=!1,h?t(d):Promise.resolve()}function a(c,l){var u;if(n[c].isActive===l)return Promise.resolve();(u=e.variantChildren)===null||u===void 0||u.forEach(f=>{var m;return(m=f.animationState)===null||m===void 0?void 0:m.setActive(c,l)}),n[c].isActive=l;const d=o(c);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:o,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=Pc(),r=!0}}}function wx(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!fd(t,e):!1}function cn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Pc(){return{animate:cn(!0),whileInView:cn(),whileHover:cn(),whileTap:cn(),whileDrag:cn(),whileFocus:cn(),exit:cn()}}class rn{constructor(t){this.isMounted=!1,this.node=t}update(){}}class _x extends rn{constructor(t){super(t),t.animationState||(t.animationState=bx(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Xs(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let Sx=0;class Tx extends rn{constructor(){super(...arguments),this.id=Sx++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const s=this.node.animationState.setActive("exit",!t);n&&!t&&s.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const Ax={animation:{Feature:_x},exit:{Feature:Tx}},at={x:!1,y:!1};function Xd(){return at.x||at.y}function Cx(e){return e==="x"||e==="y"?at[e]?null:(at[e]=!0,()=>{at[e]=!1}):at.x||at.y?null:(at.x=at.y=!0,()=>{at.x=at.y=!1})}const da=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Cr(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Kr(e){return{point:{x:e.pageX,y:e.pageY}}}const Ex=e=>t=>da(t)&&e(t,Kr(t));function mr(e,t,n,r){return Cr(e,t,Ex(n),r)}const kc=(e,t)=>Math.abs(e-t);function Px(e,t){const n=kc(e.x,t.x),r=kc(e.y,t.y);return Math.sqrt(n**2+r**2)}class Jd{constructor(t,n,{transformPagePoint:r,contextWindow:s,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=Ti(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,m=Px(d.offset,{x:0,y:0})>=3;if(!f&&!m)return;const{point:g}=d,{timestamp:h}=De;this.history.push({...g,timestamp:h});const{onStart:x,onMove:v}=this.handlers;f||(x&&x(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=Si(f,this.transformPagePoint),ye.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:m,onSessionEnd:g,resumeAnimation:h}=this.handlers;if(this.dragSnapToOrigin&&h&&h(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=Ti(d.type==="pointercancel"?this.lastMoveEventInfo:Si(f,this.transformPagePoint),this.history);this.startEvent&&m&&m(d,x),g&&g(d,x)},!da(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=s||window;const o=Kr(t),a=Si(o,this.transformPagePoint),{point:c}=a,{timestamp:l}=De;this.history=[{...c,timestamp:l}];const{onSessionStart:u}=n;u&&u(t,Ti(a,this.history)),this.removeListeners=Gr(mr(this.contextWindow,"pointermove",this.handlePointerMove),mr(this.contextWindow,"pointerup",this.handlePointerUp),mr(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Gt(this.updatePoint)}}function Si(e,t){return t?{point:t(e.point)}:e}function Rc(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ti({point:e},t){return{point:e,delta:Rc(e,Qd(t)),offset:Rc(e,kx(t)),velocity:Rx(t,.1)}}function kx(e){return e[0]}function Qd(e){return e[e.length-1]}function Rx(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const s=Qd(e);for(;n>=0&&(r=e[n],!(s.timestamp-r.timestamp>Ot(t)));)n--;if(!r)return{x:0,y:0};const i=Vt(s.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const o={x:(s.x-r.x)/i,y:(s.y-r.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}const ef=1e-4,Nx=1-ef,jx=1+ef,tf=.01,Dx=0-tf,Mx=0+tf;function ze(e){return e.max-e.min}function Ox(e,t,n){return Math.abs(e-t)<=n}function Nc(e,t,n,r=.5){e.origin=r,e.originPoint=xe(t.min,t.max,e.origin),e.scale=ze(n)/ze(t),e.translate=xe(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Nx&&e.scale<=jx||isNaN(e.scale))&&(e.scale=1),(e.translate>=Dx&&e.translate<=Mx||isNaN(e.translate))&&(e.translate=0)}function pr(e,t,n,r){Nc(e.x,t.x,n.x,r?r.originX:void 0),Nc(e.y,t.y,n.y,r?r.originY:void 0)}function jc(e,t,n){e.min=n.min+t.min,e.max=e.min+ze(t)}function Vx(e,t,n){jc(e.x,t.x,n.x),jc(e.y,t.y,n.y)}function Dc(e,t,n){e.min=t.min-n.min,e.max=e.min+ze(t)}function gr(e,t,n){Dc(e.x,t.x,n.x),Dc(e.y,t.y,n.y)}function Lx(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?xe(n,e,r.max):Math.min(e,n)),e}function Mc(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function Ix(e,{top:t,left:n,bottom:r,right:s}){return{x:Mc(e.x,n,s),y:Mc(e.y,t,r)}}function Oc(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=Fn(t.min,t.max-r,e.min):r>s&&(n=Fn(e.min,e.max-s,t.min)),Lt(0,1,n)}function $x(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const no=.35;function zx(e=no){return e===!1?e=0:e===!0&&(e=no),{x:Vc(e,"left","right"),y:Vc(e,"top","bottom")}}function Vc(e,t,n){return{min:Lc(e,t),max:Lc(e,n)}}function Lc(e,t){return typeof e=="number"?e:e[t]||0}const Ic=()=>({translate:0,scale:1,origin:0,originPoint:0}),Rn=()=>({x:Ic(),y:Ic()}),Fc=()=>({min:0,max:0}),Te=()=>({x:Fc(),y:Fc()});function st(e){return[e("x"),e("y")]}function nf({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Ux({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Wx(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Ai(e){return e===void 0||e===1}function ro({scale:e,scaleX:t,scaleY:n}){return!Ai(e)||!Ai(t)||!Ai(n)}function ln(e){return ro(e)||rf(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function rf(e){return Bc(e.x)||Bc(e.y)}function Bc(e){return e&&e!=="0%"}function Rs(e,t,n){const r=e-n,s=t*r;return n+s}function $c(e,t,n,r,s){return s!==void 0&&(e=Rs(e,s,r)),Rs(e,n,r)+t}function so(e,t=0,n=1,r,s){e.min=$c(e.min,t,n,r,s),e.max=$c(e.max,t,n,r,s)}function sf(e,{x:t,y:n}){so(e.x,t.translate,t.scale,t.originPoint),so(e.y,n.translate,n.scale,n.originPoint)}const zc=.999999999999,Uc=1.0000000000001;function Zx(e,t,n,r=!1){const s=n.length;if(!s)return;t.x=t.y=1;let i,o;for(let a=0;azc&&(t.x=1),t.yzc&&(t.y=1)}function Nn(e,t){e.min=e.min+t,e.max=e.max+t}function Wc(e,t,n,r,s=.5){const i=xe(e.min,e.max,s);so(e,t,n,i,r)}function jn(e,t){Wc(e.x,t.x,t.scaleX,t.scale,t.originX),Wc(e.y,t.y,t.scaleY,t.scale,t.originY)}function of(e,t){return nf(Wx(e.getBoundingClientRect(),t))}function Hx(e,t,n){const r=of(e,n),{scroll:s}=t;return s&&(Nn(r.x,s.offset.x),Nn(r.y,s.offset.y)),r}const af=({current:e})=>e?e.ownerDocument.defaultView:null,Gx=new WeakMap;class Kx{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Te(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const s=u=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Kr(u).point)},i=(u,d)=>{const{drag:f,dragPropagation:m,onDragStart:g}=this.getProps();if(f&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Cx(f),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),st(x=>{let v=this.getAxisMotionValue(x).get()||0;if(_t.test(v)){const{projection:b}=this.visualElement;if(b&&b.layout){const S=b.layout.layoutBox[x];S&&(v=ze(S)*(parseFloat(v)/100))}}this.originPoint[x]=v}),g&&ye.postRender(()=>g(u,d)),Hi(this.visualElement,"transform");const{animationState:h}=this.visualElement;h&&h.setActive("whileDrag",!0)},o=(u,d)=>{const{dragPropagation:f,dragDirectionLock:m,onDirectionLock:g,onDrag:h}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:x}=d;if(m&&this.currentDirection===null){this.currentDirection=qx(x),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",d.point,x),this.updateAxis("y",d.point,x),this.visualElement.render(),h&&h(u,d)},a=(u,d)=>this.stop(u,d),c=()=>st(u=>{var d;return this.getAnimationState(u)==="paused"&&((d=this.getAxisMotionValue(u).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:l}=this.getProps();this.panSession=new Jd(t,{onSessionStart:s,onStart:i,onMove:o,onSessionEnd:a,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:af(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:s}=n;this.startAnimation(s);const{onDragEnd:i}=this.getProps();i&&ye.postRender(()=>i(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:s}=this.getProps();if(!r||!ds(t,s,this.currentDirection))return;const i=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=Lx(o,this.constraints[t],this.elastic[t])),i.set(o)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&Pn(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&s?this.constraints=Ix(s.layoutBox,n):this.constraints=!1,this.elastic=zx(r),i!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&st(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=$x(s.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Pn(t))return!1;const r=t.current,{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const i=Hx(r,s.root,this.visualElement.getTransformPagePoint());let o=Fx(s.layout.layoutBox,i);if(n){const a=n(Ux(o));this.hasMutatedConstraints=!!a,a&&(o=nf(a))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:s,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),c=this.constraints||{},l=st(u=>{if(!ds(u,n,this.currentDirection))return;let d=c[u]||{};o&&(d={min:0,max:0});const f=s?200:1e6,m=s?40:1e7,g={type:"inertia",velocity:r?t[u]:0,bounceStiffness:f,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(u,g)});return Promise.all(l).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Hi(this.visualElement,t),r.start(ua(t,r,0,n,this.visualElement,!1))}stopAnimation(){st(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){st(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),s=r[n];return s||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){st(n=>{const{drag:r}=this.getProps();if(!ds(n,r,this.currentDirection))return;const{projection:s}=this.visualElement,i=this.getAxisMotionValue(n);if(s&&s.layout){const{min:o,max:a}=s.layout.layoutBox[n];i.set(t[n]-xe(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Pn(n)||!r||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};st(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const c=a.get();s[o]=Bx({min:c,max:c},this.constraints[o])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),st(o=>{if(!ds(o,t,null))return;const a=this.getAxisMotionValue(o),{min:c,max:l}=this.constraints[o];a.set(xe(c,l,s[o]))})}addListeners(){if(!this.visualElement.current)return;Gx.set(this.visualElement,this);const t=this.visualElement.current,n=mr(t,"pointerdown",c=>{const{drag:l,dragListener:u=!0}=this.getProps();l&&u&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();Pn(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,i=s.addEventListener("measure",r);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),ye.read(r);const o=Cr(window,"resize",()=>this.scalePositionWithinConstraints()),a=s.addEventListener("didUpdate",({delta:c,hasLayoutChanged:l})=>{this.isDragging&&l&&(st(u=>{const d=this.getAxisMotionValue(u);d&&(this.originPoint[u]+=c[u].translate,d.set(d.get()+c[u].translate))}),this.visualElement.render())});return()=>{o(),n(),i(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:s=!1,dragConstraints:i=!1,dragElastic:o=no,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:s,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function ds(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function qx(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Yx extends rn{constructor(t){super(t),this.removeGroupControls=Je,this.removeListeners=Je,this.controls=new Kx(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Je}unmount(){this.removeGroupControls(),this.removeListeners()}}const Zc=e=>(t,n)=>{e&&ye.postRender(()=>e(t,n))};class Xx extends rn{constructor(){super(...arguments),this.removePointerDownListener=Je}onPointerDown(t){this.session=new Jd(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:af(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:s}=this.node.getProps();return{onSessionStart:Zc(t),onStart:Zc(n),onMove:r,onEnd:(i,o)=>{delete this.session,s&&ye.postRender(()=>s(i,o))}}}mount(){this.removePointerDownListener=mr(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const bs={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Hc(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const sr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(q.test(e))e=parseFloat(e);else return e;const n=Hc(e,t.target.x),r=Hc(e,t.target.y);return`${n}% ${r}%`}},Jx={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,s=Kt.parse(e);if(s.length>5)return r;const i=Kt.createTransformer(e),o=typeof s[0]!="number"?1:0,a=n.x.scale*t.x,c=n.y.scale*t.y;s[0+o]/=a,s[1+o]/=c;const l=xe(a,c,.5);return typeof s[2+o]=="number"&&(s[2+o]/=l),typeof s[3+o]=="number"&&(s[3+o]/=l),i(s)}};class Qx extends y.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:s}=this.props,{projection:i}=t;Cy(eb),i&&(n.group&&n.group.add(i),r&&r.register&&s&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),bs.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:s,isPresent:i}=this.props,o=r.projection;return o&&(o.isPresent=i,s||t.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?o.promote():o.relegate()||ye.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Io.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:s}=t;s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),r&&r.deregister&&r.deregister(s))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function cf(e){const[t,n]=Gu(),r=y.useContext(No);return p.jsx(Qx,{...e,layoutGroup:r,switchLayoutGroup:y.useContext(ed),isPresent:t,safeToRemove:n})}const eb={borderRadius:{...sr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:sr,borderTopRightRadius:sr,borderBottomLeftRadius:sr,borderBottomRightRadius:sr,boxShadow:Jx};function tb(e,t,n){const r=Le(e)?e:Tr(e);return r.start(ua("",r,t,n)),r.animation}function nb(e){return e instanceof SVGElement&&e.tagName!=="svg"}const rb=(e,t)=>e.depth-t.depth;class sb{constructor(){this.children=[],this.isDirty=!1}add(t){Yo(this.children,t),this.isDirty=!0}remove(t){Xo(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(rb),this.isDirty=!1,this.children.forEach(t)}}function ib(e,t){const n=St.now(),r=({timestamp:s})=>{const i=s-n;i>=t&&(Gt(r),e(i-t))};return ye.read(r,!0),()=>Gt(r)}const lf=["TopLeft","TopRight","BottomLeft","BottomRight"],ob=lf.length,Gc=e=>typeof e=="string"?parseFloat(e):e,Kc=e=>typeof e=="number"||q.test(e);function ab(e,t,n,r,s,i){s?(e.opacity=xe(0,n.opacity!==void 0?n.opacity:1,cb(r)),e.opacityExit=xe(t.opacity!==void 0?t.opacity:1,0,lb(r))):i&&(e.opacity=xe(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;ort?1:n(Fn(e,t,r))}function Yc(e,t){e.min=t.min,e.max=t.max}function rt(e,t){Yc(e.x,t.x),Yc(e.y,t.y)}function Xc(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Jc(e,t,n,r,s){return e-=t,e=Rs(e,1/n,r),s!==void 0&&(e=Rs(e,1/s,r)),e}function ub(e,t=0,n=1,r=.5,s,i=e,o=e){if(_t.test(t)&&(t=parseFloat(t),t=xe(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=xe(i.min,i.max,r);e===i&&(a-=t),e.min=Jc(e.min,t,n,a,s),e.max=Jc(e.max,t,n,a,s)}function Qc(e,t,[n,r,s],i,o){ub(e,t[n],t[r],t[s],t.scale,i,o)}const db=["x","scaleX","originX"],fb=["y","scaleY","originY"];function el(e,t,n,r){Qc(e.x,t,db,n?n.x:void 0,r?r.x:void 0),Qc(e.y,t,fb,n?n.y:void 0,r?r.y:void 0)}function tl(e){return e.translate===0&&e.scale===1}function df(e){return tl(e.x)&&tl(e.y)}function nl(e,t){return e.min===t.min&&e.max===t.max}function hb(e,t){return nl(e.x,t.x)&&nl(e.y,t.y)}function rl(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function ff(e,t){return rl(e.x,t.x)&&rl(e.y,t.y)}function sl(e){return ze(e.x)/ze(e.y)}function il(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class mb{constructor(){this.members=[]}add(t){Yo(this.members,t),t.scheduleRender()}remove(t){if(Xo(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(s=>t===s);if(n===0)return!1;let r;for(let s=n;s>=0;s--){const i=this.members[s];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:s}=t.options;s===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function pb(e,t,n){let r="";const s=e.x.translate/t.x,i=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((s||i||o)&&(r=`translate3d(${s}px, ${i}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:l,rotate:u,rotateX:d,rotateY:f,skewX:m,skewY:g}=n;l&&(r=`perspective(${l}px) ${r}`),u&&(r+=`rotate(${u}deg) `),d&&(r+=`rotateX(${d}deg) `),f&&(r+=`rotateY(${f}deg) `),m&&(r+=`skewX(${m}deg) `),g&&(r+=`skewY(${g}deg) `)}const a=e.x.scale*t.x,c=e.y.scale*t.y;return(a!==1||c!==1)&&(r+=`scale(${a}, ${c})`),r||"none"}const un={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},cr=typeof window<"u"&&window.MotionDebug!==void 0,Ci=["","X","Y","Z"],gb={visibility:"hidden"},ol=1e3;let yb=0;function Ei(e,t,n,r){const{latestValues:s}=t;s[e]&&(n[e]=s[e],t.setStaticValue(e,0),r&&(r[e]=0))}function hf(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=pd(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",ye,!(s||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&hf(r)}function mf({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(o={},a=t==null?void 0:t()){this.id=yb++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,cr&&(un.totalNodes=un.resolvedTargetDeltas=un.recalculatedProjection=0),this.nodes.forEach(bb),this.nodes.forEach(Ab),this.nodes.forEach(Cb),this.nodes.forEach(wb),cr&&window.MotionDebug.record(un)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let c=0;cthis.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=ib(f,250),bs.hasAnimatedSinceResize&&(bs.hasAnimatedSinceResize=!1,this.nodes.forEach(cl))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&u&&(c||l)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeLayoutChanged:m,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const h=this.options.transition||u.getDefaultTransition()||Nb,{onLayoutAnimationStart:x,onLayoutAnimationComplete:v}=u.getProps(),b=!this.targetLayout||!ff(this.targetLayout,g),S=!f&&m;if(this.options.layoutRoot||this.resumeFrom||S||f&&(b||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,S);const A={...qo(h,"layout"),onPlay:x,onComplete:v};(u.shouldReduceMotion||this.options.layoutRoot)&&(A.delay=0,A.type=!1),this.startAnimation(A)}else f||cl(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Gt(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Eb),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&hf(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ze(this.snapshot.measuredBox.x)&&!ze(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c{const _=A/1e3;ll(d.x,o.x,_),ll(d.y,o.y,_),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(gr(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),kb(this.relativeTarget,this.relativeTargetOrigin,f,_),S&&hb(this.relativeTarget,S)&&(this.isProjectionDirty=!1),S||(S=Te()),rt(S,this.relativeTarget)),h&&(this.animationValues=u,ab(u,l,this.latestValues,_,b,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=_},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Gt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ye.update(()=>{bs.hasAnimatedSinceResize=!0,this.currentAnimation=tb(0,ol,{...o,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(ol),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:c,layout:l,latestValues:u}=o;if(!(!a||!c||!l)){if(this!==o&&this.layout&&l&&pf(this.options.animationType,this.layout.layoutBox,l.layoutBox)){c=this.target||Te();const d=ze(this.layout.layoutBox.x);c.x.min=o.target.x.min,c.x.max=c.x.min+d;const f=ze(this.layout.layoutBox.y);c.y.min=o.target.y.min,c.y.max=c.y.min+f}rt(a,c),jn(a,u),pr(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new mb),this.sharedNodes.get(o).add(a);const l=a.options.initialPromotionConfig;a.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:a}=this.options;return a?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:a}=this.options;return a?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:c}={}){const l=this.getStack();l&&l.promote(this,c),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:c}=o;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(a=!0),!a)return;const l={};c.z&&Ei("z",o,l,this.animationValues);for(let u=0;u{var a;return(a=o.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(al),this.root.sharedNodes.clear()}}}function vb(e){e.updateLayout()}function xb(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:s}=e.layout,{animationType:i}=e.options,o=n.source!==e.layout.source;i==="size"?st(d=>{const f=o?n.measuredBox[d]:n.layoutBox[d],m=ze(f);f.min=r[d].min,f.max=f.min+m}):pf(i,n.layoutBox,r)&&st(d=>{const f=o?n.measuredBox[d]:n.layoutBox[d],m=ze(r[d]);f.max=f.min+m,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+m)});const a=Rn();pr(a,r,n.layoutBox);const c=Rn();o?pr(c,e.applyTransform(s,!0),n.measuredBox):pr(c,r,n.layoutBox);const l=!df(a);let u=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:m}=d;if(f&&m){const g=Te();gr(g,n.layoutBox,f.layoutBox);const h=Te();gr(h,r,m.layoutBox),ff(g,h)||(u=!0),d.options.layoutRoot&&(e.relativeTarget=h,e.relativeTargetOrigin=g,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:c,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function bb(e){cr&&un.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function wb(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function _b(e){e.clearSnapshot()}function al(e){e.clearMeasurements()}function Sb(e){e.isLayoutDirty=!1}function Tb(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function cl(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Ab(e){e.resolveTargetDelta()}function Cb(e){e.calcProjection()}function Eb(e){e.resetSkewAndRotation()}function Pb(e){e.removeLeadSnapshot()}function ll(e,t,n){e.translate=xe(t.translate,0,n),e.scale=xe(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function ul(e,t,n,r){e.min=xe(t.min,n.min,r),e.max=xe(t.max,n.max,r)}function kb(e,t,n,r){ul(e.x,t.x,n.x,r),ul(e.y,t.y,n.y,r)}function Rb(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Nb={duration:.45,ease:[.4,0,.1,1]},dl=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),fl=dl("applewebkit/")&&!dl("chrome/")?Math.round:Je;function hl(e){e.min=fl(e.min),e.max=fl(e.max)}function jb(e){hl(e.x),hl(e.y)}function pf(e,t,n){return e==="position"||e==="preserve-aspect"&&!Ox(sl(t),sl(n),.2)}function Db(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const Mb=mf({attachResizeListener:(e,t)=>Cr(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Pi={current:void 0},gf=mf({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Pi.current){const e=new Mb({});e.mount(window),e.setOptions({layoutScroll:!0}),Pi.current=e}return Pi.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Ob={pan:{Feature:Xx},drag:{Feature:Yx,ProjectionNode:gf,MeasureLayout:cf}};function Vb(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let s=document;const i=(r=void 0)!==null&&r!==void 0?r:s.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}function yf(e,t){const n=Vb(e),r=new AbortController,s={passive:!0,...t,signal:r.signal};return[n,s,()=>r.abort()]}function ml(e){return!(e.pointerType==="touch"||Xd())}function Lb(e,t,n={}){const[r,s,i]=yf(e,n),o=a=>{if(!ml(a))return;const{target:c}=a,l=t(c,a);if(typeof l!="function"||!c)return;const u=d=>{ml(d)&&(l(d),c.removeEventListener("pointerleave",u))};c.addEventListener("pointerleave",u,s)};return r.forEach(a=>{a.addEventListener("pointerenter",o,s)}),i}function pl(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const s="onHover"+n,i=r[s];i&&ye.postRender(()=>i(t,Kr(t)))}class Ib extends rn{mount(){const{current:t}=this.node;t&&(this.unmount=Lb(t,(n,r)=>(pl(this.node,r,"Start"),s=>pl(this.node,s,"End"))))}unmount(){}}class Fb extends rn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Gr(Cr(this.node.current,"focus",()=>this.onFocus()),Cr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const vf=(e,t)=>t?e===t?!0:vf(e,t.parentElement):!1,Bb=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function $b(e){return Bb.has(e.tagName)||e.tabIndex!==-1}const lr=new WeakSet;function gl(e){return t=>{t.key==="Enter"&&e(t)}}function ki(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const zb=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=gl(()=>{if(lr.has(n))return;ki(n,"down");const s=gl(()=>{ki(n,"up")}),i=()=>ki(n,"cancel");n.addEventListener("keyup",s,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function yl(e){return da(e)&&!Xd()}function Ub(e,t,n={}){const[r,s,i]=yf(e,n),o=a=>{const c=a.currentTarget;if(!yl(a)||lr.has(c))return;lr.add(c);const l=t(c,a),u=(m,g)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),!(!yl(m)||!lr.has(c))&&(lr.delete(c),typeof l=="function"&&l(m,{success:g}))},d=m=>{u(m,n.useGlobalTarget||vf(c,m.target))},f=m=>{u(m,!1)};window.addEventListener("pointerup",d,s),window.addEventListener("pointercancel",f,s)};return r.forEach(a=>{!$b(a)&&a.getAttribute("tabindex")===null&&(a.tabIndex=0),(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,s),a.addEventListener("focus",l=>zb(l,s),s)}),i}function vl(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const s="onTap"+(n==="End"?"":n),i=r[s];i&&ye.postRender(()=>i(t,Kr(t)))}class Wb extends rn{mount(){const{current:t}=this.node;t&&(this.unmount=Ub(t,(n,r)=>(vl(this.node,r,"Start"),(s,{success:i})=>vl(this.node,s,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const io=new WeakMap,Ri=new WeakMap,Zb=e=>{const t=io.get(e.target);t&&t(e)},Hb=e=>{e.forEach(Zb)};function Gb({root:e,...t}){const n=e||document;Ri.has(n)||Ri.set(n,{});const r=Ri.get(n),s=JSON.stringify(t);return r[s]||(r[s]=new IntersectionObserver(Hb,{root:e,...t})),r[s]}function Kb(e,t,n){const r=Gb(t);return io.set(e,n),r.observe(e),()=>{io.delete(e),r.unobserve(e)}}const qb={some:0,all:1};class Yb extends rn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:s="some",once:i}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof s=="number"?s:qb[s]},a=c=>{const{isIntersecting:l}=c;if(this.isInView===l||(this.isInView=l,i&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:u,onViewportLeave:d}=this.node.getProps(),f=l?u:d;f&&f(c)};return Kb(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Xb(t,n))&&this.startObserver()}unmount(){}}function Xb({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Jb={inView:{Feature:Yb},tap:{Feature:Wb},focus:{Feature:Fb},hover:{Feature:Ib}},Qb={layout:{ProjectionNode:gf,MeasureLayout:cf}},oo={current:null},xf={current:!1};function ew(){if(xf.current=!0,!!Mo)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>oo.current=e.matches;e.addListener(t),t()}else oo.current=!1}const tw=[...Fd,Ve,Kt],nw=e=>tw.find(Id(e)),xl=new WeakMap;function rw(e,t,n){for(const r in t){const s=t[r],i=n[r];if(Le(s))e.addValue(r,s);else if(Le(i))e.addValue(r,Tr(s,{owner:e}));else if(i!==s)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(s):o.hasAnimated||o.set(s)}else{const o=e.getStaticValue(r);e.addValue(r,Tr(o!==void 0?o:s,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const bl=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class sw{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:s,blockInitialAnimation:i,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=aa,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const m=St.now();this.renderScheduledAtthis.bindToMotionValue(r,n)),xf.current||ew(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:oo.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){xl.delete(this.current),this.projection&&this.projection.unmount(),Gt(this.notifyUpdate),Gt(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=_n.has(t),s=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&ye.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{s(),i(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in In){const n=In[t];if(!n)continue;const{isEnabled:r,Feature:s}=n;if(!this.features[t]&&s&&r(this.props)&&(this.features[t]=new s(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Te()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Tr(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let s=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return s!=null&&(typeof s=="string"&&(Vd(s)||Ed(s))?s=parseFloat(s):!nw(s)&&Kt.test(n)&&(s=Dd(t,n)),this.setBaseTarget(t,Le(s)?s.get():s)),Le(s)?s.get():s}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let s;if(typeof r=="string"||typeof r=="object"){const o=Bo(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(s=o[t])}if(r&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Le(i)?i:this.initialValues[t]!==void 0&&s===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Jo),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class bf extends sw{constructor(){super(...arguments),this.KeyframeResolver=Bd}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Le(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function iw(e){return window.getComputedStyle(e)}class ow extends bf{constructor(){super(...arguments),this.type="html",this.renderInstance=od}readValueFromInstance(t,n){if(_n.has(n)){const r=oa(n);return r&&r.default||0}else{const r=iw(t),s=($o(n)?r.getPropertyValue(n):r[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return of(t,n)}build(t,n,r){Wo(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Ko(t,n,r)}}class aw extends bf{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Te}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(_n.has(n)){const r=oa(n);return r&&r.default||0}return n=ad.has(n)?n:Lo(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return ud(t,n,r)}build(t,n,r){Zo(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,s){cd(t,n,r,s)}mount(t){this.isSVGTag=Go(t.tagName),super.mount(t)}}const cw=(e,t)=>Fo(e)?new aw(t):new ow(t,{allowProjection:e!==y.Fragment}),lw=Oy({...Ax,...Jb,...Ob,...Qb},cw),ws=Yg(lw);var Ni,wl;function uw(){if(wl)return Ni;wl=1;var e="Expected a function",t=NaN,n="[object Symbol]",r=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,a=parseInt,c=typeof ns=="object"&&ns&&ns.Object===Object&&ns,l=typeof self=="object"&&self&&self.Object===Object&&self,u=c||l||Function("return this")(),d=Object.prototype,f=d.toString,m=Math.max,g=Math.min,h=function(){return u.Date.now()};function x(_,C,E){var k,D,O,z,R,F,$=0,J=!1,K=!1,W=!0;if(typeof _!="function")throw new TypeError(e);C=A(C)||0,v(E)&&(J=!!E.leading,K="maxWait"in E,O=K?m(A(E.maxWait)||0,C):O,W="trailing"in E?!!E.trailing:W);function U(ie){var de=k,_e=D;return k=D=void 0,$=ie,z=_.apply(_e,de),z}function Q(ie){return $=ie,R=setTimeout(Me,C),J?U(ie):z}function le(ie){var de=ie-F,_e=ie-$,Ee=C-de;return K?g(Ee,O-_e):Ee}function ue(ie){var de=ie-F,_e=ie-$;return F===void 0||de>=C||de<0||K&&_e>=O}function Me(){var ie=h();if(ue(ie))return Ke(ie);R=setTimeout(Me,le(ie))}function Ke(ie){return R=void 0,W&&k?U(ie):(k=D=void 0,z)}function Oe(){R!==void 0&&clearTimeout(R),$=0,k=F=D=R=void 0}function ot(){return R===void 0?z:Ke(h())}function Be(){var ie=h(),de=ue(ie);if(k=arguments,D=this,F=ie,de){if(R===void 0)return Q(F);if(K)return R=setTimeout(Me,C),U(F)}return R===void 0&&(R=setTimeout(Me,C)),z}return Be.cancel=Oe,Be.flush=ot,Be}function v(_){var C=typeof _;return!!_&&(C=="object"||C=="function")}function b(_){return!!_&&typeof _=="object"}function S(_){return typeof _=="symbol"||b(_)&&f.call(_)==n}function A(_){if(typeof _=="number")return _;if(S(_))return t;if(v(_)){var C=typeof _.valueOf=="function"?_.valueOf():_;_=v(C)?C+"":C}if(typeof _!="string")return _===0?_:+_;_=_.replace(r,"");var E=i.test(_);return E||o.test(_)?a(_.slice(2),E?2:8):s.test(_)?t:+_}return Ni=x,Ni}uw();var dw=typeof window<"u"?y.useLayoutEffect:y.useEffect,fw=typeof window>"u";function ao(e,{defaultValue:t=!1,initializeWithValue:n=!0}={}){const r=a=>fw?t:window.matchMedia(a).matches,[s,i]=y.useState(()=>n?r(e):t);function o(){i(r(e))}return dw(()=>{const a=window.matchMedia(e);return o(),a.addListener?a.addListener(o):a.addEventListener("change",o),()=>{a.removeListener?a.removeListener(o):a.removeEventListener("change",o)}},[e]),s}const fT=({className:e,stage:t})=>{const n=ao("(min-width: 768px");return p.jsx("div",{className:e,children:p.jsx("div",{className:"max-w-[808px] md:mx-auto my-20 mx-5",children:p.jsxs("div",{className:"relative h-14 w-full",children:[p.jsx("div",{className:ee("h-2 absolute bg-[#D0D3D8] rounded-[2px] w-full top-0 left-0")}),p.jsx(ws.div,{initial:{width:0},animate:t===2?{width:"20%"}:t===3&&{width:"75%"},transition:{delay:.5,duration:.5},className:ee("h-2 absolute bg-primary rounded-[2px] top-0 left-0 z-[5]",{"w-0 bg-opacity-0":t===1,"w-[20%]":t===2,"w-[75%]":t===3})}),p.jsx(ws.div,{initial:{width:n?"50%":"35%"},animate:t===2?{width:"75%"}:t===3&&{width:"100%"},className:ee("bg-reverse_primary w-1/2 absolute top-0 left-0 rounded-[2px] z-[3] h-2")}),p.jsx(ws.div,{className:ee("progress-circle absolute transition-all duration-500 -top-6 flex items-center justify-center",{"bg-reverse_primary md:left-1/2 left-1/3":t===1,"bg-primary left-[20%] !text-on_primary":t===2||t===3}),children:"1"}),p.jsx("div",{className:ee("progress-circle absolute -top-6 right-[17%] transition-all -translate-x-1/2 flex items-center justify-center",{"bg-[#D0D3D8]":t===1,"bg-reverse_primary":t===2,"bg-primary !text-on_primary":t===3}),children:"2"}),p.jsx("div",{className:ee("progress-circle absolute -top-6 right-0 transition-all duration-500 flex items-center justify-center",{"bg-[#D0D3D8]":t===1||t===2,"bg-reverse_primary":t===3}),children:"3"})]})})})};var qr=e=>e.type==="checkbox",fn=e=>e instanceof Date,$e=e=>e==null;const wf=e=>typeof e=="object";var Ce=e=>!$e(e)&&!Array.isArray(e)&&wf(e)&&!fn(e),_f=e=>Ce(e)&&e.target?qr(e.target)?e.target.checked:e.target.value:e,hw=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Sf=(e,t)=>e.has(hw(t)),mw=e=>{const t=e.constructor&&e.constructor.prototype;return Ce(t)&&t.hasOwnProperty("isPrototypeOf")},fa=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Ze(e){let t;const n=Array.isArray(e),r=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(fa&&(e instanceof Blob||r))&&(n||Ce(e)))if(t=n?[]:{},!n&&!mw(e))t=e;else for(const s in e)e.hasOwnProperty(s)&&(t[s]=Ze(e[s]));else return e;return t}var ti=e=>Array.isArray(e)?e.filter(Boolean):[],Ae=e=>e===void 0,V=(e,t,n)=>{if(!t||!Ce(e))return n;const r=ti(t.split(/[,[\].]+?/)).reduce((s,i)=>$e(s)?s:s[i],e);return Ae(r)||r===e?Ae(e[t])?n:e[t]:r},it=e=>typeof e=="boolean",ha=e=>/^\w*$/.test(e),Tf=e=>ti(e.replace(/["|']|\]/g,"").split(/\.|\[/)),he=(e,t,n)=>{let r=-1;const s=ha(t)?[t]:Tf(t),i=s.length,o=i-1;for(;++rfe.useContext(Af),pw=e=>{const{children:t,...n}=e;return fe.createElement(Af.Provider,{value:n},t)};var Cf=(e,t,n,r=!0)=>{const s={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(s,i,{get:()=>{const o=i;return t._proxyFormState[o]!==ct.all&&(t._proxyFormState[o]=!r||ct.all),n&&(n[o]=!0),e[o]}});return s},He=e=>Ce(e)&&!Object.keys(e).length,Ef=(e,t,n,r)=>{n(e);const{name:s,...i}=e;return He(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(o=>t[o]===(!r||ct.all))},yr=e=>Array.isArray(e)?e:[e],Pf=(e,t,n)=>!e||!t||e===t||yr(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function ma(e){const t=fe.useRef(e);t.current=e,fe.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function gw(e){const t=ni(),{control:n=t.control,disabled:r,name:s,exact:i}=e,[o,a]=fe.useState(n._formState),c=fe.useRef(!0),l=fe.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),u=fe.useRef(s);return u.current=s,ma({disabled:r,next:d=>c.current&&Pf(u.current,d.name,i)&&Ef(d,l.current,n._updateFormState)&&a({...n._formState,...d}),subject:n._subjects.state}),fe.useEffect(()=>(c.current=!0,l.current.isValid&&n._updateValid(!0),()=>{c.current=!1}),[n]),fe.useMemo(()=>Cf(o,n,l.current,!1),[o,n])}var wt=e=>typeof e=="string",kf=(e,t,n,r,s)=>wt(e)?(r&&t.watch.add(e),V(n,e,s)):Array.isArray(e)?e.map(i=>(r&&t.watch.add(i),V(n,i))):(r&&(t.watchAll=!0),n);function yw(e){const t=ni(),{control:n=t.control,name:r,defaultValue:s,disabled:i,exact:o}=e,a=fe.useRef(r);a.current=r,ma({disabled:i,subject:n._subjects.values,next:u=>{Pf(a.current,u.name,o)&&l(Ze(kf(a.current,n._names,u.values||n._formValues,!1,s)))}});const[c,l]=fe.useState(n._getWatch(r,s));return fe.useEffect(()=>n._removeUnmounted()),c}function vw(e){const t=ni(),{name:n,disabled:r,control:s=t.control,shouldUnregister:i}=e,o=Sf(s._names.array,n),a=yw({control:s,name:n,defaultValue:V(s._formValues,n,V(s._defaultValues,n,e.defaultValue)),exact:!0}),c=gw({control:s,name:n,exact:!0}),l=fe.useRef(s.register(n,{...e.rules,value:a,...it(e.disabled)?{disabled:e.disabled}:{}})),u=fe.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!V(c.errors,n)},isDirty:{enumerable:!0,get:()=>!!V(c.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!V(c.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!V(c.validatingFields,n)},error:{enumerable:!0,get:()=>V(c.errors,n)}}),[c,n]),d=fe.useMemo(()=>({name:n,value:a,...it(r)||c.disabled?{disabled:c.disabled||r}:{},onChange:f=>l.current.onChange({target:{value:_f(f),name:n},type:Ns.CHANGE}),onBlur:()=>l.current.onBlur({target:{value:V(s._formValues,n),name:n},type:Ns.BLUR}),ref:f=>{const m=V(s._fields,n);m&&f&&(m._f.ref={focus:()=>f.focus(),select:()=>f.select(),setCustomValidity:g=>f.setCustomValidity(g),reportValidity:()=>f.reportValidity()})}}),[n,s._formValues,r,c.disabled,a,s._fields]);return fe.useEffect(()=>{const f=s._options.shouldUnregister||i,m=(g,h)=>{const x=V(s._fields,g);x&&x._f&&(x._f.mount=h)};if(m(n,!0),f){const g=Ze(V(s._options.defaultValues,n));he(s._defaultValues,n,g),Ae(V(s._formValues,n))&&he(s._formValues,n,g)}return!o&&s.register(n),()=>{(o?f&&!s._state.action:f)?s.unregister(n):m(n,!1)}},[n,s,o,i]),fe.useEffect(()=>{s._updateDisabledField({disabled:r,fields:s._fields,name:n})},[r,n,s]),fe.useMemo(()=>({field:d,formState:c,fieldState:u}),[d,c,u])}const xw=e=>e.render(vw(e));var Rf=(e,t,n,r,s)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:s||!0}}:{},_l=e=>({isOnSubmit:!e||e===ct.onSubmit,isOnBlur:e===ct.onBlur,isOnChange:e===ct.onChange,isOnAll:e===ct.all,isOnTouch:e===ct.onTouched}),Sl=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const vr=(e,t,n,r)=>{for(const s of n||Object.keys(e)){const i=V(e,s);if(i){const{_f:o,...a}=i;if(o){if(o.refs&&o.refs[0]&&t(o.refs[0],s)&&!r)return!0;if(o.ref&&t(o.ref,o.name)&&!r)return!0;if(vr(a,t))break}else if(Ce(a)&&vr(a,t))break}}};var bw=(e,t,n)=>{const r=yr(V(e,n));return he(r,"root",t[n]),he(e,n,r),e},pa=e=>e.type==="file",bt=e=>typeof e=="function",js=e=>{if(!fa)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},_s=e=>wt(e),ga=e=>e.type==="radio",Ds=e=>e instanceof RegExp;const Tl={value:!1,isValid:!1},Al={value:!0,isValid:!0};var Nf=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Ae(e[0].attributes.value)?Ae(e[0].value)||e[0].value===""?Al:{value:e[0].value,isValid:!0}:Al:Tl}return Tl};const Cl={isValid:!1,value:null};var jf=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,Cl):Cl;function El(e,t,n="validate"){if(_s(e)||Array.isArray(e)&&e.every(_s)||it(e)&&!e)return{type:n,message:_s(e)?e:"",ref:t}}var Cn=e=>Ce(e)&&!Ds(e)?e:{value:e,message:""},Pl=async(e,t,n,r,s,i)=>{const{ref:o,refs:a,required:c,maxLength:l,minLength:u,min:d,max:f,pattern:m,validate:g,name:h,valueAsNumber:x,mount:v}=e._f,b=V(n,h);if(!v||t.has(h))return{};const S=a?a[0]:o,A=R=>{s&&S.reportValidity&&(S.setCustomValidity(it(R)?"":R||""),S.reportValidity())},_={},C=ga(o),E=qr(o),k=C||E,D=(x||pa(o))&&Ae(o.value)&&Ae(b)||js(o)&&o.value===""||b===""||Array.isArray(b)&&!b.length,O=Rf.bind(null,h,r,_),z=(R,F,$,J=Nt.maxLength,K=Nt.minLength)=>{const W=R?F:$;_[h]={type:R?J:K,message:W,ref:o,...O(R?J:K,W)}};if(i?!Array.isArray(b)||!b.length:c&&(!k&&(D||$e(b))||it(b)&&!b||E&&!Nf(a).isValid||C&&!jf(a).isValid)){const{value:R,message:F}=_s(c)?{value:!!c,message:c}:Cn(c);if(R&&(_[h]={type:Nt.required,message:F,ref:S,...O(Nt.required,F)},!r))return A(F),_}if(!D&&(!$e(d)||!$e(f))){let R,F;const $=Cn(f),J=Cn(d);if(!$e(b)&&!isNaN(b)){const K=o.valueAsNumber||b&&+b;$e($.value)||(R=K>$.value),$e(J.value)||(F=Knew Date(new Date().toDateString()+" "+le),U=o.type=="time",Q=o.type=="week";wt($.value)&&b&&(R=U?W(b)>W($.value):Q?b>$.value:K>new Date($.value)),wt(J.value)&&b&&(F=U?W(b)+R.value,J=!$e(F.value)&&b.length<+F.value;if(($||J)&&(z($,R.message,F.message),!r))return A(_[h].message),_}if(m&&!D&&wt(b)){const{value:R,message:F}=Cn(m);if(Ds(R)&&!b.match(R)&&(_[h]={type:Nt.pattern,message:F,ref:o,...O(Nt.pattern,F)},!r))return A(F),_}if(g){if(bt(g)){const R=await g(b,n),F=El(R,S);if(F&&(_[h]={...F,...O(Nt.validate,F.message)},!r))return A(F.message),_}else if(Ce(g)){let R={};for(const F in g){if(!He(R)&&!r)break;const $=El(await g[F](b,n),S,F);$&&(R={...$,...O(F,$.message)},A($.message),r&&(_[h]=R))}if(!He(R)&&(_[h]={ref:S,...R},!r))return _}}return A(!0),_};function ww(e,t){const n=t.slice(0,-1).length;let r=0;for(;r{let e=[];return{get observers(){return e},next:s=>{for(const i of e)i.next&&i.next(s)},subscribe:s=>(e.push(s),{unsubscribe:()=>{e=e.filter(i=>i!==s)}}),unsubscribe:()=>{e=[]}}},co=e=>$e(e)||!wf(e);function Zt(e,t){if(co(e)||co(t))return e===t;if(fn(e)&&fn(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const s of n){const i=e[s];if(!r.includes(s))return!1;if(s!=="ref"){const o=t[s];if(fn(i)&&fn(o)||Ce(i)&&Ce(o)||Array.isArray(i)&&Array.isArray(o)?!Zt(i,o):i!==o)return!1}}return!0}var Df=e=>e.type==="select-multiple",Sw=e=>ga(e)||qr(e),Di=e=>js(e)&&e.isConnected,Mf=e=>{for(const t in e)if(bt(e[t]))return!0;return!1};function Ms(e,t={}){const n=Array.isArray(e);if(Ce(e)||n)for(const r in e)Array.isArray(e[r])||Ce(e[r])&&!Mf(e[r])?(t[r]=Array.isArray(e[r])?[]:{},Ms(e[r],t[r])):$e(e[r])||(t[r]=!0);return t}function Of(e,t,n){const r=Array.isArray(e);if(Ce(e)||r)for(const s in e)Array.isArray(e[s])||Ce(e[s])&&!Mf(e[s])?Ae(t)||co(n[s])?n[s]=Array.isArray(e[s])?Ms(e[s],[]):{...Ms(e[s])}:Of(e[s],$e(t)?{}:t[s],n[s]):n[s]=!Zt(e[s],t[s]);return n}var ir=(e,t)=>Of(e,t,Ms(t)),Vf=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Ae(e)?e:t?e===""?NaN:e&&+e:n&&wt(e)?new Date(e):r?r(e):e;function Mi(e){const t=e.ref;return pa(t)?t.files:ga(t)?jf(e.refs).value:Df(t)?[...t.selectedOptions].map(({value:n})=>n):qr(t)?Nf(e.refs).value:Vf(Ae(t.value)?e.ref.value:t.value,e)}var Tw=(e,t,n,r)=>{const s={};for(const i of e){const o=V(t,i);o&&he(s,i,o._f)}return{criteriaMode:n,names:[...e],fields:s,shouldUseNativeValidation:r}},or=e=>Ae(e)?e:Ds(e)?e.source:Ce(e)?Ds(e.value)?e.value.source:e.value:e;const kl="AsyncFunction";var Aw=e=>!!e&&!!e.validate&&!!(bt(e.validate)&&e.validate.constructor.name===kl||Ce(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===kl)),Cw=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function Rl(e,t,n){const r=V(e,n);if(r||ha(n))return{error:r,name:n};const s=n.split(".");for(;s.length;){const i=s.join("."),o=V(t,i),a=V(e,i);if(o&&!Array.isArray(o)&&n!==i)return{name:n};if(a&&a.type)return{name:i,error:a};s.pop()}return{name:n}}var Ew=(e,t,n,r,s)=>s.isOnAll?!1:!n&&s.isOnTouch?!(t||e):(n?r.isOnBlur:s.isOnBlur)?!e:(n?r.isOnChange:s.isOnChange)?e:!0,Pw=(e,t)=>!ti(V(e,t)).length&&ke(e,t);const kw={mode:ct.onSubmit,reValidateMode:ct.onChange,shouldFocusError:!0};function Rw(e={}){let t={...kw,...e},n={submitCount:0,isDirty:!1,isLoading:bt(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},s=Ce(t.defaultValues)||Ce(t.values)?Ze(t.defaultValues||t.values)||{}:{},i=t.shouldUnregister?{}:Ze(s),o={action:!1,mount:!1,watch:!1},a={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},c,l=0;const u={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},d={values:ji(),array:ji(),state:ji()},f=_l(t.mode),m=_l(t.reValidateMode),g=t.criteriaMode===ct.all,h=w=>T=>{clearTimeout(l),l=setTimeout(w,T)},x=async w=>{if(!t.disabled&&(u.isValid||w)){const T=t.resolver?He((await k()).errors):await O(r,!0);T!==n.isValid&&d.state.next({isValid:T})}},v=(w,T)=>{!t.disabled&&(u.isValidating||u.validatingFields)&&((w||Array.from(a.mount)).forEach(P=>{P&&(T?he(n.validatingFields,P,T):ke(n.validatingFields,P))}),d.state.next({validatingFields:n.validatingFields,isValidating:!He(n.validatingFields)}))},b=(w,T=[],P,L,M=!0,j=!0)=>{if(L&&P&&!t.disabled){if(o.action=!0,j&&Array.isArray(V(r,w))){const G=P(V(r,w),L.argA,L.argB);M&&he(r,w,G)}if(j&&Array.isArray(V(n.errors,w))){const G=P(V(n.errors,w),L.argA,L.argB);M&&he(n.errors,w,G),Pw(n.errors,w)}if(u.touchedFields&&j&&Array.isArray(V(n.touchedFields,w))){const G=P(V(n.touchedFields,w),L.argA,L.argB);M&&he(n.touchedFields,w,G)}u.dirtyFields&&(n.dirtyFields=ir(s,i)),d.state.next({name:w,isDirty:R(w,T),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else he(i,w,T)},S=(w,T)=>{he(n.errors,w,T),d.state.next({errors:n.errors})},A=w=>{n.errors=w,d.state.next({errors:n.errors,isValid:!1})},_=(w,T,P,L)=>{const M=V(r,w);if(M){const j=V(i,w,Ae(P)?V(s,w):P);Ae(j)||L&&L.defaultChecked||T?he(i,w,T?j:Mi(M._f)):J(w,j),o.mount&&x()}},C=(w,T,P,L,M)=>{let j=!1,G=!1;const ne={name:w};if(!t.disabled){const Pe=!!(V(r,w)&&V(r,w)._f&&V(r,w)._f.disabled);if(!P||L){u.isDirty&&(G=n.isDirty,n.isDirty=ne.isDirty=R(),j=G!==ne.isDirty);const Se=Pe||Zt(V(s,w),T);G=!!(!Pe&&V(n.dirtyFields,w)),Se||Pe?ke(n.dirtyFields,w):he(n.dirtyFields,w,!0),ne.dirtyFields=n.dirtyFields,j=j||u.dirtyFields&&G!==!Se}if(P){const Se=V(n.touchedFields,w);Se||(he(n.touchedFields,w,P),ne.touchedFields=n.touchedFields,j=j||u.touchedFields&&Se!==P)}j&&M&&d.state.next(ne)}return j?ne:{}},E=(w,T,P,L)=>{const M=V(n.errors,w),j=u.isValid&&it(T)&&n.isValid!==T;if(t.delayError&&P?(c=h(()=>S(w,P)),c(t.delayError)):(clearTimeout(l),c=null,P?he(n.errors,w,P):ke(n.errors,w)),(P?!Zt(M,P):M)||!He(L)||j){const G={...L,...j&&it(T)?{isValid:T}:{},errors:n.errors,name:w};n={...n,...G},d.state.next(G)}},k=async w=>{v(w,!0);const T=await t.resolver(i,t.context,Tw(w||a.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return v(w),T},D=async w=>{const{errors:T}=await k(w);if(w)for(const P of w){const L=V(T,P);L?he(n.errors,P,L):ke(n.errors,P)}else n.errors=T;return T},O=async(w,T,P={valid:!0})=>{for(const L in w){const M=w[L];if(M){const{_f:j,...G}=M;if(j){const ne=a.array.has(j.name),Pe=M._f&&Aw(M._f);Pe&&u.validatingFields&&v([L],!0);const Se=await Pl(M,a.disabled,i,g,t.shouldUseNativeValidation&&!T,ne);if(Pe&&u.validatingFields&&v([L]),Se[j.name]&&(P.valid=!1,T))break;!T&&(V(Se,j.name)?ne?bw(n.errors,Se,j.name):he(n.errors,j.name,Se[j.name]):ke(n.errors,j.name))}!He(G)&&await O(G,T,P)}}return P.valid},z=()=>{for(const w of a.unMount){const T=V(r,w);T&&(T._f.refs?T._f.refs.every(P=>!Di(P)):!Di(T._f.ref))&&Be(w)}a.unMount=new Set},R=(w,T)=>!t.disabled&&(w&&T&&he(i,w,T),!Zt(ue(),s)),F=(w,T,P)=>kf(w,a,{...o.mount?i:Ae(T)?s:wt(w)?{[w]:T}:T},P,T),$=w=>ti(V(o.mount?i:s,w,t.shouldUnregister?V(s,w,[]):[])),J=(w,T,P={})=>{const L=V(r,w);let M=T;if(L){const j=L._f;j&&(!j.disabled&&he(i,w,Vf(T,j)),M=js(j.ref)&&$e(T)?"":T,Df(j.ref)?[...j.ref.options].forEach(G=>G.selected=M.includes(G.value)):j.refs?qr(j.ref)?j.refs.length>1?j.refs.forEach(G=>(!G.defaultChecked||!G.disabled)&&(G.checked=Array.isArray(M)?!!M.find(ne=>ne===G.value):M===G.value)):j.refs[0]&&(j.refs[0].checked=!!M):j.refs.forEach(G=>G.checked=G.value===M):pa(j.ref)?j.ref.value="":(j.ref.value=M,j.ref.type||d.values.next({name:w,values:{...i}})))}(P.shouldDirty||P.shouldTouch)&&C(w,M,P.shouldTouch,P.shouldDirty,!0),P.shouldValidate&&le(w)},K=(w,T,P)=>{for(const L in T){const M=T[L],j=`${w}.${L}`,G=V(r,j);(a.array.has(w)||Ce(M)||G&&!G._f)&&!fn(M)?K(j,M,P):J(j,M,P)}},W=(w,T,P={})=>{const L=V(r,w),M=a.array.has(w),j=Ze(T);he(i,w,j),M?(d.array.next({name:w,values:{...i}}),(u.isDirty||u.dirtyFields)&&P.shouldDirty&&d.state.next({name:w,dirtyFields:ir(s,i),isDirty:R(w,j)})):L&&!L._f&&!$e(j)?K(w,j,P):J(w,j,P),Sl(w,a)&&d.state.next({...n}),d.values.next({name:o.mount?w:void 0,values:{...i}})},U=async w=>{o.mount=!0;const T=w.target;let P=T.name,L=!0;const M=V(r,P),j=()=>T.type?Mi(M._f):_f(w),G=ne=>{L=Number.isNaN(ne)||fn(ne)&&isNaN(ne.getTime())||Zt(ne,V(i,P,ne))};if(M){let ne,Pe;const Se=j(),yt=w.type===Ns.BLUR||w.type===Ns.FOCUS_OUT,Qn=!Cw(M._f)&&!t.resolver&&!V(n.errors,P)&&!M._f.deps||Ew(yt,V(n.touchedFields,P),n.isSubmitted,m,f),vt=Sl(P,a,yt);he(i,P,Se),yt?(M._f.onBlur&&M._f.onBlur(w),c&&c(0)):M._f.onChange&&M._f.onChange(w);const on=C(P,Se,yt,!1),er=!He(on)||vt;if(!yt&&d.values.next({name:P,type:w.type,values:{...i}}),Qn)return u.isValid&&(t.mode==="onBlur"&&yt?x():yt||x()),er&&d.state.next({name:P,...vt?{}:on});if(!yt&&vt&&d.state.next({...n}),t.resolver){const{errors:an}=await k([P]);if(G(Se),L){const li=Rl(n.errors,r,P),ts=Rl(an,r,li.name||P);ne=ts.error,P=ts.name,Pe=He(an)}}else v([P],!0),ne=(await Pl(M,a.disabled,i,g,t.shouldUseNativeValidation))[P],v([P]),G(Se),L&&(ne?Pe=!1:u.isValid&&(Pe=await O(r,!0)));L&&(M._f.deps&&le(M._f.deps),E(P,Pe,ne,on))}},Q=(w,T)=>{if(V(n.errors,T)&&w.focus)return w.focus(),1},le=async(w,T={})=>{let P,L;const M=yr(w);if(t.resolver){const j=await D(Ae(w)?w:M);P=He(j),L=w?!M.some(G=>V(j,G)):P}else w?(L=(await Promise.all(M.map(async j=>{const G=V(r,j);return await O(G&&G._f?{[j]:G}:G)}))).every(Boolean),!(!L&&!n.isValid)&&x()):L=P=await O(r);return d.state.next({...!wt(w)||u.isValid&&P!==n.isValid?{}:{name:w},...t.resolver||!w?{isValid:P}:{},errors:n.errors}),T.shouldFocus&&!L&&vr(r,Q,w?M:a.mount),L},ue=w=>{const T={...o.mount?i:s};return Ae(w)?T:wt(w)?V(T,w):w.map(P=>V(T,P))},Me=(w,T)=>({invalid:!!V((T||n).errors,w),isDirty:!!V((T||n).dirtyFields,w),error:V((T||n).errors,w),isValidating:!!V(n.validatingFields,w),isTouched:!!V((T||n).touchedFields,w)}),Ke=w=>{w&&yr(w).forEach(T=>ke(n.errors,T)),d.state.next({errors:w?n.errors:{}})},Oe=(w,T,P)=>{const L=(V(r,w,{_f:{}})._f||{}).ref,M=V(n.errors,w)||{},{ref:j,message:G,type:ne,...Pe}=M;he(n.errors,w,{...Pe,...T,ref:L}),d.state.next({name:w,errors:n.errors,isValid:!1}),P&&P.shouldFocus&&L&&L.focus&&L.focus()},ot=(w,T)=>bt(w)?d.values.subscribe({next:P=>w(F(void 0,T),P)}):F(w,T,!0),Be=(w,T={})=>{for(const P of w?yr(w):a.mount)a.mount.delete(P),a.array.delete(P),T.keepValue||(ke(r,P),ke(i,P)),!T.keepError&&ke(n.errors,P),!T.keepDirty&&ke(n.dirtyFields,P),!T.keepTouched&&ke(n.touchedFields,P),!T.keepIsValidating&&ke(n.validatingFields,P),!t.shouldUnregister&&!T.keepDefaultValue&&ke(s,P);d.values.next({values:{...i}}),d.state.next({...n,...T.keepDirty?{isDirty:R()}:{}}),!T.keepIsValid&&x()},ie=({disabled:w,name:T,field:P,fields:L})=>{(it(w)&&o.mount||w||a.disabled.has(T))&&(w?a.disabled.add(T):a.disabled.delete(T),C(T,Mi(P?P._f:V(L,T)._f),!1,!1,!0))},de=(w,T={})=>{let P=V(r,w);const L=it(T.disabled)||it(t.disabled);return he(r,w,{...P||{},_f:{...P&&P._f?P._f:{ref:{name:w}},name:w,mount:!0,...T}}),a.mount.add(w),P?ie({field:P,disabled:it(T.disabled)?T.disabled:t.disabled,name:w}):_(w,!0,T.value),{...L?{disabled:T.disabled||t.disabled}:{},...t.progressive?{required:!!T.required,min:or(T.min),max:or(T.max),minLength:or(T.minLength),maxLength:or(T.maxLength),pattern:or(T.pattern)}:{},name:w,onChange:U,onBlur:U,ref:M=>{if(M){de(w,T),P=V(r,w);const j=Ae(M.value)&&M.querySelectorAll&&M.querySelectorAll("input,select,textarea")[0]||M,G=Sw(j),ne=P._f.refs||[];if(G?ne.find(Pe=>Pe===j):j===P._f.ref)return;he(r,w,{_f:{...P._f,...G?{refs:[...ne.filter(Di),j,...Array.isArray(V(s,w))?[{}]:[]],ref:{type:j.type,name:w}}:{ref:j}}}),_(w,!1,void 0,j)}else P=V(r,w,{}),P._f&&(P._f.mount=!1),(t.shouldUnregister||T.shouldUnregister)&&!(Sf(a.array,w)&&o.action)&&a.unMount.add(w)}}},_e=()=>t.shouldFocusError&&vr(r,Q,a.mount),Ee=w=>{it(w)&&(d.state.next({disabled:w}),vr(r,(T,P)=>{const L=V(r,P);L&&(T.disabled=L._f.disabled||w,Array.isArray(L._f.refs)&&L._f.refs.forEach(M=>{M.disabled=L._f.disabled||w}))},0,!1))},me=(w,T)=>async P=>{let L;P&&(P.preventDefault&&P.preventDefault(),P.persist&&P.persist());let M=Ze(i);if(a.disabled.size)for(const j of a.disabled)he(M,j,void 0);if(d.state.next({isSubmitting:!0}),t.resolver){const{errors:j,values:G}=await k();n.errors=j,M=G}else await O(r);if(ke(n.errors,"root"),He(n.errors)){d.state.next({errors:{}});try{await w(M,P)}catch(j){L=j}}else T&&await T({...n.errors},P),_e(),setTimeout(_e);if(d.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:He(n.errors)&&!L,submitCount:n.submitCount+1,errors:n.errors}),L)throw L},Z=(w,T={})=>{V(r,w)&&(Ae(T.defaultValue)?W(w,Ze(V(s,w))):(W(w,T.defaultValue),he(s,w,Ze(T.defaultValue))),T.keepTouched||ke(n.touchedFields,w),T.keepDirty||(ke(n.dirtyFields,w),n.isDirty=T.defaultValue?R(w,Ze(V(s,w))):R()),T.keepError||(ke(n.errors,w),u.isValid&&x()),d.state.next({...n}))},oe=(w,T={})=>{const P=w?Ze(w):s,L=Ze(P),M=He(w),j=M?s:L;if(T.keepDefaultValues||(s=P),!T.keepValues){if(T.keepDirtyValues){const G=new Set([...a.mount,...Object.keys(ir(s,i))]);for(const ne of Array.from(G))V(n.dirtyFields,ne)?he(j,ne,V(i,ne)):W(ne,V(j,ne))}else{if(fa&&Ae(w))for(const G of a.mount){const ne=V(r,G);if(ne&&ne._f){const Pe=Array.isArray(ne._f.refs)?ne._f.refs[0]:ne._f.ref;if(js(Pe)){const Se=Pe.closest("form");if(Se){Se.reset();break}}}}r={}}i=t.shouldUnregister?T.keepDefaultValues?Ze(s):{}:Ze(j),d.array.next({values:{...j}}),d.values.next({values:{...j}})}a={mount:T.keepDirtyValues?a.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},o.mount=!u.isValid||!!T.keepIsValid||!!T.keepDirtyValues,o.watch=!!t.shouldUnregister,d.state.next({submitCount:T.keepSubmitCount?n.submitCount:0,isDirty:M?!1:T.keepDirty?n.isDirty:!!(T.keepDefaultValues&&!Zt(w,s)),isSubmitted:T.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:M?{}:T.keepDirtyValues?T.keepDefaultValues&&i?ir(s,i):n.dirtyFields:T.keepDefaultValues&&w?ir(s,w):T.keepDirty?n.dirtyFields:{},touchedFields:T.keepTouched?n.touchedFields:{},errors:T.keepErrors?n.errors:{},isSubmitSuccessful:T.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},pe=(w,T)=>oe(bt(w)?w(i):w,T);return{control:{register:de,unregister:Be,getFieldState:Me,handleSubmit:me,setError:Oe,_executeSchema:k,_getWatch:F,_getDirty:R,_updateValid:x,_removeUnmounted:z,_updateFieldArray:b,_updateDisabledField:ie,_getFieldArray:$,_reset:oe,_resetDefaultValues:()=>bt(t.defaultValues)&&t.defaultValues().then(w=>{pe(w,t.resetOptions),d.state.next({isLoading:!1})}),_updateFormState:w=>{n={...n,...w}},_disableForm:Ee,_subjects:d,_proxyFormState:u,_setErrors:A,get _fields(){return r},get _formValues(){return i},get _state(){return o},set _state(w){o=w},get _defaultValues(){return s},get _names(){return a},set _names(w){a=w},get _formState(){return n},set _formState(w){n=w},get _options(){return t},set _options(w){t={...t,...w}}},trigger:le,register:de,handleSubmit:me,watch:ot,setValue:W,getValues:ue,reset:pe,resetField:Z,clearErrors:Ke,unregister:Be,setError:Oe,setFocus:(w,T={})=>{const P=V(r,w),L=P&&P._f;if(L){const M=L.refs?L.refs[0]:L.ref;M.focus&&(M.focus(),T.shouldSelect&&bt(M.select)&&M.select())}},getFieldState:Me}}function Nw(e={}){const t=fe.useRef(void 0),n=fe.useRef(void 0),[r,s]=fe.useState({isDirty:!1,isValidating:!1,isLoading:bt(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:bt(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...Rw(e),formState:r});const i=t.current.control;return i._options=e,ma({subject:i._subjects.state,next:o=>{Ef(o,i._proxyFormState,i._updateFormState,!0)&&s({...i._formState})}}),fe.useEffect(()=>i._disableForm(e.disabled),[i,e.disabled]),fe.useEffect(()=>{if(i._proxyFormState.isDirty){const o=i._getDirty();o!==r.isDirty&&i._subjects.state.next({isDirty:o})}},[i,r.isDirty]),fe.useEffect(()=>{e.values&&!Zt(e.values,n.current)?(i._reset(e.values,i._options.resetOptions),n.current=e.values,s(o=>({...o}))):i._resetDefaultValues()},[e.values,i]),fe.useEffect(()=>{e.errors&&i._setErrors(e.errors)},[e.errors,i]),fe.useEffect(()=>{i._state.mount||(i._updateValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()}),fe.useEffect(()=>{e.shouldUnregister&&i._subjects.values.next({values:i._getWatch()})},[e.shouldUnregister,i]),t.current.formState=Cf(r,i),t.current}var jw="Label",Lf=y.forwardRef((e,t)=>p.jsx(We.label,{...e,ref:t,onMouseDown:n=>{var s;n.target.closest("button, input, select, textarea")||((s=e.onMouseDown)==null||s.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));Lf.displayName=jw;var If=Lf;const Dw=ko("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Ff=y.forwardRef(({className:e,...t},n)=>p.jsx(If,{ref:n,className:ee(Dw(),e),...t}));Ff.displayName=If.displayName;const hT=pw,Bf=y.createContext({}),Mw=({...e})=>p.jsx(Bf.Provider,{value:{name:e.name},children:p.jsx(xw,{...e})}),ri=()=>{const e=y.useContext(Bf),t=y.useContext($f),{getFieldState:n,formState:r}=ni(),s=n(e.name,r);if(!e)throw new Error("useFormField should be used within ");const{id:i}=t;return{id:i,name:e.name,formItemId:`${i}-form-item`,formDescriptionId:`${i}-form-item-description`,formMessageId:`${i}-form-item-message`,...s}},$f=y.createContext({}),zf=y.forwardRef(({className:e,...t},n)=>{const r=y.useId();return p.jsx($f.Provider,{value:{id:r},children:p.jsx("div",{ref:n,className:ee("space-y-2",e),...t})})});zf.displayName="FormItem";const Uf=y.forwardRef(({className:e,...t},n)=>{const{error:r,formItemId:s}=ri();return p.jsx(Ff,{ref:n,className:ee(r&&"text-destructive",e),htmlFor:s,...t})});Uf.displayName="FormLabel";const Wf=y.forwardRef(({...e},t)=>{const{error:n,formItemId:r,formDescriptionId:s,formMessageId:i}=ri();return p.jsx(Hn,{ref:t,id:r,"aria-describedby":n?`${s} ${i}`:`${s}`,"aria-invalid":!!n,...e})});Wf.displayName="FormControl";const Ow=y.forwardRef(({className:e,...t},n)=>{const{formDescriptionId:r}=ri();return p.jsx("p",{ref:n,id:r,className:ee("text-[0.8rem] text-muted-foreground",e),...t})});Ow.displayName="FormDescription";const Zf=y.forwardRef(({className:e,children:t,...n},r)=>{const{error:s,formMessageId:i}=ri(),o=s?String(s==null?void 0:s.message):t;return o?p.jsx("p",{ref:r,id:i,className:ee("text-[0.8rem] font-medium text-destructive",e),...n,children:o}):null});Zf.displayName="FormMessage";const lo=y.forwardRef(({className:e,type:t,...n},r)=>t!=="file"?p.jsx("input",{type:t,className:ee("flex h-14 rounded-[2px] border p-4 focus:border-[3px] focus:outline-none focus:border-primary transition-all hover:border-on_surface border-outline bg-transparent text-base w-regular file:border-0 file:bg-secondary_container file:outline-none file:text-sm file:w-fit file:text-on_secondary_container file:font-medium placeholder:text-muted-foreground focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...n}):p.jsxs("div",{className:"relative w-[160px] h-9 overflow-hidden !cursor-pointer",children:[p.jsx("input",{ref:r,accept:".pdf, .png, .jpeg, .jpg",type:t,className:ee("h-9 absolute top-0 left-0 !cursor-pointer opacity-0 z-20 size-full"),...n}),p.jsxs("div",{className:"absolute rounded-[2px] cursor-pointer size-full flex items-center gap-4 px-3 py-2.5 top-0 left-0 bg-secondary_container",children:[p.jsx(Ip,{className:"cursor-pointer",size:16})," Upload file"]})]}));lo.displayName="Input";const Hf=y.forwardRef(({className:e,...t},n)=>p.jsx("textarea",{className:ee("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...t}));Hf.displayName="Textarea";const mT=({control:e,name:t,label:n,placeholder:r,error:s,type:i="text",className:o,disabled:a,textArea:c=!1,textDark:l,supporText:u,handleChange:d,onPrimary:f=!1})=>p.jsx(Mw,{control:e,name:t,render:({field:m})=>p.jsxs(zf,{className:ee(o,"flex flex-col w-full relative"),children:[p.jsx(Uf,{className:ee("text-xl",f&&"!text-on_primary",l?"text-on_surface":"text-on_surface_v"),children:n}),p.jsx(Wf,{children:p.jsx(p.Fragment,{children:c?p.jsx(Hf,{rows:3,...m,placeholder:r,className:ee(s&&"border-[#BA1A1A]",f&&"border-primary_outline_reverse focus:border-white hover:border-white focus:border-1 text-on_primary")}):i!=="file"?p.jsx(lo,{...m,type:i,placeholder:r,disabled:a,className:ee(s&&"border-[#BA1A1A]",f&&"border-primary_outline_reverse focus:border-white hover:border-white focus:border-1 text-on_primary")}):p.jsxs("div",{className:"relative",children:[p.jsx(lo,{type:"file",placeholder:r,onChange:g=>{var x;const h=((x=g.target.files)==null?void 0:x[0])||null;console.log("Выбранный файл:",h),m.onChange(h),d&&d(g)},disabled:a}),m.value&&p.jsxs("div",{className:"text-sm mt-2 text-gray-500 absolute top-8",children:["Выбранный файл: ",m.value.name]})]})})}),p.jsx(Zf,{className:ee("absolute -bottom-5 left-0 text-sm font-medium leading-[130%]",s&&f?"text-teritary_04":"text-[#BA1A1A]"),children:s?s.message:u})]})}),pT=({className:e,delay:t=.15})=>p.jsxs(ws.div,{initial:{opacity:0,y:50},animate:{opacity:1,y:0,transition:{delay:t}},className:ee("flex flex-col gap-8 my-16",e),children:[p.jsx("h3",{className:"text-3xl text-center",children:"Форма успешно отправлена!"}),p.jsx(Re,{className:"w-fit mx-auto",to:"/",children:p.jsx(tt,{variant:"outline",children:"Вернуться на главную"})})]}),Vw=({className:e,slides:t,active:n,scrollTo:r})=>p.jsx("div",{className:ee("flex items-center justify-center gap-2",e),children:Array.from({length:t}).map((s,i)=>p.jsx("span",{onClick:()=>r==null?void 0:r(i),className:ee(n===i?"dot-active":"dot")},i))}),Lw=["top","right","bottom","left"],qt=Math.min,Ye=Math.max,Os=Math.round,fs=Math.floor,Tt=e=>({x:e,y:e}),Iw={left:"right",right:"left",bottom:"top",top:"bottom"},Fw={start:"end",end:"start"};function uo(e,t,n){return Ye(e,qt(t,n))}function It(e,t){return typeof e=="function"?e(t):e}function Ft(e){return e.split("-")[0]}function Xn(e){return e.split("-")[1]}function ya(e){return e==="x"?"y":"x"}function va(e){return e==="y"?"height":"width"}function Yt(e){return["top","bottom"].includes(Ft(e))?"y":"x"}function xa(e){return ya(Yt(e))}function Bw(e,t,n){n===void 0&&(n=!1);const r=Xn(e),s=xa(e),i=va(s);let o=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=Vs(o)),[o,Vs(o)]}function $w(e){const t=Vs(e);return[fo(e),t,fo(t)]}function fo(e){return e.replace(/start|end/g,t=>Fw[t])}function zw(e,t,n){const r=["left","right"],s=["right","left"],i=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?s:r:t?r:s;case"left":case"right":return t?i:o;default:return[]}}function Uw(e,t,n,r){const s=Xn(e);let i=zw(Ft(e),n==="start",r);return s&&(i=i.map(o=>o+"-"+s),t&&(i=i.concat(i.map(fo)))),i}function Vs(e){return e.replace(/left|right|bottom|top/g,t=>Iw[t])}function Ww(e){return{top:0,right:0,bottom:0,left:0,...e}}function Gf(e){return typeof e!="number"?Ww(e):{top:e,right:e,bottom:e,left:e}}function Ls(e){const{x:t,y:n,width:r,height:s}=e;return{width:r,height:s,top:n,left:t,right:t+r,bottom:n+s,x:t,y:n}}function Nl(e,t,n){let{reference:r,floating:s}=e;const i=Yt(t),o=xa(t),a=va(o),c=Ft(t),l=i==="y",u=r.x+r.width/2-s.width/2,d=r.y+r.height/2-s.height/2,f=r[a]/2-s[a]/2;let m;switch(c){case"top":m={x:u,y:r.y-s.height};break;case"bottom":m={x:u,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:d};break;case"left":m={x:r.x-s.width,y:d};break;default:m={x:r.x,y:r.y}}switch(Xn(t)){case"start":m[o]-=f*(n&&l?-1:1);break;case"end":m[o]+=f*(n&&l?-1:1);break}return m}const Zw=async(e,t,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:i=[],platform:o}=n,a=i.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(t));let l=await o.getElementRects({reference:e,floating:t,strategy:s}),{x:u,y:d}=Nl(l,r,c),f=r,m={},g=0;for(let h=0;h({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:s,rects:i,platform:o,elements:a,middlewareData:c}=t,{element:l,padding:u=0}=It(e,t)||{};if(l==null)return{};const d=Gf(u),f={x:n,y:r},m=xa(s),g=va(m),h=await o.getDimensions(l),x=m==="y",v=x?"top":"left",b=x?"bottom":"right",S=x?"clientHeight":"clientWidth",A=i.reference[g]+i.reference[m]-f[m]-i.floating[g],_=f[m]-i.reference[m],C=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l));let E=C?C[S]:0;(!E||!await(o.isElement==null?void 0:o.isElement(C)))&&(E=a.floating[S]||i.floating[g]);const k=A/2-_/2,D=E/2-h[g]/2-1,O=qt(d[v],D),z=qt(d[b],D),R=O,F=E-h[g]-z,$=E/2-h[g]/2+k,J=uo(R,$,F),K=!c.arrow&&Xn(s)!=null&&$!==J&&i.reference[g]/2-($$<=0)){var z,R;const $=(((z=i.flip)==null?void 0:z.index)||0)+1,J=E[$];if(J)return{data:{index:$,overflows:O},reset:{placement:J}};let K=(R=O.filter(W=>W.overflows[0]<=0).sort((W,U)=>W.overflows[1]-U.overflows[1])[0])==null?void 0:R.placement;if(!K)switch(m){case"bestFit":{var F;const W=(F=O.filter(U=>{if(C){const Q=Yt(U.placement);return Q===b||Q==="y"}return!0}).map(U=>[U.placement,U.overflows.filter(Q=>Q>0).reduce((Q,le)=>Q+le,0)]).sort((U,Q)=>U[1]-Q[1])[0])==null?void 0:F[0];W&&(K=W);break}case"initialPlacement":K=a;break}if(s!==K)return{reset:{placement:K}}}return{}}}};function jl(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Dl(e){return Lw.some(t=>e[t]>=0)}const Kw=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...s}=It(e,t);switch(r){case"referenceHidden":{const i=await Er(t,{...s,elementContext:"reference"}),o=jl(i,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:Dl(o)}}}case"escaped":{const i=await Er(t,{...s,altBoundary:!0}),o=jl(i,n.floating);return{data:{escapedOffsets:o,escaped:Dl(o)}}}default:return{}}}}};async function qw(e,t){const{placement:n,platform:r,elements:s}=e,i=await(r.isRTL==null?void 0:r.isRTL(s.floating)),o=Ft(n),a=Xn(n),c=Yt(n)==="y",l=["left","top"].includes(o)?-1:1,u=i&&c?-1:1,d=It(t,e);let{mainAxis:f,crossAxis:m,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof g=="number"&&(m=a==="end"?g*-1:g),c?{x:m*u,y:f*l}:{x:f*l,y:m*u}}const Yw=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:s,y:i,placement:o,middlewareData:a}=t,c=await qw(t,e);return o===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:s+c.x,y:i+c.y,data:{...c,placement:o}}}}},Xw=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:s}=t,{mainAxis:i=!0,crossAxis:o=!1,limiter:a={fn:x=>{let{x:v,y:b}=x;return{x:v,y:b}}},...c}=It(e,t),l={x:n,y:r},u=await Er(t,c),d=Yt(Ft(s)),f=ya(d);let m=l[f],g=l[d];if(i){const x=f==="y"?"top":"left",v=f==="y"?"bottom":"right",b=m+u[x],S=m-u[v];m=uo(b,m,S)}if(o){const x=d==="y"?"top":"left",v=d==="y"?"bottom":"right",b=g+u[x],S=g-u[v];g=uo(b,g,S)}const h=a.fn({...t,[f]:m,[d]:g});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[f]:i,[d]:o}}}}}},Jw=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:s,rects:i,middlewareData:o}=t,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=It(e,t),u={x:n,y:r},d=Yt(s),f=ya(d);let m=u[f],g=u[d];const h=It(a,t),x=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){const S=f==="y"?"height":"width",A=i.reference[f]-i.floating[S]+x.mainAxis,_=i.reference[f]+i.reference[S]-x.mainAxis;m_&&(m=_)}if(l){var v,b;const S=f==="y"?"width":"height",A=["top","left"].includes(Ft(s)),_=i.reference[d]-i.floating[S]+(A&&((v=o.offset)==null?void 0:v[d])||0)+(A?0:x.crossAxis),C=i.reference[d]+i.reference[S]+(A?0:((b=o.offset)==null?void 0:b[d])||0)-(A?x.crossAxis:0);g<_?g=_:g>C&&(g=C)}return{[f]:m,[d]:g}}}},Qw=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:s,rects:i,platform:o,elements:a}=t,{apply:c=()=>{},...l}=It(e,t),u=await Er(t,l),d=Ft(s),f=Xn(s),m=Yt(s)==="y",{width:g,height:h}=i.floating;let x,v;d==="top"||d==="bottom"?(x=d,v=f===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(v=d,x=f==="end"?"top":"bottom");const b=h-u.top-u.bottom,S=g-u.left-u.right,A=qt(h-u[x],b),_=qt(g-u[v],S),C=!t.middlewareData.shift;let E=A,k=_;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(k=S),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(E=b),C&&!f){const O=Ye(u.left,0),z=Ye(u.right,0),R=Ye(u.top,0),F=Ye(u.bottom,0);m?k=g-2*(O!==0||z!==0?O+z:Ye(u.left,u.right)):E=h-2*(R!==0||F!==0?R+F:Ye(u.top,u.bottom))}await c({...t,availableWidth:k,availableHeight:E});const D=await o.getDimensions(a.floating);return g!==D.width||h!==D.height?{reset:{rects:!0}}:{}}}};function si(){return typeof window<"u"}function Jn(e){return Kf(e)?(e.nodeName||"").toLowerCase():"#document"}function Qe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function kt(e){var t;return(t=(Kf(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Kf(e){return si()?e instanceof Node||e instanceof Qe(e).Node:!1}function ft(e){return si()?e instanceof Element||e instanceof Qe(e).Element:!1}function Ct(e){return si()?e instanceof HTMLElement||e instanceof Qe(e).HTMLElement:!1}function Ml(e){return!si()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Qe(e).ShadowRoot}function Yr(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=ht(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(s)}function e0(e){return["table","td","th"].includes(Jn(e))}function ii(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function ba(e){const t=wa(),n=ft(e)?ht(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function t0(e){let t=Xt(e);for(;Ct(t)&&!$n(t);){if(ba(t))return t;if(ii(t))return null;t=Xt(t)}return null}function wa(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function $n(e){return["html","body","#document"].includes(Jn(e))}function ht(e){return Qe(e).getComputedStyle(e)}function oi(e){return ft(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Xt(e){if(Jn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ml(e)&&e.host||kt(e);return Ml(t)?t.host:t}function qf(e){const t=Xt(e);return $n(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ct(t)&&Yr(t)?t:qf(t)}function Pr(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=qf(e),i=s===((r=e.ownerDocument)==null?void 0:r.body),o=Qe(s);if(i){const a=ho(o);return t.concat(o,o.visualViewport||[],Yr(s)?s:[],a&&n?Pr(a):[])}return t.concat(s,Pr(s,[],n))}function ho(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Yf(e){const t=ht(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=Ct(e),i=s?e.offsetWidth:n,o=s?e.offsetHeight:r,a=Os(n)!==i||Os(r)!==o;return a&&(n=i,r=o),{width:n,height:r,$:a}}function _a(e){return ft(e)?e:e.contextElement}function Vn(e){const t=_a(e);if(!Ct(t))return Tt(1);const n=t.getBoundingClientRect(),{width:r,height:s,$:i}=Yf(t);let o=(i?Os(n.width):n.width)/r,a=(i?Os(n.height):n.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const n0=Tt(0);function Xf(e){const t=Qe(e);return!wa()||!t.visualViewport?n0:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function r0(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Qe(e)?!1:t}function yn(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),i=_a(e);let o=Tt(1);t&&(r?ft(r)&&(o=Vn(r)):o=Vn(e));const a=r0(i,n,r)?Xf(i):Tt(0);let c=(s.left+a.x)/o.x,l=(s.top+a.y)/o.y,u=s.width/o.x,d=s.height/o.y;if(i){const f=Qe(i),m=r&&ft(r)?Qe(r):r;let g=f,h=ho(g);for(;h&&r&&m!==g;){const x=Vn(h),v=h.getBoundingClientRect(),b=ht(h),S=v.left+(h.clientLeft+parseFloat(b.paddingLeft))*x.x,A=v.top+(h.clientTop+parseFloat(b.paddingTop))*x.y;c*=x.x,l*=x.y,u*=x.x,d*=x.y,c+=S,l+=A,g=Qe(h),h=ho(g)}}return Ls({width:u,height:d,x:c,y:l})}function Sa(e,t){const n=oi(e).scrollLeft;return t?t.left+n:yn(kt(e)).left+n}function Jf(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=r.left+t.scrollLeft-(n?0:Sa(e,r)),i=r.top+t.scrollTop;return{x:s,y:i}}function s0(e){let{elements:t,rect:n,offsetParent:r,strategy:s}=e;const i=s==="fixed",o=kt(r),a=t?ii(t.floating):!1;if(r===o||a&&i)return n;let c={scrollLeft:0,scrollTop:0},l=Tt(1);const u=Tt(0),d=Ct(r);if((d||!d&&!i)&&((Jn(r)!=="body"||Yr(o))&&(c=oi(r)),Ct(r))){const m=yn(r);l=Vn(r),u.x=m.x+r.clientLeft,u.y=m.y+r.clientTop}const f=o&&!d&&!i?Jf(o,c,!0):Tt(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function i0(e){return Array.from(e.getClientRects())}function o0(e){const t=kt(e),n=oi(e),r=e.ownerDocument.body,s=Ye(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Ye(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+Sa(e);const a=-n.scrollTop;return ht(r).direction==="rtl"&&(o+=Ye(t.clientWidth,r.clientWidth)-s),{width:s,height:i,x:o,y:a}}function a0(e,t){const n=Qe(e),r=kt(e),s=n.visualViewport;let i=r.clientWidth,o=r.clientHeight,a=0,c=0;if(s){i=s.width,o=s.height;const l=wa();(!l||l&&t==="fixed")&&(a=s.offsetLeft,c=s.offsetTop)}return{width:i,height:o,x:a,y:c}}function c0(e,t){const n=yn(e,!0,t==="fixed"),r=n.top+e.clientTop,s=n.left+e.clientLeft,i=Ct(e)?Vn(e):Tt(1),o=e.clientWidth*i.x,a=e.clientHeight*i.y,c=s*i.x,l=r*i.y;return{width:o,height:a,x:c,y:l}}function Ol(e,t,n){let r;if(t==="viewport")r=a0(e,n);else if(t==="document")r=o0(kt(e));else if(ft(t))r=c0(t,n);else{const s=Xf(e);r={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return Ls(r)}function Qf(e,t){const n=Xt(e);return n===t||!ft(n)||$n(n)?!1:ht(n).position==="fixed"||Qf(n,t)}function l0(e,t){const n=t.get(e);if(n)return n;let r=Pr(e,[],!1).filter(a=>ft(a)&&Jn(a)!=="body"),s=null;const i=ht(e).position==="fixed";let o=i?Xt(e):e;for(;ft(o)&&!$n(o);){const a=ht(o),c=ba(o);!c&&a.position==="fixed"&&(s=null),(i?!c&&!s:!c&&a.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||Yr(o)&&!c&&Qf(e,o))?r=r.filter(u=>u!==o):s=a,o=Xt(o)}return t.set(e,r),r}function u0(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const o=[...n==="clippingAncestors"?ii(t)?[]:l0(t,this._c):[].concat(n),r],a=o[0],c=o.reduce((l,u)=>{const d=Ol(t,u,s);return l.top=Ye(d.top,l.top),l.right=qt(d.right,l.right),l.bottom=qt(d.bottom,l.bottom),l.left=Ye(d.left,l.left),l},Ol(t,a,s));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function d0(e){const{width:t,height:n}=Yf(e);return{width:t,height:n}}function f0(e,t,n){const r=Ct(t),s=kt(t),i=n==="fixed",o=yn(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const c=Tt(0);if(r||!r&&!i)if((Jn(t)!=="body"||Yr(s))&&(a=oi(t)),r){const f=yn(t,!0,i,t);c.x=f.x+t.clientLeft,c.y=f.y+t.clientTop}else s&&(c.x=Sa(s));const l=s&&!r&&!i?Jf(s,a):Tt(0),u=o.left+a.scrollLeft-c.x-l.x,d=o.top+a.scrollTop-c.y-l.y;return{x:u,y:d,width:o.width,height:o.height}}function Oi(e){return ht(e).position==="static"}function Vl(e,t){if(!Ct(e)||ht(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return kt(e)===n&&(n=n.ownerDocument.body),n}function eh(e,t){const n=Qe(e);if(ii(e))return n;if(!Ct(e)){let s=Xt(e);for(;s&&!$n(s);){if(ft(s)&&!Oi(s))return s;s=Xt(s)}return n}let r=Vl(e,t);for(;r&&e0(r)&&Oi(r);)r=Vl(r,t);return r&&$n(r)&&Oi(r)&&!ba(r)?n:r||t0(e)||n}const h0=async function(e){const t=this.getOffsetParent||eh,n=this.getDimensions,r=await n(e.floating);return{reference:f0(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function m0(e){return ht(e).direction==="rtl"}const p0={convertOffsetParentRelativeRectToViewportRelativeRect:s0,getDocumentElement:kt,getClippingRect:u0,getOffsetParent:eh,getElementRects:h0,getClientRects:i0,getDimensions:d0,getScale:Vn,isElement:ft,isRTL:m0};function th(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function g0(e,t){let n=null,r;const s=kt(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function o(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),i();const l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:m}=l;if(a||t(),!f||!m)return;const g=fs(d),h=fs(s.clientWidth-(u+f)),x=fs(s.clientHeight-(d+m)),v=fs(u),S={rootMargin:-g+"px "+-h+"px "+-x+"px "+-v+"px",threshold:Ye(0,qt(1,c))||1};let A=!0;function _(C){const E=C[0].intersectionRatio;if(E!==c){if(!A)return o();E?o(!1,E):r=setTimeout(()=>{o(!1,1e-7)},1e3)}E===1&&!th(l,e.getBoundingClientRect())&&o(),A=!1}try{n=new IntersectionObserver(_,{...S,root:s.ownerDocument})}catch{n=new IntersectionObserver(_,S)}n.observe(e)}return o(!0),i}function y0(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,l=_a(e),u=s||i?[...l?Pr(l):[],...Pr(t)]:[];u.forEach(v=>{s&&v.addEventListener("scroll",n,{passive:!0}),i&&v.addEventListener("resize",n)});const d=l&&a?g0(l,n):null;let f=-1,m=null;o&&(m=new ResizeObserver(v=>{let[b]=v;b&&b.target===l&&m&&(m.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var S;(S=m)==null||S.observe(t)})),n()}),l&&!c&&m.observe(l),m.observe(t));let g,h=c?yn(e):null;c&&x();function x(){const v=yn(e);h&&!th(h,v)&&n(),h=v,g=requestAnimationFrame(x)}return n(),()=>{var v;u.forEach(b=>{s&&b.removeEventListener("scroll",n),i&&b.removeEventListener("resize",n)}),d==null||d(),(v=m)==null||v.disconnect(),m=null,c&&cancelAnimationFrame(g)}}const v0=Yw,x0=Xw,b0=Gw,w0=Qw,_0=Kw,Ll=Hw,S0=Jw,T0=(e,t,n)=>{const r=new Map,s={platform:p0,...n},i={...s.platform,_c:r};return Zw(e,t,{...s,platform:i})};var Ss=typeof document<"u"?y.useLayoutEffect:y.useEffect;function Is(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Is(e[r],t[r]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,s[r]))return!1;for(r=n;r--!==0;){const i=s[r];if(!(i==="_owner"&&e.$$typeof)&&!Is(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function nh(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Il(e,t){const n=nh(e);return Math.round(t*n)/n}function Vi(e){const t=y.useRef(e);return Ss(()=>{t.current=e}),t}function A0(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:i,floating:o}={},transform:a=!0,whileElementsMounted:c,open:l}=e,[u,d]=y.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,m]=y.useState(r);Is(f,r)||m(r);const[g,h]=y.useState(null),[x,v]=y.useState(null),b=y.useCallback(U=>{U!==C.current&&(C.current=U,h(U))},[]),S=y.useCallback(U=>{U!==E.current&&(E.current=U,v(U))},[]),A=i||g,_=o||x,C=y.useRef(null),E=y.useRef(null),k=y.useRef(u),D=c!=null,O=Vi(c),z=Vi(s),R=Vi(l),F=y.useCallback(()=>{if(!C.current||!E.current)return;const U={placement:t,strategy:n,middleware:f};z.current&&(U.platform=z.current),T0(C.current,E.current,U).then(Q=>{const le={...Q,isPositioned:R.current!==!1};$.current&&!Is(k.current,le)&&(k.current=le,Yl.flushSync(()=>{d(le)}))})},[f,t,n,z,R]);Ss(()=>{l===!1&&k.current.isPositioned&&(k.current.isPositioned=!1,d(U=>({...U,isPositioned:!1})))},[l]);const $=y.useRef(!1);Ss(()=>($.current=!0,()=>{$.current=!1}),[]),Ss(()=>{if(A&&(C.current=A),_&&(E.current=_),A&&_){if(O.current)return O.current(A,_,F);F()}},[A,_,F,O,D]);const J=y.useMemo(()=>({reference:C,floating:E,setReference:b,setFloating:S}),[b,S]),K=y.useMemo(()=>({reference:A,floating:_}),[A,_]),W=y.useMemo(()=>{const U={position:n,left:0,top:0};if(!K.floating)return U;const Q=Il(K.floating,u.x),le=Il(K.floating,u.y);return a?{...U,transform:"translate("+Q+"px, "+le+"px)",...nh(K.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Q,top:le}},[n,a,K.floating,u.x,u.y]);return y.useMemo(()=>({...u,update:F,refs:J,elements:K,floatingStyles:W}),[u,F,J,K,W])}const C0=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:s}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Ll({element:r.current,padding:s}).fn(n):{}:r?Ll({element:r,padding:s}).fn(n):{}}}},E0=(e,t)=>({...v0(e),options:[e,t]}),P0=(e,t)=>({...x0(e),options:[e,t]}),k0=(e,t)=>({...S0(e),options:[e,t]}),R0=(e,t)=>({...b0(e),options:[e,t]}),N0=(e,t)=>({...w0(e),options:[e,t]}),j0=(e,t)=>({..._0(e),options:[e,t]}),D0=(e,t)=>({...C0(e),options:[e,t]});var M0="Arrow",rh=y.forwardRef((e,t)=>{const{children:n,width:r=10,height:s=5,...i}=e;return p.jsx(We.svg,{...i,ref:t,width:r,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:p.jsx("polygon",{points:"0,0 30,0 15,10"})})});rh.displayName=M0;var O0=rh;function V0(e){const[t,n]=y.useState(void 0);return pn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const i=s[0];let o,a;if("borderBoxSize"in i){const c=i.borderBoxSize,l=Array.isArray(c)?c[0]:c;o=l.inlineSize,a=l.blockSize}else o=e.offsetWidth,a=e.offsetHeight;n({width:o,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Ta="Popper",[sh,ih]=bo(Ta),[L0,oh]=sh(Ta),ah=e=>{const{__scopePopper:t,children:n}=e,[r,s]=y.useState(null);return p.jsx(L0,{scope:t,anchor:r,onAnchorChange:s,children:n})};ah.displayName=Ta;var ch="PopperAnchor",lh=y.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...s}=e,i=oh(ch,n),o=y.useRef(null),a=pt(t,o);return y.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||o.current)}),r?null:p.jsx(We.div,{...s,ref:a})});lh.displayName=ch;var Aa="PopperContent",[I0,F0]=sh(Aa),uh=y.forwardRef((e,t)=>{var ie,de,_e,Ee,me,Z;const{__scopePopper:n,side:r="bottom",sideOffset:s=0,align:i="center",alignOffset:o=0,arrowPadding:a=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:f=!1,updatePositionStrategy:m="optimized",onPlaced:g,...h}=e,x=oh(Aa,n),[v,b]=y.useState(null),S=pt(t,oe=>b(oe)),[A,_]=y.useState(null),C=V0(A),E=(C==null?void 0:C.width)??0,k=(C==null?void 0:C.height)??0,D=r+(i!=="center"?"-"+i:""),O=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},z=Array.isArray(l)?l:[l],R=z.length>0,F={padding:O,boundary:z.filter($0),altBoundary:R},{refs:$,floatingStyles:J,placement:K,isPositioned:W,middlewareData:U}=A0({strategy:"fixed",placement:D,whileElementsMounted:(...oe)=>y0(...oe,{animationFrame:m==="always"}),elements:{reference:x.anchor},middleware:[E0({mainAxis:s+k,alignmentAxis:o}),c&&P0({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?k0():void 0,...F}),c&&R0({...F}),N0({...F,apply:({elements:oe,rects:pe,availableWidth:Ne,availableHeight:qe})=>{const{width:nt,height:w}=pe.reference,T=oe.floating.style;T.setProperty("--radix-popper-available-width",`${Ne}px`),T.setProperty("--radix-popper-available-height",`${qe}px`),T.setProperty("--radix-popper-anchor-width",`${nt}px`),T.setProperty("--radix-popper-anchor-height",`${w}px`)}}),A&&D0({element:A,padding:a}),z0({arrowWidth:E,arrowHeight:k}),f&&j0({strategy:"referenceHidden",...F})]}),[Q,le]=hh(K),ue=Ht(g);pn(()=>{W&&(ue==null||ue())},[W,ue]);const Me=(ie=U.arrow)==null?void 0:ie.x,Ke=(de=U.arrow)==null?void 0:de.y,Oe=((_e=U.arrow)==null?void 0:_e.centerOffset)!==0,[ot,Be]=y.useState();return pn(()=>{v&&Be(window.getComputedStyle(v).zIndex)},[v]),p.jsx("div",{ref:$.setFloating,"data-radix-popper-content-wrapper":"",style:{...J,transform:W?J.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ot,"--radix-popper-transform-origin":[(Ee=U.transformOrigin)==null?void 0:Ee.x,(me=U.transformOrigin)==null?void 0:me.y].join(" "),...((Z=U.hide)==null?void 0:Z.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:p.jsx(I0,{scope:n,placedSide:Q,onArrowChange:_,arrowX:Me,arrowY:Ke,shouldHideArrow:Oe,children:p.jsx(We.div,{"data-side":Q,"data-align":le,...h,ref:S,style:{...h.style,animation:W?void 0:"none"}})})})});uh.displayName=Aa;var dh="PopperArrow",B0={top:"bottom",right:"left",bottom:"top",left:"right"},fh=y.forwardRef(function(t,n){const{__scopePopper:r,...s}=t,i=F0(dh,r),o=B0[i.placedSide];return p.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:p.jsx(O0,{...s,ref:n,style:{...s.style,display:"block"}})})});fh.displayName=dh;function $0(e){return e!==null}var z0=e=>({name:"transformOrigin",options:e,fn(t){var x,v,b;const{placement:n,rects:r,middlewareData:s}=t,o=((x=s.arrow)==null?void 0:x.centerOffset)!==0,a=o?0:e.arrowWidth,c=o?0:e.arrowHeight,[l,u]=hh(n),d={start:"0%",center:"50%",end:"100%"}[u],f=(((v=s.arrow)==null?void 0:v.x)??0)+a/2,m=(((b=s.arrow)==null?void 0:b.y)??0)+c/2;let g="",h="";return l==="bottom"?(g=o?d:`${f}px`,h=`${-c}px`):l==="top"?(g=o?d:`${f}px`,h=`${r.floating.height+c}px`):l==="right"?(g=`${-c}px`,h=o?d:`${m}px`):l==="left"&&(g=`${r.floating.width+c}px`,h=o?d:`${m}px`),{data:{x:g,y:h}}}});function hh(e){const[t,n="center"]=e.split("-");return[t,n]}var U0=ah,mh=lh,W0=uh,Z0=fh,Ca="Popover",[ph,gT]=bo(Ca,[ih]),Xr=ih(),[H0,sn]=ph(Ca),gh=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:s,onOpenChange:i,modal:o=!1}=e,a=Xr(t),c=y.useRef(null),[l,u]=y.useState(!1),[d=!1,f]=Jl({prop:r,defaultProp:s,onChange:i});return p.jsx(U0,{...a,children:p.jsx(H0,{scope:t,contentId:ps(),triggerRef:c,open:d,onOpenChange:f,onOpenToggle:y.useCallback(()=>f(m=>!m),[f]),hasCustomAnchor:l,onCustomAnchorAdd:y.useCallback(()=>u(!0),[]),onCustomAnchorRemove:y.useCallback(()=>u(!1),[]),modal:o,children:n})})};gh.displayName=Ca;var yh="PopoverAnchor",G0=y.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,s=sn(yh,n),i=Xr(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:a}=s;return y.useEffect(()=>(o(),()=>a()),[o,a]),p.jsx(mh,{...i,...r,ref:t})});G0.displayName=yh;var vh="PopoverTrigger",xh=y.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,s=sn(vh,n),i=Xr(n),o=pt(t,s.triggerRef),a=p.jsx(We.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":Th(s.open),...r,ref:o,onClick:Xe(e.onClick,s.onOpenToggle)});return s.hasCustomAnchor?a:p.jsx(mh,{asChild:!0,...i,children:a})});xh.displayName=vh;var Ea="PopoverPortal",[K0,q0]=ph(Ea,{forceMount:void 0}),bh=e=>{const{__scopePopover:t,forceMount:n,children:r,container:s}=e,i=sn(Ea,t);return p.jsx(K0,{scope:t,forceMount:n,children:p.jsx(Gn,{present:n||i.open,children:p.jsx(So,{asChild:!0,container:s,children:r})})})};bh.displayName=Ea;var zn="PopoverContent",wh=y.forwardRef((e,t)=>{const n=q0(zn,e.__scopePopover),{forceMount:r=n.forceMount,...s}=e,i=sn(zn,e.__scopePopover);return p.jsx(Gn,{present:r||i.open,children:i.modal?p.jsx(Y0,{...s,ref:t}):p.jsx(X0,{...s,ref:t})})});wh.displayName=zn;var Y0=y.forwardRef((e,t)=>{const n=sn(zn,e.__scopePopover),r=y.useRef(null),s=pt(t,r),i=y.useRef(!1);return y.useEffect(()=>{const o=r.current;if(o)return du(o)},[]),p.jsx(To,{as:Hn,allowPinchZoom:!0,children:p.jsx(_h,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Xe(e.onCloseAutoFocus,o=>{var a;o.preventDefault(),i.current||(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:Xe(e.onPointerDownOutside,o=>{const a=o.detail.originalEvent,c=a.button===0&&a.ctrlKey===!0,l=a.button===2||c;i.current=l},{checkForDefaultPrevented:!1}),onFocusOutside:Xe(e.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1})})})}),X0=y.forwardRef((e,t)=>{const n=sn(zn,e.__scopePopover),r=y.useRef(!1),s=y.useRef(!1);return p.jsx(_h,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,a;(o=e.onCloseAutoFocus)==null||o.call(e,i),i.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),r.current=!1,s.current=!1},onInteractOutside:i=>{var c,l;(c=e.onInteractOutside)==null||c.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const o=i.target;((l=n.triggerRef.current)==null?void 0:l.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&s.current&&i.preventDefault()}})}),_h=y.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:i,disableOutsidePointerEvents:o,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:u,...d}=e,f=sn(zn,n),m=Xr(n);return nu(),p.jsx(_o,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:i,children:p.jsx(wo,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>f.onOpenChange(!1),children:p.jsx(W0,{"data-state":Th(f.open),role:"dialog",id:f.contentId,...m,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),Sh="PopoverClose",J0=y.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,s=sn(Sh,n);return p.jsx(We.button,{type:"button",...r,ref:t,onClick:Xe(e.onClick,()=>s.onOpenChange(!1))})});J0.displayName=Sh;var Q0="PopoverArrow",e_=y.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,s=Xr(n);return p.jsx(Z0,{...s,...r,ref:t})});e_.displayName=Q0;function Th(e){return e?"open":"closed"}var t_=gh,n_=xh,r_=bh,Ah=wh;const s_=t_,i_=n_,Ch=y.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},s)=>p.jsx(r_,{children:p.jsx(Ah,{ref:s,align:t,sideOffset:n,className:ee("z-50 w-32 rounded-[2px] s bg-white p-4 text-popover-foreground drop-shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})}));Ch.displayName=Ah.displayName;const Fl=[{lang:je.RU},{lang:je.EN}],o_=({className:e})=>{const t=Ie(i=>i.lang),n=Ie(i=>i.setLang),[r,s]=y.useState(!1);return console.log(Fl.filter(i=>i.lang===t)),p.jsxs(s_,{open:r,onOpenChange:()=>s(!r),children:[p.jsxs(i_,{className:ee("flex items-center gap-2",e),children:[p.jsx("img",{src:t===je.RU?"/ru.svg":"/en.svg",alt:""}),t===je.RU?"Ру":"En",p.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.23021 8.01443C4.35919 7.70304 4.66305 7.5 5.00011 7.5H15.0001C15.3372 7.5 15.641 7.70304 15.77 8.01443C15.899 8.32583 15.8277 8.68426 15.5894 8.92259L10.5894 13.9226C10.2639 14.248 9.73629 14.248 9.41085 13.9226L4.41085 8.92259C4.17252 8.68426 4.10122 8.32583 4.23021 8.01443ZM7.01195 9.16667L10.0001 12.1548L12.9883 9.16667H7.01195Z",fill:"#2C2828"})})]}),p.jsx(Ch,{className:"flex flex-col gap-6",children:Fl.filter(i=>i.lang!==t).map((i,o)=>p.jsxs("div",{onClick:()=>{n(i.lang),s(!1)},className:"flex gap-3 py-1 items-center cursor-pointer",children:[p.jsx("img",{src:i.lang===je.RU?"/ru.svg":"/en.svg",alt:"flag"}),p.jsx("h5",{children:i.lang===je.RU?"Русский":"English"})]},o))})]})},xr=[{title:"Тематические направления выставки",bottom_text:` + Участники смогут продемонстрировать свои инновационные решения, наладить взаимовыгодные партнерства и выйти на новые рынки.`,data:[{title:"Текстильные машины и оборудование",img:"/theme/1.svg"},{title:"Одежда, обувь, кожаные изделия",img:"/theme/2.svg"},{title:"Переработка натуральных волокон",img:"/theme/3.svg"},{title:"Домашний текстиль и эко-текстиль",img:"/theme/4.svg"},{title:"Запасные части и вспомогательные материалы",img:"/theme/5.svg"},{title:"Химические средства и красители",img:"/theme/6.svg"},{title:"Аксессуары и швейная фурнитура",img:"/theme/7.svg"},{title:"Мода и дизайн",img:"/theme/8.svg"}]},{title:"Thematic areas of the exhibition",bottom_text:` + Participants will be able to showcase innovative solutions, establish mutually beneficial partnerships, and enter new markets.`,data:[{title:"Textile machinery and equipment",img:"/theme/1.svg"},{title:"Clothing, footwear, leather goods",img:"/theme/2.svg"},{title:"Natural fibre processing",img:"/theme/3.svg"},{title:"Home textiles and eco-textiles",img:"/theme/4.svg"},{title:"Spare parts and auxiliary materials",img:"/theme/5.svg"},{title:"Chemicals and dyes",img:"/theme/6.svg"},{title:"Accessories and sewing supplies",img:"/theme/7.svg"},{title:"Fashion and design",img:"/theme/8.svg"}]}],yT=({className:e})=>{const t=Ie(n=>n.lang);return p.jsx("section",{className:ee("relative w-full bg-[#FDEDEE] -z-10 py-10",e),children:p.jsxs(Ge,{children:[p.jsx("h3",{className:"h2 mb-4",children:xr[ae(t)].title}),p.jsx("div",{className:"grid md:grid-cols-4 grid-cols-2 gap-6",children:xr[ae(t)].data.map(n=>p.jsx(Zu,{className:"!bg-[#F5F4F4]",...n},n.title))}),p.jsxs("div",{className:"flex items-center gap-3 mt-8 text-on_surface_v text-lg",children:[p.jsx("div",{className:"md:w-1 w-4 md:h-[38px] h-40 bg-primary_09"}),p.jsx("p",{className:"text-18 !text-primary_09",children:xr[ae(t)].bottom_text})]})]})})},Fs=[{title:"Время выставки",data:[{name:"Монтаж выставки",date:"12 мая – 10 июня 2025 года"},{name:"Работа",date:"11–13 июня 2025 года"},{name:"Демонтаж",date:"13–14 июня 2025 года"}]},{title:"Exhibition time",data:[{name:"Exhibition assembly",date:"12 may — 10 june 2025"},{name:"Exhibition days",date:"11–13 june 2025"},{name:"Exhibition dismantling",date:"13–14 june 2025"}]}],vT=({className:e})=>{const t=Ie(n=>n.lang);return p.jsx("section",{className:ee("bg-bg_surface_container py-10 md:py-[160px]",e),children:p.jsxs(Ge,{children:[p.jsx("h2",{className:"h2 mb-6",children:Fs[ae(t)].title}),p.jsx("div",{className:"flex flex-col md:flex-row items-center gap-6",children:Fs[ae(t)].data.map(n=>y.createElement(Hu,{bottomClassName:"!bg-white rounded-b-[2px]",...n,key:n.name,className:"w-full"}))})]})})},Bl=[{title:"Место проведения",data:["Выставочный центр Торгово-промышленной палаты Туркменистана – это современная площадка для проведения международных выставок, конференций, форумов и деловых встреч","Центр оснащен передовыми техническими решениями, включая мультимедийное оборудование, системы звукоусиления и освещения, конференц-залы с синхронным переводом, а также удобные зоны для переговоров. Просторные выставочные павильоны обеспечивают комфортные условия для демонстрации продукции и услуг. "]},{title:"Venue",data:["The Exhibition Centre of the Chamber of Commerce and Industry of Turkmenistan is a modern venue designed for international exhibitions, conferences, forums, and business meetings.","The centre is equipped with cutting-edge technical solutions, including multimedia equipment, sound and lighting systems, conference rooms with simultaneous translation, and comfortable areas for negotiations. Spacious exhibition pavilions provide ideal conditions for showcasing products and services."]}],xT=({className:e})=>{const t=Ie(n=>n.lang);return p.jsx("section",{className:ee("gap-6 relative overflow-hidden",e),children:p.jsxs(Ge,{className:"md:py-20 py-10 grid-cols-1 lg:grid-cols-2 lg:gap-12 gap-0 grid",children:[p.jsxs("div",{className:"flex-[0_0_50%]",children:[p.jsx("h3",{className:"h2 mb-6",children:Bl[ae(t)].title}),p.jsx("div",{className:"text-lg flex flex-col gap-6 text-on_surface_v normal mb-10",children:Bl[ae(t)].data.map(n=>p.jsx("p",{children:n},n))})]}),p.jsx("div",{className:"h-full max-size-[600px] flex-[0_0_50%]",children:p.jsx("img",{src:"/about-place.jpg",alt:"",className:"size-full object-contain"})})]})})},hs=[{title:"Приглашение к участию",p:"Министерство текстильной промышленности Туркменистана приглашает бизнес-сообщество со всего мира присоединиться к этому уникальному событию, которое станет важным шагом к укреплению позиций Туркменистана на глобальной экономической арене.",button1:"Забронировать стенд",button2:"Стать спонсором"},{title:"Invitation to Participate",p:"Ministry of Textile Industry of Turkmenistan invites the global business community to join this unique event, which will be a significant step toward strengthening Turkmenistan’s position on the global economic stage",button1:"Book a stand",button2:"Become a sponsor"}],bT=({className:e})=>{const t=Ie(n=>n.lang);return p.jsxs("section",{className:ee("md:py-20 py-10 relative overflow-hidden",e),children:[p.jsx("img",{src:"/CTA.png",className:"absolute top-0 left-0 size-full -z-10 object-cover"}),p.jsxs(Ge,{children:[p.jsx("h3",{className:"h2 text-center !text-on_primary mb-6",children:hs[ae(t)].title}),p.jsx("p",{className:"text-center md:text-lg text-sm text-primary_03 max-w-[828px] px-5 mx-auto mb-10",children:hs[ae(t)].p}),p.jsxs("div",{className:"flex flex-col md:flex-row items-center gap-6",children:[p.jsx(Re,{to:"/stend-form",className:"w-full",children:p.jsx(tt,{className:"bg-reverse_primary w-full text-primary hover:bg-reverse_primary/90",children:hs[ae(t)].button1})}),p.jsx(Re,{to:"/become-sponsor",className:"w-full",children:p.jsx(tt,{className:"bg-reverse_primary w-full hover:bg-reverse_primary/90 text-primary",children:hs[ae(t)].button2})})]})]})]})},jt=[{title:"Выставка-ярмарка «TurkmenTextile Expo-2025»",p:[`Международная выставка-ярмарка, которая объединит мировых лидеров отрасли, инновационных производителей и творческих дизайнеров. Это уникальная платформа для развития вашего бизнеса в сфере текстиля и моды + `,"Основная цель выставки-ярмарки – позиционирование Туркменистана как ключевого центра международной текстильной и модной индустрии, демонстрация национального ткаческого наследия, содействие внедрению инноваций в отрасли и укрепление международного сотрудничества.","Основная цель выставки-ярмарки – позиционирование Туркменистана как ключевого центра международной текстильной и модной индустрии, демонстрация национального ткаческого наследия, содействие внедрению инноваций в отрасли и укрепление международного сотрудничества.","Основная цель выставки-ярмарки – позиционирование Туркменистана как ключевого центра международной текстильной и модной индустрии, демонстрация национального ткаческого наследия, содействие внедрению инноваций в отрасли и укрепление международного сотрудничества."],title_2:"Почему вам стоить посетить? ",subtitle_2:"TurkmenTextile Expo-2025 открывает широкие перспективы для участников:",p_2:["Деловые встречи с руководителями текстильной отрасли Туркменистана","Возможность установить деловые отношения с предприятиями и фабриками текстильной индустрии Туркменистана для развития экспортных направлений.","Расширение деловых связей — уникальная возможность для B2B и B2G-встреч, заключения торговых соглашений и установления стратегических партнёрств.","Обучение и развитие — мастер-классы и лекции от ведущих мировых экспертов помогут участникам углубить знания и освоить современные подходы в области текстильной индустрии.","Культурный обмен — возможность продемонстрировать богатое текстильное наследие Туркменистана и вдохновиться культурными традициями других стран."],title_3:"Партнёрство и спонсорство",subtitle_3:"TurkmenTextile Expo-2025 приглашает к сотрудничеству международные организации, ассоциации и бренды для продвижения своих продуктов и услуг. Партнёры получат:",subtitle_4:"Партнёры получат:",p_3:["Признание на международной арене — участие в масштабном событии, привлекающем ведущих игроков текстильной и модной индустрий.","Рекламные возможности — интеграция бренда в маркетинговую кампанию выставки, включая digital и офлайн-каналы.","Прямой доступ к аудитории — взаимодействие с производителями, дизайнерами, поставщиками оборудования и покупателями.","Вклад в развитие индустрии — поддержка инноваций, устойчивых практик и культурного наследия."]},{title:"TurkmenTextile Expo-2025",p:["An international exhibition will unite global industry leaders, innovative manufacturers, and creative designers. This is a unique platform for developing your business in the textile and fashion sectors.","The main goal of the exhibition is to position Turkmenistan as a key centre of the international textile and fashion industry, showcase the national weaving heritage, promote the implementation of innovations in the industry, and strengthen international cooperation.","Here, you will have the opportunity to network with leading industry players, present your products or services, learn about the latest market trends, and find new partners and clients.","Here, you will have the opportunity to network with leading industry players, present your products or services, learn about the latest market trends, and find new partners and clients."],title_2:"Why participate?",subtitle_2:"TurkmenTextile Expo-2025 opens wide prospects for participants:",p_2:["Business meetings with the heads of Turkmenistan's textile industry.","The opportunity to establish business relationships with textile enterprises and factories in Turkmenistan to develop export directions.","Expanding business networks — a unique opportunity for B2B and B2G meetings, concluding trade agreements, and establishing strategic partnerships.","Training and development — workshops and lectures from leading global experts will help participants deepen their knowledge and master modern approaches in the textile industry.","Cultural exchange — the chance to showcase Turkmenistan's rich textile heritage and be inspired by the cultural traditions of other countries."],title_3:"Partnership and Sponsorship",subtitle_3:` + TurkmenTextile Expo-2025 invites international organizations, associations, and brands to collaborate in promoting their products and services. + `,subtitle_4:"Partners will receive:",p_3:["Recognition on the international stage — participation in a major event attracting leading players from the textile and fashion industries.","Advertising opportunities — integration of the brand into the exhibition's marketing campaign, including digital and offline channels.","Direct access to the audience — interaction with manufacturers, designers, equipment suppliers, and buyers.","Contribution to industry development — support for innovations, sustainable practices, and cultural heritage."]}],wT=()=>{const e=Ie(t=>t.lang);return p.jsxs(Ge,{className:"flex flex-col md:my-20 my-10 gap-16",children:[p.jsxs("div",{className:"flex flex-col gap-6",children:[p.jsx("h2",{className:"h2",children:jt[ae(e)].title}),p.jsx("div",{className:"flex flex-col gap-3",children:jt[ae(e)].p.map(t=>p.jsx("p",{className:"p",children:t}))})]}),p.jsxs("div",{className:"flex flex-col gap-6",children:[p.jsx("h3",{className:"h2",children:jt[ae(e)].title_2}),p.jsxs("h4",{className:"p",children:[jt[ae(e)].subtitle_2," "]}),p.jsx("ol",{type:"1",className:"list-decimal pl-8 flex flex-col gap-3 ",children:jt[ae(e)].p_2.map(t=>p.jsx("li",{className:"p",children:t}))})]}),p.jsxs("div",{className:"flex flex-col gap-6",children:[p.jsx("h2",{className:"h2",children:jt[ae(e)].title_3}),p.jsx("h3",{className:"p",children:jt[ae(e)].subtitle_3}),p.jsx("h3",{children:jt[ae(e)].subtitle_4}),p.jsx("ul",{className:"list-disc pl-8 flex flex-col gap-3 p",children:jt[ae(e)].p_3.map(t=>p.jsx("li",{children:t},t))})]})]})};function a_(e){return Object.prototype.toString.call(e)==="[object Object]"}function $l(e){return a_(e)||Array.isArray(e)}function c_(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Pa(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;const s=JSON.stringify(Object.keys(e.breakpoints||{})),i=JSON.stringify(Object.keys(t.breakpoints||{}));return s!==i?!1:n.every(o=>{const a=e[o],c=t[o];return typeof a=="function"?`${a}`==`${c}`:!$l(a)||!$l(c)?a===c:Pa(a,c)})}function zl(e){return e.concat().sort((t,n)=>t.name>n.name?1:-1).map(t=>t.options)}function l_(e,t){if(e.length!==t.length)return!1;const n=zl(e),r=zl(t);return n.every((s,i)=>{const o=r[i];return Pa(s,o)})}function ka(e){return typeof e=="number"}function mo(e){return typeof e=="string"}function ai(e){return typeof e=="boolean"}function Ul(e){return Object.prototype.toString.call(e)==="[object Object]"}function be(e){return Math.abs(e)}function Ra(e){return Math.sign(e)}function br(e,t){return be(e-t)}function u_(e,t){if(e===0||t===0||be(e)<=be(t))return 0;const n=br(be(e),be(t));return be(n/e)}function d_(e){return Math.round(e*100)/100}function kr(e){return Rr(e).map(Number)}function ut(e){return e[Jr(e)]}function Jr(e){return Math.max(0,e.length-1)}function Na(e,t){return t===Jr(e)}function Wl(e,t=0){return Array.from(Array(e),(n,r)=>t+r)}function Rr(e){return Object.keys(e)}function Eh(e,t){return[e,t].reduce((n,r)=>(Rr(r).forEach(s=>{const i=n[s],o=r[s],a=Ul(i)&&Ul(o);n[s]=a?Eh(i,o):o}),n),{})}function po(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function f_(e,t){const n={start:r,center:s,end:i};function r(){return 0}function s(c){return i(c)/2}function i(c){return t-c}function o(c,l){return mo(e)?n[e](c):e(t,c,l)}return{measure:o}}function Nr(){let e=[];function t(s,i,o,a={passive:!0}){let c;if("addEventListener"in s)s.addEventListener(i,o,a),c=()=>s.removeEventListener(i,o,a);else{const l=s;l.addListener(o),c=()=>l.removeListener(o)}return e.push(c),r}function n(){e=e.filter(s=>s())}const r={add:t,clear:n};return r}function h_(e,t,n,r){const s=Nr(),i=1e3/60;let o=null,a=0,c=0;function l(){s.add(e,"visibilitychange",()=>{e.hidden&&g()})}function u(){m(),s.clear()}function d(x){if(!c)return;o||(o=x,n(),n());const v=x-o;for(o=x,a+=v;a>=i;)n(),a-=i;const b=a/i;r(b),c&&(c=t.requestAnimationFrame(d))}function f(){c||(c=t.requestAnimationFrame(d))}function m(){t.cancelAnimationFrame(c),o=null,a=0,c=0}function g(){o=null,a=0}return{init:l,destroy:u,start:f,stop:m,update:n,render:r}}function m_(e,t){const n=t==="rtl",r=e==="y",s=r?"y":"x",i=r?"x":"y",o=!r&&n?-1:1,a=u(),c=d();function l(g){const{height:h,width:x}=g;return r?h:x}function u(){return r?"top":n?"right":"left"}function d(){return r?"bottom":n?"left":"right"}function f(g){return g*o}return{scroll:s,cross:i,startEdge:a,endEdge:c,measureSize:l,direction:f}}function vn(e=0,t=0){const n=be(e-t);function r(l){return lt}function i(l){return r(l)||s(l)}function o(l){return i(l)?r(l)?e:t:l}function a(l){return n?l-n*Math.ceil((l-t)/n):l}return{length:n,max:t,min:e,constrain:o,reachedAny:i,reachedMax:s,reachedMin:r,removeOffset:a}}function Ph(e,t,n){const{constrain:r}=vn(0,e),s=e+1;let i=o(t);function o(f){return n?be((s+f)%s):r(f)}function a(){return i}function c(f){return i=o(f),d}function l(f){return u().set(a()+f)}function u(){return Ph(e,a(),n)}const d={get:a,set:c,add:l,clone:u};return d}function p_(e,t,n,r,s,i,o,a,c,l,u,d,f,m,g,h,x,v,b){const{cross:S,direction:A}=e,_=["INPUT","SELECT","TEXTAREA"],C={passive:!1},E=Nr(),k=Nr(),D=vn(50,225).constrain(m.measure(20)),O={mouse:300,touch:400},z={mouse:500,touch:600},R=g?43:25;let F=!1,$=0,J=0,K=!1,W=!1,U=!1,Q=!1;function le(Z){if(!b)return;function oe(Ne){(ai(b)||b(Z,Ne))&&Be(Ne)}const pe=t;E.add(pe,"dragstart",Ne=>Ne.preventDefault(),C).add(pe,"touchmove",()=>{},C).add(pe,"touchend",()=>{}).add(pe,"touchstart",oe).add(pe,"mousedown",oe).add(pe,"touchcancel",de).add(pe,"contextmenu",de).add(pe,"click",_e,!0)}function ue(){E.clear(),k.clear()}function Me(){const Z=Q?n:t;k.add(Z,"touchmove",ie,C).add(Z,"touchend",de).add(Z,"mousemove",ie,C).add(Z,"mouseup",de)}function Ke(Z){const oe=Z.nodeName||"";return _.includes(oe)}function Oe(){return(g?z:O)[Q?"mouse":"touch"]}function ot(Z,oe){const pe=d.add(Ra(Z)*-1),Ne=u.byDistance(Z,!g).distance;return g||be(Z)=2,!(oe&&Z.button!==0)&&(Ke(Z.target)||(K=!0,i.pointerDown(Z),l.useFriction(0).useDuration(0),s.set(o),Me(),$=i.readPoint(Z),J=i.readPoint(Z,S),f.emit("pointerDown")))}function ie(Z){if(!po(Z,r)&&Z.touches.length>=2)return de(Z);const pe=i.readPoint(Z),Ne=i.readPoint(Z,S),qe=br(pe,$),nt=br(Ne,J);if(!W&&!Q&&(!Z.cancelable||(W=qe>nt,!W)))return de(Z);const w=i.pointerMove(Z);qe>h&&(U=!0),l.useFriction(.3).useDuration(.75),a.start(),s.add(A(w)),Z.preventDefault()}function de(Z){const pe=u.byDistance(0,!1).index!==d.get(),Ne=i.pointerUp(Z)*Oe(),qe=ot(A(Ne),pe),nt=u_(Ne,qe),w=R-10*nt,T=v+nt/50;W=!1,K=!1,k.clear(),l.useDuration(w).useFriction(T),c.distance(qe,!g),Q=!1,f.emit("pointerUp")}function _e(Z){U&&(Z.stopPropagation(),Z.preventDefault(),U=!1)}function Ee(){return K}return{init:le,destroy:ue,pointerDown:Ee}}function g_(e,t){let r,s;function i(d){return d.timeStamp}function o(d,f){const g=`client${(f||e.scroll)==="x"?"X":"Y"}`;return(po(d,t)?d:d.touches[0])[g]}function a(d){return r=d,s=d,o(d)}function c(d){const f=o(d)-o(s),m=i(d)-i(r)>170;return s=d,m&&(r=d),f}function l(d){if(!r||!s)return 0;const f=o(s)-o(r),m=i(d)-i(r),g=i(d)-i(s)>170,h=f/m;return m&&!g&&be(h)>.1?h:0}return{pointerDown:a,pointerMove:c,pointerUp:l,readPoint:o}}function y_(){function e(n){const{offsetTop:r,offsetLeft:s,offsetWidth:i,offsetHeight:o}=n;return{top:r,right:s+i,bottom:r+o,left:s,width:i,height:o}}return{measure:e}}function v_(e){function t(r){return e*(r/100)}return{measure:t}}function x_(e,t,n,r,s,i,o){const a=[e].concat(r);let c,l,u=[],d=!1;function f(x){return s.measureSize(o.measure(x))}function m(x){if(!i)return;l=f(e),u=r.map(f);function v(b){for(const S of b){if(d)return;const A=S.target===e,_=r.indexOf(S.target),C=A?l:u[_],E=f(A?e:r[_]);if(be(E-C)>=.5){x.reInit(),t.emit("resize");break}}}c=new ResizeObserver(b=>{(ai(i)||i(x,b))&&v(b)}),n.requestAnimationFrame(()=>{a.forEach(b=>c.observe(b))})}function g(){d=!0,c&&c.disconnect()}return{init:m,destroy:g}}function b_(e,t,n,r,s,i){let o=0,a=0,c=s,l=i,u=e.get(),d=0;function f(){const C=r.get()-e.get(),E=!c;let k=0;return E?(o=0,n.set(r),e.set(r),k=C):(n.set(e),o+=C/c,o*=l,u+=o,e.add(o),k=u-d),a=Ra(k),d=u,_}function m(){const C=r.get()-t.get();return be(C)<.001}function g(){return c}function h(){return a}function x(){return o}function v(){return S(s)}function b(){return A(i)}function S(C){return c=C,_}function A(C){return l=C,_}const _={direction:h,duration:g,velocity:x,seek:f,settled:m,useBaseFriction:b,useBaseDuration:v,useFriction:A,useDuration:S};return _}function w_(e,t,n,r,s){const i=s.measure(10),o=s.measure(50),a=vn(.1,.99);let c=!1;function l(){return!(c||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function u(m){if(!l())return;const g=e.reachedMin(t.get())?"min":"max",h=be(e[g]-t.get()),x=n.get()-t.get(),v=a.constrain(h/o);n.subtract(x*v),!m&&be(x){const{min:x,max:v}=i,b=i.constrain(g),S=!h,A=Na(n,h);return S?v:A||l(x,b)?x:l(v,b)?v:b}).map(g=>parseFloat(g.toFixed(3)))}function f(){if(t<=e+s)return[i.max];if(r==="keepSnaps")return o;const{min:g,max:h}=a;return o.slice(g,h)}return{snapsContained:c,scrollContainLimit:a}}function S_(e,t,n){const r=t[0],s=n?r-e:ut(t);return{limit:vn(s,r)}}function T_(e,t,n,r){const i=t.min+.1,o=t.max+.1,{reachedMin:a,reachedMax:c}=vn(i,o);function l(f){return f===1?c(n.get()):f===-1?a(n.get()):!1}function u(f){if(!l(f))return;const m=e*(f*-1);r.forEach(g=>g.add(m))}return{loop:u}}function A_(e){const{max:t,length:n}=e;function r(i){const o=i-t;return n?o/-n:0}return{get:r}}function C_(e,t,n,r,s){const{startEdge:i,endEdge:o}=e,{groupSlides:a}=s,c=d().map(t.measure),l=f(),u=m();function d(){return a(r).map(h=>ut(h)[o]-h[0][i]).map(be)}function f(){return r.map(h=>n[i]-h[i]).map(h=>-be(h))}function m(){return a(l).map(h=>h[0]).map((h,x)=>h+c[x])}return{snaps:l,snapsAligned:u}}function E_(e,t,n,r,s,i){const{groupSlides:o}=s,{min:a,max:c}=r,l=u();function u(){const f=o(i),m=!e||t==="keepSnaps";return n.length===1?[i]:m?f:f.slice(a,c).map((g,h,x)=>{const v=!h,b=Na(x,h);if(v){const S=ut(x[0])+1;return Wl(S)}if(b){const S=Jr(i)-ut(x)[0]+1;return Wl(S,ut(x)[0])}return g})}return{slideRegistry:l}}function P_(e,t,n,r,s){const{reachedAny:i,removeOffset:o,constrain:a}=r;function c(g){return g.concat().sort((h,x)=>be(h)-be(x))[0]}function l(g){const h=e?o(g):a(g),x=t.map((b,S)=>({diff:u(b-h,0),index:S})).sort((b,S)=>be(b.diff)-be(S.diff)),{index:v}=x[0];return{index:v,distance:h}}function u(g,h){const x=[g,g+n,g-n];if(!e)return g;if(!h)return c(x);const v=x.filter(b=>Ra(b)===h);return v.length?c(v):ut(x)-n}function d(g,h){const x=t[g]-s.get(),v=u(x,h);return{index:g,distance:v}}function f(g,h){const x=s.get()+g,{index:v,distance:b}=l(x),S=!e&&i(x);if(!h||S)return{index:v,distance:g};const A=t[v]-b,_=g+u(A,0);return{index:v,distance:_}}return{byDistance:f,byIndex:d,shortcut:u}}function k_(e,t,n,r,s,i,o){function a(d){const f=d.distance,m=d.index!==t.get();i.add(f),f&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),m&&(n.set(t.get()),t.set(d.index),o.emit("select"))}function c(d,f){const m=s.byDistance(d,f);a(m)}function l(d,f){const m=t.clone().set(d),g=s.byIndex(m.get(),f);a(g)}return{distance:c,index:l}}function R_(e,t,n,r,s,i,o,a){const c={passive:!0,capture:!0};let l=0;function u(m){if(!a)return;function g(h){if(new Date().getTime()-l>10)return;o.emit("slideFocusStart"),e.scrollLeft=0;const b=n.findIndex(S=>S.includes(h));ka(b)&&(s.useDuration(0),r.index(b,0),o.emit("slideFocus"))}i.add(document,"keydown",d,!1),t.forEach((h,x)=>{i.add(h,"focus",v=>{(ai(a)||a(m,v))&&g(x)},c)})}function d(m){m.code==="Tab"&&(l=new Date().getTime())}return{init:u}}function ur(e){let t=e;function n(){return t}function r(c){t=o(c)}function s(c){t+=o(c)}function i(c){t-=o(c)}function o(c){return ka(c)?c:c.get()}return{get:n,set:r,add:s,subtract:i}}function kh(e,t){const n=e.scroll==="x"?o:a,r=t.style;let s=null,i=!1;function o(f){return`translate3d(${f}px,0px,0px)`}function a(f){return`translate3d(0px,${f}px,0px)`}function c(f){if(i)return;const m=d_(e.direction(f));m!==s&&(r.transform=n(m),s=m)}function l(f){i=!f}function u(){i||(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:u,to:c,toggleActive:l}}function N_(e,t,n,r,s,i,o,a,c){const u=kr(s),d=kr(s).reverse(),f=v().concat(b());function m(E,k){return E.reduce((D,O)=>D-s[O],k)}function g(E,k){return E.reduce((D,O)=>m(D,k)>0?D.concat([O]):D,[])}function h(E){return i.map((k,D)=>({start:k-r[D]+.5+E,end:k+t-.5+E}))}function x(E,k,D){const O=h(k);return E.map(z=>{const R=D?0:-n,F=D?n:0,$=D?"end":"start",J=O[z][$];return{index:z,loopPoint:J,slideLocation:ur(-1),translate:kh(e,c[z]),target:()=>a.get()>J?R:F}})}function v(){const E=o[0],k=g(d,E);return x(k,n,!1)}function b(){const E=t-o[0]-1,k=g(u,E);return x(k,-n,!0)}function S(){return f.every(({index:E})=>{const k=u.filter(D=>D!==E);return m(k,t)<=.1})}function A(){f.forEach(E=>{const{target:k,translate:D,slideLocation:O}=E,z=k();z!==O.get()&&(D.to(z),O.set(z))})}function _(){f.forEach(E=>E.translate.clear())}return{canLoop:S,clear:_,loop:A,loopPoints:f}}function j_(e,t,n){let r,s=!1;function i(c){if(!n)return;function l(u){for(const d of u)if(d.type==="childList"){c.reInit(),t.emit("slidesChanged");break}}r=new MutationObserver(u=>{s||(ai(n)||n(c,u))&&l(u)}),r.observe(e,{childList:!0})}function o(){r&&r.disconnect(),s=!0}return{init:i,destroy:o}}function D_(e,t,n,r){const s={};let i=null,o=null,a,c=!1;function l(){a=new IntersectionObserver(g=>{c||(g.forEach(h=>{const x=t.indexOf(h.target);s[x]=h}),i=null,o=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:r}),t.forEach(g=>a.observe(g))}function u(){a&&a.disconnect(),c=!0}function d(g){return Rr(s).reduce((h,x)=>{const v=parseInt(x),{isIntersecting:b}=s[v];return(g&&b||!g&&!b)&&h.push(v),h},[])}function f(g=!0){if(g&&i)return i;if(!g&&o)return o;const h=d(g);return g&&(i=h),g||(o=h),h}return{init:l,destroy:u,get:f}}function M_(e,t,n,r,s,i){const{measureSize:o,startEdge:a,endEdge:c}=e,l=n[0]&&s,u=g(),d=h(),f=n.map(o),m=x();function g(){if(!l)return 0;const b=n[0];return be(t[a]-b[a])}function h(){if(!l)return 0;const b=i.getComputedStyle(ut(r));return parseFloat(b.getPropertyValue(`margin-${c}`))}function x(){return n.map((b,S,A)=>{const _=!S,C=Na(A,S);return _?f[S]+u:C?f[S]+d:A[S+1][a]-b[a]}).map(be)}return{slideSizes:f,slideSizesWithGaps:m,startGap:u,endGap:d}}function O_(e,t,n,r,s,i,o,a,c){const{startEdge:l,endEdge:u,direction:d}=e,f=ka(n);function m(v,b){return kr(v).filter(S=>S%b===0).map(S=>v.slice(S,S+b))}function g(v){return v.length?kr(v).reduce((b,S,A)=>{const _=ut(b)||0,C=_===0,E=S===Jr(v),k=s[l]-i[_][l],D=s[l]-i[S][u],O=!r&&C?d(o):0,z=!r&&E?d(a):0,R=be(D-z-(k+O));return A&&R>t+c&&b.push(S),E&&b.push(v.length),b},[]).map((b,S,A)=>{const _=Math.max(A[S-1]||0);return v.slice(_,b)}):[]}function h(v){return f?m(v,n):g(v)}return{groupSlides:h}}function V_(e,t,n,r,s,i,o){const{align:a,axis:c,direction:l,startIndex:u,loop:d,duration:f,dragFree:m,dragThreshold:g,inViewThreshold:h,slidesToScroll:x,skipSnaps:v,containScroll:b,watchResize:S,watchSlides:A,watchDrag:_,watchFocus:C}=i,E=2,k=y_(),D=k.measure(t),O=n.map(k.measure),z=m_(c,l),R=z.measureSize(D),F=v_(R),$=f_(a,R),J=!d&&!!b,K=d||!!b,{slideSizes:W,slideSizesWithGaps:U,startGap:Q,endGap:le}=M_(z,D,O,n,K,s),ue=O_(z,R,x,d,D,O,Q,le,E),{snaps:Me,snapsAligned:Ke}=C_(z,$,D,O,ue),Oe=-ut(Me)+ut(U),{snapsContained:ot,scrollContainLimit:Be}=__(R,Oe,Ke,b,E),ie=J?ot:Ke,{limit:de}=S_(Oe,ie,d),_e=Ph(Jr(ie),u,d),Ee=_e.clone(),me=kr(n),Z=({dragHandler:vt,scrollBody:on,scrollBounds:er,options:{loop:an}})=>{an||er.constrain(vt.pointerDown()),on.seek()},oe=({scrollBody:vt,translate:on,location:er,offsetLocation:an,previousLocation:li,scrollLooper:ts,slideLooper:$h,dragHandler:zh,animation:Uh,eventHandler:Da,scrollBounds:Wh,options:{loop:Ma}},Oa)=>{const Va=vt.settled(),Zh=!Wh.shouldConstrain(),La=Ma?Va:Va&&Zh;La&&!zh.pointerDown()&&(Uh.stop(),Da.emit("settle")),La||Da.emit("scroll");const Hh=er.get()*Oa+li.get()*(1-Oa);an.set(Hh),Ma&&(ts.loop(vt.direction()),$h.loop()),on.to(an.get())},pe=h_(r,s,()=>Z(Qn),vt=>oe(Qn,vt)),Ne=.68,qe=ie[_e.get()],nt=ur(qe),w=ur(qe),T=ur(qe),P=ur(qe),L=b_(nt,T,w,P,f,Ne),M=P_(d,ie,Oe,de,P),j=k_(pe,_e,Ee,L,M,P,o),G=A_(de),ne=Nr(),Pe=D_(t,n,o,h),{slideRegistry:Se}=E_(J,b,ie,Be,ue,me),yt=R_(e,n,Se,j,L,ne,o,C),Qn={ownerDocument:r,ownerWindow:s,eventHandler:o,containerRect:D,slideRects:O,animation:pe,axis:z,dragHandler:p_(z,e,r,s,P,g_(z,s),nt,pe,j,L,M,_e,o,F,m,g,v,Ne,_),eventStore:ne,percentOfView:F,index:_e,indexPrevious:Ee,limit:de,location:nt,offsetLocation:T,previousLocation:w,options:i,resizeHandler:x_(t,o,s,n,z,S,k),scrollBody:L,scrollBounds:w_(de,T,P,L,F),scrollLooper:T_(Oe,de,T,[nt,T,w,P]),scrollProgress:G,scrollSnapList:ie.map(G.get),scrollSnaps:ie,scrollTarget:M,scrollTo:j,slideLooper:N_(z,R,Oe,W,U,Me,ie,T,n),slideFocus:yt,slidesHandler:j_(t,o,A),slidesInView:Pe,slideIndexes:me,slideRegistry:Se,slidesToScroll:ue,target:P,translate:kh(z,t)};return Qn}function L_(){let e={},t;function n(l){t=l}function r(l){return e[l]||[]}function s(l){return r(l).forEach(u=>u(t,l)),c}function i(l,u){return e[l]=r(l).concat([u]),c}function o(l,u){return e[l]=r(l).filter(d=>d!==u),c}function a(){e={}}const c={init:n,emit:s,off:o,on:i,clear:a};return c}const I_={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function F_(e){function t(i,o){return Eh(i,o||{})}function n(i){const o=i.breakpoints||{},a=Rr(o).filter(c=>e.matchMedia(c).matches).map(c=>o[c]).reduce((c,l)=>t(c,l),{});return t(i,a)}function r(i){return i.map(o=>Rr(o.breakpoints||{})).reduce((o,a)=>o.concat(a),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:r}}function B_(e){let t=[];function n(i,o){return t=o.filter(({options:a})=>e.optionsAtMedia(a).active!==!1),t.forEach(a=>a.init(i,e)),o.reduce((a,c)=>Object.assign(a,{[c.name]:c}),{})}function r(){t=t.filter(i=>i.destroy())}return{init:n,destroy:r}}function Bs(e,t,n){const r=e.ownerDocument,s=r.defaultView,i=F_(s),o=B_(i),a=Nr(),c=L_(),{mergeOptions:l,optionsAtMedia:u,optionsMediaQueries:d}=i,{on:f,off:m,emit:g}=c,h=z;let x=!1,v,b=l(I_,Bs.globalOptions),S=l(b),A=[],_,C,E;function k(){const{container:me,slides:Z}=S;C=(mo(me)?e.querySelector(me):me)||e.children[0];const pe=mo(Z)?C.querySelectorAll(Z):Z;E=[].slice.call(pe||C.children)}function D(me){const Z=V_(e,C,E,r,s,me,c);if(me.loop&&!Z.slideLooper.canLoop()){const oe=Object.assign({},me,{loop:!1});return D(oe)}return Z}function O(me,Z){x||(b=l(b,me),S=u(b),A=Z||A,k(),v=D(S),d([b,...A.map(({options:oe})=>oe)]).forEach(oe=>a.add(oe,"change",z)),S.active&&(v.translate.to(v.location.get()),v.animation.init(),v.slidesInView.init(),v.slideFocus.init(Ee),v.eventHandler.init(Ee),v.resizeHandler.init(Ee),v.slidesHandler.init(Ee),v.options.loop&&v.slideLooper.loop(),C.offsetParent&&E.length&&v.dragHandler.init(Ee),_=o.init(Ee,A)))}function z(me,Z){const oe=ue();R(),O(l({startIndex:oe},me),Z),c.emit("reInit")}function R(){v.dragHandler.destroy(),v.eventStore.clear(),v.translate.clear(),v.slideLooper.clear(),v.resizeHandler.destroy(),v.slidesHandler.destroy(),v.slidesInView.destroy(),v.animation.destroy(),o.destroy(),a.clear()}function F(){x||(x=!0,a.clear(),R(),c.emit("destroy"),c.clear())}function $(me,Z,oe){!S.active||x||(v.scrollBody.useBaseFriction().useDuration(Z===!0?0:S.duration),v.scrollTo.index(me,oe||0))}function J(me){const Z=v.index.add(1).get();$(Z,me,-1)}function K(me){const Z=v.index.add(-1).get();$(Z,me,1)}function W(){return v.index.add(1).get()!==ue()}function U(){return v.index.add(-1).get()!==ue()}function Q(){return v.scrollSnapList}function le(){return v.scrollProgress.get(v.location.get())}function ue(){return v.index.get()}function Me(){return v.indexPrevious.get()}function Ke(){return v.slidesInView.get()}function Oe(){return v.slidesInView.get(!1)}function ot(){return _}function Be(){return v}function ie(){return e}function de(){return C}function _e(){return E}const Ee={canScrollNext:W,canScrollPrev:U,containerNode:de,internalEngine:Be,destroy:F,off:m,on:f,emit:g,plugins:ot,previousScrollSnap:Me,reInit:h,rootNode:ie,scrollNext:J,scrollPrev:K,scrollProgress:le,scrollSnapList:Q,scrollTo:$,selectedScrollSnap:ue,slideNodes:_e,slidesInView:Ke,slidesNotInView:Oe};return O(t,n),setTimeout(()=>c.emit("init"),0),Ee}Bs.globalOptions=void 0;function Qr(e={},t=[]){const n=y.useRef(e),r=y.useRef(t),[s,i]=y.useState(),[o,a]=y.useState(),c=y.useCallback(()=>{s&&s.reInit(n.current,r.current)},[s]);return y.useEffect(()=>{Pa(n.current,e)||(n.current=e,c())},[e,c]),y.useEffect(()=>{l_(r.current,t)||(r.current=t,c())},[t,c]),y.useEffect(()=>{if(c_()&&o){Bs.globalOptions=Qr.globalOptions;const l=Bs(o,n.current,r.current);return i(l),()=>l.destroy()}else i(void 0)},[o,i]),[a,s]}Qr.globalOptions=void 0;const $_=[{lang:je.RU,data:[{title:"План выставки",link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/Floor%20plan/floor%20plan.pdf",blank:!0},{title:"Забронировать стенд",link:"/stend-form"},{title:"Список участников",link:""},{title:"B2B | B2G встречи",link:"/B2B-B2G"}]},{lang:je.EN,data:[{title:"Floor Plan",link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/Floor%20plan/floor%20plan.pdf",blank:!0},{title:"Book a stand",link:"/stend-form"},{title:"Participants list",link:"/"},{title:"B2B | B2G meetings",link:"/B2B-B2G"}]}],_T=()=>{const[e]=Qr(),t=Ie(o=>o.lang),n=ao("(min-width: 1024px)"),r=ao("(min-width: 768px)"),s=t===je.RU?je.RU:je.EN;function i(){return n?`/banners/${s}/l.jpg`:r?`/banners/${s}/m.jpg`:`/banners/${s}/s.jpg`}return p.jsxs("section",{className:"flex flex-col gap-5",children:[p.jsx("div",{ref:e,className:"embla",children:p.jsx("div",{className:"embla__container",children:p.jsx("div",{className:"embla__slide",children:p.jsx("img",{src:i(),alt:"",className:"size-full object-cover lg:max-h-[600px] lg:min-h-[320px]"})})})}),p.jsx(Ge,{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 items-center gap-6 text-2xl",children:$_[ae(t)].data.map(({title:o,link:a,blank:c})=>p.jsx(Re,{target:c?"_blank":"",to:a,className:"w-full",children:p.jsx(tt,{size:"lg",variant:"teritary",className:"w-full drop-shadow-sm shadow-md text-xl bg-teritary text-on_teritary hover:bg-teritary/90",children:o})},o))})]})},z_=[{data:[{title:"contact@turkmenexpo.com",subtitle:"Адрес электронной почты",img:"/contacts/home/mail.svg"},{title:"здание ТПП Туркменистана",subtitle:"Адрес выставки",img:"/contacts/home/location.svg"},{title:"+99371871812; 99363719588",subtitle:"Контактный номер",img:"/contacts/home/mobile.svg"}]},{data:[{title:"contact@turkmenexpo.com",subtitle:"E-mail Address",img:"/contacts/home/mail.svg"},{title:"Building of the CCI of Turkmenistan",subtitle:"Exhibition address",img:"/contacts/home/location.svg"},{title:"+99371871812; 99363719588",subtitle:"Contact Number",img:"/contacts/home/mobile.svg"}]}],ST=({className:e})=>{const t=Ie(n=>n.lang);return p.jsx("section",{className:ee("bg-surface_high pt-10 pb-20",e),children:p.jsxs(Ge,{children:[p.jsx("h2",{className:"h2 mb-6",children:Fs[ae(t)].title}),p.jsxs("div",{className:"flex flex-col gap-6",children:[p.jsx("div",{className:"flex flex-col md:flex-row items-center gap-6",children:Fs[ae(t)].data.map(n=>y.createElement(Hu,{...n,key:n.name,className:"w-full"}))}),p.jsx("div",{className:"md:p-10 pt-16 flex flex-col md:flex-row items-center gap-6",children:z_[ae(t)].data.map(n=>y.createElement(Ig,{...n,key:n.title,className:"w-full"}))}),p.jsx(Re,{to:"/stend-form",className:"md:w-fit w-full mx-auto",children:p.jsx(tt,{className:"w-full",children:t===je.RU?"Забронируйте стенд":"Book a stand"})})]})]})})},ms=[{h2:"Выставка-ярмарка «TurkmenTextile Expo 2025» в Ашхабаде",p:`Международная выставка-ярмарка, которая объединит мировых лидеров отрасли, инновационных производителей и творческих дизайнеров. + Наша миссия – укрепить позиции Туркменистана как ключевого центра текстильной и модной индустрии. Выставка станет платформой для изучения устойчивых практик, современных технологий и дизайнерских решений, вдохновляя на развитие индустрии + `,data:[{nums:"8,400 m²",text:"выставочной площади"},{nums:"10000+",text:"Посетители посетят выставку"},{nums:"100+",text:"Экспоненты из более чем 30 стран"},{nums:"80%",text:"Участники принимают участие в принятии решений о закупках"}],button:"Подробнее о выставке"},{h2:"TurkmenTextile Expo-2025 in Ashgabat",p:`An international exhibition will unite global industry leaders, innovative manufacturers, and creative designers. + Our mission is to strengthen Turkmenistan's position as a key hub for the textile and fashion industry. The exhibition will serve as a platform to explore sustainable practices, modern technologies, and design solutions, inspiring the development of the industry. + `,data:[{nums:"8,400 m²",text:"Of the exhibition area"},{nums:"10000+",text:"Visitors and specialists attend the exhibition"},{nums:"100+",text:"More than 100 exhibitors from 30 countries "},{nums:"80%",text:"Visitors are involved in procurement decisions"}],button:"More about the exhibition"}],TT=()=>{const[e]=Qr(),t=Ie(n=>n.lang);return p.jsx("section",{children:p.jsxs(Ge,{className:"flex flex-col gap-6",children:[p.jsxs("div",{className:"text-center",children:[p.jsx("h2",{className:"h2 md:mb-3 mb-6 text-left sm:text-center",children:ms[ae(t)].h2}),p.jsx("p",{className:"md:text-base text-sm normal text-left sm:text-center text-[#454545]",children:ms[ae(t)].p})]}),p.jsx("div",{ref:e,className:"embla overflow-hidden",children:p.jsx("div",{className:"flex embla__container items-center gap-6",children:ms[ae(t)].data.map(n=>p.jsx(Vg,{...n,className:"embla__slide flex-[0_0_288px]"},n.text))})}),p.jsx(Re,{to:"/about",className:"mx-auto",children:p.jsx(tt,{variant:"outline",children:ms[ae(t)].button})})]})})},AT=()=>{const e=Ie(t=>t.lang);return p.jsx("section",{className:"",children:p.jsxs(Ge,{children:[p.jsx("h2",{className:"h2 mb-10 text-center",children:xr[ae(e)].title}),p.jsx("div",{className:"grid md:grid-cols-4 grid-cols-2 gap-6",children:xr[ae(e)].data.map(t=>p.jsx(Zu,{...t,iconClassName:"bg-teritary_04"},t.title))})]})})},U_=[{data:[{img:"/offer-1.png",title:"Гостиницы, трансфер, визы",btnText:"Скачать путеводитель",text:"По вопросам размещения в гостиницах, визовой поддержки, транспортного и экскурсионного обслуживания Вы можете ознакомиться с путеводителем",link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/travel_guide/Travel_guide_ru.pdf"},{img:"/offer-2.png",title:"Ознакомьтесь с планом выставки TurkmenTextile Expo 2025",btnText:"Скачать план выставки",text:"Как выбрать лучшее место на выставке? Вы всегда должны помнить, что удачное расположение выставочной экспозиции повышает Ваши шансы привлечь внимание Ваших потенциальных клиентов",link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/Floor%20plan/floor%20plan.pdf"}]},{data:[{img:"/offer-2.png",title:"Hotels, transfers, visa",btnText:"Download the Travel guide",text:`Regarding hotel accommodation, visa support, + transportation and excursion services you can check out the Travel guide`,link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/travel_guide/Travel_guide_ru.pdf"},{img:"/offer-2.png",title:"Check out the Turkmen Textile 2025 Exhibition plan ",btnText:"Download the Floor plan",text:`How to choose the best place in the exhibition? + You should always remember that the good location of the exhibition increases your chance to attract the attention of your potential customers…`,link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/Floor%20plan/floor%20plan.pdf"}]}],CT=()=>{const[e,t]=Qr({align:"start"}),[n,r]=y.useState(0),s=Ie(o=>o.lang),i=y.useCallback(o=>{t&&t.scrollTo(o)},[t]);return y.useEffect(()=>{if(!t)return;const o=()=>{r(t.selectedScrollSnap())};return t.on("select",o),()=>{t.off("select",o)}},[t]),p.jsx("section",{className:"bg-surface_high py-10 relative overflow-hidden",children:p.jsx(Ge,{children:p.jsxs("div",{ref:e,className:"embla ",children:[p.jsx("div",{className:"mb-2 flex gap-6 embla__container",children:U_[ae(s)].data.map(o=>y.createElement(Lg,{...o,key:o.title,className:"embla__slide flex-[0_0_300px] sm:flex-[0_0_600px]"}))}),p.jsx(Vw,{className:"xl:hidden",scrollTo:i,active:n,slides:2})]})})})},ET=()=>{const e=Ie(t=>t.lang);return p.jsxs("header",{children:[p.jsx("div",{className:"h-12 hidden lg:flex bg-sur text-surface-bg items-center overflow-hidden",children:p.jsxs(Ge,{className:"flex items-center justify-between",children:[p.jsxs("div",{className:"gap-8 flex items-center justify-between",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(Mp,{}),p.jsx("h4",{className:"text-sm",children:e==="ru"?"Ашхабад, Туркменистан":"Ashgabat, Turkmenistan"})]}),p.jsx("nav",{className:"flex items-center gap-6",children:Ui[ae(e)].data.slice(0,2).map(({title:t,link:n})=>p.jsx(Re,{className:"py-2",to:n,children:t},t))})]}),p.jsxs("div",{className:"flex items-center gap-6",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(Vp,{size:16,strokeWidth:"3px"}),p.jsx("h4",{className:"text-sm",children:"+99371871812"})]}),p.jsx(o_,{})]})]})}),p.jsx("div",{className:"bg-primary py-2 flex items-center justify-between h-20 overflow-hidden",children:p.jsxs(Ge,{className:"flex items-center justify-between ",children:[p.jsxs("div",{className:"flex items-center gap-8",children:[p.jsx(Re,{to:"/",children:p.jsx(Wu,{})}),p.jsx("nav",{className:"lg:flex hidden items-center gap-6 text-white",children:Ui[ae(e)].data.slice(2,5).map(({title:t,link:n})=>p.jsxs(Re,{to:n,className:"flex items-center gap-2",children:[t," ",p.jsx("img",{src:"/chevron.svg"})]},t))})]}),p.jsx("div",{className:"flex items-center",children:p.jsx(Og,{})}),p.jsxs("div",{className:"lg:flex hidden items-center gap-2",children:[p.jsx(Re,{to:e===je.RU?"https://turkmentextile.turkmenexpo.com/app/storage/app/media/official_support/official_support_ru.pdf":"https://turkmentextile.turkmenexpo.com/app/storage/app/media/official_support/official_support_eng.pdf",target:"_blank",children:p.jsx(tt,{variant:"secondary",size:"sm",className:"bg-white text-primary hover:bg-white/90",children:e==="ru"?"Официальная поддержка":"Official Support"})}),p.jsx(Re,{to:"/become-sponsor",children:p.jsx(tt,{variant:"secondary",size:"sm",className:"bg-teritary text-white hover:bg-teritary/90",children:e==="ru"?"Стать спонсором":"Become a sponsor"})})]})]})})]})},Zl=(e,t,n)=>{if(e&&"reportValidity"in e){const r=V(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},Rh=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?Zl(r.ref,n,e):r.refs&&r.refs.forEach(s=>Zl(s,n,e))}},W_=(e,t)=>{t.shouldUseNativeValidation&&Rh(e,t);const n={};for(const r in e){const s=V(t.fields,r),i=Object.assign(e[r]||{},{ref:s&&s.ref});if(Z_(t.names||Object.keys(e),r)){const o=Object.assign({},V(n,r));he(o,"root",i),he(n,r,o)}else he(n,r,i)}return n},Z_=(e,t)=>e.some(n=>n.startsWith(t+"."));var H_=function(e,t){for(var n={};e.length;){var r=e[0],s=r.code,i=r.message,o=r.path.join(".");if(!n[o])if("unionErrors"in r){var a=r.unionErrors[0].errors[0];n[o]={message:a.message,type:a.code}}else n[o]={message:i,type:s};if("unionErrors"in r&&r.unionErrors.forEach(function(u){return u.errors.forEach(function(d){return e.push(d)})}),t){var c=n[o].types,l=c&&c[r.code];n[o]=Rf(o,t,n,s,l?[].concat(l,r.message):r.message)}e.shift()}return n},G_=function(e,t,n){return n===void 0&&(n={}),function(r,s,i){try{return Promise.resolve(function(o,a){try{var c=Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](r,t)).then(function(l){return i.shouldUseNativeValidation&&Rh({},i),{errors:{},values:n.raw?r:l}})}catch(l){return a(l)}return c&&c.then?c.then(void 0,a):c}(0,function(o){if(function(a){return Array.isArray(a==null?void 0:a.errors)}(o))return{values:{},errors:W_(H_(o.errors,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)};throw o}))}catch(o){return Promise.reject(o)}}},ce;(function(e){e.assertEqual=s=>s;function t(s){}e.assertIs=t;function n(s){throw new Error}e.assertNever=n,e.arrayToEnum=s=>{const i={};for(const o of s)i[o]=o;return i},e.getValidEnumValues=s=>{const i=e.objectKeys(s).filter(a=>typeof s[s[a]]!="number"),o={};for(const a of i)o[a]=s[a];return e.objectValues(o)},e.objectValues=s=>e.objectKeys(s).map(function(i){return s[i]}),e.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{const i=[];for(const o in s)Object.prototype.hasOwnProperty.call(s,o)&&i.push(o);return i},e.find=(s,i)=>{for(const o of s)if(i(o))return o},e.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&isFinite(s)&&Math.floor(s)===s;function r(s,i=" | "){return s.map(o=>typeof o=="string"?`'${o}'`:o).join(i)}e.joinValues=r,e.jsonStringifyReplacer=(s,i)=>typeof i=="bigint"?i.toString():i})(ce||(ce={}));var go;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(go||(go={}));const B=ce.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Mt=e=>{switch(typeof e){case"undefined":return B.undefined;case"string":return B.string;case"number":return isNaN(e)?B.nan:B.number;case"boolean":return B.boolean;case"function":return B.function;case"bigint":return B.bigint;case"symbol":return B.symbol;case"object":return Array.isArray(e)?B.array:e===null?B.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?B.promise:typeof Map<"u"&&e instanceof Map?B.map:typeof Set<"u"&&e instanceof Set?B.set:typeof Date<"u"&&e instanceof Date?B.date:B.object;default:return B.unknown}},N=ce.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"]),K_=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class et extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(i){return i.message},r={_errors:[]},s=i=>{for(const o of i.issues)if(o.code==="invalid_union")o.unionErrors.map(s);else if(o.code==="invalid_return_type")s(o.returnTypeError);else if(o.code==="invalid_arguments")s(o.argumentsError);else if(o.path.length===0)r._errors.push(n(o));else{let a=r,c=0;for(;cn.message){const n={},r=[];for(const s of this.issues)s.path.length>0?(n[s.path[0]]=n[s.path[0]]||[],n[s.path[0]].push(t(s))):r.push(t(s));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}et.create=e=>new et(e);const Un=(e,t)=>{let n;switch(e.code){case N.invalid_type:e.received===B.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case N.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,ce.jsonStringifyReplacer)}`;break;case N.unrecognized_keys:n=`Unrecognized key(s) in object: ${ce.joinValues(e.keys,", ")}`;break;case N.invalid_union:n="Invalid input";break;case N.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${ce.joinValues(e.options)}`;break;case N.invalid_enum_value:n=`Invalid enum value. Expected ${ce.joinValues(e.options)}, received '${e.received}'`;break;case N.invalid_arguments:n="Invalid function arguments";break;case N.invalid_return_type:n="Invalid function return type";break;case N.invalid_date:n="Invalid date";break;case N.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}"`:ce.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case N.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 N.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 N.custom:n="Invalid input";break;case N.invalid_intersection_types:n="Intersection results could not be merged";break;case N.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case N.not_finite:n="Number must be finite";break;default:n=t.defaultError,ce.assertNever(e)}return{message:n}};let Nh=Un;function q_(e){Nh=e}function $s(){return Nh}const zs=e=>{const{data:t,path:n,errorMaps:r,issueData:s}=e,i=[...n,...s.path||[]],o={...s,path:i};if(s.message!==void 0)return{...s,path:i,message:s.message};let a="";const c=r.filter(l=>!!l).slice().reverse();for(const l of c)a=l(o,{data:t,defaultError:a}).message;return{...s,path:i,message:a}},Y_=[];function I(e,t){const n=$s(),r=zs({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Un?void 0:Un].filter(s=>!!s)});e.common.issues.push(r)}class Fe{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 s of n){if(s.status==="aborted")return X;s.status==="dirty"&&t.dirty(),r.push(s.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const s of n){const i=await s.key,o=await s.value;r.push({key:i,value:o})}return Fe.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const s of n){const{key:i,value:o}=s;if(i.status==="aborted"||o.status==="aborted")return X;i.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof o.value<"u"||s.alwaysSet)&&(r[i.value]=o.value)}return{status:t.value,value:r}}}const X=Object.freeze({status:"aborted"}),Dn=e=>({status:"dirty",value:e}),Ue=e=>({status:"valid",value:e}),yo=e=>e.status==="aborted",vo=e=>e.status==="dirty",xn=e=>e.status==="valid",jr=e=>typeof Promise<"u"&&e instanceof Promise;function Us(e,t,n,r){if(typeof t=="function"?e!==t||!0:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function jh(e,t,n,r,s){if(typeof t=="function"?e!==t||!0:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,n),n}var H;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(H||(H={}));var dr,fr;class Et{constructor(t,n,r,s){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=s}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 Hl=(e,t)=>{if(xn(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 et(e.common.issues);return this._error=n,this._error}}};function te(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:s}=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:s}:{errorMap:(o,a)=>{var c,l;const{message:u}=e;return o.code==="invalid_enum_value"?{message:u??a.defaultError}:typeof a.data>"u"?{message:(c=u??r)!==null&&c!==void 0?c:a.defaultError}:o.code!=="invalid_type"?{message:a.defaultError}:{message:(l=u??n)!==null&&l!==void 0?l:a.defaultError}},description:s}}class se{get description(){return this._def.description}_getType(t){return Mt(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Mt(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Fe,ctx:{common:t.parent.common,data:t.data,parsedType:Mt(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(jr(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 s={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:Mt(t)},i=this._parseSync({data:t,path:s.path,parent:s});return Hl(s,i)}"~validate"(t){var n,r;const s={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Mt(t)};if(!this["~standard"].async)try{const i=this._parseSync({data:t,path:[],parent:s});return xn(i)?{value:i.value}:{issues:s.common.issues}}catch(i){!((r=(n=i==null?void 0:i.message)===null||n===void 0?void 0:n.toLowerCase())===null||r===void 0)&&r.includes("encountered")&&(this["~standard"].async=!0),s.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:s}).then(i=>xn(i)?{value:i.value}:{issues:s.common.issues})}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Mt(t)},s=this._parse({data:t,path:r.path,parent:r}),i=await(jr(s)?s:Promise.resolve(s));return Hl(r,i)}refine(t,n){const r=s=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(s):n;return this._refinement((s,i)=>{const o=t(s),a=()=>i.addIssue({code:N.custom,...r(s)});return typeof Promise<"u"&&o instanceof Promise?o.then(c=>c?!0:(a(),!1)):o?!0:(a(),!1)})}refinement(t,n){return this._refinement((r,s)=>t(r)?!0:(s.addIssue(typeof n=="function"?n(r,s):n),!1))}_refinement(t){return new mt({schema:this,typeName:Y.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return At.create(this,this._def)}nullable(){return tn.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return dt.create(this)}promise(){return Zn.create(this,this._def)}or(t){return Vr.create([this,t],this._def)}and(t){return Lr.create(this,t,this._def)}transform(t){return new mt({...te(this._def),schema:this,typeName:Y.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new zr({...te(this._def),innerType:this,defaultValue:n,typeName:Y.ZodDefault})}brand(){return new ja({typeName:Y.ZodBranded,type:this,...te(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new Ur({...te(this._def),innerType:this,catchValue:n,typeName:Y.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return es.create(this,t)}readonly(){return Wr.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const X_=/^c[^\s-]{8,}$/i,J_=/^[0-9a-z]+$/,Q_=/^[0-9A-HJKMNP-TV-Z]{26}$/i,eS=/^[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,tS=/^[a-z0-9_-]{21}$/i,nS=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,rS=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,sS=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,iS="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Li;const oS=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,aS=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,cS=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,lS=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,uS=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,dS=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Dh="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",fS=new RegExp(`^${Dh}$`);function Mh(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function hS(e){return new RegExp(`^${Mh(e)}$`)}function Oh(e){let t=`${Dh}T${Mh(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function mS(e,t){return!!((t==="v4"||!t)&&oS.test(e)||(t==="v6"||!t)&&cS.test(e))}function pS(e,t){if(!nS.test(e))return!1;try{const[n]=e.split("."),r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),s=JSON.parse(atob(r));return!(typeof s!="object"||s===null||!s.typ||!s.alg||t&&s.alg!==t)}catch{return!1}}function gS(e,t){return!!((t==="v4"||!t)&&aS.test(e)||(t==="v6"||!t)&&lS.test(e))}class lt extends se{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==B.string){const i=this._getOrReturnCtx(t);return I(i,{code:N.invalid_type,expected:B.string,received:i.parsedType}),X}const r=new Fe;let s;for(const i of this._def.checks)if(i.kind==="min")t.data.lengthi.value&&(s=this._getOrReturnCtx(t,s),I(s,{code:N.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="length"){const o=t.data.length>i.value,a=t.data.lengtht.test(s),{validation:n,code:N.invalid_string,...H.errToObj(r)})}_addCheck(t){return new lt({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...H.errToObj(t)})}url(t){return this._addCheck({kind:"url",...H.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...H.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...H.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...H.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...H.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...H.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...H.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...H.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...H.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...H.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...H.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...H.errToObj(t)})}datetime(t){var n,r;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!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,local:(r=t==null?void 0:t.local)!==null&&r!==void 0?r:!1,...H.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...H.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...H.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...H.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...H.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...H.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...H.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...H.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...H.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...H.errToObj(n)})}nonempty(t){return this.min(1,H.errToObj(t))}trim(){return new lt({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new lt({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new lt({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value{var t;return new lt({checks:[],typeName:Y.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...te(e)})};function yS(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,s=n>r?n:r,i=parseInt(e.toFixed(s).replace(".","")),o=parseInt(t.toFixed(s).replace(".",""));return i%o/Math.pow(10,s)}class Jt extends se{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)!==B.number){const i=this._getOrReturnCtx(t);return I(i,{code:N.invalid_type,expected:B.number,received:i.parsedType}),X}let r;const s=new Fe;for(const i of this._def.checks)i.kind==="int"?ce.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),I(r,{code:N.invalid_type,expected:"integer",received:"float",message:i.message}),s.dirty()):i.kind==="min"?(i.inclusive?t.datai.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),I(r,{code:N.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),s.dirty()):i.kind==="multipleOf"?yS(t.data,i.value)!==0&&(r=this._getOrReturnCtx(t,r),I(r,{code:N.not_multiple_of,multipleOf:i.value,message:i.message}),s.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),I(r,{code:N.not_finite,message:i.message}),s.dirty()):ce.assertNever(i);return{status:s.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,H.toString(n))}gt(t,n){return this.setLimit("min",t,!1,H.toString(n))}lte(t,n){return this.setLimit("max",t,!0,H.toString(n))}lt(t,n){return this.setLimit("max",t,!1,H.toString(n))}setLimit(t,n,r,s){return new Jt({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:H.toString(s)}]})}_addCheck(t){return new Jt({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:H.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:H.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:H.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:H.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:H.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:H.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:H.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:H.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:H.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"&&ce.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 Jt({checks:[],typeName:Y.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...te(e)});class Qt extends se{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==B.bigint)return this._getInvalidInput(t);let r;const s=new Fe;for(const i of this._def.checks)i.kind==="min"?(i.inclusive?t.datai.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),I(r,{code:N.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),s.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),I(r,{code:N.not_multiple_of,multipleOf:i.value,message:i.message}),s.dirty()):ce.assertNever(i);return{status:s.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return I(n,{code:N.invalid_type,expected:B.bigint,received:n.parsedType}),X}gte(t,n){return this.setLimit("min",t,!0,H.toString(n))}gt(t,n){return this.setLimit("min",t,!1,H.toString(n))}lte(t,n){return this.setLimit("max",t,!0,H.toString(n))}lt(t,n){return this.setLimit("max",t,!1,H.toString(n))}setLimit(t,n,r,s){return new Qt({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:H.toString(s)}]})}_addCheck(t){return new Qt({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:H.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:H.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:H.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:H.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:H.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 Qt({checks:[],typeName:Y.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...te(e)})};class Dr extends se{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==B.boolean){const r=this._getOrReturnCtx(t);return I(r,{code:N.invalid_type,expected:B.boolean,received:r.parsedType}),X}return Ue(t.data)}}Dr.create=e=>new Dr({typeName:Y.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...te(e)});class bn extends se{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==B.date){const i=this._getOrReturnCtx(t);return I(i,{code:N.invalid_type,expected:B.date,received:i.parsedType}),X}if(isNaN(t.data.getTime())){const i=this._getOrReturnCtx(t);return I(i,{code:N.invalid_date}),X}const r=new Fe;let s;for(const i of this._def.checks)i.kind==="min"?t.data.getTime()i.value&&(s=this._getOrReturnCtx(t,s),I(s,{code:N.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),r.dirty()):ce.assertNever(i);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new bn({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:H.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:H.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 bn({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:Y.ZodDate,...te(e)});class Ws extends se{_parse(t){if(this._getType(t)!==B.symbol){const r=this._getOrReturnCtx(t);return I(r,{code:N.invalid_type,expected:B.symbol,received:r.parsedType}),X}return Ue(t.data)}}Ws.create=e=>new Ws({typeName:Y.ZodSymbol,...te(e)});class Mr extends se{_parse(t){if(this._getType(t)!==B.undefined){const r=this._getOrReturnCtx(t);return I(r,{code:N.invalid_type,expected:B.undefined,received:r.parsedType}),X}return Ue(t.data)}}Mr.create=e=>new Mr({typeName:Y.ZodUndefined,...te(e)});class Or extends se{_parse(t){if(this._getType(t)!==B.null){const r=this._getOrReturnCtx(t);return I(r,{code:N.invalid_type,expected:B.null,received:r.parsedType}),X}return Ue(t.data)}}Or.create=e=>new Or({typeName:Y.ZodNull,...te(e)});class Wn extends se{constructor(){super(...arguments),this._any=!0}_parse(t){return Ue(t.data)}}Wn.create=e=>new Wn({typeName:Y.ZodAny,...te(e)});class mn extends se{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Ue(t.data)}}mn.create=e=>new mn({typeName:Y.ZodUnknown,...te(e)});class Bt extends se{_parse(t){const n=this._getOrReturnCtx(t);return I(n,{code:N.invalid_type,expected:B.never,received:n.parsedType}),X}}Bt.create=e=>new Bt({typeName:Y.ZodNever,...te(e)});class Zs extends se{_parse(t){if(this._getType(t)!==B.undefined){const r=this._getOrReturnCtx(t);return I(r,{code:N.invalid_type,expected:B.void,received:r.parsedType}),X}return Ue(t.data)}}Zs.create=e=>new Zs({typeName:Y.ZodVoid,...te(e)});class dt extends se{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),s=this._def;if(n.parsedType!==B.array)return I(n,{code:N.invalid_type,expected:B.array,received:n.parsedType}),X;if(s.exactLength!==null){const o=n.data.length>s.exactLength.value,a=n.data.lengths.maxLength.value&&(I(n,{code:N.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((o,a)=>s.type._parseAsync(new Et(n,o,n.path,a)))).then(o=>Fe.mergeArray(r,o));const i=[...n.data].map((o,a)=>s.type._parseSync(new Et(n,o,n.path,a)));return Fe.mergeArray(r,i)}get element(){return this._def.type}min(t,n){return new dt({...this._def,minLength:{value:t,message:H.toString(n)}})}max(t,n){return new dt({...this._def,maxLength:{value:t,message:H.toString(n)}})}length(t,n){return new dt({...this._def,exactLength:{value:t,message:H.toString(n)}})}nonempty(t){return this.min(1,t)}}dt.create=(e,t)=>new dt({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Y.ZodArray,...te(t)});function En(e){if(e instanceof ve){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=At.create(En(r))}return new ve({...e._def,shape:()=>t})}else return e instanceof dt?new dt({...e._def,type:En(e.element)}):e instanceof At?At.create(En(e.unwrap())):e instanceof tn?tn.create(En(e.unwrap())):e instanceof Pt?Pt.create(e.items.map(t=>En(t))):e}class ve extends se{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=ce.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==B.object){const l=this._getOrReturnCtx(t);return I(l,{code:N.invalid_type,expected:B.object,received:l.parsedType}),X}const{status:r,ctx:s}=this._processInputParams(t),{shape:i,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof Bt&&this._def.unknownKeys==="strip"))for(const l in s.data)o.includes(l)||a.push(l);const c=[];for(const l of o){const u=i[l],d=s.data[l];c.push({key:{status:"valid",value:l},value:u._parse(new Et(s,d,s.path,l)),alwaysSet:l in s.data})}if(this._def.catchall instanceof Bt){const l=this._def.unknownKeys;if(l==="passthrough")for(const u of a)c.push({key:{status:"valid",value:u},value:{status:"valid",value:s.data[u]}});else if(l==="strict")a.length>0&&(I(s,{code:N.unrecognized_keys,keys:a}),r.dirty());else if(l!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const l=this._def.catchall;for(const u of a){const d=s.data[u];c.push({key:{status:"valid",value:u},value:l._parse(new Et(s,d,s.path,u)),alwaysSet:u in s.data})}}return s.common.async?Promise.resolve().then(async()=>{const l=[];for(const u of c){const d=await u.key,f=await u.value;l.push({key:d,value:f,alwaysSet:u.alwaysSet})}return l}).then(l=>Fe.mergeObjectSync(r,l)):Fe.mergeObjectSync(r,c)}get shape(){return this._def.shape()}strict(t){return H.errToObj,new ve({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var s,i,o,a;const c=(o=(i=(s=this._def).errorMap)===null||i===void 0?void 0:i.call(s,n,r).message)!==null&&o!==void 0?o:r.defaultError;return n.code==="unrecognized_keys"?{message:(a=H.errToObj(t).message)!==null&&a!==void 0?a:c}:{message:c}}}:{}})}strip(){return new ve({...this._def,unknownKeys:"strip"})}passthrough(){return new ve({...this._def,unknownKeys:"passthrough"})}extend(t){return new ve({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new ve({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Y.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new ve({...this._def,catchall:t})}pick(t){const n={};return ce.objectKeys(t).forEach(r=>{t[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new ve({...this._def,shape:()=>n})}omit(t){const n={};return ce.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new ve({...this._def,shape:()=>n})}deepPartial(){return En(this)}partial(t){const n={};return ce.objectKeys(this.shape).forEach(r=>{const s=this.shape[r];t&&!t[r]?n[r]=s:n[r]=s.optional()}),new ve({...this._def,shape:()=>n})}required(t){const n={};return ce.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let i=this.shape[r];for(;i instanceof At;)i=i._def.innerType;n[r]=i}}),new ve({...this._def,shape:()=>n})}keyof(){return Vh(ce.objectKeys(this.shape))}}ve.create=(e,t)=>new ve({shape:()=>e,unknownKeys:"strip",catchall:Bt.create(),typeName:Y.ZodObject,...te(t)});ve.strictCreate=(e,t)=>new ve({shape:()=>e,unknownKeys:"strict",catchall:Bt.create(),typeName:Y.ZodObject,...te(t)});ve.lazycreate=(e,t)=>new ve({shape:e,unknownKeys:"strip",catchall:Bt.create(),typeName:Y.ZodObject,...te(t)});class Vr extends se{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function s(i){for(const a of i)if(a.result.status==="valid")return a.result;for(const a of i)if(a.result.status==="dirty")return n.common.issues.push(...a.ctx.common.issues),a.result;const o=i.map(a=>new et(a.ctx.common.issues));return I(n,{code:N.invalid_union,unionErrors:o}),X}if(n.common.async)return Promise.all(r.map(async i=>{const o={...n,common:{...n.common,issues:[]},parent:null};return{result:await i._parseAsync({data:n.data,path:n.path,parent:o}),ctx:o}})).then(s);{let i;const o=[];for(const c of r){const l={...n,common:{...n.common,issues:[]},parent:null},u=c._parseSync({data:n.data,path:n.path,parent:l});if(u.status==="valid")return u;u.status==="dirty"&&!i&&(i={result:u,ctx:l}),l.common.issues.length&&o.push(l.common.issues)}if(i)return n.common.issues.push(...i.ctx.common.issues),i.result;const a=o.map(c=>new et(c));return I(n,{code:N.invalid_union,unionErrors:a}),X}}get options(){return this._def.options}}Vr.create=(e,t)=>new Vr({options:e,typeName:Y.ZodUnion,...te(t)});const Dt=e=>e instanceof Fr?Dt(e.schema):e instanceof mt?Dt(e.innerType()):e instanceof Br?[e.value]:e instanceof en?e.options:e instanceof $r?ce.objectValues(e.enum):e instanceof zr?Dt(e._def.innerType):e instanceof Mr?[void 0]:e instanceof Or?[null]:e instanceof At?[void 0,...Dt(e.unwrap())]:e instanceof tn?[null,...Dt(e.unwrap())]:e instanceof ja||e instanceof Wr?Dt(e.unwrap()):e instanceof Ur?Dt(e._def.innerType):[];class ci extends se{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==B.object)return I(n,{code:N.invalid_type,expected:B.object,received:n.parsedType}),X;const r=this.discriminator,s=n.data[r],i=this.optionsMap.get(s);return i?n.common.async?i._parseAsync({data:n.data,path:n.path,parent:n}):i._parseSync({data:n.data,path:n.path,parent:n}):(I(n,{code:N.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 s=new Map;for(const i of n){const o=Dt(i.shape[t]);if(!o.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const a of o){if(s.has(a))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(a)}`);s.set(a,i)}}return new ci({typeName:Y.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:s,...te(r)})}}function xo(e,t){const n=Mt(e),r=Mt(t);if(e===t)return{valid:!0,data:e};if(n===B.object&&r===B.object){const s=ce.objectKeys(t),i=ce.objectKeys(e).filter(a=>s.indexOf(a)!==-1),o={...e,...t};for(const a of i){const c=xo(e[a],t[a]);if(!c.valid)return{valid:!1};o[a]=c.data}return{valid:!0,data:o}}else if(n===B.array&&r===B.array){if(e.length!==t.length)return{valid:!1};const s=[];for(let i=0;i{if(yo(i)||yo(o))return X;const a=xo(i.value,o.value);return a.valid?((vo(i)||vo(o))&&n.dirty(),{status:n.value,value:a.data}):(I(r,{code:N.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(([i,o])=>s(i,o)):s(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}Lr.create=(e,t,n)=>new Lr({left:e,right:t,typeName:Y.ZodIntersection,...te(n)});class Pt extends se{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==B.array)return I(r,{code:N.invalid_type,expected:B.array,received:r.parsedType}),X;if(r.data.lengththis._def.items.length&&(I(r,{code:N.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const i=[...r.data].map((o,a)=>{const c=this._def.items[a]||this._def.rest;return c?c._parse(new Et(r,o,r.path,a)):null}).filter(o=>!!o);return r.common.async?Promise.all(i).then(o=>Fe.mergeArray(n,o)):Fe.mergeArray(n,i)}get items(){return this._def.items}rest(t){return new Pt({...this._def,rest:t})}}Pt.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Pt({items:e,typeName:Y.ZodTuple,rest:null,...te(t)})};class Ir extends se{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!==B.object)return I(r,{code:N.invalid_type,expected:B.object,received:r.parsedType}),X;const s=[],i=this._def.keyType,o=this._def.valueType;for(const a in r.data)s.push({key:i._parse(new Et(r,a,r.path,a)),value:o._parse(new Et(r,r.data[a],r.path,a)),alwaysSet:a in r.data});return r.common.async?Fe.mergeObjectAsync(n,s):Fe.mergeObjectSync(n,s)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof se?new Ir({keyType:t,valueType:n,typeName:Y.ZodRecord,...te(r)}):new Ir({keyType:lt.create(),valueType:t,typeName:Y.ZodRecord,...te(n)})}}class Hs extends se{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!==B.map)return I(r,{code:N.invalid_type,expected:B.map,received:r.parsedType}),X;const s=this._def.keyType,i=this._def.valueType,o=[...r.data.entries()].map(([a,c],l)=>({key:s._parse(new Et(r,a,r.path,[l,"key"])),value:i._parse(new Et(r,c,r.path,[l,"value"]))}));if(r.common.async){const a=new Map;return Promise.resolve().then(async()=>{for(const c of o){const l=await c.key,u=await c.value;if(l.status==="aborted"||u.status==="aborted")return X;(l.status==="dirty"||u.status==="dirty")&&n.dirty(),a.set(l.value,u.value)}return{status:n.value,value:a}})}else{const a=new Map;for(const c of o){const l=c.key,u=c.value;if(l.status==="aborted"||u.status==="aborted")return X;(l.status==="dirty"||u.status==="dirty")&&n.dirty(),a.set(l.value,u.value)}return{status:n.value,value:a}}}}Hs.create=(e,t,n)=>new Hs({valueType:t,keyType:e,typeName:Y.ZodMap,...te(n)});class wn extends se{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==B.set)return I(r,{code:N.invalid_type,expected:B.set,received:r.parsedType}),X;const s=this._def;s.minSize!==null&&r.data.sizes.maxSize.value&&(I(r,{code:N.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),n.dirty());const i=this._def.valueType;function o(c){const l=new Set;for(const u of c){if(u.status==="aborted")return X;u.status==="dirty"&&n.dirty(),l.add(u.value)}return{status:n.value,value:l}}const a=[...r.data.values()].map((c,l)=>i._parse(new Et(r,c,r.path,l)));return r.common.async?Promise.all(a).then(c=>o(c)):o(a)}min(t,n){return new wn({...this._def,minSize:{value:t,message:H.toString(n)}})}max(t,n){return new wn({...this._def,maxSize:{value:t,message:H.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}wn.create=(e,t)=>new wn({valueType:e,minSize:null,maxSize:null,typeName:Y.ZodSet,...te(t)});class Ln extends se{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==B.function)return I(n,{code:N.invalid_type,expected:B.function,received:n.parsedType}),X;function r(a,c){return zs({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,$s(),Un].filter(l=>!!l),issueData:{code:N.invalid_arguments,argumentsError:c}})}function s(a,c){return zs({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,$s(),Un].filter(l=>!!l),issueData:{code:N.invalid_return_type,returnTypeError:c}})}const i={errorMap:n.common.contextualErrorMap},o=n.data;if(this._def.returns instanceof Zn){const a=this;return Ue(async function(...c){const l=new et([]),u=await a._def.args.parseAsync(c,i).catch(m=>{throw l.addIssue(r(c,m)),l}),d=await Reflect.apply(o,this,u);return await a._def.returns._def.type.parseAsync(d,i).catch(m=>{throw l.addIssue(s(d,m)),l})})}else{const a=this;return Ue(function(...c){const l=a._def.args.safeParse(c,i);if(!l.success)throw new et([r(c,l.error)]);const u=Reflect.apply(o,this,l.data),d=a._def.returns.safeParse(u,i);if(!d.success)throw new et([s(u,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new Ln({...this._def,args:Pt.create(t).rest(mn.create())})}returns(t){return new Ln({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new Ln({args:t||Pt.create([]).rest(mn.create()),returns:n||mn.create(),typeName:Y.ZodFunction,...te(r)})}}class Fr extends se{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})}}Fr.create=(e,t)=>new Fr({getter:e,typeName:Y.ZodLazy,...te(t)});class Br extends se{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return I(n,{received:n.data,code:N.invalid_literal,expected:this._def.value}),X}return{status:"valid",value:t.data}}get value(){return this._def.value}}Br.create=(e,t)=>new Br({value:e,typeName:Y.ZodLiteral,...te(t)});function Vh(e,t){return new en({values:e,typeName:Y.ZodEnum,...te(t)})}class en extends se{constructor(){super(...arguments),dr.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return I(n,{expected:ce.joinValues(r),received:n.parsedType,code:N.invalid_type}),X}if(Us(this,dr)||jh(this,dr,new Set(this._def.values)),!Us(this,dr).has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return I(n,{received:n.data,code:N.invalid_enum_value,options:r}),X}return Ue(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return en.create(t,{...this._def,...n})}exclude(t,n=this._def){return en.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}dr=new WeakMap;en.create=Vh;class $r extends se{constructor(){super(...arguments),fr.set(this,void 0)}_parse(t){const n=ce.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==B.string&&r.parsedType!==B.number){const s=ce.objectValues(n);return I(r,{expected:ce.joinValues(s),received:r.parsedType,code:N.invalid_type}),X}if(Us(this,fr)||jh(this,fr,new Set(ce.getValidEnumValues(this._def.values))),!Us(this,fr).has(t.data)){const s=ce.objectValues(n);return I(r,{received:r.data,code:N.invalid_enum_value,options:s}),X}return Ue(t.data)}get enum(){return this._def.values}}fr=new WeakMap;$r.create=(e,t)=>new $r({values:e,typeName:Y.ZodNativeEnum,...te(t)});class Zn extends se{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==B.promise&&n.common.async===!1)return I(n,{code:N.invalid_type,expected:B.promise,received:n.parsedType}),X;const r=n.parsedType===B.promise?n.data:Promise.resolve(n.data);return Ue(r.then(s=>this._def.type.parseAsync(s,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Zn.create=(e,t)=>new Zn({type:e,typeName:Y.ZodPromise,...te(t)});class mt extends se{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Y.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),s=this._def.effect||null,i={addIssue:o=>{I(r,o),o.fatal?n.abort():n.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),s.type==="preprocess"){const o=s.transform(r.data,i);if(r.common.async)return Promise.resolve(o).then(async a=>{if(n.value==="aborted")return X;const c=await this._def.schema._parseAsync({data:a,path:r.path,parent:r});return c.status==="aborted"?X:c.status==="dirty"||n.value==="dirty"?Dn(c.value):c});{if(n.value==="aborted")return X;const a=this._def.schema._parseSync({data:o,path:r.path,parent:r});return a.status==="aborted"?X:a.status==="dirty"||n.value==="dirty"?Dn(a.value):a}}if(s.type==="refinement"){const o=a=>{const c=s.refinement(a,i);if(r.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(r.common.async===!1){const a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?X:(a.status==="dirty"&&n.dirty(),o(a.value),{status:n.value,value:a.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(a=>a.status==="aborted"?X:(a.status==="dirty"&&n.dirty(),o(a.value).then(()=>({status:n.value,value:a.value}))))}if(s.type==="transform")if(r.common.async===!1){const o=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!xn(o))return o;const a=s.transform(o.value,i);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:a}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(o=>xn(o)?Promise.resolve(s.transform(o.value,i)).then(a=>({status:n.value,value:a})):o);ce.assertNever(s)}}mt.create=(e,t,n)=>new mt({schema:e,typeName:Y.ZodEffects,effect:t,...te(n)});mt.createWithPreprocess=(e,t,n)=>new mt({schema:t,effect:{type:"preprocess",transform:e},typeName:Y.ZodEffects,...te(n)});class At extends se{_parse(t){return this._getType(t)===B.undefined?Ue(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}At.create=(e,t)=>new At({innerType:e,typeName:Y.ZodOptional,...te(t)});class tn extends se{_parse(t){return this._getType(t)===B.null?Ue(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}tn.create=(e,t)=>new tn({innerType:e,typeName:Y.ZodNullable,...te(t)});class zr extends se{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===B.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}zr.create=(e,t)=>new zr({innerType:e,typeName:Y.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...te(t)});class Ur extends se{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},s=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return jr(s)?s.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new et(r.common.issues)},input:r.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new et(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}Ur.create=(e,t)=>new Ur({innerType:e,typeName:Y.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...te(t)});class Gs extends se{_parse(t){if(this._getType(t)!==B.nan){const r=this._getOrReturnCtx(t);return I(r,{code:N.invalid_type,expected:B.nan,received:r.parsedType}),X}return{status:"valid",value:t.data}}}Gs.create=e=>new Gs({typeName:Y.ZodNaN,...te(e)});const vS=Symbol("zod_brand");class ja extends se{_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 es extends se{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const i=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?X:i.status==="dirty"?(n.dirty(),Dn(i.value)):this._def.out._parseAsync({data:i.value,path:r.path,parent:r})})();{const s=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?X:s.status==="dirty"?(n.dirty(),{status:"dirty",value:s.value}):this._def.out._parseSync({data:s.value,path:r.path,parent:r})}}static create(t,n){return new es({in:t,out:n,typeName:Y.ZodPipeline})}}class Wr extends se{_parse(t){const n=this._def.innerType._parse(t),r=s=>(xn(s)&&(s.value=Object.freeze(s.value)),s);return jr(n)?n.then(s=>r(s)):r(n)}unwrap(){return this._def.innerType}}Wr.create=(e,t)=>new Wr({innerType:e,typeName:Y.ZodReadonly,...te(t)});function Lh(e,t={},n){return e?Wn.create().superRefine((r,s)=>{var i,o;if(!e(r)){const a=typeof t=="function"?t(r):typeof t=="string"?{message:t}:t,c=(o=(i=a.fatal)!==null&&i!==void 0?i:n)!==null&&o!==void 0?o:!0,l=typeof a=="string"?{message:a}:a;s.addIssue({code:"custom",...l,fatal:c})}}):Wn.create()}const xS={object:ve.lazycreate};var Y;(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"})(Y||(Y={}));const bS=(e,t={message:`Input not instance of ${e.name}`})=>Lh(n=>n instanceof e,t),Ih=lt.create,Fh=Jt.create,wS=Gs.create,_S=Qt.create,Bh=Dr.create,SS=bn.create,TS=Ws.create,AS=Mr.create,CS=Or.create,ES=Wn.create,PS=mn.create,kS=Bt.create,RS=Zs.create,NS=dt.create,jS=ve.create,DS=ve.strictCreate,MS=Vr.create,OS=ci.create,VS=Lr.create,LS=Pt.create,IS=Ir.create,FS=Hs.create,BS=wn.create,$S=Ln.create,zS=Fr.create,US=Br.create,WS=en.create,ZS=$r.create,HS=Zn.create,Gl=mt.create,GS=At.create,KS=tn.create,qS=mt.createWithPreprocess,YS=es.create,XS=()=>Ih().optional(),JS=()=>Fh().optional(),QS=()=>Bh().optional(),eT={string:e=>lt.create({...e,coerce:!0}),number:e=>Jt.create({...e,coerce:!0}),boolean:e=>Dr.create({...e,coerce:!0}),bigint:e=>Qt.create({...e,coerce:!0}),date:e=>bn.create({...e,coerce:!0})},tT=X;var Kl=Object.freeze({__proto__:null,defaultErrorMap:Un,setErrorMap:q_,getErrorMap:$s,makeIssue:zs,EMPTY_PATH:Y_,addIssueToContext:I,ParseStatus:Fe,INVALID:X,DIRTY:Dn,OK:Ue,isAborted:yo,isDirty:vo,isValid:xn,isAsync:jr,get util(){return ce},get objectUtil(){return go},ZodParsedType:B,getParsedType:Mt,ZodType:se,datetimeRegex:Oh,ZodString:lt,ZodNumber:Jt,ZodBigInt:Qt,ZodBoolean:Dr,ZodDate:bn,ZodSymbol:Ws,ZodUndefined:Mr,ZodNull:Or,ZodAny:Wn,ZodUnknown:mn,ZodNever:Bt,ZodVoid:Zs,ZodArray:dt,ZodObject:ve,ZodUnion:Vr,ZodDiscriminatedUnion:ci,ZodIntersection:Lr,ZodTuple:Pt,ZodRecord:Ir,ZodMap:Hs,ZodSet:wn,ZodFunction:Ln,ZodLazy:Fr,ZodLiteral:Br,ZodEnum:en,ZodNativeEnum:$r,ZodPromise:Zn,ZodEffects:mt,ZodTransformer:mt,ZodOptional:At,ZodNullable:tn,ZodDefault:zr,ZodCatch:Ur,ZodNaN:Gs,BRAND:vS,ZodBranded:ja,ZodPipeline:es,ZodReadonly:Wr,custom:Lh,Schema:se,ZodSchema:se,late:xS,get ZodFirstPartyTypeKind(){return Y},coerce:eT,any:ES,array:NS,bigint:_S,boolean:Bh,date:SS,discriminatedUnion:OS,effect:Gl,enum:WS,function:$S,instanceof:bS,intersection:VS,lazy:zS,literal:US,map:FS,nan:wS,nativeEnum:ZS,never:kS,null:CS,nullable:KS,number:Fh,object:jS,oboolean:QS,onumber:JS,optional:GS,ostring:XS,pipeline:YS,preprocess:qS,promise:HS,record:IS,set:BS,strictObject:DS,string:Ih,symbol:TS,transformer:Gl,tuple:LS,undefined:AS,union:MS,unknown:PS,void:RS,NEVER:tT,ZodIssueCode:N,quotelessJson:K_,ZodError:et});const ql=(e,t)=>Ie(r=>r.lang)==="ru"?e:t,nT=Kl.object({email:Kl.string().email()}),rT=()=>{var n,r;const e=Nw({resolver:G_(nT),defaultValues:{email:""}});async function t(s){console.log(s)}return p.jsx("form",{onSubmit:e.handleSubmit(t),className:"py-8 bg-bg_surface_container",children:p.jsxs(Ge,{className:"flex items-center justify-between",children:[p.jsx("h2",{className:"h2",children:ql("Подпишитесь на новости:","Subscribe to the news:")}),p.jsxs("div",{className:"relative",children:[p.jsx("input",{...e.register("email"),placeholder:"E-mail",className:"input xl:w-[392px] w-[320px]"}),p.jsx("span",{className:"text-error absolute text-red-600 -bottom-6 text-sm left-0",children:(r=(n=e.formState.errors)==null?void 0:n.email)==null?void 0:r.message})]}),p.jsx(tt,{className:"xl:w-[288px] w-[220px]",children:ql("Подписаться","Subscribe")})]})})},PT=()=>{const e=Ie(t=>t.lang);return p.jsxs("footer",{children:[p.jsx(rT,{}),p.jsx("div",{className:"py-5 bg-primary",children:p.jsxs(Ge,{className:"flex flex-col gap-6",children:[p.jsxs("div",{className:"flex flex-col md:flex-row gap-6 md:items-end md:justify-between items-center",children:[p.jsx(Wu,{}),p.jsxs("div",{className:"flex items-center gap-6",children:[p.jsx(Re,{target:"_blank",to:"https://www.facebook.com/profile.php?id=61567254728028",children:p.jsx(Rp,{className:"text-white"})}),p.jsx(Re,{target:"_blank",to:"https://www.instagram.com/turkmenexpo_tm?igsh=bnhkOWpmNWcwcHBq",children:p.jsx("img",{src:"/inst.svg"})}),p.jsx(Re,{target:"_blank",to:"https://www.linkedin.com/company/turkmen-expo",children:p.jsx("img",{src:"/in.svg"})}),p.jsx(Re,{target:"_blank",to:"https://x.com/turkmenexpo?t=D-XSa8d0AC8GAv5peAzteA&s=09",children:p.jsx("img",{src:"/x.svg"})})]})]}),p.jsx("hr",{className:"border-white/50"}),p.jsx("h5",{className:"text-base text-center normal text-white",children:e===je.RU?"©2025 Все права защищены":"All rights reserved"})]})})]})},Ge=({className:e,children:t})=>p.jsx("div",{className:ee("w-full mx-auto max-w-[1240px] px-4",e),children:t}),kT=({title:e})=>p.jsxs("div",{className:"relative flex items-center h-[216px] w-full justify-center",children:[p.jsx("img",{src:"/cover.png",className:"-z-10 absolute size-full object-cover top-0 left-0"}),p.jsx("h1",{className:"text-on_primary md:text-5xl text-3xl",children:e})]});export{wT as A,tt as B,kT as C,G_ as D,fT as E,PT as F,bo as G,ET as H,pt as I,Jl as J,Ht as K,je as L,Xe as M,ps as N,Gn as O,We as P,V0 as Q,aT as R,Hn as S,Ge as T,_T as a,TT as b,CT as c,AT as d,ST as e,ee as f,yT as g,vT as h,xT as i,p as j,bT as k,ni as l,ws as m,ae as n,Mw as o,zf as p,Uf as q,Wf as r,mT as s,cT as t,Ie as u,Nw as v,hT as w,lT as x,pT as y,Kl as z}; diff --git a/dist/index.html b/dist/index.html index c8c5b32..502c64c 100644 --- a/dist/index.html +++ b/dist/index.html @@ -5,10 +5,10 @@ Turkmen Textile - + - - + +