@yahoo/uds 3.63.0 → 3.64.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. package/cli/FlattenButtonVariant.mock.tsx +17 -0
  2. package/dist/{chunk-BMEYNT3I.cjs → chunk-6THPHJSQ.cjs} +1 -1
  3. package/dist/{chunk-OJ34C7TH.js → chunk-7ODTLDW2.js} +1 -1
  4. package/dist/{chunk-32XAYN5U.js → chunk-7PDRKN2R.js} +1 -1
  5. package/dist/{chunk-IKI4PNSA.cjs → chunk-7YPLUG7X.cjs} +1 -1
  6. package/dist/chunk-A2OJLMOY.js +1 -0
  7. package/dist/chunk-A7OSNZQ4.cjs +1 -0
  8. package/dist/chunk-AZXEQF7C.js +2 -0
  9. package/dist/{chunk-7OQ3WLBH.cjs → chunk-BMP5TZVZ.cjs} +1 -1
  10. package/dist/chunk-BRM6VXBO.cjs +1 -0
  11. package/dist/chunk-C2XEOEF3.js +2 -0
  12. package/dist/{chunk-SJVQD4KS.cjs → chunk-CGHQHGYY.cjs} +1 -1
  13. package/dist/{chunk-MG47FUR3.js → chunk-DFLTCYEQ.js} +1 -1
  14. package/dist/chunk-E2KVZ3FW.cjs +1 -0
  15. package/dist/{chunk-GWJV5I3F.cjs → chunk-EUBXXJNQ.cjs} +1 -1
  16. package/dist/chunk-EUHS2LRV.js +2 -0
  17. package/dist/{chunk-GTIDXU7G.js → chunk-FEHICJMH.js} +3 -3
  18. package/dist/chunk-JY33SU6G.cjs +1 -0
  19. package/dist/{chunk-CRIHC5MO.cjs → chunk-JY5DPKJL.cjs} +1 -1
  20. package/dist/{chunk-2JEJLOXZ.cjs → chunk-KQYW7REL.cjs} +1 -1
  21. package/dist/{chunk-7OMILHOZ.js → chunk-LGVDORBF.js} +2 -2
  22. package/dist/{chunk-Q3DOZD3W.cjs → chunk-N2X6LD4P.cjs} +1 -1
  23. package/dist/{chunk-RAHLDYWR.cjs → chunk-O7H45A6H.cjs} +1 -1
  24. package/dist/chunk-O7UVSJ5U.js +2 -0
  25. package/dist/chunk-OSIGO5ER.cjs +1 -0
  26. package/dist/{chunk-T7QUF775.js → chunk-WEIHOHSB.js} +1 -1
  27. package/dist/{chunk-GXKAT72L.js → chunk-WTCFWBEP.js} +1 -1
  28. package/dist/{chunk-EBDMNVT7.js → chunk-XOHE32Q2.js} +1 -1
  29. package/dist/chunk-XRY2AFCC.js +2 -0
  30. package/dist/client/Menu.cjs +1 -1
  31. package/dist/client/Menu.js +2 -2
  32. package/dist/client/index.cjs +1 -1
  33. package/dist/client/index.js +1 -1
  34. package/dist/experimental/client/SwitchV2.cjs +1 -1
  35. package/dist/experimental/client/SwitchV2.js +2 -1
  36. package/dist/index.cjs +1 -1
  37. package/dist/index.d.cts +1 -1
  38. package/dist/index.d.ts +1 -1
  39. package/dist/index.js +1 -1
  40. package/dist/metafile-cjs.json +1 -1
  41. package/dist/metafile-esm.json +1 -1
  42. package/dist/tailwind/plugin.cjs +1 -1
  43. package/dist/tailwind/plugin.js +1 -1
  44. package/dist/tailwind/tsMorph.cjs +1 -1
  45. package/dist/tailwind/tsMorph.js +2 -2
  46. package/dist/tailwind/utils.cjs +1 -1
  47. package/dist/tailwind/utils.js +1 -1
  48. package/dist/tokens/automation/configs.cjs +1 -1
  49. package/dist/tokens/automation/configs.js +1 -1
  50. package/dist/tokens/automation/properties.cjs +1 -1
  51. package/dist/tokens/automation/properties.js +1 -1
  52. package/dist/tokens/index.cjs +1 -1
  53. package/dist/tokens/index.d.cts +17 -3
  54. package/dist/tokens/index.d.ts +17 -3
  55. package/dist/tokens/index.js +1 -1
  56. package/dist/tokens/parseTokens.cjs +1 -1
  57. package/dist/tokens/parseTokens.js +1 -1
  58. package/package.json +1 -1
  59. package/dist/Box--dJZH_rm.d.ts +0 -34
  60. package/dist/Box-Z1sx8kY_.d.cts +0 -34
  61. package/dist/Pressable-DiHQSTHz.d.ts +0 -44
  62. package/dist/Pressable-DtzH7hBC.d.cts +0 -44
  63. package/dist/Text-Dj2Pbxi_.d.cts +0 -88
  64. package/dist/Text-uefIU8bE.d.ts +0 -88
  65. package/dist/VStack-B6GYDqa0.d.ts +0 -83
  66. package/dist/VStack-BiJs2i59.d.cts +0 -83
  67. package/dist/chunk-47LL6BRB.js +0 -2
  68. package/dist/chunk-4UBSZT2O.js +0 -2
  69. package/dist/chunk-5F6Z5AGN.js +0 -1
  70. package/dist/chunk-5LANFL2P.cjs +0 -1
  71. package/dist/chunk-7SIWKGH2.cjs +0 -1
  72. package/dist/chunk-CWSY6N5I.cjs +0 -2
  73. package/dist/chunk-EDOI37SD.js +0 -2
  74. package/dist/chunk-H5XCZ4GM.js +0 -2
  75. package/dist/chunk-IF3Q6ZLU.js +0 -2
  76. package/dist/chunk-IZFEVJFL.js +0 -2
  77. package/dist/chunk-IZQVCLHT.js +0 -2
  78. package/dist/chunk-JHCOVVQY.js +0 -1
  79. package/dist/chunk-JJAQTXB2.js +0 -1
  80. package/dist/chunk-KPPL5RPJ.cjs +0 -1
  81. package/dist/chunk-NKJZNZ5C.cjs +0 -1
  82. package/dist/chunk-NZGIQ777.js +0 -2
  83. package/dist/chunk-O5ESGIUY.cjs +0 -1
  84. package/dist/chunk-OSOG57AW.cjs +0 -1
  85. package/dist/chunk-P6ZWWEX2.cjs +0 -2
  86. package/dist/chunk-R3FYD2UO.cjs +0 -1
  87. package/dist/chunk-SJ3HZL4S.cjs +0 -2
  88. package/dist/chunk-T2TI42FB.js +0 -2
  89. package/dist/chunk-U4NGJ3JN.cjs +0 -1
  90. package/dist/chunk-U7C4F57A.cjs +0 -1
  91. package/dist/chunk-VSFMVSGO.js +0 -2
  92. package/dist/chunk-WLBLQS3H.js +0 -3
  93. package/dist/chunk-WUBNTBF6.cjs +0 -1
  94. package/dist/chunk-XD7AYDPI.cjs +0 -1
  95. package/dist/chunk-YMQQ5JYM.js +0 -2
  96. package/dist/index-CF87-Wn8.d.ts +0 -251
  97. package/dist/index-M_d5Reyr.d.cts +0 -251
  98. package/dist/universalTokensConfigAuto-4Elh49mo.d.cts +0 -14334
  99. package/dist/universalTokensConfigAuto-4Elh49mo.d.ts +0 -14334
@@ -1,2 +1,2 @@
1
- import{mapValues as e,entries as t}from"./chunk-4UBSZT2O.js";import{require_baseGetTag as o,require_isArray as r,require_isObjectLike as a,require_createCompounder as n,require_getNative as s,require_Map as i,require_root as l,require_isObject as f,require_overArg as u,require_isPrototype as c,require_isArrayLike as d,require_isArguments as p,require_isBuffer as h,require_isTypedArray as v,require_isFunction as m,require_arrayMap as y,require_getTag as b,require_baseKeys as _,require_Symbol as g,require_baseUnary as w,require_nodeUtil as x}from"./chunk-YMQQ5JYM.js";import{BUTTON_SCALE_EFFECT as j,LETTER_SPACING_PREFIX as $,TEXT_TRANSFORM_PREFIX as S,LINE_HEIGHT_PREFIX as P,FONT_SIZE_PREFIX as W,FONT_WIDTH_PREFIX as C,FONT_SLANT_PREFIX as O,FONT_WEIGHT_PREFIX as T,FONT_FAMILY_PREFIX as A,TEXT_RESPONSIVE_CLASSNAME as V,BUTTON_GAP_VAR as F,TEXT_RESPONSIVE_BREAKPOINT_CLASSNAMES as k}from"./chunk-IF3Q6ZLU.js";import{__commonJS as N,__toESM as E}from"./chunk-GF4A6TFM.js";import{textVariants as K,shadowOffsetMap as Y,spacingMap as z,shadowSpreadRadiusMap as M}from"@yahoo/uds/fixtures";/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */
2
- var R=N({"../../node_modules/lodash/isString.js"(e,t){var n=o(),s=r(),i=a();t.exports=function(e){return"string"==typeof e||!s(e)&&i(e)&&"[object String]"==n(e)}}}),B=N({"../../node_modules/lodash/lowerCase.js"(e,t){var o=n()(function(e,t,o){return e+(o?" ":"")+t.toLowerCase()});t.exports=o}}),X=N({"../../node_modules/lodash/_listCacheClear.js"(e,t){t.exports=function(){this.__data__=[],this.size=0}}}),I=N({"../../node_modules/lodash/eq.js"(e,t){t.exports=function(e,t){return e===t||e!=e&&t!=t}}}),L=N({"../../node_modules/lodash/_assocIndexOf.js"(e,t){var o=I();t.exports=function(e,t){for(var r=e.length;r--;)if(o(e[r][0],t))return r;return-1}}}),D=N({"../../node_modules/lodash/_listCacheDelete.js"(e,t){var o=L(),r=Array.prototype.splice;t.exports=function(e){var t=this.__data__,a=o(t,e);return!(a<0)&&(a==t.length-1?t.pop():r.call(t,a,1),--this.size,!0)}}}),H=N({"../../node_modules/lodash/_listCacheGet.js"(e,t){var o=L();t.exports=function(e){var t=this.__data__,r=o(t,e);return r<0?void 0:t[r][1]}}}),U=N({"../../node_modules/lodash/_listCacheHas.js"(e,t){var o=L();t.exports=function(e){return o(this.__data__,e)>-1}}}),G=N({"../../node_modules/lodash/_listCacheSet.js"(e,t){var o=L();t.exports=function(e,t){var r=this.__data__,a=o(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this}}}),Q=N({"../../node_modules/lodash/_ListCache.js"(e,t){var o=X(),r=D(),a=H(),n=U(),s=G();function i(e){var t=-1,o=null==e?0:e.length;for(this.clear();++t<o;){var r=e[t];this.set(r[0],r[1])}}i.prototype.clear=o,i.prototype.delete=r,i.prototype.get=a,i.prototype.has=n,i.prototype.set=s,t.exports=i}}),q=N({"../../node_modules/lodash/_stackClear.js"(e,t){var o=Q();t.exports=function(){this.__data__=new o,this.size=0}}}),Z=N({"../../node_modules/lodash/_stackDelete.js"(e,t){t.exports=function(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o}}}),J=N({"../../node_modules/lodash/_stackGet.js"(e,t){t.exports=function(e){return this.__data__.get(e)}}}),ee=N({"../../node_modules/lodash/_stackHas.js"(e,t){t.exports=function(e){return this.__data__.has(e)}}}),te=N({"../../node_modules/lodash/_nativeCreate.js"(e,t){var o=s()(Object,"create");t.exports=o}}),oe=N({"../../node_modules/lodash/_hashClear.js"(e,t){var o=te();t.exports=function(){this.__data__=o?o(null):{},this.size=0}}}),re=N({"../../node_modules/lodash/_hashDelete.js"(e,t){t.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}}}),ae=N({"../../node_modules/lodash/_hashGet.js"(e,t){var o=te(),r=Object.prototype.hasOwnProperty;t.exports=function(e){var t=this.__data__;if(o){var a=t[e];return"__lodash_hash_undefined__"===a?void 0:a}return r.call(t,e)?t[e]:void 0}}}),ne=N({"../../node_modules/lodash/_hashHas.js"(e,t){var o=te(),r=Object.prototype.hasOwnProperty;t.exports=function(e){var t=this.__data__;return o?void 0!==t[e]:r.call(t,e)}}}),se=N({"../../node_modules/lodash/_hashSet.js"(e,t){var o=te();t.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=o&&void 0===t?"__lodash_hash_undefined__":t,this}}}),ie=N({"../../node_modules/lodash/_Hash.js"(e,t){var o=oe(),r=re(),a=ae(),n=ne(),s=se();function i(e){var t=-1,o=null==e?0:e.length;for(this.clear();++t<o;){var r=e[t];this.set(r[0],r[1])}}i.prototype.clear=o,i.prototype.delete=r,i.prototype.get=a,i.prototype.has=n,i.prototype.set=s,t.exports=i}}),le=N({"../../node_modules/lodash/_mapCacheClear.js"(e,t){var o=ie(),r=Q(),a=i();t.exports=function(){this.size=0,this.__data__={hash:new o,map:new(a||r),string:new o}}}}),fe=N({"../../node_modules/lodash/_isKeyable.js"(e,t){t.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}}}),ue=N({"../../node_modules/lodash/_getMapData.js"(e,t){var o=fe();t.exports=function(e,t){var r=e.__data__;return o(t)?r["string"==typeof t?"string":"hash"]:r.map}}}),ce=N({"../../node_modules/lodash/_mapCacheDelete.js"(e,t){var o=ue();t.exports=function(e){var t=o(this,e).delete(e);return this.size-=t?1:0,t}}}),de=N({"../../node_modules/lodash/_mapCacheGet.js"(e,t){var o=ue();t.exports=function(e){return o(this,e).get(e)}}}),pe=N({"../../node_modules/lodash/_mapCacheHas.js"(e,t){var o=ue();t.exports=function(e){return o(this,e).has(e)}}}),he=N({"../../node_modules/lodash/_mapCacheSet.js"(e,t){var o=ue();t.exports=function(e,t){var r=o(this,e),a=r.size;return r.set(e,t),this.size+=r.size==a?0:1,this}}}),ve=N({"../../node_modules/lodash/_MapCache.js"(e,t){var o=le(),r=ce(),a=de(),n=pe(),s=he();function i(e){var t=-1,o=null==e?0:e.length;for(this.clear();++t<o;){var r=e[t];this.set(r[0],r[1])}}i.prototype.clear=o,i.prototype.delete=r,i.prototype.get=a,i.prototype.has=n,i.prototype.set=s,t.exports=i}}),me=N({"../../node_modules/lodash/_stackSet.js"(e,t){var o=Q(),r=i(),a=ve();t.exports=function(e,t){var n=this.__data__;if(n instanceof o){var s=n.__data__;if(!r||s.length<199)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(s)}return n.set(e,t),this.size=n.size,this}}}),ye=N({"../../node_modules/lodash/_Stack.js"(e,t){var o=Q(),r=q(),a=Z(),n=J(),s=ee(),i=me();function l(e){var t=this.__data__=new o(e);this.size=t.size}l.prototype.clear=r,l.prototype.delete=a,l.prototype.get=n,l.prototype.has=s,l.prototype.set=i,t.exports=l}}),be=N({"../../node_modules/lodash/_defineProperty.js"(e,t){var o=s(),r=function(){try{var e=o(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();t.exports=r}}),_e=N({"../../node_modules/lodash/_baseAssignValue.js"(e,t){var o=be();t.exports=function(e,t,r){"__proto__"==t&&o?o(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}}}),ge=N({"../../node_modules/lodash/_assignMergeValue.js"(e,t){var o=_e(),r=I();t.exports=function(e,t,a){(void 0!==a&&!r(e[t],a)||void 0===a&&!(t in e))&&o(e,t,a)}}}),we=N({"../../node_modules/lodash/_createBaseFor.js"(e,t){t.exports=function(e){return function(t,o,r){for(var a=-1,n=Object(t),s=r(t),i=s.length;i--;){var l=s[e?i:++a];if(!1===o(n[l],l,n))break}return t}}}}),xe=N({"../../node_modules/lodash/_baseFor.js"(e,t){var o=we()();t.exports=o}}),je=N({"../../node_modules/lodash/_cloneBuffer.js"(e,t){var o=l(),r="object"==typeof e&&e&&!e.nodeType&&e,a=r&&"object"==typeof t&&t&&!t.nodeType&&t,n=a&&a.exports===r?o.Buffer:void 0,s=n?n.allocUnsafe:void 0;t.exports=function(e,t){if(t)return e.slice();var o=e.length,r=s?s(o):new e.constructor(o);return e.copy(r),r}}}),$e=N({"../../node_modules/lodash/_Uint8Array.js"(e,t){var o=l().Uint8Array;t.exports=o}}),Se=N({"../../node_modules/lodash/_cloneArrayBuffer.js"(e,t){var o=$e();t.exports=function(e){var t=new e.constructor(e.byteLength);return new o(t).set(new o(e)),t}}}),Pe=N({"../../node_modules/lodash/_cloneTypedArray.js"(e,t){var o=Se();t.exports=function(e,t){var r=t?o(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}}}),We=N({"../../node_modules/lodash/_copyArray.js"(e,t){t.exports=function(e,t){var o=-1,r=e.length;for(t||(t=Array(r));++o<r;)t[o]=e[o];return t}}}),Ce=N({"../../node_modules/lodash/_baseCreate.js"(e,t){var o=f(),r=Object.create,a=function(){function e(){}return function(t){if(!o(t))return{};if(r)return r(t);e.prototype=t;var a=new e;return e.prototype=void 0,a}}();t.exports=a}}),Oe=N({"../../node_modules/lodash/_getPrototype.js"(e,t){var o=u()(Object.getPrototypeOf,Object);t.exports=o}}),Te=N({"../../node_modules/lodash/_initCloneObject.js"(e,t){var o=Ce(),r=Oe(),a=c();t.exports=function(e){return"function"!=typeof e.constructor||a(e)?{}:o(r(e))}}}),Ae=N({"../../node_modules/lodash/isArrayLikeObject.js"(e,t){var o=d(),r=a();t.exports=function(e){return r(e)&&o(e)}}}),Ve=N({"../../node_modules/lodash/isPlainObject.js"(e,t){var r=o(),n=Oe(),s=a(),i=Function.prototype,l=Object.prototype,f=i.toString,u=l.hasOwnProperty,c=f.call(Object);t.exports=function(e){if(!s(e)||"[object Object]"!=r(e))return!1;var t=n(e);if(null===t)return!0;var o=u.call(t,"constructor")&&t.constructor;return"function"==typeof o&&o instanceof o&&f.call(o)==c}}}),Fe=N({"../../node_modules/lodash/_safeGet.js"(e,t){t.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}}}),ke=N({"../../node_modules/lodash/_assignValue.js"(e,t){var o=_e(),r=I(),a=Object.prototype.hasOwnProperty;t.exports=function(e,t,n){var s=e[t];a.call(e,t)&&r(s,n)&&(void 0!==n||t in e)||o(e,t,n)}}}),Ne=N({"../../node_modules/lodash/_copyObject.js"(e,t){var o=ke(),r=_e();t.exports=function(e,t,a,n){var s=!a;a||(a={});for(var i=-1,l=t.length;++i<l;){var f=t[i],u=n?n(a[f],e[f],f,a,e):void 0;void 0===u&&(u=e[f]),s?r(a,f,u):o(a,f,u)}return a}}}),Ee=N({"../../node_modules/lodash/_baseTimes.js"(e,t){t.exports=function(e,t){for(var o=-1,r=Array(e);++o<e;)r[o]=t(o);return r}}}),Ke=N({"../../node_modules/lodash/_isIndex.js"(e,t){var o=/^(?:0|[1-9]\d*)$/;t.exports=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&o.test(e))&&e>-1&&e%1==0&&e<t}}}),Ye=N({"../../node_modules/lodash/_arrayLikeKeys.js"(e,t){var o=Ee(),a=p(),n=r(),s=h(),i=Ke(),l=v(),f=Object.prototype.hasOwnProperty;t.exports=function(e,t){var r=n(e),u=!r&&a(e),c=!r&&!u&&s(e),d=!r&&!u&&!c&&l(e),p=r||u||c||d,h=p?o(e.length,String):[],v=h.length;for(var m in e)!t&&!f.call(e,m)||p&&("length"==m||c&&("offset"==m||"parent"==m)||d&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||i(m,v))||h.push(m);return h}}}),ze=N({"../../node_modules/lodash/_nativeKeysIn.js"(e,t){t.exports=function(e){var t=[];if(null!=e)for(var o in Object(e))t.push(o);return t}}}),Me=N({"../../node_modules/lodash/_baseKeysIn.js"(e,t){var o=f(),r=c(),a=ze(),n=Object.prototype.hasOwnProperty;t.exports=function(e){if(!o(e))return a(e);var t=r(e),s=[];for(var i in e)("constructor"!=i||!t&&n.call(e,i))&&s.push(i);return s}}}),Re=N({"../../node_modules/lodash/keysIn.js"(e,t){var o=Ye(),r=Me(),a=d();t.exports=function(e){return a(e)?o(e,!0):r(e)}}}),Be=N({"../../node_modules/lodash/toPlainObject.js"(e,t){var o=Ne(),r=Re();t.exports=function(e){return o(e,r(e))}}}),Xe=N({"../../node_modules/lodash/_baseMergeDeep.js"(e,t){var o=ge(),a=je(),n=Pe(),s=We(),i=Te(),l=p(),u=r(),c=Ae(),d=h(),y=m(),b=f(),_=Ve(),g=v(),w=Fe(),x=Be();t.exports=function(e,t,r,f,p,h,v){var m=w(e,r),j=w(t,r),$=v.get(j);if($)o(e,r,$);else{var S=h?h(m,j,r+"",e,t,v):void 0,P=void 0===S;if(P){var W=u(j),C=!W&&d(j),O=!W&&!C&&g(j);S=j,W||C||O?u(m)?S=m:c(m)?S=s(m):C?(P=!1,S=a(j,!0)):O?(P=!1,S=n(j,!0)):S=[]:_(j)||l(j)?(S=m,l(m)?S=x(m):b(m)&&!y(m)||(S=i(j))):P=!1}P&&(v.set(j,S),p(S,j,f,h,v),v.delete(j)),o(e,r,S)}}}}),Ie=N({"../../node_modules/lodash/_baseMerge.js"(e,t){var o=ye(),r=ge(),a=xe(),n=Xe(),s=f(),i=Re(),l=Fe();t.exports=function e(t,f,u,c,d){t!==f&&a(f,function(a,i){if(d||(d=new o),s(a))n(t,f,i,u,e,c,d);else{var p=c?c(l(t,i),a,i+"",t,f,d):void 0;void 0===p&&(p=a),r(t,i,p)}},i)}}}),Le=N({"../../node_modules/lodash/identity.js"(e,t){t.exports=function(e){return e}}}),De=N({"../../node_modules/lodash/_apply.js"(e,t){t.exports=function(e,t,o){switch(o.length){case 0:return e.call(t);case 1:return e.call(t,o[0]);case 2:return e.call(t,o[0],o[1]);case 3:return e.call(t,o[0],o[1],o[2])}return e.apply(t,o)}}}),He=N({"../../node_modules/lodash/_overRest.js"(e,t){var o=De(),r=Math.max;t.exports=function(e,t,a){return t=r(void 0===t?e.length-1:t,0),function(){for(var n=arguments,s=-1,i=r(n.length-t,0),l=Array(i);++s<i;)l[s]=n[t+s];s=-1;for(var f=Array(t+1);++s<t;)f[s]=n[s];return f[t]=a(l),o(e,this,f)}}}}),Ue=N({"../../node_modules/lodash/constant.js"(e,t){t.exports=function(e){return function(){return e}}}}),Ge=N({"../../node_modules/lodash/_baseSetToString.js"(e,t){var o=Ue(),r=be(),a=Le(),n=r?function(e,t){return r(e,"toString",{configurable:!0,enumerable:!1,value:o(t),writable:!0})}:a;t.exports=n}}),Qe=N({"../../node_modules/lodash/_shortOut.js"(e,t){var o=Date.now;t.exports=function(e){var t=0,r=0;return function(){var a=o(),n=16-(a-r);if(r=a,n>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}}}),qe=N({"../../node_modules/lodash/_setToString.js"(e,t){var o=Ge(),r=Qe()(o);t.exports=r}}),Ze=N({"../../node_modules/lodash/_baseRest.js"(e,t){var o=Le(),r=He(),a=qe();t.exports=function(e,t){return a(r(e,t,o),e+"")}}}),Je=N({"../../node_modules/lodash/_isIterateeCall.js"(e,t){var o=I(),r=d(),a=Ke(),n=f();t.exports=function(e,t,s){if(!n(s))return!1;var i=typeof t;return!!("number"==i?r(s)&&a(t,s.length):"string"==i&&t in s)&&o(s[t],e)}}}),et=N({"../../node_modules/lodash/_createAssigner.js"(e,t){var o=Ze(),r=Je();t.exports=function(e){return o(function(t,o){var a=-1,n=o.length,s=n>1?o[n-1]:void 0,i=n>2?o[2]:void 0;for(s=e.length>3&&"function"==typeof s?(n--,s):void 0,i&&r(o[0],o[1],i)&&(s=n<3?void 0:s,n=1),t=Object(t);++a<n;){var l=o[a];l&&e(t,l,a,s)}return t})}}}),tt=N({"../../node_modules/lodash/mergeWith.js"(e,t){var o=Ie(),r=et()(function(e,t,r,a){o(e,t,r,a)});t.exports=r}}),ot=N({"../../node_modules/lodash/_baseToPairs.js"(e,t){var o=y();t.exports=function(e,t){return o(t,function(t){return[t,e[t]]})}}}),rt=N({"../../node_modules/lodash/_mapToArray.js"(e,t){t.exports=function(e){var t=-1,o=Array(e.size);return e.forEach(function(e,r){o[++t]=[r,e]}),o}}}),at=N({"../../node_modules/lodash/_setToPairs.js"(e,t){t.exports=function(e){var t=-1,o=Array(e.size);return e.forEach(function(e){o[++t]=[e,e]}),o}}}),nt=N({"../../node_modules/lodash/_createToPairs.js"(e,t){var o=ot(),r=b(),a=rt(),n=at();t.exports=function(e){return function(t){var s=r(t);return"[object Map]"==s?a(t):"[object Set]"==s?n(t):o(t,e(t))}}}}),st=N({"../../node_modules/lodash/keys.js"(e,t){var o=Ye(),r=_(),a=d();t.exports=function(e){return a(e)?o(e):r(e)}}}),it=N({"../../node_modules/lodash/toPairs.js"(e,t){var o=nt()(st());t.exports=o}}),lt=N({"../../node_modules/lodash/entries.js"(e,t){t.exports=it()}}),ft=N({"../../node_modules/lodash/_arrayEach.js"(e,t){t.exports=function(e,t){for(var o=-1,r=null==e?0:e.length;++o<r&&!1!==t(e[o],o,e););return e}}}),ut=N({"../../node_modules/lodash/_baseAssign.js"(e,t){var o=Ne(),r=st();t.exports=function(e,t){return e&&o(t,r(t),e)}}}),ct=N({"../../node_modules/lodash/_baseAssignIn.js"(e,t){var o=Ne(),r=Re();t.exports=function(e,t){return e&&o(t,r(t),e)}}}),dt=N({"../../node_modules/lodash/_arrayFilter.js"(e,t){t.exports=function(e,t){for(var o=-1,r=null==e?0:e.length,a=0,n=[];++o<r;){var s=e[o];t(s,o,e)&&(n[a++]=s)}return n}}}),pt=N({"../../node_modules/lodash/stubArray.js"(e,t){t.exports=function(){return[]}}}),ht=N({"../../node_modules/lodash/_getSymbols.js"(e,t){var o=dt(),r=pt(),a=Object.prototype.propertyIsEnumerable,n=Object.getOwnPropertySymbols,s=n?function(e){return null==e?[]:(e=Object(e),o(n(e),function(t){return a.call(e,t)}))}:r;t.exports=s}}),vt=N({"../../node_modules/lodash/_copySymbols.js"(e,t){var o=Ne(),r=ht();t.exports=function(e,t){return o(e,r(e),t)}}}),mt=N({"../../node_modules/lodash/_arrayPush.js"(e,t){t.exports=function(e,t){for(var o=-1,r=t.length,a=e.length;++o<r;)e[a+o]=t[o];return e}}}),yt=N({"../../node_modules/lodash/_getSymbolsIn.js"(e,t){var o=mt(),r=Oe(),a=ht(),n=pt(),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)o(t,a(e)),e=r(e);return t}:n;t.exports=s}}),bt=N({"../../node_modules/lodash/_copySymbolsIn.js"(e,t){var o=Ne(),r=yt();t.exports=function(e,t){return o(e,r(e),t)}}}),_t=N({"../../node_modules/lodash/_baseGetAllKeys.js"(e,t){var o=mt(),a=r();t.exports=function(e,t,r){var n=t(e);return a(e)?n:o(n,r(e))}}}),gt=N({"../../node_modules/lodash/_getAllKeys.js"(e,t){var o=_t(),r=ht(),a=st();t.exports=function(e){return o(e,a,r)}}}),wt=N({"../../node_modules/lodash/_getAllKeysIn.js"(e,t){var o=_t(),r=yt(),a=Re();t.exports=function(e){return o(e,a,r)}}}),xt=N({"../../node_modules/lodash/_initCloneArray.js"(e,t){var o=Object.prototype.hasOwnProperty;t.exports=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&o.call(e,"index")&&(r.index=e.index,r.input=e.input),r}}}),jt=N({"../../node_modules/lodash/_cloneDataView.js"(e,t){var o=Se();t.exports=function(e,t){var r=t?o(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}}}),$t=N({"../../node_modules/lodash/_cloneRegExp.js"(e,t){var o=/\w*$/;t.exports=function(e){var t=new e.constructor(e.source,o.exec(e));return t.lastIndex=e.lastIndex,t}}}),St=N({"../../node_modules/lodash/_cloneSymbol.js"(e,t){var o=g(),r=o?o.prototype:void 0,a=r?r.valueOf:void 0;t.exports=function(e){return a?Object(a.call(e)):{}}}}),Pt=N({"../../node_modules/lodash/_initCloneByTag.js"(e,t){var o=Se(),r=jt(),a=$t(),n=St(),s=Pe();t.exports=function(e,t,i){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return o(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return r(e,i);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,i);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return a(e);case"[object Symbol]":return n(e)}}}}),Wt=N({"../../node_modules/lodash/_baseIsMap.js"(e,t){var o=b(),r=a();t.exports=function(e){return r(e)&&"[object Map]"==o(e)}}}),Ct=N({"../../node_modules/lodash/isMap.js"(e,t){var o=Wt(),r=w(),a=x(),n=a&&a.isMap,s=n?r(n):o;t.exports=s}}),Ot=N({"../../node_modules/lodash/_baseIsSet.js"(e,t){var o=b(),r=a();t.exports=function(e){return r(e)&&"[object Set]"==o(e)}}}),Tt=N({"../../node_modules/lodash/isSet.js"(e,t){var o=Ot(),r=w(),a=x(),n=a&&a.isSet,s=n?r(n):o;t.exports=s}}),At=N({"../../node_modules/lodash/_baseClone.js"(e,t){var o=ye(),a=ft(),n=ke(),s=ut(),i=ct(),l=je(),u=We(),c=vt(),d=bt(),p=gt(),v=wt(),m=b(),y=xt(),_=Pt(),g=Te(),w=r(),x=h(),j=Ct(),$=f(),S=Tt(),P=st(),W=Re(),C="[object Arguments]",O="[object Function]",T="[object Object]",A={};A[C]=A["[object Array]"]=A["[object ArrayBuffer]"]=A["[object DataView]"]=A["[object Boolean]"]=A["[object Date]"]=A["[object Float32Array]"]=A["[object Float64Array]"]=A["[object Int8Array]"]=A["[object Int16Array]"]=A["[object Int32Array]"]=A["[object Map]"]=A["[object Number]"]=A[T]=A["[object RegExp]"]=A["[object Set]"]=A["[object String]"]=A["[object Symbol]"]=A["[object Uint8Array]"]=A["[object Uint8ClampedArray]"]=A["[object Uint16Array]"]=A["[object Uint32Array]"]=!0,A["[object Error]"]=A[O]=A["[object WeakMap]"]=!1,t.exports=function e(t,r,f,h,b,V){var F,k=1&r,N=2&r,E=4&r;if(f&&(F=b?f(t,h,b,V):f(t)),void 0!==F)return F;if(!$(t))return t;var K=w(t);if(K){if(F=y(t),!k)return u(t,F)}else{var Y=m(t),z=Y==O||"[object GeneratorFunction]"==Y;if(x(t))return l(t,k);if(Y==T||Y==C||z&&!b){if(F=N||z?{}:g(t),!k)return N?d(t,i(F,t)):c(t,s(F,t))}else{if(!A[Y])return b?t:{};F=_(t,Y,k)}}V||(V=new o);var M=V.get(t);if(M)return M;V.set(t,F),S(t)?t.forEach(function(o){F.add(e(o,r,f,o,t,V))}):j(t)&&t.forEach(function(o,a){F.set(a,e(o,r,f,a,t,V))});var R=K?void 0:(E?N?v:p:N?W:P)(t);return a(R||t,function(o,a){R&&(o=t[a=o]),n(F,a,e(o,r,f,a,t,V))}),F}}}),Vt=N({"../../node_modules/lodash/cloneDeep.js"(e,t){var o=At();t.exports=function(e){return o(e,5)}}}),Ft=E(R(),1),kt=e=>{throw new Error("Didn't expect to get here")};var Nt=e=>e.replace("/","-"),Et=e=>"."+k[e],Kt=(e,t,o,r)=>{const a=e.typography[t]?.[o];if(!a)throw new Error(`Missing typography data for variant "${t}" and key "${o}"`);const n="base"===r?a.base:a.breakpoints?.[r];if(!n)throw new Error(`Missing value for variant "${t}", key "${o}", and breakpoint "${r}"`);if((0,Ft.default)(n))return n;switch(n.type){case"px":return n.value/16+"rem";case"unitless":return String(n.value)}return kt()},Yt=(e,t)=>t in e.font?`var(--${A}-${t})`:t,zt=(e,t)=>Object.fromEntries(K.flatMap(o=>{const r=Nt(o);return[[`--${A}-${r}`,Yt(e,Kt(e,o,"fontFamily",t))],[`--${W}-${r}`,Kt(e,o,"fontSize",t)],[`--${T}-${r}`,Kt(e,o,"fontWeight",t)],[`--${O}-${r}`,Kt(e,o,"fontSlant",t)],[`--${C}-${r}`,Kt(e,o,"fontWidth",t)],[`--${P}-${r}`,Kt(e,o,"lineHeight",t)],[`--${S}-${r}`,Kt(e,o,"textTransform",t)],[`--${$}-${r}`,Kt(e,o,"letterSpacing",t)]]})),Mt=e=>Object.fromEntries(K.map(Nt).map(t=>[t,`var(--${e}-${t})`])),Rt={fontFamily:Mt(A),fontWeight:Mt(T),fontSlant:Mt(O),fontWidth:Mt(C),fontSize:Mt(W),lineHeight:Mt(P),textTransform:Mt(S),letterSpacing:Mt($)},Bt=e=>zt(e,"base"),Xt=e=>{const t=(o=e.breakpoints,Object.entries(o)).sort(([,{value:e}],[,{value:t}])=>e-t);var o;return{[`.${V}`]:Object.fromEntries(t.map(([t,{value:o}])=>[`@media (min-width: ${o}px)`,zt(e,t)])),[Et("base")]:zt(e,"base"),[Et("defaultBreakpoint")]:zt(e,e.globalDefaults.breakpoint),...Object.fromEntries(t.map(([t])=>[Et(t),zt(e,t)]))}},It=E(m(),1),Lt=E(B(),1),Dt=E(tt(),1);function Ht({variantKey:e,variantValue:t,layer:o,subComponentName:r,stateKey:a,stateValue:n}){return r?a&&n?`${r}/${e}/${t}/${a}/${n}/${o}`:`${r}/${e}/${t}/${o}`:a&&n?`${e}/${t}/${a}/${n}/${o}`:`${e}/${t}/${o}`}var Ut=e=>!!e?.layers,Gt=e=>!!e?.componentStates,Qt=e=>e.reduce((e,t)=>e.flatMap(e=>t.map(t=>[e,t].flat())));function qt(t,o){const r=t.variants?.[o];if(r)return{type:"no-sub-components",variant:r};const a=fo(t);if(!a)return{type:"no-variants"};return{type:"has-sub-components",variants:e(a,e=>e.variants[o])}}function Zt(e,t,o){const r=e[t]?.defaults?.[o];if(void 0===r)throw new Error(`The variant default for "${o}" is not defined for the component "${t}"`);return r}function Jt(e,t,o,r){return Zt(e,t,o)===r}function eo(e){let t=e;return t=t.replaceAll(".","/"),["root/","variables/","variant/","/value"].forEach(e=>{t=t.replaceAll(e,"")}),t}var to=E(lt(),1);function oo(e,t,o){const r=qt(e,t);switch(r.type){case"no-variants":return null;case"no-sub-components":return r.variant;case"has-sub-components":if(!o)throw new Error("subComponentName argument name is required for configs with subcomponents");return r.variants[o]}}function ro(e,t,o){const r=oo(e,t,o);return r&&Gt(r)?r?.componentStates??null:null}function ao(e,t,o){const r=ro(e,t,o);if(!r)return null;return Qt((0,to.default)(r).map(([e,t])=>t.options.map(t=>({[e]:t})))).map(e=>Array.isArray(e)?e.reduce((e,t)=>({...e,...t}),{}):e)}function no(t){if(!t||!Ut(t))return null;const o=e(t.layers,e=>e.properties);for(const e in o){const t=o[e];t&&0!==Object.keys(t).length||delete o[e]}return 0===Object.keys(o).length?null:o}var so=["rest"];function io(e,t,o,r){const a=oo(e,t,r);if(!a)return null;return[...Ut(a)?Object.entries(a?.layers??{}):[],...Gt(a)&&o?Object.entries(a.componentStates[o].layers??{}):[]].flatMap(([e,t])=>Object.entries(t.properties).map(([t,o])=>[e,t,o])).flatMap(([e,t,o])=>[...o.skipRestState?so.filter(e=>"rest"!==e):so,...o.pseudoStates??[]].map(r=>[e,t,o,r])).reduce((e,[t,o,r,a])=>{e[a]=e[a]??[];const n=[t,o,r];return e[a].push(n),e},{})}var lo=E(lt(),1);function fo(e){return e.subComponents?0===Object.keys(e.subComponents).length?null:e.subComponents:null}function uo(e,t="variant"){const o=qt(e,t);if("no-variants"===o.type)return{type:"no-variants",description:"No variants"};if("no-sub-components"===o.type){if(fo(e))throw new Error("A config with a root variants.variant defintion cannot have subcomponents");return{type:"no-sub-components",description:o.variant.description,variantNames:[...o.variant.options]}}const r=(0,lo.default)(o.variants).reduce((e,[t,o])=>{for(const r of o.options)e[r]??=[],e[r].includes(t)||e[r].push(t);return e},{});return{type:"has-sub-components",description:Object.values(o.variants).map(e=>e.description).filter(e=>e)[0]??"",variantNames:Object.keys(r),variantToSubcomponentNames:r}}var co=E(Vt(),1);function po(e,t,o,r,a){const n=e[o].variables[t];if(!n)throw new Error(`No layer variables found for ${t}.`);const s=n[r];if(!s)throw new Error(`No property variables found for ${r}.`);const i=s[a];if(!i)throw new Error(`No pseudoState variables found for ${a}.`);return i}function ho(e,t,o,r,a,n){const s=(0,co.default)(e),i=po(s,t,o,r,a);return void 0!==n.type&&(i.type=n.type),void 0!==n.value&&(i.value=n.value),s}function vo(e,t,o,r,a){return[po(e,t,o,r,a),n=>ho(e,t,o,r,a,n)]}var mo="line-height",yo="border-width",bo="border-color",_o="box-shadow";function go({lineHeight:e,schema:t,iconLayerKey:o,state:r,theme:a}){const n=t.variables?.[o]?.size?.[r]?.value;if(!n)return e;return`max(${e}, ${a(`sizing.icon.${n}`)})`}function wo(e){const t=e[yo],o=e[bo];if(!t||!o)return e;const r=e=>e.replace(/\s*!important\s*$/,""),a=e=>e?.includes("!important")??!1,n=[`inset 0 0 0 ${r(t)} ${r(o)}`,e[_o]&&r(e[_o])].filter(Boolean),s=a(t)||a(o)||a(e[_o]),i={...e};return i[_o]=n.join(", ")+(s?" !important":""),delete i[yo],delete i[bo],i}var xo={rest:"",hover:":hover:not(:active, :disabled, :has(:disabled))",pressed:":active:not(:disabled, :has(:disabled))",focused:":focus","focus-within":":focus-within",invalid:':has(input[aria-invalid="true"])',"focused-keyboard":":focus-visible",visited:":visited",readonly:":has(input:read-only)",disabled:":is(:disabled, :has(:disabled))","invalid&hover":':has(input[aria-invalid="true"]):hover:not(:active, :disabled, :has(:disabled))',"invalid&pressed":':has(input[aria-invalid="true"]):active:not(:disabled, :has(:disabled))'},jo={rest:"",hover:"hover",pressed:"active",focused:"focus","focus-within":"focus-within",invalid:"has-input-invalid","focused-keyboard":"focus-visible",visited:"visited",readonly:"input-readonly",disabled:"has-disabled","invalid&hover":"has-input-invalid-and-hover","invalid&pressed":"has-input-invalid-and-active"};function $o(e,t){const o=e.defaults[t],r=e.typeOfFixture;let a=0;return e.values.forEach((e,t)=>{e.includes(o)&&(a=t)}),r[a]}function So(e){const t={},o={};for(const t in e.variants){const r=e.variants[t];o[t]=r.default}t.defaults=o,t.variables={};for(const o in e.variants){const r=e.variants[o];for(const e of r.options)if(Gt(r)){const a=r.componentStates;for(const r in a){const n=a[r];for(const a of n.options)for(const s in n.layers){const i=n.layers[s],l=Ht({variantKey:o,variantValue:e,stateKey:r,stateValue:a,layer:s});t.variables[l]={};for(const o in i.properties){const r=i.properties[o],a={[o]:{}};if(!0!==r?.skipRestState&&(a[o]={rest:{type:$o(r,e),valueType:"alias",value:r.defaults[e]}}),r.pseudoStates)for(const t of r.pseudoStates)a[o][t]={type:$o(r,e),valueType:"alias",value:r.defaults[e]};t.variables[l]={...t.variables[l],...a}}}}}else if(Ut(r)){const a=r.layers;for(const r in a){const n=a[r],s=Ht({variantKey:o,variantValue:e,layer:r});t.variables[s]={};for(const o in n.properties){const r=n.properties[o],a={[o]:{}};if(!0!==r?.skipRestState&&(a[o]={rest:{type:$o(r,e),valueType:"alias",value:r.defaults[e]}}),r.pseudoStates)for(const t of r.pseudoStates)a[o][t]={type:$o(r,e),valueType:"alias",value:r.defaults[e]};t.variables[s]={...t.variables[s],...a}}}}}if(e.subComponents){const{subComponents:o}=e;for(const e in o)for(const r in o[e].variants){const a=o[e].variants[r];t.defaults[r]=a.default;for(const o of a.options)if(Gt(a)){const n=a.componentStates;for(const a in n){const s=n[a];for(const n of s.options)for(const i in s.layers){const l=s.layers[i],f=Ht({variantKey:r,variantValue:o,stateKey:a,stateValue:n,layer:i,subComponentName:e});t.variables[f]={};for(const e in l.properties){const r=l.properties[e],a={[e]:{}};if(!0!==r?.skipRestState&&(a[e]={rest:{type:$o(r,o),valueType:"alias",value:r.defaults[o]}}),r.pseudoStates)for(const t of r.pseudoStates)a[e][t]={type:$o(r,o),valueType:"alias",value:r.defaults[o]};t.variables[f]={...t.variables[f],...a}}}}}else if(Ut(a)){const n=a.layers;for(const a in n){const s=n[a],i=Ht({variantKey:r,variantValue:o,layer:a,subComponentName:e});t.variables[i]={};for(const e in s.properties){const r=s.properties[e],a={[e]:{}};if(!0!==r?.skipRestState&&(a[e]={rest:{type:$o(r,o),valueType:"alias",value:r.defaults[o]}}),r.pseudoStates)for(const t of r.pseudoStates)a[e][t]={type:$o(r,o),valueType:"alias",value:r.defaults[o]};t.variables[i]={...t.variables[i],...a}}}}}}return t}function Po(e,t,o,r){return`uds-${e}${r?`-${r.toLowerCase()}`:""}-default-${t}-${o}`}function Wo({componentName:e,variantKey:t,variantValue:o,layer:r,layerOptionalPseudoSelector:a,subComponentName:n,stateKey:s,stateValue:i}){let l="";return l=n?`uds-${(0,Lt.default)(e)}-${(0,Lt.default)(n)}-${(0,Lt.default)(t)}`:`uds-${(0,Lt.default)(e)}-${(0,Lt.default)(t)}`,o&&(l=`${l}-${(0,Lt.default)(o)}`),s&&i&&(l=`${l}-${(0,Lt.default)(s)}-${(0,Lt.default)(i)}`),l=`${l}-${(0,Lt.default)(r)}`,a&&(l=`${l}${a}`),l.replaceAll(/\s+/g,"-")}function Co({componentName:e,variantKey:t,variantValue:o,layer:r,layerOptionalPseudoSelector:a,subComponentName:n,stateKey:s,stateValue:i,schema:l,propertyKey:f,originalPropertyDefinition:u,theme:c,currentStyles:d,previewOptions:p}){const h=Ht({variantKey:t,variantValue:o,layer:r,subComponentName:n,stateKey:s,stateValue:i});let v=Wo({componentName:e,variantKey:t,variantValue:o,layer:r,subComponentName:n,stateKey:s,stateValue:i});const m=l.variables[h][f];if(!m)throw new Error(`Prop definition (${e} - ${h} - ${f}) not found, this is not expected, please report the bug to the UDS team`);const y={};for(const h in m){const b=h,_=xo[b]??"",g=m[b];let w="";if("root"===r)if(s&&i){const a=Wo({componentName:e,variantKey:t,variantValue:o,layer:r,subComponentName:n});v=Wo({componentName:e,variantKey:t,layer:r,subComponentName:n,stateKey:s,stateValue:i}),w=`.${a}${_}.${v}`}else w=`.${v}${_}`;else{const l=Wo({componentName:e,variantKey:t,variantValue:o,layer:"root",subComponentName:n});if(s&&i){const f=Wo({componentName:e,variantKey:t,layer:"root",subComponentName:n,stateKey:s,stateValue:i});v=Wo({componentName:e,variantKey:t,variantValue:o,layer:r,layerOptionalPseudoSelector:a,subComponentName:n}),w=`.${l}${_}.${f} .${v}`}else w=`.${l}${_} .${v}`}const x=(e,t,o,r)=>{const{value:a,type:n}=e,s=hr[t];let i;if(hr[t].customValueRenderer)i=hr[t].customValueRenderer(e,l,o);else{i=o(hr[t].twThemePath(n,String(a)))}if(s.concatenate&&r){return`${r}${s.concatenationDelimiter||", "}${i}`}return i},{cssProperties:j,extendedProperties:$}=hr[u.name],S={},P=(0,It.default)($),W=P?$({componentName:e,subComponentName:n,layer:r,propertyKey:f}):$;if(W&&W.length){if(!P&&("string"==typeof j||Array.isArray(j)&&j.length>0))throw new Error("Invalid configuration: cssProperties should not be configured when extendedProperties are defined. Please update your property configuration accordingly.");for(const e of W){const t=hr[e].cssProperties;if("string"==typeof t){const o=d?.[w]?.[t];S[t]=x(g,e,c,o)}else if(Array.isArray(t))for(const o of t){const t=d?.[w]?.[o];S[o]=x(g,e,c,t)}}}else if("string"==typeof j){const e=d?.[w]?.[j];S[j]=x(g,u.name,c,e)}else if(Array.isArray(j))for(const e of j){const t=d?.[w]?.[e];S[e]=x(g,u.name,c,t)}if("button"===e&&"root"===r&&("gap"===f&&(S[F]=S.gap),S[mo])){const e=Ht({variantKey:t,variantValue:o,layer:"icon",subComponentName:n});S[mo]=go({lineHeight:S[mo],schema:l,iconLayerKey:e,state:b,theme:c})}if(y[w]||(y[w]={...S,...y[w]}),p?.generatePseudoStateClassModifier){const e=jo[b]??"";if(e.length>0&&"root"!==h){const t=Object.fromEntries(Object.entries(S).map(([e,t])=>[e,`${t} !important`]));y[`.${e}${w}`.replace(_,"")]={...t,...y[`.${e}${w}`.replace(_,"")]}}}}return y}function Oo(e,t,o,r){function a(e,t){return(0,Dt.default)({},e,t)}let n=e.label.toLowerCase();e.overrideComponentName&&(n=e.overrideComponentName.toLowerCase());let s={};for(const i in e.variants){const l=e.variants[i];for(const e of l.options)if(Gt(l)){const f=l.componentStates;for(const l in f){const u=f[l];for(const f of u.options)for(const c in u.layers){const d=u.layers[c];for(const u in d.properties){const p=d.properties[u];s=a(s,Co({componentName:n,variantKey:i,variantValue:e,stateKey:l,stateValue:f,layer:c,layerOptionalPseudoSelector:d.pseudoSelector,propertyKey:u,originalPropertyDefinition:p,theme:o,schema:t,currentStyles:s,previewOptions:r}))}}}}else if(Ut(l)){const f=l.layers;for(const l in f){const u=f[l];for(const f in u.properties){const c=u.properties[f];s=a(s,Co({componentName:n,variantKey:i,variantValue:e,layer:l,layerOptionalPseudoSelector:u.pseudoSelector,propertyKey:f,originalPropertyDefinition:c,theme:o,schema:t,currentStyles:s,previewOptions:r}))}}}}if(e.subComponents){const{subComponents:i}=e;for(const e in i)for(const l in i[e].variants){const f=i[e].variants[l];for(const i of f.options)if(Gt(f)){const u=f.componentStates;for(const f in u){const c=u[f];for(const u of c.options)for(const d in c.layers){const p=c.layers[d];for(const c in p.properties){const h=p.properties[c];s=a(s,Co({componentName:n,variantKey:l,variantValue:i,stateKey:f,stateValue:u,subComponentName:e,layer:d,layerOptionalPseudoSelector:p.pseudoSelector,propertyKey:c,originalPropertyDefinition:h,theme:o,schema:t,currentStyles:s,previewOptions:r}))}}}}else if(Ut(f)){const u=f.layers;for(const f in u){const c=u[f];for(const u in c.properties){const d=c.properties[u];s=a(s,Co({componentName:n,subComponentName:e,variantKey:l,variantValue:i,layer:f,layerOptionalPseudoSelector:c.pseudoSelector,propertyKey:u,originalPropertyDefinition:d,theme:o,schema:t,currentStyles:s,previewOptions:r}))}}}}}if("button"===n||"iconbutton"===n)for(const e in s)e.includes("-root")&&(s[e]=wo(s[e]));return s}var To=(e,t,o,r)=>{const a=Oo(e,t,o,r);if(!e.variants&&!e.subComponents)return a;const n=e.overrideComponentName?.toLowerCase()||e.label.toLowerCase();if("button"!==n&&"iconbutton"!==n)return a;const s=new Map,i=e=>{if(Ut(e))return Object.keys(e.layers);if(Gt(e)){const t=new Set;for(const o of Object.values(e.componentStates))Object.keys(o.layers).forEach(e=>t.add(e));return Array.from(t)}return[]},l=(e,o)=>{for(const[r,a]of Object.entries(e)){if(!Ut(a)&&!Gt(a))continue;const e=i(a);if(e.length){const a=t.defaults?.[r];if(a)for(const t of e){const e=Wo({componentName:n,variantKey:r,variantValue:a,layer:t,subComponentName:o}),i=Po(n,r,t,o);s.set(e,`.${e}, .${i}`)}}}};if(e.variants&&l(e.variants),e.subComponents)for(const[t,o]of Object.entries(e.subComponents))l(o.variants,t);const f={};for(const[e,t]of Object.entries(a)){let o=e,r=!1;for(const[t,a]of s.entries())if(e.includes(t)){r=!0;const e=a.match(/,\s*\.([a-z0-9-]+)/);if(e){const r=e[1];o=o.replaceAll(t,r)}}r?f[`${e}, ${o}`]=t:f[e]=t}return f};function Ao(e){return e}function Vo(e){return e}function Fo(e){return e}function ko(e){return e}function No(e){return e}function Eo(e){return e}function Ko(e){return e}var Yo={drop:{none:[],xs:[{offsetX:"0",offsetY:"px",blur:"0.5",spread:"0",opacity:"5",color:{type:"palette",value:"primary"}}],sm:[{offsetX:"0",offsetY:"px",blur:"0.5",spread:"0",opacity:"10",color:{type:"palette",value:"primary"}},{offsetX:"0",offsetY:"px",blur:"1",spread:"0",opacity:"10",color:{type:"palette",value:"primary"}}],md:[{offsetX:"0",offsetY:"1",blur:"1.5",spread:"-px",opacity:"10",color:{type:"palette",value:"primary"}},{offsetX:"0",offsetY:"0.5",blur:"1",spread:"-0.5",opacity:"10",color:{type:"palette",value:"primary"}}],lg:[{offsetX:"0",offsetY:"1",blur:"1.5",spread:"-1",opacity:"10",color:{type:"palette",value:"primary"}},{offsetX:"0",offsetY:"2.5",blur:"3.5",spread:"-0.5",opacity:"10",color:{type:"palette",value:"primary"}}],xl:[{offsetX:"0",offsetY:"2",blur:"2.5",spread:"-1.5",opacity:"10",color:{type:"palette",value:"primary"}},{offsetX:"0",offsetY:"5",blur:"6",spread:"-1",opacity:"10",color:{type:"palette",value:"primary"}}],"2xl":[{offsetX:"0",offsetY:"6",blur:"12",spread:"-3",opacity:"25",color:{type:"palette",value:"primary"}}]},inset:{none:[],xs:[{offsetX:"0",offsetY:"px",blur:"0.5",spread:"0",opacity:"5",color:{type:"palette",value:"primary"}}],sm:[{offsetX:"0",offsetY:"px",blur:"0.5",spread:"0",opacity:"10",color:{type:"palette",value:"primary"}},{offsetX:"0",offsetY:"px",blur:"1",spread:"0",opacity:"10",color:{type:"palette",value:"primary"}}],md:[{offsetX:"0",offsetY:"1",blur:"1.5",spread:"-px",opacity:"10",color:{type:"palette",value:"primary"}},{offsetX:"0",offsetY:"0.5",blur:"1",spread:"-0.5",opacity:"10",color:{type:"palette",value:"primary"}}],lg:[{offsetX:"0",offsetY:"1",blur:"1.5",spread:"-1",opacity:"10",color:{type:"palette",value:"primary"}},{offsetX:"0",offsetY:"2.5",blur:"3.5",spread:"-0.5",opacity:"10",color:{type:"palette",value:"primary"}}],xl:[{offsetX:"0",offsetY:"2",blur:"2.5",spread:"-1.5",opacity:"10",color:{type:"palette",value:"primary"}},{offsetX:"0",offsetY:"5",blur:"6",spread:"-1",opacity:"10",color:{type:"palette",value:"primary"}}],"2xl":[{offsetX:"0",offsetY:"6",blur:"12",spread:"-3",opacity:"25",color:{type:"palette",value:"primary"}}],"xs-invert":[{offsetX:"0",offsetY:"px",blur:"0.5",spread:"0",opacity:"5",color:{type:"always",value:"white"}}],"sm-invert":[{offsetX:"0",offsetY:"px",blur:"0.5",spread:"0",opacity:"10",color:{type:"always",value:"white"}},{offsetX:"0",offsetY:"px",blur:"1",spread:"0",opacity:"10",color:{type:"always",value:"white"}}],"md-invert":[{offsetX:"0",offsetY:"1",blur:"1.5",spread:"-px",opacity:"10",color:{type:"always",value:"white"}},{offsetX:"0",offsetY:"0.5",blur:"1",spread:"-0.5",opacity:"10",color:{type:"always",value:"white"}}],"lg-invert":[{offsetX:"0",offsetY:"1",blur:"1.5",spread:"-1",opacity:"10",color:{type:"always",value:"white"}},{offsetX:"0",offsetY:"2.5",blur:"3.5",spread:"-0.5",opacity:"10",color:{type:"always",value:"white"}}],"xl-invert":[{offsetX:"0",offsetY:"2",blur:"2.5",spread:"-1.5",opacity:"10",color:{type:"always",value:"white"}},{offsetX:"0",offsetY:"5",blur:"6",spread:"-1",opacity:"10",color:{type:"always",value:"white"}}],"2xl-invert":[{offsetX:"0",offsetY:"6",blur:"12",spread:"-3",opacity:"25",color:{type:"always",value:"white"}}]}},zo={thin:"100",extralight:"200",light:"300",regular:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},Mo="system",Ro="system",Bo="light",Xo="large",Io=!1,Lo="🇺🇸 US",Do="https://s.yimg.com/bw/fonts",Ho=["Helvetica Neue","Helvetica","Arial","sans-serif"],Uo=["Georgia","Times","Times New Roman","serif"],Go={"centra-no2":{fallback:Ho,type:"sans",fontFamily:"Centra No2",isVariableFont:!1,fontSlants:void 0,fontWidths:void 0,fontWeights:[{label:"Hairline",value:50},{label:"Thin",value:100},{label:"Light",value:300},{label:"Book",value:400},{label:"Medium",value:500},{label:"Bold",value:700},{label:"ExtraBold",value:800},{label:"Black",value:900}],defaults:{fontSlant:void 0,fontWidth:void 0,fontWeight:400},declarations:[{fontStyle:"normal",fontWeight:"50",src:`url('${Do}/centra-no2-hairline.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"50",src:`url('${Do}/centra-no2-hairline-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"100",src:`url('${Do}/centra-no2-thin.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"100",src:`url('${Do}/centra-no2-thin-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"300",src:`url('${Do}/centra-no2-light.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"300",src:`url('${Do}/centra-no2-light-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"400",src:`url('${Do}/centra-no2-book.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"400",src:`url('${Do}/centra-no2-book-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"500",src:`url('${Do}/centra-no2-medium.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"500",src:`url('${Do}/centra-no2-medium-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"700",src:`url('${Do}/centra-no2-bold.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"700",src:`url('${Do}/centra-no2-bold-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"800",src:`url('${Do}/centra-no2-extrabold.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"800",src:`url('${Do}/centra-no2-extrabold-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"900",src:`url('${Do}/centra-no2-black.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"900",src:`url('${Do}/centra-no2-black-italic.woff2') format('woff2')`}]},inter:{fallback:Ho,type:"sans",fontFamily:"Inter",isVariableFont:!0,fontSlants:[{label:"Italic",value:-10},{label:"None",value:0}],fontWidths:void 0,fontWeights:[{label:"Thin",value:100},{label:"Extra Light",value:200},{label:"Light",value:300},{label:"Regular",value:400},{label:"Medium",value:500},{label:"Semi Bold",value:600},{label:"Bold",value:700},{label:"Extra Bold",value:800},{label:"Black",value:900}],defaults:{fontSlant:0,fontWidth:void 0,fontWeight:400},declarations:[{fontWeight:"1 1000",src:`url('${Do}/inter-vf.woff2') format('woff2')`}]},"roboto-mono":{fallback:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas","Liberation Mono","Courier New","monospace"],type:"mono",fontFamily:"Roboto Mono",isVariableFont:!1,fontSlants:void 0,fontWidths:void 0,fontWeights:[{label:"Thin",value:100},{label:"Light",value:300},{label:"Regular",value:400},{label:"Medium",value:500},{label:"Bold",value:700}],defaults:{fontSlant:void 0,fontWidth:void 0,fontWeight:400},declarations:[{fontStyle:"normal",fontWeight:"100",src:`url('${Do}/roboto-mono-100.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"100",src:`url('${Do}/roboto-mono-100-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"300",src:`url('${Do}/roboto-mono-300.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"300",src:`url('${Do}/roboto-mono-300-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"400",src:`url('${Do}/roboto-mono-400.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"400",src:`url('${Do}/roboto-mono-400-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"500",src:`url('${Do}/roboto-mono-500.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"500",src:`url('${Do}/roboto-mono-500-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"700",src:`url('${Do}/roboto-mono-700.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"700",src:`url('${Do}/roboto-mono-700-italic.woff2') format('woff2')`}]},"yahoo-sans":{fallback:Ho,type:"sans",fontFamily:"Yahoo Sans",isVariableFont:!0,fontSlants:void 0,fontWidths:void 0,fontWeights:[{label:"ExtraLight",value:200},{label:"Light",value:300},{label:"Regular",value:400},{label:"Medium",value:500},{label:"Semibold",value:585},{label:"Bold",value:700},{label:"ExtraBold",value:810},{label:"Black",value:900}],defaults:{fontSlant:void 0,fontWidth:void 0,fontWeight:400},declarations:[{fontWeight:"1 1000",src:`url('${Do}/yahoo-sans-vf.woff2') format('woff2')`}]},"yahoo-sans-cr4":{fallback:Ho,type:"sans",fontFamily:"Yahoo CR4 BETA VF",isVariableFont:!0,fontSlants:void 0,fontWidths:void 0,fontWeights:[{label:"Regular",value:400},{label:"Medium",value:500},{label:"Bold",value:700}],defaults:{fontSlant:void 0,fontWidth:void 0,fontWeight:450},declarations:[{fontWeight:"1 1000",src:`url('${Do}/yahoo-sans-cr4-vf.woff2') format('woff2')`}]},"yahoo-product-sans":{fallback:Ho,type:"sans",fontFamily:"Yahoo Product Sans VF",isVariableFont:!0,fontSlants:void 0,fontWidths:void 0,fontWeights:[{label:"Regular",value:400},{label:"Medium",value:500},{label:"Bold",value:700}],defaults:{fontSlant:void 0,fontWidth:void 0,fontWeight:450},declarations:[{fontWeight:"1 1000",src:`url('${Do}/yahoo-product-sans-vf.woff2') format('woff2-variations')`}]},"yahoo-product-sans-extended":{fallback:Ho,type:"sans",fontFamily:"YahooPd_Eval202412",isVariableFont:!0,fontSlants:[{label:"Italic",value:9},{label:"None",value:0}],fontWidths:[{label:"Cond",value:50},{label:"Normal",value:75},{label:"Ext",value:100}],fontWeights:[{label:"Light",value:300},{label:"Regular",value:450},{label:"Medium",value:500},{label:"Semibold",value:600},{label:"Bold",value:700},{label:"Black",value:850}],defaults:{fontSlant:0,fontWidth:75,fontWeight:450},declarations:[{fontWeight:"1 1000",src:`url('${Do}/YahooPd_Eval202412-v1.1.0.woff2') format("woff2 supports variations"), url('${Do}/YahooPd_Eval202412-v1.1.0.woff2') format('woff2-variations')`}]},"yahoo-sans-condensed":{fallback:Ho,type:"sans",fontFamily:"Yahoo Sans Cond",isVariableFont:!0,fontSlants:void 0,fontWidths:void 0,fontWeights:[{label:"Light",value:300},{label:"Regular",value:400},{label:"Medium",value:500},{label:"Bold",value:718},{label:"XBold",value:800},{label:"Black",value:900}],defaults:{fontSlant:void 0,fontWidth:void 0,fontWeight:400},declarations:[{fontWeight:"1 1000",src:`url('${Do}/yahoo-sans-condensed-vf.woff2') format('woff2')`}]},"yahoo-serif-display":{fallback:Uo,type:"serif",fontFamily:"Yahoo Serif Display",isVariableFont:!1,fontSlants:void 0,fontWidths:void 0,fontWeights:[{label:"Light",value:300},{label:"Regular",value:400},{label:"Bold",value:700},{label:"Extrabold",value:800},{label:"Black",value:900}],defaults:{fontSlant:void 0,fontWidth:void 0,fontWeight:400},declarations:[{fontStyle:"normal",fontWeight:"300",src:`url('${Do}/yahoo-serif-display-light.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"400",src:`url('${Do}/yahoo-serif-display-regular.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"700",src:`url('${Do}/yahoo-serif-display-bold.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"800",src:`url('${Do}/yahoo-serif-display-extrabold.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"900",src:`url('${Do}/yahoo-serif-display-black.woff2') format('woff2')`}]},"yahoo-serif-text":{fallback:Uo,type:"serif",fontFamily:"Yahoo Serif Text",isVariableFont:!1,fontSlants:void 0,fontWidths:void 0,fontWeights:[{label:"Regular",value:400},{label:"Bold",value:700}],defaults:{fontSlant:void 0,fontWidth:void 0,fontWeight:400},declarations:[{fontStyle:"normal",fontWeight:"400",src:`url('${Do}/yahoo-serif-text-regular.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"400",src:`url('${Do}/yahoo-serif-text-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"700",src:`url('${Do}/yahoo-serif-text-bold.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"700",src:`url('${Do}/yahoo-serif-text-bold-italic.woff2') format('woff2')`}]}};function Qo({palette:e="accent",variant:t="primary"}){return"accent"===e?t:"primary"===t?e:`${e}-${t}`}function qo(e){return Object.fromEntries(e)}var Zo={black:"0 0 0",white:"255 255 255"};function Jo({preset:e,prefix:t,shadowType:o}){const r=`--uds-${o}-shadow-`,a="palette"===e.color?.type,n="always"===e.color?.type;let s=`var(--uds-${a?"shadow":"spectrum"}-color-${e?.color?.value})`;n&&(s=Zo[e.color.value]);const i=`var(${r}${t?`${t}-`:""}color, ${s})`;return`${"inset"===o?"inset ":""}${[`${Y[e.offsetX]}px`,`${Y[e.offsetY]}px`,`${z[e.blur]}px`,`${M[e.spread]}px`].map(e=>e).join(" ")} ${`rgb(${i} / var(${r}${t?`${t}-`:""}opacity, ${Number(e.opacity)/100}))`}`}function er({config:e,shadowType:o}){const r=e?.shadow?.[o];if(!r)return{};const a={};return t(r).forEach(([e,t])=>{if("none"===e)return void(a[`--uds-${o}-shadow-${e}`]="0 0 transparent");const r=t.map((e,t)=>Jo({preset:e,prefix:t>0?`${t+1}`:void 0,shadowType:o}));a[`--uds-${o}-shadow-${e}`]=`${r.join(", ")}`}),a}var tr=e=>(t,o)=>`typography.${e}.${Nt(o)}`,or=(e,t)=>{switch(e){case"alwaysPaletteAliases":return`colors.${t}`;case"spectrumColors":{const[e,o]=t.split("-");return`colors.${e}.${o}`}case"foregroundPaletteColors":return`textColor.${t}`;case"backgroundPaletteColors":return`backgroundColor.${t}`;case"linePaletteColors":return`borderColor.${t}`}return kt()},rr=({componentName:e,layer:t,propertyKey:o})=>!("chip"!==e||"root"!==t||!["borderColor","borderWidth"].includes(o))||!("input"!==e||"inputWrapper"!==t||!["borderColor","borderWidth"].includes(o)),ar={name:"backgroundColor",cssProperties:"background-color",twThemePath:or,possibleFixtures:["backgroundPaletteColors","spectrumColors","alwaysPaletteAliases"]},nr={name:"fontSize",cssProperties:"font-size",twThemePath:tr("fontSize"),possibleFixtures:["textVariants"]},sr={name:"fontVariationSettings",cssProperties:"font-variation-settings",twThemePath:()=>"",possibleFixtures:["textVariants"],customValueRenderer:e=>{const{value:t}=e,o=Nt(t);return`"wght" var(--uds-font-weight-${o}), "slnt" var(--uds-font-slant-${o}), "wdth" var(--uds-font-width-${o});`}},ir={name:"fontWeight",cssProperties:"font-weight",twThemePath:tr("fontWeight"),possibleFixtures:["textVariants"]},lr={name:"fontFamily",cssProperties:"font-family",twThemePath:tr("fontFamily"),possibleFixtures:["textVariants"]},fr={name:"color",cssProperties:"color",twThemePath:or,possibleFixtures:["alwaysPaletteAliases","spectrumColors","foregroundPaletteColors"]},ur={name:"borderWidth",cssProperties:"border-width",twThemePath:(e,t)=>"borderWidths"===e?`borderWidth[${t}]`:`spacing[${t}]`,possibleFixtures:["borderWidths","spacingAliases"],extendedProperties:e=>rr(e)&&["outlineWidth","insetOutlineOffset","solidOutline"]},cr={name:"borderColor",cssProperties:"border-color",twThemePath:or,possibleFixtures:["alwaysPaletteAliases","spectrumColors","linePaletteColors"],extendedProperties:e=>rr(e)&&["outlineColor"]},dr={name:"outlineColor",cssProperties:"outline-color",twThemePath:or,possibleFixtures:["alwaysPaletteAliases","spectrumColors","linePaletteColors"]},pr={name:"textTransform",cssProperties:"text-transform",twThemePath:tr("textTransform"),possibleFixtures:["textVariants"]},hr={...{backgroundColor:ar,borderWidth:ur,borderRadius:{name:"borderRadius",cssProperties:"border-radius",twThemePath:(e,t)=>`borderRadius.${t}`,possibleFixtures:["borderRadii"]},borderColor:cr,fontFamily:lr,fontSize:nr,fontVariationSettings:sr,lineHeight:{name:"lineHeight",cssProperties:"line-height",twThemePath:tr("lineHeight"),possibleFixtures:["textVariants"]},textTransform:pr,letterSpacing:{name:"letterSpacing",cssProperties:"letter-spacing",twThemePath:tr("letterSpacing"),possibleFixtures:["textVariants"]},padding:{name:"padding",cssProperties:"padding",twThemePath:(e,t)=>`spacing[${t}]`,possibleFixtures:["spacingAliases"]},gap:{name:"gap",cssProperties:"gap",twThemePath:(e,t)=>`spacing[${t}]`,possibleFixtures:["spacingAliases"]},color:fr,opacity:{name:"opacity",cssProperties:"opacity",twThemePath:(e,t)=>`opacity[${t}]`,possibleFixtures:["opacitySteps"]},fontWeight:ir,iconSize:{name:"iconSize",cssProperties:["width","height"],twThemePath:(e,t)=>`sizing.icon.${t}`,possibleFixtures:["iconSizes"]},spacingHorizontal:{name:"spacingHorizontal",cssProperties:["padding-right","padding-left"],twThemePath:(e,t)=>`spacing[${t}]`,possibleFixtures:["spacingAliases"]},spacingVertical:{name:"spacingVertical",cssProperties:["padding-top","padding-bottom"],twThemePath:(e,t)=>`spacing[${t}]`,possibleFixtures:["spacingAliases"]},textVariant:{name:"textVariant",cssProperties:[],twThemePath:()=>"",possibleFixtures:["textVariants"],extendedProperties:["fontSize","fontWeight","fontFamily","lineHeight","textTransform","fontVariationSettings","letterSpacing"]},textDecorationLine:{name:"textDecorationLine",cssProperties:"text-decoration-line",possibleFixtures:["textDecorationLines"],twThemePath:()=>"",customValueRenderer:e=>String(e.value)},shadow:{name:"drop shadow",cssProperties:"box-shadow",twThemePath:()=>"",concatenate:!0,customValueRenderer:e=>{const t="drop";if("alias"===e.valueType){const o="0 0 0 transparent";if("none"===e.value)return o;if("custom"!==e.value)return`var(--uds-${t}-shadow-${e.value})`}else if("custom"===e.valueType){const o=e.value.map((e,o)=>Jo({preset:e,shadowType:t,prefix:o>0?`${o+1}`:void 0}));return o?.join(", ")||"0 0 0 transparent"}throw new Error("Invalid valueType")},possibleFixtures:["shadowVariants"]},insetShadow:{name:"inset shadow",cssProperties:"box-shadow",twThemePath:()=>"",concatenate:!0,customValueRenderer:e=>{const t="inset";if("alias"===e.valueType){const o="0 0 0 transparent";if("none"===e.value)return o;if("custom"!==e.value)return`var(--uds-${t}-shadow-${e.value})`}else if("custom"===e.valueType){const o=e.value.map((e,o)=>Jo({preset:e,shadowType:t,prefix:o>0?`${o+1}`:void 0}));return o?.join(", ")||"0 0 0 transparent"}throw new Error("Invalid valueType")},possibleFixtures:["shadowVariantsWithInvert"]},height:{name:"height",cssProperties:"height",twThemePath:(e,t)=>`height[${t}]`,possibleFixtures:["spacingAliases"]},width:{name:"width",cssProperties:"width",twThemePath:(e,t)=>`width[${t}]`,possibleFixtures:["spacingAliases"]},scaleEffect:{name:"scaleEffect",cssProperties:j,possibleFixtures:["scaleEffects"],twThemePath:()=>"",customValueRenderer:e=>{const t=String(e.value);return"up"===t?"1.03":"down"===t?"0.97":"1"}}},...{outlineWidth:{name:"outlineWidth",cssProperties:"outline-width",twThemePath:(e,t)=>"borderWidths"===e?`borderWidth[${t}]`:`spacing[${t}]`,possibleFixtures:["borderWidths","spacingAliases"]},outlineColor:dr,insetOutlineOffset:{name:"insetOutlineOffset",cssProperties:"outline-offset",twThemePath:()=>"",customValueRenderer:({value:e,type:t},o,r)=>`calc(-1 * ${r("borderWidths"===t?`borderWidth[${e}]`:`spacing[${e}]`)})`,possibleFixtures:["borderWidths","spacingAliases"]},solidOutline:{name:"solidOutline",cssProperties:"outline-style",twThemePath:()=>"",customValueRenderer:()=>"solid",possibleFixtures:[]}}};export{Bo as DEFAULT_COLOR_MODE,Mo as DEFAULT_COLOR_MODE_FOR_APP,Io as DEFAULT_HIGH_CONTRAST_MODE,Lo as DEFAULT_REGION_MODE,Xo as DEFAULT_SCALE_MODE,Ro as DEFAULT_SCALE_MODE_FOR_APP,Go as FONT_DECLARATIONS_MAP,Rt as RESPONSIVE_TAILWIND_CONFIG_MAP,kt as assertUnreachable,Qt as cartesianProduct,qt as coalesceConfigVariant,hr as configurableProperties,No as createComponentStates,Ao as createConfigurableProperty,Eo as createLayerConfig,Ko as createSubComponentConfig,Vo as createVariantConfig,ko as createVariantConfigWithComponentStates,Fo as createVariantConfigWithProperties,$o as findFixtureType,zo as fontWeightMap,qo as fromEntries,Wo as generateClassName,Oo as generateConfigStyles,Co as generateDeclaration,Po as generateDefaultClassName,eo as generateKeyFromFlatConfigPath,Ht as generateSchemaKey,To as generateStyles,Bt as getBaseTextVars,Zt as getConfigDefaultValue,po as getConfigPseudoStateVariables,vo as getConfigPseudoStateVariablesWithSetter,fo as getConfigSubcomponents,ro as getConfigVariantComponentStates,ao as getConfigVariantComponentStatesMatrix,no as getConfigVariantProperties,io as getConfigVariantPseudoStates,uo as getConfigVariants,Xt as getResponsiveTextStyles,Jo as getShadowLayerValue,er as getShadowPresetValues,Jt as isConfigDefaultValue,Qo as parseButtonVariantFlat,R as require_isString,ho as setConfigPseudoStateVariable,Yo as shadow,jo as statePseudoMapDocsMode,Nt as textVariantsSafe,So as toMinimalDbConfigObject};
1
+ import{mapValues as e,entries as t}from"./chunk-AZXEQF7C.js";import{require_isArray as o,require_createCompounder as r,require_getNative as a,require_Map as n,require_overArg as s,require_isPrototype as i,require_isArrayLike as l,require_isArguments as f,require_isBuffer as u,require_isTypedArray as c,require_isFunction as d,require_arrayMap as p,require_getTag as h,require_baseKeys as v,require_baseUnary as m,require_nodeUtil as y}from"./chunk-EUHS2LRV.js";import{require_baseGetTag as b,require_isObjectLike as _,require_root as g,require_isObject as w,require_Symbol as x,BUTTON_SCALE_EFFECT as j,LETTER_SPACING_PREFIX as $,TEXT_TRANSFORM_PREFIX as S,LINE_HEIGHT_PREFIX as P,FONT_SIZE_PREFIX as W,FONT_WIDTH_PREFIX as C,FONT_SLANT_PREFIX as O,FONT_WEIGHT_PREFIX as A,FONT_FAMILY_PREFIX as T,TEXT_RESPONSIVE_CLASSNAME as V,BUTTON_GAP_VAR as F,TEXT_RESPONSIVE_BREAKPOINT_CLASSNAMES as k}from"./chunk-O7UVSJ5U.js";import{__commonJS as N,__toESM as E}from"./chunk-GF4A6TFM.js";import{textVariants as K,shadowOffsetMap as Y,spacingMap as z,shadowSpreadRadiusMap as R}from"@yahoo/uds/fixtures";/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */
2
+ var M=N({"../../node_modules/lodash/isString.js"(e,t){var r=b(),a=o(),n=_();t.exports=function(e){return"string"==typeof e||!a(e)&&n(e)&&"[object String]"==r(e)}}}),B=N({"../../node_modules/lodash/lowerCase.js"(e,t){var o=r()(function(e,t,o){return e+(o?" ":"")+t.toLowerCase()});t.exports=o}}),X=N({"../../node_modules/lodash/_listCacheClear.js"(e,t){t.exports=function(){this.__data__=[],this.size=0}}}),I=N({"../../node_modules/lodash/eq.js"(e,t){t.exports=function(e,t){return e===t||e!=e&&t!=t}}}),L=N({"../../node_modules/lodash/_assocIndexOf.js"(e,t){var o=I();t.exports=function(e,t){for(var r=e.length;r--;)if(o(e[r][0],t))return r;return-1}}}),D=N({"../../node_modules/lodash/_listCacheDelete.js"(e,t){var o=L(),r=Array.prototype.splice;t.exports=function(e){var t=this.__data__,a=o(t,e);return!(a<0)&&(a==t.length-1?t.pop():r.call(t,a,1),--this.size,!0)}}}),H=N({"../../node_modules/lodash/_listCacheGet.js"(e,t){var o=L();t.exports=function(e){var t=this.__data__,r=o(t,e);return r<0?void 0:t[r][1]}}}),U=N({"../../node_modules/lodash/_listCacheHas.js"(e,t){var o=L();t.exports=function(e){return o(this.__data__,e)>-1}}}),G=N({"../../node_modules/lodash/_listCacheSet.js"(e,t){var o=L();t.exports=function(e,t){var r=this.__data__,a=o(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this}}}),q=N({"../../node_modules/lodash/_ListCache.js"(e,t){var o=X(),r=D(),a=H(),n=U(),s=G();function i(e){var t=-1,o=null==e?0:e.length;for(this.clear();++t<o;){var r=e[t];this.set(r[0],r[1])}}i.prototype.clear=o,i.prototype.delete=r,i.prototype.get=a,i.prototype.has=n,i.prototype.set=s,t.exports=i}}),J=N({"../../node_modules/lodash/_stackClear.js"(e,t){var o=q();t.exports=function(){this.__data__=new o,this.size=0}}}),Q=N({"../../node_modules/lodash/_stackDelete.js"(e,t){t.exports=function(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o}}}),Z=N({"../../node_modules/lodash/_stackGet.js"(e,t){t.exports=function(e){return this.__data__.get(e)}}}),ee=N({"../../node_modules/lodash/_stackHas.js"(e,t){t.exports=function(e){return this.__data__.has(e)}}}),te=N({"../../node_modules/lodash/_nativeCreate.js"(e,t){var o=a()(Object,"create");t.exports=o}}),oe=N({"../../node_modules/lodash/_hashClear.js"(e,t){var o=te();t.exports=function(){this.__data__=o?o(null):{},this.size=0}}}),re=N({"../../node_modules/lodash/_hashDelete.js"(e,t){t.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}}}),ae=N({"../../node_modules/lodash/_hashGet.js"(e,t){var o=te(),r=Object.prototype.hasOwnProperty;t.exports=function(e){var t=this.__data__;if(o){var a=t[e];return"__lodash_hash_undefined__"===a?void 0:a}return r.call(t,e)?t[e]:void 0}}}),ne=N({"../../node_modules/lodash/_hashHas.js"(e,t){var o=te(),r=Object.prototype.hasOwnProperty;t.exports=function(e){var t=this.__data__;return o?void 0!==t[e]:r.call(t,e)}}}),se=N({"../../node_modules/lodash/_hashSet.js"(e,t){var o=te();t.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=o&&void 0===t?"__lodash_hash_undefined__":t,this}}}),ie=N({"../../node_modules/lodash/_Hash.js"(e,t){var o=oe(),r=re(),a=ae(),n=ne(),s=se();function i(e){var t=-1,o=null==e?0:e.length;for(this.clear();++t<o;){var r=e[t];this.set(r[0],r[1])}}i.prototype.clear=o,i.prototype.delete=r,i.prototype.get=a,i.prototype.has=n,i.prototype.set=s,t.exports=i}}),le=N({"../../node_modules/lodash/_mapCacheClear.js"(e,t){var o=ie(),r=q(),a=n();t.exports=function(){this.size=0,this.__data__={hash:new o,map:new(a||r),string:new o}}}}),fe=N({"../../node_modules/lodash/_isKeyable.js"(e,t){t.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}}}),ue=N({"../../node_modules/lodash/_getMapData.js"(e,t){var o=fe();t.exports=function(e,t){var r=e.__data__;return o(t)?r["string"==typeof t?"string":"hash"]:r.map}}}),ce=N({"../../node_modules/lodash/_mapCacheDelete.js"(e,t){var o=ue();t.exports=function(e){var t=o(this,e).delete(e);return this.size-=t?1:0,t}}}),de=N({"../../node_modules/lodash/_mapCacheGet.js"(e,t){var o=ue();t.exports=function(e){return o(this,e).get(e)}}}),pe=N({"../../node_modules/lodash/_mapCacheHas.js"(e,t){var o=ue();t.exports=function(e){return o(this,e).has(e)}}}),he=N({"../../node_modules/lodash/_mapCacheSet.js"(e,t){var o=ue();t.exports=function(e,t){var r=o(this,e),a=r.size;return r.set(e,t),this.size+=r.size==a?0:1,this}}}),ve=N({"../../node_modules/lodash/_MapCache.js"(e,t){var o=le(),r=ce(),a=de(),n=pe(),s=he();function i(e){var t=-1,o=null==e?0:e.length;for(this.clear();++t<o;){var r=e[t];this.set(r[0],r[1])}}i.prototype.clear=o,i.prototype.delete=r,i.prototype.get=a,i.prototype.has=n,i.prototype.set=s,t.exports=i}}),me=N({"../../node_modules/lodash/_stackSet.js"(e,t){var o=q(),r=n(),a=ve();t.exports=function(e,t){var n=this.__data__;if(n instanceof o){var s=n.__data__;if(!r||s.length<199)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(s)}return n.set(e,t),this.size=n.size,this}}}),ye=N({"../../node_modules/lodash/_Stack.js"(e,t){var o=q(),r=J(),a=Q(),n=Z(),s=ee(),i=me();function l(e){var t=this.__data__=new o(e);this.size=t.size}l.prototype.clear=r,l.prototype.delete=a,l.prototype.get=n,l.prototype.has=s,l.prototype.set=i,t.exports=l}}),be=N({"../../node_modules/lodash/_defineProperty.js"(e,t){var o=a(),r=function(){try{var e=o(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();t.exports=r}}),_e=N({"../../node_modules/lodash/_baseAssignValue.js"(e,t){var o=be();t.exports=function(e,t,r){"__proto__"==t&&o?o(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}}}),ge=N({"../../node_modules/lodash/_assignMergeValue.js"(e,t){var o=_e(),r=I();t.exports=function(e,t,a){(void 0!==a&&!r(e[t],a)||void 0===a&&!(t in e))&&o(e,t,a)}}}),we=N({"../../node_modules/lodash/_createBaseFor.js"(e,t){t.exports=function(e){return function(t,o,r){for(var a=-1,n=Object(t),s=r(t),i=s.length;i--;){var l=s[e?i:++a];if(!1===o(n[l],l,n))break}return t}}}}),xe=N({"../../node_modules/lodash/_baseFor.js"(e,t){var o=we()();t.exports=o}}),je=N({"../../node_modules/lodash/_cloneBuffer.js"(e,t){var o=g(),r="object"==typeof e&&e&&!e.nodeType&&e,a=r&&"object"==typeof t&&t&&!t.nodeType&&t,n=a&&a.exports===r?o.Buffer:void 0,s=n?n.allocUnsafe:void 0;t.exports=function(e,t){if(t)return e.slice();var o=e.length,r=s?s(o):new e.constructor(o);return e.copy(r),r}}}),$e=N({"../../node_modules/lodash/_Uint8Array.js"(e,t){var o=g().Uint8Array;t.exports=o}}),Se=N({"../../node_modules/lodash/_cloneArrayBuffer.js"(e,t){var o=$e();t.exports=function(e){var t=new e.constructor(e.byteLength);return new o(t).set(new o(e)),t}}}),Pe=N({"../../node_modules/lodash/_cloneTypedArray.js"(e,t){var o=Se();t.exports=function(e,t){var r=t?o(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}}}),We=N({"../../node_modules/lodash/_copyArray.js"(e,t){t.exports=function(e,t){var o=-1,r=e.length;for(t||(t=Array(r));++o<r;)t[o]=e[o];return t}}}),Ce=N({"../../node_modules/lodash/_baseCreate.js"(e,t){var o=w(),r=Object.create,a=function(){function e(){}return function(t){if(!o(t))return{};if(r)return r(t);e.prototype=t;var a=new e;return e.prototype=void 0,a}}();t.exports=a}}),Oe=N({"../../node_modules/lodash/_getPrototype.js"(e,t){var o=s()(Object.getPrototypeOf,Object);t.exports=o}}),Ae=N({"../../node_modules/lodash/_initCloneObject.js"(e,t){var o=Ce(),r=Oe(),a=i();t.exports=function(e){return"function"!=typeof e.constructor||a(e)?{}:o(r(e))}}}),Te=N({"../../node_modules/lodash/isArrayLikeObject.js"(e,t){var o=l(),r=_();t.exports=function(e){return r(e)&&o(e)}}}),Ve=N({"../../node_modules/lodash/isPlainObject.js"(e,t){var o=b(),r=Oe(),a=_(),n=Function.prototype,s=Object.prototype,i=n.toString,l=s.hasOwnProperty,f=i.call(Object);t.exports=function(e){if(!a(e)||"[object Object]"!=o(e))return!1;var t=r(e);if(null===t)return!0;var n=l.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&i.call(n)==f}}}),Fe=N({"../../node_modules/lodash/_safeGet.js"(e,t){t.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}}}),ke=N({"../../node_modules/lodash/_assignValue.js"(e,t){var o=_e(),r=I(),a=Object.prototype.hasOwnProperty;t.exports=function(e,t,n){var s=e[t];a.call(e,t)&&r(s,n)&&(void 0!==n||t in e)||o(e,t,n)}}}),Ne=N({"../../node_modules/lodash/_copyObject.js"(e,t){var o=ke(),r=_e();t.exports=function(e,t,a,n){var s=!a;a||(a={});for(var i=-1,l=t.length;++i<l;){var f=t[i],u=n?n(a[f],e[f],f,a,e):void 0;void 0===u&&(u=e[f]),s?r(a,f,u):o(a,f,u)}return a}}}),Ee=N({"../../node_modules/lodash/_baseTimes.js"(e,t){t.exports=function(e,t){for(var o=-1,r=Array(e);++o<e;)r[o]=t(o);return r}}}),Ke=N({"../../node_modules/lodash/_isIndex.js"(e,t){var o=/^(?:0|[1-9]\d*)$/;t.exports=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&o.test(e))&&e>-1&&e%1==0&&e<t}}}),Ye=N({"../../node_modules/lodash/_arrayLikeKeys.js"(e,t){var r=Ee(),a=f(),n=o(),s=u(),i=Ke(),l=c(),d=Object.prototype.hasOwnProperty;t.exports=function(e,t){var o=n(e),f=!o&&a(e),u=!o&&!f&&s(e),c=!o&&!f&&!u&&l(e),p=o||f||u||c,h=p?r(e.length,String):[],v=h.length;for(var m in e)!t&&!d.call(e,m)||p&&("length"==m||u&&("offset"==m||"parent"==m)||c&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||i(m,v))||h.push(m);return h}}}),ze=N({"../../node_modules/lodash/_nativeKeysIn.js"(e,t){t.exports=function(e){var t=[];if(null!=e)for(var o in Object(e))t.push(o);return t}}}),Re=N({"../../node_modules/lodash/_baseKeysIn.js"(e,t){var o=w(),r=i(),a=ze(),n=Object.prototype.hasOwnProperty;t.exports=function(e){if(!o(e))return a(e);var t=r(e),s=[];for(var i in e)("constructor"!=i||!t&&n.call(e,i))&&s.push(i);return s}}}),Me=N({"../../node_modules/lodash/keysIn.js"(e,t){var o=Ye(),r=Re(),a=l();t.exports=function(e){return a(e)?o(e,!0):r(e)}}}),Be=N({"../../node_modules/lodash/toPlainObject.js"(e,t){var o=Ne(),r=Me();t.exports=function(e){return o(e,r(e))}}}),Xe=N({"../../node_modules/lodash/_baseMergeDeep.js"(e,t){var r=ge(),a=je(),n=Pe(),s=We(),i=Ae(),l=f(),p=o(),h=Te(),v=u(),m=d(),y=w(),b=Ve(),_=c(),g=Fe(),x=Be();t.exports=function(e,t,o,f,u,c,d){var w=g(e,o),j=g(t,o),$=d.get(j);if($)r(e,o,$);else{var S=c?c(w,j,o+"",e,t,d):void 0,P=void 0===S;if(P){var W=p(j),C=!W&&v(j),O=!W&&!C&&_(j);S=j,W||C||O?p(w)?S=w:h(w)?S=s(w):C?(P=!1,S=a(j,!0)):O?(P=!1,S=n(j,!0)):S=[]:b(j)||l(j)?(S=w,l(w)?S=x(w):y(w)&&!m(w)||(S=i(j))):P=!1}P&&(d.set(j,S),u(S,j,f,c,d),d.delete(j)),r(e,o,S)}}}}),Ie=N({"../../node_modules/lodash/_baseMerge.js"(e,t){var o=ye(),r=ge(),a=xe(),n=Xe(),s=w(),i=Me(),l=Fe();t.exports=function e(t,f,u,c,d){t!==f&&a(f,function(a,i){if(d||(d=new o),s(a))n(t,f,i,u,e,c,d);else{var p=c?c(l(t,i),a,i+"",t,f,d):void 0;void 0===p&&(p=a),r(t,i,p)}},i)}}}),Le=N({"../../node_modules/lodash/identity.js"(e,t){t.exports=function(e){return e}}}),De=N({"../../node_modules/lodash/_apply.js"(e,t){t.exports=function(e,t,o){switch(o.length){case 0:return e.call(t);case 1:return e.call(t,o[0]);case 2:return e.call(t,o[0],o[1]);case 3:return e.call(t,o[0],o[1],o[2])}return e.apply(t,o)}}}),He=N({"../../node_modules/lodash/_overRest.js"(e,t){var o=De(),r=Math.max;t.exports=function(e,t,a){return t=r(void 0===t?e.length-1:t,0),function(){for(var n=arguments,s=-1,i=r(n.length-t,0),l=Array(i);++s<i;)l[s]=n[t+s];s=-1;for(var f=Array(t+1);++s<t;)f[s]=n[s];return f[t]=a(l),o(e,this,f)}}}}),Ue=N({"../../node_modules/lodash/constant.js"(e,t){t.exports=function(e){return function(){return e}}}}),Ge=N({"../../node_modules/lodash/_baseSetToString.js"(e,t){var o=Ue(),r=be(),a=Le(),n=r?function(e,t){return r(e,"toString",{configurable:!0,enumerable:!1,value:o(t),writable:!0})}:a;t.exports=n}}),qe=N({"../../node_modules/lodash/_shortOut.js"(e,t){var o=Date.now;t.exports=function(e){var t=0,r=0;return function(){var a=o(),n=16-(a-r);if(r=a,n>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}}}),Je=N({"../../node_modules/lodash/_setToString.js"(e,t){var o=Ge(),r=qe()(o);t.exports=r}}),Qe=N({"../../node_modules/lodash/_baseRest.js"(e,t){var o=Le(),r=He(),a=Je();t.exports=function(e,t){return a(r(e,t,o),e+"")}}}),Ze=N({"../../node_modules/lodash/_isIterateeCall.js"(e,t){var o=I(),r=l(),a=Ke(),n=w();t.exports=function(e,t,s){if(!n(s))return!1;var i=typeof t;return!!("number"==i?r(s)&&a(t,s.length):"string"==i&&t in s)&&o(s[t],e)}}}),et=N({"../../node_modules/lodash/_createAssigner.js"(e,t){var o=Qe(),r=Ze();t.exports=function(e){return o(function(t,o){var a=-1,n=o.length,s=n>1?o[n-1]:void 0,i=n>2?o[2]:void 0;for(s=e.length>3&&"function"==typeof s?(n--,s):void 0,i&&r(o[0],o[1],i)&&(s=n<3?void 0:s,n=1),t=Object(t);++a<n;){var l=o[a];l&&e(t,l,a,s)}return t})}}}),tt=N({"../../node_modules/lodash/mergeWith.js"(e,t){var o=Ie(),r=et()(function(e,t,r,a){o(e,t,r,a)});t.exports=r}}),ot=N({"../../node_modules/lodash/_baseToPairs.js"(e,t){var o=p();t.exports=function(e,t){return o(t,function(t){return[t,e[t]]})}}}),rt=N({"../../node_modules/lodash/_mapToArray.js"(e,t){t.exports=function(e){var t=-1,o=Array(e.size);return e.forEach(function(e,r){o[++t]=[r,e]}),o}}}),at=N({"../../node_modules/lodash/_setToPairs.js"(e,t){t.exports=function(e){var t=-1,o=Array(e.size);return e.forEach(function(e){o[++t]=[e,e]}),o}}}),nt=N({"../../node_modules/lodash/_createToPairs.js"(e,t){var o=ot(),r=h(),a=rt(),n=at();t.exports=function(e){return function(t){var s=r(t);return"[object Map]"==s?a(t):"[object Set]"==s?n(t):o(t,e(t))}}}}),st=N({"../../node_modules/lodash/keys.js"(e,t){var o=Ye(),r=v(),a=l();t.exports=function(e){return a(e)?o(e):r(e)}}}),it=N({"../../node_modules/lodash/toPairs.js"(e,t){var o=nt()(st());t.exports=o}}),lt=N({"../../node_modules/lodash/entries.js"(e,t){t.exports=it()}}),ft=N({"../../node_modules/lodash/_arrayEach.js"(e,t){t.exports=function(e,t){for(var o=-1,r=null==e?0:e.length;++o<r&&!1!==t(e[o],o,e););return e}}}),ut=N({"../../node_modules/lodash/_baseAssign.js"(e,t){var o=Ne(),r=st();t.exports=function(e,t){return e&&o(t,r(t),e)}}}),ct=N({"../../node_modules/lodash/_baseAssignIn.js"(e,t){var o=Ne(),r=Me();t.exports=function(e,t){return e&&o(t,r(t),e)}}}),dt=N({"../../node_modules/lodash/_arrayFilter.js"(e,t){t.exports=function(e,t){for(var o=-1,r=null==e?0:e.length,a=0,n=[];++o<r;){var s=e[o];t(s,o,e)&&(n[a++]=s)}return n}}}),pt=N({"../../node_modules/lodash/stubArray.js"(e,t){t.exports=function(){return[]}}}),ht=N({"../../node_modules/lodash/_getSymbols.js"(e,t){var o=dt(),r=pt(),a=Object.prototype.propertyIsEnumerable,n=Object.getOwnPropertySymbols,s=n?function(e){return null==e?[]:(e=Object(e),o(n(e),function(t){return a.call(e,t)}))}:r;t.exports=s}}),vt=N({"../../node_modules/lodash/_copySymbols.js"(e,t){var o=Ne(),r=ht();t.exports=function(e,t){return o(e,r(e),t)}}}),mt=N({"../../node_modules/lodash/_arrayPush.js"(e,t){t.exports=function(e,t){for(var o=-1,r=t.length,a=e.length;++o<r;)e[a+o]=t[o];return e}}}),yt=N({"../../node_modules/lodash/_getSymbolsIn.js"(e,t){var o=mt(),r=Oe(),a=ht(),n=pt(),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)o(t,a(e)),e=r(e);return t}:n;t.exports=s}}),bt=N({"../../node_modules/lodash/_copySymbolsIn.js"(e,t){var o=Ne(),r=yt();t.exports=function(e,t){return o(e,r(e),t)}}}),_t=N({"../../node_modules/lodash/_baseGetAllKeys.js"(e,t){var r=mt(),a=o();t.exports=function(e,t,o){var n=t(e);return a(e)?n:r(n,o(e))}}}),gt=N({"../../node_modules/lodash/_getAllKeys.js"(e,t){var o=_t(),r=ht(),a=st();t.exports=function(e){return o(e,a,r)}}}),wt=N({"../../node_modules/lodash/_getAllKeysIn.js"(e,t){var o=_t(),r=yt(),a=Me();t.exports=function(e){return o(e,a,r)}}}),xt=N({"../../node_modules/lodash/_initCloneArray.js"(e,t){var o=Object.prototype.hasOwnProperty;t.exports=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&o.call(e,"index")&&(r.index=e.index,r.input=e.input),r}}}),jt=N({"../../node_modules/lodash/_cloneDataView.js"(e,t){var o=Se();t.exports=function(e,t){var r=t?o(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}}}),$t=N({"../../node_modules/lodash/_cloneRegExp.js"(e,t){var o=/\w*$/;t.exports=function(e){var t=new e.constructor(e.source,o.exec(e));return t.lastIndex=e.lastIndex,t}}}),St=N({"../../node_modules/lodash/_cloneSymbol.js"(e,t){var o=x(),r=o?o.prototype:void 0,a=r?r.valueOf:void 0;t.exports=function(e){return a?Object(a.call(e)):{}}}}),Pt=N({"../../node_modules/lodash/_initCloneByTag.js"(e,t){var o=Se(),r=jt(),a=$t(),n=St(),s=Pe();t.exports=function(e,t,i){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return o(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return r(e,i);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,i);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return a(e);case"[object Symbol]":return n(e)}}}}),Wt=N({"../../node_modules/lodash/_baseIsMap.js"(e,t){var o=h(),r=_();t.exports=function(e){return r(e)&&"[object Map]"==o(e)}}}),Ct=N({"../../node_modules/lodash/isMap.js"(e,t){var o=Wt(),r=m(),a=y(),n=a&&a.isMap,s=n?r(n):o;t.exports=s}}),Ot=N({"../../node_modules/lodash/_baseIsSet.js"(e,t){var o=h(),r=_();t.exports=function(e){return r(e)&&"[object Set]"==o(e)}}}),At=N({"../../node_modules/lodash/isSet.js"(e,t){var o=Ot(),r=m(),a=y(),n=a&&a.isSet,s=n?r(n):o;t.exports=s}}),Tt=N({"../../node_modules/lodash/_baseClone.js"(e,t){var r=ye(),a=ft(),n=ke(),s=ut(),i=ct(),l=je(),f=We(),c=vt(),d=bt(),p=gt(),v=wt(),m=h(),y=xt(),b=Pt(),_=Ae(),g=o(),x=u(),j=Ct(),$=w(),S=At(),P=st(),W=Me(),C="[object Arguments]",O="[object Function]",A="[object Object]",T={};T[C]=T["[object Array]"]=T["[object ArrayBuffer]"]=T["[object DataView]"]=T["[object Boolean]"]=T["[object Date]"]=T["[object Float32Array]"]=T["[object Float64Array]"]=T["[object Int8Array]"]=T["[object Int16Array]"]=T["[object Int32Array]"]=T["[object Map]"]=T["[object Number]"]=T[A]=T["[object RegExp]"]=T["[object Set]"]=T["[object String]"]=T["[object Symbol]"]=T["[object Uint8Array]"]=T["[object Uint8ClampedArray]"]=T["[object Uint16Array]"]=T["[object Uint32Array]"]=!0,T["[object Error]"]=T[O]=T["[object WeakMap]"]=!1,t.exports=function e(t,o,u,h,w,V){var F,k=1&o,N=2&o,E=4&o;if(u&&(F=w?u(t,h,w,V):u(t)),void 0!==F)return F;if(!$(t))return t;var K=g(t);if(K){if(F=y(t),!k)return f(t,F)}else{var Y=m(t),z=Y==O||"[object GeneratorFunction]"==Y;if(x(t))return l(t,k);if(Y==A||Y==C||z&&!w){if(F=N||z?{}:_(t),!k)return N?d(t,i(F,t)):c(t,s(F,t))}else{if(!T[Y])return w?t:{};F=b(t,Y,k)}}V||(V=new r);var R=V.get(t);if(R)return R;V.set(t,F),S(t)?t.forEach(function(r){F.add(e(r,o,u,r,t,V))}):j(t)&&t.forEach(function(r,a){F.set(a,e(r,o,u,a,t,V))});var M=K?void 0:(E?N?v:p:N?W:P)(t);return a(M||t,function(r,a){M&&(r=t[a=r]),n(F,a,e(r,o,u,a,t,V))}),F}}}),Vt=N({"../../node_modules/lodash/cloneDeep.js"(e,t){var o=Tt();t.exports=function(e){return o(e,5)}}}),Ft=E(M(),1),kt=e=>{throw new Error("Didn't expect to get here")};var Nt=e=>e.replace("/","-"),Et=e=>"."+k[e],Kt=(e,t,o,r)=>{const a=e.typography[t]?.[o];if(!a)throw new Error(`Missing typography data for variant "${t}" and key "${o}"`);const n="base"===r?a.base:a.breakpoints?.[r];if(!n)throw new Error(`Missing value for variant "${t}", key "${o}", and breakpoint "${r}"`);if((0,Ft.default)(n))return n;switch(n.type){case"px":return n.value/16+"rem";case"unitless":return String(n.value)}return kt()},Yt=(e,t)=>t in e.font?`var(--${T}-${t})`:t,zt=(e,t)=>Object.fromEntries(K.flatMap(o=>{const r=Nt(o);return[[`--${T}-${r}`,Yt(e,Kt(e,o,"fontFamily",t))],[`--${W}-${r}`,Kt(e,o,"fontSize",t)],[`--${A}-${r}`,Kt(e,o,"fontWeight",t)],[`--${O}-${r}`,Kt(e,o,"fontSlant",t)],[`--${C}-${r}`,Kt(e,o,"fontWidth",t)],[`--${P}-${r}`,Kt(e,o,"lineHeight",t)],[`--${S}-${r}`,Kt(e,o,"textTransform",t)],[`--${$}-${r}`,Kt(e,o,"letterSpacing",t)]]})),Rt=e=>Object.fromEntries(K.map(Nt).map(t=>[t,`var(--${e}-${t})`])),Mt={fontFamily:Rt(T),fontWeight:Rt(A),fontSlant:Rt(O),fontWidth:Rt(C),fontSize:Rt(W),lineHeight:Rt(P),textTransform:Rt(S),letterSpacing:Rt($)},Bt=e=>zt(e,"base"),Xt=e=>{const t=(o=e.breakpoints,Object.entries(o)).sort(([,{value:e}],[,{value:t}])=>e-t);var o;return{[`.${V}`]:Object.fromEntries(t.map(([t,{value:o}])=>[`@media (min-width: ${o}px)`,zt(e,t)])),[Et("base")]:zt(e,"base"),[Et("defaultBreakpoint")]:zt(e,e.globalDefaults.breakpoint),...Object.fromEntries(t.map(([t])=>[Et(t),zt(e,t)]))}},It=E(d(),1),Lt=E(B(),1),Dt=E(tt(),1);function Ht({variantKey:e,variantValue:t,layer:o,subComponentName:r,stateKey:a,stateValue:n}){return r?a&&n?`${r}/${e}/${t}/${a}/${n}/${o}`:`${r}/${e}/${t}/${o}`:a&&n?`${e}/${t}/${a}/${n}/${o}`:`${e}/${t}/${o}`}var Ut=e=>!!e?.layers,Gt=e=>!!e?.componentStates,qt=e=>e.reduce((e,t)=>e.flatMap(e=>t.map(t=>[e,t].flat())));function Jt(t,o){const r=t.variants?.[o];if(r)return{type:"no-sub-components",variant:r};const a=fo(t);if(!a)return{type:"no-variants"};return{type:"has-sub-components",variants:e(a,e=>e.variants[o])}}function Qt(e,t,o){const r=e[t]?.defaults?.[o];if(void 0===r)throw new Error(`The variant default for "${o}" is not defined for the component "${t}"`);return r}function Zt(e,t,o,r){return Qt(e,t,o)===r}function eo(e){let t=e;return t=t.replaceAll(".","/"),["root/","variables/","variant/","/value"].forEach(e=>{t=t.replaceAll(e,"")}),t}var to=E(lt(),1);function oo(e,t,o){const r=Jt(e,t);switch(r.type){case"no-variants":return null;case"no-sub-components":return r.variant;case"has-sub-components":if(!o)throw new Error("subComponentName argument name is required for configs with subcomponents");return r.variants[o]}}function ro(e,t,o){const r=oo(e,t,o);return r&&Gt(r)?r?.componentStates??null:null}function ao(e,t,o){const r=ro(e,t,o);if(!r)return null;return qt((0,to.default)(r).map(([e,t])=>t.options.map(t=>({[e]:t})))).map(e=>Array.isArray(e)?e.reduce((e,t)=>({...e,...t}),{}):e)}function no(t){if(!t||!Ut(t))return null;const o=e(t.layers,e=>e.properties);for(const e in o){const t=o[e];t&&0!==Object.keys(t).length||delete o[e]}return 0===Object.keys(o).length?null:o}var so=["rest"];function io(e,t,o,r){const a=oo(e,t,r);if(!a)return null;return[...Ut(a)?Object.entries(a?.layers??{}):[],...Gt(a)&&o?Object.entries(a.componentStates[o].layers??{}):[]].flatMap(([e,t])=>Object.entries(t.properties).map(([t,o])=>[e,t,o])).flatMap(([e,t,o])=>[...o.skipRestState?so.filter(e=>"rest"!==e):so,...o.pseudoStates??[]].map(r=>[e,t,o,r])).reduce((e,[t,o,r,a])=>{e[a]=e[a]??[];const n=[t,o,r];return e[a].push(n),e},{})}var lo=E(lt(),1);function fo(e){return e.subComponents?0===Object.keys(e.subComponents).length?null:e.subComponents:null}function uo(e,t="variant"){const o=Jt(e,t);if("no-variants"===o.type)return{type:"no-variants",description:"No variants"};if("no-sub-components"===o.type){if(fo(e))throw new Error("A config with a root variants.variant defintion cannot have subcomponents");return{type:"no-sub-components",description:o.variant.description,variantNames:[...o.variant.options]}}const r=(0,lo.default)(o.variants).reduce((e,[t,o])=>{for(const r of o.options)e[r]??=[],e[r].includes(t)||e[r].push(t);return e},{});return{type:"has-sub-components",description:Object.values(o.variants).map(e=>e.description).filter(e=>e)[0]??"",variantNames:Object.keys(r),variantToSubcomponentNames:r}}var co=E(Vt(),1);function po(e,t,o,r,a){const n=e[o].variables[t];if(!n)throw new Error(`No layer variables found for ${t}.`);const s=n[r];if(!s)throw new Error(`No property variables found for ${r}.`);const i=s[a];if(!i)throw new Error(`No pseudoState variables found for ${a}.`);return i}function ho(e,t,o,r,a,n){const s=(0,co.default)(e),i=po(s,t,o,r,a);return void 0!==n.type&&(i.type=n.type),void 0!==n.value&&(i.value=n.value),s}function vo(e,t,o,r,a){return[po(e,t,o,r,a),n=>ho(e,t,o,r,a,n)]}var mo="line-height",yo="border-width",bo="border-color",_o="box-shadow";function go({lineHeight:e,schema:t,iconLayerKey:o,state:r,theme:a}){const n=t.variables?.[o]?.size?.[r]?.value;if(!n)return e;return`max(${e}, ${a(`sizing.icon.${n}`)})`}function wo(e){const t=e[yo],o=e[bo];if(!t||!o)return e;const r=e=>e.replace(/\s*!important\s*$/,""),a=e=>e?.includes("!important")??!1,n=[`inset 0 0 0 ${r(t)} ${r(o)}`,e[_o]&&r(e[_o])].filter(Boolean),s=a(t)||a(o)||a(e[_o]),i={...e};return i[_o]=n.join(", ")+(s?" !important":""),delete i[yo],delete i[bo],i}var xo={rest:"",hover:":hover:not(:active, :disabled, :has(:disabled))",pressed:":active:not(:disabled, :has(:disabled))",focused:":focus","focus-within":":focus-within",invalid:':has(input[aria-invalid="true"])',"focused-keyboard":":focus-visible",visited:":visited",readonly:":has(input:read-only)",disabled:":is(:disabled, :has(:disabled))","invalid&hover":':has(input[aria-invalid="true"]):hover:not(:active, :disabled, :has(:disabled))',"invalid&pressed":':has(input[aria-invalid="true"]):active:not(:disabled, :has(:disabled))'},jo={rest:"",hover:"hover",pressed:"active",focused:"focus","focus-within":"focus-within",invalid:"has-input-invalid","focused-keyboard":"focus-visible",visited:"visited",readonly:"input-readonly",disabled:"has-disabled","invalid&hover":"has-input-invalid-and-hover","invalid&pressed":"has-input-invalid-and-active"};function $o(e,t){const o=e.defaults[t],r=e.typeOfFixture;let a=0;return e.values.forEach((e,t)=>{e.includes(o)&&(a=t)}),r[a]}function So(e){const t={},o={};for(const t in e.variants){const r=e.variants[t];o[t]=r.default}t.defaults=o,t.variables={};for(const o in e.variants){const r=e.variants[o];for(const e of r.options)if(Gt(r)){const a=r.componentStates;for(const r in a){const n=a[r];for(const a of n.options)for(const s in n.layers){const i=n.layers[s],l=Ht({variantKey:o,variantValue:e,stateKey:r,stateValue:a,layer:s});t.variables[l]={};for(const o in i.properties){const r=i.properties[o],a={[o]:{}};if(!0!==r?.skipRestState&&(a[o]={rest:{type:$o(r,e),valueType:"alias",value:r.defaults[e]}}),r.pseudoStates)for(const t of r.pseudoStates)a[o][t]={type:$o(r,e),valueType:"alias",value:r.defaults[e]};t.variables[l]={...t.variables[l],...a}}}}}else if(Ut(r)){const a=r.layers;for(const r in a){const n=a[r],s=Ht({variantKey:o,variantValue:e,layer:r});t.variables[s]={};for(const o in n.properties){const r=n.properties[o],a={[o]:{}};if(!0!==r?.skipRestState&&(a[o]={rest:{type:$o(r,e),valueType:"alias",value:r.defaults[e]}}),r.pseudoStates)for(const t of r.pseudoStates)a[o][t]={type:$o(r,e),valueType:"alias",value:r.defaults[e]};t.variables[s]={...t.variables[s],...a}}}}}if(e.subComponents){const{subComponents:o}=e;for(const e in o)for(const r in o[e].variants){const a=o[e].variants[r];t.defaults[r]=a.default;for(const o of a.options)if(Gt(a)){const n=a.componentStates;for(const a in n){const s=n[a];for(const n of s.options)for(const i in s.layers){const l=s.layers[i],f=Ht({variantKey:r,variantValue:o,stateKey:a,stateValue:n,layer:i,subComponentName:e});t.variables[f]={};for(const e in l.properties){const r=l.properties[e],a={[e]:{}};if(!0!==r?.skipRestState&&(a[e]={rest:{type:$o(r,o),valueType:"alias",value:r.defaults[o]}}),r.pseudoStates)for(const t of r.pseudoStates)a[e][t]={type:$o(r,o),valueType:"alias",value:r.defaults[o]};t.variables[f]={...t.variables[f],...a}}}}}else if(Ut(a)){const n=a.layers;for(const a in n){const s=n[a],i=Ht({variantKey:r,variantValue:o,layer:a,subComponentName:e});t.variables[i]={};for(const e in s.properties){const r=s.properties[e],a={[e]:{}};if(!0!==r?.skipRestState&&(a[e]={rest:{type:$o(r,o),valueType:"alias",value:r.defaults[o]}}),r.pseudoStates)for(const t of r.pseudoStates)a[e][t]={type:$o(r,o),valueType:"alias",value:r.defaults[o]};t.variables[i]={...t.variables[i],...a}}}}}}return t}function Po(e,t,o,r){return`uds-${e}${r?`-${r.toLowerCase()}`:""}-default-${t}-${o}`}function Wo({componentName:e,variantKey:t,variantValue:o,layer:r,layerOptionalPseudoSelector:a,subComponentName:n,stateKey:s,stateValue:i}){let l="";return l=n?`uds-${(0,Lt.default)(e)}-${(0,Lt.default)(n)}-${(0,Lt.default)(t)}`:`uds-${(0,Lt.default)(e)}-${(0,Lt.default)(t)}`,o&&(l=`${l}-${(0,Lt.default)(o)}`),s&&i&&(l=`${l}-${(0,Lt.default)(s)}-${(0,Lt.default)(i)}`),l=`${l}-${(0,Lt.default)(r)}`,a&&(l=`${l}${a}`),l.replaceAll(/\s+/g,"-")}function Co({componentName:e,variantKey:t,variantValue:o,layer:r,layerOptionalPseudoSelector:a,subComponentName:n,stateKey:s,stateValue:i,schema:l,propertyKey:f,originalPropertyDefinition:u,theme:c,currentStyles:d,previewOptions:p}){const h=Ht({variantKey:t,variantValue:o,layer:r,subComponentName:n,stateKey:s,stateValue:i});let v=Wo({componentName:e,variantKey:t,variantValue:o,layer:r,subComponentName:n,stateKey:s,stateValue:i});const m=l.variables[h][f];if(!m)throw new Error(`Prop definition (${e} - ${h} - ${f}) not found, this is not expected, please report the bug to the UDS team`);const y={};for(const h in m){const b=h,_=xo[b]??"",g=m[b];let w="";if("root"===r)if(s&&i){const a=Wo({componentName:e,variantKey:t,variantValue:o,layer:r,subComponentName:n});v=Wo({componentName:e,variantKey:t,layer:r,subComponentName:n,stateKey:s,stateValue:i}),w=`.${a}${_}.${v}`}else w=`.${v}${_}`;else{const l=Wo({componentName:e,variantKey:t,variantValue:o,layer:"root",subComponentName:n});if(s&&i){const f=Wo({componentName:e,variantKey:t,layer:"root",subComponentName:n,stateKey:s,stateValue:i});v=Wo({componentName:e,variantKey:t,variantValue:o,layer:r,layerOptionalPseudoSelector:a,subComponentName:n}),w=`.${l}${_}.${f} .${v}`}else w=`.${l}${_} .${v}`}const x=(e,t,o,r)=>{const{value:a,type:n}=e,s=hr[t];let i;if(hr[t].customValueRenderer)i=hr[t].customValueRenderer(e,l,o);else{i=o(hr[t].twThemePath(n,String(a)))}if(s.concatenate&&r){return`${r}${s.concatenationDelimiter||", "}${i}`}return i},{cssProperties:j,extendedProperties:$}=hr[u.name],S={},P=(0,It.default)($),W=P?$({componentName:e,subComponentName:n,layer:r,propertyKey:f}):$;if(W&&W.length){if(!P&&("string"==typeof j||Array.isArray(j)&&j.length>0))throw new Error("Invalid configuration: cssProperties should not be configured when extendedProperties are defined. Please update your property configuration accordingly.");for(const e of W){const t=hr[e].cssProperties;if("string"==typeof t){const o=d?.[w]?.[t];S[t]=x(g,e,c,o)}else if(Array.isArray(t))for(const o of t){const t=d?.[w]?.[o];S[o]=x(g,e,c,t)}}}else if("string"==typeof j){const e=d?.[w]?.[j];S[j]=x(g,u.name,c,e)}else if(Array.isArray(j))for(const e of j){const t=d?.[w]?.[e];S[e]=x(g,u.name,c,t)}if("button"===e&&"root"===r&&("gap"===f&&(S[F]=S.gap),S[mo])){const e=Ht({variantKey:t,variantValue:o,layer:"icon",subComponentName:n});S[mo]=go({lineHeight:S[mo],schema:l,iconLayerKey:e,state:b,theme:c})}if(y[w]||(y[w]={...S,...y[w]}),p?.generatePseudoStateClassModifier){const e=jo[b]??"";if(e.length>0&&"root"!==h){const t=Object.fromEntries(Object.entries(S).map(([e,t])=>[e,`${t} !important`]));y[`.${e}${w}`.replace(_,"")]={...t,...y[`.${e}${w}`.replace(_,"")]}}}}return y}function Oo(e,t,o,r){function a(e,t){return(0,Dt.default)({},e,t)}let n=e.label.toLowerCase();e.overrideComponentName&&(n=e.overrideComponentName.toLowerCase());let s={};for(const i in e.variants){const l=e.variants[i];for(const e of l.options)if(Gt(l)){const f=l.componentStates;for(const l in f){const u=f[l];for(const f of u.options)for(const c in u.layers){const d=u.layers[c];for(const u in d.properties){const p=d.properties[u];s=a(s,Co({componentName:n,variantKey:i,variantValue:e,stateKey:l,stateValue:f,layer:c,layerOptionalPseudoSelector:d.pseudoSelector,propertyKey:u,originalPropertyDefinition:p,theme:o,schema:t,currentStyles:s,previewOptions:r}))}}}}else if(Ut(l)){const f=l.layers;for(const l in f){const u=f[l];for(const f in u.properties){const c=u.properties[f];s=a(s,Co({componentName:n,variantKey:i,variantValue:e,layer:l,layerOptionalPseudoSelector:u.pseudoSelector,propertyKey:f,originalPropertyDefinition:c,theme:o,schema:t,currentStyles:s,previewOptions:r}))}}}}if(e.subComponents){const{subComponents:i}=e;for(const e in i)for(const l in i[e].variants){const f=i[e].variants[l];for(const i of f.options)if(Gt(f)){const u=f.componentStates;for(const f in u){const c=u[f];for(const u of c.options)for(const d in c.layers){const p=c.layers[d];for(const c in p.properties){const h=p.properties[c];s=a(s,Co({componentName:n,variantKey:l,variantValue:i,stateKey:f,stateValue:u,subComponentName:e,layer:d,layerOptionalPseudoSelector:p.pseudoSelector,propertyKey:c,originalPropertyDefinition:h,theme:o,schema:t,currentStyles:s,previewOptions:r}))}}}}else if(Ut(f)){const u=f.layers;for(const f in u){const c=u[f];for(const u in c.properties){const d=c.properties[u];s=a(s,Co({componentName:n,subComponentName:e,variantKey:l,variantValue:i,layer:f,layerOptionalPseudoSelector:c.pseudoSelector,propertyKey:u,originalPropertyDefinition:d,theme:o,schema:t,currentStyles:s,previewOptions:r}))}}}}}if("button"===n||"iconbutton"===n)for(const e in s)e.includes("-root")&&(s[e]=wo(s[e]));return s}var Ao=(e,t,o,r)=>{const a=Oo(e,t,o,r);if(!e.variants&&!e.subComponents)return a;const n=e.overrideComponentName?.toLowerCase()||e.label.toLowerCase();if("button"!==n&&"iconbutton"!==n)return a;const s=new Map,i=e=>{if(Ut(e))return Object.keys(e.layers);if(Gt(e)){const t=new Set;for(const o of Object.values(e.componentStates))Object.keys(o.layers).forEach(e=>t.add(e));return Array.from(t)}return[]},l=(e,o)=>{for(const[r,a]of Object.entries(e)){if(!Ut(a)&&!Gt(a))continue;const e=i(a);if(e.length){const a=t.defaults?.[r];if(a)for(const t of e){const e=Wo({componentName:n,variantKey:r,variantValue:a,layer:t,subComponentName:o}),i=Po(n,r,t,o);s.set(e,`.${e}, .${i}`)}}}};if(e.variants&&l(e.variants),e.subComponents)for(const[t,o]of Object.entries(e.subComponents))l(o.variants,t);const f={};for(const[e,t]of Object.entries(a)){let o=e,r=!1;for(const[t,a]of s.entries())if(e.includes(t)){r=!0;const e=a.match(/,\s*\.([a-z0-9-]+)/);if(e){const r=e[1];o=o.replaceAll(t,r)}}r?f[`${e}, ${o}`]=t:f[e]=t}return f};function To(e){return e}function Vo(e){return e}function Fo(e){return e}function ko(e){return e}function No(e){return e}function Eo(e){return e}function Ko(e){return e}var Yo={drop:{none:[],xs:[{offsetX:"0",offsetY:"px",blur:"0.5",spread:"0",opacity:"5",color:{type:"palette",value:"primary"}}],sm:[{offsetX:"0",offsetY:"px",blur:"0.5",spread:"0",opacity:"10",color:{type:"palette",value:"primary"}},{offsetX:"0",offsetY:"px",blur:"1",spread:"0",opacity:"10",color:{type:"palette",value:"primary"}}],md:[{offsetX:"0",offsetY:"1",blur:"1.5",spread:"-px",opacity:"10",color:{type:"palette",value:"primary"}},{offsetX:"0",offsetY:"0.5",blur:"1",spread:"-0.5",opacity:"10",color:{type:"palette",value:"primary"}}],lg:[{offsetX:"0",offsetY:"1",blur:"1.5",spread:"-1",opacity:"10",color:{type:"palette",value:"primary"}},{offsetX:"0",offsetY:"2.5",blur:"3.5",spread:"-0.5",opacity:"10",color:{type:"palette",value:"primary"}}],xl:[{offsetX:"0",offsetY:"2",blur:"2.5",spread:"-1.5",opacity:"10",color:{type:"palette",value:"primary"}},{offsetX:"0",offsetY:"5",blur:"6",spread:"-1",opacity:"10",color:{type:"palette",value:"primary"}}],"2xl":[{offsetX:"0",offsetY:"6",blur:"12",spread:"-3",opacity:"25",color:{type:"palette",value:"primary"}}]},inset:{none:[],xs:[{offsetX:"0",offsetY:"px",blur:"0.5",spread:"0",opacity:"5",color:{type:"palette",value:"primary"}}],sm:[{offsetX:"0",offsetY:"px",blur:"0.5",spread:"0",opacity:"10",color:{type:"palette",value:"primary"}},{offsetX:"0",offsetY:"px",blur:"1",spread:"0",opacity:"10",color:{type:"palette",value:"primary"}}],md:[{offsetX:"0",offsetY:"1",blur:"1.5",spread:"-px",opacity:"10",color:{type:"palette",value:"primary"}},{offsetX:"0",offsetY:"0.5",blur:"1",spread:"-0.5",opacity:"10",color:{type:"palette",value:"primary"}}],lg:[{offsetX:"0",offsetY:"1",blur:"1.5",spread:"-1",opacity:"10",color:{type:"palette",value:"primary"}},{offsetX:"0",offsetY:"2.5",blur:"3.5",spread:"-0.5",opacity:"10",color:{type:"palette",value:"primary"}}],xl:[{offsetX:"0",offsetY:"2",blur:"2.5",spread:"-1.5",opacity:"10",color:{type:"palette",value:"primary"}},{offsetX:"0",offsetY:"5",blur:"6",spread:"-1",opacity:"10",color:{type:"palette",value:"primary"}}],"2xl":[{offsetX:"0",offsetY:"6",blur:"12",spread:"-3",opacity:"25",color:{type:"palette",value:"primary"}}],"xs-invert":[{offsetX:"0",offsetY:"px",blur:"0.5",spread:"0",opacity:"5",color:{type:"always",value:"white"}}],"sm-invert":[{offsetX:"0",offsetY:"px",blur:"0.5",spread:"0",opacity:"10",color:{type:"always",value:"white"}},{offsetX:"0",offsetY:"px",blur:"1",spread:"0",opacity:"10",color:{type:"always",value:"white"}}],"md-invert":[{offsetX:"0",offsetY:"1",blur:"1.5",spread:"-px",opacity:"10",color:{type:"always",value:"white"}},{offsetX:"0",offsetY:"0.5",blur:"1",spread:"-0.5",opacity:"10",color:{type:"always",value:"white"}}],"lg-invert":[{offsetX:"0",offsetY:"1",blur:"1.5",spread:"-1",opacity:"10",color:{type:"always",value:"white"}},{offsetX:"0",offsetY:"2.5",blur:"3.5",spread:"-0.5",opacity:"10",color:{type:"always",value:"white"}}],"xl-invert":[{offsetX:"0",offsetY:"2",blur:"2.5",spread:"-1.5",opacity:"10",color:{type:"always",value:"white"}},{offsetX:"0",offsetY:"5",blur:"6",spread:"-1",opacity:"10",color:{type:"always",value:"white"}}],"2xl-invert":[{offsetX:"0",offsetY:"6",blur:"12",spread:"-3",opacity:"25",color:{type:"always",value:"white"}}]}},zo={thin:"100",extralight:"200",light:"300",regular:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},Ro="system",Mo="system",Bo="light",Xo="large",Io=!1,Lo="🇺🇸 US",Do="https://s.yimg.com/bw/fonts",Ho=["Helvetica Neue","Helvetica","Arial","sans-serif"],Uo=["Georgia","Times","Times New Roman","serif"],Go={"centra-no2":{fallback:Ho,type:"sans",fontFamily:"Centra No2",isVariableFont:!1,fontSlants:void 0,fontWidths:void 0,fontWeights:[{label:"Hairline",value:50},{label:"Thin",value:100},{label:"Light",value:300},{label:"Book",value:400},{label:"Medium",value:500},{label:"Bold",value:700},{label:"ExtraBold",value:800},{label:"Black",value:900}],defaults:{fontSlant:void 0,fontWidth:void 0,fontWeight:400},declarations:[{fontStyle:"normal",fontWeight:"50",src:`url('${Do}/centra-no2-hairline.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"50",src:`url('${Do}/centra-no2-hairline-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"100",src:`url('${Do}/centra-no2-thin.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"100",src:`url('${Do}/centra-no2-thin-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"300",src:`url('${Do}/centra-no2-light.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"300",src:`url('${Do}/centra-no2-light-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"400",src:`url('${Do}/centra-no2-book.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"400",src:`url('${Do}/centra-no2-book-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"500",src:`url('${Do}/centra-no2-medium.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"500",src:`url('${Do}/centra-no2-medium-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"700",src:`url('${Do}/centra-no2-bold.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"700",src:`url('${Do}/centra-no2-bold-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"800",src:`url('${Do}/centra-no2-extrabold.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"800",src:`url('${Do}/centra-no2-extrabold-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"900",src:`url('${Do}/centra-no2-black.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"900",src:`url('${Do}/centra-no2-black-italic.woff2') format('woff2')`}]},inter:{fallback:Ho,type:"sans",fontFamily:"Inter",isVariableFont:!0,fontSlants:[{label:"Italic",value:-10},{label:"None",value:0}],fontWidths:void 0,fontWeights:[{label:"Thin",value:100},{label:"Extra Light",value:200},{label:"Light",value:300},{label:"Regular",value:400},{label:"Medium",value:500},{label:"Semi Bold",value:600},{label:"Bold",value:700},{label:"Extra Bold",value:800},{label:"Black",value:900}],defaults:{fontSlant:0,fontWidth:void 0,fontWeight:400},declarations:[{fontWeight:"1 1000",src:`url('${Do}/inter-vf.woff2') format('woff2')`}]},"roboto-mono":{fallback:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas","Liberation Mono","Courier New","monospace"],type:"mono",fontFamily:"Roboto Mono",isVariableFont:!1,fontSlants:void 0,fontWidths:void 0,fontWeights:[{label:"Thin",value:100},{label:"Light",value:300},{label:"Regular",value:400},{label:"Medium",value:500},{label:"Bold",value:700}],defaults:{fontSlant:void 0,fontWidth:void 0,fontWeight:400},declarations:[{fontStyle:"normal",fontWeight:"100",src:`url('${Do}/roboto-mono-100.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"100",src:`url('${Do}/roboto-mono-100-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"300",src:`url('${Do}/roboto-mono-300.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"300",src:`url('${Do}/roboto-mono-300-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"400",src:`url('${Do}/roboto-mono-400.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"400",src:`url('${Do}/roboto-mono-400-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"500",src:`url('${Do}/roboto-mono-500.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"500",src:`url('${Do}/roboto-mono-500-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"700",src:`url('${Do}/roboto-mono-700.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"700",src:`url('${Do}/roboto-mono-700-italic.woff2') format('woff2')`}]},"yahoo-sans":{fallback:Ho,type:"sans",fontFamily:"Yahoo Sans",isVariableFont:!0,fontSlants:void 0,fontWidths:void 0,fontWeights:[{label:"ExtraLight",value:200},{label:"Light",value:300},{label:"Regular",value:400},{label:"Medium",value:500},{label:"Semibold",value:585},{label:"Bold",value:700},{label:"ExtraBold",value:810},{label:"Black",value:900}],defaults:{fontSlant:void 0,fontWidth:void 0,fontWeight:400},declarations:[{fontWeight:"1 1000",src:`url('${Do}/yahoo-sans-vf.woff2') format('woff2')`}]},"yahoo-sans-cr4":{fallback:Ho,type:"sans",fontFamily:"Yahoo CR4 BETA VF",isVariableFont:!0,fontSlants:void 0,fontWidths:void 0,fontWeights:[{label:"Regular",value:400},{label:"Medium",value:500},{label:"Bold",value:700}],defaults:{fontSlant:void 0,fontWidth:void 0,fontWeight:450},declarations:[{fontWeight:"1 1000",src:`url('${Do}/yahoo-sans-cr4-vf.woff2') format('woff2')`}]},"yahoo-product-sans":{fallback:Ho,type:"sans",fontFamily:"Yahoo Product Sans VF",isVariableFont:!0,fontSlants:void 0,fontWidths:void 0,fontWeights:[{label:"Regular",value:400},{label:"Medium",value:500},{label:"Bold",value:700}],defaults:{fontSlant:void 0,fontWidth:void 0,fontWeight:450},declarations:[{fontWeight:"1 1000",src:`url('${Do}/yahoo-product-sans-vf.woff2') format('woff2-variations')`}]},"yahoo-product-sans-extended":{fallback:Ho,type:"sans",fontFamily:"YahooPd_Eval202412",isVariableFont:!0,fontSlants:[{label:"Italic",value:9},{label:"None",value:0}],fontWidths:[{label:"Cond",value:50},{label:"Normal",value:75},{label:"Ext",value:100}],fontWeights:[{label:"Light",value:300},{label:"Regular",value:450},{label:"Medium",value:500},{label:"Semibold",value:600},{label:"Bold",value:700},{label:"Black",value:850}],defaults:{fontSlant:0,fontWidth:75,fontWeight:450},declarations:[{fontWeight:"1 1000",src:`url('${Do}/YahooPd_Eval202412-v1.1.0.woff2') format("woff2 supports variations"), url('${Do}/YahooPd_Eval202412-v1.1.0.woff2') format('woff2-variations')`}]},"yahoo-sans-condensed":{fallback:Ho,type:"sans",fontFamily:"Yahoo Sans Cond",isVariableFont:!0,fontSlants:void 0,fontWidths:void 0,fontWeights:[{label:"Light",value:300},{label:"Regular",value:400},{label:"Medium",value:500},{label:"Bold",value:718},{label:"XBold",value:800},{label:"Black",value:900}],defaults:{fontSlant:void 0,fontWidth:void 0,fontWeight:400},declarations:[{fontWeight:"1 1000",src:`url('${Do}/yahoo-sans-condensed-vf.woff2') format('woff2')`}]},"yahoo-serif-display":{fallback:Uo,type:"serif",fontFamily:"Yahoo Serif Display",isVariableFont:!1,fontSlants:void 0,fontWidths:void 0,fontWeights:[{label:"Light",value:300},{label:"Regular",value:400},{label:"Bold",value:700},{label:"Extrabold",value:800},{label:"Black",value:900}],defaults:{fontSlant:void 0,fontWidth:void 0,fontWeight:400},declarations:[{fontStyle:"normal",fontWeight:"300",src:`url('${Do}/yahoo-serif-display-light.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"400",src:`url('${Do}/yahoo-serif-display-regular.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"700",src:`url('${Do}/yahoo-serif-display-bold.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"800",src:`url('${Do}/yahoo-serif-display-extrabold.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"900",src:`url('${Do}/yahoo-serif-display-black.woff2') format('woff2')`}]},"yahoo-serif-text":{fallback:Uo,type:"serif",fontFamily:"Yahoo Serif Text",isVariableFont:!1,fontSlants:void 0,fontWidths:void 0,fontWeights:[{label:"Regular",value:400},{label:"Bold",value:700}],defaults:{fontSlant:void 0,fontWidth:void 0,fontWeight:400},declarations:[{fontStyle:"normal",fontWeight:"400",src:`url('${Do}/yahoo-serif-text-regular.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"400",src:`url('${Do}/yahoo-serif-text-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"700",src:`url('${Do}/yahoo-serif-text-bold.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"700",src:`url('${Do}/yahoo-serif-text-bold-italic.woff2') format('woff2')`}]}};function qo({palette:e="accent",variant:t="primary"}){return"accent"===e?t:"primary"===t?e:`${e}-${t}`}function Jo(e){return Object.fromEntries(e)}var Qo={black:"0 0 0",white:"255 255 255"};function Zo({preset:e,prefix:t,shadowType:o}){const r=`--uds-${o}-shadow-`,a="palette"===e.color?.type,n="always"===e.color?.type;let s=`var(--uds-${a?"shadow":"spectrum"}-color-${e?.color?.value})`;n&&(s=Qo[e.color.value]);const i=`var(${r}${t?`${t}-`:""}color, ${s})`;return`${"inset"===o?"inset ":""}${[`${Y[e.offsetX]}px`,`${Y[e.offsetY]}px`,`${z[e.blur]}px`,`${R[e.spread]}px`].map(e=>e).join(" ")} ${`rgb(${i} / var(${r}${t?`${t}-`:""}opacity, ${Number(e.opacity)/100}))`}`}function er({config:e,shadowType:o}){const r=e?.shadow?.[o];if(!r)return{};const a={};return t(r).forEach(([e,t])=>{if("none"===e)return void(a[`--uds-${o}-shadow-${e}`]="0 0 transparent");const r=t.map((e,t)=>Zo({preset:e,prefix:t>0?`${t+1}`:void 0,shadowType:o}));a[`--uds-${o}-shadow-${e}`]=`${r.join(", ")}`}),a}var tr=e=>(t,o)=>`typography.${e}.${Nt(o)}`,or=(e,t)=>{switch(e){case"alwaysPaletteAliases":return`colors.${t}`;case"spectrumColors":{const[e,o]=t.split("-");return`colors.${e}.${o}`}case"foregroundPaletteColors":return`textColor.${t}`;case"backgroundPaletteColors":return`backgroundColor.${t}`;case"linePaletteColors":return`borderColor.${t}`}return kt()},rr=({componentName:e,layer:t,propertyKey:o})=>!("chip"!==e||"root"!==t||!["borderColor","borderWidth"].includes(o))||!("input"!==e||"inputWrapper"!==t||!["borderColor","borderWidth"].includes(o)),ar={name:"backgroundColor",cssProperties:"background-color",twThemePath:or,possibleFixtures:["backgroundPaletteColors","spectrumColors","alwaysPaletteAliases"]},nr={name:"fontSize",cssProperties:"font-size",twThemePath:tr("fontSize"),possibleFixtures:["textVariants"]},sr={name:"fontVariationSettings",cssProperties:"font-variation-settings",twThemePath:()=>"",possibleFixtures:["textVariants"],customValueRenderer:e=>{const{value:t}=e,o=Nt(t);return`"wght" var(--uds-font-weight-${o}), "slnt" var(--uds-font-slant-${o}), "wdth" var(--uds-font-width-${o});`}},ir={name:"fontWeight",cssProperties:"font-weight",twThemePath:tr("fontWeight"),possibleFixtures:["textVariants"]},lr={name:"fontFamily",cssProperties:"font-family",twThemePath:tr("fontFamily"),possibleFixtures:["textVariants"]},fr={name:"color",cssProperties:"color",twThemePath:or,possibleFixtures:["alwaysPaletteAliases","spectrumColors","foregroundPaletteColors"]},ur={name:"borderWidth",cssProperties:"border-width",twThemePath:(e,t)=>"borderWidths"===e?`borderWidth[${t}]`:`spacing[${t}]`,possibleFixtures:["borderWidths","spacingAliases"],extendedProperties:e=>rr(e)&&["outlineWidth","insetOutlineOffset","solidOutline"]},cr={name:"borderColor",cssProperties:"border-color",twThemePath:or,possibleFixtures:["alwaysPaletteAliases","spectrumColors","linePaletteColors"],extendedProperties:e=>rr(e)&&["outlineColor"]},dr={name:"outlineColor",cssProperties:"outline-color",twThemePath:or,possibleFixtures:["alwaysPaletteAliases","spectrumColors","linePaletteColors"]},pr={name:"textTransform",cssProperties:"text-transform",twThemePath:tr("textTransform"),possibleFixtures:["textVariants"]},hr={...{backgroundColor:ar,borderWidth:ur,borderRadius:{name:"borderRadius",cssProperties:"border-radius",twThemePath:(e,t)=>`borderRadius.${t}`,possibleFixtures:["borderRadii"]},borderColor:cr,fontFamily:lr,fontSize:nr,fontVariationSettings:sr,lineHeight:{name:"lineHeight",cssProperties:"line-height",twThemePath:tr("lineHeight"),possibleFixtures:["textVariants"]},textTransform:pr,letterSpacing:{name:"letterSpacing",cssProperties:"letter-spacing",twThemePath:tr("letterSpacing"),possibleFixtures:["textVariants"]},padding:{name:"padding",cssProperties:"padding",twThemePath:(e,t)=>`spacing[${t}]`,possibleFixtures:["spacingAliases"]},gap:{name:"gap",cssProperties:"gap",twThemePath:(e,t)=>`spacing[${t}]`,possibleFixtures:["spacingAliases"]},color:fr,opacity:{name:"opacity",cssProperties:"opacity",twThemePath:(e,t)=>`opacity[${t}]`,possibleFixtures:["opacitySteps"]},fontWeight:ir,iconSize:{name:"iconSize",cssProperties:["width","height"],twThemePath:(e,t)=>`sizing.icon.${t}`,possibleFixtures:["iconSizes"]},spacingHorizontal:{name:"spacingHorizontal",cssProperties:["padding-right","padding-left"],twThemePath:(e,t)=>`spacing[${t}]`,possibleFixtures:["spacingAliases"]},spacingVertical:{name:"spacingVertical",cssProperties:["padding-top","padding-bottom"],twThemePath:(e,t)=>`spacing[${t}]`,possibleFixtures:["spacingAliases"]},textVariant:{name:"textVariant",cssProperties:[],twThemePath:()=>"",possibleFixtures:["textVariants"],extendedProperties:["fontSize","fontWeight","fontFamily","lineHeight","textTransform","fontVariationSettings","letterSpacing"]},textDecorationLine:{name:"textDecorationLine",cssProperties:"text-decoration-line",possibleFixtures:["textDecorationLines"],twThemePath:()=>"",customValueRenderer:e=>String(e.value)},shadow:{name:"drop shadow",cssProperties:"box-shadow",twThemePath:()=>"",concatenate:!0,customValueRenderer:e=>{const t="drop";if("alias"===e.valueType){const o="0 0 0 transparent";if("none"===e.value)return o;if("custom"!==e.value)return`var(--uds-${t}-shadow-${e.value})`}else if("custom"===e.valueType){const o=e.value.map((e,o)=>Zo({preset:e,shadowType:t,prefix:o>0?`${o+1}`:void 0}));return o?.join(", ")||"0 0 0 transparent"}throw new Error("Invalid valueType")},possibleFixtures:["shadowVariants"]},insetShadow:{name:"inset shadow",cssProperties:"box-shadow",twThemePath:()=>"",concatenate:!0,customValueRenderer:e=>{const t="inset";if("alias"===e.valueType){const o="0 0 0 transparent";if("none"===e.value)return o;if("custom"!==e.value)return`var(--uds-${t}-shadow-${e.value})`}else if("custom"===e.valueType){const o=e.value.map((e,o)=>Zo({preset:e,shadowType:t,prefix:o>0?`${o+1}`:void 0}));return o?.join(", ")||"0 0 0 transparent"}throw new Error("Invalid valueType")},possibleFixtures:["shadowVariantsWithInvert"]},height:{name:"height",cssProperties:"height",twThemePath:(e,t)=>`height[${t}]`,possibleFixtures:["spacingAliases"]},width:{name:"width",cssProperties:"width",twThemePath:(e,t)=>`width[${t}]`,possibleFixtures:["spacingAliases"]},scaleEffect:{name:"scaleEffect",cssProperties:j,possibleFixtures:["scaleEffects"],twThemePath:()=>"",customValueRenderer:e=>{const t=String(e.value);return"up"===t?"1.03":"down"===t?"0.97":"1"}}},...{outlineWidth:{name:"outlineWidth",cssProperties:"outline-width",twThemePath:(e,t)=>"borderWidths"===e?`borderWidth[${t}]`:`spacing[${t}]`,possibleFixtures:["borderWidths","spacingAliases"]},outlineColor:dr,insetOutlineOffset:{name:"insetOutlineOffset",cssProperties:"outline-offset",twThemePath:()=>"",customValueRenderer:({value:e,type:t},o,r)=>`calc(-1 * ${r("borderWidths"===t?`borderWidth[${e}]`:`spacing[${e}]`)})`,possibleFixtures:["borderWidths","spacingAliases"]},solidOutline:{name:"solidOutline",cssProperties:"outline-style",twThemePath:()=>"",customValueRenderer:()=>"solid",possibleFixtures:[]}}};export{Bo as DEFAULT_COLOR_MODE,Ro as DEFAULT_COLOR_MODE_FOR_APP,Io as DEFAULT_HIGH_CONTRAST_MODE,Lo as DEFAULT_REGION_MODE,Xo as DEFAULT_SCALE_MODE,Mo as DEFAULT_SCALE_MODE_FOR_APP,Go as FONT_DECLARATIONS_MAP,Mt as RESPONSIVE_TAILWIND_CONFIG_MAP,kt as assertUnreachable,qt as cartesianProduct,Jt as coalesceConfigVariant,hr as configurableProperties,No as createComponentStates,To as createConfigurableProperty,Eo as createLayerConfig,Ko as createSubComponentConfig,Vo as createVariantConfig,ko as createVariantConfigWithComponentStates,Fo as createVariantConfigWithProperties,$o as findFixtureType,zo as fontWeightMap,Jo as fromEntries,Wo as generateClassName,Oo as generateConfigStyles,Co as generateDeclaration,Po as generateDefaultClassName,eo as generateKeyFromFlatConfigPath,Ht as generateSchemaKey,Ao as generateStyles,Bt as getBaseTextVars,Qt as getConfigDefaultValue,po as getConfigPseudoStateVariables,vo as getConfigPseudoStateVariablesWithSetter,fo as getConfigSubcomponents,ro as getConfigVariantComponentStates,ao as getConfigVariantComponentStatesMatrix,no as getConfigVariantProperties,io as getConfigVariantPseudoStates,uo as getConfigVariants,Xt as getResponsiveTextStyles,Zo as getShadowLayerValue,er as getShadowPresetValues,Zt as isConfigDefaultValue,qo as parseButtonVariantFlat,M as require_isString,ho as setConfigPseudoStateVariable,Yo as shadow,jo as statePseudoMapDocsMode,Nt as textVariantsSafe,So as toMinimalDbConfigObject};
@@ -1 +1 @@
1
- "use strict";var r=require("./chunk-WUBNTBF6.cjs");/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */exports.getMotionVar=function({variant:t,speed:e,control:n}){return`${[`--${r.MOTION_PREFIX}`,t,e,n].join("-")}`};
1
+ "use strict";var r=require("./chunk-A7OSNZQ4.cjs");/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */exports.getMotionVar=function({variant:t,speed:e,control:n}){return`${[`--${r.MOTION_PREFIX}`,t,e,n].join("-")}`};
@@ -1 +1 @@
1
- "use strict";var e=require("./chunk-Q3DOZD3W.cjs"),s=require("react"),t=require("motion/react"),n=require("react/jsx-runtime"),i=s.createContext(!1),o=i.Provider,r={damped:{1:{damping:20.585796264350424,stiffness:62.37968115365702},2:{damping:29.312551281312288,stiffness:126.47801753759964},3:{damping:48.92799401356162,stiffness:352.3892336537332},4:{damping:123.42690994256348,stiffness:2242.474548821137}},smooth:{1:{damping:16.46863701148034,stiffness:67.80400125397502},2:{damping:23.45004102504983,stiffness:137.47610601913004},3:{damping:39.1423952108493,stiffness:383.03177571057955},4:{damping:98.7415279540508,stiffness:2437.4723356751488}},subtle:{1:{damping:13.04316051309243,stiffness:67.80400125397502},2:{damping:18.572432491839468,stiffness:137.47610601913004},3:{damping:31.000777006992646,stiffness:383.03177571057955},4:{damping:78.20329013960823,stiffness:2437.4723356751488}},bouncy:{1:{damping:9.229712940600143,stiffness:48.880672622541795},2:{damping:12.634144343496553,stiffness:91.59092691366399},3:{damping:19.40217701790486,stiffness:216.00395877230474},4:{damping:37.541723184430275,stiffness:808.7032559422912}},veryBouncy:{1:{damping:6.902290754946187,stiffness:38.92152745126911},2:{damping:9.155550514215523,stiffness:68.48134828711234},3:{damping:13.244464908166709,stiffness:143.30858570843873},4:{damping:22.17862652876726,stiffness:401.85804919502965}}},a=()=>import("./domAnimation-26D6WPCP.cjs").then(({domAnimation:e})=>e);/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */function f({children:o,reducedMotion:f="user",loadFeatures:d=a,layoutVariant:p="subtle",layoutSpeed:m="3",colorVariant:g="smooth",colorSpeed:u="3"}){const c=r[p][m],l=r[g][u],[y,M]=s.useState(c),[b,V]=s.useState(l),C={variant:g,speed:u},P=e.getMotionVar({...C,control:"stiffness"}),h=e.getMotionVar({...C,control:"damping"}),v={variant:p,speed:m},x=e.getMotionVar({...v,control:"stiffness"}),S=e.getMotionVar({...v,control:"damping"});s.useEffect(()=>{const e=getComputedStyle(document.documentElement),s={type:"spring",damping:Number(e.getPropertyValue(S)),stiffness:Number(e.getPropertyValue(x))},t={type:"spring",damping:Number(e.getPropertyValue(h)),stiffness:Number(e.getPropertyValue(P))};M(s),V(t)},[h,P,S,x]);const j=s.useMemo(()=>({type:"spring",mass:1,...y,layout:y,opacity:b,color:b,borderColor:b,backgroundColor:b}),[b,y]);return s.useContext(i)?o:n.jsx(t.LazyMotion,{features:d,strict:!0,children:n.jsx(t.MotionConfig,{transition:j,reducedMotion:f,children:o})})}f.displayName="SpringMotionConfig",exports.AvoidMotionLibraryProvider=o,exports.SpringMotionConfig=f;
1
+ "use strict";var e=require("./chunk-N2X6LD4P.cjs"),s=require("react"),t=require("motion/react"),n=require("react/jsx-runtime"),i=s.createContext(!1),o=i.Provider,r={damped:{1:{damping:20.585796264350424,stiffness:62.37968115365702},2:{damping:29.312551281312288,stiffness:126.47801753759964},3:{damping:48.92799401356162,stiffness:352.3892336537332},4:{damping:123.42690994256348,stiffness:2242.474548821137}},smooth:{1:{damping:16.46863701148034,stiffness:67.80400125397502},2:{damping:23.45004102504983,stiffness:137.47610601913004},3:{damping:39.1423952108493,stiffness:383.03177571057955},4:{damping:98.7415279540508,stiffness:2437.4723356751488}},subtle:{1:{damping:13.04316051309243,stiffness:67.80400125397502},2:{damping:18.572432491839468,stiffness:137.47610601913004},3:{damping:31.000777006992646,stiffness:383.03177571057955},4:{damping:78.20329013960823,stiffness:2437.4723356751488}},bouncy:{1:{damping:9.229712940600143,stiffness:48.880672622541795},2:{damping:12.634144343496553,stiffness:91.59092691366399},3:{damping:19.40217701790486,stiffness:216.00395877230474},4:{damping:37.541723184430275,stiffness:808.7032559422912}},veryBouncy:{1:{damping:6.902290754946187,stiffness:38.92152745126911},2:{damping:9.155550514215523,stiffness:68.48134828711234},3:{damping:13.244464908166709,stiffness:143.30858570843873},4:{damping:22.17862652876726,stiffness:401.85804919502965}}},a=()=>import("./domAnimation-26D6WPCP.cjs").then(({domAnimation:e})=>e);/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */function f({children:o,reducedMotion:f="user",loadFeatures:d=a,layoutVariant:p="subtle",layoutSpeed:m="3",colorVariant:g="smooth",colorSpeed:u="3"}){const c=r[p][m],l=r[g][u],[y,M]=s.useState(c),[b,V]=s.useState(l),C={variant:g,speed:u},P=e.getMotionVar({...C,control:"stiffness"}),h=e.getMotionVar({...C,control:"damping"}),v={variant:p,speed:m},x=e.getMotionVar({...v,control:"stiffness"}),S=e.getMotionVar({...v,control:"damping"});s.useEffect(()=>{const e=getComputedStyle(document.documentElement),s={type:"spring",damping:Number(e.getPropertyValue(S)),stiffness:Number(e.getPropertyValue(x))},t={type:"spring",damping:Number(e.getPropertyValue(h)),stiffness:Number(e.getPropertyValue(P))};M(s),V(t)},[h,P,S,x]);const N=s.useMemo(()=>({type:"spring",mass:1,...y,layout:y,opacity:b,color:b,borderColor:b,backgroundColor:b}),[b,y]);return s.useContext(i)?o:n.jsx(t.LazyMotion,{features:d,strict:!0,children:n.jsx(t.MotionConfig,{transition:N,reducedMotion:f,children:o})})}f.displayName="SpringMotionConfig",exports.AvoidMotionLibraryProvider=o,exports.SpringMotionConfig=f;
@@ -0,0 +1,2 @@
1
+ import{__commonJS as e}from"./chunk-GF4A6TFM.js";/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */
2
+ var o=e({"../../node_modules/lodash/_freeGlobal.js"(e,o){var t="object"==typeof global&&global&&global.Object===Object&&global;o.exports=t}}),t=e({"../../node_modules/lodash/_root.js"(e,t){var s=o(),l="object"==typeof self&&self&&self.Object===Object&&self,d=s||l||Function("return this")();t.exports=d}}),s=e({"../../node_modules/lodash/_Symbol.js"(e,o){var s=t().Symbol;o.exports=s}}),l=e({"../../node_modules/lodash/_getRawTag.js"(e,o){var t=s(),l=Object.prototype,d=l.hasOwnProperty,r=l.toString,a=t?t.toStringTag:void 0;o.exports=function(e){var o=d.call(e,a),t=e[a];try{e[a]=void 0;var s=!0}catch(e){}var l=r.call(e);return s&&(o?e[a]=t:delete e[a]),l}}}),d=e({"../../node_modules/lodash/_objectToString.js"(e,o){var t=Object.prototype.toString;o.exports=function(e){return t.call(e)}}}),r=e({"../../node_modules/lodash/_baseGetTag.js"(e,o){var t=s(),r=l(),a=d(),n=t?t.toStringTag:void 0;o.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":n&&n in Object(e)?r(e):a(e)}}}),a=e({"../../node_modules/lodash/isObjectLike.js"(e,o){o.exports=function(e){return null!=e&&"object"==typeof e}}}),n=e({"../../node_modules/lodash/isObject.js"(e,o){o.exports=function(e){var o=typeof e;return null!=e&&("object"==o||"function"==o)}}}),c=e({"../../node_modules/lodash/isSymbol.js"(e,o){var t=r(),s=a();o.exports=function(e){return"symbol"==typeof e||s(e)&&"[object Symbol]"==t(e)}}}),i="uds",u=`${i}-avatar-size`,b=`${i}-background-color`,m=`${i}-border-radius`,f=`${i}-border-width`,x=`${i}-drop-shadow`,$=`${i}-font`,p=`${i}-font-size`,j=`${i}-font-weight`,g=`${i}-font-slant`,h=`${i}-font-width`,v=`${i}-icon-size`,y=`${i}-line-color`,_=`${i}-line-height`,O=`${i}-letter-spacing`,S=`${i}-motion`,w=`${i}-spectrum-color`,T=`${i}-text-transform`,k=`${i}-color-mode-dark`,z=`${i}-color-mode-light`,F=`${i}-color-mode-system`,G=`${i}-color-mode-invert`,A=`${i}-scale-mode-xsmall`,B=`${i}-scale-mode-small`,D=`${i}-scale-mode-medium`,L=`${i}-scale-mode-large`,M=`${i}-scale-mode-xlarge`,N=`${i}-scale-mode-xxlarge`,P=`${i}-scale-mode-xxxlarge`,R=z,U=L,W="uds-text-responsive",q={defaultBreakpoint:"uds-text-default",base:"uds-text-base",sm:"uds-text-sm",md:"uds-text-md",lg:"uds-text-lg",xl:"uds-text-xl","2xl":"uds-text-2xl"},C=`--${i}-button-gap`,E=`--${i}-button-scale-effect`,H={hover:":hover:not([disabled])",pressed:":active:not([disabled])",disabled:":disabled",focused:":focus-visible",focusedWithin:":has(:focus-visible)",notDisabled:":not(:has(:disabled))"};export{u as AVATAR_SIZE_PREFIX,b as BACKGROUND_COLOR_PREFIX,m as BORDER_RADIUS_PREFIX,f as BORDER_WIDTH_PREFIX,C as BUTTON_GAP_VAR,E as BUTTON_SCALE_EFFECT,k as DARK_COLOR_MODE_CLASSNAME,R as DEFAULT_COLOR_MODE_CLASSNAME,U as DEFAULT_SCALE_MODE_CLASSNAME,x as DROP_SHADOW_PREFIX,$ as FONT_FAMILY_PREFIX,p as FONT_SIZE_PREFIX,g as FONT_SLANT_PREFIX,j as FONT_WEIGHT_PREFIX,h as FONT_WIDTH_PREFIX,v as ICON_SIZE_PREFIX,G as INVERT_COLOR_MODE_CLASSNAME,L as LARGE_SCALE_MODE_CLASSNAME,O as LETTER_SPACING_PREFIX,z as LIGHT_COLOR_MODE_CLASSNAME,y as LINE_COLOR_PREFIX,_ as LINE_HEIGHT_PREFIX,D as MEDIUM_SCALE_MODE_CLASSNAME,S as MOTION_PREFIX,H as PSEUDO_STYLE_SELECTOR_MAP,B as SMALL_SCALE_MODE_CLASSNAME,w as SPECTRUM_COLOR_PREFIX,F as SYSTEM_COLOR_MODE_CLASSNAME,q as TEXT_RESPONSIVE_BREAKPOINT_CLASSNAMES,W as TEXT_RESPONSIVE_CLASSNAME,T as TEXT_TRANSFORM_PREFIX,i as UDS_PREFIX,M as XLARGE_SCALE_MODE_CLASSNAME,A as XSMALL_SCALE_MODE_CLASSNAME,N as XXLARGE_SCALE_MODE_CLASSNAME,P as XXXLARGE_SCALE_MODE_CLASSNAME,s as require_Symbol,r as require_baseGetTag,o as require_freeGlobal,n as require_isObject,a as require_isObjectLike,c as require_isSymbol,t as require_root};
@@ -0,0 +1 @@
1
+ "use strict";var e=require("./chunk-A7OSNZQ4.cjs"),r=require("./chunk-QLXJH36U.cjs"),t=r.__commonJS({"../../node_modules/lodash/_baseClamp.js"(e,r){r.exports=function(e,r,t){return e==e&&(void 0!==t&&(e=e<=t?e:t),void 0!==r&&(e=e>=r?e:r)),e}}}),o=r.__commonJS({"../../node_modules/lodash/_trimmedEndIndex.js"(e,r){var t=/\s/;r.exports=function(e){for(var r=e.length;r--&&t.test(e.charAt(r)););return r}}}),n=r.__commonJS({"../../node_modules/lodash/_baseTrim.js"(e,r){var t=o(),n=/^\s+/;r.exports=function(e){return e?e.slice(0,t(e)+1).replace(n,""):e}}}),s=r.__commonJS({"../../node_modules/lodash/toNumber.js"(r,t){var o=n(),s=e.require_isObject(),a=e.require_isSymbol(),i=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;t.exports=function(e){if("number"==typeof e)return e;if(a(e))return NaN;if(s(e)){var r="function"==typeof e.valueOf?e.valueOf():e;e=s(r)?r+"":r}if("string"!=typeof e)return 0===e?e:+e;e=o(e);var t=u.test(e);return t||c.test(e)?l(e.slice(2),t?2:8):i.test(e)?NaN:+e}}}),a=r.__commonJS({"../../node_modules/lodash/clamp.js"(e,r){var o=t(),n=s();r.exports=function(e,r,t){return void 0===t&&(t=r,r=void 0),void 0!==t&&(t=(t=n(t))==t?t:0),void 0!==r&&(r=(r=n(r))==r?r:0),o(n(e),r,t)}}});/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */var i=r.__toESM(a(),1);exports.alwaysPalette={white:"#ffffff",black:"#000000",transparent:"transparent",current:"currentColor"},exports.entries=function(e){return Object.entries(e)},exports.mapValues=function(e,r){return Object.keys(e).reduce((t,o,n)=>(t[o]=r(e[o],o,n),t),{})},exports.parseOpacityStep=function(e){if(null==e)throw new Error(`Invalid opacity value: ${e}`);const r="number"==typeof e?e:parseInt(e,10);if(isNaN(r))throw new Error(`Invalid opacity value: cannot parse "${e}" as a number`);return(0,i.default)(r,0,100).toString()};
@@ -1,2 +1,2 @@
1
- import{createSlot as r,getStyles as l}from"./chunk-GTIDXU7G.js";import{forwardRef as e}from"react";import{jsx as t,Fragment as a,jsxs as o}from"react/jsx-runtime";/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */var i=r(),n=e(function({className:r,asChild:e,onPress:a,onClick:o=a,backgroundColor:n,borderRadius:h,borderTopStartRadius:c,borderTopEndRadius:d,borderBottomStartRadius:s,borderBottomEndRadius:u,borderColor:f,borderStartColor:m,borderEndColor:v,borderTopColor:p,borderBottomColor:z,borderWidth:C,borderVerticalWidth:M,borderHorizontalWidth:g,borderStartWidth:H,borderEndWidth:b,borderTopWidth:V,borderBottomWidth:S,alignContent:x,alignItems:w,alignSelf:L,flex:A,flexDirection:B,flexGrow:W,flexShrink:T,flexWrap:E,justifyContent:_,flexBasis:I,display:P,overflow:R,overflowX:k,overflowY:G,position:y,spacing:j,spacingHorizontal:N,spacingVertical:D,spacingBottom:X,spacingEnd:Y,spacingStart:q,spacingTop:U,offset:F,offsetVertical:J,offsetHorizontal:K,offsetBottom:O,offsetEnd:Q,offsetStart:Z,offsetTop:$,columnGap:rr,rowGap:lr,dropShadow:er,insetShadow:tr,...ar},or){const ir=l({backgroundColor:n,borderRadius:h,borderTopStartRadius:c,borderTopEndRadius:d,borderBottomStartRadius:s,borderBottomEndRadius:u,borderColor:f,borderStartColor:m,borderEndColor:v,borderTopColor:p,borderBottomColor:z,borderWidth:C,borderVerticalWidth:M,borderHorizontalWidth:g,borderStartWidth:H,borderEndWidth:b,borderTopWidth:V,borderBottomWidth:S,alignContent:x,alignItems:w,alignSelf:L,flex:A,flexDirection:B,flexGrow:W,flexShrink:T,flexWrap:E,justifyContent:_,flexBasis:I,display:P,overflow:R,overflowX:k,overflowY:G,position:y,spacing:j,spacingHorizontal:N,spacingVertical:D,spacingBottom:X,spacingEnd:Y,spacingStart:q,spacingTop:U,offset:F,offsetVertical:J,offsetHorizontal:K,offsetBottom:O,offsetEnd:Q,offsetStart:Z,offsetTop:$,columnGap:rr,rowGap:lr,dropShadow:er,insetShadow:tr,className:r});return t(e?i:"button",{className:ir,ref:or,onClick:o,tabIndex:0,...ar})});n.displayName="Pressable";var h=({size:r,variant:l})=>{if("outline"===l)switch(r){case"xs":return t(a,{children:o("g",{fill:"currentColor",clipPath:"url(#Building-outline-12_svg__a)",children:[t("path",{d:"M4.875 8.125h-1.5v-1.5h1.5zm0-2.625h-1.5V4h1.5z"}),t("path",{d:"m7.5 2.643 3.75 1.31v7.297H.75V.75H7.5zM1.95 10.05H6.3v-8.1H1.95zm5.625 0h2.475V4.805l-2.475-.866z"})]})});case"sm":return t(a,{children:t("path",{fill:"currentColor",d:"M8.4 2.6H2.6v10.8H4V11h3v2.4h1.4zM1 15V1h9v2.524l5 1.746V15zm9.1-9.746V13.4h3.3V6.406zM4.5 4h2v2h-2zm2 3.5h-2v2h2z"})});case"md":return t(a,{children:t("path",{fill:"currentColor",d:"M13.367 4.752H4.3v14.495h2.724v-4.533h3.619v4.533h2.714V4.762l.01.003zM21.5 21.047h-19V2.952h12.667v2.494L21.5 7.843zm-1.8-1.8V9.087L15.167 7.37v11.876zM7.929 11.095h-1.81v1.81h1.81zm-1.81-3.619h1.81v1.81h-1.81zm5.429 0h-1.81v1.81h1.81zm-1.81 3.619h1.81v1.81h-1.81z"})});case"lg":return t(a,{children:t("path",{fill:"currentColor",d:"M17.8 4.2H4.2v23.6H8V21h6v6.8h3.8zM2 30V2h18v5.725l10 3.626V30zm18.2-19.862V27.8h7.6V12.894zM10 8H7v3h3zm-3 6h3v3H7zm5-6h3v3h-3zm3 6h-3v3h3zm7.5 1h3v3h-3zm3 6h-3v3h3z"})})}if("fill"===l)switch(r){case"xs":return t(a,{children:t("g",{fill:"currentColor",clipPath:"url(#Building-fill-12_svg__a)",children:t("path",{d:"M7.5 11.25H.75V.75H7.5zM3.375 8.125h1.5v-1.5h-1.5zm0-2.625h1.5V4h-1.5zm7.875-1.547v7.297H9V3z"})})});case"sm":return t(a,{children:t("path",{fill:"currentColor",d:"M4.5 4v2h2V4zm2 3.5h-2v2h2zM12 4l3 1.27V15h-3zM1 1h9v14H1z"})});case"md":return t(a,{children:t("path",{fill:"currentColor",d:"M2.5 2.952h10.857v18.095H2.5zm2.714 7.238V12h1.81v-1.81zm1.81-3.619h-1.81v1.81h1.81zm1.81 0v1.81h1.809V6.57zm1.809 3.62h-1.81V12h1.81zm-4.524 4.523v4.524h3.62v-4.524zM21.5 7.843l-6.333-3.081v16.285H21.5z"})});case"lg":return t(a,{children:t("path",{fill:"currentColor",d:"M2 2h16v28H2zm5 19v7h6v-7zM8.5 7h-3v3h3zm-3 6v3h3v-3zm9-6h-3v3h3zm-3 6v3h3v-3zM20 7l10 4.351V30H20zm3.5 8v3h3v-3z"})})}return t(a,{})};h.metadata={name:"Building",isSvgIcon:!0,variants:["outline","fill"]};var c=({size:r,variant:l})=>{if("outline"===l)switch(r){case"xs":return t(a,{children:t("path",{fill:"currentColor",d:"m10.843 2.896-5.77 6.966L1.15 5.98l.845-.853 2.99 2.96L9.919 2.13z"})});case"sm":return t(a,{children:t("path",{fill:"currentColor",d:"M13.5 3.89 6.951 12 2.5 7.48l.958-.993 3.394 3.447L12.452 3z"})});case"md":return t(a,{children:t("path",{fill:"currentColor",d:"M20.264 5.852 10.37 18.366l-6.642-6.89 1.295-1.249 5.213 5.407 8.616-10.898z"})});case"lg":return t(a,{children:t("path",{fill:"currentColor",d:"M30.19 6.341 13.677 26.276 2.803 15.509l1.688-1.706 9.012 8.922L28.341 4.81z"})})}if("fill"===l)switch(r){case"xs":return t(a,{children:t("path",{fill:"currentColor",d:"M10.985 2.883 5.081 10.01 1.01 5.98l.985-.996L4.98 7.94l4.928-5.95z"})});case"sm":return t(a,{children:t("path",{fill:"currentColor",d:"M13.593 4.502 6.968 12.5 2.4 7.978 3.505 6.86l3.348 3.315 5.53-6.676z"})});case"md":return t(a,{children:t("path",{fill:"currentColor",d:"m20.545 5.82-10.16 12.85-6.94-7.198 1.584-1.527 5.192 5.385L18.82 4.455z"})});case"lg":return t(a,{children:t("path",{fill:"currentColor",d:"M30.33 6.328 13.687 26.423 2.662 15.51l1.829-1.848 9.005 8.916 14.832-17.91z"})})}return t(a,{})};c.metadata={name:"Check",isSvgIcon:!0,variants:["outline","fill"]};var d=({size:r,variant:l})=>{if("outline"===l)switch(r){case"xs":return t(a,{children:t("path",{fill:"currentColor",d:"m9.745 3.099-2.9 2.898 2.901 2.9-.849.85-2.899-2.901-2.9 2.9-.848-.849 2.9-2.9L2.25 3.1l.848-.848L5.997 5.15l2.9-2.898z"})});case"sm":return t(a,{children:t("path",{fill:"currentColor",d:"m12.526 4.465-.99-.99L8 7.01 4.465 3.475l-.99.99L7.01 8l-3.535 3.536.99.99L8 8.99l3.536 3.536.99-.99L8.99 8z"})});case"md":return t(a,{children:t("path",{fill:"currentColor",d:"m13.44 11.956 6.572-6.571L18.527 3.9l-6.571 6.57L5.385 3.9 3.9 5.385l6.57 6.57-6.57 6.572 1.485 1.485 6.57-6.571 6.572 6.57 1.485-1.484z"})});case"lg":return t(a,{children:t("path",{fill:"currentColor",d:"M17.702 15.934 28.818 4.818 27.05 3.05 15.934 14.166 4.818 3.05 3.05 4.818l11.116 11.116L3.05 27.05l1.768 1.768 11.116-11.116L27.05 28.818l1.768-1.768z"})})}if("fill"===l)switch(r){case"xs":return t(a,{children:t("path",{fill:"currentColor",d:"m9.888 3.099-2.9 2.898 2.899 2.9-.99.99-2.9-2.9-2.898 2.9-.99-.99 2.898-2.9L2.108 3.1l.99-.99 2.9 2.898 2.9-2.898z"})});case"sm":return t(a,{children:t("path",{fill:"currentColor",d:"m9.131 8 3.536-3.536-1.131-1.131L8 6.869 4.464 3.333 3.333 4.464 6.869 8l-3.536 3.535 1.131 1.132L8 9.13l3.535 3.536 1.132-1.131z"})});case"md":return t(a,{children:t("path",{fill:"currentColor",d:"m12 13.768 6.337 6.337 1.768-1.768L13.768 12l6.337-6.337-1.768-1.768L12 10.232 5.663 3.895 3.895 5.663 10.232 12l-6.337 6.337 1.768 1.768z"})});case"lg":return t(a,{children:t("path",{fill:"currentColor",d:"M17.91 16 28.954 4.955l-1.91-1.91L16 14.091 4.955 3.045l-1.91 1.91L14.091 16 3.045 27.045l1.91 1.91L16 17.909l11.045 11.046 1.91-1.91z"})})}return t(a,{})};d.metadata={name:"Cross",isSvgIcon:!0,variants:["outline","fill"]};var s=({size:r,variant:l})=>{if("outline"===l)switch(r){case"xs":return t(a,{children:t("path",{fill:"currentColor",d:"m10.698 6.597-9.4.001v-1.2h9.4z"})});case"sm":return t(a,{children:t("path",{fill:"currentColor",d:"M12.7 8.7H3.3V7.3h9.4z"})});case"md":return t(a,{children:t("path",{fill:"currentColor",d:"M2.97 10.75h17.838v2.1H2.97z"})});case"lg":return t(a,{children:t("path",{fill:"currentColor",d:"M27 17H4.7v-2.3H27z"})})}if("fill"===l)switch(r){case"xs":return t(a,{children:t("path",{fill:"currentColor",d:"M10.799 6.698h-9.6v-1.4h9.6z"})});case"sm":return t(a,{children:t("path",{fill:"currentColor",d:"M12.8 8.8H3.2V7.2h9.6z"})});case"md":return t(a,{children:t("path",{fill:"currentColor",d:"M2.966 10.75h18.068v2.5H2.966z"})});case"lg":return t(a,{children:t("path",{fill:"currentColor",d:"M27.3 17.3H4.7v-2.6h22.6z"})})}return t(a,{})};s.metadata={name:"Minus",isSvgIcon:!0,variants:["outline","fill"]};var u=({size:r,variant:l})=>{if("outline"===l)switch(r){case"xs":return t(a,{children:t("path",{fill:"currentColor",d:"M6.9 3.375a.9.9 0 1 0-1.8 0 .9.9 0 0 0 1.8 0m1.35 0a2.25 2.25 0 1 1-4.5 0 2.25 2.25 0 0 1 4.5 0m.53 4.643a2.2 2.2 0 0 0-1.104-.293H4.324a2.224 2.224 0 0 0-2.183 1.8h7.718a2.22 2.22 0 0 0-1.08-1.507M.75 9.95a3.574 3.574 0 0 1 3.574-3.574h3.352A3.574 3.574 0 0 1 11.25 9.95v.875a.05.05 0 0 1-.05.051H.8a.05.05 0 0 1-.05-.05z"})});case"sm":return t(a,{children:t("path",{fill:"currentColor",d:"M9.2 4.5a1.2 1.2 0 1 0-2.4 0 1.2 1.2 0 0 0 2.4 0m1.8 0a3 3 0 1 1-6 0 3 3 0 0 1 6 0m.706 6.19a2.97 2.97 0 0 0-1.472-.39H5.766a2.966 2.966 0 0 0-2.912 2.4h10.292a2.97 2.97 0 0 0-1.44-2.01M1 13.267A4.766 4.766 0 0 1 5.766 8.5h4.468A4.765 4.765 0 0 1 15 13.266v1.166c0 .038-.03.068-.068.068H1.068A.07.07 0 0 1 1 14.432z"})});case"md":return t(a,{children:t("path",{fill:"currentColor",d:"M14.25 7.95a2.25 2.25 0 1 0-4.5 0 2.25 2.25 0 0 0 4.5 0m1.8 0a4.05 4.05 0 1 1-8.1 0 4.05 4.05 0 0 1 8.1 0m.927 7.244A4.2 4.2 0 0 0 15 14.7H9a4.2 4.2 0 0 0-4.157 3.6h14.314a4.2 4.2 0 0 0-2.18-3.106M3 18.9a6 6 0 0 1 6-6h6a6 6 0 0 1 6 6v1.121a.08.08 0 0 1-.079.079H3.08a.08.08 0 0 1-.08-.08z"})});case"lg":return t(a,{children:t("path",{fill:"currentColor",d:"M19.7 10a3.7 3.7 0 1 0-7.4 0 3.7 3.7 0 0 0 7.4 0m2.3 0a6 6 0 1 1-12 0 6 6 0 0 1 12 0m8 17.043q0-.681-.1-1.343a9.044 9.044 0 0 0-8.943-7.7h-9.914A9.04 9.04 0 0 0 2 27.043V28h28zM8.144 20.955a6.74 6.74 0 0 1 2.9-.655h9.913a6.744 6.744 0 0 1 6.608 5.4H4.435a6.74 6.74 0 0 1 3.71-4.745"})})}if("fill"===l)switch(r){case"xs":return t(a,{children:t("path",{fill:"currentColor",d:"M6 5.625a2.25 2.25 0 1 0 0-4.5 2.25 2.25 0 0 0 0 4.5m-3.45 1.22A3.57 3.57 0 0 0 .75 9.95v.875c0 .028.023.051.05.051h10.4a.05.05 0 0 0 .05-.05V9.95a3.574 3.574 0 0 0-3.574-3.574H4.324c-.622 0-1.233.162-1.773.47"})});case"sm":return t(a,{children:t("path",{fill:"currentColor",d:"M8 7.5a3 3 0 1 0 0-6 3 3 0 0 0 0 6M3.401 9.128A4.77 4.77 0 0 0 1 13.266v1.166c0 .038.03.068.068.068h13.864c.038 0 .068-.03.068-.068v-1.166A4.766 4.766 0 0 0 10.234 8.5H5.766a4.76 4.76 0 0 0-2.365.628"})});case"md":return t(a,{children:t("path",{fill:"currentColor",d:"M12 12a4.05 4.05 0 1 0 0-8.1 4.05 4.05 0 0 0 0 8.1m-5.824 1.606A6 6 0 0 0 3 18.9v1.121c0 .044.035.079.079.079H20.92a.08.08 0 0 0 .08-.08V18.9a6 6 0 0 0-6-6H9a6 6 0 0 0-2.824.706"})});case"lg":return t(a,{children:t("path",{fill:"currentColor",d:"M16 16a6 6 0 1 0 0-12 6 6 0 0 0 0 12m-8.845 2.878A9.04 9.04 0 0 0 2 27.043V28h28v-.957A9.043 9.043 0 0 0 20.957 18h-9.914a9.05 9.05 0 0 0-3.888.878"})})}return t(a,{})};u.metadata={name:"Person",isSvgIcon:!0,variants:["outline","fill"]};var f=({size:r,variant:l})=>{if("outline"===l)switch(r){case"xs":return t(a,{children:t("g",{clipPath:"url(#Progress-outline-12_svg__a)",children:t("path",{fill:"currentColor",d:"M5.924 2.025a3.9 3.9 0 1 0 3.9 3.9h1.2a5.1 5.1 0 1 1-5.1-5.1.6.6 0 1 1 0 1.2"})})});case"sm":return t(a,{children:t("path",{fill:"currentColor",d:"M7.9 2.7a5.2 5.2 0 1 0 5.2 5.2h1.6a6.8 6.8 0 1 1-6.8-6.8.8.8 0 1 1 0 1.6"})});case"md":return t(a,{children:t("path",{fill:"currentColor",d:"M12 4a8 8 0 1 0 8 8h2c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2a1 1 0 1 1 0 2"})});case"lg":return t(a,{children:t("path",{fill:"currentColor",d:"M16.15 4.3C9.605 4.3 4.3 9.605 4.3 16.15S9.605 28 16.15 28 28 22.695 28 16.15h2.3c0 7.815-6.335 14.15-14.15 14.15S2 23.965 2 16.15 8.335 2 16.15 2a1.15 1.15 0 0 1 0 2.3"})})}if("fill"===l)switch(r){case"xs":return t(a,{children:t("g",{clipPath:"url(#Progress-fill-12_svg__a)",children:t("path",{fill:"currentColor",d:"M6 2.175A3.825 3.825 0 1 0 9.823 6h1.35A5.175 5.175 0 1 1 6 .825a.675.675 0 0 1 0 1.35"})})});case"sm":return t(a,{children:t("path",{fill:"currentColor",d:"M8 2.9A5.1 5.1 0 1 0 13.1 8h1.8A6.9 6.9 0 1 1 8 1.1a.9.9 0 1 1 0 1.8"})});case"md":return t(a,{children:t("path",{fill:"currentColor",d:"M12.15 4.3A7.85 7.85 0 1 0 20 12.15h2.3c0 5.606-4.544 10.15-10.15 10.15S2 17.756 2 12.15 6.544 2 12.15 2a1.15 1.15 0 0 1 0 2.3"})});case"lg":return t(a,{children:t("path",{fill:"currentColor",d:"M16.35 4.7C9.916 4.7 4.7 9.916 4.7 16.35S9.916 28 16.35 28 28 22.784 28 16.35h2.7c0 7.925-6.425 14.35-14.35 14.35S2 24.275 2 16.35 8.425 2 16.35 2a1.35 1.35 0 1 1 0 2.7"})})}return t(a,{})};f.metadata={name:"Progress",isSvgIcon:!0,variants:["outline","fill"]};
1
+ import{createSlot as r,getStyles as l}from"./chunk-FEHICJMH.js";import{forwardRef as e}from"react";import{jsx as t,Fragment as a,jsxs as o}from"react/jsx-runtime";/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */var i=r(),n=e(function({className:r,asChild:e,onPress:a,onClick:o=a,backgroundColor:n,borderRadius:h,borderTopStartRadius:c,borderTopEndRadius:d,borderBottomStartRadius:s,borderBottomEndRadius:u,borderColor:f,borderStartColor:m,borderEndColor:v,borderTopColor:p,borderBottomColor:z,borderWidth:C,borderVerticalWidth:M,borderHorizontalWidth:g,borderStartWidth:H,borderEndWidth:b,borderTopWidth:V,borderBottomWidth:S,alignContent:x,alignItems:w,alignSelf:L,flex:A,flexDirection:B,flexGrow:W,flexShrink:E,flexWrap:T,justifyContent:_,flexBasis:I,display:P,overflow:R,overflowX:k,overflowY:G,position:y,spacing:j,spacingHorizontal:N,spacingVertical:D,spacingBottom:X,spacingEnd:Y,spacingStart:q,spacingTop:F,offset:J,offsetVertical:K,offsetHorizontal:O,offsetBottom:Q,offsetEnd:U,offsetStart:Z,offsetTop:$,columnGap:rr,rowGap:lr,dropShadow:er,insetShadow:tr,...ar},or){const ir=l({backgroundColor:n,borderRadius:h,borderTopStartRadius:c,borderTopEndRadius:d,borderBottomStartRadius:s,borderBottomEndRadius:u,borderColor:f,borderStartColor:m,borderEndColor:v,borderTopColor:p,borderBottomColor:z,borderWidth:C,borderVerticalWidth:M,borderHorizontalWidth:g,borderStartWidth:H,borderEndWidth:b,borderTopWidth:V,borderBottomWidth:S,alignContent:x,alignItems:w,alignSelf:L,flex:A,flexDirection:B,flexGrow:W,flexShrink:E,flexWrap:T,justifyContent:_,flexBasis:I,display:P,overflow:R,overflowX:k,overflowY:G,position:y,spacing:j,spacingHorizontal:N,spacingVertical:D,spacingBottom:X,spacingEnd:Y,spacingStart:q,spacingTop:F,offset:J,offsetVertical:K,offsetHorizontal:O,offsetBottom:Q,offsetEnd:U,offsetStart:Z,offsetTop:$,columnGap:rr,rowGap:lr,dropShadow:er,insetShadow:tr,className:r});return t(e?i:"button",{className:ir,ref:or,onClick:o,tabIndex:0,...ar})});n.displayName="Pressable";var h=({size:r,variant:l})=>{if("outline"===l)switch(r){case"xs":return t(a,{children:o("g",{fill:"currentColor",clipPath:"url(#Building-outline-12_svg__a)",children:[t("path",{d:"M4.875 8.125h-1.5v-1.5h1.5zm0-2.625h-1.5V4h1.5z"}),t("path",{d:"m7.5 2.643 3.75 1.31v7.297H.75V.75H7.5zM1.95 10.05H6.3v-8.1H1.95zm5.625 0h2.475V4.805l-2.475-.866z"})]})});case"sm":return t(a,{children:t("path",{fill:"currentColor",d:"M8.4 2.6H2.6v10.8H4V11h3v2.4h1.4zM1 15V1h9v2.524l5 1.746V15zm9.1-9.746V13.4h3.3V6.406zM4.5 4h2v2h-2zm2 3.5h-2v2h2z"})});case"md":return t(a,{children:t("path",{fill:"currentColor",d:"M13.367 4.752H4.3v14.495h2.724v-4.533h3.619v4.533h2.714V4.762l.01.003zM21.5 21.047h-19V2.952h12.667v2.494L21.5 7.843zm-1.8-1.8V9.087L15.167 7.37v11.876zM7.929 11.095h-1.81v1.81h1.81zm-1.81-3.619h1.81v1.81h-1.81zm5.429 0h-1.81v1.81h1.81zm-1.81 3.619h1.81v1.81h-1.81z"})});case"lg":return t(a,{children:t("path",{fill:"currentColor",d:"M17.8 4.2H4.2v23.6H8V21h6v6.8h3.8zM2 30V2h18v5.725l10 3.626V30zm18.2-19.862V27.8h7.6V12.894zM10 8H7v3h3zm-3 6h3v3H7zm5-6h3v3h-3zm3 6h-3v3h3zm7.5 1h3v3h-3zm3 6h-3v3h3z"})})}if("fill"===l)switch(r){case"xs":return t(a,{children:t("g",{fill:"currentColor",clipPath:"url(#Building-fill-12_svg__a)",children:t("path",{d:"M7.5 11.25H.75V.75H7.5zM3.375 8.125h1.5v-1.5h-1.5zm0-2.625h1.5V4h-1.5zm7.875-1.547v7.297H9V3z"})})});case"sm":return t(a,{children:t("path",{fill:"currentColor",d:"M4.5 4v2h2V4zm2 3.5h-2v2h2zM12 4l3 1.27V15h-3zM1 1h9v14H1z"})});case"md":return t(a,{children:t("path",{fill:"currentColor",d:"M2.5 2.952h10.857v18.095H2.5zm2.714 7.238V12h1.81v-1.81zm1.81-3.619h-1.81v1.81h1.81zm1.81 0v1.81h1.809V6.57zm1.809 3.62h-1.81V12h1.81zm-4.524 4.523v4.524h3.62v-4.524zM21.5 7.843l-6.333-3.081v16.285H21.5z"})});case"lg":return t(a,{children:t("path",{fill:"currentColor",d:"M2 2h16v28H2zm5 19v7h6v-7zM8.5 7h-3v3h3zm-3 6v3h3v-3zm9-6h-3v3h3zm-3 6v3h3v-3zM20 7l10 4.351V30H20zm3.5 8v3h3v-3z"})})}return t(a,{})};h.metadata={name:"Building",isSvgIcon:!0,variants:["outline","fill"]};var c=({size:r,variant:l})=>{if("outline"===l)switch(r){case"xs":return t(a,{children:t("path",{fill:"currentColor",d:"m10.843 2.896-5.77 6.966L1.15 5.98l.845-.853 2.99 2.96L9.919 2.13z"})});case"sm":return t(a,{children:t("path",{fill:"currentColor",d:"M13.5 3.89 6.951 12 2.5 7.48l.958-.993 3.394 3.447L12.452 3z"})});case"md":return t(a,{children:t("path",{fill:"currentColor",d:"M20.264 5.852 10.37 18.366l-6.642-6.89 1.295-1.249 5.213 5.407 8.616-10.898z"})});case"lg":return t(a,{children:t("path",{fill:"currentColor",d:"M30.19 6.341 13.677 26.276 2.803 15.509l1.688-1.706 9.012 8.922L28.341 4.81z"})})}if("fill"===l)switch(r){case"xs":return t(a,{children:t("path",{fill:"currentColor",d:"M10.985 2.883 5.081 10.01 1.01 5.98l.985-.996L4.98 7.94l4.928-5.95z"})});case"sm":return t(a,{children:t("path",{fill:"currentColor",d:"M13.593 4.502 6.968 12.5 2.4 7.978 3.505 6.86l3.348 3.315 5.53-6.676z"})});case"md":return t(a,{children:t("path",{fill:"currentColor",d:"m20.545 5.82-10.16 12.85-6.94-7.198 1.584-1.527 5.192 5.385L18.82 4.455z"})});case"lg":return t(a,{children:t("path",{fill:"currentColor",d:"M30.33 6.328 13.687 26.423 2.662 15.51l1.829-1.848 9.005 8.916 14.832-17.91z"})})}return t(a,{})};c.metadata={name:"Check",isSvgIcon:!0,variants:["outline","fill"]};var d=({size:r,variant:l})=>{if("outline"===l)switch(r){case"xs":return t(a,{children:t("path",{fill:"currentColor",d:"m9.745 3.099-2.9 2.898 2.901 2.9-.849.85-2.899-2.901-2.9 2.9-.848-.849 2.9-2.9L2.25 3.1l.848-.848L5.997 5.15l2.9-2.898z"})});case"sm":return t(a,{children:t("path",{fill:"currentColor",d:"m12.526 4.465-.99-.99L8 7.01 4.465 3.475l-.99.99L7.01 8l-3.535 3.536.99.99L8 8.99l3.536 3.536.99-.99L8.99 8z"})});case"md":return t(a,{children:t("path",{fill:"currentColor",d:"m13.44 11.956 6.572-6.571L18.527 3.9l-6.571 6.57L5.385 3.9 3.9 5.385l6.57 6.57-6.57 6.572 1.485 1.485 6.57-6.571 6.572 6.57 1.485-1.484z"})});case"lg":return t(a,{children:t("path",{fill:"currentColor",d:"M17.702 15.934 28.818 4.818 27.05 3.05 15.934 14.166 4.818 3.05 3.05 4.818l11.116 11.116L3.05 27.05l1.768 1.768 11.116-11.116L27.05 28.818l1.768-1.768z"})})}if("fill"===l)switch(r){case"xs":return t(a,{children:t("path",{fill:"currentColor",d:"m9.888 3.099-2.9 2.898 2.899 2.9-.99.99-2.9-2.9-2.898 2.9-.99-.99 2.898-2.9L2.108 3.1l.99-.99 2.9 2.898 2.9-2.898z"})});case"sm":return t(a,{children:t("path",{fill:"currentColor",d:"m9.131 8 3.536-3.536-1.131-1.131L8 6.869 4.464 3.333 3.333 4.464 6.869 8l-3.536 3.535 1.131 1.132L8 9.13l3.535 3.536 1.132-1.131z"})});case"md":return t(a,{children:t("path",{fill:"currentColor",d:"m12 13.768 6.337 6.337 1.768-1.768L13.768 12l6.337-6.337-1.768-1.768L12 10.232 5.663 3.895 3.895 5.663 10.232 12l-6.337 6.337 1.768 1.768z"})});case"lg":return t(a,{children:t("path",{fill:"currentColor",d:"M17.91 16 28.954 4.955l-1.91-1.91L16 14.091 4.955 3.045l-1.91 1.91L14.091 16 3.045 27.045l1.91 1.91L16 17.909l11.045 11.046 1.91-1.91z"})})}return t(a,{})};d.metadata={name:"Cross",isSvgIcon:!0,variants:["outline","fill"]};var s=({size:r,variant:l})=>{if("outline"===l)switch(r){case"xs":return t(a,{children:t("path",{fill:"currentColor",d:"m10.698 6.597-9.4.001v-1.2h9.4z"})});case"sm":return t(a,{children:t("path",{fill:"currentColor",d:"M12.7 8.7H3.3V7.3h9.4z"})});case"md":return t(a,{children:t("path",{fill:"currentColor",d:"M2.97 10.75h17.838v2.1H2.97z"})});case"lg":return t(a,{children:t("path",{fill:"currentColor",d:"M27 17H4.7v-2.3H27z"})})}if("fill"===l)switch(r){case"xs":return t(a,{children:t("path",{fill:"currentColor",d:"M10.799 6.698h-9.6v-1.4h9.6z"})});case"sm":return t(a,{children:t("path",{fill:"currentColor",d:"M12.8 8.8H3.2V7.2h9.6z"})});case"md":return t(a,{children:t("path",{fill:"currentColor",d:"M2.966 10.75h18.068v2.5H2.966z"})});case"lg":return t(a,{children:t("path",{fill:"currentColor",d:"M27.3 17.3H4.7v-2.6h22.6z"})})}return t(a,{})};s.metadata={name:"Minus",isSvgIcon:!0,variants:["outline","fill"]};var u=({size:r,variant:l})=>{if("outline"===l)switch(r){case"xs":return t(a,{children:t("path",{fill:"currentColor",d:"M6.9 3.375a.9.9 0 1 0-1.8 0 .9.9 0 0 0 1.8 0m1.35 0a2.25 2.25 0 1 1-4.5 0 2.25 2.25 0 0 1 4.5 0m.53 4.643a2.2 2.2 0 0 0-1.104-.293H4.324a2.224 2.224 0 0 0-2.183 1.8h7.718a2.22 2.22 0 0 0-1.08-1.507M.75 9.95a3.574 3.574 0 0 1 3.574-3.574h3.352A3.574 3.574 0 0 1 11.25 9.95v.875a.05.05 0 0 1-.05.051H.8a.05.05 0 0 1-.05-.05z"})});case"sm":return t(a,{children:t("path",{fill:"currentColor",d:"M9.2 4.5a1.2 1.2 0 1 0-2.4 0 1.2 1.2 0 0 0 2.4 0m1.8 0a3 3 0 1 1-6 0 3 3 0 0 1 6 0m.706 6.19a2.97 2.97 0 0 0-1.472-.39H5.766a2.966 2.966 0 0 0-2.912 2.4h10.292a2.97 2.97 0 0 0-1.44-2.01M1 13.267A4.766 4.766 0 0 1 5.766 8.5h4.468A4.765 4.765 0 0 1 15 13.266v1.166c0 .038-.03.068-.068.068H1.068A.07.07 0 0 1 1 14.432z"})});case"md":return t(a,{children:t("path",{fill:"currentColor",d:"M14.25 7.95a2.25 2.25 0 1 0-4.5 0 2.25 2.25 0 0 0 4.5 0m1.8 0a4.05 4.05 0 1 1-8.1 0 4.05 4.05 0 0 1 8.1 0m.927 7.244A4.2 4.2 0 0 0 15 14.7H9a4.2 4.2 0 0 0-4.157 3.6h14.314a4.2 4.2 0 0 0-2.18-3.106M3 18.9a6 6 0 0 1 6-6h6a6 6 0 0 1 6 6v1.121a.08.08 0 0 1-.079.079H3.08a.08.08 0 0 1-.08-.08z"})});case"lg":return t(a,{children:t("path",{fill:"currentColor",d:"M19.7 10a3.7 3.7 0 1 0-7.4 0 3.7 3.7 0 0 0 7.4 0m2.3 0a6 6 0 1 1-12 0 6 6 0 0 1 12 0m8 17.043q0-.681-.1-1.343a9.044 9.044 0 0 0-8.943-7.7h-9.914A9.04 9.04 0 0 0 2 27.043V28h28zM8.144 20.955a6.74 6.74 0 0 1 2.9-.655h9.913a6.744 6.744 0 0 1 6.608 5.4H4.435a6.74 6.74 0 0 1 3.71-4.745"})})}if("fill"===l)switch(r){case"xs":return t(a,{children:t("path",{fill:"currentColor",d:"M6 5.625a2.25 2.25 0 1 0 0-4.5 2.25 2.25 0 0 0 0 4.5m-3.45 1.22A3.57 3.57 0 0 0 .75 9.95v.875c0 .028.023.051.05.051h10.4a.05.05 0 0 0 .05-.05V9.95a3.574 3.574 0 0 0-3.574-3.574H4.324c-.622 0-1.233.162-1.773.47"})});case"sm":return t(a,{children:t("path",{fill:"currentColor",d:"M8 7.5a3 3 0 1 0 0-6 3 3 0 0 0 0 6M3.401 9.128A4.77 4.77 0 0 0 1 13.266v1.166c0 .038.03.068.068.068h13.864c.038 0 .068-.03.068-.068v-1.166A4.766 4.766 0 0 0 10.234 8.5H5.766a4.76 4.76 0 0 0-2.365.628"})});case"md":return t(a,{children:t("path",{fill:"currentColor",d:"M12 12a4.05 4.05 0 1 0 0-8.1 4.05 4.05 0 0 0 0 8.1m-5.824 1.606A6 6 0 0 0 3 18.9v1.121c0 .044.035.079.079.079H20.92a.08.08 0 0 0 .08-.08V18.9a6 6 0 0 0-6-6H9a6 6 0 0 0-2.824.706"})});case"lg":return t(a,{children:t("path",{fill:"currentColor",d:"M16 16a6 6 0 1 0 0-12 6 6 0 0 0 0 12m-8.845 2.878A9.04 9.04 0 0 0 2 27.043V28h28v-.957A9.043 9.043 0 0 0 20.957 18h-9.914a9.05 9.05 0 0 0-3.888.878"})})}return t(a,{})};u.metadata={name:"Person",isSvgIcon:!0,variants:["outline","fill"]};var f=({size:r,variant:l})=>{if("outline"===l)switch(r){case"xs":return t(a,{children:t("g",{clipPath:"url(#Progress-outline-12_svg__a)",children:t("path",{fill:"currentColor",d:"M5.924 2.025a3.9 3.9 0 1 0 3.9 3.9h1.2a5.1 5.1 0 1 1-5.1-5.1.6.6 0 1 1 0 1.2"})})});case"sm":return t(a,{children:t("path",{fill:"currentColor",d:"M7.9 2.7a5.2 5.2 0 1 0 5.2 5.2h1.6a6.8 6.8 0 1 1-6.8-6.8.8.8 0 1 1 0 1.6"})});case"md":return t(a,{children:t("path",{fill:"currentColor",d:"M12 4a8 8 0 1 0 8 8h2c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2a1 1 0 1 1 0 2"})});case"lg":return t(a,{children:t("path",{fill:"currentColor",d:"M16.15 4.3C9.605 4.3 4.3 9.605 4.3 16.15S9.605 28 16.15 28 28 22.695 28 16.15h2.3c0 7.815-6.335 14.15-14.15 14.15S2 23.965 2 16.15 8.335 2 16.15 2a1.15 1.15 0 0 1 0 2.3"})})}if("fill"===l)switch(r){case"xs":return t(a,{children:t("g",{clipPath:"url(#Progress-fill-12_svg__a)",children:t("path",{fill:"currentColor",d:"M6 2.175A3.825 3.825 0 1 0 9.823 6h1.35A5.175 5.175 0 1 1 6 .825a.675.675 0 0 1 0 1.35"})})});case"sm":return t(a,{children:t("path",{fill:"currentColor",d:"M8 2.9A5.1 5.1 0 1 0 13.1 8h1.8A6.9 6.9 0 1 1 8 1.1a.9.9 0 1 1 0 1.8"})});case"md":return t(a,{children:t("path",{fill:"currentColor",d:"M12.15 4.3A7.85 7.85 0 1 0 20 12.15h2.3c0 5.606-4.544 10.15-10.15 10.15S2 17.756 2 12.15 6.544 2 12.15 2a1.15 1.15 0 0 1 0 2.3"})});case"lg":return t(a,{children:t("path",{fill:"currentColor",d:"M16.35 4.7C9.916 4.7 4.7 9.916 4.7 16.35S9.916 28 16.35 28 28 22.784 28 16.35h2.7c0 7.925-6.425 14.35-14.35 14.35S2 24.275 2 16.35 8.425 2 16.35 2a1.35 1.35 0 1 1 0 2.7"})})}return t(a,{})};f.metadata={name:"Progress",isSvgIcon:!0,variants:["outline","fill"]};
2
2
  /*! © 2025 Yahoo, Inc. UDS v0.0.0-development */export{n as Pressable,d as a,c as e,u as e2,s as o,f as o2,h as t};
@@ -1,2 +1,2 @@
1
- import{Box as r}from"./chunk-WLBLQS3H.js";import{require_isFunction as e}from"./chunk-IZFEVJFL.js";import{__toESM as t}from"./chunk-GF4A6TFM.js";import{forwardRef as o,Children as a,cloneElement as n,isValidElement as c}from"react";import{jsx as p}from"react/jsx-runtime";/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */
1
+ import{Box as r}from"./chunk-FEHICJMH.js";import{require_isFunction as e}from"./chunk-EUHS2LRV.js";import{__toESM as t}from"./chunk-GF4A6TFM.js";import{forwardRef as o,Children as a,cloneElement as n,isValidElement as c}from"react";import{jsx as p}from"react/jsx-runtime";/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */
2
2
  var i=t(e(),1),l=(r,e)=>((r,e)=>{const t=(0,i.default)(e)?e:()=>e;return r.flatMap((r,e)=>0!==e?[t(e),r]:[r])})(a.toArray(r),r=>{const t=(0,i.default)(e)?e(r):e;return c(t)?n(t,{...t.props,key:t.key??`interspersed-${r}`}):null}),m=o(function({gap:e,children:t,separator:o,...a},n){return p(r,{ref:n,flexDirection:"row",rowGap:e,columnGap:e,...a,children:o?l(t,o):t})});m.displayName="HStack";var u=o(function({gap:e,children:t,separator:o,...a},n){return p(r,{ref:n,flexDirection:"column",columnGap:e,rowGap:e,...a,children:o?l(t,o):t})});u.displayName="VStack";export{m as HStack,u as VStack};
@@ -1 +1 @@
1
- import{VStack as e,HStack as r}from"./chunk-GXKAT72L.js";import{cx as t,Box as i,Text as o,getStyles as a}from"./chunk-WLBLQS3H.js";import{forwardRef as n,useMemo as l}from"react";import{jsxs as s,jsx as d}from"react/jsx-runtime";/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */var c={horizontal:"w-full",vertical:""},m=n(function({vertical:a=!1,contentPosition:n="center",className:m,layerClassNames:h,children:f,...v},x){const p=a?"vertical":"horizontal",N=a?e:r,b=l(()=>({root:t(c[p],m,h?.root),label:t(h?.text),line:h?.line}),[m,p,h?.root,h?.text,h?.line]),u=l(()=>"vertical"===p?{borderTopWidth:0,borderRightWidth:0,borderBottomWidth:0}:{borderLeftWidth:0,borderRightWidth:0,borderBottomWidth:0},[p]),y=()=>d(i,{flex:"1",className:b.line,style:u});return f?s(N,{flex:"1",alignItems:"center",className:b.root,ref:x,...v,children:["start"!==n&&d(y,{}),d(i,{flex:"none",children:d(o,{color:"inherit",variant:"inherit",className:b.label,children:f})}),"end"!==n&&d(y,{})]}):d(i,{display:"flex",flex:"none",className:b.root,ref:x,...v,children:d(y,{})})});m.displayName="DividerCore";var h=n(function({variant:e="primary",layerClassNames:r,...i},o){const n=l(()=>({root:t("inherit"!==e&&a({dividerVariantRoot:e}),r?.root),text:t("inherit"!==e?a({dividerVariantLabel:e}):void 0,r?.text),line:t("inherit"!==e&&a({dividerVariantLine:e}),r?.line)}),[r?.line,r?.root,r?.text,e]);return d(m,{ref:o,layerClassNames:n,...i})});h.displayName="DividerInternal";export{h as DividerInternal};
1
+ import{VStack as e,HStack as r}from"./chunk-WTCFWBEP.js";import{cx as t,Box as i,Text as o,getStyles as a}from"./chunk-FEHICJMH.js";import{forwardRef as n,useMemo as l}from"react";import{jsxs as s,jsx as d}from"react/jsx-runtime";/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */var c={horizontal:"w-full",vertical:""},m=n(function({vertical:a=!1,contentPosition:n="center",className:m,layerClassNames:h,children:f,...v},x){const p=a?"vertical":"horizontal",N=a?e:r,b=l(()=>({root:t(c[p],m,h?.root),label:t(h?.text),line:h?.line}),[m,p,h?.root,h?.text,h?.line]),u=l(()=>"vertical"===p?{borderTopWidth:0,borderRightWidth:0,borderBottomWidth:0}:{borderLeftWidth:0,borderRightWidth:0,borderBottomWidth:0},[p]),y=()=>d(i,{flex:"1",className:b.line,style:u});return f?s(N,{flex:"1",alignItems:"center",className:b.root,ref:x,...v,children:["start"!==n&&d(y,{}),d(i,{flex:"none",children:d(o,{color:"inherit",variant:"inherit",className:b.label,children:f})}),"end"!==n&&d(y,{})]}):d(i,{display:"flex",flex:"none",className:b.root,ref:x,...v,children:d(y,{})})});m.displayName="DividerCore";var h=n(function({variant:e="primary",layerClassNames:r,...i},o){const n=l(()=>({root:t("inherit"!==e&&a({dividerVariantRoot:e}),r?.root),text:t("inherit"!==e?a({dividerVariantLabel:e}):void 0,r?.text),line:t("inherit"!==e&&a({dividerVariantLine:e}),r?.line)}),[r?.line,r?.root,r?.text,e]);return d(m,{ref:o,layerClassNames:n,...i})});h.displayName="DividerInternal";export{h as DividerInternal};
@@ -0,0 +1,2 @@
1
+ import{MOTION_PREFIX as n}from"./chunk-O7UVSJ5U.js";/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */
2
+ function o({variant:o,speed:r,control:t}){return`${[`--${n}`,o,r,t].join("-")}`}export{o as getMotionVar};
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";var e=require("../chunk-NKJZNZ5C.cjs"),r=require("../chunk-SJVQD4KS.cjs"),a=require("../chunk-KPPL5RPJ.cjs"),t=require("../chunk-RAHLDYWR.cjs"),d=require("../chunk-P6ZWWEX2.cjs"),s=require("../chunk-QLXJH36U.cjs"),n=require("@ariakit/react/menu"),i=require("react"),c=require("use-sync-external-store/shim/index.js"),o=require("@yahoo/uds/fixtures"),u=require("motion/react"),l=require("react/jsx-runtime"),x=require("@ariakit/react");function m(e){return e&&e.__esModule?e:{default:e}}function p(e){if(e&&e.__esModule)return e;var r=Object.create(null);return e&&Object.keys(e).forEach(function(a){if("default"!==a){var t=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(r,a,t.get?t:{enumerable:!0,get:function(){return e[a]}})}}),r.default=e,Object.freeze(r)}var f=p(i),b=m(c),h={};function _(e){return e}function v(e,r){const a=e.__unstableInternals;return function(e,r){if(!e)throw new Error(r)}(a,"Invalid store"),a[r]}s.__export(h,{Content:()=>j,Divider:()=>N,Item:()=>P,ItemCheckbox:()=>R,Provider:()=>z,Trigger:()=>A,useMenuContext:()=>n.useMenuContext,useMenuStore:()=>n.useMenuStore,useStoreState:()=>x.useStoreState});var{useSyncExternalStore:g}=b.default;function y(e,r=_){const a=f.useCallback(r=>e?function(e,...r){if(e)return v(e,"subscribe")(...r)}(e,null,r):()=>{},[e]),t=()=>{const a="string"==typeof r?r:null,t="function"==typeof r?r:null,d=null==e?void 0:e.getState();if(t)return t(d);var s,n;if(d&&(a&&(s=d,n=a,"function"==typeof Object.hasOwn?Object.hasOwn(s,n):Object.prototype.hasOwnProperty.call(s,n))))return d[a]};return g(a,t,t)}var I=u.m.create(a.VStack),C=5,S=.97,w={top:{x:0,y:C},bottom:{x:0,y:-5},left:{x:C,y:0},right:{x:-5,y:0}},k=e=>i.useMemo(()=>((e="bottom")=>{const[r="top"]=e?.split("-");return{closed:{...w[r],opacity:0,scale:S},open:{y:0,x:0,opacity:1,scale:1}}})(e),[e]),j=i.forwardRef(function({gap:e,spacing:r,spacingBottom:a,spacingEnd:t,spacingStart:s,spacingTop:c,gutter:x="1",backgroundColor:m="primary",borderRadius:p="md",borderColor:f,borderWidth:b="thin",overflow:h,dropShadow:_="lg",className:v,sameWidth:g,focusable:C,children:S,portalElement:w,portal:j=!0,disableAutoBorderRadius:N,...M},V){const E=n.useMenuContext(),P=y(E,"open"),R=y(E,"mounted"),O=y(E,"currentPlacement"),q=y(E,"placement"),[z,A]=i.useState(O),[T,D]=i.useState(O);i.useEffect(()=>{q!==T&&D(q)},[q]),i.useEffect(()=>{O!==T&&D(O)},[O]),i.useEffect(()=>{R&&T!==z&&A(T)},[R,T,z]);const B=i.useMemo(()=>P&&R?"open":"closed",[P,R]),H=i.useMemo(()=>P?_:"none",[P,_]),W=k(T),L=(({borderRadius:e,spacing:r})=>{if(void 0===r||"0"===r)switch(e){case"xs":return"[&>*:first-child]:rounded-t-[calc(var(--uds-border-radius-xs)_-_var(--uds-border-width-thin))] [&>*:last-child]:rounded-b-[calc(var(--uds-border-radius-xs)_-_var(--uds-border-width-thin))]";case"sm":return"[&>*:first-child]:rounded-t-[calc(var(--uds-border-radius-sm)_-_var(--uds-border-width-thin))] [&>*:last-child]:rounded-b-[calc(var(--uds-border-radius-sm)_-_var(--uds-border-width-thin))]";case"md":return"[&>*:first-child]:rounded-t-[calc(var(--uds-border-radius-md)_-_var(--uds-border-width-thin))] [&>*:last-child]:rounded-b-[calc(var(--uds-border-radius-md)_-_var(--uds-border-width-thin))]";case"lg":return"[&>*:first-child]:rounded-t-[calc(var(--uds-border-radius-lg)_-_var(--uds-border-width-thin))] [&>*:last-child]:rounded-b-[calc(var(--uds-border-radius-lg)_-_var(--uds-border-width-thin))]";case"xl":return"[&>*:first-child]:rounded-t-[calc(var(--uds-border-radius-xl)_-_var(--uds-border-width-thin))] [&>*:last-child]:rounded-b-[calc(var(--uds-border-radius-xl)_-_var(--uds-border-width-thin))]"}if("px"===r||"0.5"===r)switch(e){case"xs":return"[&>*:first-child]:rounded-t-[max(1px,calc(var(--uds-border-radius-xs)_-_2px))] [&>*:last-child]:rounded-b-[max(1px,calc(var(--uds-border-radius-xs)_-_2px))]";case"sm":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-sm)_-_2px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-sm)_-_2px))]";case"md":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-md)_-_2px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-md)_-_2px))]";case"lg":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-lg)_-_2px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-lg)_-_2px))]";case"xl":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-xl)_-_2px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-xl)_-_2px))]"}if("1"===r||"1.5"===r)switch(e){case"xs":return"[&>*:first-child]:rounded-t-[max(1px,calc(var(--uds-border-radius-xs)_-_4px))] [&>*:last-child]:rounded-b-[max(1px,calc(var(--uds-border-radius-xs)_-_4px))]";case"sm":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-sm)_-_4px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-sm)_-_4px))]";case"md":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-md)_-_4px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-md)_-_4px))]";case"lg":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-lg)_-_4px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-lg)_-_4px))]";case"xl":return"[&>*:first-child]:rounded-t-[calc(var(--uds-border-radius-xl)_-_4px)] [&>*:last-child]:rounded-b-[calc(var(--uds-border-radius-xl)_-_4px)]"}if("2"===r||"2.5"===r)switch(e){case"xs":return"[&>*:first-child]:rounded-t-[max(1px,calc(var(--uds-border-radius-xs)_-_8px))] [&>*:last-child]:rounded-b-[max(1px,calc(var(--uds-border-radius-xs)_-_8px))]";case"sm":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-sm)_-_8px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-sm)_-_8px))]";case"md":return"[&>*:first-child]:rounded-t-[max(4px,calc(var(--uds-border-radius-md)_-_8px))] [&>*:last-child]:rounded-b-[max(4px,calc(var(--uds-border-radius-md)_-_8px))]";case"lg":return"[&>*:first-child]:rounded-t-[max(4px,calc(var(--uds-border-radius-lg)_-_8px))] [&>*:last-child]:rounded-b-[max(4px,calc(var(--uds-border-radius-lg)_-_8px))]";case"xl":return"[&>*:first-child]:rounded-t-[calc(var(--uds-border-radius-xl)_-_8px)] [&>*:last-child]:rounded-b-[calc(var(--uds-border-radius-xl)_-_8px)]"}if("3"===r||"3.5"===r)switch(e){case"xs":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-xs)_-_6px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-xs)_-_6px))]";case"sm":return"[&>*:first-child]:rounded-t-[max(4px,calc(var(--uds-border-radius-sm)_-_6px))] [&>*:last-child]:rounded-b-[max(4px,calc(var(--uds-border-radius-sm)_-_6px))]";case"md":return"[&>*:first-child]:rounded-t-[max(6px,calc(var(--uds-border-radius-md)_-_6px))] [&>*:last-child]:rounded-b-[max(6px,calc(var(--uds-border-radius-md)_-_6px))]";case"lg":return"[&>*:first-child]:rounded-t-[max(6px,calc(var(--uds-border-radius-lg)_-_6px))] [&>*:last-child]:rounded-b-[max(6px,calc(var(--uds-border-radius-lg)_-_6px))]";case"xl":return"[&>*:first-child]:rounded-t-[min(20px,calc(var(--uds-border-radius-xl)_-_6px))] [&>*:last-child]:rounded-b-[min(20px,calc(var(--uds-border-radius-xl)_-_6px))]"}if("4"===r)switch(e){case"xs":return"[&>*:first-child]:rounded-t-[max(1px,calc(var(--uds-border-radius-xs)_-_16px))] [&>*:last-child]:rounded-b-[max(1px,calc(var(--uds-border-radius-xs)_-_16px))]";case"sm":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-sm)_-_16px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-sm)_-_16px))]";case"md":return"[&>*:first-child]:rounded-t-[max(4px,calc(var(--uds-border-radius-md)_-_16px))] [&>*:last-child]:rounded-b-[max(4px,calc(var(--uds-border-radius-md)_-_16px))]";case"lg":return"[&>*:first-child]:rounded-t-[max(6px,calc(var(--uds-border-radius-lg)_-_16px))] [&>*:last-child]:rounded-b-[max(6px,calc(var(--uds-border-radius-lg)_-_16px))]";case"xl":return"[&>*:first-child]:rounded-t-[max(6px,calc(var(--uds-border-radius-xl)_-_16px))] [&>*:last-child]:rounded-b-[max(6px,calc(var(--uds-border-radius-xl)_-_16px))]"}switch(e){case"xs":return"[&>*:first-child]:rounded-t-[max(1px,calc(var(--uds-border-radius-xs)_-_4px))] [&>*:last-child]:rounded-b-[max(1px,calc(var(--uds-border-radius-xs)_-_4px))]";case"sm":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-sm)_-_4px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-sm)_-_4px))]";case"md":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-md)_-_4px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-md)_-_4px))]";case"lg":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-lg)_-_4px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-lg)_-_4px))]";case"xl":return"[&>*:first-child]:rounded-t-[min(18px,calc(var(--uds-border-radius-xl)_-_4px))] [&>*:last-child]:rounded-b-[min(18px,calc(var(--uds-border-radius-xl)_-_4px))]"}})({borderRadius:p,spacing:r}),$=i.useMemo(()=>o.spacingMap[x],[x]);return l.jsx(u.AnimatePresence,{initial:!1,children:l.jsx(n.Menu,{gutter:$,sameWidth:g,focusable:C,store:E,ref:V,portalElement:w,portal:j,...M,render:l.jsx(I,{backgroundColor:m,gap:e,spacing:r,spacingBottom:a,spacingEnd:t,spacingStart:s,spacingTop:c,borderRadius:p,borderColor:f,borderWidth:b,overflow:h,animate:B,variants:W,dropShadow:H,className:d.cx("uds-menu-content","transition-shadow","duration-200","ease-in-out","min-w-60","max-w-lg","max-h-96","overflow-auto","uds-ring","z-10","group",!N&&L,v),children:S})})})});j.displayName="MenuContent";var N=i.forwardRef(function({role:r="separator",contentPosition:a="start",gap:t="4",children:s,spacingVertical:n=(s?"2":"0"),spacingHorizontal:i=(s?"4":"0"),className:c,...o},u){const x={root:d.getStyles({menuDividerVariantRoot:"default",className:c}),text:d.getStyles({menuDividerVariantText:"default"}),line:d.getStyles({menuDividerVariantLine:"default"})};return l.jsx(e.DividerInternal,{ref:u,role:r,variant:"inherit",contentPosition:a,gap:t,spacingVertical:n,spacingHorizontal:i,className:x.root,layerClassNames:x,...o,children:s})});N.displayName="MenuDivider";var M="uds-menu-item",V={visible:{scale:1,opacity:1},hidden:{scale:.7,opacity:0}},E=i.forwardRef(function({spacing:e="0",spacingBottom:t,spacingEnd:s,spacingHorizontal:n="4",spacingStart:c,spacingTop:o,spacingVertical:x="3.5",columnGap:m="2",className:p,children:f,endIcon:b,startIcon:h,hideEndIcon:_,active:v,disabled:g,as:y,name:I,alignItems:C="center",justifyContent:S="space-between",layerClassNames:w,slots:k,rootProps:j,...N},E){const P=i.Children.count(f)>1,R=(({active:e,disabled:r,className:a})=>d.cx(M,"flex","focus-visible:text-brand","focus-visible:bg-brand-secondary","focus-visible:z-10","uds-ring","!-outline-offset-2",e&&["[&:not([aria-checked])]:cursor-default"],r&&"opacity-25 cursor-not-allowed","duration-20 transition-[font-variation-settings] ease-in-out","z-0",a))({active:v,disabled:g,className:p}),O=d.getStyles({className:d.cx(`${M}-content truncate`,w?.text),textAlign:"start",...P&&{columnGap:m,display:"flex",alignItems:"center",width:"full",justifyContent:"space-between"}}),q=i.useMemo(()=>({root:d.getStyles({menuSizeRoot:"default",flexDirection:"row",spacing:e,spacingBottom:t,spacingEnd:s,spacingHorizontal:n,spacingStart:c,spacingTop:o,spacingVertical:x,columnGap:m,alignItems:C,justifyContent:S,className:d.cx(R,w?.root)}),startIcon:d.getStyles({menuSizeStartIcon:"default",className:w?.startIcon}),endIcon:d.getStyles({menuSizeEndIcon:"default",className:w?.endIcon})}),[C,m,S,w?.endIcon,w?.root,w?.startIcon,R,e,t,s,n,c,o,x]),z=k?.root??(e=>l.jsx(r.Pressable,{...e,...N,onClick:r=>{e.onClick?.(r),N.onClick?.(r)}}));return l.jsxs(y,{ref:E,name:I??"",...j,render:z,disabled:g,className:q.root,children:[l.jsxs(a.HStack,{gap:m,alignItems:"center",width:"full",children:[l.jsx(u.AnimatePresence,{initial:!1,children:h&&l.jsx(u.m.span,{variants:V,initial:"hidden",animate:"visible",exit:"hidden",className:"uds-start-icon",children:l.jsx(d.IconSlot,{icon:h,className:q.startIcon,iconProps:{size:"sm",variant:v?"fill":"outline",color:"current"}})})}),l.jsx("span",{className:O,children:f})]}),l.jsx(u.AnimatePresence,{initial:!1,mode:"popLayout",children:!_&&b&&l.jsx(u.m.span,{variants:V,initial:"hidden",animate:"visible",exit:"hidden",className:"uds-end-icon",children:l.jsx(d.IconSlot,{icon:b,className:q.endIcon,iconProps:{size:"sm",variant:v?"fill":"outline",color:"current"}})})})]})});E.displayName="MenuItemBase";var P=i.forwardRef(function({active:e,hideOnClick:r,...a},t){const s={root:d.getStyles({menuItemVariantRoot:"default",menuItemVariantActiveRoot:e?"on":"off"}),text:d.getStyles({menuItemVariantText:"default",menuItemVariantActiveText:e?"on":"off"}),startIcon:d.getStyles({menuItemVariantIcon:"default",menuItemVariantActiveIcon:e?"on":"off"})};return l.jsx(E,{ref:t,as:n.MenuItem,active:e,layerClassNames:s,rootProps:{hideOnClick:r},...a})});P.displayName="MenuItem";var R=i.forwardRef(function({name:e,endIcon:a=r.e,checked:t,defaultChecked:s,hideOnClick:c,className:o,...u},m){const p=e,f=i.useRef(!1),b=n.useMenuContext(),h=x.useStoreState(b);i.useEffect(()=>{!f.current&&void 0!==s&&b&&(b.setValues(e=>({...e,[p]:s})),f.current=!0)},[b,s,p]);const _=i.useMemo(()=>{if(void 0!==t)return t;if(h?.items?.length){const e=h?.items.find(e=>e.element?.name===p);if(e?.element)return e.element.checked}const e=h?.values[p];return"boolean"==typeof e?e:s??!1},[h?.items,h?.values,p,t,s]),v=i.useCallback(e=>{void 0===t&&b?.setValues(r=>({...r,[p]:e.target.checked}))},[p,b,t]),g={root:d.getStyles({menuItemCheckboxVariantRoot:"default",menuItemCheckboxVariantActiveRoot:_?"on":"off"}),text:d.getStyles({menuItemCheckboxVariantText:"default",menuItemCheckboxVariantActiveText:_?"on":"off"}),startIcon:d.getStyles({menuItemCheckboxVariantStartIcon:"default",menuItemCheckboxVariantActiveStartIcon:_?"on":"off"}),endIcon:d.getStyles({menuItemCheckboxVariantEndIcon:"default",menuItemCheckboxVariantActiveEndIcon:_?"on":"off"})};return l.jsx(E,{ref:m,as:n.MenuItemCheckbox,hideEndIcon:!_,endIcon:a,active:_,className:d.cx("uds-menu-item-checkbox",o),layerClassNames:g,name:e,rootProps:{onChange:v,defaultChecked:s,checked:void 0!==t?t:void 0,hideOnClick:c},...u})});R.displayName="MenuItemCheckbox";var O=()=>{if("undefined"==typeof document)return!1;return"rtl"===getComputedStyle(document.documentElement).direction},q=e=>{const[r,a]=i.useState(O);return i.useEffect(()=>{if(e?.explicit)return void a(e.explicit);const r=(e=>{const r=new MutationObserver(r=>{r.some(e=>"attributes"===e.type&&"dir"===e.attributeName)&&e()});return r.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}),r})(()=>{a(O())});return()=>r.disconnect()},[e?.explicit]),r},z=function({placement:e="bottom",rtl:r,...a}){const d=q({explicit:r}),s=((e,r)=>{const a=r?.rtl;if("start"===e)return a?"right":"left";if("end"===e)return a?"left":"right";if(e?.includes("-")){const[r,t]=e.split("-");if(!("start"!==r&&"end"!==r||"top"!==t&&"bottom"!==t))return`${"start"===r?a?"right":"left":a?"left":"right"}-${"bottom"===t?"end":"start"}`;if("top"===r||"bottom"===r)return`${r}-${"start"===t?a?"end":"start":a?"start":"end"}`}return e})(e,{rtl:d});return l.jsx(t.SpringMotionConfig,{children:l.jsx(n.MenuProvider,{placement:s,rtl:d,...a})})};z.displayName="MenuProvider";var A=i.forwardRef(function({asChild:e,children:r,className:a,...t},s){const c=i.useRef(null),o=e?{render:l.jsx(d.Box,{asChild:!0,ref:c,className:"uds-ring h-fit w-fit",children:r})}:{children:r},u=i.useCallback(()=>{const e=c.current?.firstChild;e instanceof HTMLElement&&"function"==typeof e.focus&&e.focus()},[c]);return l.jsx(n.MenuButton,{onFocus:u,onFocusVisible:u,ref:s,className:d.cx("uds-menu-trigger",a),...o,...t})});A.displayName="MenuTrigger",exports.Menu=h;
2
+ "use strict";var e=require("../chunk-KQYW7REL.cjs"),r=require("../chunk-CGHQHGYY.cjs"),a=require("../chunk-EUBXXJNQ.cjs"),t=require("../chunk-O7H45A6H.cjs"),d=require("../chunk-BMP5TZVZ.cjs"),s=require("../chunk-QLXJH36U.cjs"),n=require("@ariakit/react/menu"),i=require("react"),c=require("use-sync-external-store/shim/index.js"),o=require("@yahoo/uds/fixtures"),u=require("motion/react"),l=require("react/jsx-runtime"),x=require("@ariakit/react");function m(e){return e&&e.__esModule?e:{default:e}}function p(e){if(e&&e.__esModule)return e;var r=Object.create(null);return e&&Object.keys(e).forEach(function(a){if("default"!==a){var t=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(r,a,t.get?t:{enumerable:!0,get:function(){return e[a]}})}}),r.default=e,Object.freeze(r)}var f=p(i),b=m(c),h={};function _(e){return e}function v(e,r){const a=e.__unstableInternals;return function(e,r){if(!e)throw new Error(r)}(a,"Invalid store"),a[r]}s.__export(h,{Content:()=>j,Divider:()=>N,Item:()=>R,ItemCheckbox:()=>P,Provider:()=>z,Trigger:()=>A,useMenuContext:()=>n.useMenuContext,useMenuStore:()=>n.useMenuStore,useStoreState:()=>x.useStoreState});var{useSyncExternalStore:g}=b.default;function y(e,r=_){const a=f.useCallback(r=>e?function(e,...r){if(e)return v(e,"subscribe")(...r)}(e,null,r):()=>{},[e]),t=()=>{const a="string"==typeof r?r:null,t="function"==typeof r?r:null,d=null==e?void 0:e.getState();if(t)return t(d);var s,n;if(d&&(a&&(s=d,n=a,"function"==typeof Object.hasOwn?Object.hasOwn(s,n):Object.prototype.hasOwnProperty.call(s,n))))return d[a]};return g(a,t,t)}var I=u.m.create(a.VStack),C=5,S=.97,w={top:{x:0,y:C},bottom:{x:0,y:-5},left:{x:C,y:0},right:{x:-5,y:0}},k=e=>i.useMemo(()=>((e="bottom")=>{const[r="top"]=e?.split("-");return{closed:{...w[r],opacity:0,scale:S},open:{y:0,x:0,opacity:1,scale:1}}})(e),[e]),j=i.forwardRef(function({gap:e,spacing:r,spacingBottom:a,spacingEnd:t,spacingStart:s,spacingTop:c,gutter:x="1",backgroundColor:m="primary",borderRadius:p="md",borderColor:f,borderWidth:b="thin",overflow:h,dropShadow:_="lg",className:v,sameWidth:g,focusable:C,children:S,portalElement:w,portal:j=!0,disableAutoBorderRadius:N,...M},V){const E=n.useMenuContext(),R=y(E,"open"),P=y(E,"mounted"),O=y(E,"currentPlacement"),q=y(E,"placement"),[z,A]=i.useState(O),[T,H]=i.useState(O);i.useEffect(()=>{q!==T&&H(q)},[q]),i.useEffect(()=>{O!==T&&H(O)},[O]),i.useEffect(()=>{P&&T!==z&&A(T)},[P,T,z]);const B=i.useMemo(()=>R&&P?"open":"closed",[R,P]),D=i.useMemo(()=>R?_:"none",[R,_]),G=k(T),L=(({borderRadius:e,spacing:r})=>{if(void 0===r||"0"===r)switch(e){case"xs":return"[&>*:first-child]:rounded-t-[calc(var(--uds-border-radius-xs)_-_var(--uds-border-width-thin))] [&>*:last-child]:rounded-b-[calc(var(--uds-border-radius-xs)_-_var(--uds-border-width-thin))]";case"sm":return"[&>*:first-child]:rounded-t-[calc(var(--uds-border-radius-sm)_-_var(--uds-border-width-thin))] [&>*:last-child]:rounded-b-[calc(var(--uds-border-radius-sm)_-_var(--uds-border-width-thin))]";case"md":return"[&>*:first-child]:rounded-t-[calc(var(--uds-border-radius-md)_-_var(--uds-border-width-thin))] [&>*:last-child]:rounded-b-[calc(var(--uds-border-radius-md)_-_var(--uds-border-width-thin))]";case"lg":return"[&>*:first-child]:rounded-t-[calc(var(--uds-border-radius-lg)_-_var(--uds-border-width-thin))] [&>*:last-child]:rounded-b-[calc(var(--uds-border-radius-lg)_-_var(--uds-border-width-thin))]";case"xl":return"[&>*:first-child]:rounded-t-[calc(var(--uds-border-radius-xl)_-_var(--uds-border-width-thin))] [&>*:last-child]:rounded-b-[calc(var(--uds-border-radius-xl)_-_var(--uds-border-width-thin))]"}if("px"===r||"0.5"===r)switch(e){case"xs":return"[&>*:first-child]:rounded-t-[max(1px,calc(var(--uds-border-radius-xs)_-_2px))] [&>*:last-child]:rounded-b-[max(1px,calc(var(--uds-border-radius-xs)_-_2px))]";case"sm":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-sm)_-_2px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-sm)_-_2px))]";case"md":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-md)_-_2px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-md)_-_2px))]";case"lg":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-lg)_-_2px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-lg)_-_2px))]";case"xl":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-xl)_-_2px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-xl)_-_2px))]"}if("1"===r||"1.5"===r)switch(e){case"xs":return"[&>*:first-child]:rounded-t-[max(1px,calc(var(--uds-border-radius-xs)_-_4px))] [&>*:last-child]:rounded-b-[max(1px,calc(var(--uds-border-radius-xs)_-_4px))]";case"sm":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-sm)_-_4px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-sm)_-_4px))]";case"md":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-md)_-_4px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-md)_-_4px))]";case"lg":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-lg)_-_4px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-lg)_-_4px))]";case"xl":return"[&>*:first-child]:rounded-t-[calc(var(--uds-border-radius-xl)_-_4px)] [&>*:last-child]:rounded-b-[calc(var(--uds-border-radius-xl)_-_4px)]"}if("2"===r||"2.5"===r)switch(e){case"xs":return"[&>*:first-child]:rounded-t-[max(1px,calc(var(--uds-border-radius-xs)_-_8px))] [&>*:last-child]:rounded-b-[max(1px,calc(var(--uds-border-radius-xs)_-_8px))]";case"sm":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-sm)_-_8px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-sm)_-_8px))]";case"md":return"[&>*:first-child]:rounded-t-[max(4px,calc(var(--uds-border-radius-md)_-_8px))] [&>*:last-child]:rounded-b-[max(4px,calc(var(--uds-border-radius-md)_-_8px))]";case"lg":return"[&>*:first-child]:rounded-t-[max(4px,calc(var(--uds-border-radius-lg)_-_8px))] [&>*:last-child]:rounded-b-[max(4px,calc(var(--uds-border-radius-lg)_-_8px))]";case"xl":return"[&>*:first-child]:rounded-t-[calc(var(--uds-border-radius-xl)_-_8px)] [&>*:last-child]:rounded-b-[calc(var(--uds-border-radius-xl)_-_8px)]"}if("3"===r||"3.5"===r)switch(e){case"xs":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-xs)_-_6px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-xs)_-_6px))]";case"sm":return"[&>*:first-child]:rounded-t-[max(4px,calc(var(--uds-border-radius-sm)_-_6px))] [&>*:last-child]:rounded-b-[max(4px,calc(var(--uds-border-radius-sm)_-_6px))]";case"md":return"[&>*:first-child]:rounded-t-[max(6px,calc(var(--uds-border-radius-md)_-_6px))] [&>*:last-child]:rounded-b-[max(6px,calc(var(--uds-border-radius-md)_-_6px))]";case"lg":return"[&>*:first-child]:rounded-t-[max(6px,calc(var(--uds-border-radius-lg)_-_6px))] [&>*:last-child]:rounded-b-[max(6px,calc(var(--uds-border-radius-lg)_-_6px))]";case"xl":return"[&>*:first-child]:rounded-t-[min(20px,calc(var(--uds-border-radius-xl)_-_6px))] [&>*:last-child]:rounded-b-[min(20px,calc(var(--uds-border-radius-xl)_-_6px))]"}if("4"===r)switch(e){case"xs":return"[&>*:first-child]:rounded-t-[max(1px,calc(var(--uds-border-radius-xs)_-_16px))] [&>*:last-child]:rounded-b-[max(1px,calc(var(--uds-border-radius-xs)_-_16px))]";case"sm":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-sm)_-_16px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-sm)_-_16px))]";case"md":return"[&>*:first-child]:rounded-t-[max(4px,calc(var(--uds-border-radius-md)_-_16px))] [&>*:last-child]:rounded-b-[max(4px,calc(var(--uds-border-radius-md)_-_16px))]";case"lg":return"[&>*:first-child]:rounded-t-[max(6px,calc(var(--uds-border-radius-lg)_-_16px))] [&>*:last-child]:rounded-b-[max(6px,calc(var(--uds-border-radius-lg)_-_16px))]";case"xl":return"[&>*:first-child]:rounded-t-[max(6px,calc(var(--uds-border-radius-xl)_-_16px))] [&>*:last-child]:rounded-b-[max(6px,calc(var(--uds-border-radius-xl)_-_16px))]"}switch(e){case"xs":return"[&>*:first-child]:rounded-t-[max(1px,calc(var(--uds-border-radius-xs)_-_4px))] [&>*:last-child]:rounded-b-[max(1px,calc(var(--uds-border-radius-xs)_-_4px))]";case"sm":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-sm)_-_4px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-sm)_-_4px))]";case"md":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-md)_-_4px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-md)_-_4px))]";case"lg":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-lg)_-_4px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-lg)_-_4px))]";case"xl":return"[&>*:first-child]:rounded-t-[min(18px,calc(var(--uds-border-radius-xl)_-_4px))] [&>*:last-child]:rounded-b-[min(18px,calc(var(--uds-border-radius-xl)_-_4px))]"}})({borderRadius:p,spacing:r}),W=i.useMemo(()=>o.spacingMap[x],[x]);return l.jsx(u.AnimatePresence,{initial:!1,children:l.jsx(n.Menu,{gutter:W,sameWidth:g,focusable:C,store:E,ref:V,portalElement:w,portal:j,...M,render:l.jsx(I,{backgroundColor:m,gap:e,spacing:r,spacingBottom:a,spacingEnd:t,spacingStart:s,spacingTop:c,borderRadius:p,borderColor:f,borderWidth:b,overflow:h,animate:B,variants:G,dropShadow:D,className:d.cx("uds-menu-content","transition-shadow","duration-200","ease-in-out","min-w-60","max-w-lg","max-h-96","overflow-auto","uds-ring","z-10","group",!N&&L,v),children:S})})})});j.displayName="MenuContent";var N=i.forwardRef(function({role:r="separator",contentPosition:a="start",gap:t="4",children:s,spacingVertical:n=(s?"2":"0"),spacingHorizontal:i=(s?"4":"0"),className:c,...o},u){const x={root:d.getStyles({menuDividerVariantRoot:"default",className:c}),text:d.getStyles({menuDividerVariantText:"default"}),line:d.getStyles({menuDividerVariantLine:"default"})};return l.jsx(e.DividerInternal,{ref:u,role:r,variant:"inherit",contentPosition:a,gap:t,spacingVertical:n,spacingHorizontal:i,className:x.root,layerClassNames:x,...o,children:s})});N.displayName="MenuDivider";var M="uds-menu-item",V={visible:{scale:1,opacity:1},hidden:{scale:.7,opacity:0}},E=i.forwardRef(function({spacing:e="0",spacingBottom:t,spacingEnd:s,spacingHorizontal:n="4",spacingStart:c,spacingTop:o,spacingVertical:x="3.5",columnGap:m="2",className:p,children:f,endIcon:b,startIcon:h,hideEndIcon:_,active:v,disabled:g,as:y,name:I,alignItems:C="center",justifyContent:S="space-between",layerClassNames:w,slots:k,rootProps:j,...N},E){const R=i.Children.count(f)>1,P=(({active:e,disabled:r,className:a})=>d.cx(M,"flex","focus-visible:text-brand","focus-visible:bg-brand-secondary","focus-visible:z-10","uds-ring","!-outline-offset-2",e&&["[&:not([aria-checked])]:cursor-default"],r&&"opacity-25 cursor-not-allowed","duration-20 transition-[font-variation-settings] ease-in-out","z-0",a))({active:v,disabled:g,className:p}),O=d.getStyles({className:d.cx(`${M}-content truncate`,w?.text),textAlign:"start",...R&&{columnGap:m,display:"flex",alignItems:"center",width:"full",justifyContent:"space-between"}}),q=i.useMemo(()=>({root:d.getStyles({menuSizeRoot:"default",flexDirection:"row",spacing:e,spacingBottom:t,spacingEnd:s,spacingHorizontal:n,spacingStart:c,spacingTop:o,spacingVertical:x,columnGap:m,alignItems:C,justifyContent:S,className:d.cx(P,w?.root)}),startIcon:d.getStyles({menuSizeStartIcon:"default",className:w?.startIcon}),endIcon:d.getStyles({menuSizeEndIcon:"default",className:w?.endIcon})}),[C,m,S,w?.endIcon,w?.root,w?.startIcon,P,e,t,s,n,c,o,x]),z=k?.root??(e=>l.jsx(r.Pressable,{...e,...N,onClick:r=>{e.onClick?.(r),N.onClick?.(r)}}));return l.jsxs(y,{ref:E,name:I??"",...j,render:z,disabled:g,className:q.root,children:[l.jsxs(a.HStack,{gap:m,alignItems:"center",width:"full",children:[l.jsx(u.AnimatePresence,{initial:!1,children:h&&l.jsx(u.m.span,{variants:V,initial:"hidden",animate:"visible",exit:"hidden",className:"uds-start-icon",children:l.jsx(d.IconSlot,{icon:h,className:q.startIcon,iconProps:{size:"sm",variant:v?"fill":"outline",color:"current"}})})}),l.jsx("span",{className:O,children:f})]}),l.jsx(u.AnimatePresence,{initial:!1,mode:"popLayout",children:!_&&b&&l.jsx(u.m.span,{variants:V,initial:"hidden",animate:"visible",exit:"hidden",className:"uds-end-icon",children:l.jsx(d.IconSlot,{icon:b,className:q.endIcon,iconProps:{size:"sm",variant:v?"fill":"outline",color:"current"}})})})]})});E.displayName="MenuItemBase";var R=i.forwardRef(function({active:e,hideOnClick:r,...a},t){const s={root:d.getStyles({menuItemVariantRoot:"default",menuItemVariantActiveRoot:e?"on":"off"}),text:d.getStyles({menuItemVariantText:"default",menuItemVariantActiveText:e?"on":"off"}),startIcon:d.getStyles({menuItemVariantIcon:"default",menuItemVariantActiveIcon:e?"on":"off"})};return l.jsx(E,{ref:t,as:n.MenuItem,active:e,layerClassNames:s,rootProps:{hideOnClick:r},...a})});R.displayName="MenuItem";var P=i.forwardRef(function({name:e,endIcon:a=r.e,checked:t,defaultChecked:s,hideOnClick:c,className:o,...u},m){const p=e,f=i.useRef(!1),b=n.useMenuContext(),h=x.useStoreState(b);i.useEffect(()=>{!f.current&&void 0!==s&&b&&(b.setValues(e=>({...e,[p]:s})),f.current=!0)},[b,s,p]);const _=i.useMemo(()=>{if(void 0!==t)return t;if(h?.items?.length){const e=h?.items.find(e=>e.element?.name===p);if(e?.element)return e.element.checked}const e=h?.values[p];return"boolean"==typeof e?e:s??!1},[h?.items,h?.values,p,t,s]),v=i.useCallback(e=>{void 0===t&&b?.setValues(r=>({...r,[p]:e.target.checked}))},[p,b,t]),g={root:d.getStyles({menuItemCheckboxVariantRoot:"default",menuItemCheckboxVariantActiveRoot:_?"on":"off"}),text:d.getStyles({menuItemCheckboxVariantText:"default",menuItemCheckboxVariantActiveText:_?"on":"off"}),startIcon:d.getStyles({menuItemCheckboxVariantStartIcon:"default",menuItemCheckboxVariantActiveStartIcon:_?"on":"off"}),endIcon:d.getStyles({menuItemCheckboxVariantEndIcon:"default",menuItemCheckboxVariantActiveEndIcon:_?"on":"off"})};return l.jsx(E,{ref:m,as:n.MenuItemCheckbox,hideEndIcon:!_,endIcon:a,active:_,className:d.cx("uds-menu-item-checkbox",o),layerClassNames:g,name:e,rootProps:{onChange:v,defaultChecked:s,checked:void 0!==t?t:void 0,hideOnClick:c},...u})});P.displayName="MenuItemCheckbox";var O=()=>{if("undefined"==typeof document)return!1;return"rtl"===getComputedStyle(document.documentElement).direction},q=e=>{const[r,a]=i.useState(O);return i.useEffect(()=>{if(e?.explicit)return void a(e.explicit);const r=(e=>{const r=new MutationObserver(r=>{r.some(e=>"attributes"===e.type&&"dir"===e.attributeName)&&e()});return r.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}),r})(()=>{a(O())});return()=>r.disconnect()},[e?.explicit]),r},z=function({placement:e="bottom",rtl:r,...a}){const d=q({explicit:r}),s=((e,r)=>{const a=r?.rtl;if("start"===e)return a?"right":"left";if("end"===e)return a?"left":"right";if(e?.includes("-")){const[r,t]=e.split("-");if(!("start"!==r&&"end"!==r||"top"!==t&&"bottom"!==t))return`${"start"===r?a?"right":"left":a?"left":"right"}-${"bottom"===t?"end":"start"}`;if("top"===r||"bottom"===r)return`${r}-${"start"===t?a?"end":"start":a?"start":"end"}`}return e})(e,{rtl:d});return l.jsx(t.SpringMotionConfig,{children:l.jsx(n.MenuProvider,{placement:s,rtl:d,...a})})};z.displayName="MenuProvider";var A=i.forwardRef(function({asChild:e,children:r,className:a,...t},s){const c=i.useRef(null),o=e?{render:l.jsx(d.Box,{asChild:!0,ref:c,className:"uds-ring h-fit w-fit",children:r})}:{children:r},u=i.useCallback(()=>{const e=c.current?.firstChild;e instanceof HTMLElement&&"function"==typeof e.focus&&e.focus()},[c]);return l.jsx(n.MenuButton,{onFocus:u,onFocusVisible:u,ref:s,className:d.cx("uds-menu-trigger",a),...o,...t})});A.displayName="MenuTrigger",exports.Menu=h;