@onpe/ui 1.3.22 → 1.3.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components.esm.js +1 -1
- package/dist/components.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/components.esm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as t,jsxs as e,Fragment as n}from"react/jsx-runtime";import*as i from"react";import{useState as o,useEffect as s,createContext as r,useRef as a,useLayoutEffect as l,useId as c,useContext as h,useInsertionEffect as u,useMemo as d,useCallback as p,Children as m,isValidElement as f,Fragment as g,createElement as v,forwardRef as y,Component as C}from"react";import{createPortal as x}from"react-dom";var w=function(){return w=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},w.apply(this,arguments)};function L(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(t);o<i.length;o++)e.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(t,i[o])&&(n[i[o]]=t[i[o]])}return n}function b(t,e,n,i){return new(n||(n=Promise))(function(o,s){function r(t){try{l(i.next(t))}catch(t){s(t)}}function a(t){try{l(i.throw(t))}catch(t){s(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(r,a)}l((i=i.apply(t,e||[])).next())})}function T(t,e){var n,i,o,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},r=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return r.next=a(0),r.throw=a(1),r.return=a(2),"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(a){return function(l){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;r&&(r=0,a[0]&&(s=0)),s;)try{if(n=1,i&&(o=2&a[0]?i.return:a[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;switch(i=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,i=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=e.call(t,s)}catch(t){a=[6,t],i=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}"function"==typeof SuppressedError&&SuppressedError;var M=function(e){var n=e.color,i=e.title,o=e.size,s=void 0===o?"normal":o,r=e.className,a=L(e,["color","title","size","className"]);return t("button",w({className:"onpe-button onpe-button-".concat(n," onpe-button-").concat(s," ").concat(r||"")},a,{children:i}))},P=function(t){var e=t.children,n=t.container,i=o(!1),r=i[0],a=i[1];if(s(function(){return a(!0),function(){return a(!1)}},[]),!r)return null;var l=n||document.querySelector("#portal");return l||(l=document.body),x(e,l)},S=function(t){var i=t.condition,o=t.loadingComponent,s=t.children;return e(n,{children:[i&&o,!i&&s]})},A=function(e){var n=e.show,i=e.onClick,o=e.color,s=void 0===o?"blue":o;return t("div",{onClick:i,className:"onpe-overlay ".concat(n?"onpe-overlay-show":"onpe-overlay-hide"," ").concat("onpe-overlay-".concat(s))})},E=function(e){return t("svg",w({xmlns:"http://www.w3.org/2000/svg",width:28,height:28,viewBox:"0 0 28 28",fill:"none"},e,{children:t("path",{d:"M14 0C6.2 0 0 6.2 0 14C0 21.8 6.2 28 14 28C21.8 28 28 21.8 28 14C28 6.2 21.8 0 14 0ZM19.4 21L14 15.6L8.6 21L7 19.4L12.4 14L7 8.6L8.6 7L14 12.4L19.4 7L21 8.6L15.6 14L21 19.4L19.4 21Z",fill:"currentColor"})}))};const V=r({});function D(t){const e=a(null);return null===e.current&&(e.current=t()),e.current}const N="undefined"!=typeof window,k=N?l:s,O=r(null);function B(t,e){-1===t.indexOf(e)&&t.push(e)}function R(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const I=(t,e,n)=>n>e?e:n<t?t:n;let F=()=>{},j=()=>{};"production"!==process.env.NODE_ENV&&(F=(t,e,n)=>{},j=(t,e,n)=>{if(!t)throw new Error(function(t,e){return e?`${t}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${e}`:t}(e,n))});const Z={},_=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function U(t){return"object"==typeof t&&null!==t}const H=t=>/^0[^.\s]+$/u.test(t);function W(t){let e;return()=>(void 0===e&&(e=t()),e)}const $=t=>t,z=(t,e)=>n=>e(t(n)),Y=(...t)=>t.reduce(z),X=(t,e,n)=>{const i=e-t;return 0===i?1:(n-t)/i};class G{constructor(){this.subscriptions=[]}add(t){return B(this.subscriptions,t),()=>R(this.subscriptions,t)}notify(t,e,n){const i=this.subscriptions.length;if(i)if(1===i)this.subscriptions[0](t,e,n);else for(let o=0;o<i;o++){const i=this.subscriptions[o];i&&i(t,e,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const K=t=>1e3*t,q=t=>t/1e3;function J(t,e){return e?t*(1e3/e):0}const Q=new Set;function tt(t,e,n){t||Q.has(e)||Q.add(e)}const et=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function nt(t,e,n,i){if(t===e&&n===i)return $;const o=e=>function(t,e,n,i,o){let s,r,a=0;do{r=e+(n-e)/2,s=et(r,i,o)-t,s>0?n=r:e=r}while(Math.abs(s)>1e-7&&++a<12);return r}(e,0,1,t,n);return t=>0===t||1===t?t:et(o(t),e,i)}const it=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,ot=t=>e=>1-t(1-e),st=nt(.33,1.53,.69,.99),rt=ot(st),at=it(rt),lt=t=>(t*=2)<1?.5*rt(t):.5*(2-Math.pow(2,-10*(t-1))),ct=t=>1-Math.sin(Math.acos(t)),ht=ot(ct),ut=it(ct),dt=nt(.42,0,1,1),pt=nt(0,0,.58,1),mt=nt(.42,0,.58,1),ft=t=>Array.isArray(t)&&"number"==typeof t[0],gt={linear:$,easeIn:dt,easeInOut:mt,easeOut:pt,circIn:ct,circInOut:ut,circOut:ht,backIn:rt,backInOut:at,backOut:st,anticipate:lt},vt=t=>{if(ft(t)){j(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[e,n,i,o]=t;return nt(e,n,i,o)}return"string"==typeof t?(j(void 0!==gt[t],`Invalid easing type '${t}'`,"invalid-easing-type"),gt[t]):t},yt=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Ct(t,e){let n=!1,i=!0;const o={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,r=yt.reduce((t,e)=>(t[e]=function(t){let e=new Set,n=new Set,i=!1,o=!1;const s=new WeakSet;let r={delta:0,timestamp:0,isProcessing:!1};function a(e){s.has(e)&&(l.schedule(e),t()),e(r)}const l={schedule:(t,o=!1,r=!1)=>{const a=r&&i?e:n;return o&&s.add(t),a.has(t)||a.add(t),t},cancel:t=>{n.delete(t),s.delete(t)},process:t=>{r=t,i?o=!0:(i=!0,[e,n]=[n,e],e.forEach(a),e.clear(),i=!1,o&&(o=!1,l.process(t)))}};return l}(s),t),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:h,update:u,preRender:d,render:p,postRender:m}=r,f=()=>{const s=Z.useManualTiming?o.timestamp:performance.now();n=!1,Z.useManualTiming||(o.delta=i?1e3/60:Math.max(Math.min(s-o.timestamp,40),1)),o.timestamp=s,o.isProcessing=!0,a.process(o),l.process(o),c.process(o),h.process(o),u.process(o),d.process(o),p.process(o),m.process(o),o.isProcessing=!1,n&&e&&(i=!1,t(f))};return{schedule:yt.reduce((e,s)=>{const a=r[s];return e[s]=(e,s=!1,r=!1)=>(n||(n=!0,i=!0,o.isProcessing||t(f)),a.schedule(e,s,r)),e},{}),cancel:t=>{for(let e=0;e<yt.length;e++)r[yt[e]].cancel(t)},state:o,steps:r}}const{schedule:xt,cancel:wt,state:Lt,steps:bt}=Ct("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:$,!0);let Tt;function Mt(){Tt=void 0}const Pt={now:()=>(void 0===Tt&&Pt.set(Lt.isProcessing||Z.useManualTiming?Lt.timestamp:performance.now()),Tt),set:t=>{Tt=t,queueMicrotask(Mt)}},St=t=>e=>"string"==typeof e&&e.startsWith(t),At=St("--"),Et=St("var(--"),Vt=t=>!!Et(t)&&Dt.test(t.split("/*")[0].trim()),Dt=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Nt={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},kt={...Nt,transform:t=>I(0,1,t)},Ot={...Nt,default:1},Bt=t=>Math.round(1e5*t)/1e5,Rt=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;const It=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ft=(t,e)=>n=>Boolean("string"==typeof n&&It.test(n)&&n.startsWith(t)||e&&!function(t){return null==t}(n)&&Object.prototype.hasOwnProperty.call(n,e)),jt=(t,e,n)=>i=>{if("string"!=typeof i)return i;const[o,s,r,a]=i.match(Rt);return{[t]:parseFloat(o),[e]:parseFloat(s),[n]:parseFloat(r),alpha:void 0!==a?parseFloat(a):1}},Zt={...Nt,transform:t=>Math.round((t=>I(0,255,t))(t))},_t={test:Ft("rgb","red"),parse:jt("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+Zt.transform(t)+", "+Zt.transform(e)+", "+Zt.transform(n)+", "+Bt(kt.transform(i))+")"};const Ut={test:Ft("#"),parse:function(t){let e="",n="",i="",o="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7),o=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),i=t.substring(3,4),o=t.substring(4,5),e+=e,n+=n,i+=i,o+=o),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:o?parseInt(o,16)/255:1}},transform:_t.transform},Ht=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),Wt=Ht("deg"),$t=Ht("%"),zt=Ht("px"),Yt=Ht("vh"),Xt=Ht("vw"),Gt=(()=>({...$t,parse:t=>$t.parse(t)/100,transform:t=>$t.transform(100*t)}))(),Kt={test:Ft("hsl","hue"),parse:jt("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+$t.transform(Bt(e))+", "+$t.transform(Bt(n))+", "+Bt(kt.transform(i))+")"},qt={test:t=>_t.test(t)||Ut.test(t)||Kt.test(t),parse:t=>_t.test(t)?_t.parse(t):Kt.test(t)?Kt.parse(t):Ut.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?_t.transform(t):Kt.transform(t),getAnimatableNone:t=>{const e=qt.parse(t);return e.alpha=0,qt.transform(e)}},Jt=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;const Qt="number",te="color",ee=/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 ne(t){const e=t.toString(),n=[],i={color:[],number:[],var:[]},o=[];let s=0;const r=e.replace(ee,t=>(qt.test(t)?(i.color.push(s),o.push(te),n.push(qt.parse(t))):t.startsWith("var(")?(i.var.push(s),o.push("var"),n.push(t)):(i.number.push(s),o.push(Qt),n.push(parseFloat(t))),++s,"${}")).split("${}");return{values:n,split:r,indexes:i,types:o}}function ie(t){return ne(t).values}function oe(t){const{split:e,types:n}=ne(t),i=e.length;return t=>{let o="";for(let s=0;s<i;s++)if(o+=e[s],void 0!==t[s]){const e=n[s];o+=e===Qt?Bt(t[s]):e===te?qt.transform(t[s]):t[s]}return o}}const se=t=>"number"==typeof t?0:qt.test(t)?qt.getAnimatableNone(t):t;const re={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(Rt)?.length||0)+(t.match(Jt)?.length||0)>0},parse:ie,createTransformer:oe,getAnimatableNone:function(t){const e=ie(t);return oe(t)(e.map(se))}};function ae(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function le(t,e){return n=>n>0?e:t}const ce=(t,e,n)=>t+(e-t)*n,he=(t,e,n)=>{const i=t*t,o=n*(e*e-i)+i;return o<0?0:Math.sqrt(o)},ue=[Ut,_t,Kt];function de(t){const e=(n=t,ue.find(t=>t.test(n)));var n;if(F(Boolean(e),`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!Boolean(e))return!1;let i=e.parse(t);return e===Kt&&(i=function({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,n/=100;let o=0,s=0,r=0;if(e/=100){const i=n<.5?n*(1+e):n+e-n*e,a=2*n-i;o=ae(a,i,t+1/3),s=ae(a,i,t),r=ae(a,i,t-1/3)}else o=s=r=n;return{red:Math.round(255*o),green:Math.round(255*s),blue:Math.round(255*r),alpha:i}}(i)),i}const pe=(t,e)=>{const n=de(t),i=de(e);if(!n||!i)return le(t,e);const o={...n};return t=>(o.red=he(n.red,i.red,t),o.green=he(n.green,i.green,t),o.blue=he(n.blue,i.blue,t),o.alpha=ce(n.alpha,i.alpha,t),_t.transform(o))},me=new Set(["none","hidden"]);function fe(t,e){return n=>ce(t,e,n)}function ge(t){return"number"==typeof t?fe:"string"==typeof t?Vt(t)?le:qt.test(t)?pe:Ce:Array.isArray(t)?ve:"object"==typeof t?qt.test(t)?pe:ye:le}function ve(t,e){const n=[...t],i=n.length,o=t.map((t,n)=>ge(t)(t,e[n]));return t=>{for(let e=0;e<i;e++)n[e]=o[e](t);return n}}function ye(t,e){const n={...t,...e},i={};for(const o in n)void 0!==t[o]&&void 0!==e[o]&&(i[o]=ge(t[o])(t[o],e[o]));return t=>{for(const e in i)n[e]=i[e](t);return n}}const Ce=(t,e)=>{const n=re.createTransformer(e),i=ne(t),o=ne(e);return i.indexes.var.length===o.indexes.var.length&&i.indexes.color.length===o.indexes.color.length&&i.indexes.number.length>=o.indexes.number.length?me.has(t)&&!o.values.length||me.has(e)&&!i.values.length?function(t,e){return me.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}(t,e):Y(ve(function(t,e){const n=[],i={color:0,var:0,number:0};for(let o=0;o<e.values.length;o++){const s=e.types[o],r=t.indexes[s][i[s]],a=t.values[r]??0;n[o]=a,i[s]++}return n}(i,o),o.values),n):(F(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),le(t,e))};function xe(t,e,n){if("number"==typeof t&&"number"==typeof e&&"number"==typeof n)return ce(t,e,n);return ge(t)(t,e)}const we=t=>{const e=({timestamp:e})=>t(e);return{start:(t=!0)=>xt.update(e,t),stop:()=>wt(e),now:()=>Lt.isProcessing?Lt.timestamp:Pt.now()}},Le=(t,e,n=10)=>{let i="";const o=Math.max(Math.round(e/n),2);for(let e=0;e<o;e++)i+=Math.round(1e4*t(e/(o-1)))/1e4+", ";return`linear(${i.substring(0,i.length-2)})`},be=2e4;function Te(t){let e=0;let n=t.next(e);for(;!n.done&&e<be;)e+=50,n=t.next(e);return e>=be?1/0:e}function Me(t,e,n){const i=Math.max(e-5,0);return J(n-t(i),e-i)}const Pe=100,Se=10,Ae=1,Ee=0,Ve=800,De=.3,Ne=.3,ke={granular:.01,default:2},Oe={granular:.005,default:.5},Be=.01,Re=10,Ie=.05,Fe=1,je=.001;function Ze({duration:t=Ve,bounce:e=De,velocity:n=Ee,mass:i=Ae}){let o,s;F(t<=K(Re),"Spring duration must be 10 seconds or less","spring-duration-limit");let r=1-e;r=I(Ie,Fe,r),t=I(Be,Re,q(t)),r<1?(o=e=>{const i=e*r,o=i*t,s=i-n,a=Ue(e,r),l=Math.exp(-o);return je-s/a*l},s=e=>{const i=e*r*t,s=i*n+n,a=Math.pow(r,2)*Math.pow(e,2)*t,l=Math.exp(-i),c=Ue(Math.pow(e,2),r);return(-o(e)+je>0?-1:1)*((s-a)*l)/c}):(o=e=>Math.exp(-e*t)*((e-n)*t+1)-.001,s=e=>Math.exp(-e*t)*(t*t*(n-e)));const a=function(t,e,n){let i=n;for(let n=1;n<_e;n++)i-=t(i)/e(i);return i}(o,s,5/t);if(t=K(t),isNaN(a))return{stiffness:Pe,damping:Se,duration:t};{const e=Math.pow(a,2)*i;return{stiffness:e,damping:2*r*Math.sqrt(i*e),duration:t}}}const _e=12;function Ue(t,e){return t*Math.sqrt(1-e*e)}const He=["duration","bounce"],We=["stiffness","damping","mass"];function $e(t,e){return e.some(e=>void 0!==t[e])}function ze(t=Ne,e=De){const n="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:i,restDelta:o}=n;const s=n.keyframes[0],r=n.keyframes[n.keyframes.length-1],a={done:!1,value:s},{stiffness:l,damping:c,mass:h,duration:u,velocity:d,isResolvedFromDuration:p}=function(t){let e={velocity:Ee,stiffness:Pe,damping:Se,mass:Ae,isResolvedFromDuration:!1,...t};if(!$e(t,We)&&$e(t,He))if(t.visualDuration){const n=t.visualDuration,i=2*Math.PI/(1.2*n),o=i*i,s=2*I(.05,1,1-(t.bounce||0))*Math.sqrt(o);e={...e,mass:Ae,stiffness:o,damping:s}}else{const n=Ze(t);e={...e,...n,mass:Ae},e.isResolvedFromDuration=!0}return e}({...n,velocity:-q(n.velocity||0)}),m=d||0,f=c/(2*Math.sqrt(l*h)),g=r-s,v=q(Math.sqrt(l/h)),y=Math.abs(g)<5;let C;if(i||(i=y?ke.granular:ke.default),o||(o=y?Oe.granular:Oe.default),f<1){const t=Ue(v,f);C=e=>{const n=Math.exp(-f*v*e);return r-n*((m+f*v*g)/t*Math.sin(t*e)+g*Math.cos(t*e))}}else if(1===f)C=t=>r-Math.exp(-v*t)*(g+(m+v*g)*t);else{const t=v*Math.sqrt(f*f-1);C=e=>{const n=Math.exp(-f*v*e),i=Math.min(t*e,300);return r-n*((m+f*v*g)*Math.sinh(i)+t*g*Math.cosh(i))/t}}const x={calculatedDuration:p&&u||null,next:t=>{const e=C(t);if(p)a.done=t>=u;else{let n=0===t?m:0;f<1&&(n=0===t?K(m):Me(C,t,e));const s=Math.abs(n)<=i,l=Math.abs(r-e)<=o;a.done=s&&l}return a.value=a.done?r:e,a},toString:()=>{const t=Math.min(Te(x),be),e=Le(e=>x.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return x}function Ye({keyframes:t,velocity:e=0,power:n=.8,timeConstant:i=325,bounceDamping:o=10,bounceStiffness:s=500,modifyTarget:r,min:a,max:l,restDelta:c=.5,restSpeed:h}){const u=t[0],d={done:!1,value:u},p=t=>void 0===a?l:void 0===l||Math.abs(a-t)<Math.abs(l-t)?a:l;let m=n*e;const f=u+m,g=void 0===r?f:r(f);g!==f&&(m=g-u);const v=t=>-m*Math.exp(-t/i),y=t=>g+v(t),C=t=>{const e=v(t),n=y(t);d.done=Math.abs(e)<=c,d.value=d.done?g:n};let x,w;const L=t=>{var e;(e=d.value,void 0!==a&&e<a||void 0!==l&&e>l)&&(x=t,w=ze({keyframes:[d.value,p(d.value)],velocity:Me(y,t,d.value),damping:o,stiffness:s,restDelta:c,restSpeed:h}))};return L(0),{calculatedDuration:null,next:t=>{let e=!1;return w||void 0!==x||(e=!0,C(t),L(t)),void 0!==x&&t>=x?w.next(t-x):(!e&&C(t),d)}}}function Xe(t,e,{clamp:n=!0,ease:i,mixer:o}={}){const s=t.length;if(j(s===e.length,"Both input and output ranges must be the same length","range-length"),1===s)return()=>e[0];if(2===s&&e[0]===e[1])return()=>e[1];const r=t[0]===t[1];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=function(t,e,n){const i=[],o=n||Z.mix||xe,s=t.length-1;for(let n=0;n<s;n++){let s=o(t[n],t[n+1]);if(e){const t=Array.isArray(e)?e[n]||$:e;s=Y(t,s)}i.push(s)}return i}(e,i,o),l=a.length,c=n=>{if(r&&n<t[0])return e[0];let i=0;if(l>1)for(;i<t.length-2&&!(n<t[i+1]);i++);const o=X(t[i],t[i+1],n);return a[i](o)};return n?e=>c(I(t[0],t[s-1],e)):c}function Ge(t){const e=[0];return function(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const o=X(0,e,i);t.push(ce(n,1,o))}}(e,t.length-1),e}function Ke({duration:t=300,keyframes:e,times:n,ease:i="easeInOut"}){const o=(t=>Array.isArray(t)&&"number"!=typeof t[0])(i)?i.map(vt):vt(i),s={done:!1,value:e[0]},r=function(t,e){return t.map(t=>t*e)}(n&&n.length===e.length?n:Ge(e),t),a=Xe(r,e,{ease:Array.isArray(o)?o:(l=e,c=o,l.map(()=>c||mt).splice(0,l.length-1))});var l,c;return{calculatedDuration:t,next:e=>(s.value=a(e),s.done=e>=t,s)}}ze.applyToOptions=t=>{const e=function(t,e=100,n){const i=n({...t,keyframes:[0,e]}),o=Math.min(Te(i),be);return{type:"keyframes",ease:t=>i.next(o*t).value/e,duration:q(o)}}(t,100,ze);return t.ease=e.ease,t.duration=K(e.duration),t.type="keyframes",t};const qe=t=>null!==t;function Je(t,{repeat:e,repeatType:n="loop"},i,o=1){const s=t.filter(qe),r=o<0||e&&"loop"!==n&&e%2==1?0:s.length-1;return r&&void 0!==i?i:s[r]}const Qe={decay:Ye,inertia:Ye,tween:Ke,keyframes:Ke,spring:ze};function tn(t){"string"==typeof t.type&&(t.type=Qe[t.type])}class en{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}const nn=t=>t/100;class on extends en{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:t}=this.options;t&&t.updatedAt!==Pt.now()&&this.tick(Pt.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){const{options:t}=this;tn(t);const{type:e=Ke,repeat:n=0,repeatDelay:i=0,repeatType:o,velocity:s=0}=t;let{keyframes:r}=t;const a=e||Ke;"production"!==process.env.NODE_ENV&&a!==Ke&&j(r.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${r}`,"spring-two-frames"),a!==Ke&&"number"!=typeof r[0]&&(this.mixKeyframes=Y(nn,xe(r[0],r[1])),r=[0,100]);const l=a({...t,keyframes:r});"mirror"===o&&(this.mirroredGenerator=a({...t,keyframes:[...r].reverse(),velocity:-s})),null===l.calculatedDuration&&(l.calculatedDuration=Te(l));const{calculatedDuration:c}=l;this.calculatedDuration=c,this.resolvedDuration=c+i,this.totalDuration=this.resolvedDuration*(n+1)-i,this.generator=l}updateTime(t){const e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){const{generator:n,totalDuration:i,mixKeyframes:o,mirroredGenerator:s,resolvedDuration:r,calculatedDuration:a}=this;if(null===this.startTime)return n.next(0);const{delay:l=0,keyframes:c,repeat:h,repeatType:u,repeatDelay:d,type:p,onUpdate:m,finalKeyframe:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);const g=this.currentTime-l*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?g<0:g>i;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=i);let y=this.currentTime,C=n;if(h){const t=Math.min(this.currentTime,i)/r;let e=Math.floor(t),n=t%1;!n&&t>=1&&(n=1),1===n&&e--,e=Math.min(e,h+1);Boolean(e%2)&&("reverse"===u?(n=1-n,d&&(n-=d/r)):"mirror"===u&&(C=s)),y=I(0,1,n)*r}const x=v?{done:!1,value:c[0]}:C.next(y);o&&(x.value=o(x.value));let{done:w}=x;v||null===a||(w=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const L=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return L&&p!==Ye&&(x.value=Je(c,this.options,f,this.speed)),m&&m(x.value),L&&this.finish(),x}then(t,e){return this.finished.then(t,e)}get duration(){return q(this.calculatedDuration)}get time(){return q(this.currentTime)}set time(t){t=K(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Pt.now());const e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=q(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=we,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();const n=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=n):null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime||(this.startTime=e??n),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Pt.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}const sn=t=>180*t/Math.PI,rn=t=>{const e=sn(Math.atan2(t[1],t[0]));return ln(e)},an={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:rn,rotateZ:rn,skewX:t=>sn(Math.atan(t[1])),skewY:t=>sn(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},ln=t=>((t%=360)<0&&(t+=360),t),cn=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),hn=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),un={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:cn,scaleY:hn,scale:t=>(cn(t)+hn(t))/2,rotateX:t=>ln(sn(Math.atan2(t[6],t[5]))),rotateY:t=>ln(sn(Math.atan2(-t[2],t[0]))),rotateZ:rn,rotate:rn,skewX:t=>sn(Math.atan(t[4])),skewY:t=>sn(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function dn(t){return t.includes("scale")?1:0}function pn(t,e){if(!t||"none"===t)return dn(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let i,o;if(n)i=un,o=n;else{const e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=an,o=e}if(!o)return dn(e);const s=i[e],r=o[1].split(",").map(mn);return"function"==typeof s?s(r):r[s]}function mn(t){return parseFloat(t.trim())}const fn=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],gn=(()=>new Set(fn))(),vn=t=>t===Nt||t===zt,yn=new Set(["x","y","z"]),Cn=fn.filter(t=>!yn.has(t));const xn={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>pn(e,"x"),y:(t,{transform:e})=>pn(e,"y")};xn.translateX=xn.x,xn.translateY=xn.y;const wn=new Set;let Ln=!1,bn=!1,Tn=!1;function Mn(){if(bn){const t=Array.from(wn).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),n=new Map;e.forEach(t=>{const e=function(t){const e=[];return Cn.forEach(n=>{const i=t.getValue(n);void 0!==i&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),e}(t);e.length&&(n.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();const e=n.get(t);e&&e.forEach(([e,n])=>{t.getValue(e)?.set(n)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}bn=!1,Ln=!1,wn.forEach(t=>t.complete(Tn)),wn.clear()}function Pn(){wn.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(bn=!0)})}class Sn{constructor(t,e,n,i,o,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=n,this.motionValue=i,this.element=o,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(wn.add(this),Ln||(Ln=!0,xt.read(Pn),xt.resolveKeyframes(Mn))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:e,element:n,motionValue:i}=this;if(null===t[0]){const o=i?.get(),s=t[t.length-1];if(void 0!==o)t[0]=o;else if(n&&e){const i=n.readValue(e,s);null!=i&&(t[0]=i)}void 0===t[0]&&(t[0]=s),i&&void 0===o&&i.set(t[0])}!function(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),wn.delete(this)}cancel(){"scheduled"===this.state&&(wn.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}const An=W(()=>void 0!==window.ScrollTimeline),En={};function Vn(t,e){const n=W(t);return()=>En[e]??n()}const Dn=Vn(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),Nn=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,kn={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Nn([0,.65,.55,1]),circOut:Nn([.55,0,1,.45]),backIn:Nn([.31,.01,.66,-.59]),backOut:Nn([.33,1.53,.69,.99])};function On(t,e){return t?"function"==typeof t?Dn()?Le(t,e):"ease-out":ft(t)?Nn(t):Array.isArray(t)?t.map(t=>On(t,e)||kn.easeOut):kn[t]:void 0}function Bn(t,e,n,{delay:i=0,duration:o=300,repeat:s=0,repeatType:r="loop",ease:a="easeOut",times:l}={},c=void 0){const h={[e]:n};l&&(h.offset=l);const u=On(a,o);Array.isArray(u)&&(h.easing=u);const d={delay:i,duration:o,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:s+1,direction:"reverse"===r?"alternate":"normal"};c&&(d.pseudoElement=c);return t.animate(h,d)}function Rn(t){return"function"==typeof t&&"applyToOptions"in t}class In extends en{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:e,name:n,keyframes:i,pseudoElement:o,allowFlatten:s=!1,finalKeyframe:r,onComplete:a}=t;this.isPseudoElement=Boolean(o),this.allowFlatten=s,this.options=t,j("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function({type:t,...e}){return Rn(t)&&Dn()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=Bn(e,n,i,l,o),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const t=Je(i,this.options,r,this.speed);this.updateMotionValue?this.updateMotionValue(t):function(t,e,n){(t=>t.startsWith("--"))(e)?t.style.setProperty(e,n):t.style[e]=n}(e,n,t),this.animation.cancel()}a?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return q(Number(t))}get time(){return q(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=K(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:e}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&An()?(this.animation.timeline=t,$):e(this)}}const Fn={anticipate:lt,backInOut:at,circInOut:ut};function jn(t){"string"==typeof t.ease&&t.ease in Fn&&(t.ease=Fn[t.ease])}class Zn extends In{constructor(t){jn(t),tn(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:e,onUpdate:n,onComplete:i,element:o,...s}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);const r=new on({...s,autoplay:!1}),a=K(this.finishedTime??this.time);e.setWithVelocity(r.sample(a-10).value,r.sample(a).value,10),r.stop()}}const _n=(t,e)=>"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!re.test(t)&&"0"!==t||t.startsWith("url(")));function Un(t){t.duration=0,t.type}const Hn=new Set(["opacity","clipPath","filter","transform"]),Wn=W(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class $n extends en{constructor({autoplay:t=!0,delay:e=0,type:n="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:s="loop",keyframes:r,name:a,motionValue:l,element:c,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Pt.now();const u={autoplay:t,delay:e,type:n,repeat:i,repeatDelay:o,repeatType:s,name:a,motionValue:l,element:c,...h},d=c?.KeyframeResolver||Sn;this.keyframeResolver=new d(r,(t,e,n)=>this.onKeyframesResolved(t,e,u,!n),a,l,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,n,i){this.keyframeResolver=void 0;const{name:o,type:s,velocity:r,delay:a,isHandoff:l,onUpdate:c}=n;this.resolvedAt=Pt.now(),function(t,e,n,i){const o=t[0];if(null===o)return!1;if("display"===e||"visibility"===e)return!0;const s=t[t.length-1],r=_n(o,e),a=_n(s,e);return F(r===a,`You are trying to animate ${e} from "${o}" to "${s}". "${r?s:o}" is not an animatable value.`,"value-not-animatable"),!(!r||!a)&&(function(t){const e=t[0];if(1===t.length)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}(t)||("spring"===n||Rn(n))&&i)}(t,o,s,r)||(!Z.instantAnimations&&a||c?.(Je(t,n,e)),t[0]=t[t.length-1],Un(n),n.repeat=0);const h={startTime:i?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...n,keyframes:t},u=!l&&function(t){const{motionValue:e,name:n,repeatDelay:i,repeatType:o,damping:s,type:r}=t,a=e?.owner?.current;if(!(a instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=e.owner.getProps();return Wn()&&n&&Hn.has(n)&&("transform"!==n||!c)&&!l&&!i&&"mirror"!==o&&0!==s&&"inertia"!==r}(h)?new Zn({...h,element:h.motionValue.owner.current}):new on(h);u.finished.then(()=>this.notifyFinished()).catch($),this.pendingTimeline&&(this.stopTimeline=u.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=u}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Tn=!0,Pn(),Mn(),Tn=!1),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const zn=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Yn(t,e,n=1){j(n<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[i,o]=function(t){const e=zn.exec(t);if(!e)return[,];const[,n,i,o]=e;return[`--${n??i}`,o]}(t);if(!i)return;const s=window.getComputedStyle(e).getPropertyValue(i);if(s){const t=s.trim();return _(t)?parseFloat(t):t}return Vt(o)?Yn(o,e,n+1):o}function Xn(t,e){return t?.[e]??t?.default??t}const Gn=new Set(["width","height","top","left","right","bottom",...fn]),Kn=t=>e=>e.test(t),qn=[Nt,zt,$t,Wt,Xt,Yt,{test:t=>"auto"===t,parse:t=>t}],Jn=t=>qn.find(Kn(t));function Qn(t){return"number"==typeof t?0===t:null===t||("none"===t||"0"===t||H(t))}const ti=new Set(["brightness","contrast","saturate","opacity"]);function ei(t){const[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[i]=n.match(Rt)||[];if(!i)return t;const o=n.replace(i,"");let s=ti.has(e)?1:0;return i!==n&&(s*=100),e+"("+s+o+")"}const ni=/\b([a-z-]*)\(.*?\)/gu,ii={...re,getAnimatableNone:t=>{const e=t.match(ni);return e?e.map(ei).join(" "):t}},oi={...Nt,transform:Math.round},si={borderWidth:zt,borderTopWidth:zt,borderRightWidth:zt,borderBottomWidth:zt,borderLeftWidth:zt,borderRadius:zt,radius:zt,borderTopLeftRadius:zt,borderTopRightRadius:zt,borderBottomRightRadius:zt,borderBottomLeftRadius:zt,width:zt,maxWidth:zt,height:zt,maxHeight:zt,top:zt,right:zt,bottom:zt,left:zt,padding:zt,paddingTop:zt,paddingRight:zt,paddingBottom:zt,paddingLeft:zt,margin:zt,marginTop:zt,marginRight:zt,marginBottom:zt,marginLeft:zt,backgroundPositionX:zt,backgroundPositionY:zt,...{rotate:Wt,rotateX:Wt,rotateY:Wt,rotateZ:Wt,scale:Ot,scaleX:Ot,scaleY:Ot,scaleZ:Ot,skew:Wt,skewX:Wt,skewY:Wt,distance:zt,translateX:zt,translateY:zt,translateZ:zt,x:zt,y:zt,z:zt,perspective:zt,transformPerspective:zt,opacity:kt,originX:Gt,originY:Gt,originZ:zt},zIndex:oi,fillOpacity:kt,strokeOpacity:kt,numOctaves:oi},ri={...si,color:qt,backgroundColor:qt,outlineColor:qt,fill:qt,stroke:qt,borderColor:qt,borderTopColor:qt,borderRightColor:qt,borderBottomColor:qt,borderLeftColor:qt,filter:ii,WebkitFilter:ii},ai=t=>ri[t];function li(t,e){let n=ai(t);return n!==ii&&(n=re),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const ci=new Set(["auto","none","0"]);class hi extends Sn{constructor(t,e,n,i,o){super(t,e,n,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:e,name:n}=this;if(!e||!e.current)return;super.readKeyframes();for(let n=0;n<t.length;n++){let i=t[n];if("string"==typeof i&&(i=i.trim(),Vt(i))){const o=Yn(i,e.current);void 0!==o&&(t[n]=o),n===t.length-1&&(this.finalKeyframe=i)}}if(this.resolveNoneKeyframes(),!Gn.has(n)||2!==t.length)return;const[i,o]=t,s=Jn(i),r=Jn(o);if(s!==r)if(vn(s)&&vn(r))for(let e=0;e<t.length;e++){const n=t[e];"string"==typeof n&&(t[e]=parseFloat(n))}else xn[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:e}=this,n=[];for(let e=0;e<t.length;e++)(null===t[e]||Qn(t[e]))&&n.push(e);n.length&&function(t,e,n){let i,o=0;for(;o<t.length&&!i;){const e=t[o];"string"==typeof e&&!ci.has(e)&&ne(e).values.length&&(i=t[o]),o++}if(i&&n)for(const o of e)t[o]=li(n,i)}(t,n,e)}measureInitialState(){const{element:t,unresolvedKeyframes:e,name:n}=this;if(!t||!t.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=xn[n](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;const i=e[e.length-1];void 0!==i&&t.getValue(n,i).jump(i,!1)}measureEndState(){const{element:t,name:e,unresolvedKeyframes:n}=this;if(!t||!t.current)return;const i=t.getValue(e);i&&i.jump(this.measuredOrigin,!1);const o=n.length-1,s=n[o];n[o]=xn[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEach(([e,n])=>{t.getValue(e).set(n)}),this.resolveNoneKeyframes()}}const ui=(t,e)=>e&&"number"==typeof t?e.transform(t):t;function di(t){return U(t)&&"offsetHeight"in t}class pi{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{const e=Pt.now();if(this.updatedAt!==e&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const t of this.dependents)t.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){var e;this.current=t,this.updatedAt=Pt.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=(e=this.current,!isNaN(parseFloat(e))))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return"production"!==process.env.NODE_ENV&&tt(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new G);const n=this.events[t].add(e);return"change"===t?()=>{n(),xt.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,e,n){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Pt.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;const e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return J(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),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.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function mi(t,e){return new pi(t,e)}const{schedule:fi}=Ct(queueMicrotask,!1),gi={x:!1,y:!1};function vi(){return gi.x||gi.y}function yi(t,e){const n=function(t,e,n){if(t instanceof EventTarget)return[t];if("string"==typeof t){let e=document;const i=n?.[t]??e.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t)}(t),i=new AbortController;return[n,{passive:!0,...e,signal:i.signal},()=>i.abort()]}function Ci(t){return!("touch"===t.pointerType||vi())}const xi=(t,e)=>!!e&&(t===e||xi(t,e.parentElement)),wi=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary,Li=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);const bi=new WeakSet;function Ti(t){return e=>{"Enter"===e.key&&t(e)}}function Mi(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function Pi(t){return wi(t)&&!vi()}function Si(t,e,n={}){const[i,o,s]=yi(t,n),r=t=>{const i=t.currentTarget;if(!Pi(t))return;bi.add(i);const s=e(i,t),r=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),bi.has(i)&&bi.delete(i),Pi(t)&&"function"==typeof s&&s(t,{success:e})},a=t=>{r(t,i===window||i===document||n.useGlobalTarget||xi(i,t.target))},l=t=>{r(t,!1)};window.addEventListener("pointerup",a,o),window.addEventListener("pointercancel",l,o)};return i.forEach(t=>{var e;(n.useGlobalTarget?window:t).addEventListener("pointerdown",r,o),di(t)&&(t.addEventListener("focus",t=>((t,e)=>{const n=t.currentTarget;if(!n)return;const i=Ti(()=>{if(bi.has(n))return;Mi(n,"down");const t=Ti(()=>{Mi(n,"up")});n.addEventListener("keyup",t,e),n.addEventListener("blur",()=>Mi(n,"cancel"),e)});n.addEventListener("keydown",i,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),e)})(t,o)),e=t,Li.has(e.tagName)||-1!==e.tabIndex||t.hasAttribute("tabindex")||(t.tabIndex=0))}),s}function Ai(t){return U(t)&&"ownerSVGElement"in t}const Ei=t=>Boolean(t&&t.getVelocity),Vi=[...qn,qt,re],Di=r({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});class Ni extends i.Component{getSnapshotBeforeUpdate(t){const e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){const t=e.offsetParent,n=di(t)&&t.offsetWidth||0,i=this.props.sizeRef.current;i.height=e.offsetHeight||0,i.width=e.offsetWidth||0,i.top=e.offsetTop,i.left=e.offsetLeft,i.right=n-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}}function ki({children:e,isPresent:n,anchorX:o,root:s}){const r=c(),l=a(null),d=a({width:0,height:0,top:0,left:0,right:0}),{nonce:p}=h(Di);return u(()=>{const{width:t,height:e,top:i,left:a,right:c}=d.current;if(n||!l.current||!t||!e)return;const h="left"===o?`left: ${a}`:`right: ${c}`;l.current.dataset.motionPopId=r;const u=document.createElement("style");p&&(u.nonce=p);const m=s??document.head;return m.appendChild(u),u.sheet&&u.sheet.insertRule(`\n [data-motion-pop-id="${r}"] {\n position: absolute !important;\n width: ${t}px !important;\n height: ${e}px !important;\n ${h}px !important;\n top: ${i}px !important;\n }\n `),()=>{m.contains(u)&&m.removeChild(u)}},[n]),t(Ni,{isPresent:n,childRef:l,sizeRef:d,children:i.cloneElement(e,{ref:l})})}const Oi=({children:e,initial:n,isPresent:o,onExitComplete:s,custom:r,presenceAffectsLayout:a,mode:l,anchorX:h,root:u})=>{const p=D(Bi),m=c();let f=!0,g=d(()=>(f=!1,{id:m,initial:n,isPresent:o,custom:r,onExitComplete:t=>{p.set(t,!0);for(const t of p.values())if(!t)return;s&&s()},register:t=>(p.set(t,!1),()=>p.delete(t))}),[o,p,s]);return a&&f&&(g={...g}),d(()=>{p.forEach((t,e)=>p.set(e,!1))},[o]),i.useEffect(()=>{!o&&!p.size&&s&&s()},[o]),"popLayout"===l&&(e=t(ki,{isPresent:o,anchorX:h,root:u,children:e})),t(O.Provider,{value:g,children:e})};function Bi(){return new Map}function Ri(t=!0){const e=h(O);if(null===e)return[!0,null];const{isPresent:n,onExitComplete:i,register:o}=e,r=c();s(()=>{if(t)return o(r)},[t]);const a=p(()=>t&&i&&i(r),[r,i,t]);return!n&&i?[!1,a]:[!0]}const Ii=t=>t.key||"";function Fi(t){const e=[];return m.forEach(t,t=>{f(t)&&e.push(t)}),e}const ji=({children:e,custom:i,initial:s=!0,onExitComplete:r,presenceAffectsLayout:l=!0,mode:c="sync",propagate:u=!1,anchorX:p="left",root:m})=>{const[f,g]=Ri(u),v=d(()=>Fi(e),[e]),y=u&&!f?[]:v.map(Ii),C=a(!0),x=a(v),w=D(()=>new Map),[L,b]=o(v),[T,M]=o(v);k(()=>{C.current=!1,x.current=v;for(let t=0;t<T.length;t++){const e=Ii(T[t]);y.includes(e)?w.delete(e):!0!==w.get(e)&&w.set(e,!1)}},[T,y.length,y.join("-")]);const P=[];if(v!==L){let t=[...v];for(let e=0;e<T.length;e++){const n=T[e],i=Ii(n);y.includes(i)||(t.splice(e,0,n),P.push(n))}return"wait"===c&&P.length&&(t=P),M(Fi(t)),b(v),null}"production"!==process.env.NODE_ENV&&"wait"===c&&T.length;const{forceRender:S}=h(V);return t(n,{children:T.map(e=>{const n=Ii(e),o=!(u&&!f)&&(v===T||y.includes(n));return t(Oi,{isPresent:o,initial:!(C.current&&!s)&&void 0,custom:i,presenceAffectsLayout:l,mode:c,root:m,onExitComplete:o?void 0:()=>{if(!w.has(n))return;w.set(n,!0);let t=!0;w.forEach(e=>{e||(t=!1)}),t&&(S?.(),M(x.current),u&&g?.(),r&&r())},anchorX:p,children:e},n)})})},Zi=r({strict:!1}),_i={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Ui={};for(const t in _i)Ui[t]={isEnabled:e=>_i[t].some(t=>!!e[t])};const Hi=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 Wi(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Hi.has(t)}let $i=t=>!Wi(t);try{"function"==typeof(zi=require("@emotion/is-prop-valid").default)&&($i=t=>t.startsWith("on")?!Wi(t):zi(t))}catch{}var zi;const Yi=r({});function Xi(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function Gi(t){return"string"==typeof t||Array.isArray(t)}const Ki=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],qi=["initial",...Ki];function Ji(t){return Xi(t.animate)||qi.some(e=>Gi(t[e]))}function Qi(t){return Boolean(Ji(t)||t.variants)}function to(t){const{initial:e,animate:n}=function(t,e){if(Ji(t)){const{initial:e,animate:n}=t;return{initial:!1===e||Gi(e)?e:void 0,animate:Gi(n)?n:void 0}}return!1!==t.inherit?e:{}}(t,h(Yi));return d(()=>({initial:e,animate:n}),[eo(e),eo(n)])}function eo(t){return Array.isArray(t)?t.join(" "):t}const no={};function io(t,{layout:e,layoutId:n}){return gn.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!no[t]||"opacity"===t)}const oo={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},so=fn.length;function ro(t,e,n){const{style:i,vars:o,transformOrigin:s}=t;let r=!1,a=!1;for(const t in e){const n=e[t];if(gn.has(t))r=!0;else if(At(t))o[t]=n;else{const e=ui(n,si[t]);t.startsWith("origin")?(a=!0,s[t]=e):i[t]=e}}if(e.transform||(r||n?i.transform=function(t,e,n){let i="",o=!0;for(let s=0;s<so;s++){const r=fn[s],a=t[r];if(void 0===a)continue;let l=!0;if(l="number"==typeof a?a===(r.startsWith("scale")?1:0):0===parseFloat(a),!l||n){const t=ui(a,si[r]);l||(o=!1,i+=`${oo[r]||r}(${t}) `),n&&(e[r]=t)}}return i=i.trim(),n?i=n(e,o?"":i):o&&(i="none"),i}(e,t.transform,n):i.transform&&(i.transform="none")),a){const{originX:t="50%",originY:e="50%",originZ:n=0}=s;i.transformOrigin=`${t} ${e} ${n}`}}const ao=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function lo(t,e,n){for(const i in e)Ei(e[i])||io(i,n)||(t[i]=e[i])}function co(t,e){const n={};return lo(n,t.style||{},t),Object.assign(n,function({transformTemplate:t},e){return d(()=>{const n={style:{},transform:{},transformOrigin:{},vars:{}};return ro(n,e,t),Object.assign({},n.vars,n.style)},[e])}(t,e)),n}function ho(t,e){const n={},i=co(t,e);return t.drag&&!1!==t.dragListener&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===t.drag?"none":"pan-"+("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=i,n}const uo={offset:"stroke-dashoffset",array:"stroke-dasharray"},po={offset:"strokeDashoffset",array:"strokeDasharray"};function mo(t,{attrX:e,attrY:n,attrScale:i,pathLength:o,pathSpacing:s=1,pathOffset:r=0,...a},l,c,h){if(ro(t,a,c),l)return void(t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:u,style:d}=t;u.transform&&(d.transform=u.transform,delete u.transform),(d.transform||u.transformOrigin)&&(d.transformOrigin=u.transformOrigin??"50% 50%",delete u.transformOrigin),d.transform&&(d.transformBox=h?.transformBox??"fill-box",delete u.transformBox),void 0!==e&&(u.x=e),void 0!==n&&(u.y=n),void 0!==i&&(u.scale=i),void 0!==o&&function(t,e,n=1,i=0,o=!0){t.pathLength=1;const s=o?uo:po;t[s.offset]=zt.transform(-i);const r=zt.transform(e),a=zt.transform(n);t[s.array]=`${r} ${a}`}(u,o,s,r,!1)}const fo=()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}}),go=t=>"string"==typeof t&&"svg"===t.toLowerCase();function vo(t,e,n,i){const o=d(()=>{const n={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return mo(n,e,go(i),t.transformTemplate,t.style),{...n.attrs,style:{...n.style}}},[e]);if(t.style){const e={};lo(e,t.style,t),o.style={...e,...o.style}}return o}const yo=["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 Co(t){return"string"==typeof t&&!t.includes("-")&&!!(yo.indexOf(t)>-1||/[A-Z]/u.test(t))}function xo(t,e,n,{latestValues:i},o,s=!1){const r=(Co(t)?vo:ho)(e,i,o,t),a=function(t,e,n){const i={};for(const o in t)"values"===o&&"object"==typeof t.values||($i(o)||!0===n&&Wi(o)||!e&&!Wi(o)||t.draggable&&o.startsWith("onDrag"))&&(i[o]=t[o]);return i}(e,"string"==typeof t,s),l=t!==g?{...a,...r,ref:n}:{},{children:c}=e,h=d(()=>Ei(c)?c.get():c,[c]);return v(t,{...l,children:h})}function wo(t){const e=[{},{}];return t?.values.forEach((t,n)=>{e[0][n]=t.get(),e[1][n]=t.getVelocity()}),e}function Lo(t,e,n,i){if("function"==typeof e){const[o,s]=wo(i);e=e(void 0!==n?n:t.custom,o,s)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){const[o,s]=wo(i);e=e(void 0!==n?n:t.custom,o,s)}return e}function bo(t){return Ei(t)?t.get():t}function To(t,e,n,i){const o={},s=i(t,{});for(const t in s)o[t]=bo(s[t]);let{initial:r,animate:a}=t;const l=Ji(t),c=Qi(t);e&&c&&!l&&!1!==t.inherit&&(void 0===r&&(r=e.initial),void 0===a&&(a=e.animate));let h=!!n&&!1===n.initial;h=h||!1===r;const u=h?a:r;if(u&&"boolean"!=typeof u&&!Xi(u)){const e=Array.isArray(u)?u:[u];for(let n=0;n<e.length;n++){const i=Lo(t,e[n]);if(i){const{transitionEnd:t,transition:e,...n}=i;for(const t in n){let e=n[t];if(Array.isArray(e)){e=e[h?e.length-1:0]}null!==e&&(o[t]=e)}for(const e in t)o[e]=t[e]}}}return o}const Mo=t=>(e,n)=>{const i=h(Yi),o=h(O),s=()=>function({scrapeMotionValuesFromProps:t,createRenderState:e},n,i,o){return{latestValues:To(n,i,o,t),renderState:e()}}(t,e,i,o);return n?s():D(s)};function Po(t,e,n){const{style:i}=t,o={};for(const s in i)(Ei(i[s])||e.style&&Ei(e.style[s])||io(s,t)||void 0!==n?.getValue(s)?.liveStyle)&&(o[s]=i[s]);return o}const So=Mo({scrapeMotionValuesFromProps:Po,createRenderState:ao});function Ao(t,e,n){const i=Po(t,e,n);for(const n in t)if(Ei(t[n])||Ei(e[n])){i[-1!==fn.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=t[n]}return i}const Eo=Mo({scrapeMotionValuesFromProps:Ao,createRenderState:fo}),Vo=Symbol.for("motionComponentSymbol");function Do(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function No(t,e,n){return p(i=>{i&&t.onMount&&t.onMount(i),e&&(i?e.mount(i):e.unmount()),n&&("function"==typeof n?n(i):Do(n)&&(n.current=i))},[e])}const ko=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Oo="data-"+ko("framerAppearId"),Bo=r({});function Ro(t,e,n,i,o){const{visualElement:r}=h(Yi),l=h(Zi),c=h(O),d=h(Di).reducedMotion,p=a(null);i=i||l.renderer,!p.current&&i&&(p.current=i(t,{visualState:e,parent:r,props:n,presenceContext:c,blockInitialAnimation:!!c&&!1===c.initial,reducedMotionConfig:d}));const m=p.current,f=h(Bo);!m||m.projection||!o||"html"!==m.type&&"svg"!==m.type||function(t,e,n,i){const{layoutId:o,layout:s,drag:r,dragConstraints:a,layoutScroll:l,layoutRoot:c,layoutCrossfade:h}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Io(t.parent)),t.projection.setOptions({layoutId:o,layout:s,alwaysMeasureLayout:Boolean(r)||a&&Do(a),visualElement:t,animationType:"string"==typeof s?s:"both",initialPromotionConfig:i,crossfade:h,layoutScroll:l,layoutRoot:c})}(p.current,n,o,f);const g=a(!1);u(()=>{m&&g.current&&m.update(n,c)});const v=n[Oo],y=a(Boolean(v)&&!window.MotionHandoffIsComplete?.(v)&&window.MotionHasOptimisedAnimation?.(v));return k(()=>{m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),y.current&&m.animationState&&m.animationState.animateChanges())}),s(()=>{m&&(!y.current&&m.animationState&&m.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(v)}),y.current=!1),m.enteringChildren=void 0)}),m}function Io(t){if(t)return!1!==t.options.allowProjection?t.projection:Io(t.parent)}function Fo(n,{forwardMotionProps:i=!1}={},o,s){o&&function(t){for(const e in t)Ui[e]={...Ui[e],...t[e]}}(o);const r=Co(n)?Eo:So;function a(a,l){let c;const u={...h(Di),...a,layoutId:jo(a)},{isStatic:d}=u,p=to(a),m=r(a,d);if(!d&&N){!function(t,e){const n=h(Zi).strict;if("production"!==process.env.NODE_ENV&&e&&n){const e="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";t.ignoreStrict?F(!1,e,"lazy-strict-mode"):j(!1,e,"lazy-strict-mode")}}(u,o);const t=function(t){const{drag:e,layout:n}=Ui;if(!e&&!n)return{};const i={...e,...n};return{MeasureLayout:e?.isEnabled(t)||n?.isEnabled(t)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}(u);c=t.MeasureLayout,p.visualElement=Ro(n,m,u,s,t.ProjectionNode)}return e(Yi.Provider,{value:p,children:[c&&p.visualElement?t(c,{visualElement:p.visualElement,...u}):null,xo(n,a,No(m,p.visualElement,l),m,d,i)]})}a.displayName=`motion.${"string"==typeof n?n:`create(${n.displayName??n.name??""})`}`;const l=y(a);return l[Vo]=n,l}function jo({layoutId:t}){const e=h(V).id;return e&&void 0!==t?e+"-"+t:t}function Zo(t,e){if("undefined"==typeof Proxy)return Fo;const n=new Map,i=(n,i)=>Fo(n,i,t,e);return new Proxy((t,e)=>("production"!==process.env.NODE_ENV&&tt(!1,"motion() is deprecated. Use motion.create() instead."),i(t,e)),{get:(o,s)=>"create"===s?i:(n.has(s)||n.set(s,Fo(s,void 0,t,e)),n.get(s))})}function _o({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function Uo(t){return void 0===t||1===t}function Ho({scale:t,scaleX:e,scaleY:n}){return!Uo(t)||!Uo(e)||!Uo(n)}function Wo(t){return Ho(t)||$o(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function $o(t){return zo(t.x)||zo(t.y)}function zo(t){return t&&"0%"!==t}function Yo(t,e,n){return n+e*(t-n)}function Xo(t,e,n,i,o){return void 0!==o&&(t=Yo(t,o,i)),Yo(t,n,i)+e}function Go(t,e=0,n=1,i,o){t.min=Xo(t.min,e,n,i,o),t.max=Xo(t.max,e,n,i,o)}function Ko(t,{x:e,y:n}){Go(t.x,e.translate,e.scale,e.originPoint),Go(t.y,n.translate,n.scale,n.originPoint)}const qo=.999999999999,Jo=1.0000000000001;function Qo(t,e){t.min=t.min+e,t.max=t.max+e}function ts(t,e,n,i,o=.5){Go(t,e,n,ce(t.min,t.max,o),i)}function es(t,e){ts(t.x,e.x,e.scaleX,e.scale,e.originX),ts(t.y,e.y,e.scaleY,e.scale,e.originY)}function ns(t,e){return _o(function(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}(t.getBoundingClientRect(),e))}const is=()=>({x:{min:0,max:0},y:{min:0,max:0}}),os={current:null},ss={current:!1};const rs=new WeakMap;const as=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class ls{scrapeMotionValuesFromProps(t,e,n){return{}}constructor({parent:t,props:e,presenceContext:n,reducedMotionConfig:i,blockInitialAnimation:o,visualState:s},r={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Sn,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 t=Pt.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,xt.render(this.render,!1,!0))};const{latestValues:a,renderState:l}=s;this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=r,this.blockInitialAnimation=Boolean(o),this.isControllingVariants=Ji(e),this.isVariantNode=Qi(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const{willChange:c,...h}=this.scrapeMotionValuesFromProps(e,{},this);for(const t in h){const e=h[t];void 0!==a[t]&&Ei(e)&&e.set(a[t])}}mount(t){this.current=t,rs.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),ss.current||function(){if(ss.current=!0,N)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>os.current=t.matches;t.addEventListener("change",e),e()}else os.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||os.current),"production"!==process.env.NODE_ENV&&tt(!0!==this.shouldReduceMotion,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),wt(this.notifyUpdate),wt(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const n=gn.has(t);n&&this.onBindTransform&&this.onBindTransform();const i=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&xt.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{i(),o&&o(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in Ui){const e=Ui[t];if(!e)continue;const{isEnabled:n,Feature:i}=e;if(!this.features[t]&&i&&n(this.props)&&(this.features[t]=new i(this)),this.features[t]){const e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<as.length;e++){const n=as[e];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const i=t["on"+n];i&&(this.propEventSubscriptions[n]=this.on(n,i))}this.prevMotionValues=function(t,e,n){for(const i in e){const o=e[i],s=n[i];if(Ei(o))t.addValue(i,o);else if(Ei(s))t.addValue(i,mi(o,{owner:t}));else if(s!==o)if(t.hasValue(i)){const e=t.getValue(i);!0===e.liveStyle?e.jump(o):e.hasAnimated||e.set(o)}else{const e=t.getStaticValue(i);t.addValue(i,mi(void 0!==e?e:o,{owner:t}))}}for(const i in n)void 0===e[i]&&t.removeValue(i);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){const n=this.values.get(t);e!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);const e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return void 0===n&&void 0!==e&&(n=mi(null===e?void 0:e,{owner:this}),this.addValue(t,n)),n}readValue(t,e){let n=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];var i;return null!=n&&("string"==typeof n&&(_(n)||H(n))?n=parseFloat(n):(i=n,!Vi.find(Kn(i))&&re.test(e)&&(n=li(t,e))),this.setBaseTarget(t,Ei(n)?n.get():n)),Ei(n)?n.get():n}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){const{initial:e}=this.props;let n;if("string"==typeof e||"object"==typeof e){const i=Lo(this.props,e,this.presenceContext?.custom);i&&(n=i[t])}if(e&&void 0!==n)return n;const i=this.getBaseTargetFromProps(this.props,t);return void 0===i||Ei(i)?void 0!==this.initialValues[t]&&void 0===n?void 0:this.baseTarget[t]:i}on(t,e){return this.events[t]||(this.events[t]=new G),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){fi.render(this.render)}}class cs extends ls{constructor(){super(...arguments),this.KeyframeResolver=hi}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Ei(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}function hs(t,{style:e,vars:n},i,o){const s=t.style;let r;for(r in e)s[r]=e[r];for(r in o?.applyProjectionStyles(s,i),n)s.setProperty(r,n[r])}class us extends cs{constructor(){super(...arguments),this.type="html",this.renderInstance=hs}readValueFromInstance(t,e){if(gn.has(e))return this.projection?.isProjecting?dn(e):((t,e)=>{const{transform:n="none"}=getComputedStyle(t);return pn(n,e)})(t,e);{const i=(n=t,window.getComputedStyle(n)),o=(At(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(t,{transformPagePoint:e}){return ns(t,e)}build(t,e,n){ro(t,e,n.transformTemplate)}scrapeMotionValuesFromProps(t,e,n){return Po(t,e,n)}}const ds=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"]);class ps extends cs{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=is}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(gn.has(e)){const t=ai(e);return t&&t.default||0}return e=ds.has(e)?e:ko(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,n){return Ao(t,e,n)}build(t,e,n){mo(t,e,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(t,e,n,i){!function(t,e,n,i){hs(t,e,void 0,i);for(const n in e.attrs)t.setAttribute(ds.has(n)?n:ko(n),e.attrs[n])}(t,e,0,i)}mount(t){this.isSVGTag=go(t.tagName),super.mount(t)}}const ms=(t,e)=>Co(t)?new ps(e):new us(e,{allowProjection:t!==g});function fs(t,e,n){const i=t.getProps();return Lo(i,e,void 0!==n?n:i.custom,t)}const gs=t=>Array.isArray(t);function vs(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,mi(n))}function ys(t){return gs(t)?t[t.length-1]||0:t}function Cs(t,e){const n=t.getValue("willChange");if(i=n,Boolean(Ei(i)&&i.add))return n.add(e);if(!n&&Z.WillChange){const n=new Z.WillChange("auto");t.addValue("willChange",n),n.add(e)}var i}function xs(t){return t.props[Oo]}const ws=t=>null!==t;const Ls={type:"spring",stiffness:500,damping:25,restSpeed:10},bs={type:"keyframes",duration:.8},Ts={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Ms=(t,{keyframes:e})=>e.length>2?bs:gn.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:Ls:Ts;const Ps=(t,e,n,i={},o,s)=>r=>{const a=Xn(i,t)||{},l=a.delay||i.delay||0;let{elapsed:c=0}=i;c-=K(l);const h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-c,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{r(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:s?void 0:o};(function({when:t,delay:e,delayChildren:n,staggerChildren:i,staggerDirection:o,repeat:s,repeatType:r,repeatDelay:a,from:l,elapsed:c,...h}){return!!Object.keys(h).length})(a)||Object.assign(h,Ms(t,h)),h.duration&&(h.duration=K(h.duration)),h.repeatDelay&&(h.repeatDelay=K(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let u=!1;if((!1===h.type||0===h.duration&&!h.repeatDelay)&&(Un(h),0===h.delay&&(u=!0)),(Z.instantAnimations||Z.skipAnimations)&&(u=!0,Un(h),h.delay=0),h.allowFlatten=!a.type&&!a.ease,u&&!s&&void 0!==e.get()){const t=function(t,{repeat:e,repeatType:n="loop"}){const i=t.filter(ws);return i[e&&"loop"!==n&&e%2==1?0:i.length-1]}(h.keyframes,a);if(void 0!==t)return void xt.update(()=>{h.onUpdate(t),h.onComplete()})}return a.isSync?new on(h):new $n(h)};function Ss({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,i}function As(t,e,{delay:n=0,transitionOverride:i,type:o}={}){let{transition:s=t.getDefaultTransition(),transitionEnd:r,...a}=e;i&&(s=i);const l=[],c=o&&t.animationState&&t.animationState.getState()[o];for(const e in a){const i=t.getValue(e,t.latestValues[e]??null),o=a[e];if(void 0===o||c&&Ss(c,e))continue;const r={delay:n,...Xn(s||{},e)},h=i.get();if(void 0!==h&&!i.isAnimating&&!Array.isArray(o)&&o===h&&!r.velocity)continue;let u=!1;if(window.MotionHandoffAnimation){const n=xs(t);if(n){const t=window.MotionHandoffAnimation(n,e,xt);null!==t&&(r.startTime=t,u=!0)}}Cs(t,e),i.start(Ps(e,i,o,t.shouldReduceMotion&&Gn.has(e)?{type:!1}:r,t,u));const d=i.animation;d&&l.push(d)}return r&&Promise.all(l).then(()=>{xt.update(()=>{r&&function(t,e){const n=fs(t,e);let{transitionEnd:i={},transition:o={},...s}=n||{};s={...s,...i};for(const e in s)vs(t,e,ys(s[e]))}(t,r)})}),l}function Es(t,e,n,i=0,o=1){const s=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),r=t.size,a=(r-1)*i;return"function"==typeof n?n(s,r):1===o?s*i:a-s*i}function Vs(t,e,n={}){const i=fs(t,e,"exit"===n.type?t.presenceContext?.custom:void 0);let{transition:o=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const s=i?()=>Promise.all(As(t,i,n)):()=>Promise.resolve(),r=t.variantChildren&&t.variantChildren.size?(i=0)=>{const{delayChildren:s=0,staggerChildren:r,staggerDirection:a}=o;return function(t,e,n=0,i=0,o=0,s=1,r){const a=[];for(const l of t.variantChildren)l.notify("AnimationStart",e),a.push(Vs(l,e,{...r,delay:n+("function"==typeof i?0:i)+Es(t.variantChildren,l,i,o,s)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}(t,e,i,s,r,a,n)}:()=>Promise.resolve(),{when:a}=o;if(a){const[t,e]="beforeChildren"===a?[s,r]:[r,s];return t().then(()=>e())}return Promise.all([s(),r(n.delay)])}function Ds(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}const Ns=qi.length;function ks(t){if(!t)return;if(!t.isControllingVariants){const e=t.parent&&ks(t.parent)||{};return void 0!==t.props.initial&&(e.initial=t.props.initial),e}const e={};for(let n=0;n<Ns;n++){const i=qi[n],o=t.props[i];(Gi(o)||!1===o)&&(e[i]=o)}return e}const Os=[...Ki].reverse(),Bs=Ki.length;function Rs(t){return e=>Promise.all(e.map(({animation:e,options:n})=>function(t,e,n={}){let i;if(t.notify("AnimationStart",e),Array.isArray(e)){const o=e.map(e=>Vs(t,e,n));i=Promise.all(o)}else if("string"==typeof e)i=Vs(t,e,n);else{const o="function"==typeof e?fs(t,e,n.custom):e;i=Promise.all(As(t,o,n))}return i.then(()=>{t.notify("AnimationComplete",e)})}(t,e,n)))}function Is(t){let e=Rs(t),n=Zs(),i=!0;const o=e=>(n,i)=>{const o=fs(t,i,"exit"===e?t.presenceContext?.custom:void 0);if(o){const{transition:t,transitionEnd:e,...i}=o;n={...n,...i,...e}}return n};function s(s){const{props:r}=t,a=ks(t.parent)||{},l=[],c=new Set;let h={},u=1/0;for(let e=0;e<Bs;e++){const d=Os[e],p=n[d],m=void 0!==r[d]?r[d]:a[d],f=Gi(m),g=d===s?p.isActive:null;!1===g&&(u=e);let v=m===a[d]&&m!==r[d]&&f;if(v&&i&&t.manuallyAnimateOnMount&&(v=!1),p.protectedKeys={...h},!p.isActive&&null===g||!m&&!p.prevProp||Xi(m)||"boolean"==typeof m)continue;const y=Fs(p.prevProp,m);let C=y||d===s&&p.isActive&&!v&&f||e>u&&f,x=!1;const w=Array.isArray(m)?m:[m];let L=w.reduce(o(d),{});!1===g&&(L={});const{prevResolvedValues:b={}}=p,T={...b,...L},M=e=>{C=!0,c.has(e)&&(x=!0,c.delete(e)),p.needsAnimating[e]=!0;const n=t.getValue(e);n&&(n.liveStyle=!1)};for(const t in T){const e=L[t],n=b[t];if(h.hasOwnProperty(t))continue;let i=!1;i=gs(e)&&gs(n)?!Ds(e,n):e!==n,i?null!=e?M(t):c.add(t):void 0!==e&&c.has(t)?M(t):p.protectedKeys[t]=!0}p.prevProp=m,p.prevResolvedValues=L,p.isActive&&(h={...h,...L}),i&&t.blockInitialAnimation&&(C=!1);const P=v&&y;C&&(!P||x)&&l.push(...w.map(e=>{const n={type:d};if("string"==typeof e&&i&&!P&&t.manuallyAnimateOnMount&&t.parent){const{parent:i}=t,o=fs(i,e);if(i.enteringChildren&&o){const{delayChildren:e}=o.transition||{};n.delay=Es(i.enteringChildren,t,e)}}return{animation:e,options:n}}))}if(c.size){const e={};if("boolean"!=typeof r.initial){const n=fs(t,Array.isArray(r.initial)?r.initial[0]:r.initial);n&&n.transition&&(e.transition=n.transition)}c.forEach(n=>{const i=t.getBaseTarget(n),o=t.getValue(n);o&&(o.liveStyle=!0),e[n]=i??null}),l.push({animation:e})}let d=Boolean(l.length);return!i||!1!==r.initial&&r.initial!==r.animate||t.manuallyAnimateOnMount||(d=!1),i=!1,d?e(l):Promise.resolve()}return{animateChanges:s,setActive:function(e,i){if(n[e].isActive===i)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,i)),n[e].isActive=i;const o=s(e);for(const t in n)n[t].protectedKeys={};return o},setAnimateFunction:function(n){e=n(t)},getState:()=>n,reset:()=>{n=Zs(),i=!0}}}function Fs(t,e){return"string"==typeof e?e!==t:!!Array.isArray(e)&&!Ds(e,t)}function js(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Zs(){return{animate:js(!0),whileInView:js(),whileHover:js(),whileTap:js(),whileDrag:js(),whileFocus:js(),exit:js()}}class _s{constructor(t){this.isMounted=!1,this.node=t}update(){}}let Us=0;const Hs={animation:{Feature:class extends _s{constructor(t){super(t),t.animationState||(t.animationState=Is(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Xi(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends _s{constructor(){super(...arguments),this.id=Us++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;const i=this.node.animationState.setActive("exit",!t);e&&!t&&i.then(()=>{e(this.id)})}mount(){const{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}}};function Ws(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}function $s(t){return{point:{x:t.pageX,y:t.pageY}}}function zs(t,e,n,i){return Ws(t,e,(t=>e=>wi(e)&&t(e,$s(e)))(n),i)}function Ys(t){return t.max-t.min}function Xs(t,e,n,i=.5){t.origin=i,t.originPoint=ce(e.min,e.max,t.origin),t.scale=Ys(n)/Ys(e),t.translate=ce(n.min,n.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function Gs(t,e,n,i){Xs(t.x,e.x,n.x,i?i.originX:void 0),Xs(t.y,e.y,n.y,i?i.originY:void 0)}function Ks(t,e,n){t.min=n.min+e.min,t.max=t.min+Ys(e)}function qs(t,e,n){t.min=e.min-n.min,t.max=t.min+Ys(e)}function Js(t,e,n){qs(t.x,e.x,n.x),qs(t.y,e.y,n.y)}function Qs(t){return[t("x"),t("y")]}const tr=({current:t})=>t?t.ownerDocument.defaultView:null,er=(t,e)=>Math.abs(t-e);class nr{constructor(t,e,{transformPagePoint:n,contextWindow:i=window,dragSnapToOrigin:o=!1,distanceThreshold:s=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const t=sr(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,n=function(t,e){const n=er(t.x,e.x),i=er(t.y,e.y);return Math.sqrt(n**2+i**2)}(t.offset,{x:0,y:0})>=this.distanceThreshold;if(!e&&!n)return;const{point:i}=t,{timestamp:o}=Lt;this.history.push({...i,timestamp:o});const{onStart:s,onMove:r}=this.handlers;e||(s&&s(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),r&&r(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=ir(e,this.transformPagePoint),xt.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();const{onEnd:n,onSessionEnd:i,resumeAnimation:o}=this.handlers;if(this.dragSnapToOrigin&&o&&o(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const s=sr("pointercancel"===t.type?this.lastMoveEventInfo:ir(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,s),i&&i(t,s)},!wi(t))return;this.dragSnapToOrigin=o,this.handlers=e,this.transformPagePoint=n,this.distanceThreshold=s,this.contextWindow=i||window;const r=ir($s(t),this.transformPagePoint),{point:a}=r,{timestamp:l}=Lt;this.history=[{...a,timestamp:l}];const{onSessionStart:c}=e;c&&c(t,sr(r,this.history)),this.removeListeners=Y(zs(this.contextWindow,"pointermove",this.handlePointerMove),zs(this.contextWindow,"pointerup",this.handlePointerUp),zs(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),wt(this.updatePoint)}}function ir(t,e){return e?{point:e(t.point)}:t}function or(t,e){return{x:t.x-e.x,y:t.y-e.y}}function sr({point:t},e){return{point:t,delta:or(t,ar(e)),offset:or(t,rr(e)),velocity:lr(e,.1)}}function rr(t){return t[0]}function ar(t){return t[t.length-1]}function lr(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const o=ar(t);for(;n>=0&&(i=t[n],!(o.timestamp-i.timestamp>K(e)));)n--;if(!i)return{x:0,y:0};const s=q(o.timestamp-i.timestamp);if(0===s)return{x:0,y:0};const r={x:(o.x-i.x)/s,y:(o.y-i.y)/s};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}function cr(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function hr(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,i]=[i,n]),{min:n,max:i}}const ur=.35;function dr(t,e,n){return{min:pr(t,e),max:pr(t,n)}}function pr(t,e){return"number"==typeof t?t:t[e]||0}const mr=new WeakMap;class fr{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={x:{min:0,max:0},y:{min:0,max:0}},this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:n}={}){const{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;const{dragSnapToOrigin:o}=this.getProps();this.panSession=new nr(t,{onSessionStart:t=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor($s(t).point)},onStart:(t,e)=>{const{drag:n,dragPropagation:i,onDragStart:o}=this.getProps();if(n&&!i&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===(s=n)||"y"===s?gi[s]?null:(gi[s]=!0,()=>{gi[s]=!1}):gi.x||gi.y?null:(gi.x=gi.y=!0,()=>{gi.x=gi.y=!1}),!this.openDragLock))return;var s;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Qs(t=>{let e=this.getAxisMotionValue(t).get()||0;if($t.test(e)){const{projection:n}=this.visualElement;if(n&&n.layout){const i=n.layout.layoutBox[t];if(i){e=Ys(i)*(parseFloat(e)/100)}}}this.originPoint[t]=e}),o&&xt.postRender(()=>o(t,e)),Cs(this.visualElement,"transform");const{animationState:r}=this.visualElement;r&&r.setActive("whileDrag",!0)},onMove:(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;const{dragPropagation:n,dragDirectionLock:i,onDirectionLock:o,onDrag:s}=this.getProps();if(!n&&!this.openDragLock)return;const{offset:r}=e;if(i&&null===this.currentDirection)return this.currentDirection=function(t,e=10){let n=null;Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x");return n}(r),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",e.point,r),this.updateAxis("y",e.point,r),this.visualElement.render(),s&&s(t,e)},onSessionEnd:(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},resumeAnimation:()=>Qs(t=>"paused"===this.getAnimationState(t)&&this.getAxisMotionValue(t).animation?.play())},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:o,distanceThreshold:n,contextWindow:tr(this.visualElement)})}stop(t,e){const n=t||this.latestPointerEvent,i=e||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!i||!n)return;const{velocity:s}=i;this.startAnimation(s);const{onDragEnd:r}=this.getProps();r&&xt.postRender(()=>r(n,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,n){const{drag:i}=this.getProps();if(!n||!gr(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(s=function(t,{min:e,max:n},i){return void 0!==e&&t<e?t=i?ce(e,t,i.min):Math.max(t,e):void 0!==n&&t>n&&(t=i?ce(n,t,i.max):Math.min(t,n)),t}(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){const{dragConstraints:t,dragElastic:e}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;t&&Do(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!n)&&function(t,{top:e,left:n,bottom:i,right:o}){return{x:cr(t.x,n,o),y:cr(t.y,e,i)}}(n.layoutBox,t),this.elastic=function(t=ur){return!1===t?t=0:!0===t&&(t=ur),{x:dr(t,"left","right"),y:dr(t,"top","bottom")}}(e),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&Qs(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){const n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(n.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:e}=this.getProps();if(!t||!Do(t))return!1;const n=t.current;j(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=function(t,e,n){const i=ns(t,n),{scroll:o}=e;return o&&(Qo(i.x,o.offset.x),Qo(i.y,o.offset.y)),i}(n,i.root,this.visualElement.getTransformPagePoint());let s=function(t,e){return{x:hr(t.x,e.x),y:hr(t.y,e.y)}}(i.layout.layoutBox,o);if(e){const t=e(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(s));this.hasMutatedConstraints=!!t,t&&(s=_o(t))}return s}startAnimation(t){const{drag:e,dragMomentum:n,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:r}=this.getProps(),a=this.constraints||{},l=Qs(r=>{if(!gr(r,e,this.currentDirection))return;let l=a&&a[r]||{};s&&(l={min:0,max:0});const c=i?200:1e6,h=i?40:1e7,u={type:"inertia",velocity:n?t[r]:0,bounceStiffness:c,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(r,u)});return Promise.all(l).then(r)}startAxisValueAnimation(t,e){const n=this.getAxisMotionValue(t);return Cs(this.visualElement,t),n.start(Ps(t,n,0,e,this.visualElement,!1))}stopAnimation(){Qs(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Qs(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const e=`_drag${t.toUpperCase()}`,n=this.visualElement.getProps(),i=n[e];return i||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){Qs(e=>{const{drag:n}=this.getProps();if(!gr(e,n,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(e);if(i&&i.layout){const{min:n,max:s}=i.layout.layoutBox[e];o.set(t[e]-ce(n,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:e}=this.getProps(),{projection:n}=this.visualElement;if(!Do(e)||!n||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Qs(t=>{const e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){const n=e.get();i[t]=function(t,e){let n=.5;const i=Ys(t),o=Ys(e);return o>i?n=X(e.min,e.max-i,t.min):i>o&&(n=X(t.min,t.max-o,e.min)),I(0,1,n)}({min:n,max:n},this.constraints[t])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Qs(e=>{if(!gr(e,t,null))return;const n=this.getAxisMotionValue(e),{min:o,max:s}=this.constraints[e];n.set(ce(o,s,i[e]))})}addListeners(){if(!this.visualElement.current)return;mr.set(this.visualElement,this);const t=zs(this.visualElement.current,"pointerdown",t=>{const{drag:e,dragListener:n=!0}=this.getProps();e&&n&&this.start(t)}),e=()=>{const{dragConstraints:t}=this.getProps();Do(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,i=n.addEventListener("measure",e);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),xt.read(e);const o=Ws(window,"resize",()=>this.scalePositionWithinConstraints()),s=n.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(Qs(e=>{const n=this.getAxisMotionValue(e);n&&(this.originPoint[e]+=t[e].translate,n.set(n.get()+t[e].translate))}),this.visualElement.render())});return()=>{o(),t(),i(),s&&s()}}getProps(){const t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=ur,dragMomentum:r=!0}=t;return{...t,drag:e,dragDirectionLock:n,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:r}}}function gr(t,e,n){return!(!0!==e&&e!==t||null!==n&&n!==t)}const vr=t=>(e,n)=>{t&&xt.postRender(()=>t(e,n))};const yr={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Cr(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const xr={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!zt.test(t))return t;t=parseFloat(t)}return`${Cr(t,e.target.x)}% ${Cr(t,e.target.y)}%`}},wr={correct:(t,{treeScale:e,projectionDelta:n})=>{const i=t,o=re.parse(t);if(o.length>5)return i;const s=re.createTransformer(t),r="number"!=typeof o[0]?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;o[0+r]/=a,o[1+r]/=l;const c=ce(a,l,.5);return"number"==typeof o[2+r]&&(o[2+r]/=c),"number"==typeof o[3+r]&&(o[3+r]/=c),s(o)}};let Lr=!1;class br extends C{componentDidMount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:i}=this.props,{projection:o}=t;!function(t){for(const e in t)no[e]=t[e],At(e)&&(no[e].isCSSVariable=!0)}(Mr),o&&(e.group&&e.group.add(o),n&&n.register&&i&&n.register(o),Lr&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),yr.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:e,visualElement:n,drag:i,isPresent:o}=this.props,{projection:s}=n;return s?(s.isPresent=o,Lr=!0,i||t.layoutDependency!==e||void 0===e||t.isPresent!==o?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||xt.postRender(()=>{const t=s.getStack();t&&t.members.length||this.safeToRemove()})),null):null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),fi.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n}=this.props,{projection:i}=t;Lr=!0,i&&(i.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Tr(e){const[n,i]=Ri(),o=h(V);return t(br,{...e,layoutGroup:o,switchLayoutGroup:h(Bo),isPresent:n,safeToRemove:i})}const Mr={borderRadius:{...xr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:xr,borderTopRightRadius:xr,borderBottomLeftRadius:xr,borderBottomRightRadius:xr,boxShadow:wr};const Pr=(t,e)=>t.depth-e.depth;class Sr{constructor(){this.children=[],this.isDirty=!1}add(t){B(this.children,t),this.isDirty=!0}remove(t){R(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Pr),this.isDirty=!1,this.children.forEach(t)}}const Ar=["TopLeft","TopRight","BottomLeft","BottomRight"],Er=Ar.length,Vr=t=>"string"==typeof t?parseFloat(t):t,Dr=t=>"number"==typeof t||zt.test(t);function Nr(t,e){return void 0!==t[e]?t[e]:t.borderRadius}const kr=Br(0,.5,ht),Or=Br(.5,.95,$);function Br(t,e,n){return i=>i<t?0:i>e?1:n(X(t,e,i))}function Rr(t,e){t.min=e.min,t.max=e.max}function Ir(t,e){Rr(t.x,e.x),Rr(t.y,e.y)}function Fr(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function jr(t,e,n,i,o){return t=Yo(t-=e,1/n,i),void 0!==o&&(t=Yo(t,1/o,i)),t}function Zr(t,e,[n,i,o],s,r){!function(t,e=0,n=1,i=.5,o,s=t,r=t){$t.test(e)&&(e=parseFloat(e),e=ce(r.min,r.max,e/100)-r.min);if("number"!=typeof e)return;let a=ce(s.min,s.max,i);t===s&&(a-=e),t.min=jr(t.min,e,n,a,o),t.max=jr(t.max,e,n,a,o)}(t,e[n],e[i],e[o],e.scale,s,r)}const _r=["x","scaleX","originX"],Ur=["y","scaleY","originY"];function Hr(t,e,n,i){Zr(t.x,e,_r,n?n.x:void 0,i?i.x:void 0),Zr(t.y,e,Ur,n?n.y:void 0,i?i.y:void 0)}function Wr(t){return 0===t.translate&&1===t.scale}function $r(t){return Wr(t.x)&&Wr(t.y)}function zr(t,e){return t.min===e.min&&t.max===e.max}function Yr(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Xr(t,e){return Yr(t.x,e.x)&&Yr(t.y,e.y)}function Gr(t){return Ys(t.x)/Ys(t.y)}function Kr(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class qr{constructor(){this.members=[]}add(t){B(this.members,t),t.scheduleRender()}remove(t){if(R(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){const e=this.members.findIndex(e=>t===e);if(0===e)return!1;let n;for(let t=e;t>=0;t--){const e=this.members[t];if(!1!==e.isPresent){n=e;break}}return!!n&&(this.promote(n),!0)}promote(t,e){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,e&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;!1===i&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:e,resumingFrom:n}=t;e.onExitComplete&&e.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const Jr=["","X","Y","Z"];let Qr=0;function ta(t,e,n,i){const{latestValues:o}=e;o[t]&&(n[t]=o[t],e.setStaticValue(t,0),i&&(i[t]=0))}function ea(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=xs(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:e,layoutId:i}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",xt,!(e||i))}const{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&ea(i)}function na({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:o}){return class{constructor(t={},n=e?.()){this.id=Qr++,this.animationId=0,this.animationCommitId=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,this.nodes.forEach(sa),this.nodes.forEach(da),this.nodes.forEach(pa),this.nodes.forEach(ra)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new Sr)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new G),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){const n=this.eventHandlers.get(t);n&&n.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e){if(this.instance)return;var n;this.isSVG=Ai(e)&&!(Ai(n=e)&&"svg"===n.tagName),this.instance=e;const{layoutId:i,layout:o,visualElement:s}=this.options;if(s&&!s.current&&s.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(o||i)&&(this.isLayoutDirty=!0),t){let n,i=0;const o=()=>this.root.updateBlockedByResize=!1;xt.read(()=>{i=window.innerWidth}),t(e,()=>{const t=window.innerWidth;t!==i&&(i=t,this.root.updateBlockedByResize=!0,n&&n(),n=function(t,e){const n=Pt.now(),i=({timestamp:o})=>{const s=o-n;s>=e&&(wt(i),t(s-e))};return xt.setup(i,!0),()=>wt(i)}(o,250),yr.hasAnimatedSinceResize&&(yr.hasAnimatedSinceResize=!1,this.nodes.forEach(ua)))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&s&&(i||o)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:n,layout:i})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const o=this.options.transition||s.getDefaultTransition()||Ca,{onLayoutAnimationStart:r,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!Xr(this.targetLayout,i),c=!e&&n;if(this.options.layoutRoot||this.resumeFrom||c||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const e={...Xn(o,"layout"),onPlay:r,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,c)}else e||ua(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=i})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),wt(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(ma),this.animationId++)}getTransformTemplate(){const{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&ea(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){const e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}const{layoutId:e,layout:n}=this.options;if(void 0===e&&!n)return;const i=this.getTransformTemplate();this.prevTransformTemplateValue=i?i(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(la);if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(ca);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(ha),this.nodes.forEach(ia),this.nodes.forEach(oa)):this.nodes.forEach(ca),this.clearAllSnapshots();const t=Pt.now();Lt.delta=I(0,1e3/60,t-Lt.timestamp),Lt.timestamp=t,Lt.isProcessing=!0,bt.update.process(Lt),bt.preRender.process(Lt),bt.render.process(Lt),Lt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,fi.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(aa),this.sharedNodes.forEach(fa)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,xt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){xt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||Ys(this.snapshot.measuredBox.x)||Ys(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++){this.path[t].updateScroll()}const t=this.layout;this.layout=this.measure(!1),this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=Boolean(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){const e=i(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!o)return;const t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!$r(this.projectionDelta),n=this.getTransformTemplate(),i=n?n(this.latestValues,""):void 0,s=i!==this.prevTransformTemplateValue;t&&this.instance&&(e||Wo(this.latestValues)||s)&&(o(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){const e=this.measurePageBox();let n=this.removeElementScroll(e);var i;return t&&(n=this.removeTransform(n)),La((i=n).x),La(i.y),{animationId:this.root.animationId,measuredBox:e,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:t}=this.options;if(!t)return{x:{min:0,max:0},y:{min:0,max:0}};const e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Ta))){const{scroll:t}=this.root;t&&(Qo(e.x,t.offset.x),Qo(e.y,t.offset.y))}return e}removeElementScroll(t){const e={x:{min:0,max:0},y:{min:0,max:0}};if(Ir(e,t),this.scroll?.wasRoot)return e;for(let n=0;n<this.path.length;n++){const i=this.path[n],{scroll:o,options:s}=i;i!==this.root&&o&&s.layoutScroll&&(o.wasRoot&&Ir(e,t),Qo(e.x,o.offset.x),Qo(e.y,o.offset.y))}return e}applyTransform(t,e=!1){const n={x:{min:0,max:0},y:{min:0,max:0}};Ir(n,t);for(let t=0;t<this.path.length;t++){const i=this.path[t];!e&&i.options.layoutScroll&&i.scroll&&i!==i.root&&es(n,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),Wo(i.latestValues)&&es(n,i.latestValues)}return Wo(this.latestValues)&&es(n,this.latestValues),n}removeTransform(t){const e={x:{min:0,max:0},y:{min:0,max:0}};Ir(e,t);for(let t=0;t<this.path.length;t++){const n=this.path[t];if(!n.instance)continue;if(!Wo(n.latestValues))continue;Ho(n.latestValues)&&n.updateSnapshot();const i=is();Ir(i,n.measurePageBox()),Hr(e,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,i)}return Wo(this.latestValues)&&Hr(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Lt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){const e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);const n=Boolean(this.resumingFrom)||this!==e;if(!(t||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:i,layoutId:o}=this.options;if(this.layout&&(i||o)){if(this.resolvedRelativeTargetAt=Lt.timestamp,!this.targetDelta&&!this.relativeTarget){const t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Js(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),Ir(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}var s,r,a;if(this.relativeTarget||this.targetDelta)if(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),s=this.target,r=this.relativeTarget,a=this.relativeParent.target,Ks(s.x,r.x,a.x),Ks(s.y,r.y,a.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Ir(this.target,this.layout.layoutBox),Ko(this.target,this.targetDelta)):Ir(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const t=this.getClosestProjectingParent();t&&Boolean(t.resumingFrom)===Boolean(this.resumingFrom)&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Js(this.relativeTargetOrigin,this.target,t.target),Ir(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(this.parent&&!Ho(this.parent.latestValues)&&!$o(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){const t=this.getLead(),e=Boolean(this.resumingFrom)||this!==t;let n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===Lt.timestamp&&(n=!1),n)return;const{layout:i,layoutId:o}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!i&&!o)return;Ir(this.layoutCorrected,this.layout.layoutBox);const s=this.treeScale.x,r=this.treeScale.y;!function(t,e,n,i=!1){const o=n.length;if(!o)return;let s,r;e.x=e.y=1;for(let a=0;a<o;a++){s=n[a],r=s.projectionDelta;const{visualElement:o}=s.options;o&&o.props.style&&"contents"===o.props.style.display||(i&&s.options.layoutScroll&&s.scroll&&s!==s.root&&es(t,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,Ko(t,r)),i&&Wo(s.latestValues)&&es(t,s.latestValues))}e.x<Jo&&e.x>qo&&(e.x=1),e.y<Jo&&e.y>qo&&(e.y=1)}(this.layoutCorrected,this.treeScale,this.path,e),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox,t.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}});const{target:a}=t;a?(this.projectionDelta&&this.prevProjectionDelta?(Fr(this.prevProjectionDelta.x,this.projectionDelta.x),Fr(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),Gs(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===s&&this.treeScale.y===r&&Kr(this.projectionDelta.x,this.prevProjectionDelta.x)&&Kr(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a))):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){const t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}}setAnimationOrigin(t,e=!1){const n=this.snapshot,i=n?n.latestValues:{},o={...this.latestValues},s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;const r={x:{min:0,max:0},y:{min:0,max:0}},a=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),c=!l||l.members.length<=1,h=Boolean(a&&!c&&!0===this.options.crossfade&&!this.path.some(ya));let u;this.animationProgress=0,this.mixTargetDelta=e=>{const n=e/1e3;var l,d,p,m,f,g;ga(s.x,t.x,n),ga(s.y,t.y,n),this.setTargetDelta(s),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Js(r,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,f=r,g=n,va(p.x,m.x,f.x,g),va(p.y,m.y,f.y,g),u&&(l=this.relativeTarget,d=u,zr(l.x,d.x)&&zr(l.y,d.y))&&(this.isProjectionDirty=!1),u||(u={x:{min:0,max:0},y:{min:0,max:0}}),Ir(u,this.relativeTarget)),a&&(this.animationValues=o,function(t,e,n,i,o,s){o?(t.opacity=ce(0,n.opacity??1,kr(i)),t.opacityExit=ce(e.opacity??1,0,Or(i))):s&&(t.opacity=ce(e.opacity??1,n.opacity??1,i));for(let o=0;o<Er;o++){const s=`border${Ar[o]}Radius`;let r=Nr(e,s),a=Nr(n,s);void 0===r&&void 0===a||(r||(r=0),a||(a=0),0===r||0===a||Dr(r)===Dr(a)?(t[s]=Math.max(ce(Vr(r),Vr(a),i),0),($t.test(a)||$t.test(r))&&(t[s]+="%")):t[s]=a)}(e.rotate||n.rotate)&&(t.rotate=ce(e.rotate||0,n.rotate||0,i))}(o,i,this.latestValues,n,h,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(wt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=xt.update(()=>{yr.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=mi(0)),this.currentAnimation=function(t,e,n){const i=Ei(t)?t:mi(t);return i.start(Ps("",i,e,n)),i.animation}(this.motionValue,[0,1e3],{...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{},onComplete:()=>{t.onComplete&&t.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 t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const t=this.getLead();let{targetWithTransforms:e,target:n,layout:i,latestValues:o}=t;if(e&&n&&i){if(this!==t&&this.layout&&i&&ba(this.options.animationType,this.layout.layoutBox,i.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const e=Ys(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;const i=Ys(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+i}Ir(e,n),es(e,o),Gs(this.projectionDeltaWithTransform,this.layoutCorrected,e,o)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new qr);this.sharedNodes.get(t).add(e);const n=e.options.initialPromotionConfig;e.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(e):void 0})}isLead(){const t=this.getStack();return!t||t.lead===this}getLead(){const{layoutId:t}=this.options;return t&&this.getStack()?.lead||this}getPrevLead(){const{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:n}={}){const i=this.getStack();i&&i.promote(this,n),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){const t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){const{visualElement:t}=this.options;if(!t)return;let e=!1;const{latestValues:n}=t;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(e=!0),!e)return;const i={};n.z&&ta("z",t,i,this.animationValues);for(let e=0;e<Jr.length;e++)ta(`rotate${Jr[e]}`,t,i,this.animationValues),ta(`skew${Jr[e]}`,t,i,this.animationValues);t.render();for(const e in i)t.setStaticValue(e,i[e]),this.animationValues&&(this.animationValues[e]=i[e]);t.scheduleRender()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible)return void(t.visibility="hidden");const n=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=bo(e?.pointerEvents)||"",void(t.transform=n?n(this.latestValues,""):"none");const i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target)return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=bo(e?.pointerEvents)||""),void(this.hasProjected&&!Wo(this.latestValues)&&(t.transform=n?n({},""):"none",this.hasProjected=!1));t.visibility="";const o=i.animationValues||i.latestValues;this.applyTransformsToTarget();let s=function(t,e,n){let i="";const o=t.x.translate/e.x,s=t.y.translate/e.y,r=n?.z||0;if((o||s||r)&&(i=`translate3d(${o}px, ${s}px, ${r}px) `),1===e.x&&1===e.y||(i+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:t,rotate:e,rotateX:o,rotateY:s,skewX:r,skewY:a}=n;t&&(i=`perspective(${t}px) ${i}`),e&&(i+=`rotate(${e}deg) `),o&&(i+=`rotateX(${o}deg) `),s&&(i+=`rotateY(${s}deg) `),r&&(i+=`skewX(${r}deg) `),a&&(i+=`skewY(${a}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return 1===a&&1===l||(i+=`scale(${a}, ${l})`),i||"none"}(this.projectionDeltaWithTransform,this.treeScale,o);n&&(s=n(o,s)),t.transform=s;const{x:r,y:a}=this.projectionDelta;t.transformOrigin=`${100*r.origin}% ${100*a.origin}% 0`,i.animationValues?t.opacity=i===this?o.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:o.opacityExit:t.opacity=i===this?void 0!==o.opacity?o.opacity:"":void 0!==o.opacityExit?o.opacityExit:0;for(const e in no){if(void 0===o[e])continue;const{correct:n,applyTo:r,isCSSVariable:a}=no[e],l="none"===s?o[e]:n(o[e],i);if(r){const e=r.length;for(let n=0;n<e;n++)t[r[n]]=l}else a?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=i===this?bo(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(la),this.root.sharedNodes.clear()}}}function ia(t){t.updateLayout()}function oa(t){const e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:i}=t.layout,{animationType:o}=t.options,s=e.source!==t.layout.source;"size"===o?Qs(t=>{const i=s?e.measuredBox[t]:e.layoutBox[t],o=Ys(i);i.min=n[t].min,i.max=i.min+o}):ba(o,e.layoutBox,n)&&Qs(i=>{const o=s?e.measuredBox[i]:e.layoutBox[i],r=Ys(n[i]);o.max=o.min+r,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[i].max=t.relativeTarget[i].min+r)});const r={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};Gs(r,n,e.layoutBox);const a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};s?Gs(a,t.applyTransform(i,!0),e.measuredBox):Gs(a,n,e.layoutBox);const l=!$r(r);let c=!1;if(!t.resumeFrom){const i=t.getClosestProjectingParent();if(i&&!i.resumeFrom){const{snapshot:o,layout:s}=i;if(o&&s){const r={x:{min:0,max:0},y:{min:0,max:0}};Js(r,e.layoutBox,o.layoutBox);const a={x:{min:0,max:0},y:{min:0,max:0}};Js(a,n,s.layoutBox),Xr(r,a)||(c=!0),i.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=r,t.relativeParent=i)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:e,delta:a,layoutDelta:r,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(t.isLead()){const{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function sa(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=Boolean(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function ra(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function aa(t){t.clearSnapshot()}function la(t){t.clearMeasurements()}function ca(t){t.isLayoutDirty=!1}function ha(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function ua(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function da(t){t.resolveTargetDelta()}function pa(t){t.calcProjection()}function ma(t){t.resetSkewAndRotation()}function fa(t){t.removeLeadSnapshot()}function ga(t,e,n){t.translate=ce(e.translate,0,n),t.scale=ce(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function va(t,e,n,i){t.min=ce(e.min,n.min,i),t.max=ce(e.max,n.max,i)}function ya(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}const Ca={duration:.45,ease:[.4,0,.1,1]},xa=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),wa=xa("applewebkit/")&&!xa("chrome/")?Math.round:$;function La(t){t.min=wa(t.min),t.max=wa(t.max)}function ba(t,e,n){return"position"===t||"preserve-aspect"===t&&(i=Gr(e),o=Gr(n),s=.2,!(Math.abs(i-o)<=s));var i,o,s}function Ta(t){return t!==t.root&&t.scroll?.wasRoot}const Ma=na({attachResizeListener:(t,e)=>Ws(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Pa={current:void 0},Sa=na({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Pa.current){const t=new Ma({});t.mount(window),t.setOptions({layoutScroll:!0}),Pa.current=t}return Pa.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>Boolean("fixed"===window.getComputedStyle(t).position)}),Aa={pan:{Feature:class extends _s{constructor(){super(...arguments),this.removePointerDownListener=$}onPointerDown(t){this.session=new nr(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:tr(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:e,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:vr(t),onStart:vr(e),onMove:n,onEnd:(t,e)=>{delete this.session,i&&xt.postRender(()=>i(t,e))}}}mount(){this.removePointerDownListener=zs(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends _s{constructor(t){super(t),this.removeGroupControls=$,this.removeListeners=$,this.controls=new fr(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||$}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:Sa,MeasureLayout:Tr}};function Ea(t,e,n){const{props:i}=t;t.animationState&&i.whileHover&&t.animationState.setActive("whileHover","Start"===n);const o=i["onHover"+n];o&&xt.postRender(()=>o(e,$s(e)))}function Va(t,e,n){const{props:i}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&i.whileTap&&t.animationState.setActive("whileTap","Start"===n);const o=i["onTap"+("End"===n?"":n)];o&&xt.postRender(()=>o(e,$s(e)))}const Da=new WeakMap,Na=new WeakMap,ka=t=>{const e=Da.get(t.target);e&&e(t)},Oa=t=>{t.forEach(ka)};function Ba(t,e,n){const i=function({root:t,...e}){const n=t||document;Na.has(n)||Na.set(n,{});const i=Na.get(n),o=JSON.stringify(e);return i[o]||(i[o]=new IntersectionObserver(Oa,{root:t,...e})),i[o]}(e);return Da.set(t,n),i.observe(t),()=>{Da.delete(t),i.unobserve(t)}}const Ra={some:0,all:1};const Ia=Zo({...Hs,...{inView:{Feature:class extends _s{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:e,margin:n,amount:i="some",once:o}=t,s={root:e?e.current:void 0,rootMargin:n,threshold:"number"==typeof i?i:Ra[i]};return Ba(this.node.current,s,t=>{const{isIntersecting:e}=t;if(this.isInView===e)return;if(this.isInView=e,o&&!e&&this.hasEnteredView)return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);const{onViewportEnter:n,onViewportLeave:i}=this.node.getProps(),s=e?n:i;s&&s(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}(t,e))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends _s{mount(){const{current:t}=this.node;t&&(this.unmount=Si(t,(t,e)=>(Va(this.node,e,"Start"),(t,{success:e})=>Va(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends _s{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){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=Y(Ws(this.node.current,"focus",()=>this.onFocus()),Ws(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends _s{mount(){const{current:t}=this.node;t&&(this.unmount=function(t,e,n={}){const[i,o,s]=yi(t,n),r=t=>{if(!Ci(t))return;const{target:n}=t,i=e(n,t);if("function"!=typeof i||!n)return;const s=t=>{Ci(t)&&(i(t),n.removeEventListener("pointerleave",s))};n.addEventListener("pointerleave",s,o)};return i.forEach(t=>{t.addEventListener("pointerenter",r,o)}),s}(t,(t,e)=>(Ea(this.node,e,"Start"),t=>Ea(this.node,t,"End"))))}unmount(){}}}},...Aa,...{layout:{ProjectionNode:Sa,MeasureLayout:Tr}}},ms);var Fa=function(i){var o=i.isOpen,r=i.onClose,l=i.children,c=i.whitoutBackground,h=void 0!==c&&c,u=i.closeButton,d=void 0!==u&&u,p=i.closeDisabled,m=void 0!==p&&p,f=i.escapeToClose,g=void 0===f||f,v=i.disableFocus,y=void 0!==v&&v,C=i.existTabIndex,x=void 0===C||C,b=i.zIndexLevel,T=void 0===b?100:b;i.overlayColor;var M=L(i,["isOpen","onClose","children","whitoutBackground","closeButton","closeDisabled","escapeToClose","disableFocus","existTabIndex","zIndexLevel","overlayColor"]),S=a(null),A=a(null);s(function(){return o?document.body.classList.add("onpe-modal-open"):document.body.classList.remove("onpe-modal-open"),function(){document.body.classList.remove("onpe-modal-open")}},[o]),s(function(){if(o){var t=function(){document.querySelectorAll(".onpe-modal-content").forEach(function(t){var e=t;e.style.scrollBehavior="auto",e.scrollTop=0,requestAnimationFrame(function(){e.scrollTop=0,setTimeout(function(){e.style.scrollBehavior="smooth"},10)})})};t(),setTimeout(t,10),setTimeout(t,50),setTimeout(t,100),setTimeout(t,200)}else{document.querySelectorAll(".onpe-modal-content").forEach(function(t){var e=t;e.style.scrollBehavior="auto",e.scrollTop=0,e.style.scrollBehavior="smooth"})}},[o]),s(function(){var t,e=function(t){var e=["a[href]","area[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","iframe","object","embed",'[tabindex]:not([tabindex="-1"])','[contenteditable="true"]'].join(","),n=Array.from(t.querySelectorAll(e)).filter(function(t){return e=t,"hidden"!==(n=window.getComputedStyle(e)).visibility&&"none"!==n.display&&null!==e.offsetParent&&-1!==t.tabIndex;var e,n});return t.tabIndex>=0&&(n=function(t,e,n){if(n||2===arguments.length)for(var i,o=0,s=e.length;o<s;o++)!i&&o in e||(i||(i=Array.prototype.slice.call(e,0,o)),i[o]=e[o]);return t.concat(i||Array.prototype.slice.call(e))}([t],n,!0)),n},n=function(t){if(o&&!y){var n=S.current;if(n){var i=t.relatedTarget;i&&!n.contains(i)&&setTimeout(function(){var t=document.activeElement;if(!t||!n.contains(t)){var i=e(n);i.length>0?i[i.length-1].focus():n.focus()}},0)}}},i=function(t){if("Escape"!==t.key||!g||m){if(o&&!y){var n=S.current;if(n){var i=e(n),s=document.activeElement||null;if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(t.key)){if(s&&n.contains(s)){var a=i.indexOf(s);return"ArrowUp"!==t.key&&"ArrowLeft"!==t.key||0!==a?"ArrowDown"!==t.key&&"ArrowRight"!==t.key||a!==i.length-1?void requestAnimationFrame(function(){var t=document.activeElement;t&&n.contains(t)||(-1!==a&&i[a]?i[a].focus():i.length>0?i[0].focus():n.focus())}):(t.preventDefault(),t.stopPropagation(),void(i.length>1?i[0].focus():s.focus())):(t.preventDefault(),t.stopPropagation(),void(i.length>1?i[i.length-1].focus():s.focus()))}return t.preventDefault(),void(i.length>0?"ArrowUp"===t.key||"ArrowLeft"===t.key?i[i.length-1].focus():i[0].focus():n.focus())}if("Tab"===t.key){if(0===i.length)return t.preventDefault(),void n.focus();var l=i[0],c=i[i.length-1],h=t.shiftKey;if(!s||!n.contains(s))return t.preventDefault(),void(h?c:l).focus();var u=i.indexOf(s);return h||s!==c&&u!==i.length-1?h?(t.preventDefault(),void(s===l||s===n||0===u?c.focus():u>0?i[u-1].focus():c.focus())):void 0:(t.preventDefault(),void l.focus())}}}}else r()};if(o&&!y){A.current=document.activeElement,null===(t=S.current)||void 0===t||t.focus(),document.addEventListener("keydown",i);var s=S.current;s&&s.addEventListener("focusout",n)}else o&&y&&document.addEventListener("keydown",i);return function(){document.removeEventListener("keydown",i);var t=S.current;t&&t.removeEventListener("focusout",n),!y&&A.current&&A.current.focus()}},[o,r,m,g,y]);var V,D,N,k={zIndex:T},O={zIndex:T+10};return t(P,{children:t(ji,{children:o&&e(n,{children:[t(Ia.div,{className:"onpe-modal-overlay",style:k,initial:{opacity:0},animate:{opacity:.8},exit:{opacity:0},onClick:r}),t(Ia.div,{className:(N="onpe-modal-container","".concat(N,o?" onpe-modal-open":" onpe-modal-closed")),style:O,initial:{opacity:.2,scale:.95,y:-20},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:-20},transition:{duration:.2},children:e("div",w({className:"onpe-modal-content-wrapper",ref:S,onClick:function(t){return t.stopPropagation()}},x&&{tabIndex:y?-1:0},{role:"dialog","aria-modal":"true","aria-labelledby":M["aria-labelledby"],"aria-describedby":M["aria-describedby"],"aria-label":M["aria-label"],children:[t("div",{className:(V=h?"onpe-modal-without-background":"onpe-modal-with-background",D=M.className||"","".concat("onpe-modal-content"," ").concat(V," ").concat(D).trim()),children:l}),d&&t("button",{onClick:r,className:"onpe-modal-close-button","aria-label":"Cerrar",type:"button",children:t(E,{"aria-hidden":"true",className:"w-full h-full"})})]}))})]})})})},ja=function(n){return e("svg",w({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"5.040041067761807 0 89.93839835728953 75.564681724846",style:{maxHeight:500},width:89.93839835728953,height:75.564681724846},n,{children:[t("path",{strokeWidth:4,stroke:"currentColor",fill:"white",d:"M89.8369 73H10.1631L50 4L89.8369 73Z"}),t("path",{fill:"currentColor",d:"M53.2832 35.828L52.5632 53.072H47.3432L46.6232 35.828H53.2832ZM50.0432 62.288C48.9632 62.288 48.0752 61.976 47.3792 61.352C46.7072 60.704 46.3712 59.912 46.3712 58.976C46.3712 58.016 46.7072 57.212 47.3792 56.564C48.0752 55.916 48.9632 55.592 50.0432 55.592C51.0992 55.592 51.9632 55.916 52.6352 56.564C53.3312 57.212 53.6792 58.016 53.6792 58.976C53.6792 59.912 53.3312 60.704 52.6352 61.352C51.9632 61.976 51.0992 62.288 50.0432 62.288Z"})]}))},Za=function(n){return e("svg",w({width:48,height:48,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:[e("g",{clipPath:"url(#clip0_2937_2817)",children:[t("path",{d:"M24.0543 46.9641C36.6876 46.9641 46.9289 36.7228 46.9289 24.0895C46.9289 11.4562 36.6876 1.21484 24.0543 1.21484C11.421 1.21484 1.17969 11.4562 1.17969 24.0895C1.17969 36.7228 11.421 46.9641 24.0543 46.9641Z",fill:"white"}),t("path",{d:"M38.6131 28.2485C38.6131 20.2089 32.096 13.6914 24.0568 13.6914C16.0175 13.6914 9.5 20.2089 9.5 28.2485H13.6588C13.6588 22.5058 18.3144 17.8509 24.0564 17.8509C29.7987 17.8509 34.454 22.5058 34.454 28.2485",fill:"black",fillOpacity:.1}),t("path",{d:"M25.0973 34.9017C29.4615 34.9017 32.9993 31.3638 32.9993 26.9997C32.9993 22.6355 29.4615 19.0977 25.0973 19.0977C20.7332 19.0977 17.1953 22.6355 17.1953 26.9997C17.1953 31.3638 20.7332 34.9017 25.0973 34.9017Z",fill:"black",fillOpacity:.1}),t("path",{d:"M24.0573 32.6145C28.766 32.6145 32.5833 28.7973 32.5833 24.0885C32.5833 19.3797 28.766 15.5625 24.0573 15.5625C19.3485 15.5625 15.5312 19.3797 15.5312 24.0885C15.5312 28.7973 19.3485 32.6145 24.0573 32.6145Z",fill:"url(#paint0_linear_2937_2817)"}),t("path",{d:"M44.8488 13.691C39.1241 2.17252 25.1456 -2.52398 13.6267 3.20077C10.0351 4.98585 6.96538 7.6682 4.71484 10.988L14.073 27.2079C12.3491 21.7306 15.3933 15.8927 20.8706 14.1692C21.8339 13.866 22.8364 13.705 23.8462 13.6914",fill:"url(#paint1_linear_2937_2817)"}),t("path",{d:"M4.71669 10.9883C-2.44582 21.6728 0.409436 36.1399 11.0936 43.3024C14.3993 45.5183 18.2175 46.8505 22.1842 47.172L31.9578 30.5359C28.3034 34.965 21.7503 35.5932 17.3208 31.9384C15.8164 30.6975 14.6914 29.0585 14.0744 27.2085",fill:"url(#paint2_linear_2937_2817)"}),t("path",{d:"M22.1836 47.1718C35.0101 48.1412 46.1937 38.5292 47.1635 25.703C47.4764 21.5645 46.6776 17.4175 44.8497 13.6914H23.8475C29.5895 13.7177 34.2237 18.3943 34.1967 24.1367C34.1862 26.46 33.3977 28.7128 31.9572 30.5357",fill:"url(#paint3_linear_2937_2817)"}),t("path",{d:"M4.71484 10.9873L14.073 27.2072C13.3796 24.8745 13.5265 22.3724 14.4881 20.1369L5.13034 10.3633",fill:"url(#paint4_linear_2937_2817)"}),t("path",{d:"M22.1858 47.1713L31.9594 30.5352C30.4173 32.374 28.2866 33.6228 25.9287 34.0699L21.7695 47.1713",fill:"url(#paint5_linear_2937_2817)"}),t("path",{d:"M44.8503 13.6914H23.8477C25.4094 13.6987 26.9494 14.0577 28.3534 14.7418C29.7573 15.4258 30.9892 16.4174 31.9574 17.6428L45.2665 14.3154",fill:"url(#paint6_linear_2937_2817)"})]}),e("defs",{children:[e("linearGradient",{id:"paint0_linear_2937_2817",x1:24.0621,y1:15.549,x2:24.0621,y2:32.6153,gradientUnits:"userSpaceOnUse",children:[t("stop",{stopColor:"#81B4E0"}),t("stop",{offset:1,stopColor:"#0C5A94"})]}),e("linearGradient",{id:"paint1_linear_2937_2817",x1:24.7818,y1:.79815,x2:24.7818,y2:19.7218,gradientUnits:"userSpaceOnUse",children:[t("stop",{stopColor:"#F06B59"}),t("stop",{offset:1,stopColor:"#DF2227"})]}),e("linearGradient",{id:"paint2_linear_2937_2817",x1:6.43681,y1:40.644,x2:16.0023,y2:24.84,gradientUnits:"userSpaceOnUse",children:[t("stop",{stopColor:"#388B41"}),t("stop",{offset:1,stopColor:"#4CB749"})]}),e("linearGradient",{id:"paint3_linear_2937_2817",x1:38.48,y1:42.3245,x2:28.2905,y2:17.7864,gradientUnits:"userSpaceOnUse",children:[t("stop",{stopColor:"#E4B022"}),t("stop",{offset:.3,stopColor:"#FCD209"})]}),e("linearGradient",{id:"paint4_linear_2937_2817",x1:9.60147,y1:26.5835,x2:9.60147,y2:9.94778,gradientUnits:"userSpaceOnUse",children:[t("stop",{stopOpacity:.15}),t("stop",{offset:.3,stopOpacity:.06}),t("stop",{offset:1,stopOpacity:.03})]}),e("linearGradient",{id:"paint5_linear_2937_2817",x1:32.5673,y1:31.9557,x2:21.1302,y2:43.6009,gradientUnits:"userSpaceOnUse",children:[t("stop",{stopOpacity:.15}),t("stop",{offset:.3,stopOpacity:.06}),t("stop",{offset:1,stopOpacity:.03})]}),e("linearGradient",{id:"paint6_linear_2937_2817",x1:32.3995,y1:35.3087,x2:34.0634,y2:18.8799,gradientUnits:"userSpaceOnUse",children:[t("stop",{stopOpacity:.15}),t("stop",{offset:.3,stopOpacity:.06}),t("stop",{offset:1,stopOpacity:.03})]}),t("clipPath",{id:"clip0_2937_2817",children:t("rect",{width:48,height:48,fill:"white"})})]})]}))},_a=function(n){return e("svg",w({width:48,height:48,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:[e("g",{clipPath:"url(#clip0_2937_2841)",children:[t("path",{d:"M24 47.4375C36.9442 47.4375 47.4375 36.9442 47.4375 24C47.4375 11.0558 36.9442 0.5625 24 0.5625C11.0558 0.5625 0.5625 11.0558 0.5625 24C0.5625 36.9442 11.0558 47.4375 24 47.4375Z",fill:"url(#paint0_linear_2937_2841)"}),t("path",{d:"M23.8129 2.85156V6.30156H24.1879V2.85156H23.8129ZM22.3497 2.94906L21.9762 2.97906L22.1262 4.85406L22.4997 4.82406L22.3497 2.94906ZM25.6512 2.94906L25.5012 4.82406L25.8747 4.85406L26.0247 2.97906L25.6512 2.94906ZM20.5103 3.15681L20.1405 3.22131L20.7405 6.63419L21.1103 6.56931L20.5103 3.15681ZM27.4905 3.15681L26.8905 6.56931L27.2603 6.63456L27.8603 3.22131L27.4905 3.15681ZM18.7065 3.55281L18.3447 3.65069L18.8318 5.45106L19.1937 5.35319L18.7065 3.55281ZM29.2943 3.55281L28.8072 5.35281L29.169 5.45106L29.6562 3.65106L29.2943 3.55281ZM16.977 4.06394L16.6234 4.18994L17.7867 7.45244L18.1395 7.32606L16.977 4.06394ZM31.0238 4.06394L29.8613 7.32644L30.2142 7.45206L31.3774 4.18994L31.0238 4.06394ZM32.7563 4.75844L31.9313 6.48381L32.2695 6.64506L33.0949 4.92006L32.7563 4.75844ZM15.2457 4.76106L14.9052 4.91706L15.6927 6.64206L16.0332 6.48681L15.2457 4.76106ZM13.6257 5.60856L13.3005 5.79531L15.0255 8.79531L15.3507 8.60856L13.6257 5.60856ZM34.3752 5.60856L32.6502 8.60856L32.9757 8.79531L34.7007 5.79531L34.3752 5.60856ZM12.0405 6.56856L11.7345 6.78494L12.822 8.32281L13.1284 8.10606L12.0405 6.56856ZM35.9603 6.56856L34.8728 8.10606L35.1788 8.32281L36.2663 6.78494L35.9603 6.56856ZM10.6065 7.68156L10.3197 7.92306L12.5322 10.5481L12.8187 10.3066L10.6065 7.68156ZM37.3943 7.68156L35.1822 10.3066L35.4687 10.5481L37.6812 7.92306L37.3943 7.68156ZM9.20628 8.90519L8.94491 9.17406L10.2949 10.4866L10.5559 10.2177L9.20628 8.90519ZM7.95753 10.2454L7.71791 10.5334L10.3804 12.7459L10.6204 12.4572L7.95753 10.2454ZM40.0433 10.2454L37.3804 12.4576L37.6204 12.7463L40.2829 10.5334L40.0433 10.2454ZM6.81941 11.6978L6.60603 12.0064L8.18141 13.0939L8.39478 12.7849L6.81941 11.6978ZM41.1814 11.6978L39.6064 12.7849L39.8194 13.0939L41.3944 12.0064L41.1814 11.6978ZM5.83166 13.2642L5.64491 13.5893L8.64491 15.3143L8.83166 14.9892L5.83166 13.2642ZM42.1699 13.2642L39.1699 14.9892L39.3567 15.3143L42.3567 13.5893L42.1699 13.2642ZM4.99241 14.8692L4.83416 15.2089L6.52166 15.9964L6.67991 15.6563L4.99241 14.8692ZM43.0092 14.8692L41.3217 15.6567L41.4799 15.9961L43.1674 15.2086L43.0092 14.8692ZM4.26603 16.5503L4.13478 16.9017L7.35978 18.1024L7.49103 17.7507L4.26603 16.5503ZM43.7348 16.5503L40.5098 17.7507L40.641 18.1024L43.866 16.9017L43.7348 16.5503ZM3.68591 18.3076L3.58991 18.6702L5.42741 19.1581L5.52378 18.7954L3.68591 18.3076ZM44.3149 18.3076L42.4774 18.7954L42.573 19.1581L44.4105 18.6706L44.3149 18.3076ZM3.25841 20.1042L3.19316 20.4736L6.60566 21.0739L6.67053 20.7042L3.25841 20.1042ZM44.7424 20.1042L41.3299 20.7042L41.3955 21.0739L44.808 20.4736L44.7424 20.1042ZM3.01916 21.9023L2.98241 22.2758L4.85741 22.4633L4.89416 22.0898L3.01916 21.9023ZM44.9824 21.9023L43.1074 22.0898L43.1442 22.4633L45.0192 22.2758L44.9824 21.9023ZM2.92578 23.7766V24.1516H6.37541V23.7766H2.92578ZM41.6254 23.7766V24.1516H45.0754V23.7766H41.6254ZM4.85703 25.4277L2.98203 25.6152L3.01878 25.9879L4.89378 25.8004L4.85703 25.4277ZM43.1438 25.4277L43.107 25.8004L44.982 25.9879L45.0188 25.6152L43.1438 25.4277ZM6.60528 26.8171L3.19278 27.4171L3.25841 27.7861L6.67091 27.1861L6.60528 26.8171ZM41.3955 26.8171L41.3303 27.1861L44.7428 27.7861L44.8077 27.4167L41.3955 26.8171ZM5.42778 28.7333L3.59028 29.2201L3.68591 29.5827L5.52341 29.0956L5.42778 28.7333ZM42.573 28.7333L42.477 29.0956L44.3145 29.5827L44.4109 29.2201L42.573 28.7333ZM7.35978 29.7886L4.13478 30.9882L4.26603 31.3396L7.49103 30.1399L7.35978 29.7886ZM40.641 29.7886L40.5098 30.1399L43.7348 31.3399L43.866 30.9882L40.641 29.7886ZM6.52128 31.8942L4.83378 32.6817L4.99203 33.0214L6.67953 32.2339L6.52128 31.8942ZM41.4795 31.8942L41.3213 32.2339L43.0088 33.0214L43.167 32.6813L41.4795 31.8942ZM8.64453 32.6142L5.64453 34.3392L5.83128 34.6643L8.83128 32.9393L8.64453 32.6142ZM39.3563 32.6142L39.1695 32.9393L42.1695 34.6643L42.3563 34.3388L39.3563 32.6142ZM8.18141 34.7974L6.60641 35.8849L6.81941 36.1936L8.39441 35.1061L8.18141 34.7974ZM39.8194 34.7974L39.606 35.1057L41.1814 36.1932L41.3948 35.8849L39.8194 34.7974ZM10.3804 35.1447L7.71791 37.3572L7.95753 37.6459L10.6204 35.4334L10.3804 35.1447ZM37.6204 35.1447L37.3804 35.4334L40.0433 37.6459L40.2829 37.3572L37.6204 35.1447ZM12.5322 37.3433L10.3197 39.9683L10.6065 40.2102L12.8187 37.5852L12.5322 37.3433ZM35.4687 37.3433L35.1822 37.5852L37.3943 40.2102L37.6812 39.9683L35.4687 37.3433ZM37.7063 37.4048L37.4449 37.6737L38.7949 38.9862L39.0559 38.7173L37.7063 37.4048ZM15.0263 39.1321L13.3013 42.0946L13.6249 42.2836L15.3499 39.3211L15.0263 39.1321ZM32.9749 39.1321L32.6509 39.3211L34.3759 42.2836L34.6995 42.0946L32.9749 39.1321ZM12.8224 39.5686L11.7345 41.1061L12.0405 41.3224L13.128 39.7846L12.8224 39.5686ZM35.1788 39.5686L34.8724 39.7846L35.9599 41.3224L36.2663 41.1057L35.1788 39.5686ZM17.7863 40.4386L16.6238 43.7011L16.977 43.8267L18.1395 40.5646L17.7863 40.4386ZM30.2142 40.4386L29.8613 40.5646L31.0238 43.8271L31.3774 43.7007L30.2142 40.4386ZM20.7405 41.2568L20.1405 44.6693L20.5103 44.7342L21.1103 41.3217L20.7405 41.2568ZM27.2603 41.2568L26.8905 41.3221L27.4905 44.7346L27.8603 44.6689L27.2603 41.2568ZM15.732 41.2816L14.9067 42.9691L15.2434 43.1341L16.0692 41.4466L15.732 41.2816ZM32.2688 41.2816L31.9317 41.4466L32.7574 43.1341L33.0942 42.9691L32.2688 41.2816ZM23.8129 41.5891V45.0391H24.1879V41.5891H23.8129ZM18.8318 42.4411L18.3439 44.2786L18.7065 44.3746L19.194 42.5371L18.8318 42.4411ZM29.169 42.4411L28.8064 42.5371L29.2943 44.3746L29.6569 44.2786L29.169 42.4411ZM22.1262 43.0737L21.9762 44.9487L22.3497 44.9787L22.4997 43.1037L22.1262 43.0737ZM25.8747 43.0737L25.5012 43.1037L25.6512 44.9787L26.0247 44.9487L25.8747 43.0737Z",fill:"white"}),t("path",{d:"M40.0117 7.875L22.0117 22.0125L23.9617 23.9625L40.0117 7.875Z",fill:"#FF0000"}),t("path",{d:"M23.9609 23.9625L26.2109 26.2125L40.0109 7.875L23.9609 23.9625Z",fill:"#D01414"}),t("path",{d:"M22.0125 22.0117L7.875 40.0117L23.9625 23.9617L22.0125 22.0117Z",fill:"white"}),t("path",{d:"M7.875 40.0109L26.2125 26.2109L23.9625 23.9609L7.875 40.0109Z",fill:"#ACACAC"})]}),e("defs",{children:[e("linearGradient",{id:"paint0_linear_2937_2841",x1:24.0075,y1:.567,x2:24.0075,y2:47.439,gradientUnits:"userSpaceOnUse",children:[t("stop",{stopColor:"#19D7FF"}),t("stop",{offset:1,stopColor:"#1E64F0"})]}),t("clipPath",{id:"clip0_2937_2841",children:t("rect",{width:48,height:48,fill:"white"})})]})]}))},Ua=function(n){return e("svg",w({width:48,height:48,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:[e("g",{clipPath:"url(#clip0_2937_2810)",children:[t("path",{d:"M43.3141 35.7195C42.6766 36.057 42.0203 36.357 41.3453 36.6008C39.1891 37.407 36.9203 37.8195 34.6141 37.8195C25.7453 37.8195 18.0203 31.7258 18.0203 23.8883C18.0391 21.7508 19.2203 19.782 21.0953 18.7695C13.0703 19.107 11.0078 27.4695 11.0078 32.3633C11.0078 46.2195 23.7766 47.6258 26.5328 47.6258C28.0141 47.6258 30.2453 47.1945 31.5953 46.7633L31.8391 46.6883C37.0141 44.907 41.4016 41.4195 44.3266 36.7883C44.5516 36.432 44.4391 35.982 44.1016 35.757C43.8578 35.607 43.5578 35.5883 43.3141 35.7195Z",fill:"url(#paint0_linear_2937_2810)"}),t("path",{opacity:.35,d:"M43.3141 35.7195C42.6766 36.057 42.0203 36.357 41.3453 36.6008C39.1891 37.407 36.9203 37.8195 34.6141 37.8195C25.7453 37.8195 18.0203 31.7258 18.0203 23.8883C18.0391 21.7508 19.2203 19.782 21.0953 18.7695C13.0703 19.107 11.0078 27.4695 11.0078 32.3633C11.0078 46.2195 23.7766 47.6258 26.5328 47.6258C28.0141 47.6258 30.2453 47.1945 31.5953 46.7633L31.8391 46.6883C37.0141 44.907 41.4016 41.4195 44.3266 36.7883C44.5516 36.432 44.4391 35.982 44.1016 35.757C43.8578 35.607 43.5578 35.5883 43.3141 35.7195Z",fill:"url(#paint1_radial_2937_2810)"}),t("path",{d:"M19.8169 45.2641C18.1482 44.2328 16.7044 42.8641 15.5607 41.2703C10.6294 34.5203 12.1107 25.0516 18.8607 20.1203C19.5732 19.6141 20.3044 19.1453 21.0919 18.7703C21.6732 18.4891 22.6669 18.0016 23.9982 18.0203C25.8919 18.0391 27.6732 18.9391 28.8169 20.4578C29.5669 21.4703 29.9982 22.6891 30.0169 23.9641C30.0169 23.9266 34.6107 9.03906 15.0169 9.03906C6.78565 9.03906 0.0169045 16.8578 0.0169045 23.7016C-0.0205955 27.3203 0.766904 30.9203 2.28565 34.2016C7.46065 45.2266 20.0607 50.6266 31.6107 46.7828C27.6544 48.0203 23.3419 47.4766 19.8169 45.2641Z",fill:"url(#paint2_linear_2937_2810)"}),t("path",{opacity:.41,d:"M19.8169 45.2641C18.1482 44.2328 16.7044 42.8641 15.5607 41.2703C10.6294 34.5203 12.1107 25.0516 18.8607 20.1203C19.5732 19.6141 20.3044 19.1453 21.0919 18.7703C21.6732 18.4891 22.6669 18.0016 23.9982 18.0203C25.8919 18.0391 27.6732 18.9391 28.8169 20.4578C29.5669 21.4703 29.9982 22.6891 30.0169 23.9641C30.0169 23.9266 34.6107 9.03906 15.0169 9.03906C6.78565 9.03906 0.0169045 16.8578 0.0169045 23.7016C-0.0205955 27.3203 0.766904 30.9203 2.28565 34.2016C7.46065 45.2266 20.0607 50.6266 31.6107 46.7828C27.6544 48.0203 23.3419 47.4766 19.8169 45.2641Z",fill:"url(#paint3_radial_2937_2810)"}),t("path",{d:"M28.5563 27.9187C28.4062 28.1062 27.9375 28.3875 27.9375 28.9875C27.9375 29.475 28.2562 29.9438 28.8187 30.3375C31.5187 32.2125 36.6 31.9688 36.6188 31.9688C38.625 31.9688 40.575 31.425 42.3 30.4125C45.825 28.35 48 24.5813 48 20.4938C48.0563 16.2938 46.5 13.5 45.8812 12.2625C41.9062 4.48125 33.3187 0 24 0C10.875 0 0.1875 10.5375 0 23.6625C0.09375 16.8187 6.9 11.2875 15 11.2875C15.6562 11.2875 19.4062 11.3438 22.875 13.1813C25.9312 14.7938 27.5438 16.725 28.65 18.6562C29.8125 20.6625 30.0188 23.175 30.0188 24.1875C30.0188 25.1812 29.5125 26.6812 28.5563 27.9187Z",fill:"url(#paint4_radial_2937_2810)"}),t("path",{d:"M28.5563 27.9187C28.4062 28.1062 27.9375 28.3875 27.9375 28.9875C27.9375 29.475 28.2562 29.9438 28.8187 30.3375C31.5187 32.2125 36.6 31.9688 36.6188 31.9688C38.625 31.9688 40.575 31.425 42.3 30.4125C45.825 28.35 48 24.5813 48 20.4938C48.0563 16.2938 46.5 13.5 45.8812 12.2625C41.9062 4.48125 33.3187 0 24 0C10.875 0 0.1875 10.5375 0 23.6625C0.09375 16.8187 6.9 11.2875 15 11.2875C15.6562 11.2875 19.4062 11.3438 22.875 13.1813C25.9312 14.7938 27.5438 16.725 28.65 18.6562C29.8125 20.6625 30.0188 23.175 30.0188 24.1875C30.0188 25.1812 29.5125 26.6812 28.5563 27.9187Z",fill:"url(#paint5_radial_2937_2810)"})]}),e("defs",{children:[e("linearGradient",{id:"paint0_linear_2937_2810",x1:11.0086,y1:33.192,x2:44.4366,y2:33.192,gradientUnits:"userSpaceOnUse",children:[t("stop",{stopColor:"#0C59A4"}),t("stop",{offset:1,stopColor:"#114A8B"})]}),e("radialGradient",{id:"paint1_radial_2937_2810",cx:0,cy:0,r:1,gradientUnits:"userSpaceOnUse",gradientTransform:"translate(29.475 33.4576) scale(17.882 16.986)",children:[t("stop",{offset:.72,stopOpacity:0}),t("stop",{offset:.95,stopOpacity:.53}),t("stop",{offset:1})]}),e("linearGradient",{id:"paint2_linear_2937_2810",x1:28.6427,y1:18.7039,x2:7.76028,y2:41.4499,gradientUnits:"userSpaceOnUse",children:[t("stop",{stopColor:"#1B9DE2"}),t("stop",{offset:.16,stopColor:"#1595DF"}),t("stop",{offset:.67,stopColor:"#0680D7"}),t("stop",{offset:1,stopColor:"#0078D4"})]}),e("radialGradient",{id:"paint3_radial_2937_2810",cx:0,cy:0,r:1,gradientUnits:"userSpaceOnUse",gradientTransform:"translate(13.2373 37.3159) rotate(-81.3826) scale(26.8871 21.7263)",children:[t("stop",{offset:.76,stopOpacity:0}),t("stop",{offset:.95,stopOpacity:.5}),t("stop",{offset:1})]}),e("radialGradient",{id:"paint4_radial_2937_2810",cx:0,cy:0,r:1,gradientUnits:"userSpaceOnUse",gradientTransform:"translate(4.84718 8.88615) rotate(92.2911) scale(37.9784 80.8984)",children:[t("stop",{stopColor:"#35C1F1"}),t("stop",{offset:.11,stopColor:"#34C1ED"}),t("stop",{offset:.23,stopColor:"#2FC2DF"}),t("stop",{offset:.31,stopColor:"#2BC3D2"}),t("stop",{offset:.67,stopColor:"#36C752"})]}),e("radialGradient",{id:"paint5_radial_2937_2810",cx:0,cy:0,r:1,gradientUnits:"userSpaceOnUse",gradientTransform:"translate(45.0113 14.5136) rotate(73.7366) scale(18.2477 14.8419)",children:[t("stop",{stopColor:"#66EB6E"}),t("stop",{offset:1,stopColor:"#66EB6E",stopOpacity:0})]}),t("clipPath",{id:"clip0_2937_2810",children:t("rect",{width:48,height:48,fill:"white"})})]})]}))},Ha=function(n){var i=n.isOpen,o=void 0!==i&&i,s=n.onClose,r=void 0===s?function(){}:s,a=n.className,l=void 0===a?"":a,c=n.zIndexLevel;return e(Fa,{zIndexLevel:void 0===c?100:c,isOpen:o,onClose:r,className:"onpe-modal-browser-incompatible-container ".concat(l),closeButton:!0,children:[t("div",{className:"onpe-modal-browser-incompatible-icon-container",children:t(ja,{className:"onpe-modal-browser-incompatible-icon",role:"presentation"})}),t("p",{className:"onpe-modal-browser-incompatible-title",children:"Navegador no recomendado"}),t("p",{className:"onpe-modal-browser-incompatible-message",children:"Para una mejor experiencia y mayor seguridad, debes ingresar con los siguientes navegadores:"}),e("div",{className:"onpe-modal-browser-incompatible-browsers-container",children:[t(Za,{role:"img","aria-label":"Google Chrome",className:"onpe-modal-browser-incompatible-browser-icon"}),t(_a,{role:"img","aria-label":"Safari",className:"onpe-modal-browser-incompatible-browser-icon"}),t(Ua,{role:"img","aria-label":"Microsoft Edge",className:"onpe-modal-browser-incompatible-browser-icon"})]})]})},Wa=function(e){return t("svg",w({width:64,height:64,viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"mt-10 lg:mt-16"},e,{children:t("path",{d:"M28.2673 44.2663L47.0673 25.4663L43.334 21.733L28.2673 36.7997L20.6673 29.1997L16.934 32.933L28.2673 44.2663ZM32.0007 58.6663C28.3118 58.6663 24.8451 57.9659 21.6007 56.565C18.3562 55.1641 15.534 53.2646 13.134 50.8663C10.734 48.4663 8.83443 45.6441 7.43532 42.3997C6.03621 39.1552 5.33576 35.6886 5.33398 31.9997C5.33398 28.3108 6.03443 24.8441 7.43532 21.5997C8.83621 18.3552 10.7358 15.533 13.134 13.133C15.534 10.733 18.3562 8.83345 21.6007 7.43434C24.8451 6.03523 28.3118 5.33479 32.0007 5.33301C35.6895 5.33301 39.1562 6.03345 42.4007 7.43434C45.6451 8.83523 48.4673 10.7348 50.8673 13.133C53.2673 15.533 55.1678 18.3552 56.5686 21.5997C57.9695 24.8441 58.6691 28.3108 58.6673 31.9997C58.6673 35.6886 57.9669 39.1552 56.566 42.3997C55.1651 45.6441 53.2655 48.4663 50.8673 50.8663C48.4673 53.2663 45.6451 55.1668 42.4007 56.5677C39.1562 57.9686 35.6895 58.6681 32.0007 58.6663ZM32.0007 53.333C37.9562 53.333 43.0006 51.2663 47.134 47.133C51.2673 42.9997 53.334 37.9552 53.334 31.9997C53.334 26.0441 51.2673 20.9997 47.134 16.8663C43.0006 12.733 37.9562 10.6663 32.0007 10.6663C26.0451 10.6663 21.0007 12.733 16.8673 16.8663C12.734 20.9997 10.6673 26.0441 10.6673 31.9997C10.6673 37.9552 12.734 42.9997 16.8673 47.133C21.0007 51.2663 26.0451 53.333 32.0007 53.333Z",fill:"currentColor"})}))},$a=function(n){var i=n.isOpen,o=void 0!==i&&i,s=n.onClose,r=void 0===s?function(){}:s,a=n.withoutAutoClose,l=void 0!==a&&a,c=n.title,h=n.message,u=n.icon,d=void 0===u?"warning":u,p=n.color,m=void 0===p?"blue":p,f=n.onConfirm,g=void 0===f?function(){}:f,v=n.onCancel,y=void 0===v?function(){}:v,C=n.textButtonConfirm,x=void 0===C?"Confirmar":C,w=n.textButtonCancel,L=void 0===w?"Cancelar":w,P=n.twoButtons,S=void 0===P||P,A=n.className,E=void 0===A?"":A,V=n.zIndexLevel,D=void 0===V?100:V;return e(Fa,{isOpen:o,onClose:r,className:"onpe-modal-confirm-container ".concat(E),closeButton:!1,closeDisabled:!0,zIndexLevel:D,"aria-labelledby":"modal-confirm-title","aria-describedby":"modal-confirm-message","aria-label":"modal-confirm-aria-label",children:[e("div",{className:"onpe-modal-confirm-icon-container onpe-modal-confirm-icon-".concat(m),children:["warning"===d&&t(ja,{role:"presentation",className:"onpe-modal-confirm-icon onpe-modal-confirm-icon-".concat(m)}),"success"===d&&t(Wa,{role:"presentation",className:"onpe-modal-confirm-icon onpe-modal-confirm-icon-".concat(m)})]}),!h&&t("div",{className:"onpe-modal-confirm-message"}),t("p",{className:" ".concat(h?"onpe-modal-confirm-title":"onpe-modal-confirm-title-short"," onpe-modal-confirm-title-").concat(m),children:c}),h&&t("div",{className:"onpe-modal-confirm-message",children:h}),e("div",{className:"onpe-modal-confirm-buttons-container",children:[S&&t(M,{className:"onpe-modal-confirm-button",color:"skyblue",title:L,onClick:function(){y(),l||r()}}),t(M,{className:"onpe-modal-confirm-button",color:"red",title:x,onClick:function(){return b(void 0,void 0,void 0,function(){return T(this,function(t){try{g(),l||r()}catch(t){l||r()}return[2]})})}})]})]})},za=function(e){return t("svg",w({width:102,height:102,viewBox:"0 0 102 102",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e,{children:t("path",{d:"M50.9999 3.08313C23.9241 3.08208 3.08296 24.6456 3.08325 51C3.08354 75.4375 22.453 98.9167 50.9999 98.9167C77.5573 98.9167 98.9166 77.3542 98.9166 51",stroke:"currentColor",strokeWidth:6,strokeLinecap:"round"})}))},Ya=function(e){return t("svg",w({width:33,height:33,viewBox:"0 0 33 33",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e,{children:t("path",{d:"M16.5 3C8.87169 2.9997 2.99992 9.07499 3 16.5C3.00008 23.385 8.45721 30 16.5 30C23.9822 30 30 23.925 30 16.5",stroke:"currentColor",strokeWidth:6,strokeLinecap:"round"})}))},Xa=function(n){var i=n.isOpen,o=void 0!==i&&i,s=n.onClose,r=void 0===s?function(){}:s,a=n.message,l=void 0===a?"Cargando...":a,c=n.className,h=void 0===c?"":c,u=n.zIndexLevel;return e(Fa,{disableFocus:!0,zIndexLevel:void 0===u?100:u,isOpen:o,onClose:r,className:h,closeDisabled:!0,whitoutBackground:!0,children:[t(za,{className:"onpe-modal-loading-spinner-desktop"}),t(Ya,{className:"onpe-modal-loading-spinner-mobile"}),t("p",{className:"onpe-modal-loading-message",children:l})]})},Ga=function(e){return t("svg",w({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e,{children:t("path",{d:"M21.7629 3.14219C21.8365 3.20154 21.8958 3.27659 21.9365 3.36184C21.9773 3.44709 21.9985 3.54039 21.9985 3.63489V11.8676H11.866V5.02304L21.2322 3.01427C21.3247 2.99429 21.4205 2.9953 21.5126 3.01722C21.6046 3.03914 21.6906 3.08141 21.7642 3.14093M10.5994 5.29409L3.50029 6.81523C3.35863 6.84566 3.23169 6.92374 3.14065 7.03646C3.0496 7.14917 2.99996 7.28969 3 7.43458V11.8676H10.5994V5.29409ZM3 13.1341V18.8337C3.00002 18.9863 3.05513 19.1337 3.1552 19.2489C3.25526 19.3641 3.39355 19.4393 3.54462 19.4606L10.5994 20.4688V13.1341H3ZM11.866 20.6499L21.2766 21.9938C21.3663 22.0065 21.4577 21.9997 21.5447 21.974C21.6316 21.9484 21.712 21.9043 21.7804 21.8449C21.8489 21.7854 21.9038 21.712 21.9414 21.6295C21.979 21.547 21.9985 21.4575 21.9985 21.3668V13.1341H11.866V20.6499Z",fill:"currentColor"})}))},Ka=function(e){return t("svg",w({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e,{children:t("path",{d:"M14.9751 3.01952L15.9351 1.28752C15.9474 1.26532 15.9552 1.24093 15.958 1.21573C15.9609 1.19052 15.9588 1.16501 15.9517 1.14063C15.9447 1.11625 15.933 1.0935 15.9172 1.07366C15.9014 1.05382 15.8818 1.0373 15.8596 1.02502C15.8374 1.01274 15.813 1.00495 15.7878 1.0021C15.7626 0.999249 15.7371 1.00139 15.7127 1.0084C15.6884 1.01541 15.6656 1.02716 15.6458 1.04296C15.6259 1.05877 15.6094 1.07832 15.5971 1.10052L14.6271 2.85052C13.7991 2.48747 12.9048 2.30002 12.0006 2.30002C11.0965 2.30002 10.2022 2.48747 9.37412 2.85052L8.40413 1.10052C8.37933 1.05543 8.33763 1.02204 8.28822 1.00769C8.2388 0.993347 8.18571 0.999219 8.14062 1.02402C8.09554 1.04881 8.06215 1.09051 8.0478 1.13992C8.03346 1.18934 8.03933 1.24243 8.06413 1.28752L9.02413 3.01952C8.11071 3.47001 7.33899 4.16332 6.79357 5.02342C6.24816 5.88353 5.95011 6.87722 5.93213 7.89552H18.0691C18.051 6.87701 17.7526 5.88318 17.2068 5.02305C16.661 4.16292 15.8889 3.46973 14.9751 3.01952ZM9.20012 5.67452C9.09981 5.67452 9.00174 5.64476 8.91835 5.589C8.83495 5.53325 8.76997 5.45401 8.73162 5.36131C8.69328 5.2686 8.6833 5.16661 8.70294 5.06824C8.72258 4.96986 8.77097 4.87952 8.84198 4.80866C8.91298 4.73779 9.00341 4.68959 9.10183 4.67014C9.20024 4.65069 9.30221 4.66087 9.39484 4.6994C9.48746 4.73792 9.56658 4.80306 9.62217 4.88657C9.67776 4.97008 9.70732 5.0682 9.70712 5.16852C9.70686 5.30281 9.65333 5.43151 9.55828 5.52637C9.46322 5.62124 9.33442 5.67452 9.20012 5.67452ZM14.8021 5.67452C14.7018 5.67452 14.6037 5.64476 14.5203 5.589C14.437 5.53325 14.372 5.45401 14.3336 5.36131C14.2953 5.2686 14.2853 5.16661 14.3049 5.06824C14.3246 4.96986 14.373 4.87952 14.444 4.80866C14.515 4.73779 14.6054 4.68959 14.7038 4.67014C14.8022 4.65069 14.9042 4.66087 14.9968 4.6994C15.0895 4.73792 15.1686 4.80306 15.2242 4.88657C15.2798 4.97008 15.3093 5.0682 15.3091 5.16852C15.3089 5.30281 15.2553 5.43151 15.1603 5.52637C15.0652 5.62124 14.9364 5.67452 14.8021 5.67452ZM5.93012 17.1715C5.92986 17.3646 5.96771 17.5558 6.0415 17.7342C6.1153 17.9126 6.22358 18.0747 6.36015 18.2112C6.49672 18.3477 6.65888 18.4558 6.83734 18.5295C7.01581 18.6032 7.20706 18.6409 7.40013 18.6405H8.37313V21.6405C8.37313 22.0013 8.51646 22.3474 8.77161 22.6025C9.02675 22.8577 9.3728 23.001 9.73362 23.001C10.0945 23.001 10.4405 22.8577 10.6956 22.6025C10.9508 22.3474 11.0941 22.0013 11.0941 21.6405V18.6405H12.9081V21.6405C12.9081 22.0012 13.0514 22.3471 13.3065 22.6022C13.5615 22.8572 13.9074 23.0005 14.2681 23.0005C14.6288 23.0005 14.9747 22.8572 15.2298 22.6022C15.4848 22.3471 15.6281 22.0012 15.6281 21.6405V18.6405H16.6021C16.7949 18.6406 16.9859 18.6028 17.1641 18.529C17.3422 18.4553 17.5041 18.3472 17.6405 18.2108C17.7768 18.0745 17.8849 17.9126 17.9586 17.7345C18.0324 17.5563 18.0703 17.3653 18.0701 17.1725V8.37552H5.93012V17.1715ZM4.06313 8.14152C3.70242 8.14205 3.35665 8.28564 3.10169 8.54079C2.84673 8.79594 2.70339 9.14181 2.70312 9.50252V15.1715C2.70312 15.3501 2.7383 15.527 2.80665 15.692C2.875 15.857 2.97517 16.0069 3.10146 16.1332C3.22775 16.2595 3.37767 16.3596 3.54268 16.428C3.70768 16.4963 3.88453 16.5315 4.06313 16.5315C4.24172 16.5315 4.41857 16.4963 4.58357 16.428C4.74858 16.3596 4.8985 16.2595 5.02479 16.1332C5.15108 16.0069 5.25125 15.857 5.3196 15.692C5.38795 15.527 5.42312 15.3501 5.42312 15.1715V9.50252C5.4226 9.14198 5.27914 8.79637 5.02421 8.54144C4.76927 8.2865 4.42366 8.14305 4.06313 8.14252M19.9351 8.14252C19.5744 8.14305 19.2287 8.28664 18.9737 8.54179C18.7187 8.79694 18.5754 9.14281 18.5751 9.50352V15.1725C18.5751 15.3511 18.6103 15.528 18.6786 15.693C18.747 15.858 18.8472 16.0079 18.9735 16.1342C19.0997 16.2605 19.2497 16.3606 19.4147 16.429C19.5797 16.4973 19.7565 16.5325 19.9351 16.5325C20.1137 16.5325 20.2906 16.4973 20.4556 16.429C20.6206 16.3606 20.7705 16.2605 20.8968 16.1342C21.0231 16.0079 21.1233 15.858 21.1916 15.693C21.2599 15.528 21.2951 15.3511 21.2951 15.1725V9.50252C21.2946 9.14198 21.1511 8.79637 20.8962 8.54144C20.6413 8.2865 20.2957 8.14305 19.9351 8.14252Z",fill:"currentColor"})}))},qa=function(e){return t("svg",w({stroke:"currentColor",fill:"currentColor",width:24,height:24,strokeWidth:0,viewBox:"0 0 384 512",xmlns:"http://www.w3.org/2000/svg"},e,{children:t("path",{d:"M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"})}))},Ja=function(n){var i=n.isOpen,o=void 0!==i&&i,s=n.onClose,r=void 0===s?function(){}:s,a=n.className,l=void 0===a?"":a,c=n.zIndexLevel;return e(Fa,{zIndexLevel:void 0===c?1e3:c,isOpen:o,onClose:r,className:"onpe-modal-system-incompatible-container ".concat(l),closeButton:!0,closeDisabled:!0,children:[t("div",{className:"onpe-modal-system-incompatible-icon-container",children:t(ja,{className:"onpe-modal-system-incompatible-icon",role:"presentation"})}),t("p",{className:"onpe-modal-system-incompatible-title",children:"Sistema Operativo no recomendado"}),t("p",{className:"onpe-modal-system-incompatible-message",children:"Para descargar e instalar el ONPEID utiliza un dispositivo con sistema operativo Windows, macOS, Android o iOS."}),e("div",{className:"onpe-modal-system-incompatible-systems-container",children:[t(Ga,{role:"img","aria-label":"WindowS 10 o superior",className:"onpe-modal-system-incompatible-system-icon"}),t(Ka,{role:"img","aria-label":"Android 7.0 o superior",className:"onpe-modal-system-incompatible-system-icon"}),t(qa,{role:"img","aria-label":"macOS 10.12 o superior / iOS 11.0 o superior",className:"onpe-modal-system-incompatible-system-icon"})]})]})},Qa=function(e){return t("svg",w({width:"1em",height:"1em",viewBox:"0 0 49 42",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e,{children:t("path",{d:"M0 42L24.5 0L49 42H0ZM7.68409 37.5789H41.3159L24.5 8.84211L7.68409 37.5789ZM24.5 35.3684C25.1311 35.3684 25.6604 35.1562 26.088 34.7318C26.5157 34.3074 26.7288 33.7827 26.7273 33.1579C26.7273 32.5316 26.5135 32.0062 26.0858 31.5818C25.6582 31.1574 25.1296 30.9459 24.5 30.9474C23.8689 30.9474 23.3396 31.1596 22.912 31.584C22.4843 32.0084 22.2712 32.5331 22.2727 33.1579C22.2727 33.7842 22.4865 34.3096 22.9142 34.734C23.3418 35.1584 23.8704 35.3699 24.5 35.3684ZM22.2727 28.7368H26.7273V17.6842H22.2727V28.7368Z",fill:"currentColor"})}))},tl=function(n){var i,s=n.isOpenBrowserError,r=void 0!==s&&s,a=n.isOpenDeviceError,l=void 0!==a&&a,c=n.bottom,h=void 0===c?40:c,u=n.right,d=void 0===u?20:u,p=o(!1),m=p[0],f=p[1];return t("div",{className:"onpe-not-recommended-wrapper",style:{bottom:"string"==typeof h?h:"".concat(h,"px"),right:"string"==typeof d?d:"".concat(d,"px")},children:e("div",{className:(i="onpe-not-recommended-container","".concat(i,m?" onpe-not-recommended-closed":" onpe-not-recommended-open")),style:{width:m?"60px":l?"360px":"305px"},children:[m?t("button",{onClick:function(){f(!1)},className:"onpe-not-recommended-icon-button","aria-label":"Abrir advertencia",type:"button",children:t(Qa,{className:"onpe-not-recommended-icon"})}):t("div",{className:"onpe-not-recommended-icon-container",children:t(Qa,{className:"onpe-not-recommended-icon"})}),t("div",{className:function(){var t="onpe-not-recommended-message";return"".concat(t,m?" onpe-not-recommended-message-closed":" onpe-not-recommended-message-open")}(),style:{width:m?"0":l?"330px":"275px"},children:e("div",{className:"onpe-not-recommended-message-content",children:[t("p",{className:"onpe-not-recommended-message-title",children:"Estas usando"}),l&&t("p",{className:"onpe-not-recommended-message-text",children:"Sistema operativo no recomendado"}),r&&!l&&t("p",{className:"onpe-not-recommended-message-text",children:"Navegador no recomendado"})]})}),!m&&t("button",{onClick:function(){f(!0)},className:"onpe-not-recommended-close-button","aria-label":"Cerrar advertencia",type:"button",children:t(E,{className:"onpe-not-recommended-close-icon"})})]})})},el=function(n){return e("svg",w({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:[e("g",{clipPath:"url(#clip2_4460_12124)",children:[t("path",{d:"M4.00488 3.44051C6.20217 1.58479 9.04983 0.560425 12.0001 0.564465C14.1846 0.563653 16.3279 1.12509 18.1987 2.18821C20.0696 3.25133 21.597 4.77577 22.6161 6.59708H12.0001C10.8956 6.5969 9.81579 6.90448 8.89627 7.48114C7.97674 8.0578 7.25859 8.87781 6.83208 9.8381L4.00488 3.44051Z",fill:"currentColor"}),t("path",{d:"M2.79194 4.62109C1.53583 6.03815 0.666731 7.72344 0.260475 9.5299C-0.145781 11.3364 -0.0768467 13.2091 0.461263 14.9846C0.999374 16.7602 1.99031 18.3847 3.34759 19.7163C4.70487 21.0478 6.38726 22.0461 8.24794 22.6239L12.7471 17.1071C11.3631 17.2831 9.95915 16.9654 8.81071 16.2163C7.66226 15.4671 6.85212 14.3407 6.53914 13.0577C6.50797 13.0141 6.48169 12.9676 6.46074 12.919L2.79194 4.62109Z",fill:"currentColor"}),t("path",{d:"M9.94385 23.0208C12.0087 23.3602 14.1319 23.1838 16.102 22.5093C18.0721 21.8347 19.8204 20.6856 21.1728 19.1761C22.5252 17.6667 23.4346 15.8497 23.8105 13.906C24.1864 11.9624 24.0155 9.95977 23.315 8.09766C23.2769 8.10277 23.2384 8.10529 23.1998 8.1052H15.9198C16.4526 8.59622 16.8757 9.18278 17.1642 9.83031C17.4527 10.4778 17.6009 11.1733 17.5998 11.8756C17.6033 13.2244 17.0569 14.5229 16.0734 15.5027L9.94385 23.0208Z",fill:"currentColor"}),t("path",{d:"M8 11.8759C8 10.8759 8.42143 9.91687 9.17157 9.20979C9.92172 8.5027 10.9391 8.10547 12 8.10547C13.0609 8.10547 14.0783 8.5027 14.8284 9.20979C15.5786 9.91687 16 10.8759 16 11.8759C16 12.8758 15.5786 13.8348 14.8284 14.5419C14.0783 15.249 13.0609 15.6462 12 15.6462C10.9391 15.6462 9.92172 15.249 9.17157 14.5419C8.42143 13.8348 8 12.8758 8 11.8759Z",fill:"currentColor"})]}),t("defs",{children:t("clipPath",{id:"clip2_4460_12124",children:t("rect",{width:24,height:22.6223,fill:"white",transform:"translate(0 0.564453)"})})})]}))},nl=function(n){return e("svg",w({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:[e("g",{clipPath:"url(#clip0_7500_5262)",children:[t("path",{d:"M7.93359 16.068L10.9832 10.9832L16.068 7.93359L13.0184 13.0184L7.93359 16.068Z",fill:"currentColor"}),t("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 12C0 8.8174 1.26428 5.76516 3.51472 3.51472C5.76516 1.26428 8.8174 0 12 0C15.1826 0 18.2348 1.26428 20.4853 3.51472C22.7357 5.76516 24 8.8174 24 12C24 15.1826 22.7357 18.2348 20.4853 20.4853C18.2348 22.7357 15.1826 24 12 24C8.8174 24 5.76516 22.7357 3.51472 20.4853C1.26428 18.2348 0 15.1826 0 12ZM19.0864 6.0112C19.1782 5.85821 19.2162 5.67893 19.1944 5.50185C19.1726 5.32477 19.0923 5.16006 18.9661 5.0339C18.8399 4.90774 18.6752 4.82737 18.4982 4.80557C18.3211 4.78378 18.1418 4.8218 17.9888 4.9136L9.8176 9.8176L4.912 17.9888C4.8202 18.1418 4.78218 18.3211 4.80397 18.4982C4.82577 18.6752 4.90614 18.8399 5.0323 18.9661C5.15845 19.0923 5.32317 19.1726 5.50025 19.1944C5.67733 19.2162 5.85661 19.1782 6.0096 19.0864L14.1808 14.1824L19.0864 6.0112Z",fill:"currentColor"})]}),t("defs",{children:t("clipPath",{id:"clip0_7500_5262",children:t("rect",{width:24,height:24,fill:"white"})})})]}))},il=function(n){return e("svg",w({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:[t("g",{clipPath:"url(#clip0_8211_8231)",children:t("path",{d:"M9.86748 11.7697C9.90253 13.051 10.5964 14.591 12.2319 15.9545C13.6546 17.1391 16.1157 18.0916 18.1066 18.0916C18.7863 18.0923 19.4637 18.0112 20.124 17.8498C20.3714 17.7895 20.6314 17.8089 20.8671 17.905C21.1027 18.0012 21.302 18.1693 21.4366 18.3854C21.5711 18.6015 21.6339 18.8546 21.6162 19.1085C21.5984 19.3624 21.5009 19.6043 21.3377 19.7996C19.4012 22.1173 16.6672 23.6261 13.674 24.029C13.5491 24.0479 13.4218 24.0422 13.2992 24.0121C10.7136 23.3739 7.83188 20.132 7.83188 16.8828C7.83188 14.0132 8.84726 12.4769 9.86748 11.7697ZM9.01407 7.25984C10.0434 7.42348 10.9791 7.95314 11.6492 8.75146C11.0422 8.77677 10.442 8.88996 9.86748 9.08749C7.44144 9.89737 5.4143 12.5168 5.4143 16.8828C5.4143 19.9495 6.86364 22.0394 8.76385 23.6797C3.94442 22.315 0.34827 18.0384 0.00255686 12.8685C-0.0167921 12.5867 0.0742415 12.3084 0.256402 12.0925L0.461897 11.8556L0.853544 11.4228L1.17629 11.0832L1.3564 10.897L1.75772 10.4945L2.21464 10.0485L2.46607 9.81034C4.77485 7.63093 7.18034 6.94798 9.01407 7.25984ZM12.0626 -0.0398865C17.8165 -0.0398865 22.6299 3.97926 23.8507 9.36309C24.2859 11.279 23.7141 12.7779 22.8511 13.821C22.1768 14.6235 21.3065 15.2381 20.3247 15.6052C19.1582 16.0173 17.8467 16.0004 16.8047 15.8179C15.8739 15.6547 14.7135 15.3404 14.1418 14.5221C13.9795 14.2901 13.9038 14.0085 13.9278 13.7264C13.9519 13.4443 14.0743 13.1796 14.2735 12.9785C14.8598 12.3862 15.1305 11.7758 15.1704 11.2294C15.182 11.0104 15.1637 10.7908 15.116 10.5767C14.4125 7.40973 12.2319 5.35362 9.41902 4.87616C6.08276 4.30925 2.91695 6.03295 0.576731 8.27037C2.16266 3.44498 6.70529 -0.0398865 12.0626 -0.0398865Z",fill:"currentColor"})}),t("defs",{children:t("clipPath",{id:"clip0_8211_8231",children:t("rect",{width:24,height:24,fill:"white"})})})]}))},ol=function(){return e("div",{className:"onpe-browser-recommended",children:[t("p",{children:"Navegadores recomendados:"}),e("ul",{className:"onpe-browser-list",children:[e("li",{className:"onpe-browser-item",children:[t(el,{"aria-hidden":"true"}),t("span",{className:"sr-only",children:"Google Chrome"}),t("p",{className:"onpe-browser-name","aria-hidden":"true",children:"Google Chrome"})]}),e("li",{className:"onpe-browser-item",children:[t(nl,{"aria-hidden":"true"}),t("span",{className:"sr-only",children:"Safari"}),t("p",{className:"onpe-browser-name","aria-hidden":"true",children:"Safari"})]}),e("li",{className:"onpe-browser-item",children:[t(il,{"aria-hidden":"true"}),t("span",{className:"sr-only",children:"Microsoft Edge"}),t("p",{className:"onpe-browser-name","aria-hidden":"true",children:"Microsoft Edge"})]})]})]})},sl=function(n){return e("svg",w({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{children:[t("path",{fill:"currentColor",d:"M24 12c0 6.625-5.375 12-12 12S0 18.625 0 12 5.375 0 12 0s12 5.375 12 12Z"}),t("path",{fill:"#fff",d:"m15.551 11.07-.2 1.606a.54.54 0 0 1-.53.471h-2.598v6.71a9.395 9.395 0 0 1-2.669-.145v-6.57H7.555a.335.335 0 0 1-.332-.333v-2.011c0-.181.15-.332.332-.332h2V7.452a3.339 3.339 0 0 1 3.333-3.346h2.33c.182 0 .333.151.333.333v2.01c0 .182-.15.333-.332.333h-1.667c-.737 0-1.335.598-1.335 1.34v2.344h2.803c.326 0 .573.284.531.604Z"})]}))},rl=function(n){return e("svg",w({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{children:[t("path",{fill:"currentColor",d:"M24 12c0 6.625-5.375 12-12 12S0 18.625 0 12C.006 5.375 5.375 0 12.006 0 18.631 0 24 5.375 24 12Z"}),t("path",{fill:"#fff",d:"M13.733 10.895 18.59 5.7h-1.842l-3.81 4.077L10.018 5.7H4.976l5.103 7.127-5.103 5.459h1.842l4.059-4.342 3.11 4.342h5.043l-5.297-7.392Zm-6.16-3.853h1.758l7.102 9.916h-1.758L7.573 7.042Z"})]}))},al=function(n){return e("svg",w({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{children:[t("path",{fill:"currentColor",d:"M24 12c0 6.625-5.375 12-12 12S0 18.625 0 12 5.375 0 12 0c6.631.006 12 5.375 12 12Z"}),t("path",{fill:"#fff",d:"M14.38 15.092V9.149s.67 1.117 3.091 1.184a.23.23 0 0 0 .236-.23V8.424a.232.232 0 0 0-.224-.23c-1.878-.108-2.772-1.545-2.862-2.868a.237.237 0 0 0-.236-.217h-1.914a.23.23 0 0 0-.23.23v9.45c0 1.027-.785 1.921-1.811 1.97a1.903 1.903 0 0 1-1.981-2.138 1.91 1.91 0 0 1 1.612-1.643c.17-.024.332-.024.49-.006a.23.23 0 0 0 .26-.23v-1.684c0-.121-.091-.224-.212-.23a3.763 3.763 0 0 0-.737.018 4.054 4.054 0 0 0-3.545 3.557 4.042 4.042 0 1 0 8.056.465"})]}))},ll=function(n){return e("svg",w({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{children:[t("path",{fill:"currentColor",d:"M24 12c0 6.625-5.375 12-12 12S0 18.625 0 12C.006 5.375 5.375 0 12.006 0 18.631 0 24 5.375 24 12Z"}),t("path",{fill:"#fff",d:"M17.176 6.915H6.83c-1.02 0-1.848.827-1.848 1.848v6.468c0 1.02.828 1.848 1.848 1.848h10.34c1.02 0 1.848-.827 1.848-1.848V8.763a1.84 1.84 0 0 0-1.842-1.848Zm-3.51 5.532-2.874 1.437a.499.499 0 0 1-.724-.447v-2.874c0-.369.392-.61.724-.447l2.875 1.437a.503.503 0 0 1 0 .894Z"})]}))},cl=function(n){return e("svg",w({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{children:[t("path",{fill:"currentColor",d:"M24 12c0 6.625-5.375 12-12 12S0 18.625 0 12C.006 5.375 5.375 0 12.006 0 18.631 0 24 5.375 24 12Z"}),t("path",{fill:"#fff",d:"M15.261 5.707h-6.51a3.036 3.036 0 0 0-3.038 3.038v6.51a3.036 3.036 0 0 0 3.038 3.038h6.51a3.036 3.036 0 0 0 3.038-3.038v-6.51a3.04 3.04 0 0 0-3.038-3.038Zm1.95 9.33a2.17 2.17 0 0 1-2.167 2.169H8.968A2.17 2.17 0 0 1 6.8 15.038V8.962a2.17 2.17 0 0 1 2.168-2.168h6.076a2.17 2.17 0 0 1 2.168 2.168v6.076Z"}),t("path",{fill:"#fff",d:"M12.012 8.745A3.253 3.253 0 0 0 8.757 12c0 1.8 1.455 3.255 3.255 3.255 1.8 0 3.255-1.455 3.255-3.255 0-1.8-1.461-3.255-3.255-3.255Zm0 5.423A2.17 2.17 0 0 1 9.844 12a2.17 2.17 0 0 1 2.168-2.168A2.17 2.17 0 0 1 14.18 12a2.17 2.17 0 0 1-2.168 2.168ZM15.485 9.18a.652.652 0 1 0 0-1.304.652.652 0 0 0 0 1.304Z"})]}))},hl=function(e){return t("svg",w({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},e,{children:t("path",{fill:"currentColor",d:"M16.668 4.296a8.592 8.592 0 0 0-6.134-2.546c-4.777 0-8.671 3.894-8.671 8.671 0 1.532.402 3.019 1.155 4.332L1.793 19.25l4.594-1.207a8.673 8.673 0 0 0 4.147 1.058c4.778 0 8.671-3.893 8.671-8.671a8.617 8.617 0 0 0-2.537-6.134Zm-6.134 13.335a7.229 7.229 0 0 1-3.675-1.006l-.262-.157-2.73.717.726-2.66-.175-.271a7.227 7.227 0 0 1-1.103-3.833c0-3.972 3.238-7.21 7.21-7.21 1.925 0 3.737.753 5.093 2.118a7.159 7.159 0 0 1 2.109 5.101c.017 3.973-3.22 7.201-7.193 7.201Zm3.955-5.39c-.219-.105-1.286-.63-1.479-.708-.2-.07-.34-.105-.49.104-.148.22-.56.71-.682.85-.122.148-.254.165-.472.052-.22-.105-.92-.341-1.742-1.076-.647-.578-1.076-1.287-1.207-1.505-.123-.22-.018-.333.096-.447.096-.096.219-.253.324-.376.105-.122.148-.219.218-.359.07-.148.035-.27-.017-.376a72.045 72.045 0 0 1-.665-1.61c-.175-.42-.359-.367-.49-.376h-.42a.786.786 0 0 0-.578.271c-.192.219-.752.744-.752 1.811 0 1.068.779 2.1.884 2.24.105.149 1.531 2.336 3.701 3.273.516.227.919.358 1.234.455.516.166.989.14 1.365.087.42-.061 1.286-.525 1.461-1.032.184-.508.184-.937.122-1.033-.06-.096-.192-.14-.41-.245Z"})}))},ul=function(i){var o=i.showBrowserInfo,s=void 0===o||o,r=i.showContactInfo,a=void 0===r||r,l=i.children,c=i.showFooterContent,h=void 0===c||c,u=i.isDevelopment,d=void 0===u||u,p=L(i,["showBrowserInfo","showContactInfo","children","showFooterContent","isDevelopment"]);return e("footer",w({},p,{tabIndex:0,"aria-label":"Información para contactarnos",children:[h&&e(n,{children:[l&&l,s&&t(ol,{}),a&&t("div",{className:"onpe-footer-contact",children:e("div",{className:"onpe-footer-contact-list",children:[e("div",{tabIndex:0,className:"onpe-footer-contact-item",children:[e("p",{className:"onpe-footer-contact-title",children:[t("span",{className:"sr-only",children:"Oficina central"}),t("span",{"aria-hidden":"true",children:"Oficina central"})]}),e("p",{className:"onpe-footer-contact-text",children:[t("span",{className:"sr-only",children:"Dirección: Jiron Washington 1894 - Cercado de Lima"}),t("span",{"aria-hidden":"true",children:"Jr. Washington 1894 - Cercado de Lima"})]}),e("p",{className:"onpe-footer-contact-text",children:[t("span",{className:"sr-only",children:"Horario de atención: Lunes a viernes de 8:30 a.m. a 5:00 p. m."}),t("span",{"aria-hidden":"true",children:"Lunes a viernes de 8:30 a.m. a 5:00 p. m."})]})]}),e("div",{tabIndex:0,className:"onpe-footer-contact-item",children:[e("p",{className:"onpe-footer-contact-title",children:[t("span",{className:"sr-only",children:"Contáctanos"}),t("span",{"aria-hidden":"true",children:"Contáctanos:"})]}),e("p",{className:"onpe-footer-contact-text",children:[t("span",{className:"sr-only",children:"Correo electrónico, informes@onpe punto goob punto pe,"}),t("span",{"aria-hidden":"true",children:"informes@onpe.gob.pe"})]}),e("p",{className:"onpe-footer-contact-text",children:[t("span",{className:"sr-only",children:"Número telefónico, (01)4170630,"}),t("span",{"aria-hidden":"true",children:"(01)4170630"})]}),t("p",{className:"onpe-footer-contact-text",children:e("a",{href:"https://wa.me/+51995404991",className:"flex",target:"_blank","aria-label":"Whatsapp: +51 novecientos noventa y cinco cuatrocientos\r\n cuatro novecientos noventa y uno",children:[t(hl,{"aria-hidden":"true"}),t("span",{"aria-hidden":"true",children:" Whatsapp: +51 995 404 991"})]})})]}),e("div",{tabIndex:0,className:"onpe-footer-contact-item",children:[e("p",{className:"onpe-footer-contact-title",children:[t("span",{className:"sr-only",children:"Síguenos en nuestras redes sociales"}),t("span",{"aria-hidden":"true",children:"Síguenos:"})]}),e("p",{className:"onpe-footer-contact-text flex gap-4",children:[t("a",{href:"https://www.facebook.com/ONPEoficial",target:"_blank",rel:"noopener noreferrer","aria-label":"Facebook de ONPE,",className:"onpe-footer-contact-item-color",children:t("span",{"aria-hidden":"true",children:t(sl,{})})}),t("a",{href:"https://x.com/ONPE_oficial",target:"_blank",rel:"noopener noreferrer","aria-label":"X de ONPE (antes Twitter),",className:"onpe-footer-contact-item-color",children:t("span",{"aria-hidden":"true",children:t(rl,{})})}),t("a",{href:"https://www.tiktok.com/@onpe_oficial",target:"_blank",rel:"noopener noreferrer","aria-label":"TikTok de ONPE,",className:"onpe-footer-contact-item-color",children:t("span",{"aria-hidden":"true",children:t(al,{})})}),t("a",{href:"https://www.instagram.com/ONPE_oficial/",target:"_blank",rel:"noopener noreferrer","aria-label":"Instagram de ONPE,",className:"onpe-footer-contact-item-color",children:t("span",{"aria-hidden":"true",children:t(cl,{})})}),t("a",{href:"https://www.youtube.com/@onpeprensa",target:"_blank",rel:"noopener noreferrer","aria-label":"YouTube de ONPE,",className:"onpe-footer-contact-item-color",children:t("span",{"aria-hidden":"true",children:t(ll,{})})})]})]})]})})]}),d&&t("div",{className:"onpe-footer-development",children:e("p",{className:"onpe-footer-development-text",children:["Versión de prueba"," "]})})]}))},dl=function(n){var i=n.isOpen,o=void 0!==i&&i,s=n.onClose,r=void 0===s?function(){}:s,a=n.className,l=void 0===a?"":a,c=n.iconDnie1,h=n.iconDnie2,u=n.iconDnie3,d=n.zIndexLevel;return e(Fa,{zIndexLevel:void 0===d?100:d,isOpen:o,onClose:r,className:"onpe-modal-dnie-versions-container ".concat(l),closeButton:!0,children:[e("h2",{className:"onpe-modal-dnie-versions-title",tabIndex:0,children:[t("span",{className:"sr-only",children:"Versiones del DNI electrónico"}),t("span",{"aria-hidden":"true",children:"Versiones del DNIe"})]}),e("section",{className:"onpe-modal-dnie-versions-content",children:[e("article",{className:"onpe-modal-dnie-versions-article",children:[e("div",{className:"onpe-modal-dnie-versions-text",children:[t("p",{className:"onpe-modal-dnie-versions-subtitle",tabIndex:0,children:e("span",{className:"onpe-modal-dnie-versions-bold",children:[t("span",{className:"sr-only",children:"DNI electrónico versión 1"}),t("span",{"aria-hidden":"true",children:"DNIe versión 1"})]})}),e("ul",{role:"none",className:"onpe-modal-dnie-versions-list",children:[t("li",{role:"none",children:e("p",{tabIndex:0,children:[t("span",{className:"sr-only",children:"Chip en la parte delantera del DNI electrónico."}),t("span",{"aria-hidden":"true",children:"Chip en la parte delantera del DNIe."})]})}),t("li",{role:"none",children:e("p",{tabIndex:0,children:[t("span",{className:"sr-only",children:"Compatible solo con el lector del DNI electrónico en PC, Mac o laptop."}),t("span",{"aria-hidden":"true",children:"Compatible solo con el lector del DNIe en PC, Mac o laptop."})]})})]})]}),t("div",{className:"onpe-modal-dnie-versions-image-container",children:c})]}),e("article",{className:"onpe-modal-dnie-versions-article",children:[e("div",{className:"onpe-modal-dnie-versions-text",children:[t("p",{className:"onpe-modal-dnie-versions-subtitle",tabIndex:0,children:e("span",{className:"onpe-modal-dnie-versions-bold",children:[t("span",{className:"sr-only",children:"DNI electrónico versión 2 y 3"}),t("span",{"aria-hidden":"true",children:"DNIe versión 2 y 3"})]})}),e("ul",{role:"none",className:"onpe-modal-dnie-versions-list",children:[t("li",{role:"none",children:e("p",{tabIndex:0,children:[t("span",{className:"sr-only",children:"Chip en la parte posterior del DNI electrónico."}),t("span",{"aria-hidden":"true",children:"Chip en la parte posterior del DNIe."})]})}),t("li",{role:"none",children:e("p",{tabIndex:0,children:[t("span",{className:"sr-only",children:"Compatibles con el lector del DNI electrónico en PC, Mac o laptop y tecnología NFC (ISO 14443-B) en móviles."}),t("span",{"aria-hidden":"true",children:"Compatibles con el lector del DNIe en PC, Mac o laptop y tecnología NFC (ISO 14443-B) en móviles."})]})})]})]}),e("div",{className:"onpe-modal-dnie-versions-image-container onpe-modal-dnie-versions-image-container-double",children:[h,u]})]})]})]})},pl=function(n){var i=n.isOpen,o=void 0!==i&&i,s=n.onClose,r=void 0===s?function(){}:s,a=n.className,l=void 0===a?"":a,c=n.iconNfc1,h=n.iconNfc2,u=n.zIndexLevel;return e(Fa,{zIndexLevel:void 0===u?100:u,isOpen:o,onClose:r,className:"onpe-modal-nfc-container ".concat(l),closeButton:!0,children:[t("h2",{className:"onpe-modal-nfc-title",tabIndex:0,children:"¿Cómo saber si tu dispositivo móvil tiene NFC?"}),e("section",{className:"onpe-modal-nfc-content",children:[e("div",{className:"onpe-modal-nfc-section",children:[e("p",{className:"onpe-modal-nfc-step",tabIndex:0,children:[t("span",{className:"onpe-modal-nfc-step-number",children:"1. "}),"Celular Android"]}),e("ul",{role:"presentation",className:"onpe-modal-nfc-list",children:[t("li",{role:"presentation",className:"onpe-modal-nfc-list-item",children:"Desde la barra de notificaciones, simplemente deslizando hacia abajo desde tu pantalla y buscando el ícono del NFC."}),e("li",{role:"presentation",className:"onpe-modal-nfc-list-item",children:["Otra forma es ir hacia Ajustes",t("span",{"aria-hidden":"true",children:" > "}),"Conexiones o Redes Inalámbricas",t("span",{"aria-hidden":"true",children:" > "}),'Buscar "NFC".']})]})]}),c,e("div",{className:"onpe-modal-nfc-section",children:[e("p",{className:"onpe-modal-nfc-step",tabIndex:0,children:[t("span",{className:"onpe-modal-nfc-step-number",children:"2. "}),"Celular iPhone"]}),t("ul",{role:"presentation",className:"onpe-modal-nfc-list",children:t("li",{role:"presentation",className:"onpe-modal-nfc-list-item",children:"Todos los modelos iPhone 7 en adelante ya cuentan con tecnología NFC activa."})})]}),t("h2",{className:"onpe-modal-nfc-subtitle",tabIndex:0,children:"¿Cómo usar el NFC correctamente?"}),t("div",{className:"onpe-modal-nfc-instructions",children:e("ol",{role:"presentation",className:"onpe-modal-nfc-ordered-list",children:[t("li",{role:"presentation",children:"Activa el NFC en tu celular."}),t("li",{role:"presentation",children:"Busca en internet dónde está el lector NFC según tu modelo."}),t("li",{role:"presentation",children:"Coloca tu DNIe sobre esa zona hasta que recibas una confirmación del sistema."})]})}),h]})]})};export{ol as BrowserRecommended,M as Button,ul as Footer,Fa as Modal,Ha as ModalBrowserIncompatible,$a as ModalConfirm,dl as ModalDnieVersions,Xa as ModalLoading,pl as ModalNfc,Ja as ModalSystemIncompatible,tl as NotRecommended,A as Overlay,P as Portal,S as Show};
|
|
1
|
+
import{jsx as t,jsxs as e,Fragment as n}from"react/jsx-runtime";import*as i from"react";import{useState as o,useEffect as s,createContext as r,useRef as a,useLayoutEffect as l,useId as c,useContext as h,useInsertionEffect as u,useMemo as d,useCallback as p,Children as m,isValidElement as f,Fragment as g,createElement as v,forwardRef as y,Component as C}from"react";import{createPortal as x}from"react-dom";var w=function(){return w=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},w.apply(this,arguments)};function L(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(t);o<i.length;o++)e.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(t,i[o])&&(n[i[o]]=t[i[o]])}return n}function b(t,e,n,i){return new(n||(n=Promise))(function(o,s){function r(t){try{l(i.next(t))}catch(t){s(t)}}function a(t){try{l(i.throw(t))}catch(t){s(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(r,a)}l((i=i.apply(t,e||[])).next())})}function T(t,e){var n,i,o,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},r=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return r.next=a(0),r.throw=a(1),r.return=a(2),"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(a){return function(l){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;r&&(r=0,a[0]&&(s=0)),s;)try{if(n=1,i&&(o=2&a[0]?i.return:a[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;switch(i=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,i=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=e.call(t,s)}catch(t){a=[6,t],i=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}"function"==typeof SuppressedError&&SuppressedError;var M=function(e){var n=e.color,i=e.title,o=e.size,s=void 0===o?"normal":o,r=e.className,a=L(e,["color","title","size","className"]);return t("button",w({className:"onpe-button onpe-button-".concat(n," onpe-button-").concat(s," ").concat(r||"")},a,{children:i}))},P=function(t){var e=t.children,n=t.container,i=o(!1),r=i[0],a=i[1];if(s(function(){return a(!0),function(){return a(!1)}},[]),!r)return null;var l=n||document.querySelector("#portal");return l||(l=document.body),x(e,l)},S=function(t){var i=t.condition,o=t.loadingComponent,s=t.children;return e(n,{children:[i&&o,!i&&s]})},A=function(e){var n=e.show,i=e.onClick,o=e.color,s=void 0===o?"blue":o;return t("div",{onClick:i,className:"onpe-overlay ".concat(n?"onpe-overlay-show":"onpe-overlay-hide"," ").concat("onpe-overlay-".concat(s))})},E=function(e){return t("svg",w({xmlns:"http://www.w3.org/2000/svg",width:28,height:28,viewBox:"0 0 28 28",fill:"none"},e,{children:t("path",{d:"M14 0C6.2 0 0 6.2 0 14C0 21.8 6.2 28 14 28C21.8 28 28 21.8 28 14C28 6.2 21.8 0 14 0ZM19.4 21L14 15.6L8.6 21L7 19.4L12.4 14L7 8.6L8.6 7L14 12.4L19.4 7L21 8.6L15.6 14L21 19.4L19.4 21Z",fill:"currentColor"})}))};const V=r({});function D(t){const e=a(null);return null===e.current&&(e.current=t()),e.current}const N="undefined"!=typeof window,k=N?l:s,O=r(null);function B(t,e){-1===t.indexOf(e)&&t.push(e)}function R(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const I=(t,e,n)=>n>e?e:n<t?t:n;let F=()=>{},j=()=>{};"production"!==process.env.NODE_ENV&&(F=(t,e,n)=>{},j=(t,e,n)=>{if(!t)throw new Error(function(t,e){return e?`${t}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${e}`:t}(e,n))});const Z={},_=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function U(t){return"object"==typeof t&&null!==t}const H=t=>/^0[^.\s]+$/u.test(t);function W(t){let e;return()=>(void 0===e&&(e=t()),e)}const $=t=>t,z=(t,e)=>n=>e(t(n)),Y=(...t)=>t.reduce(z),X=(t,e,n)=>{const i=e-t;return 0===i?1:(n-t)/i};class G{constructor(){this.subscriptions=[]}add(t){return B(this.subscriptions,t),()=>R(this.subscriptions,t)}notify(t,e,n){const i=this.subscriptions.length;if(i)if(1===i)this.subscriptions[0](t,e,n);else for(let o=0;o<i;o++){const i=this.subscriptions[o];i&&i(t,e,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const K=t=>1e3*t,q=t=>t/1e3;function J(t,e){return e?t*(1e3/e):0}const Q=new Set;function tt(t,e,n){t||Q.has(e)||Q.add(e)}const et=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function nt(t,e,n,i){if(t===e&&n===i)return $;const o=e=>function(t,e,n,i,o){let s,r,a=0;do{r=e+(n-e)/2,s=et(r,i,o)-t,s>0?n=r:e=r}while(Math.abs(s)>1e-7&&++a<12);return r}(e,0,1,t,n);return t=>0===t||1===t?t:et(o(t),e,i)}const it=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,ot=t=>e=>1-t(1-e),st=nt(.33,1.53,.69,.99),rt=ot(st),at=it(rt),lt=t=>(t*=2)<1?.5*rt(t):.5*(2-Math.pow(2,-10*(t-1))),ct=t=>1-Math.sin(Math.acos(t)),ht=ot(ct),ut=it(ct),dt=nt(.42,0,1,1),pt=nt(0,0,.58,1),mt=nt(.42,0,.58,1),ft=t=>Array.isArray(t)&&"number"==typeof t[0],gt={linear:$,easeIn:dt,easeInOut:mt,easeOut:pt,circIn:ct,circInOut:ut,circOut:ht,backIn:rt,backInOut:at,backOut:st,anticipate:lt},vt=t=>{if(ft(t)){j(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[e,n,i,o]=t;return nt(e,n,i,o)}return"string"==typeof t?(j(void 0!==gt[t],`Invalid easing type '${t}'`,"invalid-easing-type"),gt[t]):t},yt=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Ct(t,e){let n=!1,i=!0;const o={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,r=yt.reduce((t,e)=>(t[e]=function(t){let e=new Set,n=new Set,i=!1,o=!1;const s=new WeakSet;let r={delta:0,timestamp:0,isProcessing:!1};function a(e){s.has(e)&&(l.schedule(e),t()),e(r)}const l={schedule:(t,o=!1,r=!1)=>{const a=r&&i?e:n;return o&&s.add(t),a.has(t)||a.add(t),t},cancel:t=>{n.delete(t),s.delete(t)},process:t=>{r=t,i?o=!0:(i=!0,[e,n]=[n,e],e.forEach(a),e.clear(),i=!1,o&&(o=!1,l.process(t)))}};return l}(s),t),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:h,update:u,preRender:d,render:p,postRender:m}=r,f=()=>{const s=Z.useManualTiming?o.timestamp:performance.now();n=!1,Z.useManualTiming||(o.delta=i?1e3/60:Math.max(Math.min(s-o.timestamp,40),1)),o.timestamp=s,o.isProcessing=!0,a.process(o),l.process(o),c.process(o),h.process(o),u.process(o),d.process(o),p.process(o),m.process(o),o.isProcessing=!1,n&&e&&(i=!1,t(f))};return{schedule:yt.reduce((e,s)=>{const a=r[s];return e[s]=(e,s=!1,r=!1)=>(n||(n=!0,i=!0,o.isProcessing||t(f)),a.schedule(e,s,r)),e},{}),cancel:t=>{for(let e=0;e<yt.length;e++)r[yt[e]].cancel(t)},state:o,steps:r}}const{schedule:xt,cancel:wt,state:Lt,steps:bt}=Ct("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:$,!0);let Tt;function Mt(){Tt=void 0}const Pt={now:()=>(void 0===Tt&&Pt.set(Lt.isProcessing||Z.useManualTiming?Lt.timestamp:performance.now()),Tt),set:t=>{Tt=t,queueMicrotask(Mt)}},St=t=>e=>"string"==typeof e&&e.startsWith(t),At=St("--"),Et=St("var(--"),Vt=t=>!!Et(t)&&Dt.test(t.split("/*")[0].trim()),Dt=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Nt={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},kt={...Nt,transform:t=>I(0,1,t)},Ot={...Nt,default:1},Bt=t=>Math.round(1e5*t)/1e5,Rt=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;const It=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ft=(t,e)=>n=>Boolean("string"==typeof n&&It.test(n)&&n.startsWith(t)||e&&!function(t){return null==t}(n)&&Object.prototype.hasOwnProperty.call(n,e)),jt=(t,e,n)=>i=>{if("string"!=typeof i)return i;const[o,s,r,a]=i.match(Rt);return{[t]:parseFloat(o),[e]:parseFloat(s),[n]:parseFloat(r),alpha:void 0!==a?parseFloat(a):1}},Zt={...Nt,transform:t=>Math.round((t=>I(0,255,t))(t))},_t={test:Ft("rgb","red"),parse:jt("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+Zt.transform(t)+", "+Zt.transform(e)+", "+Zt.transform(n)+", "+Bt(kt.transform(i))+")"};const Ut={test:Ft("#"),parse:function(t){let e="",n="",i="",o="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7),o=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),i=t.substring(3,4),o=t.substring(4,5),e+=e,n+=n,i+=i,o+=o),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:o?parseInt(o,16)/255:1}},transform:_t.transform},Ht=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),Wt=Ht("deg"),$t=Ht("%"),zt=Ht("px"),Yt=Ht("vh"),Xt=Ht("vw"),Gt=(()=>({...$t,parse:t=>$t.parse(t)/100,transform:t=>$t.transform(100*t)}))(),Kt={test:Ft("hsl","hue"),parse:jt("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+$t.transform(Bt(e))+", "+$t.transform(Bt(n))+", "+Bt(kt.transform(i))+")"},qt={test:t=>_t.test(t)||Ut.test(t)||Kt.test(t),parse:t=>_t.test(t)?_t.parse(t):Kt.test(t)?Kt.parse(t):Ut.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?_t.transform(t):Kt.transform(t),getAnimatableNone:t=>{const e=qt.parse(t);return e.alpha=0,qt.transform(e)}},Jt=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;const Qt="number",te="color",ee=/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 ne(t){const e=t.toString(),n=[],i={color:[],number:[],var:[]},o=[];let s=0;const r=e.replace(ee,t=>(qt.test(t)?(i.color.push(s),o.push(te),n.push(qt.parse(t))):t.startsWith("var(")?(i.var.push(s),o.push("var"),n.push(t)):(i.number.push(s),o.push(Qt),n.push(parseFloat(t))),++s,"${}")).split("${}");return{values:n,split:r,indexes:i,types:o}}function ie(t){return ne(t).values}function oe(t){const{split:e,types:n}=ne(t),i=e.length;return t=>{let o="";for(let s=0;s<i;s++)if(o+=e[s],void 0!==t[s]){const e=n[s];o+=e===Qt?Bt(t[s]):e===te?qt.transform(t[s]):t[s]}return o}}const se=t=>"number"==typeof t?0:qt.test(t)?qt.getAnimatableNone(t):t;const re={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(Rt)?.length||0)+(t.match(Jt)?.length||0)>0},parse:ie,createTransformer:oe,getAnimatableNone:function(t){const e=ie(t);return oe(t)(e.map(se))}};function ae(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function le(t,e){return n=>n>0?e:t}const ce=(t,e,n)=>t+(e-t)*n,he=(t,e,n)=>{const i=t*t,o=n*(e*e-i)+i;return o<0?0:Math.sqrt(o)},ue=[Ut,_t,Kt];function de(t){const e=(n=t,ue.find(t=>t.test(n)));var n;if(F(Boolean(e),`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!Boolean(e))return!1;let i=e.parse(t);return e===Kt&&(i=function({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,n/=100;let o=0,s=0,r=0;if(e/=100){const i=n<.5?n*(1+e):n+e-n*e,a=2*n-i;o=ae(a,i,t+1/3),s=ae(a,i,t),r=ae(a,i,t-1/3)}else o=s=r=n;return{red:Math.round(255*o),green:Math.round(255*s),blue:Math.round(255*r),alpha:i}}(i)),i}const pe=(t,e)=>{const n=de(t),i=de(e);if(!n||!i)return le(t,e);const o={...n};return t=>(o.red=he(n.red,i.red,t),o.green=he(n.green,i.green,t),o.blue=he(n.blue,i.blue,t),o.alpha=ce(n.alpha,i.alpha,t),_t.transform(o))},me=new Set(["none","hidden"]);function fe(t,e){return n=>ce(t,e,n)}function ge(t){return"number"==typeof t?fe:"string"==typeof t?Vt(t)?le:qt.test(t)?pe:Ce:Array.isArray(t)?ve:"object"==typeof t?qt.test(t)?pe:ye:le}function ve(t,e){const n=[...t],i=n.length,o=t.map((t,n)=>ge(t)(t,e[n]));return t=>{for(let e=0;e<i;e++)n[e]=o[e](t);return n}}function ye(t,e){const n={...t,...e},i={};for(const o in n)void 0!==t[o]&&void 0!==e[o]&&(i[o]=ge(t[o])(t[o],e[o]));return t=>{for(const e in i)n[e]=i[e](t);return n}}const Ce=(t,e)=>{const n=re.createTransformer(e),i=ne(t),o=ne(e);return i.indexes.var.length===o.indexes.var.length&&i.indexes.color.length===o.indexes.color.length&&i.indexes.number.length>=o.indexes.number.length?me.has(t)&&!o.values.length||me.has(e)&&!i.values.length?function(t,e){return me.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}(t,e):Y(ve(function(t,e){const n=[],i={color:0,var:0,number:0};for(let o=0;o<e.values.length;o++){const s=e.types[o],r=t.indexes[s][i[s]],a=t.values[r]??0;n[o]=a,i[s]++}return n}(i,o),o.values),n):(F(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),le(t,e))};function xe(t,e,n){if("number"==typeof t&&"number"==typeof e&&"number"==typeof n)return ce(t,e,n);return ge(t)(t,e)}const we=t=>{const e=({timestamp:e})=>t(e);return{start:(t=!0)=>xt.update(e,t),stop:()=>wt(e),now:()=>Lt.isProcessing?Lt.timestamp:Pt.now()}},Le=(t,e,n=10)=>{let i="";const o=Math.max(Math.round(e/n),2);for(let e=0;e<o;e++)i+=Math.round(1e4*t(e/(o-1)))/1e4+", ";return`linear(${i.substring(0,i.length-2)})`},be=2e4;function Te(t){let e=0;let n=t.next(e);for(;!n.done&&e<be;)e+=50,n=t.next(e);return e>=be?1/0:e}function Me(t,e,n){const i=Math.max(e-5,0);return J(n-t(i),e-i)}const Pe=100,Se=10,Ae=1,Ee=0,Ve=800,De=.3,Ne=.3,ke={granular:.01,default:2},Oe={granular:.005,default:.5},Be=.01,Re=10,Ie=.05,Fe=1,je=.001;function Ze({duration:t=Ve,bounce:e=De,velocity:n=Ee,mass:i=Ae}){let o,s;F(t<=K(Re),"Spring duration must be 10 seconds or less","spring-duration-limit");let r=1-e;r=I(Ie,Fe,r),t=I(Be,Re,q(t)),r<1?(o=e=>{const i=e*r,o=i*t,s=i-n,a=Ue(e,r),l=Math.exp(-o);return je-s/a*l},s=e=>{const i=e*r*t,s=i*n+n,a=Math.pow(r,2)*Math.pow(e,2)*t,l=Math.exp(-i),c=Ue(Math.pow(e,2),r);return(-o(e)+je>0?-1:1)*((s-a)*l)/c}):(o=e=>Math.exp(-e*t)*((e-n)*t+1)-.001,s=e=>Math.exp(-e*t)*(t*t*(n-e)));const a=function(t,e,n){let i=n;for(let n=1;n<_e;n++)i-=t(i)/e(i);return i}(o,s,5/t);if(t=K(t),isNaN(a))return{stiffness:Pe,damping:Se,duration:t};{const e=Math.pow(a,2)*i;return{stiffness:e,damping:2*r*Math.sqrt(i*e),duration:t}}}const _e=12;function Ue(t,e){return t*Math.sqrt(1-e*e)}const He=["duration","bounce"],We=["stiffness","damping","mass"];function $e(t,e){return e.some(e=>void 0!==t[e])}function ze(t=Ne,e=De){const n="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:i,restDelta:o}=n;const s=n.keyframes[0],r=n.keyframes[n.keyframes.length-1],a={done:!1,value:s},{stiffness:l,damping:c,mass:h,duration:u,velocity:d,isResolvedFromDuration:p}=function(t){let e={velocity:Ee,stiffness:Pe,damping:Se,mass:Ae,isResolvedFromDuration:!1,...t};if(!$e(t,We)&&$e(t,He))if(t.visualDuration){const n=t.visualDuration,i=2*Math.PI/(1.2*n),o=i*i,s=2*I(.05,1,1-(t.bounce||0))*Math.sqrt(o);e={...e,mass:Ae,stiffness:o,damping:s}}else{const n=Ze(t);e={...e,...n,mass:Ae},e.isResolvedFromDuration=!0}return e}({...n,velocity:-q(n.velocity||0)}),m=d||0,f=c/(2*Math.sqrt(l*h)),g=r-s,v=q(Math.sqrt(l/h)),y=Math.abs(g)<5;let C;if(i||(i=y?ke.granular:ke.default),o||(o=y?Oe.granular:Oe.default),f<1){const t=Ue(v,f);C=e=>{const n=Math.exp(-f*v*e);return r-n*((m+f*v*g)/t*Math.sin(t*e)+g*Math.cos(t*e))}}else if(1===f)C=t=>r-Math.exp(-v*t)*(g+(m+v*g)*t);else{const t=v*Math.sqrt(f*f-1);C=e=>{const n=Math.exp(-f*v*e),i=Math.min(t*e,300);return r-n*((m+f*v*g)*Math.sinh(i)+t*g*Math.cosh(i))/t}}const x={calculatedDuration:p&&u||null,next:t=>{const e=C(t);if(p)a.done=t>=u;else{let n=0===t?m:0;f<1&&(n=0===t?K(m):Me(C,t,e));const s=Math.abs(n)<=i,l=Math.abs(r-e)<=o;a.done=s&&l}return a.value=a.done?r:e,a},toString:()=>{const t=Math.min(Te(x),be),e=Le(e=>x.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return x}function Ye({keyframes:t,velocity:e=0,power:n=.8,timeConstant:i=325,bounceDamping:o=10,bounceStiffness:s=500,modifyTarget:r,min:a,max:l,restDelta:c=.5,restSpeed:h}){const u=t[0],d={done:!1,value:u},p=t=>void 0===a?l:void 0===l||Math.abs(a-t)<Math.abs(l-t)?a:l;let m=n*e;const f=u+m,g=void 0===r?f:r(f);g!==f&&(m=g-u);const v=t=>-m*Math.exp(-t/i),y=t=>g+v(t),C=t=>{const e=v(t),n=y(t);d.done=Math.abs(e)<=c,d.value=d.done?g:n};let x,w;const L=t=>{var e;(e=d.value,void 0!==a&&e<a||void 0!==l&&e>l)&&(x=t,w=ze({keyframes:[d.value,p(d.value)],velocity:Me(y,t,d.value),damping:o,stiffness:s,restDelta:c,restSpeed:h}))};return L(0),{calculatedDuration:null,next:t=>{let e=!1;return w||void 0!==x||(e=!0,C(t),L(t)),void 0!==x&&t>=x?w.next(t-x):(!e&&C(t),d)}}}function Xe(t,e,{clamp:n=!0,ease:i,mixer:o}={}){const s=t.length;if(j(s===e.length,"Both input and output ranges must be the same length","range-length"),1===s)return()=>e[0];if(2===s&&e[0]===e[1])return()=>e[1];const r=t[0]===t[1];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=function(t,e,n){const i=[],o=n||Z.mix||xe,s=t.length-1;for(let n=0;n<s;n++){let s=o(t[n],t[n+1]);if(e){const t=Array.isArray(e)?e[n]||$:e;s=Y(t,s)}i.push(s)}return i}(e,i,o),l=a.length,c=n=>{if(r&&n<t[0])return e[0];let i=0;if(l>1)for(;i<t.length-2&&!(n<t[i+1]);i++);const o=X(t[i],t[i+1],n);return a[i](o)};return n?e=>c(I(t[0],t[s-1],e)):c}function Ge(t){const e=[0];return function(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const o=X(0,e,i);t.push(ce(n,1,o))}}(e,t.length-1),e}function Ke({duration:t=300,keyframes:e,times:n,ease:i="easeInOut"}){const o=(t=>Array.isArray(t)&&"number"!=typeof t[0])(i)?i.map(vt):vt(i),s={done:!1,value:e[0]},r=function(t,e){return t.map(t=>t*e)}(n&&n.length===e.length?n:Ge(e),t),a=Xe(r,e,{ease:Array.isArray(o)?o:(l=e,c=o,l.map(()=>c||mt).splice(0,l.length-1))});var l,c;return{calculatedDuration:t,next:e=>(s.value=a(e),s.done=e>=t,s)}}ze.applyToOptions=t=>{const e=function(t,e=100,n){const i=n({...t,keyframes:[0,e]}),o=Math.min(Te(i),be);return{type:"keyframes",ease:t=>i.next(o*t).value/e,duration:q(o)}}(t,100,ze);return t.ease=e.ease,t.duration=K(e.duration),t.type="keyframes",t};const qe=t=>null!==t;function Je(t,{repeat:e,repeatType:n="loop"},i,o=1){const s=t.filter(qe),r=o<0||e&&"loop"!==n&&e%2==1?0:s.length-1;return r&&void 0!==i?i:s[r]}const Qe={decay:Ye,inertia:Ye,tween:Ke,keyframes:Ke,spring:ze};function tn(t){"string"==typeof t.type&&(t.type=Qe[t.type])}class en{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}const nn=t=>t/100;class on extends en{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:t}=this.options;t&&t.updatedAt!==Pt.now()&&this.tick(Pt.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){const{options:t}=this;tn(t);const{type:e=Ke,repeat:n=0,repeatDelay:i=0,repeatType:o,velocity:s=0}=t;let{keyframes:r}=t;const a=e||Ke;"production"!==process.env.NODE_ENV&&a!==Ke&&j(r.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${r}`,"spring-two-frames"),a!==Ke&&"number"!=typeof r[0]&&(this.mixKeyframes=Y(nn,xe(r[0],r[1])),r=[0,100]);const l=a({...t,keyframes:r});"mirror"===o&&(this.mirroredGenerator=a({...t,keyframes:[...r].reverse(),velocity:-s})),null===l.calculatedDuration&&(l.calculatedDuration=Te(l));const{calculatedDuration:c}=l;this.calculatedDuration=c,this.resolvedDuration=c+i,this.totalDuration=this.resolvedDuration*(n+1)-i,this.generator=l}updateTime(t){const e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){const{generator:n,totalDuration:i,mixKeyframes:o,mirroredGenerator:s,resolvedDuration:r,calculatedDuration:a}=this;if(null===this.startTime)return n.next(0);const{delay:l=0,keyframes:c,repeat:h,repeatType:u,repeatDelay:d,type:p,onUpdate:m,finalKeyframe:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);const g=this.currentTime-l*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?g<0:g>i;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=i);let y=this.currentTime,C=n;if(h){const t=Math.min(this.currentTime,i)/r;let e=Math.floor(t),n=t%1;!n&&t>=1&&(n=1),1===n&&e--,e=Math.min(e,h+1);Boolean(e%2)&&("reverse"===u?(n=1-n,d&&(n-=d/r)):"mirror"===u&&(C=s)),y=I(0,1,n)*r}const x=v?{done:!1,value:c[0]}:C.next(y);o&&(x.value=o(x.value));let{done:w}=x;v||null===a||(w=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const L=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return L&&p!==Ye&&(x.value=Je(c,this.options,f,this.speed)),m&&m(x.value),L&&this.finish(),x}then(t,e){return this.finished.then(t,e)}get duration(){return q(this.calculatedDuration)}get time(){return q(this.currentTime)}set time(t){t=K(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Pt.now());const e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=q(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=we,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();const n=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=n):null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime||(this.startTime=e??n),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Pt.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}const sn=t=>180*t/Math.PI,rn=t=>{const e=sn(Math.atan2(t[1],t[0]));return ln(e)},an={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:rn,rotateZ:rn,skewX:t=>sn(Math.atan(t[1])),skewY:t=>sn(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},ln=t=>((t%=360)<0&&(t+=360),t),cn=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),hn=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),un={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:cn,scaleY:hn,scale:t=>(cn(t)+hn(t))/2,rotateX:t=>ln(sn(Math.atan2(t[6],t[5]))),rotateY:t=>ln(sn(Math.atan2(-t[2],t[0]))),rotateZ:rn,rotate:rn,skewX:t=>sn(Math.atan(t[4])),skewY:t=>sn(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function dn(t){return t.includes("scale")?1:0}function pn(t,e){if(!t||"none"===t)return dn(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let i,o;if(n)i=un,o=n;else{const e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=an,o=e}if(!o)return dn(e);const s=i[e],r=o[1].split(",").map(mn);return"function"==typeof s?s(r):r[s]}function mn(t){return parseFloat(t.trim())}const fn=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],gn=(()=>new Set(fn))(),vn=t=>t===Nt||t===zt,yn=new Set(["x","y","z"]),Cn=fn.filter(t=>!yn.has(t));const xn={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>pn(e,"x"),y:(t,{transform:e})=>pn(e,"y")};xn.translateX=xn.x,xn.translateY=xn.y;const wn=new Set;let Ln=!1,bn=!1,Tn=!1;function Mn(){if(bn){const t=Array.from(wn).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),n=new Map;e.forEach(t=>{const e=function(t){const e=[];return Cn.forEach(n=>{const i=t.getValue(n);void 0!==i&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),e}(t);e.length&&(n.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();const e=n.get(t);e&&e.forEach(([e,n])=>{t.getValue(e)?.set(n)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}bn=!1,Ln=!1,wn.forEach(t=>t.complete(Tn)),wn.clear()}function Pn(){wn.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(bn=!0)})}class Sn{constructor(t,e,n,i,o,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=n,this.motionValue=i,this.element=o,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(wn.add(this),Ln||(Ln=!0,xt.read(Pn),xt.resolveKeyframes(Mn))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:e,element:n,motionValue:i}=this;if(null===t[0]){const o=i?.get(),s=t[t.length-1];if(void 0!==o)t[0]=o;else if(n&&e){const i=n.readValue(e,s);null!=i&&(t[0]=i)}void 0===t[0]&&(t[0]=s),i&&void 0===o&&i.set(t[0])}!function(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),wn.delete(this)}cancel(){"scheduled"===this.state&&(wn.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}const An=W(()=>void 0!==window.ScrollTimeline),En={};function Vn(t,e){const n=W(t);return()=>En[e]??n()}const Dn=Vn(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),Nn=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,kn={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Nn([0,.65,.55,1]),circOut:Nn([.55,0,1,.45]),backIn:Nn([.31,.01,.66,-.59]),backOut:Nn([.33,1.53,.69,.99])};function On(t,e){return t?"function"==typeof t?Dn()?Le(t,e):"ease-out":ft(t)?Nn(t):Array.isArray(t)?t.map(t=>On(t,e)||kn.easeOut):kn[t]:void 0}function Bn(t,e,n,{delay:i=0,duration:o=300,repeat:s=0,repeatType:r="loop",ease:a="easeOut",times:l}={},c=void 0){const h={[e]:n};l&&(h.offset=l);const u=On(a,o);Array.isArray(u)&&(h.easing=u);const d={delay:i,duration:o,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:s+1,direction:"reverse"===r?"alternate":"normal"};c&&(d.pseudoElement=c);return t.animate(h,d)}function Rn(t){return"function"==typeof t&&"applyToOptions"in t}class In extends en{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:e,name:n,keyframes:i,pseudoElement:o,allowFlatten:s=!1,finalKeyframe:r,onComplete:a}=t;this.isPseudoElement=Boolean(o),this.allowFlatten=s,this.options=t,j("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function({type:t,...e}){return Rn(t)&&Dn()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=Bn(e,n,i,l,o),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const t=Je(i,this.options,r,this.speed);this.updateMotionValue?this.updateMotionValue(t):function(t,e,n){(t=>t.startsWith("--"))(e)?t.style.setProperty(e,n):t.style[e]=n}(e,n,t),this.animation.cancel()}a?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return q(Number(t))}get time(){return q(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=K(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:e}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&An()?(this.animation.timeline=t,$):e(this)}}const Fn={anticipate:lt,backInOut:at,circInOut:ut};function jn(t){"string"==typeof t.ease&&t.ease in Fn&&(t.ease=Fn[t.ease])}class Zn extends In{constructor(t){jn(t),tn(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:e,onUpdate:n,onComplete:i,element:o,...s}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);const r=new on({...s,autoplay:!1}),a=K(this.finishedTime??this.time);e.setWithVelocity(r.sample(a-10).value,r.sample(a).value,10),r.stop()}}const _n=(t,e)=>"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!re.test(t)&&"0"!==t||t.startsWith("url(")));function Un(t){t.duration=0,t.type}const Hn=new Set(["opacity","clipPath","filter","transform"]),Wn=W(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class $n extends en{constructor({autoplay:t=!0,delay:e=0,type:n="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:s="loop",keyframes:r,name:a,motionValue:l,element:c,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Pt.now();const u={autoplay:t,delay:e,type:n,repeat:i,repeatDelay:o,repeatType:s,name:a,motionValue:l,element:c,...h},d=c?.KeyframeResolver||Sn;this.keyframeResolver=new d(r,(t,e,n)=>this.onKeyframesResolved(t,e,u,!n),a,l,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,n,i){this.keyframeResolver=void 0;const{name:o,type:s,velocity:r,delay:a,isHandoff:l,onUpdate:c}=n;this.resolvedAt=Pt.now(),function(t,e,n,i){const o=t[0];if(null===o)return!1;if("display"===e||"visibility"===e)return!0;const s=t[t.length-1],r=_n(o,e),a=_n(s,e);return F(r===a,`You are trying to animate ${e} from "${o}" to "${s}". "${r?s:o}" is not an animatable value.`,"value-not-animatable"),!(!r||!a)&&(function(t){const e=t[0];if(1===t.length)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}(t)||("spring"===n||Rn(n))&&i)}(t,o,s,r)||(!Z.instantAnimations&&a||c?.(Je(t,n,e)),t[0]=t[t.length-1],Un(n),n.repeat=0);const h={startTime:i?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...n,keyframes:t},u=!l&&function(t){const{motionValue:e,name:n,repeatDelay:i,repeatType:o,damping:s,type:r}=t,a=e?.owner?.current;if(!(a instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=e.owner.getProps();return Wn()&&n&&Hn.has(n)&&("transform"!==n||!c)&&!l&&!i&&"mirror"!==o&&0!==s&&"inertia"!==r}(h)?new Zn({...h,element:h.motionValue.owner.current}):new on(h);u.finished.then(()=>this.notifyFinished()).catch($),this.pendingTimeline&&(this.stopTimeline=u.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=u}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Tn=!0,Pn(),Mn(),Tn=!1),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const zn=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Yn(t,e,n=1){j(n<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[i,o]=function(t){const e=zn.exec(t);if(!e)return[,];const[,n,i,o]=e;return[`--${n??i}`,o]}(t);if(!i)return;const s=window.getComputedStyle(e).getPropertyValue(i);if(s){const t=s.trim();return _(t)?parseFloat(t):t}return Vt(o)?Yn(o,e,n+1):o}function Xn(t,e){return t?.[e]??t?.default??t}const Gn=new Set(["width","height","top","left","right","bottom",...fn]),Kn=t=>e=>e.test(t),qn=[Nt,zt,$t,Wt,Xt,Yt,{test:t=>"auto"===t,parse:t=>t}],Jn=t=>qn.find(Kn(t));function Qn(t){return"number"==typeof t?0===t:null===t||("none"===t||"0"===t||H(t))}const ti=new Set(["brightness","contrast","saturate","opacity"]);function ei(t){const[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[i]=n.match(Rt)||[];if(!i)return t;const o=n.replace(i,"");let s=ti.has(e)?1:0;return i!==n&&(s*=100),e+"("+s+o+")"}const ni=/\b([a-z-]*)\(.*?\)/gu,ii={...re,getAnimatableNone:t=>{const e=t.match(ni);return e?e.map(ei).join(" "):t}},oi={...Nt,transform:Math.round},si={borderWidth:zt,borderTopWidth:zt,borderRightWidth:zt,borderBottomWidth:zt,borderLeftWidth:zt,borderRadius:zt,radius:zt,borderTopLeftRadius:zt,borderTopRightRadius:zt,borderBottomRightRadius:zt,borderBottomLeftRadius:zt,width:zt,maxWidth:zt,height:zt,maxHeight:zt,top:zt,right:zt,bottom:zt,left:zt,padding:zt,paddingTop:zt,paddingRight:zt,paddingBottom:zt,paddingLeft:zt,margin:zt,marginTop:zt,marginRight:zt,marginBottom:zt,marginLeft:zt,backgroundPositionX:zt,backgroundPositionY:zt,...{rotate:Wt,rotateX:Wt,rotateY:Wt,rotateZ:Wt,scale:Ot,scaleX:Ot,scaleY:Ot,scaleZ:Ot,skew:Wt,skewX:Wt,skewY:Wt,distance:zt,translateX:zt,translateY:zt,translateZ:zt,x:zt,y:zt,z:zt,perspective:zt,transformPerspective:zt,opacity:kt,originX:Gt,originY:Gt,originZ:zt},zIndex:oi,fillOpacity:kt,strokeOpacity:kt,numOctaves:oi},ri={...si,color:qt,backgroundColor:qt,outlineColor:qt,fill:qt,stroke:qt,borderColor:qt,borderTopColor:qt,borderRightColor:qt,borderBottomColor:qt,borderLeftColor:qt,filter:ii,WebkitFilter:ii},ai=t=>ri[t];function li(t,e){let n=ai(t);return n!==ii&&(n=re),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const ci=new Set(["auto","none","0"]);class hi extends Sn{constructor(t,e,n,i,o){super(t,e,n,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:e,name:n}=this;if(!e||!e.current)return;super.readKeyframes();for(let n=0;n<t.length;n++){let i=t[n];if("string"==typeof i&&(i=i.trim(),Vt(i))){const o=Yn(i,e.current);void 0!==o&&(t[n]=o),n===t.length-1&&(this.finalKeyframe=i)}}if(this.resolveNoneKeyframes(),!Gn.has(n)||2!==t.length)return;const[i,o]=t,s=Jn(i),r=Jn(o);if(s!==r)if(vn(s)&&vn(r))for(let e=0;e<t.length;e++){const n=t[e];"string"==typeof n&&(t[e]=parseFloat(n))}else xn[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:e}=this,n=[];for(let e=0;e<t.length;e++)(null===t[e]||Qn(t[e]))&&n.push(e);n.length&&function(t,e,n){let i,o=0;for(;o<t.length&&!i;){const e=t[o];"string"==typeof e&&!ci.has(e)&&ne(e).values.length&&(i=t[o]),o++}if(i&&n)for(const o of e)t[o]=li(n,i)}(t,n,e)}measureInitialState(){const{element:t,unresolvedKeyframes:e,name:n}=this;if(!t||!t.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=xn[n](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;const i=e[e.length-1];void 0!==i&&t.getValue(n,i).jump(i,!1)}measureEndState(){const{element:t,name:e,unresolvedKeyframes:n}=this;if(!t||!t.current)return;const i=t.getValue(e);i&&i.jump(this.measuredOrigin,!1);const o=n.length-1,s=n[o];n[o]=xn[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEach(([e,n])=>{t.getValue(e).set(n)}),this.resolveNoneKeyframes()}}const ui=(t,e)=>e&&"number"==typeof t?e.transform(t):t;function di(t){return U(t)&&"offsetHeight"in t}class pi{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{const e=Pt.now();if(this.updatedAt!==e&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const t of this.dependents)t.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){var e;this.current=t,this.updatedAt=Pt.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=(e=this.current,!isNaN(parseFloat(e))))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return"production"!==process.env.NODE_ENV&&tt(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new G);const n=this.events[t].add(e);return"change"===t?()=>{n(),xt.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,e,n){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Pt.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;const e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return J(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),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.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function mi(t,e){return new pi(t,e)}const{schedule:fi}=Ct(queueMicrotask,!1),gi={x:!1,y:!1};function vi(){return gi.x||gi.y}function yi(t,e){const n=function(t,e,n){if(t instanceof EventTarget)return[t];if("string"==typeof t){let e=document;const i=n?.[t]??e.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t)}(t),i=new AbortController;return[n,{passive:!0,...e,signal:i.signal},()=>i.abort()]}function Ci(t){return!("touch"===t.pointerType||vi())}const xi=(t,e)=>!!e&&(t===e||xi(t,e.parentElement)),wi=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary,Li=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);const bi=new WeakSet;function Ti(t){return e=>{"Enter"===e.key&&t(e)}}function Mi(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function Pi(t){return wi(t)&&!vi()}function Si(t,e,n={}){const[i,o,s]=yi(t,n),r=t=>{const i=t.currentTarget;if(!Pi(t))return;bi.add(i);const s=e(i,t),r=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),bi.has(i)&&bi.delete(i),Pi(t)&&"function"==typeof s&&s(t,{success:e})},a=t=>{r(t,i===window||i===document||n.useGlobalTarget||xi(i,t.target))},l=t=>{r(t,!1)};window.addEventListener("pointerup",a,o),window.addEventListener("pointercancel",l,o)};return i.forEach(t=>{var e;(n.useGlobalTarget?window:t).addEventListener("pointerdown",r,o),di(t)&&(t.addEventListener("focus",t=>((t,e)=>{const n=t.currentTarget;if(!n)return;const i=Ti(()=>{if(bi.has(n))return;Mi(n,"down");const t=Ti(()=>{Mi(n,"up")});n.addEventListener("keyup",t,e),n.addEventListener("blur",()=>Mi(n,"cancel"),e)});n.addEventListener("keydown",i,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),e)})(t,o)),e=t,Li.has(e.tagName)||-1!==e.tabIndex||t.hasAttribute("tabindex")||(t.tabIndex=0))}),s}function Ai(t){return U(t)&&"ownerSVGElement"in t}const Ei=t=>Boolean(t&&t.getVelocity),Vi=[...qn,qt,re],Di=r({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});class Ni extends i.Component{getSnapshotBeforeUpdate(t){const e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){const t=e.offsetParent,n=di(t)&&t.offsetWidth||0,i=this.props.sizeRef.current;i.height=e.offsetHeight||0,i.width=e.offsetWidth||0,i.top=e.offsetTop,i.left=e.offsetLeft,i.right=n-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}}function ki({children:e,isPresent:n,anchorX:o,root:s}){const r=c(),l=a(null),d=a({width:0,height:0,top:0,left:0,right:0}),{nonce:p}=h(Di);return u(()=>{const{width:t,height:e,top:i,left:a,right:c}=d.current;if(n||!l.current||!t||!e)return;const h="left"===o?`left: ${a}`:`right: ${c}`;l.current.dataset.motionPopId=r;const u=document.createElement("style");p&&(u.nonce=p);const m=s??document.head;return m.appendChild(u),u.sheet&&u.sheet.insertRule(`\n [data-motion-pop-id="${r}"] {\n position: absolute !important;\n width: ${t}px !important;\n height: ${e}px !important;\n ${h}px !important;\n top: ${i}px !important;\n }\n `),()=>{m.contains(u)&&m.removeChild(u)}},[n]),t(Ni,{isPresent:n,childRef:l,sizeRef:d,children:i.cloneElement(e,{ref:l})})}const Oi=({children:e,initial:n,isPresent:o,onExitComplete:s,custom:r,presenceAffectsLayout:a,mode:l,anchorX:h,root:u})=>{const p=D(Bi),m=c();let f=!0,g=d(()=>(f=!1,{id:m,initial:n,isPresent:o,custom:r,onExitComplete:t=>{p.set(t,!0);for(const t of p.values())if(!t)return;s&&s()},register:t=>(p.set(t,!1),()=>p.delete(t))}),[o,p,s]);return a&&f&&(g={...g}),d(()=>{p.forEach((t,e)=>p.set(e,!1))},[o]),i.useEffect(()=>{!o&&!p.size&&s&&s()},[o]),"popLayout"===l&&(e=t(ki,{isPresent:o,anchorX:h,root:u,children:e})),t(O.Provider,{value:g,children:e})};function Bi(){return new Map}function Ri(t=!0){const e=h(O);if(null===e)return[!0,null];const{isPresent:n,onExitComplete:i,register:o}=e,r=c();s(()=>{if(t)return o(r)},[t]);const a=p(()=>t&&i&&i(r),[r,i,t]);return!n&&i?[!1,a]:[!0]}const Ii=t=>t.key||"";function Fi(t){const e=[];return m.forEach(t,t=>{f(t)&&e.push(t)}),e}const ji=({children:e,custom:i,initial:s=!0,onExitComplete:r,presenceAffectsLayout:l=!0,mode:c="sync",propagate:u=!1,anchorX:p="left",root:m})=>{const[f,g]=Ri(u),v=d(()=>Fi(e),[e]),y=u&&!f?[]:v.map(Ii),C=a(!0),x=a(v),w=D(()=>new Map),[L,b]=o(v),[T,M]=o(v);k(()=>{C.current=!1,x.current=v;for(let t=0;t<T.length;t++){const e=Ii(T[t]);y.includes(e)?w.delete(e):!0!==w.get(e)&&w.set(e,!1)}},[T,y.length,y.join("-")]);const P=[];if(v!==L){let t=[...v];for(let e=0;e<T.length;e++){const n=T[e],i=Ii(n);y.includes(i)||(t.splice(e,0,n),P.push(n))}return"wait"===c&&P.length&&(t=P),M(Fi(t)),b(v),null}"production"!==process.env.NODE_ENV&&"wait"===c&&T.length;const{forceRender:S}=h(V);return t(n,{children:T.map(e=>{const n=Ii(e),o=!(u&&!f)&&(v===T||y.includes(n));return t(Oi,{isPresent:o,initial:!(C.current&&!s)&&void 0,custom:i,presenceAffectsLayout:l,mode:c,root:m,onExitComplete:o?void 0:()=>{if(!w.has(n))return;w.set(n,!0);let t=!0;w.forEach(e=>{e||(t=!1)}),t&&(S?.(),M(x.current),u&&g?.(),r&&r())},anchorX:p,children:e},n)})})},Zi=r({strict:!1}),_i={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Ui={};for(const t in _i)Ui[t]={isEnabled:e=>_i[t].some(t=>!!e[t])};const Hi=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 Wi(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Hi.has(t)}let $i=t=>!Wi(t);try{"function"==typeof(zi=require("@emotion/is-prop-valid").default)&&($i=t=>t.startsWith("on")?!Wi(t):zi(t))}catch{}var zi;const Yi=r({});function Xi(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function Gi(t){return"string"==typeof t||Array.isArray(t)}const Ki=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],qi=["initial",...Ki];function Ji(t){return Xi(t.animate)||qi.some(e=>Gi(t[e]))}function Qi(t){return Boolean(Ji(t)||t.variants)}function to(t){const{initial:e,animate:n}=function(t,e){if(Ji(t)){const{initial:e,animate:n}=t;return{initial:!1===e||Gi(e)?e:void 0,animate:Gi(n)?n:void 0}}return!1!==t.inherit?e:{}}(t,h(Yi));return d(()=>({initial:e,animate:n}),[eo(e),eo(n)])}function eo(t){return Array.isArray(t)?t.join(" "):t}const no={};function io(t,{layout:e,layoutId:n}){return gn.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!no[t]||"opacity"===t)}const oo={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},so=fn.length;function ro(t,e,n){const{style:i,vars:o,transformOrigin:s}=t;let r=!1,a=!1;for(const t in e){const n=e[t];if(gn.has(t))r=!0;else if(At(t))o[t]=n;else{const e=ui(n,si[t]);t.startsWith("origin")?(a=!0,s[t]=e):i[t]=e}}if(e.transform||(r||n?i.transform=function(t,e,n){let i="",o=!0;for(let s=0;s<so;s++){const r=fn[s],a=t[r];if(void 0===a)continue;let l=!0;if(l="number"==typeof a?a===(r.startsWith("scale")?1:0):0===parseFloat(a),!l||n){const t=ui(a,si[r]);l||(o=!1,i+=`${oo[r]||r}(${t}) `),n&&(e[r]=t)}}return i=i.trim(),n?i=n(e,o?"":i):o&&(i="none"),i}(e,t.transform,n):i.transform&&(i.transform="none")),a){const{originX:t="50%",originY:e="50%",originZ:n=0}=s;i.transformOrigin=`${t} ${e} ${n}`}}const ao=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function lo(t,e,n){for(const i in e)Ei(e[i])||io(i,n)||(t[i]=e[i])}function co(t,e){const n={};return lo(n,t.style||{},t),Object.assign(n,function({transformTemplate:t},e){return d(()=>{const n={style:{},transform:{},transformOrigin:{},vars:{}};return ro(n,e,t),Object.assign({},n.vars,n.style)},[e])}(t,e)),n}function ho(t,e){const n={},i=co(t,e);return t.drag&&!1!==t.dragListener&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===t.drag?"none":"pan-"+("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=i,n}const uo={offset:"stroke-dashoffset",array:"stroke-dasharray"},po={offset:"strokeDashoffset",array:"strokeDasharray"};function mo(t,{attrX:e,attrY:n,attrScale:i,pathLength:o,pathSpacing:s=1,pathOffset:r=0,...a},l,c,h){if(ro(t,a,c),l)return void(t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:u,style:d}=t;u.transform&&(d.transform=u.transform,delete u.transform),(d.transform||u.transformOrigin)&&(d.transformOrigin=u.transformOrigin??"50% 50%",delete u.transformOrigin),d.transform&&(d.transformBox=h?.transformBox??"fill-box",delete u.transformBox),void 0!==e&&(u.x=e),void 0!==n&&(u.y=n),void 0!==i&&(u.scale=i),void 0!==o&&function(t,e,n=1,i=0,o=!0){t.pathLength=1;const s=o?uo:po;t[s.offset]=zt.transform(-i);const r=zt.transform(e),a=zt.transform(n);t[s.array]=`${r} ${a}`}(u,o,s,r,!1)}const fo=()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}}),go=t=>"string"==typeof t&&"svg"===t.toLowerCase();function vo(t,e,n,i){const o=d(()=>{const n={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return mo(n,e,go(i),t.transformTemplate,t.style),{...n.attrs,style:{...n.style}}},[e]);if(t.style){const e={};lo(e,t.style,t),o.style={...e,...o.style}}return o}const yo=["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 Co(t){return"string"==typeof t&&!t.includes("-")&&!!(yo.indexOf(t)>-1||/[A-Z]/u.test(t))}function xo(t,e,n,{latestValues:i},o,s=!1){const r=(Co(t)?vo:ho)(e,i,o,t),a=function(t,e,n){const i={};for(const o in t)"values"===o&&"object"==typeof t.values||($i(o)||!0===n&&Wi(o)||!e&&!Wi(o)||t.draggable&&o.startsWith("onDrag"))&&(i[o]=t[o]);return i}(e,"string"==typeof t,s),l=t!==g?{...a,...r,ref:n}:{},{children:c}=e,h=d(()=>Ei(c)?c.get():c,[c]);return v(t,{...l,children:h})}function wo(t){const e=[{},{}];return t?.values.forEach((t,n)=>{e[0][n]=t.get(),e[1][n]=t.getVelocity()}),e}function Lo(t,e,n,i){if("function"==typeof e){const[o,s]=wo(i);e=e(void 0!==n?n:t.custom,o,s)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){const[o,s]=wo(i);e=e(void 0!==n?n:t.custom,o,s)}return e}function bo(t){return Ei(t)?t.get():t}function To(t,e,n,i){const o={},s=i(t,{});for(const t in s)o[t]=bo(s[t]);let{initial:r,animate:a}=t;const l=Ji(t),c=Qi(t);e&&c&&!l&&!1!==t.inherit&&(void 0===r&&(r=e.initial),void 0===a&&(a=e.animate));let h=!!n&&!1===n.initial;h=h||!1===r;const u=h?a:r;if(u&&"boolean"!=typeof u&&!Xi(u)){const e=Array.isArray(u)?u:[u];for(let n=0;n<e.length;n++){const i=Lo(t,e[n]);if(i){const{transitionEnd:t,transition:e,...n}=i;for(const t in n){let e=n[t];if(Array.isArray(e)){e=e[h?e.length-1:0]}null!==e&&(o[t]=e)}for(const e in t)o[e]=t[e]}}}return o}const Mo=t=>(e,n)=>{const i=h(Yi),o=h(O),s=()=>function({scrapeMotionValuesFromProps:t,createRenderState:e},n,i,o){return{latestValues:To(n,i,o,t),renderState:e()}}(t,e,i,o);return n?s():D(s)};function Po(t,e,n){const{style:i}=t,o={};for(const s in i)(Ei(i[s])||e.style&&Ei(e.style[s])||io(s,t)||void 0!==n?.getValue(s)?.liveStyle)&&(o[s]=i[s]);return o}const So=Mo({scrapeMotionValuesFromProps:Po,createRenderState:ao});function Ao(t,e,n){const i=Po(t,e,n);for(const n in t)if(Ei(t[n])||Ei(e[n])){i[-1!==fn.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=t[n]}return i}const Eo=Mo({scrapeMotionValuesFromProps:Ao,createRenderState:fo}),Vo=Symbol.for("motionComponentSymbol");function Do(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function No(t,e,n){return p(i=>{i&&t.onMount&&t.onMount(i),e&&(i?e.mount(i):e.unmount()),n&&("function"==typeof n?n(i):Do(n)&&(n.current=i))},[e])}const ko=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Oo="data-"+ko("framerAppearId"),Bo=r({});function Ro(t,e,n,i,o){const{visualElement:r}=h(Yi),l=h(Zi),c=h(O),d=h(Di).reducedMotion,p=a(null);i=i||l.renderer,!p.current&&i&&(p.current=i(t,{visualState:e,parent:r,props:n,presenceContext:c,blockInitialAnimation:!!c&&!1===c.initial,reducedMotionConfig:d}));const m=p.current,f=h(Bo);!m||m.projection||!o||"html"!==m.type&&"svg"!==m.type||function(t,e,n,i){const{layoutId:o,layout:s,drag:r,dragConstraints:a,layoutScroll:l,layoutRoot:c,layoutCrossfade:h}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Io(t.parent)),t.projection.setOptions({layoutId:o,layout:s,alwaysMeasureLayout:Boolean(r)||a&&Do(a),visualElement:t,animationType:"string"==typeof s?s:"both",initialPromotionConfig:i,crossfade:h,layoutScroll:l,layoutRoot:c})}(p.current,n,o,f);const g=a(!1);u(()=>{m&&g.current&&m.update(n,c)});const v=n[Oo],y=a(Boolean(v)&&!window.MotionHandoffIsComplete?.(v)&&window.MotionHasOptimisedAnimation?.(v));return k(()=>{m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),y.current&&m.animationState&&m.animationState.animateChanges())}),s(()=>{m&&(!y.current&&m.animationState&&m.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(v)}),y.current=!1),m.enteringChildren=void 0)}),m}function Io(t){if(t)return!1!==t.options.allowProjection?t.projection:Io(t.parent)}function Fo(n,{forwardMotionProps:i=!1}={},o,s){o&&function(t){for(const e in t)Ui[e]={...Ui[e],...t[e]}}(o);const r=Co(n)?Eo:So;function a(a,l){let c;const u={...h(Di),...a,layoutId:jo(a)},{isStatic:d}=u,p=to(a),m=r(a,d);if(!d&&N){!function(t,e){const n=h(Zi).strict;if("production"!==process.env.NODE_ENV&&e&&n){const e="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";t.ignoreStrict?F(!1,e,"lazy-strict-mode"):j(!1,e,"lazy-strict-mode")}}(u,o);const t=function(t){const{drag:e,layout:n}=Ui;if(!e&&!n)return{};const i={...e,...n};return{MeasureLayout:e?.isEnabled(t)||n?.isEnabled(t)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}(u);c=t.MeasureLayout,p.visualElement=Ro(n,m,u,s,t.ProjectionNode)}return e(Yi.Provider,{value:p,children:[c&&p.visualElement?t(c,{visualElement:p.visualElement,...u}):null,xo(n,a,No(m,p.visualElement,l),m,d,i)]})}a.displayName=`motion.${"string"==typeof n?n:`create(${n.displayName??n.name??""})`}`;const l=y(a);return l[Vo]=n,l}function jo({layoutId:t}){const e=h(V).id;return e&&void 0!==t?e+"-"+t:t}function Zo(t,e){if("undefined"==typeof Proxy)return Fo;const n=new Map,i=(n,i)=>Fo(n,i,t,e);return new Proxy((t,e)=>("production"!==process.env.NODE_ENV&&tt(!1,"motion() is deprecated. Use motion.create() instead."),i(t,e)),{get:(o,s)=>"create"===s?i:(n.has(s)||n.set(s,Fo(s,void 0,t,e)),n.get(s))})}function _o({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function Uo(t){return void 0===t||1===t}function Ho({scale:t,scaleX:e,scaleY:n}){return!Uo(t)||!Uo(e)||!Uo(n)}function Wo(t){return Ho(t)||$o(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function $o(t){return zo(t.x)||zo(t.y)}function zo(t){return t&&"0%"!==t}function Yo(t,e,n){return n+e*(t-n)}function Xo(t,e,n,i,o){return void 0!==o&&(t=Yo(t,o,i)),Yo(t,n,i)+e}function Go(t,e=0,n=1,i,o){t.min=Xo(t.min,e,n,i,o),t.max=Xo(t.max,e,n,i,o)}function Ko(t,{x:e,y:n}){Go(t.x,e.translate,e.scale,e.originPoint),Go(t.y,n.translate,n.scale,n.originPoint)}const qo=.999999999999,Jo=1.0000000000001;function Qo(t,e){t.min=t.min+e,t.max=t.max+e}function ts(t,e,n,i,o=.5){Go(t,e,n,ce(t.min,t.max,o),i)}function es(t,e){ts(t.x,e.x,e.scaleX,e.scale,e.originX),ts(t.y,e.y,e.scaleY,e.scale,e.originY)}function ns(t,e){return _o(function(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}(t.getBoundingClientRect(),e))}const is=()=>({x:{min:0,max:0},y:{min:0,max:0}}),os={current:null},ss={current:!1};const rs=new WeakMap;const as=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class ls{scrapeMotionValuesFromProps(t,e,n){return{}}constructor({parent:t,props:e,presenceContext:n,reducedMotionConfig:i,blockInitialAnimation:o,visualState:s},r={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Sn,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 t=Pt.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,xt.render(this.render,!1,!0))};const{latestValues:a,renderState:l}=s;this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=r,this.blockInitialAnimation=Boolean(o),this.isControllingVariants=Ji(e),this.isVariantNode=Qi(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const{willChange:c,...h}=this.scrapeMotionValuesFromProps(e,{},this);for(const t in h){const e=h[t];void 0!==a[t]&&Ei(e)&&e.set(a[t])}}mount(t){this.current=t,rs.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),ss.current||function(){if(ss.current=!0,N)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>os.current=t.matches;t.addEventListener("change",e),e()}else os.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||os.current),"production"!==process.env.NODE_ENV&&tt(!0!==this.shouldReduceMotion,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),wt(this.notifyUpdate),wt(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const n=gn.has(t);n&&this.onBindTransform&&this.onBindTransform();const i=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&xt.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{i(),o&&o(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in Ui){const e=Ui[t];if(!e)continue;const{isEnabled:n,Feature:i}=e;if(!this.features[t]&&i&&n(this.props)&&(this.features[t]=new i(this)),this.features[t]){const e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<as.length;e++){const n=as[e];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const i=t["on"+n];i&&(this.propEventSubscriptions[n]=this.on(n,i))}this.prevMotionValues=function(t,e,n){for(const i in e){const o=e[i],s=n[i];if(Ei(o))t.addValue(i,o);else if(Ei(s))t.addValue(i,mi(o,{owner:t}));else if(s!==o)if(t.hasValue(i)){const e=t.getValue(i);!0===e.liveStyle?e.jump(o):e.hasAnimated||e.set(o)}else{const e=t.getStaticValue(i);t.addValue(i,mi(void 0!==e?e:o,{owner:t}))}}for(const i in n)void 0===e[i]&&t.removeValue(i);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){const n=this.values.get(t);e!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);const e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return void 0===n&&void 0!==e&&(n=mi(null===e?void 0:e,{owner:this}),this.addValue(t,n)),n}readValue(t,e){let n=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];var i;return null!=n&&("string"==typeof n&&(_(n)||H(n))?n=parseFloat(n):(i=n,!Vi.find(Kn(i))&&re.test(e)&&(n=li(t,e))),this.setBaseTarget(t,Ei(n)?n.get():n)),Ei(n)?n.get():n}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){const{initial:e}=this.props;let n;if("string"==typeof e||"object"==typeof e){const i=Lo(this.props,e,this.presenceContext?.custom);i&&(n=i[t])}if(e&&void 0!==n)return n;const i=this.getBaseTargetFromProps(this.props,t);return void 0===i||Ei(i)?void 0!==this.initialValues[t]&&void 0===n?void 0:this.baseTarget[t]:i}on(t,e){return this.events[t]||(this.events[t]=new G),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){fi.render(this.render)}}class cs extends ls{constructor(){super(...arguments),this.KeyframeResolver=hi}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Ei(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}function hs(t,{style:e,vars:n},i,o){const s=t.style;let r;for(r in e)s[r]=e[r];for(r in o?.applyProjectionStyles(s,i),n)s.setProperty(r,n[r])}class us extends cs{constructor(){super(...arguments),this.type="html",this.renderInstance=hs}readValueFromInstance(t,e){if(gn.has(e))return this.projection?.isProjecting?dn(e):((t,e)=>{const{transform:n="none"}=getComputedStyle(t);return pn(n,e)})(t,e);{const i=(n=t,window.getComputedStyle(n)),o=(At(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(t,{transformPagePoint:e}){return ns(t,e)}build(t,e,n){ro(t,e,n.transformTemplate)}scrapeMotionValuesFromProps(t,e,n){return Po(t,e,n)}}const ds=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"]);class ps extends cs{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=is}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(gn.has(e)){const t=ai(e);return t&&t.default||0}return e=ds.has(e)?e:ko(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,n){return Ao(t,e,n)}build(t,e,n){mo(t,e,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(t,e,n,i){!function(t,e,n,i){hs(t,e,void 0,i);for(const n in e.attrs)t.setAttribute(ds.has(n)?n:ko(n),e.attrs[n])}(t,e,0,i)}mount(t){this.isSVGTag=go(t.tagName),super.mount(t)}}const ms=(t,e)=>Co(t)?new ps(e):new us(e,{allowProjection:t!==g});function fs(t,e,n){const i=t.getProps();return Lo(i,e,void 0!==n?n:i.custom,t)}const gs=t=>Array.isArray(t);function vs(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,mi(n))}function ys(t){return gs(t)?t[t.length-1]||0:t}function Cs(t,e){const n=t.getValue("willChange");if(i=n,Boolean(Ei(i)&&i.add))return n.add(e);if(!n&&Z.WillChange){const n=new Z.WillChange("auto");t.addValue("willChange",n),n.add(e)}var i}function xs(t){return t.props[Oo]}const ws=t=>null!==t;const Ls={type:"spring",stiffness:500,damping:25,restSpeed:10},bs={type:"keyframes",duration:.8},Ts={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Ms=(t,{keyframes:e})=>e.length>2?bs:gn.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:Ls:Ts;const Ps=(t,e,n,i={},o,s)=>r=>{const a=Xn(i,t)||{},l=a.delay||i.delay||0;let{elapsed:c=0}=i;c-=K(l);const h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-c,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{r(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:s?void 0:o};(function({when:t,delay:e,delayChildren:n,staggerChildren:i,staggerDirection:o,repeat:s,repeatType:r,repeatDelay:a,from:l,elapsed:c,...h}){return!!Object.keys(h).length})(a)||Object.assign(h,Ms(t,h)),h.duration&&(h.duration=K(h.duration)),h.repeatDelay&&(h.repeatDelay=K(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let u=!1;if((!1===h.type||0===h.duration&&!h.repeatDelay)&&(Un(h),0===h.delay&&(u=!0)),(Z.instantAnimations||Z.skipAnimations)&&(u=!0,Un(h),h.delay=0),h.allowFlatten=!a.type&&!a.ease,u&&!s&&void 0!==e.get()){const t=function(t,{repeat:e,repeatType:n="loop"}){const i=t.filter(ws);return i[e&&"loop"!==n&&e%2==1?0:i.length-1]}(h.keyframes,a);if(void 0!==t)return void xt.update(()=>{h.onUpdate(t),h.onComplete()})}return a.isSync?new on(h):new $n(h)};function Ss({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,i}function As(t,e,{delay:n=0,transitionOverride:i,type:o}={}){let{transition:s=t.getDefaultTransition(),transitionEnd:r,...a}=e;i&&(s=i);const l=[],c=o&&t.animationState&&t.animationState.getState()[o];for(const e in a){const i=t.getValue(e,t.latestValues[e]??null),o=a[e];if(void 0===o||c&&Ss(c,e))continue;const r={delay:n,...Xn(s||{},e)},h=i.get();if(void 0!==h&&!i.isAnimating&&!Array.isArray(o)&&o===h&&!r.velocity)continue;let u=!1;if(window.MotionHandoffAnimation){const n=xs(t);if(n){const t=window.MotionHandoffAnimation(n,e,xt);null!==t&&(r.startTime=t,u=!0)}}Cs(t,e),i.start(Ps(e,i,o,t.shouldReduceMotion&&Gn.has(e)?{type:!1}:r,t,u));const d=i.animation;d&&l.push(d)}return r&&Promise.all(l).then(()=>{xt.update(()=>{r&&function(t,e){const n=fs(t,e);let{transitionEnd:i={},transition:o={},...s}=n||{};s={...s,...i};for(const e in s)vs(t,e,ys(s[e]))}(t,r)})}),l}function Es(t,e,n,i=0,o=1){const s=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),r=t.size,a=(r-1)*i;return"function"==typeof n?n(s,r):1===o?s*i:a-s*i}function Vs(t,e,n={}){const i=fs(t,e,"exit"===n.type?t.presenceContext?.custom:void 0);let{transition:o=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const s=i?()=>Promise.all(As(t,i,n)):()=>Promise.resolve(),r=t.variantChildren&&t.variantChildren.size?(i=0)=>{const{delayChildren:s=0,staggerChildren:r,staggerDirection:a}=o;return function(t,e,n=0,i=0,o=0,s=1,r){const a=[];for(const l of t.variantChildren)l.notify("AnimationStart",e),a.push(Vs(l,e,{...r,delay:n+("function"==typeof i?0:i)+Es(t.variantChildren,l,i,o,s)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}(t,e,i,s,r,a,n)}:()=>Promise.resolve(),{when:a}=o;if(a){const[t,e]="beforeChildren"===a?[s,r]:[r,s];return t().then(()=>e())}return Promise.all([s(),r(n.delay)])}function Ds(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}const Ns=qi.length;function ks(t){if(!t)return;if(!t.isControllingVariants){const e=t.parent&&ks(t.parent)||{};return void 0!==t.props.initial&&(e.initial=t.props.initial),e}const e={};for(let n=0;n<Ns;n++){const i=qi[n],o=t.props[i];(Gi(o)||!1===o)&&(e[i]=o)}return e}const Os=[...Ki].reverse(),Bs=Ki.length;function Rs(t){return e=>Promise.all(e.map(({animation:e,options:n})=>function(t,e,n={}){let i;if(t.notify("AnimationStart",e),Array.isArray(e)){const o=e.map(e=>Vs(t,e,n));i=Promise.all(o)}else if("string"==typeof e)i=Vs(t,e,n);else{const o="function"==typeof e?fs(t,e,n.custom):e;i=Promise.all(As(t,o,n))}return i.then(()=>{t.notify("AnimationComplete",e)})}(t,e,n)))}function Is(t){let e=Rs(t),n=Zs(),i=!0;const o=e=>(n,i)=>{const o=fs(t,i,"exit"===e?t.presenceContext?.custom:void 0);if(o){const{transition:t,transitionEnd:e,...i}=o;n={...n,...i,...e}}return n};function s(s){const{props:r}=t,a=ks(t.parent)||{},l=[],c=new Set;let h={},u=1/0;for(let e=0;e<Bs;e++){const d=Os[e],p=n[d],m=void 0!==r[d]?r[d]:a[d],f=Gi(m),g=d===s?p.isActive:null;!1===g&&(u=e);let v=m===a[d]&&m!==r[d]&&f;if(v&&i&&t.manuallyAnimateOnMount&&(v=!1),p.protectedKeys={...h},!p.isActive&&null===g||!m&&!p.prevProp||Xi(m)||"boolean"==typeof m)continue;const y=Fs(p.prevProp,m);let C=y||d===s&&p.isActive&&!v&&f||e>u&&f,x=!1;const w=Array.isArray(m)?m:[m];let L=w.reduce(o(d),{});!1===g&&(L={});const{prevResolvedValues:b={}}=p,T={...b,...L},M=e=>{C=!0,c.has(e)&&(x=!0,c.delete(e)),p.needsAnimating[e]=!0;const n=t.getValue(e);n&&(n.liveStyle=!1)};for(const t in T){const e=L[t],n=b[t];if(h.hasOwnProperty(t))continue;let i=!1;i=gs(e)&&gs(n)?!Ds(e,n):e!==n,i?null!=e?M(t):c.add(t):void 0!==e&&c.has(t)?M(t):p.protectedKeys[t]=!0}p.prevProp=m,p.prevResolvedValues=L,p.isActive&&(h={...h,...L}),i&&t.blockInitialAnimation&&(C=!1);const P=v&&y;C&&(!P||x)&&l.push(...w.map(e=>{const n={type:d};if("string"==typeof e&&i&&!P&&t.manuallyAnimateOnMount&&t.parent){const{parent:i}=t,o=fs(i,e);if(i.enteringChildren&&o){const{delayChildren:e}=o.transition||{};n.delay=Es(i.enteringChildren,t,e)}}return{animation:e,options:n}}))}if(c.size){const e={};if("boolean"!=typeof r.initial){const n=fs(t,Array.isArray(r.initial)?r.initial[0]:r.initial);n&&n.transition&&(e.transition=n.transition)}c.forEach(n=>{const i=t.getBaseTarget(n),o=t.getValue(n);o&&(o.liveStyle=!0),e[n]=i??null}),l.push({animation:e})}let d=Boolean(l.length);return!i||!1!==r.initial&&r.initial!==r.animate||t.manuallyAnimateOnMount||(d=!1),i=!1,d?e(l):Promise.resolve()}return{animateChanges:s,setActive:function(e,i){if(n[e].isActive===i)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,i)),n[e].isActive=i;const o=s(e);for(const t in n)n[t].protectedKeys={};return o},setAnimateFunction:function(n){e=n(t)},getState:()=>n,reset:()=>{n=Zs(),i=!0}}}function Fs(t,e){return"string"==typeof e?e!==t:!!Array.isArray(e)&&!Ds(e,t)}function js(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Zs(){return{animate:js(!0),whileInView:js(),whileHover:js(),whileTap:js(),whileDrag:js(),whileFocus:js(),exit:js()}}class _s{constructor(t){this.isMounted=!1,this.node=t}update(){}}let Us=0;const Hs={animation:{Feature:class extends _s{constructor(t){super(t),t.animationState||(t.animationState=Is(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Xi(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends _s{constructor(){super(...arguments),this.id=Us++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;const i=this.node.animationState.setActive("exit",!t);e&&!t&&i.then(()=>{e(this.id)})}mount(){const{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}}};function Ws(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}function $s(t){return{point:{x:t.pageX,y:t.pageY}}}function zs(t,e,n,i){return Ws(t,e,(t=>e=>wi(e)&&t(e,$s(e)))(n),i)}function Ys(t){return t.max-t.min}function Xs(t,e,n,i=.5){t.origin=i,t.originPoint=ce(e.min,e.max,t.origin),t.scale=Ys(n)/Ys(e),t.translate=ce(n.min,n.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function Gs(t,e,n,i){Xs(t.x,e.x,n.x,i?i.originX:void 0),Xs(t.y,e.y,n.y,i?i.originY:void 0)}function Ks(t,e,n){t.min=n.min+e.min,t.max=t.min+Ys(e)}function qs(t,e,n){t.min=e.min-n.min,t.max=t.min+Ys(e)}function Js(t,e,n){qs(t.x,e.x,n.x),qs(t.y,e.y,n.y)}function Qs(t){return[t("x"),t("y")]}const tr=({current:t})=>t?t.ownerDocument.defaultView:null,er=(t,e)=>Math.abs(t-e);class nr{constructor(t,e,{transformPagePoint:n,contextWindow:i=window,dragSnapToOrigin:o=!1,distanceThreshold:s=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const t=sr(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,n=function(t,e){const n=er(t.x,e.x),i=er(t.y,e.y);return Math.sqrt(n**2+i**2)}(t.offset,{x:0,y:0})>=this.distanceThreshold;if(!e&&!n)return;const{point:i}=t,{timestamp:o}=Lt;this.history.push({...i,timestamp:o});const{onStart:s,onMove:r}=this.handlers;e||(s&&s(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),r&&r(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=ir(e,this.transformPagePoint),xt.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();const{onEnd:n,onSessionEnd:i,resumeAnimation:o}=this.handlers;if(this.dragSnapToOrigin&&o&&o(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const s=sr("pointercancel"===t.type?this.lastMoveEventInfo:ir(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,s),i&&i(t,s)},!wi(t))return;this.dragSnapToOrigin=o,this.handlers=e,this.transformPagePoint=n,this.distanceThreshold=s,this.contextWindow=i||window;const r=ir($s(t),this.transformPagePoint),{point:a}=r,{timestamp:l}=Lt;this.history=[{...a,timestamp:l}];const{onSessionStart:c}=e;c&&c(t,sr(r,this.history)),this.removeListeners=Y(zs(this.contextWindow,"pointermove",this.handlePointerMove),zs(this.contextWindow,"pointerup",this.handlePointerUp),zs(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),wt(this.updatePoint)}}function ir(t,e){return e?{point:e(t.point)}:t}function or(t,e){return{x:t.x-e.x,y:t.y-e.y}}function sr({point:t},e){return{point:t,delta:or(t,ar(e)),offset:or(t,rr(e)),velocity:lr(e,.1)}}function rr(t){return t[0]}function ar(t){return t[t.length-1]}function lr(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const o=ar(t);for(;n>=0&&(i=t[n],!(o.timestamp-i.timestamp>K(e)));)n--;if(!i)return{x:0,y:0};const s=q(o.timestamp-i.timestamp);if(0===s)return{x:0,y:0};const r={x:(o.x-i.x)/s,y:(o.y-i.y)/s};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}function cr(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function hr(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,i]=[i,n]),{min:n,max:i}}const ur=.35;function dr(t,e,n){return{min:pr(t,e),max:pr(t,n)}}function pr(t,e){return"number"==typeof t?t:t[e]||0}const mr=new WeakMap;class fr{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={x:{min:0,max:0},y:{min:0,max:0}},this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:n}={}){const{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;const{dragSnapToOrigin:o}=this.getProps();this.panSession=new nr(t,{onSessionStart:t=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor($s(t).point)},onStart:(t,e)=>{const{drag:n,dragPropagation:i,onDragStart:o}=this.getProps();if(n&&!i&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===(s=n)||"y"===s?gi[s]?null:(gi[s]=!0,()=>{gi[s]=!1}):gi.x||gi.y?null:(gi.x=gi.y=!0,()=>{gi.x=gi.y=!1}),!this.openDragLock))return;var s;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Qs(t=>{let e=this.getAxisMotionValue(t).get()||0;if($t.test(e)){const{projection:n}=this.visualElement;if(n&&n.layout){const i=n.layout.layoutBox[t];if(i){e=Ys(i)*(parseFloat(e)/100)}}}this.originPoint[t]=e}),o&&xt.postRender(()=>o(t,e)),Cs(this.visualElement,"transform");const{animationState:r}=this.visualElement;r&&r.setActive("whileDrag",!0)},onMove:(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;const{dragPropagation:n,dragDirectionLock:i,onDirectionLock:o,onDrag:s}=this.getProps();if(!n&&!this.openDragLock)return;const{offset:r}=e;if(i&&null===this.currentDirection)return this.currentDirection=function(t,e=10){let n=null;Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x");return n}(r),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",e.point,r),this.updateAxis("y",e.point,r),this.visualElement.render(),s&&s(t,e)},onSessionEnd:(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},resumeAnimation:()=>Qs(t=>"paused"===this.getAnimationState(t)&&this.getAxisMotionValue(t).animation?.play())},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:o,distanceThreshold:n,contextWindow:tr(this.visualElement)})}stop(t,e){const n=t||this.latestPointerEvent,i=e||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!i||!n)return;const{velocity:s}=i;this.startAnimation(s);const{onDragEnd:r}=this.getProps();r&&xt.postRender(()=>r(n,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,n){const{drag:i}=this.getProps();if(!n||!gr(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(s=function(t,{min:e,max:n},i){return void 0!==e&&t<e?t=i?ce(e,t,i.min):Math.max(t,e):void 0!==n&&t>n&&(t=i?ce(n,t,i.max):Math.min(t,n)),t}(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){const{dragConstraints:t,dragElastic:e}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;t&&Do(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!n)&&function(t,{top:e,left:n,bottom:i,right:o}){return{x:cr(t.x,n,o),y:cr(t.y,e,i)}}(n.layoutBox,t),this.elastic=function(t=ur){return!1===t?t=0:!0===t&&(t=ur),{x:dr(t,"left","right"),y:dr(t,"top","bottom")}}(e),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&Qs(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){const n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(n.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:e}=this.getProps();if(!t||!Do(t))return!1;const n=t.current;j(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=function(t,e,n){const i=ns(t,n),{scroll:o}=e;return o&&(Qo(i.x,o.offset.x),Qo(i.y,o.offset.y)),i}(n,i.root,this.visualElement.getTransformPagePoint());let s=function(t,e){return{x:hr(t.x,e.x),y:hr(t.y,e.y)}}(i.layout.layoutBox,o);if(e){const t=e(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(s));this.hasMutatedConstraints=!!t,t&&(s=_o(t))}return s}startAnimation(t){const{drag:e,dragMomentum:n,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:r}=this.getProps(),a=this.constraints||{},l=Qs(r=>{if(!gr(r,e,this.currentDirection))return;let l=a&&a[r]||{};s&&(l={min:0,max:0});const c=i?200:1e6,h=i?40:1e7,u={type:"inertia",velocity:n?t[r]:0,bounceStiffness:c,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(r,u)});return Promise.all(l).then(r)}startAxisValueAnimation(t,e){const n=this.getAxisMotionValue(t);return Cs(this.visualElement,t),n.start(Ps(t,n,0,e,this.visualElement,!1))}stopAnimation(){Qs(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Qs(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const e=`_drag${t.toUpperCase()}`,n=this.visualElement.getProps(),i=n[e];return i||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){Qs(e=>{const{drag:n}=this.getProps();if(!gr(e,n,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(e);if(i&&i.layout){const{min:n,max:s}=i.layout.layoutBox[e];o.set(t[e]-ce(n,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:e}=this.getProps(),{projection:n}=this.visualElement;if(!Do(e)||!n||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Qs(t=>{const e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){const n=e.get();i[t]=function(t,e){let n=.5;const i=Ys(t),o=Ys(e);return o>i?n=X(e.min,e.max-i,t.min):i>o&&(n=X(t.min,t.max-o,e.min)),I(0,1,n)}({min:n,max:n},this.constraints[t])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Qs(e=>{if(!gr(e,t,null))return;const n=this.getAxisMotionValue(e),{min:o,max:s}=this.constraints[e];n.set(ce(o,s,i[e]))})}addListeners(){if(!this.visualElement.current)return;mr.set(this.visualElement,this);const t=zs(this.visualElement.current,"pointerdown",t=>{const{drag:e,dragListener:n=!0}=this.getProps();e&&n&&this.start(t)}),e=()=>{const{dragConstraints:t}=this.getProps();Do(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,i=n.addEventListener("measure",e);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),xt.read(e);const o=Ws(window,"resize",()=>this.scalePositionWithinConstraints()),s=n.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(Qs(e=>{const n=this.getAxisMotionValue(e);n&&(this.originPoint[e]+=t[e].translate,n.set(n.get()+t[e].translate))}),this.visualElement.render())});return()=>{o(),t(),i(),s&&s()}}getProps(){const t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=ur,dragMomentum:r=!0}=t;return{...t,drag:e,dragDirectionLock:n,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:r}}}function gr(t,e,n){return!(!0!==e&&e!==t||null!==n&&n!==t)}const vr=t=>(e,n)=>{t&&xt.postRender(()=>t(e,n))};const yr={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Cr(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const xr={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!zt.test(t))return t;t=parseFloat(t)}return`${Cr(t,e.target.x)}% ${Cr(t,e.target.y)}%`}},wr={correct:(t,{treeScale:e,projectionDelta:n})=>{const i=t,o=re.parse(t);if(o.length>5)return i;const s=re.createTransformer(t),r="number"!=typeof o[0]?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;o[0+r]/=a,o[1+r]/=l;const c=ce(a,l,.5);return"number"==typeof o[2+r]&&(o[2+r]/=c),"number"==typeof o[3+r]&&(o[3+r]/=c),s(o)}};let Lr=!1;class br extends C{componentDidMount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:i}=this.props,{projection:o}=t;!function(t){for(const e in t)no[e]=t[e],At(e)&&(no[e].isCSSVariable=!0)}(Mr),o&&(e.group&&e.group.add(o),n&&n.register&&i&&n.register(o),Lr&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),yr.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:e,visualElement:n,drag:i,isPresent:o}=this.props,{projection:s}=n;return s?(s.isPresent=o,Lr=!0,i||t.layoutDependency!==e||void 0===e||t.isPresent!==o?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||xt.postRender(()=>{const t=s.getStack();t&&t.members.length||this.safeToRemove()})),null):null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),fi.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n}=this.props,{projection:i}=t;Lr=!0,i&&(i.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Tr(e){const[n,i]=Ri(),o=h(V);return t(br,{...e,layoutGroup:o,switchLayoutGroup:h(Bo),isPresent:n,safeToRemove:i})}const Mr={borderRadius:{...xr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:xr,borderTopRightRadius:xr,borderBottomLeftRadius:xr,borderBottomRightRadius:xr,boxShadow:wr};const Pr=(t,e)=>t.depth-e.depth;class Sr{constructor(){this.children=[],this.isDirty=!1}add(t){B(this.children,t),this.isDirty=!0}remove(t){R(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Pr),this.isDirty=!1,this.children.forEach(t)}}const Ar=["TopLeft","TopRight","BottomLeft","BottomRight"],Er=Ar.length,Vr=t=>"string"==typeof t?parseFloat(t):t,Dr=t=>"number"==typeof t||zt.test(t);function Nr(t,e){return void 0!==t[e]?t[e]:t.borderRadius}const kr=Br(0,.5,ht),Or=Br(.5,.95,$);function Br(t,e,n){return i=>i<t?0:i>e?1:n(X(t,e,i))}function Rr(t,e){t.min=e.min,t.max=e.max}function Ir(t,e){Rr(t.x,e.x),Rr(t.y,e.y)}function Fr(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function jr(t,e,n,i,o){return t=Yo(t-=e,1/n,i),void 0!==o&&(t=Yo(t,1/o,i)),t}function Zr(t,e,[n,i,o],s,r){!function(t,e=0,n=1,i=.5,o,s=t,r=t){$t.test(e)&&(e=parseFloat(e),e=ce(r.min,r.max,e/100)-r.min);if("number"!=typeof e)return;let a=ce(s.min,s.max,i);t===s&&(a-=e),t.min=jr(t.min,e,n,a,o),t.max=jr(t.max,e,n,a,o)}(t,e[n],e[i],e[o],e.scale,s,r)}const _r=["x","scaleX","originX"],Ur=["y","scaleY","originY"];function Hr(t,e,n,i){Zr(t.x,e,_r,n?n.x:void 0,i?i.x:void 0),Zr(t.y,e,Ur,n?n.y:void 0,i?i.y:void 0)}function Wr(t){return 0===t.translate&&1===t.scale}function $r(t){return Wr(t.x)&&Wr(t.y)}function zr(t,e){return t.min===e.min&&t.max===e.max}function Yr(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Xr(t,e){return Yr(t.x,e.x)&&Yr(t.y,e.y)}function Gr(t){return Ys(t.x)/Ys(t.y)}function Kr(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class qr{constructor(){this.members=[]}add(t){B(this.members,t),t.scheduleRender()}remove(t){if(R(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){const e=this.members.findIndex(e=>t===e);if(0===e)return!1;let n;for(let t=e;t>=0;t--){const e=this.members[t];if(!1!==e.isPresent){n=e;break}}return!!n&&(this.promote(n),!0)}promote(t,e){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,e&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;!1===i&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:e,resumingFrom:n}=t;e.onExitComplete&&e.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const Jr=["","X","Y","Z"];let Qr=0;function ta(t,e,n,i){const{latestValues:o}=e;o[t]&&(n[t]=o[t],e.setStaticValue(t,0),i&&(i[t]=0))}function ea(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=xs(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:e,layoutId:i}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",xt,!(e||i))}const{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&ea(i)}function na({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:o}){return class{constructor(t={},n=e?.()){this.id=Qr++,this.animationId=0,this.animationCommitId=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,this.nodes.forEach(sa),this.nodes.forEach(da),this.nodes.forEach(pa),this.nodes.forEach(ra)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new Sr)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new G),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){const n=this.eventHandlers.get(t);n&&n.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e){if(this.instance)return;var n;this.isSVG=Ai(e)&&!(Ai(n=e)&&"svg"===n.tagName),this.instance=e;const{layoutId:i,layout:o,visualElement:s}=this.options;if(s&&!s.current&&s.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(o||i)&&(this.isLayoutDirty=!0),t){let n,i=0;const o=()=>this.root.updateBlockedByResize=!1;xt.read(()=>{i=window.innerWidth}),t(e,()=>{const t=window.innerWidth;t!==i&&(i=t,this.root.updateBlockedByResize=!0,n&&n(),n=function(t,e){const n=Pt.now(),i=({timestamp:o})=>{const s=o-n;s>=e&&(wt(i),t(s-e))};return xt.setup(i,!0),()=>wt(i)}(o,250),yr.hasAnimatedSinceResize&&(yr.hasAnimatedSinceResize=!1,this.nodes.forEach(ua)))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&s&&(i||o)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:n,layout:i})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const o=this.options.transition||s.getDefaultTransition()||Ca,{onLayoutAnimationStart:r,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!Xr(this.targetLayout,i),c=!e&&n;if(this.options.layoutRoot||this.resumeFrom||c||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const e={...Xn(o,"layout"),onPlay:r,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,c)}else e||ua(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=i})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),wt(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(ma),this.animationId++)}getTransformTemplate(){const{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&ea(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){const e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}const{layoutId:e,layout:n}=this.options;if(void 0===e&&!n)return;const i=this.getTransformTemplate();this.prevTransformTemplateValue=i?i(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(la);if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(ca);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(ha),this.nodes.forEach(ia),this.nodes.forEach(oa)):this.nodes.forEach(ca),this.clearAllSnapshots();const t=Pt.now();Lt.delta=I(0,1e3/60,t-Lt.timestamp),Lt.timestamp=t,Lt.isProcessing=!0,bt.update.process(Lt),bt.preRender.process(Lt),bt.render.process(Lt),Lt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,fi.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(aa),this.sharedNodes.forEach(fa)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,xt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){xt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||Ys(this.snapshot.measuredBox.x)||Ys(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++){this.path[t].updateScroll()}const t=this.layout;this.layout=this.measure(!1),this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=Boolean(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){const e=i(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!o)return;const t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!$r(this.projectionDelta),n=this.getTransformTemplate(),i=n?n(this.latestValues,""):void 0,s=i!==this.prevTransformTemplateValue;t&&this.instance&&(e||Wo(this.latestValues)||s)&&(o(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){const e=this.measurePageBox();let n=this.removeElementScroll(e);var i;return t&&(n=this.removeTransform(n)),La((i=n).x),La(i.y),{animationId:this.root.animationId,measuredBox:e,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:t}=this.options;if(!t)return{x:{min:0,max:0},y:{min:0,max:0}};const e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Ta))){const{scroll:t}=this.root;t&&(Qo(e.x,t.offset.x),Qo(e.y,t.offset.y))}return e}removeElementScroll(t){const e={x:{min:0,max:0},y:{min:0,max:0}};if(Ir(e,t),this.scroll?.wasRoot)return e;for(let n=0;n<this.path.length;n++){const i=this.path[n],{scroll:o,options:s}=i;i!==this.root&&o&&s.layoutScroll&&(o.wasRoot&&Ir(e,t),Qo(e.x,o.offset.x),Qo(e.y,o.offset.y))}return e}applyTransform(t,e=!1){const n={x:{min:0,max:0},y:{min:0,max:0}};Ir(n,t);for(let t=0;t<this.path.length;t++){const i=this.path[t];!e&&i.options.layoutScroll&&i.scroll&&i!==i.root&&es(n,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),Wo(i.latestValues)&&es(n,i.latestValues)}return Wo(this.latestValues)&&es(n,this.latestValues),n}removeTransform(t){const e={x:{min:0,max:0},y:{min:0,max:0}};Ir(e,t);for(let t=0;t<this.path.length;t++){const n=this.path[t];if(!n.instance)continue;if(!Wo(n.latestValues))continue;Ho(n.latestValues)&&n.updateSnapshot();const i=is();Ir(i,n.measurePageBox()),Hr(e,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,i)}return Wo(this.latestValues)&&Hr(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Lt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){const e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);const n=Boolean(this.resumingFrom)||this!==e;if(!(t||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:i,layoutId:o}=this.options;if(this.layout&&(i||o)){if(this.resolvedRelativeTargetAt=Lt.timestamp,!this.targetDelta&&!this.relativeTarget){const t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Js(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),Ir(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}var s,r,a;if(this.relativeTarget||this.targetDelta)if(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),s=this.target,r=this.relativeTarget,a=this.relativeParent.target,Ks(s.x,r.x,a.x),Ks(s.y,r.y,a.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Ir(this.target,this.layout.layoutBox),Ko(this.target,this.targetDelta)):Ir(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const t=this.getClosestProjectingParent();t&&Boolean(t.resumingFrom)===Boolean(this.resumingFrom)&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Js(this.relativeTargetOrigin,this.target,t.target),Ir(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(this.parent&&!Ho(this.parent.latestValues)&&!$o(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){const t=this.getLead(),e=Boolean(this.resumingFrom)||this!==t;let n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===Lt.timestamp&&(n=!1),n)return;const{layout:i,layoutId:o}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!i&&!o)return;Ir(this.layoutCorrected,this.layout.layoutBox);const s=this.treeScale.x,r=this.treeScale.y;!function(t,e,n,i=!1){const o=n.length;if(!o)return;let s,r;e.x=e.y=1;for(let a=0;a<o;a++){s=n[a],r=s.projectionDelta;const{visualElement:o}=s.options;o&&o.props.style&&"contents"===o.props.style.display||(i&&s.options.layoutScroll&&s.scroll&&s!==s.root&&es(t,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,Ko(t,r)),i&&Wo(s.latestValues)&&es(t,s.latestValues))}e.x<Jo&&e.x>qo&&(e.x=1),e.y<Jo&&e.y>qo&&(e.y=1)}(this.layoutCorrected,this.treeScale,this.path,e),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox,t.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}});const{target:a}=t;a?(this.projectionDelta&&this.prevProjectionDelta?(Fr(this.prevProjectionDelta.x,this.projectionDelta.x),Fr(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),Gs(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===s&&this.treeScale.y===r&&Kr(this.projectionDelta.x,this.prevProjectionDelta.x)&&Kr(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a))):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){const t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}}setAnimationOrigin(t,e=!1){const n=this.snapshot,i=n?n.latestValues:{},o={...this.latestValues},s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;const r={x:{min:0,max:0},y:{min:0,max:0}},a=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),c=!l||l.members.length<=1,h=Boolean(a&&!c&&!0===this.options.crossfade&&!this.path.some(ya));let u;this.animationProgress=0,this.mixTargetDelta=e=>{const n=e/1e3;var l,d,p,m,f,g;ga(s.x,t.x,n),ga(s.y,t.y,n),this.setTargetDelta(s),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Js(r,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,f=r,g=n,va(p.x,m.x,f.x,g),va(p.y,m.y,f.y,g),u&&(l=this.relativeTarget,d=u,zr(l.x,d.x)&&zr(l.y,d.y))&&(this.isProjectionDirty=!1),u||(u={x:{min:0,max:0},y:{min:0,max:0}}),Ir(u,this.relativeTarget)),a&&(this.animationValues=o,function(t,e,n,i,o,s){o?(t.opacity=ce(0,n.opacity??1,kr(i)),t.opacityExit=ce(e.opacity??1,0,Or(i))):s&&(t.opacity=ce(e.opacity??1,n.opacity??1,i));for(let o=0;o<Er;o++){const s=`border${Ar[o]}Radius`;let r=Nr(e,s),a=Nr(n,s);void 0===r&&void 0===a||(r||(r=0),a||(a=0),0===r||0===a||Dr(r)===Dr(a)?(t[s]=Math.max(ce(Vr(r),Vr(a),i),0),($t.test(a)||$t.test(r))&&(t[s]+="%")):t[s]=a)}(e.rotate||n.rotate)&&(t.rotate=ce(e.rotate||0,n.rotate||0,i))}(o,i,this.latestValues,n,h,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(wt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=xt.update(()=>{yr.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=mi(0)),this.currentAnimation=function(t,e,n){const i=Ei(t)?t:mi(t);return i.start(Ps("",i,e,n)),i.animation}(this.motionValue,[0,1e3],{...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{},onComplete:()=>{t.onComplete&&t.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 t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const t=this.getLead();let{targetWithTransforms:e,target:n,layout:i,latestValues:o}=t;if(e&&n&&i){if(this!==t&&this.layout&&i&&ba(this.options.animationType,this.layout.layoutBox,i.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const e=Ys(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;const i=Ys(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+i}Ir(e,n),es(e,o),Gs(this.projectionDeltaWithTransform,this.layoutCorrected,e,o)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new qr);this.sharedNodes.get(t).add(e);const n=e.options.initialPromotionConfig;e.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(e):void 0})}isLead(){const t=this.getStack();return!t||t.lead===this}getLead(){const{layoutId:t}=this.options;return t&&this.getStack()?.lead||this}getPrevLead(){const{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:n}={}){const i=this.getStack();i&&i.promote(this,n),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){const t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){const{visualElement:t}=this.options;if(!t)return;let e=!1;const{latestValues:n}=t;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(e=!0),!e)return;const i={};n.z&&ta("z",t,i,this.animationValues);for(let e=0;e<Jr.length;e++)ta(`rotate${Jr[e]}`,t,i,this.animationValues),ta(`skew${Jr[e]}`,t,i,this.animationValues);t.render();for(const e in i)t.setStaticValue(e,i[e]),this.animationValues&&(this.animationValues[e]=i[e]);t.scheduleRender()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible)return void(t.visibility="hidden");const n=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=bo(e?.pointerEvents)||"",void(t.transform=n?n(this.latestValues,""):"none");const i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target)return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=bo(e?.pointerEvents)||""),void(this.hasProjected&&!Wo(this.latestValues)&&(t.transform=n?n({},""):"none",this.hasProjected=!1));t.visibility="";const o=i.animationValues||i.latestValues;this.applyTransformsToTarget();let s=function(t,e,n){let i="";const o=t.x.translate/e.x,s=t.y.translate/e.y,r=n?.z||0;if((o||s||r)&&(i=`translate3d(${o}px, ${s}px, ${r}px) `),1===e.x&&1===e.y||(i+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:t,rotate:e,rotateX:o,rotateY:s,skewX:r,skewY:a}=n;t&&(i=`perspective(${t}px) ${i}`),e&&(i+=`rotate(${e}deg) `),o&&(i+=`rotateX(${o}deg) `),s&&(i+=`rotateY(${s}deg) `),r&&(i+=`skewX(${r}deg) `),a&&(i+=`skewY(${a}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return 1===a&&1===l||(i+=`scale(${a}, ${l})`),i||"none"}(this.projectionDeltaWithTransform,this.treeScale,o);n&&(s=n(o,s)),t.transform=s;const{x:r,y:a}=this.projectionDelta;t.transformOrigin=`${100*r.origin}% ${100*a.origin}% 0`,i.animationValues?t.opacity=i===this?o.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:o.opacityExit:t.opacity=i===this?void 0!==o.opacity?o.opacity:"":void 0!==o.opacityExit?o.opacityExit:0;for(const e in no){if(void 0===o[e])continue;const{correct:n,applyTo:r,isCSSVariable:a}=no[e],l="none"===s?o[e]:n(o[e],i);if(r){const e=r.length;for(let n=0;n<e;n++)t[r[n]]=l}else a?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=i===this?bo(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(la),this.root.sharedNodes.clear()}}}function ia(t){t.updateLayout()}function oa(t){const e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:i}=t.layout,{animationType:o}=t.options,s=e.source!==t.layout.source;"size"===o?Qs(t=>{const i=s?e.measuredBox[t]:e.layoutBox[t],o=Ys(i);i.min=n[t].min,i.max=i.min+o}):ba(o,e.layoutBox,n)&&Qs(i=>{const o=s?e.measuredBox[i]:e.layoutBox[i],r=Ys(n[i]);o.max=o.min+r,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[i].max=t.relativeTarget[i].min+r)});const r={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};Gs(r,n,e.layoutBox);const a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};s?Gs(a,t.applyTransform(i,!0),e.measuredBox):Gs(a,n,e.layoutBox);const l=!$r(r);let c=!1;if(!t.resumeFrom){const i=t.getClosestProjectingParent();if(i&&!i.resumeFrom){const{snapshot:o,layout:s}=i;if(o&&s){const r={x:{min:0,max:0},y:{min:0,max:0}};Js(r,e.layoutBox,o.layoutBox);const a={x:{min:0,max:0},y:{min:0,max:0}};Js(a,n,s.layoutBox),Xr(r,a)||(c=!0),i.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=r,t.relativeParent=i)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:e,delta:a,layoutDelta:r,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(t.isLead()){const{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function sa(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=Boolean(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function ra(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function aa(t){t.clearSnapshot()}function la(t){t.clearMeasurements()}function ca(t){t.isLayoutDirty=!1}function ha(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function ua(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function da(t){t.resolveTargetDelta()}function pa(t){t.calcProjection()}function ma(t){t.resetSkewAndRotation()}function fa(t){t.removeLeadSnapshot()}function ga(t,e,n){t.translate=ce(e.translate,0,n),t.scale=ce(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function va(t,e,n,i){t.min=ce(e.min,n.min,i),t.max=ce(e.max,n.max,i)}function ya(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}const Ca={duration:.45,ease:[.4,0,.1,1]},xa=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),wa=xa("applewebkit/")&&!xa("chrome/")?Math.round:$;function La(t){t.min=wa(t.min),t.max=wa(t.max)}function ba(t,e,n){return"position"===t||"preserve-aspect"===t&&(i=Gr(e),o=Gr(n),s=.2,!(Math.abs(i-o)<=s));var i,o,s}function Ta(t){return t!==t.root&&t.scroll?.wasRoot}const Ma=na({attachResizeListener:(t,e)=>Ws(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Pa={current:void 0},Sa=na({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Pa.current){const t=new Ma({});t.mount(window),t.setOptions({layoutScroll:!0}),Pa.current=t}return Pa.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>Boolean("fixed"===window.getComputedStyle(t).position)}),Aa={pan:{Feature:class extends _s{constructor(){super(...arguments),this.removePointerDownListener=$}onPointerDown(t){this.session=new nr(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:tr(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:e,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:vr(t),onStart:vr(e),onMove:n,onEnd:(t,e)=>{delete this.session,i&&xt.postRender(()=>i(t,e))}}}mount(){this.removePointerDownListener=zs(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends _s{constructor(t){super(t),this.removeGroupControls=$,this.removeListeners=$,this.controls=new fr(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||$}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:Sa,MeasureLayout:Tr}};function Ea(t,e,n){const{props:i}=t;t.animationState&&i.whileHover&&t.animationState.setActive("whileHover","Start"===n);const o=i["onHover"+n];o&&xt.postRender(()=>o(e,$s(e)))}function Va(t,e,n){const{props:i}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&i.whileTap&&t.animationState.setActive("whileTap","Start"===n);const o=i["onTap"+("End"===n?"":n)];o&&xt.postRender(()=>o(e,$s(e)))}const Da=new WeakMap,Na=new WeakMap,ka=t=>{const e=Da.get(t.target);e&&e(t)},Oa=t=>{t.forEach(ka)};function Ba(t,e,n){const i=function({root:t,...e}){const n=t||document;Na.has(n)||Na.set(n,{});const i=Na.get(n),o=JSON.stringify(e);return i[o]||(i[o]=new IntersectionObserver(Oa,{root:t,...e})),i[o]}(e);return Da.set(t,n),i.observe(t),()=>{Da.delete(t),i.unobserve(t)}}const Ra={some:0,all:1};const Ia=Zo({...Hs,...{inView:{Feature:class extends _s{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:e,margin:n,amount:i="some",once:o}=t,s={root:e?e.current:void 0,rootMargin:n,threshold:"number"==typeof i?i:Ra[i]};return Ba(this.node.current,s,t=>{const{isIntersecting:e}=t;if(this.isInView===e)return;if(this.isInView=e,o&&!e&&this.hasEnteredView)return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);const{onViewportEnter:n,onViewportLeave:i}=this.node.getProps(),s=e?n:i;s&&s(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}(t,e))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends _s{mount(){const{current:t}=this.node;t&&(this.unmount=Si(t,(t,e)=>(Va(this.node,e,"Start"),(t,{success:e})=>Va(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends _s{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){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=Y(Ws(this.node.current,"focus",()=>this.onFocus()),Ws(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends _s{mount(){const{current:t}=this.node;t&&(this.unmount=function(t,e,n={}){const[i,o,s]=yi(t,n),r=t=>{if(!Ci(t))return;const{target:n}=t,i=e(n,t);if("function"!=typeof i||!n)return;const s=t=>{Ci(t)&&(i(t),n.removeEventListener("pointerleave",s))};n.addEventListener("pointerleave",s,o)};return i.forEach(t=>{t.addEventListener("pointerenter",r,o)}),s}(t,(t,e)=>(Ea(this.node,e,"Start"),t=>Ea(this.node,t,"End"))))}unmount(){}}}},...Aa,...{layout:{ProjectionNode:Sa,MeasureLayout:Tr}}},ms);var Fa=function(i){var o=i.isOpen,r=i.onClose,l=i.children,c=i.whitoutBackground,h=void 0!==c&&c,u=i.closeButton,d=void 0!==u&&u,p=i.closeDisabled,m=void 0!==p&&p,f=i.escapeToClose,g=void 0===f||f,v=i.disableFocus,y=void 0!==v&&v,C=i.existTabIndex,x=void 0===C||C,b=i.zIndexLevel,T=void 0===b?100:b;i.overlayColor;var M=L(i,["isOpen","onClose","children","whitoutBackground","closeButton","closeDisabled","escapeToClose","disableFocus","existTabIndex","zIndexLevel","overlayColor"]),S=a(null),A=a(null);s(function(){return o?document.body.classList.add("onpe-modal-open"):document.body.classList.remove("onpe-modal-open"),function(){document.body.classList.remove("onpe-modal-open")}},[o]),s(function(){if(o){var t=function(){document.querySelectorAll(".onpe-modal-content").forEach(function(t){var e=t;e.style.scrollBehavior="auto",e.scrollTop=0,requestAnimationFrame(function(){e.scrollTop=0,setTimeout(function(){e.style.scrollBehavior="smooth"},10)})})};t(),setTimeout(t,10),setTimeout(t,50),setTimeout(t,100),setTimeout(t,200)}else{document.querySelectorAll(".onpe-modal-content").forEach(function(t){var e=t;e.style.scrollBehavior="auto",e.scrollTop=0,e.style.scrollBehavior="smooth"})}},[o]),s(function(){var t,e=function(t){var e=["a[href]","area[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","iframe","object","embed",'[tabindex]:not([tabindex="-1"])','[contenteditable="true"]'].join(","),n=Array.from(t.querySelectorAll(e)).filter(function(t){return e=t,"hidden"!==(n=window.getComputedStyle(e)).visibility&&"none"!==n.display&&null!==e.offsetParent&&-1!==t.tabIndex;var e,n});return t.tabIndex>=0&&(n=function(t,e,n){if(n||2===arguments.length)for(var i,o=0,s=e.length;o<s;o++)!i&&o in e||(i||(i=Array.prototype.slice.call(e,0,o)),i[o]=e[o]);return t.concat(i||Array.prototype.slice.call(e))}([t],n,!0)),n},n=function(t){if(o&&!y){var n=S.current;if(n){var i=t.relatedTarget;i&&!n.contains(i)&&setTimeout(function(){var t=document.activeElement;if(!t||!n.contains(t)){var i=e(n);i.length>0?i[i.length-1].focus():n.focus()}},0)}}},i=function(t){if("Escape"!==t.key||!g||m){if(o&&!y){var n=S.current;if(n){var i=e(n),s=document.activeElement||null;if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(t.key)){if(s&&n.contains(s)){var a=i.indexOf(s);return"ArrowUp"!==t.key&&"ArrowLeft"!==t.key||0!==a?"ArrowDown"!==t.key&&"ArrowRight"!==t.key||a!==i.length-1?void requestAnimationFrame(function(){var t=document.activeElement;t&&n.contains(t)||(-1!==a&&i[a]?i[a].focus():i.length>0?i[0].focus():n.focus())}):(t.preventDefault(),t.stopPropagation(),void(i.length>1?i[0].focus():s.focus())):(t.preventDefault(),t.stopPropagation(),void(i.length>1?i[i.length-1].focus():s.focus()))}return t.preventDefault(),void(i.length>0?"ArrowUp"===t.key||"ArrowLeft"===t.key?i[i.length-1].focus():i[0].focus():n.focus())}if("Tab"===t.key){if(0===i.length)return t.preventDefault(),void n.focus();var l=i[0],c=i[i.length-1],h=t.shiftKey;if(!s||!n.contains(s))return t.preventDefault(),void(h?c:l).focus();var u=i.indexOf(s);return h||s!==c&&u!==i.length-1?h?(t.preventDefault(),void(s===l||s===n||0===u?c.focus():u>0?i[u-1].focus():c.focus())):void 0:(t.preventDefault(),void l.focus())}}}}else r()};if(o&&!y){A.current=document.activeElement,null===(t=S.current)||void 0===t||t.focus(),document.addEventListener("keydown",i);var s=S.current;s&&s.addEventListener("focusout",n)}else o&&y&&document.addEventListener("keydown",i);return function(){document.removeEventListener("keydown",i);var t=S.current;t&&t.removeEventListener("focusout",n),!y&&A.current&&A.current.focus()}},[o,r,m,g,y]);var V,D,N,k={zIndex:T},O={zIndex:T+10};return t(P,{children:t(ji,{children:o&&e(n,{children:[t(Ia.div,{className:"onpe-modal-overlay",style:k,initial:{opacity:0},animate:{opacity:.8},exit:{opacity:0},onClick:r}),t(Ia.div,{className:(N="onpe-modal-container","".concat(N,o?" onpe-modal-open":" onpe-modal-closed")),style:O,initial:{opacity:.2,scale:.95,y:-20},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:-20},transition:{duration:.2},children:e("div",w({className:"onpe-modal-content-wrapper",ref:S,onClick:function(t){return t.stopPropagation()}},x&&{tabIndex:y?-1:0},{role:"dialog","aria-modal":"true","aria-labelledby":M["aria-labelledby"],"aria-describedby":M["aria-describedby"],"aria-label":M["aria-label"],children:[t("div",{className:(V=h?"onpe-modal-without-background":"onpe-modal-with-background",D=M.className||"","".concat("onpe-modal-content"," ").concat(V," ").concat(D).trim()),children:l}),d&&t("button",{onClick:r,className:"onpe-modal-close-button","aria-label":"Cerrar",type:"button",children:t(E,{"aria-hidden":"true",className:"w-full h-full"})})]}))})]})})})},ja=function(n){return e("svg",w({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"5.040041067761807 0 89.93839835728953 75.564681724846",style:{maxHeight:500},width:89.93839835728953,height:75.564681724846},n,{children:[t("path",{strokeWidth:4,stroke:"currentColor",fill:"white",d:"M89.8369 73H10.1631L50 4L89.8369 73Z"}),t("path",{fill:"currentColor",d:"M53.2832 35.828L52.5632 53.072H47.3432L46.6232 35.828H53.2832ZM50.0432 62.288C48.9632 62.288 48.0752 61.976 47.3792 61.352C46.7072 60.704 46.3712 59.912 46.3712 58.976C46.3712 58.016 46.7072 57.212 47.3792 56.564C48.0752 55.916 48.9632 55.592 50.0432 55.592C51.0992 55.592 51.9632 55.916 52.6352 56.564C53.3312 57.212 53.6792 58.016 53.6792 58.976C53.6792 59.912 53.3312 60.704 52.6352 61.352C51.9632 61.976 51.0992 62.288 50.0432 62.288Z"})]}))},Za=function(n){return e("svg",w({width:48,height:48,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:[e("g",{clipPath:"url(#clip0_2937_2817)",children:[t("path",{d:"M24.0543 46.9641C36.6876 46.9641 46.9289 36.7228 46.9289 24.0895C46.9289 11.4562 36.6876 1.21484 24.0543 1.21484C11.421 1.21484 1.17969 11.4562 1.17969 24.0895C1.17969 36.7228 11.421 46.9641 24.0543 46.9641Z",fill:"white"}),t("path",{d:"M38.6131 28.2485C38.6131 20.2089 32.096 13.6914 24.0568 13.6914C16.0175 13.6914 9.5 20.2089 9.5 28.2485H13.6588C13.6588 22.5058 18.3144 17.8509 24.0564 17.8509C29.7987 17.8509 34.454 22.5058 34.454 28.2485",fill:"black",fillOpacity:.1}),t("path",{d:"M25.0973 34.9017C29.4615 34.9017 32.9993 31.3638 32.9993 26.9997C32.9993 22.6355 29.4615 19.0977 25.0973 19.0977C20.7332 19.0977 17.1953 22.6355 17.1953 26.9997C17.1953 31.3638 20.7332 34.9017 25.0973 34.9017Z",fill:"black",fillOpacity:.1}),t("path",{d:"M24.0573 32.6145C28.766 32.6145 32.5833 28.7973 32.5833 24.0885C32.5833 19.3797 28.766 15.5625 24.0573 15.5625C19.3485 15.5625 15.5312 19.3797 15.5312 24.0885C15.5312 28.7973 19.3485 32.6145 24.0573 32.6145Z",fill:"url(#paint0_linear_2937_2817)"}),t("path",{d:"M44.8488 13.691C39.1241 2.17252 25.1456 -2.52398 13.6267 3.20077C10.0351 4.98585 6.96538 7.6682 4.71484 10.988L14.073 27.2079C12.3491 21.7306 15.3933 15.8927 20.8706 14.1692C21.8339 13.866 22.8364 13.705 23.8462 13.6914",fill:"url(#paint1_linear_2937_2817)"}),t("path",{d:"M4.71669 10.9883C-2.44582 21.6728 0.409436 36.1399 11.0936 43.3024C14.3993 45.5183 18.2175 46.8505 22.1842 47.172L31.9578 30.5359C28.3034 34.965 21.7503 35.5932 17.3208 31.9384C15.8164 30.6975 14.6914 29.0585 14.0744 27.2085",fill:"url(#paint2_linear_2937_2817)"}),t("path",{d:"M22.1836 47.1718C35.0101 48.1412 46.1937 38.5292 47.1635 25.703C47.4764 21.5645 46.6776 17.4175 44.8497 13.6914H23.8475C29.5895 13.7177 34.2237 18.3943 34.1967 24.1367C34.1862 26.46 33.3977 28.7128 31.9572 30.5357",fill:"url(#paint3_linear_2937_2817)"}),t("path",{d:"M4.71484 10.9873L14.073 27.2072C13.3796 24.8745 13.5265 22.3724 14.4881 20.1369L5.13034 10.3633",fill:"url(#paint4_linear_2937_2817)"}),t("path",{d:"M22.1858 47.1713L31.9594 30.5352C30.4173 32.374 28.2866 33.6228 25.9287 34.0699L21.7695 47.1713",fill:"url(#paint5_linear_2937_2817)"}),t("path",{d:"M44.8503 13.6914H23.8477C25.4094 13.6987 26.9494 14.0577 28.3534 14.7418C29.7573 15.4258 30.9892 16.4174 31.9574 17.6428L45.2665 14.3154",fill:"url(#paint6_linear_2937_2817)"})]}),e("defs",{children:[e("linearGradient",{id:"paint0_linear_2937_2817",x1:24.0621,y1:15.549,x2:24.0621,y2:32.6153,gradientUnits:"userSpaceOnUse",children:[t("stop",{stopColor:"#81B4E0"}),t("stop",{offset:1,stopColor:"#0C5A94"})]}),e("linearGradient",{id:"paint1_linear_2937_2817",x1:24.7818,y1:.79815,x2:24.7818,y2:19.7218,gradientUnits:"userSpaceOnUse",children:[t("stop",{stopColor:"#F06B59"}),t("stop",{offset:1,stopColor:"#DF2227"})]}),e("linearGradient",{id:"paint2_linear_2937_2817",x1:6.43681,y1:40.644,x2:16.0023,y2:24.84,gradientUnits:"userSpaceOnUse",children:[t("stop",{stopColor:"#388B41"}),t("stop",{offset:1,stopColor:"#4CB749"})]}),e("linearGradient",{id:"paint3_linear_2937_2817",x1:38.48,y1:42.3245,x2:28.2905,y2:17.7864,gradientUnits:"userSpaceOnUse",children:[t("stop",{stopColor:"#E4B022"}),t("stop",{offset:.3,stopColor:"#FCD209"})]}),e("linearGradient",{id:"paint4_linear_2937_2817",x1:9.60147,y1:26.5835,x2:9.60147,y2:9.94778,gradientUnits:"userSpaceOnUse",children:[t("stop",{stopOpacity:.15}),t("stop",{offset:.3,stopOpacity:.06}),t("stop",{offset:1,stopOpacity:.03})]}),e("linearGradient",{id:"paint5_linear_2937_2817",x1:32.5673,y1:31.9557,x2:21.1302,y2:43.6009,gradientUnits:"userSpaceOnUse",children:[t("stop",{stopOpacity:.15}),t("stop",{offset:.3,stopOpacity:.06}),t("stop",{offset:1,stopOpacity:.03})]}),e("linearGradient",{id:"paint6_linear_2937_2817",x1:32.3995,y1:35.3087,x2:34.0634,y2:18.8799,gradientUnits:"userSpaceOnUse",children:[t("stop",{stopOpacity:.15}),t("stop",{offset:.3,stopOpacity:.06}),t("stop",{offset:1,stopOpacity:.03})]}),t("clipPath",{id:"clip0_2937_2817",children:t("rect",{width:48,height:48,fill:"white"})})]})]}))},_a=function(n){return e("svg",w({width:48,height:48,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:[e("g",{clipPath:"url(#clip0_2937_2841)",children:[t("path",{d:"M24 47.4375C36.9442 47.4375 47.4375 36.9442 47.4375 24C47.4375 11.0558 36.9442 0.5625 24 0.5625C11.0558 0.5625 0.5625 11.0558 0.5625 24C0.5625 36.9442 11.0558 47.4375 24 47.4375Z",fill:"url(#paint0_linear_2937_2841)"}),t("path",{d:"M23.8129 2.85156V6.30156H24.1879V2.85156H23.8129ZM22.3497 2.94906L21.9762 2.97906L22.1262 4.85406L22.4997 4.82406L22.3497 2.94906ZM25.6512 2.94906L25.5012 4.82406L25.8747 4.85406L26.0247 2.97906L25.6512 2.94906ZM20.5103 3.15681L20.1405 3.22131L20.7405 6.63419L21.1103 6.56931L20.5103 3.15681ZM27.4905 3.15681L26.8905 6.56931L27.2603 6.63456L27.8603 3.22131L27.4905 3.15681ZM18.7065 3.55281L18.3447 3.65069L18.8318 5.45106L19.1937 5.35319L18.7065 3.55281ZM29.2943 3.55281L28.8072 5.35281L29.169 5.45106L29.6562 3.65106L29.2943 3.55281ZM16.977 4.06394L16.6234 4.18994L17.7867 7.45244L18.1395 7.32606L16.977 4.06394ZM31.0238 4.06394L29.8613 7.32644L30.2142 7.45206L31.3774 4.18994L31.0238 4.06394ZM32.7563 4.75844L31.9313 6.48381L32.2695 6.64506L33.0949 4.92006L32.7563 4.75844ZM15.2457 4.76106L14.9052 4.91706L15.6927 6.64206L16.0332 6.48681L15.2457 4.76106ZM13.6257 5.60856L13.3005 5.79531L15.0255 8.79531L15.3507 8.60856L13.6257 5.60856ZM34.3752 5.60856L32.6502 8.60856L32.9757 8.79531L34.7007 5.79531L34.3752 5.60856ZM12.0405 6.56856L11.7345 6.78494L12.822 8.32281L13.1284 8.10606L12.0405 6.56856ZM35.9603 6.56856L34.8728 8.10606L35.1788 8.32281L36.2663 6.78494L35.9603 6.56856ZM10.6065 7.68156L10.3197 7.92306L12.5322 10.5481L12.8187 10.3066L10.6065 7.68156ZM37.3943 7.68156L35.1822 10.3066L35.4687 10.5481L37.6812 7.92306L37.3943 7.68156ZM9.20628 8.90519L8.94491 9.17406L10.2949 10.4866L10.5559 10.2177L9.20628 8.90519ZM7.95753 10.2454L7.71791 10.5334L10.3804 12.7459L10.6204 12.4572L7.95753 10.2454ZM40.0433 10.2454L37.3804 12.4576L37.6204 12.7463L40.2829 10.5334L40.0433 10.2454ZM6.81941 11.6978L6.60603 12.0064L8.18141 13.0939L8.39478 12.7849L6.81941 11.6978ZM41.1814 11.6978L39.6064 12.7849L39.8194 13.0939L41.3944 12.0064L41.1814 11.6978ZM5.83166 13.2642L5.64491 13.5893L8.64491 15.3143L8.83166 14.9892L5.83166 13.2642ZM42.1699 13.2642L39.1699 14.9892L39.3567 15.3143L42.3567 13.5893L42.1699 13.2642ZM4.99241 14.8692L4.83416 15.2089L6.52166 15.9964L6.67991 15.6563L4.99241 14.8692ZM43.0092 14.8692L41.3217 15.6567L41.4799 15.9961L43.1674 15.2086L43.0092 14.8692ZM4.26603 16.5503L4.13478 16.9017L7.35978 18.1024L7.49103 17.7507L4.26603 16.5503ZM43.7348 16.5503L40.5098 17.7507L40.641 18.1024L43.866 16.9017L43.7348 16.5503ZM3.68591 18.3076L3.58991 18.6702L5.42741 19.1581L5.52378 18.7954L3.68591 18.3076ZM44.3149 18.3076L42.4774 18.7954L42.573 19.1581L44.4105 18.6706L44.3149 18.3076ZM3.25841 20.1042L3.19316 20.4736L6.60566 21.0739L6.67053 20.7042L3.25841 20.1042ZM44.7424 20.1042L41.3299 20.7042L41.3955 21.0739L44.808 20.4736L44.7424 20.1042ZM3.01916 21.9023L2.98241 22.2758L4.85741 22.4633L4.89416 22.0898L3.01916 21.9023ZM44.9824 21.9023L43.1074 22.0898L43.1442 22.4633L45.0192 22.2758L44.9824 21.9023ZM2.92578 23.7766V24.1516H6.37541V23.7766H2.92578ZM41.6254 23.7766V24.1516H45.0754V23.7766H41.6254ZM4.85703 25.4277L2.98203 25.6152L3.01878 25.9879L4.89378 25.8004L4.85703 25.4277ZM43.1438 25.4277L43.107 25.8004L44.982 25.9879L45.0188 25.6152L43.1438 25.4277ZM6.60528 26.8171L3.19278 27.4171L3.25841 27.7861L6.67091 27.1861L6.60528 26.8171ZM41.3955 26.8171L41.3303 27.1861L44.7428 27.7861L44.8077 27.4167L41.3955 26.8171ZM5.42778 28.7333L3.59028 29.2201L3.68591 29.5827L5.52341 29.0956L5.42778 28.7333ZM42.573 28.7333L42.477 29.0956L44.3145 29.5827L44.4109 29.2201L42.573 28.7333ZM7.35978 29.7886L4.13478 30.9882L4.26603 31.3396L7.49103 30.1399L7.35978 29.7886ZM40.641 29.7886L40.5098 30.1399L43.7348 31.3399L43.866 30.9882L40.641 29.7886ZM6.52128 31.8942L4.83378 32.6817L4.99203 33.0214L6.67953 32.2339L6.52128 31.8942ZM41.4795 31.8942L41.3213 32.2339L43.0088 33.0214L43.167 32.6813L41.4795 31.8942ZM8.64453 32.6142L5.64453 34.3392L5.83128 34.6643L8.83128 32.9393L8.64453 32.6142ZM39.3563 32.6142L39.1695 32.9393L42.1695 34.6643L42.3563 34.3388L39.3563 32.6142ZM8.18141 34.7974L6.60641 35.8849L6.81941 36.1936L8.39441 35.1061L8.18141 34.7974ZM39.8194 34.7974L39.606 35.1057L41.1814 36.1932L41.3948 35.8849L39.8194 34.7974ZM10.3804 35.1447L7.71791 37.3572L7.95753 37.6459L10.6204 35.4334L10.3804 35.1447ZM37.6204 35.1447L37.3804 35.4334L40.0433 37.6459L40.2829 37.3572L37.6204 35.1447ZM12.5322 37.3433L10.3197 39.9683L10.6065 40.2102L12.8187 37.5852L12.5322 37.3433ZM35.4687 37.3433L35.1822 37.5852L37.3943 40.2102L37.6812 39.9683L35.4687 37.3433ZM37.7063 37.4048L37.4449 37.6737L38.7949 38.9862L39.0559 38.7173L37.7063 37.4048ZM15.0263 39.1321L13.3013 42.0946L13.6249 42.2836L15.3499 39.3211L15.0263 39.1321ZM32.9749 39.1321L32.6509 39.3211L34.3759 42.2836L34.6995 42.0946L32.9749 39.1321ZM12.8224 39.5686L11.7345 41.1061L12.0405 41.3224L13.128 39.7846L12.8224 39.5686ZM35.1788 39.5686L34.8724 39.7846L35.9599 41.3224L36.2663 41.1057L35.1788 39.5686ZM17.7863 40.4386L16.6238 43.7011L16.977 43.8267L18.1395 40.5646L17.7863 40.4386ZM30.2142 40.4386L29.8613 40.5646L31.0238 43.8271L31.3774 43.7007L30.2142 40.4386ZM20.7405 41.2568L20.1405 44.6693L20.5103 44.7342L21.1103 41.3217L20.7405 41.2568ZM27.2603 41.2568L26.8905 41.3221L27.4905 44.7346L27.8603 44.6689L27.2603 41.2568ZM15.732 41.2816L14.9067 42.9691L15.2434 43.1341L16.0692 41.4466L15.732 41.2816ZM32.2688 41.2816L31.9317 41.4466L32.7574 43.1341L33.0942 42.9691L32.2688 41.2816ZM23.8129 41.5891V45.0391H24.1879V41.5891H23.8129ZM18.8318 42.4411L18.3439 44.2786L18.7065 44.3746L19.194 42.5371L18.8318 42.4411ZM29.169 42.4411L28.8064 42.5371L29.2943 44.3746L29.6569 44.2786L29.169 42.4411ZM22.1262 43.0737L21.9762 44.9487L22.3497 44.9787L22.4997 43.1037L22.1262 43.0737ZM25.8747 43.0737L25.5012 43.1037L25.6512 44.9787L26.0247 44.9487L25.8747 43.0737Z",fill:"white"}),t("path",{d:"M40.0117 7.875L22.0117 22.0125L23.9617 23.9625L40.0117 7.875Z",fill:"#FF0000"}),t("path",{d:"M23.9609 23.9625L26.2109 26.2125L40.0109 7.875L23.9609 23.9625Z",fill:"#D01414"}),t("path",{d:"M22.0125 22.0117L7.875 40.0117L23.9625 23.9617L22.0125 22.0117Z",fill:"white"}),t("path",{d:"M7.875 40.0109L26.2125 26.2109L23.9625 23.9609L7.875 40.0109Z",fill:"#ACACAC"})]}),e("defs",{children:[e("linearGradient",{id:"paint0_linear_2937_2841",x1:24.0075,y1:.567,x2:24.0075,y2:47.439,gradientUnits:"userSpaceOnUse",children:[t("stop",{stopColor:"#19D7FF"}),t("stop",{offset:1,stopColor:"#1E64F0"})]}),t("clipPath",{id:"clip0_2937_2841",children:t("rect",{width:48,height:48,fill:"white"})})]})]}))},Ua=function(n){return e("svg",w({width:48,height:48,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:[e("g",{clipPath:"url(#clip0_2937_2810)",children:[t("path",{d:"M43.3141 35.7195C42.6766 36.057 42.0203 36.357 41.3453 36.6008C39.1891 37.407 36.9203 37.8195 34.6141 37.8195C25.7453 37.8195 18.0203 31.7258 18.0203 23.8883C18.0391 21.7508 19.2203 19.782 21.0953 18.7695C13.0703 19.107 11.0078 27.4695 11.0078 32.3633C11.0078 46.2195 23.7766 47.6258 26.5328 47.6258C28.0141 47.6258 30.2453 47.1945 31.5953 46.7633L31.8391 46.6883C37.0141 44.907 41.4016 41.4195 44.3266 36.7883C44.5516 36.432 44.4391 35.982 44.1016 35.757C43.8578 35.607 43.5578 35.5883 43.3141 35.7195Z",fill:"url(#paint0_linear_2937_2810)"}),t("path",{opacity:.35,d:"M43.3141 35.7195C42.6766 36.057 42.0203 36.357 41.3453 36.6008C39.1891 37.407 36.9203 37.8195 34.6141 37.8195C25.7453 37.8195 18.0203 31.7258 18.0203 23.8883C18.0391 21.7508 19.2203 19.782 21.0953 18.7695C13.0703 19.107 11.0078 27.4695 11.0078 32.3633C11.0078 46.2195 23.7766 47.6258 26.5328 47.6258C28.0141 47.6258 30.2453 47.1945 31.5953 46.7633L31.8391 46.6883C37.0141 44.907 41.4016 41.4195 44.3266 36.7883C44.5516 36.432 44.4391 35.982 44.1016 35.757C43.8578 35.607 43.5578 35.5883 43.3141 35.7195Z",fill:"url(#paint1_radial_2937_2810)"}),t("path",{d:"M19.8169 45.2641C18.1482 44.2328 16.7044 42.8641 15.5607 41.2703C10.6294 34.5203 12.1107 25.0516 18.8607 20.1203C19.5732 19.6141 20.3044 19.1453 21.0919 18.7703C21.6732 18.4891 22.6669 18.0016 23.9982 18.0203C25.8919 18.0391 27.6732 18.9391 28.8169 20.4578C29.5669 21.4703 29.9982 22.6891 30.0169 23.9641C30.0169 23.9266 34.6107 9.03906 15.0169 9.03906C6.78565 9.03906 0.0169045 16.8578 0.0169045 23.7016C-0.0205955 27.3203 0.766904 30.9203 2.28565 34.2016C7.46065 45.2266 20.0607 50.6266 31.6107 46.7828C27.6544 48.0203 23.3419 47.4766 19.8169 45.2641Z",fill:"url(#paint2_linear_2937_2810)"}),t("path",{opacity:.41,d:"M19.8169 45.2641C18.1482 44.2328 16.7044 42.8641 15.5607 41.2703C10.6294 34.5203 12.1107 25.0516 18.8607 20.1203C19.5732 19.6141 20.3044 19.1453 21.0919 18.7703C21.6732 18.4891 22.6669 18.0016 23.9982 18.0203C25.8919 18.0391 27.6732 18.9391 28.8169 20.4578C29.5669 21.4703 29.9982 22.6891 30.0169 23.9641C30.0169 23.9266 34.6107 9.03906 15.0169 9.03906C6.78565 9.03906 0.0169045 16.8578 0.0169045 23.7016C-0.0205955 27.3203 0.766904 30.9203 2.28565 34.2016C7.46065 45.2266 20.0607 50.6266 31.6107 46.7828C27.6544 48.0203 23.3419 47.4766 19.8169 45.2641Z",fill:"url(#paint3_radial_2937_2810)"}),t("path",{d:"M28.5563 27.9187C28.4062 28.1062 27.9375 28.3875 27.9375 28.9875C27.9375 29.475 28.2562 29.9438 28.8187 30.3375C31.5187 32.2125 36.6 31.9688 36.6188 31.9688C38.625 31.9688 40.575 31.425 42.3 30.4125C45.825 28.35 48 24.5813 48 20.4938C48.0563 16.2938 46.5 13.5 45.8812 12.2625C41.9062 4.48125 33.3187 0 24 0C10.875 0 0.1875 10.5375 0 23.6625C0.09375 16.8187 6.9 11.2875 15 11.2875C15.6562 11.2875 19.4062 11.3438 22.875 13.1813C25.9312 14.7938 27.5438 16.725 28.65 18.6562C29.8125 20.6625 30.0188 23.175 30.0188 24.1875C30.0188 25.1812 29.5125 26.6812 28.5563 27.9187Z",fill:"url(#paint4_radial_2937_2810)"}),t("path",{d:"M28.5563 27.9187C28.4062 28.1062 27.9375 28.3875 27.9375 28.9875C27.9375 29.475 28.2562 29.9438 28.8187 30.3375C31.5187 32.2125 36.6 31.9688 36.6188 31.9688C38.625 31.9688 40.575 31.425 42.3 30.4125C45.825 28.35 48 24.5813 48 20.4938C48.0563 16.2938 46.5 13.5 45.8812 12.2625C41.9062 4.48125 33.3187 0 24 0C10.875 0 0.1875 10.5375 0 23.6625C0.09375 16.8187 6.9 11.2875 15 11.2875C15.6562 11.2875 19.4062 11.3438 22.875 13.1813C25.9312 14.7938 27.5438 16.725 28.65 18.6562C29.8125 20.6625 30.0188 23.175 30.0188 24.1875C30.0188 25.1812 29.5125 26.6812 28.5563 27.9187Z",fill:"url(#paint5_radial_2937_2810)"})]}),e("defs",{children:[e("linearGradient",{id:"paint0_linear_2937_2810",x1:11.0086,y1:33.192,x2:44.4366,y2:33.192,gradientUnits:"userSpaceOnUse",children:[t("stop",{stopColor:"#0C59A4"}),t("stop",{offset:1,stopColor:"#114A8B"})]}),e("radialGradient",{id:"paint1_radial_2937_2810",cx:0,cy:0,r:1,gradientUnits:"userSpaceOnUse",gradientTransform:"translate(29.475 33.4576) scale(17.882 16.986)",children:[t("stop",{offset:.72,stopOpacity:0}),t("stop",{offset:.95,stopOpacity:.53}),t("stop",{offset:1})]}),e("linearGradient",{id:"paint2_linear_2937_2810",x1:28.6427,y1:18.7039,x2:7.76028,y2:41.4499,gradientUnits:"userSpaceOnUse",children:[t("stop",{stopColor:"#1B9DE2"}),t("stop",{offset:.16,stopColor:"#1595DF"}),t("stop",{offset:.67,stopColor:"#0680D7"}),t("stop",{offset:1,stopColor:"#0078D4"})]}),e("radialGradient",{id:"paint3_radial_2937_2810",cx:0,cy:0,r:1,gradientUnits:"userSpaceOnUse",gradientTransform:"translate(13.2373 37.3159) rotate(-81.3826) scale(26.8871 21.7263)",children:[t("stop",{offset:.76,stopOpacity:0}),t("stop",{offset:.95,stopOpacity:.5}),t("stop",{offset:1})]}),e("radialGradient",{id:"paint4_radial_2937_2810",cx:0,cy:0,r:1,gradientUnits:"userSpaceOnUse",gradientTransform:"translate(4.84718 8.88615) rotate(92.2911) scale(37.9784 80.8984)",children:[t("stop",{stopColor:"#35C1F1"}),t("stop",{offset:.11,stopColor:"#34C1ED"}),t("stop",{offset:.23,stopColor:"#2FC2DF"}),t("stop",{offset:.31,stopColor:"#2BC3D2"}),t("stop",{offset:.67,stopColor:"#36C752"})]}),e("radialGradient",{id:"paint5_radial_2937_2810",cx:0,cy:0,r:1,gradientUnits:"userSpaceOnUse",gradientTransform:"translate(45.0113 14.5136) rotate(73.7366) scale(18.2477 14.8419)",children:[t("stop",{stopColor:"#66EB6E"}),t("stop",{offset:1,stopColor:"#66EB6E",stopOpacity:0})]}),t("clipPath",{id:"clip0_2937_2810",children:t("rect",{width:48,height:48,fill:"white"})})]})]}))},Ha=function(n){var i=n.isOpen,o=void 0!==i&&i,s=n.onClose,r=void 0===s?function(){}:s,a=n.className,l=void 0===a?"":a,c=n.zIndexLevel;return e(Fa,{zIndexLevel:void 0===c?100:c,isOpen:o,onClose:r,className:"onpe-modal-browser-incompatible-container ".concat(l),closeButton:!0,children:[t("div",{className:"onpe-modal-browser-incompatible-icon-container",children:t(ja,{className:"onpe-modal-browser-incompatible-icon",role:"presentation"})}),t("p",{className:"onpe-modal-browser-incompatible-title",children:"Navegador no recomendado"}),t("p",{className:"onpe-modal-browser-incompatible-message",children:"Para una mejor experiencia y mayor seguridad, debes ingresar con los siguientes navegadores:"}),e("div",{className:"onpe-modal-browser-incompatible-browsers-container",children:[t(Za,{role:"img","aria-label":"Google Chrome",className:"onpe-modal-browser-incompatible-browser-icon"}),t(_a,{role:"img","aria-label":"Safari",className:"onpe-modal-browser-incompatible-browser-icon"}),t(Ua,{role:"img","aria-label":"Microsoft Edge",className:"onpe-modal-browser-incompatible-browser-icon"})]})]})},Wa=function(e){return t("svg",w({width:64,height:64,viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"mt-10 lg:mt-16"},e,{children:t("path",{d:"M28.2673 44.2663L47.0673 25.4663L43.334 21.733L28.2673 36.7997L20.6673 29.1997L16.934 32.933L28.2673 44.2663ZM32.0007 58.6663C28.3118 58.6663 24.8451 57.9659 21.6007 56.565C18.3562 55.1641 15.534 53.2646 13.134 50.8663C10.734 48.4663 8.83443 45.6441 7.43532 42.3997C6.03621 39.1552 5.33576 35.6886 5.33398 31.9997C5.33398 28.3108 6.03443 24.8441 7.43532 21.5997C8.83621 18.3552 10.7358 15.533 13.134 13.133C15.534 10.733 18.3562 8.83345 21.6007 7.43434C24.8451 6.03523 28.3118 5.33479 32.0007 5.33301C35.6895 5.33301 39.1562 6.03345 42.4007 7.43434C45.6451 8.83523 48.4673 10.7348 50.8673 13.133C53.2673 15.533 55.1678 18.3552 56.5686 21.5997C57.9695 24.8441 58.6691 28.3108 58.6673 31.9997C58.6673 35.6886 57.9669 39.1552 56.566 42.3997C55.1651 45.6441 53.2655 48.4663 50.8673 50.8663C48.4673 53.2663 45.6451 55.1668 42.4007 56.5677C39.1562 57.9686 35.6895 58.6681 32.0007 58.6663ZM32.0007 53.333C37.9562 53.333 43.0006 51.2663 47.134 47.133C51.2673 42.9997 53.334 37.9552 53.334 31.9997C53.334 26.0441 51.2673 20.9997 47.134 16.8663C43.0006 12.733 37.9562 10.6663 32.0007 10.6663C26.0451 10.6663 21.0007 12.733 16.8673 16.8663C12.734 20.9997 10.6673 26.0441 10.6673 31.9997C10.6673 37.9552 12.734 42.9997 16.8673 47.133C21.0007 51.2663 26.0451 53.333 32.0007 53.333Z",fill:"currentColor"})}))},$a=function(n){var i=n.isOpen,o=void 0!==i&&i,s=n.onClose,r=void 0===s?function(){}:s,a=n.withoutAutoClose,l=void 0!==a&&a,c=n.title,h=n.message,u=n.icon,d=void 0===u?"warning":u,p=n.color,m=void 0===p?"blue":p,f=n.onConfirm,g=void 0===f?function(){}:f,v=n.onCancel,y=void 0===v?function(){}:v,C=n.textButtonConfirm,x=void 0===C?"Confirmar":C,w=n.textButtonCancel,L=void 0===w?"Cancelar":w,P=n.twoButtons,S=void 0===P||P,A=n.className,E=void 0===A?"":A,V=n.zIndexLevel,D=void 0===V?100:V;return e(Fa,{isOpen:o,onClose:r,className:"onpe-modal-confirm-container ".concat(E),closeButton:!1,closeDisabled:!0,zIndexLevel:D,"aria-labelledby":"modal-confirm-title","aria-describedby":"modal-confirm-message",children:[e("div",{className:"onpe-modal-confirm-icon-container onpe-modal-confirm-icon-".concat(m),children:["warning"===d&&t(ja,{role:"presentation",className:"onpe-modal-confirm-icon onpe-modal-confirm-icon-".concat(m)}),"success"===d&&t(Wa,{role:"presentation",className:"onpe-modal-confirm-icon onpe-modal-confirm-icon-".concat(m)})]}),!h&&t("div",{className:"onpe-modal-confirm-message"}),t("p",{className:" ".concat(h?"onpe-modal-confirm-title":"onpe-modal-confirm-title-short"," onpe-modal-confirm-title-").concat(m),children:c}),h&&t("div",{className:"onpe-modal-confirm-message",children:h}),e("div",{className:"onpe-modal-confirm-buttons-container",children:[S&&t(M,{className:"onpe-modal-confirm-button",color:"skyblue",title:L,onClick:function(){y(),l||r()}}),t(M,{className:"onpe-modal-confirm-button",color:"red",title:x,onClick:function(){return b(void 0,void 0,void 0,function(){return T(this,function(t){try{g(),l||r()}catch(t){l||r()}return[2]})})}})]})]})},za=function(e){return t("svg",w({width:102,height:102,viewBox:"0 0 102 102",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e,{children:t("path",{d:"M50.9999 3.08313C23.9241 3.08208 3.08296 24.6456 3.08325 51C3.08354 75.4375 22.453 98.9167 50.9999 98.9167C77.5573 98.9167 98.9166 77.3542 98.9166 51",stroke:"currentColor",strokeWidth:6,strokeLinecap:"round"})}))},Ya=function(e){return t("svg",w({width:33,height:33,viewBox:"0 0 33 33",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e,{children:t("path",{d:"M16.5 3C8.87169 2.9997 2.99992 9.07499 3 16.5C3.00008 23.385 8.45721 30 16.5 30C23.9822 30 30 23.925 30 16.5",stroke:"currentColor",strokeWidth:6,strokeLinecap:"round"})}))},Xa=function(n){var i=n.isOpen,o=void 0!==i&&i,s=n.onClose,r=void 0===s?function(){}:s,a=n.message,l=void 0===a?"Cargando...":a,c=n.className,h=void 0===c?"":c,u=n.zIndexLevel;return e(Fa,{disableFocus:!0,zIndexLevel:void 0===u?100:u,isOpen:o,onClose:r,className:h,closeDisabled:!0,whitoutBackground:!0,children:[t(za,{className:"onpe-modal-loading-spinner-desktop"}),t(Ya,{className:"onpe-modal-loading-spinner-mobile"}),t("p",{className:"onpe-modal-loading-message",children:l})]})},Ga=function(e){return t("svg",w({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e,{children:t("path",{d:"M21.7629 3.14219C21.8365 3.20154 21.8958 3.27659 21.9365 3.36184C21.9773 3.44709 21.9985 3.54039 21.9985 3.63489V11.8676H11.866V5.02304L21.2322 3.01427C21.3247 2.99429 21.4205 2.9953 21.5126 3.01722C21.6046 3.03914 21.6906 3.08141 21.7642 3.14093M10.5994 5.29409L3.50029 6.81523C3.35863 6.84566 3.23169 6.92374 3.14065 7.03646C3.0496 7.14917 2.99996 7.28969 3 7.43458V11.8676H10.5994V5.29409ZM3 13.1341V18.8337C3.00002 18.9863 3.05513 19.1337 3.1552 19.2489C3.25526 19.3641 3.39355 19.4393 3.54462 19.4606L10.5994 20.4688V13.1341H3ZM11.866 20.6499L21.2766 21.9938C21.3663 22.0065 21.4577 21.9997 21.5447 21.974C21.6316 21.9484 21.712 21.9043 21.7804 21.8449C21.8489 21.7854 21.9038 21.712 21.9414 21.6295C21.979 21.547 21.9985 21.4575 21.9985 21.3668V13.1341H11.866V20.6499Z",fill:"currentColor"})}))},Ka=function(e){return t("svg",w({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e,{children:t("path",{d:"M14.9751 3.01952L15.9351 1.28752C15.9474 1.26532 15.9552 1.24093 15.958 1.21573C15.9609 1.19052 15.9588 1.16501 15.9517 1.14063C15.9447 1.11625 15.933 1.0935 15.9172 1.07366C15.9014 1.05382 15.8818 1.0373 15.8596 1.02502C15.8374 1.01274 15.813 1.00495 15.7878 1.0021C15.7626 0.999249 15.7371 1.00139 15.7127 1.0084C15.6884 1.01541 15.6656 1.02716 15.6458 1.04296C15.6259 1.05877 15.6094 1.07832 15.5971 1.10052L14.6271 2.85052C13.7991 2.48747 12.9048 2.30002 12.0006 2.30002C11.0965 2.30002 10.2022 2.48747 9.37412 2.85052L8.40413 1.10052C8.37933 1.05543 8.33763 1.02204 8.28822 1.00769C8.2388 0.993347 8.18571 0.999219 8.14062 1.02402C8.09554 1.04881 8.06215 1.09051 8.0478 1.13992C8.03346 1.18934 8.03933 1.24243 8.06413 1.28752L9.02413 3.01952C8.11071 3.47001 7.33899 4.16332 6.79357 5.02342C6.24816 5.88353 5.95011 6.87722 5.93213 7.89552H18.0691C18.051 6.87701 17.7526 5.88318 17.2068 5.02305C16.661 4.16292 15.8889 3.46973 14.9751 3.01952ZM9.20012 5.67452C9.09981 5.67452 9.00174 5.64476 8.91835 5.589C8.83495 5.53325 8.76997 5.45401 8.73162 5.36131C8.69328 5.2686 8.6833 5.16661 8.70294 5.06824C8.72258 4.96986 8.77097 4.87952 8.84198 4.80866C8.91298 4.73779 9.00341 4.68959 9.10183 4.67014C9.20024 4.65069 9.30221 4.66087 9.39484 4.6994C9.48746 4.73792 9.56658 4.80306 9.62217 4.88657C9.67776 4.97008 9.70732 5.0682 9.70712 5.16852C9.70686 5.30281 9.65333 5.43151 9.55828 5.52637C9.46322 5.62124 9.33442 5.67452 9.20012 5.67452ZM14.8021 5.67452C14.7018 5.67452 14.6037 5.64476 14.5203 5.589C14.437 5.53325 14.372 5.45401 14.3336 5.36131C14.2953 5.2686 14.2853 5.16661 14.3049 5.06824C14.3246 4.96986 14.373 4.87952 14.444 4.80866C14.515 4.73779 14.6054 4.68959 14.7038 4.67014C14.8022 4.65069 14.9042 4.66087 14.9968 4.6994C15.0895 4.73792 15.1686 4.80306 15.2242 4.88657C15.2798 4.97008 15.3093 5.0682 15.3091 5.16852C15.3089 5.30281 15.2553 5.43151 15.1603 5.52637C15.0652 5.62124 14.9364 5.67452 14.8021 5.67452ZM5.93012 17.1715C5.92986 17.3646 5.96771 17.5558 6.0415 17.7342C6.1153 17.9126 6.22358 18.0747 6.36015 18.2112C6.49672 18.3477 6.65888 18.4558 6.83734 18.5295C7.01581 18.6032 7.20706 18.6409 7.40013 18.6405H8.37313V21.6405C8.37313 22.0013 8.51646 22.3474 8.77161 22.6025C9.02675 22.8577 9.3728 23.001 9.73362 23.001C10.0945 23.001 10.4405 22.8577 10.6956 22.6025C10.9508 22.3474 11.0941 22.0013 11.0941 21.6405V18.6405H12.9081V21.6405C12.9081 22.0012 13.0514 22.3471 13.3065 22.6022C13.5615 22.8572 13.9074 23.0005 14.2681 23.0005C14.6288 23.0005 14.9747 22.8572 15.2298 22.6022C15.4848 22.3471 15.6281 22.0012 15.6281 21.6405V18.6405H16.6021C16.7949 18.6406 16.9859 18.6028 17.1641 18.529C17.3422 18.4553 17.5041 18.3472 17.6405 18.2108C17.7768 18.0745 17.8849 17.9126 17.9586 17.7345C18.0324 17.5563 18.0703 17.3653 18.0701 17.1725V8.37552H5.93012V17.1715ZM4.06313 8.14152C3.70242 8.14205 3.35665 8.28564 3.10169 8.54079C2.84673 8.79594 2.70339 9.14181 2.70312 9.50252V15.1715C2.70312 15.3501 2.7383 15.527 2.80665 15.692C2.875 15.857 2.97517 16.0069 3.10146 16.1332C3.22775 16.2595 3.37767 16.3596 3.54268 16.428C3.70768 16.4963 3.88453 16.5315 4.06313 16.5315C4.24172 16.5315 4.41857 16.4963 4.58357 16.428C4.74858 16.3596 4.8985 16.2595 5.02479 16.1332C5.15108 16.0069 5.25125 15.857 5.3196 15.692C5.38795 15.527 5.42312 15.3501 5.42312 15.1715V9.50252C5.4226 9.14198 5.27914 8.79637 5.02421 8.54144C4.76927 8.2865 4.42366 8.14305 4.06313 8.14252M19.9351 8.14252C19.5744 8.14305 19.2287 8.28664 18.9737 8.54179C18.7187 8.79694 18.5754 9.14281 18.5751 9.50352V15.1725C18.5751 15.3511 18.6103 15.528 18.6786 15.693C18.747 15.858 18.8472 16.0079 18.9735 16.1342C19.0997 16.2605 19.2497 16.3606 19.4147 16.429C19.5797 16.4973 19.7565 16.5325 19.9351 16.5325C20.1137 16.5325 20.2906 16.4973 20.4556 16.429C20.6206 16.3606 20.7705 16.2605 20.8968 16.1342C21.0231 16.0079 21.1233 15.858 21.1916 15.693C21.2599 15.528 21.2951 15.3511 21.2951 15.1725V9.50252C21.2946 9.14198 21.1511 8.79637 20.8962 8.54144C20.6413 8.2865 20.2957 8.14305 19.9351 8.14252Z",fill:"currentColor"})}))},qa=function(e){return t("svg",w({stroke:"currentColor",fill:"currentColor",width:24,height:24,strokeWidth:0,viewBox:"0 0 384 512",xmlns:"http://www.w3.org/2000/svg"},e,{children:t("path",{d:"M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"})}))},Ja=function(n){var i=n.isOpen,o=void 0!==i&&i,s=n.onClose,r=void 0===s?function(){}:s,a=n.className,l=void 0===a?"":a,c=n.zIndexLevel;return e(Fa,{zIndexLevel:void 0===c?1e3:c,isOpen:o,onClose:r,className:"onpe-modal-system-incompatible-container ".concat(l),closeButton:!0,closeDisabled:!0,children:[t("div",{className:"onpe-modal-system-incompatible-icon-container",children:t(ja,{className:"onpe-modal-system-incompatible-icon",role:"presentation"})}),t("p",{className:"onpe-modal-system-incompatible-title",children:"Sistema Operativo no recomendado"}),t("p",{className:"onpe-modal-system-incompatible-message",children:"Para descargar e instalar el ONPEID utiliza un dispositivo con sistema operativo Windows, macOS, Android o iOS."}),e("div",{className:"onpe-modal-system-incompatible-systems-container",children:[t(Ga,{role:"img","aria-label":"WindowS 10 o superior",className:"onpe-modal-system-incompatible-system-icon"}),t(Ka,{role:"img","aria-label":"Android 7.0 o superior",className:"onpe-modal-system-incompatible-system-icon"}),t(qa,{role:"img","aria-label":"macOS 10.12 o superior / iOS 11.0 o superior",className:"onpe-modal-system-incompatible-system-icon"})]})]})},Qa=function(e){return t("svg",w({width:"1em",height:"1em",viewBox:"0 0 49 42",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e,{children:t("path",{d:"M0 42L24.5 0L49 42H0ZM7.68409 37.5789H41.3159L24.5 8.84211L7.68409 37.5789ZM24.5 35.3684C25.1311 35.3684 25.6604 35.1562 26.088 34.7318C26.5157 34.3074 26.7288 33.7827 26.7273 33.1579C26.7273 32.5316 26.5135 32.0062 26.0858 31.5818C25.6582 31.1574 25.1296 30.9459 24.5 30.9474C23.8689 30.9474 23.3396 31.1596 22.912 31.584C22.4843 32.0084 22.2712 32.5331 22.2727 33.1579C22.2727 33.7842 22.4865 34.3096 22.9142 34.734C23.3418 35.1584 23.8704 35.3699 24.5 35.3684ZM22.2727 28.7368H26.7273V17.6842H22.2727V28.7368Z",fill:"currentColor"})}))},tl=function(n){var i,s=n.isOpenBrowserError,r=void 0!==s&&s,a=n.isOpenDeviceError,l=void 0!==a&&a,c=n.bottom,h=void 0===c?40:c,u=n.right,d=void 0===u?20:u,p=o(!1),m=p[0],f=p[1];return t("div",{className:"onpe-not-recommended-wrapper",style:{bottom:"string"==typeof h?h:"".concat(h,"px"),right:"string"==typeof d?d:"".concat(d,"px")},children:e("div",{className:(i="onpe-not-recommended-container","".concat(i,m?" onpe-not-recommended-closed":" onpe-not-recommended-open")),style:{width:m?"60px":l?"360px":"305px"},children:[m?t("button",{onClick:function(){f(!1)},className:"onpe-not-recommended-icon-button","aria-label":"Abrir advertencia",type:"button",children:t(Qa,{className:"onpe-not-recommended-icon"})}):t("div",{className:"onpe-not-recommended-icon-container",children:t(Qa,{className:"onpe-not-recommended-icon"})}),t("div",{className:function(){var t="onpe-not-recommended-message";return"".concat(t,m?" onpe-not-recommended-message-closed":" onpe-not-recommended-message-open")}(),style:{width:m?"0":l?"330px":"275px"},children:e("div",{className:"onpe-not-recommended-message-content",children:[t("p",{className:"onpe-not-recommended-message-title",children:"Estas usando"}),l&&t("p",{className:"onpe-not-recommended-message-text",children:"Sistema operativo no recomendado"}),r&&!l&&t("p",{className:"onpe-not-recommended-message-text",children:"Navegador no recomendado"})]})}),!m&&t("button",{onClick:function(){f(!0)},className:"onpe-not-recommended-close-button","aria-label":"Cerrar advertencia",type:"button",children:t(E,{className:"onpe-not-recommended-close-icon"})})]})})},el=function(n){return e("svg",w({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:[e("g",{clipPath:"url(#clip2_4460_12124)",children:[t("path",{d:"M4.00488 3.44051C6.20217 1.58479 9.04983 0.560425 12.0001 0.564465C14.1846 0.563653 16.3279 1.12509 18.1987 2.18821C20.0696 3.25133 21.597 4.77577 22.6161 6.59708H12.0001C10.8956 6.5969 9.81579 6.90448 8.89627 7.48114C7.97674 8.0578 7.25859 8.87781 6.83208 9.8381L4.00488 3.44051Z",fill:"currentColor"}),t("path",{d:"M2.79194 4.62109C1.53583 6.03815 0.666731 7.72344 0.260475 9.5299C-0.145781 11.3364 -0.0768467 13.2091 0.461263 14.9846C0.999374 16.7602 1.99031 18.3847 3.34759 19.7163C4.70487 21.0478 6.38726 22.0461 8.24794 22.6239L12.7471 17.1071C11.3631 17.2831 9.95915 16.9654 8.81071 16.2163C7.66226 15.4671 6.85212 14.3407 6.53914 13.0577C6.50797 13.0141 6.48169 12.9676 6.46074 12.919L2.79194 4.62109Z",fill:"currentColor"}),t("path",{d:"M9.94385 23.0208C12.0087 23.3602 14.1319 23.1838 16.102 22.5093C18.0721 21.8347 19.8204 20.6856 21.1728 19.1761C22.5252 17.6667 23.4346 15.8497 23.8105 13.906C24.1864 11.9624 24.0155 9.95977 23.315 8.09766C23.2769 8.10277 23.2384 8.10529 23.1998 8.1052H15.9198C16.4526 8.59622 16.8757 9.18278 17.1642 9.83031C17.4527 10.4778 17.6009 11.1733 17.5998 11.8756C17.6033 13.2244 17.0569 14.5229 16.0734 15.5027L9.94385 23.0208Z",fill:"currentColor"}),t("path",{d:"M8 11.8759C8 10.8759 8.42143 9.91687 9.17157 9.20979C9.92172 8.5027 10.9391 8.10547 12 8.10547C13.0609 8.10547 14.0783 8.5027 14.8284 9.20979C15.5786 9.91687 16 10.8759 16 11.8759C16 12.8758 15.5786 13.8348 14.8284 14.5419C14.0783 15.249 13.0609 15.6462 12 15.6462C10.9391 15.6462 9.92172 15.249 9.17157 14.5419C8.42143 13.8348 8 12.8758 8 11.8759Z",fill:"currentColor"})]}),t("defs",{children:t("clipPath",{id:"clip2_4460_12124",children:t("rect",{width:24,height:22.6223,fill:"white",transform:"translate(0 0.564453)"})})})]}))},nl=function(n){return e("svg",w({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:[e("g",{clipPath:"url(#clip0_7500_5262)",children:[t("path",{d:"M7.93359 16.068L10.9832 10.9832L16.068 7.93359L13.0184 13.0184L7.93359 16.068Z",fill:"currentColor"}),t("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 12C0 8.8174 1.26428 5.76516 3.51472 3.51472C5.76516 1.26428 8.8174 0 12 0C15.1826 0 18.2348 1.26428 20.4853 3.51472C22.7357 5.76516 24 8.8174 24 12C24 15.1826 22.7357 18.2348 20.4853 20.4853C18.2348 22.7357 15.1826 24 12 24C8.8174 24 5.76516 22.7357 3.51472 20.4853C1.26428 18.2348 0 15.1826 0 12ZM19.0864 6.0112C19.1782 5.85821 19.2162 5.67893 19.1944 5.50185C19.1726 5.32477 19.0923 5.16006 18.9661 5.0339C18.8399 4.90774 18.6752 4.82737 18.4982 4.80557C18.3211 4.78378 18.1418 4.8218 17.9888 4.9136L9.8176 9.8176L4.912 17.9888C4.8202 18.1418 4.78218 18.3211 4.80397 18.4982C4.82577 18.6752 4.90614 18.8399 5.0323 18.9661C5.15845 19.0923 5.32317 19.1726 5.50025 19.1944C5.67733 19.2162 5.85661 19.1782 6.0096 19.0864L14.1808 14.1824L19.0864 6.0112Z",fill:"currentColor"})]}),t("defs",{children:t("clipPath",{id:"clip0_7500_5262",children:t("rect",{width:24,height:24,fill:"white"})})})]}))},il=function(n){return e("svg",w({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:[t("g",{clipPath:"url(#clip0_8211_8231)",children:t("path",{d:"M9.86748 11.7697C9.90253 13.051 10.5964 14.591 12.2319 15.9545C13.6546 17.1391 16.1157 18.0916 18.1066 18.0916C18.7863 18.0923 19.4637 18.0112 20.124 17.8498C20.3714 17.7895 20.6314 17.8089 20.8671 17.905C21.1027 18.0012 21.302 18.1693 21.4366 18.3854C21.5711 18.6015 21.6339 18.8546 21.6162 19.1085C21.5984 19.3624 21.5009 19.6043 21.3377 19.7996C19.4012 22.1173 16.6672 23.6261 13.674 24.029C13.5491 24.0479 13.4218 24.0422 13.2992 24.0121C10.7136 23.3739 7.83188 20.132 7.83188 16.8828C7.83188 14.0132 8.84726 12.4769 9.86748 11.7697ZM9.01407 7.25984C10.0434 7.42348 10.9791 7.95314 11.6492 8.75146C11.0422 8.77677 10.442 8.88996 9.86748 9.08749C7.44144 9.89737 5.4143 12.5168 5.4143 16.8828C5.4143 19.9495 6.86364 22.0394 8.76385 23.6797C3.94442 22.315 0.34827 18.0384 0.00255686 12.8685C-0.0167921 12.5867 0.0742415 12.3084 0.256402 12.0925L0.461897 11.8556L0.853544 11.4228L1.17629 11.0832L1.3564 10.897L1.75772 10.4945L2.21464 10.0485L2.46607 9.81034C4.77485 7.63093 7.18034 6.94798 9.01407 7.25984ZM12.0626 -0.0398865C17.8165 -0.0398865 22.6299 3.97926 23.8507 9.36309C24.2859 11.279 23.7141 12.7779 22.8511 13.821C22.1768 14.6235 21.3065 15.2381 20.3247 15.6052C19.1582 16.0173 17.8467 16.0004 16.8047 15.8179C15.8739 15.6547 14.7135 15.3404 14.1418 14.5221C13.9795 14.2901 13.9038 14.0085 13.9278 13.7264C13.9519 13.4443 14.0743 13.1796 14.2735 12.9785C14.8598 12.3862 15.1305 11.7758 15.1704 11.2294C15.182 11.0104 15.1637 10.7908 15.116 10.5767C14.4125 7.40973 12.2319 5.35362 9.41902 4.87616C6.08276 4.30925 2.91695 6.03295 0.576731 8.27037C2.16266 3.44498 6.70529 -0.0398865 12.0626 -0.0398865Z",fill:"currentColor"})}),t("defs",{children:t("clipPath",{id:"clip0_8211_8231",children:t("rect",{width:24,height:24,fill:"white"})})})]}))},ol=function(){return e("div",{className:"onpe-browser-recommended",children:[t("p",{children:"Navegadores recomendados:"}),e("ul",{className:"onpe-browser-list",children:[e("li",{className:"onpe-browser-item",children:[t(el,{"aria-hidden":"true"}),t("span",{className:"sr-only",children:"Google Chrome"}),t("p",{className:"onpe-browser-name","aria-hidden":"true",children:"Google Chrome"})]}),e("li",{className:"onpe-browser-item",children:[t(nl,{"aria-hidden":"true"}),t("span",{className:"sr-only",children:"Safari"}),t("p",{className:"onpe-browser-name","aria-hidden":"true",children:"Safari"})]}),e("li",{className:"onpe-browser-item",children:[t(il,{"aria-hidden":"true"}),t("span",{className:"sr-only",children:"Microsoft Edge"}),t("p",{className:"onpe-browser-name","aria-hidden":"true",children:"Microsoft Edge"})]})]})]})},sl=function(n){return e("svg",w({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{children:[t("path",{fill:"currentColor",d:"M24 12c0 6.625-5.375 12-12 12S0 18.625 0 12 5.375 0 12 0s12 5.375 12 12Z"}),t("path",{fill:"#fff",d:"m15.551 11.07-.2 1.606a.54.54 0 0 1-.53.471h-2.598v6.71a9.395 9.395 0 0 1-2.669-.145v-6.57H7.555a.335.335 0 0 1-.332-.333v-2.011c0-.181.15-.332.332-.332h2V7.452a3.339 3.339 0 0 1 3.333-3.346h2.33c.182 0 .333.151.333.333v2.01c0 .182-.15.333-.332.333h-1.667c-.737 0-1.335.598-1.335 1.34v2.344h2.803c.326 0 .573.284.531.604Z"})]}))},rl=function(n){return e("svg",w({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{children:[t("path",{fill:"currentColor",d:"M24 12c0 6.625-5.375 12-12 12S0 18.625 0 12C.006 5.375 5.375 0 12.006 0 18.631 0 24 5.375 24 12Z"}),t("path",{fill:"#fff",d:"M13.733 10.895 18.59 5.7h-1.842l-3.81 4.077L10.018 5.7H4.976l5.103 7.127-5.103 5.459h1.842l4.059-4.342 3.11 4.342h5.043l-5.297-7.392Zm-6.16-3.853h1.758l7.102 9.916h-1.758L7.573 7.042Z"})]}))},al=function(n){return e("svg",w({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{children:[t("path",{fill:"currentColor",d:"M24 12c0 6.625-5.375 12-12 12S0 18.625 0 12 5.375 0 12 0c6.631.006 12 5.375 12 12Z"}),t("path",{fill:"#fff",d:"M14.38 15.092V9.149s.67 1.117 3.091 1.184a.23.23 0 0 0 .236-.23V8.424a.232.232 0 0 0-.224-.23c-1.878-.108-2.772-1.545-2.862-2.868a.237.237 0 0 0-.236-.217h-1.914a.23.23 0 0 0-.23.23v9.45c0 1.027-.785 1.921-1.811 1.97a1.903 1.903 0 0 1-1.981-2.138 1.91 1.91 0 0 1 1.612-1.643c.17-.024.332-.024.49-.006a.23.23 0 0 0 .26-.23v-1.684c0-.121-.091-.224-.212-.23a3.763 3.763 0 0 0-.737.018 4.054 4.054 0 0 0-3.545 3.557 4.042 4.042 0 1 0 8.056.465"})]}))},ll=function(n){return e("svg",w({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{children:[t("path",{fill:"currentColor",d:"M24 12c0 6.625-5.375 12-12 12S0 18.625 0 12C.006 5.375 5.375 0 12.006 0 18.631 0 24 5.375 24 12Z"}),t("path",{fill:"#fff",d:"M17.176 6.915H6.83c-1.02 0-1.848.827-1.848 1.848v6.468c0 1.02.828 1.848 1.848 1.848h10.34c1.02 0 1.848-.827 1.848-1.848V8.763a1.84 1.84 0 0 0-1.842-1.848Zm-3.51 5.532-2.874 1.437a.499.499 0 0 1-.724-.447v-2.874c0-.369.392-.61.724-.447l2.875 1.437a.503.503 0 0 1 0 .894Z"})]}))},cl=function(n){return e("svg",w({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{children:[t("path",{fill:"currentColor",d:"M24 12c0 6.625-5.375 12-12 12S0 18.625 0 12C.006 5.375 5.375 0 12.006 0 18.631 0 24 5.375 24 12Z"}),t("path",{fill:"#fff",d:"M15.261 5.707h-6.51a3.036 3.036 0 0 0-3.038 3.038v6.51a3.036 3.036 0 0 0 3.038 3.038h6.51a3.036 3.036 0 0 0 3.038-3.038v-6.51a3.04 3.04 0 0 0-3.038-3.038Zm1.95 9.33a2.17 2.17 0 0 1-2.167 2.169H8.968A2.17 2.17 0 0 1 6.8 15.038V8.962a2.17 2.17 0 0 1 2.168-2.168h6.076a2.17 2.17 0 0 1 2.168 2.168v6.076Z"}),t("path",{fill:"#fff",d:"M12.012 8.745A3.253 3.253 0 0 0 8.757 12c0 1.8 1.455 3.255 3.255 3.255 1.8 0 3.255-1.455 3.255-3.255 0-1.8-1.461-3.255-3.255-3.255Zm0 5.423A2.17 2.17 0 0 1 9.844 12a2.17 2.17 0 0 1 2.168-2.168A2.17 2.17 0 0 1 14.18 12a2.17 2.17 0 0 1-2.168 2.168ZM15.485 9.18a.652.652 0 1 0 0-1.304.652.652 0 0 0 0 1.304Z"})]}))},hl=function(e){return t("svg",w({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},e,{children:t("path",{fill:"currentColor",d:"M16.668 4.296a8.592 8.592 0 0 0-6.134-2.546c-4.777 0-8.671 3.894-8.671 8.671 0 1.532.402 3.019 1.155 4.332L1.793 19.25l4.594-1.207a8.673 8.673 0 0 0 4.147 1.058c4.778 0 8.671-3.893 8.671-8.671a8.617 8.617 0 0 0-2.537-6.134Zm-6.134 13.335a7.229 7.229 0 0 1-3.675-1.006l-.262-.157-2.73.717.726-2.66-.175-.271a7.227 7.227 0 0 1-1.103-3.833c0-3.972 3.238-7.21 7.21-7.21 1.925 0 3.737.753 5.093 2.118a7.159 7.159 0 0 1 2.109 5.101c.017 3.973-3.22 7.201-7.193 7.201Zm3.955-5.39c-.219-.105-1.286-.63-1.479-.708-.2-.07-.34-.105-.49.104-.148.22-.56.71-.682.85-.122.148-.254.165-.472.052-.22-.105-.92-.341-1.742-1.076-.647-.578-1.076-1.287-1.207-1.505-.123-.22-.018-.333.096-.447.096-.096.219-.253.324-.376.105-.122.148-.219.218-.359.07-.148.035-.27-.017-.376a72.045 72.045 0 0 1-.665-1.61c-.175-.42-.359-.367-.49-.376h-.42a.786.786 0 0 0-.578.271c-.192.219-.752.744-.752 1.811 0 1.068.779 2.1.884 2.24.105.149 1.531 2.336 3.701 3.273.516.227.919.358 1.234.455.516.166.989.14 1.365.087.42-.061 1.286-.525 1.461-1.032.184-.508.184-.937.122-1.033-.06-.096-.192-.14-.41-.245Z"})}))},ul=function(i){var o=i.showBrowserInfo,s=void 0===o||o,r=i.showContactInfo,a=void 0===r||r,l=i.children,c=i.showFooterContent,h=void 0===c||c,u=i.isDevelopment,d=void 0===u||u,p=L(i,["showBrowserInfo","showContactInfo","children","showFooterContent","isDevelopment"]);return e("footer",w({},p,{tabIndex:0,"aria-label":"Información para contactarnos",children:[h&&e(n,{children:[l&&l,s&&t(ol,{}),a&&t("div",{className:"onpe-footer-contact",children:e("div",{className:"onpe-footer-contact-list",children:[e("div",{tabIndex:0,className:"onpe-footer-contact-item",children:[e("p",{className:"onpe-footer-contact-title",children:[t("span",{className:"sr-only",children:"Oficina central"}),t("span",{"aria-hidden":"true",children:"Oficina central"})]}),e("p",{className:"onpe-footer-contact-text",children:[t("span",{className:"sr-only",children:"Dirección: Jiron Washington 1894 - Cercado de Lima"}),t("span",{"aria-hidden":"true",children:"Jr. Washington 1894 - Cercado de Lima"})]}),e("p",{className:"onpe-footer-contact-text",children:[t("span",{className:"sr-only",children:"Horario de atención: Lunes a viernes de 8:30 a.m. a 5:00 p. m."}),t("span",{"aria-hidden":"true",children:"Lunes a viernes de 8:30 a.m. a 5:00 p. m."})]})]}),e("div",{tabIndex:0,className:"onpe-footer-contact-item",children:[e("p",{className:"onpe-footer-contact-title",children:[t("span",{className:"sr-only",children:"Contáctanos"}),t("span",{"aria-hidden":"true",children:"Contáctanos:"})]}),e("p",{className:"onpe-footer-contact-text",children:[t("span",{className:"sr-only",children:"Correo electrónico, informes@onpe punto goob punto pe,"}),t("span",{"aria-hidden":"true",children:"informes@onpe.gob.pe"})]}),e("p",{className:"onpe-footer-contact-text",children:[t("span",{className:"sr-only",children:"Número telefónico, (01)4170630,"}),t("span",{"aria-hidden":"true",children:"(01)4170630"})]}),t("p",{className:"onpe-footer-contact-text",children:e("a",{href:"https://wa.me/+51995404991",className:"flex",target:"_blank","aria-label":"Whatsapp: +51 novecientos noventa y cinco cuatrocientos\r\n cuatro novecientos noventa y uno",children:[t(hl,{"aria-hidden":"true"}),t("span",{"aria-hidden":"true",children:" Whatsapp: +51 995 404 991"})]})})]}),e("div",{tabIndex:0,className:"onpe-footer-contact-item",children:[e("p",{className:"onpe-footer-contact-title",children:[t("span",{className:"sr-only",children:"Síguenos en nuestras redes sociales"}),t("span",{"aria-hidden":"true",children:"Síguenos:"})]}),e("p",{className:"onpe-footer-contact-text flex gap-4",children:[t("a",{href:"https://www.facebook.com/ONPEoficial",target:"_blank",rel:"noopener noreferrer","aria-label":"Facebook de ONPE,",className:"onpe-footer-contact-item-color",children:t("span",{"aria-hidden":"true",children:t(sl,{})})}),t("a",{href:"https://x.com/ONPE_oficial",target:"_blank",rel:"noopener noreferrer","aria-label":"X de ONPE (antes Twitter),",className:"onpe-footer-contact-item-color",children:t("span",{"aria-hidden":"true",children:t(rl,{})})}),t("a",{href:"https://www.tiktok.com/@onpe_oficial",target:"_blank",rel:"noopener noreferrer","aria-label":"TikTok de ONPE,",className:"onpe-footer-contact-item-color",children:t("span",{"aria-hidden":"true",children:t(al,{})})}),t("a",{href:"https://www.instagram.com/ONPE_oficial/",target:"_blank",rel:"noopener noreferrer","aria-label":"Instagram de ONPE,",className:"onpe-footer-contact-item-color",children:t("span",{"aria-hidden":"true",children:t(cl,{})})}),t("a",{href:"https://www.youtube.com/@onpeprensa",target:"_blank",rel:"noopener noreferrer","aria-label":"YouTube de ONPE,",className:"onpe-footer-contact-item-color",children:t("span",{"aria-hidden":"true",children:t(ll,{})})})]})]})]})})]}),d&&t("div",{className:"onpe-footer-development",children:e("p",{className:"onpe-footer-development-text",children:["Versión de prueba"," "]})})]}))},dl=function(n){var i=n.isOpen,o=void 0!==i&&i,s=n.onClose,r=void 0===s?function(){}:s,a=n.className,l=void 0===a?"":a,c=n.iconDnie1,h=n.iconDnie2,u=n.iconDnie3,d=n.zIndexLevel;return e(Fa,{zIndexLevel:void 0===d?100:d,isOpen:o,onClose:r,className:"onpe-modal-dnie-versions-container ".concat(l),closeButton:!0,children:[e("h2",{className:"onpe-modal-dnie-versions-title",tabIndex:0,children:[t("span",{className:"sr-only",children:"Versiones del DNI electrónico"}),t("span",{"aria-hidden":"true",children:"Versiones del DNIe"})]}),e("section",{className:"onpe-modal-dnie-versions-content",children:[e("article",{className:"onpe-modal-dnie-versions-article",children:[e("div",{className:"onpe-modal-dnie-versions-text",children:[t("p",{className:"onpe-modal-dnie-versions-subtitle",tabIndex:0,children:e("span",{className:"onpe-modal-dnie-versions-bold",children:[t("span",{className:"sr-only",children:"DNI electrónico versión 1"}),t("span",{"aria-hidden":"true",children:"DNIe versión 1"})]})}),e("ul",{role:"none",className:"onpe-modal-dnie-versions-list",children:[t("li",{role:"none",children:e("p",{tabIndex:0,children:[t("span",{className:"sr-only",children:"Chip en la parte delantera del DNI electrónico."}),t("span",{"aria-hidden":"true",children:"Chip en la parte delantera del DNIe."})]})}),t("li",{role:"none",children:e("p",{tabIndex:0,children:[t("span",{className:"sr-only",children:"Compatible solo con el lector del DNI electrónico en PC, Mac o laptop."}),t("span",{"aria-hidden":"true",children:"Compatible solo con el lector del DNIe en PC, Mac o laptop."})]})})]})]}),t("div",{className:"onpe-modal-dnie-versions-image-container",children:c})]}),e("article",{className:"onpe-modal-dnie-versions-article",children:[e("div",{className:"onpe-modal-dnie-versions-text",children:[t("p",{className:"onpe-modal-dnie-versions-subtitle",tabIndex:0,children:e("span",{className:"onpe-modal-dnie-versions-bold",children:[t("span",{className:"sr-only",children:"DNI electrónico versión 2 y 3"}),t("span",{"aria-hidden":"true",children:"DNIe versión 2 y 3"})]})}),e("ul",{role:"none",className:"onpe-modal-dnie-versions-list",children:[t("li",{role:"none",children:e("p",{tabIndex:0,children:[t("span",{className:"sr-only",children:"Chip en la parte posterior del DNI electrónico."}),t("span",{"aria-hidden":"true",children:"Chip en la parte posterior del DNIe."})]})}),t("li",{role:"none",children:e("p",{tabIndex:0,children:[t("span",{className:"sr-only",children:"Compatibles con el lector del DNI electrónico en PC, Mac o laptop y tecnología NFC (ISO 14443-B) en móviles."}),t("span",{"aria-hidden":"true",children:"Compatibles con el lector del DNIe en PC, Mac o laptop y tecnología NFC (ISO 14443-B) en móviles."})]})})]})]}),e("div",{className:"onpe-modal-dnie-versions-image-container onpe-modal-dnie-versions-image-container-double",children:[h,u]})]})]})]})},pl=function(n){var i=n.isOpen,o=void 0!==i&&i,s=n.onClose,r=void 0===s?function(){}:s,a=n.className,l=void 0===a?"":a,c=n.iconNfc1,h=n.iconNfc2,u=n.zIndexLevel;return e(Fa,{zIndexLevel:void 0===u?100:u,isOpen:o,onClose:r,className:"onpe-modal-nfc-container ".concat(l),closeButton:!0,children:[t("h2",{className:"onpe-modal-nfc-title",tabIndex:0,children:"¿Cómo saber si tu dispositivo móvil tiene NFC?"}),e("section",{className:"onpe-modal-nfc-content",children:[e("div",{className:"onpe-modal-nfc-section",children:[e("p",{className:"onpe-modal-nfc-step",tabIndex:0,children:[t("span",{className:"onpe-modal-nfc-step-number",children:"1. "}),"Celular Android"]}),e("ul",{role:"presentation",className:"onpe-modal-nfc-list",children:[t("li",{role:"presentation",className:"onpe-modal-nfc-list-item",children:"Desde la barra de notificaciones, simplemente deslizando hacia abajo desde tu pantalla y buscando el ícono del NFC."}),e("li",{role:"presentation",className:"onpe-modal-nfc-list-item",children:["Otra forma es ir hacia Ajustes",t("span",{"aria-hidden":"true",children:" > "}),"Conexiones o Redes Inalámbricas",t("span",{"aria-hidden":"true",children:" > "}),'Buscar "NFC".']})]})]}),c,e("div",{className:"onpe-modal-nfc-section",children:[e("p",{className:"onpe-modal-nfc-step",tabIndex:0,children:[t("span",{className:"onpe-modal-nfc-step-number",children:"2. "}),"Celular iPhone"]}),t("ul",{role:"presentation",className:"onpe-modal-nfc-list",children:t("li",{role:"presentation",className:"onpe-modal-nfc-list-item",children:"Todos los modelos iPhone 7 en adelante ya cuentan con tecnología NFC activa."})})]}),t("h2",{className:"onpe-modal-nfc-subtitle",tabIndex:0,children:"¿Cómo usar el NFC correctamente?"}),t("div",{className:"onpe-modal-nfc-instructions",children:e("ol",{role:"presentation",className:"onpe-modal-nfc-ordered-list",children:[t("li",{role:"presentation",children:"Activa el NFC en tu celular."}),t("li",{role:"presentation",children:"Busca en internet dónde está el lector NFC según tu modelo."}),t("li",{role:"presentation",children:"Coloca tu DNIe sobre esa zona hasta que recibas una confirmación del sistema."})]})}),h]})]})};export{ol as BrowserRecommended,M as Button,ul as Footer,Fa as Modal,Ha as ModalBrowserIncompatible,$a as ModalConfirm,dl as ModalDnieVersions,Xa as ModalLoading,pl as ModalNfc,Ja as ModalSystemIncompatible,tl as NotRecommended,A as Overlay,P as Portal,S as Show};
|
|
2
2
|
//# sourceMappingURL=components.esm.js.map
|