vendor: 4,855 bytes, line 1
1var RV=Object.create;var vp=Object.defineProperty;var AV=Object.getOwnPropertyDescriptor;var NV=Object.getOwnPropertyNames;var yV=Object.getPrototypeOf,bV=Object.prototype.hasOwnProperty;var LV=(e,t,n)=>t in e?vp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var CV=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,n)=>(typeof require<"u"?require:t)[n]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')});var Qt=(e,t)=>()=>(e&&(t=e(e=0)),t);var ar=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),PV=(e,t)=>{for(var n in t)vp(e,n,{get:t[n],enumerable:!0})},DV=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of NV(t))!bV.call(e,o)&&o!==n&&vp(e,o,{get:()=>t[o],enumerable:!(r=AV(t,o))||r.enumerable});return e};var v=(e,t,n)=>(n=e!=null?RV(yV(e)):{},DV(t||!e||!e.__esModule?vp(n,"default",{value:e,enumerable:!0}):n,e));var Po=(e,t,n)=>(LV(e,typeof t!="symbol"?t+"":t,n),n);var ry=ar(ge=>{"use strict";var Ed=Symbol.for("react.element"),vV=Symbol.for("react.portal"),xV=Symbol.for("react.fragment"),MV=Symbol.for("react.strict_mode"),kV=Symbol.for("react.profiler"),GV=Symbol.for("react.provider"),FV=Symbol.for("react.context"),wV=Symbol.for("react.forward_ref"),BV=Symbol.for("react.suspense"),UV=Symbol.for("react.memo"),VV=Symbol.for("react.lazy"),zN=Symbol.iterator;function HV(e){return e===null||typeof e!="object"?null:(e=zN&&e[zN]||e["@@iterator"],typeof e=="function"?e:null)}var $N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ZN=Object.assign,JN={};function Wl(e,t,n){this.props=e,this.context=t,this.refs=JN,this.updater=n||$N}Wl.prototype.isReactComponent={};Wl.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Wl.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function qN(){}qN.prototype=Wl.prototype;function cO(e,t,n){this.props=e,this.context=t,this.refs=JN,this.updater=n||$N}var dO=cO.prototype=new qN;dO.constructor=cO;ZN(dO,Wl.prototype);dO.isPureReactComponent=!0;var XN=Array.isArray,QN=Object.prototype.hasOwnProperty,fO={current:null},ey={key:!0,ref:!0,__self:!0,__source:!0};function ty(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)QN.call(t,r)&&!ey.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];o.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)o[r]===void 0&&(o[r]=a[r]);return{$$typeof:Ed,type:e,key:i,ref:s,props:o,_owner:fO.current}}function WV(e,t){return{$$typeof:Ed,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function pO(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ed}function YV(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var jN=/\/+/g;function uO(e,t){return typeof e=="object"&&e!==null&&e.key!=null?YV(""+e.key):t.toString(36)}function Mp(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case Ed:case vV:s=!0}}if(s)return s=e,o=o(s),e=r===""?"."+uO(s,0):r,XN(o)?(n="",e!=null&&(n=e.replace(jN,"$&/")+"/"),Mp(o,t,n,"",function(u){return u})):o!=null&&(pO(o)&&(o=WV(o,n+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(jN,"$&/")+"/")+e)),t.push(o)),1;if(s=0,r=r===""?".":r+":",XN(e))for(var a=0;a<e.length;a++){i=e[a];var l=r+uO(i,a);s+=Mp(i,t,n,l,o)}else if(l=HV(e),typeof l=="function")for(e=l.call(e),a=0;!(i=e.next()).done;)i=i.value,l=r+uO(i,a++),s+=Mp(i,t,n,l,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function xp(e,t,n){if(e==null)return e;var r=[],o=0;return Mp(e,r,"","",function(i){return t.call(n,i,o++)}),r}function KV(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Cn={current:null},kp={transition:null},zV={ReactCurrentDispatcher:Cn,ReactCurrentBatchConfig:kp,ReactCurrentOwner:fO};function ny(){throw Error("act(...) is not supported in production builds of React.")}
vendor: 9,824 bytes, line 1
1ge.Children={map:xp,forEach:function(e,t,n){xp(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return xp(e,function(){t++}),t},toArray:function(e){return xp(e,function(t){return t})||[]},only:function(e){if(!pO(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ge.Component=Wl;ge.Fragment=xV;ge.Profiler=kV;ge.PureComponent=cO;ge.StrictMode=MV;ge.Suspense=BV;ge.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=zV;ge.act=ny;ge.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=ZN({},e.props),o=e.key,i=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,s=fO.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)QN.call(t,l)&&!ey.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:Ed,type:e.type,key:o,ref:i,props:r,_owner:s}};ge.createContext=function(e){return e={$$typeof:FV,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:GV,_context:e},e.Consumer=e};ge.createElement=ty;ge.createFactory=function(e){var t=ty.bind(null,e);return t.type=e,t};ge.createRef=function(){return{current:null}};ge.forwardRef=function(e){return{$$typeof:wV,render:e}};ge.isValidElement=pO;ge.lazy=function(e){return{$$typeof:VV,_payload:{_status:-1,_result:e},_init:KV}};ge.memo=function(e,t){return{$$typeof:UV,type:e,compare:t===void 0?null:t}};ge.startTransition=function(e){var t=kp.transition;kp.transition={};try{e()}finally{kp.transition=t}};ge.unstable_act=ny;ge.useCallback=function(e,t){return Cn.current.useCallback(e,t)};ge.useContext=function(e){return Cn.current.useContext(e)};ge.useDebugValue=function(){};ge.useDeferredValue=function(e){return Cn.current.useDeferredValue(e)};ge.useEffect=function(e,t){return Cn.current.useEffect(e,t)};ge.useId=function(){return Cn.current.useId()};ge.useImperativeHandle=function(e,t,n){return Cn.current.useImperativeHandle(e,t,n)};ge.useInsertionEffect=function(e,t){return Cn.current.useInsertionEffect(e,t)};ge.useLayoutEffect=function(e,t){return Cn.current.useLayoutEffect(e,t)};ge.useMemo=function(e,t){return Cn.current.useMemo(e,t)};ge.useReducer=function(e,t,n){return Cn.current.useReducer(e,t,n)};ge.useRef=function(e){return Cn.current.useRef(e)};ge.useState=function(e){return Cn.current.useState(e)};ge.useSyncExternalStore=function(e,t,n){return Cn.current.useSyncExternalStore(e,t,n)};ge.useTransition=function(){return Cn.current.useTransition()};ge.version="18.3.1"});var W=ar((Z9,oy)=>{"use strict";oy.exports=ry()});var my=ar(je=>{"use strict";function TO(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(0<Gp(o,t))e[r]=t,e[n]=o,n=r;else break e}}function ro(e){return e.length===0?null:e[0]}function wp(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,i=o>>>1;r<i;){var s=2*(r+1)-1,a=e[s],l=s+1,u=e[l];if(0>Gp(a,n))l<o&&0>Gp(u,a)?(e[r]=u,e[l]=n,r=l):(e[r]=a,e[s]=n,r=s);else if(l<o&&0>Gp(u,n))e[r]=u,e[l]=n,r=l;else break e}}return t}function Gp(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(iy=performance,je.unstable_now=function(){return iy.now()}):(mO=Date,sy=mO.now(),je.unstable_now=function(){return mO.now()-sy});var iy,mO,sy,Do=[],ji=[],XV=1,xr=null,mn=3,Bp=!1,da=!1,Td=!1,uy=typeof setTimeout=="function"?setTimeout:null,cy=typeof clearTimeout=="function"?clearTimeout:null,ay=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function hO(e){for(var t=ro(ji);t!==null;){if(t.callback===null)wp(ji);else if(t.startTime<=e)wp(ji),t.sortIndex=t.expirationTime,TO(Do,t);else break;t=ro(ji)}}function OO(e){if(Td=!1,hO(e),!da)if(ro(Do)!==null)da=!0,IO(gO);else{var t=ro(ji);t!==null&&SO(OO,t.startTime-e)}}function gO(e,t){da=!1,Td&&(Td=!1,cy(hd),hd=-1),Bp=!0;var n=mn;try{for(hO(t),xr=ro(Do);xr!==null&&(!(xr.expirationTime>t)||e&&!py());){var r=xr.callback;if(typeof r=="function"){xr.callback=null,mn=xr.priorityLevel;var o=r(xr.expirationTime<=t);t=je.unstable_now(),typeof o=="function"?xr.callback=o:xr===ro(Do)&&wp(Do),hO(t)}else wp(Do);xr=ro(Do)}if(xr!==null)var i=!0;else{var s=ro(ji);s!==null&&SO(OO,s.startTime-t),i=!1}return i}finally{xr=null,mn=n,Bp=!1}}var Up=!1,Fp=null,hd=-1,dy=5,fy=-1;function py(){return!(je.unstable_now()-fy<dy)}function EO(){if(Fp!==null){var e=je.unstable_now();fy=e;var t=!0;try{t=Fp(!0,e)}finally{t?_d():(Up=!1,Fp=null)}}else Up=!1}var _d;typeof ay=="function"?_d=function(){ay(EO)}:typeof MessageChannel<"u"?(_O=new MessageChannel,ly=_O.port2,_O.port1.onmessage=EO,_d=function(){ly.postMessage(null)}):_d=function(){uy(EO,0)};var _O,ly;function IO(e){Fp=e,Up||(Up=!0,_d())}function SO(e,t){hd=uy(function(){e(je.unstable_now())},t)}je.unstable_IdlePriority=5;je.unstable_ImmediatePriority=1;je.unstable_LowPriority=4;je.unstable_NormalPriority=3;je.unstable_Profiling=null;je.unstable_UserBlockingPriority=2;je.unstable_cancelCallback=function(e){e.callback=null};je.unstable_continueExecution=function(){da||Bp||(da=!0,IO(gO))};je.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):dy=0<e?Math.floor(1e3/e):5};je.unstable_getCurrentPriorityLevel=function(){return mn};je.unstable_getFirstCallbackNode=function(){return ro(Do)};je.unstable_next=function(e){switch(mn){case 1:case 2:case 3:var t=3;break;default:t=mn}var n=mn;mn=t;try{return e()}finally{mn=n}};je.unstable_pauseExecution=function(){};je.unstable_requestPaint=function(){};je.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=mn;mn=e;try{return t()}finally{mn=n}};je.unstable_scheduleCallback=function(e,t,n){var r=je.unstable_now();switch(typeof n=="object"&&n!==null?(n=n.delay,n=typeof n=="number"&&0<n?r+n:r):n=r,e){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5e3}return o=n+o,e={id:XV++,callback:t,priorityLevel:e,startTime:n,expirationTime:o,sortIndex:-1},n>r?(e.sortIndex=n,TO(ji,e),ro(Do)===null&&e===ro(ji)&&(Td?(cy(hd),hd=-1):Td=!0,SO(OO,n-r))):(e.sortIndex=o,TO(Do,e),da||Bp||(da=!0,IO(gO))),e};je.unstable_shouldYield=py;je.unstable_wrapCallback=function(e){var t=mn;return function(){var n=mn;mn=t;try{return e.apply(this,arguments)}finally{mn=n}}}});var _y=ar((q9,Ey)=>{"use strict";Ey.exports=my()});var gC=ar(pr=>{"use strict";var jV=W(),dr=_y();function U(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Rb=new Set,Ud={};function Aa(e,t){cu(e,t),cu(e+"Capture",t)}function cu(e,t){for(Ud[e]=t,e=0;e<t.length;e++)Rb.add(t[e])}var li=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),KO=Object.prototype.hasOwnProperty,$V=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Ty={},hy={};function ZV(e){return KO.call(hy,e)?!0:KO.call(Ty,e)?!1:$V.test(e)?hy[e]=!0:(Ty[e]=!0,!1)}function JV(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function qV(e,t,n,r){if(t===null||typeof t>"u"||JV(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function vn(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var nn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){nn[e]=new vn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];nn[t]=new vn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){nn[e]=new vn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){nn[e]=new vn(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){nn[e]=new vn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){nn[e]=new vn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){nn[e]=new vn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){nn[e]=new vn(e,6,!1,e,null,!1,!1)});
vendor: 6,889 bytes, lines 1-5
1["rowSpan","start"].forEach(function(e){nn[e]=new vn(e,5,!1,e.toLowerCase(),null,!1,!1)});var Fg=/[\-:]([a-z])/g;function wg(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Fg,wg);nn[t]=new vn(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Fg,wg);nn[t]=new vn(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Fg,wg);nn[t]=new vn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){nn[e]=new vn(e,1,!1,e.toLowerCase(),null,!1,!1)});nn.xlinkHref=new vn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){nn[e]=new vn(e,1,!1,e.toLowerCase(),null,!0,!0)});function Bg(e,t,n,r){var o=nn.hasOwnProperty(t)?nn[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(qV(t,n,o,r)&&(n=null),r||o===null?ZV(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var fi=jV.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Vp=Symbol.for("react.element"),zl=Symbol.for("react.portal"),Xl=Symbol.for("react.fragment"),Ug=Symbol.for("react.strict_mode"),zO=Symbol.for("react.profiler"),Ab=Symbol.for("react.provider"),Nb=Symbol.for("react.context"),Vg=Symbol.for("react.forward_ref"),XO=Symbol.for("react.suspense"),jO=Symbol.for("react.suspense_list"),Hg=Symbol.for("react.memo"),Zi=Symbol.for("react.lazy");Symbol.for("react.scope");Symbol.for("react.debug_trace_mode");var yb=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden");Symbol.for("react.cache");Symbol.for("react.tracing_marker");var Oy=Symbol.iterator;function Od(e){return e===null||typeof e!="object"?null:(e=Oy&&e[Oy]||e["@@iterator"],typeof e=="function"?e:null)}var Et=Object.assign,RO;function bd(e){if(RO===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);RO=t&&t[1]||""}return` 2`+RO+e}var AO=!1;function NO(e,t){if(!e||AO)return"";AO=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(` 3`),i=r.stack.split(` 4`),s=o.length-1,a=i.length-1;1<=s&&0<=a&&o[s]!==i[a];)a--;for(;1<=s&&0<=a;s--,a--)if(o[s]!==i[a]){if(s!==1||a!==1)do if(s--,a--,0>a||o[s]!==i[a]){var l=` 5`+o[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{AO=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?bd(e):""}function QV(e){switch(e.tag){case 5:return bd(e.type);case 16:return bd("Lazy");case 13:return bd("Suspense");case 19:return bd("SuspenseList");case 0:case 2:case 15:return e=NO(e.type,!1),e;case 11:return e=NO(e.type.render,!1),e;case 1:return e=NO(e.type,!0),e;default:return""}}function $O(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Xl:return"Fragment";case zl:return"Portal";case zO:return"Profiler";case Ug:return"StrictMode";case XO:return"Suspense";case jO:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Nb:return(e.displayName||"Context")+".Consumer";case Ab:return(e._context.displayName||"Context")+".Provider";case Vg:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Hg:return t=e.displayName||null,t!==null?t:$O(e.type)||"Memo";case Zi:t=e._payload,e=e._init;try{return $O(e(t))}catch{}}return null}function eH(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return $O(t);case 8:return t===Ug?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function cs(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function bb(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function tH(e){var t=bb(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Hp(e){e._valueTracker||(e._valueTracker=tH(e))}
vendor: 4,391 bytes, line 5
5function Lb(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=bb(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function _m(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ZO(e,t){var n=t.checked;return Et({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function gy(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=cs(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Cb(e,t){t=t.checked,t!=null&&Bg(e,"checked",t,!1)}function JO(e,t){Cb(e,t);var n=cs(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?qO(e,t.type,n):t.hasOwnProperty("defaultValue")&&qO(e,t.type,cs(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Iy(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function qO(e,t,n){(t!=="number"||_m(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ld=Array.isArray;function ou(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+cs(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function QO(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(U(91));return Et({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Sy(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(U(92));if(Ld(n)){if(1<n.length)throw Error(U(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:cs(n)}}function Pb(e,t){var n=cs(t.value),r=cs(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Ry(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Db(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function eg(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Db(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Wp,vb=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Wp=Wp||document.createElement("div"),Wp.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Wp.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Vd(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Dd={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},nH=["Webkit","ms","Moz","O"];
vendor: 4,125 bytes, line 5
5Object.keys(Dd).forEach(function(e){nH.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Dd[t]=Dd[e]})});function xb(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Dd.hasOwnProperty(e)&&Dd[e]?(""+t).trim():t+"px"}function Mb(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=xb(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var rH=Et({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function tg(e,t){if(t){if(rH[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(U(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(U(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(U(61))}if(t.style!=null&&typeof t.style!="object")throw Error(U(62))}}function ng(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var rg=null;function Wg(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var og=null,iu=null,su=null;function Ay(e){if(e=sf(e)){if(typeof og!="function")throw Error(U(280));var t=e.stateNode;t&&(t=Ym(t),og(e.stateNode,e.type,t))}}function kb(e){iu?su?su.push(e):su=[e]:iu=e}function Gb(){if(iu){var e=iu,t=su;if(su=iu=null,Ay(e),t)for(e=0;e<t.length;e++)Ay(t[e])}}function Fb(e,t){return e(t)}function wb(){}var yO=!1;function Bb(e,t,n){if(yO)return e(t,n);yO=!0;try{return Fb(e,t,n)}finally{yO=!1,(iu!==null||su!==null)&&(wb(),Gb())}}function Hd(e,t){var n=e.stateNode;if(n===null)return null;var r=Ym(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(U(231,t,typeof n));return n}var ig=!1;if(li)try{Yl={},Object.defineProperty(Yl,"passive",{get:function(){ig=!0}}),window.addEventListener("test",Yl,Yl),window.removeEventListener("test",Yl,Yl)}catch{ig=!1}var Yl;function oH(e,t,n,r,o,i,s,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var vd=!1,Tm=null,hm=!1,sg=null,iH={onError:function(e){vd=!0,Tm=e}};function sH(e,t,n,r,o,i,s,a,l){vd=!1,Tm=null,oH.apply(iH,arguments)}function aH(e,t,n,r,o,i,s,a,l){if(sH.apply(this,arguments),vd){if(vd){var u=Tm;vd=!1,Tm=null}else throw Error(U(198));hm||(hm=!0,sg=u)}}function Na(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Ub(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Ny(e){if(Na(e)!==e)throw Error(U(188))}function lH(e){var t=e.alternate;if(!t){if(t=Na(e),t===null)throw Error(U(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return Ny(o),e;if(i===r)return Ny(o),t;i=i.sibling}throw Error(U(188))}if(n.return!==r.return)n=o,r=i;else{for(var s=!1,a=o.child;a;){if(a===n){s=!0,n=o,r=i;break}if(a===r){s=!0,r=o,n=i;break}a=a.sibling}if(!s){for(a=i.child;a;){if(a===n){s=!0,n=i,r=o;break}if(a===r){s=!0,r=i,n=o;break}a=a.sibling}if(!s)throw Error(U(189))}}if(n.alternate!==r)throw Error(U(190))}if(n.tag!==3)throw Error(U(188));return n.stateNode.current===n?e:t}function Vb(e){return e=lH(e),e!==null?Hb(e):null}function Hb(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Hb(e);
vendor: 6,570 bytes, line 5
5if(t!==null)return t;e=e.sibling}return null}var Wb=dr.unstable_scheduleCallback,yy=dr.unstable_cancelCallback,uH=dr.unstable_shouldYield,cH=dr.unstable_requestPaint,Rt=dr.unstable_now,dH=dr.unstable_getCurrentPriorityLevel,Yg=dr.unstable_ImmediatePriority,Yb=dr.unstable_UserBlockingPriority,Om=dr.unstable_NormalPriority,fH=dr.unstable_LowPriority,Kb=dr.unstable_IdlePriority,Um=null,ko=null;function pH(e){if(ko&&typeof ko.onCommitFiberRoot=="function")try{ko.onCommitFiberRoot(Um,e,void 0,(e.current.flags&128)===128)}catch{}}var lo=Math.clz32?Math.clz32:_H,mH=Math.log,EH=Math.LN2;function _H(e){return e>>>=0,e===0?32:31-(mH(e)/EH|0)|0}var Yp=64,Kp=4194304;function Cd(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function gm(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=Cd(a):(i&=s,i!==0&&(r=Cd(i)))}else s=n&~o,s!==0?r=Cd(s):i!==0&&(r=Cd(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-lo(t),o=1<<n,r|=e[n],t&=~o;return r}function TH(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function hH(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var s=31-lo(i),a=1<<s,l=o[s];l===-1?(!(a&n)||a&r)&&(o[s]=TH(a,t)):l<=t&&(e.expiredLanes|=a),i&=~a}}function ag(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function zb(){var e=Yp;return Yp<<=1,!(Yp&4194240)&&(Yp=64),e}function bO(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function rf(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-lo(t),e[t]=n}function OH(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-lo(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function Kg(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-lo(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var Be=0;function Xb(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var jb,zg,$b,Zb,Jb,lg=!1,zp=[],ns=null,rs=null,os=null,Wd=new Map,Yd=new Map,qi=[],gH="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function by(e,t){switch(e){case"focusin":case"focusout":ns=null;break;case"dragenter":case"dragleave":rs=null;break;case"mouseover":case"mouseout":os=null;break;case"pointerover":case"pointerout":Wd.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Yd.delete(t.pointerId)}}function gd(e,t,n,r,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},t!==null&&(t=sf(t),t!==null&&zg(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function IH(e,t,n,r,o){switch(t){case"focusin":return ns=gd(ns,e,t,n,r,o),!0;case"dragenter":return rs=gd(rs,e,t,n,r,o),!0;case"mouseover":return os=gd(os,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Wd.set(i,gd(Wd.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Yd.set(i,gd(Yd.get(i)||null,e,t,n,r,o)),!0}return!1}function qb(e){var t=ma(e.target);if(t!==null){var n=Na(t);if(n!==null){if(t=n.tag,t===13){if(t=Ub(n),t!==null){e.blockedOn=t,Jb(e.priority,function(){$b(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function sm(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=ug(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);rg=r,n.target.dispatchEvent(r),rg=null}else return t=sf(n),t!==null&&zg(t),e.blockedOn=n,!1;t.shift()}return!0}function Ly(e,t,n){sm(e)&&n.delete(t)}function SH(){lg=!1,ns!==null&&sm(ns)&&(ns=null),rs!==null&&sm(rs)&&(rs=null),os!==null&&sm(os)&&(os=null),Wd.forEach(Ly),Yd.forEach(Ly)}function Id(e,t){e.blockedOn===t&&(e.blockedOn=null,lg||(lg=!0,dr.unstable_scheduleCallback(dr.unstable_NormalPriority,SH)))}function Kd(e){function t(o){return Id(o,e)}if(0<zp.length){Id(zp[0],e);for(var n=1;n<zp.length;n++){var r=zp[n];r.blockedOn===e&&(r.blockedOn=null)}}for(ns!==null&&Id(ns,e),rs!==null&&Id(rs,e),os!==null&&Id(os,e),Wd.forEach(t),Yd.forEach(t),n=0;n<qi.length;n++)r=qi[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<qi.length&&(n=qi[0],n.blockedOn===null);)qb(n),n.blockedOn===null&&qi.shift()}var au=fi.ReactCurrentBatchConfig,Im=!0;function RH(e,t,n,r){var o=Be,i=au.transition;au.transition=null;try{Be=1,Xg(e,t,n,r)}finally{Be=o,au.transition=i}}function AH(e,t,n,r){var o=Be,i=au.transition;au.transition=null;try{Be=4,Xg(e,t,n,r)}finally{Be=o,au.transition=i}}function Xg(e,t,n,r){if(Im){var o=ug(e,t,n,r);if(o===null)MO(e,t,r,Sm,n),by(e,r);else if(IH(o,e,t,n,r))r.stopPropagation();else if(by(e,r),t&4&&-1<gH.indexOf(e)){for(;o!==null;){var i=sf(o);if(i!==null&&jb(i),i=ug(e,t,n,r),i===null&&MO(e,t,r,Sm,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else MO(e,t,r,null,n)}}var Sm=null;function ug(e,t,n,r){if(Sm=null,e=Wg(r),e=ma(e),e!==null)if(t=Na(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Ub(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Sm=e,null}
vendor: 4,373 bytes, line 5
5function Qb(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(dH()){case Yg:return 1;case Yb:return 4;case Om:case fH:return 16;case Kb:return 536870912;default:return 16}default:return 16}}var es=null,jg=null,am=null;function eL(){if(am)return am;var e,t=jg,n=t.length,r,o="value"in es?es.value:es.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===o[i-r];r++);return am=o.slice(e,1<r?1-r:void 0)}function lm(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Xp(){return!0}function Cy(){return!1}function fr(e){function t(n,r,o,i,s){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=s,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(i):i[a]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Xp:Cy,this.isPropagationStopped=Cy,this}return Et(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Xp)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Xp)},persist:function(){},isPersistent:Xp}),t}var Tu={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},$g=fr(Tu),of=Et({},Tu,{view:0,detail:0}),NH=fr(of),LO,CO,Sd,Vm=Et({},of,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Zg,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Sd&&(Sd&&e.type==="mousemove"?(LO=e.screenX-Sd.screenX,CO=e.screenY-Sd.screenY):CO=LO=0,Sd=e),LO)},movementY:function(e){return"movementY"in e?e.movementY:CO}}),Py=fr(Vm),yH=Et({},Vm,{dataTransfer:0}),bH=fr(yH),LH=Et({},of,{relatedTarget:0}),PO=fr(LH),CH=Et({},Tu,{animationName:0,elapsedTime:0,pseudoElement:0}),PH=fr(CH),DH=Et({},Tu,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),vH=fr(DH),xH=Et({},Tu,{data:0}),Dy=fr(xH),MH={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},kH={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},GH={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function FH(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=GH[e])?!!t[e]:!1}function Zg(){return FH}var wH=Et({},of,{key:function(e){if(e.key){var t=MH[e.key]||e.key;if(t!=="Unidentified")return t}
vendor: 6,036 bytes, line 5
5return e.type==="keypress"?(e=lm(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?kH[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Zg,charCode:function(e){return e.type==="keypress"?lm(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?lm(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),BH=fr(wH),UH=Et({},Vm,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),vy=fr(UH),VH=Et({},of,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Zg}),HH=fr(VH),WH=Et({},Tu,{propertyName:0,elapsedTime:0,pseudoElement:0}),YH=fr(WH),KH=Et({},Vm,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),zH=fr(KH),XH=[9,13,27,32],Jg=li&&"CompositionEvent"in window,xd=null;li&&"documentMode"in document&&(xd=document.documentMode);var jH=li&&"TextEvent"in window&&!xd,tL=li&&(!Jg||xd&&8<xd&&11>=xd),xy=String.fromCharCode(32),My=!1;function nL(e,t){switch(e){case"keyup":return XH.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function rL(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var jl=!1;function $H(e,t){switch(e){case"compositionend":return rL(t);case"keypress":return t.which!==32?null:(My=!0,xy);case"textInput":return e=t.data,e===xy&&My?null:e;default:return null}}function ZH(e,t){if(jl)return e==="compositionend"||!Jg&&nL(e,t)?(e=eL(),am=jg=es=null,jl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return tL&&t.locale!=="ko"?null:t.data;default:return null}}var JH={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function ky(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!JH[e.type]:t==="textarea"}function oL(e,t,n,r){kb(r),t=Rm(t,"onChange"),0<t.length&&(n=new $g("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Md=null,zd=null;function qH(e){EL(e,0)}function Hm(e){var t=Jl(e);if(Lb(t))return e}function QH(e,t){if(e==="change")return t}var iL=!1;li&&(li?($p="oninput"in document,$p||(DO=document.createElement("div"),DO.setAttribute("oninput","return;"),$p=typeof DO.oninput=="function"),jp=$p):jp=!1,iL=jp&&(!document.documentMode||9<document.documentMode));var jp,$p,DO;function Gy(){Md&&(Md.detachEvent("onpropertychange",sL),zd=Md=null)}function sL(e){if(e.propertyName==="value"&&Hm(zd)){var t=[];oL(t,zd,e,Wg(e)),Bb(qH,t)}}function e2(e,t,n){e==="focusin"?(Gy(),Md=t,zd=n,Md.attachEvent("onpropertychange",sL)):e==="focusout"&&Gy()}function t2(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Hm(zd)}function n2(e,t){if(e==="click")return Hm(t)}function r2(e,t){if(e==="input"||e==="change")return Hm(t)}function o2(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var co=typeof Object.is=="function"?Object.is:o2;function Xd(e,t){if(co(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!KO.call(t,o)||!co(e[o],t[o]))return!1}return!0}function Fy(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function wy(e,t){var n=Fy(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Fy(n)}}function aL(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?aL(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function lL(){for(var e=window,t=_m();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=_m(e.document)}return t}function qg(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function i2(e){var t=lL(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&aL(n.ownerDocument.documentElement,n)){if(r!==null&&qg(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=wy(n,i);var s=wy(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var s2=li&&"documentMode"in document&&11>=document.documentMode,$l=null,cg=null,kd=null,dg=!1;function By(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;dg||$l==null||$l!==_m(r)||(r=$l,"selectionStart"in r&&qg(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focu
vendor: 4,508 bytes, line 5
5sNode:r.focusNode,focusOffset:r.focusOffset}),kd&&Xd(kd,r)||(kd=r,r=Rm(cg,"onSelect"),0<r.length&&(t=new $g("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=$l)))}function Zp(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Zl={animationend:Zp("Animation","AnimationEnd"),animationiteration:Zp("Animation","AnimationIteration"),animationstart:Zp("Animation","AnimationStart"),transitionend:Zp("Transition","TransitionEnd")},vO={},uL={};li&&(uL=document.createElement("div").style,"AnimationEvent"in window||(delete Zl.animationend.animation,delete Zl.animationiteration.animation,delete Zl.animationstart.animation),"TransitionEvent"in window||delete Zl.transitionend.transition);function Wm(e){if(vO[e])return vO[e];if(!Zl[e])return e;var t=Zl[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in uL)return vO[e]=t[n];return e}var cL=Wm("animationend"),dL=Wm("animationiteration"),fL=Wm("animationstart"),pL=Wm("transitionend"),mL=new Map,Uy="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function fs(e,t){mL.set(e,t),Aa(t,[e])}for(Jp=0;Jp<Uy.length;Jp++)qp=Uy[Jp],Vy=qp.toLowerCase(),Hy=qp[0].toUpperCase()+qp.slice(1),fs(Vy,"on"+Hy);var qp,Vy,Hy,Jp;fs(cL,"onAnimationEnd");fs(dL,"onAnimationIteration");fs(fL,"onAnimationStart");fs("dblclick","onDoubleClick");fs("focusin","onFocus");fs("focusout","onBlur");fs(pL,"onTransitionEnd");cu("onMouseEnter",["mouseout","mouseover"]);cu("onMouseLeave",["mouseout","mouseover"]);cu("onPointerEnter",["pointerout","pointerover"]);cu("onPointerLeave",["pointerout","pointerover"]);Aa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Aa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Aa("onBeforeInput",["compositionend","keypress","textInput","paste"]);Aa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Aa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Aa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Pd="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),a2=new Set("cancel close invalid load scroll toggle".split(" ").concat(Pd));function Wy(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,aH(r,t,void 0,e),e.currentTarget=null}function EL(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var s=r.length-1;0<=s;s--){var a=r[s],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==i&&o.isPropagationStopped())break e;Wy(o,a,u),i=l}else for(s=0;s<r.length;s++){if(a=r[s],l=a.instance,u=a.currentTarget,a=a.listener,l!==i&&o.isPropagationStopped())break e;Wy(o,a,u),i=l}}}if(hm)throw e=sg,hm=!1,sg=null,e}function nt(e,t){var n=t[_g];n===void 0&&(n=t[_g]=new Set);var r=e+"__bubble";n.has(r)||(_L(t,e,2,!1),n.add(r))}function xO(e,t,n){var r=0;t&&(r|=4),_L(n,e,r,t)}var Qp="_reactListening"+Math.random().toString(36).slice(2);function jd(e){if(!e[Qp]){e[Qp]=!0,Rb.forEach(function(n){n!=="selectionchange"&&(a2.has(n)||xO(n,!1,e),xO(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Qp]||(t[Qp]=!0,xO("selectionchange",!1,t))}}function _L(e,t,n,r){switch(Qb(t)){case 1:var o=RH;break;case 4:o=AH;break;default:o=Xg}n=o.bind(null,t,n,e),o=void 0,!ig||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function MO(e,t,n,r,o){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var a=r.stateNode.containerInfo;
vendor: 12,744 bytes, lines 5-6
5if(a===o||a.nodeType===8&&a.parentNode===o)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&(l=s.stateNode.containerInfo,l===o||l.nodeType===8&&l.parentNode===o))return;s=s.return}for(;a!==null;){if(s=ma(a),s===null)return;if(l=s.tag,l===5||l===6){r=i=s;continue e}a=a.parentNode}}r=r.return}Bb(function(){var u=i,c=Wg(n),d=[];e:{var f=mL.get(e);if(f!==void 0){var p=$g,_=e;switch(e){case"keypress":if(lm(n)===0)break e;case"keydown":case"keyup":p=BH;break;case"focusin":_="focus",p=PO;break;case"focusout":_="blur",p=PO;break;case"beforeblur":case"afterblur":p=PO;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=Py;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=bH;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=HH;break;case cL:case dL:case fL:p=PH;break;case pL:p=YH;break;case"scroll":p=NH;break;case"wheel":p=zH;break;case"copy":case"cut":case"paste":p=vH;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=vy}var T=(t&4)!==0,h=!T&&e==="scroll",m=T?f!==null?f+"Capture":null:f;T=[];for(var E=u,O;E!==null;){O=E;var g=O.stateNode;if(O.tag===5&&g!==null&&(O=g,m!==null&&(g=Hd(E,m),g!=null&&T.push($d(E,g,O)))),h)break;E=E.return}0<T.length&&(f=new p(f,_,null,n,c),d.push({event:f,listeners:T}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",f&&n!==rg&&(_=n.relatedTarget||n.fromElement)&&(ma(_)||_[ui]))break e;if((p||f)&&(f=c.window===c?c:(f=c.ownerDocument)?f.defaultView||f.parentWindow:window,p?(_=n.relatedTarget||n.toElement,p=u,_=_?ma(_):null,_!==null&&(h=Na(_),_!==h||_.tag!==5&&_.tag!==6)&&(_=null)):(p=null,_=u),p!==_)){if(T=Py,g="onMouseLeave",m="onMouseEnter",E="mouse",(e==="pointerout"||e==="pointerover")&&(T=vy,g="onPointerLeave",m="onPointerEnter",E="pointer"),h=p==null?f:Jl(p),O=_==null?f:Jl(_),f=new T(g,E+"leave",p,n,c),f.target=h,f.relatedTarget=O,g=null,ma(c)===u&&(T=new T(m,E+"enter",_,n,c),T.target=O,T.relatedTarget=h,g=T),h=g,p&&_)t:{for(T=p,m=_,E=0,O=T;O;O=Kl(O))E++;for(O=0,g=m;g;g=Kl(g))O++;for(;0<E-O;)T=Kl(T),E--;for(;0<O-E;)m=Kl(m),O--;for(;E--;){if(T===m||m!==null&&T===m.alternate)break t;T=Kl(T),m=Kl(m)}T=null}else T=null;p!==null&&Yy(d,f,p,T,!1),_!==null&&h!==null&&Yy(d,h,_,T,!0)}}e:{if(f=u?Jl(u):window,p=f.nodeName&&f.nodeName.toLowerCase(),p==="select"||p==="input"&&f.type==="file")var I=QH;else if(ky(f))if(iL)I=r2;else{I=t2;var S=e2}else(p=f.nodeName)&&p.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(I=n2);if(I&&(I=I(e,u))){oL(d,I,n,c);break e}S&&S(e,f,u),e==="focusout"&&(S=f._wrapperState)&&S.controlled&&f.type==="number"&&qO(f,"number",f.value)}switch(S=u?Jl(u):window,e){case"focusin":(ky(S)||S.contentEditable==="true")&&($l=S,cg=u,kd=null);break;case"focusout":kd=cg=$l=null;break;case"mousedown":dg=!0;break;case"contextmenu":case"mouseup":case"dragend":dg=!1,By(d,n,c);break;case"selectionchange":if(s2)break;case"keydown":case"keyup":By(d,n,c)}var A;if(Jg)e:{switch(e){case"compositionstart":var R="onCompositionStart";break e;case"compositionend":R="onCompositionEnd";break e;case"compositionupdate":R="onCompositionUpdate";break e}R=void 0}else jl?nL(e,n)&&(R="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(R="onCompositionStart");R&&(tL&&n.locale!=="ko"&&(jl||R!=="onCompositionStart"?R==="onCompositionEnd"&&jl&&(A=eL()):(es=c,jg="value"in es?es.value:es.textContent,jl=!0)),S=Rm(u,R),0<S.length&&(R=new Dy(R,e,null,n,c),d.push({event:R,listeners:S}),A?R.data=A:(A=rL(n),A!==null&&(R.data=A)))),(A=jH?$H(e,n):ZH(e,n))&&(u=Rm(u,"onBeforeInput"),0<u.length&&(c=new Dy("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:u}),c.data=A))}EL(d,t)})}function $d(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Rm(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=Hd(e,n),i!=null&&r.unshift($d(e,i,o)),i=Hd(e,t),i!=null&&r.push($d(e,i,o))),e=e.return}return r}function Kl(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Yy(e,t,n,r,o){for(var i=t._reactName,s=[];n!==null&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&u!==null&&(a=u,o?(l=Hd(n,i),l!=null&&s.unshift($d(n,l,a))):o||(l=Hd(n,i),l!=null&&s.push($d(n,l,a)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var l2=/\r\n?/g,u2=/\u0000|\uFFFD/g;function Ky(e){return(typeof e=="string"?e:""+e).replace(l2,` 6`).replace(u2,"")}function em(e,t,n){if(t=Ky(t),Ky(e)!==t&&n)throw Error(U(425))}function Am(){}var fg=null,pg=null;function mg(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Eg=typeof setTimeout=="function"?setTimeout:void 0,c2=typeof clearTimeout=="function"?clearTimeout:void 0,zy=typeof Promise=="function"?Promise:void 0,d2=typeof queueMicrotask=="function"?queueMicrotask:typeof zy<"u"?function(e){return zy.resolve(null).then(e).catch(f2)}:Eg;function f2(e){setTimeout(function(){throw e})}function kO(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),Kd(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Kd(t)}function is(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Xy(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var hu=Math.random().toString(36).slice(2),Mo="__reactFiber$"+hu,Zd="__reactProps$"+hu,ui="__reactContainer$"+hu,_g="__reactEvents$"+hu,p2="__reactListeners$"+hu,m2="__reactHandles$"+hu;function ma(e){var t=e[Mo];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ui]||n[Mo]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Xy(e);e!==null;){if(n=e[Mo])return n;e=Xy(e)}return t}e=n,n=e.parentNode}return null}function sf(e){return e=e[Mo]||e[ui],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Jl(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(U(33))}function Ym(e){return e[Zd]||null}var Tg=[],ql=-1;function ps(e){return{current:e}}function rt(e){0>ql||(e.current=Tg[ql],Tg[ql]=null,ql--)}function $e(e,t){ql++,Tg[ql]=e.current,e.current=t}var ds={},hn=ps(ds),Hn=ps(!1),Oa=ds;function du(e,t){var n=e.type.contextTypes;if(!n)return ds;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Wn(e){return e=e.childContextTypes,e!=null}function Nm(){rt(Hn),rt(hn)}function jy(e,t,n){if(hn.current!==ds)throw Error(U(168));$e(hn,t),$e(Hn,n)}function TL(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(U(108,eH(e)||"Unknown",o));return Et({},n,r)}function ym(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ds,Oa=hn.current,$e(hn,e),$e(Hn,Hn.current),!0}function $y(e,t,n){var r=e.stateNode;if(!r)throw Error(U(169));n?(e=TL(e,t,Oa),r.__reactInternalMemoizedMergedChildContext=e,rt(Hn),rt(hn),$e(hn,e)):rt(Hn),$e(Hn,n)}var oi=null,Km=!1,GO=!1;function hL(e){oi===null?oi=[e]:oi.push(e)}function E2(e){Km=!0,hL(e)}function ms(){if(!GO&&oi!==null){GO=!0;var e=0,t=Be;try{var n=oi;for(Be=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}oi=null,Km=!1}catch(o){throw oi!==null&&(oi=oi.slice(e+1)),Wb(Yg,ms),o}finally{Be=t,GO=!1}}return null}var Ql=[],eu=0,bm=null,Lm=0,Mr=[],kr=0,ga=null,ii=1,si="";function fa(e,t){Ql[eu++]=Lm,Ql[eu++]=bm,bm=e,Lm=t}function OL(e,t,n){Mr[kr++]=ii,Mr[kr++]=si,Mr[kr++]=ga,ga=e;var r=ii;e=si;var o=32-lo(r)-1;r&=~(1<<o),n+=1;var i=32-lo(t)+o;if(30<i){var s=o-o%5;i=(r&(1<<s)-1).toString(32),r>>=s,o-=s,ii=1<<32-lo(t)+o|n<<o|r,si=i+e}else ii=1<<i|n<<o|r,si=e}function Qg(e){e.return!==null&&(fa(e,1),OL(e,1,0))}function eI(e){for(;e===bm;)bm=Ql[--eu],Ql[eu]=null,Lm=Ql[--eu],Ql[eu]=null;for(;e===ga;)ga=Mr[--kr],Mr[kr]=null,si=Mr[--kr],Mr[kr]=null,ii=Mr[--kr],Mr[kr]=null}var cr=null,ur=null,ct=!1,ao=null;function gL(e,t){var n=Gr(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Zy(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,cr=e,ur=is(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,cr=e,ur=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=ga!==null?{id:ii,overflow:si}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Gr(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,cr=e,ur=null,!0):!1;default:return!1}}function hg(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Og(e){if(ct){var t=ur;if(t){var n=t;if(!Zy(e,t)){if(hg(e))throw Error(U(418));t=is(n.nextSibling);var r=cr;t&&Zy(e,t)?gL(r,n):(e.flags=e.flags&-4097|2,ct=!1,cr=e)}}else{if(hg(e))throw Error(U(418));e.flags=e.flags&-4097|2,ct=!1,cr=e}}}function Jy(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;cr=e}function tm(e){if(e!==cr)return!1;if(!ct)return Jy(e),ct=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!mg(e.type,e.memoizedProps)),t&&(t=ur)){if(hg(e))throw IL(),Error(U(418));for(;t;)gL(e,t),t=is(t.nextSibling)}if(Jy(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(U(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){ur=is(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}ur=null}}else ur=cr?is(e.stateNode.nextSibling):null;return!0}function IL(){for(var e=ur;e;)e=is(e.nextSibling)}function fu(){ur=cr=null,ct=!1}function tI(e){ao===null?ao=[e]:ao.push(e)}var _2=fi.ReactCurrentBatchConfig;function Rd(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(U(309));var r=n.stateNode}if(!r)throw Error(U(147,e));var o=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(s){var a=o.refs;s===null?delete a[i]:a[i]=s},t._stringRef=i,t)}if(typeof e!="string")throw Error(U(284));if(!n._owner)throw Error(U(290,e))}return e}function nm(e,t){throw e=Object.prototype.toString.call(t),Error(U(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function qy(e){var t=e._init;return t(e._payload)}function SL(e){function t(m,E){if(e){var O=m.deletions;O===null?(m.deletions=[E],m.flags|=16):O.push(E)}}function n(m,E){if(!e)return null;for(;E!==null;)t(m,E),E=E.sibling;return null}function r(m,E){for(m=new Map;E!==null;)E.key!==null?m.set(E.key,E):m.set(E.index,E),E=E.sibling;return m}function o(m,E){return m=us(m,E),m.index=0,m.sibling=null,m}function i(m,E,O){return m.index=O,e?(O=m.alternate,O!==null?(O=O.index,O<E?(m.flags|=2,E):O):(m.flags|=2,E)):(m.flags|=1048576,E)}function s(m){return e&&m.alternate===null&&(m.flags|=2),m}function a(m,E,O,g){return E===null||E.tag!==6?(E=WO(O,m.mode,g),E.return=m,E):(E=o(E,O),E.return=m,E)}function l(m,E,O,g){var I=O.type;return I===Xl?c(m,E,O.props.children,g,O.key):E!==null&&(E.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===Zi&&qy(I)===E.type)?(g=o(E,O.props),g.ref=Rd(m,E,O),g.return=m,g):(g=Em(O.type,O.key,O.props,null,m.mode,g),g.ref=Rd(m,E,O),g.return=m,g)}function u(m,E,O,g){return E===null||E.tag!==4||E.stateNode.containerInfo!==O.containerInfo||E.stateNode.implementation!==O.implementation?(E=YO(O,m.mode,g),E.return=m,E):(E=o(E,O.children||[]),E.return=m,E)}function c(m,E,O,g,I){return E===null||E.tag!==7?(E=ha(O,m.mode,g,I),E.return=m,E):(E=o(E,O),E.return=m,E)}function d(m,E,O){if(typeof E=="string"&&E!==""||typeof E=="number")return E=WO(""+E,m.mode,O),E.return=m,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case Vp:return O=Em(E.type,E.key,E.props,null,m.mode,O),O.ref=Rd(m,null,E),O.return=m,O;case zl:return E=YO(E,m.mode,O),E.return=m,E;case Zi:var g=E._init;return d(m,g(E._payload),O)}
vendor: 7,402 bytes, line 6
6if(Ld(E)||Od(E))return E=ha(E,m.mode,O,null),E.return=m,E;nm(m,E)}return null}function f(m,E,O,g){var I=E!==null?E.key:null;if(typeof O=="string"&&O!==""||typeof O=="number")return I!==null?null:a(m,E,""+O,g);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case Vp:return O.key===I?l(m,E,O,g):null;case zl:return O.key===I?u(m,E,O,g):null;case Zi:return I=O._init,f(m,E,I(O._payload),g)}if(Ld(O)||Od(O))return I!==null?null:c(m,E,O,g,null);nm(m,O)}return null}function p(m,E,O,g,I){if(typeof g=="string"&&g!==""||typeof g=="number")return m=m.get(O)||null,a(E,m,""+g,I);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Vp:return m=m.get(g.key===null?O:g.key)||null,l(E,m,g,I);case zl:return m=m.get(g.key===null?O:g.key)||null,u(E,m,g,I);case Zi:var S=g._init;return p(m,E,O,S(g._payload),I)}if(Ld(g)||Od(g))return m=m.get(O)||null,c(E,m,g,I,null);nm(E,g)}return null}function _(m,E,O,g){for(var I=null,S=null,A=E,R=E=0,y=null;A!==null&&R<O.length;R++){A.index>R?(y=A,A=null):y=A.sibling;var b=f(m,A,O[R],g);if(b===null){A===null&&(A=y);break}e&&A&&b.alternate===null&&t(m,A),E=i(b,E,R),S===null?I=b:S.sibling=b,S=b,A=y}if(R===O.length)return n(m,A),ct&&fa(m,R),I;if(A===null){for(;R<O.length;R++)A=d(m,O[R],g),A!==null&&(E=i(A,E,R),S===null?I=A:S.sibling=A,S=A);return ct&&fa(m,R),I}for(A=r(m,A);R<O.length;R++)y=p(A,m,R,O[R],g),y!==null&&(e&&y.alternate!==null&&A.delete(y.key===null?R:y.key),E=i(y,E,R),S===null?I=y:S.sibling=y,S=y);return e&&A.forEach(function(L){return t(m,L)}),ct&&fa(m,R),I}function T(m,E,O,g){var I=Od(O);if(typeof I!="function")throw Error(U(150));if(O=I.call(O),O==null)throw Error(U(151));for(var S=I=null,A=E,R=E=0,y=null,b=O.next();A!==null&&!b.done;R++,b=O.next()){A.index>R?(y=A,A=null):y=A.sibling;var L=f(m,A,b.value,g);if(L===null){A===null&&(A=y);break}e&&A&&L.alternate===null&&t(m,A),E=i(L,E,R),S===null?I=L:S.sibling=L,S=L,A=y}if(b.done)return n(m,A),ct&&fa(m,R),I;if(A===null){for(;!b.done;R++,b=O.next())b=d(m,b.value,g),b!==null&&(E=i(b,E,R),S===null?I=b:S.sibling=b,S=b);return ct&&fa(m,R),I}for(A=r(m,A);!b.done;R++,b=O.next())b=p(A,m,R,b.value,g),b!==null&&(e&&b.alternate!==null&&A.delete(b.key===null?R:b.key),E=i(b,E,R),S===null?I=b:S.sibling=b,S=b);return e&&A.forEach(function(D){return t(m,D)}),ct&&fa(m,R),I}function h(m,E,O,g){if(typeof O=="object"&&O!==null&&O.type===Xl&&O.key===null&&(O=O.props.children),typeof O=="object"&&O!==null){switch(O.$$typeof){case Vp:e:{for(var I=O.key,S=E;S!==null;){if(S.key===I){if(I=O.type,I===Xl){if(S.tag===7){n(m,S.sibling),E=o(S,O.props.children),E.return=m,m=E;break e}}else if(S.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===Zi&&qy(I)===S.type){n(m,S.sibling),E=o(S,O.props),E.ref=Rd(m,S,O),E.return=m,m=E;break e}n(m,S);break}else t(m,S);S=S.sibling}O.type===Xl?(E=ha(O.props.children,m.mode,g,O.key),E.return=m,m=E):(g=Em(O.type,O.key,O.props,null,m.mode,g),g.ref=Rd(m,E,O),g.return=m,m=g)}return s(m);case zl:e:{for(S=O.key;E!==null;){if(E.key===S)if(E.tag===4&&E.stateNode.containerInfo===O.containerInfo&&E.stateNode.implementation===O.implementation){n(m,E.sibling),E=o(E,O.children||[]),E.return=m,m=E;break e}else{n(m,E);break}else t(m,E);E=E.sibling}E=YO(O,m.mode,g),E.return=m,m=E}return s(m);case Zi:return S=O._init,h(m,E,S(O._payload),g)}if(Ld(O))return _(m,E,O,g);if(Od(O))return T(m,E,O,g);nm(m,O)}return typeof O=="string"&&O!==""||typeof O=="number"?(O=""+O,E!==null&&E.tag===6?(n(m,E.sibling),E=o(E,O),E.return=m,m=E):(n(m,E),E=WO(O,m.mode,g),E.return=m,m=E),s(m)):n(m,E)}return h}var pu=SL(!0),RL=SL(!1),Cm=ps(null),Pm=null,tu=null,nI=null;function rI(){nI=tu=Pm=null}function oI(e){var t=Cm.current;rt(Cm),e._currentValue=t}function gg(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function lu(e,t){Pm=e,nI=tu=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Vn=!0),e.firstContext=null)}function wr(e){var t=e._currentValue;if(nI!==e)if(e={context:e,memoizedValue:t,next:null},tu===null){if(Pm===null)throw Error(U(308));tu=e,Pm.dependencies={lanes:0,firstContext:e}}else tu=tu.next=e;return t}var Ea=null;function iI(e){Ea===null?Ea=[e]:Ea.push(e)}function AL(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,iI(t)):(n.next=o.next,o.next=n),t.interleaved=n,ci(e,r)}function ci(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Ji=!1;function sI(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function NL(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ai(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ss(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Ce&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,ci(e,n)}return o=r.interleaved,o===null?(t.next=t,iI(r)):(t.next=o.next,o.next=t),r.interleaved=t,ci(e,n)}function um(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Kg(e,n)}}function Qy(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Dm(e,t,n,r){var o=e.updateQueue;Ji=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?i=u:s.next=u,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==s&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(i!==null){var d=o.baseState;s=0,c=u=l=null,a=i;do{var f=a.lane,p=a.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var _=e,T=a;switch(f=t,p=n,T.tag){case 1:if(_=T.payload,typeof _=="function"){d=_.call(p,d,f);break e}d=_;break e;case 3:_.flags=_.flags&-65537|128;case 0:if(_=T.payload,f=typeof _=="function"?_.call(p,d,f):_,f==null)break e;d=Et({},d,f);break e;case 2:Ji=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[a]:f.push(a))}else p={eventTime:p,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=p,l=d):c=c.next=p,s|=f;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;f=a,a=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(1);if(c===null&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Sa|=s,e.lanes=s,e.memoizedState=d}}function eb(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;
vendor: 13,559 bytes, lines 6-8
6if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(U(191,o));o.call(r)}}}var af={},Go=ps(af),Jd=ps(af),qd=ps(af);function _a(e){if(e===af)throw Error(U(174));return e}function aI(e,t){switch($e(qd,t),$e(Jd,e),$e(Go,af),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:eg(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=eg(t,e)}rt(Go),$e(Go,t)}function mu(){rt(Go),rt(Jd),rt(qd)}function yL(e){_a(qd.current);var t=_a(Go.current),n=eg(t,e.type);t!==n&&($e(Jd,e),$e(Go,n))}function lI(e){Jd.current===e&&(rt(Go),rt(Jd))}var pt=ps(0);function vm(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var FO=[];function uI(){for(var e=0;e<FO.length;e++)FO[e]._workInProgressVersionPrimary=null;FO.length=0}var cm=fi.ReactCurrentDispatcher,wO=fi.ReactCurrentBatchConfig,Ia=0,mt=null,Ct=null,wt=null,xm=!1,Gd=!1,Qd=0,T2=0;function En(){throw Error(U(321))}function cI(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!co(e[n],t[n]))return!1;return!0}function dI(e,t,n,r,o,i){if(Ia=i,mt=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,cm.current=e===null||e.memoizedState===null?I2:S2,e=n(r,o),Gd){i=0;do{if(Gd=!1,Qd=0,25<=i)throw Error(U(301));i+=1,wt=Ct=null,t.updateQueue=null,cm.current=R2,e=n(r,o)}while(Gd)}if(cm.current=Mm,t=Ct!==null&&Ct.next!==null,Ia=0,wt=Ct=mt=null,xm=!1,t)throw Error(U(300));return e}function fI(){var e=Qd!==0;return Qd=0,e}function xo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return wt===null?mt.memoizedState=wt=e:wt=wt.next=e,wt}function Br(){if(Ct===null){var e=mt.alternate;e=e!==null?e.memoizedState:null}else e=Ct.next;var t=wt===null?mt.memoizedState:wt.next;if(t!==null)wt=t,Ct=e;else{if(e===null)throw Error(U(310));Ct=e,e={memoizedState:Ct.memoizedState,baseState:Ct.baseState,baseQueue:Ct.baseQueue,queue:Ct.queue,next:null},wt===null?mt.memoizedState=wt=e:wt=wt.next=e}return wt}function ef(e,t){return typeof t=="function"?t(e):t}function BO(e){var t=Br(),n=t.queue;if(n===null)throw Error(U(311));n.lastRenderedReducer=e;var r=Ct,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var s=o.next;o.next=i.next,i.next=s}r.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,r=r.baseState;var a=s=null,l=null,u=i;do{var c=u.lane;if((Ia&c)===c)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=d,s=r):l=l.next=d,mt.lanes|=c,Sa|=c}u=u.next}while(u!==null&&u!==i);l===null?s=r:l.next=a,co(r,t.memoizedState)||(Vn=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do i=o.lane,mt.lanes|=i,Sa|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function UO(e){var t=Br(),n=t.queue;if(n===null)throw Error(U(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var s=o=o.next;do i=e(i,s.action),s=s.next;while(s!==o);co(i,t.memoizedState)||(Vn=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function bL(){}function LL(e,t){var n=mt,r=Br(),o=t(),i=!co(r.memoizedState,o);if(i&&(r.memoizedState=o,Vn=!0),r=r.queue,pI(DL.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||wt!==null&&wt.memoizedState.tag&1){if(n.flags|=2048,tf(9,PL.bind(null,n,r,o,t),void 0,null),Bt===null)throw Error(U(349));Ia&30||CL(n,t,o)}return o}function CL(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=mt.updateQueue,t===null?(t={lastEffect:null,stores:null},mt.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function PL(e,t,n,r){t.value=n,t.getSnapshot=r,vL(t)&&xL(e)}function DL(e,t,n){return n(function(){vL(t)&&xL(e)})}function vL(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!co(e,n)}catch{return!0}}function xL(e){var t=ci(e,1);t!==null&&uo(t,e,1,-1)}function tb(e){var t=xo();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ef,lastRenderedState:e},t.queue=e,e=e.dispatch=g2.bind(null,mt,e),[t.memoizedState,e]}function tf(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=mt.updateQueue,t===null?(t={lastEffect:null,stores:null},mt.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function ML(){return Br().memoizedState}function dm(e,t,n,r){var o=xo();mt.flags|=e,o.memoizedState=tf(1|t,n,void 0,r===void 0?null:r)}function zm(e,t,n,r){var o=Br();r=r===void 0?null:r;var i=void 0;if(Ct!==null){var s=Ct.memoizedState;if(i=s.destroy,r!==null&&cI(r,s.deps)){o.memoizedState=tf(t,n,i,r);return}}mt.flags|=e,o.memoizedState=tf(1|t,n,i,r)}function nb(e,t){return dm(8390656,8,e,t)}function pI(e,t){return zm(2048,8,e,t)}function kL(e,t){return zm(4,2,e,t)}function GL(e,t){return zm(4,4,e,t)}function FL(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function wL(e,t,n){return n=n!=null?n.concat([e]):null,zm(4,4,FL.bind(null,t,e),n)}function mI(){}function BL(e,t){var n=Br();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&cI(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function UL(e,t){var n=Br();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&cI(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function VL(e,t,n){return Ia&21?(co(n,t)||(n=zb(),mt.lanes|=n,Sa|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Vn=!0),e.memoizedState=n)}function h2(e,t){var n=Be;Be=n!==0&&4>n?n:4,e(!0);var r=wO.transition;wO.transition={};try{e(!1),t()}finally{Be=n,wO.transition=r}}function HL(){return Br().memoizedState}function O2(e,t,n){var r=ls(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},WL(e))YL(t,n);else if(n=AL(e,t,n,r),n!==null){var o=Dn();uo(n,e,r,o),KL(n,t,r)}}function g2(e,t,n){var r=ls(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(WL(e))YL(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,co(a,s)){var l=t.interleaved;l===null?(o.next=o,iI(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=AL(e,t,o,r),n!==null&&(o=Dn(),uo(n,e,r,o),KL(n,t,r))}}function WL(e){var t=e.alternate;return e===mt||t!==null&&t===mt}function YL(e,t){Gd=xm=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function KL(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Kg(e,n)}}var Mm={readContext:wr,useCallback:En,useContext:En,useEffect:En,useImperativeHandle:En,useInsertionEffect:En,useLayoutEffect:En,useMemo:En,useReducer:En,useRef:En,useState:En,useDebugValue:En,useDeferredValue:En,useTransition:En,useMutableSource:En,useSyncExternalStore:En,useId:En,unstable_isNewReconciler:!1},I2={readContext:wr,useCallback:function(e,t){return xo().memoizedState=[e,t===void 0?null:t],e},useContext:wr,useEffect:nb,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,dm(4194308,4,FL.bind(null,t,e),n)},useLayoutEffect:function(e,t){return dm(4194308,4,e,t)},useInsertionEffect:function(e,t){return dm(4,2,e,t)},useMemo:function(e,t){var n=xo();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=xo();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=O2.bind(null,mt,e),[r.memoizedState,e]},useRef:function(e){var t=xo();return e={current:e},t.memoizedState=e},useState:tb,useDebugValue:mI,useDeferredValue:function(e){return xo().memoizedState=e},useTransition:function(){var e=tb(!1),t=e[0];return e=h2.bind(null,e[1]),xo().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=mt,o=xo();if(ct){if(n===void 0)throw Error(U(407));n=n()}else{if(n=t(),Bt===null)throw Error(U(349));Ia&30||CL(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,nb(DL.bind(null,r,i,e),[e]),r.flags|=2048,tf(9,PL.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=xo(),t=Bt.identifierPrefix;if(ct){var n=si,r=ii;n=(r&~(1<<32-lo(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Qd++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=T2++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},S2={readContext:wr,useCallback:BL,useContext:wr,useEffect:pI,useImperativeHandle:wL,useInsertionEffect:kL,useLayoutEffect:GL,useMemo:UL,useReducer:BO,useRef:ML,useState:function(){return BO(ef)},useDebugValue:mI,useDeferredValue:function(e){var t=Br();return VL(t,Ct.memoizedState,e)},useTransition:function(){var e=BO(ef)[0],t=Br().memoizedState;return[e,t]},useMutableSource:bL,useSyncExternalStore:LL,useId:HL,unstable_isNewReconciler:!1},R2={readContext:wr,useCallback:BL,useContext:wr,useEffect:pI,useImperativeHandle:wL,useInsertionEffect:kL,useLayoutEffect:GL,useMemo:UL,useReducer:UO,useRef:ML,useState:function(){return UO(ef)},useDebugValue:mI,useDeferredValue:function(e){var t=Br();return Ct===null?t.memoizedState=e:VL(t,Ct.memoizedState,e)},useTransition:function(){var e=UO(ef)[0],t=Br().memoizedState;return[e,t]},useMutableSource:bL,useSyncExternalStore:LL,useId:HL,unstable_isNewReconciler:!1};function io(e,t){if(e&&e.defaultProps){t=Et({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Ig(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Et({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Xm={isMounted:function(e){return(e=e._reactInternals)?Na(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Dn(),o=ls(e),i=ai(r,o);i.payload=t,n!=null&&(i.callback=n),t=ss(e,i,o),t!==null&&(uo(t,e,o,r),um(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Dn(),o=ls(e),i=ai(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=ss(e,i,o),t!==null&&(uo(t,e,o,r),um(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Dn(),r=ls(e),o=ai(n,r);o.tag=2,t!=null&&(o.callback=t),t=ss(e,o,r),t!==null&&(uo(t,e,r,n),um(t,e,r))}};function rb(e,t,n,r,o,i,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,s):t.prototype&&t.prototype.isPureReactComponent?!Xd(n,r)||!Xd(o,i):!0}function zL(e,t,n){var r=!1,o=ds,i=t.contextType;return typeof i=="object"&&i!==null?i=wr(i):(o=Wn(t)?Oa:hn.current,r=t.contextTypes,i=(r=r!=null)?du(e,o):ds),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Xm,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function ob(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Xm.enqueueReplaceState(t,t.state,null)}function Sg(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},sI(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=wr(i):(i=Wn(t)?Oa:hn.current,o.context=du(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Ig(e,t,i,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&Xm.enqueueReplaceState(o,o.state,null),Dm(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Eu(e,t){try{var n="",r=t;do n+=QV(r),r=r.return;while(r);var o=n}catch(i){o=` 7Error generating stack: `+i.message+` 8`+i.stack}return{value:e,source:t,stack:o,digest:null}}function VO(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Rg(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var A2=typeof WeakMap=="function"?WeakMap:Map;function XL(e,t,n){n=ai(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Gm||(Gm=!0,xg=r),Rg(e,t)},n}function jL(e,t,n){n=ai(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Rg(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Rg(e,t),typeof r!="function"&&(as===null?as=new Set([this]):as.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function ib(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new A2;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=w2.bind(null,e,t,n),t.then(e,e))}
vendor: 7,882 bytes, line 8
8function sb(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function ab(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=ai(-1,1),t.tag=2,ss(n,t,1))),n.lanes|=1),e)}var N2=fi.ReactCurrentOwner,Vn=!1;function Pn(e,t,n,r){t.child=e===null?RL(t,null,n,r):pu(t,e.child,n,r)}function lb(e,t,n,r,o){n=n.render;var i=t.ref;return lu(t,o),r=dI(e,t,n,r,i,o),n=fI(),e!==null&&!Vn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,di(e,t,o)):(ct&&n&&Qg(t),t.flags|=1,Pn(e,t,r,o),t.child)}function ub(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!SI(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,$L(e,t,i,r,o)):(e=Em(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var s=i.memoizedProps;if(n=n.compare,n=n!==null?n:Xd,n(s,r)&&e.ref===t.ref)return di(e,t,o)}return t.flags|=1,e=us(i,r),e.ref=t.ref,e.return=t,t.child=e}function $L(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(Xd(i,r)&&e.ref===t.ref)if(Vn=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(Vn=!0);else return t.lanes=e.lanes,di(e,t,o)}return Ag(e,t,n,r,o)}function ZL(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},$e(ru,lr),lr|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,$e(ru,lr),lr|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,$e(ru,lr),lr|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,$e(ru,lr),lr|=r;return Pn(e,t,o,n),t.child}function JL(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ag(e,t,n,r,o){var i=Wn(n)?Oa:hn.current;return i=du(t,i),lu(t,o),n=dI(e,t,n,r,i,o),r=fI(),e!==null&&!Vn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,di(e,t,o)):(ct&&r&&Qg(t),t.flags|=1,Pn(e,t,n,o),t.child)}function cb(e,t,n,r,o){if(Wn(n)){var i=!0;ym(t)}else i=!1;if(lu(t,o),t.stateNode===null)fm(e,t),zL(t,n,r),Sg(t,n,r,o),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=wr(u):(u=Wn(n)?Oa:hn.current,u=du(t,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof s.getSnapshotBeforeUpdate=="function";d||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||l!==u)&&ob(t,s,r,u),Ji=!1;var f=t.memoizedState;s.state=f,Dm(t,r,s,o),l=t.memoizedState,a!==r||f!==l||Hn.current||Ji?(typeof c=="function"&&(Ig(t,n,c,r),l=t.memoizedState),(a=Ji||rb(t,n,a,r,f,l,u))?(d||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=u,r=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,NL(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:io(t.type,a),s.props=u,d=t.pendingProps,f=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=wr(l):(l=Wn(n)?Oa:hn.current,l=du(t,l));var p=n.getDerivedStateFromProps;(c=typeof p=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==d||f!==l)&&ob(t,s,r,l),Ji=!1,f=t.memoizedState,s.state=f,Dm(t,r,s,o);var _=t.memoizedState;a!==d||f!==_||Hn.current||Ji?(typeof p=="function"&&(Ig(t,n,p,r),_=t.memoizedState),(u=Ji||rb(t,n,u,r,f,_,l)||!1)?(c||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,_,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,_,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=_),s.props=r,s.state=_,s.context=l,r=u):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Ng(e,t,n,r,i,o)}function Ng(e,t,n,r,o,i){JL(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return o&&$y(t,n,!1),di(e,t,i);r=t.stateNode,N2.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=pu(t,e.child,null,i),t.child=pu(t,null,a,i)):Pn(e,t,a,i),t.memoizedState=r.state,o&&$y(t,n,!0),t.child}function qL(e){var t=e.stateNode;t.pendingContext?jy(e,t.pendingContext,t.pendingContext!==t.context):t.context&&jy(e,t.context,!1),aI(e,t.containerInfo)}function db(e,t,n,r,o){return fu(),tI(o),t.flags|=256,Pn(e,t,n,r),t.child}var yg={dehydrated:null,treeContext:null,retryLane:0};function bg(e){return{baseLanes:e,cachePool:null,transitions:null}}function QL(e,t,n){var r=t.pendingProps,o=pt.current,i=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(o&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),$e(pt,o&1),e===null)return Og(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,i?(r=t.mode,i=t.child,s={mode:"hidden",children:s},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=s):i=Zm(s,r,0,null),e=ha(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=bg(n),t.memoizedState=yg,e):EI(t,s));if(o=e.memoizedState,o!==null&&(a=o.dehydrated,a!==null))return y2(e,t,s,r,a,o,n);if(i){i=r.fallback,s=t.mode,o=e.child,a=o.sibling;var l={mode:"hidden",children:r.children};return!(s&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=us(o,l),r.subtreeFlags=o.subtreeFlags&14680064),a!==null?i=us(a,i):(i=ha(i,s,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,s=e.child.memoizedState,s=s===null?bg(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~n,t.memoizedState=yg,r}return i=e.child,e=i.sibling,r=us(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function EI(e,t){return t=Zm({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function rm(e,t,n,r){return r!==null&&tI(r),pu(t,e.child,null,n),e=EI(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function y2(e,t,n,r,o,i,s){if(n)return t.flags&256?(t.flags&=-257,r=VO(Error(U(422))),rm(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Zm({mode:"visible",children:r.children},o,0,null),i=ha(i,o,s,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&pu(t,e.child,null,s),t.child.memoizedState=bg(s),t.memoizedState=yg,i);if(!(t.mode&1))return rm(e,t,s,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(U(419)),r=VO(i,r,void 0),rm(e,t,s,r)}
vendor: 9,559 bytes, line 8
8if(a=(s&e.childLanes)!==0,Vn||a){if(r=Bt,r!==null){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|s)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,ci(e,o),uo(r,e,o,-1))}return II(),r=VO(Error(U(421))),rm(e,t,s,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=B2.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,ur=is(o.nextSibling),cr=t,ct=!0,ao=null,e!==null&&(Mr[kr++]=ii,Mr[kr++]=si,Mr[kr++]=ga,ii=e.id,si=e.overflow,ga=t),t=EI(t,r.children),t.flags|=4096,t)}function fb(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),gg(e.return,t,n)}function HO(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function eC(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Pn(e,t,r.children,n),r=pt.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&fb(e,n,t);else if(e.tag===19)fb(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if($e(pt,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&vm(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),HO(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&vm(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}HO(t,!0,n,null,i);break;case"together":HO(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function fm(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function di(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Sa|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(U(153));if(t.child!==null){for(e=t.child,n=us(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=us(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function b2(e,t,n){switch(t.tag){case 3:qL(t),fu();break;case 5:yL(t);break;case 1:Wn(t.type)&&ym(t);break;case 4:aI(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;$e(Cm,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?($e(pt,pt.current&1),t.flags|=128,null):n&t.child.childLanes?QL(e,t,n):($e(pt,pt.current&1),e=di(e,t,n),e!==null?e.sibling:null);$e(pt,pt.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return eC(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),$e(pt,pt.current),r)break;return null;case 22:case 23:return t.lanes=0,ZL(e,t,n)}return di(e,t,n)}var tC,Lg,nC,rC;tC=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Lg=function(){};nC=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,_a(Go.current);var i=null;switch(n){case"input":o=ZO(e,o),r=ZO(e,r),i=[];break;case"select":o=Et({},o,{value:void 0}),r=Et({},r,{value:void 0}),i=[];break;case"textarea":o=QO(e,o),r=QO(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Am)}tg(n,r);var s;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var a=o[u];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Ud.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var l=r[u];if(a=o?.[u],r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(s in a)!a.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in l)l.hasOwnProperty(s)&&a[s]!==l[s]&&(n||(n={}),n[s]=l[s])}else n||(i||(i=[]),i.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(i=i||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Ud.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&nt("scroll",e),i||a===l||(i=[])):(i=i||[]).push(u,l))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};rC=function(e,t,n,r){n!==r&&(t.flags|=4)};function Ad(e,t){if(!ct)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function _n(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function L2(e,t,n){var r=t.pendingProps;switch(eI(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _n(t),null;case 1:return Wn(t.type)&&Nm(),_n(t),null;case 3:return r=t.stateNode,mu(),rt(Hn),rt(hn),uI(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(tm(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ao!==null&&(Gg(ao),ao=null))),Lg(e,t),_n(t),null;case 5:lI(t);var o=_a(qd.current);if(n=t.type,e!==null&&t.stateNode!=null)nC(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(U(166));return _n(t),null}if(e=_a(Go.current),tm(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Mo]=t,r[Zd]=i,e=(t.mode&1)!==0,n){case"dialog":nt("cancel",r),nt("close",r);break;case"iframe":case"object":case"embed":nt("load",r);break;case"video":case"audio":for(o=0;o<Pd.length;o++)nt(Pd[o],r);break;case"source":nt("error",r);break;case"img":case"image":case"link":nt("error",r),nt("load",r);break;case"details":nt("toggle",r);break;case"input":gy(r,i),nt("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},nt("invalid",r);break;case"textarea":Sy(r,i),nt("invalid",r)}tg(n,i),o=null;for(var s in i)if(i.hasOwnProperty(s)){var a=i[s];s==="children"?typeof a=="string"?r.textContent!==a&&(i.suppressHydrationWarning!==!0&&em(r.textContent,a,e),o=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&em(r.textContent,a,e),o=["children",""+a]):Ud.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&nt("scroll",r)}switch(n){case"input":Hp(r),Iy(r,i,!0);break;case"textarea":Hp(r),Ry(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Am)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Db(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script></script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Mo]=t,e[Zd]=r,tC(e,t,!1,!1),t.stateNode=e;e:{switch(s=ng(n,r),n){case"dialog":nt("cancel",e),nt("close",e),o=r;break;case"iframe":case"object":case"embed":nt("load",e),o=r;break;case"video":case"audio":for(o=0;o<Pd.length;o++)nt(Pd[o],e);o=r;break;case"source":nt("error",e),o=r;break;case"img":case"image":case"link":nt("error",e),nt("load",e),o=r;break;case"details":nt("toggle",e),o=r;break;case"input":gy(e,r),o=ZO(e,r),nt("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Et({},r,{value:void 0}),nt("invalid",e);break;case"textarea":Sy(e,r),o=QO(e,r),nt("invalid",e);break;default:o=r}tg(n,o),a=o;for(i in a)if(a.hasOwnProperty(i)){var l=a[i];i==="style"?Mb(e,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&vb(e,l)):i==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Vd(e,l):typeof l=="number"&&Vd(e,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Ud.hasOwnProperty(i)?l!=null&&i==="onScroll"&&nt("scroll",e):l!=null&&Bg(e,i,l,s))}switch(n){case"input":Hp(e),Iy(e,r,!1);break;case"textarea":Hp(e),Ry(e);break;case"option":r.value!=null&&e.setAttribute("value",""+cs(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?ou(e,!!r.multiple,i,!1):r.defaultValue!=null&&ou(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Am)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}
vendor: 8,028 bytes, line 8
8return _n(t),null;case 6:if(e&&t.stateNode!=null)rC(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(U(166));if(n=_a(qd.current),_a(Go.current),tm(t)){if(r=t.stateNode,n=t.memoizedProps,r[Mo]=t,(i=r.nodeValue!==n)&&(e=cr,e!==null))switch(e.tag){case 3:em(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&em(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Mo]=t,t.stateNode=r}return _n(t),null;case 13:if(rt(pt),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ct&&ur!==null&&t.mode&1&&!(t.flags&128))IL(),fu(),t.flags|=98560,i=!1;else if(i=tm(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(U(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(U(317));i[Mo]=t}else fu(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;_n(t),i=!1}else ao!==null&&(Gg(ao),ao=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||pt.current&1?Pt===0&&(Pt=3):II())),t.updateQueue!==null&&(t.flags|=4),_n(t),null);case 4:return mu(),Lg(e,t),e===null&&jd(t.stateNode.containerInfo),_n(t),null;case 10:return oI(t.type._context),_n(t),null;case 17:return Wn(t.type)&&Nm(),_n(t),null;case 19:if(rt(pt),i=t.memoizedState,i===null)return _n(t),null;if(r=(t.flags&128)!==0,s=i.rendering,s===null)if(r)Ad(i,!1);else{if(Pt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=vm(e),s!==null){for(t.flags|=128,Ad(i,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,s=i.alternate,s===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=s.childLanes,i.lanes=s.lanes,i.child=s.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=s.memoizedProps,i.memoizedState=s.memoizedState,i.updateQueue=s.updateQueue,i.type=s.type,e=s.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return $e(pt,pt.current&1|2),t.child}e=e.sibling}i.tail!==null&&Rt()>_u&&(t.flags|=128,r=!0,Ad(i,!1),t.lanes=4194304)}else{if(!r)if(e=vm(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ad(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!ct)return _n(t),null}else 2*Rt()-i.renderingStartTime>_u&&n!==1073741824&&(t.flags|=128,r=!0,Ad(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Rt(),t.sibling=null,n=pt.current,$e(pt,r?n&1|2:n&1),t):(_n(t),null);case 22:case 23:return gI(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?lr&1073741824&&(_n(t),t.subtreeFlags&6&&(t.flags|=8192)):_n(t),null;case 24:return null;case 25:return null}throw Error(U(156,t.tag))}function C2(e,t){switch(eI(t),t.tag){case 1:return Wn(t.type)&&Nm(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return mu(),rt(Hn),rt(hn),uI(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return lI(t),null;case 13:if(rt(pt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(U(340));fu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return rt(pt),null;case 4:return mu(),null;case 10:return oI(t.type._context),null;case 22:case 23:return gI(),null;case 24:return null;default:return null}}var om=!1,Tn=!1,P2=typeof WeakSet=="function"?WeakSet:Set,$=null;function nu(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){_t(e,t,r)}else n.current=null}function Cg(e,t,n){try{n()}catch(r){_t(e,t,r)}}var pb=!1;function D2(e,t){if(fg=Im,e=lL(),qg(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var p;d!==n||o!==0&&d.nodeType!==3||(a=s+o),d!==i||r!==0&&d.nodeType!==3||(l=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===e)break t;if(f===n&&++u===o&&(a=s),f===i&&++c===r&&(l=s),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(pg={focusedElem:e,selectionRange:n},Im=!1,$=t;$!==null;)if(t=$,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,$=e;else for(;$!==null;){t=$;try{var _=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(_!==null){var T=_.memoizedProps,h=_.memoizedState,m=t.stateNode,E=m.getSnapshotBeforeUpdate(t.elementType===t.type?T:io(t.type,T),h);m.__reactInternalSnapshotBeforeUpdate=E}break;case 3:var O=t.stateNode.containerInfo;O.nodeType===1?O.textContent="":O.nodeType===9&&O.documentElement&&O.removeChild(O.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(U(163))}}catch(g){_t(t,t.return,g)}if(e=t.sibling,e!==null){e.return=t.return,$=e;break}$=t.return}return _=pb,pb=!1,_}function Fd(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Cg(t,n,i)}o=o.next}while(o!==r)}}function jm(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Pg(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function oC(e){var t=e.alternate;t!==null&&(e.alternate=null,oC(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Mo],delete t[Zd],delete t[_g],delete t[p2],delete t[m2])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function iC(e){return e.tag===5||e.tag===3||e.tag===4}function mb(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||iC(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Dg(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Am));else if(r!==4&&(e=e.child,e!==null))for(Dg(e,t,n),e=e.sibling;e!==null;)Dg(e,t,n),e=e.sibling}function vg(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(vg(e,t,n),e=e.sibling;e!==null;)vg(e,t,n),e=e.sibling}var en=null,so=!1;function $i(e,t,n){for(n=n.child;n!==null;)sC(e,t,n),n=n.sibling}function sC(e,t,n){if(ko&&typeof ko.onCommitFiberUnmount=="function")try{ko.onCommitFiberUnmount(Um,n)}catch{}switch(n.tag){case 5:Tn||nu(n,t);case 6:var r=en,o=so;en=null,$i(e,t,n),en=r,so=o,en!==null&&(so?(e=en,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):en.removeChild(n.stateNode));break;case 18:en!==null&&(so?(e=en,n=n.stateNode,e.nodeType===8?kO(e.parentNode,n):e.nodeType===1&&kO(e,n),Kd(e)):kO(en,n.stateNode));break;case 4:r=en,o=so,en=n.stateNode.containerInfo,so=!0,$i(e,t,n),en=r,so=o;break;case 0:case 11:case 14:case 15:if(!Tn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&Cg(n,t,s),o=o.next}while(o!==r)}
vendor: 4,731 bytes, line 8
8$i(e,t,n);break;case 1:if(!Tn&&(nu(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){_t(n,t,a)}$i(e,t,n);break;case 21:$i(e,t,n);break;case 22:n.mode&1?(Tn=(r=Tn)||n.memoizedState!==null,$i(e,t,n),Tn=r):$i(e,t,n);break;default:$i(e,t,n)}}function Eb(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new P2),t.forEach(function(r){var o=U2.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function oo(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,s=t,a=s;e:for(;a!==null;){switch(a.tag){case 5:en=a.stateNode,so=!1;break e;case 3:en=a.stateNode.containerInfo,so=!0;break e;case 4:en=a.stateNode.containerInfo,so=!0;break e}a=a.return}if(en===null)throw Error(U(160));sC(i,s,o),en=null,so=!1;var l=o.alternate;l!==null&&(l.return=null),o.return=null}catch(u){_t(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)aC(t,e),t=t.sibling}function aC(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(oo(t,e),vo(e),r&4){try{Fd(3,e,e.return),jm(3,e)}catch(T){_t(e,e.return,T)}try{Fd(5,e,e.return)}catch(T){_t(e,e.return,T)}}break;case 1:oo(t,e),vo(e),r&512&&n!==null&&nu(n,n.return);break;case 5:if(oo(t,e),vo(e),r&512&&n!==null&&nu(n,n.return),e.flags&32){var o=e.stateNode;try{Vd(o,"")}catch(T){_t(e,e.return,T)}}if(r&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,s=n!==null?n.memoizedProps:i,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&i.type==="radio"&&i.name!=null&&Cb(o,i),ng(a,s);var u=ng(a,i);for(s=0;s<l.length;s+=2){var c=l[s],d=l[s+1];c==="style"?Mb(o,d):c==="dangerouslySetInnerHTML"?vb(o,d):c==="children"?Vd(o,d):Bg(o,c,d,u)}switch(a){case"input":JO(o,i);break;case"textarea":Pb(o,i);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var p=i.value;p!=null?ou(o,!!i.multiple,p,!1):f!==!!i.multiple&&(i.defaultValue!=null?ou(o,!!i.multiple,i.defaultValue,!0):ou(o,!!i.multiple,i.multiple?[]:"",!1))}o[Zd]=i}catch(T){_t(e,e.return,T)}}break;case 6:if(oo(t,e),vo(e),r&4){if(e.stateNode===null)throw Error(U(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(T){_t(e,e.return,T)}}break;case 3:if(oo(t,e),vo(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Kd(t.containerInfo)}catch(T){_t(e,e.return,T)}break;case 4:oo(t,e),vo(e);break;case 13:oo(t,e),vo(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(hI=Rt())),r&4&&Eb(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(Tn=(u=Tn)||c,oo(t,e),Tn=u):oo(t,e),vo(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for($=e,c=e.child;c!==null;){for(d=$=c;$!==null;){switch(f=$,p=f.child,f.tag){case 0:case 11:case 14:case 15:Fd(4,f,f.return);break;case 1:nu(f,f.return);var _=f.stateNode;if(typeof _.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,_.props=t.memoizedProps,_.state=t.memoizedState,_.componentWillUnmount()}catch(T){_t(r,n,T)}}break;case 5:nu(f,f.return);break;case 22:if(f.memoizedState!==null){Tb(d);continue}}p!==null?(p.return=f,$=p):Tb(d)}c=c.sibling}e:for(c=null,d=e;;){if(d.tag===5){if(c===null){c=d;try{o=d.stateNode,u?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(a=d.stateNode,l=d.memoizedProps.style,s=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=xb("display",s))}catch(T){_t(e,e.return,T)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(T){_t(e,e.return,T)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:oo(t,e),vo(e),r&4&&Eb(e);break;case 21:break;default:oo(t,e),vo(e)}}function vo(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(iC(n)){var r=n;break e}n=n.return}throw Error(U(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(Vd(o,""),r.flags&=-33);var i=mb(e);vg(e,i,o);break;case 3:case 4:var s=r.stateNode.containerInfo,a=mb(e);Dg(e,a,s);break;default:throw Error(U(161))}}catch(l){_t(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function v2(e,t,n){$=e,lC(e,t,n)}function lC(e,t,n){for(var r=(e.mode&1)!==0;$!==null;){var o=$,i=o.child;if(o.tag===22&&r){var s=o.memoizedState!==null||om;if(!s){var a=o.alternate,l=a!==null&&a.memoizedState!==null||Tn;a=om;var u=Tn;if(om=s,(Tn=l)&&!u)for($=o;$!==null;
vendor: 6,011 bytes, line 8
8)s=$,l=s.child,s.tag===22&&s.memoizedState!==null?hb(o):l!==null?(l.return=s,$=l):hb(o);for(;i!==null;)$=i,lC(i,t,n),i=i.sibling;$=o,om=a,Tn=u}_b(e,t,n)}else o.subtreeFlags&8772&&i!==null?(i.return=o,$=i):_b(e,t,n)}}function _b(e){for(;$!==null;){var t=$;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Tn||jm(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Tn)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:io(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&eb(t,i,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}eb(t,s,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var d=c.dehydrated;d!==null&&Kd(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(U(163))}Tn||t.flags&512&&Pg(t)}catch(f){_t(t,t.return,f)}}if(t===e){$=null;break}if(n=t.sibling,n!==null){n.return=t.return,$=n;break}$=t.return}}function Tb(e){for(;$!==null;){var t=$;if(t===e){$=null;break}var n=t.sibling;if(n!==null){n.return=t.return,$=n;break}$=t.return}}function hb(e){for(;$!==null;){var t=$;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{jm(4,t)}catch(l){_t(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(l){_t(t,o,l)}}var i=t.return;try{Pg(t)}catch(l){_t(t,i,l)}break;case 5:var s=t.return;try{Pg(t)}catch(l){_t(t,s,l)}}}catch(l){_t(t,t.return,l)}if(t===e){$=null;break}var a=t.sibling;if(a!==null){a.return=t.return,$=a;break}$=t.return}}var x2=Math.ceil,km=fi.ReactCurrentDispatcher,_I=fi.ReactCurrentOwner,Fr=fi.ReactCurrentBatchConfig,Ce=0,Bt=null,Nt=null,tn=0,lr=0,ru=ps(0),Pt=0,nf=null,Sa=0,$m=0,TI=0,wd=null,Un=null,hI=0,_u=1/0,ri=null,Gm=!1,xg=null,as=null,im=!1,ts=null,Fm=0,Bd=0,Mg=null,pm=-1,mm=0;function Dn(){return Ce&6?Rt():pm!==-1?pm:pm=Rt()}function ls(e){return e.mode&1?Ce&2&&tn!==0?tn&-tn:_2.transition!==null?(mm===0&&(mm=zb()),mm):(e=Be,e!==0||(e=window.event,e=e===void 0?16:Qb(e.type)),e):1}function uo(e,t,n,r){if(50<Bd)throw Bd=0,Mg=null,Error(U(185));rf(e,n,r),(!(Ce&2)||e!==Bt)&&(e===Bt&&(!(Ce&2)&&($m|=n),Pt===4&&Qi(e,tn)),Yn(e,r),n===1&&Ce===0&&!(t.mode&1)&&(_u=Rt()+500,Km&&ms()))}function Yn(e,t){var n=e.callbackNode;hH(e,t);var r=gm(e,e===Bt?tn:0);if(r===0)n!==null&&yy(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&yy(n),t===1)e.tag===0?E2(Ob.bind(null,e)):hL(Ob.bind(null,e)),d2(function(){!(Ce&6)&&ms()}),n=null;else{switch(Xb(r)){case 1:n=Yg;break;case 4:n=Yb;break;case 16:n=Om;break;case 536870912:n=Kb;break;default:n=Om}n=_C(n,uC.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function uC(e,t){if(pm=-1,mm=0,Ce&6)throw Error(U(327));var n=e.callbackNode;if(uu()&&e.callbackNode!==n)return null;var r=gm(e,e===Bt?tn:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=wm(e,r);else{t=r;var o=Ce;Ce|=2;var i=dC();(Bt!==e||tn!==t)&&(ri=null,_u=Rt()+500,Ta(e,t));do try{G2();break}catch(a){cC(e,a)}while(1);rI(),km.current=i,Ce=o,Nt!==null?t=0:(Bt=null,tn=0,t=Pt)}if(t!==0){if(t===2&&(o=ag(e),o!==0&&(r=o,t=kg(e,o))),t===1)throw n=nf,Ta(e,0),Qi(e,r),Yn(e,Rt()),n;if(t===6)Qi(e,r);else{if(o=e.current.alternate,!(r&30)&&!M2(o)&&(t=wm(e,r),t===2&&(i=ag(e),i!==0&&(r=i,t=kg(e,i))),t===1))throw n=nf,Ta(e,0),Qi(e,r),Yn(e,Rt()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(U(345));case 2:pa(e,Un,ri);break;case 3:if(Qi(e,r),(r&130023424)===r&&(t=hI+500-Rt(),10<t)){if(gm(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){Dn(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Eg(pa.bind(null,e,Un,ri),t);break}pa(e,Un,ri);break;case 4:if(Qi(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-lo(r);i=1<<s,s=t[s],s>o&&(o=s),r&=~i}if(r=o,r=Rt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*x2(r/1960))-r,10<r){e.timeoutHandle=Eg(pa.bind(null,e,Un,ri),r);break}pa(e,Un,ri);break;case 5:pa(e,Un,ri);break;default:throw Error(U(329))}}}return Yn(e,Rt()),e.callbackNode===n?uC.bind(null,e):null}function kg(e,t){var n=wd;return e.current.memoizedState.isDehydrated&&(Ta(e,t).flags|=256),e=wm(e,t),e!==2&&(t=Un,Un=n,t!==null&&Gg(t)),e}function Gg(e){Un===null?Un=e:Un.push.apply(Un,e)}function M2(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!co(i(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Qi(e,t){for(t&=~TI,t&=~$m,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-lo(t),r=1<<n;e[n]=-1,t&=~r}}function Ob(e){if(Ce&6)throw Error(U(327));uu();var t=gm(e,0);if(!(t&1))return Yn(e,Rt()),null;var n=wm(e,t);if(e.tag!==0&&n===2){var r=ag(e);r!==0&&(t=r,n=kg(e,r))}if(n===1)throw n=nf,Ta(e,0),Qi(e,t),Yn(e,Rt()),n;if(n===6)throw Error(U(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,pa(e,Un,ri),Yn(e,Rt()),null}function OI(e,t){var n=Ce;Ce|=1;try{return e(t)}finally{Ce=n,Ce===0&&(_u=Rt()+500,Km&&ms())}}function Ra(e){ts!==null&&ts.tag===0&&!(Ce&6)&&uu();var t=Ce;Ce|=1;var n=Fr.transition,r=Be;try{if(Fr.transition=null,Be=1,e)return e()}finally{Be=r,Fr.transition=n,Ce=t,!(Ce&6)&&ms()}}function gI(){lr=ru.current,rt(ru)}function Ta(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;
vendor: 5,989 bytes, line 8
8if(n!==-1&&(e.timeoutHandle=-1,c2(n)),Nt!==null)for(n=Nt.return;n!==null;){var r=n;switch(eI(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Nm();break;case 3:mu(),rt(Hn),rt(hn),uI();break;case 5:lI(r);break;case 4:mu();break;case 13:rt(pt);break;case 19:rt(pt);break;case 10:oI(r.type._context);break;case 22:case 23:gI()}n=n.return}if(Bt=e,Nt=e=us(e.current,null),tn=lr=t,Pt=0,nf=null,TI=$m=Sa=0,Un=wd=null,Ea!==null){for(t=0;t<Ea.length;t++)if(n=Ea[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,i=n.pending;if(i!==null){var s=i.next;i.next=o,r.next=s}n.pending=r}Ea=null}return e}function cC(e,t){do{var n=Nt;try{if(rI(),cm.current=Mm,xm){for(var r=mt.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}xm=!1}if(Ia=0,wt=Ct=mt=null,Gd=!1,Qd=0,_I.current=null,n===null||n.return===null){Pt=1,nf=t,Nt=null;break}e:{var i=e,s=n.return,a=n,l=t;if(t=tn,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,c=a,d=c.tag;if(!(c.mode&1)&&(d===0||d===11||d===15)){var f=c.alternate;f?(c.updateQueue=f.updateQueue,c.memoizedState=f.memoizedState,c.lanes=f.lanes):(c.updateQueue=null,c.memoizedState=null)}var p=sb(s);if(p!==null){p.flags&=-257,ab(p,s,a,i,t),p.mode&1&&ib(i,u,t),t=p,l=u;var _=t.updateQueue;if(_===null){var T=new Set;T.add(l),t.updateQueue=T}else _.add(l);break e}else{if(!(t&1)){ib(i,u,t),II();break e}l=Error(U(426))}}else if(ct&&a.mode&1){var h=sb(s);if(h!==null){!(h.flags&65536)&&(h.flags|=256),ab(h,s,a,i,t),tI(Eu(l,a));break e}}i=l=Eu(l,a),Pt!==4&&(Pt=2),wd===null?wd=[i]:wd.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var m=XL(i,l,t);Qy(i,m);break e;case 1:a=l;var E=i.type,O=i.stateNode;if(!(i.flags&128)&&(typeof E.getDerivedStateFromError=="function"||O!==null&&typeof O.componentDidCatch=="function"&&(as===null||!as.has(O)))){i.flags|=65536,t&=-t,i.lanes|=t;var g=jL(i,a,t);Qy(i,g);break e}}i=i.return}while(i!==null)}pC(n)}catch(I){t=I,Nt===n&&n!==null&&(Nt=n=n.return);continue}break}while(1)}function dC(){var e=km.current;return km.current=Mm,e===null?Mm:e}function II(){(Pt===0||Pt===3||Pt===2)&&(Pt=4),Bt===null||!(Sa&268435455)&&!($m&268435455)||Qi(Bt,tn)}function wm(e,t){var n=Ce;Ce|=2;var r=dC();(Bt!==e||tn!==t)&&(ri=null,Ta(e,t));do try{k2();break}catch(o){cC(e,o)}while(1);if(rI(),Ce=n,km.current=r,Nt!==null)throw Error(U(261));return Bt=null,tn=0,Pt}function k2(){for(;Nt!==null;)fC(Nt)}function G2(){for(;Nt!==null&&!uH();)fC(Nt)}function fC(e){var t=EC(e.alternate,e,lr);e.memoizedProps=e.pendingProps,t===null?pC(e):Nt=t,_I.current=null}function pC(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=C2(n,t),n!==null){n.flags&=32767,Nt=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Pt=6,Nt=null;return}}else if(n=L2(n,t,lr),n!==null){Nt=n;return}if(t=t.sibling,t!==null){Nt=t;return}Nt=t=e}while(t!==null);Pt===0&&(Pt=5)}function pa(e,t,n){var r=Be,o=Fr.transition;try{Fr.transition=null,Be=1,F2(e,t,n,r)}finally{Fr.transition=o,Be=r}return null}function F2(e,t,n,r){do uu();while(ts!==null);if(Ce&6)throw Error(U(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(U(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(OH(e,i),e===Bt&&(Nt=Bt=null,tn=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||im||(im=!0,_C(Om,function(){return uu(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=Fr.transition,Fr.transition=null;var s=Be;Be=1;var a=Ce;Ce|=4,_I.current=null,D2(e,n),aC(n,e),i2(pg),Im=!!fg,pg=fg=null,e.current=n,v2(n,e,o),cH(),Ce=a,Be=s,Fr.transition=i}else e.current=n;if(im&&(im=!1,ts=e,Fm=o),i=e.pendingLanes,i===0&&(as=null),pH(n.stateNode,r),Yn(e,Rt()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Gm)throw Gm=!1,e=xg,xg=null,e;return Fm&1&&e.tag!==0&&uu(),i=e.pendingLanes,i&1?e===Mg?Bd++:(Bd=0,Mg=e):Bd=0,ms(),null}function uu(){if(ts!==null){var e=Xb(Fm),t=Fr.transition,n=Be;try{if(Fr.transition=null,Be=16>e?16:e,ts===null)var r=!1;else{if(e=ts,ts=null,Fm=0,Ce&6)throw Error(U(331));var o=Ce;for(Ce|=4,$=e.current;$!==null;){var i=$,s=i.child;if($.flags&16){var a=i.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for($=u;$!==null;){var c=$;switch(c.tag){case 0:case 11:case 15:Fd(8,c,i)}var d=c.child;if(d!==null)d.return=c,$=d;else for(;$!==null;){c=$;var f=c.sibling,p=c.return;if(oC(c),c===u){$=null;break}if(f!==null){f.return=p,$=f;break}$=p}}}var _=i.alternate;if(_!==null){var T=_.child;if(T!==null){_.child=null;do{var h=T.sibling;T.sibling=null,T=h}while(T!==null)}}$=i}}if(i.subtreeFlags&2064&&s!==null)s.return=i,$=s;else e:for(;$!==null;){if(i=$,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Fd(9,i,i.return)}var m=i.sibling;if(m!==null){m.return=i.return,$=m;break e}$=i.return}}var E=e.current;for($=E;$!==null;){s=$;var O=s.child;if(s.subtreeFlags&2064&&O!==null)O.return=s,$=O;else e:for(s=E;$!==null;){if(a=$,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:jm(9,a)}}catch(I){_t(a,a.return,I)}if(a===s){$=null;break e}var g=a.sibling;if(g!==null){g.return=a.return,$=g;break e}$=a.return}}if(Ce=o,ms(),ko&&typeof ko.onPostCommitFiberRoot=="function")try{ko.onPostCommitFiberRoot(Um,e)}catch{}r=!0}return r}finally{Be=n,Fr.transition=t}}return!1}function gb(e,t,n){t=Eu(n,t),t=XL(e,t,1),e=ss(e,t,1),t=Dn(),e!==null&&(rf(e,1,t),Yn(e,t))}function _t(e,t,n){if(e.tag===3)gb(e,e,n);else for(;t!==null;){if(t.tag===3){gb(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(as===null||!as.has(r))){e=Eu(n,e),e=jL(t,e,1),t=ss(t,e,1),e=Dn(),t!==null&&(rf(t,1,e),Yn(t,e));break}}t=t.return}}function w2(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Dn(),e.pingedLanes|=e.suspendedLanes&n,Bt===e&&(tn&n)===n&&(Pt===4||Pt===3&&(tn&130023424)===tn&&500>Rt()-hI?Ta(e,0):TI|=n),Yn(e,t)}
vendor: 2,007 bytes, line 8
8function mC(e,t){t===0&&(e.mode&1?(t=Kp,Kp<<=1,!(Kp&130023424)&&(Kp=4194304)):t=1);var n=Dn();e=ci(e,t),e!==null&&(rf(e,t,n),Yn(e,n))}function B2(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),mC(e,n)}function U2(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(U(314))}r!==null&&r.delete(t),mC(e,n)}var EC;EC=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Hn.current)Vn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Vn=!1,b2(e,t,n);Vn=!!(e.flags&131072)}else Vn=!1,ct&&t.flags&1048576&&OL(t,Lm,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;fm(e,t),e=t.pendingProps;var o=du(t,hn.current);lu(t,n),o=dI(null,t,r,e,o,n);var i=fI();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Wn(r)?(i=!0,ym(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,sI(t),o.updater=Xm,t.stateNode=o,o._reactInternals=t,Sg(t,r,e,n),t=Ng(null,t,r,!0,i,n)):(t.tag=0,ct&&i&&Qg(t),Pn(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(fm(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=H2(r),e=io(r,e),o){case 0:t=Ag(null,t,r,e,n);break e;case 1:t=cb(null,t,r,e,n);break e;case 11:t=lb(null,t,r,e,n);break e;case 14:t=ub(null,t,r,io(r.type,e),n);break e}throw Error(U(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:io(r,o),Ag(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:io(r,o),cb(e,t,r,o,n);case 3:e:{if(qL(t),e===null)throw Error(U(387));r=t.pendingProps,i=t.memoizedState,o=i.element,NL(e,t),Dm(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Eu(Error(U(423)),t),t=db(e,t,r,n,o);break e}
vendor: 7,736 bytes, line 8
8else if(r!==o){o=Eu(Error(U(424)),t),t=db(e,t,r,n,o);break e}else for(ur=is(t.stateNode.containerInfo.firstChild),cr=t,ct=!0,ao=null,n=RL(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(fu(),r===o){t=di(e,t,n);break e}Pn(e,t,r,n)}t=t.child}return t;case 5:return yL(t),e===null&&Og(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,mg(r,o)?s=null:i!==null&&mg(r,i)&&(t.flags|=32),JL(e,t),Pn(e,t,s,n),t.child;case 6:return e===null&&Og(t),null;case 13:return QL(e,t,n);case 4:return aI(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=pu(t,null,r,n):Pn(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:io(r,o),lb(e,t,r,o,n);case 7:return Pn(e,t,t.pendingProps,n),t.child;case 8:return Pn(e,t,t.pendingProps.children,n),t.child;case 12:return Pn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,$e(Cm,r._currentValue),r._currentValue=s,i!==null)if(co(i.value,s)){if(i.children===o.children&&!Hn.current){t=di(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=ai(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),gg(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(U(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),gg(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}Pn(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,lu(t,n),o=wr(o),r=r(o),t.flags|=1,Pn(e,t,r,n),t.child;case 14:return r=t.type,o=io(r,t.pendingProps),o=io(r.type,o),ub(e,t,r,o,n);case 15:return $L(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:io(r,o),fm(e,t),t.tag=1,Wn(r)?(e=!0,ym(t)):e=!1,lu(t,n),zL(t,r,o),Sg(t,r,o,n),Ng(null,t,r,!0,e,n);case 19:return eC(e,t,n);case 22:return ZL(e,t,n)}throw Error(U(156,t.tag))};function _C(e,t){return Wb(e,t)}function V2(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Gr(e,t,n,r){return new V2(e,t,n,r)}function SI(e){return e=e.prototype,!(!e||!e.isReactComponent)}function H2(e){if(typeof e=="function")return SI(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Vg)return 11;if(e===Hg)return 14}return 2}function us(e,t){var n=e.alternate;return n===null?(n=Gr(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Em(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")SI(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Xl:return ha(n.children,o,i,t);case Ug:s=8,o|=8;break;case zO:return e=Gr(12,n,t,o|2),e.elementType=zO,e.lanes=i,e;case XO:return e=Gr(13,n,t,o),e.elementType=XO,e.lanes=i,e;case jO:return e=Gr(19,n,t,o),e.elementType=jO,e.lanes=i,e;case yb:return Zm(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ab:s=10;break e;case Nb:s=9;break e;case Vg:s=11;break e;case Hg:s=14;break e;case Zi:s=16,r=null;break e}throw Error(U(130,e==null?e:typeof e,""))}return t=Gr(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function ha(e,t,n,r){return e=Gr(7,e,r,t),e.lanes=n,e}function Zm(e,t,n,r){return e=Gr(22,e,r,t),e.elementType=yb,e.lanes=n,e.stateNode={isHidden:!1},e}function WO(e,t,n){return e=Gr(6,e,null,t),e.lanes=n,e}function YO(e,t,n){return t=Gr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function W2(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=bO(0),this.expirationTimes=bO(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=bO(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function RI(e,t,n,r,o,i,s,a,l){return e=new W2(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Gr(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},sI(i),e}function Y2(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:zl,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function TC(e){if(!e)return ds;e=e._reactInternals;e:{if(Na(e)!==e||e.tag!==1)throw Error(U(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Wn(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(U(171))}if(e.tag===1){var n=e.type;if(Wn(n))return TL(e,n,t)}return t}function hC(e,t,n,r,o,i,s,a,l){return e=RI(n,r,!0,e,o,i,s,a,l),e.context=TC(null),n=e.current,r=Dn(),o=ls(n),i=ai(r,o),i.callback=t??null,ss(n,i,o),e.current.lanes=o,rf(e,o,r),Yn(e,r),e}function Jm(e,t,n,r){var o=t.current,i=Dn(),s=ls(o);return n=TC(n),t.context===null?t.context=n:t.pendingContext=n,t=ai(i,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=ss(o,t,s),e!==null&&(uo(e,o,s,i),um(e,o,s)),s}function Bm(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Ib(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function AI(e,t){Ib(e,t),(e=e.alternate)&&Ib(e,t)}function K2(){return null}var OC=typeof reportError=="function"?reportError:function(e){console.error(e)};function NI(e){this._internalRoot=e}qm.prototype.render=NI.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(U(409));Jm(e,t,null,null)};qm.prototype.unmount=NI.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ra(function(){Jm(null,e,null,null)}),t[ui]=null}};function qm(e){this._internalRoot=e}qm.prototype.unstable_scheduleHydration=function(e){if(e){var t=Zb();e={blockedOn:null,target:e,priority:t};for(var n=0;n<qi.length&&t!==0&&t<qi[n].priority;n++);qi.splice(n,0,e),n===0&&qb(e)}};function yI(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Qm(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Sb(){}function z2(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var u=Bm(s);i.call(u)}}var s=hC(t,r,e,0,null,!1,!1,"",Sb);return e._reactRootContainer=s,e[ui]=s.current,jd(e.nodeType===8?e.parentNode:e),Ra(),s}for(;
vendor: 4,911 bytes, line 8
8o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var a=r;r=function(){var u=Bm(l);a.call(u)}}var l=RI(e,0,!1,null,null,!1,!1,"",Sb);return e._reactRootContainer=l,e[ui]=l.current,jd(e.nodeType===8?e.parentNode:e),Ra(function(){Jm(t,l,n,r)}),l}function eE(e,t,n,r,o){var i=n._reactRootContainer;if(i){var s=i;if(typeof o=="function"){var a=o;o=function(){var l=Bm(s);a.call(l)}}Jm(t,s,e,o)}else s=z2(n,t,e,o,r);return Bm(s)}jb=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Cd(t.pendingLanes);n!==0&&(Kg(t,n|1),Yn(t,Rt()),!(Ce&6)&&(_u=Rt()+500,ms()))}break;case 13:Ra(function(){var r=ci(e,1);if(r!==null){var o=Dn();uo(r,e,1,o)}}),AI(e,1)}};zg=function(e){if(e.tag===13){var t=ci(e,134217728);if(t!==null){var n=Dn();uo(t,e,134217728,n)}AI(e,134217728)}};$b=function(e){if(e.tag===13){var t=ls(e),n=ci(e,t);if(n!==null){var r=Dn();uo(n,e,t,r)}AI(e,t)}};Zb=function(){return Be};Jb=function(e,t){var n=Be;try{return Be=e,t()}finally{Be=n}};og=function(e,t,n){switch(t){case"input":if(JO(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Ym(r);if(!o)throw Error(U(90));Lb(r),JO(r,o)}}}break;case"textarea":Pb(e,n);break;case"select":t=n.value,t!=null&&ou(e,!!n.multiple,t,!1)}};Fb=OI;wb=Ra;var X2={usingClientEntryPoint:!1,Events:[sf,Jl,Ym,kb,Gb,OI]},Nd={findFiberByHostInstance:ma,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},j2={bundleType:Nd.bundleType,version:Nd.version,rendererPackageName:Nd.rendererPackageName,rendererConfig:Nd.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:fi.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Vb(e),e===null?null:e.stateNode},findFiberByHostInstance:Nd.findFiberByHostInstance||K2,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(yd=__REACT_DEVTOOLS_GLOBAL_HOOK__,!yd.isDisabled&&yd.supportsFiber))try{Um=yd.inject(j2),ko=yd}catch{}var yd;pr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=X2;pr.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!yI(t))throw Error(U(200));return Y2(e,t,null,n)};pr.createRoot=function(e,t){if(!yI(e))throw Error(U(299));var n=!1,r="",o=OC;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=RI(e,1,!1,null,null,n,!1,r,o),e[ui]=t.current,jd(e.nodeType===8?e.parentNode:e),new NI(t)};pr.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(U(188)):(e=Object.keys(e).join(","),Error(U(268,e)));return e=Vb(t),e=e===null?null:e.stateNode,e};pr.flushSync=function(e){return Ra(e)};pr.hydrate=function(e,t,n){if(!Qm(t))throw Error(U(200));return eE(null,e,t,!0,n)};pr.hydrateRoot=function(e,t,n){if(!yI(e))throw Error(U(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",s=OC;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=hC(t,null,e,1,n??null,o,!1,i,s),e[ui]=t.current,jd(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new qm(t)};pr.render=function(e,t,n){if(!Qm(t))throw Error(U(200));return eE(null,e,t,!1,n)};pr.unmountComponentAtNode=function(e){if(!Qm(e))throw Error(U(40));return e._reactRootContainer?(Ra(function(){eE(null,null,e,!1,function(){e._reactRootContainer=null,e[ui]=null})}),!0):!1};pr.unstable_batchedUpdates=OI;pr.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Qm(n))throw Error(U(200));if(e==null||e._reactInternals===void 0)throw Error(U(38));return eE(e,t,n,!1,r)};pr.version="18.3.1-next-f1338f8080-20240426"});var Ou=ar((eZ,SC)=>{"use strict";function IC(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(IC)}catch(e){console.error(e)}}IC(),SC.exports=gC()});var tE=ar(bI=>{"use strict";var RC=Ou();bI.createRoot=RC.createRoot,bI.hydrateRoot=RC.hydrateRoot;var tZ});var GC=ar(iE=>{"use strict";var aW=W(),lW=Symbol.for("react.element"),uW=Symbol.for("react.fragment"),cW=Object.prototype.hasOwnProperty,dW=aW.__SECRET_INT
8ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,fW={key:!0,ref:!0,__self:!0,__source:!0};function kC(e,t,n){var r,o={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)cW.call(t,r)&&!fW.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:lW,type:e,key:i,ref:s,props:o,_owner:dW.current}}iE.Fragment=uW;iE.jsx=kC;iE.jsxs=kC});var _e=ar((aZ,FC)=>{"use strict";FC.exports=GC()});var vI=ar((uZ,sE)=>{(function(){"use strict";var e={}.hasOwnProperty;function t(){for(var o="",i=0;i<arguments.length;i++){var s=arguments[i];s&&(o=r(o,n(s)))}return o}function n(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return t.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var i="";for(var s in o)e.call(o,s)&&o[s]&&(i=r(i,s));return i}function r(o,i){return i?o?o+" "+i:o+i:o}typeof sE<"u"&&sE.exports?(t.default=t,sE.exports=t):typeof define=="function"&&typeof define.amd=="object"&&define.amd?define("classnames",[],function(){return t}):window.classNames=t})()});var jI=ar((aP,pE)=>{(function(e,t,n){typeof pE<"u"&&pE.exports?pE.exports=n():typeof define=="function"&&define.amd?define(t,n):e[t]=n()})(aP,"bowser",function(){var e=!0;function t(l){function u(P){var z=l.match(P);return z&&z.length>1&&z[1]||""}function c(P){var z=l.match(P);return z&&z.length>1&&z[2]||""}var d=u(/(ipod|iphone|ipad)/i).toLowerCase(),f=/like android/i.test(l),p=!f&&/android/i.test(l),_=/nexus\s*[0-6]\s*/i.test(l),T=!_&&/nexus\s*[0-9]+/i.test(l),h=/CrOS/.test(l),m=/silk/i.test(l),E=/sailfish/i.test(l),O=/tizen/i.test(l),g=/(web|hpw)os/i.test(l),I=/windows phone/i.test(l),S=/SamsungBrowser/i.test(l),A=!I&&/windows/i.test(l),R=!d&&!m&&/macintosh/i.test(l),y=!p&&!E&&!O&&!g&&/linux/i.test(l),b=c(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),L=u(/version\/(\d+(\.\d+)?)/i),D=/tablet/i.test(l)&&!/tablet pc/i.test(l),F=!D&&/[^-]mobi/i.test(l),H=/xbox/i.test(l),N;/opera/i.test(l)?N={name:"Opera",opera:e,version:L||u(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(l)?N={name:"Opera",opera:e,version:u(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||L}:/SamsungBrowser/i.test(l)?N={name:"Samsung Internet for Android",samsungBrowser:e,version:L||u(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/coast/i.test(l)?N={name:"Opera Coast",coast:e,version:L||u(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/yabrowser/i.test(l)?N={name:"Yandex Browser",yandexbrowser:e,version:L||u(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(l)?N={name:"UC Browser",ucbrowser:e,version:u(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(l)?N={name:"Maxthon",maxthon:e,version:u(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(l)?N={name:"Epiphany",epiphany:e,version:u(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(l)?N={name:"Puffin",puffin:e,version:u(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(l)?N={name:"Sleipnir",sleipnir:e,version:u(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(l)?N={name:"K-Meleon",kMeleon:e,version:u(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:I?(N={name:"Windows Phone",osname:"Windows Phone",windowsphone:e},b?(N.msedge=e,N.version=b):(N.msie=e,N.version=u(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(l)?N={name:"Internet Explorer",msie:e,version:u(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:h?N={name:"Chrome",osname:"Chrome OS",chromeos:e,chromeBook:e,chrome:e,version:u(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(l)?N={name:"Microsoft Edge",msedge:e,version:b}:/vivaldi/i.test(l)?N={name:"Vivaldi",vivaldi:e,version:u(/vivaldi\/(\d+(\.\d+)?)/i)||L}:E?N={name:"Sailfish",osname:"Sailfish OS",sailfish:e,version:u(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(l)?N={name:"SeaMonkey",seamonkey:e,version:u(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(l)?(N={name:"Firefox",firefox:e,version:u(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(l)&&(N.firefoxos=e,N.osname="Firefox OS")):m?N={name:"Amazon Silk",silk:e,version:u(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(l)?N={name:"PhantomJS",phantom:e,version:u(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(l)?N={name:"SlimerJS",slimer:e,version:u(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(l)||/rim\stablet/i.test(l)?N={name:"BlackBerry",osname:"BlackBerry OS",blackberry:e,version:L||u(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:g?(N={name:"WebOS",osname:"WebOS",webos:e,version:L||u(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(l)&&(N.touchpad=e)):/bada/i.test(l)?N={name:"Bada",osname:"Bada",bada:e,version:u(/dolfin\/(\d+(\.\d+)?)/i)}:O?N={name:"Tizen",osname:"Tizen",tizen:e,version:u(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||L}:/qupzilla/i.test(l)?N={name:"QupZilla",qupzilla:e,version:u(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||L}:/chromium/i.test(l)?N={name:"Chromium",chromium:e,version:u(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||L}:/chrome|crios|crmo/i.test(l)?N={name:"Chrome",chrome:e,version:u(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:p?N={name:"Android",version:L}:/safari|applewebkit/i.test(l)?(N={name:"Safari",safari:e},L&&(N.version=L)):d?(N={name:d=="iphone"?"iPhone":d=="ipad"?"iPad":"iPod"},L&&(N.version=L)):/googlebot/i.test(l)?N={name:"Googlebot",googlebot:e,version:u(/googlebot\/(\d+(\.\d+))/i)||L}:N={name:u(/^(.*)\/(.*) /),version:c(/^(.*)\/(.*) /)},!N.msedge&&/(apple)?webkit/i.test(l)?(/(apple)?webkit\/537\.36/i.test(l)?(N.name=N.name||"Blink",N.blink=e):(N.name=N.name||"Webkit",N.webkit=e),!N.version&&L&&(N.version=L)):!N.opera&&/gecko\//i.test(l)&&(N.name=N.name||"Gecko",N.gecko=e,N.version=N.version||u(/gecko\/(\d+(\.\d+)?)/i)),!N.windowsphone&&(p||N.silk)?(N.android=e,N.osname="Android"):!N.windowsphone&&d?(N[d]=e,N.ios=e,
8N.osname="iOS"):R?(N.mac=e,N.osname="macOS"):H?(N.xbox=e,N.osname="Xbox"):A?(N.windows=e,N.osname="Windows"):y&&(N.linux=e,N.osname="Linux");function K(P){switch(P){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}var C="";N.windows?C=K(u(/Windows ((NT|XP)( \d\d?.\d)?)/i)):N.windowsphone?C=u(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):N.mac?(C=u(/Mac OS X (\d+([_\.\s]\d+)*)/i),C=C.replace(/[_\s]/g,".")):d?(C=u(/os (\d+([_\s]\d+)*) like mac os x/i),C=C.replace(/[_\s]/g,".")):p?C=u(/android[ \/-](\d+(\.\d+)*)/i):N.webos?C=u(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):N.blackberry?C=u(/rim\stablet\sos\s(\d+(\.\d+)*)/i):N.bada?C=u(/bada\/(\d+(\.\d+)*)/i):N.tizen&&(C=u(/tizen[\/\s](\d+(\.\d+)*)/i)),C&&(N.osversion=C);var M=!N.windows&&C.split(".")[0];return D||T||d=="ipad"||p&&(M==3||M>=4&&!F)||N.silk?N.tablet=e:(F||d=="iphone"||d=="ipod"||p||_||N.blackberry||N.webos||N.bada)&&(N.mobile=e),N.msedge||N.msie&&N.version>=10||N.yandexbrowser&&N.version>=15||N.vivaldi&&N.version>=1||N.chrome&&N.version>=20||N.samsungBrowser&&N.version>=4||N.firefox&&N.version>=20||N.safari&&N.version>=6||N.opera&&N.version>=10||N.ios&&N.osversion&&N.osversion.split(".")[0]>=6||N.blackberry&&N.version>=10.1||N.chromium&&N.version>=20?N.a=e:N.msie&&N.version<10||N.chrome&&N.version<20||N.firefox&&N.version<20||N.safari&&N.version<6||N.opera&&N.version<10||N.ios&&N.osversion&&N.osversion.split(".")[0]<6||N.chromium&&N.version<20?N.c=e:N.x=e,N}var n=t(typeof navigator<"u"&&navigator.userAgent||"");n.test=function(l){for(var u=0;u<l.length;++u){var c=l[u];if(typeof c=="string"&&c in n)return!0}return!1};function r(l){return l.split(".").length}function o(l,u){var c=[],d;if(Array.prototype.map)return Array.prototype.map.call(l,u);for(d=0;d<l.length;d++)c.push(u(l[d]));return c}function i(l){for(var u=Math.max(r(l[0]),r(l[1])),c=o(l,function(d){var f=u-r(d);return d=d+new Array(f+1).join(".0"),o(d.split("."),function(p){return new Array(20-p.length).join("0")+p}).reverse()});--u>=0;){if(c[0][u]>c[1][u])return 1;if(c[0][u]===c[1][u]){if(u===0)return 0}else return-1}}function s(l,u,c){var d=n;typeof u=="string"&&(c=u,u=void 0),u===void 0&&(u=!1),c&&(d=t(c));var f=""+d.version;for(var p in l)if(l.hasOwnProperty(p)&&d[p]){if(typeof l[p]!="string")throw new Error("Browser version in the minVersion map should be a string: "+p+": "+String(l));return i([f,l[p]])<0}return u}function a(l,u,c){return!s(l,u,c)}return n.isUnsupportedBrowser=s,n.compareVersions=i,n.check=a,n._detect=t,n.detect=t,n})});var k,G,w,Bv,Uv,ic,yi,Vv,Ja,Fe=Qt(()=>{k=function(e){return e[e.FADE_DEPRECATED=0]="FADE_DEPRECATED",e[e.MOVE_DEPRECATED=1]="MOVE_DEPRECATED",e[e.ROTATE_DEPRECATED=2]="ROTATE_DEPRECATED",e[e.SCALE=3]="SCALE",e[e.RESIZE_DEPRECATED=4]="RESIZE_DEPRECATED",e[e.NEW=5]="NEW",e[e.TEXT_DATA=6]="TEXT_DATA",e[e.PATH_DRAW_DEPRECATED=7]="PATH_DRAW_DEPRECATED",e[e.PATH_TRAVEL_DEPRECATED=8]="PATH_TRAVEL_DEPRECATED",e[e.OPACITY=9]="OPACITY",e[e.CORNER_RADIUS=10]="CORNER_RADIUS",e[e.ROTATION=11]="ROTATION",e[e.PATH=12]="PATH",e[e.POSITION=13]="POSITION",e[e.SIZE=14]="SIZE",e}({}),G=function(e){return e[e.NONE=0]="NONE",e[e.BOOL=1]="BOOL",e[e.TEXT=2]="TEXT",e[e.INSTANCE_SWAP=3]="INSTANCE_SWAP",e[e.VARIANT=4]="VARIANT",e[e.NUMBER=5]="NUMBER",e[e.IMAGE=6]="IMAGE",e[e.SLOT=7]="SLOT",e[e.EASING=8]="EASING",e[e.COLOR=9]="COLOR",e[e.VECTOR=10]="VECTOR",e[e.CIRCLE=11]="CIRCLE",e[e.COLOR_POINT=12]="COLOR_POINT",e[e.LINE=13]="LINE",e[e.CIRCLE_POINT=14]="CIRCLE_POINT",e[e.GRADIENT=15]="GRADIENT",e}({}),w=function(e){return e[e.IN_CUBIC=0]="IN_CUBIC",e[e.OUT_CUBIC=1]="OUT_CUBIC",e[e.INOUT_CUBIC=2]="INOUT_CUBIC",e[e.LINEAR=3]="LINEAR",e[e.IN_BACK_CUBIC=4]="IN_BACK_CUBIC",e[e.OUT_BACK_CUBIC=5]="OUT_BACK_CUBIC",e[e.INOUT_BACK_CUBIC=6]="INOUT_BACK_CUBIC",e[e.CUSTOM_CUBIC=7]="CUSTOM_CUBIC",e[e.SPRING=8]="SPRING",e[e.GENTLE_SPRING=9]="GENTLE_SPRING",e[e.CUSTOM_SPRING=10]="CUSTOM_SPRING",e[e.SPRING_PRESET_ONE=11]="SPRING_PRESET_ONE",e[e.SPRING_PRESET_TWO=12]="SPRING_PRESET_TWO",e[e.SPRING_PRESET_THREE=13]="SPRING_PRESET_THREE",e[e.HOL
8D=14]="HOLD",e[e.EASE_IN=15]="EASE_IN",e}({}),Bv=function(e){return e[e.DESIGN_LAYOUT=0]="DESIGN_LAYOUT",e[e.WHITEBOARD_LAYOUT=1]="WHITEBOARD_LAYOUT",e[e.VECTOR=2]="VECTOR",e[e.TEXT=3]="TEXT",e[e.RASTER=4]="RASTER",e[e.GRADIENT=5]="GRADIENT",e[e.PLACE_IMAGE=6]="PLACE_IMAGE",e[e.HISTORY=7]="HISTORY",e[e.PREVIEW=8]="PREVIEW",e[e.COMMENTS=9]="COMMENTS",e[e.BRANCHING=10]="BRANCHING",e[e.DEV_HANDOFF=11]="DEV_HANDOFF",e[e.COMPARE_CHANGES=12]="COMPARE_CHANGES",e[e.LIBRARY=13]="LIBRARY",e[e.DEV_HANDOFF_HISTORY=14]="DEV_HANDOFF_HISTORY",e[e.SLIDE_LAYOUT=15]="SLIDE_LAYOUT",e[e.MAGIC_LINK=16]="MAGIC_LINK",e[e.BUZZ_LAYOUT=17]="BUZZ_LAYOUT",e[e.PROGRESSIVE_BLUR=18]="PROGRESSIVE_BLUR",e[e.COOPER_BULK_CREATE=19]="COOPER_BULK_CREATE",e[e.CMS_BINDING_CONSTRAINED=20]="CMS_BINDING_CONSTRAINED",e[e.SITES_LAYOUT=21]="SITES_LAYOUT",e[e.OFFSET_PATH=22]="OFFSET_PATH",e[e.GEN_EFFECT_CONTROLS=23]="GEN_EFFECT_CONTROLS",e}({}),Uv=function(e){return e[e.DESIGN=0]="DESIGN",e[e.WHITEBOARD=1]="WHITEBOARD",e[e.SLIDES=2]="SLIDES",e[e.DEV_HANDOFF=3]="DEV_HANDOFF",e[e.SITES=4]="SITES",e[e.COOPER=5]="COOPER",e[e.ILLUSTRATION=6]="ILLUSTRATION",e[e.FIGMAKE=7]="FIGMAKE",e[e.FIGSPEC=8]="FIGSPEC",e}({}),ic=function(e){return e[e.NONE=0]="NONE",e[e.PRODUCT_COMPONENT=1]="PRODUCT_COMPONENT",e[e.TOP_LEVEL_FRAME_PARENT=2]="TOP_LEVEL_FRAME_PARENT",e[e.INSTANCE_SUBLAYER=3]="INSTANCE_SUBLAYER",e[e.UNSUPPORTED_NODE_TYPE=4]="UNSUPPORTED_NODE_TYPE",e}({}),yi=function(e){return e[e.MISSING=0]="MISSING",e[e.CORNER_RADIUS=1]="CORNER_RADIUS",e[e.PARAGRAPH_SPACING=2]="PARAGRAPH_SPACING",e[e.PARAGRAPH_INDENT=3]="PARAGRAPH_INDENT",e[e.STROKE_WEIGHT=4]="STROKE_WEIGHT",e[e.STACK_SPACING=5]="STACK_SPACING",e[e.STACK_PADDING_LEFT=6]="STACK_PADDING_LEFT",e[e.STACK_PADDING_TOP=7]="STACK_PADDING_TOP",e[e.STACK_PADDING_RIGHT=8]="STACK_PADDING_RIGHT",e[e.STACK_PADDING_BOTTOM=9]="STACK_PADDING_BOTTOM",e[e.VISIBLE=10]="VISIBLE",e[e.TEXT_DATA=11]="TEXT_DATA",e[e.WIDTH=12]="WIDTH",e[e.HEIGHT=13]="HEIGHT",e[e.RECTANGLE_TOP_LEFT_CORNER_RADIUS=14]="RECTANGLE_TOP_LEFT_CORNER_RADIUS",e[e.RECTANGLE_TOP_RIGHT_CORNER_RADIUS=15]="RECTANGLE_TOP_RIGHT_CORNER_RADIUS",e[e.RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS=16]="RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS",e[e.RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS=17]="RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS",e[e.BORDER_TOP_WEIGHT=18]="BORDER_TOP_WEIGHT",e[e.BORDER_BOTTOM_WEIGHT=19]="BORDER_BOTTOM_WEIGHT",e[e.BORDER_LEFT_WEIGHT=20]="BORDER_LEFT_WEIGHT",e[e.BORDER_RIGHT_WEIGHT=21]="BORDER_RIGHT_WEIGHT",e[e.VARIANT_PROPERTIES=22]="VARIANT_PROPERTIES",e[e.STACK_COUNTER_SPACING=23]="STACK_COUNTER_SPACING",e[e.MIN_WIDTH=24]="MIN_WIDTH",e[e.MAX_WIDTH=25]="MAX_WIDTH",e[e.MIN_HEIGHT=26]="MIN_HEIGHT",e[e.MAX_HEIGHT=27]="MAX_HEIGHT",e[e.FONT_FAMILY=28]="FONT_FAMILY",e[e.FONT_STYLE=29]="FONT_STYLE",e[e.FONT_VARIATIONS=30]="FONT_VARIATIONS",e[e.OPACITY=31]="OPACITY",e[e.FONT_SIZE=32]="FONT_SIZE",e[e.LETTER_SPACING=34]="LETTER_SPACING",e[e.LINE_HEIGHT=36]="LINE_HEIGHT",e[e.OVERRIDDEN_SYMBOL_ID=37]="OVERRIDDEN_SYMBOL_ID",e[e.CMS_SERIALIZED_RICH_TEXT_DATA=38]="CMS_SERIALIZED_RICH_TEXT_DATA",e[e.HYPERLINK=39]="HYPERLINK",e[e.SLOT_CONTENT_ID=40]="SLOT_CONTENT_ID",e[e.GRID_ROW_GAP=41]="GRID_ROW_GAP",e[e.GRID_COLUMN_GAP=42]="GRID_COLUMN_GAP",e[e.RELATIVE_X_POSITION=43]="RELATIVE_X_POSITION",e[e.RELATIVE_Y_POSITION=44]="RELATIVE_Y_POSITION",e[e.RELATIVE_ROTATION=45]="RELATIVE_ROTATION",e[e.MOTION_TRANSLATION_X=46]="MOTION_TRANSLATION_X",e[e.MOTION_TRANSLATION_Y=47]="MOTION_TRANSLATION_Y",e[e.MOTION_ROTATION=48]="MOTION_ROTATION",e[e.MOTION_SCALE_X=49]="MOTION_SCALE_X",e[e.MOTION_SCALE_Y=50]="MOTION_SCALE_Y",e[e.MOTION_SHEAR=51]="MOTION_SHEAR",e[e.SCROLL_OFFSET_X=52]="SCROLL_OFFSET_X",e[e.SCROLL_OFFSET_Y=53]="SCROLL_OFFSET_Y",e[e.PATH_TRIM_START=54]="PATH_TRIM_START",e[e.PATH_TRIM_END=55]="PATH_TRIM_END",e[e.DISSOLVE_PROGRESS=56]="DISSOLVE_PROGRESS",e[e.EASING_DATA=57]="EASING_DATA",e[e.MEDIA_CURRENT_TIME=58]="MEDIA_CURRENT_TIME",e[e.TRANSFORM_3D_PERSPECTIVE=59]="TRANSFORM_3D_PERSPECTIVE",e[e.TRANSFORM_3D_TRANSLATION_Z=60]="TRANSFORM_3D_TRANSLATION_Z",e[e.TRANSFORM_3D_ROTATION_X=61]="TRANSFORM_3D_ROTATION_X",e[e.TRANSFORM_3D_ROTATION_Y=62]="TRANSFORM_3D_ROTATION_Y",e[e.TRANSFORM_3D_ROTATION_Z=63]="TRANSFORM_3D_ROTATION_Z",e[e.POLYGON_COUNT=64]="POLYGON_COUNT",e[e.ARC_DATA_STARTING_ANGLE=65]="ARC_DATA_STARTING_ANGLE",e[e.ARC_DATA_ENDING_ANGLE=66]="ARC_DATA_ENDING_ANGLE",e[e.ARC_DATA_INNER_RADIUS=67]="ARC_DATA_INNER_RADIUS",e[e.KEYFRAME_VALUE=68]="KEYFRAME_VALUE",e[e.MOTION_TRANSLATION_XY=69]="MOTION_TRANSLATION_XY",e[e.MOTION_SCALE_XY=70]="MOTION_SCALE_XY",e[e.SCENE_3D_PERSPECTIVE=71]="SCENE_3D_PERSPECTIVE",e[e.STAR_INNER_SCALE=72]="STAR_INNER_SCALE",e}({}),Vv=function(e){return e[e.NONE=0]="NONE",e[e.SELECT=1]="SELECT",e[e.HAND=2]="HAND",e[e.COMMENTS=3]="COMMENTS",e[e.DROPPER_COLOR=4]="DROPPER_COLOR",e[e.FRAME=5]="FRAME",e[e.SLICE=6]="SLICE",e[e.STACK=7]="STACK",e[e.SHAPE_STAR=8]="SHAPE_STAR",e[e.SHAPE_LINE=9]="SHAPE_LINE",e[e.SHAPE_ARROW=10]="SHAPE_ARROW",e[e.SHAPE_ELLIPSE=11]="SHAPE_ELLIPSE",e[e.SHAPE_RECTANGLE=12]="SHAPE_RECTANGLE",e[e.SHAPE_REGULAR_POLYGON=13]="SHAPE_REGULAR_POLYGON",e[e.VECTOR_PEN=14]="VECTOR_PEN",e[e.VECTOR_PENCIL=15]="VECTOR_PENCIL",e[e.VECTOR_E
8RASER=16]="VECTOR_ERASER",e[e.VECTOR_BEND=17]="VECTOR_BEND",e[e.VECTOR_CUT=18]="VECTOR_CUT",e[e.VECTOR_PAINT_BUCKET=19]="VECTOR_PAINT_BUCKET",e[e.VECTOR_VAR_WIDTH_POINT=20]="VECTOR_VAR_WIDTH_POINT",e[e.SHAPE_BUILDER=21]="SHAPE_BUILDER",e[e.VECTOR_LASSO=22]="VECTOR_LASSO",e[e.IMAGE_LASSO=23]="IMAGE_LASSO",e[e.TYPE=24]="TYPE",e[e.TEXT_PATH=25]="TEXT_PATH",e[e.SCALE=26]="SCALE",e[e.STICKY=27]="STICKY",e[e.STAMP=28]="STAMP",e[e.SHAPE_WHITEBOARD_SQUARE=29]="SHAPE_WHITEBOARD_SQUARE",e[e.SHAPE_WHITEBOARD_ELLIPSE=30]="SHAPE_WHITEBOARD_ELLIPSE",e[e.SHAPE_WHITEBOARD_DIAMOND=31]="SHAPE_WHITEBOARD_DIAMOND",e[e.SHAPE_WHITEBOARD_TRIANGLE_UP=32]="SHAPE_WHITEBOARD_TRIANGLE_UP",e[e.SHAPE_WHITEBOARD_TRIANGLE_DOWN=33]="SHAPE_WHITEBOARD_TRIANGLE_DOWN",e[e.SHAPE_WHITEBOARD_ROUNDED_RECTANGLE=34]="SHAPE_WHITEBOARD_ROUNDED_RECTANGLE",e[e.SHAPE_WHITEBOARD_PARALLELOGRAM_RIGHT=35]="SHAPE_WHITEBOARD_PARALLELOGRAM_RIGHT",e[e.SHAPE_WHITEBOARD_PARALLELOGRAM_LEFT=36]="SHAPE_WHITEBOARD_PARALLELOGRAM_LEFT",e[e.CONNECTOR_ELBOWED=37]="CONNECTOR_ELBOWED",e[e.CONNECTOR_STRAIGHT=38]="CONNECTOR_STRAIGHT",e[e.CONNECTOR_CURVED=39]="CONNECTOR_CURVED",e[e.CODE_BLOCK=40]="CODE_BLOCK",e[e.SHAPE_WHITEBOARD_ENG_DATABASE=41]="SHAPE_WHITEBOARD_ENG_DATABASE",e[e.SHAPE_WHITEBOARD_ENG_QUEUE=42]="SHAPE_WHITEBOARD_ENG_QUEUE",e[e.SHAPE_WHITEBOARD_ENG_FILE=43]="SHAPE_WHITEBOARD_ENG_FILE",e[e.SHAPE_WHITEBOARD_ENG_FOLDER=44]="SHAPE_WHITEBOARD_ENG_FOLDER",e[e.ERASER=45]="ERASER",e[e.HIGHLIGHTER=46]="HIGHLIGHTER",e[e.SECTION=47]="SECTION",e[e.WASHI_TAPE=48]="WASHI_TAPE",e[e.TABLE=49]="TABLE",e[e.SHAPE_WHITEBOARD_TRAPEZOID=50]="SHAPE_WHITEBOARD_TRAPEZOID",e[e.SHAPE_WHITEBOARD_STAR=51]="SHAPE_WHITEBOARD_STAR",e[e.SHAPE_WHITEBOARD_SHIELD=52]="SHAPE_WHITEBOARD_SHIELD",e[e.SHAPE_WHITEBOARD_HEXAGON=53]="SHAPE_WHITEBOARD_HEXAGON",e[e.SHAPE_WHITEBOARD_PENTAGON=54]="SHAPE_WHITEBOARD_PENTAGON",e[e.SHAPE_WHITEBOARD_OCTAGON=55]="SHAPE_WHITEBOARD_OCTAGON",e[e.SHAPE_WHITEBOARD_PLUS=56]="SHAPE_WHITEBOARD_PLUS",e[e.SHAPE_WHITEBOARD_PREDEFINED_PROCESS=57]="SHAPE_WHITEBOARD_PREDEFINED_PROCESS",e[e.SHAPE_WHITEBOARD_MANUAL_INPUT=58]="SHAPE_WHITEBOARD_MANUAL_INPUT",e[e.SHAPE_WHITEBOARD_CHEVRON=59]="SHAPE_WHITEBOARD_CHEVRON",e[e.SHAPE_WHITEBOARD_DOCUMENT_SINGLE=60]="SHAPE_WHITEBOARD_DOCUMENT_SINGLE",e[e.SHAPE_WHITEBOARD_DOCUMENT_MULTIPLE=61]="SHAPE_WHITEBOARD_DOCUMENT_MULTIPLE",e[e.SHAPE_WHITEBOARD_ARROW_LEFT=62]="SHAPE_WHITEBOARD_ARROW_LEFT",e[e.SHAPE_WHITEBOARD_ARROW_RIGHT=63]="SHAPE_WHITEBOARD_ARROW_RIGHT",e[e.SHAPE_WHITEBOARD_SUMMING_JUNCTION=64]="SHAPE_WHITEBOARD_SUMMING_JUNCTION",e[e.SHAPE_WHITEBOARD_OR=65]="SHAPE_WHITEBOARD_OR",e[e.SHAPE_WHITEBOARD_SPEECH_BUBBLE=66]="SHAPE_WHITEBOARD_SPEECH_BUBBLE",e[e.SHAPE_WHITEBOARD_INTERNAL_STORAGE=67]="SHAPE_WHITEBOARD_INTERNAL_STORAGE",e[e.SHAPE_WHITEBOARD_MINDMAP_TREE_NUCLEUS=68]="SHAPE_WHITEBOARD_MINDMAP_TREE_NUCLEUS",e[e.SHAPE_WHITEBOARD_PLATFORM=69]="SHAPE_WHITEBOARD_PLATFORM",e[e.ANNOTATE=70]="ANNOTATE",e[e.IMAGE_OR_VIDEO=71]="IMAGE_OR_VIDEO",e[e.MEASURE=72]="MEASURE",e[e.SLIDES_POLL=73]="SLIDES_POLL",e[e.SLIDES_EMBED=74]="SLIDES_EMBED",e[e.SLIDES_FACEPILE=75]="SLIDES_FACEPILE",e[e.SLIDES_ALIGNMENT_SCALE=76]="SLIDES_ALIGNMENT_SCALE",e[e.SLIDES_YOUTUBE=77]="SLIDES_YOUTUBE",e[e.SLIDE_NUMBER=78]="SLIDE_NUMBER",e[e.HAND_SELECT=79]="HAND_SELECT",e[e.MULTISELECT=80]="MULTISELECT",e[e.LASSO=81]="LASSO",e[e.SITES_RESPONSIVE_SET=82]="SITES_RESPONSIVE_SET",e[e.SITES_RESPONSIVE_NODE_SET=83]="SITES_RESPONSIVE_NODE_SET",e[e.SITES_LINK=84]="SITES_LINK",e[e.CODE_COMPONENT=85]="CODE_COMPONENT",e[e.SITES_EMBED=86]="SITES_EMBED",e[e.PATTERN_SOURCE_SELECTOR=87]="PATTERN_SOURCE_SELECTOR",e[e.BRUSH=88]="BRUSH",e[e.KEYBOARD_SELECT=89]="KEYBOARD_SELECT",e[e.JSX=90]="JSX",e[e.OFFSET_PATH=91]="OFFSET_PATH",e[e.SIMPLIFY_VECTOR=92]="SIMPLIFY_VECTOR",e[e.RECOLOR=93]="RECOLOR",e[e.RECOLOR_DEBUG=94]="RECOLOR_DEBUG",e[e.SITES_WEBPAGE=95]="SITES_WEBPAGE",e}({}),Ja=function(e){return e[e.BOOLEAN=0]="BOOLEAN",e[e.FLOAT=1]="FLOAT",e[e.STRING=2]="STRING",e[e.COLOR=3]="COLOR",e[e.MAP=4]="MAP",e[e.SYMBOL_ID=5]="SYMBOL_ID",e[e.FONT_STYLE=6]="FONT_STYLE",e[e.TEXT_DATA=7]="TEXT_DATA",e[e.IMAGE=8]="IMAGE",e[e.LINK=9]="LINK",e[e.JS_RUNTIME_ALIAS=10]="JS_RUNTIME_ALIAS",e[e.SLOT_CONTENT_ID=11]="SLOT_CONTENT_ID",e[e.KEYFRAME_TRACK_ID=12]="KEYFRAME_TRACK_ID",e[e.KEYFRAME_TRACK_PARAMETER_DATA=13]="KEYFRAME_TRACK_PARAMETER_DATA",e[e.EASING=14]="EASING",e[e.TIMING=15]="TIMING",e[e.VECTOR=16]="VECTOR",e[e.COLOR_ARRAY=17]="COLOR_ARRAY",e[e.LINE=18]="LINE",e[e.CIRCLE=19]="CIRCLE",e[e.ROTATION_3D=20]="ROTATION_3D",e[e.CIRCLE_POINT=21]="CIRCLE_POINT",e[e.GRADIENT=22]="GRADIENT",e[e.COLOR_POINT=23]="COLOR_POINT",e}({})});var Fx,wx,Bx=Qt(()=>
8{Fx=`// Source-of-truth for the CORNER_RADIUS first-party animation preset. 9// 10// The build-time preset-bundle codegen (see \`../scripts/generate_preset_bundles.ts\`) 11// reads this file's raw text, esbuilds it into an IIFE with \`figma:motion\` 12// resolved, and emits both strings into \`../generated/corner_radius.generated.ts\`. 13// The generated module is what runtime code consumes \u2014 never import this file 14// directly from production code paths. 15// 16// This file is excluded from the share/motion \`ts_project\` compilation \u2014 it's 17// only an input to the codegen tool, evaluated inside the QuickJS / iframe 18// sandbox at runtime. 19 20import { animate, defineProperties, EasingType, tween } from 'figma:motion' 21 22import type { PresetArgs } from './preset_types' 23 24// Field names must match the contract in 25// \`code-components-transpiler/shared/src/motion_constants.ts\` \u2014 any value not 26// recognized there causes \`animate()\` to throw "unknown or non-keyframeable 27// property" at materialization time. 28const CORNER_FIELD_MAP: Record<string, string> = { 29 all: 'cornerRadius', 30 topLeft: 'rectangleTopLeftCornerRadius', 31 topRight: 'rectangleTopRightCornerRadius', 32 bottomLeft: 'rectangleBottomLeftCornerRadius', 33 bottomRight: 'rectangleBottomRightCornerRadius', 34} 35 36const CORNER_KEYS = ['all', 'topLeft', 'topRight', 'bottomLeft', 'bottomRight'] as const 37type CornerKey = (typeof CORNER_KEYS)[number] 38 39export default function preset({ 40 type, 41 corner, 42 amount, 43 allStartFrame, 44 allEndFrame, 45 topLeftStartFrame, 46 topLeftEndFrame, 47 topRightStartFrame, 48 topRightEndFrame, 49 bottomLeftStartFrame, 50 bottomLeftEndFrame, 51 bottomRightStartFrame, 52 bottomRightEndFrame, 53 duration, 54 easing, 55 target, 56}: PresetArgs) { 57 const selectedCorner: CornerKey = (corner as CornerKey) || 'all' 58 59 function getFromTo(cornerKey: CornerKey): [number, number] { 60 if (type === 'custom') { 61 switch (cornerKey) { 62 case 'topLeft': 63 return [topLeftStartFrame, topLeftEndFrame] 64 case 'topRight': 65 return [topRightStartFrame, topRightEndFrame] 66 case 'bottomLeft': 67 return [bottomLeftStartFrame, bottomLeftEndFrame] 68 case 'bottomRight': 69 return [bottomRightStartFrame, bottomRightEndFrame] 70 case 'all': 71 default: 72 return [allStartFrame, allEndFrame] 73 } 74 } 75 if (type === 'roundOut') return [amount, 0] 76 return [0, amount] 77 } 78 79 // Always emit all five corner tracks so their KEYFRAME_TRACK GUIDs survive \`corner\` toggles. The 80 // C++ side honors \`enabled=false\` by marking the track invisible. 81 const definition: Record<string, unknown> = {} 82 for (const cornerKey of CORNER_KEYS) { 83 const fieldName = CORNER_FIELD_MAP[cornerKey] 84 const enabled = cornerKey === selectedCorner 85 const [from, to] = getFromTo(cornerKey) 86 definition[fieldName] = tween({ 87 mode: 'offset', 88 timelinePosition: 0, 89 duration, 90 from, 91 to, 92 easing, 93 enabled, 94 }) 95 } 96 97 return [animate(target, definition)] 98} 99 100// KEEP_IN_SYNC(share/motion/src/presets/corner_radius_meta.ts) \u2014 the 101// property bounds (min/max/unit) must match \`PROP_DEFS[*].inputConfig\` so the 102// panel-side TS metadata and the bundled IIFE agree on every prop's contract. 103defineProperties(preset, { 104 type: { 105 label: 'motion.preset_flyout.type', 106 type: 'string', 107 defaultValue: 'roundIn', 108 control: 'select', 109 options: [ 110 { value: 'roundIn', label: 'motion.preset_flyout.corner_radius.type.round_in' }, 111 { value: 'roundOut', label: 'motion.preset_flyout.corner_radius.type.round_out' }, 112 { value: 'custom', label: 'motion.preset_flyout.type.custom' }, 113 ], 114 }, 115 corner: { 116 label: 'motion.preset_flyout.corner_radius.corner', 117 type: 'string', 118 defaultValue: 'all', 119 control: 'select', 120 options: [ 121 { value: 'all', label: 'motion.preset_flyout.corner_radius.corner.all' }, 122 { value: 'topLeft', label: 'motion.preset_flyout.corner_radius.corner.top_left' }, 123 { value: 'topRight', label: 'motion.preset_flyout.corner_radius.corner.top_right' }, 124 { value: 'bottomLeft', label: 'motion.preset_flyout.corner_radius.corner.bottom_left' }, 125 { value: 'bottomRight', label: 'motion.preset_flyout.corner_radius.corner.bottom_right' }, 126 ], 127 }, 128 amount: { 129 label: 'motion.preset_flyout.amount', 130 type: 'number', 131 defaultValue: 10, 132 control: 'input', 133 min: 0, 134 unit: 'px', 135 },
136 // TODO(showDividerAbove-cleanup): the \`showDividerAbove\` flags in this file 137 // are redundant \u2014 section dividers are now applied client-side in the preset 138 // flyout via \`forceShowDividerAboveTransform\` 139 allStartFrame: { 140 label: 'motion.preset_flyout.start_frame', 141 type: 'number', 142 defaultValue: 10, 143 control: 'input', 144 min: 0, 145 unit: 'px', 146 showDividerAbove: true, 147 icon: 'radius_all', 148 }, 149 allEndFrame: { 150 label: 'motion.preset_flyout.end_frame', 151 type: 'number', 152 defaultValue: 0, 153 control: 'input', 154 min: 0, 155 unit: 'px', 156 icon: 'radius_all', 157 }, 158 topLeftStartFrame: { 159 label: 'motion.preset_flyout.start_frame', 160 type: 'number', 161 defaultValue: 0, 162 control: 'input', 163 min: 0, 164 unit: 'px', 165 showDividerAbove: true, 166 icon: 'radius_top_left', 167 }, 168 topLeftEndFrame: { 169 label: 'motion.preset_flyout.end_frame', 170 type: 'number', 171 defaultValue: 20, 172 control: 'input', 173 min: 0, 174 unit: 'px', 175 icon: 'radius_top_left', 176 },
177 topRightStartFrame: { 178 label: 'motion.preset_flyout.start_frame', 179 type: 'number', 180 defaultValue: 0, 181 control: 'input', 182 min: 0, 183 unit: 'px', 184 showDividerAbove: true, 185 icon: 'radius_top_right', 186 }, 187 topRightEndFrame: { 188 label: 'motion.preset_flyout.end_frame', 189 type: 'number', 190 defaultValue: 20, 191 control: 'input', 192 min: 0, 193 unit: 'px', 194 icon: 'radius_top_right', 195 }, 196 bottomLeftStartFrame: { 197 label: 'motion.preset_flyout.start_frame', 198 type: 'number', 199 defaultValue: 0, 200 control: 'input', 201 min: 0, 202 unit: 'px', 203 showDividerAbove: true, 204 icon: 'radius_bottom_left', 205 }, 206 bottomLeftEndFrame: { 207 label: 'motion.preset_flyout.end_frame', 208 type: 'number', 209 defaultValue: 20, 210 control: 'input', 211 min: 0, 212 unit: 'px', 213 icon: 'radius_bottom_left', 214 }, 215 bottomRightStartFrame: { 216 label: 'motion.preset_flyout.start_frame', 217 type: 'number', 218 defaultValue: 0, 219 control: 'input', 220 min: 0, 221 unit: 'px', 222 showDividerAbove: true, 223 icon: 'radius_bottom_right', 224 }, 225 bottomRightEndFrame: { 226 label: 'motion.preset_flyout.end_frame', 227 type: 'number', 228 defaultValue: 20, 229 control: 'input', 230 min: 0, 231 unit: 'px', 232 icon: 'radius_bottom_right', 233 }, 234 // Note: 'delay' is kept in sync with a preset's \`timelineOffset\`. 235 delay: { 236 label: 'motion.preset_flyout.delay', 237 type: 'number', 238 defaultValue: 0, 239 control: 'input', 240 unit: 's', 241 showDividerAbove: true, 242 icon: 'delay', 243 }, 244 duration: { 245 label: 'motion.preset_flyout.duration', 246 type: 'number', 247 defaultValue: 0.5, 248 control: 'input', 249 min: 0.01, 250 unit: 's', 251 icon: 'time', 252 }, 253 easing: { 254 label: 'motion.preset_flyout.easing', 255 type: 'easing', 256 defaultValue: { easingType: EasingType.OUT_CUBIC }, 257 }, 258}) 259`,wx=`var __presetBundle = (() => { 260 var __defProp = Object.defineProperty; 261 var __getOwnPropDesc = Object.getOwnPropertyDescriptor; 262 var __getOwnPropNames = Object.getOwnPropertyNames; 263 var __hasOwnProp = Object.prototype.hasOwnProperty; 264 var __export = (target, all) => { 265 for (var name in all) 266 __defProp(target, name, { get: all[name], enumerable: true }); 267 }; 268 var __copyProps = (to, from, except, desc) => { 269 if (from && typeof from === "object" || typeof from === "function") { 270 for (let key of __getOwnPropNames(from)) 271 if (!__hasOwnProp.call(to, key) && key !== except) 272 __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); 273 } 274 return to; 275 }; 276 var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); 277 278
278// ../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/share/motion/src/presets/source/corner_radius.ts 279 var corner_radius_exports = {}; 280 __export(corner_radius_exports, { 281 default: () => preset 282 }); 283 284 // figma-motion:figma:motion 285 function defineProperties(component, spec) { 286 Object.assign(component, { 287 [/* @__PURE__ */ Symbol.for("figma.react.props")]: spec 288 }); 289 } 290 var EasingType = { 291 IN_CUBIC: 0, 292 inCubic: 0, 293 OUT_CUBIC: 1, 294 outCubic: 1, 295 INOUT_CUBIC: 2, 296 inOutCubic: 2, 297 LINEAR: 3, 298 linear: 3, 299 IN_BACK_CUBIC: 4, 300 inBackCubic: 4, 301 OUT_BACK_CUBIC: 5, 302 outBackCubic: 5, 303 INOUT_BACK_CUBIC: 6, 304 inOutBackCubic: 6, 305 CUSTOM_CUBIC: 7, 306 customCubic: 7, 307 SPRING: 8, 308 spring: 8, 309 GENTLE_SPRING: 9, 310 gentleSpring: 9, 311 CUSTOM_SPRING: 10, 312 customSpring: 10, 313 SPRING_PRESET_ONE: 11, 314 springPresetOne: 11, 315 SPRING_PRESET_TWO: 12, 316 springPresetTwo: 12, 317 SPRING_PRESET_THREE: 13, 318 springPresetThree: 13, 319 // For backwards compat 320 bezier: 100, 321 BEZIER: 100 322 }; 323 var InterpolationType = { 324 HOLD: 0, 325 hold: 0, 326 BEZIER: 1, 327 bezier: 1 328 }; 329 var KeyframeOperation = { 330 SET: 0, 331 set: 0, 332 SCALE: 1, 333 scale: 1, 334 OFFSET: 2, 335 offset: 2 336 }; 337 var ParameterField = { 338 MISSING: 0, 339 missing: 0, 340 CORNER_RADIUS: 1, 341 cornerRadius: 1, 342 PARAGRAPH_SPACING: 2, 343 paragraphSpacing: 2, 344 PARAGRAPH_INDENT: 3, 345 paragraphIndent: 3, 346 STROKE_WEIGHT: 4, 347 strokeWeight: 4, 348 STACK_SPACING: 5, 349 stackSpacing: 5, 350 STACK_PADDING_LEFT: 6, 351 stackPaddingLeft: 6, 352 STACK_PADDING_TOP: 7, 353 stackPaddingTop: 7, 354 STACK_PADDING_RIGHT: 8, 355 stackPaddingRight: 8, 356 STACK_PADDING_BOTTOM: 9, 357 stackPaddingBottom: 9, 358 VISIBLE: 10, 359 visible: 10, 360 TEXT_DATA: 11, 361 textData: 11, 362 WIDTH: 12, 363 width: 12, 364 HEIGHT: 13, 365 height: 13, 366 RECTANGLE_TOP_LEFT_CORNER_RADIUS: 14, 367 rectangleTopLeftCornerRadius: 14, 368 RECTANGLE_TOP_RIGHT_CORNER_RADIUS: 15, 369 rectangleTopRightCornerRadius: 15, 370 RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS: 16, 371 rectangleBottomLeftCornerRadius: 16, 372 RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS: 17, 373 rectangleBottomRightCornerRadius: 17, 374 BORDER_TOP_WEIGHT: 18, 375 borderTopWeight: 18, 376 BORDER_BOTTOM_WEIGHT: 19, 377 borderBottomWeight: 19, 378 BORDER_LEFT_WEIGHT: 20, 379 borderLeftWeight: 20, 380 BORDER_RIGHT_WEIGHT: 21, 381 borderRightWeight: 21, 382 VARIANT_PROPERTIES: 22, 383 variantProperties: 22, 384 STACK_COUNTER_SPACING: 23, 385 stackCounterSpacing: 23, 386 MIN_WIDTH: 24, 387 minWidth: 24, 388 MAX_WIDTH: 25, 389 maxWidth: 25, 390 MIN_HEIGHT: 26, 391 minHeight: 26, 392 MAX_HEIGHT: 27, 393 maxHeight: 27, 394 FONT_FAMILY: 28, 395 fontFamily: 28, 396 FONT_STYLE: 29, 397 fontStyle: 29, 398 FONT_VARIATIONS: 30, 399 fontVariations: 30, 400 OPACITY: 31, 401 opacity: 31, 402 FONT_SIZE: 32, 403 fontSize: 32, 404 LETTER_SPACING: 34, 405 letterSpacing: 34, 406 LINE_HEIGHT: 36, 407 lineHeight: 36, 408 OVERRIDDEN_SYMBOL_ID: 37, 409 overriddenSymbolId: 37, 410 CMS_SERIALIZED_RICH_TEXT_DATA: 38, 411 cmsSerializedRichTextData: 38, 412 HYPERLINK: 39, 413 hyperlink: 39, 414 SLOT_CONTENT_ID: 40, 415 slotContentId: 40, 416 GRID_ROW_GAP: 41, 417 gridRowGap: 41, 418 GRID_COLUMN_GAP: 42, 419 gridColumnGap: 42, 420 RELATIVE_X_POSITION: 43, 421 xPosition: 43, 422 RELATIVE_Y_POSITION: 44, 423 relativeYPosition: 44, 424 RELATIVE_ROTATION: 45, 425 relativeRotation: 45, 426 MOTION_TRANSLATION_X: 46, 427 motionTranslationX: 46, 428 MOTION_TRANSLATION_Y: 47, 429 motionTranslationY: 47, 430 MOTION_ROTATION: 48, 431 motionRotation: 48, 432 MOTION_SCALE_X: 49, 433 motionScaleX: 49, 434 MOTION_SCALE_Y: 50, 435 motionScaleY: 50, 436 MOTION_SHEAR: 51, 437 motionShear: 51, 438 SCROLL_OFFSET_X: 52, 439 scrollOffsetX: 52, 440 SCROLL_OFFSET_Y: 53, 441 scrollOffsetY: 53, 442 PATH_TRIM_START: 54, 443 pathTrimStart: 54, 444 PATH_TRIM_END: 55, 445 pathTrimEnd: 55, 446 DISSOLVE_PROGRESS: 56, 447 dissolveProgress: 56 448 }; 449 var Keyframe = class { 450 constructor(data) { 451 this.timelinePosition = Math.round(data.timelinePosition); 452 this.easing = data.easing; 453 this.value = data.value; 454 } 455 }; 456 var KeyframeTrack = class { 457 constructor(data) { 458 this.topLevelField = data.topLevelField; 459 this.parameterField = data.parameterField; 460 this.index = data.index; 461 this.effectParametrizedField = data.effectParametrizedField; 462 this.keyframeOperation = data.keyframeOperation; 463 this.keyframes = data.keyframes; 464 this.enabled = !!data.enabled; 465 } 466 }; 467 var AnimationPreset = class { 468 constructor(data) { 469 this.nodeId = data.nodeId; 470 this.keyframeTracks = data.keyframeTracks; 471 } 472 }; 473 var PARAMETER_FIELD_ALIAS_MAP = { 474 translateX: ParameterField.MOTION_TRANSLATION_X, 475 translateY: ParameterField.MOTION_TRANSLATION_Y, 476 rotate: ParameterField.MOTION_ROTATION, 477 scaleX: ParameterField.MOTION_SCALE_X, 478 scaleY: ParameterField.MOTION_SCALE_Y, 479 shear: ParameterField.MOTION_SHEAR 480 }; 481 var KEYFRAMEABLE_FIELDS = /* @__PURE__ */ new Set([ 482 "translateX", 483 "translateY", 484 "rotate", 485 "scaleX", 486 "scaleY", 487 "shear", 488 "cornerRadius", 489 "strokeWeight", 490 "rectangleTopLeftCornerRadius", 491 "rectangleTopRightCornerRadius", 492 "rectangleBottomLeftCornerRadius", 493 "rectangleBottomRightCornerRadius", 494 "stackSpacing", 495 "stackPaddingLeft", 496 "stackPaddingTop", 497 "stackPaddingRight", 498 "stackPaddingBottom", 499 "width", 500 "height", 501 "borderTopWeight", 502 "borderBottomWeight", 503 "borderLeftWeight", 504 "borderRightWeight", 505 "stackCounterSpacing", 506 "minWidth", 507 "maxWidth", 508 "minHeight", 509 "maxHeight", 510 "opacity", 511 "gridRowGap", 512 "gridColumnGap", 513 "textData", 514 "pathTrimStart", 515 "pathTrimEnd" 516 ]); 517 var MODE_TO_OPERATION = { 518 set: KeyframeOperation.SET, 519 SET: KeyframeOperation.SET, 520 offset: KeyframeOperation.OFFSET, 521 OFFSET: KeyframeOperation.OFFSET, 522 scale: KeyframeOperation.SCALE, 523 SCALE: KeyframeOperation.SCALE 524 }; 525 function normalizeEasing(easing) { 526 if (easing === void 0) return void 0; 527 if (easing === "hold") return { interpolationType: InterpolationType.HOLD }; 528 if (typeof easing === "string") { 529 const easingType = EasingType[easing]; 530 if (easingType === void 0) throw new Error('normalizeEasing: unknown easing "' + easing + '"'); 531 return { easingType }; 532 } 533 return easing; 534 } 535 function compileKeyframe({ timelinePosition, value, easing }) { 536 return new Keyframe({ 537 timelinePosition: timelinePosition * 1e6, 538 easing: normalizeEasing(easing), 539 value 540 }); 541 } 542 function tween({ mode, timelinePosition = 0, duration, from, to, easing, enabled = true }) { 543 if (duration < 0) throw new Error("tween: duration must be non-negative"); 544 return { 545 mode, 546 enabled, 547 keyframes: [ 548 { timelinePosition, value: from, easing }, 549 { timelinePosition: timelinePosition + duration, value: to, easing } 550 ] 551 }; 552 } 553 function animate(node, definition) { 554 const nodeId = typeof node === "string" ? node : node.id;
555 const keyframeTracks = []; 556 for (const [key, trackDef] of Object.entries(definition)) { 557 if (!KEYFRAMEABLE_FIELDS.has(key)) { 558 throw new Error('animate: unknown or non-keyframeable property "' + key + '"'); 559 } 560 const parameterField = PARAMETER_FIELD_ALIAS_MAP[key] ?? ParameterField[key]; 561 const operation = MODE_TO_OPERATION[trackDef.mode]; 562 if (operation === void 0) throw new Error('animate: unknown mode "' + trackDef.mode + '"'); 563 const seen = /* @__PURE__ */ new Map(); 564 for (const kf of trackDef.keyframes) seen.set(kf.timelinePosition, kf); 565 const sorted = [...seen.values()].sort((a, b) => a.timelinePosition - b.timelinePosition); 566 keyframeTracks.push(new KeyframeTrack({ 567 parameterField, 568 keyframeOperation: operation, 569 keyframes: sorted.map(compileKeyframe), 570 enabled: trackDef.enabled !== false 571 })); 572 } 573 return new AnimationPreset({ nodeId, keyframeTracks }); 574 } 575 576
576// ../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/share/motion/src/presets/source/corner_radius.ts 577 var CORNER_FIELD_MAP = { 578 all: "cornerRadius", 579 topLeft: "rectangleTopLeftCornerRadius", 580 topRight: "rectangleTopRightCornerRadius", 581 bottomLeft: "rectangleBottomLeftCornerRadius", 582 bottomRight: "rectangleBottomRightCornerRadius" 583 }; 584 var CORNER_KEYS = ["all", "topLeft", "topRight", "bottomLeft", "bottomRight"]; 585 function preset({ 586 type, 587 corner, 588 amount, 589 allStartFrame, 590 allEndFrame, 591 topLeftStartFrame, 592 topLeftEndFrame, 593 topRightStartFrame, 594 topRightEndFrame, 595 bottomLeftStartFrame, 596 bottomLeftEndFrame, 597 bottomRightStartFrame, 598 bottomRightEndFrame, 599 duration, 600 easing, 601 target 602 }) { 603 const selectedCorner = corner || "all"; 604 function getFromTo(cornerKey) { 605 if (type === "custom") { 606 switch (cornerKey) { 607 case "topLeft": 608 return [topLeftStartFrame, topLeftEndFrame]; 609 case "topRight": 610 return [topRightStartFrame, topRightEndFrame]; 611 case "bottomLeft": 612 return [bottomLeftStartFrame, bottomLeftEndFrame]; 613 case "bottomRight": 614 return [bottomRightStartFrame, bottomRightEndFrame]; 615 case "all": 616 default: 617 return [allStartFrame, allEndFrame]; 618 } 619 } 620 if (type === "roundOut") return [amount, 0]; 621 return [0, amount]; 622 } 623 const definition = {}; 624 for (const cornerKey of CORNER_KEYS) { 625 const fieldName = CORNER_FIELD_MAP[cornerKey]; 626 const enabled = cornerKey === selectedCorner; 627 const [from, to] = getFromTo(cornerKey); 628 definition[fieldName] = tween({ 629 mode: "offset", 630 timelinePosition: 0, 631 duration, 632 from, 633 to, 634 easing, 635 enabled 636 }); 637 } 638 return [animate(target, definition)]; 639 } 640 defineProperties(preset, { 641 type: { 642 label: "motion.preset_flyout.type", 643 type: "string", 644 defaultValue: "roundIn", 645 control: "select", 646 options: [ 647 { value: "roundIn", label: "motion.preset_flyout.corner_radius.type.round_in" }, 648 { value: "roundOut", label: "motion.preset_flyout.corner_radius.type.round_out" }, 649 { value: "custom", label: "motion.preset_flyout.type.custom" } 650 ] 651 }, 652 corner: { 653 label: "motion.preset_flyout.corner_radius.corner", 654 type: "string", 655 defaultValue: "all", 656 control: "select", 657 options: [ 658 { value: "all", label: "motion.preset_flyout.corner_radius.corner.all" }, 659 { value: "topLeft", label: "motion.preset_flyout.corner_radius.corner.top_left" }, 660 { value: "topRight", label: "motion.preset_flyout.corner_radius.corner.top_right" }, 661 { value: "bottomLeft", label: "motion.preset_flyout.corner_radius.corner.bottom_left" }, 662 { value: "bottomRight", label: "motion.preset_flyout.corner_radius.corner.bottom_right" } 663 ] 664 }, 665 amount: { 666 label: "motion.preset_flyout.amount", 667 type: "number", 668 defaultValue: 10, 669 control: "input", 670 min: 0, 671 unit: "px" 672 }, 673 // TODO(showDividerAbove-cleanup): the \`showDividerAbove\` flags in this file 674 // are redundant \u2014 section dividers are now applied client-side in the preset 675 // flyout via \`forceShowDividerAboveTransform\` 676 allStartFrame: { 677 label: "motion.preset_flyout.start_frame", 678 type: "number", 679 defaultValue: 10, 680 control: "input", 681 min: 0, 682 unit: "px", 683 showDividerAbove: true, 684 icon: "radius_all" 685 }, 686 allEndFrame: { 687 label: "motion.preset_flyout.end_frame", 688 type: "number", 689 defaultValue: 0, 690 control: "input", 691 min: 0, 692 unit: "px", 693 icon: "radius_all" 694 }, 695 topLeftStartFrame: { 696 label: "motion.preset_flyout.start_frame", 697 type: "number", 698 defaultValue: 0, 699 control: "input", 700 min: 0, 701 unit: "px", 702 showDividerAbove: true, 703 icon: "radius_top_left" 704 }, 705 topLeftEndFrame: { 706 label: "motion.preset_flyout.end_frame", 707 type: "number", 708 defaultValue: 20, 709 control: "input", 710 min: 0, 711 unit: "px", 712 icon: "radius_top_left" 713 }, 714 topRightStartFrame: { 715 label: "motion.preset_flyout.start_frame", 716 type: "number", 717 defaultValue: 0, 718 control: "input", 719 min: 0, 720 unit: "px", 721 showDividerAbove: true, 722 icon: "radius_top_right" 723 }, 724 topRightEndFrame: { 725 label: "motion.preset_flyout.end_frame", 726 type: "number", 727 defaultValue: 20, 728 control: "input", 729 min: 0, 730 unit: "px", 731 icon: "radius_top_right" 732 }, 733 bottomLeftStartFrame: { 734 label: "motion.preset_flyout.start_frame", 735 type: "number", 736 defaultValue: 0, 737 control: "input", 738 min: 0, 739 unit: "px", 740 showDividerAbove: true, 741 icon: "radius_bottom_left" 742 }, 743 bottomLeftEndFrame: { 744 label: "motion.preset_flyout.end_frame", 745 type: "number", 746 defaultValue: 20, 747 control: "input", 748 min: 0, 749 unit: "px", 750 icon: "radius_bottom_left" 751 }, 752 bottomRightStartFrame: { 753 label: "motion.preset_flyout.start_frame", 754 type: "number", 755 defaultValue: 0, 756 control: "input", 757 min: 0, 758 unit: "px", 759 showDividerAbove: true, 760 icon: "radius_bottom_right" 761 }, 762 bottomRightEndFrame: { 763 label: "motion.preset_flyout.end_frame", 764 type: "number", 765 defaultValue: 20, 766 control: "input", 767 min: 0, 768 unit: "px", 769 icon: "radius_bottom_right" 770 }, 771 // Note: 'delay' is kept in sync with a preset's \`timelineOffset\`. 772 delay: { 773 label: "motion.preset_flyout.delay", 774 type: "number", 775 defaultValue: 0, 776 control: "input", 777 unit: "s", 778 showDividerAbove: true, 779 icon: "delay" 780 }, 781 duration: { 782 label: "motion.preset_flyout.duration", 783 type: "number", 784 defaultValue: 0.5, 785 control: "input", 786 min: 0.01, 787 unit: "s", 788 icon: "time" 789 }, 790 easing: { 791 label: "motion.preset_flyout.easing", 792 type: "easing", 793 defaultValue: { easingType: EasingType.OUT_CUBIC } 794 } 795 }); 796 return __toCommonJS(corner_radius_exports); 797})();`});var Ux,Vx,Hx=Qt(()=>{Ux=`// Source-of-truth for the FADE first-party animation preset. 798// 799// The build-time preset-bundle codegen (see \`../scripts/generate_preset_bundles.ts\`) 800// reads this file's raw text, esbuilds it into an IIFE with \`figma:motion\` 801// resolved, and emits both strings into \`../generated/fade.generated.ts\`. The 802// generated module is what runtime code consumes \u2014 never import this file
803// directly from production code paths. 804// 805// This file is excluded from the share/motion \`ts_project\` compilation \u2014 it's 806// only an input to the codegen tool, evaluated inside the QuickJS / iframe 807// sandbox at runtime. 808 809import { animate, defineProperties, EasingType, tween } from 'figma:motion' 810 811import type { PresetArgs } from './preset_types' 812 813export default function preset({ timing, duration, easing, node }: PresetArgs) { 814 const [from, to] = timing === 'in' ? [0, 1] : [1, 0] 815 return [ 816 animate(node, { 817 opacity: tween({ 818 mode: 'scale', 819 duration, 820 from, 821 to, 822 easing, 823 }), 824 }), 825 ] 826} 827 828defineProperties(preset, { 829 timing: { 830 label: 'Timing', 831 type: 'string', 832 defaultValue: 'in', 833 control: 'select', 834 options: [ 835 { value: 'in', label: 'Fade In' }, 836 { value: 'out', label: 'Fade Out' }, 837 ], 838 }, 839 duration: { 840 label: 'Duration', 841 type: 'number', 842 defaultValue: 0.5, 843 control: 'input', 844 min: 0.01, 845 unit: 's', 846 }, 847 easing: { 848 label: 'Easing', 849 type: 'easing', 850 defaultValue: { 851 easingType: EasingType.OUT_CUBIC, 852 }, 853 }, 854}) 855`,Vx=`var __presetBundle = (() => { 856 var __defProp = Object.defineProperty; 857 var __getOwnPropDesc = Object.getOwnPropertyDescriptor; 858 var __getOwnPropNames = Object.getOwnPropertyNames; 859 var __hasOwnProp = Object.prototype.hasOwnProperty; 860 var __export = (target, all) => { 861 for (var name in all) 862 __defProp(target, name, { get: all[name], enumerable: true }); 863 }; 864 var __copyProps = (to, from, except, desc) => { 865 if (from && typeof from === "object" || typeof from === "function") { 866 for (let key of __getOwnPropNames(from)) 867 if (!__hasOwnProp.call(to, key) && key !== except) 868 __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); 869 } 870 return to; 871 }; 872 var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); 873 874
874// ../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/share/motion/src/presets/source/fade.ts 875 var fade_exports = {}; 876 __export(fade_exports, { 877 default: () => preset 878 }); 879 880 // figma-motion:figma:motion 881 function defineProperties(component, spec) { 882 Object.assign(component, { 883 [/* @__PURE__ */ Symbol.for("figma.react.props")]: spec 884 }); 885 } 886 var EasingType = { 887 IN_CUBIC: 0, 888 inCubic: 0, 889 OUT_CUBIC: 1, 890 outCubic: 1, 891 INOUT_CUBIC: 2, 892 inOutCubic: 2, 893 LINEAR: 3, 894 linear: 3, 895 IN_BACK_CUBIC: 4, 896 inBackCubic: 4, 897 OUT_BACK_CUBIC: 5, 898 outBackCubic: 5, 899 INOUT_BACK_CUBIC: 6, 900 inOutBackCubic: 6, 901 CUSTOM_CUBIC: 7, 902 customCubic: 7, 903 SPRING: 8, 904 spring: 8, 905 GENTLE_SPRING: 9, 906 gentleSpring: 9, 907 CUSTOM_SPRING: 10, 908 customSpring: 10, 909 SPRING_PRESET_ONE: 11, 910 springPresetOne: 11, 911 SPRING_PRESET_TWO: 12, 912 springPresetTwo: 12, 913 SPRING_PRESET_THREE: 13, 914 springPresetThree: 13, 915 // For backwards compat 916 bezier: 100, 917 BEZIER: 100 918 }; 919 var InterpolationType = { 920 HOLD: 0, 921 hold: 0, 922 BEZIER: 1, 923 bezier: 1 924 }; 925 var KeyframeOperation = { 926 SET: 0, 927 set: 0, 928 SCALE: 1, 929 scale: 1, 930 OFFSET: 2, 931 offset: 2 932 }; 933 var ParameterField = { 934 MISSING: 0, 935 missing: 0, 936 CORNER_RADIUS: 1, 937 cornerRadius: 1, 938 PARAGRAPH_SPACING: 2, 939 paragraphSpacing: 2, 940 PARAGRAPH_INDENT: 3, 941 paragraphIndent: 3, 942 STROKE_WEIGHT: 4, 943 strokeWeight: 4, 944 STACK_SPACING: 5, 945 stackSpacing: 5, 946 STACK_PADDING_LEFT: 6, 947 stackPaddingLeft: 6, 948 STACK_PADDING_TOP: 7, 949 stackPaddingTop: 7, 950 STACK_PADDING_RIGHT: 8, 951 stackPaddingRight: 8, 952 STACK_PADDING_BOTTOM: 9, 953 stackPaddingBottom: 9, 954 VISIBLE: 10, 955 visible: 10, 956 TEXT_DATA: 11, 957 textData: 11, 958 WIDTH: 12, 959 width: 12, 960 HEIGHT: 13, 961 height: 13, 962 RECTANGLE_TOP_LEFT_CORNER_RADIUS: 14, 963 rectangleTopLeftCornerRadius: 14, 964 RECTANGLE_TOP_RIGHT_CORNER_RADIUS: 15, 965 rectangleTopRightCornerRadius: 15, 966 RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS: 16, 967 rectangleBottomLeftCornerRadius: 16, 968 RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS: 17, 969 rectangleBottomRightCornerRadius: 17, 970 BORDER_TOP_WEIGHT: 18, 971 borderTopWeight: 18, 972 BORDER_BOTTOM_WEIGHT: 19, 973 borderBottomWeight: 19, 974 BORDER_LEFT_WEIGHT: 20, 975 borderLeftWeight: 20, 976 BORDER_RIGHT_WEIGHT: 21, 977 borderRightWeight: 21, 978 VARIANT_PROPERTIES: 22, 979 variantProperties: 22, 980 STACK_COUNTER_SPACING: 23, 981 stackCounterSpacing: 23, 982 MIN_WIDTH: 24, 983 minWidth: 24, 984 MAX_WIDTH: 25, 985 maxWidth: 25, 986 MIN_HEIGHT: 26, 987 minHeight: 26, 988 MAX_HEIGHT: 27, 989 maxHeight: 27, 990 FONT_FAMILY: 28, 991 fontFamily: 28, 992 FONT_STYLE: 29, 993 fontStyle: 29, 994 FONT_VARIATIONS: 30, 995 fontVariations: 30, 996 OPACITY: 31, 997 opacity: 31, 998 FONT_SIZE: 32, 999 fontSize: 32, 1000 LETTER_SPACING: 34, 1001 letterSpacing: 34, 1002 LINE_HEIGHT: 36, 1003 lineHeight: 36, 1004 OVERRIDDEN_SYMBOL_ID: 37, 1005 overriddenSymbolId: 37, 1006 CMS_SERIALIZED_RICH_TEXT_DATA: 38, 1007 cmsSerializedRichTextData: 38, 1008 HYPERLINK: 39, 1009 hyperlink: 39, 1010 SLOT_CONTENT_ID: 40, 1011 slotContentId: 40, 1012 GRID_ROW_GAP: 41, 1013 gridRowGap: 41, 1014 GRID_COLUMN_GAP: 42, 1015 gridColumnGap: 42, 1016 RELATIVE_X_POSITION: 43, 1017 xPosition: 43, 1018 RELATIVE_Y_POSITION: 44, 1019 relativeYPosition: 44, 1020 RELATIVE_ROTATION: 45, 1021 relativeRotation: 45, 1022 MOTION_TRANSLATION_X: 46, 1023 motionTranslationX: 46, 1024 MOTION_TRANSLATION_Y: 47, 1025 motionTranslationY: 47, 1026 MOTION_ROTATION: 48, 1027 motionRotation: 48, 1028 MOTION_SCALE_X: 49, 1029 motionScaleX: 49, 1030 MOTION_SCALE_Y: 50, 1031 motionScaleY: 50, 1032 MOTION_SHEAR: 51, 1033 motionShear: 51, 1034 SCROLL_OFFSET_X: 52, 1035 scrollOffsetX: 52, 1036 SCROLL_OFFSET_Y: 53, 1037 scrollOffsetY: 53, 1038 PATH_TRIM_START: 54, 1039 pathTrimStart: 54, 1040 PATH_TRIM_END: 55, 1041 pathTrimEnd: 55, 1042 DISSOLVE_PROGRESS: 56, 1043 dissolveProgress: 56 1044 }; 1045 var Keyframe = class { 1046 constructor(data) { 1047 this.timelinePosition = Math.round(data.timelinePosition); 1048 this.easing = data.easing; 1049 this.value = data.value; 1050 } 1051 }; 1052 var KeyframeTrack = class { 1053 constructor(data) { 1054 this.topLevelField = data.topLevelField; 1055 this.parameterField = data.parameterField; 1056 this.index = data.index; 1057 this.effectParametrizedField = data.effectParametrizedField; 1058 this.keyframeOperation = data.keyframeOperation; 1059 this.keyframes = data.keyframes; 1060 this.enabled = !!data.enabled; 1061 } 1062 }; 1063 var AnimationPreset = class { 1064 constructor(data) { 1065 this.nodeId = data.nodeId; 1066 this.keyframeTracks = data.keyframeTracks; 1067 } 1068 }; 1069 var PARAMETER_FIELD_ALIAS_MAP = { 1070 translateX: ParameterField.MOTION_TRANSLATION_X, 1071 translateY: ParameterField.MOTION_TRANSLATION_Y, 1072 rotate: ParameterField.MOTION_ROTATION, 1073 scaleX: ParameterField.MOTION_SCALE_X, 1074 scaleY: ParameterField.MOTION_SCALE_Y, 1075 shear: ParameterField.MOTION_SHEAR 1076 }; 1077 var KEYFRAMEABLE_FIELDS = /* @__PURE__ */ new Set([ 1078 "translateX", 1079 "translateY", 1080 "rotate", 1081 "scaleX", 1082 "scaleY", 1083 "shear", 1084 "cornerRadius", 1085 "strokeWeight", 1086 "rectangleTopLeftCornerRadius", 1087 "rectangleTopRightCornerRadius", 1088 "rectangleBottomLeftCornerRadius", 1089 "rectangleBottomRightCornerRadius", 1090 "stackSpacing", 1091 "stackPaddingLeft", 1092 "stackPaddingTop", 1093 "stackPaddingRight", 1094 "stackPaddingBottom", 1095 "width", 1096 "height", 1097 "borderTopWeight", 1098 "borderBottomWeight", 1099 "borderLeftWeight", 1100 "borderRightWeight", 1101 "stackCounterSpacing", 1102 "minWidth", 1103 "maxWidth", 1104 "minHeight", 1105 "maxHeight", 1106 "opacity", 1107 "gridRowGap", 1108 "gridColumnGap", 1109 "textData", 1110 "pathTrimStart", 1111 "pathTrimEnd" 1112 ]); 1113 var MODE_TO_OPERATION = { 1114 set: KeyframeOperation.SET, 1115 SET: KeyframeOperation.SET, 1116 offset: KeyframeOperation.OFFSET, 1117 OFFSET: KeyframeOperation.OFFSET, 1118 scale: KeyframeOperation.SCALE, 1119 SCALE: KeyframeOperation.SCALE 1120 }; 1121 function normalizeEasing(easing) { 1122 if (easing === void 0) return void 0; 1123 if (easing === "hold") return { interpolationType: InterpolationType.HOLD }; 1124 if (typeof easing === "string") { 1125 const easingType = EasingType[easing]; 1126 if (easingType === void 0) throw new Error('normalizeEasing: unknown easing "' + easing + '"'); 1127 return { easingType }; 1128 } 1129 return easing; 1130 } 1131 function compileKeyframe({ timelinePosition, value, easing }) { 1132 return new Keyframe({ 1133 timelinePosition: timelinePosition * 1e6, 1134 easing: normalizeEasing(easing), 1135 value 1136 }); 1137 } 1138 function tween({ mode, timelinePosition = 0, duration, from, to, easing, enabled = true }) { 1139 if (duration < 0) throw new Error("tween: duration must be non-negative"); 1140 return { 1141 mode, 1142 enabled, 1143 keyframes: [ 1144 { timelinePosition, value: from, easing }, 1145 { timelinePosition: timelinePosition + duration, value: to, easing } 1146 ] 1147 }; 1148 } 1149 function animate(node, definition) { 1150 const nodeId = typeof node === "string" ? node : node.id;
1151 const keyframeTracks = []; 1152 for (const [key, trackDef] of Object.entries(definition)) { 1153 if (!KEYFRAMEABLE_FIELDS.has(key)) { 1154 throw new Error('animate: unknown or non-keyframeable property "' + key + '"'); 1155 } 1156 const parameterField = PARAMETER_FIELD_ALIAS_MAP[key] ?? ParameterField[key]; 1157 const operation = MODE_TO_OPERATION[trackDef.mode]; 1158 if (operation === void 0) throw new Error('animate: unknown mode "' + trackDef.mode + '"'); 1159 const seen = /* @__PURE__ */ new Map(); 1160 for (const kf of trackDef.keyframes) seen.set(kf.timelinePosition, kf); 1161 const sorted = [...seen.values()].sort((a, b) => a.timelinePosition - b.timelinePosition); 1162 keyframeTracks.push(new KeyframeTrack({ 1163 parameterField, 1164 keyframeOperation: operation, 1165 keyframes: sorted.map(compileKeyframe), 1166 enabled: trackDef.enabled !== false 1167 })); 1168 } 1169 return new AnimationPreset({ nodeId, keyframeTracks }); 1170 } 1171 1172
1172// ../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/share/motion/src/presets/source/fade.ts 1173 function preset({ timing, duration, easing, node }) { 1174 const [from, to] = timing === "in" ? [0, 1] : [1, 0]; 1175 return [ 1176 animate(node, { 1177 opacity: tween({ 1178 mode: "scale", 1179 duration, 1180 from, 1181 to, 1182 easing 1183 }) 1184 }) 1185 ]; 1186 } 1187 defineProperties(preset, { 1188 timing: { 1189 label: "Timing", 1190 type: "string", 1191 defaultValue: "in", 1192 control: "select", 1193 options: [ 1194 { value: "in", label: "Fade In" }, 1195 { value: "out", label: "Fade Out" } 1196 ] 1197 }, 1198 duration: { 1199 label: "Duration", 1200 type: "number", 1201 defaultValue: 0.5, 1202 control: "input", 1203 min: 0.01, 1204 unit: "s" 1205 }, 1206 easing: { 1207 label: "Easing", 1208 type: "easing", 1209 defaultValue: { 1210 easingType: EasingType.OUT_CUBIC 1211 } 1212 } 1213 }); 1214 return __toCommonJS(fade_exports); 1215})();`});var Wx,Yx,Kx=Qt(()=>{Wx=`// Source-of-truth for the MOVE first-party animation preset. 1216// 1217// The build-time preset-bundle codegen (see \`../scripts/generate_preset_bundles.ts\`) 1218// reads this file's raw text, esbuilds it into an IIFE with \`figma:motion\` 1219// resolved, and emits both strings into \`../generated/move.generated.ts\`. The 1220// generated module is what runtime code consumes \u2014 never import this file 1221// directly from production code paths. 1222// 1223// This file is excluded from the share/motion \`ts_project\` compilation \u2014 it's 1224// only an input to the codegen tool, evaluated inside the QuickJS / iframe 1225// sandbox at runtime. 1226 1227import { animate, defineProperties, EasingType, tween } from 'figma:motion' 1228 1229import type { PresetArgs, PresetTrackDefinitions } from './preset_types' 1230 1231export default function preset({ timing, moveX, moveY, duration, fade, easing, node }: PresetArgs) { 1232 const xFrom = timing === 'in' ? moveX : 0 1233 const xTo = timing === 'in' ? 0 : moveX 1234 const yFrom = timing === 'in' ? moveY : 0 1235 const yTo = timing === 'in' ? 0 : moveY 1236 const definition: PresetTrackDefinitions = { 1237 translateX: tween({ 1238 mode: 'offset', 1239 duration, 1240 from: xFrom, 1241 to: xTo, 1242 easing, 1243 }), 1244 translateY: tween({ 1245 mode: 'offset', 1246 duration, 1247 from: yFrom, 1248 to: yTo, 1249 easing, 1250 }), 1251 } 1252 1253 if (fade) { 1254 const opFrom = timing === 'in' ? 0 : 1 1255 const opTo = timing === 'in' ? 1 : 0 1256 definition.opacity = tween({ 1257 mode: 'scale', 1258 duration, 1259 from: opFrom, 1260 to: opTo, 1261 easing, 1262 }) 1263 } 1264 1265 return [animate(node, definition)] 1266} 1267 1268defineProperties(preset, { 1269 timing: { 1270 label: 'Timing', 1271 type: 'string', 1272 defaultValue: 'out', 1273 control: 'select', 1274 options: [ 1275 { value: 'in', label: 'Move In' }, 1276 { value: 'out', label: 'Move Out' }, 1277 ], 1278 }, 1279 moveX: { 1280 label: 'Move X', 1281 type: 'number', 1282 defaultValue: 100, 1283 control: 'input', 1284 }, 1285 moveY: { 1286 label: 'Move Y', 1287 type: 'number', 1288 defaultValue: 0, 1289 control: 'input', 1290 }, 1291 duration: { 1292 label: 'Duration', 1293 type: 'number', 1294 defaultValue: 0.5, 1295 control: 'input', 1296 min: 0.01, 1297 unit: 's', 1298 }, 1299 fade: { 1300 label: 'Fade', 1301 type: 'boolean', 1302 defaultValue: false, 1303 }, 1304 easing: { 1305 label: 'Easing', 1306 type: 'easing', 1307 defaultValue: { 1308 easingType: EasingType.OUT_CUBIC, 1309 }, 1310 }, 1311}) 1312`,Yx=`var __presetBundle = (() => { 1313 var __defProp = Object.defineProperty; 1314 var __getOwnPropDesc = Object.getOwnPropertyDescriptor; 1315 var __getOwnPropNames = Object.getOwnPropertyNames; 1316 var __hasOwnProp = Object.prototype.hasOwnProperty; 1317 var __export = (target, all) => { 1318 for (var name in all) 1319 __defProp(target, name, { get: all[name], enumerable: true }); 1320 }; 1321 var __copyProps = (to, from, except, desc) => { 1322 if (from && typeof from === "object" || typeof from === "function") { 1323 for (let key of __getOwnPropNames(from)) 1324 if (!__hasOwnProp.call(to, key) && key !== except) 1325 __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); 1326 } 1327 return to; 1328 }; 1329 var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); 1330 1331
1331// ../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/share/motion/src/presets/source/move.ts 1332 var move_exports = {}; 1333 __export(move_exports, { 1334 default: () => preset 1335 }); 1336 1337 // figma-motion:figma:motion 1338 function defineProperties(component, spec) { 1339 Object.assign(component, { 1340 [/* @__PURE__ */ Symbol.for("figma.react.props")]: spec 1341 }); 1342 } 1343 var EasingType = { 1344 IN_CUBIC: 0, 1345 inCubic: 0, 1346 OUT_CUBIC: 1, 1347 outCubic: 1, 1348 INOUT_CUBIC: 2, 1349 inOutCubic: 2, 1350 LINEAR: 3, 1351 linear: 3, 1352 IN_BACK_CUBIC: 4, 1353 inBackCubic: 4, 1354 OUT_BACK_CUBIC: 5, 1355 outBackCubic: 5, 1356 INOUT_BACK_CUBIC: 6, 1357 inOutBackCubic: 6, 1358 CUSTOM_CUBIC: 7, 1359 customCubic: 7, 1360 SPRING: 8, 1361 spring: 8, 1362 GENTLE_SPRING: 9, 1363 gentleSpring: 9, 1364 CUSTOM_SPRING: 10, 1365 customSpring: 10, 1366 SPRING_PRESET_ONE: 11, 1367 springPresetOne: 11, 1368 SPRING_PRESET_TWO: 12, 1369 springPresetTwo: 12, 1370 SPRING_PRESET_THREE: 13, 1371 springPresetThree: 13, 1372 // For backwards compat 1373 bezier: 100, 1374 BEZIER: 100 1375 }; 1376 var InterpolationType = { 1377 HOLD: 0, 1378 hold: 0, 1379 BEZIER: 1, 1380 bezier: 1 1381 }; 1382 var KeyframeOperation = { 1383 SET: 0, 1384 set: 0, 1385 SCALE: 1, 1386 scale: 1, 1387 OFFSET: 2, 1388 offset: 2 1389 }; 1390 var ParameterField = { 1391 MISSING: 0, 1392 missing: 0, 1393 CORNER_RADIUS: 1, 1394 cornerRadius: 1, 1395 PARAGRAPH_SPACING: 2, 1396 paragraphSpacing: 2, 1397 PARAGRAPH_INDENT: 3, 1398 paragraphIndent: 3, 1399 STROKE_WEIGHT: 4, 1400 strokeWeight: 4, 1401 STACK_SPACING: 5, 1402 stackSpacing: 5, 1403 STACK_PADDING_LEFT: 6, 1404 stackPaddingLeft: 6, 1405 STACK_PADDING_TOP: 7, 1406 stackPaddingTop: 7, 1407 STACK_PADDING_RIGHT: 8, 1408 stackPaddingRight: 8, 1409 STACK_PADDING_BOTTOM: 9, 1410 stackPaddingBottom: 9, 1411 VISIBLE: 10, 1412 visible: 10, 1413 TEXT_DATA: 11, 1414 textData: 11, 1415 WIDTH: 12, 1416 width: 12, 1417 HEIGHT: 13, 1418 height: 13, 1419 RECTANGLE_TOP_LEFT_CORNER_RADIUS: 14, 1420 rectangleTopLeftCornerRadius: 14, 1421 RECTANGLE_TOP_RIGHT_CORNER_RADIUS: 15, 1422 rectangleTopRightCornerRadius: 15, 1423 RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS: 16, 1424 rectangleBottomLeftCornerRadius: 16, 1425 RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS: 17, 1426 rectangleBottomRightCornerRadius: 17, 1427 BORDER_TOP_WEIGHT: 18, 1428 borderTopWeight: 18, 1429 BORDER_BOTTOM_WEIGHT: 19, 1430 borderBottomWeight: 19, 1431 BORDER_LEFT_WEIGHT: 20, 1432 borderLeftWeight: 20, 1433 BORDER_RIGHT_WEIGHT: 21, 1434 borderRightWeight: 21, 1435 VARIANT_PROPERTIES: 22, 1436 variantProperties: 22, 1437 STACK_COUNTER_SPACING: 23, 1438 stackCounterSpacing: 23, 1439 MIN_WIDTH: 24, 1440 minWidth: 24, 1441 MAX_WIDTH: 25, 1442 maxWidth: 25, 1443 MIN_HEIGHT: 26, 1444 minHeight: 26, 1445 MAX_HEIGHT: 27, 1446 maxHeight: 27, 1447 FONT_FAMILY: 28, 1448 fontFamily: 28, 1449 FONT_STYLE: 29, 1450 fontStyle: 29, 1451 FONT_VARIATIONS: 30, 1452 fontVariations: 30, 1453 OPACITY: 31, 1454 opacity: 31, 1455 FONT_SIZE: 32, 1456 fontSize: 32, 1457 LETTER_SPACING: 34, 1458 letterSpacing: 34, 1459 LINE_HEIGHT: 36, 1460 lineHeight: 36, 1461 OVERRIDDEN_SYMBOL_ID: 37, 1462 overriddenSymbolId: 37, 1463 CMS_SERIALIZED_RICH_TEXT_DATA: 38, 1464 cmsSerializedRichTextData: 38, 1465 HYPERLINK: 39, 1466 hyperlink: 39, 1467 SLOT_CONTENT_ID: 40, 1468 slotContentId: 40, 1469 GRID_ROW_GAP: 41, 1470 gridRowGap: 41, 1471 GRID_COLUMN_GAP: 42, 1472 gridColumnGap: 42, 1473 RELATIVE_X_POSITION: 43, 1474 xPosition: 43, 1475 RELATIVE_Y_POSITION: 44, 1476 relativeYPosition: 44, 1477 RELATIVE_ROTATION: 45, 1478 relativeRotation: 45, 1479 MOTION_TRANSLATION_X: 46, 1480 motionTranslationX: 46, 1481 MOTION_TRANSLATION_Y: 47, 1482 motionTranslationY: 47, 1483 MOTION_ROTATION: 48, 1484 motionRotation: 48, 1485 MOTION_SCALE_X: 49, 1486 motionScaleX: 49, 1487 MOTION_SCALE_Y: 50, 1488 motionScaleY: 50, 1489 MOTION_SHEAR: 51, 1490 motionShear: 51, 1491 SCROLL_OFFSET_X: 52, 1492 scrollOffsetX: 52, 1493 SCROLL_OFFSET_Y: 53, 1494 scrollOffsetY: 53, 1495 PATH_TRIM_START: 54, 1496 pathTrimStart: 54, 1497 PATH_TRIM_END: 55, 1498 pathTrimEnd: 55, 1499 DISSOLVE_PROGRESS: 56, 1500 dissolveProgress: 56 1501 }; 1502 var Keyframe = class { 1503 constructor(data) { 1504 this.timelinePosition = Math.round(data.timelinePosition); 1505 this.easing = data.easing; 1506 this.value = data.value; 1507 } 1508 }; 1509 var KeyframeTrack = class { 1510 constructor(data) { 1511 this.topLevelField = data.topLevelField; 1512 this.parameterField = data.parameterField; 1513 this.index = data.index; 1514 this.effectParametrizedField = data.effectParametrizedField; 1515 this.keyframeOperation = data.keyframeOperation; 1516 this.keyframes = data.keyframes; 1517 this.enabled = !!data.enabled; 1518 } 1519 }; 1520 var AnimationPreset = class { 1521 constructor(data) { 1522 this.nodeId = data.nodeId; 1523 this.keyframeTracks = data.keyframeTracks; 1524 } 1525 }; 1526 var PARAMETER_FIELD_ALIAS_MAP = { 1527 translateX: ParameterField.MOTION_TRANSLATION_X, 1528 translateY: ParameterField.MOTION_TRANSLATION_Y, 1529 rotate: ParameterField.MOTION_ROTATION, 1530 scaleX: ParameterField.MOTION_SCALE_X, 1531 scaleY: ParameterField.MOTION_SCALE_Y, 1532 shear: ParameterField.MOTION_SHEAR 1533 }; 1534 var KEYFRAMEABLE_FIELDS = /* @__PURE__ */ new Set([ 1535 "translateX", 1536 "translateY", 1537 "rotate", 1538 "scaleX", 1539 "scaleY", 1540 "shear", 1541 "cornerRadius", 1542 "strokeWeight", 1543 "rectangleTopLeftCornerRadius", 1544 "rectangleTopRightCornerRadius", 1545 "rectangleBottomLeftCornerRadius", 1546 "rectangleBottomRightCornerRadius", 1547 "stackSpacing", 1548 "stackPaddingLeft", 1549 "stackPaddingTop", 1550 "stackPaddingRight", 1551 "stackPaddingBottom", 1552 "width", 1553 "height", 1554 "borderTopWeight", 1555 "borderBottomWeight", 1556 "borderLeftWeight", 1557 "borderRightWeight", 1558 "stackCounterSpacing", 1559 "minWidth", 1560 "maxWidth", 1561 "minHeight", 1562 "maxHeight", 1563 "opacity", 1564 "gridRowGap", 1565 "gridColumnGap", 1566 "textData", 1567 "pathTrimStart", 1568 "pathTrimEnd" 1569 ]); 1570 var MODE_TO_OPERATION = { 1571 set: KeyframeOperation.SET, 1572 SET: KeyframeOperation.SET, 1573 offset: KeyframeOperation.OFFSET, 1574 OFFSET: KeyframeOperation.OFFSET, 1575 scale: KeyframeOperation.SCALE, 1576 SCALE: KeyframeOperation.SCALE 1577 }; 1578 function normalizeEasing(easing) { 1579 if (easing === void 0) return void 0; 1580 if (easing === "hold") return { interpolationType: InterpolationType.HOLD }; 1581 if (typeof easing === "string") { 1582 const easingType = EasingType[easing]; 1583 if (easingType === void 0) throw new Error('normalizeEasing: unknown easing "' + easing + '"'); 1584 return { easingType }; 1585 } 1586 return easing; 1587 } 1588 function compileKeyframe({ timelinePosition, value, easing }) { 1589 return new Keyframe({ 1590 timelinePosition: timelinePosition * 1e6, 1591 easing: normalizeEasing(easing), 1592 value 1593 }); 1594 } 1595 function tween({ mode, timelinePosition = 0, duration, from, to, easing, enabled = true }) { 1596 if (duration < 0) throw new Error("tween: duration must be non-negative"); 1597 return { 1598 mode, 1599 enabled, 1600 keyframes: [ 1601 { timelinePosition, value: from, easing }, 1602 { timelinePosition: timelinePosition + duration, value: to, easing } 1603 ] 1604 }; 1605 } 1606 function animate(node, definition) { 1607 const nodeId = typeof node === "string" ? node : node.id;
1608 const keyframeTracks = []; 1609 for (const [key, trackDef] of Object.entries(definition)) { 1610 if (!KEYFRAMEABLE_FIELDS.has(key)) { 1611 throw new Error('animate: unknown or non-keyframeable property "' + key + '"'); 1612 } 1613 const parameterField = PARAMETER_FIELD_ALIAS_MAP[key] ?? ParameterField[key]; 1614 const operation = MODE_TO_OPERATION[trackDef.mode]; 1615 if (operation === void 0) throw new Error('animate: unknown mode "' + trackDef.mode + '"'); 1616 const seen = /* @__PURE__ */ new Map(); 1617 for (const kf of trackDef.keyframes) seen.set(kf.timelinePosition, kf); 1618 const sorted = [...seen.values()].sort((a, b) => a.timelinePosition - b.timelinePosition); 1619 keyframeTracks.push(new KeyframeTrack({ 1620 parameterField, 1621 keyframeOperation: operation, 1622 keyframes: sorted.map(compileKeyframe), 1623 enabled: trackDef.enabled !== false 1624 })); 1625 } 1626 return new AnimationPreset({ nodeId, keyframeTracks }); 1627 } 1628 1629
1629// ../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/share/motion/src/presets/source/move.ts 1630 function preset({ timing, moveX, moveY, duration, fade, easing, node }) { 1631 const xFrom = timing === "in" ? moveX : 0; 1632 const xTo = timing === "in" ? 0 : moveX; 1633 const yFrom = timing === "in" ? moveY : 0; 1634 const yTo = timing === "in" ? 0 : moveY; 1635 const definition = { 1636 translateX: tween({ 1637 mode: "offset", 1638 duration, 1639 from: xFrom, 1640 to: xTo, 1641 easing 1642 }), 1643 translateY: tween({ 1644 mode: "offset", 1645 duration, 1646 from: yFrom, 1647 to: yTo, 1648 easing 1649 }) 1650 }; 1651 if (fade) { 1652 const opFrom = timing === "in" ? 0 : 1; 1653 const opTo = timing === "in" ? 1 : 0; 1654 definition.opacity = tween({ 1655 mode: "scale", 1656 duration, 1657 from: opFrom, 1658 to: opTo, 1659 easing 1660 }); 1661 } 1662 return [animate(node, definition)]; 1663 } 1664 defineProperties(preset, { 1665 timing: { 1666 label: "Timing", 1667 type: "string", 1668 defaultValue: "out", 1669 control: "select", 1670 options: [ 1671 { value: "in", label: "Move In" }, 1672 { value: "out", label: "Move Out" } 1673 ] 1674 }, 1675 moveX: { 1676 label: "Move X", 1677 type: "number", 1678 defaultValue: 100, 1679 control: "input" 1680 }, 1681 moveY: { 1682 label: "Move Y", 1683 type: "number", 1684 defaultValue: 0, 1685 control: "input" 1686 }, 1687 duration: { 1688 label: "Duration", 1689 type: "number", 1690 defaultValue: 0.5, 1691 control: "input", 1692 min: 0.01, 1693 unit: "s" 1694 }, 1695 fade: { 1696 label: "Fade", 1697 type: "boolean", 1698 defaultValue: false 1699 }, 1700 easing: { 1701 label: "Easing", 1702 type: "easing", 1703 defaultValue: { 1704 easingType: EasingType.OUT_CUBIC 1705 } 1706 } 1707 }); 1708 return __toCommonJS(move_exports); 1709})();`});var zx,Xx,jx=Qt(()=>{zx=`// Source-of-truth for the NEW first-party animation preset. 1710// 1711// The build-time preset-bundle codegen (see \`../scripts/generate_preset_bundles.ts\`) 1712// reads this file's raw text, esbuilds it into an IIFE with \`figma:motion\` 1713// resolved, and emits both strings into \`../generated/new.generated.ts\`. The 1714// generated module is what runtime code consumes \u2014 never import this file 1715// directly from production code paths. 1716// 1717// This file is excluded from the share/motion \`ts_project\` compilation \u2014 it's 1718// only an input to the codegen tool, evaluated inside the QuickJS / iframe 1719// sandbox at runtime. 1720 1721import { animate, defineProperties, EasingType, tween } from 'figma:motion' 1722 1723import type { PresetArgs } from './preset_types' 1724 1725export default function preset({ duration, easing, node }: PresetArgs) { 1726 return [ 1727 animate(node, { 1728 opacity: tween({ 1729 mode: 'scale', 1730 duration, 1731 from: 0, 1732 to: 1, 1733 easing, 1734 }), 1735 }), 1736 ] 1737} 1738
1739defineProperties(preset, { 1740 duration: { 1741 label: 'Duration', 1742 type: 'number', 1743 defaultValue: 0.5, 1744 control: 'input', 1745 min: 0.01, 1746 unit: 's', 1747 }, 1748 easing: { 1749 label: 'Easing', 1750 type: 'easing', 1751 defaultValue: { 1752 easingType: EasingType.OUT_CUBIC, 1753 }, 1754 }, 1755}) 1756`,Xx=`var __presetBundle = (() => { 1757 var __defProp = Object.defineProperty; 1758 var __getOwnPropDesc = Object.getOwnPropertyDescriptor; 1759 var __getOwnPropNames = Object.getOwnPropertyNames; 1760 var __hasOwnProp = Object.prototype.hasOwnProperty; 1761 var __export = (target, all) => { 1762 for (var name in all) 1763 __defProp(target, name, { get: all[name], enumerable: true }); 1764 }; 1765 var __copyProps = (to, from, except, desc) => { 1766 if (from && typeof from === "object" || typeof from === "function") { 1767 for (let key of __getOwnPropNames(from)) 1768 if (!__hasOwnProp.call(to, key) && key !== except) 1769 __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); 1770 } 1771 return to; 1772 }; 1773 var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); 1774 1775
1775// ../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/share/motion/src/presets/source/new.ts 1776 var new_exports = {}; 1777 __export(new_exports, { 1778 default: () => preset 1779 }); 1780 1781 // figma-motion:figma:motion 1782 function defineProperties(component, spec) { 1783 Object.assign(component, { 1784 [/* @__PURE__ */ Symbol.for("figma.react.props")]: spec 1785 }); 1786 } 1787 var EasingType = { 1788 IN_CUBIC: 0, 1789 inCubic: 0, 1790 OUT_CUBIC: 1, 1791 outCubic: 1, 1792 INOUT_CUBIC: 2, 1793 inOutCubic: 2, 1794 LINEAR: 3, 1795 linear: 3, 1796 IN_BACK_CUBIC: 4, 1797 inBackCubic: 4, 1798 OUT_BACK_CUBIC: 5, 1799 outBackCubic: 5, 1800 INOUT_BACK_CUBIC: 6, 1801 inOutBackCubic: 6, 1802 CUSTOM_CUBIC: 7, 1803 customCubic: 7, 1804 SPRING: 8, 1805 spring: 8, 1806 GENTLE_SPRING: 9, 1807 gentleSpring: 9, 1808 CUSTOM_SPRING: 10, 1809 customSpring: 10, 1810 SPRING_PRESET_ONE: 11, 1811 springPresetOne: 11, 1812 SPRING_PRESET_TWO: 12, 1813 springPresetTwo: 12, 1814 SPRING_PRESET_THREE: 13, 1815 springPresetThree: 13, 1816 // For backwards compat 1817 bezier: 100, 1818 BEZIER: 100 1819 }; 1820 var InterpolationType = { 1821 HOLD: 0, 1822 hold: 0, 1823 BEZIER: 1, 1824 bezier: 1 1825 }; 1826 var KeyframeOperation = { 1827 SET: 0, 1828 set: 0, 1829 SCALE: 1, 1830 scale: 1, 1831 OFFSET: 2, 1832 offset: 2 1833 }; 1834 var ParameterField = { 1835 MISSING: 0, 1836 missing: 0, 1837 CORNER_RADIUS: 1, 1838 cornerRadius: 1, 1839 PARAGRAPH_SPACING: 2, 1840 paragraphSpacing: 2, 1841 PARAGRAPH_INDENT: 3, 1842 paragraphIndent: 3, 1843 STROKE_WEIGHT: 4, 1844 strokeWeight: 4, 1845 STACK_SPACING: 5, 1846 stackSpacing: 5, 1847 STACK_PADDING_LEFT: 6, 1848 stackPaddingLeft: 6, 1849 STACK_PADDING_TOP: 7, 1850 stackPaddingTop: 7, 1851 STACK_PADDING_RIGHT: 8, 1852 stackPaddingRight: 8, 1853 STACK_PADDING_BOTTOM: 9, 1854 stackPaddingBottom: 9, 1855 VISIBLE: 10, 1856 visible: 10, 1857 TEXT_DATA: 11, 1858 textData: 11, 1859 WIDTH: 12, 1860 width: 12, 1861 HEIGHT: 13, 1862 height: 13, 1863 RECTANGLE_TOP_LEFT_CORNER_RADIUS: 14, 1864 rectangleTopLeftCornerRadius: 14, 1865 RECTANGLE_TOP_RIGHT_CORNER_RADIUS: 15, 1866 rectangleTopRightCornerRadius: 15, 1867 RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS: 16, 1868 rectangleBottomLeftCornerRadius: 16, 1869 RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS: 17, 1870 rectangleBottomRightCornerRadius: 17, 1871 BORDER_TOP_WEIGHT: 18, 1872 borderTopWeight: 18, 1873 BORDER_BOTTOM_WEIGHT: 19, 1874 borderBottomWeight: 19, 1875 BORDER_LEFT_WEIGHT: 20, 1876 borderLeftWeight: 20, 1877 BORDER_RIGHT_WEIGHT: 21, 1878 borderRightWeight: 21, 1879 VARIANT_PROPERTIES: 22, 1880 variantProperties: 22, 1881 STACK_COUNTER_SPACING: 23, 1882 stackCounterSpacing: 23, 1883 MIN_WIDTH: 24, 1884 minWidth: 24, 1885 MAX_WIDTH: 25, 1886 maxWidth: 25, 1887 MIN_HEIGHT: 26, 1888 minHeight: 26, 1889 MAX_HEIGHT: 27, 1890 maxHeight: 27, 1891 FONT_FAMILY: 28, 1892 fontFamily: 28, 1893 FONT_STYLE: 29, 1894 fontStyle: 29, 1895 FONT_VARIATIONS: 30, 1896 fontVariations: 30, 1897 OPACITY: 31, 1898 opacity: 31, 1899 FONT_SIZE: 32, 1900 fontSize: 32, 1901 LETTER_SPACING: 34, 1902 letterSpacing: 34, 1903 LINE_HEIGHT: 36, 1904 lineHeight: 36, 1905 OVERRIDDEN_SYMBOL_ID: 37, 1906 overriddenSymbolId: 37, 1907 CMS_SERIALIZED_RICH_TEXT_DATA: 38, 1908 cmsSerializedRichTextData: 38, 1909 HYPERLINK: 39, 1910 hyperlink: 39, 1911 SLOT_CONTENT_ID: 40, 1912 slotContentId: 40, 1913 GRID_ROW_GAP: 41, 1914 gridRowGap: 41, 1915 GRID_COLUMN_GAP: 42, 1916 gridColumnGap: 42, 1917 RELATIVE_X_POSITION: 43, 1918 xPosition: 43, 1919 RELATIVE_Y_POSITION: 44, 1920 relativeYPosition: 44, 1921 RELATIVE_ROTATION: 45, 1922 relativeRotation: 45, 1923 MOTION_TRANSLATION_X: 46, 1924 motionTranslationX: 46, 1925 MOTION_TRANSLATION_Y: 47, 1926 motionTranslationY: 47, 1927 MOTION_ROTATION: 48, 1928 motionRotation: 48, 1929 MOTION_SCALE_X: 49, 1930 motionScaleX: 49, 1931 MOTION_SCALE_Y: 50, 1932 motionScaleY: 50, 1933 MOTION_SHEAR: 51, 1934 motionShear: 51, 1935 SCROLL_OFFSET_X: 52, 1936 scrollOffsetX: 52, 1937 SCROLL_OFFSET_Y: 53, 1938 scrollOffsetY: 53, 1939 PATH_TRIM_START: 54, 1940 pathTrimStart: 54, 1941 PATH_TRIM_END: 55, 1942 pathTrimEnd: 55, 1943 DISSOLVE_PROGRESS: 56, 1944 dissolveProgress: 56 1945 }; 1946 var Keyframe = class { 1947 constructor(data) { 1948 this.timelinePosition = Math.round(data.timelinePosition); 1949 this.easing = data.easing; 1950 this.value = data.value; 1951 } 1952 }; 1953 var KeyframeTrack = class { 1954 constructor(data) { 1955 this.topLevelField = data.topLevelField; 1956 this.parameterField = data.parameterField; 1957 this.index = data.index; 1958 this.effectParametrizedField = data.effectParametrizedField; 1959 this.keyframeOperation = data.keyframeOperation; 1960 this.keyframes = data.keyframes; 1961 this.enabled = !!data.enabled; 1962 } 1963 }; 1964 var AnimationPreset = class { 1965 constructor(data) { 1966 this.nodeId = data.nodeId; 1967 this.keyframeTracks = data.keyframeTracks; 1968 } 1969 }; 1970 var PARAMETER_FIELD_ALIAS_MAP = { 1971 translateX: ParameterField.MOTION_TRANSLATION_X, 1972 translateY: ParameterField.MOTION_TRANSLATION_Y, 1973 rotate: ParameterField.MOTION_ROTATION, 1974 scaleX: ParameterField.MOTION_SCALE_X, 1975 scaleY: ParameterField.MOTION_SCALE_Y, 1976 shear: ParameterField.MOTION_SHEAR 1977 }; 1978 var KEYFRAMEABLE_FIELDS = /* @__PURE__ */ new Set([ 1979 "translateX", 1980 "translateY", 1981 "rotate", 1982 "scaleX", 1983 "scaleY", 1984 "shear", 1985 "cornerRadius", 1986 "strokeWeight", 1987 "rectangleTopLeftCornerRadius", 1988 "rectangleTopRightCornerRadius", 1989 "rectangleBottomLeftCornerRadius", 1990 "rectangleBottomRightCornerRadius", 1991 "stackSpacing", 1992 "stackPaddingLeft", 1993 "stackPaddingTop", 1994 "stackPaddingRight", 1995 "stackPaddingBottom", 1996 "width", 1997 "height", 1998 "borderTopWeight", 1999 "borderBottomWeight", 2000 "borderLeftWeight", 2001 "borderRightWeight", 2002 "stackCounterSpacing", 2003 "minWidth", 2004 "maxWidth", 2005 "minHeight", 2006 "maxHeight", 2007 "opacity", 2008 "gridRowGap", 2009 "gridColumnGap", 2010 "textData", 2011 "pathTrimStart", 2012 "pathTrimEnd" 2013 ]); 2014 var MODE_TO_OPERATION = { 2015 set: KeyframeOperation.SET, 2016 SET: KeyframeOperation.SET, 2017 offset: KeyframeOperation.OFFSET, 2018 OFFSET: KeyframeOperation.OFFSET, 2019 scale: KeyframeOperation.SCALE, 2020 SCALE: KeyframeOperation.SCALE 2021 }; 2022 function normalizeEasing(easing) { 2023 if (easing === void 0) return void 0; 2024 if (easing === "hold") return { interpolationType: InterpolationType.HOLD }; 2025 if (typeof easing === "string") { 2026 const easingType = EasingType[easing]; 2027 if (easingType === void 0) throw new Error('normalizeEasing: unknown easing "' + easing + '"'); 2028 return { easingType }; 2029 } 2030 return easing; 2031 } 2032 function compileKeyframe({ timelinePosition, value, easing }) { 2033 return new Keyframe({ 2034 timelinePosition: timelinePosition * 1e6, 2035 easing: normalizeEasing(easing), 2036 value 2037 }); 2038 } 2039 function tween({ mode, timelinePosition = 0, duration, from, to, easing, enabled = true }) { 2040 if (duration < 0) throw new Error("tween: duration must be non-negative"); 2041 return { 2042 mode, 2043 enabled, 2044 keyframes: [ 2045 { timelinePosition, value: from, easing }, 2046 { timelinePosition: timelinePosition + duration, value: to, easing } 2047 ] 2048 }; 2049 } 2050 function animate(node, definition) { 2051 const nodeId = typeof node === "string" ? node : node.id;
2052 const keyframeTracks = []; 2053 for (const [key, trackDef] of Object.entries(definition)) { 2054 if (!KEYFRAMEABLE_FIELDS.has(key)) { 2055 throw new Error('animate: unknown or non-keyframeable property "' + key + '"'); 2056 } 2057 const parameterField = PARAMETER_FIELD_ALIAS_MAP[key] ?? ParameterField[key]; 2058 const operation = MODE_TO_OPERATION[trackDef.mode]; 2059 if (operation === void 0) throw new Error('animate: unknown mode "' + trackDef.mode + '"'); 2060 const seen = /* @__PURE__ */ new Map(); 2061 for (const kf of trackDef.keyframes) seen.set(kf.timelinePosition, kf); 2062 const sorted = [...seen.values()].sort((a, b) => a.timelinePosition - b.timelinePosition); 2063 keyframeTracks.push(new KeyframeTrack({ 2064 parameterField, 2065 keyframeOperation: operation, 2066 keyframes: sorted.map(compileKeyframe), 2067 enabled: trackDef.enabled !== false 2068 })); 2069 } 2070 return new AnimationPreset({ nodeId, keyframeTracks }); 2071 } 2072 2073
2073// ../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/share/motion/src/presets/source/new.ts 2074 function preset({ duration, easing, node }) { 2075 return [ 2076 animate(node, { 2077 opacity: tween({ 2078 mode: "scale", 2079 duration, 2080 from: 0, 2081 to: 1, 2082 easing 2083 }) 2084 }) 2085 ]; 2086 } 2087 defineProperties(preset, { 2088 duration: { 2089 label: "Duration", 2090 type: "number", 2091 defaultValue: 0.5, 2092 control: "input", 2093 min: 0.01, 2094 unit: "s" 2095 }, 2096 easing: { 2097 label: "Easing", 2098 type: "easing", 2099 defaultValue: { 2100 easingType: EasingType.OUT_CUBIC 2101 } 2102 } 2103 }); 2104 return __toCommonJS(new_exports); 2105})();`});var $x,Zx,Jx=Qt(()=>{$x=`// Source-of-truth for the OPACITY first-party animation preset. 2106// 2107// The build-time preset-bundle codegen (see \`../scripts/generate_preset_bundles.ts\`) 2108// reads this file's raw text, esbuilds it into an IIFE with \`figma:motion\` 2109// resolved, and emits both strings into \`../generated/opacity.generated.ts\`. 2110// The generated module is what runtime code consumes \u2014 never import this file 2111// directly from production code paths. 2112// 2113// This file is excluded from the share/motion \`ts_project\` compilation \u2014 it's 2114// only an input to the codegen tool, evaluated inside the QuickJS / iframe 2115// sandbox at runtime. 2116 2117import { animate, defineProperties, tween } from 'figma:motion' 2118 2119import type { PresetArgs, PresetTrackDefinitions } from './preset_types' 2120 2121export default function preset({ 2122 type, 2123 amount, 2124 startFrame, 2125 endFrame, 2126 duration, 2127 easing, 2128 node, 2129}: PresetArgs) { 2130 const safeAmount = typeof amount === 'number' ? amount : 0 2131 const safeStartFrame = typeof startFrame === 'number' ? startFrame : 0 2132 const safeEndFrame = typeof endFrame === 'number' ? endFrame : 100 2133 const definition: PresetTrackDefinitions = {} 2134 let opacityFrom: number 2135 let opacityTo: number 2136 2137 switch (type) { 2138 case 'fadeOut': 2139 opacityFrom = 1 2140 opacityTo = safeAmount / 100 2141 break 2142 case 'custom': 2143 opacityFrom = safeStartFrame / 100 2144 opacityTo = safeEndFrame / 100 2145 break 2146 case 'fadeIn': 2147 default: 2148 opacityFrom = safeAmount / 100 2149 opacityTo = 1 2150 break 2151 } 2152 2153 // The runtime adds \`timelineOffset\` back in when placing keyframes on the parent timeline (\`keyframe_conversion.ts\`). 2154 // Do NOT add \`delay\` to \`timelinePosition\` below \u2014 that would double-count. 2155 definition.opacity = tween({ 2156 mode: 'scale', 2157 timelinePosition: 0, 2158 duration, 2159 from: opacityFrom, 2160 to: opacityTo, 2161 easing, 2162 }) 2163 2164 return [animate(node, definition)] 2165} 2166 2167defineProperties(preset, { 2168 type: { 2169 label: 'motion.preset_flyout.type', 2170 type: 'string', 2171 defaultValue: 'fadeIn', 2172 control: 'select', 2173 options: [ 2174 { value: 'fadeIn', label: 'motion.preset_flyout.opacity.type.fade_in' }, 2175 { value: 'fadeOut', label: 'motion.preset_flyout.opacity.type.fade_out' }, 2176 { value: 'custom', label: 'motion.preset_flyout.type.custom' }, 2177 ], 2178 }, 2179 amount: { 2180 label: 'motion.preset_flyout.amount', 2181 type: 'number', 2182 control: 'input', 2183 defaultValue: 0, 2184 unit: '%', 2185 icon: 'opacity', 2186 }, 2187 // TODO(showDividerAbove-cleanup): the \`showDividerAbove\` flags in this file 2188 // are redundant \u2014 section dividers are now applied client-side in the preset 2189 // flyout via \`forceShowDividerAboveTransform\` 2190 startFrame: { 2191 label: 'motion.preset_flyout.start', 2192 type: 'number', 2193 control: 'input', 2194 defaultValue: 0, 2195 unit: '%', 2196 showDividerAbove: true, 2197 icon: 'opacity', 2198 }, 2199 endFrame: { 2200 label: 'motion.preset_flyout.end', 2201 type: 'number', 2202 control: 'input', 2203 defaultValue: 100, 2204 unit: '%', 2205 icon: 'opacity', 2206 }, 2207 // Note: 'delay' is kept in sync with a preset's \`timelineOffset\` 2208 delay: { 2209 label: 'motion.preset_flyout.delay', 2210 type: 'number', 2211 control: 'input', 2212 defaultValue: 0, 2213 unit: 's', 2214 showDividerAbove: true, 2215 icon: 'delay', 2216 }, 2217 duration: { 2218 label: 'motion.preset_flyout.duration', 2219 type: 'number', 2220 control: 'input', 2221 defaultValue: 0.5, 2222 unit: 's', 2223 icon: 'time', 2224 }, 2225 easing: { 2226 label: 'motion.preset_flyout.easing', 2227 type: 'easing', 2228 defaultValue: 'outCubic', 2229 }, 2230}) 2231`,Zx=`var __presetBundle = (() => { 2232 var __defProp = Object.defineProperty; 2233 var __getOwnPropDesc = Object.getOwnPropertyDescriptor; 2234 var __getOwnPropNames = Object.getOwnPropertyNames; 2235 var __hasOwnProp = Object.prototype.hasOwnProperty; 2236 var __export = (target, all) => { 2237 for (var name in all) 2238 __defProp(target, name, { get: all[name], enumerable: true }); 2239 }; 2240 var __copyProps = (to, from, except, desc) => { 2241 if (from && typeof from === "object" || typeof from === "function") { 2242 for (let key of __getOwnPropNames(from)) 2243 if (!__hasOwnProp.call(to, key) && key !== except) 2244 __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); 2245 } 2246 return to; 2247 }; 2248 var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); 2249 2250
2250// ../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/share/motion/src/presets/source/opacity.ts 2251 var opacity_exports = {}; 2252 __export(opacity_exports, { 2253 default: () => preset 2254 }); 2255 2256 // figma-motion:figma:motion 2257 function defineProperties(component, spec) { 2258 Object.assign(component, { 2259 [/* @__PURE__ */ Symbol.for("figma.react.props")]: spec 2260 }); 2261 } 2262 var EasingType = { 2263 IN_CUBIC: 0, 2264 inCubic: 0, 2265 OUT_CUBIC: 1, 2266 outCubic: 1, 2267 INOUT_CUBIC: 2, 2268 inOutCubic: 2, 2269 LINEAR: 3, 2270 linear: 3, 2271 IN_BACK_CUBIC: 4, 2272 inBackCubic: 4, 2273 OUT_BACK_CUBIC: 5, 2274 outBackCubic: 5, 2275 INOUT_BACK_CUBIC: 6, 2276 inOutBackCubic: 6, 2277 CUSTOM_CUBIC: 7, 2278 customCubic: 7, 2279 SPRING: 8, 2280 spring: 8, 2281 GENTLE_SPRING: 9, 2282 gentleSpring: 9, 2283 CUSTOM_SPRING: 10, 2284 customSpring: 10, 2285 SPRING_PRESET_ONE: 11, 2286 springPresetOne: 11, 2287 SPRING_PRESET_TWO: 12, 2288 springPresetTwo: 12, 2289 SPRING_PRESET_THREE: 13, 2290 springPresetThree: 13, 2291 // For backwards compat 2292 bezier: 100, 2293 BEZIER: 100 2294 }; 2295 var InterpolationType = { 2296 HOLD: 0, 2297 hold: 0, 2298 BEZIER: 1, 2299 bezier: 1 2300 }; 2301 var KeyframeOperation = { 2302 SET: 0, 2303 set: 0, 2304 SCALE: 1, 2305 scale: 1, 2306 OFFSET: 2, 2307 offset: 2 2308 }; 2309 var ParameterField = { 2310 MISSING: 0, 2311 missing: 0, 2312 CORNER_RADIUS: 1, 2313 cornerRadius: 1, 2314 PARAGRAPH_SPACING: 2, 2315 paragraphSpacing: 2, 2316 PARAGRAPH_INDENT: 3, 2317 paragraphIndent: 3, 2318 STROKE_WEIGHT: 4, 2319 strokeWeight: 4, 2320 STACK_SPACING: 5, 2321 stackSpacing: 5, 2322 STACK_PADDING_LEFT: 6, 2323 stackPaddingLeft: 6, 2324 STACK_PADDING_TOP: 7, 2325 stackPaddingTop: 7, 2326 STACK_PADDING_RIGHT: 8, 2327 stackPaddingRight: 8, 2328 STACK_PADDING_BOTTOM: 9, 2329 stackPaddingBottom: 9, 2330 VISIBLE: 10, 2331 visible: 10, 2332 TEXT_DATA: 11, 2333 textData: 11, 2334 WIDTH: 12, 2335 width: 12, 2336 HEIGHT: 13, 2337 height: 13, 2338 RECTANGLE_TOP_LEFT_CORNER_RADIUS: 14, 2339 rectangleTopLeftCornerRadius: 14, 2340 RECTANGLE_TOP_RIGHT_CORNER_RADIUS: 15, 2341 rectangleTopRightCornerRadius: 15, 2342 RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS: 16, 2343 rectangleBottomLeftCornerRadius: 16, 2344 RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS: 17, 2345 rectangleBottomRightCornerRadius: 17, 2346 BORDER_TOP_WEIGHT: 18, 2347 borderTopWeight: 18, 2348 BORDER_BOTTOM_WEIGHT: 19, 2349 borderBottomWeight: 19, 2350 BORDER_LEFT_WEIGHT: 20, 2351 borderLeftWeight: 20, 2352 BORDER_RIGHT_WEIGHT: 21, 2353 borderRightWeight: 21, 2354 VARIANT_PROPERTIES: 22, 2355 variantProperties: 22, 2356 STACK_COUNTER_SPACING: 23, 2357 stackCounterSpacing: 23, 2358 MIN_WIDTH: 24, 2359 minWidth: 24, 2360 MAX_WIDTH: 25, 2361 maxWidth: 25, 2362 MIN_HEIGHT: 26, 2363 minHeight: 26, 2364 MAX_HEIGHT: 27, 2365 maxHeight: 27, 2366 FONT_FAMILY: 28, 2367 fontFamily: 28, 2368 FONT_STYLE: 29, 2369 fontStyle: 29, 2370 FONT_VARIATIONS: 30, 2371 fontVariations: 30, 2372 OPACITY: 31, 2373 opacity: 31, 2374 FONT_SIZE: 32, 2375 fontSize: 32, 2376 LETTER_SPACING: 34, 2377 letterSpacing: 34, 2378 LINE_HEIGHT: 36, 2379 lineHeight: 36, 2380 OVERRIDDEN_SYMBOL_ID: 37, 2381 overriddenSymbolId: 37, 2382 CMS_SERIALIZED_RICH_TEXT_DATA: 38, 2383 cmsSerializedRichTextData: 38, 2384 HYPERLINK: 39, 2385 hyperlink: 39, 2386 SLOT_CONTENT_ID: 40, 2387 slotContentId: 40, 2388 GRID_ROW_GAP: 41, 2389 gridRowGap: 41, 2390 GRID_COLUMN_GAP: 42, 2391 gridColumnGap: 42, 2392 RELATIVE_X_POSITION: 43, 2393 xPosition: 43, 2394 RELATIVE_Y_POSITION: 44, 2395 relativeYPosition: 44, 2396 RELATIVE_ROTATION: 45, 2397 relativeRotation: 45, 2398 MOTION_TRANSLATION_X: 46, 2399 motionTranslationX: 46, 2400 MOTION_TRANSLATION_Y: 47, 2401 motionTranslationY: 47, 2402 MOTION_ROTATION: 48, 2403 motionRotation: 48, 2404 MOTION_SCALE_X: 49, 2405 motionScaleX: 49, 2406 MOTION_SCALE_Y: 50, 2407 motionScaleY: 50, 2408 MOTION_SHEAR: 51, 2409 motionShear: 51, 2410 SCROLL_OFFSET_X: 52, 2411 scrollOffsetX: 52, 2412 SCROLL_OFFSET_Y: 53, 2413 scrollOffsetY: 53, 2414 PATH_TRIM_START: 54, 2415 pathTrimStart: 54, 2416 PATH_TRIM_END: 55, 2417 pathTrimEnd: 55, 2418 DISSOLVE_PROGRESS: 56, 2419 dissolveProgress: 56 2420 }; 2421 var Keyframe = class { 2422 constructor(data) { 2423 this.timelinePosition = Math.round(data.timelinePosition); 2424 this.easing = data.easing; 2425 this.value = data.value; 2426 } 2427 }; 2428 var KeyframeTrack = class { 2429 constructor(data) { 2430 this.topLevelField = data.topLevelField; 2431 this.parameterField = data.parameterField; 2432 this.index = data.index; 2433 this.effectParametrizedField = data.effectParametrizedField; 2434 this.keyframeOperation = data.keyframeOperation; 2435 this.keyframes = data.keyframes; 2436 this.enabled = !!data.enabled; 2437 } 2438 }; 2439 var AnimationPreset = class { 2440 constructor(data) { 2441 this.nodeId = data.nodeId; 2442 this.keyframeTracks = data.keyframeTracks; 2443 } 2444 }; 2445 var PARAMETER_FIELD_ALIAS_MAP = { 2446 translateX: ParameterField.MOTION_TRANSLATION_X, 2447 translateY: ParameterField.MOTION_TRANSLATION_Y, 2448 rotate: ParameterField.MOTION_ROTATION, 2449 scaleX: ParameterField.MOTION_SCALE_X, 2450 scaleY: ParameterField.MOTION_SCALE_Y, 2451 shear: ParameterField.MOTION_SHEAR 2452 }; 2453 var KEYFRAMEABLE_FIELDS = /* @__PURE__ */ new Set([ 2454 "translateX", 2455 "translateY", 2456 "rotate", 2457 "scaleX", 2458 "scaleY", 2459 "shear", 2460 "cornerRadius", 2461 "strokeWeight", 2462 "rectangleTopLeftCornerRadius", 2463 "rectangleTopRightCornerRadius", 2464 "rectangleBottomLeftCornerRadius", 2465 "rectangleBottomRightCornerRadius", 2466 "stackSpacing", 2467 "stackPaddingLeft", 2468 "stackPaddingTop", 2469 "stackPaddingRight", 2470 "stackPaddingBottom", 2471 "width", 2472 "height", 2473 "borderTopWeight", 2474 "borderBottomWeight", 2475 "borderLeftWeight", 2476 "borderRightWeight", 2477 "stackCounterSpacing", 2478 "minWidth", 2479 "maxWidth", 2480 "minHeight", 2481 "maxHeight", 2482 "opacity", 2483 "gridRowGap", 2484 "gridColumnGap", 2485 "textData", 2486 "pathTrimStart", 2487 "pathTrimEnd" 2488 ]); 2489 var MODE_TO_OPERATION = { 2490 set: KeyframeOperation.SET, 2491 SET: KeyframeOperation.SET, 2492 offset: KeyframeOperation.OFFSET, 2493 OFFSET: KeyframeOperation.OFFSET, 2494 scale: KeyframeOperation.SCALE, 2495 SCALE: KeyframeOperation.SCALE 2496 }; 2497 function normalizeEasing(easing) { 2498 if (easing === void 0) return void 0; 2499 if (easing === "hold") return { interpolationType: InterpolationType.HOLD }; 2500 if (typeof easing === "string") { 2501 const easingType = EasingType[easing]; 2502 if (easingType === void 0) throw new Error('normalizeEasing: unknown easing "' + easing + '"'); 2503 return { easingType }; 2504 } 2505 return easing; 2506 } 2507 function compileKeyframe({ timelinePosition, value, easing }) { 2508 return new Keyframe({ 2509 timelinePosition: timelinePosition * 1e6, 2510 easing: normalizeEasing(easing), 2511 value 2512 }); 2513 } 2514 function tween({ mode, timelinePosition = 0, duration, from, to, easing, enabled = true }) { 2515 if (duration < 0) throw new Error("tween: duration must be non-negative"); 2516 return { 2517 mode, 2518 enabled, 2519 keyframes: [ 2520 { timelinePosition, value: from, easing }, 2521 { timelinePosition: timelinePosition + duration, value: to, easing } 2522 ] 2523 }; 2524 } 2525 function animate(node, definition) { 2526 const nodeId = typeof node === "string" ? node : node.id;
2527 const keyframeTracks = []; 2528 for (const [key, trackDef] of Object.entries(definition)) { 2529 if (!KEYFRAMEABLE_FIELDS.has(key)) { 2530 throw new Error('animate: unknown or non-keyframeable property "' + key + '"'); 2531 } 2532 const parameterField = PARAMETER_FIELD_ALIAS_MAP[key] ?? ParameterField[key]; 2533 const operation = MODE_TO_OPERATION[trackDef.mode]; 2534 if (operation === void 0) throw new Error('animate: unknown mode "' + trackDef.mode + '"'); 2535 const seen = /* @__PURE__ */ new Map(); 2536 for (const kf of trackDef.keyframes) seen.set(kf.timelinePosition, kf); 2537 const sorted = [...seen.values()].sort((a, b) => a.timelinePosition - b.timelinePosition); 2538 keyframeTracks.push(new KeyframeTrack({ 2539 parameterField, 2540 keyframeOperation: operation, 2541 keyframes: sorted.map(compileKeyframe), 2542 enabled: trackDef.enabled !== false 2543 })); 2544 } 2545 return new AnimationPreset({ nodeId, keyframeTracks }); 2546 } 2547 2548
2548// ../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/share/motion/src/presets/source/opacity.ts 2549 function preset({ 2550 type, 2551 amount, 2552 startFrame, 2553 endFrame, 2554 duration, 2555 easing, 2556 node 2557 }) { 2558 const safeAmount = typeof amount === "number" ? amount : 0; 2559 const safeStartFrame = typeof startFrame === "number" ? startFrame : 0; 2560 const safeEndFrame = typeof endFrame === "number" ? endFrame : 100; 2561 const definition = {}; 2562 let opacityFrom; 2563 let opacityTo; 2564 switch (type) { 2565 case "fadeOut": 2566 opacityFrom = 1; 2567 opacityTo = safeAmount / 100; 2568 break; 2569 case "custom": 2570 opacityFrom = safeStartFrame / 100; 2571 opacityTo = safeEndFrame / 100; 2572 break; 2573 case "fadeIn": 2574 default: 2575 opacityFrom = safeAmount / 100; 2576 opacityTo = 1; 2577 break; 2578 } 2579 definition.opacity = tween({ 2580 mode: "scale", 2581 timelinePosition: 0, 2582 duration, 2583 from: opacityFrom, 2584 to: opacityTo, 2585 easing 2586 }); 2587 return [animate(node, definition)]; 2588 } 2589 defineProperties(preset, { 2590 type: { 2591 label: "motion.preset_flyout.type", 2592 type: "string", 2593 defaultValue: "fadeIn", 2594 control: "select", 2595 options: [ 2596 { value: "fadeIn", label: "motion.preset_flyout.opacity.type.fade_in" }, 2597 { value: "fadeOut", label: "motion.preset_flyout.opacity.type.fade_out" }, 2598 { value: "custom", label: "motion.preset_flyout.type.custom" } 2599 ] 2600 }, 2601 amount: { 2602 label: "motion.preset_flyout.amount", 2603 type: "number", 2604 control: "input", 2605 defaultValue: 0, 2606 unit: "%", 2607 icon: "opacity" 2608 }, 2609 // TODO(showDividerAbove-cleanup): the \`showDividerAbove\` flags in this file 2610 // are redundant \u2014 section dividers are now applied client-side in the preset 2611 // flyout via \`forceShowDividerAboveTransform\` 2612 startFrame: { 2613 label: "motion.preset_flyout.start", 2614 type: "number", 2615 control: "input", 2616 defaultValue: 0, 2617 unit: "%", 2618 showDividerAbove: true, 2619 icon: "opacity" 2620 }, 2621 endFrame: { 2622 label: "motion.preset_flyout.end", 2623 type: "number", 2624 control: "input", 2625 defaultValue: 100, 2626 unit: "%", 2627 icon: "opacity" 2628 }, 2629 // Note: 'delay' is kept in sync with a preset's \`timelineOffset\` 2630 delay: { 2631 label: "motion.preset_flyout.delay", 2632 type: "number", 2633 control: "input", 2634 defaultValue: 0, 2635 unit: "s", 2636 showDividerAbove: true, 2637 icon: "delay" 2638 }, 2639 duration: { 2640 label: "motion.preset_flyout.duration", 2641 type: "number", 2642 control: "input", 2643 defaultValue: 0.5, 2644 unit: "s", 2645 icon: "time" 2646 }, 2647 easing: { 2648 label: "motion.preset_flyout.easing", 2649 type: "easing", 2650 defaultValue: "outCubic" 2651 } 2652 }); 2653 return __toCommonJS(opacity_exports); 2654})();`});var qx,Qx,e0=Qt(()=>{qx=`// Source-of-truth for the PATH first-party animation preset. 2655// 2656// Unifies Path Draw, Path Travel, and a Custom mode that drives \`pathTrimStart\` 2657// and \`pathTrimEnd\` directly. The build-time preset-bundle codegen (see 2658// \`../scripts/generate_preset_bundles.ts\`) reads this file's raw text, esbuilds 2659// it into an IIFE with \`figma:motion\` resolved, and emits both strings into 2660// \`../generated/path.generated.ts\`. The generated module is what runtime code 2661// consumes \u2014 never import this file directly from production code paths. 2662// 2663// This file is excluded from the share/motion \`ts_project\` compilation \u2014 it's 2664// only an input to the codegen tool, evaluated inside the QuickJS / iframe 2665// sandbox at runtime. 2666 2667import { animate, defineProperties, EasingType, tween } from 'figma:motion' 2668 2669import type { PresetArgs } from './preset_types' 2670 2671const TYPE_DRAW = 'draw' 2672const TYPE_ERASE = 'erase' 2673const TYPE_TRAVEL = 'travel' 2674 2675const DIRECTION_FORWARD = 'forward' 2676 2677const AXIS_PATH_TRIM_START = 'pathTrimStart' 2678const AXIS_PATH_TRIM_END = 'pathTrimEnd' 2679const AXIS_COMBINED = 'combined' 2680 2681// Convert the percent values surfaced in the panel (0..100) to the 0..1 2682// fractional range that \`pathTrimStart\` / \`pathTrimEnd\` expect. 2683function percentToDecimal(value: number): number { 2684 return value / 100 2685} 2686 2687export default function preset({ 2688 type, 2689 direction, 2690 segment, 2691 axis, 2692 pathStartStartFrame, 2693 pathStartEndWithoutDivider, 2694 pathEndStartWithDivider, 2695 pathEndEndFrame, 2696 pathEndStartWithoutDivider, 2697 pathStartEndWithDivider, 2698 duration, 2699 easing, 2700 target, 2701}: PresetArgs) { 2702 const isForward = direction === DIRECTION_FORWARD 2703 2704 // Always materialize BOTH the pathTrimStart and pathTrimEnd tracks so their KEYFRAME_TRACK 2705 // GUIDs survive \`type\` / \`axis\` toggles. This works arounds a DS components/instances bug related to the conditional rendering of keyframe tracks. 2706 let startFrom: number 2707 let startTo: number 2708 let endFrom: number 2709 let endTo: number 2710 let startEnabled = true 2711 let endEnabled = true 2712 2713 if (type === TYPE_DRAW || type === TYPE_ERASE) { 2714 const isDraw = type === TYPE_DRAW 2715 if (isDraw && isForward) { 2716 startFrom = 0 2717 startTo = 0 2718 endFrom = 0 2719 endTo = 1 2720 } else if (isDraw && !isForward) { 2721 startFrom = 1 2722 startTo = 0 2723 endFrom = 1 2724 endTo = 1 2725 } else if (!isDraw && isForward) { 2726 startFrom = 0 2727 startTo = 1 2728 endFrom = 1 2729 endTo = 1 2730 } else { 2731 startFrom = 0 2732 startTo = 0 2733 endFrom = 1 2734 endTo = 0 2735 } 2736 } else if (type === TYPE_TRAVEL) { 2737 // A fixed-length segment travels along the path and comes to rest at the end. The trim 2738 // values stay within [0, 1] (the segment never runs past either end) so the path doesn't 2739 // wrap / loop the segment back around to the start. 2740 // forward: segment moves [0, seg] \u2192 [1 - seg, 1] 2741 // reverse: segment moves [1 - seg, 1] \u2192 [0, seg] 2742 const segmentFraction = percentToDecimal(segment) 2743 startFrom = isForward ? 0 : 1 - segmentFraction 2744 startTo = isForward ? 1 - segmentFraction : 0 2745 endFrom = isForward ? segmentFraction : 1 2746 endTo = isForward ? 1 : segmentFraction 2747 } else { 2748 // type === 'custom' \u2014 \`axis\` toggles which trim(s) are enabled; all custom modes share 2749 // \`duration\` / \`easing\`. Combined groups both Starts then both Ends in the panel, so it 2750 // reads the combined-only variants for the inner pair (trimStart's End, trimEnd's Start). 2751 startEnabled = axis === AXIS_PATH_TRIM_START || axis === AXIS_COMBINED 2752 endEnabled = axis === AXIS_PATH_TRIM_END || axis === AXIS_COMBINED 2753 if (axis === AXIS_COMBINED) { 2754 const sFrom = percentToDecimal(pathStartStartFrame) 2755 const sTo = percentToDecimal(pathStartEndWithDivider) 2756 const eFrom = percentToDecimal(pathEndStartWithoutDivider) 2757 const eTo = percentToDecimal(pathEndEndFrame) 2758 startFrom = isForward ? sFrom : sTo 2759 startTo = isForward ? sTo : sFrom 2760 endFrom = isForward ? eFrom : eTo 2761 endTo = isForward ? eTo : eFrom 2762 } else { 2763 const sFrom = percentToDecimal(pathStartStartFrame) 2764 const sTo = percentToDecimal(pathStartEndWithoutDivider) 2765 const eFrom = percentToDecimal(pathEndStartWithDivider) 2766 const eTo = percentToDecimal(pathEndEndFrame) 2767 startFrom = isForward ? sFrom : sTo 2768 startTo = isForward ? sTo : sFrom 2769 endFrom = isForward ? eFrom : eTo 2770 endTo = isForward ? eTo : eFrom 2771 } 2772 } 2773 2774 return [ 2775 animate(target, { 2776 pathTrimStart: tween({
2777 mode: 'set', 2778 duration, 2779 from: startFrom, 2780 to: startTo, 2781 easing, 2782 enabled: startEnabled, 2783 }), 2784 pathTrimEnd: tween({ 2785 mode: 'set', 2786 duration, 2787 from: endFrom, 2788 to: endTo, 2789 easing, 2790 enabled: endEnabled, 2791 }), 2792 }), 2793 ] 2794} 2795 2796// KEEP_IN_SYNC(share/motion/src/presets/path_meta.ts) 2797defineProperties(preset, { 2798 type: { 2799 label: 'motion.preset_flyout.type', 2800 type: 'string', 2801 defaultValue: 'draw', 2802 control: 'select', 2803 options: [ 2804 { value: 'draw', label: 'motion.preset_flyout.path.type.draw' }, 2805 { value: 'erase', label: 'motion.preset_flyout.path.type.erase' }, 2806 { value: 'travel', label: 'motion.preset_flyout.path.type.travel' }, 2807 { value: 'custom', label: 'motion.preset_flyout.type.custom' }, 2808 ], 2809 }, 2810 direction: { 2811 label: 'motion.preset_flyout.direction', 2812 type: 'string', 2813 defaultValue: 'forward', 2814 control: 'select', 2815 options: [ 2816 { value: 'forward', label: 'motion.preset_flyout.path.direction.forward' }, 2817 { value: 'reverse', label: 'motion.preset_flyout.path.direction.reverse' }, 2818 ], 2819 }, 2820 axis: { 2821 label: 'motion.preset_flyout.path.trim', 2822 type: 'string', 2823 defaultValue: 'pathTrimStart', 2824 control: 'select', 2825 options: [ 2826 { value: 'pathTrimStart', label: 'motion.preset_flyout.path.axis.path_trim_start' }, 2827 { value: 'pathTrimEnd', label: 'motion.preset_flyout.path.axis.path_trim_end' }, 2828 { value: 'combined', label: 'motion.preset_flyout.path.axis.combined' }, 2829 ], 2830 }, 2831 segment: { 2832 label: 'motion.preset_flyout.path.segment', 2833 type: 'number', 2834 defaultValue: 10, 2835 control: 'input', 2836 min: 0, 2837 max: 100, 2838 unit: '%', 2839 }, 2840 // Frame order drives the panel layout. Single-axis (pathTrimStart / pathTrimEnd) groups 2841 // its own Start + End. Combined groups both Starts then both Ends, so its inner pair uses 2842 // dedicated *Combined variants laid out between the single-axis Start/End rows and only 2843 // shown for Combined. 2844 // TODO(showDividerAbove-cleanup): the \`showDividerAbove\` flags in this file 2845 // are redundant \u2014 section dividers are now applied client-side in the preset 2846 // flyout via \`forceShowDividerAboveTransform\` 2847 pathStartStartFrame: { 2848 label: 'motion.preset_flyout.start_frame', 2849 type: 'number', 2850 defaultValue: 100, 2851 control: 'input', 2852 unit: '%', 2853 showDividerAbove: true, 2854 icon: 'path_trim_start', 2855 }, 2856 pathStartEndWithoutDivider: { 2857 label: 'motion.preset_flyout.end_frame', 2858 type: 'number', 2859 defaultValue: 0, 2860 control: 'input', 2861 unit: '%', 2862 icon: 'path_trim_start', 2863 }, 2864 // Combined-only: trimEnd's Start (2nd Start, grouped under the Starts divider) and 2865 // trimStart's End (1st End, opens the Ends group with its own divider). 2866 pathEndStartWithoutDivider: { 2867 label: 'motion.preset_flyout.start_frame', 2868 type: 'number', 2869 defaultValue: 20, 2870 control: 'input', 2871 unit: '%', 2872 icon: 'path_trim_end', 2873 }, 2874 pathStartEndWithDivider: { 2875 label: 'motion.preset_flyout.end_frame', 2876 type: 'number', 2877 defaultValue: 80, 2878 control: 'input', 2879 unit: '%', 2880 showDividerAbove: true, 2881 icon: 'path_trim_start', 2882 }, 2883 pathEndStartWithDivider: { 2884 label: 'motion.preset_flyout.start_frame', 2885 type: 'number', 2886 defaultValue: 0, 2887 control: 'input', 2888 unit: '%', 2889 showDividerAbove: true, 2890 icon: 'path_trim_end', 2891 }, 2892 pathEndEndFrame: { 2893 label: 'motion.preset_flyout.end_frame', 2894 type: 'number', 2895 defaultValue: 100, 2896 control: 'input', 2897 unit: '%', 2898 icon: 'path_trim_end', 2899 }, 2900 // Note: 'delay' is kept in sync with a preset's \`timelineOffset\`. 2901 delay: { 2902 label: 'motion.preset_flyout.delay', 2903 type: 'number', 2904 defaultValue: 0, 2905 control: 'input', 2906 unit: 's', 2907 showDividerAbove: true, 2908 icon: 'delay', 2909 }, 2910 duration: { 2911 label: 'motion.preset_flyout.duration', 2912 type: 'number', 2913 defaultValue: 0.5, 2914 control: 'input', 2915 min: 0.01, 2916 unit: 's', 2917 icon: 'time', 2918 }, 2919 easing: { 2920 label: 'motion.preset_flyout.easing', 2921 type: 'easing', 2922 defaultValue: { easingType: EasingType.OUT_CUBIC }, 2923 }, 2924}) 2925`,Qx=`var __presetBundle = (() => { 2926 var __defProp = Object.defineProperty; 2927 var __getOwnPropDesc = Object.getOwnPropertyDescriptor; 2928 var __getOwnPropNames = Object.getOwnPropertyNames; 2929 var __hasOwnProp = Object.prototype.hasOwnProperty; 2930 var __export = (target, all) => { 2931 for (var name in all) 2932 __defProp(target, name, { get: all[name], enumerable: true }); 2933 }; 2934 var __copyProps = (to, from, except, desc) => { 2935 if (from && typeof from === "object" || typeof from === "function") { 2936 for (let key of __getOwnPropNames(from)) 2937 if (!__hasOwnProp.call(to, key) && key !== except) 2938 __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); 2939 } 2940 return to; 2941 }; 2942 var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); 2943 2944
2944// ../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/share/motion/src/presets/source/path.ts 2945 var path_exports = {}; 2946 __export(path_exports, { 2947 default: () => preset 2948 }); 2949 2950 // figma-motion:figma:motion 2951 function defineProperties(component, spec) { 2952 Object.assign(component, { 2953 [/* @__PURE__ */ Symbol.for("figma.react.props")]: spec 2954 }); 2955 } 2956 var EasingType = { 2957 IN_CUBIC: 0, 2958 inCubic: 0, 2959 OUT_CUBIC: 1, 2960 outCubic: 1, 2961 INOUT_CUBIC: 2, 2962 inOutCubic: 2, 2963 LINEAR: 3, 2964 linear: 3, 2965 IN_BACK_CUBIC: 4, 2966 inBackCubic: 4, 2967 OUT_BACK_CUBIC: 5, 2968 outBackCubic: 5, 2969 INOUT_BACK_CUBIC: 6, 2970 inOutBackCubic: 6, 2971 CUSTOM_CUBIC: 7, 2972 customCubic: 7, 2973 SPRING: 8, 2974 spring: 8, 2975 GENTLE_SPRING: 9, 2976 gentleSpring: 9, 2977 CUSTOM_SPRING: 10, 2978 customSpring: 10, 2979 SPRING_PRESET_ONE: 11, 2980 springPresetOne: 11, 2981 SPRING_PRESET_TWO: 12, 2982 springPresetTwo: 12, 2983 SPRING_PRESET_THREE: 13, 2984 springPresetThree: 13, 2985 // For backwards compat 2986 bezier: 100, 2987 BEZIER: 100 2988 }; 2989 var InterpolationType = { 2990 HOLD: 0, 2991 hold: 0, 2992 BEZIER: 1, 2993 bezier: 1 2994 }; 2995 var KeyframeOperation = { 2996 SET: 0, 2997 set: 0, 2998 SCALE: 1, 2999 scale: 1, 3000 OFFSET: 2, 3001 offset: 2 3002 }; 3003 var ParameterField = { 3004 MISSING: 0, 3005 missing: 0, 3006 CORNER_RADIUS: 1, 3007 cornerRadius: 1, 3008 PARAGRAPH_SPACING: 2, 3009 paragraphSpacing: 2, 3010 PARAGRAPH_INDENT: 3, 3011 paragraphIndent: 3, 3012 STROKE_WEIGHT: 4, 3013 strokeWeight: 4, 3014 STACK_SPACING: 5, 3015 stackSpacing: 5, 3016 STACK_PADDING_LEFT: 6, 3017 stackPaddingLeft: 6, 3018 STACK_PADDING_TOP: 7, 3019 stackPaddingTop: 7, 3020 STACK_PADDING_RIGHT: 8, 3021 stackPaddingRight: 8, 3022 STACK_PADDING_BOTTOM: 9, 3023 stackPaddingBottom: 9, 3024 VISIBLE: 10, 3025 visible: 10, 3026 TEXT_DATA: 11, 3027 textData: 11, 3028 WIDTH: 12, 3029 width: 12, 3030 HEIGHT: 13, 3031 height: 13, 3032 RECTANGLE_TOP_LEFT_CORNER_RADIUS: 14, 3033 rectangleTopLeftCornerRadius: 14, 3034 RECTANGLE_TOP_RIGHT_CORNER_RADIUS: 15, 3035 rectangleTopRightCornerRadius: 15, 3036 RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS: 16, 3037 rectangleBottomLeftCornerRadius: 16, 3038 RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS: 17, 3039 rectangleBottomRightCornerRadius: 17, 3040 BORDER_TOP_WEIGHT: 18, 3041 borderTopWeight: 18, 3042 BORDER_BOTTOM_WEIGHT: 19, 3043 borderBottomWeight: 19, 3044 BORDER_LEFT_WEIGHT: 20, 3045 borderLeftWeight: 20, 3046 BORDER_RIGHT_WEIGHT: 21, 3047 borderRightWeight: 21, 3048 VARIANT_PROPERTIES: 22, 3049 variantProperties: 22, 3050 STACK_COUNTER_SPACING: 23, 3051 stackCounterSpacing: 23, 3052 MIN_WIDTH: 24, 3053 minWidth: 24, 3054 MAX_WIDTH: 25, 3055 maxWidth: 25, 3056 MIN_HEIGHT: 26, 3057 minHeight: 26, 3058 MAX_HEIGHT: 27, 3059 maxHeight: 27, 3060 FONT_FAMILY: 28, 3061 fontFamily: 28, 3062 FONT_STYLE: 29, 3063 fontStyle: 29, 3064 FONT_VARIATIONS: 30, 3065 fontVariations: 30, 3066 OPACITY: 31, 3067 opacity: 31, 3068 FONT_SIZE: 32, 3069 fontSize: 32, 3070 LETTER_SPACING: 34, 3071 letterSpacing: 34, 3072 LINE_HEIGHT: 36, 3073 lineHeight: 36, 3074 OVERRIDDEN_SYMBOL_ID: 37, 3075 overriddenSymbolId: 37, 3076 CMS_SERIALIZED_RICH_TEXT_DATA: 38, 3077 cmsSerializedRichTextData: 38, 3078 HYPERLINK: 39, 3079 hyperlink: 39, 3080 SLOT_CONTENT_ID: 40, 3081 slotContentId: 40, 3082 GRID_ROW_GAP: 41, 3083 gridRowGap: 41, 3084 GRID_COLUMN_GAP: 42, 3085 gridColumnGap: 42, 3086 RELATIVE_X_POSITION: 43, 3087 xPosition: 43, 3088 RELATIVE_Y_POSITION: 44, 3089 relativeYPosition: 44, 3090 RELATIVE_ROTATION: 45, 3091 relativeRotation: 45, 3092 MOTION_TRANSLATION_X: 46, 3093 motionTranslationX: 46, 3094 MOTION_TRANSLATION_Y: 47, 3095 motionTranslationY: 47, 3096 MOTION_ROTATION: 48, 3097 motionRotation: 48, 3098 MOTION_SCALE_X: 49, 3099 motionScaleX: 49, 3100 MOTION_SCALE_Y: 50, 3101 motionScaleY: 50, 3102 MOTION_SHEAR: 51, 3103 motionShear: 51, 3104 SCROLL_OFFSET_X: 52, 3105 scrollOffsetX: 52, 3106 SCROLL_OFFSET_Y: 53, 3107 scrollOffsetY: 53, 3108 PATH_TRIM_START: 54, 3109 pathTrimStart: 54, 3110 PATH_TRIM_END: 55, 3111 pathTrimEnd: 55, 3112 DISSOLVE_PROGRESS: 56, 3113 dissolveProgress: 56 3114 }; 3115 var Keyframe = class { 3116 constructor(data) { 3117 this.timelinePosition = Math.round(data.timelinePosition); 3118 this.easing = data.easing; 3119 this.value = data.value; 3120 } 3121 }; 3122 var KeyframeTrack = class { 3123 constructor(data) { 3124 this.topLevelField = data.topLevelField; 3125 this.parameterField = data.parameterField; 3126 this.index = data.index; 3127 this.effectParametrizedField = data.effectParametrizedField; 3128 this.keyframeOperation = data.keyframeOperation; 3129 this.keyframes = data.keyframes; 3130 this.enabled = !!data.enabled; 3131 } 3132 }; 3133 var AnimationPreset = class { 3134 constructor(data) { 3135 this.nodeId = data.nodeId; 3136 this.keyframeTracks = data.keyframeTracks; 3137 } 3138 }; 3139 var PARAMETER_FIELD_ALIAS_MAP = { 3140 translateX: ParameterField.MOTION_TRANSLATION_X, 3141 translateY: ParameterField.MOTION_TRANSLATION_Y, 3142 rotate: ParameterField.MOTION_ROTATION, 3143 scaleX: ParameterField.MOTION_SCALE_X, 3144 scaleY: ParameterField.MOTION_SCALE_Y, 3145 shear: ParameterField.MOTION_SHEAR 3146 }; 3147 var KEYFRAMEABLE_FIELDS = /* @__PURE__ */ new Set([ 3148 "translateX", 3149 "translateY", 3150 "rotate", 3151 "scaleX", 3152 "scaleY", 3153 "shear", 3154 "cornerRadius", 3155 "strokeWeight", 3156 "rectangleTopLeftCornerRadius", 3157 "rectangleTopRightCornerRadius", 3158 "rectangleBottomLeftCornerRadius", 3159 "rectangleBottomRightCornerRadius", 3160 "stackSpacing", 3161 "stackPaddingLeft", 3162 "stackPaddingTop", 3163 "stackPaddingRight", 3164 "stackPaddingBottom", 3165 "width", 3166 "height", 3167 "borderTopWeight", 3168 "borderBottomWeight", 3169 "borderLeftWeight", 3170 "borderRightWeight", 3171 "stackCounterSpacing", 3172 "minWidth", 3173 "maxWidth", 3174 "minHeight", 3175 "maxHeight", 3176 "opacity", 3177 "gridRowGap", 3178 "gridColumnGap", 3179 "textData", 3180 "pathTrimStart", 3181 "pathTrimEnd" 3182 ]); 3183 var MODE_TO_OPERATION = { 3184 set: KeyframeOperation.SET, 3185 SET: KeyframeOperation.SET, 3186 offset: KeyframeOperation.OFFSET, 3187 OFFSET: KeyframeOperation.OFFSET, 3188 scale: KeyframeOperation.SCALE, 3189 SCALE: KeyframeOperation.SCALE 3190 }; 3191 function normalizeEasing(easing) { 3192 if (easing === void 0) return void 0; 3193 if (easing === "hold") return { interpolationType: InterpolationType.HOLD }; 3194 if (typeof easing === "string") { 3195 const easingType = EasingType[easing]; 3196 if (easingType === void 0) throw new Error('normalizeEasing: unknown easing "' + easing + '"'); 3197 return { easingType }; 3198 } 3199 return easing; 3200 } 3201 function compileKeyframe({ timelinePosition, value, easing }) { 3202 return new Keyframe({ 3203 timelinePosition: timelinePosition * 1e6, 3204 easing: normalizeEasing(easing), 3205 value 3206 }); 3207 } 3208 function tween({ mode, timelinePosition = 0, duration, from, to, easing, enabled = true }) { 3209 if (duration < 0) throw new Error("tween: duration must be non-negative"); 3210 return { 3211 mode, 3212 enabled, 3213 keyframes: [ 3214 { timelinePosition, value: from, easing }, 3215 { timelinePosition: timelinePosition + duration, value: to, easing } 3216 ] 3217 }; 3218 } 3219 function animate(node, definition) { 3220 const nodeId = typeof node === "string" ? node : node.id;
3221 const keyframeTracks = []; 3222 for (const [key, trackDef] of Object.entries(definition)) { 3223 if (!KEYFRAMEABLE_FIELDS.has(key)) { 3224 throw new Error('animate: unknown or non-keyframeable property "' + key + '"'); 3225 } 3226 const parameterField = PARAMETER_FIELD_ALIAS_MAP[key] ?? ParameterField[key]; 3227 const operation = MODE_TO_OPERATION[trackDef.mode]; 3228 if (operation === void 0) throw new Error('animate: unknown mode "' + trackDef.mode + '"'); 3229 const seen = /* @__PURE__ */ new Map(); 3230 for (const kf of trackDef.keyframes) seen.set(kf.timelinePosition, kf); 3231 const sorted = [...seen.values()].sort((a, b) => a.timelinePosition - b.timelinePosition); 3232 keyframeTracks.push(new KeyframeTrack({ 3233 parameterField, 3234 keyframeOperation: operation, 3235 keyframes: sorted.map(compileKeyframe), 3236 enabled: trackDef.enabled !== false 3237 })); 3238 } 3239 return new AnimationPreset({ nodeId, keyframeTracks }); 3240 } 3241 3242
3242// ../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/share/motion/src/presets/source/path.ts 3243 var TYPE_DRAW = "draw"; 3244 var TYPE_ERASE = "erase"; 3245 var TYPE_TRAVEL = "travel"; 3246 var DIRECTION_FORWARD = "forward"; 3247 var AXIS_PATH_TRIM_START = "pathTrimStart"; 3248 var AXIS_PATH_TRIM_END = "pathTrimEnd"; 3249 var AXIS_COMBINED = "combined"; 3250 function percentToDecimal(value) { 3251 return value / 100; 3252 } 3253 function preset({ 3254 type, 3255 direction, 3256 segment, 3257 axis, 3258 pathStartStartFrame, 3259 pathStartEndWithoutDivider, 3260 pathEndStartWithDivider, 3261 pathEndEndFrame, 3262 pathEndStartWithoutDivider, 3263 pathStartEndWithDivider, 3264 duration, 3265 easing, 3266 target 3267 }) { 3268 const isForward = direction === DIRECTION_FORWARD; 3269 let startFrom; 3270 let startTo; 3271 let endFrom; 3272 let endTo; 3273 let startEnabled = true; 3274 let endEnabled = true; 3275 if (type === TYPE_DRAW || type === TYPE_ERASE) { 3276 const isDraw = type === TYPE_DRAW; 3277 if (isDraw && isForward) { 3278 startFrom = 0; 3279 startTo = 0; 3280 endFrom = 0; 3281 endTo = 1; 3282 } else if (isDraw && !isForward) { 3283 startFrom = 1; 3284 startTo = 0; 3285 endFrom = 1; 3286 endTo = 1; 3287 } else if (!isDraw && isForward) { 3288 startFrom = 0; 3289 startTo = 1; 3290 endFrom = 1; 3291 endTo = 1; 3292 } else { 3293 startFrom = 0; 3294 startTo = 0; 3295 endFrom = 1; 3296 endTo = 0; 3297 } 3298 } else if (type === TYPE_TRAVEL) { 3299 const segmentFraction = percentToDecimal(segment); 3300 startFrom = isForward ? 0 : 1 - segmentFraction; 3301 startTo = isForward ? 1 - segmentFraction : 0; 3302 endFrom = isForward ? segmentFraction : 1; 3303 endTo = isForward ? 1 : segmentFraction; 3304 } else { 3305 startEnabled = axis === AXIS_PATH_TRIM_START || axis === AXIS_COMBINED; 3306 endEnabled = axis === AXIS_PATH_TRIM_END || axis === AXIS_COMBINED; 3307 if (axis === AXIS_COMBINED) { 3308 const sFrom = percentToDecimal(pathStartStartFrame); 3309 const sTo = percentToDecimal(pathStartEndWithDivider); 3310 const eFrom = percentToDecimal(pathEndStartWithoutDivider); 3311 const eTo = percentToDecimal(pathEndEndFrame); 3312 startFrom = isForward ? sFrom : sTo; 3313 startTo = isForward ? sTo : sFrom; 3314 endFrom = isForward ? eFrom : eTo; 3315 endTo = isForward ? eTo : eFrom; 3316 } else { 3317 const sFrom = percentToDecimal(pathStartStartFrame); 3318 const sTo = percentToDecimal(pathStartEndWithoutDivider); 3319 const eFrom = percentToDecimal(pathEndStartWithDivider); 3320 const eTo = percentToDecimal(pathEndEndFrame); 3321 startFrom = isForward ? sFrom : sTo; 3322 startTo = isForward ? sTo : sFrom; 3323 endFrom = isForward ? eFrom : eTo; 3324 endTo = isForward ? eTo : eFrom; 3325 } 3326 } 3327 return [ 3328 animate(target, { 3329 pathTrimStart: tween({ 3330 mode: "set", 3331 duration, 3332 from: startFrom, 3333 to: startTo, 3334 easing, 3335 enabled: startEnabled 3336 }), 3337 pathTrimEnd: tween({ 3338 mode: "set", 3339 duration, 3340 from: endFrom, 3341 to: endTo, 3342 easing, 3343 enabled: endEnabled 3344 }) 3345 }) 3346 ]; 3347 } 3348 defineProperties(preset, { 3349 type: { 3350 label: "motion.preset_flyout.type", 3351 type: "string", 3352 defaultValue: "draw", 3353 control: "select", 3354 options: [ 3355 { value: "draw", label: "motion.preset_flyout.path.type.draw" }, 3356 { value: "erase", label: "motion.preset_flyout.path.type.erase" }, 3357 { value: "travel", label: "motion.preset_flyout.path.type.travel" }, 3358 { value: "custom", label: "motion.preset_flyout.type.custom" } 3359 ] 3360 }, 3361 direction: { 3362 label: "motion.preset_flyout.direction", 3363 type: "string", 3364 defaultValue: "forward", 3365 control: "select", 3366 options: [ 3367 { value: "forward", label: "motion.preset_flyout.path.direction.forward" }, 3368 { value: "reverse", label: "motion.preset_flyout.path.direction.reverse" } 3369 ] 3370 }, 3371 axis: { 3372 label: "motion.preset_flyout.path.trim", 3373 type: "string", 3374 defaultValue: "pathTrimStart", 3375 control: "select", 3376 options: [ 3377 { value: "pathTrimStart", label: "motion.preset_flyout.path.axis.path_trim_start" }, 3378 { value: "pathTrimEnd", label: "motion.preset_flyout.path.axis.path_trim_end" }, 3379 { value: "combined", label: "motion.preset_flyout.path.axis.combined" } 3380 ] 3381 }, 3382 segment: { 3383 label: "motion.preset_flyout.path.segment", 3384 type: "number", 3385 defaultValue: 10, 3386 control: "input", 3387 min: 0, 3388 max: 100, 3389 unit: "%" 3390 }, 3391 // Frame order drives the panel layout. Single-axis (pathTrimStart / pathTrimEnd) groups 3392 // its own Start + End. Combined groups both Starts then both Ends, so its inner pair uses 3393 // dedicated *Combined variants laid out between the single-axis Start/End rows and only 3394 // shown for Combined.
3395 // TODO(showDividerAbove-cleanup): the \`showDividerAbove\` flags in this file 3396 // are redundant \u2014 section dividers are now applied client-side in the preset 3397 // flyout via \`forceShowDividerAboveTransform\` 3398 pathStartStartFrame: { 3399 label: "motion.preset_flyout.start_frame", 3400 type: "number", 3401 defaultValue: 100, 3402 control: "input", 3403 unit: "%", 3404 showDividerAbove: true, 3405 icon: "path_trim_start" 3406 }, 3407 pathStartEndWithoutDivider: { 3408 label: "motion.preset_flyout.end_frame", 3409 type: "number", 3410 defaultValue: 0, 3411 control: "input", 3412 unit: "%", 3413 icon: "path_trim_start" 3414 }, 3415 // Combined-only: trimEnd's Start (2nd Start, grouped under the Starts divider) and 3416 // trimStart's End (1st End, opens the Ends group with its own divider). 3417 pathEndStartWithoutDivider: { 3418 label: "motion.preset_flyout.start_frame", 3419 type: "number", 3420 defaultValue: 20, 3421 control: "input", 3422 unit: "%", 3423 icon: "path_trim_end" 3424 }, 3425 pathStartEndWithDivider: { 3426 label: "motion.preset_flyout.end_frame", 3427 type: "number", 3428 defaultValue: 80, 3429 control: "input", 3430 unit: "%", 3431 showDividerAbove: true, 3432 icon: "path_trim_start" 3433 }, 3434 pathEndStartWithDivider: { 3435 label: "motion.preset_flyout.start_frame", 3436 type: "number", 3437 defaultValue: 0, 3438 control: "input", 3439 unit: "%", 3440 showDividerAbove: true, 3441 icon: "path_trim_end" 3442 }, 3443 pathEndEndFrame: { 3444 label: "motion.preset_flyout.end_frame", 3445 type: "number", 3446 defaultValue: 100, 3447 control: "input", 3448 unit: "%", 3449 icon: "path_trim_end" 3450 }, 3451 // Note: 'delay' is kept in sync with a preset's \`timelineOffset\`. 3452 delay: { 3453 label: "motion.preset_flyout.delay", 3454 type: "number", 3455 defaultValue: 0, 3456 control: "input", 3457 unit: "s", 3458 showDividerAbove: true, 3459 icon: "delay" 3460 }, 3461 duration: { 3462 label: "motion.preset_flyout.duration", 3463 type: "number", 3464 defaultValue: 0.5, 3465 control: "input", 3466 min: 0.01, 3467 unit: "s", 3468 icon: "time" 3469 }, 3470 easing: { 3471 label: "motion.preset_flyout.easing", 3472 type: "easing", 3473 defaultValue: { easingType: EasingType.OUT_CUBIC } 3474 } 3475 }); 3476 return __toCommonJS(path_exports); 3477})();`});var t0,n0,r0=Qt(()=>{t0=`// Source-of-truth for the PATH_DRAW first-party animation preset. 3478// 3479// The build-time preset-bundle codegen (see \`../scripts/generate_preset_bundles.ts\`) 3480// reads this file's raw text, esbuilds it into an IIFE with \`figma:motion\` 3481// resolved, and emits both strings into \`../generated/path_draw.generated.ts\`. 3482// The generated module is what runtime code consumes \u2014 never import this file 3483// directly from production code paths. 3484// 3485// This file is excluded from the share/motion \`ts_project\` compilation \u2014 it's 3486// only an input to the codegen tool, evaluated inside the QuickJS / iframe 3487// sandbox at runtime. 3488 3489import { animate, defineProperties, EasingType, tween } from 'figma:motion' 3490 3491import type { PresetArgs } from './preset_types' 3492 3493export default function preset({ duration, mode, direction, target }: PresetArgs) { 3494 const easing = { easingType: EasingType.LINEAR } 3495 3496 if (mode === 'reveal') { 3497 if (direction === 'forward') { 3498 // Draw from start to end of path: trimStart stays at 0, trimEnd goes from 0 to 1 3499 return [ 3500 animate(target, { 3501 pathTrimStart: tween({ mode: 'set', duration, from: 0, to: 0, easing }), 3502 pathTrimEnd: tween({ mode: 'set', duration, from: 0, to: 1, easing }), 3503 }), 3504 ] 3505 } else { 3506 // Draw from end to start of path: trimStart goes from 1 to 0, trimEnd stays at 1 3507 return [ 3508 animate(target, { 3509 pathTrimStart: tween({ mode: 'set', duration, from: 1, to: 0, easing }), 3510 pathTrimEnd: tween({ mode: 'set', duration, from: 1, to: 1, easing }), 3511 }), 3512 ] 3513 } 3514 } else { 3515 if (direction === 'forward') { 3516 // Hide from start to end of path: trimStart goes from 0 to 1, trimEnd stays at 1 3517 return [ 3518 animate(target, {
3519 pathTrimStart: tween({ mode: 'set', duration, from: 0, to: 1, easing }), 3520 pathTrimEnd: tween({ mode: 'set', duration, from: 1, to: 1, easing }), 3521 }), 3522 ] 3523 } else { 3524 // Hide from end to start of path: trimStart stays at 0, trimEnd goes from 1 to 0 3525 return [ 3526 animate(target, { 3527 pathTrimStart: tween({ mode: 'set', duration, from: 0, to: 0, easing }), 3528 pathTrimEnd: tween({ mode: 'set', duration, from: 1, to: 0, easing }), 3529 }), 3530 ] 3531 } 3532 } 3533} 3534 3535// KEEP_IN_SYNC(share/motion/src/presets/path_draw_meta.ts) \u2014 these 3536// property bounds (min/max/unit) must match \`PROP_DEFS[*].inputConfig\` so the 3537// panel-side TS metadata and the bundled IIFE agree on every prop's contract. 3538defineProperties(preset, { 3539 duration: { 3540 label: 'Duration', 3541 type: 'number', 3542 defaultValue: 0.5, 3543 control: 'input', 3544 min: 0.01, 3545 unit: 's', 3546 }, 3547 mode: { 3548 label: 'Mode', 3549 type: 'string', 3550 defaultValue: 'reveal', 3551 control: 'select', 3552 options: [ 3553 { value: 'reveal', label: 'Reveal' }, 3554 { value: 'hide', label: 'Hide' }, 3555 ], 3556 }, 3557 direction: { 3558 label: 'Direction', 3559 type: 'string', 3560 defaultValue: 'forward', 3561 control: 'select', 3562 options: [ 3563 { value: 'forward', label: 'Forward' }, 3564 { value: 'reverse', label: 'Reverse' }, 3565 ], 3566 }, 3567}) 3568`,n0=`var __presetBundle = (() => { 3569 var __defProp = Object.defineProperty; 3570 var __getOwnPropDesc = Object.getOwnPropertyDescriptor; 3571 var __getOwnPropNames = Object.getOwnPropertyNames; 3572 var __hasOwnProp = Object.prototype.hasOwnProperty; 3573 var __export = (target, all) => { 3574 for (var name in all) 3575 __defProp(target, name, { get: all[name], enumerable: true }); 3576 }; 3577 var __copyProps = (to, from, except, desc) => { 3578 if (from && typeof from === "object" || typeof from === "function") { 3579 for (let key of __getOwnPropNames(from)) 3580 if (!__hasOwnProp.call(to, key) && key !== except) 3581 __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); 3582 } 3583 return to; 3584 }; 3585 var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); 3586 3587
3587// ../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/share/motion/src/presets/source/path_draw.ts 3588 var path_draw_exports = {}; 3589 __export(path_draw_exports, { 3590 default: () => preset 3591 }); 3592 3593 // figma-motion:figma:motion 3594 function defineProperties(component, spec) { 3595 Object.assign(component, { 3596 [/* @__PURE__ */ Symbol.for("figma.react.props")]: spec 3597 }); 3598 } 3599 var EasingType = { 3600 IN_CUBIC: 0, 3601 inCubic: 0, 3602 OUT_CUBIC: 1, 3603 outCubic: 1, 3604 INOUT_CUBIC: 2, 3605 inOutCubic: 2, 3606 LINEAR: 3, 3607 linear: 3, 3608 IN_BACK_CUBIC: 4, 3609 inBackCubic: 4, 3610 OUT_BACK_CUBIC: 5, 3611 outBackCubic: 5, 3612 INOUT_BACK_CUBIC: 6, 3613 inOutBackCubic: 6, 3614 CUSTOM_CUBIC: 7, 3615 customCubic: 7, 3616 SPRING: 8, 3617 spring: 8, 3618 GENTLE_SPRING: 9, 3619 gentleSpring: 9, 3620 CUSTOM_SPRING: 10, 3621 customSpring: 10, 3622 SPRING_PRESET_ONE: 11, 3623 springPresetOne: 11, 3624 SPRING_PRESET_TWO: 12, 3625 springPresetTwo: 12, 3626 SPRING_PRESET_THREE: 13, 3627 springPresetThree: 13, 3628 // For backwards compat 3629 bezier: 100, 3630 BEZIER: 100 3631 }; 3632 var InterpolationType = { 3633 HOLD: 0, 3634 hold: 0, 3635 BEZIER: 1, 3636 bezier: 1 3637 }; 3638 var KeyframeOperation = { 3639 SET: 0, 3640 set: 0, 3641 SCALE: 1, 3642 scale: 1, 3643 OFFSET: 2, 3644 offset: 2 3645 }; 3646 var ParameterField = { 3647 MISSING: 0, 3648 missing: 0, 3649 CORNER_RADIUS: 1, 3650 cornerRadius: 1, 3651 PARAGRAPH_SPACING: 2, 3652 paragraphSpacing: 2, 3653 PARAGRAPH_INDENT: 3, 3654 paragraphIndent: 3, 3655 STROKE_WEIGHT: 4, 3656 strokeWeight: 4, 3657 STACK_SPACING: 5, 3658 stackSpacing: 5, 3659 STACK_PADDING_LEFT: 6, 3660 stackPaddingLeft: 6, 3661 STACK_PADDING_TOP: 7, 3662 stackPaddingTop: 7, 3663 STACK_PADDING_RIGHT: 8, 3664 stackPaddingRight: 8, 3665 STACK_PADDING_BOTTOM: 9, 3666 stackPaddingBottom: 9, 3667 VISIBLE: 10, 3668 visible: 10, 3669 TEXT_DATA: 11, 3670 textData: 11, 3671 WIDTH: 12, 3672 width: 12, 3673 HEIGHT: 13, 3674 height: 13, 3675 RECTANGLE_TOP_LEFT_CORNER_RADIUS: 14, 3676 rectangleTopLeftCornerRadius: 14, 3677 RECTANGLE_TOP_RIGHT_CORNER_RADIUS: 15, 3678 rectangleTopRightCornerRadius: 15, 3679 RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS: 16, 3680 rectangleBottomLeftCornerRadius: 16, 3681 RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS: 17, 3682 rectangleBottomRightCornerRadius: 17, 3683 BORDER_TOP_WEIGHT: 18, 3684 borderTopWeight: 18, 3685 BORDER_BOTTOM_WEIGHT: 19, 3686 borderBottomWeight: 19, 3687 BORDER_LEFT_WEIGHT: 20, 3688 borderLeftWeight: 20, 3689 BORDER_RIGHT_WEIGHT: 21, 3690 borderRightWeight: 21, 3691 VARIANT_PROPERTIES: 22, 3692 variantProperties: 22, 3693 STACK_COUNTER_SPACING: 23, 3694 stackCounterSpacing: 23, 3695 MIN_WIDTH: 24, 3696 minWidth: 24, 3697 MAX_WIDTH: 25, 3698 maxWidth: 25, 3699 MIN_HEIGHT: 26, 3700 minHeight: 26, 3701 MAX_HEIGHT: 27, 3702 maxHeight: 27, 3703 FONT_FAMILY: 28, 3704 fontFamily: 28, 3705 FONT_STYLE: 29, 3706 fontStyle: 29, 3707 FONT_VARIATIONS: 30, 3708 fontVariations: 30, 3709 OPACITY: 31, 3710 opacity: 31, 3711 FONT_SIZE: 32, 3712 fontSize: 32, 3713 LETTER_SPACING: 34, 3714 letterSpacing: 34, 3715 LINE_HEIGHT: 36, 3716 lineHeight: 36, 3717 OVERRIDDEN_SYMBOL_ID: 37, 3718 overriddenSymbolId: 37, 3719 CMS_SERIALIZED_RICH_TEXT_DATA: 38, 3720 cmsSerializedRichTextData: 38, 3721 HYPERLINK: 39, 3722 hyperlink: 39, 3723 SLOT_CONTENT_ID: 40, 3724 slotContentId: 40, 3725 GRID_ROW_GAP: 41, 3726 gridRowGap: 41, 3727 GRID_COLUMN_GAP: 42, 3728 gridColumnGap: 42, 3729 RELATIVE_X_POSITION: 43, 3730 xPosition: 43, 3731 RELATIVE_Y_POSITION: 44, 3732 relativeYPosition: 44, 3733 RELATIVE_ROTATION: 45, 3734 relativeRotation: 45, 3735 MOTION_TRANSLATION_X: 46, 3736 motionTranslationX: 46, 3737 MOTION_TRANSLATION_Y: 47, 3738 motionTranslationY: 47, 3739 MOTION_ROTATION: 48, 3740 motionRotation: 48, 3741 MOTION_SCALE_X: 49, 3742 motionScaleX: 49, 3743 MOTION_SCALE_Y: 50, 3744 motionScaleY: 50, 3745 MOTION_SHEAR: 51, 3746 motionShear: 51, 3747 SCROLL_OFFSET_X: 52, 3748 scrollOffsetX: 52, 3749 SCROLL_OFFSET_Y: 53, 3750 scrollOffsetY: 53, 3751 PATH_TRIM_START: 54, 3752 pathTrimStart: 54, 3753 PATH_TRIM_END: 55, 3754 pathTrimEnd: 55, 3755 DISSOLVE_PROGRESS: 56, 3756 dissolveProgress: 56 3757 }; 3758 var Keyframe = class { 3759 constructor(data) { 3760 this.timelinePosition = Math.round(data.timelinePosition); 3761 this.easing = data.easing; 3762 this.value = data.value; 3763 } 3764 }; 3765 var KeyframeTrack = class { 3766 constructor(data) { 3767 this.topLevelField = data.topLevelField; 3768 this.parameterField = data.parameterField; 3769 this.index = data.index; 3770 this.effectParametrizedField = data.effectParametrizedField; 3771 this.keyframeOperation = data.keyframeOperation; 3772 this.keyframes = data.keyframes; 3773 this.enabled = !!data.enabled; 3774 } 3775 }; 3776 var AnimationPreset = class { 3777 constructor(data) { 3778 this.nodeId = data.nodeId; 3779 this.keyframeTracks = data.keyframeTracks; 3780 } 3781 }; 3782 var PARAMETER_FIELD_ALIAS_MAP = { 3783 translateX: ParameterField.MOTION_TRANSLATION_X, 3784 translateY: ParameterField.MOTION_TRANSLATION_Y, 3785 rotate: ParameterField.MOTION_ROTATION, 3786 scaleX: ParameterField.MOTION_SCALE_X, 3787 scaleY: ParameterField.MOTION_SCALE_Y, 3788 shear: ParameterField.MOTION_SHEAR 3789 }; 3790 var KEYFRAMEABLE_FIELDS = /* @__PURE__ */ new Set([ 3791 "translateX", 3792 "translateY", 3793 "rotate", 3794 "scaleX", 3795 "scaleY", 3796 "shear", 3797 "cornerRadius", 3798 "strokeWeight", 3799 "rectangleTopLeftCornerRadius", 3800 "rectangleTopRightCornerRadius", 3801 "rectangleBottomLeftCornerRadius", 3802 "rectangleBottomRightCornerRadius", 3803 "stackSpacing", 3804 "stackPaddingLeft", 3805 "stackPaddingTop", 3806 "stackPaddingRight", 3807 "stackPaddingBottom", 3808 "width", 3809 "height", 3810 "borderTopWeight", 3811 "borderBottomWeight", 3812 "borderLeftWeight", 3813 "borderRightWeight", 3814 "stackCounterSpacing", 3815 "minWidth", 3816 "maxWidth", 3817 "minHeight", 3818 "maxHeight", 3819 "opacity", 3820 "gridRowGap", 3821 "gridColumnGap", 3822 "textData", 3823 "pathTrimStart", 3824 "pathTrimEnd" 3825 ]); 3826 var MODE_TO_OPERATION = { 3827 set: KeyframeOperation.SET, 3828 SET: KeyframeOperation.SET, 3829 offset: KeyframeOperation.OFFSET, 3830 OFFSET: KeyframeOperation.OFFSET, 3831 scale: KeyframeOperation.SCALE, 3832 SCALE: KeyframeOperation.SCALE 3833 }; 3834 function normalizeEasing(easing) { 3835 if (easing === void 0) return void 0; 3836 if (easing === "hold") return { interpolationType: InterpolationType.HOLD }; 3837 if (typeof easing === "string") { 3838 const easingType = EasingType[easing]; 3839 if (easingType === void 0) throw new Error('normalizeEasing: unknown easing "' + easing + '"'); 3840 return { easingType }; 3841 } 3842 return easing; 3843 } 3844 function compileKeyframe({ timelinePosition, value, easing }) { 3845 return new Keyframe({ 3846 timelinePosition: timelinePosition * 1e6, 3847 easing: normalizeEasing(easing), 3848 value 3849 }); 3850 } 3851 function tween({ mode, timelinePosition = 0, duration, from, to, easing, enabled = true }) { 3852 if (duration < 0) throw new Error("tween: duration must be non-negative"); 3853 return { 3854 mode, 3855 enabled, 3856 keyframes: [ 3857 { timelinePosition, value: from, easing }, 3858 { timelinePosition: timelinePosition + duration, value: to, easing } 3859 ] 3860 }; 3861 } 3862 function animate(node, definition) { 3863 const nodeId = typeof node === "string" ? node : node.id;
3864 const keyframeTracks = []; 3865 for (const [key, trackDef] of Object.entries(definition)) { 3866 if (!KEYFRAMEABLE_FIELDS.has(key)) { 3867 throw new Error('animate: unknown or non-keyframeable property "' + key + '"'); 3868 } 3869 const parameterField = PARAMETER_FIELD_ALIAS_MAP[key] ?? ParameterField[key]; 3870 const operation = MODE_TO_OPERATION[trackDef.mode]; 3871 if (operation === void 0) throw new Error('animate: unknown mode "' + trackDef.mode + '"'); 3872 const seen = /* @__PURE__ */ new Map(); 3873 for (const kf of trackDef.keyframes) seen.set(kf.timelinePosition, kf); 3874 const sorted = [...seen.values()].sort((a, b) => a.timelinePosition - b.timelinePosition); 3875 keyframeTracks.push(new KeyframeTrack({ 3876 parameterField, 3877 keyframeOperation: operation, 3878 keyframes: sorted.map(compileKeyframe), 3879 enabled: trackDef.enabled !== false 3880 })); 3881 } 3882 return new AnimationPreset({ nodeId, keyframeTracks }); 3883 } 3884 3885
3885// ../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/share/motion/src/presets/source/path_draw.ts 3886 function preset({ duration, mode, direction, target }) { 3887 const easing = { easingType: EasingType.LINEAR }; 3888 if (mode === "reveal") { 3889 if (direction === "forward") { 3890 return [ 3891 animate(target, { 3892 pathTrimStart: tween({ mode: "set", duration, from: 0, to: 0, easing }), 3893 pathTrimEnd: tween({ mode: "set", duration, from: 0, to: 1, easing }) 3894 }) 3895 ]; 3896 } else { 3897 return [ 3898 animate(target, { 3899 pathTrimStart: tween({ mode: "set", duration, from: 1, to: 0, easing }), 3900 pathTrimEnd: tween({ mode: "set", duration, from: 1, to: 1, easing }) 3901 }) 3902 ]; 3903 } 3904 } else { 3905 if (direction === "forward") { 3906 return [ 3907 animate(target, { 3908 pathTrimStart: tween({ mode: "set", duration, from: 0, to: 1, easing }), 3909 pathTrimEnd: tween({ mode: "set", duration, from: 1, to: 1, easing }) 3910 }) 3911 ]; 3912 } else { 3913 return [ 3914 animate(target, { 3915 pathTrimStart: tween({ mode: "set", duration, from: 0, to: 0, easing }), 3916 pathTrimEnd: tween({ mode: "set", duration, from: 1, to: 0, easing }) 3917 }) 3918 ]; 3919 } 3920 } 3921 } 3922 defineProperties(preset, { 3923 duration: { 3924 label: "Duration", 3925 type: "number", 3926 defaultValue: 0.5, 3927 control: "input", 3928 min: 0.01, 3929 unit: "s" 3930 }, 3931 mode: { 3932 label: "Mode", 3933 type: "string", 3934 defaultValue: "reveal", 3935 control: "select", 3936 options: [ 3937 { value: "reveal", label: "Reveal" }, 3938 { value: "hide", label: "Hide" } 3939 ] 3940 }, 3941 direction: { 3942 label: "Direction", 3943 type: "string", 3944 defaultValue: "forward", 3945 control: "select", 3946 options: [ 3947 { value: "forward", label: "Forward" }, 3948 { value: "reverse", label: "Reverse" } 3949 ] 3950 } 3951 }); 3952 return __toCommonJS(path_draw_exports); 3953})();`});var o0,i0,s0=Qt(()=>{o0=`// Source-of-truth for the PATH_TRAVEL first-party animation preset. 3954// 3955// The build-time preset-bundle codegen (see \`../scripts/generate_preset_bundles.ts\`) 3956// reads this file's raw text, esbuilds it into an IIFE with \`figma:motion\` 3957// resolved, and emits both strings into \`../generated/path_travel.generated.ts\`. 3958// The generated module is what runtime code consumes \u2014 never import this file 3959// directly from production code paths. 3960// 3961// This file is excluded from the share/motion \`ts_project\` compilation \u2014 it's 3962// only an input to the codegen tool, evaluated inside the QuickJS / iframe 3963// sandbox at runtime. 3964 3965import { animate, defineProperties, EasingType, tween } from 'figma:motion' 3966 3967import type { PresetArgs } from './preset_types' 3968 3969export default function preset({ 3970 duration, 3971 direction, 3972 segmentLength, 3973 loops, 3974 loopMode, 3975 target, 3976}: PresetArgs) { 3977 // Path Travel: A segment of the path travels along the entire path 3978 const segment = segmentLength / 100 // Convert percentage to 0-1 range 3979 const easing = { easingType: EasingType.LINEAR } 3980 3981 if (loopMode === 'circle') { 3982 // Circle mode: segment wraps around continuously 3983 if (direction === 'forward') { 3984 return [ 3985 animate(target, { 3986 pathTrimStart: tween({ mode: 'set', duration, from: 0, to: loops, easing }), 3987 pathTrimEnd: tween({ 3988 mode: 'set', 3989 duration, 3990 from: segment, 3991 to: segment + loops, 3992 easing, 3993 }), 3994 }), 3995 ] 3996 } else { 3997 return [ 3998 animate(target, { 3999 pathTrimStart: tween({ 4000 mode: 'set', 4001 duration, 4002 from: 1 - segment, 4003 to: 1 - segment - loops, 4004 easing, 4005 }), 4006 pathTrimEnd: tween({ mode: 'set', duration, from: 1, to: 1 - loops, easing }), 4007 }), 4008 ] 4009 } 4010 } 4011 4012 // Retrace mode: segment goes forward then backward for each loop 4013 const startKeyframes: Array<{ timelinePosition: number; value: number; easing: PresetArgs }> = [] 4014 const endKeyframes: Array<{ timelinePosition: number; value: number; easing: PresetArgs }> = [] 4015 const timePerLoop = duration / loops 4016 4017 if (direction === 'forward') { 4018 for (let i = 0; i < loops; i++) { 4019 const loopStartTime = i * timePerLoop 4020 const loopMidTime = loopStartTime + timePerLoop / 2 4021 const loopEndTime = loopStartTime + timePerLoop 4022 4023 // Forward phase 4024 startKeyframes.push({ timelinePosition: loopStartTime, value: 0, easing }) 4025 startKeyframes.push({ timelinePosition: loopMidTime, value: 1 - segment, easing }) 4026 // Backward phase 4027 startKeyframes.push({ timelinePosition: loopEndTime, value: 0, easing }) 4028 4029 endKeyframes.push({ timelinePosition: loopStartTime, value: segment, easing }) 4030 endKeyframes.push({ timelinePosition: loopMidTime, value: 1, easing }) 4031 endKeyframes.push({ timelinePosition: loopEndTime, value: segment, easing }) 4032 } 4033 } else { 4034 for (let i = 0; i < loops; i++) { 4035 const loopStartTime = i * timePerLoop 4036 const loopMidTime = loopStartTime + timePerLoop / 2 4037 const loopEndTime = loopStartTime + timePerLoop 4038 4039 // Backward phase 4040 startKeyframes.push({ timelinePosition: loopStartTime, value: 1 - segment, easing }) 4041 startKeyframes.push({ timelinePosition: loopMidTime, value: 0, easing }) 4042 // Forward phase 4043 startKeyframes.push({ timelinePosition: loopEndTime, value: 1 - segment, easing }) 4044 4045 endKeyframes.push({ timelinePosition: loopStartTime, value: 1, easing }) 4046 endKeyframes.push({ timelinePosition: loopMidTime, value: segment, easing }) 4047 endKeyframes.push({ timelinePosition: loopEndTime, value: 1, easing }) 4048 } 4049 } 4050 4051 return [ 4052 animate(target, {
4053 pathTrimStart: { mode: 'set', keyframes: startKeyframes }, 4054 pathTrimEnd: { mode: 'set', keyframes: endKeyframes }, 4055 }), 4056 ] 4057} 4058 4059// KEEP_IN_SYNC(share/motion/src/presets/path_travel_meta.ts) \u2014 these 4060// property bounds (min/max/unit) must match \`PROP_DEFS[*].inputConfig\` so the 4061// panel-side TS metadata and the bundled IIFE agree on every prop's contract. 4062defineProperties(preset, { 4063 duration: { 4064 label: 'Duration', 4065 type: 'number', 4066 defaultValue: 0.5, 4067 control: 'input', 4068 min: 0.01, 4069 unit: 's', 4070 }, 4071 direction: { 4072 label: 'Direction', 4073 type: 'string', 4074 defaultValue: 'forward', 4075 control: 'select', 4076 options: [ 4077 { value: 'forward', label: 'Forward' }, 4078 { value: 'reverse', label: 'Reverse' }, 4079 ], 4080 }, 4081 loopMode: { 4082 label: 'Loop Mode', 4083 type: 'string', 4084 defaultValue: 'circle', 4085 control: 'select', 4086 options: [ 4087 { value: 'circle', label: 'Circle Back' }, 4088 { value: 'retrace', label: 'Retrace Path' }, 4089 ], 4090 }, 4091 segmentLength: { 4092 label: 'Segment Length', 4093 type: 'number', 4094 defaultValue: 20, 4095 control: 'input', 4096 min: 0, 4097 max: 100, 4098 unit: '%', 4099 }, 4100 loops: { 4101 label: 'Loops', 4102 type: 'number', 4103 defaultValue: 1, 4104 control: 'input', 4105 min: 1, 4106 }, 4107}) 4108`,i0=`var __presetBundle = (() => { 4109 var __defProp = Object.defineProperty; 4110 var __getOwnPropDesc = Object.getOwnPropertyDescriptor; 4111 var __getOwnPropNames = Object.getOwnPropertyNames; 4112 var __hasOwnProp = Object.prototype.hasOwnProperty; 4113 var __export = (target, all) => { 4114 for (var name in all) 4115 __defProp(target, name, { get: all[name], enumerable: true }); 4116 }; 4117 var __copyProps = (to, from, except, desc) => { 4118 if (from && typeof from === "object" || typeof from === "function") { 4119 for (let key of __getOwnPropNames(from)) 4120 if (!__hasOwnProp.call(to, key) && key !== except) 4121 __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); 4122 } 4123 return to; 4124 }; 4125 var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); 4126 4127
4127// ../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/share/motion/src/presets/source/path_travel.ts 4128 var path_travel_exports = {}; 4129 __export(path_travel_exports, { 4130 default: () => preset 4131 }); 4132 4133 // figma-motion:figma:motion 4134 function defineProperties(component, spec) { 4135 Object.assign(component, { 4136 [/* @__PURE__ */ Symbol.for("figma.react.props")]: spec 4137 }); 4138 } 4139 var EasingType = { 4140 IN_CUBIC: 0, 4141 inCubic: 0, 4142 OUT_CUBIC: 1, 4143 outCubic: 1, 4144 INOUT_CUBIC: 2, 4145 inOutCubic: 2, 4146 LINEAR: 3, 4147 linear: 3, 4148 IN_BACK_CUBIC: 4, 4149 inBackCubic: 4, 4150 OUT_BACK_CUBIC: 5, 4151 outBackCubic: 5, 4152 INOUT_BACK_CUBIC: 6, 4153 inOutBackCubic: 6, 4154 CUSTOM_CUBIC: 7, 4155 customCubic: 7, 4156 SPRING: 8, 4157 spring: 8, 4158 GENTLE_SPRING: 9, 4159 gentleSpring: 9, 4160 CUSTOM_SPRING: 10, 4161 customSpring: 10, 4162 SPRING_PRESET_ONE: 11, 4163 springPresetOne: 11, 4164 SPRING_PRESET_TWO: 12, 4165 springPresetTwo: 12, 4166 SPRING_PRESET_THREE: 13, 4167 springPresetThree: 13, 4168 // For backwards compat 4169 bezier: 100, 4170 BEZIER: 100 4171 }; 4172 var InterpolationType = { 4173 HOLD: 0, 4174 hold: 0, 4175 BEZIER: 1, 4176 bezier: 1 4177 }; 4178 var KeyframeOperation = { 4179 SET: 0, 4180 set: 0, 4181 SCALE: 1, 4182 scale: 1, 4183 OFFSET: 2, 4184 offset: 2 4185 }; 4186 var ParameterField = { 4187 MISSING: 0, 4188 missing: 0, 4189 CORNER_RADIUS: 1, 4190 cornerRadius: 1, 4191 PARAGRAPH_SPACING: 2, 4192 paragraphSpacing: 2, 4193 PARAGRAPH_INDENT: 3, 4194 paragraphIndent: 3, 4195 STROKE_WEIGHT: 4, 4196 strokeWeight: 4, 4197 STACK_SPACING: 5, 4198 stackSpacing: 5, 4199 STACK_PADDING_LEFT: 6, 4200 stackPaddingLeft: 6, 4201 STACK_PADDING_TOP: 7, 4202 stackPaddingTop: 7, 4203 STACK_PADDING_RIGHT: 8, 4204 stackPaddingRight: 8, 4205 STACK_PADDING_BOTTOM: 9, 4206 stackPaddingBottom: 9, 4207 VISIBLE: 10, 4208 visible: 10, 4209 TEXT_DATA: 11, 4210 textData: 11, 4211 WIDTH: 12, 4212 width: 12, 4213 HEIGHT: 13, 4214 height: 13, 4215 RECTANGLE_TOP_LEFT_CORNER_RADIUS: 14, 4216 rectangleTopLeftCornerRadius: 14, 4217 RECTANGLE_TOP_RIGHT_CORNER_RADIUS: 15, 4218 rectangleTopRightCornerRadius: 15, 4219 RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS: 16, 4220 rectangleBottomLeftCornerRadius: 16, 4221 RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS: 17, 4222 rectangleBottomRightCornerRadius: 17, 4223 BORDER_TOP_WEIGHT: 18, 4224 borderTopWeight: 18, 4225 BORDER_BOTTOM_WEIGHT: 19, 4226 borderBottomWeight: 19, 4227 BORDER_LEFT_WEIGHT: 20, 4228 borderLeftWeight: 20, 4229 BORDER_RIGHT_WEIGHT: 21, 4230 borderRightWeight: 21, 4231 VARIANT_PROPERTIES: 22, 4232 variantProperties: 22, 4233 STACK_COUNTER_SPACING: 23, 4234 stackCounterSpacing: 23, 4235 MIN_WIDTH: 24, 4236 minWidth: 24, 4237 MAX_WIDTH: 25, 4238 maxWidth: 25, 4239 MIN_HEIGHT: 26, 4240 minHeight: 26, 4241 MAX_HEIGHT: 27, 4242 maxHeight: 27, 4243 FONT_FAMILY: 28, 4244 fontFamily: 28, 4245 FONT_STYLE: 29, 4246 fontStyle: 29, 4247 FONT_VARIATIONS: 30, 4248 fontVariations: 30, 4249 OPACITY: 31, 4250 opacity: 31, 4251 FONT_SIZE: 32, 4252 fontSize: 32, 4253 LETTER_SPACING: 34, 4254 letterSpacing: 34, 4255 LINE_HEIGHT: 36, 4256 lineHeight: 36, 4257 OVERRIDDEN_SYMBOL_ID: 37, 4258 overriddenSymbolId: 37, 4259 CMS_SERIALIZED_RICH_TEXT_DATA: 38, 4260 cmsSerializedRichTextData: 38, 4261 HYPERLINK: 39, 4262 hyperlink: 39, 4263 SLOT_CONTENT_ID: 40, 4264 slotContentId: 40, 4265 GRID_ROW_GAP: 41, 4266 gridRowGap: 41, 4267 GRID_COLUMN_GAP: 42, 4268 gridColumnGap: 42, 4269 RELATIVE_X_POSITION: 43, 4270 xPosition: 43, 4271 RELATIVE_Y_POSITION: 44, 4272 relativeYPosition: 44, 4273 RELATIVE_ROTATION: 45, 4274 relativeRotation: 45, 4275 MOTION_TRANSLATION_X: 46, 4276 motionTranslationX: 46, 4277 MOTION_TRANSLATION_Y: 47, 4278 motionTranslationY: 47, 4279 MOTION_ROTATION: 48, 4280 motionRotation: 48, 4281 MOTION_SCALE_X: 49, 4282 motionScaleX: 49, 4283 MOTION_SCALE_Y: 50, 4284 motionScaleY: 50, 4285 MOTION_SHEAR: 51, 4286 motionShear: 51, 4287 SCROLL_OFFSET_X: 52, 4288 scrollOffsetX: 52, 4289 SCROLL_OFFSET_Y: 53, 4290 scrollOffsetY: 53, 4291 PATH_TRIM_START: 54, 4292 pathTrimStart: 54, 4293 PATH_TRIM_END: 55, 4294 pathTrimEnd: 55, 4295 DISSOLVE_PROGRESS: 56, 4296 dissolveProgress: 56 4297 }; 4298 var Keyframe = class { 4299 constructor(data) { 4300 this.timelinePosition = Math.round(data.timelinePosition); 4301 this.easing = data.easing; 4302 this.value = data.value; 4303 } 4304 }; 4305 var KeyframeTrack = class { 4306 constructor(data) { 4307 this.topLevelField = data.topLevelField; 4308 this.parameterField = data.parameterField; 4309 this.index = data.index; 4310 this.effectParametrizedField = data.effectParametrizedField; 4311 this.keyframeOperation = data.keyframeOperation; 4312 this.keyframes = data.keyframes; 4313 this.enabled = !!data.enabled; 4314 } 4315 }; 4316 var AnimationPreset = class { 4317 constructor(data) { 4318 this.nodeId = data.nodeId; 4319 this.keyframeTracks = data.keyframeTracks; 4320 } 4321 }; 4322 var PARAMETER_FIELD_ALIAS_MAP = { 4323 translateX: ParameterField.MOTION_TRANSLATION_X, 4324 translateY: ParameterField.MOTION_TRANSLATION_Y, 4325 rotate: ParameterField.MOTION_ROTATION, 4326 scaleX: ParameterField.MOTION_SCALE_X, 4327 scaleY: ParameterField.MOTION_SCALE_Y, 4328 shear: ParameterField.MOTION_SHEAR 4329 }; 4330 var KEYFRAMEABLE_FIELDS = /* @__PURE__ */ new Set([ 4331 "translateX", 4332 "translateY", 4333 "rotate", 4334 "scaleX", 4335 "scaleY", 4336 "shear", 4337 "cornerRadius", 4338 "strokeWeight", 4339 "rectangleTopLeftCornerRadius", 4340 "rectangleTopRightCornerRadius", 4341 "rectangleBottomLeftCornerRadius", 4342 "rectangleBottomRightCornerRadius", 4343 "stackSpacing", 4344 "stackPaddingLeft", 4345 "stackPaddingTop", 4346 "stackPaddingRight", 4347 "stackPaddingBottom", 4348 "width", 4349 "height", 4350 "borderTopWeight", 4351 "borderBottomWeight", 4352 "borderLeftWeight", 4353 "borderRightWeight", 4354 "stackCounterSpacing", 4355 "minWidth", 4356 "maxWidth", 4357 "minHeight", 4358 "maxHeight", 4359 "opacity", 4360 "gridRowGap", 4361 "gridColumnGap", 4362 "textData", 4363 "pathTrimStart", 4364 "pathTrimEnd" 4365 ]); 4366 var MODE_TO_OPERATION = { 4367 set: KeyframeOperation.SET, 4368 SET: KeyframeOperation.SET, 4369 offset: KeyframeOperation.OFFSET, 4370 OFFSET: KeyframeOperation.OFFSET, 4371 scale: KeyframeOperation.SCALE, 4372 SCALE: KeyframeOperation.SCALE 4373 }; 4374 function normalizeEasing(easing) { 4375 if (easing === void 0) return void 0; 4376 if (easing === "hold") return { interpolationType: InterpolationType.HOLD }; 4377 if (typeof easing === "string") { 4378 const easingType = EasingType[easing]; 4379 if (easingType === void 0) throw new Error('normalizeEasing: unknown easing "' + easing + '"'); 4380 return { easingType }; 4381 } 4382 return easing; 4383 } 4384 function compileKeyframe({ timelinePosition, value, easing }) { 4385 return new Keyframe({ 4386 timelinePosition: timelinePosition * 1e6, 4387 easing: normalizeEasing(easing), 4388 value 4389 }); 4390 } 4391 function tween({ mode, timelinePosition = 0, duration, from, to, easing, enabled = true }) { 4392 if (duration < 0) throw new Error("tween: duration must be non-negative"); 4393 return { 4394 mode, 4395 enabled, 4396 keyframes: [ 4397 { timelinePosition, value: from, easing }, 4398 { timelinePosition: timelinePosition + duration, value: to, easing } 4399 ] 4400 }; 4401 } 4402 function animate(node, definition) { 4403 const nodeId = typeof node === "string" ? node : node.id;
4404 const keyframeTracks = []; 4405 for (const [key, trackDef] of Object.entries(definition)) { 4406 if (!KEYFRAMEABLE_FIELDS.has(key)) { 4407 throw new Error('animate: unknown or non-keyframeable property "' + key + '"'); 4408 } 4409 const parameterField = PARAMETER_FIELD_ALIAS_MAP[key] ?? ParameterField[key]; 4410 const operation = MODE_TO_OPERATION[trackDef.mode]; 4411 if (operation === void 0) throw new Error('animate: unknown mode "' + trackDef.mode + '"'); 4412 const seen = /* @__PURE__ */ new Map(); 4413 for (const kf of trackDef.keyframes) seen.set(kf.timelinePosition, kf); 4414 const sorted = [...seen.values()].sort((a, b) => a.timelinePosition - b.timelinePosition); 4415 keyframeTracks.push(new KeyframeTrack({ 4416 parameterField, 4417 keyframeOperation: operation, 4418 keyframes: sorted.map(compileKeyframe), 4419 enabled: trackDef.enabled !== false 4420 })); 4421 } 4422 return new AnimationPreset({ nodeId, keyframeTracks }); 4423 } 4424 4425
4425// ../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/share/motion/src/presets/source/path_travel.ts 4426 function preset({ 4427 duration, 4428 direction, 4429 segmentLength, 4430 loops, 4431 loopMode, 4432 target 4433 }) { 4434 const segment = segmentLength / 100; 4435 const easing = { easingType: EasingType.LINEAR }; 4436 if (loopMode === "circle") { 4437 if (direction === "forward") { 4438 return [ 4439 animate(target, { 4440 pathTrimStart: tween({ mode: "set", duration, from: 0, to: loops, easing }), 4441 pathTrimEnd: tween({ 4442 mode: "set", 4443 duration, 4444 from: segment, 4445 to: segment + loops, 4446 easing 4447 }) 4448 }) 4449 ]; 4450 } else { 4451 return [ 4452 animate(target, { 4453 pathTrimStart: tween({ 4454 mode: "set", 4455 duration, 4456 from: 1 - segment, 4457 to: 1 - segment - loops, 4458 easing 4459 }), 4460 pathTrimEnd: tween({ mode: "set", duration, from: 1, to: 1 - loops, easing }) 4461 }) 4462 ]; 4463 } 4464 } 4465 const startKeyframes = []; 4466 const endKeyframes = []; 4467 const timePerLoop = duration / loops; 4468 if (direction === "forward") { 4469 for (let i = 0; i < loops; i++) { 4470 const loopStartTime = i * timePerLoop; 4471 const loopMidTime = loopStartTime + timePerLoop / 2; 4472 const loopEndTime = loopStartTime + timePerLoop; 4473 startKeyframes.push({ timelinePosition: loopStartTime, value: 0, easing }); 4474 startKeyframes.push({ timelinePosition: loopMidTime, value: 1 - segment, easing }); 4475 startKeyframes.push({ timelinePosition: loopEndTime, value: 0, easing }); 4476 endKeyframes.push({ timelinePosition: loopStartTime, value: segment, easing }); 4477 endKeyframes.push({ timelinePosition: loopMidTime, value: 1, easing }); 4478 endKeyframes.push({ timelinePosition: loopEndTime, value: segment, easing }); 4479 } 4480 } else { 4481 for (let i = 0; i < loops; i++) { 4482 const loopStartTime = i * timePerLoop; 4483 const loopMidTime = loopStartTime + timePerLoop / 2; 4484 const loopEndTime = loopStartTime + timePerLoop; 4485 startKeyframes.push({ timelinePosition: loopStartTime, value: 1 - segment, easing }); 4486 startKeyframes.push({ timelinePosition: loopMidTime, value: 0, easing }); 4487 startKeyframes.push({ timelinePosition: loopEndTime, value: 1 - segment, easing }); 4488 endKeyframes.push({ timelinePosition: loopStartTime, value: 1, easing }); 4489 endKeyframes.push({ timelinePosition: loopMidTime, value: segment, easing }); 4490 endKeyframes.push({ timelinePosition: loopEndTime, value: 1, easing }); 4491 } 4492 } 4493 return [ 4494 animate(target, { 4495 pathTrimStart: { mode: "set", keyframes: startKeyframes }, 4496 pathTrimEnd: { mode: "set", keyframes: endKeyframes } 4497 }) 4498 ]; 4499 } 4500 defineProperties(preset, { 4501 duration: { 4502 label: "Duration", 4503 type: "number", 4504 defaultValue: 0.5, 4505 control: "input", 4506 min: 0.01, 4507 unit: "s" 4508 }, 4509 direction: { 4510 label: "Direction", 4511 type: "string", 4512 defaultValue: "forward", 4513 control: "select", 4514 options: [ 4515 { value: "forward", label: "Forward" }, 4516 { value: "reverse", label: "Reverse" } 4517 ] 4518 }, 4519 loopMode: { 4520 label: "Loop Mode", 4521 type: "string", 4522 defaultValue: "circle", 4523 control: "select", 4524 options: [ 4525 { value: "circle", label: "Circle Back" }, 4526 { value: "retrace", label: "Retrace Path" } 4527 ] 4528 }, 4529 segmentLength: { 4530 label: "Segment Length", 4531 type: "number", 4532 defaultValue: 20, 4533 control: "input", 4534 min: 0, 4535 max: 100, 4536 unit: "%" 4537 }, 4538 loops: { 4539 label: "Loops", 4540 type: "number", 4541 defaultValue: 1, 4542 control: "input", 4543 min: 1 4544 } 4545 }); 4546 return __toCommonJS(path_travel_exports); 4547})();`});var a0,l0,u0=Qt(()=>{a0=`// Source-of-truth for the POSITION first-party animation preset. 4548// 4549// The build-time preset-bundle codegen (see \`../scripts/generate_preset_bundles.ts\`) 4550// reads this file's raw text, esbuilds it into an IIFE with \`figma:motion\` 4551// resolved, and emits both strings into \`../generated/position.generated.ts\`. 4552// The generated module is what runtime code consumes \u2014 never import this file
4553// directly from production code paths. 4554// 4555// This file is excluded from the share/motion \`ts_project\` compilation \u2014 it's 4556// only an input to the codegen tool, evaluated inside the QuickJS / iframe 4557// sandbox at runtime. 4558 4559import { animate, defineProperties, EasingType, tween } from 'figma:motion' 4560 4561import type { PresetArgs, PresetTrackDefinitions } from './preset_types' 4562 4563function buildAxisTrack(from: number, to: number, duration: number, easing: unknown) { 4564 return tween({ 4565 mode: 'offset', 4566 timelinePosition: 0, 4567 duration, 4568 from, 4569 to, 4570 easing, 4571 }) 4572} 4573 4574export default function preset({ 4575 type, 4576 direction, 4577 distance, 4578 axis, 4579 startX, 4580 startY, 4581 endX, 4582 endY, 4583 duration, 4584 easing, 4585 node, 4586}: PresetArgs) { 4587 const safeDistance = typeof distance === 'number' ? distance : 0 4588 const safeStartX = typeof startX === 'number' ? startX : 200 4589 const safeStartY = typeof startY === 'number' ? startY : 200 4590 const safeEndX = typeof endX === 'number' ? endX : 0 4591 const safeEndY = typeof endY === 'number' ? endY : 0 4592 const safeDuration = typeof duration === 'number' ? duration : 0.5 4593 4594 const directionalOffsets: Record<string, [number, number]> = { 4595 left: [-safeDistance, 0], 4596 right: [safeDistance, 0], 4597 top: [0, -safeDistance], 4598 bottom: [0, safeDistance], 4599 top_left: [-safeDistance, -safeDistance], 4600 top_right: [safeDistance, -safeDistance], 4601 bottom_left: [-safeDistance, safeDistance], 4602 bottom_right: [safeDistance, safeDistance], 4603 } 4604 4605 const [offsetX, offsetY] = directionalOffsets[direction] ?? [0, 0] 4606 4607 let xTrack: [number, number] | null = null 4608 let yTrack: [number, number] | null = null 4609 4610 switch (type) { 4611 case 'slide_in': { 4612 xTrack = [offsetX, 0] 4613 yTrack = [offsetY, 0] 4614 break 4615 } 4616 case 'slide_out': { 4617 xTrack = [0, offsetX] 4618 yTrack = [0, offsetY] 4619 break 4620 } 4621 case 'custom': { 4622 switch (axis) { 4623 case 'x': { 4624 xTrack = [safeStartX, safeEndX] 4625 break 4626 } 4627 case 'y': { 4628 yTrack = [safeStartY, safeEndY] 4629 break 4630 } 4631 case 'xy': 4632 default: { 4633 xTrack = [safeStartX, safeEndX] 4634 yTrack = [safeStartY, safeEndY] 4635 break 4636 } 4637 } 4638 break 4639 } 4640 default: 4641 break 4642 } 4643 4644 const definition: PresetTrackDefinitions = {} 4645 if (xTrack) { 4646 definition.translateX = buildAxisTrack(xTrack[0], xTrack[1], safeDuration, easing) 4647 } 4648 if (yTrack) { 4649 definition.translateY = buildAxisTrack(yTrack[0], yTrack[1], safeDuration, easing) 4650 } 4651 4652 return [animate(node, definition)] 4653} 4654 4655defineProperties(preset, { 4656 type: { 4657 label: 'motion.preset_flyout.type', 4658 type: 'string', 4659 defaultValue: 'slide_in', 4660 control: 'select', 4661 options: [ 4662 { value: 'slide_in', label: 'motion.preset_flyout.position.type.slide_in' }, 4663 { value: 'slide_out', label: 'motion.preset_flyout.position.type.slide_out' }, 4664 { value: 'custom', label: 'motion.preset_flyout.type.custom' }, 4665 ], 4666 }, 4667 direction: { 4668 label: 'motion.preset_flyout.direction', 4669 type: 'string', 4670 defaultValue: 'left', 4671 control: 'select', 4672 options: [ 4673 { value: 'left', label: 'motion.preset_flyout.position.direction.left' }, 4674 { value: 'right', label: 'motion.preset_flyout.position.direction.right' }, 4675 { value: 'top', label: 'motion.preset_flyout.position.direction.top' }, 4676 { value: 'bottom', label: 'motion.preset_flyout.position.direction.bottom' }, 4677 { value: 'top_left', label: 'motion.preset_flyout.top_left' }, 4678 { value: 'top_right', label: 'motion.preset_flyout.top_right' }, 4679 { value: 'bottom_left', label: 'motion.preset_flyout.bottom_left' }, 4680 { value: 'bottom_right', label: 'motion.preset_flyout.bottom_right' }, 4681 ], 4682 }, 4683 distance: { 4684 label: 'motion.preset_flyout.position.distance', 4685 type: 'number', 4686 control: 'input', 4687 defaultValue: 200, 4688 unit: 'px', 4689 }, 4690 axis: { 4691 label: 'motion.preset_flyout.axis', 4692 type: 'string', 4693 defaultValue: 'xy', 4694 control: 'select', 4695 options: [ 4696 { value: 'x', label: 'motion.preset_flyout.x' }, 4697 { value: 'y', label: 'motion.preset_flyout.y' }, 4698 { value: 'xy', label: 'motion.preset_flyout.both' }, 4699 ], 4700 },
4701 // TODO(showDividerAbove-cleanup): the \`showDividerAbove\` flags in this file 4702 // are redundant \u2014 section dividers are now applied client-side in the preset 4703 // flyout via \`forceShowDividerAboveTransform\` 4704 startX: { 4705 label: 'motion.preset_flyout.start', 4706 type: 'number', 4707 control: 'input', 4708 defaultValue: 200, 4709 showDividerAbove: true, 4710 icon: 'x', 4711 }, 4712 startY: { 4713 label: 'motion.preset_flyout.start', 4714 type: 'number', 4715 control: 'input', 4716 defaultValue: 200, 4717 icon: 'y', 4718 }, 4719 endX: { 4720 label: 'motion.preset_flyout.end', 4721 type: 'number', 4722 control: 'input', 4723 defaultValue: 0, 4724 icon: 'x', 4725 }, 4726 endY: { 4727 label: 'motion.preset_flyout.end', 4728 type: 'number', 4729 control: 'input', 4730 defaultValue: 0, 4731 icon: 'y', 4732 }, 4733 // Note: 'delay' is kept in sync with a preset's \`timelineOffset\` 4734 delay: { 4735 label: 'motion.preset_flyout.delay', 4736 type: 'number', 4737 control: 'input', 4738 defaultValue: 0, 4739 unit: 's', 4740 showDividerAbove: true, 4741 icon: 'delay', 4742 }, 4743 duration: { 4744 label: 'motion.preset_flyout.duration', 4745 type: 'number', 4746 control: 'input', 4747 defaultValue: 0.5, 4748 min: 0.01, 4749 unit: 's', 4750 icon: 'time', 4751 }, 4752 easing: { 4753 label: 'motion.preset_flyout.easing', 4754 type: 'easing', 4755 defaultValue: { 4756 easingType: EasingType.OUT_CUBIC, 4757 }, 4758 }, 4759}) 4760`,l0=`var __presetBundle = (() => { 4761 var __defProp = Object.defineProperty; 4762 var __getOwnPropDesc = Object.getOwnPropertyDescriptor; 4763 var __getOwnPropNames = Object.getOwnPropertyNames; 4764 var __hasOwnProp = Object.prototype.hasOwnProperty; 4765 var __export = (target, all) => { 4766 for (var name in all) 4767 __defProp(target, name, { get: all[name], enumerable: true }); 4768 }; 4769 var __copyProps = (to, from, except, desc) => { 4770 if (from && typeof from === "object" || typeof from === "function") { 4771 for (let key of __getOwnPropNames(from)) 4772 if (!__hasOwnProp.call(to, key) && key !== except) 4773 __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); 4774 } 4775 return to; 4776 }; 4777 var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); 4778 4779
4779// ../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/share/motion/src/presets/source/position.ts 4780 var position_exports = {}; 4781 __export(position_exports, { 4782 default: () => preset 4783 }); 4784 4785 // figma-motion:figma:motion 4786 function defineProperties(component, spec) { 4787 Object.assign(component, { 4788 [/* @__PURE__ */ Symbol.for("figma.react.props")]: spec 4789 }); 4790 } 4791 var EasingType = { 4792 IN_CUBIC: 0, 4793 inCubic: 0, 4794 OUT_CUBIC: 1, 4795 outCubic: 1, 4796 INOUT_CUBIC: 2, 4797 inOutCubic: 2, 4798 LINEAR: 3, 4799 linear: 3, 4800 IN_BACK_CUBIC: 4, 4801 inBackCubic: 4, 4802 OUT_BACK_CUBIC: 5, 4803 outBackCubic: 5, 4804 INOUT_BACK_CUBIC: 6, 4805 inOutBackCubic: 6, 4806 CUSTOM_CUBIC: 7, 4807 customCubic: 7, 4808 SPRING: 8, 4809 spring: 8, 4810 GENTLE_SPRING: 9, 4811 gentleSpring: 9, 4812 CUSTOM_SPRING: 10, 4813 customSpring: 10, 4814 SPRING_PRESET_ONE: 11, 4815 springPresetOne: 11, 4816 SPRING_PRESET_TWO: 12, 4817 springPresetTwo: 12, 4818 SPRING_PRESET_THREE: 13, 4819 springPresetThree: 13, 4820 // For backwards compat 4821 bezier: 100, 4822 BEZIER: 100 4823 }; 4824 var InterpolationType = { 4825 HOLD: 0, 4826 hold: 0, 4827 BEZIER: 1, 4828 bezier: 1 4829 }; 4830 var KeyframeOperation = { 4831 SET: 0, 4832 set: 0, 4833 SCALE: 1, 4834 scale: 1, 4835 OFFSET: 2, 4836 offset: 2 4837 }; 4838 var ParameterField = { 4839 MISSING: 0, 4840 missing: 0, 4841 CORNER_RADIUS: 1, 4842 cornerRadius: 1, 4843 PARAGRAPH_SPACING: 2, 4844 paragraphSpacing: 2, 4845 PARAGRAPH_INDENT: 3, 4846 paragraphIndent: 3, 4847 STROKE_WEIGHT: 4, 4848 strokeWeight: 4, 4849 STACK_SPACING: 5, 4850 stackSpacing: 5, 4851 STACK_PADDING_LEFT: 6, 4852 stackPaddingLeft: 6, 4853 STACK_PADDING_TOP: 7, 4854 stackPaddingTop: 7, 4855 STACK_PADDING_RIGHT: 8, 4856 stackPaddingRight: 8, 4857 STACK_PADDING_BOTTOM: 9, 4858 stackPaddingBottom: 9, 4859 VISIBLE: 10, 4860 visible: 10, 4861 TEXT_DATA: 11, 4862 textData: 11, 4863 WIDTH: 12, 4864 width: 12, 4865 HEIGHT: 13, 4866 height: 13, 4867 RECTANGLE_TOP_LEFT_CORNER_RADIUS: 14, 4868 rectangleTopLeftCornerRadius: 14, 4869 RECTANGLE_TOP_RIGHT_CORNER_RADIUS: 15, 4870 rectangleTopRightCornerRadius: 15, 4871 RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS: 16, 4872 rectangleBottomLeftCornerRadius: 16, 4873 RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS: 17, 4874 rectangleBottomRightCornerRadius: 17, 4875 BORDER_TOP_WEIGHT: 18, 4876 borderTopWeight: 18, 4877 BORDER_BOTTOM_WEIGHT: 19, 4878 borderBottomWeight: 19, 4879 BORDER_LEFT_WEIGHT: 20, 4880 borderLeftWeight: 20, 4881 BORDER_RIGHT_WEIGHT: 21, 4882 borderRightWeight: 21, 4883 VARIANT_PROPERTIES: 22, 4884 variantProperties: 22, 4885 STACK_COUNTER_SPACING: 23, 4886 stackCounterSpacing: 23, 4887 MIN_WIDTH: 24, 4888 minWidth: 24, 4889 MAX_WIDTH: 25, 4890 maxWidth: 25, 4891 MIN_HEIGHT: 26, 4892 minHeight: 26, 4893 MAX_HEIGHT: 27, 4894 maxHeight: 27, 4895 FONT_FAMILY: 28, 4896 fontFamily: 28, 4897 FONT_STYLE: 29, 4898 fontStyle: 29, 4899 FONT_VARIATIONS: 30, 4900 fontVariations: 30, 4901 OPACITY: 31, 4902 opacity: 31, 4903 FONT_SIZE: 32, 4904 fontSize: 32, 4905 LETTER_SPACING: 34, 4906 letterSpacing: 34, 4907 LINE_HEIGHT: 36, 4908 lineHeight: 36, 4909 OVERRIDDEN_SYMBOL_ID: 37, 4910 overriddenSymbolId: 37, 4911 CMS_SERIALIZED_RICH_TEXT_DATA: 38, 4912 cmsSerializedRichTextData: 38, 4913 HYPERLINK: 39, 4914 hyperlink: 39, 4915 SLOT_CONTENT_ID: 40, 4916 slotContentId: 40, 4917 GRID_ROW_GAP: 41, 4918 gridRowGap: 41, 4919 GRID_COLUMN_GAP: 42, 4920 gridColumnGap: 42, 4921 RELATIVE_X_POSITION: 43, 4922 xPosition: 43, 4923 RELATIVE_Y_POSITION: 44, 4924 relativeYPosition: 44, 4925 RELATIVE_ROTATION: 45, 4926 relativeRotation: 45, 4927 MOTION_TRANSLATION_X: 46, 4928 motionTranslationX: 46, 4929 MOTION_TRANSLATION_Y: 47, 4930 motionTranslationY: 47, 4931 MOTION_ROTATION: 48, 4932 motionRotation: 48, 4933 MOTION_SCALE_X: 49, 4934 motionScaleX: 49, 4935 MOTION_SCALE_Y: 50, 4936 motionScaleY: 50, 4937 MOTION_SHEAR: 51, 4938 motionShear: 51, 4939 SCROLL_OFFSET_X: 52, 4940 scrollOffsetX: 52, 4941 SCROLL_OFFSET_Y: 53, 4942 scrollOffsetY: 53, 4943 PATH_TRIM_START: 54, 4944 pathTrimStart: 54, 4945 PATH_TRIM_END: 55, 4946 pathTrimEnd: 55, 4947 DISSOLVE_PROGRESS: 56, 4948 dissolveProgress: 56 4949 }; 4950 var Keyframe = class { 4951 constructor(data) { 4952 this.timelinePosition = Math.round(data.timelinePosition); 4953 this.easing = data.easing; 4954 this.value = data.value; 4955 } 4956 }; 4957 var KeyframeTrack = class { 4958 constructor(data) { 4959 this.topLevelField = data.topLevelField; 4960 this.parameterField = data.parameterField; 4961 this.index = data.index; 4962 this.effectParametrizedField = data.effectParametrizedField; 4963 this.keyframeOperation = data.keyframeOperation; 4964 this.keyframes = data.keyframes; 4965 this.enabled = !!data.enabled; 4966 } 4967 }; 4968 var AnimationPreset = class { 4969 constructor(data) { 4970 this.nodeId = data.nodeId; 4971 this.keyframeTracks = data.keyframeTracks; 4972 } 4973 }; 4974 var PARAMETER_FIELD_ALIAS_MAP = { 4975 translateX: ParameterField.MOTION_TRANSLATION_X, 4976 translateY: ParameterField.MOTION_TRANSLATION_Y, 4977 rotate: ParameterField.MOTION_ROTATION, 4978 scaleX: ParameterField.MOTION_SCALE_X, 4979 scaleY: ParameterField.MOTION_SCALE_Y, 4980 shear: ParameterField.MOTION_SHEAR 4981 }; 4982 var KEYFRAMEABLE_FIELDS = /* @__PURE__ */ new Set([ 4983 "translateX", 4984 "translateY", 4985 "rotate", 4986 "scaleX", 4987 "scaleY", 4988 "shear", 4989 "cornerRadius", 4990 "strokeWeight", 4991 "rectangleTopLeftCornerRadius", 4992 "rectangleTopRightCornerRadius", 4993 "rectangleBottomLeftCornerRadius", 4994 "rectangleBottomRightCornerRadius", 4995 "stackSpacing", 4996 "stackPaddingLeft", 4997 "stackPaddingTop", 4998 "stackPaddingRight", 4999 "stackPaddingBottom", 5000 "width", 5001 "height", 5002 "borderTopWeight", 5003 "borderBottomWeight", 5004 "borderLeftWeight", 5005 "borderRightWeight", 5006 "stackCounterSpacing", 5007 "minWidth", 5008 "maxWidth", 5009 "minHeight", 5010 "maxHeight", 5011 "opacity", 5012 "gridRowGap", 5013 "gridColumnGap", 5014 "textData", 5015 "pathTrimStart", 5016 "pathTrimEnd" 5017 ]); 5018 var MODE_TO_OPERATION = { 5019 set: KeyframeOperation.SET, 5020 SET: KeyframeOperation.SET, 5021 offset: KeyframeOperation.OFFSET, 5022 OFFSET: KeyframeOperation.OFFSET, 5023 scale: KeyframeOperation.SCALE, 5024 SCALE: KeyframeOperation.SCALE 5025 }; 5026 function normalizeEasing(easing) { 5027 if (easing === void 0) return void 0; 5028 if (easing === "hold") return { interpolationType: InterpolationType.HOLD }; 5029 if (typeof easing === "string") { 5030 const easingType = EasingType[easing]; 5031 if (easingType === void 0) throw new Error('normalizeEasing: unknown easing "' + easing + '"'); 5032 return { easingType }; 5033 } 5034 return easing; 5035 } 5036 function compileKeyframe({ timelinePosition, value, easing }) { 5037 return new Keyframe({ 5038 timelinePosition: timelinePosition * 1e6, 5039 easing: normalizeEasing(easing), 5040 value 5041 }); 5042 } 5043 function tween({ mode, timelinePosition = 0, duration, from, to, easing, enabled = true }) { 5044 if (duration < 0) throw new Error("tween: duration must be non-negative"); 5045 return { 5046 mode, 5047 enabled, 5048 keyframes: [ 5049 { timelinePosition, value: from, easing }, 5050 { timelinePosition: timelinePosition + duration, value: to, easing } 5051 ] 5052 }; 5053 } 5054 function animate(node, definition) { 5055 const nodeId = typeof node === "string" ? node : node.id;
5056 const keyframeTracks = []; 5057 for (const [key, trackDef] of Object.entries(definition)) { 5058 if (!KEYFRAMEABLE_FIELDS.has(key)) { 5059 throw new Error('animate: unknown or non-keyframeable property "' + key + '"'); 5060 } 5061 const parameterField = PARAMETER_FIELD_ALIAS_MAP[key] ?? ParameterField[key]; 5062 const operation = MODE_TO_OPERATION[trackDef.mode]; 5063 if (operation === void 0) throw new Error('animate: unknown mode "' + trackDef.mode + '"'); 5064 const seen = /* @__PURE__ */ new Map(); 5065 for (const kf of trackDef.keyframes) seen.set(kf.timelinePosition, kf); 5066 const sorted = [...seen.values()].sort((a, b) => a.timelinePosition - b.timelinePosition); 5067 keyframeTracks.push(new KeyframeTrack({ 5068 parameterField, 5069 keyframeOperation: operation, 5070 keyframes: sorted.map(compileKeyframe), 5071 enabled: trackDef.enabled !== false 5072 })); 5073 } 5074 return new AnimationPreset({ nodeId, keyframeTracks }); 5075 } 5076 5077
5077// ../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/share/motion/src/presets/source/position.ts 5078 function buildAxisTrack(from, to, duration, easing) { 5079 return tween({ 5080 mode: "offset", 5081 timelinePosition: 0, 5082 duration, 5083 from, 5084 to, 5085 easing 5086 }); 5087 } 5088 function preset({ 5089 type, 5090 direction, 5091 distance, 5092 axis, 5093 startX, 5094 startY, 5095 endX, 5096 endY, 5097 duration, 5098 easing, 5099 node 5100 }) { 5101 const safeDistance = typeof distance === "number" ? distance : 0; 5102 const safeStartX = typeof startX === "number" ? startX : 200; 5103 const safeStartY = typeof startY === "number" ? startY : 200; 5104 const safeEndX = typeof endX === "number" ? endX : 0; 5105 const safeEndY = typeof endY === "number" ? endY : 0; 5106 const safeDuration = typeof duration === "number" ? duration : 0.5; 5107 const directionalOffsets = { 5108 left: [-safeDistance, 0], 5109 right: [safeDistance, 0], 5110 top: [0, -safeDistance], 5111 bottom: [0, safeDistance], 5112 top_left: [-safeDistance, -safeDistance], 5113 top_right: [safeDistance, -safeDistance], 5114 bottom_left: [-safeDistance, safeDistance], 5115 bottom_right: [safeDistance, safeDistance] 5116 }; 5117 const [offsetX, offsetY] = directionalOffsets[direction] ?? [0, 0]; 5118 let xTrack = null; 5119 let yTrack = null; 5120 switch (type) { 5121 case "slide_in": { 5122 xTrack = [offsetX, 0]; 5123 yTrack = [offsetY, 0]; 5124 break; 5125 } 5126 case "slide_out": { 5127 xTrack = [0, offsetX]; 5128 yTrack = [0, offsetY]; 5129 break; 5130 } 5131 case "custom": { 5132 switch (axis) { 5133 case "x": { 5134 xTrack = [safeStartX, safeEndX]; 5135 break; 5136 } 5137 case "y": { 5138 yTrack = [safeStartY, safeEndY]; 5139 break; 5140 } 5141 case "xy": 5142 default: { 5143 xTrack = [safeStartX, safeEndX]; 5144 yTrack = [safeStartY, safeEndY]; 5145 break; 5146 } 5147 } 5148 break; 5149 } 5150 default: 5151 break; 5152 } 5153 const definition = {}; 5154 if (xTrack) { 5155 definition.translateX = buildAxisTrack(xTrack[0], xTrack[1], safeDuration, easing); 5156 } 5157 if (yTrack) { 5158 definition.translateY = buildAxisTrack(yTrack[0], yTrack[1], safeDuration, easing); 5159 } 5160 return [animate(node, definition)]; 5161 } 5162 defineProperties(preset, { 5163 type: { 5164 label: "motion.preset_flyout.type", 5165 type: "string", 5166 defaultValue: "slide_in", 5167 control: "select", 5168 options: [ 5169 { value: "slide_in", label: "motion.preset_flyout.position.type.slide_in" }, 5170 { value: "slide_out", label: "motion.preset_flyout.position.type.slide_out" }, 5171 { value: "custom", label: "motion.preset_flyout.type.custom" } 5172 ] 5173 }, 5174 direction: { 5175 label: "motion.preset_flyout.direction", 5176 type: "string", 5177 defaultValue: "left", 5178 control: "select", 5179 options: [ 5180 { value: "left", label: "motion.preset_flyout.position.direction.left" }, 5181 { value: "right", label: "motion.preset_flyout.position.direction.right" }, 5182 { value: "top", label: "motion.preset_flyout.position.direction.top" }, 5183 { value: "bottom", label: "motion.preset_flyout.position.direction.bottom" }, 5184 { value: "top_left", label: "motion.preset_flyout.top_left" }, 5185 { value: "top_right", label: "motion.preset_flyout.top_right" }, 5186 { value: "bottom_left", label: "motion.preset_flyout.bottom_left" }, 5187 { value: "bottom_right", label: "motion.preset_flyout.bottom_right" } 5188 ] 5189 }, 5190 distance: { 5191 label: "motion.preset_flyout.position.distance", 5192 type: "number", 5193 control: "input", 5194 defaultValue: 200, 5195 unit: "px" 5196 }, 5197 axis: { 5198 label: "motion.preset_flyout.axis", 5199 type: "string", 5200 defaultValue: "xy", 5201 control: "select", 5202 options: [ 5203 { value: "x", label: "motion.preset_flyout.x" }, 5204 { value: "y", label: "motion.preset_flyout.y" }, 5205 { value: "xy", label: "motion.preset_flyout.both" } 5206 ] 5207 },
5208 // TODO(showDividerAbove-cleanup): the \`showDividerAbove\` flags in this file 5209 // are redundant \u2014 section dividers are now applied client-side in the preset 5210 // flyout via \`forceShowDividerAboveTransform\` 5211 startX: { 5212 label: "motion.preset_flyout.start", 5213 type: "number", 5214 control: "input", 5215 defaultValue: 200, 5216 showDividerAbove: true, 5217 icon: "x" 5218 }, 5219 startY: { 5220 label: "motion.preset_flyout.start", 5221 type: "number", 5222 control: "input", 5223 defaultValue: 200, 5224 icon: "y" 5225 }, 5226 endX: { 5227 label: "motion.preset_flyout.end", 5228 type: "number", 5229 control: "input", 5230 defaultValue: 0, 5231 icon: "x" 5232 }, 5233 endY: { 5234 label: "motion.preset_flyout.end", 5235 type: "number", 5236 control: "input", 5237 defaultValue: 0, 5238 icon: "y" 5239 }, 5240 // Note: 'delay' is kept in sync with a preset's \`timelineOffset\` 5241 delay: { 5242 label: "motion.preset_flyout.delay", 5243 type: "number", 5244 control: "input", 5245 defaultValue: 0, 5246 unit: "s", 5247 showDividerAbove: true, 5248 icon: "delay" 5249 }, 5250 duration: { 5251 label: "motion.preset_flyout.duration", 5252 type: "number", 5253 control: "input", 5254 defaultValue: 0.5, 5255 min: 0.01, 5256 unit: "s", 5257 icon: "time" 5258 }, 5259 easing: { 5260 label: "motion.preset_flyout.easing", 5261 type: "easing", 5262 defaultValue: { 5263 easingType: EasingType.OUT_CUBIC 5264 } 5265 } 5266 }); 5267 return __toCommonJS(position_exports); 5268})();`});var c0,d0,f0=Qt(()=>{c0=`// Source-of-truth for the RESIZE first-party animation preset. 5269// 5270// The build-time preset-bundle codegen (see \`../scripts/generate_preset_bundles.ts\`) 5271// reads this file's raw text, esbuilds it into an IIFE with \`figma:motion\` 5272// resolved, and emits both strings into \`../generated/resize.generated.ts\`. The 5273// generated module is what runtime code consumes \u2014 never import this file 5274// directly from production code paths. 5275// 5276// This file is excluded from the share/motion \`ts_project\` compilation \u2014 it's 5277// only an input to the codegen tool, evaluated inside the QuickJS / iframe 5278// sandbox at runtime. 5279 5280import { animate, defineProperties, EasingType, tween } from 'figma:motion' 5281 5282import type { PresetArgs, PresetTrackDefinitions } from './preset_types' 5283 5284export default function preset({ widthChange, heightChange, duration, easing, node }: PresetArgs) { 5285 const definition: PresetTrackDefinitions = {} 5286 5287 if (widthChange !== 0) 5288 definition.width = tween({ 5289 mode: 'offset', 5290 duration, 5291 from: 0, 5292 to: widthChange, 5293 easing, 5294 }) 5295 5296 if (heightChange !== 0) 5297 definition.height = tween({ 5298 mode: 'offset', 5299 duration, 5300 from: 0, 5301 to: heightChange, 5302 easing, 5303 }) 5304 5305 return [animate(node, definition)] 5306} 5307 5308defineProperties(preset, { 5309 widthChange: { 5310 label: 'Width Change', 5311 type: 'number', 5312 defaultValue: 100, 5313 control: 'input', 5314 }, 5315 heightChange: { 5316 label: 'Height Change', 5317 type: 'number', 5318 defaultValue: 0, 5319 control: 'input', 5320 }, 5321 duration: { 5322 label: 'Duration', 5323 type: 'number', 5324 defaultValue: 0.5, 5325 control: 'input', 5326 min: 0.01, 5327 unit: 's', 5328 }, 5329 easing: { 5330 label: 'Easing', 5331 type: 'easing', 5332 defaultValue: { 5333 easingType: EasingType.OUT_CUBIC, 5334 }, 5335 }, 5336}) 5337`,d0=`var __presetBundle = (() => { 5338 var __defProp = Object.defineProperty; 5339 var __getOwnPropDesc = Object.getOwnPropertyDescriptor; 5340 var __getOwnPropNames = Object.getOwnPropertyNames; 5341 var __hasOwnProp = Object.prototype.hasOwnProperty; 5342 var __export = (target, all) => { 5343 for (var name in all) 5344 __defProp(target, name, { get: all[name], enumerable: true }); 5345 }; 5346 var __copyProps = (to, from, except, desc) => { 5347 if (from && typeof from === "object" || typeof from === "function") { 5348 for (let key of __getOwnPropNames(from)) 5349 if (!__hasOwnProp.call(to, key) && key !== except) 5350 __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); 5351 } 5352 return to; 5353 }; 5354 var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); 5355 5356
5356// ../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/share/motion/src/presets/source/resize.ts 5357 var resize_exports = {}; 5358 __export(resize_exports, { 5359 default: () => preset 5360 }); 5361 5362 // figma-motion:figma:motion 5363 function defineProperties(component, spec) { 5364 Object.assign(component, { 5365 [/* @__PURE__ */ Symbol.for("figma.react.props")]: spec 5366 }); 5367 } 5368 var EasingType = { 5369 IN_CUBIC: 0, 5370 inCubic: 0, 5371 OUT_CUBIC: 1, 5372 outCubic: 1, 5373 INOUT_CUBIC: 2, 5374 inOutCubic: 2, 5375 LINEAR: 3, 5376 linear: 3, 5377 IN_BACK_CUBIC: 4, 5378 inBackCubic: 4, 5379 OUT_BACK_CUBIC: 5, 5380 outBackCubic: 5, 5381 INOUT_BACK_CUBIC: 6, 5382 inOutBackCubic: 6, 5383 CUSTOM_CUBIC: 7, 5384 customCubic: 7, 5385 SPRING: 8, 5386 spring: 8, 5387 GENTLE_SPRING: 9, 5388 gentleSpring: 9, 5389 CUSTOM_SPRING: 10, 5390 customSpring: 10, 5391 SPRING_PRESET_ONE: 11, 5392 springPresetOne: 11, 5393 SPRING_PRESET_TWO: 12, 5394 springPresetTwo: 12, 5395 SPRING_PRESET_THREE: 13, 5396 springPresetThree: 13, 5397 // For backwards compat 5398 bezier: 100, 5399 BEZIER: 100 5400 }; 5401 var InterpolationType = { 5402 HOLD: 0, 5403 hold: 0, 5404 BEZIER: 1, 5405 bezier: 1 5406 }; 5407 var KeyframeOperation = { 5408 SET: 0, 5409 set: 0, 5410 SCALE: 1, 5411 scale: 1, 5412 OFFSET: 2, 5413 offset: 2 5414 }; 5415 var ParameterField = { 5416 MISSING: 0, 5417 missing: 0, 5418 CORNER_RADIUS: 1, 5419 cornerRadius: 1, 5420 PARAGRAPH_SPACING: 2, 5421 paragraphSpacing: 2, 5422 PARAGRAPH_INDENT: 3, 5423 paragraphIndent: 3, 5424 STROKE_WEIGHT: 4, 5425 strokeWeight: 4, 5426 STACK_SPACING: 5, 5427 stackSpacing: 5, 5428 STACK_PADDING_LEFT: 6, 5429 stackPaddingLeft: 6, 5430 STACK_PADDING_TOP: 7, 5431 stackPaddingTop: 7, 5432 STACK_PADDING_RIGHT: 8, 5433 stackPaddingRight: 8, 5434 STACK_PADDING_BOTTOM: 9, 5435 stackPaddingBottom: 9, 5436 VISIBLE: 10, 5437 visible: 10, 5438 TEXT_DATA: 11, 5439 textData: 11, 5440 WIDTH: 12, 5441 width: 12, 5442 HEIGHT: 13, 5443 height: 13, 5444 RECTANGLE_TOP_LEFT_CORNER_RADIUS: 14, 5445 rectangleTopLeftCornerRadius: 14, 5446 RECTANGLE_TOP_RIGHT_CORNER_RADIUS: 15, 5447 rectangleTopRightCornerRadius: 15, 5448 RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS: 16, 5449 rectangleBottomLeftCornerRadius: 16, 5450 RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS: 17, 5451 rectangleBottomRightCornerRadius: 17, 5452 BORDER_TOP_WEIGHT: 18, 5453 borderTopWeight: 18, 5454 BORDER_BOTTOM_WEIGHT: 19, 5455 borderBottomWeight: 19, 5456 BORDER_LEFT_WEIGHT: 20, 5457 borderLeftWeight: 20, 5458 BORDER_RIGHT_WEIGHT: 21, 5459 borderRightWeight: 21, 5460 VARIANT_PROPERTIES: 22, 5461 variantProperties: 22, 5462 STACK_COUNTER_SPACING: 23, 5463 stackCounterSpacing: 23, 5464 MIN_WIDTH: 24, 5465 minWidth: 24, 5466 MAX_WIDTH: 25, 5467 maxWidth: 25, 5468 MIN_HEIGHT: 26, 5469 minHeight: 26, 5470 MAX_HEIGHT: 27, 5471 maxHeight: 27, 5472 FONT_FAMILY: 28, 5473 fontFamily: 28, 5474 FONT_STYLE: 29, 5475 fontStyle: 29, 5476 FONT_VARIATIONS: 30, 5477 fontVariations: 30, 5478 OPACITY: 31, 5479 opacity: 31, 5480 FONT_SIZE: 32, 5481 fontSize: 32, 5482 LETTER_SPACING: 34, 5483 letterSpacing: 34, 5484 LINE_HEIGHT: 36, 5485 lineHeight: 36, 5486 OVERRIDDEN_SYMBOL_ID: 37, 5487 overriddenSymbolId: 37, 5488 CMS_SERIALIZED_RICH_TEXT_DATA: 38, 5489 cmsSerializedRichTextData: 38, 5490 HYPERLINK: 39, 5491 hyperlink: 39, 5492 SLOT_CONTENT_ID: 40, 5493 slotContentId: 40, 5494 GRID_ROW_GAP: 41, 5495 gridRowGap: 41, 5496 GRID_COLUMN_GAP: 42, 5497 gridColumnGap: 42, 5498 RELATIVE_X_POSITION: 43, 5499 xPosition: 43, 5500 RELATIVE_Y_POSITION: 44, 5501 relativeYPosition: 44, 5502 RELATIVE_ROTATION: 45, 5503 relativeRotation: 45, 5504 MOTION_TRANSLATION_X: 46, 5505 motionTranslationX: 46, 5506 MOTION_TRANSLATION_Y: 47, 5507 motionTranslationY: 47, 5508 MOTION_ROTATION: 48, 5509 motionRotation: 48, 5510 MOTION_SCALE_X: 49, 5511 motionScaleX: 49, 5512 MOTION_SCALE_Y: 50, 5513 motionScaleY: 50, 5514 MOTION_SHEAR: 51, 5515 motionShear: 51, 5516 SCROLL_OFFSET_X: 52, 5517 scrollOffsetX: 52, 5518 SCROLL_OFFSET_Y: 53, 5519 scrollOffsetY: 53, 5520 PATH_TRIM_START: 54, 5521 pathTrimStart: 54, 5522 PATH_TRIM_END: 55, 5523 pathTrimEnd: 55, 5524 DISSOLVE_PROGRESS: 56, 5525 dissolveProgress: 56 5526 }; 5527 var Keyframe = class { 5528 constructor(data) { 5529 this.timelinePosition = Math.round(data.timelinePosition); 5530 this.easing = data.easing; 5531 this.value = data.value; 5532 } 5533 }; 5534 var KeyframeTrack = class { 5535 constructor(data) { 5536 this.topLevelField = data.topLevelField; 5537 this.parameterField = data.parameterField; 5538 this.index = data.index; 5539 this.effectParametrizedField = data.effectParametrizedField; 5540 this.keyframeOperation = data.keyframeOperation; 5541 this.keyframes = data.keyframes; 5542 this.enabled = !!data.enabled; 5543 } 5544 }; 5545 var AnimationPreset = class { 5546 constructor(data) { 5547 this.nodeId = data.nodeId; 5548 this.keyframeTracks = data.keyframeTracks; 5549 } 5550 }; 5551 var PARAMETER_FIELD_ALIAS_MAP = { 5552 translateX: ParameterField.MOTION_TRANSLATION_X, 5553 translateY: ParameterField.MOTION_TRANSLATION_Y, 5554 rotate: ParameterField.MOTION_ROTATION, 5555 scaleX: ParameterField.MOTION_SCALE_X, 5556 scaleY: ParameterField.MOTION_SCALE_Y, 5557 shear: ParameterField.MOTION_SHEAR 5558 }; 5559 var KEYFRAMEABLE_FIELDS = /* @__PURE__ */ new Set([ 5560 "translateX", 5561 "translateY", 5562 "rotate", 5563 "scaleX", 5564 "scaleY", 5565 "shear", 5566 "cornerRadius", 5567 "strokeWeight", 5568 "rectangleTopLeftCornerRadius", 5569 "rectangleTopRightCornerRadius", 5570 "rectangleBottomLeftCornerRadius", 5571 "rectangleBottomRightCornerRadius", 5572 "stackSpacing", 5573 "stackPaddingLeft", 5574 "stackPaddingTop", 5575 "stackPaddingRight", 5576 "stackPaddingBottom", 5577 "width", 5578 "height", 5579 "borderTopWeight", 5580 "borderBottomWeight", 5581 "borderLeftWeight", 5582 "borderRightWeight", 5583 "stackCounterSpacing", 5584 "minWidth", 5585 "maxWidth", 5586 "minHeight", 5587 "maxHeight", 5588 "opacity", 5589 "gridRowGap", 5590 "gridColumnGap", 5591 "textData", 5592 "pathTrimStart", 5593 "pathTrimEnd" 5594 ]); 5595 var MODE_TO_OPERATION = { 5596 set: KeyframeOperation.SET, 5597 SET: KeyframeOperation.SET, 5598 offset: KeyframeOperation.OFFSET, 5599 OFFSET: KeyframeOperation.OFFSET, 5600 scale: KeyframeOperation.SCALE, 5601 SCALE: KeyframeOperation.SCALE 5602 }; 5603 function normalizeEasing(easing) { 5604 if (easing === void 0) return void 0; 5605 if (easing === "hold") return { interpolationType: InterpolationType.HOLD }; 5606 if (typeof easing === "string") { 5607 const easingType = EasingType[easing]; 5608 if (easingType === void 0) throw new Error('normalizeEasing: unknown easing "' + easing + '"'); 5609 return { easingType }; 5610 } 5611 return easing; 5612 } 5613 function compileKeyframe({ timelinePosition, value, easing }) { 5614 return new Keyframe({ 5615 timelinePosition: timelinePosition * 1e6, 5616 easing: normalizeEasing(easing), 5617 value 5618 }); 5619 } 5620 function tween({ mode, timelinePosition = 0, duration, from, to, easing, enabled = true }) { 5621 if (duration < 0) throw new Error("tween: duration must be non-negative"); 5622 return { 5623 mode, 5624 enabled, 5625 keyframes: [ 5626 { timelinePosition, value: from, easing }, 5627 { timelinePosition: timelinePosition + duration, value: to, easing } 5628 ] 5629 }; 5630 } 5631 function animate(node, definition) { 5632 const nodeId = typeof node === "string" ? node : node.id;
5633 const keyframeTracks = []; 5634 for (const [key, trackDef] of Object.entries(definition)) { 5635 if (!KEYFRAMEABLE_FIELDS.has(key)) { 5636 throw new Error('animate: unknown or non-keyframeable property "' + key + '"'); 5637 } 5638 const parameterField = PARAMETER_FIELD_ALIAS_MAP[key] ?? ParameterField[key]; 5639 const operation = MODE_TO_OPERATION[trackDef.mode]; 5640 if (operation === void 0) throw new Error('animate: unknown mode "' + trackDef.mode + '"'); 5641 const seen = /* @__PURE__ */ new Map(); 5642 for (const kf of trackDef.keyframes) seen.set(kf.timelinePosition, kf); 5643 const sorted = [...seen.values()].sort((a, b) => a.timelinePosition - b.timelinePosition); 5644 keyframeTracks.push(new KeyframeTrack({ 5645 parameterField, 5646 keyframeOperation: operation, 5647 keyframes: sorted.map(compileKeyframe), 5648 enabled: trackDef.enabled !== false 5649 })); 5650 } 5651 return new AnimationPreset({ nodeId, keyframeTracks }); 5652 } 5653 5654
5654// ../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/share/motion/src/presets/source/resize.ts 5655 function preset({ widthChange, heightChange, duration, easing, node }) { 5656 const definition = {}; 5657 if (widthChange !== 0) 5658 definition.width = tween({ 5659 mode: "offset", 5660 duration, 5661 from: 0, 5662 to: widthChange, 5663 easing 5664 }); 5665 if (heightChange !== 0) 5666 definition.height = tween({ 5667 mode: "offset", 5668 duration, 5669 from: 0, 5670 to: heightChange, 5671 easing 5672 }); 5673 return [animate(node, definition)]; 5674 } 5675 defineProperties(preset, { 5676 widthChange: { 5677 label: "Width Change", 5678 type: "number", 5679 defaultValue: 100, 5680 control: "input" 5681 }, 5682 heightChange: { 5683 label: "Height Change", 5684 type: "number", 5685 defaultValue: 0, 5686 control: "input" 5687 }, 5688 duration: { 5689 label: "Duration", 5690 type: "number", 5691 defaultValue: 0.5, 5692 control: "input", 5693 min: 0.01, 5694 unit: "s" 5695 }, 5696 easing: { 5697 label: "Easing", 5698 type: "easing", 5699 defaultValue: { 5700 easingType: EasingType.OUT_CUBIC 5701 } 5702 } 5703 }); 5704 return __toCommonJS(resize_exports); 5705})();`});var p0,m0,E0=Qt(()=>{p0=`// Source-of-truth for the ROTATE first-party animation preset. 5706// 5707// The build-time preset-bundle codegen (see \`../scripts/generate_preset_bundles.ts\`) 5708// reads this file's raw text, esbuilds it into an IIFE with \`figma:motion\` 5709// resolved, and emits both strings into \`../generated/rotate.generated.ts\`. The 5710// generated module is what runtime code consumes \u2014 never import this file 5711// directly from production code paths. 5712// 5713// This file is excluded from the share/motion \`ts_project\` compilation \u2014 it's 5714// only an input to the codegen tool, evaluated inside the QuickJS / iframe 5715// sandbox at runtime. 5716 5717import { animate, defineProperties, EasingType, tween } from 'figma:motion' 5718 5719import type { PresetArgs, PresetTrackDefinitions } from './preset_types' 5720 5721export default function preset({ timing, rotation, duration, fade, easing, node }: PresetArgs) { 5722 const rotRad = rotation * (Math.PI / 180) 5723 const rFrom = timing === 'in' ? rotRad : 0 5724 const rTo = timing === 'in' ? 0 : rotRad 5725 const definition: PresetTrackDefinitions = { 5726 rotate: tween({ 5727 mode: 'offset', 5728 duration, 5729 from: rFrom, 5730 to: rTo, 5731 easing, 5732 }), 5733 } 5734 5735 if (fade) { 5736 const opFrom = timing === 'in' ? 0 : 1 5737 const opTo = timing === 'in' ? 1 : 0 5738 definition.opacity = tween({ 5739 mode: 'scale', 5740 duration, 5741 from: opFrom, 5742 to: opTo, 5743 easing, 5744 }) 5745 } 5746 5747 return [animate(node, definition)] 5748} 5749 5750defineProperties(preset, { 5751 timing: { 5752 label: 'Timing', 5753 type: 'string', 5754 defaultValue: 'out', 5755 control: 'select', 5756 options: [ 5757 { value: 'in', label: 'Rotate In' }, 5758 { value: 'out', label: 'Rotate Out' }, 5759 ], 5760 }, 5761 rotation: { 5762 label: 'Rotation', 5763 type: 'number', 5764 defaultValue: 180, 5765 control: 'input', 5766 }, 5767 duration: { 5768 label: 'Duration', 5769 type: 'number', 5770 defaultValue: 0.5, 5771 control: 'input', 5772 min: 0.01, 5773 unit: 's', 5774 }, 5775 fade: { 5776 label: 'Fade', 5777 type: 'boolean', 5778 defaultValue: false, 5779 }, 5780 easing: { 5781 label: 'Easing', 5782 type: 'easing', 5783 defaultValue: { 5784 easingType: EasingType.OUT_CUBIC, 5785 }, 5786 }, 5787}) 5788`,m0=`var __presetBundle = (() => { 5789 var __defProp = Object.defineProperty; 5790 var __getOwnPropDesc = Object.getOwnPropertyDescriptor; 5791 var __getOwnPropNames = Object.getOwnPropertyNames; 5792 var __hasOwnProp = Object.prototype.hasOwnProperty; 5793 var __export = (target, all) => { 5794 for (var name in all) 5795 __defProp(target, name, { get: all[name], enumerable: true }); 5796 }; 5797 var __copyProps = (to, from, except, desc) => { 5798 if (from && typeof from === "object" || typeof from === "function") { 5799 for (let key of __getOwnPropNames(from)) 5800 if (!__hasOwnProp.call(to, key) && key !== except) 5801 __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); 5802 } 5803 return to; 5804 }; 5805 var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); 5806 5807
5807// ../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/share/motion/src/presets/source/rotate.ts 5808 var rotate_exports = {}; 5809 __export(rotate_exports, { 5810 default: () => preset 5811 }); 5812 5813 // figma-motion:figma:motion 5814 function defineProperties(component, spec) { 5815 Object.assign(component, { 5816 [/* @__PURE__ */ Symbol.for("figma.react.props")]: spec 5817 }); 5818 } 5819 var EasingType = { 5820 IN_CUBIC: 0, 5821 inCubic: 0, 5822 OUT_CUBIC: 1, 5823 outCubic: 1, 5824 INOUT_CUBIC: 2, 5825 inOutCubic: 2, 5826 LINEAR: 3, 5827 linear: 3, 5828 IN_BACK_CUBIC: 4, 5829 inBackCubic: 4, 5830 OUT_BACK_CUBIC: 5, 5831 outBackCubic: 5, 5832 INOUT_BACK_CUBIC: 6, 5833 inOutBackCubic: 6, 5834 CUSTOM_CUBIC: 7, 5835 customCubic: 7, 5836 SPRING: 8, 5837 spring: 8, 5838 GENTLE_SPRING: 9, 5839 gentleSpring: 9, 5840 CUSTOM_SPRING: 10, 5841 customSpring: 10, 5842 SPRING_PRESET_ONE: 11, 5843 springPresetOne: 11, 5844 SPRING_PRESET_TWO: 12, 5845 springPresetTwo: 12, 5846 SPRING_PRESET_THREE: 13, 5847 springPresetThree: 13, 5848 // For backwards compat 5849 bezier: 100, 5850 BEZIER: 100 5851 }; 5852 var InterpolationType = { 5853 HOLD: 0, 5854 hold: 0, 5855 BEZIER: 1, 5856 bezier: 1 5857 }; 5858 var KeyframeOperation = { 5859 SET: 0, 5860 set: 0, 5861 SCALE: 1, 5862 scale: 1, 5863 OFFSET: 2, 5864 offset: 2 5865 }; 5866 var ParameterField = { 5867 MISSING: 0, 5868 missing: 0, 5869 CORNER_RADIUS: 1, 5870 cornerRadius: 1, 5871 PARAGRAPH_SPACING: 2, 5872 paragraphSpacing: 2, 5873 PARAGRAPH_INDENT: 3, 5874 paragraphIndent: 3, 5875 STROKE_WEIGHT: 4, 5876 strokeWeight: 4, 5877 STACK_SPACING: 5, 5878 stackSpacing: 5, 5879 STACK_PADDING_LEFT: 6, 5880 stackPaddingLeft: 6, 5881 STACK_PADDING_TOP: 7, 5882 stackPaddingTop: 7, 5883 STACK_PADDING_RIGHT: 8, 5884 stackPaddingRight: 8, 5885 STACK_PADDING_BOTTOM: 9, 5886 stackPaddingBottom: 9, 5887 VISIBLE: 10, 5888 visible: 10, 5889 TEXT_DATA: 11, 5890 textData: 11, 5891 WIDTH: 12, 5892 width: 12, 5893 HEIGHT: 13, 5894 height: 13, 5895 RECTANGLE_TOP_LEFT_CORNER_RADIUS: 14, 5896 rectangleTopLeftCornerRadius: 14, 5897 RECTANGLE_TOP_RIGHT_CORNER_RADIUS: 15, 5898 rectangleTopRightCornerRadius: 15, 5899 RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS: 16, 5900 rectangleBottomLeftCornerRadius: 16, 5901 RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS: 17, 5902 rectangleBottomRightCornerRadius: 17, 5903 BORDER_TOP_WEIGHT: 18, 5904 borderTopWeight: 18, 5905 BORDER_BOTTOM_WEIGHT: 19, 5906 borderBottomWeight: 19, 5907 BORDER_LEFT_WEIGHT: 20, 5908 borderLeftWeight: 20, 5909 BORDER_RIGHT_WEIGHT: 21, 5910 borderRightWeight: 21, 5911 VARIANT_PROPERTIES: 22, 5912 variantProperties: 22, 5913 STACK_COUNTER_SPACING: 23, 5914 stackCounterSpacing: 23, 5915 MIN_WIDTH: 24, 5916 minWidth: 24, 5917 MAX_WIDTH: 25, 5918 maxWidth: 25, 5919 MIN_HEIGHT: 26, 5920 minHeight: 26, 5921 MAX_HEIGHT: 27, 5922 maxHeight: 27, 5923 FONT_FAMILY: 28, 5924 fontFamily: 28, 5925 FONT_STYLE: 29, 5926 fontStyle: 29, 5927 FONT_VARIATIONS: 30, 5928 fontVariations: 30, 5929 OPACITY: 31, 5930 opacity: 31, 5931 FONT_SIZE: 32, 5932 fontSize: 32, 5933 LETTER_SPACING: 34, 5934 letterSpacing: 34, 5935 LINE_HEIGHT: 36, 5936 lineHeight: 36, 5937 OVERRIDDEN_SYMBOL_ID: 37, 5938 overriddenSymbolId: 37, 5939 CMS_SERIALIZED_RICH_TEXT_DATA: 38, 5940 cmsSerializedRichTextData: 38, 5941 HYPERLINK: 39, 5942 hyperlink: 39, 5943 SLOT_CONTENT_ID: 40, 5944 slotContentId: 40, 5945 GRID_ROW_GAP: 41, 5946 gridRowGap: 41, 5947 GRID_COLUMN_GAP: 42, 5948 gridColumnGap: 42, 5949 RELATIVE_X_POSITION: 43, 5950 xPosition: 43, 5951 RELATIVE_Y_POSITION: 44, 5952 relativeYPosition: 44, 5953 RELATIVE_ROTATION: 45, 5954 relativeRotation: 45, 5955 MOTION_TRANSLATION_X: 46, 5956 motionTranslationX: 46, 5957 MOTION_TRANSLATION_Y: 47, 5958 motionTranslationY: 47, 5959 MOTION_ROTATION: 48, 5960 motionRotation: 48, 5961 MOTION_SCALE_X: 49, 5962 motionScaleX: 49, 5963 MOTION_SCALE_Y: 50, 5964 motionScaleY: 50, 5965 MOTION_SHEAR: 51, 5966 motionShear: 51, 5967 SCROLL_OFFSET_X: 52, 5968 scrollOffsetX: 52, 5969 SCROLL_OFFSET_Y: 53, 5970 scrollOffsetY: 53, 5971 PATH_TRIM_START: 54, 5972 pathTrimStart: 54, 5973 PATH_TRIM_END: 55, 5974 pathTrimEnd: 55, 5975 DISSOLVE_PROGRESS: 56, 5976 dissolveProgress: 56 5977 }; 5978 var Keyframe = class { 5979 constructor(data) { 5980 this.timelinePosition = Math.round(data.timelinePosition); 5981 this.easing = data.easing; 5982 this.value = data.value; 5983 } 5984 }; 5985 var KeyframeTrack = class { 5986 constructor(data) { 5987 this.topLevelField = data.topLevelField; 5988 this.parameterField = data.parameterField; 5989 this.index = data.index; 5990 this.effectParametrizedField = data.effectParametrizedField; 5991 this.keyframeOperation = data.keyframeOperation; 5992 this.keyframes = data.keyframes; 5993 this.enabled = !!data.enabled; 5994 } 5995 }; 5996 var AnimationPreset = class { 5997 constructor(data) { 5998 this.nodeId = data.nodeId; 5999 this.keyframeTracks = data.keyframeTracks; 6000 } 6001 }; 6002 var PARAMETER_FIELD_ALIAS_MAP = { 6003 translateX: ParameterField.MOTION_TRANSLATION_X, 6004 translateY: ParameterField.MOTION_TRANSLATION_Y, 6005 rotate: ParameterField.MOTION_ROTATION, 6006 scaleX: ParameterField.MOTION_SCALE_X, 6007 scaleY: ParameterField.MOTION_SCALE_Y, 6008 shear: ParameterField.MOTION_SHEAR 6009 }; 6010 var KEYFRAMEABLE_FIELDS = /* @__PURE__ */ new Set([ 6011 "translateX", 6012 "translateY", 6013 "rotate", 6014 "scaleX", 6015 "scaleY", 6016 "shear", 6017 "cornerRadius", 6018 "strokeWeight", 6019 "rectangleTopLeftCornerRadius", 6020 "rectangleTopRightCornerRadius", 6021 "rectangleBottomLeftCornerRadius", 6022 "rectangleBottomRightCornerRadius", 6023 "stackSpacing", 6024 "stackPaddingLeft", 6025 "stackPaddingTop", 6026 "stackPaddingRight", 6027 "stackPaddingBottom", 6028 "width", 6029 "height", 6030 "borderTopWeight", 6031 "borderBottomWeight", 6032 "borderLeftWeight", 6033 "borderRightWeight", 6034 "stackCounterSpacing", 6035 "minWidth", 6036 "maxWidth", 6037 "minHeight", 6038 "maxHeight", 6039 "opacity", 6040 "gridRowGap", 6041 "gridColumnGap", 6042 "textData", 6043 "pathTrimStart", 6044 "pathTrimEnd" 6045 ]); 6046 var MODE_TO_OPERATION = { 6047 set: KeyframeOperation.SET, 6048 SET: KeyframeOperation.SET, 6049 offset: KeyframeOperation.OFFSET, 6050 OFFSET: KeyframeOperation.OFFSET, 6051 scale: KeyframeOperation.SCALE, 6052 SCALE: KeyframeOperation.SCALE 6053 }; 6054 function normalizeEasing(easing) { 6055 if (easing === void 0) return void 0; 6056 if (easing === "hold") return { interpolationType: InterpolationType.HOLD }; 6057 if (typeof easing === "string") { 6058 const easingType = EasingType[easing]; 6059 if (easingType === void 0) throw new Error('normalizeEasing: unknown easing "' + easing + '"'); 6060 return { easingType }; 6061 } 6062 return easing; 6063 } 6064 function compileKeyframe({ timelinePosition, value, easing }) { 6065 return new Keyframe({ 6066 timelinePosition: timelinePosition * 1e6, 6067 easing: normalizeEasing(easing), 6068 value 6069 }); 6070 } 6071 function tween({ mode, timelinePosition = 0, duration, from, to, easing, enabled = true }) { 6072 if (duration < 0) throw new Error("tween: duration must be non-negative"); 6073 return { 6074 mode, 6075 enabled, 6076 keyframes: [ 6077 { timelinePosition, value: from, easing }, 6078 { timelinePosition: timelinePosition + duration, value: to, easing } 6079 ] 6080 }; 6081 } 6082 function animate(node, definition) { 6083 const nodeId = typeof node === "string" ? node : node.id;
6084 const keyframeTracks = []; 6085 for (const [key, trackDef] of Object.entries(definition)) { 6086 if (!KEYFRAMEABLE_FIELDS.has(key)) { 6087 throw new Error('animate: unknown or non-keyframeable property "' + key + '"'); 6088 } 6089 const parameterField = PARAMETER_FIELD_ALIAS_MAP[key] ?? ParameterField[key]; 6090 const operation = MODE_TO_OPERATION[trackDef.mode]; 6091 if (operation === void 0) throw new Error('animate: unknown mode "' + trackDef.mode + '"'); 6092 const seen = /* @__PURE__ */ new Map(); 6093 for (const kf of trackDef.keyframes) seen.set(kf.timelinePosition, kf); 6094 const sorted = [...seen.values()].sort((a, b) => a.timelinePosition - b.timelinePosition); 6095 keyframeTracks.push(new KeyframeTrack({ 6096 parameterField, 6097 keyframeOperation: operation, 6098 keyframes: sorted.map(compileKeyframe), 6099 enabled: trackDef.enabled !== false 6100 })); 6101 } 6102 return new AnimationPreset({ nodeId, keyframeTracks }); 6103 } 6104 6105
6105// ../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/share/motion/src/presets/source/rotate.ts 6106 function preset({ timing, rotation, duration, fade, easing, node }) { 6107 const rotRad = rotation * (Math.PI / 180); 6108 const rFrom = timing === "in" ? rotRad : 0; 6109 const rTo = timing === "in" ? 0 : rotRad; 6110 const definition = { 6111 rotate: tween({ 6112 mode: "offset", 6113 duration, 6114 from: rFrom, 6115 to: rTo, 6116 easing 6117 }) 6118 }; 6119 if (fade) { 6120 const opFrom = timing === "in" ? 0 : 1; 6121 const opTo = timing === "in" ? 1 : 0; 6122 definition.opacity = tween({ 6123 mode: "scale", 6124 duration, 6125 from: opFrom, 6126 to: opTo, 6127 easing 6128 }); 6129 } 6130 return [animate(node, definition)]; 6131 } 6132 defineProperties(preset, { 6133 timing: { 6134 label: "Timing", 6135 type: "string", 6136 defaultValue: "out", 6137 control: "select", 6138 options: [ 6139 { value: "in", label: "Rotate In" }, 6140 { value: "out", label: "Rotate Out" } 6141 ] 6142 }, 6143 rotation: { 6144 label: "Rotation", 6145 type: "number", 6146 defaultValue: 180, 6147 control: "input" 6148 }, 6149 duration: { 6150 label: "Duration", 6151 type: "number", 6152 defaultValue: 0.5, 6153 control: "input", 6154 min: 0.01, 6155 unit: "s" 6156 }, 6157 fade: { 6158 label: "Fade", 6159 type: "boolean", 6160 defaultValue: false 6161 }, 6162 easing: { 6163 label: "Easing", 6164 type: "easing", 6165 defaultValue: { 6166 easingType: EasingType.OUT_CUBIC 6167 } 6168 } 6169 }); 6170 return __toCommonJS(rotate_exports); 6171})();`});var _0,T0,h0=Qt(()=>{_0=`// Source-of-truth for the NEW first-party animation preset. 6172// 6173// The build-time preset-bundle codegen (see \`../scripts/generate_preset_bundles.ts\`) 6174// reads this file's raw text, esbuilds it into an IIFE with \`figma:motion\` 6175// resolved, and emits both strings into \`../generated/new.generated.ts\`. The 6176// generated module is what runtime code consumes \u2014 never import this file 6177// directly from production code paths. 6178// 6179// This file is excluded from the share/motion \`ts_project\` compilation \u2014 it's 6180// only an input to the codegen tool, evaluated inside the QuickJS / iframe 6181// sandbox at runtime. 6182 6183import { animate, defineProperties, EasingType, tween } from 'figma:motion' 6184 6185import type { PresetArgs, PresetTrackDefinitions } from './preset_types' 6186 6187export default function preset({ 6188 type, 6189 direction, 6190 amount, 6191 start, 6192 end, 6193 duration, 6194 easing, 6195 node, 6196}: PresetArgs) { 6197 // Determine rotation values based on type 6198 let rotationStart: number 6199 let rotationEnd: number 6200 6201 if (type === 'custom') { 6202 // In custom mode, respect explicit start/end as entered by the user. 6203 rotationStart = start 6204 rotationEnd = end 6205 } else { 6206 // Direction/sign mapping (degrees): 6207 // - Clockwise: rotateIn -amount \u2192 0, rotateOut 0 \u2192 +amount 6208 // - Counter-clockwise: rotateIn +amount \u2192 0, rotateOut 0 \u2192 -amount 6209 const sign = direction === 'clockwise' ? -1 : 1 6210 if (type === 'rotateIn') { 6211 rotationStart = sign * amount 6212 rotationEnd = 0 6213 } else { 6214 // rotateOut 6215 rotationStart = 0 6216 rotationEnd = -sign * amount 6217 } 6218 } 6219 6220 // Convert degrees to radians 6221 const from = rotationStart * (Math.PI / 180) 6222 const to = rotationEnd * (Math.PI / 180) 6223 6224 const definition: PresetTrackDefinitions = {} 6225 definition.rotate = tween({ 6226 mode: 'offset', 6227 timelinePosition: 0, 6228 duration, 6229 from, 6230 to, 6231 easing, 6232 }) 6233 6234 return [animate(node, definition)] 6235} 6236 6237defineProperties(preset, { 6238 type: { 6239 label: 'motion.preset_flyout.type', 6240 type: 'string', 6241 defaultValue: 'rotateIn', 6242 control: 'select', 6243 options: [ 6244 { value: 'rotateIn', label: 'motion.preset_flyout.rotation.type.rotate_in' }, 6245 { value: 'rotateOut', label: 'motion.preset_flyout.rotation.type.rotate_out' }, 6246 { value: 'custom', label: 'motion.preset_flyout.type.custom' }, 6247 ], 6248 }, 6249 direction: { 6250 label: 'motion.preset_flyout.direction', 6251 type: 'string', 6252 defaultValue: 'clockwise', 6253 control: 'select', 6254 options: [ 6255 { value: 'clockwise', label: 'motion.preset_flyout.rotation.direction.clockwise' }, 6256 { 6257 value: 'counterClockwise', 6258 label: 'motion.preset_flyout.rotation.direction.counter_clockwise', 6259 }, 6260 ], 6261 }, 6262 amount: { 6263 label: 'motion.preset_flyout.amount', 6264 type: 'number', 6265 defaultValue: 180, 6266 control: 'input', 6267 unit: '\xB0', 6268 },
6269 // TODO(showDividerAbove-cleanup): the \`showDividerAbove\` flags in this file 6270 // are redundant \u2014 section dividers are now applied client-side in the preset 6271 // flyout via \`forceShowDividerAboveTransform\` 6272 start: { 6273 label: 'motion.preset_flyout.start', 6274 type: 'number', 6275 defaultValue: 180, 6276 control: 'input', 6277 unit: '\xB0', 6278 showDividerAbove: true, 6279 icon: 'rotation', 6280 }, 6281 end: { 6282 label: 'motion.preset_flyout.end', 6283 type: 'number', 6284 defaultValue: 0, 6285 control: 'input', 6286 unit: '\xB0', 6287 icon: 'rotation', 6288 }, 6289 delay: { 6290 label: 'motion.preset_flyout.delay', 6291 type: 'number', 6292 defaultValue: 0, 6293 control: 'input', 6294 unit: 's', 6295 showDividerAbove: true, 6296 icon: 'delay', 6297 }, 6298 duration: { 6299 label: 'motion.preset_flyout.duration', 6300 type: 'number', 6301 defaultValue: 0.5, 6302 control: 'input', 6303 min: 0.01, 6304 unit: 's', 6305 icon: 'time', 6306 }, 6307 easing: { 6308 label: 'motion.preset_flyout.easing', 6309 type: 'easing', 6310 defaultValue: { 6311 easingType: EasingType.OUT_CUBIC, 6312 }, 6313 }, 6314}) 6315`,T0=`var __presetBundle = (() => { 6316 var __defProp = Object.defineProperty; 6317 var __getOwnPropDesc = Object.getOwnPropertyDescriptor; 6318 var __getOwnPropNames = Object.getOwnPropertyNames; 6319 var __hasOwnProp = Object.prototype.hasOwnProperty; 6320 var __export = (target, all) => { 6321 for (var name in all) 6322 __defProp(target, name, { get: all[name], enumerable: true }); 6323 }; 6324 var __copyProps = (to, from, except, desc) => { 6325 if (from && typeof from === "object" || typeof from === "function") { 6326 for (let key of __getOwnPropNames(from)) 6327 if (!__hasOwnProp.call(to, key) && key !== except) 6328 __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); 6329 } 6330 return to; 6331 }; 6332 var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); 6333 6334
6334// ../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/share/motion/src/presets/source/rotation.ts 6335 var rotation_exports = {}; 6336 __export(rotation_exports, { 6337 default: () => preset 6338 }); 6339 6340 // figma-motion:figma:motion 6341 function defineProperties(component, spec) { 6342 Object.assign(component, { 6343 [/* @__PURE__ */ Symbol.for("figma.react.props")]: spec 6344 }); 6345 } 6346 var EasingType = { 6347 IN_CUBIC: 0, 6348 inCubic: 0, 6349 OUT_CUBIC: 1, 6350 outCubic: 1, 6351 INOUT_CUBIC: 2, 6352 inOutCubic: 2, 6353 LINEAR: 3, 6354 linear: 3, 6355 IN_BACK_CUBIC: 4, 6356 inBackCubic: 4, 6357 OUT_BACK_CUBIC: 5, 6358 outBackCubic: 5, 6359 INOUT_BACK_CUBIC: 6, 6360 inOutBackCubic: 6, 6361 CUSTOM_CUBIC: 7, 6362 customCubic: 7, 6363 SPRING: 8, 6364 spring: 8, 6365 GENTLE_SPRING: 9, 6366 gentleSpring: 9, 6367 CUSTOM_SPRING: 10, 6368 customSpring: 10, 6369 SPRING_PRESET_ONE: 11, 6370 springPresetOne: 11, 6371 SPRING_PRESET_TWO: 12, 6372 springPresetTwo: 12, 6373 SPRING_PRESET_THREE: 13, 6374 springPresetThree: 13, 6375 // For backwards compat 6376 bezier: 100, 6377 BEZIER: 100 6378 }; 6379 var InterpolationType = { 6380 HOLD: 0, 6381 hold: 0, 6382 BEZIER: 1, 6383 bezier: 1 6384 }; 6385 var KeyframeOperation = { 6386 SET: 0, 6387 set: 0, 6388 SCALE: 1, 6389 scale: 1, 6390 OFFSET: 2, 6391 offset: 2 6392 }; 6393 var ParameterField = { 6394 MISSING: 0, 6395 missing: 0, 6396 CORNER_RADIUS: 1, 6397 cornerRadius: 1, 6398 PARAGRAPH_SPACING: 2, 6399 paragraphSpacing: 2, 6400 PARAGRAPH_INDENT: 3, 6401 paragraphIndent: 3, 6402 STROKE_WEIGHT: 4, 6403 strokeWeight: 4, 6404 STACK_SPACING: 5, 6405 stackSpacing: 5, 6406 STACK_PADDING_LEFT: 6, 6407 stackPaddingLeft: 6, 6408 STACK_PADDING_TOP: 7, 6409 stackPaddingTop: 7, 6410 STACK_PADDING_RIGHT: 8, 6411 stackPaddingRight: 8, 6412 STACK_PADDING_BOTTOM: 9, 6413 stackPaddingBottom: 9, 6414 VISIBLE: 10, 6415 visible: 10, 6416 TEXT_DATA: 11, 6417 textData: 11, 6418 WIDTH: 12, 6419 width: 12, 6420 HEIGHT: 13, 6421 height: 13, 6422 RECTANGLE_TOP_LEFT_CORNER_RADIUS: 14, 6423 rectangleTopLeftCornerRadius: 14, 6424 RECTANGLE_TOP_RIGHT_CORNER_RADIUS: 15, 6425 rectangleTopRightCornerRadius: 15, 6426 RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS: 16, 6427 rectangleBottomLeftCornerRadius: 16, 6428 RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS: 17, 6429 rectangleBottomRightCornerRadius: 17, 6430 BORDER_TOP_WEIGHT: 18, 6431 borderTopWeight: 18, 6432 BORDER_BOTTOM_WEIGHT: 19, 6433 borderBottomWeight: 19, 6434 BORDER_LEFT_WEIGHT: 20, 6435 borderLeftWeight: 20, 6436 BORDER_RIGHT_WEIGHT: 21, 6437 borderRightWeight: 21, 6438 VARIANT_PROPERTIES: 22, 6439 variantProperties: 22, 6440 STACK_COUNTER_SPACING: 23, 6441 stackCounterSpacing: 23, 6442 MIN_WIDTH: 24, 6443 minWidth: 24, 6444 MAX_WIDTH: 25, 6445 maxWidth: 25, 6446 MIN_HEIGHT: 26, 6447 minHeight: 26, 6448 MAX_HEIGHT: 27, 6449 maxHeight: 27, 6450 FONT_FAMILY: 28, 6451 fontFamily: 28, 6452 FONT_STYLE: 29, 6453 fontStyle: 29, 6454 FONT_VARIATIONS: 30, 6455 fontVariations: 30, 6456 OPACITY: 31, 6457 opacity: 31, 6458 FONT_SIZE: 32, 6459 fontSize: 32, 6460 LETTER_SPACING: 34, 6461 letterSpacing: 34, 6462 LINE_HEIGHT: 36, 6463 lineHeight: 36, 6464 OVERRIDDEN_SYMBOL_ID: 37, 6465 overriddenSymbolId: 37, 6466 CMS_SERIALIZED_RICH_TEXT_DATA: 38, 6467 cmsSerializedRichTextData: 38, 6468 HYPERLINK: 39, 6469 hyperlink: 39, 6470 SLOT_CONTENT_ID: 40, 6471 slotContentId: 40, 6472 GRID_ROW_GAP: 41, 6473 gridRowGap: 41, 6474 GRID_COLUMN_GAP: 42, 6475 gridColumnGap: 42, 6476 RELATIVE_X_POSITION: 43, 6477 xPosition: 43, 6478 RELATIVE_Y_POSITION: 44, 6479 relativeYPosition: 44, 6480 RELATIVE_ROTATION: 45, 6481 relativeRotation: 45, 6482 MOTION_TRANSLATION_X: 46, 6483 motionTranslationX: 46, 6484 MOTION_TRANSLATION_Y: 47, 6485 motionTranslationY: 47, 6486 MOTION_ROTATION: 48, 6487 motionRotation: 48, 6488 MOTION_SCALE_X: 49, 6489 motionScaleX: 49, 6490 MOTION_SCALE_Y: 50, 6491 motionScaleY: 50, 6492 MOTION_SHEAR: 51, 6493 motionShear: 51, 6494 SCROLL_OFFSET_X: 52, 6495 scrollOffsetX: 52, 6496 SCROLL_OFFSET_Y: 53, 6497 scrollOffsetY: 53, 6498 PATH_TRIM_START: 54, 6499 pathTrimStart: 54, 6500 PATH_TRIM_END: 55, 6501 pathTrimEnd: 55, 6502 DISSOLVE_PROGRESS: 56, 6503 dissolveProgress: 56 6504 }; 6505 var Keyframe = class { 6506 constructor(data) { 6507 this.timelinePosition = Math.round(data.timelinePosition); 6508 this.easing = data.easing; 6509 this.value = data.value; 6510 } 6511 }; 6512 var KeyframeTrack = class { 6513 constructor(data) { 6514 this.topLevelField = data.topLevelField; 6515 this.parameterField = data.parameterField; 6516 this.index = data.index; 6517 this.effectParametrizedField = data.effectParametrizedField; 6518 this.keyframeOperation = data.keyframeOperation; 6519 this.keyframes = data.keyframes; 6520 this.enabled = !!data.enabled; 6521 } 6522 }; 6523 var AnimationPreset = class { 6524 constructor(data) { 6525 this.nodeId = data.nodeId; 6526 this.keyframeTracks = data.keyframeTracks; 6527 } 6528 }; 6529 var PARAMETER_FIELD_ALIAS_MAP = { 6530 translateX: ParameterField.MOTION_TRANSLATION_X, 6531 translateY: ParameterField.MOTION_TRANSLATION_Y, 6532 rotate: ParameterField.MOTION_ROTATION, 6533 scaleX: ParameterField.MOTION_SCALE_X, 6534 scaleY: ParameterField.MOTION_SCALE_Y, 6535 shear: ParameterField.MOTION_SHEAR 6536 }; 6537 var KEYFRAMEABLE_FIELDS = /* @__PURE__ */ new Set([ 6538 "translateX", 6539 "translateY", 6540 "rotate", 6541 "scaleX", 6542 "scaleY", 6543 "shear", 6544 "cornerRadius", 6545 "strokeWeight", 6546 "rectangleTopLeftCornerRadius", 6547 "rectangleTopRightCornerRadius", 6548 "rectangleBottomLeftCornerRadius", 6549 "rectangleBottomRightCornerRadius", 6550 "stackSpacing", 6551 "stackPaddingLeft", 6552 "stackPaddingTop", 6553 "stackPaddingRight", 6554 "stackPaddingBottom", 6555 "width", 6556 "height", 6557 "borderTopWeight", 6558 "borderBottomWeight", 6559 "borderLeftWeight", 6560 "borderRightWeight", 6561 "stackCounterSpacing", 6562 "minWidth", 6563 "maxWidth", 6564 "minHeight", 6565 "maxHeight", 6566 "opacity", 6567 "gridRowGap", 6568 "gridColumnGap", 6569 "textData", 6570 "pathTrimStart", 6571 "pathTrimEnd" 6572 ]); 6573 var MODE_TO_OPERATION = { 6574 set: KeyframeOperation.SET, 6575 SET: KeyframeOperation.SET, 6576 offset: KeyframeOperation.OFFSET, 6577 OFFSET: KeyframeOperation.OFFSET, 6578 scale: KeyframeOperation.SCALE, 6579 SCALE: KeyframeOperation.SCALE 6580 }; 6581 function normalizeEasing(easing) { 6582 if (easing === void 0) return void 0; 6583 if (easing === "hold") return { interpolationType: InterpolationType.HOLD }; 6584 if (typeof easing === "string") { 6585 const easingType = EasingType[easing]; 6586 if (easingType === void 0) throw new Error('normalizeEasing: unknown easing "' + easing + '"'); 6587 return { easingType }; 6588 } 6589 return easing; 6590 } 6591 function compileKeyframe({ timelinePosition, value, easing }) { 6592 return new Keyframe({ 6593 timelinePosition: timelinePosition * 1e6, 6594 easing: normalizeEasing(easing), 6595 value 6596 }); 6597 } 6598 function tween({ mode, timelinePosition = 0, duration, from, to, easing, enabled = true }) { 6599 if (duration < 0) throw new Error("tween: duration must be non-negative"); 6600 return { 6601 mode, 6602 enabled, 6603 keyframes: [ 6604 { timelinePosition, value: from, easing }, 6605 { timelinePosition: timelinePosition + duration, value: to, easing } 6606 ] 6607 }; 6608 } 6609 function animate(node, definition) { 6610 const nodeId = typeof node === "string" ? node : node.id;
6611 const keyframeTracks = []; 6612 for (const [key, trackDef] of Object.entries(definition)) { 6613 if (!KEYFRAMEABLE_FIELDS.has(key)) { 6614 throw new Error('animate: unknown or non-keyframeable property "' + key + '"'); 6615 } 6616 const parameterField = PARAMETER_FIELD_ALIAS_MAP[key] ?? ParameterField[key]; 6617 const operation = MODE_TO_OPERATION[trackDef.mode]; 6618 if (operation === void 0) throw new Error('animate: unknown mode "' + trackDef.mode + '"'); 6619 const seen = /* @__PURE__ */ new Map(); 6620 for (const kf of trackDef.keyframes) seen.set(kf.timelinePosition, kf); 6621 const sorted = [...seen.values()].sort((a, b) => a.timelinePosition - b.timelinePosition); 6622 keyframeTracks.push(new KeyframeTrack({ 6623 parameterField, 6624 keyframeOperation: operation, 6625 keyframes: sorted.map(compileKeyframe), 6626 enabled: trackDef.enabled !== false 6627 })); 6628 } 6629 return new AnimationPreset({ nodeId, keyframeTracks }); 6630 } 6631 6632
6632// ../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/share/motion/src/presets/source/rotation.ts 6633 function preset({ 6634 type, 6635 direction, 6636 amount, 6637 start, 6638 end, 6639 duration, 6640 easing, 6641 node 6642 }) { 6643 let rotationStart; 6644 let rotationEnd; 6645 if (type === "custom") { 6646 rotationStart = start; 6647 rotationEnd = end; 6648 } else { 6649 const sign = direction === "clockwise" ? -1 : 1; 6650 if (type === "rotateIn") { 6651 rotationStart = sign * amount; 6652 rotationEnd = 0; 6653 } else { 6654 rotationStart = 0; 6655 rotationEnd = -sign * amount; 6656 } 6657 } 6658 const from = rotationStart * (Math.PI / 180); 6659 const to = rotationEnd * (Math.PI / 180); 6660 const definition = {}; 6661 definition.rotate = tween({ 6662 mode: "offset", 6663 timelinePosition: 0, 6664 duration, 6665 from, 6666 to, 6667 easing 6668 }); 6669 return [animate(node, definition)]; 6670 } 6671 defineProperties(preset, { 6672 type: { 6673 label: "motion.preset_flyout.type", 6674 type: "string", 6675 defaultValue: "rotateIn", 6676 control: "select", 6677 options: [ 6678 { value: "rotateIn", label: "motion.preset_flyout.rotation.type.rotate_in" }, 6679 { value: "rotateOut", label: "motion.preset_flyout.rotation.type.rotate_out" }, 6680 { value: "custom", label: "motion.preset_flyout.type.custom" } 6681 ] 6682 }, 6683 direction: { 6684 label: "motion.preset_flyout.direction", 6685 type: "string", 6686 defaultValue: "clockwise", 6687 control: "select", 6688 options: [ 6689 { value: "clockwise", label: "motion.preset_flyout.rotation.direction.clockwise" }, 6690 { 6691 value: "counterClockwise", 6692 label: "motion.preset_flyout.rotation.direction.counter_clockwise" 6693 } 6694 ] 6695 }, 6696 amount: { 6697 label: "motion.preset_flyout.amount", 6698 type: "number", 6699 defaultValue: 180, 6700 control: "input", 6701 unit: "\\xB0" 6702 }, 6703 // TODO(showDividerAbove-cleanup): the \`showDividerAbove\` flags in this file 6704 // are redundant \u2014 section dividers are now applied client-side in the preset 6705 // flyout via \`forceShowDividerAboveTransform\` 6706 start: { 6707 label: "motion.preset_flyout.start", 6708 type: "number", 6709 defaultValue: 180, 6710 control: "input", 6711 unit: "\\xB0", 6712 showDividerAbove: true, 6713 icon: "rotation" 6714 }, 6715 end: { 6716 label: "motion.preset_flyout.end", 6717 type: "number", 6718 defaultValue: 0, 6719 control: "input", 6720 unit: "\\xB0", 6721 icon: "rotation" 6722 }, 6723 delay: { 6724 label: "motion.preset_flyout.delay", 6725 type: "number", 6726 defaultValue: 0, 6727 control: "input", 6728 unit: "s", 6729 showDividerAbove: true, 6730 icon: "delay" 6731 }, 6732 duration: { 6733 label: "motion.preset_flyout.duration", 6734 type: "number", 6735 defaultValue: 0.5, 6736 control: "input", 6737 min: 0.01, 6738 unit: "s", 6739 icon: "time" 6740 }, 6741 easing: { 6742 label: "motion.preset_flyout.easing", 6743 type: "easing", 6744 defaultValue: { 6745 easingType: EasingType.OUT_CUBIC 6746 } 6747 } 6748 }); 6749 return __toCommonJS(rotation_exports); 6750})();`});var O0,g0,I0=Qt(()=>{O0=`// Source-of-truth for the SCALE first-party animation preset. 6751// 6752// The build-time preset-bundle codegen (see \`../scripts/generate_preset_bundles.ts\`) 6753// reads this file's raw text, esbuilds it into an IIFE with \`figma:motion\` 6754// resolved, and emits both strings into \`../generated/scale.generated.ts\`. The 6755// generated module is what runtime code consumes \u2014 never import this file 6756// directly from production code paths. 6757// 6758// This file is excluded from the share/motion \`ts_project\` compilation \u2014 it's 6759// only an input to the codegen tool, evaluated inside the QuickJS / iframe 6760// sandbox at runtime. 6761 6762import { animate, defineProperties, EasingType, tween } from 'figma:motion' 6763 6764import type { PresetArgs, PresetTrackDefinitions } from './preset_types' 6765 6766export default function preset({ 6767 type, 6768 axis, 6769 amount, 6770 wStartWithDivider, 6771 wEndWithoutDivider, 6772 wEndWithDivider, 6773 hStartWithoutDivider, 6774 hStartWithDivider, 6775 hEndWithoutDivider, 6776 duration, 6777 easing, 6778 node, 6779}: PresetArgs) { 6780 const selectedType = type || 'scaleIn' 6781 const selectedAxis = axis || 'w' 6782 const safeAmount = (amount ?? 120) / 100 6783 6784 // Scale in should scale INTO the base size by growing/shrinking from amount -> base size 6785 // Scale out should scale OUT OF the base size by growing/shrinking from base size -> amount 6786 6787 function getWFromTo(): [number, number] { 6788 if (selectedType === 'custom') { 6789 if (selectedAxis === 'h') return [1, 1] 6790 if (selectedAxis === 'whCombined') { 6791 return [wStartWithDivider / 100, wEndWithDivider / 100] 6792 } 6793 return [wStartWithDivider / 100, wEndWithoutDivider / 100] 6794 } 6795 if (selectedType === 'scaleOut') return [1, safeAmount] 6796 return [safeAmount, 1] 6797 } 6798 function getHFromTo(): [number, number] { 6799 if (selectedType === 'custom') { 6800 if (selectedAxis === 'w') return [1, 1] 6801 if (selectedAxis === 'whCombined') { 6802 return [hStartWithoutDivider / 100, hEndWithoutDivider / 100] 6803 } 6804 return [hStartWithDivider / 100, hEndWithoutDivider / 100] 6805 } 6806 if (selectedType === 'scaleOut') return [1, safeAmount] 6807 return [safeAmount, 1] 6808 } 6809 6810 const [xFrom, xTo] = getWFromTo() 6811 const [yFrom, yTo] = getHFromTo() 6812 6813 // Both axes share the timing. The shared \`delay\` is synced to the preset's 6814 // \`timelineOffset\`, so it isn't baked into keyframe \`timelinePosition\`. 6815 const definition: PresetTrackDefinitions = {} 6816 definition.scaleX = tween({
6817 mode: 'scale', 6818 duration, 6819 from: xFrom, 6820 to: xTo, 6821 easing, 6822 }) 6823 definition.scaleY = tween({ 6824 mode: 'scale', 6825 duration, 6826 from: yFrom, 6827 to: yTo, 6828 easing, 6829 }) 6830 6831 return [animate(node, definition)] 6832} 6833 6834// KEEP_IN_SYNC(share/motion/src/presets/scale_meta.ts) \u2014 the 6835// property bounds (min/max/unit) must match \`PROP_DEFS[*].inputConfig\` so the 6836// panel-side TS metadata and the bundled IIFE agree on every prop's contract. 6837// 6838// Prop ORDER below drives the panel row order. 6839defineProperties(preset, { 6840 type: { 6841 label: 'motion.preset_flyout.type', 6842 type: 'string', 6843 defaultValue: 'scaleIn', 6844 control: 'select', 6845 options: [ 6846 { value: 'scaleIn', label: 'motion.preset_flyout.scale.type.scale_in' }, 6847 { value: 'scaleOut', label: 'motion.preset_flyout.scale.type.scale_out' }, 6848 { value: 'custom', label: 'motion.preset_flyout.type.custom' }, 6849 ], 6850 }, 6851 axis: { 6852 label: 'motion.preset_flyout.axis', 6853 type: 'string', 6854 defaultValue: 'whCombined', 6855 control: 'select', 6856 options: [ 6857 { value: 'w', label: 'motion.preset_flyout.w' }, 6858 { value: 'h', label: 'motion.preset_flyout.h' }, 6859 { value: 'whCombined', label: 'motion.preset_flyout.both' }, 6860 ], 6861 }, 6862 amount: { 6863 label: 'motion.preset_flyout.amount', 6864 type: 'number', 6865 defaultValue: 120, 6866 control: 'input', 6867 min: 0, 6868 unit: '%', 6869 }, 6870 // TODO(showDividerAbove-cleanup): the \`showDividerAbove\` flags in this file 6871 // are redundant \u2014 section dividers are now applied client-side in the preset 6872 // flyout via \`forceShowDividerAboveTransform\` 6873 wStartWithDivider: { 6874 label: 'motion.preset_flyout.start', 6875 type: 'number', 6876 defaultValue: 120, 6877 control: 'input', 6878 min: 0, 6879 unit: '%', 6880 showDividerAbove: true, 6881 icon: 'w', 6882 }, 6883 wEndWithoutDivider: { 6884 label: 'motion.preset_flyout.end', 6885 type: 'number', 6886 defaultValue: 100, 6887 control: 'input', 6888 min: 0, 6889 unit: '%', 6890 icon: 'w', 6891 }, 6892 // whCombined-only variants: hStartWithoutDivider groups under the Starts 6893 // divider (set by wStartWithDivider above), wEndWithDivider starts the Ends 6894 // group. Hidden for every other layout. 6895 hStartWithoutDivider: { 6896 label: 'motion.preset_flyout.start', 6897 type: 'number', 6898 defaultValue: 120, 6899 control: 'input', 6900 min: 0, 6901 unit: '%', 6902 icon: 'h', 6903 }, 6904 wEndWithDivider: { 6905 label: 'motion.preset_flyout.end', 6906 type: 'number', 6907 defaultValue: 100, 6908 control: 'input', 6909 min: 0, 6910 unit: '%', 6911 showDividerAbove: true, 6912 icon: 'w', 6913 }, 6914 hStartWithDivider: { 6915 label: 'motion.preset_flyout.start', 6916 type: 'number', 6917 defaultValue: 120, 6918 control: 'input', 6919 min: 0, 6920 unit: '%', 6921 showDividerAbove: true, 6922 icon: 'h', 6923 }, 6924 hEndWithoutDivider: { 6925 label: 'motion.preset_flyout.end', 6926 type: 'number', 6927 defaultValue: 100, 6928 control: 'input', 6929 min: 0, 6930 unit: '%', 6931 icon: 'h', 6932 }, 6933 // Note: 'delay' is kept in sync with a preset's \`timelineOffset\`. 6934 delay: { 6935 label: 'motion.preset_flyout.delay', 6936 type: 'number', 6937 defaultValue: 0, 6938 control: 'input', 6939 unit: 's', 6940 showDividerAbove: true, 6941 icon: 'delay', 6942 }, 6943 duration: { 6944 label: 'motion.preset_flyout.duration', 6945 type: 'number', 6946 defaultValue: 0.5, 6947 control: 'input', 6948 min: 0.01, 6949 unit: 's', 6950 icon: 'time', 6951 }, 6952 easing: { 6953 label: 'motion.preset_flyout.easing', 6954 type: 'easing', 6955 defaultValue: { easingType: EasingType.OUT_CUBIC }, 6956 }, 6957}) 6958`,g0=`var __presetBundle = (() => { 6959 var __defProp = Object.defineProperty; 6960 var __getOwnPropDesc = Object.getOwnPropertyDescriptor; 6961 var __getOwnPropNames = Object.getOwnPropertyNames; 6962 var __hasOwnProp = Object.prototype.hasOwnProperty; 6963 var __export = (target, all) => { 6964 for (var name in all) 6965 __defProp(target, name, { get: all[name], enumerable: true }); 6966 }; 6967 var __copyProps = (to, from, except, desc) => { 6968 if (from && typeof from === "object" || typeof from === "function") { 6969 for (let key of __getOwnPropNames(from)) 6970 if (!__hasOwnProp.call(to, key) && key !== except) 6971 __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); 6972 } 6973 return to; 6974 }; 6975 var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); 6976 6977
6977// ../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/share/motion/src/presets/source/scale.ts 6978 var scale_exports = {}; 6979 __export(scale_exports, { 6980 default: () => preset 6981 }); 6982 6983 // figma-motion:figma:motion 6984 function defineProperties(component, spec) { 6985 Object.assign(component, { 6986 [/* @__PURE__ */ Symbol.for("figma.react.props")]: spec 6987 }); 6988 } 6989 var EasingType = { 6990 IN_CUBIC: 0, 6991 inCubic: 0, 6992 OUT_CUBIC: 1, 6993 outCubic: 1, 6994 INOUT_CUBIC: 2, 6995 inOutCubic: 2, 6996 LINEAR: 3, 6997 linear: 3, 6998 IN_BACK_CUBIC: 4, 6999 inBackCubic: 4, 7000 OUT_BACK_CUBIC: 5, 7001 outBackCubic: 5, 7002 INOUT_BACK_CUBIC: 6, 7003 inOutBackCubic: 6, 7004 CUSTOM_CUBIC: 7, 7005 customCubic: 7, 7006 SPRING: 8, 7007 spring: 8, 7008 GENTLE_SPRING: 9, 7009 gentleSpring: 9, 7010 CUSTOM_SPRING: 10, 7011 customSpring: 10, 7012 SPRING_PRESET_ONE: 11, 7013 springPresetOne: 11, 7014 SPRING_PRESET_TWO: 12, 7015 springPresetTwo: 12, 7016 SPRING_PRESET_THREE: 13, 7017 springPresetThree: 13, 7018 // For backwards compat 7019 bezier: 100, 7020 BEZIER: 100 7021 }; 7022 var InterpolationType = { 7023 HOLD: 0, 7024 hold: 0, 7025 BEZIER: 1, 7026 bezier: 1 7027 }; 7028 var KeyframeOperation = { 7029 SET: 0, 7030 set: 0, 7031 SCALE: 1, 7032 scale: 1, 7033 OFFSET: 2, 7034 offset: 2 7035 }; 7036 var ParameterField = { 7037 MISSING: 0, 7038 missing: 0, 7039 CORNER_RADIUS: 1, 7040 cornerRadius: 1, 7041 PARAGRAPH_SPACING: 2, 7042 paragraphSpacing: 2, 7043 PARAGRAPH_INDENT: 3, 7044 paragraphIndent: 3, 7045 STROKE_WEIGHT: 4, 7046 strokeWeight: 4, 7047 STACK_SPACING: 5, 7048 stackSpacing: 5, 7049 STACK_PADDING_LEFT: 6, 7050 stackPaddingLeft: 6, 7051 STACK_PADDING_TOP: 7, 7052 stackPaddingTop: 7, 7053 STACK_PADDING_RIGHT: 8, 7054 stackPaddingRight: 8, 7055 STACK_PADDING_BOTTOM: 9, 7056 stackPaddingBottom: 9, 7057 VISIBLE: 10, 7058 visible: 10, 7059 TEXT_DATA: 11, 7060 textData: 11, 7061 WIDTH: 12, 7062 width: 12, 7063 HEIGHT: 13, 7064 height: 13, 7065 RECTANGLE_TOP_LEFT_CORNER_RADIUS: 14, 7066 rectangleTopLeftCornerRadius: 14, 7067 RECTANGLE_TOP_RIGHT_CORNER_RADIUS: 15, 7068 rectangleTopRightCornerRadius: 15, 7069 RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS: 16, 7070 rectangleBottomLeftCornerRadius: 16, 7071 RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS: 17, 7072 rectangleBottomRightCornerRadius: 17, 7073 BORDER_TOP_WEIGHT: 18, 7074 borderTopWeight: 18, 7075 BORDER_BOTTOM_WEIGHT: 19, 7076 borderBottomWeight: 19, 7077 BORDER_LEFT_WEIGHT: 20, 7078 borderLeftWeight: 20, 7079 BORDER_RIGHT_WEIGHT: 21, 7080 borderRightWeight: 21, 7081 VARIANT_PROPERTIES: 22, 7082 variantProperties: 22, 7083 STACK_COUNTER_SPACING: 23, 7084 stackCounterSpacing: 23, 7085 MIN_WIDTH: 24, 7086 minWidth: 24, 7087 MAX_WIDTH: 25, 7088 maxWidth: 25, 7089 MIN_HEIGHT: 26, 7090 minHeight: 26, 7091 MAX_HEIGHT: 27, 7092 maxHeight: 27, 7093 FONT_FAMILY: 28, 7094 fontFamily: 28, 7095 FONT_STYLE: 29, 7096 fontStyle: 29, 7097 FONT_VARIATIONS: 30, 7098 fontVariations: 30, 7099 OPACITY: 31, 7100 opacity: 31, 7101 FONT_SIZE: 32, 7102 fontSize: 32, 7103 LETTER_SPACING: 34, 7104 letterSpacing: 34, 7105 LINE_HEIGHT: 36, 7106 lineHeight: 36, 7107 OVERRIDDEN_SYMBOL_ID: 37, 7108 overriddenSymbolId: 37, 7109 CMS_SERIALIZED_RICH_TEXT_DATA: 38, 7110 cmsSerializedRichTextData: 38, 7111 HYPERLINK: 39, 7112 hyperlink: 39, 7113 SLOT_CONTENT_ID: 40, 7114 slotContentId: 40, 7115 GRID_ROW_GAP: 41, 7116 gridRowGap: 41, 7117 GRID_COLUMN_GAP: 42, 7118 gridColumnGap: 42, 7119 RELATIVE_X_POSITION: 43, 7120 xPosition: 43, 7121 RELATIVE_Y_POSITION: 44, 7122 relativeYPosition: 44, 7123 RELATIVE_ROTATION: 45, 7124 relativeRotation: 45, 7125 MOTION_TRANSLATION_X: 46, 7126 motionTranslationX: 46, 7127 MOTION_TRANSLATION_Y: 47, 7128 motionTranslationY: 47, 7129 MOTION_ROTATION: 48, 7130 motionRotation: 48, 7131 MOTION_SCALE_X: 49, 7132 motionScaleX: 49, 7133 MOTION_SCALE_Y: 50, 7134 motionScaleY: 50, 7135 MOTION_SHEAR: 51, 7136 motionShear: 51, 7137 SCROLL_OFFSET_X: 52, 7138 scrollOffsetX: 52, 7139 SCROLL_OFFSET_Y: 53, 7140 scrollOffsetY: 53, 7141 PATH_TRIM_START: 54, 7142 pathTrimStart: 54, 7143 PATH_TRIM_END: 55, 7144 pathTrimEnd: 55, 7145 DISSOLVE_PROGRESS: 56, 7146 dissolveProgress: 56 7147 }; 7148 var Keyframe = class { 7149 constructor(data) { 7150 this.timelinePosition = Math.round(data.timelinePosition); 7151 this.easing = data.easing; 7152 this.value = data.value; 7153 } 7154 }; 7155 var KeyframeTrack = class { 7156 constructor(data) { 7157 this.topLevelField = data.topLevelField; 7158 this.parameterField = data.parameterField; 7159 this.index = data.index; 7160 this.effectParametrizedField = data.effectParametrizedField; 7161 this.keyframeOperation = data.keyframeOperation; 7162 this.keyframes = data.keyframes; 7163 this.enabled = !!data.enabled; 7164 } 7165 }; 7166 var AnimationPreset = class { 7167 constructor(data) { 7168 this.nodeId = data.nodeId; 7169 this.keyframeTracks = data.keyframeTracks; 7170 } 7171 }; 7172 var PARAMETER_FIELD_ALIAS_MAP = { 7173 translateX: ParameterField.MOTION_TRANSLATION_X, 7174 translateY: ParameterField.MOTION_TRANSLATION_Y, 7175 rotate: ParameterField.MOTION_ROTATION, 7176 scaleX: ParameterField.MOTION_SCALE_X, 7177 scaleY: ParameterField.MOTION_SCALE_Y, 7178 shear: ParameterField.MOTION_SHEAR 7179 }; 7180 var KEYFRAMEABLE_FIELDS = /* @__PURE__ */ new Set([ 7181 "translateX", 7182 "translateY", 7183 "rotate", 7184 "scaleX", 7185 "scaleY", 7186 "shear", 7187 "cornerRadius", 7188 "strokeWeight", 7189 "rectangleTopLeftCornerRadius", 7190 "rectangleTopRightCornerRadius", 7191 "rectangleBottomLeftCornerRadius", 7192 "rectangleBottomRightCornerRadius", 7193 "stackSpacing", 7194 "stackPaddingLeft", 7195 "stackPaddingTop", 7196 "stackPaddingRight", 7197 "stackPaddingBottom", 7198 "width", 7199 "height", 7200 "borderTopWeight", 7201 "borderBottomWeight", 7202 "borderLeftWeight", 7203 "borderRightWeight", 7204 "stackCounterSpacing", 7205 "minWidth", 7206 "maxWidth", 7207 "minHeight", 7208 "maxHeight", 7209 "opacity", 7210 "gridRowGap", 7211 "gridColumnGap", 7212 "textData", 7213 "pathTrimStart", 7214 "pathTrimEnd" 7215 ]); 7216 var MODE_TO_OPERATION = { 7217 set: KeyframeOperation.SET, 7218 SET: KeyframeOperation.SET, 7219 offset: KeyframeOperation.OFFSET, 7220 OFFSET: KeyframeOperation.OFFSET, 7221 scale: KeyframeOperation.SCALE, 7222 SCALE: KeyframeOperation.SCALE 7223 }; 7224 function normalizeEasing(easing) { 7225 if (easing === void 0) return void 0; 7226 if (easing === "hold") return { interpolationType: InterpolationType.HOLD }; 7227 if (typeof easing === "string") { 7228 const easingType = EasingType[easing]; 7229 if (easingType === void 0) throw new Error('normalizeEasing: unknown easing "' + easing + '"'); 7230 return { easingType }; 7231 } 7232 return easing; 7233 } 7234 function compileKeyframe({ timelinePosition, value, easing }) { 7235 return new Keyframe({ 7236 timelinePosition: timelinePosition * 1e6, 7237 easing: normalizeEasing(easing), 7238 value 7239 }); 7240 } 7241 function tween({ mode, timelinePosition = 0, duration, from, to, easing, enabled = true }) { 7242 if (duration < 0) throw new Error("tween: duration must be non-negative"); 7243 return { 7244 mode, 7245 enabled, 7246 keyframes: [ 7247 { timelinePosition, value: from, easing }, 7248 { timelinePosition: timelinePosition + duration, value: to, easing } 7249 ] 7250 }; 7251 } 7252 function animate(node, definition) { 7253 const nodeId = typeof node === "string" ? node : node.id;
7254 const keyframeTracks = []; 7255 for (const [key, trackDef] of Object.entries(definition)) { 7256 if (!KEYFRAMEABLE_FIELDS.has(key)) { 7257 throw new Error('animate: unknown or non-keyframeable property "' + key + '"'); 7258 } 7259 const parameterField = PARAMETER_FIELD_ALIAS_MAP[key] ?? ParameterField[key]; 7260 const operation = MODE_TO_OPERATION[trackDef.mode]; 7261 if (operation === void 0) throw new Error('animate: unknown mode "' + trackDef.mode + '"'); 7262 const seen = /* @__PURE__ */ new Map(); 7263 for (const kf of trackDef.keyframes) seen.set(kf.timelinePosition, kf); 7264 const sorted = [...seen.values()].sort((a, b) => a.timelinePosition - b.timelinePosition); 7265 keyframeTracks.push(new KeyframeTrack({ 7266 parameterField, 7267 keyframeOperation: operation, 7268 keyframes: sorted.map(compileKeyframe), 7269 enabled: trackDef.enabled !== false 7270 })); 7271 } 7272 return new AnimationPreset({ nodeId, keyframeTracks }); 7273 } 7274 7275
7275// ../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/share/motion/src/presets/source/scale.ts 7276 function preset({ 7277 type, 7278 axis, 7279 amount, 7280 wStartWithDivider, 7281 wEndWithoutDivider, 7282 wEndWithDivider, 7283 hStartWithoutDivider, 7284 hStartWithDivider, 7285 hEndWithoutDivider, 7286 duration, 7287 easing, 7288 node 7289 }) { 7290 const selectedType = type || "scaleIn"; 7291 const selectedAxis = axis || "w"; 7292 const safeAmount = (amount ?? 120) / 100; 7293 function getWFromTo() { 7294 if (selectedType === "custom") { 7295 if (selectedAxis === "h") return [1, 1]; 7296 if (selectedAxis === "whCombined") { 7297 return [wStartWithDivider / 100, wEndWithDivider / 100]; 7298 } 7299 return [wStartWithDivider / 100, wEndWithoutDivider / 100]; 7300 } 7301 if (selectedType === "scaleOut") return [1, safeAmount]; 7302 return [safeAmount, 1]; 7303 } 7304 function getHFromTo() { 7305 if (selectedType === "custom") { 7306 if (selectedAxis === "w") return [1, 1]; 7307 if (selectedAxis === "whCombined") { 7308 return [hStartWithoutDivider / 100, hEndWithoutDivider / 100]; 7309 } 7310 return [hStartWithDivider / 100, hEndWithoutDivider / 100]; 7311 } 7312 if (selectedType === "scaleOut") return [1, safeAmount]; 7313 return [safeAmount, 1]; 7314 } 7315 const [xFrom, xTo] = getWFromTo(); 7316 const [yFrom, yTo] = getHFromTo(); 7317 const definition = {}; 7318 definition.scaleX = tween({ 7319 mode: "scale", 7320 duration, 7321 from: xFrom, 7322 to: xTo, 7323 easing 7324 }); 7325 definition.scaleY = tween({ 7326 mode: "scale", 7327 duration, 7328 from: yFrom, 7329 to: yTo, 7330 easing 7331 }); 7332 return [animate(node, definition)]; 7333 } 7334 defineProperties(preset, { 7335 type: { 7336 label: "motion.preset_flyout.type", 7337 type: "string", 7338 defaultValue: "scaleIn", 7339 control: "select", 7340 options: [ 7341 { value: "scaleIn", label: "motion.preset_flyout.scale.type.scale_in" }, 7342 { value: "scaleOut", label: "motion.preset_flyout.scale.type.scale_out" }, 7343 { value: "custom", label: "motion.preset_flyout.type.custom" } 7344 ] 7345 }, 7346 axis: { 7347 label: "motion.preset_flyout.axis", 7348 type: "string", 7349 defaultValue: "whCombined", 7350 control: "select", 7351 options: [ 7352 { value: "w", label: "motion.preset_flyout.w" }, 7353 { value: "h", label: "motion.preset_flyout.h" }, 7354 { value: "whCombined", label: "motion.preset_flyout.both" } 7355 ] 7356 }, 7357 amount: { 7358 label: "motion.preset_flyout.amount", 7359 type: "number", 7360 defaultValue: 120, 7361 control: "input", 7362 min: 0, 7363 unit: "%" 7364 }, 7365 // TODO(showDividerAbove-cleanup): the \`showDividerAbove\` flags in this file 7366 // are redundant \u2014 section dividers are now applied client-side in the preset 7367 // flyout via \`forceShowDividerAboveTransform\` 7368 wStartWithDivider: { 7369 label: "motion.preset_flyout.start", 7370 type: "number", 7371 defaultValue: 120, 7372 control: "input", 7373 min: 0, 7374 unit: "%", 7375 showDividerAbove: true, 7376 icon: "w" 7377 }, 7378 wEndWithoutDivider: { 7379 label: "motion.preset_flyout.end", 7380 type: "number", 7381 defaultValue: 100, 7382 control: "input", 7383 min: 0, 7384 unit: "%", 7385 icon: "w" 7386 }, 7387 // whCombined-only variants: hStartWithoutDivider groups under the Starts 7388 // divider (set by wStartWithDivider above), wEndWithDivider starts the Ends 7389 // group. Hidden for every other layout. 7390 hStartWithoutDivider: { 7391 label: "motion.preset_flyout.start", 7392 type: "number", 7393 defaultValue: 120, 7394 control: "input", 7395 min: 0, 7396 unit: "%", 7397 icon: "h" 7398 }, 7399 wEndWithDivider: { 7400 label: "motion.preset_flyout.end", 7401 type: "number", 7402 defaultValue: 100, 7403 control: "input", 7404 min: 0, 7405 unit: "%", 7406 showDividerAbove: true, 7407 icon: "w" 7408 }, 7409 hStartWithDivider: { 7410 label: "motion.preset_flyout.start", 7411 type: "number", 7412 defaultValue: 120, 7413 control: "input", 7414 min: 0, 7415 unit: "%", 7416 showDividerAbove: true, 7417 icon: "h" 7418 }, 7419 hEndWithoutDivider: { 7420 label: "motion.preset_flyout.end", 7421 type: "number", 7422 defaultValue: 100, 7423 control: "input", 7424 min: 0, 7425 unit: "%", 7426 icon: "h" 7427 }, 7428 // Note: 'delay' is kept in sync with a preset's \`timelineOffset\`. 7429 delay: { 7430 label: "motion.preset_flyout.delay", 7431 type: "number", 7432 defaultValue: 0, 7433 control: "input", 7434 unit: "s", 7435 showDividerAbove: true, 7436 icon: "delay" 7437 }, 7438 duration: { 7439 label: "motion.preset_flyout.duration", 7440 type: "number", 7441 defaultValue: 0.5, 7442 control: "input", 7443 min: 0.01, 7444 unit: "s", 7445 icon: "time" 7446 }, 7447 easing: { 7448 label: "motion.preset_flyout.easing", 7449 type: "easing", 7450 defaultValue: { easingType: EasingType.OUT_CUBIC } 7451 } 7452 });
7453 return __toCommonJS(scale_exports); 7454})();`});var S0,R0,A0=Qt(()=>{S0=`// Source-of-truth for the SIZE first-party animation preset. 7455// 7456// The build-time preset-bundle codegen (see \`../scripts/generate_preset_bundles.ts\`) 7457// reads this file's raw text, esbuilds it into an IIFE with \`figma:motion\` 7458// resolved, and emits both strings into \`../generated/size.generated.ts\`. 7459// The generated module is what runtime code consumes \u2014 never import this file 7460// directly from production code paths. 7461// 7462// This file is excluded from the share/motion \`ts_project\` compilation \u2014 it's 7463// only an input to the codegen tool, evaluated inside the QuickJS / iframe 7464// sandbox at runtime. 7465 7466import { animate, defineProperties, EasingType, tween } from 'figma:motion' 7467 7468import type { PresetArgs, PresetTrackDefinitions } from './preset_types' 7469 7470function buildAxisTrack( 7471 from: number, 7472 to: number, 7473 duration: number, 7474 easing: unknown, 7475 enabled: boolean, 7476) { 7477 // The runtime adds \`timelineOffset\` back in when placing keyframes on the parent timeline (\`keyframe_conversion.ts\`). 7478 // The \`delay\` prop is kept in sync with \`timelineOffset\`, so it must NOT be folded into \`timelinePosition\` here \u2014 that would double-count. 7479 return tween({ 7480 mode: 'offset', 7481 timelinePosition: 0, 7482 duration, 7483 from, 7484 to, 7485 easing, 7486 enabled, 7487 }) 7488} 7489 7490export default function preset({ 7491 type, 7492 amount, 7493 axis, 7494 startWidth, 7495 endWidth, 7496 startHeight, 7497 endHeight, 7498 duration, 7499 easing, 7500 node, 7501}: PresetArgs) { 7502 const safeAmount = typeof amount === 'number' ? amount : 0 7503 const safeStartWidth = typeof startWidth === 'number' ? startWidth : 50 7504 const safeEndWidth = typeof endWidth === 'number' ? endWidth : 100 7505 const safeStartHeight = typeof startHeight === 'number' ? startHeight : 50 7506 const safeEndHeight = typeof endHeight === 'number' ? endHeight : 100 7507 const safeDuration = typeof duration === 'number' ? duration : 0.5 7508 7509 let widthTrack: [number, number] | null = null 7510 let heightTrack: [number, number] | null = null 7511 let widthEnabled = true 7512 let heightEnabled = true 7513 7514 switch (type) { 7515 case 'resize_in': { 7516 // Resize INTO the base size by shrinking/growing from base + amount -> base 7517 widthTrack = [safeAmount, 0] 7518 heightTrack = [safeAmount, 0] 7519 break 7520 } 7521 case 'resize_out': { 7522 // Resize OUT OF the base size by shrinking/growing from base -> base + amount 7523 widthTrack = [0, safeAmount] 7524 heightTrack = [0, safeAmount] 7525 break 7526 } 7527 case 'custom': { 7528 widthEnabled = axis !== 'y' 7529 heightEnabled = axis !== 'x' 7530 widthTrack = [safeStartWidth, safeEndWidth] 7531 heightTrack = [safeStartHeight, safeEndHeight] 7532 break 7533 } 7534 default: 7535 break 7536 } 7537 7538 const definition: PresetTrackDefinitions = {} 7539 if (widthTrack) { 7540 definition.width = buildAxisTrack( 7541 widthTrack[0], 7542 widthTrack[1], 7543 safeDuration, 7544 easing, 7545 widthEnabled, 7546 ) 7547 } 7548 if (heightTrack) { 7549 definition.height = buildAxisTrack( 7550 heightTrack[0], 7551 heightTrack[1], 7552 safeDuration, 7553 easing, 7554 heightEnabled, 7555 ) 7556 } 7557 7558 return [animate(node, definition)] 7559} 7560 7561defineProperties(preset, { 7562 type: { 7563 label: 'motion.preset_flyout.type', 7564 type: 'string', 7565 defaultValue: 'resize_in', 7566 control: 'select', 7567 options: [ 7568 { value: 'resize_in', label: 'motion.preset_flyout.size.type.resize_in' }, 7569 { value: 'resize_out', label: 'motion.preset_flyout.size.type.resize_out' }, 7570 { value: 'custom', label: 'motion.preset_flyout.type.custom' }, 7571 ], 7572 }, 7573 amount: { 7574 label: 'motion.preset_flyout.amount', 7575 type: 'number', 7576 control: 'input', 7577 defaultValue: 50, 7578 unit: 'px', 7579 }, 7580 axis: { 7581 label: 'motion.preset_flyout.axis', 7582 type: 'string', 7583 defaultValue: 'xy', 7584 control: 'select', 7585 options: [ 7586 { value: 'x', label: 'motion.preset_flyout.x' }, 7587 { value: 'y', label: 'motion.preset_flyout.y' }, 7588 { value: 'xy', label: 'motion.preset_flyout.both' }, 7589 ], 7590 }, 7591 // TODO(showDividerAbove-cleanup): the \`showDividerAbove\` flags in this file 7592 // are redundant \u2014 section dividers are now applied client-side in the preset 7593 // flyout via \`forceShowDividerAboveTransform\`. 7594 // Order is start values then end values (startWidth, startHeight, endWidth, 7595 // endHeight) so the custom-xy flyout groups Starts then Ends, matching the
7596 // dividers in \`getSectionDividerProps\` (and the position preset's layout). 7597 startWidth: { 7598 label: 'motion.preset_flyout.start', 7599 type: 'number', 7600 control: 'input', 7601 defaultValue: 50, 7602 icon: 'w', 7603 showDividerAbove: true, 7604 }, 7605 startHeight: { 7606 label: 'motion.preset_flyout.start', 7607 type: 'number', 7608 control: 'input', 7609 defaultValue: 50, 7610 icon: 'h', 7611 }, 7612 endWidth: { 7613 label: 'motion.preset_flyout.end', 7614 type: 'number', 7615 control: 'input', 7616 defaultValue: 100, 7617 icon: 'w', 7618 }, 7619 endHeight: { 7620 label: 'motion.preset_flyout.end', 7621 type: 'number', 7622 control: 'input', 7623 defaultValue: 100, 7624 icon: 'h', 7625 }, 7626 // Note: 'delay' is kept in sync with a preset's \`timelineOffset\` 7627 delay: { 7628 label: 'motion.preset_flyout.delay', 7629 type: 'number', 7630 control: 'input', 7631 defaultValue: 0, 7632 unit: 's', 7633 showDividerAbove: true, 7634 icon: 'delay', 7635 }, 7636 duration: { 7637 label: 'motion.preset_flyout.duration', 7638 type: 'number', 7639 control: 'input', 7640 defaultValue: 0.5, 7641 min: 0.01, 7642 unit: 's', 7643 icon: 'time', 7644 }, 7645 easing: { 7646 label: 'motion.preset_flyout.easing', 7647 type: 'easing', 7648 defaultValue: { 7649 easingType: EasingType.OUT_CUBIC, 7650 }, 7651 }, 7652}) 7653`,R0=`var __presetBundle = (() => { 7654 var __defProp = Object.defineProperty; 7655 var __getOwnPropDesc = Object.getOwnPropertyDescriptor; 7656 var __getOwnPropNames = Object.getOwnPropertyNames; 7657 var __hasOwnProp = Object.prototype.hasOwnProperty; 7658 var __export = (target, all) => { 7659 for (var name in all) 7660 __defProp(target, name, { get: all[name], enumerable: true }); 7661 }; 7662 var __copyProps = (to, from, except, desc) => { 7663 if (from && typeof from === "object" || typeof from === "function") { 7664 for (let key of __getOwnPropNames(from)) 7665 if (!__hasOwnProp.call(to, key) && key !== except) 7666 __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); 7667 } 7668 return to; 7669 }; 7670 var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); 7671 7672
7672// ../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/share/motion/src/presets/source/size.ts 7673 var size_exports = {}; 7674 __export(size_exports, { 7675 default: () => preset 7676 }); 7677 7678 // figma-motion:figma:motion 7679 function defineProperties(component, spec) { 7680 Object.assign(component, { 7681 [/* @__PURE__ */ Symbol.for("figma.react.props")]: spec 7682 }); 7683 } 7684 var EasingType = { 7685 IN_CUBIC: 0, 7686 inCubic: 0, 7687 OUT_CUBIC: 1, 7688 outCubic: 1, 7689 INOUT_CUBIC: 2, 7690 inOutCubic: 2, 7691 LINEAR: 3, 7692 linear: 3, 7693 IN_BACK_CUBIC: 4, 7694 inBackCubic: 4, 7695 OUT_BACK_CUBIC: 5, 7696 outBackCubic: 5, 7697 INOUT_BACK_CUBIC: 6, 7698 inOutBackCubic: 6, 7699 CUSTOM_CUBIC: 7, 7700 customCubic: 7, 7701 SPRING: 8, 7702 spring: 8, 7703 GENTLE_SPRING: 9, 7704 gentleSpring: 9, 7705 CUSTOM_SPRING: 10, 7706 customSpring: 10, 7707 SPRING_PRESET_ONE: 11, 7708 springPresetOne: 11, 7709 SPRING_PRESET_TWO: 12, 7710 springPresetTwo: 12, 7711 SPRING_PRESET_THREE: 13, 7712 springPresetThree: 13, 7713 // For backwards compat 7714 bezier: 100, 7715 BEZIER: 100 7716 }; 7717 var InterpolationType = { 7718 HOLD: 0, 7719 hold: 0, 7720 BEZIER: 1, 7721 bezier: 1 7722 }; 7723 var KeyframeOperation = { 7724 SET: 0, 7725 set: 0, 7726 SCALE: 1, 7727 scale: 1, 7728 OFFSET: 2, 7729 offset: 2 7730 }; 7731 var ParameterField = { 7732 MISSING: 0, 7733 missing: 0, 7734 CORNER_RADIUS: 1, 7735 cornerRadius: 1, 7736 PARAGRAPH_SPACING: 2, 7737 paragraphSpacing: 2, 7738 PARAGRAPH_INDENT: 3, 7739 paragraphIndent: 3, 7740 STROKE_WEIGHT: 4, 7741 strokeWeight: 4, 7742 STACK_SPACING: 5, 7743 stackSpacing: 5, 7744 STACK_PADDING_LEFT: 6, 7745 stackPaddingLeft: 6, 7746 STACK_PADDING_TOP: 7, 7747 stackPaddingTop: 7, 7748 STACK_PADDING_RIGHT: 8, 7749 stackPaddingRight: 8, 7750 STACK_PADDING_BOTTOM: 9, 7751 stackPaddingBottom: 9, 7752 VISIBLE: 10, 7753 visible: 10, 7754 TEXT_DATA: 11, 7755 textData: 11, 7756 WIDTH: 12, 7757 width: 12, 7758 HEIGHT: 13, 7759 height: 13, 7760 RECTANGLE_TOP_LEFT_CORNER_RADIUS: 14, 7761 rectangleTopLeftCornerRadius: 14, 7762 RECTANGLE_TOP_RIGHT_CORNER_RADIUS: 15, 7763 rectangleTopRightCornerRadius: 15, 7764 RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS: 16, 7765 rectangleBottomLeftCornerRadius: 16, 7766 RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS: 17, 7767 rectangleBottomRightCornerRadius: 17, 7768 BORDER_TOP_WEIGHT: 18, 7769 borderTopWeight: 18, 7770 BORDER_BOTTOM_WEIGHT: 19, 7771 borderBottomWeight: 19, 7772 BORDER_LEFT_WEIGHT: 20, 7773 borderLeftWeight: 20, 7774 BORDER_RIGHT_WEIGHT: 21, 7775 borderRightWeight: 21, 7776 VARIANT_PROPERTIES: 22, 7777 variantProperties: 22, 7778 STACK_COUNTER_SPACING: 23, 7779 stackCounterSpacing: 23, 7780 MIN_WIDTH: 24, 7781 minWidth: 24, 7782 MAX_WIDTH: 25, 7783 maxWidth: 25, 7784 MIN_HEIGHT: 26, 7785 minHeight: 26, 7786 MAX_HEIGHT: 27, 7787 maxHeight: 27, 7788 FONT_FAMILY: 28, 7789 fontFamily: 28, 7790 FONT_STYLE: 29, 7791 fontStyle: 29, 7792 FONT_VARIATIONS: 30, 7793 fontVariations: 30, 7794 OPACITY: 31, 7795 opacity: 31, 7796 FONT_SIZE: 32, 7797 fontSize: 32, 7798 LETTER_SPACING: 34, 7799 letterSpacing: 34, 7800 LINE_HEIGHT: 36, 7801 lineHeight: 36, 7802 OVERRIDDEN_SYMBOL_ID: 37, 7803 overriddenSymbolId: 37, 7804 CMS_SERIALIZED_RICH_TEXT_DATA: 38, 7805 cmsSerializedRichTextData: 38, 7806 HYPERLINK: 39, 7807 hyperlink: 39, 7808 SLOT_CONTENT_ID: 40, 7809 slotContentId: 40, 7810 GRID_ROW_GAP: 41, 7811 gridRowGap: 41, 7812 GRID_COLUMN_GAP: 42, 7813 gridColumnGap: 42, 7814 RELATIVE_X_POSITION: 43, 7815 xPosition: 43, 7816 RELATIVE_Y_POSITION: 44, 7817 relativeYPosition: 44, 7818 RELATIVE_ROTATION: 45, 7819 relativeRotation: 45, 7820 MOTION_TRANSLATION_X: 46, 7821 motionTranslationX: 46, 7822 MOTION_TRANSLATION_Y: 47, 7823 motionTranslationY: 47, 7824 MOTION_ROTATION: 48, 7825 motionRotation: 48, 7826 MOTION_SCALE_X: 49, 7827 motionScaleX: 49, 7828 MOTION_SCALE_Y: 50, 7829 motionScaleY: 50, 7830 MOTION_SHEAR: 51, 7831 motionShear: 51, 7832 SCROLL_OFFSET_X: 52, 7833 scrollOffsetX: 52, 7834 SCROLL_OFFSET_Y: 53, 7835 scrollOffsetY: 53, 7836 PATH_TRIM_START: 54, 7837 pathTrimStart: 54, 7838 PATH_TRIM_END: 55, 7839 pathTrimEnd: 55, 7840 DISSOLVE_PROGRESS: 56, 7841 dissolveProgress: 56 7842 }; 7843 var Keyframe = class { 7844 constructor(data) { 7845 this.timelinePosition = Math.round(data.timelinePosition); 7846 this.easing = data.easing; 7847 this.value = data.value; 7848 } 7849 }; 7850 var KeyframeTrack = class { 7851 constructor(data) { 7852 this.topLevelField = data.topLevelField; 7853 this.parameterField = data.parameterField; 7854 this.index = data.index; 7855 this.effectParametrizedField = data.effectParametrizedField; 7856 this.keyframeOperation = data.keyframeOperation; 7857 this.keyframes = data.keyframes; 7858 this.enabled = !!data.enabled; 7859 } 7860 }; 7861 var AnimationPreset = class { 7862 constructor(data) { 7863 this.nodeId = data.nodeId; 7864 this.keyframeTracks = data.keyframeTracks; 7865 } 7866 }; 7867 var PARAMETER_FIELD_ALIAS_MAP = { 7868 translateX: ParameterField.MOTION_TRANSLATION_X, 7869 translateY: ParameterField.MOTION_TRANSLATION_Y, 7870 rotate: ParameterField.MOTION_ROTATION, 7871 scaleX: ParameterField.MOTION_SCALE_X, 7872 scaleY: ParameterField.MOTION_SCALE_Y, 7873 shear: ParameterField.MOTION_SHEAR 7874 }; 7875 var KEYFRAMEABLE_FIELDS = /* @__PURE__ */ new Set([ 7876 "translateX", 7877 "translateY", 7878 "rotate", 7879 "scaleX", 7880 "scaleY", 7881 "shear", 7882 "cornerRadius", 7883 "strokeWeight", 7884 "rectangleTopLeftCornerRadius", 7885 "rectangleTopRightCornerRadius", 7886 "rectangleBottomLeftCornerRadius", 7887 "rectangleBottomRightCornerRadius", 7888 "stackSpacing", 7889 "stackPaddingLeft", 7890 "stackPaddingTop", 7891 "stackPaddingRight", 7892 "stackPaddingBottom", 7893 "width", 7894 "height", 7895 "borderTopWeight", 7896 "borderBottomWeight", 7897 "borderLeftWeight", 7898 "borderRightWeight", 7899 "stackCounterSpacing", 7900 "minWidth", 7901 "maxWidth", 7902 "minHeight", 7903 "maxHeight", 7904 "opacity", 7905 "gridRowGap", 7906 "gridColumnGap", 7907 "textData", 7908 "pathTrimStart", 7909 "pathTrimEnd" 7910 ]); 7911 var MODE_TO_OPERATION = { 7912 set: KeyframeOperation.SET, 7913 SET: KeyframeOperation.SET, 7914 offset: KeyframeOperation.OFFSET, 7915 OFFSET: KeyframeOperation.OFFSET, 7916 scale: KeyframeOperation.SCALE, 7917 SCALE: KeyframeOperation.SCALE 7918 }; 7919 function normalizeEasing(easing) { 7920 if (easing === void 0) return void 0; 7921 if (easing === "hold") return { interpolationType: InterpolationType.HOLD }; 7922 if (typeof easing === "string") { 7923 const easingType = EasingType[easing]; 7924 if (easingType === void 0) throw new Error('normalizeEasing: unknown easing "' + easing + '"'); 7925 return { easingType }; 7926 } 7927 return easing; 7928 } 7929 function compileKeyframe({ timelinePosition, value, easing }) { 7930 return new Keyframe({ 7931 timelinePosition: timelinePosition * 1e6, 7932 easing: normalizeEasing(easing), 7933 value 7934 }); 7935 } 7936 function tween({ mode, timelinePosition = 0, duration, from, to, easing, enabled = true }) { 7937 if (duration < 0) throw new Error("tween: duration must be non-negative"); 7938 return { 7939 mode, 7940 enabled, 7941 keyframes: [ 7942 { timelinePosition, value: from, easing }, 7943 { timelinePosition: timelinePosition + duration, value: to, easing } 7944 ] 7945 }; 7946 } 7947 function animate(node, definition) { 7948 const nodeId = typeof node === "string" ? node : node.id;
7949 const keyframeTracks = []; 7950 for (const [key, trackDef] of Object.entries(definition)) { 7951 if (!KEYFRAMEABLE_FIELDS.has(key)) { 7952 throw new Error('animate: unknown or non-keyframeable property "' + key + '"'); 7953 } 7954 const parameterField = PARAMETER_FIELD_ALIAS_MAP[key] ?? ParameterField[key]; 7955 const operation = MODE_TO_OPERATION[trackDef.mode]; 7956 if (operation === void 0) throw new Error('animate: unknown mode "' + trackDef.mode + '"'); 7957 const seen = /* @__PURE__ */ new Map(); 7958 for (const kf of trackDef.keyframes) seen.set(kf.timelinePosition, kf); 7959 const sorted = [...seen.values()].sort((a, b) => a.timelinePosition - b.timelinePosition); 7960 keyframeTracks.push(new KeyframeTrack({ 7961 parameterField, 7962 keyframeOperation: operation, 7963 keyframes: sorted.map(compileKeyframe), 7964 enabled: trackDef.enabled !== false 7965 })); 7966 } 7967 return new AnimationPreset({ nodeId, keyframeTracks }); 7968 } 7969 7970
7970// ../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/share/motion/src/presets/source/size.ts 7971 function buildAxisTrack(from, to, duration, easing, enabled) { 7972 return tween({ 7973 mode: "offset", 7974 timelinePosition: 0, 7975 duration, 7976 from, 7977 to, 7978 easing, 7979 enabled 7980 }); 7981 } 7982 function preset({ 7983 type, 7984 amount, 7985 axis, 7986 startWidth, 7987 endWidth, 7988 startHeight, 7989 endHeight, 7990 duration, 7991 easing, 7992 node 7993 }) { 7994 const safeAmount = typeof amount === "number" ? amount : 0; 7995 const safeStartWidth = typeof startWidth === "number" ? startWidth : 50; 7996 const safeEndWidth = typeof endWidth === "number" ? endWidth : 100; 7997 const safeStartHeight = typeof startHeight === "number" ? startHeight : 50; 7998 const safeEndHeight = typeof endHeight === "number" ? endHeight : 100; 7999 const safeDuration = typeof duration === "number" ? duration : 0.5; 8000 let widthTrack = null; 8001 let heightTrack = null; 8002 let widthEnabled = true; 8003 let heightEnabled = true; 8004 switch (type) { 8005 case "resize_in": { 8006 widthTrack = [safeAmount, 0]; 8007 heightTrack = [safeAmount, 0]; 8008 break; 8009 } 8010 case "resize_out": { 8011 widthTrack = [0, safeAmount]; 8012 heightTrack = [0, safeAmount]; 8013 break; 8014 } 8015 case "custom": { 8016 widthEnabled = axis !== "y"; 8017 heightEnabled = axis !== "x"; 8018 widthTrack = [safeStartWidth, safeEndWidth]; 8019 heightTrack = [safeStartHeight, safeEndHeight]; 8020 break; 8021 } 8022 default: 8023 break; 8024 } 8025 const definition = {}; 8026 if (widthTrack) { 8027 definition.width = buildAxisTrack( 8028 widthTrack[0], 8029 widthTrack[1], 8030 safeDuration, 8031 easing, 8032 widthEnabled 8033 ); 8034 } 8035 if (heightTrack) { 8036 definition.height = buildAxisTrack( 8037 heightTrack[0], 8038 heightTrack[1], 8039 safeDuration, 8040 easing, 8041 heightEnabled 8042 ); 8043 } 8044 return [animate(node, definition)]; 8045 } 8046 defineProperties(preset, { 8047 type: { 8048 label: "motion.preset_flyout.type", 8049 type: "string", 8050 defaultValue: "resize_in", 8051 control: "select", 8052 options: [ 8053 { value: "resize_in", label: "motion.preset_flyout.size.type.resize_in" }, 8054 { value: "resize_out", label: "motion.preset_flyout.size.type.resize_out" }, 8055 { value: "custom", label: "motion.preset_flyout.type.custom" } 8056 ] 8057 }, 8058 amount: { 8059 label: "motion.preset_flyout.amount", 8060 type: "number", 8061 control: "input", 8062 defaultValue: 50, 8063 unit: "px" 8064 }, 8065 axis: { 8066 label: "motion.preset_flyout.axis", 8067 type: "string", 8068 defaultValue: "xy", 8069 control: "select", 8070 options: [ 8071 { value: "x", label: "motion.preset_flyout.x" }, 8072 { value: "y", label: "motion.preset_flyout.y" }, 8073 { value: "xy", label: "motion.preset_flyout.both" } 8074 ] 8075 }, 8076 // TODO(showDividerAbove-cleanup): the \`showDividerAbove\` flags in this file 8077 // are redundant \u2014 section dividers are now applied client-side in the preset 8078 // flyout via \`forceShowDividerAboveTransform\`. 8079 // Order is start values then end values (startWidth, startHeight, endWidth, 8080 // endHeight) so the custom-xy flyout groups Starts then Ends, matching the 8081 // dividers in \`getSectionDividerProps\` (and the position preset's layout). 8082 startWidth: { 8083 label: "motion.preset_flyout.start", 8084 type: "number", 8085 control: "input", 8086 defaultValue: 50, 8087 icon: "w", 8088 showDividerAbove: true 8089 }, 8090 startHeight: { 8091 label: "motion.preset_flyout.start", 8092 type: "number", 8093 control: "input", 8094 defaultValue: 50, 8095 icon: "h" 8096 }, 8097 endWidth: { 8098 label: "motion.preset_flyout.end", 8099 type: "number", 8100 control: "input", 8101 defaultValue: 100, 8102 icon: "w" 8103 }, 8104 endHeight: { 8105 label: "motion.preset_flyout.end", 8106 type: "number", 8107 control: "input", 8108 defaultValue: 100, 8109 icon: "h" 8110 }, 8111 // Note: 'delay' is kept in sync with a preset's \`timelineOffset\` 8112 delay: { 8113 label: "motion.preset_flyout.delay", 8114 type: "number", 8115 control: "input", 8116 defaultValue: 0, 8117 unit: "s", 8118 showDividerAbove: true, 8119 icon: "delay" 8120 }, 8121 duration: { 8122 label: "motion.preset_flyout.duration", 8123 type: "number", 8124 control: "input", 8125 defaultValue: 0.5, 8126 min: 0.01, 8127 unit: "s", 8128 icon: "time" 8129 }, 8130 easing: { 8131 label: "motion.preset_flyout.easing", 8132 type: "easing", 8133 defaultValue: { 8134 easingType: EasingType.OUT_CUBIC 8135 } 8136 } 8137 });
8138 return __toCommonJS(size_exports); 8139})();`});var N0,y0,b0=Qt(()=>{N0=`// Source-of-truth for the TEXT_DATA first-party animation preset. 8140// 8141// The build-time preset-bundle codegen (see \`../scripts/generate_preset_bundles.ts\`) 8142// reads this file's raw text, esbuilds it into an IIFE with \`figma:motion\` 8143// resolved, and emits both strings into \`../generated/text_data.generated.ts\`. 8144// The generated module is what runtime code consumes \u2014 never import this file 8145// directly from production code paths. 8146// 8147// This file is excluded from the share/motion \`ts_project\` compilation \u2014 it's 8148// only an input to the codegen tool, evaluated inside the QuickJS / iframe 8149// sandbox at runtime. 8150 8151import { animate, defineProperties, EasingType } from 'figma:motion' 8152 8153import type { PresetArgs } from './preset_types' 8154 8155function revealTextKeyframes({ text, by, duration, linesStartIndices, easing }: PresetArgs) { 8156 const keyframes: Array<{ timelinePosition: number; value: string; easing: PresetArgs }> = [] 8157 const push = (value: string, i: number, n: number) => 8158 keyframes.push({ 8159 timelinePosition: n <= 1 ? 0 : (i / (n - 1)) * duration, 8160 value, 8161 easing, 8162 }) 8163 8164 if (by === 'character') { 8165 const chars = Array.from(text) 8166 for (let i = 0; i <= chars.length; i++) push(chars.slice(0, i).join(''), i, chars.length + 1) 8167 } else if (by === 'word') { 8168 const wordEndIndices = [0] 8169 const wordRegex = /\\S+/g 8170 for (const match of text.matchAll(wordRegex)) { 8171 wordEndIndices.push(match.index + match[0].length) 8172 } 8173 const n = wordEndIndices.length 8174 for (let i = 0; i < n; i++) push(text.slice(0, wordEndIndices[i]), i, n) 8175 } else if (by === 'line') { 8176 const starts = linesStartIndices ?? [] 8177 const cuts = [0, ...starts, text.length + 1] 8178 for (let i = 0; i < cuts.length; i++) 8179 push(text.slice(0, Math.max(0, cuts[i] - 1)), i, cuts.length) 8180 } 8181 8182 return { mode: 'set', keyframes } 8183} 8184 8185export default function preset({ revealBy, duration, target, baseNodeData }: PresetArgs) { 8186 const easing = { easingType: EasingType.OUT_CUBIC } 8187 return [ 8188 animate(target, { 8189 textData: revealTextKeyframes({ 8190 text: baseNodeData.text, 8191 by: revealBy, 8192 duration, 8193 linesStartIndices: baseNodeData.linesStartIndices, 8194 easing, 8195 }), 8196 }), 8197 ] 8198} 8199
8200defineProperties(preset, { 8201 revealBy: { 8202 label: 'Reveal By', 8203 type: 'string', 8204 defaultValue: 'character', 8205 control: 'select', 8206 options: [ 8207 { value: 'character', label: 'Character' }, 8208 { value: 'word', label: 'Word' }, 8209 { value: 'line', label: 'Line' }, 8210 ], 8211 }, 8212 duration: { 8213 label: 'Duration', 8214 type: 'number', 8215 defaultValue: 1.5, 8216 control: 'input', 8217 min: 0.01, 8218 unit: 's', 8219 }, 8220}) 8221`,y0=`var __presetBundle = (() => { 8222 var __defProp = Object.defineProperty; 8223 var __getOwnPropDesc = Object.getOwnPropertyDescriptor; 8224 var __getOwnPropNames = Object.getOwnPropertyNames; 8225 var __hasOwnProp = Object.prototype.hasOwnProperty; 8226 var __export = (target, all) => { 8227 for (var name in all) 8228 __defProp(target, name, { get: all[name], enumerable: true }); 8229 }; 8230 var __copyProps = (to, from, except, desc) => { 8231 if (from && typeof from === "object" || typeof from === "function") { 8232 for (let key of __getOwnPropNames(from)) 8233 if (!__hasOwnProp.call(to, key) && key !== except) 8234 __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); 8235 } 8236 return to; 8237 }; 8238 var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); 8239 8240
8240// ../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/share/motion/src/presets/source/text_data.ts 8241 var text_data_exports = {}; 8242 __export(text_data_exports, { 8243 default: () => preset 8244 }); 8245 8246 // figma-motion:figma:motion 8247 function defineProperties(component, spec) { 8248 Object.assign(component, { 8249 [/* @__PURE__ */ Symbol.for("figma.react.props")]: spec 8250 }); 8251 } 8252 var EasingType = { 8253 IN_CUBIC: 0, 8254 inCubic: 0, 8255 OUT_CUBIC: 1, 8256 outCubic: 1, 8257 INOUT_CUBIC: 2, 8258 inOutCubic: 2, 8259 LINEAR: 3, 8260 linear: 3, 8261 IN_BACK_CUBIC: 4, 8262 inBackCubic: 4, 8263 OUT_BACK_CUBIC: 5, 8264 outBackCubic: 5, 8265 INOUT_BACK_CUBIC: 6, 8266 inOutBackCubic: 6, 8267 CUSTOM_CUBIC: 7, 8268 customCubic: 7, 8269 SPRING: 8, 8270 spring: 8, 8271 GENTLE_SPRING: 9, 8272 gentleSpring: 9, 8273 CUSTOM_SPRING: 10, 8274 customSpring: 10, 8275 SPRING_PRESET_ONE: 11, 8276 springPresetOne: 11, 8277 SPRING_PRESET_TWO: 12, 8278 springPresetTwo: 12, 8279 SPRING_PRESET_THREE: 13, 8280 springPresetThree: 13, 8281 // For backwards compat 8282 bezier: 100, 8283 BEZIER: 100 8284 }; 8285 var InterpolationType = { 8286 HOLD: 0, 8287 hold: 0, 8288 BEZIER: 1, 8289 bezier: 1 8290 }; 8291 var KeyframeOperation = { 8292 SET: 0, 8293 set: 0, 8294 SCALE: 1, 8295 scale: 1, 8296 OFFSET: 2, 8297 offset: 2 8298 }; 8299 var ParameterField = { 8300 MISSING: 0, 8301 missing: 0, 8302 CORNER_RADIUS: 1, 8303 cornerRadius: 1, 8304 PARAGRAPH_SPACING: 2, 8305 paragraphSpacing: 2, 8306 PARAGRAPH_INDENT: 3, 8307 paragraphIndent: 3, 8308 STROKE_WEIGHT: 4, 8309 strokeWeight: 4, 8310 STACK_SPACING: 5, 8311 stackSpacing: 5, 8312 STACK_PADDING_LEFT: 6, 8313 stackPaddingLeft: 6, 8314 STACK_PADDING_TOP: 7, 8315 stackPaddingTop: 7, 8316 STACK_PADDING_RIGHT: 8, 8317 stackPaddingRight: 8, 8318 STACK_PADDING_BOTTOM: 9, 8319 stackPaddingBottom: 9, 8320 VISIBLE: 10, 8321 visible: 10, 8322 TEXT_DATA: 11, 8323 textData: 11, 8324 WIDTH: 12, 8325 width: 12, 8326 HEIGHT: 13, 8327 height: 13, 8328 RECTANGLE_TOP_LEFT_CORNER_RADIUS: 14, 8329 rectangleTopLeftCornerRadius: 14, 8330 RECTANGLE_TOP_RIGHT_CORNER_RADIUS: 15, 8331 rectangleTopRightCornerRadius: 15, 8332 RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS: 16, 8333 rectangleBottomLeftCornerRadius: 16, 8334 RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS: 17, 8335 rectangleBottomRightCornerRadius: 17, 8336 BORDER_TOP_WEIGHT: 18, 8337 borderTopWeight: 18, 8338 BORDER_BOTTOM_WEIGHT: 19, 8339 borderBottomWeight: 19, 8340 BORDER_LEFT_WEIGHT: 20, 8341 borderLeftWeight: 20, 8342 BORDER_RIGHT_WEIGHT: 21, 8343 borderRightWeight: 21, 8344 VARIANT_PROPERTIES: 22, 8345 variantProperties: 22, 8346 STACK_COUNTER_SPACING: 23, 8347 stackCounterSpacing: 23, 8348 MIN_WIDTH: 24, 8349 minWidth: 24, 8350 MAX_WIDTH: 25, 8351 maxWidth: 25, 8352 MIN_HEIGHT: 26, 8353 minHeight: 26, 8354 MAX_HEIGHT: 27, 8355 maxHeight: 27, 8356 FONT_FAMILY: 28, 8357 fontFamily: 28, 8358 FONT_STYLE: 29, 8359 fontStyle: 29, 8360 FONT_VARIATIONS: 30, 8361 fontVariations: 30, 8362 OPACITY: 31, 8363 opacity: 31, 8364 FONT_SIZE: 32, 8365 fontSize: 32, 8366 LETTER_SPACING: 34, 8367 letterSpacing: 34, 8368 LINE_HEIGHT: 36, 8369 lineHeight: 36, 8370 OVERRIDDEN_SYMBOL_ID: 37, 8371 overriddenSymbolId: 37, 8372 CMS_SERIALIZED_RICH_TEXT_DATA: 38, 8373 cmsSerializedRichTextData: 38, 8374 HYPERLINK: 39, 8375 hyperlink: 39, 8376 SLOT_CONTENT_ID: 40, 8377 slotContentId: 40, 8378 GRID_ROW_GAP: 41, 8379 gridRowGap: 41, 8380 GRID_COLUMN_GAP: 42, 8381 gridColumnGap: 42, 8382 RELATIVE_X_POSITION: 43, 8383 xPosition: 43, 8384 RELATIVE_Y_POSITION: 44, 8385 relativeYPosition: 44, 8386 RELATIVE_ROTATION: 45, 8387 relativeRotation: 45, 8388 MOTION_TRANSLATION_X: 46, 8389 motionTranslationX: 46, 8390 MOTION_TRANSLATION_Y: 47, 8391 motionTranslationY: 47, 8392 MOTION_ROTATION: 48, 8393 motionRotation: 48, 8394 MOTION_SCALE_X: 49, 8395 motionScaleX: 49, 8396 MOTION_SCALE_Y: 50, 8397 motionScaleY: 50, 8398 MOTION_SHEAR: 51, 8399 motionShear: 51, 8400 SCROLL_OFFSET_X: 52, 8401 scrollOffsetX: 52, 8402 SCROLL_OFFSET_Y: 53, 8403 scrollOffsetY: 53, 8404 PATH_TRIM_START: 54, 8405 pathTrimStart: 54, 8406 PATH_TRIM_END: 55, 8407 pathTrimEnd: 55, 8408 DISSOLVE_PROGRESS: 56, 8409 dissolveProgress: 56 8410 }; 8411 var Keyframe = class { 8412 constructor(data) { 8413 this.timelinePosition = Math.round(data.timelinePosition); 8414 this.easing = data.easing; 8415 this.value = data.value; 8416 } 8417 }; 8418 var KeyframeTrack = class { 8419 constructor(data) { 8420 this.topLevelField = data.topLevelField; 8421 this.parameterField = data.parameterField; 8422 this.index = data.index; 8423 this.effectParametrizedField = data.effectParametrizedField; 8424 this.keyframeOperation = data.keyframeOperation; 8425 this.keyframes = data.keyframes; 8426 this.enabled = !!data.enabled; 8427 } 8428 }; 8429 var AnimationPreset = class { 8430 constructor(data) { 8431 this.nodeId = data.nodeId; 8432 this.keyframeTracks = data.keyframeTracks; 8433 } 8434 }; 8435 var PARAMETER_FIELD_ALIAS_MAP = { 8436 translateX: ParameterField.MOTION_TRANSLATION_X, 8437 translateY: ParameterField.MOTION_TRANSLATION_Y, 8438 rotate: ParameterField.MOTION_ROTATION, 8439 scaleX: ParameterField.MOTION_SCALE_X, 8440 scaleY: ParameterField.MOTION_SCALE_Y, 8441 shear: ParameterField.MOTION_SHEAR 8442 }; 8443 var KEYFRAMEABLE_FIELDS = /* @__PURE__ */ new Set([ 8444 "translateX", 8445 "translateY", 8446 "rotate", 8447 "scaleX", 8448 "scaleY", 8449 "shear", 8450 "cornerRadius", 8451 "strokeWeight", 8452 "rectangleTopLeftCornerRadius", 8453 "rectangleTopRightCornerRadius", 8454 "rectangleBottomLeftCornerRadius", 8455 "rectangleBottomRightCornerRadius", 8456 "stackSpacing", 8457 "stackPaddingLeft", 8458 "stackPaddingTop", 8459 "stackPaddingRight", 8460 "stackPaddingBottom", 8461 "width", 8462 "height", 8463 "borderTopWeight", 8464 "borderBottomWeight", 8465 "borderLeftWeight", 8466 "borderRightWeight", 8467 "stackCounterSpacing", 8468 "minWidth", 8469 "maxWidth", 8470 "minHeight", 8471 "maxHeight", 8472 "opacity", 8473 "gridRowGap", 8474 "gridColumnGap", 8475 "textData", 8476 "pathTrimStart", 8477 "pathTrimEnd" 8478 ]); 8479 var MODE_TO_OPERATION = { 8480 set: KeyframeOperation.SET, 8481 SET: KeyframeOperation.SET, 8482 offset: KeyframeOperation.OFFSET, 8483 OFFSET: KeyframeOperation.OFFSET, 8484 scale: KeyframeOperation.SCALE, 8485 SCALE: KeyframeOperation.SCALE 8486 }; 8487 function normalizeEasing(easing) { 8488 if (easing === void 0) return void 0; 8489 if (easing === "hold") return { interpolationType: InterpolationType.HOLD }; 8490 if (typeof easing === "string") { 8491 const easingType = EasingType[easing]; 8492 if (easingType === void 0) throw new Error('normalizeEasing: unknown easing "' + easing + '"'); 8493 return { easingType }; 8494 } 8495 return easing; 8496 } 8497 function compileKeyframe({ timelinePosition, value, easing }) { 8498 return new Keyframe({ 8499 timelinePosition: timelinePosition * 1e6, 8500 easing: normalizeEasing(easing), 8501 value 8502 }); 8503 } 8504 function animate(node, definition) { 8505 const nodeId = typeof node === "string" ? node : node.id;
8506 const keyframeTracks = []; 8507 for (const [key, trackDef] of Object.entries(definition)) { 8508 if (!KEYFRAMEABLE_FIELDS.has(key)) { 8509 throw new Error('animate: unknown or non-keyframeable property "' + key + '"'); 8510 } 8511 const parameterField = PARAMETER_FIELD_ALIAS_MAP[key] ?? ParameterField[key]; 8512 const operation = MODE_TO_OPERATION[trackDef.mode]; 8513 if (operation === void 0) throw new Error('animate: unknown mode "' + trackDef.mode + '"'); 8514 const seen = /* @__PURE__ */ new Map(); 8515 for (const kf of trackDef.keyframes) seen.set(kf.timelinePosition, kf); 8516 const sorted = [...seen.values()].sort((a, b) => a.timelinePosition - b.timelinePosition); 8517 keyframeTracks.push(new KeyframeTrack({ 8518 parameterField, 8519 keyframeOperation: operation, 8520 keyframes: sorted.map(compileKeyframe), 8521 enabled: trackDef.enabled !== false 8522 })); 8523 } 8524 return new AnimationPreset({ nodeId, keyframeTracks }); 8525 } 8526 8527
8527// ../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/share/motion/src/presets/source/text_data.ts 8528 function revealTextKeyframes({ text, by, duration, linesStartIndices, easing }) { 8529 const keyframes = []; 8530 const push = (value, i, n) => keyframes.push({ 8531 timelinePosition: n <= 1 ? 0 : i / (n - 1) * duration, 8532 value, 8533 easing 8534 }); 8535 if (by === "character") { 8536 const chars = Array.from(text); 8537 for (let i = 0; i <= chars.length; i++) push(chars.slice(0, i).join(""), i, chars.length + 1); 8538 } else if (by === "word") { 8539 const wordEndIndices = [0]; 8540 const wordRegex = /\\S+/g; 8541 for (const match of text.matchAll(wordRegex)) { 8542 wordEndIndices.push(match.index + match[0].length); 8543 } 8544 const n = wordEndIndices.length; 8545 for (let i = 0; i < n; i++) push(text.slice(0, wordEndIndices[i]), i, n); 8546 } else if (by === "line") { 8547 const starts = linesStartIndices ?? []; 8548 const cuts = [0, ...starts, text.length + 1]; 8549 for (let i = 0; i < cuts.length; i++) 8550 push(text.slice(0, Math.max(0, cuts[i] - 1)), i, cuts.length); 8551 } 8552 return { mode: "set", keyframes }; 8553 } 8554 function preset({ revealBy, duration, target, baseNodeData }) { 8555 const easing = { easingType: EasingType.OUT_CUBIC }; 8556 return [ 8557 animate(target, { 8558 textData: revealTextKeyframes({ 8559 text: baseNodeData.text, 8560 by: revealBy, 8561 duration, 8562 linesStartIndices: baseNodeData.linesStartIndices, 8563 easing 8564 }) 8565 }) 8566 ]; 8567 } 8568 defineProperties(preset, { 8569 revealBy: { 8570 label: "Reveal By", 8571 type: "string", 8572 defaultValue: "character", 8573 control: "select", 8574 options: [ 8575 { value: "character", label: "Character" }, 8576 { value: "word", label: "Word" }, 8577 { value: "line", label: "Line" } 8578 ] 8579 }, 8580 duration: { 8581 label: "Duration", 8582 type: "number", 8583 defaultValue: 1.5, 8584 control: "input", 8585 min: 0.01, 8586 unit: "s" 8587 } 8588 }); 8589 return __toCommonJS(text_data_exports); 8590})();`});var Sn,L0=Qt(()=>{Fe();Bx();Hx();Kx();jx();Jx();e0();r0();s0();u0();f0();E0();h0();I0();A0();b0();Sn={[k.FADE_DEPRECATED]:{source:Ux,iife:Vx},[k.MOVE_DEPRECATED]:{source:Wx,iife:Yx},[k.ROTATE_DEPRECATED]:{source:p0,iife:m0},[k.SCALE]:{source:O0,iife:g0},[k.RESIZE_DEPRECATED]:{source:c0,iife:d0},[k.NEW]:{source:zx,iife:Xx},[k.TEXT_DATA]:{source:N0,iife:y0},[k.PATH_DRAW_DEPRECATED]:{source:t0,iife:n0},[k.PATH_TRAVEL_DEPRECATED]:{source:o0,iife:i0},[k.OPACITY]:{source:$x,iife:Zx},[k.CORNER_RADIUS]:{source:Fx,iife:wx},[k.ROTATION]:{source:_0,iife:T0},[k.PATH]:{source:qx,iife:Qx},[k.POSITION]:{source:a0,iife:l0},[k.SIZE]:{source:S0,iife:R0}}});var CB=ar(oN=>{"use strict";var U7=Symbol.for("react.fragment");oN.Fragment=U7;oN.jsxDEV=void 0});var iN=ar((txe,PB)=>{"use strict";PB.exports=CB()});var iO=v(W()),sO=v(tE());var $2=0;function de(e,t){let n=`atom${++$2}`,r={toString(){return(import.meta.env?import.meta.env.MODE:void 0)!=="production"&&this.debugLabel?n+":"+this.debugLabel:n}};return typeof e=="function"?r.read=e:(r.init=e,r.read=Z2,r.write=J2),t&&(r.write=t),r}function Z2(e){return e(this)}function J2(e,t,n){return t(this,typeof n=="function"?n(e(this)):n)}var AC=(e,t)=>e.unstable_is?e.unstable_is(t):t===e,LI=e=>"init"in e,CI=e=>!!e.write,uf=Symbol((import.meta.env?import.meta.env.MODE:void 0)!=="production"?"CONTINUE_PROMISE":""),DI="pending",q2="fulfilled",Q2="rejected",eW=e=>typeof e=="object"&&e!==null&&uf in e,nE=new WeakMap,tW=(e,t,n)=>{if(!nE.has(e)){let r,o=new Promise((i,s)=>{let a=e,l=c=>d=>{a===c&&(o.status=q2,o.value=d,i(d),n())},u=c=>d=>{a===c&&(o.status=Q2,o.reason=d,s(d),n())};e.then(l(e),u(e)),r=(c,d)=>{c&&(nE.set(c,o),a=c,c.then(l(c),u(c)),t(),t=d)}});o.status=DI,o[uf]=r,nE.set(e,o)}return nE.get(e)},nW=e=>typeof e?.then=="function",NC=e=>"v"in e||"e"in e,rE=e=>{if("e"in e)throw e.e;if((import.meta.env?import.meta.env.MODE:void 0)!=="production"&&!("v"in e))throw new Error("[Bug] atom state is not initialized");return e.v},oE=e=>{let t=e.v;return eW(t)&&t.status===DI?t:null},LC=(e,t,n)=>{n.p.has(e)||(n.p.add(e),t.then(()=>{n.p.delete(e)},()=>{n.p.delete(e)}))},yC=(e,t,n,r,o)=>{var i;if((import.meta.env?import.meta.env.MODE:void 0)!=="production"&&r===t)throw new Error("[Bug] atom cannot depend on itself");n.d.set(r,o.n);let s=oE(n);s&&LC(t,s,o),(i=o.m)==null||i.t.add(t),e&&rW(e,r,t)},gu=()=>[new Map,new Map,new Set],PI=(e,t,n)=>{e[0].has(t)||e[0].set(t,new Set),e[1].set(t,n)},rW=(e,t,n)=>{let r=e[0].get(t);r&&r.add(n)},oW=(e,t)=>
8590e[0].get(t),bC=(e,t)=>{e[2].add(t)},ya=e=>{for(;e[1].size||e[2].size;){e[0].clear();let t=new Set(e[1].values());e[1].clear();let n=new Set(e[2]);e[2].clear(),t.forEach(r=>{var o;return(o=r.m)==null?void 0:o.l.forEach(i=>i())}),n.forEach(r=>r())}},CC=e=>{let t;(import.meta.env?import.meta.env.MODE:void 0)!=="production"&&(t=new Set);let n=(T,h,m,E=()=>{},O=()=>{})=>{let g="v"in h,I=h.v,S=oE(h);if(nW(m))if(S)S!==m&&(S[uf](m,E),++h.n);else{let A=tW(m,E,O);if(A.status===DI)for(let R of h.d.keys())LC(T,A,e(R,h));h.v=A,delete h.e}else S&&S[uf](Promise.resolve(m),E),h.v=m,delete h.e;(!g||!Object.is(I,h.v))&&++h.n},r=(T,h,m,E)=>{if(!E?.(h)&&NC(m)&&(m.m||Array.from(m.d).every(([R,y])=>r(T,R,e(R,m),E).n===y)))return m;m.d.clear();let O=!0,g=R=>{if(AC(h,R)){let b=e(R,m);if(!NC(b))if(LI(R))n(R,b,R.init);else throw new Error("no atom init");return rE(b)}let y=r(T,R,e(R,m),E);if(O)yC(T,h,m,R,y);else{let b=gu();yC(b,h,m,R,y),u(b,h,m),ya(b)}return rE(y)},I,S,A={get signal(){return I||(I=new AbortController),I.signal},get setSelf(){return(import.meta.env?import.meta.env.MODE:void 0)!=="production"&&!CI(h)&&console.warn("setSelf function cannot be used with read-only atom"),!S&&CI(h)&&(S=(...R)=>{if((import.meta.env?import.meta.env.MODE:void 0)!=="production"&&O&&console.warn("setSelf function cannot be called in sync"),!O)return l(h,...R)}),S}};try{let R=h.read(g,A);return n(h,m,R,()=>I?.abort(),()=>{if(m.m){let y=gu();u(y,h,m),ya(y)}}),m}catch(R){return delete m.v,m.e=R,++m.n,m}finally{O=!1}},o=T=>rE(r(void 0,T,e(T))),i=(T,h,m)=>{var E,O;let g=new Map;for(let I of((E=m.m)==null?void 0:E.t)||[])g.set(I,e(I,m));for(let I of m.p)g.set(I,e(I,m));return(O=oW(T,h))==null||O.forEach(I=>{g.set(I,e(I,m))}),g},s=(T,h,m)=>{let E=[],O=new Set,g=(A,R)=>{if(!O.has(A)){O.add(A);for(let[y,b]of i(T,A,R))A!==y&&g(y,b);E.push([A,R,R.n])}};g(h,m);let I=new Set([h]),S=A=>O.has(A);for(let A=E.length-1;A>=0;--A){let[R,y,b]=E[A],L=!1;for(let D of y.d.keys())if(D!==R&&I.has(D)){L=!0;break}L&&(r(T,R,y,S),u(T,R,y),b!==y.n&&(PI(T,R,y),I.add(R))),O.delete(R)}},a=(T,h,m,...E)=>{let O=S=>rE(r(T,S,e(S,m))),g=(S,...A)=>{let R=e(S,m),y;if(AC(h,S)){if(!LI(S))throw new Error("atom not writable");let b="v"in R,L=R.v,D=A[0];n(S,R,D),u(T,S,R),(!b||!Object.is(L,R.v))&&(PI(T,S,R),s(T,S,R))}else y=a(T,S,R,...A);return ya(T),y};return h.write(O,g,...E)},l=(T,...h)=>{let m=gu(),E=a(m,T,e(T),...h);return ya(m),E},u=(T,h,m)=>{if(m.m&&!oE(m)){for(let E of m.d.keys())m.m.d.has(E)||(c(T,E,e(E,m)).t.add(h),m.m.d.add(E));for(let E of m.m.d||[])if(!m.d.has(E)){m.m.d.delete(E);let O=d(T,E,e(E,m));O?.t.delete(h)}}},c=(T,h,m)=>{if(!m.m){r(T,h,m);for(let E of m.d.keys())c(T,E,e(E,m)).t.add(h);if(m.m={l:new Set,d:new Set(m.d.keys()),t:new Set},(import.meta.env?import.meta.env.MODE:void 0)!=="production"&&t.add(h),CI(h)&&h.onMount){let E=m.m,{onMount:O}=h;bC(T,()=>{let g=O((...I)=>a(T,h,m,...I));g&&(E.u=g)})}}return m.m},d=(T,h,m)=>{if(m.m&&!m.m.l.size&&!Array.from(m.m.t).some(E=>{var O;return(O=e(E,m).m)==null?void 0:O.d.has(h)})){let E=m.m.u;E&&bC(T,E),delete m.m,(import.meta.env?import.meta.env.MODE:void 0)!=="production"&&t.delete(h);for(let g of m.d.keys()){let I=d(T,g,e(g,m));I?.t.delete(h)}let O=oE(m);O&&O[uf](void 0,()=>{});return}return m.m},_={get:o,set:l,sub:(T,h)=>{let m=gu(),E=e(T),O=c(m,T,E);ya(m);let g=O.l;return g.add(h),()=>{g.delete(h);let I=gu();d(I,T,E),ya(I)}},unstable_derive:T=>CC(...T(e))};return(import.meta.env?import.meta.env.MODE:void 0)!=="production"&&Object.assign(_,{dev4_get_internal_weak_map:()=>({get:h=>{let m=e(h);if(m.n!==0)return m}}),dev4_get_mounted_atoms:()=>t,dev4_restore_atoms:h=>{let m=gu();for(let[E,O]of h)if(LI(E)){let g=e(E),I="v"in g,S=g.v;n(E,g,O),u(m,E,g),(!I||!Object.is(S,g.v))&&(PI(m,E,g),s(m,E,g))}ya(m)}}),_},cf=()=>{let e=new WeakMap;return CC(n=>{let r=e.get(n);return r||(r={d:new Map,p:new Set,n:0},e.set(n,r)),r})},lf,PC=()=>(lf||(lf=cf(),(import.meta.env?import.meta.env.MODE:void 0)!=="production"&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=lf),globalThis.__JOTAI_DEFAULT_STORE__!==lf&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),lf);var Ut=v(W(),1);var DC=(0,Ut.createContext)(void 0),vC=e=>{let t=(0,Ut.useContext)(DC);return e?.store||t||PC()},xC=({children:e,store:t})=>{let n=(0,Ut.useRef)();return!t&&!n.current&&(n.current=cf()),(0,Ut.createElement)(DC.Provider,{value:t||n.current},e)},iW=e=>typeof e?.then=="function",sW=Ut.default.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)});function Re(e,t){let n=vC(t),[[r,o,i],s]=(0,Ut.useReducer)(u=>{let c=n.get(e);return Object.is(u[0],c)&&u[1]===n&&u[2]===e?u:[c,n,e]},void 0,()=>[n.get(e),n,e]),a=r;(o!==n||i!==e)&&(s(),a=n.get(e));let l=t?.delay;return(0,Ut.useEffect)(()=>{let u=n.sub(e,()=>{if(typeof l=="number"){setTimeout(s,l);return}s()});return s(),u},[n,e,l]),(0,Ut.useDebugValue)(a),iW(a)?sW(a):a}function MC(e,t){let n=vC(t);return(0,Ut.useCallback)((...o)=>{if((import.meta.env?import.meta.env.MODE:void 0)!=="production"&&!("write"in e))throw new Error("not writable atom");return n.set(e,...o)},[n,e])}var Ln=v(_e()),la=v(W());function wC(e,t,n){return e.renderHiddenRootNodes&&!n&&!t.visible}var rP=v(W()),oP=v(vI());function fo(e,t){return`node-${e.replace(/:/g,"_").replace(/;/g,"-")}${t?`_${t}`:""}`}function BC(e,t){return e in t}function UC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var V=class{static fromFigVector(t){return new V(t.x,t.y)}static toVectorD(t){return{x:t.x,y:t.y}}static fromVectorD(t){return new V(t.x,t.y)}clone(){return new V(this.x,this.y)}equals(t){return this.x===t.x&&this.y===t.y}toString(){return`(${this.x}, ${this.y})`}add(t){return new V(this.x+t.x,this.y+t.y)}static add(...t){return t.filter(o=>o!=null).reduce((o,i)=>(o.x+=i.x,o.y+=i.y,o),{x:0,y:0})}subtract(t){return new V(this.x-t.x,this.y-t.y)}static subtract(t,n){return{x:t.x-n.x,y:t.y-n.y}}plus(t){return new V(this.x+t.x,this.y+t.y)}incrementBy(t){this.x=this.x+t.x,this.y=this.y+t.y}minus(t){return new V(this.x-t.x,this.y-t.y)}component(t){return t===0?this.x:this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}static scale(t,n){return{x:t*n.x,y:t*n.y}}static abs(t){return{x:Math.abs(t.x),y:Math.abs(t.y)}}scale(t){return new V(this.x*t,this.y*t)}multiply(t){return new V(this.x*t.x,this.y*t.y)}divide(t){return new V(this.x/t.x,this.y/t.y)}dot(t){return V.dot(this,t)}toAngle(){return Math.atan2(this.y,this.x)}
8590static bound(t,n){return n?{x:Math.max(Math.min(t.x,n.max.x),n.min.x),y:Math.max(Math.min(t.y,n.max.y),n.min.y)}:t}static dot(t,n){return t.x*n.x+t.y*n.y}static interpolate(t,n,r){return{x:t.x+(n.x-t.x)*r,y:t.y+(n.y-t.y)*r}}static rounded(t){return{x:Math.round(t.x),y:Math.round(t.y)}}static size(t){return Math.sqrt(V.dot(t,t))}size(){return V.size(this)}unit(){let t=this.size();return this.scale(t===0?0:1/t)}distanceTo(t){return V.size(this.subtract(t))}static distance(t,n){return V.size(V.subtract(t,n))}clamp(t){return new V(Math.max(t.x,Math.min(t.x+t.width,this.x)),Math.max(t.y,Math.min(t.y+t.height,this.y)))}clampX(t){return new V(Math.max(t.x,Math.min(t.x+t.width,this.x)),this.y)}clampY(t){return new V(this.x,Math.max(t.y,Math.min(t.y+t.height,this.y)))}rotate90(){return new V(-this.y,this.x)}hasNaN(){return Number.isNaN(this.x)||Number.isNaN(this.y)}isInvalid(){return this.hasNaN()}multiplyBy(t){return new V(this.x*t,this.y*t)}divideBy(t){return new V(this.x/t,this.y/t)}transpose(){return new V(this.y,this.x)}rounded(){return new V(Math.round(this.x),Math.round(this.y))}static max(t,n){return new V(Math.max(t.x,n.x),Math.max(t.y,n.y))}static min(t,n){return new V(Math.min(t.x,n.x),Math.min(t.y,n.y))}static infinity(){return new V(Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY)}static invalid(){return new V(Number.NaN,Number.NaN)}constructor(t=0,n=0){UC(this,"x",void 0),UC(this,"y",void 0),this.x=t,this.y=n}};function VC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ke=class{static fromRectD(t){return new Ke(V.fromVectorD(t.origin),V.fromVectorD(t.size))}clone(){return new Ke(this.origin.clone(),this.size.clone())}equals(t){return this.origin.equals(t.origin)&&this.size.equals(t.size)}left(){return this.origin.x}top(){return this.origin.y}right(){return this.size.x===Number.POSITIVE_INFINITY?Number.POSITIVE_INFINITY:this.origin.x+this.width()}bottom(){return this.size.y===Number.POSITIVE_INFINITY?Number.POSITIVE_INFINITY:this.origin.y+this.height()}bottomRight(){return new V(this.right(),this.bottom())}bottomLeft(){return new V(this.left(),this.bottom())}topLeft(){return new V(this.left(),this.top())}topRight(){return new V(this.right(),this.top())}topCenter(){return new V(this.center().x,this.top())}bottomCenter(){return new V(this.center().x,this.bottom())}centerLeft(){return new V(this.left(),this.center().y)}centerRight(){return new V(this.right(),this.center().y)}center(){return new V(this.origin.x+this.size.x/2,this.origin.y+this.size.y/2)}width(){return this.size.x}height(){return this.size.y}transpose(){return new Ke(this.origin.transpose(),this.size.transpose())}offsetBy(t){return new Ke(this.origin.plus(t),this.size)}scaledBy(t){return new Ke(this.origin.multiplyBy(t),this.size.multiplyBy(t))}isInvalid(){return this.size.x<0||this.size.y<0||this.origin.hasNaN()||this.size.hasNaN()}isValid(){return!this.isInvalid()}isEmpty(){return this.isInvalid()?!0:this.size.x<=0||this.size.y<=0}isInfinite(){return this.origin.equals(V.infinity().multiplyBy(-1))&&this.size.equals(V.infinity())}unionWith(t){if(this.isInvalid())return t;if(t.isInvalid())return this;let n=V.min(this.origin,t.origin),r=V.max(this.bottomRight(),t.bottomRight());return n.equals(r)?this:new Ke(n,r.minus(n))}expandToInclude(t){if(this.isInvalid())return new Ke(t.clone(),new V(0,0));let n=V.min(this.origin,t),r=V.max(this.bottomRight(),t);return new Ke(n,r.minus(n))}containsIncludingBoundary(t){return!this.isEmpty()&&!t.isInvalid()&&this.left()<=t.left()&&this.right()>=t.right()&&this.top()<=t.top()&&this.bottom()>=t.bottom()}containsPointIncludingBoundary(t){return!this.isEmpty()&&this.left()<=t.x&&t.x<=this.right()&&this.top()<=t.y&&t.y<=this.bottom()}intersectWith(t){if(this.isInvalid()||t.isInvalid())return Ke.invalidRect();let n=V.max(this.origin,t.origin),r=V.min(this.bottomRight(),t.bottomRight()),o=new Ke(n,r.minus(n));if(o.origin.hasNaN()||o.size.hasNaN())throw new Error("Rect.intersectWith produced a result with NaN");return o.isInvalid()&&(o=Ke.invalidRect()),o}hasIntersectionWith(t){return!this.intersectWith(t).isEmpty()}expand(t){return this.isInvalid()?Ke.invalidRect():typeof t=="number"?Ke.fromOriginAndSize(this.origin.x-t,this.origin.y-t,this.size.x+2*t,this.size.y+2*t):new Ke(this.origin.minus(t),this.size.plus(t.multiplyBy(2)))}
8590static invalidRect(){return new Ke(new V(Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY),new V(Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY))}static infinite(){return new Ke(V.infinity().multiplyBy(-1),V.infinity())}static fromOriginAndSize(t,n,r,o){return new Ke(new V(t,n),new V(r,o))}static fromCenterSize(t,n){let r=n.divideBy(2);return new Ke(t.minus(r),n)}static fromFigRect(t){return new Ke(new V(t.x,t.y),new V(t.w,t.h))}static computeBounds(t,n){let r=V.min(t,n),o=V.max(t,n);return new Ke(r,o.minus(r))}static computeBoundsFromPointArray(t){let n=V.infinity(),r=V.infinity().multiplyBy(-1);for(let o of t)n=V.min(n,o),r=V.max(r,o);return new Ke(n,r.minus(n))}constructor(t=new V,n=new V){VC(this,"origin",void 0),VC(this,"size",void 0),this.origin=t,this.size=n}};function Es(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ge=class{static identity(){return this.fromNumbers(1,0,0,0,1,0)}static fromNumbers(t,n,r,o,i,s){let a=new Ge;return a.m00=t,a.m01=n,a.m02=r,a.m10=o,a.m11=i,a.m12=s,a}static copy(t){let n=new Ge;return n.m00=t.m00,n.m01=t.m01,n.m02=t.m02,n.m10=t.m10,n.m11=t.m11,n.m12=t.m12,n}static fromArray(t){let n=new Ge;return n.m00=t[0][0],n.m01=t[0][1],n.m02=t[0][2],n.m10=t[1][0],n.m11=t[1][1],n.m12=t[1][2],n}static fromVectors(t,n,r){let o=new Ge;return o.m00=n.x,o.m01=r.x,o.m02=t.x,o.m10=n.y,o.m11=r.y,o.m12=t.y,o}static fromFigMatrix(t){let n=new Ge;return n.m00=t.m00,n.m01=t.m01,n.m02=t.m02,n.m10=t.m10,n.m11=t.m11,n.m12=t.m12,n}toFigMatrix(){return{m00:this.m00,m01:this.m01,m02:this.m02,m10:this.m10,m11:this.m11,m12:this.m12}}toMatrix(){return[[this.m00,this.m01,this.m02],[this.m10,this.m11,this.m12]]}axisX(){return new V(this.m00,this.m10)}axisY(){return new V(this.m01,this.m11)}offset(){return new V(this.m02,this.m12)}toRadians(){return Math.atan2(this.m10,this.m00)}toDegrees(){return Math.atan2(this.m10,this.m00)*180/Math.PI}toScale(){let{m00:t,m01:n,m10:r,m11:o}=this;return new V(Math.sqrt(t*t+r*r),Math.sqrt(n*n+o*o))}hasNaN(){return this.m00!==this.m00&&this.m01!==this.m01&&this.m02!==this.m02&&this.m10!==this.m10&&this.m11!==this.m11&&this.m12!==this.m12}translate(t,n){this.m02=t*this.m00+n*this.m01+this.m02,this.m12=t*this.m10+n*this.m11+this.m12}rotate(t){if(t===0)return;let n=Math.sin(t),r=Math.cos(t),o=r*this.m00+n*this.m01,i=r*this.m01-n*this.m00,s=r*this.m10+n*this.m11,a=r*this.m11-n*this.m10;this.m00=o,this.m01=i,this.m10=s,this.m11=a}scale(t,n){this.m00*=t,this.m01*=n,this.m10*=t,this.m11*=n}multiply(t){let n=this.m00*t.m00+this.m01*t.m10,r=this.m00*t.m01+this.m01*t.m11,o=this.m00*t.m02+this.m01*t.m12+this.m02,i=this.m10*t.m00+this.m11*t.m10,s=this.m10*t.m01+this.m11*t.m11,a=this.m10*t.m02+this.m11*t.m12+this.m12;this.m00=n,this.m01=r,this.m02=o,this.m10=i,this.m11=s,this.m12=a}determinant(){return this.m00*this.m11-this.m01*this.m10}invert(){let t=1/this.determinant();if(!isFinite(t))return!1;let n=Ge.fromNumbers(this.m11*t,-this.m01*t,(this.m01*this.m12-this.m11*this.m02)*t,-this.m10*t,this.m00*t,(this.m10*this.m02-this.m00*this.m12)*t);return n.hasNaN()?!1:(this.m00=n.m00,this.m01=n.m01,this.m02=n.m02,this.m10=n.m10,this.m11=n.m11,this.m12=n.m12,!0)}transformRect(t){if(t.isInvalid())return t;if(this.axisX().y===0&&this.axisY().x===0)return Ke.computeBounds(this.transformPoint(t.topLeft()),this.transformPoint(t.bottomRight()));let n=[this.transformPoint(t.topLeft()),this.transformPoint(t.topRight()),this.transformPoint(t.bottomLeft()),this.transformPoint(t.bottomRight())];return Ke.computeBoundsFromPointArray(n)}transformPoint(t){return new V(this.m00*t.x+this.m01*t.y+this.m02,this.m10*t.x+this.m11*t.y+this.m12)}transformDirection(t){return new V(this.m00*t.x+this.m01*t.y,this.m10*t.x+this.m11*t.y)}inverseTransformPoint(t){let n=1/this.determinant();if(!isFinite(n))return V.invalid();let r=new V((this.m11*t.x-this.m01*t.y+this.m01*this.m12-this.m11*this.m02)*n,(this.m00*t.y-this.m10*t.x+this.m10*this.m02-this.m00*this.m12)*n);return r.hasNaN()?V.invalid():r}toTrss(){let t=this.m00*this.m00+this.m10*this.m10,n=this.m01*this.m01+this.m11*this.m11;if(t===0||n===0)return{translationX:this.m02,translationY:this.m12,rotation:0,scaleX:this.m00,scaleY:this.m11,shear:0};let r=this.m00*this.m11-this.m01*this.m10,o=Math.atan2(this.m10,this.m00),i,s,a;return Math.abs(Math.cos(o))>Math.abs(Math.sin(o))?(i=this.m00/Math.cos(o),s=r/i,a=(this.m01+s*Math.sin(o))/this.m00):(i=this.m10/Math.sin(o),s=r/i,a=(this.m11-s*Math.cos(o))/this.m10),{translationX:this.m02,translationY:this.m12,rotation:o,scaleX:i,scaleY:s,shear:a}}constructor(){Es(this,"m00",void 0),Es(this,"m01",void 0),Es(this,"m02",void 0),Es(this,"m10",void 0),Es(this,"m11",void 0),Es(this,"m12",void 0),this.m00=this.m01=this.m02=this.m10=this.m11=this.m12=0}};Es(Ge,"kEpsilon",1e-6);Es(Ge,"kEpsilonSqr",Ge.kEpsilon*Ge.kEpsilon);var ba=function(e){return e[e.SVG=0]="SVG",e[e.CSS=1]="CSS",e}(ba||{});var Vt={colorProfile:0,colorspaceConversion:0};function ve(e){return String(+e.toPrecision(5))}function df(e){return Ge.fromNumbers(e[0][0],e[0][1],e[0][2],e[1][0],e[1][1],e[1][2])}function HC(e){let t=e.toFigMatrix();return[[t.m00,t.m01,t.m02],[t.m10,t.m11,t.m12]]}function _s(e){let t=e.toFigMatrix();return`matrix(${ve(t.m00)} ${ve(t.m10)} ${ve(t.m01)} ${ve(t.m11)} ${ve(t.m02)} ${ve(t.m12)})`}function x(e,t=3){return e===void 0?e:parseFloat(e.toFixed(t))}function Tt(e,t=10**-3){return Math.abs(e)<t?0:e}function YC(e,t,n){return e+(t-e)*n}function WC(e){let{a:t,...n}=e;return{alpha:t,color:n}}function GI(e,t,n){return Object.keys(e).reduce((r,o)=>(r[o]=YC(e[o],t[o],n),r),{})}function pW(e,t){return Math.sqrt(((e.r-t.r)**2+(e.b-t.b)**2+(e.g-t.g)*
8590*2)/3)}function ff(e,t){return Object.keys(e).reduce((n,r)=>(n[r]=e[r]*t,n),{})}function xI(e){return e**2.2}function MI(e){return e**(1/2.2)}function aE(e){return{r:xI(e.r),g:xI(e.g),b:xI(e.b),a:e.a}}function KC(e){return{r:MI(e.r),g:MI(e.g),b:MI(e.b),a:e.a}}function lE(e,t,n){let r=aE(e),o=aE(t),{alpha:i,color:s}=WC(r),{alpha:a,color:l}=WC(o),u=ff(s,i),c=ff(l,a),d=YC(i,a,n),f=ff(GI(u,c,n),1/(d||1)),p={r:f.r,g:f.g,b:f.b,a:d};return KC(p)}function Su(e,t,n){let r=aE(e),o=aE(t),i=GI(r,o,n);return KC(i)}function pi(e,t,n){return GI(e,t,n)}function kI(e){let{stop1:t,stop2:n,...r}=e,o=r.targetInterpolation(t.color,n.color,.5),{a:i,...s}=o,{a,...l}=r.actualInterpolation(t.color,n.color,.5);if(r.recursionLimit===0||pW(ff(s,i),ff(l,a))<=r.epsilon)return[t,n];let u=(t.position+n.position)/2,c={color:o,position:u},d=kI({...r,stop1:t,stop2:c,recursionLimit:r.recursionLimit-1}),f=kI({...r,stop1:c,stop2:n,recursionLimit:r.recursionLimit-1});return[...d,...f.slice(1)]}function mi(e){let{stops:t,epsilon:n,recursionLimit:r,targetInterpolation:o,actualInterpolation:i}=e,s=[];for(let a=0;a<t.length-1;a++){let l=t[a],u=t[a+1],c=Math.abs(l.position-u.position)<1e-8?[l,u]:kI({stop1:l,stop2:u,epsilon:n,recursionLimit:r,targetInterpolation:o,actualInterpolation:i});a!==0&&c.shift(),s.push(...c)}return s}var te=class extends Error{severity="high";errorDetail;constructor(t,n){super(t),Object.setPrototypeOf(this,te.prototype),n&&n instanceof Error&&(this.cause=n)}},ht=class extends te{constructor(t,n){super(t,n),this.severity="low"}};var FI="snapshot",wI="sandbox";var mW=6,Y=class{contents;constructor(t){this.contents=t}static px(t){return new Y({type:"value",unit:"px",value:t})}static percent(t){return new Y({type:"value",unit:"%",value:t})}static number(t){return new Y({type:"value",unit:"",value:t})}static cqw(t){return new Y({type:"value",unit:"cqw",value:t})}static cqh(t){return new Y({type:"value",unit:"cqh",value:t})}static cssLength(t){let n=t.match(/^([0-9.]+)(cqw|cqh|px|%)$/);if(!n||n[1]===void 0)throw new te(`Unsupported CSS length: ${t}`);return new Y({type:"value",unit:n[2],value:parseFloat(n[1])})}static hypot(t,n){return new Y({type:"fn",fn:"hypot",args:[t,n]})}static cos(t){return new Y({type:"fn",fn:"cos",args:[t]})}static atan2(t,n){return new Y({type:"fn",fn:"atan2",args:[t,n]})}static var(t,n){return new Y({type:"variable",name:t,fallback:n})}add(t){return this.contents.type==="value"&&t.contents.type==="value"&&t.contents.value<0?this.subtract(new Y({type:"value",unit:t.contents.unit,value:-t.contents.value})):new Y({type:"operation",operation:"+",left:this,right:t})}subtract(t){return this.contents.type==="value"&&t.contents.type==="value"&&t.contents.value<0?this.add(new Y({type:"value",unit:t.contents.unit,value:-t.contents.value})):new Y({type:"operation",operation:"-",left:this,right:t})}multiply(t){return typeof t=="number"?this.multiply(Y.number(t)):new Y({type:"operation",operation:"*",left:this,right:t})}divide(t){return new Y({type:"operation",operation:"/",left:this,right:t})}static applyConstantOperation(t,n,r){switch(t){case"+":return n+r;case"-":return n-r;case"*":return n*r;case"/":return n/r}}toStringInner(t,{topLevel:n}={}){switch(this.contents.type){case"value":return`${parseFloat(this.contents.value.toPrecision(mW))}${this.contents.unit}`;case"variable":return`var(${[this.contents.name,this.contents.fallback].filter(r=>r!==void 0).join(",")})`;case"fn":{let r=t.forTailwind?",":", ";return`${this.contents.fn}(${this.contents.args.map(o=>o.toStringInner(t)).join(r)})`}case"operation":{let{left:r,right:o,operation:i}=this.contents,s=!1,a=!1;(i==="*"||i==="/")&&(s=r.contents.type==="operation"&&r.contents.operation!=="*"&&r.contents.operation!=="/",a=o.contents.type==="operation"&&(i==="/"?!0:o.contents.operation!=="*"&&o.contents.operation!=="/"));let l=t.forTailwind?i:` ${i} `,u=`${s?`(${r.toStringInner(t)})`:r.toStringInner(t)}${l}${a?`(${o.toStringInner(t)})`:o.toStringInner(t)}`;return n?`calc(${u})`:u}}}simplify(){if(this.contents.type==="value"||this.contents.type==="variable")return this;if(this.contents.type==="fn"){let{fn:o,args:i}=this.contents,s=i.map(l=>l.simplify());return s.some((l,u)=>l!==i[u])?new Y({type:"fn",fn:o,args:s}):this}let t=this.contents.left.simplify(),n=this.contents.right.simplify(),r=this.contents.operation;if(t.contents.type==="value"&&n.contents.type==="value"){let o=t.contents.unit,i=n.
8590contents.unit;if(o===i||!o||!i){let s=o||i,a=Y.applyConstantOperation(r,t.contents.value,n.contents.value);return new Y({type:"value",unit:s,value:a})}}return(r==="+"||r==="-")&&n.contents.type==="value"&&n.contents.value===0?t:r==="+"&&t.contents.type==="value"&&t.contents.value===0?n:this.contents.left!==t||this.contents.right!==n?new Y({type:"operation",operation:this.contents.operation,left:t,right:n}):this}toStyleValue(t){let n=this.simplify();return n.contents.type==="value"&&n.contents.unit==="px"?n.contents.value:n.toStringInner(t,{topLevel:!0})}toString(t){return this.simplify().toStringInner(t,{topLevel:!0})}};function pf(e,t){let n;if(e){let r=e.match(/^var\((--[^),\s]+)\s*(?:,[^)]*)?\)$/);r?n=r[1]:n=`--${e.replaceAll(" ","")}`}else t&&(n=`--${_W(t)}`);return n}function le(e,t,n){let r=pf(e,t);return r?`var(${r},${n})`:null}function uE(e,t,n){let r=pf(e,t);return r?Y.var(r,n):null}function EW(e){return e.split(" ").map(t=>t.toLowerCase()).join("-")}function BI(e,t=n=>"\\"+n){return e.replace(/./g,n=>{let r=n.charCodeAt(0);return/[a-zA-Z0-9_-]/.test(n)||r>=160?n:t(n)})}function _W(e){return e=EW(e),e=BI(e),e}var cE={"#000000":"black","#ffffff":"white","#ff0000":"red","#800080":"purple","#008000":"green","#ffff00":"yellow","#0000ff":"blue","#ffa500":"orange","#a52a2a":"brown","#ffc0cb":"pink"};function TW(e){return e!=null}function UI(e){return Math.round(e*255)}function hW(e){return+e.toFixed(2)}function OW(e){return`${La(e.r)}${La(e.g)}${La(e.b)}`}function gW(e,t=1){let{r:n,g:r,b:o,a:i=1}=e;return`${La(n)}${La(r)}${La(o)}${La(i*t)}`}function HI(e,t=1){let{r:n,g:r,b:o,a:i=1}=e;return`rgba(${UI(n)},${UI(r)},${UI(o)},${hW(i*t)})`}function zC(e){let t=e.a;return TW(t)&&t!==1}function La(e){return("00"+Math.round(e*255).toString(16)).slice(-2)}function WI(e,t,n=1){if(!zC(e)&&n===1){let{optimizeForTailwindConversion:r}=t,o=OW(e),i=r&&cE[`#${o}`];return i||(o[0]===o[1]&&o[2]===o[3]&&o[4]===o[5]?`#${o[0]}${o[2]}${o[4]}`:`#${o}`)}else{let r=gW(e,n);return r[0]===r[1]&&r[2]===r[3]&&r[4]===r[5]&&r[6]===r[7]?`#${r[0]}${r[2]}${r[4]}${r[6]}`:`#${r}`}}var Dt=class VI{color;renderOptions;opacity;colorManagement;variableName;codeSyntax;constructor(t,n,r=1,o=Vt,i,s){if(this.color=t,this.renderOptions=n,this.opacity=r,this.colorManagement=o,this.variableName=i,this.codeSyntax=s,t.r>1||t.g>1||t.b>1)throw new te(`Expected normalised color values (between 0 and 1) but got (${t.r}, ${t.g}, ${t.b})`)}static fromRGBA(t,n,r,o){return new VI(t,n,1,Vt,r,o)}get rawColor(){return new VI(this.color,this.renderOptions,this.opacity,this.colorManagement,this.variableName,this.codeSyntax)}get value(){let{shouldOutputVariables:t}=this.renderOptions,n=zC(this.color)||this.opacity!==1?HI(this.color,this.opacity):WI(this.color,this.renderOptions);if(t){let r=le(this.codeSyntax,this.variableName,n);if(r)return r}return n}equals(t){return this.value===t.value}};function Ts(e){return`url("data:image/svg+xml;utf8,${e.replace(/#/g,"%23").replace(/"/g,"'").replace(/\n\s*/g," ").replace(/'[^']*'/g,n=>`'${n.slice(1,-1).trim()}'`).replace(/\(\s*/g,"(").replace(/\s*\)/g,")").replace(/\s*<\s*/g,"<").replace(/\s*\/?>\s*/g,n=>n.includes("/")?"/>":">")}")`}function Ru(e){return e.map(t=>{let{color:{r:n,g:r,b:o,a:i},position:s}=t,a=Math.round(n*255),l=Math.round(r*255),u=Math.round(o*255),c=ve(i),d=ve(s);return` 8591 <stop stop-color="rgba(${a},${l},${u},${c})" offset="${d}" /> 8592 `}).join("")}function XC(e,t){let{shouldOutputVariables:n,codeSyntaxLanguage:r}=t,o=e.color.a===1?WI(e.color,t):HI(e.color);if(n){let i=le(r&&e.boundVariables?.color?.resolvedCodeSyntax?.[r],e.boundVariables?.color?.resolvedName,o);if(i)return i}return o}function IW(e,t){let{shouldOutputVariables:n,codeSyntaxLanguage:r}=t,{color:{r:o,g:i,b:s,a}}=e,l=Math.round(o*255),u=Math.round(i*255),c=Math.round(s*255),d=x(a),f=ve(e.position*100),p=d===1?`rgb(${l}, ${u}, ${c})`:`rgba(${l}, ${u}, ${c}, ${d})`,_=`${f}%`;if(n){let T=le(r&&e.boundVariables?.color?.resolvedCodeSyntax?.[r],e.boundVariables?.color?.resolvedName,p);if(T)return`${T} ${_}`}return`${p} ${_}`}function dE(e,t){return e.map(n=>IW(n,t)).join(", ")}var Ht=10;function Ei(e){let{size:t,gradientTransform:n}=e,r=Ge.identity();r.scale(Ht,Ht),r.scale(2,2),r.translate(-.5,-.5);let o=Ge.copy(r);o.invert();let i=Ge.fromArray(n);i.invert();let s=Ge.copy(i);s.multiply(o);let a=Ge.copy(s);a.invert();let l=Ge.identity();return l.scale(t.width,t.height),l.multiply(s),{uvToUnitGradient:a,unitGradientToShape:l}}function fE(e){return[new V(0,0),new V(Ht,0),new V(Ht,Ht),new V(0,Ht)].map(r=>e.transformPoint(r)).reduce((r,o)=>(r.x=Math.max(r.x,Math.abs(o.x)),r.y=Math.max(r.y,Math.abs(o.y)),r),{x:-1/0,y:-1/0})}
8592function jC(e,t){let n=t[1].minus(t[0]),r=e.minus(t[0]);return n.multiplyBy(r.dot(n)/n.dot(n)).plus(t[0])}var _i=class $C{paint;size;serializationFormat;renderOptions;static fromColor({color:t,opacity:n},r){let o={r:t.r,g:t.g,b:t.b,a:n*("a"in t?t.a:1)};return new $C({gradientTransform:Ge.identity().toMatrix(),gradientStops:[{color:o,position:0},{color:o,position:1}]},Vt,{width:1,height:1},ba.CSS,r)}constructor(t,n,r,o,i){this.paint=t,this.size=r,this.serializationFormat=o,this.renderOptions=i}get styleData(){let{preferCssGradients:t}=this.renderOptions,{unitGradientToShape:n}=Ei({size:this.size,gradientTransform:this.paint.gradientTransform}),r={origin:n.transformPoint(new V(-Ht,0)),primary:n.transformPoint(new V(Ht,0)),secondary:n.transformPoint(new V(-Ht,Ht))},o=r.secondary.minus(r.origin),i=new V(-o.y,o.x);i.dot(r.primary.minus(r.origin))<0&&(i=i.multiplyBy(-1));let s={start:new V(0,0),end:i};if(s.end.x<0){let d=new V(this.size.width,0);s.start=s.start.plus(d),s.end=s.end.plus(d)}if(s.end.y<0){let d=new V(0,this.size.height);s.start=s.start.plus(d),s.end=s.end.plus(d)}let a=new V(i.x<0?0:this.size.width,i.y<0?0:this.size.height);s.end=jC(a,[s.start,s.end]);let l=s.end.minus(s.start).toAngle()*(180/Math.PI),u=this.paint.gradientStops.map(d=>{let f=r.origin.add(r.primary.minus(r.origin).multiplyBy(d.position)),_=jC(f,[s.start,s.end]).minus(s.start).size()/s.end.minus(s.start).size(),T={...d.color,a:d.color.a*(this.paint.opacity??1)};return{...d,color:T,position:Tt(_)}}),c=u;return t||(c=mi({stops:u.map(d=>({...d})),epsilon:.01,recursionLimit:5,targetInterpolation:pi,actualInterpolation:lE}).map(d=>({...d,position:Tt(d.position)}))),{angle:l+90,colorStops:c}}get valueAsCss(){let{angle:t,colorStops:n}=this.styleData;return`linear-gradient(${t}deg, ${dE(n,this.renderOptions)})`}get valueAsSvg(){let{unitGradientToShape:t}=Ei({size:this.size,gradientTransform:this.paint.gradientTransform}),n=mi({stops:this.paint.gradientStops.map(o=>({...o})),epsilon:.01,recursionLimit:5,targetInterpolation:pi,actualInterpolation:Su}).map(o=>({...o,position:Tt(o.position)})),r=` 8593 <svg viewBox='0 0 ${ve(this.size.width)} ${ve(this.size.height)}' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'> 8594 <rect x='0' y='0' height='100%' width='100%' fill='url(#grad)' opacity='${this.paint.opacity??1}' /> 8595 <defs> 8596 <linearGradient id='grad' gradientUnits='userSpaceOnUse' x1='${-Ht}' x2='${Ht}' y1='0' y2='0' gradientTransform='${_s(t)}'> 8597 ${Ru(n)} 8598 </linearGradient> 8599 </defs> 8600 </svg> 8601 `;return Ts(r)}get value(){return this.serializationFormat===ba.SVG?this.valueAsSvg:this.valueAsCss}equals(t){return this.value===t.value}};function xe(e,t){throw new te(t??`Uncaught type ${JSON.stringify(e)}`)}function Ae(e,t){if(!e)throw new te(`Assertion failure${t?`: ${t}`:""}`)}var Q=class{functions;constructor(t){this.functions=t}static translateX(t){return new Q([{type:"translate",axis:"x",value:t}])}static translateY(t){return new Q([{type:"translate",axis:"y",value:t}])}static rotate(t){return new Q([{type:"rotate",value:t}])}static skewX(t){return new Q([{type:"skew",axis:"x",value:t}])}static skewY(t){return new Q([{type:"skew",axis:"y",value:t}])}static scaleX(t){return new Q([{type:"scale",axis:"x",value:t}])}static scaleY(t){return new Q([{type:"scale",axis:"y",value:t}])}static combineWithExplicitOrder(...t){return new Q(t.filter(n=>n!==void 0).flatMap(n=>n.functions))}static combineWithDefaultOrder(...t){let n=t.filter(r=>r!==void 0).flatMap(r=>r.functions);return n.sort((r,o)=>KI.indexOf(r.type)-KI.indexOf(o.type)),new Q(n)}
8601toTailwindClasses(){return SW(this.functions)?this.functions.flatMap(t=>AW(t)):RW(this.functions)}get value(){return this.functions.map(t=>ZC(t,!1)).join(" ")}},KI=["translate","rotate","skew","scale"];function SW(e){let t=-1;for(let n of e){if(n.value instanceof Y)return!1;let r=KI.indexOf(n.type);if(r<t)return!1;t=r}return!0}function RW(e){return[`[transform:${e.map(n=>ZC(n,!0)).join("_")}]`]}function AW(e){switch(Ae(!(e.value instanceof Y),"Calc values should use arbitrary transform syntax"),e.type){case"translate":return[yW(`${e.type}-${e.axis}`,e.value)];case"rotate":return Number.isInteger(e.value)?[YI("rotate",e.value)]:[`rotate-[${e.value}deg]`];case"skew":{let t=`skew-${e.axis}`;return Number.isInteger(e.value)?[YI(t,e.value)]:[`${t}-[${e.value}deg]`]}case"scale":{let t=e.value*100,n=`scale-${e.axis}`;return Number.isInteger(t)?[YI(n,t)]:[`${n}-[${t}%]`]}default:xe(e)}}function NW(e,t){if(e.value instanceof Y)return e.value.toString({forTailwind:t});switch(e.type){case"translate":return String(e.value);case"rotate":case"skew":return`${e.value}deg`;case"scale":return String(e.value);default:xe(e)}}function ZC(e,t){let n=NW(e,t);switch(e.type){case"translate":return`translate${e.axis.toUpperCase()}(${n})`;case"rotate":return`rotate(${n})`;case"skew":return`skew${e.axis.toUpperCase()}(${n})`;case"scale":return`scale${e.axis.toUpperCase()}(${n})`;default:xe(e)}}var yW=(e,t)=>{let r={"50%":"1/2","100%":"full","0%":"0"}[t];if(r)return`${e}-${r}`;let i={"-50%":"1/2","-100%":"full"}[t];return i?`-${e}-${i}`:`${e}-[${t}]`},YI=(e,t)=>t<0?`-${e}-${-t}`:`${e}-${t}`;function mf(e){switch(e.units){case"PIXELS":return`${x(e.value)}px`;case"PERCENT":return`${x(e.value)}%`}}function JC(e){return`${mf(e.x)} ${mf(e.y)}`}function zI(e){return e.x.units==="PERCENT"&&e.x.value===50&&e.y.units==="PERCENT"&&e.y.value===50}function bW(e){return`matrix3d(${[e[0],e[4],e[8],e[12],e[1],e[5],e[9],e[13],e[2],e[6],e[10],e[14],e[3],e[7],e[11],e[15]].map(n=>x(n)).join(",")})`}function LW(e){switch(e.type){case"PERSPECTIVE":return e.perspective>0?`perspective(${x(e.perspective)}px)`:"";case"TRANSLATE_Z":return`translateZ(${x(e.translateZ)}px)`;case"ROTATE_X":return`rotateX(${x(e.angle)}deg)`;case"ROTATE_Y":return`rotateY(${x(e.angle)}deg)`;case"ROTATE_Z":return`rotateZ(${x(e.angle)}deg)`;case"MATRIX_3D":return bW(e.matrix3d);default:xe(e)}}function qC(e){if(e.type==="FIXED_ORDER"){let t=[],n=x(e.perspective),r=x(e.translateZ),o=x(e.rotateX),i=x(e.rotateY),s=x(e.rotateZ);return n>0&&t.push(`perspective(${n}px)`),r!==0&&t.push(`translateZ(${r}px)`),o!==0&&t.push(`rotateX(${o}deg)`),i!==0&&t.push(`rotateY(${i}deg)`),s!==0&&t.push(`rotateZ(${s}deg)`),t.join(" ")}return e.transformFunctions.map(LW).filter(t=>t.length>0).join(" ")}var CW={white:"white",black:"black"};function Au(e,t,n){let r=CW[t];if(r)return`${e}-${r}`;let o=n&&t.startsWith("var(")?"color:":"";return`${e}-[${o}${t}]`}var PW=e=>({0:"t",90:"r",180:"b",270:"l"})[x(e,2)],eP={0:"0","0%":"0","25%":"1/4","50%":"1/2","75%":"3/4","100%":"full",none:"none"};function DW(e,t){if(t===1&&!(e in{tracking:!0,rounded:!0,"rounded-tl":!0,"rounded-tr":!0,"rounded-br":!0,"rounded-bl":!0}))return"px"}function vW(e,t){let n={fontFamily:"family-name",fontSize:"length",backgroundPosition:"position"}[e];return n&&typeof t=="string"&&t.startsWith("var(")?n:void 0}var ze=(e,t,n)=>{let r=eP[t]||DW(e,t);if(r)return`${e}-${r}`;let o=typeof t=="number"?`${t}px`:t;return`${e}-[${n?`${n}:`:""}${o}]`},tP={minHeight:"min-h",minWidth:"min-w",maxHeight:"max-h",maxWidth:"max-w",gap:"gap",rowGap:"gap-y",columnGap:"gap-x",marginInlineStart:"ms",boxShadow:"shadow",textShadow:"text-shadow",letterSpacing:"tracking",maskPosition:"mask-position",maskSize:"mask-size",fontFamily:"font",fontSize:"text",objectPosition:"object",backgroundPosition:"bg",flex:"flex",gridTemplateColumns:"grid-cols",gridTemplateRows:"grid-rows",textIndent:"indent"};function Ef(e,t){let n=tP[e],r=typeof t=="string"?t.replaceAll(" ","_"):t,o=vW(e,t);return ze(n,r,o)}var xW={textDecorationStyle:"decoration",objectFit:"object",flexShrink:"shrink",borderStyle:"border",pointerEvents:"pointer-events",textAlign:"text",textOverflow:"text",cursor:"cursor",mixBlendMode:"mix-blend",whiteSpace:"whitespace",textWrap:"text"};function QC(e,t){return`${xW[e]}-${t}`}var MW={textBoxTrim:"text-box-trim",textBoxEdge:"text-box-edge",textUnderlinePosition:"text-underline-position",wordBreak:"word-break"};function kW(e,t){let n=MW[e],r=typeof t=="string"?t.replaceAll(" ","_"):t;return`[${n}:${r}]`}function GW(e){let{height:t,width:n}=e;return t!==void 0&&t===n?[ze("size",t)]:[t!==void 0?ze("h",t):null,n!==void 0?ze("w",n):null].filter(r=>r!=null)}function FW(e){let t={prefix:"m",base:e.margin,top:e.marginTop,right:e.marginRight instanceof Y?e.marginRight.toStyleValue({forTailwind:!0}):e.marginRight,bottom:e.marginBottom instanceof Y?e.marginBottom.toStyleValue({forTailwind:!0}):e.marginBottom,left:e.marginLeft},n={prefix:"p",base:e.padding,top:e.paddingTop,right:e.paddingRight,bottom:e.paddingBottom,left:e.paddingLeft},r=[];
8601return[t,n].forEach(o=>{let{prefix:i,base:s,top:a,right:l,bottom:u,left:c}=o;if(s!==void 0){r.push(ze(i,s));return}if(a!==void 0&&a===l&&l===u&&u===c){r.push(ze(i,a));return}a!==void 0&&a===u?r.push(ze(i+"y",a)):(a!==void 0&&r.push(ze(i+"t",a)),u!==void 0&&r.push(ze(i+"b",u))),c!==void 0&&c===l?r.push(ze(i+"x",c)):(c!==void 0&&r.push(ze(i+"l",c)),l!==void 0&&r.push(ze(i+"r",l)))}),r}function wW(e){let{top:t,left:n,bottom:r,right:o,inset:i}=e;if(i!=null&&t==null&&r==null&&o==null&&n==null)return[ze("inset",i)];if(t!==void 0&&t===n&&t===r&&t===o)return[ze("inset",t)];let s=[t,n,r,o].some(a=>typeof a=="number"||a==="0"?!1:a&&eP[a]!==void 0);return t==null||r==null||o==null||n==null||s?[t!==void 0?ze("top",t):null,n!==void 0?ze("left",n):null,r!==void 0?ze("bottom",r):null,o!==void 0?ze("right",o):null].filter(a=>a!=null):t===r&&n===o?[`inset-[${[t,n].map(l=>l&&typeof l=="number"?`${l}px`:l).join("_")}]`]:[`inset-[${[t,o,r,n].map(l=>l&&typeof l=="number"?`${l}px`:l).join("_")}]`]}function BW(e){return typeof e=="string"&&["cover","auto","contain"].includes(e)?`bg-${e}`:`bg-size-[${typeof e=="string"?e.replaceAll(" ","_"):e}]`}function UW(e,t){if(e instanceof _i){let{angle:r,colorStops:o}=e.styleData,i=PW(r);if(i!==void 0&&o.length<=3){let a=[];return a.push(`bg-gradient-to-${i}`),o.map((l,u)=>{let c;u===0?c="from":u===o.length-1?c="to":c="via",a.push(Au(c,XC(l,t)));let d=x(l.position*100,3);d!==0&&d!==100&&a.push(ze(c,`${ve(d)}%`))}),{classes:a}}}return{backgroundImage:typeof e=="string"?e:e.value}}function VW(e,t){let n=tP[e];switch(t){case"top":case"left":case"center":case"right":case"bottom":return`${n}-${t}`;case"top right":case"bottom left":case"top left":case"bottom right":return`${n}-${t.replace(" ","-")}`}return Ef(e,t)}function HW(e){switch(e){case"none":return"hidden";default:return e}}function WW(e,t){let n={alignContent:"content",alignItems:"items",justifyContent:"justify",placeItems:"place-items",alignSelf:"self",justifySelf:"justify-self"}[e];switch(t){case"flex-start":case"flex-end":case"space-between":return`${n}-${t.split("-")[1]}`;case"center":case"baseline":case"stretch":case"start":case"end":return`${n}-${t}`;default:throw new te(`Unsupported ${e}: ${t}`)}}function YW(e){let n=typeof e=="string"&&{"1/1":"square","16/9":"video"}[e];return n?`aspect-${n}`:`aspect-[${e}]`}function KW(e){switch(e){case"border-box":return"box-border";case"content-box":return"box-content";default:throw new te(`Unsupported boxSizing: ${e}`)}}function zW(e){switch(e){case"isolate":return"isolate";default:throw new te(`Unsupported isolation: ${e}`)}}function XW(e){switch(e){case"0":case"10":case"20":case"30":case"40":case"50":case"auto":return`z-${e}`}return`z-[${e}]`}function jW(e){switch(e){case"1":return"leading-none";default:return`leading-[${e}]`}}function $W(e){switch(e){case"no-clip":return"mask-no-clip";default:throw new te(`Unsupported maskClip: ${e}`)}}function ZW(e){switch(e){case"intersect":return"mask-intersect";default:throw new te(`Unsupported maskComposite: ${e}`)}}function JW(e){switch(e){case"no-repeat":return"mask-no-repeat";default:throw new te(`Unsupported maskRepeat: ${e}`)}}function qW(e){switch(e){case"alpha":return"mask-alpha";case"luminance":return"mask-luminance";default:throw new te(`Unsupported maskMode: ${e}`)}}function QW(e){switch(e){case"normal":return"not-italic";case"italic":return"italic";default:return`font-[${e}]`}}function e3({borderRadius:e,borderTopLeftRadius:t,borderTopRightRadius:n,borderBottomRightRadius:r,borderBottomLeftRadius:o}){return e!==void 0?[ze("rounded",e)]:t!==void 0&&t===n&&t===r&&t===o?[ze("rounded",t)]:[t!==void 0?ze("rounded-tl",t):null,n!==void 0?ze("rounded-tr",n):null,r!==void 0?ze("rounded-br",r):null,o!==void 0?ze("rounded-bl",o):null].filter(i=>i!=null)}function t3(e){switch(e){case"0 0 auto":return"flex-none";default:return Ef("flex",e)}}function n3(e){return typeof e=="number"?`opacity-${x(e*100,0)}`:`opacity-[${e}]`}function r3({borderWidth:e,borderTopWidth:t,borderRightWidth:n,borderBottomWidth:r,borderLeftWidth:o}){let i=(s,a)=>a===1?s:Number.isInteger(a)?`${s}-${a}
8601`:typeof a=="string"&&a.startsWith("var(")?ze(s,a,"length"):ze(s,a);return e!==void 0?[i("border",e)]:t!==void 0&&t===n&&t===r&&t===o?[i("border",t)]:[t?i("border-t",t):null,n?i("border-r",n):null,r?i("border-b",r):null,o?i("border-l",o):null].filter(s=>s!=null)}function o3(e){switch(e){case"column":return"flex-col";case"row":return"flex-row";case"column-reverse":return"flex-col-reverse";case"row-reverse":return"flex-row-reverse";default:throw new te(`Unsupported flexDirection: ${e}`)}}function i3(e){switch(e){case"wrap":return"flex-wrap";default:throw new te(`Unsupported flexWrap: ${e}`)}}function s3(e){switch(e){case"preserve-3d":return"transform-3d";case"flat":return"transform-flat";default:throw new te(`Unsupported transformStyle: ${e}`)}}function a3(e){switch(e){case"hidden":return"backface-hidden";case"visible":return"backface-visible";default:throw new te(`Unsupported backfaceVisibility: ${e}`)}}function l3(e){let n=typeof e=="number"&&{100:"thin",200:"extralight",300:"light",400:"normal",500:"medium",600:"semibold",700:"bold",800:"extrabold",900:"black"}[e];return n?`font-${n}`:`font-[${e}]`}function u3(e,t){let n=e==="backdropFilter"?"backdrop-":"",r=[],o=[];for(let[,i,s]of t.matchAll(/([\w-]+)\(((?:[^()]*|\((?:[^()]*|\([^()]*\))*\))*)\)/g))switch(i){case"blur":r.push(`${n}blur-[${s}]`);break;case"drop-shadow":s&&o.push(s.replaceAll(" ","_"));break;default:throw new te(`Unsupported filter function: ${i}(${s})`)}return o.length>0&&r.push(`${n}drop-shadow-[${o.join(",")}]`),r}function c3(e){switch(e){case"padding-box":return"bg-clip-padding";case"border-box":return"bg-clip-border";case"content-box":return"bg-clip-content";case"text":return"bg-clip-text";default:throw new te(`Unsupported backgroundClip: ${e}`)}}function d3(e,t){let n={gridRow:"row",gridColumn:"col"}[e];return typeof t=="number"?`${n}-${t}`:`${n}-[${t.replaceAll(" ","_")}]`}function f3(e){switch(e){case"no-repeat":return{tailwindClass:"bg-no-repeat"};default:return{backgroundRepeat:e}}}function p3(e){return typeof e=="number"?`decoration-${e}`:e==="from-font"?"decoration-from-font":`decoration-[${e}]`}function m3({overflow:e,overflowX:t,overflowY:n}){return e!==void 0?[`overflow-${e}`]:t!==void 0&&t===n?[`overflow-${t}`]:[t!==void 0?`overflow-x-${t}`:null,n!==void 0?`overflow-y-${n}`:null].filter(r=>r!=null)}function XI(e){return String(e).replace(/ /g,"_")}function E3(e){return e instanceof Q?e.toTailwindClasses():[`transform-[${XI(e)}]`]}function _3(e){switch(e){case"none":return"list-none";case"disc":return"list-disc";case"decimal":return"list-decimal";default:return`list-[${e}]`}}function nP(e,t){let n={},{height:r,width:o,margin:i,marginTop:s,marginRight:a,marginBottom:l,marginLeft:u,padding:c,paddingTop:d,paddingRight:f,paddingBottom:p,paddingLeft:_,top:T,left:h,bottom:m,right:E,inset:O,borderRadius:g,borderTopLeftRadius:I,borderTopRightRadius:S,borderBottomRightRadius:A,borderBottomLeftRadius:R,borderWidth:y,borderTopWidth:b,borderRightWidth:L,borderBottomWidth:D,borderLeftWidth:F,overflow:H,overflowX:N,overflowY:K,...C}=e,M=[...GW({height:r,width:o}),...FW({margin:i,marginTop:s,marginRight:a,marginBottom:l,marginLeft:u,padding:c,paddingTop:d,paddingRight:f,paddingBottom:p,paddingLeft:_}),...wW({top:T,left:h,bottom:m,right:E,inset:O}),...e3({borderRadius:g,borderTopLeftRadius:I,borderTopRightRadius:S,borderBottomRightRadius:A,borderBottomLeftRadius:R}),...r3({borderWidth:y,borderTopWidth:b,borderRightWidth:L,borderBottomWidth:D,borderLeftWidth:F}),...m3({overflow:H,overflowX:N,overflowY:K})];for(let P in C)if(BC(P,C)&&C[P]!==void 0){if(P.startsWith("--")){n[P]=C[P];continue}try{switch(P){case"minHeight":case"minWidth":case"maxHeight":case"maxWidth":case"gap":case"rowGap":case"columnGap":case"marginInlineStart":case"boxShadow":case"textShadow":case"maskPosition":case"maskSize":case"fontFamily":case"gridTemplateColumns":case"gridTemplateRows":case"textIndent":M.push(Ef(P,C[P]));break;case"letterSpacing":{let z=C[P];z!==0&&z!=="0px"&&z!=="0"&&M.push(Ef(P,z));break}case"fontSize":{let z=C[P];z===0&&(z="0px"),M.push(Ef(P,z));break}case"backgroundColor":M.push(Au("bg",C[P]));break;case"color":M.push(Au("text",C[P],!0));break;case"borderColor":M.push(Au("border",C[P]));break;case"textDecorationColor":M.push(Au("decoration",C[P]));break;case"textDecorationThickness":M.push(p3(C[P]));break;case"backgroundSize":M.push(BW(C[P]));break;case"backgroundImage":{let{classes:z,backgroundImage:Ee}=UW(C[P],t);z&&M.push(...z),Ee&&(n.backgroundImage=Ee);break}case"backgroundRepeat":{let{tailwindClass:z,backgroundRepeat:Ee}=f3(C[P]);z&&M.push(z),Ee&&(n.backgroundRepeat=Ee);break}case"backgroundClip":M.push(c3(C[P]));break;case"alignContent":case"alignItems":case"justifyContent":case"placeItems":case"alignSelf":case"justifySelf":M.push(WW(P,C[P]));break;case"aspectRatio":M.push(YW(C[P]));break;case"boxSizing":M.push(KW(C[P]));break;case"isolation":M.push(zW(C[P]));break;case"position":case"visibility":case"textDecorationLine":case"textTransform":M.push(C[P]);break;case"zIndex":M.push(XW(C[P]));break;case"lineHeight":M.push(jW(C[P]));break;case"maskClip":M.push($W(C[P]));break;case"maskComposite":M.push(ZW(C[P]));break;case"maskRepeat":M.push(JW(C[P]));break;case"maskMode":M.push(qW(C[P]));break;case"textDecorationStyle":case"objectFit":case"flexShrink":case"borderStyle":case"pointerEvents":case"textAlign":case"textOverflow":case"cursor":case"mixBlendMode":case"textWrap":M.push(QC(P,C[P]));break;case"whiteSpace":{M.push(QC(P,C[P]));break}case"fontStyle":M.push(QW(C[P]));break;case"fontWeight":M.push(l3(C[P]));break;case"textBoxTrim":case"textBoxEdge":case"textUnderlinePosition":case"wordBreak":M.push(kW(P,C[P]));break;case"objectPosition":case"backgroundPosition":M.push(VW(P,C[P]));break;case"flex":M.push(t3(C[P]));break;case"display":M.push(HW(C[P]));break;
8601case"flexDirection":M.push(o3(C[P]));break;case"opacity":M.push(n3(C[P]));break;case"flexWrap":M.push(i3(C[P]));break;case"backdropFilter":case"filter":M.push(...u3(P,C[P]));break;case"gridRow":case"gridColumn":M.push(d3(P,C[P]));break;case"textDecorationSkipInk":{let z={textDecorationSkipInk:"text-decoration-skip-ink"};M.push(`[${z[P]}:${C[P]}]`);break}case"transform":M.push(...E3(C[P]));break;case"transformOrigin":M.push(`origin-[${XI(C[P])}]`);break;case"transformStyle":M.push(s3(C[P]));break;case"perspective":M.push(`[perspective:${C[P]}]`);break;case"perspectiveOrigin":M.push(`perspective-origin-[${XI(C[P])}]`);break;case"backfaceVisibility":M.push(a3(C[P]));break;case"maskImage":n.maskImage=C[P];break;case"borderImage":n.borderImage=C[P];break;case"listStyleImage":n.listStyleImage=C[P];break;case"listStyleType":M.push(_3(C[P]));break;case"fontFeatureSettings":n.fontFeatureSettings=C[P];break;case"fontVariationSettings":{n.fontVariationSettings=C[P];break}case"containerType":n.containerType=C[P];break;default:console.warn(`Tailwind conversion is ignoring an unsupported style: ${P}`);break}}catch(z){console.warn(`Tailwind conversion is ignoring an unsupported style: ${P}`,z);break}}return{tailwindClasses:M,inlineStyles:n}}function ne(e){return{kind:"element",...e}}function mr(e){return{kind:"fragment",...e}}function iP(e){return{kind:"raw_jsx",snippet:e}}function Ot(e){return{kind:"rendered",element:e}}function Ne(e,t){if(e==null)return null;if(typeof e=="string")return e;if(Array.isArray(e))return t.renderFragment({children:e.map(n=>Ne(n,t))});switch(e.kind){case"rendered":return e.element;case"raw_jsx":return e.snippet;case"element":{let{kind:n,children:r,...o}=e;return t.renderElement({...o,children:Ne(r??null,t)})}case"fragment":{let{kind:n,children:r,...o}=e;return t.renderFragment({...o,children:Ne(r??null,t)})}}}function T3(e,t){let n=[],r=[],o={};for(let i of e){if(i==null)continue;
8601if(typeof i=="string"){r.push(...i.split(" "));continue}let s="styles"in i?i.styles:i,a=nP(s,t);n.push(...a.tailwindClasses),Object.assign(o,a.inlineStyles)}return{classes:[...n,...r],style:o}}function sP({Tag:e,children:t,style:n,styleSet:r,key:o,nodeId:i,idSuffix:s,attributes:a},l){let u=T3(Array.isArray(r)?r:[r],l);return(0,rP.createElement)(e,{id:i&&!s?fo(i):void 0,...a,key:o,className:(0,oP.default)(u.classes),style:{...u.style,...n}},t)}var uP=v(W()),cP=v(jI());var lP=v(jI());var h3="api/figment-proxy/monitor",O3="sites.runtime_error",g3="figweb",I3=100,S3=new Set(["preview","published"]),R3=async(e,t,n,r)=>{if(!e||e==="")return;let o=`${e}/${h3}`;try{await fetch(o,{method:"POST",body:JSON.stringify(t),priority:"low",keepalive:r?.sendAsBeacon,headers:{"Content-Type":"application/json",...n},credentials:"omit"})}catch(i){console.error(i)}},A3=()=>/iPad/.test(navigator.userAgent)||/Mac/.test(navigator.userAgent)&&!/iPhone/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||!1,mE;function $I(){if(mE===void 0)try{mE={...lP.default.detect(navigator.userAgent),isIpad:A3()}}catch{mE=null}return mE||null}var Nu=class{env;rateLimiter;_shouldReportErrors;reportingDomain;analyticsHeaders;userId;bundleId;bundleCreationDate;_cachedInfo;constructor({env:t,reportingDomain:n,rateLimiter:r,analyticsHeaders:o,bundleId:i,bundleCreationDate:s,userId:a}){this.reportingDomain=n,this.env=t,this.rateLimiter=r,this.analyticsHeaders=o,this._shouldReportErrors=this.shouldReportErrors(),this.bundleId=i,this.bundleCreationDate=s,this.userId=a}shouldReportErrors=()=>{if(!S3.has(this.env))return!1;try{new URL(this.reportingDomain)}catch{return!1}return!0};getContext=()=>({page:{path:window.location.pathname,referrer:document.referrer,search:window.location.search,title:document.title,url:window.location.toString()},userAgent:window.navigator.userAgent,forwardToDatadog:!0});reportError=(t,n)=>{if(!this._shouldReportErrors||!(t instanceof te)||!this.rateLimiter.tryAdd(1))return;let r=new Date().toISOString(),o={event:O3,properties:{errorType:t.name,errorMessage:n?`[${n}]: ${t.message}`:t.message,stackTrace:t.stack||"",environment:this.env,bundleId:this.bundleId,bundleCreationDate:this.bundleCreationDate,severity:t.severity,errorDetail:t.errorDetail,...this.getBrowserInfoProps()},timestamp:r,sentAt:r,context:this.getContext()},i={namespace:g3,batched:"1"};this.userId&&(o.userId=this.userId);let s=[{data:o,figment_metadata:i}];R3(this.reportingDomain,s,this.analyticsHeaders)};getBrowserInfoProps=()=>{if(!this._cachedInfo)try{let t=$I();t&&(this._cachedInfo={browser_name:t.name,browser_version:+t.version,os_name:t?.isIpad?"iPadOS":t.osname,os_version:t?.isIpad?0:t.osversion})}catch{this._cachedInfo={}}return this._cachedInfo};static init(t){if(!this._ErrorReporter)for(this._ErrorReporter=new Nu(t);this._errorQueue.length;)this.reportError(Nu._errorQueue.pop())}static reset(){this._ErrorReporter=void 0,this._errorQueue=[]}static reportError(t,n){this._ErrorReporter?this.enabled&&this._ErrorReporter.reportError(t,n):this._errorQueue.length<I3&&this._errorQueue.push(t)}},Me=Nu;Po(Me,"enabled",!0),Po(Me,"_ErrorReporter"),Po(Me,"_errorQueue",[]),Po(Me,"enable",()=>Nu.enabled=!0),Po(Me,"disable",()=>Nu.enabled=!1);var Ca=(e,t)=>n=>{try{e(n)}catch(r){throw Me.reportError(r,t),r instanceof te?new Error(r.message,r):r}},yu=(e,t)=>n=>{try{e(n)}catch(r){throw Me.reportError(r,t),r instanceof te?new Error(r.message,r):r}};var ZI=de(new Map),bu={SHIFT_CODE:16,CONTROL_CODE:17,ALT_CODE:18,META_CODE:91};function dP(e,t){let n=e.event?.keyTrigger?.triggerDevice==="KEYBOARD",r=e.event?.keyTrigger?.keyCodes;if(!r)return!1;let o=b3(t),i=r.length===t.length;return n&&i&&r.every(o)}function N3(e){return e===void 0?!1:(e=e.toUpperCase(),e==="SHIFT"||e==="CONTROL"||e==="ALT"||e==="META")}function y3(e){let t=[];return t.push(e.keyCode),e.shiftKey&&t.push(bu.SHIFT_CODE),e.ctrlKey&&t.push(bu.CONTROL_CODE),e.altKey&&t.push(bu.ALT_CODE),e.metaKey&&t.push(bu.META_CODE),t}function b3(e){let t=cP.default.mac;return n=>(n=n===bu.META_CODE&&!t?bu.CONTROL_CODE:n,e.some(r=>r===n))}function fP(){let e=Re(ZI);(0,uP.useEffect)(()=>{let t=yu(n=>{if(N3(n.key))return;let r=y3(n);e.forEach(o=>{o.keyCallback?.(r)})},"handleKeypressInteractions");return window.addEventListener("keydown",t),()=>{window.removeEventListener("keydown",t)}},[e])}function po(e){return e.some(t=>t.event?.interactionType==="ON_CLICK"&&t.actions?.some(n=>n.connectionType==="URL"||n.connectionType==="INTERNAL_NODE"&&n.navigationType==="NAVIGATE"))}function Fo(e){return e.some(t=>t.event?.interactionType==="ON_CLICK")&&!po(e)}function _f(e,t,n){t===void 0&&(t=!0);let r=n==="preview"||t?"_blank":"_self";try{return new URL(e),{url:e,target:r}}catch{return{url:"https://"+e,target:r}}}function pP(e,t){if(!e.startsWith("/"))return e;if(t==="published")return window.location.host+e}function Tf(e,t,n,r,o,i){let{env:s}=i,a=l=>{l.key==="Enter"&&e(l)};if((t==="INTERNAL_NODE"||t==="NODE")&&n){let l=()=>{i.preloadLocation(n)};return o||s==="preview"?{onClick:e,onKeyDown:a,onMouseDown:l,role:"link",tabIndex:0}:{href:n,target:r?"_blank":"_self",onMouseDown:l}}if(t==="URL"&&n){let{url:l,target:u}=_f(n,r,s);return o?{role:"link",tabIndex:0,onClick:e,onKeyDown:a}:{href:l,target:u}}}var a1=v(W());var mP={sessionID:-1,localID:-1},Ze="-1:-1";function EE(e){return e?(e.localID|0)>=0&&(e.sessionID|0)>=0:!1}function ot(e){return e?`${e.sessionID|0}:${e.localID|0}`:null}function hf(e){if(!e)return null;let t=e.split(":");if(!t||t.length!==2)return null;let n,r;try{n=parseInt(t[0]),r=parseInt(t[1])}catch{return null}return!isFinite(n)||!isFinite(r)?null:{sessionID:n,localID:r}}var yt=function(e){return e.Appear="appear",e.Hover="hover",e.Press="press",e.Focus="focus",e.ScrollParallax="scrollParallax",e.ScrollTransform="scrollTransform",e.Cursor="cursor",e.Marquee="marquee",e.Code="code",e}({}
8601),On=function(e){return e.IN_CUBIC="IN_CUBIC",e.OUT_CUBIC="OUT_CUBIC",e.INOUT_CUBIC="INOUT_CUBIC",e.LINEAR="LINEAR",e.IN_BACK_CUBIC="IN_BACK_CUBIC",e.OUT_BACK_CUBIC="OUT_BACK_CUBIC",e.INOUT_BACK_CUBIC="INOUT_BACK_CUBIC",e.CUSTOM_CUBIC="CUSTOM_CUBIC",e.GENTLE_SPRING="GENTLE_SPRING",e.SPRING_PRESET_ONE="SPRING_PRESET_ONE",e.SPRING_PRESET_TWO="SPRING_PRESET_TWO",e.SPRING_PRESET_THREE="SPRING_PRESET_THREE",e.CUSTOM_SPRING="CUSTOM_SPRING",e.SPRING="SPRING",e}({}),mo=function(e){return e.ALL="ALL",e.OPACITY="OPACITY",e.TRANSLATION="TRANSLATION",e.ROTATION="ROTATION",e.SCALE="SCALE",e}({}),gt=function(e){return e.PASS_THROUGH="PASS_THROUGH",e.NORMAL="NORMAL",e.DARKEN="DARKEN",e.MULTIPLY="MULTIPLY",e.LINEAR_BURN="LINEAR_BURN",e.COLOR_BURN="COLOR_BURN",e.LIGHTEN="LIGHTEN",e.SCREEN="SCREEN",e.LINEAR_DODGE="LINEAR_DODGE",e.COLOR_DODGE="COLOR_DODGE",e.OVERLAY="OVERLAY",e.SOFT_LIGHT="SOFT_LIGHT",e.HARD_LIGHT="HARD_LIGHT",e.DIFFERENCE="DIFFERENCE",e.EXCLUSION="EXCLUSION",e.HUE="HUE",e.SATURATION="SATURATION",e.COLOR="COLOR",e.LUMINOSITY="LUMINOSITY",e}({}),Kn=function(e){return e.LEFT="LEFT",e.RIGHT="RIGHT",e.CENTER="CENTER",e.LEFT_RIGHT="LEFT_RIGHT",e.SCALE="SCALE",e}({}),Er=function(e){return e.TOP="TOP",e.BOTTOM="BOTTOM",e.CENTER="CENTER",e.TOP_BOTTOM="TOP_BOTTOM",e.SCALE="SCALE",e}({}),RJ=function(e){return e.SUPER="SUPER",e.SUB="SUB",e.NORMAL="NORMAL",e}({}),EP=function(e){return e.NONE="NONE",e.STRIKETHROUGH="STRIKETHROUGH",e.UNDERLINE="UNDERLINE",e}({}),Pa=function(e){return e.ORDERED="ORDERED",e.UNORDERED="UNORDERED",e.NONE="NONE",e}({}),AJ=function(e){return e.SET="SET",e.SCALE="SCALE",e.OFFSET="OFFSET",e}({}),NJ=function(e){return e.FLOAT="FLOAT",e.COLOR="COLOR",e.VECTOR="VECTOR",e}({});var Lu={visible:!0,locked:!1,isFixed:!1,scrollBehavior:"SCROLLS"},Of={blendMode:gt.NORMAL,opacity:1},_E={constraints:{vertical:Er.TOP,horizontal:Kn.LEFT},layoutGrow:0,layoutAlign:"INHERIT",layoutPositioning:"AUTO",gridColumnAnchorIndex:0,gridRowAnchorIndex:0},TE={fills:[],strokes:[],strokeWeight:1},C3={effects:[]},TP={isMask:!1},_P={isBreakpointFrame:!1},LJ={interactions:[]},P3={clipsContent:!1,overflowDirection:"NONE",layoutMode:"NONE",primaryAxisSizingMode:"AUTO",counterAxisSizingMode:"AUTO",primaryAxisAlignItems:"MIN",counterAxisAlignItems:"MIN",paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,itemSpacing:0,itemReverseZIndex:!1,strokesIncludedInLayout:!1,stackLayoutVersion:0,counterAxisAlignContent:"AUTO",layoutWrap:"NO_WRAP",counterAxisSpacing:0},JI={cornerRadius:0,rectangleCornerRadii:[0,0,0,0],rectangleCornerRadiiIndependent:!1},D3={isInAnimateTree:!1},Ur={...Lu,...Of,..._E,...P3,...JI,...TE,...C3,...TP,..._P,..._P,...D3},gf={...Lu,...Of,..._E,...TE,...TP},CJ={...gf,...JI},hP={...gf,...JI},OP={listSpacing:0,textAutoResize:"NONE",paragraphIndent:0,paragraphSpacing:0,textAlignHorizontal:"LEFT",textAlignVertical:"TOP"},If={code:void 0,sourceCodeHash:void 0,codeExportName:"default"};var gP={...Ur},IP={...Ur},SP={...gf},RP={...Lu,...Of,..._E,...TE},AP={...Ur},NP={...Ur},yP={...Ur},bP={...Ur,type:"REPEATER"},LP={...Ur,type:"CMS_RICH_TEXT"},CP={...Ur},PP={...hP},DP={...gf,...OP},vP={...Lu,...Of},xP={...Ur,type:"WEBPAGE"},MP={...Ur,type:"CODE_INSTANCE",...If,componentProperties:{}},kP={...Ur,type:"CODE_LAYER",...If,componentProperties:{}}
8601,GP={...Lu,type:"CODE_COMPONENT",...If,componentProperties:{}},FP={type:"CODE_FILE",...If};function hE(e){switch(e.type){case"COMPONENT":return Object.assign(Object.create(gP),e);case"COMPONENT_SET":return Object.assign(Object.create(IP),e);case"FRAME":return Object.assign(Object.create(AP),e);case"SLOT":return Object.assign(Object.create(NP),e);case"GROUP":return Object.assign(Object.create(yP),e);case"IMAGE":return Object.assign(Object.create(RP),e);case"INSTANCE":return Object.assign(Object.create(CP),e);case"RECTANGLE":return Object.assign(Object.create(PP),e);case"SVG":return Object.assign(Object.create(SP),e);case"TEXT":return Object.assign(Object.create(DP),e);case"VARIABLE":return e;case"VARIABLE_COLLECTION":return e;case"STYLE":return e;case"WIDGET":return Object.assign(Object.create(vP),e);case"WEBPAGE":return Object.assign(Object.create(xP),e);case"CODE_INSTANCE":return Object.assign(Object.create(MP),e);case"CODE_LAYER":return Object.assign(Object.create(kP),e);case"CODE_COMPONENT":return Object.assign(Object.create(GP),e);case"CODE_FILE":return Object.assign(Object.create(FP),e);case"REPEATER":return Object.assign(Object.create(bP),e);case"CMS_RICH_TEXT":return Object.assign(Object.create(LP),e);case"KEYFRAME_TRACK":return e;case"KEYFRAME":return e;default:throw new Error("Unknown node type provided to applyDefaults")}}var Je=function(e){return e[e.ADDITION=0]="ADDITION",e[e.SUBTRACTION=1]="SUBTRACTION",e[e.RESOLVE_VARIANT=2]="RESOLVE_VARIANT",e[e.MULTIPLY=3]="MULTIPLY",e[e.DIVIDE=4]="DIVIDE",e[e.EQUALS=5]="EQUALS",e[e.NOT_EQUAL=6]="NOT_EQUAL",e[e.LESS_THAN=7]="LESS_THAN",e[e.LESS_THAN_OR_EQUAL=8]="LESS_THAN_OR_EQUAL",e[e.GREATER_THAN=9]="GREATER_THAN",e[e.GREATER_THAN_OR_EQUAL=10]="GREATER_THAN_OR_EQUAL",e[e.AND=11]="AND",e[e.OR=12]="OR",e[e.NOT=13]="NOT",e[e.STRINGIFY=14]="STRINGIFY",e[e.TERNARY=15]="TERNARY",e[e.VAR_MODE_LOOKUP=16]="VAR_MODE_LOOKUP",e[e.NEGATE=17]="NEGATE",e[e.IS_TRUTHY=18]="IS_TRUTHY",e}({});function Cu(e){return e.type==="GRADIENT_LINEAR"||e.type==="GRADIENT_RADIAL"||e.type==="GRADIENT_ANGULAR"||e.type==="GRADIENT_DIAMOND"}function FJ(e,t,n){let r=e,o=t.safeParse(e);if(o.success&&(r=o.data),!o.success){t.description||console.info("Zod schema provided to parseData has no description. Add a description via .describe for better error messages.");let i=`${t.description||"Zod"} schema error issues`,s=n?`Debug info: 8602${JSON.stringify(n,null,2)} 8603`:"",a=typeof window>"u",l=!1;if(a||l){if(a)for(let u of o.error.issues)console.error(`[SchemaErrorIssue] ${JSON.stringify({schemaDescription:t.description,issue:u})}`);if(l)throw new Error(`${i} 8604${s}Issues: ${JSON.stringify(o.error.issues,null,2)}`)}else console.error(i,{issues:o.error.issues,debugInfo:n,data:e})}return r}var st={};PV(st,{BRAND:()=>rY,DIRTY:()=>Da,EMPTY_PATH:()=>k3,INVALID:()=>ie,NEVER:()=>VY,OK:()=>In,ParseStatus:()=>vt,Schema:()=>Te,ZodAny:()=>gs,ZodArray:()=>Tr,ZodBigInt:()=>Uo,ZodBoolean:()=>va,ZodBranded:()=>Rf,ZodCatch:()=>Ha,ZodDate:()=>gi,ZodDefault:()=>Va,ZodDiscriminatedUnion:()=>ku,ZodEffects:()=>Yr,ZodEnum:()=>Vo,ZodError:()=>gn,ZodFirstPartyTypeKind:()=>se,ZodFunction:()=>Os,ZodIntersection:()=>Ga,ZodIssueCode:()=>B,ZodLazy:()=>wa,ZodLiteral:()=>Ba,ZodMap:()=>Gu,ZodNaN:()=>Fu,ZodNativeEnum:()=>Ua,ZodNever:()=>Eo,ZodNull:()=>Ma,ZodNullable:()=>Ho,ZodNumber:()=>Bo,ZodObject:()=>it,ZodOptional:()=>Vr,ZodParsedType:()=>j,ZodPipeline:()=>Wa,ZodPromise:()=>Is,ZodReadonly:()=>Ya,ZodRecord:()=>Fa,ZodSchema:()=>Te,ZodSet:()=>Ii,ZodString:()=>_r,ZodSymbol:()=>xu,ZodTransformer:()=>Yr,ZodTuple:()=>Wr,ZodType:()=>Te,ZodUndefined:()=>xa,ZodUnion:()=>ka,ZodUnknown:()=>Oi,ZodVoid:()=>Mu,addIssueToContext:()=>X,any:()=>fY,array:()=>_Y,bigint:()=>aY,boolean:()=>jP,coerce:()=>UY,custom:()=>KP,date:()=>lY,datetimeRegex:()=>WP,defaultErrorMap:()=>Ti,discriminatedUnion:()=>gY,effect:()=>vY,enum:()=>CY,function:()=>yY,getErrorMap:()=>Pu,getParsedType:()=>wo,instanceof:()=>iY,intersection:()=>IY,isAborted:()=>OE,isAsync:()=>Du,isDirty:()=>gE,isValid:()=>hs,late:()=>oY,lazy:()=>bY,literal:()=>LY,makeIssue:()=>Sf,map:()=>AY,nan:()=>sY,nativeEnum:()=>PY,never:()=>mY,null:()=>dY,nullable:()=>MY,number:()=>XP,object:()=>TY,objectUtil:()=>qI,oboolean:()=>BY,onumber:()=>wY,optional:()=>xY,ostring:()=>FY,pipeline:()=>GY,preprocess:()=>kY,promise:()=>DY,quotelessJson:()=>v3,record:()=>RY,set:()=>NY,setErrorMap:()=>M3,strictObject:()=>hY,string:()=>
vendor: 1,825 bytes, line 8604
8604zP,symbol:()=>uY,transformer:()=>vY,tuple:()=>SY,undefined:()=>cY,union:()=>OY,unknown:()=>pY,util:()=>Ie,void:()=>EY});var Ie;(function(e){e.assertEqual=o=>{};function t(o){}e.assertIs=t;function n(o){throw new Error}e.assertNever=n,e.arrayToEnum=o=>{let i={};for(let s of o)i[s]=s;return i},e.getValidEnumValues=o=>{let i=e.objectKeys(o).filter(a=>typeof o[o[a]]!="number"),s={};for(let a of i)s[a]=o[a];return e.objectValues(s)},e.objectValues=o=>e.objectKeys(o).map(function(i){return o[i]}),e.objectKeys=typeof Object.keys=="function"?o=>Object.keys(o):o=>{let i=[];for(let s in o)Object.prototype.hasOwnProperty.call(o,s)&&i.push(s);return i},e.find=(o,i)=>{for(let s of o)if(i(s))return s},e.isInteger=typeof Number.isInteger=="function"?o=>Number.isInteger(o):o=>typeof o=="number"&&Number.isFinite(o)&&Math.floor(o)===o;function r(o,i=" | "){return o.map(s=>typeof s=="string"?`'${s}'`:s).join(i)}e.joinValues=r,e.jsonStringifyReplacer=(o,i)=>typeof i=="bigint"?i.toString():i})(Ie||(Ie={}));var qI;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(qI||(qI={}));var j=Ie.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),wo=e=>{switch(typeof e){case"undefined":return j.undefined;case"string":return j.string;case"number":return Number.isNaN(e)?j.nan:j.number;case"boolean":return j.boolean;case"function":return j.function;case"bigint":return j.bigint;case"symbol":return j.symbol;case"object":return Array.isArray(e)?j.array:e===null?j.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?j.promise:typeof Map<"u"&&e instanceof Map?j.map:typeof Set<"u"&&e instanceof Set?j.set:typeof Date<"u"&&e instanceof Date?j.date:j.object;default:return j.unknown}};
vendor: 4,622 bytes, line 8604
8604var B=Ie.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),v3=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),gn=class extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};let n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){let n=t||function(i){return i.message},r={_errors:[]},o=i=>{for(let s of i.issues)if(s.code==="invalid_union")s.unionErrors.map(o);else if(s.code==="invalid_return_type")o(s.returnTypeError);else if(s.code==="invalid_arguments")o(s.argumentsError);else if(s.path.length===0)r._errors.push(n(s));else{let a=r,l=0;for(;l<s.path.length;){let u=s.path[l];l===s.path.length-1?(a[u]=a[u]||{_errors:[]},a[u]._errors.push(n(s))):a[u]=a[u]||{_errors:[]},a=a[u],l++}}};return o(this),r}static assert(t){if(!(t instanceof gn))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Ie.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){let n={},r=[];for(let o of this.issues)o.path.length>0?(n[o.path[0]]=n[o.path[0]]||[],n[o.path[0]].push(t(o))):r.push(t(o));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}};gn.create=e=>new gn(e);var x3=(e,t)=>{let n;switch(e.code){case B.invalid_type:e.received===j.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case B.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,Ie.jsonStringifyReplacer)}`;break;case B.unrecognized_keys:n=`Unrecognized key(s) in object: ${Ie.joinValues(e.keys,", ")}`;break;case B.invalid_union:n="Invalid input";break;case B.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Ie.joinValues(e.options)}`;break;case B.invalid_enum_value:n=`Invalid enum value. Expected ${Ie.joinValues(e.options)}, received '${e.received}'`;break;case B.invalid_arguments:n="Invalid function arguments";break;case B.invalid_return_type:n="Invalid function return type";break;case B.invalid_date:n="Invalid date";break;case B.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:Ie.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case B.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case B.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case B.custom:n="Invalid input";break;case B.invalid_intersection_types:n="Intersection results could not be merged";break;case B.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case B.not_finite:n="Number must be finite";break;default:n=t.defaultError,Ie.assertNever(e)}return{message:n}},Ti=x3;var wP=Ti;function M3(e){wP=e}function Pu(){return wP}var Sf=e=>
vendor: 51,546 bytes, line 8604
8604{let{data:t,path:n,errorMaps:r,issueData:o}=e,i=[...n,...o.path||[]],s={...o,path:i};if(o.message!==void 0)return{...o,path:i,message:o.message};let a="",l=r.filter(u=>!!u).slice().reverse();for(let u of l)a=u(s,{data:t,defaultError:a}).message;return{...o,path:i,message:a}},k3=[];function X(e,t){let n=Pu(),r=Sf({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Ti?void 0:Ti].filter(o=>!!o)});e.common.issues.push(r)}var vt=class{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){let r=[];for(let o of n){if(o.status==="aborted")return ie;o.status==="dirty"&&t.dirty(),r.push(o.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){let r=[];for(let o of n){let i=await o.key,s=await o.value;r.push({key:i,value:s})}return vt.mergeObjectSync(t,r)}static mergeObjectSync(t,n){let r={};for(let o of n){let{key:i,value:s}=o;if(i.status==="aborted"||s.status==="aborted")return ie;i.status==="dirty"&&t.dirty(),s.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof s.value<"u"||o.alwaysSet)&&(r[i.value]=s.value)}return{status:t.value,value:r}}},ie=Object.freeze({status:"aborted"}),Da=e=>({status:"dirty",value:e}),In=e=>({status:"valid",value:e}),OE=e=>e.status==="aborted",gE=e=>e.status==="dirty",hs=e=>e.status==="valid",Du=e=>typeof Promise<"u"&&e instanceof Promise;var J;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(J||(J={}));var Hr=class{constructor(t,n,r,o){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=o}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},BP=(e,t)=>{if(hs(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let n=new gn(e.common.issues);return this._error=n,this._error}}};function me(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:r,description:o}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:o}:{errorMap:(s,a)=>{let{message:l}=e;return s.code==="invalid_enum_value"?{message:l??a.defaultError}:typeof a.data>"u"?{message:l??r??a.defaultError}:s.code!=="invalid_type"?{message:a.defaultError}:{message:l??n??a.defaultError}},description:o}}var Te=class{get description(){return this._def.description}_getType(t){return wo(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:wo(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new vt,ctx:{common:t.parent.common,data:t.data,parsedType:wo(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let n=this._parse(t);if(Du(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){let n=this._parse(t);return Promise.resolve(n)}parse(t,n){let r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){let r={common:{issues:[],async:n?.async??!1,contextualErrorMap:n?.errorMap},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:wo(t)},o=this._parseSync({data:t,path:r.path,parent:r});return BP(r,o)}"~validate"(t){let n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:wo(t)};if(!this["~standard"].async)try{let r=this._parseSync({data:t,path:[],parent:n});return hs(r)?{value:r.value}:{issues:n.common.issues}}catch(r){r?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(r=>hs(r)?{value:r.value}:{issues:n.common.issues})}async parseAsync(t,n){let r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){let r={common:{issues:[],contextualErrorMap:n?.errorMap,async:!0},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:wo(t)},o=this._parse({data:t,path:r.path,parent:r}),i=await(Du(o)?o:Promise.resolve(o));return BP(r,i)}refine(t,n){let r=o=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(o):n;return this._refinement((o,i)=>{let s=t(o),a=()=>i.addIssue({code:B.custom,...r(o)});return typeof Promise<"u"&&s instanceof Promise?s.then(l=>l?!0:(a(),!1)):s?!0:(a(),!1)})}refinement(t,n){return this._refinement((r,o)=>t(r)?!0:(o.addIssue(typeof n=="function"?n(r,o):n),!1))}_refinement(t){return new Yr({schema:this,typeName:se.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return Vr.create(this,this._def)}nullable(){return Ho.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Tr.create(this)}promise(){return Is.create(this,this._def)}or(t){return ka.create([this,t],this._def)}and(t){return Ga.create(this,t,this._def)}transform(t){return new Yr({...me(this._def),schema:this,typeName:se.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let n=typeof t=="function"?t:()=>t;return new Va({...me(this._def),innerType:this,defaultValue:n,typeName:se.ZodDefault})}brand(){return new Rf({typeName:se.ZodBranded,type:this,...me(this._def)})}catch(t){let n=typeof t=="function"?t:()=>t;return new Ha({...me(this._def),innerType:this,catchValue:n,typeName:se.ZodCatch})}describe(t){let n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Wa.create(this,t)}readonly(){return Ya.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},G3=/^c[^\s-]{8,}$/i,F3=/^[0-9a-z]+$/,w3=/^[0-9A-HJKMNP-TV-Z]{26}$/i,B3=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,U3=/^[a-z0-9_-]{21}$/i,V3=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,H3=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,W3=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Y3="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",QI,K3=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,z3=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,X3=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,j3=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,$3=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Z3=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,VP="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",J3=new RegExp(`^${VP}$`);function HP(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);let n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function q3(e){return new RegExp(`^${HP(e)}$`)}function WP(e){let t=`${VP}T${HP(e)}`,n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function Q3(e,t){return!!((t==="v4"||!t)&&K3.test(e)||(t==="v6"||!t)&&X3.test(e))}function eY(e,t){if(!V3.test(e))return!1;try{let[n]=e.split("."),r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),o=JSON.parse(atob(r));return!(typeof o!="object"||o===null||"typ"in o&&o?.typ!=="JWT"||!o.alg||t&&o.alg!==t)}catch{return!1}}function tY(e,t){return!!((t==="v4"||!t)&&z3.test(e)||(t==="v6"||!t)&&j3.test(e))}var _r=class extends Te{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==j.string){let i=this._getOrReturnCtx(t);return X(i,{code:B.invalid_type,expected:j.string,received:i.parsedType}),ie}let r=new vt,o;for(let i of this._def.checks)if(i.kind==="min")t.data.length<i.value&&(o=this._getOrReturnCtx(t,o),X(o,{code:B.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="max")t.data.length>i.value&&(o=this._getOrReturnCtx(t,o),X(o,{code:B.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="length"){let s=t.data.length>i.value,a=t.data.length<i.value;(s||a)&&(o=this._getOrReturnCtx(t,o),s?X(o,{code:B.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):a&&X(o,{code:B.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),r.dirty())}else if(i.kind==="email")W3.test(t.data)||(o=this._getOrReturnCtx(t,o),X(o,{validation:"email",code:B.invalid_string,message:i.message}),r.dirty());else if(i.kind==="emoji")QI||(QI=new RegExp(Y3,"u")),QI.test(t.data)||(o=this._getOrReturnCtx(t,o),X(o,{validation:"emoji",code:B.invalid_string,message:i.message}),r.dirty());else if(i.kind==="uuid")B3.test(t.data)||(o=this._getOrReturnCtx(t,o),X(o,{validation:"uuid",code:B.invalid_string,message:i.message}),r.dirty());else if(i.kind==="nanoid")U3.test(t.data)||(o=this._getOrReturnCtx(t,o),X(o,{validation:"nanoid",code:B.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid")G3.test(t.data)||(o=this._getOrReturnCtx(t,o),X(o,{validation:"cuid",code:B.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid2")F3.test(t.data)||(o=this._getOrReturnCtx(t,o),X(o,{validation:"cuid2",code:B.invalid_string,message:i.message}),r.dirty());else if(i.kind==="ulid")w3.test(t.data)||(o=this._getOrReturnCtx(t,o),X(o,{validation:"ulid",code:B.invalid_string,message:i.message}),r.dirty());else if(i.kind==="url")try{new URL(t.data)}catch{o=this._getOrReturnCtx(t,o),X(o,{validation:"url",code:B.invalid_string,message:i.message}),r.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(t.data)||(o=this._getOrReturnCtx(t,o),X(o,{validation:"regex",code:B.invalid_string,message:i.message}),r.dirty())):i.kind==="trim"?t.data=t.data.trim():i.kind==="includes"?t.data.includes(i.value,i.position)||(o=this._getOrReturnCtx(t,o),X(o,{code:B.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),r.dirty()):i.kind==="toLowerCase"?t.data=t.data.toLowerCase():i.kind==="toUpperCase"?t.data=t.data.toUpperCase():i.kind==="startsWith"?t.data.startsWith(i.value)||(o=this._getOrReturnCtx(t,o),X(o,{code:B.invalid_string,validation:{startsWith:i.value},message:i.message}),r.dirty()):i.kind==="endsWith"?t.data.endsWith(i.value)||(o=this._getOrReturnCtx(t,o),X(o,{code:B.invalid_string,validation:{endsWith:i.value},message:i.message}),r.dirty()):i.kind==="datetime"?WP(i).test(t.data)||(o=this._getOrReturnCtx(t,o),X(o,{code:B.invalid_string,validation:"datetime",message:i.message}),r.dirty()):i.kind==="date"?J3.test(t.data)||(o=this._getOrReturnCtx(t,o),X(o,{code:B.invalid_string,validation:"date",message:i.message}),r.dirty()):i.kind==="time"?q3(i).test(t.data)||(o=this._getOrReturnCtx(t,o),X(o,{code:B.invalid_string,validation:"time",message:i.message}),r.dirty()):i.kind==="duration"?H3.test(t.data)||(o=this._getOrReturnCtx(t,o),X(o,{validation:"duration",code:B.invalid_string,message:i.message}),r.dirty()):i.kind==="ip"?Q3(t.data,i.version)||(o=this._getOrReturnCtx(t,o),X(o,{validation:"ip",code:B.invalid_string,message:i.message}),r.dirty()):i.kind==="jwt"?eY(t.data,i.alg)||(o=this._getOrReturnCtx(t,o),X(o,{validation:"jwt",code:B.invalid_string,message:i.message}),r.dirty()):i.kind==="cidr"?tY(t.data,i.version)||(o=this._getOrReturnCtx(t,o),X(o,{validation:"cidr",code:B.invalid_string,message:i.message}),r.dirty()):i.kind==="base64"?$3.test(t.data)||(o=this._getOrReturnCtx(t,o),X(o,{validation:"base64",code:B.invalid_string,message:i.message}),r.dirty()):i.kind==="base64url"?Z3.test(t.data)||(o=this._getOrReturnCtx(t,o),X(o,{validation:"base64url",code:B.invalid_string,message:i.message}),r.dirty()):Ie.assertNever(i);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(o=>t.test(o),{validation:n,code:B.invalid_string,...J.errToObj(r)})}_addCheck(t){return new _r({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...J.errToObj(t)})}url(t){return this._addCheck({kind:"url",...J.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...J.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...J.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...J.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...J.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...J.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...J.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...J.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...J.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...J.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...J.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...J.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,...J.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,...J.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...J.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...J.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n?.position,...J.errToObj(n?.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...J.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...J.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...J.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...J.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...J.errToObj(n)})}nonempty(t){return this.min(1,J.errToObj(t))}trim(){return new _r({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new _r({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new _r({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}};_r.create=e=>new _r({checks:[],typeName:se.ZodString,coerce:e?.coerce??!1,...me(e)});function nY(e,t){let n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,o=n>r?n:r,i=Number.parseInt(e.toFixed(o).replace(".","")),s=Number.parseInt(t.toFixed(o).replace(".",""));return i%s/10**o}var Bo=class extends Te{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==j.number){let i=this._getOrReturnCtx(t);return X(i,{code:B.invalid_type,expected:j.number,received:i.parsedType}),ie}let r,o=new vt;for(let i of this._def.checks)i.kind==="int"?Ie.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),X(r,{code:B.invalid_type,expected:"integer",received:"float",message:i.message}),o.dirty()):i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(r=this._getOrReturnCtx(t,r),X(r,{code:B.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),o.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),X(r,{code:B.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),o.dirty()):i.kind==="multipleOf"?nY(t.data,i.value)!==0&&(r=this._getOrReturnCtx(t,r),X(r,{code:B.not_multiple_of,multipleOf:i.value,message:i.message}),o.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),X(r,{code:B.not_finite,message:i.message}),o.dirty()):Ie.assertNever(i);return{status:o.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,J.toString(n))}gt(t,n){return this.setLimit("min",t,!1,J.toString(n))}lte(t,n){return this.setLimit("max",t,!0,J.toString(n))}lt(t,n){return this.setLimit("max",t,!1,J.toString(n))}setLimit(t,n,r,o){return new Bo({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:J.toString(o)}]})}_addCheck(t){return new Bo({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:J.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:J.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:J.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:J.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:J.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:J.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:J.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:J.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:J.toString(t)})}get minValue(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&Ie.isInteger(t.value))}get isFinite(){let t=null,n=null;for(let r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}};Bo.create=e=>new Bo({checks:[],typeName:se.ZodNumber,coerce:e?.coerce||!1,...me(e)});var Uo=class extends Te{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==j.bigint)return this._getInvalidInput(t);let r,o=new vt;for(let i of this._def.checks)i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(r=this._getOrReturnCtx(t,r),X(r,{code:B.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),o.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),X(r,{code:B.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),o.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),X(r,{code:B.not_multiple_of,multipleOf:i.value,message:i.message}),o.dirty()):Ie.assertNever(i);return{status:o.value,value:t.data}}_getInvalidInput(t){let n=this._getOrReturnCtx(t);return X(n,{code:B.invalid_type,expected:j.bigint,received:n.parsedType}),ie}gte(t,n){return this.setLimit("min",t,!0,J.toString(n))}gt(t,n){return this.setLimit("min",t,!1,J.toString(n))}lte(t,n){return this.setLimit("max",t,!0,J.toString(n))}lt(t,n){return this.setLimit("max",t,!1,J.toString(n))}setLimit(t,n,r,o){return new Uo({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:J.toString(o)}]})}_addCheck(t){return new Uo({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:J.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:J.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:J.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:J.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:J.toString(n)})}get minValue(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}};Uo.create=e=>new Uo({checks:[],typeName:se.ZodBigInt,coerce:e?.coerce??!1,...me(e)});var va=class extends Te{_parse(t){if(this._def.coerce&&(t.data=Boolean(t.data)),this._getType(t)!==j.boolean){let r=this._getOrReturnCtx(t);return X(r,{code:B.invalid_type,expected:j.boolean,received:r.parsedType}),ie}return In(t.data)}};va.create=e=>new va({typeName:se.ZodBoolean,coerce:e?.coerce||!1,...me(e)});var gi=class extends Te{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==j.date){let i=this._getOrReturnCtx(t);return X(i,{code:B.invalid_type,expected:j.date,received:i.parsedType}),ie}if(Number.isNaN(t.data.getTime())){let i=this._getOrReturnCtx(t);return X(i,{code:B.invalid_date}),ie}let r=new vt,o;for(let i of this._def.checks)i.kind==="min"?t.data.getTime()<i.value&&(o=this._getOrReturnCtx(t,o),X(o,{code:B.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),r.dirty()):i.kind==="max"?t.data.getTime()>i.value&&(o=this._getOrReturnCtx(t,o),X(o,{code:B.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),r.dirty()):Ie.assertNever(i);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new gi({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:J.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:J.toString(n)})}get minDate(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}};gi.create=e=>new gi({checks:[],coerce:e?.coerce||!1,typeName:se.ZodDate,...me(e)});var xu=class extends Te{_parse(t){if(this._getType(t)!==j.symbol){let r=this._getOrReturnCtx(t);return X(r,{code:B.invalid_type,expected:j.symbol,received:r.parsedType}),ie}return In(t.data)}};xu.create=e=>new xu({typeName:se.ZodSymbol,...me(e)});var xa=class extends Te{_parse(t){if(this._getType(t)!==j.undefined){let r=this._getOrReturnCtx(t);return X(r,{code:B.invalid_type,expected:j.undefined,received:r.parsedType}),ie}return In(t.data)}};xa.create=e=>new xa({typeName:se.ZodUndefined,...me(e)});var Ma=class extends Te{_parse(t){if(this._getType(t)!==j.null){let r=this._getOrReturnCtx(t);return X(r,{code:B.invalid_type,expected:j.null,received:r.parsedType}),ie}return In(t.data)}};Ma.create=e=>new Ma({typeName:se.ZodNull,...me(e)});var gs=class extends Te{constructor(){super(...arguments),this._any=!0}_parse(t){return In(t.data)}};gs.create=e=>new gs({typeName:se.ZodAny,...me(e)});var Oi=class extends Te{constructor(){super(...arguments),this._unknown=!0}_parse(t){return In(t.data)}};Oi.create=e=>new Oi({typeName:se.ZodUnknown,...me(e)});var Eo=class extends Te{_parse(t){let n=this._getOrReturnCtx(t);return X(n,{code:B.invalid_type,expected:j.never,received:n.parsedType}),ie}};Eo.create=e=>new Eo({typeName:se.ZodNever,...me(e)});var Mu=class extends Te{_parse(t){if(this._getType(t)!==j.undefined){let r=this._getOrReturnCtx(t);return X(r,{code:B.invalid_type,expected:j.void,received:r.parsedType}),ie}return In(t.data)}};Mu.create=e=>new Mu({typeName:se.ZodVoid,...me(e)});var Tr=class extends Te{_parse(t){let{ctx:n,status:r}=this._processInputParams(t),o=this._def;if(n.parsedType!==j.array)return X(n,{code:B.invalid_type,expected:j.array,received:n.parsedType}),ie;if(o.exactLength!==null){let s=n.data.length>o.exactLength.value,a=n.data.length<o.exactLength.value;(s||a)&&(X(n,{code:s?B.too_big:B.too_small,minimum:a?o.exactLength.value:void 0,maximum:s?o.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:o.exactLength.message}),r.dirty())}if(o.minLength!==null&&n.data.length<o.minLength.value&&(X(n,{code:B.too_small,minimum:o.minLength.value,type:"array",inclusive:!0,exact:!1,message:o.minLength.message}),r.dirty()),o.maxLength!==null&&n.data.length>o.maxLength.value&&(X(n,{code:B.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((s,a)=>o.type._parseAsync(new Hr(n,s,n.path,a)))).then(s=>vt.mergeArray(r,s));let i=[...n.data].map((s,a)=>o.type._parseSync(new Hr(n,s,n.path,a)));return vt.mergeArray(r,i)}get element(){return this._def.type}min(t,n){return new Tr({...this._def,minLength:{value:t,message:J.toString(n)}})}max(t,n){return new Tr({...this._def,maxLength:{value:t,message:J.toString(n)}})}length(t,n){return new Tr({...this._def,exactLength:{value:t,message:J.toString(n)}})}nonempty(t){return this.min(1,t)}};Tr.create=(e,t)=>new Tr({type:e,minLength:null,maxLength:null,exactLength:null,typeName:se.ZodArray,...me(t)});function vu(e){if(e instanceof it){let t={};for(let n in e.shape){let r=e.shape[n];t[n]=Vr.create(vu(r))}return new it({...e._def,shape:()=>t})}else return e instanceof Tr?new Tr({...e._def,type:vu(e.element)}):e instanceof Vr?Vr.create(vu(e.unwrap())):e instanceof Ho?Ho.create(vu(e.unwrap())):e instanceof Wr?Wr.create(e.items.map(t=>vu(t))):e}var it=class extends Te{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let t=this._def.shape(),n=Ie.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==j.object){let u=this._getOrReturnCtx(t);return X(u,{code:B.invalid_type,expected:j.object,received:u.parsedType}),ie}let{status:r,ctx:o}=this._processInputParams(t),{shape:i,keys:s}=this._getCached(),a=[];if(!(this._def.catchall instanceof Eo&&this._def.unknownKeys==="strip"))for(let u in o.data)s.includes(u)||a.push(u);let l=[];for(let u of s){let c=i[u],d=o.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new Hr(o,d,o.path,u)),alwaysSet:u in o.data})}if(this._def.catchall instanceof Eo){let u=this._def.unknownKeys;if(u==="passthrough")for(let c of a)l.push({key:{status:"valid",value:c},value:{status:"valid",value:o.data[c]}});else if(u==="strict")a.length>0&&(X(o,{code:B.unrecognized_keys,keys:a}),r.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let u=this._def.catchall;for(let c of a){let d=o.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new Hr(o,d,o.path,c)),alwaysSet:c in o.data})}}return o.common.async?Promise.resolve().then(async()=>{let u=[];for(let c of l){let d=await c.key,f=await c.value;u.push({key:d,value:f,alwaysSet:c.alwaysSet})}return u}).then(u=>vt.mergeObjectSync(r,u)):vt.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(t){return J.errToObj,new it({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{let o=this._def.errorMap?.(n,r).message??r.defaultError;return n.code==="unrecognized_keys"?{message:J.errToObj(t).message??o}:{message:o}}}:{}})}strip(){return new it({...this._def,unknownKeys:"strip"})}passthrough(){return new it({...this._def,unknownKeys:"passthrough"})}extend(t){return new it({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new it({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:se.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new it({...this._def,catchall:t})}pick(t){let n={};for(let r of Ie.objectKeys(t))t[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new it({...this._def,shape:()=>n})}omit(t){let n={};for(let r of Ie.objectKeys(this.shape))t[r]||(n[r]=this.shape[r]);return new it({...this._def,shape:()=>n})}deepPartial(){return vu(this)}partial(t){let n={};for(let r of Ie.objectKeys(this.shape)){let o=this.shape[r];t&&!t[r]?n[r]=o:n[r]=o.optional()}return new it({...this._def,shape:()=>n})}required(t){let n={};for(let r of Ie.objectKeys(this.shape))if(t&&!t[r])n[r]=this.shape[r];else{let i=this.shape[r];for(;i instanceof Vr;)i=i._def.innerType;n[r]=i}return new it({...this._def,shape:()=>n})}keyof(){return YP(Ie.objectKeys(this.shape))}};it.create=(e,t)=>new it({shape:()=>e,unknownKeys:"strip",catchall:Eo.create(),typeName:se.ZodObject,...me(t)});it.strictCreate=(e,t)=>new it({shape:()=>e,unknownKeys:"strict",catchall:Eo.create(),typeName:se.ZodObject,...me(t)});it.lazycreate=(e,t)=>new it({shape:e,unknownKeys:"strip",catchall:Eo.create(),typeName:se.ZodObject,...me(t)});var ka=class extends Te{_parse(t){let{ctx:n}=this._processInputParams(t),r=this._def.options;function o(i){for(let a of i)if(a.result.status==="valid")return a.result;for(let a of i)if(a.result.status==="dirty")return n.common.issues.push(...a.ctx.common.issues),a.result;let s=i.map(a=>new gn(a.ctx.common.issues));return X(n,{code:B.invalid_union,unionErrors:s}),ie}if(n.common.async)return Promise.all(r.map(async i=>{let s={...n,common:{...n.common,issues:[]},parent:null};return{result:await i._parseAsync({data:n.data,path:n.path,parent:s}),ctx:s}})).then(o);{let i,s=[];for(let l of r){let u={...n,common:{...n.common,issues:[]},parent:null},c=l._parseSync({data:n.data,path:n.path,parent:u});if(c.status==="valid")return c;c.status==="dirty"&&!i&&(i={result:c,ctx:u}),u.common.issues.length&&s.push(u.common.issues)}if(i)return n.common.issues.push(...i.ctx.common.issues),i.result;let a=s.map(l=>new gn(l));return X(n,{code:B.invalid_union,unionErrors:a}),ie}}get options(){return this._def.options}};ka.create=(e,t)=>new ka({options:e,typeName:se.ZodUnion,...me(t)});var hi=e=>e instanceof wa?hi(e.schema):e instanceof Yr?hi(e.innerType()):e instanceof Ba?[e.value]:e instanceof Vo?e.options:e instanceof Ua?Ie.objectValues(e.enum):e instanceof Va?hi(e._def.innerType):e instanceof xa?[void 0]:e instanceof Ma?[null]:e instanceof Vr?[void 0,...hi(e.unwrap())]:e instanceof Ho?[null,...hi(e.unwrap())]:e instanceof Rf||e instanceof Ya?hi(e.unwrap()):e instanceof Ha?hi(e._def.innerType):[],ku=class extends Te{_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==j.object)return X(n,{code:B.invalid_type,expected:j.object,received:n.parsedType}),ie;let r=this.discriminator,o=n.data[r],i=this.optionsMap.get(o);return i?n.common.async?i._parseAsync({data:n.data,path:n.path,parent:n}):i._parseSync({data:n.data,path:n.path,parent:n}):(X(n,{code:B.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),ie)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){let o=new Map;for(let i of n){let s=hi(i.shape[t]);if(!s.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let a of s){if(o.has(a))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(a)}`);o.set(a,i)}}return new ku({typeName:se.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:o,...me(r)})}};function eS(e,t){let n=wo(e),r=wo(t);if(e===t)return{valid:!0,data:e};if(n===j.object&&r===j.object){let o=Ie.objectKeys(t),i=Ie.objectKeys(e).filter(a=>o.indexOf(a)!==-1),s={...e,...t};for(let a of i){let l=eS(e[a],t[a]);if(!l.valid)return{valid:!1};s[a]=l.data}return{valid:!0,data:s}}else if(n===j.array&&r===j.array){if(e.length!==t.length)return{valid:!1};let o=[];for(let i=0;i<e.length;i++){let s=e[i],a=t[i],l=eS(s,a);if(!l.valid)return{valid:!1};o.push(l.data)}return{valid:!0,data:o}}else return n===j.date&&r===j.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}var Ga=class extends Te{_parse(t){let{status:n,ctx:r}=this._processInputParams(t),o=(i,s)=>{if(OE(i)||OE(s))return ie;let a=eS(i.value,s.value);return a.valid?((gE(i)||gE(s))&&n.dirty(),{status:n.value,value:a.data}):(X(r,{code:B.invalid_intersection_types}),ie)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([i,s])=>o(i,s)):o(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}};Ga.create=(e,t,n)=>new Ga({left:e,right:t,typeName:se.ZodIntersection,...me(n)});var Wr=class extends Te{_parse(t){let{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==j.array)return X(r,{code:B.invalid_type,expected:j.array,received:r.parsedType}),ie;if(r.data.length<this._def.items.length)return X(r,{code:B.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),ie;!this._def.rest&&r.data.length>this._def.items.length&&(X(r,{code:B.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());let i=[...r.data].map((s,a)=>{let l=this._def.items[a]||this._def.rest;return l?l._parse(new Hr(r,s,r.path,a)):null}).filter(s=>!!s);return r.common.async?Promise.all(i).then(s=>vt.mergeArray(n,s)):vt.mergeArray(n,i)}get items(){return this._def.items}rest(t){return new Wr({...this._def,rest:t})}};Wr.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Wr({items:e,typeName:se.ZodTuple,rest:null,...me(t)})};var Fa=class extends Te{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==j.object)return X(r,{code:B.invalid_type,expected:j.object,received:r.parsedType}),ie;let o=[],i=this._def.keyType,s=this._def.valueType;for(let a in r.data)o.push({key:i._parse(new Hr(r,a,r.path,a)),value:s._parse(new Hr(r,r.data[a],r.path,a)),alwaysSet:a in r.data});return r.common.async?vt.mergeObjectAsync(n,o):vt.mergeObjectSync(n,o)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof Te?new Fa({keyType:t,valueType:n,typeName:se.ZodRecord,...me(r)}):new Fa({keyType:_r.create(),valueType:t,typeName:se.ZodRecord,...me(n)})}},Gu=class extends Te{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==j.map)return X(r,{code:B.invalid_type,expected:j.map,received:r.parsedType}),ie;let o=this._def.keyType,i=this._def.valueType,s=[...r.data.entries()].map(([a,l],u)=>({key:o._parse(new Hr(r,a,r.path,[u,"key"])),value:i._parse(new Hr(r,l,r.path,[u,"value"]))}));if(r.common.async){let a=new Map;return Promise.resolve().then(async()=>{for(let l of s){let u=await l.key,c=await l.value;if(u.status==="aborted"||c.status==="aborted")return ie;(u.status==="dirty"||c.status==="dirty")&&n.dirty(),a.set(u.value,c.value)}return{status:n.value,value:a}})}else{let a=new Map;for(let l of s){let u=l.key,c=l.value;if(u.status==="aborted"||c.status==="aborted")return ie;(u.status==="dirty"||c.status==="dirty")&&n.dirty(),a.set(u.value,c.value)}return{status:n.value,value:a}}}};Gu.create=(e,t,n)=>new Gu({valueType:t,keyType:e,typeName:se.ZodMap,...me(n)});var Ii=class extends Te{_parse(t){let{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==j.set)return X(r,{code:B.invalid_type,expected:j.set,received:r.parsedType}),ie;let o=this._def;o.minSize!==null&&r.data.size<o.minSize.value&&(X(r,{code:B.too_small,minimum:o.minSize.value,type:"set",inclusive:!0,exact:!1,message:o.minSize.message}),n.dirty()),o.maxSize!==null&&r.data.size>o.maxSize.value&&(X(r,{code:B.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),n.dirty());let i=this._def.valueType;function s(l){let u=new Set;for(let c of l){if(c.status==="aborted")return ie;c.status==="dirty"&&n.dirty(),u.add(c.value)}return{status:n.value,value:u}}let a=[...r.data.values()].map((l,u)=>i._parse(new Hr(r,l,r.path,u)));return r.common.async?Promise.all(a).then(l=>s(l)):s(a)}min(t,n){return new Ii({...this._def,minSize:{value:t,message:J.toString(n)}})}max(t,n){return new Ii({...this._def,maxSize:{value:t,message:J.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}};Ii.create=(e,t)=>new Ii({valueType:e,minSize:null,maxSize:null,typeName:se.ZodSet,...me(t)});var Os=class extends Te{constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==j.function)return X(n,{code:B.invalid_type,expected:j.function,received:n.parsedType}),ie;function r(a,l){return Sf({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Pu(),Ti].filter(u=>!!u),issueData:{code:B.invalid_arguments,argumentsError:l}})}function o(a,l){return Sf({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Pu(),Ti].filter(u=>!!u),issueData:{code:B.invalid_return_type,returnTypeError:l}})}let i={errorMap:n.common.contextualErrorMap},s=n.data;if(this._def.returns instanceof Is){let a=this;return In(async function(...l){let u=new gn([]),c=await a._def.args.parseAsync(l,i).catch(p=>{throw u.addIssue(r(l,p)),u}),d=await Reflect.apply(s,this,c);return await a._def.returns._def.type.parseAsync(d,i).catch(p=>{throw u.addIssue(o(d,p)),u})})}else{let a=this;return In(function(...l){let u=a._def.args.safeParse(l,i);if(!u.success)throw new gn([r(l,u.error)]);let c=Reflect.apply(s,this,u.data),d=a._def.returns.safeParse(c,i);if(!d.success)throw new gn([o(c,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new Os({...this._def,args:Wr.create(t).rest(Oi.create())})}returns(t){return new Os({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new Os({args:t||Wr.create([]).rest(Oi.create()),returns:n||Oi.create(),typeName:se.ZodFunction,...me(r)})}},wa=class extends Te{get schema(){return this._def.getter()}_parse(t){let{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}};wa.create=(e,t)=>new wa({getter:e,typeName:se.ZodLazy,...me(t)});var Ba=class extends Te{_parse(t){if(t.data!==this._def.value){let n=this._getOrReturnCtx(t);return X(n,{received:n.data,code:B.invalid_literal,expected:this._def.value}),ie}return{status:"valid",value:t.data}}get value(){return this._def.value}};Ba.create=(e,t)=>new Ba({value:e,typeName:se.ZodLiteral,...me(t)});function YP(e,t){return new Vo({values:e,typeName:se.ZodEnum,...me(t)})}var Vo=class extends Te{_parse(t){if(typeof t.data!="string"){let n=this._getOrReturnCtx(t),r=this._def.values;return X(n,{expected:Ie.joinValues(r),received:n.parsedType,code:B.invalid_type}),ie}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){let n=this._getOrReturnCtx(t),r=this._def.values;return X(n,{received:n.data,code:B.invalid_enum_value,options:r}),ie}return In(t.data)}get options(){return this._def.values}get enum(){let t={};for(let n of this._def.values)t[n]=n;return t}get Values(){let t={};for(let n of this._def.values)t[n]=n;return t}get Enum(){let t={};for(let n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return Vo.create(t,{...this._def,...n})}exclude(t,n=this._def){return Vo.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}};Vo.create=YP;var Ua=class extends Te{_parse(t){let n=Ie.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==j.string&&r.parsedType!==j.number){let o=Ie.objectValues(n);return X(r,{expected:Ie.joinValues(o),received:r.parsedType,code:B.invalid_type}),ie}if(this._cache||(this._cache=new Set(Ie.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){let o=Ie.objectValues(n);return X(r,{received:r.data,code:B.invalid_enum_value,options:o}),ie}return In(t.data)}get enum(){return this._def.values}};Ua.create=(e,t)=>new Ua({values:e,typeName:se.ZodNativeEnum,...me(t)});var Is=class extends Te{unwrap(){return this._def.type}_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==j.promise&&n.common.async===!1)return X(n,{code:B.invalid_type,expected:j.promise,received:n.parsedType}),ie;let r=n.parsedType===j.promise?n.data:Promise.resolve(n.data);return In(r.then(o=>this._def.type.parseAsync(o,{path:n.path,errorMap:n.common.contextualErrorMap})))}};Is.create=(e,t)=>new Is({type:e,typeName:se.ZodPromise,...me(t)});var Yr=class extends Te{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===se.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){let{status:n,ctx:r}=this._processInputParams(t),o=this._def.effect||null,i={addIssue:s=>{X(r,s),s.fatal?n.abort():n.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),o.type==="preprocess"){let s=o.transform(r.data,i);if(r.common.async)return Promise.resolve(s).then(async a=>{if(n.value==="aborted")return ie;let l=await this._def.schema._parseAsync({data:a,path:r.path,parent:r});return l.status==="aborted"?ie:l.status==="dirty"?Da(l.value):n.value==="dirty"?Da(l.value):l});{if(n.value==="aborted")return ie;let a=this._def.schema._parseSync({data:s,path:r.path,parent:r});return a.status==="aborted"?ie:a.status==="dirty"?Da(a.value):n.value==="dirty"?Da(a.value):a}}if(o.type==="refinement"){let s=a=>{let l=o.refinement(a,i);if(r.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(r.common.async===!1){let a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?ie:(a.status==="dirty"&&n.dirty(),s(a.value),{status:n.value,value:a.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(a=>a.status==="aborted"?ie:(a.status==="dirty"&&n.dirty(),s(a.value).then(()=>({status:n.value,value:a.value}))))}if(o.type==="transform")if(r.common.async===!1){let s=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!hs(s))return ie;let a=o.transform(s.value,i);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:a}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(s=>hs(s)?Promise.resolve(o.transform(s.value,i)).then(a=>({status:n.value,value:a})):ie);Ie.assertNever(o)}};Yr.create=(e,t,n)=>new Yr({schema:e,typeName:se.ZodEffects,effect:t,...me(n)});Yr.createWithPreprocess=(e,t,n)=>new Yr({schema:t,effect:{type:"preprocess",transform:e},typeName:se.ZodEffects,...me(n)});var Vr=class extends Te{_parse(t){return this._getType(t)===j.undefined?In(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Vr.create=(e,t)=>new Vr({innerType:e,typeName:se.ZodOptional,...me(t)});var Ho=class extends Te{_parse(t){return this._getType(t)===j.null?In(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Ho.create=(e,t)=>new Ho({innerType:e,typeName:se.ZodNullable,...me(t)});var Va=class extends Te{_parse(t){let{ctx:n}=this._processInputParams(t),r=n.data;return n.parsedType===j.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}};Va.create=(e,t)=>new Va({innerType:e,typeName:se.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...me(t)});var Ha=class extends Te{_parse(t){let{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},o=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return Du(o)?o.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new gn(r.common.issues)},input:r.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new gn(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}};Ha.create=(e,t)=>new Ha({innerType:e,typeName:se.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...me(t)});var Fu=class extends Te{_parse(t){if(this._getType(t)!==j.nan){let r=this._getOrReturnCtx(t);return X(r,{code:B.invalid_type,expected:j.nan,received:r.parsedType}),ie}return{status:"valid",value:t.data}}};Fu.create=e=>new Fu({typeName:se.ZodNaN,...me(e)});var rY=Symbol("zod_brand"),Rf=class extends Te{_parse(t){let{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}},Wa=class extends Te{_parse(t){let{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{let i=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?ie:i.status==="dirty"?(n.dirty(),Da(i.value)):this._def.out._parseAsync({data:i.value,path:r.path,parent:r})})();{let o=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?ie:o.status==="dirty"?(n.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:r.path,parent:r})}}static create(t,n){return new Wa({in:t,out:n,typeName:se.ZodPipeline})}},Ya=class extends Te{_parse(t){let n=this._def.innerType._parse(t),r=o=>(hs(o)&&(o.value=Object.freeze(o.value)),o);return Du(n)?n.then(o=>r(o)):r(n)}unwrap(){return this._def.innerType}};Ya.create=(e,t)=>new Ya({innerType:e,typeName:se.ZodReadonly,...me(t)});function UP(e,t){let n=typeof e=="function"?e(t):typeof e=="string"?{message:e}:e;return typeof n=="string"?{message:n}:n}function KP(e,t={},n){return e?gs.create().superRefine((r,o)=>{let i=e(r);if(i instanceof Promise)return i.then(s=>{if(!s){let a=UP(t,r),l=a.fatal??n??!0;o.addIssue({code:"custom",...a,fatal:l})}});if(!i){let s=UP(t,r),a=s.fatal??n??!0;o.addIssue({code:"custom",...s,fatal:a})}}):gs.create()}var oY={object:it.lazycreate},se;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(se||(se={}));var iY=(e,t={message:`Input not instance of ${e.name}`})=>KP(n=>n instanceof e,t),zP=_r.create,XP=Bo.create,sY=Fu.create,aY=Uo.create,jP=va.create,lY=gi.create,uY=xu.create,cY=xa.create,dY=Ma.create,fY=gs.create,pY=Oi.create,mY=Eo.create,EY=Mu.create,_Y=Tr.create,TY=it.create,hY=it.strictCreate,OY=ka.create,gY=ku.create,IY=Ga.create,SY=Wr.create,RY=Fa.create,AY=Gu.create,NY=Ii.create,yY=Os.create,bY=wa.create,LY=Ba.create,CY=Vo.create,PY=Ua.create,DY=Is.create,vY=Yr.create,xY=Vr.create,MY=Ho.create,kY=Yr.createWithPreprocess,GY=Wa.create,FY=()=>zP().optional(),wY=()=>XP().optional(),BY=()=>jP().optional(),UY={string:e=>_r.create({...e,coerce:!0}),number:e=>Bo.create({...e,coerce:!0}),boolean:e=>
8604va.create({...e,coerce:!0}),bigint:e=>Uo.create({...e,coerce:!0}),date:e=>gi.create({...e,coerce:!0})};var VY=ie;function Ss(e){return e}var Af=Ss,$P=Ss,ZP=Ss;var _o=Ss,JP=Ss,IE=Ss;var tS=Ss,qP=Ss;var Kr=function(e){return e[e.BOOLEAN=0]="BOOLEAN",e[e.FLOAT=1]="FLOAT",e[e.STRING=2]="STRING",e[e.ALIAS=3]="ALIAS",e[e.COLOR=4]="COLOR",e[e.EXPRESSION=5]="EXPRESSION",e[e.MAP=6]="MAP",e[e.SYMBOL_ID=7]="SYMBOL_ID",e}({}),nS=function(e){return e[e.BOOLEAN=0]="BOOLEAN",e[e.FLOAT=1]="FLOAT",e[e.STRING=2]="STRING",e[e.COLOR=3]="COLOR",e[e.MAP=4]="MAP",e[e.SYMBOL_ID=5]="SYMBOL_ID",e[e.FONT_STYLE=6]="FONT_STYLE",e[e.TEXT_DATA=7]="TEXT_DATA",e[e.IMAGE=8]="IMAGE",e[e.LINK=9]="LINK",e[e.JS_RUNTIME_ALIAS=10]="JS_RUNTIME_ALIAS",e[e.SLOT_CONTENT_ID=11]="SLOT_CONTENT_ID",e[e.KEYFRAME_TRACK_ID=12]="KEYFRAME_TRACK_ID",e[e.KEYFRAME_TRACK_PARAMETER_DATA=13]="KEYFRAME_TRACK_PARAMETER_DATA",e}({});function To(e,t){let n=null;return typeof t!="object"||"r"in t||"image"in t?n=t:t.type==="VARIABLE_ALIAS"?n=e.variableState.evaluateVariable(e.get,t.id,e.modeContext):t.type==="EXPRESSION"&&(n=HY(t,e)),n}function HY(e,t){let n=WY.find(({expressionFunction:r,resolvedType:o,argTypes:i})=>r===e.value.expressionFunction&&o===e.resolvedType&&e.value.expressionArguments.every((s,a)=>iS(s)===i[a]))?.implementation;return n?n(e.value.expressionArguments,t):(console.warn("expression type not implemented",e.value.expressionFunction),null)}function at(e,t,n,r){return{resolvedType:t,argTypes:n,implementation:r,expressionFunction:e}}var WY=[at(Je.ADDITION,"FLOAT",["FLOAT","FLOAT"],YY),at(Je.SUBTRACTION,"FLOAT",["FLOAT","FLOAT"],KY),at(Je.MULTIPLY,"FLOAT",["FLOAT","FLOAT"],zY),at(Je.DIVIDE,"FLOAT",["FLOAT","FLOAT"],XY),at(Je.AND,"BOOLEAN",["BOOLEAN","BOOLEAN"],jY),at(Je.OR,"BOOLEAN",["BOOLEAN","BOOLEAN"],$Y),at(Je.NOT,"BOOLEAN",["BOOLEAN"],ZY),at(Je.EQUALS,"BOOLEAN",["FLOAT","FLOAT"],JY),at(Je.NOT_EQUAL,"BOOLEAN",["FLOAT","FLOAT"],qY),at(Je.EQUALS,"BOOLEAN",["BOOLEAN","BOOLEAN"],QY),at(Je.NOT_EQUAL,"BOOLEAN",["BOOLEAN","BOOLEAN"],e4),at(Je.EQUALS,"BOOLEAN",["STRING","STRING"],t4),at(Je.NOT_EQUAL,"BOOLEAN",["STRING","STRING"],n4),at(Je.LESS_THAN,"BOOLEAN",["FLOAT","FLOAT"],r4),at(Je.LESS_THAN_OR_EQUAL,"BOOLEAN",["FLOAT","FLOAT"],o4),at(Je.GREATER_THAN,"BOOLEAN",["FLOAT","FLOAT"],i4),at(Je.GREATER_THAN_OR_EQUAL,"BOOLEAN",["FLOAT","FLOAT"],s4),at(Je.STRINGIFY,"STRING",["FLOAT"],a4),at(Je.STRINGIFY,"STRING",["BOOLEAN"],l4),at(Je.STRINGIFY,"STRING",["STRING"],u4),at(Je.ADDITION,"STRING",["STRING","STRING"],c4),at(Je.ADDITION,"STRING",["FLOAT","STRING"],d4),at(Je.ADDITION,"STRING",["STRING","FLOAT"],f4),at(Je.ADDITION,"STRING",["BOOLEAN","STRING"],p4),at(Je.ADDITION,"STRING",["STRING","BOOLEAN"],m4)];function YY(e,t){return At(e,t,(n,r)=>n+r,"number")}function KY(e,t){return At(e,t,(n,r)=>n-r,"number")}function zY(e,t){return At(e,t,(n,r)=>n*r,"number")}function XY(e,t){return At(e,t,(n,r)=>r===0?null:n/r,"number")}function jY(e,t){return At(e,t,(n,r)=>n&&r,"boolean")}function $Y(e,t){return At(e,t,(n,r)=>n||r,"boolean")}function ZY(e,t){let n=To(t,e[0]);return typeof n!="boolean"?SE(n,"boolean"):!n}function JY(e,t){return At(e,t,(n,r)=>n===r,"number")}function qY(e,t){return At(e,t,(n,r)=>n!==r,"number")}function QY(e,t){return At(e,t,(n,r)=>n===r,"boolean")}function e4(e,t){return At(e,t,(n,r)=>n!==r,"boolean")}function t4(e,t){return At(e,t,(n,r)=>n===r,"string")}function n4(e,t){return At(e,t,(n,r)=>n!==r,"string")}function r4(e,t){return At(e,t,(n,r)=>n<r,"number")}function o4(e,t){return At(e,t,(n,r)=>n<=r,"number")}function i4(e,t){return At(e,t,(n,r)=>n>r,"number")}function s4(e,t){return At(e,t,(n,r)=>n>=r,"number")}function rS(e){return Math.ceil(e)===e?String(e):e.toFixed(2)}function a4(e,t){return oS(e,t,n=>rS(n),"number")}function l4(e,t){return oS(e,t,n=>String(n),"boolean")}function u4(e,t){return oS(e,t,n=>n,"string")}function c4(e,t){return At(e,t,(n,r)=>n+r,"string")}function d4(e,t){return At(e,t,(n,r)=>rS(n)+r,"number","string")}function f4(e,t){return At(e,t,(n,r)=>n+rS(r),"string","number")}function p4(e,t){return At(e,t,(n,r)=>String(n)+r,"boolean","string")}function m4(e,t){return At(e,t,(n,r)=>n+String(r),"string","boolean")}function oS(e,t,n,r){let o=To(t,e[0]);return typeof o!==r?SE(o,r):n(o)}function At(e,t,n,r,o){let i=To(t,e[0]),s=To(t,e[1]);return typeof i!==r?SE(i,r):typeof s!==(o??r)?SE(s,o??r):n(i,s)}function SE(e,t){return console.warn(`Expected variable of type ${t}, but got variable ${JSON.stringify(e)} of type ${typeof e}`),null}function iS(e){let t=typeof e;if(t==="boolean")return"BOOLEAN";if(t==="number")return"FLOAT";if(t==="string")return"STRING";if(typeof e=="object"){if("image"in e)return"IMAGE";if("r"in e)return"COLOR";if(e.type==="EXPRESSION"||e.type==="VARIABLE_ALIAS")return e.resolvedType||null}return null}function wu(e){switch(e.type){case Kr.BOOLEAN:case Kr.FLOAT:case Kr.STRING:case Kr.COLOR:return e.value;case Kr.ALIAS:return{type:"VARIABLE_ALIAS",id:e.value,resolvedType:QP(e.resolvedType)};case Kr.EXPRESSION:return{type:"EXPRESSION",value:{expressionFunction:e.value.expressionFunction,expressionArguments:e.value.expressionArguments.map(t=>wu(t))},resolvedType:QP(e.resolvedType)};default:return null}}function QP(e){return e===0?"BOOLEAN":e===1?"FLOAT":e===2?"STRING":e===3?"COLOR":null}var Si,E4=(Si=class{activeHoverRects=new Map;hoverRectCounter=0;constructor(){}static getInstance(){}showHoverTargetRectangle(t,n){let r=`hover-debug-rect-${this.hoverRectCounter++}`,o=document.createElement("div");o.style.position="fixed",o.style.left=`${t.left}px`,o.style.top=`${t.top}px`,o.style.width=`${t.width}px`,o.style.height=`${t.height}px`,o.style.border=`2px solid ${n||"red"}`,o.style.pointerEvents="none",o.style.zIndex="9999",o.style.opacity="0.5",o.style.transition="opacity 200ms ease-out",document.body.appendChild(o);let i=window.setTimeout(()=>{o.style.opacity="0",window.setTimeout(()=>{document.body.removeChild(o),this.activeHoverRects.delete(r)},200)},200);return this.activeHoverRects.set(r,{id:r,element:o,timeoutId:i}),r}},Po(Si,"instance"),Si),RE=()=>E4.getInstance();var sS=e=>!1,ho=e=>{if(!sS(e))return;let t=e.renderOptions.testFlags?.animationProgress??.5;return{ease:()=>t,onAnimationComplete:()=>{}}},_4=["transitionToVisible","transitionToExit","transitionToAndFromHover","transitionToAndFromPress","transitionToAndFromFocus","transitionBasedOnScrollDirection","scrollTransformTransition"],eD=(e,t)=>{let n=ho(e);if(!n)return;let r={ease:n.ease,duration:1e4};_4.forEach(o=>{o in t&&t[o]!==void 0&&(t[o]=r)}
8604)};var tD=new Set(["vectorNetworkBlob","version"]);function Ue(e,t,n=!1,r=!1,o=!1){if(e===t||r&&(Array.isArray(e)&&e.length===0&&t===void 0||Array.isArray(t)&&t.length===0&&e===void 0||!e&&!t))return!0;let i=typeof e;if(typeof t!==i)return!1;if(i==="number")return Number.isNaN(e)||Number.isNaN(t)?r:n?!0:r?e-t<.01&&e-t>-.01:e===t;if(i!=="object")return e===t;if(e===null!=(t===null))return!1;if(e===null)return!0;if(Array.isArray(e)!==Array.isArray(t))return!1;if(Array.isArray(e))return e.length===t.length&&e.every((l,u)=>Ue(l,t[u],n,r,o));let s=Object.keys(e),a=Object.keys(t);return o&&(s=s.filter(l=>e[l]!==void 0),a=a.filter(l=>t[l]!==void 0)),s.length!==a.length||(r&&(s=s.filter(l=>!tD.has(l)),a=a.filter(l=>!tD.has(l))),s.sort(),a.sort(),!s.every((l,u)=>l===a[u]))?!1:s.every(l=>Ue(e[l],t[l],n,r,o))}var ys=v(W());var ee=function(e){return e.LAYOUT="layout",e.INSTANCE_SUBTREE="instanceSubtree",e.NONE="none",e}({});function T4(e){let t=[...e];if(!e.length)return t;if(e[0].position!==0){let n={...e[e.length-1]};n.position-=1,t.unshift(n)}if(e[e.length-1].position!==1){let n={...e[0]};n.position+=1,t.push(n)}return t}function h4(e,t){let n=mi({stops:T4(e.gradientStops),epsilon:.01,recursionLimit:5,targetInterpolation:pi,actualInterpolation:lE});return` 8605 <div 8606 xmlns='http://www.w3.org/1999/xhtml' 8607 style=' 8608 background-image: conic-gradient( 8609 from 90deg, 8610 ${dE(n,t)} 8611 ); 8612 opacity:${e.opacity??1}; 8613 height: 100%; 8614 width: 100%; 8615 '></div> 8616 `}function O4(e){let{size:t,paint:n,renderOptions:r}=e,{uvToUnitGradient:o,unitGradientToShape:i}=Ei({size:t,gradientTransform:n.gradientTransform}),s=fE(o),a=Math.max(s.x,s.y);return` 8617 <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 ${ve(t.width)} ${ve(t.height)}' preserveAspectRatio='none'> 8618 <g transform='${_s(i)}'> 8619 <foreignObject x='${ve(-a)}' y='${ve(-a)}' width='${ve(2*a)}' height='${ve(2*a)}'> 8620 ${h4(n,r)} 8621 </foreignObject> 8622 </g> 8623 </svg> 8624 `}var Bu=class{renderOptions;paint;size;constructor(t,n=Vt,r,o){this.renderOptions=o,this.paint=t,this.size=r}get value(){let t=O4({size:this.size,paint:this.paint,renderOptions:this.renderOptions});return Ts(t)}equals(t){return this.value===t.value}};function g4(e){let{size:t,paint:n}=e,r=mi({stops:n.gradientStops.map(a=>({...a})),epsilon:.01,recursionLimit:5,targetInterpolation:pi,actualInterpolation:Su}),{uvToUnitGradient:o,unitGradientToShape:i}=Ei({size:t,gradientTransform:n.gradientTransform}),s=fE(o);return` 8625 <svg viewBox='0 0 ${ve(t.width)} ${ve(t.height)}' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'> 8626 <g transform='${_s(i)}' opacity='${n.opacity??1}'> 8627 <rect height='${ve(s.y)}' width='${ve(s.x)}' fill='url(#grad)' id='quad' shape-rendering='crispEdges' /> 8628 <use href='#quad' transform='scale(1 -1)' /> 8629 <use href='#quad' transform='scale(-1 1)' /> 8630 <use href='#quad' transform='scale(-1 -1)' /> 8631 </g> 8632 <defs> 8633 <linearGradient id='grad' gradientUnits='userSpaceOnUse' x2='${.5*Ht}' y2='${.5*Ht}'> 8634 ${Ru(r)} 8635 </linearGradient> 8636 </defs> 8637 </svg> 8638 `}var Uu=class{paint;size;constructor(t,n=Vt,r){this.size=r,this.paint=t}get value(){let t=g4({size:this.size,paint:this.paint});return Ts(t)}equals(t){return this.value===t.value}};var Vu=class{paint;size;constructor(t,n=Vt,r){this.paint=t,this.size=r}get value(){let t=mi({stops:this.paint.gradientStops.map(o=>({...o})),epsilon:.01,recursionLimit:5,targetInterpolation:pi,actualInterpolation:Su}),{unitGradientToShape:n}=Ei({size:this.size,gradientTransform:this.paint.gradientTransform}),r=` 8639 <svg viewBox='0 0 ${ve(this.size.width)} ${ve(this.size.height)}' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'> 8640 <rect x='0' y='0' height='100%' width='100%' fill='url(#grad)' opacity='${this.paint.opacity??1}' /> 8641 <defs> 8642 <radialGradient id='grad' gradientUnits='userSpaceOnUse' cx='0' cy='0' r='${Ht}' gradientTransform='${_s(n)}'> 8643 ${Ru(t)} 8644 </radialGradient> 8645 </defs> 8646 </svg> 8647 `;return Ts(r)}equals(t){return this.value===t.value}};function AE(e,t){return e instanceof _i||e instanceof Vu||e instanceof Bu||e instanceof Uu||e instanceof Q?e.value:e instanceof Y?e.toStyleValue({forTailwind:t}):e}var rn=1e-4;function Ri(e){return typeof structuredClone=="function"?structuredClone(e):JSON.parse(JSON.stringify(e))}function Ve(e,t,n=1e-6){return Math.abs(e-t)<n}function yE(e){return Object.freeze(e)}function aS(e){return e.type==="WEBPAGE"}function Wt(e,t){if(e===void 0)return t;let n=df(t),r=df(e);return r.multiply(n),xt(HC(r))}function xt(e){return[[Tt(e[0][0]),Tt(e[0][1]),Tt(e[0][2])],[Tt(e[1][0]),Tt(e[1][1]),Tt(e[1][2])]]}function zn(e){return`${x(e*100,2)}%`}var NE=[[1,0,0],[0,1,0]];function zr(e){if(e instanceof Q||!e)return NE;let n=/matrix\((.*)\)/.exec(e);if(!n)return NE;let r=n[1].split(",").map(o=>parseFloat(o));return r.length!==6?NE:[[r[0],r[2],r[4]],[r[1],r[3],r[5]]]}function Nf(e){let t=e.unit==="PERCENT"?Tt(e.value,.1):e.value,n=x(t,2);return n===0?"0":`${n}${e.unit==="PERCENT"?"%":"px"}`}function Ka(){}var nD=()=>Promise.resolve();function bE(e,t,n){let r=e(t.roots).map(i=>
8647t.nodeById.get(i)),o=[];return n&&(o=r.filter(i=>i.name===n)),o.length>0?o:r}function rD(e){return"children"in e&&!!e.children&&e.children.length>0}function Hu(e){return e.optimizeForTailwindConversion}function oD(e){let{background:t,backgroundColor:n,backgroundImage:r,backgroundPosition:o,backgroundSize:i,border:s,borderBottom:a,borderBottomColor:l,borderBottomLeftRadius:u,borderBottomRightRadius:c,borderBottomWidth:d,borderColor:f,borderEndEndRadius:p,borderEndStartRadius:_,borderLeft:T,borderLeftColor:h,borderLeftWidth:m,borderRadius:E,borderRight:O,borderRightColor:g,borderRightWidth:I,borderStartEndRadius:S,borderStartStartRadius:A,borderStyle:R,borderTop:y,borderTopColor:b,borderTopLeftRadius:L,borderTopRightRadius:D,borderTopWidth:F,borderWidth:H,boxShadow:N,caretColor:K,clipPath:C,color:M,filter:P,font:z,fontSize:Ee,fontSizeAdjust:pe,fontStretch:ye,fontWeight:Le,fontVariationSettings:We,letterSpacing:De,lineHeight:ae,opacity:Oe,outline:oe,outlineColor:ft,outlineWidth:et,textDecoration:he,textDecorationColor:ke,textDecorationThickness:Ye,textEmphasis:ce,textEmphasisColor:tt,textShadow:pn,visibility:Ft,wordSpacing:Cr,...sr}=e;return{motionStyles:{background:t,backgroundColor:n,backgroundImage:r,backgroundPosition:o,backgroundSize:i,border:s,borderBottom:a,borderBottomColor:l,borderBottomLeftRadius:u,borderBottomRightRadius:c,borderBottomWidth:d,borderColor:f,borderEndEndRadius:p,borderEndStartRadius:_,borderLeft:T,borderLeftColor:h,borderLeftWidth:m,borderRadius:E,borderRight:O,borderRightColor:g,borderRightWidth:I,borderStartEndRadius:S,borderStartStartRadius:A,borderStyle:R,borderTop:y,borderTopColor:b,borderTopLeftRadius:L,borderTopRightRadius:D,borderTopWidth:F,borderWidth:H,boxShadow:N,caretColor:K,clipPath:C,color:M,filter:P,font:z,fontSize:Ee,fontSizeAdjust:pe,fontStretch:ye,fontWeight:Le,fontVariationSettings:We,letterSpacing:De,lineHeight:ae,opacity:Oe,outline:oe,outlineColor:ft,outlineWidth:et,textDecoration:he,textDecorationColor:ke,textDecorationThickness:Ye,textEmphasis:ce,textEmphasisColor:tt,textShadow:pn,visibility:Ft,wordSpacing:Cr},cssStyles:sr}}var lS=-1,Yu=(e,t,n,r,o,i)=>{if(e===ee.NONE)return{motionTransitionProps:void 0,cssStyles:n};let s=e===ee.INSTANCE_SUBTREE,{motionStyles:a,cssStyles:l}=s?oD(n):{motionStyles:{},cssStyles:n},u=iD(a),{correctlyTypedStyles:c,incorrectlyTypedStyles:d}=sD(u),f=s?{[be.VISIBLE_SMART_ANIMATE]:_=>Wu(c,t,_,o),[be.HIDDEN_SMART_ANIMATE]:_=>Wu(c,0,_,o),...r}:r;return{motionTransitionProps:{...s?{animate:be.VISIBLE_SMART_ANIMATE,exit:be.HIDDEN_SMART_ANIMATE,variants:f}:{},...o?{...s?{initial:be.HIDDEN_SMART_ANIMATE,onAnimationComplete:i}:{},onLayoutAnimationComplete:i,transition:{duration:o.durationSeconds,...o.motionAnimationData}}:{transition:{layout:{duration:0}}}},cssStyles:{...l,...d}}};function Wu(e,t,n,r){let o=n?.durationSeconds??r?.durationSeconds??0,i=n?.motionAnimationData??r?.motionAnimationData??{},s={};for(let[l,u]of Object.entries(e))s[l]=AE(u,!1);let a=n?.perPropertyTransitions??r?.perPropertyTransitions;return{...s,opacity:t,transition:a?{duration:o,...i,...a}:{duration:o,...i}}}function iD(e){let t,n={...e};for(t in n){let r=n[t];r==null&&delete n[t]}return n}function sD(e){let{mask:t,alignmentBaseline:n,fillRule:r,strokeLinecap:o,strokeLinejoin:i,...s}=e;return{correctlyTypedStyles:s,incorrectlyTypedStyles:{mask:t,alignmentBaseline:n,fillRule:r,strokeLinecap:o,strokeLinejoin:i}}}function Ai(e,t,n,r){return e!==ee.NONE?{layout:r?"position":!0,layoutDependency:t?.id??lS,transformTemplate:n?Ku(n):void 0}:void 0}function aD(e,t){return{mode:"popLayout",custom:e,onExitComplete:t}}function on(e){return e?.onTransitionEnd??Ka}function lD(e,t,n,r){if(n)return ee.NONE;let o=r?.smartAnimateType??ee.NONE;return e?ee.INSTANCE_SUBTREE:o!==ee.NONE?o:t?ee.LAYOUT:ee.NONE}var Wo=(e,t)=>Boolean(e===ee.INSTANCE_SUBTREE&&t),uD=(e,t,n,r)=>{let o=iD(e),{correctlyTypedStyles:i}=sD(o),s={[be.VISIBLE_SMART_ANIMATE]:l=>Wu(i,1,l,n),[be.HIDDEN_SMART_ANIMATE]:l=>Wu({},0,l,n)};return{motionTransitionProps:{animate:t?be.VISIBLE_SMART_ANIMATE:"",exit:be.HIDDEN_SMART_ANIMATE,variants:s,...n?{initial:be.HIDDEN_SMART_ANIMATE,onAnimationComplete:r,onLayoutAnimationComplete:r,transition:{duration:n.durationSeconds,...n.motionAnimationData}}:{transition:{duration:0}}},cssStyles:{}}},cD=(e,t,n)=>{if(e===ee.NONE)return{motionTransitionProps:void 0,cssStyles:{}};let r=e===ee.INSTANCE_SUBTREE,o={[be.VISIBLE_SMART_ANIMATE]:s=>Wu({},1,s,t),[be.HIDDEN_SMART_ANIMATE]:s=>Wu({},0,s,t)};return{motionTransitionProps:{...r?{animate:be.VISIBLE_SMART_ANIMATE,exit:be.HIDDEN_SMART_ANIMATE,variants:o}:{},...t?{...r?{initial:be.HIDDEN_SMART_ANIMATE,onAnimationComplete:n}:{},onLayoutAnimationComplete:n,transition:{duration:t.durationSeconds,...t.motionAnimationData}}:{transition:{duration:0}}},cssStyles:{}}};var uS={[gt.NORMAL]:void 0,[gt.PASS_THROUGH]:void 0,[gt.DARKEN]:"darken",[gt.MULTIPLY]:"multiply",[gt.LINEAR_BURN]:void 0,[gt.COLOR_BURN]:"color-burn",[gt.LIGHTEN]:"lighten",[gt.SCREEN]:"screen",[gt.LINEAR_DODGE]:"plus-lighter",[gt.COLOR_DODGE]:"color-dodge",[gt.OVERLAY]:"overlay",[gt.SOFT_LIGHT]:"soft-light",[gt.HARD_LIGHT]:"hard-light",[gt.DIFFERENCE]:"difference",[gt.EXCLUSION]:"exclusion",[gt.HUE]:"hue",[gt.SATURATION]:"saturation",[gt.COLOR]:"color",[gt.LUMINOSITY]:"luminosity"};function zu(e){if(e)return uS[e]}var cS=class{paint;constructor(t){this.paint=t}},I4=e=>{let t=["backgroundSize","backgroundPosition","backgroundRepeat"],n={backgroundImage:"none",backgroundSize:"auto auto",backgroundPosition:"top left",backgroundRepeat:"repeat"},r={};t.forEach(s=>{let a=e.map(l=>l[s]);if(a.some(l=>l!==void 0)){let l=a.map(c=>c??n[s]),u=l.every(c=>c===l[0]);r[s]=u?l[0]:l.join(",")}});let o=e.map(s=>s.backgroundImage);if(o.some(s=>
8647s!==void 0)){let s=o.map(l=>l===void 0?n.backgroundImage:l instanceof _i||l instanceof Vu||l instanceof Bu||l instanceof Uu?l.value:l),a=s.every(l=>l===s[0]);r.backgroundImage=a?o[0]:s.join(", ")}let i=e.find(s=>s.backgroundColor)?.backgroundColor;return i!==void 0&&(r.backgroundColor=i),r},S4=(e,t)=>{if(e.hasBlendMode||t.hasBlendMode||e.useImageTag||t.useImageTag||e.isCustomFill||t.isCustomFill)return!1;let n=e.uniqueTypes.has("IMAGE"),r=t.uniqueTypes.has("IMAGE");if(n!==r&&(e.opacity!==void 0||t.opacity!==void 0))return!1;let o=e.uniqueTypes.size===1&&n,i=t.uniqueTypes.size===1&&r;return!(o&&i&&e.opacity!==t.opacity)};function LE(e=[],t,n,r,o){if(!e.length)return[];let i=[];return e.filter(a=>a.visible!==!1).forEach(a=>{let l=A4(a,t,n,r,o);if(!l)return;let u=a.blendMode&&uS[a.blendMode],c=R4(a),d={hasBlendMode:!!u,useImageTag:dD(l),isCustomFill:l instanceof cS,uniqueTypes:new Set([a.type]),opacity:c},f=i[i.length-1],p=f?.comparator;!!f&&p&&S4(p,d)?(f.backgrounds.push(l),p.uniqueTypes.add(a.type)):i.push({backgrounds:[l],blendMode:u,opacity:c,comparator:d})}),i.map(({backgrounds:a,blendMode:l,opacity:u})=>{if(a[0]instanceof cS)return{backgroundStyles:{},needsBackgroundDiv:!0,customFill:a[0].paint};let{optimizeForTailwindConversion:c}=o.renderOptions,d=a.length===1&&dD(a[0]),f,p,_,T=a.find(m=>m instanceof fD);if(T){a.length>1&&console.warn("Multiple video fills found in background group. Only the first video fill will be used.");let m=T.value;f=m.styles,_=m.videoProps}else if(d){let m=a[0].value;f=m.styles,p=m.imageProps}else{let m=a.reverse().map((E,O)=>{if(E instanceof Dt&&a.length>1&&(c||O!==a.length-1)&&(E=_i.fromColor(E,o.renderOptions)),E instanceof dS)return E.value.styles;if(E instanceof _i||E instanceof Vu||E instanceof Bu||E instanceof Uu)return{backgroundImage:E};if(E instanceof Dt)return{backgroundColor:E.value};throw new te("Unsupported background type")});f=I4(m)}let h=!!p||!!_||u!==void 0||l!==void 0&&Boolean(r.hasChildren);return l!==void 0&&(f.mixBlendMode=l),u!==void 0&&(f.opacity=u),{backgroundStyles:f,imageProps:p,videoProps:_,needsBackgroundDiv:h}})}function R4(e){if((e.type==="VIDEO"||e.type==="IMAGE")&&e.opacity!==void 0&&e.opacity!==1)return x(e.opacity)}function A4(e,t,n,r,o){let{type:i}=e,{renderOptions:s}=o,{shouldOutputVariables:a,codeSyntaxLanguage:l}=s,u=Vt;if(i==="PATTERN")return null;if(i==="CUSTOM")return!s.shouldOutputCustomEffects||!e.customEffectId||!e.visible?null:new cS(e);if(i==="SOLID")return e.color?new Dt(e.color,s,e.opacity,u,e.boundVariables?.color?.resolvedName,l&&e.boundVariables?.color?.resolvedCodeSyntax?.[l]):null;if(i==="VIDEO")return y4(e,t,r);if(i==="IMAGE")return N4(e,t,r.disableImageTag,o);if(Cu(e)){let{gradientStops:c,transform:d,opacity:f}=e,p=c[0]?.color,_=c[0]?.boundVariables?.color?.resolvedName;if(p&&c.every(m=>new Dt(m.color,s).equals(new Dt(p,s)))&&(!a||c.every(m=>m.boundVariables?.color?.resolvedName===_)))return new Dt(p,s,f,u,l&&c[0]?.boundVariables?.color?.resolvedCodeSyntax?.[l]);let T={gradientTransform:d,gradientStops:c,opacity:f},{preferCssGradients:h}=o.renderOptions;switch(i){case"GRADIENT_LINEAR":return new _i(T,u,n,h?ba.CSS:ba.SVG,s);case"GRADIENT_RADIAL":return new Vu(T,u,n);case"GRADIENT_ANGULAR":return new Bu(T,u,n,s);case"GRADIENT_DIAMOND":return new Uu(T,u,n);default:xe(i)}}throw new te(`Unknown paint type: ${i}`)}var dS=class{paint;image;disableImageTag;websiteContext;constructor(t,n,r,o){this.paint=t,this.image=n,this.disableImageTag=r,this.websiteContext=o}useImageTag(){return this.paint.scaleMode!=="TILE"&&!this.disableImageTag}get value(){let{paint:t,image:n}=this,{disableImageOptimization:r}=this.websiteContext.renderOptions,o=this.websiteContext.getAssetURL,s={backgroundImage:`url("${o(n.url)}")`,backgroundRepeat:"no-repeat"},a;switch(t.scaleMode){case"FILL":s.backgroundSize="cover",s.backgroundPosition="center";break;case"FIT":s.backgroundSize="contain",s.backgroundPosition="center";break;case"STRETCH":{let{imageTransform:l}=t;if(!l)s.backgroundSize="100% 100%",s.backgroundPosition="bottom";else{let c=pD(l),{widthPercent:d,heightPercent:f}=c;if(this.useImageTag())a=c;else{s.backgroundSize=`${zn(d)} ${zn(f)}`;let p=l[0][0]===1?0:-l[0][2]/(l[0][0]-1),_=l[1][1]===1?0:-l[1][2]/(l[1][1]-1);s.backgroundPosition=`${zn(p)} ${zn(_)}`}}break}case"TILE":{let l=t.scalingFactor||1,u={width:n.size.x||100,height:n.size.y||100},c=u.width*l,d=u.height*l,f=`${c}px`,p=`${d}px`;if(!r){let _=Math.min(u.width,c*3),T=`url(${o(n.url,{width:c})}) 1x`;for(let h=2;c*h<=_;h++)T+=`, url(${o(n.url,{width:c*h})}) ${h}x`;s.backgroundImage=`image-set(${T})`}s.backgroundSize=t.rotation%360===0||t.rotation%360===180?`${f} ${p}`:`${p} ${f}`,s.backgroundPosition="top left",delete s.backgroundRepeat;break}default:xe(t.scaleMode)}if(this.useImageTag()){let l={url:n.url,size:n.size,cropDivInfo:a},{backgroundImage:u,backgroundRepeat:c,backgroundSize:d,backgroundPosition:f,...p}=s,_={...p};return f!=="center"&&(_.objectPosition=f),d!=="100% 100%"&&(_.objectFit=d),{styles:_,imageProps:l}}return{styles:s}}};function CE(e){return e.gifRef||e.imageRef}var N4=(e,t,n,r)=>{let o=t?.[CE(e)];return o.type,new dS(e,o,n,r)},dD=e=>e instanceof dS&&e.useImageTag(),fD=class{paint;video;isDecorative;constructor(t,n,r){this.paint=t,this.video=n,this.isDecorative=r.isDecorativeImage||!1}get value(){let{paint:t,video:n}=this,r={},o;switch(t.scaleMode){case"FIT":r.objectFit="contain";break;case"FILL":r.objectFit="cover";break;case"STRETCH":{let{imageTransform:s}=t;s?o=pD(s):r.objectFit="contain";break}case"TILE":break}let i={url:n.url,hash:t.videoRef,autoplay:t.autoplay??!1,mediaLoop:t.mediaLoop??!1,muted:t.muted??!1,showControls:t.showControls??!1,cropDivInfo:o,isDecorative:this.isDecorative};return{styles:r,videoProps:i}}}
8647,y4=(e,t,n)=>{let r=t?.[e.videoRef];return r.type,new fD(e,r,n)},pD=e=>{let t=1/(e[0][0]||1),n=1/(e[1][1]||1),r=-e[0][2]/(e[0][0]||1),o=-e[1][2]/(e[1][1]||1);return{widthPercent:t,heightPercent:n,leftPercent:r,topPercent:o}};function fS(e){let t="fills"in e?e.fills:void 0;return t!=null&&t.some(n=>n.visible!==!1&&n.opacity!==0&&(n.type!=="SOLID"||n.color.a!==0))}function mD(e,t){let n="effects"in e?e.effects??[]:[],r=t.length===0?n:[...t,...n];if(fS(e))return{ownEffects:r,childEffects:[]};let o=[],i=[];for(let s of r)s.type==="INNER_SHADOW"?i.push(s):o.push(s);return{ownEffects:o,childEffects:i}}function pS(e,t){return mD(e,t??[]).ownEffects}function yf(e,t){let n=mD(e,t??[]).childEffects;return n.length>0?n:void 0}function ED(e,t=[],n){return{boxShadow:b4(e,t,n),filter:gD(t,n).filter,backdropFilter:_S(t,n).backdropFilter}}function b4(e,t,n){return[...t].reverse().map(o=>{if(o.type==="DROP_SHADOW")return _D(e,[o],n).boxShadow;if(o.type==="INNER_SHADOW")return ES(e,[o],n).boxShadow}).filter(o=>!!o).join(",")||void 0}function _D(e,t,n){let{codeSyntaxLanguage:r,shouldOutputVariables:o}=n;return{boxShadow:[...t].reverse().map(s=>{if(s.type!=="DROP_SHADOW")return;let a=`${x(s.offset.x)}px`,l=`${x(s.offset.y)}px`,u=`${x(s.radius)}px`,c=`${x(s.spread||0)}px`,d=Dt.fromRGBA(s.color,n,s.boundVariables?.color?.resolvedName,r&&s.boundVariables?.color?.resolvedCodeSyntax?.[r]).value;return o&&(a=le(r&&s.boundVariables?.offsetX?.resolvedCodeSyntax?.[r],s.boundVariables?.offsetX?.resolvedName,a)??a,l=le(r&&s.boundVariables?.offsetY?.resolvedCodeSyntax?.[r],s.boundVariables?.offsetY?.resolvedName,l)??l,u=le(r&&s.boundVariables?.radius?.resolvedCodeSyntax?.[r],s.boundVariables?.radius?.resolvedName,u)??u,c=le(r&&s.boundVariables?.spread?.resolvedCodeSyntax?.[r],s.boundVariables?.spread?.resolvedName,c)??c),mS(e)||(c="0px"),`${a} ${l} ${u} ${c} ${d}`}).filter(s=>!!s).join(",")||void 0}}var TD=2;function L4(e){return e/TD}function C4(e,t){let{codeSyntaxLanguage:n,shouldOutputVariables:r}=t;return{filter:[...e].reverse().map(s=>{if(s.type!=="DROP_SHADOW")return;let a=`${x(s.offset.x)}px`,l=`${x(s.offset.y)}px`,u=`${x(L4(s.radius))}px`,c=`${x(s.radius)}px`,d=Dt.fromRGBA(s.color,t,s.boundVariables?.color?.resolvedName,n&&s.boundVariables?.color?.resolvedCodeSyntax?.[n]).value;return r&&(a=le(n&&s.boundVariables?.offsetX?.resolvedCodeSyntax?.[n],s.boundVariables?.offsetX?.resolvedName,a)??a,l=le(n&&s.boundVariables?.offsetY?.resolvedCodeSyntax?.[n],s.boundVariables?.offsetY?.resolvedName,l)??l,u=uE(n&&s.boundVariables?.radius?.resolvedCodeSyntax?.[n],s.boundVariables?.radius?.resolvedName,c)?.divide(Y.number(TD)).toString({forTailwind:t.optimizeForTailwindConversion})??u),`drop-shadow(${a} ${l} ${u} ${d})`}).filter(s=>!!s).join(" ")||void 0}}function P4(e,t){let n=t.filter(p=>p.type==="DROP_SHADOW");if(n.length===0)return!1;let r=fS(e),o="fills"in e?e.fills:void 0,i=r&&o!=null&&!o.some(p=>p.visible!==!1&&p.opacity===1&&(p.type==="SOLID"&&p.color.a===1||Cu(p)&&p.gradientStops.every(_=>_.color.a===1))),s="strokes"in e?e.strokes:void 0,a=s!=null&&s.some(p=>p.visible!==!1&&p.opacity!==0&&(p.type!=="SOLID"||p.color.a!==0)),l=("clipsContent"in e?!e.clipsContent:!1)&&e.materializedChildNodeProps?.length,u=n.some(p=>p.spread!==0),c=n[0].color,d=!n.some(p=>!Ve(p.color.r,c.r)||!Ve(p.color.g,c.g)||!Ve(p.color.b,c.b)),f=n.every(p=>!p.showShadowBehindNode);return r&&!l||(!r&&a||i)&&f?!1:!!(!u&&d)}function hD(e,t,n){let r=gD(t,n);if(P4(e,t)){let o=C4(t,n).filter,i=[r?.filter,o].filter(Boolean);return{boxShadow:void 0,filter:i.length>0?i.join(" "):void 0}}else return{boxShadow:_D(e,t,n).boxShadow,filter:r?.filter}}function mS(e){return e.type==="RECTANGLE"?!0:e.type==="FRAME"||e.type==="SLOT"?e.clipsContent&&fS(e):!1}function D4(e){return e.some(t=>(t.type==="DROP_SHADOW"||t.type==="INNER_SHADOW")&&t.spread!==0)}function OD(e){"effects"in e&&e.effects&&D4(e.effects)&&!mS(e)&&(e.effects=e.effects.map(t=>t.type==="DROP_SHADOW"||t.type==="INNER_SHADOW"?{...t,spread:0}:t))}function ES(e,t,n){let{codeSyntaxLanguage:r,shouldOutputVariables:o}=n;return{boxShadow:[...t].reverse().map(s=>{if(s.type!=="INNER_SHADOW")return;let a=`${x(s.offset.x)}px`,l=`${x(s.offset.y)}px`,u=`${x(s.radius)}px`,c=`${x(s.spread||0)}px`,d=Dt.fromRGBA(s.color,n,s.boundVariables?.color?.resolvedName,r&&s.boundVariables?.color?.resolvedCodeSyntax?.[r]).value;return o&&(a=le(r&&s.boundVariables?.offsetX?.resolvedCodeSyntax?.[r],s.boundVariables?.offsetX?.resolvedName,a)??a,l=le(r&&s.boundVariables?.offsetY?.resolvedCodeSyntax?.[r],s.boundVariables?.offsetY?.resolvedName,l)??l,u=le(r&&s.boundVariables?.radiu
8647s?.resolvedCodeSyntax?.[r],s.boundVariables?.radius?.resolvedName,u)??u,c=le(r&&s.boundVariables?.spread?.resolvedCodeSyntax?.[r],s.boundVariables?.spread?.resolvedName,c)??c),mS(e)||(c="0px"),`inset ${a} ${l} ${u} ${c} ${d}`}).filter(s=>!!s).join(",")||void 0}}function gD(e,t){let{shouldOutputVariables:n,codeSyntaxLanguage:r}=t,o=e.find(s=>s.type==="LAYER_BLUR");if(!o)return{filter:void 0};let i=`${x(o.radius/2)}px`;if(n){let s=le(r&&o.boundVariables?.radius?.resolvedCodeSyntax?.[r],o.boundVariables?.radius?.resolvedName,i);s&&(i=s)}return{filter:`blur(${i})`}}function _S(e,t){let{shouldOutputVariables:n,codeSyntaxLanguage:r}=t,o=e.find(s=>s.type==="BACKGROUND_BLUR");if(!o)return{backdropFilter:void 0};let i=`${x(o.radius/2)}px`;if(n){let s=le(r&&o.boundVariables?.radius?.resolvedCodeSyntax?.[r],o.boundVariables?.radius?.resolvedName,i);s&&(i=s)}return{backdropFilter:`blur(${i})`}}function ID(e=[],t){let{shouldOutputVariables:n,codeSyntaxLanguage:r}=t;return e.reduce((o,i)=>{if(i.type==="INNER_SHADOW"||i.type==="BACKGROUND_BLUR")return o;if(i.type==="DROP_SHADOW"){let s=`${x(i.offset.x)}px`,a=`${x(i.offset.y)}px`,l=`${x(i.radius)}px`,u=Dt.fromRGBA(i.color,t,i.boundVariables?.color?.resolvedName,r&&i.boundVariables?.color?.resolvedCodeSyntax?.[r]).value;n&&(s=le(r&&i.boundVariables?.offsetX?.resolvedCodeSyntax?.[r],i.boundVariables?.offsetX?.resolvedName,s)??s,a=le(r&&i.boundVariables?.offsetY?.resolvedCodeSyntax?.[r],i.boundVariables?.offsetY?.resolvedName,a)??a,l=le(r&&i.boundVariables?.radius?.resolvedCodeSyntax?.[r],i.boundVariables?.radius?.resolvedName,l)??l),o.textShadow=`${o.textShadow?.length?`${o.textShadow},`:""}${s} ${a} ${l} ${u}`}else if(i.type==="LAYER_BLUR"){let s=`${x(i.radius/2)}px`;n&&(s=le(r&&i.boundVariables?.radius?.resolvedCodeSyntax?.[r],i.boundVariables?.radius?.resolvedName,s)??s),o.filter=`blur(${s})`}return o},{})}function SD(e,t,n){let{collectionId:r,itemId:o}=n;Ae(r!==void 0,"collectionId is required for CMS binding context"),Ae(o!==void 0,"itemId is required for CMS binding context");let i=e.collectionById.get(r);Ae(i!==void 0,`collection with id ${r} not found in CMS Data State`);let s=i.itemById[o];Ae(s!==void 0,`item with id ${o} not found in CMS Collection ${i.id}`);let a=new Map;s.fields.forEach(u=>{a.set(u.fieldSchemaId,u)});let l=i.fieldSchemas.find(u=>u.role==="slug"||u.type==="slug")?.id;return Ae(l!==void 0,`slug field for item id ${o} not found in CMS Collection ${i.id}`),{item:s,fieldsBySchemaId:a,slugFieldSchemaId:l,guidToUrl:t,fieldBindingProperties:n}}function Xu(e,t){let n=e.fieldsBySchemaId.get(t.fieldSchemaId);if(n!==void 0)return n.value}function RD(e,t){return e.slugFieldSchemaId===t.fieldSchemaId}function AD(e){let t=new Date(e);return e===""||isNaN(t.getTime())?{formattedValue:e,originalValue:e}:v4(t,e)}function v4(e,t){return{formattedValue:e.toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric",hour12:!0,timeZone:"UTC"}),originalValue:t}}function x4(e,t){Ae(e!==null,"GUID should not be null");let n=ot(e),r=t.get(n);return Ae(r!==void 0,`url not in map for GUID ${n}`),Ae(r?.length>0,`url empty for GUID ${n}`),r}function ND(e,t){let n=JSON.parse(e),r=n.guid?x4(n.guid,t):n.url;Ae(r!==void 0,"url is undefined");let o=n.guid?"NODE":"URL";return{url:r,type:o}}function yD(e,t){let n=`/${e}`;return{url:t.endsWith(n)&&t!==n?t:`${t}${n}`,type:"NODE"}}function TS(e){let t={type:e.type};return e.type==="NODE"?t.nodeID=e.url:t.url=e.url,t}function bD(e){let t={connectionURL:e.url,connectionType:e.type==="NODE"?"INTERNAL_NODE":"URL"};return t.connectionType==="INTERNAL_NODE"&&(t.navigationType="NAVIGATE"),t}function hS(e,t,n){let r=Xu(e,t);if(r!==void 0)return RD(e,t)?(Ae(n!==void 0,`baseUrl is undefined for slug field binding on item ${e.item.id}`),yD(r,n)):ND(r,e.guidToUrl)}function M4(e,t,n){if(n.characters){if(e.type==="TEXT")return e.characters=Xu(t,n.characters)??"",!0;console.warn(`text binding unsupported for ${e.type} node ${e.id}`)}return!1}function k4(e,t,n){if(n.date)if(e.type==="TEXT"){let r=Xu(t,n.date);if(r===void 0)return e.characters="",!0;let o=AD(r);return e.characters=o.formattedValue,!0}else console.warn(`date in text binding unsupported for ${e.type} node ${e.id}`);return!1}function G4(e,t,n){if(n.hyperlink)if(e.type==="TEXT"){let r=hS(t,n.hyperlink,e.style.hyperlink?.nodeID);return r===void 0?(e.style.hyperlink=void 0,!1):(e.style.hyperlink||(e.style.hyperlink={}),Object.assign(e.style.hyperlink,TS(r)),!0)}else console.warn(`hyperlink binding unsupported for ${e.type} node ${e.id}`);return!1}
8647function F4(e,t,n){if(n.richText)if(e.type==="CMS_RICH_TEXT"){let r=Xu(t,n.richText);return e.richText=r===void 0?"":r,!0}else console.warn(`rich text binding unsupported for ${e.type} node ${e.id}`);return!1}function w4(e,t){let n=t.fieldBindingProperties.boundCmsVariables;if(!n)return!1;let r=[M4,k4,G4,F4],o=!1;for(let i of r)try{i(e,t,n)&&(o=!0)}catch(s){console.error(`Error applying binding function ${i.name} to node ${e.id}:`,s);continue}return o}function B4(e,t){let n=t.fieldBindingProperties.styleOverrideTableBoundCmsVariables;if(!n||Object.keys(n).length===0)return!1;if(e.type!=="TEXT")return console.warn(`styleOverrideTable hyperlink binding unsupported for ${e.type} node ${e.id}`),!1;let r=!1;for(let[o,i]of Object.entries(n)){let s=e.styleOverrideTable[o];if(i?.hyperlink&&s){let a=hS(t,i.hyperlink,s.hyperlink?.nodeID);if(a===void 0){s.hyperlink=void 0,r=!0;continue}s.hyperlink||(s.hyperlink={}),Object.assign(s.hyperlink,TS(a)),r=!0}}return r}function U4(e,t){let n=t.fieldBindingProperties.interactionsBoundCmsVariables;if(!n||Object.entries(n).length===0)return!1;if(!("interactions"in e))return console.warn(`interactions not defined for hyperlink prototype interaction binding on node ${e.id}`),!1;let r=!1,o=e.interactions??[];for(let i of o)for(let s of i.actions||[]){let a=s.linkParam?.value,l;if(a&&"fieldSchemaId"in a?l=a.fieldSchemaId:s.cmsTarget?.fieldSchemaId&&(l=s.cmsTarget?.fieldSchemaId),!!l){for(let u of n)if(l===u.hyperlink?.fieldSchemaId){let c=hS(t,u.hyperlink,s.connectionURL);if(c===void 0){e.interactions?.splice(e.interactions.indexOf(i),1),r=!0;continue}Object.assign(s,bD(c)),r=!0}}}return r}function V4(e,t){let n=t.fieldBindingProperties.fillPaintsBoundCmsVariables;if(!n||Object.entries(n).length===0)return!1;if(!("fills"in e))return console.warn(`fills not defined for image fill binding on node ${e.id}`),!1;let r=!1;for(let o of n){if(!o.boundVariables.image)continue;let i=o.boundVariables.image.fieldSchemaId,s=-1;if(e.fills){for(let c=0;c<e.fills.length;c++)if(e.fills[c]?.imageVar?.value?.fieldSchemaId===i){s=c;break}}if(s===-1){console.warn(`No fill found with fieldSchemaId ${i} for node ${e.id}`);continue}let a=Xu(t,o.boundVariables.image);if(a===void 0){s!==-1&&(e.fills?.splice(s,1),r=!0);continue}let u=e.fills[s];if(u){let c=JSON.parse(a);u.imageRef=c.image,e.accessibleLabel=c.altText,r=!0}}return r}function H4(e){return["FRAME","INSTANCE","RECTANGLE","TEXT","CMS_RICH_TEXT"].includes(e)}function LD(e,t,n){if(!H4(e.type)||!t||!("cmsItemFieldBindingProperties"in e)||!e.cmsItemFieldBindingProperties)return!1;if(!e.cmsItemFieldBindingProperties.itemId)return console.error("Missing itemId for bound node",e.id),!1;let r=SD(t,n,e.cmsItemFieldBindingProperties),o=[w4,B4,U4,V4],i=!1;for(let s of o)try{s(e,r)&&(i=!0)}catch(a){console.error(`Error applying binding function ${s.name} to node ${e.id}:`,a);continue}return i}function W4(e){let t=Ri(e);return t.type="CMS_RICH_TEXT",t}function CD(e){return e.type==="TEXT"&&e.cmsItemFieldBindingProperties?.boundCmsVariables?.richText?W4(e):e}var DD=v(_e()),Yo=v(W());var OS=()=>Promise.resolve(),PD=e=>{OS=e},PE=(e,t)=>OS?OS(e,t):Promise.resolve();var bf=(0,Yo.createContext)({reportError:Ka,setMaterializationError:Ka});function vD({children:e,reportError:t}){let n=(0,Yo.useRef)({map:new Map,updatedSinceLastRender:!1});(0,Yo.useEffect)(()=>{let i=setInterval(()=>{n.current.updatedSinceLastRender&&(PE("updateMaterializationErrors",{errors:Array.from(n.current.map.values())}),n.current.updatedSinceLastRender=!1)},100);return()=>clearInterval(i)},[n]);let r=(0,Yo.useCallback)((i,s)=>{let a=n.current;s&&s.errorMessage?(console.error(`New error in ${s.nodeName} (${s.nodeId})`,s.errorMessage),a.map.set(i,s),a.updatedSinceLastRender=!0):a.map.has(i)&&(a.map.delete(i),a.updatedSinceLastRender=!0)},[n]),o=(0,Yo.useMemo)(()=>({reportError:t,setMaterializationError:r}),[t,r]);return(0,DD.jsx)(bf.Provider,{value:o,children:e})}var gS=v(_e()),Rs=v(W());var xD=(0,Rs.createContext)(null),fe=()=>(0,Rs.useContext)(xD);function IS({websiteData:e,cmsBundleData:t,getCodeComponentURL:n,history:r,getAssetURL:o,getFontURL:i,getVideoURL:s,children:a,env:l,setLocation:u,preloadLocation:c,renderOptions:d,renderElement:f,renderFragment:p,withBaseStyles:_=!0,addHeadTag:T,addBodyScript:h,loadComponentsOverNetwork:m=!1,isFigmake:E=!1,enableMetaTags:O=!1,atomStore:g,globalVariableState:I,inheritedVariantPropertiesCache:S,processedNodesCache:A,computedVariantCache:R,sitesRenderers:y}){let b=Re(e.siteSettings,{store:g}).labs,L=(0,Rs.useMemo)(()=>new Map,[]),D=(0,Rs.useMemo)(()=>new Map,[]),F=(0,Rs.useMemo)(()=>({websiteData:e,cmsBundleData:t,history:r,getAssetURL:o,getFontURL:i,getVideoURL:s,getCodeComponentURL:n,env:l,setLocation:u,preloadLocation:c,withBaseStyles:_,addHeadTag:T,addBodyScript:h,loadComponentsOverNetwork:m,labs:b,is
8647Figmake:E,enableMetaTags:O,renderOptions:d,atomStore:g,fontsByStyleElId:L,globalVariableState:I,inheritedVariantPropertiesCache:S,processedNodesCache:A,computedVariantCache:R,instanceSwapComponentCache:D,renderElement:f,renderFragment:p,sitesRenderers:y}),[e,t,r,o,i,s,n,l,u,c,_,T,h,m,O,b,E,d,g,L,I,S,A,R,D,f,p,y]);return(0,gS.jsx)(xC,{store:g,children:(0,gS.jsx)(xD.Provider,{value:F,children:a})})}var ja=v(W());var kD=v(W());var Xr=class{map;fallback;disableErrors;constructor(t,n){this.map=new Map,this.fallback=t,this.disableErrors=n??!1}get(t,n=!1){return this.map.has(t)?this.map.get(t):(n===!1&&this.disableErrors===!1&&(this.map.has(t),`${JSON.stringify(t)}`,void 0),this.fallback)}set(t,n){if(this.map.has(t)){this.disableErrors===!1&&(Ue(this.map.get(t),n),`${JSON.stringify(t)}`,void 0);return}this.map.set(t,n)}_has(t){return this.map.has(t)}};var GD={title:""},Lf=de(!1),Cf=de(null),$u=de(void 0),MD=de(void 0),DE=de(e=>({width:e($u),height:e(MD)}),(e,t,n)=>{t($u,n.width),t(MD,n.height)}),K4={type:"GENERATED_ASSET",url:"",size:{x:0,y:0},format:"PNG",offsets:{top:{value:0,unit:"PERCENT"},right:{value:0,unit:"PERCENT"},bottom:{value:0,unit:"PERCENT"},left:{value:0,unit:"PERCENT"}}},SS=hE({type:"FRAME",id:"missing",name:"missing",visible:!1,absoluteBoundingBox:{x:0,y:0,width:0,height:0},size:{x:0,y:0},relativeTransform:[[1,0,1],[0,1,1]],children:[]});function FD(){let e={collectionById:new Xr(void 0),slugByItemId:new Xr(void 0)};return yE(e),e}function wD(e,t){za(e.collectionById,t.collectionById),za(e.slugByItemId,t.slugByItemId)}function vE(){let e={siteSettings:de(GD),roots:de([]),nodeById:new Xr(SS),fonts:new Xr(void 0,!0),assets:new Xr(de(K4)),assetIdToGuid:new Xr(void 0),guidToUrl:new Xr(void 0),animateRootIds:new Set,stablePathToAssetInfo:new Xr(void 0,!0),stablePathToConstraints:new Xr(void 0,!0),compiledCode:de(""),globalStyles:de(""),sourceCodeHash:de("")};return yE(e),yE(e.assets),e}function xE(e,t,n){ju(e.siteSettings,t.siteSettings??GD,n);for(let[r,o]of Object.entries(t.nodeById))e.nodeById.set(r,tS(o,{nodeId:o?.id}));ju(e.roots,t.roots,n),za(e.fonts,t.fonts),za(e.assetIdToGuid,t.assetIdToGuid),za(e.guidToUrl,t.guidToUrl),RS(e,t.assets,n),t.stablePathToAssetInfo&&za(e.stablePathToAssetInfo,t.stablePathToAssetInfo),t.stablePathToConstraints&&za(e.stablePathToConstraints,t.stablePathToConstraints),z4(e.animateRootIds,t.animateRootIds),ju(e.compiledCode,t.compiledCode,n),ju(e.globalStyles,t.globalStyles,n),ju(e.sourceCodeHash,t.sourceCodeHash,n)}function RS(e,t,n){X4(e.assets,t,n)}function z4(e,t){e.clear(),t.forEach(n=>{e.add(n)})}function za(e,t){for(let[n,r]of Object.entries(t))e.set(n,r)}function X4(e,t,n,r){for(let[o,i]of Object.entries(t)){let s=e._has(o)?e.get(o):void 0,a=r?r(i):i;s===void 0?e.set(o,de(a)):ju(s,a,n)}}function ju(e,t,n){Ue(n.get(e),t)||n.set(e,t)}function BD(e,t){let n=(0,kD.useMemo)(()=>de(e),[e]);return Re(t||n)}var qu=v(W());var Z=[""],Zu={transparent:Z,...Object.fromEntries(Object.values(cE).map(e=>[e,Z]))},j4={"-webkit-text-fill-color":{partialSupportOk:!0,values:{...Zu}},"-ms-overflow-style":{partialSupportOk:!0,values:{none:!0}},"-webkit-box-orient":{alternateName:"box-orient",partialSupportOk:!0,values:{vertical:Z}}},UD={properties:{"align-items":{values:{"flex-start":["flex_context"],"flex-end":["flex_context"],center:Z,baseline:["flex_context.baseline"],start:["grid_context.start_end"],end:["grid_context.start_end"]},except:["flex_context.last_baseline","flex_context.safe_unsafe","flex_context.start_end"]},"align-self":{values:{"flex-start":["flex_context"],"flex-end":["flex_context"],stretch:["flex_context.stretch","grid_context"],center:Z},except:["flex_context.last_baseline","flex_context.safe_unsafe","position_absolute_context"]},"align-content":{values:{"flex-start":["flex_context"],"flex-end":["flex_context"],center:Z,"space-between":["flex_context"],baseline:["flex_context.baseline"],stretch:["flex_context.stretch"]},except:["flex_context.last_baseline","flex_context.safe_unsafe","flex_context.start_end","multicol_context","block_context"]},animation:{values:{scroll:Z,linear:Z,none:Z},except:["animation-timeline_included"]},"animation-play-state":{values:{paused:!0}},"animation-delay":{},"animation-direction":{},"animation-timing-function":{},"aspect-ratio":{values:{auto:!0}},"backdrop-filter":{},"backface-visibility":{},background:{values:{none:Z}},"background-clip":{values:{"padding-box":!0,text:!0}},"background-color":{values:Zu},"background-image":{values:{none:!0}},"background-position":{values:{bottom:!0,left:!0,right:!0,top:!0,center:!0}},"background-repeat":{values:{repeat:!0,"no-repeat":!0}},"background-size":{values:{auto:!0,contain:!0,cover:!0}},border:{values:{none:Z,solid:Z}},"border-bottom-left-radius":{},"border-bottom-right-radius":{},"border-bottom-width":{},"border-bottom-style":{values:{solid:Z,dashed:Z,none:Z}},"border-bottom-color":{},"border-color":{values:Zu},"border-left-width":{},"border-radius":{},"border-right-width":{},"border-style":{values:{solid:!0,dashed:!0,none:!0}},"border-top-left-radius":{},"border-top-right-radius":{},"border-top-width":{},bottom:{values:{auto:!0}},"box-shadow":{values:{inset:!0,...Zu}},"box-sizing":{values:{"border-box":!0}},color:{values:{revert:Z,...Zu}},"column-gap":{},"container-type":{values:{size:!0}},content:{except:["none_applies_to_elements","alt_text"]},cursor:{values:{pointer:!0,none:!0},except:["url_positioning_syntax"]},direction:{values:{ltr:!0,rtl:!0},except:["vertical_slider_direction"]},display:{values:{block:!0,"inline-block":!0,grid:!0,flex:!0,contents:!0,none:!0,"inline-grid":!0,"-webkit-box":!0},except:["contents.contents_unusual","contents.focusable_elements","none.option_is_hidden","is_transitionable","keyframe_animatable","multi-keyword_values"]},filter:{},flex:{values:{auto:Z}},"flex-direction":{values:{column:!0,"column-reverse":!0,row:!0,"row-reverse":!0}},"flex-shrink":{},"flex-wrap":{values:{wrap:!0}},"font-family":{values:{serif:Z,"sans-serif":Z}},"font-feature-settings":{},"font-size":{},"font-style":{values:{italic:!0,normal:!0}},"font-synthesis":{values:{none:!0},partialSupportOk:!0},"font-variant-caps":{values:{normal:!0,"small-caps":!0,"all-small-caps":!0}},"font-variation-settings":{values:{normal:Z}},"font-weight":{values:{normal:!0,bold:!0}},gap:{},"grid-column":{values:{span:Z}},"grid-row":{values:{span:Z}},"grid-template-columns":{values:{"max-content":!0}},"grid-auto-flow":{values:{row:!0}},"grid-template-rows":{values:{"max-content":!0}},height:{values:{auto:!0},except:["fit-content_function"]},inset:{},isolation:{values:{isolate:Z}},"justify-content":{values:{"flex-start":["flex_context"],"flex-end":["flex_context"],center:Z,"space-between":["flex_context"]},except:["flex_context.safe_unsafe","flex_context.start_end"]},"justify-items":{values:{"flex-start":["flex_context"],"flex-end":["flex_context"],center:Z,baseline:["flex_context"],start:["grid_context","flex_context"],end:["grid_context","flex_context"]}},"place-items":{values:{"flex-start":["flex_context"],"flex-end":["flex_context"],center:Z,baseline:["flex_context"],start:["grid_context","flex_context"],end:["grid_context","flex_context"]}},"justify-self":{values:{"flex-start":["grid_context"],"flex-end":["grid_context"],center:Z,baseline:["grid_context"],start:["grid_context"],end:["grid_context"],stretch:["grid_context"]},except:["position_absolute_context"]}
8647,left:{values:{auto:!0}},"letter-spacing":{},"line-height":{values:{normal:!0}},"list-style":{values:{none:Z}},"list-style-position":{values:{inside:!0}},"list-style-type":{values:{"lower-alpha":!0,"lower-roman":!0,decimal:!0,circle:!0}},margin:{values:{auto:!0}},"margin-bottom":{values:{auto:!0}},"margin-inline-start":{},"margin-left":{values:{auto:!0}},"margin-right":{values:{auto:!0}},"margin-top":{values:{auto:!0}},"mask-image":{needsPrefix:"-webkit-"},"mask-mode":{values:{alpha:!0,luminance:!0}},"mask-size":{needsPrefix:"-webkit-"},"mask-position":{needsPrefix:"-webkit-",values:{auto:Z}},"mask-repeat":{needsPrefix:"-webkit-",values:{"no-repeat":Z}},"mask-clip":{needsPrefix:"-webkit-",values:{"no-clip":Z}},"mask-origin":{needsPrefix:"-webkit-"},"mask-composite":{values:{intersect:!0}},"mask-type":{values:{alpha:!0,luminance:!0}},"max-width":{values:{none:!0},except:["fit-content_function"]},"max-height":{except:["fit-content_function"]},"min-width":{values:{auto:!0},except:["fit-content_function"]},"min-height":{except:["fit-content_function"]},"mix-blend-mode":{values:{darken:Z,multiply:Z,"plus-lighter":!0,"color-burn":Z,lighten:Z,screen:Z,"color-dodge":Z,overlay:Z,"soft-light":Z,"hard-light":Z,difference:Z,exclusion:Z,huge:Z,saturation:Z,color:Z,luminosity:Z}},"object-fit":{values:{contain:!0,cover:!0}},"object-position":{values:{bottom:Z,left:Z,right:Z,top:Z,center:Z}},opacity:{},order:{},overflow:{values:{auto:!0,hidden:!0,clip:!0,scroll:!0,visible:!0}},"overflow-x":{values:{auto:!0,hidden:!0,clip:!0,scroll:!0,visible:!0}},"overflow-y":{values:{auto:!0,hidden:!0,clip:!0,scroll:!0,visible:!0}},padding:{},"padding-bottom":{},"padding-inline-start":{},"padding-left":{},"padding-top":{},"padding-right":{},perspective:{},"perspective-origin":{values:{center:!0,top:!0,bottom:!0,left:!0,right:!0}},"pointer-events":{values:{none:Z,auto:Z}},position:{values:{absolute:!0,sticky:!0,relative:!0,fixed:!0}},right:{values:{auto:!0}},"row-gap":{},"scrollbar-width":{values:{none:!0}},"text-align":{values:{left:!0,right:!0,center:!0,justify:!0,start:!0,end:!0}},"text-box-edge":{values:{cap:Z,alphabetic:Z}},"text-box-trim":{values:{"trim-both":Z}},"text-decoration":{except:["includes_thickness","includes_color-and-style"],values:{none:Z}},"text-decoration-color":{},"text-decoration-line":{values:{none:!0,underline:!0,"line-through":!0}},"text-decoration-skip-ink":{values:{none:!0}},"text-decoration-style":{values:{solid:Z,wavy:Z,dotted:Z}},"text-decoration-thickness":{values:{"from-font":!0}},"text-indent":{},"text-overflow":{values:{ellipsis:!0},except:["two_value_syntax"]},"text-shadow":{},"text-transform":{values:{none:!0,uppercase:!0,lowercase:!0,capitalize:!0},except:["greek_accented_characters","dutch_ij_digraph"]},"text-underline-offset":{},top:{values:{auto:!0}},"text-underline-position":{values:{"from-font":!0}},transform:{},"transform-origin":{values:{top:!0,left:!0}},"transform-style":{values:{"preserve-3d":!0}},"transition-duration":{},"transition-property":{values:{all:!0,transform:Z}},"transition-timing-function":{values:{"ease-in-out":Z}},"transition-delay":{},"vertical-align":{values:{super:!0}},"white-space":{values:{pre:!0,"pre-wrap":!0,nowrap:!0},except:["svg_elements","shorthand_values"]},width:{values:{auto:!0,"min-content":!0},except:["fit-content_function"]},"word-break":{values:{"break-word":!0}},"z-index":{},"-webkit-text-size-adjust":{alternateName:"text-size-adjust",partialSupportOk:!0},"-webkit-tap-highlight-color":{partialSupportOk:!0,values:{...Zu}},"-webkit-font-smoothing":{alternateName:"font-smooth",partialSupportOk:!0,values:{antialiased:Z}},"-webkit-line-clamp":{alternateName:"line-clamp"},...j4},functionTypes:{calc:{key:"types.calc",except:["calc.color_component"]},var:{key:"types.var"},min:{key:"types.min"},max:{key:"types.max"},matrix:{key:"types.transform-function.matrix"},matrix3d:{key:"types.transform-function.matrix3d"},perspective:{key:"types.transform-function.perspective"},rotate:{key:"types.transform-function.rotate"},rotateX:{key:"types.transform-function.rotateX"},rotateY:{key:"types.transform-function.rotateY"},rotateZ:{key:"types.transform-function.rotateZ"},rotate3d:{key:"types.transform-function.rotate3d"},translate:{key:"types.transform-function.translate"},translateX:{key:"types.transform-function.translateX"},translateY:{key:"types.transform-function.translateY"},translateZ:{key:"types.transform-function.translateZ"},translate3d:{key:"types.transform-function.translate3d"},skew:{key:"types.transform-function.skew"}
8647,skewX:{key:"types.transform-function.skewX"},skewY:{key:"types.transform-function.skewY"},scale:{key:"types.transform-function.scale"},scaleX:{key:"types.transform-function.scaleX"},scaleY:{key:"types.transform-function.scaleY"},scale3d:{key:"types.transform-function.scale3d"},hypot:{key:"types.hypot"},cos:{key:"types.cos"},atan2:{key:"types.atan2"},rgb:{key:"types.color"},rgba:{key:"types.color"},clamp:{key:"types.clamp"},blur:{key:"types.filter-function.blur"},"drop-shadow":{key:"types.filter-function.drop-shadow"},"linear-gradient":{key:"types.gradient.linear-gradient",except:["gradient.linear-gradient.hue_interpolation_method","gradient.linear-gradient.interpolation_color_space","gradient.linear-gradient.single_color_stop"]},"image-set":{key:"types.image.image-set"},repeat:{key:"properties.grid-template-rows.repeat"},minmax:{key:"properties.grid-template-rows.minmax"},"fit-content":{key:"properties.grid-template-rows.fit-content"}},units:{px:{key:"types.length",except:["length.container_query_length_units","length.viewport_percentage_units_dynamic","length.viewport_percentage_units_large","length.viewport_percentage_units_small"]},em:{key:"types.length.em"},vw:{key:"types.length.vw"},vh:{key:"types.length.vh"},dvw:{key:"types.length.viewport_percentage_units_dynamic"},cqw:{key:"types.length.container_query_length_units"},cqh:{key:"types.length.container_query_length_units"},deg:{key:"types.angle.deg"},x:{key:"types.resolution.x"},fr:{key:"types.flex"},s:{key:"types.time"}}};var $4=new Map,Z4=new Map;for(let[e,t]of Object.entries(UD.properties))if(t.needsPrefix){let n=`${t.needsPrefix}${e}`;$4.set(n,e),Z4.set(e,n)}function Xa({str:e,hashPrefix:t,isUniqueKey:n}){let r=(l,u)=>{let c=`${t}${Math.abs(l).toString(36)}`;return u?`${c}_${u}`:c},o=0,i=0,s,a=0;for(;o<5;){i=0;for(let l=0;l<e.length;l++){let u=e.charCodeAt(l);i=(i<<5)-i+u+o,i=i&i}if(s=r(i),n(s))return s;o++}for(;;)if(a++,s=r(i,a),n(s))return s}var VD=typeof window<"u"&&window.requestIdleCallback?window.requestIdleCallback:function(e){let t=Date.now();return setTimeout(()=>{e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))})},1)};var HD=v(W());function As(e,t){let n=(0,HD.useRef)(e);return t(n.current,e)||(n.current=e),n.current}var KD="#container",J4="css-",AS=new Set,NS=new Map,ME=0,yS=null,Ju=new Map,Oo;var q4=1024,Q4=new Set(["opacity","zIndex","fontWeight","flex","flexGrow","flexShrink","flexBasis","order","lineHeight","gridRow","gridColumn","gridRowStart","gridRowEnd","gridColumnStart","gridColumnEnd","WebkitLineClamp"]),eK=new Set(["font","fontFamily","fontSize","fontStyle","fontVariant","fontWeight","letterSpacing","lineHeight","textAlign","textDecoration","textIndent","textOverflow","textTransform","whiteSpace","wordBreak","wordSpacing"]),tK=new Set(["top","right","bottom","left","width","height","maxWidth","maxHeight","minWidth","minHeight"]),nK=new Set(["alignItems","alignSelf","border","borderBottom","borderBottomColor","borderBottomStyle","borderBottomWidth","borderColor","borderLeft","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRadius","borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius","borderRight","borderRightColor","borderRightStyle","borderRightWidth","borderStyle","borderTop","borderTopColor","borderTopStyle","borderTopWidth","borderWidth","boxSizing","display","flex","flexBasis","flexDirection","flexGrow","flexShrink","flexWrap","gap","gridArea","gridAutoColumns","gridAutoFlow","gridAutoRows","gridColumn","gridRow","gridTemplate","justifyContent","placeItems","justifySelf","margin","marginBottom","marginLeft","marginRight","marginTop","order","padding","paddingBottom","paddingLeft","paddingRight","paddingTop","position"]);function rK(e){let t={...e};if("top"in e&&"right"in e&&"bottom"in e&&"left"in e){let n={top:e.top,right:e.right,bottom:e.bottom,left:e.left};Object.values(n).every(i=>i!==void 0)&&new Set(Object.values(n)).size===1&&(t={...t,inset:e.top,top:void 0,right:void 0,bottom:void 0,left:void 0})}if("borderTopStyle"in e&&"borderRightStyle"in e&&"borderBottomStyle"in e&&"borderLeftStyle"in e){let n={top:e.borderTopStyle,right:e.borderRightStyle,bottom:e.borderBottomStyle,left:e.borderLeftStyle};new Set(Object.values(n)).size===1&&n.top&&(t={...t,borderStyle:n.top,borderTopStyle:void 0,borderRightStyle:void 0,borderBottomStyle:void 0,borderLeftStyle:void 0})}if("borderTopLeftRadius"in e&&"borderTopRightRadius"in e&&"borderBottomRightRadius"in e&&"borderBottomLeftRadius"in e){let n={topLeft:e.borderTopLeftRadius,topRight:e.borderTopRightRadius,bottomRight:e.borderBottomRightRadius,bottomLeft:e.borderBottomLeftRadius};new Set(Object.values(n)).size===1&&n.topLeft!==void 0&&(t={...t,borderRadius:n.topLeft,borderTopLeftRadius:void 0,borderTopRightRadius:void 0,borderBottomRightRadius:void 0,borderBottomLeftRadius:void 0})}if("marginTop"in e&&"marginRight"in e&&"marginBottom"in e&&"marginLeft"in e){let n={top:e.marginTop,right:e.marginRight,bottom:e.marginBottom,left:e.marginLeft};new Set(Object.values(n)).size===1&&n.top!==void 0&&(t={...t,margin:n.top,marginTop:void 0,marginRight:void 0,marginBottom:void 0,marginLeft:void 0})}if("paddingTop"in e&&"paddingRight"in e&&"paddingBottom"in e&&"paddingLeft"in e){let n=typeof e.paddingTop=="number"?e.paddingTop+"px":e.paddingTop,r=typeof e.paddingRight=="number"?e.paddingRight+"px":e.paddingRight,o=typeof e.paddingBottom=="number"?e.paddingBottom+"px":e.paddingBottom,i=typeof e.paddingLeft=="number"?e.paddingLeft+"px":e.paddingLeft,s;new Set([n,r,o,i]).size===1&&n!==void 0?s=n:n===o&&n&&i===r&&r?s=`${n} ${i}`:n&&o&&i===r&&r&&(s=`${n} ${i} ${o}`),s!==void 0&&(t={...t,padding:s,paddingTop:void 0,paddingRight:void 0,paddingBottom:void 0,paddingLeft:void 0})}if("overflowX"in e&&"overflowY"in e){let n=e.overflowX,r=e.overflowY;n===r&&n!==void 0&&(t={...t,overflow:n,overflowX:void 0,overflowY:void 0})}return t}function WD(e){return eK.has(e)?"font":tK.has(e)?"dimension":nK.has(e)?"layout":"other"}function YD(e,t,n=KD){let r=o=>{let i=rK(o);return Object.entries(i).filter(([s,a])=>a!==void 0).map(([s,a])=>{let l=s.replace(/([A-Z])/g,"-$1").toLowerCase(),u=a;return typeof a=="number"&&!Q4.has(s)&&(u=`${a}px`),`${l}: ${u};`}).join(" ")};return`${n?`${n} `:""}.${e} {${r(t)}}`}var bS=new Map;oK();function oK(){typeof window<"u"&&"__serverRenderedCSSClassNames"in window&&typeof window.__serverRenderedCSSClassNames=="object"&&Object.entries(window.__serverRenderedCSSClassNames||{}
8647).forEach(([e,t])=>{bS.set(e,t)})}function iK(e){if(Object.keys(e).length===0)return"";let t=JSON.stringify(e);if(t==="{}")return"";let n=Xa({str:t,hashPrefix:J4,isUniqueKey:r=>{let o=NS.get(r);if(o)return o===t;if(bS.has(r)){let i=bS.get(r);return t===i}return!0}});return NS.set(n,t),n}var sK="font-faces-";function zD(e,t){let{fontsByStyleElId:n,env:r,addHeadTag:o}=t,i=Xa({str:e,hashPrefix:sK,isUniqueKey:s=>{let a=n.get(s),l=!a||a===e;if(r==="server")return l;let u=document.getElementById(s),c=!u||u?.textContent===e;return l&&c}});return r==="server"&&!n.has(i)&&(o({type:"global-style",styleElId:i,styleSheet:e}),n.set(i,e)),i}function XD(e,t){let{fontsByStyleElId:n}=fe();(0,qu.useInsertionEffect)(()=>{if(!e)return;let r=document.getElementById(t);if(r&&r.textContent===e)return;let o=document.createElement("style");return o.textContent=e,o.id=t,document.head.appendChild(o),n.set(t,e),()=>{document.head.removeChild(o),n.delete(t)}},[e])}function aK(e,t,n){return e.forEach(({className:r,styles:o,renderedByCode:i})=>{if(!r)return;let s=t||i?"":KD,a=Ju.get(r);a===0&&ME--,Ju.set(r,(a??0)+1),AS.has(r)||(AS.add(r),cK(r,o,s).forEach(u=>{Oo||(Oo=new CSSStyleSheet,document.adoptedStyleSheets.push(Oo)),u.toString(),i?Oo.insertRule(`@layer figoverridable { ${u} }`,Oo.cssRules.length):Oo.insertRule(u,Oo.cssRules.length)}))}),()=>{e.forEach(({className:r})=>{if(!r)return;let i=(Ju.get(r)||0)-1;Ju.set(r,i),i===0&&(ME++,Oo&&ME>q4&&!yS&&(yS=VD(uK)))})}}function lK(e){let t={};for(let[r,o]of Object.entries(e))if(!(o===void 0||o===""))if(r==="media")for(let[i,s]of Object.entries(o))for(let[a,l]of Object.entries(s)){let u=WD(a);t[u]||(t[u]={}),t[u].media||(t[u].media={}),t[u].media[i]||(t[u].media[i]={}),t[u].media[i][a]=l}else{let i=WD(r);t[i]||(t[i]={}),t[i][r]=AE(o,!1)}let n=[];for(let r of Object.values(t))n.push({className:iK(r),styles:r});return n}function jD(e){let t=fe(),{disableHighSpecificityContainer:n}=t.renderOptions,r=As(e,Ue),o=(0,qu.useMemo)(()=>{let l=[],u=[];for(let c of r){if(c==null)continue;if(typeof c=="string"){u.push(c);continue}let{styles:d,renderedByCode:f}="styles"in c?{styles:c.styles,renderedByCode:c.renderedByCode}:{styles:c,renderedByCode:void 0};for(let{className:p,styles:_}of lK(d))l.push({className:p,styles:_,renderedByCode:f})}return{generated:l,passthroughClassNames:u}},[r]),{addHeadTag:i,env:s}=fe();return(0,qu.useInsertionEffect)(()=>aK(o.generated,n,s),[o]),s==="server"&&o.generated.forEach(({className:l,styles:u})=>{i({type:"class-style",className:l,cssProperties:u,classNameSourceStr:JSON.stringify(u)})}),[...o.generated.map(({className:l})=>l),...o.passthroughClassNames].filter(Boolean).join(" ")}function uK(){if(Oo){try{let t=Array.from(Oo.cssRules).filter(n=>{let r=n.selectorText.substring(1),o=Ju.get(r)===0;return o&&(AS.delete(r),Ju.delete(r),NS.delete(r)),!o});Oo.replace(t.map(n=>n.cssText).join(` 8648`))}catch(e){Me.reportError(new te("Error cleaning up styles",e)),console.error("Error cleaning CSS rules:",e)}ME=0,yS=null}}var LS="global-css-";function Qu({cssString:e,styleElId:t,deleteElsWithPrefix:n,skipValidation:r,prepend:o}){let{addHeadTag:i,env:s}=fe();s==="server"&&e&&i({type:"global-style",styleElId:t,styleSheet:Ns(e)}),(0,qu.useInsertionEffect)(()=>{if(!e||(r||void 0,document.getElementById(t)))return;let l=[];n&&(l=Array.from(document.head.querySelectorAll(`style[id^="${n}"]`)));let u=document.createElement("style");return u.textContent=Ns(e),u.id=t,o?document.head.insertBefore(u,document.head.firstChild):document.head.appendChild(u),n&&l.forEach(c=>{c.remove()}),()=>{document.head.removeChild(u)}},[e,t,o])}function Ns(e){return e.replace(/\s+/g," ").replace(/\/\*.*?\*\//g,"").replace(/;\s*}/g,"}").replace(/\s*{\s*/g,"{").replace(/\s*:\s*/g,":").replace(/\s*;\s*/g,";").replace(/\s*,\s*/g,",").replace(/\s*}\s*/g,"}")}function cK(e,t,n){let{media:r,...o}=t,i=[YD(e,o,n)];if(r){let s=Object.entries(r).map(([a,l])=>`@media ${a} {${YD(e,l,n)}}`);i.push(...s)}return i}function sn(e,...t){let n="";return e.forEach((r,o)=>{n+=r+(t[o]||"")}),n}var dK="custom-cursor",ec="customCursor";function $D(){let e=Re(Cf)!==null;return Qu({cssString:e?fK:"",styleElId:dK}),null}var fK=sn` #container .${ec}a,#container .${ec}p,#container .${ec}div{cursor:none}`;function go(e,t){let n=e?.[t];return Ae(n!==void 0,`Node asset with hash ${t} not found in used assets`),n}function pK(){let e=$I();return e?e.mobile||e.tablet||e.isIpad:!1}var QD=({ref:e,hasCursorBehavior:t,assets:n,behaviors:r})=>{let o=fe();pK()&&(t=!1);let i=(0,ja.useMemo)(()=>mK(t),[t]),s=(0,ja.useCallback)((a,l)=>{let{imageUrl:u,imageSize:c}=qD(r,n,o);a.style.backgroundImage=`url("${u}")`,c&&(a.style.width=`${c.x}px`,a.style.height=`${c.y}px`),a.style.visibility="visible",l.style.cursor="none",l.classList.add(ec)},[r,n,o]);(0,ja.useEffect)(()=>{e.current&&ZD(e.current.id,o)&&i&&s(i,e.current)},[e,i,s,o]),(0,ja.useEffect)(()=>
8648{if(!e.current||!i||!t||!r?.cursor)return;let{imageUrl:a,imageSize:l}=qD(r,n,o);if(!a||!l)return;let u=e.current,c=r.cursor.hotspotX,d=r.cursor.hotspotY,f=yu(h=>{u&&(JD(u.id,o),s(i,u),i.style.transform=`translate(${h.clientX-c}px, ${h.clientY-d}px)`)},"showCursor"),p=yu(h=>{u&&(CS(o)===null&&f(h),ZD(u.id,o)&&(i.style.transform=`translate(${h.clientX-c}px, ${h.clientY-d}px)`))},"moveCursor"),_=yu(()=>{i&&(JD(null,o),requestAnimationFrame(T))},"hideCursor"),T=()=>{i&&CS(o)===null&&(i.style.visibility="hidden",u.style.cursor="auto",u.classList.remove(ec))};return u.addEventListener("pointerenter",f),u.addEventListener("pointermove",p),u.addEventListener("pointerleave",_),()=>{u.removeEventListener("pointerenter",f),u.removeEventListener("pointermove",p),u.removeEventListener("pointerleave",_),_(new PointerEvent("pointerleave"))}},[t,r?.cursor,i,e,s,r,n,o])},ev="sites-cursor-element",mK=e=>{if(!e||typeof document>"u")return null;let t=document.getElementById(ev);return t||EK()},EK=()=>{let e=document.createElement("div");return document.body.appendChild(e),e.id=ev,e.style.position="fixed",e.style.top="0",e.style.left="0",e.style.visibility="hidden",e.style.pointerEvents="none",e.style.willChange="transform",e.style.zIndex="9999",e.ariaHidden="true",e.style.backgroundRepeat="no-repeat",e.style.backgroundSize="contain",e},ZD=(e,t)=>CS(t)===e,JD=(e,t)=>{t.atomStore.set(Cf,e)},CS=e=>e.atomStore.get(Cf);function qD(e,t,n){let r=PS(e);if(r){let o=go(t,r);return{imageUrl:n.getAssetURL(o.url),imageSize:o.size}}return{imageUrl:void 0,imageSize:void 0}}function PS(e){return e?.cursor?.cursorFileName?.split(".")[0]}var tv=e=>{let{interactionHandlers:t,materializedChildNodeProps:n,...r}=e;"variableState"in r&&delete r.variableState;try{PE("nodeDebugInformation",{materializedNode:r})}catch{}};function rv(e,t,n,r,o){let i=t,s=!1,a=(d,f)=>(s=!0,n.evaluateVariable(e,d.id,r)??f),l=d=>{let f=n.getVariableName(d);return f!==void 0&&o.dashSeparatedVariableNames?BI(f,()=>"-"):f},u=d=>n.getVariableCodeSyntax(d);if(_K(i,a,l,u),!("boundVariables"in t&&t.boundVariables))return s;let c=t.boundVariables;if(c.opacity&&(i.opacity=a(c.opacity,i.opacity)/100,c.opacity.resolvedName=l(c.opacity.id),c.opacity.resolvedCodeSyntax=u(c.opacity.id)),c.size&&i.size&&(c.size.x&&(i.size.x=a(c.size.x,i.size.x),c.size.x.resolvedName=l(c.size.x.id),c.size.x.resolvedCodeSyntax=u(c.size.x.id)),c.size.y&&(i.size.y=a(c.size.y,i.size.y),c.size.y.resolvedName=l(c.size.y.id),c.size.y.resolvedCodeSyntax=u(c.size.y.id))),c.visible&&(i.visible=a(c.visible,i.visible),c.visible.resolvedName=l(c.visible.id),c.visible.resolvedCodeSyntax=u(c.visible.id)),i.rectangleCornerRadii===void 0)if(i.rectangleCornerRadiiIndependent)i.rectangleCornerRadii=[0,0,0,0];else{let d=i.cornerRadius??0;i.rectangleCornerRadii=[d,d,d,d]}return c.rectangleCornerRadii&&(c.rectangleCornerRadii.RECTANGLE_TOP_LEFT_CORNER_RADIUS&&(i.rectangleCornerRadii[0]=a(c.rectangleCornerRadii.RECTANGLE_TOP_LEFT_CORNER_RADIUS,i.rectangleCornerRadii[0]),c.rectangleCornerRadii.RECTANGLE_TOP_LEFT_CORNER_RADIUS.resolvedName=l(c.rectangleCornerRadii.RECTANGLE_TOP_LEFT_CORNER_RADIUS.id),c.rectangleCornerRadii.RECTANGLE_TOP_LEFT_CORNER_RADIUS.resolvedCodeSyntax=u(c.rectangleCornerRadii.RECTANGLE_TOP_LEFT_CORNER_RADIUS.id)),c.rectangleCornerRadii.RECTANGLE_TOP_RIGHT_CORNER_RADIUS&&(i.rectangleCornerRadii[1]=a(c.rectangleCornerRadii.RECTANGLE_TOP_RIGHT_CORNER_RADIUS,i.rectangleCornerRadii[1]),c.rectangleCornerRadii.RECTANGLE_TOP_RIGHT_CORNER_RADIUS.resolvedName=l(c.rectangleCornerRadii.RECTANGLE_TOP_RIGHT_CORNER_RADIUS.id),c.rectangleCornerRadii.RECTANGLE_TOP_RIGHT_CORNER_RADIUS.resolvedCodeSyntax=u(c.rectangleCornerRadii.RECTANGLE_TOP_RIGHT_CORNER_RADIUS.id)),c.rectangleCornerRadii.RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS&&(i.rectangleCornerRadii[2]=a(c.rectangleCornerRadii.RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS,i.rectangleCornerRadii[2]),c.rectangleCornerRadii.RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS.resolvedName=l(c.rectangleCornerRadii.RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS.id)??void 0,c.rectangleCornerRadii.RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS.resolvedCodeSyntax=u(c.rectangleCornerRadii.RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS.id)),c.rectangleCornerRadii.RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS&&(i.rectangleCornerRadii[3]=a(c.rectangleCornerRadii.RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS,i.rectangleCornerRadii[3]),c.rectangleCornerRadii.RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS.resolvedName=l(c.rectangleCornerRadii.RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS.id),c.rectangleCornerRadii.RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS.resolvedCodeSyntax=u(c.rectangleCornerRadii.RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS.id))),c.minWidth&&(i.minWidth=a(c.minWidth,i.minWidth),c.minWidth.resolvedName=l(c.minWidth.id),c.minWidth.resolvedCodeSyntax=u(c.minWidth.id)),c.maxWidth&&(i.maxWidth=a(c.maxWidth,i.maxWidth),c.maxWidth.resolvedName=l(c.maxWidth.id),c.maxWidth.resolvedCodeSyntax=u(c.maxWidth.id)),c.minHeight&&(i.minHeight=a(c.minHeight,i.minHeight),c.minHeight.resolvedName=l(c.minHeight.id),c.minHeight.resolvedCodeSyntax=u(c.minHeight.id)),c.maxHeight&&(i.maxHeight=a(c.maxHeight,i.maxHeight),c.maxHeight.resolvedName=l(c.maxHeight.id),c.maxHeight.resolvedCodeSyntax=u(c.maxHeight.id)),c.itemSpacing&&(i.itemSpacing=a(c.itemSpacing,i.itemSpacing),c.itemSpacing.resolvedName=l(c.itemSpacing.id),c.itemSpacing.resolvedCodeSyntax=u(c.itemSpacing.id)),c.paddingLeft&&(i.paddingLeft=a(c.paddingLeft,i.paddingLeft),c.paddingLeft.resolvedName=l(c.paddingLeft.id),c.paddingLeft.resolvedCodeSyntax=u(c.paddingLeft.id)),c.paddingRight&&(i.paddingRight=a(c.paddingRight,i.paddingRight),c.paddingRight.resolvedName=l(c.paddingRight.id),c.paddingRight.resolvedCodeSyntax=u(c.paddingRight.id)),c.paddingTop&&(i.paddingTop=a(c.paddingTop,i.paddingTop),c.paddingTop.resolvedName=l(c.paddingTop.id),c.paddingTop.resolvedCodeSyntax=u(c.paddingTop.id)),c.paddingBottom&&(i.paddingBottom=a(c.paddingBottom,i.paddingBottom),c.paddingBottom.resolvedName=l(c.paddingBottom.id),c.paddingBottom.resolvedCodeSyntax=u(c.paddingBottom.id)),c.counterAxisSpacing&&(i.counterAxisSpacing=a(c.counterAxisSpacing,i.counterAxisSpacing),c.counterAxisSpacing.resolvedName=l(c.counterAxisSpacing.id),c.counterAxisSpacing.resolvedCodeSyntax=u(c.counterAxisSpacing.id)),c.characters&&(i.characters=a(c.characters,i.characters)?.toString(),c.characters.resolvedName=l(c.characters.id),c.characters.resolvedCodeSyntax=u(c.characters.id)),c.individualStrokeWeights&&(i.individualStrokeWeights===void 0&&(i.individualStrokeWeights={top:0,right:0,bottom:0,left:0}),c.individualStrokeWeights.BORDER_BOTTOM_WEIGHT&&(i.individualStrokeWeights.bottom=a(c.individualStrokeWeights.BORDER_BOTTOM_WEIGHT,i.individualStrokeWeights.bottom),c.individualStrokeWeights.BORDER_BOTTOM_WEIGHT.resolvedName=l(c.individualStrokeWeights.BORDER_BOTTOM_WEIGHT.id),c.individualStrokeWeights.BORDER_BOTTOM_WEIGHT.resolvedCodeSyntax=u(c.individualStrokeWeights.BORDER_BOTTOM_WEIGHT.id)),c.individualStrokeWeights.BORDER_LEFT_WEIGHT&&(i.individualStrokeWeights.left=a(c.individualStrokeWeights.BORDER_LEFT_WEIGHT,i.individualStrokeWeights.left),c.individualStrokeWeights.BORDER_LEFT_WEIGHT.resolvedName=l(c.individualStrokeWeights.BORDER_LEFT_WEIGHT.id),c.individualStrokeWeights.BORDER_LEFT_WEIGHT.resolvedCodeSyntax=u(c.individualStrokeWeights.BORDER_LEFT_WEIGHT.id)),c.individualStrokeWeights.BORDER_RIGHT_WEIGHT&&(i.individualStrokeWeights.right=a(c.individualStrokeWeights.BORDER_RIGHT_WEIGHT,i.individualStrokeWeights.right),c.individualStrokeWeights.BORDER_RIGHT_WEIGHT.resolvedName=l(c.individualStrokeWeights.BORDER_RIGHT_WEIGHT.id),c.individualStrokeWeights.BORDER_RIGHT_WEIGHT.resolvedCodeSyntax=u(c.individualStrokeWeights.BORDER_RIGHT_WEIGHT.id)),c.individualStrokeWeights.BORDER_TOP_WEIGHT&&(i.individualStrokeWeights.top=a(c.individualStrokeWeights.BORDER_TOP_WEIGHT,i.individualStrokeWeights.top),c.individualStrokeWeights.BORDER_TOP_WEIGHT.resolvedName=l(c.individualStrokeWeights.BORDER_TOP_WEIGHT.id),c.individualStrokeWeights.BORDER_TOP_WEIGHT.resolvedCodeSyntax=u(c.individualStrokeWeights.BORDER_TOP_WEIGHT.id))),s}function _K(e,t,n,r){if(e.fills)for(let o of e.fills)if(o.type==="SOLID"){if(o.boundVariables?.color){let i=t(o.boundVariables.color,o.color);o.color={r:i.r,g:i.g,b:i.b,a:1},o.opacity=i.a,o.boundVariables.color.resolvedName=n(o.boundVariables.color.id),o.boundVariables.color.resolvedCodeSyntax=r(o.boundVariables.color.id)}}else if(o.type==="GRADIENT_RADIAL"||o.type==="GRADIENT_LINEAR"||o.type==="GRADIENT_ANGULAR"||o.type==="GRADIENT_DIAMOND")for(let i of o.gradientStops)i.boundVariables?.color&&(i.color=t(i.boundVariables.color,i.color),i.boundVariables.color.resolvedName=n(i.boundVariables.color.id),i.boundVariables.color.resolvedCodeSyntax=r(i.boundVariables.color.id));else o.type==="CUSTOM"&&nv(o.componentPropAssignments,t);
8648if(e.strokes){for(let o of e.strokes)if(o.type==="SOLID"){if(o.boundVariables?.color){let i=t(o.boundVariables.color,o.color);o.color={r:i.r,g:i.g,b:i.b,a:1},o.opacity=i.a,o.boundVariables.color.resolvedName=n(o.boundVariables.color.id),o.boundVariables.color.resolvedCodeSyntax=r(o.boundVariables.color.id)}}else if(o.type==="GRADIENT_RADIAL"||o.type==="GRADIENT_LINEAR"||o.type==="GRADIENT_ANGULAR"||o.type==="GRADIENT_DIAMOND")for(let i of o.gradientStops)i.boundVariables?.color&&(i.color=t(i.boundVariables.color,i.color),i.boundVariables.color.resolvedName=n(i.boundVariables.color.id),i.boundVariables.color.resolvedCodeSyntax=r(i.boundVariables.color.id))}if(e.effects)for(let o of e.effects){if(o.type==="DROP_SHADOW"||o.type==="INNER_SHADOW"){o.boundVariables?.color&&(o.color=t(o.boundVariables.color,o.color),o.boundVariables.color.resolvedName=n(o.boundVariables.color.id),o.boundVariables.color.resolvedCodeSyntax=r(o.boundVariables.color.id)),o.boundVariables?.radius&&(o.radius=t(o.boundVariables.radius,o.radius),o.boundVariables.radius.resolvedName=n(o.boundVariables.radius.id),o.boundVariables.radius.resolvedCodeSyntax=r(o.boundVariables.radius.id)),o.boundVariables?.spread&&(o.spread=t(o.boundVariables.spread,o.spread),o.boundVariables.spread.resolvedName=n(o.boundVariables.spread.id),o.boundVariables.spread.resolvedCodeSyntax=r(o.boundVariables.spread.id));let i=o.offset.x,s=o.offset.y;o.boundVariables?.offsetX&&(i=t(o.boundVariables.offsetX,o.offset.x),o.boundVariables.offsetX.resolvedName=n(o.boundVariables.offsetX.id),o.boundVariables.offsetX.resolvedCodeSyntax=r(o.boundVariables.offsetX.id)),o.boundVariables?.offsetY&&(s=t(o.boundVariables.offsetY,o.offset.x),o.boundVariables.offsetY.resolvedName=n(o.boundVariables.offsetY.id),o.boundVariables.offsetY.resolvedCodeSyntax=r(o.boundVariables.offsetY.id)),o.offset={x:i,y:s}}(o.type==="LAYER_BLUR"||o.type==="BACKGROUND_BLUR")&&o.boundVariables?.radius&&(o.radius=t(o.boundVariables.radius,o.radius),o.boundVariables.radius.resolvedName=n(o.boundVariables.radius.id),o.boundVariables.radius.resolvedCodeSyntax=r(o.boundVariables.radius.id)),o.type==="CUSTOM"&&nv(o.componentPropAssignments,t)}if(e.boundVariables?.fontFamily&&e.boundVariables.fontFamily.forEach(o=>{o.resolvedName=n(o.id),o.resolvedCodeSyntax=r(o.id)}),e.boundVariables?.fontSize&&e.boundVariables.fontSize.forEach(o=>{o.resolvedName=n(o.id),o.resolvedCodeSyntax=r(o.id)}),e.boundVariables?.fontWeight&&e.boundVariables.fontWeight.forEach(o=>{o.resolvedName=n(o.id),o.resolvedCodeSyntax=r(o.id)}),e.boundVariables?.fontStyle&&e.boundVariables.fontStyle.forEach(o=>{o.resolvedName=n(o.id),o.resolvedCodeSyntax=r(o.id)}),e.boundVariables?.lineHeight&&e.boundVariables.lineHeight.forEach(o=>{o.resolvedName=n(o.id),o.resolvedCodeSyntax=r(o.id)}),e.boundVariables?.letterSpacing&&e.boundVariables.letterSpacing.forEach(o=>{o.resolvedName=n(o.id),o.resolvedCodeSyntax=r(o.id)}),e.boundVariables?.paragraphSpacing&&e.boundVariables.paragraphSpacing.forEach(o=>{o.resolvedName=n(o.id),o.resolvedCodeSyntax=r(o.id)}),e.boundVariables?.paragraphIndent&&e.boundVariables.paragraphIndent.forEach(o=>{o.resolvedName=n(o.id),o.resolvedCodeSyntax=r(o.id)}),e.style?.boundVariables&&(e.style.boundVariables.fontFamily&&(e.style.fontFamily=t(e.style.boundVariables.fontFamily,e.style.fontFamily),e.style.boundVariables.fontFamily.resolvedName=n(e.style.boundVariables.fontFamily.id),e.style.boundVariables.fontFamily.resolvedCodeSyntax=r(e.style.boundVariables.fontFamily.id)),e.style.boundVariables.fontSize&&(e.style.fontSize=t(e.style.boundVariables.fontSize,e.style.fontSize),e.style.boundVariables.fontSize.resolvedName=n(e.style.boundVariables.fontSize.id),e.style.boundVariables.fontSize.resolvedCodeSyntax=r(e.style.boundVariables.fontSize.id)),e.style.boundVariables.fontWeight&&(e.style.fontVariations||(e.style.fontVariations={}),e.style.fontVariations.Weight=t(e.style.boundVariables.fontWeight,e.style.fontVariations.Weight),e.style.boundVariables.fontWeight.resolvedName=n(e.style.boundVariables.fontWeight.id),e.style.boundVariables.fontWeight.resolvedCodeSyntax=r(e.style.boun
8648dVariables.fontWeight.id)),e.style.boundVariables.fontStyle&&(e.style.fontStyle=t(e.style.boundVariables.fontStyle,e.style.fontStyle),e.style.boundVariables.fontStyle.resolvedName=n(e.style.boundVariables.fontStyle.id),e.style.boundVariables.fontStyle.resolvedCodeSyntax=r(e.style.boundVariables.fontStyle.id)),e.style.boundVariables.lineHeight&&(e.style.lineHeightPx=t(e.style.boundVariables.lineHeight,e.style.lineHeightPx),e.style.lineHeightUnit="PIXELS",e.style.boundVariables.lineHeight.resolvedName=n(e.style.boundVariables.lineHeight.id),e.style.boundVariables.lineHeight.resolvedCodeSyntax=r(e.style.boundVariables.lineHeight.id)),e.style.boundVariables.letterSpacing&&(e.style.letterSpacingValue=t(e.style.boundVariables.letterSpacing,e.style.letterSpacingValue),e.style.letterSpacingUnit="PIXELS",e.style.boundVariables.letterSpacing.resolvedName=n(e.style.boundVariables.letterSpacing.id),e.style.boundVariables.letterSpacing.resolvedCodeSyntax=r(e.style.boundVariables.letterSpacing.id)),e.style.boundVariables.paragraphSpacing&&(e.style.paragraphSpacing=t(e.style.boundVariables.paragraphSpacing,e.style.paragraphSpacing),e.style.boundVariables.paragraphSpacing.resolvedName=n(e.style.boundVariables.paragraphSpacing.id),e.style.boundVariables.paragraphSpacing.resolvedCodeSyntax=r(e.style.boundVariables.paragraphSpacing.id)),e.style.boundVariables.paragraphIndent&&(e.style.paragraphIndent=t(e.style.boundVariables.paragraphIndent,e.style.paragraphIndent),e.style.boundVariables.paragraphIndent.resolvedName=n(e.style.boundVariables.paragraphIndent.id),e.style.boundVariables.paragraphIndent.resolvedCodeSyntax=r(e.style.boundVariables.paragraphIndent.id))),e.style?.responsiveTextStyleVariants)for(let o of e.style.responsiveTextStyleVariants)o.boundVariables&&(o.boundVariables.fontSize&&(o.style.fontSize=t(o.boundVariables.fontSize,o.style.fontSize)),o.boundVariables.letterSpacing&&(o.style.letterSpacing=t(o.boundVariables.letterSpacing,o.style.letterSpacing)),o.boundVariables.lineHeight&&(o.style.lineHeightPx=t(o.boundVariables.lineHeight,o.style.lineHeightPx)),o.boundVariables.paragraphSpacing&&(o.style.paragraphSpacing=t(o.boundVariables.paragraphSpacing,o.style.paragraphSpacing)))}function nv(e,t){let{defs:n,assignments:r}=e;for(let[o,i]of Object.entries(r))i&&typeof i=="object"&&"type"in i&&i.type===Kr.ALIAS&&"value"in i&&typeof i.value=="string"&&(r[o]=t({type:"VARIABLE_ALIAS",id:i.value},n[o].defaultValue))}function Pf(e,t){return e.length===1?e[0]:e.reduceRight((n,r)=>{let o=r.color,i=n.color,s=r.opacity,a=n.opacity,l=s*(1-a),u=l+a,c=l/u,d=a/u;return new Dt({r:o.r*c+i.r*d,g:o.g*c+i.g*d,b:o.b*c+i.b*d},t,u)})}function jr(e){return"stackLayoutVersion"in e&&e.stackLayoutVersion>=1}function $r(e){return e.strokes!==void 0&&e.strokes.length>0}function ov(e){return $r(e)&&e.strokeAlign!==void 0&&e.strokeAlign!=="INSIDE"}function $a(e){return!e||!("strokesIncludedInLayout"in e)||!e.strokesIncludedInLayout?!1:!jr(e)}function iv(e,t){if(!$a(t))return{};let{top:n,right:r,bottom:o,left:i}=tc(e);return{borderLeftWidth:x(i),borderRightWidth:x(r),borderTopWidth:x(n),borderBottomWidth:x(o),borderColor:"transparent",borderStyle:"solid",backgroundClip:"padding-box"}}function kE(e,t){if(!(e.type==="FRAME"||e.type==="SLOT"||e.type==="RECTANGLE")||!$a(t))return 0;let r=tc(e);return x(r.left+r.right)}function GE(e,t){if(!(e.type==="FRAME"||e.type==="SLOT"||e.type==="RECTANGLE")||!$a(t))return 0;let r=tc(e);return x(r.top+r.bottom)}function tc(e){let t={top:0,right:0,bottom:0,left:0},n=Df(e);if(!$r(e))return t;switch(e.strokeAlign){case"CENTER":return{top:x(n.top/2),right:x(n.right/2),bottom:x(n.bottom/2),left:x(n.left/2)};case"OUTSIDE":return n;case"INSIDE":default:return t}}function FE(e){let t={top:0,right:0,bottom:0,left:0};if(!$r(e))return t;let n=Df(e);switch(e.strokeAlign){case"CENTER":return{top:n.top/2,right:n.right/2,bottom:n.bottom/2,left:n.left/2};case"OUTSIDE":return t;case"INSIDE":default:return n}}function wE(e,t){let{codeSyntaxLanguage:n}=t,r=e.map(o=>{if(o.visible!==!1&&o.type!=="IMAGE"&&o.type!=="VIDEO"&&o.type!=="PATTERN"){if(o.type==="SOLID")return o;
8648if(Cu(o)&&o.gradientStops[0])return o.gradientStops[0]}}).filter(Boolean);if(r.length!==0)return Pf(r.map(o=>new Dt("color"in o?o.color:o,t,"opacity"in o?o.opacity:1,Vt,"boundVariables"in o?o.boundVariables?.color?.resolvedName:void 0,n&&("boundVariables"in o?o.boundVariables?.color?.resolvedCodeSyntax?.[n]:void 0))),t).value}function DS(e){if(e.rectangleCornerRadiiIndependent)return{topLeft:e.rectangleCornerRadii[0]?x(e.rectangleCornerRadii[0]):void 0,topRight:e.rectangleCornerRadii[1]?x(e.rectangleCornerRadii[1]):void 0,bottomRight:e.rectangleCornerRadii[2]?x(e.rectangleCornerRadii[2]):void 0,bottomLeft:e.rectangleCornerRadii[3]?x(e.rectangleCornerRadii[3]):void 0};let t=e.cornerRadius?x(e.cornerRadius):void 0;return{topLeft:t,topRight:t,bottomRight:t,bottomLeft:t}}function vS(e,t,n){let{codeSyntaxLanguage:r}=n,o={...e};return o.borderTopLeftRadius&&(o.borderTopLeftRadius=le(r&&t.boundVariables?.rectangleCornerRadii?.RECTANGLE_TOP_LEFT_CORNER_RADIUS?.resolvedCodeSyntax?.[r],t.boundVariables?.rectangleCornerRadii?.RECTANGLE_TOP_LEFT_CORNER_RADIUS?.resolvedName,`${o.borderTopLeftRadius}px`)??o.borderTopLeftRadius),o.borderTopRightRadius&&(o.borderTopRightRadius=le(r&&t.boundVariables?.rectangleCornerRadii?.RECTANGLE_TOP_RIGHT_CORNER_RADIUS?.resolvedCodeSyntax?.[r],t.boundVariables?.rectangleCornerRadii?.RECTANGLE_TOP_RIGHT_CORNER_RADIUS?.resolvedName,`${o.borderTopRightRadius}px`)??o.borderTopRightRadius),o.borderBottomRightRadius&&(o.borderBottomRightRadius=le(r&&t.boundVariables?.rectangleCornerRadii?.RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS?.resolvedCodeSyntax?.[r],t.boundVariables?.rectangleCornerRadii?.RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS?.resolvedName,`${o.borderBottomRightRadius}px`)??o.borderBottomRightRadius),o.borderBottomLeftRadius&&(o.borderBottomLeftRadius=le(r&&t.boundVariables?.rectangleCornerRadii?.RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS?.resolvedCodeSyntax?.[r],t.boundVariables?.rectangleCornerRadii?.RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS?.resolvedName,`${o.borderBottomLeftRadius}px`)??o.borderBottomLeftRadius),o}function sv(e,t,n,r){let{shouldOutputVariables:o}=r,i=DS(e),s=t?tc(e):{top:0,right:0,bottom:0,left:0},a={borderTopLeftRadius:i.topLeft?i.topLeft+Math.min(s.top,s.left):void 0,borderTopRightRadius:i.topRight?i.topRight+Math.min(s.top,s.right):void 0,borderBottomRightRadius:i.bottomRight?i.bottomRight+Math.min(s.bottom,s.right):void 0,borderBottomLeftRadius:i.bottomLeft?i.bottomLeft+Math.min(s.bottom,s.left):void 0},l=o?vS(a,e,r):a,u=wE(e.strokes,r),c=TK(e,r);return{...l,borderStyle:e.strokeDashes?"dashed":"solid",borderColor:n&&u===void 0?"rgba(0, 0, 0, 0)":u,borderTopWidth:c.top,borderBottomWidth:c.bottom,borderLeftWidth:c.left,borderRightWidth:c.right}}var BE=(e,t)=>{if($a(t))return{top:0,left:0,right:0,bottom:0};let r=tc(e);return{top:-r.top,left:-r.left,right:-r.right,bottom:-r.bottom}};function TK(e,t){let{codeSyntaxLanguage:n,shouldOutputVariables:r}=t;if(e.individualStrokeWeights){let i=x(e.individualStrokeWeights.top),s=x(e.individualStrokeWeights.right),a=x(e.individualStrokeWeights.bottom),l=x(e.individualStrokeWeights.left);if(r){let u=le(n&&e.boundVariables?.individualStrokeWeights?.BORDER_TOP_WEIGHT?.resolvedCodeSyntax?.[n],e.boundVariables?.individualStrokeWeights?.BORDER_TOP_WEIGHT?.resolvedName,`${i}px`),c=le(n&&e.boundVariables?.individualStrokeWeights?.BORDER_RIGHT_WEIGHT?.resolvedCodeSyntax?.[n],e.boundVariables?.individualStrokeWeights?.BORDER_RIGHT_WEIGHT?.resolvedName,`${s}px`),d=le(n&&e.boundVariables?.individualStrokeWeights?.BORDER_BOTTOM_WEIGHT?.resolvedCodeSyntax?.[n],e.boundVariables?.individualStrokeWeights?.BORDER_BOTTOM_WEIGHT?.resolvedName,`${a}px`),f=le(n&&e.boundVariables?.individualStrokeWeights?.BORDER_LEFT_WEIGHT?.resolvedCodeSyntax?.[n],e.boundVariables?.individualStrokeWeights?.BORDER_LEFT_WEIGHT?.resolvedName,`${l}px`);return{top:u??i,right:c??s,bottom:d??a,left:f??l}}return{top:i,right:s,bottom:a,left:l}}let o=x(e.strokeWeight);return{top:o,right:o,bottom:o,left:o}}function Df(e){if(e.individualStrokeWeights)return{top:x(e.individualStrokeWeights.top),right:x(e.individualStrokeWeights.right),bottom:x(e.individualStrokeWeights.bottom),left:x(e.individualStrokeWeights.left)};let t=x(e.strokeWeight);return{top:t,right:t,bottom:t,left:t}}var hK=["ON_CLICK","ON_PRESS","MOUSE_DOWN","MOUSE_UP"];function Ni(e){let t=e.interactions??[];for(let n of t)if(hK.find(r=>r===n.event?.interactionType))return{cursor:"pointer"};return{}}var UE=e=>e.position==="absolute"&&["top","left","right","bottom"].every(n=>{let r=e[n];return r===0||r==="0"})?Object.entries(e).every(([n,r])=>r===void 0||["top","left","right","bottom","position"].includes(n)?!0:n==="display"?r==="block":!1):!1;function OK(e,t){return e.map(n=>
8648t.get(n)).filter(Boolean).filter(n=>n&&n.visible!==!1)}function av(e,t){return e.filter(n=>{let r=t.get(n);return r?r.type!=="RECTANGLE":!0})}function lv(e,t,n,r){let o=e($u),i=OK(t,n),{renderOptions:s}=r,a=i.filter(d=>d.type==="FRAME");if(r.env==="server")return a.sort((d,f)=>d.size.x-f.size.x).map(d=>d.id);let u=xS(a,s),c=gK(u,o);return c?[c.nodeId]:[]}function xS(e,t){let n={breakpoints:[]};for(let r of e){let o="white";r.fills.every(a=>a.type==="SOLID")&&(o=wE(r.fills,t)??o);let s=r.name;n.breakpoints.push({nodeId:r.id,pageId:"",name:s,width:r.size.x,background:o})}return n.breakpoints.sort((r,o)=>o.width-r.width),n}function gK(e,t){let{breakpoints:n}=e;return t?n.find(r=>r.width<=t)??n[n.length-1]:n[0]}function uv(e,t,n,r){let o={...Ri(t),type:"INSTANCE",id:e.id,name:n?.name??t.name,mainComponentId:t.id,componentProperties:e.componentProperties,componentPropertyReferences:e.componentPropertyReferences,componentSetId:e.componentSetId,overrides:[]};for(let i of IK)i==="visible"&&r||(i in e?o[i]=e[i]:delete o[i]);return o}var IK=["constraints","constraintValues","layoutAlign","layoutGrow","gridColumnAnchorIndex","gridRowAnchorIndex","gridColumnSpan","gridRowSpan","layoutPositioning","relativeTransform","overrides","absoluteBoundingBox","isolatedAbsoluteRenderBounds","visible","scrollBehavior","maybeAnimateRotation"];function cv(e,t,n){if(t?.value?.mainComponentId)return!0;let r=e.componentPropertyReferences?.mainComponent;if(r){let o=n?.[r];if(o&&!("isDefault"in o&&o.isDefault))return!0}return!1}function dv(e,t,n,r,o,i,s){let a=t.mainComponentId,l,u=t.componentPropertyReferences?.mainComponent;if(u&&i?.[u])s?a=s:a=i[u].value;else if(t.componentSetId){l=n.get(t.componentSetId);let f=o.instanceState.backingComponentId.get(e,r);if(f)a=f;else if(t.componentProperties&&l.type==="COMPONENT_SET"){let p=l.children.map(h=>n.get(h)),_=Object.entries(l.componentPropertyDefinitions??{}).map(([h,m])=>{if(m.type!=="VARIANT")return;let E=t.componentProperties[h];if(!E){console.warn(`missing component property on instance for node ${t.id}`);return}if(E.type==="SLOT")return;let O=E.type==="TEXT"?E.value.characters:E.value,g="boundVariables"in E?E.boundVariables:void 0,I=O;if(g?.value&&(I=o.variableState.evaluateVariable(e,g.value.id,r)),typeof I=="boolean"&&m.variantOptions){let S=m.variantOptions.map(A=>A.toLowerCase());if(I===!0){let A=m.variantOptions.find((R,y)=>S[y]==="true");A&&(I=A)}else if(I===!1){let A=m.variantOptions.find((R,y)=>S[y]==="false");A&&(I=A)}}return I=m.variantOptions?.includes(String(I))?I:m.defaultValue,`${h}=${String(I)}`}).filter(Boolean).join(", "),T=p.find(h=>h.name===_);T&&(a=T.id)}}let c=n.get(a);return{componentSet:l,component:c}}function fv(e,t,n){if(e.type==="TEXT"&&"styleIdForText"in e.style&&e.style.styleIdForText){let r=e.style.styleIdForText,o=n.get(r);if(o){let i=t.get(o);i.type==="STYLE"&&i.styleType==="TEXT"&&Object.assign(e.style,Ri(i.style))}}}function MS(e,t){if(!t||!("componentPropertyReferences"in e)||!e.componentPropertyReferences)return;let n=e.componentPropertyReferences;for(let[r,o]of Object.entries(n)){if(t[o]===void 0){let a=SK(o);for(let[l,u]of Object.entries(t))if(l.startsWith(a)){e[r]=u.value;break}continue}let i=t[o],s="boundVariables"in i?i.boundVariables?.value:void 0;if(s){let a=e;a.boundVariables||(a.boundVariables={}),a.boundVariables[r]=s}if(i.type==="IMAGE"){console.warn(`Attempted to apply image prop on node ${e.id}`);continue}if(r==="characters")if(i.type==="TEXT")for(let[a,l]of Object.entries(i.value))e[a]=l;else e[r]=String(i.value);else e[r]=i.value}}function SK(e){let t=e.lastIndexOf("#");return e.slice(0,t+1)}function kS(e){if(e.startsWith("I")&&e.includes(";")){let t=e.split(";");if(t.length===2&&t[1])return t[1]}return e}function pv(e){let t={},n=e.split(",").map(r=>r.trim());for(let r of n){let o=r.indexOf("=");if(o>0){let i=r.slice(0,o).trim(),s=r.slice(o+1).trim();t[i]=s}}return t}function RK(e,t){let n=new Map;if(!e.mainComponentId)return n;for(let r of e.overrides)if("componentProperties"in r.value&&"mainComponentId"in r.value){let i=t.get(r.value.mainComponentId).componentSetId;if(i)for(let[s,a]of Io(r.value.componentProperties)){let l=n.get(i);l?l.set(s,a.value):n.set(i,new Map([[s,a.value]]))}}return n}function AK(e){return"componentProperties"in e&&e.componentProperties!==void 0&&"componentSetId"in e&&e.componentSetId!==void 0}function NK(e,t,n,r){for(let o of n){let i=r.get(o)||new Map;i.set(e,t),r.set(o,i)}}function yK(e,t,n,r){let o=t.get(e.componentSetId);if(o)for(let[i,s]of Io(e.componentProperties))for(let[a,l]of o)Ue(s.value,l)&&Ue(i,a)&&NK(i,s.value,n,r)}function bK(e,t,n,r){if(!("children"in e)||!e.children||!t.size)return;let o=new Set,i=a=>
8648{if(a.type==="INSTANCE"&&a.componentSetId&&t.has(a.componentSetId)){o.add(a.id);return}if("children"in a&&a.children)for(let l of a.children){let u=kS(l);i(n.get(u))}};e.componentSetId&&i(n.get(e.componentSetId));function s(a){if(AK(a)&&yK(a,t,o,r),"children"in a&&a.children)for(let l of a.children){let u=kS(l),c=n.get(u);s(c)}}for(let a of e.children){let l=kS(a),u=n.get(l);s(u)}}function LK(e,t,n,r,o){if(!("children"in e)||!o.has(t.id))return;let i=o.get(t.id),s=new Map;for(let[u,c]of Io(t.componentProperties))i?.has(u)||s.set(u,c.value);let a=pv(n.name);for(let[u,c]of Io(a))s?.has(u)||s.set(u,c);let l=e.children||[];for(let u of l){let c=r.get(u),d=pv(c.name),f=Object.fromEntries(s);if(Ue(f,d)&&o.has(t.id))return c}}function mv(e,t){let{nodeById:n,websiteContext:{inheritedVariantPropertiesCache:r,processedNodesCache:o}}=t,i=n.get(e),s=n.get(i.mainComponentId);if(!o.has(i.id)){let a=RK(i,n);bK(s,a,n,r),o.add(i.id)}}function Ev(e,t,n,r,o){let{component:i}=t,{componentSet:s}=t;if(!s||!("children"in s))return i;let a=o.get(e.id);if(a)return n.get(a);let l=n.get(e.mainComponentId),u=LK(s,e,l,n,r);return u&&(i=u),i}function GS(e,t,n,r){let o={...e(r.modeContextState),...t};if(!("explicitVariableModes"in n)||!n.explicitVariableModes)return o;let i={};for(let[s,a]of Object.entries(n.explicitVariableModes)){let l=_v(s,r)||s,u=r.variableState.getAssetKeyOrLocalGuid(l);i[l]=a,i[u]=a}for(let[s,a]of Object.entries(o)){let l=_v(s,r)||s;if(!l)continue;i[l]===void 0&&(i[l]=a);let u=r.variableState.getAssetKeyOrLocalGuid(l);i[u]===void 0&&(i[u]=a)}return i}function _v(e,t){try{if(!t.variableState.hasAssetId(e))return;let n=t.variableState.getCollectionInfo(e);return n?n.baseCollectionId:void 0}catch{return}}var CK=["minWidth","maxWidth","minHeight","maxHeight","itemSpacing","paddingLeft","paddingTop","paddingRight","paddingBottom","counterAxisSpacing","strokeWeight"];function VE(e,t=1,n=1){if(t===1)return;let r=e;for(let o of CK)r[o]!==void 0&&(r[o]*=t);if(r.size){let{x:o,y:i}=r.size;r.size={x:o*t,y:i*t}}if(r.rectangleCornerRadii&&(r.rectangleCornerRadii=r.rectangleCornerRadii.map(o=>o*t)),r.individualStrokeWeights&&(r.individualStrokeWeights=Object.fromEntries(Object.entries(r.individualStrokeWeights).map(([o,i])=>[o,i*t]))),r.effects)for(let o of r.effects)"radius"in o&&o.radius&&(o.radius*=t),(o.type==="DROP_SHADOW"||o.type==="INNER_SHADOW")&&(o.offset.x*=t,o.offset.y*=t);if(r.constraintValues){let o=t/n;r.constraintValues=Object.fromEntries(Object.entries(r.constraintValues).map(([i,s])=>[i,{...s,pixelOffset:s.pixelOffset*o}]))}r.style?.fontSize&&(r.style.fontSize=Math.round(r.style.fontSize*t*100)/100),r.style?.lineHeightPx&&(r.style.lineHeightPx*=t),r.absoluteBoundingBox&&(r.absoluteBoundingBox.width*=t,r.absoluteBoundingBox.height*=t)}function Tv(e,t,n){let r=e.componentPropertyReferences?.slotContentId;if(!r)return null;let o=n[r];if(!o||o.type!=="SLOT")return Me.reportError("Slot content node not found or not a slot"),null;if(!EE(o.value.guid))return Me.reportError("Invalid slot content node ID"),null;let i=t.get(ot(o.value.guid));return i.type!=="FRAME"?(Me.reportError("Expected slot content node to be a frame"),null):i}function hv(e,t){return{...e,size:t.size,relativeTransform:t.relativeTransform,children:t.children,isAssignedSlot:!0}}var Ov="I";function PK(e){return e.startsWith(Ov)}function nc(e){return PK(e)?e:`${Ov}${e}`}function HE(e){let t=fe(),n=(0,ys.useContext)(bf),r=(0,ys.useRef)(),o=r.current,i=new Map,s=e.map(d=>{let f=d.keyWithOverrides??d.key,p=o?o.get(f):void 0;return(!p||!Ue(p.args,d))&&(p={args:d,value:DK(d,n,t)}),i.set(f,p),p.value}),a=As(s,Ue),l=(0,ys.useMemo)(()=>de(d=>{let f=a.map(d),p=[],_=[];return f.forEach(T=>{"errorMessage"in T?_.push(T):p.push(T)}),{nodes:p,errors:_}}),[a]),{nodes:u,errors:c}=Re(l);return(0,ys.useEffect)(()=>(c.forEach(d=>{n.setMaterializationError(d.nodeId,d)}),()=>{c.forEach(d=>{n.setMaterializationError(d.nodeId)})}),[c,n]),r.current=i,u}function DK(e,t,n){return de(r=>{try{let o=gv(e,r,n);return r(Lf)&&tv(o),o}catch(o){return o instanceof Error?(t.reportError(o,{"error-boundary-name":e.keyWithOverrides??e.key}),{nodeName:e.keyWithOverrides??e.key,nodeId:e.nodeId,errorMessage:o.message+` 8649`+o.stack}):{nodeName:e.keyWithOverrides??e.key,nodeId:e.nodeId,errorMessage:String(o)}}})}var vK={mainComponentId:!0,overrides:!0,componentProperties:!0,componentPropertyDefinitions:!0,componentSetId:!0,mainComponent:!0,overrideKey:!0};
8649function Za(e,t,n){return gv(t,e,n)}var xK=600;function gv(e,t,n){let{key:r,parentState:o,nodeById:i,animateRootIds:s,animateProps:a,assetIdToGuid:l,guidToUrl:u}=e,{autoLayoutTransitionAtom:c,transitionProps:d}=a??{},f=e.overrides,p=i.get(e.backingLayerId??e.nodeId),_=p,T=_.timelineOffset,h=_.outerTimelineDuration,m=T??e.ancestorTimelineOffsetSec,E=T!=null?h:e.ancestorOuterTimelineDurationSec;if(p.type==="SLOT"){let ce=Tv(p,i,e.componentProperties??{});ce&&(p=hv(p,ce))}let O=s.has(e.backingLayerId??e.nodeId),g=Ri(p),I,S,A=!1,R=!1;"isInAnimateTree"in g&&g.isInAnimateTree&&(R=!0),e.parentPath?(S=[...e.parentPath,r],g.type==="INSTANCE"?I=[]:I=S):g.type==="INSTANCE"&&(I=[],S=[]),n.renderOptions.useFigmaComponents&&"componentPropertyReferences"in g&&g.componentPropertyReferences&&g.componentPropertyReferences.visible&&(g.visible=!0),MS(g,e.componentProperties);let y=g.type==="INSTANCE"?g.mainComponentId:void 0;if(A=FS(g,S,f,void 0,"uniformScaleFactor"in g?g.uniformScaleFactor:void 0,e.componentProperties)||A,g.type==="INSTANCE"&&g.mainComponentId&&g.mainComponentId!==y){let ce=i.get(g.mainComponentId);ce.type==="COMPONENT"&&ce.componentSetId&&(g.componentSetId=ce.componentSetId)}if(g.type==="INSTANCE"){let ce=g.overrides?.find(tt=>tt.key.length===0);ce&&Sv(g,ce)}let b=o.getChildState(r,g,i,n.atomStore),L=b.instanceState.backingComponentId,{parentStates:D}=e;g.type==="INSTANCE"&&(D===null&&(D=new Map),"componentSetId"in g&&g.componentSetId&&(D=new Map(D),D.set(g.componentSetId,{backingComponentIdState:L,transitionAtom:b.transitionAtom,parentAutoLayoutTransitionAtom:c,stateResetHandlers:b.stateResetHandlers})));let F,H,N=!1;try{if(g.type==="INSTANCE"){p.type;let ce=GS(t,e.modeContext,g,b),tt=vf(S,f),pn=tt?.value?.mainComponentId??void 0,Ft=dv(t,g,i,ce,b,e.componentProperties,pn);if(H=Ft.component,H.isUnreachable){let sr=new ht("Component node was incorrectly marked for pruning");sr.errorDetail=`instanceId: ${g.id}, componentId: ${H.id}`,Me.reportError(sr)}g.componentSetId&&s.has(g.componentSetId)&&(N=!0),H=Ev(g,{component:Ft.component,componentSet:Ft.componentSet},i,n.inheritedVariantPropertiesCache,n.computedVariantCache);let Cr=cv(g,tt,e.componentProperties);g=uv(g,H,Ft.componentSet?.type==="COMPONENT_SET"?Ft.componentSet:void 0,Cr),MS(g,e.componentProperties),Cr&&y!==g.mainComponentId&&(Av(g,p),Nv(g,p,tt)),A=FS(g,I,_o(g.overrides,{nodeId:g.id}),{backingComponent:H,nodeById:i},"uniformScaleFactor"in p?p.uniformScaleFactor:void 0,g.componentProperties)||A}g=CD(g),fv(g,i,l),F=GS(t,e.modeContext,g,b),A=rv(t,g,b.variableState,F,n.renderOptions)||A,MK(t,g,e.nodeId,e.stablePathToAssetInfo,e.stablePathToConstraints,n.websiteData.assets),LD(g,b.cmsDataState,u),A&&g.type==="SVG"&&(g.isDynamic=!0)}catch(ce){throw console.error("Materialization error",ce),new te("Materialization error",ce)}Lv(g);let K={websiteContext:n,node:g,sourceStablePath:GK(g),variableState:b.variableState,backingComponentIdState:L,parentStates:D,transitionAtom:b.transitionAtom,nodeById:i,modeContext:F},C=BS(K),M=C?.length?yv(t,K,C):void 0,P=bv(t,b.transitionAtom,b.autoLayoutTransitionAtom),{disableBehaviors:z,disableImageOptimization:Ee,renderComponentSetNodes:pe}=n.renderOptions,ye=g;ye.timelineOffset==null&&m!=null&&(ye.timelineOffset=m,ye.outerTimelineDuration=E);let Le=wS(g,ce=>i.get(ce)),We=lD(N,O,!!z,d),De={transitionData:P??d?.transitionData,smartAnimateType:We},ae=O||R?c??b.autoLayoutTransitionAtom:void 0,Oe=e.rootOffset??("absoluteBoundingBox"in g?{x:g.absoluteBoundingBox.x,y:g.absoluteBoundingBox.y}:void 0),oe=[];if("children"in g&&Array.isArray(g.children)){let ce=g.children,tt,{isFigmake:pn}=n;aS(p)&&(ce=lv(t,ce,i,n),tt=ce);let Ft=g.type==="FRAME"&&e.breakpointWidth!==void 0&&"size"in g&&Math.abs(g.size.x-e.breakpointWidth)<1;pn&&Ft&&(ce=av(ce,i));let Cr=g.type==="INSTANCE"?Iv(g,{backingComponent:H,nodeById:i},_o(g.overrides,{nodeId:g.id})):f,sr=Cr?.filter(Dr=>Dr.value.name!==void 0),Yi=kK(e.stablePathPrefix,g),pd=new Map,Pr=new Map,ua=[];for(let Dr=0;Dr<ce.length;Dr++){let Ki=ce[Dr],zi=tt?tt[Dr]:void 0,vr=i.get(Ki),Xi=vr.name,bp=vr.overrideKey,Lp=aS(p)&&vr.type==="FRAME",ni=Lp?vr.size.x:void 0,Vl=Oe;if(Lp)Vl={x:vr.absoluteBoundingBox.x,y:vr.absoluteBoundingBox.y};else if(g.type==="INSTANCE"){let Pp={x:Oe.x-g.absoluteBoundingBox.x,y:Oe.y-g.absoluteBoundingBox.y};Vl={x:H.absoluteBoundingBox.x+Pp.x,y:H.absoluteBoundingBox.y+Pp.y}}let Cp=pd.get(Xi)??0;pd.set(Xi,Cp+1);let aO=rc(Xi,Cp,g),md=sr?Rv([...I??[],aO],sr)??Xi:Xi,Hl=Pr.get(md)??0;Pr.set(md,Hl+1);let ca=Yi?Yi.concat(";",bp??Ki):Ki;ua.push(ca||Ki);let lO=(e.uniformScaleFactor||1)*("uniformScaleFactor"in vr&&vr.uniformScaleFactor?vr.uniformScaleFactor:1);oe.push({key:aO,keyWithOverrides:rc(md,Hl,g),parentState:b,nodeId:ca,stablePathPrefix:Yi,backingLayerId:Ki,modeContext:F,parentPath:I,preexpandedNodeId:zi,nodeById:i,assets:e.assets,assetIdToGuid:l,guidToUrl:u,animateRootIds:s,stablePathToAssetInfo:e.stablePathToAssetInfo,stablePathToConstraints:e.stablePathToConstraints,overrides:Cr,componentProperties:g.type==="INSTANCE"||g.type==="CODE_INSTANCE"||g.type==="CODE_LAYER"?g.componentProperties:e.componentProperties,parentStates:D,animateProps:{transitionProps:De,autoLayoutTransitionAtom:ae},uniformScaleFactor:lO,breakpointWidth:ni??e.breakpointWidth,rootOffset:Vl,ancestorTimelineOffsetSec:m,ancestorOuterTimelineDurationSec:E})}g.children=ua}let ft=wK(t,e.assets,g),et=FK(g,vK),he=et.type==="COMPONENT"||et.type==="INSTANCE"?et.type:void 0;he&&(et.type="FRAME");let ke=hE(et),Ye=ke.type;return`${Ye}`,Object.assign(ke,{materializedChildNodeProps:oe,transitionProps:De,interactions:C,interactionHandlers:M,
8649key:e.keyWithOverrides??e.key,variableState:b.variableState,modeContext:F,keyframeData:Le,transitionOverrides:g.transitionOverrides,assets:ft}),(g.type==="CODE_INSTANCE"||g.type==="CODE_LAYER")&&Object.assign(ke,{componentProperties:g.componentProperties}),(ke.type==="RECTANGLE"||ke.type==="IMAGE"||ke.type==="FRAME"||ke.type==="SVG")&&!Ee&&ft&&Object.values(ft).length&&(e.breakpointWidth,ke.lazyLoad=ke.absoluteBoundingBox.x>Oe.x+e.breakpointWidth||ke.absoluteBoundingBox.y>Oe.y+xK),he&&Object.assign(ke,{originalType:he}),OD(ke),VE(ke,e.uniformScaleFactor,"uniformScaleFactor"in p?p.uniformScaleFactor:void 0),ke}function rc(e,t,n){return n?.type==="WEBPAGE"?"":e+t}function MK(e,t,n,r,o,i){if(!n.includes("I"))return;t.id=n;let s=o.get(n);if(s&&"constraintValues"in t&&(t.constraintValues=s),t.type==="SVG"||t.type==="IMAGE"){let a=r.get(n),l=a?.hash;if(l){let u=i.get(l);if(u){let c=e(u);c&&c.type==="GENERATED_ASSET"&&(t.hash=l,t.type=c?.format==="SVG"?"SVG":"IMAGE")}}a?.constraintValues&&(t.constraintValues=a.constraintValues)}}function kK(e,t){if(e)return t.type==="INSTANCE"||t.type==="SLOT"&&t.isAssignedSlot?nc(t.id):e;if(t.type==="INSTANCE")return nc(t.id)}function GK(e){return e.type==="INSTANCE"?nc(e.id):e.id}function FK(e,t){let n={...e};for(let r in t)delete n[r];return n}function wK(e,t,n){let r,o=i=>{let s=t.get(i),a=e(s);r=r??{},r[i]=a};if("fills"in n)for(let i of n.fills)i.visible!==!1&&(i.type==="IMAGE"&&o(CE(i)),i.type==="VIDEO"&&o(i.videoRef));if("hash"in n&&o(n.hash),"behaviors"in n){let i=PS(n.behaviors);if(i&&o(i),n?.behaviors?.code!==void 0)for(let s of n.behaviors.code)for(let[a,l]of Object.entries(s.assignments))typeof l=="object"&&l.image!==null&&(o(l.image),l.animatedImage!==null&&o(l.animatedImage))}if("componentProperties"in n)for(let i of Object.values(n.componentProperties))i.type==="IMAGE"&&i.value.image&&(o(i.value.image),i.value.animatedImage!==null&&o(i.value.animatedImage));if("styleOverrideTable"in n){for(let i of Object.values(n.styleOverrideTable))if(i.fills)for(let s of i.fills)s.visible!==!1&&s.type==="IMAGE"&&o(CE(s))}return"effectSvgFileName"in n&&typeof n.effectSvgFileName=="string"&&o(n.effectSvgFileName.replace(".svg","")),r}function Iv(e,t,n){if(!n)return;let r=vv(e,t),o=[];for(let i of n){if(i.key.length===0)continue;let s=Cv(i.key,e,t.nodeById),a=i.key,l=!1;if(!s){let d=i.key[i.key.length-1];let f=UK(d,e,t.nodeById);f&&(s=f.node,a=f.key,l=!0)}if(!s)continue;let u={key:a,value:i.value,componentId:i.componentId};if(r){u.value={};let d=Cv(i.key,r,t.nodeById);if(d===void 0){let f=new ht("No node in variant for override");f.errorDetail=JSON.stringify({overrideKey:i.key,nodeId:e.id,nodeName:e.name,variantId:r.id,variantName:r.name}),Me.reportError(f);continue}for(let[f,p]of Io(i.value)){let _=HS(f,p,s,d);_!==void 0&&(u.value[f]=_)}}let c=o.findIndex(d=>Ue(d.key,a));if(c>-1){let d=o[c];l?u.value=US(u,d):u.value=US(d,u),o[c]=u}else o.push(u)}return o}function vf(e,t){if(!(!t||!e))return t.find(n=>Ue(n.key,e))}var Io=e=>Object.entries(e);function Dv(e,t){let n=e.filter(o=>ot(o.id)!==Ze),r=t.filter(o=>o.isDeleted).map(o=>ot(o.id));return n=n.filter(o=>!r.includes(ot(o.id))),t.forEach(o=>{if(o.isDeleted)return;let i=n.findIndex(s=>ot(s.id)===ot(o.id));i===-1?n.push(o):n[i]=o}),n}function FS(e,t,n,r,o=1,i){if(!t||!n)return!1;let s=vf(t,n);if(s?.value===void 0)return!1;let a=o!==0?1/o:1;VE(s.value,a,a);let l=vv(e,r);for(let[u,c]of Io(s.value))VK(u,e,i)||(e.type==="INSTANCE"&&u==="overrides"?c=VS(_o(e.overrides,{nodeId:e.id}),_o(c,{nodePath:t})):u==="interactions"&&"interactions"in e&&(c=Dv(e.interactions??[],c)),!(e.type==="INSTANCE"&&l&&(c=HS(u,c,r.backingComponent,l),c===void 0))&&(c===null?delete e[u]:e[u]=c));return!0}function Sv(e,t){if(t.value.explicitVariableModes===null?delete e.explicitVariableModes:e.explicitVariableModes=t.value.explicitVariableModes,t.value.boundVariables===null||t.value.boundVariables?.componentProperties===null)for(let n in e.componentProperties){let r=e.componentProperties[n];r&&"boundVariables"in r&&r?.boundVariables&&delete r.boundVariables}else if(t.value.boundVariables?.componentProperties)for(let n in e.componentProperties){let r=e.componentProperties[n];let i=t.value.boundVariables.componentProperties[n];i&&"boundVariables"in r&&(r.boundVariables={value:i})}}function US(e,t){let n=e.value,r=t?.value||{},o={...n,...r};return"overrides"in n&&"overrides"in r&&(o.overrides=VS(_o(n.overrides,{overrideId:n.id,overrideKey:n.overrideKey}),_o(r.overrides,{overrideId:r.id,overrideKey:r.overrideKey}
8649))),"interactions"in n&&"interactions"in r&&(o.interactions=Dv(n.interactions??[],r.interactions??[])),o}function VS(e,t){if(!e)return t;if(!t)return e;if(e&&t){let n=[];for(let r of e){let o=vf(r.key,t);n.push({key:r.key,componentId:o?.componentId??r.componentId,value:US(r,o)})}for(let r of t)vf(r.key,n)||n.push(r);return n}}var BK=new Set(["characters","characterStyleOverrides","styleOverrideTable","lineTypes","lineIndentations","fontSize","letterSpacing","lineHeight","fontStyle","fontVariations","inheritTextStyleId","lineStyleOverrides","resolvedParagraphValues"]);function HS(e,t,n,r){if(e==="name")return t;if(e==="interactions"){let o=e in r?r.interactions??[]:[],i=new Set(o.map(a=>ot(a.id)??Ze));return i.add(Ze),t.filter(a=>!i.has(ot(a.id)??Ze))}else if(e==="size"&&e in n&&e in r){let o=t;return{x:n.size.x===r.size.x?o.x:n.size.x,y:n.size.y===r.size.y?o.y:n.size.y}}else{if(e==="componentProperties")return t;if(e==="overrides"&&e in n&&e in r){let o=[];for(let i of _o(t,{newNodeId:n.id,origNodeId:r.id})){let s=n.overrides.find(c=>Ue(c.key,i.key)),a=r.overrides.find(c=>Ue(c.key,i.key));if(!s||!a){o.push(i);continue}let l={key:i.key,value:{},componentId:i.componentId},u=!1;for(let[c,d]of Io(i.value))d=HS(c,d,s.value,a.value),d!==void 0&&(l.value[c]=d,u=!0);u&&o.push(l)}return o}else if(BK.has(e))return t}if(Ue(n[e],r[e]))return t}function vv(e,t){if(!(e.type==="INSTANCE"&&t&&e.componentSetId))return;let n=t.nodeById.get(e.componentSetId);n!==void 0&&n.type;let r=Io(e.componentProperties).map(([o,i])=>i.type!=="VARIANT"?void 0:`${o}=${String(i.value)}
8649`).filter(Boolean).join(", ");if(r&&t.backingComponent.name!==r){for(let o of n.children){let i=t.nodeById.get(o);if(i.name===r)return i}console.warn("Could not find initial variant for instance",e.id)}}function xv(e,t){return e.type==="FRAME"||e.type==="SLOT"||e.type==="GROUP"||e.type==="INSTANCE"&&t.id===e.id||e.type==="COMPONENT"&&t.id===e.id||e.type==="REPEATER"}function Cv(e,t,n){let r=t;for(let o of e){if(!r||!xv(r,t))return;let i=r.children.map(a=>n.get(a));r=void 0;let s=new Map;for(let a=0;a<i.length;++a){let l=i[a];let u=s.get(l.name)??0;s.set(l.name,u+1);let c=rc(l.name,u);if(o===c){r=l;break}}}return r}function UK(e,t,n){let r=[{key:[],node:t}],o=new Map;for(;r.length>0;){let i=r.pop();let s=o.get(i.node.name)??0;if(rc(i.node.name,s)===e)return i;if(o.set(i.node.name,s+1),!xv(i.node,t))continue;let a=i.node.children.map(c=>n.get(c)),l=new Map,u=[];a.forEach(c=>{let d=l.get(c.name)??0;l.set(c.name,d+1),u.push({key:[...i.key,rc(c.name,d)],node:c})}),r.push(...u.reverse())}}function Rv(e,t){for(let n of t)if(n.value.name!==void 0&&n.value.name!==null&&Ue(n.key,e))return n.value.name}function Av(e,t){let n=e.overrides?.find(r=>r.key.length===0);if(n&&n.value.size){let r=n.value.size,o="uniformScaleFactor"in t?t.uniformScaleFactor:void 0,i=o?{x:r.x/o,y:r.y/o}:r;e.size=i}}function Pv(e,t){return e?.filter(n=>n.componentId===t)??[]}function Nv(e,t,n){let r=Pv(_o(t.overrides),e.mainComponentId),o=n?.value?.overrides?Pv(_o(n.value.overrides),e.mainComponentId):void 0;e.overrides=VS(r,o)??[]}function VK(e,t,n){if(!n||!("componentPropertyReferences"in t))return!1;let r=t.componentPropertyReferences?.[e];if(!r)return!1;let o=n[r];return o===void 0?!1:!("isDefault"in o&&o.isDefault)}var HK={E5FBBA911B2B7A09E649D4BE6CDF8591EAEFC881:!1};function WE(e){return e&&e.E5FBBA911B2B7A09E649D4BE6CDF8591EAEFC881!==void 0?e.E5FBBA911B2B7A09E649D4BE6CDF8591EAEFC881:HK.E5FBBA911B2B7A09E649D4BE6CDF8591EAEFC881}function oc(e,t){throw new Error(t??`Uncaught type ${JSON.stringify(e)}`)}function Mv(e,t,...n){typeof FIGBUILD_PROD=="boolean"&&!FIGBUILD_PROD&&!e&&console.error(`Failed assertion: ${t}`,...n)}var WK={"size.x":"WIDTH","size.y":"HEIGHT",minWidth:"MIN_WIDTH",maxWidth:"MAX_WIDTH",minHeight:"MIN_HEIGHT",maxHeight:"MAX_HEIGHT",opacity:"OPACITY",visible:"VISIBLE",cornerRadius:"CORNER_RADIUS",topLeftRadius:"RECTANGLE_TOP_LEFT_CORNER_RADIUS",topRightRadius:"RECTANGLE_TOP_RIGHT_CORNER_RADIUS",bottomLeftRadius:"RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS",bottomRightRadius:"RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS","rectangleCornerRadii.RECTANGLE_TOP_LEFT_CORNER_RADIUS":"RECTANGLE_TOP_LEFT_CORNER_RADIUS","rectangleCornerRadii.RECTANGLE_TOP_RIGHT_CORNER_RADIUS":"RECTANGLE_TOP_RIGHT_CORNER_RADIUS","rectangleCornerRadii.RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS":"RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS","rectangleCornerRadii.RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS":"RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS","individualStrokeWeights.BORDER_TOP_WEIGHT":"BORDER_TOP_WEIGHT","individualStrokeWeights.BORDER_RIGHT_WEIGHT":"BORDER_RIGHT_WEIGHT","individualStrokeWeights.BORDER_BOTTOM_WEIGHT":"BORDER_BOTTOM_WEIGHT","individualStrokeWeights.BORDER_LEFT_WEIGHT":"BORDER_LEFT_WEIGHT",paddingLeft:"STACK_PADDING_LEFT",paddingRight:"STACK_PADDING_RIGHT",paddingTop:"STACK_PADDING_TOP",paddingBottom:"STACK_PADDING_BOTTOM",itemSpacing:"STACK_SPACING",counterAxisSpacing:"STACK_COUNTER_SPACING",rotation:"MOTION_ROTATION",translationX:"MOTION_TRANSLATION_X",translationY:"MOTION_TRANSLATION_Y",translationXY:"MOTION_TRANSLATION_XY",scaleX:"MOTION_SCALE_X",scaleY:"MOTION_SCALE_Y",scaleXY:"MOTION_SCALE_XY",shear:"MOTION_SHEAR",fontSize:"FONT_SIZE",letterSpacing:"LETTER_SPACING",lineHeight:"LINE_HEIGHT",paragraphSpacing:"PARAGRAPH_SPACING",paragraphIndent:"PARAGRAPH_INDENT",characters:"TEXT_DATA",fills:"fills",strokes:"strokes"};function YK(e){let t=[];if(!e.boundKeyframes)return[];for(let[n,r]of Object.entries(e.boundKeyframes))if(!(!r||typeof r!="object"))if("type"in r&&r.type==="EXPRESSION")t.push([n,r]);else if(Array.isArray(r)){let o=r[0];o&&typeof o=="object"&&"type"in o&&o.type==="EXPRESSION"&&t.push([n,o]
8649)}else for(let[o,i]of Object.entries(r))i&&typeof i=="object"&&i.type==="EXPRESSION"&&t.push([`${n}.${o}`,i]);return t}function KK(e,t){let n=t(e);if(!n||n.type!=="KEYFRAME_TRACK")return null;let r=n.children??[],o=[];for(let i of r){let s=t(i);!s||s.type!=="KEYFRAME"||o.push(s)}return{id:n.id,keyframes:o,keyframeOperation:n.keyframeOperation}}function wS(e,t){let n={},r=YK(e);if(r.length===0)return{};if(!e.timelineDuration)return{};let o=Math.round(e.timelineDuration*1e6),i=e,s=i.timelineOffset?Math.round(i.timelineOffset*1e6):0,a=i.outerTimelineDuration?Math.round(i.outerTimelineDuration*1e6):o;for(let[l,u]of r){let c=WK[l];if(!c)continue;let d=u.expressionArguments[0],f=u.expressionArguments[1],p=[];for(let _ of f.value.parameters){let T=KK(_.keyframeTrack,t);if(!T)continue;let h=T.keyframes.map(m=>{let E,O=m.easing,{type:g}=O;switch(g){case"CUSTOM_BEZIER":case"CUSTOM_CUBIC":E={type:"BEZIER",value:O.value};break;case"CUSTOM_SPRING":E={type:"SPRING",value:O.value};break;case"EASE_IN":E={type:"BEZIER",value:{p1x:.42,p1y:0,p2x:1,p2y:1}};break;case"EASE_OUT":E={type:"BEZIER",value:{p1x:0,p1y:0,p2x:.58,p2y:1}};break;case"EASE_IN_AND_OUT":E={type:"BEZIER",value:{p1x:.42,p1y:0,p2x:.58,p2y:1}};break;case"LINEAR":E={type:"LINEAR"};break;case"EASE_IN_BACK":E={type:"BEZIER",value:{p1x:.3,p1y:-.05,p2x:.7,p2y:-.5}};break;case"EASE_OUT_BACK":E={type:"BEZIER",value:{p1x:.45,p1y:1.45,p2x:.8,p2y:1}};break;case"EASE_IN_AND_OUT_BACK":E={type:"BEZIER",value:{p1x:.7,p1y:-.4,p2x:.4,p2y:1.4}};break;case"GENTLE":E={type:"SPRING",value:{mass:1,stiffness:100,damping:15}};break;case"QUICK":E={type:"SPRING",value:{mass:1,stiffness:300,damping:20}};break;case"BOUNCY":E={type:"SPRING",value:{mass:1,stiffness:600,damping:15}};break;case"SLOW":E={type:"SPRING",value:{mass:1,stiffness:80,damping:20}};break;case"SPRING":E={type:"SPRING",value:{mass:1,stiffness:100,damping:15}};break;case"HOLD":E={type:"HOLD"};break;default:oc(g)}return{...m,easing:E,timelinePosition:Math.round(m.timelinePosition*1e6)}});p.push({...T,keyframes:h})}if(p.length>0){let _={baseValue:d,tracks:p,timelineDuration:a,...s!==0?{accumulatedAncestorOffsetMicros:s}:{}};c==="fills"||c==="strokes"?n[c]={0:_}:n[c]=_}}return zK(n),n}function kv(e,t){let n=e.baseValue;return{...e,baseValue:{type:"FLOAT",value:n.type==="VECTOR"?n.value[t]:0},tracks:e.tracks.map(r=>({...r,keyframes:r.keyframes.map(o=>({...o,value:{type:"FLOAT",value:o.value.type==="VECTOR"?o.value.value[t]:0}}))}))}}function zK(e){let t=e,n=[{vec:"MOTION_TRANSLATION_XY",x:"MOTION_TRANSLATION_X",y:"MOTION_TRANSLATION_Y"},{vec:"MOTION_SCALE_XY",x:"MOTION_SCALE_X",y:"MOTION_SCALE_Y"}];for(let r of n){let o=t[r.vec];o&&o.baseValue.type==="VECTOR"&&(t[r.x]||(t[r.x]=kv(o,"x")),t[r.y]||(t[r.y]=kv(o,"y")),delete t[r.vec])}}var XK={motion:"easeInOut",css:"ease-in-out"},jK=[1,100,15],$K=On.OUT_CUBIC,Gv=.3;function Fv(e,t){let n=ho(t);if(n)return{ease:n.ease};let r=e.easingType??$K,[o,i,s]=e.easingFunction&&e.easingFunction.length>=3?e.easingFunction:jK;switch(r){case On.LINEAR:return{ease:"linear"};case On.IN_CUBIC:return{ease:"easeIn"};case On.OUT_CUBIC:return{ease:"easeOut"};case On.INOUT_CUBIC:return{ease:"easeInOut"};case On.IN_BACK_CUBIC:return{ease:"backIn"};case On.OUT_BACK_CUBIC:return{ease:"backOut"};case On.INOUT_BACK_CUBIC:return{ease:"backInOut"};case On.CUSTOM_CUBIC:return{ease:e.easingFunction?e.easingFunction:XK.motion};case On.SPRING:case On.CUSTOM_SPRING:case On.GENTLE_SPRING:case On.SPRING_PRESET_ONE:case On.SPRING_PRESET_TWO:case On.SPRING_PRESET_THREE:return{type:"spring",stiffness:i,damping:s,mass:o}}}var be=function(e){return e.VISIBLE="visible",e.INITIAL="initial",e.EXIT="exit",e.SCROLL_DIRECTION="scrollDirection",e.HOVER="hover",e.PRESS="press",e.FOCUS="focus",e.VISIBLE_SMART_ANIMATE="visibleSmartAnimate",e.HIDDEN_SMART_ANIMATE="hiddenSmartAnimate",e}({});function Ku(e){return(t,n)=>e?`${e instanceof Q?e.value:e} ${n}`:n}var ZK=new Set(Object.values(be));function JK(e){let t=[],n=e.filter(o=>o!==void 0),r=n.reduce((o,i)=>({...o,...i}));for(let o of n)for(let[i,s]of Io(o))if(i==="variants")for(let a in s)ZK.has(a)?Ue(r.variants?.[a],s[a])||t.pu
8649sh(`variants: ${a} has been overwritten`):t.push(`variants: ${a} is not a valid variant`);else Ue(r[i],s)||t.push(`prop "${i}" has been overwritten`);return t}function wv(e,t){if(WE(t.labs))return;let n=JK(e);n.length,`${n.join(", ")}`}Fe();var Cne={allowImageLasso:!1,allowsPDFImport:!1,canCreateCodeLayerFromDesign:!1,editorType:Uv.DESIGN,enabledDakota:!1,enabledFigmake:!1,enabledMakeInDesign:!1,enabledSites:!1,hasTextSuggestionsPermission:!1,isCooper:!1,isSlides:!1,supportsPrintMarks:!1,supportsRulerUnitChange:!1,toggleTimelineKeyframe:!1},Pne={canHideUI:!0,canRedo:!1,canUndo:!1,collabToolsInDesign:!1,currentTool:Vv.NONE,editMode:Bv.DESIGN_LAYOUT,fileKeyIsValid:!1,hasActiveCanvas:!1,hasActiveDocument:!1,inBranchFile:!1,interopToolMode:0,isAiDisabled:!1,isAiDisabledFigJam:!1,isFocusModeActive:!1,isLayoutEditMode:!0,isReadOnly:!1,isRecording:!1,isRunningInteractionTests:!1,isSelectionMode:!0,isSelectionValidForSelectAllMatching:!1,isShapeEditMode:!0,isUndoRedoAllowed:!1,isUserLoggedIn:!1,toolsV2Enabled:!1,topLevelMode:0};Fe();function WS(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(WS||(WS={}));function Hv(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(Hv||(Hv={}));function Wv(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(Wv||(Wv={}));function Yv(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(Yv||(Yv={}));function Kv(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(Kv||(Kv={}));function zv(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(zv||(zv={}));function Xv(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(Xv||(Xv={}));function jv(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(jv||(jv={}));function $v(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})($v||($v={}));function Zv(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(Zv||(Zv={}));function Jv(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(Jv||(Jv={}));function qv(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(qv||(qv={}));function Qv(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(Qv||(Qv={}));function ex(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(ex||(ex={}));function tx(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(tx||(tx={}));function nx(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(nx||(nx={}));function rx(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(rx||(rx={}));function ox(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(ox||(ox={}));function YS(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(YS||(YS={}));function ix(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(ix||(ix={}));function sx(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(sx||(sx={}));function ax(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(ax||(ax={}));function lx(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(lx||(lx={}));function ux(e){return e}(function(e){e.INVALID=e(""),e.DUMMY=e("-1:-1");function t(n){return n}e.toString=t})(ux||(ux={}));function cx(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(cx||(cx={}));function dx(e){return e}(function(e){e.INVALID=e(""),e.DUMMY=e("-1:-1");function t(n){return n}e.toString=t})(dx||(dx={}));function fx(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(fx||(fx={}));function px(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(px||(px={}));function mx(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(mx||(mx={}));function Ex(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(Ex||(Ex={}));function _x(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(_x||(_x={}));function Tx(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(Tx||(Tx={}));function hx(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(hx||(hx={}));function Ox(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(Ox||(Ox={}));function gx(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(gx||(gx={}));function Ix(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(Ix||(Ix={}));(function(e){e.toString=Yt,e.fromString=Kt,e.fromKiwi=zt,e.isEqual=Xt,e.isValid=jt})(Sx||(Sx={}));(function(e){e.toString=Yt,e.fromString=Kt,e.fromKiwi=zt,e.isEqual=Xt,e.isValid=jt})(Rx||(Rx={}));(function(e){e.toString=Yt,e.fromString=Kt,e.fromKiwi=zt,e.isEqual=Xt,e.isValid=jt})(YE||(YE={}));(function(e){e.toString=Yt,e.fromString=Kt,e.fromKiwi=zt,e.isEqual=Xt,e.isValid=jt})(KE||(KE={}));(function(e){e.toString=Yt,e.fromString=Kt,e.fromKiwi=zt,e.isEqual=Xt,e.isValid=jt})(zE||(zE={}));(function(e){e.toString=Yt,e.fromString=Kt,e.fromKiwi=zt,e.isEqual=Xt,e.isValid=jt})(XE||(XE={}));(function(e){e.toString=Yt,e.fromString=Kt,e.fromKiwi=zt,e.isEqual=Xt,e.isValid=jt})(jE||(jE={}));(function(e){e.toString=Yt,e.fromString=Kt,e.fromKiwi=zt,e.isEqual=Xt,e.isValid=jt})(xf||(xf={}));(function(e){e.toString=Yt,e.fromString=Kt,e.fromKiwi=zt,e.isEqual=Xt,e.isValid=jt})($E||($E={}));(function(e){e.toString=Yt,e.fromString=Kt,e.fromKiwi=zt,e.isEqual=Xt,e.isValid=jt})(ZE||(ZE={}));(function(e){e.toString=Yt,e.fromString=Kt,e.fromKiwi=zt,e.isEqual=Xt,e.isValid=jt})(JE||(JE={}));(function(e){e.toString=Yt,e.fromString=Kt,e.fromKiwi=zt,e.isEqual=Xt,e.isValid=jt})(qE||(qE={}));(function(e){e.toString=Yt,e.fromString=Kt,e.fromKiwi=zt,e.isEqual=Xt,e.isValid=jt})(QE||(QE={}));(function(e){e.toString=Yt,e.fromString=Kt,e.fromKiwi=zt,e.isEqual=Xt,e.isValid=jt})(e_||(e_={}));(function(e){e.toString=Yt,e.fromString=Kt,e.fromKiwi=zt,e.isEqual=Xt,e.isValid=jt})(t_||(t_={}));(function(e){e.toString=Yt,e.fromString=Kt,e.fromKiwi=zt,e.isEqual=Xt,e.isValid=jt})(n_||(n_={}));(function(e){e.toString=Yt,e.fromString=Kt,e.fromKiwi=zt,e.isEqual=Xt,e.isValid=jt})(r_||(r_={}));(function(e){e.toString=Yt,e.fromString=Kt,e.fromKiwi=zt,e.isEqual=Xt,e.isValid=jt})(o_||(o_={}));function Yt({key:e,version:t}){return`${WS.toString(e)}/${YS.toString(t)}`}function Kt(e){let t=e.split("/");if(t.length!==2)return null;let[n,r]=t;return n&&r?{key:n,version:r}:null}function zt({key:e,version:t}){return!e||!t?null:{key:e,version:t}}function Xt(e,t){return!e||!t?e===t:e.key===t.key&&e.version===t.version}function jt({key:e,version:t}){return Boolean(e&&t)}var Sx,Rx,YE,KE,zE,XE,jE,xf,$E,ZE,JE,qE,QE,e_,t_,n_,r_,o_;(function(e){let n=an("CodeLibraryId:",JE);e.INVALID=n.fromLocalNodeIdStr(Ze),e.toString=n.toString,e.toKiwi=n.toKiwi,e.toGuidObjIfLocal=n.toGuidObjIfLocal,e.toGuidStrIfLocal=n.toGuidStrIfLocal,e.toRefIfSubscribed=n.toRefIfSubscribed,e.fromString=n.fromString,e.fromLocalNodeIdObj=n.fromLocalNodeIdObj,e.fromLocalNodeIdStr=n.fromLocalNodeIdStr,e.fromRef=n.fromRef,e.fromKiwi=n.fromKiwi,e.isValid=n.isValid})(Ax||(Ax={}));(function(e){let n=an("CodeFileId:",qE);e.INVALID=n.fromLocalNodeIdStr(Ze),e.toString=n.toString,e.toKiwi=n.toKiwi,e.toGuidObjIfLocal=n.toGuidObjIfLocal,e.toGuidStrIfLocal=n.toGuidStrIfLocal,e.toRefIfSubscribed=n.toRefIfSubscribed,e.fromString=n.fromString,e.fromLocalNodeIdObj=n.fromLocalNodeIdObj,e.fromLocalNodeIdStr=n.fromLocalNodeIdStr,e.fromRef=n.fromRef,e.fromKiwi=n.fromKiwi,e.isValid=n.isValid})(Nx||(Nx={}));(function(e){let n=an("CodeComponentId:",QE);e.INVALID=n.fromLocalNodeIdStr(Ze),e.toString=n.toString,e.toKiwi=n.toKiwi,e.toGuidObjIfLocal=n.toGuidObjIfLocal,e.toGuidStrIfLocal=n.toGuidStrIfLocal,e.toRefIfSubscribed=n.toRefIfSubscribed,e.fromString=n.fromString,e.fromLocalNodeIdObj=n.fromLocalNodeIdObj,e.fromLocalNodeIdStr=n.fromLocalNodeIdStr,e.fromRef=n.fromRef,e.fromKiwi=n.fromKiwi,e.isValid=n.isValid})(KS||(KS={}));(function(e){let n=an("ManagedStringId:",e_);e.INVALID=n.fromLocalNodeIdStr(Ze),e.toString=n.toString,e.toKiwi=n.toKiwi,e.toGuidObjIfLocal=n.toGuidObjIfLocal,e.toGuidStrIfLocal=n.toGuidStrIfLocal,e.toRefIfSubscribed=n.toRefIfSubscribed,e.fromString=n.fromString,e.fromLocalNodeIdObj=n.fromLocalNodeIdObj,e.fromLocalNodeIdStr=n.fromLocalNodeIdStr,e.fromRef=n.fromRef,e.fromKiwi=n.fromKiwi,e.isValid=n.isValid})(yx||(yx={}));(function(e){let n=an("ResponsiveSetId:",ZE);e.INVALID=n.fromLocalNodeIdStr(Ze),e.toString=n.toString,e.toKiwi=n.toKiwi,e.toGuidObjIfLocal=n.toGuidObjIfLocal,e.toGuidStrIfLocal=n.toGuidStrIfLocal,e.toRefIfSubscribed=n.toRefIfSubscribed,e.fromString=n.fromString,e.fromLocalNodeIdObj=n.fromLocalNodeIdObj,e.fromLocalNodeIdStr=n.fromLocalNodeIdStr,e.fromRef=n.fromRef,e.fromKiwi=n.fromKiwi,e.isValid=n.isValid})(bx||(bx={}));(function(e){let n=an("SymbolId:",YE);e.INVALID=n.fromLocalNodeIdStr(Ze),e.toString=n.toString,e.toKiwi=n.toKiwi,e.toGuidObjIfLocal=n.toGuidObjIfLocal,e.toGuidStrIfLocal=n.toGuidStrIfLocal,e.toRefIfSubscribed=n.toRefIfSubscribed,e.fromString=n.fromString,e.fromLocalNodeIdObj=n.fromLocalNodeIdObj,e.fromLocalNodeIdStr=n.fromLocalNodeIdStr,e.fromRef=n.fromRef,e.fromKiwi=n.fromKiwi,e.isValid=n.isValid})(qa||(qa={}));(function(e){let n=an("StateGroupId:",KE);e.INVALID=n.fromLocalNodeIdStr(Ze),e.toString=n.toString,e.toKiwi=n.toKiwi,e.toGuidObjIfLocal=n.toGuidObjIfLocal,e.toGuidStrIfLocal=n.toGuidStrIfLocal,e.toRefIfSubscribed=n.toRefIfSubscribed,e.fromString=n.fromString,e.fromLocalNodeIdObj=n.fromLocalNodeIdObj,e.fromLocalNodeIdStr=n.fromLocalNodeIdStr,e.fromRef=n.fromRef,e.fromKiwi=n.fromKiwi,e.isValid=n.isValid})(Qa||(Qa={}));(function(e){let n=an("StyleId:",zE);e.INVALID=n.fromLocalNodeIdStr(Ze),e.toString=n.toString,e.toKiwi=n.toKiwi,e.toGuidObjIfLocal=n.toGuidObjIfLocal,e.toGuidStrIfLocal=n.toGuidStrIfLocal,e.toRefIfSubscribed=n.toRefIfSubscribed,e.fromString=n.fromString,e.fromLocalNodeIdObj=n.fromLocalNodeIdObj,e.fromLocalNodeIdStr=n.fromLocalNodeIdStr,e.fromRef=n.fromRef,e.fromKiwi=n.fromKiwi,e.isValid=n.isValid;function r(o){return o.guid&&o.guid!==Ze?e.fromLocalNodeIdStr(o.guid):e.fromRef(o.ref)}e.fromBindingsObj=r})(Lx||(Lx={}));(function(e){let n=an("VariableID:",XE);e.INVALID=n.fromLocalNodeIdStr(Ze),e.toString=n.toString,e.toKiwi=n.toKiwi,e.toGuidObjIfLocal=n.toGuidObjIfLocal,e.toGuidStrIfLocal=n.toGuidStrIfLocal,e.toRefIfSubscribed=n.toRefIfSubscribed,e.fromString=n.fromString,e.fromLocalNodeIdObj=n.fromLocalNodeIdObj,e.fromLocalNodeIdStr=n.fromLocalNodeIdStr,e.fromRef=n.fromRef,e.fromKiwi=n.fromKiwi,e.isValid=n.isValid})(Cx||(Cx={}));(function(e){let n=an("KeyframeTrackId:",t_);e.INVALID=n.fromLocalNodeIdStr(Ze),e.toString=n.toString,e.toKiwi=n.toKiwi,e.toGuidObjIfLocal=n.toGuidObjIfLocal,e.toGuidStrIfLocal=n.toGuidStrIfLocal,e.toRefIfSubscribed=n.toRefIfSubscribed,e.fromString=n.fromString,e.fromLocalNodeIdObj=n.fromLocalNodeIdObj,e.fromLocalNodeIdStr=n.fromLocalNodeIdStr,e.fromRef=n.fromRef,e.fromKiwi=n.fromKiwi,e.isValid=n.isValid})(zS||(zS={}));
8649(function(e){let n=an("AnimationPresetId:",n_);e.INVALID=n.fromLocalNodeIdStr(Ze),e.toString=n.toString,e.toKiwi=n.toKiwi,e.toGuidObjIfLocal=n.toGuidObjIfLocal,e.toGuidStrIfLocal=n.toGuidStrIfLocal,e.toRefIfSubscribed=n.toRefIfSubscribed,e.fromString=n.fromString,e.fromLocalNodeIdObj=n.fromLocalNodeIdObj,e.fromLocalNodeIdStr=n.fromLocalNodeIdStr,e.fromRef=n.fromRef,e.fromKiwi=n.fromKiwi,e.isValid=n.isValid})(i_||(i_={}));(function(e){let n=an("ToolId:",r_);e.INVALID=n.fromLocalNodeIdStr(Ze),e.toString=n.toString,e.toKiwi=n.toKiwi,e.toGuidObjIfLocal=n.toGuidObjIfLocal,e.toGuidStrIfLocal=n.toGuidStrIfLocal,e.toRefIfSubscribed=n.toRefIfSubscribed,e.fromString=n.fromString,e.fromLocalNodeIdObj=n.fromLocalNodeIdObj,e.fromLocalNodeIdStr=n.fromLocalNodeIdStr,e.fromRef=n.fromRef,e.fromKiwi=n.fromKiwi,e.isValid=n.isValid})(Px||(Px={}));(function(e){let n=an("CustomEffectId:",o_);e.INVALID=n.fromLocalNodeIdStr(Ze),e.toString=n.toString,e.toKiwi=n.toKiwi,e.toGuidObjIfLocal=n.toGuidObjIfLocal,e.toGuidStrIfLocal=n.toGuidStrIfLocal,e.toRefIfSubscribed=n.toRefIfSubscribed,e.fromString=n.fromString,e.fromLocalNodeIdObj=n.fromLocalNodeIdObj,e.fromLocalNodeIdStr=n.fromLocalNodeIdStr,e.fromRef=n.fromRef,e.fromKiwi=n.fromKiwi,e.isValid=n.isValid})(Dx||(Dx={}));(function(e){let n=an("VariableOverrideId:",jE);e.INVALID=n.fromLocalNodeIdStr(Ze),e.toString=n.toString,e.toKiwi=n.toKiwi,e.toGuidObjIfLocal=n.toGuidObjIfLocal,e.toGuidStrIfLocal=n.toGuidStrIfLocal,e.toRefIfSubscribed=n.toRefIfSubscribed,e.fromString=n.fromString,e.fromLocalNodeIdObj=n.fromLocalNodeIdObj,e.fromLocalNodeIdStr=n.fromLocalNodeIdStr,e.fromRef=n.fromRef,e.fromKiwi=n.fromKiwi,e.isValid=n.isValid})(vx||(vx={}));(function(e){let t="VariableCollectionId:",n="VariableSetID:",r=an(t,xf),o=an(n,xf);e.INVALID=r.fromLocalNodeIdStr(Ze),e.toString=r.toString,e.toKiwi=i({current:r.toKiwi,deprecated:o.toKiwi}),e.toGuidObjIfLocal=i({current:r.toGuidObjIfLocal,deprecated:o.toGuidObjIfLocal}),e.toGuidStrIfLocal=i({current:r.toGuidStrIfLocal,deprecated:o.toGuidStrIfLocal}),e.toRefIfSubscribed=i({current:r.toRefIfSubscribed,deprecated:o.toRefIfSubscribed}),e.fromString=i({current:r.fromString,deprecated:o.fromString}),e.fromLocalNodeIdObj=r.fromLocalNodeIdObj,e.fromLocalNodeIdStr=r.fromLocalNodeIdStr,e.fromRef=r.fromRef,e.fromKiwi=r.fromKiwi,e.isValid=i({current:r.isValid,deprecated:o.isValid});function i({current:s,deprecated:a}){return l=>l.startsWith(n)?a(l):s(l)}})(xx||(xx={}));(function(e){let n=an("ModuleId:",$E);e.INVALID=n.fromLocalNodeIdStr(Ze),e.toString=n.toString,e.toKiwi=n.toKiwi,e.toGuidObjIfLocal=n.toGuidObjIfLocal,e.toGuidStrIfLocal=n.toGuidStrIfLocal,e.toRefIfSubscribed=n.toRefIfSubscribed,e.fromString=n.fromString,e.fromLocalNodeIdObj=n.fromLocalNodeIdObj,e.fromLocalNodeIdStr=n.fromLocalNodeIdStr,e.fromRef=n.fromRef,e.fromKiwi=n.fromKiwi,e.isValid=n.isValid})(Mx||(Mx={}));(function(e){e.fromKiwi=t=>{if(t.guid)return{type:"guid",guid:ot(t.guid)};if(t.stateGroupId){let n=Qa.fromKiwi(t.stateGroupId);if(n)return{type:"stateGroup",stateGroupId:n}}if(t.symbolId){let n=qa.fromKiwi(t.symbolId);if(n)return{type:"symbol",symbolId:n}}Mv(!1,"Unhandled CanvasNodeId type")},e.toGuidStrIfLocal=t=>{switch(t.type){case"guid":return t.guid;case"symbol":return qa.toGuidStrIfLocal(t.symbolId);case"stateGroup":return Qa.toGuidStrIfLocal(t.stateGroupId)}},e.toRefIfSubscribed=t=>{switch(t.type){case"guid":return null;case"symbol":return qa.toRefIfSubscribed(t.symbolId);case"stateGroup":return Qa.toRefIfSubscribed(t.stateGroupId)}},e.toString=t=>{switch(t.type){case"guid":return t.guid;case"symbol":return qa.toString(t.symbolId);case"stateGroup":return Qa.toString(t.stateGroupId)}},e.fromString=t=>{let n=qa.fromString(t);if(n)return{type:"symbol",symbolId:n};let r=Qa.fromString(t);return r?{type:"stateGroup",stateGroupId:r}:hf(t)?{type:"guid",guid:t}:null}})(kx||(kx={}));function an(e,t){function n(h){return h}function r(h,m){return h.startsWith(e)?m(h.slice(e.length)):null}function o(h){return hf(h)}function i(h){return t.fromString(h)}function s(h){return r(h,E=>{let O=i(E);if(O)return{assetRef:O};let g=o(E);if(g)return{guid:g}})??{guid:mP}}function a(h){return r(h,m=>i(m)?null:o(m))}function l(h){return r(h,m=>i(m)?null:m)}function u(h){return r(h,m=>i(m))}function c(h){return r(h,m=>o(m)||i(m)?h:null)}function d(h){return e+ot(h)}function f(h){return hf(h)?e+h:null}function p(h){return e+t.toString(h)}function _(h){if(!h)return null;let{guid:m,assetRef:E}=h;if(m&&!E)return d(m);if(!m&&E){let O=t.fromKiwi(E);if(O)return p(O)}return null}function T(h){let m=a(h);if(m)return EE(m);let E=u(h);return E?t.isValid(E):!1}return{toString:n,toKiwi:s,toGuidObjIfLocal:a,toGuidStrIfLocal:l,toRefIfSubscribed:u,fromString:c,fromLocalNodeIdObj:d,fromLocalNodeIdStr:f,fromRef:p,fromKiwi:_,isValid:T}}var Ax,Nx,KS,yx,bx,qa,Qa,Lx,Cx,zS,i_,Px,Dx,vx,xx,Mx,kx;var Hne=new Intl.Collator("en",{numeric:!0,sensitivity:"base"});Fe();var Zne=[Ja.COLOR,Ja.FLOAT,Ja.STRING,Ja.BOOLEAN];Fe();L0();Fe();Fe();var C0="Fade",P0=`Animates the opacity of an element to fade it in or out. Use this preset for entrance or exit animations, revealing content, or smooth visibility transitions. 8650 8651Properties: 8652- timing: Select "Fade In" to animate from transparent to opaque, or "Fade Out" to animate from opaque to transparent. 8653- duration: The length of the animation in seconds. 8654- easing: The easing curve that controls the acceleration of the fade.`,D0=[{name:"timing",type:G.TEXT,label:"Timing",defaultText:"in",selectConfig:{options:[{value:"in",label:"In"},{value:"out",label:"Out"}]}},{name:"duration",type:G.NUMBER,label:"Duration",defaultNumber:.5,inputConfig:{min:.01,unit:"s"},numberResolvedAsTiming:!0},{name:"easing",type:G.EASING,label:"Easing",defaultEasing:{easingType:w.OUT_CUBIC}}];Fe();var v0="Move",x0=`Translates an element along the X and Y axes to slide it in or out of position. Use this preset for slide-in or slide-out transitions, off-screen entrances, or directional movement effects. 8655 8656Properties: 8657- timing: Select "Move In" to slide from the offset position to the original position, or "Move Out" to slide from the original position to the offset. 8658- moveX: The horizontal translation offset in pixels. 8659- moveY: The vertical translation offset in pixels. 8660- duration: The length of the animation in seconds. 8661- fade: Enable to simultaneously fade the element's opacity during the move. 8662- easing: The easing curve that controls the acceleration of the movement.`,M0=[{name:"timing",type:G.TEXT,label:"Timing",defaultText:"out",selectConfig:{options:[{value:"in",label:"In"},{value:"out",label:"Out"}]}},{name:"moveX",type:G.NUMBER,label:"Move X",defaultNumber:100},{name:"moveY",type:G.NUMBER,label:"Move Y",defaultNumber:0},{name:"duration",type:G.NUMBER,label:"Duration",defaultNumber:.5,inputConfig:{min:.01,unit:"s"},numberResolvedAsTiming:!0},{name:"fade",type:G.BOOL,label:"Fade",defaultBool:!1},{name:"easing",type:G.EASING,label:"Easing",defaultEasing:{easingType:w.OUT_CUBIC}}];Fe();var k0="motion.preset_name.corner_radius",G0='Animates the corner radius of a node, either uniformly or per-corner. Use this preset for "round in / round out" reveal effects, or pick the Custom type for explicit start / end radiu
8662s values per corner.\n\nProperties:\n- type: "Round in" animates 0 \u2192 amount; "Round out" animates amount \u2192 0; "Custom" lets each corner specify explicit start / end values.\n- corner: "All" drives the shared `cornerRadius` field; the four specific corner values drive only that corner. Toggling between "All" and a specific corner relies on the C++ preset bind path to flip `rectangleCornerRadiiIndependent` (see `_bindKeyframeExpressionToParameterField`).\n- amount: For type=roundIn/roundOut, the target radius in px.\n- *StartFrame / *EndFrame: For type=custom, the per-corner start/end radii. Only the pair matching the current `corner` selection is animated.\n- delay / duration / easing: Shared timing for the animation.',F0=[{name:"type",type:G.TEXT,label:"motion.preset_flyout.type",defaultText:"roundIn",selectConfig:{options:[{value:"roundIn",label:"motion.preset_flyout.corner_radius.type.round_in"},{value:"roundOut",label:"motion.preset_flyout.corner_radius.type.round_out"},{value:"custom",label:"motion.preset_flyout.type.custom"}]}},{name:"corner",type:G.TEXT,label:"motion.preset_flyout.corner_radius.corner",defaultText:"all",selectConfig:{options:[{value:"all",label:"motion.preset_flyout.corner_radius.corner.all"},{value:"topLeft",label:"motion.preset_flyout.corner_radius.corner.top_left"},{value:"topRight",label:"motion.preset_flyout.corner_radius.corner.top_right"},{value:"bottomLeft",label:"motion.preset_flyout.corner_radius.corner.bottom_left"},{value:"bottomRight",label:"motion.preset_flyout.corner_radius.corner.bottom_right"}]}},{name:"amount",type:G.NUMBER,label:"motion.preset_flyout.amount",defaultNumber:10,inputConfig:{min:0,unit:"px"}},{name:"allStartFrame",type:G.NUMBER,label:"motion.preset_flyout.start_frame",defaultNumber:10,inputConfig:{min:0,unit:"px",icon:"radius_all"}},{name:"allEndFrame",type:G.NUMBER,label:"motion.preset_flyout.end_frame",defaultNumber:0,inputConfig:{min:0,unit:"px",icon:"radius_all"}},{name:"topLeftStartFrame",type:G.NUMBER,label:"motion.preset_flyout.start_frame",defaultNumber:0,inputConfig:{min:0,unit:"px",icon:"radius_top_left"}},{name:"topLeftEndFrame",type:G.NUMBER,label:"motion.preset_flyout.end_frame",defaultNumber:20,inputConfig:{min:0,unit:"px",icon:"radius_top_left"}},{name:"topRightStartFrame",type:G.NUMBER,label:"motion.preset_flyout.start_frame",defaultNumber:0,inputConfig:{min:0,unit:"px",icon:"radius_top_right"}},{name:"topRightEndFrame",type:G.NUMBER,label:"motion.preset_flyout.end_frame",defaultNumber:20,inputConfig:{min:0,unit:"px",icon:"radius_top_right"}},{name:"bottomLeftStartFrame",type:G.NUMBER,label:"motion.preset_flyout.start_frame",defaultNumber:0,inputConfig:{min:0,unit:"px",icon:"radius_bottom_left"}},{name:"bottomLeftEndFrame",type:G.NUMBER,label:"motion.preset_flyout.end_frame",defaultNumber:20,inputConfig:{min:0,unit:"px",icon:"radius_bottom_left"}},{name:"bottomRightStartFrame",type:G.NUMBER,label:"motion.preset_flyout.start_frame",defaultNumber:0,inputConfig:{min:0,unit:"px",icon:"radius_bottom_right"}},{name:"bottomRightEndFrame",type:G.NUMBER,label:"motion.preset_flyout.end_frame",defaultNumber:20,inputConfig:{min:0,unit:"px",icon:"radius_bottom_right"}},{name:"delay",type:G.NUMBER,label:"motion.preset_flyout.delay",defaultNumber:0,inputConfig:{unit:"s",icon:"delay"},numberResolvedAsTiming:!0},{name:"duration",type:G.NUMBER,label:"motion.preset_flyout.duration",defaultNumber:.5,inputConfig:{min:.01,unit:"s",icon:"time"},numberResolvedAsTiming:!0},{name:"easing",type:G.EASING,label:"motion.preset_flyout.easing",defaultEasing:{easingType:w.OUT_CUBIC}}];Fe();var w0="motion.preset_name.new",B0=`A minimal starter preset that fades an element in from transparent to opaque. Use this as a starting point for building custom animation presets \u2014 edit the generated code to add your own keyframe tracks and logic. 8663 8664Properties: 8665- duration: The length of the animation in seconds. 8666- easing: The easing curve that controls the acceleration of the animation.`,U0=[{name:"duration",type:G.NUMBER,label:"Duration",defaultNumber:.5,inputConfig:{min:.01,unit:"s"},numberResolvedAsTiming:!0},{name:"easing",type:G.EASING,label:"Easing",defaultEasing:{easingType:w.OUT_CUBIC}}];Fe();var V0="motion.preset_name.opacity",H0=`Animates the opacity of an element. Use this preset for entrance / exit animations or emphasis effects. 8667 8668Properties: 8669- type: "Fade In" animates 0\u21921, "Fade Out" animates 1\u21920, "Custom" lets you specify start and end opacity via Start Frame / End Frame. 8670- startFrame / endFrame: Start and end opacity as percentages (only used when type is "Custom"). 8671- delay: How long to wait before the animation starts, in seconds. 8672- duration: The length of the animation, in seconds. 8673- easing: The easing curve that controls the acceleration of the animation.`,W0=[{name:"type",type:G.TEXT,label:"motion.preset_flyout.type",defaultText:"fadeIn",selectConfig:{options:[{value:"fadeIn",label:"motion.preset_flyout.opacity.type.fade_in"},{value:"fadeOut",label:"motion.preset_flyout.opacity.type.fade_out"},{value:"custom",label:"motion.preset_flyout.type.custom"}]}},{name:"amount",type:G.NUMBER,label:"motion.preset_flyout.amount",defaultNumber:0,inputConfig:{unit:"%",icon:"opacity"}},{name:"startFrame",type:G.NUMBER,label:"motion.preset_flyout.start",defaultNumber:0,inputConfig:{unit:"%",icon:"opacity"}},{name:"endFrame",type:G.NUMBER,label:"motion.preset_flyout.end",defaultNumber:100,inputConfig:{unit:"%",icon:"opacity"}},{name:"delay",type:G.NUMBER,label:"motion.preset_flyout.delay",defaultNumber:0,inputConfig:{unit:"s",icon:"delay"},numberResolvedAsTiming:!0},{name:"duration",type:G.NUMBER,label:"motion.preset_flyout.duration",defaultNumber:.5,inputConfig:{min:.01,unit:"s",icon:"time"},numberResolvedAsTiming:!0},{name:"easing",type:G.EASING,label:"motion.preset_flyout.easing",defaultEasing:{easingType:w.OUT_CUBIC}}];Fe();var Y0="Path Draw",K0=`Animates the path trim of a stroke to draw it in or erase it over time. Use this preset for line drawing effects, signature animations, or progressive reveal of vector paths. 8674 8675Properties: 8676- duration: The length of the animation in seconds. 8677- direction: Select "Forward" to draw from the start of the path to the end, or "Reverse" to draw from the end of the path to the start.`,z0=[{name:"duration",type:G.NUMBER,label:"Duration",defaultNumber:.5,inputConfig:{min:.01,unit:"s"},numberResolvedAsTiming:!0},{name:"mode",type:G.TEXT,label:"Mode",defaultText:"reveal",selectConfig:{options:[{value:"reveal",label:"Reveal"},{value:"hide",label:"Hide"}]}},{name:"direction",type:G.TEXT,label:"Direction",defaultText:"forward",selectConfig:{options:[{value:"forward",label:"Forward"},{value:"reverse",label:"Reverse"}]}}];Fe();var X0="motion.preset_name.path",j0='Animates the trim of a vector path. Replaces and subsumes Path Draw and Path Travel under a single preset; pick a `type` to drive the behaviour.\n\nProperties:\n- type: "Draw" reveals the path from start to end; "Erase" hides it; "Travel" runs a short segment along the path; "Custom" exposes raw `pathTrimStart` / `pathTrimEnd` control via the `axis` prop.\n- direction: "Forward" or "Reverse"; reverses the animation direction.\n- segment: For type=travel, length of the moving segment as a percentage of the path.\n- axis: For type=custom, picks which trim field(s) to animate. "Path trim start" and "Path trim end" each drive one field. "Combined" drives both with shared timing but distinct initial values (`pathStartStartFrame`, `pathEndStartWithDivider`).\n- pathStart{StartFrame,EndFrame} / pathEnd{StartFrame,EndFrame}: For type=custom, the per-trim frame values. The bespoke component shows only the subset relevant to the current axis selection.\n- delay / duration / easing: Shared timing for every type (Draw / Erase / Travel and Custom).',$0=[{name:"type",type:G.TEXT,label:"motion.preset_flyout.type",defaultText:"draw",selectConfig:{options:[{value:"draw",label:"motion.preset_flyout.path.type.draw"},{value:"erase",label:"motion.preset_flyout.path.type.erase"},{value:"travel",label:"motion.preset_flyout.path.type.travel"},{value:"custom",label:"motion.preset_flyout.type.custom"}]}},{name:"direction",type:G.TEXT,label:"motion.preset_flyout.direction",defaultText:"forward",selectConfig:{options:[{value:"forward",label:"motion.preset_flyout.path.direction.forward"},{value:"reverse",label:"motion.preset_flyout.path.direction.reverse"}]}},{name:"axis",type:G.TEXT,label:"motion.preset_flyout.path.trim",defaultText:"pathTrimStart",selectConfig:{options:[{value:"pathTrimStart",label:"motion.preset_flyout.path.axis.path_trim_start"},{value:"pathTrimEnd",label:"motion.preset_flyout.path.axis.path_trim_end"},{value:"combined",label:"motion.preset_flyout.path.axis.combined"}]}},{name:"segment",type:G.NUMBER,label:"motion.preset_flyout.path.segment",defaultNumber:10,inputConfig:{unit:"%"}},{name:"pathStartStartFrame",type:G.NUMBER,label:"motion.preset_flyout.start_frame",defaultNumber:100,inputConfig:{unit:"%",icon:"path_trim_start"}},{name:"pathStartEndWithoutDivider",type:G.NUMBER,label:"motion.preset_flyout.end_frame",defaultNumber:0,inputConfig:{unit:"%",icon:"path_trim_start"}},{name:"pathEndStartWithoutDivider",type:G.NUMBER,label:"motion.preset_flyout.start_frame",defaultNumber:20,inputConfig:{unit:"%",icon:"path_trim_end"}},{name:"pathStartEndWithDivider",type:G.NUMBER,label:"motion.preset_flyout.end_frame",defaultNumber:80,inputConfig:{unit:"%",icon:"path_trim_start"}},{name:"pathEndStartWithDivider",type:G.NUMBER,label:"motion.preset_flyout.start_frame",defaultNumber:0,inputConfig:{unit:"%",icon:"path_trim_end"}},{name:"pathEndEndFrame",type:G.NUMBER,label:"motion.preset_flyout.end_frame",defaultNumber:100,inputConfig:{unit:"%",icon:"path_trim_end"}},{name:"delay",type:G.NUMBER,label:"motion.preset_flyout.delay",defaultNumber:0,inputConfig:{unit:"s",icon:"delay"},numberResolvedAsTiming:!0},{name:"duration",type:G.NUMBER,label:"motion.preset_flyout.duration",defaultNumber:.5,inputConfig:{min:.01,unit:"s",icon:"time"},numberResolvedAsTiming:!0},{name:"easing",type:G.EASING,label:"motion.preset_flyout.easing",defaultEasing:{easingType:w.OUT_CUBIC}}];Fe();var Z0="Path Travel",J0=`Animates a segment of a stroke that travels along the entire path. Use this preset for moving highlight effects or traveling dash animations on vector paths. 8678 8679Properties: 8680- segmentLength: The length of the traveling segment as a percentage of the total path.
8681- loops: The number of times the segment travels along the path. 8682- loopMode: Select "Circle Back" to wrap continuously around the path, or "Retrace Path" to bounce forward then backward each loop. 8683- direction: Select "Forward" to travel from the start to the end of the path, or "Reverse" to travel from the end to the start. 8684- duration: The length of the animation in seconds.`,q0=[{name:"duration",type:G.NUMBER,label:"Duration",defaultNumber:.5,inputConfig:{min:.01,unit:"s"},numberResolvedAsTiming:!0},{name:"direction",type:G.TEXT,label:"Direction",defaultText:"forward",selectConfig:{options:[{value:"forward",label:"Forward"},{value:"reverse",label:"Reverse"}]}},{name:"loopMode",type:G.TEXT,label:"Loop Mode",defaultText:"circle",selectConfig:{options:[{value:"circle",label:"Circle Back"},{value:"retrace",label:"Retrace Path"}]}},{name:"segmentLength",type:G.NUMBER,label:"Segment Length",defaultNumber:20,inputConfig:{min:0,max:100,unit:"%"}},{name:"loops",type:G.NUMBER,label:"Loops",defaultNumber:1,inputConfig:{min:1}}];Fe();var Q0="motion.preset_name.position",eM=`Animates a node along the X and/or Y axes. Use this preset for slide-in / slide-out entrances and exits, or fully custom translate animations. 8685 8686Properties: 8687- type: "Slide In" animates from an offset back to the resting position, "Slide Out" animates from the resting position to an offset, "Custom" lets you specify Start / End values explicitly. 8688- direction: For Slide In / Slide Out, the side the element slides from / to (only used when type is "Slide In" or "Slide Out"). 8689- distance: Slide distance in pixels (only used when type is "Slide In" or "Slide Out"). 8690- axis: For Custom, which axes to animate \u2014 "X" / "Y" animate one axis only, "XY" animates both (each axis keeps its own start/end and they share the timing). 8691- startX / endX: X-axis start and end translation in pixels (used when type is "Custom" and axis is "X" or "XY"). 8692- startY / endY: Y-axis start and end translation in pixels (used when type is "Custom" and axis is "Y" or "XY"). 8693- delay: How long to wait before the animation starts, in seconds. 8694- duration: The length of a single playthrough, in seconds. 8695- easing: The easing curve that controls the acceleration of the animation.`,tM=[{name:"type",type:G.TEXT,label:"motion.preset_flyout.type",defaultText:"slide_in",selectConfig:{options:[{value:"slide_in",label:"motion.preset_flyout.position.type.slide_in"},{value:"slide_out",label:"motion.preset_flyout.position.type.slide_out"},{value:"custom",label:"motion.preset_flyout.type.custom"}]}},{name:"direction",type:G.TEXT,label:"motion.preset_flyout.direction",defaultText:"left",selectConfig:{options:[{value:"left",label:"motion.preset_flyout.position.direction.left"},{value:"right",label:"motion.preset_flyout.position.direction.right"},{value:"top",label:"motion.preset_flyout.position.direction.top"},{value:"bottom",label:"motion.preset_flyout.position.direction.bottom"},{value:"top_left",label:"motion.preset_flyout.top_left"},{value:"top_right",label:"motion.preset_flyout.top_right"},{value:"bottom_left",label:"motion.preset_flyout.bottom_left"},{value:"bottom_right",label:"motion.preset_flyout.bottom_right"}]}},{name:"distance",type:G.NUMBER,label:"motion.preset_flyout.position.distance",defaultNumber:200,inputConfig:{unit:"px"}},{name:"axis",type:G.TEXT,label:"motion.preset_flyout.axis",defaultText:"xy",selectConfig:{options:[{value:"x",label:"motion.preset_flyout.x"},{value:"y",label:"motion.preset_flyout.y"},{value:"xy",label:"motion.preset_flyout.both"}]}},{name:"startX",type:G.NUMBER,label:"motion.preset_flyout.start",defaultNumber:200,inputConfig:{icon:"x"}},{name:"startY",type:G.NUMBER,label:"motion.preset_flyout.start",defaultNumber:200,inputConfig:{icon:"y"}},{name:"endX",type:G.NUMBER,label:"motion.preset_flyout.end",defaultNumber:0,inputConfig:{icon:"x"}},{name:"endY",type:G.NUMBER,label:"motion.preset_flyout.end",defaultNumber:0,inputConfig:{icon:"y"}},{name:"delay",type:G.NUMBER,label:"motion.preset_flyout.delay",defaultNumber:0,inputConfig:{unit:"s",icon:"delay"},numberResolvedAsTiming:!0},{name:"duration",type:G.NUMBER,label:"motion.preset_flyout.duration",defaultNumber:.5,inputConfig:{min:.01,unit:"s",icon:"time"},numberResolvedAsTiming:!0},{name:"easing",type:G.EASING,label:"motion.preset_flyout.easing",defaultEasing:{easingType:w.OUT_CUBIC}}];Fe();var nM="Resize",rM=`Changes the width and/or height of an element by a pixel offset over time. Use this preset for expanding panels, progress bar animations, or dynamic layout transitions. 8696 8697Properties: 8698- widthChange: The amount to change the element's width in pixels (0 for no width change). 8699- heightChange: The amount to change the element's height in pixels (0 for no height change). 8700- duration: The length of the animation in seconds. 8701- easing: The easing curve that controls the acceleration of the resize.`,oM=[{name:"widthChange",type:G.NUMBER,label:"Width Change",defaultNumber:100},{name:"heightChange",type:G.NUMBER,label:"Height Change",defaultNumber:0},{name:"duration",type:G.NUMBER,label:"Duration",defaultNumber:.5,inputConfig:{min:.01,unit:"s"},numberResolvedAsTiming:!0},{name:"easing",type:G.EASING,label:"Easing",defaultEasing:{easingType:w.OUT_CUBIC}}];Fe();var iM="Rotate",sM=`Rotates an element by a specified angle to spin it in or out. Use this preset for spinning entrance or exit effects, turning animations, or attention-grabbing rotations. 8702 8703Properties: 8704- timing: Select "Rotate In" to rotate from the specified angle back to the original orientation, or "Rotate Out" to rotate from the original orientation to the specified angle. 8705- rotation: The rotation amount in degrees. 8706- duration: The length of the animation in seconds. 8707- fade: Enable to simultaneously fade the element's opacity during the rotation. 8708- easing: The easing curve that controls the acceleration of the rotation.`,aM=[{name:"timing",type:G.TEXT,label:"Timing",defaultText:"out",selectConfig:{options:[{value:"in",label:"In"},{value:"out",label:"Out"}]}},{name:"rotation",type:G.NUMBER,label:"Rotation",defaultNumber:180},{name:"duration",type:G.NUMBER,label:"Duration",defaultNumber:.5,inputConfig:{min:.01,unit:"s"},numberResolvedAsTiming:!0},{name:"fade",type:G.BOOL,label:"Fade",defaultBool:!1},{name:"easing",type:G.EASING,label:"Easing",defaultEasing:{easingType:w.OUT_CUBIC}}];Fe();var lM="motion.preset_name.rotation",uM=`Animates the rotation of a node about its center. Use this preset for spin-in / spin-out reveal effects, or pick the Custom type for explicit start / end angles. 8709 8710Properties: 8711- type: "Rotate in" animates signed amount \u2192 0; "Rotate out" animates 0 \u2192 signed amount; "Custom" lets you specify explicit start / end angles in degrees. The signed amount is derived from Direction (see below). 8712- direction: "Clockwise" or "Counter-clockwise". Underlying \`rotate\` is in radians and uses screen Y-down coordinates. For "Rotate in", Clockwise yields a negative angle and Counter-clockwise yields a positive angle. For "Rotate out", Clockwise yields a positive angle and Counter-clockwise yields a negative angle \u2014 matching the visible spin labels in both types. 8713- amount: For type=rotateIn/rotateOut, the rotation magnitude in degrees. 8714- start / end: For type=custom, the explicit start / end angles in degrees. 8715- delay / duration / easing: Shared timing for the animation.`,cM=[{name:"type",type:G.TEXT,label:"motion.preset_flyout.type",defaultText:"rotateIn",selectConfig:{options:[{value:"rotateIn",label:"motion.preset_flyout.rotation.type.rotate_in"},{value:"rotateOut",label:"motion.preset_flyout.rotation.type.rotate_out"},{value:"custom",label:"motion.preset_flyout.type.custom"}]}},{name:"direction",type:G.TEXT,label:"motion.preset_flyout.direction",defaultText:"clockwise",selectConfig:{options:[{value:"clockwise",label:"motion.preset_flyout.rotation.direction.clockwise"},{value:"counterClockwise",label:"motion.preset_flyout.rotation.direction.counter_clockwise"}]}},{name:"amount",type:G.NUMBER,label:"motion.preset_flyout.amount",defaultNumber:180,inputConfig:{unit:"\xB0"}},{name:"start",type:G.NUMBER,label:"motion.preset_flyout.start",defaultNumber:180,inputConfig:{unit:"\xB0",icon:"rotation"}},{name:"end",type:G.NUMBER,label:"motion.preset_flyout.end",defaultNumber:0,inputConfig:{unit:"\xB0",icon:"rotation"}},{name:"delay",type:G.NUMBER,label:"motion.preset_flyout.delay",defaultNumber:0,inputConfig:{min:0,unit:"s",icon:"delay"},numberResolvedAsTiming:!0},{name:"duration",type:G.NUMBER,label:"motion.preset_flyout.duration",defaultNumber:.5,inputConfig:{min:.01,unit:"s",icon:"time"},numberResolvedAsTiming:!0},{name:"easing",type:G.EASING,label:"motion.preset_flyout.easing",defaultEasing:{easingType:w.OUT_CUBIC}}];Fe();var dM="motion.preset_name.scale",fM=`Animates a node by scaling it along the width and/or height axis. Use this preset for scale-in / scale-out reveal effects, or pick the Custom type for explicit start / end percentages on either axis. 8716 8717Properties: 8718- type: "Scale in" animates amount \u2192 100%; "Scale out" animates 100% \u2192 amount; "Custom" lets you specify explicit start / end percentages per axis. 8719- axis: For type=custom, picks which axis (W, H, or both combined) is animated. Ignored when type=scaleIn/scaleOut (both axes animate together). 8720- amount: For type=scaleIn/scaleOut, the scale magnitude in percent (e.g. 120%). 8721- {w,h}{Start,End}* / *WithDivider / *WithoutDivider: For type=custom, the explicit start / end percentages per axis. Single-axis groups each axis as Start+End; WH-combined groups both Starts together and both Ends together, using the alternate divider variants. Only the set visible in the current layout is editable. 8722- delay / duration / easing: Shared timing.`,pM=[{name:"type",type:G.TEXT,label:"motion.preset_flyout.type",defaultText:"scaleIn",selectConfig:{options:[{value:"scaleIn",label:"motion.preset_flyout.scale.type.scale_in"},{value:"scaleOut",label:"motion.preset_flyout.scale.type.scale_out"},{value:"custom",label:"motion.preset_flyout.type.custom"}]}},{name:"axis",type:G.TEXT,label:"motion.preset_flyout.axis",defaultText:"whCombined",selectConfig:{options:[{value:"w",label:"motion.preset_flyout.w"},{value:"h",label:"motion.preset_flyout.h"},{value:"whCombined",label:"motion.preset_flyout.both"}]}},{name:"amount",type:G.NUMBER,label:"motion.preset_flyout.amount",defaultNumber:120,inputConfig:{min:0,unit:"%"}},{name:"wStartWithDivider",type:G.NUMBER,label:"motion.preset_flyout.start",defaultNumber:120,inputConfig:{min:0,unit:"%",icon:"w"}},{name:"wEndWithoutDivider",type:G.NUMBER,label:"motion.preset_flyout.end",defaultNumber:100,inputConfig:{min:0,unit:"%",icon:"w"}},{name:"hStartWithoutDivider",type:G.NUMBER,label:"motion.preset_flyout.start",defaultNumber:120,inputConfig:{min:0,unit:"%",icon:"h"}},{name:"wEndWithDivider",type:G.NUMBER,label:"motion.preset_flyout.end",defaultNumber:100,inputConfig:{min:0,unit:"%",icon:"w"}},{name:"hStartWithDivider",type:G.NUMBER,label:"motion.preset_flyout.start",defaultNumber:120,inputConfig:{min:0,unit:"%",icon:"h"}},{name:"hEndWithoutDivider",type:G.NUMBER,label:"motion.preset_flyout.end",defaultNumber:100,inputConfig:{min:0,unit:"%",icon:"h"}},{name:"delay",type:G.NUMBER,label:"motion.preset_flyout.delay",defaultNumber:0,inputConfig:{unit:"s",icon:"delay"},numberResolvedAsTiming:!0},{name:"duration",type:G.NUMBER,label:"motion.preset_flyout.duration",defaultNumber:.5,inputConfig:{min:.01,unit:"s",icon:"time"},numberResolvedAsTiming:!0},{name:"easing",type:G.EASING,label:"motion.preset_flyout.easing",defaultEasing:{easingType:w.OUT_CUBIC}}];Fe();var mM="motion.preset_name.size",EM=`Animates a node\u2019s width and/or height. Use this preset for resize-in / resize-out entrances and exits, or fully custom resize animations. 8723 8724Properties: 8725- type: "Resize In" starts at the resting size and shrinks by \`amount\`, "Resize Out" starts shrunk by \`amount\` and grows back to the resting size, "Custom" lets you specify Start /
8725End values explicitly. 8726- amount: How many pixels to shrink the width AND height by (only used when type is "Resize In" or "Resize Out"). 8727- axis: For Custom, which axes to animate \u2014 "X" / "Y" animate one axis only, "Both" animates both (each axis keeps its own start/end and they share the timing). 8728- startWidth / endWidth: Width start and end offset in pixels relative to the resting size (used when type is "Custom" and axis is "X" or "Both"). 8729- startHeight / endHeight: Height start and end offset in pixels relative to the resting size (used when type is "Custom" and axis is "Y" or "Both"). 8730- delay: How long to wait before the animation starts, in seconds. 8731- duration: The length of a single playthrough, in seconds. 8732- easing: The easing curve that controls the acceleration of the animation.`,_M=[{name:"type",type:G.TEXT,label:"motion.preset_flyout.type",defaultText:"resize_in",selectConfig:{options:[{value:"resize_in",label:"motion.preset_flyout.size.type.resize_in"},{value:"resize_out",label:"motion.preset_flyout.size.type.resize_out"},{value:"custom",label:"motion.preset_flyout.type.custom"}]}},{name:"amount",type:G.NUMBER,label:"motion.preset_flyout.amount",defaultNumber:50,inputConfig:{unit:"px"}},{name:"axis",type:G.TEXT,label:"motion.preset_flyout.axis",defaultText:"xy",selectConfig:{options:[{value:"x",label:"motion.preset_flyout.x"},{value:"y",label:"motion.preset_flyout.y"},{value:"xy",label:"motion.preset_flyout.both"}]}},{name:"startWidth",type:G.NUMBER,label:"motion.preset_flyout.start",defaultNumber:50,inputConfig:{icon:"w"}},{name:"startHeight",type:G.NUMBER,label:"motion.preset_flyout.start",defaultNumber:50,inputConfig:{icon:"h"}},{name:"endWidth",type:G.NUMBER,label:"motion.preset_flyout.end",defaultNumber:100,inputConfig:{icon:"w"}},{name:"endHeight",type:G.NUMBER,label:"motion.preset_flyout.end",defaultNumber:100,inputConfig:{icon:"h"}},{name:"delay",type:G.NUMBER,label:"motion.preset_flyout.delay",defaultNumber:0,inputConfig:{unit:"s",icon:"delay"},numberResolvedAsTiming:!0},{name:"duration",type:G.NUMBER,label:"motion.preset_flyout.duration",defaultNumber:.5,inputConfig:{min:.01,unit:"s",icon:"time"},numberResolvedAsTiming:!0},{name:"easing",type:G.EASING,label:"motion.preset_flyout.easing",defaultEasing:{easingType:w.OUT_CUBIC}}];Fe();var TM="motion.preset_name.text",hM=`Animates the text content of an element by keyframing textData with string values. Use this preset for typewriter effects that reveal text by character, word, or line. 8733 8734Properties: 8735- revealBy: Select "Character", "Word", or "Line" to control how much text appears at each keyframe. 8736- duration: The length of the animation in seconds.`,OM=[{name:"revealBy",type:G.TEXT,label:"Reveal By",defaultText:"character",selectConfig:{options:[{value:"character",label:"Character"},{value:"word",label:"Word"},{value:"line",label:"Line"}]}},{name:"duration",type:G.NUMBER,label:"Duration",defaultNumber:1.5,inputConfig:{min:.01,unit:"s"},numberResolvedAsTiming:!0}];var ln={[k.FADE_DEPRECATED]:{name:C0,description:P0,propDefs:D0,manifest:{icon:"Fade",applicableNodeTypes:[],disallowedNodeTypes:[],requiredNodeFields:[],disallowedNodeFields:[]}},[k.MOVE_DEPRECATED]:{name:v0,description:x0,propDefs:M0,manifest:{icon:"Move",applicableNodeTypes:[],disallowedNodeTypes:[],requiredNodeFields:[],disallowedNodeFields:[]}},[k.ROTATE_DEPRECATED]:{name:iM,description:sM,propDefs:aM,manifest:{icon:"Rotate",applicableNodeTypes:[],disallowedNodeTypes:[],requiredNodeFields:[],disallowedNodeFields:[]}},[k.SCALE]:{name:dM,description:fM,propDefs:pM,manifest:{icon:"Scale",applicableNodeTypes:[],disallowedNodeTypes:[],requiredNodeFields:[],disallowedNodeFields:[]}},[k.RESIZE_DEPRECATED]:{name:nM,description:rM,propDefs:oM,manifest:{icon:"Resize",applicableNodeTypes:[],disallowedNodeTypes:[],requiredNodeFields:[],disallowedNodeFields:[]}},[k.NEW]:{name:w0,description:B0,propDefs:U0,manifest:{icon:"Default",applicableNodeTypes:[],disallowedNodeTypes:[],requiredNodeFields:[],disallowedNodeFields:[]}},[k.TEXT_DATA]:{name:TM,description:hM,propDefs:OM,manifest:{icon:"Text",applicableNodeTypes:["TEXT"],disallowedNodeTypes:[],requiredNodeFields:[],disallowedNodeFields:[]}},[k.PATH_DRAW_DEPRECATED]:{name:Y0,description:K0,propDefs:z0,manifest:{icon:"PathDraw",applicableNodeTypes:[],disallowedNodeTypes:[],requiredNodeFields:["strokes"],disallowedNodeFields:[]}},[k.PATH_TRAVEL_DEPRECATED]:{name:Z0,description:J0,propDefs:q0,manifest:{icon:"PathTravel",applicableNodeTypes:[],disallowedNodeTypes:[],requiredNodeFields:["strokes"],disallowedNodeFields:[]}},[k.OPACITY]:{name:V0,description:H0,propDefs:W0,manifest:{icon:"Opacity",applicableNodeTypes:[],disallowedNodeTypes:[],requiredNodeFields:[],disallowedNodeFields:[]}}
8736,[k.CORNER_RADIUS]:{name:k0,description:G0,propDefs:F0,manifest:{icon:"CornerRadius",applicableNodeTypes:[],disallowedNodeTypes:[],requiredNodeFields:[],disallowedNodeFields:[]}},[k.ROTATION]:{name:lM,description:uM,propDefs:cM,manifest:{icon:"Rotation",applicableNodeTypes:[],disallowedNodeTypes:[],requiredNodeFields:[],disallowedNodeFields:[]}},[k.PATH]:{name:X0,description:j0,propDefs:$0,manifest:{icon:"Path",applicableNodeTypes:[],disallowedNodeTypes:[],requiredNodeFields:["strokes"],disallowedNodeFields:[]}},[k.POSITION]:{name:Q0,description:eM,propDefs:tM,manifest:{icon:"Position",applicableNodeTypes:[],disallowedNodeTypes:[],requiredNodeFields:[],disallowedNodeFields:[]}},[k.SIZE]:{name:mM,description:EM,propDefs:_M,manifest:{icon:"Size",applicableNodeTypes:[],disallowedNodeTypes:[],requiredNodeFields:[],disallowedNodeFields:[]}}},qK={...Object.fromEntries(Object.entries(ln).map(([e,t])=>[t.name,Number(e)])),["Corner Radius"]:k.CORNER_RADIUS,New:k.NEW,Opacity:k.OPACITY,Path:k.PATH,Position:k.POSITION,Rotation:k.ROTATION,Scale:k.SCALE,Size:k.SIZE,Text:k.TEXT_DATA};var Rn={[k.FADE_DEPRECATED]:{...ln[k.FADE_DEPRECATED],...Sn[k.FADE_DEPRECATED]},[k.MOVE_DEPRECATED]:{...ln[k.MOVE_DEPRECATED],...Sn[k.MOVE_DEPRECATED]},[k.ROTATE_DEPRECATED]:{...ln[k.ROTATE_DEPRECATED],...Sn[k.ROTATE_DEPRECATED]},[k.SCALE]:{...ln[k.SCALE],...Sn[k.SCALE]},[k.RESIZE_DEPRECATED]:{...ln[k.RESIZE_DEPRECATED],...Sn[k.RESIZE_DEPRECATED]},[k.NEW]:{...ln[k.NEW],...Sn[k.NEW]},[k.TEXT_DATA]:{...ln[k.TEXT_DATA],...Sn[k.TEXT_DATA]},[k.PATH_DRAW_DEPRECATED]:{...ln[k.PATH_DRAW_DEPRECATED],...Sn[k.PATH_DRAW_DEPRECATED]},[k.PATH_TRAVEL_DEPRECATED]:{...ln[k.PATH_TRAVEL_DEPRECATED],...Sn[k.PATH_TRAVEL_DEPRECATED]},[k.OPACITY]:{...ln[k.OPACITY],...Sn[k.OPACITY]},[k.CORNER_RADIUS]:{...ln[k.CORNER_RADIUS],...Sn[k.CORNER_RADIUS]},[k.ROTATION]:{...ln[k.ROTATION],...Sn[k.ROTATION]},[k.PATH]:{...ln[k.PATH],...Sn[k.PATH]},[k.POSITION]:{...ln[k.POSITION],...Sn[k.POSITION]},[k.SIZE]:{...ln[k.SIZE],...Sn[k.SIZE]}};Fe();var Poe=new Set([yi.PATH_TRIM_START,yi.PATH_TRIM_END]);var Voe=[{id:"Position",name:"motion.preset_name.position",type:k.POSITION,manifest:Rn[k.POSITION].manifest},{id:"Scale",name:"motion.preset_name.scale",type:k.SCALE,manifest:Rn[k.SCALE].manifest},{id:"Rotation",name:"motion.preset_name.rotation",type:k.ROTATION,manifest:Rn[k.ROTATION].manifest},{id:"Size",name:"motion.preset_name.size",type:k.SIZE,manifest:Rn[k.SIZE].manifest},{id:"Opacity",name:"motion.preset_name.opacity",type:k.OPACITY,manifest:Rn[k.OPACITY].manifest},{id:"CornerRadius",name:"motion.preset_name.corner_radius",type:k.CORNER_RADIUS,manifest:Rn[k.CORNER_RADIUS].manifest},{id:"Path",name:"motion.preset_name.path",type:k.PATH,manifest:Rn[k.PATH].manifest},{id:"New",name:"motion.preset_name.new",type:k.NEW,manifest:Rn[k.NEW].manifest},{id:"Text",name:"motion.preset_name.text",type:k.TEXT_DATA,manifest:Rn[k.TEXT_DATA].manifest},{id:"Fade",name:"Fade",type:k.FADE_DEPRECATED,manifest:Rn[k.FADE_DEPRECATED].manifest},{id:"Move",name:"Move",type:k.MOVE_DEPRECATED,manifest:Rn[k.MOVE_DEPRECATED].manifest},{id:"Rotate",name:"Rotate",type:k.ROTATE_DEPRECATED,manifest:Rn[k.ROTATE_DEPRECATED].manifest},{id:"Resize",name:"Resize",type:k.RESIZE_DEPRECATED,manifest:Rn[k.RESIZE_DEPRECATED].manifest},{id:"PathDraw",name:"Path Draw",type:k.PATH_DRAW_DEPRECATED,manifest:Rn[k.PATH_DRAW_DEPRECATED].manifest},{id:"PathTravel",name:"Path Travel",type:k.PATH_TRAVEL_DEPRECATED,manifest:Rn[k.PATH_TRAVEL_DEPRECATED].manifest}],Hoe=new Set([k.FADE_DEPRECATED,k.MOVE_DEPRECATED,k.ROTATE_DEPRECATED,k.RESIZE_DEPRECATED,k.PATH_DRAW_DEPRECATED,k.PATH_TRAVEL_DEPRECATED]),Woe=new Set([k.PATH,k.PATH_DRAW_DEPRECATED,k.PATH_TRAVEL_DEPRECATED]);Fe();var zoe={[ic.NONE]:null,[ic.INSTANCE_SUBLAYER]:"Cannot write animations to instance sublayers via the plugin API",[ic.TOP_LEVEL_FRAME_PARENT]:"Cannot write animations to top-level frame parents via the plugin API",[ic.PRODUCT_COMPONENT]:"Cannot write animations to product components via the plugin API",[ic.UNSUPPORTED_NODE_TYPE]:"Cannot write animations to this node type via the plugin API"};Fe();Fe();Fe();var IM=100,SM="bezier",RM=[.5,0,.5,1],a_={p1x:0,p1y:0,p2x:.58,p2y:1},s_={mass:1,stiffness:100,damping:15},Zoe={easingType:w.OUT_CUBIC,bezierValues:a_}
8736,e5={[w.IN_CUBIC]:{p1x:.42,p1y:0,p2x:1,p2y:1},[w.EASE_IN]:{p1x:.42,p1y:0,p2x:1,p2y:1},[w.OUT_CUBIC]:a_,[w.INOUT_CUBIC]:{p1x:.42,p1y:0,p2x:.58,p2y:1},[w.LINEAR]:{p1x:0,p1y:0,p2x:1,p2y:1},[w.IN_BACK_CUBIC]:{p1x:.3,p1y:-.05,p2x:.7,p2y:-.5},[w.OUT_BACK_CUBIC]:{p1x:.45,p1y:1.45,p2x:.8,p2y:1},[w.INOUT_BACK_CUBIC]:{p1x:.7,p1y:-.4,p2x:.4,p2y:1.4},[w.CUSTOM_CUBIC]:a_,[w.SPRING]:void 0,[w.GENTLE_SPRING]:void 0,[w.CUSTOM_SPRING]:void 0,[w.SPRING_PRESET_ONE]:void 0,[w.SPRING_PRESET_TWO]:void 0,[w.SPRING_PRESET_THREE]:void 0,[w.HOLD]:void 0},t5={[w.IN_CUBIC]:void 0,[w.EASE_IN]:void 0,[w.OUT_CUBIC]:void 0,[w.INOUT_CUBIC]:void 0,[w.LINEAR]:void 0,[w.IN_BACK_CUBIC]:void 0,[w.OUT_BACK_CUBIC]:void 0,[w.INOUT_BACK_CUBIC]:void 0,[w.CUSTOM_CUBIC]:void 0,[w.SPRING]:s_,[w.GENTLE_SPRING]:s_,[w.CUSTOM_SPRING]:s_,[w.SPRING_PRESET_ONE]:{mass:1,stiffness:300,damping:20},[w.SPRING_PRESET_TWO]:{mass:1,stiffness:600,damping:15},[w.SPRING_PRESET_THREE]:{mass:1,stiffness:80,damping:20},[w.HOLD]:void 0};function Mf(e){return e5[e]??a_}function kf(e){return t5[e]??s_}var AM=st.array(st.number()).length(4).readonly(),XS=st.object({mass:st.number(),stiffness:st.number(),damping:st.number()}),jS=st.object({p1x:st.number(),p1y:st.number(),p2x:st.number(),p2y:st.number()}),n5=st.object({easingType:st.literal(IM),bezierValues:AM.optional().default(RM)}),r5=st.object({easingType:st.literal(SM),bezierValues:AM.optional().default(RM)}),o5=st.object({easingType:st.literal(w.CUSTOM_SPRING),springValues:XS.default(kf(w.CUSTOM_SPRING)),bezierValues:jS.optional()}),i5=st.object({easingType:st.literal(w.CUSTOM_CUBIC),bezierValues:jS.default(Mf(w.CUSTOM_CUBIC)),springValues:XS.optional()}),s5=st.object({easingType:st.nativeEnum(w),springValues:XS.optional(),bezierValues:jS.optional()}).refine(({easingType:e})=>e!==w.CUSTOM_SPRING&&e!==w.CUSTOM_CUBIC,{message:"Use custom easing schema for CUSTOM_SPRING/CUSTOM_CUBIC types"}),Joe=st.union([n5,r5,o5,i5,s5]).transform(e=>{let t=e.easingType;if(t===IM||t===SM){let o=e.bezierValues;return{easingType:w.CUSTOM_CUBIC,springValues:void 0,bezierValues:{p1x:o[0],p1y:o[1],p2x:o[2],p2y:o[3]}}}let n=t===w.CUSTOM_SPRING?e.springValues??kf(w.CUSTOM_SPRING):void 0,r=t===w.CUSTOM_CUBIC?e.bezierValues??Mf(w.CUSTOM_CUBIC):void 0;return{easingType:t,springValues:n,bezierValues:r}});var tie=new Set([w.SPRING,w.GENTLE_SPRING,w.CUSTOM_SPRING,w.SPRING_PRESET_ONE,w.SPRING_PRESET_TWO,w.SPRING_PRESET_THREE]),a5={EASE_IN:w.IN_CUBIC,EASE_OUT:w.OUT_CUBIC,EASE_IN_AND_OUT:w.INOUT_CUBIC,EASE_IN_BACK:w.IN_BACK_CUBIC,EASE_OUT_BACK:w.OUT_BACK_CUBIC,EASE_IN_AND_OUT_BACK:w.INOUT_BACK_CUBIC,CUSTOM_CUBIC_BEZIER:w.CUSTOM_CUBIC,GENTLE:w.GENTLE_SPRING,QUICK:w.SPRING_PRESET_ONE,BOUNCY:w.SPRING_PRESET_TWO,SLOW:w.SPRING_PRESET_THREE};function NM(e){if(typeof e=="number")return e;if(typeof e=="string"){let t=a5[e];if(t!==void 0)return t;let n=w[e];return typeof n=="number"?n:null}return null}var $S=["CORNER_RADIUS","STROKE_WEIGHT","STACK_SPACING","STACK_PADDING_LEFT","STACK_PADDING_TOP","STACK_PADDING_RIGHT","STACK_PADDING_BOTTOM","WIDTH","HEIGHT","RECTANGLE_TOP_LEFT_CORNER_RADIUS","RECTANGLE_TOP_RIGHT_CORNER_RADIUS","RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS","RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS","BORDER_TOP_WEIGHT","BORDER_BOTTOM_WEIGHT","BORDER_LEFT_WEIGHT","BORDER_RIGHT_WEIGHT","VARIANT_PROPERTIES","STACK_COUNTER_SPACING","OPACITY","GRID_ROW_GAP","GRID_COLUMN_GAP","MOTION_TRANSLATION_X","MOTION_TRANSLATION_Y","MOTION_TRANSLATION_XY","MOTION_ROTATION","MOTION_SCALE_X","MOTION_SCALE_Y","MOTION_SCALE_XY","MOTION_SHEAR","SCROLL_OFFSET_X","SCROLL_OFFSET_Y","PATH_TRIM_START","PATH_TRIM_END","DISSOLVE_PROGRESS","MEDIA_CURRENT_TIME","TRANSFORM_3D_PERSPECTIVE","TRANSFORM_3D_TRANSLATION_Z","TRANSFORM_3D_ROTATION_X","TRANSFORM_3D_ROTATION_Y","TRANSFORM_3D_ROTATION_Z","SCENE_3D_PERSPECTIVE","POLYGON_COUNT","ARC_DATA_STARTING_ANGLE","ARC_DATA_ENDING_ANGLE","ARC_DATA_INNER_RADIUS","STAR_INNER_SCALE"];var el={MOTION_ROTATION:"ROTATION",MOTION_SCALE_X:"SCALE_X",MOTION_SCALE_Y:"SCALE_Y",MOTION_SCALE_XY:"SCALE_XY",MOTION_SHEAR:"SHEAR",MOTION_TRANSLATION_X:"TRANSLATION_X",MOTION_TRANSLATION_Y:"TRANSLATION_Y",MOTION_TRANSLATION_XY:"TRANSLATION_XY"},oie=Object.fromEntries(Object.entries(el).map(([e,t])=>[t,e]));var l_=["OFFSET_X","OFFSET_Y","RADIUS","SPREAD","COLOR","REFRACTION_RADIUS","SPECULAR_ANGLE","SPECULAR_INTENSITY","CHROMATIC_ABERRATION","SPLAY","REFRACTION_INTENSITY","START_RADIUS","NOISE_SIZE_X","NOISE_SIZE_Y","DENSITY","EFFECT_OPACITY","SECONDARY_COLOR"];var sie=new Set(l_);var u5=["CORNER_RADIUS","STROKE_WEIGHT","STACK_SPACING","STACK_PADDING_LEFT","STACK_PADDING_TOP","STACK_PADDING_RIGHT","STACK_PADDING_BOTTOM","WIDTH","HEIGHT","RECTANGLE_TOP_LEFT_CORNER_RADIUS","RECTANGLE_TOP_RIGHT_CORNER_RADIUS","RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS","RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS","BORDER_TOP_WEIGHT","BORDER_BOTTOM_WEIGHT","BORDER_LEFT_WEIGHT","BORDER_RIGHT_WEIGHT","STACK_COUNTER_SPACING","OPACITY","GRID_ROW_GAP","GRID_COLUMN_GAP","TRANSLATION_X","TRANSLATION_Y","TRANSLATION_XY","ROTATION","SCALE_X","SCALE_Y","SCALE_XY","PATH_TRIM_START","PATH_TRIM_END"],c5=new Set(u5);function d5(e){return Object.prototype.hasOwnProperty.call(el,e)}function yM(e){return d5(e)?el[e]:e}var f5=[yM($S[0]),...$S.slice(1).map(yM)],u_=f5.filter(e=>c5.has(e)),cie=new Set(u_);var bs=[0,0,1,1];function ZS(e,t,n){let r=1-e;return 3*r*r*e*t+3*r*e*e*n+e*e*e}function p5(e,t,n){let r=1-e;return 3*r*r*t+6*r*e*(n-t)+3*e*e*(1-n)}function c_(e,t){if(e<=0)return 0;if(e>=1)return 1;let[n,r,o,i]=t;if(n===0&&r===0&&o===1&&i===1)return e;let s=e;for(let u=0;u<8;u+=1){let c=ZS(s,n,o)-e,d=p5(s,n,o);if(Math.abs(c)<1e-6||Math.abs(d)<1e-6)break;s-=c/d}let a=0,l=1;s=Math.min(1,Math.max(0,s));for(let u=0;u<12;u+=1){let c=ZS(s,n,o);if(Math.abs(c-e)<1e-6)break;c<e?a=s:l=s,s=(a+l)/2}return ZS(s,r,i)}function Pe(e,t){let n=10**t;return Math.round(e*n)/n}var m5=.001,E5=.9999;var _5=.03;function LM(e,t,n){return Math.min(n,Math.max(t,e))}function d_(e){let t=e.damping/(2*Math.sqrt(e.stiffness*e.mass));return LM(t,_5,E5)}function JS(e,t){let{stiffness:n,mass:r}=e,o=Math.sqrt(n/r),i=d_(e),s;if(i<1){let a=o*Math.sqrt(1-i*i),l=1,u=i*o/a;s=Math.exp(-t*i*o)*(l*Math.cos(a*t)+u*Math.sin(a*t))}else s=(1+o*t)*Math.exp(-t*o);return 1-s}function Gf(e){return e.mass>0&&e.stiffness>0&&e.damping>0}function CM(e){let t=e.damping/(2*Math.sqrt(e.stiffness*e.mass));return LM(1-t,0,1)}function Ff(e){let{mass:t,stiffness:n}=e,r=Math.sqrt(n/t),o=d_(e),i=o*r,s=r*Math.sqrt(1-o*o),a=o*r/s;return(-Math.log(m5)+Math.log(1+a))/i}function PM(e){if(!Gf(e))return n=>n;let t=Ff(e);return n=>JS(e,n*t)}function Ls(e,t){if(e.length<=2)return e;let n=[];for(let r=0;r<e.length;r+=1){let o=r>0&&t(e[r])===t(e[r-1]),i=r<e.length-1&&t(e[r])===t(e[r+1]);o&&i||n.push(e[r])}return n}function wf(e,t,n){switch(n){case"SET":return e;case"OFFSET":return t+e;case"SCALE":return t*e}}function T5(e,t){return c_(t,[e.value.p1x,e.value.p1y,e.value.p2x,e.value.p2y])}function h5(e,t){let{mass:n,stiffness:r,damping:o}=e.value;if(!(n>0)||!(r>0)||!(o>0))return t;let i=Math.max(0,t)*Ff(e.value);return JS(e.value,i)}function vM(e,t){switch(e.type){case"LINEAR":return t;case"BEZIER":return T5(e,t);case"SPRING":return h5(e,t);
8736case"HOLD":return 0}}function Or(e,t,n){if(e.keyframes.length===0)return t;let r=e.keyframes,o=r[r.length-1];if(o.timeMicros<=n)return wf(o.value,t,e.keyframeOperation);for(let i=0;i<r.length;i+=1){let s=r[i];if(s.timeMicros>=n){let a=wf(s.value,t,e.keyframeOperation),l=i===0?null:r[i-1];if(l==null||n===s.timeMicros)return a;let u=wf(l.value,t,e.keyframeOperation),c=s.timeMicros-l.timeMicros;if(c<=0)return a;let d=(n-l.timeMicros)/c,f=vM(s.easing,d);return u+(a-u)*f}}return wf(o.value,t,e.keyframeOperation)}var tl={type:"LINEAR"},O5=1e-6,g5=1e-4;function I5(e){return Math.max(1,Math.round(e*1e6))}function hr(e,t){return Math.abs(e-t)<O5}function QS(e,t){if(e.type!==t.type)return!1;switch(e.type){case"LINEAR":case"HOLD":return!0;case"BEZIER":{let n=t;return hr(e.value.p1x,n.value.p1x)&&hr(e.value.p1y,n.value.p1y)&&hr(e.value.p2x,n.value.p2x)&&hr(e.value.p2y,n.value.p2y)}case"SPRING":{let n=t;return hr(e.value.mass,n.value.mass)&&hr(e.value.stiffness,n.value.stiffness)&&hr(e.value.damping,n.value.damping)}}}function S5(e,t){let n=new Set([0,t]);for(let r of e)for(let o of r.keyframes)n.add(o.timeMicros);return Array.from(n).sort((r,o)=>r-o)}function f_(e,t,n){if(t.length===1)return Or(t[0],e,n);let r=e,o=[];for(let i of t)i.keyframeOperation==="SCALE"?o.push(i):r=Or(i,r,n);return o.length===0?r:r*R5(o,n)}function R5(e,t){let n=(l,u)=>Or(l,1,u),r=e.filter(l=>l.keyframes.length>0).map(l=>{let u=l.keyframes[0],c=l.keyframes[l.keyframes.length-1],d=n(l,c.timeMicros)>=n(l,u.timeMicros),f=t>=u.timeMicros;return{track:l,startMicros:u.timeMicros,increasing:d,started:f}}).sort((l,u)=>l.startMicros!==u.startMicros?l.startMicros-u.startMicros:Number(l.increasing)-Number(u.increasing));if(r.length===0)return 1;let o=r.some(({started:l})=>l),i=r[0].startMicros,s=r.filter(({started:l,startMicros:u})=>o?l:u===i),a=n(s[0].track,t);for(let l=1;l<s.length;l+=1){let{track:u,increasing:c}=s[l],d=n(u,t);a=c?Math.max(a,d):Math.min(a,d)}return a}function DM(e,t){let n=Or(e,0,t);return{scale:Or(e,1,t)-n,offset:n}}function qS(e){return e.kind==="varying"&&hr(e.startValue,e.endValue)?{kind:"constant",value:e.startValue}:e}function A5(e,t,n){let r=DM(e,t),o=DM(e,n);if(hr(r.scale,o.scale)&&hr(r.offset,o.offset))return{kind:"exact",transform:{kind:"constant",scale:r.scale,offset:r.offset}};let i=t+(n-t)/2,s=e.keyframes.findIndex(c=>c.timeMicros>=i);if(s<=0)return{kind:"sample",reason:"missingSegment"};let a=e.keyframes[s],u=e.keyframes[s-1].timeMicros===t&&a.timeMicros===n;return a.easing.type==="HOLD"?{kind:"exact",transform:{kind:"constant",scale:r.scale,offset:r.offset}}:!u&&a.easing.type!=="LINEAR"?{kind:"sample",reason:"nonlinearSubsegment"}:{kind:"exact",transform:{kind:"varying",easing:a.easing,scaleStart:r.scale,scaleEnd:o.scale,offsetStart:r.offset,offsetEnd:o.offset}}}function N5(e,t){if(t.kind==="constant")return e.kind==="constant"?{kind:"exact",interval:{kind:"constant",value:e.value*t.scale+t.offset}}:{kind:"exact",interval:qS({kind:"varying",easing:e.easing,startValue:e.startValue*t.scale+t.offset,endValue:e.endValue*t.scale+t.offset})};if(e.kind==="constant")return{kind:"exact",interval:qS({kind:"varying",easing:t.easing,startValue:e.value*t.scaleStart+t.offsetStart,endValue:e.value*t.scaleEnd+t.offsetEnd})};if(!QS(e.easing,t.easing))return{kind:"sample",reason:"mixedEasing"};if(!hr(t.scaleStart,t.scaleEnd))return{kind:"sample",reason:"varyingScale"};let n=t.scaleStart;return{kind:"exact",interval:qS({kind:"varying",easing:e.easing,startValue:e.startValue*n+t.offsetStart,endValue:e.endValue*n+t.offsetEnd})}}function y5(e,t,n,r){if(t.filter(s=>s.keyframeOperation==="SCALE").length>=2)return{kind:"sample",intervalStartMicros:n,intervalEndMicros:r,reason:"multipleScaleTracks"};let i={kind:"constant",value:e};for(let s of t){let a=A5(s,n,r);if(a.kind==="sample")return{kind:"sample",intervalStartMicros:n,intervalEndMicros:r,reason:a.reason};let l=N5(i,a.transform);if(l.kind==="sample")return{kind:"sample",intervalStartMicros:n,intervalEndMicros:r,reason:l.reason};i=l.interval}return{kind:"exact",intervalStartMicros:n,intervalEndMicros:r,interval:i}}function b5(e,t,n){let r=[];for(let o=0;o<n.length-1;o+=1)r.push(y5(e,t,n[o],n[o+1]));return r}function L5(e,t,n,r,o){let i=[];for(let s of e){if(s.kind==="exact"){C5(i,r,s.intervalStartMicros,s.intervalEndMicros,s.interval);continue}P5(i,t,n,r,s.intervalStartMicros,s.intervalEndMicros,o)}if(i.length>0){let s=Pe(f_(t,n,r),3),a=i[i.length-1];a.time===1&&!hr(a.value,s)&&sc(i,r,r,s)}return i}function sc(e,t,n,r){let o=Pe(n/t,4),i=Pe(r,3),s=e[e.length-1];if(s&&o===s.time&&hr(i,s.value))return s;s&&o===s.time&&(s.time=Pe(Math.max(0,o-g5),4));let a={time:o,value:i,easing:tl};return e.push(a),a}function C5(e,t,n,r,o){let i=sc(e,t,n,o.kind==="constant"?o.value:o.startValue);if(o.kind==="constant"){i.easing=tl;let a=sc(e,t,r,o.value);a.easing=tl;return}i.easing=o.easing;let s=sc(e,t,r,o.endValue);s.easing=tl}function P5(e,t,n,r,o,i,s){let a=I5(s);for(let u=o;u<i;u+=a){let c=sc(e,r,u,f_(t,n,u));c.easing=tl}let l=sc(e,r,i,f_(t,n,i));l.easing=tl}function xM(e,t,n,r=.5){if(n<=0)return[];let o=S5(t,n);if(o.length===0)return[];if(o.length===1)return[{time:Pe(o[0]/n,4),value:Pe(f_(e,t,o[0]),3),easing:tl}];let i=b5(e,t,o);return L5(i,e,t,n,r)}function eR(e){return e*(180/Math.PI)}function xn(e,t){let n=Pe(e,3);switch(t){case"px":return`${n}px`;case"rad":return`${n}rad`;case"number":return`${n}`}}var An={MOTION_TRANSLATION_X:{css:{property:"translateX",unit:"px",transformFunction:"translateX"},motionDev:{property:"x",unit:"px"},svg:{exportVia:"css"}},MOTION_TRANSLATION_Y:{css:{property:"translateY",unit:"px",transformFunction:"translateY"},motionDev:{property:"y",unit:"px"},svg:{exportVia:"css"}},MOTION_ROTATION:{css:{property:"rotate",unit:"rad",transformFunction:"rotate"},motionDev:{property:"rotate",unit:"deg",mapValue:eR},svg:{exportVia:"css"}},MOTION_SCALE_X:{css:{property:"scaleX",unit:"number",transformFunction:"scaleX",propertyDeclarationInitialValue:"1"},motionDev:{property:"scaleX",unit:"number"},svg:{exportVia:"css"}},MOTION_SCALE_Y:{css:{property:"scaleY",unit:"number",transformFunction:"scaleY",propertyDeclarationInitialValue:"1"},motionDev:{property:"scaleY",unit:"number"},svg:{exportVia:"css"}},MOTION_SHEAR:{css:{property:"shear",unit:"rad",transformFunction:"skewX"},motionDev:{property:"skewX",unit:"deg",mapValue:eR},svg:{exportVia:"css"}},OPACITY:{css:{property:"opacity",unit:"number",generateOffset:!0,parameterUnitDivisor:100},motionDev:{property:"opacity",unit:"number",parameterUnitDivisor:100},svg:{exportVia:"css"}},WIDTH:{css:{property:"width",unit:"px",generateOffset:!0},motionDev:{property:"width",unit:"px"},svg:{exportVia:"smil",attributeName:"width"}},HEIGHT:{css:{property:"height",unit:"px",generateOffset:!0},motionDev:{property:"height",unit:"px"},svg:{exportVia:"smil",attributeName:"height"}},MIN_WIDTH:{css:{property:"min-width",unit:"px",generateOffset:!0},motionDev:{property:"minWidth",unit:"px"},svg:null},MAX_WIDTH:{css:{property:"max-width",unit:"px",generateOffset:!0},motionDev:{property:"maxWidth",unit:"px"},svg:null},MIN_HEIGHT:{css:{property:"min-height",unit:"px",generateOffset:!0},motionDev:{property:"minHeight",unit:"px"},svg:null},MAX_HEIGHT:{css:{property:"max-height",unit:"px",generateOffset:!0},motionDev:{property:"maxHeight",unit:"px"},svg:null},CORNER_RADIUS:{css:{property:"border-radius",unit:"px",generateOffset:!0},motionDev:{property:"borderRadius",unit:"px"},svg:{exportVia:"smil",attributeName:"rx"}},RECTANGLE_TOP_LEFT_CORNER_RADIUS:{css:{property:"border-top-left-radius",unit:"px",generateOffset:!0},motionDev:{property:"borderTopLeftRadius",unit:"px"},svg:null},RECTANGLE_TOP_RIGHT_CORNER_RADIUS:{css:{property:"border-top-right-radius",unit:"px",generateOffset:!0},motionDev:{property:"borderTopRightRadius",unit:"px"},svg:null},RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS:{css:{property:"border-bottom-left-radius",unit:"px",generateOffset:!0},motionDev:{property:"borderBottomLeftRadius",unit:"px"},svg:null},RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS:{css:{property:"border-bottom-right-radius",unit:"px",generateOffset:!0},motionDev:{property:"borderBottomRightRadius",unit:"px"},svg:null},STROKE_WEIGHT:{css:{property:"border-width",unit:"px",generateOffset:!0},motionDev:{property:"borderWidth",unit:"px"},svg:{exportVia:"css",cssPropertyOverride:"stroke-width"}},BORDER_TOP_WEIGHT:{css:{property:"border-top-width",unit:"px",generateOffset:!0},motionDev:{property:"borderTopWidth",unit:"px"},svg:null},BORDER_RIGHT_WEIGHT:{css:{property:"border-right-width",unit:"px",generateOffset:!0},motionDev:{property:"borderRightWidth",unit:"px"},svg:null},BORDER_BOTTOM_WEIGHT:{css:{property:"border-bottom-width",unit:"px",generateOffset:!0},motionDev:{property:"borderBottomWidth",unit:"px"},svg:null},BORDER_LEFT_WEIGHT:{css:{property:"border-left-width",unit:"px",generateOffset:!0},motionDev:{property:"borderLeftWidth",unit:"px"},svg:null},TEXT_STROKE_WIDTH:{css:{property:"-webkit-text-stroke-width",unit:"px",generateOffset:!0},motionDev:{property:"WebkitTextStrokeWidth",unit:"px"},svg:null},STACK_PADDING_LEFT:{css:{property:"padding-left",unit:"px",generateOffset:!0},motionDev:{property:"paddingLeft",unit:"px"},svg:null},STACK_PADDING_TOP:{css:{property:"padding-top",unit:"px",generateOffset:!0},motionDev:{property:"paddingTop",unit:"px"},svg:null},STACK_PADDING_RIGHT:{css:{property:"padding-right",unit:"px",generateOffset:!0},motionDev:{property:"paddingRight",unit:"px"},svg:null},STACK_PADDING_BOTTOM:{css:{property:"padding-bottom",unit:"px",generateOffset:!0},motionDev:{property:"paddingBottom",unit:"px"},svg:null},STACK_SPACING:{css:{property:"gap",unit:"px",generateOffset:!0},motionDev:{property:"gap",unit:"px"},svg:null},STACK_COUNTER_SPACING:{css:{property:"gap",unit:"px",generateOffset:!0},motionDev:{property:"gap",unit:"px"},svg:null},GRID_ROW_GAP:{css:{property:"row-gap",unit:"px",generateOffset:!0},motionDev:{property:"rowGap",unit:"px"},svg:null},GRID_COLUMN_GAP:{css:{property:"column-gap",unit:"px",generateOffset:!0},motionDev:{property:"columnGap",unit:"px"},svg:null},FONT_SIZE:{css:{property:"font-size",unit:"px",generateOffset:!0},motionDev:{property:"fontSize",unit:"px"},svg:{exportVia:"css"}},LETTER_SPACING:{css:{property:"letter-spacing",unit:"px"},motionDev:{property:"letterSpacing",unit:"px"},svg:null},LINE_HEIGHT:{css:{property:"line-height",unit:"px",generateOffset:!0},motionDev:{property:"lineHeight",unit:"px"},svg:null},PARAGRAPH_SPACING:{css:{property:"margin-bottom",unit:"px"},motionDev:{property:"marginBottom",unit:"px"},svg:null},PARAGRAPH_INDENT:{css:{property:"text-indent",unit:"px"},motionDev:{property:"textIndent",unit:"px"},svg:null}};var nl=new Set([An.MOTION_TRANSLATION_X.motionDev.property,An.MOTION_TRANSLATION_Y.motionDev.property,An.MOTION_ROTATION.motionDev.property,An.MOTION_SCALE_X.motionDev.property,An.MOTION_SCALE_Y.motionDev.property,An.MOTION_SHEAR.motionDev.property]);var GM={fills:{css:{property:"background-color"},motionDev:{property:"background"},svg:{property:"fill"}},strokes:{css:{property:"border-color"},motionDev:{property:"borderColor"},svg:{property:"stroke"}}},v5={css:{property:"color"},motionDev:{property:"color"},svg:{property:"fill"}},x5={css:{property:"-webkit-text-stroke-color"},motionDev:{property:"WebkitTextStrokeColor"},svg:{property:"stroke"}};function rR(e){return e in GM}function oR(e,t){return t?.isTextNode?e==="fills"?v5:x5:GM[e]}var M5={LAYER_BLUR:{RADIUS:{css:{property:"filter",unit:"px",cssFunction:"blur"},motionDev:{property:"filter",unit:"px",motionDevFunction:"blur"}}},BACKGROUND_BLUR:{RADIUS:{css:{property:"backdrop-filter",unit:"px",cssFunction:"blur"},motionDev:{property:"backdropFilter",unit:"px",motionDevFunction:"blur"}}}};var k5=M5;function iR(e,t){return k5[e]?.[t]?.motionDev??null}function sR(e){return Object.keys(e).map(t=>Number(t)).filter(t=>Number.isFinite(t)).sort((t,n)=>t-n)}function bi(e,t,n,r){let o=tR(e),i=tR(t),s=tR(n),a=Math.min(1,Math.max(0,r));if(a>=1)return G5(o,i,s);let l=Pe(a,2);return`rgba(${o}, ${i}, ${s}, ${l})`}function tR(e){return Math.min(255,Math.max(0,Math.round(e*255)))}function G5(e,t,n){let r=i=>i.toString(16).toUpperCase().padStart(2,"0"),o=`${r(e)}${r(t)}${r(n)}`;return o[0]===o[1]&&o[2]===o[3]&&o[4]===o[5]?`#${o[0]}${o[2]}${o[4]}`:`#${o}`}function Bf(e){if(!e?.tracks||e.baseValue.type!=="COLOR")return null;let t=e.baseValue.value,n=[],r=e.accumulatedAncestorOffsetMicros??0,o=[...e.tracks].filter(i=>i!=null).sort((i,s)=>{let a=i.animationPreset?.timelineOffset??0,l=s.animationPreset?.timelineOffset??0;return a-l});for(let i=0;i<o.length;i++){let s=o[i];for(let a of s.keyframes){if(a.value.type!=="COLOR")continue;let l=(s.animationPreset?.timelineOffset??0)*1e6,u=a.timelinePosition+l+r,{r:c,g:d,b:f,a:p}=a.value.value;n.push({absolutePositionMicros:u,trackIndex:i,r:c,g:d,b:f,a:p,easing:a.easing})}}return n.sort((i,s)=>i.absolutePositionMicros-s.absolutePositionMicros),n.length>0?{keyframes:n,baseColor:t}:null}function FM(e){return"parameterUnitDivisor"in e?e.parameterUnitDivisor:1}function p_(e){switch(e){case"SET":return 0;case"OFFSET":return 1;case"SCALE":return 2;default:return 3}}function MM(e,t){return"mapValue"in e?e.mapValue(t):t}function F5(e,t){if(t?.isTextNode&&e==="STROKE_WEIGHT")return An.TEXT_STROKE_WIDTH}
8736function w5(e,t,n){let r=F5(e,n);if(r)return r.motionDev;let o=n?.layoutMode;if(o==="HORIZONTAL"){if(e==="STACK_SPACING")return An.GRID_COLUMN_GAP.motionDev;if(e==="STACK_COUNTER_SPACING")return An.GRID_ROW_GAP.motionDev}else if(o==="VERTICAL"){if(e==="STACK_SPACING")return An.GRID_ROW_GAP.motionDev;if(e==="STACK_COUNTER_SPACING")return An.GRID_COLUMN_GAP.motionDev}return t.motionDev}function kM(e){return typeof e=="object"&&e!==null&&"tracks"in e&&"timelineDuration"in e}function B5(e,t,n){let r=new Map,o=0;for(let[i,s]of Object.entries(e)){if(kM(s))o=Math.max(o,s.timelineDuration);else if(typeof s=="object"&&s!==null)for(let _ of Object.values(s))_&&typeof _=="object"&&"timelineDuration"in _&&(o=Math.max(o,_.timelineDuration));if(i==="fills"||i==="strokes"||!kM(s))continue;let a=An[i];if(!a)continue;if(s.baseValue.type!=="FLOAT"){console.warn("Keyframe conversion does not support non-float keyframes",{parameterField:i,type:s.baseValue.type});continue}let l=t(i,a),u=l.property,c=MM(l,s.baseValue.value),d=s.accumulatedAncestorOffsetMicros??0,f=s.tracks.filter(_=>_!=null).map(_=>{let T=(_.animationPreset?.timelineOffset??0)*1e6,h=_.keyframes.flatMap(m=>m.value.type!=="FLOAT"?[]:[{timeMicros:m.timelinePosition+T+d,value:MM(l,m.value.value),easing:m.easing}]).sort((m,E)=>m.timeMicros-E.timeMicros);return{keyframeOperation:_.keyframeOperation,keyframes:h}}).filter(_=>_.keyframes.length>0).sort((_,T)=>p_(_.keyframeOperation)-p_(T.keyframeOperation));if(f.length===0)continue;let p=r.get(u);if(p&&n?.mergeDuplicateProperties){p.timelineDurationMicros=Math.max(p.timelineDurationMicros,s.timelineDuration),p.tracks.push(...f),p.tracks.sort((_,T)=>p_(_.keyframeOperation)-p_(T.keyframeOperation));continue}r.set(u,{target:l,baseValue:c,timelineDurationMicros:s.timelineDuration,tracks:f})}return{durationMicros:o,propertiesByName:r}}function wM(e,t){return B5(e,(n,r)=>w5(n,r,t))}var BM={OFFSET_X:"offsetX",OFFSET_Y:"offsetY",RADIUS:"radius",SPREAD:"spread"};function H5(e){let t=e.tracks[0];if(!t||t.keyframes.length===0)return null;let n=e.accumulatedAncestorOffsetMicros??0,r=(t.animationPreset?.timelineOffset??0)*1e6,o=[];for(let i of t.keyframes)i.value.type==="FLOAT"&&o.push({timeMicros:i.timelinePosition+r+n,value:i.value.value,easing:i.easing});return o.length===0?null:(o.sort((i,s)=>i.timeMicros-s.timeMicros),{track:{keyframeOperation:t.keyframeOperation,keyframes:o},durationMicros:e.timelineDuration})}function W5(e){return e.map(t=>({timeMicros:t.absolutePositionMicros,r:t.r,g:t.g,b:t.b,a:t.a,easing:t.easing})).sort((t,n)=>t.timeMicros-n.timeMicros)}function Uf(e,t){if(!t||t.length===0)return{tracks:[],durationMicros:0};let n=e.effects,r=[],o=0,i=!1;for(let s=0;s<t.length;s++){let a=t[s];if(!a)continue;let l={effectIndex:s,base:a},u=n?.[s];if(u){for(let[c,d]of Object.entries(u))if(d){if(c==="COLOR"){let f=Bf(d);if(!f)continue;l.color=W5(f.keyframes),i=!0,o=Math.max(o,d.timelineDuration)}else if(c in BM){let f=H5(d);if(!f)continue;let p=BM[c];l[p]=f.track,i=!0,o=Math.max(o,f.durationMicros)}}}r.push(l)}return i?{tracks:r,durationMicros:o}:{tracks:[],durationMicros:0}}function UM(e,t,n){if(e.length===0)return t;let r=e[0];if(n<=r.timeMicros)return r;let o=e[e.length-1];if(n>=o.timeMicros)return o;for(let i=1;i<e.length;i++){let s=e[i];if(s.timeMicros>=n){let a=e[i-1],l=s.timeMicros-a.timeMicros;if(l<=0)return s;let u=(n-a.timeMicros)/l;return{r:a.r+(s.r-a.r)*u,g:a.g+(s.g-a.g)*u,b:a.b+(s.b-a.b)*u,a:a.a+(s.a-a.a)*u}}}return o}function Y5(e,t){let n=e.offsetX?Or(e.offsetX,e.base.offsetX,t):e.base.offsetX,r=e.offsetY?Or(e.offsetY,e.base.offsetY,t):e.base.offsetY,o=e.radius?Or(e.radius,e.base.radius,t):e.base.radius,i=e.color?UM(e.color,e.base.color,t):e.base.color;return`drop-shadow(${xn(n,"px")} ${xn(r,"px")} ${xn(Math.max(0,o),"px")} ${bi(i.r,i.g,i.b,i.a)})`}function K5(e,t){let n=[];for(let r=e.length-1;r>=0;r--)n.push(Y5(e[r],t));return n.join(" ")}function z5(e,t,n){let r=e.offsetX?Or(e.offsetX,e.base.offsetX,t):e.base.offsetX,o=e.offsetY?Or(e.offsetY,e.base.offsetY,t):e.base.offsetY,i=e.radius?Or(e.radius,e.base.radius,t):e.base.radius,s=e.color?UM(e.color,e.base.color,t):e.base.color;if(n)return`${xn(r,"px")} ${xn(o,"px")} ${xn(i,"px")}
8736 `+bi(s.r,s.g,s.b,s.a);let a=e.spread?Or(e.spread,e.base.spread,t):e.base.spread,l=`${xn(r,"px")} ${xn(o,"px")} ${xn(i,"px")} ${xn(a,"px")} `+bi(s.r,s.g,s.b,s.a);return e.base.inset?`${l} inset`:l}function X5(e,t,n){let r=[];for(let o=e.length-1;o>=0;o--)r.push(z5(e[o],t,n));return r.join(", ")}function j5(e,t){for(let n of e.keyframes)if(n.timeMicros===t)return n.easing;return null}function $5(e,t){for(let n of e)if(n.timeMicros===t)return n.easing;return null}function Z5(e,t,n){let r=!1,o=!1,i=!1;for(let s of e.keyframes){if(s.timeMicros===n)i=!0;else if(s.timeMicros>t&&s.timeMicros<n)return!0;s.timeMicros<=t&&(r=!0),s.timeMicros>n&&(o=!0)}return!i&&r&&o}function J5(e,t,n){let r=!1,o=!1,i=!1;for(let s of e){if(s.timeMicros===n)i=!0;else if(s.timeMicros>t&&s.timeMicros<n)return!0;s.timeMicros<=t&&(r=!0),s.timeMicros>n&&(o=!0)}return!i&&r&&o}function q5(e,t,n){let r=[];for(let s of e){for(let a of["offsetX","offsetY","radius","spread"]){let l=s[a];if(!l)continue;if(Z5(l,t,n))return{type:"LINEAR"};let u=j5(l,n);u&&r.push(u)}if(s.color){if(J5(s.color,t,n))return{type:"LINEAR"};let a=$5(s.color,n);a&&r.push(a)}}if(r.length===0)return null;let[o,...i]=r;return i.every(s=>QS(o,s))?o:{type:"LINEAR"}}function VM(e,t,n=!1){return HM(e,t,(r,o)=>X5(r,o,n))}function HM(e,t,n){let r=new Set([0,t]),o=a=>Math.min(t,Math.max(0,a));for(let a of e){for(let l of["offsetX","offsetY","radius","spread"]){let u=a[l];if(u)for(let c of u.keyframes)r.add(o(c.timeMicros))}if(a.color)for(let l of a.color)r.add(o(l.timeMicros))}let i=Array.from(r).sort((a,l)=>a-l),s=i.map((a,l)=>{let u=i[l+1];return{timeMicros:a,value:n(e,a),easing:u!=null?q5(e,a,u):null}});return Ls(s,a=>a.value)}function WM(e,t){let n=e.filter(o=>!o.base.inset),r=n.length!==e.length;return n.length===0?{keyframes:[],droppedInset:r}:{keyframes:HM(n,t,K5),droppedInset:r}}Fe();var sz=new Set(["width","height","maxWidth","maxHeight","borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","borderWidth","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","paddingLeft","paddingTop","paddingRight","paddingBottom","marginBottom","x","y","scaleX","scaleY","rotate","skewX"]),fR=new Set(Object.values(An).map(e=>e.motionDev).filter(e=>e.unit==="px"&&!sz.has(e.property)).map(e=>e.property));function az(e,t,n){let r={mass:e,stiffness:t,damping:n},o=Math.sqrt(t/e),i=d_(r),s=Ff(r),a=PM(r);return Object.assign(a,{__springParams:{mass:e,stiffness:t,damping:n,zeta:i,w0:o,duration:s}})}function KM(e){return typeof e=="function"&&"__springParams"in e}function lR(e,t,n){if(n.length===1&&n[0]?.type==="SPRING"){let o=n[0];if(Gf(o.value))return{duration:e,type:"spring",bounce:CM(o.value)}}let r=n.map(o=>{let{type:i}=o;switch(i){case"LINEAR":return"linear";case"BEZIER":{let{p1x:s,p1y:a,p2x:l,p2y:u}=o.value;return[Pe(s,3),Pe(a,3),Pe(l,3),Pe(u,3)]}case"SPRING":return Gf(o.value)?az(o.value.mass,o.value.stiffness,o.value.damping):"linear";case"HOLD":return"linear";default:oc(i)}});return{duration:e,times:t,ease:r}}var zM=1e-4;function lz(e){if(e.length===0)return[];let t=[...e];t.length>1&&t[t.length-1].time<1&&t.push({...t[t.length-1],time:1});let n=Math.round(1/zM),r=t.map(o=>Math.round(o.time*n));for(let o=1;o<r.length;o+=1)r[o]=Math.max(r[o],r[o-1]+1);if(r[r.length-1]>n){r[r.length-1]=n;for(let o=r.length-2;o>=0;o-=1)r[o]=Math.min(r[o],r[o+1]-1)}if(r[0]<0){r[0]=0;for(let o=1;o<r.length;o+=1)r[o]=Math.max(r[o],r[o-1]+1)}return t.map((o,i)=>({...o,time:r[i]/n}))}function uz(e,t){let n=new Map;for(let[r,o]of e.propertiesByName){let i=xM(o.baseValue,o.tracks,e.durationMicros),s=t?.normalizeParameterUnits?FM(o.target):1,a=lz(i.map(l=>({...l,value:l.value/s})));a.length>0&&n.set(r,{keyframes:a,baseValue:o.baseValue/s})}return n}function cz(e,t,n){let r=new Map;for(let[o,i]of Object.entries(e)){if(!i||!rR(o))continue;let s=oR(o,{isTextNode:n}).motionDev.property,a=o==="fills",l=!("tracks"in i),u;if(l){let f=i;u=Object.keys(f).map(Number).filter(p=>!isNaN(p)).sort((p,_)=>p-_).map(p=>[p,f[p]])}else u=[[0,i]];let c=a&&!n&&u.length>1,d=c?u:u.slice(0,1);for(let[f,p]of d){let _=Bf(p);if(!_)continue;let T=c?`--fill-color-${f}`:s,h=bi(_.baseColor.r,_.baseColor.g,_.baseColor.b,_.baseColor.a),m=_.keyframes.map(E=>({time:Pe(E.absolutePositionMicros/t,4),colorString:bi(E.r,E.g,E.b,E.a),easing:E.easing}));if(m.length>0){m.sort((O,g)=>O.time-g.time);let E=m.map(O=>O.easing);for(let O=0;O<m.length;O++)m[O].easing=O<m.length-1?E[O+1]:{type:"LINEAR"};r.set(T,{property:T,keyframes:m,baseColorString:h})}}}return r}function dz(e,t,n,r){let o=e.effects;if(!o||n===0)return[];let i=[];for(let s of sR(o)){let a=o[s];if(!a)continue;let l=t?.[s];if(l)for(let[u,c]of Object.entries(a)){if(!c)continue;let d=iR(l,u),f=r&&l==="BACKGROUND_BLUR"&&d?{...d,property:"filter",motionDevFunction:"blur"}:d;if(!f||c.baseValue.type!=="FLOAT")continue;let p=c.tracks[0];if(!p||p.keyframes.length===0)continue;let _=YM(f,c.baseValue.value),T=[...p.keyframes].sort((E,O)=>E.timelinePosition-O.timelinePosition),h=[];for(let E of T)E.value.type==="FLOAT"&&h.push({time:Pe(E.timelinePosition/n,4),valueString:YM(f,E.value.value),easing:E.easing});if(h.length===0)continue;let m=h.map(E=>E.easing);for(let E=0;E<h.length;E++)h[E].easing=E<h.length-1?h[E].easing.type==="HOLD"?h[E].easing:m[E+1]:{type:"LINEAR"};i.push({effectIndex:s,property:f.property,keyframes:h,baseValueString:_})}}return i}function YM(e,t){return`${e.motionDevFunction}(${xn(t,e.unit)})`}var fz="boxShadow",pz="textShadow";function mz(e,t,n,r,o){if(n===0)return null;let{tracks:i}=Uf(e,t),s=o?i.filter(o):i;if(s.length===0)return null;let a=VM(s,n,r).map(l=>({time:Pe(l.timeMicros/n,4),valueString:l.value,easing:l.easing??{type:"LINEAR"}}));return a.length===0?null:{effectIndex:s[0].effectIndex,property:r?pz:fz,ke
8736yframes:a,baseValueString:a[0].valueString}}function Ez(e,t,n){let{tracks:r}=Uf(e,t),o=WM(r,n);return o.keyframes.length===0?null:{effectIndex:r.find(i=>!i.base.inset)?.effectIndex??0,property:"filter",keyframes:o.keyframes.map(i=>({time:Pe(i.timeMicros/n,4),valueString:i.value,easing:i.easing??{type:"LINEAR"}})),baseValueString:o.keyframes[0].value}}function uR(e){if(e.length<2)return e;let t=[];for(let n=0;n<e.length;n++){let r=e[n];if(r.easing.type==="HOLD"&&n<e.length-1){let i=e[n+1].time-zM;if(i<=r.time){t.push({...r,easing:{type:"LINEAR"}});continue}t.push({...r,easing:{type:"LINEAR"}}),t.push({...r,time:Pe(i,4),easing:{type:"LINEAR"},isHoldDuplicate:!0})}else t.push(r)}return t}function cR(e,t){if(e.length===0)return!0;let n=t(e[0]);return e.every(r=>t(r)===n)}function _z(e,t,n,r,o){let i={},s={},a={},l=new Map,u={},c={},d={},f={},p={},_={},T=Array.from(e.entries()).sort(([m],[E])=>m.localeCompare(E));for(let[m,E]of T){let{keyframes:O,baseValue:g}=E;if(O.length===0)continue;if(cR(O,L=>L.value)){let L=O[0].value;L!==g&&(i[m]=L);continue}i[m]=O[0].value;let I=Ls(O,L=>L.value),S=uR(I),A=S.map(L=>L.time),R=S.map(L=>L.value),y=new Set;S.forEach((L,D)=>{L.isHoldDuplicate&&y.add(D)}),y.size>0&&l.set(m,y);let b=S.slice(0,-1).map(L=>L.easing);s[m]=R,a[m]=lR(r,A,b),dR(a[m],o)}let h=Array.from(t.entries()).sort(([m],[E])=>m.localeCompare(E));for(let[m,E]of h){let{keyframes:O}=E;if(O.length===0)continue;if(cR(O,y=>y.colorString)){u[m]=O[0].colorString;continue}u[m]=E.baseColorString;let g=Ls(O,y=>y.colorString),I=uR(g),S=I.map(y=>y.time),A=I.map(y=>y.colorString),R=I.slice(0,-1).map(y=>y.easing);c[m]=A,d[m]=lR(r,S,R),dR(d[m],o)}for(let m of n){let{keyframes:E,property:O,baseValueString:g}=m;if(E.length===0)continue;if(cR(E,b=>b.valueString)){f[O]=E[0].valueString;continue}f[O]=g;let I=Ls(E,b=>b.valueString),S=uR(I),A=S.map(b=>b.time),R=S.map(b=>b.valueString),y=S.slice(0,-1).map(b=>b.easing);p[O]=R,_[O]=lR(r,A,y),dR(_[O],o)}return{props:{initial:i,animate:s,transition:a,colorInitial:u,colorAnimate:c,colorTransition:d,...Object.keys(f).length>0?{effectInitial:f}:{},...Object.keys(p).length>0?{effectAnimate:p}:{},...Object.keys(_).length>0?{effectTransition:_}:{}},holdDuplicateIndices:l}}function dR(e,t){!e||t!=="loop"&&t!=="boomerang"||(e.repeat=1/0,t==="boomerang"&&(e.repeatType="reverse"))}function Tz(e,t){let n=wM(e,{layoutMode:t?.layoutMode,isTextNode:t?.isTextNode}),r=n.durationMicros;if(e.effects)for(let[u,c]of Object.entries(e.effects)){if(!c)continue;let d=t?.effectTypes?.[Number(u)];if(d)for(let[f,p]of Object.entries(c))p&&iR(d,f)&&(r=Math.max(r,p.timelineDuration))}if(r=Math.max(r,Uf(e,t?.shadowEffectBases).durationMicros),r===0)return null;n.durationMicros=r;let o=uz(n,{normalizeParameterUnits:t?.normalizeParameterUnits}),i=cz(e,r,t?.isTextNode??!1),s=dz(e,t?.effectTypes,r,t?.isVectorNode??!1);if(t?.isVectorNode&&!t?.isTextNode){let u=Ez(e,t?.shadowEffectBases,r);u&&s.push(u)}let a=mz(e,t?.shadowEffectBases,r,t?.isTextNode??!1,t?.isVectorNode&&!t?.isTextNode?u=>u.base.inset:void 0);if(a&&s.push(a),o.size===0&&i.size===0&&s.length===0)return null;let l=Pe(r/1e6,3);return{propertiesByName:o,colorPropertiesByName:i,effectProperties:s,durationSeconds:l,durationMicros:r}}function Li(e,t){let n=Tz(e,t);return n?_z(n.propertiesByName,n.colorPropertiesByName,n.effectProperties,n.durationSeconds,t?.playbackStyle).props:null}var hz=new Set(["x","y","rotate","scaleX","scaleY","skewX","opacity"]),Pse=new Set([...hz,"width","height"]);function Oz(e){return e==="linear"?bs:KM(e)?bs:e}function gz(e,t){return KM(t)?t(e):c_(e,Oz(t))}function So(e,t,n,r){if(t.length<2)return n[0]??0;let o=0;for(let d=0;d<t.length-1;d++)e>t[d+1]&&(o=d+1);o=Math.min(o,t.length-2);let i=t[o],s=t[o+1],a=n[o],l=n[o+1],u=s===i?0:Math.max(0,Math.min(1,(e-i)/(s-i))),c=gz(u,r[o]??"linear");return a+c*(l-a)}function Iz(e){let t=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.exec(e.trim());if(t){let r=t[1],o=r.length===3?`${r[0]}${r[0]}${r[1]}${r[1]}${r[2]}${r[2]}`:r;return[parseInt(o.slice(0,2),16),parseInt(o.slice(2,4),16),parseInt(o.slice(4,6),16),1]}let n=/rgba\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\s*\)/.exec(e);return n?[Number(n[1]),Number(n[2]),Number(n[3]),Number(n[4])]:null}function rl(e,t){let n={},r={},o={};for(let[l,u]of Object.entries(e.transition)){let c=e.animate[l];if(!c||!("times"in u)||!u.times||u.times.length<2){n[l]=e.initial[l]??0,r[l]=c??[],o[l]=u;continue}let{times:d,ease:f}=u,p=So(t,d,c,f);n[l]=p,r[l]=[p,p],o[l]={duration:0,times:[0,1],ease:["linear"]}}for(let l of Object.keys(e.initial))l in n||(n[l]=e.initial[l]??0,r[l]=e.animate[l]??[]);let i={},s={},a={};for(let l of Object.keys(e.colorAnimate??{})){let u=e.colorAnimate?.[l],c=e.colorTransition?.[l];if(!u||!c||!("times"in c)||!c.times||c.times.length<2){i[l]=e.colorInitial?.[l]??u?.[0]??"rgba(0, 0, 0, 1)",u&&(s[l]=u),c&&(a[l]=c);continue}let{times:d,ease:f}=c,p=u.map(Iz);if(p.some(O=>O===null)){i[l]=e.colorInitial?.[l]??u[0]??"rgba(0, 0, 0, 1)",s[l]=u,a[l]=c;continue}let _=So(t,d,p.map(O=>O[0]),f),T=So(t,d,p.map(O=>O[1]),f),h=So(t,d,p.map(O=>O[2]),f),m=So(t,d,p.map(O=>O[3]),f),E=bi(_/255,T/255,h/255,m);i[l]=E,s[l]=[E,E],a[l]={duration:0,times:[0,1],ease:["linear"]}}for(let l of Object.keys(e.colorInitial??{}))if(!(l in i)){i[l]=e.colorInitial?.[l]??"rgba(0, 0, 0, 1)";let u=e.colorAnimate?.[l];u&&(s[l]=u)}return{initial:n,animate:r,transition:o,colorInitial:i,colorAnimate:s,colorTransition:a}}function pR(e){return{initial:{...e.initial,...e.colorInitial},animate:{...e.animate,...e.colorAnimate},transition:{...e.transition,...e.colorTransition}}}Fe();
8736var Sz=new Set([w.IN_CUBIC,w.EASE_IN,w.OUT_CUBIC,w.INOUT_CUBIC,w.IN_BACK_CUBIC,w.OUT_BACK_CUBIC,w.INOUT_BACK_CUBIC]),Rz=new Set([w.SPRING,w.GENTLE_SPRING,w.CUSTOM_SPRING,w.SPRING_PRESET_ONE,w.SPRING_PRESET_TWO,w.SPRING_PRESET_THREE]);function Vf(e){let t=NM(e.easingType);if(t===w.LINEAR)return{type:"LINEAR"};if(t===w.HOLD)return{type:"HOLD"};if(e.springValues)return{type:"SPRING",value:e.springValues};if(t!=null&&Rz.has(t))return{type:"SPRING",value:kf(t)};if(e.bezierValues){let{x1:n,y1:r,x2:o,y2:i}=e.bezierValues;return{type:"BEZIER",value:{p1x:n,p1y:r,p2x:o,p2y:i}}}return t!=null&&Sz.has(t)?{type:"BEZIER",value:Mf(t)}:{type:"LINEAR"}}function Hf(e){switch(e.type){case"SPRING":return{type:"spring",...e.value};case"BEZIER":{let{p1x:t,p1y:n,p2x:r,p2y:o}=e.value;return{ease:[Pe(t,3),Pe(n,3),Pe(r,3),Pe(o,3)]}}case"LINEAR":case"HOLD":return{ease:"linear"}}}var fae={[yi.MOTION_TRANSLATION_X]:"translationX",[yi.MOTION_TRANSLATION_Y]:"translationY",[yi.MOTION_ROTATION]:"rotation",[yi.MOTION_SHEAR]:"shear"};var pae=new Set(l_);Fe();var Pae=Math.PI/180,Dae=180/Math.PI;var yz=new Set(["TRANSLATION_XY","SCALE_XY"]),vae=new Set(u_.filter(e=>!yz.has(e)));var bz=new Map([[mo.OPACITY,["opacity"]],[mo.TRANSLATION,["x","y"]],[mo.ROTATION,["rotate"]],[mo.SCALE,["scaleX","scaleY"]]]),Hae=new Map([[mo.OPACITY,["opacity"]],[mo.TRANSLATION,["translate"]],[mo.ROTATION,["rotate"]],[mo.SCALE,["scale"]]]);function jM(e,t){for(let n of e)if(n.interactionIDs.includes(t))return n;return null}function Lz(e,t,n){if(!e)return new Map;let r=new Map,o=e[mo.ALL];if(o){let i=o.find(a=>a.interactionIDs.length===0);if(i)for(let[,a]of n)for(let l of a)r.set(l,i);let s=jM(o,t);if(s)for(let[,a]of n)for(let l of a)r.set(l,s)}for(let[i,s]of Object.entries(e)){if(i===mo.ALL)continue;let a=n.get(i);if(!a)continue;let l=jM(s,t);if(l)for(let u of a)r.set(u,l)}return r}function Cz(e){return Hf(Vf(e))}function $M(e,t){let n=Lz(e,t,bz);if(n.size===0)return null;let r={};for(let[o,i]of n)r[o]={...Cz(i.easing),duration:i.duration,...i.delay>0?{delay:i.delay}:{}};return r}function ZM(){return typeof window>"u"?!1:window.matchMedia("(prefers-reduced-motion: reduce)").matches}function Pz(e,t){return!!e(t.websiteData.siteSettings).ignoreReducedMotion}function Wf(){return!!BD(void 0,fe()?.websiteData.siteSettings)?.ignoreReducedMotion}function JM(e,t){return ZM()&&!Pz(e,t)}function m_(){let e=Wf();return ZM()&&!e}var E_=new Map,__=new Map;function T_(e){let t=E_.get(e);if(t)return Promise.resolve(t);let n=__.get(e);if(n)return n.promise;let r=()=>{},o=new Promise(i=>r=i);return __.set(e,{resolve:r,promise:o}),o}function mR(e,t){if(E_.has(e))return;E_.set(e,t);let n=__.get(e)?.resolve;n&&(n(t),__.delete(e))}function ER(e){E_.delete(e)}function qM(e){if(e.length===0)return Promise.resolve(null);let t=e.map(n=>T_(n));return Promise.any(t)}function _R(){return document.documentElement}function TR(){return document.body}function QM(e){if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;let t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some(n=>{let r=t.getPropertyValue(n);return r==="auto"||r==="scroll"})}function e1(e){if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;let t=getComputedStyle(e);return t.overflowX==="auto"||t.overflowX==="scroll"}function t1(e){if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;let t=getComputedStyle(e);return t.overflowY==="auto"||t.overflowY==="scroll"}function n1(e){let t=e.parentElement;for(;t&&t!==document.documentElement;){if(QM(t))return t;t=t.parentElement}return TR()}function hR(e){let t=e.parentElement;for(;t&&t!==document.body;){if(QM(t))return t;t=t.parentElement}return _R()}var Dz=.8;function vz(e,t){return e?.filter(n=>n.event?.interactionType===t)?.map(n=>n.id)?.filter(n=>n!=null)?.map(n=>ot(n))??[]}function h_(e,t,n,r){let{variableState:o,websiteContext:{env:i,setLocation:s,history:a}}=r;for(let l of n)switch(l.connectionType){case"INTERNAL_NODE":Fz(e,r,l,t);break;case"URL":if(l.connectionURL){let u=pP(l.connectionURL,i);if(!u)s({url:l.connectionURL});else{let{url:c,target:d}=_f(u,l.openUrlInNewTab,i);
8736window.open(c,d)?.focus()}}break;case"SET_VARIABLE":if(l.targetVariable&&l.targetVariable.id&&l.targetVariableData){let u=wu(l.targetVariableData),c=u!==null?To({get:e,variableState:o,modeContext:r.modeContext},u):null;c!==null?o.setVariable(l.targetVariable.id,c,r.modeContext):console.warn("Error evaluating variable data",l.targetVariableData)}break;case"CONDITIONAL":if(l.conditionalActions)for(let u of l.conditionalActions){let c=u.condition?wu(u.condition):void 0;if(c===null)break;if(c===void 0||To({get:e,variableState:o,modeContext:r.modeContext},c)){if(u.actions){let d=IE(u.actions);h_(e,t,d,r)}break}}break;case"BACK":a.back();break;default:console.warn("unknown action type",l)}}function xz(e,t,n,r){let o=r.atomStore;return()=>{let i=ho(r);if(i?.onAnimationComplete){i.onAnimationComplete();return}let s=t.transitionAtom;e(s)?.id===n&&(r1(n),o.set(s,void 0));let a=t.autoLayoutTransitionAtom;a&&e(a)?.id===n&&o.set(a,void 0)}}var Mz=0;function kz(e,t,n,r){if(e?.transitionType==="SMART_ANIMATE"){let o=Mz++;return{id:o,durationSeconds:e.transitionDuration??Gv,onTransitionEnd:xz(t,n,o,r),motionAnimationData:Fv(e,r)}}}function Gz(e,t){e.type==="COMPONENT"&&t.type;let n=e.size,r=t.size;return n.x!==r.x||n.y!==r.y}function OR(e,t,n,r,o,i){let s=t.nodeById.get(r),a=t.nodeById.get(o),l=Gz(s,a),u=Vz(n,t,l),c=kz(n,e,u,t.websiteContext);if(c&&"transitionOverrides"in t.node&&t.node.transitionOverrides&&i?.id){let d=`${i.id.sessionID}:${i.id.localID}`,f=$M(t.node.transitionOverrides,d);f&&(c.perPropertyTransitions=f)}t.websiteContext.atomStore.set(u.transitionAtom,c),u.autoLayoutTransitionAtom&&t.websiteContext.atomStore.set(u.autoLayoutTransitionAtom,c?{...c,layout:!0,onTransitionEnd:()=>{}}:void 0)}function Fz(e,t,n,r){switch(n.navigationType){case"NAVIGATE":O_(n.connectionURL,t.websiteContext,n.transitionType,n.transitionDuration);break;case"SWAP_STATE":{n.transitionNodeID;let o=t.node.id;mv(o,t);let i=BS(t),s=vz(i,"AFTER_TIMEOUT"),a=gR(n,t);let l=Uz(e,a,t);let{sessionID:u,localID:c}=n.transitionNodeID,d=`${u}
8736:${c}`,f=t.nodeById.get(d);if(!f||f.id===SS.id)break;if(OR(e,t,n,l,d,r),a.set(e,t.modeContext,d),n.transitionResetInteractiveComponents){let p=n.stateGroupContext?t.parentStates?.get(n.stateGroupContext):null;p&&p.stateResetHandlers.forEach(_=>_(e,t.modeContext))}o1(t.node.id,s);break}case"SCROLL_TO":{n.transitionNodeID;let o=n.transitionNodeID,i=n.extraScrollOffset||{x:0,y:0},s=!!n.transitionType&&n.transitionType!=="INSTANT_TRANSITION",a=JM(e,t.websiteContext);Bz(t,o,i,s&&!a);break}default:console.warn("unknown navigation type",n);break}}function wz(e,t){let n=[];n.push(e);let r=t.sourceStablePath;if(r.includes("I")){let o=r.split(";");for(let i=0;i<o.length;i++){let a=`${o.slice(0,i+1).join(";")};${e}`;n.push(a)}}return n}function Bz(e,t,n,r){if(!t)return;let{sessionID:o,localID:i}=t,s=`${o}:${i}`,a=wz(s,e);qM(a).then(l=>{if(l){let u=n1(l);if(!u)return;let c=u===TR(),d=e1(u),f=t1(u)||c,p=l.getBoundingClientRect(),_=u.getBoundingClientRect(),T=p.top-_.top,h=p.left-_.left,m={x:d?u.scrollLeft+h+n.x:u.scrollLeft,y:f?u.scrollTop+T+n.y:u.scrollTop};(c?window:u).scrollTo({top:m.y,left:m.x,behavior:r?"smooth":"instant"})}})}function O_(e,t,n,r){let o=n==="SMART_ANIMATE"&&r?{duration:r}:void 0;Ae(!!e,"No URL provided for internal navigation"),t.setLocation({url:e,transition:o})}function Uz(e,t,n){let r=t.get(e,n.modeContext);return r||(n.node.type==="INSTANCE"?n.node.mainComponentId:null)}function gR(e,t){let{backingComponentIdState:n,parentStates:r}=t,o=e.stateGroupContext;return(o?r?.get(o):null)?.backingComponentIdState??n}function Vz(e,t,n){let{transitionAtom:r,parentStates:o}=t,i=e.stateGroupContext,s=i?o?.get(i):null,a={transitionAtom:s?.transitionAtom??r};return n&&s?.parentAutoLayoutTransitionAtom&&(a.autoLayoutTransitionAtom=s.parentAutoLayoutTransitionAtom),a}function BS(e){let{node:t}=e;if(!("interactions"in t)||!t.interactions)return;let n=t.interactions,r=n.filter(d=>d.event?.interactionType==="ON_PRESS");if(!r.length)return n;let o;for(let d of r)if(o=d.actions?.find(f=>f.navigationType==="SWAP_STATE"&&f.connectionType==="INTERNAL_NODE"),o)break;if(!o||!o.transitionNodeID)return n;n=n.filter(d=>d.event?.interactionType!=="ON_CLICK");let{sessionID:i,localID:s}=o.transitionNodeID,a=`${i}:${s}`,{nodeById:l}=e,u=l.get(a);if(!("interactions"in u)||!u.interactions)return n;let c=u.interactions.find(d=>d.event?.interactionType==="ON_CLICK");return c?[...n,c]:n}function yv(e,t,n){let r={},o=[],i=[];for(let s of n){let a=s.event?.interactionType;if(a){if(a==="ON_KEY_DOWN"){o.push(s);continue}if(a==="AFTER_TIMEOUT"){i.push(s);continue}r[a]=Hz(e,t,s)}}return o.length>0&&(r.ON_KEY_DOWN=Wz(e,t,o)),i.length>
87360&&(r.AFTER_TIMEOUT=i.map(s=>{let a=s.event.transitionTimeout||Dz;return{callback:()=>{h_(e,s,s.actions||[],t)},delayMilliseconds:a*1e3,interactionGuid:ot(s.id)||Ze,nodeId:t.node.id}})),r}function bv(e,t,n){let r=e(t);return r||e(n)}function Hz(e,t,n){return{mouseCallback:r=>{let o=new g_(e,n,n.actions||[],t,r);h_(e,n,n.actions||[],t),o.completeTracking(e,t)}}}function Wz(e,t,n){return{keyCallback:r=>{for(let o of n)dP(o,r)&&h_(e,o,o.actions||[],t)}}}function Lv(e){if(!(!("accessibleHTMLTag"in e)||!e.accessibleHTMLTag)&&"interactions"in e&&e.accessibleHTMLTag==="BUTTON"&&!e.interactions.find(n=>n.event?.interactionType==="ON_CLICK")){let n={event:{interactionType:"ON_CLICK"},actions:[{noop:!0}]};e.interactions?e.interactions.push(n):e.interactions=[n]}}var IR;function I_(){return IR||(IR=new Map),IR}function Yz(e){let t=I_(),n=t.get(e)||{reverseStateInfo:[]};n.reverseStateInfo.push([]),t.set(e,n)}function Kz(e){let n=I_().get(e.target);let r=n.reverseStateInfo[n.reverseStateInfo.length-1];r.push(e)}function zz(e){let t=I_(),n=t.get(e.target);let r=n.reverseStateInfo[n.reverseStateInfo.length-1];let o=r.pop();r.length===0&&(n.reverseStateInfo.pop(),n.reverseStateInfo.length===0&&t.delete(e.target))}function Xz(e,t,n,r){let{variableState:o}=r,i=r.backingComponentIdState,s=[],a=l=>{if(l.connectionType==="CONDITIONAL"){if(l.conditionalActions)for(let u of l.conditionalActions){let c=u.condition?wu(u.condition):void 0;if(c===null)break;if(c===void 0||To({get:e,variableState:o,modeContext:{}},c)){u.actions&&IE(u.actions).forEach(a);break}}return}if(l.connectionType==="INTERNAL_NODE"&&l.navigationType==="SWAP_STATE"){l.transitionNodeID;let u=gR(l,r);let c=i.get(e,r.modeContext),d=c;c||r.node.type==="INSTANCE"&&(d=r.node.mainComponentId);let{sessionID:f,localID:p}=l.transitionNodeID,_=`${f}:${p}`;(t.event?.interactionType==="ON_HOVER"||t.event?.interactionType==="ON_PRESS")&&s.push({oldBackingComponentId:d,newBackingComponentId:_,oldBackingComponentIdStateContents:c,target:u,interactionId:ot(t.id),triggerType:t.event.interactionType,action:l,modeContext:r.modeContext,get:e})}};return n.forEach(a),s}var g_=class{executedReversibleInteractions;hoverInteractionCalc;constructor(t,n,r,o,i){if(this.executedReversibleInteractions=Xz(t,n,r,o),this.executedReversibleInteractions.length>0)if(n.event?.interactionType==="ON_HOVER"){let s=i.currentTarget.offsetParent;this.hoverInteractionCalc={origin:i.currentTarget,originSize:i.currentTarget.getBoundingClientRect(),parentDeltaStack:[{target:i.currentTarget,delta:{x:0,y:0}}]};let a=this.hoverInteractionCalc.parentDeltaStack;for(;s!==null&&s instanceof HTMLElement;){let l=a[a.length-1];a.push({target:s,delta:{x:l.delta.x+l.target.offsetLeft,y:l.delta.y+l.target.offsetTop}}),s=s.offsetParent}this.hoverInteractionCalc.parentDeltaStack.shift()}else n.event?.interactionType}completeTracking(t,n){if(!this.executedReversibleInteractions)return;let r=new Map;for(let o of this.executedReversibleInteractions)r.has(o.target)||r.set(o.target,[]),r.get(o.target)?.push(o);for(let o of r.keys()){Yz(o);let i=r.get(o);for(let s of i){let a=()=>{let l=s.target,u=l?.get(t,n.modeContext);l&&u===s.newBackingComponentId&&(OR(t,n,s.action,s.newBackingComponentId,s.oldBackingComponentId),s.oldBackingComponentIdStateContents?l.set(t,n.modeContext,s.oldBackingComponentIdStateContents):l.reset()),zz(s)};s.triggerType==="ON_HOVER"?(this.hoverInteractionCalc,s.undoInfo={type:"ON_HOVER",...this.hoverInteractionCalc,undo:a}):s.triggerType==="ON_PRESS"&&(s.undoInfo={type:"ON_PRESS",undo:a}),Kz(s)}}}},SR=new Map;function RR(){return SR||(SR=new Map),SR}function i1(e,t){let n=RR();n.has(e)||n.set(e,[]);let r=n.get(e);r.push(t)}function s1(e,t){let r=RR().get(e);let o=r.indexOf(t);o!==-1&&r.splice(o,1)}function ac(e){let n=RR().get(e.nativeEvent.type)||[];for(let r of n)r(e.nativeEvent)}function l1(){(0,a1.useEffect)(()=>{let e=t=>{I_().forEach(r=>{let o=()=>{if(r.reverseStateInfo.length===0)return;let i=r.reverseStateInfo[r.reverseStateInfo.length-1];if(i.length===0)return;let s=i[i.length-1].undoInfo;if(s.type==="ON_HOVER"){let a;for(let l=s.parentDeltaStack.length-1;l>=0;l--){let u=s.parentDeltaStack[l].target;if(!document.contains(u))break;let c=window.getComputedStyle(u);if(c.overflow&&c.overflow!=="visible"){let f=u.getBoundingClientRect();if(t.clientX<=f.left||t.clientX>
8736=f.right||t.clientY<=f.top||t.clientY>=f.bottom){RE()?.showHoverTargetRectangle(f,"red"),a=!1;break}}}if(a===void 0)for(let{target:l,delta:u}of s.parentDeltaStack){if(!document.contains(l))continue;let c=l.getBoundingClientRect(),d=[c.left+u.x,c.top+u.y],f=[c.left+u.x+s.originSize.width,c.top+u.y+s.originSize.height],p=new DOMRect(d[0],d[1],s.originSize.width,s.originSize.height);RE()?.showHoverTargetRectangle(p,"blue"),t.clientX>d[0]&&t.clientX<f[0]&&t.clientY>d[1]&&t.clientY<f[1]?a=!0:(RE()?.showHoverTargetRectangle(c,"green"),a=!1);break}a===!1&&(s.undo(),o());return}else if(s.type==="ON_PRESS"){t.buttons===0&&(s.undo(),o());return}};o()})};return window.addEventListener("mousemove",e),i1("mousemove",e),window.addEventListener("mouseup",e),i1("mouseup",e),()=>{window.removeEventListener("mousemove",e),s1("mousemove",e),window.removeEventListener("mouseup",e),s1("mouseup",e)}},[])}var u1=!0;setTimeout(()=>{u1=!1},200);var jz=class{persistentTimeouts=new Map;nextId=0;getPersistentTimeouts(){return this.persistentTimeouts}registerPersistentTimeout(t,n,r,o){let i=`${t}:${n}`,s=this.persistentTimeouts.get(i);if(s){if(s.isMounted=!0,s.delayMilliseconds===o)return-1;clearTimeout(s.timeoutHandle),this.persistentTimeouts.delete(i)}let a=this.reserveTimeoutId(),l=Date.now(),u=setTimeout(()=>{r(),this.persistentTimeouts.delete(i)},o+(u1?200:0));return this.persistentTimeouts.set(i,{timeoutHandle:u,startTime:l,delayMilliseconds:o,callback:r,isMounted:!0}),a}markTimeoutsAsUnmounted(t){for(let[n,r]of this.persistentTimeouts)n.startsWith(`${t}:`)&&(r.isMounted=!1)}cleanupUnmountedTimeouts(t,n){if(n){let r=[];for(let o of n){let i=`${t}:${o}`,s=this.persistentTimeouts.get(i);s&&!s.isMounted&&(clearTimeout(s.timeoutHandle),r.push(i))}r.forEach(o=>this.persistentTimeouts.delete(o))}}clearTimeoutsByInteractionGuidsAndNodeId(t,n){let r=[];for(let o of n){let i=`${t}:${o}`,s=this.persistentTimeouts.get(i);s&&(clearTimeout(s.timeoutHandle),r.push(i))}r.length>0&&r.forEach(o=>this.persistentTimeouts.delete(o))}reserveTimeoutId(){return this.nextId++}},$z=new jz,Cs=$z;var Zz=(e,t=[],n,r)=>
8736{let o=t.find(i=>i.event?.interactionType==="ON_CLICK");if(!o?.actions){o&&o.actions;return}for(let i of o?.actions??[])if(i.connectionType==="URL"||i.connectionType==="INTERNAL_NODE"&&i.navigationType==="NAVIGATE")return Tf(e,i.connectionType,i.connectionURL,i.openUrlInNewTab,n,r);return(o?.actions?.length??0)>0?Jz(e,n):void 0};function gr(e=[],t,n,r){if(!t)return{};let o={},i=s=>!!s&&!!s.mouseCallback;if(i(t?.ON_CLICK)){let s=Ca(l=>{t?.ON_CLICK?.mouseCallback?.(l),l.preventDefault(),l.stopPropagation()},"onClick"),a=Zz(s,e,n,r);o={onClick:s,...o,...a}}return i(t?.MOUSE_ENTER)&&(o.onMouseEnter=Ca(s=>{t?.MOUSE_ENTER?.mouseCallback?.(s),ac(s),s.stopPropagation()},"onMouseEnter")),i(t?.MOUSE_LEAVE)&&(o.onMouseLeave=Ca(s=>{t?.MOUSE_LEAVE?.mouseCallback?.(s),ac(s),s.stopPropagation()},"onMouseLeave")),i(t?.MOUSE_DOWN||t?.ON_PRESS)&&(o.onMouseDown=Ca(s=>{t?.MOUSE_DOWN?.mouseCallback?.(s),t?.ON_PRESS?.mouseCallback?.(s),ac(s),s.preventDefault(),s.stopPropagation()},"onMouseDown")),i(t?.MOUSE_UP)&&(o.onMouseUp=Ca(s=>{t?.MOUSE_UP?.mouseCallback?.(s),ac(s),s.stopPropagation()},"onMouseUp")),i(t?.ON_HOVER)&&(o.onMouseMove=Ca(s=>{t?.ON_HOVER?.mouseCallback?.(s),ac(s),s.stopPropagation()},"onMouseMove")),o}var S_={};function c1(e,t){let n=[];return e?.AFTER_TIMEOUT&&e.AFTER_TIMEOUT.forEach(({callback:o,delayMilliseconds:i,interactionGuid:s,nodeId:a})=>{let l=Cs.reserveTimeoutId(),u=S_[t]??[];u.push({callback:o,delayMilliseconds:i,interactionGuid:s,nodeId:a}),S_[t]=u,n.push(l)}),n}function r1(e){let t=S_[e];t&&t.length&&(t.forEach(({callback:n,delayMilliseconds:r,interactionGuid:o,nodeId:i})=>{Cs.registerPersistentTimeout(i,o,n,r)}),delete S_[e])}function d1(e,t){let n=[],r=0;return t?.AFTER_TIMEOUT&&t.AFTER_TIMEOUT.forEach(({callback:i,delayMilliseconds:s,interactionGuid:a})=>{let l=Cs.registerPersistentTimeout(e,a,i,s);l!==-1?n.push(l):r++}),{timeoutIds:n,persistentTimeoutCount:r}}function o1(e,t){t&&Cs.clearTimeoutsByInteractionGuidsAndNodeId(e,t)}function Jz(e,t){return t?{role:"button",tabIndex:0,onClick:e,onKeyDown:r=>{(r.key==="Enter"||r.key===" ")&&e(r)}}:{}}function f1(e,t){let n=null;return(...r)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{e(...r)},t)}}var ta=v(W()),WA=v(W());var Zr=(e,t)=>{let n=e.scrollBehavior==="STICKY_SCROLLS"||e.scrollBehavior==="FIXED";return{[yt.ScrollParallax]:n||(t?.isInStickyOrFixedTree??!1)}};function Mn(e,t){return t.disableMarquee?!1:e.type==="FRAME"||e.type==="TEXT"||e.type==="REPEATER"?!!e.behaviors?.marquee:!1}function p1(e,t){return Mn(e,t)&&(e.type==="FRAME"||e.type==="REPEATER")?!e.accessibleLabel:!1}var re=function(e){return e.FIXED="FIXED",e.FILL_PARENT="FILL_PARENT",e.HUG_CONTENTS="HUG_CONTENTS",e}({});function It(e){return ol(e)&&e.layoutMode!=="NONE"}function $t(e,t){return t?(Ae(t.children.includes(e.id),"node is parent of other node"),It(t)&&e.layoutPositioning!=="ABSOLUTE"):!1}function ol(e){return e.type==="FRAME"||e.type==="SLOT"||e.type==="CODE_INSTANCE"||e.type==="CODE_LAYER"||e.type==="REPEATER"||e.type==="CMS_RICH_TEXT"}function R_(e){let{minWidth:t,minHeight:n,maxWidth:r,maxHeight:o}=e,i={};return n&&(i.minHeight=n),o&&(i.maxHeight=o),t&&(i.minWidth=t),r&&(i.maxWidth=r),i}function Yf(e,t){return t==="primary"?!!e.layoutGrow:e.layoutAlign==="STRETCH"}function AR(e,t){return t==="width"&&(e==="HORIZONTAL"||e==="GRID")||t==="height"&&e==="VERTICAL"?"primary":"counter"}function m1(e,t,n,r,o,i){let s=NR(t,o.rootNodeStyle);if(n&&$t(t,n)){if(Yf(t,AR(n.layoutMode,e)))return"FILL_PARENT"}else if(n===null&&(s==="independent"||i?.renderedByCode))return"FILL_PARENT";if(ol(t)&&qz(t)&&t.layoutMode!=="NONE"){let l=AR(t.layoutMode,e),u=l==="primary"?t.primaryAxisSizingMode:t.counterAxisSizingMode;switch(u){case"FIXED":return"FIXED";case"AUTO":case void 0:return!o.enforceLayoutInvariants&&r?.length&&r.every(c=>c.layoutPositioning!=="ABSOLUTE"&&Yf(c,l)||c.visible===!1)||r?.length&&r.every(c=>c.layoutPositioning==="ABSOLUTE"||c.visible===!1)?"FIXED":"HUG_CONTENTS";default:xe(u)}}return t.type==="TEXT"&&(t.textAutoResize==="WIDTH_AND_HEIGHT"||e==="height"&&t.textAutoResize==="HEIGHT")||t.type==="GROUP"?"HUG_CONTENTS":"FIXED"}function Mt(e,t,n,r,o){let i=m1("width",e,t,n,r,o);if(Mn(e,r)){let s=t&&Mt(t,null,n,r,o)==="HUG_CONTENTS";(i==="HUG_CONTENTS"||i==="FILL_PARENT"&&s)&&(i="FIXED")}return i}function un(e,t,n,r,o){return m1("height",e,t,n,r,o)}function qz(e){return It(e)?e.type==="CODE_INSTANCE"||e.type==="CODE_LAYER"||e.type==="REPEATER"||e.type==="CMS_RICH_TEXT"?!0:e.type==="FRAME"||e.type==="SLOT"?e.children.length>0:!1:!1}function lc(e,t){return!t||!It(t)||!$t(e,t)?!1:e.layoutAlign==="STRETCH"&&t.layoutMode==="HORIZONTAL"&&t.counterAxisSizingMode==="AUTO"&&t.counterAxisAlignItems!=="MIN"}function NR(e,t){return t==="component"&&e.type==="FRAME"&&e.isSlotContent?"independent":t}function A_(e,t){let n=t?.layoutMode;return n==="HORIZONTAL"||n==="VERTICAL"?Yf(e,AR(n,"width")):!1}var Ps="--transform-inner-width",Ds="--transform-inner-height";function Qz(e){let t=e[0][0],n=e[1][0],r=e[0][1],o=e[1][1],i=Math.atan2(n,t)*(180/Math.PI);return x(i)%90===0&&Ve(t*r+n*o,0)}function il(e,t){return t.useCssRotationConstraints||Qz(e)}
8736function vs(e,t,n){let r=xt(Wt(n?.group?.relativeTransform,e.relativeTransform));return t!==null&&_1(r)}function N_(e){let n=(Math.atan2(e[1][0],e[0][0])*180/Math.PI%360+360)%360;return n>=45&&n<135||n>=225&&n<315}function E1(e,t,n,r,o,i,s){let a=xt(Wt(o?.group?.relativeTransform,e.relativeTransform));if(t==null||!_1(a))return{};let l=a,u=Mt(e,t,n,r,o),c=un(e,t,n,r,o),d={};if(d.transform=T1(l[0][0],l[1][0],l[0][1],l[1][1],s,i,r),Ir(e,t)){(u===re.HUG_CONTENTS||c===re.HUG_CONTENTS)&&console.warn("Transformed sized determined by both constraints and hug not yet supported.");let p=il(a,r)&&!i?e6("100cqw","100cqh",a,e.size,e.absoluteBoundingBox,r):y_(e.absoluteBoundingBox.width,e.absoluteBoundingBox.height,a,e.size,e.absoluteBoundingBox,r,i,s);d.width=p.width,d.height=p.height,d.transform=p.transform}else{let f=N_(a);u===re.FILL_PARENT&&(f?d.height="100cqw":d.width="100%"),c===re.FILL_PARENT&&(f?d.width="100cqh":d.height="100%")}return d}function y_(e,t,n,r,o,i,s,a){let l=Ro(0,0,n),u=Ro(0,r.y||1,n),c=Ro(r.x||1,0,n),d={x:u.x-l.x,y:u.y-l.y},f={x:c.x-l.x,y:c.y-l.y},p=o.width?e/o.width:1,_=o.height?t/o.height:1,T=(A,R)=>Math.sqrt(A*A+R*R),h=T(p*f.x,_*f.y),m=T(p*d.x,_*d.y),E=p*f.x/h,O=_*f.y/h,g=p*d.x/m,I=_*d.y/m,S=T1(E,O,g,I,a,s,i);return{width:x(h),height:x(m),transform:S}}function e6(e,t,n,r,o,i){let s=Ro(0,0,n),a=Ro(0,r.y||1,n),l=Ro(r.x||1,0,n),u={x:a.x-s.x,y:a.y-s.y},c={x:l.x-s.x,y:l.y-s.y},d=o.width?Y.cssLength(e).multiply(1/o.width):Y.px(0),f=o.height?Y.cssLength(t).multiply(1/o.height):Y.px(0),p,_,T=d.multiply(c.x),h=f.multiply(c.y),m=d.multiply(u.x),E=f.multiply(u.y);c.y===0?p=d.multiply(Math.abs(c.x)):c.x===0?p=f.multiply(Math.abs(c.y)):p=Y.hypot(T,h),u.y===0?_=d.multiply(Math.abs(u.x)):u.x===0?_=f.multiply(Math.abs(u.y)):_=Y.hypot(m,E);let g=c.x*u.y-c.y*u.x<0,I=g?-c.x:c.x,S=g?-c.y:c.y,A=Math.atan2(S,I)*(180/Math.PI),R=x(A,2),y=Math.sqrt(c.x*c.x+c.y*c.y),b=Math.sqrt(u.x*u.x+u.y*u.y),L=c.x*u.x+c.y*u.y,F=90-Math.acos(L/(y*b))*(180/Math.PI),H=x(F,2),N=R%90===0,K=H!==0||!N,C={forTailwind:i.optimizeForTailwindConversion};if(K){let P=Q.combineWithExplicitOrder(R!==0?Q.rotate(R):void 0,H!==0?Q.skewX(H):void 0,g?Q.scaleX(-1):void 0),z=p.toString(C),Ee=_.toString(C);return{width:z,height:Ee,transform:P}}let M=Q.combineWithDefaultOrder(R!==0?Q.rotate(R):void 0,g?Q.scaleX(-1):void 0);return{width:p.toString(C),height:_.toString(C),transform:M}}function _1(e){return!Ve(e[0][0],1,rn)||!Ve(e[1][0],0,rn)||!Ve(e[0][1],0,rn)||!Ve(e[1][1],1,rn)}function uc(e){return!Ve(Math.abs(e[0][0]),1,rn)||!Ve(Math.abs(e[1][0]),0,rn)||!Ve(Math.abs(e[0][1]),0,rn)||!Ve(Math.abs(e[1][1]),1,rn)}function b_(e){let t=Math.abs(e[0][0]),n=Math.abs(e[0][1]);if(!(Ve(t,1,rn)&&Ve(n,0,rn)))return Y.px(1).multiply(Y.var(Ds).multiply(n).add(Y.var(Ps).multiply(t)))}function L_(e){let t=Math.abs(e[1][0]),n=Math.abs(e[1][1]);if(!(Ve(n,1,rn)&&Ve(t,0,rn)))return Y.px(1).multiply(Y.var(Ps).multiply(t).add(Y.var(Ds).multiply(n)))}function C_(e,t){let n=Math.abs(e[0][0]),r=Math.abs(e[0][1]);if(!(Ve(n,1,rn)&&Ve(r,0,rn)))return Y.px(x(t.y*r+t.x*n))}function P_(e,t){let n=Math.abs(e[1][0]),r=Math.abs(e[1][1]);if(!(Ve(r,1,rn)&&Ve(n,0,rn)))return Y.px(x(t.x*n+t.y*r))}function Ir(e,t){return D_(e,t)||v_(e,t)}function D_(e,t){let n=e.constraints;return $t(e,t)?!1:n?.vertical===Er.TOP_BOTTOM||n?.vertical===Er.SCALE}function v_(e,t){let n=e.constraints;return $t(e,t)?!1:n?.horizontal===Kn.LEFT_RIGHT||n?.horizontal===Kn.SCALE}function T1(e,t,n,r,o,i,s){let{optimizeForTailwindConversion:a}=s;if(!(i||a))return`matrix(${e}, ${t}, ${n}, ${r}, 0, 0)`;let u=Tt(e),c=Tt(t),d=Tt(n),f=Tt(r),p=Math.atan2(c,u)*(180/Math.PI),_=p*Math.PI/180,T=Math.cos(_),h=Math.sin(_),m=u*f-c*d,E=Math.sqrt(u*u+c*c),O=m/E,g=T,I=-h,S=h,A=T,R=(u*g+c*S)/E,y=(u*I+c*A)/E,b=(d*g+f*S)/O,L=(d*I+f*A)/O,D=Math.atan2(b,L)*(180/Math.PI),F=Math.atan2(y,R)*(180/Math.PI),H=Number(p.toFixed(2)),N=Number(D.toFixed(2)),K=Number(F.toFixed(2)),C=Number(E.toFixed(2)),M=Number(O.toFixed(2));if(i&&o){if(o.current!==H){let P=yR(o.current,H);H=o.current+P}o.current=H}return Q.combineWithDefaultOrder(i||H!==0?Q.rotate(H):void 0,i||N!==0?Q.skewX(N):void 0,i||K!==0?Q.skewY(K):void 0,i||C!==1?Q.scaleX(C):void 0,i||M!==1?Q.scaleY(M):void 0)}function yR(e,t){let n=(e%360+360)%360,r=(t%360+360)%360,o=r-n;return o>180?o-=360:o<-180&&(o+=360),Math.abs(o)===180?n===0&&r===180?-180:n===180&&r===0||e<t?180:-180:o}function M_(e){let{node:t,parent:n,context:r,renderOptions:o}=e,i={...R_(t)},{width:s,height:a,top:l,left:u,bottom:c,right:d,transform:f,aspectRatio:p}=o6(e),_={forTailwind:o.optimizeForTailwindConversion};if(s!==void 0&&(i.width=s.toStyleValue(_)),a!==void 0&&(i.height=a.toStyleValue(_)),f!==void 0&&(i.transform=f),p!==void 0&&(i.aspectRatio=p),r?.group?.withinAutoLayout){if(i.gridColumn=1,i.gridRow=1,i.position="relative",u&&(i.marginLeft=u.toStyleValue(_)),r?.group?.isHorizontalFillParent){let T=Y.percent(100);u&&(T=T.subtract(u)),d&&(T=T.subtract(d)),i.width=T.toStyleValue(_)}else d&&(i.marginRight=d);l&&(i.marginTop=l.toStyleValue(_)),c&&(i.marginBottom=c)}
8736else i.position=n6(t,n),u!==void 0&&(i.left=u.toStyleValue(_)),d!==void 0&&(i.right=d.toStyleValue(_)),l!==void 0&&(i.top=l.toStyleValue(_)),c!==void 0&&(i.bottom=c.toStyleValue(_));return Kf(t,n)&&(i.zIndex=9999),i}function Kf(e,t){return!("scrollBehavior"in e)||$t(e,t)?!1:Boolean(t?.type==="FRAME"&&t.isBreakpointFrame)&&e.scrollBehavior==="FIXED"}function n6(e,t){return e.scrollBehavior==="STICKY_SCROLLS"?"sticky":Kf(e,t)?"fixed":"absolute"}function r6(e,t){if(t?.group?.withinAutoLayout)return{horizontal:t?.group?.isHorizontalFillParent?Kn.SCALE:Kn.LEFT,vertical:Er.TOP};let{horizontal:n=Kn.LEFT,vertical:r=Er.TOP}=e.constraints??{};return{horizontal:n,vertical:r}}function k_(e,t){let{horizontal:n,vertical:r}=r6(e,t),o=t?.borderDisplacement??{top:0,right:0,bottom:0,left:0},i=e.constraintValues?.left??{pixelOffset:0,sizeFraction:0},s=e.constraintValues?.right??{pixelOffset:0,sizeFraction:1},a=e.constraintValues?.top??{pixelOffset:0,sizeFraction:0},l=e.constraintValues?.bottom??{pixelOffset:0,sizeFraction:1};if(t?.groupFrameOffset){let{x:u,y:c,frameWidth:d,frameHeight:f,groupWidth:p,groupHeight:_}=t.groupFrameOffset,T=d-p,h=f-_;i={pixelOffset:i.pixelOffset-u+i.sizeFraction*T,sizeFraction:i.sizeFraction},s={pixelOffset:s.pixelOffset-u+s.sizeFraction*T,sizeFraction:s.sizeFraction},a={pixelOffset:a.pixelOffset-c+a.sizeFraction*h,sizeFraction:a.sizeFraction},l={pixelOffset:l.pixelOffset-c+l.sizeFraction*h,sizeFraction:l.sizeFraction}}return{horizontal:{type:n,left:{pixelOffset:i.pixelOffset-o.left,sizeFraction:i.sizeFraction},right:{pixelOffset:s.pixelOffset+o.right,sizeFraction:s.sizeFraction}},vertical:{type:r,top:{pixelOffset:a.pixelOffset-o.top,sizeFraction:a.sizeFraction},bottom:{pixelOffset:l.pixelOffset+o.bottom,sizeFraction:l.sizeFraction}}}}function o6({node:e,parent:t,children:n,shouldOutputVariables:r,codeSyntaxLanguage:o,context:i,renderOptions:s,precomputeTransforms:a,ignoreConstraints:l}){let{horizontal:u,vertical:c}=k_(e,i),d=xt(Wt(i?.group?.relativeTransform,e.relativeTransform)),f=cc(d,e.size),p=Ir(e,t),_=!p&&uc(d)?a?C_(d,e.size):b_(d):void 0,T=!p&&uc(d)?a?P_(d,e.size):L_(d):void 0,h=!i?.group?.withinAutoLayout,{transform:m,...E}=s6({nodeWidth:f.width,bboxWidth:_,constraintBox:u,borderDisplacement:i?.borderDisplacement,ignoreConstraints:l,useTransform:h,resizing:Mt(e,t,n,s,i),textAlign:e.type==="TEXT"?e.textAlignHorizontal:void 0}),{transform:O,...g}=a6({nodeHeight:f.height,bboxHeight:T,constraintBox:c,borderDisplacement:i?.borderDisplacement,ignoreConstraints:l,useTransform:h,resizing:un(e,t,n,s,i),textAlign:e.type==="TEXT"?e.textAlignVertical:void 0}),I;if(e.targetAspectRatio&&i6(e,t)){let S=uc(d)?`${f.width}/${f.height}`:`${e.targetAspectRatio.x}/${e.targetAspectRatio.y}`;D_(e,t)&&(I=S,E.width=void 0),v_(e,t)&&(I=S,g.height=void 0)}if(r){let S={forTailwind:s.optimizeForTailwindConversion};if(E.width){let A=pf(o&&e.boundVariables?.size?.x?.resolvedCodeSyntax?.[o],e.boundVariables?.size?.x?.resolvedName);if(A){let R=E.width.toString(S);E.width=Y.var(A,R)}}if(g.height){let A=pf(o&&e.boundVariables?.size?.y?.resolvedCodeSyntax?.[o],e.boundVariables?.size?.y?.resolvedName);if(A){let R=g.height.toString(S);g.height=Y.var(A,R)}}}return{...E,...g,aspectRatio:I,transform:m||O?Q.combineWithDefaultOrder(m,O):void 0}}function i6(e,t){let n=D_(e,t),r=v_(e,t);return!n&&!r?!0:n!==r}function x_(e,t,n=!1){return kt(e.pixelOffset,e.sizeFraction,t,n)}function kt(e,t,n,r=!1){if(t===0&&!r)return Y.px(x(e,2));if(t===1&&r){let o=x(e,2);return o===0?Y.px(0):Y.px(-o)}if(r){let o=x(100-t*100,2),i=(1-t)*n,s=x(e-i,2);return s===0?o===0?Y.px(0):Y.percent(o):Y.percent(o).subtract(Y.px(s))}else{let o=x(t*100,2),i=t*n,s=x(e+i,2);return s===0?o===0?Y.px(0):Y.percent(o):Y.percent(o).add(Y.px(s))}}function s6({nodeWidth:e,bboxWidth:t,constraintBox:n,borderDisplacement:r,ignoreConstraints:o,resizing:i,textAlign:s,useTransform:a}){let l,u,c,d,f=t??(i===re.FIXED?Y.px(x(e)):void 0),p=r?r.left+r.right:0;if(o)l=f;else if(n.type==="SCALE"||n.type==="LEFT_RIGHT")u=x_(n.left,p),c=x_(n.right,p,!0);else if(n.type==="RIGHT"){l=f;let{pixelOffset:_,sizeFraction:T}=n.right;switch(s){case"CENTER":{c=kt(a?_-e/2:_,T,p,!0),d=a?Q.translateX("50%"):void 0;break}case void 0:case"RIGHT":{c=kt(_,T,p,!0);break}case"LEFT":case"JUSTIFIED":{c=kt(a?_-e:_,T,p,!0),d=a?Q.translateX("100%"):void 0;break}default:xe(s)}}else if(n.type==="CENTER"){l=f;let{pixelOffset:_,sizeFraction:T}=n.left,h=n.right.pixelOffset-_-p;switch(s){case void 0:case"CENTER":{u=kt(a?_+h/2:_,T,p),d=a?Q.translateX("-50%"):void 0;break}case"LEFT":case"JUSTIFIED":{u=kt(_,T,p);break}case"RIGHT":{u=kt(a?_+h:_,T,p),d=a?Q.translateX("-100%"):void 0;break}default:xe(s)}}else if(n.type==="LEFT"){l=f;let{pixelOffset:_,sizeFraction:T}=n.left;switch(s){case"CENTER":{u=kt(a?_+e/2:_,T,p),d=a?Q.translateX("-50%"):void 0;break}case"LEFT":case"JUSTIFIED":case void 0:{u=kt(_,T,p);break}case"RIGHT":{u=kt(a?_+e:_,T,p),d=a?Q.translateX("-100%"):void 0;break}default:xe(s)}}else xe(n);return{width:l,left:u,right:c,transform:d}}function a6({nodeHeight:e,bboxHeight:t,constraintBox:n,borderDisplacement:r,ignoreConstraints:o,useTransform:i,resizing:s,textAlign:a}){let l,u,c,d,f=t??(s===re.FIXED?Y.px(x(e)):void 0),p=r?r.top+r.bottom:0;if(o)l=f;else if(n.type==="SCALE"||n.type==="TOP_BOTTOM")u=x_(n.top,p),c=x_(n.bottom,p,!0);else if(n.type==="BOTTOM"){l=f;let{pixelOffset:_,sizeFraction:T}=n.bottom;switch(a){case"CENTER":{c=kt(i?_-e/2:_,T,p,!0),d=i?Q.translateY("50%"):void 0;break}case void 0:case"BOTTOM":{c=kt(_,T,p,!0);break}case"TOP":{c=kt(i?_-e:_,T,p,!0),d=i?Q.translateY("100%"):void 0;break}default:xe(a)}}else if(n.type==="CENTER"){l=f;let{pixelOffset:_,sizeFraction:T}=n.top,h=n.bottom.pixelOffset-_-p;switch(a){case void 0:case"CENTER":{u=kt(i?_+h/2:_,T,p),d=i?Q.translateY("-50%"):void 0;break}case"BOTTOM":{u=kt(i?_+h:_,T,p),d=i?Q.translateY("-100%"):void 0;break}case"TOP":{u=kt(_,T,p);break}default:xe(a)}}else if(n.type==="TOP"){l=f;let{pixelOffset:_,sizeFraction:T}=n.top;switch(a){case"CENTER":{u=kt(i?_+e/2:_,T,p),d=i?Q.translateY("-50%"):void 0;break}case"BOTTOM":{u=kt(i?_+e:_,T,p),d=i?Q.translateY("-100%"):void 0;break}case"TOP":case void 0:{u=kt(_,T,p);break}default:xe(a)}}else xe(n);return{height:l,top:u,bottom:c,transform:d}}
8736function Ro(e,t,n){return{x:n[0][0]*e+n[0][1]*t+n[0][2]*1,y:n[1][0]*e+n[1][1]*t+n[1][2]*1}}function cc(e,t){let n=Ro(0,0,e),r=Ro(t.x,0,e),o=Ro(0,t.y,e),i=Ro(t.x,t.y,e),s=Math.min(n.x,r.x,o.x,i.x),a=Math.max(n.x,r.x,o.x,i.x),l=Math.min(n.y,r.y,o.y,i.y),u=Math.max(n.y,r.y,o.y,i.y),c=a-s,d=u-l,f=Tt(s),p=Tt(l),_=Tt(c),T=Tt(d);return{x:f,y:p,width:_,height:T}}var l6={GRID:void 0,NONE:void 0,HORIZONTAL:void 0,VERTICAL:"column"},G_={MIN:"flex-start",CENTER:"center",MAX:"flex-end",SPACE_BETWEEN:"space-between",SPACE_EVENLY:"space-evenly",SPACE_AROUND:"space-around",BASELINE:"baseline",STRETCH:"stretch"};function u6(e){return["SPACE_BETWEEN","SPACE_EVENLY","SPACE_AROUND"].includes(e)}function c6(e){return e.type==="TEXT"&&e.textAutoResize!=="WIDTH_AND_HEIGHT"}function h1(e,t=0){let n=x(t),r=n===0?"0":`${n}px`;return`${x(e)} 0 ${r}`}function O1(e,t,n,r,o,i,s){let a=R_(e);if(It(t),!t||!It(t))return a;let l=Mt(e,t,n,r,o),u=un(e,t,n,r,o);if(vs(e,t,o)){let _={forTailwind:r.optimizeForTailwindConversion},T=xt(Wt(o?.group?.relativeTransform,e.relativeTransform));if(l!==re.FILL_PARENT){let h=i?C_(T,e.size):b_(T);a.width=h?.toStyleValue(_)}if(u!==re.FILL_PARENT){let h=i?P_(T,e.size):L_(T);a.height=h?.toStyleValue(_)}}else l===re.FIXED&&(e.targetAspectRatio&&u!==re.FIXED?a.aspectRatio=`${e.targetAspectRatio.x}/${e.targetAspectRatio.y}`:a.width=x(e.size.x+kE(e,t))),u===re.FIXED&&(e.targetAspectRatio&&l!==re.FIXED?a.aspectRatio=`${e.targetAspectRatio.x}/${e.targetAspectRatio.y}`:a.height=x(e.size.y+GE(e,t)));a.position="relative",e.scrollBehavior==="STICKY_SCROLLS"&&(a.position="sticky",a.top=0),a.flexShrink=0;let c=t.layoutMode,d=c==="HORIZONTAL",f=c==="VERTICAL",p=c==="GRID"&&t.type!=="SLOT";if(d&&l===re.FILL_PARENT||f&&u===re.FILL_PARENT?(a.flex=h1(e.layoutGrow,0),delete a.flexShrink,d&&!e.minWidth&&(a.minWidth=1),f&&!e.minHeight&&(a.minHeight=1)):p&&(e.gridColumnAnchorIndex!==void 0&&e.gridRowAnchorIndex,t.gridItemsPositioning==="ROW_AUTO_FLOW"?(e.gridColumnSpan&&e.gridColumnSpan>1&&(a.gridColumn=`span ${e.gridColumnSpan}`),e.gridRowSpan&&e.gridRowSpan>1&&(a.gridRow=`span ${e.gridRowSpan}`)):(a.gridColumn=e.gridColumnSpan?`${e.gridColumnAnchorIndex+1}/span ${e.gridColumnSpan}`:e.gridColumnAnchorIndex+1,a.gridRow=e.gridRowSpan?`${e.gridRowAnchorIndex+1}/span ${e.gridRowSpan}`:e.gridRowAnchorIndex+1),(e.gridChildHorizontalAlign&&l===re.FIXED||l!==re.FIXED)&&(l===re.FILL_PARENT?a.justifySelf="stretch":a.justifySelf=G_[e.gridChildHorizontalAlign||"MIN"]),(e.gridChildVerticalAlign&&u===re.FIXED||u!==re.FIXED)&&(u===re.FILL_PARENT?a.alignSelf="stretch":a.alignSelf=G_[e.gridChildVerticalAlign||"MIN"])),(d&&u===re.FILL_PARENT||f&&l===re.FILL_PARENT)&&(f?c6(e)&&!o?.allChildrenAreFillWidth?(a.width="min-content",a.minWidth="100%"):a.width="100%":e.size.y===0&&(e.type==="SVG"||e.type==="IMAGE")&&!s?(a.height="0",a.alignSelf="center"):t.counterAxisSizingMode!=="FIXED"&&!lc(e,t)?a.alignSelf="stretch":a.height="100%"),ol(t),ol(t)&&o?.negativeItemSpacing){let _=t.layoutMode==="HORIZONTAL"?"marginRight":"marginBottom";a[_]=Y.px(o.negativeItemSpacing)}return a}function g1(e,t){if(!It(t)||!jr(t)||!e.layoutGrow||t.layoutMode!=="HORIZONTAL"&&t.layoutMode!=="VERTICAL")return;let n=t.layoutMode==="HORIZONTAL",r=0;if(It(e)&&(r+=n?(e.paddingLeft||0)+(e.paddingRight||0):(e.paddingTop||0)+(e.paddingBottom||0)),"strokeAlign"in e&&e.strokeAlign==="INSIDE"&&$r(e)){let o=Df(e);r+=n?o.left+o.right:o.top+o.bottom}return r>0?h1(e.layoutGrow,r):void 0}var I1=(e,t,n,r,o)=>{if(e.type==="RECTANGLE"||n.length<=1||e.layoutMode==="NONE")return null;if(e.primaryAxisAlignItems==="SPACE_EVENLY_LEGACY"&&e.computedNegativeItemSpacing!=null&&e.computedNegativeItemSpacing<0)return x(e.computedNegativeItemSpacing);if(e.itemSpacing>=0)return x(e.itemSpacing);let i=-1/0,s=n.filter(a=>!Yf(a,"primary")&&a.layoutPositioning!=="ABSOLUTE");if(e.layoutMode==="HORIZONTAL")if(s.length>0){let a=s.map(l=>cc(l.relativeTransform,l.size).width);i=-Math.min(...a)}else Mt(e,t,n,r,o)!==re.FILL_PARENT&&(i=-e.size.x);else if(s.length>0){let a=s.map(l=>cc(l.relativeTransform,l.size).height);i=-Math.min(...a)}else un(e,t,n,r,o)!==re.FILL_PARENT&&(i=-e.size.y);return x(Math.max(i,e.itemSpacing))};function bR({node:e,parent:t,children:n,itemSpacing:r,shouldOutputVariables:o,codeSyntaxLanguage:i,renderOptions:s,context:a}){let l={},{layoutMode:u,counterAxisAlignItems:c,layoutWrap:d,counterAxisSpacing:f=0}=e;if(f6(l,e,o,i),u==="GRID"&&e.type!=="SLOT")l.display=Mt(e,t,n,s,a)===re.HUG_CONTENTS?"inline-grid":"grid",e.gridColumnsSizing&&(l.gridTemplateColumns=e.gridColumnsSizing),e.gridRowsSizing&&(l.gridTemplateRows=e.gridRowsSizing),e.gridColumnGap&&(l.columnGap=e.gridColumnGap
8736),e.gridRowGap&&(l.rowGap=e.gridRowGap),e.gridItemsPositioning==="ROW_AUTO_FLOW"&&(l.gridAutoFlow="row");else{l.display="flex";let p=p6(e,n,s,a);l.flexDirection=l6[u],e.itemReverseZIndex&&(l.isolation="isolate");let _=E6(e,n);if(_&&_!=="MIN"&&(l.justifyContent=G_[_]),c&&(l.alignItems=G_[c]),l.alignContent=p,d==="WRAP"&&(l.flexWrap="wrap"),!u6(_)&&r!=null?!d||d==="NO_WRAP"?r>0&&(l.gap=r):(r===f||f===void 0)&&p!=="space-between"?l.gap=r:p==="space-between"?l.columnGap=r:r<0?l.rowGap=f:l.gap=f===r?f:`${f}px ${r}px`:d==="WRAP"&&p!=="space-between"&&f&&(l.rowGap=f),o){let T=l.gap??(typeof e.itemSpacing=="number"&&e.itemSpacing>0?e.itemSpacing:0),h=le(i&&e.boundVariables?.itemSpacing?.resolvedCodeSyntax?.[i],e.boundVariables?.itemSpacing?.resolvedName,typeof T=="number"?`${T}px`:T);h&&(l.gap=h)}}return l}function d6(e,t,n,r){return t?t.every(o=>m6(o,e,t,n,r)===re.FILL_PARENT):!0}function f6(e,t,n,r){let o=It(t)&&t.strokesIncludedInLayout&&!jr(t)&&t.type!=="CODE_INSTANCE"&&t.type!=="CODE_LAYER"?FE(t):{top:0,right:0,bottom:0,left:0},i=(c,d)=>{let f=r&&t.boundVariables?.[d]?.resolvedCodeSyntax?.[r];return n?le(f,t.boundVariables?.[d]?.resolvedName,`${c}px`)??c:c},s=i(x((t.paddingTop||0)+o.top),"paddingTop"),a=i(x((t.paddingBottom||0)+o.bottom),"paddingBottom"),l=i(x((t.paddingLeft||0)+o.left),"paddingLeft"),u=i(x((t.paddingRight||0)+o.right),"paddingRight");s!==0&&(e.paddingTop=s),a!==0&&(e.paddingBottom=a),l!==0&&(e.paddingLeft=l),u!==0&&(e.paddingRight=u)}function p6(e,t,n,r){if(e.counterAxisAlignContent==="SPACE_BETWEEN")return"space-between";if(e.layoutWrap==="WRAP"&&!d6(e,t,n,r)){let o=e.counterAxisAlignItems||"MIN";return LR(o)}return"stretch"}function LR(e){switch(e){case"MIN":return"flex-start";case"CENTER":return"center";case"MAX":return"flex-end";case"BASELINE":return"baseline"}}function m6(e,t,n,r,o){return t&&It(t)&&t.layoutMode==="VERTICAL"?Mt(e,t,n,r,o):un(e,t,n,r,o)}function E6(e,t){return e.primaryAxisAlignItems==="SPACE_EVENLY_LEGACY"?t.filter(r=>r.layoutPositioning!=="ABSOLUTE"&&r.visible).length===1?"CENTER":"SPACE_BETWEEN":e.primaryAxisAlignItems}function S1(e,t){return e.scene3d?.preserve3d===!1?!1:(t??[]).some(n=>n.contains3d===!0)}function sl(e){return e.contains3d===!0}var PR={top:0,left:void 0,right:void 0,bottom:void 0,pointerEvents:"auto"};function Xn({node:e,parent:t,context:n,children:r,zIndex:o,itemSpacing:i,codeSyntaxLanguage:s,options:a={isFlattened:!1,canAnimate:!1,previousRotation:void 0},renderOptions:l}){let{previewingCodeBehavior:u,optimizeForTailwindConversion:c,rootNodeStyle:d}=l,f=a.precomputeTransforms??!1,p=NR(e,d),_=a.shouldOutputVariables??!1,T=e.relativeTransform!=null&&N_(e.relativeTransform)&&(Mt(e,t,r,l,n)===re.FILL_PARENT||un(e,t,r,l,n)===re.FILL_PARENT),h;if($t(e,t))h=O1(e,t,r,l,n,f,T);else if(t===null)if(n?.renderedByCode||u)h={...M_({node:e,parent:t,children:r,shouldOutputVariables:_,codeSyntaxLanguage:s,renderOptions:l,context:n,precomputeTransforms:f}),position:"relative",top:void 0,right:void 0,bottom:void 0,left:void 0};else if(p==="independent")h=T6(e);else if(p==="component"){let R=M_({node:e,parent:t,children:r,shouldOutputVariables:_,codeSyntaxLanguage:s,renderOptions:l,context:n,precomputeTransforms:f,ignoreConstraints:!0}),{top:y,left:b,right:L,bottom:D,...F}=R;h={...F,position:"relative"}}else h=_6(e,r,l,n);else h=M_({node:e,parent:t,children:r,shouldOutputVariables:_,codeSyntaxLanguage:s,renderOptions:l,context:n,precomputeTransforms:f});h.mixBlendMode=n?.group?.mixBlendMode??zu(e.blendMode),T&&(h.containerType="size"),e.relativeTransform!=null&&il(e.relativeTransform,l)&&!a?.canAnimate&&vs(e,t,n)&&Ir(e,t)&&(h.containerType="size");let m=E1(e,t,r,l,n,a?.canAnimate,a?.previousRotation),E;!a.isFlattened&&It(e)&&(rD(e)||t&&jr(t)&&(e.paddingLeft>0||e.paddingRight>0||e.paddingTop>0||e.paddingBottom>0))?E=bR({node:e,parent:t,children:r,itemSpacing:i,shouldOutputVariables:_,codeSyntaxLanguage:s,renderOptions:l,context:n}):!a.isFlattened&&(e.type==="CODE_INSTANCE"||e.type==="CODE_LAYER")&&It(e)?E=bR({node:e,parent:t,children:r,itemSpacing:e.itemSpacing,shouldOutputVariables:_,codeSyntaxLanguage:s,renderOptions:l,context:n}):e.type==="GROUP"?(E=h6(e,t,n),E.display==="inline-grid"&&(h.lineHeight="0")):E={display:"block"};let g=h.position==="sticky"&&!$t(e,t),I;
8736if(g){let R=n?.borderDisplacement?.bottom??0,y;t?.size.y&&typeof h.top=="number"?y=t.size.y-h.top-R:h.top!==void 0?c?y=`calc(100%-${h.top}+${R}px)`:y=`calc(100% - ${h.top} + ${R}px)`:t?.size.y&&(y=t.size.y-R),I={position:"absolute",top:h.top,left:h.left,bottom:n?.borderDisplacement?.bottom?-n.borderDisplacement.bottom:0,right:h.right,height:y,pointerEvents:"none"},h={...h,...PR}}let S={};if(l.transform3dEnabled){if(e.transform3d){let R=qC(e.transform3d);R.length>0&&(S.transform=R,e.transformOrigin&&!zI(e.transformOrigin)&&(S.transformOrigin=JC(e.transformOrigin))),e.transform3d.backfaceHidden&&(S.backfaceVisibility="hidden")}e.scene3d&&e.scene3d.perspective>0&&(S.perspective=`${e.scene3d.perspective}px`,e.scene3d.perspectiveOrigin&&!zI(e.scene3d.perspectiveOrigin)&&(S.perspectiveOrigin=`${mf(e.scene3d.perspectiveOrigin.x)} ${mf(e.scene3d.perspectiveOrigin.y)}`)),S1(e,r)&&(S.transformStyle="preserve-3d",E.transformStyle="preserve-3d"),I&&sl(e)&&(I.transformStyle="preserve-3d")}let A={inner:E,outer:h,stickyWrapper:I,transform:m,transform3d:S};return O6(A,o),A}function _6(e,t,n,r){let o=un(e,null,t,n,r)===re.HUG_CONTENTS?void 0:e.size.y,s=It(e)?void 0:e.size.x;return{position:"relative",minWidth:"var(--content-min-width)",width:"100%",height:un(e,null,t,n,r)===re.HUG_CONTENTS?void 0:"var(--content-min-height)","--content-min-width":s?`max(100%, ${s}px)`:"100%","--content-min-height":o?`max(var(--100dvh), ${o}px)`:"var(--100dvh)"}}function T6(e){return{position:"relative",width:"100%",height:"100%"}}function h6(e,t,n){let r={};if($t(e,t)||n?.group?.withinAutoLayout){let o=A_(e,t)||Boolean(n?.group?.isHorizontalFillParent);r.display="inline-grid",o||(r.gridTemplateColumns="max-content"),r.gridTemplateRows="max-content",r.placeItems="start"}else r.display="contents";return r}function O6(e,t){t!==void 0&&(e.outer.zIndex=t)}function dc(e,t,n,r){if(n?.renderedByCode)return{};if(t&&"clipsContent"in e&&e.clipsContent===!1)return{};let o=Mn(e,r.renderOptions),i=e.overflowDirection??"NONE",s=!o&&(i==="HORIZONTAL_SCROLLING"||i==="HORIZONTAL_AND_VERTICAL_SCROLLING"),a=!o&&(i==="VERTICAL_SCROLLING"||i==="HORIZONTAL_AND_VERTICAL_SCROLLING"),l=s?"auto":"clip";return t?{overflowX:l,overflowY:a?"auto":"clip"}:r.withBaseStyles?{overflowX:s?"auto":"hidden"}:{}}function R1(e,t,n,r,o,i,s){let{shouldOutputVariables:a}=s,{cursor:l,opacity:u,...c}=n,d,f,p,_;if(e.effects&&!o){let{boxShadow:D,filter:F}=hD(e,e.effects,s);d=D?{boxShadow:D}:void 0,_=F?{filter:F}:void 0,f=_S(e.effects,s)}else o&&(p={filter:`url(${o})`});let h=$r(e)||r?sv(e,i,r,s):void 0,m={...d,...h},E=i?{...m,...BE(e,t),position:"absolute",pointerEvents:"none"}:void 0,O=DS(e),g={borderTopLeftRadius:O.topLeft,borderTopRightRadius:O.topRight,borderBottomRightRadius:O.bottomRight,borderBottomLeftRadius:O.bottomLeft},{borderTopLeftRadius:I,borderTopRightRadius:S,borderBottomRightRadius:A,borderBottomLeftRadius:R}=a?vS(g,e,s):g,y={borderTopLeftRadius:I,borderTopRightRadius:S,borderBottomRightRadius:A,borderBottomLeftRadius:R,cursor:l,opacity:u,..._,...i?{}:m},b={...c,...p},L={...f,borderTopLeftRadius:I,borderTopRightRadius:S,borderBottomRightRadius:A,borderBottomLeftRadius:R};return{containerStyles:y,clipperStyles:b,borderStyles:E,sharedBackgroundStyles:L,renderOptions:s}}function CR(e,t,n,r){let o=r?kE(t,n):0,i=Math.min(t.maxWidth||Number.POSITIVE_INFINITY,t.size.x);e.width=x(i+o)}function A1({node:e,parent:t,context:n,children:r,renderOptions:o}){let i={};if(Mn(e,o)&&Mt(e,t,r,o,n)===re.FIXED&&!Ir(e,t)){let s=$t(e,t);CR(i,e,t,s)}return i}function jn({node:e,parent:t,children:n,context:r,renderOptions:o}){let i={position:"relative"},{rootNodeStyle:s,previewingCodeBehavior:a}=o;if(!t&&!s&&!a)return i.width="100%",i.height="100%",i.minWidth="var(--content-min-width)",i.minHeight="var(--content-min-height)",i;let l=Mt(e,t,n,o,r);l!==re.HUG_CONTENTS&&(i.width="100%");let u=un(e,t,n,o,r);u!==re.HUG_CONTENTS&&(i.height="100%");let c=$t(e,t),d=()=>{let f=c?GE(e,t):0,p=Math.min(e.maxHeight||Number.POSITIVE_INFINITY,e.size.y);i.height=x(p+f)};if(Mn(e,o))e.type==="FRAME"&&n?.some(p=>Mt(p,e,n,o,r)===re.FILL_PARENT)&&CR(i,e,t,c);else if(!Ir(e,t)){let f=N_(e.relativeTransform),p=(h,m)=>!f||h===re.HUG_CONTENTS?h:m===re.FILL_PARENT?m:re.FIXED,_=p(l,u),T=p(u,l);_===re.FIXED&&(e.targetAspectRatio&&T!==re.FIXED?i.aspectRatio=`${e.targetAspectRatio.x}/${e.targetAspectRatio.y}`:CR(i,e,t,c)),T===re.FIXED&&(e.targetAspectRatio&&_!==re.FIXED?i.aspectRatio=`${e.targetAspectRatio.x}/${e.targetAspectRatio.y}`:d())}return i}function Ko(e,t){let n={};return e.isDecorativeImage&&(n.role="presentation",n["aria-hidden"]=!0),e.accessibleLabel&&!t&&(n["aria-label"]=e.accessibleLabel),e.ariaAttributes?.ariaHidden!==void 0&&(n["aria-hidden"]=e.ariaAttributes.ariaHidden),e.ariaAttributes?.ariaRole!==void 0&&(n.role=e.ariaAttributes.ariaRole.join(" ")),e.ariaAttributes?.ariaCurrent!==void 0&&(n["aria-current"]=e.ariaAttributes.ariaCurrent),n}var g6={ALPHA:"alpha",LUMINANCE:"luminance",VECTOR:"alpha"};function F_(e,t,n){return!e.enableGroupKeyframeAnimations||!t||t.maskReferenceBoundingBox===n?t:{...t,maskReferenceBoundingBox:n}}function $n({node:e,context:t,websiteContext:n}){let{optimizeForTailwindConversion:r}=n.renderOptions,{masks:o}=t||{};if(!o)return{};let i=k_(e,t),s=o.reduce((l,u)=>{let c=u;if(!c.hash)return l;let d=go(c.assets,c.hash),f=n.getAssetURL(d.url),{isolatedAbsoluteRenderBounds:p}=c,{absoluteBoundingBox:_}=e,T=t?.maskReferenceBoundingBox??_,h=k_(c,t);if(l.maskImage.push(`url("${f}")`),l.maskRepeat.push("no-repeat"),l.maskClip.push("no-clip"),l.maskComposite.push("intersect"),l.maskMode.push(c.maskType?g6[c.maskType]:"alph
8736a"),p){let m=p.x-T.x,E=p.y-T.y,O=[`${x(m)}px`,`${x(E)}px`],g=[`${x(p.width)}px`,`${x(p.height)}px`],I={forTailwind:r};if(h.horizontal.type===Kn.LEFT_RIGHT&&i.horizontal.type===h.horizontal.type){let S=h.horizontal.left.pixelOffset-i.horizontal.left.pixelOffset,A=h.horizontal.right.pixelOffset-i.horizontal.right.pixelOffset;O[0]=`${x(S)}px`,g[0]=Y.percent(100).subtract(Y.px(x(S-A))).toString(I)}if(h.vertical.type===Er.TOP_BOTTOM&&i.vertical.type===h.vertical.type){let S=h.vertical.top.pixelOffset-i.vertical.top.pixelOffset,A=h.vertical.bottom.pixelOffset-i.vertical.bottom.pixelOffset;O[1]=`${x(S)}px`,g[1]=Y.percent(100).subtract(Y.px(x(S-A))).toString(I)}l.maskPosition.push(O.join(" ")),l.maskSize.push(g.join(" "))}else l.maskSize.push("auto"),l.maskPosition.push("0px 0px");return l},{maskImage:[],maskPosition:[],maskRepeat:[],maskClip:[],maskComposite:[],maskSize:[],maskMode:[]}),a=Object.fromEntries(Object.entries(s).map(([l,u])=>[l,u.join(", ")]));return(a.maskPosition==="0px 0px"||a.maskPosition==="0% 0%"||a.maskPosition==="0 0")&&delete a.maskPosition,r||(a.WebkitMaskImage=a.maskImage,a.maskPosition&&(a.WebkitMaskPosition=a.maskPosition),a.WebkitMaskRepeat=a.maskRepeat,a.WebkitMaskClip=a.maskClip,a.WebkitMaskSize=a.maskSize),a}var N1=/^(-?[\d.]+)px (-?[\d.]+)px$/;
8736function y1(e){return typeof e?.maskPosition=="string"&&N1.test(e.maskPosition)}function b1(e,t,n){if(t===0&&n===0)return e;let r=i=>{if(typeof i!="string")return i;let s=N1.exec(i);return s?`${x(parseFloat(s[1])+t)}px ${x(parseFloat(s[2])+n)}px`:i},o={...e};return o.maskPosition!=null&&(o.maskPosition=r(o.maskPosition)),o.WebkitMaskPosition!=null&&(o.WebkitMaskPosition=r(o.WebkitMaskPosition)),o}function kn(e,t=!1,n,r){if(e===void 0)return{};let o=x(e);if(t){let i=le(r,n,o);if(i)return{opacity:i}}return o===1?{}:{opacity:o}}function cn(e,t){let n=e?.group?.opacity??1,r=t.opacity??1;return n*r}function w_(e){let{env:t,labs:n}=e,r=WE(n);return t==="preview"&&r}function Jr(e,t){if(!(!(e.renderOptions.includeDataName||w_(e))||/^(Frame|Rectangle|Polygon|Star|Group|Line|Ellipse|Vector|Arrow) \d+$/.test(t.name)))return t.name.trim()}function I6(e,t,n,r){return e?n?"div":"a":t?n?"div":"button":r?"ul":null}function S6(e){switch(e){case"ARTICLE":return"article";case"ASIDE":return"aside";case"FIGURE":return"figure";case"FOOTER":return"footer";case"HEADER":return"header";case"MAIN":return"main";case"NAV":return"nav";case"SECTION":return"section";case"OL":return"ol";case"UL":return"ul";case"IMG":case"VIDEO":case"AUTO":case"DIV":default:return"div"}}function xs(e){return e==="main"}function B_(e){return e.semanticTag==="ol"||e.semanticTag==="ul"?e.semanticTag:e.interactiveSemanticTag==="ul"?"ul":null}function Ms(e,t,n,r,o){return{interactiveSemanticTag:I6(t,n,r,o),semanticTag:S6(e.accessibleHTMLTag)}}function U_(e,t,n){let r=e!=="div"&&e!=="p",o=t!=null,i,s=!1,a=!1;return r?(i=e,o&&(s=!0),n&&(a=!0)):n?o?(a=!0,i=t):i="li":o?i=t:i=e,{finalInnerSemanticTag:i,needsInteractiveWrapper:s,needsListWrapper:a}}var Xf=v(_e(),1),zo=v(W(),1);var L1=v(W(),1),fc=(0,L1.createContext)({});var C1=v(W(),1);function ks(e){let t=(0,C1.useRef)(null);return t.current===null&&(t.current=e()),t.current}var vR=v(_e(),1),M1=v(W(),1),al=v(W(),1);var P1=v(W(),1),Gs=(0,P1.createContext)(null);var v1=v(_e(),1),V_=v(W(),1),Pi=v(W(),1);var D1=v(W(),1),Ci=(0,D1.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});var DR=class extends V_.Component{getSnapshotBeforeUpdate(t){let n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){let r=n.offsetParent,o=r instanceof HTMLElement&&r.offsetWidth||0,i=this.props.sizeRef.current;i.height=n.offsetHeight||0,i.width=n.offsetWidth||0,i.top=n.offsetTop,i.left=n.offsetLeft,i.right=o-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}};function x1({children:e,isPresent:t,anchorX:n}){let r=(0,Pi.useId)(),o=(0,Pi.useRef)(null),i=(0,Pi.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:s}=(0,Pi.useContext)(Ci);return(0,Pi.useInsertionEffect)(()=>{let{width:a,height:l,top:u,left:c,right:d}=i.current;if(t||!o.current||!a||!l)return;let f=n==="left"?`left: ${c}`:`right: ${d}`;o.current.dataset.motionPopId=r;let p=document.createElement("style");return s&&(p.nonce=s),document.head.appendChild(p),p.sheet&&p.sheet.insertRule(` 8737 [data-motion-pop-id="${r}"] { 8738 position: absolute !important; 8739 width: ${a}px !important; 8740 height: ${l}px !important; 8741 ${f}px !important; 8742 top: ${u}px !important; 8743 } 8744 `),()=>{document.head.removeChild(p)}},[t]),(0,v1.jsx)(DR,{isPresent:t,childRef:o,sizeRef:i,children:V_.cloneElement(e,{ref:o})})}var k1=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s,anchorX:a})=>{let l=ks(R6),u=(0,al.useId)(),c=(0,al.useCallback)(f=>{l.set(f,!0);for(let p of l.values())if(!p)return;r&&r()},[l,r]),d=(0,al.useMemo)(()=>({id:u,initial:t,isPresent:n,custom:o,onExitComplete:c,register:f=>(l.set(f,!1),()=>l.delete(f))}),i?[Math.random(),c]:[n,c]);return(0,al.useMemo)(()=>{l.forEach((f,p)=>l.set(p,!1))},[n]),M1.useEffect(()=>{!n&&!l.size&&r&&r()},[n]),s==="popLayout"&&(e=(0,vR.jsx)(x1,{isPresent:n,anchorX:a,children:e})),(0,vR.jsx)(Gs.Provider,{value:d,children:e})};function R6(){return new Map}var Fs=v(W(),1);function H_(e=!0){let t=(0,Fs.useContext)(Gs);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:o}=t,i=(0,Fs.useId)();(0,Fs.useEffect)(()=>
8744{if(e)return o(i)},[e]);let s=(0,Fs.useCallback)(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,s]:[!0]}var W_=v(W(),1),zf=e=>e.key||"";function xR(e){let t=[];return W_.Children.forEach(e,n=>{(0,W_.isValidElement)(n)&&t.push(n)}),t}var Y_=v(W(),1);var pc=typeof window<"u";var K_=pc?Y_.useLayoutEffect:Y_.useEffect;var MR=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:i="sync",propagate:s=!1,anchorX:a="left"})=>{let[l,u]=H_(s),c=(0,zo.useMemo)(()=>xR(e),[e]),d=s&&!l?[]:c.map(zf),f=(0,zo.useRef)(!0),p=(0,zo.useRef)(c),_=ks(()=>new Map),[T,h]=(0,zo.useState)(c),[m,E]=(0,zo.useState)(c);K_(()=>{f.current=!1,p.current=c;for(let I=0;I<m.length;I++){let S=zf(m[I]);d.includes(S)?_.delete(S):_.get(S)!==!0&&_.set(S,!1)}},[m,d.length,d.join("-")]);let O=[];if(c!==T){let I=[...c];for(let S=0;S<m.length;S++){let A=m[S],R=zf(A);d.includes(R)||(I.splice(S,0,A),O.push(A))}return i==="wait"&&O.length&&(I=O),E(xR(I)),h(c),null}let{forceRender:g}=(0,zo.useContext)(fc);return(0,Xf.jsx)(Xf.Fragment,{children:m.map(I=>{let S=zf(I),A=s&&!l?!1:c===m||d.includes(S),R=()=>{if(_.has(S))_.set(S,!0);else return;let y=!0;_.forEach(b=>{b||(y=!1)}),y&&(g?.(),E(p.current),s&&u?.(),r&&r())};return(0,Xf.jsx)(k1,{isPresent:A,initial:!f.current||n?void 0:!1,custom:t,presenceAffectsLayout:o,mode:i,onExitComplete:A?void 0:R,anchorX:a,children:I},S)})})};var dt=e=>e;var ws=dt,Sr=dt;var ll={skipAnimations:!1,useManualTiming:!1};var jf=["read","resolveKeyframes","update","preRender","render","postRender"];var Rr={value:null,addProjectionMetrics:null};function G1(e,t){let n=new Set,r=new Set,o=!1,i=!1,s=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1},l=0;function u(d){s.has(d)&&(c.schedule(d),e()),l++,d(a)}let c={schedule:(d,f=!1,p=!1)=>{let T=p&&o?n:r;return f&&s.add(d),T.has(d)||T.add(d),d},cancel:d=>{r.delete(d),s.delete(d)},process:d=>{if(a=d,o){i=!0;return}o=!0,[n,r]=[r,n],n.forEach(u),t&&Rr.value&&Rr.value.frameloop[t].push(l),l=0,n.clear(),o=!1,i&&(i=!1,c.process(d))}};return c}var A6=40;function z_(e,t){let n=!1,r=!0,o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=jf.reduce((m,E)=>(m[E]=G1(i,t?E:void 0),m),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:d,postRender:f}=s,p=()=>{let m=ll.useManualTiming?o.timestamp:performance.now();n=!1,ll.useManualTiming||(o.delta=r?1e3/60:Math.max(Math.min(m-o.timestamp,A6),1)),o.timestamp=m,o.isProcessing=!0,a.process(o),l.process(o),u.process(o),c.process(o),d.process(o),f.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(p))},_=()=>{n=!0,r=!0,o.isProcessing||e(p)};return{schedule:jf.reduce((m,E)=>{let O=s[E];return m[E]=(g,I=!1,S=!1)=>(n||_(),O.schedule(g,I,S)),m},{}),cancel:m=>{for(let E=0;E<jf.length;E++)s[jf[E]].cancel(m)},state:o,steps:s}}var{schedule:ue,cancel:Zn,state:St,steps:$f}=z_(typeof requestAnimationFrame<"u"?requestAnimationFrame:dt,!0);var F1=v(W(),1),X_=(0,F1.createContext)({strict:!1});var w1={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"]},Di={};for(let e in w1)Di[e]={isEnabled:t=>w1[e].some(n=>!!t[n])};function B1(e){for(let t in e)Di[t]={...Di[t],...e[t]}}var H1=v(_e(),1),j_=v(W(),1);var N6=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 Zf(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||N6.has(e)}var U1=e=>!Zf(e);function kR(e){e&&(U1=t=>t.startsWith("on")?!Zf(t):e(t))}try{kR(CV("@emotion/is-prop-valid").default)}catch{}function V1(e,t,n){let r={};for(let o in e)o==="values"&&typeof e.values=="object"||(U1(o)||n===!0&&Zf(o)||!t&&!Zf(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function GR({children:e,isValidProp:t,...n}){t&&kR(t),n={...(0,j_.useContext)(Ci),...n},n.isStatic=ks(()=>n.isStatic);let r=(0,j_.useMemo)(()=>n,[JSON.stringify(n.transition),n.transformPagePoint,n.reducedMotion]);return(0,H1.jsx)(Ci.Provider,{value:r,children:e})}function W1(e){if(typeof Proxy>"u")return e;let t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,o)=>o==="create"?e:(t.has(o)||t.set(o,e(o)),t.get(o))})}var eT=v(_e(),1);var _c=v(W(),1);var Y1=v(W(),1),Bs=(0,Y1.createContext)({});var J_=v(W(),1);function Us(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function vi(e){return typeof e=="string"||Array.isArray(e)}var $_=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Jf=["initial",...$_];function ul(e){return Us(e.animate)||Jf.some(t=>vi(e[t]))}function Z_(e){return Boolean(ul(e)||e.variants)}function K1(e,t){if(ul(e)){let{initial:n,animate:r}=e;return{initial:n===!1||vi(n)?n:void 0,animate:vi(r)?r:void 0}}return e.inherit!==!1?t:{}}function X1(e){let{initial:t,animate:n}=K1(e,(0,J_.useContext)(Bs));return(0,J_.useMemo)(()=>({initial:t,animate:n}),[z1(t),z1(n)])}function z1(e){return Array.isArray(e)?e.join(" "):e}var j1=Symbol.for("motionComponentSymbol");var $1=v(W(),1);function xi(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Z1(e,t,n){return(0,$1.useCallback)(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):xi(n)&&(n.current=r))},[t])}var Jn=v(W(),1);var mc=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase();var y6="framerAppearId",q_="data-"+mc(y6);var{schedule:Ec,cancel:cde}=z_(queueMicrotask,!1);var J1=v(W(),1),Q_=(0,J1.createContext)({});function q1(e,t,n,r,o){var i,s;let{visualElement:a}=(0,Jn.useContext)(Bs),l=(0,Jn.useContext)(X_),u=(0,Jn.useContext)(Gs),c=(0,Jn.useContext)(Ci).reducedMotion,d=(0,Jn.useRef)(null);r=r||l.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:a,props:n,presenceContext:u,blockInitialAnimation:u?u.
8744initial===!1:!1,reducedMotionConfig:c}));let f=d.current,p=(0,Jn.useContext)(Q_);f&&!f.projection&&o&&(f.type==="html"||f.type==="svg")&&b6(d.current,n,o,p);let _=(0,Jn.useRef)(!1);(0,Jn.useInsertionEffect)(()=>{f&&_.current&&f.update(n,u)});let T=n[q_],h=(0,Jn.useRef)(Boolean(T)&&!(!((i=window.MotionHandoffIsComplete)===null||i===void 0)&&i.call(window,T))&&((s=window.MotionHasOptimisedAnimation)===null||s===void 0?void 0:s.call(window,T)));return K_(()=>{f&&(_.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),Ec.render(f.render),h.current&&f.animationState&&f.animationState.animateChanges())}),(0,Jn.useEffect)(()=>{f&&(!h.current&&f.animationState&&f.animationState.animateChanges(),h.current&&(queueMicrotask(()=>{var m;(m=window.MotionHandoffMarkAsComplete)===null||m===void 0||m.call(window,T)}),h.current=!1))}),f}function b6(e,t,n,r){let{layoutId:o,layout:i,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Q1(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:Boolean(s)||a&&xi(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}function Q1(e){if(e)return e.options.allowProjection!==!1?e.projection:Q1(e.parent)}function ek({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){var i,s;e&&B1(e);function a(u,c){let d,f={...(0,_c.useContext)(Ci),...u,layoutId:L6(u)},{isStatic:p}=f,_=X1(u),T=r(u,p);if(!p&&pc){C6(f,e);let h=P6(f);d=h.MeasureLayout,_.visualElement=q1(o,T,f,t,h.ProjectionNode)}return(0,eT.jsxs)(Bs.Provider,{value:_,children:[d&&_.visualElement?(0,eT.jsx)(d,{visualElement:_.visualElement,...f}):null,n(o,u,Z1(T,_.visualElement,c),T,p,_.visualElement)]})}a.displayName=`motion.${typeof o=="string"?o:`create(${(s=(i=o.displayName)!==null&&i!==void 0?i:o.name)!==null&&s!==void 0?s:""})`}`;let l=(0,_c.forwardRef)(a);return l[j1]=o,l}function L6({layoutId:e}){let t=(0,_c.useContext)(fc).id;return t&&e!==void 0?t+"-"+e:e}function C6(e,t){let n=(0,_c.useContext)(X_).strict}function P6(e){let{drag:t,layout:n}=Di;if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}var Nc=v(W(),1);var lk=v(W(),1);var tk=e=>t=>typeof t=="string"&&t.startsWith(e),Tc=tk("--"),D6=tk("var(--"),hc=e=>D6(e)?v6.test(e.split("/*")[0].trim()):!1,v6=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;var cl={};function nk(e){for(let t in e)cl[t]=e[t],Tc(t)&&(cl[t].isCSSVariable=!0)}var Xo=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],qn=new Set(Xo);function tT(e,{layout:t,layoutId:n}){return qn.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!cl[e]||e==="opacity")}var we=e=>Boolean(e&&e.getVelocity);var nT=(e,t)=>t&&typeof e=="number"?t.transform(e):e;var dn=(e,t,n)=>n>t?t:n<e?e:n;var jo={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Mi={...jo,transform:e=>dn(0,1,e)},qf={...jo,default:1};var Qf=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),$o=Qf("deg"),Gn=Qf("%"),q=Qf("px"),rk=Qf("vh"),ok=Qf("vw"),FR={...Gn,parse:e=>Gn.parse(e)/100,transform:e=>Gn.transform(e*100)};var ik={borderWidth:q,borderTopWidth:q,borderRightWidth:q,borderBottomWidth:q,borderLeftWidth:q,borderRadius:q,radius:q,borderTopLeftRadius:q,borderTopRightRadius:q,borderBottomRightRadius:q,borderBottomLeftRadius:q,width:q,maxWidth:q,height:q,maxHeight:q,top:q,right:q,bottom:q,left:q,padding:q,paddingTop:q,paddingRight:q,paddingBottom:q,paddingLeft:q,margin:q,marginTop:q,marginRight:q,marginBottom:q,marginLeft:q,backgroundPositionX:q,backgroundPositionY:q};var sk={rotate:$o,rotateX:$o,rotateY:$o,rotateZ:$o,scale:qf,scaleX:qf,scaleY:qf,scaleZ:qf,skew:$o,skewX:$o,skewY:$o,distance:q,translateX:q,translateY:q,translateZ:q,x:q,y:q,z:q,perspective:q,transformPerspective:q,opacity:Mi,originX:FR,originY:FR,originZ:q};var wR={...jo,transform:Math.round};var Oc={...ik,...sk,zIndex:wR,size:q,fillOpacity:Mi,strokeOpacity:Mi,numOctaves:wR};var x6={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},M6=Xo.length;function ak(e,t,n){let r="",o=!0;for(let i=0;i<M6;i++){let s=Xo[i],a=e[s];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(s.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){let u=nT(a,Oc[s]);if(!l){o=!1;let c=x6[s]||s;r+=`${c}(${u}) `}n&&(t[s]=u)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}
vendor: 9,273 bytes, line 8744
8744function gc(e,t,n){let{style:r,vars:o,transformOrigin:i}=e,s=!1,a=!1;for(let l in t){let u=t[l];if(qn.has(l)){s=!0;continue}else if(Tc(l)){o[l]=u;continue}else{let c=nT(u,Oc[l]);l.startsWith("origin")?(a=!0,i[l]=c):r[l]=c}}if(t.transform||(s||n?r.transform=ak(t,e.transform,n):r.transform&&(r.transform="none")),a){let{originX:l="50%",originY:u="50%",originZ:c=0}=i;r.transformOrigin=`${l} ${u} ${c}`}}var Ic=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function BR(e,t,n){for(let r in t)!we(t[r])&&!tT(r,n)&&(e[r]=t[r])}function k6({transformTemplate:e},t){return(0,lk.useMemo)(()=>{let n=Ic();return gc(n,t,e),Object.assign({},n.vars,n.style)},[t])}function G6(e,t){let n=e.style||{},r={};return BR(r,n,e),Object.assign(r,k6(e,t)),r}function uk(e,t){let n={},r=G6(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var ck=["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 Sc(e){return typeof e!="string"||e.includes("-")?!1:!!(ck.indexOf(e)>-1||/[A-Z]/u.test(e))}var mk=v(W(),1);var F6={offset:"stroke-dashoffset",array:"stroke-dasharray"},w6={offset:"strokeDashoffset",array:"strokeDasharray"};function dk(e,t,n=1,r=0,o=!0){e.pathLength=1;let i=o?F6:w6;e[i.offset]=q.transform(-r);let s=q.transform(t),a=q.transform(n);e[i.array]=`${s} ${a}`}function fk(e,t,n){return typeof e=="string"?e:q.transform(t+n*e)}function pk(e,t,n){let r=fk(t,e.x,e.width),o=fk(n,e.y,e.height);return`${r} ${o}`}function Rc(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u},c,d){if(gc(e,u,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:f,style:p,dimensions:_}=e;f.transform&&(_&&(p.transform=f.transform),delete f.transform),_&&(o!==void 0||i!==void 0||p.transform)&&(p.transformOrigin=pk(_,o!==void 0?o:.5,i!==void 0?i:.5)),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),s!==void 0&&dk(f,s,a,l,!1)}var rT=()=>({...Ic(),attrs:{}});var Ac=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Ek(e,t,n,r){let o=(0,mk.useMemo)(()=>{let i=rT();return Rc(i,t,Ac(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){let i={};BR(i,e.style,e),o.style={...i,...o.style}}return o}function _k(e=!1){return(n,r,o,{latestValues:i},s)=>{let l=(Sc(n)?Ek:uk)(r,i,s,n),u=V1(r,typeof n=="string",e),c=n!==Nc.Fragment?{...u,...l,ref:o}:{},{children:d}=r,f=(0,Nc.useMemo)(()=>we(d)?d.get():d,[d]);return(0,Nc.createElement)(n,{...c,children:f})}}var UR=v(W(),1);function Tk(e){let t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function yc(e,t,n,r){if(typeof t=="function"){let[o,i]=Tk(r);t=t(n!==void 0?n:e.custom,o,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){let[o,i]=Tk(r);t=t(n!==void 0?n:e.custom,o,i)}return t}var ep=e=>Array.isArray(e);var hk=e=>Boolean(e&&typeof e=="object"&&e.mix&&e.toValue),Ok=e=>ep(e)?e[e.length-1]||0:e;function bc(e){let t=we(e)?e.get():e;return hk(t)?t.toValue():t}function B6({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,o,i){let s={latestValues:U6(r,o,i,e),renderState:t()};return n&&(s.onMount=a=>n({props:r,current:a,...s}),s.onUpdate=a=>n(a)),s}var oT=e=>(t,n)=>{let r=(0,UR.useContext)(Bs),o=(0,UR.useContext)(Gs),i=()=>B6(e,t,r,o);return n?i():ks(i)};function U6(e,t,n,r){let o={},i=r(e,{});for(let f in i)o[f]=bc(i[f]);let{initial:s,animate:a}=e,l=ul(e),u=Z_(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;let d=c?a:s;if(d&&typeof d!="boolean"&&!Us(d)){let f=Array.isArray(d)?d:[d];for(let p=0;p<f.length;p++){let _=yc(e,f[p]);if(_){let{transitionEnd:T,transition:h,...m}=_;for(let E in m){let O=m[E];if(Array.isArray(O)){let g=c?O.length-1:0;O=O[g]}O!==null&&(o[E]=O)}for(let E in T)o[E]=T[E]}}}return o}function Lc(e,t,n){var r;let{style:o}=e,i={};for(let s in o)(we(o[s])||t.style&&we(t.style[s])||tT(s,e)||((r=n?.getValue(s))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(i[s]=o[s]);return i}var gk={useVisualState:oT({scrapeMotionValuesFromProps:Lc,createRenderState:Ic})};function iT(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}function sT(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(let i in n)e.style.setProperty(i,n[i])}var aT=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function lT(e,t,n,r){sT(e,t,void 0,r);for(let o in t.attrs)e.setAttribute(aT.has(o)?o:mc(o),t.attrs[o])}function uT(e,t,n){let r=Lc(e,t,n);for(let o in e)if(we(e[o])||we(t[o])){let i=Xo.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}var Ik=["x","y","width","height","cx","cy","r"],Sk={useVisualState:oT({scrapeMotionValuesFromProps:uT,createRenderState:rT,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:o})=>{if(!n)return;let i=!!e.drag;if(!i){for(let a in o)if(qn.has(a)){i=!0;break}}if(!i)return;let s=!t;if(t)for(let a=0;a<Ik.length;a++){let l=Ik[a];e[l]!==t[l]&&(s=!0)}s&&ue.read(()=>{iT(n,r),ue.render(()=>{Rc(r,o,Ac(n.tagName),e.transformTemplate),lT(n,r)})})}})};function Rk(e,t){return function(r,{forwardMotionProps:o}={forwardMotionProps:!1}){let s={...Sc(r)?Sk:gk,preloadedFeatures:e,useRender:_k(o),createVisualElement:t,Component:r};return ek(s)}}function ki(e,t,n){let r=e.getProps();return yc(r,t,n!==void 0?n:r.custom,e)}function Cc(e,t){return e?e[t]||e.default||e:void 0}var cT=new Set(["width","height","top","left","right","bottom",...Xo]);var dT;function V6(){dT=void 0}var Nn={now:()=>(dT===void 0&&Nn.set(St.isProcessing||ll.useManualTiming?St.timestamp:performance.now()),dT),set:e=>{dT=e,queueMicrotask(V6)}};function Pc(e,t){e.indexOf(t)===-1&&e.push(t)}function Vs(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var Hs=class{constructor(){this.subscriptions=[]}add(t){return Pc(this.subscriptions,t),()=>Vs(this.subscriptions,t)}notify(t,n,r){let o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i<o;i++){let s=this.subscriptions[i];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};function fT(e,t){return t?e*(1e3/t):0}var Ak=30,H6=e=>!isNaN(parseFloat(e)),Nk={current:void 0},VR=class{constructor(t,n={}){this.version="12.4.9",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,o=!0)=>{let i=Nn.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Nn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=H6(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Hs);let r=this.events[t].add(n);return t==="change"?()=>{r(),ue.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return Nk.current&&Nk.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=Nn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Ak)return 0;let n=Math.min(this.updatedAt-this.prevUpdatedAt,Ak);return fT(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Gi(e,t){return new VR(e,t)}
8744function W6(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Gi(n))}function yk(e,t){let n=ki(e,t),{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(let s in i){let a=Ok(i[s]);W6(e,s,a)}}function bk(e){return Boolean(we(e)&&e.add)}function tp(e,t){let n=e.getValue("willChange");if(bk(n))return n.add(t)}function pT(e){return e.props[q_]}function Dc(e){let t;return()=>(t===void 0&&(t=e()),t)}var Lk=Dc(()=>window.ScrollTimeline!==void 0);var mT=class{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){let r=this.animations.map(o=>{if(Lk()&&o.attachTimeline)return o.attachTimeline(t);if(typeof n=="function")return n(o)});return()=>{r.forEach((o,i)=>{o&&o(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}};var vc=class extends mT{then(t,n){return Promise.all(this.animations).then(t).catch(n)}};var Zt=e=>e*1e3,yn=e=>e/1e3;var ET={current:!1};function Ws(e){return typeof e=="function"}function HR(e,t){e.timeline=t,e.onfinish=null}var np=e=>Array.isArray(e)&&typeof e[0]=="number";var Ck={linearEasing:void 0};function Pk(e,t){let n=Dc(e);return()=>{var r;return(r=Ck[t])!==null&&r!==void 0?r:n()}}var xc=Pk(()=>{try{document.createElement("div").animate({opacity:0}
8744,{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");var Ar=(e,t,n)=>{let r=t-e;return r===0?1:(n-e)/r};var _T=(e,t,n=10)=>{let r="",o=Math.max(Math.round(t/n),2);for(let i=0;i<o;i++)r+=e(Ar(0,o-1,i))+", ";return`linear(${r.substring(0,r.length-2)})`};function YR(e){return Boolean(typeof e=="function"&&xc()||!e||typeof e=="string"&&(e in WR||xc())||np(e)||Array.isArray(e)&&e.every(YR))}var rp=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,WR={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:rp([0,.65,.55,1]),circOut:rp([.55,0,1,.45]),backIn:rp([.31,.01,.66,-.59]),backOut:rp([.33,1.53,.69,.99])};function KR(e,t){if(e)return typeof e=="function"&&xc()?_T(e,t):np(e)?rp(e):Array.isArray(e)?e.map(n=>KR(n,t)||WR.easeOut):WR[e]}var Dk=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Y6=1e-7,K6=12;function z6(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=Dk(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>Y6&&++a<K6);return s}function Ys(e,t,n,r){if(e===t&&n===r)return dt;let o=i=>z6(i,0,1,e,n);return i=>i===0||i===1?i:Dk(o(i),t,r)}var TT=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2;var hT=e=>t=>1-e(1-t);var zR=Ys(.33,1.53,.69,.99),op=hT(zR),OT=TT(op);var gT=e=>(e*=2)<1?.5*op(e):.5*(2-Math.pow(2,-10*(e-1)));var IT=e=>1-Math.sin(Math.acos(e)),ST=hT(IT),RT=TT(IT);var AT=e=>/^0[^.\s]+$/u.test(e);function vk(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||AT(e):!0}var Ks=e=>Math.round(e*1e5)/1e5;var Mc=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function xk(e){return e==null}var Mk=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;var kc=(e,t)=>n=>Boolean(typeof n=="string"&&Mk.test(n)&&n.startsWith(e)||t&&!xk(n)&&Object.prototype.hasOwnProperty.call(n,t)),NT=(e,t,n)=>r=>{if(typeof r!="string")return r;let[o,i,s,a]=r.match(Mc);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}};var X6=e=>dn(0,255,e),XR={...jo,transform:e=>Math.round(X6(e))},Zo={test:kc("rgb","red"),parse:NT("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+XR.transform(e)+", "+XR.transform(t)+", "+XR.transform(n)+", "+Ks(Mi.transform(r))+")"};function j6(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}var ip={test:kc("#"),parse:j6,transform:Zo.transform};var zs={test:kc("hsl","hue"),parse:NT("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Gn.transform(Ks(t))+", "+Gn.transform(Ks(n))+", "+Ks(Mi.transform(r))+")"};var Lt={test:e=>Zo.test(e)||ip.test(e)||zs.test(e),parse:e=>Zo.test(e)?Zo.parse(e):zs.test(e)?zs.parse(e):ip.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Zo.transform(e):zs.transform(e)};var kk=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function $6(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Mc))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(kk))===null||n===void 0?void 0:n.length)||0)>0}var Fk="number",wk="color",Z6="var",J6="var(",Gk="${}",q6=/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 dl(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[],i=0,a=t.replace(q6,l=>(Lt.test(l)?(r.color.push(i),o.push(wk),n.push(Lt.parse(l))):l.startsWith(J6)?(r.var.push(i),o.push(Z6),n.push(l)):(r.number.push(i),o.push(Fk),n.push(parseFloat(l))),++i,Gk)).split(Gk);return{values:n,split:a,indexes:r,types:o}}function Bk(e){return dl(e).values}function Uk(e){let{split:t,types:n}=dl(e),r=t.length;return o=>{let i="";for(let s=0;s<r;s++)if(i+=t[s],o[s]!==void 0){let a=n[s];a===Fk?i+=Ks(o[s]):a===wk?i+=Lt.transform(o[s]):i+=o[s]}return i}}var Q6=e=>typeof e=="number"?0:e;function eX(e){let t=Bk(e);return Uk(e)(t.map(Q6))}var Fn={test:$6,parse:Bk,createTransformer:Uk,getAnimatableNone:eX};var tX=new Set(["brightness","contrast","saturate","opacity"]);function nX(e){let[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;let[r]=n.match(Mc)||[];if(!r)return e;let o=n.replace(r,""),i=tX.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}var rX=/\b([a-z-]*)\(.*?\)/gu,sp={...Fn,getAnimatableNone:e=>{let t=e.match(rX);return t?t.map(nX).join(" "):e}};var oX={...Oc,color:Lt,backgroundColor:Lt,outlineColor:Lt,fill:Lt,stroke:Lt,borderColor:Lt,borderTopColor:Lt,borderRightColor:Lt,borderBottomColor:Lt,borderLeftColor:Lt,filter:sp,WebkitFilter:sp},Gc=e=>oX[e];function yT(e,t){let n=Gc(e);return n!==sp&&(n=Fn),n.getAnimatableNone?n.getAnimatableNone(t):void 0}
vendor: 8,961 bytes, line 8744
8744var iX=new Set(["auto","none","0"]);function Vk(e,t,n){let r=0,o;for(;r<e.length&&!o;){let i=e[r];typeof i=="string"&&!iX.has(i)&&dl(i).values.length&&(o=e[r]),r++}if(o&&n)for(let i of t)e[i]=yT(n,o)}var jR=e=>e===jo||e===q,Hk=(e,t)=>parseFloat(e.split(", ")[t]),Wk=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;let o=r.match(/^matrix3d\((.+)\)$/u);if(o)return Hk(o[1],t);{let i=r.match(/^matrix\((.+)\)$/u);return i?Hk(i[1],e):0}},sX=new Set(["x","y","z"]),aX=Xo.filter(e=>!sX.has(e));function Yk(e){let t=[];return aX.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}var fl={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Wk(4,13),y:Wk(5,14)};fl.translateX=fl.x;fl.translateY=fl.y;var pl=new Set,$R=!1,ZR=!1;function Kk(){if(ZR){let e=Array.from(pl).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{let o=Yk(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();let o=n.get(r);o&&o.forEach(([i,s])=>{var a;(a=r.getValue(i))===null||a===void 0||a.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}ZR=!1,$R=!1,pl.forEach(e=>e.complete()),pl.clear()}function zk(){pl.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ZR=!0)})}function Xk(){zk(),Kk()}var Xs=class{constructor(t,n,r,o,i,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=i,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(pl.add(this),$R||($R=!0,ue.read(zk),ue.resolveKeyframes(Kk))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;for(let i=0;i<t.length;i++)if(t[i]===null)if(i===0){let s=o?.get(),a=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){let l=r.readValue(n,a);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=a),o&&s===void 0&&o.set(t[0])}else t[i]=t[i-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),pl.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,pl.delete(this))}resume(){this.isComplete||this.scheduleResolve()}};var bT=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);var lX=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function uX(e){let t=lX.exec(e);if(!t)return[,];let[,n,r,o]=t;return[`--${n??r}`,o]}var cX=4;function JR(e,t,n=1){Sr(n<=cX,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[r,o]=uX(e);if(!r)return;let i=window.getComputedStyle(t).getPropertyValue(r);if(i){let s=i.trim();return bT(s)?parseFloat(s):s}return hc(o)?JR(o,t,n+1):o}var LT=e=>t=>t.test(e);var jk={test:e=>e==="auto",parse:e=>e};var qR=[jo,q,Gn,$o,ok,rk,jk],QR=e=>qR.find(LT(e));var Fc=class extends Xs{constructor(t,n,r,o,i){super(t,n,r,o,i,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let u=t[l];if(typeof u=="string"&&(u=u.trim(),hc(u))){let c=JR(u,n.current);c!==void 0&&(t[l]=c),l===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!cT.has(r)||t.length!==2)return;let[o,i]=t,s=QR(o),a=QR(i);if(s!==a)if(jR(s)&&jR(a))for(let l=0;l<t.length;l++){let u=t[l];typeof u=="string"&&(t[l]=parseFloat(u))}else this.needsMeasurement=!0}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)vk(t[o])&&r.push(o);r.length&&Vk(t,r,n)}measureInitialState(){let{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=fl[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;let o=n[n.length-1];o!==void 0&&t.getValue(r,o).jump(o,!1)}measureEndState(){var t;let{element:n,name:r,unresolvedKeyframes:o}=this;if(!n||!n.current)return;let i=n.getValue(r);i&&i.jump(this.measuredOrigin,!1);let s=o.length-1,a=o[s];o[s]=fl[r](n.measureViewportBox(),window.getComputedStyle(n.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([l,u])=>{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}};var eA=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Fn.test(e)||e==="0")&&!e.startsWith("url("));function dX(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function $k(e,t,n,r){let o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;let i=e[e.length-1],s=eA(o,t),a=eA(i,t);return ws(s===a,`You are trying to animate ${t} from "${o}" to "${i}". ${o} is not an animatable value - to enable this animation set ${o} to a value animatable to ${i} via the \`style\` property.`),!s||!a?!1:dX(e)||(n==="spring"||Ws(n))&&r}var fX=e=>e!==null;function js(e,{repeat:t,repeatType:n="loop"},r){let o=e.filter(fX),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return!i||r===void 0?o[i]:r}var pX=40,wc=class{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:i=0,repeatType:s="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Nn.now(),this.options={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:i,repeatType:s,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>pX?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Xk(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Nn.now(),this.hasAttemptedResolve=!0;let{name:r,type:o,velocity:i,delay:s,onComplete:a,onUpdate:l,isGenerator:u}=this.options;if(!u&&!$k(t,r,o,i))if(ET.current||!s){l&&l(js(t,this.options,n)),a&&a(),this.resolveFinishedPromise();return}else this.options.duration=0;let c=this.initPlayback(t,n);c!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...c},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}};function Bc(e){let t=0,n=50,r=e.next(t);for(;!r.done&&t<2e4;)t+=n,r=e.next(t);return t>=2e4?1/0:t}var Jo={layout:0,mainThread:0,waapi:0};var Se=(e,t,n)=>e+(t-e)*n;function tA(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Zk({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,s=0;if(!t)o=i=s=n;else{let a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;o=tA(l,a,e+1/3),i=tA(l,a,e),s=tA(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}function Uc(e,t){return n=>n>0?t:e}var nA=(e,t,n)=>{let r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},mX=[ip,Zo,zs],EX=e=>mX.find(t=>t.test(e));function Jk(e){let t=EX(e);if(ws(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`),!Boolean(t))return!1;let n=t.parse(e);return t===zs&&(n=Zk(n)),n}var rA=(e,t)=>{let n=Jk(e),r=Jk(t);if(!n||!r)return Uc(e,t);let o={...n};return i=>(o.red=nA(n.red,r.red,i),o.green=nA(n.green,r.green,i),o.blue=nA(n.blue,r.blue,i),o.alpha=Se(n.alpha,r.alpha,i),Zo.transform(o))};var _X=(e,t)=>n=>t(e(n)),qo=(...e)=>e.reduce(_X);var CT=new Set(["none","hidden"]);function qk(e,t){return CT.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function TX(e,t){return n=>Se(e,t,n)}function PT(e){return typeof e=="number"?TX:typeof e=="string"?hc(e)?Uc:Lt.test(e)?rA:gX:Array.isArray(e)?Qk:typeof e=="object"?Lt.test(e)?rA:hX:Uc}function Qk(e,t){let n=[...e],r=n.length,o=e.map((i,s)=>PT(i)(i,t[s]));return i=>{for(let s=0;s<r;s++)n[s]=o[s](i);return n}}function hX(e,t){let n={...e,...t},r={};for(let o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=PT(e[o])(e[o],t[o]));return o=>{for(let i in r)n[i]=r[i](o);return n}}function OX(e,t){var n;let r=[],o={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let s=t.types[i],a=e.indexes[s][o[s]],l=(n=e.values[a])!==null&&n!==void 0?n:0;r[i]=l,o[s]++}return r}var gX=(e,t)=>{let n=Fn.createTransformer(t),r=dl(e),o=dl(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?CT.has(e)&&!o.values.length||CT.has(t)&&!r.values.length?qk(e,t):qo(Qk(OX(r,o),o.values),n):(ws(!0,`Complex values '${e}' and '${t}
8744' 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.`),Uc(e,t))};function DT(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Se(e,t,n):PT(e)(e,t)}var IX=5;function vT(e,t,n){let r=Math.max(t-IX,0);return fT(n-e(r),t-r)}var lt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};var oA=.001;function eG({duration:e=lt.duration,bounce:t=lt.bounce,velocity:n=lt.velocity,mass:r=lt.mass}){let o,i;ws(e<=Zt(lt.maxDuration),"Spring duration must be 10 seconds or less");let s=1-t;s=dn(lt.minDamping,lt.maxDamping,s),e=dn(lt.minDuration,lt.maxDuration,yn(e)),s<1?(o=u=>{let c=u*s,d=c*e,f=c-n,p=xT(u,s),_=Math.exp(-d);return oA-f/p*_},i=u=>{let d=u*s*e,f=d*n+n,p=Math.pow(s,2)*Math.pow(u,2)*e,_=Math.exp(-d),T=xT(Math.pow(u,2),s);return(-o(u)+oA>0?-1:1)*((f-p)*_)/T}):(o=u=>{let c=Math.exp(-u*e),d=(u-n)*e+1;return-oA+c*d},i=u=>{let c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});let a=5/e,l=RX(o,i,a);if(e=Zt(e),isNaN(l))return{stiffness:lt.stiffness,damping:lt.damping,duration:e};{let u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}var SX=12;function RX(e,t,n){let r=n;for(let o=1;o<SX;o++)r=r-e(r)/t(r);return r}function xT(e,t){return e*Math.sqrt(1-t*t)}var AX=["duration","bounce"],NX=["stiffness","damping","mass"];function tG(e,t){return t.some(n=>e[n]!==void 0)}function yX(e){let t={velocity:lt.velocity,stiffness:lt.stiffness,damping:lt.damping,mass:lt.mass,isResolvedFromDuration:!1,...e};if(!tG(e,NX)&&tG(e,AX))if(e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,i=2*dn(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:lt.mass,stiffness:o,damping:i}}else{let n=eG(e);t={...t,...n,mass:lt.mass},t.isResolvedFromDuration=!0}return t}function Vc(e=lt.visualDuration,t=lt.bounce){let n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:r,restDelta:o}=n,i=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:l,damping:u,mass:c,duration:d,velocity:f,isResolvedFromDuration:p}=yX({...n,velocity:-yn(n.velocity||0)}),_=f||0,T=u/(2*Math.sqrt(l*c)),h=s-i,m=yn(Math.sqrt(l/c)),E=Math.abs(h)<5;r||(r=E?lt.restSpeed.granular:lt.restSpeed.default),o||(o=E?lt.restDelta.granular:lt.restDelta.default);let O;if(T<1){let I=xT(m,T);O=S=>{let A=Math.exp(-T*m*S);return s-A*((_+T*m*h)/I*Math.sin(I*S)+h*Math.cos(I*S))}}else if(T===1)O=I=>s-Math.exp(-m*I)*(h+(_+m*h)*I);else{let I=m*Math.sqrt(T*T-1);O=S=>{let A=Math.exp(-T*m*S),R=Math.min(I*S,300);return s-A*((_+T*m*h)*Math.sinh(R)+I*h*Math.cosh(R))/I}}let g={calculatedDuration:p&&d||null,next:I=>{let S=O(I);if(p)a.done=I>=d;else{let A=0;T<1&&(A=I===0?Zt(_):vT(O,I,S));let R=Math.abs(A)<=r,y=Math.abs(s-S)<=o;a.done=R&&y}return a.value=a.done?s:S,a},toString:()=>{let I=Math.min(Bc(g),2e4),S=_T(A=>g.next(I*A).value,I,30);return I+"ms "+S}};return g}function sA({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){let d=e[0],f={done:!1,value:d},p=R=>a!==void 0&&R<a||l!==void 0&&R>l,_=R=>a===void 0?l:l===void 0||Math.abs(a-R)<Math.abs(l-R)?a:l,T=n*t,h=d+T,m=s===void 0?h:s(h);m!==h&&(T=m-d);let E=R=>-T*Math.exp(-R/r),O=R=>m+E(R),g=R=>{let y=E(R),b=O(R);f.done=Math.abs(y)<=u,f.value=f.done?m:b},I,S,A=R=>{p(f.value)&&(I=R,S=Vc({keyframes:[f.value,_(f.value)],velocity:vT(O,R,f.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return A(0),{calculatedDuration:null,next:R=>{let y=!1;return!S&&I===void 0&&(y=!0,g(R),A(R)),I!==void 0&&R>=I?S.next(R-I):(!y&&g(R),f)}}}var nG=Ys(.42,0,1,1),rG=Ys(0,0,.58,1),MT=Ys(.42,0,.58,1);var kT=e=>Array.isArray(e)&&typeof e[0]!="number";var oG={linear:dt,easeIn:nG,easeInOut:MT,easeOut:rG,circIn:IT,circInOut:RT,circOut:ST,backIn:op,backInOut:OT,backOut:zR,anticipate:gT},aA=e=>{if(np(e)){Sr(e.length===4,"Cubic bezier arrays must contain four numerical values.");let[t,n,r,o]=e;return Ys(t,n,r,o)}else if(typeof e=="string")return Sr(oG[e]!==void 0,`Invalid easing type '${e}'`),oG[e];return e};
vendor: 13,687 bytes, line 8744
8744function bX(e,t,n){let r=[],o=n||DT,i=e.length-1;for(let s=0;s<i;s++){let a=o(e[s],e[s+1]);if(t){let l=Array.isArray(t)?t[s]||dt:t;a=qo(l,a)}r.push(a)}return r}function GT(e,t,{clamp:n=!0,ease:r,mixer:o}={}){let i=e.length;if(Sr(i===t.length,"Both input and output ranges must be the same length"),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];let s=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());let a=bX(t,r,o),l=a.length,u=c=>{if(s&&c<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(c<e[d+1]);d++);let f=Ar(e[d],e[d+1],c);return a[d](f)};return n?c=>u(dn(e[0],e[i-1],c)):u}function FT(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let o=Ar(0,t,r);e.push(Se(n,1,o))}}function wT(e){let t=[0];return FT(t,e.length-1),t}function iG(e,t){return e.map(n=>n*t)}function LX(e,t){return e.map(()=>t||MT).splice(0,e.length-1)}function ap({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){let o=kT(r)?r.map(aA):aA(r),i={done:!1,value:t[0]},s=iG(n&&n.length===t.length?n:wT(t),e),a=GT(s,t,{ease:Array.isArray(o)?o:LX(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}var sG=e=>{let t=({timestamp:n})=>e(n);return{start:()=>ue.update(t,!0),stop:()=>Zn(t),now:()=>St.isProcessing?St.timestamp:Nn.now()}};var CX={decay:sA,inertia:sA,tween:ap,keyframes:ap,spring:Vc},PX=e=>e/100,ml=class extends wc{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();let{onStop:l}=this.options;l&&l()};let{name:n,motionValue:r,element:o,keyframes:i}=this.options,s=o?.KeyframeResolver||Xs,a=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new s(i,a,n,r,o),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){let{type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:s=0}=this.options,a=Ws(n)?n:CX[n]||ap,l,u;a!==ap&&typeof t[0]!="number"&&(l=qo(PX,DT(t[0],t[1])),t=[0,100]);let c=a({...this.options,keyframes:t});i==="mirror"&&(u=a({...this.options,keyframes:[...t].reverse(),velocity:-s})),c.calculatedDuration===null&&(c.calculatedDuration=Bc(c));let{calculatedDuration:d}=c,f=d+o,p=f*(r+1)-o;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:d,resolvedDuration:f,totalDuration:p}}onPostResolved(){let{autoplay:t=!0}=this.options;Jo.mainThread++,this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){let{resolved:r}=this;if(!r){let{keyframes:R}=this.options;return{done:!0,value:R[R.length-1]}}let{finalKeyframe:o,generator:i,mirroredGenerator:s,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:d}=r;if(this.startTime===null)return i.next(0);let{delay:f,repeat:p,repeatType:_,repeatDelay:T,onUpdate:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;let m=this.currentTime-f*(this.speed>=0?1:-1),E=this.speed>=0?m<0:m>c;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let O=this.currentTime,g=i;if(p){let R=Math.min(this.currentTime,c)/d,y=Math.floor(R),b=R%1;!b&&R>=1&&(b=1),b===1&&y--,y=Math.min(y,p+1),Boolean(y%2)&&(_==="reverse"?(b=1-b,T&&(b-=T/d)):_==="mirror"&&(g=s)),O=dn(0,1,b)*d}let I=E?{done:!1,value:l[0]}:g.next(O);a&&(I.value=a(I.value));let{done:S}=I;!E&&u!==null&&(S=this.speed>=0?this.currentTime>=c:this.currentTime<=0);let A=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&S);return A&&o!==void 0&&(I.value=js(l,this.options,o)),h&&h(I.value),A&&this.finish(),I}get duration(){let{resolved:t}=this;return t?yn(t.calculatedDuration):0}get time(){return yn(this.currentTime)}set time(t){t=Zt(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){let n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=yn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:t=sG,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),n&&n();let o=this.driver.now();this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=o):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel(),Jo.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}};var aG=new Set(["opacity","clipPath","filter","transform"]);function lG(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:a="easeInOut",times:l}={}){let u={[t]:n};l&&(u.offset=l);let c=KR(a,o);Array.isArray(c)&&(u.easing=c),Rr.value&&Jo.waapi++;let d=e.animate(u,{delay:r,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"});return Rr.value&&d.finished.finally(()=>{Jo.waapi--}),d}var uG=Dc(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));var BT=10,DX=2e4;function vX(e){return Ws(e.type)||e.type==="spring"||!YR(e.ease)}function xX(e,t){let n=new ml({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0}),r={done:!1,value:e[0]},o=[],i=0;for(;!r.done&&i<DX;)r=n.sample(i),o.push(r.value),i+=BT;return{times:void 0,keyframes:o,duration:i-BT,ease:"linear"}}var cG={anticipate:gT,backInOut:OT,circInOut:RT};function MX(e){return e in cG}var lp=class extends wc{constructor(t){super(t);let{name:n,motionValue:r,element:o,keyframes:i}=this.options;this.resolver=new Fc(i,(s,a)=>this.onKeyframesResolved(s,a),n,r,o),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:o,ease:i,type:s,motionValue:a,name:l,startTime:u}=this.options;if(!a.owner||!a.owner.current)return!1;if(typeof i=="string"&&xc()&&MX(i)&&(i=cG[i]),vX(this.options)){let{onComplete:d,onUpdate:f,motionValue:p,element:_,...T}=this.options,h=xX(t,T);t=h.keyframes,t.length===1&&(t[1]=t[0]),r=h.duration,o=h.times,i=h.ease,s="keyframes"}let c=lG(a.owner.current,l,t,{...this.options,duration:r,times:o,ease:i});return c.startTime=u??this.calcStartTime(),this.pendingTimeline?(HR(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{let{onComplete:d}=this.options;a.set(js(t,this.options,n)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:r,times:o,type:s,ease:i,keyframes:t}}get duration(){let{resolved:t}=this;if(!t)return 0;let{duration:n}=t;return yn(n)}get time(){let{resolved:t}=this;if(!t)return 0;let{animation:n}=t;return yn(n.currentTime||0)}set time(t){let{resolved:n}=this;if(!n)return;let{animation:r}=n;r.currentTime=Zt(t)}get speed(){let{resolved:t}=this;if(!t)return 1;let{animation:n}=t;return n.playbackRate}set speed(t){let{resolved:n}=this;if(!n)return;let{animation:r}=n;r.playbackRate=t}get state(){let{resolved:t}=this;if(!t)return"idle";let{animation:n}=t;return n.playState}get startTime(){let{resolved:t}=this;if(!t)return null;let{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{let{resolved:n}=this;if(!n)return dt;let{animation:r}=n;HR(r,t)}return dt}play(){if(this.isStopped)return;let{resolved:t}=this;if(!t)return;let{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){let{resolved:t}=this;if(!t)return;let{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:t}=this;if(!t)return;let{animation:n,keyframes:r,duration:o,type:i,ease:s,times:a}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){let{motionValue:u,onUpdate:c,onComplete:d,element:f,...p}=this.options,_=new ml({...p,keyframes:r,duration:o,type:i,ease:s,times:a,isGenerator:!0}),T=Zt(this.time);u.setWithVelocity(_.sample(T-BT).value,_.sample(T).value,BT)}let{onStop:l}=this.options;l&&l(),this.cancel()}complete(){let{resolved:t}=this;t&&t.animation.finish()}cancel(){let{resolved:t}=this;t&&t.animation.cancel()}static supports(t){let{motionValue:n,name:r,repeatDelay:o,repeatType:i,damping:s,type:a}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;let{onUpdate:l,transformTemplate:u}=n.owner.getProps();return uG()&&r&&aG.has(r)&&!l&&!u&&!o&&i!=="mirror"&&s!==0&&a!=="inertia"}};var kX={type:"spring",stiffness:500,damping:25,restSpeed:10},GX=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),FX={type:"keyframes",duration:.8},wX={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},dG=(e,{keyframes:t})=>t.length>2?FX:qn.has(e)?e.startsWith("scale")?GX(t[1]):kX:wX;function fG({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}var Hc=(e,t,n,r={},o,i)=>s=>{let a=Cc(r,e)||{},l=a.delay||r.delay||0,{elapsed:u=0}=r;u=u-Zt(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:o};fG(a)||(c={...c,...dG(e,c)}),c.duration&&(c.duration=Zt(c.duration)),c.repeatDelay&&(c.repeatDelay=Zt(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(d=!0)),(ET.current||ll.skipAnimations)&&(d=!0,c.duration=0,c.delay=0),d&&!i&&t.get()!==void 0){let f=js(c.keyframes,a);if(f!==void 0)return ue.update(()=>{c.onUpdate(f),c.onComplete()}),new vc([])}return!i&&lp.supports(c)?new lp(c):new ml(c)};function BX({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Wc(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var i;let{transition:s=e.getDefaultTransition(),transitionEnd:a,...l}=t;r&&(s=r);let u=[],c=o&&e.animationState&&e.animationState.getState()[o];for(let d in l){let f=e.getValue(d,(i=e.latestValues[d])!==null&&i!==void 0?i:null),p=l[d];if(p===void 0||c&&BX(c,d))continue;let _={delay:n,...Cc(s||{},d)},T=!1;if(window.MotionHandoffAnimation){let m=pT(e);if(m){let E=window.MotionHandoffAnimation(m,d,ue);E!==null&&(_.startTime=E,T=!0)}}tp(e,d),f.start(Hc(d,f,p,e.shouldReduceMotion&&cT.has(d)?{type:!1}:_,e,T));let h=f.animation;h&&u.push(h)}return a&&Promise.all(u).then(()=>{ue.update(()=>{a&&yk(e,a)})}),u}function UT(e,t,n={}){var r;let o=ki(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(i=n.transitionOverride);let s=o?()=>Promise.all(Wc(e,o,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{let{delayChildren:c=0,staggerChildren:d,staggerDirection:f}=i;return UX(e,t,c+u,d,f,n)}:()=>Promise.resolve(),{when:l}=i;if(l){let[u,c]=l==="beforeChildren"?[s,a]:[a,s];return u().then(()=>c())}else return Promise.all([s(),a(n.delay)])}function UX(e,t,n=0,r=0,o=1,i){let s=[],a=(e.variantChildren.size-1)*r,l=o===1?(u=0)=>u*r:(u=0)=>a-u*r;return Array.from(e.variantChildren).sort(VX).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(UT(u,t,{...i,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function VX(e,t){return e.sortNodePosition(t)}function pG(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){let o=t.map(i=>UT(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=UT(e,t,n);else{let o=typeof t=="function"?ki(e,t,n.custom):t;r=Promise.all(Wc(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function lA(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var HX=Jf.length;function uA(e){if(!e)return;if(!e.isControllingVariants){let n=e.parent?uA(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}let t={};for(let n=0;n<HX;n++){let r=Jf[n],o=e.props[r];(vi(o)||o===!1)&&(t[r]=o)}return t}var WX=[...$_].reverse(),YX=$_.length;function KX(e){return t=>Promise.all(t.map(({animation:n,options:r})=>pG(e,n,r)))}function EG(e){let t=KX(e),n=mG(),r=!0,o=l=>(u,c)=>{var d;let f=ki(e,c,l==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){let{transition:p,transitionEnd:_,...T}=f;u={...u,...T,..._}}return u};function i(l){t=l(e)}function s(l){let{props:u}=e,c=uA(e.parent)||{},d=[],f=new Set,p={},_=1/0;for(let h=0;h<YX;
8744h++){let m=WX[h],E=n[m],O=u[m]!==void 0?u[m]:c[m],g=vi(O),I=m===l?E.isActive:null;I===!1&&(_=h);let S=O===c[m]&&O!==u[m]&&g;if(S&&r&&e.manuallyAnimateOnMount&&(S=!1),E.protectedKeys={...p},!E.isActive&&I===null||!O&&!E.prevProp||Us(O)||typeof O=="boolean")continue;let A=zX(E.prevProp,O),R=A||m===l&&E.isActive&&!S&&g||h>_&&g,y=!1,b=Array.isArray(O)?O:[O],L=b.reduce(o(m),{});I===!1&&(L={});let{prevResolvedValues:D={}}=E,F={...D,...L},H=C=>{R=!0,f.has(C)&&(y=!0,f.delete(C)),E.needsAnimating[C]=!0;let M=e.getValue(C);M&&(M.liveStyle=!1)};for(let C in F){let M=L[C],P=D[C];if(p.hasOwnProperty(C))continue;let z=!1;ep(M)&&ep(P)?z=!lA(M,P):z=M!==P,z?M!=null?H(C):f.add(C):M!==void 0&&f.has(C)?H(C):E.protectedKeys[C]=!0}E.prevProp=O,E.prevResolvedValues=L,E.isActive&&(p={...p,...L}),r&&e.blockInitialAnimation&&(R=!1),R&&(!(S&&A)||y)&&d.push(...b.map(C=>({animation:C,options:{type:m}})))}if(f.size){let h={};if(typeof u.initial!="boolean"){let m=ki(e,Array.isArray(u.initial)?u.initial[0]:u.initial);m&&m.transition&&(h.transition=m.transition)}f.forEach(m=>{let E=e.getBaseTarget(m),O=e.getValue(m);O&&(O.liveStyle=!0),h[m]=E??null}),d.push({animation:h})}let T=Boolean(d.length);return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(T=!1),r=!1,T?t(d):Promise.resolve()}function a(l,u){var c;if(n[l].isActive===u)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(f=>{var p;return(p=f.animationState)===null||p===void 0?void 0:p.setActive(l,u)}),n[l].isActive=u;let d=s(l);for(let f in n)n[f].protectedKeys={};return d}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=mG(),r=!0}}}function zX(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!lA(t,e):!1}function El(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function mG(){return{animate:El(!0),whileInView:El(),whileHover:El(),whileTap:El(),whileDrag:El(),whileFocus:El(),exit:El()}}var Jt=class{constructor(t){this.isMounted=!1,this.node=t}update(){}};var VT=class extends Jt{constructor(t){super(t),t.animationState||(t.animationState=EG(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();Us(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}};var XX=0,HT=class extends Jt{constructor(){super(...arguments),this.id=XX++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;let o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>{n(this.id)})}mount(){let{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}};var _G={animation:{Feature:VT},exit:{Feature:HT}};var qr={x:!1,y:!1};function WT(){return qr.x||qr.y}function TG(e){return e==="x"||e==="y"?qr[e]?null:(qr[e]=!0,()=>{qr[e]=!1}):qr.x||qr.y?null:(qr.x=qr.y=!0,()=>{qr.x=qr.y=!1})}function Fi(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}var Yc=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function wi(e){return{point:{x:e.pageX,y:e.pageY}}}var hG=e=>t=>Yc(t)&&e(t,wi(t));function Bi(e,t,n,r){return Fi(e,t,hG(n),r)}function YT({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function OG({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function gG(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}var AG=1e-4,jX=1-AG,$X=1+AG,NG=.01,ZX=0-NG,JX=0+NG;function Gt(e){return e.max-e.min}function yG(e,t,n){return Math.abs(e-t)<=n}function IG(e,t,n,r=.5){e.origin=r,e.originPoint=Se(t.min,t.max,e.origin),e.scale=Gt(n)/Gt(t),e.translate=Se(n.min,n.max,e.origin)-e.originPoint,(e.scale>=jX&&e.scale<=$X||isNaN(e.scale))&&(e.scale=1),(e.translate>=ZX&&e.translate<=JX||isNaN(e.translate))&&(e.translate=0)}function Kc(e,t,n,r){IG(e.x,t.x,n.x,r?r.originX:void 0),IG(e.y,t.y,n.y,r?r.originY:void 0)}function SG(e,t,n){e.min=n.min+t.min,e.max=e.min+Gt(t)}function bG(e,t,n){SG(e.x,t.x,n.x),SG(e.y,t.y,n.y)}function RG(e,t,n){e.min=t.min-n.min,e.max=e.min+Gt(t)}
8744function zc(e,t,n){RG(e.x,t.x,n.x),RG(e.y,t.y,n.y)}var LG=()=>({translate:0,scale:1,origin:0,originPoint:0}),_l=()=>({x:LG(),y:LG()}),CG=()=>({min:0,max:0}),Xe=()=>({x:CG(),y:CG()});function Qn(e){return[e("x"),e("y")]}function cA(e){return e===void 0||e===1}function KT({scale:e,scaleX:t,scaleY:n}){return!cA(e)||!cA(t)||!cA(n)}function Ui(e){return KT(e)||dA(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function dA(e){return PG(e.x)||PG(e.y)}function PG(e){return e&&e!=="0%"}function up(e,t,n){let r=e-n,o=t*r;return n+o}function DG(e,t,n,r,o){return o!==void 0&&(e=up(e,o,r)),up(e,n,r)+t}function fA(e,t=0,n=1,r,o){e.min=DG(e.min,t,n,r,o),e.max=DG(e.max,t,n,r,o)}function pA(e,{x:t,y:n}){fA(e.x,t.translate,t.scale,t.originPoint),fA(e.y,n.translate,n.scale,n.originPoint)}var vG=.999999999999,xG=1.0000000000001;function kG(e,t,n,r=!1){let o=n.length;if(!o)return;t.x=t.y=1;let i,s;for(let a=0;a<o;a++){i=n[a],s=i.projectionDelta;let{visualElement:l}=i.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Tl(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,pA(e,s)),r&&Ui(i.latestValues)&&Tl(e,i.latestValues))}t.x<xG&&t.x>vG&&(t.x=1),t.y<xG&&t.y>vG&&(t.y=1)}function $s(e,t){e.min=e.min+t,e.max=e.max+t}function MG(e,t,n,r,o=.5){let i=Se(e.min,e.max,o);fA(e,t,n,i,r)}function Tl(e,t){MG(e.x,t.x,t.scaleX,t.scale,t.originX),MG(e.y,t.y,t.scaleY,t.scale,t.originY)}function mA(e,t){return YT(gG(e.getBoundingClientRect(),t))}function GG(e,t,n){let r=mA(e,n),{scroll:o}=t;return o&&($s(r.x,o.offset.x),$s(r.y,o.offset.y)),r}function hl(e,t){let n=`${t}PointerCapture`;if(e.target instanceof Element&&n in e.target&&e.pointerId!==void 0)try{e.target[n](e.pointerId)}catch{}}var FG=(e,t)=>Math.abs(e-t);function wG(e,t){let n=FG(e.x,t.x),r=FG(e.y,t.y);return Math.sqrt(n**2+r**2)}var Xc=class{constructor(t,n,{transformPagePoint:r,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let c=_A(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,f=wG(c.offset,{x:0,y:0})>=3;if(!d&&!f)return;let{point:p}=c,{timestamp:_}=St;this.history.push({...p,timestamp:_});let{onStart:T,onMove:h}=this.handlers;d||(T&&T(this.lastMoveEvent,c),this.startEvent=this.lastMoveEvent),h&&h(this.lastMoveEvent,c)},this.handlePointerMove=(c,d)=>{if(this.index=UG(c.currentTarget),c.target instanceof Element&&c.target.hasPointerCapture&&c.pointerId!==void 0)try{if(!c.target.hasPointerCapture(c.pointerId))return}catch{}this.lastMoveEvent=c,this.lastMoveEventInfo=EA(d,this.transformPagePoint),ue.update(this.updatePoint,!0)},this.handlePointerUp=(c,d)=>{hl(c,"release"),this.end();let{onEnd:f,onSessionEnd:p,resumeAnimation:_}=this.handlers;if(this.dragSnapToOrigin&&_&&_(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let T=_A(c.type==="pointercancel"||c.type==="lostpointercapture"?this.lastMoveEventInfo:EA(d,this.transformPagePoint),this.history);this.startEvent&&f&&f(c,T),p&&p(c,T)},!Yc(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r;let i=wi(t),s=EA(i,this.transformPagePoint),{point:a}=s,{timestamp:l}=St;this.history=[{...a,timestamp:l}];let{onSessionStart:u}=n;u&&u(t,_A(s,this.history)),hl(t,"set"),this.removeListeners=qo(Bi(t.currentTarget,"pointermove",this.handlePointerMove),Bi(t.currentTarget,"pointerup",this.handlePointerUp),Bi(t.currentTarget,"pointercancel",this.handlePointerUp),Bi(t.currentTarget,"lostpointercapture",(c,d)=>{UG(c.currentTarget)!==this.index?hl(c,"set"):this.handlePointerUp(c,d)}))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Zn(this.updatePoint)}};function EA(e,t){return t?{point:t(e.point)}:e}function BG(e,t){return{x:e.x-t.x,y:e.y-t.y}}function _A({point:e},t){return{point:e,delta:BG(e,VG(t)),offset:BG(e,qX(t)),velocity:QX(t,.1)}}function qX(e){return e[0]}function VG(e){return e[e.length-1]}function QX(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,o=VG(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Zt(t)));)n--;if(!r)return{x:0,y:0};let i=yn(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};let s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function UG(e){return e.parentNode?Array.from(e.parentNode.children).indexOf(e):-1}function zG(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Se(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Se(n,e,r.max):Math.min(e,n)),e}function HG(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}
vendor: 36,459 bytes, line 8744
8744function XG(e,{top:t,left:n,bottom:r,right:o}){return{x:HG(e.x,n,o),y:HG(e.y,t,r)}}function WG(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function jG(e,t){return{x:WG(e.x,t.x),y:WG(e.y,t.y)}}function $G(e,t){let n=.5,r=Gt(e),o=Gt(t);return o>r?n=Ar(t.min,t.max-r,e.min):r>o&&(n=Ar(e.min,e.max-o,t.min)),dn(0,1,n)}function ZG(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var zT=.35;function JG(e=zT){return e===!1?e=0:e===!0&&(e=zT),{x:YG(e,"left","right"),y:YG(e,"top","bottom")}}function YG(e,t,n){return{min:KG(e,t),max:KG(e,n)}}function KG(e,t){return typeof e=="number"?e:e[t]||0}var e8=new WeakMap,jT=class{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=Xe(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let o=c=>{let{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(wi(c).point)},i=(c,d)=>{let{drag:f,dragPropagation:p,onDragStart:_}=this.getProps();if(f&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=TG(f),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Qn(h=>{let m=this.getAxisMotionValue(h).get()||0;if(Gn.test(m)){let{projection:E}=this.visualElement;if(E&&E.layout){let O=E.layout.layoutBox[h];O&&(m=Gt(O)*(parseFloat(m)/100))}}this.originPoint[h]=m}),_&&ue.postRender(()=>_(c,d)),tp(this.visualElement,"transform");let{animationState:T}=this.visualElement;T&&T.setActive("whileDrag",!0)},s=(c,d)=>{let{dragPropagation:f,dragDirectionLock:p,onDirectionLock:_,onDrag:T}=this.getProps();if(!f&&!this.openDragLock)return;let{offset:h}=d;if(p&&this.currentDirection===null){this.currentDirection=t8(h),this.currentDirection!==null&&_&&_(this.currentDirection);return}this.updateAxis("x",d.point,h),this.updateAxis("y",d.point,h),this.visualElement.render(),T&&T(c,d)},a=(c,d)=>this.stop(c,d),l=()=>Qn(c=>{var d;return this.getAnimationState(c)==="paused"&&((d=this.getAxisMotionValue(c).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new Xc(t,{onSessionStart:o,onStart:i,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u})}stop(t,n){let r=this.isDragging;if(this.cancel(),!r)return;let{velocity:o}=n;this.startAnimation(o);let{onDragEnd:i}=this.getProps();i&&ue.postRender(()=>i(t,n))}cancel(){this.isDragging=!1;let{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){let{drag:o}=this.getProps();if(!r||!XT(t,o,this.currentDirection))return;let i=this.getAxisMotionValue(t),s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=zG(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){var t;let{dragConstraints:n,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&xi(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=XG(o.layoutBox,n):this.constraints=!1,this.elastic=JG(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Qn(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=ZG(o.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){let{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!xi(t))return!1;let r=t.current;Sr(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:o}=this.visualElement;if(!o||!o.layout)return!1;let i=GG(r,o.root,this.visualElement.getTransformPagePoint()),s=jG(o.layout.layoutBox,i);if(n){let a=n(OG(s));this.hasMutatedConstraints=!!a,a&&(s=YT(a))}return s}startAnimation(t){let{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=Qn(c=>{if(!XT(c,n,this.currentDirection))return;let d=l&&l[c]||{};s&&(d={min:0,max:0});let f=o?200:1e6,p=o?40:1e7,_={type:"inertia",velocity:r?t[c]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(c,_)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){let r=this.getAxisMotionValue(t);return tp(this.visualElement,t),r.start(Hc(t,r,0,n,this.visualElement,!1))}stopAnimation(){Qn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Qn(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){let n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Qn(n=>{let{drag:r}=this.getProps();if(!XT(n,r,this.currentDirection))return;let{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){let{min:s,max:a}=o.layout.layoutBox[n];i.set(t[n]-Se(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!xi(n)||!r||!this.constraints)return;this.stopAnimation();let o={x:0,y:0};Qn(s=>{let a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){let l=a.get();o[s]=$G({min:l,max:l},this.constraints[s])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Qn(s=>{if(!XT(s,t,null))return;let a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(Se(l,u,o[s]))})}addListeners(){if(!this.visualElement.current)return;e8.set(this.visualElement,this);let t=this.visualElement.current,n=Bi(t,"pointerdown",l=>{let{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{let{dragConstraints:l}=this.getProps();xi(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),ue.read(r);let s=Fi(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Qn(c=>{let d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=l[c].translate,d.set(d.get()+l[c].translate))}),this.visualElement.render())});return()=>{s(),n(),i(),a&&a()}}getProps(){let t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:s=zT,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}};function XT(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function t8(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}var $T=class extends Jt{constructor(t){super(t),this.removeGroupControls=dt,this.removeListeners=dt,this.controls=new jT(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||dt}unmount(){this.removeGroupControls(),this.removeListeners()}};var qG=e=>(t,n)=>{e&&ue.postRender(()=>e(t,n))},ZT=class extends Jt{constructor(){super(...arguments),this.removePointerDownListener=dt}onPointerDown(t){this.session=new Xc(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:qG(t),onStart:qG(n),onMove:r,onEnd:(i,s)=>{delete this.session,o&&ue.postRender(()=>o(i,s))}}}mount(){this.removePointerDownListener=Bi(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}};var tF=v(_e(),1),cp=v(W(),1);var jc={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function QG(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var $c={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(q.test(e))e=parseFloat(e);else return e;let n=QG(e,t.target.x),r=QG(e,t.target.y);return`${n}% ${r}%`}};var eF={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,o=Fn.parse(e);if(o.length>5)return r;let i=Fn.createTransformer(e),s=typeof o[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;o[0+s]/=a,o[1+s]/=l;let u=Se(a,l,.5);return typeof o[2+s]=="number"&&(o[2+s]/=u),typeof o[3+s]=="number"&&(o[3+s]/=u),i(o)}};var TA=class extends cp.Component{componentDidMount(){let{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;nk(n8),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),jc.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,s=r.projection;return s&&(s.isPresent=i,o||t.layoutDependency!==n||n===void 0||t.isPresent!==i?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||ue.postRender(()=>{let a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Ec.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}};function JT(e){let[t,n]=H_(),r=(0,cp.useContext)(fc);return(0,tF.jsx)(TA,{...e,layoutGroup:r,switchLayoutGroup:(0,cp.useContext)(Q_),isPresent:t,safeToRemove:n})}var n8={borderRadius:{...$c,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:$c,borderTopRightRadius:$c,borderBottomLeftRadius:$c,borderBottomRightRadius:$c,boxShadow:eF};function qT(e,t,n){let r=we(e)?e:Gi(e);return r.start(Hc("",r,t,n)),r.animation}function QT(e){return e instanceof SVGElement&&e.tagName!=="svg"}var nF=(e,t)=>e.depth-t.depth;var eh=class{constructor(){this.children=[],this.isDirty=!1}add(t){Pc(this.children,t),this.isDirty=!0}remove(t){Vs(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(nF),this.isDirty=!1,this.children.forEach(t)}};function rF(e,t){let n=Nn.now(),r=({timestamp:o})=>{let i=o-n;i>=t&&(Zn(r),e(i-t))};return ue.read(r,!0),()=>Zn(r)}var aF=["TopLeft","TopRight","BottomLeft","BottomRight"],r8=aF.length,oF=e=>typeof e=="string"?parseFloat(e):e,iF=e=>typeof e=="number"||q.test(e);function lF(e,t,n,r,o,i){o?(e.opacity=Se(0,n.opacity!==void 0?n.opacity:1,o8(r)),e.opacityExit=Se(t.opacity!==void 0?t.opacity:1,0,i8(r))):i&&(e.opacity=Se(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;s<r8;s++){let a=`border${aF[s]}Radius`,l=sF(t,a),u=sF(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||iF(l)===iF(u)?(e[a]=Math.max(Se(oF(l),oF(u),r),0),(Gn.test(u)||Gn.test(l))&&(e[a]+="%")):e[a]=u}(t.rotate||n.rotate)&&(e.rotate=Se(t.rotate||0,n.rotate||0,r))}function sF(e,t){return e[t]!==void 0?e[t]:e.borderRadius}var o8=uF(0,.5,ST),i8=uF(.5,.95,dt);function uF(e,t,n){return r=>r<e?0:r>t?1:n(Ar(e,t,r))}function cF(e,t){e.min=t.min,e.max=t.max}function Nr(e,t){cF(e.x,t.x),cF(e.y,t.y)}function hA(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function dF(e,t,n,r,o){return e-=t,e=up(e,1/n,r),o!==void 0&&(e=up(e,1/o,r)),e}function s8(e,t=0,n=1,r=.5,o,i=e,s=e){if(Gn.test(t)&&(t=parseFloat(t),t=Se(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=Se(i.min,i.max,r);e===i&&(a-=t),e.min=dF(e.min,t,n,a,o),e.max=dF(e.max,t,n,a,o)}function fF(e,t,[n,r,o],i,s){s8(e,t[n],t[r],t[o],t.scale,i,s)}var a8=["x","scaleX","originX"],l8=["y","scaleY","originY"];function OA(e,t,n,r){fF(e.x,t,a8,n?n.x:void 0,r?r.x:void 0),fF(e.y,t,l8,n?n.y:void 0,r?r.y:void 0)}function pF(e){return e.translate===0&&e.scale===1}function gA(e){return pF(e.x)&&pF(e.y)}function mF(e,t){return e.min===t.min&&e.max===t.max}function _F(e,t){return mF(e.x,t.x)&&mF(e.y,t.y)}function EF(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function IA(e,t){return EF(e.x,t.x)&&EF(e.y,t.y)}function SA(e){return Gt(e.x)/Gt(e.y)}function RA(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}var th=class{constructor(){this.members=[]}add(t){Pc(this.members,t),t.scheduleRender()}remove(t){if(Vs(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){let n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){let i=this.members[o];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){let r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}};function TF(e,t,n){let r="",o=e.x.translate/t.x,i=e.y.translate/t.y,s=n?.z||0;if((o||i||s)&&(r=`translate3d(${o}px, ${i}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:u,rotate:c,rotateX:d,rotateY:f,skewX:p,skewY:_}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),d&&(r+=`rotateX(${d}deg) `),f&&(r+=`rotateY(${f}deg) `),p&&(r+=`skewX(${p}deg) `),_&&(r+=`skewY(${_}deg) `)}let a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}var Ol={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},AA=["","X","Y","Z"],u8={visibility:"hidden"},hF=1e3,c8=0;function NA(e,t,n,r){let{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function yF(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=pT(t);if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:o,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",ue,!(o||i))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&yF(r)}function nh({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},a=t?.()){this.id=c8++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Rr.value&&(Ol.nodes=Ol.calculatedTargetDeltas=Ol.calculatedProjections=0),this.nodes.forEach(p8),this.nodes.forEach(h8),this.nodes.forEach(O8),this.nodes.forEach(m8),Rr.addProjectionMetrics&&Rr.addProjectionMetrics(Ol)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new eh)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Hs),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){let l=this.eventHandlers.get(s);l&&l.notify(...a)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=QT(s),this.instance=s;let{layoutId:l,layout:u,visualElement:c}=this.options;if(c&&!c.current&&c.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(u||l)&&(this.isLayoutDirty=!0),e){let d,f=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=rF(f,250),jc.hasAnimatedSinceResize&&(jc.hasAnimatedSinceResize=!1,this.nodes.forEach(gF))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeLayoutChanged:p,layout:_})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let T=this.options.transition||c.getDefaultTransition()||A8,{onLayoutAnimationStart:h,onLayoutAnimationComplete:m}=c.getProps(),E=!this.targetLayout||!IA(this.targetLayout,_),O=!f&&p;if(this.options.layoutRoot||this.resumeFrom||O||f&&(E||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,O);let g={...Cc(T,"layout"),onPlay:h,onComplete:m};(c.shouldReduceMotion||this.options.layoutRoot)&&(g.delay=0,g.type=!1),this.startAnimation(g)}else f||gF(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=_})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Zn(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(g8),this.animationId++)}getTransformTemplate(){let{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&yF(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){let d=this.path[c];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}let{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;let u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(OF);return}this.isUpdating||this.nodes.forEach(_8),this.isUpdating=!1,this.nodes.forEach(T8),this.nodes.forEach(d8),this.nodes.forEach(f8),this.clearAllSnapshots();let a=Nn.now();St.delta=dn(0,1e3/60,a-St.timestamp),St.timestamp=a,St.isProcessing=!0,$f.update.process(St),$f.preRender.process(St),$f.render.process(St),St.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ec.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(E8),this.sharedNodes.forEach(I8)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ue.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ue.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Gt(this.snapshot.measuredBox.x)&&!Gt(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();let s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Xe(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let a=Boolean(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a){let l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!o)return;let s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!gA(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;s&&(a||Ui(this.latestValues)||c)&&(o(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){let a=this.measurePageBox(),l=this.removeElementScroll(a);return s&&(l=this.removeTransform(l)),N8(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var s;let{visualElement:a}=this.options;if(!a)return Xe();let l=a.measureViewportBox();if(!(((s=this.scroll)===null||s===void 0?void 0:s.wasRoot)||this.path.some(y8))){let{scroll:c}=this.root;c&&($s(l.x,c.offset.x),$s(l.y,c.offset.y))}return l}removeElementScroll(s){var a;let l=Xe();if(Nr(l,s),!((a=this.scroll)===null||a===void 0)&&a.wasRoot)return l;for(let u=0;u<this.path.length;u++){let c=this.path[u],{scroll:d,options:f}=c;c!==this.root&&d&&f.layoutScroll&&(d.wasRoot&&Nr(l,s),$s(l.x,d.offset.x),$s(l.y,d.offset.y))}return l}applyTransform(s,a=!1){let l=Xe();Nr(l,s);for(let u=0;u<this.path.length;u++){let c=this.path[u];!a&&c.options.layoutScroll&&c.scroll&&c!==c.root&&Tl(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),Ui(c.latestValues)&&Tl(l,c.latestValues)}return Ui(this.latestValues)&&Tl(l,this.latestValues),l}removeTransform(s){let a=Xe();Nr(a,s);for(let l=0;l<this.path.length;l++){let u=this.path[l];if(!u.instance||!Ui(u.latestValues))continue;KT(u.latestValues)&&u.updateSnapshot();let c=Xe(),d=u.measurePageBox();Nr(c,d),OA(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return Ui(this.latestValues)&&OA(a,this.latestValues),a}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==St.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var a;let l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);let u=Boolean(this.resumingFrom)||this!==l;if(!(s||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:d,layoutId:f}=this.options;if(!(!this.layout||!(d||f))){if(this.resolvedRelativeTargetAt=St.timestamp,!this.targetDelta&&!this.relativeTarget){let p=this.getClosestProjectingParent();p&&p.layout&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Xe(),this.relativeTargetOrigin=Xe(),zc(this.relativeTargetOrigin,this.layout.layoutBox,p.layout.layoutBox),Nr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Xe(),this.targetWithTransforms=Xe()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),bG(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Nr(this.target,this.layout.layoutBox),pA(this.target,this.targetDelta)):Nr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let p=this.getClosestProjectingParent();p&&Boolean(p.resumingFrom)===Boolean(this.resumingFrom)&&!p.options.layoutScroll&&p.target&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Xe(),this.relativeTargetOrigin=Xe(),zc(this.relativeTargetOrigin,this.target,p.target),Nr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Rr.value&&Ol.calculatedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||KT(this.parent.latestValues)||dA(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(){var s;let a=this.getLead(),l=Boolean(this.resumingFrom)||this!==a,u=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(u=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===St.timestamp&&(u=!1),u)return;let{layout:c,layoutId:d}=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||!(c||d))return;Nr(this.layoutCorrected,this.layout.layoutBox);let f=this.treeScale.x,p=this.treeScale.y;kG(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=Xe());let{target:_}=a;if(!_){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(hA(this.prevProjectionDelta.x,this.projectionDelta.x),hA(this.prevProjectionDelta.y,this.projectionDelta.y)),Kc(this.projectionDelta,this.layoutCorrected,_,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==p||!RA(this.projectionDelta.x,this.prevProjectionDelta.x)||!RA(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",_)),Rr.value&&Ol.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var a;if((a=this.options.visualElement)===null||a===void 0||a.scheduleRender(),s){let l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=_l(),this.projectionDelta=_l(),this.projectionDeltaWithTransform=_l()}setAnimationOrigin(s,a=!1){let l=this.snapshot,u=l?l.latestValues:{},c={...this.latestValues},d=_l();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;let f=Xe(),p=l?l.source:void 0,_=this.layout?this.layout.source:void 0,T=p!==_,h=this.getStack(),m=!h||h.members.length<=1,E=Boolean(T&&!m&&this.options.crossfade===!0&&!this.path.some(R8));this.animationProgress=0;let O;this.mixTargetDelta=g=>{let I=g/1e3;IF(d.x,s.x,I),IF(d.y,s.y,I),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(zc(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),S8(this.relativeTarget,this.relativeTargetOrigin,f,I),O&&_F(this.relativeTarget,O)&&(this.isProjectionDirty=!1),O||(O=Xe()),Nr(O,this.relativeTarget)),T&&(this.animationValues=c,lF(c,u,this.latestValues,I,E,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=I},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Zn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ue.update(()=>{jc.hasAnimatedSinceResize=!0,Jo.layout++,this.currentAnimation=qT(0,hF,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onStop:()=>{Jo.layout--},onComplete:()=>{Jo.layout--,s.onComplete&&s.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);let s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(hF),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let s=this.getLead(),{targetWithTransforms:a,target:l,layout:u,latestValues:c}=s;if(!(!a||!l||!u)){if(this!==s&&this.layout&&u&&bF(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||Xe();let d=Gt(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;let f=Gt(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}Nr(a,l),Tl(a,c),Kc(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new th),this.sharedNodes.get(s).add(a);let u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){let s=this.getStack();return s?s.lead===this:!0}getLead(){var s;let{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;let{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){let{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){let u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){let s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){let{visualElement:s}=this.options;if(!s)return;let a=!1,{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;let u={};l.z&&NA("z",s,u,this.animationValues);for(let c=0;c<AA.length;c++)NA(`rotate${AA[c]}`,s,u,this.animationValues),NA(`skew${AA[c]}`,s,u,this.animationValues);s.render();for(let c in u)s.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);s.scheduleRender()}getProjectionStyles(s){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return u8;let u={visibility:""},c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=bc(s?.pointerEvents)||"",u.transform=c?c(this.latestValues,""):"none",u;let d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){let T={};return this.options.layoutId&&(T.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,T.pointerEvents=bc(s?.pointerEvents)||""),this.hasProjected&&!Ui(this.latestValues)&&(T.transform=c?c({},""):"none",this.hasProjected=!1),T}let f=d.animationValues||d.latestValues;this.applyTransformsToTarget(),u.transform=TF(this.projectionDeltaWithTransform,this.treeScale,f),c&&(u.transform=c(f,u.transform));let{x:p,y:_}=this.projectionDelta;u.transformOrigin=`${p.origin*100}% ${_.origin*100}% 0`,d.animationValues?u.opacity=d===this?(l=(a=f.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:u.opacity=d===this?f.opacity!==void 0?f.opacity:"":f.opacityExit!==void 0?f.opacityExit:0;for(let T in cl){if(f[T]===void 0)continue;let{correct:h,applyTo:m,isCSSVariable:E}=cl[T],O=u.transform==="none"?f[T]:h(f[T],d);if(m){let g=m.length;for(let I=0;I<g;I++)u[m[I]]=O}else E?this.options.visualElement.renderState.vars[T]=O:u[T]=O}return this.options.layoutId&&(u.pointerEvents=d===this?bc(s?.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(OF),this.root.sharedNodes.clear()}}}function d8(e){e.updateLayout()}function f8(e){var t;let n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){let{layoutBox:r,measuredBox:o}=e.layout,{animationType:i}=e.options,s=n.source!==e.layout.source;i==="size"?Qn(d=>{let f=s?n.measuredBox[d]:n.layoutBox[d],p=Gt(f);f.min=r[d].min,f.max=f.min+p}):bF(i,n.layoutBox,r)&&Qn(d=>{let f=s?n.measuredBox[d]:n.layoutBox[d],p=Gt(r[d]);f.max=f.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+p)});let a=_l();Kc(a,r,n.layoutBox);let l=_l();s?Kc(l,e.applyTransform(o,!0),n.measuredBox):Kc(l,r,n.layoutBox);let u=!gA(a),c=!1;if(!e.resumeFrom){let d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){let{snapshot:f,layout:p}=d;if(f&&p){let _=Xe();zc(_,n.layoutBox,f.layoutBox);let T=Xe();zc(T,r,p.layoutBox),IA(_,T)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=T,e.relativeTargetOrigin=_,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeLayoutChanged:c})}else if(e.isLead()){let{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function p8(e){Rr.value&&Ol.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function m8(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function E8(e){e.clearSnapshot()}function OF(e){e.clearMeasurements()}function _8(e){e.isLayoutDirty=!1}function T8(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function gF(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function h8(e){e.resolveTargetDelta()}function O8(e){e.calcProjection()}
8744function g8(e){e.resetSkewAndRotation()}function I8(e){e.removeLeadSnapshot()}function IF(e,t,n){e.translate=Se(t.translate,0,n),e.scale=Se(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function SF(e,t,n,r){e.min=Se(t.min,n.min,r),e.max=Se(t.max,n.max,r)}function S8(e,t,n,r){SF(e.x,t.x,n.x,r),SF(e.y,t.y,n.y,r)}function R8(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var A8={duration:.45,ease:[.4,0,.1,1]},RF=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),AF=RF("applewebkit/")&&!RF("chrome/")?Math.round:dt;function NF(e){e.min=AF(e.min),e.max=AF(e.max)}function N8(e){NF(e.x),NF(e.y)}function bF(e,t,n){return e==="position"||e==="preserve-aspect"&&!yG(SA(t),SA(n),.2)}function y8(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}var LF=nh({attachResizeListener:(e,t)=>Fi(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0});var yA={current:void 0},rh=nh({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!yA.current){let e=new LF({});e.mount(window),e.setOptions({layoutScroll:!0}),yA.current=e}return yA.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>Boolean(window.getComputedStyle(e).position==="fixed")});var CF={pan:{Feature:ZT},drag:{Feature:$T,ProjectionNode:rh,MeasureLayout:JT}};function oh(e,t,n){var r;if(e instanceof EventTarget)return[e];if(typeof e=="string"){let o=document;t&&(o=t.current);let i=(r=n?.[e])!==null&&r!==void 0?r:o.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}function ih(e,t){let n=oh(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function PF(e){return!(e.pointerType==="touch"||WT())}function DF(e,t,n={}){let[r,o,i]=ih(e,n),s=a=>{if(!PF(a))return;let{target:l}=a,u=t(l,a);if(typeof u!="function"||!l)return;let c=d=>{PF(d)&&(u(d),l.removeEventListener("pointerleave",c))};l.addEventListener("pointerleave",c,o)};return r.forEach(a=>{a.addEventListener("pointerenter",s,o)}),i}function vF(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");let o="onHover"+n,i=r[o];i&&ue.postRender(()=>i(t,wi(t)))}var sh=class extends Jt{mount(){let{current:t}=this.node;t&&(this.unmount=DF(t,(n,r)=>(vF(this.node,r,"Start"),o=>vF(this.node,o,"End"))))}unmount(){}};var ah=class extends Jt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=qo(Fi(this.node.current,"focus",()=>this.onFocus()),Fi(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};var bA=(e,t)=>t?e===t?!0:bA(e,t.parentElement):!1;var b8=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function xF(e){return b8.has(e.tagName)||e.tabIndex!==-1}var gl=new WeakSet;function MF(e){return t=>{t.key==="Enter"&&e(t)}}function LA(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}var kF=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=MF(()=>{if(gl.has(n))return;LA(n,"down");let o=MF(()=>{LA(n,"up")}),i=()=>LA(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function GF(e){return Yc(e)&&!WT()}function FF(e,t,n={}){let[r,o,i]=ih(e,n),s=a=>{let l=a.currentTarget;if(!l||!GF(a)||gl.has(l))return;gl.add(l),hl(a,"set");let u=t(l,a),c=(p,_)=>{l.removeEventListener("pointerup",d),l.removeEventListener("pointercancel",f),hl(p,"release"),!(!GF(p)||!gl.has(l))&&(gl.delete(l),typeof u=="function"&&u(p,{success:_}))},d=p=>{(p.isTrusted?L8(p,l instanceof Element?l.getBoundingClientRect():{left:0,top:0,right:window.innerWidth,bottom:window.innerHeight}):!1)?c(p,!1):c(p,!(l instanceof Element)||bA(l,p.target))},f=p=>{c(p,!1)};l.addEventListener("pointerup",d,o),l.addEventListener("pointercancel",f,o),l.addEventListener("lostpointercapture",f,o)};return r.forEach(a=>{a=n.useGlobalTarget?window:a;let l=!1;a instanceof HTMLElement&&(l=!0,!xF(a)&&a.getAttribute("tabindex")===null&&(a.tabIndex=0)),a.addEventListener("pointerdown",s,o),l&&a.addEventListener("focus",u=>kF(u,o),o)}),i}function L8(e,t){return e.clientX<t.left||e.clientX>
vendor: 9,602 bytes, line 8744
8744t.right||e.clientY<t.top||e.clientY>t.bottom}function wF(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");let o="onTap"+(n==="End"?"":n),i=r[o];i&&ue.postRender(()=>i(t,wi(t)))}var lh=class extends Jt{mount(){let{current:t}=this.node;t&&(this.unmount=FF(t,(n,r)=>(wF(this.node,r,"Start"),(o,{success:i})=>wF(this.node,o,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};var PA=new WeakMap,CA=new WeakMap,C8=e=>{let t=PA.get(e.target);t&&t(e)},P8=e=>{e.forEach(C8)};function D8({root:e,...t}){let n=e||document;CA.has(n)||CA.set(n,{});let r=CA.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(P8,{root:e,...t})),r[o]}function BF(e,t,n){let r=D8(t);return PA.set(e,n),r.observe(e),()=>{PA.delete(e),r.unobserve(e)}}var v8={some:0,all:1},uh=class extends Jt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:v8[o]},a=l=>{let{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);let{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),f=u?c:d;f&&f(l)};return BF(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;let{props:t,prevProps:n}=this.node;["amount","margin","root"].some(x8(t,n))&&this.startObserver()}unmount(){}};function x8({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var UF={inView:{Feature:uh},tap:{Feature:lh},focus:{Feature:ah},hover:{Feature:sh}};var VF={layout:{ProjectionNode:rh,MeasureLayout:JT}};var zF=v(W(),1);var dp={current:null},ch={current:!1};function HF(){if(ch.current=!0,!!pc)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>dp.current=e.matches;e.addListener(t),t()}else dp.current=!1}var M8=[...qR,Lt,Fn],WF=e=>M8.find(LT(e));var Zs=new WeakMap;function YF(e,t,n){for(let r in t){let o=t[r],i=n[r];if(we(o))e.addValue(r,o);else if(we(i))e.addValue(r,Gi(o,{owner:e}));else if(i!==o)if(e.hasValue(r)){let s=e.getValue(r);s.liveStyle===!0?s.jump(o):s.hasAnimated||s.set(o)}else{let s=e.getStaticValue(r);e.addValue(r,Gi(s!==void 0?s:o,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var KF=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Zc=class{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:i,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Xs,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=()=>{let p=Nn.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,ue.render(this.render,!1,!0))};let{latestValues:l,renderState:u,onUpdate:c}=s;this.onUpdate=c,this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.blockInitialAnimation=Boolean(i),this.isControllingVariants=ul(n),this.isVariantNode=Z_(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);let{willChange:d,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(let p in f){let _=f[p];l[p]!==void 0&&we(_)&&_.set(l[p],!1)}}mount(t){this.current=t,Zs.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),ch.current||HF(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:dp.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Zn(this.notifyUpdate),Zn(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(let t in this.events)this.events[t].clear();for(let t in this.features){let n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let r=qn.has(t);r&&this.onBindTransform&&this.onBindTransform();let o=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&ue.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender),s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),i(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Di){let n=Di[t];if(!n)continue;let{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){let i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Xe()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<KF.length;r++){let o=KF[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);let i="on"+o,s=t[i];s&&(this.propEventSubscriptions[o]=this.on(o,s))}this.prevMotionValues=YF(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){let r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);let n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Gi(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return o!=null&&(typeof o=="string"&&(bT(o)||AT(o))?o=parseFloat(o):!WF(o)&&Fn.test(n)&&(o=yT(t,n)),this.setBaseTarget(t,we(o)?o.get():o)),we(o)?o.get():o}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;let{initial:r}=this.props,o;if(typeof r=="string"||typeof r=="object"){let s=yc(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);s&&(o=s[t])}if(r&&o!==void 0)return o;let i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!we(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Hs),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}};var Jc=class extends Zc{constructor(){super(...arguments),this.KeyframeResolver=Fc}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;we(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}};function k8(e){return window.getComputedStyle(e)}var qc=class extends Jc{constructor(){super(...arguments),this.type="html",this.renderInstance=sT}readValueFromInstance(t,n){if(qn.has(n)){let r=Gc(n);return r&&r.default||0}else{let r=k8(t),o=(Tc(n)?r.getPropertyValue(n):r[n])||0;
8744return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return mA(t,n)}build(t,n,r){gc(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Lc(t,n,r)}};var Qc=class extends Jc{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Xe,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&iT(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(qn.has(n)){let r=Gc(n);return r&&r.default||0}return n=aT.has(n)?n:mc(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return uT(t,n,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&ue.postRender(this.updateDimensions)}build(t,n,r){Rc(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,o){lT(t,n,r,o)}mount(t){this.isSVGTag=Ac(t.tagName),super.mount(t)}};var XF=(e,t)=>Sc(e)?new Qc(t):new qc(t,{allowProjection:e!==zF.Fragment});var jF=Rk({..._G,...UF,...CF,...VF},XF);var er=W1(jF);var G8=e=>e&&typeof e=="object"&&e.mix,F8=e=>G8(e)?e.mix:void 0;function Js(...e){let t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],o=e[1+n],i=e[2+n],s=e[3+n],a=GT(o,i,{mixer:F8(i[0]),...s});return t?a(r):a}function $F(e,t=100,n){let r=n({...e,keyframes:[0,t]}),o=Math.min(Bc(r),2e4);return{type:"keyframes",ease:i=>r.next(o*i).value/t,duration:yn(o)}}var ZF=(e,t,n)=>{let r=t-e;return((n-e)%r+r)%r+e};function dh(e,t){return kT(e)?e[ZF(0,e.length,t)]:e}function fp(e){return typeof e=="object"&&!Array.isArray(e)}function fh(e,t,n,r){return typeof e=="string"&&fp(t)?oh(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e:[e]}function JF(e,t,n){return e*(t+1)}function DA(e,t,n,r){var o;return typeof t=="number"?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):t==="<"?n:(o=r.get(t))!==null&&o!==void 0?o:e}function w8(e,t,n){for(let r=0;r<e.length;r++){let o=e[r];o.at>t&&o.at<n&&(Vs(e,o),r--)}}function qF(e,t,n,r,o,i){w8(e,o,i);for(let s=0;s<t.length;s++)e.push({value:t[s],at:Se(o,i,r[s]),easing:dh(n,s)})}function QF(e,t){for(let n=0;n<e.length;n++)e[n]=e[n]/(t+1)}function ew(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}var B8="easeInOut",U8=20;function rw(e,{defaultTransition:t={},...n}={},r,o){let i=t.duration||.3,s=new Map,a=new Map,l={},u=new Map,c=0,d=0,f=0;for(let p=0;p<e.length;p++){let _=e[p];if(typeof _=="string"){u.set(_,d);continue}else if(!Array.isArray(_)){u.set(_.name,DA(d,_.at,c,u));continue}let[T,h,m={}]=_;m.at!==void 0&&(d=DA(d,m.at,c,u));let E=0,O=(g,I,S,A=0,R=0)=>{let y=V8(g),{delay:b=0,times:L=wT(y),type:D="keyframes",repeat:F,repeatType:H,repeatDelay:N=0,...K}=I,{ease:C=t.ease||"easeOut",duration:M}=I,P=typeof b=="function"?b(A,R):b,z=y.length,Ee=Ws(D)?D:o?.[D];if(z<=2&&Ee){let We=100;if(z===2&&Y8(y)){let Oe=y[1]-y[0];We=Math.abs(Oe)}let De={...K};M!==void 0&&(De.duration=Zt(M));let ae=$F(De,We,Ee);C=ae.ease,M=ae.duration}M??(M=i);let pe=d+P;L.length===1&&L[0]===0&&(L[1]=1);let ye=L.length-y.length;if(ye>0&&FT(L,ye),y.length===1&&y.unshift(null),F){Sr(F<U8,"Repeat count too high, must be less than 20"),M=JF(M,F);let We=[...y],De=[...L];C=Array.isArray(C)?[...C]:[C];let ae=[...C];for(let Oe=0;Oe<F;Oe++){y.push(...We);for(let oe=0;oe<We.length;oe++)L.push(De[oe]+(Oe+1)),C.push(oe===0?"linear":dh(ae,oe-1))}QF(L,F)}let Le=pe+M;qF(S,y,C,L,pe,Le),E=Math.max(P+M,E),f=Math.max(Le,f)};if(we(T)){let g=tw(T,a);O(h,m,nw("default",g))}else{let g=fh(T,h,r,l),I=g.length;for(let S=0;S<I;S++){h=h,m=m;let A=g[S],R=tw(A,a);for(let y in h)O(h[y],H8(m,y),nw(y,R),S,I)}}c=d,d+=E}return a.forEach((p,_)=>{for(let T in p){let h=p[T];h.sort(ew);let m=[],E=[],O=[];for(let I=0;I<h.length;I++){let{at:S,value:A,easing:R}=h[I];m.push(A),E.push(Ar(0,f,S)),O.push(R||"easeOut")}E[0]!==0&&(E.unshift(0),m.unshift(m[0]),O.unshift(B8)),E[E.length-1]!==1&&(E.push(1),m.push(null)),s.has(_)||s.set(_,{keyframes:{},transition:{}});let g=s.get(_);g.keyframes[T]=m,g.transition[T]={...t,duration:f,ease:O,times:E,...n}}}),s}function tw(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function nw(e,t){return t[e]||(t[e]=[]),t[e]}function V8(e){return Array.isArray(e)?e:[e]}function H8(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}var W8=e=>typeof e=="number",Y8=e=>e.every(W8);function K8(e,t){return e in t}var ph=class extends Zc{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,n){if(K8(n,t)){let r=t[n];if(typeof r=="string"||typeof r=="number")return r}}getBaseTargetFromProps(){}removeValueFromRenderState(t,n){delete n.output[t]}measureInstanceViewportBox(){return Xe()}build(t,n){Object.assign(t.output,n)}renderInstance(t,{output:n}){Object.assign(t,n)}sortInstanceNodePosition(){return 0}};function ow(e){let t={presenceContext:null,props:{}
8744,visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=QT(e)?new Qc(t):new qc(t);n.mount(e),Zs.set(e,n)}function iw(e){let t={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},n=new ph(t);n.mount(e),Zs.set(e,n)}function z8(e,t){return we(e)||typeof e=="number"||typeof e=="string"&&!fp(t)}function mh(e,t,n,r){let o=[];if(z8(e,t))o.push(qT(e,fp(t)&&t.default||t,n&&(n.default||n)));else{let i=fh(e,t,r),s=i.length;Sr(Boolean(s),"No valid elements provided.");for(let a=0;a<s;a++){let l=i[a],u=l instanceof Element?ow:iw;Zs.has(l)||u(l);let c=Zs.get(l),d={...n};"delay"in d&&typeof d.delay=="function"&&(d.delay=d.delay(a,s)),o.push(...Wc(c,{...t,transition:d},{}))}}return o}function sw(e,t,n){let r=[];return rw(e,t,n,{spring:Vc}).forEach(({keyframes:i,transition:s},a)=>{r.push(...mh(a,i,s))}),r}function X8(e){return Array.isArray(e)&&e.some(Array.isArray)}function aw(e){function t(n,r,o){let i=[];X8(n)?i=sw(n,r,e):i=mh(n,r,o,e);let s=new vc(i);return e&&e.animations.push(s),s}return t}var tr=aw();function j8(e){return!("fills"in e)||!e.fills?[]:e.fills.filter(t=>t.type==="CUSTOM"&&t.visible!==!1&&t.opacity!==0&&!!t.customEffectId)}function $8(e,t){if(!t.hash)return;let n=go(t.assets,t.hash);if(n.type==="GENERATED_ASSET")return e.getAssetURL(n.url)}function lw(e,t){let n=j8(e);if(!t.renderOptions.shouldOutputCustomEffects||n.length===0)return[];let r=$8(t,e);return n.map(o=>Eh({fill:o,mask:r}))}function Eh({fill:e,styles:t,mask:n}){return ne({Tag:"ShaderFill",styleSet:[{position:"absolute",opacity:e.opacity<1?e.opacity:void 0,...t}],customFill:{id:e.customEffectId,params:e.componentPropAssignments??{defs:{},assignments:[]},mask:n}})}function _h(e,t,n,r,o){return{...e,initial:{...e.initial??{},[t]:n},animate:{...e.animate??{},[t]:r},transition:{...e.transition??{},[t]:o}}}function Th(e,t){return e.renderOptions.disableClientOnlyComponents?t.fallback:e.sitesRenderers.renderClientOnly({children:t.children,fallback:Ne(t.fallback,e)})}function dw({node:e,parent:t,children:n,backgroundInfo:r,sharedBackgroundStyles:o,smartAnimateType:i,transitionData:s,context:a,fillColorKeyframeProps:l,websiteContext:u}){let c=on(s),f=i===ee.INSTANCE_SUBTREE&&r.length===0,p={position:"absolute",inset:0,pointerEvents:"none"};if(r.length===1||f){let h=f?o:{...r[0].backgroundStyles,...o},{motionTransitionProps:m,cssStyles:E}=Yu(i,f?0:1,h,void 0,s,f?void 0:c),O=Ai(i,s,h.transform),g=!f&&l?.colorAnimate?.background!==void 0,I=i!==ee.NONE||g,S={...m,...O},A=g?_h(S,"background",l.colorInitial.background,l.colorAnimate.background,l.colorTransition.background):S;return r[0]?.imageProps?uw({imageProps:r[0].imageProps,styles:{...r[0].backgroundStyles,...p,...E},node:e,parent:t,children:n,needsMotion:I,motionProps:A,context:a,websiteContext:u}):r[0]?.videoProps?q8({node:e,videoProps:r[0].videoProps,styles:{...r[0].backgroundStyles,...E},websiteContext:u}):r[0]?.customFill?Eh({fill:r[0].customFill,styles:E}):ne({Tag:I?er.div:"div",nodeId:e.id,idSuffix:"background",styleSet:{...p,...E},attributes:{"aria-hidden":!0,...I?A:{}}})}else if(r.length===0)return null;let{backdropFilter:_,...T}=o;return ne({Tag:"div",nodeId:e.id,idSuffix:"background",attributes:{"aria-hidden":!0},styleSet:[p,T],children:r.map(({backgroundStyles:h,imageProps:m,customFill:E},O)=>{let g=O===r.length-1,I={...T,backdropFilter:g?_:void 0,...h};return E?Eh({fill:E,styles:I}):m?mr({key:O,children:uw({imageProps:m,styles:I,node:e,parent:t,children:n,needsMotion:!1,motionProps:{},context:a,websiteContext:u})}):mr({key:O,children:ne({Tag:"div",styleSet:[p,I]})})})})}function uw({styles:e,node:t,parent:n,children:r,needsMotion:o,motionProps:i,imageProps:s,context:a,websiteContext:l}){let{getAssetURL:u,renderOptions:c}=l,{disableImageOptimization:d}=c,{url:f,cropDivInfo:p,size:_}=s,{srcset:T,sizes:h}=d?{srcset:void 0,sizes:void 0}:vA(u,t,n,r,f,_,p?{x:p.widthPercent,y:p.heightPercent}:void 0,c,a),m=p?{position:"absolute",width:zn(p.widthPercent),height:zn(p.heightPercent),top:zn(p.topPercent),left:zn(p.leftPercent),maxWidth:"none"}:{maxWidth:"none",position:"absolute",width:"100%",height:"100%",...e},E=ne({Tag:o?er.img:"img",nodeId:t.id,idSuffix:"background",styleSet:m,attributes:{loading:t.lazyLoad?"lazy":void 0,alt:t.accessibleLabel||"",src:u(f),srcSet:T,sizes:t.lazyLoad?`auto,${h}`:h,...o?i:{}}});return p?ne({Tag:"div",nodeId:t.id,idSuffix:"image-cropper",styleSet:{overflow:"hidden",position:"absolute",inset:0,...e},children:E}):E}var cw=[64,128,256,512,1024,1536,2048,2560,3072,3584,4096],Z8=3,J8=512;function vA(e,t,n,r,o,i,s,a,l){let u=Mt(t,n,r,a,l)===re.FIXED&&un(t,n,r,a,l)===re.FIXED&&!Ir(t,n),c=s??{x:1,y:1},d=`${Math.ceil(c.x*100)}vw`,f=J8,p=Math.max(i.x,i.y);if(u){let T={x:t.size.x*c.x,y:t.size.y*c.y};d=`${T.x}px`,f=i.x>=i.y?T.x:T.y,p=Math.min(p,f*Z8)}let _=`${e(o)} ${Math.ceil(i.x)}w`;if(i.x>=i.y)for(let T of cw){if(T<f)continue;if(T>p)break;let h=Math.ceil(T*c.x);_+=`, ${e(o,{width:h})} ${h}w`}else for(let T of cw){if(T<f)continue;if(T>p)break;let h=i.x/i.y,m=Math.ceil(T*c.y);_+=`, ${e(o,{height:m})}
8744 ${Math.ceil(m*h)}w`}return{srcset:_,sizes:d}}function q8({node:e,videoProps:t,styles:n,websiteContext:r}){let{getVideoURL:o,env:i}=r,{cropDivInfo:s}=t;if(!["FRAME","RECTANGLE"].includes(e.type))return console.error("backgroundNonTileVideo: node is not a frame or rectangle",e),null;let a=t.autoplay||t.muted,l=e.accessibleLabel||"",u={autoPlay:t.autoplay,loop:t.mediaLoop,controls:t.showControls,muted:a,playsInline:t.autoplay};i==="published"&&matchMedia("(prefers-reduced-motion: reduce)").matches&&(u.autoPlay=!1),t.isDecorative&&(u.role="presentation",u["aria-hidden"]=!0);let c=s?{position:"absolute",width:zn(s.widthPercent),height:zn(s.heightPercent),top:zn(s.topPercent),left:zn(s.leftPercent),maxWidth:"none"}:{maxWidth:"none",position:"absolute",width:"100%",height:"100%",...n},d=Th(r,{fallback:null,children:()=>r.renderElement({Tag:"video",attributes:{...u,controlsList:"nodownload","aria-label":l},styleSet:c,children:r.renderElement({Tag:"source",attributes:{src:o(t.url,t.hash)}})})});return s?ne({Tag:"div",nodeId:e.id,idSuffix:"video-cropper",styleSet:{overflow:"hidden",position:"absolute",inset:0,...n},children:d}):d}var Q8={ALL:["x","y","opacity","rotate","scaleX","scaleY"],OPACITY:["opacity"],TRANSLATION:["x","y"],ROTATION:["rotate"],SCALE:["scaleX","scaleY"]};function ej(e){return"type"in e||e.ease==="linear"?"linear":[...e.ease]}function tj(e,t){let{duration:n}=e,r=Vf(e.easing),o=Hf(r);if("type"in o)return{...o,duration:n};let i=ej(o);return"times"in t?{...t,duration:n,ease:t.ease.map(()=>i)}:{duration:n,times:[0,1],ease:[i]}}function hh(e,t){if(!t)return e;let n={...e},r=["ALL","OPACITY","TRANSLATION","ROTATION","SCALE"];for(let o of r){let i=t[o];if(!i||i.length===0)continue;let s=i.find(a=>a.interactionIDs.length===0);if(s)for(let a of Q8[o]){let l=n[a];l&&(n[a]=tj(s,l))}}return n}var nj="__figmaMotionSpringEasing";function fw(e){return{children:e,dataMotionProps:void 0,elementMotionProps:void 0}}function rj(e){if(e)return e instanceof Q?e.value:e}function oj({keyframeMotionPropsOverride:e,node:t,normalizeParameterUnits:n=!1}){let r=e!==void 0?e:t.keyframeData?Li(t.keyframeData,{normalizeParameterUnits:n}):null;return r&&t.transitionOverrides&&(r={...r,transition:hh(r.transition,t.transitionOverrides)}),r}function qs(e,t){return e===null||typeof e!="object"||Array.isArray(e)?{}:Object.fromEntries(Object.entries(e).filter(([n])=>t(n)))}function ij(e){return e==null?!1:Array.isArray(e)?e.length>0:typeof e=="object"?Object.keys(e).length>0:!0}function xA(e,t){return new Set([...Object.keys(e),...Object.keys(t)])}function pw(e){return xA(qs(e.initial,()=>!0),qs(e.animate,()=>!0))}function mw(e,t){return!t.has(e)}function Ew(e){if(!e)return e;let t=qs(e.initial,s=>nl.has(s)),n=qs(e.animate,s=>nl.has(s)),r=xA(t,n),o=pw(e),i=qs(e.transition,s=>r.has(s)||mw(s,o));return r.size===0?null:{initial:t,animate:n,transition:i}}function sj(e){if(!e)return e;let t=qs(e.initial,f=>!nl.has(f)),n=qs(e.animate,f=>!nl.has(f)),{initial:r,animate:o,transition:i,...s}=e,a=Object.values(s).some(ij),l=xA(t,n),u=pw(e),c=l.size>0||a,d=qs(e.transition,f=>l.has(f)||c&&mw(f,u));return l.size===0&&!a?null:{...e,initial:t,animate:n,transition:d}}function aj(e){let t=Ew(e);return!!t&&(Object.keys(t.initial??{}).length>0||Object.keys(t.animate??{}).length>0)}function lj(e){if(!e)return e;let t=fR,n={};for(let[o,i]of Object.entries(e.initial))n[o]=typeof i=="number"&&t.has(o)?`${i}px`:i;let r={};for(let[o,i]of Object.entries(e.animate))Array.isArray(i)&&t.has(o)?r[o]=i.map(s=>typeof s=="number"?`${s}px`:s):r[o]=i;return{...e,initial:n,animate:r}}function MA(e){let t=lj(e);return JSON.stringify(t,(n,r)=>uj(r)?{[nj]:{zeta:r.__springParams.zeta,w0:r.__springParams.w0,duration:r.__springParams.duration}}:r)}function uj(e){return typeof e=="function"&&"__springParams"in e}function cj({keyframeMotionProps:e,relativeTransform:t,renderOptions:n,smartAnimateType:r}){return t!==void 0&&n.metronomeEnabled&&r===ee.NONE&&il(t,n)&&aj(e)}function dj({keyframeMotionPropsOverride:e,node:t,relativeTransform:n,renderOptions:r,smartAnimateType:o}){let i=oj({keyframeMotionPropsOverride:e,node:t,normalizeParameterUnits:r.emitMotionDataForCodegen});return cj({keyframeMotionProps:i,relativeTransform:n,renderOptions:r,smartAnimateType:o})?{childKeyframeMotionPropsOverride:sj(i),wrapperKeyframeMotionPropsOverride:i}:{childKeyframeMotionPropsOverride:e,wrapperKeyframeMotionPropsOverride:void 0}}function Il({keyframeMotionPropsOverride:e,node:t,context:n,renderOptions:r,smartAnimateType:o,wrappersToRender:i}){return i.needsTransformWrapper?dj({keyframeMotionPropsOverride:e,node:t,relativeTransform:xt(Wt(n?.group?.relativeTransform,t.relativeTransform)),renderOptions:r,smartAnimateType:o}):{childKeyframeMotionPropsOverride:e,wrapperKeyframeMotionPropsOverride:void 0}}function _w({keyframeMotionPropsOverride:e}){let n=Ew(e??null);return{shouldWrapKeyframeMotion:n!=null,transformKeyframeMotionProps:n}}function fj({children:e,keyframeMotionPropsOverride:t,websiteContext:n}){let{shouldWrapKeyframeMotion:r,transformKeyframeMotionProps:o}=_w({keyframeMotionPropsOverride:t}
8744),i=o?ho(n):null,s=r&&o?i?rl(o,i.ease()):o:void 0;return{childrenWithKeyframeMotionDisabled:e,keyframeDataMotionProps:void 0,keyframeMotionElementProps:s}}function pj({children:e,cssTransformString:t,keyframeMotionPropsOverride:n,nodeId:r}){let{shouldWrapKeyframeMotion:o,transformKeyframeMotionProps:i}=_w({keyframeMotionPropsOverride:n});return{childrenWithKeyframeMotionDisabled:e,keyframeDataMotionProps:o&&i&&i?{"data-motion-props":MA(i),...t?{"data-motion-transform-template":t}:{},"data-motion-wrapper-for":r}:void 0,keyframeMotionElementProps:void 0}}function Oh({children:e,keyframeMotionPropsOverride:t,nodeId:n,outerTransform:r,renderOptions:o,renderMotionProps:i,websiteContext:s}){if(t===void 0)return fw(e);if(o.emitMotionDataForCodegen){let{childrenWithKeyframeMotionDisabled:u,keyframeDataMotionProps:c}=pj({children:e,cssTransformString:rj(r),keyframeMotionPropsOverride:t,nodeId:n});return{children:u,dataMotionProps:c,elementMotionProps:void 0}}if(!i||!s)return fw(e);let{childrenWithKeyframeMotionDisabled:a,keyframeMotionElementProps:l}=fj({children:Ne(e,s),keyframeMotionPropsOverride:t,websiteContext:s});return{children:Ot(a),dataMotionProps:void 0,elementMotionProps:l!=null&&r?{...l,transformTemplate:Ku(r)}:l}}function mj(e,t){let n={...e,...t};if(e.transform!=null&&t.transform!=null){let r=e.transform instanceof Q?e.transform.value:e.transform,o=t.transform instanceof Q?t.transform.value:t.transform;n.transform=`${r} ${o}`}return n}function Ao(e){let{key:t,ref:n,children:r,semanticTagInfo:o,context:i,styles:s,additionalClassName:a,transitionProps:l,keyframeMotionPropsOverride:u,node:c,wrappers:{outerStyles:d,needsListItemTag:f},websiteContext:p,attributes:_,...T}=e,{tabIndex:h,...m}=_??{},{emitMotionDataForCodegen:E}=p.renderOptions,{semanticTag:O,interactiveSemanticTag:g}=o,{finalInnerSemanticTag:I,needsInteractiveWrapper:S,needsListWrapper:A}=U_(O,g,f),R=A||S?s:mj(d,s),y=u!==void 0?u:c.keyframeData?Li(c.keyframeData,{normalizeParameterUnits:E}):null;if(y&&c.transitionOverrides){let oe=hh(y.transition,c.transitionOverrides);y={...y,transition:oe}}let b=R;if(E&&y&&R.transform){let oe=R.transform instanceof Q?R.transform.value:R.transform,ft=c.transform3d?.type==="FIXED_ORDER",et=Tj(y,oe,ft);et.motionProps!==y&&(y=et.motionProps,b={...R,transform:et.remainingTransform})}let L=c.type==="FRAME"&&c.isBreakpointFrame===!0,F=d.position==="fixed"||b.position==="fixed"||L?void 0:Ai(l.smartAnimateType,l.transitionData,b.transform),{motionTransitionProps:H,cssStyles:N}=Yu(l.smartAnimateType,l.opacity,b,l.behaviorProps?.variants,l.transitionData,l.onTransitionEnd),K=b.transform&&l.behaviorProps?.variants?{transformTemplate:Ku(b.transform)}:void 0,C=E&&y?{"data-motion-props":MA(y)}:{},M=E&&!y&&c.transitionOverrides?{"data-transition-overrides":JSON.stringify(c.transitionOverrides)}:{};if(y){let oe=ho(p);if(oe){let ft=oe.ease();y=rl(y,ft)}}wv([l.behaviorProps,K,H,F,E?void 0:y??void 0],p);let{style:P,...z}={...l.behaviorProps,...F,...H,...K,...!E&&y?pR(y):{}},Ee=i?.renderedByCode,pe={styles:d,renderedByCode:Ee},ye=[a,{styles:N,renderedByCode:Ee},i?.className],Le={width:"100%",height:"100%",display:"block"},We=g==="a"?{display:"block"}:{},ae=l.smartAnimateType!==ee.NONE||Object.keys(l.behaviorProps).length>0||!E&&!!y?er[I]:I;if(A)if(S){let oe=g,{href:ft,role:et,target:he,rel:ke,onMouseDown:Ye,onClick:ce,onKeyDown:tt,...pn}=m??{};return ne({Tag:"li",key:t,styleSet:pe,children:ne({Tag:oe,styleSet:Le,attributes:{href:ft,target:he,role:et,rel:ke,tabIndex:h,onMouseDown:Ye,onClick:ce,onKeyDown:tt},children:ne({Tag:ae,...T,attributes:{tabIndex:xs(I)?-1:void 0,...z,...pn,...C,...M},ref:n,styleSet:[Le,...ye],style:P,children:r})})})}else return ne({Tag:"li",key:t,styleSet:pe,children:ne({Tag:ae,ref:n,attributes:{tabIndex:xs(I)?-1:h,...z,...m,...C,...M},styleSet:[Le,...ye],style:P,children:r})});if(S){let{href:oe,role:ft,target:et,rel:he,onMouseDown:ke,onClick:Ye,onKeyDown:ce,...tt}=m??{};return ne({Tag:g,key:t,styleSet:[pe,We],attributes:{href:oe,target:et,role:ft,rel:he,tabIndex:h,onMouseDown:ke,onClick:Ye,onKeyDown:ce},children:ne({Tag:ae,...T,ref:n,attributes:{tabIndex:xs(I)?-1:void 0,...z,...tt,...C,...M},styleSet:[Le,...ye],style:P,children:r})})}if(Object.keys(c.componentPropertyReferences??{}).length===0&&UE(N)&&!a&&!i?.className&&Object.keys(P??{}).length===0)return r;let Oe={...z,...m,...C,...M};
8744return ne({Tag:ae,key:t,...T,ref:n,styleSet:ye,style:P,attributes:{tabIndex:xs(I)?-1:h,...Oe},children:r})}var Ej={translateX:"x",translateY:"y",translateZ:"z",rotate:"rotate",rotateZ:"rotateZ",rotateX:"rotateX",rotateY:"rotateY",scale:"scale",scaleX:"scaleX",scaleY:"scaleY",skewX:"skewX",skewY:"skewY",perspective:"transformPerspective"},_j=new Set(["perspective","translateZ","rotateX","rotateY","rotateZ"]);function Tj(e,t,n=!1){if(!e)return{motionProps:e,remainingTransform:t};let r={...e.initial},o=[],i=!1;for(let{raw:s,fn:a,value:l}of hj(t)){let u=Ej[a],c=_j.has(a)&&!n;if(!u||u in r||c){o.push(s);continue}r[u]=l.trim(),i=!0}return i?{motionProps:{...e,initial:r},remainingTransform:o.length>0?o.join(" "):void 0}:{motionProps:e,remainingTransform:t}}function*hj(e){let t=/(\w+)\(/g;for(;;){let n=t.exec(e);if(n===null)return;let r=n.index,o=t.lastIndex,i=1,s=o;for(;s<e.length&&i>0;){let a=e.charAt(s);a==="("?i++:a===")"&&i--,s++}if(i!==0)return;yield{raw:e.slice(r,s),fn:n[1],value:e.slice(o,s-1)},t.lastIndex=s}}function kA(e){return!("effects"in e)||!e.effects?[]:e.effects.filter(t=>t.type==="CUSTOM"&&t.visible!==!1&&!!t.customEffectId)}function gh(e,t){let{effects:n,nodeId:r,styles:o}=e;return n.length===0?t:ne({Tag:"ShaderEffect",nodeId:r,customEffects:n.map(i=>({id:i.customEffectId,params:i.componentPropAssignments??{defs:{},assignments:[]}})),children:t,styleSet:[o]})}var Oj="ffw";function GA(e){let{parent:t,node:n,children:r,outerStyles:o,tag:i,nodeId:s,idSuffix:a}=e;if(!lc(n,t))return r;let l={display:"flex",flex:o.flex,flexDirection:t.layoutMode==="HORIZONTAL"?"row":"column",alignSelf:"stretch",alignItems:LR(t.counterAxisAlignItems)};return ne({Tag:i,key:Oj,nodeId:s,idSuffix:a,styleSet:l,children:r})}function ed(e,t){if(t.disableCodeBehaviors)return!1;switch(e.type){case"FRAME":case"RECTANGLE":case"TEXT":case"IMAGE":case"SVG":return!!e.behaviors?.code?.length;default:return!1}}var gj="sw";function pp(e){let{children:t,stickyWrapperStyles:n,nodeId:r,idSuffix:o,tag:i}=e;return n?ne({Tag:i,key:gj,nodeId:r,idSuffix:o,styleSet:n,children:t}):t}function Tw(e){return e==="flex-start"?"flex-end":e==="flex-end"?"flex-start":"center"}function Ih(e,t,n){if(!n)return;let r=!!(e.keyframeData&&"WIDTH"in e.keyframeData),o=!!(e.keyframeData&&"HEIGHT"in e.keyframeData);if(!r&&!o)return;let i=t!=null&&t[0][0]<0,s=t!=null&&t[1][1]<0,a="center";if(r){switch(e.constraints?.horizontal){case Kn.LEFT:a="flex-start";break;case Kn.RIGHT:a="flex-end";break;default:a="center";break}i&&(a=Tw(a))}let l="center";if(o){switch(e.constraints?.vertical){case Er.TOP:l="flex-start";break;case Er.BOTTOM:l="flex-end";break;default:l="center";break}s&&(l=Tw(l))}return{justifyContent:a,alignItems:l}}function Sh({outerStyles:e,childWrapperStyles:t,innerState:n,keyframeAlignmentOverride:r,preserve3d:o}){let i={display:"flex",alignItems:r?.alignItems??"center",justifyContent:r?.justifyContent??"center"},s=o?"preserve-3d":void 0;return{inner:{flex:"0 0 auto",...t,...n,transformStyle:s},outer:{...e,...i,transformStyle:s}}}function Rh({ref:e,outerStyles:t,...n}){return Th(n.websiteContext,{fallback:Ij({outerStyles:t,...n}),children:()=>n.websiteContext.sitesRenderers.renderTransformWrapperLive({ref:e,outerStyles:t,...n})})}function Ij({children:e,outerStyles:t,childWrapperStyles:n,node:r,context:o,keyframeMotionPropsOverride:i,tag:s,nodeId:a,idSuffix:l,websiteContext:u}){let c=u.renderOptions,{metronomeEnabled:d}=c,f=xt(Wt(o?.group?.relativeTransform,r.relativeTransform)),p=Oh({children:e,keyframeMotionPropsOverride:i,nodeId:r.id,outerTransform:t.transform,renderMotionProps:!0,renderOptions:c,websiteContext:u}),{inner:_,outer:T}=Sh({outerStyles:t,childWrapperStyles:n,keyframeAlignmentOverride:Ih(r,f,d),preserve3d:c.transform3dEnabled&&sl(r)});return ne({Tag:p.elementMotionProps!=null?er[s]:s,nodeId:a,idSuffix:l,styleSet:T,attributes:{...p.dataMotionProps,...p.elementMotionProps},children:ne({Tag:"div",styleSet:_,children:p.children})})}function yr(e){let{node:t,parent:n,context:r,children:o,transitionProps:i,layerRef:s,outerRef:a,previousRotation:l,codeBehaviorProps:u,keyframeMotionPropsOverride:c,codeBehaviorWrapperRef:d,wrappersToRender:f,websiteContext:p}=e,_=f.needsTransformWrapper||f.needsCodeBehaviorWrapper,T=gh(f.customEffectWrapper,o),h=f.maskWrapper.maskStyles?ne({Tag:f.maskWrapper.tag,no
8744deId:f.maskWrapper.nodeId,idSuffix:f.maskWrapper.idSuffix,styleSet:[f.maskWrapper.maskStyles],children:T}):T;if(!_)return pp({nodeId:f.stickyWrapper.nodeId,idSuffix:f.stickyWrapper.idSuffix,stickyWrapperStyles:f.stickyWrapper.outerStyles,tag:f.stickyWrapper.tag,children:GA({node:t,parent:n,outerStyles:f.flexFillWrapper.outerStyles,tag:f.flexFillWrapper.tag,nodeId:f.flexFillWrapper.nodeId,idSuffix:f.flexFillWrapper.idSuffix,children:h})});let m=i?.transitionData,E=i?.smartAnimateType??ee.NONE,O=E===ee.INSTANCE_SUBTREE,g=t.type!=="WIDGET"&&Wo(E,t.maybeAnimateRotation),I=f.needsTransformWrapper?Rh({ref:g||O?s:null,context:r,node:t,parent:n,childWrapperStyles:f.transformWrapper.childWrapperStyles,transitionData:m,canAnimate:g,smartAnimateType:E,previousRotation:l,transformRef:a,codeBehaviorWrapperRef:d,keyframeMotionPropsOverride:c,outerStyles:f.transformWrapper.outerStyles,tag:f.transformWrapper.tag,nodeId:f.transformWrapper.nodeId,idSuffix:f.transformWrapper.idSuffix,websiteContext:p,children:h}):h;if(f.needsCodeBehaviorWrapper){ed(t,p.renderOptions);let S=t.behaviors.code;return f.codeBehaviorWrapper.outerStyles,p.sitesRenderers.renderCodeBehaviorWrapper({codeBehaviors:S,variableState:t.variableState,modeContext:t.modeContext,ref:d,assets:t.assets,outerStyles:f.codeBehaviorWrapper.outerStyles,tag:f.codeBehaviorWrapper.tag,websiteContext:p,children:p.sitesRenderers.renderRenderHooksConsumer({node:t,renderNode:()=>Ne(I,p),codeBehaviorProps:{...u,transformRef:a}})})}return pp({nodeId:f.stickyWrapper.nodeId,idSuffix:f.stickyWrapper.idSuffix,stickyWrapperStyles:f.stickyWrapper.outerStyles,tag:f.stickyWrapper.tag,children:GA({node:t,parent:n,outerStyles:f.flexFillWrapper.outerStyles,tag:f.flexFillWrapper.tag,nodeId:f.flexFillWrapper.nodeId,idSuffix:f.flexFillWrapper.idSuffix,children:I})})}function hw(e){let{node:t,parent:n,transitionProps:r,renderOptions:o,maskStyles:i}=e,s=t.keyframeData!=null&&Object.keys(t.keyframeData).length>0||(r?.smartAnimateType??ee.NONE)!==ee.NONE;return o.metronomeEnabled&&s&&i!=null&&Object.keys(i).length>0&&y1(i)&&!$t(t,n)}function Qr(e){return hw(e)?void 0:e.maskStyles}function wn({node:e,parent:t,context:n,transitionProps:r,outerStyles:o,wrapperSizeStyles:i,stickyWrapperStyles:s,transformChildWrapperStyles:a,renderOptions:l,maskStyles:u}){let{hasCodeBehavior:c,hasTransform:d,hasFlexFill:f,hasSticky:p,hasCustomEffect:_}=Sj({node:e,parent:t,context:n,transitionProps:r,stickyWrapperStyles:s,renderOptions:l}),T=o,h=n?.parentIsList?"li":"div",m,E="div",O="div",g,I="div",S,A="div",R;c&&(m=T,E=h,T=void 0,h="div"),p&&(O=h,h="div"),f&&(g=T,I=h,h="div"),d&&(S=T??i,A=h,T=void 0,h="div"),_&&(R=T??i,T=i);let b=hw({node:e,parent:t,transitionProps:r,renderOptions:l,maskStyles:u})?u:void 0;if(b&&e.absoluteBoundingBox&&t?.absoluteBoundingBox){let K=e.absoluteBoundingBox.x-t.absoluteBoundingBox.x,C=e.absoluteBoundingBox.y-t.absoluteBoundingBox.y;b=b1(b,K,C)}let L=l.shouldOutputCustomEffects?kA(e):[],D=l.assignNodeIdToOutermostWrapper,F=b!=null,H=D?p?"sticky":f?"flexFill":d?"transform":F?"mask":L.length>0?"customEffect":"main":"main",N=K=>H===K?e.id:void 0;return{needsTransformWrapper:d,needsCodeBehaviorWrapper:c,stickyWrapper:{outerStyles:s,tag:O,...D?{nodeId:N("sticky"),idSuffix:void 0}:{nodeId:e.id,idSuffix:"sticky-wrapper"}},flexFillWrapper:{outerStyles:g,tag:I,...D?{nodeId:N("flexFill"),idSuffix:void 0}:{nodeId:e.id,idSuffix:"fillWrapper"}},codeBehaviorWrapper:{outerStyles:m,tag:E},transformWrapper:{outerStyles:S,childWrapperStyles:a,tag:A,nodeId:N("transform"),idSuffix:void 0},motionLayerContent:{outerStyles:T??i,needsListItemTag:h==="li",nodeId:N("main")},maskWrapper:{maskStyles:b,tag:"div",nodeId:N("mask"),idSuffix:void 0},customEffectWrapper:{effects:L,styles:R,nodeId:N("customEffect")}}}function Sj({node:e,parent:t,context:n,transitionProps:r,stickyWrapperStyles:o,renderOptions:i}){let s=ed(e,i);return{hasCodeBehavior:s,hasTransform:Rj({node:e,parent:t,context:n,transitionProps:r}),hasFlexFill:!s&&lc(e,t),hasSticky:!s&&o!==void 0,hasCustomEffect:i.shouldOutputCustomEffects?kA(e).length>0:!1}}
8744function Rj(e){let{context:t,node:n,parent:r,transitionProps:o}=e,i=vs(n,r,t);if(n.type==="GROUP")return i&&$t(n,r);{let s=n.type!=="WIDGET"&&Wo(o?.smartAnimateType??ee.NONE,n.maybeAnimateRotation);return i||s}}function Ow(e){let{node:t,parent:n,context:r,zIndex:o,smartAnimateType:i,previousRotation:s,precomputeTransforms:a,websiteContext:l}=e,{getAssetURL:u,renderOptions:c}=l,d=go(t.assets,t.hash);Ae(d.type==="GENERATED_ASSET","Expected asset to be a generated asset");let f=u(d.url),p=Wo(i,t.maybeAnimateRotation),_=Xn({node:t,parent:n,context:r,zIndex:o,children:[],options:{isFlattened:!0,canAnimate:p,previousRotation:s,precomputeTransforms:a},renderOptions:c}),T=t.type==="SVG"?r?.group?.opacity??1:cn(r,t);return{nodeCanAnimateRotation:p,layoutStyles:_,opacity:T,asset:d,src:f}}function gw(e){let{node:t,parent:n,interactionHandlers:r,context:o,transitionProps:i,codeBehaviorProps:s,websiteContext:a,layerData:l,hookState:u}=e,{layoutStyles:c,opacity:d,nodeCanAnimateRotation:f,asset:p,src:_}=l,{behaviorProps:T,key:h,behaviorsRef:m,mergedRef:E,outerRef:O,codeBehaviorWrapperRef:g,previousRotation:I,svgContainerRef:S,ref:A}=u,R=i?.smartAnimateType??ee.NONE,{renderOptions:y}=a,b=$n({node:t,context:o,websiteContext:a}),L=t?.interactions??[],D=o?.withinInteractiveElement||Object.keys(T).length>0||R===ee.INSTANCE_SUBTREE,F=gr(L,r,D,a),H=Fo(L),N=po(L),K=Ms(t,N,H,D,!1),C=Ko(t,!0),M=i?.transitionData,P=on(M),z=jn({node:t,parent:n,children:null,renderOptions:y}),{shouldOutputVariables:Ee,codeSyntaxLanguage:pe}=a.renderOptions,ye={...c.inner,...t.type==="IMAGE"?ED(t,t.effects,y):{},...kn(d,Ee,t.boundVariables?.opacity?.resolvedName,pe&&t.boundVariables?.opacity?.resolvedCodeSyntax?.[pe]),...Ni(t),...Qr({node:t,parent:n,transitionProps:i,renderOptions:y,maskStyles:b}),...c.transform3d,...o?.style||{}},Le=Jr(a,t),{disableDataAttributes:We}=a.renderOptions,De=wn({node:t,parent:n,context:o,transitionProps:i,outerStyles:c.outer,wrapperSizeStyles:z,stickyWrapperStyles:c.stickyWrapper,transformChildWrapperStyles:c.transform,renderOptions:y,maskStyles:b}),ae=Il({node:t,context:o,renderOptions:y,smartAnimateType:R,wrappersToRender:De}),Oe=mr({key:t.id,children:Aj({node:t,parent:n,context:o,websiteContext:a,asset:p,src:_,svgContainerRef:S})}),oe=Ao({node:t,semanticTagInfo:K,key:h,context:o,ref:f?m:E,nodeId:De.motionLayerContent.nodeId,styles:ye,transitionProps:{opacity:d,smartAnimateType:R,behaviorProps:T,transitionData:M,onTransitionEnd:P},keyframeMotionPropsOverride:ae.childKeyframeMotionPropsOverride,wrappers:De.motionLayerContent,websiteContext:a,attributes:{...F,...C,"data-name":Le,"data-isimage":We?void 0:!0,...o?.dataAttributes||{}},children:Oe});return yr({node:t,parent:n,context:o,transitionProps:i,codeBehaviorProps:s,layerRef:A,outerRef:O,codeBehaviorWrapperRef:g,previousRotation:I,wrappersToRender:De,websiteContext:a,keyframeMotionPropsOverride:ae.wrapperKeyframeMotionPropsOverride,children:oe})}function Aj({node:e,parent:t,context:n,websiteContext:r,asset:o,src:i,svgContainerRef:s}){let{url:a,offsets:l,size:u}=o,{disableInlineSvgGeneration:c,disableImageOptimization:d}=r.renderOptions,f=!c&&e.type==="SVG"&&e.isDynamic,p=e.accessibleLabel||"",_={position:"absolute",top:Nf(l.top),left:Nf(l.left),right:Nf(l.right),bottom:Nf(l.bottom)},T,h;if(u&&!d&&e.type==="IMAGE"){let{srcset:R,sizes:y}=vA(r.getAssetURL,e,t,null,a,u,void 0,r.renderOptions,n);T=R,h=e.lazyLoad?`auto,${y}`:y}let m={};f&&e.type==="SVG"&&(e.fills.forEach((R,y)=>{R.type==="SOLID"&&(m[`--fill-${y}`]=`rgba(${Math.round(R.color.r*255)}, ${Math.round(R.color.g*255)}, ${Math.round(R.color.b*255)}, ${x(R.color.a)})`)}),e.strokes.forEach((R,y)=>{R.type==="SOLID"&&(m[`--stroke-${y}`]=`rgba(${Math.round(R.color.r*255)}, ${Math.round(R.color.g*255)}, ${Math.round(R.color.b*255)}, ${x(R.color.a)})`)}));let E=!f&&UE(_),O=lw(e,r),g=O.length>0,I={display:"block",maxWidth:"none",width:"100%",height:"100%",...E&&{position:"absolute",inset:0},...g&&!E&&{position:"absolute",inset:0}},S=ne({Tag:"img",styleSet:I,attributes:{loading:e.lazyLoad?"lazy":void 0,src:i,alt:p,width:e.type==="IMAGE"&&u?x(u.x):void 0,height:e.type==="IMAGE"&&u?x(u.y):void 0,srcSet:T,sizes:h}}),A=g?[...O,S]:S;return E?A:ne({Tag:"div",ref:s,styleSet:_,style:m,children:A})}var nr=v(W());var Iw=(e,t,n)=>Math.min(Math.max(n,e),t);var Sl=e=>typeof e=="number";var Sw=e=>Array.isArray(e)&&!Sl(e[0]);var Rw=(e,t,n)=>{let r=t-e;return((n-e)%r+r)%r+e};function Aw(e,t){return Sw(e)?e[Rw(0,e.length,t)]:e}var Ah=(e,t,n)=>-n*e+n*t+e;var mp=e=>e;var Rl=(e,t,n)=>t-e===0?1:(n-e)/(t-e);function Nh(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let o=Rl(0,t,r);e.push(Ah(n,1,o))}}function Ep(e){let t=[0];return Nh(t,e-1),t}function FA(e,t=Ep(e.length),n=mp){let r=e.length,o=r-t.length;return o>0&&Nh(t,o),i=>{let s=0;for(;s<r-2&&!(i<t[s+1]);s++);let a=Iw(0,1,Rl(t[s],t[s+1],i));return a=Aw(n,s)(a),Ah(e[s],e[s+1],a)}}var Al=e=>typeof e=="function";var _p=e=>typeof e=="string";function wA(e,t){return t?e*(1e3/t):0}function yh(e,t){var n;return typeof e=="string"?t?((n=t[e])!==null&&n!==void 0||(t[e]=document.querySelectorAll(e)),e=t[e]):e=document.querySelectorAll(e):e instanceof Element&&(e=[e]),Array.from(e||[])}function Nw(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}var Nj={any:0,all:1};function BA(e,t,{root:n,margin:r,amount:o="any"}={}){if(typeof IntersectionObserver>"u")return()=>{};let i=yh(e),s=new WeakMap,a=u=>{u.forEach(c=>{let d=s.get(c.target);if(c.isIntersecting!==Boolean(d))if(c.isIntersecting){let f=t(c);Al(f)?s.set(c.target,f):l.unobserve(c.target)}else d&&(d(c),s.delete(c.target))})},l=new IntersectionObserver(a,{root:n,rootMargin:r,threshold:typeof o=="number"?o:Nj[o]});
8744return i.forEach(u=>l.observe(u)),()=>l.disconnect()}var bh=new WeakMap,Qs;function yj(e,t){if(t){let{inlineSize:n,blockSize:r}=t[0];return{width:n,height:r}}else return e instanceof SVGElement&&"getBBox"in e?e.getBBox():{width:e.offsetWidth,height:e.offsetHeight}}function bj({target:e,contentRect:t,borderBoxSize:n}){var r;(r=bh.get(e))===null||r===void 0||r.forEach(o=>{o({target:e,contentSize:t,get size(){return yj(e,n)}})})}function Lj(e){e.forEach(bj)}function Cj(){typeof ResizeObserver>"u"||(Qs=new ResizeObserver(Lj))}function yw(e,t){Qs||Cj();let n=yh(e);return n.forEach(r=>{let o=bh.get(r);o||(o=new Set,bh.set(r,o)),o.add(t),Qs?.observe(r)}),()=>{n.forEach(r=>{let o=bh.get(r);o?.delete(t),o?.size||Qs?.unobserve(r)})}}var Lh=new Set,Tp;function Pj(){Tp=()=>{let e={width:window.innerWidth,height:window.innerHeight},t={target:window,size:e,contentSize:e};Lh.forEach(n=>n(t))},window.addEventListener("resize",Tp)}function bw(e){return Lh.add(e),Tp||Pj(),()=>{Lh.delete(e),!Lh.size&&Tp&&(Tp=void 0)}}function Lw(e,t){return Al(e)?bw(e):yw(e,t)}var Dj=50,Cw=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),Dw=()=>({time:0,x:Cw(),y:Cw()}),vj={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function Pw(e,t,n,r){let o=n[t],{length:i,position:s}=vj[t],a=o.current,l=n.time;o.current=e["scroll"+s],o.scrollLength=e["scroll"+i]-e["client"+i],o.offset.length=0,o.offset[0]=0,o.offset[1]=o.scrollLength,o.progress=Rl(0,o.scrollLength,o.current);let u=r-l;o.velocity=u>Dj?0:wA(o.current-a,u)}function vw(e,t,n){Pw(e,"x",t,n),Pw(e,"y",t,n),t.time=n}function xw(e,t){let n={x:0,y:0},r=e;for(;r&&r!==t;)if(r instanceof HTMLElement)n.x+=r.offsetLeft,n.y+=r.offsetTop,r=r.offsetParent;else if(r instanceof SVGGraphicsElement&&"getBBox"in r){let{top:o,left:i}=r.getBBox();for(n.x+=i,n.y+=o;r&&r.tagName!=="svg";)r=r.parentNode}return n}var Mw={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]};var Ch={start:0,center:.5,end:1};function UA(e,t,n=0){let r=0;if(Ch[e]!==void 0&&(e=Ch[e]),_p(e)){let o=parseFloat(e);e.endsWith("px")?r=o:e.endsWith("%")?e=o/100:e.endsWith("vw")?r=o/100*document.documentElement.clientWidth:e.endsWith("vh")?r=o/100*document.documentElement.clientHeight:e=o}return Sl(e)&&(r=t*e),n+r}var xj=[0,0];function kw(e,t,n,r){let o=Array.isArray(e)?e:xj,i=0,s=0;return Sl(e)?o=[e,e]:_p(e)&&(e=e.trim(),e.includes(" ")?o=e.split(" "):o=[e,Ch[e]?e:"0"]),i=UA(o[0],n,r),s=UA(o[1],t),i-s}var Mj={x:0,y:0};function Gw(e,t,n){let{offset:r=Mw.All}=n,{target:o=e,axis:i="y"}=n,s=i==="y"?"height":"width",a=o!==e?xw(o,e):Mj,l=o===e?{width:e.scrollWidth,height:e.scrollHeight}:{width:o.clientWidth,height:o.clientHeight},u={width:e.clientWidth,height:e.clientHeight};t[i].offset.length=0;let c=!t[i].interpolate,d=r.length;for(let f=0;f<d;f++){let p=kw(r[f],u[s],l[s],a[i]);!c&&p!==t[i].interpolatorOffsets[f]&&(c=!0),t[i].offset[f]=p}c&&(t[i].interpolate=FA(Ep(d),t[i].offset),t[i].interpolatorOffsets=[...t[i].offset]),t[i].progress=t[i].interpolate(t[i].current)}function kj(e,t=e,n){if(n.x.targetOffset=0,n.y.targetOffset=0,t!==e){let r=t;for(;r&&r!=e;)n.x.targetOffset+=r.offsetLeft,n.y.targetOffset+=r.offsetTop,r=r.offsetParent}n.x.targetLength=t===e?t.scrollWidth:t.clientWidth,n.y.targetLength=t===e?t.scrollHeight:t.clientHeight,n.x.containerLength=e.clientWidth,n.y.containerLength=e.clientHeight}function Fw(e,t,n,r={}){let o=r.axis||"y";return{measure:()=>kj(e,r.target,n),update:i=>{vw(e,n,i),(r.offset||r.target)&&Gw(e,n,r)},notify:Al(t)?()=>t(n):Gj(t,n[o])}}function Gj(e,t){return e.pause(),e.forEachNative((n,{easing:r})=>{var o,i;if(n.updateDuration)r||(n.easing=mp),n.updateDuration(1);else{let s={duration:1e3};r||(s.easing="linear"),(i=(o=n.effect)===null||o===void 0?void 0:o.updateTiming)===null||i===void 0||i.call(o,s)}}),()=>{e.currentTime=t.progress}}var hp=new WeakMap,ww=new WeakMap,VA=new WeakMap,Bw=e=>e===document.documentElement?window:e;function Op(e,t={}){var{container:n=document.documentElement}=t,r=Nw(t,["container"]);let o=VA.get(n);o||(o=new Set,VA.set(n,o));let i=Dw(),s=Fw(n,e,i,r);if(o.add(s),!hp.has(n)){let u=()=>{let d=performance.now();for(let f of o)f.measure();for(let f of o)f.update(d);for(let f of o)f.notify()};hp.set(n,u);let c=Bw(n);window.addEventListener("resize",u,{passive:!0}),n!==document.documentElement&&ww.set(n,Lw(n,u)),c.addEventListener("scroll",u,{passive:!0})}let a=hp.get(n),l=requestAnimationFrame(a);return()=>{var u;typeof e!="function"&&e.stop(),cancelAnimationFrame(l);let c=VA.get(n);if(!c||(c.delete(s),c.size))return;let d=hp.get(n);hp.delete(n),d&&(Bw(n).removeEventListener("scroll",d),(u=ww.get(n))===null||u===void 0||u(),window.removeEventListener("resize",d))}}var Uw={m00:1,m01:0,m02:0,m10:0,m11:1,m12:0};function td(e,t,n=1){return{m00:n,m01:0,m02:e,m10:0,m11:n,m12:t}}var Fj={FADE_IN:{opacity:0,transform:Uw},SCALE_IN:{opacity:0,transform:td(0,0,.5)},SCALE_IN_BOTTOM:{opacity:0,transform:td(0,50,.5)},SLIDE_IN_TOP:{opacity:0,transform:td(0,-150)},SLIDE_IN_BOTTOM:{opacity:0,transform:td(0,150)},SLIDE_IN_LEFT:{opacity:0,transform:td(-150,0)},SLIDE_IN_RIGHT:{opacity:0,transform:td(150,0)},NONE:{opacity:1,transform:Uw}},wj=.75,Qo={IN_CUBIC:[.55,.055,.675,.19],EASE_IN:[.55,.055,.675,.19],OUT_CUBIC:[.215,.61,.355,1],INOUT_CUBIC:[.645,.045,.355,1],LINEAR:[0,0,1,1],IN_BACK_CUBIC:[.3,-.05,.7,-.5],OUT_BACK_CUBIC:[.45,1.45,.8,1],INOUT_BACK_CUBIC:[.7,-.4,.4,1.4],GENTLE_SPRING:[1,100,15,0],SPRING_PRESET_ONE:[1,300,20,0],SPRING_PRESET_TWO:[1,600,
874415,0],SPRING_PRESET_THREE:[1,80,20,0],HOLD:[1,0,1,0]},Vw={easingType:"OUT_CUBIC",easingFunction:Qo.OUT_CUBIC,transitionDuration:.3},Bj={...Vw,transitionDuration:.6},Hw=50,Ww=!0,Uj={type:Kr.FLOAT,resolvedType:nS.FLOAT,value:Hw},Vj={type:Kr.BOOLEAN,resolvedType:nS.BOOLEAN,value:Ww};function bn(e,t){if(!e)return{};let n=t.transform?df(t.transform):Ge.identity();n.multiply(Hj(e.transform));let r=n.toScale(),o=n.offset(),i=n.toDegrees();return{opacity:e.opacity??t.opacity??1,scaleX:r?.x??1,scaleY:r?.y??1,translateX:o?.x??0,translateY:o?.y??0,rotate:i??0}}function HA(e,t,n,r){let o={key:void 0,hasBehaviors:!1,variants:{visible:{}},initial:"visible",appearBehaviorOtherLayer:void 0,scrollTransformOtherLayer:void 0,hasAppearLoadBehavior:!1,hasAppearScrollIntoViewBehavior:!1,hasAppearScrollDirectionBehavior:!1,hasHoverBehavior:!1,hasPressBehavior:!1,hasFocusBehavior:!1,hasScrollSpeedBehavior:!1,hasCursorBehavior:!1,transitionToVisible:void 0,transitionToExit:void 0,transitionToAndFromHover:void 0,transitionToAndFromPress:void 0,transitionToAndFromFocus:void 0,transitionBasedOnScrollDirection:void 0,scrollParallaxSpeed:1,replayAppearBehavior:!0,hasScrollTransformOnScrollBehavior:!1,hasScrollTransformIntoViewBehavior:!1,scrollTransformTransition:void 0,replayScrollTransformBehavior:!0,cursorBehaviorInfo:void 0,hasEnterAnimation:!0,hasExitAnimation:!0};if(e.length===0)return o;o.hasBehaviors=!0,o.variants={visible:bn({},t)};for(let i of e){let s=i.behaviorType,a=!1;switch(s){case yt.Appear:{let l=i;if(!l||n?.[yt.Appear])break;let u=l.trigger;switch(u){case"PAGE_LOAD":o.hasAppearLoadBehavior=!0,o.initial="initial",o.variants.initial=bn(i.enterState,t),o.transitionToVisible=eo(i.enterTransition);break;case"THIS_LAYER_IN_VIEW":o.hasAppearScrollIntoViewBehavior=!0,o.initial="initial",o.variants.initial=bn(i.enterState,t),o.variants.exit=bn(i.exitState??i.enterState,t),o.transitionToVisible=eo(i.enterTransition),o.transitionToExit=eo(i.exitTransition),o.replayAppearBehavior=!i.playsOnce;break;case"OTHER_LAYER_IN_VIEW":o.hasAppearScrollIntoViewBehavior=!0,o.initial="initial",o.variants.initial=bn(i.enterState,t),o.variants.exit=bn(i.exitState??i.enterState,t),o.appearBehaviorOtherLayer=ot(i.otherLayer),o.transitionToVisible=eo(i.enterTransition),o.transitionToExit=eo(i.exitTransition),o.replayAppearBehavior=!i.playsOnce;break;case"SCROLL_DIRECTION":o.hasAppearScrollDirectionBehavior=!0,o.variants.scrollDirection=bn(i.enterState,t),o.transitionBasedOnScrollDirection=eo(i.enterTransition),o.replayAppearBehavior=!i.playsOnce;break;default:xe(u)}break}case yt.ScrollTransform:{let l=i;if(!l||n?.[yt.ScrollTransform])break;a=l.fromState.opacity!==l.toState.opacity;let u=l.trigger;switch(u){case"PAGE_HEIGHT":o.hasScrollTransformOnScrollBehavior=!0,o.initial="initial",o.variants.initial=bn(i.fromState,t),o.variants.exit=bn(i.toState,t),o.scrollTransformTransition=eo(i.transition);break;case"THIS_LAYER_IN_VIEW":o.hasScrollTransformIntoViewBehavior=!0,o.initial="initial",o.variants.initial=bn(i.fromState,t),o.variants.exit=bn(i.toState,t),o.scrollTransformTransition=eo(i.transition),o.replayScrollTransformBehavior=!i.playsOnce;break;case"OTHER_LAYER_IN_VIEW":o.hasScrollTransformIntoViewBehavior=!0,o.initial="initial",o.variants.initial=bn(i.fromState,t),o.variants.exit=bn(i.toState,t),o.scrollTransformTransition=eo(i.transition),o.scrollTransformOtherLayer=ot(i.otherLayer),o.replayScrollTransformBehavior=!i.playsOnce;break;default:xe(u)}break}case yt.Hover:o.hasHoverBehavior=!n?.[yt.Hover],o.variants.hover=bn(i.state,t),o.transitionToAndFromHover=eo(i.transition);break;case yt.Press:o.hasPressBehavior=!n?.[yt.Press],o.variants.press=bn(i.state,t),o.transitionToAndFromPress=eo(i.transition);break;case yt.Focus:o.hasFocusBehavior=!n?.[yt.Focus],o.variants.focus=bn(i.state,t),o.transitionToAndFromFocus=eo(i.transition);break;case yt.ScrollParallax:o.hasScrollSpeedBehavior=!n?.[yt.ScrollParallax],o.scrollParallaxSpeed=i.speed;break;case yt.Cursor:o.hasCursorBehavior=!n?.[yt.Cursor],o.cursorBehaviorInfo={cursorGuid:ot(i.cursorGuid),cursorImage:r,cursorHotspot:{x:i.hotspotX,y:i.hotspotY}};break;case yt.Marquee:break;case yt.Code:break;default:xe(s)}a&&o.scrollTransformTransition&&(o.scrollTransformTransition.repeatDelay=1)}return o.key=JSON.stringify(o),o}function Hj(e){return Array.isArray(e)?Ge.fromNumbers(e[0][0],e[0][1],e[0][2],e[1][0],e[1][1],e[1][2]):typeof e=="object"?Ge.fromNumbers(e.m00,e.m01,e.m02,e.m10,e.m11,e.m12):Ge.identity()}function eo(e){if(e)switch(e.easingType){case"IN_CUBIC":return{ease:"easeIn",duration:e.transitionDuration,delay:e.delay};case"OUT_CUBIC":return{ease:"easeOut",duration:e.transitionDuration,delay:e.delay};case"INOUT_CUBIC":return{ease:"easeInOut",duration:e.transitionDuration,delay:e.delay};case"LINEAR":return{ease:"linear",duration:e.transitionDuration,delay:e.delay};case"IN_BACK_CUBIC":return{ease:Qo.IN_BACK_CUBIC,duration:e.transitionDuration,delay:e.delay};case"OUT_BACK_CUBIC":return{ease:Qo.OUT_BACK_CUBIC,duration:e.transitionDuration,delay:e.delay};case"INOUT_BACK_CUBIC":return{ease:Qo.INOUT_BACK_CUBIC,duration:e.transitionDuration,delay:e.delay};case"CUSTOM_CUBIC":return{ease:e.easingFunction,duration:e.transitionDuration,delay:e.delay};case"GENTLE_SPRING":case"SPRING_PRESET_ONE":case"SPRING_PRESET_TWO":case"SPRING_PRESET_THREE":return{type:"spring",stiffness:Qo[e.easingType][1],damping:Qo[e.easingType][2],mass:Qo[e.easingType][0],delay:e.delay};case"CUSTOM_SPRING":{let t=e.easingFunction??Qo.GENTLE_SPRING;return{type:"spring",stiffness:t[1],damping:t[2],mass:t[0],delay:e.delay}}default:return e.easingType,`${e.easingType}`,{ease:"easeOut",duration:e.transitionDuration}}}var Wj=(...e)=>fe().env==="server"?()=>{}:(0,nr.useLayoutEffect)(...e);function to(e,t,n,r,o){let i=fe(),{disableBehaviors:s}=i.renderOptions,a=As(r,Ue),l=(0,nr.useRef)(null),u=(0,nr.useRef)(null),{key:c,hasBehaviors:d,variants:f,initial:p,appearBehaviorOtherLayer:_,scrollTransformOtherLayer:T,hasAppearLoadBehavior:h,hasAppearScrollIntoViewBehavior:m,hasAppearScrollDirectionBehavior:E,hasHoverBehavior:O,hasPressBehavior:g,hasScrollTransformOnScrollBehavior:I,hasScrollTransformIntoViewBehavior:S,hasScrollSpeedBehavior:A,hasCursorBehavior:R,transitionToVisible:y,transitionToExit:b,transitionToAndFromHover:L,transitionToAndFromPress:D,transitionBasedOnScrollDirection:F,scrollParallaxSpeed:H,replayAppearBehavior:N,replayScrollTransformBehavior:K,scrollTransformTransition:C}=(0,nr.useMemo)(()=>{let Le=Object.entries(s?{}:t??{}).map(([De,ae])=>({...ae,behaviorType:De})).filter(De=>De.behaviorType!=="code"),We=HA(Le,a,o);return eD(i,We),We},[s,t,a,o,i]),M=I||S,P=(0,nr.useMemo)(()=>M?{fromState:f[be.INITIAL],toState:f[be.EXIT]}:null,[M,f]),z=(0,nr.useCallback)(()=>Yj({domElement:l.current,hasBehaviors:d,variants:f,hasAppearLoadBehavior:h,hasAppearScrollIntoViewBehavior:m,hasAppearScrollDirectionBehavior:E,hasHoverBehavior:O,hasPressBehavior:g,hasScrollTransformBehavior:M,hasScrollTransformOnScrollBehavior:I,hasScrollTransformIntoViewBehavior:S,hasScrollSpeedBehavior:A,scrollTransformState:P,transitionToVisible:y,transitionToExit:b,transitionToAndFromHover:L,transitionToAndFromPress:D,transitionBasedOnScrollDirection:F,scrollTransformTransition:C,appearBehaviorOtherLayer:_,scrollTransformOtherLayer:T,replayAppearBehavior:N,replayScrollTransformBehavior:K,scrollParallaxSpeed:H}),[d,f,h,m,E,O,g,M,I,S,A,P,y,b,L,D,F,C,_,T,N,K,H]),Ee=(0,nr.useCallback)(ye=>{l.current&&u.current?.(),l.current=ye,u.current=z?.(),ye?mR(e,ye):ER(e)},[e,z]),pe=(0,nr.useRef)(e);return Wj(()=>{l.current&&mR(e,l.current),pe.current!==e&&(ER(pe.current),pe.current=e)},[l,e]),QD({ref:l,hasCursorBehavior:R,assets:n,behaviors:t}),(0,nr.useEffect)(()=>
8744{if(!(!l.current||!d))return u.current=z(),()=>u.current?.()},[z,d]),d?{ref:Ee,key:c,motionProps:{initial:p,variants:f}}:{ref:Ee,key:c,motionProps:{}}}function Yj(e){let{domElement:t,hasBehaviors:n,variants:r,hasAppearLoadBehavior:o,hasAppearScrollIntoViewBehavior:i,hasAppearScrollDirectionBehavior:s,hasHoverBehavior:a,hasPressBehavior:l,hasScrollTransformBehavior:u,hasScrollTransformOnScrollBehavior:c,hasScrollTransformIntoViewBehavior:d,hasScrollSpeedBehavior:f,scrollTransformState:p,transitionToVisible:_,transitionToExit:T,transitionToAndFromHover:h,transitionToAndFromPress:m,transitionBasedOnScrollDirection:E,scrollTransformTransition:O,appearBehaviorOtherLayer:g,scrollTransformOtherLayer:I,replayAppearBehavior:S,replayScrollTransformBehavior:A,scrollParallaxSpeed:R}=e;if(!t||!n)return()=>{};let y=!1,b=[()=>{y=!0}];if(o&&tr(t,r[be.VISIBLE],_),i){let L=D=>{let F=!1,H;function N(){y||!t||!F||H||(H=tr(t,r[be.VISIBLE],_).then(()=>{H=void 0,K()}),S||C())}function K(){y||!t||F||H||(H=tr(t,r[be.EXIT]??r[be.VISIBLE],T).then(()=>{H=void 0,tr(t,r[be.INITIAL]??r[be.VISIBLE],{duration:0}),N()}))}let C=BA(D,()=>(F=!0,N(),()=>{F=!1,K()}));b.push(C)};g?T_(g).then(D=>{y||L(D)}):t&&L(t)}if(s){let L=Op(D=>{let F=D.y.velocity;F>0?(tr(t,r[be.SCROLL_DIRECTION]??r[be.VISIBLE],E),S||L()):F<0&&tr(t,r[be.VISIBLE],E)},{container:_R()});b.push(L)}if(a){let L=F=>{F.pointerType!=="touch"&&tr(t,r[be.HOVER]??r[be.VISIBLE],h)},D=F=>{F.pointerType!=="touch"&&tr(t,r[be.VISIBLE],h)};t.addEventListener("pointerenter",L),t.addEventListener("pointerleave",D),b.push(()=>{t.removeEventListener("pointerenter",L),t.removeEventListener("pointerleave",D)})}if(l){let L=()=>{tr(t,r[be.PRESS]??r[be.VISIBLE],m),window.addEventListener("pointerup",D),window.addEventListener("pointercancel",D)},D=()=>{tr(t,r[be.VISIBLE],m),window.removeEventListener("pointerup",D),window.removeEventListener("pointercancel",D)};t.addEventListener("pointerdown",L),t.addEventListener("pointerup",D),t.addEventListener("pointercancel",D),b.push(()=>{t.removeEventListener("pointerdown",L),t.removeEventListener("pointerup",D),t.removeEventListener("pointercancel",D),window.removeEventListener("pointerup",D),window.removeEventListener("pointercancel",D)})}if(u){let L=D=>{let F=!1,H=Op(N=>{if(F)return;let K=0;if(c)K=N.y.scrollLength>0?N.y.current/N.y.scrollLength:1;else if(d){let De=N.y.current+N.y.containerLength,ae=N.y.targetOffset,Oe=N.y.targetLength,oe=(De-ae)/Oe;K=Math.min(1,Math.max(0,oe))}let{fromState:C,toState:M}=p,P=Js(K,[0,1],[C.opacity,M.opacity]),z=Js(K,[0,1],[C.scaleX,M.scaleX]),Ee=Js(K,[0,1],[C.scaleY,M.scaleY]),pe=Js(K,[0,1],[C.translateX,M.translateX]),ye=Js(K,[0,1],[C.translateY,M.translateY]),Le=Js(K,[0,1],[C.rotate,M.rotate]);K===1&&!A&&(F=!0);let We=()=>{tr(t,{opacity:P,scaleX:z,scaleY:Ee,translateX:pe,translateY:ye,rotate:Le},O)};ue.postRender(We)},{container:hR(D),target:D});b.push(H)};I?T_(I).then(D=>{y||L(D)}):t&&L(t)}if(f){let L=Op(D=>{if(R!==1){let F=D.y.current*(1-R);tr(t,{y:F},{duration:0})}},{container:hR(t),target:t});b.push(L)}return()=>{b.forEach(L=>L())}}var Yw=v(W());function ei(...e){return(0,Yw.useMemo)(()=>t=>{e.forEach(n=>{if(n!=null){if(typeof n=="function"){n(t);return}try{n.current=t}catch{throw new te(`Cannot assign value '${JSON.stringify(t)}' to ref '${JSON.stringify(n)}'`)}}})},e)}var Kw=v(W());function Kj(){return()=>{}}function ea(){return Kw.useSyncExternalStore(Kj,()=>!0,()=>!1)}function rr(){let e=!ea(),t=fe();return Hu(t.renderOptions)||e}var zw=v(W());function nd(){return zw.default.useRef(0)}function zj({node:e,src:t,motionKey:n,websiteContext:r}){let o=ta.useRef(null),i=e.accessibleLabel||"",{disableInlineSvgGeneration:s}=r.renderOptions,a=!s&&e.type==="SVG"&&e.isDynamic,l=Xw.get(e.hash),u=ta.useCallback(c=>{if(o.current){o.current.replaceChildren(c.cloneNode(!0));let d=o.current.querySelector("svg");d&&(i?(d.setAttribute("aria-label",i),d.setAttribute("role","img")):d.setAttribute("role","presentation"))}},[i]);return ta.useEffect(()=>{if(!a)return;if(l&&o.current){u(l);return}if(!t)return;let c=new AbortController,d=async()=>{try{let p=await fetch(t,{signal:c.signal});f(await p.text())}catch(p){if(console.error("Error loading SVG",p),p.name!=="AbortError")throw new ht("Error loading SVG",p)}},f=p=>
8744{if(p==="")return;if(!p){console.warn("No SVG URL provided for",e.id);return}let _=new DOMParser().parseFromString(p,"image/svg+xml"),T=_.querySelector("svg"),h=_.querySelector("parsererror");if(!T||h){console.error("Unable to load SVG",h);return}Xw.set(e.hash,T),u(T)};return d(),()=>{c.abort()}},[t,e.hash,l,e.id,e.type,a,n,u]),o}var Xw=new Map,jw=ta.forwardRef(function({node:t,parent:n,interactionHandlers:r,context:o,zIndex:i,transitionProps:s,codeBehaviorProps:a,websiteContext:l},u){let c=nd(),d=rr(),f=(0,WA.useRef)(null),p=(0,WA.useRef)(null),_=s?.smartAnimateType??ee.NONE,{nodeCanAnimateRotation:T,layoutStyles:h,opacity:m,asset:E,src:O}=Ow({node:t,parent:n,context:o,zIndex:i,smartAnimateType:_,previousRotation:c,precomputeTransforms:d,websiteContext:l}),g={opacity:m,transform:zr(h.outer.transform)},I=Zr(t,o),{motionProps:S,key:A,ref:R}=to(t.id,t.behaviors,t.assets,g,I),y=ei(u,R),b=zj({node:t,src:O,motionKey:A,websiteContext:l});return Ne(gw({node:t,parent:n,interactionHandlers:r,context:o,transitionProps:s,codeBehaviorProps:a,websiteContext:l,layerData:{nodeCanAnimateRotation:T,layoutStyles:h,opacity:m,asset:E,src:O},hookState:{behaviorProps:S,key:A,behaviorsRef:R,mergedRef:y,outerRef:f,codeBehaviorWrapperRef:p,previousRotation:c,svgContainerRef:b,ref:u}}),l)});var rd=v(W());function $w({node:e,smartAnimateType:t,nodeHasStrokes:n,transitionData:r,borderStyles:o,strokeColorKeyframeProps:i}){let s=on(r),{motionTransitionProps:a,cssStyles:l}=Yu(t,1,o??{},void 0,r,n?s:void 0),u=Ai(t,r,o?.transform),c=e.id,d=i?.colorAnimate?.borderColor!==void 0,f=t!==ee.NONE||d,p={...a,...u},_=d?_h(p,"borderColor",i.colorInitial.borderColor,i.colorAnimate.borderColor,i.colorTransition.borderColor):p;return ne({Tag:f?er.div:"div",key:"border",nodeId:c,idSuffix:"border",styleSet:l,attributes:{"aria-hidden":!0,...f?_:{}}})}function Zw(e){let{children:t,parentTransitionProps:n,onTransitionEnd:r,websiteContext:o}=e;if(!((n?.smartAnimateType??ee.NONE)===ee.INSTANCE_SUBTREE))return t;let a=aD(n?.transitionData,r);return o.sitesRenderers.renderAnimatePresence({...a,children:t?.map(l=>Ne(l,o))})}var Xj=e=>{let t=e.layoutMode;if(e.type!=="FRAME"||!(t==="HORIZONTAL"||t==="VERTICAL"))return;let n;e.primaryAxisAlignItems==="MAX"?n="flex-end":["CENTER","SPACE_EVENLY_LEGACY"].includes(e.primaryAxisAlignItems)&&(n="center");let r;if(e.counterAxisAlignItems==="MAX"?r="flex-end":e.counterAxisAlignItems==="CENTER"&&(r="center"),!(!n&&!r))return{display:"flex",flexDirection:t==="VERTICAL"?"column":"row",alignItems:r,justifyContent:n}};function Jw({node:e,children:t,style:n,innerTag:r="div"}){let{overflow:o,overflowX:i,overflowY:s,borderRadius:a,...l}=n,u={overflow:o,overflowX:i,overflowY:s,...Xj(e)},c=Object.values(u).some(m=>m!==void 0),d=ne({Tag:r,key:"clipper",nodeId:e.id,idSuffix:"al-clipper-inner",styleSet:l,children:t});if(!c)return d;let{minWidth:f,minHeight:p,maxWidth:_,maxHeight:T}=n,h=o!==void 0||i!==void 0||s!==void 0;return ne({Tag:"div",key:"clipper",nodeId:e.id,idSuffix:"al-clipper-outer",styleSet:{...u,borderRadius:h?a:void 0,width:"100%",height:"100%",minWidth:f,minHeight:p,maxWidth:_,maxHeight:T},children:d})}function qw({node:e,style:t,children:n,innerTag:r="div"}){return ne({Tag:r,key:"clipper",nodeId:e.id,idSuffix:"clipper",styleSet:t,children:n})}var Qw=(e,t,n,r,o)=>{if(!It(e))return!1;let i=!!t,s=i&&It(t),a=i&&jr(t),l=e.paddingLeft+e.paddingRight;if(l>0){let c=Mt(e,t,n,o,r);switch(c){case re.FILL_PARENT:if(s&&!a)return!0;break;case re.HUG_CONTENTS:break;case re.FIXED:if(l>e.size.x)return!0;break;default:xe(c)}}let u=e.paddingTop+e.paddingBottom;if(u>0){let c=un(e,t,n,o,r);switch(c){case re.FILL_PARENT:if(s&&!a)return!0;break;case re.HUG_CONTENTS:break;case re.FIXED:if(u>e.size.y)return!0;break;default:xe(c)}}return!1};var jj={width:"100%",height:"100%",position:"relative"};function eB(e){let{parent:t,needsAutolayoutClipper:n,needsClipper:r,websiteContext:o,children:i,listTag:s,styles:{clipperStyles:a,innerStyles:l,overflowStyles:u,borderDisplacement:c,wrapperSizeStyles:d,marqueeSizeStyles:f}}=e,p=Mn(t,o.renderOptions),_=It(t),T={...d,...f,...u},h={};_&&(typeof t.minWidth=="number"&&(h.minWidth="inherit"),typeof t.minHeight=="number"&&(h.minHeight="inherit"),typeof t.maxWidth=="number"&&(h.maxWidth="inherit"),typeof t.maxHeight=="number"&&(h.maxHeight="inherit")),r&&(T={...T,...a});let m;if(n||r){let O=Object.values(u).some(I=>I!==void 0)?"inherit":void 0,g={node:t,innerTag:s,style:{...h,...a,...l,...u,...c,...p?d:jj,borderRadius:O},websiteContext:o,children:i};m=n?Jw(g):qw(g)}else m=i;return p?o.sitesRenderers.renderMarquee({node:t,style:T,websiteContext:o,children:m}):m}function YA(e,t){return pS(e,t?.inheritedEffects).some(n=>n.type==="INNER_SHADOW")}function tB({node:e,parent:t,context:n,alwaysRenderBorderStyles:r,websiteContext:o}){if(!YA(e,n))return null;let i=$r(e)||r?BE(e,t):void 0,s={position:"absolute",inset:0,borderRadius:"inherit",pointerEvents:"none",...ES(e,pS(e,n?.inheritedEffects),o.renderOptions),...i};return ne({Tag:"div",key:"innerShadow",nodeId:e.id,idSuffix:"shadow",styleSet:s})}function Ph({children:e,context:t,parent:n,renderOptions:r,reverseZIndex:o=!1,codeBehaviorProps:i,renderFigmaLayer:s,websiteContext:a}){let l=$j({children:e,context:F_(r,t,n.absoluteBoundingBox),parent:n});return l.length?l.map(([u,{key:c,context:d}],f)=>s({name:"sites-layer",nodeId:u.id,childKey:c,node:u,parent:n,context:d,zIndex:o?l.length-f:void 0,codeBehaviorProps:i,websiteContext:a})):null}function $j({children:e,context:t,parent:n}){let r={...t},o=t?.masks||[];e.sort((a,l)=>Kf(a,n)&&!Kf(l,n)?-1:0);let i=[];for(let a of e)"isMask"in a&&a.visible&&a.isMask?r={...r,masks:[...o,a]}:i.push([a,{key:a.key,context:r}]);if(!t?.negativeItemSpacing)return i;let s=0;for(let a=i.length-1;a>=0;a--){let[l]=i[a];if(l.layoutPositioning!=="ABSOLUTE"&&l.visible){s=a;break}}return i.map(([a,l],u)=>a.layoutPositioning==="ABSOLUTE"||u===s?[a,{...l,context:{...l.context,negativeItemSpacing:void 0}}]:[a,l])}var KA="data-breakpoint",zA="data-breakpoint-id",Zj="data-width",Jj="data-height";function qj(e,t){let n=e.getAssetURL;if(!t||!n)return;let r="filter0",o=n(t),i;return i=new URL(o),i.hash=r,i=i.toString(),i}var Qj=(e,t,n,r,o,i,s,a,l,u)=>{let{minimizeAutoLayoutWrappers:c,dontUseChildDivForBorderStyles:d,useFigmaComponents:f}=u,p=f&&e.type==="FRAME"&&(e.originalType==="COMPONENT"||e.originalType==="INSTANCE"),_=t&&It(t),T=It(e),h=$r(e)||a,m=jr(e),E=_&&jr(t),O=h&&(ov(e)||T&&!m||T&&m&&!e.strokesIncludedInLayout||_&&!E),g=e.effects&&e.effects.some(L=>L.type==="BACKGROUND_BLUR")&&e.effects.some(L=>L.type==="LAYER_BLUR"),I=r.length>1||r.some(L=>
8744L.needsBackgroundDiv)||i||g||YA(e,l),S;d?S=!1:S=h&&(p||O||I);let A=r.length>0&&I,R;c?R=!1:R=T&&(p||Qw(e,t,n,l,u));let y=n.length>0&&(S&&o||R||$a(t)||i||s);return{needsBackgroundDiv:A,needsBorderDiv:S,needsClipper:y,needsAutolayoutClipper:T&&(R||s)}};function nB(e){let{node:t,parent:n,children:r,context:o,zIndex:i,smartAnimateType:s,previousRotation:a,precomputeTransforms:l,renderOptions:u}=e,{shouldOutputVariables:c,codeSyntaxLanguage:d}=u,f=I1(t,n,r,u,o),p=Wo(s,t.maybeAnimateRotation),_=Xn({node:t,parent:n,context:o,zIndex:i,children:r,itemSpacing:f,codeSyntaxLanguage:d,options:{canAnimate:p,previousRotation:a,shouldOutputVariables:c,precomputeTransforms:l},renderOptions:u}),T=cn(o,t);return{itemSpacing:f,nodeCanAnimateRotation:p,layoutStyles:_,opacity:T}}function rB(e){let{node:t,parent:n,children:r,context:o,interactionHandlers:i,transitionProps:s,ref:a,websiteContext:l,previousRotation:u,outerRef:c,codeBehaviorWrapperRef:d,smartAnimateType:f,itemSpacing:p,nodeCanAnimateRotation:_,layoutStyles:T,opacity:h,codeBehaviorProps:m,behaviorProps:E,behaviorKey:O,parentRefObject:g,combinedRef:I,mergedRef:S,renderFigmaLayer:A}=e,{renderOptions:R}=l,{useFigmaClipContentsForOverflow:y,rootNodeStyle:b,shouldOutputVariables:L,codeSyntaxLanguage:D}=R,F=$n({node:t,context:o,websiteContext:l}),H=LE(t.fills,t.assets,{width:t.size.x,height:t.size.y},{isDecorativeImage:t.isDecorativeImage??!1,hasChildren:r.length>0},l),N=s?.transitionData,K=on(N),C=t.interactions??[],M=Fo(C),P=po(C),z=Mn(t,l.renderOptions),Ee=H.some(no=>no.imageProps),pe=H.some(no=>no.videoProps),ye=Ko(t,Ee||pe||z),Le=qj(l,t.effectSvgFileName),We={...kn(h,L,t.boundVariables?.opacity?.resolvedName,D&&t.boundVariables?.opacity?.resolvedCodeSyntax?.[D]),...Ni(t)},De=t.scrollBehavior==="FIXED"||t.scrollBehavior==="STICKY_SCROLLS",ae=f===ee.INSTANCE_SUBTREE,Oe=o?.withinInteractiveElement||Object.keys(E).length>0||ae,oe=Ms(t,P,M,Oe,z),ft=gr(C,i,Oe,l),et=B_(oe),he=et!==null,ke=r?.every(no=>no.layoutAlign==="STRETCH")??!0,Ye=t.type==="RECTANGLE"||"clipsContent"in t&&t.clipsContent,ce=ae,{needsBackgroundDiv:tt,needsBorderDiv:pn,needsClipper:Ft,needsAutolayoutClipper:Cr}=Qj(t,n,r,H,Ye,ae,z,ce,o,R),sr=e7(t,tt,pn,l),Yi={group:void 0,isInStickyOrFixedTree:De||(o?.isInStickyOrFixedTree??!1),negativeItemSpacing:p&&p<0?p:void 0,withinInteractiveElement:o?.withinInteractiveElement||P||M,parentIsList:he,allChildrenAreFillWidth:ke,borderDisplacement:pn?void 0:FE(t),constrainingFrameSize:{width:t.size.x,height:t.size.y},inheritedEffects:yf(t,o?.inheritedEffects)},Pr={"data-name":Jr(l,t)};o?.dataAttributes&&Object.entries(o.dataAttributes).forEach(([no,SV])=>{Pr[no]=SV});let ua=$r(t),Dr=iv(t,n),{clipperStyles:Ki,containerStyles:zi,borderStyles:vr,sharedBackgroundStyles:Xi}=R1(t,n,We,ce,Le,pn,R),bp=jn({node:t,parent:n,children:r,renderOptions:R}),Lp=A1({node:t,parent:n,context:o,children:r,renderOptions:R}),ni=r?.length?dc(t,n,o,l):{};n||(b==="component"?ni={overflow:Ye?"clip":void 0}:y?ni={overflow:Ye&&(zi.borderRadius||zi.borderTopLeftRadius||zi.borderTopRightRadius||zi.borderBottomLeftRadius||zi.borderBottomRightRadius)?"clip":void 0}:b==="independent"?ni={overflow:Ye?"clip":void 0}:o?.renderedByCode||l.withBaseStyles&&(Pr["data-page-overflowx"]=ni.overflowX,ni={overflow:"clip"}));
8744let Vl=vr?$w({node:t,smartAnimateType:f,nodeHasStrokes:ua,transitionData:N,borderStyles:vr,strokeColorKeyframeProps:sr?.strokeColorKeyframeProps??null}):null,Cp=dw({node:t,parent:n,children:r,sharedBackgroundStyles:{...Xi,...Dr},backgroundInfo:H,smartAnimateType:f,transitionData:N,context:Yi,fillColorKeyframeProps:sr?.fillColorKeyframeProps??null,websiteContext:l});tt||(T.outer.mixBlendMode||=H[0]?.backgroundStyles?.mixBlendMode);let{mixBlendMode:aO,...md}=H[0]?.backgroundStyles??{},Hl=Ft||Cr,ca={...zi,...Hl?{}:T.inner,...T.stickyWrapper?PR:{},...Hl?{}:Ki,...Hl?{}:ni,...!tt&&l.withBaseStyles?{...Xi,...md}:{},...Qr({node:t,parent:n,transitionProps:s,renderOptions:R,maskStyles:F}),...T.transform3d,...o?.style||{}};ft.onClick&&T.stickyWrapper&&ca.display===void 0&&(ca.display="block");let lO=t.type==="FRAME"&&t.isBreakpointFrame,Pp=Ph({children:r,context:Yi,parent:t,renderOptions:R,reverseZIndex:t.type!=="RECTANGLE"&&"itemReverseZIndex"in t&&!!t.itemReverseZIndex,codeBehaviorProps:{parentRef:g},renderFigmaLayer:A,websiteContext:l}),YN=eB({parent:t,needsAutolayoutClipper:Cr,needsClipper:Ft,websiteContext:l,listTag:Ft&&he?et:void 0,styles:{clipperStyles:Ki,innerStyles:T.inner,overflowStyles:ni,borderDisplacement:Dr,wrapperSizeStyles:bp,marqueeSizeStyles:Lp},children:Zw({parentTransitionProps:t.transitionProps,onTransitionEnd:K,children:Pp,websiteContext:l})});if(lO&&(Pr[zA]=fo(t.id),Pr[KA]="true",Pr[Zj]=t.size.x,Pr[Jj]=t.size.y,l.isFigmake))return YN;if(n&&(Ft||pn)){let no=g1(t,n);no&&(T.outer.flex=no)}let Dp=wn({node:t,parent:n,context:o,transitionProps:s,outerStyles:T.outer,wrapperSizeStyles:bp,stickyWrapperStyles:T.stickyWrapper,transformChildWrapperStyles:T.transform,renderOptions:R,maskStyles:F}),OV=sr?.strippedProps,KN=Il({keyframeMotionPropsOverride:OV,node:t,context:o,renderOptions:R,smartAnimateType:f,wrappersToRender:Dp}),gV=mr({children:[tt?Cp:null,Ye?null:Vl,YN,tB({node:t,parent:n,context:o,alwaysRenderBorderStyles:ce,websiteContext:l}),Ye?Vl:null]}),IV=Ao({semanticTagInfo:{semanticTag:Ft&&he?"div":oe.semanticTag,interactiveSemanticTag:z&&oe.interactiveSemanticTag==="ul"?null:oe.interactiveSemanticTag},key:O,context:o,styles:ca,ref:_?I:S,nodeId:Dp.motionLayerContent.nodeId,attributes:{...ft,...Pr,...ye},node:t,keyframeMotionPropsOverride:KN.childKeyframeMotionPropsOverride,wrappers:Dp.motionLayerContent,websiteContext:l,transitionProps:{opacity:h,smartAnimateType:f,behaviorProps:E,transitionData:N,onTransitionEnd:K},children:gV});return yr({node:t,parent:n,context:o,transitionProps:s,codeBehaviorProps:m,layerRef:a,outerRef:c,codeBehaviorWrapperRef:d,previousRotation:u,wrappersToRender:Dp,websiteContext:l,keyframeMotionPropsOverride:KN.wrapperKeyframeMotionPropsOverride,children:IV})}function e7(e,t,n,r){if(!t&&!n)return null;let o=e.keyframeData;if(!o)return null;let i=Li(o);if(!i)return null;let s=ho(r),a=s?rl(i,s.ease()):i,l=t&&(a.colorAnimate.background!==void 0||a.colorInitial.background!==void 0),u=n&&(a.colorAnimate.borderColor!==void 0||a.colorInitial.borderColor!==void 0);if(!l&&!u)return null;let c=l?{colorInitial:{background:a.colorInitial.background},colorAnimate:{background:a.colorAnimate.background},colorTransition:{background:a.colorTransition.background}}:null,d=u?{colorInitial:{borderColor:a.colorInitial.borderColor},colorAnimate:{borderColor:a.colorAnimate.borderColor},colorTransition:{borderColor:a.colorTransition.borderColor}}:null,f={...i.colorInitial},p={...i.colorAnimate},_={...i.colorTransition};l&&(delete f.background,delete p.background,delete _.background),u&&(delete f.borderColor,delete p.borderColor,delete _.borderColor);let T={...i,colorInitial:f,colorAnimate:p,colorTransition:_};return{fillColorKeyframeProps:c,strokeColorKeyframeProps:d,strippedProps:T}}var Dh=(0,rd.forwardRef)(function({node:t,parent:n,children:r,context:o,zIndex:i,interactionHandlers:s,transitionProps:a,codeBehaviorProps:l,websiteContext:u},c){let{renderOptions:d}=u,f=nd(),p=rr(),_=(0,rd.useRef)(null),T=(0,rd.useRef)(null),h=a?.smartAnimateType??ee.NONE,{itemSpacing:m,nodeCanAnimateRotation:E,layoutStyles:O,opacity:g}=nB({node:t,parent:n,children:r,context:o,zIndex:i,smartAnimateType:h,previousRotation:f,precomputeTransforms:p,renderOptions:d}),I=Zr(t,o),{motionProps:S,key:A,ref:R}=to(t.id,t.behaviors,t.assets,{opacity:g,transform:zr(O.outer.transform)},I),y=(0,rd.useRef)(null),b=ei(R,y),L=ei(c,b);return Ne(rB({node:t,parent:n,children:r,context:o,interactionHandlers:s,transitionProps:a,ref:c,websiteContext:u,previousRotation:f,outerRef:_,codeBehaviorWrapperRef:T,smartAnimateType:h,itemSpacing:m,nodeCanAnimateRotation:E,layoutStyles:O,opacity:g,codeBehaviorProps:l,behaviorProps:S,behaviorKey:A,parentRefObject:y,combinedRef:b,mergedRef:L,renderFigmaLayer:od}),u)});var ut=v(_e()),AB=v(W()),Vi=v(W());var t7={TOP:"flex-start",BOTTOM:"flex-end",CENTER:"center"}
8744,n7={NONE:"none",UNDERLINE:"underline",STRIKETHROUGH:"line-through"},r7={ORIGINAL:"none",SMALL_CAPS:"none",SMALL_CAPS_FORCED:"none",UPPER:"uppercase",LOWER:"lowercase",TITLE:"capitalize"},o7={ORIGINAL:"normal",SMALL_CAPS:"small-caps",SMALL_CAPS_FORCED:"all-small-caps",UPPER:"normal",LOWER:"normal",TITLE:"normal"},i7={SUPER:"0.55em",SUB:"-0.25em",NORMAL:void 0};function yl(e,t,n,r,o){let{shouldOutputVariables:i,codeSyntaxLanguage:s,optimizeForTailwindConversion:a,disableFontFallbacks:l}=o.renderOptions,{fallbackFonts:u,fontFamily:c,fontVariations:d,fontSize:f,fontStyle:p,textCase:_,opentypeFlags:T,letterSpacingUnit:h,letterSpacingValue:m}=e.style,E={};if(c){let g=`${c}:${p}`,I=s7(g,u??[],l);if(i){let D="boundVariables"in e?e.boundVariables:null,F=le(s&&D?.fontFamily?.[0]?.resolvedCodeSyntax?.[s],D?.fontFamily?.[0]?.resolvedName,I);E.fontFamily=F??I}else E.fontFamily=I;E.wordBreak="break-word";let S=n.get(g),A=u?.map(D=>n.get(`${D.fontFamily}:${D.fontStyle}`)).filter(D=>D?.variationAxes?.length)??[],R=!!S?.variationAxes?.length,y=!l&&A.length>0,b=R||A.length>0,L=S?.variationAxes??A[0]?.variationAxes??[];if(b){let D=[...L,{name:"OpticalSize",value:void 0,tag:"opsz"}].filter(F=>d?.[F.name]!==void 0||F.value!==void 0).filter(F=>F.tag==="wght"?!R&&y?!0:(E.fontWeight=d?.[F.name]??F.value,!1):F.tag==="slnt"?F.value===0?(E.fontStyle="normal",!1):d&&F.name in d:!0);D.length>0?E.fontVariationSettings=D.map(F=>{let H=d?.[F.name]??F.value;return`"${F.tag}" ${H}`}).join(", "):a||(E.fontVariationSettings="normal"),S?.italic&&(E.fontStyle="italic")}else E.fontStyle=S?.italic?"italic":"normal"}let O=e.style.fills||"fills"in e&&e.fills||null;if(O?.length===0&&(E.color="transparent",a||(E.WebkitTextFillColor="transparent")),O){let g=O.filter(S=>S.visible!==!1&&S.type==="SOLID"),I=O.filter(S=>S.visible!==!1&&S.type!=="SOLID");if(g.length>0){let S=Pf(g.map(A=>new Dt(A.color,o.renderOptions,A.opacity,Vt,A.boundVariables?.color?.resolvedName,s&&A.boundVariables?.color?.resolvedCodeSyntax?.[s])),o.renderOptions);E.color=S.value,a||(E.WebkitTextFillColor=S.value)}if(I.length){let S=LE(O,t,r,{isDecorativeImage:!1,disableImageTag:!0},o)[0]?.backgroundStyles;S&&Object.keys(S).length&&(E.color="transparent",E.backgroundClip="text",a||(E.WebkitBackgroundClip="text",E.WebkitTextFillColor="transparent"),Object.assign(E,S))}}if(_){let g=r7[_]||"none";g!=="none"&&(E.textTransform=g);let I=o7[_]||"normal";I!=="normal"&&(E.fontVariantCaps=I)}if(T&&(E.fontFeatureSettings=Object.entries(T).map(([g,I])=>`"${g.toLowerCase()}" ${I}`).join(", ")),f&&(E.fontSize=e.style.responsiveTextStyleVariants?.length&&!a?`var(--responsive-font-size,${x(f)}px)`:`${x(f)}px`),h&&m!==void 0){let g=h==="PIXELS"?`${x(m,4)}px`:`${x(m/100*(f??16),4)}px`;E.letterSpacing=e.style.responsiveTextStyleVariants?.length&&!a?`var(--responsive-letter-spacing,${g})`:g}if(!a&&e.style.responsiveTextStyleVariants?.length){let g=e.style.responsiveTextStyleVariants.sort((I,S)=>I.minWidth-S.minWidth);E.media=Object.fromEntries(g.map(I=>{let S=yl({...e,style:I.style},t,n,r,o),A={};if(I.style.fontSize!==void 0&&(A["--responsive-font-size"]=`${x(I.style.fontSize)}px`),I.style.letterSpacing!==void 0){let H=I.style.letterSpacingUnit==="PIXELS"?`${x(I.style.letterSpacing,4)}px`:`${x(I.style.letterSpacing/100*(I.style.fontSize??16),4)}px`;A["--responsive-letter-spacing"]=H}let R=Nl(I,o.renderOptions);R&&(A["--responsive-line-height"]=R);let{fontSize:y,letterSpacing:b,lineHeight:L,...D}=S,F={...D,...A};return[`(min-width: ${I.minWidth}px)`,F]}))}if(i){let g="boundVariables"in e?e.boundVariables:null;E.fontStyle&&(E.fontStyle=le(s&&g?.fontStyle?.[0]?.resolvedCodeSyntax?.[s],g?.fontStyle?.[0]?.resolvedName,E.fontStyle)??E.fontStyle),E.fontWeight&&(E.fontWeight=le(s&&g?.fontWeight?.[0]?.resolvedCodeSyntax?.[s],g?.fontWeight?.[0]?.resolvedName,E.fontWeight)??E.fontWeight),E.fontSize&&(E.fontSize=le(s&&g?.fontSize?.[0]?.resolvedCodeSyntax?.[s],g?.fontSize?.[0]?.resolvedName,E.fontSize)??E.fontSize),E.letterSpacing&&(E.letterSpacing=le(s&&g?.letterSpacing?.[0]?.resolvedCodeSyntax?.[s],g?.letterSpacing?.[0]?.resolvedName,E.letterSpacing)??E.letterSpacing)}return E}
8744function oB(e,t,n){let r={};return e.textAlignHorizontal&&e.textAlignHorizontal!=="LEFT"?r.textAlign=e.textAlignHorizontal==="JUSTIFIED"?"justify":e.textAlignHorizontal?.toLowerCase():(e.accessibleHTMLTag==="BUTTON"||n?.withinInteractiveElement||n?.hasButton)&&(!e.textAlignHorizontal||e.textAlignHorizontal==="LEFT")&&(r.textAlign="left"),e.textAlignVertical!=="TOP"&&(r.display="flex",r.flexDirection="column",r.justifyContent=t7[e.textAlignVertical||"TOP"]),t.leadingTrim==="CAP_HEIGHT"&&(r.textBoxTrim="trim-both",r.textBoxEdge="cap alphabetic"),r}function XA(e,t,n,r){return yl(t,e.assets,n,{width:e.size.x,height:e.size.y},r)}function jA(e,t,n,r,o){let{renderOptions:i}=o,{codeSyntaxLanguage:s}=i,a=yl(n,e.assets,r,{width:e.size.x,height:e.size.y},o);function l(h){return n.style[h]??t.style[h]??e.style[h]}let u=l("textDecoration"),c=l("textDecorationThicknessUnit"),d=l("textDecorationThicknessValue");if(u&&u!==EP.NONE&&d!==0){a.textDecorationLine=n.characters.length>0?n7[u]:void 0;let h=l("textDecorationSkipInk"),m=l("textUnderlineOffsetUnit"),E=l("textUnderlineOffsetValue"),O=l("textDecorationStyle"),g=l("textDecorationFills");if(h!==void 0&&(a.textDecorationSkipInk=h?void 0:"none"),E!==void 0?a.textUnderlineOffset=`${E}${m==="PIXELS"?"px":"%"}`:a.textUnderlinePosition="from-font",d!==void 0?a.textDecorationThickness=`${d}${c==="PIXELS"?"px":"%"}`:a.textDecorationThickness="from-font",O!==void 0&&(a.textDecorationStyle=O),g!==void 0){let I=Pf(g.filter(S=>S.type==="SOLID").map(S=>new Dt(S.color,i,S.opacity,Vt,S.boundVariables?.color?.resolvedName,s&&S.boundVariables?.color?.resolvedCodeSyntax?.[s])),i);a.textDecorationColor=I.value}}let f=n.style.fontVariantPosition??t.style.fontVariantPosition??e.style.fontVariantPosition;if(f&&(a.verticalAlign=i7[f],f!=="NORMAL")){let h=l("fontSize");a.fontSize=`${(h||0)*.645}px`}let p=Nl(n,i),_=p??Nl(t,i)??Nl(e,i)??"normal",T=p?n.style.responsiveTextStyleVariants:e.style.responsiveTextStyleVariants;return a.lineHeight=$A({responsiveTextStyleVariants:T,defaultLineHeight:_,renderOptions:i}),(n.style.hyperlink||t.style.hyperlink||e.style.hyperlink)&&(a.cursor="pointer"),a}var iB=(e,t)=>{if(!(e==="NONE"||e==="UNORDERED"))return t===2||t===5?"lower-alpha":t===3?"lower-roman":"decimal"},$A=({responsiveTextStyleVariants:e,defaultLineHeight:t,renderOptions:n})=>{let{optimizeForTailwindConversion:r}=n;return e?.some(i=>Nl(i,n))&&!r?`var(--responsive-line-height,${t})`:t},Nl=(e,t)=>{let{shouldOutputVariables:n,codeSyntaxLanguage:r}=t,o=e.style.lineHeightUnit==="INTRINSIC_%"?e.style.lineHeightPercent===void 0||e.style.lineHeightPercent===100?void 0:`${e.style.lineHeightPercent}%`:e.style.lineHeightUnit==="FONT_SIZE_%"?`${x((e.style.lineHeightPercentFontSize??100)/100)}`:e.style.lineHeightUnit==="PIXELS"&&e.style.lineHeightPx!==void 0?`${x(e.style.lineHeightPx)}px`:void 0;if(n&&o){let i="boundVariables"in e?e.boundVariables:null;return le(r&&i?.lineHeight?.[0]?.resolvedCodeSyntax?.[r],i?.lineHeight?.[0]?.resolvedName,o)??o}return o},ZA=e=>e.textAutoResize==="WIDTH_AND_HEIGHT"||e.style.textTruncation==="ENDING"&&e.style.maxLines===1;function s7(e,t,n=!1){return n?`"${e}"`:[`"${e}"`,...t.map(r=>`"${r.fontFamily}:${r.fontStyle}"`),"sans-serif"].join(",")}function sB(e){if(typeof Intl<"u"&&Intl.Segmenter)try{let t=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(t.segment(e),n=>n.segment)}catch{return Array.from(e)}return Array.from(e)}function vh(e){if(typeof Intl<"u"&&Intl.Segmenter)try{let t=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(t.segment(e)).length}catch{return Array.from(e).length}return Array.from(e).length}var aB=/(\s+)/;function lB(e,t){let{characterStyleOverrides:n,characters:r,lineIndentations:o,lineStyleOverrides:i,lineTextDirections:s,listStartOffsets:a,lineTypes:l,styleOverrideTable:u,lineStartsWithPunctuation:c,resolvedParagraphValues:d}=e;if(typeof r!="string"){let O=new ht("TextNode.characters is not a string");O.errorDetail=JSON.stringify({type:typeof r,value:r,nodeId:e.id,nodeName:e.name}),Me.reportError(O),console.error("TextNode.characters is not a string:",{type:typeof r,value:r,nodeId:e.id,nodeName:e.name})}let p=(typeof r=="string"?r:"").replace(/\r/g," ").split(` 8745`),_=e.style.maxLines;_&&(p=p.slice(0,_));let T=0,h=0,m=e.style.fontSize;return p.map((O,g)=>{let I=i[g]?u[i[g]]||{}:{},S=0,A=0,R=(e.renderTextWordHook?O.split(aB):e.renderTextCharacterHook?sB(O):e.renderTextLineHook?[O]:Array.from(O)).reduce((L,D)=>{let F=T+S,H=Array.from(D);if(e.renderTextWordHook||e.renderTextLineHook){let N=H.map((M,P)=>n[F+P]),K=N.every(M=>M===N[0]),C={};if(e.renderTextWordHook){if(D.length===0)return L;aB.test(D)||(C.wordIndex=A,A++),K||(C.originalWord=D)}K?L.push({characters:D,override:N[0],renderHookMetadata:C}
8745):H.forEach((M,P)=>{L.push({characters:M,override:N[P],renderHookMetadata:C})})}else if(e.renderTextCharacterHook)L.push({characters:D,override:n[F],renderHookMetadata:{globalCharacterIndex:h}});else{let N=n[F],K=L[L.length-1];K&&K.override===N?K.characters+=D:L.push({characters:D,override:N})}return S+=H.length,h++,L},[]).map(L=>{let D=L.override?u[L.override]??{}:{};t.fontSize||(D.fontSize=D.fontSize??m);let F=e.style.responsiveTextStyleVariants;if(!D.responsiveTextStyleVariants){let N=F?.filter(K=>K.style.fontSize).map(K=>({...K,style:{fontSize:K.style.fontSize}}));N?.length&&(D.responsiveTextStyleVariants=N)}let H={characters:L.characters,style:D};return L.renderHookMetadata&&(H.renderHookMetadata=L.renderHookMetadata),H});T+=O.length;let y=n[T]&&u[n[T]]||{};T+=1,R.length===0&&R.push(a7(l[g]&&l[g]!==Pa.NONE?m:y.fontSize??m));let b=d?.[g];return{spans:R,style:b?{...I,...b}:I,direction:s?.[g],indentation:o[g]||0,startOffset:a[g]??void 0,listOptions:{type:l[g]||Pa.NONE},startsWithPunctuation:!!c?.[g]}})}function a7(e){return{characters:"",style:{fontSize:e}}}function JA(e,t,n){if(t&&!n)return"a";switch(e.accessibleHTMLTag){case"H1":return"h1";case"H2":return"h2";case"H3":return"h3";case"H4":return"h4";case"H5":return"h5";case"H6":return"h6";case"DIV":return"div";case"P":case"AUTO":default:return"p"}}function uB(e,t,n){return e?n?"div":"a":t?n?"div":"button":"div"}function xh({children:e}){return e}function l7(e){return e.length>0&&e.every(t=>typeof t!="string"||t==="")}function dB(e,t,n){if(!e.characters.length)return{elements:["\u200B"]};if(n&&fB.test(e.characters)){let r=d7(e.characters,n),o=cB(r,t);return{elements:o,dropWrapper:l7(o)}}return{elements:cB([e.characters],t)}}var qA=/[\u2028\u2029]/,cB=(e,t)=>e.flatMap(n=>typeof n!="string"?[n]:n.split(qA).flatMap((r,o,i)=>o<i.length-1||t&&r===""?[r,ne({Tag:"br",key:"br"+o,attributes:{"aria-hidden":!0}})]:[r])),fB=/[\u{E000}-\u{F8FF}\u{F0000}-\u{10FFFD}]/u,u7=/([\u{E000}-\u{F8FF}]|[\u{F0000}-\u{10FFFD}])/u;function c7(e,t){let n=String(e.codePointAt(0));for(let r of t.groups){let o=r.codepointToName[n];if(o!==void 0)return{tagName:r.tagName,body:r.bodyTemplate.replace("{{name}}",o)}}}function d7(e,t){if(!fB.test(e))return[e];let n=new Map;return e.split(u7).reduce((r,o,i)=>{if(!o)return r;if(i%2===0)r.push(o);else{n.has(o)||n.set(o,c7(o,t));let s=n.get(o);s?r.push(ne({Tag:s.tagName,children:[iP(s.body)]})):r.push(o)}return r},[])}var QA=Pa.NONE,f7="sp",p7="p",pB="s",m7="ws",E7=e=>e===void 0?void 0:`${e}px`;function EB(e){if(e)return"children"in e||e.block.listOptions&&e.block.listOptions.type!=="NONE"?"list":"paragraph"}function _7(e,t,n,r,o,i){return t.map((s,a)=>mr({key:a,children:hB({blockKey:a,tree:s,node:e,context:n,nextBlockType:EB(t[a+1]),props:r,websiteContext:o,outerStyles:i})}))}function _B(e){let{node:t,parent:n,context:r,zIndex:o,smartAnimateType:i,previousRotation:s,precomputeTransforms:a,renderOptions:l}=e,{shouldOutputVariables:u,codeSyntaxLanguage:c}=l,d=Wo(i,t.maybeAnimateRotation),f=Xn({node:t,parent:n,context:r,zIndex:o,children:[],codeSyntaxLanguage:c,options:{canAnimate:d,previousRotation:s,shouldOutputVariables:u,precomputeTransforms:a},renderOptions:l}),p=cn(r,t);return{nodeCanAnimateRotation:d,layoutStyles:f,opacity:p}}function TB(e){let{node:t,parent:n,context:r,interactionHandlers:o,transitionProps:i,codeBehaviorProps:s,ref:a,websiteContext:l,previousRotation:u,outerRef:c,codeBehaviorWrapperRef:d,smartAnimateType:f,canSmartAnimateInstance:p,nodeCanAnimateRotation:_,layoutStyles:T,opacity:h,behaviorProps:m,behaviorKey:E,behaviorsRef:O,mergedRef:g}=e,I=l.websiteData.fonts,S=l.renderOptions,{shouldOutputVariables:A,codeSyntaxLanguage:R,optimizeForTailwindConversion:y}=S,b=$n({node:t,context:r,websiteContext:l}),L=yl(t,t.assets,I,{width:t.size.x,height:t.size.y},l),D=t.interactions??[],F=Fo(D),H=po(D)||t.style.hyperlink!=null,N=Ko(t),K=ed(t,S),C=vs(t,n,r)||_,M=jn({node:t,parent:n,children:null,renderOptions:S}),P=i?.transitionData,z=on(P),Ee={fontSize:Object.values(t.styleOverrideTable).find(he=>he.fontSize)?void 0:x(t.style.fontSize)},pe={...T.inner,...kn(h,A,t.boundVariables?.opacity?.resolvedName,R&&t.boundVariables?.opacity?.resolvedCodeSyntax?.[R]),...Ni(t),...ID(t.effects,S),...L,...oB(t,t.style,{withinInteractiveElement:r?.
8745withinInteractiveElement,hasButton:F}),...b,...T.transform3d,...r?.style||{},fontSize:Ee.fontSize?L.fontSize:0,lineHeight:0};if(y||(pe["--letter-spacing"]=pe.letterSpacing??0),t.style.textTruncation==="ENDING"){let he=t.style.maxLines;he&&he>1&&(y||(pe.display="-webkit-box",pe.WebkitLineClamp=he,pe.WebkitBoxOrient="vertical"),pe.height&&(pe.maxHeight=pe.height,pe.height=void 0)),pe.overflow="hidden",pe.textOverflow="ellipsis"}ZA(t)&&(pe.whiteSpace="nowrap");let ye=r?.withinInteractiveElement||Object.keys(m).length>0||f===ee.INSTANCE_SUBTREE,Le=gr(D,o,ye,l),We={semanticTag:uB(H,F,ye)},De=IB(t.style.hyperlink,ye,l),ae=l.renderOptions.optimizeForTailwindConversion?void 0:"textContents",Oe=Mn(t,l.renderOptions),oe=wn({node:t,parent:n,context:r,transitionProps:i,outerStyles:T.outer,wrapperSizeStyles:M,stickyWrapperStyles:T.stickyWrapper,transformChildWrapperStyles:T.transform,renderOptions:S}),ft=he=>{let ke=he;if(he.renderTextHook){let ua=he.renderTextHook.renderText({characters:he.characters,length:vh(he.characters),TextComponent:Dr=>(Dr.characters&&(he={...he,characters:Dr.characters}),null)});ua?.props?.characters&&(ke={...he,characters:ua.props.characters})}let Ye=T7(lB(ke,Ee),Ee),ce=p||Ye.length>1||H||F||t.textAlignVertical!=="TOP"||Oe||t.style.hangingList||K||r?.parentIsList,tt=_?O:g,pn={...N,...Le},Ft={nodeId:oe.motionLayerContent.nodeId,additionalClassName:ae,styles:pe,ref:tt,attributes:pn},Cr=ce?void 0:oe.motionLayerContent.outerStyles,sr=_7(he,Ye,r,ce?void 0:Ft,l,Cr),Yi=Oe?l.sitesRenderers.renderMarquee:
8745xh,pd=C?Rh:xh,Pr=ce?Ao:xh;return pd({ref:_||p||K?a:null,context:r,node:t,parent:n,childWrapperStyles:{...T.transform},transitionData:P,canAnimate:_,smartAnimateType:f,previousRotation:u,transformRef:c,codeBehaviorWrapperRef:d,outerStyles:oe.transformWrapper.outerStyles,tag:oe.transformWrapper.tag,nodeId:oe.transformWrapper.nodeId,idSuffix:oe.transformWrapper.idSuffix,websiteContext:l,children:gh(oe.customEffectWrapper,mr({key:E,children:Pr({semanticTagInfo:{interactiveSemanticTag:null,semanticTag:We.semanticTag},...Ft,context:r,node:t,wrappers:oe.motionLayerContent,websiteContext:l,transitionProps:{opacity:h,smartAnimateType:f,behaviorProps:m,transitionData:P,onTransitionEnd:z},attributes:{...pn,...De,...r?.dataAttributes},children:Yi({node:he,websiteContext:l,children:sr})})}))})},et=K?l.sitesRenderers.renderCodeBehaviorWrapper({codeBehaviors:t.behaviors.code,ref:d,outerStyles:oe.codeBehaviorWrapper.outerStyles,tag:oe.codeBehaviorWrapper.tag,websiteContext:l,children:l.sitesRenderers.renderRenderHooksConsumer({node:t,renderNode:he=>Ne(ft(he),l),codeBehaviorProps:{...s,transformRef:c}})}):ft(t);return pp({nodeId:oe.stickyWrapper.nodeId,idSuffix:oe.stickyWrapper.idSuffix,stickyWrapperStyles:T.stickyWrapper,tag:oe.stickyWrapper.tag,children:et})}function T7(e,t){let n={children:[],type:QA,lineStyleType:void 0};t&&(n.style=t);let r=[n];for(let o of e){let i={block:o,style:t},s=o.listOptions?.type||QA;if(s!=="NONE"){let a=o.indentation+1;for(;r.length>a||r.length===a&&r[r.length-1].type!=="NONE"&&r[r.length-1].type!==s;)r.pop();for(;r.length<a;){let l=a-r.length===1?o.startOffset:void 0,u={children:[],lineStyleType:iB(s,r.length),type:s,start:l,style:{...o.style,...t}};r[r.length-1].children.push(u),r.push(u)}}else r=[n];r[r.length-1].children.push(i)}return n.children}function hB({nextBlockType:e,tree:t,node:n,context:r,blockKey:o,props:i,websiteContext:s,outerStyles:a}){if("children"in t)return g7({listNode:t,node:n,props:i,nextBlockType:e,websiteContext:s,outerStyles:a,children:t.children.map((f,p)=>mr({key:p,children:hB({blockKey:p,tree:f,node:n,context:r,nextBlockType:EB(t.children[p+1]),websiteContext:s,outerStyles:void 0})}))});let{block:l}=t,u;if(n.renderTextWordHook){let f=h7(l.spans);u=[];for(let p of f){if(p.length===0)continue;let _=p[0]?.renderHookMetadata?.wordIndex;if(_==null)for(let T of p)u.push(eN({spanKey:u.length,span:T,block:l,node:n,context:r,blockKey:o,websiteContext:s}));else u.push(mB({substringKey:u.length,spans:p,node:n,block:l,context:r,blockKey:o,wordIndex:_,websiteContext:s}))}}else n.renderTextLineHook?u=[mB({substringKey:0,spans:l.spans,node:n,block:l,context:r,blockKey:o,websiteContext:s})]:u=l.spans.map((f,p)=>eN({spanKey:p,span:f,block:l,node:n,context:r,spanIndex:p,blockKey:o,websiteContext:s}));if((l.listOptions?.type||QA)!=="NONE")return I7({node:n,block:l,commonFontSize:t.style?.fontSize,nextBlockType:e,websiteContext:s,children:u});let d=e===void 0;return u.length===1&&!n.renderTextCharacterHook&&!n.renderTextWordHook&&!n.renderTextLineHook&&!n.renderTextHook?O7({node:n,context:r,block:l,isLastBlock:d,props:i,websiteContext:s,outerStyles:a}):S7({node:n,block:l,children:u,props:i,isLastBlock:d,websiteContext:s,outerStyles:a})}function h7(e){let t=[];for(let n of e){let r=t[t.length-1];if(!r){t.push([n]);continue}r[0]?.renderHookMetadata?.wordIndex===n.renderHookMetadata?.wordIndex?r.push(n):t.push([n])}return t}var tN=(e,t)=>e===void 0?t:t===void 0?e:e.add(t);function O7({node:e,context:t,block:n,isLastBlock:r,props:o,websiteContext:i,outerStyles:s}){n.spans.length;let{style:a,props:l}=gB({node:e,block:n,isLastBlock:r,websiteContext:i}),u=!!e.style.hyperlink,c=!!t?.withinInteractiveElement||u,{style:d,className:f,children:p,attributes:_,isHyperlink:T,dropWrapper:h}=rN({node:e,withinInteractiveElement:c,block:n,span:n.spans[0],websiteContext:i});if(h)return mr({children:p});let{additionalClassName:m,styles:E,attributes:O,...g}=o??{},I={display:"block",...s,...E,...a,...d,marginBottom:tN(s?.marginBottom,a.marginBottom)},S=JA(e,T,c);return ne({Tag:S,key:f7,styleSet:[I,f,m],attributes:{...O,...l,..._},...g,children:p})}function g7({listNode:e,node:t,children:n,nextBlockType:r,props:o,websiteContext:i,outerStyles:s}){let a=e.children.find(g=>"block"in g)?.block,l=a?.spans[0],u=i.websiteData.fonts,c=e.type===Pa.ORDERED,d=i.renderOptions,{disableTextMarkerVariables:f}=d,p=a&&l?jA(t,a,l,u,i):{},_=f?{}:{"--list-marker-background-clip":p.backgroundClip??"initial","--list-marker-color":p.color??"initial","--list-marker-font-size":p.fontSize??"initial","--list-marker-line-height":p.lineHeight??"initial","--list-marker-text-fill-color":p.WebkitTextFillColor??"initial","--list-marker-vertical-align":p.verticalAlign??"initial"},{additionalClassName:T,styles:h,attributes:m,...E}=o??{},O={...s,...h,..._,listStyleType:c?e.lineStyleType:void 0,marginLeft:t.style.hangingList?"-1.5em":void 0,marginBottom:tN(s?.marginBottom,nN(t,void 0,r,d))};return ne({Tag:c?"ol":"ul",styleSet:[O,T],attributes:{...m,...c?{start:e.start}:{}},...E,children:n})}var nN=(e,t,n,r)=>{let{shouldOutputVariables:o,codeSyntaxLanguage:i}=r;if(n==="paragraph"){let s=t?.style.paragraphSpacing!==void 0?t.style.paragraphSpacing:e.style.paragraphSpacing;return o?uE(i&&e.boundVariables?.paragraphSpacing?.[0]?.resolvedCodeSyntax?.[i],e.boundVariables?.paragraphSpacing?.[0]?.resolvedName,`${s}px`)??Y.px(s):Y.px(s)}if(n==="list")return t?.style.listSpacing!==void 0?Y.px(t.style.listSpacing):Y.px(e.style.listSpacing)};function OB(e){switch(e){case"BALANCE":return"balance";case"PRETTY":return"pretty";default:return}}var Mh=1.5;function I7({children:e,node:t,block:n,commonFontSize:r,nextBlockType:o,websiteContext:i}){let s=i.websiteData.fonts,{renderOptions:a}=i,{optimizeForTailwindConversion:l}=a,u=t.style.textAlignHorizontal==="LEFT"||t.style.textAlignHorizontal==="JUSTIFIED",c=XA(t,n,s,i),d=t.behaviors?.code?.length||n.spans.some(_=>_.characters.match(/\s{2,}/)),f=l&&n.listOptions?.type===Pa.UNORDERED?"disc":void 0,p={whiteSpace:d?"pre-wrap":void 0,...c,listStylePosition:u?void 0:"inside",marginInlineStart:r?E7(Mh*n.indentation*r):Y.var("--list-marker-font-size",0).multiply(Mh).multiply(n.indentation).toStyleValue({forTailwind:l}),marginBottom:nN(t,n,o,a),"--letter-spacing":l?void 0:0,listStyleType:f,textWrap:OB(n.style.textWrapStyle)};return ne({Tag:"li",styleSet:p,children:e})}function S7({node:e,block:t,children:n,isLastBlock:r,props:o,websiteContext:i,outerStyles:s}){let{additionalClassName:a,styles:l,attributes:u,...c}=o??{},{style:d,props:f}=gB({node:e,block:t,isLastBlock:r,websiteContext:i}),p={...s,...l,...d,marginBottom:tN(s?.marginBottom,d.marginBottom)},_=JA(e,!1,!1);return ne({Tag:_,key:p7,styleSet:[p,a],attributes:{...u,...f},...c,children:n})}function gB({node:e,block:t,isLastBlock:n,websiteContext:r}){let o=r.websiteData.fonts,i=r.renderOptions,{shouldOutputVariables:s,codeSyntaxLanguage:a}=i,l=XA(e,t,o,r),u={lineHeight:0,...l,marginBottom:nN(e,t,n?void 0:"paragraph",i),textWrap:OB(t.style.textWrapStyle)},c=t.style.paragraphIndent??e.paragraphIndent;c&&(u.textIndent=c,s&&u.textIndent&&(u.textIndent=le(a&&e.boundVariables?.paragraphIndent?.[0]?.resolvedCodeSyntax?.[a],e.boundVariables?.paragraphIndent?.[0]?.resolvedName,isNaN(Number(u.textIndent))?u.textIndent:`${u.textIndent}px`)??u.textIndent));let d=l.fontSize??x(e.style.fontSize);return e.style.hangingPunctuation&&t.startsWithPunctuation&&(i.optimizeForTailwindConversion?u.textIndent=`calc(1px * (${c??0}px-0.45*${d}
8745px))`:u.textIndent=`calc(${c??0}px - 0.45 * ${d}px)`),e.style.textTruncation==="ENDING"&&(e.style.maxLines===1&&(u.overflow="hidden",u.textOverflow="ellipsis"),u.fontSize=d),(e.characters.match(/\s{2,}/)||e.behaviors?.code?.length)&&(u.whiteSpace=ZA(e)?"pre":"pre-wrap"),{style:u,props:{dir:t.direction}}}function eN({node:e,context:t,block:n,span:r,spanIndex:o=0,blockKey:i,spanKey:s,websiteContext:a}){let l=!!e.style.hyperlink,u=!!t?.withinInteractiveElement||l,{style:c,className:d,children:f,attributes:p,isHyperlink:_}=rN({node:e,withinInteractiveElement:u,block:n,span:r,websiteContext:a}),T=[c,d],h=r.renderHookMetadata?.globalCharacterIndex,m;if(!e.renderTextCharacterHook)m=f;else{let O=e.renderTextCharacterHook.renderTextCharacter({character:r.characters,index:o,globalIndex:h??0,columnIndex:o,lineNumber:i,characters:e.characters,TextCharacterComponent:g=>g.character&&qA.test(g.character)?a.renderElement({Tag:"br"}):a.renderElement({Tag:"span",children:g.character??r.characters})});m=[O!=null?Ot(O):r.characters]}let E=ne({Tag:"span",key:`${pB}-${s}`,styleSet:T,attributes:p,children:m});return _&&!u?ne({Tag:"a",key:`${pB}-${s}`,styleSet:T,attributes:p,children:E}):E}function mB(e){return mr({key:`${m7}-${e.substringKey}`,children:R7(e)})}function R7({node:e,spans:t,block:n,context:r,blockKey:o,wordIndex:i=0,websiteContext:s}){let a=!!e.style.hyperlink,l=!!r?.withinInteractiveElement||a,{style:u,className:c,attributes:d}=rN({node:e,withinInteractiveElement:l,block:n,span:t[0],websiteContext:s}),f=t.map((E,O)=>eN({spanKey:O,span:E,block:n,node:e,context:r,blockKey:o,websiteContext:s})),p=null,_=e.renderTextWordHook;if(_!=null){let E=t[0]?.renderHookMetadata?.originalWord??t[0]?.characters??"";p=_.renderTextWord({word:E,index:i,characters:e.characters,length:vh(E),TextWordComponent:O=>
8745O.word==null||O.word===E?s.renderFragment({children:f.map(g=>Ne(g,s))}):s.renderElement({Tag:"span",children:O.word})})}let T=null,h=e.renderTextLineHook;if(h!=null){let E=t.map(O=>O.characters).join("");T=h.renderTextLine({line:E,index:o,characters:e.characters,length:vh(E),TextLineComponent:O=>O.line==null||O.line===E?s.renderFragment({children:f.map(g=>Ne(g,s))}):s.renderElement({Tag:"span",children:O.line})})}let m=p!=null?[Ot(p)]:T!=null?[Ot(T)]:f;return ne({Tag:"span",styleSet:[u,c],attributes:d,children:m})}function rN({node:e,withinInteractiveElement:t,block:n,span:r,websiteContext:o}){let i=o.websiteData.fonts,s=o.renderOptions,{disableAdjustLetterSpacing:a}=s,l=jA(e,n,r,i,o),u=r===n.spans[n.spans.length-1],c=u&&A7(r,e.style),d=!a&&u&&c&&e.layoutAlign!=="STRETCH"&&e.layoutGrow!==1?"adjustLetterSpacing":void 0,{elements:f,dropWrapper:p}=dB(r,u,o.renderOptions.textCodepointSubstitution),_=r.style.hyperlink??n.style.hyperlink;if(_){let h=IB(_,t,o);return{isHyperlink:!0,dropWrapper:p,style:l,className:d,children:f,attributes:h}}return{isHyperlink:!1,dropWrapper:p,style:l,className:d,children:f}}function A7(e,t){return Boolean(e?.style.letterSpacing||t.letterSpacing)}function IB(e,t,n){if(!e||!e.type)return{};if(e.type==="NODE"&&e.nodeID)return Tf(s=>{s.preventDefault(),s.stopPropagation(),O_(e.nodeID,n)},e.type,e.nodeID,!1,t,n);let r=!!e.openInNewTab;return Tf(i=>{i.preventDefault(),i.stopPropagation(),window.open(e.url,r?"_blank":"_self")},e.type,e.url,r,t,n)}var SB=v(W());function kh(e,t,n){return Re((0,SB.useMemo)(()=>de(e),t),n)}var RB=v(W());function N7(e,t){if(t){e.stack+=` 8746 8747React stack:`+t.componentStack;let n=new Error("React component stack where the error occurred");n.stack=t.componentStack,e.cause=n}}var na=class extends RB.default.Component{state={hasError:!1,error:null,errorInfo:null};componentDidCatch(t,n){this.setState({error:t,errorInfo:n}),N7(t,n),this.context.reportError(t,{"error-boundary-name":this.props.name}),this.context.setMaterializationError(this.props.nodeId,{nodeName:this.props.name,nodeId:this.props.nodeId,errorMessage:t.stack})}componentWillUnmount(){this.context.setMaterializationError(this.props.nodeId)}render(){return this.state.error?null:this.props.children}};Po(na,"contextType",bf);var ra=na;var y7={fontFamily:'"Inter:Regular"',fontSize:"11px",fontWeight:"400",lineHeight:"1.5"},b7=16,NB={cursor:"pointer",textDecorationLine:"underline"},bl=(0,Vi.createContext)({getRichTextBlockStyle:e=>({}),getRichTextSpanStyle:(e,t)=>({})});function Ll(e){let t={};return(e.format||e.format!=="")&&(t.textAlign=e.format),e.direction&&(t.direction=e.direction),t}function yB(e){switch(e.tag){case"h1":return"HEADING1";case"h2":return"HEADING2";case"h3":return"HEADING3";case"h4":return"HEADING4";case"h5":return"HEADING5";case"h6":return"HEADING6";default:xe(e.tag)}}function L7({lexicalNode:e,parentStyleClass:t,websiteContext:n}){let{getRichTextSpanStyle:r}=(0,Vi.useContext)(bl),o={...r(t??"PARAGRAPH",e),whiteSpace:"pre-wrap"};return n.renderElement({Tag:"span",styleSet:o,children:e.text})}function C7({lexicalNode:e,children:t,websiteContext:n}){let{getRichTextBlockStyle:r}=(0,Vi.useContext)(bl),o={...Ll(e),...r(yB(e))};switch(e.tag){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return n.renderElement({Tag:e.tag,styleSet:o,children:t});default:xe(e.tag)}}function P7({lexicalNode:e,children:t,websiteContext:n}){let{getRichTextBlockStyle:r}=(0,Vi.useContext)(bl),o={...Ll(e),...r("PARAGRAPH")};return n.renderElement({Tag:"p",styleSet:o,children:e.children.length===0?(0,ut.jsx)("br",{}):t})}function D7({lexicalNode:e,children:t,websiteContext:n}){let{getRichTextBlockStyle:r}=(0,Vi.useContext)(bl),o={...Ll(e),...r("PARAGRAPH")};return n.renderElement({Tag:"blockquote",styleSet:o,children:(0,ut.jsx)("p",{children:t})})}function v7({lexicalNode:e,children:t,websiteContext:n}){let r={...Ll(e),...NB},o=e.url,i=e.target??"",s=n.env;if(s){let a=e.target==="_blank",l=_f(e.url,a,s);o=l.url,i=l.target}return n.renderElement({Tag:"a",styleSet:r,attributes:{href:o,rel:e.rel??"",target:i,title:e.title??""},children:t})}function x7(e,t,n){return e?t&&n?`${e}/${n}`:e:null}function M7({lexicalNode:e,children:t,websiteContext:n}){let r={...Ll(e),...NB},o=e.cmsTarget?.cmsItemId,i=o?n.cmsBundleData?.slugByItemId.get(o):void 0,s=n.websiteData.guidToUrl.get(e.nodeId);if(o&&!n.cmsBundleData)return(0,ut.jsx)(ut.Fragment,{children:t});let a=x7(s,o,i);if(!a)return(0,ut.jsx)(ut.Fragment,{children:t});let l=n.env,u=()=>{n.preloadLocation(a)},c=l==="preview"?{role:"link",tabIndex:0,onClick:d=>{d.preventDefault(),n.setLocation({url:a})},onMouseDown:u}:{href:a,target:"_self",onMouseDown:u};return n.renderElement({Tag:"a",styleSet:r,attributes:c,children:t})}function k7({lexicalNode:e,websiteContext:t}){let{getAssetURL:n,websiteData:{assets:r}}=t,o={maxWidth:"100%",display:"inline-block"};e.isFillWidth&&(o.width="100%");let i="",s=kh(a=>{let l=r.get(e.hash);return l?a(l):null},[e.hash]);return s?.url&&(i=n(s.url)),t.renderElement({Tag:"img",styleSet:o,attributes:{src:i,alt:e.altText,loading:"lazy"}})}function G7({lexicalNode:e,children:t,websiteContext:n}){let{getRichTextBlockStyle:r}
8747=(0,Vi.useContext)(bl),o=r("PARAGRAPH"),i=Number(o.fontSize?.toString().replace("px","")),s=isNaN(i)?b7:i,a={...Ll(e),listStyleType:e.listType==="number"?"decimal":"disc",...o,marginLeft:s*Mh};return n.renderElement({Tag:e.tag,styleSet:a,attributes:e.tag==="ol"?{start:e.start}:void 0,children:t})}function F7({lexicalNode:e,children:t,parentListType:n,websiteContext:r}){let{getRichTextBlockStyle:o}=(0,Vi.useContext)(bl),s=["decimal","lower-alpha","lower-roman","decimal","lower-alpha"][e.indent]??"decimal",a={...Ll(e),...o("PARAGRAPH"),listStyleType:n==="number"?s:"disc"};return r.renderElement({Tag:"li",styleSet:a,children:t})}function bB({lexicalNode:e,parentStyleClass:t,parentLexicalNode:n,websiteContext:r}){let o=e.type;if(!t)switch(o){case"heading":t=yB(e);break;case"paragraph":t="PARAGRAPH";break}let i="children"in e?e.children.map((s,a)=>(0,ut.jsx)(bB,{lexicalNode:s,parentStyleClass:t,parentLexicalNode:e,websiteContext:r},a)):[];switch(o){case"root":return(0,ut.jsx)("div",{className:"root",children:i});case"heading":return(0,ut.jsx)(C7,{lexicalNode:e,websiteContext:r,children:i});case"paragraph":return(0,ut.jsx)(P7,{lexicalNode:e,websiteContext:r,children:i});case"linebreak":return(0,ut.jsx)("br",{});case"text":return(0,ut.jsx)(L7,{lexicalNode:e,parentStyleClass:t,websiteContext:r});case"link":return(0,ut.jsx)(v7,{lexicalNode:e,websiteContext:r,children:i});case"internal-link":return(0,ut.jsx)(M7,{lexicalNode:e,websiteContext:r,children:i});case"image":return(0,ut.jsx)(k7,{lexicalNode:e,websiteContext:r});case"quote":return(0,ut.jsx)(D7,{lexicalNode:e,websiteContext:r,children:i});case"list":return(0,ut.jsx)(G7,{lexicalNode:e,websiteContext:r,children:i});case"listitem":{let s="bullet";return n&&n.type==="list"&&(s=n.listType==="number"?"number":"bullet"),e.children.length===1&&e.children[0].type==="list"?(0,ut.jsx)(ut.Fragment,{children:i}):(0,ut.jsx)(F7,{lexicalNode:e,parentListType:s,websiteContext:r,children:i})}default:return console.warn(`Unsupported Lexical node type in CMS_RICH_TEXT: ${o}`),null}}function w7({node:e,websiteContext:t}){let{renderOptions:n,websiteData:r}=t,o=r.fonts,i=(c,d)=>o.get(`${c.style.fontFamily}:${d}`)?d:c.style.fontStyle,s=c=>c?yl(c,void 0,o,{width:0,height:0},t):{},a=c=>{if(!t)return null;let d=e.cmsRichTextStyleMap;if(!d)return console.warn("cmsRichTextStyleMap not found"),null;let f=t.websiteData.assetIdToGuid,p=t.websiteData.nodeById,_=d[c];if(_){let T=_.textStyleId,h=f.get(T);if(h){let m=p.get(h);if(m&&m.style){let E=Ri(m.style);return E.fills=e.fills,{spans:[],indentation:0,startOffset:0,style:E,startsWithPunctuation:!1}}}}return null};return{getRichTextBlockStyle:c=>{let d=a(c);if(d){let f=s(d),p=Nl({style:d.style},n)||"normal";return f.lineHeight=$A({responsiveTextStyleVariants:d.style.responsiveTextStyleVariants,defaultLineHeight:p,renderOptions:n}),f}return y7},getRichTextSpanStyle:(c,d)=>{let f=a(c),p={},_=null,T=1,h=1<<1,m=1<<2,E=1<<3;return d.format&T&&(p.fontWeight="bold",_="Bold"),d.format&h&&(p.fontStyle="italic",_=_==="Bold"?"Bold Italic":"Italic"),d.format&m&&(p.textDecorationLine="line-through"),d.format&E&&(p.textDecorationLine="underline"),f&&_&&(f.style.fontStyle=i(f,_)),{...s(f),...p}}}}function B7(e,t,n,r,o,i){let s=e.interactions??[],a=Ko(e),l=AB.useMemo(()=>({opacity:cn(t,e),transform:zr(n.outer.transform)}),[t,e,n.outer.transform]),u=Zr(e,t),{motionProps:c,key:d,ref:f}=to(e.id,e.behaviors,e.assets,l,u),p=gr(s,r,!0,i),_=o?.smartAnimateType??ee.NONE,T=cn(t,e),h=o?.transitionData,m=on(h);return{accessibilityProps:a,behaviorProps:c,interactionProps:p,behaviorsRef:f,key:d,transitionProps:{opacity:T,smartAnimateType:_,behaviorProps:c,transitionData:h,onTransitionEnd:m}}}function LB({node:e,parent:t,context:n,zIndex:r,interactionHandlers:o,transitionProps:i,websiteContext:s}){let{renderOptions:a}=s,{getRichTextBlockStyle:l,getRichTextSpanStyle:u}=w7({node:e,websiteContext:s}),c=rr(),d=Xn({node:e,parent:t,context:n,zIndex:r,children:[],options:{isFlattened:!0,precomputeTransforms:c},renderOptions:a}),f=$n({node:e,context:n,websiteContext:s}),p=jn({node:e,parent:t,children:null,renderOptions:a}),_={width:p.width,height:p.height},{accessibilityProps:T,interactionProps:h,behaviorsRef:m,key:E,transitionProps:O}=B7(e,n,d,o,i,s),g={..._,...d.inner,mixBlendMode:zu(e.blendMode),...kn(cn(n,e)),...dc(e,t,n,s),...Qr({node:e,parent:t,transitionProps:O,renderOptions:s.renderOptions,maskStyles:f}),...d.transform3d,...n?.style||{}},I=Jr(s,e);if(!e.richText||!s)return null;let S=qP(JSON.parse(e.richText)),A=wn({node:e,parent:t,context:n,transitionProps:O,outerStyles:d.outer,wrapperSizeStyles:p,stickyWrapperStyles:d.stickyWrapper,transformChildWrapperStyles:d.transform,renderOptions:s.renderOptions,maskStyles:f});return(0,ut.jsx)(ra,{name:"cms-rich-text",nodeId:e.id,children:Ne(yr({node:e,parent:t,context:n,transitionProps:O,wrappersToRender:A,websiteContext:s,children:Ao({node:e,ref:m,key:E,semanticTagInfo:{semanticTag:"div",interactiveSemanticTag:null},context:n,styles:g,nodeId:A.motionLayerContent.nodeId,transitionProps:O,wrappers:A.motionLayerContent,websiteContext:s,attributes:{"data-name":I,...h,...T},children:S.root?Ot((0,ut.jsx)(bl.Provider,{value:{getRichTextBlockStyle:l,getRichTextSpanStyle:u},children:(0,ut.jsx)(bB,{lexicalNode:S.root,parentStyleClass:null,parentLexicalNode:null,websiteContext:s})}
8747)):null})}),s)})}var ld=v(_e()),kl=v(W()),a$=v(iN()),l$=v(_e()),u$=v(Ou()),c$=v(tE());function oa(e){let t=fe().env;Ae(t!=="server",`${e} should never be rendered on the server.`)}var ixe=v(W());function V7(e,t,n,r,o){Object.entries(e).forEach(([i,s])=>{(!r||!r[i])&&(t[s]=a=>{let l=n[i];typeof a!=typeof l&&console.error(`Expected value of type ${typeof l} for property ${i}, but got ${typeof a}`),n[i]=a,o?.()})})}function sN(e){let t={};if(!e)return t;for(let[n,r]of Object.entries(e))r.setter&&(t[n]=r.setter);return t}var DB={src:""};function Gh(e){return e??!1?e:void 0}function Fh(e,t,n,r){if(!r||!n)return DB;let o=e?.image?t(r,e?.image):void 0,s=(e?.animatedImage?t(r,e.animatedImage):void 0)??o;if(!s)return DB;let a=Gh(s.size?.y)??e.originalImageHeight,l=Gh(s.size?.x)??e.originalImageWidth;return{src:n(s.url),height:Gh(a),width:Gh(l),alt:e.altText}}var vB=v(_e()),wh=v(W()),id=wh.createContext({name:"",width:0,height:0});function aN({name:e,width:t,height:n,children:r}){let o=wh.useMemo(()=>({name:e,width:t,height:n}),[e,t,n]);return(0,vB.jsx)(id.Provider,{value:o,children:r})}var Cl=v(_e()),lxe=v(W());function Pl({children:e,fallback:t=null}){return ea()?(0,Cl.jsx)(Cl.Fragment,{children:e()}):(0,Cl.jsx)(Cl.Fragment,{children:t})}var xB=({children:e,fallback:t})=>Ot((0,Cl.jsx)(Pl,{fallback:t,children:e}));var uN=v(_e()),ti=v(W());var gp=class{backingComponentId;atomStore;constructor(t,n){this.atomStore=n,this.backingComponentId=de(t)}get(t,n){return t(this.backingComponentId)}set(t,n,r){this.atomStore.set(this.backingComponentId,r)}reset(){this.atomStore.set(this.backingComponentId,null)}},Bh=class{variableState;nodeById;componentSetId=null;boundVariantProperties;unboundVariantProperties;boolMap={true:!0,false:!1};atomStore;constructor(t,n,r,o,i=[],s){this.variableState=t,this.nodeById=n,this.componentSetId=r,this.boundVariantProperties=o.map(([a,l])=>[a,de(l)]),this.unboundVariantProperties=i.map(([a,l])=>[a,de(l)]),this.atomStore=s}get(t,n){let r=this.boundVariantProperties.map(([s,a])=>[s,this._convertResolvedVariableValueToStringVariantValue(this.variableState.evaluateVariable(t,t(a).id,n))]),o=this.unboundVariantProperties.map(([s,a])=>[s,t(a)]),i=[...r,...o];return this._instanceIdFromVariantProperties(i)}set(t,n,r){let o=Object.fromEntries(this._propertyValuesForVariant(r));this.unboundVariantProperties.forEach(([i,s])=>{let a=o[i];this.atomStore.set(s,a)}),this.boundVariantProperties.forEach(([i,s])=>{let a=o[i];let l=this.variableState.getVariableType(t(s).id,t,n),u=this._convertStringVariantValueToResolvedVariableType(l,a);this.variableState.setVariable(t(s).id,u,n)})}_instanceIdFromVariantProperties(t){if(this.componentSetId===null)return null;let n=this.nodeById.get(this.componentSetId);return n.type,n.children.find(r=>this._propertyValuesMatch(t,this._propertyValuesForVariant(r)))??null}_propertyValuesMatch(t,n){let r=s=>new Set(s.map(([a,l])=>JSON.stringify([a.toLowerCase(),l.toLowerCase()]))),o=r(t),i=r(n);return o.size===i.size&&[...o].every(s=>i.has(s))}_propertyValuesForVariant(t){return this.nodeById.get(t).name.split(",").map(r=>{let[o,i]=r.split("=");return[(o??"").trim(),(i??"").trim()]})}_convertStringVariantValueToResolvedVariableType(t,n){switch(t){case"BOOLEAN":{let r=n.toLowerCase();return r in this.boolMap,`${n}`,this.boolMap[r]??n}case"FLOAT":{let r=n.trim(),o=Number(r),i=r!==""&&Number.isFinite(o);return`${n}`,i?o:n}case"COLOR":case"IMAGE":throw new te(`Cannot bind a variant property to a variable of type ${t}.`);case"STRING":case null:return n}}_convertResolvedVariableValueToStringVariantValue(t){if(t===null)return"null";switch(typeof t){case"string":return t;case"boolean":case"number":return String(t);default:throw new te(`Cannot bind a variant property to a variable of type ${typeof t}.`)}}reset(){}};var No=class{instanceState;modeContextState=de({});childNodeProps=new Map;transitionAtom=de(void 0);autoLayoutTransitionAtom=de(void 0);stateResetHandlers=[];variableState;cmsDataState=null;static createRoot(t,n,r){let o={backingComponentId:new gp(null,n),componentPropState:new Map};return new No(r,t,o)}constructor(t,n,r){this.variableState=t,this.cmsDataState=n,this.instanceState=r}resetComponentState=(t,n)=>{this.instanceState.backingComponentId.reset(),this.stateResetHandlers.forEac
8747h(r=>r(t,n))};getChildState(t,n,r,o){let i="componentSetId"in n&&n.componentSetId?n.componentSetId:null,s=this.childNodeProps.get(t),a;if(n.type==="INSTANCE"){let l=Object.entries(n.componentProperties).filter(([f,p])=>p.type==="VARIANT"),u=l.filter(([f,p])=>!p.boundVariables?.value).map(([f,p])=>[f,p.value]),c=l.filter(([f,p])=>!!p.boundVariables?.value).map(([f,p])=>[f,p.boundVariables.value]);a={backingComponentId:c.length?new Bh(this.variableState,r,i,c,u,o):new gp(null,o),componentPropState:new Map}}else a=this.instanceState;return s||(s=new No(this.variableState,this.cmsDataState,a),this.childNodeProps.set(t,s),i&&this.stateResetHandlers.push(s.resetComponentState)),s}};function lN(e,t,n){let r=e[t];if(r!=null||t==="default")return r;let o=e.default,i;if(typeof o=="function"?i=o:o&&typeof o=="object"&&(i=o[t]),i!=null){let a=`${n??"unknown-module"}::${t}`;if(!MB.has(a)){MB.add(a);let l=new ht("Code export resolved via default fallback");l.errorDetail=`warningKey: ${a}`,Me.reportError(l)}}return i}var MB=new Set;var H7={renderedByCode:!0};function W7({guid:e,modeContext:t,...n}){let r=fe(),o=(0,ti.useMemo)(()=>r?[{key:e,nodeId:e,nodeById:r.websiteData.nodeById,assets:r.websiteData.assets,assetIdToGuid:r.websiteData.assetIdToGuid,guidToUrl:r.websiteData.guidToUrl,animateRootIds:r.websiteData.animateRootIds,stablePathToAssetInfo:r.websiteData.stablePathToAssetInfo,stablePathToConstraints:r.websiteData.stablePathToConstraints,modeContext:t??{},parentState:No.createRoot(null,r.atomStore,r.globalVariableState),parentStates:null}]:[],[e,r,t]),i=HE(o),s=(0,ti.useMemo)(()=>{let a=Object.fromEntries(Object.entries(n).filter(([l])=>l.startsWith("data-")));return{...H7,style:n.style,className:n.className,dataAttributes:a}},[n]);return i[0]?(0,uN.jsx)(Hi,{node:i[0],parent:null,context:s,websiteContext:r}):null}function kB(e,t,n){let[,r]=(0,ti.useReducer)(u=>u+1,0),{variableState:o,modeContext:i}=e,s=fe(),{finalProps:a,boundVariables:l}=(0,ti.useMemo)(()=>{let u=Object.fromEntries(Object.entries(UB(e.componentProperties,e.assets,n,s,i))),c=VB(e.componentProperties);return{finalProps:u,boundVariables:c}},[e.componentProperties,n,i,e.assets,s]);if(o&&i)for(let[u,c]of Object.entries(l)){let d=t[u];d&&(a[d]=HB(c,o,i,s)),WB(c,u,o,a,i,r,s)}return Object.entries(t).forEach(([u,c])=>{l[u]||(a[c]=d=>{let f=a[u];typeof d!=typeof f&&console.error(`Expected value of type ${typeof f} for property ${u}, but got ${typeof d}`),a[u]=d,r()})}),a}function GB(e){let t=fe(),{websiteData:n}=t??{},r=(0,ti.useMemo)(()=>!t||!n||!e?.length?[]:e.map(o=>{let i=o.codeComponentId,s=n.assetIdToGuid.get(i)?.toString(),a=s?n.nodeById.get(s):null;return a?{codeNode:a,codeComponentId:i}:null}).filter(o=>o!==null),[t,n,e]);return(0,ti.useMemo)(()=>r.map(o=>o.codeNode),[r])}function FB(e,t,n,r,o,i,s){let[,a]=(0,ti.useReducer)(_=>_+1,0),l=fe(),{websiteData:u,getAssetURL:c}=l,d=u?.assetIdToGuid,{finalProps:f,boundVariables:p}=(0,ti.useMemo)(()=>{let _=Object.fromEntries(Object.entries(UB(e.componentPropertyDefinitions,s,i,l))),T=VB(e.componentPropertyDefinitions),h=(n??[]).find(m=>{let E=d?.get(m.codeComponentId);return e.id===E});if(!h)return{finalProps:_,boundVariables:T};for(let m of Object.keys(_))m in h.assignments&&h.assignments[m]!==void 0&&(typeof _[m]=="function"&&typeof h.assignments[m]=="string"?_[m]=BB(h.assignments[m],l.instanceSwapComponentCache):typeof h.assignments[m]=="object"&&"image"in h.assignments[m]?_[m]=Fh(h.assignments[m],go,c,s):_[m]=h.assignments[m]);return{finalProps:_,boundVariables:T}},[e.id,e.componentPropertyDefinitions,d,l,c,s,i,n]);if(r&&o)for(let[_,T]of Object.entries(p)){let h=t[_];h&&(f[h]=HB(T,r,o,l)),WB(T,_,r,f,o,a,l)}return Object.entries(t).forEach(([_,T])=>{p[_]||(f[T]=h=>{let m=f[_];typeof h!=typeof m&&console.error(`Expected value of type ${typeof m} for property ${_}, but got ${typeof h}`),f[_]=h,a()})}),f}function wB(e){let t=n=>{let{category:r,nodeTypes:o}=n.codeBehaviorData,i;switch(r){case"mouse":i=1;break;case"motion":i=2;break;default:i=3;break}return o&&o.includes("TEXT")&&(i=4),i};return[...e].sort((n,r)=>t(n)-t(r))}
8747function BB(e,t,n){let r=t.get(e);return r||(r=function(i){return e?(0,uN.jsx)(W7,{guid:e,modeContext:n,...i}):null},t.set(e,r),r)}function UB(e,t,n,r,o){let{instanceSwapComponentCache:i,getAssetURL:s}=r,a={};if(!e)return a;for(let l in e){let u=e[l],c=l.substring(0,l.lastIndexOf("#"));if(c&&u&&"type"in u)if(u.type==="INSTANCE_SWAP")if("value"in u&&u.value!=="-1:-1")a[c]=BB(u.value,i,o);else if(n?.[c]?.defaultValue){let d=n[c].defaultValue;a[c]=d??(()=>null)}else a[c]=()=>null;else if(u.type==="TEXT"){let d="value"in u?u.value:u.defaultValue;a[c]=d.characters}else if(u.type==="IMAGE")if("value"in u&&u.value!==null&&u.value.image)a[c]=Fh(u.value,go,s,t);else if(n?.[c]?.defaultValue){let d=n[c].defaultValue;a[c]=typeof d=="string"?{src:d}:JP(d)}else a[c]={src:""};else a[c]="value"in u?u.value:"defaultValue"in u?u.defaultValue:void 0}return a}function VB(e){let t={};if(!e)return t;for(let n in e){let r=e[n],o=n.substring(0,n.lastIndexOf("#"));if(o&&r&&"boundVariables"in r&&r.boundVariables){let i=r.boundVariables;i.value&&(t[o]=i.value.id)}}return t}function HB(e,t,n,r){return o=>{let{atomStore:i}=r,s=i.get,a=t.evaluateVariable(s,e,n);if(typeof o!=typeof a&&console.error(`Expected value of type ${typeof a} for variable ${e}, but got ${typeof o}`),typeof o=="function"){console.error("Cannot set function as variable value");return}if(typeof o=="object"&&"src"in o){console.error("Cannot set image prop as variable value");return}t.setVariable(e,o,n)}}function WB(e,t,n,r,o,i,s){let{atomStore:a}=s,l=a.get,u=n.getVariable(e);if(u){let d=u.value.getModeValue(o),f=n.evaluateVariable(l,e,o);return r[t]=f,a.sub(d,()=>{let _=n.evaluateVariable(l,e,o);r[t]=_,i()})}}async function Uh(e,t,n){let r=(t||"default").split(".");if(r.length===0)throw new te(`Code export name ${t} is empty`);let[o,i]=r;if(typeof e!="object")throw new te(`Code export ${t} is not an object`);let a=lN(e,o,n);if(r.length===1){if(a==null)throw new te(`Code export ${t} (${o}) is nullish`);return a}if(typeof a!="function")throw new te(`Code export ${t} (${o}) is not a function. The component may have failed to compile during publishing.`);let l=await a();if(typeof l!="object")throw new te(`Code export ${t} (${i}) is not an object`);let u=lN(l,i,n);if(u==null)throw new te(`Code export ${t} (${i}) is nullish`);return u}function YB(e){let t={};if(!e)return t;for(let[n,r]of Object.entries(e))r.setter&&(t[n]=r.setter);return t}var sd=(e,t,n)=>{let r=new ht(n);r.errorDetail=`sourceCodeHash: ${e}`,Me.reportError(r),console.error(n,t)};var br=v(_e()),xl=v(W());var ia=v(_e());var Dl=v(_e()),KB=(0,Dl.jsx)("svg",{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:(0,Dl.jsx)("path",{fill:"#191919",fillRule:"evenodd",d:"M7 7c0 1.043.533 1.963 1.341 2.5A3 3 0 0 0 7 12c0 1.043.533 1.963 1.341 2.5A3 3 0 1 0 13 17v-2.764A3 3 0 1 0 16.659 9.5 3 3 0 0 0 15 4h-5a3 3 0 0 0-3 3m8 2a2 2 0 1 0 0-4h-2v4zm-2 3a2 2 0 1 0 4 0 2 2 0 0 0-4 0m-1 2h-2a2 2 0 1 1 0-4h2zm-2 1h2v2a2 2 0 1 1-2-2m2-6h-2a2 2 0 1 1 0-4h2z",clipRule:"evenodd"})}),Vh=(0,Dl.jsx)("svg",{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:(0,Dl.jsx)("path",{fill:"#191919",fillRule:"evenodd",d:"M6.5 6a.5.5 0 0 1 .5.5V7h10a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H7v2.5a.5.5 0 0 1-1 0v-12a.5.5 0 0 1 .5-.5M7 8v7h10V8zm6.854 1.446a.5.5 0 0 1 0 .707L12.707 11.3l1.147 1.146a.5.5 0 0 1-.708.707L12 12.007l-1.146 1.146a.5.5 0 0 1-.708-.707l1.147-1.146-1.147-1.147a.5.5 0 0 1 .708-.707L12 10.593l1.146-1.147a.5.5 0 0 1 .708 0",clipRule:"evenodd"})}),zB=(0,Dl.jsx)("svg",{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:(0,Dl.jsx)("path",{fill:"#FFFFFF",d:"M13.992 12a.5.5 0 0 1 .5.507l-.002.172c-.049 1.564-.265 2.983-.598 4.064-.189.615-.425 1.149-.71 1.54-.276.38-.67.717-1.182.717-.513 0-.906-.337-1.183-.717-.284-.391-.52-.925-.71-1.54l-.055-.185c-.09-.322.175-.626.508-.605a.52.52 0 0 1 .467.375l.036.121c.173.561.369.98.563 1.246.2.276.333.305.374.305s.172-.028.374-.305c.194-.266.39-.685.562-1.246.3-.977.507-2.304.554-3.799l.002-.158a.5.5 0 0 1 .5-.492M7.44 10.054c.322-.091.625.173.606.506a.52.52 0 0 1-.374.467l-.122.037c-.56.172-.98.368-1.246.562-.277.202-.304.335-.304.374 0 .04.027.172.304.374.267.194.685.39 1.246.563.977.3 2.304.506 3.8.553l.157.002a.5.5 0 0 1-.015 1l-.171-.003c-1.564-.049-2.983-.264-4.065-.596-.614-.19-1.148-.426-1.54-.71C5.336 12.906 5 12.513 5 12s.336-.906.716-1.183c.392-.284.926-.52 1.54-.71zm5.238-.543c1.564.048 2.983.264 4.065.596.615.19 1.149.426 1.54.71.38.277.717.67.717 1.183s-.337.906-.717 1.183c-.391.284-.925.52-1.54.71q-.09.027-.185.053c-.322.09-.625-.174-.605-.508a.52.52 0 0 1 .374-.465l.122-.037c.561-.172.98-.368 1.246-.562.277-.202.305-.335.305-.374 0-.04-.028-.172-.305-.374-.267-.194-.685-.39-1.246-.562-.977-.301-2.304-.508-3.799-.554l-.158-.002a.5.5 0 0 1 .015-1zM12 5c.512 0 .906.337 1.182.717.285.391.521.925.71 1.54q.028.09.054.183a.484.484 0 0 1-.508.606.52.52 0 0 1-.467-.375l-.035-.12c-.172-.561-.368-.98-.562-1.246C12.172 6.028 12.039 6 12 6c-.04 0-.174.029-.374.305-.194.266-.39.685-.563 1.246-.31 1.01-.52 2.393-.558 3.949A.51.51 0 0 1 10 12a.49.49 0 0 1-.495-.5c.038-1.634.257-3.12.602-4.243.19-.615.426-1.149.71-1.54.277-.38.67-.717 1.183-.717"})});var Y7={display:"flex",width:"100%",height:"var(--banner-height)",padding:"8px",flexDirection:"row",alignItems:"center",justifyContent:"space-between",flexShrink:0,position:"fixed",top:"calc(var(--banner-height) * -1)",left:"0",right:"0",zIndex:999,borderBottomWidth:"1px",borderBottomStyle:"solid",borderBottomColor:"#e1e2e2",backgroundColor:"#FFFFFF"},K7={display:"flex",padding:"4px",alignItems:"center",borderRadius:"5px",border:"1px solid #e1e2e2"},z7={display:"flex",padding:"4px",alignItems:"center",borderRadius:"5px"},X7={display:"flex",minHeight:"32px",padding:"4px",paddingRight:"12px",alignItems:"center",borderRadius:"5px",background:"#1E1E1E",color:"#FFFFFF",textAlign:"center",fontFamily:"Inter, sans-serif",fontSize:"11px",fontStyle:"normal",fontWeight:"450",lineHeight:"16px",letterSpacing:"0.055px"},j7={display:"flex",alignItems:"center",flexDirection:"row",gap:"12px"};function XB({bannerUrlsAndStrings:e,websiteContext:t}){return t.renderElement({Tag:"div",styleSet:Y7,children:(0,ia.jsxs)(ia.Fragment,{children:[t.renderElement({Tag:"a",styleSet:z7,attributes:{href:e.figma_logo_url},children:KB}),t.renderElement({Tag:"div",styleSet:j7,children:(0,ia.jsxs)(ia.Fragment,{children:[t.renderElement({Tag:"a",styleSet:K7,attributes:{target:"_blank",href:e.report_abuse_url,rel:"noreferrer",title:e.report_button_text,"aria-label":e.report_button_text},children:Vh}),t.renderElement({Tag:"a",styleSet:X7,attributes:{target:"_blank",href:e.hub_file_url,rel:"noreferrer"},children:(0,ia.jsxs)(ia.Fragment,{children:[zB,e.remix_button_text]})})]})})]})})}var qt=v(_e()),vl=v(W());var $7=(0,qt.jsx)("svg",{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:(0,qt.jsx)("path",{fill:"currentColor",d:"M13.992 12a.5.5 0 0 1 .5.507l-.002.172c-.049 1.564-.265 2.983-.598 4.064-.189.615-.425 1.149-.71 1.54-.276.38-.67.717-1.182.717-.513 0-.906-.337-1.183-.717-.284-.391-.52-.925-.71-1.54l-.055-.185c-.09-.322.175-.626.508-.605a.52.52 0 0 1 .467.375l.036.121c.173.561.369.98.563 1.246.2.276.333.305.374.305s.172-.028.374-.305c.194-.266.39-.685.562-1.246.3-.977.507-2.304.554-3.799l.002-.158a.5.5 0 0 1 .5-.492M7.44 10.054c.322-.091.625.173.606.506a.52.52 0 0 1-.374.467l-.122.037c-.56.172-.98.368-1.246.562-.277.202-.304.335-.304.374 0 .04.027.172.304.374.267.194.685.39 1.246.563.977.3 2.304.506 3.8.553l.157.002a.5.5 0 0 1-.015 1l-.171-.003c-1.564-.049-2.983-.264-4.065-.596-.614-.19-1.148-.426-1.54-.71C5.336 12.906 5 12.513 5 12s.336-.906.716-1.183c.392-.284.926-.52 1.54-.71zm5.238-.543c1.564.048 2.983.264 4.065.596.615.19 1.149.426 1.54.71.38.277.717.67.717 1.183s-.337.906-.717 1.183c-.391.284-.925.52-1.54.71q-.09.027-.185.053c-.322.09-.625-.174-.605-.508a.52.52 0 0 1 .374-.465l.122-.037c.561-.172.98-.368 1.246-.562.277-.202.305-.335.305-.374 0-.04-.028-.172-.305-.374-.267-.194-.685-.39-1.246-.562-.977-.301-2.304-.508-3.799-.554l-.158-.002a.5.5 0 0 1 .015-1zM12 5c.512 0 .906.337 1.182.717.285.391.521.925.71 1.54q.028.09.054.183a.484.484 0 0 1-.508.606.52.52 0 0 1-.467-.375l-.035-.12c-.172-.561-.368-.98-.562-1.246C12.172 6.028 12.039 6 12 6c-.04 0-.174.029-.374.305-.194.266-.39.685-.563 1.246-.31 1.01-.52 2.393-.558 3.949A.51.51 0 0 1 10 12a.49.49 0 0 1-.495-.5c.038-1.634.257-3.12.602-4.243.19-.615.426-1.149.71-1.54.277-.38.67-.717 1.183-.717"})}),Z7=(0,qt.jsx)("svg",{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:(0,qt.jsx)("path",{fill:"currentColor",d:"M6 10.5C6.82843 10.5 7.5 11.1716 7.5 12C7.5 12.8284 6.82843 13.5 6 13.5C5.17157 13.5 4.5 12.8284 4.5 12C4.5 11.1716 5.17157 10.5 6 10.5ZM12 10.5C12.8284 10.5 13.5 11.1716 13.5 12C13.5 12.8284 12.8284 13.5 12 13.5C11.1716 13.5 10.5 12.8284 10.5 12C10.5 11.1716 11.1716 10.5 12 10.5ZM18 10.5C18.8284 10.5 19.5 11.1716 19.5 12C19.5 12.8284 18.8284 13.5 18 13.5C17.1716 13.5 16.5 12.8284 16.5 12C16.5 11.1716 17.1716 10.5 18 10.5Z"})}),J7=(0,qt.jsx)("svg",{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:(0,qt.jsx)("path",{fill:"currentColor",d:"M16.6465 6.64648C16.8417 6.45122 17.1583 6.45122 17.3535 6.64648C17.5488 6.84175 17.5488 7.15825 17.3535 7.35352L12.707 12L17.3535 16.6465C17.5488 16.8417 17.5488 17.1583 17.3535 17.3535C17.1583 17.5488 16.8417 17.5488 16.6465 17.3535L12 12.707L7.35352 17.3535C7.15825 17.5488 6.84175 17.5488 6.64648 17.3535C6.45122 17.1583 6.45122 16.8417 6.64648 16.6465L11.293 12L6.64648 7.35352C6.45127 7.15825 6.45124 6.84173 6.64648 6.64648C6.84173 6.45129 7.15827 6.45129 7.35352 6.64648L12 11.293L16.6465 6.64648Z"})}),q7={backgroundColor:"#ffffff",boxSizing:"border-box",display:"flex",gap:"8px",alignItems:"center",overflow:"visible",paddingLeft:"8px",paddingTop:"0px",paddingBottom:"0px",borderRadius:"13px",boxShadow:"0px 0px 0.5px 0px rgba(0,0,0,0.3), 0px 1px 3px 0px rgba(0,0,0,0.15)",width:"fit-content",height:"var(--banner-height-v2)",position:"fixed",bottom:"20px",right:"40px",zIndex:999},Q7={color:"rgba(0, 0, 0, 0.9)"},e$={boxSizing:"border-box",display:"flex",alignItems:"center",paddingLeft:"4px",paddingRight:"4px",paddingTop:"8px",paddingBottom:"8px",fontFamily:"Inter, sans-serif",fontWeight:"550",fontStyle:"normal",fontSize:"11px",color:"rgba(0, 0, 0, 0.9)",lineHeight:"16px",letterSpacing:"0.055px"},t$={display:"flex",flexDirection:"row",alignItems:"center",alignSelf:"stretch",boxSizing:"border-box",height:"100%",
8747justifyContent:"flex-end",position:"relative",flexShrink:0},n$={backgroundColor:"#4D49FC",color:"#ffffff",border:"1px solid rgba(0, 0, 0, 0.1)",borderRadius:"0.3125rem",padding:"0 0.5rem",fontSize:"11px",fontFamily:"Inter, sans-serif",fontWeight:"450",lineHeight:"16px",letterSpacing:"0.055px",cursor:"pointer",display:"flex",alignItems:"center",minHeight:"24px",textDecoration:"none",marginRight:"0.5rem"},jB={borderLeft:"1px solid rgba(0, 0, 0, 0.1)",boxSizing:"border-box",display:"flex",height:"100%",alignItems:"center",paddingLeft:"0px",paddingRight:"0px",paddingTop:"0px",paddingBottom:"0px",position:"relative",flexShrink:0},$B={background:"none",border:"none",cursor:"pointer",padding:"0.5rem",display:"flex",alignItems:"center",justifyContent:"center",color:"rgba(0, 0, 0, 0.5)",borderRadius:"4px"},r$={backgroundColor:"#ffffff",borderRadius:"11px",boxShadow:"0px 0px 0.5px 0px rgba(0,0,0,0.3), 0px 1px 3px 0px rgba(0,0,0,0.15)",position:"absolute",bottom:"100%",right:"0px",marginBottom:"8px",width:"fit-content",zIndex:1e3,padding:"8px",boxSizing:"border-box"},o$={display:"flex",alignItems:"center",gap:"4px",width:"100%",backgroundColor:"transparent",border:"none",textAlign:"right",cursor:"pointer",fontSize:"11px",fontFamily:"Inter, sans-serif",fontWeight:"400",color:"rgba(0, 0, 0, 0.9)",lineHeight:"20px"};function ZB({bannerUrlsAndStrings:e,websiteContext:t}){let[n,r]=(0,vl.useState)(!1),[o,i]=(0,vl.useState)(!1),s=(0,vl.useRef)(null);return(0,vl.useEffect)(()=>{let a=l=>{s.current&&!s.current.contains(l.target)&&i(!1)};return o&&document.addEventListener("mousedown",a),()=>{document.removeEventListener("mousedown",a)}},[o]),n?null:t.renderElement({Tag:"div",styleSet:[q7,"banner-v2-container"],children:(0,qt.jsxs)(qt.Fragment,{children:[t.renderElement({Tag:"div",styleSet:Q7,children:$7}),t.renderElement({Tag:"div",styleSet:e$,children:(0,qt.jsx)("p",{children:e.banner_v2_text})}),t.renderElement({Tag:"div",styleSet:t$,children:(0,qt.jsxs)(qt.Fragment,{children:[t.renderElement({Tag:"a",styleSet:n$,attributes:{target:"_blank",href:e.hub_file_url,rel:"noreferrer"},children:e.remix_button_text}),t.renderElement({Tag:"div",styleSet:jB,ref:s,children:(0,qt.jsxs)(qt.Fragment,{children:[t.renderElement({Tag:"button",styleSet:$B,attributes:{onClick:()=>i(!o),title:e.more_options_text,"aria-label":e.more_options_text},children:Z7}),o&&t.renderElement({Tag:"div",styleSet:r$,children:t.renderElement({Tag:"a",styleSet:o$,attributes:{target:"_blank",href:e.report_abuse_url,rel:"noreferrer",title:e.report_button_text,"aria-label":e.report_button_text},children:(0,qt.jsxs)(qt.Fragment,{children:[Vh," ",e.report_button_text]})})})]})}),t.renderElement({Tag:"div",styleSet:jB,children:t.renderElement({Tag:"button",styleSet:$B,attributes:{"aria-label":e.close_text,title:e.close_text,onClick:()=>r(!0)},children:J7})})]})})]})})}var Hh=de(!1);function i$({isLoading:e,bannerUrlsAndStrings:t,websiteContext:n}){return e||!t?null:t.banner_version==="2"?(0,br.jsx)(ZB,{bannerUrlsAndStrings:t,websiteContext:n}):(0,br.jsx)(XB,{bannerUrlsAndStrings:t,websiteContext:n})}function JB({children:e}){let t=Re(Hh),n=fe(),[r,o]=(0,xl.useState)(!1),i=MC(Hh),[s,a]=(0,xl.useState)(null),[l,u]=(0,xl.useState)(!0);(0,xl.useEffect)(()=>(o(!0),()=>{o(!1)}),[]),(0,xl.useEffect)(()=>{r&&(async()=>{try{u(!0);let f=await fetch("/__figma__/api/community_published_banner_details",{redirect:"follow"});if(f.status===200){let p=await f.json();p.meta&&(a(p.meta),i(!0))}}catch(f){console.error("Error fetching hub file URL:",f)}finally{u(!1)}})()},[r,i]);let c=s?.banner_version==="2";return r?(0,br.jsx)(br.Fragment,{children:n.renderElement({Tag:"div",styleSet:t&&!c?[{transform:"translateY(var(--banner-height))",height:"var(--full-height-with-banner)"},"wrapper-with-banner"]:void 0,children:(0,br.jsxs)(br.Fragment,{children:[(0,br.jsx)(na,{name:"banner-error-boundary",nodeId:"banner",children:(0,br.jsx)(i$,{isLoading:l,bannerUrlsAndStrings:s,websiteContext:n})}),n.renderElement({Tag:"div",styleSet:t&&!c?{height:"var(--full-height-with-banner)",position:"fixed",inset:"0",overflow:"auto"}:void 0,children:e})]})})}):(0,br.jsx)(br.Fragment,{children:e})}var qB=v(W());var QB=qB.default.forwardRef(function(t,n){let{semanticTag:r,context:o,styles:i,additionalClassName:s,tabIndex:a,websiteContext:l,wrappers:{outerStyles:u,needsListItemTag:c},...d}=t,f={...u,...i},p=[s,{styles:f,renderedByCode:o?.renderedByCode},o?.className],_={width:"100%",height:"100%"},{finalInnerSemanticTag:T,needsListWrapper:h}=U_(r,null,c),m=T;return h?l.renderElement({Tag:"li",styleSet:p,children:l.renderElement({Tag:m,attributes:{tabIndex:xs(T)?-1:a},styleSet:_,...d,ref:n})}):l.renderElement({Tag:m,styleSet:p,...d,attributes:{tabIndex:xs(T)?-1:a},ref:n})});var eU=v(W()),s$=class tU{renderHooks;constructor(t=[]){this.renderHooks=t}cloneWithAdditionalHook(t){return new tU([...this.renderHooks,t])}},Ml=eU.createContext(new s$);
8747var nU=v(W()),Ip=nU.createContext({isSnapshot:!1,snapshot:()=>{},enableManualSnapshot:()=>{}});var rU=v(_e()),Wh=v(W());var ad=Wh.createContext({shouldReduceMotion:!1});function cN({children:e}){let t=m_(),n=Wh.useMemo(()=>({shouldReduceMotion:t}),[t]);return(0,rU.jsx)(ad.Provider,{value:n,children:e})}function oU({node:e,parent:t,interactionHandlers:n,context:r,zIndex:o,websiteContext:i}){let{renderOptions:s}=i,a=rr(),l=Xn({node:e,parent:t,context:r,zIndex:o,children:[],options:{isFlattened:!0,precomputeTransforms:a},renderOptions:s}),u=cn(r,e),c=Zr(e,r),d=kl.useMemo(()=>({opacity:u,transform:zr(l.outer.transform)}),[u,l.outer.transform]),{motionProps:f,key:p,ref:_}=to(e.id,e.behaviors,e.assets,d,c),T=e.interactions??[],h=Fo(T),m=po(T),E=r?.withinInteractiveElement??!1,O=gr(T,n,E,i),{semanticTag:g}=Ms(e,m,h,E,!1),I=g,S=Re(Hh),A=$n({node:e,context:r,websiteContext:i}),R=jn({node:e,parent:t,children:null,renderOptions:s}),y={...l.inner,...kn(cn(r,e)),...dc(e,t,r,i),...Qr({node:e,parent:t,transitionProps:void 0,renderOptions:s,maskStyles:A}),...l.transform3d,...r?.style||{},...i.isFigmake?{height:S?"var(--full-height-with-banner)":"100dvh"}:{}},b=wn({node:e,parent:t,context:r,transitionProps:void 0,outerStyles:l.outer,wrapperSizeStyles:R,stickyWrapperStyles:l.stickyWrapper,transformChildWrapperStyles:l.transform,renderOptions:i.renderOptions,maskStyles:A});return Ne(yr({node:e,parent:t,context:r,wrappersToRender:b,websiteContext:i,children:Ot((0,ld.jsx)(QB,{semanticTag:I,nodeId:e.id,styles:y,additionalClassName:"tailwind",websiteContext:i,ref:_,wrappers:b.motionLayerContent,...f,...O,children:(0,ld.jsx)(Pl,{children:()=>(0,ld.jsx)(d$,{node:e,websiteContext:i})})},p))}),i)}function d$({node:e,websiteContext:t}){oa("CodeComponentContent");let n=ea(),r=t.getAssetURL,[o,i]=kl.useState(null);globalThis.__GLOBALS__={React:kl,ReactJSXRuntime:l$,ReactJSXDevRuntime:a$,ReactDOM:u$,ReactDOMClient:c$,SnapshotContext:Ip,RenderHooksContext:Ml,ActiveBreakpointContext:id,WebsiteSettingsContext:ad,getAssetURL:r};let s=t.getCodeComponentURL(e),a=t.websiteData.sourceCodeHash,l=Re(a);kl.useEffect(()=>{(async()=>{let p;try{p=await import(s)}catch(_){sd(l,_,"Failed to import code layer module");return}try{let _=await Uh(p,e.codeExportName,s);i(()=>_)}catch(_){sd(l,_,"Failed to execute code layer")}})()},[e.codeExportName,s,l]);let u=f$(o),c=sN(u),d=kB(e,c,u);return n&&o?(0,ld.jsx)(ra,{name:"code-component",nodeId:e.id,children:(0,ld.jsx)(o,{...d})}):null}function f$(e){return e?e[Symbol.for("figma.react.props")]??{}:null}function iU({node:e,children:t,context:n,websiteContext:r,renderFigmaLayer:o}){let i=Jr(r,e),s={"data-name":i};return n?.dataAttributes&&Object.entries(n.dataAttributes).forEach(([a,l])=>{s[a]=l}),ne({Tag:"div",nodeId:e.id,attributes:{"data-name":i,...s},children:t.map(a=>o({name:"sites-layer",nodeId:a.id,childKey:a.id,node:a,parent:null,context:void 0,websiteContext:r}))})}function sU({node:e,children:t,context:n,websiteContext:r}){return Ne(iU({node:e,children:t,context:n,websiteContext:r,renderFigmaLayer:od}),r)}var fU=v(W());function Yh(e){return"type"in e&&e.type==="spring"}function ud(e){return Array(e.length-1).fill(bs)}function p$(e,t,n,r){let o=e.map((i,s)=>s).sort((i,s)=>(e[i]??0)-(e[s]??0));return{times:o.map(i=>e[i]??0),scale:o.map(i=>t[i]??0),pos:o.map(i=>n[i]??0),ease:o.slice(0,-1).map(i=>r[i]??bs)}}function aU(e){return e<=1?[0]:Array.from({length:e},(t,n)=>n/(e-1))}function lU(e,t,n,r,o){let i=e[n],s=t[n];if(!i||s&&Yh(s)){e[n]=r,o&&(t[n]=o);return}let a=s?.times??aU(i.length),l=s?.ease??ud(a),u=o?.times??aU(r.length),c=o?.ease??ud(u),d=[...new Set([...a,...u])].sort((f,p)=>f-p);e[n]=d.map(f=>So(f,a,i,l)+So(f,u,r,c)),t[n]={duration:Math.max(s?.duration??0,o?.duration??0),times:d,ease:ud(d)}}function uU(e,t,n,r){let o=t[n];return Array.isArray(e[n])&&!!o&&(Yh(o)||r!==void 0&&o.duration!==r)}function dN(e,t,n,r){let{dimensionKey:o,scaleKey:i,posKey:s,baseSize:a}=r;if(!(o in e)||typeof e[o]!="number"||a===0)return;let l=i in e||i in t,u=f=>a/2*(f-1),c=n[o],d=n[i];if(l&&Array.isArray(t[o])&&Array.isArray(t[i])){if(c&&Yh(c)||d&&Yh(d))return;let f=c,p=d,_=Math.max(f?.duration??0,p?.duration??0);if(uU(t,n,s,_))return;let T=f?.times,h=p?.times;if(!T||!h)return;let m=f?.ease??ud(T),E=p?.ease??ud(h),O=t[o].map(D=>D/a),g=t[i],I=T[0]??0,S=T[T.length-1]??0,A=h[0]??0,R=h[h.length-1]??0,y=S>A&&I<R,b;if(y){let D=[...new Set([...T,...h])].sort((H,N)=>H-N),F=D.map(H=>So(H,T,O,m)*So(H,h,g,E));b={times:D,scale:F,pos:F.map(u),ease:ud(D)}}else{let D=O[O.length-1]??1;b=p$([...T,...h],[...O,...g.map(F=>D*F)],[...O.map(u),...g.map(()=>u(D))],[...m,bs,...E])}e[i]=e[o]/a*(e[i]??1),e[s]=(e[s]??0)+u(e[i]),delete e[o],t[i]=b.scale,delete t[o];let L={duration:_,times:b.times,ease:b.ease};n[i]=L,lU(t,n,s,b.pos,L),delete n[o]}else{let f=c;if(uU(t,n,s,f?.duration))return;let p=e[o]/a;if(e[i]=p,e[s]=(e[s]??0)+u(p),delete e[o],Array.isArray(t[o])){let _=t[o].map(T=>T/a);t[i]=_,lU(t,n,s,_.map(u),f),delete t[o]}c&&(n[i]=c,delete n[o])}}var m$=[[1,0,0],[0,1,0]],fN={position:"relative",width:"100%",height:"100%"};function E$(e,t,n,r,o,i){let s=e?.groupFrameOffset?.frameWidth??e?.constrainingFrameSize?.width??r?.size?.x??n.size.x,a=e?.groupFrameOffset?.frameHeight??e?.constrainingFrameSize?.height??r?.size?.y??n.size.y,l=e?.groupFrameOffset?.x??0,u=e?.groupFrameOffset?.y??0;
8747return{group:void 0,constrainingFrameSize:{width:n.size.x,height:n.size.y},groupFrameOffset:{x:l+(t?.x??0),y:u+(t?.y??0),frameWidth:s,frameHeight:a,groupWidth:n.size.x,groupHeight:n.size.y},parentIsList:o,masks:e?.masks,isInStickyOrFixedTree:i||(e?.isInStickyOrFixedTree??!1),withinInteractiveElement:e?.withinInteractiveElement,inheritedEffects:yf(n,e?.inheritedEffects)}}function cU(e){let{node:t,parent:n,children:r,context:o,zIndex:i,precomputeTransforms:s,renderOptions:a}=e,l=Xn({node:t,parent:n,context:o,zIndex:i,children:r??null,options:{precomputeTransforms:s},renderOptions:a}),u=cn(o,t);return{layoutStyles:l,opacity:u}}function dU({node:e,parent:t,children:n,interactionHandlers:r,context:o,transitionProps:i,websiteContext:s,outerRef:a,opacity:l,layoutStyles:u,behaviorProps:c,behaviorsKey:d,behaviorsRef:f,renderFigmaLayer:p}){let{renderOptions:_}=s,T=o?.group,h=$t(e,t),m=h?m$:e.relativeTransform,E=T?.withinAutoLayout||h,O=_.enableGroupKeyframeAnimations&&!E&&!!o?.masks?.length,g=_.enableGroupKeyframeAnimations&&!E&&(O||!!e.keyframeData&&Object.keys(e.keyframeData).length>0),I=!E&&!g,S=e.scrollBehavior==="FIXED"||e.scrollBehavior==="STICKY_SCROLLS",A=T?.isHorizontalFillParent||(E?A_(e,t):!1),R=e.interactions??[],y=Mn(e,_),b=Fo(R),L=po(R),D=Ko(e),F=jn({node:e,parent:t,children:n,renderOptions:_}),H={...u.outer,overflow:"visible",...g?{width:e.size.x,height:e.size.y}:{}},{shouldOutputVariables:N,codeSyntaxLanguage:K}=_,C={...u.inner,...I?{}:kn(l,N,e.boundVariables?.opacity?.resolvedName,K&&e.boundVariables?.opacity?.resolvedCodeSyntax?.[K]),...Ni(e),...u.transform3d},M=F_(_,o,e.absoluteBoundingBox),P=O?$n({node:e,context:M,websiteContext:s}):{},z=i?.smartAnimateType??ee.NONE,Ee=on(i?.transitionData),pe=o?.withinInteractiveElement||Object.keys(c).length>0||z===ee.INSTANCE_SUBTREE,ye=gr(R,r,pe,s),Le=Ms(e,L,b,pe,y),We=B_(Le)!==null,De=Jr(s,e),ae=g?cc(xt(Wt(T?.relativeTransform,e.relativeTransform)),e.size):null,Oe=_$(g,e.keyframeData,e.size,_.emitMotionDataForCodegen),oe=g?E$(o,ae,e,t,We,S):{group:{withinAutoLayout:E,isHorizontalFillParent:A,relativeTransform:xt(Wt(T?.relativeTransform,m)),opacity:I?l:void 0,mixBlendMode:E?void 0:zu(e.blendMode)},parentIsList:We,masks:o?.masks,constrainingFrameSize:o?.constrainingFrameSize,groupFrameOffset:o?.groupFrameOffset,isInStickyOrFixedTree:S||(o?.isInStickyOrFixedTree??!1),withinInteractiveElement:o?.withinInteractiveElement,inheritedEffects:yf(e,o?.inheritedEffects)},ft=O?{...oe,masks:void 0}:oe,et=Ph({children:n,context:ft,parent:e,renderOptions:_,renderFigmaLayer:p,websiteContext:s});if(g){let Ye={...Qr({node:e,parent:t,transitionProps:i,renderOptions:_,maskStyles:P}),...kn(l,N,e.boundVariables?.opacity?.resolvedName,K&&e.boundVariables?.opacity?.resolvedCodeSyntax?.[K]),...Ni(e),...u.transform3d},ce=wn({node:e,parent:t,context:o,transitionProps:i,outerStyles:fN,wrapperSizeStyles:fN,stickyWrapperStyles:u.stickyWrapper,transformChildWrapperStyles:u.transform,renderOptions:_,maskStyles:P}),tt=Il({keyframeMotionPropsOverride:Oe,node:e,context:o,renderOptions:_,smartAnimateType:z,
8747wrappersToRender:ce});return ne({Tag:"div",styleSet:H,children:yr({node:e,parent:t,context:o,outerRef:a,transitionProps:i,wrappersToRender:ce,websiteContext:s,keyframeMotionPropsOverride:tt.wrapperKeyframeMotionPropsOverride,children:Ao({node:e,semanticTagInfo:Le,key:d,context:M,ref:f,nodeId:ce.motionLayerContent.nodeId,styles:Ye,keyframeMotionPropsOverride:tt.childKeyframeMotionPropsOverride,wrappers:{outerStyles:fN,needsListItemTag:ce.motionLayerContent.needsListItemTag,nodeId:ce.motionLayerContent.nodeId},websiteContext:s,transitionProps:{opacity:l,smartAnimateType:z,behaviorProps:c,transitionData:i?.transitionData,onTransitionEnd:Ee},attributes:{"data-name":De,...ye,...D},children:et})})})}let he=wn({node:e,parent:t,context:o,transitionProps:i,outerStyles:u.outer,wrapperSizeStyles:F,stickyWrapperStyles:u.stickyWrapper,transformChildWrapperStyles:u.transform,renderOptions:_}),ke=Il({keyframeMotionPropsOverride:Oe,node:e,context:o,renderOptions:_,smartAnimateType:z,wrappersToRender:he});return yr({node:e,parent:t,context:o,outerRef:a,transitionProps:i,wrappersToRender:he,websiteContext:s,keyframeMotionPropsOverride:ke.wrapperKeyframeMotionPropsOverride,children:Ao({node:e,semanticTagInfo:Le,key:d,context:o,ref:f,nodeId:he.motionLayerContent.nodeId,styles:C,keyframeMotionPropsOverride:ke.childKeyframeMotionPropsOverride,wrappers:he.motionLayerContent,websiteContext:s,transitionProps:{opacity:l,smartAnimateType:z,behaviorProps:c,transitionData:i?.transitionData,onTransitionEnd:Ee},attributes:{"data-name":De,...ye,...D},children:et})})}function _$(e,t,n,r=!1){if(!e||!t)return;let o=Li(t,{normalizeParameterUnits:r});if(!o)return null;let i={...o.initial},s={...o.animate},a={...o.transition};return dN(i,s,a,{dimensionKey:"width",scaleKey:"scaleX",posKey:"x",baseSize:n.x}),dN(i,s,a,{dimensionKey:"height",scaleKey:"scaleY",posKey:"y",baseSize:n.y}),{...o,initial:i,animate:s,transition:a}}function pU({node:e,parent:t,children:n,interactionHandlers:r,context:o,zIndex:i,transitionProps:s,websiteContext:a}){let{renderOptions:l}=a,u=(0,fU.useRef)(null),c=rr(),{layoutStyles:d,opacity:f}=cU({node:e,parent:t,children:n,context:o,zIndex:i,precomputeTransforms:c,renderOptions:l}),p={opacity:f,transform:zr(d.transform.transform)},_=Zr(e,o),{motionProps:T,key:h,ref:m}=to(e.id,e.behaviors,e.assets,p,_);return Ne(dU({node:e,parent:t,children:n,interactionHandlers:r,context:o,transitionProps:s,websiteContext:a,outerRef:u,opacity:f,layoutStyles:d,behaviorProps:T,behaviorsKey:h,behaviorsRef:m,renderFigmaLayer:od}),a)}var Rp=v(_e()),D1e=v(W());var or=v(_e()),Bn=v(W());var T$={url:""};var Kh="reset-css";function pN(e=!0){return sn` ${O$}${g$}${I$}${e?D$:""}`}var O$=sn` @layer figreset,figoverridable,reset,theme,base,figutils,components,utilities;`,g$=sn` @layer figoverridable{:root{font-synthesis:none}}`,I$=sn` @layer figutils{:root{--banner-height:48px;--banner-height-v2:40px;--full-height-with-banner:calc(100dvh - var(--banner-height))}@media (max-width:600px){.banner-v2-container{left:0 !important;right:0 !important;margin:0 auto !important}}.wrapper-with-banner .min-h-screen{min-height:var(--full-height-with-banner)}.wrapper-with-banner .h-screen{height:var(--full-height-with-banner)}}`,S$=sn` @layer figreset{:root{font-family:var( --default-font-family,ui-sans-serif,system-ui,sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol','Noto Color Emoji' )}html{-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent;-webkit-font-smoothing:antialiased;width:100%}body{margin:0;width:100%}body:has([data-page-overflowx='hidden']){overflow-x:hidden}body:has([data-page-overflowx='auto']){overflow-x:auto}}@layer figutils{#container{width:100%}}`;var R$=sn` @layer figreset{*,*:before,*:after{box-sizing:border-box}a{color:inherit;text-decoration:none}button{border:none;background:none;padding:0}h1,h2,h3,h4,h5,h6,p{font-size:inherit;font-weight:inherit}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}ol,ul,menu{list-style:none;margin:0;padding-inline-start:0}}`,A$=sn` @layer figutils{#container .marquee-container{overflow-x:hidden;display:flex;flex-direction:row;position:relative;width:var(--width);transform:var(--transform);&:hover div{animation-play-state:var(--pause-on-hover)}&:active div{animation-play-state:var(--pause-on-click)}&:focus-within > *{animation-play-state:paused !important}}#container .marquee{flex:0 0 auto;min-width:var(--min-width);display:flex;flex-direction:row;align-items:center;animation:scroll var(--duration) linear var(--delay) var(--iteration-count);animation-delay:var(--delay);animation-direction:var(--direction);animation-timing-function:var(--timing-function)}#container .marquee.reduced-motion{@media (prefers-reduced-motion:reduce){animation:none}}@keyframes scroll{0%{transform:translateX(0%)}100%{transform:translateX(-100%)}}#container .marquee-initial-child-container{flex:0 0 auto;display:flex;min-width:auto;flex-direction:row;align-items:center}#container .marquee-child{transform:var(--transform)}}`,N$=sn` @layer figutils{.code-behavior-wrapper > *{width:100%;height:100%}}`,y$=sn` @layer figutils{#container .embed{border:none}}`,b$=sn` @layer figutils{:is(.textContents ul,ul.textContents) > li:before{content:'\\2022';margin-left:-1.5em;display:inline-block;text-align:center;width:1.5em;-webkit-background-clip:var(--list-marker-background-clip);-webkit-text-fill-color:var(--list-marker-text-fill-color);background-clip:var(--list-marker-background-clip);color:var(--list-marker-color);font-size:var(--list-marker-font-size);line-height:var(--list-marker-line-height);vertical-align:var(--list-marker-vertical-align)}:is(.textContents ol,ol.textContents) > li::marker{color:var(--list-marker-color);font-size:var(--list-marker-font-size);line-height:var(--list-marker-line-height);vertical-align:var(--list-marker-vertical-align)}:is(.textContents,.textContents *).adjustLetterSpacing:after{content:'';margin-left:calc(var(--letter-spacing) * -1)}}`,L$=sn` @layer figutils{.bypass-link{position:fixed;top:16px;left:0;right:0;display:flex;justify-content:center;align-items:center;opacity:0;pointer-events:none}.bypass-link:focus-within{opacity:1;z-index:${1e4}}.bypass-link > a{background-color:#000;color:#fff;border:1px solid #fff;padding:12px 16px;font-size:16px;border-radius:12px;pointer-events:auto}}`,C$=sn` @layer figreset{:root{--100dvw:100vw;--100dvh:100vh}@supports (width:100dvw){:root{--100dvw:100dvw;--100dvh:100dvh}}}`,P$=sn` @layer figreset{:root{text-align:left;button{text-align:left}}}`,D$=sn` ${S$}${R$}${b$}${y$}${A$}${N$}${C$}${L$}${P$}`;var zh={thin:100,hairline:100,extralight:200,"extra light":200,ultralight:200,"ultra light":200,light:300,regular:400,normal:400,book:400,medium:500,semibold:600,"semi bold":600,demibold:600,"demi bold":600,bold:700,extrabold:800,"extra bold":800,ultrabold:800,"ultra bold":800,black:900,heavy:900,extrablack:950,"extra black":950,ultrablack:950,"ultra black":950};function mU(e){if(!e)return;
8747let t=e.toLowerCase().replace(/italic/gi,"").trim();if(zh[t]!==void 0)return zh[t];let n=Object.keys(zh).sort((r,o)=>o.length-r.length);for(let r of n)if(t.includes(r))return zh[r]}function Xh(e,t){if(!e)return mU(t)}function sa(e){let{family:t,style:n,url:r,unicodeRange:o,weight:i}=e;return` 8748@font-face { 8749 font-family: "${t}"; 8750 font-style: ${n}; 8751 src: url("${r}"); 8752 font-display: block; 8753 ${i!==void 0?`font-weight: ${i};`:""} 8754 ${o&&o!=="*"?`unicode-range: ${o};`:""} 8755} 8756`}var mN="My Site",EN="Created with Figma";var _N=/^(https?:)?\/\/(www\.)?lottie\.host\//;var fn=v(_e()),qh=v(W());var gU=v(_e());var yo=function(e){return e.EXPLICIT="EXPLICIT",e.IMPLICIT="IMPLICIT",e}({}),Gl=function(e){return e.LEFT="LEFT",e.CENTER="CENTER",e.RIGHT="RIGHT",e}({}),Fl=function(e){return e.TOP="TOP",e.CENTER="CENTER",e.BOTTOM="BOTTOM",e}({}),TN=function(e){return e.MODAL="MODAL",e.BANNER="BANNER",e}({});function wl(){return{color:"rgba(0, 0, 0, 0.9)",fontWeight:450,fontSize:"var(--consent-font-size-medium)",lineHeight:"var(--consent-line-height-medium)"}}function v$(){return{color:"rgba(0, 0, 0, 0.9)",fontWeight:450,fontSize:"var(--consent-font-size-large)",lineHeight:"var(--consent-line-height-large)"}}function x$(){return{fontWeight:550}}function hN(){return{...wl(),cursor:"pointer",backgroundColor:"transparent"}}function EU(){return{...x$(),...v$()}}function jh(){return{...wl(),color:"rgba(0, 0, 0, 0.5)"}}function _U(){return{...wl(),backgroundColor:"black",color:"white",border:"1px solid black",height:"1.5rem",borderRadius:".3125rem",display:"flex",alignItems:"center",justifyContent:"center",padding:"0 .5rem",flexShrink:0,flexGrow:1,cursor:"pointer"}}function TU({wide:e}){return{display:"flex",gap:"0.5rem",flexShrink:0,alignItems:"center",width:e?"100%":void 0}}function $h({checked:e,disabled:t}){return{input:{position:"absolute",opacity:0,width:32,height:16,margin:0,cursor:t?"unset":"pointer"},label:{display:"block",width:32,height:16,borderRadius:13,backgroundColor:e&&!t?"#1E1E1E":"#E6E6E6",position:"relative",cursor:t?"unset":"pointer",transition:"background-color 0.4s",pointerEvents:"none"},indicator:{position:"absolute",height:14,width:14,left:e?17:1,top:1,backgroundColor:"white",borderRadius:"50%",transition:"left 0.4s",boxShadow:"0 2px 4px rgba(0,0,0,0.2)",pointerEvents:"none"}}}function hU({yAlignment:e}){let t={};return e===Fl.TOP?(t.top=0,t.borderBottom="1px solid #E6E6E6"):e===Fl.BOTTOM&&(t.bottom=0,t.borderTop="1px solid #E6E6E6"),{position:"fixed",left:0,right:0,display:"flex",padding:"var(--consent-banner-padding)",justifyContent:"center",alignItems:"center",gap:"1rem",alignSelf:"stretch",backgroundColor:"white",color:"rgba(0, 0, 0, 0.5)",zIndex:9999,...t}}function OU({xAlignment:e,yAlignment:t}){let n={};return e===Gl.LEFT?n.left="1rem":e===Gl.RIGHT&&(n.right="1rem"),t===Fl.TOP?n.top="1rem":t===Fl.BOTTOM&&(n.bottom="1rem"),{...ON(),position:"fixed",padding:"1rem",zIndex:1e4,...n}}function ON(){return{position:"relative",backgroundColor:"white",borderRadius:".8125rem",padding:"1rem",width:330,maxHeight:"90%",maxWidth:"100%",boxShadow:"0px 0px 0px 1px rgba(0, 0, 0, 0.04), 0px 0px 0.5px 0px rgba(0, 0, 0, 0.12), 0px 10px 16px 0px rgba(0, 0, 0, 0.08), 0px 2px 6px 0px rgba(0, 0, 0, 0.12)",display:"flex",flexDirection:"column",alignItems:"center",gap:"1rem",overflowY:"auto"}}function cd({children:e,className:t,onClick:n}){return(0,gU.jsx)("button",{className:t,onClick:n,style:_U(),children:e})}var bo=v(_e());function M$({checked:e,disabled:t,onChange:n,label:r,id:o}){return(0,bo.jsxs)("div",{style:{display:"inline-block",position:"relative"},children:[(0,bo.jsx)("input",{"aria-disabled":t,disabled:t,type:"checkbox",id:o,checked:e,onChange:i=>n?.(i.target.checked),"aria-label":r,style:$h({checked:e,disabled:t}).input}),(0,bo.jsx)("label",{htmlFor:o,style:$h({checked:e,disabled:t}).label,children:(0,bo.jsx)("span",{style:$h({checked:e,disabled:t}).indicator})})]})}function gN({id:e,checked:t,description:n,label:r,onChange:o,disabled:i}){return(0,bo.jsxs)("div",{onClick:i?void 0:()=>o(!t),style:{display:"flex",flexDirection:"column",padding:"0.5rem 0"},children:[(0,bo.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[(0,bo.jsx)(M$,{checked:t,disabled:i,onChange:i?void 0:o,label:r,id:e}),(0,bo.jsx)("label",{style:{...wl(),color:i?"rgba(0, 0, 0, 0.3)":"rgba(0, 0, 0, 0.9)"},children:r})]}),(0,bo.jsx)("span",{style:{marginLeft:"2.5rem",...jh()},children:n})]})}var Bl=v(_e()),IN=v(W()),IU=v(Ou());var Zh=v(W());function Jh(e){let[t,n]=(0,Zh.useState)(null);return(0,Zh.useLayoutEffect)(()=>
8756{if(typeof document>"u")return;let r=e?document.getElementById(e):null;n(r||null)},[e]),t}var k$={position:"fixed",inset:0,padding:"1rem",display:"flex",justifyContent:"center",alignItems:"center",zIndex:1e4},G$={display:"flex",justifyContent:"flex-end",position:"absolute",top:16,right:16,lineHeight:1,cursor:"pointer"},F$={display:"flex",flexDirection:"column",gap:"0.5rem",width:"100%",height:"100%"};function SN({containerId:e,children:t,onClose:n,scrimBackground:r}){let o=Jh(e);return(0,IN.useEffect)(()=>{let i=s=>{s.key==="Escape"&&n()};return document.addEventListener("keydown",i),()=>{document.removeEventListener("keydown",i)}},[n]),(0,IN.useEffect)(()=>{let i=document.body.style.overflow;return o?o.style.overflow="hidden":document.body.style.overflow="hidden",()=>{o?o.style.overflow=i:document.body.style.overflow=i}},[o]),(0,IU.createPortal)((0,Bl.jsx)("div",{style:{...k$,...r?{backgroundColor:"rgba(0, 0, 0, 0.1)"}:{}},children:(0,Bl.jsxs)("div",{style:ON(),children:[(0,Bl.jsx)("div",{style:G$,children:(0,Bl.jsx)("button",{"aria-label":"Close modal",style:{fontSize:"16px",color:"black",backgroundColor:"transparent",border:"none",cursor:"pointer"},onClick:n,children:"\xD7"})}),(0,Bl.jsx)("div",{style:F$,children:t})]})}),o||document.body)}var Sp=v(_e());function RN({policyLink:e,policyUrl:t,disclaimerText:n,guidToUrl:r,setLocation:o,reportError:i,isPreview:s}){let a=u=>{if(t)return(0,Sp.jsx)("a",{rel:"noopener noreferrer",target:"_blank",href:t,style:hN(),children:u},"policy-url");if(e){let c=s?"/":r?.get(e);return c?(0,Sp.jsx)("button",{onClick:()=>{o({url:c})},style:hN(),children:u},"policy-link"):(i(new Error("Sites cookie banner has an invalid policy link or is missing guidToUrl")),null)}return s||i(new Error("Sites cookie banner is enabled but no policy internal link or external URL is set")),null},l=n.split(/(<link>.*?<\/link>)/);return!l.length||!l.some(u=>u.match(/<link>(.*?)<\/link>/))?(i(new Error(`Formatting error in cookie banner disclaimer text: ${n}`)),null):(0,Sp.jsx)("div",{style:{lineHeight:"var(--consent-font-size-medium)"},children:l.map((u,c)=>{let d=u.match(/<link>(.*?)<\/link>/);return d&&d[1]?a(d[1]):(0,Sp.jsx)("p",{style:{display:"inline",...jh()},children:u},c)})})}var SU=v(_e()),GMe=v(W()),RU=v(Ou());function AN({containerId:e,xAlignment:t=Gl.CENTER,yAlignment:n=Fl.CENTER,children:r}){let o=Jh(e);return(0,RU.createPortal)((0,SU.jsx)("div",{style:OU({xAlignment:t,yAlignment:n}),children:r}),o||document.body)}var AU=v(_e());function w$({xAlignment:e}){let t={bottom:0};return e===Gl.RIGHT?t.right="1.5rem":t.left="1.5rem",{...wl(),position:"fixed",backgroundColor:"white",padding:".5rem 1rem",cursor:"pointer",borderRadius:"0.3125rem 0.3125rem 0 0",boxShadow:"0px 0px 0.5px 0px rgba(0, 0, 0, 0.18), 0px 3px 8px 0px rgba(0, 0, 0, 0.10), 0px 1px 3px 0px rgba(0, 0, 0, 0.10)",...t}}function NN({children:e,onClick:t,xAlignment:n}){return(0,AU.jsx)("button",{onClick:t,style:w$({xAlignment:n}),children:e})}var yN={"en-US":{noticeHeader:"This site uses cookies",noticeDisclaimerImplicit:"Cookies on this site help improve your experience and deliver personalized content. By continuing to browse, you consent to the use of these cookies. <link>Read more</link>",acceptText:"Accept all",manageText:"Manage",noticeDisclaimerExplicit:"Cookies on this site help improve your experience and deliver personalized content. Click \u201CAccept all\u201D to consent to the use of these cookies. <link>Read more</link>",rejectText:"Reject all",manageHeader:"Manage cookie preferences",manageDisclaimer:"Cookies on this site help improve your experience and deliver personalized content. You can\u2019t opt out of cookies that are essential for basic functionality, but you can decide not to allow other categories according to your preferences. <link>Read more</link>",necessaryText:"Essential cookies",necessaryDescription:"Required to enable core site functionality and preferences.",marketingText:"Marketing cookies",marketingDescription:"Allow tracking to enable ads personalization and tracking.",preferencesText:"Personalization cookies",preferencesDescription:"Allow tracking to tailor your site experience to your interests.",analyticsText:"Analytics cookies",analyticsDescription:"Allow tracking of site traffic to help improve site performance.",saveLabel:"Save preferences",triggerLabel:"Cookie preferences"}
8756,"en-GB":{noticeHeader:"This site uses cookies",noticeDisclaimerImplicit:"Cookies on this site help to improve your experience and deliver personalised content. By continuing to browse, you consent to the use of these cookies. <link>Read more</link>",acceptText:"Accept all",manageText:"Manage",noticeDisclaimerExplicit:"Cookies on this site help to improve your experience and deliver personalised content. Click \u2018Accept all\u2019 to consent to the use of these cookies. <link>Read more</link>",rejectText:"Reject all",manageHeader:"Manage cookie preferences",manageDisclaimer:"Cookies on this site help to improve your experience and deliver personalised content. You cannot opt out of cookies that are essential for basic functionality, but you can choose not to allow other categories according to your preferences. <link>Read more</link>",necessaryText:"Essential cookies",necessaryDescription:"Required to enable core site functionality and store your preferences.",marketingText:"Marketing cookies",marketingDescription:"Allow tracking to enable advertising personalisation and performance measurement.",preferencesText:"Personalisation cookies",preferencesDescription:"Allow tracking to tailor your site experience based on your interests.",analyticsText:"Analytics cookies",analyticsDescription:"Allow tracking of site usage to help improve performance.",saveLabel:"Save preferences",triggerLabel:"Cookie preferences"},"fr-FR":{noticeHeader:"Ce site utilise des cookies",noticeDisclaimerImplicit:"Les cookies pr\xE9sents sur ce site am\xE9liorent votre exp\xE9rience et fournissent un contenu personnalis\xE9. En continuant \xE0 naviguer, vous consentez \xE0 l'utilisation de ces cookies. <link>En savoir plus</link>",acceptText:"Tout accepter",manageText:"G\xE9rer",noticeDisclaimerExplicit:"Les cookies pr\xE9sents sur ce site am\xE9liorent votre exp\xE9rience et fournissent un contenu personnalis\xE9. Cliquez sur \u201CTout accepter\u201D pour consentir \xE0 l'utilisation de ces cookies. <link>En savoir plus</link>",rejectText:"Tout refuser",manageHeader:"G\xE9rer les pr\xE9f\xE9rences de cookies",manageDisclaimer:"Les cookies pr\xE9sents sur ce site am\xE9liorent votre exp\xE9rience et fournissent un contenu personnalis\xE9. Vous ne pouvez pas d\xE9sactiver les cookies essentiels au bon fonctionnement du site, mais vous pouvez choisir de ne pas autoriser certaines autres cat\xE9gories selon vos pr\xE9f\xE9rences. <link>En savoir plus</link>",necessaryText:"Cookies essentiels",necessaryDescription:"N\xE9cessaires pour activer les fonctionnalit\xE9s principales du site et m\xE9moriser vos pr\xE9f\xE9rences.",marketingText:"Cookies marketing",marketingDescription:"Autoriser le suivi pour personnaliser les publicit\xE9s et le marketing.",preferencesText:"Cookies de personnalisation",preferencesDescription:"Autoriser le suivi pour adapter l\u2019exp\xE9rience du site \xE0 vos centres d\u2019int\xE9r\xEAt.",analyticsText:"Cookies d\u2019analyse",analyticsDescription:"Autoriser le suivi du trafic du site pour am\xE9liorer ses performances.",saveLabel:"Enregistrer les pr\xE9f\xE9rences",triggerLabel:"Pr\xE9f\xE9rences de cookies"},"de-DE":{noticeHeader:"Diese Website verwendet Cookies",noticeDisclaimerImplicit:"Cookies auf dieser Website helfen dabei, Ihr Nutzungserlebnis zu verbessern und personalisierte Inhalte bereitzustellen. Wenn Sie weiter surfen, stimmen Sie der Verwendung dieser Cookies zu. <link>Mehr erfahren</link>",acceptText:"Alle akzeptieren",manageText:"Verwalten",noticeDisclaimerExplicit:"Cookies auf dieser Website helfen dabei, Ihr Nutzungserlebnis zu verbessern und personalisierte Inhalte bereitzustellen. Klicken Sie auf \u201EAlle akzeptieren\u201C, um der Verwendung dieser Cookies zuzustimmen. <link>Mehr erfahren</link>",rejectText:"Alle ablehnen",manageHeader:"Cookie-Einstellungen verwalten",manageDisclaimer:"Cookies auf dieser Website helfen dabei, Ihr Nutzungserlebnis zu verbessern und personalisierte Inhalte bereitzustellen. Sie k\xF6nnen essenzielle Cookies, die f\xFCr die grundlegende Funktionalit\xE4t erforderlich sind, nicht deaktivieren, aber Sie k\xF6nnen andere Kategorien nach Ihren Pr\xE4ferenzen ablehnen. <link>Mehr erfahren</link>",necessaryText:"Essenzielle Cookies",necessaryDescription:"Erforderlich zur Aktivierung der grundlegenden Website-Funktionen und zur Speicherung Ihrer Einstellungen.",marketingText:"Marketing-Cookie
8756s",marketingDescription:"Erlauben das Tracking zur Personalisierung von Werbung und zur Erfolgsmessung.",preferencesText:"Personalisierungs-Cookies",preferencesDescription:"Erlauben das Tracking, um Inhalte und Erlebnisse an Ihre Interessen anzupassen.",analyticsText:"Analyse-Cookies",analyticsDescription:"Erlauben das Tracking der Website-Nutzung zur Verbesserung der Leistung.",saveLabel:"Einstellungen speichern",triggerLabel:"Cookie-Einstellungen"},"es-ES":{noticeHeader:"Este sitio web utiliza cookies",noticeDisclaimerImplicit:"Las cookies en este sitio web ayudan a mejorar su experiencia y a ofrecer contenido personalizado. Al continuar navegando, acepta el uso de estas cookies. <link>Leer m\xE1s</link>",acceptText:"Aceptar todas",manageText:"Gestionar",noticeDisclaimerExplicit:"Las cookies en este sitio web ayudan a mejorar su experiencia y a ofrecer contenido personalizado. Haga clic en \u201CAceptar todas\u201D para consentir el uso de estas cookies. <link>Leer m\xE1s</link>",rejectText:"Rechazar todas",manageHeader:"Gestionar preferencias de cookies",manageDisclaimer:"Las cookies en este sitio web ayudan a mejorar su experiencia y a ofrecer contenido personalizado. No puede rechazar las cookies esenciales para el funcionamiento b\xE1sico, pero puede decidir no permitir otras categor\xEDas seg\xFAn sus preferencias. <link>Leer m\xE1s</link>",necessaryText:"Cookies esenciales",necessaryDescription:"Necesarias para activar las funciones b\xE1sicas del sitio y guardar sus preferencias.",marketingText:"Cookies de marketing",marketingDescription:"Permiten el seguimiento para personalizar la publicidad y medir su rendimiento.",preferencesText:"Cookies de personalizaci\xF3n",preferencesDescription:"Permiten el seguimiento para adaptar el sitio a sus intereses.",analyticsText:"Cookies de an\xE1lisis",analyticsDescription:"Permiten el seguimiento del uso del sitio para mejorar su rendimiento.",saveLabel:"Guardar preferencias",triggerLabel:"Preferencias de cookies"},"es-LA":{noticeHeader:"Este sitio utiliza cookies",noticeDisclaimerImplicit:"Las cookies en este sitio ayudan a mejorar su experiencia y a ofrecer contenido personalizado. Al seguir navegando, usted acepta el uso de estas cookies. <link>Leer m\xE1s</link>",acceptText:"Aceptar todas",manageText:"Administrar",noticeDisclaimerExplicit:"Las cookies en este sitio ayudan a mejorar su experiencia y a ofrecer contenido personalizado. Haga clic en \u201CAceptar todas\u201D para aceptar el uso de estas cookies. <link>Leer m\xE1s</link>",rejectText:"Rechazar todas",manageHeader:"Administrar preferencias de cookies",manageDisclaimer:"Las cookies en este sitio ayudan a mejorar su experiencia y a ofrecer contenido personalizado. No puede rechazar las cookies esenciales para el funcionamiento b\xE1sico, pero puede elegir no permitir otras categor\xEDas seg\xFAn sus preferencias. <link>Leer m\xE1s</link>",necessaryText:"Cookies esenciales",necessaryDescription:"Necesarias para habilitar funciones b\xE1sicas del sitio y guardar sus preferencias.",marketingText:"Cookies de marketing",marketingDescription:"Permiten el rastreo para personalizar anuncios y medir su rendimiento.",preferencesText:"Cookies de personalizaci\xF3n",preferencesDescription:"Permiten el rastreo para adaptar su experiencia seg\xFAn sus intereses.",analyticsText:"Cookies de an\xE1lisis",analyticsDescription:"Permiten el rastreo del uso del sitio para mejorar el rendimiento.",saveLabel:"Guardar preferencias",triggerLabel:"Preferencias de cookies"},"pt-BR":{noticeHeader:"Este site utiliza cookies",noticeDisclaimerImplicit:"Os cookies neste site ajudam a melhorar sua experi\xEAncia e a oferecer conte\xFAdo personalizado. Ao continuar navegando, voc\xEA concorda com o uso desses cookies. <link>Saiba mais</link>",acceptText:"Aceitar todos",manageText:"Gerenciar",noticeDisclaimerExplicit:"Os cookies neste site ajudam a melhorar sua experi\xEAncia e a oferecer conte\xFAdo personalizado. Clique em \u201CAceitar todos\u201D para consentir com o uso desses cookies. <link>Saiba mais</link>",rejectText:"Rejeitar todos",manageHeader:"Gerenciar prefer\xEAncias de cookies",manageDisclaimer:"Os cookies neste site ajudam a melhorar sua experi\xEAncia e a oferecer conte\xFAdo personalizado. N\xE3o \xE9 poss\xEDvel desativar os cookies essenciais para o funcionamento b\xE1sico, mas voc\xEA pode optar por n\xE3o permitir outras categorias de acordo com suas prefer\xEAncias. <link>Saiba mais</link>",necessaryText:"Cookies essenciais",necessaryDescription:"Necess\xE1rios para ativar funcionalidades principais do site e salvar suas prefer\xEAncias.",marketingText:"Cookies de marketing",marketingDescription:"Permitem o rastreamento para personalizar an\xFAncios e medir seu desempenho.",preferencesText:"Cookies de personaliza\xE7\xE3o",preferencesDescription:"Permitem o rastreamento para adaptar a experi\xEAncia do site aos seus interesses.",analyticsText:"Cookies de an\xE1lise",anal
8756yticsDescription:"Permitem o rastreamento do uso do site para melhorar seu desempenho.",saveLabel:"Salvar prefer\xEAncias",triggerLabel:"Prefer\xEAncias de cookies"},"ko-KR":{noticeHeader:"\uC774 \uC0AC\uC774\uD2B8\uB294 \uCFE0\uD0A4\uB97C \uC0AC\uC6A9\uD569\uB2C8\uB2E4",noticeDisclaimerImplicit:"\uC774 \uC0AC\uC774\uD2B8\uC758 \uCFE0\uD0A4\uB294 \uC0AC\uC6A9\uC790 \uACBD\uD5D8\uC744 \uAC1C\uC120\uD558\uACE0 \uAC1C\uC778\uD654\uB41C \uCF58\uD150\uCE20\uB97C \uC81C\uACF5\uD569\uB2C8\uB2E4. \uACC4\uC18D \uD0D0\uC0C9\uD558\uBA74 \uC774\uB7EC\uD55C \uCFE0\uD0A4 \uC0AC\uC6A9\uC5D0 \uB3D9\uC758\uD558\uB294 \uAC83\uC73C\uB85C \uAC04\uC8FC\uB429\uB2C8\uB2E4. <link>\uC790\uC138\uD788 \uC54C\uC544\uBCF4\uAE30</link>",acceptText:"\uBAA8\uB450 \uD5C8\uC6A9",manageText:"\uAD00\uB9AC",noticeDisclaimerExplicit:"\uC774 \uC0AC\uC774\uD2B8\uC758 \uCFE0\uD0A4\uB294 \uC0AC\uC6A9\uC790 \uACBD\uD5D8\uC744 \uAC1C\uC120\uD558\uACE0 \uAC1C\uC778\uD654\uB41C \uCF58\uD150\uCE20\uB97C \uC81C\uACF5\uD569\uB2C8\uB2E4. \u201C\uBAA8\uB450 \uD5C8\uC6A9\u201D\uC744 \uD074\uB9AD\uD558\uBA74 \uCFE0\uD0A4 \uC0AC\uC6A9\uC5D0 \uB3D9\uC758\uD558\uAC8C \uB429\uB2C8\uB2E4. <link>\uC790\uC138\uD788 \uC54C\uC544\uBCF4\uAE30</link>",rejectText:"\uBAA8\uB450 \uAC70\uBD80",manageHeader:"\uCFE0\uD0A4 \uD658\uACBD\uC124\uC815 \uAD00\uB9AC",manageDisclaimer:"\uC774 \uC0AC\uC774\uD2B8\uC758 \uCFE0\uD0A4\uB294 \uC0AC\uC6A9\uC790 \uACBD\uD5D8\uC744 \uAC1C\uC120\uD558\uACE0 \uAC1C\uC778\uD654\uB41C \uCF58\uD150\uCE20\uB97C \uC81C\uACF5\uD569\uB2C8\uB2E4. \uAE30\uBCF8 \uAE30\uB2A5\uC5D0 \uD544\uC218\uC801\uC778 \uCFE0\uD0A4\uB294 \uC120\uD0DD \uD574\uC81C\uD560 \uC218 \uC5C6\uC9C0\uB9CC, \uAE30\uD0C0 \uCE74\uD14C\uACE0\uB9AC\uB294 \uC124\uC815\uC5D0 \uB530\uB77C \uD5C8\uC6A9\uD558\uC9C0 \uC54A\uC744 \uC218 \uC788\uC2B5\uB2C8\uB2E4. <link>\uC790\uC138\uD788 \uC54C\uC544\uBCF4\uAE30</link>",necessaryText:"\uD544\uC218 \uCFE0\uD0A4",necessaryDescription:"\uD575\uC2EC \uC0AC\uC774\uD2B8 \uAE30\uB2A5 \uBC0F \uD658\uACBD\uC124\uC815 \uC720\uC9C0\uB97C \uC704\uD574 \uD544\uC694\uD569\uB2C8\uB2E4.",marketingText:"\uB9C8\uCF00\uD305 \uCFE0\uD0A4",marketingDescription:"\uAD11\uACE0 \uAC1C\uC778\uD654 \uBC0F \uCD94\uC801\uC744 \uC704\uD574 \uC0AC\uC6A9\uB429\uB2C8\uB2E4.",preferencesText:"\uAC1C\uC778\uD654 \uCFE0\uD0A4",preferencesDescription:"\uAD00\uC2EC\uC0AC\uC5D0 \uB9DE\uB294 \uCF58\uD150\uCE20 \uC81C\uACF5\uC744 \uC704\uD574 \uC0AC\uC6A9\uB429\uB2C8\uB2E4.",analyticsText:"\uBD84\uC11D \uCFE0\uD0A4",analyticsDescription:"\uC0AC\uC774\uD2B8 \uD2B8\uB798\uD53D \uBD84\uC11D \uBC0F \uC131\uB2A5 \uAC1C\uC120\uC744 \uC704\uD574 \uC0AC\uC6A9\uB429\uB2C8\uB2E4.",s
8756aveLabel:"\uD658\uACBD\uC124\uC815 \uC800\uC7A5",triggerLabel:"\uCFE0\uD0A4 \uD658\uACBD\uC124\uC815"},"ja-JP":{noticeHeader:"\u3053\u306E\u30B5\u30A4\u30C8\u306F\u30AF\u30C3\u30AD\u30FC\u3092\u4F7F\u7528\u3057\u3066\u3044\u307E\u3059",noticeDisclaimerImplicit:"\u3053\u306E\u30B5\u30A4\u30C8\u3067\u306F\u3001\u30AF\u30C3\u30AD\u30FC\u3092\u4F7F\u7528\u3057\u3066\u30E6\u30FC\u30B6\u30FC\u4F53\u9A13\u3092\u5411\u4E0A\u3055\u305B\u3001\u30D1\u30FC\u30BD\u30CA\u30E9\u30A4\u30BA\u3055\u308C\u305F\u30B3\u30F3\u30C6\u30F3\u30C4\u3092\u63D0\u4F9B\u3057\u3066\u3044\u307E\u3059\u3002\u5F15\u304D\u7D9A\u304D\u95B2\u89A7\u3092\u7D9A\u3051\u308B\u3053\u3068\u3067\u3001\u30AF\u30C3\u30AD\u30FC\u306E\u4F7F\u7528\u306B\u540C\u610F\u3057\u305F\u3082\u306E\u3068\u307F\u306A\u3055\u308C\u307E\u3059\u3002<link>\u8A73\u7D30\u3092\u898B\u308B</link>",acceptText:"\u3059\u3079\u3066\u8A31\u53EF",manageText:"\u7BA1\u7406",noticeDisclaimerExplicit:"\u3053\u306E\u30B5\u30A4\u30C8\u3067\u306F\u3001\u30AF\u30C3\u30AD\u30FC\u3092\u4F7F\u7528\u3057\u3066\u30E6\u30FC\u30B6\u30FC\u4F53\u9A13\u3092\u5411\u4E0A\u3055\u305B\u3001\u30D1\u30FC\u30BD\u30CA\u30E9\u30A4\u30BA\u3055\u308C\u305F\u30B3\u30F3\u30C6\u30F3\u30C4\u3092\u63D0\u4F9B\u3057\u3066\u3044\u307E\u3059\u3002\u300C\u3059\u3079\u3066\u8A31\u53EF\u300D\u3092\u30AF\u30EA\u30C3\u30AF\u3059\u308B\u3068\u3001\u30AF\u30C3\u30AD\u30FC\u306E\u4F7F\u7528\u306B\u540C\u610F\u3057\u305F\u3053\u3068\u306B\u306A\u308A\u307E\u3059\u3002<link>\u8A73\u7D30\u3092\u898B\u308B</link>",rejectText:"\u3059\u3079\u3066\u62D2\u5426",manageHeader:"\u30AF\u30C3\u30AD\u30FC\u8A2D\u5B9A\u3092\u7BA1\u7406",manageDisclaimer:"\u3053\u306E\u30B5\u30A4\u30C8\u3067\u306F\u3001\u30AF\u30C3\u30AD\u30FC\u3092\u4F7F\u7528\u3057\u3066\u30E6\u30FC\u30B6\u30FC\u4F53\u9A13\u3092\u5411\u4E0A\u3055\u305B\u3001\u30D1\u30FC\u30BD\u30CA\u30E9\u30A4\u30BA\u3055\u308C\u305F\u30B3\u30F3\u30C6\u30F3\u30C4\u3092\u63D0\u4F9B\u3057\u3066\u3044\u307E\u3059\u3002\u57FA\u672C\u7684\u306A\u6A5F\u80FD\u306B\u5FC5\u8981\u306A\u30AF\u30C3\u30AD\u30FC\u306F\u7121\u52B9\u306B\u3067\u304D\u307E\u305B\u3093\u304C\u3001\u305D\u308C\u4EE5\u5916\u306E\u30AB\u30C6\u30B4\u30EA\u306B\u3064\u3044\u3066\u306F\u8A2D\u5B9A\u306B\u5FDC\u3058\u3066\u7121\u52B9\u306B\u3067\u304D\u307E\u3059\u3002<link>\u8A73\u7D30\u3092\u898B\u308B</link>",necessaryText:"\u5FC5\u9808\u30AF\u30C3\u30AD\u30FC",necessaryDescription:"\u30B5\u30A4\u30C8\u306E\u57FA\u672C\u6A5F\u80FD\u3068\u8A2D\u5B9A\u306E\u4FDD\u6301\u306B\u5FC5\u8981\u3067\u3059\u3002",marketingText:"\u30DE\u30FC\u30B1\u30C6\u30A3\u30F3\u30B0\u30AF\u30C3\u30AD\u30FC",marketingDescription:"\u5E83\u544A\u306E\u30D1\u30FC\u30BD\u30CA\u30E9\u30A4\u30BA\u3068\u8FFD\u8DE1\u3092\u8A31\u53EF\u3057\u307E\u3059\u3002",preferencesText:"\u30D1\u30FC\u30BD\u30CA\u30E9\u30A4\u30BA\u30AF\u30C3\u30AD\u30FC",preferencesDescription:"\u8208\u5473\u306B\u57FA\u3065\u3044\u305F\u4F53\u9A13\u3092\u63D0\u4F9B\u3059\u308B\u305F\u3081\u306B\u4F7F\u7528\u3055\u308C\u307E\u3059\u3002",analyticsText:"\u5206\u6790\u30AF\u30C3\u30AD\u30FC",analyticsDescription:"\u30B5\u30A4\u30C8\u306E\u5229\u7528\u72B6\u6CC1\u3092\u8FFD\u8DE1\u3057\u3066\u30D1\u30D5\u30A9\u30FC\u30DE\u30F3\u30B9\u3092\u54
875611\u4E0A\u3055\u305B\u307E\u3059\u3002",saveLabel:"\u8A2D\u5B9A\u3092\u4FDD\u5B58",triggerLabel:"\u30AF\u30C3\u30AD\u30FC\u8A2D\u5B9A"},"pl-PL":{noticeHeader:"Ta strona korzysta z plik\xF3w cookie",noticeDisclaimerImplicit:"Pliki cookie na tej stronie pomagaj\u0105 ulepszy\u0107 Twoje do\u015Bwiadczenia i dostarcza\u0107 spersonalizowane tre\u015Bci. Kontynuuj\u0105c przegl\u0105danie, wyra\u017Casz zgod\u0119 na ich u\u017Cycie. <link>Dowiedz si\u0119 wi\u0119cej</link>",acceptText:"Zaakceptuj wszystkie",manageText:"Zarz\u0105dzaj",noticeDisclaimerExplicit:"Pliki cookie na tej stronie pomagaj\u0105 ulepszy\u0107 Twoje do\u015Bwiadczenia i dostarcza\u0107 spersonalizowane tre\u015Bci. Kliknij \u201EZaakceptuj wszystkie\u201D, aby wyrazi\u0107 zgod\u0119 na ich u\u017Cycie. <link>Dowiedz si\u0119 wi\u0119cej</link>",rejectText:"Odrzu\u0107 wszystkie",manageHeader:"Zarz\u0105dzaj preferencjami plik\xF3w cookie",manageDisclaimer:"Pliki cookie na tej stronie pomagaj\u0105 ulepszy\u0107 Twoje do\u015Bwiadczenia i dostarcza\u0107 spersonalizowane tre\u015Bci. Nie mo\u017Cesz zrezygnowa\u0107 z plik\xF3w cookie niezb\u0119dnych do podstawowego dzia\u0142ania witryny, ale mo\u017Cesz odrzuci\u0107 inne kategorie wed\u0142ug w\u0142asnych preferencji. <link>Dowiedz si\u0119 wi\u0119cej</link>",necessaryText:"Niezb\u0119dne pliki cookie",necessaryDescription:"Wymagane do dzia\u0142ania podstawowych funkcji witryny i zapami\u0119tywania ustawie\u0144.",marketingText:"Pliki cookie marketingowe",marketingDescription:"Pozwalaj\u0105 na \u015Bledzenie w celu personalizacji reklam i pomiaru skuteczno\u015Bci.",preferencesText:"Pliki cookie personalizuj\u0105ce",preferencesDescription:"Pozwalaj\u0105 na dostosowanie tre\u015Bci do Twoich zainteresowa\u0144.",analyticsText:"Pliki cookie analityczne",analyticsDescription:"Pozwalaj\u0105 na analiz\u0119 ruchu i popraw\u0119 wydajno\u015Bci witryny.",saveLabel:"Zapisz preferencje",triggerLabel:"Preferencje plik\xF3w cookie"},"nl-NL":{noticeHeader:"Deze website maakt gebruik van cookies",noticeDisclaimerImplicit:"Cookies op deze website helpen uw ervaring te verbeteren en gepersonaliseerde inhoud aan te bieden. Door verder te gaan, stemt u in met het gebruik van deze cookies. <link>Meer informatie</link>",acceptText:"Alles accepteren",manageText:"Beheren",noticeDisclaimerExplicit:"Cookies op deze website helpen uw ervaring te verbeteren en gepersonaliseerde inhoud aan te bieden. Klik op \u201CAlles accepteren\u201D om in te stemmen met het gebruik van deze cookies. <link>Meer informatie</link>",rejectText:"Alles weigeren",manageHeader:"Cookievoorkeuren beheren",manageDisclaimer:"Cookies op deze website helpen uw ervaring te verbeteren en gepersonaliseerde inhoud aan te bieden. U kunt essenti\xEBle cookies, die nodig zijn voor de basisfunctionaliteit, niet uitschakelen, maar u kunt andere categorie\xEBn weigeren op basis van uw voorkeuren. <link>Meer informatie</link>",necessaryText:"Essenti\xEBle cookies",necessaryDescription:"Noodzakelijk voor de kernfunctionaliteit van de site en het opslaan van uw voorkeuren.",marketingText:"Marketingcookies",marketingDescription:"Sta tracking toe voor gepersonaliseerde advertenties en het meten van prestaties.",preferencesText:"Personalisatiecookies",preferencesDescription:"Sta tracking toe om de site-ervaring aan te passen aan uw interesses.",analyticsText:"Analysecookies",analyticsDescription:"Sta tracking toe om sitegebruik te analyseren en prestaties te verbeteren.",saveLabel:"Voorkeuren opslaan",triggerLabel:"Cookievoorkeuren"},"it-IT":{noticeHeader:"Questo sito utilizza i cookie",noticeDisclaimerImplicit:"I cookie su questo sito aiutano a migliorare la tua esperienza e a fornire contenuti personalizzati. Continuando a navigare, acconsenti all\u2019uso dei cookie. <link>Scopri di pi\xF9</link>",acceptText:"Accetta tutti",manageText:"Gestisci",noticeDisclaimerExplicit:"I cookie su questo sito aiutano a migliorare la tua esperienza e a fornire contenuti personalizzati. Clicca su \u201CAccetta tutti\u201D per acconsentire all\u2019uso dei cookie. <link>Scopri di pi\xF9</link>",rejectText:"Rifiuta tutti",manageHeader:"Gestisci preferenze cookie",manageDisclaimer:"I cookie su questo sito aiutano a migliorare la tua esperienza e a fornire contenuti personalizzati. Non puoi disattivare i cookie essenziali per il funzionamento di base, ma puoi scegliere di non consentire altre categorie secondo le tue preferenze. <link>Scopri di pi\xF9</link>",necessaryText:"Cookie essenziali",necessaryDescription:"Necessari per il funzionamento base del sito e il salvataggio delle preferenze.",marketingText:"Cookie di marketing",marketingDescription:"Consentono il tracciamento per la personalizzazione degli annunci e la misurazione delle prestazioni.",preferencesText:"Cookie di personalizzazione",preferencesDescription:"Consentono il tracciamento per personalizzare l\u2019esperienza in base ai tuoi interessi.",analyticsText:"Cookie di analisi",analyticsDescription:"Consentono il tracciamento dell\u2019uso del sito per migliorarne le prestazioni.",saveLabel:"Salva preferenze",triggerLabel:"Preferenze cookie"},"pt-PT":{noticeHeader:"Este site utiliza cookies",noticeDisclaimerImplicit:"Os cookies neste site ajudam a melhorar a sua experi\xEAncia e a fornecer conte\xFAdo personalizado. Ao continuar a navegar, est\xE1 a consentir a utiliza\xE7\xE3o destes cookies. <link>Saiba mais</link>",acceptText:"Aceitar todos",manageText:"Gerir",noticeDisclaimerExplicit:"Os cookies neste site ajudam a melhorar a sua experi\xEAncia e a fornecer conte\xFAdo personalizado. Clique em \u201CAceitar todos\u201D para consentir a utiliza\xE7\xE3o destes cookies. <link>Saiba mais</link>",rejectText:"Rejeitar todos",manageHeader:"Gerir prefer\xEAncias de cookies",manageDisclaimer:"Os cookies neste site ajudam a melhorar a sua experi\xEAncia e a fornecer conte\xFAdo personalizado. N\xE3o pode desativar os cookies essenciais ao funcionamento b\xE1sico, mas pode recusar outras categorias de acordo com as suas prefer\xEAncias. <link>Saiba mais</link>",necessaryText:"Cookies essenciais",necessaryDescription:"Necess\xE1rios para ativar funcionalidades b\xE1sicas do site e guardar as suas prefer\xEAncias.",marketingText:"Cookies de marketing",marketingDescription:"Permitem a monitoriza\xE7\xE3o para personalizar an\xFAncios e medir o desempenho.",preferencesText:"Cookies de personaliza\xE7\xE3o",preferencesDescription:"Permitem a monitoriza\xE7\xE3o para adaptar a experi\xEAncia do site aos seus interesses.",analyticsText:"Cookies de an\xE1lise",anal
8756yticsDescription:"Permitem a monitoriza\xE7\xE3o da utiliza\xE7\xE3o do site para melhorar o desempenho.",saveLabel:"Guardar prefer\xEAncias",triggerLabel:"Prefer\xEAncias de cookies"},"sv-SE":{noticeHeader:"Den h\xE4r webbplatsen anv\xE4nder cookies",noticeDisclaimerImplicit:"Cookies p\xE5 den h\xE4r webbplatsen hj\xE4lper till att f\xF6rb\xE4ttra din upplevelse och visa personligt inneh\xE5ll. Genom att forts\xE4tta surfa samtycker du till anv\xE4ndningen av cookies. <link>L\xE4s mer</link>",acceptText:"Acceptera alla",manageText:"Hantera",noticeDisclaimerExplicit:"Cookies p\xE5 den h\xE4r webbplatsen hj\xE4lper till att f\xF6rb\xE4ttra din upplevelse och visa personligt inneh\xE5ll. Klicka p\xE5 \u201DAcceptera alla\u201D f\xF6r att godk\xE4nna anv\xE4ndningen av cookies. <link>L\xE4s mer</link>",rejectText:"Avvisa alla",manageHeader:"Hantera cookieinst\xE4llningar",manageDisclaimer:"Cookies p\xE5 den h\xE4r webbplatsen hj\xE4lper till att f\xF6rb\xE4ttra din upplevelse och visa personligt inneh\xE5ll. Du kan inte v\xE4lja bort cookies som \xE4r n\xF6dv\xE4ndiga f\xF6r grundl\xE4ggande funktioner, men du kan v\xE4lja bort andra kategorier enligt dina preferenser. <link>L\xE4s mer</link>",necessaryText:"N\xF6dv\xE4ndiga cookies",necessaryDescription:"Kr\xE4vs f\xF6r grundl\xE4ggande funktionalitet och f\xF6r att spara inst\xE4llningar.",marketingText:"Marknadsf\xF6ringscookies",marketingDescription:"Till\xE5ter sp\xE5rning f\xF6r att anpassa annonser och m\xE4ta resultat.",preferencesText:"Personaliseringcookies",preferencesDescription:"Till\xE5ter sp\xE5rning f\xF6r att anpassa upplevelsen efter dina intressen.",analyticsText:"Analyscookies",analyticsDescription:"Till\xE5ter sp\xE5rning av anv\xE4ndning f\xF6r att f\xF6rb\xE4ttra prestanda.",saveLabel:"Spara inst\xE4llningar",triggerLabel:"Cookieinst\xE4llningar"},"da-DK":{noticeHeader:"Dette websted bruger cookies",noticeDisclaimerImplicit:"Cookies p\xE5 dette websted hj\xE6lper med at forbedre din oplevelse og levere tilpasset indhold. Ved at forts\xE6tte med at bruge siden accepterer du brugen af cookies. <link>L\xE6s mere</link>",acceptText:"Accept\xE9r alle",manageText:"Administrer",noticeDisclaimerExplicit:'Cookies p\xE5 dette websted hj\xE6lper med at forbedre din oplevelse og levere tilpasset indhold. Klik p\xE5 "Accept\xE9r alle" for at acceptere brugen af cookies. <link>L\xE6s mere</link>',rejectText:"Afvis alle",manageHeader:"Administrer cookieindstillinger",manageDisclaimer:"Cookies p\xE5 dette websted hj\xE6lper med at forbedre din oplevelse og levere tilpasset indhold. Du kan ikke frav\xE6lge cookies, der er n\xF8dvendige for grundl\xE6ggende funktioner, men du kan v\xE6lge at afvise andre kategorier efter dine pr\xE6ferencer. <link>L\xE6s mere</link>",necessaryText:"N\xF8dvendige cookies",necessaryDescription:"N\xF8dvendige for grundl\xE6ggende funktionalitet og for at gemme dine indstillinger.",marketingText:"Marketingcookies",marketingDescription:"Tillad sporing for at aktivere tilpasning af annoncer og sporing.",preferencesText:"Tilpasningscookies",preferencesDescription:"Tillad sporing for at tilpasse webstedet efter dine interesser.",analyticsText:"Analysecookies",analyticsDescription:"Tillad sporing af webstedstrafik for at forbedre webstedets effektivitet.",saveLabel:"Gem indstillinger",triggerLabel:"Cookieindstillinger"},"fi-FI":{noticeHeader:"T\xE4m\xE4 sivusto k\xE4ytt\xE4\xE4 ev\xE4steit\xE4",noticeDisclaimerImplicit:"T\xE4m\xE4n sivuston ev\xE4steet parantavat k\xE4ytt\xF6kokemustasi ja tarjoavat personoitua sis\xE4lt\xF6\xE4. Jatkamalla selaamista hyv\xE4ksyt n\xE4iden ev\xE4steiden k\xE4yt\xF6n. <link>Lue lis\xE4\xE4</link>",acceptText:"Hyv\xE4ksy kaikki",manageText:"Hallitse",noticeDisclaimerExplicit:"T\xE4m\xE4n sivuston ev\xE4steet parantavat k\xE4ytt\xF6kokemustasi ja tarjoavat personoitua sis\xE4lt\xF6\xE4. Napsauta \u201DHyv\xE4ksy kaikki\u201D ev\xE4steiden k\xE4yt\xF6n hyv\xE4ksymiseksi. <link>Lue lis\xE4\xE4</link>",rejectText:"Hylk\xE4\xE4 kaikki",manageHeader:"Hallitse ev\xE4steasetuksia",manageDisclaimer:"T\xE4m\xE4n sivuston ev\xE4steet parantavat k\xE4ytt\xF6kokemustasi ja tarjoavat personoitua sis\xE4lt\xF6\xE4. V\xE4ltt\xE4m\xE4tt\xF6m
8756i\xE4 ev\xE4steit\xE4 ei voi poistaa k\xE4yt\xF6st\xE4, mutta voit est\xE4\xE4 muita ev\xE4stetyyppej\xE4 omien mieltymystesi mukaan. <link>Lue lis\xE4\xE4</link>",necessaryText:"V\xE4ltt\xE4m\xE4tt\xF6m\xE4t ev\xE4steet",necessaryDescription:"Tarvitaan sivuston perustoimintojen mahdollistamiseen ja asetusten tallentamiseen.",marketingText:"Markkinointiev\xE4steet",marketingDescription:"Sallivat seurannan mainonnan personointia ja mittaamista varten.",preferencesText:"Personointiev\xE4steet",preferencesDescription:"Sallivat seurannan sivuston k\xE4ytt\xF6kokemuksen r\xE4\xE4t\xE4l\xF6intiin omien kiinnostuksen kohteidesi mukaan.",analyticsText:"Analytiikkaev\xE4steet",analyticsDescription:"Sallivat sivuston verkkoliikenteen seurannan sivuston suorituskyvyn parantamiseksi.",saveLabel:"Tallenna asetukset",triggerLabel:"Ev\xE4steasetukset"},"cs-CZ":{noticeHeader:"Tato str\xE1nka pou\u017E\xEDv\xE1 soubory cookie",noticeDisclaimerImplicit:"Soubory cookie na t\xE9to str\xE1nce pom\xE1haj\xED zlep\u0161it va\u0161e zku\u0161enosti a poskytovat personalizovan\xFD obsah. Pokra\u010Dov\xE1n\xEDm v prohl\xED\u017Een\xED vyjad\u0159ujete souhlas s pou\u017E\xEDv\xE1n\xEDm t\u011Bchto soubor\u016F cookie. <link>V\xEDce informac\xED</link>",acceptText:"P\u0159ijmout v\u0161e",manageText:"Spravovat",noticeDisclaimerExplicit:"Soubory cookie na t\xE9to str\xE1nce pom\xE1haj\xED zlep\u0161it va\u0161e zku\u0161enosti a poskytovat personalizovan\xFD obsah. Kliknut\xEDm na \u201EP\u0159ijmout v\u0161e\u201C vyjad\u0159ujete souhlas s pou\u017E\xEDv\xE1n\xEDm t\u011Bchto soubor\u016F cookie. <link>V\xEDce informac\xED</link>",rejectText:"Odm\xEDtnout v\u0161e",manageHeader:"Spravovat p\u0159edvolby soubor\u
8756016F cookie",manageDisclaimer:"Soubory cookie na t\xE9to str\xE1nce pom\xE1haj\xED zlep\u0161it va\u0161e zku\u0161enosti a poskytovat personalizovan\xFD obsah. Nelze odm\xEDtnout soubory cookie, kter\xE9 jsou nezbytn\xE9 pro z\xE1kladn\xED funk\u010Dnost, ale m\u016F\u017Eete se rozhodnout nepovolit ostatn\xED kategorie podle sv\xFDch p\u0159edvoleb. <link>V\xEDce informac\xED</link>",necessaryText:"Nezbytn\xE9 soubory cookie",necessaryDescription:"Vy\u017Eadov\xE1ny k umo\u017En\u011Bn\xED z\xE1kladn\xED funk\u010Dnosti a p\u0159edvoleb str\xE1nky.",marketingText:"Marketingov\xE9 soubory cookie",marketingDescription:"Umo\u017E\u0148uj\xED sledov\xE1n\xED za \xFA\u010Delem personalizace reklam a m\u011B\u0159en\xED jejich \xFA\u010Dinnosti.",preferencesText:"Personaliza\u010Dn\xED soubory cookie",preferencesDescription:"Umo\u017E\u0148uj\xED sledov\xE1n\xED za \xFA\u010Delem p\u0159izp\u016Fsoben\xED prost\u0159ed\xED webu va\u0161im z\xE1jm\u016Fm.",analyticsText:"Analytick\xE9 soubory cookie",analyticsDescription:"Umo\u017E\u0148uj\xED sledov\xE1n\xED n\xE1v\u0161t\u011Bvnosti webu pro zlep\u0161en\xED jeho v\xFDkonu.",saveLabel:"Ulo\u017Eit p\u0159edvolby",triggerLabel:"P\u0159edvolby soubor\u
8756016F cookie"},"hu-HU":{noticeHeader:"Ez a webhely cookie-kat haszn\xE1l",noticeDisclaimerImplicit:"Ez a webhely cookie-kat haszn\xE1l az \xE9lm\xE9ny jav\xEDt\xE1sa \xE9s a szem\xE9lyre szabott tartalom megjelen\xEDt\xE9se \xE9rdek\xE9ben. A b\xF6ng\xE9sz\xE9s folytat\xE1s\xE1val \xD6n elfogadja a cookie-k haszn\xE1lat\xE1t. <link>Tov\xE1bbi inform\xE1ci\xF3</link>",acceptText:"\xD6sszes elfogad\xE1sa",manageText:"Kezel\xE9s",noticeDisclaimerExplicit:"Ez a webhely cookie-kat haszn\xE1l az \xE9lm\xE9ny jav\xEDt\xE1sa \xE9s a szem\xE9lyre szabott tartalom megjelen\xEDt\xE9se \xE9rdek\xE9ben. Kattintson az \u201E\xD6sszes elfogad\xE1sa\u201D gombra a cookie-k haszn\xE1lat\xE1nak enged\xE9lyez\xE9s\xE9hez. <link>Tov\xE1bbi inform\xE1ci\xF3</link>",rejectText:"\xD6sszes elutas\xEDt\xE1sa",manageHeader:"Cookie-be\xE1ll\xEDt\xE1sok kezel\xE9se",manageDisclaimer:"Ez a webhely cookie-kat haszn\xE1l az \xE9lm\xE9ny jav\xEDt\xE1sa \xE9s a szem\xE9lyre szabott tartalom megjelen\xEDt\xE9se \xE9rdek\xE9ben. Az alapvet\u0151 funkci\xF3khoz sz\xFCks\xE9ges cookie-kat nem lehet letiltani, de a t\xF6bbi kateg\xF3ria enged\xE9lyez\xE9s\xE9t be\xE1ll\xEDthatja a saj\xE1t preferenci\xE1i szerint. <link>Tov\xE1bbi inform\xE1ci\xF3</link>",necessaryText:"Alapvet\u0151 cookie-k",necessaryDescription:"A webhely alapvet\u0151 funkci\xF3inak m\u0171k\xF6d\xE9s\xE9hez \xE9s a be\xE1ll\xEDt\xE1sok ment\xE9s\xE9hez sz\xFCks\xE9gesek.",marketingText:"Marketing cookie-k",marketingDescription:"Lehet\u0151v\xE9 teszik a nyomon k\xF6vet\xE9st a hirdet\xE9sek szem\xE9lyre szab\xE1s\xE1hoz \xE9s teljes\xEDtm\xE9ny\xFCk m\xE9r\xE9s\xE9hez.",preferencesText:"Szem\xE9lyre szab\xE1si cookie-k",preferencesDescription:"Lehet\u0151v\xE9 teszik a felhaszn\xE1l\xF3i \xE9lm\xE9ny \xE9rdekl\u0151d\xE9si k\xF6r\xF6k\xF6n alapul\xF3 szem\xE9lyre szab\xE1s\xE1t.",analyticsText:"Analitikai cookie-k",analyticsDescription:"A webhelyhaszn\xE1lat nyomon k\xF6vet\xE9s\xE9re \xE9s a teljes\xEDtm\xE9ny jav\xEDt\xE1s\xE1ra szolg\xE1lnak.",saveLabel:"Be\xE1ll\xEDt\xE1sok ment\xE9se",triggerLabel:"Cookie-be\xE1ll\xEDt\xE1sok"}
8756,"el-GR":{noticeHeader:"\u0391\u03C5\u03C4\u03CC\u03C2 \u03BF \u03B9\u03C3\u03C4\u03CC\u03C4\u03BF\u03C0\u03BF\u03C2 \u03C7\u03C1\u03B7\u03C3\u03B9\u03BC\u03BF\u03C0\u03BF\u03B9\u03B5\u03AF cookies",noticeDisclaimerImplicit:"\u03A4\u03B1 cookies \u03C3\u03B5 \u03B1\u03C5\u03C4\u03CC\u03BD \u03C4\u03BF\u03BD \u03B9\u03C3\u03C4\u03CC\u03C4\u03BF\u03C0\u03BF \u03B2\u03BF\u03B7\u03B8\u03BF\u03CD\u03BD \u03C3\u03C4\u03B7 \u03B2\u03B5\u03BB\u03C4\u03AF\u03C9\u03C3\u03B7 \u03C4\u03B7\u03C2 \u03B5\u03BC\u03C0\u03B5\u03B9\u03C1\u03AF\u03B1\u03C2 \u03C3\u03B1\u03C2 \u03BA\u03B1\u03B9 \u03C3\u03C4\u03B7\u03BD \u03C0\u03B1\u03C1\u03BF\u03C7\u03AE \u03B5\u03BE\u03B1\u03C4\u03BF\u03BC\u03B9\u03BA\u03B5\u03C5\u03BC\u03AD\u03BD\u03BF\u03C5 \u03C0\u03B5\u03C1\u03B9\u03B5\u03C7\u03BF\u03BC\u03AD\u03BD\u03BF\u03C5. \u03A3\u03C5\u03BD\u03B5\u03C7\u03AF\u03B6\u03BF\u03BD\u03C4\u03B1\u03C2 \u03C4\u03B7\u03BD \u03C0\u03B5\u03C1\u03B9\u03AE\u03B3\u03B7\u03C3\u03B7, \u03B1\u03C0\u03BF\u03B4\u03AD\u03C7\u03B5\u03C3\u03C4\u03B5 \u03C4\u03B7 \u03C7\u03C1\u03AE\u03C3\u03B7 \u03C4\u03C9\u03BD cookies. <link>\u039C\u03AC\u03B8\u03B5\u03C4\u03B5 \u03C0\u03B5\u03C1\u03B9\u03C3\u03C3\u03CC\u03C4\u03B5\u03C1\u03B1</link>",acceptText:"\u0391\u03C0\u03BF\u03B4\u03BF\u03C7\u03AE \u03CC\u03BB\u03C9\u03BD",manageText:"\u0394\u03B9\u03B1\u03C7\u03B5\u03AF\u03C1\u03B9\u03C3\u03B7",noticeDisclaimerExplicit:"\u03A4\u03B1 cookies \u03C3\u03B5 \u03B1\u03C5\u03C4\u03CC\u03BD \u03C4\u03BF\u03BD \u03B9\u03C3\u03C4\u03CC\u03C4\u03BF\u03C0\u03BF \u03B2\u03BF\u03B7\u03B8\u03BF\u03CD\u03BD \u03C3\u03C4\u03B7 \u03B2\u03B5\u03BB\u03C4\u03AF\u03C9\u03C3\u03B7 \u03C4\u03B7\u03C2 \u03B5\u03BC\u03C0\u03B5\u03B9\u03C1\u03AF\u03B1\u03C2 \u03C3\u03B1\u03C2 \u03BA\u03B1\u03B9 \u03C3\u03C4\u03B7\u03BD \u03C0\u03B1\u03C1\u03BF\u03C7\u03AE \u03B5\u03BE\u03B1\u03C4\u03BF\u03BC\u03B9\u03BA\u03B5\u03C5\u03BC\u03AD\u03BD\u03BF\u03C5 \u03C0\u03B5\u03C1\u03B9\u03B5\u03C7\u03BF\u03BC\u03AD\u03BD\u03BF\u03C5. \u039A\u03AC\u03BD\u03C4\u03B5 \u03BA\u03BB\u03B9\u03BA \u03C3\u03C4\u03B7\u03BD \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u201C\u0391\u03C0\u03BF\u03B4\u03BF\u03C7\u03AE \u03CC\u03BB\u03C9\u03BD\u201D \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03B4\u03CE\u03C3\u03B5\u03C4\u03B5 \u03C4\u03B7 \u03C3\u03C5\u03B3\u03BA\u03B1\u03C4\u03AC\u03B8\u03B5\u03C3\u03AE \u03C3\u03B1\u03C2 \u03C3\u03C4\u03B7 \u03C7\u03C1\u03AE\u03C3\u03B7 \u03C4\u03C9\u03BD cookies. <link>\u039C\u03AC\u03B8\u03B5\u03C4\u03B5 \u03C0\u03B5\u03C1\u03B9\u03C3\u03C3\u03CC\u03C4\u03B5\u03C1\u03B1</link>",rejectText:"\u0391\u03C0\u03CC\u03C1\u03C1\u03B9\u03C8\u03B7 \u03CC\u03BB\u03C9\u03BD",manageHeader:"\u0394\u03B9\u03B1\u03C7\u03B5\u03AF\u03C1\u03B9\u03C3\u03B7 \u03C0\u03C1\u03BF\u03C4\u03B9\u03BC\u03AE\u03C3\u03B5\u03C9\u03BD cookies",manageDisclaimer:"\u03A4\u03B1 cookies \u03C3\u03B5 \u03B1\u03C5\u03C4\u03CC\u03BD \u03C4\u03BF\u03BD \u03B9\u03C3\u03C4\u03CC\u03C4\u03BF\u03C0\u03BF \u03B2\u03BF\u03B7\u03B8\u03BF\u03CD\u03BD \u03C3\u03C4\u03B7 \u03B2\u03B5\u03BB\u03C4\u03AF\u03C9\u03C3\u03B7 \u03C4\u03B7\u03C2 \u03B5\u03BC\u03C0\u03B5\u03B9\u03C1\u03AF\u03B1\u03C2 \u03C3\u03B1\u03C2 \u03BA\u03B1\u03B9 \u03C3\u03C4\u03B7\u03BD \u03C0\u03B1\u03C1\u03BF\u03C7\u03AE \u03B5\u03BE\u03B1\u03C4\u03BF\u03BC\u03B9\u03BA\u03B5\u03C5\u03BC\u03AD\u03BD\u03BF\u03C5 \u03C0\u03B5\u03C1\u03B9\u03B5\u03C7\u03BF\u03BC\u03AD\u03BD\u03BF\u03C5. \u0394\u03B5\u03BD \u03BC\u03C0\u03BF\u03C1\u03B5\u03AF\u03C4\u03B5 \u03BD\u03B1 \u03B1\u03C0\u03BF\u03C1\u03C1\u03AF\u03C8\u03B5\u03C4\u03B5 \u03C4\u03B1 \u03B1\u03C0\u03BF\u03BB\u03CD\u03C4\u03C9\u03C2 \u03B1\u03C0\u03B1\u03C1\u03B1\u03AF\u03C4\u03B7\u03C4\u03B1 cookies, \u03B1\u03BB\u03BB\u03AC \u03BC\u03C0\u03BF\u03C1\u03B5\u03AF\u03C4\u03B5 \u03BD\u03B1 \u03B1\u03C0\u03B5\u03BD\u03B5\u03C1\u03B3\u03BF\u03C0\u03BF\u03B9\u03AE\u03C3\u03B5\u03C4\u03B5 \u03AC\u03BB\u03BB\u03B5\u03C2 \u03BA\u03B1\u03C4\u03B7\u03B3\u03BF\u03C1\u03AF\u03B5\u03C2 \u03C3\u03CD\u03BC\u03C6\u03C9\u03BD\u03B1 \u03BC\u03B5 \u03C4\u03B9\u03C2 \u03C0\u03C1\u03BF\u03C4\u03B9\u03BC\u03AE\u03C3\u03B5\u03B9\u03C2 \u03C3\u03B1\u03C2. <link>\u039C\u03AC\u03B8\u03B5\u03C4\u03B5 \u03C0\u03B5\u03C1\u03B9\u03C3\u03C3\u03CC\u03C4\u03B5\u03C1\u03B1</link>",necessaryText:"\u0391\u03C0\u03B1\u03C1\u03B1\u03AF\u03C4\u03B7\u03C4\u03B1 cookies",necessaryDescription:"\u0391\u03C0\u03B1\u03B9\u03C4\u03BF\u03CD\u03BD\u03C4\u03B1\u03B9 \u03B3\u03B9\u03B1 \u03B2\u03B1\u03C3\u03B9\u03BA\u03AD\u03C2 \u03BB\u03B5\u03B9\u03C4\u03BF\u03C5\u03C1\u03B3\u03AF\u03B5\u03C2 \u03C4\u03BF\u03C5 \u03B9\u03C3\u03C4\u03CC\u03C4\u03BF\u03C0\u03BF\u03C5 \u03BA\u03B1\u03B9 \u03B1\u03C0\u03BF\u03B8\u03AE\u03BA\u03B5\u03C5\u03C3\u03B7 \u03C0\u03C1\u03BF\u03C4\u03B9\u03BC\u03AE\u03C3\u03B5\u03C9\u03BD.",marketingText:"Cookies \u03BC\u03AC\u03C1\u03BA\u03B5\u03C4\u03B9\u03BD\u03B3\u03BA",marketingDescription:"\u0395\u03C0\u03B9\u03C4\u03C1\u03AD\u03C0\u03BF\u03C5\u03BD \u03C4\u03B7\u03BD \u03C0\u03B1\u03C1\u03B1\u03BA\u03BF\u03BB\u03BF\u03CD\u03B8\u03B7\u03C3\u03B7 \u03B3\u03B9\u03B1 \u03B5\u03BE\u03B1\u03C4\u03BF\u03BC\u03AF\u03BA\u03B5\u03C5\u03C3\u03B7 \u03B4\u03B9\u03B1\u03C6\u03B7\u03BC\u03AF\u03C3\u03B5\u03C9\u03BD \u03BA\u03B1\u03B9 \u03BC\u03AD\u03C4\u03C1\u03B7\u03C3\u03B7 \u03B1\u03C0\u03CC\u03B4\u03BF\u03C3\u03B7\u03C2.",preferencesText:"Cookies \u03B5\u03BE\u03B1\u03C4\u03BF\u03BC\u03AF\u03BA\u03B5\u03C5\u03C3\u03B7\u03C2",preferencesDescription:"\u0395\u03C0\u03B9\u03C4\u03C1\u03AD\u03C0\u03BF\u03C5\u03BD \u03C4\u03B7\u03BD \u03C0\u03B1\u03C1\u03B1\u03BA\u03BF\u03BB\u03BF\u03CD\u03B8\u03B7\u03C3\u03B7 \u03B3\u03B9\u03B1 \u03C0\u03C1\u03BF\u03C3\u03B1\u03C1\u03BC\u03BF\u03B3\u03AE \u03C4\u03B7\u03C2 \u03B5\u03BC\u03C0\u03B5\u03B9\u03C1\u03AF\u03B1\u03C2 \u03C3\u03CD\u03BC\u03C6\u03C9\u03BD\u03B1 \u03BC\u03B5 \u03C4\u03B1 \u03B5\u03BD\u03B4\u03B9\u03B1\u03C6\u03AD\u03C1\u03BF\u03BD\u03C4\u03AC \u03C3\u03B1\u03C2.",anal
8756yticsText:"Cookies \u03B1\u03BD\u03AC\u03BB\u03C5\u03C3\u03B7\u03C2",analyticsDescription:"\u0395\u03C0\u03B9\u03C4\u03C1\u03AD\u03C0\u03BF\u03C5\u03BD \u03C4\u03B7\u03BD \u03C0\u03B1\u03C1\u03B1\u03BA\u03BF\u03BB\u03BF\u03CD\u03B8\u03B7\u03C3\u03B7 \u03C4\u03B7\u03C2 \u03C7\u03C1\u03AE\u03C3\u03B7\u03C2 \u03C4\u03BF\u03C5 \u03B9\u03C3\u03C4\u03CC\u03C4\u03BF\u03C0\u03BF\u03C5 \u03B3\u03B9\u03B1 \u03C4\u03B7 \u03B2\u03B5\u03BB\u03C4\u03AF\u03C9\u03C3\u03B7 \u03C4\u03C9\u03BD \u03B5\u03C0\u03B9\u03B4\u03CC\u03C3\u03B5\u03C9\u03BD.",saveLabel:"\u0391\u03C0\u03BF\u03B8\u03AE\u03BA\u03B5\u03C5\u03C3\u03B7 \u03C0\u03C1\u03BF\u03C4\u03B9\u03BC\u03AE\u03C3\u03B5\u03C9\u03BD",triggerLabel:"\u03A0\u03C1\u03BF\u03C4\u03B9\u03BC\u03AE\u03C3\u03B5\u03B9\u03C2 cookies"},"ro-RO":{noticeHeader:"Acest site folose\u0219te cookie-uri",noticeDisclaimerImplicit:"Cookie-urile de pe acest site ajut\u0103 la \xEEmbun\u0103t\u0103\u021Birea experien\u021Bei \u0219i la furnizarea de con\u021Binut personalizat. Continu\xE2nd navigarea, sunte\u021Bi de acord cu utilizarea cookie-urilor. <link>Citi\u021Bi mai multe</link>",acceptText:"Accepta\u021Bi toate",manageText:"Gestionare",noticeDisclaimerExplicit:"Cookie-urile de pe acest site ajut\u0103 la \xEEmbun\u0103t\u0103\u021Birea experien\u021Bei \u0219i la furnizarea de con\u021Binut personalizat. Face\u021Bi clic pe \u201EAccepta\u021Bi toate\u201D pentru a v\u0103 da consim\u021B\u0103m\xE2ntul pentru utilizarea cookie-urilor. <link>Citi\u021Bi mai multe</link>",rejectText:"Respinge\u021Bi toate",manageHeader:"Gestiona\u021Bi preferin\u021Bele legate de cookie",manageDisclaimer:"Cookie-urile de pe acest site ajut\u0103 la \xEEmbun\u0103t\u0103\u021Birea experien\u021Bei \u0219i la furnizarea de con\u021Binut personalizat. Nu pute\u021Bi refuza cookie-urile esen\u021Biale pentru func\u021Bionalitatea de baz\u0103, dar pute\u021Bi refuza alte categorii conform preferin\u021Belor dvs. <link>Citi\u021Bi mai multe</link>",necessaryText:"Cookie-uri esen\u021Biale",necessaryDescription:"Necesare pentru func\u021Biile de baz\u0103 ale site-ului \u0219i salvarea preferin\u021Belor.",marketingText:"Cookie-uri de marketing",marketingDescription:"Permit urm\u0103rirea pentru personalizarea \u0219i urm\u0103rirea reclamelor.",preferencesText:"Cookie-uri de personalizare",preferencesDescription:"Permit urm\u0103rirea pentru adaptarea experien\u021Bei de utilizare a site-ului la interesele dvs.",analyticsText:"Cookie-uri de analiz\u0103",analyticsDescription:"Permit urm\u0103rirea traficului de pe site pentru \xEEmbun\u0103t\u0103\u021Birea performan\u021Bei.",saveLabel:"Salva\u021Bi preferin\u021Bele",triggerLabel:"Preferin\u021Be legate de cookie"},"sk-SK":{noticeHeader:"T\xE1to lokalita pou\u017E\xEDva s\xFAbory cookie",noticeDisclaimerImplicit:"S\xFAbory cookie na tejto lokalite pom\xE1haj\xFA zlep\u0161i\u0165 v\xE1\u0161 z\xE1\u017Eitok a poskytova\u0165 personalizovan\xFD obsah. Pokra\u010Dovan\xEDm v prehliadan\xED s\xFAhlas\xEDte s ich pou\u017E\xEDvan\xEDm. <link>Viac inform\xE1ci\xED</link>",acceptText:"Prija\u0165 v\u0161etky",manageText:"Spravova\u0165",noticeDisclaimerExplicit:"S\xFAbory cookie na tejto lokalite pom\xE1haj\xFA zlep\u0161i\u0165 v\xE1\u0161 z\xE1\u017Eitok a poskytova\u0165 personalizovan\xFD obsah. Kliknut\xEDm na tla\u010Didlo Prija\u0165 v\u0161etky s\xFAhlas\xEDte s ich pou\u017E\xEDvan\xEDm. <link>Viac inform\xE1ci\xED</link>",rejectText:"Odmietnu\u0165 v\u0161etky",manageHeader:"Spr\xE1va predvolieb s\xFAborov cookie",manageDisclaimer:"S\xFAbory cookie na tejto lokalite pom\xE1haj\xFA zlep\u0161i\u0165 v\xE1\u0161 z\xE1\u017Eitok a poskytova\u0165 personalizovan\xFD obsah. Nevyhnutn\xE9 s\xFAbory cookie, ktor\xE9 zabezpe\u010Duj\xFA z\xE1kladn\xE9 funkcie, nie je mo\u017En\xE9 zak\xE1za\u0165, ale in\xE9 kateg\xF3rie m\xF4\u017Eete zak\xE1za\u0165 pod\u013Ea svojich preferenci\xED. <link>Viac inform\xE1ci\xED</link>",necessaryText:"Nevyhnutn\xE9 s\xFAbory cookie",necessaryDescription:"Potrebn\xE9 na povolenie z\xE1kladn\xFDch funkci\xED lokality a predvolieb.",marketingText:"Marketingov\xE9 s\xFAbory cookie",marketingDescription:"Umo\u017E\u0148uj\xFA sledovanie na prisp\xF4sobenie a meranie v\xFDkonu rekl\xE1m.",preferencesText:"Personaliza\u010Dn\xE9 s\xFAbory cookie",preferencesDescription:"Umo\u017E\u0148uj\xFA sledovanie na prisp\xF4sobenie lokality pod\u013Ea va\u0161ich z\xE1ujmov.",analyticsText:"Analytick\xE9 s\xFAbory cookie",anal
8756yticsDescription:"Umo\u017E\u0148uj\xFA sledovanie pou\u017E\xEDvania lokality na zlep\u0161enie jej v\xFDkonnosti.",saveLabel:"Ulo\u017Ei\u0165 predvo\u013Eby",triggerLabel:"Predvo\u013Eby s\xFAborov cookie"},"bg-BG":{noticeHeader:"\u0422\u043E\u0437\u0438 \u0441\u0430\u0439\u0442 \u0438\u0437\u043F\u043E\u043B\u0437\u0432\u0430 \u0431\u0438\u0441\u043A\u0432\u0438\u0442\u043A\u0438",noticeDisclaimerImplicit:"\u0411\u0438\u0441\u043A\u0432\u0438\u0442\u043A\u0438\u0442\u0435 \u043D\u0430 \u0442\u043E\u0437\u0438 \u0441\u0430\u0439\u0442 \u043F\u043E\u043C\u0430\u0433\u0430\u0442 \u0437\u0430 \u043F\u043E\u0434\u043E\u0431\u0440\u044F\u0432\u0430\u043D\u0435 \u043D\u0430 \u0432\u0430\u0448\u0435\u0442\u043E \u0438\u0437\u0436\u0438\u0432\u044F\u0432\u0430\u043D\u0435 \u0438 \u043F\u0440\u0435\u0434\u043E\u0441\u0442\u0430\u0432\u044F\u043D\u0435 \u043D\u0430 \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u0438\u0437\u0438\u0440\u0430\u043D\u043E \u0441\u044A\u0434\u044A\u0440\u0436\u0430\u043D\u0438\u0435. \u041F\u0440\u043E\u0434\u044A\u043B\u0436\u0430\u0432\u0430\u0439\u043A\u0438 \u0434\u0430 \u0440\u0430\u0437\u0433\u043B\u0435\u0436\u0434\u0430\u0442\u0435, \u0432\u0438\u0435 \u0441\u0435 \u0441\u044A\u0433\u043B\u0430\u0441\u044F\u0432\u0430\u0442\u0435 \u0441 \u0438\u0437\u043F\u043E\u043B\u0437\u0432\u0430\u043D\u0435\u0442\u043E \u043D\u0430 \u0431\u0438\u0441\u043A\u0432\u0438\u0442\u043A\u0438. <link>\u041D\u0430\u0443\u0447\u0435\u0442\u0435 \u043F\u043E\u0432\u0435\u0447\u0435</link>",acceptText:"\u041F\u0440\u0438\u0435\u043C\u0430\u043C \u0432\u0441\u0438\u0447\u043A\u0438",manageText:"\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435",noticeDisclaimerExplicit:"\u0411\u0438\u0441\u043A\u0432\u0438\u0442\u043A\u0438\u0442\u0435 \u043D\u0430 \u0442\u043E\u0437\u0438 \u0441\u0430\u0439\u0442 \u043F\u043E\u043C\u0430\u0433\u0430\u0442 \u0437\u0430 \u043F\u043E\u0434\u043E\u0431\u0440\u044F\u0432\u0430\u043D\u0435 \u043D\u0430 \u0432\u0430\u0448\u0435\u0442\u043E \u0438\u0437\u0436\u0438\u0432\u044F\u0432\u0430\u043D\u0435 \u0438 \u043F\u0440\u0435\u0434\u043E\u0441\u0442\u0430\u0432\u044F\u043D\u0435 \u043D\u0430 \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u0438\u0437\u0438\u0440\u0430\u043D\u043E \u0441\u044A\u0434\u044A\u0440\u0436\u0430\u043D\u0438\u0435. \u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 \u201E\u041F\u0440\u0438\u0435\u043C\u0430\u043C \u0432\u0441\u0438\u0447\u043A\u0438\u201C, \u0437\u0430 \u0434\u0430 \u0441\u0435 \u0441\u044A\u0433\u043B\u0430\u0441\u0438\u0442\u0435 \u0441 \u0438\u0437\u043F\u043E\u043B\u0437\u0432\u0430\u043D\u0435\u0442\u043E \u043D\u0430 \u0431\u0438\u0441\u043A\u0432\u0438\u0442\u043A\u0438. <link>\u041D\u0430\u0443\u0447\u0435\u0442\u0435 \u043F\u043E\u0432\u0435\u0447\u0435</link>",rejectText:"\u041E\u0442\u043A\u0430\u0437\u0432\u0430\u043C \u0432\u0441\u0438\u0447\u043A\u0438",manageHeader:"\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u043D\u0430 \u043F\u0440\u0435\u0434\u043F\u043E\u0447\u0438\u0442\u0430\u043D\u0438\u044F\u0442\u0430 \u0437\u0430 \u0431\u0438\u0441\u043A\u0432\u0438\u0442\u043A\u0438",manageDisclaimer:"\u0411\u0438\u0441\u043A\u0432\u0438\u0442\u043A\u0438\u0442\u0435 \u043D\u0430 \u0442\u043E\u0437\u0438 \u0441\u0430\u0439\u0442 \u043F\u043E\u043C\u0430\u0433\u0430\u0442 \u0437\u0430 \u043F\u043E\u0434\u043E\u0431\u0440\u044F\u0432\u0430\u043D\u0435 \u043D\u0430 \u0432\u0430\u0448\u0435\u0442\u043E \u0438\u0437\u0436\u0438\u0432\u044F\u0432\u0430\u043D\u0435 \u0438 \u043F\u0440\u0435\u0434\u043E\u0441\u0442\u0430\u0432\u044F\u043D\u0435 \u043D\u0430 \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u0438\u0437\u0438\u0440\u0430\u043D\u043E \u0441\u044A\u0434\u044A\u0440\u0436\u0430\u043D\u0438\u0435. \u041D\u0435 \u043C\u043E\u0436\u0435\u0442\u0435 \u0434\u0430 \u0441\u0435 \u043E\u0442\u043A\u0430\u0436\u0435\u0442\u0435 \u043E\u0442 \u043E\u0441\u043D\u043E\u0432\u043D\u0438\u0442\u0435 \u0431\u0438\u0441\u043A\u0432\u0438\u0442\u043A\u0438, \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u0438 \u0437\u0430 \u0440\u0430\u0431\u043E\u0442\u0430\u0442\u0430 \u043D\u0430 \u0441\u0430\u0439\u0442\u0430, \u043D\u043E \u043C\u043E\u0436\u0435\u0442\u0435 \u0434\u0430 \u0438\u0437\u043A\u043B\u044E\u0447\u0438\u0442\u0435 \u0434\u0440\u0443\u0433\u0438 \u043A\u0430\u0442\u0435\u0433\u043E\u0440\u0438\u0438 \u0441\u043F\u043E\u0440\u0435\u0434 \u0432\u0430\u0448\u0438\u0442\u0435 \u043F\u0440\u0435\u0434\u043F\u043E\u0447\u0438\u0442\u0430\u043D\u0438\u044F. <link>\u041D\u0430\u0443\u0447\u0435\u0442\u0435 \u043F\u043E\u0432\u0435\u0447\u0435</link>",necessaryText:"\u0417\u0430\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u0438 \u0431\u0438\u0441\u043A\u0432\u0438\u0442\u043A\u0438",necessaryDescription:"\u041D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u0438 \u0437\u0430 \u043E\u0441\u043D\u043E\u0432\u043D\u0438\u0442\u0435 \u0444\u0443\u043D\u043A\u0446\u0438\u0438 \u043D\u0430 \u0441\u0430\u0439\u0442\u0430 \u0438 \u0437\u0430\u043F\u0430\u0437\u0432\u0430\u043D\u0435 \u043D\u0430 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438\u0442\u0435.",marketingText:"\u041C\u0430\u0440\u043A\u0435\u0442\u0438\u043D\u0433\u043E\u0432\u0438 \u0431\u0438\u0441\u043A\u0432\u0438\u0442\u043A\u0438",marketingDescription:"\u041F\u043E\u0437\u0432\u043E\u043B\u044F\u0432\u0430\u0442 \u043F\u0440\u043E\u0441\u043B\u0435\u0434\u044F\u0432\u0430\u043D\u0435 \u0437\u0430 \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u0438\u0437\u0438\u0440\u0430\u043D\u0430 \u0440\u0435\u043A\u043B\u0430\u043C\u0430 \u0438 \u0438\u0437\u043C\u0435\u0440\u0432\u0430\u043D\u0435 \u043D\u0430 \u0435\u0444\u0435\u043A\u0442\u0438\u0432\u043D\u043E\u0441\u0442\u0442\u0430.",preferencesText:"\u0411\u0438\u0441\u043A\u0432\u0438\u0442\u043A\u0438 \u0437\u0430 \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u044F",preferencesDescription:"\u041F\u043E\u0437\u0432\u043E\u043B\u044F\u0432\u0430\u0442 \u043F\u0440\u043E\u0441\u043B\u0435\u0434\u044F\u0432\u0430\u043D\u0435 \u0437\u0430 \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u0438\u0437\u0438\u0440\u0430\u043D\u0435 \u043D\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430\u043D\u0438\u0435\u0442\u043E \u0441\u043F\u043E\u0440\u0435\u0434 \u0432\u0430\u0448\u0438\u0442\u0435 \u0438\u043D\u0442\u0435\u0440\u0435\u0441\u0438.",anal
8756yticsText:"\u0410\u043D\u0430\u043B\u0438\u0442\u0438\u0447\u043D\u0438 \u0431\u0438\u0441\u043A\u0432\u0438\u0442\u043A\u0438",analyticsDescription:"\u041F\u043E\u0437\u0432\u043E\u043B\u044F\u0432\u0430\u0442 \u043F\u0440\u043E\u0441\u043B\u0435\u0434\u044F\u0432\u0430\u043D\u0435 \u043D\u0430 \u0443\u043F\u043E\u0442\u0440\u0435\u0431\u0430\u0442\u0430 \u043D\u0430 \u0441\u0430\u0439\u0442\u0430 \u0437\u0430 \u043F\u043E\u0434\u043E\u0431\u0440\u044F\u0432\u0430\u043D\u0435 \u043D\u0430 \u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0435\u043B\u043D\u043E\u0441\u0442\u0442\u0430.",saveLabel:"\u0417\u0430\u043F\u0430\u0437\u0438 \u043F\u0440\u0435\u0434\u043F\u043E\u0447\u0438\u0442\u0430\u043D\u0438\u044F\u0442\u0430",triggerLabel:"\u041F\u0440\u0435\u0434\u043F\u043E\u0447\u0438\u0442\u0430\u043D\u0438\u044F \u0437\u0430 \u0431\u0438\u0441\u043A\u0432\u0438\u0442\u043A\u0438"}},NU=yN["en-US"];var Lo=v(W());var B$=["US","AU","HK","ID","KE","MX","NZ","NG","PH","ZA","TH"],U$=["AD","AR","AT","BE","BR","BG","CL","HR","CY","CZ","DK","EE","FI","FR","DE","GR","HU","IS","IN","IE","IT","JP","KR","LV","LI","LT","LU","MY","MT","MA","NL","NO","PL","PT","QA","RO","RU","SG","SK","SI","ES","SE","CH","GB"];function V$(e,t){return e.analytics!==t.analytics||e.preferences!==t.preferences||e.marketing!==t.marketing||e.necessary!==t.necessary}var yU="cookie-consent-mode",bN="cookie-consent-banner-seen",LN="cookie-consent-banner-interacted";function H$(){let e=typeof window<"u"?window.__cf_country:null;return!e||U$.includes(e)?yo.EXPLICIT:B$.includes(e)?yo.IMPLICIT:null}var Ul=class{consentType=null;constructor(t){this.consentType=t}start(){localStorage.setItem(bN,"true")}shouldShowNotice(){return this.consentType===yo.EXPLICIT&&localStorage.getItem(LN)!=="true"||this.consentType===yo.IMPLICIT&&localStorage.getItem(bN)!=="true"}shouldShowTag(){return this.consentType===yo.EXPLICIT&&localStorage.getItem(LN)==="true"||this.consentType===yo.IMPLICIT&&localStorage.getItem(bN)==="true"}getDefaultConsentStatus(){return this.consentType===yo.IMPLICIT?{necessary:!0,analytics:!0,preferences:!0,marketing:!0}:{necessary:!0,analytics:!1,preferences:!1,marketing:!1}}static getConsentStatus(){let t=localStorage.getItem(yU);if(!t||t==="null")return null;let n=JSON.parse(t);return{necessary:n.functionality_storage==="granted",analytics:n.analytics_storage==="granted",preferences:n.personalization_storage==="granted",marketing:n.ad_storage==="granted"}}setUserInteracted(){localStorage.setItem(LN,"true")}persist(t){let n={functionality_storage:t.necessary?"granted":"denied",ad_storage:t.marketing?"granted":"denied",analytics_storage:t.analytics?"granted":"denied",personalization_storage:t.preferences?"granted":"denied"};localStorage.setItem(yU,JSON.stringify(n))}};function CN({forceConsentType:e}){let t=H$(),n=e||t,r=(0,Lo.useMemo)(()=>new Ul(n),[n]),[o,i]=(0,Lo.useState)(!1),[s,a]=(0,Lo.useState)(!1),l=(T,h)=>({...T,...h}),[u,c]=(0,Lo.useReducer)(l,r.getDefaultConsentStatus()),d=(0,Lo.useRef)(!1);(0,Lo.useEffect)(()=>{if(d.current===e)return;a(r.shouldShowTag()),i(r.shouldShowNotice()),r.start();let T=Ul.getConsentStatus();e?c(r.getDefaultConsentStatus()):T?c(T):r.persist(r.getDefaultConsentStatus()),d.current=e},[u,r,e]);let f=()=>{let T={necessary:!0,analytics:!1,preferences:!1,marketing:!1};c(T),_(T)},p=()=>{let T={necessary:!0,analytics:!0,preferences:!0,marketing:!0};c(T),_(T)};function _(T,h){r.setUserInteracted();let m=T||u,E=Ul.getConsentStatus();!E||V$(m,E)?(r.persist(m),window.location.reload()):(i(!1),a(!0),h?.())}return{consent:u,shouldShowNotice:o,shouldShowTag:s,consentType:n,acceptOnlyNecessary:f,acceptAll:p,saveConsent:_,updateConsent:c}}var W$=["necessary","marketing","preferences","analytics"];function Y$({containerId:e,forceConsentType:t,forceStage:n,guidToUrl:r,setLocation:o,reportError:i,isManaging:s,setIsManaging:a,...l}){let u=yN[l.locale]||NU,{consent:c,shouldShowNotice:d,shouldShowTag:f,consentType:p,acceptOnlyNecessary:_,acceptAll:T,saveConsent:h,updateConsent:m}=CN({forceConsentType:t}),E=null;s||n==="manage"?E="manage":d||n==="notice"?E="notice":f&&(E="tag");let O=!!n;
8756if(E==="tag")return(0,fn.jsx)(NN,{onClick:()=>{a?.(!0)},xAlignment:l.triggerXAlignment,children:u.triggerLabel});let g=(0,fn.jsx)(RN,{disclaimerText:E==="manage"?u.manageDisclaimer:p===yo.EXPLICIT?u.noticeDisclaimerExplicit:u.noticeDisclaimerImplicit,policyLink:l.policyLink,policyUrl:l.policyUrl,reportError:i,guidToUrl:r,setLocation:o,isPreview:O}),I=(0,fn.jsxs)("div",{className:"cookie-consent-button-group",style:TU({wide:l.componentType===TN.MODAL}),children:[p===yo.EXPLICIT&&(0,fn.jsx)(cd,{onClick:_,children:u.rejectText}),(0,fn.jsx)(cd,{onClick:()=>a?.(!0),children:u.manageText}),(0,fn.jsx)(cd,{onClick:T,children:u.acceptText})]}),S=(0,fn.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"0.25rem"},children:[(0,fn.jsx)("h1",{style:EU(),children:E==="notice"?u.noticeHeader:u.manageHeader}),g]});return E==="manage"?(0,fn.jsxs)(SN,{containerId:e,onClose:()=>a?.(!1),scrimBackground:!O,children:[S,(0,fn.jsx)("div",{style:{display:"flex",flexDirection:"column"},children:W$.map(A=>(0,fn.jsx)(gN,{id:A,checked:c[A],description:u[`${A}Description`],disabled:A==="necessary",label:u[`${A}Text`],onChange:()=>m({[A]:!c[A]})},A))}),(0,fn.jsx)(cd,{className:"button-wide",onClick:()=>{h(void 0,()=>a?.(!1))},children:u.saveLabel})]}):E==="notice"?l.componentType===TN.MODAL?(0,fn.jsxs)(AN,{containerId:e,xAlignment:l.xAlignment,yAlignment:l.yAlignment,children:[S,I]}):(0,fn.jsxs)("div",{className:"cookie-consent-banner",style:hU({yAlignment:l.yAlignment}),children:[g,I]}):null}function PN(e){return(0,qh.useEffect)(()=>{let t="cookie-consent-styles",n=document.getElementById(t);n&&n.remove();let r=document.createElement("style");return r.id=t,r.textContent=` 8757 :root { 8758 --consent-font-size-medium: 11px; 8759 --consent-line-height-medium: 16px; 8760 --consent-font-size-large: 13px; 8761 --consent-line-height-large: 22px; 8762 --consent-banner-padding: 1rem; 8763 } 8764 8765 @media (max-width: 480px) { 8766 :root { 8767 --consent-font-size-medium: 13px; 8768 --consent-line-height-medium: 22px; 8769 --consent-font-size-large: 15px; 8770 --consent-line-height-large: 25px; 8771 --consent-banner-padding: 1.5rem; 8772 } 8773 } 8774 8775 .button-wide { 8776 width: 100%; 8777 } 8778 8779 @media (max-width: 480px) { 8780 .cookie-consent-banner { 8781 flex-direction: column; 8782 } 8783 8784 .cookie-consent-button-group { 8785 flex-direction: row; 8786 width: 100%; 8787 } 8788 } 8789 `,document.head.appendChild(r),()=>{let o=document.getElementById(t);o&&o.remove()}},[]),(0,fn.jsx)(Y$,{...e})}var dd=(0,qh.createContext)({enabled:!1,openSettings:()=>{}});function bU(e){if(typeof window>"u")return!1;let t=Ul.getConsentStatus();return e.includes("youtube-nocookie.com")||e.includes("youtube.com")||e.includes("maps.google.com")||e.includes("docs.google.com")||e.includes("form.typeform.com")||e.includes("vimeo.com")?t?t.analytics&&t.preferences&&t.marketing:!1:!0}var K$=[{pattern:/^(https?:\/\/(www\.)?(youtube\.com|youtu\.be|youtube-nocookie\.com)\/.*)/,transform:z$,embedType:"IFRAME"},{pattern:/^(?:https?:)?\/\/(www\.)?google\.com\/maps\/.*|^(?:https?:)?\/\/maps\.google\.com\/.*|^(?:https?:)?\/\/maps\.goo\.gl\/.*/,transform:X$,embedType:"IFRAME"},{pattern:/^(?:https?:)?\/\/(www\.)?typeform\.com\/.*|^(?:https?:)?\/\/form\.typeform\.com\/.*/,transform:PU,embedType:"HTML",htmlTransform:j$},{pattern:_N,transform:$$,embedType:"HTML",htmlTransform:Z$},{pattern:/^(?:https?:)?\/\/(www\.)?docs\.google\.com\/forms\/.*|^(?:https?:)?\/\/forms\.gle\/.*/,transform:J$,embedType:"IFRAME"},{pattern:/^(?:https?:)?\/\/(www\.)?vimeo\.com\/.*$/,transform:q$,embedType:"IFRAME"}];function z$(e){let t;try{let n=new URL(e);t=n.searchParams.get("v")||null;let o=/(?:https?:\/\/)?(?:www\.)?(youtube\.com|youtu\.be|youtube-nocookie\.com)\/(?:watch\?v=|embed\/)?([^&?]+)/,i=e.match(o);if(!t){let a=i?.[2]||null;a&&(t=a)}let s=new URL((i?.[1]||"")==="youtube-nocookie.com"?`https://www.youtube-nocookie.com/embed/${t}`:`https://www.youtube.com/embed/${t}`);return n.searchParams.forEach((a,l)=>{l!=="v"&&s.searchParams.set(l,a)}),s.toString()}catch{return e}}
8789function X$(e){let t=new URL("https://maps.google.com/maps");return t.searchParams.set("output","embed"),new URL(e).searchParams.forEach((r,o)=>{t.searchParams.set(o,r)}),t.toString()}function PU(e){try{let t=/\/to\/([a-zA-Z0-9]+)/,n=e.match(t);return n&&n[1]?n[1]:e}catch{return e}}function j$(e){return`<div data-tf-widget="${PU(e)}" style="width:100%;height:100%;"></div><script src="//embed.typeform.com/next/embed.js"></script>`}function $$(e){return e}function Z$(e){return`<script src="https://unpkg.com/@lottiefiles/[email protected]/dist/dotlottie-wc.js" type="module"></script><dotlottie-wc src="${e}" style="width: 100%; height: 100%;" speed="1" autoplay loop></dotlottie-wc>`}function J$(e){try{let t=new URL(e);return t.hostname.includes("forms.gle")||t.hostname.includes("docs.google.com")?(t.searchParams.set("embedded","true"),t.toString()):e}catch{return e}}function q$(e){try{let t=/\/(\d+)/,n=e.match(t);if(console.log(n),n&&n[1])return`https://player.vimeo.com/video/${n[1]}`}catch{return e}return e}function Q$(e){return Bn.default.useMemo(()=>{for(let t of K$)if(e.match(t.pattern))return{transformedUrl:t.transform(e),embedType:t.embedType,htmlTransform:t.htmlTransform};return{transformedUrl:e,embedType:"IFRAME"}},[e])}var DU={overflow:"clip",width:"100%",height:"100%"};function vU({node:e,websiteContext:t}){oa("GenericEmbed");let n=m_(),{embedURL:r,embedIframeHtml:o,embedCodeType:i,embedAllowFullscreen:s}=e.syncedState,{transformedUrl:a,embedType:l,htmlTransform:u}=Q$(r),{enabled:c}=(0,Bn.useContext)(dd),d=(0,Bn.useMemo)(()=>{if(i==="html"){let f=new DOMParser().parseFromString(o,"text/html"),p=f.querySelector("iframe");return p?(p.style.width="100%",p.style.height="100%",{type:"iframe",html:p.outerHTML}):{type:"html",html:f.head.innerHTML.concat(f.body.innerHTML)}}else return},[i,o]);
8789if(i==="html")return!d||!d.html.trim()?(0,or.jsx)(CU,{websiteContext:t}):(0,or.jsx)(LU,{websiteContext:t,type:d.type,html:d.html});{if(c&&!bU(r))return(0,or.jsx)(r9,{websiteContext:t});if(!a.trim())return(0,or.jsx)(CU,{websiteContext:t});if(l==="HTML"&&u){let p=u(r);return(0,or.jsx)(LU,{websiteContext:t,type:"html",html:p})}let f=!n&&new URL(r).searchParams.get("autoplay")==="1";return t.renderElement({Tag:"iframe",styleSet:[DU,"embed"],attributes:{src:a,allowFullScreen:s,title:e.accessibleLabel,allow:f?"autoplay":void 0}})}}function LU({websiteContext:e,type:t,html:n}){let r=(0,Bn.useRef)(null);return(0,Bn.useEffect)(()=>{if(r.current&&t==="html"){let o=document.createRange();o.selectNode(r.current);let i=o.createContextualFragment(n);r.current.innerHTML="",r.current.append(i)}},[n,t]),e.renderElement({Tag:"div",styleSet:[DU,"embed"],ref:r,dangerouslySetInnerHTML:{__html:n}})}function e9(){let[e,t]=(0,Bn.useState)(200),n=(0,Bn.useRef)(null);return(0,Bn.useEffect)(()=>{let o=n.current?.parentElement;if(!o)return;let i=new ResizeObserver(s=>{t(s[0]?.contentRect.width??200)});return i.observe(o),t(o.getBoundingClientRect().width),()=>{i.disconnect()}},[]),[n,e]}var t9={width:"100%",height:"100%",backgroundColor:"#F5F5F5",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",overflow:"hidden",padding:"8px",fontSize:"11px",lineHeight:"16px",fontWeight:"450",color:"rgba(0, 0, 0, 0.9)",cursor:"pointer"},n9={width:24,height:24,display:"flex",alignItems:"center",justifyContent:"center"};function r9({websiteContext:e}){let[t,n]=e9(),{openSettings:r}=(0,Bn.useContext)(dd),o=e.renderElement({Tag:"div",styleSet:n9,ref:t,children:(0,or.jsx)("svg",{width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,or.jsx)("path",{d:"M2.91138 6.50781C3.10662 6.31259 3.42317 6.31258 3.61841 6.50781C3.8133 6.70307 3.81351 7.01972 3.61841 7.21484L2.38599 8.44727C1.6052 9.22815 1.60549 10.4943 2.38599 11.2754C3.16704 12.0561 4.43317 12.0562 5.21411 11.2754L6.44653 10.043C6.64178 9.84775 6.95833 9.84773 7.15356 10.043C7.34845 10.2382 7.34867 10.5549 7.15356 10.75L5.92114 11.9824C4.74968 13.1538 2.85053 13.1536 1.67896 11.9824C0.507937 10.8108 0.50764 8.91164 1.67896 7.74023L2.91138 6.50781ZM0.946533 1.00684C1.14177 0.8117 1.45833 0.811703 1.65356 1.00684L12.6536 12.0068C12.8488 12.2021 12.8487 12.5186 12.6536 12.7139C12.4583 12.9091 12.1418 12.9091 11.9465 12.7139L0.946533 1.71387C0.75137 1.5186 0.751304 1.20207 0.946533 1.00684ZM7.67896 1.74023C8.85039 0.568818 10.7495 0.569074 11.9211 1.74023C13.0924 2.91183 13.0926 4.81096 11.9211 5.98242L10.6887 7.21484C10.4936 7.40997 10.177 7.40974 9.98169 7.21484C9.78645 7.0196 9.78645 6.70305 9.98169 6.50781L11.2141 5.27539C11.995 4.49445 11.9948 3.22833 11.2141 2.44727C10.433 1.66663 9.1669 1.66637 8.38599 2.44727L7.15356 3.67969C6.95844 3.87481 6.6418 3.87459 6.44653 3.67969C6.25129 3.48445 6.25129 3.1679 6.44653 2.97266L7.67896 1.74023Z",fill:"black",fillOpacity:"0.5"})})});return e.renderElement({Tag:"button",styleSet:t9,attributes:{onClick:r},children:(0,or.jsxs)(or.Fragment,{children:[o,n>=80&&(0,or.jsx)("span",{children:"Allow cookies to view this content"})]})})}var o9={width:"100%",height:"100%",backgroundColor:"#D3D1FF",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden"},i9={width:"min(93px, 100%)",height:"min(93px, 100%)",display:"flex",alignItems:"center",justifyContent:"center"},s9={width:"100%",height:"100%"};function CU({websiteContext:e}){return e.renderElement({Tag:"div",styleSet:o9,children:e.renderElement({Tag:"div",styleSet:i9,children:e.renderElement({Tag:"svg",styleSet:s9,attributes:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 93 93",fill:"none"},children:(0,or.jsx)("path",{d:"M20.9465 32.2205C32.0947 21.0723 50.1694 21.0723 61.3176 32.2205L57.0744 36.4626L52.8322 40.7058C46.3704 34.2439 35.8937 34.244 29.4319 40.7058L18.1584 51.9792C11.
87896967 58.4411 11.6966 68.9178 18.1584 75.3796C24.6203 81.841 35.0971 81.8412 41.5588 75.3796C43.9019 73.0365 47.701 73.0365 50.0442 75.3796C52.3869 77.7228 52.3872 81.522 50.0442 83.865C38.8961 95.0129 20.8212 95.0127 9.67306 83.865C-1.47505 72.7169 -1.47496 54.6421 9.67306 43.4939L20.9465 32.2205ZM43.4924 9.67455C54.6405 -1.47358 72.7153 -1.47352 83.8635 9.67455C95.0116 20.8227 95.0116 38.8975 83.8635 50.0456L72.591 61.3191C61.617 72.2927 43.9309 72.4637 32.7473 61.8328L32.2199 61.3191L32.007 61.0945C29.8792 58.7393 29.9504 55.1037 32.2199 52.8337C34.4899 50.5639 38.1254 50.4929 40.4807 52.6208L40.7043 52.8337L41.011 53.1316C47.4933 59.2934 57.7448 59.1942 64.1057 52.8337L75.3781 41.5603L75.677 41.2546C81.8391 34.7722 81.739 24.5208 75.3781 18.1599C68.9163 11.6981 58.4396 11.6981 51.9778 18.1599L47.7356 13.9167L43.4924 9.67455ZM61.3176 32.2205C63.6603 34.5636 63.6606 38.3628 61.3176 40.7058C58.9746 43.0487 55.1754 43.0485 52.8322 40.7058L61.3176 32.2205ZM51.9778 18.1599C49.6346 20.5023 45.8353 20.5028 43.4924 18.1599C41.1496 15.817 41.15 12.0177 43.4924 9.67455L51.9778 18.1599Z",fill:"#3D32E2"})})})})}function xU({node:e,parent:t,context:n,zIndex:r,websiteContext:o}){let{renderOptions:i}=o,s=rr(),a=Xn({node:e,parent:t,context:n,zIndex:r,children:[],options:{isFlattened:!0,precomputeTransforms:s},renderOptions:i}),l=$n({node:e,context:n,websiteContext:o}),u=jn({node:e,parent:t,children:null,renderOptions:i}),c={...a.inner,...kn(cn(n,e)),...Qr({node:e,parent:t,transitionProps:void 0,renderOptions:i,maskStyles:l}),...a.transform3d,...n?.style||{}},d=Jr(o,e),f=wn({node:e,parent:t,context:n,transitionProps:void 0,outerStyles:a.outer,wrapperSizeStyles:u,stickyWrapperStyles:a.stickyWrapper,transformChildWrapperStyles:a.transform,renderOptions:i,maskStyles:l});return Ne(yr({node:e,parent:t,context:n,wrappersToRender:f,websiteContext:o,children:Ot((0,Rp.jsx)(a9,{nodeId:e.id,style:c,dataName:d,context:n,outerStyles:f.motionLayerContent.outerStyles,websiteContext:o,children:(0,Rp.jsx)(Pl,{children:()=>(0,Rp.jsx)(l9,{node:e,websiteContext:o})})}))}),o)}function a9({nodeId:e,style:t,dataName:n,context:r,websiteContext:o,outerStyles:i,children:s}){return o.renderElement({Tag:"div",nodeId:e,styleSet:[i,t,r?.className],attributes:{"data-name":n,...r?.dataAttributes||{}},children:s})}function l9({node:e,websiteContext:t}){return oa("HTMLWidgetLayerContent"),(0,Rp.jsx)(vU,{node:e,websiteContext:t})}var DN=v(W()),MU=v(W());var kU=MU.forwardRef(function({node:t,parent:n,context:r,interactionHandlers:o,zIndex:i,transitionProps:s,codeBehaviorProps:a,websiteContext:l},u){let c=nd(),d=rr(),f=(0,DN.useRef)(null),p=(0,DN.useRef)(null),_=s?.smartAnimateType??ee.NONE,T=_===ee.INSTANCE_SUBTREE,{nodeCanAnimateRotation:h,layoutStyles:m,opacity:E}=_B({node:t,parent:n,context:r,zIndex:i,smartAnimateType:_,previousRotation:c,precomputeTransforms:d,renderOptions:l.renderOptions}),O={opacity:E,transform:zr(m.outer.transform)},g=Zr(t,r),{motionProps:I,key:S,ref:A}=to(t.id,t.behaviors,t.assets,O,g),R=ei(u,A);return Ne(TB({node:t,parent:n,context:r,interactionHandlers:o,transitionProps:s,codeBehaviorProps:a,ref:u,websiteContext:l,previousRotation:c,outerRef:f,codeBehaviorWrapperRef:p,smartAnimateType:_,canSmartAnimateInstance:T,nodeCanAnimateRotation:h,layoutStyles:m,opacity:E,behaviorProps:I,behaviorKey:S,behaviorsRef:A,mergedRef:R}),l)});var aa=v(_e()),MN=v(W());var GU="breakpoint-css";function FU({breakpoints:e}){let{env:t,addHeadTag:n}=fe();if(t!=="server"||e.length===1)return;let r=e.sort((i,s)=>s.width-i.width),o=r.reduce((i,s,a)=>{let l=a===0,u=a===r.length-1,c=r[a-1]?.width||void 0,d=[];return l?d.push(`(width < ${s.width}px)`):u?c&&d.push(`(width >= ${c}px)`):(c&&d.push(`(width >= ${c}px)`),d.push(`(width < ${s.width}px)`)),d.length>0&&i.push(`@media ${d.join(" or ")} { 8790 [${zA}="${fo(s.nodeId)}"] {display: none !important} 8791 }`),i},[]);n({type:"global-style",styleElId:GU,styleSheet:Ns(o.join(` 8792`))})}function wU(){let e=document.querySelectorAll(`[${KA}]`);e.length===0&&console.error("No breakpoints elements found during hydration."),e.forEach(n=>{window.getComputedStyle(n).display==="none"&&n.remove()});let t=document.querySelector(`#${GU}`);if(e.length>1&&!t){console.error("No breakpoint css style tag found during hydration.");return}t&&t.remove()}var UU=v(W());var vN=new Map;function BU(e,t){let n=JSON.stringify(e);return Xa({str:n,hashPrefix:e.type+"-",isUniqueKey:o=>{let i=vN.get(o),s=i?JSON.stringify(i):null;if(t==="server")return!s||s===n;if(s&&s!==n)return!1;let a=document.getElementById(o);return a?VU(a,e):!0}})}function VU(e,t){if(e.tagName==="LINK"&&t.type==="link"){let n=e;return n.getAttribute("href")===t.href&&n.rel===t.rel}else if(e.tagName==="META"&&t.type==="meta"){let n=e,r=t.name||"",o=t.property||"",i=n.getAttribute("property")||"";return n.content===t.content&&n.name===r&&i===o}else if(e.tagName==="TITLE"&&t.type==="title")return e.textContent===t.title;return!1}function HU(e){let{addHeadTag:t,env:n}=fe();n==="server"&&e.forEach(r=>{let o=BU(r,n);
8792vN.has(o)||(t(r),vN.set(o,r))}),(0,UU.useInsertionEffect)(()=>{let r=[];return e.forEach(o=>{if(o.type==="title"){document.title=o.title;return}let i=BU(o,n),s=document.getElementById(i);if(!(s&&VU(s,o))){if(o.type==="meta"){let a=o.property?`meta[property="${o.property}"]`:`meta[name="${o.name}"]`,l=document.querySelector(a);if(l){if(l.getAttribute("content")===o.content)return;l.setAttribute("content",o.content);return}}else if(o.type==="link"){let a=`link[rel="${o.rel}"][href="${o.href}"]`;if(document.querySelector(a))return}if(o.type==="link"){let a=document.createElement("link");a.href=o.href,a.rel=o.rel,a.id=i,document.head.appendChild(a),r.push(a)}else if(o.type==="meta"){let a=document.createElement("meta");o.name&&(a.name=o.name),o.property&&a.setAttribute("property",o.property),a.content=o.content,a.id=i,document.head.appendChild(a),r.push(a)}}}),()=>{r.forEach(o=>{o.remove()})}},[e])}var WU=v(W());var xN="body-background-color";function YU({breakpoints:e}){let{env:t,addHeadTag:n}=fe(),r=e.sort((s,a)=>s.width-a.width),i=r.map((s,a)=>({layerName:s.name,minWidth:a===0?void 0:s.width,maxWidth:a<r.length-1?r[a+1]?.width:void 0,background:s.background,nodeId:s.nodeId})).map(({background:s,minWidth:a,maxWidth:l,nodeId:u})=>{let c=[];l!==void 0&&c.push(`(max-width: ${l-1}px)`),a!==void 0&&c.push(`(min-width: ${a}px)`);let d=`body:has([data-breakpoint-id="${fo(u)}"]) { background-color: ${s} }`;return c.length>0?`@media ${c.join(", ")} { ${d} }`:d}).join(` 8793`);t==="server"&&n({type:"global-style",styleElId:xN,styleSheet:i}),(0,WU.useInsertionEffect)(()=>{let s=document.getElementById(xN);if(s){s.textContent=i;return}let a=document.createElement("style");return a.textContent=i,a.id=xN,document.head.appendChild(a),()=>{document.head.removeChild(a)}},[e])}function u9(e,t,n,r){let o=typeof window<"u"?window.location.host:"{{HOSTNAME}}",i=r,s=[{type:"title",title:e?.title??mN},{type:"meta",name:"description",content:e?.description??EN}];if(e?.title&&s.push({type:"meta",name:"title",content:e.title}),s.push({type:"meta",name:"robots",content:e?.blockSearchIndexing?"noindex":"index,follow"}),n){if(s.push({type:"meta",name:"twitter:card",content:"summary_large_image"}),s.push({type:"meta",name:"twitter:url",content:`https://${o}${i}`}),e?.title&&s.push({type:"meta",name:"twitter:title",content:e.title}),e?.description&&s.push({type:"meta",name:"twitter:description",content:e.description}),e?.socialImageFilename){let a=t(e?.socialImageFilename),l=`https://${o}${a}`;s.push({type:"meta",name:"twitter:image",content:l}),e?.title&&s.push({type:"meta",name:"twitter:image:alt",content:e.title})}if(e?.title&&s.push({type:"meta",property:"og:title",content:e.title}),e?.description&&s.push({type:"meta",property:"og:description",content:e.description}),s.push({type:"meta",property:"og:type",content:"website"}),s.push({type:"meta",property:"og:url",content:`https://${o}${i}`}),e?.socialImageFilename){let a=t(e?.socialImageFilename),l=`https://${o}${a}`;s.push({type:"meta",property:"og:image",content:l}),e?.title&&s.push({type:"meta",property:"og:image:alt",content:e.title})}e?.title&&s.push({type:"meta",property:"og:site_name",content:e.title})}return!n&&e?.socialImageFilename&&s.push({type:"meta",property:"og:image",content:t(e?.socialImageFilename)},{type:"meta",property:"twitter:image",content:t(e?.socialImageFilename)}),e?.faviconFilename&&s.push({type:"link",rel:"icon",href:t(e?.faviconFilename)}),s}function KU({node:e,children:t,websiteContext:n}){let{getAssetURL:r,renderOptions:o,enableMetaTags:i,websiteData:s}=n,a=Re(s.siteSettings);t!==void 0&&t.length>0;let l=(0,MN.useMemo)(()=>xS(t.filter(d=>d.visible!==!1).filter(d=>ol(d)).filter(d=>d.type==="FRAME"),o),[t,o]);FU({breakpoints:l.breakpoints}),YU({breakpoints:l.breakpoints});let u=e.name,c=(0,MN.useMemo)(()=>u9(a,r,i,u),[a,r,i,u]);return HU(c),(0,aa.jsx)(aa.Fragment,{children:t.map((d,f)=>(0,aa.jsx)(cN,{children:(0,aa.jsx)(aN,{name:d.name,width:d.size.x,height:d.size.y,children:(0,aa.jsx)(ra,{name:"sites-layer",nodeId:d.id,children:(0,aa.jsx)(Hi,{node:d,parent:null,websiteContext:n},f)},f)})},d.id))})}var Hi=(0,la.forwardRef)(function({node:t,parent:n,context:r,zIndex:o,codeBehaviorProps:i,websiteContext:s},a){let l=HE(t.materializedChildNodeProps??[]),{interactionHandlers:u,transitionProps:c}=t;r=As(r,Ue);let{renderComponentSetNodes:d}=s.renderOptions,f=wC(s.renderOptions,t,n),p=Re(ZI);(0,la.useEffect)(()=>
8793{if(t.visible&&!(u===void 0||u?.ON_KEY_DOWN===void 0))return p.set(t.id,u.ON_KEY_DOWN),()=>(p.delete(t.id),void 0)},[u,p,t.id,t.visible]);let _=c?.transitionData;return(0,la.useEffect)(()=>{let T,h;return t.visible&&(_&&!_.layout?T=c1(u,_.id):T=d1(t.id,u).timeoutIds,T.length&&_&&(h=f1(()=>{setTimeout(()=>{_.onTransitionEnd?.()},500)},100),window.addEventListener("resize",h))),()=>{h&&setTimeout(()=>{removeEventListener("resize",h)}),Cs.markTimeoutsAsUnmounted(t.id),setTimeout(()=>{let m=u?.AFTER_TIMEOUT?.map(E=>E.interactionGuid);Cs.cleanupUnmountedTimeouts(t.id,m)},100)}},[t.id,u,t.visible]),(0,la.useMemo)(()=>{if(!t||t.visible===!1&&!f)return null;let T=(()=>{switch(t.type){case"WEBPAGE":return(0,Ln.jsx)(KU,{node:t,children:l,parent:n,context:r,interactionHandlers:u,websiteContext:s});case"FRAME":case"SLOT":return(0,Ln.jsx)(Dh,{ref:a,node:t,children:l,parent:n,context:r,zIndex:o,interactionHandlers:u,transitionProps:c,codeBehaviorProps:i,websiteContext:s});case"COMPONENT_SET":return Ae(d,"COMPONENT_SET nodes are not supported in sites"),(0,Ln.jsx)(sU,{node:t,children:l,parent:n,context:r,zIndex:o,interactionHandlers:u,transitionProps:c,codeBehaviorProps:i,websiteContext:s});case"RECTANGLE":return(0,Ln.jsx)(Dh,{ref:a,node:t,children:l,parent:n,context:r,zIndex:o,interactionHandlers:u,transitionProps:c,codeBehaviorProps:i,websiteContext:s});case"GROUP":return(0,Ln.jsx)(pU,{node:t,children:l,parent:n,context:r,zIndex:o,interactionHandlers:u,transitionProps:c,websiteContext:s});case"IMAGE":case"SVG":return(0,Ln.jsx)(jw,{ref:a,node:t,parent:n,zIndex:o,context:r,interactionHandlers:u,transitionProps:c,codeBehaviorProps:i,websiteContext:s});case"TEXT":return(0,Ln.jsx)(kU,{ref:a,node:t,parent:n,context:r,zIndex:o,interactionHandlers:u,transitionProps:c,codeBehaviorProps:i,websiteContext:s});case"WIDGET":return(0,Ln.jsx)(xU,{node:t,parent:n,context:r,zIndex:o,interactionHandlers:u,websiteContext:s});case"CODE_INSTANCE":case"CODE_LAYER":return(0,Ln.jsx)(oU,{node:t,parent:n,context:r,zIndex:o,interactionHandlers:u,websiteContext:s});case"REPEATER":return(0,Ln.jsx)(Dh,{ref:a,node:t,children:l,parent:n,context:r,zIndex:o,interactionHandlers:u,transitionProps:c,websiteContext:s});case"CMS_RICH_TEXT":return(0,Ln.jsx)(LB,{node:t,parent:n,context:r,zIndex:o,interactionHandlers:u,websiteContext:s});default:xe(t)}})();return f?(0,Ln.jsx)("div",{style:{display:"none"},children:T}):T},[t,l,n,r,u,a,o,c,i,f,d,s])}),c9=(0,la.forwardRef)(function({node:t,parent:n,context:r,zIndex:o,name:i,nodeId:s,childKey:a,codeBehaviorProps:l,websiteContext:u},c){return(0,Ln.jsx)(ra,{name:i,nodeId:s,children:(0,Ln.jsx)(Hi,{ref:c,node:t,parent:n,context:r,zIndex:o,codeBehaviorProps:l,websiteContext:u},a)})});function od({node:e,parent:t,context:n,zIndex:r,name:o,nodeId:i,childKey:s,codeBehaviorProps:a,websiteContext:l,ref:u}){return Ot((0,Ln.jsx)(c9,{ref:u,name:o,nodeId:i,childKey:s,node:e,parent:t,context:n,zIndex:r,codeBehaviorProps:a,websiteContext:l},s))}var Qe=v(_e()),ir=v(W());var fd=v(W());function kN({key:e,children:t}){let n=e==null?null:{key:e};return Array.isArray(t)?(0,fd.createElement)(fd.Fragment,n,...t):(0,fd.createElement)(fd.Fragment,n,t)}var zU=new Map;function GN(){let{env:e,websiteData:t}=fe(),n=Ns(Re(t.globalStyles)??""),r=Xa({str:n??"",hashPrefix:LS,isUniqueKey:o=>
8793{if(e==="server"){let s=zU.get(o);return!s||s===n}let i=document.getElementById(o);return!i||i.textContent===n}});return n&&zU.set(r,n),Qu({cssString:n??"",styleElId:r,deleteElsWithPrefix:LS,skipValidation:!0}),null}var Qh=v(_e()),XU=v(W()),jU=(0,XU.forwardRef)(function({children:t},n){return(0,Qh.jsx)(Qh.Fragment,{children:t})});function FN({withBaseStyles:e,prepend:t=!1}){return Qu({cssString:pN(e),styleElId:Kh,prepend:t}),null}var ZU=v(_e());function $U(e,t,n){if(w_(e))return fo(t.id,n)}function JU({Tag:e,children:t,styleSet:n,elementRef:r,nodeId:o,idSuffix:i,attributes:s,...a}){let l=fe(),u=jD(Array.isArray(n)?n:[n]);return(0,ZU.jsx)(e,{...a,...s,id:o?$U(l,{id:o},i):void 0,className:u,ref:r,children:t})}var qU=v(_e());var QU=({children:e,...t})=>Ot((0,qU.jsx)(MR,{...t,children:e}));var Lr=v(_e()),Co=v(W()),d9=v(iN()),f9=v(_e()),p9=v(Ou()),m9=v(tE());var eV=Co.forwardRef(({children:e,codeBehaviors:t,variableState:n,modeContext:r,assets:o,outerStyles:i,tag:s,websiteContext:a},l)=>(0,Lr.jsx)(Pl,{children:()=>a.renderElement({Tag:s,ref:l,styleSet:[{display:"flex",...i},"tailwind","code-behavior-wrapper"],children:(0,Lr.jsx)(_9,{codeBehaviors:t,variableState:n,modeContext:r,assets:o,websiteContext:a,children:e})})}));eV.displayName="CodeBehaviorWrapper";var tV=({ref:e,...t})=>Ot((0,Lr.jsx)(eV,{ref:e,...t}));function E9({node:e,Component:t,codeBehaviors:n,variableState:r,modeContext:o,children:i,assets:s}){let a=T9(t),l=YB(a),c={...FB(e,l,n,r,o,a,s),children:i};return(0,Lr.jsx)(t,{...c})}function _9({children:e,codeBehaviors:t,variableState:n,modeContext:r,assets:o,websiteContext:i}){oa("CodeComponentContent");let s=ea(),a=i.getAssetURL,[l,u]=Co.useState([]);globalThis.__GLOBALS__={React:Co,ReactJSXRuntime:f9,ReactJSXDevRuntime:d9,ReactDOM:p9,ReactDOMClient:m9,SnapshotContext:Ip,RenderHooksContext:Ml,ActiveBreakpointContext:id,WebsiteSettingsContext:ad,getAssetURL:a};let c=Co.useMemo(()=>wB(t),[t]),d=GB(c),f=i.websiteData.sourceCodeHash,p=Re(f),_=Co.useRef({});return Co.useEffect(()=>{if(!i||!d.length)return;let T=d.filter(h=>!_.current[h.id]);T.length!==0&&Promise.all(T.map(async h=>{try{let m=i.getCodeComponentURL(h),E=await import(m),g=await Uh(E,h.codeExportName,m);return _.current[h.id]=g,g}catch(m){return sd(p,m,"Failed to import code behavior module"),null}})).then(h=>{h.some(m=>m!==null)&&u(d.map(m=>_.current[m.id]||null))}).catch(h=>{sd(p,h,"Failed to load code behavior")})},[d,i,p]),!d.length||!i||!s?(0,Lr.jsx)(Lr.Fragment,{children:e}):l.length!==d.length||l.some(T=>T===null)?(0,Lr.jsx)(Lr.Fragment,{children:e}):(0,Lr.jsx)(Lr.Fragment,{children:[...d].reverse().reduce((T,h,m)=>{let E=l.length-1-m,O=l[E];return O?(0,Lr.jsx)(E9,{node:h,Component:O,codeBehaviors:t,variableState:n,modeContext:r,assets:o,children:T},h.id):T},e)})}function T9(e){return e?e[Symbol.for("figma.react.props")]??{}:null}var Wi=v(_e()),qe=v(W()),nV=v(vI());var h9="left",O9=6,g9=!1,I9="Scrolling content",S9=!1,rV=({children:e,...t})=>Ot((0,Wi.jsx)(R9,{...t,children:Ne(e,t.websiteContext)})),R9=qe.default.forwardRef(function({node:t,style:n={},className:r="",children:o,websiteContext:i},s){let a=t.behaviors?.marquee?.direction??h9,l=t.behaviors?.marquee?.speed??O9,u=t.behaviors?.marquee?.shouldLoopInfinitely??g9,c=p1(t,i.renderOptions)?I9:t.accessibleLabel,d=t.behaviors?.marquee?.pauseOnHover??S9,[f,p]=(0,qe.useState)(0),[_,T]=(0,qe.useState)(0),[h,m]=(0,qe.useState)(1),[E,O]=(0,qe.useState)(!1),g=(0,qe.useRef)(null),I=s||g,S=(0,qe.useRef)(null),A=Wf(),R=(0,nV.default)("marquee",A?"":"reduced-motion"),y=(0,qe.useCallback)(N=>{if(S.current&&I.current){let K=I.current.getBoundingClientRect(),C=S.current.getBoundingClientRect(),M=f===0?K.width:f,P=C.width;if((a==="UP"||a==="DOWN")&&(M=K.height,P=C.height),u&&M&&P){let z=P<M?Math.ceil(M/P):1;m(z)}else m(1);T(P),(f===0||N)&&p(K.width)}},[u,I,f,a]);(0,qe.useEffect)(()=>{if(E&&(y(),S.current&&I.current)){let N=new ResizeObserver(()=>{y(!0)});return N.observe(I.current),N.observe(S.current),()=>{N&&N.disconnect()}}},[y,I,E]),(0,qe.useEffect)(()=>{y()},[y,o]),(0,qe.useEffect)(()=>{O(!0)},[]);let b=(0,qe.useMemo)(()=>u?_*h/l:_<f?f/l:_/l,[u,f,_,h,l]),L=(0,qe.useMemo)(()=>({...n,["--width"]:a==="UP"||a==="DOWN"?"100vh":"100%",["--transform"]:a==="UP"?"rotate(-90deg)":a==="DOWN"?"rotate(90deg)":"none"}),[n,a]),D=(0,qe.useMemo)(()=>({["--direction"]:a==="LEFT"?"normal":"reverse",["--duration"]:`${b}s`,["--delay"]:"0s",["--iteration-count"]:"infinite",["--min-width"]:u?"auto":"100%",["--timing-function"]:sS(i)?"steps(3)":"linear",["--pause-on-hover"]:d?"paused":"running"}),[a,b,u,d,i]),F=(0,qe.useMemo)(()=>({["--transform"]:a==="UP"?"rotate(90deg)":a==="DOWN"?"rotate(-90deg)":"none"}),[a]),H=(0,qe.useCallback)((N,K)=>[...Array(Number.isFinite(N)&&N>=0?N:0)].map((C,M)=>(0,Wi.jsx)(qe.Fragment,{children:qe.Children.map(o,P=>(0,Wi.jsx)("div",{"aria-hidden":K?"true":void 0,style:F,className:"marquee-child",children:P}))},M)),[F,o]);return E?(0,Wi.jsxs)("div",{ref:I,style:L,className:"marquee-container "+r,tabIndex:0,role:"marquee","aria-label":c,children:[(0,Wi.jsxs)("div",{className:R,style:D,children:[(0,Wi.jsx)("div",{className:"marquee-initial-child-container",ref:S,
8793children:H(1)}),H(h-1,!0)]}),(0,Wi.jsx)("div",{className:R,style:D,children:H(h,!0)})]}):null});var Np=v(_e()),eO=v(W());var CGe=v(W());function oV(e,t,n,r,o){return n?t.getLayerRef({layerRef:n,parentRef:o,Component:()=>null}):r(e)||null}function Ap(e,t){return t in e}function A9({renderNode:e,node:t,codeBehaviorProps:n}){let r=eO.useContext(Ml),o=eO.useRef(null),i=n?.transformRef||o,s=n?.parentRef;if(!r.renderHooks.length)return e(t)||(0,Np.jsx)(Np.Fragment,{});let a=t;for(let l of r.renderHooks)if(Ap(l,"renderText"))a={...a,renderTextHook:l};else if(Ap(l,"renderTextCharacter"))a={...a,renderTextCharacterHook:l};else if(Ap(l,"renderTextLine"))a={...a,renderTextLineHook:l};else if(Ap(l,"renderTextWord"))a={...a,renderTextWordHook:l};else if(Ap(l,"getLayerRef"))oV(a,l,i,e,s);else throw new te("Render hook not supported.");return e(a)||null}var iV=e=>(0,Np.jsx)(A9,{...e});var wN=v(_e()),He=v(W());function tO(e,t){let n=(0,He.useRef)(null);(0,He.useLayoutEffect)(()=>{if(!e||!e.current)return;let r=new ResizeObserver(o=>{for(let i of o)if(e.current===i.target){let s=i.contentRect.width,a=i.contentRect.height;if(n&&n.current&&n.current.width===s&&n.current.height===a)continue;let u={width:i.contentRect.width,height:i.contentRect.height};n.current=u,t&&t(u)}});return r.observe(e.current),()=>r.disconnect()},[e,t])}var N9=He.default.forwardRef(function({node:t,parent:n,context:r,children:o,outerStyles:i,childWrapperStyles:s,transitionData:a,smartAnimateType:l,transformRef:u,codeBehaviorWrapperRef:c,keyframeMotionPropsOverride:d,tag:f,websiteContext:p},_){let T=t.id,h=(0,He.useRef)(null),m=u||h,E=ei(_,m),O=(0,He.useRef)(null),g=(0,He.useMemo)(()=>xt(Wt(r?.group?.relativeTransform,t.relativeTransform)),[r?.group?.relativeTransform,t.relativeTransform]),I=(0,He.useMemo)(()=>Ir(t,n),[t,n]),{renderOptions:S}=p,{disableConstraintsBasedSizing:A,metronomeEnabled:R}=S,y=(0,He.useCallback)(P=>{if(il(g,S))return;let z=P.width,Ee=P.height;if(!A&&Ir(t,n)){let{width:pe,height:ye,transform:Le}=y_(z,Ee,g,t.size,t.absoluteBoundingBox,p.renderOptions);Ae(O.current!==null,"TransformWrapperStatic innerRef not set when setting outer size"),O.current.style.setProperty("width",`${pe}px`),O.current.style.setProperty("height",`${ye}px`),O.current.style.setProperty("transform",Le instanceof Q?Le.value:Le)}else O.current?.style.removeProperty("width"),O.current?.style.removeProperty("height"),O.current?.style.removeProperty("transform")},[t,g,n,A,S,p.renderOptions]),b=(0,He.useCallback)(P=>{if(Ae(m.current!==null,"TransformWrapperStatic outerRef not set when setting inner size"),I||!uc(g))return;let z=parseFloat(m.current.style.getPropertyValue(Ps)),Ee=parseFloat(m.current.style.getPropertyValue(Ds));Ve(z,P.width,1e-4)||(m.current.style.setProperty(Ps,`${P.width}`),c?.current?.style.setProperty(Ps,`${P.width}`)),Ve(Ee,P.height,1e-4)||(m.current.style.setProperty(Ds,`${P.height}`),c?.current?.style.setProperty(Ds,`${P.height}`))},[m,I,g,c]);tO(m,y),tO(O,b),(0,He.useLayoutEffect)(()=>{m.current&&y({width:m.current.clientWidth,height:m.current.clientHeight}),O.current&&b({width:O.current.clientWidth,height:O.current.clientHeight})},[]),(0,He.useLayoutEffect)(()=>{if(m.current){let P=m.current.getBoundingClientRect(),z=P.width,Ee=P.height;y({width:z,height:Ee})}},[t.id]);let L=Oh({children:o,keyframeMotionPropsOverride:d,nodeId:t.id,outerTransform:i.transform,renderMotionProps:!0,renderOptions:S,websiteContext:p}),{inner:D,outer:F}=Sh({outerStyles:i,childWrapperStyles:s,keyframeAlignmentOverride:Ih(t,g,R),preserve3d:S.transform3dEnabled&&sl(t)}),H=on(a),{motionTransitionProps:N}=cD(l??ee.NONE,a,H),K=Ai(l??ee.NONE,a,i.transform),M=!!l&&l!==ee.NONE||L.elementMotionProps!=null;return p.renderElement({Tag:M?er[f]:f,nodeId:T,idSuffix:"transform-wrapper-outer",ref:E,styleSet:F,attributes:{...M?{...N,...K,...L.elementMotionProps}:{},...L.dataMotionProps},children:p.renderElement({Tag:"div",nodeId:T,idSuffix:"transform-wrapper-inner",ref:O,styleSet:D,children:Ne(L.children,p)})})}),y9=He.default.forwardRef(function({node:t,parent:n,context:r,children:o,outerStyles:i,childWrapperStyles:s,transitionData:a,previousRotation:l,transformRef:u,codeBehaviorWrapperRef:c,tag:d,websiteContext:f},p){let{metronomeEnabled:_}
8793=f.renderOptions,T=t.id,h=(0,He.useRef)(null),m=u||h,E=ei(p,m),O=(0,He.useRef)(null),g=(0,He.useRef)(!1),I=(0,He.useRef)(!1),S=g.current&&I.current,[A,R]=(0,He.useState)(void 0),[y,b]=(0,He.useState)(void 0),L=Ir(t,n),D=(0,He.useCallback)(ae=>{let Oe=ae.width,oe=ae.height;if(g.current=!0,L){let ft=xt(Wt(r?.group?.relativeTransform,t.relativeTransform)),{width:et,height:he,transform:ke}=y_(Oe,oe,ft,t.size,t.absoluteBoundingBox,f.renderOptions,!0,l);Ae(O.current!==null,"TransformWrapperAnimate innerRef not set when setting outer size"),R({width:et,height:he,transform:ke})}else R(void 0)},[t,r?.group?.relativeTransform,L,l,f.renderOptions]),F=(0,He.useCallback)(ae=>{I.current=!0,(!y||!Ve(y.width,ae.width,1e-4)||!Ve(y.height,ae.height,1e-4))&&(b({width:ae.width,height:ae.height}),c?.current?.style.setProperty(Ps,`${ae.width}`),c?.current?.style.setProperty(Ds,`${ae.height}`))},[y,c]);tO(m,D),tO(O,F),(0,He.useLayoutEffect)(()=>{if(m.current){let ae=m.current.getBoundingClientRect(),Oe=ae.width,oe=ae.height;y&&!(Ve(Oe,y?.width??0,1e-4)&&Ve(oe,y?.height??0,1e-4))&&D({width:Oe,height:oe})}},[t.id]);let{transform:H,...N}=s,K=A?{width:A.width,height:A.height}:void 0;if(!A?.transform&&!H){let ae=yR(l.current,0);l.current=l.current+ae}let C=`rotate(${l.current}deg) skewX(0deg) skewY(0deg) scaleX(1) scaleY(1)`,M;L?M=A?.transform??H??C:M=H??A?.transform??C;let P=M instanceof Q?M.value:M,z=(0,He.useMemo)(()=>xt(Wt(r?.group?.relativeTransform,t.relativeTransform)),[r?.group?.relativeTransform,t.relativeTransform]),{inner:Ee,outer:pe}=Sh({outerStyles:i,childWrapperStyles:N,innerState:K,keyframeAlignmentOverride:Ih(t,z,_),preserve3d:f.renderOptions.transform3dEnabled&&sl(t)}),ye={[Ps]:y?.width??0,[Ds]:y?.height??0},Le=on(a),{motionTransitionProps:We}=uD(ye,S,a,S?Le:void 0),De=Ai(ee.INSTANCE_SUBTREE,a,i.transform);return f.renderElement({Tag:er[d],nodeId:T,idSuffix:"transform-wrapper-outer",ref:E,styleSet:pe,attributes:{...We,...De},children:f.renderElement({Tag:er.div,nodeId:T,idSuffix:"transform-wrapper-inner",styleSet:Ee,ref:O,attributes:{layout:!0,layoutDependency:a?.id??lS,transition:a?{duration:a.durationSeconds,...a.motionAnimationData}:{duration:0},initial:{transform:P},animate:{transform:P},onAnimationComplete:S?Le:void 0,onLayoutAnimationComplete:S?Le:void 0,transformTemplate:(ae,Oe)=>ae&&ae.transform?`${Oe} ${ae.transform}`:Oe},children:Ne(o,f)})})});function sV({ref:e,...t}){return t.canAnimate?(0,wN.jsx)(y9,{ref:e,...t}):(0,wN.jsx)(N9,{ref:e,...t})}var BN={renderTransformWrapperLive:sV,renderMarquee:rV,renderCodeBehaviorWrapper:tV,renderRenderHooksConsumer:iV,renderClientOnly:xB,renderAnimatePresence:QU};function b9(e,t){let n=D9(t.websiteData.fonts,t.getFontURL,e),r=zD(n,t);return{fontFaces:n,styleElId:r}}function aV(){let e=fe(),t=Re(e.websiteData.sourceCodeHash),{fontFaces:n,styleElId:r}=b9(!!t,e);XD(n,r)}function L9(e,t,n){let r=new Map,o=e.split(":")[1],i=Xh(t.variationAxes,o);if(t.subsets){let s=t.subsets.baseUrl;if(r.set(e,t.subsets.subsetMappings.sort((a,l)=>a.unicodeRange==="*"?-1:0).map(a=>sa({family:e,style:t.italic?"italic":"normal",url:s+a.file,unicodeRange:a.unicodeRange})).join(` 8794`)),n){let a=e.split(":"),l=a[0],u=a.length>1?a[1]:"normal";r.set(l,t.subsets.subsetMappings.sort((c,d)=>c.unicodeRange==="*"?-1:0).map(c=>sa({family:l,style:u,url:s+c.file,unicodeRange:c.unicodeRange,weight:i})).join(` 8795`))}}else if(r.set(e,sa({family:e,style:t.italic?"italic":"normal",url:t.url})),n){let s=e.split(":"),a=s[0],l=s.length>1?s[1]:"normal";r.set(a,sa({family:a,style:l,url:t.url,weight:i}))}return r}function C9(e,t,n,r){let o=new Map,i=t.url?n(t.url,"CUSTOM"):void 0,s=e.split(":")[1],a=Xh(t.variationAxes,s);if(o.set(e,sa({family:e,style:t.italic?"italic":"normal",url:i})),r){let l=e.split(":"),u=l[0],c=l.length>1?l[1]:"normal";o.set(u,sa({family:u,style:c,url:i,weight:a}))}return o}function P9(e,t,n,r){return t?t.source===1?L9(e,t,r):C9(e,t,n,r):new Map}function D9(e,t,n){let r=Array.from(e.map).reduce((o,[i,s])=>new Map([...o,...P9(i,s,t,n)]),new Map);return Ns([...r.values()].join(` 8796`))}function lV(e){return ir.default.useMemo(()=>e.optimizeForTailwindConversion?t=>sP(t,e):({key:t,ref:n,...r})=>(0,Qe.jsx)(JU,{elementRef:n,...r},t),[e])}function v9({rootMaterializedNodes:e,history:t,websiteData:n,cmsBundleData:r,getAssetURL:o,getFontURL:i,getVideoURL:s,getCodeComponentURL:a,env:l,currentLocation:u,setLocation:c,preloadLocation:d,onPageRendered:f,onReactError:p,renderOptions:_,addHeadTag:T,addBodyScript:h,loadComponentsOverNetwork:m,wasServerRendered:E=!1,withBaseStyles:O=!0,isFigmake:g,enableMetaTags:I,atomStore:S,globalVariableState:A,inheritedVariantPropertiesCache:R,processedNodesCache:y,computedVariantCache:b}){let L=lV(_),F=Re(n.siteSettings,{store:S})?.cookieBanner,[H,N]=(0,ir.useState)(!1);B9(E);let C=l==="published"&&g&&window.self===window.top?JB:jU;return(0,Qe.jsx)(vD,{reportError:p,children:(0,Qe.jsx)(na,{name:"root-error-boundary",nodeId:"root",children:(0,Qe.jsx)(IS,{websiteData:n,cmsBundleData:r,history:t,getAssetURL:o,getFontURL:i,getVideoURL:s,getCodeComponentURL:a,env:l,setLocation:c,preloadLocation:d,renderOptions:_,renderElement:L,renderFragment:kN,withBaseStyles:O,addHeadTag:T,addBodyScript:h,loadComponentsOverNetwork:m,isFigmake:g,enableMetaTags:I,atomStore:S,globalVariableState:A,inheritedVariantPropertiesCache:R,processedNodesCache:y,computedVariantCache:b,sitesRenderers:BN,children:(0,Qe.jsx)(dd.Provider,{value:{enabled:F?.enabled,openSettings:()=>N(!0)},children:(0,Qe.jsxs)(C,{children:[(0,Qe.jsx)(G9,{rootMaterializedNodes:e}),F?.enabled&&(0,Qe.jsx)(PN,{...F,guidToUrl:n.guidToUrl,setLocation:c,reportError:p,isManaging:H,setIsManaging:N}),(0,Qe.jsx)(x9,{currentLocation:u,onPageRendered:f})]})})})})})}function x9({currentLocation:e,onPageRendered:t}){let n=Re(DE);return(0,ir.useEffect)(()=>{window.scrollTo(0,e?.scrollY??0)},[e?.scrollY,e?.url]),(0,ir.useEffect)(()=>{t&&e?.url&&t(e.url,n)},[e?.url,t,n]),fP(),null}function nO(e){let t=document.createRange().createContextualFragment(e);
8796return Array.from(t.children).forEach(r=>r.setAttribute("data-user-element","true")),t}function M9(e){let t=fe()?.websiteData.siteSettings??de(),n=Re(t),r=n?.customCodeHeadStart,o=n?.customCodeHeadEnd,i=n?.customCodeBodyStart,s=n?.customCodeBodyEnd;(0,ir.useInsertionEffect)(()=>{if(e==="preview")return r&&document.head.prepend(nO(r)),o&&document.head.append(nO(o)),i&&document.body.prepend(nO(i)),s&&document.body.append(nO(s)),()=>{document.querySelectorAll("[data-user-element]").forEach(l=>l.remove())}},[e,r,o,i,s])}function k9(){let t=Re(fe().websiteData.siteSettings)?.addBypassLinks,n=(0,ir.useCallback)(i=>{i.stopPropagation(),i.preventDefault();let s=document.querySelector("main");s&&s.focus()},[]),r=(0,ir.useCallback)(i=>{i.key==="Enter"&&n(i)},[n]),o=(0,ir.useCallback)(i=>{n(i)},[n]);return t?(0,Qe.jsx)("div",{className:"bypass-link",children:(0,Qe.jsx)("a",{role:"link",onKeyDown:r,onClick:o,tabIndex:0,children:"Skip to main content"})}):null}function uV(e){let t=Re(e.rootMaterializedNodePropsArrayAtom,{store:e.atomStore}),n=Re(e.renderOptionsAtom,{store:e.atomStore}),r=Re(e.cmsBundleDataAtom,{store:e.atomStore}),o=Re(e.currentLocationAtom,{store:e.atomStore}),i=kh(s=>t.map(a=>Za(s,a,{env:e.env,isFigmake:e.isFigmake,renderOptions:n,websiteData:e.websiteData,setLocation:e.setLocation,history:e.history,atomStore:e.atomStore,globalVariableState:e.globalVariableState,inheritedVariantPropertiesCache:e.inheritedVariantPropertiesCache,processedNodesCache:e.processedNodesCache,computedVariantCache:e.computedVariantCache})),[t,e.env,n],{store:e.atomStore});return(0,Qe.jsx)(v9,{...e,cmsBundleData:r,currentLocation:o,renderOptions:n,rootMaterializedNodes:i})}function G9({rootMaterializedNodes:e}){let t=fe(),{env:n,withBaseStyles:r}=t,o=Wf();return l1(),aV(),M9(n),e.length>0?(0,Qe.jsxs)(GR,{reducedMotion:o?"never":"user",children:[(0,Qe.jsx)(FN,{withBaseStyles:r}),(0,Qe.jsx)(GN,{}),(0,Qe.jsx)($D,{}),(0,Qe.jsx)(k9,{},`bypass-${e[0]?.id}`),e.map(i=>(0,Qe.jsx)(Hi,{node:i,parent:null,websiteContext:t},`${i.id}`))]}):null}var F9=()=>{};function UN({websiteData:e,cmsBundleData:t,history:n,getAssetURL:r,getFontURL:o,getVideoURL:i,getCodeComponentURL:s,env:a,setLocation:l,withBaseStyles:u=!0,addHeadTag:c,addBodyScript:d,loadComponentsOverNetwork:f=!1,isFigmake:p=!1,enableMetaTags:_=!1,renderOptions:T,children:h,atomStore:m,globalVariableState:E,inheritedVariantPropertiesCache:O,processedNodesCache:g,computedVariantCache:I}){let S=lV(T);return(0,Qe.jsx)(IS,{websiteData:e,cmsBundleData:t,history:n,getAssetURL:r,getFontURL:o,getVideoURL:i,getCodeComponentURL:s,env:a,setLocation:l,preloadLocation:F9,renderOptions:T,renderElement:S,renderFragment:kN,withBaseStyles:u,addHeadTag:c,addBodyScript:d,loadComponentsOverNetwork:f,isFigmake:p,enableMetaTags:_,atomStore:m,globalVariableState:E,inheritedVariantPropertiesCache:O,processedNodesCache:g,computedVariantCache:I,sitesRenderers:BN,children:(0,Qe.jsxs)(Qe.Fragment,{children:[(0,Qe.jsx)(FN,{withBaseStyles:u,prepend:!0}),(0,Qe.jsx)(GN,{}),h]})})}var w9="[Hydrated]";function B9(e){(0,ir.useEffect)(()=>{e&&console.log(w9)},[e])}function U9({websiteData:e,cmsBundleData:t,atomStore:n,globalVariableState:r,url:o,get:i}){let s=bE(i,e,o);if(!s||s.length===0)throw new ht(`Not found: ${o}`);return s.map(a=>{let l=a.id;return{key:l,nodeById:e.nodeById,assets:e.assets,assetIdToGuid:e.assetIdToGuid,guidToUrl:e.guidToUrl,animateRootIds:e.animateRootIds,stablePathToAssetInfo:e.stablePathToAssetInfo,stablePathToConstraints:e.stablePathToConstraints,nodeId:l,preexpandedNodeId:l,stablePathPrefix:a.type==="INSTANCE"?nc(l):void 0,modeContext:{},parentStates:null,parentState:No.createRoot(t,n,r)}})}function cV({websiteData:e,cmsBundleDataAtom:t,atomStore:n,globalVariableState:r,getUrl:o,onResolved:i}){return de(s=>{let a=o(s);return a==null?[]:(i?.(),U9({websiteData:e,cmsBundleData:s(t),atomStore:n,globalVariableState:r,url:a,get:s}))})}function dV(){let e={},t={},n=[],r=[],o=[],i;return{classNamesToStyles:e,globalStyleSheets:t,linkTags:n,metaTags:r,bodyScripts:o,getTitle:()=>i,addHeadTag:s=>{s.type==="class-style"?e[s.className]={cssProperties:s.cssProperties,classNameSourceStr:s.classNameSourceStr}:s.type==="global-style"?t[s.styleElId]=s.styleSheet:s.type==="link"?n.push(s):s.type==="meta"?r.push(s):s.type==="title"&&(i=s.title)},addBodyScript:s=>{o.push(s)}}}function VN(e={}){let{isDesignToReact:t=!1,isMcp:n=!1,shouldOutputVariables:r=!1,dashSeparatedVariableNames:o=!1,codeSyntaxLanguage:i,rootNodeStyle:s,useFigmaComponents:a=!0}=e,l=!!t;return{includeDataName:l,disableDataAttributes:l,shouldOutputCustomEffects:e.shouldOutputCustomEffects??!1,disableBehaviors:l,disableMarquee:l,disableCodeBehaviors:l,preferCssGradients:l,useFigmaClipContentsForOverflow:l,disableTextMarkerVariables:l,disableHighSpecificityContainer:l,disableConstraintsBasedSizing:l,renderHiddenRootNodes:l,renderComponentSetNodes:l,disableImageOptimization:l,disableVariableErrors:l,optimizeForTailwindConversion:l,disableInlineSvgGeneration:l,disableAdjustLetterSpacing:l,disableClientOnlyComponents:l,enableGroupKeyframeAnimations:e.enableGroupKeyframeAnimations??!1,metronomeEnabled:e.metronomeEnabled??!1,transform3dEnabled:e.transform3dEnabled??!1,emitMotionDataForCodegen:l,assignNodeIdToOutermostWrapper:l,useCssRotationConstraints:l,rootNodeStyle:s??(l?"independent":void 0),useFigmaComponents:l&&a,minimizeAutoLayoutWrappers:n,dontUseChildDivForBorderStyles:n,shouldOutputVariables:n||r,dashSeparatedVariableNames:o,disableFontFallbacks:n,codeSyntaxLanguage:i??void 0,previewingCodeBehavior:e.previewingCodeBehavior??!1,testFlags:e.testFlags,enforceLayoutInvariants:e.enforceLayoutInvariants??!1,textCodepointSubstitution:e.textCodepointSubstitution}}var yp=class{static parseModeId(t){let n=t.split("/");if(n.length<2)return null;if(n.length===3){let r=n.slice(0,2).join("/"),o=n[2];return o?{collectionId:r,modeGuid:o}:null}if(n.length===2){let r=n[0],o=n[1];return!r||!o?null:{collectionId:r,modeGuid:o}}return null}};function V9(e){let t=e.indexOf("/");return t===-1?e:e.substring(0,t)}var HN=class{variableOverrideCache=new Map;createCacheKey(t,n,r){return`${t}:${n}:${r}`}findVariableOrOverrideId(t,n,r,o){let i=o.getAssetGuid(n),s=o.nodeById.get(i,o.disableVariableErrors);if(s?.type!=="VARIABLE")return null;let a=o.getCollectionInfo(s.variableCollectionId);if(!a)return null;let l=a.baseCollectionId||s.variableCollectionId,u=r[l],c=u&&yp.parseModeId(u);if(!c)return null;let d=this.createCacheKey(l,c.modeGuid,n),f=this.variableOverrideCache.get(d);if(f!==void 0)return r[f.resolvedCollectionId]=`${f.resolvedCollectionId}/${f.resolvedModeGuid}`,f.resultId===n?null:f.resultId;let p=this.findVariableOverrideInCollectionHierarchy(t,n,c.collectionId,c.modeGuid,o),_=p?.overrideId||n;return this.variableOverrideCache.set(d,{resultId:_,resolvedCollectionId:p?.resolvedCollectionId,resolvedModeGuid:p?.resolvedModeGuid}),p?(r[p.resolvedCollectionId]=`${p.resolvedCollectionId}/${p.resolvedModeGuid}`,p.overrideId):null}findVariableOverrideInCollectionHierarchy(t,n,r,o,i){let s=i.getAssetGuid(r),a=i.nodeById.get(s,i.disableVariableErrors);if(!a||a.type!=="VARIABLE_COLLECTION")return null;let l=a.relatedVariableIds?.[n];if(l){let u=i.getAssetGuid(l),c=i.nodeById.get(u,i.disableVariableErrors);
8796if(c?.type==="VARIABLE"&&c.valuesByMode?.[o]!==void 0)return{overrideId:l,resolvedCollectionId:r,resolvedModeGuid:o}}if(a.parentVariableCollectionId){let u=this.getParentModeInfo(a,o);if(u){let{parentCollectionId:c,parentModeId:d}=u;return this.findVariableOverrideInCollectionHierarchy(t,n,c,d,i)}}return null}getParentModeInfo(t,n){if(!t.modes)return null;let r=t.modes.find(o=>o.modeId.endsWith(`/${n}`));if(!r||!r.parentModeId)return null;if(r.parentModeId.includes("/")){let o=yp.parseModeId(r.parentModeId);if(o)return{parentCollectionId:t.parentVariableCollectionId,parentModeId:o.modeGuid}}else return{parentCollectionId:t.parentVariableCollectionId,parentModeId:r.parentModeId};return null}},rO=class{nodeById;assetIdToGuid;atomStore;disableVariableErrors;map=new Map;assetIdToAssetKeyCache=new Map;hierarchyResolver=new HN;constructor(t,n,r,o){this.nodeById=t,this.assetIdToGuid=n,this.atomStore=r,this.disableVariableErrors=o}setVariable(t,n,r){let o=this.getVariable(t);o&&o.value.setModeValue(n,r)}evaluateVariable(t,n,r){let o=this.hierarchyResolver.findVariableOrOverrideId(t,n,r,this)||n,i=this.getVariable(o);if(!i)return null;let s=i.value,a=t(s.getModeValue(r));return To({get:t,variableState:this,modeContext:r},a)}getVariableCodeSyntax(t){let n=this.getVariable(t);return n?n.value.codeSyntax:{}}getVariableName(t){let n=this.getVariable(t);return n?n.value.name:void 0}getVariable(t){let n=this.getAssetGuid(t),r=this.nodeById.get(n,this.disableVariableErrors);if(!r||r.type!=="VARIABLE")return null;let o=this.map.get(r.id);if(o)return o;let i=new WN(r,this,this.nodeById,this.atomStore);return this.map.set(r.id,i),i}getVariableType(t,n,r){let o=this.evaluateVariable(n,t,r);return o===null?null:iS(o)}getAssetKeyOrLocalGuid(t){this.assetIdToAssetKeyCache.has(t)||this.assetIdToAssetKeyCache.set(t,V9(t));let n=this.assetIdToAssetKeyCache.get(t);return Ae(n!==void 0,"assetKey is undefined"),n}getAssetGuid(t){return this.assetIdToGuid.get(t,this.disableVariableErrors)||t}hasAssetId(t){return this.assetIdToGuid.get(t,!0)!==void 0}getCollectionInfo(t){try{let n=this.getAssetGuid(t),r=this.nodeById.get(n,this.disableVariableErrors);return!r||r.type!=="VARIABLE_COLLECTION"?null:r}catch{return null}}},WN=class{atomStore;value;modeAtoms=new Map;constructor(t,n,r,o){this.atomStore=o;let i=r.get(n.getAssetGuid(t.variableCollectionId),n.disableVariableErrors),s=n.getAssetKeyOrLocalGuid(t.variableCollectionId),a=c=>{let d=t.variableCollectionId,f=c?.[d]??c?.[s];f||(f=i.defaultModeId);let _=yp.parseModeId(f)?.modeGuid||f,T=this.modeAtoms.get(f);return T||(T=new H9(t,_,this.atomStore),this.modeAtoms.set(f,T)),T},l=c=>a(c).atom,u=(c,d)=>a(d).setValue(c);this.value={name:t.name,codeSyntax:t.codeSyntax??{},getModeValue:l,setModeValue:u}}},H9=class{atomStore;valueAtom=de(void 0);atom;constructor(t,n,r){this.atomStore=r,this.atom=de(o=>{let i=t.valuesByMode[n];return o(this.valueAtom)??i})}setValue(t){this.atomStore.set(this.valueAtom,t)}};var oO=class{capacity;leakRate;currentVolume;lastTimestamp;constructor(t,n){this.capacity=t,this.leakRate=n,this.currentVolume=0,this.lastTimestamp=Date.now()}leak(){let t=Date.now(),r=(t-this.lastTimestamp)*this.leakRate;this.currentVolume=Math.max(0,this.currentVolume-r),this.lastTimestamp=t}tryAdd(t=1){return this.leak(),this.currentVolume+t<=this.capacity?(this.currentVolume+=t,!0):!1}};function fV(e){return(t,{width:n,height:r}={})=>{if(!e)return t;let o=new URLSearchParams;n&&o.set("w",n.toString()),r&&o.set("h",r.toString());let i=o.size>0?`?${o.toString()}`:"";return`/_assets/${e}/${t}${i}`}}function pV(e){return(t,n)=>n==="CUSTOM"?`/_user_fonts/${e||"v1"}/${t}`:t}function mV({env:e,videosVersion:t}){return(n,r)=>e==="preview"?n:`/_videos/${t||"v1"}/${r}`}function EV({codeComponentsVersion:e,atomStore:t,websiteData:n}){return()=>{if(e){let i=t.get(n.sourceCodeHash);return i?`/_components/${e}/${i}.js`:(console.warn("Source code hash not found"),"")}let r="data:text/javascript;charset=utf-8,",o=n.compiledCode;return o==null?(console.warn("Compiled code not found"),r):r+encodeURIComponent(t.get(o)??"")}}function W9(e,t,n){let r=Y9(e,t,n);return _V(r,n)}function Y9(e,t,n){let{atomStore:r,globalVariableState:o}=n,i=vE();xE(i,Af(e),r);let s=bE(r.get,i,t)[0];if(!s)throw new ht(`Not found: ${t}`);let a=s.id;return{key:"root",nodeById:i.nodeById,assets:i.assets,nodeId:a,preexpandedNodeId:a,parentStates:null,modeContext:{},parentState:No.createRoot(null,r,o),animateRootIds:new Set,stablePathToAssetInfo:i.stablePathToAssetInfo,stablePathToConstraints:i.stablePathToConstraints,assetIdToGuid:i.assetIdToGuid,guidToUrl:i.guidToUrl}}function _V(e,t){try{let n=Za(t.atomStore.get,e,t),r=n.visible?n.materializedChildNodeProps?.map(i=>_V(i,t)):void 0,o=1;if(r)for(let i of r)o+=i.nodesInSubtree;return delete n.interactionHandlers,delete n.materializedChildNodeProps,delete n.transitionProps,delete n.variableState,delete n.modeContext,structuredClone(n),{node:n,children:r,nodesInSubtree:o}}catch(n){return console.log("Materialization error",n),{node:{type:"ERROR",name:n.message},nodesInSubtree:1}}}var K9="[Hydration Error]",z9=["hydrat","Minified React error #418","Minified React error #423","Minified React error #424","Minified React error #425"],TV=class{root;container;websiteData;atomStore;cmsBundleDataAtom;env;pendingLocationAtom;currentLocationAtom;getPage;getAssetURL;getVideoURL;getFontURL;history;onWindowResize=null;rootMaterializedNodePropsArrayAtom;materializedRenderOptionsAtom;bundleId;loadComponentsOverNetwork;headTagCollector=dV();withBaseStyles;isFigmake;enableMetaTags;onPageRendered;onReactError;onLocationChange;needsHydration=!1;_resolveRootsRuntimeAtomForTests=void 0;_rootsRuntimeAtomForTestsPromise=void 0;getPagePreloadCache=new Map;materializedRenderOptions;globalVariableState;inheritedVariantPropertiesCache=new Map;processedNodesCache=new Set;computedVariantCache=new Map;constructor({container:t,env:n,loadComponentsOverNetwork:r=!1,history:o,getAssetURL:i=void 0,getFontURL:s=void 0,getVideoURL:a=void 0,getPage:l=void 0,onPageRendered:u,onReactError:c=Ka,onLocationChange:d,sendMessage:f=nD,codeComponentsVersion:p,assetsVersion:_,fontsVersion:T,videosVersion:h,bundleId:m,renderOptions:E={},withBaseStyles:O=!0,reportingDomain:g,userId:I,analyticsHeaders:S,bundleCreationDate:A,isFigmake:R,enableMetaTags:y}){if(n==="server")throw new te('SitesRuntime does not support env: "server". Use `renderPageAsString` instead.');this.container=t,this.bundleId=m,this.env=n,this.withBaseStyles=O,this.atomStore=cf(),this.pendingLocationAtom=de(null),this.currentLocationAtom=de(null),this.getPage=l??this.defaultGetPage,this.getAssetURL=i||fV(_),this.getFontURL=s||pV(T),this.getVideoURL=a||mV({env:n,videosVersion:h}),PD(f),o||(o=new X9(L=>this.setLocation(L,!0))),this.websiteData=vE(),this.cmsBundleDataAtom=de(null),this.history=o,this.loadComponentsOverNetwork=r,this.needsHydration=this.isPublished(),this.isFigmake=!!R,this.enableMetaTags=!!y,this.onPageRendered=u,this.onReactError=c,this.onLocationChange=d,Me.init({env:n,reportingDomain:g||"",rateLimiter:new oO(100,1/1e3),analyticsHeaders:S,userId:I,bundleId:m,bundleCreationDate:A}),this.materializedRenderOptions=VN(E),this.materializedRenderOptionsAtom=de(this.materializedRenderOptions),this.globalVariableState=new rO(this.websiteData.nodeById,this.websiteData.assetIdToGuid,this.atomStore,this.materializedRenderOptions.disableVariableErrors),this.rootMaterializedNodePropsArrayAtom=cV({websiteData:this.websiteData,cmsBundleDataAtom:this.cmsBundleDataAtom,atomStore:this.atomStore,globalVariableState:this.globalVariableState,getUrl:L=>L(this.currentLocationAtom)?.url,onResolved:()=>this._resolveRootsRuntimeAtomForTests?.()}),this.getCodeComponentURL=EV({codeComponentsVersion:p,atomStore:this.atomStore,websiteData:this.websiteData}),this.onWindowResize=()=>{this.atomStore.set(DE,{width:window.innerWidth,height:window.innerHeight})},this.onWindowResize(),window.addEventListener("resize",this.onWindowResize);let b=(L,D,F,H,N)=>{N&&Me.reportError(N)};if(window.addEventListener("error",b),this.isPreview()){if(!t)throw new te("Container is required in order to render the site.");this.root=(0,sO.createRoot)(t),this.root.render(this.createWebsiteElement())}}isPreview(){return this.env==="preview"}isPublished(){return this.env==="published"}createWebsiteElement(){return(0,iO.createElement)(uV,{...this.websiteContextForMaterialization,cmsBundleDataAtom:this.cmsBundleDataAtom,rootMaterializedNodePropsArrayAtom:this.rootMaterializedNodePropsArrayAtom,getAssetURL:this.getAssetURL,getFontURL:this.getFontURL,getVideoURL:this.getVideoURL,getCodeComponentURL:this.getCodeComponentURL,withBaseStyles:this.withBaseStyles,currentLocationAtom:this.currentLocationAtom,preloadLocation:t=>{this.preloadLocation(t)},onPageRendered:this.onPageRendered,onReactError:this.handleReactError,renderOptionsAtom:this.materializedRenderOptionsAtom,atomStore:this.atomStore,addHeadTag:this.headTagCollector.addHeadTag,addBodyScript:this.headTagCollector.addBodyScript,loadComponentsOverNetwork:this.loadComponentsOverNetwork,wasServerRendered:this.isPublished(),enableMetaTags:this.enableMetaTags})}defaultGetPage=async t=>{let n=t==="/"?"/_index":t,r=`/_json/${this.bundleId}${n}.json`,o=`/_json/${this.bundleId}/_cms${n}.json`,i=fetch(r,{method:"GET",credentials:"include",mode:"no-cors"}),s=new AbortController,a=this.isFigmake?Promise.resolve(null):fetch(o,{method:"GET",credentials:"include",mode:"no-cors",signal:s.signal}).catch(()=>null),l=await i;if(l.status===401&&l.headers.get("x-figma-needs-reauth"))throw console.log("Re-authentication required; navigating to",t),window.location.href=t,new ht("Authentication required");let u=await l.json(),c=!1;if(u.nodeById)for(let f in u.nodeById){let p=u.nodeById[f];if(p&&(p.cmsCollectionBindingProperties||p.cmsItemFieldBindingProperties)){c=!0;break}}let d=null;if(c){let f=await a;if(f&&f.ok)try{d=await f.json()}catch(p){Me.reportError(new ht("Error parsing CMS resource",p)),console.error(p)}else Me.reportError(new ht(`CMS resource expected but failed to load: ${o}`)),console.error(`CMS resource expected but failed to load: ${o}`)}else s.abort();return{resource:u,cmsResource:d}};preloadLocation(t){let n=this.getPagePreloadCache.get(t);return n||(n=this.getPage(t),this.getPagePreloadCache.set(t,n)),n}setLocation(t,n){t.url!==""&&(this.atomStore.set(this.pendingLocationAtom,t),this.preloadLocation(t.url).then(({resource:r,cmsResource:o})=>{if(this.websiteData.nodeById.map.clear(),xE(this.websiteData,Af(r),this.atomStore),o){let i=ZP(o),s=FD();wD(s,i),this.atomStore.set(this.cmsBundleDataAtom,s)}n||this.history.push(t),this.atomStore.set(this.currentLocationAtom,t),this.onLocationChange?.(this),this.needsHydration&&(this.needsHydration=!1,this.hydrate())}).catch(r=>{let o=r instanceof Error;if(o){let i=r.message;if(i===FI||i===wI)return}throw o?r:new Error("Error setting location "+String(r))}).finally(()=>{this.getPagePreloadCache.delete(t.url)}))}getCodeComponentURL;createSnapshotWrapper(t){return(0,iO.createElement)(UN,{...this.websiteContextForMaterialization,cmsBundleData:this.atomStore.get(this.cmsBundleDataAtom),getAssetURL:this.getAssetURL,getFontURL:this.getFontURL,getVideoURL:this.getVideoURL,getCodeComponentURL:this.getCodeComponentURL,setLocation:()=>{},addHeadTag:()=>{},addBodyScript:()=>{},loadComponentsOverNetwork:this.loadComponentsOverNetwork,withBaseStyles:this.withBaseStyles,enableMetaTags:this.enableMetaTags},t)}get websiteContextForMaterialization(){return{env:this.env,isFigmake:this.isFigmake,renderOptions:this.materializedRenderOptions,websiteData:this.websiteData,setLocation:t=>this.setLocation(t,!1),history:this.history,atomStore:this.atomStore,globalVariableState:this.globalVariableState,inheritedVariantPropertiesCache:this.inheritedVariantPropertiesCache,processedNodesCache:this.processedNodesCache,computedVariantCache:this.computedVariantCache}}createLayerElement({guid:t,renderedByCode:n}){this.atomStore.set(this.currentLocationAtom,{url:"/"});let r=this.websiteData.nodeById.get(t),o=this.atomStore.get(this.rootMaterializedNodePropsArrayAtom),i;o&&(i=o[0]);let s=this.atomStore.get($u);if(!i||!r)return null;i.nodeId=t,i.preexpandedNodeId=t,i.breakpointWidth=s;let a=Za(this.atomStore.get,i,this.websiteContextForMaterialization);return function(u){let c=u?Object.fromEntries(Object.entries(u).filter(([p])=>p.startsWith("data-"))):{},d={renderedByCode:n,style:u?.style,className:u?.className,dataAttributes:c},f=fe();return f?(0,iO.createElement)(Hi,{node:a,parent:null,context:d,websiteContext:f}):null}}refresh(){window.location.reload()}pushAssetData(t){RS(this.websiteData,$P(t),this.atomStore)}unmount(){this.onWindowResize&&window.removeEventListener("resize",this.onWindowResize),setTimeout(()=>{this.root?.unmount()})}hydrate(){this.isPublished(),Ae(!!this.container,"Container must be provided in order to hydrate the site."),this.isFigmake||wU(),(0,sO.hydrateRoot)(this.container,this.createWebsiteElement(),{onRecoverableError:(t,n)=>{let r=t.message.toLocaleLowerCase(),o=!1;for(let i of z9)if(r.includes(i.toLocaleLowerCase())){o=!0;break}o?console.error(K9,t,t.cause??"",n.componentStack):console.error(t,n.componentStack)}})}toggleDebugTools(){this.atomStore.set(Lf,!this.atomStore.get(Lf))}_convertMaterializedNodePropsDataForTest(t){let n=Za(this.atomStore.get,t,this.websiteContextForMaterialization),r=n.materializedChildNodeProps;return delete n.interactionHandlers,delete n.materializedChildNodeProps,delete n.transitionProps,"variableState"in n&&delete n.variableState,"modeContext"in n&&delete n.modeContext,{materializedNode:n,materializedChildNodeProps:r}}async _getSerializedMaterializedNodePropsArrayDataForTests(){this.atomStore.get(this.rootMaterializedNodePropsArrayAtom)||(this._rootsRuntimeAtomForTestsPromise=new Promise(i=>{this._resolveRootsRuntimeAtomForTests=i})),await this._rootsRuntimeAtomForTestsPromise;let t=this.atomStore.get(this.rootMaterializedNodePropsArrayAtom);Ae(!!t&&t.length>0,"Root nodes not found");let n={},r=i=>{let s=this._convertMaterializedNodePropsDataForTest(i);n[s.materializedNode.id]=s.materializedNode,s.materializedChildNodeProps?.forEach(a=>r(a))};return{rootIds:t.map(i=>(r(i),this._convertMaterializedNodePropsDataForTest(i).materializedNode.id)),nodeByGuidMap:n}}listenForTestEvent(t){return new Promise(n=>{let r=o=>{let i=o.detail.name;t===i&&(window.removeEventListener("FigmaTestEvent",r),n(t))};window.addEventListener("FigmaTestEvent",r)})}setRenderOptions(t){let n=VN(t);Object.assign(this.materializedRenderOptions,n),this.atomStore.set(this.materializedRenderOptionsAtom,n)}handleReactError=(t,n={})=>{try{this.onReactError(t,n)}catch{}Me.reportError(t)}},X9=class{onPopState;constructor(t){this.onPopState=t,window.addEventListener("popstate",n=>{let r=n.state;this.onPopState({...this.current,scrollY:r?.scrollY})}),history.replaceState({},"",this.href),t(this.current)}get current(){return{url:window.location.pathname,search:window.location.search}}get href(){let{url:t,search:n}=this.current;return hV(t,n)}push(t){history.replaceState({scrollY:window.scrollY},"",this.href),history.pushState({},"",hV(t.url||"/",t.search||""))}forward(){history.forward()}back(){history.back()}},hV=(e,t)=>e+t;
8796export{id as ActiveBreakpointContext,aN as ActiveBreakpointProvider,Bj as AppearBehaviorPresetTransition,TN as BannerComponentType,Qo as BehaviorPresetEasingFunctions,wj as BehaviorPresetScrollParallaxSpeed,Fj as BehaviorPresetStates,Vw as BehaviorPresetTransition,yt as BehaviorType,gt as BlendMode,LP as CmsRichTextNodeDefaults,GP as CodeComponentNodeDefaults,FP as CodeFileNodeDefaults,MP as CodeInstanceNodeDefaults,kP as CodeLayerNodeDefaults,gP as ComponentNodeDefaults,IP as ComponentSetNodeDefaults,yo as ConsentType,PN as CookieConsentBanner,dd as CookieConsentContext,CJ as CornerRadiusShapeTraitsDefaults,JI as CornerTraitDefaults,T$ as DEFAULT_HISTORY_STATE,EN as DEFAULT_SITE_DESCRIPTION,mN as DEFAULT_SITE_TITLE,gf as DefaultShapeTraitsDefaults,On as EasingType,Je as ExpressionFunction,RJ as FontVariantPosition,AP as FrameNodeDefaults,Ur as FrameTraitsDefaults,yP as GroupNodeDefaults,Of as HasBlendModeAndOpacityTraitDefaults,C3 as HasEffectsTraitDefaults,P3 as HasFramePropertiesTraitDefaults,TE as HasGeometryTraitDefaults,_E as HasLayoutTraitDefaults,TP as HasMaskTraitDefaults,RP as ImageNodeDefaults,CP as InstanceNodeDefaults,LJ as InteractionTraitDefaults,D3 as IsInAnimateTreeTraitDefaults,Lu as IsLayerTraitDefaults,AJ as KeyframeOperation,NJ as KeyframeValueType,_N as LOTTIEFILES_REGEX,Kn as LayoutConstraintHorizontal,Er as LayoutConstraintVertical,Pa as LineTypes,Ww as MARQUEE_PRESET_DEFAULT_PAUSE_ON_HOVER,Vj as MARQUEE_PRESET_DEFAULT_PAUSE_ON_HOVER_VAR,Hw as MARQUEE_PRESET_DEFAULT_SPEED,Uj as MARQUEE_PRESET_DEFAULT_SPEED_VAR,Kh as RESET_STYLES_ID,PP as RectangleNodeDefaults,hP as RectangularShapeTraitsDefaults,Ml as RenderHooksContext,bP as RepeaterNodeDefaults,_P as ResponsiveTraitDefaults,wI as SITES_PREVIEW_GET_PAGE_ERROR_SANDBOX,FI as SITES_PREVIEW_GET_PAGE_ERROR_SNAPSHOT,TV as SitesRuntime,NP as SlotNodeDefaults,ee as SmartAnimateType,Ip as SnapshotContext,UN as SnapshotWebsiteProvider,If as SourceCodeTraitsDefaults,SP as SvgNodeDefaults,EP as TextDecoration,DP as TextNodeDefaults,mo as TransitionOverrideProp,OP as TypePropertiesTraitDefaults,xP as WebpageNodeDefaults,ad as WebsiteSettingsContext,cN as WebsiteSettingsProvider,vP as WidgetNodeDefaults,Gl as XAlignment,Fl as YAlignment,hE as applyDefaultsToPrototype,sa as buildFontFace,V7 as createPropertySetters,Xh as getFontWeight,Fh as getImageProp,W9 as getMaterializedTreeForWebsite,sN as getPropertySetterNameMap,fo as guidToDOMId,Cu as isPaintGradient,HA as makeFramerMotionDefinition,Af as parseBundle,mU as parseFontWeightFromStyleName,tS as parseNode,FJ as parseSchemaData,pN as resetCSS,wE as solidColor}; 8797/*! 8798 Copyright (c) 2018 Jed Watson. 8799 Licensed under the MIT License (MIT), see 8800 http://jedwatson.github.io/classnames 8801*/ 8802/*! 8803 * Bowser - a browser detector 8804 * https://github.com/ded/bowser 8805 * MIT License | (c) Dustin Diaz 2015 8806 */ 8807/** 8808 * @license React 8809 * react-dom.production.min.js 8810 * 8811 * Copyright (c) Facebook, Inc. and its affiliates. 8812 * 8813 * This source code is licensed under the MIT license found in the 8814 * LICENSE file in the root directory of this source tree. 8815 */ 8816/** 8817 * @license React 8818 * react-jsx-dev-runtime.production.min.js 8819 * 8820 * Copyright (c) Facebook, Inc. and its affiliates. 8821 * 8822 * This source code is licensed under the MIT license found in the 8823 * LICENSE file in the root directory of this source tree. 8824 */ 8825/** 8826 * @license React 8827 * react-jsx-runtime.production.min.js 8828 * 8829 * Copyright (c) Facebook, Inc. and its affiliates. 8830 * 8831 * This source code is licensed under the MIT license found in the 8832 * LICENSE file in the root directory of this source tree. 8833 */ 8834/** 8835 * @license React 8836 * react.production.min.js 8837 * 8838 * Copyright (c) Facebook, Inc. and its affiliates. 8839 * 8840 * This source code is licensed under the MIT license found in the 8841 * LICENSE file in the root directory of this source tree. 8842 */ 8843/** 8844 * @license React 8845 * scheduler.production.min.js 8846 * 8847 * Copyright (c) Facebook, Inc. and its affiliates. 8848 * 8849 * This source code is licensed under the MIT license found in the 8850 * LICENSE file in the root directory of this source tree. 8851 */ 8852/** 8853 * @license react-fast-marquee 8854 * 8855 * Adapted from https://github.com/justin-chu/react-fast-marquee/blob/master/src/components/Marquee.tsx 8856 * Copyright (c) 2020 justin-chu 8857 * MIT License 8858 */ 8859/** 8860 * Subset of the Tailwind Preflight CSS styles applied in Sites only, but not in 8861 * Make, as not all Sites will use Tailwind via Code Layers. 8862 * 8863 * TODO(@akern): Further align this so it is an exact subset of the Tailwind 8864 * Preflight CSS, because it isn't yet, and until it is, code layer styles may 8865 * not be applied correctly. 8866 * 8867 * @license Tailwind 8868 * https://github.com/tailwindlabs/tailwindcss/blob/v3.4.17/src/css/preflight.css 8869 * 8870 * Copyright (c) Tailwind Labs, Inc. 8871 * 8872 * Some of the source code in this file comes from the TailwindCSS project, which is licnesed under the MIT license 8873 * https://github.com/tailwindlabs/tailwindcss/blob/main/LICENSE 8874 */ 8875 8876// #version: 1bfe7b596a41cee054bc446f055af3154ce3f489
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.