@baseline-ui/core 0.37.1 → 0.38.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- 'use strict';var utils=require('@baseline-ui/utils'),ut=require('react'),utils$1=require('@react-stately/utils'),reactAria=require('react-aria'),reactStately=require('react-stately'),jsxRuntime=require('react/jsx-runtime'),_24=require('@baseline-ui/icons/24'),tokens=require('@baseline-ui/tokens'),granularHooks=require('granular-hooks'),_8=require('@baseline-ui/icons/8'),_16=require('@baseline-ui/icons/16'),focus=require('@react-aria/focus'),react=require('motion/react'),dynamic=require('@vanilla-extract/dynamic'),uh=require('lodash/isEmpty'),_20=require('@baseline-ui/icons/20'),T5=require('react-dom'),_12=require('@baseline-ui/icons/12'),interactions=require('@react-aria/interactions'),color=require('@react-stately/color'),color$1=require('@react-aria/color'),perfectFreehand=require('perfect-freehand'),reactMoveable=require('react-moveable'),toolbar=require('@react-aria/toolbar'),lodash=require('lodash'),plateBasicMarks=require('@udecode/plate-basic-marks'),plateCommon=require('@udecode/plate-common'),plateFont=require('@udecode/plate-font'),plateParagraph=require('@udecode/plate-paragraph'),plateLink=require('@udecode/plate-link'),cn$1=require('@udecode/cn'),qy=require('dompurify'),slateHyperscript=require('slate-hyperscript'),plateCombobox=require('@udecode/plate-combobox'),slateReact=require('slate-react'),gR=require('markdown-it'),liveAnnouncer=require('@react-aria/live-announcer'),actiongroup=require('@react-aria/actiongroup'),reactComplexTree=require('react-complex-tree'),reactResizablePanels=require('react-resizable-panels'),toast=require('@react-stately/toast'),toast$1=require('@react-aria/toast');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var ut__default=/*#__PURE__*/_interopDefault(ut);var uh__default=/*#__PURE__*/_interopDefault(uh);var T5__default=/*#__PURE__*/_interopDefault(T5);var qy__namespace=/*#__PURE__*/_interopNamespace(qy);var gR__default=/*#__PURE__*/_interopDefault(gR);/**
1
+ 'use strict';var utils=require('@baseline-ui/utils'),bt=require('react'),utils$1=require('@react-stately/utils'),reactAria=require('react-aria'),reactStately=require('react-stately'),jsxRuntime=require('react/jsx-runtime'),_24=require('@baseline-ui/icons/24'),tokens=require('@baseline-ui/tokens'),granularHooks=require('granular-hooks'),_8=require('@baseline-ui/icons/8'),_16=require('@baseline-ui/icons/16'),focus=require('@react-aria/focus'),react=require('motion/react'),dynamic=require('@vanilla-extract/dynamic'),Yh=require('lodash/isEmpty'),_20=require('@baseline-ui/icons/20'),uz=require('react-dom'),_12=require('@baseline-ui/icons/12'),interactions=require('@react-aria/interactions'),color=require('@react-stately/color'),color$1=require('@react-aria/color'),perfectFreehand=require('perfect-freehand'),reactMoveable=require('react-moveable'),toolbar=require('@react-aria/toolbar'),lodash=require('lodash'),plateBasicMarks=require('@udecode/plate-basic-marks'),plateCommon=require('@udecode/plate-common'),plateFont=require('@udecode/plate-font'),plateParagraph=require('@udecode/plate-paragraph'),plateLink=require('@udecode/plate-link'),cn$1=require('@udecode/cn'),l1=require('dompurify'),slateHyperscript=require('slate-hyperscript'),plateCombobox=require('@udecode/plate-combobox'),slateReact=require('slate-react'),QR=require('markdown-it'),liveAnnouncer=require('@react-aria/live-announcer'),actiongroup=require('@react-aria/actiongroup'),reactComplexTree=require('react-complex-tree'),reactResizablePanels=require('react-resizable-panels'),toast=require('@react-stately/toast'),toast$1=require('@react-aria/toast');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var bt__default=/*#__PURE__*/_interopDefault(bt);var Yh__default=/*#__PURE__*/_interopDefault(Yh);var uz__default=/*#__PURE__*/_interopDefault(uz);var l1__namespace=/*#__PURE__*/_interopNamespace(l1);var QR__default=/*#__PURE__*/_interopDefault(QR);/**
2
2
  * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
3
  *
4
4
  * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
@@ -7,17 +7,17 @@
7
7
  * This notice may not be removed from this file.
8
8
  *
9
9
  */
10
- var Db=Object.create;var Qs=Object.defineProperty;var Ab=Object.getOwnPropertyDescriptor;var Bb=Object.getOwnPropertyNames;var Ob=Object.getPrototypeOf,Fb=Object.prototype.hasOwnProperty;var el=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var jb=(r,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of Bb(e))!Fb.call(r,a)&&a!==t&&Qs(r,a,{get:()=>e[a],enumerable:!(o=Ab(e,a))||o.enumerable});return r};var fn=(r,e,t)=>(t=r!=null?Db(Ob(r)):{},jb(!r||!r.__esModule?Qs(t,"default",{value:r,enumerable:!0}):t,r));var Gn=el((rO,Yp)=>{var B_={},O_=B_.hasOwnProperty,F_=function(e,t){if(!e)return t;var o={};for(var a in t)o[a]=O_.call(e,a)?e[a]:t[a];return o},j_=/[ -,\.\/:-@\[-\^`\{-~]/,H_=/[ -,\.\/:-@\[\]\^`\{-~]/,V_=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,Kn=function r(e,t){t=F_(t,r.options),t.quotes!="single"&&t.quotes!="double"&&(t.quotes="single");for(var o=t.quotes=="double"?'"':"'",a=t.isIdentifier,n=e.charAt(0),i="",s=0,l=e.length;s<l;){var p=e.charAt(s++),c=p.charCodeAt(),d=void 0;if(c<32||c>126){if(c>=55296&&c<=56319&&s<l){var m=e.charCodeAt(s++);(m&64512)==56320?c=((c&1023)<<10)+(m&1023)+65536:s--;}d="\\"+c.toString(16).toUpperCase()+" ";}else t.escapeEverything?j_.test(p)?d="\\"+p:d="\\"+c.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(p)?d="\\"+c.toString(16).toUpperCase()+" ":p=="\\"||!a&&(p=='"'&&o==p||p=="'"&&o==p)||a&&H_.test(p)?d="\\"+p:d=p;i+=d;}return a&&(/^-[-\d]/.test(i)?i="\\-"+i.slice(1):/\d/.test(n)&&(i="\\3"+n+" "+i.slice(1))),i=i.replace(V_,function(u,b,y){return b&&b.length%2?u:(b||"")+y}),!a&&t.wrap?o+i+o:i};Kn.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1};Kn.version="3.0.0";Yp.exports=Kn;});var wc=el((WO,Pc)=>{var V6=function(e){return $6(e)&&!U6(e)};function $6(r){return !!r&&typeof r=="object"}function U6(r){var e=Object.prototype.toString.call(r);return e==="[object RegExp]"||e==="[object Date]"||G6(r)}var q6=typeof Symbol=="function"&&Symbol.for,K6=q6?Symbol.for("react.element"):60103;function G6(r){return r.$$typeof===K6}function W6(r){return Array.isArray(r)?[]:{}}function Ar(r,e){return e.clone!==!1&&e.isMergeableObject(r)?Wt(W6(r),r,e):r}function X6(r,e,t){return r.concat(e).map(function(o){return Ar(o,t)})}function Y6(r,e){if(!e.customMerge)return Wt;var t=e.customMerge(r);return typeof t=="function"?t:Wt}function Z6(r){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(r).filter(function(e){return Object.propertyIsEnumerable.call(r,e)}):[]}function Cc(r){return Object.keys(r).concat(Z6(r))}function xc(r,e){try{return e in r}catch{return !1}}function J6(r,e){return xc(r,e)&&!(Object.hasOwnProperty.call(r,e)&&Object.propertyIsEnumerable.call(r,e))}function Q6(r,e,t){var o={};return t.isMergeableObject(r)&&Cc(r).forEach(function(a){o[a]=Ar(r[a],t);}),Cc(e).forEach(function(a){J6(r,a)||(xc(r,a)&&t.isMergeableObject(e[a])?o[a]=Y6(a,t)(r[a],e[a],t):o[a]=Ar(e[a],t));}),o}function Wt(r,e,t){t=t||{},t.arrayMerge=t.arrayMerge||X6,t.isMergeableObject=t.isMergeableObject||V6,t.cloneUnlessOtherwiseSpecified=Ar;var o=Array.isArray(e),a=Array.isArray(r),n=o===a;return n?o?t.arrayMerge(r,e,t):Q6(r,e,t):Ar(e,t)}Wt.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(o,a){return Wt(o,a,t)},{})};var e5=Wt;Pc.exports=e5;});var Se=typeof document<"u"?ut__default.default.useLayoutEffect:()=>{};function yn(r){let e=ut.useRef(null);return Se(()=>{e.current=r;},[r]),ut.useCallback((...t)=>{let o=e.current;return o?.(...t)},[])}function bn(r){let[e,t]=ut.useState(r),o=ut.useRef(null),a=yn(()=>{if(!o.current)return;let i=o.current.next();if(i.done){o.current=null;return}e===i.value?a():t(i.value);});Se(()=>{o.current&&a();});let n=yn(i=>{o.current=i(e),a();});return [e,n]}var ko={prefix:String(Math.round(Math.random()*1e10)),current:0},tl=ut__default.default.createContext(ko),Wb=ut__default.default.createContext(!1);var Xb=!!(typeof window<"u"&&window.document&&window.document.createElement),gn=new WeakMap;function Yb(r=!1){let e=ut.useContext(tl),t=ut.useRef(null);if(t.current===null&&!r){var o,a;let n=(a=ut__default.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||a===void 0||(o=a.ReactCurrentOwner)===null||o===void 0?void 0:o.current;if(n){let i=gn.get(n);i==null?gn.set(n,{id:e.current,state:n.memoizedState}):n.memoizedState!==i.state&&(e.current=i.id,gn.delete(n));}t.current=++e.current;}return t.current}function Zb(r){let e=ut.useContext(tl);e===ko&&!Xb&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let t=Yb(!!r),o=e===ko&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${e.prefix}`;return r||`${o}-${t}`}function Jb(r){let e=ut__default.default.useId(),[t]=ut.useState(rl()),o=t||process.env.NODE_ENV==="test"?"react-aria":`react-aria${ko.prefix}`;return r||`${o}-${e}`}var hn=typeof ut__default.default.useId=="function"?Jb:Zb;function Qb(){return !1}function eg(){return !0}function tg(r){return ()=>{}}function rl(){return typeof ut__default.default.useSyncExternalStore=="function"?ut__default.default.useSyncExternalStore(tg,Qb,eg):ut.useContext(Wb)}var ig=!!(typeof window<"u"&&window.document&&window.document.createElement),qe=new Map;function So(r){let[e,t]=ut.useState(r),o=ut.useRef(null),a=hn(e),n=ut.useCallback(i=>{o.current=i;},[]);return ig&&(qe.has(a)&&!qe.get(a).includes(n)?qe.set(a,[...qe.get(a),n]):qe.set(a,[n])),Se(()=>{let i=a;return ()=>{qe.delete(i);}},[a]),ut.useEffect(()=>{let i=o.current;i&&(o.current=null,t(i));}),a}function _n(r,e){if(r===e)return r;let t=qe.get(r);if(t)return t.forEach(a=>a(e)),e;let o=qe.get(e);return o?(o.forEach(a=>a(r)),r):e}function ol(...r){return (...e)=>{for(let t of r)typeof t=="function"&&t(...e);}}var fe=r=>{var e;return (e=r?.ownerDocument)!==null&&e!==void 0?e:document},ae=r=>r&&"window"in r&&r.window===r?r:fe(r).defaultView||window;function sg(r){return r!==null&&typeof r=="object"&&"nodeType"in r&&typeof r.nodeType=="number"}function zn(r){return sg(r)&&r.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in r}var Io=(r=document)=>{var e;let t=r.activeElement;for(;t&&"shadowRoot"in t&&(!((e=t.shadowRoot)===null||e===void 0)&&e.activeElement);)t=t.shadowRoot.activeElement;return t};function al(r){var e,t,o="";if(typeof r=="string"||typeof r=="number")o+=r;else if(typeof r=="object")if(Array.isArray(r)){var a=r.length;for(e=0;e<a;e++)r[e]&&(t=al(r[e]))&&(o&&(o+=" "),o+=t);}else for(t in r)r[t]&&(o&&(o+=" "),o+=t);return o}function lg(){for(var r,e,t=0,o="",a=arguments.length;t<a;t++)(r=arguments[t])&&(e=al(r))&&(o&&(o+=" "),o+=e);return o}var nl=lg;function Et(...r){let e={...r[0]};for(let t=1;t<r.length;t++){let o=r[t];for(let a in o){let n=e[a],i=o[a];typeof n=="function"&&typeof i=="function"&&a[0]==="o"&&a[1]==="n"&&a.charCodeAt(2)>=65&&a.charCodeAt(2)<=90?e[a]=ol(n,i):(a==="className"||a==="UNSAFE_className")&&typeof n=="string"&&typeof i=="string"?e[a]=nl(n,i):a==="id"&&n&&i?e.id=_n(n,i):e[a]=i!==void 0?i:n;}}return e}function L(...r){return r.length===1&&r[0]?r[0]:e=>{for(let t of r)typeof t=="function"?t(e):t!=null&&(t.current=e);}}var pg=new Set(["id"]),cg=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),dg=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),ug=/^(data-.*)$/;function Cn(r,e={}){let{labelable:t,isLink:o,propNames:a}=e,n={};for(let i in r)Object.prototype.hasOwnProperty.call(r,i)&&(pg.has(i)||t&&cg.has(i)||o&&dg.has(i)||a?.has(i)||ug.test(i))&&(n[i]=r[i]);return n}function Ro(r){var e;return typeof window>"u"||window.navigator==null?!1:((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.brands.some(t=>r.test(t.brand)))||r.test(window.navigator.userAgent)}function De(r){let e=null;return ()=>(e==null&&(e=r()),e)}var Pr=De(function(){return Ro(/Firefox/i)});function ee(r){let e=ut.useRef(null);return ut.useMemo(()=>({get current(){return e.current},set current(t){e.current=t,typeof r=="function"?r(t):r&&(r.current=t);}}),[r])}function hg(){return typeof window.ResizeObserver<"u"}function wn(r){let{ref:e,box:t,onResize:o}=r;ut.useEffect(()=>{let a=e?.current;if(a)if(hg()){let n=new window.ResizeObserver(i=>{i.length&&o();});return n.observe(a,{box:t}),()=>{a&&n.unobserve(a);}}else return window.addEventListener("resize",o,!1),()=>{window.removeEventListener("resize",o,!1);}},[o,e,t]);}function Ke(r){return !!r&&"label"in r&&!!r.label}function To(r){return !!r&&"children"in r&&!!r.children&&"title"in r}function Cg(r){return To(r)?jsxRuntime.jsx(reactStately.Section,{items:r.children,title:r.title,"aria-label":r.title,children:e=>jsxRuntime.jsx(reactStately.Item,{textValue:e.label,children:e.label},e.id)},r.id):jsxRuntime.jsx(reactStately.Item,{textValue:r.label,children:r.label},r.id)}function se(){return ut.useCallback(r=>Cg(r),[])}function No(r,e,t){let{direction:o}=reactAria.useLocale(),a=reactStately.useDraggableCollectionState({...r,collection:e.collection,selectionManager:e.selectionManager,isDisabled:!r.enableReorder,getItems:r.getItems||(s=>[...s].map(l=>{let p=e.collection.getItem(l);return utils.invariant(p,"Expected item to be defined."),{"text/plain":p.textValue}}))});reactAria.useDraggableCollection(r,a,t);let n=reactStately.useDroppableCollectionState({...r,collection:e.collection,selectionManager:e.selectionManager}),{collectionProps:i}=reactAria.useDroppableCollection({...r,keyboardDelegate:new reactAria.ListKeyboardDelegate({collection:e.collection,disabledKeys:e.disabledKeys,ref:t,orientation:r.orientation,layout:r.layout,direction:o}),dropTargetDelegate:new reactAria.ListDropTargetDelegate(e.collection,t)},n,t);return {collectionProps:i,dragState:a,dropState:n}}function Ng(r,e){if(typeof r!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var o=t.call(r,e||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return (e==="string"?String:Number)(r)}function Eg(r){var e=Ng(r,"string");return typeof e=="symbol"?e:String(e)}function Lg(r,e,t){return e=Eg(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function dl(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);e&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable})),t.push.apply(t,o);}return t}function ul(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?dl(Object(t),!0).forEach(function(o){Lg(r,o,t[o]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):dl(Object(t)).forEach(function(o){Object.defineProperty(r,o,Object.getOwnPropertyDescriptor(t,o));});}return r}function ml(r,e){var t={};for(var o in r)t[o]=e(r[o],o);return t}var Mg=(r,e,t)=>{for(var o of Object.keys(r)){var a;if(r[o]!==((a=e[o])!==null&&a!==void 0?a:t[o]))return !1}return !0},C=r=>{var e=t=>{var o=r.defaultClassName,a=ul(ul({},r.defaultVariants),t);for(var n in a){var i,s=(i=a[n])!==null&&i!==void 0?i:r.defaultVariants[n];if(s!=null){var l=s;typeof l=="boolean"&&(l=l===!0?"true":"false");var p=r.variantClassNames[n][l];p&&(o+=" "+p);}}for(var[c,d]of r.compoundVariants)Mg(c,a,r.defaultVariants)&&(o+=" "+d);return o};return e.variants=()=>Object.keys(r.variantClassNames),e.classNames={get base(){return r.defaultClassName.split(" ")[0]},get variants(){return ml(r.variantClassNames,t=>ml(t,o=>o.split(" ")[0]))}},e};var fl=C({defaultClassName:"_6n12k9b _1yep5z6lm _1yep5z6ll _1yep5z6i6 _1yep5z6l4",variantClassNames:{isDropTarget:{true:"_1yep5z613r"},orientation:{vertical:"_1yep5z617e",horizontal:"_1yep5z617f"}},defaultVariants:{},compoundVariants:[]}),yl="_6n12k98 _1yep5z6lk _1yep5z6im _1yep5z6in _1yep5z6io",bl=C({defaultClassName:"_6n12k99 _1yep5z6ev _1yep5z6da _1yep5z6dv",variantClassNames:{isDisabled:{true:"_1yep5z6ey"}},defaultVariants:{},compoundVariants:[]}),gl=C({defaultClassName:"_6n12k91 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6im _1yep5z6in _1yep5z6io _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6jd _1yep5z6je _1yep5z6jf _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6dy _1yep5z6eu _1yep5z6l4 _1yep5z6l7 _1yep5z6lk _1yep5z6lj _1yep5z6lh _1yep5z6le",variantClassNames:{isSelected:{},isFocused:{true:"_1yep5z613r _1yep5z617k _1yep5z617i _1yep5z617l _1yep5z6144 _1yep5z6145 _1yep5z6146"},isHovered:{true:"_1yep5z611z",false:"_1yep5z611y"},isFirstChild:{true:"_6n12k95"},isLastChild:{true:"_6n12k96"},isDisabled:{true:"z9nup83 _1yep5z610v"}},defaultVariants:{},compoundVariants:[]}),vl="_6n12k9f _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6im _1yep5z6in _1yep5z6io _1yep5z6jd _1yep5z6je _1yep5z6jf",hl="_6n12k90";var _l=C({defaultClassName:"gukncs0",variantClassNames:{isVertical:{true:"gukncs1"},isSecondary:{true:"gukncs2"}},defaultVariants:{},compoundVariants:[]});var V=ut__default.default.forwardRef(({className:r,style:e,variant:t="primary",orientation:o="horizontal",UNSAFE_omitRole:a,elementType:n="div","data-block-id":i,"data-block-class":s,...l},p)=>{let{separatorProps:c}=reactAria.useSeparator({...l,orientation:o,elementType:n});return jsxRuntime.jsx(n,{...c,className:utils.classNames(_l({isVertical:o==="vertical",isSecondary:t==="secondary"}),"BaselineUI-Separator",r),"data-orientation":o,"data-block-id":i,"data-block-class":s,style:e,role:a?void 0:c.role,ref:p})});V.displayName="Separator";function Vg(r){return tokens.sprinkles.properties.has(r)}var E=ut__default.default.forwardRef(({elementType:r="div",children:e,...t},o)=>{let a=r,{sprinkleProps:n,domProps:i}=ut.useMemo(()=>{let s={},l={};for(let p in t)Vg(p)?s[p]=t[p]:l[p]=t[p];return {sprinkleProps:s,domProps:l}},[t]);return jsxRuntime.jsx(a,{...i,className:utils.classNames(tokens.sprinkles(n),"BaselineUI-Box",i.className),ref:o,children:e})});E.displayName="Box";var kr=ut__default.default.forwardRef(({item:r,isDisabled:e,isFocusVisible:t,isSelected:o,liProps:a,showSelectedIcon:n,description:i,descriptionProps:s,labelProps:l,isFocused:p,isPressed:c,_state:d},m)=>{utils.invariant(r.value&&Ke(r.value),"Item cannot be a section");let{icon:u,label:b}=r.value,{hoverProps:y,isHovered:f}=reactAria.useHover({isDisabled:e}),g=utils.filterTruthyValues({"data-selected":o,"data-disabled":e,"data-focused":p,"data-hovered":f,"data-pressed":c,"data-focus-visible":t,"data-selection-mode":d.selectionManager.selectionMode});return jsxRuntime.jsxs("li",{...reactAria.mergeProps(a,y,g),className:utils.classNames(gl({isHovered:f,isFocused:t,isFirstChild:d.collection.getFirstKey()===r.key,isLastChild:d.collection.getLastKey()===r.key,isDisabled:e}),a.className,"BaselineUI-ListBox-Option"),style:a.style,ref:m,children:[jsxRuntime.jsxs(E,{display:"flex",alignItems:"center",gap:"lg",children:[n?jsxRuntime.jsx("span",{"aria-hidden":!0,style:{height:24,width:24},children:o?jsxRuntime.jsx(_24.CheckmarkIcon,{size:24}):null}):null,u?jsxRuntime.jsx(u,{size:24}):null,jsxRuntime.jsx("span",{...l,children:b})]}),i?jsxRuntime.jsx("span",{className:bl({isDisabled:e}),...s,children:i}):null]})});kr.displayName="DefaultRenderOption";var Lt=({dropState:r,orientation:e="vertical",dropIndicatorStyle:t,dropIndicatorClassName:o,renderDropIndicator:a=({isDropTarget:i,isHidden:s,dropIndicatorProps:l,orientation:p},c)=>s?null:jsxRuntime.jsx("li",{...l,ref:c,"data-drop-target":i,className:utils.classNames(fl({isDropTarget:i,orientation:p}),"BaselineUI-DropIndicator",o),style:t}),...n})=>{let i=ut__default.default.useRef(null),{dropIndicatorProps:s,isHidden:l,isDropTarget:p}=reactAria.useDropIndicator(n,r,i);return a({dropIndicatorProps:{...s,role:"option"},isHidden:l,isDropTarget:p,orientation:e},i)};function Ge(r,e,t){return typeof r=="function"?r(e,t):r}function Eo(r,e,t){return typeof r=="function"?r(e,t):r}function Lo(r,e){return typeof r=="function"?r(e):r}function In(r,e){return typeof r=="function"?r(e):r}var Pl=({item:r,children:e,state:t,dragState:o,...a})=>{let{dragProps:n}=reactAria.useDraggableItem({key:r.key},o);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Lt,{target:{type:"item",key:r.key,dropPosition:"before"},...a}),e(n),t.collection.getKeyAfter(r.key)==null&&jsxRuntime.jsx(Lt,{target:{type:"item",key:r.key,dropPosition:"after"},...a})]})};Pl.displayName="DraggableListOption";var Sr=ut__default.default.forwardRef(({item:r,renderOption:e=(m,u,b)=>jsxRuntime.jsx(kr,{item:m,liProps:u.optionProps,...u,ref:b}),showSelectedIcon:t,state:o,dragState:a,dropState:n,orientation:i,dropIndicatorStyle:s,dropIndicatorClassName:l,optionStyle:p,optionClassName:c},d)=>{let m=ut__default.default.useRef(null),u=reactAria.useOption({key:r.key},o,m),{value:b}=r;utils.invariant(b&&Ke(b),"ListSection should not be passed to ListOption");let y={isFocusVisible:u.isFocusVisible,isSelected:u.isSelected,isFocused:u.isFocused,isDisabled:u.isDisabled,isPressed:u.isPressed},f={style:Eo(p,b,y),className:Ge(c,b,y)};return a&&n?jsxRuntime.jsx(Pl,{orientation:i,state:o,item:r,dropState:n,dragState:a,dropIndicatorStyle:s,dropIndicatorClassName:l,children:g=>e(r,{...u,showSelectedIcon:t,_state:o,optionProps:{...reactAria.mergeProps(u.optionProps,g),...f}},L(m,d))}):e(r,{...u,showSelectedIcon:t,_state:o,optionProps:{...u.optionProps,...f}},L(m,d))});Sr.displayName="Option";var Il=({section:r,state:e,sectionClassName:t,sectionStyle:o,showSectionHeader:a,renderSectionHeader:n,withSectionHeaderPadding:i=!1,...s})=>{let l=ut__default.default.useRef(null),{itemProps:p,groupProps:c,headingProps:d}=reactAria.useListBoxSection({heading:a?n?.(r,l)||r.rendered:void 0,"aria-label":r["aria-label"]}),m=e.collection.getChildren?.(r.key);utils.invariant(m,"children must be defined");let{value:u}=r;utils.invariant(u&&To(u),"section must be a ListSection");let b=typeof o=="function"?o(u):o,y=typeof t=="function"?t(u):t;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[r.key===e.collection.getFirstKey()?null:jsxRuntime.jsx(V,{UNSAFE_omitRole:!0}),jsxRuntime.jsxs("li",{...p,style:{...p.style,...b},className:utils.classNames(hl,y,"BaselineUI-ListBox-Section"),children:[r.rendered&&a?n?.(r,l)||jsxRuntime.jsx(E,{...d,className:utils.classNames("BaselineUI-ListBox-SectionHeader",vl),ref:l,paddingX:"lg",typography:"label.md.medium",color:"text.primary",paddingInlineStart:i?"5xl":"lg",paddingInlineEnd:"lg",children:r.rendered}):null,jsxRuntime.jsx("ul",{...c,children:[...m].map(f=>jsxRuntime.jsx(Sr,{item:f,state:e,...s},f.key))})]})]})};function Ao({type:r="listbox",handle:e},t,o){let a=ut.useCallback(i=>r==="listbox"?o.current?.querySelector(`[data-key="${i}"][role="option"]`):o.current?.querySelector(`[data-key="${i}"][role="row"]`),[r,o]),n=ut.useCallback((i,s)=>{let l=a(i);l&&l?.scrollIntoView({block:"nearest",inline:"nearest",...s});},[a]);ut.useImperativeHandle(e,()=>({scrollIntoView:n,setFocusedKey:i=>{t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(i),n(i),a(i)?.focus();}}),[n,t.selectionManager,a]),granularHooks.useGranularEffect(()=>{let i=o.current?.getRootNode(),s=i&&zn(i),l=t.selectionManager.focusedKey;s&&l&&n(l);},[t.selectionManager.focusedKey],[n,o]);}var mt=ut__default.default.createContext(null),Rn=ut__default.default.forwardRef(({className:r,layout:e="stack",orientation:t="vertical",showSelectedIcon:o=!0,style:a,renderOption:n,enableReorder:i=!1,"data-block-id":s,"data-block-class":l,renderDragPreview:p,onReorder:c,state:d,listBoxHandle:m,...u},b)=>{let y=ut__default.default.useRef(null),{direction:f}=reactAria.useLocale(),g=ut__default.default.useRef(null),{listBoxProps:_}=reactAria.useListBox({...u,shouldSelectOnPressUp:i,keyboardDelegate:new reactAria.ListKeyboardDelegate({collection:d.collection,ref:g,layout:e,orientation:t,direction:f,disabledKeys:d.disabledKeys})},d,g);Ao({handle:m},d,g);let{collectionProps:v,dragState:h,dropState:x}=No({...u,onReorder:c,layout:e,orientation:t,enableReorder:i,preview:y},d,g),{isFocusVisible:w,isFocused:P,focusProps:z}=reactAria.useFocusRing(),k=utils.filterTruthyValues({"data-block-id":s,"data-block-class":l,"data-layout":e,"data-empty":d.collection.size===0,"data-focused":P,"data-focus-visible":w,"data-orientation":t});return jsxRuntime.jsxs("ul",{...reactAria.mergeProps(_,z,k,v),className:utils.classNames(yl,"BaselineUI-ListBox",r),style:a,ref:L(b,g),children:[[...d.collection].map(T=>{let R={key:T.key,state:d,dragState:h,dropState:x,renderOption:n,renderDropIndicator:u.renderDropIndicator,renderSectionHeader:u.renderSectionHeader,showSelectedIcon:o,orientation:t,dropIndicatorStyle:u.dropIndicatorStyle,dropIndicatorClassName:u.dropIndicatorClassName,optionStyle:u.optionStyle,optionClassName:u.optionClassName,sectionClassName:u.sectionClassName,sectionStyle:u.sectionStyle,showSectionHeader:u.showSectionHeader,withSectionHeaderPadding:u.withSectionHeaderPadding};return T.type==="section"?ut.createElement(Il,{...R,key:T.key,section:T}):ut.createElement(Sr,{...R,key:T.key,item:T})}),p?jsxRuntime.jsx(reactAria.DragPreview,{ref:y,children:p}):null]})});Rn.displayName="ListBoxCore";var Nl=ut__default.default.forwardRef((r,e)=>{let t=se(),o=reactStately.useListState({...r,children:t});return jsxRuntime.jsx(Rn,{...r,ref:e,state:o})});Nl.displayName="ListBoxStandalone";var de=ut__default.default.forwardRef((r,e)=>{let t=ut.useContext(mt);return ut.useEffect(()=>{if(!r.items&&!t)throw new Error("ListBox: You must provide a `state` or `items` prop to render the listbox.")},[r.items,t]),t?jsxRuntime.jsx(Rn,{...r,ref:e,state:t}):jsxRuntime.jsx(Nl,{...r,ref:e})});de.displayName="ListBox";var Oo="uf19bsf _1yep5z6l4",El=C({defaultClassName:"uf19bs0 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6f5 _1yep5z6lj _1yep5z6ip _1yep5z6iq _1yep5z6ir _1yep5z6jd _1yep5z6je _1yep5z6jf _1yep5z6k7 _1yep5z6k8 _1yep5z6k9 _1yep5z6le",variantClassNames:{size:{xxs:"uf19bs1",xs:"uf19bs2",sm:"uf19bs3",md:"uf19bs4",lg:"uf19bs5 _1yep5z6wi _1yep5z6wj _1yep5z6wk _1yep5z6x6 _1yep5z6x7 _1yep5z6x8 _1yep5z6xu _1yep5z6xv _1yep5z6xw _1yep5z6yi _1yep5z6yj _1yep5z6yk"},isHovered:{true:"uf19bs6"},isDisabled:{true:"uf19bs7 _1yep5z6114"},isFocusVisible:{true:"uf19bs8"},variant:{primary:"uf19bs9",secondary:"uf19bsa",tertiary:"uf19bsb",ghost:"uf19bsc",toolbar:"uf19bsd _1yep5z6x0 _1yep5z6x1 _1yep5z6x2 _1yep5z6xo _1yep5z6xp _1yep5z6xq _1yep5z6yc _1yep5z6yd _1yep5z6ye _1yep5z6z0 _1yep5z6z1 _1yep5z6z2",popover:"uf19bse _1yep5z6pl _1yep5z6pm _1yep5z6pn _1yep5z6n9 _1yep5z6na _1yep5z6nb _1yep5z6m0 _1yep5z6m1 _1yep5z6m2 _1yep5z6oc _1yep5z6od _1yep5z6oe _1yep5z6vl _1yep5z6vm _1yep5z6vn"}},defaultVariants:{},compoundVariants:[[{variant:"toolbar",isHovered:!0,isFocusVisible:!1},"_1yep5z61nx"],[{variant:"primary",isHovered:!0,isFocusVisible:!1},"_1yep5z61nx"],[{variant:"secondary",isHovered:!0,isFocusVisible:!1},"_1yep5z61n0"],[{variant:"tertiary",isHovered:!0,isFocusVisible:!1},"_1yep5z61mz _1yep5z61nx"],[{variant:"ghost",isHovered:!0,isFocusVisible:!1},"_1yep5z61n5"],[{variant:"popover",isHovered:!0,isFocusVisible:!1},"_1yep5z61pr _1yep5z61tf _1yep5z61tj _1yep5z61tg"],[{variant:"ghost",isDisabled:!1},"_1yep5z61n4"],[{variant:"popover",size:"lg"},"_1yep5z61ic _1yep5z61id _1yep5z61ie _1yep5z61j0 _1yep5z61j1 _1yep5z61j2 _1yep5z61jo _1yep5z61jp _1yep5z61jq _1yep5z61kc _1yep5z61kd _1yep5z61ke"]]});var Ir=ut__default.default.createContext({state:null,overlayTriggerAria:{triggerProps:{},overlayProps:{}},triggerRef:void 0}),Ae=({children:r,...e})=>{let t=ut__default.default.useRef(null),o=reactStately.useOverlayTriggerState(e),a=reactAria.useOverlayTrigger(e,o),n=ut.useMemo(()=>({state:o,overlayTriggerAria:a,triggerRef:t}),[o,a]);return jsxRuntime.jsx(Ir.Provider,{value:n,children:r})};var Ml=C({defaultClassName:"_1gzftth2",variantClassNames:{placement:{bottom:"_1gzftth3",top:"_1gzftth4",right:"_1gzftth5",left:"_1gzftth6"}},defaultVariants:{},compoundVariants:[]}),Dl=C({defaultClassName:"_1gzftth7",variantClassNames:{placement:{bottom:"_1gzftth8",top:"_1gzftth9",right:"_1gzfttha",left:"_1gzftthb"}},defaultVariants:{},compoundVariants:[]}),Al="_1gzftth1 _1yep5z6im _1yep5z6in _1yep5z6io",Bl="_1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6im _1yep5z6in _1yep5z6io _1yep5z6jy _1yep5z6jz _1yep5z6k0 _1yep5z6d7",Ol="_1gzftthd",Fl="_1gzftthc",jl="var(--_1gzftth0)";function j2(r){return r.closest(".BaselineUI-Portal")||r.closest(".BaselineUI-Popover-Content")}function Hl(r){return typeof r=="object"&&typeof r.left=="number"&&typeof r.top=="number"&&(typeof r.width=="number"||r.width===void 0)&&(typeof r.height=="number"||r.height===void 0)}var Fo=ut__default.default.createContext({isSelected:!1,ref:void 0}),Be=({children:r,anchorRect:e})=>{let{state:t,overlayTriggerAria:o,triggerRef:a}=ut.useContext(Ir);utils.invariant(t,"PopoverTrigger must be used within a Popover");let{triggerProps:n}=o,i=ut.useMemo(()=>({...n,isSelected:t.isOpen,ref:a}),[n,t.isOpen,a]);return utils.invariant(!e&&r||e&&!r,"Either one of anchorRect or children has to be provided."),utils.invariant(!e||Hl(e),"If provided, the anchorRect prop must be an object with left and top number values, and optionally width and height."),jsxRuntime.jsx(Fo.Provider,{value:i,children:e?jsxRuntime.jsx("div",{className:utils.classNames(Ol,"BaselineUI-PopoverTrigger-Hidden"),style:e,ref:a,tabIndex:-1},JSON.stringify(e)):r})};var jo=({label:r,tooltip:e})=>({tooltipProps:ut.useMemo(()=>{let o={size:"sm",variant:"inverse",text:r,includeArrow:!1,placement:"bottom start",offset:4};if(typeof e=="object")return {...o,...e};if(e)return o},[r,e])});function Ho({tooltip:r,"aria-label":e,"aria-labelledby":t},o){let[a,n]=ut.useState(e||"");ut.useEffect(()=>{if(t){let l=fe(o.current).querySelector(`#${t}`);l&&n(l.textContent||"");}else e&&n(e);},[t,o,e]);let{tooltipProps:i}=jo({label:a,tooltip:r});return {tooltipProps:i}}var Vo=r=>{let e=ut__default.default.useRef(null),{ref:t,...o}=ut.useContext(Fo)||{},{buttonProps:a,isPressed:n}=reactAria.useButton({...r,...o},e),{isFocusVisible:i,isFocused:s,focusProps:l}=reactAria.useFocusRing(),{hoverProps:p,isHovered:c}=reactAria.useHover({isDisabled:r.isDisabled});return {buttonProps:Et(a,l,p),isPressed:n,ref:L(e,t||null),isFocusVisible:i,isFocused:s,isHovered:c,uiStateOptions:{isHovered:c,isFocused:s,isPressed:n,isDisabled:r.isDisabled,isFocusVisible:i}}},$o=(r,e)=>{let t=ut__default.default.useRef(null),{ref:o,...a}=ut.useContext(Fo)||{},{buttonProps:n,isPressed:i}=reactAria.useToggleButton({...r,...a},e,t);(n.role==="radio"||n.role==="checkbox")&&(n["aria-pressed"]=void 0);let{isFocusVisible:s,isFocused:l,focusProps:p}=reactAria.useFocusRing(),{hoverProps:c,isHovered:d}=reactAria.useHover({isDisabled:r.isDisabled});return {buttonProps:Et(n,p,c),isPressed:i,ref:L(t,o||null),isFocusVisible:s,isFocused:l,isHovered:d,uiStateOptions:{isHovered:d,isFocused:l,isPressed:i,isDisabled:r.isDisabled,isFocusVisible:s,isSelected:e.isSelected}}};var Uo=C({defaultClassName:"oom8bs0 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6ip _1yep5z6iq _1yep5z6ir _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6jd _1yep5z6je _1yep5z6jf _1yep5z6lj _1yep5z6lk _1yep5z6le _1yep5z6dy _1yep5z6l4",variantClassNames:{variant:{primary:"oom8bs1",secondary:"oom8bs2",tertiary:"oom8bs3",ghost:"oom8bs4",popover:"oom8bs5",toolbar:"oom8bs6",success:"oom8bs7",warning:"oom8bs8",error:"oom8bs9"},isDisabled:{true:"oom8bsa"},isFocusVisible:{true:"oom8bsb"},isHovered:{true:"oom8bsc"},size:{sm:"oom8bsd",md:"oom8bse",lg:"oom8bsf"}},defaultVariants:{},compoundVariants:[[{variant:"primary",isHovered:!0},"oom8bsg"],[{variant:"secondary",isHovered:!0},"oom8bsh"],[{variant:"tertiary",isHovered:!0},"oom8bsi"],[{variant:"popover",isHovered:!0},"oom8bsj"],[{variant:"ghost",isHovered:!0},"oom8bsk"],[{variant:"success",isHovered:!0},"oom8bsl"],[{variant:"warning",isHovered:!0},"oom8bsm"],[{variant:"error",isHovered:!0},"oom8bsn"],[{variant:"primary",isFocusVisible:!0},"oom8bso"],[{variant:"tertiary",isFocusVisible:!0},"oom8bsp"],[{variant:"success",isFocusVisible:!0},"oom8bsq"],[{variant:"warning",isFocusVisible:!0},"oom8bsr"],[{variant:"error",isFocusVisible:!0},"oom8bss"]]}),Nn=C({defaultClassName:"oom8bst _1yep5z6l4",variantClassNames:{isDisabled:{true:"oom8bsu"},isFocusVisible:{true:"oom8bsv"},isHovered:{true:"_1yep5z610z"},variant:{primary:"_1yep5z6116",secondary:"_1yep5z6112",tertiary:"_1yep5z6117",ghost:"_1yep5z6117",popover:"_1yep5z6112",toolbar:"_1yep5z6112",success:"_1yep5z6115",warning:"_1yep5z6115",error:"_1yep5z6115"}},defaultVariants:{},compoundVariants:[[{variant:"tertiary",isHovered:!0},"_1yep5z61n3"],[{variant:"ghost",isHovered:!0},"_1yep5z61n5"],[{variant:"tertiary",isFocusVisible:!0},"_1yep5z61n3"],[{variant:"secondary",isDisabled:!0},"_1yep5z61n1"],[{variant:"tertiary",isDisabled:!0},"_1yep5z61n1"],[{variant:"ghost",isDisabled:!0},"_1yep5z61n1"],[{variant:"popover",isDisabled:!0},"_1yep5z61n1"],[{variant:"toolbar",isDisabled:!0},"_1yep5z61n1"]]});var Vv={sm:16,md:20,lg:24},G=ut__default.default.forwardRef(({label:r,style:e,className:t,iconStart:o,iconEnd:a,variant:n="primary",elementType:i="button",isDisabled:s,size:l="sm","data-block-id":p,"data-block-class":c,...d},m)=>{let{buttonProps:u,isPressed:b,ref:y,isFocusVisible:f,isFocused:g,isHovered:_,uiStateOptions:v}=Vo({...d,elementType:i,isDisabled:s}),h=Vv[l],x=utils.filterTruthyValues({"data-block-id":p,"data-block-class":c,"data-disabled":s,"data-focused":g,"data-focus-visible":f,"data-hovered":_,"data-pressed":b});return jsxRuntime.jsxs(i,{...reactAria.mergeProps(u,x),className:utils.classNames(Uo({isDisabled:!!s,isFocusVisible:f,isHovered:_,variant:n,size:l}),"BaselineUI-ActionButton",typeof t=="function"?t(v):t),style:typeof e=="function"?e(v):e,ref:L(m,y),children:[!!o&&jsxRuntime.jsx(o,{size:h,className:Nn({variant:n,isDisabled:s,isFocusVisible:f,isHovered:_})}),r,!!a&&jsxRuntime.jsx(a,{size:h,className:Nn({variant:n,isDisabled:s,isFocusVisible:f,isHovered:_})}),n==="popover"&&jsxRuntime.jsx(_8.CaretDownIcon,{size:8,className:Oo})]})});G.displayName="ActionButton";var Gl=ut__default.default.forwardRef(({className:r,style:e,node:t,"data-block-id":o,"data-block-class":a,...n},i)=>{let s=ut__default.default.useRef(null);ut__default.default.useEffect(()=>{let c=s.current;return c?.append(t),()=>{c?.contains(t)&&t.remove();}},[t]);let{pressProps:l,isPressed:p}=reactAria.usePress(n);return jsxRuntime.jsx("div",{...l,className:r,style:e,"data-block-id":o,"data-block-class":a,"data-pressed":p,"data-testid":"dom-node-renderer",ref:L(i,s)})});Gl.displayName="DomNodeRenderer";var Wl="_14uvjig0 z9nup81",Xl="_14uvjig7",Yl="_14uvjig3",Zl=C({defaultClassName:"_14uvjig4",variantClassNames:{isDisabled:{true:"_14uvjig5"},hasNumberInput:{false:"_14uvjig6"}},defaultVariants:{},compoundVariants:[]}),Jl=C({defaultClassName:"_14uvjigf _14uvjig1",variantClassNames:{active:{true:"_14uvjigg _14uvjig2"},isDisabled:{true:"_14uvjigh"},isReadOnly:{true:"_14uvjigi"},isFocusVisible:{true:"_14uvjigj _14uvjig2"},isHovered:{true:"_14uvjigk _14uvjig2"}},defaultVariants:{},compoundVariants:[]}),Ql="_14uvjige _1yep5z6im _1yep5z6in _1yep5z6io _1yep5z6jd _1yep5z6je _1yep5z6jf _1yep5z6k7 _1yep5z6k8 _1yep5z6k9",ep="_14uvjig8",tp=C({defaultClassName:"_14uvjig9 _14uvjig1",variantClassNames:{active:{true:"_14uvjig2"},isFocusVisible:{true:"_14uvjig2"},isDisabled:{true:"_14uvjigc"},isHovered:{true:"_14uvjig2"}},defaultVariants:{},compoundVariants:[]});var Dt=C({defaultClassName:"nrh1ehx",variantClassNames:{isDisabled:{true:"nrh1ehy"},hasError:{true:"nrh1ehz"},labelPosition:{start:"nrh1eh10",top:"nrh1eh11"}},defaultVariants:{},compoundVariants:[]}),qo=C({defaultClassName:"nrh1eho",variantClassNames:{isDisabled:{true:"nrh1ehp"},labelPosition:{top:"nrh1ehq",start:"nrh1ehr"}},defaultVariants:{},compoundVariants:[]}),At=C({defaultClassName:"nrh1ehs",variantClassNames:{validationState:{valid:"nrh1eht",error:"nrh1ehu",warning:"nrh1ehv"},isReadOnly:{true:"nrh1ehw"}},defaultVariants:{},compoundVariants:[]}),We="nrh1eh3",Xe=C({defaultClassName:"nrh1eh4",variantClassNames:{labelPosition:{top:"nrh1eh5",start:"nrh1eh6"},hasMessage:{true:"nrh1eh7"}},defaultVariants:{},compoundVariants:[[{labelPosition:"start",hasMessage:!1},"nrh1eh8"]]}),Ye=C({defaultClassName:"nrh1eh0",variantClassNames:{labelPosition:{top:"z9nup81",start:"nrh1eh2 z9nup82"}},defaultVariants:{},compoundVariants:[]}),Bt=C({defaultClassName:"nrh1eh9 z9nup82",variantClassNames:{validationState:{valid:"nrh1eha",error:"nrh1ehb",warning:"nrh1ehc"},isHovered:{true:"nrh1ehd"},isFocused:{true:"nrh1ehe"},isDisabled:{true:"nrh1ehf"},variant:{primary:"nrh1ehg",ghost:"nrh1ehh"},isReadOnly:{true:"nrh1ehi"}},defaultVariants:{},compoundVariants:[[{variant:"ghost",isHovered:!0,isFocused:!1,validationState:"valid"},"nrh1ehj"],[{variant:"ghost",isFocused:!1,isHovered:!1,validationState:"valid"},"nrh1ehk"],[{isHovered:!0,validationState:"valid",isDisabled:!1,isReadOnly:!1,isFocused:!1,variant:"primary"},"nrh1ehl"],[{isHovered:!0,validationState:"warning",isDisabled:!1,isReadOnly:!1,isFocused:!1},"nrh1ehm"],[{isReadOnly:!0,variant:"primary",isFocused:!1},"nrh1ehn"]]});function Te({description:r,errorMessageProps:e,descriptionProps:t,warningMessage:o,errorMessage:a,labelPosition:n,isDisabled:i}){return r?jsxRuntime.jsx("div",{...t,className:Dt({isDisabled:i,labelPosition:n}),children:r}):a?jsxRuntime.jsx("div",{...e,className:Dt({hasError:!0,labelPosition:n}),children:a}):o?jsxRuntime.jsx("div",{className:Dt({isDisabled:i,labelPosition:n}),children:o}):null}var rp=C({defaultClassName:"_1lnwne1 z9nup82",variantClassNames:{isHoveredOrFocused:{true:"_1lnwne2"},isInteractive:{false:"z9nup83"}},defaultVariants:{},compoundVariants:[[{isHoveredOrFocused:!0,isInteractive:!0},"_1lnwne4"]]}),op="_1lnwne0";var ap=C({defaultClassName:"_1jwycy80",variantClassNames:{placement:{bottom:"_1jwycy81",left:"_1jwycy82",right:"_1jwycy83",top:"_1jwycy84"},variant:{default:"_1jwycy85",inverse:"_1jwycy86"}},defaultVariants:{},compoundVariants:[]}),np=C({defaultClassName:"_1jwycy87 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn",variantClassNames:{size:{md:"_1yep5z63u _1yep5z63v _1yep5z63w _1yep5z61i _1yep5z61j _1yep5z61k _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z6e7",sm:"_1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6dv"},variant:{default:"_1yep5z6g9 _1yep5z6ez",inverse:"_1yep5z6d7 _1yep5z6g1 _1yep5z6eu"}},defaultVariants:{},compoundVariants:[]});function Ko({placement:r}){let e=ut.useMemo(()=>{switch(r){case"top":return {x:0,y:-4};case"bottom":return {x:0,y:4};case"left":return {x:-4,y:0};case"right":return {x:4,y:0};default:return {x:0,y:4}}},[r]);return {transitionProps:{initial:{opacity:0,transform:`translate3d(${e.x}px, ${e.y}px, 0) scale(0.98)`},animate:{opacity:1,transform:"translate3d(0, 0, 0) scale(1)"},transition:{ease:"easeOut"}}}}var Dn=ut__default.default.forwardRef(({children:r,state:e,overlayProps:t,arrowProps:o,placement:a,variant:n,size:i,tooltipProps:s,includeArrow:l},p)=>{let{tooltipProps:c}=reactAria.useTooltip({isOpen:e.isOpen},e),d=a==="center"?"bottom":a,{transitionProps:m}=Ko({placement:a});return jsxRuntime.jsxs(react.motion.span,{...reactAria.mergeProps(t,m),ref:p,"data-placement":d,children:[l?jsxRuntime.jsx("div",{className:ap({placement:d,variant:n}),...o}):null,jsxRuntime.jsx("div",{...reactAria.mergeProps(c,s),className:np({variant:n,size:i}),children:r})]})});Dn.displayName="TooltipContent";var An=ut__default.default.createContext(void 0),Go=({portalContainer:r,children:e})=>jsxRuntime.jsx(An.Provider,{value:r,children:e});Go.displayName="PortalContainerProvider";var Wo="var(--lz9qs1)",lp="var(--lz9qs0)";function cp({ref:r,onIntersect:e,isDisabled:t,threshold:o,rootMargin:a,root:n}){let i=ut__default.default.useRef(null);ut.useEffect(()=>{if(t){i.current?.disconnect(),i.current=null;return}i.current=new IntersectionObserver(([s])=>{e(s);},{root:n?.current,rootMargin:a,threshold:o});},[e,t,n,a,o]),ut.useEffect(()=>{let{current:s}=i;return r.current&&s?.observe(r.current),()=>s?.disconnect()},[r]);}function dp({ref:r,onResize:e,isDisabled:t}){let o=ut__default.default.useRef(null),[a,n]=ut__default.default.useState();return ut__default.default.useEffect(()=>{if(t){o.current?.disconnect(),o.current=null;return}o.current=new ResizeObserver(([i])=>{n(i.contentRect),e?.(i);});},[e,t,n]),ut__default.default.useEffect(()=>{let{current:i}=o;return r.current&&i?.observe(r.current),()=>i?.disconnect()},[r]),{size:a}}function Ot({src:r,alt:e}){let[t,o]=ut.useState(!1),[a,n]=ut.useState(!1),[i,s]=ut.useState(!1),l=()=>{o(!0),s(!1);},p=()=>{n(!0),s(!1);};return ut.useEffect(()=>{if(!r)return;s(!0);let c=new Image;return c.src=r,c.addEventListener("load",l),c.addEventListener("error",p),()=>{c.removeEventListener("load",l),c.removeEventListener("error",p);}},[r]),{isLoaded:t,hasError:a,isLoading:i,imgProps:{src:t?r:void 0,alt:e}}}function Yo(){let r=ut.useRef(!0);return ut.useEffect(()=>{r.current=!1;},[]),r.current}var up="SET_STATE",Zo="UNDO",Jo="REDO",ih=(r,e)=>{let{past:t,present:o,future:a}=r;switch(e.type){case up:return {past:[...t,o],present:e.data,future:[]};case Zo:return {past:t.slice(0,t?.length-1),present:t[t?.length-1],future:[o,...a]};case Jo:return {past:[...t,o],present:a[0],future:a.slice(1)};default:throw new Error("Invalid action type")}},mp=(r={},{isDisabled:e,onAction:t})=>{let o=Yo(),[a,n]=ut.useReducer(ih,{past:[],present:r,future:[]}),{past:i,present:s,future:l}=a,p=y=>{n({type:up,data:y});},c=ut.useRef(),d=()=>{c.current=Zo,n({type:Zo});},m=()=>{c.current=Jo,n({type:Jo});},u=!!i?.length,b=!!l?.length;return granularHooks.useGranularEffect(()=>{(c.current===Zo||c.current===Jo)&&(t?.(s,c.current),c.current=void 0);},[s],[t,o]),{state:s,push:e?()=>{}:p,undo:e?()=>{}:d,redo:e?()=>{}:m,pastStates:i,futureStates:l,canUndo:u,canRedo:b}};var On=ut__default.default.createContext({messages:{},shouldLogMissingMessages:!0,hasMissingErrorLoggedFor:{current:new Set},setLang:()=>{}}),bp=({children:r,messages:e={},shouldLogMissingMessages:t=!0,...o})=>{let a=ut.useRef(new Set),[n,i]=ut.useState(o.locale||"");ut.useEffect(()=>{a.current.clear();},[n,o.locale]);let s=ut__default.default.useMemo(()=>({messages:e,shouldLogMissingMessages:t,hasMissingErrorLoggedFor:a,setLang:i}),[e,t,i]);return jsxRuntime.jsx(reactAria.I18nProvider,{...o,children:jsxRuntime.jsx(On.Provider,{value:s,children:r})})};bp.displayName="I18nProvider";function A(r){let{messages:e,shouldLogMissingMessages:t,hasMissingErrorLoggedFor:o,setLang:a}=ut.useContext(On);ut.useEffect(()=>{!r&&uh__default.default(e)&&console.warn("BUI \u{1F30D}: No messages object provided and no messages found in the `I18nProvider`. Please provide a messages object to the `useI18n` hook.");},[r,e]);let n=ut.useMemo(()=>r?utils.cleanKeyFromGlobImport(r):e,[r,e]),i=reactAria.useMessageFormatter(n),s=reactAria.useLocale();ut.useEffect(()=>{a(s.locale);},[s.locale,a]);let l=ut.useCallback(c=>{t&&!o.current.has(c)&&(console.log(`BUI \u{1F30D}: Translation not found for key: \`${c}\` for locale: \`${s.locale}\`. The default message, i.e. \`${c}\`, will be used instead.`),o.current.add(c));},[o,s.locale,t]),p=ut.useCallback((c,d)=>{if(typeof c=="object")try{return i(c.id,d)}catch{return l(c.id),c.defaultMessage||c.id}else try{return i(c,d)}catch{return l(c),c}},[i,l]);return ut.useMemo(()=>({formatMessage:p,locale:s}),[p,s])}var K=r=>r;function $D(r,e,t){let o=ut__default.default.useRef(null);return ut__default.default.useEffect(()=>{if(r)return o.current=new MutationObserver(t),o.current.observe(r,e),()=>{o.current&&o.current.disconnect();}},[r,e,t]),o.current}function zp(r,e){let[t,o]=ut.useState(()=>{try{let n=window.localStorage.getItem(r);return n?JSON.parse(n):e}catch(n){return console.log(n),e}});return [t,n=>{try{let i=n instanceof Function?n(t):n;o(i),window.localStorage.setItem(r,JSON.stringify(i));}catch(i){console.log(i);}}]}function YD({ref:r,onSelectionChange:e,onSelectionEnd:t,isDisabled:o}){let a=ut__default.default.useRef(null);reactAria.usePress({ref:r,isDisabled:o,onPressEnd(){let i=ae(r.current).getSelection();i&&r.current?.contains(i.anchorNode)&&t?.(i);},onPressStart(){let n=ae(r.current);a.current=n.getSelection(),a.current&&a.current.removeAllRanges();}}),ut.useEffect(()=>{let n=r.current;if(!n||o)return;function i(){let p=ae(n).getSelection();p&&r.current?.contains(p.anchorNode)&&e(p);}let s=fe(n);return s.addEventListener("selectionchange",i),()=>{s.removeEventListener("selectionchange",i);}},[r,e,o]);}function Ze(r){let e=ut.useCallback(()=>{let a=ae(r??typeof window>"u"?void 0:document.body),n=a.matchMedia(tokens.queries.tablet);return a.matchMedia(tokens.queries.desktop).matches?"desktop":n.matches?"tablet":"mobile"},[r]),[t,o]=ut__default.default.useState(e);return Se(()=>{let a=ae(r),n=()=>{o(e());};return a.addEventListener("resize",n),n(),()=>{a.removeEventListener("resize",n);}},[r,e]),t}var kh=typeof window<"u";function Fn(){return kh?document.body:null}var ft=ut__default.default.createContext({container:null,portalContainer:null,shouldContainOverlays:!1,isContainerPositioned:!1}),Sh=({children:r,container:e=Fn(),portalContainer:t,shouldContainOverlays:o="auto"})=>{let a=Ze(),n=ut.useMemo(()=>e===Fn()||o==="never"?!1:o==="always"?!0:a!=="mobile",[o,a,e]),[i,s]=ut.useState(!1),l=Yo();ut.useEffect(()=>{if(!e||l)return;let d=ae(e).getComputedStyle(e),m=!!d.position&&d.position!=="static";s(m);let u=e.getBoundingClientRect();(u.width===0||u.height===0)&&console.error("FrameProvider: container does not have a width or height. Please ensure that the container is visible and has a width and height.");function b({width:f,height:g}){e&&dynamic.setElementVars(e,{[lp]:f,[Wo]:g});}let y=new ResizeObserver(f=>{for(let g of f)b({width:`${g.contentRect.width}px`,height:`${g.contentRect.height}px`});});return n&&(b({width:`${u.width}px`,height:`${u.height}px`}),y.observe(e)),e.dataset.shouldContainOverlays=n.toString(),()=>{y.disconnect(),b({width:"",height:""}),e.dataset.shouldContainOverlays="";}},[e,l,n]);let p=ut.useMemo(()=>({container:e,portalContainer:t||e||Fn(),shouldContainOverlays:n,isContainerPositioned:i}),[e,t,n,i]);return jsxRuntime.jsx(ft.Provider,{value:p,children:jsxRuntime.jsx(Go,{portalContainer:p.portalContainer||void 0,children:r})})};function ye(r){let e=ut.useContext(An),{portalContainer:t}=ut.useContext(ft);return r||e||t||void 0}var kp=C({defaultClassName:"z9nup84",variantClassNames:{size:{xs:"z9nup85",sm:"z9nup86"}},defaultVariants:{},compoundVariants:[]});var Sp="z9nup80",Ft="z9nup83",Ip="z9nup87";function jn(r=typeof window>"u"?void 0:window){let[e,t]=ut.useState("light"),[o,a]=ut.useState(!1),[n,i]=ut.useState(!1),[s,l]=ut.useState(!1);return ut.useEffect(()=>{if(!r)return;let p=r.matchMedia("(prefers-color-scheme: dark)"),c=d=>{t(d.matches?"dark":"light");};return p.matches&&t("dark"),p.addEventListener("change",c),()=>{p.addEventListener("change",c);}},[r]),ut.useEffect(()=>{if(!r)return;let p=r.matchMedia("(prefers-contrast: more)"),c=d=>{a(d.matches);};return a(p.matches),p.addEventListener("change",c),()=>{p.addEventListener("change",c);}},[r]),ut.useEffect(()=>{if(!r)return;let p=r.matchMedia("(prefers-reduced-motion: reduce)"),c=d=>{i(d.matches);};return p.matches&&i(!0),p.addEventListener("change",c),()=>{p.addEventListener("change",c);}},[r]),ut.useEffect(()=>{if(!r)return;let p=r.matchMedia("(prefers-reduced-transparency: reduce)"),c=d=>{l(d.matches);};return p.matches&&l(!0),p.addEventListener("change",c),()=>{p.addEventListener("change",c);}},[r]),{colorScheme:e,highContrast:o,reducedMotion:n,transparency:s}}var ta=ut.createContext({theme:tokens.lightTheme,setTheme:()=>{}});var Rp="var(--hj25q10)";var ra={LIGHT:{name:"light",theme:tokens.lightTheme},DARK:{name:"dark",theme:tokens.darkTheme}},oa=ut__default.default.forwardRef(({theme:r="system",children:e,setTheme:t,className:o,style:a,UNSAFE_domProps:n,"data-block-id":i,"data-block-class":s,reducedMotion:l="user"},p)=>{let{direction:c}=reactAria.useLocale(),{colorScheme:d,reducedMotion:m,highContrast:u,transparency:b}=jn(),{name:y,theme:f}=ut.useMemo(()=>{switch(r){case"system":return d==="light"?ra.LIGHT:ra.DARK;case"light":return ra.LIGHT;case"dark":return ra.DARK;default:return {name:"custom",theme:r}}},[d,r]),g=Ze(),_={"data-theme":y,"data-block-id":i,"data-block-class":s,"data-reduced-motion":l==="user"?m:l==="always","data-high-contrast":u,"data-transparency":b,"data-device":g},v=ut.useMemo(()=>({theme:f,setTheme:t}),[f,t]);return jsxRuntime.jsx(ta.Provider,{value:v,children:jsxRuntime.jsx(react.MotionConfig,{reducedMotion:l,children:jsxRuntime.jsx("div",{...reactAria.mergeProps(n,_),className:utils.classNames(Sp,"BaselineUI-ThemeProvider",o),style:{...dynamic.assignInlineVars(tokens.themeVars,f),...dynamic.assignInlineVars({[Rp]:c==="rtl"?"-1":"1"}),...a},ref:p,children:e})})})});oa.displayName="ThemeProvider";var xe=ut__default.default.forwardRef(({className:r,style:e,children:t,"data-block-id":o,"data-block-class":a,portalContainer:n,...i},s)=>{let{theme:l}=ut.useContext(ta),p=ye();return jsxRuntime.jsx(reactAria.Overlay,{...i,portalContainer:n??p,children:jsxRuntime.jsx(oa,{ref:s,theme:l,style:e,className:utils.classNames("BaselineUI-Portal",r),"data-block-id":o,"data-block-class":a,children:t})})});xe.displayName="Portal";var ne=ut__default.default.forwardRef(({children:r,placement:e="bottom",delay:t=1e3,closeDelay:o=500,variant:a="default",size:n="md",includeArrow:i=!0,portalContainer:s,className:l,style:p,"data-block-id":c,"data-block-class":d,...m},u)=>{let b=ut__default.default.useRef(null),y=ut__default.default.useRef(null),f=!m.text||m.isDisabled,g=reactStately.useTooltipTriggerState({...m,delay:t,closeDelay:o,isDisabled:f}),{triggerProps:_,tooltipProps:v}=reactAria.useTooltipTrigger({...m,isDisabled:f,delay:t,closeDelay:o},g,b),h=ye(s),{overlayProps:x,arrowProps:w,placement:P,updatePosition:z}=reactAria.useOverlayPosition({arrowSize:i?13:0,targetRef:b,arrowBoundaryOffset:i?8:0,offset:i?12:2,overlayRef:y,placement:e,isOpen:g.isOpen,...m});return cp({ref:y,threshold:1,onIntersect:z,isDisabled:!g.isOpen}),dp({ref:b,onResize:z,isDisabled:!g.isOpen}),jsxRuntime.jsxs(focus.FocusableProvider,{..._,ref:b,children:[r,g.isOpen?jsxRuntime.jsx(xe,{disableFocusManagement:!0,portalContainer:h,className:l,style:p,"data-block-id":c,"data-block-class":d,children:jsxRuntime.jsx(Dn,{ref:L(u,y),state:g,arrowProps:w,overlayProps:x,placement:P,tooltipProps:v,variant:a,size:n,includeArrow:i,children:m.text})}):null]})});ne.displayName="Tooltip";var aa=ut__default.default.forwardRef(({elementType:r,children:e,...t},o)=>{let a=ee(o),{focusableProps:n}=focus.useFocusable(t,a);return jsxRuntime.jsx(r??"div",{ref:a,...n,children:e})});aa.displayName="Focusable";var t_={xxs:8,xs:12,sm:16,md:20,lg:24},D=ut__default.default.forwardRef((r,e)=>{let t=ee(e),{tooltipProps:o}=Ho(r,t);return o?jsxRuntime.jsx(ne,{...o,children:jsxRuntime.jsx($n,{...r,ref:t})}):jsxRuntime.jsx($n,{...r,ref:t})});D.displayName="ActionIconButton";var $n=ut__default.default.forwardRef(({className:r,style:e,icon:t,size:o="md",variant:a="primary",UNSAFE_NON_INTERACTIVE:n,elementType:i=n?"div":"button",...s},l)=>{let p=s["aria-label"],c=s["aria-labelledby"];ut.useEffect(()=>{!p&&!c&&console.warn("An `ActionIconButton` requires an aria-label or aria-labelledby prop.");},[p,c]);let{buttonProps:d,isPressed:m,ref:u,isFocusVisible:b,isFocused:y,isHovered:f,uiStateOptions:g}=Vo({...s,elementType:i}),_=utils.filterTruthyValues({"data-block-id":s["data-block-id"],"data-block-class":s["data-block-class"],"data-focused":y,"data-focus-visible":b,"data-disabled":s.isDisabled,"data-hovered":f,"data-pressed":m});return jsxRuntime.jsxs(i,{...reactAria.mergeProps(d,_),className:utils.classNames(El({variant:a,size:o,isDisabled:!!s.isDisabled,isFocusVisible:b,isHovered:f}),"BaselineUI-ActionIconButton",typeof r=="function"?r(g):r),ref:L(l,u),style:typeof e=="function"?e(g):e,...n&&{tabIndex:void 0,role:void 0,"aria-label":void 0,"aria-labelledby":void 0,"aria-disabled":void 0},children:[jsxRuntime.jsx(t,{role:"presentation",size:t_[o]}),a==="popover"&&jsxRuntime.jsx(_8.CaretDownIcon,{size:8,className:Oo})]})});$n.displayName="ActionIconButtonCore";var Oe=ut__default.default.forwardRef(({className:r,style:e,labelPosition:t="top",variant:o="primary",showStepper:a=!0,...n},i)=>{let s=ut__default.default.useRef(null),{locale:l}=reactAria.useLocale(),p=reactStately.useNumberFieldState({...n,locale:l}),{hoverProps:c,isHovered:d}=reactAria.useHover({isDisabled:n.isDisabled}),{focusProps:m,isFocusVisible:u,isFocused:b}=reactAria.useFocusRing(),{labelProps:y,decrementButtonProps:f,inputProps:g,incrementButtonProps:_,groupProps:v,descriptionProps:h,errorMessageProps:x}=reactAria.useNumberField(n,p,s),w=ut.useMemo(()=>n.isReadOnly?_16.ReadOnlyIcon:n.isInvalid?_16.ErrorCircleFilledIcon:null,[n.isInvalid,n.isReadOnly]),P=Te({description:n.description,errorMessageProps:x,descriptionProps:h,errorMessage:n.errorMessage,labelPosition:t,isDisabled:n.isDisabled}),z=utils.filterTruthyValues({"data-disabled":n.isDisabled,"data-readonly":n.isReadOnly,"data-hovered":d,"data-focused":b,"data-focus-visible":u,"data-invalid":n.isInvalid,"data-block-id":n["data-block-id"],"data-block-class":n["data-block-class"]});return jsxRuntime.jsxs("div",{style:e,className:utils.classNames(Ye({labelPosition:t}),"BaselineUI-NumberInput",r),...z,ref:i,children:[n.label?jsxRuntime.jsxs("div",{className:Xe({labelPosition:t,hasMessage:!!P}),children:[jsxRuntime.jsx("label",{...y,className:We,children:n.label}),t==="start"&&P]}):null,jsxRuntime.jsxs("div",{className:utils.classNames({[Ft]:n.isDisabled}),children:[jsxRuntime.jsxs("div",{...reactAria.mergeProps(v,c),className:utils.classNames(Bt({isHovered:d,isDisabled:!!n.isDisabled,isReadOnly:!!n.isReadOnly,validationState:n.isInvalid?"error":"valid",isFocused:b,variant:o}),{[op]:t==="start"},"BaselineUI-NumberInput-Container"),children:[jsxRuntime.jsx("input",{...reactAria.mergeProps(g,m),ref:s,className:utils.classNames("BaselineUI-NumberInput-Input",qo({isDisabled:n.isDisabled,labelPosition:t}))}),w?jsxRuntime.jsx(w,{className:At({validationState:"error",isReadOnly:n.isReadOnly}),size:16}):null,a?jsxRuntime.jsxs("div",{className:rp({isHoveredOrFocused:d||b,isInteractive:!n.isReadOnly&&!n.isDisabled}),children:[jsxRuntime.jsx(D,{variant:"secondary",size:"xxs",icon:_8.MinusIcon,...f,className:"BaselineUI-NumberInput-DecrementButton"}),jsxRuntime.jsx(V,{style:{height:16},orientation:"vertical"}),jsxRuntime.jsx(D,{variant:"secondary",size:"xxs",icon:_8.PlusIcon,..._,className:"BaselineUI-NumberInput-DecrementButton"})]}):null]}),t==="top"&&P]})]})});Oe.displayName="NumberInput";var Vt=ut__default.default.forwardRef(({className:r,style:e,onChange:t,onChangeEnd:o,numberFormatOptions:a,isDisabled:n,step:i,minValue:s,maxValue:l,value:p,"aria-label":c,"aria-labelledby":d,"aria-details":m,"aria-describedby":u,"data-block-id":b,"data-block-class":y,defaultValue:f,isReadOnly:g,label:_,id:v,includeNumberInput:h},x)=>{let w=ut__default.default.useRef(null),P={onChange:t===void 0?void 0:I=>{t(I[0]);},isDisabled:n||g,step:i,minValue:s,maxValue:l,onChangeEnd:o===void 0?void 0:I=>{o(I[0]);},value:p===void 0?void 0:[p],defaultValue:f===void 0?void 0:[f],"aria-label":c,"aria-labelledby":d,"aria-details":m,"aria-describedby":u,id:v,label:_},z=reactAria.useNumberFormatter(a),k=reactStately.useSliderState({...P,numberFormatter:z}),{trackProps:T,groupProps:R,labelProps:N}=reactAria.useSlider(P,k,w),S=jsxRuntime.jsx(Oe,{variant:"ghost",showStepper:!1,"aria-label":c,"aria-labelledby":N.id,value:k.getThumbValue(0),formatOptions:a,onChange:I=>{k.setThumbValue(0,I);},style:{width:55,textAlign:"right",flexShrink:0}});return jsxRuntime.jsxs("div",{...R,style:e,"data-block-id":b,"data-block-class":y,className:utils.classNames(Wl,"BaselineUI-Slider",r),children:[_?jsxRuntime.jsxs("div",{className:Yl,children:[jsxRuntime.jsx("label",{...N,className:utils.classNames(Zl({isDisabled:n,hasNumberInput:!!h}),"BaselineUI-Slider-Label"),children:_}),h?S:null]}):null,jsxRuntime.jsxs("div",{className:Xl,children:[jsxRuntime.jsx("div",{...T,className:utils.classNames(ep,"BaselineUI-Slider-Track"),ref:L(w,x),"data-testid":"track",children:jsxRuntime.jsx(C_,{state:k,trackRef:w,isDisabled:n,isReadOnly:g})}),h&&!_?S:null]})]})});Vt.displayName="Slider";function C_({state:r,trackRef:e,isDisabled:t,isReadOnly:o}){let a=ut__default.default.useRef(null),{thumbProps:n,inputProps:i,isDragging:s}=reactAria.useSliderThumb({trackRef:e,inputRef:a},r),{focusProps:l,isFocused:p,isFocusVisible:c}=reactAria.useFocusRing(),{hoverProps:d,isHovered:m}=reactAria.useHover({isDisabled:t}),u=utils.filterTruthyValues({"data-disabled":t,"data-readonly":o,"data-hovered":m,"data-focus-visible":c,"data-dragging":s,"data-focused":p});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:utils.classNames(tp({isDisabled:t,isFocusVisible:c,active:s,isHovered:m}),"BaselineUI-Slider-TrackHighlight"),style:{width:n.style?.left},"data-testid":"track-highlight"}),jsxRuntime.jsxs("div",{...reactAria.mergeProps(n,d,u),className:utils.classNames(Ql,"BaselineUI-Slider-ThumbHandle"),"data-testid":"thumb",children:[jsxRuntime.jsx("div",{className:utils.classNames(Jl({isDisabled:t,isFocusVisible:c,active:s,isReadOnly:o,isHovered:m}),"BaselineUI-Slider-Thumb")}),jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{ref:a,...reactAria.mergeProps(i,l)})})]})]})}var Op=C({defaultClassName:"_1tkzayn0 _1yep5z6dy",variantClassNames:{size:{sm:"_1tkzayn1",md:"_1tkzayn2",lg:"_1tkzayn3"},type:{subtitle:"_1yep5z610r",title:"_1yep5z610r",label:"_1yep5z610s",value:"_1yep5z610s",helper:"_1yep5z610t",body:"_1yep5z610r"}},defaultVariants:{},compoundVariants:[[{type:"title",size:"sm"},"_1yep5z61l7"],[{type:"title",size:"md"},"_1yep5z61la"],[{type:"title",size:"lg"},"_1yep5z61ld"],[{type:"body",size:"sm"},"_1yep5z61lx"],[{type:"body",size:"md"},"_1yep5z61m0"],[{type:"body",size:"lg"},"_1yep5z61m0"],[{type:"subtitle",size:"sm"},"_1yep5z61lt"],[{type:"subtitle",size:"md"},"_1yep5z61lw"],[{type:"subtitle",size:"lg"},"_1yep5z61lw"],[{type:"label",size:"md"},"_1yep5z61lv"],[{type:"label",size:"lg"},"_1yep5z61lv"],[{type:"value",size:"md"},"_1yep5z61lv"],[{type:"value",size:"lg"},"_1yep5z61lv"],[{type:"helper",size:"sm"},"_1yep5z61lp"]]});var Q=ut__default.default.forwardRef(({elementType:r="span",type:e="title",children:t,size:o="md",...a},n)=>jsxRuntime.jsx(r,{...a,className:utils.classNames(Op({size:o,type:e}),"BaselineUI-Text",a.className),ref:n,children:t}));Q.displayName="Text";var Fp=C({defaultClassName:"siobe20 _1yep5z6ao _1yep5z6ap _1yep5z6aq _1yep5z6bc _1yep5z6bd _1yep5z6be _1yep5z6d7 _1yep5z6lv _1yep5z6lt _1yep5z6h4 _1yep5z6lk _1yep5z6im _1yep5z6in _1yep5z6io _1yep5z6iy _1yep5z6iz _1yep5z6j0",variantClassNames:{background:{subtle:"_1yep5z611y",medium:"_1yep5z611z"},isFocusVisible:{true:"_1yep5z617i _1yep5z617k _1yep5z617l _1yep5z613r"}},defaultVariants:{},compoundVariants:[]}),jp="siobe24";var ia=ut__default.default.forwardRef(({className:r,style:e,children:t,background:o="medium",title:a,action:n,"data-block-id":i,"data-block-class":s,onCloseRequest:l,contentStyle:p,contentClassName:c,...d},m)=>{let{formatMessage:u}=A(),b=ut__default.default.useRef(null),{dialogProps:y,titleProps:f}=reactAria.useDialog(d,b),{focusProps:g,isFocusVisible:_}=reactAria.useFocusRing();return jsxRuntime.jsxs("div",{...reactAria.mergeProps(y,g),className:utils.classNames(Fp({background:o,isFocusVisible:_}),"BaselineUI-Drawer",r),"data-block-id":i,"data-block-class":s,style:e,ref:L(m,b),children:[jsxRuntime.jsxs(E,{paddingLeft:"lg",paddingRight:"sm",backgroundColor:"background.primary.subtle",display:"flex",justifyContent:"space-between",alignItems:"center",gap:"lg",className:jp,children:[jsxRuntime.jsx(Q,{type:"title",size:"sm",...f,className:Ip,children:a}),jsxRuntime.jsxs(E,{children:[n?jsxRuntime.jsx(D,{...n,variant:"secondary"}):null,jsxRuntime.jsx(D,{variant:"secondary",size:"md",icon:_20.XIcon,onPress:l,"aria-label":u(N_.close)})]})]}),jsxRuntime.jsx(V,{variant:o==="subtle"?"primary":"secondary"}),jsxRuntime.jsx(E,{display:"flex",flexDirection:"column",flex:1,style:{overflow:"auto",...p},className:utils.classNames(c,"BaselineUI-Drawer-Content"),children:t})]})});ia.displayName="Drawer";var N_=K({close:{id:"close",defaultMessage:"Close"}});var $p="aml2vl8 _1yep5z6im _1yep5z6in _1yep5z6io _1yep5z6id _1yep5z6ie _1yep5z6if",Up="_1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6d7",qp=C({defaultClassName:"aml2vl3 _1yep5z6la _1yep5z6lb _1yep5z6ld _1yep5z6lc _1yep5z6im _1yep5z6in _1yep5z6io",variantClassNames:{enableDrawer:{false:"_1yep5z6jd _1yep5z6je _1yep5z6jf _1yep5z6k7 _1yep5z6k8 _1yep5z6k9",true:"aml2vl5"},shouldContainOverlays:{true:"aml2vl6",false:"aml2vl7"}},defaultVariants:{},compoundVariants:[]}),Kp=C({defaultClassName:"aml2vl0 _1yep5z6la _1yep5z6lb _1yep5z6ld _1yep5z6lc _1yep5z6gb",variantClassNames:{shouldContainOverlays:{true:"aml2vl1",false:"aml2vl2"}},defaultVariants:{},compoundVariants:[]});var yt=ut__default.default.createContext({state:null,triggerProps:{},overlayProps:{}}),Ne=({children:r,...e})=>{let t=reactStately.useOverlayTriggerState(e),{triggerProps:o,overlayProps:a}=reactAria.useOverlayTrigger({type:"dialog"},t),n=ut.useMemo(()=>({state:t,triggerProps:o,overlayProps:a}),[t,o,a]);return jsxRuntime.jsx(yt.Provider,{value:n,children:r})};Ne.displayName="Modal";var Gp={},Wp=r=>{var{fileScope:e,css:t}=r,o=e.packageName?[e.packageName,e.filePath].join("/"):e.filePath,a=Gp[o];if(!a){var n=document.createElement("style");e.packageName&&n.setAttribute("data-package",e.packageName),n.setAttribute("data-file",e.filePath),n.setAttribute("type","text/css"),a=Gp[o]=n,document.head.appendChild(n);}a.innerHTML=t;};function Xp(r){var e=r.match(/^var\((.*)\)$/);return e?e[1]:r}var ri=fn(Gn());var Zp=class{constructor(r){let{failure:e,gotoFn:t,output:o}=this._buildTables(r);this.gotoFn=t,this.output=o,this.failure=e;}_buildTables(r){let e={0:{}},t={},o=0;for(let i of r){let s=0;for(let l of i)e[s]&&l in e[s]?s=e[s][l]:(o++,e[s][l]=o,e[o]={},s=o,t[o]=[]);t[s].push(i);}let a={},n=[];for(let i in e[0]){let s=e[0][i];a[s]=0,n.push(s);}for(;n.length>0;){let i=n.shift();if(i!==void 0)for(let s in e[i]){let l=e[i][s];n.push(l);let p=a[i];for(;p>0&&!(s in e[p]);)p=a[p];if(s in e[p]){let c=e[p][s];a[l]=c,t[l]=[...t[l],...t[c]];}else a[l]=0;}}return {gotoFn:e,output:t,failure:a}}search(r){let e=0,t=[];for(let o=0;o<r.length;o++){let a=r[o];for(;e>0&&!(a in this.gotoFn[e]);)e=this.failure[e];if(a in this.gotoFn[e]&&(e=this.gotoFn[e][a],this.output[e].length>0)){let n=this.output[e];t.push([o,n]);}}return t}match(r){let e=0;for(let t=0;t<r.length;t++){let o=r[t];for(;e>0&&!(o in this.gotoFn[e]);)e=this.failure[e];if(o in this.gotoFn[e]&&(e=this.gotoFn[e][o],this.output[e].length>0))return !0}return !1}};var $_={appendCss:()=>{},registerClassName:()=>{},onEndFileScope:()=>{},registerComposition:()=>{},markCompositionUsed:()=>{},getIdentOption:()=>process.env.NODE_ENV==="production"?"short":"debug"},sa=[$_],U_=()=>{if(sa.length<1)throw new Error("No adapter configured");return sa[sa.length-1]},Jp=!1,Qp=r=>{Jp||q_(r);},q_=r=>{if(!r)throw new Error('No adapter provided when calling "setAdapter"');Jp=!0,sa.push(r);};var Wn=function(){return U_().markCompositionUsed(...arguments)};function la(r,e){return e||(e=r.slice(0)),Object.freeze(Object.defineProperties(r,{raw:{value:Object.freeze(e)}}))}var J;(function(r){r.Attribute="attribute",r.Pseudo="pseudo",r.PseudoElement="pseudo-element",r.Tag="tag",r.Universal="universal",r.Adjacent="adjacent",r.Child="child",r.Descendant="descendant",r.Parent="parent",r.Sibling="sibling",r.ColumnCombinator="column-combinator";})(J||(J={}));var _e;(function(r){r.Any="any",r.Element="element",r.End="end",r.Equals="equals",r.Exists="exists",r.Hyphen="hyphen",r.Not="not",r.Start="start";})(_e||(_e={}));var ec=/^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/,K_=/\\([\da-f]{1,6}\s?|(\s)|.)/gi,G_=new Map([[126,_e.Element],[94,_e.Start],[36,_e.End],[42,_e.Any],[33,_e.Not],[124,_e.Hyphen]]),W_=new Set(["has","not","matches","is","where","host","host-context"]);function rc(r){switch(r.type){case J.Adjacent:case J.Child:case J.Descendant:case J.Parent:case J.Sibling:case J.ColumnCombinator:return !0;default:return !1}}var X_=new Set(["contains","icontains"]);function Y_(r,e,t){let o=parseInt(e,16)-65536;return o!==o||t?e:o<0?String.fromCharCode(o+65536):String.fromCharCode(o>>10|55296,o&1023|56320)}function Lr(r){return r.replace(K_,Y_)}function Xn(r){return r===39||r===34}function tc(r){return r===32||r===9||r===10||r===12||r===13}function Yn(r){let e=[],t=oc(e,`${r}`,0);if(t<r.length)throw new Error(`Unmatched selector: ${r.slice(t)}`);return e}function oc(r,e,t){let o=[];function a(m){let u=e.slice(t+m).match(ec);if(!u)throw new Error(`Expected name, found ${e.slice(t)}`);let[b]=u;return t+=m+b.length,Lr(b)}function n(m){for(t+=m;t<e.length&&tc(e.charCodeAt(t));)t++;}function i(){t+=1;let m=t,u=1;for(;u>0&&t<e.length;t++)e.charCodeAt(t)===40&&!s(t)?u++:e.charCodeAt(t)===41&&!s(t)&&u--;if(u)throw new Error("Parenthesis not matched");return Lr(e.slice(m,t-1))}function s(m){let u=0;for(;e.charCodeAt(--m)===92;)u++;return (u&1)===1}function l(){if(o.length>0&&rc(o[o.length-1]))throw new Error("Did not expect successive traversals.")}function p(m){if(o.length>0&&o[o.length-1].type===J.Descendant){o[o.length-1].type=m;return}l(),o.push({type:m});}function c(m,u){o.push({type:J.Attribute,name:m,action:u,value:a(1),namespace:null,ignoreCase:"quirks"});}function d(){if(o.length&&o[o.length-1].type===J.Descendant&&o.pop(),o.length===0)throw new Error("Empty sub-selector");r.push(o);}if(n(0),e.length===t)return t;e:for(;t<e.length;){let m=e.charCodeAt(t);switch(m){case 32:case 9:case 10:case 12:case 13:{(o.length===0||o[0].type!==J.Descendant)&&(l(),o.push({type:J.Descendant})),n(1);break}case 62:{p(J.Child),n(1);break}case 60:{p(J.Parent),n(1);break}case 126:{p(J.Sibling),n(1);break}case 43:{p(J.Adjacent),n(1);break}case 46:{c("class",_e.Element);break}case 35:{c("id",_e.Equals);break}case 91:{n(1);let u,b=null;e.charCodeAt(t)===124?u=a(1):e.startsWith("*|",t)?(b="*",u=a(2)):(u=a(0),e.charCodeAt(t)===124&&e.charCodeAt(t+1)!==61&&(b=u,u=a(1))),n(0);let y=_e.Exists,f=G_.get(e.charCodeAt(t));if(f){if(y=f,e.charCodeAt(t+1)!==61)throw new Error("Expected `=`");n(2);}else e.charCodeAt(t)===61&&(y=_e.Equals,n(1));let g="",_=null;if(y!=="exists"){if(Xn(e.charCodeAt(t))){let x=e.charCodeAt(t),w=t+1;for(;w<e.length&&(e.charCodeAt(w)!==x||s(w));)w+=1;if(e.charCodeAt(w)!==x)throw new Error("Attribute value didn't end");g=Lr(e.slice(t+1,w)),t=w+1;}else {let x=t;for(;t<e.length&&(!tc(e.charCodeAt(t))&&e.charCodeAt(t)!==93||s(t));)t+=1;g=Lr(e.slice(x,t));}n(0);let h=e.charCodeAt(t)|32;h===115?(_=!1,n(1)):h===105&&(_=!0,n(1));}if(e.charCodeAt(t)!==93)throw new Error("Attribute selector didn't terminate");t+=1;let v={type:J.Attribute,name:u,action:y,value:g,namespace:b,ignoreCase:_};o.push(v);break}case 58:{if(e.charCodeAt(t+1)===58){o.push({type:J.PseudoElement,name:a(2).toLowerCase(),data:e.charCodeAt(t)===40?i():null});continue}let u=a(1).toLowerCase(),b=null;if(e.charCodeAt(t)===40)if(W_.has(u)){if(Xn(e.charCodeAt(t+1)))throw new Error(`Pseudo-selector ${u} cannot be quoted`);if(b=[],t=oc(b,e,t+1),e.charCodeAt(t)!==41)throw new Error(`Missing closing parenthesis in :${u} (${e})`);t+=1;}else {if(b=i(),X_.has(u)){let y=b.charCodeAt(0);y===b.charCodeAt(b.length-1)&&Xn(y)&&(b=b.slice(1,-1));}b=Lr(b);}o.push({type:J.Pseudo,name:u,data:b});break}case 44:{d(),o=[],n(1);break}default:{if(e.startsWith("/*",t)){let y=e.indexOf("*/",t+2);if(y<0)throw new Error("Comment was not terminated");t=y+2,o.length===0&&n(0);break}let u=null,b;if(m===42)t+=1,b="*";else if(m===124){if(b="",e.charCodeAt(t+1)===124){p(J.ColumnCombinator),n(2);break}}else if(ec.test(e.slice(t)))b=a(0);else break e;e.charCodeAt(t)===124&&e.charCodeAt(t+1)!==124&&(u=b,e.charCodeAt(t+1)===42?(b="*",t+=2):b=a(1)),o.push(b==="*"?{type:J.Universal,namespace:u}:{type:J.Tag,name:b,namespace:u});}}}return d(),t}function ac(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);e&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable})),t.push.apply(t,o);}return t}function nc(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?ac(Object(t),!0).forEach(function(o){Z_(r,o,t[o]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):ac(Object(t)).forEach(function(o){Object.defineProperty(r,o,Object.getOwnPropertyDescriptor(t,o));});}return r}function Z_(r,e,t){return e=J_(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function J_(r){var e=Q_(r,"string");return typeof e=="symbol"?e:String(e)}function Q_(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var o=t.call(r,e||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return (e==="string"?String:Number)(r)}var e6=ic({}),pa=e6;function ic(r){return e.withOptions=t=>ic(nc(nc({},r),t)),e;function e(t,...o){let a=typeof t=="string"?[t]:t.raw,{escapeSpecialCharacters:n=Array.isArray(t)}=r,i="";for(let p=0;p<a.length;p++){let c=a[p];n&&(c=c.replace(/\\\n[ \t]*/g,"").replace(/\\`/g,"`").replace(/\\\$/g,"$").replace(/\\\{/g,"{")),i+=c,p<o.length&&(i+=o[p]);}let s=i.split(`
10
+ var hg=Object.create;var ul=Object.defineProperty;var _g=Object.getOwnPropertyDescriptor;var zg=Object.getOwnPropertyNames;var Cg=Object.getPrototypeOf,xg=Object.prototype.hasOwnProperty;var ml=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var Pg=(r,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of zg(e))!xg.call(r,a)&&a!==t&&ul(r,a,{get:()=>e[a],enumerable:!(o=_g(e,a))||o.enumerable});return r};var zn=(r,e,t)=>(t=r!=null?hg(Cg(r)):{},Pg(!r||!r.__esModule?ul(t,"default",{value:r,enumerable:!0}):t,r));var ei=ml((uj,pc)=>{var C5={},x5=C5.hasOwnProperty,P5=function(e,t){if(!e)return t;var o={};for(var a in t)o[a]=x5.call(e,a)?e[a]:t[a];return o},w5=/[ -,\.\/:-@\[-\^`\{-~]/,k5=/[ -,\.\/:-@\[\]\^`\{-~]/,S5=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,Qn=function r(e,t){t=P5(t,r.options),t.quotes!="single"&&t.quotes!="double"&&(t.quotes="single");for(var o=t.quotes=="double"?'"':"'",a=t.isIdentifier,n=e.charAt(0),i="",s=0,l=e.length;s<l;){var p=e.charAt(s++),c=p.charCodeAt(),d=void 0;if(c<32||c>126){if(c>=55296&&c<=56319&&s<l){var m=e.charCodeAt(s++);(m&64512)==56320?c=((c&1023)<<10)+(m&1023)+65536:s--;}d="\\"+c.toString(16).toUpperCase()+" ";}else t.escapeEverything?w5.test(p)?d="\\"+p:d="\\"+c.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(p)?d="\\"+c.toString(16).toUpperCase()+" ":p=="\\"||!a&&(p=='"'&&o==p||p=="'"&&o==p)||a&&k5.test(p)?d="\\"+p:d=p;i+=d;}return a&&(/^-[-\d]/.test(i)?i="\\-"+i.slice(1):/\d/.test(n)&&(i="\\3"+n+" "+i.slice(1))),i=i.replace(S5,function(u,y,b){return y&&y.length%2?u:(y||"")+b}),!a&&t.wrap?o+i+o:i};Qn.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1};Qn.version="3.0.0";pc.exports=Qn;});var Oc=ml((aF,Bc)=>{var S6=function(e){return I6(e)&&!R6(e)};function I6(r){return !!r&&typeof r=="object"}function R6(r){var e=Object.prototype.toString.call(r);return e==="[object RegExp]"||e==="[object Date]"||E6(r)}var T6=typeof Symbol=="function"&&Symbol.for,N6=T6?Symbol.for("react.element"):60103;function E6(r){return r.$$typeof===N6}function L6(r){return Array.isArray(r)?[]:{}}function Hr(r,e){return e.clone!==!1&&e.isMergeableObject(r)?Jt(L6(r),r,e):r}function M6(r,e,t){return r.concat(e).map(function(o){return Hr(o,t)})}function D6(r,e){if(!e.customMerge)return Jt;var t=e.customMerge(r);return typeof t=="function"?t:Jt}function A6(r){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(r).filter(function(e){return Object.propertyIsEnumerable.call(r,e)}):[]}function Dc(r){return Object.keys(r).concat(A6(r))}function Ac(r,e){try{return e in r}catch{return !1}}function B6(r,e){return Ac(r,e)&&!(Object.hasOwnProperty.call(r,e)&&Object.propertyIsEnumerable.call(r,e))}function O6(r,e,t){var o={};return t.isMergeableObject(r)&&Dc(r).forEach(function(a){o[a]=Hr(r[a],t);}),Dc(e).forEach(function(a){B6(r,a)||(Ac(r,a)&&t.isMergeableObject(e[a])?o[a]=D6(a,t)(r[a],e[a],t):o[a]=Hr(e[a],t));}),o}function Jt(r,e,t){t=t||{},t.arrayMerge=t.arrayMerge||M6,t.isMergeableObject=t.isMergeableObject||S6,t.cloneUnlessOtherwiseSpecified=Hr;var o=Array.isArray(e),a=Array.isArray(r),n=o===a;return n?o?t.arrayMerge(r,e,t):O6(r,e,t):Hr(e,t)}Jt.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(o,a){return Jt(o,a,t)},{})};var j6=Jt;Bc.exports=j6;});var Se=typeof document<"u"?bt__default.default.useLayoutEffect:()=>{};function Cn(r){let e=bt.useRef(null);return Se(()=>{e.current=r;},[r]),bt.useCallback((...t)=>{let o=e.current;return o?.(...t)},[])}function xn(r){let[e,t]=bt.useState(r),o=bt.useRef(null),a=Cn(()=>{if(!o.current)return;let i=o.current.next();if(i.done){o.current=null;return}e===i.value?a():t(i.value);});Se(()=>{o.current&&a();});let n=Cn(i=>{o.current=i(e),a();});return [e,n]}var No={prefix:String(Math.round(Math.random()*1e10)),current:0},fl=bt__default.default.createContext(No),Eg=bt__default.default.createContext(!1);var Lg=!!(typeof window<"u"&&window.document&&window.document.createElement),Pn=new WeakMap;function Mg(r=!1){let e=bt.useContext(fl),t=bt.useRef(null);if(t.current===null&&!r){var o,a;let n=(a=bt__default.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||a===void 0||(o=a.ReactCurrentOwner)===null||o===void 0?void 0:o.current;if(n){let i=Pn.get(n);i==null?Pn.set(n,{id:e.current,state:n.memoizedState}):n.memoizedState!==i.state&&(e.current=i.id,Pn.delete(n));}t.current=++e.current;}return t.current}function Dg(r){let e=bt.useContext(fl);e===No&&!Lg&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let t=Mg(!!r),o=e===No&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${e.prefix}`;return r||`${o}-${t}`}function Ag(r){let e=bt__default.default.useId(),[t]=bt.useState(yl()),o=t||process.env.NODE_ENV==="test"?"react-aria":`react-aria${No.prefix}`;return r||`${o}-${e}`}var kn=typeof bt__default.default.useId=="function"?Ag:Dg;function Bg(){return !1}function Og(){return !0}function jg(r){return ()=>{}}function yl(){return typeof bt__default.default.useSyncExternalStore=="function"?bt__default.default.useSyncExternalStore(jg,Bg,Og):bt.useContext(Eg)}var Ug=!!(typeof window<"u"&&window.document&&window.document.createElement),We=new Map;function Eo(r){let[e,t]=bt.useState(r),o=bt.useRef(null),a=kn(e),n=bt.useCallback(i=>{o.current=i;},[]);return Ug&&(We.has(a)&&!We.get(a).includes(n)?We.set(a,[...We.get(a),n]):We.set(a,[n])),Se(()=>{let i=a;return ()=>{We.delete(i);}},[a]),bt.useEffect(()=>{let i=o.current;i&&(o.current=null,t(i));}),a}function Sn(r,e){if(r===e)return r;let t=We.get(r);if(t)return t.forEach(a=>a(e)),e;let o=We.get(e);return o?(o.forEach(a=>a(r)),r):e}function bl(...r){return (...e)=>{for(let t of r)typeof t=="function"&&t(...e);}}var fe=r=>{var e;return (e=r?.ownerDocument)!==null&&e!==void 0?e:document},te=r=>r&&"window"in r&&r.window===r?r:fe(r).defaultView||window;function qg(r){return r!==null&&typeof r=="object"&&"nodeType"in r&&typeof r.nodeType=="number"}function In(r){return qg(r)&&r.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in r}var Lo=(r=document)=>{var e;let t=r.activeElement;for(;t&&"shadowRoot"in t&&(!((e=t.shadowRoot)===null||e===void 0)&&e.activeElement);)t=t.shadowRoot.activeElement;return t};function gl(r){var e,t,o="";if(typeof r=="string"||typeof r=="number")o+=r;else if(typeof r=="object")if(Array.isArray(r)){var a=r.length;for(e=0;e<a;e++)r[e]&&(t=gl(r[e]))&&(o&&(o+=" "),o+=t);}else for(t in r)r[t]&&(o&&(o+=" "),o+=t);return o}function Kg(){for(var r,e,t=0,o="",a=arguments.length;t<a;t++)(r=arguments[t])&&(e=gl(r))&&(o&&(o+=" "),o+=e);return o}var vl=Kg;function Xe(...r){let e={...r[0]};for(let t=1;t<r.length;t++){let o=r[t];for(let a in o){let n=e[a],i=o[a];typeof n=="function"&&typeof i=="function"&&a[0]==="o"&&a[1]==="n"&&a.charCodeAt(2)>=65&&a.charCodeAt(2)<=90?e[a]=bl(n,i):(a==="className"||a==="UNSAFE_className")&&typeof n=="string"&&typeof i=="string"?e[a]=vl(n,i):a==="id"&&n&&i?e.id=Sn(n,i):e[a]=i!==void 0?i:n;}}return e}function L(...r){return r.length===1&&r[0]?r[0]:e=>{for(let t of r)typeof t=="function"?t(e):t!=null&&(t.current=e);}}var Gg=new Set(["id"]),Wg=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Xg=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),Yg=/^(data-.*)$/;function Rn(r,e={}){let{labelable:t,isLink:o,propNames:a}=e,n={};for(let i in r)Object.prototype.hasOwnProperty.call(r,i)&&(Gg.has(i)||t&&Wg.has(i)||o&&Xg.has(i)||a?.has(i)||Yg.test(i))&&(n[i]=r[i]);return n}function Mo(r){var e;return typeof window>"u"||window.navigator==null?!1:((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.brands.some(t=>r.test(t.brand)))||r.test(window.navigator.userAgent)}function Be(r){let e=null;return ()=>(e==null&&(e=r()),e)}var Rr=Be(function(){return Mo(/Firefox/i)});function re(r){let e=bt.useRef(null);return bt.useMemo(()=>({get current(){return e.current},set current(t){e.current=t,typeof r=="function"?r(t):r&&(r.current=t);}}),[r])}function ov(){return typeof window.ResizeObserver<"u"}function En(r){let{ref:e,box:t,onResize:o}=r;bt.useEffect(()=>{let a=e?.current;if(a)if(ov()){let n=new window.ResizeObserver(i=>{i.length&&o();});return n.observe(a,{box:t}),()=>{a&&n.unobserve(a);}}else return window.addEventListener("resize",o,!1),()=>{window.removeEventListener("resize",o,!1);}},[o,e,t]);}function Ye(r){return !!r&&"label"in r&&!!r.label}function Do(r){return !!r&&"children"in r&&!!r.children&&"title"in r}function iv(r){return Do(r)?jsxRuntime.jsx(reactStately.Section,{items:r.children,title:r.title,"aria-label":r.title,children:e=>jsxRuntime.jsx(reactStately.Item,{textValue:e.label,children:e.label},e.id)},r.id):jsxRuntime.jsx(reactStately.Item,{textValue:r.label,children:r.label},r.id)}function se(){return bt.useCallback(r=>iv(r),[])}function Ao(r,e,t){let{direction:o}=reactAria.useLocale(),a=reactStately.useDraggableCollectionState({...r,collection:e.collection,selectionManager:e.selectionManager,isDisabled:!r.enableReorder,getItems:r.getItems||(s=>[...s].map(l=>{let p=e.collection.getItem(l);return utils.invariant(p,"Expected item to be defined."),{"text/plain":p.textValue}}))});reactAria.useDraggableCollection(r,a,t);let n=reactStately.useDroppableCollectionState({...r,collection:e.collection,selectionManager:e.selectionManager}),{collectionProps:i}=reactAria.useDroppableCollection({...r,keyboardDelegate:new reactAria.ListKeyboardDelegate({collection:e.collection,disabledKeys:e.disabledKeys,ref:t,orientation:r.orientation,layout:r.layout,direction:o}),dropTargetDelegate:new reactAria.ListDropTargetDelegate(e.collection,t)},n,t);return {collectionProps:i,dragState:a,dropState:n}}function yv(r,e){if(typeof r!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var o=t.call(r,e||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return (e==="string"?String:Number)(r)}function bv(r){var e=yv(r,"string");return typeof e=="symbol"?e:String(e)}function gv(r,e,t){return e=bv(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function Pl(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);e&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable})),t.push.apply(t,o);}return t}function wl(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Pl(Object(t),!0).forEach(function(o){gv(r,o,t[o]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):Pl(Object(t)).forEach(function(o){Object.defineProperty(r,o,Object.getOwnPropertyDescriptor(t,o));});}return r}function kl(r,e){var t={};for(var o in r)t[o]=e(r[o],o);return t}var vv=(r,e,t)=>{for(var o of Object.keys(r)){var a;if(r[o]!==((a=e[o])!==null&&a!==void 0?a:t[o]))return !1}return !0},x=r=>{var e=t=>{var o=r.defaultClassName,a=wl(wl({},r.defaultVariants),t);for(var n in a){var i,s=(i=a[n])!==null&&i!==void 0?i:r.defaultVariants[n];if(s!=null){var l=s;typeof l=="boolean"&&(l=l===!0?"true":"false");var p=r.variantClassNames[n][l];p&&(o+=" "+p);}}for(var[c,d]of r.compoundVariants)vv(c,a,r.defaultVariants)&&(o+=" "+d);return o};return e.variants=()=>Object.keys(r.variantClassNames),e.classNames={get base(){return r.defaultClassName.split(" ")[0]},get variants(){return kl(r.variantClassNames,t=>kl(t,o=>o.split(" ")[0]))}},e};var Sl=x({defaultClassName:"_6n12k9b _1yep5z6ls _1yep5z6lr _1yep5z6ic _1yep5z6la",variantClassNames:{isDropTarget:{true:"_1yep5z6140"},orientation:{vertical:"_1yep5z617q",horizontal:"_1yep5z617r"}},defaultVariants:{},compoundVariants:[]}),Il="_6n12k98 _1yep5z6lq _1yep5z6is _1yep5z6it _1yep5z6iu",Rl=x({defaultClassName:"_6n12k99 _1yep5z6ev _1yep5z6da _1yep5z6dv",variantClassNames:{isDisabled:{true:"_1yep5z6ey"}},defaultVariants:{},compoundVariants:[]}),Tl=x({defaultClassName:"_6n12k91 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kj _1yep5z6kk _1yep5z6kl _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6dy _1yep5z6eu _1yep5z6la _1yep5z6ld _1yep5z6lq _1yep5z6lp _1yep5z6ln _1yep5z6lk",variantClassNames:{isSelected:{},isFocused:{true:"_1yep5z6140 _1yep5z617w _1yep5z617u _1yep5z617x _1yep5z614g _1yep5z614h _1yep5z614i"},isHovered:{true:"_1yep5z6125",false:"_1yep5z6124"},isFirstChild:{true:"_6n12k95"},isLastChild:{true:"_6n12k96"},isDisabled:{true:"z9nup83 _1yep5z6111"}},defaultVariants:{},compoundVariants:[]}),Nl="_6n12k9f _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl",El="_6n12k90";var Ll=x({defaultClassName:"gukncs0",variantClassNames:{isVertical:{true:"gukncs1"},isSecondary:{true:"gukncs2"}},defaultVariants:{},compoundVariants:[]});var U=bt__default.default.forwardRef(({className:r,style:e,variant:t="primary",orientation:o="horizontal",UNSAFE_omitRole:a,elementType:n="div","data-block-id":i,"data-block-class":s,...l},p)=>{let{separatorProps:c}=reactAria.useSeparator({...l,orientation:o,elementType:n});return jsxRuntime.jsx(n,{...c,className:utils.classNames(Ll({isVertical:o==="vertical",isSecondary:t==="secondary"}),"BaselineUI-Separator",r),"data-orientation":o,"data-block-id":i,"data-block-class":s,style:e,role:a?void 0:c.role,ref:p})});U.displayName="Separator";function kv(r){return tokens.sprinkles.properties.has(r)}var E=bt__default.default.forwardRef(({elementType:r="div",children:e,...t},o)=>{let a=r,{sprinkleProps:n,domProps:i}=bt.useMemo(()=>{let s={},l={};for(let p in t)kv(p)?s[p]=t[p]:l[p]=t[p];return {sprinkleProps:s,domProps:l}},[t]);return jsxRuntime.jsx(a,{...i,className:utils.classNames(tokens.sprinkles(n),"BaselineUI-Box",i.className),ref:o,children:e})});E.displayName="Box";var Nr=bt__default.default.forwardRef(({item:r,isDisabled:e,isFocusVisible:t,isSelected:o,liProps:a,showSelectedIcon:n,description:i,descriptionProps:s,labelProps:l,isFocused:p,isPressed:c,_state:d},m)=>{utils.invariant(r.value&&Ye(r.value),"Item cannot be a section");let{icon:u,label:y}=r.value,{hoverProps:b,isHovered:f}=reactAria.useHover({isDisabled:e}),g=utils.filterTruthyValues({"data-selected":o,"data-disabled":e,"data-focused":p,"data-hovered":f,"data-pressed":c,"data-focus-visible":t,"data-selection-mode":d.selectionManager.selectionMode});return jsxRuntime.jsxs("li",{...reactAria.mergeProps(a,b,g),className:utils.classNames(Tl({isHovered:f,isFocused:t,isFirstChild:d.collection.getFirstKey()===r.key,isLastChild:d.collection.getLastKey()===r.key,isDisabled:e}),a.className,"BaselineUI-ListBox-Option"),style:a.style,ref:m,children:[jsxRuntime.jsxs(E,{display:"flex",alignItems:"center",gap:"lg",children:[n?jsxRuntime.jsx("span",{"aria-hidden":!0,style:{height:24,width:24},children:o?jsxRuntime.jsx(_24.CheckmarkIcon,{size:24}):null}):null,u?jsxRuntime.jsx(u,{size:24}):null,jsxRuntime.jsx("span",{...l,children:y})]}),i?jsxRuntime.jsx("span",{className:Rl({isDisabled:e}),...s,children:i}):null]})});Nr.displayName="DefaultRenderOption";var At=({dropState:r,orientation:e="vertical",dropIndicatorStyle:t,dropIndicatorClassName:o,renderDropIndicator:a=({isDropTarget:i,isHidden:s,dropIndicatorProps:l,orientation:p},c)=>s?null:jsxRuntime.jsx("li",{...l,ref:c,"data-drop-target":i,className:utils.classNames(Sl({isDropTarget:i,orientation:p}),"BaselineUI-DropIndicator",o),style:t}),...n})=>{let i=bt__default.default.useRef(null),{dropIndicatorProps:s,isHidden:l,isDropTarget:p}=reactAria.useDropIndicator(n,r,i);return a({dropIndicatorProps:{...s,role:"option"},isHidden:l,isDropTarget:p,orientation:e},i)};function Ze(r,e,t){return typeof r=="function"?r(e,t):r}function Bo(r,e,t){return typeof r=="function"?r(e,t):r}function Oo(r,e){return typeof r=="function"?r(e):r}function Dn(r,e){return typeof r=="function"?r(e):r}var Bl=({item:r,children:e,state:t,dragState:o,...a})=>{let{dragProps:n}=reactAria.useDraggableItem({key:r.key},o);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(At,{target:{type:"item",key:r.key,dropPosition:"before"},...a}),e(n),t.collection.getKeyAfter(r.key)==null&&jsxRuntime.jsx(At,{target:{type:"item",key:r.key,dropPosition:"after"},...a})]})};Bl.displayName="DraggableListOption";var Er=bt__default.default.forwardRef(({item:r,renderOption:e=(m,u,y)=>jsxRuntime.jsx(Nr,{item:m,liProps:u.optionProps,...u,ref:y}),showSelectedIcon:t,state:o,dragState:a,dropState:n,orientation:i,dropIndicatorStyle:s,dropIndicatorClassName:l,optionStyle:p,optionClassName:c},d)=>{let m=bt__default.default.useRef(null),u=reactAria.useOption({key:r.key},o,m),{value:y}=r;utils.invariant(y&&Ye(y),"ListSection should not be passed to ListOption");let b={isFocusVisible:u.isFocusVisible,isSelected:u.isSelected,isFocused:u.isFocused,isDisabled:u.isDisabled,isPressed:u.isPressed},f={style:Bo(p,y,b),className:Ze(c,y,b)};return a&&n?jsxRuntime.jsx(Bl,{orientation:i,state:o,item:r,dropState:n,dragState:a,dropIndicatorStyle:s,dropIndicatorClassName:l,children:g=>e(r,{...u,showSelectedIcon:t,_state:o,optionProps:{...reactAria.mergeProps(u.optionProps,g),...f}},L(m,d))}):e(r,{...u,showSelectedIcon:t,_state:o,optionProps:{...u.optionProps,...f}},L(m,d))});Er.displayName="Option";var Hl=({section:r,state:e,sectionClassName:t,sectionStyle:o,showSectionHeader:a,renderSectionHeader:n,withSectionHeaderPadding:i=!1,...s})=>{let l=bt__default.default.useRef(null),{itemProps:p,groupProps:c,headingProps:d}=reactAria.useListBoxSection({heading:a?n?.(r,l)||r.rendered:void 0,"aria-label":r["aria-label"]}),m=e.collection.getChildren?.(r.key);utils.invariant(m,"children must be defined");let{value:u}=r;utils.invariant(u&&Do(u),"section must be a ListSection");let y=typeof o=="function"?o(u):o,b=typeof t=="function"?t(u):t;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[r.key===e.collection.getFirstKey()?null:jsxRuntime.jsx(U,{UNSAFE_omitRole:!0}),jsxRuntime.jsxs("li",{...p,style:{...p.style,...y},className:utils.classNames(El,b,"BaselineUI-ListBox-Section"),children:[r.rendered&&a?n?.(r,l)||jsxRuntime.jsx(E,{...d,className:utils.classNames("BaselineUI-ListBox-SectionHeader",Nl),ref:l,paddingX:"lg",typography:"label.md.medium",color:"text.primary",paddingInlineStart:i?"5xl":"lg",paddingInlineEnd:"lg",children:r.rendered}):null,jsxRuntime.jsx("ul",{...c,children:[...m].map(f=>jsxRuntime.jsx(Er,{item:f,state:e,...s},f.key))})]})]})};function Ho({type:r="listbox",handle:e},t,o){let a=bt.useCallback(i=>r==="listbox"?o.current?.querySelector(`[data-key="${i}"][role="option"]`):o.current?.querySelector(`[data-key="${i}"][role="row"]`),[r,o]),n=bt.useCallback((i,s)=>{let l=a(i);l&&l?.scrollIntoView({block:"nearest",inline:"nearest",...s});},[a]);bt.useImperativeHandle(e,()=>({scrollIntoView:n,setFocusedKey:i=>{t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(i),n(i),a(i)?.focus();}}),[n,t.selectionManager,a]),granularHooks.useGranularEffect(()=>{let i=o.current?.getRootNode(),s=i&&In(i),l=t.selectionManager.focusedKey;s&&l&&n(l);},[t.selectionManager.focusedKey],[n,o]);}var gt=bt__default.default.createContext(null),An=bt__default.default.forwardRef(({className:r,layout:e="stack",orientation:t="vertical",showSelectedIcon:o=!0,style:a,renderOption:n,enableReorder:i=!1,"data-block-id":s,"data-block-class":l,renderDragPreview:p,onReorder:c,state:d,listBoxHandle:m,...u},y)=>{let b=bt__default.default.useRef(null),{direction:f}=reactAria.useLocale(),g=bt__default.default.useRef(null),{listBoxProps:v}=reactAria.useListBox({...u,shouldSelectOnPressUp:i,keyboardDelegate:new reactAria.ListKeyboardDelegate({collection:d.collection,ref:g,layout:e,orientation:t,direction:f,disabledKeys:d.disabledKeys})},d,g);Ho({handle:m},d,g);let{collectionProps:h,dragState:_,dropState:C}=Ao({...u,onReorder:c,layout:e,orientation:t,enableReorder:i,preview:b},d,g),{isFocusVisible:P,isFocused:w,focusProps:z}=reactAria.useFocusRing(),k=utils.filterTruthyValues({"data-block-id":s,"data-block-class":l,"data-layout":e,"data-empty":d.collection.size===0,"data-focused":w,"data-focus-visible":P,"data-orientation":t});return jsxRuntime.jsxs("ul",{...reactAria.mergeProps(v,z,k,h),className:utils.classNames(Il,"BaselineUI-ListBox",r),style:a,ref:L(y,g),children:[[...d.collection].map(T=>{let R={key:T.key,state:d,dragState:_,dropState:C,renderOption:n,renderDropIndicator:u.renderDropIndicator,renderSectionHeader:u.renderSectionHeader,showSelectedIcon:o,orientation:t,dropIndicatorStyle:u.dropIndicatorStyle,dropIndicatorClassName:u.dropIndicatorClassName,optionStyle:u.optionStyle,optionClassName:u.optionClassName,sectionClassName:u.sectionClassName,sectionStyle:u.sectionStyle,showSectionHeader:u.showSectionHeader,withSectionHeaderPadding:u.withSectionHeaderPadding};return T.type==="section"?bt.createElement(Hl,{...R,key:T.key,section:T}):bt.createElement(Er,{...R,key:T.key,item:T})}),p?jsxRuntime.jsx(reactAria.DragPreview,{ref:b,children:p}):null]})});An.displayName="ListBoxCore";var Ul=bt__default.default.forwardRef((r,e)=>{let t=se(),o=reactStately.useListState({...r,children:t});return jsxRuntime.jsx(An,{...r,ref:e,state:o})});Ul.displayName="ListBoxStandalone";var de=bt__default.default.forwardRef((r,e)=>{let t=bt.useContext(gt);return bt.useEffect(()=>{if(!r.items&&!t)throw new Error("ListBox: You must provide a `state` or `items` prop to render the listbox.")},[r.items,t]),t?jsxRuntime.jsx(An,{...r,ref:e,state:t}):jsxRuntime.jsx(Ul,{...r,ref:e})});de.displayName="ListBox";var $o="uf19bsf _1yep5z6la",ql=x({defaultClassName:"uf19bs0 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6f5 _1yep5z6lp _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6lk",variantClassNames:{size:{xxs:"uf19bs1",xs:"uf19bs2",sm:"uf19bs3",md:"uf19bs4",lg:"uf19bs5 _1yep5z6wo _1yep5z6wp _1yep5z6wq _1yep5z6xc _1yep5z6xd _1yep5z6xe _1yep5z6y0 _1yep5z6y1 _1yep5z6y2 _1yep5z6yo _1yep5z6yp _1yep5z6yq"},isHovered:{true:"uf19bs6"},isDisabled:{true:"uf19bs7 _1yep5z611a"},isFocusVisible:{true:"uf19bs8"},variant:{primary:"uf19bs9",secondary:"uf19bsa",tertiary:"uf19bsb",ghost:"uf19bsc",toolbar:"uf19bsd _1yep5z6x6 _1yep5z6x7 _1yep5z6x8 _1yep5z6xu _1yep5z6xv _1yep5z6xw _1yep5z6yi _1yep5z6yj _1yep5z6yk _1yep5z6z6 _1yep5z6z7 _1yep5z6z8",popover:"uf19bse _1yep5z6pr _1yep5z6ps _1yep5z6pt _1yep5z6nf _1yep5z6ng _1yep5z6nh _1yep5z6m6 _1yep5z6m7 _1yep5z6m8 _1yep5z6oi _1yep5z6oj _1yep5z6ok _1yep5z6vr _1yep5z6vs _1yep5z6vt"}},defaultVariants:{},compoundVariants:[[{variant:"toolbar",isHovered:!0,isFocusVisible:!1},"_1yep5z61o9"],[{variant:"primary",isHovered:!0,isFocusVisible:!1},"_1yep5z61o9"],[{variant:"secondary",isHovered:!0,isFocusVisible:!1},"_1yep5z61nc"],[{variant:"tertiary",isHovered:!0,isFocusVisible:!1},"_1yep5z61nb _1yep5z61o9"],[{variant:"ghost",isHovered:!0,isFocusVisible:!1},"_1yep5z61nh"],[{variant:"popover",isHovered:!0,isFocusVisible:!1},"_1yep5z61q6 _1yep5z61tx _1yep5z61u1 _1yep5z61ty"],[{variant:"ghost",isDisabled:!1},"_1yep5z61ng"],[{variant:"popover",size:"lg"},"_1yep5z61io _1yep5z61ip _1yep5z61iq _1yep5z61jc _1yep5z61jd _1yep5z61je _1yep5z61k0 _1yep5z61k1 _1yep5z61k2 _1yep5z61ko _1yep5z61kp _1yep5z61kq"]]});var Lr=bt__default.default.createContext({state:null,overlayTriggerAria:{triggerProps:{},overlayProps:{}},triggerRef:void 0}),Oe=({children:r,...e})=>{let t=bt__default.default.useRef(null),o=reactStately.useOverlayTriggerState(e),a=reactAria.useOverlayTrigger(e,o),n=bt.useMemo(()=>({state:o,overlayTriggerAria:a,triggerRef:t}),[o,a]);return jsxRuntime.jsx(Lr.Provider,{value:n,children:r})};var Gl=x({defaultClassName:"_1gzftth2",variantClassNames:{placement:{bottom:"_1gzftth3",top:"_1gzftth4",right:"_1gzftth5",left:"_1gzftth6"}},defaultVariants:{},compoundVariants:[]}),Wl=x({defaultClassName:"_1gzftth7",variantClassNames:{placement:{bottom:"_1gzftth8",top:"_1gzftth9",right:"_1gzfttha",left:"_1gzftthb"}},defaultVariants:{},compoundVariants:[]}),Xl="_1gzftth1 _1yep5z6is _1yep5z6it _1yep5z6iu",Yl="_1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6k4 _1yep5z6k5 _1yep5z6k6 _1yep5z6d7",Zl="_1gzftthd",Jl="_1gzftthc",Ql="var(--_1gzftth0)";function GM(r){return r.closest(".BaselineUI-Portal")||r.closest(".BaselineUI-Popover-Content")}function ep(r){return typeof r=="object"&&typeof r.left=="number"&&typeof r.top=="number"&&(typeof r.width=="number"||r.width===void 0)&&(typeof r.height=="number"||r.height===void 0)}var Uo=bt__default.default.createContext({isSelected:!1,ref:void 0}),je=({children:r,anchorRect:e})=>{let{state:t,overlayTriggerAria:o,triggerRef:a}=bt.useContext(Lr);utils.invariant(t,"PopoverTrigger must be used within a Popover");let{triggerProps:n}=o,i=bt.useMemo(()=>({...n,isSelected:t.isOpen,ref:a}),[n,t.isOpen,a]);return utils.invariant(!e&&r||e&&!r,"Either one of anchorRect or children has to be provided."),utils.invariant(!e||ep(e),"If provided, the anchorRect prop must be an object with left and top number values, and optionally width and height."),jsxRuntime.jsx(Uo.Provider,{value:i,children:e?jsxRuntime.jsx("div",{className:utils.classNames(Zl,"BaselineUI-PopoverTrigger-Hidden"),style:e,ref:a,tabIndex:-1},JSON.stringify(e)):r})};var qo=({label:r,tooltip:e})=>({tooltipProps:bt.useMemo(()=>{let o={size:"sm",variant:"inverse",text:r,includeArrow:!1,placement:"bottom start",offset:4};if(typeof e=="object")return {...o,...e};if(e)return o},[r,e])});function Ko({tooltip:r,"aria-label":e,"aria-labelledby":t},o){let[a,n]=bt.useState(e||"");bt.useEffect(()=>{if(t){let l=fe(o.current).querySelector(`#${t}`);l&&n(l.textContent||"");}else e&&n(e);},[t,o,e]);let{tooltipProps:i}=qo({label:a,tooltip:r});return {tooltipProps:i}}var Go=r=>{let e=bt__default.default.useRef(null),{ref:t,...o}=bt.useContext(Uo)||{},{buttonProps:a,isPressed:n}=reactAria.useButton({...r,...o},e),{isFocusVisible:i,isFocused:s,focusProps:l}=reactAria.useFocusRing(),{hoverProps:p,isHovered:c}=reactAria.useHover({isDisabled:r.isDisabled});return {buttonProps:Xe(a,l,p),isPressed:n,ref:L(e,t||null),isFocusVisible:i,isFocused:s,isHovered:c,uiStateOptions:{isHovered:c,isFocused:s,isPressed:n,isDisabled:r.isDisabled,isFocusVisible:i}}},Wo=(r,e)=>{let t=bt__default.default.useRef(null),{ref:o,...a}=bt.useContext(Uo)||{},{buttonProps:n,isPressed:i}=reactAria.useToggleButton({...r,...a},e,t);(n.role==="radio"||n.role==="checkbox")&&(n["aria-pressed"]=void 0);let{isFocusVisible:s,isFocused:l,focusProps:p}=reactAria.useFocusRing(),{hoverProps:c,isHovered:d}=reactAria.useHover({isDisabled:r.isDisabled});return {buttonProps:Xe(n,p,c),isPressed:i,ref:L(t,o||null),isFocusVisible:s,isFocused:l,isHovered:d,uiStateOptions:{isHovered:d,isFocused:l,isPressed:i,isDisabled:r.isDisabled,isFocusVisible:s,isSelected:e.isSelected}}};var Xo=x({defaultClassName:"oom8bs0 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6lp _1yep5z6lq _1yep5z6lk _1yep5z6dy _1yep5z6la",variantClassNames:{variant:{primary:"oom8bs1",secondary:"oom8bs2",tertiary:"oom8bs3",ghost:"oom8bs4",popover:"oom8bs5",toolbar:"oom8bs6",success:"oom8bs7",warning:"oom8bs8",error:"oom8bs9"},isDisabled:{true:"oom8bsa"},isFocusVisible:{true:"oom8bsb"},isHovered:{true:"oom8bsc"},size:{sm:"oom8bsd",md:"oom8bse",lg:"oom8bsf"}},defaultVariants:{},compoundVariants:[[{variant:"primary",isHovered:!0},"oom8bsg"],[{variant:"secondary",isHovered:!0},"oom8bsh"],[{variant:"tertiary",isHovered:!0},"oom8bsi"],[{variant:"popover",isHovered:!0},"oom8bsj"],[{variant:"ghost",isHovered:!0},"oom8bsk"],[{variant:"success",isHovered:!0},"oom8bsl"],[{variant:"warning",isHovered:!0},"oom8bsm"],[{variant:"error",isHovered:!0},"oom8bsn"],[{variant:"primary",isFocusVisible:!0},"oom8bso"],[{variant:"tertiary",isFocusVisible:!0},"oom8bsp"],[{variant:"success",isFocusVisible:!0},"oom8bsq"],[{variant:"warning",isFocusVisible:!0},"oom8bsr"],[{variant:"error",isFocusVisible:!0},"oom8bss"]]}),On=x({defaultClassName:"oom8bst _1yep5z6la",variantClassNames:{isDisabled:{true:"oom8bsu"},isFocusVisible:{true:"oom8bsv"},isHovered:{true:"_1yep5z6115"},variant:{primary:"_1yep5z611c",secondary:"_1yep5z6118",tertiary:"_1yep5z611d",ghost:"_1yep5z611d",popover:"_1yep5z6118",toolbar:"_1yep5z6118",success:"_1yep5z611b",warning:"_1yep5z611b",error:"_1yep5z611b"}},defaultVariants:{},compoundVariants:[[{variant:"tertiary",isHovered:!0},"_1yep5z61nf"],[{variant:"ghost",isHovered:!0},"_1yep5z61nh"],[{variant:"tertiary",isFocusVisible:!0},"_1yep5z61nf"],[{variant:"secondary",isDisabled:!0},"_1yep5z61nd"],[{variant:"tertiary",isDisabled:!0},"_1yep5z61nd"],[{variant:"ghost",isDisabled:!0},"_1yep5z61nd"],[{variant:"popover",isDisabled:!0},"_1yep5z61nd"],[{variant:"toolbar",isDisabled:!0},"_1yep5z61nd"]]});var kh={sm:16,md:20,lg:24},G=bt__default.default.forwardRef(({label:r,style:e,className:t,iconStart:o,iconEnd:a,variant:n="primary",elementType:i="button",isDisabled:s,size:l="sm","data-block-id":p,"data-block-class":c,...d},m)=>{let{buttonProps:u,isPressed:y,ref:b,isFocusVisible:f,isFocused:g,isHovered:v,uiStateOptions:h}=Go({...d,elementType:i,isDisabled:s}),_=kh[l],C=utils.filterTruthyValues({"data-block-id":p,"data-block-class":c,"data-disabled":s,"data-focused":g,"data-focus-visible":f,"data-hovered":v,"data-pressed":y});return jsxRuntime.jsxs(i,{...reactAria.mergeProps(u,C),className:utils.classNames(Xo({isDisabled:!!s,isFocusVisible:f,isHovered:v,variant:n,size:l}),"BaselineUI-ActionButton",typeof t=="function"?t(h):t),style:typeof e=="function"?e(h):e,ref:L(m,b),children:[!!o&&jsxRuntime.jsx(o,{size:_,className:On({variant:n,isDisabled:s,isFocusVisible:f,isHovered:v})}),r,!!a&&jsxRuntime.jsx(a,{size:_,className:On({variant:n,isDisabled:s,isFocusVisible:f,isHovered:v})}),n==="popover"&&jsxRuntime.jsx(_8.CaretDownIcon,{size:8,className:$o})]})});G.displayName="ActionButton";var Yo=bt__default.default.forwardRef(({className:r,style:e,node:t,"data-block-id":o,"data-block-class":a,...n},i)=>{let s=bt__default.default.useRef(null);bt__default.default.useEffect(()=>{let c=s.current;return c?.append(t),()=>{c?.contains(t)&&t.remove();}},[t]);let{pressProps:l,isPressed:p}=reactAria.usePress(n);return jsxRuntime.jsx("div",{...l,className:r,style:e,"data-block-id":o,"data-block-class":a,"data-pressed":p,"data-testid":"dom-node-renderer",ref:L(i,s)})});Yo.displayName="DomNodeRenderer";var ip="_14uvjig0 z9nup81",sp="_14uvjig7",lp="_14uvjig3",pp=x({defaultClassName:"_14uvjig4",variantClassNames:{isDisabled:{true:"_14uvjig5"},hasNumberInput:{false:"_14uvjig6"}},defaultVariants:{},compoundVariants:[]}),cp=x({defaultClassName:"_14uvjigf _14uvjig1",variantClassNames:{active:{true:"_14uvjigg _14uvjig2"},isDisabled:{true:"_14uvjigh"},isReadOnly:{true:"_14uvjigi"},isFocusVisible:{true:"_14uvjigj _14uvjig2"},isHovered:{true:"_14uvjigk _14uvjig2"}},defaultVariants:{},compoundVariants:[]}),dp="_14uvjige _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kd _1yep5z6ke _1yep5z6kf",up="_14uvjig8",mp=x({defaultClassName:"_14uvjig9 _14uvjig1",variantClassNames:{active:{true:"_14uvjig2"},isFocusVisible:{true:"_14uvjig2"},isDisabled:{true:"_14uvjigc"},isHovered:{true:"_14uvjig2"}},defaultVariants:{},compoundVariants:[]});var Ot=x({defaultClassName:"nrh1ehx",variantClassNames:{isDisabled:{true:"nrh1ehy"},hasError:{true:"nrh1ehz"},labelPosition:{start:"nrh1eh10",top:"nrh1eh11"}},defaultVariants:{},compoundVariants:[]}),Zo=x({defaultClassName:"nrh1eho",variantClassNames:{isDisabled:{true:"nrh1ehp"},labelPosition:{top:"nrh1ehq",start:"nrh1ehr"}},defaultVariants:{},compoundVariants:[]}),jt=x({defaultClassName:"nrh1ehs",variantClassNames:{validationState:{valid:"nrh1eht",error:"nrh1ehu",warning:"nrh1ehv"},isReadOnly:{true:"nrh1ehw"}},defaultVariants:{},compoundVariants:[]}),Je="nrh1eh3",Qe=x({defaultClassName:"nrh1eh4",variantClassNames:{labelPosition:{top:"nrh1eh5",start:"nrh1eh6"},hasMessage:{true:"nrh1eh7"}},defaultVariants:{},compoundVariants:[[{labelPosition:"start",hasMessage:!1},"nrh1eh8"]]}),et=x({defaultClassName:"nrh1eh0",variantClassNames:{labelPosition:{top:"z9nup81",start:"nrh1eh2 z9nup82"}},defaultVariants:{},compoundVariants:[]}),Ft=x({defaultClassName:"nrh1eh9 z9nup82",variantClassNames:{validationState:{valid:"nrh1eha",error:"nrh1ehb",warning:"nrh1ehc"},isHovered:{true:"nrh1ehd"},isFocused:{true:"nrh1ehe"},isDisabled:{true:"nrh1ehf"},variant:{primary:"nrh1ehg",ghost:"nrh1ehh"},isReadOnly:{true:"nrh1ehi"}},defaultVariants:{},compoundVariants:[[{variant:"ghost",isHovered:!0,isFocused:!1,validationState:"valid"},"nrh1ehj"],[{variant:"ghost",isFocused:!1,isHovered:!1,validationState:"valid"},"nrh1ehk"],[{isHovered:!0,validationState:"valid",isDisabled:!1,isReadOnly:!1,isFocused:!1,variant:"primary"},"nrh1ehl"],[{isHovered:!0,validationState:"warning",isDisabled:!1,isReadOnly:!1,isFocused:!1},"nrh1ehm"],[{isReadOnly:!0,variant:"primary",isFocused:!1},"nrh1ehn"]]});function Ne({description:r,errorMessageProps:e,descriptionProps:t,warningMessage:o,errorMessage:a,labelPosition:n,isDisabled:i}){return r?jsxRuntime.jsx("div",{...t,className:Ot({isDisabled:i,labelPosition:n}),children:r}):a?jsxRuntime.jsx("div",{...e,className:Ot({hasError:!0,labelPosition:n}),children:a}):o?jsxRuntime.jsx("div",{className:Ot({isDisabled:i,labelPosition:n}),children:o}):null}var fp=x({defaultClassName:"_1lnwne1 z9nup82",variantClassNames:{isHoveredOrFocused:{true:"_1lnwne2"},isInteractive:{false:"z9nup83"}},defaultVariants:{},compoundVariants:[[{isHoveredOrFocused:!0,isInteractive:!0},"_1lnwne4"]]}),yp="_1lnwne0";var bp=x({defaultClassName:"_1jwycy80",variantClassNames:{placement:{bottom:"_1jwycy81",left:"_1jwycy82",right:"_1jwycy83",top:"_1jwycy84"},variant:{default:"_1jwycy85",inverse:"_1jwycy86"}},defaultVariants:{},compoundVariants:[]}),gp=x({defaultClassName:"_1jwycy87 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn",variantClassNames:{size:{md:"_1yep5z63u _1yep5z63v _1yep5z63w _1yep5z61i _1yep5z61j _1yep5z61k _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z6e7",sm:"_1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6dv"},variant:{default:"_1yep5z6g9 _1yep5z6ez",inverse:"_1yep5z6d7 _1yep5z6g1 _1yep5z6eu"}},defaultVariants:{},compoundVariants:[]});function Jo({placement:r}){let e=bt.useMemo(()=>{switch(r){case"top":return {x:0,y:-4};case"bottom":return {x:0,y:4};case"left":return {x:-4,y:0};case"right":return {x:4,y:0};default:return {x:0,y:4}}},[r]);return {transitionProps:{initial:{opacity:0,transform:`translate3d(${e.x}px, ${e.y}px, 0) scale(0.98)`},animate:{opacity:1,transform:"translate3d(0, 0, 0) scale(1)"},transition:{ease:"easeOut"}}}}var Vn=bt__default.default.forwardRef(({children:r,state:e,overlayProps:t,arrowProps:o,placement:a,variant:n,size:i,tooltipProps:s,includeArrow:l},p)=>{let{tooltipProps:c}=reactAria.useTooltip({isOpen:e.isOpen},e),d=a==="center"?"bottom":a,{transitionProps:m}=Jo({placement:a});return jsxRuntime.jsxs(react.motion.span,{...reactAria.mergeProps(t,m),ref:p,"data-placement":d,children:[l?jsxRuntime.jsx("div",{className:bp({placement:d,variant:n}),...o}):null,jsxRuntime.jsx("div",{...reactAria.mergeProps(c,s),className:gp({variant:n,size:i}),children:r})]})});Vn.displayName="TooltipContent";var $n=bt__default.default.createContext(void 0),Qo=({portalContainer:r,children:e})=>jsxRuntime.jsx($n.Provider,{value:r,children:e});Qo.displayName="PortalContainerProvider";var ea="var(--lz9qs1)",_p="var(--lz9qs0)";function Cp({ref:r,onIntersect:e,isDisabled:t,threshold:o,rootMargin:a,root:n}){let i=bt__default.default.useRef(null);bt.useEffect(()=>{if(t){i.current?.disconnect(),i.current=null;return}i.current=new IntersectionObserver(([s])=>{e(s);},{root:n?.current,rootMargin:a,threshold:o});},[e,t,n,a,o]),bt.useEffect(()=>{let{current:s}=i;return r.current&&s?.observe(r.current),()=>s?.disconnect()},[r]);}function xp({ref:r,onResize:e,isDisabled:t}){let o=bt__default.default.useRef(null),[a,n]=bt__default.default.useState();return bt__default.default.useEffect(()=>{if(t){o.current?.disconnect(),o.current=null;return}o.current=new ResizeObserver(([i])=>{n(i.contentRect),e?.(i);});},[e,t,n]),bt__default.default.useEffect(()=>{let{current:i}=o;return r.current&&i?.observe(r.current),()=>i?.disconnect()},[r]),{size:a}}function Ht({src:r,alt:e}){let[t,o]=bt.useState(!1),[a,n]=bt.useState(!1),[i,s]=bt.useState(!1),l=()=>{o(!0),s(!1);},p=()=>{n(!0),s(!1);};return bt.useEffect(()=>{if(!r)return;s(!0);let c=new Image;return c.src=r,c.addEventListener("load",l),c.addEventListener("error",p),()=>{c.removeEventListener("load",l),c.removeEventListener("error",p);}},[r]),{isLoaded:t,hasError:a,isLoading:i,imgProps:{src:t?r:void 0,alt:e}}}function ra(){let r=bt.useRef(!0);return bt.useEffect(()=>{r.current=!1;},[]),r.current}var Pp="SET_STATE",oa="UNDO",aa="REDO",Uh=(r,e)=>{let{past:t,present:o,future:a}=r;switch(e.type){case Pp:return {past:[...t,o],present:e.data,future:[]};case oa:return {past:t.slice(0,t?.length-1),present:t[t?.length-1],future:[o,...a]};case aa:return {past:[...t,o],present:a[0],future:a.slice(1)};default:throw new Error("Invalid action type")}},wp=(r={},{isDisabled:e,onAction:t})=>{let o=ra(),[a,n]=bt.useReducer(Uh,{past:[],present:r,future:[]}),{past:i,present:s,future:l}=a,p=b=>{n({type:Pp,data:b});},c=bt.useRef(),d=()=>{c.current=oa,n({type:oa});},m=()=>{c.current=aa,n({type:aa});},u=!!i?.length,y=!!l?.length;return granularHooks.useGranularEffect(()=>{(c.current===oa||c.current===aa)&&(t?.(s,c.current),c.current=void 0);},[s],[t,o]),{state:s,push:e?()=>{}:p,undo:e?()=>{}:d,redo:e?()=>{}:m,pastStates:i,futureStates:l,canUndo:u,canRedo:y}};var qn=bt__default.default.createContext({messages:{},shouldLogMissingMessages:!0,hasMissingErrorLoggedFor:{current:new Set},setLang:()=>{}}),Ip=({children:r,messages:e={},shouldLogMissingMessages:t=!0,...o})=>{let a=bt.useRef(new Set),[n,i]=bt.useState(o.locale||"");bt.useEffect(()=>{a.current.clear();},[n,o.locale]);let s=bt__default.default.useMemo(()=>({messages:e,shouldLogMissingMessages:t,hasMissingErrorLoggedFor:a,setLang:i}),[e,t,i]);return jsxRuntime.jsx(reactAria.I18nProvider,{...o,children:jsxRuntime.jsx(qn.Provider,{value:s,children:r})})};Ip.displayName="I18nProvider";function B(r){let{messages:e,shouldLogMissingMessages:t,hasMissingErrorLoggedFor:o,setLang:a}=bt.useContext(qn);bt.useEffect(()=>{!r&&Yh__default.default(e)&&console.warn("BUI \u{1F30D}: No messages object provided and no messages found in the `I18nProvider`. Please provide a messages object to the `useI18n` hook.");},[r,e]);let n=bt.useMemo(()=>r?utils.cleanKeyFromGlobImport(r):e,[r,e]),i=reactAria.useMessageFormatter(n),s=reactAria.useLocale();bt.useEffect(()=>{a(s.locale);},[s.locale,a]);let l=bt.useCallback(c=>{t&&!o.current.has(c)&&(console.log(`BUI \u{1F30D}: Translation not found for key: \`${c}\` for locale: \`${s.locale}\`. The default message, i.e. \`${c}\`, will be used instead.`),o.current.add(c));},[o,s.locale,t]),p=bt.useCallback((c,d)=>{if(typeof c=="object")try{return i(c.id,d)}catch{return l(c.id),c.defaultMessage||c.id}else try{return i(c,d)}catch{return l(c),c}},[i,l]);return bt.useMemo(()=>({formatMessage:p,locale:s}),[p,s])}var K=r=>r;function Y8(r,e,t){let o=bt__default.default.useRef(null);return bt__default.default.useEffect(()=>{if(r)return o.current=new MutationObserver(t),o.current.observe(r,e),()=>{o.current&&o.current.disconnect();}},[r,e,t]),o.current}function Lp(r,e){let[t,o]=bt.useState(()=>{try{let n=window.localStorage.getItem(r);return n?JSON.parse(n):e}catch(n){return console.log(n),e}});return [t,n=>{try{let i=n instanceof Function?n(t):n;o(i),window.localStorage.setItem(r,JSON.stringify(i));}catch(i){console.log(i);}}]}function oA({ref:r,onSelectionChange:e,onSelectionEnd:t,isDisabled:o}){let a=bt__default.default.useRef(null);reactAria.usePress({ref:r,isDisabled:o,onPressEnd(){let i=te(r.current).getSelection();i&&r.current?.contains(i.anchorNode)&&t?.(i);},onPressStart(){let n=te(r.current);a.current=n.getSelection(),a.current&&a.current.removeAllRanges();}}),bt.useEffect(()=>{let n=r.current;if(!n||o)return;function i(){let p=te(n).getSelection();p&&r.current?.contains(p.anchorNode)&&e(p);}let s=fe(n);return s.addEventListener("selectionchange",i),()=>{s.removeEventListener("selectionchange",i);}},[r,e,o]);}function Ee(r){let e=bt.useCallback(()=>{let a=te(r??typeof window>"u"?void 0:document.body),n=a.matchMedia(tokens.queries.tablet);return a.matchMedia(tokens.queries.desktop).matches?"desktop":n.matches?"tablet":"mobile"},[r]),[t,o]=bt__default.default.useState(e);return Se(()=>{let a=te(r),n=()=>{o(e());};return a.addEventListener("resize",n),n(),()=>{a.removeEventListener("resize",n);}},[r,e]),t}var c_=typeof window<"u";function Kn(){return c_?document.body:null}var vt=bt__default.default.createContext({container:null,portalContainer:null,shouldContainOverlays:!1,isContainerPositioned:!1}),d_=({children:r,container:e=Kn(),portalContainer:t,shouldContainOverlays:o="auto"})=>{let a=Ee(),n=bt.useMemo(()=>e===Kn()||o==="never"?!1:o==="always"?!0:a!=="mobile",[o,a,e]),[i,s]=bt.useState(!1),l=ra();bt.useEffect(()=>{if(!e||l)return;let d=te(e).getComputedStyle(e),m=!!d.position&&d.position!=="static";s(m);let u=e.getBoundingClientRect();(u.width===0||u.height===0)&&console.error("FrameProvider: container does not have a width or height. Please ensure that the container is visible and has a width and height.");function y({width:f,height:g}){e&&dynamic.setElementVars(e,{[_p]:f,[ea]:g});}let b=new ResizeObserver(f=>{for(let g of f)y({width:`${g.contentRect.width}px`,height:`${g.contentRect.height}px`});});return n&&(y({width:`${u.width}px`,height:`${u.height}px`}),b.observe(e)),e.dataset.shouldContainOverlays=n.toString(),()=>{b.disconnect(),y({width:"",height:""}),e.dataset.shouldContainOverlays="";}},[e,l,n]);let p=bt.useMemo(()=>({container:e,portalContainer:t||e||Kn(),shouldContainOverlays:n,isContainerPositioned:i}),[e,t,n,i]);return jsxRuntime.jsx(vt.Provider,{value:p,children:jsxRuntime.jsx(Qo,{portalContainer:p.portalContainer||void 0,children:r})})};function ye(r){let e=bt.useContext($n),{portalContainer:t}=bt.useContext(vt);return r||e||t||void 0}var Op=x({defaultClassName:"z9nup84",variantClassNames:{size:{xs:"z9nup85",sm:"z9nup86"}},defaultVariants:{},compoundVariants:[]});var jp="z9nup80",Vt="z9nup83",Fp="z9nup87";function Gn(r=typeof window>"u"?void 0:window){let[e,t]=bt.useState("light"),[o,a]=bt.useState(!1),[n,i]=bt.useState(!1),[s,l]=bt.useState(!1);return bt.useEffect(()=>{if(!r)return;let p=r.matchMedia("(prefers-color-scheme: dark)"),c=d=>{t(d.matches?"dark":"light");};return p.matches&&t("dark"),p.addEventListener("change",c),()=>{p.addEventListener("change",c);}},[r]),bt.useEffect(()=>{if(!r)return;let p=r.matchMedia("(prefers-contrast: more)"),c=d=>{a(d.matches);};return a(p.matches),p.addEventListener("change",c),()=>{p.addEventListener("change",c);}},[r]),bt.useEffect(()=>{if(!r)return;let p=r.matchMedia("(prefers-reduced-motion: reduce)"),c=d=>{i(d.matches);};return p.matches&&i(!0),p.addEventListener("change",c),()=>{p.addEventListener("change",c);}},[r]),bt.useEffect(()=>{if(!r)return;let p=r.matchMedia("(prefers-reduced-transparency: reduce)"),c=d=>{l(d.matches);};return p.matches&&l(!0),p.addEventListener("change",c),()=>{p.addEventListener("change",c);}},[r]),{colorScheme:e,highContrast:o,reducedMotion:n,transparency:s}}var $t=bt.createContext({theme:tokens.lightTheme,setTheme:()=>{},shouldHandleVirtualKeyboard:!0});var Hp="var(--hj25q10)";var sa={LIGHT:{name:"light",theme:tokens.lightTheme},DARK:{name:"dark",theme:tokens.darkTheme}},la=bt__default.default.forwardRef(({theme:r="system",children:e,setTheme:t,onThemeChange:o,className:a,style:n,UNSAFE_domProps:i,"data-block-id":s,"data-block-class":l,reducedMotion:p="user",shouldHandleVirtualKeyboard:c=!0},d)=>{let{direction:m}=reactAria.useLocale(),{colorScheme:u,reducedMotion:y,highContrast:b,transparency:f}=Gn(),{name:g,theme:v}=bt.useMemo(()=>{switch(r){case"system":return u==="light"?sa.LIGHT:sa.DARK;case"light":return sa.LIGHT;case"dark":return sa.DARK;default:return {name:"custom",theme:r}}},[u,r]),h=Ee(),_={"data-theme":g,"data-block-id":s,"data-block-class":l,"data-reduced-motion":p==="user"?y:p==="always","data-high-contrast":b,"data-transparency":f,"data-device":h},C=bt.useMemo(()=>({theme:v,setTheme:P=>{t?.(P),o?.(P);},shouldHandleVirtualKeyboard:c}),[v,t,o,c]);return bt.useEffect(()=>{t&&console.warn("ThemeProvider: The `setTheme` prop is deprecated and will be removed in a future version of Baseline UI. Use the `onThemeChange` prop instead.");},[t]),jsxRuntime.jsx($t.Provider,{value:C,children:jsxRuntime.jsx(react.MotionConfig,{reducedMotion:p,children:jsxRuntime.jsx("div",{...reactAria.mergeProps(i,_),className:utils.classNames(jp,"BaselineUI-ThemeProvider",a),style:{...dynamic.assignInlineVars(tokens.themeVars,v),...dynamic.assignInlineVars({[Hp]:m==="rtl"?"-1":"1"}),...n},ref:d,children:e})})})});la.displayName="ThemeProvider";function rB(){react.MotionGlobalConfig.skipAnimations=!0;}function oB(){react.MotionGlobalConfig.skipAnimations=!1;}var be=bt__default.default.forwardRef(({className:r,style:e,children:t,"data-block-id":o,"data-block-class":a,portalContainer:n,...i},s)=>{let{theme:l}=bt.useContext($t),p=ye();return jsxRuntime.jsx(reactAria.Overlay,{...i,portalContainer:n??p,children:jsxRuntime.jsx(la,{ref:s,theme:l,style:e,className:utils.classNames("BaselineUI-Portal",r),"data-block-id":o,"data-block-class":a,children:t})})});be.displayName="Portal";var ne=bt__default.default.forwardRef(({children:r,placement:e="bottom",delay:t=1e3,closeDelay:o=500,variant:a="default",size:n="md",includeArrow:i=!0,portalContainer:s,className:l,style:p,"data-block-id":c,"data-block-class":d,...m},u)=>{let y=bt__default.default.useRef(null),b=bt__default.default.useRef(null),f=!m.text||m.isDisabled,g=reactStately.useTooltipTriggerState({...m,delay:t,closeDelay:o,isDisabled:f}),{triggerProps:v,tooltipProps:h}=reactAria.useTooltipTrigger({...m,isDisabled:f,delay:t,closeDelay:o},g,y),_=ye(s),{overlayProps:C,arrowProps:P,placement:w,updatePosition:z}=reactAria.useOverlayPosition({arrowSize:i?13:0,targetRef:y,arrowBoundaryOffset:i?8:0,offset:i?12:2,overlayRef:b,placement:e,isOpen:g.isOpen,...m});return Cp({ref:b,threshold:1,onIntersect:z,isDisabled:!g.isOpen}),xp({ref:y,onResize:z,isDisabled:!g.isOpen}),jsxRuntime.jsxs(focus.FocusableProvider,{...v,ref:y,children:[r,g.isOpen?jsxRuntime.jsx(be,{disableFocusManagement:!0,portalContainer:_,className:l,style:p,"data-block-id":c,"data-block-class":d,children:jsxRuntime.jsx(Vn,{ref:L(u,b),state:g,arrowProps:P,overlayProps:C,placement:w,tooltipProps:h,variant:a,size:n,includeArrow:i,children:m.text})}):null]})});ne.displayName="Tooltip";var pa=bt__default.default.forwardRef(({elementType:r,children:e,...t},o)=>{let a=re(o),{focusableProps:n}=focus.useFocusable(t,a);return jsxRuntime.jsx(r??"div",{ref:a,...n,children:e})});pa.displayName="Focusable";var F_={xxs:8,xs:12,sm:16,md:20,lg:24},A=bt__default.default.forwardRef((r,e)=>{let t=re(e),{tooltipProps:o}=Ko(r,t);return o?jsxRuntime.jsx(ne,{...o,children:jsxRuntime.jsx(Yn,{...r,ref:t})}):jsxRuntime.jsx(Yn,{...r,ref:t})});A.displayName="ActionIconButton";var Yn=bt__default.default.forwardRef(({className:r,style:e,icon:t,size:o="md",variant:a="primary",UNSAFE_NON_INTERACTIVE:n,elementType:i=n?"div":"button",...s},l)=>{let p=s["aria-label"],c=s["aria-labelledby"];bt.useEffect(()=>{!p&&!c&&console.warn("An `ActionIconButton` requires an aria-label or aria-labelledby prop.");},[p,c]);let{buttonProps:d,isPressed:m,ref:u,isFocusVisible:y,isFocused:b,isHovered:f,uiStateOptions:g}=Go({...s,elementType:i}),v=utils.filterTruthyValues({"data-block-id":s["data-block-id"],"data-block-class":s["data-block-class"],"data-focused":b,"data-focus-visible":y,"data-disabled":s.isDisabled,"data-hovered":f,"data-pressed":m});return jsxRuntime.jsxs(i,{...reactAria.mergeProps(d,v),className:utils.classNames(ql({variant:a,size:o,isDisabled:!!s.isDisabled,isFocusVisible:y,isHovered:f}),"BaselineUI-ActionIconButton",typeof r=="function"?r(g):r),ref:L(l,u),style:typeof e=="function"?e(g):e,...n&&{tabIndex:void 0,role:void 0,"aria-label":void 0,"aria-labelledby":void 0,"aria-disabled":void 0},children:[jsxRuntime.jsx(t,{role:"presentation",size:F_[o]}),a==="popover"&&jsxRuntime.jsx(_8.CaretDownIcon,{size:8,className:$o})]})});Yn.displayName="ActionIconButtonCore";var Fe=bt__default.default.forwardRef(({className:r,style:e,labelPosition:t="top",variant:o="primary",showStepper:a=!0,...n},i)=>{let s=bt__default.default.useRef(null),{locale:l}=reactAria.useLocale(),p=reactStately.useNumberFieldState({...n,locale:l}),{hoverProps:c,isHovered:d}=reactAria.useHover({isDisabled:n.isDisabled}),{focusProps:m,isFocusVisible:u,isFocused:y}=reactAria.useFocusRing(),{labelProps:b,decrementButtonProps:f,inputProps:g,incrementButtonProps:v,groupProps:h,descriptionProps:_,errorMessageProps:C}=reactAria.useNumberField(n,p,s),P=bt.useMemo(()=>n.isReadOnly?_16.ReadOnlyIcon:n.isInvalid?_16.ErrorCircleFilledIcon:null,[n.isInvalid,n.isReadOnly]),w=Ne({description:n.description,errorMessageProps:C,descriptionProps:_,errorMessage:n.errorMessage,labelPosition:t,isDisabled:n.isDisabled}),z=utils.filterTruthyValues({"data-disabled":n.isDisabled,"data-readonly":n.isReadOnly,"data-hovered":d,"data-focused":y,"data-focus-visible":u,"data-invalid":n.isInvalid,"data-block-id":n["data-block-id"],"data-block-class":n["data-block-class"]});return jsxRuntime.jsxs("div",{style:e,className:utils.classNames(et({labelPosition:t}),"BaselineUI-NumberInput",r),...z,ref:i,children:[n.label?jsxRuntime.jsxs("div",{className:Qe({labelPosition:t,hasMessage:!!w}),children:[jsxRuntime.jsx("label",{...b,className:Je,children:n.label}),t==="start"&&w]}):null,jsxRuntime.jsxs("div",{className:utils.classNames({[Vt]:n.isDisabled}),children:[jsxRuntime.jsxs("div",{...reactAria.mergeProps(h,c),className:utils.classNames(Ft({isHovered:d,isDisabled:!!n.isDisabled,isReadOnly:!!n.isReadOnly,validationState:n.isInvalid?"error":"valid",isFocused:y,variant:o}),{[yp]:t==="start"},"BaselineUI-NumberInput-Container"),children:[jsxRuntime.jsx("input",{...reactAria.mergeProps(g,m),ref:s,className:utils.classNames("BaselineUI-NumberInput-Input",Zo({isDisabled:n.isDisabled,labelPosition:t}))}),P?jsxRuntime.jsx(P,{className:jt({validationState:"error",isReadOnly:n.isReadOnly}),size:16}):null,a?jsxRuntime.jsxs("div",{className:fp({isHoveredOrFocused:d||y,isInteractive:!n.isReadOnly&&!n.isDisabled}),children:[jsxRuntime.jsx(A,{variant:"secondary",size:"xxs",icon:_8.MinusIcon,...f,className:"BaselineUI-NumberInput-DecrementButton"}),jsxRuntime.jsx(U,{style:{height:16},orientation:"vertical"}),jsxRuntime.jsx(A,{variant:"secondary",size:"xxs",icon:_8.PlusIcon,...v,className:"BaselineUI-NumberInput-DecrementButton"})]}):null]}),t==="top"&&w]})]})});Fe.displayName="NumberInput";var Kt=bt__default.default.forwardRef(({className:r,style:e,onChange:t,onChangeEnd:o,numberFormatOptions:a,isDisabled:n,step:i,minValue:s,maxValue:l,value:p,"aria-label":c,"aria-labelledby":d,"aria-details":m,"aria-describedby":u,"data-block-id":y,"data-block-class":b,defaultValue:f,isReadOnly:g,label:v,id:h,includeNumberInput:_},C)=>{let P=bt__default.default.useRef(null),w={onChange:t===void 0?void 0:I=>{t(I[0]);},isDisabled:n||g,step:i,minValue:s,maxValue:l,onChangeEnd:o===void 0?void 0:I=>{o(I[0]);},value:p===void 0?void 0:[p],defaultValue:f===void 0?void 0:[f],"aria-label":c,"aria-labelledby":d,"aria-details":m,"aria-describedby":u,id:h,label:v},z=reactAria.useNumberFormatter(a),k=reactStately.useSliderState({...w,numberFormatter:z}),{trackProps:T,groupProps:R,labelProps:N}=reactAria.useSlider(w,k,P),S=jsxRuntime.jsx(Fe,{variant:"ghost",showStepper:!1,"aria-label":c,"aria-labelledby":N.id,value:k.getThumbValue(0),formatOptions:a,onChange:I=>{k.setThumbValue(0,I);},style:{width:55,textAlign:"right",flexShrink:0}});return jsxRuntime.jsxs("div",{...R,style:e,"data-block-id":y,"data-block-class":b,className:utils.classNames(ip,"BaselineUI-Slider",r),children:[v?jsxRuntime.jsxs("div",{className:lp,children:[jsxRuntime.jsx("label",{...N,className:utils.classNames(pp({isDisabled:n,hasNumberInput:!!_}),"BaselineUI-Slider-Label"),children:v}),_?S:null]}):null,jsxRuntime.jsxs("div",{className:sp,children:[jsxRuntime.jsx("div",{...T,className:utils.classNames(up,"BaselineUI-Slider-Track"),ref:L(P,C),"data-testid":"track",children:jsxRuntime.jsx(s5,{state:k,trackRef:P,isDisabled:n,isReadOnly:g})}),_&&!v?S:null]})]})});Kt.displayName="Slider";function s5({state:r,trackRef:e,isDisabled:t,isReadOnly:o}){let a=bt__default.default.useRef(null),{thumbProps:n,inputProps:i,isDragging:s}=reactAria.useSliderThumb({trackRef:e,inputRef:a},r),{focusProps:l,isFocused:p,isFocusVisible:c}=reactAria.useFocusRing(),{hoverProps:d,isHovered:m}=reactAria.useHover({isDisabled:t}),u=utils.filterTruthyValues({"data-disabled":t,"data-readonly":o,"data-hovered":m,"data-focus-visible":c,"data-dragging":s,"data-focused":p});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:utils.classNames(mp({isDisabled:t,isFocusVisible:c,active:s,isHovered:m}),"BaselineUI-Slider-TrackHighlight"),style:{width:n.style?.left},"data-testid":"track-highlight"}),jsxRuntime.jsxs("div",{...reactAria.mergeProps(n,d,u),className:utils.classNames(dp,"BaselineUI-Slider-ThumbHandle"),"data-testid":"thumb",children:[jsxRuntime.jsx("div",{className:utils.classNames(cp({isDisabled:t,isFocusVisible:c,active:s,isReadOnly:o,isHovered:m}),"BaselineUI-Slider-Thumb")}),jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{ref:a,...reactAria.mergeProps(i,l)})})]})]})}var Zp=x({defaultClassName:"_1tkzayn0 _1yep5z6dy",variantClassNames:{size:{sm:"_1tkzayn1",md:"_1tkzayn2",lg:"_1tkzayn3"},type:{subtitle:"_1yep5z610x",title:"_1yep5z610x",label:"_1yep5z610y",value:"_1yep5z610y",helper:"_1yep5z610z",body:"_1yep5z610x"}},defaultVariants:{},compoundVariants:[[{type:"title",size:"sm"},"_1yep5z61lj"],[{type:"title",size:"md"},"_1yep5z61lm"],[{type:"title",size:"lg"},"_1yep5z61lp"],[{type:"body",size:"sm"},"_1yep5z61m9"],[{type:"body",size:"md"},"_1yep5z61mc"],[{type:"body",size:"lg"},"_1yep5z61mc"],[{type:"subtitle",size:"sm"},"_1yep5z61m5"],[{type:"subtitle",size:"md"},"_1yep5z61m8"],[{type:"subtitle",size:"lg"},"_1yep5z61m8"],[{type:"label",size:"md"},"_1yep5z61m7"],[{type:"label",size:"lg"},"_1yep5z61m7"],[{type:"value",size:"md"},"_1yep5z61m7"],[{type:"value",size:"lg"},"_1yep5z61m7"],[{type:"helper",size:"sm"},"_1yep5z61m1"]]});var J=bt__default.default.forwardRef(({elementType:r="span",type:e="title",children:t,size:o="md",...a},n)=>jsxRuntime.jsx(r,{...a,className:utils.classNames(Zp({size:o,type:e}),"BaselineUI-Text",a.className),ref:n,children:t}));J.displayName="Text";var Jp=x({defaultClassName:"siobe20 _1yep5z6ao _1yep5z6ap _1yep5z6aq _1yep5z6bc _1yep5z6bd _1yep5z6be _1yep5z6d7 _1yep5z6m1 _1yep5z6lz _1yep5z6h4 _1yep5z6lq _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6",variantClassNames:{background:{subtle:"_1yep5z6124",medium:"_1yep5z6125"},isFocusVisible:{true:"_1yep5z617u _1yep5z617w _1yep5z617x _1yep5z6140"}},defaultVariants:{},compoundVariants:[]}),Qp="siobe24";var da=bt__default.default.forwardRef(({className:r,style:e,children:t,background:o="medium",title:a,action:n,"data-block-id":i,"data-block-class":s,onCloseRequest:l,contentStyle:p,contentClassName:c,...d},m)=>{let{formatMessage:u}=B(),y=bt__default.default.useRef(null),{dialogProps:b,titleProps:f}=reactAria.useDialog(d,y),{focusProps:g,isFocusVisible:v}=reactAria.useFocusRing();return jsxRuntime.jsxs("div",{...reactAria.mergeProps(b,g),className:utils.classNames(Jp({background:o,isFocusVisible:v}),"BaselineUI-Drawer",r),"data-block-id":i,"data-block-class":s,style:e,ref:L(m,y),children:[jsxRuntime.jsxs(E,{paddingLeft:"lg",paddingRight:"sm",backgroundColor:"background.primary.subtle",display:"flex",justifyContent:"space-between",alignItems:"center",gap:"lg",className:Qp,children:[jsxRuntime.jsx(J,{type:"title",size:"sm",...f,className:Fp,children:a}),jsxRuntime.jsxs(E,{children:[n?jsxRuntime.jsx(A,{...n,variant:"secondary"}):null,jsxRuntime.jsx(A,{variant:"secondary",size:"md",icon:_20.XIcon,onPress:l,"aria-label":u(b5.close)})]})]}),jsxRuntime.jsx(U,{variant:o==="subtle"?"primary":"secondary"}),jsxRuntime.jsx(E,{display:"flex",flexDirection:"column",flex:1,style:{overflow:"auto",...p},className:utils.classNames(c,"BaselineUI-Drawer-Content"),children:t})]})});da.displayName="Drawer";var b5=K({close:{id:"close",defaultMessage:"Close"}});var rc="aml2vl8 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6ij _1yep5z6ik _1yep5z6il",oc="_1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6d7",ac=x({defaultClassName:"aml2vl3 _1yep5z6lg _1yep5z6lh _1yep5z6lj _1yep5z6li _1yep5z6is _1yep5z6it _1yep5z6iu",variantClassNames:{enableDrawer:{false:"_1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kd _1yep5z6ke _1yep5z6kf",true:"aml2vl5"},shouldContainOverlays:{true:"aml2vl6",false:"aml2vl7"}},defaultVariants:{},compoundVariants:[]}),nc=x({defaultClassName:"aml2vl0 _1yep5z6lg _1yep5z6lh _1yep5z6lj _1yep5z6li _1yep5z6gb",variantClassNames:{shouldContainOverlays:{true:"aml2vl1",false:"aml2vl2"}},defaultVariants:{},compoundVariants:[]});var ht=bt__default.default.createContext({state:null,triggerProps:{},overlayProps:{}}),Le=({children:r,...e})=>{let t=reactStately.useOverlayTriggerState(e),{triggerProps:o,overlayProps:a}=reactAria.useOverlayTrigger({type:"dialog"},t),n=bt.useMemo(()=>({state:t,triggerProps:o,overlayProps:a}),[t,o,a]);return jsxRuntime.jsx(ht.Provider,{value:n,children:r})};Le.displayName="Modal";var ic={},sc=r=>{var{fileScope:e,css:t}=r,o=e.packageName?[e.packageName,e.filePath].join("/"):e.filePath,a=ic[o];if(!a){var n=document.createElement("style");e.packageName&&n.setAttribute("data-package",e.packageName),n.setAttribute("data-file",e.filePath),n.setAttribute("type","text/css"),a=ic[o]=n,document.head.appendChild(n);}a.innerHTML=t;};function lc(r){var e=r.match(/^var\((.*)\)$/);return e?e[1]:r}var pi=zn(ei());var cc=class{constructor(r){let{failure:e,gotoFn:t,output:o}=this._buildTables(r);this.gotoFn=t,this.output=o,this.failure=e;}_buildTables(r){let e={0:{}},t={},o=0;for(let i of r){let s=0;for(let l of i)e[s]&&l in e[s]?s=e[s][l]:(o++,e[s][l]=o,e[o]={},s=o,t[o]=[]);t[s].push(i);}let a={},n=[];for(let i in e[0]){let s=e[0][i];a[s]=0,n.push(s);}for(;n.length>0;){let i=n.shift();if(i!==void 0)for(let s in e[i]){let l=e[i][s];n.push(l);let p=a[i];for(;p>0&&!(s in e[p]);)p=a[p];if(s in e[p]){let c=e[p][s];a[l]=c,t[l]=[...t[l],...t[c]];}else a[l]=0;}}return {gotoFn:e,output:t,failure:a}}search(r){let e=0,t=[];for(let o=0;o<r.length;o++){let a=r[o];for(;e>0&&!(a in this.gotoFn[e]);)e=this.failure[e];if(a in this.gotoFn[e]&&(e=this.gotoFn[e][a],this.output[e].length>0)){let n=this.output[e];t.push([o,n]);}}return t}match(r){let e=0;for(let t=0;t<r.length;t++){let o=r[t];for(;e>0&&!(o in this.gotoFn[e]);)e=this.failure[e];if(o in this.gotoFn[e]&&(e=this.gotoFn[e][o],this.output[e].length>0))return !0}return !1}};var I5={appendCss:()=>{},registerClassName:()=>{},onEndFileScope:()=>{},registerComposition:()=>{},markCompositionUsed:()=>{},getIdentOption:()=>process.env.NODE_ENV==="production"?"short":"debug"},ua=[I5],R5=()=>{if(ua.length<1)throw new Error("No adapter configured");return ua[ua.length-1]},dc=!1,uc=r=>{dc||T5(r);},T5=r=>{if(!r)throw new Error('No adapter provided when calling "setAdapter"');dc=!0,ua.push(r);};var ti=function(){return R5().markCompositionUsed(...arguments)};function ma(r,e){return e||(e=r.slice(0)),Object.freeze(Object.defineProperties(r,{raw:{value:Object.freeze(e)}}))}var Q;(function(r){r.Attribute="attribute",r.Pseudo="pseudo",r.PseudoElement="pseudo-element",r.Tag="tag",r.Universal="universal",r.Adjacent="adjacent",r.Child="child",r.Descendant="descendant",r.Parent="parent",r.Sibling="sibling",r.ColumnCombinator="column-combinator";})(Q||(Q={}));var ze;(function(r){r.Any="any",r.Element="element",r.End="end",r.Equals="equals",r.Exists="exists",r.Hyphen="hyphen",r.Not="not",r.Start="start";})(ze||(ze={}));var mc=/^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/,N5=/\\([\da-f]{1,6}\s?|(\s)|.)/gi,E5=new Map([[126,ze.Element],[94,ze.Start],[36,ze.End],[42,ze.Any],[33,ze.Not],[124,ze.Hyphen]]),L5=new Set(["has","not","matches","is","where","host","host-context"]);function yc(r){switch(r.type){case Q.Adjacent:case Q.Child:case Q.Descendant:case Q.Parent:case Q.Sibling:case Q.ColumnCombinator:return !0;default:return !1}}var M5=new Set(["contains","icontains"]);function D5(r,e,t){let o=parseInt(e,16)-65536;return o!==o||t?e:o<0?String.fromCharCode(o+65536):String.fromCharCode(o>>10|55296,o&1023|56320)}function Or(r){return r.replace(N5,D5)}function ri(r){return r===39||r===34}function fc(r){return r===32||r===9||r===10||r===12||r===13}function oi(r){let e=[],t=bc(e,`${r}`,0);if(t<r.length)throw new Error(`Unmatched selector: ${r.slice(t)}`);return e}function bc(r,e,t){let o=[];function a(m){let u=e.slice(t+m).match(mc);if(!u)throw new Error(`Expected name, found ${e.slice(t)}`);let[y]=u;return t+=m+y.length,Or(y)}function n(m){for(t+=m;t<e.length&&fc(e.charCodeAt(t));)t++;}function i(){t+=1;let m=t,u=1;for(;u>0&&t<e.length;t++)e.charCodeAt(t)===40&&!s(t)?u++:e.charCodeAt(t)===41&&!s(t)&&u--;if(u)throw new Error("Parenthesis not matched");return Or(e.slice(m,t-1))}function s(m){let u=0;for(;e.charCodeAt(--m)===92;)u++;return (u&1)===1}function l(){if(o.length>0&&yc(o[o.length-1]))throw new Error("Did not expect successive traversals.")}function p(m){if(o.length>0&&o[o.length-1].type===Q.Descendant){o[o.length-1].type=m;return}l(),o.push({type:m});}function c(m,u){o.push({type:Q.Attribute,name:m,action:u,value:a(1),namespace:null,ignoreCase:"quirks"});}function d(){if(o.length&&o[o.length-1].type===Q.Descendant&&o.pop(),o.length===0)throw new Error("Empty sub-selector");r.push(o);}if(n(0),e.length===t)return t;e:for(;t<e.length;){let m=e.charCodeAt(t);switch(m){case 32:case 9:case 10:case 12:case 13:{(o.length===0||o[0].type!==Q.Descendant)&&(l(),o.push({type:Q.Descendant})),n(1);break}case 62:{p(Q.Child),n(1);break}case 60:{p(Q.Parent),n(1);break}case 126:{p(Q.Sibling),n(1);break}case 43:{p(Q.Adjacent),n(1);break}case 46:{c("class",ze.Element);break}case 35:{c("id",ze.Equals);break}case 91:{n(1);let u,y=null;e.charCodeAt(t)===124?u=a(1):e.startsWith("*|",t)?(y="*",u=a(2)):(u=a(0),e.charCodeAt(t)===124&&e.charCodeAt(t+1)!==61&&(y=u,u=a(1))),n(0);let b=ze.Exists,f=E5.get(e.charCodeAt(t));if(f){if(b=f,e.charCodeAt(t+1)!==61)throw new Error("Expected `=`");n(2);}else e.charCodeAt(t)===61&&(b=ze.Equals,n(1));let g="",v=null;if(b!=="exists"){if(ri(e.charCodeAt(t))){let C=e.charCodeAt(t),P=t+1;for(;P<e.length&&(e.charCodeAt(P)!==C||s(P));)P+=1;if(e.charCodeAt(P)!==C)throw new Error("Attribute value didn't end");g=Or(e.slice(t+1,P)),t=P+1;}else {let C=t;for(;t<e.length&&(!fc(e.charCodeAt(t))&&e.charCodeAt(t)!==93||s(t));)t+=1;g=Or(e.slice(C,t));}n(0);let _=e.charCodeAt(t)|32;_===115?(v=!1,n(1)):_===105&&(v=!0,n(1));}if(e.charCodeAt(t)!==93)throw new Error("Attribute selector didn't terminate");t+=1;let h={type:Q.Attribute,name:u,action:b,value:g,namespace:y,ignoreCase:v};o.push(h);break}case 58:{if(e.charCodeAt(t+1)===58){o.push({type:Q.PseudoElement,name:a(2).toLowerCase(),data:e.charCodeAt(t)===40?i():null});continue}let u=a(1).toLowerCase(),y=null;if(e.charCodeAt(t)===40)if(L5.has(u)){if(ri(e.charCodeAt(t+1)))throw new Error(`Pseudo-selector ${u} cannot be quoted`);if(y=[],t=bc(y,e,t+1),e.charCodeAt(t)!==41)throw new Error(`Missing closing parenthesis in :${u} (${e})`);t+=1;}else {if(y=i(),M5.has(u)){let b=y.charCodeAt(0);b===y.charCodeAt(y.length-1)&&ri(b)&&(y=y.slice(1,-1));}y=Or(y);}o.push({type:Q.Pseudo,name:u,data:y});break}case 44:{d(),o=[],n(1);break}default:{if(e.startsWith("/*",t)){let b=e.indexOf("*/",t+2);if(b<0)throw new Error("Comment was not terminated");t=b+2,o.length===0&&n(0);break}let u=null,y;if(m===42)t+=1,y="*";else if(m===124){if(y="",e.charCodeAt(t+1)===124){p(Q.ColumnCombinator),n(2);break}}else if(mc.test(e.slice(t)))y=a(0);else break e;e.charCodeAt(t)===124&&e.charCodeAt(t+1)!==124&&(u=y,e.charCodeAt(t+1)===42?(y="*",t+=2):y=a(1)),o.push(y==="*"?{type:Q.Universal,namespace:u}:{type:Q.Tag,name:y,namespace:u});}}}return d(),t}function gc(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);e&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable})),t.push.apply(t,o);}return t}function vc(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?gc(Object(t),!0).forEach(function(o){A5(r,o,t[o]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):gc(Object(t)).forEach(function(o){Object.defineProperty(r,o,Object.getOwnPropertyDescriptor(t,o));});}return r}function A5(r,e,t){return e=B5(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function B5(r){var e=O5(r,"string");return typeof e=="symbol"?e:String(e)}function O5(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var o=t.call(r,e||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return (e==="string"?String:Number)(r)}var j5=hc({}),fa=j5;function hc(r){return e.withOptions=t=>hc(vc(vc({},r),t)),e;function e(t,...o){let a=typeof t=="string"?[t]:t.raw,{escapeSpecialCharacters:n=Array.isArray(t)}=r,i="";for(let p=0;p<a.length;p++){let c=a[p];n&&(c=c.replace(/\\\n[ \t]*/g,"").replace(/\\`/g,"`").replace(/\\\$/g,"$").replace(/\\\{/g,"{")),i+=c,p<o.length&&(i+=o[p]);}let s=i.split(`
11
11
  `),l=null;for(let p of s){let c=p.match(/^(\s+)\S+/);if(c){let d=c[1].length;l?l=Math.min(l,d):l=d;}}if(l!==null){let p=l;i=s.map(c=>c[0]===" "||c[0]===" "?c.slice(p):c).join(`
12
12
  `);}return i=i.trim(),n&&(i=i.replace(/\\n/g,`
13
- `)),i}}var da=function(){return da=Object.assign||function(e){for(var t,o=1,a=arguments.length;o<a;o++){t=arguments[o];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);}return e},da.apply(this,arguments)};function Jn(r,e){var t={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&e.indexOf(o)<0&&(t[o]=r[o]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(r);a<o.length;a++)e.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(r,o[a])&&(t[o[a]]=r[o[a]]);return t}function t6(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],o=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return {next:function(){return r&&o>=r.length&&(r=void 0),{value:r&&r[o++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function ie(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var o=t.call(r),a,n=[],i;try{for(;(e===void 0||e-- >0)&&!(a=o.next()).done;)n.push(a.value);}catch(s){i={error:s};}finally{try{a&&!a.done&&(t=o.return)&&t.call(o);}finally{if(i)throw i.error}}return n}var r6=/(\u000D|\u000C|\u000D\u000A)/g,o6=/[\u0000\uD800-\uDFFF]/g,a6=/(\/\*)[\s\S]*?(\*\/)/g,n6=function(e,t){t===void 0&&(t=0),e=e.replace(r6,`
14
- `).replace(o6,"\uFFFD"),e=e.replace(a6,"");for(var o=[];t<e.length;t+=1){var a=e.charCodeAt(t);if(a===9||a===32||a===10){for(var n=e.charCodeAt(++t);n===9||n===32||n===10;)n=e.charCodeAt(++t);t-=1,o.push({type:"<whitespace-token>"});}else if(a===34){var i=sc(e,t);if(i===null)return null;var s=ie(i,2),l=s[0],p=s[1];o.push({type:"<string-token>",value:p}),t=l;}else if(a===35){if(t+1<e.length){var c=e.charCodeAt(t+1);if(c===95||c>=65&&c<=90||c>=97&&c<=122||c>=128||c>=48&&c<=57||c===92&&t+2<e.length&&e.charCodeAt(t+2)!==10){var d=pc(e,t+1)?"id":"unrestricted",i=s6(e,t+1);if(i!==null){var m=ie(i,2),l=m[0],p=m[1];o.push({type:"<hash-token>",value:p.toLowerCase(),flag:d}),t=l;continue}}}o.push({type:"<delim-token>",value:a});}else if(a===39){var i=sc(e,t);if(i===null)return null;var u=ie(i,2),l=u[0],p=u[1];o.push({type:"<string-token>",value:p}),t=l;}else if(a===40)o.push({type:"<(-token>"});else if(a===41)o.push({type:"<)-token>"});else if(a===43){var b=ca(e,t);if(b===null)o.push({type:"<delim-token>",value:a});else {var y=ie(b,2),l=y[0],f=y[1];f[0]==="<dimension-token>"?o.push({type:"<dimension-token>",value:f[1],unit:f[2].toLowerCase(),flag:"number"}):f[0]==="<number-token>"?o.push({type:f[0],value:f[1],flag:f[2]}):o.push({type:f[0],value:f[1],flag:"number"}),t=l;}}else if(a===44)o.push({type:"<comma-token>"});else if(a===45){var g=ca(e,t);if(g!==null){var _=ie(g,2),l=_[0],f=_[1];f[0]==="<dimension-token>"?o.push({type:"<dimension-token>",value:f[1],unit:f[2].toLowerCase(),flag:"number"}):f[0]==="<number-token>"?o.push({type:f[0],value:f[1],flag:f[2]}):o.push({type:f[0],value:f[1],flag:"number"}),t=l;continue}if(t+2<e.length){var c=e.charCodeAt(t+1),v=e.charCodeAt(t+2);if(c===45&&v===62){o.push({type:"<CDC-token>"}),t+=2;continue}}var i=lc(e,t);if(i!==null){var h=ie(i,3),l=h[0],p=h[1],x=h[2];o.push({type:x,value:p}),t=l;continue}o.push({type:"<delim-token>",value:a});}else if(a===46){var g=ca(e,t);if(g===null)o.push({type:"<delim-token>",value:a});else {var w=ie(g,2),l=w[0],f=w[1];f[0]==="<dimension-token>"?o.push({type:"<dimension-token>",value:f[1],unit:f[2].toLowerCase(),flag:"number"}):f[0]==="<number-token>"?o.push({type:f[0],value:f[1],flag:f[2]}):o.push({type:f[0],value:f[1],flag:"number"}),t=l;continue}}else if(a===58)o.push({type:"<colon-token>"});else if(a===59)o.push({type:"<semicolon-token>"});else if(a===60){if(t+3<e.length){var c=e.charCodeAt(t+1),v=e.charCodeAt(t+2),P=e.charCodeAt(t+3);if(c===33&&v===45&&P===45){o.push({type:"<CDO-token>"}),t+=3;continue}}o.push({type:"<delim-token>",value:a});}else if(a===64){var i=Qn(e,t+1);if(i!==null){var z=ie(i,2),l=z[0],p=z[1];o.push({type:"<at-keyword-token>",value:p.toLowerCase()}),t=l;continue}o.push({type:"<delim-token>",value:a});}else if(a===91)o.push({type:"<[-token>"});else if(a===92){var i=Mr(e,t);if(i===null)return null;var k=ie(i,2),l=k[0],p=k[1];e=e.slice(0,t)+p+e.slice(l+1),t-=1;}else if(a===93)o.push({type:"<]-token>"});else if(a===123)o.push({type:"<{-token>"});else if(a===125)o.push({type:"<}-token>"});else if(a>=48&&a<=57){var i=ca(e,t),T=ie(i,2),l=T[0],f=T[1];f[0]==="<dimension-token>"?o.push({type:"<dimension-token>",value:f[1],unit:f[2].toLowerCase(),flag:"number"}):f[0]==="<number-token>"?o.push({type:f[0],value:f[1],flag:f[2]}):o.push({type:f[0],value:f[1],flag:"number"}),t=l;}else if(a===95||a>=65&&a<=90||a>=97&&a<=122||a>=128){var i=lc(e,t);if(i===null)return null;var R=ie(i,3),l=R[0],p=R[1],x=R[2];o.push({type:x,value:p}),t=l;}else o.push({type:"<delim-token>",value:a});}return o.push({type:"<EOF-token>"}),o},sc=function(e,t){if(e.length<=t+1)return null;for(var o=e.charCodeAt(t),a=[],n=t+1;n<e.length;n+=1){var i=e.charCodeAt(n);if(i===o)return [n,String.fromCharCode.apply(null,a)];if(i===92){var s=Mr(e,n);if(s===null)return null;var l=ie(s,2),p=l[0],c=l[1];a.push(c),n=p;}else {if(i===10)return null;a.push(i);}}return null},pc=function(e,t){if(e.length<=t)return !1;var o=e.charCodeAt(t);if(o===45){if(e.length<=t+1)return !1;var a=e.charCodeAt(t+1);if(a===45||a===95||a>=65&&a<=90||a>=97&&a<=122||a>=128)return !0;if(a===92){if(e.length<=t+2)return !1;var n=e.charCodeAt(t+2);return n!==10}else return !1}else {if(o===95||o>=65&&o<=90||o>=97&&o<=122||o>=128)return !0;if(o===92){if(e.length<=t+1)return !1;var a=e.charCodeAt(t+1);return a!==10}else return !1}},Mr=function(e,t){if(e.length<=t+1||e.charCodeAt(t)!==92)return null;var o=e.charCodeAt(t+1);if(o===10)return null;if(o>=48&&o<=57||o>=65&&o<=70||o>=97&&o<=102){for(var a=[o],n=Math.min(t+7,e.length),i=t+2;i<n;i+=1){var s=e.charCodeAt(i);if(s>=48&&s<=57||s>=65&&s<=70||s>=97&&s<=102)a.push(s);else break}if(i<e.length){var l=e.charCodeAt(i);(l===9||l===32||l===10)&&(i+=1);}return [i-1,parseInt(String.fromCharCode.apply(null,a),16)]}else return [t+1,o]},ca=function(e,t){var o=i6(e,t);if(o===null)return null;var a=ie(o,3),n=a[0],i=a[1],s=a[2],l=Qn(e,n+1);if(l!==null){var p=ie(l,2),c=p[0],d=p[1];return [c,["<dimension-token>",i,d]]}return n+1<e.length&&e.charCodeAt(n+1)===37?[n+1,["<percentage-token>",i]]:[n,["<number-token>",i,s]]},i6=function(e,t){if(e.length<=t)return null;var o="integer",a=[],n=e.charCodeAt(t);for((n===43||n===45)&&(t+=1,n===45&&a.push(45));t<e.length;){var i=e.charCodeAt(t);if(i>=48&&i<=57)a.push(i),t+=1;else break}if(t+1<e.length){var s=e.charCodeAt(t),l=e.charCodeAt(t+1);if(s===46&&l>=48&&l<=57)for(a.push(s,l),o="number",t+=2;t<e.length;){var i=e.charCodeAt(t);if(i>=48&&i<=57)a.push(i),t+=1;else break}}if(t+1<e.length){var s=e.charCodeAt(t),l=e.charCodeAt(t+1),p=e.charCodeAt(t+2);if(s===69||s===101){var c=l>=48&&l<=57;if(c||(l===43||l===45)&&p>=48&&p<=57)for(o="number",c?(a.push(69,l),t+=2):l===45?(a.push(69,45,p),t+=3):(a.push(69,p),t+=3);t<e.length;){var i=e.charCodeAt(t);if(i>=48&&i<=57)a.push(i),t+=1;else break}}}var d=String.fromCharCode.apply(null,a),m=o==="number"?parseFloat(d):parseInt(d);return m===-0&&(m=0),Number.isNaN(m)?null:[t-1,m,o]},s6=function(e,t){if(e.length<=t)return null;for(var o=[],a=e.charCodeAt(t);t<e.length;a=e.charCodeAt(++t)){if(a===45||a===95||a>=65&&a<=90||a>=97&&a<=122||a>=128||a>=48&&a<=57){o.push(a);continue}else {var n=Mr(e,t);if(n!==null){var i=ie(n,2),s=i[0],l=i[1];o.push(l),t=s;continue}}break}return t===0?null:[t-1,String.fromCharCode.apply(null,o)]},Qn=function(e,t){if(e.length<=t||!pc(e,t))return null;for(var o=[],a=e.charCodeAt(t);t<e.length;a=e.charCodeAt(++t)){if(a===45||a===95||a>=65&&a<=90||a>=97&&a<=122||a>=128||a>=48&&a<=57){o.push(a);continue}else {var n=Mr(e,t);if(n!==null){var i=ie(n,2),s=i[0],l=i[1];o.push(l),t=s;continue}}break}return [t-1,String.fromCharCode.apply(null,o)]},l6=function(e,t){for(var o=e.charCodeAt(t);o===9||o===32||o===10;)o=e.charCodeAt(++t);for(var a=[],n=!1;t<e.length;){if(o===41)return [t,String.fromCharCode.apply(null,a)];if(o===34||o===39||o===40)return null;if(o===9||o===32||o===10)!n&&a.length!==0&&(n=!0);else if(o===92){var i=Mr(e,t);if(i===null||n)return null;var s=ie(i,2),l=s[0],p=s[1];a.push(p),t=l;}else {if(n)return null;a.push(o);}o=e.charCodeAt(++t);}return null},lc=function(e,t){var o=Qn(e,t);if(o===null)return null;var a=ie(o,2),n=a[0],i=a[1];if(i.toLowerCase()==="url"){if(e.length>n+1){var s=e.charCodeAt(n+1);if(s===40){for(var l=2;n+l<e.length;l+=1){var p=e.charCodeAt(n+l);if(p===34||p===39)return [n+1,i.toLowerCase(),"<function-token>"];if(p!==9&&p!==32&&p!==10){var c=l6(e,n+l);if(c===null)return null;var d=ie(c,2),m=d[0],u=d[1];return [m,u,"<url-token>"]}}return [n+1,i.toLowerCase(),"<function-token>"]}}}else if(e.length>n+1){var s=e.charCodeAt(n+1);if(s===40)return [n+1,i.toLowerCase(),"<function-token>"]}return [n,i.toLowerCase(),"<ident-token>"]},p6=function(e){for(var t=e.length-1;t>=0;t--)e[t]=c6(e[t]);return e},c6=function(e){if(e.mediaCondition===null)return e;var t=d6(e.mediaCondition);return t.operator===null&&t.children.length===1&&"children"in t.children[0]&&(t=t.children[0]),{mediaPrefix:e.mediaPrefix,mediaType:e.mediaType,mediaCondition:t}},d6=function r(e){for(var t=e.children.length-1;t>=0;t--){var o=e.children[t];if(!("context"in o)){var a=r(o);if(a.operator===null&&a.children.length===1)e.children[t]=a.children[0];else if(a.operator===e.operator&&(a.operator==="and"||a.operator==="or")){for(var n=[t,1],i=0;i<a.children.length;i++)n.push(a.children[i]);e.children.splice.apply(e.children,n);}}}return e},be=function(e,t){return t instanceof Error?new Error("".concat(t.message.trim(),`
15
- `).concat(e.trim())):new Error(e.trim())},cc=function(e){return p6(u6(e))},u6=function(e){var t=n6(e.trim());if(t===null)throw be("Failed tokenizing");var o=0,a=t.length-1;if(t[0].type==="<at-keyword-token>"&&t[0].value==="media"){if(t[1].type!=="<whitespace-token>")throw be("Expected whitespace after media");o=2;for(var n=2;n<t.length-1;n++){var i=t[n];if(i.type==="<{-token>"){a=n;break}else if(i.type==="<semicolon-token>")throw be("Expected '{' in media query but found ';'")}}return t=t.slice(o,a),f6(t)},m6=function(e){for(var t=[],o=!1,a=0;a<e.length;a++)e[a].type==="<whitespace-token>"?(o=!0,t.length>0&&(t[t.length-1].wsAfter=!0)):(t.push(da(da({},e[a]),{wsBefore:o,wsAfter:!1})),o=!1);return t},f6=function(e){for(var t,o,a=[[]],n=0;n<e.length;n++){var i=e[n];i.type==="<comma-token>"?a.push([]):a[a.length-1].push(i);}var s=a.map(m6);if(s.length===1&&s[0].length===0)return [{mediaCondition:null,mediaPrefix:null,mediaType:"all"}];var l=s.map(function(u){return u.length===0?null:y6(u)}),p=[];try{for(var c=t6(l),d=c.next();!d.done;d=c.next()){var m=d.value;m!==null&&p.push(m);}}catch(u){t={error:u};}finally{try{d&&!d.done&&(o=c.return)&&o.call(c);}finally{if(t)throw t.error}}if(p.length===0)throw be("No valid media queries");return p},y6=function(e){var t=e[0];if(t.type==="<(-token>")try{return {mediaPrefix:null,mediaType:"all",mediaCondition:Zn(e,!0)}}catch(d){throw be("Expected media condition after '('",d)}else if(t.type==="<ident-token>"){var o=null,a=void 0,n=t.value;(n==="only"||n==="not")&&(o=n);var i=o===null?0:1;if(e.length<=i)throw be("Expected extra token in media query");var s=e[i];if(s.type==="<ident-token>"){var l=s.value;if(l==="all")a="all";else if(l==="print"||l==="screen")a=l;else if(l==="tty"||l==="tv"||l==="projection"||l==="handheld"||l==="braille"||l==="embossed"||l==="aural"||l==="speech")o=o==="not"?null:"not",a="all";else throw be("Unknown ident '".concat(l,"' in media query"))}else if(o==="not"&&s.type==="<(-token>"){var p=[{type:"<(-token>",wsBefore:!1,wsAfter:!1}];p.push.apply(p,e),p.push({type:"<)-token>",wsBefore:!1,wsAfter:!1});try{return {mediaPrefix:null,mediaType:"all",mediaCondition:Zn(p,!0)}}catch(d){throw be("Expected media condition after '('",d)}}else throw be("Invalid media query");if(i+1===e.length)return {mediaPrefix:o,mediaType:a,mediaCondition:null};if(i+4<e.length){var c=e[i+1];if(c.type==="<ident-token>"&&c.value==="and")try{return {mediaPrefix:o,mediaType:a,mediaCondition:Zn(e.slice(i+2),!1)}}catch(d){throw be("Expected media condition after 'and'",d)}else throw be("Expected 'and' after media prefix")}else throw be("Expected media condition after media prefix")}else throw be("Expected media condition or media prefix")},Zn=function r(e,t,o){if(o===void 0&&(o=null),e.length<3||e[0].type!=="<(-token>"||e[e.length-1].type!=="<)-token>")throw new Error("Invalid media condition");for(var a=e.length-1,n=0,i=0,s=0;s<e.length;s++){var l=e[s];if(l.type==="<(-token>"?(i+=1,n=Math.max(n,i)):l.type==="<)-token>"&&(i-=1),i===0){a=s;break}}if(i!==0)throw new Error(`Mismatched parens
16
- Invalid media condition`);var p,c=e.slice(0,a+1);if(n===1?p=b6(c):c[1].type==="<ident-token>"&&c[1].value==="not"?p=r(c.slice(2,-1),!0,"not"):p=r(c.slice(1,-1),!0),a===e.length-1)return {operator:o,children:[p]};var d=e[a+1];if(d.type!=="<ident-token>")throw new Error(`Invalid operator
13
+ `)),i}}var ba=function(){return ba=Object.assign||function(e){for(var t,o=1,a=arguments.length;o<a;o++){t=arguments[o];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);}return e},ba.apply(this,arguments)};function ni(r,e){var t={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&e.indexOf(o)<0&&(t[o]=r[o]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(r);a<o.length;a++)e.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(r,o[a])&&(t[o[a]]=r[o[a]]);return t}function F5(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],o=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return {next:function(){return r&&o>=r.length&&(r=void 0),{value:r&&r[o++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function ie(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var o=t.call(r),a,n=[],i;try{for(;(e===void 0||e-- >0)&&!(a=o.next()).done;)n.push(a.value);}catch(s){i={error:s};}finally{try{a&&!a.done&&(t=o.return)&&t.call(o);}finally{if(i)throw i.error}}return n}var H5=/(\u000D|\u000C|\u000D\u000A)/g,V5=/[\u0000\uD800-\uDFFF]/g,$5=/(\/\*)[\s\S]*?(\*\/)/g,U5=function(e,t){t===void 0&&(t=0),e=e.replace(H5,`
14
+ `).replace(V5,"\uFFFD"),e=e.replace($5,"");for(var o=[];t<e.length;t+=1){var a=e.charCodeAt(t);if(a===9||a===32||a===10){for(var n=e.charCodeAt(++t);n===9||n===32||n===10;)n=e.charCodeAt(++t);t-=1,o.push({type:"<whitespace-token>"});}else if(a===34){var i=_c(e,t);if(i===null)return null;var s=ie(i,2),l=s[0],p=s[1];o.push({type:"<string-token>",value:p}),t=l;}else if(a===35){if(t+1<e.length){var c=e.charCodeAt(t+1);if(c===95||c>=65&&c<=90||c>=97&&c<=122||c>=128||c>=48&&c<=57||c===92&&t+2<e.length&&e.charCodeAt(t+2)!==10){var d=Cc(e,t+1)?"id":"unrestricted",i=K5(e,t+1);if(i!==null){var m=ie(i,2),l=m[0],p=m[1];o.push({type:"<hash-token>",value:p.toLowerCase(),flag:d}),t=l;continue}}}o.push({type:"<delim-token>",value:a});}else if(a===39){var i=_c(e,t);if(i===null)return null;var u=ie(i,2),l=u[0],p=u[1];o.push({type:"<string-token>",value:p}),t=l;}else if(a===40)o.push({type:"<(-token>"});else if(a===41)o.push({type:"<)-token>"});else if(a===43){var y=ya(e,t);if(y===null)o.push({type:"<delim-token>",value:a});else {var b=ie(y,2),l=b[0],f=b[1];f[0]==="<dimension-token>"?o.push({type:"<dimension-token>",value:f[1],unit:f[2].toLowerCase(),flag:"number"}):f[0]==="<number-token>"?o.push({type:f[0],value:f[1],flag:f[2]}):o.push({type:f[0],value:f[1],flag:"number"}),t=l;}}else if(a===44)o.push({type:"<comma-token>"});else if(a===45){var g=ya(e,t);if(g!==null){var v=ie(g,2),l=v[0],f=v[1];f[0]==="<dimension-token>"?o.push({type:"<dimension-token>",value:f[1],unit:f[2].toLowerCase(),flag:"number"}):f[0]==="<number-token>"?o.push({type:f[0],value:f[1],flag:f[2]}):o.push({type:f[0],value:f[1],flag:"number"}),t=l;continue}if(t+2<e.length){var c=e.charCodeAt(t+1),h=e.charCodeAt(t+2);if(c===45&&h===62){o.push({type:"<CDC-token>"}),t+=2;continue}}var i=zc(e,t);if(i!==null){var _=ie(i,3),l=_[0],p=_[1],C=_[2];o.push({type:C,value:p}),t=l;continue}o.push({type:"<delim-token>",value:a});}else if(a===46){var g=ya(e,t);if(g===null)o.push({type:"<delim-token>",value:a});else {var P=ie(g,2),l=P[0],f=P[1];f[0]==="<dimension-token>"?o.push({type:"<dimension-token>",value:f[1],unit:f[2].toLowerCase(),flag:"number"}):f[0]==="<number-token>"?o.push({type:f[0],value:f[1],flag:f[2]}):o.push({type:f[0],value:f[1],flag:"number"}),t=l;continue}}else if(a===58)o.push({type:"<colon-token>"});else if(a===59)o.push({type:"<semicolon-token>"});else if(a===60){if(t+3<e.length){var c=e.charCodeAt(t+1),h=e.charCodeAt(t+2),w=e.charCodeAt(t+3);if(c===33&&h===45&&w===45){o.push({type:"<CDO-token>"}),t+=3;continue}}o.push({type:"<delim-token>",value:a});}else if(a===64){var i=ii(e,t+1);if(i!==null){var z=ie(i,2),l=z[0],p=z[1];o.push({type:"<at-keyword-token>",value:p.toLowerCase()}),t=l;continue}o.push({type:"<delim-token>",value:a});}else if(a===91)o.push({type:"<[-token>"});else if(a===92){var i=jr(e,t);if(i===null)return null;var k=ie(i,2),l=k[0],p=k[1];e=e.slice(0,t)+p+e.slice(l+1),t-=1;}else if(a===93)o.push({type:"<]-token>"});else if(a===123)o.push({type:"<{-token>"});else if(a===125)o.push({type:"<}-token>"});else if(a>=48&&a<=57){var i=ya(e,t),T=ie(i,2),l=T[0],f=T[1];f[0]==="<dimension-token>"?o.push({type:"<dimension-token>",value:f[1],unit:f[2].toLowerCase(),flag:"number"}):f[0]==="<number-token>"?o.push({type:f[0],value:f[1],flag:f[2]}):o.push({type:f[0],value:f[1],flag:"number"}),t=l;}else if(a===95||a>=65&&a<=90||a>=97&&a<=122||a>=128){var i=zc(e,t);if(i===null)return null;var R=ie(i,3),l=R[0],p=R[1],C=R[2];o.push({type:C,value:p}),t=l;}else o.push({type:"<delim-token>",value:a});}return o.push({type:"<EOF-token>"}),o},_c=function(e,t){if(e.length<=t+1)return null;for(var o=e.charCodeAt(t),a=[],n=t+1;n<e.length;n+=1){var i=e.charCodeAt(n);if(i===o)return [n,String.fromCharCode.apply(null,a)];if(i===92){var s=jr(e,n);if(s===null)return null;var l=ie(s,2),p=l[0],c=l[1];a.push(c),n=p;}else {if(i===10)return null;a.push(i);}}return null},Cc=function(e,t){if(e.length<=t)return !1;var o=e.charCodeAt(t);if(o===45){if(e.length<=t+1)return !1;var a=e.charCodeAt(t+1);if(a===45||a===95||a>=65&&a<=90||a>=97&&a<=122||a>=128)return !0;if(a===92){if(e.length<=t+2)return !1;var n=e.charCodeAt(t+2);return n!==10}else return !1}else {if(o===95||o>=65&&o<=90||o>=97&&o<=122||o>=128)return !0;if(o===92){if(e.length<=t+1)return !1;var a=e.charCodeAt(t+1);return a!==10}else return !1}},jr=function(e,t){if(e.length<=t+1||e.charCodeAt(t)!==92)return null;var o=e.charCodeAt(t+1);if(o===10)return null;if(o>=48&&o<=57||o>=65&&o<=70||o>=97&&o<=102){for(var a=[o],n=Math.min(t+7,e.length),i=t+2;i<n;i+=1){var s=e.charCodeAt(i);if(s>=48&&s<=57||s>=65&&s<=70||s>=97&&s<=102)a.push(s);else break}if(i<e.length){var l=e.charCodeAt(i);(l===9||l===32||l===10)&&(i+=1);}return [i-1,parseInt(String.fromCharCode.apply(null,a),16)]}else return [t+1,o]},ya=function(e,t){var o=q5(e,t);if(o===null)return null;var a=ie(o,3),n=a[0],i=a[1],s=a[2],l=ii(e,n+1);if(l!==null){var p=ie(l,2),c=p[0],d=p[1];return [c,["<dimension-token>",i,d]]}return n+1<e.length&&e.charCodeAt(n+1)===37?[n+1,["<percentage-token>",i]]:[n,["<number-token>",i,s]]},q5=function(e,t){if(e.length<=t)return null;var o="integer",a=[],n=e.charCodeAt(t);for((n===43||n===45)&&(t+=1,n===45&&a.push(45));t<e.length;){var i=e.charCodeAt(t);if(i>=48&&i<=57)a.push(i),t+=1;else break}if(t+1<e.length){var s=e.charCodeAt(t),l=e.charCodeAt(t+1);if(s===46&&l>=48&&l<=57)for(a.push(s,l),o="number",t+=2;t<e.length;){var i=e.charCodeAt(t);if(i>=48&&i<=57)a.push(i),t+=1;else break}}if(t+1<e.length){var s=e.charCodeAt(t),l=e.charCodeAt(t+1),p=e.charCodeAt(t+2);if(s===69||s===101){var c=l>=48&&l<=57;if(c||(l===43||l===45)&&p>=48&&p<=57)for(o="number",c?(a.push(69,l),t+=2):l===45?(a.push(69,45,p),t+=3):(a.push(69,p),t+=3);t<e.length;){var i=e.charCodeAt(t);if(i>=48&&i<=57)a.push(i),t+=1;else break}}}var d=String.fromCharCode.apply(null,a),m=o==="number"?parseFloat(d):parseInt(d);return m===-0&&(m=0),Number.isNaN(m)?null:[t-1,m,o]},K5=function(e,t){if(e.length<=t)return null;for(var o=[],a=e.charCodeAt(t);t<e.length;a=e.charCodeAt(++t)){if(a===45||a===95||a>=65&&a<=90||a>=97&&a<=122||a>=128||a>=48&&a<=57){o.push(a);continue}else {var n=jr(e,t);if(n!==null){var i=ie(n,2),s=i[0],l=i[1];o.push(l),t=s;continue}}break}return t===0?null:[t-1,String.fromCharCode.apply(null,o)]},ii=function(e,t){if(e.length<=t||!Cc(e,t))return null;for(var o=[],a=e.charCodeAt(t);t<e.length;a=e.charCodeAt(++t)){if(a===45||a===95||a>=65&&a<=90||a>=97&&a<=122||a>=128||a>=48&&a<=57){o.push(a);continue}else {var n=jr(e,t);if(n!==null){var i=ie(n,2),s=i[0],l=i[1];o.push(l),t=s;continue}}break}return [t-1,String.fromCharCode.apply(null,o)]},G5=function(e,t){for(var o=e.charCodeAt(t);o===9||o===32||o===10;)o=e.charCodeAt(++t);for(var a=[],n=!1;t<e.length;){if(o===41)return [t,String.fromCharCode.apply(null,a)];if(o===34||o===39||o===40)return null;if(o===9||o===32||o===10)!n&&a.length!==0&&(n=!0);else if(o===92){var i=jr(e,t);if(i===null||n)return null;var s=ie(i,2),l=s[0],p=s[1];a.push(p),t=l;}else {if(n)return null;a.push(o);}o=e.charCodeAt(++t);}return null},zc=function(e,t){var o=ii(e,t);if(o===null)return null;var a=ie(o,2),n=a[0],i=a[1];if(i.toLowerCase()==="url"){if(e.length>n+1){var s=e.charCodeAt(n+1);if(s===40){for(var l=2;n+l<e.length;l+=1){var p=e.charCodeAt(n+l);if(p===34||p===39)return [n+1,i.toLowerCase(),"<function-token>"];if(p!==9&&p!==32&&p!==10){var c=G5(e,n+l);if(c===null)return null;var d=ie(c,2),m=d[0],u=d[1];return [m,u,"<url-token>"]}}return [n+1,i.toLowerCase(),"<function-token>"]}}}else if(e.length>n+1){var s=e.charCodeAt(n+1);if(s===40)return [n+1,i.toLowerCase(),"<function-token>"]}return [n,i.toLowerCase(),"<ident-token>"]},W5=function(e){for(var t=e.length-1;t>=0;t--)e[t]=X5(e[t]);return e},X5=function(e){if(e.mediaCondition===null)return e;var t=Y5(e.mediaCondition);return t.operator===null&&t.children.length===1&&"children"in t.children[0]&&(t=t.children[0]),{mediaPrefix:e.mediaPrefix,mediaType:e.mediaType,mediaCondition:t}},Y5=function r(e){for(var t=e.children.length-1;t>=0;t--){var o=e.children[t];if(!("context"in o)){var a=r(o);if(a.operator===null&&a.children.length===1)e.children[t]=a.children[0];else if(a.operator===e.operator&&(a.operator==="and"||a.operator==="or")){for(var n=[t,1],i=0;i<a.children.length;i++)n.push(a.children[i]);e.children.splice.apply(e.children,n);}}}return e},ge=function(e,t){return t instanceof Error?new Error("".concat(t.message.trim(),`
15
+ `).concat(e.trim())):new Error(e.trim())},xc=function(e){return W5(Z5(e))},Z5=function(e){var t=U5(e.trim());if(t===null)throw ge("Failed tokenizing");var o=0,a=t.length-1;if(t[0].type==="<at-keyword-token>"&&t[0].value==="media"){if(t[1].type!=="<whitespace-token>")throw ge("Expected whitespace after media");o=2;for(var n=2;n<t.length-1;n++){var i=t[n];if(i.type==="<{-token>"){a=n;break}else if(i.type==="<semicolon-token>")throw ge("Expected '{' in media query but found ';'")}}return t=t.slice(o,a),Q5(t)},J5=function(e){for(var t=[],o=!1,a=0;a<e.length;a++)e[a].type==="<whitespace-token>"?(o=!0,t.length>0&&(t[t.length-1].wsAfter=!0)):(t.push(ba(ba({},e[a]),{wsBefore:o,wsAfter:!1})),o=!1);return t},Q5=function(e){for(var t,o,a=[[]],n=0;n<e.length;n++){var i=e[n];i.type==="<comma-token>"?a.push([]):a[a.length-1].push(i);}var s=a.map(J5);if(s.length===1&&s[0].length===0)return [{mediaCondition:null,mediaPrefix:null,mediaType:"all"}];var l=s.map(function(u){return u.length===0?null:e6(u)}),p=[];try{for(var c=F5(l),d=c.next();!d.done;d=c.next()){var m=d.value;m!==null&&p.push(m);}}catch(u){t={error:u};}finally{try{d&&!d.done&&(o=c.return)&&o.call(c);}finally{if(t)throw t.error}}if(p.length===0)throw ge("No valid media queries");return p},e6=function(e){var t=e[0];if(t.type==="<(-token>")try{return {mediaPrefix:null,mediaType:"all",mediaCondition:ai(e,!0)}}catch(d){throw ge("Expected media condition after '('",d)}else if(t.type==="<ident-token>"){var o=null,a=void 0,n=t.value;(n==="only"||n==="not")&&(o=n);var i=o===null?0:1;if(e.length<=i)throw ge("Expected extra token in media query");var s=e[i];if(s.type==="<ident-token>"){var l=s.value;if(l==="all")a="all";else if(l==="print"||l==="screen")a=l;else if(l==="tty"||l==="tv"||l==="projection"||l==="handheld"||l==="braille"||l==="embossed"||l==="aural"||l==="speech")o=o==="not"?null:"not",a="all";else throw ge("Unknown ident '".concat(l,"' in media query"))}else if(o==="not"&&s.type==="<(-token>"){var p=[{type:"<(-token>",wsBefore:!1,wsAfter:!1}];p.push.apply(p,e),p.push({type:"<)-token>",wsBefore:!1,wsAfter:!1});try{return {mediaPrefix:null,mediaType:"all",mediaCondition:ai(p,!0)}}catch(d){throw ge("Expected media condition after '('",d)}}else throw ge("Invalid media query");if(i+1===e.length)return {mediaPrefix:o,mediaType:a,mediaCondition:null};if(i+4<e.length){var c=e[i+1];if(c.type==="<ident-token>"&&c.value==="and")try{return {mediaPrefix:o,mediaType:a,mediaCondition:ai(e.slice(i+2),!1)}}catch(d){throw ge("Expected media condition after 'and'",d)}else throw ge("Expected 'and' after media prefix")}else throw ge("Expected media condition after media prefix")}else throw ge("Expected media condition or media prefix")},ai=function r(e,t,o){if(o===void 0&&(o=null),e.length<3||e[0].type!=="<(-token>"||e[e.length-1].type!=="<)-token>")throw new Error("Invalid media condition");for(var a=e.length-1,n=0,i=0,s=0;s<e.length;s++){var l=e[s];if(l.type==="<(-token>"?(i+=1,n=Math.max(n,i)):l.type==="<)-token>"&&(i-=1),i===0){a=s;break}}if(i!==0)throw new Error(`Mismatched parens
16
+ Invalid media condition`);var p,c=e.slice(0,a+1);if(n===1?p=t6(c):c[1].type==="<ident-token>"&&c[1].value==="not"?p=r(c.slice(2,-1),!0,"not"):p=r(c.slice(1,-1),!0),a===e.length-1)return {operator:o,children:[p]};var d=e[a+1];if(d.type!=="<ident-token>")throw new Error(`Invalid operator
17
17
  Invalid media condition`);if(o!==null&&o!==d.value)throw new Error("'".concat(d.value,"' and '").concat(o,`' must not be at same level
18
18
  Invalid media condition`));if(d.value==="or"&&!t)throw new Error(`Cannot use 'or' at top level of a media query
19
19
  Invalid media condition`);if(d.value!=="and"&&d.value!=="or")throw new Error("Invalid operator: '".concat(d.value,`'
20
- Invalid media condition`));var m=r(e.slice(a+2),t,d.value);return {operator:d.value,children:[p].concat(m.children)}},b6=function(e){if(e.length<3||e[0].type!=="<(-token>"||e[e.length-1].type!=="<)-token>")throw new Error("Invalid media feature");for(var t=[e[0]],o=1;o<e.length;o++){if(o<e.length-2){var a=e[o],n=e[o+1],i=e[o+2];if(a.type==="<number-token>"&&a.value>0&&n.type==="<delim-token>"&&n.value===47&&i.type==="<number-token>"&&i.value>0){t.push({type:"<ratio-token>",numerator:a.value,denominator:i.value,wsBefore:a.wsBefore,wsAfter:i.wsAfter}),o+=2;continue}}t.push(e[o]);}var s=t[1];if(s.type==="<ident-token>"&&t.length===3)return {context:"boolean",feature:s.value};if(t.length===5&&t[1].type==="<ident-token>"&&t[2].type==="<colon-token>"){var l=t[3];if(l.type==="<number-token>"||l.type==="<dimension-token>"||l.type==="<ratio-token>"||l.type==="<ident-token>"){var p=t[1].value,c=null,d=p.slice(0,4);d==="min-"?(c="min",p=p.slice(4)):d==="max-"&&(c="max",p=p.slice(4)),l.wsBefore,l.wsAfter;var m=Jn(l,["wsBefore","wsAfter"]);return {context:"value",prefix:c,feature:p,value:m}}}else if(t.length>=5)try{var u=g6(t);return {context:"range",feature:u.featureName,range:u}}catch(b){throw be("Invalid media feature",b)}throw new Error("Invalid media feature")},g6=function(e){var t,o,a,n;if(e.length<5||e[0].type!=="<(-token>"||e[e.length-1].type!=="<)-token>")throw new Error("Invalid range");var i={leftToken:null,leftOp:null,featureName:"",rightOp:null,rightToken:null},s=e[1].type==="<number-token>"||e[1].type==="<dimension-token>"||e[1].type==="<ratio-token>"||e[1].type==="<ident-token>"&&e[1].value==="infinite";if(e[2].type==="<delim-token>"){if(e[2].value===60)e[3].type==="<delim-token>"&&e[3].value===61&&!e[3].wsBefore?i[s?"leftOp":"rightOp"]="<=":i[s?"leftOp":"rightOp"]="<";else if(e[2].value===62)e[3].type==="<delim-token>"&&e[3].value===61&&!e[3].wsBefore?i[s?"leftOp":"rightOp"]=">=":i[s?"leftOp":"rightOp"]=">";else if(e[2].value===61)i[s?"leftOp":"rightOp"]="=";else throw new Error("Invalid range");if(s)i.leftToken=e[1];else if(e[1].type==="<ident-token>")i.featureName=e[1].value;else throw new Error("Invalid range");var l=2+((o=(t=i[s?"leftOp":"rightOp"])===null||t===void 0?void 0:t.length)!==null&&o!==void 0?o:0),p=e[l];if(s)if(p.type==="<ident-token>"){if(i.featureName=p.value,e.length>=7){var c=e[l+1],d=e[l+2];if(c.type==="<delim-token>"){var m=c.value;if(m===60)d.type==="<delim-token>"&&d.value===61&&!d.wsBefore?i.rightOp="<=":i.rightOp="<";else if(m===62)d.type==="<delim-token>"&&d.value===61&&!d.wsBefore?i.rightOp=">=":i.rightOp=">";else throw new Error("Invalid range");var u=e[l+1+((n=(a=i.rightOp)===null||a===void 0?void 0:a.length)!==null&&n!==void 0?n:0)];i.rightToken=u;}else throw new Error("Invalid range")}else if(l+2!==e.length)throw new Error("Invalid range")}else throw new Error("Invalid range");else i.rightToken=p;var b=null,y=i.leftToken,f=i.leftOp,g=i.featureName,_=i.rightOp,v=i.rightToken,h=null;if(y!==null){if(y.type==="<ident-token>"){var x=y.type,w=y.value;w==="infinite"&&(h={type:x,value:w});}else if(y.type==="<number-token>"||y.type==="<dimension-token>"||y.type==="<ratio-token>"){y.wsBefore,y.wsAfter;var P=Jn(y,["wsBefore","wsAfter"]);h=P;}}var z=null;if(v!==null){if(v.type==="<ident-token>"){var x=v.type,w=v.value;w==="infinite"&&(z={type:x,value:w});}else if(v.type==="<number-token>"||v.type==="<dimension-token>"||v.type==="<ratio-token>"){v.wsBefore,v.wsAfter;var k=Jn(v,["wsBefore","wsAfter"]);z=k;}}if(h!==null&&z!==null)if((f==="<"||f==="<=")&&(_==="<"||_==="<="))b={leftToken:h,leftOp:f,featureName:g,rightOp:_,rightToken:z};else if((f===">"||f===">=")&&(_===">"||_===">="))b={leftToken:h,leftOp:f,featureName:g,rightOp:_,rightToken:z};else throw new Error("Invalid range");else h===null&&f===null&&_!==null&&z!==null?b={leftToken:h,leftOp:f,featureName:g,rightOp:_,rightToken:z}:h!==null&&f!==null&&_===null&&z===null&&(b={leftToken:h,leftOp:f,featureName:g,rightOp:_,rightToken:z});return b}else throw new Error("Invalid range")};function v6(r,e){if(typeof r!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var o=t.call(r,e||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return (e==="string"?String:Number)(r)}function h6(r){var e=v6(r,"string");return typeof e=="symbol"?e:String(e)}function _6(r,e,t){return e=h6(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function dc(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);e&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable})),t.push.apply(t,o);}return t}function qt(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?dc(Object(t),!0).forEach(function(o){_6(r,o,t[o]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):dc(Object(t)).forEach(function(o){Object.defineProperty(r,o,Object.getOwnPropertyDescriptor(t,o));});}return r}function z6(r,e){if(r==null)return {};var t={},o=Object.keys(r),a,n;for(n=0;n<o.length;n++)a=o[n],!(e.indexOf(a)>=0)&&(t[a]=r[a]);return t}function ei(r,e){if(r==null)return {};var t=z6(r,e),o,a;if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);for(a=0;a<n.length;a++)o=n[a],!(e.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(r,o)&&(t[o]=r[o]);}return t}function Dr(r,e){for(var t in r)e(r[t],t);}function $t(r,e){var t={};for(var o in r)e.indexOf(o)===-1&&(t[o]=r[o]);return t}function C6(r,e){var t={};for(var o in r)t[e(r[o],o)]=r[o];return t}var uc;function x6(r){return r.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var P6=(r,e)=>{var t=()=>{var a=new RegExp(".".concat(x6((0, ri.default)(e,{isIdentifier:!0}))),"g");return r.replace(a,"&")},o;try{o=Yn(r);}catch{throw new Error("Invalid selector: ".concat(t()))}o.forEach(a=>{try{for(var n=a.length-1;n>=-1;n--){if(!a[n])throw new Error;var i=a[n];if(i.type==="child"||i.type==="parent"||i.type==="sibling"||i.type==="adjacent"||i.type==="descendant")throw new Error;if(i.type==="attribute"&&i.name==="class"&&i.value===e)return}}catch{throw new Error(pa(uc||(uc=la([`
20
+ Invalid media condition`));var m=r(e.slice(a+2),t,d.value);return {operator:d.value,children:[p].concat(m.children)}},t6=function(e){if(e.length<3||e[0].type!=="<(-token>"||e[e.length-1].type!=="<)-token>")throw new Error("Invalid media feature");for(var t=[e[0]],o=1;o<e.length;o++){if(o<e.length-2){var a=e[o],n=e[o+1],i=e[o+2];if(a.type==="<number-token>"&&a.value>0&&n.type==="<delim-token>"&&n.value===47&&i.type==="<number-token>"&&i.value>0){t.push({type:"<ratio-token>",numerator:a.value,denominator:i.value,wsBefore:a.wsBefore,wsAfter:i.wsAfter}),o+=2;continue}}t.push(e[o]);}var s=t[1];if(s.type==="<ident-token>"&&t.length===3)return {context:"boolean",feature:s.value};if(t.length===5&&t[1].type==="<ident-token>"&&t[2].type==="<colon-token>"){var l=t[3];if(l.type==="<number-token>"||l.type==="<dimension-token>"||l.type==="<ratio-token>"||l.type==="<ident-token>"){var p=t[1].value,c=null,d=p.slice(0,4);d==="min-"?(c="min",p=p.slice(4)):d==="max-"&&(c="max",p=p.slice(4)),l.wsBefore,l.wsAfter;var m=ni(l,["wsBefore","wsAfter"]);return {context:"value",prefix:c,feature:p,value:m}}}else if(t.length>=5)try{var u=r6(t);return {context:"range",feature:u.featureName,range:u}}catch(y){throw ge("Invalid media feature",y)}throw new Error("Invalid media feature")},r6=function(e){var t,o,a,n;if(e.length<5||e[0].type!=="<(-token>"||e[e.length-1].type!=="<)-token>")throw new Error("Invalid range");var i={leftToken:null,leftOp:null,featureName:"",rightOp:null,rightToken:null},s=e[1].type==="<number-token>"||e[1].type==="<dimension-token>"||e[1].type==="<ratio-token>"||e[1].type==="<ident-token>"&&e[1].value==="infinite";if(e[2].type==="<delim-token>"){if(e[2].value===60)e[3].type==="<delim-token>"&&e[3].value===61&&!e[3].wsBefore?i[s?"leftOp":"rightOp"]="<=":i[s?"leftOp":"rightOp"]="<";else if(e[2].value===62)e[3].type==="<delim-token>"&&e[3].value===61&&!e[3].wsBefore?i[s?"leftOp":"rightOp"]=">=":i[s?"leftOp":"rightOp"]=">";else if(e[2].value===61)i[s?"leftOp":"rightOp"]="=";else throw new Error("Invalid range");if(s)i.leftToken=e[1];else if(e[1].type==="<ident-token>")i.featureName=e[1].value;else throw new Error("Invalid range");var l=2+((o=(t=i[s?"leftOp":"rightOp"])===null||t===void 0?void 0:t.length)!==null&&o!==void 0?o:0),p=e[l];if(s)if(p.type==="<ident-token>"){if(i.featureName=p.value,e.length>=7){var c=e[l+1],d=e[l+2];if(c.type==="<delim-token>"){var m=c.value;if(m===60)d.type==="<delim-token>"&&d.value===61&&!d.wsBefore?i.rightOp="<=":i.rightOp="<";else if(m===62)d.type==="<delim-token>"&&d.value===61&&!d.wsBefore?i.rightOp=">=":i.rightOp=">";else throw new Error("Invalid range");var u=e[l+1+((n=(a=i.rightOp)===null||a===void 0?void 0:a.length)!==null&&n!==void 0?n:0)];i.rightToken=u;}else throw new Error("Invalid range")}else if(l+2!==e.length)throw new Error("Invalid range")}else throw new Error("Invalid range");else i.rightToken=p;var y=null,b=i.leftToken,f=i.leftOp,g=i.featureName,v=i.rightOp,h=i.rightToken,_=null;if(b!==null){if(b.type==="<ident-token>"){var C=b.type,P=b.value;P==="infinite"&&(_={type:C,value:P});}else if(b.type==="<number-token>"||b.type==="<dimension-token>"||b.type==="<ratio-token>"){b.wsBefore,b.wsAfter;var w=ni(b,["wsBefore","wsAfter"]);_=w;}}var z=null;if(h!==null){if(h.type==="<ident-token>"){var C=h.type,P=h.value;P==="infinite"&&(z={type:C,value:P});}else if(h.type==="<number-token>"||h.type==="<dimension-token>"||h.type==="<ratio-token>"){h.wsBefore,h.wsAfter;var k=ni(h,["wsBefore","wsAfter"]);z=k;}}if(_!==null&&z!==null)if((f==="<"||f==="<=")&&(v==="<"||v==="<="))y={leftToken:_,leftOp:f,featureName:g,rightOp:v,rightToken:z};else if((f===">"||f===">=")&&(v===">"||v===">="))y={leftToken:_,leftOp:f,featureName:g,rightOp:v,rightToken:z};else throw new Error("Invalid range");else _===null&&f===null&&v!==null&&z!==null?y={leftToken:_,leftOp:f,featureName:g,rightOp:v,rightToken:z}:_!==null&&f!==null&&v===null&&z===null&&(y={leftToken:_,leftOp:f,featureName:g,rightOp:v,rightToken:z});return y}else throw new Error("Invalid range")};function o6(r,e){if(typeof r!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var o=t.call(r,e||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return (e==="string"?String:Number)(r)}function a6(r){var e=o6(r,"string");return typeof e=="symbol"?e:String(e)}function n6(r,e,t){return e=a6(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function Pc(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);e&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable})),t.push.apply(t,o);}return t}function Xt(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Pc(Object(t),!0).forEach(function(o){n6(r,o,t[o]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):Pc(Object(t)).forEach(function(o){Object.defineProperty(r,o,Object.getOwnPropertyDescriptor(t,o));});}return r}function i6(r,e){if(r==null)return {};var t={},o=Object.keys(r),a,n;for(n=0;n<o.length;n++)a=o[n],!(e.indexOf(a)>=0)&&(t[a]=r[a]);return t}function si(r,e){if(r==null)return {};var t=i6(r,e),o,a;if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);for(a=0;a<n.length;a++)o=n[a],!(e.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(r,o)&&(t[o]=r[o]);}return t}function Fr(r,e){for(var t in r)e(r[t],t);}function Gt(r,e){var t={};for(var o in r)e.indexOf(o)===-1&&(t[o]=r[o]);return t}function s6(r,e){var t={};for(var o in r)t[e(r[o],o)]=r[o];return t}var wc;function l6(r){return r.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var p6=(r,e)=>{var t=()=>{var a=new RegExp(".".concat(l6((0, pi.default)(e,{isIdentifier:!0}))),"g");return r.replace(a,"&")},o;try{o=oi(r);}catch{throw new Error("Invalid selector: ".concat(t()))}o.forEach(a=>{try{for(var n=a.length-1;n>=-1;n--){if(!a[n])throw new Error;var i=a[n];if(i.type==="child"||i.type==="parent"||i.type==="sibling"||i.type==="adjacent"||i.type==="descendant")throw new Error;if(i.type==="attribute"&&i.name==="class"&&i.value===e)return}}catch{throw new Error(fa(wc||(wc=ma([`
21
21
  Invalid selector: `,`
22
22
 
23
23
  Style selectors must target the '&' character (along with any modifiers), e.g. `," or ",`.
@@ -27,17 +27,17 @@ Invalid media condition`));var m=r(e.slice(a+2),t,d.value);return {operator:d.va
27
27
  If your selector is targeting another class, you should move it to the style definition for that class, e.g. given we have styles for 'parent' and 'child' elements, instead of adding a selector of `,") to 'parent', you should add ",` to 'child').
28
28
 
29
29
  If your selector is targeting something global, use the 'globalStyle' function instead, e.g. if you wanted to write `,", you should instead write 'globalStyle(",`, { ... })'
30
- `])),t(),"`${parent} &`","`${parent} &:hover`","`& ${child}`","`${parent} &`","`& h1`","`${parent} h1`"))}});},ua=class r{constructor(){this.ruleset=new Map,this.precedenceLookup=new Map;}findOrCreateCondition(e){var t=this.ruleset.get(e);return t||(t={query:e,rules:[],children:new r},this.ruleset.set(e,t)),t}getConditionalRulesetByPath(e){var t=this;for(var o of e){var a=t.findOrCreateCondition(o);t=a.children;}return t}addRule(e,t,o){var a=this.getConditionalRulesetByPath(o),n=a.findOrCreateCondition(t);if(!n)throw new Error("Failed to add conditional rule");n.rules.push(e);}addConditionPrecedence(e,t){for(var o=this.getConditionalRulesetByPath(e),a=0;a<t.length;a++){var n,i=t[a],s=(n=o.precedenceLookup.get(i))!==null&&n!==void 0?n:new Set;for(var l of t.slice(a+1))s.add(l);o.precedenceLookup.set(i,s);}}isCompatible(e){for(var[t,o]of this.precedenceLookup.entries())for(var a of o){var n;if((n=e.precedenceLookup.get(a))!==null&&n!==void 0&&n.has(t))return !1}for(var{query:i,children:s}of e.ruleset.values()){var l=this.ruleset.get(i);if(l&&!l.children.isCompatible(s))return !1}return !0}merge(e){for(var{query:t,rules:o,children:a}of e.ruleset.values()){var n=this.ruleset.get(t);n?(n.rules.push(...o),n.children.merge(a)):this.ruleset.set(t,{query:t,rules:o,children:a});}for(var[i,s]of e.precedenceLookup.entries()){var l,p=(l=this.precedenceLookup.get(i))!==null&&l!==void 0?l:new Set;this.precedenceLookup.set(i,new Set([...p,...s]));}}mergeIfCompatible(e){return this.isCompatible(e)?(this.merge(e),!0):!1}getSortedRuleset(){var e=this,t=[],o=function(s){var l=e.ruleset.get(a);if(!l)throw new Error("Can't find condition for ".concat(a));var p=t.findIndex(c=>s.has(c.query));p>-1?t.splice(p,0,l):t.push(l);};for(var[a,n]of this.precedenceLookup.entries())o(n);return t}renderToArray(){var e=[];for(var{query:t,rules:o,children:a}of this.getSortedRuleset()){var n={};for(var i of o)n[i.selector]=qt(qt({},n[i.selector]),i.rule);Object.assign(n,...a.renderToArray()),e.push({[t]:n});}return e}},yc={":-moz-any-link":!0,":-moz-full-screen":!0,":-moz-placeholder":!0,":-moz-read-only":!0,":-moz-read-write":!0,":-ms-fullscreen":!0,":-ms-input-placeholder":!0,":-webkit-any-link":!0,":-webkit-full-screen":!0,"::-moz-color-swatch":!0,"::-moz-list-bullet":!0,"::-moz-list-number":!0,"::-moz-page-sequence":!0,"::-moz-page":!0,"::-moz-placeholder":!0,"::-moz-progress-bar":!0,"::-moz-range-progress":!0,"::-moz-range-thumb":!0,"::-moz-range-track":!0,"::-moz-scrolled-page-sequence":!0,"::-moz-selection":!0,"::-ms-backdrop":!0,"::-ms-browse":!0,"::-ms-check":!0,"::-ms-clear":!0,"::-ms-fill-lower":!0,"::-ms-fill-upper":!0,"::-ms-fill":!0,"::-ms-reveal":!0,"::-ms-thumb":!0,"::-ms-ticks-after":!0,"::-ms-ticks-before":!0,"::-ms-tooltip":!0,"::-ms-track":!0,"::-ms-value":!0,"::-webkit-backdrop":!0,"::-webkit-calendar-picker-indicator":!0,"::-webkit-inner-spin-button":!0,"::-webkit-input-placeholder":!0,"::-webkit-meter-bar":!0,"::-webkit-meter-even-less-good-value":!0,"::-webkit-meter-inner-element":!0,"::-webkit-meter-optimum-value":!0,"::-webkit-meter-suboptimum-value":!0,"::-webkit-outer-spin-button":!0,"::-webkit-progress-bar":!0,"::-webkit-progress-inner-element":!0,"::-webkit-progress-inner-value":!0,"::-webkit-progress-value":!0,"::-webkit-resizer":!0,"::-webkit-scrollbar-button":!0,"::-webkit-scrollbar-corner":!0,"::-webkit-scrollbar-thumb":!0,"::-webkit-scrollbar-track-piece":!0,"::-webkit-scrollbar-track":!0,"::-webkit-scrollbar":!0,"::-webkit-search-cancel-button":!0,"::-webkit-search-results-button":!0,"::-webkit-slider-runnable-track":!0,"::-webkit-slider-thumb":!0,"::after":!0,"::backdrop":!0,"::before":!0,"::cue":!0,"::file-selector-button":!0,"::first-letter":!0,"::first-line":!0,"::grammar-error":!0,"::marker":!0,"::placeholder":!0,"::selection":!0,"::spelling-error":!0,"::target-text":!0,"::view-transition-group":!0,"::view-transition-image-pair":!0,"::view-transition-new":!0,"::view-transition-old":!0,"::view-transition":!0,":active":!0,":after":!0,":any-link":!0,":before":!0,":blank":!0,":checked":!0,":default":!0,":defined":!0,":disabled":!0,":empty":!0,":enabled":!0,":first-child":!0,":first-letter":!0,":first-line":!0,":first-of-type":!0,":first":!0,":focus-visible":!0,":focus-within":!0,":focus":!0,":fullscreen":!0,":hover":!0,":in-range":!0,":indeterminate":!0,":invalid":!0,":last-child":!0,":last-of-type":!0,":left":!0,":link":!0,":only-child":!0,":only-of-type":!0,":optional":!0,":out-of-range":!0,":placeholder-shown":!0,":read-only":!0,":read-write":!0,":required":!0,":right":!0,":root":!0,":scope":!0,":target":!0,":valid":!0,":visited":!0},w6=Object.keys(yc),k6=yc,mc,fc=(r,e)=>new Error(pa(mc||(mc=la([`
30
+ `])),t(),"`${parent} &`","`${parent} &:hover`","`& ${child}`","`${parent} &`","`& h1`","`${parent} h1`"))}});},ga=class r{constructor(){this.ruleset=new Map,this.precedenceLookup=new Map;}findOrCreateCondition(e){var t=this.ruleset.get(e);return t||(t={query:e,rules:[],children:new r},this.ruleset.set(e,t)),t}getConditionalRulesetByPath(e){var t=this;for(var o of e){var a=t.findOrCreateCondition(o);t=a.children;}return t}addRule(e,t,o){var a=this.getConditionalRulesetByPath(o),n=a.findOrCreateCondition(t);if(!n)throw new Error("Failed to add conditional rule");n.rules.push(e);}addConditionPrecedence(e,t){for(var o=this.getConditionalRulesetByPath(e),a=0;a<t.length;a++){var n,i=t[a],s=(n=o.precedenceLookup.get(i))!==null&&n!==void 0?n:new Set;for(var l of t.slice(a+1))s.add(l);o.precedenceLookup.set(i,s);}}isCompatible(e){for(var[t,o]of this.precedenceLookup.entries())for(var a of o){var n;if((n=e.precedenceLookup.get(a))!==null&&n!==void 0&&n.has(t))return !1}for(var{query:i,children:s}of e.ruleset.values()){var l=this.ruleset.get(i);if(l&&!l.children.isCompatible(s))return !1}return !0}merge(e){for(var{query:t,rules:o,children:a}of e.ruleset.values()){var n=this.ruleset.get(t);n?(n.rules.push(...o),n.children.merge(a)):this.ruleset.set(t,{query:t,rules:o,children:a});}for(var[i,s]of e.precedenceLookup.entries()){var l,p=(l=this.precedenceLookup.get(i))!==null&&l!==void 0?l:new Set;this.precedenceLookup.set(i,new Set([...p,...s]));}}mergeIfCompatible(e){return this.isCompatible(e)?(this.merge(e),!0):!1}getSortedRuleset(){var e=this,t=[],o=function(s){var l=e.ruleset.get(a);if(!l)throw new Error("Can't find condition for ".concat(a));var p=t.findIndex(c=>s.has(c.query));p>-1?t.splice(p,0,l):t.push(l);};for(var[a,n]of this.precedenceLookup.entries())o(n);return t}renderToArray(){var e=[];for(var{query:t,rules:o,children:a}of this.getSortedRuleset()){var n={};for(var i of o)n[i.selector]=Xt(Xt({},n[i.selector]),i.rule);Object.assign(n,...a.renderToArray()),e.push({[t]:n});}return e}},Ic={":-moz-any-link":!0,":-moz-full-screen":!0,":-moz-placeholder":!0,":-moz-read-only":!0,":-moz-read-write":!0,":-ms-fullscreen":!0,":-ms-input-placeholder":!0,":-webkit-any-link":!0,":-webkit-full-screen":!0,"::-moz-color-swatch":!0,"::-moz-list-bullet":!0,"::-moz-list-number":!0,"::-moz-page-sequence":!0,"::-moz-page":!0,"::-moz-placeholder":!0,"::-moz-progress-bar":!0,"::-moz-range-progress":!0,"::-moz-range-thumb":!0,"::-moz-range-track":!0,"::-moz-scrolled-page-sequence":!0,"::-moz-selection":!0,"::-ms-backdrop":!0,"::-ms-browse":!0,"::-ms-check":!0,"::-ms-clear":!0,"::-ms-fill-lower":!0,"::-ms-fill-upper":!0,"::-ms-fill":!0,"::-ms-reveal":!0,"::-ms-thumb":!0,"::-ms-ticks-after":!0,"::-ms-ticks-before":!0,"::-ms-tooltip":!0,"::-ms-track":!0,"::-ms-value":!0,"::-webkit-backdrop":!0,"::-webkit-calendar-picker-indicator":!0,"::-webkit-inner-spin-button":!0,"::-webkit-input-placeholder":!0,"::-webkit-meter-bar":!0,"::-webkit-meter-even-less-good-value":!0,"::-webkit-meter-inner-element":!0,"::-webkit-meter-optimum-value":!0,"::-webkit-meter-suboptimum-value":!0,"::-webkit-outer-spin-button":!0,"::-webkit-progress-bar":!0,"::-webkit-progress-inner-element":!0,"::-webkit-progress-inner-value":!0,"::-webkit-progress-value":!0,"::-webkit-resizer":!0,"::-webkit-scrollbar-button":!0,"::-webkit-scrollbar-corner":!0,"::-webkit-scrollbar-thumb":!0,"::-webkit-scrollbar-track-piece":!0,"::-webkit-scrollbar-track":!0,"::-webkit-scrollbar":!0,"::-webkit-search-cancel-button":!0,"::-webkit-search-results-button":!0,"::-webkit-slider-runnable-track":!0,"::-webkit-slider-thumb":!0,"::after":!0,"::backdrop":!0,"::before":!0,"::cue":!0,"::file-selector-button":!0,"::first-letter":!0,"::first-line":!0,"::grammar-error":!0,"::marker":!0,"::placeholder":!0,"::selection":!0,"::spelling-error":!0,"::target-text":!0,"::view-transition-group":!0,"::view-transition-image-pair":!0,"::view-transition-new":!0,"::view-transition-old":!0,"::view-transition":!0,":active":!0,":after":!0,":any-link":!0,":before":!0,":blank":!0,":checked":!0,":default":!0,":defined":!0,":disabled":!0,":empty":!0,":enabled":!0,":first-child":!0,":first-letter":!0,":first-line":!0,":first-of-type":!0,":first":!0,":focus-visible":!0,":focus-within":!0,":focus":!0,":fullscreen":!0,":hover":!0,":in-range":!0,":indeterminate":!0,":invalid":!0,":last-child":!0,":last-of-type":!0,":left":!0,":link":!0,":only-child":!0,":only-of-type":!0,":optional":!0,":out-of-range":!0,":placeholder-shown":!0,":read-only":!0,":read-write":!0,":required":!0,":right":!0,":root":!0,":scope":!0,":target":!0,":valid":!0,":visited":!0},c6=Object.keys(Ic),d6=Ic,kc,Sc=(r,e)=>new Error(fa(kc||(kc=ma([`
31
31
  Invalid media query: "`,`"
32
32
 
33
33
  `,`
34
34
 
35
35
  Read more on MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/Media_Queries/Using_media_queries
36
- `])),r,e)),S6=r=>{if(r==="@media ")throw fc(r,"Query is empty");try{cc(r);}catch(e){throw fc(r,e.message)}},I6=["vars"],R6=["content"],bc="__DECLARATION",T6={animationIterationCount:!0,borderImage:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,initialLetter:!0,lineClamp:!0,lineHeight:!0,maxLines:!0,opacity:!0,order:!0,orphans:!0,scale:!0,tabSize:!0,WebkitLineClamp:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,maskBorder:!0,maskBorderOutset:!0,maskBorderSlice:!0,maskBorderWidth:!0,shapeImageThreshold:!0,stopOpacity:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function N6(r){return r.replace(/([A-Z])/g,"-$1").replace(/^ms-/,"-ms-").toLowerCase()}function E6(r,e,t,o){var a=r.slice(0,e),n=r.slice(t);return "".concat(a).concat(o).concat(n)}var L6=" ",Ut=[...w6,"@layer","@media","@supports","@container","selectors"],ti=class{constructor(e,t){this.rules=[],this.conditionalRulesets=[new ua],this.fontFaceRules=[],this.keyframesRules=[],this.propertyRules=[],this.localClassNamesMap=new Map(e.map(o=>[o,o])),this.localClassNamesSearch=new Zp(e),this.layers=new Map,this.composedClassLists=t.map(o=>{var{identifier:a,classList:n}=o;return {identifier:a,regex:RegExp("(".concat(n,")"),"g")}}).reverse();}processCssObj(e){if(e.type==="fontFace"){this.fontFaceRules.push(e.rule);return}if(e.type==="property"){this.propertyRules.push(e);return}if(e.type==="keyframes"){e.rule=Object.fromEntries(Object.entries(e.rule).map(n=>{var[i,s]=n;return [i,this.transformVars(this.transformProperties(s))]})),this.keyframesRules.push(e);return}if(this.currConditionalRuleset=new ua,e.type==="layer"){var t="@layer ".concat(e.name);this.addLayer([t]);}else {var o=$t(e.rule,Ut);this.addRule({selector:e.selector,rule:o}),this.transformLayer(e,e.rule["@layer"]),this.transformMedia(e,e.rule["@media"]),this.transformSupports(e,e.rule["@supports"]),this.transformContainer(e,e.rule["@container"]),this.transformSimplePseudos(e,e.rule),this.transformSelectors(e,e.rule);}var a=this.conditionalRulesets[this.conditionalRulesets.length-1];a.mergeIfCompatible(this.currConditionalRuleset)||this.conditionalRulesets.push(this.currConditionalRuleset);}addConditionalRule(e,t){var o=this.transformVars(this.transformProperties(e.rule)),a=this.transformSelector(e.selector);if(!this.currConditionalRuleset)throw new Error("Couldn't add conditional rule");var n=t[t.length-1],i=t.slice(0,t.length-1);this.currConditionalRuleset.addRule({selector:a,rule:o},n,i);}addRule(e){var t=this.transformVars(this.transformProperties(e.rule)),o=this.transformSelector(e.selector);this.rules.push({selector:o,rule:t});}addLayer(e){var t=e.join(" - ");this.layers.set(t,e);}transformProperties(e){return this.transformContent(this.pixelifyProperties(e))}pixelifyProperties(e){return Dr(e,(t,o)=>{typeof t=="number"&&t!==0&&!T6[o]&&(e[o]="".concat(t,"px"));}),e}transformVars(e){var{vars:t}=e,o=ei(e,I6);return t?qt(qt({},C6(t,(a,n)=>Xp(n))),o):o}transformContent(e){var{content:t}=e,o=ei(e,R6);if(typeof t>"u")return o;var a=Array.isArray(t)?t:[t];return qt({content:a.map(n=>n&&(n.includes('"')||n.includes("'")||/^([A-Za-z\-]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)(\s|$)/.test(n))?n:'"'.concat(n,'"'))},o)}transformClassname(e){return ".".concat((0, ri.default)(e,{isIdentifier:!0}))}transformSelector(e){var t=e,o=function(b){t=t.replace(n,()=>(Wn(b),b));};for(var{identifier:a,regex:n}of this.composedClassLists)o(a);if(this.localClassNamesMap.has(t))return this.transformClassname(t);for(var i=this.localClassNamesSearch.search(t),s=t.length,l=i.length-1;l>=0;l--){var[p,[c]]=i[l],d=p-c.length+1,m=s<=p;m||(s=d,t[d-1]!=="."&&(t=E6(t,d,p+1,this.transformClassname(c))));}return t}transformSelectors(e,t,o){Dr(t.selectors,(a,n)=>{if(e.type!=="local")throw new Error("Selectors are not allowed within ".concat(e.type==="global"?'"globalStyle"':'"selectors"'));var i=this.transformSelector(n.replace(RegExp("&","g"),e.selector));P6(i,e.selector);var s={selector:i,rule:$t(a,Ut)};o?this.addConditionalRule(s,o):this.addRule(s);var l={type:"selector",selector:i,rule:a};this.transformLayer(l,a["@layer"],o),this.transformSupports(l,a["@supports"],o),this.transformMedia(l,a["@media"],o),this.transformContainer(l,a["@container"],o);});}transformMedia(e,t){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(t){var a;(a=this.currConditionalRuleset)===null||a===void 0||a.addConditionPrecedence(o,Object.keys(t).map(p=>"@media ".concat(p)));for(var[n,i]of Object.entries(t)){var s="@media ".concat(n);S6(s);var l=[...o,s];this.addConditionalRule({selector:e.selector,rule:$t(i,Ut)},l),e.type==="local"&&(this.transformSimplePseudos(e,i,l),this.transformSelectors(e,i,l)),this.transformLayer(e,i["@layer"],l),this.transformSupports(e,i["@supports"],l),this.transformContainer(e,i["@container"],l);}}}transformContainer(e,t){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(t){var a;(a=this.currConditionalRuleset)===null||a===void 0||a.addConditionPrecedence(o,Object.keys(t).map(n=>"@container ".concat(n))),Dr(t,(n,i)=>{var s="@container ".concat(i),l=[...o,s];this.addConditionalRule({selector:e.selector,rule:$t(n,Ut)},l),e.type==="local"&&(this.transformSimplePseudos(e,n,l),this.transformSelectors(e,n,l)),this.transformLayer(e,n["@layer"],l),this.transformSupports(e,n["@supports"],l),this.transformMedia(e,n["@media"],l);});}}transformLayer(e,t){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(t){var a;(a=this.currConditionalRuleset)===null||a===void 0||a.addConditionPrecedence(o,Object.keys(t).map(n=>"@layer ".concat(n))),Dr(t,(n,i)=>{var s=[...o,"@layer ".concat(i)];this.addLayer(s),this.addConditionalRule({selector:e.selector,rule:$t(n,Ut)},s),e.type==="local"&&(this.transformSimplePseudos(e,n,s),this.transformSelectors(e,n,s)),this.transformMedia(e,n["@media"],s),this.transformSupports(e,n["@supports"],s),this.transformContainer(e,n["@container"],s);});}}transformSupports(e,t){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(t){var a;(a=this.currConditionalRuleset)===null||a===void 0||a.addConditionPrecedence(o,Object.keys(t).map(n=>"@supports ".concat(n))),Dr(t,(n,i)=>{var s=[...o,"@supports ".concat(i)];this.addConditionalRule({selector:e.selector,rule:$t(n,Ut)},s),e.type==="local"&&(this.transformSimplePseudos(e,n,s),this.transformSelectors(e,n,s)),this.transformLayer(e,n["@layer"],s),this.transformMedia(e,n["@media"],s),this.transformContainer(e,n["@container"],s);});}}transformSimplePseudos(e,t,o){for(var a of Object.keys(t))if(k6[a]){if(e.type!=="local")throw new Error("Simple pseudos are not valid in ".concat(e.type==="global"?'"globalStyle"':'"selectors"'));o?this.addConditionalRule({selector:"".concat(e.selector).concat(a),rule:t[a]},o):this.addRule({conditions:o,selector:"".concat(e.selector).concat(a),rule:t[a]});}}toCss(){var e=[];for(var t of this.fontFaceRules)e.push(Qe({"@font-face":t}));for(var o of this.propertyRules)e.push(Qe({["@property ".concat(o.name)]:o.rule}));for(var a of this.keyframesRules)e.push(Qe({["@keyframes ".concat(a.name)]:a.rule}));for(var n of this.layers.values()){var[i,...s]=n.reverse(),l={[i]:bc};for(var p of s)l={[p]:l};e.push(Qe(l));}for(var c of this.rules)e.push(Qe({[c.selector]:c.rule}));for(var d of this.conditionalRulesets)for(var m of d.renderToArray())e.push(Qe(m));return e.filter(Boolean)}};function Qe(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",t=[],o=function(i){var s=r[i];if(s&&Array.isArray(s))t.push(...s.map(p=>Qe({[i]:p},e)));else if(s&&typeof s=="object"){var l=Object.keys(s).length===0;l||t.push("".concat(e).concat(i,` {
37
- `).concat(Qe(s,e+L6),`
38
- `).concat(e,"}"));}else s===bc?t.push("".concat(e).concat(i,";")):t.push("".concat(e).concat(i.startsWith("--")?i:N6(i),": ").concat(s,";"));};for(var a of Object.keys(r))o(a);return t.join(`
39
- `)}function gc(r){var{localClassNames:e,cssObjs:t,composedClassLists:o}=r,a=new ti(e,o);for(var n of t)a.processCssObj(n);return a.toCss()}var Kt=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,hc=new Set,oi=typeof process=="object"&&process?process:{},_c=(r,e,t,o)=>{typeof oi.emitWarning=="function"?oi.emitWarning(r,e,t,o):console.error(`[${t}] ${e}: ${r}`);},ma=globalThis.AbortController,vc=globalThis.AbortSignal;if(typeof ma>"u"){vc=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(o,a){this._onabort.push(a);}},ma=class{constructor(){e();}signal=new vc;abort(o){if(!this.signal.aborted){this.signal.reason=o,this.signal.aborted=!0;for(let a of this.signal._onabort)a(o);this.signal.onabort?.(o);}}};let r=oi.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{r&&(r=!1,_c("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e));};}var M6=r=>!hc.has(r),et=r=>r&&r===Math.floor(r)&&r>0&&isFinite(r),zc=r=>et(r)?r<=Math.pow(2,8)?Uint8Array:r<=Math.pow(2,16)?Uint16Array:r<=Math.pow(2,32)?Uint32Array:r<=Number.MAX_SAFE_INTEGER?Gt:null:null,Gt=class extends Array{constructor(e){super(e),this.fill(0);}},ai=class r{heap;length;static#l=!1;static create(e){let t=zc(e);if(!t)return [];r.#l=!0;let o=new r(e,t);return r.#l=!1,o}constructor(e,t){if(!r.#l)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new t(e),this.length=0;}push(e){this.heap[this.length++]=e;}pop(){return this.heap[--this.length]}},fa=class r{#l;#d;#y;#b;#T;#N;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#a;#g;#o;#r;#e;#p;#u;#s;#n;#v;#i;#h;#_;#m;#z;#k;#c;static unsafeExposeInternals(e){return {starts:e.#_,ttls:e.#m,sizes:e.#h,keyMap:e.#o,keyList:e.#r,valList:e.#e,next:e.#p,prev:e.#u,get head(){return e.#s},get tail(){return e.#n},free:e.#v,isBackgroundFetch:t=>e.#t(t),backgroundFetch:(t,o,a,n)=>e.#M(t,o,a,n),moveToTail:t=>e.#R(t),indexes:t=>e.#C(t),rindexes:t=>e.#x(t),isStale:t=>e.#f(t)}}get max(){return this.#l}get maxSize(){return this.#d}get calculatedSize(){return this.#g}get size(){return this.#a}get fetchMethod(){return this.#T}get memoMethod(){return this.#N}get dispose(){return this.#y}get disposeAfter(){return this.#b}constructor(e){let{max:t=0,ttl:o,ttlResolution:a=1,ttlAutopurge:n,updateAgeOnGet:i,updateAgeOnHas:s,allowStale:l,dispose:p,disposeAfter:c,noDisposeOnSet:d,noUpdateTTL:m,maxSize:u=0,maxEntrySize:b=0,sizeCalculation:y,fetchMethod:f,memoMethod:g,noDeleteOnFetchRejection:_,noDeleteOnStaleGet:v,allowStaleOnFetchRejection:h,allowStaleOnFetchAbort:x,ignoreFetchAbort:w}=e;if(t!==0&&!et(t))throw new TypeError("max option must be a nonnegative integer");let P=t?zc(t):Array;if(!P)throw new Error("invalid max value: "+t);if(this.#l=t,this.#d=u,this.maxEntrySize=b||this.#d,this.sizeCalculation=y,this.sizeCalculation){if(!this.#d&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(g!==void 0&&typeof g!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#N=g,f!==void 0&&typeof f!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#T=f,this.#k=!!f,this.#o=new Map,this.#r=new Array(t).fill(void 0),this.#e=new Array(t).fill(void 0),this.#p=new P(t),this.#u=new P(t),this.#s=0,this.#n=0,this.#v=ai.create(t),this.#a=0,this.#g=0,typeof p=="function"&&(this.#y=p),typeof c=="function"?(this.#b=c,this.#i=[]):(this.#b=void 0,this.#i=void 0),this.#z=!!this.#y,this.#c=!!this.#b,this.noDisposeOnSet=!!d,this.noUpdateTTL=!!m,this.noDeleteOnFetchRejection=!!_,this.allowStaleOnFetchRejection=!!h,this.allowStaleOnFetchAbort=!!x,this.ignoreFetchAbort=!!w,this.maxEntrySize!==0){if(this.#d!==0&&!et(this.#d))throw new TypeError("maxSize must be a positive integer if specified");if(!et(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#H();}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!v,this.updateAgeOnGet=!!i,this.updateAgeOnHas=!!s,this.ttlResolution=et(a)||a===0?a:1,this.ttlAutopurge=!!n,this.ttl=o||0,this.ttl){if(!et(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#D();}if(this.#l===0&&this.ttl===0&&this.#d===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#l&&!this.#d){let z="LRU_CACHE_UNBOUNDED";M6(z)&&(hc.add(z),_c("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",z,r));}}getRemainingTTL(e){return this.#o.has(e)?1/0:0}#D(){let e=new Gt(this.#l),t=new Gt(this.#l);this.#m=e,this.#_=t,this.#A=(n,i,s=Kt.now())=>{if(t[n]=i!==0?s:0,e[n]=i,i!==0&&this.ttlAutopurge){let l=setTimeout(()=>{this.#f(n)&&this.#P(this.#r[n],"expire");},i+1);l.unref&&l.unref();}},this.#S=n=>{t[n]=e[n]!==0?Kt.now():0;},this.#w=(n,i)=>{if(e[i]){let s=e[i],l=t[i];if(!s||!l)return;n.ttl=s,n.start=l,n.now=o||a();let p=n.now-l;n.remainingTTL=s-p;}};let o=0,a=()=>{let n=Kt.now();if(this.ttlResolution>0){o=n;let i=setTimeout(()=>o=0,this.ttlResolution);i.unref&&i.unref();}return n};this.getRemainingTTL=n=>{let i=this.#o.get(n);if(i===void 0)return 0;let s=e[i],l=t[i];if(!s||!l)return 1/0;let p=(o||a())-l;return s-p},this.#f=n=>{let i=t[n],s=e[n];return !!s&&!!i&&(o||a())-i>s};}#S=()=>{};#w=()=>{};#A=()=>{};#f=()=>!1;#H(){let e=new Gt(this.#l);this.#g=0,this.#h=e,this.#I=t=>{this.#g-=e[t],e[t]=0;},this.#B=(t,o,a,n)=>{if(this.#t(o))return 0;if(!et(a))if(n){if(typeof n!="function")throw new TypeError("sizeCalculation must be a function");if(a=n(o,t),!et(a))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return a},this.#E=(t,o,a)=>{if(e[t]=o,this.#d){let n=this.#d-e[t];for(;this.#g>n;)this.#L(!0);}this.#g+=e[t],a&&(a.entrySize=o,a.totalCalculatedSize=this.#g);};}#I=e=>{};#E=(e,t,o)=>{};#B=(e,t,o,a)=>{if(o||a)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#C({allowStale:e=this.allowStale}={}){if(this.#a)for(let t=this.#n;!(!this.#O(t)||((e||!this.#f(t))&&(yield t),t===this.#s));)t=this.#u[t];}*#x({allowStale:e=this.allowStale}={}){if(this.#a)for(let t=this.#s;!(!this.#O(t)||((e||!this.#f(t))&&(yield t),t===this.#n));)t=this.#p[t];}#O(e){return e!==void 0&&this.#o.get(this.#r[e])===e}*entries(){for(let e of this.#C())this.#e[e]!==void 0&&this.#r[e]!==void 0&&!this.#t(this.#e[e])&&(yield [this.#r[e],this.#e[e]]);}*rentries(){for(let e of this.#x())this.#e[e]!==void 0&&this.#r[e]!==void 0&&!this.#t(this.#e[e])&&(yield [this.#r[e],this.#e[e]]);}*keys(){for(let e of this.#C()){let t=this.#r[e];t!==void 0&&!this.#t(this.#e[e])&&(yield t);}}*rkeys(){for(let e of this.#x()){let t=this.#r[e];t!==void 0&&!this.#t(this.#e[e])&&(yield t);}}*values(){for(let e of this.#C())this.#e[e]!==void 0&&!this.#t(this.#e[e])&&(yield this.#e[e]);}*rvalues(){for(let e of this.#x())this.#e[e]!==void 0&&!this.#t(this.#e[e])&&(yield this.#e[e]);}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(e,t={}){for(let o of this.#C()){let a=this.#e[o],n=this.#t(a)?a.__staleWhileFetching:a;if(n!==void 0&&e(n,this.#r[o],this))return this.get(this.#r[o],t)}}forEach(e,t=this){for(let o of this.#C()){let a=this.#e[o],n=this.#t(a)?a.__staleWhileFetching:a;n!==void 0&&e.call(t,n,this.#r[o],this);}}rforEach(e,t=this){for(let o of this.#x()){let a=this.#e[o],n=this.#t(a)?a.__staleWhileFetching:a;n!==void 0&&e.call(t,n,this.#r[o],this);}}purgeStale(){let e=!1;for(let t of this.#x({allowStale:!0}))this.#f(t)&&(this.#P(this.#r[t],"expire"),e=!0);return e}info(e){let t=this.#o.get(e);if(t===void 0)return;let o=this.#e[t],a=this.#t(o)?o.__staleWhileFetching:o;if(a===void 0)return;let n={value:a};if(this.#m&&this.#_){let i=this.#m[t],s=this.#_[t];if(i&&s){let l=i-(Kt.now()-s);n.ttl=l,n.start=Date.now();}}return this.#h&&(n.size=this.#h[t]),n}dump(){let e=[];for(let t of this.#C({allowStale:!0})){let o=this.#r[t],a=this.#e[t],n=this.#t(a)?a.__staleWhileFetching:a;if(n===void 0||o===void 0)continue;let i={value:n};if(this.#m&&this.#_){i.ttl=this.#m[t];let s=Kt.now()-this.#_[t];i.start=Math.floor(Date.now()-s);}this.#h&&(i.size=this.#h[t]),e.unshift([o,i]);}return e}load(e){this.clear();for(let[t,o]of e){if(o.start){let a=Date.now()-o.start;o.start=Kt.now()-a;}this.set(t,o.value,o);}}set(e,t,o={}){if(t===void 0)return this.delete(e),this;let{ttl:a=this.ttl,start:n,noDisposeOnSet:i=this.noDisposeOnSet,sizeCalculation:s=this.sizeCalculation,status:l}=o,{noUpdateTTL:p=this.noUpdateTTL}=o,c=this.#B(e,t,o.size||0,s);if(this.maxEntrySize&&c>this.maxEntrySize)return l&&(l.set="miss",l.maxEntrySizeExceeded=!0),this.#P(e,"set"),this;let d=this.#a===0?void 0:this.#o.get(e);if(d===void 0)d=this.#a===0?this.#n:this.#v.length!==0?this.#v.pop():this.#a===this.#l?this.#L(!1):this.#a,this.#r[d]=e,this.#e[d]=t,this.#o.set(e,d),this.#p[this.#n]=d,this.#u[d]=this.#n,this.#n=d,this.#a++,this.#E(d,c,l),l&&(l.set="add"),p=!1;else {this.#R(d);let m=this.#e[d];if(t!==m){if(this.#k&&this.#t(m)){m.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:u}=m;u!==void 0&&!i&&(this.#z&&this.#y?.(u,e,"set"),this.#c&&this.#i?.push([u,e,"set"]));}else i||(this.#z&&this.#y?.(m,e,"set"),this.#c&&this.#i?.push([m,e,"set"]));if(this.#I(d),this.#E(d,c,l),this.#e[d]=t,l){l.set="replace";let u=m&&this.#t(m)?m.__staleWhileFetching:m;u!==void 0&&(l.oldValue=u);}}else l&&(l.set="update");}if(a!==0&&!this.#m&&this.#D(),this.#m&&(p||this.#A(d,a,n),l&&this.#w(l,d)),!i&&this.#c&&this.#i){let m=this.#i,u;for(;u=m?.shift();)this.#b?.(...u);}return this}pop(){try{for(;this.#a;){let e=this.#e[this.#s];if(this.#L(!0),this.#t(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(e!==void 0)return e}}finally{if(this.#c&&this.#i){let e=this.#i,t;for(;t=e?.shift();)this.#b?.(...t);}}}#L(e){let t=this.#s,o=this.#r[t],a=this.#e[t];return this.#k&&this.#t(a)?a.__abortController.abort(new Error("evicted")):(this.#z||this.#c)&&(this.#z&&this.#y?.(a,o,"evict"),this.#c&&this.#i?.push([a,o,"evict"])),this.#I(t),e&&(this.#r[t]=void 0,this.#e[t]=void 0,this.#v.push(t)),this.#a===1?(this.#s=this.#n=0,this.#v.length=0):this.#s=this.#p[t],this.#o.delete(o),this.#a--,t}has(e,t={}){let{updateAgeOnHas:o=this.updateAgeOnHas,status:a}=t,n=this.#o.get(e);if(n!==void 0){let i=this.#e[n];if(this.#t(i)&&i.__staleWhileFetching===void 0)return !1;if(this.#f(n))a&&(a.has="stale",this.#w(a,n));else return o&&this.#S(n),a&&(a.has="hit",this.#w(a,n)),!0}else a&&(a.has="miss");return !1}peek(e,t={}){let{allowStale:o=this.allowStale}=t,a=this.#o.get(e);if(a===void 0||!o&&this.#f(a))return;let n=this.#e[a];return this.#t(n)?n.__staleWhileFetching:n}#M(e,t,o,a){let n=t===void 0?void 0:this.#e[t];if(this.#t(n))return n;let i=new ma,{signal:s}=o;s?.addEventListener("abort",()=>i.abort(s.reason),{signal:i.signal});let l={signal:i.signal,options:o,context:a},p=(y,f=!1)=>{let{aborted:g}=i.signal,_=o.ignoreFetchAbort&&y!==void 0;if(o.status&&(g&&!f?(o.status.fetchAborted=!0,o.status.fetchError=i.signal.reason,_&&(o.status.fetchAbortIgnored=!0)):o.status.fetchResolved=!0),g&&!_&&!f)return d(i.signal.reason);let v=u;return this.#e[t]===u&&(y===void 0?v.__staleWhileFetching?this.#e[t]=v.__staleWhileFetching:this.#P(e,"fetch"):(o.status&&(o.status.fetchUpdated=!0),this.set(e,y,l.options))),y},c=y=>(o.status&&(o.status.fetchRejected=!0,o.status.fetchError=y),d(y)),d=y=>{let{aborted:f}=i.signal,g=f&&o.allowStaleOnFetchAbort,_=g||o.allowStaleOnFetchRejection,v=_||o.noDeleteOnFetchRejection,h=u;if(this.#e[t]===u&&(!v||h.__staleWhileFetching===void 0?this.#P(e,"fetch"):g||(this.#e[t]=h.__staleWhileFetching)),_)return o.status&&h.__staleWhileFetching!==void 0&&(o.status.returnedStale=!0),h.__staleWhileFetching;if(h.__returned===h)throw y},m=(y,f)=>{let g=this.#T?.(e,n,l);g&&g instanceof Promise&&g.then(_=>y(_===void 0?void 0:_),f),i.signal.addEventListener("abort",()=>{(!o.ignoreFetchAbort||o.allowStaleOnFetchAbort)&&(y(void 0),o.allowStaleOnFetchAbort&&(y=_=>p(_,!0)));});};o.status&&(o.status.fetchDispatched=!0);let u=new Promise(m).then(p,c),b=Object.assign(u,{__abortController:i,__staleWhileFetching:n,__returned:void 0});return t===void 0?(this.set(e,b,{...l.options,status:void 0}),t=this.#o.get(e)):this.#e[t]=b,b}#t(e){if(!this.#k)return !1;let t=e;return !!t&&t instanceof Promise&&t.hasOwnProperty("__staleWhileFetching")&&t.__abortController instanceof ma}async fetch(e,t={}){let{allowStale:o=this.allowStale,updateAgeOnGet:a=this.updateAgeOnGet,noDeleteOnStaleGet:n=this.noDeleteOnStaleGet,ttl:i=this.ttl,noDisposeOnSet:s=this.noDisposeOnSet,size:l=0,sizeCalculation:p=this.sizeCalculation,noUpdateTTL:c=this.noUpdateTTL,noDeleteOnFetchRejection:d=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:m=this.allowStaleOnFetchRejection,ignoreFetchAbort:u=this.ignoreFetchAbort,allowStaleOnFetchAbort:b=this.allowStaleOnFetchAbort,context:y,forceRefresh:f=!1,status:g,signal:_}=t;if(!this.#k)return g&&(g.fetch="get"),this.get(e,{allowStale:o,updateAgeOnGet:a,noDeleteOnStaleGet:n,status:g});let v={allowStale:o,updateAgeOnGet:a,noDeleteOnStaleGet:n,ttl:i,noDisposeOnSet:s,size:l,sizeCalculation:p,noUpdateTTL:c,noDeleteOnFetchRejection:d,allowStaleOnFetchRejection:m,allowStaleOnFetchAbort:b,ignoreFetchAbort:u,status:g,signal:_},h=this.#o.get(e);if(h===void 0){g&&(g.fetch="miss");let x=this.#M(e,h,v,y);return x.__returned=x}else {let x=this.#e[h];if(this.#t(x)){let T=o&&x.__staleWhileFetching!==void 0;return g&&(g.fetch="inflight",T&&(g.returnedStale=!0)),T?x.__staleWhileFetching:x.__returned=x}let w=this.#f(h);if(!f&&!w)return g&&(g.fetch="hit"),this.#R(h),a&&this.#S(h),g&&this.#w(g,h),x;let P=this.#M(e,h,v,y),k=P.__staleWhileFetching!==void 0&&o;return g&&(g.fetch=w?"stale":"refresh",k&&w&&(g.returnedStale=!0)),k?P.__staleWhileFetching:P.__returned=P}}async forceFetch(e,t={}){let o=await this.fetch(e,t);if(o===void 0)throw new Error("fetch() returned undefined");return o}memo(e,t={}){let o=this.#N;if(!o)throw new Error("no memoMethod provided to constructor");let{context:a,forceRefresh:n,...i}=t,s=this.get(e,i);if(!n&&s!==void 0)return s;let l=o(e,s,{options:i,context:a});return this.set(e,l,i),l}get(e,t={}){let{allowStale:o=this.allowStale,updateAgeOnGet:a=this.updateAgeOnGet,noDeleteOnStaleGet:n=this.noDeleteOnStaleGet,status:i}=t,s=this.#o.get(e);if(s!==void 0){let l=this.#e[s],p=this.#t(l);return i&&this.#w(i,s),this.#f(s)?(i&&(i.get="stale"),p?(i&&o&&l.__staleWhileFetching!==void 0&&(i.returnedStale=!0),o?l.__staleWhileFetching:void 0):(n||this.#P(e,"expire"),i&&o&&(i.returnedStale=!0),o?l:void 0)):(i&&(i.get="hit"),p?l.__staleWhileFetching:(this.#R(s),a&&this.#S(s),l))}else i&&(i.get="miss");}#F(e,t){this.#u[t]=e,this.#p[e]=t;}#R(e){e!==this.#n&&(e===this.#s?this.#s=this.#p[e]:this.#F(this.#u[e],this.#p[e]),this.#F(this.#n,e),this.#n=e);}delete(e){return this.#P(e,"delete")}#P(e,t){let o=!1;if(this.#a!==0){let a=this.#o.get(e);if(a!==void 0)if(o=!0,this.#a===1)this.#j(t);else {this.#I(a);let n=this.#e[a];if(this.#t(n)?n.__abortController.abort(new Error("deleted")):(this.#z||this.#c)&&(this.#z&&this.#y?.(n,e,t),this.#c&&this.#i?.push([n,e,t])),this.#o.delete(e),this.#r[a]=void 0,this.#e[a]=void 0,a===this.#n)this.#n=this.#u[a];else if(a===this.#s)this.#s=this.#p[a];else {let i=this.#u[a];this.#p[i]=this.#p[a];let s=this.#p[a];this.#u[s]=this.#u[a];}this.#a--,this.#v.push(a);}}if(this.#c&&this.#i?.length){let a=this.#i,n;for(;n=a?.shift();)this.#b?.(...n);}return o}clear(){return this.#j("delete")}#j(e){for(let t of this.#x({allowStale:!0})){let o=this.#e[t];if(this.#t(o))o.__abortController.abort(new Error("deleted"));else {let a=this.#r[t];this.#z&&this.#y?.(o,a,e),this.#c&&this.#i?.push([o,a,e]);}}if(this.#o.clear(),this.#e.fill(void 0),this.#r.fill(void 0),this.#m&&this.#_&&(this.#m.fill(0),this.#_.fill(0)),this.#h&&this.#h.fill(0),this.#s=0,this.#n=0,this.#v.length=0,this.#g=0,this.#a=0,this.#c&&this.#i){let t=this.#i,o;for(;o=t?.shift();)this.#b?.(...o);}}};fn(Gn());fn(wc());var kc=new Set,Sc=[],li=[],o5={appendCss:r=>{li.push(r);},registerClassName:r=>{kc.add(r);},registerComposition:r=>{Sc.push(r);},markCompositionUsed:()=>{},onEndFileScope:r=>{var e=gc({localClassNames:Array.from(kc),composedClassLists:Sc,cssObjs:li}).join(`
40
- `);Wp({fileScope:r,css:e}),li=[];},getIdentOption:()=>process.env.NODE_ENV==="production"?"short":"debug"};typeof window<"u"&&Qp(o5);var Ic=(r,e)=>{for(var t=e-1;t>=0;){if(r[t]==="/")return t;t--;}return -1},a5=r=>{var e,t=r.lastIndexOf(".css");if(t===-1)return "";var o=Ic(r,t);if(e=r.slice(o+1,t),o===-1)return e;var a=Ic(r,o-1),n=r.slice(a+1,o),i=e!=="index"?e:n;return i},n5=()=>{var r=new fa({max:500});return e=>{var t=r.get(e);if(t)return t;var o=a5(e);return r.set(e,o),o}};n5();function i5(r){if(typeof r!="string"||!/^var\(--.*\)$/.test(r))throw new Error("Invalid variable name: ".concat(r))}function Rc(){for(var r="",e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return t.reverse().forEach(a=>{r===""?r=String(a):(i5(a),r=a.replace(/\)$/,", ".concat(r,")")));}),r}function Ec(r,e){let[t,o]=ut.useState({}),a=ut.useRef(!1),{container:n,shouldContainOverlays:i,isContainerPositioned:s}=ut.useContext(ft);ut.useEffect(()=>{if(!r)return;let c=ae(r),d=c.visualViewport,m=()=>{let u=d?.height,b=c.innerHeight-(u||0);if(a.current=b>60,a.current){let y=utils.getActiveElement(r);y&&utils.isInputThatOpensKeyboard(y)&&y.scrollIntoView({behavior:"smooth",block:"center"});}if(e)o({maxHeight:(u||0)*.8,bottom:b});else {let y=`${u||0}px`,f=i?`min(${y}, ${Rc(Wo,y)})`:y;o({maxHeight:`calc(${f} - (2 * ${tokens.themeVars.spacing.xl} + env(safe-area-inset-top) + env(safe-area-inset-bottom)))`,top:a.current?`calc(env(safe-area-inset-top) + ${tokens.themeVars.spacing.xl})`:void 0});}};return m(),d?.addEventListener("resize",m),c.addEventListener("resize",m),()=>{d?.removeEventListener("resize",m),c.removeEventListener("resize",m);}},[r,e,i]);let l=ut.useMemo(()=>({...t,overflow:"auto",position:"relative"}),[t]),p=ut.useMemo(()=>{let c=n?.getBoundingClientRect();return !e&&a.current?{alignItems:"flex-start"}:i?s?{}:{position:"absolute",left:c?.left,top:c?.top,height:c?.height,width:c?.width}:{}},[e,a.current,n,s,i]);return {dialogStyle:l,containerStyle:p}}var ci=ut__default.default.createContext({isDrawer:!1,closeDrawer:()=>{},dialogStyle:{},setDialogElement:()=>{},isWithinModal:!1}),di=ut__default.default.createContext({setIsPopoverSafelyClosed:()=>{}}),Fe=({children:r,className:e,style:t,isDismissable:o=!0,isKeyboardDismissDisabled:a=!1,portalContainer:n,disableAnimation:i,enableDrawer:s=!1,"data-block-id":l,"data-block-class":p,shouldCloseOnInteractOutside:c})=>{let{state:d}=ut__default.default.useContext(yt),[m,u]=ut__default.default.useState(!0),b=ut__default.default.useRef(null),[y,f]=ut__default.default.useState(null),{shouldContainOverlays:g,container:_}=ut.useContext(ft),v=Ze(),h=typeof s=="boolean"&&s||s==="auto"&&v==="mobile";utils.invariant(d,"ModalContent must be a child of Modal");let x=ut__default.default.useRef(null),w=typeof o=="function"?o(h):o,P=typeof a=="function"?a(h):a,{modalProps:z,underlayProps:k}=reactAria.useModalOverlay({isDismissable:m&&w,shouldCloseOnInteractOutside:H=>!_?.contains(H)&&g?!1:c?.(H)??!0,isKeyboardDismissDisabled:P},d,x),{dialogStyle:T,containerStyle:R}=Ec(y,h),N=ut.useMemo(()=>({isDrawer:h,closeDrawer:d.close,dialogStyle:T,dialogRef:b,setDialogElement:f,isWithinModal:!0}),[h,d.close,T,b,f]),S=ut.useMemo(()=>({setIsPopoverSafelyClosed:u}),[u]),I={duration:.3,type:"tween",ease:"easeOut"},M={type:"spring",duration:.3},F={open:{opacity:1,transform:h?"translateY(0%)":"scale(1)"},closed:i?{opacity:1,transform:h?"translateY(0%)":"scale(1)"}:{opacity:0,transform:h?"translateY(100%)":"scale(0.95)"}};return jsxRuntime.jsx(react.AnimatePresence,{initial:!1,children:d.isOpen?jsxRuntime.jsx(ci.Provider,{value:N,children:jsxRuntime.jsx(di.Provider,{value:S,children:jsxRuntime.jsxs(xe,{className:utils.classNames(qp({enableDrawer:h,shouldContainOverlays:g}),e),"data-block-id":l,"data-block-class":p,style:{...t,...R},portalContainer:n,children:[jsxRuntime.jsx(react.motion.div,{...k,variants:{open:{opacity:1},closed:{opacity:i?1:0}},initial:"closed",animate:"open",exit:"closed","data-testid":"underlay",transition:I,className:utils.classNames(Kp({shouldContainOverlays:g}),"BaselineUI-Modal-Underlay")}),jsxRuntime.jsx(react.motion.div,{...z,ref:x,"data-drawer":h,className:utils.classNames(h?$p:Up,"BaselineUI-Modal-Content"),variants:F,transition:h?I:M,initial:"closed",animate:"open",exit:"closed",children:typeof r=="function"?r(d):r})]})})}):null})};var Dc=C({defaultClassName:"cjv3et0 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6g1 _1yep5z6lt _1yep5z6lv",variantClassNames:{size:{sm:"cjv3et1",md:"cjv3et2",lg:"cjv3et3",content:"cjv3et4"},variant:{primary:"_1yep5z6131",ghost:"cjv3et6"},overlayType:{modal:"cjv3et7",popover:"cjv3et8"},isDrawer:{true:"cjv3et9 _1yep5z6yc _1yep5z6yd _1yep5z6ye _1yep5z6z0 _1yep5z6z1 _1yep5z6z2 _1yep5z617e"},isFocusVisible:{true:"_1yep5z61po _1yep5z61tf _1yep5z61th _1yep5z61tj"}},defaultVariants:{},compoundVariants:[]});var mi=ut__default.default.createContext({titleProps:{}}),ge=ut__default.default.forwardRef(({children:r,className:e,style:t,inheritDrawer:o,size:a="md",variant:n="primary","data-block-id":i,"data-block-class":s,drawerBackground:l,...p},c)=>{let d=ut__default.default.useRef(null),m=ut__default.default.useRef(null),{isDrawer:u,closeDrawer:b,dialogStyle:y,setDialogElement:f,isWithinModal:g}=ut.useContext(ci),[_,v]=ut__default.default.useState(""),{focusProps:h,isFocusVisible:x}=reactAria.useFocusRing();ut.useLayoutEffect(()=>{let k=m.current?.getRootNode(),T=p["aria-label"]||"";p["aria-labelledby"]&&(T=k?.querySelector(`#${p["aria-labelledby"].replaceAll(":",String.raw`\:`)}`)?.textContent||""),v(T);},[p]);let{dialogProps:w,titleProps:P}=reactAria.useDialog(p,d),z=ut.useMemo(()=>({titleProps:P}),[P]);return u&&o?jsxRuntime.jsx(ia,{title:_,onCloseRequest:b,className:e,style:y,...p,"data-drawer":!0,"data-block-id":i,"data-block-class":s,ref:L(m,c,k=>{f(k);}),background:l,children:r}):jsxRuntime.jsx(mi.Provider,{value:z,children:jsxRuntime.jsx("section",{...reactAria.mergeProps(w,h),"data-block-id":i,"data-block-class":s,"data-focus-visible":x,"data-overlay-type":g?"modal":"popover",ref:L(d,c,k=>{f(k);}),style:{...y,...t},className:utils.classNames(Dc({size:u?"content":a,variant:n,isDrawer:u,isFocusVisible:x,overlayType:g?"modal":"popover"}),"BaselineUI-Dialog",e),children:r})})});ge.displayName="Dialog";var Ac=ut__default.default.forwardRef(({children:r,className:e,style:t},o)=>{let{titleProps:a}=ut.useContext(mi);return ut__default.default.isValidElement(r)?ut__default.default.cloneElement(r,{...a,ref:o,className:utils.classNames(r.props.className,e),style:{...r.props.style,...t}}):jsxRuntime.jsx("h3",{...a,ref:o,className:e,style:t,children:r})});Ac.displayName="DialogTitle";var Oc=({children:r,isOpen:e,popoverContentRef:t,portalContainer:o=document.body,style:a})=>{let[n,i]=ut.useState(!1),[s,l]=ut.useState(null),p=ut.useRef(null),{setIsPopoverSafelyClosed:c}=ut.useContext(di);ut.useEffect(()=>{e?(i(!0),p.current&&clearTimeout(p.current)):p.current=setTimeout(()=>{i(!1);},300);},[e]),ut.useEffect(()=>()=>{p.current&&clearTimeout(p.current);},[]);let d=t.current;return ut.useEffect(()=>{d&&l(d.getBoundingClientRect());},[d]),ut.useEffect(()=>{c(!n);},[n,c]),jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[n?T5__default.default.createPortal(jsxRuntime.jsx("div",{style:{position:"absolute",left:a?.left,top:a?.top,width:s?.width,height:s?.height,zIndex:a?.zIndex?+a.zIndex-1:void 0},className:"BaselineUI-Popover-ClickPreventionLayer"}),o):null,r]})};var{color:Xt}=tokens.themeVars,ze=ut__default.default.forwardRef(({portalClassName:r,portalStyle:e,className:t,style:o,state:a,overlayProps:n,underlayClassName:i,children:s,includeArrow:l=!1,offset:p=2,portalContainer:c,contentContainerClassName:d,contentContainerStyle:m,"data-block-id":u,"data-block-class":b,...y},f)=>{let g=ut__default.default.useRef(null),_=ye(c),v=l?8:0,{underlayProps:h,popoverProps:x,placement:w,arrowProps:P}=reactAria.usePopover({...y,offset:p+v,popoverRef:g,containerPadding:y.containerPadding||0},a);delete x.style?.position;let z=w==="center"?"bottom":w,k=ut.useMemo(()=>({isOpen:a.isOpen}),[a.isOpen]),{transitionProps:T}=Ko({placement:w}),R=ut.useMemo(()=>({...x.style,...dynamic.assignInlineVars({[jl]:`${y.triggerRef?.current?.offsetWidth}px`}),...In(o,k)}),[x.style,y.triggerRef,o,k]);return jsxRuntime.jsx(Oc,{isOpen:a.isOpen,popoverContentRef:g,portalContainer:_,style:x.style,children:a.isOpen?jsxRuntime.jsxs(xe,{portalContainer:_,style:e,className:r,ref:f,"data-block-id":u,"data-block-class":b,children:[!y.isNonModal&&jsxRuntime.jsx("div",{...h,className:utils.classNames(Fl,Lo(i,k),"BaselineUI-Popover-Underlay")}),jsxRuntime.jsxs(react.motion.div,{...reactAria.mergeProps(x,T),style:R,ref:L(g,f),className:utils.classNames(Al,"BaselineUI-Popover-ContentContainer",Lo(t,k)),"data-placement":["top","bottom","left","right"].filter(N=>w?.includes(N)),children:[l?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("svg",{className:utils.classNames(Ml({placement:z}),"BaselineUI-PopoverContent-Arrow"),...P,style:{...P.style,position:"absolute"},width:"15",height:"9",viewBox:"0 0 15 9",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M.019 0h1.228l6.272 7.237L13.791 0h1.228v1h-.772L7.519 8.763.791 1H.019V0Z",fill:Xt.border.medium}),jsxRuntime.jsx("path",{d:"M7.504 6.492 2.248.488h10.511L10.132 3.49 7.504 6.492Z",fill:Xt.background.primary.subtle,stroke:Xt.background.primary.subtle})]}),jsxRuntime.jsxs("svg",{className:utils.classNames(Dl({placement:z}),"BaselineUI-PopoverContent-Arrow-Focused"),width:"15",height:"11",viewBox:"0 0 15 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",...P,style:{...P.style,position:"absolute"},children:[jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.543371 2H0V0H1.45663L7.5 6.97312L13.5434 0H15V2H14.4566L7.5 10.0269L0.543371 2Z",fill:Xt.border.interactive.enabled}),jsxRuntime.jsx("path",{d:"M7.504 6.492 2.248.488h10.511L10.132 3.49 7.504 6.492Z",fill:Xt.background.primary.subtle,stroke:Xt.background.primary.subtle})]})]}):null,jsxRuntime.jsx(reactAria.DismissButton,{onDismiss:a.close}),jsxRuntime.jsx("div",{...n,style:In(m,k),className:utils.classNames(Bl,Lo(d,k),"BaselineUI-Popover-Content"),children:typeof s=="function"?s(a):s}),jsxRuntime.jsx(reactAria.DismissButton,{onDismiss:a.close})]})]}):null})});ze.displayName="PopoverContentCore";var Ee=ut__default.default.forwardRef((r,e)=>{let{state:t,overlayTriggerAria:{overlayProps:o},triggerRef:a}=ut.useContext(Ir);return utils.invariant(a),t?jsxRuntime.jsx(ze,{ref:e,...r,triggerRef:r.triggerRef||a,overlayProps:o,state:t}):null});Ee.displayName="PopoverContent";var Uc=ut__default.default.forwardRef(({className:r,style:e,onChange:t,"data-block-id":o,icon:a,formatValue:n=d=>d,tooltipProps:i,popoverContentProps:s,isDisabled:l,...p},c)=>{let d=ee(c),[m,u]=utils$1.useControlledState(p.value,p.defaultValue||0,t),[b,y]=ut__default.default.useState(!1),{keyboardProps:f}=reactAria.useKeyboard({onKeyDown:v=>{(v.key==="Enter"||v.key==="Escape")&&y(!1);}}),g=n(m||0),_=i?.isDisabled||p["aria-label"]?`${p["aria-label"]}, ${g}`:g.toString();return jsxRuntime.jsxs(E,{display:"flex",flexDirection:"row",gap:"md",paddingX:"md",alignItems:"center",className:utils.classNames("BaselineUI-IconSlider",r),"data-block-id":o,style:e,ref:d,children:[a?jsxRuntime.jsx(a,{size:24,className:tokens.sprinkles({color:"icon.primary"})}):null,jsxRuntime.jsxs(Ae,{type:"dialog",isOpen:b,onOpenChange:y,children:[jsxRuntime.jsx(Be,{children:jsxRuntime.jsx(ne,{text:p["aria-label"],size:"sm",variant:"inverse",includeArrow:!1,isDisabled:l,...i,children:jsxRuntime.jsx(G,{label:g,variant:"popover","aria-label":_,isDisabled:l,style:{fontVariantNumeric:"tabular-nums",minWidth:68,justifyContent:"space-between"}})})}),jsxRuntime.jsx(Ee,{placement:"bottom start",...s,children:jsxRuntime.jsx(ge,{size:"content","aria-label":_,children:jsxRuntime.jsx(reactAria.FocusScope,{autoFocus:!0,children:jsxRuntime.jsx(E,{paddingY:"sm",paddingX:"lg",marginY:"md",style:{width:215},...f,children:jsxRuntime.jsx(Vt,{...p,onChange:v=>{u(v),t?.(v);},value:m})})})})})]})]})});Uc.displayName="IconSlider";var qc=C({defaultClassName:"bpklwa7",variantClassNames:{isReadOnly:{true:"bpklwa8"},isDisabled:{true:"bpklwa9"},isSelected:{true:"bpklwaa"},isFocused:{true:"bpklwab"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isDisabled:!1,isReadOnly:!1},"bpklwac"]]}),Kc=C({defaultClassName:"bpklwae",variantClassNames:{isDisabled:{true:"bpklwaf"},isSelected:{true:"bpklwag"},isReadOnly:{true:"bpklwah"}},defaultVariants:{},compoundVariants:[]}),Gc="bpklwad",Wc=C({defaultClassName:"bpklwa0",variantClassNames:{labelPosition:{top:"bpklwa1",left:"bpklwa2"}},defaultVariants:{},compoundVariants:[]}),Xc="bpklwa6",Yc=C({defaultClassName:"bpklwa3",variantClassNames:{labelPosition:{top:"bpklwa4",left:"bpklwa5"}},defaultVariants:{},compoundVariants:[]});var ed=ut__default.default.forwardRef(({className:r,label:e,labelPosition:t="top",statusLabel:o,style:a,"data-block-id":n,"data-block-class":i,...s},l)=>{let p=ut__default.default.useRef(null),c=reactStately.useToggleState(s),{inputProps:d,isPressed:m}=reactAria.useSwitch({...s,children:e},c,p),{isFocusVisible:u,focusProps:b}=reactAria.useFocusRing(),{hoverProps:y,isHovered:f}=reactAria.useHover({isDisabled:s.isDisabled}),g=utils.filterTruthyValues({"data-block-id":n,"data-block-class":i,"data-focused":u,"data-disabled":s.isDisabled,"data-focus-visible":u,"data-selected":c.isSelected,"data-readonly":s.isReadOnly,"data-hovered":f,"data-pressed":m}),_=jsxRuntime.jsx("div",{className:utils.classNames(qc({isSelected:c.isSelected,isDisabled:!!s.isDisabled,isFocused:u,isReadOnly:!!s.isReadOnly}),"BaselineUI-Switch-Track"),children:jsxRuntime.jsx("div",{className:utils.classNames(Kc({isSelected:c.isSelected,isDisabled:s.isDisabled,isReadOnly:s.isReadOnly}),"BaselineUI-Switch-Knob"),"data-testid":"switch-knob"})});return jsxRuntime.jsxs("label",{...reactAria.mergeProps(g,y),className:utils.classNames(Wc({labelPosition:t}),"BaselineUI-Switch",r),style:a,ref:l,children:[e?jsxRuntime.jsx("span",{className:utils.classNames(Gc,"BaselineUI-Switch-Label"),children:e}):null,jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...reactAria.mergeProps(d,b),ref:p})}),o?jsxRuntime.jsxs("div",{className:Yc({labelPosition:t}),children:[jsxRuntime.jsx("span",{className:utils.classNames("BaselineUI-Switch-Status-Label",Xc),children:c.isSelected?o.on:o.off}),_]}):_]})});ed.displayName="Switch";var td="_19n40yy9",rd=C({defaultClassName:"_19n40yy0",variantClassNames:{size:{lg:"_19n40yy1",md:"_19n40yy2",sm:"_19n40yy3"},variant:{primary:"_19n40yy4",ghost:"_19n40yy5"},isFocused:{true:"_19n40yy6"},hasText:{true:"_19n40yy7"},isDisabled:{true:"_19n40yy8"}},defaultVariants:{},compoundVariants:[]});var cz={sm:_20.SearchIcon,md:_24.SearchIcon,lg:_24.SearchIcon},nd=ut__default.default.forwardRef(({className:r,size:e="md",variant:t="primary","data-block-id":o,"data-block-class":a,style:n,...i},s)=>{let l=ut__default.default.useRef(null),p=reactStately.useSearchFieldState(i),{inputProps:c,clearButtonProps:d}=reactAria.useSearchField({...i,"aria-haspopup":!1,"aria-autocomplete":"none",type:"search"},p,l),{focusProps:m,isFocusVisible:u,isFocused:b}=reactAria.useFocusRing({within:!0,isTextInput:!0}),y=cz[e],f=e==="sm"?_12.XIcon:_16.XIcon,g=utils.filterTruthyValues({"data-block-id":o,"data-block-class":a,"data-focused":b,"data-disabled":i.isDisabled,"data-focus-visible":u});return jsxRuntime.jsxs("div",{...g,className:utils.classNames(rd({size:e,isFocused:b,variant:t,hasText:!!p.value,isDisabled:i.isDisabled}),"BaselineUI-SearchInput",r),style:n,ref:s,children:[jsxRuntime.jsx(y,{size:e==="sm"?20:24}),jsxRuntime.jsx("input",{...reactAria.mergeProps(c,m),className:td,ref:l}),p.value!==""&&jsxRuntime.jsx(D,{icon:f,...d,size:e==="sm"?"xs":"sm",variant:"secondary"})]})});nd.displayName="SearchInput";var id="xyd2ss1 _1yep5z613 _1yep5z614 _1yep5z615 _1yep5z63f _1yep5z63g _1yep5z63h _1yep5z64l _1yep5z64m _1yep5z64n _1yep5z629 _1yep5z62a _1yep5z62b _1yep5z65r _1yep5z65s _1yep5z65t _1yep5z683 _1yep5z684 _1yep5z685 _1yep5z699 _1yep5z69a _1yep5z69b _1yep5z66x _1yep5z66y _1yep5z66z _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6lm _1yep5z6ll _1yep5z6hx _1yep5z6lp _1yep5z6g1",sd="xyd2ss0 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z64l _1yep5z64m _1yep5z64n _1yep5z629 _1yep5z62a _1yep5z62b";var bi=({section:r,showSelectedIcon:e,state:t})=>{let{itemProps:o,groupProps:a,headingProps:n}=reactAria.useMenuSection({heading:r.value?.title,"aria-label":r["aria-label"]});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[r.key!==t.collection.getFirstKey()&&jsxRuntime.jsx(V,{elementType:"li"}),jsxRuntime.jsxs("li",{...o,children:[r.value?.title?jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("span",{...n,children:r.value.title})}):null,jsxRuntime.jsx("ul",{...a,className:sd,children:[...r.childNodes].map(i=>(utils.invariant(i.type==="item"),jsxRuntime.jsx(ba,{item:i,state:t,showSelectedIcon:e},i.key)))})]})]})};bi.displayName="MenuSection";var ba=({item:r,state:e,className:t,showSelectedIcon:o})=>{let a=ut__default.default.useRef(null),n=reactAria.useMenuItem({key:r.key},e,a),{isFocusVisible:i,focusProps:s}=reactAria.useFocusRing();return jsxRuntime.jsx(kr,{item:r,liProps:reactAria.mergeProps(n.menuItemProps,s,{className:t}),...n,isFocusVisible:i,ref:a,description:r.value?.keyboardShortcut,descriptionProps:n.keyboardShortcutProps,_state:e,showSelectedIcon:o})};ba.displayName="MenuItem";var vi=ut__default.default.forwardRef(({className:r,itemClassName:e,onContentKeyDown:t,...o},a)=>{let n=reactStately.useTreeState(o),i=ut__default.default.useRef(null),{menuProps:s}=reactAria.useMenu(o,n,i),{keyboardProps:l}=reactAria.useKeyboard({onKeyDown:t});return jsxRuntime.jsx("ul",{...reactAria.mergeProps(s,l),className:utils.classNames(id,r),ref:L(i,a),children:[...n.collection].map(p=>p.type==="section"?jsxRuntime.jsx(bi,{section:p,state:n,showSelectedIcon:o.selectionMode==="multiple"||o.selectionMode==="single"},p.key):jsxRuntime.jsx(ba,{item:p,state:n,className:e,showSelectedIcon:o.selectionMode==="multiple"||o.selectionMode==="single"},p.key))})});vi.displayName="MenuContent";var cd=C({defaultClassName:"_1mdhlqv8",variantClassNames:{isOpen:{true:"_1mdhlqv9"}},defaultVariants:{},compoundVariants:[]}),tt="_1mdhlqvb cjv3et0 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6g1 _1yep5z6lt _1yep5z6lv _1yep5z6131 cjv3et4",dd=C({defaultClassName:"_1mdhlqv0 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6im _1yep5z6in _1yep5z6io _1yep5z6jd _1yep5z6je _1yep5z6jf _1yep5z69o _1yep5z69p _1yep5z69q _1yep5z6eu _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6dy",variantClassNames:{isFocused:{false:"_1mdhlqv1"},isOpen:{true:"_1mdhlqv2"},isDisabled:{true:"z9nup83 _1yep5z6ey"},isHovered:{true:"_1mdhlqv4"},variant:{primary:"_1mdhlqv5",ghost:"_1mdhlqv6"}},defaultVariants:{},compoundVariants:[[{variant:"primary",isHovered:!0},"_1mdhlqv7"]]}),ud="_1yep5z66x _1yep5z66y _1yep5z66z",md="_1mdhlqva _1yep5z6im _1yep5z6in _1yep5z6io _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6jd _1yep5z6je _1yep5z6jf _1yep5z69i _1yep5z69j _1yep5z69k";var ga=ut__default.default.forwardRef(({defaultOpen:r,onOpenChange:e,isOpen:t,isDisabled:o,contentClassName:a,placement:n="bottom start",isNonModal:i,shouldFlip:s,shouldUpdatePosition:l,boundaryElement:p,crossOffset:c,offset:d,triggerLabel:m,renderTrigger:u=({buttonProps:g,ref:_})=>jsxRuntime.jsx(G,{...g,variant:"popover",ref:_}),portalContainer:b,...y},f)=>{let g=ut__default.default.useRef(null),_=ye(b),v=reactStately.useMenuTriggerState({defaultOpen:r,isOpen:t,onOpenChange:e}),{menuTriggerProps:h,menuProps:x}=reactAria.useMenuTrigger({isDisabled:o,type:"menu"},v,g),w=se(),P=ut.useMemo(()=>reactAria.mergeProps(h,{isDisabled:o,isSelected:v.isOpen,className:"BaselineUI-Menu-Trigger",label:typeof m=="function"?m(v.isOpen):m}),[h,o,v.isOpen,m]);return ut.useEffect(()=>{!m&&!u&&console.warn("The `triggerLabel` prop is required when no `renderTrigger` or `children` is provided.");},[u,m]),jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[u({buttonProps:P,ref:g}),jsxRuntime.jsx(ze,{triggerRef:g,state:v,placement:n,isNonModal:i,shouldFlip:s,shouldUpdatePosition:l,boundaryElement:p,crossOffset:c,offset:d||2,className:"BaselineUI-Menu-Popover",portalContainer:_,children:jsxRuntime.jsx(vi,{className:utils.classNames(tt,a),...x,...y,ref:f,autoFocus:v.focusStrategy||"first",children:w})})]})});ga.displayName="Menu";var va=C({defaultClassName:"_13f0naj0",variantClassNames:{variant:{default:"_13f0naj1",inline:"_13f0naj2"},isHovered:{true:"_13f0naj3"},isFocusVisible:{true:"_13f0naj4"},isDisabled:{true:"_13f0naj5"},size:{sm:"_13f0naj6",md:"_13f0naj7",lg:"_13f0naj8"},type:{body:"_13f0naj9",label:"_13f0naja"},isActive:{true:"_13f0najb"}},defaultVariants:{},compoundVariants:[[{isActive:!0,isDisabled:!1},"_13f0najc"],[{type:"body",size:"sm"},"_13f0najd"],[{type:"body",size:"md"},"_13f0naje"],[{type:"body",size:"lg"},"_13f0najf"],[{type:"label",size:"sm"},"_13f0najg"],[{type:"label",size:"md"},"_13f0najh"],[{type:"label",size:"lg"},"_13f0naji"]]});var bd=ut__default.default.forwardRef(({className:r,style:e,children:t,variant:o="default",size:a="md",elementType:n="a",type:i="body","data-block-id":s,"data-block-class":l,title:p,role:c,...d},m)=>{let u=ut__default.default.useRef(null),{linkProps:b,isPressed:y}=reactAria.useLink({...d,elementType:d.onPress?"span":n},u),{isFocusVisible:f,isFocused:g,focusProps:_}=reactAria.useFocusRing(),{hoverProps:v,isHovered:h}=reactAria.useHover({isDisabled:d.isDisabled}),x=n,w=utils.filterTruthyValues({"data-block-id":s,"data-block-class":l,"data-disabled":d.isDisabled,"data-focused":g,"data-pressed":y,"data-focus-visible":f,"data-hovered":h,role:c,title:p});return jsxRuntime.jsx(x,{...reactAria.mergeProps(b,_,v,w),className:utils.classNames(va({variant:o,isFocusVisible:f,isHovered:h,isDisabled:d.isDisabled,size:a,isActive:y,type:i}),"BaselineUI-Link",r),ref:L(u,m),style:e,children:t})});bd.displayName="Link";function gd({isDisabled:r,onValueChange:e,onChange:t,name:o,"aria-describedby":a,"aria-label":n,accept:i,multiple:s}){let l=reactAria.useId(),p=reactAria.useId(),c=reactAria.useId();return {inputProps:{type:"file",id:p,disabled:!!r,"aria-labelledby":n?void 0:l,"aria-describedby":a||c,"aria-label":n,onChange:m=>{let u=[...m.target.files||[]];e?.(u),t?.(m);},name:o,accept:i,multiple:s},labelProps:{htmlFor:p,id:l},descriptionProps:{id:c}}}async function zi({items:r}){let e=r.filter(t=>t.kind==="file").map(async t=>(utils.invariant(t.kind==="file"),t.getFile()));return await Promise.all(e)}var vd=C({defaultClassName:"_180w5ed0",variantClassNames:{variant:{default:"_180w5ed1",inline:"_180w5ed2"},hoveredOrFocusedOrActive:{true:"_180w5ed3"},disabled:{true:"_180w5ed4"}},defaultVariants:{},compoundVariants:[[{variant:"inline",hoveredOrFocusedOrActive:!0},"_180w5ed5"],[{variant:"default",hoveredOrFocusedOrActive:!0},"_180w5ed6"],[{variant:"default",disabled:!0},"_180w5ed7"],[{variant:"inline",disabled:!0},"_180w5ed8"]]}),hd=C({defaultClassName:"_180w5ede",variantClassNames:{disabled:{true:"_180w5edf"}},defaultVariants:{},compoundVariants:[]}),_d=C({defaultClassName:"_180w5ed9",variantClassNames:{disabled:{true:"_180w5eda"}},defaultVariants:{},compoundVariants:[]}),zd=C({defaultClassName:"_180w5edb",variantClassNames:{disabled:{true:"_180w5edc"},hovered:{true:"_180w5edd"}},defaultVariants:{},compoundVariants:[]});var wd=ut__default.default.forwardRef(({className:r,label:e,description:t,icon:o,variant:a="default",...n},i)=>{let s=ut__default.default.useRef(null),{inputProps:l,descriptionProps:p,labelProps:c}=gd(n),{dropProps:d}=reactAria.useDrop({ref:s,onDrop:async({items:f})=>{let g=f.filter(v=>v.kind==="file").map(async v=>(utils.invariant(v.kind==="file"),v.getFile())),_=await Promise.all(g);n.onValueChange?.(_);}}),{focusProps:m,isFocusVisible:u}=reactAria.useFocusRing(),{hoverProps:b,isHovered:y}=reactAria.useHover({isDisabled:n.isDisabled});return jsxRuntime.jsxs("label",{...reactAria.mergeProps(d,b,c),className:utils.classNames(vd({variant:a,disabled:n.isDisabled,hoveredOrFocusedOrActive:y||u}),r),ref:L(i,s),children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...reactAria.mergeProps(m,l)})}),o?jsxRuntime.jsx(o,{size:20,className:_d({disabled:n.isDisabled})}):null,jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("div",{className:zd({disabled:n.isDisabled,hovered:y}),children:e}),t?jsxRuntime.jsx("div",{...p,className:hd({disabled:n.isDisabled}),children:t}):null]})]})});wd.displayName="FileUpload";var kd="_12vfhl40 z9nup81",Sd="_12vfhl41 z9nup82",Id=C({defaultClassName:"_12vfhl48",variantClassNames:{variant:{success:"_12vfhl49",error:"_12vfhl4a",active:"_12vfhl4b"}},defaultVariants:{},compoundVariants:[]}),Rd="_12vfhl42",Td="_12vfhl47",Nd="_12vfhl46 z9nup82",Ed="_12vfhl45",Ld=C({defaultClassName:"_12vfhl43 _12vfhl42",variantClassNames:{hasLabel:{false:"_12vfhl44"}},defaultVariants:{},compoundVariants:[]});var Md=ut__default.default.forwardRef(({className:r,style:e,variant:t="active",showValue:o,description:a,errorMessage:n,"data-block-id":i,"data-block-class":s,...l},p)=>{let c=reactAria.useId(),{labelProps:d,progressBarProps:m}=reactAria.useProgressBar({...l,"aria-describedby":a?c:l["aria-describedby"]}),{minValue:u=0,maxValue:b=100,value:y=0,label:f}=l,g=(y-u)/(b-u),_=`${Math.round(g*100)}%`,v=jsxRuntime.jsx("output",{className:Ld({hasLabel:!!f}),children:m["aria-valuetext"]}),h=t==="error"?n:a;return jsxRuntime.jsxs("div",{...m,style:e,className:utils.classNames(kd,"BaselineUI-ProgressBar",r),"data-block-id":i,"data-block-class":s,ref:p,children:[f?jsxRuntime.jsxs("div",{className:Sd,children:[jsxRuntime.jsx("label",{...d,className:Rd,children:f}),o?v:null]}):null,jsxRuntime.jsxs("div",{className:Ed,children:[jsxRuntime.jsxs("div",{className:Nd,children:[jsxRuntime.jsx("div",{className:Td,children:jsxRuntime.jsx("div",{style:{width:_},className:Id({variant:t})})}),!f&&o?v:null]}),h?jsxRuntime.jsx("div",{className:Dt({hasError:t==="error"}),id:c,children:h}):null]})]})});Md.displayName="ProgressBar";function Jt({isReadOnly:r,validationState:e}){return r?_16.ReadOnlyIcon:e==="error"?_16.ErrorCircleFilledIcon:e==="warning"?_16.WarningFilledIcon:null}var rt=ut__default.default.forwardRef(({className:r,validationState:e,variant:t="primary",style:o,labelPosition:a="top",inputStyle:n,inputClassName:i,"data-block-id":s,"data-block-class":l,...p},c)=>{let d=ut__default.default.useRef(null),{inputProps:m,labelProps:u,descriptionProps:b,errorMessageProps:y,validationErrors:f}=reactAria.useTextField({...p,validationState:e?e==="error"?"invalid":"valid":void 0},d),g=p.errorMessage||f.join(" "),_=Te({...p,errorMessage:g,descriptionProps:b,errorMessageProps:y,labelPosition:a});g&&(e="error");let{hoverProps:v,isHovered:h}=reactAria.useHover({isDisabled:p.isDisabled}),{isFocused:x,focusProps:w,isFocusVisible:P}=reactAria.useFocusRing(),z=Jt({isReadOnly:p.isReadOnly,validationState:e??"valid"}),k=utils.filterTruthyValues({"data-readonly":p.isReadOnly,"data-disabled":p.isDisabled,"data-validation-state":e,"data-focused":x,"data-focus-visible":P});return jsxRuntime.jsxs("div",{className:utils.classNames(Ye({labelPosition:a}),"BaselineUI-TextInput",r),"data-block-id":s,"data-block-class":l,style:o,ref:c,children:[p.label||a==="start"&&_?jsxRuntime.jsxs("div",{className:Xe({labelPosition:a,hasMessage:!!_}),children:[jsxRuntime.jsx("label",{...u,className:We,children:p.label}),a==="start"&&_]}):null,jsxRuntime.jsxs("div",{className:utils.classNames({[Ft]:p.isDisabled}),children:[jsxRuntime.jsxs("div",{...v,className:Bt({validationState:e??"valid",isHovered:h,isFocused:x,variant:t,isReadOnly:!!p.isReadOnly,isDisabled:!!p.isDisabled}),children:[jsxRuntime.jsx("input",{...reactAria.mergeProps(m,w,k),className:utils.classNames(qo({isDisabled:p.isDisabled,labelPosition:a}),"BaselineUI-TextInput-Input",i),style:n,ref:d}),z?jsxRuntime.jsx(z,{className:At({validationState:e??"valid",isReadOnly:p.isReadOnly}),size:16}):null]}),a==="top"&&_]})]})});rt.displayName="TextInput";var Qt=({value:r,...e})=>{let t=reactAria.useNumberFormatter(e);return jsxRuntime.jsx(jsxRuntime.Fragment,{children:t.format(r)})};Qt.displayName="NumberFormat";var Ad="_1yep5z6ip _1yep5z6iq _1yep5z6ir",Bd=C({defaultClassName:"_9b1tml0",variantClassNames:{isSelected:{true:"_9b1tml1",false:"_9b1tml2"},isDisabled:{true:"z9nup83"},isHovered:{true:"_9b1tml4"},isFocusVisible:{true:"_9b1tml5"},isReadOnly:{true:"_9b1tml6"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isFocusVisible:!0,isReadOnly:!1},"_9b1tml7"],[{isSelected:!0,isHovered:!0,isDisabled:!1,isReadOnly:!1},"_9b1tml8"],[{isSelected:!1,isHovered:!0,isDisabled:!1,isReadOnly:!1},"_9b1tml9"],[{isSelected:!0,isDisabled:!0},"_9b1tmla"],[{isSelected:!0,isReadOnly:!0},"_9b1tmlb"]]}),Od=C({defaultClassName:"_9b1tmlf _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6im _1yep5z6in _1yep5z6io _1yep5z6jd _1yep5z6je _1yep5z6jf _1yep5z6eu _1yep5z6l4 _1yep5z6e9",variantClassNames:{isSelected:{true:"_9b1tmlg"},size:{sm:"_9b1tmlh",md:"_9b1tmli"},isDisabled:{true:"_9b1tmlj"},isReadOnly:{true:"_1yep5z610r"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isDisabled:!1,isReadOnly:!1},"_1yep5z61mu"],[{isSelected:!0,isDisabled:!0},"_1yep5z61mu"],[{isSelected:!1,isDisabled:!0},"_1yep5z61ms"]]}),Fd=C({defaultClassName:"_9b1tmlc",variantClassNames:{isDisabled:{true:"_9b1tmld"},isReadOnly:{true:"_9b1tmle"}},defaultVariants:{},compoundVariants:[]});var Vd=ut__default.default.forwardRef(({className:r,count:e,style:t,size:o="md",icon:a,"data-block-id":n,"data-block-class":i,...s},l)=>{let p={isRequired:!1},c=a||(o==="md"?_20.CheckmarkIcon:_16.CheckmarkIcon);!s["aria-label"]&&!s["aria-labelledby"]&&console.warn("You must provide either an `aria-label` or `aria-labelledby` prop to the `Reaction` component.");let d=ut__default.default.useRef(null),m=reactStately.useToggleState({...s,...p}),{inputProps:u,isPressed:b,isDisabled:y,isReadOnly:f,isSelected:g}=reactAria.useSwitch({...s,...p},m,d),{focusProps:_,isFocused:v,isFocusVisible:h}=reactAria.useFocusRing(),{hoverProps:x,isHovered:w}=reactAria.useHover({}),P=utils.filterTruthyValues({"data-block-id":n,"data-block-class":i,"data-focused":v,"data-focus-visible":h,"data-disabled":y,"data-hovered":w,"data-pressed":b,"data-selected":g});return jsxRuntime.jsxs("label",{ref:l,style:t,className:utils.classNames(Ad,"BaselineUI-Reaction",r),...P,children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...u,..._,ref:d})}),jsxRuntime.jsxs("div",{...x,className:Bd({isSelected:g,isFocusVisible:h,isHovered:w,isReadOnly:f,isDisabled:y}),children:[jsxRuntime.jsx("div",{className:Fd({isDisabled:y,isReadOnly:f}),children:jsxRuntime.jsx(c,{size:o==="md"?20:16})}),jsxRuntime.jsx("div",{className:Od({isSelected:m.isSelected,isDisabled:y,isReadOnly:f,size:o}),children:jsxRuntime.jsx(Qt,{value:e})})]})]})});Vd.displayName="Reaction";var $d="_1azy5686",Ud="_1azy5685",qd="var(--_1azy5680)",Kd="_1azy5688",Gd="_1azy5689",Wd="_1azy5681 z9nup82",Xd="_1azy5682";var Yd="_1azy5687";var wC={sm:16,md:20},kC={sm:[_16.CheckmarkCircleFilledIcon,_16.ErrorAltCircleFilledIcon],md:[_20.CheckCircleFilledIcon,_20.ErrorAltCircleFilledIcon]},tr=ut__default.default.forwardRef(({className:r,style:e,size:t="md",variant:o="active","data-block-id":a,"data-block-class":n,...i},s)=>{let{labelProps:l,progressBarProps:p}=reactAria.useProgressBar({...i,isIndeterminate:!0}),c=wC[t],d=c/2-2,m=2*d*Math.PI,u=kC[t][o==="success"?0:1];return jsxRuntime.jsxs("div",{className:utils.classNames(Wd,"BaselineUI-ProgressSpinner",r),ref:s,style:{...dynamic.assignInlineVars({[qd]:`${m}px`}),...e},"data-block-id":a,"data-block-class":n,children:[jsxRuntime.jsxs("div",{...p,className:Xd,children:[(o==="active"||o==="inactive")&&jsxRuntime.jsxs("svg",{height:c,width:c,viewBox:`0 0 ${c} ${c}`,children:[jsxRuntime.jsx("circle",{role:"presentation",className:$d,cx:c/2,cy:c/2,r:d}),o==="active"&&jsxRuntime.jsx("circle",{role:"presentation",className:Ud,cx:c/2,cy:c/2,r:d})]}),o==="success"&&jsxRuntime.jsx(u,{className:Yd,size:c}),o==="error"&&jsxRuntime.jsx(u,{className:Kd,size:c})]}),i.label?jsxRuntime.jsx("span",{...l,className:Gd,children:i.label}):null]})});tr.displayName="ProgressSpinner";var za=C({defaultClassName:"_5uw3kp0 oom8bs0 z9nup82",variantClassNames:{isHovered:{true:"_5uw3kp1"},isFocusVisible:{true:"_5uw3kp2"},isDisabled:{true:"_5uw3kp3"},isSelected:{true:"_5uw3kp4"},size:{sm:"_5uw3kp5",md:"_5uw3kp6",lg:"_5uw3kp7"},variant:{primary:"_5uw3kp8",toolbar:"_5uw3kp9"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isFocusVisible:!0},"_5uw3kpa"],[{isSelected:!0,isDisabled:!0},"_5uw3kpb"],[{variant:"primary",size:"lg"},"_5uw3kpc"]]}),Zd=C({defaultClassName:"_5uw3kpd _1yep5z6f5",variantClassNames:{isDisabled:{true:"_1yep5z6114"},isSelected:{true:"_1yep5z6116"}},defaultVariants:{},compoundVariants:[]});var EC={sm:16,md:20,lg:24},Ca=ut__default.default.forwardRef(({className:r,style:e,iconStart:t,size:o="md",elementType:a="button",variant:n="toolbar",...i},s)=>{let l=reactStately.useToggleState(i),{buttonProps:p,isPressed:c,ref:d,isFocusVisible:m,isFocused:u,isHovered:b,uiStateOptions:y}=$o(i,l),f=utils.filterTruthyValues({"data-block-id":i["data-block-id"],"data-block-class":i["data-block-class"],"data-focused":u,"data-focus-visible":m,"data-disabled":i.isDisabled,"data-hovered":b,"data-pressed":c,"data-selected":l.isSelected});return jsxRuntime.jsxs(a,{...reactAria.mergeProps(p,f),className:utils.classNames(za({isHovered:b,isFocusVisible:m,isSelected:l.isSelected,size:o,isDisabled:i.isDisabled,variant:n}),"BaselineUI-ToggleButton",typeof r=="function"?r(y):r),style:typeof e=="function"?e(y):e,ref:L(d,s),children:[t?jsxRuntime.jsx(t,{size:EC[o],className:Zd({isDisabled:i.isDisabled,isSelected:l.isSelected})}):null,i.label]})});Ca.displayName="ToggleButton";var xa=C({defaultClassName:"_16vugd0f",variantClassNames:{isDisabled:{true:"_16vugd0g"}},defaultVariants:{},compoundVariants:[]}),Jd=C({defaultClassName:"_16vugd02 _1yep5z6im _1yep5z6in _1yep5z6io _1yep5z6jd _1yep5z6je _1yep5z6jf",variantClassNames:{labelPosition:{end:"_1yep5z614s _1yep5z614t _1yep5z614u _1yep5z6vf _1yep5z6vg _1yep5z6vh",start:"_1yep5z614y _1yep5z614z _1yep5z6150 _1yep5z616a _1yep5z616b _1yep5z616c"}},defaultVariants:{},compoundVariants:[]}),Qd=C({defaultClassName:"_16vugd06",variantClassNames:{isIndeterminate:{true:"_16vugd05"},isSelected:{true:"_16vugd05"},isFocusVisible:{true:"_16vugd09"},isHovered:{true:"_16vugd0a"},isDisabled:{true:"_16vugd0b"},isReadOnly:{true:"_16vugd0c"},hasError:{true:"_16vugd0d"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isDisabled:!0},"_16vugd0e"]]});var ru=ut__default.default.forwardRef(({className:r,style:e,label:t,labelPosition:o="end","data-block-id":a,"data-block-class":n,...i},s)=>{let l=ut__default.default.useRef(null),p=reactStately.useToggleState(i),{isFocusVisible:c,isFocused:d,focusProps:m}=reactAria.useFocusRing(),{inputProps:u,isPressed:b,isDisabled:y,isSelected:f,isReadOnly:g}=reactAria.useCheckbox({...i,children:t},p,l),{hoverProps:_,isHovered:v}=reactAria.useHover({isDisabled:y}),h=utils.filterTruthyValues({"data-disabled":y,"data-readonly":g,"data-hovered":v,"data-selected":f,"data-pressed":b,"data-indeterminate":i.isIndeterminate,"data-invalid":i.isInvalid,"data-focus-visible":c,"data-focused":d,"data-block-id":a,"data-block-class":n});return jsxRuntime.jsxs("label",{...h,className:utils.classNames(Jd({labelPosition:o}),"BaselineUI-Checkbox",r),style:e,ref:s,children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...reactAria.mergeProps(u,m),ref:l})}),jsxRuntime.jsxs("div",{..._,className:Qd({isSelected:f&&!i.isIndeterminate,isIndeterminate:i.isIndeterminate,isFocusVisible:c,isDisabled:y,isReadOnly:g,hasError:i.isInvalid,isHovered:v}),children:[f&&!i.isIndeterminate?jsxRuntime.jsx(_12.CheckmarkIcon,{size:12}):null,i.isIndeterminate?jsxRuntime.jsx(_12.MinusIcon,{size:12}):null]}),t?jsxRuntime.jsx("span",{className:xa({isDisabled:y}),children:t}):null]})});ru.displayName="Checkbox";var ou={ar:{goToPage:"\u0627\u0646\u062A\u0642\u0627\u0644 \u0625\u0644\u0649 \u0635\u0641\u062D\u0629",nextPage:"\u0627\u0644\u0635\u0641\u062D\u0629 \u0627\u0644\u062A\u0627\u0644\u064A\u0629",pageXofY:"\u0635\u0641\u062D\u0629 {arg0} \u0645\u0646 {arg1}",prevPage:"\u0627\u0644\u0635\u0641\u062D\u0629 \u0627\u0644\u0633\u0627\u0628\u0642\u0629"},cs:{goToPage:"P\u0159ej\xEDt na stranu",nextPage:"Dal\u0161\xED str\xE1nka",pageXofY:"Strana {arg0} z {arg1}",prevPage:"P\u0159edchoz\xED strana"},cy:{goToPage:"Mynd i Dudalen",nextPage:"Tudalen Nesaf",pageXofY:"Tudalen {arg0} o {arg1}",prevPage:"Tudalen Blaenorol"},da:{goToPage:"G\xE5 til side",nextPage:"N\xE6ste side",pageXofY:"Side {arg0} af {arg1}",prevPage:"Forrige side"},de:{goToPage:"Zu Seite wechseln",nextPage:"N\xE4chste Seite",pageXofY:"Seite {arg0} von {arg1}",prevPage:"Vorherige Seite"},el:{goToPage:"\u039C\u03B5\u03C4\u03AC\u03B2\u03B1\u03C3\u03B7 \u03C3\u03C4\u03B7 \u03C3\u03B5\u03BB\u03AF\u03B4\u03B1",nextPage:"\u0395\u03C0\u03CC\u03BC\u03B5\u03BD\u03B7 \u03C3\u03B5\u03BB\u03AF\u03B4\u03B1",pageXofY:"\u03A3\u03B5\u03BB\u03AF\u03B4\u03B1 {arg0} \u03B1\u03C0\u03CC {arg1}",prevPage:"\u03A0\u03C1\u03BF\u03B7\u03B3\u03BF\u03CD\u03BC\u03B5\u03BD\u03B7 \u03C3\u03B5\u03BB\u03AF\u03B4\u03B1"},"en-GB":{goToPage:"Go to Page",nextPage:"Next Page",pageXofY:"Page {arg0} of {arg1}",prevPage:"Previous Page"},en:{goToPage:"Go to Page",nextPage:"Next Page",pageXofY:"Page {arg0} of {arg1}",prevPage:"Previous Page"},es:{goToPage:"Ir a la p\xE1gina",nextPage:"P\xE1gina siguiente",pageXofY:"P\xE1gina {arg0} de {arg1}",prevPage:"P\xE1gina anterior"},fi:{goToPage:"Mene sivulle",nextPage:"Seuraava sivu",pageXofY:"Sivu {arg0} / {arg1}",prevPage:"Edellinen sivu"},"fr-CA":{goToPage:"Aller \xE0 la page",nextPage:"Page suivante",pageXofY:"Page {arg0} sur {arg1}",prevPage:"Page pr\xE9c\xE9dente"},fr:{goToPage:"Aller \xE0 la page",nextPage:"Page suivante",pageXofY:"Page {arg0} sur {arg1}",prevPage:"Page pr\xE9c\xE9dente"},he:{goToPage:"\u05DE\u05E2\u05D1\u05E8 \u05DC\u05E2\u05DE\u05D5\u05D3",nextPage:"\u05D4\u05E2\u05DE\u05D5\u05D3 \u05D4\u05D1\u05D0",pageXofY:"\u05E2\u05DE\u05D5\u05D3 {arg0} \u05DE\u05EA\u05D5\u05DA {arg1}",prevPage:"\u05D4\u05E2\u05DE\u05D5\u05D3 \u05D4\u05E7\u05D5\u05D3\u05DD"},hr:{goToPage:"Idi na stranicu",nextPage:"Slijede\u0107a stranica",pageXofY:"Stranica {arg0} od {arg1}",prevPage:"Prethodna stranica"},id:{goToPage:"Buka halaman",nextPage:"Halaman Berikutnya",pageXofY:"Halaman {arg0} dari {arg1}",prevPage:"Halaman Sebelumnya"},it:{goToPage:"Vai a pagina",nextPage:"Pagina successiva",pageXofY:"Pagina {arg0} di {arg1}",prevPage:"Pagina precedente"},ja:{goToPage:"\u30DA\u30FC\u30B8\u306B\u79FB\u52D5",nextPage:"\u6B21\u306E\u30DA\u30FC\u30B8",pageXofY:"\u30DA\u30FC\u30B8 {arg0}/{arg1}",prevPage:"\u524D\u306E\u30DA\u30FC\u30B8"},ko:{goToPage:"\uD398\uC774\uC9C0\uB85C \uC774\uB3D9",nextPage:"\uB2E4\uC74C \uD398\uC774\uC9C0",pageXofY:"{arg0}/{arg1} \uD398\uC774\uC9C0",prevPage:"\uC774\uC804 \uD398\uC774\uC9C0"},ms:{goToPage:"Pergi ke Halaman",nextPage:"Halaman Seterusnya",pageXofY:"Halaman {arg0} daripada {arg1}",prevPage:"Halaman Sebelumnya"},"nb-NO":{goToPage:"G\xE5 til side",nextPage:"Neste side",pageXofY:"Side {arg0} av {arg1}",prevPage:"Forrige side"},nl:{goToPage:"Ga naar pagina",nextPage:"Volgende pagina",pageXofY:"Pagina {arg0} van {arg1}",prevPage:"Vorige pagina"},pl:{goToPage:"Przejd\u017A do strony",nextPage:"Nast\u0119pna strona",pageXofY:"Strona {arg0} z {arg1}",prevPage:"Poprzednia strona"},"pt-PT":{goToPage:"Ir para p\xE1gina",nextPage:"P\xE1gina seguinte",pageXofY:"P\xE1gina {arg0} de {arg1}",prevPage:"P\xE1gina anterior"},pt:{goToPage:"Ir \xE0 P\xE1gina",nextPage:"P\xE1gina Seguinte",pageXofY:"P\xE1gina {arg0} de {arg1}",prevPage:"P\xE1gina Anterior"},ru:{goToPage:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0435",nextPage:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0430\u044F \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0430",pageXofY:"\u0421\u0442\u0440\u0430\u043D\u0438\u0446\u0430 {arg0} \u0438\u0437 {arg1}",prevPage:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0430\u044F \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0430"},sk:{goToPage:"\xCDs\u0165 na stranu",nextPage:"Dal\u0161ia strana",pageXofY:"Strana {arg0} z {arg1}",prevPage:"Predch\xE1dzaj\xFAca strana"},sl:{goToPage:"Pojdi na stran",nextPage:"Naslednja stran",pageXofY:"Stran {arg0} od {arg1}",prevPage:"Prej\u0161nja stran"},sv:{goToPage:"G\xE5 till sida",nextPage:"N\xE4sta sida",pageXofY:"Sida {arg0} av {arg1}",prevPage:"F\xF6reg\xE5ende sida"},th:{goToPage:"\u0E44\u0E1B\u0E17\u0E35\u0E48\u0E2B\u0E19\u0E49\u0E32",nextPage:"\u0E2B\u0E19\u0E49\u0E32\u0E16\u0E31\u0E14\u0E44\u0E1B",pageXofY:"\u0E2B\u0E19\u0E49\u0E32 {arg0} \u0E08\u0E32\u0E01 {arg1}",prevPage:"\u0E2B\u0E19\u0E49\u0E32\u0E01\u0E48\u0E2D\u0E19\u0E2B\u0E19\u0E49\u0E32"},tr:{goToPage:"Sayfaya Git",nextPage:"Sonraki Sayfa",pageXofY:"Sayfa {arg0}/{arg1}",prevPage:"\xD6nceki Sayfa"},uk:{goToPage:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0442\u043E\u0440\u0456\u043D\u043A\u0443",nextPage:"\u041D\u0430\u0441\u0442\u0443\u043F\u043D\u0430 \u0441\u0442\u043E\u0440\u0456\u043D\u043A\u0430",pageXofY:"\u0421\u0442\u043E\u0440\u0456\u043D\u043A\u0430 {arg0} \u0437 {arg1}",prevPage:"\u041F\u043E\u043F\u0435\u0440\u0435\u0434\u043D\u044F \u0441\u0442\u043E\u0440\u0456\u043D\u043A\u0430"},"zh-Hans":{goToPage:"\u524D\u5F80\u9875\u9762",nextPage:"\u4E0B\u4E00\u9875",pageXofY:"\u7B2C {arg0}/{arg1} \u9875",prevPage:"\u4E0A\u4E00\u9875"},"zh-Hant":{goToPage:"\u5230\u6B64\u9801",nextPage:"\u4E0B\u4E00\u9801",pageXofY:"\u7B2C{arg0}\u9801\uFF0C\u5171{arg1}\u9801",prevPage:"\u4E0A\u4E00\u9801"}};var au=C({defaultClassName:"_1nsi9h17",variantClassNames:{isFocused:{true:"_1nsi9h18"},variant:{pinned:"_1nsi9h19",floating:"_1nsi9h1a"},size:{xs:"_1nsi9h1b",sm:"_1nsi9h1c",md:"_1nsi9h1d",lg:"_1nsi9h1e"}},defaultVariants:{},compoundVariants:[]}),nu="_1nsi9h1f _1yep5z6ls _1yep5z6lk _1yep5z6eu",iu=C({defaultClassName:"_1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6ip _1yep5z6iq _1yep5z6ir _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6jd _1yep5z6je _1yep5z6jf _1yep5z6g1 _1yep5z6e1",variantClassNames:{size:{xs:"_1nsi9h11 _1yep5z6wf _1yep5z6wg _1yep5z6wh _1yep5z6x3 _1yep5z6x4 _1yep5z6x5 _1yep5z6xr _1yep5z6xs _1yep5z6xt _1yep5z6yf _1yep5z6yg _1yep5z6yh _1yep5z6zs",sm:"_1nsi9h12 _1yep5z6zv",md:"_1nsi9h13",lg:"_1nsi9h14"},variant:{floating:"_1yep5z6z4 _1yep5z617s _1yep5z617q _1yep5z6130",pinned:"_1yep5z617e"}},defaultVariants:{},compoundVariants:[]}),su=C({defaultClassName:"_1nsi9h1g _1yep5z6ev",variantClassNames:{isDisabled:{true:"_1yep5z610v"}},defaultVariants:{},compoundVariants:[]});var sx={style:"decimal"},lx={xs:[_12.CaretLeftIcon,_12.CaretRightIcon],sm:[_16.CaretLeftIcon,_16.CaretRightIcon],md:[_20.CaretLeftIcon,_20.CaretRightIcon],lg:[_24.CaretLeftIcon,_24.CaretRightIcon]},uu=ut__default.default.forwardRef(({className:r,style:e,minValue:t=1,defaultValue:o=1,incrementAriaLabel:a,decrementAriaLabel:n,"aria-label":i,size:s="md",variant:l="floating",hideActions:p,isDisabled:c,...d},m)=>{let{locale:u}=reactAria.useLocale(),b=A(ou),y={...d,formatOptions:sx,minValue:t,incrementAriaLabel:a||b.formatMessage("nextPage"),decrementAriaLabel:n||b.formatMessage("prevPage"),defaultValue:o,"aria-label":i||b.formatMessage("goToPage")},f=ut__default.default.useRef(null),g=reactStately.useNumberFieldState({...y,locale:u}),{inputProps:_,decrementButtonProps:v,incrementButtonProps:h,groupProps:x}=reactAria.useNumberField({...y,onKeyDown:H=>{H.key==="Enter"&&f.current?.blur(),d.onKeyDown?.(H);},isDisabled:c},g,f),{hoverProps:w,isHovered:P}=reactAria.useHover({}),{focusProps:z,isFocused:k,isFocusVisible:T}=reactAria.useFocusRing(),R=l==="floating",[N,S]=lx[s],I=utils.filterTruthyValues({"data-focus-visible":T,"data-focused":k,"data-hovered":P,"data-block-id":d["data-block-id"],"data-block-class":d["data-block-class"]}),F=interactions.useInteractionModality()==="keyboard";return jsxRuntime.jsxs("div",{...reactAria.mergeProps(x,w,I),className:utils.classNames(iu({size:s,variant:l}),"BaselineUI-Pagination",r),style:e,ref:m,children:[p?null:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(D,{icon:N,...v,elementType:"div",size:s,style:{height:"100%",...R&&{borderRadius:0}},className:"BaselineUI-Pagination-DecrementButton",UNSAFE_NON_INTERACTIVE:F,isDisabled:c||v.isDisabled}),l==="floating"&&jsxRuntime.jsx(V,{orientation:"vertical"})]}),jsxRuntime.jsxs("div",{className:au({isFocused:k,variant:l,size:s}),"aria-label":b.formatMessage("pageXofY",{arg0:_.value,arg1:g.maxValue}),children:[jsxRuntime.jsx("input",{...reactAria.mergeProps(_,z),ref:f,className:utils.classNames("BaselineUI-Pagination-Input",nu),style:{width:`${_.value?.toString().length||1}ch`}}),jsxRuntime.jsxs("span",{className:su({isDisabled:c}),children:["/ ",jsxRuntime.jsx(Qt,{value:g.maxValue})]})]}),p?null:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[l==="floating"&&jsxRuntime.jsx(V,{orientation:"vertical"}),jsxRuntime.jsx(D,{icon:S,...h,elementType:"div",size:s,style:{height:"100%",...R&&{borderRadius:0}},className:"BaselineUI-Pagination-IncrementButton",UNSAFE_NON_INTERACTIVE:F,isDisabled:c||h.isDisabled})]})]})});uu.displayName="Pagination";var mu=({date:r,...e})=>{let t=reactAria.useDateFormatter(e);return jsxRuntime.jsx(jsxRuntime.Fragment,{children:t.format(r)})};mu.displayName="DateFormat";var Gr=C({defaultClassName:"_1f789qjm",variantClassNames:{variant:{neutral:"_1yep5z6112",red:"_1yep5z610c",green:"_1yep5z610g",blue:"_1yep5z610o","high-contrast":"_1yep5z6115"},isDisabled:{true:"_1yep5z61n1"},isSelected:{true:"_1yep5z6116"}},defaultVariants:{},compoundVariants:[]}),Pa=C({defaultClassName:"_1f789qj0 _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6ax _1yep5z6ay _1yep5z6az _1yep5z6bl _1yep5z6bm _1yep5z6bn _1yep5z6c9 _1yep5z6ca _1yep5z6cb _1yep5z6cx _1yep5z6cy _1yep5z6cz _1yep5z6im _1yep5z6in _1yep5z6io _1yep5z6l4 _1yep5z6lk _1yep5z6l7",variantClassNames:{isFocusVisible:{true:"_1f789qj1"},variant:{neutral:"_1yep5z6122",red:"_1yep5z611h",green:"_1yep5z611l",blue:"_1yep5z611t","high-contrast":"_1yep5z6126"},isDisabled:{true:"_1f789qj7 _1yep5z6121"},allowsRemoving:{true:"_1f789qj8"},isSelected:{true:"_1yep5z612c"},allowsSelection:{true:"_1f789qja"},isHovered:{true:"_1f789qjb"},size:{md:"_1f789qjc",sm:"_1f789qjd"}},defaultVariants:{},compoundVariants:[[{allowsSelection:!0,isHovered:!0,variant:"neutral"},"_1yep5z61ny"],[{allowsSelection:!0,isHovered:!0,variant:"red"},"_1yep5z61nd"],[{allowsSelection:!0,isHovered:!0,variant:"blue"},"_1yep5z61np"],[{allowsSelection:!0,isHovered:!0,variant:"green"},"_1yep5z61nh"],[{allowsSelection:!0,isHovered:!0,variant:"high-contrast"},"_1yep5z61o2"],[{allowsSelection:!0,isSelected:!0,isHovered:!0},"_1yep5z61oa"],[{variant:"high-contrast",isDisabled:!0},"_1yep5z61ny"],[{allowsRemoving:!0,size:"md"},"_1yep5z6190 _1yep5z6191 _1yep5z6192"],[{allowsRemoving:!0,size:"sm"},"_1yep5z61a3 _1yep5z61a4 _1yep5z61a5"]]}),fu="_1yep5z6im _1yep5z6in _1yep5z6io _1yep5z6jd _1yep5z6je _1yep5z6jf _1yep5z69f _1yep5z69g _1yep5z69h",yu="_1yep5z6im _1yep5z6in _1yep5z6io _1yep5z69i _1yep5z69j _1yep5z69k",bu=C({defaultClassName:"_1f789qju",variantClassNames:{variant:{neutral:"_1f789qjv",red:"_1f789qjw",green:"_1f789qjx",blue:"_1f789qjy","high-contrast":"_1f789qjz"},isHovered:{true:"_1f789qj10"}},defaultVariants:{},compoundVariants:[[{isHovered:!0,variant:"neutral"},"_1f789qj11"],[{isHovered:!0,variant:"red"},"_1f789qj12"],[{isHovered:!0,variant:"blue"},"_1f789qj13"],[{isHovered:!0,variant:"green"},"_1f789qj14"],[{isHovered:!0,variant:"high-contrast"},"_1f789qj15"]]}),wa=C({defaultClassName:"_1f789qje",variantClassNames:{variant:{neutral:"_1yep5z610r",red:"_1yep5z610c",green:"_1yep5z610g",blue:"_1yep5z610o","high-contrast":"_1yep5z610w"},isDisabled:{true:"_1yep5z61ms"},isSelected:{true:"_1yep5z610x"}},defaultVariants:{},compoundVariants:[]});var _u=({item:r,state:e,variant:t="neutral",size:o="md"})=>{let a=ut__default.default.useRef(null),{focusProps:n,isFocusVisible:i}=reactAria.useFocusRing({within:!0}),{rowProps:s,gridCellProps:l,removeButtonProps:p,allowsRemoving:c,isDisabled:d,isSelected:m,allowsSelection:u}=reactAria.useTag({item:r},e,a),b=ut__default.default.useRef(null),{buttonProps:y}=reactAria.useButton(p,b),{hoverProps:f,isHovered:g}=reactAria.useHover({isDisabled:d}),{hoverProps:_,isHovered:v}=reactAria.useHover({isDisabled:d}),h=r.value?.icon,x=r.value?.data?.variant??t,w=o==="md"?_12.XIcon:_8.XIcon,P=o==="md"?_16.CheckmarkIcon:_12.CheckmarkIcon;return jsxRuntime.jsx("div",{...reactAria.mergeProps(s,n,_),ref:a,className:utils.classNames(Pa({isFocusVisible:i,variant:x,isDisabled:d,allowsRemoving:c,isSelected:m,allowsSelection:u,isHovered:v,size:o}),wa({variant:x,isDisabled:d,isSelected:m}),"BaselineUI-Tag"),children:jsxRuntime.jsxs("div",{...l,className:fu,children:[m?jsxRuntime.jsx(P,{size:o==="md"?16:12,className:utils.classNames(Gr({variant:x,isDisabled:d,isSelected:m}),"BaselineUI-Tag-Icon")}):null,!m&&h?jsxRuntime.jsx(h,{size:o==="md"?16:12,className:utils.classNames(Gr({variant:x,isDisabled:d,isSelected:m}),"BaselineUI-Tag-Icon")}):null,jsxRuntime.jsx(E,{paddingY:o==="md"?"sm":"none",typography:o==="sm"?"label.sm.medium":"label.md.medium",children:r.rendered}),c?jsxRuntime.jsx("button",{...reactAria.mergeProps(y,f),className:bu({variant:x,isHovered:g}),children:jsxRuntime.jsx(w,{size:o==="md"?12:8})}):null]})})};var xu=ut__default.default.forwardRef(({className:r,style:e,"data-block-id":t,"data-block-class":o,items:a,size:n="md",...i},s)=>{let l=ut.useMemo(()=>a.map(u=>({...u,data:{variant:u.variant}})),[a]),p=se(),c=ut__default.default.useRef(null),d=reactStately.useListState({...i,items:l,children:p}),{gridProps:m}=reactAria.useTagGroup(i,d,c);return jsxRuntime.jsx("div",{...m,className:utils.classNames(yu,"BaselineUI-TagGroup",r),style:e,"data-block-id":t,"data-block-class":o,ref:L(s,c),children:[...d.collection].map(u=>jsxRuntime.jsx(_u,{state:d,item:u,variant:i.variant,size:n},u.key))})});xu.displayName="TagGroup";var Pu="_1yep5z6lh",wu=C({defaultClassName:"_1kvz17db _1yep5z6l4 _1yep5z6l6",variantClassNames:{showActionsOnTriggerOnly:{true:"_1kvz17dc"},isTriggered:{true:"_1kvz17dd"}},defaultVariants:{},compoundVariants:[]}),ku=C({defaultClassName:"_1kvz17d0 _1yep5z64u _1yep5z64v _1yep5z64w _1yep5z676 _1yep5z677 _1yep5z678 _1yep5z68c _1yep5z68d _1yep5z68e _1yep5z660 _1yep5z661 _1yep5z662 _1yep5z6l4 _1yep5z6l5",variantClassNames:{isExpanded:{true:"_1kvz17d1"}},defaultVariants:{},compoundVariants:[]}),Su="_1kvz17de",Iu="_1yep5z6ev _1yep5z6dy",Ru=C({defaultClassName:"_1kvz17d2 _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6im _1yep5z6in _1yep5z6io _1yep5z6jd _1yep5z6je _1yep5z6jf _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6l4 _1yep5z6l7",variantClassNames:{isFocusVisible:{true:"_1kvz17d3"},isHovered:{true:"_1yep5z6g2",false:"_1yep5z6g3"},isDisabled:{true:"z9nup83"}},defaultVariants:{},compoundVariants:[]}),Tu="_1kvz17da _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z6dz",Nu=C({defaultClassName:"_1kvz17d7 _1yep5z6im _1yep5z6in _1yep5z6io _1yep5z6jd _1yep5z6je _1yep5z6jf",variantClassNames:{isDisabled:{true:"_1yep5z6ey",false:"_1yep5z6eu"}},defaultVariants:{},compoundVariants:[]});var Si=ut__default.default.forwardRef(({children:r,className:e,style:t},o)=>{let{headers:a}=ut.useContext(ot),{disabledKeys:n}=ut.useContext(ot),{keyboardProps:i}=reactAria.useKeyboard({onKeyDown:s=>{let l=fe(s.target),p=l?Io(l):Io(),c=[...a?.keys()||[]].findIndex(y=>a?.get(y)?.current===p),d=a?.get(c||0),m=a?.size||0,u=y=>{let f=a.get(y-1<0?m-1:y-1);n?.has(f?.current?.getAttribute("data-key")||"")?u(y-1):f?.current?.focus();},b=y=>{let f=a.get((y+1)%m);n?.has(f?.current?.getAttribute("data-key")||"")?b(y+1):f?.current?.focus();};if(d)switch(s.key){case"Home":{s.preventDefault(),b(-1);break}case"End":{s.preventDefault(),u(m);break}case"ArrowDown":{s.preventDefault(),b(c);break}case"ArrowUp":{s.preventDefault(),u(c);break}default:s.continuePropagation();}}});return jsxRuntime.jsx("div",{...i,style:t,className:utils.classNames(Pu,e),ref:o,children:ut__default.default.Children.map(r,(s,l)=>ut__default.default.cloneElement(s,{index:l}))})});Si.displayName="AccordionBase";var ot=ut__default.default.createContext({expandedKeys:new Set,setExpandedKeys:()=>{},disabledKeys:new Set,headers:new Map,expansionMode:"multiple"}),Mu=ut__default.default.forwardRef(({children:r,disabledKeys:e,defaultExpandedKeys:t=new Set,expandedKeys:o,expansionMode:a="multiple",onChange:n,className:i,style:s},l)=>{let[p,c]=ut__default.default.useState(t),d=ut__default.default.useRef(new Map).current,[m,u]=ut__default.default.useState(a);ut.useEffect(()=>{u(a);},[a]),ut.useEffect(()=>{n?.(p);},[p,n]);let b=ut.useMemo(()=>({expandedKeys:o||p,setExpandedKeys:o?()=>{}:c,disabledKeys:e,headers:d,expansionMode:m}),[o,p,e,d,m]);return jsxRuntime.jsx(ot.Provider,{value:b,children:jsxRuntime.jsx(reactAria.FocusScope,{children:jsxRuntime.jsx(Si,{className:i,style:s,ref:l,children:r})})})});Mu.displayName="Accordion";var Ri=ut__default.default.forwardRef(({title:r,actions:e,controlId:t,value:o,id:a,index:n,subLabel:i,showActionsOnTriggerOnly:s},l)=>{let p=ut__default.default.useRef(null),{expandedKeys:c,setExpandedKeys:d,expansionMode:m,disabledKeys:u,headers:b}=ut.useContext(ot),y=u?.has(o),f=reactAria.useFocusManager();utils.invariant(f);let{focusNext:g,focusPrevious:_}=f,{keyboardProps:v}=reactAria.useKeyboard({onKeyDown:I=>{I.key==="ArrowRight"?g({wrap:!0}):I.key==="ArrowLeft"?_({wrap:!0}):I.continuePropagation();},isDisabled:y});ut.useEffect(()=>{utils.invariant(typeof n=="number","AccordionItem must have an index"),b?.set(n,p);},[n,b]);let h=()=>{d(I=>{let M=new Set(I);return M.has(o)?M.delete(o):(m==="single"&&M.clear(),M.add(o)),M});},{buttonProps:x}=reactAria.useButton({"aria-expanded":c.has(o),"aria-controls":t,onPress:h,isDisabled:y},p),{pressProps:w}=reactAria.usePress({onPress:h,isDisabled:y}),{focusProps:P,isFocusVisible:z}=reactAria.useFocusRing(),{hoverProps:k,isHovered:T}=reactAria.useHover({isDisabled:y}),{focusProps:R,isFocusVisible:N}=reactAria.useFocusRing({within:!0}),S=c.has(o);return jsxRuntime.jsxs("h3",{...reactAria.mergeProps(v,w,k,R),className:Ru({isFocusVisible:z,isHovered:T,isDisabled:y}),ref:l,children:[jsxRuntime.jsxs("div",{className:Nu({isDisabled:!!y}),children:[jsxRuntime.jsx(_8.ChevronRightIcon,{className:ku({isExpanded:S}),size:8}),jsxRuntime.jsx("button",{...reactAria.mergeProps(x,P),id:a,"data-key":o,className:Tu,ref:p,children:r})]}),e?.length?jsxRuntime.jsx("div",{"data-testid":"action-buttons",className:wu({showActionsOnTriggerOnly:s,isTriggered:N||T}),children:e.map((I,M)=>jsxRuntime.jsx(D,{variant:"secondary",size:"sm",excludeFromTabOrder:!0,isDisabled:y,...I},M))}):null,i?jsxRuntime.jsx("div",{className:Iu,children:i}):null]})});Ri.displayName="AccordionHeader";var Hu=ut__default.default.forwardRef(({title:r,actions:e,children:t,value:o,index:a,subLabel:n,style:i,className:s,showActionsOnTriggerOnly:l},p)=>{let c=reactAria.useId(),d=reactAria.useId(),{expandedKeys:m}=ut.useContext(ot),u=m.has(o);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(reactAria.FocusScope,{children:jsxRuntime.jsx(Ri,{value:o,actions:e,id:d,title:r,controlId:c,ref:p,index:a,subLabel:n,showActionsOnTriggerOnly:l})}),jsxRuntime.jsx(react.AnimatePresence,{initial:!1,children:u?jsxRuntime.jsx(react.motion.section,{role:"region","aria-labelledby":d,id:c,className:Su,variants:{open:{height:"auto",opacity:1},closed:{height:0,opacity:0}},initial:"closed",animate:"open",exit:"closed",children:jsxRuntime.jsx("div",{style:i,className:s,children:t})}):null})]})});Hu.displayName="AccordionItem";var Zr=ut__default.default.forwardRef(({variant:r,isOpen:e,selectedIcon:t,validationState:o="valid",valueProps:a,label:n,className:i,style:s,"data-block-id":l,"data-block-class":p,...c},d)=>{let m=ut__default.default.useRef(null),{buttonProps:u,isPressed:b}=reactAria.useButton({...c,isDisabled:c.isDisabled||c.isReadOnly},m),{hoverProps:y,isHovered:f}=reactAria.useHover({isDisabled:c.isDisabled}),{focusProps:g,isFocused:_,isFocusVisible:v}=reactAria.useFocusRing(),h=Jt({isReadOnly:c.isReadOnly,validationState:o});c.isReadOnly&&(u.disabled=!1);let x=utils.filterTruthyValues({"data-disabled":c.isDisabled,"data-readonly":c.isReadOnly,"data-focused":_,"data-focus-visible":v,"data-hovered":f,"data-pressed":b,"data-open":e,"data-block-id":l,"data-block-class":p});return jsxRuntime.jsxs("button",{...reactAria.mergeProps(u,y,g,x),ref:L(d,m),className:utils.classNames(dd({isFocused:v,isDisabled:c.isDisabled,isOpen:e,isHovered:f,variant:r}),Bt({variant:r,isHovered:f,isFocused:v,validationState:o,isDisabled:!!c.isDisabled,isReadOnly:c.isReadOnly}),i,"BaselineUI-Select-Button"),style:s,children:[jsxRuntime.jsxs("span",{className:md,children:[t?jsxRuntime.jsx(t,{size:24}):null,jsxRuntime.jsx("span",{...a,children:n})]}),h?jsxRuntime.jsx("span",{"aria-hidden":!0,className:utils.classNames(At({validationState:o,isReadOnly:!!c.isReadOnly}),ud),children:jsxRuntime.jsx(h,{size:16})}):null,jsxRuntime.jsx("span",{"aria-hidden":!0,children:jsxRuntime.jsx(_8.CaretDownIcon,{size:8,className:cd({isOpen:e})})})]})});Zr.displayName="SelectButton";var ka=ut__default.default.createContext({state:null,popoverAnchorRef:null}),Ni=ut__default.default.forwardRef(({className:r,style:e,labelPosition:t="top",variant:o="primary","data-block-id":a,"data-block-class":n,optionStyle:i,optionClassName:s,placement:l="bottom start",triggerClassName:p,triggerStyle:c,state:d,renderTrigger:m=({buttonProps:y,selectedValue:f,valueProps:g,isOpen:_,ref:v})=>{let h=f&&"icon"in f&&f.icon;return jsxRuntime.jsx(Zr,{...y,className:p,style:c,isOpen:_,isReadOnly:u.isReadOnly,ref:v,variant:o,validationState:u.validationState,selectedIcon:h||void 0,label:f?"label"in f&&f?.label:u.placeholder,valueProps:g})},...u},b)=>{let{popoverAnchorRef:y}=ut.useContext(ka),f=ut__default.default.useRef(null),g=ye(u.portalContainer),{labelProps:_,triggerProps:v,valueProps:h,menuProps:x,descriptionProps:w,errorMessageProps:P}=reactAria.useSelect({...u,validationState:u.validationState==="error"?"invalid":"valid"},d,f),z=Te({...u,descriptionProps:w,errorMessageProps:P,labelPosition:t}),k=d.selectedItem?.value??null;return jsxRuntime.jsxs(mt.Provider,{value:d,children:[jsxRuntime.jsxs("div",{style:e,className:utils.classNames(Ye({labelPosition:t}),"BaselineUI-Select",r),"data-block-id":a,"data-block-class":n,ref:b,children:[u.label||z?jsxRuntime.jsxs("div",{className:Xe({labelPosition:t,hasMessage:!!z}),children:[u.label?jsxRuntime.jsx("div",{..._,className:utils.classNames(We,"BaselineUI-Select-Label"),children:u.label}):null,t==="start"&&z]}):null,jsxRuntime.jsx(reactAria.HiddenSelect,{state:d,triggerRef:f,isDisabled:u.isDisabled,label:u.label,name:u.name}),m({buttonProps:v,selectedValue:k,valueProps:h,isOpen:d.isOpen,ref:f}),t==="top"&&z]}),d?jsxRuntime.jsx(ze,{placement:l,portalContainer:g,offset:2,state:d,triggerRef:y||f,style:e,className:"BaselineUI-Select-Popover",...u,children:jsxRuntime.jsx(de,{...x,label:u.label,items:u.items,showSelectedIcon:u.showSelectedIcon,className:tt,optionStyle:i,optionClassName:s})}):null]})});Ni.displayName="SelectCore";var Gu=ut__default.default.forwardRef((r,e)=>{let t=se(),o=reactStately.useSelectState({...r,validationState:r.validationState==="error"?"invalid":"valid",children:t});return jsxRuntime.jsx(Ni,{...r,ref:e,state:o})});Gu.displayName="SelectStandalone";var nt=ut__default.default.forwardRef((r,e)=>{let{state:t}=ut.useContext(ka);return ut.useEffect(()=>{utils.invariant(t||r.items,"Select: A `state` that can be passed via context or `items` are required.");},[r.items,t]),t?jsxRuntime.jsx(Ni,{state:t,...r,ref:e}):jsxRuntime.jsx(Gu,{...r,ref:e})});nt.displayName="Select";var Xu=ut__default.default.forwardRef(({className:r,style:e,variant:t,"data-block-id":o,icon:a,tooltipProps:n,...i},s)=>{let l=ut__default.default.useRef(null),p=ut.useCallback(({buttonProps:c,selectedValue:d,valueProps:m,isOpen:u,ref:b})=>{let y=d&&"icon"in d&&d.icon;return jsxRuntime.jsx(ne,{variant:"inverse",size:"sm",includeArrow:!1,text:i["aria-label"],offset:4,...n,children:jsxRuntime.jsx(Zr,{...c,isOpen:u,isReadOnly:i.isReadOnly,ref:b,variant:t,validationState:i.validationState,selectedIcon:y||void 0,label:d?"label"in d&&d?.label:i.placeholder,valueProps:m})})},[i,n,t]);return jsxRuntime.jsxs(E,{display:"flex",flexDirection:"row",gap:"md",paddingX:"md",alignItems:"center",className:utils.classNames("BaselineUI-IconSelect",r),"data-block-id":o,style:e,ref:L(s,l),children:[a?jsxRuntime.jsx(a,{size:24,className:tokens.sprinkles({color:"icon.primary",display:"flex",flexShrink:0})}):null,jsxRuntime.jsx(nt,{...i,renderTrigger:p})]})});Xu.displayName="IconSelect";var Yu="_1017q4c5",Zu=C({defaultClassName:"_1017q4c0",variantClassNames:{size:{md:"_1017q4c1",sm:"_1017q4c2"},isDisabled:{true:"_1017q4c3"}},defaultVariants:{},compoundVariants:[]}),Ju="_1017q4c4";var p0={sm:_16.AvatarIcon,md:_24.AvatarIcon},nr=ut__default.default.forwardRef(({className:r,style:e,size:t="md",icon:o=p0[t],name:a,imgSrc:n,showInitials:i,isDisabled:s,hasNotifications:l,imgLoading:p,"data-block-id":c,"data-block-class":d},m)=>{let{imgProps:u}=Ot({src:n,alt:a}),b=a?.split(" ").map(y=>y[0]).join("");return jsxRuntime.jsxs("span",{className:utils.classNames(Zu({size:t,isDisabled:s}),"BaselineUI-Avatar",r),"data-disabled":s,ref:m,style:e,"aria-disabled":s,"data-block-id":c,"data-block-class":d,children:[n?jsxRuntime.jsx("img",{...u,loading:p,className:Ju}):null,!i&&!n&&jsxRuntime.jsx(o,{size:t==="sm"?16:24}),i&&!n?t==="sm"?b[0]:b:null,l?jsxRuntime.jsx("div",{"data-testid":"notification",className:Yu}):null]})});nr.displayName="Avatar";var Qu="_1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z63l _1yep5z63m _1yep5z63n _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6im _1yep5z6in _1yep5z6io _1yep5z6jd _1yep5z6je _1yep5z6jf",em=C({defaultClassName:"_1x62fhb6 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6im _1yep5z6in _1yep5z6io _1yep5z6jd _1yep5z6je _1yep5z6jf _1yep5z6lj _1yep5z6lk _1yep5z6l4 _1yep5z6l7 _1yep5z6ev _1yep5z69i _1yep5z69j _1yep5z69k",variantClassNames:{isHovered:{true:"_1yep5z610r"},isSelected:{true:"_1x62fhb8"},isFocusVisible:{true:"_1x62fhb9"},isDisabled:{true:"_1x62fhba _1yep5z610v"},variant:{primary:"_1x62fhbb _1yep5z6zs",ghost:"_1yep5z6zv"}},defaultVariants:{},compoundVariants:[[{variant:"primary",isSelected:!0,isDisabled:!1},"_1yep5z61mo"],[{variant:"primary",isSelected:!0},"_1yep5z61nv"],[{variant:"ghost",isSelected:!0,isFocusVisible:!1},"_1x62fhbd"],[{variant:"ghost",isSelected:!0,isDisabled:!1},"_1yep5z61mv"],[{variant:"ghost",isDisabled:!0,isSelected:!0},"_1x62fhbe _1yep5z6ey"],[{variant:"primary",isHovered:!0},"_1yep5z61nw"]]}),tm=C({defaultClassName:"_1x62fhb3 _1yep5z6ip _1yep5z6iq _1yep5z6ir _1yep5z6iv _1yep5z6iw _1yep5z6ix",variantClassNames:{variant:{primary:"_1x62fhb4",ghost:"_1yep5z6vf _1yep5z6vg _1yep5z6vh"}},defaultVariants:{},compoundVariants:[]}),rm="_1x62fhbl",Li=C({defaultClassName:"_1x62fhbf _1yep5z6f6",variantClassNames:{isHovered:{true:"_1yep5z6112"},isSelected:{true:"_1x62fhbh"},isDisabled:{true:"_1yep5z6114"},variant:{primary:"_1x62fhbj",ghost:"_1x62fhbk"}},defaultVariants:{},compoundVariants:[[{variant:"primary",isSelected:!0,isDisabled:!1},"_1yep5z61mz"],[{variant:"ghost",isSelected:!0,isDisabled:!1},"_1yep5z61n4"],[{variant:"ghost",isDisabled:!0,isSelected:!0},"_1yep5z61n1"]]}),om="_1yep5z6lo _1yep5z6ll _1yep5z6hu _1yep5z6ln",am=C({defaultClassName:"_1x62fhb0 _1yep5z6lh _1yep5z6im _1yep5z6in _1yep5z6io _1yep5z6iv _1yep5z6iw _1yep5z6ix",variantClassNames:{variant:{primary:"_1yep5z6120",ghost:"_1x62fhb2"}},defaultVariants:{},compoundVariants:[]});var nm=({state:r,...e})=>{let t=ut__default.default.useRef(null),{tabPanelProps:o}=reactAria.useTabPanel(e,r,t),{selectedItem:a}=r,{focusProps:n,isFocusVisible:i}=reactAria.useFocusRing();if(!a?.value)return null;let{className:s,style:l,"data-block-id":p}=a.value;return jsxRuntime.jsx("div",{...reactAria.mergeProps(o,n),ref:t,className:utils.classNames({[om]:i},"Baseline-Tabs-TabPanel",s),"data-block-id":p,style:l,children:a?.props.children})};var Ai=ut__default.default.forwardRef(({className:r,style:e,tabHeaderStyle:t,tabHeaderClassName:o,variant:a="primary",actions:n,onRemove:i,"data-block-id":s,...l},p)=>{let c=reactStately.useTabListState({...l,selectedKey:l.selectedValue,defaultSelectedKey:l.defaultSelectedValue,disabledKeys:l.disabledValues}),d=ut__default.default.useRef(null),{tabListProps:m}=reactAria.useTabList({...l,selectedKey:l.selectedValue,defaultSelectedKey:l.defaultSelectedValue,disabledKeys:l.disabledValues},c,d);return jsxRuntime.jsxs("div",{className:utils.classNames("BaselineUI-Tabs",r),style:e,ref:p,"data-block-id":s,children:[jsxRuntime.jsxs("div",{className:utils.classNames(am({variant:a}),o),style:t,children:[jsxRuntime.jsx("div",{...m,className:tm({variant:a}),ref:d,children:[...c.collection].map(u=>(utils.invariant(u.value,"TabItem requires a value prop"),jsxRuntime.jsx(sm,{item:u,state:c,onRemove:i,variant:a},u.key)))}),n?.map((u,b)=>jsxRuntime.jsx("div",{className:Qu,children:jsxRuntime.jsx(D,{...u,variant:"secondary",size:"sm",className:utils.classNames(rm,u.className)})},b))]}),jsxRuntime.jsx(nm,{state:c},c.selectedItem?.key)]})});Ai.displayName="TabsBase";var sm=({item:r,onRemove:e,state:t,variant:o})=>{let{key:a,value:n}=r,i=ut__default.default.useRef(null),{tabProps:s,isSelected:l,isDisabled:p}=reactAria.useTab({key:a},t,i),{hoverProps:c,isHovered:d}=reactAria.useHover({});utils.invariant(n,"TabButton requires a value prop");let{title:m,icon:u,titleStyle:b,titleClassName:y}=n,{focusProps:f,isFocusVisible:g,isFocused:_}=reactAria.useFocusRing(),{keyboardProps:v}=reactAria.useKeyboard({onKeyDown:x=>{x.key==="Backspace"&&e?e(a):x.continuePropagation();}}),h=utils.filterTruthyValues({"data-selected":l,"data-disabled":p,"data-focused":_,"data-hovered":d,"data-focus-visible":g});return jsxRuntime.jsxs("div",{...reactAria.mergeProps(v,s,c,f,h),className:utils.classNames(em({isHovered:d,isSelected:l,isFocusVisible:g,isDisabled:p,variant:o}),"BaselineUI-Tabs-TabButton",y),style:b,ref:i,children:[u?jsxRuntime.jsx(u,{size:20,className:Li({isHovered:d,isSelected:l,isDisabled:p,variant:o})}):null,m,e?jsxRuntime.jsx(D,{variant:"secondary",elementType:"div",icon:_8.XIcon,size:"xxs",onPress:()=>{e(a);},excludeFromTabOrder:!0,UNSAFE_NON_INTERACTIVE:!0,style:{display:"inline-flex",opacity:l||_||d?1:0},className:Li({isHovered:d,isSelected:l,isDisabled:p,variant:o})}):null]})};sm.displayName="TabButton";var pm=ut__default.default.forwardRef(function({children:e,...t},o){let a=ut.useMemo(()=>ut__default.default.Children.map(e,n=>!n||!ut__default.default.isValidElement(n)||typeof n.type=="string"?null:{...n.props,id:n.props.value}).filter(Boolean),[e]);return jsxRuntime.jsx(Ai,{...t,ref:o,items:a,children:n=>jsxRuntime.jsx(reactStately.Item,{title:n.title,children:n.children},n.key)})});pm.displayName="Tabs";var cm=({children:r,title:e,value:t})=>(utils.invariant(t,"TabItem requires a value prop"),utils.invariant(e,"TabItem requires a title prop"),utils.invariant(r,"TabItem requires children"),r);cm.displayName="TabItem";var dm={ar:{close:"\u0625\u063A\u0644\u0627\u0642"},cs:{close:"Zav\u0159\xEDt"},cy:{close:"Cau"},da:{close:"Luk"},de:{close:"Schlie\xDFen"},el:{close:"\u039A\u03BB\u03B5\u03AF\u03C3\u03B9\u03BC\u03BF"},"en-GB":{close:"Close"},en:{close:"Close"},es:{close:"Cerrar"},fi:{close:"Sulje"},"fr-CA":{close:"Fermer"},fr:{close:"Fermer"},he:{close:"\u05E1\u05D2\u05D9\u05E8\u05D4"},hr:{close:"Zatvori"},id:{close:"Tutup"},it:{close:"Chiudi"},ja:{close:"\u9589\u3058\u308B"},ko:{close:"\uB2EB\uAE30"},ms:{close:"Tutup"},"nb-NO":{close:"Lukk"},nl:{close:"Sluit"},pl:{close:"Zamknij"},"pt-PT":{close:"Fechar"},pt:{close:"Fechar"},ru:{close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C"},sk:{close:"Zavrie\u0165"},sl:{close:"Zapri"},sv:{close:"St\xE4ng"},th:{close:"\u0E1B\u0E34\u0E14"},tr:{close:"Kapat"},uk:{close:"\u0417\u0430\u043A\u0440\u0438\u0442\u0438"},"zh-Hans":{close:"\u5173\u95ED"},"zh-Hant":{close:"\u95DC\u9589"}};var um=C({defaultClassName:"kfun6yt _1yep5z6im _1yep5z6in _1yep5z6io _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6af _1yep5z6ag _1yep5z6ah",variantClassNames:{arrangement:{single:"_1yep5z6vc _1yep5z6vd _1yep5z6ve",multi:"_1yep5z614v _1yep5z614w _1yep5z614x",compact:"_1yep5z614v _1yep5z614w _1yep5z614x"}},defaultVariants:{},compoundVariants:[]}),mm=C({defaultClassName:"kfun6y0 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z6im _1yep5z6in _1yep5z6io _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6lh",variantClassNames:{variant:{info:"_1yep5z611s",warning:"_1yep5z611o",error:"_1yep5z611g",success:"_1yep5z611k"},arrangement:{single:"kfun6y5 _1yep5z616a _1yep5z616b _1yep5z616c _1yep5z615a _1yep5z615b _1yep5z615c",multi:"kfun6y6",compact:"kfun6y7 _1yep5z6m6 _1yep5z6m7 _1yep5z6m8 _1yep5z6oi _1yep5z6oj _1yep5z6ok _1yep5z6po _1yep5z6pp _1yep5z6pq _1yep5z6nc _1yep5z6nd _1yep5z6ne _1yep5z6151 _1yep5z6152 _1yep5z6153 _1yep5z6wc _1yep5z6wd _1yep5z6we"},hasButton:{true:"kfun6y8"},hasCloseButton:{true:"kfun6y9"}},defaultVariants:{},compoundVariants:[[{hasButton:!1,arrangement:"single"},"_1yep5z6183 _1yep5z6184 _1yep5z6185 _1yep5z61af _1yep5z61ag _1yep5z61ah _1yep5z61bl _1yep5z61bm _1yep5z61bn _1yep5z6199 _1yep5z619a _1yep5z619b"],[{hasButton:!0,arrangement:"compact"},"_1yep5z6183 _1yep5z6184 _1yep5z6185 _1yep5z61af _1yep5z61ag _1yep5z61ah _1yep5z61bl _1yep5z61bm _1yep5z61bn _1yep5z6199 _1yep5z619a _1yep5z619b"],[{hasCloseButton:!0,arrangement:"compact"},"_1yep5z61a3 _1yep5z61a4 _1yep5z61a5 _1yep5z618x _1yep5z618y _1yep5z618z"]]}),fm=C({defaultClassName:"kfun6yq _1yep5z6eu",variantClassNames:{size:{sm:"_1yep5z6100",md:"_1yep5z6103"}},defaultVariants:{},compoundVariants:[]}),ym=C({defaultClassName:"kfun6ym _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6im _1yep5z6in _1yep5z6io _1yep5z6jd _1yep5z6je _1yep5z6jf",variantClassNames:{arrangement:{single:"kfun6yn",multi:"_1yep5z6157 _1yep5z6158 _1yep5z6159",compact:"_1yep5z6n0 _1yep5z6n1 _1yep5z6n2 _1yep5z6pc _1yep5z6pd _1yep5z6pe _1yep5z6qi _1yep5z6qj _1yep5z6qk _1yep5z6o6 _1yep5z6o7 _1yep5z6o8 _1yep5z615p _1yep5z615q _1yep5z615r"}},defaultVariants:{},compoundVariants:[]}),bm=C({defaultClassName:"kfun6yh _1yep5z6le",variantClassNames:{variant:{info:"_1yep5z610n",warning:"_1yep5z610j",error:"_1yep5z610b",success:"_1yep5z610f"}},defaultVariants:{},compoundVariants:[]}),gm=C({defaultClassName:"kfun6ye _1yep5z6eu",variantClassNames:{size:{sm:"_1yep5z6102",md:"_1yep5z6105"}},defaultVariants:{},compoundVariants:[]}),vm=C({defaultClassName:"kfun6ya _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6im _1yep5z6in _1yep5z6io _1yep5z6iv _1yep5z6iw _1yep5z6ix",variantClassNames:{arrangement:{single:"_1yep5z615a _1yep5z615b _1yep5z615c",multi:"_1yep5z6qu _1yep5z6qv _1yep5z6qw _1yep5z6t6 _1yep5z6t7 _1yep5z6t8",compact:"_1yep5z614v _1yep5z614w _1yep5z614x"}},defaultVariants:{},compoundVariants:[]});var j0={error:{sm:_16.ErrorAltCircleFilledIcon,md:_20.ErrorAltCircleFilledIcon},info:{sm:_16.InfoCircleFilledIcon,md:_20.InfoCircleFilledIcon},success:{sm:_16.CheckmarkCircleFilledIcon,md:_20.CheckCircleFilledIcon},warning:{sm:_16.WarningFilledIcon,md:_20.WarningFilledIcon}},Ta=ut__default.default.forwardRef(({className:r,description:e,actionLabel:t,onAction:o,style:a,variant:n="info",title:i,arrangement:s="single",onClose:l,size:p="sm","data-block-id":c,"data-block-class":d,elementProps:m},u)=>{let b=A(dm),y=t&&jsxRuntime.jsx(G,{variant:s==="compact"?"tertiary":"ghost",label:t,onPress:o}),f=j0[n][p];return jsxRuntime.jsxs("div",{className:utils.classNames(mm({variant:n,arrangement:s,hasButton:!!t||!!l,hasCloseButton:!!l}),"BaselineUI-InlineAlert",r),"data-block-id":c,"data-block-class":d,style:a,role:"alert",ref:u,...m?.root,children:[jsxRuntime.jsxs("div",{className:vm({arrangement:s}),children:[jsxRuntime.jsx(f,{className:bm({variant:n}),size:16}),jsxRuntime.jsxs("div",{className:um({arrangement:s}),...m?.content,children:[jsxRuntime.jsx("h3",{className:gm({size:p}),...m?.title,children:i}),jsxRuntime.jsx("section",{className:fm({size:p}),...m?.description,children:e})]}),s==="compact"&&y]}),jsxRuntime.jsxs("div",{className:ym({arrangement:s}),children:[s!=="compact"&&y,l?jsxRuntime.jsx(D,{variant:"secondary",icon:_16.XIcon,size:"sm",onPress:l,"aria-label":b.formatMessage("close"),...m?.close}):null]})]})});Ta.displayName="InlineAlert";var it={ar:{add:"\u0625\u0636\u0627\u0641\u0629",addColor:"\u0625\u0636\u0627\u0641\u0629 \u0644\u0648\u0646",cancel:"\u0625\u0644\u063A\u0627\u0621",colorFormat:"\u062A\u0646\u0633\u064A\u0642 \u0627\u0644\u0644\u0648\u0646",colorPresets:"\u0627\u0644\u0623\u0644\u0648\u0627\u0646 \u0627\u0644\u0645\u0633\u0628\u0642\u0629",customColors:"\u0623\u0644\u0648\u0627\u0646 \u0645\u062E\u0635\u0635\u0629",newColor:"\u0644\u0648\u0646 \u0645\u062E\u0635\u0635 \u062C\u062F\u064A\u062F",noColor:"\u0644\u0627 \u064A\u0648\u062C\u062F",removeColor:"\u0625\u0632\u0627\u0644\u0629 \u0627\u0644\u0644\u0648\u0646",transparent:"\u0634\u0641\u0627\u0641"},cs:{add:"P\u0159idat",addColor:"P\u0159idat barvu",cancel:"Zru\u0161it",colorFormat:"Form\xE1t barvy",colorPresets:"P\u0159edvolby barev",customColors:"Vlastn\xED barvy",newColor:"Vlastn\xED barva",noColor:"Nen\xED",removeColor:"Odebrat barvu",transparent:"Pr\u016Fhledn\xE1"},cy:{add:"Ychwanegu",addColor:"Ychwanegu Lliw",cancel:"Canslo",colorFormat:"Fformat Lliw",colorPresets:"Rhagosodiadau Lliw",customColors:"Lliwiau Custom",newColor:"Lliw Personol Newydd",noColor:"Dim",removeColor:"Tynnu Lliw",transparent:"Tryloyw"},da:{add:"Tilf\xF8j",addColor:"Tilf\xF8j Farve",cancel:"Annuller",colorFormat:"Farveformat",colorPresets:"Farvevalg",customColors:"Brugerdefinerede farver",newColor:"Ny tilpasset farve",noColor:"Ingen",removeColor:"Fjern Farve",transparent:"Transparent"},de:{add:"Hinzuf\xFCgen",addColor:"Farbe hinzuf\xFCgen",cancel:"Abbrechen",colorFormat:"Farbformat",colorPresets:"Farbvorlagen",customColors:"Benutzerdefinierte Farben",newColor:"Neue benutzerdefinierte Farbe",noColor:"Kein",removeColor:"Farbe entfernen",transparent:"Transparent"},el:{add:"\u03A0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7",addColor:"\u03A0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7 \u03A7\u03C1\u03CE\u03BC\u03B1\u03C4\u03BF\u03C2",cancel:"\u0391\u03BA\u03CD\u03C1\u03C9\u03C3\u03B7",colorFormat:"\u039C\u03BF\u03C1\u03C6\u03AE \u03C7\u03C1\u03CE\u03BC\u03B1\u03C4\u03BF\u03C2",colorPresets:"\u03A0\u03C1\u03BF\u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AD\u03C2 \u03C7\u03C1\u03C9\u03BC\u03AC\u03C4\u03C9\u03BD",customColors:"\u03A0\u03C1\u03BF\u03C3\u03B1\u03C1\u03BC\u03BF\u03C3\u03BC\u03AD\u03BD\u03B1 \u03A7\u03C1\u03CE\u03BC\u03B1\u03C4\u03B1",newColor:"\u039D\u03AD\u03BF \u03C0\u03C1\u03BF\u03C3\u03B1\u03C1\u03BC\u03BF\u03C3\u03BC\u03AD\u03BD\u03BF \u03C7\u03C1\u03CE\u03BC\u03B1",noColor:"\u039A\u03B1\u03BD\u03AD\u03BD\u03B1\u03C2",removeColor:"\u0391\u03C6\u03B1\u03AF\u03C1\u03B5\u03C3\u03B7 \u03A7\u03C1\u03CE\u03BC\u03B1\u03C4\u03BF\u03C2",transparent:"\u0397\u03BC\u03B9\u03B4\u03B9\u03B1\u03C6\u03B1\u03BD\u03AE\u03C2"},"en-GB":{add:"Add",addColor:"Add Colour",cancel:"Cancel",colorFormat:"Colour Format",colorPresets:"Colour Presets",customColors:"Custom Colours",newColor:"New Custom Colour",noColor:"None",removeColor:"Remove Colour",transparent:"Transparent"},en:{add:"Add",addColor:"Add Color",cancel:"Cancel",colorFormat:"Color Format",colorPresets:"Color Presets",customColors:"Custom Colors",newColor:"New Custom Color",noColor:"None",removeColor:"Remove Color",transparent:"Transparent"},es:{add:"A\xF1adir",addColor:"A\xF1adir color",cancel:"Cancelar",colorFormat:"Formato de color",colorPresets:"Preajustes de color",customColors:"Colores personalizados",newColor:"Nuevo color personalizado",noColor:"Ninguna",removeColor:"Eliminar color",transparent:"Transparente"},fi:{add:"Lis\xE4\xE4",addColor:"Lis\xE4\xE4 v\xE4ri",cancel:"Kumoa",colorFormat:"V\xE4rimuoto",colorPresets:"V\xE4rin esiasetukset",customColors:"Mukautetut v\xE4rit",newColor:"Uusi muokattu v\xE4ri",noColor:"Ei mit\xE4\xE4n",removeColor:"Poista v\xE4ri",transparent:"L\xE4pin\xE4kyv\xE4"},"fr-CA":{add:"Ajouter",addColor:"Ajouter une couleur",cancel:"Annuler",colorFormat:"Format de couleur",colorPresets:"Pr\xE9r\xE9glages de couleur",customColors:"Couleurs personnalis\xE9es",newColor:"Nouvelle couleur personnalis\xE9e",noColor:"Aucune",removeColor:"Supprimer la couleur",transparent:"Transparent"},fr:{add:"Ajouter",addColor:"Ajouter une couleur",cancel:"Annuler",colorFormat:"Format de couleur",colorPresets:"Pr\xE9r\xE9glages de couleur",customColors:"Couleurs personnalis\xE9es",newColor:"Nouvelle couleur personnalis\xE9e",noColor:"Aucune",removeColor:"Supprimer la couleur",transparent:"Transparent"},he:{add:"\u05D4\u05D5\u05E1\u05E4\u05D4",addColor:"\u05D4\u05D5\u05E1\u05E3 \u05E6\u05D1\u05E2",cancel:"\u05D1\u05D9\u05D8\u05D5\u05DC",colorFormat:"\u05E4\u05D5\u05E8\u05DE\u05D8 \u05E6\u05D1\u05E2",colorPresets:"\u05DE\u05E6\u05D1\u05D9 \u05E6\u05D1\u05E2 \u05DE\u05EA\u05D5\u05DB\u05E0\u05EA\u05D9\u05DD",customColors:"\u05E6\u05D1\u05E2\u05D9\u05DD \u05DE\u05D5\u05EA\u05D0\u05DE\u05D9\u05DD \u05D0\u05D9\u05E9\u05D9\u05EA",newColor:"\u05E6\u05D1\u05E2 \u05DE\u05D5\u05EA\u05D0\u05DD \u05D0\u05D9\u05E9\u05D9\u05EA \u05D7\u05D3\u05E9",noColor:"\u05DC\u05DC\u05D0",removeColor:"\u05D4\u05E1\u05E8 \u05E6\u05D1\u05E2",transparent:"\u05E9\u05E7\u05D5\u05E3"},hr:{add:"Dodati",addColor:"Dodaj boju",cancel:"Otka\u017Ei",colorFormat:"Format boje",colorPresets:"Prijedlozi boja",customColors:"Prilago\u0111ene boje",newColor:"Nova prilago\u0111ena boja",noColor:"Prazno",removeColor:"Ukloni boju",transparent:"Prozirna"},id:{add:"Tambah",addColor:"Tambah Warna",cancel:"Batalkan",colorFormat:"Format Warna",colorPresets:"Preset Warna",customColors:"Warna Kustom",newColor:"Warna Khusus Baru",noColor:"Tidak ada",removeColor:"Hapus Warna",transparent:"Transparan"},it:{add:"Aggiungi",addColor:"Aggiungi colore",cancel:"Annulla",colorFormat:"Formato del colore",colorPresets:"Colori predefiniti",customColors:"Colori personalizzati",newColor:"Nuovo colore personalizzato",noColor:"Nessuno",removeColor:"Rimuovi colore",transparent:"Trasparente"},ja:{add:"\u8FFD\u52A0",addColor:"\u8272\u3092\u8FFD\u52A0",cancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",colorFormat:"\u30AB\u30E9\u30FC\u30D5\u30A9\u30FC\u30DE\u30C3\u30C8",colorPresets:"\u30AB\u30E9\u30FC\u30D7\u30EA\u30BB\u30C3\u30C8",customColors:"\u30AB\u30B9\u30BF\u30E0\u30AB\u30E9\u30FC",newColor:"\u65B0\u898F\u30AB\u30B9\u30BF\u30E0\u30AB\u30E9\u30FC",noColor:"\u306A\u3057",removeColor:"\u8272\u3092\u524A\u9664",transparent:"\u900F\u660E"},ko:{add:"\uCD94\uAC00",addColor:"\uC0C9\uC0C1 \uCD94\uAC00",cancel:"\uCDE8\uC18C",colorFormat:"\uC0C9\uC0C1 \uD615\uC2DD",colorPresets:"\uC0C9\uC0C1 \uBBF8\uB9AC\uC124\uC815",customColors:"\uC0AC\uC6A9\uC790 \uC815\uC758 \uC0C9\uC0C1",newColor:"\uC0C8\uB85C\uC6B4 \uC0AC\uC6A9\uC790\uC9C0\uC815 \uC0C9\uC0C1",noColor:"\uC5C6\uC74C",removeColor:"\uC0C9\uC0C1 \uC81C\uAC70",transparent:"\uD22C\uBA85"},ms:{add:"Tambah",addColor:"Tambah Warna",cancel:"Batal",colorFormat:"Format Warna",colorPresets:"Praset Warna",customColors:"Warna Kustom",newColor:"Warna Tersuai Baharu",noColor:"Tiada",removeColor:"Buang Warna",transparent:"Lut Sinar"},"nb-NO":{add:"Legg til",addColor:"Legg til farge",cancel:"Avbryt",colorFormat:"Fargeformat",colorPresets:"Fargeinnstillinger",customColors:"Egendefinerte farger",newColor:"Ny tilpasset farge",noColor:"Ingen",removeColor:"Fjern farge",transparent:"Gjennomsiktig"},nl:{add:"Voeg toe",addColor:"Kleur toevoegen",cancel:"Annuleer",colorFormat:"Kleurformaat",colorPresets:"Kleurvoorinstellingen",customColors:"Aangepaste kleuren",newColor:"Nieuwe aangepaste kleur",noColor:"Geen",removeColor:"Kleur verwijderen",transparent:"Doorzichtig"},pl:{add:"Dodaj",addColor:"Dodaj kolor",cancel:"Anuluj",colorFormat:"Format koloru",colorPresets:"Wst\u0119pnie ustawione kolory",customColors:"Niestandardowe kolory",newColor:"Nowy kolor niestandardowy",noColor:"Brak",removeColor:"Usu\u0144 kolor",transparent:"Prze\u015Bwiecaj\u0105ce"},"pt-PT":{add:"Adicionar",addColor:"Adicionar cor",cancel:"Cancelar",colorFormat:"Formato de cor",colorPresets:"Predefini\xE7\xF5es de cor",customColors:"Cores personalizadas",newColor:"Nova cor personalizada",noColor:"Nenhum",removeColor:"Remover cor",transparent:"Transparente"},pt:{add:"Adicionar",addColor:"Adicionar cor",cancel:"Cancelar",colorFormat:"Formato de cor",colorPresets:"Pr\xE9-ajustes de Cores",customColors:"Cores personalizadas",newColor:"Nova Cor Personalizada",noColor:"Nenhum",removeColor:"Remover cor",transparent:"Transparente"},ru:{add:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C",addColor:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0446\u0432\u0435\u0442",cancel:"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C",colorFormat:"\u0424\u043E\u0440\u043C\u0430\u0442 \u0446\u0432\u0435\u0442\u0430",colorPresets:"\u0411\u0438\u0431\u043B\u0438\u043E\u0442\u0435\u043A\u0430 \u0446\u0432\u0435\u0442\u043E\u0432",customColors:"\u041F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C\u0441\u043A\u0438\u0435 \u0446\u0432\u0435\u0442\u0430",newColor:"\u041D\u043E\u0432\u044B\u0439 \u0441\u043E\u0431\u0441\u0442\u0432\u0435\u043D\u043D\u044B\u0439 \u0446\u0432\u0435\u0442",noColor:"\u041D\u0435\u0442",removeColor:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0446\u0432\u0435\u0442",transparent:"\u041F\u0440\u043E\u0437\u0440\u0430\u0447\u043D\u044B\u0439"},sk:{add:"Prida\u0165",addColor:"Prida\u0165 farbu",cancel:"Zru\u0161i\u0165",colorFormat:"Form\xE1t farby",colorPresets:"Predvo\u013Eby farieb",customColors:"Vlastn\xE9 farby",newColor:"Vlastn\xE1 farba",noColor:"\u017Diadny",removeColor:"Odstr\xE1ni\u0165 farbu",transparent:"Prieh\u013Eadn\xE1"},sl:{add:"Dodaj",addColor:"Dodaj barvo",cancel:"Prekli\u010Di",colorFormat:"Barvni format",colorPresets:"Barvne predloge",customColors:"Prilagojene barve",newColor:"Nova barva po meri",noColor:"Prazna stran",removeColor:"Odstrani barvo",transparent:"Prosojna"},sv:{add:"L\xE4gg till",addColor:"L\xE4gg till f\xE4rg",cancel:"Avbryt",colorFormat:"F\xE4rgformat",colorPresets:"F\xF6rval f\xF6r f\xE4rger",customColors:"Anpassade f\xE4rger",newColor:"Ny anpassad f\xE4rg",noColor:"Ingen",removeColor:"Ta bort f\xE4rg",transparent:"Genomskinligt"},th:{add:"\u0E40\u0E1E\u0E34\u0E48\u0E21",addColor:"\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E2A\u0E35",cancel:"\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01",colorFormat:"\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E2A\u0E35",colorPresets:"\u0E04\u0E48\u0E32\u0E2A\u0E35\u0E17\u0E35\u0E48\u0E15\u0E31\u0E49\u0E07\u0E44\u0E27\u0E49\u0E25\u0E48\u0E27\u0E07\u0E2B\u0E19\u0E49\u0E32",customColors:"\u0E2A\u0E35\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E40\u0E2D\u0E07",newColor:"\u0E2A\u0E35\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E40\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48",noColor:"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E40\u0E25\u0E22",removeColor:"\u0E25\u0E1A\u0E2A\u0E35",transparent:"\u0E42\u0E1B\u0E23\u0E48\u0E07\u0E43\u0E2A"},tr:{add:"Ekle",addColor:"Renk Ekle",cancel:"Vazge\xE7",colorFormat:"Renk Format\u0131",colorPresets:"Renk \xD6nayarlar\u0131",customColors:"\xD6zel Renkler",newColor:"Yeni \xF6zel renk",noColor:"Hi\xE7biri",removeColor:"Rengi Kald\u0131r",transparent:"\u015Eeffaf"},uk:{add:"\u0414\u043E\u0434\u0430\u0442\u0438",addColor:"\u0414\u043E\u0434\u0430\u0442\u0438 \u043A\u043E\u043B\u0456\u0440",cancel:"\u0421\u043A\u0430\u0441\u0443\u0432\u0430\u0442\u0438",colorFormat:"\u0424\u043E\u0440\u043C\u0430\u0442 \u043A\u043E\u043B\u044C\u043E\u0440\u0443",colorPresets:"\u0411\u0456\u0431\u043B\u0456\u043E\u0442\u0435\u043A\u0430 \u043A\u043E\u043B\u044C\u043E\u0440\u0456\u0432",customColors:"\u041A\u043E\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0446\u044C\u043A\u0456 \u043A\u043E\u043B\u044C\u043E\u0440\u0438",newColor:"\u041D\u043E\u0432\u0438\u0439 \u0432\u043B\u0430\u0441\u043D\u0438\u0439 \u043A\u043E\u043B\u0456\u0440",noColor:"\u041D\u0435\u043C\u0430\u0454",removeColor:"\u0412\u0438\u0434\u0430\u043B\u0438\u0442\u0438 \u043A\u043E\u043B\u0456\u0440",transparent:"\u041F\u0440\u043E\u0437\u043E\u0440\u0438\u0439"},"zh-Hans":{add:"\u6DFB\u52A0",addColor:"\u6DFB\u52A0\u989C\u8272",cancel:"\u53D6\u6D88",colorFormat:"\u989C\u8272\u683C\u5F0F",colorPresets:"\u989C\u8272\u9884\u8BBE",customColors:"\u81EA\u5B9A\u4E49\u989C\u8272",newColor:"\u65B0\u81EA\u5B9A\u4E49\u989C\u8272",noColor:"\u65E0",removeColor:"\u79FB\u9664\u989C\u8272",transparent:"\u900F\u660E"},"zh-Hant":{add:"\u52A0\u5165",addColor:"\u6DFB\u52A0\u984F\u8272",cancel:"\u53D6\u6D88",colorFormat:"\u984F\u8272\u683C\u5F0F",colorPresets:"\u984F\u8272\u9810\u8A2D\u9805",customColors:"\u81EA\u8A02\u984F\u8272",newColor:"\u65B0\u81EA\u8A02\u984F\u8272",noColor:"\u7121",removeColor:"\u79FB\u9664\u984F\u8272",transparent:"\u900F\u660E"}};var Na=({children:r})=>{let{triggerProps:e}=ut__default.default.useContext(yt);return jsxRuntime.jsx(interactions.PressResponder,{...e,children:r})};Na.displayName="ModalTrigger";var G0=({children:r})=>{let{state:e}=ut__default.default.useContext(yt);return jsxRuntime.jsx(interactions.PressResponder,{onPress:()=>{e?.close();},children:r})};var hm="_1dbkl53 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6lh",_m="_1dbkl5e",zm=C({defaultClassName:"_1dbkl54 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6im _1yep5z6in _1yep5z6io _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6ls _1yep5z6lk _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6eu _1yep5z6lj _1yep5z6dy",variantClassNames:{isHovered:{true:"_1dbkl55"},isFocusVisible:{true:"_1dbkl56"},isDisabled:{true:"z9nup83 _1yep5z610v"},labelPosition:{top:"_1dbkl58",start:"_1dbkl59"}},defaultVariants:{},compoundVariants:[]}),Cm="_1yep5z6im _1yep5z6in _1yep5z6io _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6jd _1yep5z6je _1yep5z6jf _1yep5z6kd _1yep5z6ke _1yep5z6kf",xm=C({defaultClassName:"_1dbkl50 _1yep5z6im _1yep5z6in _1yep5z6io _1yep5z6dy _1yep5z6ev",variantClassNames:{labelPosition:{top:"_1yep5z6oc _1yep5z6od _1yep5z6oe",start:"_1dbkl52"}},defaultVariants:{},compoundVariants:[]}),Ea="_1dbkl5l _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z69f _1yep5z69g _1yep5z69h",Pm="_1dbkl5f z9nup87",La="_1dbkl5m _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6i7 _1yep5z6i8 _1yep5z6i9",wm="_1dbkl5k _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6lk",km="_1yep5z63r _1yep5z63s _1yep5z63t _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6im _1yep5z6in _1yep5z6io _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6dy _1yep5z6ev _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6jd _1yep5z6je _1yep5z6jf",Ma=C({defaultClassName:"_1dbkl5h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6g1",variantClassNames:{includesCustomColorPicker:{true:"_1yep5z6n0 _1yep5z6n1 _1yep5z6n2"}},defaultVariants:{},compoundVariants:[]}),Fi="_1dbkl5v _1yep5z6im _1yep5z6in _1yep5z6io _1yep5z6iv _1yep5z6iw _1yep5z6ix",Sm=C({defaultClassName:"_1dbkl5q _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6br _1yep5z6bs _1yep5z6bt _1yep5z6d3 _1yep5z6d4 _1yep5z6d5 _1yep5z6im _1yep5z6in _1yep5z6io _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6jd _1yep5z6je _1yep5z6jf _1yep5z6lt _1yep5z6h4 _1yep5z6lk _1yep5z6eu _1yep5z6dy",variantClassNames:{isFocused:{true:"_1dbkl5r _1yep5z612y"},isHovered:{true:"_1dbkl5s"},allowAlpha:{false:"_1yep5z6x3 _1yep5z6x4 _1yep5z6x5 _1yep5z6yf _1yep5z6yg _1yep5z6yh _1yep5z617e"}},defaultVariants:{},compoundVariants:[[{isHovered:!0,isFocused:!1},"_1yep5z61oz"]]}),Im=C({defaultClassName:"_1dbkl5a _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62c _1yep5z62d _1yep5z62e _1yep5z63i _1yep5z63j _1yep5z63k _1yep5z616 _1yep5z617 _1yep5z618 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6im _1yep5z6in _1yep5z6io _1yep5z6iy _1yep5z6iz _1yep5z6j0 _1yep5z69c _1yep5z69d _1yep5z69e _1yep5z6f5 _1yep5z6lj _1yep5z6jd _1yep5z6je _1yep5z6jf _1yep5z6l4 _1yep5z6l7",variantClassNames:{isHovered:{true:"_1yep5z6120"},isFocusVisible:{true:"_1yep5z617k _1yep5z617i _1yep5z617l _1yep5z613r"},isDisabled:{true:"_1yep5z6114"}},defaultVariants:{},compoundVariants:[]}),eo="_1dbkl5u",Da="_1dbkl5g",Aa="_1dbkl5j _1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6im _1yep5z6in _1yep5z6io _1yep5z6iy _1yep5z6iz _1yep5z6j0 _1yep5z69f _1yep5z69g _1yep5z69h",ji="_1dbkl5x",Rm="_1dbkl5w",Hi="_1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6im _1yep5z6in _1yep5z6io _1yep5z6iy _1yep5z6iz _1yep5z6j0 _1yep5z69l _1yep5z69m _1yep5z69n",Ba=C({defaultClassName:"_1dbkl5n _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6lo _1yep5z6ia _1yep5z6ib _1yep5z6ic _1yep5z6lt _1yep5z6lw",variantClassNames:{isFocusVisible:{true:"_1dbkl5o _1yep5z617i _1yep5z613r _1yep5z617k"}},defaultVariants:{},compoundVariants:[]}),Vi="z9nup84 z9nup86 _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6la _1yep5z6lb _1yep5z6ld _1yep5z6lc _1yep5z6ia _1yep5z6ib _1yep5z6ic";var Tm=C({defaultClassName:"_1344e9q0 _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6i7 _1yep5z6i8 _1yep5z6i9 _1yep5z6le _1yep5z6i6 _1yep5z6im _1yep5z6in _1yep5z6io _1yep5z6jd _1yep5z6je _1yep5z6jf _1yep5z6k7 _1yep5z6k8 _1yep5z6k9",variantClassNames:{isFocusVisible:{true:"_1344e9q1"},isDisabled:{true:"_1344e9q2"},removeBlendMode:{true:"_1344e9q3"},isSelected:{true:"_1yep5z617k _1yep5z617i _1yep5z613r _1yep5z617n"},isHovered:{true:"_1344e9q5"}},defaultVariants:{},compoundVariants:[[{isSelected:!1,isFocusVisible:!0},"_1344e9q6"],[{isSelected:!0,isFocusVisible:!0},"_1344e9q7 _1yep5z61th _1yep5z61tf _1yep5z61po _1yep5z61tk"],[{isSelected:!0,isDisabled:!0},"_1yep5z61th _1yep5z61tf _1yep5z61po _1yep5z61tk _1yep5z61py"],[{isHovered:!0,isSelected:!1},"_1yep5z61tk _1yep5z61th _1yep5z61tf _1yep5z61ps"]]}),Nm="_1344e9q9 _1yep5z6fl";var st=ut__default.default.forwardRef(({color:r,isFocusVisible:e,isSelected:t,isInteractive:o,isDisabled:a,style:n,className:i,id:s,tooltip:l,"data-block-id":p,"data-block-class":c,...d},m)=>{let u=r&&r!==Le&&(typeof r=="string"?color.parseColor(r):r),{formatMessage:b}=A(),y=!u,{colorSwatchProps:f}=color$1.useColorSwatch({color:y?"#000000":r}),{hoverProps:g,isHovered:_}=reactAria.useHover({isDisabled:a||!o}),v=utils.filterTruthyValues({"data-focus-visible":e,"data-selected":t,"data-hovered":_,"data-block-id":p,"data-block-class":c,"data-disabled":a,"data-interactive":o}),h=y?b(Em.none):f["aria-label"],x=d["aria-label"]??h,{tooltipProps:w}=jo({tooltip:l,label:x}),P=jsxRuntime.jsx("div",{...reactAria.mergeProps(g,v,y?{}:f),style:n,"aria-label":y?b(Em.none):f["aria-label"],role:"img",className:utils.classNames(Tm({removeBlendMode:y,isFocusVisible:e,isDisabled:!!a,isSelected:!!t,isHovered:_}),"BaselineUI-ColorSwatch",i),ref:m,id:s,...d,children:jsxRuntime.jsx(E,{display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"full",height:"full",width:"full",opacity:a?"medium":void 0,style:u?Lm(u,4):void 0,children:y?jsxRuntime.jsx("div",{className:Nm}):null})});return w&&!a?jsxRuntime.jsx(ne,{...w,children:jsxRuntime.jsx(aa,{children:P})}):P});st.displayName="ColorSwatch";var Em=K({none:{id:"none",defaultMessage:"None"}});var Dm=[{id:"hex",label:"HEX"},{id:"rgb",label:"RGB"}],oo=color.parseColor("#000000").toFormat("hsla"),pe="hsla",ro="hexa";function vt(r){return typeof r=="string"?color.parseColor(r).toFormat(pe):r?r.toFormat(pe):null}function Am(r,e){return r?.getChannelValue("alpha")?e?.toString(ro)===r.toString(ro):!e?.getChannelValue("alpha")}function Bm(r,e,t){return e?.label?e.label:r?.getChannelValue("alpha")===0?t:r?.toString("rgba")}var Le="NONE";function Om(r,e){let t=e?.map(a=>({id:color.parseColor(a.color).toString(ro),label:a.label}))||[],o={id:Le,label:r};return [...t,o]}var Oa=(r,{optionProps:e,isFocusVisible:t,isSelected:o},a)=>(utils.invariant(r.value&&"label"in r.value,"Item must have label"),jsxRuntime.jsx("li",{...e,ref:a,className:wm,children:jsxRuntime.jsx(st,{color:r.value.id,isFocusVisible:t,isSelected:o,"aria-label":r.value.label,isInteractive:!0})})),Lm=(r,e=4)=>{let t=r.getChannelValue("alpha")===0,o=`repeating-conic-gradient(transparent 0% 25%, ${tokens.themeVars.color.background.secondary.medium} 25% 50%)`;return {backgroundImage:t?o:`linear-gradient(${r.toString("hexa")}, ${r.toString("hexa")}), ${o}`,backgroundSize:`${e}px ${e}px`}};var jm=({value:r,...e})=>{let t=ut__default.default.useRef(null),o=ut__default.default.useRef(null),a=ut__default.default.useRef(null),n=color.useColorAreaState({...e,value:r}),{colorAreaProps:i,xInputProps:s,yInputProps:l,thumbProps:p}=color$1.useColorArea({...e,value:r,inputXRef:t,inputYRef:o,containerRef:a},n);ut.useEffect(()=>{t.current?.focus();},[]);let{focusProps:c,isFocusVisible:d}=reactAria.useFocusRing();return jsxRuntime.jsx("div",{ref:a,...i,className:utils.classNames(hm,"BaselineUI-ColorInput-ColorArea"),children:jsxRuntime.jsxs("div",{...p,className:utils.classNames(Ba({isFocusVisible:d}),"BaselineUI-ColorInput-ColorAreaThumb"),style:{...p.style,transform:"translate(-50%, -50%)",backgroundColor:vt(r)?.withChannelValue("alpha",1).toString("css")},children:[jsxRuntime.jsx("input",{ref:t,...s,...c}),jsxRuntime.jsx("input",{ref:o,...l,...c})]})})};var $m=({color:r,setColor:e,allowAlpha:t,...o})=>{let a=color.useColorFieldState({value:r,onChange:d=>{e(vt(d)?.toFormat(pe).withChannelValue("alpha",r.getChannelValue("alpha")??1)||oo);}}),n=ut__default.default.useRef(null),{inputProps:i}=color$1.useColorField({...o,"aria-label":"Hex"},a,n),{focusProps:s,isFocused:l}=reactAria.useFocusRing({isTextInput:!0}),{hoverProps:p,isHovered:c}=reactAria.useHover({});return jsxRuntime.jsxs("div",{className:utils.classNames(Fi,"BaselineUI-ColorInput-FieldInput"),"data-color-mode":t?"hexa":"hex",children:[jsxRuntime.jsx("input",{...reactAria.mergeProps(i,s,p),ref:n,className:Sm({isFocused:l,isHovered:c,allowAlpha:t})}),t?jsxRuntime.jsx(qm,{color:r,setColor:e}):null]})},Um=({color:r,setColor:e,allowAlpha:t})=>{let o=r.toFormat("rgba"),{locale:a}=reactAria.useLocale();return jsxRuntime.jsxs("div",{className:utils.classNames(Fi,"BaselineUI-ColorInput-FieldInput"),"data-color-mode":t?"rgba":"rgb",children:[jsxRuntime.jsx(Oe,{"aria-label":r.getChannelName("red",a),value:o.getChannelValue("red"),showStepper:!1,className:eo,onChange:n=>{e(o.withChannelValue("red",n).toFormat(pe));},step:1,minValue:0,maxValue:255}),jsxRuntime.jsx(Oe,{"aria-label":r.getChannelName("green",a),value:o.getChannelValue("green"),showStepper:!1,className:eo,onChange:n=>{e(o.withChannelValue("green",n).toFormat(pe));},step:1,minValue:0,maxValue:255}),jsxRuntime.jsx(Oe,{"aria-label":r.getChannelName("blue",a),value:o.getChannelValue("blue"),showStepper:!1,className:eo,onChange:n=>{e(o.withChannelValue("blue",n).toFormat(pe));},step:1,minValue:0,maxValue:255}),t?jsxRuntime.jsx(qm,{color:r,setColor:e}):null]})},bP={style:"percent",maximumFractionDigits:0},qm=({color:r,setColor:e})=>{let{locale:t}=reactAria.useLocale(),o=ut.useCallback(a=>{e(r.withChannelValue("alpha",a));},[r,e]);return jsxRuntime.jsx(Oe,{"aria-label":r.getChannelName("alpha",t),value:r.getChannelValue("alpha"),formatOptions:bP,className:eo,showStepper:!1,onChange:o,minValue:0,maxValue:1})};var Ki=({channel:r,...e})=>{let{locale:t}=reactAria.useLocale(),o=color.useColorSliderState({...e,channel:r,locale:t}),a=ut__default.default.useRef(null),n=ut__default.default.useRef(null),{trackProps:i,thumbProps:s,inputProps:l}=color$1.useColorSlider({...e,channel:r,trackRef:a,inputRef:n,"aria-label":o.value.getChannelName(r,t)},o),{focusProps:p,isFocusVisible:c}=reactAria.useFocusRing();return jsxRuntime.jsxs("div",{className:utils.classNames(La,{[kp({size:"xs"})]:r==="alpha"},"BaselineUI-ColorInput-ColorSlider"),"data-channel":r,...i,ref:a,children:[r==="alpha"&&jsxRuntime.jsx("div",{className:Vi}),jsxRuntime.jsx("div",{className:La,style:i.style}),jsxRuntime.jsxs("div",{className:utils.classNames(Ba({isFocusVisible:c}),"BaselineUI-ColorInput-ColorSliderThumb"),...s,children:[jsxRuntime.jsx("div",{className:Vi,style:{backgroundColor:"#ffffff"}}),jsxRuntime.jsx("div",{style:{backgroundColor:o.getDisplayColor().toString("css"),height:8},className:La}),jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{ref:n,...l,...p})})]})]})};var Fa=({color:r,setColor:e,allowAlpha:t,onChangeEnd:o})=>{let[a,n]=ut__default.default.useState("hex"),{formatMessage:i}=A(it);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(jm,{value:r,xChannel:"saturation",yChannel:"lightness",onChange:e,onChangeEnd:o}),jsxRuntime.jsxs("div",{className:Hi,children:[jsxRuntime.jsx(Ki,{channel:"hue",value:r,onChange:e,onChangeEnd:o}),t?jsxRuntime.jsx(Ki,{channel:"alpha",value:r,onChange:e,onChangeEnd:o}):null]}),jsxRuntime.jsxs("div",{className:utils.classNames(Hi,tokens.sprinkles.variants({paddingTop:"none",gap:"sm"})),children:[jsxRuntime.jsx(nt,{label:i("colorFormat"),labelPosition:"start",variant:"ghost",items:Dm,selectedKey:a,onSelectionChange:s=>{n(s);}}),a==="hex"&&jsxRuntime.jsx($m,{color:r,setColor:s=>{e(s),o?.(s);},allowAlpha:t}),a==="rgb"&&jsxRuntime.jsx(Um,{color:r,setColor:s=>{e(s),o?.(s);},allowAlpha:t})]})]})};var Jm=({color:r,setColor:e,storePickedColorKey:t,addColorButtonLabel:o,removeColorButtonLabel:a,customColorsLabel:n,pickerMode:i,allowAlpha:s})=>{let{locale:l}=reactAria.useLocale(),{formatMessage:p}=A(it),c=ut__default.default.useRef(null),d=Ze(c.current),[m,u]=zp(t,[]),b=ut__default.default.useRef(null),[y,f]=ut__default.default.useState(r),g=ut__default.default.useMemo(()=>m.map(P=>({id:P,label:color.parseColor(P).getColorName(l),description:P})),[m,l]),_=ut.useCallback(()=>{let P=i==="active"?r:y;if(m.includes(P.toString(pe))){b.current?.querySelector(`[data-key='${P.toString(pe)}']`)?.classList.add(ji);return}u([...m,P.toString(pe)]);},[m,r,u,y,i]);ut.useEffect(()=>{let P=b.current;function z(k){k.animationName===Rm&&k.target?.classList.remove(ji);}return P?.addEventListener("animationend",z),()=>{P?.removeEventListener("animationend",z);}},[]);let v=reactAria.useId(),h=jsxRuntime.jsx(D,{ref:c,variant:"secondary",size:"md","aria-label":o,icon:_20.PlusIcon,onPress:i==="active"?_:void 0}),x=ut.useCallback(P=>jsxRuntime.jsxs(ge,{size:"content",className:Ma({includesCustomColorPicker:!0}),style:{paddingBlockEnd:0},"aria-label":p("newColor"),children:[jsxRuntime.jsx(Fa,{color:y,setColor:f,allowAlpha:s}),jsxRuntime.jsx(V,{}),jsxRuntime.jsx(E,{padding:"lg",display:"flex",flexDirection:"row-reverse",children:jsxRuntime.jsxs(E,{display:"inline-flex",gap:"lg",children:[jsxRuntime.jsx(G,{label:p("cancel"),size:"sm",variant:"secondary",onPress:P}),jsxRuntime.jsx(G,{label:p("add"),variant:"primary",onPress:()=>{_(),P();},size:"sm"})]})})]}),[y,_,p,s]),w=ut.useCallback(P=>{utils.invariant(P instanceof Set,"Key must be a set");let z=[...P][0];z&&e(color.parseColor(z).toFormat(pe));},[e]);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(V,{}),jsxRuntime.jsxs("div",{className:utils.classNames(km,"BaselineUI-ColorInput-CustomColors"),children:[jsxRuntime.jsx("span",{id:v,children:n}),jsxRuntime.jsxs(E,{display:"flex",children:[!!m.length&&m.includes(r.toString(pe))&&jsxRuntime.jsx(D,{variant:"secondary",size:"md",elementType:"div",icon:_20.MinusIcon,"aria-label":a,onPress:()=>{u(m.filter(P=>P!==r.toString(pe)));}}),i==="active"&&h,i==="lazy"&&(d==="mobile"?jsxRuntime.jsxs(Ne,{children:[jsxRuntime.jsx(Na,{children:h}),jsxRuntime.jsx(Fe,{style:{zIndex:1e5},children:({close:P})=>x(P)})]}):jsxRuntime.jsxs(Ae,{type:"dialog",children:[jsxRuntime.jsx(Be,{children:h}),jsxRuntime.jsx(Ee,{placement:"right top",className:Da,offset:6,children:({close:P})=>x(P)})]}))]})]}),!!m.length&&jsxRuntime.jsx(de,{items:g,layout:"grid","aria-labelledby":v,className:utils.classNames(Ea,Aa,tokens.sprinkles.variants({paddingTop:"xs"}),"BaselineUI-ColorInput-CustomColorsListBox"),renderOption:Oa,ref:b,autoFocus:!1,selectionMode:"single",selectedKeys:[r.toString(pe)],onSelectionChange:w})]})};var Xi=ut__default.default.forwardRef(({setColor:r,color:e,triggerRef:t,autoFocus:o,presets:a,state:n},i)=>{let{formatMessage:s}=A(it),l=ut.useCallback(p=>{if(p instanceof Set&&p.size){let c=[...p][0],d=a.find(m=>m.id===c);utils.invariant(d,"Preset not found"),r(d.id===Le?null:color.parseColor(d.id).toFormat(pe)),n.close();}},[n,a,r]);return jsxRuntime.jsx("div",{className:utils.classNames(Aa,"BaselineUI-ColorInput-Presets"),style:{minWidth:t.current?.offsetWidth},ref:i,children:jsxRuntime.jsx(de,{autoFocus:o,items:a,layout:"grid","aria-label":s("colorPresets"),className:Ea,renderOption:Oa,selectionMode:"single",selectedKeys:[e?.toString(ro)||Le],onSelectionChange:l})})});Xi.displayName="ColorPresetList";var no=ut__default.default.forwardRef(({color:r,colorLabel:e,colorName:t,...o},a)=>{let n=ut__default.default.useRef(null),{hoverProps:i,isHovered:s}=reactAria.useHover({isDisabled:o.isDisabled}),{buttonProps:l,isPressed:p}=reactAria.useButton(o,n),{isFocusVisible:c,focusProps:d}=reactAria.useFocusRing(),m=utils.filterTruthyValues({"data-block-id":o["data-block-id"],"data-focused":c,"data-focus-visible":c,"data-disabled":o.isDisabled,"data-hovered":s,"data-pressed":p}),u=So(),b=So();return jsxRuntime.jsxs("button",{...reactAria.mergeProps(l,i,d,m),style:o.style,className:utils.classNames(zm({isHovered:s,isFocusVisible:c||o.isOpen,isDisabled:o.isDisabled,labelPosition:o.labelPosition}),"BaselineUI-ColorInputButton",o.className),ref:L(a,n),id:u,"aria-labelledby":o["aria-labelledby"]||`${u} ${b}`,children:[jsxRuntime.jsx(st,{color:r?.toString("hexa")}),e?jsxRuntime.jsx("div",{className:Pm,id:b,"aria-hidden":"true",children:t}):typeof t=="string"&&jsxRuntime.jsx(reactAria.VisuallyHidden,{children:t})]})});no.displayName="ColorInputButton";var Va=ut__default.default.forwardRef(({className:r,style:e,icon:t,...o},a)=>{let n=ut__default.default.useRef(null),{hoverProps:i,isHovered:s}=reactAria.useHover({isDisabled:o.isDisabled}),{buttonProps:l,isPressed:p}=reactAria.useButton(o,n),{isFocusVisible:c,focusProps:d}=reactAria.useFocusRing(),m=utils.filterTruthyValues({"data-block-id":o["data-block-id"],"data-focused":c,"data-focus-visible":c,"data-disabled":o.isDisabled,"data-hovered":s,"data-pressed":p});return jsxRuntime.jsxs("button",{...reactAria.mergeProps(l,i,d,m),ref:L(a,n),style:e,className:utils.classNames(Im({isHovered:s||p||o.isOpen,isFocusVisible:c,isDisabled:o.isDisabled}),"BaselineUI-IconColorInputButton",r),children:[jsxRuntime.jsx(t,{size:16}),jsxRuntime.jsx("div",{className:_m,style:{backgroundColor:o.color||void 0}})]})});Va.displayName="IconColorInputButton";function lf({colorLabel:r,color:e,presets:t}){let{formatMessage:o}=A(),{locale:a}=reactAria.useLocale(),n=ut.useMemo(()=>t.find(l=>l.id===Le?!e:e?Am(e,color.parseColor(l.id)):!1),[t,e]),i=ut.useMemo(()=>typeof r=="function"?r?.(e):r?Bm(e,n,o(VP.transparent)):!1,[e,r,o,n]),s=ut.useMemo(()=>{if(n?.label)return n.label;e?.getColorName(a);},[e,a,n?.label]);return {colorName:i,humanReadableName:s}}var VP=K({transparent:{defaultMessage:"Transparent",id:"transparent"}});var lr=ut__default.default.forwardRef(({className:r,style:e,allowRemoval:t,allowAlpha:o=!0,presets:a,labelPosition:n="top",colorLabel:i=!0,includePicker:s=!0,onChange:l,onChangeEnd:p,defaultValue:c,storePickedColorKey:d="baselinePickedColor",value:m,addColorButtonLabel:u,removeColorButtonLabel:b,customColorsLabel:y,renderTriggerButton:f=({isOpen:z,color:k,ref:T,colorName:R,triggerProps:N,labelId:S})=>jsxRuntime.jsx(no,{...reactAria.mergeProps(N,{...w.label?{"aria-labelledby":S}:{"aria-label":w["aria-label"]}}),ref:T,isOpen:z,isDisabled:w.isDisabled,labelPosition:n,color:k,colorLabel:i,colorName:R}),pickerMode:g="active",offset:_=2,placement:v=n==="start"?"bottom end":"bottom start","data-block-id":h,"data-block-class":x,...w},P)=>{let z=ut__default.default.useRef(null),k=ut__default.default.useRef(null),T=reactStately.useOverlayTriggerState(w),{triggerProps:R,overlayProps:N}=reactAria.useOverlayTrigger({type:"listbox"},T,z),S=ye(w.portalContainer),[I,M]=utils$1.useControlledState(m===void 0?void 0:vt(m),vt(c),X=>l?.(X?.toFormat("rgba")||null)),{formatMessage:F}=A(it),H=ut.useMemo(()=>Om(F($a.noColor),a),[a,F]),B=reactAria.useId(),{colorName:$}=lf({colorLabel:i,color:I,presets:H}),U=ut.useMemo(()=>H.filter(X=>t||X.id!==Le),[H,t]),O=u||F($a.addColor),te=b||F($a.removeColor),j=y||F($a.customColors),Z=jsxRuntime.jsx(Jm,{color:I||oo,setColor:X=>{M(X),p?.(X?.toFormat("rgba")||null);},storePickedColorKey:d,addColorButtonLabel:O,removeColorButtonLabel:te,customColorsLabel:j,pickerMode:g,allowAlpha:o});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{className:utils.classNames({[Cm]:n==="start"},"BaselineUI-ColorInput-Trigger",r),"data-block-id":h,"data-block-class":x,style:e,ref:P,children:[w.label?jsxRuntime.jsx("label",{id:B,className:xm({labelPosition:n}),children:w.label}):null,f({isOpen:T.isOpen,color:I,ref:z,colorName:$,triggerProps:R,labelId:B})]}),jsxRuntime.jsx(ze,{...w,portalContainer:S,placement:v,state:T,offset:_,className:utils.classNames(Da,"BaselineUI-ColorInput-Popover"),triggerRef:z,overlayProps:N,children:jsxRuntime.jsxs(ge,{size:"content",className:Ma({includesCustomColorPicker:s}),ref:k,"aria-labelledby":B,"aria-label":w["aria-label"],children:[s&&g==="active"?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Fa,{color:I||oo,setColor:M,allowAlpha:o,onChangeEnd:X=>{p?.(X?.toFormat("rgba")||null);}}),Z]}):null,!!U.length&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s&&g==="active"?jsxRuntime.jsx(V,{}):null,jsxRuntime.jsx(Xi,{autoFocus:s&&g==="active"?!1:"first",state:T,triggerRef:z,presets:U,color:I,setColor:X=>{M(X),p?.(X?.toFormat("rgba")||null);}})]}),s&&g==="lazy"?Z:null]})})]})});lr.displayName="ColorInput";var $a=K({addColor:{defaultMessage:"Add color",id:"addColor"},removeColor:{defaultMessage:"Remove color",id:"removeColor"},customColors:{defaultMessage:"Custom colors",id:"customColors"},noColor:{defaultMessage:"No color",id:"noColor"},transparent:{defaultMessage:"Transparent",id:"transparent"}});var uf=ut__default.default.forwardRef(({className:r,style:e,icon:t,variant:o="standard","data-block-id":a,tooltipProps:n,...i},s)=>{let l=ut__default.default.useRef(null),p=ut.useCallback(({isOpen:c,color:d,ref:m,colorName:u,triggerProps:b})=>jsxRuntime.jsx(ne,{variant:"inverse",size:"sm",includeArrow:!1,text:i["aria-label"],placement:"bottom start",offset:4,...n,children:o==="standard"?jsxRuntime.jsx(no,{...b,"aria-label":i["aria-label"],ref:m,isOpen:c,isDisabled:i.isDisabled,color:d,colorLabel:!1,colorName:u}):jsxRuntime.jsx(Va,{...b,isOpen:c,icon:_20.TextIcon,color:d?.toString("hexa"),ref:m,isDisabled:i.isDisabled,"aria-label":i["aria-label"]})}),[i,n,o]);return jsxRuntime.jsxs(E,{display:"flex",flexDirection:"row",gap:"md",paddingX:o==="standard"?"md":"none",alignItems:"center",className:utils.classNames("BaselineUI-IconColorInput",r),"data-block-id":a,style:e,ref:L(s,l),children:[o==="standard"&&t?jsxRuntime.jsx(t,{size:24,className:tokens.sprinkles({color:"icon.primary"})}):null,jsxRuntime.jsx(lr,{...i,colorLabel:!1,renderTriggerButton:p})]})});uf.displayName="IconColorInput";var mf={ar:{redo:"\u0625\u0639\u0627\u062F\u0629",undo:"\u062A\u0631\u0627\u062C\u0639"},cs:{redo:"Opakovat",undo:"Zru\u0161it"},cy:{redo:"Ail-wneud",undo:"Dad-wneud"},da:{redo:"Gentag",undo:"Fortryd"},de:{redo:"Wiederholen",undo:"R\xFCckg\xE4ngig machen"},el:{redo:"\u0395\u03C0\u03B1\u03BD\u03AC\u03BB\u03B7\u03C8\u03B7",undo:"\u0391\u03BD\u03B1\u03AF\u03C1\u03B5\u03C3\u03B7"},"en-GB":{redo:"Redo",undo:"Undo"},en:{redo:"Redo",undo:"Undo"},es:{redo:"Rehacer",undo:"Deshacer"},fi:{redo:"Tee sittenkin",undo:"Peru"},"fr-CA":{redo:"R\xE9tablir",undo:"Annuler"},fr:{redo:"R\xE9tablir",undo:"Annuler"},he:{redo:"\u05D1\u05D9\u05E6\u05D5\u05E2 \u05DE\u05D7\u05D3\u05E9",undo:"\u05D1\u05D9\u05D8\u05D5\u05DC \u05E4\u05E2\u05D5\u05DC\u05D4"},hr:{redo:"Ponovi",undo:"Vrati"},id:{redo:"Ulangi",undo:"Kembalikan"},it:{redo:"Ripristina",undo:"Annulla"},ja:{redo:"\u3084\u308A\u76F4\u3059",undo:"\u53D6\u308A\u6D88\u3059"},ko:{redo:"\uC2E4\uD589\uBCF5\uADC0",undo:"\uC2E4\uD589\uCDE8\uC18C"},ms:{redo:"Buat Semula",undo:"Buat Asal"},"nb-NO":{redo:"Gj\xF8r om igjen",undo:"Angre"},nl:{redo:"Opnieuw",undo:"Herstel"},pl:{redo:"Pon\xF3w",undo:"Cofnij"},"pt-PT":{redo:"Refazer",undo:"Desfazer"},pt:{redo:"Refazer",undo:"Desfazer"},ru:{redo:"\u041F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u044C",undo:"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C"},sk:{redo:"Opakova\u0165",undo:"Zru\u0161i\u0165"},sl:{redo:"Uveljavi",undo:"Razveljavi"},sv:{redo:"G\xF6r om",undo:"\xC5ngra"},th:{redo:"\u0E17\u0E33\u0E0B\u0E49\u0E33",undo:"\u0E16\u0E2D\u0E19\u0E04\u0E33\u0E2A\u0E31\u0E48\u0E07\u0E01\u0E25\u0E31\u0E1A"},tr:{redo:"Yinele",undo:"Geri Al"},uk:{redo:"\u041F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0438",undo:"\u0421\u043A\u0430\u0441\u0443\u0432\u0430\u0442\u0438"},"zh-Hans":{redo:"\u91CD\u505A",undo:"\u64A4\u9500"},"zh-Hant":{redo:"\u91CD\u4F5C",undo:"\u5FA9\u539F"}};var Ua=C({defaultClassName:"mnnh5s1 _1yep5z6i7 _1yep5z6i8 _1yep5z6i9 _1yep5z6l4 _1yep5z6l7 _1yep5z6lj _1yep5z6li _1yep5z6im _1yep5z6in _1yep5z6io _1yep5z6jd _1yep5z6je _1yep5z6jf _1yep5z6k7 _1yep5z6k8 _1yep5z6k9 _1yep5z6lh",variantClassNames:{isInline:{true:"mnnh5s2 _1yep5z6wi _1yep5z6wj _1yep5z6wk _1yep5z6x6 _1yep5z6x7 _1yep5z6x8 _1yep5z6xu _1yep5z6xv _1yep5z6xw _1yep5z6yi _1yep5z6yj _1yep5z6yk _1yep5z6132 _1yep5z617r _1yep5z617s",false:"_1yep5z617e _1yep5z6121"},isHovered:{true:"mnnh5s4"},hasLoadedImage:{true:"_1yep5z6120"},includeCheckeredBackground:{true:"mnnh5s6"},showFocusRing:{true:"_1yep5z613a _1yep5z617k _1yep5z617i _1yep5z613r _1yep5z617l"},isDisabled:{true:"mnnh5s8 _1yep5z6z7"}},defaultVariants:{},compoundVariants:[[{isHovered:!0,hasLoadedImage:!1},"_1yep5z61o5"],[{isHovered:!0,hasLoadedImage:!0},"mnnh5s9"],[{isInline:!0,isDisabled:!0},"_1yep5z61oz"],[{hasLoadedImage:!0,includeCheckeredBackground:!0},"_1yep5z61nx"]]}),ff="_1yep5z6d8",qa=C({defaultClassName:"mnnh5sa",variantClassNames:{isInline:{true:"mnnh5sb",false:"mnnh5sc"},isDisabled:{true:"mnnh5sd"},hasLoadedImage:{true:"mnnh5s0"}},defaultVariants:{},compoundVariants:[]});var yf=C({defaultClassName:"_1i0ytqa3 _1yep5z6i7 _1yep5z6i8 _1yep5z6i9 _1yep5z6lh _1yep5z6li _1yep5z6lk",variantClassNames:{isFocusVisible:{true:"_1i0ytqa4"},isInline:{true:"_1yep5z6129",false:"_1yep5z612b"},isDisabled:{true:"_1i0ytqa7 _1yep5z6z7",false:"_1i0ytqa8"}},defaultVariants:{},compoundVariants:[[{isInline:!0,isFocusVisible:!0},"_1i0ytqa9 _1yep5z61ov _1yep5z61tn _1yep5z61tp"],[{isInline:!1,isFocusVisible:!0},"_1i0ytqaa"],[{isInline:!0,isDisabled:!0},"_1yep5z61o6"],[{isInline:!1,isDisabled:!0},"_1yep5z61o8"]]}),bf="_1i0ytqa0",Ka=C({defaultClassName:"_1i0ytqab _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6im _1yep5z6in _1yep5z6io _1yep5z6k7 _1yep5z6k8 _1yep5z6k9 _1yep5z6lh",variantClassNames:{isInline:{false:"_1yep5z6120"},isDisabled:{true:"_1i0ytqad _1yep5z6z7"}},defaultVariants:{},compoundVariants:[]}),gf=C({defaultClassName:"_1i0ytqa1 _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6im _1yep5z6in _1yep5z6io _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6jd _1yep5z6je _1yep5z6jf _1yep5z6lh",variantClassNames:{isInline:{false:"_1yep5z63r _1yep5z63s _1yep5z63t _1yep5z619 _1yep5z61a _1yep5z61b"}},defaultVariants:{},compoundVariants:[]});function vf({line:r,options:e}){let t=ut.useRef([]),o=ut.useMemo(()=>{let a=Math.ceil(r.length/pr),n;for(let i=0;i<a;i++)if(!(!(i===a-1)&&!!t.current[i])){let p=r.slice(i*pr-(i>0?1:0),i*pr+pr);n=utils.getSvgPathFromStroke(perfectFreehand.getStroke(p.map(([c,d,m])=>({x:c,y:d,pressure:m})),e)),p.length>=(i>0?pr+1:pr)&&(t.current[i]=n);}return n},[r,e]);return [...t.current,o]}var pr=60*3;var vw={size:1,thinning:0,smoothing:0,streamline:0,easing:r=>r,start:{taper:0,easing:r=>r,cap:!0},end:{taper:0,easing:r=>r,cap:!0},simulatePressure:!1},_f=ut__default.default.forwardRef(({className:r,style:e,canvasClassName:t,canvasStyle:o,isBound:a=!0,strokeWidth:n=2,strokeColor:i="#3A87FD",onChange:s,defaultValue:l,onChangeEnd:p,enableHistory:c=!1,isInline:d=!0,isDisabled:m,placeholder:u,clearLabel:b,undoLabel:y,redoLabel:f,footerClassName:g,canvasRef:_,value:v,footerStyle:h,"data-block-id":x,"data-block-class":w,"aria-label":P="Drawing canvas",description:z="This is a canvas for drawing using a mouse or touch input.",...k},T)=>{let R=A(mf),N=ut__default.default.useRef(null),[S,I]=ut__default.default.useState(v||l||[]),M=ut__default.default.useMemo(()=>({...vw,...k}),[k]),[F,H]=ut__default.default.useState(),B=reactAria.useId(),{labelProps:$,fieldProps:U}=reactAria.useLabel({...k,"aria-label":P,labelElementType:"span"}),{isFocusVisible:O,focusProps:te}=reactAria.useFocusRing({within:!0}),{hoverProps:j,isHovered:Z}=reactAria.useHover({isDisabled:m}),{undo:X,redo:Ie,canRedo:Re,canUndo:he,push:Me}=mp(S,{onAction:Y=>{Y&&(I(Y),p?.(Y));},isDisabled:!c}),{keyboardProps:Ue}=reactAria.useKeyboard({onKeyDown:Y=>{Y.key==="Backspace"?Nt():Y.key==="z"&&(Y.metaKey||Y.ctrlKey)&&(Y.shiftKey?Re&&Ie():he&&X());}}),[oe,me]=ut.useState(!1),Rt=ut.useCallback(Y=>{let q=Y.currentTarget.getBoundingClientRect();H(q),Y.target.setPointerCapture(Y.pointerId);let le=[Y.clientX-q.x,Y.clientY-q.y,Y.pressure];I(W=>[...W,[le]]),me(!0);},[]),Tt=ut.useCallback(Y=>{if(Y.buttons!==1||!F)return;let le=xf(Y.nativeEvent).map(W=>[a?utils$1.clamp(W.clientX-F.left,0,F.width):W.clientX-F.left,a?utils$1.clamp(W.clientY-F.top,0,F.height):W.clientY-F.top,W.pressure]);I(W=>{let ke=[...W];return ke[W.length-1]=[...ke[W.length-1],...le],ke});},[F,a]),Cr=()=>{F&&(p?.(S),Me(S),me(!1));};ut.useEffect(()=>{s?.(S);},[S,s]);let Nt=()=>{I([]),s?.([]),Me([]);};return jsxRuntime.jsxs("div",{ref:L(N,T),className:utils.classNames(bf,"BaselineUI-FreehandCanvas",r),style:e,"aria-disabled":m,"data-block-id":x,"data-block-class":w,children:[k.label||c?jsxRuntime.jsxs("div",{className:gf({isInline:d}),children:[k.label?jsxRuntime.jsx(Q,{type:"label",size:"sm",...$,children:k.label}):jsxRuntime.jsx("span",{}),c?jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx(D,{variant:"secondary",size:"sm",isDisabled:!he||m,icon:_16.UndoIcon,onPress:X,"aria-label":y||R.formatMessage("undo")}),jsxRuntime.jsx(D,{variant:"secondary",size:"sm",isDisabled:!Re||m,icon:_16.RedoIcon,onPress:Ie,"aria-label":f||R.formatMessage("redo")})]}):null]}):null,jsxRuntime.jsxs("div",{role:"application",...reactAria.mergeProps(te,Ue,j,U),tabIndex:m?void 0:0,className:utils.classNames(Ua({isInline:d,isHovered:Z}),yf({isFocusVisible:O,isInline:d,isDisabled:!!m}),t),"aria-describedby":k["aria-describedby"]||B,style:o,ref:_,children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("div",{id:B,children:z})}),jsxRuntime.jsx("svg",{width:o?.width||"100%",height:o?.height||"100%",onPointerDown:Rt,onPointerMove:Tt,onPointerUp:Cr,children:(v||S).map((Y,q,le)=>q<le.length-1||!oe?jsxRuntime.jsx(zf,{line:Y,options:M,strokeColor:i,strokeWidth:n},q):jsxRuntime.jsx(Cf,{line:Y,options:M,strokeColor:i,strokeWidth:n},q))})]}),u||b?jsxRuntime.jsx("div",{style:h,className:utils.classNames(Ka({isInline:d,isDisabled:m}),g),children:(S.length||!u)&&b?jsxRuntime.jsx(G,{size:"sm",variant:"ghost",label:b,isDisabled:m,onPress:Nt}):jsxRuntime.jsx(G,{size:"sm",variant:"ghost",label:u,isDisabled:!0})}):null]})});_f.displayName="FreehandCanvas";var zf=ut__default.default.memo(({line:r,options:e,strokeColor:t,strokeWidth:o})=>{let a=ut.useMemo(()=>utils.getSvgPathFromStroke(perfectFreehand.getStroke(r.map(([n,i,s])=>({x:n,y:i,pressure:s})),e)),[r,e]);return jsxRuntime.jsx("path",{d:a,stroke:t,strokeWidth:o})});zf.displayName="Stroke";var Cf=ut__default.default.memo(({line:r,options:e,strokeColor:t,strokeWidth:o})=>{let a=vf({line:r,options:e});return jsxRuntime.jsx(jsxRuntime.Fragment,{children:a.map((n,i)=>jsxRuntime.jsx("path",{d:n,stroke:t,strokeWidth:o},i))})});Cf.displayName="SplitStroke";function xf(r){if(typeof r.getCoalescedEvents=="function"){let e=r.getCoalescedEvents();return e.length>0?e.flatMap(t=>xf(t)):[r]}return [r]}var Pf="_1vac7ws0",wf=C({defaultClassName:"_1vac7ws1",variantClassNames:{isDragging:{true:"_1vac7ws2"}},defaultVariants:{},compoundVariants:[]});function Sf(r,e){let[t,o]=ut.useState([]),a=()=>r?.flatMap(n=>[...e.querySelectorAll(n)]).map(n=>({current:n}));return granularHooks.useGranularEffect(()=>{o(a());},[],[a]),granularHooks.useGranularEffect(()=>{let n=a();o(n);},[r],[a]),t}function If(r){let{scrollable:e,ownerDocument:t,onScroll:o}=r;ut.useEffect(()=>{let a=utils.getHTMLElement(e,t);if(a)return (a.style.position==="static"||!a.style.position)&&console.warn("Scrollable ancestor passed to `Transform` component should not be statically positioned."),a.addEventListener("scroll",o),()=>{a.removeEventListener("scroll",o);}},[e,o,t]);}var Dw=reactMoveable.makeMoveable([reactMoveable.Draggable,reactMoveable.Resizable,reactMoveable.Rotatable,reactMoveable.Snappable]),Tf=ut__default.default.forwardRef(({className:r,children:e,isRotatable:t,isResizable:o,isDraggable:a,style:n,onTransform:i,onTransformStart:s,onTransformEnd:l,onDoubleClick:p,onDragStart:c,onDragEnd:d,onDrag:m,onResizeStart:u,onResizeEnd:b,onResize:y,onRotateStart:f,onRotateEnd:g,onRotate:_,onSnap:v,isSnappable:h,elementGuidelines:x,hideAnchorOnDrag:w=!0,title:P,rotationPosition:z,autoUpdate:k,bound:T,snapRotationDegrees:R,snapRotationThreshold:N,scrollableAncestor:S,renderDirections:I,stopPropagation:M,transformOrigin:F,preventDefault:H},B)=>{let $=ut.useRef(null),U=ut.useRef(null),[O,te]=ut.useState(document),j=ut.useRef(O.createElement("div")),[Z,X]=ut.useState({}),[Ie,Re]=ut.useState(!1),[he,Me]=ut.useState(!1),[Ue,oe]=ut.useState(),me=Sf(x,O);ut.useLayoutEffect(()=>{let q=j.current;return j.current=O.createElement("div"),()=>{q.remove();}},[O]);let{keyboardProps:Rt}=reactAria.useKeyboard({onKeyDown:q=>{let le=q.shiftKey?10:1,W=q.metaKey||q.ctrlKey;W&&q.shiftKey&&(le=45);function ke(xr,Mb="x"){W?U.current?.request("rotatable",{deltaRotate:xr*le},!0):U.current?.request("draggable",Mb==="x"?{deltaX:xr*le}:{deltaY:xr*le},!0);}switch(q.key){case"ArrowRight":{ke(1);break}case"ArrowLeft":{ke(-1);break}case"ArrowUp":{ke(-1,"y");break}case"ArrowDown":ke(1,"y");}requestAnimationFrame(()=>{U.current?.updateRect();});}});ut.useEffect(()=>{let q=fe($.current);te(q);let le=j.current;q.body.append(j.current);function W(xr){Me(xr.shiftKey);}function ke(){Me(!1);}return q.addEventListener("keydown",W),q.addEventListener("keyup",ke),()=>{q.removeEventListener("keydown",W),q.removeEventListener("keyup",ke),le.remove();}},[]),If({scrollable:S,onScroll:()=>{U.current?.updateRect();},ownerDocument:O});let Tt=ut.useCallback(q=>{X(le=>({...le,...q.style})),i?.(q);},[i]),Cr=ut.useCallback(q=>{if(Re(!0),$.current?.focus(),T){let W=utils.getHTMLElement(T,O)?.getBoundingClientRect();oe({position:"client",left:W?.left??0,top:W?.top??0,right:W?.right??0,bottom:W?.bottom??0});}c?.(q);},[T,O,c]),Nt=ut.useCallback(q=>{Re(!1),d?.(q);},[d]),Y=e({style:{...Z.width&&{width:Z.width},...Z.height&&{height:Z.height}}});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{role:"button",...Rt,ref:L($,B),style:{display:"inline-block",...n,...Z},className:utils.classNames(Pf,r),onDoubleClick:p,tabIndex:0,title:P,children:Y}),T5.createPortal(jsxRuntime.jsx(Dw,{ref:U,target:$,draggable:a,resizable:o,rotatable:t,keepRatio:he,throttleDrag:1,snappable:h||!!T,elementGuidelines:me,snapRenderThreshold:.9,className:wf({isDragging:Ie&&w}),onRender:Tt,onDragStart:Cr,onDragEnd:Nt,useResizeObserver:k,useMutationObserver:k,onRenderEnd:l,onDrag:m,onResizeStart:u,onResizeEnd:b,onResize:y,onRotateStart:f,onRotateEnd:g,onRotate:_,onRenderStart:s,onSnap:v,rotationPosition:z,bounds:Ue,snapRotationDegrees:R,snapRotationThreshold:N,renderDirections:I,stopPropagation:M,preventDefault:H,transformOrigin:F}),j.current)]})});Tf.displayName="Transform";var Nf={ar:{delete:"\u062D\u0630\u0641",selectImage:"\u062A\u062D\u062F\u064A\u062F \u0635\u0648\u0631\u0629"},cs:{delete:"Smazat",selectImage:"Vybrat obr\xE1zek"},cy:{delete:"Dileu",selectImage:"Dewiswch Ddelwedd"},da:{delete:"Slet",selectImage:"V\xE6lg billede"},de:{delete:"L\xF6schen",selectImage:"Bild ausw\xE4hlen"},el:{delete:"\u0394\u03B9\u03B1\u03B3\u03C1\u03B1\u03C6\u03AE",selectImage:"\u0395\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u03B5\u03B9\u03BA\u03CC\u03BD\u03B1\u03C2"},"en-GB":{delete:"Delete",selectImage:"Select Image"},en:{delete:"Delete",selectImage:"Select Image"},es:{delete:"Eliminar",selectImage:"Seleccionar imagen"},fi:{delete:"Poista",selectImage:"Valitse kuva"},"fr-CA":{delete:"Supprimer",selectImage:"S\xE9lectionner une image"},fr:{delete:"Supprimer",selectImage:"S\xE9lectionner une image"},he:{delete:"\u05DE\u05D7\u05D9\u05E7\u05D4",selectImage:"\u05D1\u05D7\u05D9\u05E8\u05EA \u05EA\u05DE\u05D5\u05E0\u05D4"},hr:{delete:"Obri\u0161i",selectImage:"Odaberi sliku"},id:{delete:"Hapus",selectImage:"Pilih Gambar"},it:{delete:"Elimina",selectImage:"Seleziona immagine"},ja:{delete:"\u524A\u9664",selectImage:"\u30A4\u30E1\u30FC\u30B8\u3092\u9078\u629E"},ko:{delete:"\uC0AD\uC81C",selectImage:"\uC774\uBBF8\uC9C0 \uC120\uD0DD"},ms:{delete:"Padam",selectImage:"Pilih Imej"},"nb-NO":{delete:"Slett",selectImage:"Velg bilde"},nl:{delete:"Verwijder",selectImage:"Selecteer afbeelding"},pl:{delete:"Usu\u0144",selectImage:"Wybierz obraz"},"pt-PT":{delete:"Apagar",selectImage:"Selecionar imagem"},pt:{delete:"Apagar",selectImage:"Selecionar Imagem"},ru:{delete:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C",selectImage:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0438\u0437\u043E\u0431\u0440."},sk:{delete:"Zmaza\u0165",selectImage:"Vybra\u0165 obr\xE1zok"},sl:{delete:"Izbri\u0161i",selectImage:"Izberi sliko"},sv:{delete:"Radera",selectImage:"V\xE4lj bild"},th:{delete:"\u0E25\u0E1A",selectImage:"\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E23\u0E39\u0E1B\u0E20\u0E32\u0E1E"},tr:{delete:"Sil",selectImage:"Resim Se\xE7"},uk:{delete:"\u0412\u0438\u0434\u0430\u043B\u0438\u0442\u0438",selectImage:"\u041E\u0431\u0440\u0430\u0442\u0438 \u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u043D\u044F"},"zh-Hans":{delete:"\u5220\u9664",selectImage:"\u9009\u62E9\u56FE\u50CF"},"zh-Hant":{delete:"\u522A\u9664",selectImage:"\u9078\u53D6\u5716\u50CF"}};var Mf=ut__default.default.forwardRef(({className:r,style:e,isInline:t=!0,accept:o="image/*",defaultImageSrc:a,imageSrc:n,imageAlt:i,pickerButtonLabel:s,isDisabled:l,onDrop:p,onPaste:c,includeCheckeredBackground:d=!0,"data-block-id":m,"data-block-class":u,pickerButtonStyle:b,pickerButtonClassName:y,footerClassName:f,footerStyle:g,clearLabel:_,placeholder:v,labelStyle:h,labelClassName:x,...w},P)=>{let z=ut__default.default.useRef(null),k=ut__default.default.useRef(null),{formatMessage:T}=A(Nf),[R,N]=utils$1.useControlledState(n,a||null,oe=>{utils.invariant(typeof oe!="string"),w.onValueChange?.(oe?[oe]:[]);}),S=ut.useMemo(()=>Xw(R||void 0),[R]),{fieldProps:I,labelProps:M}=reactAria.useField(w),{dropProps:F,isDropTarget:H}=reactAria.useDrop({ref:z,onDrop:async oe=>{if(l)return;let me=await zi({items:oe.items});me.length&&N(me[0]),p?.(oe);},...w}),{clipboardProps:B}=reactAria.useClipboard({onPaste:async oe=>{if(l)return;let me=await zi({items:oe});me.length&&N(me[0]),c?.(oe);},...w}),$=()=>{N(null),k.current&&(k.current.value="");},U={type:"file",onChange:oe=>{let me=[...oe.target.files];N(me[0]),w.onChange?.(oe);},accept:o,disabled:l},{focusProps:O,isFocused:te,isFocusVisible:j}=reactAria.useFocusRing({within:!0}),{hoverProps:Z,isHovered:X}=reactAria.useHover({isDisabled:l}),{imgProps:Ie,isLoading:Re,isLoaded:he}=Ot({src:S,alt:i||""}),Me={label:s||T("selectImage"),onPress:()=>z.current?.click(),variant:"secondary",isDisabled:l,excludeFromTabOrder:!0,className:utils.classNames(Uo({isFocusVisible:j}),{[ff]:H&&!l},y),style:b},Ue=utils.filterTruthyValues({"data-loaded":he,"data-block-id":m,"data-block-class":u,"data-hovered":X,"data-focused":te,"data-drop-target":H,"data-disabled":l,"data-focus-visible":j});return jsxRuntime.jsxs(E,{...Ue,className:utils.classNames("BaselineUI-ImageDropZone",r),display:"flex",flexDirection:"column",alignItems:"center",style:e,ref:P,children:[jsxRuntime.jsxs("label",{...reactAria.mergeProps(F,Z,O,M),className:utils.classNames(Ua({isInline:t,isHovered:X,isDisabled:l,hasLoadedImage:!!S&&he,showFocusRing:H||!!S&&j}),x),style:h,ref:z,children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...reactAria.mergeProps(I,B,U),ref:k})}),!S&&jsxRuntime.jsx(G,{...Me}),!!S&&(Re?jsxRuntime.jsx(tr,{}):jsxRuntime.jsx("img",{className:qa({isInline:t,isDisabled:l,hasLoadedImage:!!S&&he&&d}),...Ie}))]}),v||_?jsxRuntime.jsx("div",{style:g,className:utils.classNames(Ka({isInline:t,isDisabled:l}),f),children:(S||!v)&&_?jsxRuntime.jsx(G,{size:"sm",variant:"ghost",label:_,isDisabled:l,onPress:$}):jsxRuntime.jsx(G,{size:"sm",variant:"ghost",label:v,isDisabled:!0})}):null]})});Mf.displayName="ImageDropZone";function Xw(r){return r instanceof File?URL.createObjectURL(r):r}var Df="_1vm2oh49 _1yep5z6ia _1yep5z6ib _1yep5z6ic _1yep5z6g4",os="_1vm2oh48 _1yep5z6li _1yep5z6im _1yep5z6in _1yep5z6io _1yep5z6jd _1yep5z6je _1yep5z6jf _1yep5z6k7 _1yep5z6k8 _1yep5z6k9 _1yep5z6jy _1yep5z6jz _1yep5z6k0",Af=C({defaultClassName:"_1vm2oh40 mnnh5s1 _1yep5z6im _1yep5z6in _1yep5z6io _1yep5z6ln _1yep5z6ll _1yep5z6i6 _1yep5z6lo _1yep5z6jd _1yep5z6je _1yep5z6jf _1yep5z6l4 _1yep5z6lj _1yep5z6i7 _1yep5z6i8 _1yep5z6i9",variantClassNames:{accent:{theme:"_1vm2oh41",positive:"_1vm2oh42"},isInline:{true:"mnnh5s2 _1yep5z6wf _1yep5z6wg _1yep5z6wh _1yep5z6x3 _1yep5z6x4 _1yep5z6x5 _1yep5z6xr _1yep5z6xs _1yep5z6xt _1yep5z6yf _1yep5z6yg _1yep5z6yh _1yep5z6131 _1yep5z617q _1yep5z617s",false:"_1yep5z612b"},isFocusVisible:{true:"_1yep5z613a _1yep5z617k _1yep5z617i _1yep5z613r _1yep5z617l"},isDisabled:{true:"mnnh5s8 z9nup83 _1yep5z6z7"},isHovered:{true:"_1vm2oh47"}},defaultVariants:{},compoundVariants:[[{accent:"positive",isInline:!0},"_1yep5z61o6"],[{accent:"theme",isInline:!0},"_1yep5z61nv"],[{accent:"positive",isInline:!1},"_1yep5z61o8"],[{accent:"theme",isInline:!1},"_1yep5z61nx"],[{isFocusVisible:!0,isInline:!0},"_1yep5z61po _1yep5z61tf _1yep5z61th _1yep5z61ti"],[{isHovered:!0,isInline:!0},"_1yep5z61ti _1yep5z61po _1yep5z61tf _1yep5z61th"],[{isHovered:!0,isInline:!1,accent:"positive"},"_1yep5z61o7"],[{isHovered:!0,isInline:!1,accent:"theme"},"_1yep5z61nz"],[{isHovered:!0,isInline:!0,accent:"theme"},"_1yep5z61nw"]]});var Ff=ut__default.default.forwardRef(({className:r,style:e,isDisabled:t,isInline:o=!0,imageAlt:a,imageSrc:n,svgSrc:i,textValue:s,textStyle:l,onPress:p,onDelete:c,deleteAriaLabel:d,addAriaLabel:m,accent:u="positive","data-block-id":b,"data-block-class":y,...f},g)=>{let{focusProps:_,isFocused:v,isFocusVisible:h}=reactAria.useFocusRing({within:!0}),{isHovered:x,hoverProps:w}=reactAria.useHover({isDisabled:t}),{pressProps:P}=reactAria.usePress({isDisabled:t,onPress:p});utils.invariant(n||i||s,"Preview must have content. You must provide either an `imageSrc`, `svgSrc`, or `textValue` prop.");let z=utils.filterTruthyValues({"data-hovered":x,"data-focus-visible":h,"data-focused":v,"data-disabled":t});return jsxRuntime.jsxs("div",{...f,className:utils.classNames(Af({isInline:o,isFocusVisible:h,isDisabled:t,isHovered:x,accent:u}),"BaselineUI-Preview",r),"data-block-id":b,"data-block-class":y,"aria-label":f["aria-label"]||a||s,style:e,ref:g,children:[typeof i=="string"?jsxRuntime.jsx("button",{disabled:t,...reactAria.mergeProps(w,_,P,z),className:os,"aria-label":m,dangerouslySetInnerHTML:{__html:i}}):jsxRuntime.jsxs("button",{...reactAria.mergeProps(w,_,P,z),disabled:t,style:l,"aria-label":m,className:os,children:[n?jsxRuntime.jsx("img",{src:n,alt:a,className:qa({isInline:o,isDisabled:t})}):null,!!i&&typeof i=="object"&&i,s]}),c?jsxRuntime.jsx(D,{isDisabled:t,className:Df,"aria-label":d,size:"xs",icon:_16.TrashIcon,onPress:c}):null]})});Ff.displayName="Preview";var jf="_1yep5z6im _1yep5z6in _1yep5z6io _1yep5z6iy _1yep5z6iz _1yep5z6j0 _1yep5z69c _1yep5z69d _1yep5z69e",Hf=C({defaultClassName:"cw3m0n8 _1yep5z6ew _1yep5z6dv",variantClassNames:{isDisabled:{true:"_1yep5z610v"}},defaultVariants:{},compoundVariants:[]}),Vf="cw3m0n7",$f=C({defaultClassName:"cw3m0n0 _1yep5z6im _1yep5z6in _1yep5z6io _1yep5z6jd _1yep5z6je _1yep5z6jf _1yep5z6iv _1yep5z6iw _1yep5z6ix",variantClassNames:{labelPosition:{end:"_1yep5z614s _1yep5z614t _1yep5z614u _1yep5z6vf _1yep5z6vg _1yep5z6vh",start:"_1yep5z614y _1yep5z614z _1yep5z6150 _1yep5z616a _1yep5z616b _1yep5z616c"}},defaultVariants:{},compoundVariants:[]}),Uf="_1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6im _1yep5z6in _1yep5z6io _1yep5z6iy _1yep5z6iz _1yep5z6j0 _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6le",qf=C({defaultClassName:"cw3m0n3 _16vugd06",variantClassNames:{isFocusVisible:{true:"_16vugd09"},isSelected:{true:"_16vugd08"},isDisabled:{true:"_16vugd0b"}},defaultVariants:{},compoundVariants:[]});var uk=({label:r,description:e},{isSelected:t,isFocusVisible:o,isDisabled:a,optionLabelPosition:n})=>jsxRuntime.jsxs("div",{className:$f({labelPosition:n}),children:[jsxRuntime.jsx("div",{className:qf({isSelected:t,isFocusVisible:o,isDisabled:a}),children:t?jsxRuntime.jsx("div",{className:Vf}):null}),r?jsxRuntime.jsxs("div",{className:jf,children:[jsxRuntime.jsx("span",{className:xa({isDisabled:a}),children:r}),e?jsxRuntime.jsx("span",{className:Hf({isDisabled:a}),children:e}):null]}):null]}),Kf=({state:r,renderOption:e=uk,item:t,optionLabelPosition:o="end",optionStyle:a,optionClassName:n,isReadOnly:i,...s})=>{let l=!!s.isDisabled||!!s.disabledValues?.includes(t.id),p=ut__default.default.useRef(null),{inputProps:c,isPressed:d,isSelected:m}=reactAria.useRadio({...s,isDisabled:l,children:t.label,value:t.id},r,p),{focusProps:u,isFocusVisible:b,isFocused:y}=reactAria.useFocusRing(),{isHovered:f}=reactAria.useHover({isDisabled:l}),g=utils.filterTruthyValues({"data-selected":m,"data-focused":y,"data-focus-visible":b,"data-hovered":f,"data-disabled":l,"data-pressed":d,"data-read-only":i});return jsxRuntime.jsxs("label",{...g,style:a,className:utils.classNames("BaselineUI-Radio-Item",n),children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...reactAria.mergeProps(c,u),ref:p})}),e(t,{isFocusVisible:b,isSelected:m,isFocused:y,isHovered:f,isDisabled:l,optionLabelPosition:o,isReadOnly:i})]})};var Wf=ut__default.default.forwardRef(({className:r,style:e,optionsContainerClassName:t,optionsContainerStyle:o,items:a,labelPosition:n="top",renderOption:i,"aria-label":s,"aria-labelledby":l,"aria-describedby":p,"aria-details":c,"data-block-id":d,"data-block-class":m,...u},b)=>{let y=reactStately.useRadioGroupState(u),{radioGroupProps:f,labelProps:g,descriptionProps:_,errorMessageProps:v}=reactAria.useRadioGroup({...u,"aria-label":s,"aria-labelledby":l,"aria-describedby":p,"aria-details":c},y),h=Te({...u,descriptionProps:_,errorMessageProps:v,labelPosition:n}),x=utils.filterTruthyValues({"data-orientation":u.orientation,"data-block-id":d,"data-block-class":m,"data-disabled":u.isDisabled,"data-readonly":u.isReadOnly});return jsxRuntime.jsxs("div",{...reactAria.mergeProps(f,x),className:utils.classNames(Ye({labelPosition:n}),"BaselineUI-RadioGroup",r),style:e,ref:b,children:[u.label||h?jsxRuntime.jsxs("div",{className:Xe({labelPosition:n,hasMessage:!!h}),children:[jsxRuntime.jsx("span",{...g,className:utils.classNames(We,"BaselineUI-RadioGroup-Label"),children:u.label}),n==="start"&&h]}):null,jsxRuntime.jsx("div",{className:utils.classNames(Uf,{[Ft]:u.isDisabled},t),style:o,children:a.map(w=>jsxRuntime.jsx(Kf,{state:y,renderOption:i,item:w,...u,value:w.id},w.id))}),n==="top"&&h]})});Wf.displayName="RadioGroup";var Xf=({id:r,defaultMessage:e,elementType:t=ut.Fragment})=>{utils.invariant(r||e,"`id` or `defaultMessage` is required.");let o=A();return jsxRuntime.jsx(t,{children:o.formatMessage(r)||e})};Xf.displayName="MessageFormat";var Yf=ut__default.default.forwardRef(({className:r,style:e,children:t,"data-block-id":o,"data-block-class":a,role:n="group",isDisabled:i,...s},l)=>{let{hoverProps:p,isHovered:c}=reactAria.useHover({isDisabled:i});return jsxRuntime.jsx("div",{...p,role:n,"data-hovered":c,"data-disabled":i,"data-block-id":o,"data-block-class":a,className:r,style:e,...s,ref:l,children:t})});Yf.displayName="Group";var ls="UNSUPPORTED_IN_MENU";function Qf(r){return ut.useMemo(()=>ut__default.default.Children.toArray(r).map(e=>{let t=e,o=lodash.uniqueId("item"),a=co(t,Ae),n=Jf(t),i,s;if(a){let g=co(a,Be);utils.invariant(g),i=Jf(g),s=co(a,Ee).props.children;}else n?i=n:i=t;let{onPress:l,label:p,"aria-label":c,iconStart:d,isDisabled:m,icon:u}=i.props,b=p||c||ls;utils.invariant(typeof b=="string","ActionGroup children must have a string label");let y=`${o}-${b}`;return ut.createElement(reactStately.Item,{...{key:y,onPress:l,textValue:b,"aria-label":c,icon:d||u,dialogContent:s,isDisabled:m},key:y},t)}),[r])}function co(r,e){return e?lodash.flatMapDeep(ut__default.default.Children.toArray(r),o=>ut__default.default.isValidElement(o)&&o.props.children?[o,...ut__default.default.Children.toArray(o.props.children)]:[o]).find(o=>ut__default.default.isValidElement(o)&&o.type===e):void 0}function Jf(r){return co(r,G)||co(r,D)}var ey="_1yep5z6im _1yep5z6in _1yep5z6io _1yep5z6i7 _1yep5z6i8 _1yep5z6i9 _1yep5z6lh _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6l9",ty={horizontal:"xvr3wn0",vertical:"xvr3wn1"};var cs=ut__default.default.forwardRef(({className:r,style:e,children:t,collapsibleMenuProps:o,"data-block-id":a,"data-block-class":n,renderSpacer:i,onKeyDown:s,...l},p)=>{let{formatMessage:c}=A(),[d,m]=ut.useState(),u=Qf(t),b=reactStately.useListState({...l,children:u}),y=ee(p),f=ut.useRef(null),[{visibleItems:g,isMeasuring:_},v]=bn({visibleItems:b.collection.size,isMeasuring:!1}),h=ut.useCallback(()=>{let N=S=>{if(f.current&&y.current){let I=[...f.current.children],M=y.current.getBoundingClientRect().width,F=S<b.collection.size,H=0,B=0;if(F){let $=I.pop();$&&(H+=ny($,!1,!0));}for(let[$,U]of I.entries())if(H+=ny(U,$===0,$===I.length-1),Math.round(H)<=Math.round(M))B++;else break;return B}return S};v(function*(){yield {visibleItems:b.collection.size,isMeasuring:!0};let S=N(b.collection.size),I=S<b.collection.size&&S>0;yield {visibleItems:S,isMeasuring:I},I&&(yield {visibleItems:N(S),isMeasuring:!1});});},[v,y,b.collection.size]),x=ut.useMemo(()=>({get current(){return y.current?.parentElement}}),[y]);wn({ref:x,onResize:h}),Se(h,[b.collection,h]);let{toolbarProps:w}=toolbar.useToolbar(l,y),P=[...b.collection],z=P.slice(0,g),k=P.slice(g).filter(N=>N.textValue!==ls),T=k.length>0;ut.useEffect(()=>{m(void 0);},[k.length]),ut.useEffect(()=>{l.orientation==="vertical"&&console.warn("Toolbar: Vertical orientation is not supported when `isCollapsible` is true.");},[l.orientation]);let{keyboardProps:R}=reactAria.useKeyboard({onKeyDown:s});return jsxRuntime.jsxs(reactAria.FocusScope,{children:[jsxRuntime.jsx("div",{...reactAria.mergeProps(w,R),className:r,"data-block-id":a,"data-block-class":n,"data-collapse":!0,style:{...e,flexBasis:_?"100%":void 0},ref:y,children:jsxRuntime.jsxs("div",{ref:f,className:ey,children:[z.map(N=>N.rendered),T?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[!_&&i?jsxRuntime.jsx(E,{flexGrow:1}):null,jsxRuntime.jsx(ga,{placement:"bottom end",renderTrigger:({buttonProps:N,ref:S})=>jsxRuntime.jsx(D,{...N,size:"md",icon:_24.MoreIcon,"aria-label":c(Fk.more),variant:"toolbar",ref:S}),...o,disabledKeys:k.filter(N=>N.props?.isDisabled).map(N=>N.key),items:k.map(N=>{let S=N.textValue||N["aria-label"];return utils.invariant(S,"ActionItem must have a label"),{id:N.key,label:S,icon:N.props.icon}}),onAction:N=>{let S=b.collection.getItem(N);utils.invariant(S,"Item not found");let{onPress:I,dialogContent:M}=S.props;I?.(),m(M);}})]}):null]})}),jsxRuntime.jsx(Ne,{isOpen:!!d,onOpenChange:N=>{N||m(void 0);},children:jsxRuntime.jsx(Fe,{enableDrawer:"auto",style:{zIndex:1e5},children:d?ut__default.default.cloneElement(d,{inheritDrawer:!0}):null})})]})});cs.displayName="CollapsibleToolbar";function ny(r,e,t){let a=ae(r).getComputedStyle(r);return r.getBoundingClientRect().width+(e?0:iy(a.marginLeft))+(t?0:iy(a.marginRight))}function iy(r){let e=Number.parseInt(r,10);return Number.isNaN(e)?0:e}var Fk=K({more:{id:"more",defaultMessage:"More"}});var ds=ut__default.default.forwardRef(({className:r,style:e,"data-block-id":t,"data-block-class":o,"aria-controls":a,onKeyDown:n,...i},s)=>{let l=ut__default.default.useRef(null),{toolbarProps:p}=toolbar.useToolbar(i,l),{keyboardProps:c}=reactAria.useKeyboard({onKeyDown:n});return jsxRuntime.jsx("div",{...reactAria.mergeProps(p,c),"aria-controls":a,className:utils.classNames(ty[i.orientation||"horizontal"],"BaselineUI-Toolbar",r),style:e,"data-block-id":t,"data-block-class":o,ref:L(s,l),children:i.children})});ds.displayName="WrappedToolbar";var Xa=ut__default.default.forwardRef((r,e)=>{let t=r.isCollapsible?cs:ds;return jsxRuntime.jsx(t,{...r,ref:e})});Xa.displayName="Toolbar";var ly=C({defaultClassName:"_1j5skr71",variantClassNames:{size:{xxs:"_1j5skr72",xs:"_1j5skr73",sm:"_1j5skr74",md:"_1j5skr75",lg:"_1j5skr76"}},defaultVariants:{},compoundVariants:[]}),py=C({defaultClassName:"_1j5skr70 _1yep5z6jd _1yep5z6je _1yep5z6jf _1yep5z6lj _1yep5z6lk _1yep5z6le _1yep5z6ip _1yep5z6iq _1yep5z6ir _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6k7 _1yep5z6k8 _1yep5z6k9 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6g1 _1yep5z6f5",variantClassNames:{isHovered:{true:"_1j5skr7g"},isFocusVisible:{true:"_1j5skr7h"},isDisabled:{true:"z9nup83 _1yep5z6114"},isSelected:{true:"_1j5skr7j"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isDisabled:!0},"_1yep5z61ti _1yep5z61th _1yep5z61tf _1yep5z61py _1yep5z61n1"],[{isSelected:!1,isHovered:!0,isDisabled:!1},"_1yep5z6g3"],[{isSelected:!1,isFocusVisible:!0,isDisabled:!1},"_1yep5z61ti _1yep5z61th _1yep5z61po _1yep5z61tf"],[{isSelected:!0,isFocusVisible:!0,isDisabled:!1},"_1j5skr7k _1yep5z61tg _1yep5z61tf _1yep5z61pp _1yep5z61n2"],[{isSelected:!0,isFocusVisible:!1,isDisabled:!1},"_1yep5z61tf _1yep5z61th _1yep5z61po _1yep5z61ti"]]}),cy=C({defaultClassName:"_1j5skr70 _1yep5z6jd _1yep5z6je _1yep5z6jf _1yep5z6lj _1yep5z6lk _1yep5z6le _1yep5z6ip _1yep5z6iq _1yep5z6ir _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6k7 _1yep5z6k8 _1yep5z6k9 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6f5",variantClassNames:{isHovered:{true:"_1j5skr7m"},isFocusVisible:{true:"_1yep5z617l _1yep5z617k _1yep5z613r _1yep5z617i"},isSelected:{true:"_1yep5z6113"},isDisabled:{true:"z9nup83 _1yep5z6114"}},defaultVariants:{},compoundVariants:[[{isSelected:!1,isHovered:!0},"_1yep5z61n0"]]}),dy=C({defaultClassName:"_1j5skr70 _1yep5z6jd _1yep5z6je _1yep5z6jf _1yep5z6lj _1yep5z6lk _1yep5z6le _1yep5z6ip _1yep5z6iq _1yep5z6ir _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6k7 _1yep5z6k8 _1yep5z6k9 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6f5",variantClassNames:{isHovered:{true:"_1j5skr7r"},isFocusVisible:{true:"_1yep5z617l _1yep5z617k _1yep5z613r _1yep5z617i"},isSelected:{true:"_1j5skr7t"},isDisabled:{true:"z9nup83 _1yep5z6114"}},defaultVariants:{},compoundVariants:[[{isSelected:!1,isHovered:!0},"_1yep5z61nx"],[{isSelected:!0,isDisabled:!1},"_1yep5z61nx _1yep5z61n4"],[{isSelected:!0,isDisabled:!0},"_1yep5z61nx _1yep5z61n1"]]}),uy=C({defaultClassName:"_1j5skr77 _1j5skr70 _1yep5z6jd _1yep5z6je _1yep5z6jf _1yep5z6lj _1yep5z6lk _1yep5z6le _1yep5z6ip _1yep5z6iq _1yep5z6ir _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6k7 _1yep5z6k8 _1yep5z6k9 _1yep5z6f5",variantClassNames:{isHovered:{true:"_1j5skr78"},isFocusVisible:{true:"_1j5skr79"},isSelected:{true:"_1j5skr7a"},isDisabled:{true:"_1j5skr7b z9nup83 _1yep5z6116"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isDisabled:!1},"_1j5skr7c _1yep5z61n3"],[{isSelected:!1,isDisabled:!0},"_1j5skr7d _1yep5z61n1"],[{isSelected:!1,isHovered:!0},"_1yep5z61nx"],[{isSelected:!1,isFocusVisible:!0},"_1yep5z61ti _1yep5z61th _1yep5z61po _1yep5z61tf"],[{isSelected:!0,isFocusVisible:!0},"_1j5skr7e _1yep5z61tg _1yep5z61tf _1yep5z61pp"]]});var Qk={xxs:8,xs:12,sm:16,md:20,lg:24},Ce=ut__default.default.forwardRef((r,e)=>{let t=ee(e),{tooltipProps:o}=Ho(r,t);return o?jsxRuntime.jsx(ne,{...o,children:jsxRuntime.jsx(us,{...r,ref:e})}):jsxRuntime.jsx(us,{...r,ref:e})});Ce.displayName="ToggleIconButton";var us=ut__default.default.forwardRef(({className:r,style:e,icon:t,size:o="md",variant:a="primary","data-block-id":n,"data-block-class":i,...s},l)=>{let p=reactStately.useToggleState(s),{buttonProps:c,isPressed:d,ref:m,isFocusVisible:u,isFocused:b,isHovered:y,uiStateOptions:f}=$o(s,p),g=ut.useMemo(()=>typeof t=="function"?t:p.isSelected?t.selected:t.unselected,[t,p.isSelected]),_={isSelected:p.isSelected,isHovered:y,isFocusVisible:u,isDisabled:!!s.isDisabled},v=utils.filterTruthyValues({"data-hovered":y,"data-selected":p.isSelected,"data-focus-visible":u,"data-disabled":s.isDisabled,"data-block-id":n,"data-block-class":i,"data-focused":b,"data-pressed":d});return jsxRuntime.jsx("button",{...reactAria.mergeProps(c,v),className:utils.classNames(a==="toolbar"&&uy(_),a==="primary"&&py(_),a==="secondary"&&cy(_),a==="tertiary"&&dy(_),ly({size:o}),"BaselineUI-ToggleIconButton",typeof r=="function"?r(f):r),style:typeof e=="function"?e(f):e,ref:L(m,l),children:jsxRuntime.jsx(g,{size:Qk[o]})})});us.displayName="ToggleIconButtonCore";var fy="f6jv6bl",yy="_1yep5z64u _1yep5z64v _1yep5z64w _1yep5z676 _1yep5z677 _1yep5z678 _1yep5z6jm _1yep5z6jn _1yep5z6jo",ur="_1yep5z689 _1yep5z68a _1yep5z68b _1yep5z65x _1yep5z65y _1yep5z65z",by=C({defaultClassName:"f6jv6b0 _1yep5z6im _1yep5z6in _1yep5z6io _1yep5z6g1",variantClassNames:{isInline:{true:"f6jv6b1"},isMinimal:{true:"_1yep5z614s _1yep5z614t _1yep5z614u _1yep5z6vi _1yep5z6vj _1yep5z6vk _1yep5z615a _1yep5z615b _1yep5z615c",false:"_1yep5z614v _1yep5z614w _1yep5z614x"}},defaultVariants:{},compoundVariants:[[{isInline:!0,isMinimal:!1},"_1yep5z61if _1yep5z61ig _1yep5z61ih _1yep5z61j3 _1yep5z61j4 _1yep5z61j5 _1yep5z61jr _1yep5z61js _1yep5z61jt _1yep5z61kf _1yep5z61kg _1yep5z61kh _1yep5z61tp _1yep5z61tn _1yep5z61oy"]]}),Ya=C({defaultClassName:"f6jv6b4 _1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6e3 _1yep5z6eu _1yep5z6lk",variantClassNames:{isDisabled:{true:"f6jv6b5 _1yep5z610v"}},defaultVariants:{},compoundVariants:[]}),gy="f6jv6bi _1yep5z6wl _1yep5z6wm _1yep5z6wn _1yep5z6x9 _1yep5z6xa _1yep5z6xb _1yep5z6xx _1yep5z6xy _1yep5z6xz _1yep5z6yl _1yep5z6ym _1yep5z6yn",vy="f6jv6bj";var hy="f6jv6bm _1yep5z63l _1yep5z63m _1yep5z63n _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6ip _1yep5z6iq _1yep5z6ir _1yep5z6ls _1yep5z6ln _1yep5z6ll _1yep5z6hu _1yep5z6eu",_y=C({defaultClassName:"f6jv6bf _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6im _1yep5z6in _1yep5z6io _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6jd _1yep5z6je _1yep5z6jf _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6lk _1yep5z6l4 _1yep5z6l7 _1yep5z6lj",variantClassNames:{isHovered:{true:"_1yep5z6120"},isDisabled:{true:"_1yep5z6z7"}},defaultVariants:{},compoundVariants:[]}),zy="_1yep5z6js _1yep5z6jt _1yep5z6ju",Cy="f6jv6be f6jv6ba _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6ij _1yep5z6ik _1yep5z6il _1yep5z6eu _1yep5z6e3 _1yep5z6lh",xy=C({defaultClassName:"f6jv6bb _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6im _1yep5z6in _1yep5z6io _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6jy _1yep5z6jz _1yep5z6k0",variantClassNames:{isInline:{true:"_1yep5z6pl _1yep5z6pm _1yep5z6pn _1yep5z617s _1yep5z617q _1yep5z6131",false:"_1yep5z6po _1yep5z6pp _1yep5z6pq _1yep5z6x0 _1yep5z6x1 _1yep5z6x2 _1yep5z6xo _1yep5z6xp _1yep5z6xq _1yep5z6yc _1yep5z6yd _1yep5z6ye _1yep5z6z0 _1yep5z6z1 _1yep5z6z2"}},defaultVariants:{},compoundVariants:[]}),Py="f6jv6bk",wy="f6jv6ba _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6ij _1yep5z6ik _1yep5z6il _1yep5z6eu",Za=C({defaultClassName:"f6jv6b6",variantClassNames:{isInline:{true:"f6jv6b7",false:"f6jv6b8"}},defaultVariants:{},compoundVariants:[]}),Ja="f6jv6b9 _1yep5z6im _1yep5z6in _1yep5z6io _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6jd _1yep5z6je _1yep5z6jf",mo="f6jv6bn";var Sy=[["Toolbar Focus","Alt+F10"],["Bold","Ctrl+B"],["Italic","Ctrl+I"],["Underline","Ctrl+U"],["Select All","Ctrl+A"],["Cut","Ctrl+X"],["Copy","Ctrl+C"],["Paste","Ctrl+V"],["Undo","Ctrl+Z"],["Redo","Ctrl+Shift+Z"],["Submit","Ctrl+Enter"],["Open Help Dialog","Ctrl+Shift+H"]],{dialog:{row:fo}}=tokens.layoutSprinkleValues,Iy=({isOpen:r,onClose:e})=>{let{formatMessage:t}=A(),o=reactAria.useId();return jsxRuntime.jsx(Ne,{isOpen:r,onOpenChange:a=>{a||e();},children:jsxRuntime.jsx(Fe,{enableDrawer:"auto",style:{zIndex:999999},children:jsxRuntime.jsxs(ge,{"aria-labelledby":o,className:gy,drawerBackground:"subtle",children:[jsxRuntime.jsxs(E,{paddingLeft:fo.padding.horizontal.lg,paddingRight:fo.padding.horizontal.sm,display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",backgroundColor:"background.primary.subtle",className:vy,children:[jsxRuntime.jsx(Q,{id:o,elementType:"h3",type:"title",size:"md",children:t(yo.help)}),jsxRuntime.jsx(D,{icon:_20.XIcon,size:"md",variant:"secondary","aria-label":t(yo.close),onPress:e})]}),jsxRuntime.jsx(V,{className:Py}),jsxRuntime.jsxs(E,{paddingX:fo.padding.horizontal.lg,role:"table","aria-labelledby":o,backgroundColor:"background.primary.subtle",children:[jsxRuntime.jsx("div",{role:"rowgroup",children:jsxRuntime.jsxs(E,{role:"row",display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingY:fo.padding.vertical.md,color:"text.primary",children:[jsxRuntime.jsx("h6",{className:tokens.sprinkles({typography:"heading.h6.semibold"}),role:"columnheader",children:t(yo.action)}),jsxRuntime.jsx("h6",{className:tokens.sprinkles({typography:"heading.h6.semibold"}),role:"columnheader",style:{textTransform:"capitalize"},children:t(yo.shortcut)})]})}),jsxRuntime.jsx("div",{role:"rowgroup",children:Sy.map(([a,n],i)=>jsxRuntime.jsxs(ut.Fragment,{children:[jsxRuntime.jsxs(E,{role:"row",display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingY:fo.padding.vertical.xs,style:{minHeight:40},children:[jsxRuntime.jsx(Q,{type:"subtitle",size:"sm",role:"cell",children:t(yo[lodash.camelCase(a)])}),jsxRuntime.jsx(Q,{elementType:"kbd",type:"subtitle",size:"sm",role:"cell",children:utils.getOsSpecificKeyboardShortcutLabel(n,!0)})]}),i!==Sy.length-1&&jsxRuntime.jsx(V,{})]},a))})]})]})})})},yo=K({toolbarFocus:{id:"toolbarFocus",defaultMessage:"Toolbar Focus"},help:{id:"help",defaultMessage:"Help"},close:{id:"close",defaultMessage:"Close"},action:{id:"action",defaultMessage:"Action"},shortcut:{id:"shortcut",defaultMessage:"Shortcut"},bold:{id:"bold",defaultMessage:"Bold"},italic:{id:"italic",defaultMessage:"Italic"},underline:{id:"underline",defaultMessage:"Underline"},selectAll:{id:"selectAll",defaultMessage:"Select All"},cut:{id:"cut",defaultMessage:"Cut"},copy:{id:"copy",defaultMessage:"Copy"},paste:{id:"paste",defaultMessage:"Paste"},undo:{id:"undo",defaultMessage:"Undo"},redo:{id:"redo",defaultMessage:"Redo"},openHelpDialog:{id:"openHelpDialog",defaultMessage:"Open Help Dialog"},submit:{id:"submit",defaultMessage:"Submit"}});var Qa=ut__default.default.forwardRef(({value:r,defaultValue:e,onChange:t,placeholder:o,spellCheck:a,textBoxRef:n,isInline:i,isMinimal:s,isDisabled:l,editableContentAriaLabel:p,editorHandle:c,autoFocus:d,saveOnEnter:m,onSave:u},b)=>{let y=ut__default.default.useRef(null),[f,g]=utils$1.useControlledState(r,e||"",t),_=ut.useCallback(R=>{g(R.currentTarget.value||"");},[g]),v=ut.useCallback(R=>{(m&&R.key==="Enter"&&!R.shiftKey||(R.ctrlKey||R.metaKey)&&R.key==="Enter")&&(R.preventDefault(),u());},[m,u]);ut.useImperativeHandle(b,()=>({clear:()=>{g("");}}));let h=ut.useCallback(R=>{R.currentTarget.style.height="16px",R.currentTarget.style.height=R.currentTarget.scrollHeight+"px";},[]);granularHooks.useGranularLayoutEffect(()=>{let R=y.current;R&&(R.style.height="16px",R.style.height=R.scrollHeight+"px");},[s],[f]),ut.useImperativeHandle(c,()=>({setCaretPosition:R=>{y.current&&(y.current.focus(),y.current.setSelectionRange(R,R));},focus:()=>{y.current&&y.current.focus();}}));let{focusProps:x,isFocused:w,isFocusVisible:P}=reactAria.useFocusRing(),{hoverProps:z,isHovered:k}=reactAria.useHover({}),T=utils.filterTruthyValues({"data-focus-visible":P,"data-hovered":k,"data-focused":w});return jsxRuntime.jsx("textarea",{...reactAria.mergeProps(x,z,T),ref:L(y,n),className:utils.classNames(s?Cy:[Ya(),Za({isInline:i}),wy]),autoFocus:d,onChange:_,disabled:l,onInput:h,value:f,placeholder:o,spellCheck:a,"aria-label":p,onKeyDown:v})});Qa.displayName="PlainEditor";var vo="mention",en="mention_input",jy=ut__default.default.forwardRef(({onCancel:r,editor:e,element:t,onSelectionChange:o},a)=>{let{containerRef:n,items:i,maxMentionableUsersSuggestions:s}=ut.useContext(rn),l=slateReact.useSelected(),[p,c]=ut.useState(""),{contains:d}=reactAria.useFilter({sensitivity:"base"}),{formatMessage:m}=A(),u=ut.useMemo(()=>{let I=i.filter(M=>p===""||d(M.displayName,p)).map(M=>({id:M.id,label:M.displayName,data:M}));return s?lodash.take(I,s):I},[i,s,p,d]),b=ut.useCallback(I=>jsxRuntime.jsx(reactStately.Item,{children:I.label},I.id),[]),y=ut.useCallback((I=!1)=>{let M=plateCommon.findNodePath(e,t);M&&(plateCommon.removeNodes(e,{at:M}),I&&plateCommon.focusEditor(e));},[e,t]),f=reactStately.useComboBoxState({items:u,children:b,menuTrigger:"focus",onSelectionChange:I=>{y(!0),o?.(I);}}),g=ut__default.default.useRef(null),_=ut__default.default.useRef(null),v=ut__default.default.useRef(null),h=ut__default.default.useRef(null),x=plateCombobox.useHTMLInputCursorState(_);reactAria.useInteractOutside({ref:h,onInteractOutside:()=>{f.close();}});let{inputProps:w,listBoxProps:P}=reactAria.useComboBox({defaultItems:u,inputRef:_,buttonRef:g,listBoxRef:v,popoverRef:h,menuTrigger:"focus","aria-label":m(DS.mention)},f);ut.useEffect(()=>{_.current?.focus();},[]);let z=ut.useCallback((I="manual",M=!1)=>{y(M),r?.(I,f.inputValue);},[r,y,f.inputValue]),k=ut.useRef(l);ut.useEffect(()=>{k.current&&!l&&z("deselect"),k.current=l;},[l,z]);let T=x?.atStart??!1,R=x?.atEnd??!1,N=ut.useCallback(I=>{I.key==="Backspace"&&T?z("backspace",!0):I.key==="Escape"?z("escape",!0):I.key==="ArrowLeft"&&T?z("arrowLeft",!0):I.key==="ArrowRight"&&R&&z("arrowRight",!0);let M=plateCommon.Hotkeys.isUndo(I)&&e.history.undos.length>0,F=plateCommon.Hotkeys.isRedo(I)&&e.history.redos.length>0;(M||F)&&(I.preventDefault(),e[M?"undo":"redo"](),plateCommon.focusEditor(e));},[T,R,z,e]),S=ut.useMemo(()=>{if(!CSS.supports("field-sizing","content")){let I=ae(_.current),M=_.current?I?.getComputedStyle(_.current).font:void 0;return {width:M?utils.getTextDimensions({text:f.inputValue,font:M}).width+10:"4ch"}}},[f.inputValue]);return jsxRuntime.jsxs(mt.Provider,{value:f,children:[jsxRuntime.jsx("input",{...reactAria.mergeProps(w,{onKeyDown:N,onBlur:()=>{z("blur",!0);},onChange:I=>{c(I.target.value);}}),style:S,className:hy,ref:L(a,_)}),jsxRuntime.jsx(ze,{triggerRef:n,isNonModal:!0,ref:h,state:f,crossOffset:-2,children:jsxRuntime.jsx(de,{...P,items:void 0,autoFocus:"first",ref:v,className:utils.classNames(tt,tokens.sprinkles({width:"full"})),renderOption:Vy})})]})});jy.displayName="MentionInputContentElement";var gs=cn$1.withRef(({className:r,...e},t)=>{let{children:o,editor:a,element:n}=e,{items:i}=ut.useContext(rn),s=ut.useRef(null),[l,p]=ut.useState(null);ut.useEffect(()=>{let m=plateCommon.findNodePath(a,n);if(!m)return;let u=plateCommon.getPointBefore(a,m);if(!u)return;let b=plateCommon.createPointRef(a,u);return p(b),()=>{b.unref();}},[a,n]);let c=ut.useCallback(()=>{let m=s.current?.getRootNode()instanceof ShadowRoot;plateCommon.moveSelection(a,{unit:"offset"}),plateCommon.moveSelection(a,{unit:"character",distance:1}),Pr()&&m&&plateCommon.focusEditor(a);},[a]),d=ut.useCallback(m=>{if(!m)return;let u=s.current?.getRootNode()instanceof ShadowRoot,b=i.find(f=>f.id===m);utils.invariant(b,"User not found");let y={type:vo,value:b.id,displayName:b.displayName,children:[{text:""}]};plateCommon.insertNodes(a,[y,{text:" "}]),u?setTimeout(()=>{c();},0):c();},[a,i,c]);return jsxRuntime.jsxs(plateCommon.PlateElement,{as:"span","data-slate-value":n.value,contentEditable:!1,className:r,ref:t,...e,children:[jsxRuntime.jsx(jy,{onCancel:(m,u)=>{m!=="backspace"&&plateCommon.insertText(a,"@"+u,{at:l?.current??void 0}),(m==="arrowLeft"||m==="arrowRight")&&plateCommon.moveSelection(a,{distance:1,reverse:m==="arrowLeft"});},onSelectionChange:d,ref:s,element:n,editor:a}),o]})});gs.displayName="MentionInputElement";var vs=cn$1.withRef(({className:r,onClick:e,children:t,...o},a)=>{let n=plateCommon.useElement();return jsxRuntime.jsxs(plateCommon.PlateElement,{as:"span",className:r,contentEditable:!1,"data-user-id":n.value,onClick:plateCommon.getHandler(e,n),ref:a,...o,children:["@",n.displayName,t]})});vs.displayName="MentionElement";var Hy=(r,{options:{trigger:e,triggerPreviousCharPattern:t,triggerQuery:o}})=>{let{insertText:a}=r,n=i=>i===e;return r.insertText=i=>{if(!r.selection||!n(i)||o&&!o(r)){a(i);return}let s=plateCommon.getEditorString(r,plateCommon.getRange(r,r.selection,plateCommon.getPointBefore(r,r.selection)));if(t?.test(s)){tn(r);return}a(i);},r},DS=K({mention:{defaultMessage:"Mention",id:"mention"}});function Uy({className:r,children:e,...t}){return jsxRuntime.jsx(plateCommon.PlateElement,{asChild:!0,className:r,...t,children:jsxRuntime.jsx("p",{children:e})})}function ZS(r){return Object.entries(r).map(([e,t])=>`${lodash.kebabCase(e)}:${t}`).filter(([,e])=>!!e).join(";")}function JS(r){return "text"in r}function QS(r){return r.replaceAll("&","&amp;").replaceAll("<","&lt;").replaceAll(">","&gt;").replaceAll('"',"&quot;").replaceAll("'","&#039;")}function ho(r){if(!r)return "";function e(t){if(JS(t)){let a=QS(t.text);return t.bold&&(a=`<b>${a}</b>`),t.italic&&(a=`<i>${a}</i>`),t.underline&&(a=`<u>${a}</u>`),(t.color||t.backgroundColor)&&(a=`<span style="${ZS(utils.filterTruthyValues({color:t.color||void 0,backgroundColor:t.backgroundColor||void 0}))}">${a}</span>`),a}let o=t.children?.map(ho).join("");switch(t.type){case plateParagraph.ELEMENT_PARAGRAPH:return `<p>${o}</p>`;case plateLink.ELEMENT_LINK:return `<a href="${t.url}">${o}</a>`;case vo:return `<span data-user-id="${t.value}">${t.displayName}</span>`;default:return o}}return Array.isArray(r)?r.map(t=>e(t)).join(""):e(r)}function eI(r){return r?(r=r.trim(),r.endsWith(";")&&(r=r.slice(0,-1)),Object.fromEntries(r.split(";").map(e=>e.split(":").map(t=>t.trim())).map(([e,t])=>[lodash.camelCase(e),t]))):{}}function xs(r){r.startsWith("<p>")||(r=`<p>${r}</p>`);let e=new DOMParser().parseFromString(qy__namespace.default.sanitize(r),"text/html"),t=e.querySelectorAll("[style]");for(let a of t)a.style.textDecoration==="underline"&&(a.style.textDecoration="",a.style.cssText||a.removeAttribute("style"),a.hasAttributes()?a.innerHTML=`<u>${a.innerHTML}</u>`:a.outerHTML=`<u>${a.innerHTML}</u>`);let o=e.querySelectorAll("br");for(let a of o)a.outerHTML=a.closest("p")?`
41
- `:"<p>";return Gy(e.body)}function Gy(r,e){if(r.nodeType===Node.TEXT_NODE)return slateHyperscript.jsx("text",e,r.textContent);if(r.nodeType!==Node.ELEMENT_NODE)return null;let t={...e};switch(r.nodeName.toUpperCase()){case"B":{t.bold=!0;break}case"I":{t.italic=!0;break}case"EM":{t.italic=!0;break}case"U":{t.underline=!0;break}case"SPAN":{let a=eI(r.getAttribute("style")||"");a["text-decoration"]==="underline"&&(t.underline=!0),a.color&&(t.color=a.color),a.backgroundColor&&(t.backgroundColor=a.backgroundColor);break}}let o=[...r.childNodes].flatMap(a=>Gy(a,t));switch(o.length===0&&o.push(slateHyperscript.jsx("text",t,"")),r.nodeName.toUpperCase()){case"BR":return slateHyperscript.jsx("text",e,`
42
- `);case"SPAN":{let a=r.dataset.userId;return a?slateHyperscript.jsx("element",{type:vo,value:a,displayName:r.textContent},{text:""}):o}case"P":return slateHyperscript.jsx("element",{type:plateParagraph.ELEMENT_PARAGRAPH},o);case"A":return slateHyperscript.jsx("element",{type:plateLink.ELEMENT_LINK,url:r.getAttribute("href")},o);default:return o}}function Wy(r){let e=plateCommon.findNode(r,{match:{type:plateCommon.getPluginType(r,plateLink.ELEMENT_LINK)}}),[t]=e||[{url:""}];return t?.url}function tn(r){let e={children:[{text:" "}],type:en};r.insertNode(e);}var tI=plateCommon.createPluginFactory({isElement:!0,isInline:!0,isMarkableVoid:!0,isVoid:!0,key:vo,options:{trigger:"@",triggerPreviousCharPattern:/^$|^[\s"']$/},plugins:[{isElement:!0,isInline:!0,isVoid:!0,key:en}],withOverrides:Hy}),Xy=plateCommon.createPlugins([plateParagraph.createParagraphPlugin({component:Uy}),plateBasicMarks.createBoldPlugin({component:cn$1.withProps(plateCommon.PlateLeaf,{as:"b"})}),plateBasicMarks.createItalicPlugin({component:cn$1.withProps(plateCommon.PlateLeaf,{as:"i"})}),plateBasicMarks.createUnderlinePlugin({component:cn$1.withProps(plateCommon.PlateLeaf,{as:"u"})}),plateFont.createFontColorPlugin(),plateFont.createFontBackgroundColorPlugin(),plateLink.createLinkPlugin({component:Yy}),tI({component:vs})],{components:{[en]:gs}});var xt={Add:"add",Edit:"edit",Show:"show"},e1=({isDisabled:r})=>{let{formatMessage:e}=A(),t=plateCommon.useEditorRef();return jsxRuntime.jsxs(Ae,{type:"dialog",children:[jsxRuntime.jsx(Be,{children:jsxRuntime.jsx(D,{icon:_20.LinkIcon,size:"sm",isDisabled:r,"aria-label":e(Pt.addLink),className:ur,preventFocusOnPress:!0})}),jsxRuntime.jsx(Ee,{className:tokens.sprinkles({boxShadow:"medium"}),placement:"top end",children:({close:o})=>jsxRuntime.jsx(ge,{size:"content",style:{minWidth:240},children:jsxRuntime.jsx(pI,{close:()=>{o(),setTimeout(()=>{plateCommon.focusEditor(t,t.selection);},0);}})})})]})},pI=({close:r})=>{let e=plateCommon.useEditorRef(),{formatMessage:t}=A(),o=plateCommon.useEditorSelector(p=>Wy(p),[]),[a,n]=ut__default.default.useState(o?xt.Show:xt.Add),[i,s]=ut__default.default.useState(o||""),l=jsxRuntime.jsx(E,{padding:"lg",children:jsxRuntime.jsx(rt,{label:t(Pt.link),value:i,autoFocus:!0,onChange:s,placeholder:"https://yourdomain.com"})});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[a===xt.Add&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[l,jsxRuntime.jsx(E,{display:"flex",justifyContent:"flex-end",padding:"lg",className:fy,children:jsxRuntime.jsx(G,{isDisabled:!utils.isUrl(i,!0),label:t(Pt.addLink),size:"sm",onPress:()=>{plateLink.upsertLink(e,{url:i,skipValidation:!0}),r?.();},preventFocusOnPress:!0})})]}),a===xt.Show&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(E,{padding:"lg",children:jsxRuntime.jsx(Q,{type:"subtitle",size:"sm",children:o})}),jsxRuntime.jsxs(E,{display:"flex",justifyContent:"flex-end",padding:"lg",gap:"lg",borderColor:"border.subtle",borderWidth:1,borderStyle:"solid",children:[jsxRuntime.jsx(G,{label:t(Pt.editLink),size:"sm",variant:"secondary",onPress:()=>{n(xt.Edit);},style:{flex:1,justifyContent:"center"}}),jsxRuntime.jsx(G,{label:t(Pt.removeLink),size:"sm",onPress:()=>{plateLink.unwrapLink(e),r?.();},preventFocusOnPress:!0,style:{flex:1,justifyContent:"center"}})]})]}),a===xt.Edit&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[l,jsxRuntime.jsxs(E,{display:"flex",justifyContent:"flex-end",padding:"lg",gap:"lg",borderColor:"border.subtle",borderWidth:1,borderStyle:"solid",children:[jsxRuntime.jsx(G,{label:t(Pt.cancel),size:"sm",variant:"secondary",onPress:()=>{n(xt.Show),r?.();}}),jsxRuntime.jsx(G,{label:t(Pt.save),size:"sm",onPress:()=>{plateLink.upsertLink(e,{url:i,skipValidation:!0}),r?.();}})]})]})]})};function Yy({className:r,children:e,...t}){return jsxRuntime.jsx(plateCommon.PlateElement,{asChild:!0,className:r,...t,children:jsxRuntime.jsx("a",{className:va({size:"sm"}),children:e})})}var Pt=K({addLink:{id:"addLink",defaultMessage:"Add Link",description:"Add Link"},editLink:{id:"editLink",defaultMessage:"Edit Link",description:"Edit Link"},removeLink:{id:"removeLink",defaultMessage:"Remove Link",description:"Remove Link"},cancel:{id:"cancel",defaultMessage:"Cancel",description:"Cancel"},save:{id:"save",defaultMessage:"Save",description:"Save"},link:{id:"linkAnnotation",defaultMessage:"Link",description:"Link"}});var dI=color.parseColor("#ffffff00").toString("hexa"),Ps=[{label:"Red",color:"#ff0000"},{label:"Green",color:"#00ff00"},{label:"Blue",color:"#0000ff"},{label:"Yellow",color:"#ffff00"},{label:"Cyan",color:"#00ffff"},{label:"Magenta",color:"#ff00ff"},{label:"Black",color:"#000000"},{label:"White",color:"#ffffff"},{label:"Gray",color:"#808080"},{label:"Orange",color:"#ffa500"},{label:"Brown",color:"#a52a2a"},{label:"Purple",color:"#800080"}];[...Ps,{label:"Transparent",color:dI}];var an=({nodeType:r,icon:e,ariaLabel:t,isDisabled:o})=>{let a=plateCommon.useEditorSelector(i=>plateCommon.isMarkActive(i,r),[]),n=plateCommon.useEditorRef();return jsxRuntime.jsx(Ce,{variant:"tertiary",isSelected:a,size:"sm",icon:e,"aria-label":t,isDisabled:o,onPress:()=>{plateCommon.toggleMark(n,{key:r});},preventFocusOnPress:!0})},ks=({nodeType:r,"aria-label":e,isDisabled:t})=>{let{updateColor:o,clearColor:a,color:n}=plateFont.useColorDropdownMenuState({customColors:[],colors:[],nodeType:r}),i=ut.useCallback(({ref:l,triggerProps:p})=>jsxRuntime.jsx(D,{icon:r==="color"?_24.TextIcon:_24.HighlightTextIcon,"aria-label":e,size:"md",variant:"popover",isDisabled:t,className:ur,preventFocusOnPress:!0,...p,ref:l}),[r,e,t]),s=ut.useCallback(l=>{l?o(l.toString("rgba")):a();},[a,o]);return jsxRuntime.jsx(lr,{presets:Ps,allowRemoval:!0,pickerMode:"lazy",placement:"top end",colorLabel:!1,renderTriggerButton:i,value:n||"#000000",onChange:s,isDisabled:t})};var HI=[{type:plateParagraph.ELEMENT_PARAGRAPH,children:[{text:""}]}],rn=ut__default.default.createContext({items:[],containerRef:{current:null},maxMentionableUsersSuggestions:10}),Rs=ut__default.default.forwardRef(({value:r,defaultValue:e,onChange:t,style:o,spellCheck:a,placeholder:n,isInline:i,isDisabled:s,editableContentAriaLabel:l,containerRef:p,onHelpDialogOpenRequest:c,mentionableUsers:d,editorHandle:m,maxMentionableUsersSuggestions:u,autoFocus:b,editorRef:y,saveOnEnter:f,onSave:g},_)=>{let v=ut.useRef(null),h=reactAria.useId(),{formatMessage:x}=A(),w=ut.useRef(null),P=w.current,z=ut.useRef(null),k=ut.useMemo(()=>P?.getRootNode()instanceof ShadowRoot,[P]),[T,R]=utils$1.useControlledState(r?xs(r):void 0,xs(e||"<p></p>"),I=>{t&&t(ho(I));}),{keyboardProps:N}=reactAria.useKeyboard({onKeyDown:I=>{(f&&I.key==="Enter"&&!I.shiftKey||(I.ctrlKey||I.metaKey)&&I.key==="Enter")&&(I.preventDefault(),g()),I.altKey&&I.key==="F10"?(I.preventDefault(),v.current&&v.current.querySelector("button")?.focus()):I.continuePropagation(),Pr()&&k&&z.current&&plateCommon.focusEditor(z.current);}});ut.useEffect(()=>{s&&z.current&&plateCommon.deselect(z.current);},[s]),ut.useImperativeHandle(_,()=>({startMention:()=>{z.current&&!w.current?.querySelector("input[role='combobox']")&&tn(z.current);}})),ut.useImperativeHandle(m,()=>({setCaretPosition:I=>{z.current&&(plateCommon.focusEditor(z.current),plateCommon.moveSelection(z.current,{distance:I,unit:"character"}));},focus:()=>{z.current&&plateCommon.focusEditor(z.current);}}));let S=ut.useMemo(()=>({items:d||[],containerRef:p,maxMentionableUsersSuggestions:u}),[d,p,u]);return jsxRuntime.jsx(rn.Provider,{value:S,children:jsxRuntime.jsxs(plateCommon.Plate,{initialValue:T||HI,plugins:Xy,editorRef:L(z,y||null),onChange:I=>{R(I);},children:[jsxRuntime.jsxs(Xa,{className:Ja,"aria-controls":h,ref:v,children:[jsxRuntime.jsxs(E,{display:"flex",flexDirection:"row",role:"group",gap:"xs",paddingX:"sm",children:[jsxRuntime.jsx(an,{nodeType:plateBasicMarks.MARK_BOLD,icon:_20.BoldIcon,ariaLabel:x(br.bold),isDisabled:s}),jsxRuntime.jsx(an,{nodeType:plateBasicMarks.MARK_ITALIC,icon:_20.ItalicIcon,ariaLabel:x(br.italic),isDisabled:s}),jsxRuntime.jsx(an,{nodeType:plateBasicMarks.MARK_UNDERLINE,icon:_20.UnderlineIcon,ariaLabel:x(br.underline),isDisabled:s})]}),jsxRuntime.jsx(V,{orientation:"vertical",className:mo}),jsxRuntime.jsx(ks,{nodeType:plateFont.MARK_COLOR,"aria-label":x(br.fontColor),isDisabled:s}),jsxRuntime.jsx(V,{orientation:"vertical",className:mo}),jsxRuntime.jsx(ks,{nodeType:plateFont.MARK_BG_COLOR,"aria-label":x(br.backgroundColor),isDisabled:s}),jsxRuntime.jsx(V,{orientation:"vertical",className:mo}),jsxRuntime.jsx(e1,{isDisabled:s}),jsxRuntime.jsx(V,{orientation:"vertical",className:mo}),jsxRuntime.jsx(D,{className:ur,icon:_24.QuestionmarkCircleIcon,size:"sm","aria-label":x(br.help),onPress:c})]}),jsxRuntime.jsx(V,{variant:"secondary"}),jsxRuntime.jsx("div",{...N,ref:w,children:jsxRuntime.jsx(plateCommon.PlateContent,{id:h,disabled:s,readOnly:s,style:o,placeholder:n,autoFocus:b,spellCheck:a,"aria-label":l,className:utils.classNames(Ya({isDisabled:s}),Za({isInline:i})),renderPlaceholder:({attributes:I,children:M})=>jsxRuntime.jsx("span",{...I,className:tokens.sprinkles({paddingY:"lg"}),children:M})})})]})})});Rs.displayName="RichEditor";var Vy=({key:r,value:e},{isDisabled:t,optionProps:o,isFocused:a,_state:n},i)=>{let{hoverProps:s}=reactAria.useHover({isDisabled:t}),{label:l,data:p}=e;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("li",{...reactAria.mergeProps(o,s),className:_y({isDisabled:t,isHovered:a}),"data-active":a,ref:i,children:[jsxRuntime.jsx(nr,{name:l,...p?.avatar}),jsxRuntime.jsxs(E,{display:"flex",flexDirection:"column",children:[jsxRuntime.jsx(Q,{type:"subtitle",size:"sm",children:l}),jsxRuntime.jsx(Q,{type:"helper",size:"sm",children:p?.description})]})]}),r===n.collection.getLastKey()?null:jsxRuntime.jsx(V,{})]})},br=K({bold:{defaultMessage:"Bold",id:"bold"},italic:{defaultMessage:"Italic",id:"italic"},underline:{defaultMessage:"Underline",id:"underline"},backgroundColor:{defaultMessage:"Background color",id:"backgroundColor"},fontColor:{defaultMessage:"Font color",id:"fontColor"},help:{defaultMessage:"Help",id:"help"}});var i1=ut__default.default.memo(ut__default.default.forwardRef(({className:r,style:e,"data-block-id":t,"data-block-class":o,enableRichText:a=!1,onCancel:n,onSave:i,isInline:s=!0,submitButtonIcon:l=_20.ArrowUpCircleFilledIcon,submitButtonAriaLabel:p,cancelButtonAriaLabel:c,"aria-label":d,"aria-describedby":m,"aria-labelledby":u,"aria-details":b,editableContentAriaLabel:y="Editing Area",footerButtons:f,clearOnCancel:g,clearOnSave:_,...v},h)=>{let x=ut.useRef(null),{formatMessage:w}=A(),P=ut.useRef(null),z=ut.useRef(null),k=ut.useRef(null),T=!a&&v.variant==="minimal",R=ut.useRef(null),[N,S]=ut__default.default.useState(v.value||v.defaultValue),I=v.isDisabled||v.isSaveDisabled||!utils.getPlainText(N||""),{fieldProps:M}=reactAria.useLabel({"aria-label":d,"aria-labelledby":u,"aria-describedby":m,"aria-details":b,labelElementType:"div"});T&&!v.avatarName&&console.warn("Editor: When using the minimal `variant` and `enableRichText` is `false`, you should provide an `avatarName`.");let F=ut.useCallback(()=>{S(""),a?x.current?.reset():z.current?.clear();},[a]),H=ut.useCallback(()=>{I||(i?.(a?ho(x.current?.children):P.current.value),_&&F());},[F,_,a,i,I]),B=jsxRuntime.jsx(D,{variant:"ghost","aria-label":p||w(Ns.save),icon:l,isDisabled:I,size:"md",excludeFromTabOrder:T,className:T?zy:void 0,onPress:H,preventFocusOnPress:!0}),[$,U]=ut__default.default.useState(!1),{keyboardProps:O}=reactAria.useKeyboard({onKeyDown:j=>{(j.metaKey||j.ctrlKey)&&j.shiftKey&&j.key==="h"&&(j.preventDefault(),U(!0));}}),te=ut.useCallback(j=>{S(j),v.onChange?.(j);},[v]);return jsxRuntime.jsxs("div",{...reactAria.mergeProps(M,a?O:{}),role:"application",ref:L(k,h),style:e,"data-block-id":t,"data-block-class":o,className:utils.classNames(by({isInline:s,isMinimal:T}),"BaselineUI-Editor",r),"aria-disabled":v.isDisabled,children:[T?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s?jsxRuntime.jsx(nr,{className:yy,name:v.avatarName||""}):null,jsxRuntime.jsxs("div",{className:xy({isInline:s}),children:[jsxRuntime.jsx(Qa,{isMinimal:T,textBoxRef:P,isInline:s,editableContentAriaLabel:y,...v,onChange:te,onSave:H}),B]})]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[a?jsxRuntime.jsx(Rs,{containerRef:k,ref:R,editorRef:x,isInline:s,editableContentAriaLabel:y,onHelpDialogOpenRequest:()=>{U(!0);},...v,onChange:te,onSave:H}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[!s&&jsxRuntime.jsx(V,{variant:"secondary"}),jsxRuntime.jsx(Qa,{onCancel:n,textBoxRef:P,ref:z,isInline:s,editableContentAriaLabel:y,...v,onChange:j=>{S(j),v.onChange?.(j);},onSave:H})]}),jsxRuntime.jsx(V,{variant:"secondary"}),jsxRuntime.jsxs("div",{className:utils.classNames(Ja,tokens.sprinkles({justifyContent:"space-between"})),children:[jsxRuntime.jsxs(E,{paddingX:"sm",gap:"sm",display:"flex",children:[a&&v.mentionableUsers?jsxRuntime.jsx(D,{icon:_20.AtIcon,size:"sm","aria-label":w(Ns.mention),onPress:()=>R.current?.startMention(),preventFocusOnPress:!0}):null,f?.map(({type:j,props:Z},X)=>j==="action"?jsxRuntime.jsx(D,{...Z,size:"sm",isDisabled:v.isDisabled||Z.isDisabled},X):jsxRuntime.jsx(Ce,{...Z,size:"sm",variant:"tertiary",isDisabled:v.isDisabled||Z.isDisabled},X))]}),jsxRuntime.jsxs(E,{children:[!!n&&jsxRuntime.jsx(D,{variant:"secondary",icon:_20.XCircleFilledIcon,isDisabled:v.isDisabled,size:"md",onPress:()=>{n(),g&&F();},"aria-label":c||w(Ns.cancel)}),B]})]})]}),jsxRuntime.jsx(Iy,{isOpen:$,onClose:()=>{U(!1);}})]})}));i1.displayName="Editor";var Ns=K({cancel:{defaultMessage:"Cancel",id:"cancel"},save:{defaultMessage:"Save",id:"save"},mention:{defaultMessage:"Mention",id:"mention"}});var s1="_8kqf970 _1yep5z6pi _1yep5z6pj _1yep5z6pk _1yep5z6m0 _1yep5z6m1 _1yep5z6m2 _1yep5z6oc _1yep5z6od _1yep5z6oe _1yep5z614j _1yep5z614k _1yep5z614l _1yep5z614s _1yep5z614t _1yep5z614u _1yep5z615a _1yep5z615b _1yep5z615c _1yep5z6z3 _1yep5z6vc _1yep5z6vd _1yep5z6ve _1yep5z617g _1yep5z6zv";var p1=2,d1=ut__default.default.forwardRef(({className:r,style:e,hideForKeyboard:t,scrollRef:o,label:a,delay:n=1500,smoothScroll:i=!0,"data-block-id":s,"data-block-class":l},p)=>{let c=ut__default.default.useRef(null),d=interactions.useInteractionModality(),[m,u]=ut__default.default.useState(!1),b=ut.useCallback(()=>{let k=o?.current||fe(c.current).body;return ae(k).getComputedStyle(k).flexDirection==="column-reverse"?k.scrollTop+p1>=0:k.scrollTop+k.clientHeight+p1>=k.scrollHeight},[o]),[y,f]=ut__default.default.useState(b),{buttonProps:g,isPressed:_}=reactAria.useButton({onPress:()=>{let k=o?.current||fe(c.current).body;k.scrollTo({top:k.scrollHeight,behavior:i?"smooth":"auto"});}},c),{focusProps:v,isFocused:h,isFocusVisible:x}=reactAria.useFocusRing(),{hoverProps:w,isHovered:P}=reactAria.useHover({}),z=utils.filterTruthyValues({"data-block-id":s,"data-block-class":l,"data-pressed":_,"data-focus-visible":x,"data-hovered":P,"data-focused":h});return ut.useEffect(()=>{f(b());},[b]),ut.useEffect(()=>{let k=o?.current||fe(c.current).body,T="onscrollend"in ae(k),R=()=>{setTimeout(()=>{u(!1),f(b());},n);},N=()=>{u(!0),T||R();};return k.addEventListener("scroll",N),k.addEventListener("scrollend",R),()=>{k.removeEventListener("scroll",N),k.removeEventListener("scrollend",R);}},[o,n,b]),jsxRuntime.jsx(react.AnimatePresence,{initial:!1,children:(!t||d!=="keyboard")&&!m&&!y?jsxRuntime.jsxs(react.motion.button,{initial:{opacity:0,transform:"translateX(-50%) translateY(10px)"},animate:{opacity:1,transform:"translateX(-50%) translateY(0)"},exit:{opacity:0,transform:"translateX(-50%) translateY(10px)"},transition:{duration:.3},...reactAria.mergeProps(g,v,w,z),className:utils.classNames(s1,Pa({isFocusVisible:x,variant:"high-contrast",isHovered:P}),wa({variant:"high-contrast"}),"BaselineUI-ScrollControlButton",r),style:e,ref:L(p,c),children:[jsxRuntime.jsx(_16.ArrowDownCircleFilledIcon,{size:16,className:Gr({variant:"high-contrast"})}),a]}):null})});d1.displayName="ScrollControlButton";var Ls="_1yep5z6jy _1yep5z6jz _1yep5z6k0 _1yep5z6k7 _1yep5z6k8 _1yep5z6k9",u1=C({defaultClassName:"_1v0p2z10 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6im _1yep5z6in _1yep5z6io _1yep5z6iy _1yep5z6iz _1yep5z6j0 _1yep5z69f _1yep5z69g _1yep5z69h",variantClassNames:{hasTitleAndIcon:{true:"_1yep5z6m0 _1yep5z6m1 _1yep5z6m2 _1yep5z6oi _1yep5z6oj _1yep5z6ok"},hasNoCloseBtn:{true:"_1yep5z6m6 _1yep5z6m7 _1yep5z6m8 _1yep5z6oi _1yep5z6oj _1yep5z6ok _1yep5z6po _1yep5z6pp _1yep5z6pq _1yep5z6nc _1yep5z6nd _1yep5z6ne"}},defaultVariants:{},compoundVariants:[[{hasTitleAndIcon:!0,hasNoCloseBtn:!0},"_1yep5z61hf _1yep5z61hg _1yep5z61hh"]]}),m1="_1v0p2z10";var ln=ut__default.default.forwardRef(({className:r,style:e,"data-block-id":t,"data-block-class":o,message:a,title:n,primaryActionLabel:i,cancelLabel:s,textInputProps:l,icon:p,iconColor:c,showCloseButton:d=!0,onPrimaryAction:m,onCancel:u,autoFocusButton:b,isPrimaryActionDisabled:y},f)=>{let g=reactAria.useId(),{formatMessage:_}=A(),v=n&&jsxRuntime.jsx(Q,{id:g,type:"title",size:"sm",elementType:"h3",children:n});return jsxRuntime.jsxs(ge,{className:r,style:e,"data-block-id":t,"data-block-class":o,size:"sm",variant:"primary",role:"alertdialog",ref:f,"aria-labelledby":g,children:[jsxRuntime.jsxs("div",{className:u1({hasTitleAndIcon:!!(p&&n),hasNoCloseBtn:!d}),children:[jsxRuntime.jsxs(E,{display:"flex",justifyContent:"space-between",alignItems:"center",flexDirection:"row",children:[p?jsxRuntime.jsx(p,{style:{color:c},size:24}):null,!p&&v,d?jsxRuntime.jsx(D,{icon:_20.XIcon,variant:"secondary",size:"md","aria-label":_(uR.close),onPress:u}):null]}),p?v:null]}),a?jsxRuntime.jsx(E,{elementType:"section",className:m1,paddingX:"lg",paddingBottom:"lg",typography:"body.sm.regular",color:"text.primary",children:a}):null,l?jsxRuntime.jsx(E,{paddingX:"lg",paddingBottom:"lg",children:jsxRuntime.jsx(rt,{...l})}):null,s||i?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(V,{}),jsxRuntime.jsxs(E,{padding:"lg",display:"flex",gap:"xl",children:[s?jsxRuntime.jsx(G,{variant:"secondary",className:Ls,label:s,onPress:u,autoFocus:b==="cancel"}):null,i?jsxRuntime.jsx(G,{className:Ls,label:i,onPress:m,autoFocus:b==="primary",isDisabled:y}):null]})]}):null]})});ln.displayName="AlertDialog";var uR=K({close:{id:"close",defaultMessage:"Close",description:"Close button label"}});var f1="_1t55bp71",y1="_1yep5z6e3 _1yep5z6eu _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z69i _1yep5z69j _1yep5z69k",b1="_1t55bp70";var vR=gR__default.default(),g1=ut__default.default.forwardRef(({className:r,style:e,children:t,"data-block-id":o,"data-block-class":a,showCaret:n},i)=>{let s=ut.useMemo(()=>{let l=t;return (!t||Array.isArray(t)&&t.length===0)&&(l=""),vR.render(l)},[t]);return jsxRuntime.jsx("div",{className:utils.classNames(y1,b1,{[f1]:n},"BaselineUI-Markdown",r),"data-block-id":o,"data-block-class":a,style:e,ref:i,dangerouslySetInnerHTML:{__html:s}})});g1.displayName="Markdown";function z1(r){let{formatMessage:e,locale:t}=A(),[o,a]=ut__default.default.useState(!1),[n,i]=ut__default.default.useState(0),[s,l]=ut__default.default.useState(0),[p,c]=ut__default.default.useState(!1);ut.useEffect(()=>{if(!r.current)return;let u=r.current,b=()=>{a(!1),i(0);},y=()=>{p||i(u.currentTime*100/u.duration);},f=()=>{l(u.duration);};return u.addEventListener("ended",b),u.addEventListener("timeupdate",y),u.addEventListener("loadedmetadata",f),()=>{u.removeEventListener("ended",b),u.removeEventListener("timeupdate",y),u.removeEventListener("loadedmetadata",f);}},[p,r]);let d=ut.useCallback(()=>{(async()=>r.current&&(r.current.paused?(await r.current.play(),a(!0),liveAnnouncer.announce(e(h1.playing),"polite")):(r.current.pause(),a(!1),liveAnnouncer.announce(e(h1.paused),"polite"))))();},[e,r]),m=ut.useCallback(u=>{r.current&&(r.current.currentTime=u*r.current.duration/100,liveAnnouncer.announce(zR(r.current.currentTime,t.locale),"assertive"));},[t.locale,r]);return {isPlaying:o,progress:n,duration:s,togglePlay:d,seek:m,setProgress:i,formattedCurrentTime:r.current?.currentTime?_1(r.current?.currentTime):"00:00",formattedDuration:s?_1(s):"00:00",setIsSliderDragging:c}}var h1=K({playing:{id:"playing",defaultMessage:"Playing"},paused:{id:"paused",defaultMessage:"Paused"}});function zR(r,e){let t=Math.floor(r/3600),o=Math.floor(r%3600/60),a=r%60,n={...t&&{hours:t},...o&&{minutes:o},seconds:Math.floor(a)};return new Intl.DurationFormat(e,{style:"long"}).format(n)}function _1(r){let e=Math.floor(r%3600/60),t=Math.floor(r%60);return [e,t].map(o=>o.toString().padStart(2,"0")).join(":")}var C1="_1yep5z6im _1yep5z6in _1yep5z6io _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6jd _1yep5z6je _1yep5z6jf _1yep5z69o _1yep5z69p _1yep5z69q",x1="rta2n91 _1yep5z6im _1yep5z6in _1yep5z6io _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6jd _1yep5z6je _1yep5z6jf _1yep5z69o _1yep5z69p _1yep5z69q _1yep5z6zv _1yep5z6vf _1yep5z6vg _1yep5z6vh _1yep5z617e _1yep5z610s",P1="rta2n90";var S1=ut__default.default.forwardRef(({className:r,style:e,size:t="lg",sources:o,"data-block-id":a,"data-block-class":n,...i},s)=>{let l=ut__default.default.useRef(null),{isPlaying:p,progress:c,duration:d,togglePlay:m,seek:u,formattedDuration:b,formattedCurrentTime:y,setProgress:f,setIsSliderDragging:g}=z1(l),{formatMessage:_}=A(),v=utils.filterTruthyValues({"data-block-id":a,"data-block-class":n,"data-state":p?"playing":"paused","data-loaded":d>0});return jsxRuntime.jsxs("div",{...v,...i,className:utils.classNames(C1,"BaselineUI-AudioPlayer",r),role:"group",style:e,ref:s,children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("audio",{ref:l,children:o.map(({url:h,type:x})=>jsxRuntime.jsx("source",{src:h,type:x},h))})}),jsxRuntime.jsx(Ce,{icon:p?_24.PauseIcon:_24.PlayIcon,variant:"toolbar",isSelected:p,size:t,"aria-label":_(p?Ds.pause:Ds.play),style:{borderRadius:"50%"},onPress:m}),jsxRuntime.jsxs("div",{className:x1,children:[jsxRuntime.jsx("span",{"aria-hidden":!0,children:y}),jsxRuntime.jsx(Vt,{"aria-label":_(Ds.audioTimeline),value:c,minValue:0,maxValue:100,className:P1,onChange:h=>{f(h),g(!0);},onChangeEnd:h=>{u(h),g(!1);}}),jsxRuntime.jsx("span",{"aria-hidden":!0,children:b})]})]})});S1.displayName="AudioPlayer";var Ds=K({play:{id:"play",defaultMessage:"Play"},pause:{id:"pause",defaultMessage:"Pause"},audioTimeline:{id:"audioTimeline",defaultMessage:"Audio timeline"}});var I1="_1w920rnd _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6g1 _1yep5z6ia _1yep5z6ib _1yep5z6ic",R1="_1w920rn1 _1yep5z6ip _1yep5z6iq _1yep5z6ir _1yep5z6iy _1yep5z6iz _1yep5z6j0 _1yep5z6jd _1yep5z6je _1yep5z6jf _1yep5z69i _1yep5z69j _1yep5z69k",T1="_1w920rn0 _1yep5z6im _1yep5z6in _1yep5z6io _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6l8",cn=C({defaultClassName:"_1w920rn2 _1yep5z6d6 _1yep5z6im _1yep5z6in _1yep5z6io _1yep5z6jd _1yep5z6je _1yep5z6jf _1yep5z6i7 _1yep5z6i8 _1yep5z6i9",variantClassNames:{isFocusVisible:{true:"_1yep5z6ln _1yep5z6ll _1yep5z6hu"},isSelected:{true:"_1yep5z6ln _1yep5z6ll _1yep5z6hu"},isLoading:{true:"_1yep5z6164 _1yep5z6165 _1yep5z6166"}},defaultVariants:{},compoundVariants:[[{isFocusVisible:!0,isSelected:!0},"_1w920rn6 _1yep5z6ln _1yep5z6ll _1yep5z6hu"]]}),N1="_1w920rnb _1yep5z6li",E1=C({defaultClassName:"_1w920rn7 _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6g5 _1yep5z6eu _1yep5z6dy",variantClassNames:{isFocusVisible:{true:"_1w920rn8 _1yep5z6ln _1yep5z6ll _1yep5z6hu"},isSelected:{true:"_1w920rn9"}},defaultVariants:{},compoundVariants:[[{isFocusVisible:!0,isSelected:!0},"_1w920rna _1yep5z61tg _1yep5z61tf _1yep5z61pp"]]}),L1="_1w920rnc";var dn=({items:r,ulRef:e,containerClassName:t,previewClassName:o,itemDataAttribute:a,showCount:n=!1})=>{let{length:i}=r,s=ut__default.default.useRef(null);return ut.useLayoutEffect(()=>{if(!s.current)return;let l=s.current.closest(t)?.querySelector(`[${a}='${r?.at(-1)?.key}']`)?.cloneNode(!0);utils.invariant(l,"Node is not defined."),s.current?.prepend(l);},[r,e,t,a]),jsxRuntime.jsx("div",{className:o,ref:s,children:n&&i>1?jsxRuntime.jsx(E,{backgroundColor:"background.secondary.medium",borderRadius:"full",typography:"label.md.medium",color:"text.primary",position:"absolute",paddingX:"md",className:L1,children:i}):null})};function D1(r,e){return r.find(t=>t.id===e)}function A1(r,e,t){let o=[...r],a=o.filter(s=>t.has(s.id)),n=o.filter(s=>!t.has(s.id)),i=n.findIndex(s=>s.id===e);return n.flatMap((s,l)=>l===i?[...a,s]:s)}function B1(r,e,t){let o=[...r],a=o.filter(s=>t.has(s.id)),n=o.filter(s=>!t.has(s.id)),i=n.findIndex(s=>s.id===e);return n.flatMap((s,l)=>l===i?[s,...a]:s)}function As(r){return r.map(e=>({id:e.id,label:e.label,data:{src:e.src,alt:e.alt}}))}function un(r){return r.map(e=>({id:e.id,label:e.label,src:e.data?.src,alt:e.data?.alt}))}var AR=({fit:r,item:e,deleteElement:t})=>{let{formatMessage:o}=A(),a=react.useReducedMotion(),{imgProps:n,isLoading:i}=Ot({src:e.data?.src,alt:e.data?.alt??""});return i?jsxRuntime.jsx(tr,{"aria-label":o(Co.loading)}):jsxRuntime.jsx(react.motion.div,{role:"img",initial:{opacity:a?1:0},animate:{opacity:1},exit:{opacity:a?1:0},"aria-label":n.alt,style:{backgroundImage:`url(${n.src})`,backgroundSize:r},className:N1,children:t})},j1=({item:r,options:{optionProps:e,isFocusVisible:t,isSelected:o,isFocused:a,isDisabled:n,isPressed:i},liRef:s,fit:l="contain",onDelete:p,className:c,imageClassName:d,imageLabelClassName:m,imageDimensions:u,style:b,layoutTransition:y=!0,renderImage:f=(g,{deleteElement:_})=>jsxRuntime.jsx(AR,{item:g,deleteElement:_,fit:l})})=>{let g=reactAria.useId(),{formatMessage:_}=A(),{value:v}=r;utils.invariant(v&&Ke(v),"Expected value to be a list option");let h=p?jsxRuntime.jsx("div",{className:I1,children:jsxRuntime.jsx(D,{"aria-label":_(Co.delete),size:"xs",icon:_12.XIcon,onPress:()=>{p(v.id);},UNSAFE_NON_INTERACTIVE:!0})}):null,x=un([v])[0],w=ut.useCallback(N=>{let S={},I=typeof N=="function"?N(x,{isSelected:o}):N;return I&&(S.width=typeof I.width=="string"?Os[I.width]:I.width,S.aspectRatio="height"in I?`${S.width} / ${I.height}`:I?.aspectRatio?.toString()),S},[x,o]),P=ut.useMemo(()=>({isFocusVisible:t,isSelected:o,isFocused:a,isDisabled:n,isPressed:i}),[t,o,a,n,i]),z=react.useReducedMotion(),k=typeof y=="boolean"?y:!z,T=typeof y=="object"?y:void 0,R=k?react.motion.li:"li";return jsxRuntime.jsxs(R,{...reactAria.mergeProps(e,k?{layout:!0,transition:T}:void 0),ref:s,className:utils.classNames(R1,Ge(c,x,P)),"aria-labelledby":g,style:Eo(b,x,P),children:[jsxRuntime.jsx(E,{display:"flex",flexDirection:"column",flex:1,justifyContent:"center",alignItems:"center",children:jsxRuntime.jsx("div",{className:utils.classNames(cn({isFocusVisible:t,isSelected:o,isLoading:!0}),Ge(d,x,P)),style:w(u),"data-image-key":v.id,children:f(v,{deleteElement:h??void 0,onDelete:p})})}),jsxRuntime.jsx("span",{id:g,className:utils.classNames(E1({isFocusVisible:t,isSelected:o}),Ge(m,x,P)),children:v.label})]})};var $R={width:0,display:"block"},$1={src:"src",alt:"alt"},Os={sm:102,md:170},U1=ut__default.default.forwardRef(({className:r,style:e,fit:t="cover",onReorder:o,"data-block-id":a,"data-block-class":n,onDelete:i,imageWidth:s=Os.sm,aspectRatio:l=3/4,items:p,defaultItems:c=[],onKeyDown:d,imageContainerClassName:m,imageClassName:u,labelClassName:b,onListChange:y,renderImage:f,layoutTransition:g,imageDimensions:_={width:s,aspectRatio:l},imageContainerStyle:v,...h},x)=>{let w=ut__default.default.useRef(null),[P,z]=ut.useState([]),{formatMessage:k}=A();ut.useEffect(()=>{(l||s)&&console.warn("ImageGallery: aspectRatio and imageWidth are deprecated. Use imageDimensions instead.");},[s,l]);let[T,R]=utils$1.useControlledState(h.selectedKeys,h.defaultSelectedKeys??[],h.onSelectionChange),[N,S]=utils$1.useControlledState(p?As(p):void 0,As(c),y?B=>{y?.(un(B));}:void 0),I=ut.useCallback(B=>{let $=B.target.key,U=B.keys;if(B.target.dropPosition==="before"){let O=A1(N,$,U);S(O);}else if(B.target.dropPosition==="after"){let O=B1(N,$,U);S(O);}o?.(B);},[N,o,S]),M=ut.useCallback(()=>{i&&P.length&&(S(N.filter(B=>!P.includes(B.id))),i(new Set(P)),z([]));},[P,N,i,S]),F=ut.useCallback((B,$,U)=>{let{value:O}=B;utils.invariant(Ke(O));let te={id:O.id,label:O.label,src:O.data?.src,alt:O.data?.alt};return jsxRuntime.jsx(j1,{item:B,options:$,liRef:U,fit:t,onDelete:i?j=>{z([j]);}:void 0,renderImage:f,className:Ge(m,te,$),imageClassName:u,imageLabelClassName:b,imageDimensions:_,style:v,layoutTransition:g})},[t,i,f,m,u,b,_,v,g]),{keyboardProps:H}=reactAria.useKeyboard({onKeyDown(B){if(d?.(B),B.key==="Backspace"||B.key==="Delete"){if(!i)return;if([...T].length)z([...T]);else {let U=B.target.dataset.key;z([U]);}}}});return jsxRuntime.jsxs("div",{...H,ref:x,style:e,className:utils.classNames("BaselineUI-ImageGallery",r),"data-block-id":a,"data-block-class":n,children:[jsxRuntime.jsx(de,{...h,selectedKeys:T,items:N,onReorder:I,layout:"grid",orientation:"vertical",className:T1,ref:w,dropIndicatorStyle:$R,renderOption:F,renderDragPreview:B=>jsxRuntime.jsx(dn,{items:B,ulRef:w,containerClassName:".BaselineUI-ImageGallery",previewClassName:cn(),itemDataAttribute:"data-image-key",showCount:!0}),onSelectionChange:R,getItems:B=>[...B].map($=>{let U=D1(N,$);return {[$1.src]:U?.src||"",[$1.alt]:U?.alt||"",key:$}})}),jsxRuntime.jsx(Ne,{isOpen:!![...P].length,onOpenChange:B=>{B||z([]);},children:jsxRuntime.jsx(Fe,{isDismissable:!0,children:jsxRuntime.jsx(ln,{showCloseButton:!1,title:"Are you sure you want to delete this item?",primaryActionLabel:k(Co.delete),cancelLabel:k(Co.cancel),onCancel:()=>{z([]);},onPrimaryAction:M,autoFocusButton:"cancel"})})})]})});U1.displayName="ImageGallery";var Co=K({delete:{id:"delete",defaultMessage:"Delete"},cancel:{id:"cancel",defaultMessage:"Cancel"},loading:{id:"loading",defaultMessage:"Loading"}});var q1="_1sexph00",K1="_1sexph01 _1yep5z617x _1yep5z617y _1yep5z617z _1yep5z61a9 _1yep5z61aa _1yep5z61ab _1yep5z61bf _1yep5z61bg _1yep5z61bh _1yep5z6193 _1yep5z6194 _1yep5z6195 _1yep5z61ry _1yep5z61rz _1yep5z61s0";var X1=ut__default.default.forwardRef(({className:r,style:e,items:t,"data-block-id":o,"data-block-class":a,hideLabel:n,size:i="md",isDisabled:s,showSelectedIcon:l=!0,excludeFromTabOrder:p,onPress:c,isSelected:d,defaultSelected:m,onButtonSelectionChange:u,moreAriaLabel:b,optionStyle:y,optionClassName:f,triggerClassName:g,triggerStyle:_,tooltipProps:v,...h},x)=>{let{formatMessage:w}=A(),P=se(),z=reactStately.useSelectState({items:t,...h,defaultSelectedKey:h.defaultSelectedKey||t?.[0]?.id,children:P,validationState:h.validationState==="error"?"invalid":"valid"}),[k,T]=utils$1.useControlledState(d,!!m,O=>{u?.({isSelected:O,selectedKey:z.selectedKey});}),{hoverProps:R,isHovered:N}=reactAria.useHover({isDisabled:s}),S=ut.useMemo(()=>{let O=z.collection.getItem(z.selectedKey),te=O?.textValue||O?.["aria-label"],j=O?.value,Z=j?.icon,X={size:i,isSelected:k,onPress:Ie=>{T(!k),c?.(Ie);},isDisabled:s,excludeFromTabOrder:p,className:typeof f=="function"?f(j,{isButton:!0,isSelected:k}):f,style:typeof y=="function"?y(j,{isButton:!0,isSelected:k}):y};return n&&Z?jsxRuntime.jsx(ne,{variant:"inverse",size:"sm",includeArrow:!1,text:te,placement:"bottom start",offset:4,...typeof v=="function"?v("button"):v,children:jsxRuntime.jsx(Ce,{icon:Z,"aria-label":te,variant:"toolbar",...X})}):jsxRuntime.jsx(Ca,{iconStart:Z,label:te,variant:"toolbar",...X})},[p,n,k,s,c,f,y,T,i,z.collection,z.selectedKey,v]),I=h["aria-label"],M=ut.useCallback(({buttonProps:O,ref:te})=>{delete O["aria-labelledby"];let j=b||`${w(JR.more)} ${I}`;return jsxRuntime.jsx(ne,{variant:"inverse",size:"sm",includeArrow:!1,text:j,placement:"bottom start",offset:4,...v,children:jsxRuntime.jsx(interactions.PressResponder,{...O,children:jsxRuntime.jsx(D,{"aria-label":j,ref:te,icon:_8.CaretDownIcon,variant:"toolbar",size:i,className:({isFocusVisible:Z})=>utils.classNames(za({isSelected:k,isFocusVisible:Z}),K1,g),style:_,isDisabled:s,excludeFromTabOrder:p})})})},[I,p,w,k,s,b,i,v,g,_]),F=utils.filterTruthyValues({"data-block-id":o,"data-block-class":a,"data-hovered":N,"data-selected":k,"data-disabled":s,"data-expanded":z.isOpen}),H=ee(x),B=ut.useMemo(()=>({state:z,popoverAnchorRef:H}),[z,H]),$=ut.useCallback(O=>typeof f=="function"?f(O,{isButton:!1,isSelected:z.selectionManager.isSelected(O.id)}):f,[f,z.selectionManager]),U=ut.useCallback(O=>typeof y=="function"?y(O,{isButton:!1,isSelected:z.selectionManager.isSelected(O.id)}):y,[y,z.selectionManager]);return jsxRuntime.jsx(ka.Provider,{value:B,children:jsxRuntime.jsxs(E,{...R,role:"group",display:"inline-flex",flexDirection:"row",alignItems:"center",className:utils.classNames(q1,"BaselineUI-ButtonSelect",r),"aria-label":h["aria-label"],"aria-labelledby":h["aria-labelledby"],"aria-describedby":h["aria-describedby"],"aria-details":h["aria-details"],style:e,ref:H,...F,children:[S,jsxRuntime.jsx(nt,{isDisabled:s,showSelectedIcon:l,placement:"bottom start",items:t,...h,style:{width:20},optionClassName:$,optionStyle:U,variant:"ghost",renderTrigger:M})]})})});X1.displayName="ButtonSelect";var JR=K({more:{id:"more",defaultMessage:"More"}});var Y1=C({defaultClassName:"_18v88n10 _1yep5z6im _1yep5z6in _1yep5z6io _1yep5z6lh",variantClassNames:{labelPosition:{top:"_1yep5z614v _1yep5z614w _1yep5z614x",start:"_1yep5z614s _1yep5z614t _1yep5z614u _1yep5z616a _1yep5z616b _1yep5z616c _1yep5z6vf _1yep5z6vg _1yep5z6vh"}},defaultVariants:{},compoundVariants:[]}),Z1=C({defaultClassName:"_18v88n1p _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6eu _1yep5z6lh _1yep5z6ls _1yep5z6lk _1yep5z6dy",variantClassNames:{isDisabled:{true:"_18v88n1q _1yep5z610v"},labelPosition:{top:"_18v88n1r",start:"_18v88n1s"}},defaultVariants:{},compoundVariants:[]}),J1=C({defaultClassName:"_18v88n1t _1yep5z660 _1yep5z661 _1yep5z662 _1yep5z6ip _1yep5z6iq _1yep5z6ir _1yep5z6le",variantClassNames:{validationState:{valid:"_18v88n1u",error:"_1yep5z610b",warning:"_1yep5z610j"},isReadOnly:{true:"_1yep5z6112"}},defaultVariants:{},compoundVariants:[]}),Q1=C({defaultClassName:"_18v88n1d _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6im _1yep5z6in _1yep5z6io _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6lv _1yep5z6lt _1yep5z6h4 _1yep5z6jd _1yep5z6je _1yep5z6jf",variantClassNames:{validationState:{valid:"_18v88n1e",error:"_1yep5z612k",warning:"_18v88n1g"},isHovered:{true:"_18v88n1h"},isFocused:{true:"_1yep5z6wf _1yep5z6wg _1yep5z6wh _1yep5z6x3 _1yep5z6x4 _1yep5z6x5 _1yep5z6xr _1yep5z6xs _1yep5z6xt _1yep5z6yf _1yep5z6yg _1yep5z6yh _1yep5z617s _1yep5z617q _1yep5z612y _1yep5z617j _1yep5z617i _1yep5z613r _1yep5z617l"},isDisabled:{true:"_18v88n1j"},variant:{primary:"_18v88n1k",ghost:"_18v88n1l"},isReadOnly:{true:"_1yep5z613r"}},defaultVariants:{},compoundVariants:[[{variant:"ghost",isHovered:!0,isFocused:!1,validationState:"valid"},"_1yep5z61tp _1yep5z61tn _1yep5z61oy"],[{variant:"ghost",isFocused:!1,isHovered:!1,validationState:"valid"},"_18v88n1n"],[{isHovered:!0,validationState:"valid",isDisabled:!1,isReadOnly:!1,isFocused:!1,variant:"primary"},"_1yep5z61oz"],[{isHovered:!0,validationState:"warning",isDisabled:!1,isReadOnly:!1,isFocused:!1},"_1yep5z61oz"],[{isReadOnly:!0,variant:"primary",isFocused:!1},"_18v88n1o"]]}),eb=C({defaultClassName:"_18v88n13 _1yep5z6dy _1yep5z6ev",variantClassNames:{isDisabled:{true:"_1yep5z610v"}},defaultVariants:{},compoundVariants:[]}),tb=C({defaultClassName:"_18v88n19 _1yep5z6ip _1yep5z6iq _1yep5z6ir",variantClassNames:{labelPosition:{top:"_1yep5z6t3 _1yep5z6t4 _1yep5z6t5",start:"_1yep5z6n0 _1yep5z6n1 _1yep5z6n2 _1yep5z614v _1yep5z614w _1yep5z614x"},hasMessage:{true:"_18v88n1c"}},defaultVariants:{},compoundVariants:[[{labelPosition:"start",hasMessage:!1},"_1yep5z61s1 _1yep5z61s2 _1yep5z61s3"]]}),rb=C({defaultClassName:"_18v88n15 _1yep5z699 _1yep5z69a _1yep5z69b _1yep5z6lk",variantClassNames:{isFocusVisible:{true:"_1yep5z6121 _1yep5z6143 _1yep5z617h"},isHovered:{true:"_1yep5z6121 _1yep5z6143 _1yep5z617h"},isOpen:{true:"_1yep5z6143 _1yep5z617h"}},defaultVariants:{},compoundVariants:[[{isFocusVisible:!0},"_1yep5z61ny _1yep5z61q0 _1yep5z61te"],[{isHovered:!0},"_1yep5z61ny _1yep5z61q0 _1yep5z61te"],[{isOpen:!0},"_1yep5z61q0 _1yep5z61te"]]});function ob({allowsCustomValue:r,onValueChange:e,inputValue:t},o,a,n,i){let[s,l]=ut.useState(null),p=ut.useRef(!1);ut.useEffect(()=>{if(!e)return;let d=a.current,m=u=>{l(u.target);};return d?.addEventListener("focusin",m),()=>{d?.removeEventListener("focusin",m);}},[e,a,o.selectedKey]),granularHooks.useGranularEffect(()=>{o.selectedKey&&(e?.({value:o.selectedItem?.textValue,key:o.selectedKey}),p.current=!1);},[o.selectedKey],[e,o.selectedItem]),reactAria.useInteractOutside({ref:n,isDisabled:!e,onInteractOutside:d=>{!i.current?.contains(d.target)&&s===n.current&&r&&p.current&&(e?.({value:n.current?.value,key:null}),p.current=!1);}}),ut.useEffect(()=>{if(!e)return;let d=n.current,m=()=>{p.current=!0;};return d?.addEventListener("input",m),()=>{d?.removeEventListener("input",m);}},[n,e]),ut.useEffect(()=>{p.current=!1;},[t]);let{keyboardProps:c}=reactAria.useKeyboard({isDisabled:!e,onKeyDown:d=>{r&&d.key==="Enter"&&p.current?(e?.({value:n.current?.value,key:null}),p.current=!1):d.key==="Escape"&&o.close(),d.continuePropagation();}});return {inputProps:c}}var nb=ut__default.default.forwardRef(({className:r,style:e,inputStyle:t,inputClassName:o,"data-block-id":a,"data-block-class":n,label:i,items:s,showSelectedIcon:l=!1,onSelectionChange:p,onInputChange:c,isInvalid:d=!1,labelPosition:m="top",validationState:u="valid",variant:b="primary",toggleLabel:y,renderOption:f,showIcon:g=!0,filter:_,minValue:v,maxValue:h,inputType:x="text",onInputSubmit:w,onValueChange:P,...z},k)=>{let T=reactAria.useObjectRef(k),{contains:R}=reactAria.useFilter({sensitivity:"base"}),N=se(),S=reactStately.useComboBoxState({...z,defaultFilter:_||R,defaultItems:s,onSelectionChange:p,onInputChange:c,children:N,validationState:d?"invalid":"valid"}),I=ut__default.default.useRef(null),M=ut__default.default.useRef(null),F=ut__default.default.useRef(null),H=ut__default.default.useRef(null),B=ut__default.default.useRef(null),{inputProps:$}=ob({onValueChange:P,allowsCustomValue:z.allowsCustomValue,inputValue:z.inputValue},S,T,M,H),{buttonProps:U,inputProps:O,listBoxProps:te,labelProps:j,errorMessageProps:Z,descriptionProps:X,validationErrors:Ie}=reactAria.useComboBox({...z,inputRef:M,defaultItems:s,buttonRef:I,listBoxRef:F,popoverRef:H,validationState:u==="error"?"invalid":"valid"},S),Re=z.errorMessage||Ie.join(" "),he=Te({...z,errorMessage:Re,descriptionProps:X,errorMessageProps:Z,labelPosition:m});Re&&(u="error");let{hoverProps:Me,isHovered:Ue}=reactAria.useHover({isDisabled:z.isDisabled}),{isFocused:oe,focusProps:me,isFocusVisible:Rt}=reactAria.useFocusRing(),Tt=Jt({isReadOnly:z.isReadOnly,validationState:u}),Cr=utils.filterTruthyValues({"data-read-only":z.isReadOnly,"data-disabled":z.isDisabled,"data-validation-state":u,"data-focused":oe,"data-focus-visible":Rt}),{labelProps:Nt,fieldProps:Y}=reactAria.useLabel({label:i,"aria-label":z["aria-label"],"aria-labelledby":z["aria-labelledby"],"aria-describedby":z["aria-describedby"],"aria-details":z["aria-details"]}),{keyboardProps:q}=reactAria.useKeyboard({onKeyDown:W=>{z.allowsCustomValue&&W.key==="Enter"&&w?.(O.value?.toString()??"");}}),{focusProps:le}=reactAria.useFocus({onBlur:()=>{z.allowsCustomValue&&O.value&&w?.(O.value?.toString()??"");}});return jsxRuntime.jsx(mt.Provider,{value:S,children:jsxRuntime.jsxs("div",{className:utils.classNames(Y1({labelPosition:m}),r,"BaselineUI-ComboBox"),"data-block-id":a,"data-block-class":n,style:e,ref:T,children:[i||m==="start"&&he?jsxRuntime.jsxs("div",{className:tb({labelPosition:m,hasMessage:!!he}),children:[jsxRuntime.jsx("label",{...reactAria.mergeProps(j,Nt),className:eb({isDisabled:z.isDisabled}),children:i}),m==="start"&&he]}):null,jsxRuntime.jsxs("div",{...Me,className:Q1({validationState:u,isHovered:Ue,isFocused:oe,variant:b,isReadOnly:!!z.isReadOnly,isDisabled:!!z.isDisabled}),ref:B,children:[jsxRuntime.jsx("input",{...reactAria.mergeProps(O,$,me,Cr,Y,le,q,x==="number"?{type:"number",min:v,max:h,onKeyDown:W=>{(W.key==="ArrowUp"||W.key==="ArrowDown")&&W.preventDefault();}}:null),id:z.id,ref:M,className:utils.classNames(Z1({isDisabled:z.isDisabled,labelPosition:m}),"BaselineUI-ComboBox-Input",o),style:t}),Tt&&g?jsxRuntime.jsx(Tt,{className:J1({validationState:u,isReadOnly:z.isReadOnly}),size:16}):null,jsxRuntime.jsx(G,{...U,ref:I,variant:"popover",label:y,className:rb({isFocusVisible:!z.isDisabled&&!z.isReadOnly&&Rt,isHovered:!z.isDisabled&&!z.isReadOnly&&Ue,isOpen:S.isOpen})})]}),jsxRuntime.jsx(ze,{ref:H,triggerRef:B,state:S,crossOffset:-2,className:"BaselineUI-ComboBox-Popover",children:jsxRuntime.jsx(de,{...te,items:s,ref:F,renderOption:f,selectionMode:"single",showSelectedIcon:l,className:utils.classNames(tt,"BaselineUI-ComboBox-ListBox")})}),m==="top"&&he]})})});nb.displayName="ComboBox";var ib=C({defaultClassName:"byycd01 _1yep5z6d6 _1yep5z6im _1yep5z6in _1yep5z6io _1yep5z6jd _1yep5z6je _1yep5z6jf _1yep5z6i7 _1yep5z6i8 _1yep5z6i9",variantClassNames:{},defaultVariants:{},compoundVariants:[]});var qs=ut__default.default.forwardRef(({enableReorder:r,...e},t)=>r?jsxRuntime.jsx(sb,{ref:t,...e}):jsxRuntime.jsx(Ks,{ref:t,...e}));qs.displayName="GridListItem";var Ks=ut__default.default.forwardRef(({item:r,state:e,dropState:t,renderGridItem:o,dragHandleProps:a},n)=>{let i=ee(n),s=reactAria.useGridListItem({node:r},e,i),l=e.selectionManager.selectionMode!=="none"&&e.selectionManager.selectionBehavior==="toggle",{checkboxProps:p}=reactAria.useGridListSelectionCheckbox({key:r.key},e),c={...s,checkBoxProps:l?p:void 0,dragHandleProps:a};return jsxRuntime.jsxs("div",{"data-grid-list-item-key":r.key,children:[t?jsxRuntime.jsx(Lt,{target:{type:"item",key:r.key,dropPosition:"before"},dropState:t}):null,o?o(r,c,i):null,t&&e.collection.getKeyAfter(r.key)==null?jsxRuntime.jsx(Lt,{target:{type:"item",key:r.key,dropPosition:"after"},dropState:t}):null]},r.key)});Ks.displayName="BaseGridListItem";var sb=ut__default.default.forwardRef(({dragState:r,item:e,...t},o)=>{let a=reactAria.useDraggableItem({key:e.key,hasDragButton:!0},r);return jsxRuntime.jsx(Ks,{item:e,dragHandleProps:a,ref:o,...t})});sb.displayName="DraggableGridListItem";var wT=r=>{r.key==="Enter"||r.key==="Escape"||r.stopPropagation();},pb=ut__default.default.forwardRef(({className:r,style:e,isEditing:t=!1,"data-block-id":o,"data-block-class":a,gridListHandle:n,onReorder:i,enableReorder:s=!1,layout:l="stack",orientation:p="vertical",renderGridItem:c,...d},m)=>{let u=se(),b=reactStately.useListState({...d,children:u}),y=ut__default.default.useRef(null),f=ee(m),{gridProps:g}=reactAria.useGridList(d,b,f);Ao({handle:n,type:"gridlist"},b,f);let{collectionProps:_,dragState:v,dropState:h}=No({...d,onReorder:i,enableReorder:s,layout:l,orientation:p,preview:y,getItems:P=>[...P].map(z=>{let k=b.collection.getItem(z);return utils.invariant(k,"Expected item to be defined."),{key:k.key.toString()}})},b,f),x=t?wT:g.onKeyDownCapture,w={state:b,dragState:v,dropState:h,enableReorder:s,renderGridItem:c};return jsxRuntime.jsxs("ul",{...reactAria.mergeProps(g,_),className:utils.classNames("BaselineUI-GridList",r),"data-block-id":o,"data-block-class":a,style:e,ref:f,"aria-rowcount":b.collection.size,onKeyDownCapture:x,children:[[...b.collection].map(P=>jsxRuntime.jsx(qs,{item:P,...w},P.key)),s?jsxRuntime.jsx(reactAria.DragPreview,{ref:y,children:P=>jsxRuntime.jsx(dn,{items:P,ulRef:f,containerClassName:".BaselineUI-GridList",previewClassName:ib(),itemDataAttribute:"data-grid-list-item-key"})}):null]})});pb.displayName="GridList";var cb="_1yep5z6f5",db="_1dc3b8m0";var ub=ut__default.default.forwardRef(({className:r,selectionMode:e,style:t,"data-block-id":o,"data-block-class":a,tooltipProps:n,icon:i,renderActionItem:s,...l},p)=>{let c=ee(p),d=se(),m=reactStately.useListState({...l,selectionMode:e,suppressTextValueWarning:!0,children:d}),{actionGroupProps:u}=actiongroup.useActionGroup({...l,selectionMode:e,children:d},m,c),b=[...m.collection].map(y=>(utils.invariant(y.value),jsxRuntime.jsx(MT,{item:y,state:m,isDisabled:l.isDisabled,onAction:l.onAction,tooltipProps:n,renderActionItem:s},y.key)));return i?jsxRuntime.jsxs(E,{...u,display:"flex",flexDirection:"row",gap:"md",alignItems:"center",className:utils.classNames("BaselineUI-ActionGroup",r),"data-block-id":o,"data-block-class":a,style:t,ref:c,children:[jsxRuntime.jsx(i,{size:24,className:cb}),jsxRuntime.jsx(E,{display:"flex",flexDirection:"row",gap:"xs",flex:1,children:b})]}):jsxRuntime.jsx(E,{...u,display:"flex",flexDirection:"row",gap:"xs",className:utils.classNames("BaselineUI-ActionGroup",r),"data-block-id":o,"data-block-class":a,style:t,ref:c,children:b})});ub.displayName="ActionGroup";var MT=({item:r,state:e,tooltipProps:t,renderActionItem:o,onAction:a,isDisabled:n})=>{let{buttonProps:i}=actiongroup.useActionGroupItem({key:r.key},e),s=n||e.selectionManager.isDisabled(r.key),l=e.selectionManager.isSelected(r.key);utils.invariant(r.value);let{icon:p}=r.value;utils.invariant(p);let c=ut.useMemo(()=>(utils.invariant(r.value),typeof t=="function"?t(r.value):t),[t,r.value]);return jsxRuntime.jsx(interactions.PressResponder,{...reactAria.mergeProps(i,{onPress:()=>{a?.(r.key);}}),children:jsxRuntime.jsx(ne,{text:r.textValue,size:"sm",variant:"inverse",includeArrow:!1,offset:4,...c,children:o?.(r,{isSelected:l,isDisabled:s})||jsxRuntime.jsx(D,{variant:"tertiary",icon:p,"aria-label":r.textValue,size:"sm",isDisabled:s,className:utils.classNames({[db]:l},"BaselineUI-ActionGroup-Item")})})})};var mb="ujkypy0 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e",fb="_1yep5z61qp _1yep5z61qq _1yep5z61qr _1yep5z61h9 _1yep5z61ha _1yep5z61hb";var bb=ut__default.default.forwardRef(({className:r,style:e,items:t,optionsContainerClassName:o,label:a,icon:n,value:i,defaultValue:s,onChange:l,isDisabled:p,optionClassName:c,optionStyle:d,labelPosition:m="top","data-block-id":u,"data-block-class":b,shouldFocusWrap:y,tooltip:f=!0,...g},_)=>{let v=ut.useMemo(()=>t.map(x=>({id:x.color,label:x.label})),[t]),h=reactAria.useId();return ut.useEffect(()=>{!a&&!g["aria-label"]&&!g["aria-labelledby"]&&console.warn("ColorSwatchPicker: Please provide a label or aria-label for accessibility.");},[a,g]),jsxRuntime.jsxs(E,{...Cn(g),className:utils.classNames("BaselineUI-ColorSwatchPicker",r),"data-block-id":u,"data-block-class":b,display:"flex",flexDirection:m==="top"?"column":"row",alignItems:m==="top"?"flex-start":"center",justifyContent:"space-between",gap:"md",style:e,ref:_,children:[n||a?jsxRuntime.jsxs(E,{display:"flex",alignItems:"center",gap:"md",children:[n?jsxRuntime.jsx(n,{size:24,className:tokens.sprinkles({color:"icon.primary"})}):null,a?jsxRuntime.jsx(Q,{id:h,type:"label",size:"sm",children:a}):null]}):null,jsxRuntime.jsx(de,{className:utils.classNames(fb,o),selectionMode:"single",items:v,orientation:"horizontal",defaultSelectedKeys:s?[s]:void 0,disabledKeys:p?v.map(x=>x.id):void 0,isDisabled:p,selectedKeys:i?[i]:void 0,onSelectionChange:x=>{l?.([...x][0]);},optionClassName:c,optionStyle:d,renderOption:({key:x,textValue:w},{isSelected:P,isFocusVisible:z,isDisabled:k,optionProps:T},R)=>jsxRuntime.jsx("li",{...T,"data-disabled":k,className:utils.classNames(mb,T.className),ref:R,children:jsxRuntime.jsx(st,{isFocusVisible:z,color:x,isSelected:P,"aria-label":w,isInteractive:!0,isDisabled:k,tooltip:f})}),shouldFocusWrap:y,...g,"aria-labelledby":a?h:g["aria-labelledby"]})]})});bb.displayName="ColorSwatchPicker";var gb="_10dw1p96",vb="_10dw1p95",hb=C({defaultClassName:"_10dw1p90 _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6im _1yep5z6in _1yep5z6io _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z69f _1yep5z69g _1yep5z69h _1yep5z6jd _1yep5z6je _1yep5z6jf _1yep5z6lk _1yep5z6l7 _1yep5z6l4",variantClassNames:{isSelected:{true:"_1yep5z6120"},isHovered:{true:"_10dw1p92"},isRenaming:{true:"_10dw1p93"},isFocusVisible:{true:"_1yep5z613r _1yep5z617k _1yep5z617i"}},defaultVariants:{},compoundVariants:[[{isHovered:!0,isSelected:!1,isRenaming:!1},"_1yep5z61nw _1yep5z61pu _1yep5z61tg _1yep5z61tf"]]});function Cb(r,e){if(typeof r=="function"&&!r.prototype?.isReactComponent){let t=r(e);return ut.isValidElement(t)?r:t}return r}var xb=({context:r,depth:e,children:t,item:o,onPrimaryAction:a,onSecondaryAction:n,actionsPosition:i,primaryActionIcon:s,secondaryActionIcon:l,primaryActionAriaLabel:p,secondaryActionAriaLabel:c,onRename:d,onAction:m,renderItemTitle:u=b=>b.data.label})=>{let{formatMessage:b}=A(),{hoverProps:y,isHovered:f}=reactAria.useHover({}),g=ut.useRef(null),{onKeyDown:_,...v}=r.interactiveElementProps;delete v.onFocus,delete v.onClick;let h=focus.createFocusManager(g),x=ut.useCallback(S=>{if(S.key==="ArrowRight"&&(r.isExpanded||!o.children?.length))g.current?.setAttribute("tabindex","-1"),S.preventDefault(),S.stopPropagation(),h.focusNext();else switch(S.key){case"ArrowLeft":{h.focusPrevious()?(S.preventDefault(),S.stopPropagation()):(_?.(S),r.focusItem(!0));break}case"Enter":{r.toggleExpandedState();break}default:_?.(S);}},[r,h,_,o,g]),w=ut.useMemo(()=>{let S=Cb(s,o.index),I=Cb(l,o.index),M=typeof p=="function"?p(o.index):p,F=typeof c=="function"?c(o.index):c;return S||I?jsxRuntime.jsxs(E,{display:"flex",flexDirection:"row",children:[S?jsxRuntime.jsx(Ce,{icon:S,"aria-label":M,size:"sm",excludeFromTabOrder:!0,variant:"secondary",onPress:()=>{a?.(o.index);},tooltip:!0}):null,I?jsxRuntime.jsx(Ce,{icon:I,"aria-label":F,size:"sm",excludeFromTabOrder:!0,variant:"secondary",onPress:()=>{n?.(o.index);},tooltip:!0}):null]}):null},[s,o.index,l,p,c,a,n]),P=ut.useCallback(S=>{S.key==="Enter"?(d?.({key:o.index,value:S.target.value}),r.stopRenamingItem()):S.key==="Escape"?(r.stopRenamingItem(),g.current?.setAttribute("tabindex","0"),g.current?.focus()):S.key!=="ArrowRight"&&S.key!=="ArrowLeft"&&S.key!=="ArrowUp"&&S.key!=="ArrowDown"&&!S.metaKey&&S.continuePropagation();},[o.index,r,d,g]),z=o.data.icon,k=!!d,{pressProps:T}=reactAria.usePress({onPress:()=>{m?.(o.index);}}),{isFocusVisible:R,focusProps:N}=focus.useFocusRing();return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{...reactAria.mergeProps({onKeyDown:x,onFocus:()=>{r.focusItem(!1);}},T,N,y,r.itemContainerWithoutChildrenProps,v),className:utils.classNames(vb,hb({isHovered:f,isSelected:r.isSelected,isFocusVisible:R,isRenaming:r.isRenaming}),"BaselineUI-TreeView-Row"),role:"row","data-key":o.index,"data-expanded":o.isFolder?r.isExpanded:void 0,"aria-expanded":o.isFolder?r.isExpanded:void 0,"data-selected":r.isSelected,"aria-selected":r.isSelected,"data-depth":e,"aria-level":e+1,"aria-posinset":o.data.posInset,"aria-setsize":o.data.setSize,"aria-label":o.data.label,style:{justifyContent:i==="end"?"space-between":void 0},ref:g,children:jsxRuntime.jsxs(E,{role:"gridcell",style:{display:"contents"},"aria-colindex":1,children:[i==="start"?w:null,jsxRuntime.jsxs(E,{display:"flex",flexDirection:"row",alignItems:"center",children:[jsxRuntime.jsxs(E,{display:"flex",padding:"sm",flexDirection:"row",alignItems:"center",gap:"md",style:{marginInlineStart:`calc(${e*2} * ${tokens.themeVars.spacing.lg})`},children:[jsxRuntime.jsx(D,{icon:_8.ChevronRightIcon,size:"xxs",variant:"secondary",onPress:()=>{r.toggleExpandedState();},"aria-label":b(r.isExpanded?Zs.collapse:Zs.expand),style:{visibility:o.children?.length?"visible":"hidden"},className:utils.classNames(gb,"BaselineUI-TreeView-ExpansionToggle"),UNSAFE_NON_INTERACTIVE:!0}),z?jsxRuntime.jsx(z,{size:16,style:{color:tokens.themeVars.color.icon.interactive.disabled}}):null]}),jsxRuntime.jsxs(E,{paddingLeft:"sm",paddingY:r.isRenaming?"none":"md",display:"flex",flexDirection:"column",gap:"xs",onDoubleClick:S=>{k&&(S.stopPropagation(),S.preventDefault(),r.startRenamingItem());},children:[r.isRenaming?jsxRuntime.jsx("div",{onClick:S=>{S.stopPropagation();},children:jsxRuntime.jsx(rt,{defaultValue:o.data.label,autoFocus:!0,onBlur:S=>{d?.({key:o.index,value:S.target.value}),r.stopRenamingItem();},"aria-label":b(Zs.rename),onKeyDown:P,className:"BaselineUI-TreeView-RenameInput"})}):jsxRuntime.jsx(Q,{type:"label",size:"sm",className:utils.classNames(tokens.sprinkles.compoundVariants({color:"text.primary"}),"BaselineUI-TreeView-Title"),children:u(o)}),o.data.description?jsxRuntime.jsx(Q,{type:"helper",size:"sm",className:"BaselineUI-TreeView-Description",children:o.data.description}):null]})]}),i==="end"?w:null]})}),t]})},Zs=K({expand:{id:"expand",defaultMessage:"Expand"},collapse:{id:"collapse",defaultMessage:"Collapse"},rename:{id:"rename",defaultMessage:"Rename"}});function nN(r,{posInset:e,setSize:t}){return {index:r.id,children:r.children?r.children.map(o=>o.id):[],data:{label:r.label,description:r.description,icon:r.icon,...r.data,posInset:e,setSize:t},isFolder:!!r.children?.length}}function iN(r,e){let t={};function o(a,n,i){if(t[a.id]=e(a,{posInset:n,setSize:i}),a.children)for(let s=0;s<a.children.length;s++)o(a.children[s],s+1,a.children.length);}return o(r,0,0),t}var Sb=ut__default.default.forwardRef(({className:r,style:e,"data-block-id":t,"data-block-class":o,items:a,rootId:n=a.id,onPrimaryAction:i,onSecondaryAction:s,primaryActionIcon:l,secondaryActionIcon:p,primaryActionAriaLabel:c,secondaryActionAriaLabel:d,actionsPosition:m="start",onRename:u,onAction:b,renderItemTitle:y,...f},g)=>{let _=se(),v=ut.useRef(null),h=reactStately.useTreeState({...f,selectionMode:"multiple",items:a.children,children:_}),x=ut.useMemo(()=>Object.fromEntries(Object.entries(iN(a,nN)).map(([R,N])=>[R,{...N,canRename:!!u}])),[a,u]),w=reactAria.useId(),[P,z]=ut__default.default.useState(a.children?.[0]?.id??""),k=ut.useRef(P),T=ut.useMemo(()=>({[`tree-${w}`]:{focusedItem:P,expandedItems:[...h.expandedKeys],selectedItems:[...h.selectionManager.selectedKeys]}}),[P,h.expandedKeys,h.selectionManager.selectedKeys,w]);return ut.useEffect(()=>{if(!v.current)return;let R=v.current.getRootNode(),N=R instanceof ShadowRoot,S=v.current?.contains(R?.activeElement??null);N&&S&&R?.querySelector(`[data-rct-item-id="${P}"]`)?.focus();},[P]),jsxRuntime.jsx(reactComplexTree.ControlledTreeEnvironment,{items:x,getItemTitle:R=>R.data?.label,viewState:T,onExpandItem:R=>{h.setExpandedKeys(new Set([...h.expandedKeys,R.index])),f.onExpand?.(R.index.toString());},onFocusItem:R=>{z(R.index),R.index&&(k.current=R.index);},onCollapseItem:R=>{h.setExpandedKeys(new Set([...h.expandedKeys].filter(N=>N!==R.index))),f.onCollapse?.(R.index.toString());},onSelectItems:R=>{h.selectionManager.setSelectedKeys(new Set(R));},renderItem:R=>jsxRuntime.jsx(xb,{...R,onPrimaryAction:i,onSecondaryAction:s,actionsPosition:m,primaryActionIcon:l,secondaryActionIcon:p,primaryActionAriaLabel:c,secondaryActionAriaLabel:d,onRename:u,onAction:b,renderItemTitle:y}),renderLiveDescriptorContainer:({children:R})=>jsxRuntime.jsx(xe,{children:jsxRuntime.jsx(reactAria.VisuallyHidden,{children:R})}),renderTreeContainer:({containerProps:R,children:N})=>jsxRuntime.jsx("div",{...Et(R,{onBlur:S=>{S.currentTarget.contains(S.relatedTarget)||S.currentTarget.querySelector(`[data-key="${k.current}"]`)?.setAttribute("tabindex","0");}}),"data-block-id":t,"data-block-class":o,style:{...e,...R.style},className:utils.classNames(r,"BaselineUI-TreeView"),ref:L(g,R.ref,v),role:"treegrid",children:N}),renderItemsContainer:({children:R})=>R,children:jsxRuntime.jsx(reactComplexTree.Tree,{treeId:`tree-${w}`,rootItem:n,treeLabel:f["aria-label"],treeLabelledBy:f["aria-labelledby"]})})});Sb.displayName="TreeView";var mN=ut.forwardRef(({className:r,isCollapsible:e=!1,...t},o)=>{let a=ut.useRef(null),n=reactAria.useId();return ut.useImperativeHandle(o,()=>({resize:a.current?.resize})),jsxRuntime.jsx(reactResizablePanels.Panel,{className:utils.classNames("BaselineUI-Panel",r),collapsible:e,ref:a,id:n,...t})});mN.displayName="Panel";var _N=ut.forwardRef(({className:r,...e},t)=>{let o=ut.useRef(null);return ut.useImperativeHandle(t,()=>({setLayout:o.current?.setLayout})),jsxRuntime.jsx(reactResizablePanels.PanelGroup,{className:utils.classNames("BaselineUI-PanelGroup",r),ref:o,...e})});_N.displayName="PanelGroup";var Ib="_6abhjk0";var PN=({className:r,isDisabled:e=!1,...t})=>jsxRuntime.jsx(reactResizablePanels.PanelResizeHandle,{disabled:e,className:utils.classNames(Ib,"BaselineUI-PanelResizeHandle",r),...t});PN.displayName="PanelResizeHandle";var Rb=C({defaultClassName:"_1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6d7 _1yep5z6lt _1yep5z6lv",variantClassNames:{variant:{info:"_1yep5z612v",warning:"_1yep5z612r",error:"_1yep5z612j",success:"_1yep5z612n"}},defaultVariants:{},compoundVariants:[]}),Tb="_1udvgpn5 _1yep5z6id _1yep5z6ie _1yep5z6if _1yep5z6im _1yep5z6in _1yep5z6io _1yep5z6iy _1yep5z6iz _1yep5z6j0 _1yep5z69l _1yep5z69m _1yep5z69n";var TN=()=>{};function NN({state:r,...e}){let t=ut__default.default.useRef(null),{toastProps:o,contentProps:a,titleProps:n,descriptionProps:i,closeButtonProps:s}=toast$1.useToast(e,r,t),l=ut.useMemo(()=>({root:o,title:n,content:a,description:i,close:s}),[o,n,a,i,s]),{canClose:p=!0,...c}=e.toast.content;return jsxRuntime.jsx(Ta,{elementProps:l,...c,className:utils.classNames(Rb({variant:c.variant||"info"}),c.className),onClose:p?TN:void 0})}var Eb=ut__default.default.forwardRef(({state:r,style:e,className:t,...o},a)=>{let n=ee(a),{regionProps:i}=toast$1.useToastRegion(o,r,n),s={zIndex:1,...e,...i.style};return jsxRuntime.jsx("div",{...i,ref:n,className:utils.classNames(Tb,t),style:s,children:r.visibleToasts.map(l=>jsxRuntime.jsx(NN,{toast:l,state:r},l.key))})});Eb.displayName="ToastRegion";var Lb=ut__default.default.forwardRef(({toastQueue:r,portalContainer:e,...t},o)=>{let a=toast.useToastQueue(r),n=ye(e);return a.visibleToasts.length>0?jsxRuntime.jsx(xe,{portalContainer:n,ref:o,children:jsxRuntime.jsx(Eb,{state:a,...t})}):null});Lb.displayName="GlobalToastRegion";
43
- Object.defineProperty(exports,"useCollator",{enumerable:true,get:function(){return reactAria.useCollator}});Object.defineProperty(exports,"useDateFormatter",{enumerable:true,get:function(){return reactAria.useDateFormatter}});Object.defineProperty(exports,"useNumberFormatter",{enumerable:true,get:function(){return reactAria.useNumberFormatter}});Object.defineProperty(exports,"MotionGlobalConfig",{enumerable:true,get:function(){return react.MotionGlobalConfig}});Object.defineProperty(exports,"ToastQueue",{enumerable:true,get:function(){return toast.ToastQueue}});exports.Accordion=Mu;exports.AccordionItem=Hu;exports.ActionButton=G;exports.ActionGroup=ub;exports.ActionGroupItem=MT;exports.ActionIconButton=D;exports.AlertDialog=ln;exports.AudioPlayer=S1;exports.Avatar=nr;exports.Box=E;exports.ButtonSelect=X1;exports.Checkbox=ru;exports.ColorInput=lr;exports.ColorSwatch=st;exports.ColorSwatchPicker=bb;exports.ComboBox=nb;exports.DateFormat=mu;exports.Dialog=ge;exports.DialogTitle=Ac;exports.DomNodeRenderer=Gl;exports.Drawer=ia;exports.Editor=i1;exports.FileUpload=wd;exports.Focusable=aa;exports.FrameProvider=Sh;exports.FreehandCanvas=_f;exports.GlobalToastRegion=Lb;exports.GridList=pb;exports.Group=Yf;exports.I18nProvider=bp;exports.IconColorInput=uf;exports.IconColorInputButton=Va;exports.IconSelect=Xu;exports.IconSlider=Uc;exports.ImageDropZone=Mf;exports.ImageGallery=U1;exports.InlineAlert=Ta;exports.Link=bd;exports.ListBox=de;exports.Markdown=g1;exports.Menu=ga;exports.MessageFormat=Xf;exports.Modal=Ne;exports.ModalClose=G0;exports.ModalContent=Fe;exports.ModalTrigger=Na;exports.NumberFormat=Qt;exports.NumberInput=Oe;exports.Pagination=uu;exports.Panel=mN;exports.PanelGroup=_N;exports.PanelResizeHandle=PN;exports.Popover=Ae;exports.PopoverContent=Ee;exports.PopoverTrigger=Be;exports.Portal=xe;exports.PortalContainerProvider=Go;exports.Preview=Ff;exports.ProgressBar=Md;exports.ProgressSpinner=tr;exports.RadioGroup=Wf;exports.Reaction=Vd;exports.ScrollControlButton=d1;exports.SearchInput=nd;exports.Select=nt;exports.Separator=V;exports.Slider=Vt;exports.Switch=ed;exports.TabItem=cm;exports.Tabs=pm;exports.TagGroup=xu;exports.Text=Q;exports.TextInput=rt;exports.ThemeProvider=oa;exports.ToggleButton=Ca;exports.ToggleIconButton=Ce;exports.Toolbar=Xa;exports.Tooltip=ne;exports.Transform=Tf;exports.TreeView=Sb;exports.defineMessages=K;exports.isInsideOverlayContent=j2;exports.isRect=Hl;exports.useDevice=Ze;exports.useI18n=A;exports.useImage=Ot;exports.useIntersectionObserver=cp;exports.useIsFirstRender=Yo;exports.useLocalStorage=zp;exports.useMutationObserver=$D;exports.usePortalContainer=ye;exports.useResizeObserver=dp;exports.useTextSelection=YD;exports.useUndoRedo=mp;exports.useUserPreferences=jn;
36
+ `])),r,e)),u6=r=>{if(r==="@media ")throw Sc(r,"Query is empty");try{xc(r);}catch(e){throw Sc(r,e.message)}},m6=["vars"],f6=["content"],Rc="__DECLARATION",y6={animationIterationCount:!0,borderImage:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,initialLetter:!0,lineClamp:!0,lineHeight:!0,maxLines:!0,opacity:!0,order:!0,orphans:!0,scale:!0,tabSize:!0,WebkitLineClamp:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,maskBorder:!0,maskBorderOutset:!0,maskBorderSlice:!0,maskBorderWidth:!0,shapeImageThreshold:!0,stopOpacity:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function b6(r){return r.replace(/([A-Z])/g,"-$1").replace(/^ms-/,"-ms-").toLowerCase()}function g6(r,e,t,o){var a=r.slice(0,e),n=r.slice(t);return "".concat(a).concat(o).concat(n)}var v6=" ",Wt=[...c6,"@layer","@media","@supports","@container","selectors"],li=class{constructor(e,t){this.rules=[],this.conditionalRulesets=[new ga],this.fontFaceRules=[],this.keyframesRules=[],this.propertyRules=[],this.localClassNamesMap=new Map(e.map(o=>[o,o])),this.localClassNamesSearch=new cc(e),this.layers=new Map,this.composedClassLists=t.map(o=>{var{identifier:a,classList:n}=o;return {identifier:a,regex:RegExp("(".concat(n,")"),"g")}}).reverse();}processCssObj(e){if(e.type==="fontFace"){this.fontFaceRules.push(e.rule);return}if(e.type==="property"){this.propertyRules.push(e);return}if(e.type==="keyframes"){e.rule=Object.fromEntries(Object.entries(e.rule).map(n=>{var[i,s]=n;return [i,this.transformVars(this.transformProperties(s))]})),this.keyframesRules.push(e);return}if(this.currConditionalRuleset=new ga,e.type==="layer"){var t="@layer ".concat(e.name);this.addLayer([t]);}else {var o=Gt(e.rule,Wt);this.addRule({selector:e.selector,rule:o}),this.transformLayer(e,e.rule["@layer"]),this.transformMedia(e,e.rule["@media"]),this.transformSupports(e,e.rule["@supports"]),this.transformContainer(e,e.rule["@container"]),this.transformSimplePseudos(e,e.rule),this.transformSelectors(e,e.rule);}var a=this.conditionalRulesets[this.conditionalRulesets.length-1];a.mergeIfCompatible(this.currConditionalRuleset)||this.conditionalRulesets.push(this.currConditionalRuleset);}addConditionalRule(e,t){var o=this.transformVars(this.transformProperties(e.rule)),a=this.transformSelector(e.selector);if(!this.currConditionalRuleset)throw new Error("Couldn't add conditional rule");var n=t[t.length-1],i=t.slice(0,t.length-1);this.currConditionalRuleset.addRule({selector:a,rule:o},n,i);}addRule(e){var t=this.transformVars(this.transformProperties(e.rule)),o=this.transformSelector(e.selector);this.rules.push({selector:o,rule:t});}addLayer(e){var t=e.join(" - ");this.layers.set(t,e);}transformProperties(e){return this.transformContent(this.pixelifyProperties(e))}pixelifyProperties(e){return Fr(e,(t,o)=>{typeof t=="number"&&t!==0&&!y6[o]&&(e[o]="".concat(t,"px"));}),e}transformVars(e){var{vars:t}=e,o=si(e,m6);return t?Xt(Xt({},s6(t,(a,n)=>lc(n))),o):o}transformContent(e){var{content:t}=e,o=si(e,f6);if(typeof t>"u")return o;var a=Array.isArray(t)?t:[t];return Xt({content:a.map(n=>n&&(n.includes('"')||n.includes("'")||/^([A-Za-z\-]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)(\s|$)/.test(n))?n:'"'.concat(n,'"'))},o)}transformClassname(e){return ".".concat((0, pi.default)(e,{isIdentifier:!0}))}transformSelector(e){var t=e,o=function(y){t=t.replace(n,()=>(ti(y),y));};for(var{identifier:a,regex:n}of this.composedClassLists)o(a);if(this.localClassNamesMap.has(t))return this.transformClassname(t);for(var i=this.localClassNamesSearch.search(t),s=t.length,l=i.length-1;l>=0;l--){var[p,[c]]=i[l],d=p-c.length+1,m=s<=p;m||(s=d,t[d-1]!=="."&&(t=g6(t,d,p+1,this.transformClassname(c))));}return t}transformSelectors(e,t,o){Fr(t.selectors,(a,n)=>{if(e.type!=="local")throw new Error("Selectors are not allowed within ".concat(e.type==="global"?'"globalStyle"':'"selectors"'));var i=this.transformSelector(n.replace(RegExp("&","g"),e.selector));p6(i,e.selector);var s={selector:i,rule:Gt(a,Wt)};o?this.addConditionalRule(s,o):this.addRule(s);var l={type:"selector",selector:i,rule:a};this.transformLayer(l,a["@layer"],o),this.transformSupports(l,a["@supports"],o),this.transformMedia(l,a["@media"],o),this.transformContainer(l,a["@container"],o);});}transformMedia(e,t){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(t){var a;(a=this.currConditionalRuleset)===null||a===void 0||a.addConditionPrecedence(o,Object.keys(t).map(p=>"@media ".concat(p)));for(var[n,i]of Object.entries(t)){var s="@media ".concat(n);u6(s);var l=[...o,s];this.addConditionalRule({selector:e.selector,rule:Gt(i,Wt)},l),e.type==="local"&&(this.transformSimplePseudos(e,i,l),this.transformSelectors(e,i,l)),this.transformLayer(e,i["@layer"],l),this.transformSupports(e,i["@supports"],l),this.transformContainer(e,i["@container"],l);}}}transformContainer(e,t){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(t){var a;(a=this.currConditionalRuleset)===null||a===void 0||a.addConditionPrecedence(o,Object.keys(t).map(n=>"@container ".concat(n))),Fr(t,(n,i)=>{var s="@container ".concat(i),l=[...o,s];this.addConditionalRule({selector:e.selector,rule:Gt(n,Wt)},l),e.type==="local"&&(this.transformSimplePseudos(e,n,l),this.transformSelectors(e,n,l)),this.transformLayer(e,n["@layer"],l),this.transformSupports(e,n["@supports"],l),this.transformMedia(e,n["@media"],l);});}}transformLayer(e,t){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(t){var a;(a=this.currConditionalRuleset)===null||a===void 0||a.addConditionPrecedence(o,Object.keys(t).map(n=>"@layer ".concat(n))),Fr(t,(n,i)=>{var s=[...o,"@layer ".concat(i)];this.addLayer(s),this.addConditionalRule({selector:e.selector,rule:Gt(n,Wt)},s),e.type==="local"&&(this.transformSimplePseudos(e,n,s),this.transformSelectors(e,n,s)),this.transformMedia(e,n["@media"],s),this.transformSupports(e,n["@supports"],s),this.transformContainer(e,n["@container"],s);});}}transformSupports(e,t){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(t){var a;(a=this.currConditionalRuleset)===null||a===void 0||a.addConditionPrecedence(o,Object.keys(t).map(n=>"@supports ".concat(n))),Fr(t,(n,i)=>{var s=[...o,"@supports ".concat(i)];this.addConditionalRule({selector:e.selector,rule:Gt(n,Wt)},s),e.type==="local"&&(this.transformSimplePseudos(e,n,s),this.transformSelectors(e,n,s)),this.transformLayer(e,n["@layer"],s),this.transformMedia(e,n["@media"],s),this.transformContainer(e,n["@container"],s);});}}transformSimplePseudos(e,t,o){for(var a of Object.keys(t))if(d6[a]){if(e.type!=="local")throw new Error("Simple pseudos are not valid in ".concat(e.type==="global"?'"globalStyle"':'"selectors"'));o?this.addConditionalRule({selector:"".concat(e.selector).concat(a),rule:t[a]},o):this.addRule({conditions:o,selector:"".concat(e.selector).concat(a),rule:t[a]});}}toCss(){var e=[];for(var t of this.fontFaceRules)e.push(rt({"@font-face":t}));for(var o of this.propertyRules)e.push(rt({["@property ".concat(o.name)]:o.rule}));for(var a of this.keyframesRules)e.push(rt({["@keyframes ".concat(a.name)]:a.rule}));for(var n of this.layers.values()){var[i,...s]=n.reverse(),l={[i]:Rc};for(var p of s)l={[p]:l};e.push(rt(l));}for(var c of this.rules)e.push(rt({[c.selector]:c.rule}));for(var d of this.conditionalRulesets)for(var m of d.renderToArray())e.push(rt(m));return e.filter(Boolean)}};function rt(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",t=[],o=function(i){var s=r[i];if(s&&Array.isArray(s))t.push(...s.map(p=>rt({[i]:p},e)));else if(s&&typeof s=="object"){var l=Object.keys(s).length===0;l||t.push("".concat(e).concat(i,` {
37
+ `).concat(rt(s,e+v6),`
38
+ `).concat(e,"}"));}else s===Rc?t.push("".concat(e).concat(i,";")):t.push("".concat(e).concat(i.startsWith("--")?i:b6(i),": ").concat(s,";"));};for(var a of Object.keys(r))o(a);return t.join(`
39
+ `)}function Tc(r){var{localClassNames:e,cssObjs:t,composedClassLists:o}=r,a=new li(e,o);for(var n of t)a.processCssObj(n);return a.toCss()}var Yt=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,Ec=new Set,ci=typeof process=="object"&&process?process:{},Lc=(r,e,t,o)=>{typeof ci.emitWarning=="function"?ci.emitWarning(r,e,t,o):console.error(`[${t}] ${e}: ${r}`);},va=globalThis.AbortController,Nc=globalThis.AbortSignal;if(typeof va>"u"){Nc=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(o,a){this._onabort.push(a);}},va=class{constructor(){e();}signal=new Nc;abort(o){if(!this.signal.aborted){this.signal.reason=o,this.signal.aborted=!0;for(let a of this.signal._onabort)a(o);this.signal.onabort?.(o);}}};let r=ci.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{r&&(r=!1,Lc("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e));};}var h6=r=>!Ec.has(r),ot=r=>r&&r===Math.floor(r)&&r>0&&isFinite(r),Mc=r=>ot(r)?r<=Math.pow(2,8)?Uint8Array:r<=Math.pow(2,16)?Uint16Array:r<=Math.pow(2,32)?Uint32Array:r<=Number.MAX_SAFE_INTEGER?Zt:null:null,Zt=class extends Array{constructor(e){super(e),this.fill(0);}},di=class r{heap;length;static#l=!1;static create(e){let t=Mc(e);if(!t)return [];r.#l=!0;let o=new r(e,t);return r.#l=!1,o}constructor(e,t){if(!r.#l)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new t(e),this.length=0;}push(e){this.heap[this.length++]=e;}pop(){return this.heap[--this.length]}},ha=class r{#l;#d;#y;#b;#T;#N;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#a;#g;#o;#r;#e;#p;#u;#s;#n;#v;#i;#h;#_;#m;#z;#k;#c;static unsafeExposeInternals(e){return {starts:e.#_,ttls:e.#m,sizes:e.#h,keyMap:e.#o,keyList:e.#r,valList:e.#e,next:e.#p,prev:e.#u,get head(){return e.#s},get tail(){return e.#n},free:e.#v,isBackgroundFetch:t=>e.#t(t),backgroundFetch:(t,o,a,n)=>e.#M(t,o,a,n),moveToTail:t=>e.#R(t),indexes:t=>e.#C(t),rindexes:t=>e.#x(t),isStale:t=>e.#f(t)}}get max(){return this.#l}get maxSize(){return this.#d}get calculatedSize(){return this.#g}get size(){return this.#a}get fetchMethod(){return this.#T}get memoMethod(){return this.#N}get dispose(){return this.#y}get disposeAfter(){return this.#b}constructor(e){let{max:t=0,ttl:o,ttlResolution:a=1,ttlAutopurge:n,updateAgeOnGet:i,updateAgeOnHas:s,allowStale:l,dispose:p,disposeAfter:c,noDisposeOnSet:d,noUpdateTTL:m,maxSize:u=0,maxEntrySize:y=0,sizeCalculation:b,fetchMethod:f,memoMethod:g,noDeleteOnFetchRejection:v,noDeleteOnStaleGet:h,allowStaleOnFetchRejection:_,allowStaleOnFetchAbort:C,ignoreFetchAbort:P}=e;if(t!==0&&!ot(t))throw new TypeError("max option must be a nonnegative integer");let w=t?Mc(t):Array;if(!w)throw new Error("invalid max value: "+t);if(this.#l=t,this.#d=u,this.maxEntrySize=y||this.#d,this.sizeCalculation=b,this.sizeCalculation){if(!this.#d&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(g!==void 0&&typeof g!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#N=g,f!==void 0&&typeof f!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#T=f,this.#k=!!f,this.#o=new Map,this.#r=new Array(t).fill(void 0),this.#e=new Array(t).fill(void 0),this.#p=new w(t),this.#u=new w(t),this.#s=0,this.#n=0,this.#v=di.create(t),this.#a=0,this.#g=0,typeof p=="function"&&(this.#y=p),typeof c=="function"?(this.#b=c,this.#i=[]):(this.#b=void 0,this.#i=void 0),this.#z=!!this.#y,this.#c=!!this.#b,this.noDisposeOnSet=!!d,this.noUpdateTTL=!!m,this.noDeleteOnFetchRejection=!!v,this.allowStaleOnFetchRejection=!!_,this.allowStaleOnFetchAbort=!!C,this.ignoreFetchAbort=!!P,this.maxEntrySize!==0){if(this.#d!==0&&!ot(this.#d))throw new TypeError("maxSize must be a positive integer if specified");if(!ot(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#H();}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!h,this.updateAgeOnGet=!!i,this.updateAgeOnHas=!!s,this.ttlResolution=ot(a)||a===0?a:1,this.ttlAutopurge=!!n,this.ttl=o||0,this.ttl){if(!ot(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#D();}if(this.#l===0&&this.ttl===0&&this.#d===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#l&&!this.#d){let z="LRU_CACHE_UNBOUNDED";h6(z)&&(Ec.add(z),Lc("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",z,r));}}getRemainingTTL(e){return this.#o.has(e)?1/0:0}#D(){let e=new Zt(this.#l),t=new Zt(this.#l);this.#m=e,this.#_=t,this.#A=(n,i,s=Yt.now())=>{if(t[n]=i!==0?s:0,e[n]=i,i!==0&&this.ttlAutopurge){let l=setTimeout(()=>{this.#f(n)&&this.#P(this.#r[n],"expire");},i+1);l.unref&&l.unref();}},this.#S=n=>{t[n]=e[n]!==0?Yt.now():0;},this.#w=(n,i)=>{if(e[i]){let s=e[i],l=t[i];if(!s||!l)return;n.ttl=s,n.start=l,n.now=o||a();let p=n.now-l;n.remainingTTL=s-p;}};let o=0,a=()=>{let n=Yt.now();if(this.ttlResolution>0){o=n;let i=setTimeout(()=>o=0,this.ttlResolution);i.unref&&i.unref();}return n};this.getRemainingTTL=n=>{let i=this.#o.get(n);if(i===void 0)return 0;let s=e[i],l=t[i];if(!s||!l)return 1/0;let p=(o||a())-l;return s-p},this.#f=n=>{let i=t[n],s=e[n];return !!s&&!!i&&(o||a())-i>s};}#S=()=>{};#w=()=>{};#A=()=>{};#f=()=>!1;#H(){let e=new Zt(this.#l);this.#g=0,this.#h=e,this.#I=t=>{this.#g-=e[t],e[t]=0;},this.#B=(t,o,a,n)=>{if(this.#t(o))return 0;if(!ot(a))if(n){if(typeof n!="function")throw new TypeError("sizeCalculation must be a function");if(a=n(o,t),!ot(a))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return a},this.#E=(t,o,a)=>{if(e[t]=o,this.#d){let n=this.#d-e[t];for(;this.#g>n;)this.#L(!0);}this.#g+=e[t],a&&(a.entrySize=o,a.totalCalculatedSize=this.#g);};}#I=e=>{};#E=(e,t,o)=>{};#B=(e,t,o,a)=>{if(o||a)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#C({allowStale:e=this.allowStale}={}){if(this.#a)for(let t=this.#n;!(!this.#O(t)||((e||!this.#f(t))&&(yield t),t===this.#s));)t=this.#u[t];}*#x({allowStale:e=this.allowStale}={}){if(this.#a)for(let t=this.#s;!(!this.#O(t)||((e||!this.#f(t))&&(yield t),t===this.#n));)t=this.#p[t];}#O(e){return e!==void 0&&this.#o.get(this.#r[e])===e}*entries(){for(let e of this.#C())this.#e[e]!==void 0&&this.#r[e]!==void 0&&!this.#t(this.#e[e])&&(yield [this.#r[e],this.#e[e]]);}*rentries(){for(let e of this.#x())this.#e[e]!==void 0&&this.#r[e]!==void 0&&!this.#t(this.#e[e])&&(yield [this.#r[e],this.#e[e]]);}*keys(){for(let e of this.#C()){let t=this.#r[e];t!==void 0&&!this.#t(this.#e[e])&&(yield t);}}*rkeys(){for(let e of this.#x()){let t=this.#r[e];t!==void 0&&!this.#t(this.#e[e])&&(yield t);}}*values(){for(let e of this.#C())this.#e[e]!==void 0&&!this.#t(this.#e[e])&&(yield this.#e[e]);}*rvalues(){for(let e of this.#x())this.#e[e]!==void 0&&!this.#t(this.#e[e])&&(yield this.#e[e]);}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(e,t={}){for(let o of this.#C()){let a=this.#e[o],n=this.#t(a)?a.__staleWhileFetching:a;if(n!==void 0&&e(n,this.#r[o],this))return this.get(this.#r[o],t)}}forEach(e,t=this){for(let o of this.#C()){let a=this.#e[o],n=this.#t(a)?a.__staleWhileFetching:a;n!==void 0&&e.call(t,n,this.#r[o],this);}}rforEach(e,t=this){for(let o of this.#x()){let a=this.#e[o],n=this.#t(a)?a.__staleWhileFetching:a;n!==void 0&&e.call(t,n,this.#r[o],this);}}purgeStale(){let e=!1;for(let t of this.#x({allowStale:!0}))this.#f(t)&&(this.#P(this.#r[t],"expire"),e=!0);return e}info(e){let t=this.#o.get(e);if(t===void 0)return;let o=this.#e[t],a=this.#t(o)?o.__staleWhileFetching:o;if(a===void 0)return;let n={value:a};if(this.#m&&this.#_){let i=this.#m[t],s=this.#_[t];if(i&&s){let l=i-(Yt.now()-s);n.ttl=l,n.start=Date.now();}}return this.#h&&(n.size=this.#h[t]),n}dump(){let e=[];for(let t of this.#C({allowStale:!0})){let o=this.#r[t],a=this.#e[t],n=this.#t(a)?a.__staleWhileFetching:a;if(n===void 0||o===void 0)continue;let i={value:n};if(this.#m&&this.#_){i.ttl=this.#m[t];let s=Yt.now()-this.#_[t];i.start=Math.floor(Date.now()-s);}this.#h&&(i.size=this.#h[t]),e.unshift([o,i]);}return e}load(e){this.clear();for(let[t,o]of e){if(o.start){let a=Date.now()-o.start;o.start=Yt.now()-a;}this.set(t,o.value,o);}}set(e,t,o={}){if(t===void 0)return this.delete(e),this;let{ttl:a=this.ttl,start:n,noDisposeOnSet:i=this.noDisposeOnSet,sizeCalculation:s=this.sizeCalculation,status:l}=o,{noUpdateTTL:p=this.noUpdateTTL}=o,c=this.#B(e,t,o.size||0,s);if(this.maxEntrySize&&c>this.maxEntrySize)return l&&(l.set="miss",l.maxEntrySizeExceeded=!0),this.#P(e,"set"),this;let d=this.#a===0?void 0:this.#o.get(e);if(d===void 0)d=this.#a===0?this.#n:this.#v.length!==0?this.#v.pop():this.#a===this.#l?this.#L(!1):this.#a,this.#r[d]=e,this.#e[d]=t,this.#o.set(e,d),this.#p[this.#n]=d,this.#u[d]=this.#n,this.#n=d,this.#a++,this.#E(d,c,l),l&&(l.set="add"),p=!1;else {this.#R(d);let m=this.#e[d];if(t!==m){if(this.#k&&this.#t(m)){m.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:u}=m;u!==void 0&&!i&&(this.#z&&this.#y?.(u,e,"set"),this.#c&&this.#i?.push([u,e,"set"]));}else i||(this.#z&&this.#y?.(m,e,"set"),this.#c&&this.#i?.push([m,e,"set"]));if(this.#I(d),this.#E(d,c,l),this.#e[d]=t,l){l.set="replace";let u=m&&this.#t(m)?m.__staleWhileFetching:m;u!==void 0&&(l.oldValue=u);}}else l&&(l.set="update");}if(a!==0&&!this.#m&&this.#D(),this.#m&&(p||this.#A(d,a,n),l&&this.#w(l,d)),!i&&this.#c&&this.#i){let m=this.#i,u;for(;u=m?.shift();)this.#b?.(...u);}return this}pop(){try{for(;this.#a;){let e=this.#e[this.#s];if(this.#L(!0),this.#t(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(e!==void 0)return e}}finally{if(this.#c&&this.#i){let e=this.#i,t;for(;t=e?.shift();)this.#b?.(...t);}}}#L(e){let t=this.#s,o=this.#r[t],a=this.#e[t];return this.#k&&this.#t(a)?a.__abortController.abort(new Error("evicted")):(this.#z||this.#c)&&(this.#z&&this.#y?.(a,o,"evict"),this.#c&&this.#i?.push([a,o,"evict"])),this.#I(t),e&&(this.#r[t]=void 0,this.#e[t]=void 0,this.#v.push(t)),this.#a===1?(this.#s=this.#n=0,this.#v.length=0):this.#s=this.#p[t],this.#o.delete(o),this.#a--,t}has(e,t={}){let{updateAgeOnHas:o=this.updateAgeOnHas,status:a}=t,n=this.#o.get(e);if(n!==void 0){let i=this.#e[n];if(this.#t(i)&&i.__staleWhileFetching===void 0)return !1;if(this.#f(n))a&&(a.has="stale",this.#w(a,n));else return o&&this.#S(n),a&&(a.has="hit",this.#w(a,n)),!0}else a&&(a.has="miss");return !1}peek(e,t={}){let{allowStale:o=this.allowStale}=t,a=this.#o.get(e);if(a===void 0||!o&&this.#f(a))return;let n=this.#e[a];return this.#t(n)?n.__staleWhileFetching:n}#M(e,t,o,a){let n=t===void 0?void 0:this.#e[t];if(this.#t(n))return n;let i=new va,{signal:s}=o;s?.addEventListener("abort",()=>i.abort(s.reason),{signal:i.signal});let l={signal:i.signal,options:o,context:a},p=(b,f=!1)=>{let{aborted:g}=i.signal,v=o.ignoreFetchAbort&&b!==void 0;if(o.status&&(g&&!f?(o.status.fetchAborted=!0,o.status.fetchError=i.signal.reason,v&&(o.status.fetchAbortIgnored=!0)):o.status.fetchResolved=!0),g&&!v&&!f)return d(i.signal.reason);let h=u;return this.#e[t]===u&&(b===void 0?h.__staleWhileFetching?this.#e[t]=h.__staleWhileFetching:this.#P(e,"fetch"):(o.status&&(o.status.fetchUpdated=!0),this.set(e,b,l.options))),b},c=b=>(o.status&&(o.status.fetchRejected=!0,o.status.fetchError=b),d(b)),d=b=>{let{aborted:f}=i.signal,g=f&&o.allowStaleOnFetchAbort,v=g||o.allowStaleOnFetchRejection,h=v||o.noDeleteOnFetchRejection,_=u;if(this.#e[t]===u&&(!h||_.__staleWhileFetching===void 0?this.#P(e,"fetch"):g||(this.#e[t]=_.__staleWhileFetching)),v)return o.status&&_.__staleWhileFetching!==void 0&&(o.status.returnedStale=!0),_.__staleWhileFetching;if(_.__returned===_)throw b},m=(b,f)=>{let g=this.#T?.(e,n,l);g&&g instanceof Promise&&g.then(v=>b(v===void 0?void 0:v),f),i.signal.addEventListener("abort",()=>{(!o.ignoreFetchAbort||o.allowStaleOnFetchAbort)&&(b(void 0),o.allowStaleOnFetchAbort&&(b=v=>p(v,!0)));});};o.status&&(o.status.fetchDispatched=!0);let u=new Promise(m).then(p,c),y=Object.assign(u,{__abortController:i,__staleWhileFetching:n,__returned:void 0});return t===void 0?(this.set(e,y,{...l.options,status:void 0}),t=this.#o.get(e)):this.#e[t]=y,y}#t(e){if(!this.#k)return !1;let t=e;return !!t&&t instanceof Promise&&t.hasOwnProperty("__staleWhileFetching")&&t.__abortController instanceof va}async fetch(e,t={}){let{allowStale:o=this.allowStale,updateAgeOnGet:a=this.updateAgeOnGet,noDeleteOnStaleGet:n=this.noDeleteOnStaleGet,ttl:i=this.ttl,noDisposeOnSet:s=this.noDisposeOnSet,size:l=0,sizeCalculation:p=this.sizeCalculation,noUpdateTTL:c=this.noUpdateTTL,noDeleteOnFetchRejection:d=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:m=this.allowStaleOnFetchRejection,ignoreFetchAbort:u=this.ignoreFetchAbort,allowStaleOnFetchAbort:y=this.allowStaleOnFetchAbort,context:b,forceRefresh:f=!1,status:g,signal:v}=t;if(!this.#k)return g&&(g.fetch="get"),this.get(e,{allowStale:o,updateAgeOnGet:a,noDeleteOnStaleGet:n,status:g});let h={allowStale:o,updateAgeOnGet:a,noDeleteOnStaleGet:n,ttl:i,noDisposeOnSet:s,size:l,sizeCalculation:p,noUpdateTTL:c,noDeleteOnFetchRejection:d,allowStaleOnFetchRejection:m,allowStaleOnFetchAbort:y,ignoreFetchAbort:u,status:g,signal:v},_=this.#o.get(e);if(_===void 0){g&&(g.fetch="miss");let C=this.#M(e,_,h,b);return C.__returned=C}else {let C=this.#e[_];if(this.#t(C)){let T=o&&C.__staleWhileFetching!==void 0;return g&&(g.fetch="inflight",T&&(g.returnedStale=!0)),T?C.__staleWhileFetching:C.__returned=C}let P=this.#f(_);if(!f&&!P)return g&&(g.fetch="hit"),this.#R(_),a&&this.#S(_),g&&this.#w(g,_),C;let w=this.#M(e,_,h,b),k=w.__staleWhileFetching!==void 0&&o;return g&&(g.fetch=P?"stale":"refresh",k&&P&&(g.returnedStale=!0)),k?w.__staleWhileFetching:w.__returned=w}}async forceFetch(e,t={}){let o=await this.fetch(e,t);if(o===void 0)throw new Error("fetch() returned undefined");return o}memo(e,t={}){let o=this.#N;if(!o)throw new Error("no memoMethod provided to constructor");let{context:a,forceRefresh:n,...i}=t,s=this.get(e,i);if(!n&&s!==void 0)return s;let l=o(e,s,{options:i,context:a});return this.set(e,l,i),l}get(e,t={}){let{allowStale:o=this.allowStale,updateAgeOnGet:a=this.updateAgeOnGet,noDeleteOnStaleGet:n=this.noDeleteOnStaleGet,status:i}=t,s=this.#o.get(e);if(s!==void 0){let l=this.#e[s],p=this.#t(l);return i&&this.#w(i,s),this.#f(s)?(i&&(i.get="stale"),p?(i&&o&&l.__staleWhileFetching!==void 0&&(i.returnedStale=!0),o?l.__staleWhileFetching:void 0):(n||this.#P(e,"expire"),i&&o&&(i.returnedStale=!0),o?l:void 0)):(i&&(i.get="hit"),p?l.__staleWhileFetching:(this.#R(s),a&&this.#S(s),l))}else i&&(i.get="miss");}#j(e,t){this.#u[t]=e,this.#p[e]=t;}#R(e){e!==this.#n&&(e===this.#s?this.#s=this.#p[e]:this.#j(this.#u[e],this.#p[e]),this.#j(this.#n,e),this.#n=e);}delete(e){return this.#P(e,"delete")}#P(e,t){let o=!1;if(this.#a!==0){let a=this.#o.get(e);if(a!==void 0)if(o=!0,this.#a===1)this.#F(t);else {this.#I(a);let n=this.#e[a];if(this.#t(n)?n.__abortController.abort(new Error("deleted")):(this.#z||this.#c)&&(this.#z&&this.#y?.(n,e,t),this.#c&&this.#i?.push([n,e,t])),this.#o.delete(e),this.#r[a]=void 0,this.#e[a]=void 0,a===this.#n)this.#n=this.#u[a];else if(a===this.#s)this.#s=this.#p[a];else {let i=this.#u[a];this.#p[i]=this.#p[a];let s=this.#p[a];this.#u[s]=this.#u[a];}this.#a--,this.#v.push(a);}}if(this.#c&&this.#i?.length){let a=this.#i,n;for(;n=a?.shift();)this.#b?.(...n);}return o}clear(){return this.#F("delete")}#F(e){for(let t of this.#x({allowStale:!0})){let o=this.#e[t];if(this.#t(o))o.__abortController.abort(new Error("deleted"));else {let a=this.#r[t];this.#z&&this.#y?.(o,a,e),this.#c&&this.#i?.push([o,a,e]);}}if(this.#o.clear(),this.#e.fill(void 0),this.#r.fill(void 0),this.#m&&this.#_&&(this.#m.fill(0),this.#_.fill(0)),this.#h&&this.#h.fill(0),this.#s=0,this.#n=0,this.#v.length=0,this.#g=0,this.#a=0,this.#c&&this.#i){let t=this.#i,o;for(;o=t?.shift();)this.#b?.(...o);}}};zn(ei());zn(Oc());var jc=new Set,Fc=[],yi=[],V6={appendCss:r=>{yi.push(r);},registerClassName:r=>{jc.add(r);},registerComposition:r=>{Fc.push(r);},markCompositionUsed:()=>{},onEndFileScope:r=>{var e=Tc({localClassNames:Array.from(jc),composedClassLists:Fc,cssObjs:yi}).join(`
40
+ `);sc({fileScope:r,css:e}),yi=[];},getIdentOption:()=>process.env.NODE_ENV==="production"?"short":"debug"};typeof window<"u"&&uc(V6);var Hc=(r,e)=>{for(var t=e-1;t>=0;){if(r[t]==="/")return t;t--;}return -1},$6=r=>{var e,t=r.lastIndexOf(".css");if(t===-1)return "";var o=Hc(r,t);if(e=r.slice(o+1,t),o===-1)return e;var a=Hc(r,o-1),n=r.slice(a+1,o),i=e!=="index"?e:n;return i},U6=()=>{var r=new ha({max:500});return e=>{var t=r.get(e);if(t)return t;var o=$6(e);return r.set(e,o),o}};U6();function q6(r){if(typeof r!="string"||!/^var\(--.*\)$/.test(r))throw new Error("Invalid variable name: ".concat(r))}function Vc(){for(var r="",e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return t.reverse().forEach(a=>{r===""?r=String(a):(q6(a),r=a.replace(/\)$/,", ".concat(r,")")));}),r}function Wc(r,e,t){let[o,a]=bt.useState({}),n=bt.useRef(!1),[i,s]=bt.useState(null),{container:l,shouldContainOverlays:p,isContainerPositioned:c}=bt.useContext(vt);bt.useEffect(()=>{if(!r||!t)return;let u=te(r),y=u.visualViewport,b=()=>{let f=y?.height,g=u.innerHeight-(f||0);if(n.current=g>60,n.current){let v=utils.getActiveElement(r);v&&utils.isInputThatOpensKeyboard(v)&&v.scrollIntoView({behavior:"smooth",block:"center"});}if(e)a({maxHeight:(f||0)*.8,bottom:g});else {let v=`${f||0}px`,h=p?`min(${v}, ${Vc(ea,v)})`:v;a({maxHeight:`calc(${h} - (2 * ${tokens.themeVars.spacing.xl} + env(safe-area-inset-top) + env(safe-area-inset-bottom)))`,top:n.current?`calc(env(safe-area-inset-top) + ${tokens.themeVars.spacing.xl})`:void 0});}};return b(),y?.addEventListener("resize",b),u.addEventListener("resize",b),()=>{y?.removeEventListener("resize",b),u.removeEventListener("resize",b);}},[r,e,p,t]),bt.useEffect(()=>{if(!l||!p||c)return;let u=()=>{l&&s(utils.getAbsoluteBounds(l));};u();let y=new ResizeObserver(()=>{u();});return y.observe(l),()=>{y.disconnect();}},[l,p,c]);let d=bt.useMemo(()=>({...o,overflow:"auto",position:"relative"}),[o]),m=bt.useMemo(()=>{if(!e&&n.current)return {alignItems:"flex-start"};if(p&&!c){let u=i||(l?utils.getAbsoluteBounds(l):{x:0,y:0,height:0,width:0});return {position:"absolute",left:u.x,top:u.y,height:u.height,width:u.width}}return {}},[e,n.current,l,c,p,i]);return {dialogStyle:d,containerStyle:m}}var gi=bt__default.default.createContext({isDrawer:!1,closeDrawer:()=>{},dialogStyle:{},setDialogElement:()=>{},isWithinModal:!1}),vi=bt__default.default.createContext({setIsPopoverSafelyClosed:()=>{}}),He=({children:r,className:e,style:t,isDismissable:o=!0,isKeyboardDismissDisabled:a=!1,portalContainer:n,disableAnimation:i,enableDrawer:s=!1,"data-block-id":l,"data-block-class":p,shouldCloseOnInteractOutside:c})=>{let{state:d}=bt__default.default.useContext(ht),[m,u]=bt__default.default.useState(!0),y=bt__default.default.useRef(null),[b,f]=bt__default.default.useState(null),{shouldHandleVirtualKeyboard:g}=bt.useContext($t),{shouldContainOverlays:v,container:h}=bt.useContext(vt),_=Ee(),C=typeof s=="boolean"&&s||s==="auto"&&_==="mobile";utils.invariant(d,"ModalContent must be a child of Modal");let P=bt__default.default.useRef(null),w=typeof o=="function"?o(C):o,z=typeof a=="function"?a(C):a,{modalProps:k,underlayProps:T}=reactAria.useModalOverlay({isDismissable:m&&w,shouldCloseOnInteractOutside:O=>!h?.contains(O)&&v?!1:c?.(O)??!0,isKeyboardDismissDisabled:z},d,P),{dialogStyle:R,containerStyle:N}=Wc(b,C,g),S=bt.useMemo(()=>({isDrawer:C,closeDrawer:d.close,dialogStyle:R,dialogRef:y,setDialogElement:f,isWithinModal:!0}),[C,d.close,R,y,f]),I=bt.useMemo(()=>({setIsPopoverSafelyClosed:u}),[u]),M={duration:.3,type:"tween",ease:"easeOut"},D={type:"spring",duration:.3},j={open:{opacity:1,transform:C?"translateY(0%)":"scale(1)"},closed:i?{opacity:1,transform:C?"translateY(0%)":"scale(1)"}:{opacity:0,transform:C?"translateY(100%)":"scale(0.95)"}};return jsxRuntime.jsx(react.AnimatePresence,{initial:!1,children:d.isOpen?jsxRuntime.jsx(gi.Provider,{value:S,children:jsxRuntime.jsx(vi.Provider,{value:I,children:jsxRuntime.jsxs(be,{className:utils.classNames(ac({enableDrawer:C,shouldContainOverlays:v}),e),"data-block-id":l,"data-block-class":p,style:{...t,...N},portalContainer:n,children:[jsxRuntime.jsx(react.motion.div,{...T,variants:{open:{opacity:1},closed:{opacity:i?1:0}},initial:"closed",animate:"open",exit:"closed","data-testid":"underlay",transition:M,className:utils.classNames(nc({shouldContainOverlays:v}),"BaselineUI-Modal-Underlay")}),jsxRuntime.jsx(react.motion.div,{...k,ref:P,"data-drawer":C,className:utils.classNames(C?rc:oc,"BaselineUI-Modal-Content"),variants:j,transition:C?M:D,initial:"closed",animate:"open",exit:"closed",children:typeof r=="function"?r(d):r})]})})}):null})};var Jc=x({defaultClassName:"cjv3et0 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6g1 _1yep5z6lz _1yep5z6m1",variantClassNames:{size:{sm:"cjv3et1",md:"cjv3et2",lg:"cjv3et3",content:"cjv3et4"},variant:{primary:"_1yep5z6137",ghost:"cjv3et6"},overlayType:{modal:"cjv3et7",popover:"cjv3et8"},isDrawer:{true:"cjv3et9 _1yep5z6yi _1yep5z6yj _1yep5z6yk _1yep5z6z6 _1yep5z6z7 _1yep5z6z8 _1yep5z617q"},isFocusVisible:{true:"_1yep5z61q3 _1yep5z61tx _1yep5z61tz _1yep5z61u1"}},defaultVariants:{},compoundVariants:[]});var _i=bt__default.default.createContext({titleProps:{}}),ve=bt__default.default.forwardRef(({children:r,className:e,style:t,inheritDrawer:o,size:a="md",variant:n="primary","data-block-id":i,"data-block-class":s,drawerBackground:l,...p},c)=>{let d=bt__default.default.useRef(null),m=bt__default.default.useRef(null),{isDrawer:u,closeDrawer:y,dialogStyle:b,setDialogElement:f,isWithinModal:g}=bt.useContext(gi),[v,h]=bt__default.default.useState(""),{focusProps:_,isFocusVisible:C}=reactAria.useFocusRing();bt.useLayoutEffect(()=>{let k=m.current?.getRootNode(),T=p["aria-label"]||"";p["aria-labelledby"]&&(T=k?.querySelector(`#${p["aria-labelledby"].replaceAll(":",String.raw`\:`)}`)?.textContent||""),h(T);},[p]);let{dialogProps:P,titleProps:w}=reactAria.useDialog(p,d),z=bt.useMemo(()=>({titleProps:w}),[w]);return u&&o?jsxRuntime.jsx(da,{title:v,onCloseRequest:y,className:e,style:b,...p,"data-drawer":!0,"data-block-id":i,"data-block-class":s,ref:L(m,c,k=>{f(k);}),background:l,children:r}):jsxRuntime.jsx(_i.Provider,{value:z,children:jsxRuntime.jsx("section",{...reactAria.mergeProps(P,_),"data-block-id":i,"data-block-class":s,"data-focus-visible":C,"data-overlay-type":g?"modal":"popover",ref:L(d,c,k=>{f(k);}),style:{...b,...t},className:utils.classNames(Jc({size:u?"content":a,variant:n,isDrawer:u,isFocusVisible:C,overlayType:g?"modal":"popover"}),"BaselineUI-Dialog",e),children:r})})});ve.displayName="Dialog";var Qc=bt__default.default.forwardRef(({children:r,className:e,style:t},o)=>{let{titleProps:a}=bt.useContext(_i);return bt__default.default.isValidElement(r)?bt__default.default.cloneElement(r,{...a,ref:o,className:utils.classNames(r.props.className,e),style:{...r.props.style,...t}}):jsxRuntime.jsx("h3",{...a,ref:o,className:e,style:t,children:r})});Qc.displayName="DialogTitle";var td=({children:r,isOpen:e,popoverContentRef:t,portalContainer:o=document.body,style:a})=>{let[n,i]=bt.useState(!1),[s,l]=bt.useState(null),p=bt.useRef(null),{setIsPopoverSafelyClosed:c}=bt.useContext(vi);bt.useEffect(()=>{e?(i(!0),p.current&&clearTimeout(p.current)):p.current=setTimeout(()=>{i(!1);},300);},[e]),bt.useEffect(()=>()=>{p.current&&clearTimeout(p.current);},[]);let d=t.current;return bt.useEffect(()=>{d&&l(d.getBoundingClientRect());},[d]),bt.useEffect(()=>{c(!n);},[n,c]),jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[n?uz__default.default.createPortal(jsxRuntime.jsx("div",{style:{position:"absolute",left:a?.left,top:a?.top,width:s?.width,height:s?.height,zIndex:a?.zIndex?+a.zIndex-1:void 0},className:"BaselineUI-Popover-ClickPreventionLayer"}),o):null,r]})};var{color:Qt}=tokens.themeVars,Ce=bt__default.default.forwardRef(({portalClassName:r,portalStyle:e,className:t,style:o,state:a,overlayProps:n,underlayClassName:i,children:s,includeArrow:l=!1,offset:p=2,portalContainer:c,contentContainerClassName:d,contentContainerStyle:m,"data-block-id":u,"data-block-class":y,...b},f)=>{let g=bt__default.default.useRef(null),v=ye(c),h=l?8:0,{underlayProps:_,popoverProps:C,placement:P,arrowProps:w}=reactAria.usePopover({...b,offset:p+h,popoverRef:g,containerPadding:b.containerPadding||0},a);delete C.style?.position;let z=P==="center"?"bottom":P,k=bt.useMemo(()=>({isOpen:a.isOpen}),[a.isOpen]),{transitionProps:T}=Jo({placement:P}),R=bt.useMemo(()=>({...C.style,...dynamic.assignInlineVars({[Ql]:`${b.triggerRef?.current?.offsetWidth}px`}),...Dn(o,k)}),[C.style,b.triggerRef,o,k]);return jsxRuntime.jsx(td,{isOpen:a.isOpen,popoverContentRef:g,portalContainer:v,style:C.style,children:a.isOpen?jsxRuntime.jsxs(be,{portalContainer:v,style:e,className:r,ref:f,"data-block-id":u,"data-block-class":y,children:[!b.isNonModal&&jsxRuntime.jsx("div",{..._,className:utils.classNames(Jl,Oo(i,k),"BaselineUI-Popover-Underlay")}),jsxRuntime.jsxs(react.motion.div,{...reactAria.mergeProps(C,T),style:R,ref:L(g,f),className:utils.classNames(Xl,"BaselineUI-Popover-ContentContainer",Oo(t,k)),"data-placement":["top","bottom","left","right"].filter(N=>P?.includes(N)),children:[l?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("svg",{className:utils.classNames(Gl({placement:z}),"BaselineUI-PopoverContent-Arrow"),...w,style:{...w.style,position:"absolute"},width:"15",height:"9",viewBox:"0 0 15 9",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M.019 0h1.228l6.272 7.237L13.791 0h1.228v1h-.772L7.519 8.763.791 1H.019V0Z",fill:Qt.border.medium}),jsxRuntime.jsx("path",{d:"M7.504 6.492 2.248.488h10.511L10.132 3.49 7.504 6.492Z",fill:Qt.background.primary.subtle,stroke:Qt.background.primary.subtle})]}),jsxRuntime.jsxs("svg",{className:utils.classNames(Wl({placement:z}),"BaselineUI-PopoverContent-Arrow-Focused"),width:"15",height:"11",viewBox:"0 0 15 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",...w,style:{...w.style,position:"absolute"},children:[jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.543371 2H0V0H1.45663L7.5 6.97312L13.5434 0H15V2H14.4566L7.5 10.0269L0.543371 2Z",fill:Qt.border.interactive.enabled}),jsxRuntime.jsx("path",{d:"M7.504 6.492 2.248.488h10.511L10.132 3.49 7.504 6.492Z",fill:Qt.background.primary.subtle,stroke:Qt.background.primary.subtle})]})]}):null,jsxRuntime.jsx(reactAria.DismissButton,{onDismiss:a.close}),jsxRuntime.jsx("div",{...n,style:Dn(m,k),className:utils.classNames(Yl,Oo(d,k),"BaselineUI-Popover-Content"),children:typeof s=="function"?s(a):s}),jsxRuntime.jsx(reactAria.DismissButton,{onDismiss:a.close})]})]}):null})});Ce.displayName="PopoverContentCore";var Me=bt__default.default.forwardRef((r,e)=>{let{state:t,overlayTriggerAria:{overlayProps:o},triggerRef:a}=bt.useContext(Lr);return utils.invariant(a),t?jsxRuntime.jsx(Ce,{ref:e,...r,triggerRef:r.triggerRef||a,overlayProps:o,state:t}):null});Me.displayName="PopoverContent";var sd=bt__default.default.forwardRef(({className:r,style:e,onChange:t,"data-block-id":o,icon:a,formatValue:n=d=>d,tooltipProps:i,popoverContentProps:s,isDisabled:l,...p},c)=>{let d=re(c),[m,u]=utils$1.useControlledState(p.value,p.defaultValue||0,t),[y,b]=bt__default.default.useState(!1),{keyboardProps:f}=reactAria.useKeyboard({onKeyDown:h=>{(h.key==="Enter"||h.key==="Escape")&&b(!1);}}),g=n(m||0),v=i?.isDisabled||p["aria-label"]?`${p["aria-label"]}, ${g}`:g.toString();return jsxRuntime.jsxs(E,{display:"flex",flexDirection:"row",gap:"md",paddingX:"md",alignItems:"center",className:utils.classNames("BaselineUI-IconSlider",r),"data-block-id":o,style:e,ref:d,children:[a?jsxRuntime.jsx(a,{size:24,className:tokens.sprinkles({color:"icon.primary"})}):null,jsxRuntime.jsxs(Oe,{type:"dialog",isOpen:y,onOpenChange:b,children:[jsxRuntime.jsx(je,{children:jsxRuntime.jsx(ne,{text:p["aria-label"],size:"sm",variant:"inverse",includeArrow:!1,isDisabled:l,...i,children:jsxRuntime.jsx(G,{label:g,variant:"popover","aria-label":v,isDisabled:l,style:{fontVariantNumeric:"tabular-nums",minWidth:68,justifyContent:"space-between"}})})}),jsxRuntime.jsx(Me,{placement:"bottom start",...s,children:jsxRuntime.jsx(ve,{size:"content","aria-label":v,children:jsxRuntime.jsx(reactAria.FocusScope,{autoFocus:!0,children:jsxRuntime.jsx(E,{paddingY:"sm",paddingX:"lg",marginY:"md",style:{width:215},...f,children:jsxRuntime.jsx(Kt,{...p,onChange:h=>{u(h),t?.(h);},value:m})})})})})]})]})});sd.displayName="IconSlider";var ld=x({defaultClassName:"bpklwa7",variantClassNames:{isReadOnly:{true:"bpklwa8"},isDisabled:{true:"bpklwa9"},isSelected:{true:"bpklwaa"},isFocused:{true:"bpklwab"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isDisabled:!1,isReadOnly:!1},"bpklwac"]]}),pd=x({defaultClassName:"bpklwae",variantClassNames:{isDisabled:{true:"bpklwaf"},isSelected:{true:"bpklwag"},isReadOnly:{true:"bpklwah"}},defaultVariants:{},compoundVariants:[]}),cd="bpklwad",dd=x({defaultClassName:"bpklwa0",variantClassNames:{labelPosition:{top:"bpklwa1",left:"bpklwa2"}},defaultVariants:{},compoundVariants:[]}),ud="bpklwa6",md=x({defaultClassName:"bpklwa3",variantClassNames:{labelPosition:{top:"bpklwa4",left:"bpklwa5"}},defaultVariants:{},compoundVariants:[]});var gd=bt__default.default.forwardRef(({className:r,label:e,labelPosition:t="top",statusLabel:o,style:a,"data-block-id":n,"data-block-class":i,...s},l)=>{let p=bt__default.default.useRef(null),c=reactStately.useToggleState(s),{inputProps:d,isPressed:m}=reactAria.useSwitch({...s,children:e},c,p),{isFocusVisible:u,focusProps:y}=reactAria.useFocusRing(),{hoverProps:b,isHovered:f}=reactAria.useHover({isDisabled:s.isDisabled}),g=utils.filterTruthyValues({"data-block-id":n,"data-block-class":i,"data-focused":u,"data-disabled":s.isDisabled,"data-focus-visible":u,"data-selected":c.isSelected,"data-readonly":s.isReadOnly,"data-hovered":f,"data-pressed":m}),v=jsxRuntime.jsx("div",{className:utils.classNames(ld({isSelected:c.isSelected,isDisabled:!!s.isDisabled,isFocused:u,isReadOnly:!!s.isReadOnly}),"BaselineUI-Switch-Track"),children:jsxRuntime.jsx("div",{className:utils.classNames(pd({isSelected:c.isSelected,isDisabled:s.isDisabled,isReadOnly:s.isReadOnly}),"BaselineUI-Switch-Knob"),"data-testid":"switch-knob"})});return jsxRuntime.jsxs("label",{...reactAria.mergeProps(g,b),className:utils.classNames(dd({labelPosition:t}),"BaselineUI-Switch",r),style:a,ref:l,children:[e?jsxRuntime.jsx("span",{className:utils.classNames(cd,"BaselineUI-Switch-Label"),children:e}):null,jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...reactAria.mergeProps(d,y),ref:p})}),o?jsxRuntime.jsxs("div",{className:md({labelPosition:t}),children:[jsxRuntime.jsx("span",{className:utils.classNames("BaselineUI-Switch-Status-Label",ud),children:c.isSelected?o.on:o.off}),v]}):v]})});gd.displayName="Switch";var vd="_19n40yy9",hd=x({defaultClassName:"_19n40yy0",variantClassNames:{size:{lg:"_19n40yy1",md:"_19n40yy2",sm:"_19n40yy3"},variant:{primary:"_19n40yy4",ghost:"_19n40yy5"},isFocused:{true:"_19n40yy6"},hasText:{true:"_19n40yy7"},isDisabled:{true:"_19n40yy8"}},defaultVariants:{},compoundVariants:[]});var Kz={sm:_20.SearchIcon,md:_24.SearchIcon,lg:_24.SearchIcon},Cd=bt__default.default.forwardRef(({className:r,size:e="md",variant:t="primary","data-block-id":o,"data-block-class":a,style:n,...i},s)=>{let l=bt__default.default.useRef(null),p=reactStately.useSearchFieldState(i),{inputProps:c,clearButtonProps:d}=reactAria.useSearchField({...i,"aria-haspopup":!1,"aria-autocomplete":"none",type:"search"},p,l),{focusProps:m,isFocusVisible:u,isFocused:y}=reactAria.useFocusRing({within:!0,isTextInput:!0}),b=Kz[e],f=e==="sm"?_12.XIcon:_16.XIcon,g=utils.filterTruthyValues({"data-block-id":o,"data-block-class":a,"data-focused":y,"data-disabled":i.isDisabled,"data-focus-visible":u});return jsxRuntime.jsxs("div",{...g,className:utils.classNames(hd({size:e,isFocused:y,variant:t,hasText:!!p.value,isDisabled:i.isDisabled}),"BaselineUI-SearchInput",r),style:n,ref:s,children:[jsxRuntime.jsx(b,{size:e==="sm"?20:24}),jsxRuntime.jsx("input",{...reactAria.mergeProps(c,m),className:vd,ref:l}),p.value!==""&&jsxRuntime.jsx(A,{icon:f,...d,size:e==="sm"?"xs":"sm",variant:"secondary"})]})});Cd.displayName="SearchInput";var xd="xyd2ss1 _1yep5z613 _1yep5z614 _1yep5z615 _1yep5z63f _1yep5z63g _1yep5z63h _1yep5z64l _1yep5z64m _1yep5z64n _1yep5z629 _1yep5z62a _1yep5z62b _1yep5z65r _1yep5z65s _1yep5z65t _1yep5z683 _1yep5z684 _1yep5z685 _1yep5z699 _1yep5z69a _1yep5z69b _1yep5z66x _1yep5z66y _1yep5z66z _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6ls _1yep5z6lr _1yep5z6i0 _1yep5z6lv _1yep5z6g1",Pd="xyd2ss0 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z64l _1yep5z64m _1yep5z64n _1yep5z629 _1yep5z62a _1yep5z62b";var xi=({section:r,showSelectedIcon:e,state:t})=>{let{itemProps:o,groupProps:a,headingProps:n}=reactAria.useMenuSection({heading:r.value?.title,"aria-label":r["aria-label"]});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[r.key!==t.collection.getFirstKey()&&jsxRuntime.jsx(U,{elementType:"li"}),jsxRuntime.jsxs("li",{...o,children:[r.value?.title?jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("span",{...n,children:r.value.title})}):null,jsxRuntime.jsx("ul",{...a,className:Pd,children:[...r.childNodes].map(i=>(utils.invariant(i.type==="item"),jsxRuntime.jsx(za,{item:i,state:t,showSelectedIcon:e},i.key)))})]})]})};xi.displayName="MenuSection";var za=({item:r,state:e,className:t,showSelectedIcon:o})=>{let a=bt__default.default.useRef(null),n=reactAria.useMenuItem({key:r.key},e,a),{isFocusVisible:i,focusProps:s}=reactAria.useFocusRing();return jsxRuntime.jsx(Nr,{item:r,liProps:reactAria.mergeProps(n.menuItemProps,s,{className:t}),...n,isFocusVisible:i,ref:a,description:r.value?.keyboardShortcut,descriptionProps:n.keyboardShortcutProps,_state:e,showSelectedIcon:o})};za.displayName="MenuItem";var wi=bt__default.default.forwardRef(({className:r,itemClassName:e,onContentKeyDown:t,...o},a)=>{let n=reactStately.useTreeState(o),i=bt__default.default.useRef(null),{menuProps:s}=reactAria.useMenu(o,n,i),{keyboardProps:l}=reactAria.useKeyboard({onKeyDown:t});return jsxRuntime.jsx("ul",{...reactAria.mergeProps(s,l),className:utils.classNames(xd,r),ref:L(i,a),children:[...n.collection].map(p=>p.type==="section"?jsxRuntime.jsx(xi,{section:p,state:n,showSelectedIcon:o.selectionMode==="multiple"||o.selectionMode==="single"},p.key):jsxRuntime.jsx(za,{item:p,state:n,className:e,showSelectedIcon:o.selectionMode==="multiple"||o.selectionMode==="single"},p.key))})});wi.displayName="MenuContent";var Sd=x({defaultClassName:"_1mdhlqv8",variantClassNames:{isOpen:{true:"_1mdhlqv9"}},defaultVariants:{},compoundVariants:[]}),at="_1mdhlqvb cjv3et0 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6g1 _1yep5z6lz _1yep5z6m1 _1yep5z6137 cjv3et4",Id=x({defaultClassName:"_1mdhlqv0 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69o _1yep5z69p _1yep5z69q _1yep5z6eu _1yep5z6kj _1yep5z6kk _1yep5z6kl _1yep5z6dy",variantClassNames:{isFocused:{false:"_1mdhlqv1"},isOpen:{true:"_1mdhlqv2"},isDisabled:{true:"z9nup83 _1yep5z6ey"},isHovered:{true:"_1mdhlqv4"},variant:{primary:"_1mdhlqv5",ghost:"_1mdhlqv6"}},defaultVariants:{},compoundVariants:[[{variant:"primary",isHovered:!0},"_1mdhlqv7"]]}),Rd="_1yep5z66x _1yep5z66y _1yep5z66z",Td="_1mdhlqva _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69i _1yep5z69j _1yep5z69k";var Ca=bt__default.default.forwardRef(({defaultOpen:r,onOpenChange:e,isOpen:t,isDisabled:o,contentClassName:a,placement:n="bottom start",isNonModal:i,shouldFlip:s,shouldUpdatePosition:l,boundaryElement:p,crossOffset:c,offset:d,triggerLabel:m,renderTrigger:u=({buttonProps:g,ref:v})=>jsxRuntime.jsx(G,{...g,variant:"popover",ref:v}),portalContainer:y,...b},f)=>{let g=bt__default.default.useRef(null),v=ye(y),h=reactStately.useMenuTriggerState({defaultOpen:r,isOpen:t,onOpenChange:e}),{menuTriggerProps:_,menuProps:C}=reactAria.useMenuTrigger({isDisabled:o,type:"menu"},h,g),P=se(),w=bt.useMemo(()=>reactAria.mergeProps(_,{isDisabled:o,isSelected:h.isOpen,className:"BaselineUI-Menu-Trigger",label:typeof m=="function"?m(h.isOpen):m}),[_,o,h.isOpen,m]);return bt.useEffect(()=>{!m&&!u&&console.warn("The `triggerLabel` prop is required when no `renderTrigger` or `children` is provided.");},[u,m]),jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[u({buttonProps:w,ref:g}),jsxRuntime.jsx(Ce,{triggerRef:g,state:h,placement:n,isNonModal:i,shouldFlip:s,shouldUpdatePosition:l,boundaryElement:p,crossOffset:c,offset:d||2,className:"BaselineUI-Menu-Popover",portalContainer:v,children:jsxRuntime.jsx(wi,{className:utils.classNames(at,a),...C,...b,ref:f,autoFocus:h.focusStrategy||"first",children:P})})]})});Ca.displayName="Menu";var xa=x({defaultClassName:"_13f0naj0",variantClassNames:{variant:{default:"_13f0naj1",inline:"_13f0naj2"},isHovered:{true:"_13f0naj3"},isFocusVisible:{true:"_13f0naj4"},isDisabled:{true:"_13f0naj5"},size:{sm:"_13f0naj6",md:"_13f0naj7",lg:"_13f0naj8"},type:{body:"_13f0naj9",label:"_13f0naja"},isActive:{true:"_13f0najb"}},defaultVariants:{},compoundVariants:[[{isActive:!0,isDisabled:!1},"_13f0najc"],[{type:"body",size:"sm"},"_13f0najd"],[{type:"body",size:"md"},"_13f0naje"],[{type:"body",size:"lg"},"_13f0najf"],[{type:"label",size:"sm"},"_13f0najg"],[{type:"label",size:"md"},"_13f0najh"],[{type:"label",size:"lg"},"_13f0naji"]]});var Ld=bt__default.default.forwardRef(({className:r,style:e,children:t,variant:o="default",size:a="md",elementType:n="a",type:i="body","data-block-id":s,"data-block-class":l,title:p,role:c,...d},m)=>{let u=bt__default.default.useRef(null),{linkProps:y,isPressed:b}=reactAria.useLink({...d,elementType:d.onPress?"span":n},u),{isFocusVisible:f,isFocused:g,focusProps:v}=reactAria.useFocusRing(),{hoverProps:h,isHovered:_}=reactAria.useHover({isDisabled:d.isDisabled}),C=n,P=utils.filterTruthyValues({"data-block-id":s,"data-block-class":l,"data-disabled":d.isDisabled,"data-focused":g,"data-pressed":b,"data-focus-visible":f,"data-hovered":_,role:c,title:p});return jsxRuntime.jsx(C,{...reactAria.mergeProps(y,v,h,P),className:utils.classNames(xa({variant:o,isFocusVisible:f,isHovered:_,isDisabled:d.isDisabled,size:a,isActive:b,type:i}),"BaselineUI-Link",r),ref:L(u,m),style:e,children:t})});Ld.displayName="Link";function Md({isDisabled:r,onValueChange:e,onChange:t,name:o,"aria-describedby":a,"aria-label":n,accept:i,multiple:s}){let l=reactAria.useId(),p=reactAria.useId(),c=reactAria.useId();return {inputProps:{type:"file",id:p,disabled:!!r,"aria-labelledby":n?void 0:l,"aria-describedby":a||c,"aria-label":n,onChange:m=>{let u=[...m.target.files||[]];e?.(u),t?.(m);},name:o,accept:i,multiple:s},labelProps:{htmlFor:p,id:l},descriptionProps:{id:c}}}async function Ii({items:r}){let e=r.filter(t=>t.kind==="file").map(async t=>(utils.invariant(t.kind==="file"),t.getFile()));return await Promise.all(e)}var Dd=x({defaultClassName:"_180w5ed0",variantClassNames:{variant:{default:"_180w5ed1",inline:"_180w5ed2"},hoveredOrFocusedOrActive:{true:"_180w5ed3"},disabled:{true:"_180w5ed4"}},defaultVariants:{},compoundVariants:[[{variant:"inline",hoveredOrFocusedOrActive:!0},"_180w5ed5"],[{variant:"default",hoveredOrFocusedOrActive:!0},"_180w5ed6"],[{variant:"default",disabled:!0},"_180w5ed7"],[{variant:"inline",disabled:!0},"_180w5ed8"]]}),Ad=x({defaultClassName:"_180w5ede",variantClassNames:{disabled:{true:"_180w5edf"}},defaultVariants:{},compoundVariants:[]}),Bd=x({defaultClassName:"_180w5ed9",variantClassNames:{disabled:{true:"_180w5eda"}},defaultVariants:{},compoundVariants:[]}),Od=x({defaultClassName:"_180w5edb",variantClassNames:{disabled:{true:"_180w5edc"},hovered:{true:"_180w5edd"}},defaultVariants:{},compoundVariants:[]});var Vd=bt__default.default.forwardRef(({className:r,label:e,description:t,icon:o,variant:a="default",...n},i)=>{let s=bt__default.default.useRef(null),{inputProps:l,descriptionProps:p,labelProps:c}=Md(n),{dropProps:d}=reactAria.useDrop({ref:s,onDrop:async({items:f})=>{let g=f.filter(h=>h.kind==="file").map(async h=>(utils.invariant(h.kind==="file"),h.getFile())),v=await Promise.all(g);n.onValueChange?.(v);}}),{focusProps:m,isFocusVisible:u}=reactAria.useFocusRing(),{hoverProps:y,isHovered:b}=reactAria.useHover({isDisabled:n.isDisabled});return jsxRuntime.jsxs("label",{...reactAria.mergeProps(d,y,c),className:utils.classNames(Dd({variant:a,disabled:n.isDisabled,hoveredOrFocusedOrActive:b||u}),r),ref:L(i,s),children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...reactAria.mergeProps(m,l)})}),o?jsxRuntime.jsx(o,{size:20,className:Bd({disabled:n.isDisabled})}):null,jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("div",{className:Od({disabled:n.isDisabled,hovered:b}),children:e}),t?jsxRuntime.jsx("div",{...p,className:Ad({disabled:n.isDisabled}),children:t}):null]})]})});Vd.displayName="FileUpload";var $d="_12vfhl40 z9nup81",Ud="_12vfhl41 z9nup82",qd=x({defaultClassName:"_12vfhl48",variantClassNames:{variant:{success:"_12vfhl49",error:"_12vfhl4a",active:"_12vfhl4b"}},defaultVariants:{},compoundVariants:[]}),Kd="_12vfhl42",Gd="_12vfhl47",Wd="_12vfhl46 z9nup82",Xd="_12vfhl45",Yd=x({defaultClassName:"_12vfhl43 _12vfhl42",variantClassNames:{hasLabel:{false:"_12vfhl44"}},defaultVariants:{},compoundVariants:[]});var Zd=bt__default.default.forwardRef(({className:r,style:e,variant:t="active",showValue:o,description:a,errorMessage:n,"data-block-id":i,"data-block-class":s,...l},p)=>{let c=reactAria.useId(),{labelProps:d,progressBarProps:m}=reactAria.useProgressBar({...l,"aria-describedby":a?c:l["aria-describedby"]}),{minValue:u=0,maxValue:y=100,value:b=0,label:f}=l,g=(b-u)/(y-u),v=`${Math.round(g*100)}%`,h=jsxRuntime.jsx("output",{className:Yd({hasLabel:!!f}),children:m["aria-valuetext"]}),_=t==="error"?n:a;return jsxRuntime.jsxs("div",{...m,style:e,className:utils.classNames($d,"BaselineUI-ProgressBar",r),"data-block-id":i,"data-block-class":s,ref:p,children:[f?jsxRuntime.jsxs("div",{className:Ud,children:[jsxRuntime.jsx("label",{...d,className:Kd,children:f}),o?h:null]}):null,jsxRuntime.jsxs("div",{className:Xd,children:[jsxRuntime.jsxs("div",{className:Wd,children:[jsxRuntime.jsx("div",{className:Gd,children:jsxRuntime.jsx("div",{style:{width:v},className:qd({variant:t})})}),!f&&o?h:null]}),_?jsxRuntime.jsx("div",{className:Ot({hasError:t==="error"}),id:c,children:_}):null]})]})});Zd.displayName="ProgressBar";function rr({isReadOnly:r,validationState:e}){return r?_16.ReadOnlyIcon:e==="error"?_16.ErrorCircleFilledIcon:e==="warning"?_16.WarningFilledIcon:null}var nt=bt__default.default.forwardRef(({className:r,validationState:e,variant:t="primary",style:o,labelPosition:a="top",inputStyle:n,inputClassName:i,"data-block-id":s,"data-block-class":l,...p},c)=>{let d=bt__default.default.useRef(null),{inputProps:m,labelProps:u,descriptionProps:y,errorMessageProps:b,validationErrors:f}=reactAria.useTextField({...p,validationState:e?e==="error"?"invalid":"valid":void 0},d),g=p.errorMessage||f.join(" "),v=Ne({...p,errorMessage:g,descriptionProps:y,errorMessageProps:b,labelPosition:a});g&&(e="error");let{hoverProps:h,isHovered:_}=reactAria.useHover({isDisabled:p.isDisabled}),{isFocused:C,focusProps:P,isFocusVisible:w}=reactAria.useFocusRing(),z=rr({isReadOnly:p.isReadOnly,validationState:e??"valid"}),k=utils.filterTruthyValues({"data-readonly":p.isReadOnly,"data-disabled":p.isDisabled,"data-validation-state":e,"data-focused":C,"data-focus-visible":w});return jsxRuntime.jsxs("div",{className:utils.classNames(et({labelPosition:a}),"BaselineUI-TextInput",r),"data-block-id":s,"data-block-class":l,style:o,ref:c,children:[p.label||a==="start"&&v?jsxRuntime.jsxs("div",{className:Qe({labelPosition:a,hasMessage:!!v}),children:[jsxRuntime.jsx("label",{...u,className:Je,children:p.label}),a==="start"&&v]}):null,jsxRuntime.jsxs("div",{className:utils.classNames({[Vt]:p.isDisabled}),children:[jsxRuntime.jsxs("div",{...h,className:Ft({validationState:e??"valid",isHovered:_,isFocused:C,variant:t,isReadOnly:!!p.isReadOnly,isDisabled:!!p.isDisabled}),children:[jsxRuntime.jsx("input",{...reactAria.mergeProps(m,P,k),className:utils.classNames(Zo({isDisabled:p.isDisabled,labelPosition:a}),"BaselineUI-TextInput-Input",i),style:n,ref:d}),z?jsxRuntime.jsx(z,{className:jt({validationState:e??"valid",isReadOnly:p.isReadOnly}),size:16}):null]}),a==="top"&&v]})]})});nt.displayName="TextInput";var or=({value:r,...e})=>{let t=reactAria.useNumberFormatter(e);return jsxRuntime.jsx(jsxRuntime.Fragment,{children:t.format(r)})};or.displayName="NumberFormat";var Qd="_1yep5z6iv _1yep5z6iw _1yep5z6ix",eu=x({defaultClassName:"_9b1tml0",variantClassNames:{isSelected:{true:"_9b1tml1",false:"_9b1tml2"},isDisabled:{true:"z9nup83"},isHovered:{true:"_9b1tml4"},isFocusVisible:{true:"_9b1tml5"},isReadOnly:{true:"_9b1tml6"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isFocusVisible:!0,isReadOnly:!1},"_9b1tml7"],[{isSelected:!0,isHovered:!0,isDisabled:!1,isReadOnly:!1},"_9b1tml8"],[{isSelected:!1,isHovered:!0,isDisabled:!1,isReadOnly:!1},"_9b1tml9"],[{isSelected:!0,isDisabled:!0},"_9b1tmla"],[{isSelected:!0,isReadOnly:!0},"_9b1tmlb"]]}),tu=x({defaultClassName:"_9b1tmlf _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6eu _1yep5z6la _1yep5z6e9",variantClassNames:{isSelected:{true:"_9b1tmlg"},size:{sm:"_9b1tmlh",md:"_9b1tmli"},isDisabled:{true:"_9b1tmlj"},isReadOnly:{true:"_1yep5z610x"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isDisabled:!1,isReadOnly:!1},"_1yep5z61n6"],[{isSelected:!0,isDisabled:!0},"_1yep5z61n6"],[{isSelected:!1,isDisabled:!0},"_1yep5z61n4"]]}),ru=x({defaultClassName:"_9b1tmlc",variantClassNames:{isDisabled:{true:"_9b1tmld"},isReadOnly:{true:"_9b1tmle"}},defaultVariants:{},compoundVariants:[]});var nu=bt__default.default.forwardRef(({className:r,count:e,style:t,size:o="md",icon:a,"data-block-id":n,"data-block-class":i,...s},l)=>{let p={isRequired:!1},c=a||(o==="md"?_20.CheckmarkIcon:_16.CheckmarkIcon);!s["aria-label"]&&!s["aria-labelledby"]&&console.warn("You must provide either an `aria-label` or `aria-labelledby` prop to the `Reaction` component.");let d=bt__default.default.useRef(null),m=reactStately.useToggleState({...s,...p}),{inputProps:u,isPressed:y,isDisabled:b,isReadOnly:f,isSelected:g}=reactAria.useSwitch({...s,...p},m,d),{focusProps:v,isFocused:h,isFocusVisible:_}=reactAria.useFocusRing(),{hoverProps:C,isHovered:P}=reactAria.useHover({}),w=utils.filterTruthyValues({"data-block-id":n,"data-block-class":i,"data-focused":h,"data-focus-visible":_,"data-disabled":b,"data-hovered":P,"data-pressed":y,"data-selected":g});return jsxRuntime.jsxs("label",{ref:l,style:t,className:utils.classNames(Qd,"BaselineUI-Reaction",r),...w,children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...u,...v,ref:d})}),jsxRuntime.jsxs("div",{...C,className:eu({isSelected:g,isFocusVisible:_,isHovered:P,isReadOnly:f,isDisabled:b}),children:[jsxRuntime.jsx("div",{className:ru({isDisabled:b,isReadOnly:f}),children:jsxRuntime.jsx(c,{size:o==="md"?20:16})}),jsxRuntime.jsx("div",{className:tu({isSelected:m.isSelected,isDisabled:b,isReadOnly:f,size:o}),children:jsxRuntime.jsx(or,{value:e})})]})]})});nu.displayName="Reaction";var iu="_1azy5686",su="_1azy5685",lu="var(--_1azy5680)",pu="_1azy5688",cu="_1azy5689",du="_1azy5681 z9nup82",uu="_1azy5682";var mu="_1azy5687";var sx={sm:16,md:20},lx={sm:[_16.CheckmarkCircleFilledIcon,_16.ErrorAltCircleFilledIcon],md:[_20.CheckCircleFilledIcon,_20.ErrorAltCircleFilledIcon]},nr=bt__default.default.forwardRef(({className:r,style:e,size:t="md",variant:o="active","data-block-id":a,"data-block-class":n,...i},s)=>{let{labelProps:l,progressBarProps:p}=reactAria.useProgressBar({...i,isIndeterminate:!0}),c=sx[t],d=c/2-2,m=2*d*Math.PI,u=lx[t][o==="success"?0:1];return jsxRuntime.jsxs("div",{className:utils.classNames(du,"BaselineUI-ProgressSpinner",r),ref:s,style:{...dynamic.assignInlineVars({[lu]:`${m}px`}),...e},"data-block-id":a,"data-block-class":n,children:[jsxRuntime.jsxs("div",{...p,className:uu,children:[(o==="active"||o==="inactive")&&jsxRuntime.jsxs("svg",{height:c,width:c,viewBox:`0 0 ${c} ${c}`,children:[jsxRuntime.jsx("circle",{role:"presentation",className:iu,cx:c/2,cy:c/2,r:d}),o==="active"&&jsxRuntime.jsx("circle",{role:"presentation",className:su,cx:c/2,cy:c/2,r:d})]}),o==="success"&&jsxRuntime.jsx(u,{className:mu,size:c}),o==="error"&&jsxRuntime.jsx(u,{className:pu,size:c})]}),i.label?jsxRuntime.jsx("span",{...l,className:cu,children:i.label}):null]})});nr.displayName="ProgressSpinner";var ka=x({defaultClassName:"_5uw3kp0 oom8bs0 z9nup82",variantClassNames:{isHovered:{true:"_5uw3kp1"},isFocusVisible:{true:"_5uw3kp2"},isDisabled:{true:"_5uw3kp3"},isSelected:{true:"_5uw3kp4"},size:{sm:"_5uw3kp5",md:"_5uw3kp6",lg:"_5uw3kp7"},variant:{primary:"_5uw3kp8",toolbar:"_5uw3kp9"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isFocusVisible:!0},"_5uw3kpa"],[{isSelected:!0,isDisabled:!0},"_5uw3kpb"],[{variant:"primary",size:"lg"},"_5uw3kpc"]]}),fu=x({defaultClassName:"_5uw3kpd _1yep5z6f5",variantClassNames:{isDisabled:{true:"_1yep5z611a"},isSelected:{true:"_1yep5z611c"}},defaultVariants:{},compoundVariants:[]});var fx={sm:16,md:20,lg:24},Sa=bt__default.default.forwardRef(({className:r,style:e,iconStart:t,size:o="md",elementType:a="button",variant:n="toolbar",...i},s)=>{let l=reactStately.useToggleState(i),{buttonProps:p,isPressed:c,ref:d,isFocusVisible:m,isFocused:u,isHovered:y,uiStateOptions:b}=Wo(i,l),f=utils.filterTruthyValues({"data-block-id":i["data-block-id"],"data-block-class":i["data-block-class"],"data-focused":u,"data-focus-visible":m,"data-disabled":i.isDisabled,"data-hovered":y,"data-pressed":c,"data-selected":l.isSelected});return jsxRuntime.jsxs(a,{...reactAria.mergeProps(p,f),className:utils.classNames(ka({isHovered:y,isFocusVisible:m,isSelected:l.isSelected,size:o,isDisabled:i.isDisabled,variant:n}),"BaselineUI-ToggleButton",typeof r=="function"?r(b):r),style:typeof e=="function"?e(b):e,ref:L(d,s),children:[t?jsxRuntime.jsx(t,{size:fx[o],className:fu({isDisabled:i.isDisabled,isSelected:l.isSelected})}):null,i.label]})});Sa.displayName="ToggleButton";var Ia=x({defaultClassName:"_16vugd0f",variantClassNames:{isDisabled:{true:"_16vugd0g"}},defaultVariants:{},compoundVariants:[]}),yu=x({defaultClassName:"_16vugd02 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl",variantClassNames:{labelPosition:{end:"_1yep5z6154 _1yep5z6155 _1yep5z6156 _1yep5z6vl _1yep5z6vm _1yep5z6vn",start:"_1yep5z615a _1yep5z615b _1yep5z615c _1yep5z616m _1yep5z616n _1yep5z616o"}},defaultVariants:{},compoundVariants:[]}),bu=x({defaultClassName:"_16vugd06",variantClassNames:{isIndeterminate:{true:"_16vugd05"},isSelected:{true:"_16vugd05"},isFocusVisible:{true:"_16vugd09"},isHovered:{true:"_16vugd0a"},isDisabled:{true:"_16vugd0b"},isReadOnly:{true:"_16vugd0c"},hasError:{true:"_16vugd0d"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isDisabled:!0},"_16vugd0e"]]});var hu=bt__default.default.forwardRef(({className:r,style:e,label:t,labelPosition:o="end","data-block-id":a,"data-block-class":n,...i},s)=>{let l=bt__default.default.useRef(null),p=reactStately.useToggleState(i),{isFocusVisible:c,isFocused:d,focusProps:m}=reactAria.useFocusRing(),{inputProps:u,isPressed:y,isDisabled:b,isSelected:f,isReadOnly:g}=reactAria.useCheckbox({...i,children:t},p,l),{hoverProps:v,isHovered:h}=reactAria.useHover({isDisabled:b}),_=utils.filterTruthyValues({"data-disabled":b,"data-readonly":g,"data-hovered":h,"data-selected":f,"data-pressed":y,"data-indeterminate":i.isIndeterminate,"data-invalid":i.isInvalid,"data-focus-visible":c,"data-focused":d,"data-block-id":a,"data-block-class":n});return jsxRuntime.jsxs("label",{..._,className:utils.classNames(yu({labelPosition:o}),"BaselineUI-Checkbox",r),style:e,ref:s,children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...reactAria.mergeProps(u,m),ref:l})}),jsxRuntime.jsxs("div",{...v,className:bu({isSelected:f&&!i.isIndeterminate,isIndeterminate:i.isIndeterminate,isFocusVisible:c,isDisabled:b,isReadOnly:g,hasError:i.isInvalid,isHovered:h}),children:[f&&!i.isIndeterminate?jsxRuntime.jsx(_12.CheckmarkIcon,{size:12}):null,i.isIndeterminate?jsxRuntime.jsx(_12.MinusIcon,{size:12}):null]}),t?jsxRuntime.jsx("span",{className:Ia({isDisabled:b}),children:t}):null]})});hu.displayName="Checkbox";var _u={ar:{goToPage:"\u0627\u0646\u062A\u0642\u0627\u0644 \u0625\u0644\u0649 \u0635\u0641\u062D\u0629",nextPage:"\u0627\u0644\u0635\u0641\u062D\u0629 \u0627\u0644\u062A\u0627\u0644\u064A\u0629",pageXofY:"\u0635\u0641\u062D\u0629 {arg0} \u0645\u0646 {arg1}",prevPage:"\u0627\u0644\u0635\u0641\u062D\u0629 \u0627\u0644\u0633\u0627\u0628\u0642\u0629"},cs:{goToPage:"P\u0159ej\xEDt na stranu",nextPage:"Dal\u0161\xED str\xE1nka",pageXofY:"Strana {arg0} z {arg1}",prevPage:"P\u0159edchoz\xED strana"},cy:{goToPage:"Mynd i Dudalen",nextPage:"Tudalen Nesaf",pageXofY:"Tudalen {arg0} o {arg1}",prevPage:"Tudalen Blaenorol"},da:{goToPage:"G\xE5 til side",nextPage:"N\xE6ste side",pageXofY:"Side {arg0} af {arg1}",prevPage:"Forrige side"},de:{goToPage:"Zu Seite wechseln",nextPage:"N\xE4chste Seite",pageXofY:"Seite {arg0} von {arg1}",prevPage:"Vorherige Seite"},el:{goToPage:"\u039C\u03B5\u03C4\u03AC\u03B2\u03B1\u03C3\u03B7 \u03C3\u03C4\u03B7 \u03C3\u03B5\u03BB\u03AF\u03B4\u03B1",nextPage:"\u0395\u03C0\u03CC\u03BC\u03B5\u03BD\u03B7 \u03C3\u03B5\u03BB\u03AF\u03B4\u03B1",pageXofY:"\u03A3\u03B5\u03BB\u03AF\u03B4\u03B1 {arg0} \u03B1\u03C0\u03CC {arg1}",prevPage:"\u03A0\u03C1\u03BF\u03B7\u03B3\u03BF\u03CD\u03BC\u03B5\u03BD\u03B7 \u03C3\u03B5\u03BB\u03AF\u03B4\u03B1"},"en-GB":{goToPage:"Go to Page",nextPage:"Next Page",pageXofY:"Page {arg0} of {arg1}",prevPage:"Previous Page"},en:{goToPage:"Go to Page",nextPage:"Next Page",pageXofY:"Page {arg0} of {arg1}",prevPage:"Previous Page"},es:{goToPage:"Ir a la p\xE1gina",nextPage:"P\xE1gina siguiente",pageXofY:"P\xE1gina {arg0} de {arg1}",prevPage:"P\xE1gina anterior"},fi:{goToPage:"Mene sivulle",nextPage:"Seuraava sivu",pageXofY:"Sivu {arg0} / {arg1}",prevPage:"Edellinen sivu"},"fr-CA":{goToPage:"Aller \xE0 la page",nextPage:"Page suivante",pageXofY:"Page {arg0} sur {arg1}",prevPage:"Page pr\xE9c\xE9dente"},fr:{goToPage:"Aller \xE0 la page",nextPage:"Page suivante",pageXofY:"Page {arg0} sur {arg1}",prevPage:"Page pr\xE9c\xE9dente"},he:{goToPage:"\u05DE\u05E2\u05D1\u05E8 \u05DC\u05E2\u05DE\u05D5\u05D3",nextPage:"\u05D4\u05E2\u05DE\u05D5\u05D3 \u05D4\u05D1\u05D0",pageXofY:"\u05E2\u05DE\u05D5\u05D3 {arg0} \u05DE\u05EA\u05D5\u05DA {arg1}",prevPage:"\u05D4\u05E2\u05DE\u05D5\u05D3 \u05D4\u05E7\u05D5\u05D3\u05DD"},hr:{goToPage:"Idi na stranicu",nextPage:"Slijede\u0107a stranica",pageXofY:"Stranica {arg0} od {arg1}",prevPage:"Prethodna stranica"},id:{goToPage:"Buka halaman",nextPage:"Halaman Berikutnya",pageXofY:"Halaman {arg0} dari {arg1}",prevPage:"Halaman Sebelumnya"},it:{goToPage:"Vai a pagina",nextPage:"Pagina successiva",pageXofY:"Pagina {arg0} di {arg1}",prevPage:"Pagina precedente"},ja:{goToPage:"\u30DA\u30FC\u30B8\u306B\u79FB\u52D5",nextPage:"\u6B21\u306E\u30DA\u30FC\u30B8",pageXofY:"\u30DA\u30FC\u30B8 {arg0}/{arg1}",prevPage:"\u524D\u306E\u30DA\u30FC\u30B8"},ko:{goToPage:"\uD398\uC774\uC9C0\uB85C \uC774\uB3D9",nextPage:"\uB2E4\uC74C \uD398\uC774\uC9C0",pageXofY:"{arg0}/{arg1} \uD398\uC774\uC9C0",prevPage:"\uC774\uC804 \uD398\uC774\uC9C0"},ms:{goToPage:"Pergi ke Halaman",nextPage:"Halaman Seterusnya",pageXofY:"Halaman {arg0} daripada {arg1}",prevPage:"Halaman Sebelumnya"},"nb-NO":{goToPage:"G\xE5 til side",nextPage:"Neste side",pageXofY:"Side {arg0} av {arg1}",prevPage:"Forrige side"},nl:{goToPage:"Ga naar pagina",nextPage:"Volgende pagina",pageXofY:"Pagina {arg0} van {arg1}",prevPage:"Vorige pagina"},pl:{goToPage:"Przejd\u017A do strony",nextPage:"Nast\u0119pna strona",pageXofY:"Strona {arg0} z {arg1}",prevPage:"Poprzednia strona"},"pt-PT":{goToPage:"Ir para p\xE1gina",nextPage:"P\xE1gina seguinte",pageXofY:"P\xE1gina {arg0} de {arg1}",prevPage:"P\xE1gina anterior"},pt:{goToPage:"Ir \xE0 P\xE1gina",nextPage:"P\xE1gina Seguinte",pageXofY:"P\xE1gina {arg0} de {arg1}",prevPage:"P\xE1gina Anterior"},ru:{goToPage:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0435",nextPage:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0430\u044F \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0430",pageXofY:"\u0421\u0442\u0440\u0430\u043D\u0438\u0446\u0430 {arg0} \u0438\u0437 {arg1}",prevPage:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0430\u044F \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0430"},sk:{goToPage:"\xCDs\u0165 na stranu",nextPage:"Dal\u0161ia strana",pageXofY:"Strana {arg0} z {arg1}",prevPage:"Predch\xE1dzaj\xFAca strana"},sl:{goToPage:"Pojdi na stran",nextPage:"Naslednja stran",pageXofY:"Stran {arg0} od {arg1}",prevPage:"Prej\u0161nja stran"},sv:{goToPage:"G\xE5 till sida",nextPage:"N\xE4sta sida",pageXofY:"Sida {arg0} av {arg1}",prevPage:"F\xF6reg\xE5ende sida"},th:{goToPage:"\u0E44\u0E1B\u0E17\u0E35\u0E48\u0E2B\u0E19\u0E49\u0E32",nextPage:"\u0E2B\u0E19\u0E49\u0E32\u0E16\u0E31\u0E14\u0E44\u0E1B",pageXofY:"\u0E2B\u0E19\u0E49\u0E32 {arg0} \u0E08\u0E32\u0E01 {arg1}",prevPage:"\u0E2B\u0E19\u0E49\u0E32\u0E01\u0E48\u0E2D\u0E19\u0E2B\u0E19\u0E49\u0E32"},tr:{goToPage:"Sayfaya Git",nextPage:"Sonraki Sayfa",pageXofY:"Sayfa {arg0}/{arg1}",prevPage:"\xD6nceki Sayfa"},uk:{goToPage:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0442\u043E\u0440\u0456\u043D\u043A\u0443",nextPage:"\u041D\u0430\u0441\u0442\u0443\u043F\u043D\u0430 \u0441\u0442\u043E\u0440\u0456\u043D\u043A\u0430",pageXofY:"\u0421\u0442\u043E\u0440\u0456\u043D\u043A\u0430 {arg0} \u0437 {arg1}",prevPage:"\u041F\u043E\u043F\u0435\u0440\u0435\u0434\u043D\u044F \u0441\u0442\u043E\u0440\u0456\u043D\u043A\u0430"},"zh-Hans":{goToPage:"\u524D\u5F80\u9875\u9762",nextPage:"\u4E0B\u4E00\u9875",pageXofY:"\u7B2C {arg0}/{arg1} \u9875",prevPage:"\u4E0A\u4E00\u9875"},"zh-Hant":{goToPage:"\u5230\u6B64\u9801",nextPage:"\u4E0B\u4E00\u9801",pageXofY:"\u7B2C{arg0}\u9801\uFF0C\u5171{arg1}\u9801",prevPage:"\u4E0A\u4E00\u9801"}};var zu=x({defaultClassName:"_1nsi9h17",variantClassNames:{isFocused:{true:"_1nsi9h18"},variant:{pinned:"_1nsi9h19",floating:"_1nsi9h1a"},size:{xs:"_1nsi9h1b",sm:"_1nsi9h1c",md:"_1nsi9h1d",lg:"_1nsi9h1e"}},defaultVariants:{},compoundVariants:[]}),Cu="_1nsi9h1f _1yep5z6ly _1yep5z6lq _1yep5z6eu",xu=x({defaultClassName:"_1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6g1 _1yep5z6e1",variantClassNames:{size:{xs:"_1nsi9h11 _1yep5z6wl _1yep5z6wm _1yep5z6wn _1yep5z6x9 _1yep5z6xa _1yep5z6xb _1yep5z6xx _1yep5z6xy _1yep5z6xz _1yep5z6yl _1yep5z6ym _1yep5z6yn _1yep5z6zy",sm:"_1nsi9h12 _1yep5z6101",md:"_1nsi9h13",lg:"_1nsi9h14"},variant:{floating:"_1yep5z6za _1yep5z6184 _1yep5z6182 _1yep5z6136",pinned:"_1yep5z617q"}},defaultVariants:{},compoundVariants:[]}),Pu=x({defaultClassName:"_1nsi9h1g _1yep5z6ev",variantClassNames:{isDisabled:{true:"_1yep5z6111"}},defaultVariants:{},compoundVariants:[]});var $x={style:"decimal"},Ux={xs:[_12.CaretLeftIcon,_12.CaretRightIcon],sm:[_16.CaretLeftIcon,_16.CaretRightIcon],md:[_20.CaretLeftIcon,_20.CaretRightIcon],lg:[_24.CaretLeftIcon,_24.CaretRightIcon]},Ru=bt__default.default.forwardRef(({className:r,style:e,minValue:t=1,defaultValue:o=1,incrementAriaLabel:a,decrementAriaLabel:n,"aria-label":i,size:s="md",variant:l="floating",hideActions:p,isDisabled:c,...d},m)=>{let{locale:u}=reactAria.useLocale(),y=B(_u),b={...d,formatOptions:$x,minValue:t,incrementAriaLabel:a||y.formatMessage("nextPage"),decrementAriaLabel:n||y.formatMessage("prevPage"),defaultValue:o,"aria-label":i||y.formatMessage("goToPage")},f=bt__default.default.useRef(null),g=reactStately.useNumberFieldState({...b,locale:u}),{inputProps:v,decrementButtonProps:h,incrementButtonProps:_,groupProps:C}=reactAria.useNumberField({...b,onKeyDown:j=>{j.key==="Enter"&&f.current?.blur(),d.onKeyDown?.(j);},isDisabled:c},g,f),{hoverProps:P,isHovered:w}=reactAria.useHover({}),{focusProps:z,isFocused:k,isFocusVisible:T}=reactAria.useFocusRing(),R=l==="floating",[N,S]=Ux[s],I=utils.filterTruthyValues({"data-focus-visible":T,"data-focused":k,"data-hovered":w,"data-block-id":d["data-block-id"],"data-block-class":d["data-block-class"]}),D=interactions.useInteractionModality()==="keyboard";return jsxRuntime.jsxs("div",{...reactAria.mergeProps(C,P,I),className:utils.classNames(xu({size:s,variant:l}),"BaselineUI-Pagination",r),style:e,ref:m,children:[p?null:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(A,{icon:N,...h,elementType:"div",size:s,style:{height:"100%",...R&&{borderRadius:0}},className:"BaselineUI-Pagination-DecrementButton",UNSAFE_NON_INTERACTIVE:D,isDisabled:c||h.isDisabled}),l==="floating"&&jsxRuntime.jsx(U,{orientation:"vertical"})]}),jsxRuntime.jsxs("div",{className:zu({isFocused:k,variant:l,size:s}),"aria-label":y.formatMessage("pageXofY",{arg0:v.value,arg1:g.maxValue}),children:[jsxRuntime.jsx("input",{...reactAria.mergeProps(v,z),ref:f,className:utils.classNames("BaselineUI-Pagination-Input",Cu),style:{width:`${v.value?.toString().length||1}ch`}}),jsxRuntime.jsxs("span",{className:Pu({isDisabled:c}),children:["/ ",jsxRuntime.jsx(or,{value:g.maxValue})]})]}),p?null:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[l==="floating"&&jsxRuntime.jsx(U,{orientation:"vertical"}),jsxRuntime.jsx(A,{icon:S,..._,elementType:"div",size:s,style:{height:"100%",...R&&{borderRadius:0}},className:"BaselineUI-Pagination-IncrementButton",UNSAFE_NON_INTERACTIVE:D,isDisabled:c||_.isDisabled})]})]})});Ru.displayName="Pagination";var Tu=({date:r,...e})=>{let t=reactAria.useDateFormatter(e);return jsxRuntime.jsx(jsxRuntime.Fragment,{children:t.format(r)})};Tu.displayName="DateFormat";var Jr=x({defaultClassName:"_1f789qjm",variantClassNames:{variant:{neutral:"_1yep5z6118",red:"_1yep5z610i",green:"_1yep5z610m",blue:"_1yep5z610u","high-contrast":"_1yep5z611b"},isDisabled:{true:"_1yep5z61nd"},isSelected:{true:"_1yep5z611c"}},defaultVariants:{},compoundVariants:[]}),Ra=x({defaultClassName:"_1f789qj0 _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6ax _1yep5z6ay _1yep5z6az _1yep5z6bl _1yep5z6bm _1yep5z6bn _1yep5z6c9 _1yep5z6ca _1yep5z6cb _1yep5z6cx _1yep5z6cy _1yep5z6cz _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6la _1yep5z6lq _1yep5z6ld",variantClassNames:{isFocusVisible:{true:"_1f789qj1"},variant:{neutral:"_1yep5z6128",red:"_1yep5z611n",green:"_1yep5z611r",blue:"_1yep5z611z","high-contrast":"_1yep5z612c"},isDisabled:{true:"_1f789qj7 _1yep5z6127"},allowsRemoving:{true:"_1f789qj8"},isSelected:{true:"_1yep5z612i"},allowsSelection:{true:"_1f789qja"},isHovered:{true:"_1f789qjb"},size:{md:"_1f789qjc",sm:"_1f789qjd"}},defaultVariants:{},compoundVariants:[[{allowsSelection:!0,isHovered:!0,variant:"neutral"},"_1yep5z61oa"],[{allowsSelection:!0,isHovered:!0,variant:"red"},"_1yep5z61np"],[{allowsSelection:!0,isHovered:!0,variant:"blue"},"_1yep5z61o1"],[{allowsSelection:!0,isHovered:!0,variant:"green"},"_1yep5z61nt"],[{allowsSelection:!0,isHovered:!0,variant:"high-contrast"},"_1yep5z61oe"],[{allowsSelection:!0,isSelected:!0,isHovered:!0},"_1yep5z61om"],[{variant:"high-contrast",isDisabled:!0},"_1yep5z61oa"],[{allowsRemoving:!0,size:"md"},"_1yep5z619c _1yep5z619d _1yep5z619e"],[{allowsRemoving:!0,size:"sm"},"_1yep5z61af _1yep5z61ag _1yep5z61ah"]]}),Nu="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69f _1yep5z69g _1yep5z69h",Eu="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z69i _1yep5z69j _1yep5z69k",Lu=x({defaultClassName:"_1f789qju",variantClassNames:{variant:{neutral:"_1f789qjv",red:"_1f789qjw",green:"_1f789qjx",blue:"_1f789qjy","high-contrast":"_1f789qjz"},isHovered:{true:"_1f789qj10"}},defaultVariants:{},compoundVariants:[[{isHovered:!0,variant:"neutral"},"_1f789qj11"],[{isHovered:!0,variant:"red"},"_1f789qj12"],[{isHovered:!0,variant:"blue"},"_1f789qj13"],[{isHovered:!0,variant:"green"},"_1f789qj14"],[{isHovered:!0,variant:"high-contrast"},"_1f789qj15"]]}),Ta=x({defaultClassName:"_1f789qje",variantClassNames:{variant:{neutral:"_1yep5z610x",red:"_1yep5z610i",green:"_1yep5z610m",blue:"_1yep5z610u","high-contrast":"_1yep5z6112"},isDisabled:{true:"_1yep5z61n4"},isSelected:{true:"_1yep5z6113"}},defaultVariants:{},compoundVariants:[]});var Bu=({item:r,state:e,variant:t="neutral",size:o="md"})=>{let a=bt__default.default.useRef(null),{focusProps:n,isFocusVisible:i}=reactAria.useFocusRing({within:!0}),{rowProps:s,gridCellProps:l,removeButtonProps:p,allowsRemoving:c,isDisabled:d,isSelected:m,allowsSelection:u}=reactAria.useTag({item:r},e,a),y=bt__default.default.useRef(null),{buttonProps:b}=reactAria.useButton(p,y),{hoverProps:f,isHovered:g}=reactAria.useHover({isDisabled:d}),{hoverProps:v,isHovered:h}=reactAria.useHover({isDisabled:d}),_=r.value?.icon,C=r.value?.data?.variant??t,P=o==="md"?_12.XIcon:_8.XIcon,w=o==="md"?_16.CheckmarkIcon:_12.CheckmarkIcon;return jsxRuntime.jsx("div",{...reactAria.mergeProps(s,n,v),ref:a,className:utils.classNames(Ra({isFocusVisible:i,variant:C,isDisabled:d,allowsRemoving:c,isSelected:m,allowsSelection:u,isHovered:h,size:o}),Ta({variant:C,isDisabled:d,isSelected:m}),"BaselineUI-Tag"),children:jsxRuntime.jsxs("div",{...l,className:Nu,children:[m?jsxRuntime.jsx(w,{size:o==="md"?16:12,className:utils.classNames(Jr({variant:C,isDisabled:d,isSelected:m}),"BaselineUI-Tag-Icon")}):null,!m&&_?jsxRuntime.jsx(_,{size:o==="md"?16:12,className:utils.classNames(Jr({variant:C,isDisabled:d,isSelected:m}),"BaselineUI-Tag-Icon")}):null,jsxRuntime.jsx(E,{paddingY:o==="md"?"sm":"none",typography:o==="sm"?"label.sm.medium":"label.md.medium",children:r.rendered}),c?jsxRuntime.jsx("button",{...reactAria.mergeProps(b,f),className:Lu({variant:C,isHovered:g}),children:jsxRuntime.jsx(P,{size:o==="md"?12:8})}):null]})})};var Fu=bt__default.default.forwardRef(({className:r,style:e,"data-block-id":t,"data-block-class":o,items:a,size:n="md",...i},s)=>{let l=bt.useMemo(()=>a.map(u=>({...u,data:{variant:u.variant}})),[a]),p=se(),c=bt__default.default.useRef(null),d=reactStately.useListState({...i,items:l,children:p}),{gridProps:m}=reactAria.useTagGroup(i,d,c);return jsxRuntime.jsx("div",{...m,className:utils.classNames(Eu,"BaselineUI-TagGroup",r),style:e,"data-block-id":t,"data-block-class":o,ref:L(s,c),children:[...d.collection].map(u=>jsxRuntime.jsx(Bu,{state:d,item:u,variant:i.variant,size:n},u.key))})});Fu.displayName="TagGroup";var Hu="_1yep5z6ln",Vu=x({defaultClassName:"_1kvz17db _1yep5z6la _1yep5z6lc",variantClassNames:{showActionsOnTriggerOnly:{true:"_1kvz17dc"},isTriggered:{true:"_1kvz17dd"}},defaultVariants:{},compoundVariants:[]}),$u=x({defaultClassName:"_1kvz17d0 _1yep5z64u _1yep5z64v _1yep5z64w _1yep5z676 _1yep5z677 _1yep5z678 _1yep5z68c _1yep5z68d _1yep5z68e _1yep5z660 _1yep5z661 _1yep5z662 _1yep5z6la _1yep5z6lb",variantClassNames:{isExpanded:{true:"_1kvz17d1"}},defaultVariants:{},compoundVariants:[]}),Uu="_1kvz17de",qu="_1yep5z6ev _1yep5z6dy",Ku=x({defaultClassName:"_1kvz17d2 _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kj _1yep5z6kk _1yep5z6kl _1yep5z6la _1yep5z6ld",variantClassNames:{isFocusVisible:{true:"_1kvz17d3"},isHovered:{true:"_1yep5z6g2",false:"_1yep5z6g3"},isDisabled:{true:"z9nup83"}},defaultVariants:{},compoundVariants:[]}),Gu="_1kvz17da _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z6dz",Wu=x({defaultClassName:"_1kvz17d7 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl",variantClassNames:{isDisabled:{true:"_1yep5z6ey",false:"_1yep5z6eu"}},defaultVariants:{},compoundVariants:[]});var Mi=bt__default.default.forwardRef(({children:r,className:e,style:t},o)=>{let{headers:a}=bt.useContext(it),{disabledKeys:n}=bt.useContext(it),{keyboardProps:i}=reactAria.useKeyboard({onKeyDown:s=>{let l=fe(s.target),p=l?Lo(l):Lo(),c=[...a?.keys()||[]].findIndex(b=>a?.get(b)?.current===p),d=a?.get(c||0),m=a?.size||0,u=b=>{let f=a.get(b-1<0?m-1:b-1);n?.has(f?.current?.getAttribute("data-key")||"")?u(b-1):f?.current?.focus();},y=b=>{let f=a.get((b+1)%m);n?.has(f?.current?.getAttribute("data-key")||"")?y(b+1):f?.current?.focus();};if(d)switch(s.key){case"Home":{s.preventDefault(),y(-1);break}case"End":{s.preventDefault(),u(m);break}case"ArrowDown":{s.preventDefault(),y(c);break}case"ArrowUp":{s.preventDefault(),u(c);break}default:s.continuePropagation();}}});return jsxRuntime.jsx("div",{...i,style:t,className:utils.classNames(Hu,e),ref:o,children:bt__default.default.Children.map(r,(s,l)=>bt__default.default.cloneElement(s,{index:l}))})});Mi.displayName="AccordionBase";var it=bt__default.default.createContext({expandedKeys:new Set,setExpandedKeys:()=>{},disabledKeys:new Set,headers:new Map,expansionMode:"multiple"}),Zu=bt__default.default.forwardRef(({children:r,disabledKeys:e,defaultExpandedKeys:t=new Set,expandedKeys:o,expansionMode:a="multiple",onChange:n,className:i,style:s},l)=>{let[p,c]=bt__default.default.useState(t),d=bt__default.default.useRef(new Map).current,[m,u]=bt__default.default.useState(a);bt.useEffect(()=>{u(a);},[a]),bt.useEffect(()=>{n?.(p);},[p,n]);let y=bt.useMemo(()=>({expandedKeys:o||p,setExpandedKeys:o?()=>{}:c,disabledKeys:e,headers:d,expansionMode:m}),[o,p,e,d,m]);return jsxRuntime.jsx(it.Provider,{value:y,children:jsxRuntime.jsx(reactAria.FocusScope,{children:jsxRuntime.jsx(Mi,{className:i,style:s,ref:l,children:r})})})});Zu.displayName="Accordion";var Ai=bt__default.default.forwardRef(({title:r,actions:e,controlId:t,value:o,id:a,index:n,subLabel:i,showActionsOnTriggerOnly:s},l)=>{let p=bt__default.default.useRef(null),{expandedKeys:c,setExpandedKeys:d,expansionMode:m,disabledKeys:u,headers:y}=bt.useContext(it),b=u?.has(o),f=reactAria.useFocusManager();utils.invariant(f);let{focusNext:g,focusPrevious:v}=f,{keyboardProps:h}=reactAria.useKeyboard({onKeyDown:I=>{I.key==="ArrowRight"?g({wrap:!0}):I.key==="ArrowLeft"?v({wrap:!0}):I.continuePropagation();},isDisabled:b});bt.useEffect(()=>{utils.invariant(typeof n=="number","AccordionItem must have an index"),y?.set(n,p);},[n,y]);let _=()=>{d(I=>{let M=new Set(I);return M.has(o)?M.delete(o):(m==="single"&&M.clear(),M.add(o)),M});},{buttonProps:C}=reactAria.useButton({"aria-expanded":c.has(o),"aria-controls":t,onPress:_,isDisabled:b},p),{pressProps:P}=reactAria.usePress({onPress:_,isDisabled:b}),{focusProps:w,isFocusVisible:z}=reactAria.useFocusRing(),{hoverProps:k,isHovered:T}=reactAria.useHover({isDisabled:b}),{focusProps:R,isFocusVisible:N}=reactAria.useFocusRing({within:!0}),S=c.has(o);return jsxRuntime.jsxs("h3",{...reactAria.mergeProps(h,P,k,R),className:Ku({isFocusVisible:z,isHovered:T,isDisabled:b}),ref:l,children:[jsxRuntime.jsxs("div",{className:Wu({isDisabled:!!b}),children:[jsxRuntime.jsx(_8.ChevronRightIcon,{className:$u({isExpanded:S}),size:8}),jsxRuntime.jsx("button",{...reactAria.mergeProps(C,w),id:a,"data-key":o,className:Gu,ref:p,children:r})]}),e?.length?jsxRuntime.jsx("div",{"data-testid":"action-buttons",className:Vu({showActionsOnTriggerOnly:s,isTriggered:N||T}),children:e.map((I,M)=>jsxRuntime.jsx(A,{variant:"secondary",size:"sm",excludeFromTabOrder:!0,isDisabled:b,...I},M))}):null,i?jsxRuntime.jsx("div",{className:qu,children:i}):null]})});Ai.displayName="AccordionHeader";var am=bt__default.default.forwardRef(({title:r,actions:e,children:t,value:o,index:a,subLabel:n,style:i,className:s,showActionsOnTriggerOnly:l},p)=>{let c=reactAria.useId(),d=reactAria.useId(),{expandedKeys:m}=bt.useContext(it),u=m.has(o);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(reactAria.FocusScope,{children:jsxRuntime.jsx(Ai,{value:o,actions:e,id:d,title:r,controlId:c,ref:p,index:a,subLabel:n,showActionsOnTriggerOnly:l})}),jsxRuntime.jsx(react.AnimatePresence,{initial:!1,children:u?jsxRuntime.jsx(react.motion.section,{role:"region","aria-labelledby":d,id:c,className:Uu,variants:{open:{height:"auto",opacity:1},closed:{height:0,opacity:0}},initial:"closed",animate:"open",exit:"closed",children:jsxRuntime.jsx("div",{style:i,className:s,children:t})}):null})]})});am.displayName="AccordionItem";var ro=bt__default.default.forwardRef(({variant:r,isOpen:e,selectedIcon:t,validationState:o="valid",valueProps:a,label:n,className:i,style:s,"data-block-id":l,"data-block-class":p,...c},d)=>{let m=bt__default.default.useRef(null),{buttonProps:u,isPressed:y}=reactAria.useButton({...c,isDisabled:c.isDisabled||c.isReadOnly},m),{hoverProps:b,isHovered:f}=reactAria.useHover({isDisabled:c.isDisabled}),{focusProps:g,isFocused:v,isFocusVisible:h}=reactAria.useFocusRing(),_=rr({isReadOnly:c.isReadOnly,validationState:o});c.isReadOnly&&(u.disabled=!1);let C=utils.filterTruthyValues({"data-disabled":c.isDisabled,"data-readonly":c.isReadOnly,"data-focused":v,"data-focus-visible":h,"data-hovered":f,"data-pressed":y,"data-open":e,"data-block-id":l,"data-block-class":p});return jsxRuntime.jsxs("button",{...reactAria.mergeProps(u,b,g,C),ref:L(d,m),className:utils.classNames(Id({isFocused:h,isDisabled:c.isDisabled,isOpen:e,isHovered:f,variant:r}),Ft({variant:r,isHovered:f,isFocused:h,validationState:o,isDisabled:!!c.isDisabled,isReadOnly:c.isReadOnly}),i,"BaselineUI-Select-Button"),style:s,children:[jsxRuntime.jsxs("span",{className:Td,children:[t?jsxRuntime.jsx(t,{size:24}):null,jsxRuntime.jsx("span",{...a,children:n})]}),_?jsxRuntime.jsx("span",{"aria-hidden":!0,className:utils.classNames(jt({validationState:o,isReadOnly:!!c.isReadOnly}),Rd),children:jsxRuntime.jsx(_,{size:16})}):null,jsxRuntime.jsx("span",{"aria-hidden":!0,children:jsxRuntime.jsx(_8.CaretDownIcon,{size:8,className:Sd({isOpen:e})})})]})});ro.displayName="SelectButton";var Na=bt__default.default.createContext({state:null,popoverAnchorRef:null}),Oi=bt__default.default.forwardRef(({className:r,style:e,labelPosition:t="top",variant:o="primary","data-block-id":a,"data-block-class":n,optionStyle:i,optionClassName:s,placement:l="bottom start",triggerClassName:p,triggerStyle:c,state:d,renderTrigger:m=({buttonProps:b,selectedValue:f,valueProps:g,isOpen:v,ref:h})=>{let _=f&&"icon"in f&&f.icon;return jsxRuntime.jsx(ro,{...b,className:p,style:c,isOpen:v,isReadOnly:u.isReadOnly,ref:h,variant:o,validationState:u.validationState,selectedIcon:_||void 0,label:f?"label"in f&&f?.label:u.placeholder,valueProps:g})},...u},y)=>{let{popoverAnchorRef:b}=bt.useContext(Na),f=bt__default.default.useRef(null),g=ye(u.portalContainer),{labelProps:v,triggerProps:h,valueProps:_,menuProps:C,descriptionProps:P,errorMessageProps:w}=reactAria.useSelect({...u,validationState:u.validationState==="error"?"invalid":"valid"},d,f),z=Ne({...u,descriptionProps:P,errorMessageProps:w,labelPosition:t}),k=d.selectedItem?.value??null;return jsxRuntime.jsxs(gt.Provider,{value:d,children:[jsxRuntime.jsxs("div",{style:e,className:utils.classNames(et({labelPosition:t}),"BaselineUI-Select",r),"data-block-id":a,"data-block-class":n,ref:y,children:[u.label||z?jsxRuntime.jsxs("div",{className:Qe({labelPosition:t,hasMessage:!!z}),children:[u.label?jsxRuntime.jsx("div",{...v,className:utils.classNames(Je,"BaselineUI-Select-Label"),children:u.label}):null,t==="start"&&z]}):null,jsxRuntime.jsx(reactAria.HiddenSelect,{state:d,triggerRef:f,isDisabled:u.isDisabled,label:u.label,name:u.name}),m({buttonProps:h,selectedValue:k,valueProps:_,isOpen:d.isOpen,ref:f}),t==="top"&&z]}),d?jsxRuntime.jsx(Ce,{placement:l,portalContainer:g,offset:2,state:d,triggerRef:b||f,style:e,className:"BaselineUI-Select-Popover",...u,children:jsxRuntime.jsx(de,{...C,label:u.label,items:u.items,showSelectedIcon:u.showSelectedIcon,className:at,optionStyle:i,optionClassName:s})}):null]})});Oi.displayName="SelectCore";var cm=bt__default.default.forwardRef((r,e)=>{let t=se(),o=reactStately.useSelectState({...r,validationState:r.validationState==="error"?"invalid":"valid",children:t});return jsxRuntime.jsx(Oi,{...r,ref:e,state:o})});cm.displayName="SelectStandalone";var lt=bt__default.default.forwardRef((r,e)=>{let{state:t}=bt.useContext(Na);return bt.useEffect(()=>{utils.invariant(t||r.items,"Select: A `state` that can be passed via context or `items` are required.");},[r.items,t]),t?jsxRuntime.jsx(Oi,{state:t,...r,ref:e}):jsxRuntime.jsx(cm,{...r,ref:e})});lt.displayName="Select";var um=bt__default.default.forwardRef(({className:r,style:e,variant:t,"data-block-id":o,icon:a,tooltipProps:n,...i},s)=>{let l=bt__default.default.useRef(null),p=bt.useCallback(({buttonProps:c,selectedValue:d,valueProps:m,isOpen:u,ref:y})=>{let b=d&&"icon"in d&&d.icon;return jsxRuntime.jsx(ne,{variant:"inverse",size:"sm",includeArrow:!1,text:i["aria-label"],offset:4,...n,children:jsxRuntime.jsx(ro,{...c,isOpen:u,isReadOnly:i.isReadOnly,ref:y,variant:t,validationState:i.validationState,selectedIcon:b||void 0,label:d?"label"in d&&d?.label:i.placeholder,valueProps:m})})},[i,n,t]);return jsxRuntime.jsxs(E,{display:"flex",flexDirection:"row",gap:"md",paddingX:"md",alignItems:"center",className:utils.classNames("BaselineUI-IconSelect",r),"data-block-id":o,style:e,ref:L(s,l),children:[a?jsxRuntime.jsx(a,{size:24,className:tokens.sprinkles({color:"icon.primary",display:"flex",flexShrink:0})}):null,jsxRuntime.jsx(lt,{...i,renderTrigger:p})]})});um.displayName="IconSelect";var mm="_1017q4c5",fm=x({defaultClassName:"_1017q4c0",variantClassNames:{size:{md:"_1017q4c1",sm:"_1017q4c2"},isDisabled:{true:"_1017q4c3"}},defaultVariants:{},compoundVariants:[]}),ym="_1017q4c4";var q0={sm:_16.AvatarIcon,md:_24.AvatarIcon},pr=bt__default.default.forwardRef(({className:r,style:e,size:t="md",icon:o=q0[t],name:a,imgSrc:n,showInitials:i,isDisabled:s,hasNotifications:l,imgLoading:p,"data-block-id":c,"data-block-class":d},m)=>{let{imgProps:u}=Ht({src:n,alt:a}),y=a?.split(" ").map(b=>b[0]).join("");return jsxRuntime.jsxs("span",{className:utils.classNames(fm({size:t,isDisabled:s}),"BaselineUI-Avatar",r),"data-disabled":s,ref:m,style:e,"aria-disabled":s,"data-block-id":c,"data-block-class":d,children:[n?jsxRuntime.jsx("img",{...u,loading:p,className:ym}):null,!i&&!n&&jsxRuntime.jsx(o,{size:t==="sm"?16:24}),i&&!n?t==="sm"?y[0]:y:null,l?jsxRuntime.jsx("div",{"data-testid":"notification",className:mm}):null]})});pr.displayName="Avatar";var bm="_1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z63l _1yep5z63m _1yep5z63n _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl",gm=x({defaultClassName:"_1x62fhb6 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6lp _1yep5z6lq _1yep5z6la _1yep5z6ld _1yep5z6ev _1yep5z69i _1yep5z69j _1yep5z69k",variantClassNames:{isHovered:{true:"_1yep5z610x"},isSelected:{true:"_1x62fhb8"},isFocusVisible:{true:"_1x62fhb9"},isDisabled:{true:"_1x62fhba _1yep5z6111"},variant:{primary:"_1x62fhbb _1yep5z6zy",ghost:"_1yep5z6101"}},defaultVariants:{},compoundVariants:[[{variant:"primary",isSelected:!0,isDisabled:!1},"_1yep5z61n0"],[{variant:"primary",isSelected:!0},"_1yep5z61o7"],[{variant:"ghost",isSelected:!0,isFocusVisible:!1},"_1x62fhbd"],[{variant:"ghost",isSelected:!0,isDisabled:!1},"_1yep5z61n7"],[{variant:"ghost",isDisabled:!0,isSelected:!0},"_1x62fhbe _1yep5z6ey"],[{variant:"primary",isHovered:!0},"_1yep5z61o8"]]}),vm=x({defaultClassName:"_1x62fhb3 _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6j1 _1yep5z6j2 _1yep5z6j3",variantClassNames:{variant:{primary:"_1x62fhb4",ghost:"_1yep5z6vl _1yep5z6vm _1yep5z6vn"}},defaultVariants:{},compoundVariants:[]}),hm="_1x62fhbl",Fi=x({defaultClassName:"_1x62fhbf _1yep5z6f6",variantClassNames:{isHovered:{true:"_1yep5z6118"},isSelected:{true:"_1x62fhbh"},isDisabled:{true:"_1yep5z611a"},variant:{primary:"_1x62fhbj",ghost:"_1x62fhbk"}},defaultVariants:{},compoundVariants:[[{variant:"primary",isSelected:!0,isDisabled:!1},"_1yep5z61nb"],[{variant:"ghost",isSelected:!0,isDisabled:!1},"_1yep5z61ng"],[{variant:"ghost",isDisabled:!0,isSelected:!0},"_1yep5z61nd"]]}),_m="_1yep5z6lu _1yep5z6lr _1yep5z6hx _1yep5z6lt",zm=x({defaultClassName:"_1x62fhb0 _1yep5z6ln _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3",variantClassNames:{variant:{primary:"_1yep5z6126",ghost:"_1x62fhb2"}},defaultVariants:{},compoundVariants:[]});var Cm=({state:r,...e})=>{let t=bt__default.default.useRef(null),{tabPanelProps:o}=reactAria.useTabPanel(e,r,t),{selectedItem:a}=r,{focusProps:n,isFocusVisible:i}=reactAria.useFocusRing();if(!a?.value)return null;let{className:s,style:l,"data-block-id":p}=a.value;return jsxRuntime.jsx("div",{...reactAria.mergeProps(o,n),ref:t,className:utils.classNames({[_m]:i},"Baseline-Tabs-TabPanel",s),"data-block-id":p,style:l,children:a?.props.children})};var $i=bt__default.default.forwardRef(({className:r,style:e,tabHeaderStyle:t,tabHeaderClassName:o,variant:a="primary",actions:n,onRemove:i,"data-block-id":s,...l},p)=>{let c=reactStately.useTabListState({...l,selectedKey:l.selectedValue,defaultSelectedKey:l.defaultSelectedValue,disabledKeys:l.disabledValues}),d=bt__default.default.useRef(null),{tabListProps:m}=reactAria.useTabList({...l,selectedKey:l.selectedValue,defaultSelectedKey:l.defaultSelectedValue,disabledKeys:l.disabledValues},c,d);return jsxRuntime.jsxs("div",{className:utils.classNames("BaselineUI-Tabs",r),style:e,ref:p,"data-block-id":s,children:[jsxRuntime.jsxs("div",{className:utils.classNames(zm({variant:a}),o),style:t,children:[jsxRuntime.jsx("div",{...m,className:vm({variant:a}),ref:d,children:[...c.collection].map(u=>(utils.invariant(u.value,"TabItem requires a value prop"),jsxRuntime.jsx(Pm,{item:u,state:c,onRemove:i,variant:a},u.key)))}),n?.map((u,y)=>jsxRuntime.jsx("div",{className:bm,children:jsxRuntime.jsx(A,{...u,variant:"secondary",size:"sm",className:utils.classNames(hm,u.className)})},y))]}),jsxRuntime.jsx(Cm,{state:c},c.selectedItem?.key)]})});$i.displayName="TabsBase";var Pm=({item:r,onRemove:e,state:t,variant:o})=>{let{key:a,value:n}=r,i=bt__default.default.useRef(null),{tabProps:s,isSelected:l,isDisabled:p}=reactAria.useTab({key:a},t,i),{hoverProps:c,isHovered:d}=reactAria.useHover({});utils.invariant(n,"TabButton requires a value prop");let{title:m,icon:u,titleStyle:y,titleClassName:b}=n,{focusProps:f,isFocusVisible:g,isFocused:v}=reactAria.useFocusRing(),{keyboardProps:h}=reactAria.useKeyboard({onKeyDown:C=>{C.key==="Backspace"&&e?e(a):C.continuePropagation();}}),_=utils.filterTruthyValues({"data-selected":l,"data-disabled":p,"data-focused":v,"data-hovered":d,"data-focus-visible":g});return jsxRuntime.jsxs("div",{...reactAria.mergeProps(h,s,c,f,_),className:utils.classNames(gm({isHovered:d,isSelected:l,isFocusVisible:g,isDisabled:p,variant:o}),"BaselineUI-Tabs-TabButton",b),style:y,ref:i,children:[u?jsxRuntime.jsx(u,{size:20,className:Fi({isHovered:d,isSelected:l,isDisabled:p,variant:o})}):null,m,e?jsxRuntime.jsx(A,{variant:"secondary",elementType:"div",icon:_8.XIcon,size:"xxs",onPress:()=>{e(a);},excludeFromTabOrder:!0,UNSAFE_NON_INTERACTIVE:!0,style:{display:"inline-flex",opacity:l||v||d?1:0},className:Fi({isHovered:d,isSelected:l,isDisabled:p,variant:o})}):null]})};Pm.displayName="TabButton";var km=bt__default.default.forwardRef(function({children:e,...t},o){let a=bt.useMemo(()=>bt__default.default.Children.map(e,n=>!n||!bt__default.default.isValidElement(n)||typeof n.type=="string"?null:{...n.props,id:n.props.value}).filter(Boolean),[e]);return jsxRuntime.jsx($i,{...t,ref:o,items:a,children:n=>jsxRuntime.jsx(reactStately.Item,{title:n.title,children:n.children},n.key)})});km.displayName="Tabs";var Sm=({children:r,title:e,value:t})=>(utils.invariant(t,"TabItem requires a value prop"),utils.invariant(e,"TabItem requires a title prop"),utils.invariant(r,"TabItem requires children"),r);Sm.displayName="TabItem";var Im={ar:{close:"\u0625\u063A\u0644\u0627\u0642"},cs:{close:"Zav\u0159\xEDt"},cy:{close:"Cau"},da:{close:"Luk"},de:{close:"Schlie\xDFen"},el:{close:"\u039A\u03BB\u03B5\u03AF\u03C3\u03B9\u03BC\u03BF"},"en-GB":{close:"Close"},en:{close:"Close"},es:{close:"Cerrar"},fi:{close:"Sulje"},"fr-CA":{close:"Fermer"},fr:{close:"Fermer"},he:{close:"\u05E1\u05D2\u05D9\u05E8\u05D4"},hr:{close:"Zatvori"},id:{close:"Tutup"},it:{close:"Chiudi"},ja:{close:"\u9589\u3058\u308B"},ko:{close:"\uB2EB\uAE30"},ms:{close:"Tutup"},"nb-NO":{close:"Lukk"},nl:{close:"Sluit"},pl:{close:"Zamknij"},"pt-PT":{close:"Fechar"},pt:{close:"Fechar"},ru:{close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C"},sk:{close:"Zavrie\u0165"},sl:{close:"Zapri"},sv:{close:"St\xE4ng"},th:{close:"\u0E1B\u0E34\u0E14"},tr:{close:"Kapat"},uk:{close:"\u0417\u0430\u043A\u0440\u0438\u0442\u0438"},"zh-Hans":{close:"\u5173\u95ED"},"zh-Hant":{close:"\u95DC\u9589"}};var Rm=x({defaultClassName:"kfun6yt _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6af _1yep5z6ag _1yep5z6ah",variantClassNames:{arrangement:{single:"_1yep5z6vi _1yep5z6vj _1yep5z6vk",multi:"_1yep5z6157 _1yep5z6158 _1yep5z6159",compact:"_1yep5z6157 _1yep5z6158 _1yep5z6159"}},defaultVariants:{},compoundVariants:[]}),Tm=x({defaultClassName:"kfun6y0 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6ln",variantClassNames:{variant:{info:"_1yep5z611y",warning:"_1yep5z611u",error:"_1yep5z611m",success:"_1yep5z611q"},arrangement:{single:"kfun6y5 _1yep5z616m _1yep5z616n _1yep5z616o _1yep5z615m _1yep5z615n _1yep5z615o",multi:"kfun6y6",compact:"kfun6y7 _1yep5z6mc _1yep5z6md _1yep5z6me _1yep5z6oo _1yep5z6op _1yep5z6oq _1yep5z6pu _1yep5z6pv _1yep5z6pw _1yep5z6ni _1yep5z6nj _1yep5z6nk _1yep5z615d _1yep5z615e _1yep5z615f _1yep5z6wi _1yep5z6wj _1yep5z6wk"},hasButton:{true:"kfun6y8"},hasCloseButton:{true:"kfun6y9"}},defaultVariants:{},compoundVariants:[[{hasButton:!1,arrangement:"single"},"_1yep5z618f _1yep5z618g _1yep5z618h _1yep5z61ar _1yep5z61as _1yep5z61at _1yep5z61bx _1yep5z61by _1yep5z61bz _1yep5z619l _1yep5z619m _1yep5z619n"],[{hasButton:!0,arrangement:"compact"},"_1yep5z618f _1yep5z618g _1yep5z618h _1yep5z61ar _1yep5z61as _1yep5z61at _1yep5z61bx _1yep5z61by _1yep5z61bz _1yep5z619l _1yep5z619m _1yep5z619n"],[{hasCloseButton:!0,arrangement:"compact"},"_1yep5z61af _1yep5z61ag _1yep5z61ah _1yep5z6199 _1yep5z619a _1yep5z619b"]]}),Nm=x({defaultClassName:"kfun6yq _1yep5z6eu",variantClassNames:{size:{sm:"_1yep5z6106",md:"_1yep5z6109"}},defaultVariants:{},compoundVariants:[]}),Em=x({defaultClassName:"kfun6ym _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl",variantClassNames:{arrangement:{single:"kfun6yn",multi:"_1yep5z615j _1yep5z615k _1yep5z615l",compact:"_1yep5z6n6 _1yep5z6n7 _1yep5z6n8 _1yep5z6pi _1yep5z6pj _1yep5z6pk _1yep5z6qo _1yep5z6qp _1yep5z6qq _1yep5z6oc _1yep5z6od _1yep5z6oe _1yep5z6161 _1yep5z6162 _1yep5z6163"}},defaultVariants:{},compoundVariants:[]}),Lm=x({defaultClassName:"kfun6yh _1yep5z6lk",variantClassNames:{variant:{info:"_1yep5z610t",warning:"_1yep5z610p",error:"_1yep5z610h",success:"_1yep5z610l"}},defaultVariants:{},compoundVariants:[]}),Mm=x({defaultClassName:"kfun6ye _1yep5z6eu",variantClassNames:{size:{sm:"_1yep5z6108",md:"_1yep5z610b"}},defaultVariants:{},compoundVariants:[]}),Dm=x({defaultClassName:"kfun6ya _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3",variantClassNames:{arrangement:{single:"_1yep5z615m _1yep5z615n _1yep5z615o",multi:"_1yep5z6r0 _1yep5z6r1 _1yep5z6r2 _1yep5z6tc _1yep5z6td _1yep5z6te",compact:"_1yep5z6157 _1yep5z6158 _1yep5z6159"}},defaultVariants:{},compoundVariants:[]});var CP={error:{sm:_16.ErrorAltCircleFilledIcon,md:_20.ErrorAltCircleFilledIcon},info:{sm:_16.InfoCircleFilledIcon,md:_20.InfoCircleFilledIcon},success:{sm:_16.CheckmarkCircleFilledIcon,md:_20.CheckCircleFilledIcon},warning:{sm:_16.WarningFilledIcon,md:_20.WarningFilledIcon}},Da=bt__default.default.forwardRef(({className:r,description:e,actionLabel:t,onAction:o,style:a,variant:n="info",title:i,arrangement:s="single",onClose:l,size:p="sm","data-block-id":c,"data-block-class":d,elementProps:m},u)=>{let y=B(Im),b=t&&jsxRuntime.jsx(G,{variant:s==="compact"?"tertiary":"ghost",label:t,onPress:o}),f=CP[n][p];return jsxRuntime.jsxs("div",{className:utils.classNames(Tm({variant:n,arrangement:s,hasButton:!!t||!!l,hasCloseButton:!!l}),"BaselineUI-InlineAlert",r),"data-block-id":c,"data-block-class":d,style:a,role:"alert",ref:u,...m?.root,children:[jsxRuntime.jsxs("div",{className:Dm({arrangement:s}),children:[jsxRuntime.jsx(f,{className:Lm({variant:n}),size:16}),jsxRuntime.jsxs("div",{className:Rm({arrangement:s}),...m?.content,children:[jsxRuntime.jsx("h3",{className:Mm({size:p}),...m?.title,children:i}),jsxRuntime.jsx("section",{className:Nm({size:p}),...m?.description,children:e})]}),s==="compact"&&b]}),jsxRuntime.jsxs("div",{className:Em({arrangement:s}),children:[s!=="compact"&&b,l?jsxRuntime.jsx(A,{variant:"secondary",icon:_16.XIcon,size:"sm",onPress:l,"aria-label":y.formatMessage("close"),...m?.close}):null]})]})});Da.displayName="InlineAlert";var pt={ar:{add:"\u0625\u0636\u0627\u0641\u0629",addColor:"\u0625\u0636\u0627\u0641\u0629 \u0644\u0648\u0646",cancel:"\u0625\u0644\u063A\u0627\u0621",colorFormat:"\u062A\u0646\u0633\u064A\u0642 \u0627\u0644\u0644\u0648\u0646",colorPresets:"\u0627\u0644\u0623\u0644\u0648\u0627\u0646 \u0627\u0644\u0645\u0633\u0628\u0642\u0629",customColors:"\u0623\u0644\u0648\u0627\u0646 \u0645\u062E\u0635\u0635\u0629",newColor:"\u0644\u0648\u0646 \u0645\u062E\u0635\u0635 \u062C\u062F\u064A\u062F",noColor:"\u0644\u0627 \u064A\u0648\u062C\u062F",removeColor:"\u0625\u0632\u0627\u0644\u0629 \u0627\u0644\u0644\u0648\u0646",transparent:"\u0634\u0641\u0627\u0641"},cs:{add:"P\u0159idat",addColor:"P\u0159idat barvu",cancel:"Zru\u0161it",colorFormat:"Form\xE1t barvy",colorPresets:"P\u0159edvolby barev",customColors:"Vlastn\xED barvy",newColor:"Vlastn\xED barva",noColor:"Nen\xED",removeColor:"Odebrat barvu",transparent:"Pr\u016Fhledn\xE1"},cy:{add:"Ychwanegu",addColor:"Ychwanegu Lliw",cancel:"Canslo",colorFormat:"Fformat Lliw",colorPresets:"Rhagosodiadau Lliw",customColors:"Lliwiau Custom",newColor:"Lliw Personol Newydd",noColor:"Dim",removeColor:"Tynnu Lliw",transparent:"Tryloyw"},da:{add:"Tilf\xF8j",addColor:"Tilf\xF8j Farve",cancel:"Annuller",colorFormat:"Farveformat",colorPresets:"Farvevalg",customColors:"Brugerdefinerede farver",newColor:"Ny tilpasset farve",noColor:"Ingen",removeColor:"Fjern Farve",transparent:"Transparent"},de:{add:"Hinzuf\xFCgen",addColor:"Farbe hinzuf\xFCgen",cancel:"Abbrechen",colorFormat:"Farbformat",colorPresets:"Farbvorlagen",customColors:"Benutzerdefinierte Farben",newColor:"Neue benutzerdefinierte Farbe",noColor:"Kein",removeColor:"Farbe entfernen",transparent:"Transparent"},el:{add:"\u03A0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7",addColor:"\u03A0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7 \u03A7\u03C1\u03CE\u03BC\u03B1\u03C4\u03BF\u03C2",cancel:"\u0391\u03BA\u03CD\u03C1\u03C9\u03C3\u03B7",colorFormat:"\u039C\u03BF\u03C1\u03C6\u03AE \u03C7\u03C1\u03CE\u03BC\u03B1\u03C4\u03BF\u03C2",colorPresets:"\u03A0\u03C1\u03BF\u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AD\u03C2 \u03C7\u03C1\u03C9\u03BC\u03AC\u03C4\u03C9\u03BD",customColors:"\u03A0\u03C1\u03BF\u03C3\u03B1\u03C1\u03BC\u03BF\u03C3\u03BC\u03AD\u03BD\u03B1 \u03A7\u03C1\u03CE\u03BC\u03B1\u03C4\u03B1",newColor:"\u039D\u03AD\u03BF \u03C0\u03C1\u03BF\u03C3\u03B1\u03C1\u03BC\u03BF\u03C3\u03BC\u03AD\u03BD\u03BF \u03C7\u03C1\u03CE\u03BC\u03B1",noColor:"\u039A\u03B1\u03BD\u03AD\u03BD\u03B1\u03C2",removeColor:"\u0391\u03C6\u03B1\u03AF\u03C1\u03B5\u03C3\u03B7 \u03A7\u03C1\u03CE\u03BC\u03B1\u03C4\u03BF\u03C2",transparent:"\u0397\u03BC\u03B9\u03B4\u03B9\u03B1\u03C6\u03B1\u03BD\u03AE\u03C2"},"en-GB":{add:"Add",addColor:"Add Colour",cancel:"Cancel",colorFormat:"Colour Format",colorPresets:"Colour Presets",customColors:"Custom Colours",newColor:"New Custom Colour",noColor:"None",removeColor:"Remove Colour",transparent:"Transparent"},en:{add:"Add",addColor:"Add Color",cancel:"Cancel",colorFormat:"Color Format",colorPresets:"Color Presets",customColors:"Custom Colors",newColor:"New Custom Color",noColor:"None",removeColor:"Remove Color",transparent:"Transparent"},es:{add:"A\xF1adir",addColor:"A\xF1adir color",cancel:"Cancelar",colorFormat:"Formato de color",colorPresets:"Preajustes de color",customColors:"Colores personalizados",newColor:"Nuevo color personalizado",noColor:"Ninguna",removeColor:"Eliminar color",transparent:"Transparente"},fi:{add:"Lis\xE4\xE4",addColor:"Lis\xE4\xE4 v\xE4ri",cancel:"Kumoa",colorFormat:"V\xE4rimuoto",colorPresets:"V\xE4rin esiasetukset",customColors:"Mukautetut v\xE4rit",newColor:"Uusi muokattu v\xE4ri",noColor:"Ei mit\xE4\xE4n",removeColor:"Poista v\xE4ri",transparent:"L\xE4pin\xE4kyv\xE4"},"fr-CA":{add:"Ajouter",addColor:"Ajouter une couleur",cancel:"Annuler",colorFormat:"Format de couleur",colorPresets:"Pr\xE9r\xE9glages de couleur",customColors:"Couleurs personnalis\xE9es",newColor:"Nouvelle couleur personnalis\xE9e",noColor:"Aucune",removeColor:"Supprimer la couleur",transparent:"Transparent"},fr:{add:"Ajouter",addColor:"Ajouter une couleur",cancel:"Annuler",colorFormat:"Format de couleur",colorPresets:"Pr\xE9r\xE9glages de couleur",customColors:"Couleurs personnalis\xE9es",newColor:"Nouvelle couleur personnalis\xE9e",noColor:"Aucune",removeColor:"Supprimer la couleur",transparent:"Transparent"},he:{add:"\u05D4\u05D5\u05E1\u05E4\u05D4",addColor:"\u05D4\u05D5\u05E1\u05E3 \u05E6\u05D1\u05E2",cancel:"\u05D1\u05D9\u05D8\u05D5\u05DC",colorFormat:"\u05E4\u05D5\u05E8\u05DE\u05D8 \u05E6\u05D1\u05E2",colorPresets:"\u05DE\u05E6\u05D1\u05D9 \u05E6\u05D1\u05E2 \u05DE\u05EA\u05D5\u05DB\u05E0\u05EA\u05D9\u05DD",customColors:"\u05E6\u05D1\u05E2\u05D9\u05DD \u05DE\u05D5\u05EA\u05D0\u05DE\u05D9\u05DD \u05D0\u05D9\u05E9\u05D9\u05EA",newColor:"\u05E6\u05D1\u05E2 \u05DE\u05D5\u05EA\u05D0\u05DD \u05D0\u05D9\u05E9\u05D9\u05EA \u05D7\u05D3\u05E9",noColor:"\u05DC\u05DC\u05D0",removeColor:"\u05D4\u05E1\u05E8 \u05E6\u05D1\u05E2",transparent:"\u05E9\u05E7\u05D5\u05E3"},hr:{add:"Dodati",addColor:"Dodaj boju",cancel:"Otka\u017Ei",colorFormat:"Format boje",colorPresets:"Prijedlozi boja",customColors:"Prilago\u0111ene boje",newColor:"Nova prilago\u0111ena boja",noColor:"Prazno",removeColor:"Ukloni boju",transparent:"Prozirna"},id:{add:"Tambah",addColor:"Tambah Warna",cancel:"Batalkan",colorFormat:"Format Warna",colorPresets:"Preset Warna",customColors:"Warna Kustom",newColor:"Warna Khusus Baru",noColor:"Tidak ada",removeColor:"Hapus Warna",transparent:"Transparan"},it:{add:"Aggiungi",addColor:"Aggiungi colore",cancel:"Annulla",colorFormat:"Formato del colore",colorPresets:"Colori predefiniti",customColors:"Colori personalizzati",newColor:"Nuovo colore personalizzato",noColor:"Nessuno",removeColor:"Rimuovi colore",transparent:"Trasparente"},ja:{add:"\u8FFD\u52A0",addColor:"\u8272\u3092\u8FFD\u52A0",cancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",colorFormat:"\u30AB\u30E9\u30FC\u30D5\u30A9\u30FC\u30DE\u30C3\u30C8",colorPresets:"\u30AB\u30E9\u30FC\u30D7\u30EA\u30BB\u30C3\u30C8",customColors:"\u30AB\u30B9\u30BF\u30E0\u30AB\u30E9\u30FC",newColor:"\u65B0\u898F\u30AB\u30B9\u30BF\u30E0\u30AB\u30E9\u30FC",noColor:"\u306A\u3057",removeColor:"\u8272\u3092\u524A\u9664",transparent:"\u900F\u660E"},ko:{add:"\uCD94\uAC00",addColor:"\uC0C9\uC0C1 \uCD94\uAC00",cancel:"\uCDE8\uC18C",colorFormat:"\uC0C9\uC0C1 \uD615\uC2DD",colorPresets:"\uC0C9\uC0C1 \uBBF8\uB9AC\uC124\uC815",customColors:"\uC0AC\uC6A9\uC790 \uC815\uC758 \uC0C9\uC0C1",newColor:"\uC0C8\uB85C\uC6B4 \uC0AC\uC6A9\uC790\uC9C0\uC815 \uC0C9\uC0C1",noColor:"\uC5C6\uC74C",removeColor:"\uC0C9\uC0C1 \uC81C\uAC70",transparent:"\uD22C\uBA85"},ms:{add:"Tambah",addColor:"Tambah Warna",cancel:"Batal",colorFormat:"Format Warna",colorPresets:"Praset Warna",customColors:"Warna Kustom",newColor:"Warna Tersuai Baharu",noColor:"Tiada",removeColor:"Buang Warna",transparent:"Lut Sinar"},"nb-NO":{add:"Legg til",addColor:"Legg til farge",cancel:"Avbryt",colorFormat:"Fargeformat",colorPresets:"Fargeinnstillinger",customColors:"Egendefinerte farger",newColor:"Ny tilpasset farge",noColor:"Ingen",removeColor:"Fjern farge",transparent:"Gjennomsiktig"},nl:{add:"Voeg toe",addColor:"Kleur toevoegen",cancel:"Annuleer",colorFormat:"Kleurformaat",colorPresets:"Kleurvoorinstellingen",customColors:"Aangepaste kleuren",newColor:"Nieuwe aangepaste kleur",noColor:"Geen",removeColor:"Kleur verwijderen",transparent:"Doorzichtig"},pl:{add:"Dodaj",addColor:"Dodaj kolor",cancel:"Anuluj",colorFormat:"Format koloru",colorPresets:"Wst\u0119pnie ustawione kolory",customColors:"Niestandardowe kolory",newColor:"Nowy kolor niestandardowy",noColor:"Brak",removeColor:"Usu\u0144 kolor",transparent:"Prze\u015Bwiecaj\u0105ce"},"pt-PT":{add:"Adicionar",addColor:"Adicionar cor",cancel:"Cancelar",colorFormat:"Formato de cor",colorPresets:"Predefini\xE7\xF5es de cor",customColors:"Cores personalizadas",newColor:"Nova cor personalizada",noColor:"Nenhum",removeColor:"Remover cor",transparent:"Transparente"},pt:{add:"Adicionar",addColor:"Adicionar cor",cancel:"Cancelar",colorFormat:"Formato de cor",colorPresets:"Pr\xE9-ajustes de Cores",customColors:"Cores personalizadas",newColor:"Nova Cor Personalizada",noColor:"Nenhum",removeColor:"Remover cor",transparent:"Transparente"},ru:{add:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C",addColor:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0446\u0432\u0435\u0442",cancel:"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C",colorFormat:"\u0424\u043E\u0440\u043C\u0430\u0442 \u0446\u0432\u0435\u0442\u0430",colorPresets:"\u0411\u0438\u0431\u043B\u0438\u043E\u0442\u0435\u043A\u0430 \u0446\u0432\u0435\u0442\u043E\u0432",customColors:"\u041F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C\u0441\u043A\u0438\u0435 \u0446\u0432\u0435\u0442\u0430",newColor:"\u041D\u043E\u0432\u044B\u0439 \u0441\u043E\u0431\u0441\u0442\u0432\u0435\u043D\u043D\u044B\u0439 \u0446\u0432\u0435\u0442",noColor:"\u041D\u0435\u0442",removeColor:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0446\u0432\u0435\u0442",transparent:"\u041F\u0440\u043E\u0437\u0440\u0430\u0447\u043D\u044B\u0439"},sk:{add:"Prida\u0165",addColor:"Prida\u0165 farbu",cancel:"Zru\u0161i\u0165",colorFormat:"Form\xE1t farby",colorPresets:"Predvo\u013Eby farieb",customColors:"Vlastn\xE9 farby",newColor:"Vlastn\xE1 farba",noColor:"\u017Diadny",removeColor:"Odstr\xE1ni\u0165 farbu",transparent:"Prieh\u013Eadn\xE1"},sl:{add:"Dodaj",addColor:"Dodaj barvo",cancel:"Prekli\u010Di",colorFormat:"Barvni format",colorPresets:"Barvne predloge",customColors:"Prilagojene barve",newColor:"Nova barva po meri",noColor:"Prazna stran",removeColor:"Odstrani barvo",transparent:"Prosojna"},sv:{add:"L\xE4gg till",addColor:"L\xE4gg till f\xE4rg",cancel:"Avbryt",colorFormat:"F\xE4rgformat",colorPresets:"F\xF6rval f\xF6r f\xE4rger",customColors:"Anpassade f\xE4rger",newColor:"Ny anpassad f\xE4rg",noColor:"Ingen",removeColor:"Ta bort f\xE4rg",transparent:"Genomskinligt"},th:{add:"\u0E40\u0E1E\u0E34\u0E48\u0E21",addColor:"\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E2A\u0E35",cancel:"\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01",colorFormat:"\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E2A\u0E35",colorPresets:"\u0E04\u0E48\u0E32\u0E2A\u0E35\u0E17\u0E35\u0E48\u0E15\u0E31\u0E49\u0E07\u0E44\u0E27\u0E49\u0E25\u0E48\u0E27\u0E07\u0E2B\u0E19\u0E49\u0E32",customColors:"\u0E2A\u0E35\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E40\u0E2D\u0E07",newColor:"\u0E2A\u0E35\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E40\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48",noColor:"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E40\u0E25\u0E22",removeColor:"\u0E25\u0E1A\u0E2A\u0E35",transparent:"\u0E42\u0E1B\u0E23\u0E48\u0E07\u0E43\u0E2A"},tr:{add:"Ekle",addColor:"Renk Ekle",cancel:"Vazge\xE7",colorFormat:"Renk Format\u0131",colorPresets:"Renk \xD6nayarlar\u0131",customColors:"\xD6zel Renkler",newColor:"Yeni \xF6zel renk",noColor:"Hi\xE7biri",removeColor:"Rengi Kald\u0131r",transparent:"\u015Eeffaf"},uk:{add:"\u0414\u043E\u0434\u0430\u0442\u0438",addColor:"\u0414\u043E\u0434\u0430\u0442\u0438 \u043A\u043E\u043B\u0456\u0440",cancel:"\u0421\u043A\u0430\u0441\u0443\u0432\u0430\u0442\u0438",colorFormat:"\u0424\u043E\u0440\u043C\u0430\u0442 \u043A\u043E\u043B\u044C\u043E\u0440\u0443",colorPresets:"\u0411\u0456\u0431\u043B\u0456\u043E\u0442\u0435\u043A\u0430 \u043A\u043E\u043B\u044C\u043E\u0440\u0456\u0432",customColors:"\u041A\u043E\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0446\u044C\u043A\u0456 \u043A\u043E\u043B\u044C\u043E\u0440\u0438",newColor:"\u041D\u043E\u0432\u0438\u0439 \u0432\u043B\u0430\u0441\u043D\u0438\u0439 \u043A\u043E\u043B\u0456\u0440",noColor:"\u041D\u0435\u043C\u0430\u0454",removeColor:"\u0412\u0438\u0434\u0430\u043B\u0438\u0442\u0438 \u043A\u043E\u043B\u0456\u0440",transparent:"\u041F\u0440\u043E\u0437\u043E\u0440\u0438\u0439"},"zh-Hans":{add:"\u6DFB\u52A0",addColor:"\u6DFB\u52A0\u989C\u8272",cancel:"\u53D6\u6D88",colorFormat:"\u989C\u8272\u683C\u5F0F",colorPresets:"\u989C\u8272\u9884\u8BBE",customColors:"\u81EA\u5B9A\u4E49\u989C\u8272",newColor:"\u65B0\u81EA\u5B9A\u4E49\u989C\u8272",noColor:"\u65E0",removeColor:"\u79FB\u9664\u989C\u8272",transparent:"\u900F\u660E"},"zh-Hant":{add:"\u52A0\u5165",addColor:"\u6DFB\u52A0\u984F\u8272",cancel:"\u53D6\u6D88",colorFormat:"\u984F\u8272\u683C\u5F0F",colorPresets:"\u984F\u8272\u9810\u8A2D\u9805",customColors:"\u81EA\u8A02\u984F\u8272",newColor:"\u65B0\u81EA\u8A02\u984F\u8272",noColor:"\u7121",removeColor:"\u79FB\u9664\u984F\u8272",transparent:"\u900F\u660E"}};var Aa=({children:r})=>{let{triggerProps:e}=bt__default.default.useContext(ht);return jsxRuntime.jsx(interactions.PressResponder,{...e,children:r})};Aa.displayName="ModalTrigger";var RP=({children:r})=>{let{state:e}=bt__default.default.useContext(ht);return jsxRuntime.jsx(interactions.PressResponder,{onPress:()=>{e?.close();},children:r})};var Am="_1dbkl53 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6ln",Bm="_1dbkl5e",Om=x({defaultClassName:"_1dbkl54 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6ly _1yep5z6lq _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6eu _1yep5z6lp _1yep5z6dy",variantClassNames:{isHovered:{true:"_1dbkl55"},isFocusVisible:{true:"_1dbkl56"},isDisabled:{true:"z9nup83 _1yep5z6111"},labelPosition:{top:"_1dbkl58",start:"_1dbkl59"}},defaultVariants:{},compoundVariants:[]}),jm="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kj _1yep5z6kk _1yep5z6kl",Fm=x({defaultClassName:"_1dbkl50 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6dy _1yep5z6ev",variantClassNames:{labelPosition:{top:"_1yep5z6oi _1yep5z6oj _1yep5z6ok",start:"_1dbkl52"}},defaultVariants:{},compoundVariants:[]}),Ba="_1dbkl5l _1yep5z6iy _1yep5z6iz _1yep5z6j0 _1yep5z69f _1yep5z69g _1yep5z69h",Hm="_1dbkl5f z9nup87",Oa="_1dbkl5m _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6id _1yep5z6ie _1yep5z6if",Vm="_1dbkl5k _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6lq",$m="_1yep5z63r _1yep5z63s _1yep5z63t _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6kj _1yep5z6kk _1yep5z6kl _1yep5z6dy _1yep5z6ev _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6jj _1yep5z6jk _1yep5z6jl",ja=x({defaultClassName:"_1dbkl5h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6g1",variantClassNames:{includesCustomColorPicker:{true:"_1yep5z6n6 _1yep5z6n7 _1yep5z6n8"}},defaultVariants:{},compoundVariants:[]}),Ki="_1dbkl5v _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3",Um=x({defaultClassName:"_1dbkl5q _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6br _1yep5z6bs _1yep5z6bt _1yep5z6d3 _1yep5z6d4 _1yep5z6d5 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6lz _1yep5z6h4 _1yep5z6lq _1yep5z6eu _1yep5z6dy",variantClassNames:{isFocused:{true:"_1dbkl5r _1yep5z6134"},isHovered:{true:"_1dbkl5s"},allowAlpha:{false:"_1yep5z6x9 _1yep5z6xa _1yep5z6xb _1yep5z6yl _1yep5z6ym _1yep5z6yn _1yep5z617q"}},defaultVariants:{},compoundVariants:[[{isHovered:!0,isFocused:!1},"_1yep5z61pb"]]}),qm=x({defaultClassName:"_1dbkl5a _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62c _1yep5z62d _1yep5z62e _1yep5z63i _1yep5z63j _1yep5z63k _1yep5z616 _1yep5z617 _1yep5z618 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z69c _1yep5z69d _1yep5z69e _1yep5z6f5 _1yep5z6lp _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6la _1yep5z6ld",variantClassNames:{isHovered:{true:"_1yep5z6126"},isFocusVisible:{true:"_1yep5z617w _1yep5z617u _1yep5z617x _1yep5z6140"},isDisabled:{true:"_1yep5z611a"}},defaultVariants:{},compoundVariants:[]}),no="_1dbkl5u",Fa="_1dbkl5g",Ha="_1dbkl5j _1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z69f _1yep5z69g _1yep5z69h",Gi="_1dbkl5x",Km="_1dbkl5w",Wi="_1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z69l _1yep5z69m _1yep5z69n",Va=x({defaultClassName:"_1dbkl5n _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6lu _1yep5z6ig _1yep5z6ih _1yep5z6ii _1yep5z6lz _1yep5z6m2",variantClassNames:{isFocusVisible:{true:"_1dbkl5o _1yep5z617u _1yep5z6140 _1yep5z617w"}},defaultVariants:{},compoundVariants:[]}),Xi="z9nup84 z9nup86 _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6lg _1yep5z6lh _1yep5z6lj _1yep5z6li _1yep5z6ig _1yep5z6ih _1yep5z6ii";var Gm=x({defaultClassName:"_1344e9q0 _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6id _1yep5z6ie _1yep5z6if _1yep5z6lk _1yep5z6ic _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kd _1yep5z6ke _1yep5z6kf",variantClassNames:{isFocusVisible:{true:"_1344e9q1"},isDisabled:{true:"_1344e9q2"},removeBlendMode:{true:"_1344e9q3"},isSelected:{true:"_1yep5z617w _1yep5z617u _1yep5z6140 _1yep5z617z"},isHovered:{true:"_1344e9q5"}},defaultVariants:{},compoundVariants:[[{isSelected:!1,isFocusVisible:!0},"_1344e9q6"],[{isSelected:!0,isFocusVisible:!0},"_1344e9q7 _1yep5z61tz _1yep5z61tx _1yep5z61q3 _1yep5z61u2"],[{isSelected:!0,isDisabled:!0},"_1yep5z61tz _1yep5z61tx _1yep5z61q3 _1yep5z61u2 _1yep5z61qd"],[{isHovered:!0,isSelected:!1},"_1yep5z61u2 _1yep5z61tz _1yep5z61tx _1yep5z61q7"]]}),Wm="_1344e9q9 _1yep5z6fl";var ct=bt__default.default.forwardRef(({color:r,isFocusVisible:e,isSelected:t,isInteractive:o,isDisabled:a,style:n,className:i,id:s,tooltip:l,"data-block-id":p,"data-block-class":c,...d},m)=>{let u=r&&r!==De&&(typeof r=="string"?color.parseColor(r):r),{formatMessage:y}=B(),b=!u,{colorSwatchProps:f}=color$1.useColorSwatch({color:b?"#000000":r}),{hoverProps:g,isHovered:v}=reactAria.useHover({isDisabled:a||!o}),h=utils.filterTruthyValues({"data-focus-visible":e,"data-selected":t,"data-hovered":v,"data-block-id":p,"data-block-class":c,"data-disabled":a,"data-interactive":o}),_=b?y(Xm.none):f["aria-label"],C=d["aria-label"]??_,{tooltipProps:P}=qo({tooltip:l,label:C}),w=jsxRuntime.jsx("div",{...reactAria.mergeProps(g,h,b?{}:f),style:n,"aria-label":b?y(Xm.none):f["aria-label"],role:"img",className:utils.classNames(Gm({removeBlendMode:b,isFocusVisible:e,isDisabled:!!a,isSelected:!!t,isHovered:v}),"BaselineUI-ColorSwatch",i),ref:m,id:s,...d,children:jsxRuntime.jsx(E,{display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"full",height:"full",width:"full",opacity:a?"medium":void 0,style:u?Ym(u,4):void 0,children:b?jsxRuntime.jsx("div",{className:Wm}):null})});return P&&!a?jsxRuntime.jsx(ne,{...P,children:jsxRuntime.jsx(pa,{children:w})}):w});ct.displayName="ColorSwatch";var Xm=K({none:{id:"none",defaultMessage:"None"}});var Jm=[{id:"hex",label:"HEX"},{id:"rgb",label:"RGB"}],lo=color.parseColor("#000000").toFormat("hsla"),pe="hsla",so="hexa";function Ct(r){return typeof r=="string"?color.parseColor(r).toFormat(pe):r?r.toFormat(pe):null}function Qm(r,e){return r?.getChannelValue("alpha")?e?.toString(so)===r.toString(so):!e?.getChannelValue("alpha")}function ef(r,e,t){return e?.label?e.label:r?.getChannelValue("alpha")===0?t:r?.toString("rgba")}var De="NONE";function tf(r,e){let t=e?.map(a=>({id:color.parseColor(a.color).toString(so),label:a.label}))||[],o={id:De,label:r};return [...t,o]}var $a=(r,{optionProps:e,isFocusVisible:t,isSelected:o},a)=>(utils.invariant(r.value&&"label"in r.value,"Item must have label"),jsxRuntime.jsx("li",{...e,ref:a,className:Vm,children:jsxRuntime.jsx(ct,{color:r.value.id,isFocusVisible:t,isSelected:o,"aria-label":r.value.label,isInteractive:!0})})),Ym=(r,e=4)=>{let t=r.getChannelValue("alpha")===0,o=`repeating-conic-gradient(transparent 0% 25%, ${tokens.themeVars.color.background.secondary.medium} 25% 50%)`;return {backgroundImage:t?o:`linear-gradient(${r.toString("hexa")}, ${r.toString("hexa")}), ${o}`,backgroundSize:`${e}px ${e}px`}};var of=({value:r,...e})=>{let t=bt__default.default.useRef(null),o=bt__default.default.useRef(null),a=bt__default.default.useRef(null),n=color.useColorAreaState({...e,value:r}),{colorAreaProps:i,xInputProps:s,yInputProps:l,thumbProps:p}=color$1.useColorArea({...e,value:r,inputXRef:t,inputYRef:o,containerRef:a},n);bt.useEffect(()=>{t.current?.focus();},[]);let{focusProps:c,isFocusVisible:d}=reactAria.useFocusRing();return jsxRuntime.jsx("div",{ref:a,...i,className:utils.classNames(Am,"BaselineUI-ColorInput-ColorArea"),children:jsxRuntime.jsxs("div",{...p,className:utils.classNames(Va({isFocusVisible:d}),"BaselineUI-ColorInput-ColorAreaThumb"),style:{...p.style,transform:"translate(-50%, -50%)",backgroundColor:Ct(r)?.withChannelValue("alpha",1).toString("css")},children:[jsxRuntime.jsx("input",{ref:t,...s,...c}),jsxRuntime.jsx("input",{ref:o,...l,...c})]})})};var sf=({color:r,setColor:e,allowAlpha:t,...o})=>{let a=color.useColorFieldState({value:r,onChange:d=>{e(Ct(d)?.toFormat(pe).withChannelValue("alpha",r.getChannelValue("alpha")??1)||lo);}}),n=bt__default.default.useRef(null),{inputProps:i}=color$1.useColorField({...o,"aria-label":"Hex"},a,n),{focusProps:s,isFocused:l}=reactAria.useFocusRing({isTextInput:!0}),{hoverProps:p,isHovered:c}=reactAria.useHover({});return jsxRuntime.jsxs("div",{className:utils.classNames(Ki,"BaselineUI-ColorInput-FieldInput"),"data-color-mode":t?"hexa":"hex",children:[jsxRuntime.jsx("input",{...reactAria.mergeProps(i,s,p),ref:n,className:Um({isFocused:l,isHovered:c,allowAlpha:t})}),t?jsxRuntime.jsx(pf,{color:r,setColor:e}):null]})},lf=({color:r,setColor:e,allowAlpha:t})=>{let o=r.toFormat("rgba"),{locale:a}=reactAria.useLocale();return jsxRuntime.jsxs("div",{className:utils.classNames(Ki,"BaselineUI-ColorInput-FieldInput"),"data-color-mode":t?"rgba":"rgb",children:[jsxRuntime.jsx(Fe,{"aria-label":r.getChannelName("red",a),value:o.getChannelValue("red"),showStepper:!1,className:no,onChange:n=>{e(o.withChannelValue("red",n).toFormat(pe));},step:1,minValue:0,maxValue:255}),jsxRuntime.jsx(Fe,{"aria-label":r.getChannelName("green",a),value:o.getChannelValue("green"),showStepper:!1,className:no,onChange:n=>{e(o.withChannelValue("green",n).toFormat(pe));},step:1,minValue:0,maxValue:255}),jsxRuntime.jsx(Fe,{"aria-label":r.getChannelName("blue",a),value:o.getChannelValue("blue"),showStepper:!1,className:no,onChange:n=>{e(o.withChannelValue("blue",n).toFormat(pe));},step:1,minValue:0,maxValue:255}),t?jsxRuntime.jsx(pf,{color:r,setColor:e}):null]})},JP={style:"percent",maximumFractionDigits:0},pf=({color:r,setColor:e})=>{let{locale:t}=reactAria.useLocale(),o=bt.useCallback(a=>{e(r.withChannelValue("alpha",a));},[r,e]);return jsxRuntime.jsx(Fe,{"aria-label":r.getChannelName("alpha",t),value:r.getChannelValue("alpha"),formatOptions:JP,className:no,showStepper:!1,onChange:o,minValue:0,maxValue:1})};var Qi=({channel:r,...e})=>{let{locale:t}=reactAria.useLocale(),o=color.useColorSliderState({...e,channel:r,locale:t}),a=bt__default.default.useRef(null),n=bt__default.default.useRef(null),{trackProps:i,thumbProps:s,inputProps:l}=color$1.useColorSlider({...e,channel:r,trackRef:a,inputRef:n,"aria-label":o.value.getChannelName(r,t)},o),{focusProps:p,isFocusVisible:c}=reactAria.useFocusRing();return jsxRuntime.jsxs("div",{className:utils.classNames(Oa,{[Op({size:"xs"})]:r==="alpha"},"BaselineUI-ColorInput-ColorSlider"),"data-channel":r,...i,ref:a,children:[r==="alpha"&&jsxRuntime.jsx("div",{className:Xi}),jsxRuntime.jsx("div",{className:Oa,style:i.style}),jsxRuntime.jsxs("div",{className:utils.classNames(Va({isFocusVisible:c}),"BaselineUI-ColorInput-ColorSliderThumb"),...s,children:[jsxRuntime.jsx("div",{className:Xi,style:{backgroundColor:"#ffffff"}}),jsxRuntime.jsx("div",{style:{backgroundColor:o.getDisplayColor().toString("css"),height:8},className:Oa}),jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{ref:n,...l,...p})})]})]})};var Ua=({color:r,setColor:e,allowAlpha:t,onChangeEnd:o})=>{let[a,n]=bt__default.default.useState("hex"),{formatMessage:i}=B(pt);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(of,{value:r,xChannel:"saturation",yChannel:"lightness",onChange:e,onChangeEnd:o}),jsxRuntime.jsxs("div",{className:Wi,children:[jsxRuntime.jsx(Qi,{channel:"hue",value:r,onChange:e,onChangeEnd:o}),t?jsxRuntime.jsx(Qi,{channel:"alpha",value:r,onChange:e,onChangeEnd:o}):null]}),jsxRuntime.jsxs("div",{className:utils.classNames(Wi,tokens.sprinkles.variants({paddingTop:"none",gap:"sm"})),children:[jsxRuntime.jsx(lt,{label:i("colorFormat"),labelPosition:"start",variant:"ghost",items:Jm,selectedKey:a,onSelectionChange:s=>{n(s);}}),a==="hex"&&jsxRuntime.jsx(sf,{color:r,setColor:s=>{e(s),o?.(s);},allowAlpha:t}),a==="rgb"&&jsxRuntime.jsx(lf,{color:r,setColor:s=>{e(s),o?.(s);},allowAlpha:t})]})]})};var bf=({color:r,setColor:e,storePickedColorKey:t,addColorButtonLabel:o,removeColorButtonLabel:a,customColorsLabel:n,pickerMode:i,allowAlpha:s})=>{let{locale:l}=reactAria.useLocale(),{formatMessage:p}=B(pt),c=bt__default.default.useRef(null),d=Ee(c.current),[m,u]=Lp(t,[]),y=bt__default.default.useRef(null),[b,f]=bt__default.default.useState(r),g=bt__default.default.useMemo(()=>m.map(w=>({id:w,label:color.parseColor(w).getColorName(l),description:w})),[m,l]),v=bt.useCallback(()=>{let w=i==="active"?r:b;if(m.includes(w.toString(pe))){y.current?.querySelector(`[data-key='${w.toString(pe)}']`)?.classList.add(Gi);return}u([...m,w.toString(pe)]);},[m,r,u,b,i]);bt.useEffect(()=>{let w=y.current;function z(k){k.animationName===Km&&k.target?.classList.remove(Gi);}return w?.addEventListener("animationend",z),()=>{w?.removeEventListener("animationend",z);}},[]);let h=reactAria.useId(),_=jsxRuntime.jsx(A,{ref:c,variant:"secondary",size:"md","aria-label":o,icon:_20.PlusIcon,onPress:i==="active"?v:void 0}),C=bt.useCallback(w=>jsxRuntime.jsxs(ve,{size:"content",className:ja({includesCustomColorPicker:!0}),style:{paddingBlockEnd:0},"aria-label":p("newColor"),children:[jsxRuntime.jsx(Ua,{color:b,setColor:f,allowAlpha:s}),jsxRuntime.jsx(U,{}),jsxRuntime.jsx(E,{padding:"lg",display:"flex",flexDirection:"row-reverse",children:jsxRuntime.jsxs(E,{display:"inline-flex",gap:"lg",children:[jsxRuntime.jsx(G,{label:p("cancel"),size:"sm",variant:"secondary",onPress:w}),jsxRuntime.jsx(G,{label:p("add"),variant:"primary",onPress:()=>{v(),w();},size:"sm"})]})})]}),[b,v,p,s]),P=bt.useCallback(w=>{utils.invariant(w instanceof Set,"Key must be a set");let z=[...w][0];z&&e(color.parseColor(z).toFormat(pe));},[e]);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(U,{}),jsxRuntime.jsxs("div",{className:utils.classNames($m,"BaselineUI-ColorInput-CustomColors"),children:[jsxRuntime.jsx("span",{id:h,children:n}),jsxRuntime.jsxs(E,{display:"flex",children:[!!m.length&&m.includes(r.toString(pe))&&jsxRuntime.jsx(A,{variant:"secondary",size:"md",elementType:"div",icon:_20.MinusIcon,"aria-label":a,onPress:()=>{u(m.filter(w=>w!==r.toString(pe)));}}),i==="active"&&_,i==="lazy"&&(d==="mobile"?jsxRuntime.jsxs(Le,{children:[jsxRuntime.jsx(Aa,{children:_}),jsxRuntime.jsx(He,{style:{zIndex:1e5},children:({close:w})=>C(w)})]}):jsxRuntime.jsxs(Oe,{type:"dialog",children:[jsxRuntime.jsx(je,{children:_}),jsxRuntime.jsx(Me,{placement:"right top",className:Fa,offset:6,children:({close:w})=>C(w)})]}))]})]}),!!m.length&&jsxRuntime.jsx(de,{items:g,layout:"grid","aria-labelledby":h,className:utils.classNames(Ba,Ha,tokens.sprinkles.variants({paddingTop:"xs"}),"BaselineUI-ColorInput-CustomColorsListBox"),renderOption:$a,ref:y,autoFocus:!1,selectionMode:"single",selectedKeys:[r.toString(pe)],onSelectionChange:P})]})};var rs=bt__default.default.forwardRef(({setColor:r,color:e,triggerRef:t,autoFocus:o,presets:a,state:n},i)=>{let{formatMessage:s}=B(pt),l=bt.useCallback(p=>{if(p instanceof Set&&p.size){let c=[...p][0],d=a.find(m=>m.id===c);utils.invariant(d,"Preset not found"),r(d.id===De?null:color.parseColor(d.id).toFormat(pe)),n.close();}},[n,a,r]);return jsxRuntime.jsx("div",{className:utils.classNames(Ha,"BaselineUI-ColorInput-Presets"),style:{minWidth:t.current?.offsetWidth},ref:i,children:jsxRuntime.jsx(de,{autoFocus:o,items:a,layout:"grid","aria-label":s("colorPresets"),className:Ba,renderOption:$a,selectionMode:"single",selectedKeys:[e?.toString(so)||De],onSelectionChange:l})})});rs.displayName="ColorPresetList";var co=bt__default.default.forwardRef(({color:r,colorLabel:e,colorName:t,...o},a)=>{let n=bt__default.default.useRef(null),{hoverProps:i,isHovered:s}=reactAria.useHover({isDisabled:o.isDisabled}),{buttonProps:l,isPressed:p}=reactAria.useButton(o,n),{isFocusVisible:c,focusProps:d}=reactAria.useFocusRing(),m=utils.filterTruthyValues({"data-block-id":o["data-block-id"],"data-focused":c,"data-focus-visible":c,"data-disabled":o.isDisabled,"data-hovered":s,"data-pressed":p}),u=Eo(),y=Eo();return jsxRuntime.jsxs("button",{...reactAria.mergeProps(l,i,d,m),style:o.style,className:utils.classNames(Om({isHovered:s,isFocusVisible:c||o.isOpen,isDisabled:o.isDisabled,labelPosition:o.labelPosition}),"BaselineUI-ColorInputButton",o.className),ref:L(a,n),id:u,"aria-labelledby":o["aria-labelledby"]||`${u} ${y}`,children:[jsxRuntime.jsx(ct,{color:r?.toString("hexa")}),e?jsxRuntime.jsx("div",{className:Hm,id:y,"aria-hidden":"true",children:t}):typeof t=="string"&&jsxRuntime.jsx(reactAria.VisuallyHidden,{children:t})]})});co.displayName="ColorInputButton";var Ga=bt__default.default.forwardRef(({className:r,style:e,icon:t,...o},a)=>{let n=bt__default.default.useRef(null),{hoverProps:i,isHovered:s}=reactAria.useHover({isDisabled:o.isDisabled}),{buttonProps:l,isPressed:p}=reactAria.useButton(o,n),{isFocusVisible:c,focusProps:d}=reactAria.useFocusRing(),m=utils.filterTruthyValues({"data-block-id":o["data-block-id"],"data-focused":c,"data-focus-visible":c,"data-disabled":o.isDisabled,"data-hovered":s,"data-pressed":p});return jsxRuntime.jsxs("button",{...reactAria.mergeProps(l,i,d,m),ref:L(a,n),style:e,className:utils.classNames(qm({isHovered:s||p||o.isOpen,isFocusVisible:c,isDisabled:o.isDisabled}),"BaselineUI-IconColorInputButton",r),children:[jsxRuntime.jsx(t,{size:16}),jsxRuntime.jsx("div",{className:Bm,style:{backgroundColor:o.color||void 0}})]})});Ga.displayName="IconColorInputButton";function wf({colorLabel:r,color:e,presets:t}){let{formatMessage:o}=B(),{locale:a}=reactAria.useLocale(),n=bt.useMemo(()=>t.find(l=>l.id===De?!e:e?Qm(e,color.parseColor(l.id)):!1),[t,e]),i=bt.useMemo(()=>typeof r=="function"?r?.(e):r?ef(e,n,o(Pw.transparent)):!1,[e,r,o,n]),s=bt.useMemo(()=>{if(n?.label)return n.label;e?.getColorName(a);},[e,a,n?.label]);return {colorName:i,humanReadableName:s}}var Pw=K({transparent:{defaultMessage:"Transparent",id:"transparent"}});var ur=bt__default.default.forwardRef(({className:r,style:e,allowRemoval:t,allowAlpha:o=!0,presets:a,labelPosition:n="top",colorLabel:i=!0,includePicker:s=!0,onChange:l,onChangeEnd:p,defaultValue:c,storePickedColorKey:d="baselinePickedColor",value:m,addColorButtonLabel:u,removeColorButtonLabel:y,customColorsLabel:b,renderTriggerButton:f=({isOpen:z,color:k,ref:T,colorName:R,triggerProps:N,labelId:S})=>jsxRuntime.jsx(co,{...reactAria.mergeProps(N,{...P.label?{"aria-labelledby":S}:{"aria-label":P["aria-label"]}}),ref:T,isOpen:z,isDisabled:P.isDisabled,labelPosition:n,color:k,colorLabel:i,colorName:R}),pickerMode:g="active",offset:v=2,placement:h=n==="start"?"bottom end":"bottom start","data-block-id":_,"data-block-class":C,...P},w)=>{let z=bt__default.default.useRef(null),k=bt__default.default.useRef(null),T=reactStately.useOverlayTriggerState(P),{triggerProps:R,overlayProps:N}=reactAria.useOverlayTrigger({type:"listbox"},T,z),S=ye(P.portalContainer),[I,M]=utils$1.useControlledState(m===void 0?void 0:Ct(m),Ct(c),X=>l?.(X?.toFormat("rgba")||null)),{formatMessage:D}=B(pt),j=bt.useMemo(()=>tf(D(Wa.noColor),a),[a,D]),O=reactAria.useId(),{colorName:V}=wf({colorLabel:i,color:I,presets:j}),$=bt.useMemo(()=>j.filter(X=>t||X.id!==De),[j,t]),F=u||D(Wa.addColor),ee=y||D(Wa.removeColor),H=b||D(Wa.customColors),Z=jsxRuntime.jsx(bf,{color:I||lo,setColor:X=>{M(X),p?.(X?.toFormat("rgba")||null);},storePickedColorKey:d,addColorButtonLabel:F,removeColorButtonLabel:ee,customColorsLabel:H,pickerMode:g,allowAlpha:o});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{className:utils.classNames({[jm]:n==="start"},"BaselineUI-ColorInput-Trigger",r),"data-block-id":_,"data-block-class":C,style:e,ref:w,children:[P.label?jsxRuntime.jsx("label",{id:O,className:Fm({labelPosition:n}),children:P.label}):null,f({isOpen:T.isOpen,color:I,ref:z,colorName:V,triggerProps:R,labelId:O})]}),jsxRuntime.jsx(Ce,{...P,portalContainer:S,placement:h,state:T,offset:v,className:utils.classNames(Fa,"BaselineUI-ColorInput-Popover"),triggerRef:z,overlayProps:N,children:jsxRuntime.jsxs(ve,{size:"content",className:ja({includesCustomColorPicker:s}),ref:k,"aria-labelledby":O,"aria-label":P["aria-label"],children:[s&&g==="active"?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Ua,{color:I||lo,setColor:M,allowAlpha:o,onChangeEnd:X=>{p?.(X?.toFormat("rgba")||null);}}),Z]}):null,!!$.length&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s&&g==="active"?jsxRuntime.jsx(U,{}):null,jsxRuntime.jsx(rs,{autoFocus:s&&g==="active"?!1:"first",state:T,triggerRef:z,presets:$,color:I,setColor:X=>{M(X),p?.(X?.toFormat("rgba")||null);}})]}),s&&g==="lazy"?Z:null]})})]})});ur.displayName="ColorInput";var Wa=K({addColor:{defaultMessage:"Add color",id:"addColor"},removeColor:{defaultMessage:"Remove color",id:"removeColor"},customColors:{defaultMessage:"Custom colors",id:"customColors"},noColor:{defaultMessage:"No color",id:"noColor"},transparent:{defaultMessage:"Transparent",id:"transparent"}});var Rf=bt__default.default.forwardRef(({className:r,style:e,icon:t,variant:o="standard","data-block-id":a,tooltipProps:n,...i},s)=>{let l=bt__default.default.useRef(null),p=bt.useCallback(({isOpen:c,color:d,ref:m,colorName:u,triggerProps:y})=>jsxRuntime.jsx(ne,{variant:"inverse",size:"sm",includeArrow:!1,text:i["aria-label"],placement:"bottom start",offset:4,...n,children:o==="standard"?jsxRuntime.jsx(co,{...y,"aria-label":i["aria-label"],ref:m,isOpen:c,isDisabled:i.isDisabled,color:d,colorLabel:!1,colorName:u}):jsxRuntime.jsx(Ga,{...y,isOpen:c,icon:_20.TextIcon,color:d?.toString("hexa"),ref:m,isDisabled:i.isDisabled,"aria-label":i["aria-label"]})}),[i,n,o]);return jsxRuntime.jsxs(E,{display:"flex",flexDirection:"row",gap:"md",paddingX:o==="standard"?"md":"none",alignItems:"center",className:utils.classNames("BaselineUI-IconColorInput",r),"data-block-id":a,style:e,ref:L(s,l),children:[o==="standard"&&t?jsxRuntime.jsx(t,{size:24,className:tokens.sprinkles({color:"icon.primary"})}):null,jsxRuntime.jsx(ur,{...i,colorLabel:!1,renderTriggerButton:p})]})});Rf.displayName="IconColorInput";var Tf={ar:{redo:"\u0625\u0639\u0627\u062F\u0629",undo:"\u062A\u0631\u0627\u062C\u0639"},cs:{redo:"Opakovat",undo:"Zru\u0161it"},cy:{redo:"Ail-wneud",undo:"Dad-wneud"},da:{redo:"Gentag",undo:"Fortryd"},de:{redo:"Wiederholen",undo:"R\xFCckg\xE4ngig machen"},el:{redo:"\u0395\u03C0\u03B1\u03BD\u03AC\u03BB\u03B7\u03C8\u03B7",undo:"\u0391\u03BD\u03B1\u03AF\u03C1\u03B5\u03C3\u03B7"},"en-GB":{redo:"Redo",undo:"Undo"},en:{redo:"Redo",undo:"Undo"},es:{redo:"Rehacer",undo:"Deshacer"},fi:{redo:"Tee sittenkin",undo:"Peru"},"fr-CA":{redo:"R\xE9tablir",undo:"Annuler"},fr:{redo:"R\xE9tablir",undo:"Annuler"},he:{redo:"\u05D1\u05D9\u05E6\u05D5\u05E2 \u05DE\u05D7\u05D3\u05E9",undo:"\u05D1\u05D9\u05D8\u05D5\u05DC \u05E4\u05E2\u05D5\u05DC\u05D4"},hr:{redo:"Ponovi",undo:"Vrati"},id:{redo:"Ulangi",undo:"Kembalikan"},it:{redo:"Ripristina",undo:"Annulla"},ja:{redo:"\u3084\u308A\u76F4\u3059",undo:"\u53D6\u308A\u6D88\u3059"},ko:{redo:"\uC2E4\uD589\uBCF5\uADC0",undo:"\uC2E4\uD589\uCDE8\uC18C"},ms:{redo:"Buat Semula",undo:"Buat Asal"},"nb-NO":{redo:"Gj\xF8r om igjen",undo:"Angre"},nl:{redo:"Opnieuw",undo:"Herstel"},pl:{redo:"Pon\xF3w",undo:"Cofnij"},"pt-PT":{redo:"Refazer",undo:"Desfazer"},pt:{redo:"Refazer",undo:"Desfazer"},ru:{redo:"\u041F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u044C",undo:"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C"},sk:{redo:"Opakova\u0165",undo:"Zru\u0161i\u0165"},sl:{redo:"Uveljavi",undo:"Razveljavi"},sv:{redo:"G\xF6r om",undo:"\xC5ngra"},th:{redo:"\u0E17\u0E33\u0E0B\u0E49\u0E33",undo:"\u0E16\u0E2D\u0E19\u0E04\u0E33\u0E2A\u0E31\u0E48\u0E07\u0E01\u0E25\u0E31\u0E1A"},tr:{redo:"Yinele",undo:"Geri Al"},uk:{redo:"\u041F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0438",undo:"\u0421\u043A\u0430\u0441\u0443\u0432\u0430\u0442\u0438"},"zh-Hans":{redo:"\u91CD\u505A",undo:"\u64A4\u9500"},"zh-Hant":{redo:"\u91CD\u4F5C",undo:"\u5FA9\u539F"}};var Xa=x({defaultClassName:"mnnh5s1 _1yep5z6id _1yep5z6ie _1yep5z6if _1yep5z6la _1yep5z6ld _1yep5z6lp _1yep5z6lo _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6ln",variantClassNames:{isInline:{true:"mnnh5s2 _1yep5z6wo _1yep5z6wp _1yep5z6wq _1yep5z6xc _1yep5z6xd _1yep5z6xe _1yep5z6y0 _1yep5z6y1 _1yep5z6y2 _1yep5z6yo _1yep5z6yp _1yep5z6yq _1yep5z6138 _1yep5z6183 _1yep5z6184",false:"_1yep5z617q _1yep5z6127"},isHovered:{true:"mnnh5s4"},hasLoadedImage:{true:"_1yep5z6126"},includeCheckeredBackground:{true:"mnnh5s6"},showFocusRing:{true:"_1yep5z613j _1yep5z617w _1yep5z617u _1yep5z6140 _1yep5z617x"},isDisabled:{true:"mnnh5s8 _1yep5z6zd"}},defaultVariants:{},compoundVariants:[[{isHovered:!0,hasLoadedImage:!1},"_1yep5z61oh"],[{isHovered:!0,hasLoadedImage:!0},"mnnh5s9"],[{isInline:!0,isDisabled:!0},"_1yep5z61pb"],[{hasLoadedImage:!0,includeCheckeredBackground:!0},"_1yep5z61o9"]]}),Nf="_1yep5z6d8",Ya=x({defaultClassName:"mnnh5sa",variantClassNames:{isInline:{true:"mnnh5sb",false:"mnnh5sc"},isDisabled:{true:"mnnh5sd"},hasLoadedImage:{true:"mnnh5s0"}},defaultVariants:{},compoundVariants:[]});var Ef=x({defaultClassName:"_1i0ytqa3 _1yep5z6id _1yep5z6ie _1yep5z6if _1yep5z6ln _1yep5z6lo _1yep5z6lq",variantClassNames:{isFocusVisible:{true:"_1i0ytqa4"},isInline:{true:"_1yep5z612f",false:"_1yep5z612h"},isDisabled:{true:"_1i0ytqa7 _1yep5z6zd",false:"_1i0ytqa8"}},defaultVariants:{},compoundVariants:[[{isInline:!0,isFocusVisible:!0},"_1i0ytqa9 _1yep5z61p7 _1yep5z61u5 _1yep5z61u7"],[{isInline:!1,isFocusVisible:!0},"_1i0ytqaa"],[{isInline:!0,isDisabled:!0},"_1yep5z61oi"],[{isInline:!1,isDisabled:!0},"_1yep5z61ok"]]}),Lf="_1i0ytqa0",Za=x({defaultClassName:"_1i0ytqab _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6ln",variantClassNames:{isInline:{false:"_1yep5z6126"},isDisabled:{true:"_1i0ytqad _1yep5z6zd"}},defaultVariants:{},compoundVariants:[]}),Mf=x({defaultClassName:"_1i0ytqa1 _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6kj _1yep5z6kk _1yep5z6kl _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6ln",variantClassNames:{isInline:{false:"_1yep5z63r _1yep5z63s _1yep5z63t _1yep5z619 _1yep5z61a _1yep5z61b"}},defaultVariants:{},compoundVariants:[]});function Df({line:r,options:e}){let t=bt.useRef([]),o=bt.useMemo(()=>{let a=Math.ceil(r.length/mr),n;for(let i=0;i<a;i++)if(!(!(i===a-1)&&!!t.current[i])){let p=r.slice(i*mr-(i>0?1:0),i*mr+mr);n=utils.getSvgPathFromStroke(perfectFreehand.getStroke(p.map(([c,d,m])=>({x:c,y:d,pressure:m})),e)),p.length>=(i>0?mr+1:mr)&&(t.current[i]=n);}return n},[r,e]);return [...t.current,o]}var mr=60*3;var ek={size:1,thinning:0,smoothing:0,streamline:0,easing:r=>r,start:{taper:0,easing:r=>r,cap:!0},end:{taper:0,easing:r=>r,cap:!0},simulatePressure:!1},Bf=bt__default.default.forwardRef(({className:r,style:e,canvasClassName:t,canvasStyle:o,isBound:a=!0,strokeWidth:n=2,strokeColor:i="#3A87FD",onChange:s,defaultValue:l,onChangeEnd:p,enableHistory:c=!1,isInline:d=!0,isDisabled:m,placeholder:u,clearLabel:y,undoLabel:b,redoLabel:f,footerClassName:g,canvasRef:v,value:h,footerStyle:_,"data-block-id":C,"data-block-class":P,"aria-label":w="Drawing canvas",description:z="This is a canvas for drawing using a mouse or touch input.",...k},T)=>{let R=B(Tf),N=bt__default.default.useRef(null),[S,I]=bt__default.default.useState(h||l||[]),M=bt__default.default.useMemo(()=>({...ek,...k}),[k]),[D,j]=bt__default.default.useState(),O=reactAria.useId(),{labelProps:V,fieldProps:$}=reactAria.useLabel({...k,"aria-label":w,labelElementType:"span"}),{isFocusVisible:F,focusProps:ee}=reactAria.useFocusRing({within:!0}),{hoverProps:H,isHovered:Z}=reactAria.useHover({isDisabled:m}),{undo:X,redo:Re,canRedo:Te,canUndo:_e,push:Ae}=wp(S,{onAction:Y=>{Y&&(I(Y),p?.(Y));},isDisabled:!c}),{keyboardProps:Ge}=reactAria.useKeyboard({onKeyDown:Y=>{Y.key==="Backspace"?Dt():Y.key==="z"&&(Y.metaKey||Y.ctrlKey)&&(Y.shiftKey?Te&&Re():_e&&X());}}),[ae,me]=bt.useState(!1),Lt=bt.useCallback(Y=>{let q=Y.currentTarget.getBoundingClientRect();j(q),Y.target.setPointerCapture(Y.pointerId);let le=[Y.clientX-q.x,Y.clientY-q.y,Y.pressure];I(W=>[...W,[le]]),me(!0);},[]),Mt=bt.useCallback(Y=>{if(Y.buttons!==1||!D)return;let le=Ff(Y.nativeEvent).map(W=>[a?utils$1.clamp(W.clientX-D.left,0,D.width):W.clientX-D.left,a?utils$1.clamp(W.clientY-D.top,0,D.height):W.clientY-D.top,W.pressure]);I(W=>{let ke=[...W];return ke[W.length-1]=[...ke[W.length-1],...le],ke});},[D,a]),Sr=()=>{D&&(p?.(S),Ae(S),me(!1));};bt.useEffect(()=>{s?.(S);},[S,s]);let Dt=()=>{I([]),s?.([]),Ae([]);};return jsxRuntime.jsxs("div",{ref:L(N,T),className:utils.classNames(Lf,"BaselineUI-FreehandCanvas",r),style:e,"aria-disabled":m,"data-block-id":C,"data-block-class":P,children:[k.label||c?jsxRuntime.jsxs("div",{className:Mf({isInline:d}),children:[k.label?jsxRuntime.jsx(J,{type:"label",size:"sm",...V,children:k.label}):jsxRuntime.jsx("span",{}),c?jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx(A,{variant:"secondary",size:"sm",isDisabled:!_e||m,icon:_16.UndoIcon,onPress:X,"aria-label":b||R.formatMessage("undo")}),jsxRuntime.jsx(A,{variant:"secondary",size:"sm",isDisabled:!Te||m,icon:_16.RedoIcon,onPress:Re,"aria-label":f||R.formatMessage("redo")})]}):null]}):null,jsxRuntime.jsxs("div",{role:"application",...reactAria.mergeProps(ee,Ge,H,$),tabIndex:m?void 0:0,className:utils.classNames(Xa({isInline:d,isHovered:Z}),Ef({isFocusVisible:F,isInline:d,isDisabled:!!m}),t),"aria-describedby":k["aria-describedby"]||O,style:o,ref:v,children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("div",{id:O,children:z})}),jsxRuntime.jsx("svg",{width:o?.width||"100%",height:o?.height||"100%",onPointerDown:Lt,onPointerMove:Mt,onPointerUp:Sr,children:(h||S).map((Y,q,le)=>q<le.length-1||!ae?jsxRuntime.jsx(Of,{line:Y,options:M,strokeColor:i,strokeWidth:n},q):jsxRuntime.jsx(jf,{line:Y,options:M,strokeColor:i,strokeWidth:n},q))})]}),u||y?jsxRuntime.jsx("div",{style:_,className:utils.classNames(Za({isInline:d,isDisabled:m}),g),children:(S.length||!u)&&y?jsxRuntime.jsx(G,{size:"sm",variant:"ghost",label:y,isDisabled:m,onPress:Dt}):jsxRuntime.jsx(G,{size:"sm",variant:"ghost",label:u,isDisabled:!0})}):null]})});Bf.displayName="FreehandCanvas";var Of=bt__default.default.memo(({line:r,options:e,strokeColor:t,strokeWidth:o})=>{let a=bt.useMemo(()=>utils.getSvgPathFromStroke(perfectFreehand.getStroke(r.map(([n,i,s])=>({x:n,y:i,pressure:s})),e)),[r,e]);return jsxRuntime.jsx("path",{d:a,stroke:t,strokeWidth:o})});Of.displayName="Stroke";var jf=bt__default.default.memo(({line:r,options:e,strokeColor:t,strokeWidth:o})=>{let a=Df({line:r,options:e});return jsxRuntime.jsx(jsxRuntime.Fragment,{children:a.map((n,i)=>jsxRuntime.jsx("path",{d:n,stroke:t,strokeWidth:o},i))})});jf.displayName="SplitStroke";function Ff(r){if(typeof r.getCoalescedEvents=="function"){let e=r.getCoalescedEvents();return e.length>0?e.flatMap(t=>Ff(t)):[r]}return [r]}var Hf="_1vac7ws0",Vf=x({defaultClassName:"_1vac7ws1",variantClassNames:{isDragging:{true:"_1vac7ws2"}},defaultVariants:{},compoundVariants:[]});function Uf(r,e){let[t,o]=bt.useState([]),a=()=>r?.flatMap(n=>[...e.querySelectorAll(n)]).map(n=>({current:n}));return granularHooks.useGranularEffect(()=>{o(a());},[],[a]),granularHooks.useGranularEffect(()=>{let n=a();o(n);},[r],[a]),t}function qf(r){let{scrollable:e,ownerDocument:t,onScroll:o}=r;bt.useEffect(()=>{let a=utils.getHTMLElement(e,t);if(a)return (a.style.position==="static"||!a.style.position)&&console.warn("Scrollable ancestor passed to `Transform` component should not be statically positioned."),a.addEventListener("scroll",o),()=>{a.removeEventListener("scroll",o);}},[e,o,t]);}var gk=reactMoveable.makeMoveable([reactMoveable.Draggable,reactMoveable.Resizable,reactMoveable.Rotatable,reactMoveable.Snappable]),Gf=bt__default.default.forwardRef(({className:r,children:e,isRotatable:t,isResizable:o,isDraggable:a,style:n,onTransform:i,onTransformStart:s,onTransformEnd:l,onDoubleClick:p,onDragStart:c,onDragEnd:d,onDrag:m,onResizeStart:u,onResizeEnd:y,onResize:b,onRotateStart:f,onRotateEnd:g,onRotate:v,onSnap:h,isSnappable:_,elementGuidelines:C,hideAnchorOnDrag:P=!0,title:w,rotationPosition:z,autoUpdate:k,bound:T,snapRotationDegrees:R,snapRotationThreshold:N,scrollableAncestor:S,renderDirections:I,stopPropagation:M,transformOrigin:D,preventDefault:j},O)=>{let V=bt.useRef(null),$=bt.useRef(null),[F,ee]=bt.useState(document),H=bt.useRef(F.createElement("div")),[Z,X]=bt.useState({}),[Re,Te]=bt.useState(!1),[_e,Ae]=bt.useState(!1),[Ge,ae]=bt.useState(),me=Uf(C,F);bt.useLayoutEffect(()=>{let q=H.current;return H.current=F.createElement("div"),()=>{q.remove();}},[F]);let{keyboardProps:Lt}=reactAria.useKeyboard({onKeyDown:q=>{let le=q.shiftKey?10:1,W=q.metaKey||q.ctrlKey;W&&q.shiftKey&&(le=45);function ke(Ir,vg="x"){W?$.current?.request("rotatable",{deltaRotate:Ir*le},!0):$.current?.request("draggable",vg==="x"?{deltaX:Ir*le}:{deltaY:Ir*le},!0);}switch(q.key){case"ArrowRight":{ke(1);break}case"ArrowLeft":{ke(-1);break}case"ArrowUp":{ke(-1,"y");break}case"ArrowDown":ke(1,"y");}requestAnimationFrame(()=>{$.current?.updateRect();});}});bt.useEffect(()=>{let q=fe(V.current);ee(q);let le=H.current;q.body.append(H.current);function W(Ir){Ae(Ir.shiftKey);}function ke(){Ae(!1);}return q.addEventListener("keydown",W),q.addEventListener("keyup",ke),()=>{q.removeEventListener("keydown",W),q.removeEventListener("keyup",ke),le.remove();}},[]),qf({scrollable:S,onScroll:()=>{$.current?.updateRect();},ownerDocument:F});let Mt=bt.useCallback(q=>{X(le=>({...le,...q.style})),i?.(q);},[i]),Sr=bt.useCallback(q=>{if(Te(!0),V.current?.focus(),T){let W=utils.getHTMLElement(T,F)?.getBoundingClientRect();ae({position:"client",left:W?.left??0,top:W?.top??0,right:W?.right??0,bottom:W?.bottom??0});}c?.(q);},[T,F,c]),Dt=bt.useCallback(q=>{Te(!1),d?.(q);},[d]),Y=e({style:{...Z.width&&{width:Z.width},...Z.height&&{height:Z.height}}});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{role:"button",...Lt,ref:L(V,O),style:{display:"inline-block",...n,...Z},className:utils.classNames(Hf,r),onDoubleClick:p,tabIndex:0,title:w,children:Y}),uz.createPortal(jsxRuntime.jsx(gk,{ref:$,target:V,draggable:a,resizable:o,rotatable:t,keepRatio:_e,throttleDrag:1,snappable:_||!!T,elementGuidelines:me,snapRenderThreshold:.9,className:Vf({isDragging:Re&&P}),onRender:Mt,onDragStart:Sr,onDragEnd:Dt,useResizeObserver:k,useMutationObserver:k,onRenderEnd:l,onDrag:m,onResizeStart:u,onResizeEnd:y,onResize:b,onRotateStart:f,onRotateEnd:g,onRotate:v,onRenderStart:s,onSnap:h,rotationPosition:z,bounds:Ge,snapRotationDegrees:R,snapRotationThreshold:N,renderDirections:I,stopPropagation:M,preventDefault:j,transformOrigin:D}),H.current)]})});Gf.displayName="Transform";var Wf={ar:{delete:"\u062D\u0630\u0641",selectImage:"\u062A\u062D\u062F\u064A\u062F \u0635\u0648\u0631\u0629"},cs:{delete:"Smazat",selectImage:"Vybrat obr\xE1zek"},cy:{delete:"Dileu",selectImage:"Dewiswch Ddelwedd"},da:{delete:"Slet",selectImage:"V\xE6lg billede"},de:{delete:"L\xF6schen",selectImage:"Bild ausw\xE4hlen"},el:{delete:"\u0394\u03B9\u03B1\u03B3\u03C1\u03B1\u03C6\u03AE",selectImage:"\u0395\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u03B5\u03B9\u03BA\u03CC\u03BD\u03B1\u03C2"},"en-GB":{delete:"Delete",selectImage:"Select Image"},en:{delete:"Delete",selectImage:"Select Image"},es:{delete:"Eliminar",selectImage:"Seleccionar imagen"},fi:{delete:"Poista",selectImage:"Valitse kuva"},"fr-CA":{delete:"Supprimer",selectImage:"S\xE9lectionner une image"},fr:{delete:"Supprimer",selectImage:"S\xE9lectionner une image"},he:{delete:"\u05DE\u05D7\u05D9\u05E7\u05D4",selectImage:"\u05D1\u05D7\u05D9\u05E8\u05EA \u05EA\u05DE\u05D5\u05E0\u05D4"},hr:{delete:"Obri\u0161i",selectImage:"Odaberi sliku"},id:{delete:"Hapus",selectImage:"Pilih Gambar"},it:{delete:"Elimina",selectImage:"Seleziona immagine"},ja:{delete:"\u524A\u9664",selectImage:"\u30A4\u30E1\u30FC\u30B8\u3092\u9078\u629E"},ko:{delete:"\uC0AD\uC81C",selectImage:"\uC774\uBBF8\uC9C0 \uC120\uD0DD"},ms:{delete:"Padam",selectImage:"Pilih Imej"},"nb-NO":{delete:"Slett",selectImage:"Velg bilde"},nl:{delete:"Verwijder",selectImage:"Selecteer afbeelding"},pl:{delete:"Usu\u0144",selectImage:"Wybierz obraz"},"pt-PT":{delete:"Apagar",selectImage:"Selecionar imagem"},pt:{delete:"Apagar",selectImage:"Selecionar Imagem"},ru:{delete:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C",selectImage:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0438\u0437\u043E\u0431\u0440."},sk:{delete:"Zmaza\u0165",selectImage:"Vybra\u0165 obr\xE1zok"},sl:{delete:"Izbri\u0161i",selectImage:"Izberi sliko"},sv:{delete:"Radera",selectImage:"V\xE4lj bild"},th:{delete:"\u0E25\u0E1A",selectImage:"\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E23\u0E39\u0E1B\u0E20\u0E32\u0E1E"},tr:{delete:"Sil",selectImage:"Resim Se\xE7"},uk:{delete:"\u0412\u0438\u0434\u0430\u043B\u0438\u0442\u0438",selectImage:"\u041E\u0431\u0440\u0430\u0442\u0438 \u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u043D\u044F"},"zh-Hans":{delete:"\u5220\u9664",selectImage:"\u9009\u62E9\u56FE\u50CF"},"zh-Hant":{delete:"\u522A\u9664",selectImage:"\u9078\u53D6\u5716\u50CF"}};var Zf=bt__default.default.forwardRef(({className:r,style:e,isInline:t=!0,accept:o="image/*",defaultImageSrc:a,imageSrc:n,imageAlt:i,pickerButtonLabel:s,isDisabled:l,onDrop:p,onPaste:c,includeCheckeredBackground:d=!0,"data-block-id":m,"data-block-class":u,pickerButtonStyle:y,pickerButtonClassName:b,footerClassName:f,footerStyle:g,clearLabel:v,placeholder:h,labelStyle:_,labelClassName:C,...P},w)=>{let z=bt__default.default.useRef(null),k=bt__default.default.useRef(null),{formatMessage:T}=B(Wf),[R,N]=utils$1.useControlledState(n,a||null,ae=>{utils.invariant(typeof ae!="string"),P.onValueChange?.(ae?[ae]:[]);}),S=bt.useMemo(()=>Nk(R||void 0),[R]),{fieldProps:I,labelProps:M}=reactAria.useField(P),{dropProps:D,isDropTarget:j}=reactAria.useDrop({ref:z,onDrop:async ae=>{if(l)return;let me=await Ii({items:ae.items});me.length&&N(me[0]),p?.(ae);},...P}),{clipboardProps:O}=reactAria.useClipboard({onPaste:async ae=>{if(l)return;let me=await Ii({items:ae});me.length&&N(me[0]),c?.(ae);},...P}),V=()=>{N(null),k.current&&(k.current.value="");},$={type:"file",onChange:ae=>{let me=[...ae.target.files];N(me[0]),P.onChange?.(ae);},accept:o,disabled:l},{focusProps:F,isFocused:ee,isFocusVisible:H}=reactAria.useFocusRing({within:!0}),{hoverProps:Z,isHovered:X}=reactAria.useHover({isDisabled:l}),{imgProps:Re,isLoading:Te,isLoaded:_e}=Ht({src:S,alt:i||""}),Ae={label:s||T("selectImage"),onPress:()=>z.current?.click(),variant:"secondary",isDisabled:l,excludeFromTabOrder:!0,className:utils.classNames(Xo({isFocusVisible:H}),{[Nf]:j&&!l},b),style:y},Ge=utils.filterTruthyValues({"data-loaded":_e,"data-block-id":m,"data-block-class":u,"data-hovered":X,"data-focused":ee,"data-drop-target":j,"data-disabled":l,"data-focus-visible":H});return jsxRuntime.jsxs(E,{...Ge,className:utils.classNames("BaselineUI-ImageDropZone",r),display:"flex",flexDirection:"column",alignItems:"center",style:e,ref:w,children:[jsxRuntime.jsxs("label",{...reactAria.mergeProps(D,Z,F,M),className:utils.classNames(Xa({isInline:t,isHovered:X,isDisabled:l,hasLoadedImage:!!S&&_e,showFocusRing:j||!!S&&H}),C),style:_,ref:z,children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...reactAria.mergeProps(I,O,$),ref:k})}),!S&&jsxRuntime.jsx(G,{...Ae}),!!S&&(Te?jsxRuntime.jsx(nr,{}):jsxRuntime.jsx("img",{className:Ya({isInline:t,isDisabled:l,hasLoadedImage:!!S&&_e&&d}),...Re}))]}),h||v?jsxRuntime.jsx("div",{style:g,className:utils.classNames(Za({isInline:t,isDisabled:l}),f),children:(S||!h)&&v?jsxRuntime.jsx(G,{size:"sm",variant:"ghost",label:v,isDisabled:l,onPress:V}):jsxRuntime.jsx(G,{size:"sm",variant:"ghost",label:h,isDisabled:!0})}):null]})});Zf.displayName="ImageDropZone";function Nk(r){return r instanceof File?URL.createObjectURL(r):r}var Jf="_1vm2oh49 _1yep5z6ig _1yep5z6ih _1yep5z6ii _1yep5z6g4",cs="_1vm2oh48 _1yep5z6lo _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6k4 _1yep5z6k5 _1yep5z6k6",Qf=x({defaultClassName:"_1vm2oh40 mnnh5s1 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6lt _1yep5z6lr _1yep5z6ic _1yep5z6lu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6la _1yep5z6lp _1yep5z6id _1yep5z6ie _1yep5z6if",variantClassNames:{accent:{theme:"_1vm2oh41",positive:"_1vm2oh42"},isInline:{true:"mnnh5s2 _1yep5z6wl _1yep5z6wm _1yep5z6wn _1yep5z6x9 _1yep5z6xa _1yep5z6xb _1yep5z6xx _1yep5z6xy _1yep5z6xz _1yep5z6yl _1yep5z6ym _1yep5z6yn _1yep5z6137 _1yep5z6182 _1yep5z6184",false:"_1yep5z612h"},isFocusVisible:{true:"_1yep5z613j _1yep5z617w _1yep5z617u _1yep5z6140 _1yep5z617x"},isDisabled:{true:"mnnh5s8 z9nup83 _1yep5z6zd"},isHovered:{true:"_1vm2oh47"}},defaultVariants:{},compoundVariants:[[{accent:"positive",isInline:!0},"_1yep5z61oi"],[{accent:"theme",isInline:!0},"_1yep5z61o7"],[{accent:"positive",isInline:!1},"_1yep5z61ok"],[{accent:"theme",isInline:!1},"_1yep5z61o9"],[{isFocusVisible:!0,isInline:!0},"_1yep5z61q3 _1yep5z61tx _1yep5z61tz _1yep5z61u0"],[{isHovered:!0,isInline:!0},"_1yep5z61u0 _1yep5z61q3 _1yep5z61tx _1yep5z61tz"],[{isHovered:!0,isInline:!1,accent:"positive"},"_1yep5z61oj"],[{isHovered:!0,isInline:!1,accent:"theme"},"_1yep5z61ob"],[{isHovered:!0,isInline:!0,accent:"theme"},"_1yep5z61o8"]]});var ry=bt__default.default.forwardRef(({className:r,style:e,isDisabled:t,isInline:o=!0,imageAlt:a,imageSrc:n,svgSrc:i,textValue:s,textStyle:l,onPress:p,onDelete:c,deleteAriaLabel:d,addAriaLabel:m,accent:u="positive","data-block-id":y,"data-block-class":b,...f},g)=>{let{focusProps:v,isFocused:h,isFocusVisible:_}=reactAria.useFocusRing({within:!0}),{isHovered:C,hoverProps:P}=reactAria.useHover({isDisabled:t}),{pressProps:w}=reactAria.usePress({isDisabled:t,onPress:p});utils.invariant(n||i||s,"Preview must have content. You must provide either an `imageSrc`, `svgSrc`, or `textValue` prop.");let z=utils.filterTruthyValues({"data-hovered":C,"data-focus-visible":_,"data-focused":h,"data-disabled":t});return jsxRuntime.jsxs("div",{...f,className:utils.classNames(Qf({isInline:o,isFocusVisible:_,isDisabled:t,isHovered:C,accent:u}),"BaselineUI-Preview",r),"data-block-id":y,"data-block-class":b,"aria-label":f["aria-label"]||a||s,style:e,ref:g,children:[typeof i=="string"?jsxRuntime.jsx("button",{disabled:t,...reactAria.mergeProps(P,v,w,z),className:cs,"aria-label":m,dangerouslySetInnerHTML:{__html:i}}):jsxRuntime.jsxs("button",{...reactAria.mergeProps(P,v,w,z),disabled:t,style:l,"aria-label":m,className:cs,children:[n?jsxRuntime.jsx("img",{src:n,alt:a,className:Ya({isInline:o,isDisabled:t})}):null,!!i&&typeof i=="object"&&i,s]}),c?jsxRuntime.jsx(A,{isDisabled:t,className:Jf,"aria-label":d,size:"xs",icon:_16.TrashIcon,onPress:c}):null]})});ry.displayName="Preview";var oy="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z69c _1yep5z69d _1yep5z69e",ay=x({defaultClassName:"cw3m0n8 _1yep5z6ew _1yep5z6dv",variantClassNames:{isDisabled:{true:"_1yep5z6111"}},defaultVariants:{},compoundVariants:[]}),ny="cw3m0n7",iy=x({defaultClassName:"cw3m0n0 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6j1 _1yep5z6j2 _1yep5z6j3",variantClassNames:{labelPosition:{end:"_1yep5z6154 _1yep5z6155 _1yep5z6156 _1yep5z6vl _1yep5z6vm _1yep5z6vn",start:"_1yep5z615a _1yep5z615b _1yep5z615c _1yep5z616m _1yep5z616n _1yep5z616o"}},defaultVariants:{},compoundVariants:[]}),sy="_1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6lk",ly=x({defaultClassName:"cw3m0n3 _16vugd06",variantClassNames:{isFocusVisible:{true:"_16vugd09"},isSelected:{true:"_16vugd08"},isDisabled:{true:"_16vugd0b"}},defaultVariants:{},compoundVariants:[]});var Wk=({label:r,description:e},{isSelected:t,isFocusVisible:o,isDisabled:a,optionLabelPosition:n})=>jsxRuntime.jsxs("div",{className:iy({labelPosition:n}),children:[jsxRuntime.jsx("div",{className:ly({isSelected:t,isFocusVisible:o,isDisabled:a}),children:t?jsxRuntime.jsx("div",{className:ny}):null}),r?jsxRuntime.jsxs("div",{className:oy,children:[jsxRuntime.jsx("span",{className:Ia({isDisabled:a}),children:r}),e?jsxRuntime.jsx("span",{className:ay({isDisabled:a}),children:e}):null]}):null]}),py=({state:r,renderOption:e=Wk,item:t,optionLabelPosition:o="end",optionStyle:a,optionClassName:n,isReadOnly:i,...s})=>{let l=!!s.isDisabled||!!s.disabledValues?.includes(t.id),p=bt__default.default.useRef(null),{inputProps:c,isPressed:d,isSelected:m}=reactAria.useRadio({...s,isDisabled:l,children:t.label,value:t.id},r,p),{focusProps:u,isFocusVisible:y,isFocused:b}=reactAria.useFocusRing(),{isHovered:f}=reactAria.useHover({isDisabled:l}),g=utils.filterTruthyValues({"data-selected":m,"data-focused":b,"data-focus-visible":y,"data-hovered":f,"data-disabled":l,"data-pressed":d,"data-read-only":i});return jsxRuntime.jsxs("label",{...g,style:a,className:utils.classNames("BaselineUI-Radio-Item",n),children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...reactAria.mergeProps(c,u),ref:p})}),e(t,{isFocusVisible:y,isSelected:m,isFocused:b,isHovered:f,isDisabled:l,optionLabelPosition:o,isReadOnly:i})]})};var dy=bt__default.default.forwardRef(({className:r,style:e,optionsContainerClassName:t,optionsContainerStyle:o,items:a,labelPosition:n="top",renderOption:i,"aria-label":s,"aria-labelledby":l,"aria-describedby":p,"aria-details":c,"data-block-id":d,"data-block-class":m,...u},y)=>{let b=reactStately.useRadioGroupState(u),{radioGroupProps:f,labelProps:g,descriptionProps:v,errorMessageProps:h}=reactAria.useRadioGroup({...u,"aria-label":s,"aria-labelledby":l,"aria-describedby":p,"aria-details":c},b),_=Ne({...u,descriptionProps:v,errorMessageProps:h,labelPosition:n}),C=utils.filterTruthyValues({"data-orientation":u.orientation,"data-block-id":d,"data-block-class":m,"data-disabled":u.isDisabled,"data-readonly":u.isReadOnly});return jsxRuntime.jsxs("div",{...reactAria.mergeProps(f,C),className:utils.classNames(et({labelPosition:n}),"BaselineUI-RadioGroup",r),style:e,ref:y,children:[u.label||_?jsxRuntime.jsxs("div",{className:Qe({labelPosition:n,hasMessage:!!_}),children:[jsxRuntime.jsx("span",{...g,className:utils.classNames(Je,"BaselineUI-RadioGroup-Label"),children:u.label}),n==="start"&&_]}):null,jsxRuntime.jsx("div",{className:utils.classNames(sy,{[Vt]:u.isDisabled},t),style:o,children:a.map(P=>jsxRuntime.jsx(py,{state:b,renderOption:i,item:P,...u,value:P.id},P.id))}),n==="top"&&_]})});dy.displayName="RadioGroup";var uy=({id:r,defaultMessage:e,elementType:t=bt.Fragment})=>{utils.invariant(r||e,"`id` or `defaultMessage` is required.");let o=B();return jsxRuntime.jsx(t,{children:o.formatMessage(r)||e})};uy.displayName="MessageFormat";var my=bt__default.default.forwardRef(({className:r,style:e,children:t,"data-block-id":o,"data-block-class":a,role:n="group",isDisabled:i,...s},l)=>{let{hoverProps:p,isHovered:c}=reactAria.useHover({isDisabled:i});return jsxRuntime.jsx("div",{...p,role:n,"data-hovered":c,"data-disabled":i,"data-block-id":o,"data-block-class":a,className:r,style:e,...s,ref:l,children:t})});my.displayName="Group";var ys="UNSUPPORTED_IN_MENU";function by(r){return bt.useMemo(()=>bt__default.default.Children.toArray(r).map(e=>{let t=e,o=lodash.uniqueId("item"),a=bo(t,Oe),n=yy(t),i,s;if(a){let g=bo(a,je);utils.invariant(g),i=yy(g),s=bo(a,Me).props.children;}else n?i=n:i=t;let{onPress:l,label:p,"aria-label":c,iconStart:d,isDisabled:m,icon:u}=i.props,y=p||c||ys;utils.invariant(typeof y=="string","ActionGroup children must have a string label");let b=`${o}-${y}`;return bt.createElement(reactStately.Item,{...{key:b,onPress:l,textValue:y,"aria-label":c,icon:d||u,dialogContent:s,isDisabled:m},key:b},t)}),[r])}function bo(r,e){return e?lodash.flatMapDeep(bt__default.default.Children.toArray(r),o=>bt__default.default.isValidElement(o)&&o.props.children?[o,...bt__default.default.Children.toArray(o.props.children)]:[o]).find(o=>bt__default.default.isValidElement(o)&&o.type===e):void 0}function yy(r){return bo(r,G)||bo(r,A)}var gy="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6id _1yep5z6ie _1yep5z6if _1yep5z6ln _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6lf",vy={horizontal:"xvr3wn0",vertical:"xvr3wn1"};var gs=bt__default.default.forwardRef(({className:r,style:e,children:t,collapsibleMenuProps:o,"data-block-id":a,"data-block-class":n,renderSpacer:i,onKeyDown:s,...l},p)=>{let{formatMessage:c}=B(),[d,m]=bt.useState(),u=by(t),y=reactStately.useListState({...l,children:u}),b=re(p),f=bt.useRef(null),[{visibleItems:g,isMeasuring:v},h]=xn({visibleItems:y.collection.size,isMeasuring:!1}),_=bt.useCallback(()=>{let N=S=>{if(f.current&&b.current){let I=[...f.current.children],M=b.current.getBoundingClientRect().width,D=S<y.collection.size,j=0,O=0;if(D){let V=I.pop();V&&(j+=Cy(V,!1,!0));}for(let[V,$]of I.entries())if(j+=Cy($,V===0,V===I.length-1),Math.round(j)<=Math.round(M))O++;else break;return O}return S};h(function*(){yield {visibleItems:y.collection.size,isMeasuring:!0};let S=N(y.collection.size),I=S<y.collection.size&&S>0;yield {visibleItems:S,isMeasuring:I},I&&(yield {visibleItems:N(S),isMeasuring:!1});});},[h,b,y.collection.size]),C=bt.useMemo(()=>({get current(){return b.current?.parentElement}}),[b]);En({ref:C,onResize:_}),Se(_,[y.collection,_]);let{toolbarProps:P}=toolbar.useToolbar(l,b),w=[...y.collection],z=w.slice(0,g),k=w.slice(g).filter(N=>N.textValue!==ys),T=k.length>0;bt.useEffect(()=>{m(void 0);},[k.length]),bt.useEffect(()=>{l.orientation==="vertical"&&console.warn("Toolbar: Vertical orientation is not supported when `isCollapsible` is true.");},[l.orientation]);let{keyboardProps:R}=reactAria.useKeyboard({onKeyDown:s});return jsxRuntime.jsxs(reactAria.FocusScope,{children:[jsxRuntime.jsx("div",{...reactAria.mergeProps(P,R),className:r,"data-block-id":a,"data-block-class":n,"data-collapse":!0,style:{...e,flexBasis:v?"100%":void 0},ref:b,children:jsxRuntime.jsxs("div",{ref:f,className:gy,children:[z.map(N=>N.rendered),T?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[!v&&i?jsxRuntime.jsx(E,{flexGrow:1}):null,jsxRuntime.jsx(Ca,{placement:"bottom end",renderTrigger:({buttonProps:N,ref:S})=>jsxRuntime.jsx(A,{...N,size:"md",icon:_24.MoreIcon,"aria-label":c(zS.more),variant:"toolbar",ref:S,tooltip:!0}),...o,disabledKeys:k.filter(N=>N.props?.isDisabled).map(N=>N.key),items:k.map(N=>{let S=N.textValue||N["aria-label"];return utils.invariant(S,"ActionItem must have a label"),{id:N.key,label:S,icon:N.props.icon}}),onAction:N=>{let S=y.collection.getItem(N);utils.invariant(S,"Item not found");let{onPress:I,dialogContent:M}=S.props;I?.(),m(M);}})]}):null]})}),jsxRuntime.jsx(Le,{isOpen:!!d,onOpenChange:N=>{N||m(void 0);},children:jsxRuntime.jsx(He,{enableDrawer:"auto",style:{zIndex:1e5},children:d?bt__default.default.cloneElement(d,{inheritDrawer:!0}):null})})]})});gs.displayName="CollapsibleToolbar";function Cy(r,e,t){let a=te(r).getComputedStyle(r);return r.getBoundingClientRect().width+(e?0:xy(a.marginLeft))+(t?0:xy(a.marginRight))}function xy(r){let e=Number.parseInt(r,10);return Number.isNaN(e)?0:e}var zS=K({more:{id:"more",defaultMessage:"More"}});var vs=bt__default.default.forwardRef(({className:r,style:e,"data-block-id":t,"data-block-class":o,"aria-controls":a,onKeyDown:n,...i},s)=>{let l=bt__default.default.useRef(null),{toolbarProps:p}=toolbar.useToolbar(i,l),{keyboardProps:c}=reactAria.useKeyboard({onKeyDown:n});return jsxRuntime.jsx("div",{...reactAria.mergeProps(p,c),"aria-controls":a,className:utils.classNames(vy[i.orientation||"horizontal"],"BaselineUI-Toolbar",r),style:e,"data-block-id":t,"data-block-class":o,ref:L(s,l),children:i.children})});vs.displayName="WrappedToolbar";var en=bt__default.default.forwardRef((r,e)=>{let t=r.isCollapsible?gs:vs;return jsxRuntime.jsx(t,{...r,ref:e})});en.displayName="Toolbar";var wy=x({defaultClassName:"_1j5skr71",variantClassNames:{size:{xxs:"_1j5skr72",xs:"_1j5skr73",sm:"_1j5skr74",md:"_1j5skr75",lg:"_1j5skr76"}},defaultVariants:{},compoundVariants:[]}),ky=x({defaultClassName:"_1j5skr70 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6lp _1yep5z6lq _1yep5z6lk _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6g1 _1yep5z6f5",variantClassNames:{isHovered:{true:"_1j5skr7g"},isFocusVisible:{true:"_1j5skr7h"},isDisabled:{true:"z9nup83 _1yep5z611a"},isSelected:{true:"_1j5skr7j"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isDisabled:!0},"_1yep5z61u0 _1yep5z61tz _1yep5z61tx _1yep5z61qd _1yep5z61nd"],[{isSelected:!1,isHovered:!0,isDisabled:!1},"_1yep5z6g3"],[{isSelected:!1,isFocusVisible:!0,isDisabled:!1},"_1yep5z61u0 _1yep5z61tz _1yep5z61q3 _1yep5z61tx"],[{isSelected:!0,isFocusVisible:!0,isDisabled:!1},"_1j5skr7k _1yep5z61ty _1yep5z61tx _1yep5z61q4 _1yep5z61ne"],[{isSelected:!0,isFocusVisible:!1,isDisabled:!1},"_1yep5z61tx _1yep5z61tz _1yep5z61q3 _1yep5z61u0"]]}),Sy=x({defaultClassName:"_1j5skr70 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6lp _1yep5z6lq _1yep5z6lk _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6f5",variantClassNames:{isHovered:{true:"_1j5skr7m"},isFocusVisible:{true:"_1yep5z617x _1yep5z617w _1yep5z6140 _1yep5z617u"},isSelected:{true:"_1yep5z6119"},isDisabled:{true:"z9nup83 _1yep5z611a"}},defaultVariants:{},compoundVariants:[[{isSelected:!1,isHovered:!0},"_1yep5z61nc"]]}),Iy=x({defaultClassName:"_1j5skr70 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6lp _1yep5z6lq _1yep5z6lk _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6f5",variantClassNames:{isHovered:{true:"_1j5skr7r"},isFocusVisible:{true:"_1yep5z617x _1yep5z617w _1yep5z6140 _1yep5z617u"},isSelected:{true:"_1j5skr7t"},isDisabled:{true:"z9nup83 _1yep5z611a"}},defaultVariants:{},compoundVariants:[[{isSelected:!1,isHovered:!0},"_1yep5z61o9"],[{isSelected:!0,isDisabled:!1},"_1yep5z61o9 _1yep5z61ng"],[{isSelected:!0,isDisabled:!0},"_1yep5z61o9 _1yep5z61nd"]]}),Ry=x({defaultClassName:"_1j5skr77 _1j5skr70 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6lp _1yep5z6lq _1yep5z6lk _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6f5",variantClassNames:{isHovered:{true:"_1j5skr78"},isFocusVisible:{true:"_1j5skr79"},isSelected:{true:"_1j5skr7a"},isDisabled:{true:"_1j5skr7b z9nup83 _1yep5z611c"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isDisabled:!1},"_1j5skr7c _1yep5z61nf"],[{isSelected:!1,isDisabled:!0},"_1j5skr7d _1yep5z61nd"],[{isSelected:!1,isHovered:!0},"_1yep5z61o9"],[{isSelected:!1,isFocusVisible:!0},"_1yep5z61u0 _1yep5z61tz _1yep5z61q3 _1yep5z61tx"],[{isSelected:!0,isFocusVisible:!0},"_1j5skr7e _1yep5z61ty _1yep5z61tx _1yep5z61q4"]]});var DS={xxs:8,xs:12,sm:16,md:20,lg:24},xe=bt__default.default.forwardRef((r,e)=>{let t=re(e),{tooltipProps:o}=Ko(r,t);return o?jsxRuntime.jsx(ne,{...o,children:jsxRuntime.jsx(hs,{...r,ref:e})}):jsxRuntime.jsx(hs,{...r,ref:e})});xe.displayName="ToggleIconButton";var hs=bt__default.default.forwardRef(({className:r,style:e,icon:t,size:o="md",variant:a="primary","data-block-id":n,"data-block-class":i,...s},l)=>{let p=reactStately.useToggleState(s),{buttonProps:c,isPressed:d,ref:m,isFocusVisible:u,isFocused:y,isHovered:b,uiStateOptions:f}=Wo(s,p),g=bt.useMemo(()=>typeof t=="function"?t:p.isSelected?t.selected:t.unselected,[t,p.isSelected]),v={isSelected:p.isSelected,isHovered:b,isFocusVisible:u,isDisabled:!!s.isDisabled},h=utils.filterTruthyValues({"data-hovered":b,"data-selected":p.isSelected,"data-focus-visible":u,"data-disabled":s.isDisabled,"data-block-id":n,"data-block-class":i,"data-focused":y,"data-pressed":d});return jsxRuntime.jsx("button",{...reactAria.mergeProps(c,h),className:utils.classNames(a==="toolbar"&&Ry(v),a==="primary"&&ky(v),a==="secondary"&&Sy(v),a==="tertiary"&&Iy(v),wy({size:o}),"BaselineUI-ToggleIconButton",typeof r=="function"?r(f):r),style:typeof e=="function"?e(f):e,ref:L(m,l),children:jsxRuntime.jsx(g,{size:DS[o]})})});hs.displayName="ToggleIconButtonCore";var Ny="f6jv6bl",Ey="_1yep5z64u _1yep5z64v _1yep5z64w _1yep5z676 _1yep5z677 _1yep5z678 _1yep5z6js _1yep5z6jt _1yep5z6ju",br="_1yep5z689 _1yep5z68a _1yep5z68b _1yep5z65x _1yep5z65y _1yep5z65z",Ly=x({defaultClassName:"f6jv6b0 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6g1",variantClassNames:{isInline:{true:"f6jv6b1"},isMinimal:{true:"_1yep5z6154 _1yep5z6155 _1yep5z6156 _1yep5z6vo _1yep5z6vp _1yep5z6vq _1yep5z615m _1yep5z615n _1yep5z615o",false:"_1yep5z6157 _1yep5z6158 _1yep5z6159"}},defaultVariants:{},compoundVariants:[[{isInline:!0,isMinimal:!1},"_1yep5z61ir _1yep5z61is _1yep5z61it _1yep5z61jf _1yep5z61jg _1yep5z61jh _1yep5z61k3 _1yep5z61k4 _1yep5z61k5 _1yep5z61kr _1yep5z61ks _1yep5z61kt _1yep5z61u7 _1yep5z61u5 _1yep5z61pa"]]}),tn=x({defaultClassName:"f6jv6b4 _1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6e3 _1yep5z6eu _1yep5z6lq",variantClassNames:{isDisabled:{true:"f6jv6b5 _1yep5z6111"}},defaultVariants:{},compoundVariants:[]}),My="f6jv6bi _1yep5z6wr _1yep5z6ws _1yep5z6wt _1yep5z6xf _1yep5z6xg _1yep5z6xh _1yep5z6y3 _1yep5z6y4 _1yep5z6y5 _1yep5z6yr _1yep5z6ys _1yep5z6yt",Dy="f6jv6bj";var Ay="f6jv6bm _1yep5z63l _1yep5z63m _1yep5z63n _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6ly _1yep5z6lt _1yep5z6lr _1yep5z6hx _1yep5z6eu",By=x({defaultClassName:"f6jv6bf _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6lq _1yep5z6la _1yep5z6ld _1yep5z6lp",variantClassNames:{isHovered:{true:"_1yep5z6126"},isDisabled:{true:"_1yep5z6zd"}},defaultVariants:{},compoundVariants:[]}),Oy="_1yep5z6jy _1yep5z6jz _1yep5z6k0",jy="f6jv6be f6jv6ba _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6ip _1yep5z6iq _1yep5z6ir _1yep5z6eu _1yep5z6e3 _1yep5z6ln",Fy=x({defaultClassName:"f6jv6bb _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6k4 _1yep5z6k5 _1yep5z6k6",variantClassNames:{isInline:{true:"_1yep5z6pr _1yep5z6ps _1yep5z6pt _1yep5z6184 _1yep5z6182 _1yep5z6137",false:"_1yep5z6pu _1yep5z6pv _1yep5z6pw _1yep5z6x6 _1yep5z6x7 _1yep5z6x8 _1yep5z6xu _1yep5z6xv _1yep5z6xw _1yep5z6yi _1yep5z6yj _1yep5z6yk _1yep5z6z6 _1yep5z6z7 _1yep5z6z8"}},defaultVariants:{},compoundVariants:[]}),Hy="f6jv6bk",Vy="f6jv6ba _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6ip _1yep5z6iq _1yep5z6ir _1yep5z6eu",rn=x({defaultClassName:"f6jv6b6",variantClassNames:{isInline:{true:"f6jv6b7",false:"f6jv6b8"}},defaultVariants:{},compoundVariants:[]}),on="f6jv6b9 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl",vo="f6jv6bn";var Uy=[["Toolbar Focus","Alt+F10"],["Bold","Ctrl+B"],["Italic","Ctrl+I"],["Underline","Ctrl+U"],["Select All","Ctrl+A"],["Cut","Ctrl+X"],["Copy","Ctrl+C"],["Paste","Ctrl+V"],["Undo","Ctrl+Z"],["Redo","Ctrl+Shift+Z"],["Submit","Ctrl+Enter"],["Open Help Dialog","Ctrl+Shift+H"]],{dialog:{row:ho}}=tokens.layoutSprinkleValues,qy=({isOpen:r,onClose:e})=>{let{formatMessage:t}=B(),o=reactAria.useId();return jsxRuntime.jsx(Le,{isOpen:r,onOpenChange:a=>{a||e();},children:jsxRuntime.jsx(He,{enableDrawer:"auto",style:{zIndex:999999},children:jsxRuntime.jsxs(ve,{"aria-labelledby":o,className:My,drawerBackground:"subtle",children:[jsxRuntime.jsxs(E,{paddingLeft:ho.padding.horizontal.lg,paddingRight:ho.padding.horizontal.sm,display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",backgroundColor:"background.primary.subtle",className:Dy,children:[jsxRuntime.jsx(J,{id:o,elementType:"h3",type:"title",size:"md",children:t(_o.help)}),jsxRuntime.jsx(A,{icon:_20.XIcon,size:"md",variant:"secondary","aria-label":t(_o.close),onPress:e})]}),jsxRuntime.jsx(U,{className:Hy}),jsxRuntime.jsxs(E,{paddingX:ho.padding.horizontal.lg,role:"table","aria-labelledby":o,backgroundColor:"background.primary.subtle",children:[jsxRuntime.jsx("div",{role:"rowgroup",children:jsxRuntime.jsxs(E,{role:"row",display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingY:ho.padding.vertical.md,color:"text.primary",children:[jsxRuntime.jsx("h6",{className:tokens.sprinkles({typography:"heading.h6.semibold"}),role:"columnheader",children:t(_o.action)}),jsxRuntime.jsx("h6",{className:tokens.sprinkles({typography:"heading.h6.semibold"}),role:"columnheader",style:{textTransform:"capitalize"},children:t(_o.shortcut)})]})}),jsxRuntime.jsx("div",{role:"rowgroup",children:Uy.map(([a,n],i)=>jsxRuntime.jsxs(bt.Fragment,{children:[jsxRuntime.jsxs(E,{role:"row",display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingY:ho.padding.vertical.xs,style:{minHeight:40},children:[jsxRuntime.jsx(J,{type:"subtitle",size:"sm",role:"cell",children:t(_o[lodash.camelCase(a)])}),jsxRuntime.jsx(J,{elementType:"kbd",type:"subtitle",size:"sm",role:"cell",children:utils.getOsSpecificKeyboardShortcutLabel(n,!0)})]}),i!==Uy.length-1&&jsxRuntime.jsx(U,{})]},a))})]})]})})})},_o=K({toolbarFocus:{id:"toolbarFocus",defaultMessage:"Toolbar Focus"},help:{id:"help",defaultMessage:"Help"},close:{id:"close",defaultMessage:"Close"},action:{id:"action",defaultMessage:"Action"},shortcut:{id:"shortcut",defaultMessage:"Shortcut"},bold:{id:"bold",defaultMessage:"Bold"},italic:{id:"italic",defaultMessage:"Italic"},underline:{id:"underline",defaultMessage:"Underline"},selectAll:{id:"selectAll",defaultMessage:"Select All"},cut:{id:"cut",defaultMessage:"Cut"},copy:{id:"copy",defaultMessage:"Copy"},paste:{id:"paste",defaultMessage:"Paste"},undo:{id:"undo",defaultMessage:"Undo"},redo:{id:"redo",defaultMessage:"Redo"},openHelpDialog:{id:"openHelpDialog",defaultMessage:"Open Help Dialog"},submit:{id:"submit",defaultMessage:"Submit"}});var an=bt__default.default.forwardRef(({value:r,defaultValue:e,onChange:t,placeholder:o,spellCheck:a,textBoxRef:n,isInline:i,isMinimal:s,isDisabled:l,editableContentAriaLabel:p,editorHandle:c,autoFocus:d,saveOnEnter:m,onSave:u},y)=>{let b=bt__default.default.useRef(null),[f,g]=utils$1.useControlledState(r,e||"",t),v=bt.useCallback(R=>{g(R.currentTarget.value||"");},[g]),h=bt.useCallback(R=>{(m&&R.key==="Enter"&&!R.shiftKey||(R.ctrlKey||R.metaKey)&&R.key==="Enter")&&(R.preventDefault(),u());},[m,u]);bt.useImperativeHandle(y,()=>({clear:()=>{g("");}}));let _=bt.useCallback(R=>{R.currentTarget.style.height="16px",R.currentTarget.style.height=R.currentTarget.scrollHeight+"px";},[]);granularHooks.useGranularLayoutEffect(()=>{let R=b.current;R&&(R.style.height="16px",R.style.height=R.scrollHeight+"px");},[s],[f]),bt.useImperativeHandle(c,()=>({setCaretPosition:R=>{b.current&&(b.current.focus(),b.current.setSelectionRange(R,R));},focus:()=>{b.current&&b.current.focus();}}));let{focusProps:C,isFocused:P,isFocusVisible:w}=reactAria.useFocusRing(),{hoverProps:z,isHovered:k}=reactAria.useHover({}),T=utils.filterTruthyValues({"data-focus-visible":w,"data-hovered":k,"data-focused":P});return jsxRuntime.jsx("textarea",{...reactAria.mergeProps(C,z,T),ref:L(b,n),className:utils.classNames(s?jy:[tn(),rn({isInline:i}),Vy]),autoFocus:d,onChange:v,disabled:l,onInput:_,value:f,placeholder:o,spellCheck:a,"aria-label":p,onKeyDown:h})});an.displayName="PlainEditor";var xo="mention",nn="mention_input",o1=bt__default.default.forwardRef(({onCancel:r,editor:e,element:t,onSelectionChange:o},a)=>{let{containerRef:n,items:i,maxMentionableUsersSuggestions:s}=bt.useContext(ln),l=slateReact.useSelected(),[p,c]=bt.useState(""),{contains:d}=reactAria.useFilter({sensitivity:"base"}),{formatMessage:m}=B(),u=bt.useMemo(()=>{let I=i.filter(M=>p===""||d(M.displayName,p)).map(M=>({id:M.id,label:M.displayName,data:M}));return s?lodash.take(I,s):I},[i,s,p,d]),y=bt.useCallback(I=>jsxRuntime.jsx(reactStately.Item,{children:I.label},I.id),[]),b=bt.useCallback((I=!1)=>{let M=plateCommon.findNodePath(e,t);M&&(plateCommon.removeNodes(e,{at:M}),I&&plateCommon.focusEditor(e));},[e,t]),f=reactStately.useComboBoxState({items:u,children:y,menuTrigger:"focus",onSelectionChange:I=>{b(!0),o?.(I);}}),g=bt__default.default.useRef(null),v=bt__default.default.useRef(null),h=bt__default.default.useRef(null),_=bt__default.default.useRef(null),C=plateCombobox.useHTMLInputCursorState(v);reactAria.useInteractOutside({ref:_,onInteractOutside:()=>{f.close();}});let{inputProps:P,listBoxProps:w}=reactAria.useComboBox({defaultItems:u,inputRef:v,buttonRef:g,listBoxRef:h,popoverRef:_,menuTrigger:"focus","aria-label":m(gI.mention)},f);bt.useEffect(()=>{v.current?.focus();},[]);let z=bt.useCallback((I="manual",M=!1)=>{b(M),r?.(I,f.inputValue);},[r,b,f.inputValue]),k=bt.useRef(l);bt.useEffect(()=>{k.current&&!l&&z("deselect"),k.current=l;},[l,z]);let T=C?.atStart??!1,R=C?.atEnd??!1,N=bt.useCallback(I=>{I.key==="Backspace"&&T?z("backspace",!0):I.key==="Escape"?z("escape",!0):I.key==="ArrowLeft"&&T?z("arrowLeft",!0):I.key==="ArrowRight"&&R&&z("arrowRight",!0);let M=plateCommon.Hotkeys.isUndo(I)&&e.history.undos.length>0,D=plateCommon.Hotkeys.isRedo(I)&&e.history.redos.length>0;(M||D)&&(I.preventDefault(),e[M?"undo":"redo"](),plateCommon.focusEditor(e));},[T,R,z,e]),S=bt.useMemo(()=>{if(!CSS.supports("field-sizing","content")){let I=te(v.current),M=v.current?I?.getComputedStyle(v.current).font:void 0;return {width:M?utils.getTextDimensions({text:f.inputValue,font:M}).width+10:"4ch"}}},[f.inputValue]);return jsxRuntime.jsxs(gt.Provider,{value:f,children:[jsxRuntime.jsx("input",{...reactAria.mergeProps(P,{onKeyDown:N,onBlur:()=>{z("blur",!0);},onChange:I=>{c(I.target.value);}}),style:S,className:Ay,ref:L(a,v)}),jsxRuntime.jsx(Ce,{triggerRef:n,isNonModal:!0,ref:_,state:f,crossOffset:-2,children:jsxRuntime.jsx(de,{...w,items:void 0,autoFocus:"first",ref:h,className:utils.classNames(at,tokens.sprinkles({width:"full"})),renderOption:n1})})]})});o1.displayName="MentionInputContentElement";var Ps=cn$1.withRef(({className:r,...e},t)=>{let{children:o,editor:a,element:n}=e,{items:i}=bt.useContext(ln),s=bt.useRef(null),[l,p]=bt.useState(null);bt.useEffect(()=>{let m=plateCommon.findNodePath(a,n);if(!m)return;let u=plateCommon.getPointBefore(a,m);if(!u)return;let y=plateCommon.createPointRef(a,u);return p(y),()=>{y.unref();}},[a,n]);let c=bt.useCallback(()=>{let m=s.current?.getRootNode()instanceof ShadowRoot;plateCommon.moveSelection(a,{unit:"offset"}),plateCommon.moveSelection(a,{unit:"character",distance:1}),Rr()&&m&&plateCommon.focusEditor(a);},[a]),d=bt.useCallback(m=>{if(!m)return;let u=s.current?.getRootNode()instanceof ShadowRoot,y=i.find(f=>f.id===m);utils.invariant(y,"User not found");let b={type:xo,value:y.id,displayName:y.displayName,children:[{text:""}]};plateCommon.insertNodes(a,[b,{text:" "}]),u?setTimeout(()=>{c();},0):c();},[a,i,c]);return jsxRuntime.jsxs(plateCommon.PlateElement,{as:"span","data-slate-value":n.value,contentEditable:!1,className:r,ref:t,...e,children:[jsxRuntime.jsx(o1,{onCancel:(m,u)=>{m!=="backspace"&&plateCommon.insertText(a,"@"+u,{at:l?.current??void 0}),(m==="arrowLeft"||m==="arrowRight")&&plateCommon.moveSelection(a,{distance:1,reverse:m==="arrowLeft"});},onSelectionChange:d,ref:s,element:n,editor:a}),o]})});Ps.displayName="MentionInputElement";var ws=cn$1.withRef(({className:r,onClick:e,children:t,...o},a)=>{let n=plateCommon.useElement();return jsxRuntime.jsxs(plateCommon.PlateElement,{as:"span",className:r,contentEditable:!1,"data-user-id":n.value,onClick:plateCommon.getHandler(e,n),ref:a,...o,children:["@",n.displayName,t]})});ws.displayName="MentionElement";var a1=(r,{options:{trigger:e,triggerPreviousCharPattern:t,triggerQuery:o}})=>{let{insertText:a}=r,n=i=>i===e;return r.insertText=i=>{if(!r.selection||!n(i)||o&&!o(r)){a(i);return}let s=plateCommon.getEditorString(r,plateCommon.getRange(r,r.selection,plateCommon.getPointBefore(r,r.selection)));if(t?.test(s)){sn(r);return}a(i);},r},gI=K({mention:{defaultMessage:"Mention",id:"mention"}});function s1({className:r,children:e,...t}){return jsxRuntime.jsx(plateCommon.PlateElement,{asChild:!0,className:r,...t,children:jsxRuntime.jsx("p",{children:e})})}function LI(r){return Object.entries(r).map(([e,t])=>`${lodash.kebabCase(e)}:${t}`).filter(([,e])=>!!e).join(";")}function MI(r){return "text"in r}function DI(r){return r.replaceAll("&","&amp;").replaceAll("<","&lt;").replaceAll(">","&gt;").replaceAll('"',"&quot;").replaceAll("'","&#039;")}function Po(r){if(!r)return "";function e(t){if(MI(t)){let a=DI(t.text);return t.bold&&(a=`<b>${a}</b>`),t.italic&&(a=`<i>${a}</i>`),t.underline&&(a=`<u>${a}</u>`),(t.color||t.backgroundColor)&&(a=`<span style="${LI(utils.filterTruthyValues({color:t.color||void 0,backgroundColor:t.backgroundColor||void 0}))}">${a}</span>`),a}let o=t.children?.map(Po).join("");switch(t.type){case plateParagraph.ELEMENT_PARAGRAPH:return `<p>${o}</p>`;case plateLink.ELEMENT_LINK:return `<a href="${t.url}">${o}</a>`;case xo:return `<span data-user-id="${t.value}">${t.displayName}</span>`;default:return o}}return Array.isArray(r)?r.map(t=>e(t)).join(""):e(r)}function AI(r){return r?(r=r.trim(),r.endsWith(";")&&(r=r.slice(0,-1)),Object.fromEntries(r.split(";").map(e=>e.split(":").map(t=>t.trim())).map(([e,t])=>[lodash.camelCase(e),t]))):{}}function Ts(r){r.startsWith("<p>")||(r=`<p>${r}</p>`);let e=new DOMParser().parseFromString(l1__namespace.default.sanitize(r),"text/html"),t=e.querySelectorAll("[style]");for(let a of t)a.style.textDecoration==="underline"&&(a.style.textDecoration="",a.style.cssText||a.removeAttribute("style"),a.hasAttributes()?a.innerHTML=`<u>${a.innerHTML}</u>`:a.outerHTML=`<u>${a.innerHTML}</u>`);let o=e.querySelectorAll("br");for(let a of o)a.outerHTML=a.closest("p")?`
41
+ `:"<p>";return c1(e.body)}function c1(r,e){if(r.nodeType===Node.TEXT_NODE)return slateHyperscript.jsx("text",e,r.textContent);if(r.nodeType!==Node.ELEMENT_NODE)return null;let t={...e};switch(r.nodeName.toUpperCase()){case"B":{t.bold=!0;break}case"I":{t.italic=!0;break}case"EM":{t.italic=!0;break}case"U":{t.underline=!0;break}case"SPAN":{let a=AI(r.getAttribute("style")||"");a["text-decoration"]==="underline"&&(t.underline=!0),a.color&&(t.color=a.color),a.backgroundColor&&(t.backgroundColor=a.backgroundColor);break}}let o=[...r.childNodes].flatMap(a=>c1(a,t));switch(o.length===0&&o.push(slateHyperscript.jsx("text",t,"")),r.nodeName.toUpperCase()){case"BR":return slateHyperscript.jsx("text",e,`
42
+ `);case"SPAN":{let a=r.dataset.userId;return a?slateHyperscript.jsx("element",{type:xo,value:a,displayName:r.textContent},{text:""}):o}case"P":return slateHyperscript.jsx("element",{type:plateParagraph.ELEMENT_PARAGRAPH},o);case"A":return slateHyperscript.jsx("element",{type:plateLink.ELEMENT_LINK,url:r.getAttribute("href")},o);default:return o}}function d1(r){let e=plateCommon.findNode(r,{match:{type:plateCommon.getPluginType(r,plateLink.ELEMENT_LINK)}}),[t]=e||[{url:""}];return t?.url}function sn(r){let e={children:[{text:" "}],type:nn};r.insertNode(e);}var BI=plateCommon.createPluginFactory({isElement:!0,isInline:!0,isMarkableVoid:!0,isVoid:!0,key:xo,options:{trigger:"@",triggerPreviousCharPattern:/^$|^[\s"']$/},plugins:[{isElement:!0,isInline:!0,isVoid:!0,key:nn}],withOverrides:a1}),u1=plateCommon.createPlugins([plateParagraph.createParagraphPlugin({component:s1}),plateBasicMarks.createBoldPlugin({component:cn$1.withProps(plateCommon.PlateLeaf,{as:"b"})}),plateBasicMarks.createItalicPlugin({component:cn$1.withProps(plateCommon.PlateLeaf,{as:"i"})}),plateBasicMarks.createUnderlinePlugin({component:cn$1.withProps(plateCommon.PlateLeaf,{as:"u"})}),plateFont.createFontColorPlugin(),plateFont.createFontBackgroundColorPlugin(),plateLink.createLinkPlugin({component:m1}),BI({component:ws})],{components:{[nn]:Ps}});var St={Add:"add",Edit:"edit",Show:"show"},g1=({isDisabled:r})=>{let{formatMessage:e}=B(),t=plateCommon.useEditorRef();return jsxRuntime.jsxs(Oe,{type:"dialog",children:[jsxRuntime.jsx(je,{children:jsxRuntime.jsx(A,{icon:_20.LinkIcon,size:"sm",isDisabled:r,"aria-label":e(It.addLink),className:br,preventFocusOnPress:!0})}),jsxRuntime.jsx(Me,{className:tokens.sprinkles({boxShadow:"medium"}),placement:"top end",children:({close:o})=>jsxRuntime.jsx(ve,{size:"content",style:{minWidth:240},children:jsxRuntime.jsx(qI,{close:()=>{o(),setTimeout(()=>{plateCommon.focusEditor(t,t.selection);},0);}})})})]})},qI=({close:r})=>{let e=plateCommon.useEditorRef(),{formatMessage:t}=B(),o=plateCommon.useEditorSelector(p=>d1(p),[]),[a,n]=bt__default.default.useState(o?St.Show:St.Add),[i,s]=bt__default.default.useState(o||""),l=jsxRuntime.jsx(E,{padding:"lg",children:jsxRuntime.jsx(nt,{label:t(It.link),value:i,autoFocus:!0,onChange:s,placeholder:"https://yourdomain.com"})});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[a===St.Add&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[l,jsxRuntime.jsx(E,{display:"flex",justifyContent:"flex-end",padding:"lg",className:Ny,children:jsxRuntime.jsx(G,{isDisabled:!utils.isUrl(i,!0),label:t(It.addLink),size:"sm",onPress:()=>{plateLink.upsertLink(e,{url:i,skipValidation:!0}),r?.();},preventFocusOnPress:!0})})]}),a===St.Show&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(E,{padding:"lg",children:jsxRuntime.jsx(J,{type:"subtitle",size:"sm",children:o})}),jsxRuntime.jsxs(E,{display:"flex",justifyContent:"flex-end",padding:"lg",gap:"lg",borderColor:"border.subtle",borderWidth:1,borderStyle:"solid",children:[jsxRuntime.jsx(G,{label:t(It.editLink),size:"sm",variant:"secondary",onPress:()=>{n(St.Edit);},style:{flex:1,justifyContent:"center"}}),jsxRuntime.jsx(G,{label:t(It.removeLink),size:"sm",onPress:()=>{plateLink.unwrapLink(e),r?.();},preventFocusOnPress:!0,style:{flex:1,justifyContent:"center"}})]})]}),a===St.Edit&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[l,jsxRuntime.jsxs(E,{display:"flex",justifyContent:"flex-end",padding:"lg",gap:"lg",borderColor:"border.subtle",borderWidth:1,borderStyle:"solid",children:[jsxRuntime.jsx(G,{label:t(It.cancel),size:"sm",variant:"secondary",onPress:()=>{n(St.Show),r?.();}}),jsxRuntime.jsx(G,{label:t(It.save),size:"sm",onPress:()=>{plateLink.upsertLink(e,{url:i,skipValidation:!0}),r?.();}})]})]})]})};function m1({className:r,children:e,...t}){return jsxRuntime.jsx(plateCommon.PlateElement,{asChild:!0,className:r,...t,children:jsxRuntime.jsx("a",{className:xa({size:"sm"}),children:e})})}var It=K({addLink:{id:"addLink",defaultMessage:"Add Link",description:"Add Link"},editLink:{id:"editLink",defaultMessage:"Edit Link",description:"Edit Link"},removeLink:{id:"removeLink",defaultMessage:"Remove Link",description:"Remove Link"},cancel:{id:"cancel",defaultMessage:"Cancel",description:"Cancel"},save:{id:"save",defaultMessage:"Save",description:"Save"},link:{id:"linkAnnotation",defaultMessage:"Link",description:"Link"}});var GI=color.parseColor("#ffffff00").toString("hexa"),Ns=[{label:"Red",color:"#ff0000"},{label:"Green",color:"#00ff00"},{label:"Blue",color:"#0000ff"},{label:"Yellow",color:"#ffff00"},{label:"Cyan",color:"#00ffff"},{label:"Magenta",color:"#ff00ff"},{label:"Black",color:"#000000"},{label:"White",color:"#ffffff"},{label:"Gray",color:"#808080"},{label:"Orange",color:"#ffa500"},{label:"Brown",color:"#a52a2a"},{label:"Purple",color:"#800080"}];[...Ns,{label:"Transparent",color:GI}];var cn=({nodeType:r,icon:e,ariaLabel:t,isDisabled:o})=>{let a=plateCommon.useEditorSelector(i=>plateCommon.isMarkActive(i,r),[]),n=plateCommon.useEditorRef();return jsxRuntime.jsx(xe,{variant:"tertiary",isSelected:a,size:"sm",icon:e,"aria-label":t,isDisabled:o,onPress:()=>{plateCommon.toggleMark(n,{key:r});},preventFocusOnPress:!0})},Ls=({nodeType:r,"aria-label":e,isDisabled:t})=>{let{updateColor:o,clearColor:a,color:n}=plateFont.useColorDropdownMenuState({customColors:[],colors:[],nodeType:r}),i=bt.useCallback(({ref:l,triggerProps:p})=>jsxRuntime.jsx(A,{icon:r==="color"?_24.TextIcon:_24.HighlightTextIcon,"aria-label":e,size:"md",variant:"popover",isDisabled:t,className:br,preventFocusOnPress:!0,...p,ref:l}),[r,e,t]),s=bt.useCallback(l=>{l?o(l.toString("rgba")):a();},[a,o]);return jsxRuntime.jsx(ur,{presets:Ns,allowRemoval:!0,pickerMode:"lazy",placement:"top end",colorLabel:!1,renderTriggerButton:i,value:n||"#000000",onChange:s,isDisabled:t})};var xR=[{type:plateParagraph.ELEMENT_PARAGRAPH,children:[{text:""}]}],ln=bt__default.default.createContext({items:[],containerRef:{current:null},maxMentionableUsersSuggestions:10}),As=bt__default.default.forwardRef(({value:r,defaultValue:e,onChange:t,style:o,spellCheck:a,placeholder:n,isInline:i,isDisabled:s,editableContentAriaLabel:l,containerRef:p,onHelpDialogOpenRequest:c,mentionableUsers:d,editorHandle:m,maxMentionableUsersSuggestions:u,autoFocus:y,editorRef:b,saveOnEnter:f,onSave:g},v)=>{let h=bt.useRef(null),_=reactAria.useId(),{formatMessage:C}=B(),P=bt.useRef(null),w=P.current,z=bt.useRef(null),k=bt.useMemo(()=>w?.getRootNode()instanceof ShadowRoot,[w]),[T,R]=utils$1.useControlledState(r?Ts(r):void 0,Ts(e||"<p></p>"),I=>{t&&t(Po(I));}),{keyboardProps:N}=reactAria.useKeyboard({onKeyDown:I=>{(f&&I.key==="Enter"&&!I.shiftKey||(I.ctrlKey||I.metaKey)&&I.key==="Enter")&&(I.preventDefault(),g()),I.altKey&&I.key==="F10"?(I.preventDefault(),h.current&&h.current.querySelector("button")?.focus()):I.continuePropagation(),Rr()&&k&&z.current&&plateCommon.focusEditor(z.current);}});bt.useEffect(()=>{s&&z.current&&plateCommon.deselect(z.current);},[s]),bt.useImperativeHandle(v,()=>({startMention:()=>{z.current&&!P.current?.querySelector("input[role='combobox']")&&sn(z.current);}})),bt.useImperativeHandle(m,()=>({setCaretPosition:I=>{z.current&&(plateCommon.focusEditor(z.current),plateCommon.moveSelection(z.current,{distance:I,unit:"character"}));},focus:()=>{z.current&&plateCommon.focusEditor(z.current);}}));let S=bt.useMemo(()=>({items:d||[],containerRef:p,maxMentionableUsersSuggestions:u}),[d,p,u]);return jsxRuntime.jsx(ln.Provider,{value:S,children:jsxRuntime.jsxs(plateCommon.Plate,{initialValue:T||xR,plugins:u1,editorRef:L(z,b||null),onChange:I=>{R(I);},children:[jsxRuntime.jsxs(en,{className:on,"aria-controls":_,ref:h,children:[jsxRuntime.jsxs(E,{display:"flex",flexDirection:"row",role:"group",gap:"xs",paddingX:"sm",children:[jsxRuntime.jsx(cn,{nodeType:plateBasicMarks.MARK_BOLD,icon:_20.BoldIcon,ariaLabel:C(_r.bold),isDisabled:s}),jsxRuntime.jsx(cn,{nodeType:plateBasicMarks.MARK_ITALIC,icon:_20.ItalicIcon,ariaLabel:C(_r.italic),isDisabled:s}),jsxRuntime.jsx(cn,{nodeType:plateBasicMarks.MARK_UNDERLINE,icon:_20.UnderlineIcon,ariaLabel:C(_r.underline),isDisabled:s})]}),jsxRuntime.jsx(U,{orientation:"vertical",className:vo}),jsxRuntime.jsx(Ls,{nodeType:plateFont.MARK_COLOR,"aria-label":C(_r.fontColor),isDisabled:s}),jsxRuntime.jsx(U,{orientation:"vertical",className:vo}),jsxRuntime.jsx(Ls,{nodeType:plateFont.MARK_BG_COLOR,"aria-label":C(_r.backgroundColor),isDisabled:s}),jsxRuntime.jsx(U,{orientation:"vertical",className:vo}),jsxRuntime.jsx(g1,{isDisabled:s}),jsxRuntime.jsx(U,{orientation:"vertical",className:vo}),jsxRuntime.jsx(A,{className:br,icon:_24.QuestionmarkCircleIcon,size:"sm","aria-label":C(_r.help),onPress:c})]}),jsxRuntime.jsx(U,{variant:"secondary"}),jsxRuntime.jsx("div",{...N,ref:P,children:jsxRuntime.jsx(plateCommon.PlateContent,{id:_,disabled:s,readOnly:s,style:o,placeholder:n,autoFocus:y,spellCheck:a,"aria-label":l,className:utils.classNames(tn({isDisabled:s}),rn({isInline:i})),renderPlaceholder:({attributes:I,children:M})=>jsxRuntime.jsx("span",{...I,className:tokens.sprinkles({paddingY:"lg"}),children:M})})})]})})});As.displayName="RichEditor";var n1=({key:r,value:e},{isDisabled:t,optionProps:o,isFocused:a,_state:n},i)=>{let{hoverProps:s}=reactAria.useHover({isDisabled:t}),{label:l,data:p}=e;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("li",{...reactAria.mergeProps(o,s),className:By({isDisabled:t,isHovered:a}),"data-active":a,ref:i,children:[jsxRuntime.jsx(pr,{name:l,...p?.avatar}),jsxRuntime.jsxs(E,{display:"flex",flexDirection:"column",children:[jsxRuntime.jsx(J,{type:"subtitle",size:"sm",children:l}),jsxRuntime.jsx(J,{type:"helper",size:"sm",children:p?.description})]})]}),r===n.collection.getLastKey()?null:jsxRuntime.jsx(U,{})]})},_r=K({bold:{defaultMessage:"Bold",id:"bold"},italic:{defaultMessage:"Italic",id:"italic"},underline:{defaultMessage:"Underline",id:"underline"},backgroundColor:{defaultMessage:"Background color",id:"backgroundColor"},fontColor:{defaultMessage:"Font color",id:"fontColor"},help:{defaultMessage:"Help",id:"help"}});var x1=bt__default.default.memo(bt__default.default.forwardRef(({className:r,style:e,"data-block-id":t,"data-block-class":o,enableRichText:a=!1,onCancel:n,onSave:i,isInline:s=!0,submitButtonIcon:l=_20.ArrowUpCircleFilledIcon,submitButtonAriaLabel:p,cancelButtonAriaLabel:c,"aria-label":d,"aria-describedby":m,"aria-labelledby":u,"aria-details":y,editableContentAriaLabel:b="Editing Area",footerButtons:f,clearOnCancel:g,clearOnSave:v,...h},_)=>{let C=bt.useRef(null),{formatMessage:P}=B(),w=bt.useRef(null),z=bt.useRef(null),k=bt.useRef(null),T=!a&&h.variant==="minimal",R=bt.useRef(null),[N,S]=bt__default.default.useState(h.value||h.defaultValue),I=h.isDisabled||h.isSaveDisabled||!utils.getPlainText(N||""),{fieldProps:M}=reactAria.useLabel({"aria-label":d,"aria-labelledby":u,"aria-describedby":m,"aria-details":y,labelElementType:"div"});T&&!h.avatarName&&console.warn("Editor: When using the minimal `variant` and `enableRichText` is `false`, you should provide an `avatarName`.");let D=bt.useCallback(()=>{S(""),a?C.current?.reset():z.current?.clear();},[a]),j=bt.useCallback(()=>{I||(i?.(a?Po(C.current?.children):w.current.value),v&&D());},[D,v,a,i,I]),O=jsxRuntime.jsx(A,{variant:"ghost","aria-label":p||P(Os.save),icon:l,isDisabled:I,size:"md",excludeFromTabOrder:T,className:T?Oy:void 0,onPress:j,preventFocusOnPress:!0}),[V,$]=bt__default.default.useState(!1),{keyboardProps:F}=reactAria.useKeyboard({onKeyDown:H=>{(H.metaKey||H.ctrlKey)&&H.shiftKey&&H.key==="h"&&(H.preventDefault(),$(!0));}}),ee=bt.useCallback(H=>{S(H),h.onChange?.(H);},[h]);return jsxRuntime.jsxs("div",{...reactAria.mergeProps(M,a?F:{}),role:"application",ref:L(k,_),style:e,"data-block-id":t,"data-block-class":o,className:utils.classNames(Ly({isInline:s,isMinimal:T}),"BaselineUI-Editor",r),"aria-disabled":h.isDisabled,children:[T?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s?jsxRuntime.jsx(pr,{className:Ey,name:h.avatarName||""}):null,jsxRuntime.jsxs("div",{className:Fy({isInline:s}),children:[jsxRuntime.jsx(an,{isMinimal:T,textBoxRef:w,isInline:s,editableContentAriaLabel:b,...h,onChange:ee,onSave:j}),O]})]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[a?jsxRuntime.jsx(As,{containerRef:k,ref:R,editorRef:C,isInline:s,editableContentAriaLabel:b,onHelpDialogOpenRequest:()=>{$(!0);},...h,onChange:ee,onSave:j}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[!s&&jsxRuntime.jsx(U,{variant:"secondary"}),jsxRuntime.jsx(an,{onCancel:n,textBoxRef:w,ref:z,isInline:s,editableContentAriaLabel:b,...h,onChange:H=>{S(H),h.onChange?.(H);},onSave:j})]}),jsxRuntime.jsx(U,{variant:"secondary"}),jsxRuntime.jsxs("div",{className:utils.classNames(on,tokens.sprinkles({justifyContent:"space-between"})),children:[jsxRuntime.jsxs(E,{paddingX:"sm",gap:"sm",display:"flex",children:[a&&h.mentionableUsers?jsxRuntime.jsx(A,{icon:_20.AtIcon,size:"sm","aria-label":P(Os.mention),onPress:()=>R.current?.startMention(),preventFocusOnPress:!0}):null,f?.map(({type:H,props:Z},X)=>H==="action"?jsxRuntime.jsx(A,{...Z,size:"sm",isDisabled:h.isDisabled||Z.isDisabled},X):jsxRuntime.jsx(xe,{...Z,size:"sm",variant:"tertiary",isDisabled:h.isDisabled||Z.isDisabled},X))]}),jsxRuntime.jsxs(E,{children:[!!n&&jsxRuntime.jsx(A,{variant:"secondary",icon:_20.XCircleFilledIcon,isDisabled:h.isDisabled,size:"md",onPress:()=>{n(),g&&D();},"aria-label":c||P(Os.cancel)}),O]})]})]}),jsxRuntime.jsx(qy,{isOpen:V,onClose:()=>{$(!1);}})]})}));x1.displayName="Editor";var Os=K({cancel:{defaultMessage:"Cancel",id:"cancel"},save:{defaultMessage:"Save",id:"save"},mention:{defaultMessage:"Mention",id:"mention"}});var P1="_8kqf970 _1yep5z6po _1yep5z6pp _1yep5z6pq _1yep5z6m6 _1yep5z6m7 _1yep5z6m8 _1yep5z6oi _1yep5z6oj _1yep5z6ok _1yep5z614v _1yep5z614w _1yep5z614x _1yep5z6154 _1yep5z6155 _1yep5z6156 _1yep5z615m _1yep5z615n _1yep5z615o _1yep5z6z9 _1yep5z6vi _1yep5z6vj _1yep5z6vk _1yep5z617s _1yep5z6101";var k1=2,I1=bt__default.default.forwardRef(({className:r,style:e,hideForKeyboard:t,scrollRef:o,label:a,delay:n=1500,smoothScroll:i=!0,"data-block-id":s,"data-block-class":l},p)=>{let c=bt__default.default.useRef(null),d=interactions.useInteractionModality(),[m,u]=bt__default.default.useState(!1),y=bt.useCallback(()=>{let k=o?.current||fe(c.current).body;return te(k).getComputedStyle(k).flexDirection==="column-reverse"?k.scrollTop+k1>=0:k.scrollTop+k.clientHeight+k1>=k.scrollHeight},[o]),[b,f]=bt__default.default.useState(y),{buttonProps:g,isPressed:v}=reactAria.useButton({onPress:()=>{let k=o?.current||fe(c.current).body;k.scrollTo({top:k.scrollHeight,behavior:i?"smooth":"auto"});}},c),{focusProps:h,isFocused:_,isFocusVisible:C}=reactAria.useFocusRing(),{hoverProps:P,isHovered:w}=reactAria.useHover({}),z=utils.filterTruthyValues({"data-block-id":s,"data-block-class":l,"data-pressed":v,"data-focus-visible":C,"data-hovered":w,"data-focused":_});return bt.useEffect(()=>{f(y());},[y]),bt.useEffect(()=>{let k=o?.current||fe(c.current).body,T="onscrollend"in te(k),R=()=>{setTimeout(()=>{u(!1),f(y());},n);},N=()=>{u(!0),T||R();};return k.addEventListener("scroll",N),k.addEventListener("scrollend",R),()=>{k.removeEventListener("scroll",N),k.removeEventListener("scrollend",R);}},[o,n,y]),jsxRuntime.jsx(react.AnimatePresence,{initial:!1,children:(!t||d!=="keyboard")&&!m&&!b?jsxRuntime.jsxs(react.motion.button,{initial:{opacity:0,transform:"translateX(-50%) translateY(10px)"},animate:{opacity:1,transform:"translateX(-50%) translateY(0)"},exit:{opacity:0,transform:"translateX(-50%) translateY(10px)"},transition:{duration:.3},...reactAria.mergeProps(g,h,P,z),className:utils.classNames(P1,Ra({isFocusVisible:C,variant:"high-contrast",isHovered:w}),Ta({variant:"high-contrast"}),"BaselineUI-ScrollControlButton",r),style:e,ref:L(p,c),children:[jsxRuntime.jsx(_16.ArrowDownCircleFilledIcon,{size:16,className:Jr({variant:"high-contrast"})}),a]}):null})});I1.displayName="ScrollControlButton";var Fs="_1yep5z6k4 _1yep5z6k5 _1yep5z6k6 _1yep5z6kd _1yep5z6ke _1yep5z6kf",R1=x({defaultClassName:"_1v0p2z10 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z69f _1yep5z69g _1yep5z69h",variantClassNames:{hasTitleAndIcon:{true:"_1yep5z6m6 _1yep5z6m7 _1yep5z6m8 _1yep5z6oo _1yep5z6op _1yep5z6oq"},hasNoCloseBtn:{true:"_1yep5z6mc _1yep5z6md _1yep5z6me _1yep5z6oo _1yep5z6op _1yep5z6oq _1yep5z6pu _1yep5z6pv _1yep5z6pw _1yep5z6ni _1yep5z6nj _1yep5z6nk"}},defaultVariants:{},compoundVariants:[[{hasTitleAndIcon:!0,hasNoCloseBtn:!0},"_1yep5z61hr _1yep5z61hs _1yep5z61ht"]]}),T1="_1v0p2z10";var mn=bt__default.default.forwardRef(({className:r,style:e,"data-block-id":t,"data-block-class":o,message:a,title:n,primaryActionLabel:i,cancelLabel:s,textInputProps:l,icon:p,iconColor:c,showCloseButton:d=!0,onPrimaryAction:m,onCancel:u,autoFocusButton:y,isPrimaryActionDisabled:b},f)=>{let g=reactAria.useId(),{formatMessage:v}=B(),h=n&&jsxRuntime.jsx(J,{id:g,type:"title",size:"sm",elementType:"h3",children:n});return jsxRuntime.jsxs(ve,{className:r,style:e,"data-block-id":t,"data-block-class":o,size:"sm",variant:"primary",role:"alertdialog",ref:f,"aria-labelledby":g,children:[jsxRuntime.jsxs("div",{className:R1({hasTitleAndIcon:!!(p&&n),hasNoCloseBtn:!d}),children:[jsxRuntime.jsxs(E,{display:"flex",justifyContent:"space-between",alignItems:"center",flexDirection:"row",children:[p?jsxRuntime.jsx(p,{style:{color:c},size:24}):null,!p&&h,d?jsxRuntime.jsx(A,{icon:_20.XIcon,variant:"secondary",size:"md","aria-label":v(WR.close),onPress:u}):null]}),p?h:null]}),a?jsxRuntime.jsx(E,{elementType:"section",className:T1,paddingX:"lg",paddingBottom:"lg",typography:"body.sm.regular",color:"text.primary",children:a}):null,l?jsxRuntime.jsx(E,{paddingX:"lg",paddingBottom:"lg",children:jsxRuntime.jsx(nt,{...l})}):null,s||i?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(U,{}),jsxRuntime.jsxs(E,{padding:"lg",display:"flex",gap:"xl",children:[s?jsxRuntime.jsx(G,{variant:"secondary",className:Fs,label:s,onPress:u,autoFocus:y==="cancel"}):null,i?jsxRuntime.jsx(G,{className:Fs,label:i,onPress:m,autoFocus:y==="primary",isDisabled:b}):null]})]}):null]})});mn.displayName="AlertDialog";var WR=K({close:{id:"close",defaultMessage:"Close",description:"Close button label"}});var N1="_1t55bp71",E1="_1yep5z6e3 _1yep5z6eu _1yep5z6iy _1yep5z6iz _1yep5z6j0 _1yep5z69i _1yep5z69j _1yep5z69k",L1="_1t55bp70";var eT=QR__default.default(),M1=bt__default.default.forwardRef(({className:r,style:e,children:t,"data-block-id":o,"data-block-class":a,showCaret:n},i)=>{let s=bt.useMemo(()=>{let l=t;return (!t||Array.isArray(t)&&t.length===0)&&(l=""),eT.render(l)},[t]);return jsxRuntime.jsx("div",{className:utils.classNames(E1,L1,{[N1]:n},"BaselineUI-Markdown",r),"data-block-id":o,"data-block-class":a,style:e,ref:i,dangerouslySetInnerHTML:{__html:s}})});M1.displayName="Markdown";function O1(r){let{formatMessage:e,locale:t}=B(),[o,a]=bt__default.default.useState(!1),[n,i]=bt__default.default.useState(0),[s,l]=bt__default.default.useState(0),[p,c]=bt__default.default.useState(!1);bt.useEffect(()=>{if(!r.current)return;let u=r.current,y=()=>{a(!1),i(0);},b=()=>{p||i(u.currentTime*100/u.duration);},f=()=>{l(u.duration);};return u.addEventListener("ended",y),u.addEventListener("timeupdate",b),u.addEventListener("loadedmetadata",f),()=>{u.removeEventListener("ended",y),u.removeEventListener("timeupdate",b),u.removeEventListener("loadedmetadata",f);}},[p,r]);let d=bt.useCallback(()=>{(async()=>r.current&&(r.current.paused?(await r.current.play(),a(!0),liveAnnouncer.announce(e(A1.playing),"polite")):(r.current.pause(),a(!1),liveAnnouncer.announce(e(A1.paused),"polite"))))();},[e,r]),m=bt.useCallback(u=>{r.current&&(r.current.currentTime=u*r.current.duration/100,liveAnnouncer.announce(oT(r.current.currentTime,t.locale),"assertive"));},[t.locale,r]);return {isPlaying:o,progress:n,duration:s,togglePlay:d,seek:m,setProgress:i,formattedCurrentTime:r.current?.currentTime?B1(r.current?.currentTime):"00:00",formattedDuration:s?B1(s):"00:00",setIsSliderDragging:c}}var A1=K({playing:{id:"playing",defaultMessage:"Playing"},paused:{id:"paused",defaultMessage:"Paused"}});function oT(r,e){let t=Math.floor(r/3600),o=Math.floor(r%3600/60),a=r%60,n={...t&&{hours:t},...o&&{minutes:o},seconds:Math.floor(a)};return new Intl.DurationFormat(e,{style:"long"}).format(n)}function B1(r){let e=Math.floor(r%3600/60),t=Math.floor(r%60);return [e,t].map(o=>o.toString().padStart(2,"0")).join(":")}var j1="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69o _1yep5z69p _1yep5z69q",F1="rta2n91 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69o _1yep5z69p _1yep5z69q _1yep5z6101 _1yep5z6vl _1yep5z6vm _1yep5z6vn _1yep5z617q _1yep5z610y",H1="rta2n90";var U1=bt__default.default.forwardRef(({className:r,style:e,size:t="lg",sources:o,"data-block-id":a,"data-block-class":n,...i},s)=>{let l=bt__default.default.useRef(null),{isPlaying:p,progress:c,duration:d,togglePlay:m,seek:u,formattedDuration:y,formattedCurrentTime:b,setProgress:f,setIsSliderDragging:g}=O1(l),{formatMessage:v}=B(),h=utils.filterTruthyValues({"data-block-id":a,"data-block-class":n,"data-state":p?"playing":"paused","data-loaded":d>0});return jsxRuntime.jsxs("div",{...h,...i,className:utils.classNames(j1,"BaselineUI-AudioPlayer",r),role:"group",style:e,ref:s,children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("audio",{ref:l,children:o.map(({url:_,type:C})=>jsxRuntime.jsx("source",{src:_,type:C},_))})}),jsxRuntime.jsx(xe,{icon:p?_24.PauseIcon:_24.PlayIcon,variant:"toolbar",isSelected:p,size:t,"aria-label":v(p?Vs.pause:Vs.play),style:{borderRadius:"50%"},onPress:m}),jsxRuntime.jsxs("div",{className:F1,children:[jsxRuntime.jsx("span",{"aria-hidden":!0,children:b}),jsxRuntime.jsx(Kt,{"aria-label":v(Vs.audioTimeline),value:c,minValue:0,maxValue:100,className:H1,onChange:_=>{f(_),g(!0);},onChangeEnd:_=>{u(_),g(!1);}}),jsxRuntime.jsx("span",{"aria-hidden":!0,children:y})]})]})});U1.displayName="AudioPlayer";var Vs=K({play:{id:"play",defaultMessage:"Play"},pause:{id:"pause",defaultMessage:"Pause"},audioTimeline:{id:"audioTimeline",defaultMessage:"Audio timeline"}});var q1="_1w920rnd _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6g1 _1yep5z6ig _1yep5z6ih _1yep5z6ii",K1="_1w920rn1 _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69i _1yep5z69j _1yep5z69k",G1="_1w920rn0 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6le",yn=x({defaultClassName:"_1w920rn2 _1yep5z6d6 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6id _1yep5z6ie _1yep5z6if",variantClassNames:{isFocusVisible:{true:"_1yep5z6lt _1yep5z6lr _1yep5z6hx"},isSelected:{true:"_1yep5z6lt _1yep5z6lr _1yep5z6hx"},isLoading:{true:"_1yep5z616g _1yep5z616h _1yep5z616i"}},defaultVariants:{},compoundVariants:[[{isFocusVisible:!0,isSelected:!0},"_1w920rn6 _1yep5z6lt _1yep5z6lr _1yep5z6hx"]]}),W1="_1w920rnb _1yep5z6lo",X1=x({defaultClassName:"_1w920rn7 _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6g5 _1yep5z6eu _1yep5z6dy",variantClassNames:{isFocusVisible:{true:"_1w920rn8 _1yep5z6lt _1yep5z6lr _1yep5z6hx"},isSelected:{true:"_1w920rn9"}},defaultVariants:{},compoundVariants:[[{isFocusVisible:!0,isSelected:!0},"_1w920rna _1yep5z61ty _1yep5z61tx _1yep5z61q4"]]}),Y1="_1w920rnc";var bn=({items:r,ulRef:e,containerClassName:t,previewClassName:o,itemDataAttribute:a,showCount:n=!1})=>{let{length:i}=r,s=bt__default.default.useRef(null);return bt.useLayoutEffect(()=>{if(!s.current)return;let l=s.current.closest(t)?.querySelector(`[${a}='${r?.at(-1)?.key}']`)?.cloneNode(!0);utils.invariant(l,"Node is not defined."),s.current?.prepend(l);},[r,e,t,a]),jsxRuntime.jsx("div",{className:o,ref:s,children:n&&i>1?jsxRuntime.jsx(E,{backgroundColor:"background.secondary.medium",borderRadius:"full",typography:"label.md.medium",color:"text.primary",position:"absolute",paddingX:"md",className:Y1,children:i}):null})};function J1(r,e){return r.find(t=>t.id===e)}function Q1(r,e,t){let o=[...r],a=o.filter(s=>t.has(s.id)),n=o.filter(s=>!t.has(s.id)),i=n.findIndex(s=>s.id===e);return n.flatMap((s,l)=>l===i?[...a,s]:s)}function eb(r,e,t){let o=[...r],a=o.filter(s=>t.has(s.id)),n=o.filter(s=>!t.has(s.id)),i=n.findIndex(s=>s.id===e);return n.flatMap((s,l)=>l===i?[s,...a]:s)}function $s(r){return r.map(e=>({id:e.id,label:e.label,data:{src:e.src,alt:e.alt}}))}function gn(r){return r.map(e=>({id:e.id,label:e.label,src:e.data?.src,alt:e.data?.alt}))}var vT=({fit:r,item:e,deleteElement:t})=>{let{formatMessage:o}=B(),a=react.useReducedMotion(),{imgProps:n,isLoading:i}=Ht({src:e.data?.src,alt:e.data?.alt??""});return i?jsxRuntime.jsx(nr,{"aria-label":o(So.loading)}):jsxRuntime.jsx(react.motion.div,{role:"img",initial:{opacity:a?1:0},animate:{opacity:1},exit:{opacity:a?1:0},"aria-label":n.alt,style:{backgroundImage:`url(${n.src})`,backgroundSize:r},className:W1,children:t})},ob=({item:r,options:{optionProps:e,isFocusVisible:t,isSelected:o,isFocused:a,isDisabled:n,isPressed:i},liRef:s,fit:l="contain",onDelete:p,className:c,imageClassName:d,imageLabelClassName:m,imageDimensions:u,style:y,layoutTransition:b=!0,renderImage:f=(g,{deleteElement:v})=>jsxRuntime.jsx(vT,{item:g,deleteElement:v,fit:l})})=>{let g=reactAria.useId(),{formatMessage:v}=B(),{value:h}=r;utils.invariant(h&&Ye(h),"Expected value to be a list option");let _=p?jsxRuntime.jsx("div",{className:q1,children:jsxRuntime.jsx(A,{"aria-label":v(So.delete),size:"xs",icon:_12.XIcon,onPress:()=>{p(h.id);},UNSAFE_NON_INTERACTIVE:!0})}):null,C=gn([h])[0],P=bt.useCallback(N=>{let S={},I=typeof N=="function"?N(C,{isSelected:o}):N;return I&&(S.width=typeof I.width=="string"?qs[I.width]:I.width,S.aspectRatio="height"in I?`${S.width} / ${I.height}`:I?.aspectRatio?.toString()),S},[C,o]),w=bt.useMemo(()=>({isFocusVisible:t,isSelected:o,isFocused:a,isDisabled:n,isPressed:i}),[t,o,a,n,i]),z=react.useReducedMotion(),k=typeof b=="boolean"?b:!z,T=typeof b=="object"?b:void 0,R=k?react.motion.li:"li";return jsxRuntime.jsxs(R,{...reactAria.mergeProps(e,k?{layout:!0,transition:T}:void 0),ref:s,className:utils.classNames(K1,Ze(c,C,w)),"aria-labelledby":g,style:Bo(y,C,w),children:[jsxRuntime.jsx(E,{display:"flex",flexDirection:"column",flex:1,justifyContent:"center",alignItems:"center",children:jsxRuntime.jsx("div",{className:utils.classNames(yn({isFocusVisible:t,isSelected:o,isLoading:!0}),Ze(d,C,w)),style:P(u),"data-image-key":h.id,children:f(h,{deleteElement:_??void 0,onDelete:p})})}),jsxRuntime.jsx("span",{id:g,className:utils.classNames(X1({isFocusVisible:t,isSelected:o}),Ze(m,C,w)),children:h.label})]})};var wT={width:0,display:"block"},ib={src:"src",alt:"alt"},qs={sm:102,md:170},sb=bt__default.default.forwardRef(({className:r,style:e,fit:t="cover",onReorder:o,"data-block-id":a,"data-block-class":n,onDelete:i,imageWidth:s=qs.sm,aspectRatio:l=3/4,items:p,defaultItems:c=[],onKeyDown:d,imageContainerClassName:m,imageClassName:u,labelClassName:y,onListChange:b,renderImage:f,layoutTransition:g,imageDimensions:v={width:s,aspectRatio:l},imageContainerStyle:h,..._},C)=>{let P=bt__default.default.useRef(null),[w,z]=bt.useState([]),{formatMessage:k}=B();bt.useEffect(()=>{(l||s)&&console.warn("ImageGallery: aspectRatio and imageWidth are deprecated. Use imageDimensions instead.");},[s,l]);let[T,R]=utils$1.useControlledState(_.selectedKeys,_.defaultSelectedKeys??[],_.onSelectionChange),[N,S]=utils$1.useControlledState(p?$s(p):void 0,$s(c),b?O=>{b?.(gn(O));}:void 0),I=bt.useCallback(O=>{let V=O.target.key,$=O.keys;if(O.target.dropPosition==="before"){let F=Q1(N,V,$);S(F);}else if(O.target.dropPosition==="after"){let F=eb(N,V,$);S(F);}o?.(O);},[N,o,S]),M=bt.useCallback(()=>{i&&w.length&&(S(N.filter(O=>!w.includes(O.id))),i(new Set(w)),z([]));},[w,N,i,S]),D=bt.useCallback((O,V,$)=>{let{value:F}=O;utils.invariant(Ye(F));let ee={id:F.id,label:F.label,src:F.data?.src,alt:F.data?.alt};return jsxRuntime.jsx(ob,{item:O,options:V,liRef:$,fit:t,onDelete:i?H=>{z([H]);}:void 0,renderImage:f,className:Ze(m,ee,V),imageClassName:u,imageLabelClassName:y,imageDimensions:v,style:h,layoutTransition:g})},[t,i,f,m,u,y,v,h,g]),{keyboardProps:j}=reactAria.useKeyboard({onKeyDown(O){if(d?.(O),O.key==="Backspace"||O.key==="Delete"){if(!i)return;if([...T].length)z([...T]);else {let $=O.target.dataset.key;z([$]);}}}});return jsxRuntime.jsxs("div",{...j,ref:C,style:e,className:utils.classNames("BaselineUI-ImageGallery",r),"data-block-id":a,"data-block-class":n,children:[jsxRuntime.jsx(de,{..._,selectedKeys:T,items:N,onReorder:I,layout:"grid",orientation:"vertical",className:G1,ref:P,dropIndicatorStyle:wT,renderOption:D,renderDragPreview:O=>jsxRuntime.jsx(bn,{items:O,ulRef:P,containerClassName:".BaselineUI-ImageGallery",previewClassName:yn(),itemDataAttribute:"data-image-key",showCount:!0}),onSelectionChange:R,getItems:O=>[...O].map(V=>{let $=J1(N,V);return {[ib.src]:$?.src||"",[ib.alt]:$?.alt||"",key:V}})}),jsxRuntime.jsx(Le,{isOpen:!![...w].length,onOpenChange:O=>{O||z([]);},children:jsxRuntime.jsx(He,{isDismissable:!0,children:jsxRuntime.jsx(mn,{showCloseButton:!1,title:"Are you sure you want to delete this item?",primaryActionLabel:k(So.delete),cancelLabel:k(So.cancel),onCancel:()=>{z([]);},onPrimaryAction:M,autoFocusButton:"cancel"})})})]})});sb.displayName="ImageGallery";var So=K({delete:{id:"delete",defaultMessage:"Delete"},cancel:{id:"cancel",defaultMessage:"Cancel"},loading:{id:"loading",defaultMessage:"Loading"}});var lb="_1sexph00",pb="_1sexph01 _1yep5z6189 _1yep5z618a _1yep5z618b _1yep5z61al _1yep5z61am _1yep5z61an _1yep5z61br _1yep5z61bs _1yep5z61bt _1yep5z619f _1yep5z619g _1yep5z619h _1yep5z61sg _1yep5z61sh _1yep5z61si";var ub=bt__default.default.forwardRef(({className:r,style:e,items:t,"data-block-id":o,"data-block-class":a,hideLabel:n,size:i="md",isDisabled:s,showSelectedIcon:l=!0,excludeFromTabOrder:p,onPress:c,isSelected:d,defaultSelected:m,onButtonSelectionChange:u,moreAriaLabel:y,optionStyle:b,optionClassName:f,triggerClassName:g,triggerStyle:v,tooltipProps:h,..._},C)=>{let{formatMessage:P}=B(),w=se(),z=reactStately.useSelectState({items:t,..._,defaultSelectedKey:_.defaultSelectedKey||t?.[0]?.id,children:w,validationState:_.validationState==="error"?"invalid":"valid"}),[k,T]=utils$1.useControlledState(d,!!m,F=>{u?.({isSelected:F,selectedKey:z.selectedKey});}),{hoverProps:R,isHovered:N}=reactAria.useHover({isDisabled:s}),S=bt.useMemo(()=>{let F=z.collection.getItem(z.selectedKey),ee=F?.textValue||F?.["aria-label"],H=F?.value,Z=H?.icon,X={size:i,isSelected:k,onPress:Re=>{T(!k),c?.(Re);},isDisabled:s,excludeFromTabOrder:p,className:typeof f=="function"?f(H,{isButton:!0,isSelected:k}):f,style:typeof b=="function"?b(H,{isButton:!0,isSelected:k}):b};return n&&Z?jsxRuntime.jsx(ne,{variant:"inverse",size:"sm",includeArrow:!1,text:ee,placement:"bottom start",offset:4,...typeof h=="function"?h("button"):h,children:jsxRuntime.jsx(xe,{icon:Z,"aria-label":ee,variant:"toolbar",...X})}):jsxRuntime.jsx(Sa,{iconStart:Z,label:ee,variant:"toolbar",...X})},[p,n,k,s,c,f,b,T,i,z.collection,z.selectedKey,h]),I=_["aria-label"],M=bt.useCallback(({buttonProps:F,ref:ee})=>{delete F["aria-labelledby"];let H=y||`${P(MT.more)} ${I}`;return jsxRuntime.jsx(ne,{variant:"inverse",size:"sm",includeArrow:!1,text:H,placement:"bottom start",offset:4,...h,children:jsxRuntime.jsx(interactions.PressResponder,{...F,children:jsxRuntime.jsx(A,{"aria-label":H,ref:ee,icon:_8.CaretDownIcon,variant:"toolbar",size:i,className:({isFocusVisible:Z})=>utils.classNames(ka({isSelected:k,isFocusVisible:Z}),pb,g),style:v,isDisabled:s,excludeFromTabOrder:p})})})},[I,p,P,k,s,y,i,h,g,v]),D=utils.filterTruthyValues({"data-block-id":o,"data-block-class":a,"data-hovered":N,"data-selected":k,"data-disabled":s,"data-expanded":z.isOpen}),j=re(C),O=bt.useMemo(()=>({state:z,popoverAnchorRef:j}),[z,j]),V=bt.useCallback(F=>typeof f=="function"?f(F,{isButton:!1,isSelected:z.selectionManager.isSelected(F.id)}):f,[f,z.selectionManager]),$=bt.useCallback(F=>typeof b=="function"?b(F,{isButton:!1,isSelected:z.selectionManager.isSelected(F.id)}):b,[b,z.selectionManager]);return jsxRuntime.jsx(Na.Provider,{value:O,children:jsxRuntime.jsxs(E,{...R,role:"group",display:"inline-flex",flexDirection:"row",alignItems:"center",className:utils.classNames(lb,"BaselineUI-ButtonSelect",r),"aria-label":_["aria-label"],"aria-labelledby":_["aria-labelledby"],"aria-describedby":_["aria-describedby"],"aria-details":_["aria-details"],style:e,ref:j,...D,children:[S,jsxRuntime.jsx(lt,{isDisabled:s,showSelectedIcon:l,placement:"bottom start",items:t,..._,style:{width:20},optionClassName:V,optionStyle:$,variant:"ghost",renderTrigger:M})]})})});ub.displayName="ButtonSelect";var MT=K({more:{id:"more",defaultMessage:"More"}});var mb=x({defaultClassName:"_18v88n10 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6ln",variantClassNames:{labelPosition:{top:"_1yep5z6157 _1yep5z6158 _1yep5z6159",start:"_1yep5z6154 _1yep5z6155 _1yep5z6156 _1yep5z616m _1yep5z616n _1yep5z616o _1yep5z6vl _1yep5z6vm _1yep5z6vn"}},defaultVariants:{},compoundVariants:[]}),fb=x({defaultClassName:"_18v88n1p _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6eu _1yep5z6ln _1yep5z6ly _1yep5z6lq _1yep5z6dy",variantClassNames:{isDisabled:{true:"_18v88n1q _1yep5z6111"},labelPosition:{top:"_18v88n1r",start:"_18v88n1s"}},defaultVariants:{},compoundVariants:[]}),yb=x({defaultClassName:"_18v88n1t _1yep5z660 _1yep5z661 _1yep5z662 _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6lk",variantClassNames:{validationState:{valid:"_18v88n1u",error:"_1yep5z610h",warning:"_1yep5z610p"},isReadOnly:{true:"_1yep5z6118"}},defaultVariants:{},compoundVariants:[]}),bb=x({defaultClassName:"_18v88n1d _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6m1 _1yep5z6lz _1yep5z6h4 _1yep5z6jj _1yep5z6jk _1yep5z6jl",variantClassNames:{validationState:{valid:"_18v88n1e",error:"_1yep5z612q",warning:"_18v88n1g"},isHovered:{true:"_18v88n1h"},isFocused:{true:"_1yep5z6wl _1yep5z6wm _1yep5z6wn _1yep5z6x9 _1yep5z6xa _1yep5z6xb _1yep5z6xx _1yep5z6xy _1yep5z6xz _1yep5z6yl _1yep5z6ym _1yep5z6yn _1yep5z6184 _1yep5z6182 _1yep5z6134 _1yep5z617v _1yep5z617u _1yep5z6140 _1yep5z617x"},isDisabled:{true:"_18v88n1j"},variant:{primary:"_18v88n1k",ghost:"_18v88n1l"},isReadOnly:{true:"_1yep5z6140"}},defaultVariants:{},compoundVariants:[[{variant:"ghost",isHovered:!0,isFocused:!1,validationState:"valid"},"_1yep5z61u7 _1yep5z61u5 _1yep5z61pa"],[{variant:"ghost",isFocused:!1,isHovered:!1,validationState:"valid"},"_18v88n1n"],[{isHovered:!0,validationState:"valid",isDisabled:!1,isReadOnly:!1,isFocused:!1,variant:"primary"},"_1yep5z61pb"],[{isHovered:!0,validationState:"warning",isDisabled:!1,isReadOnly:!1,isFocused:!1},"_1yep5z61pb"],[{isReadOnly:!0,variant:"primary",isFocused:!1},"_18v88n1o"]]}),gb=x({defaultClassName:"_18v88n13 _1yep5z6dy _1yep5z6ev",variantClassNames:{isDisabled:{true:"_1yep5z6111"}},defaultVariants:{},compoundVariants:[]}),vb=x({defaultClassName:"_18v88n19 _1yep5z6iv _1yep5z6iw _1yep5z6ix",variantClassNames:{labelPosition:{top:"_1yep5z6t9 _1yep5z6ta _1yep5z6tb",start:"_1yep5z6n6 _1yep5z6n7 _1yep5z6n8 _1yep5z6157 _1yep5z6158 _1yep5z6159"},hasMessage:{true:"_18v88n1c"}},defaultVariants:{},compoundVariants:[[{labelPosition:"start",hasMessage:!1},"_1yep5z61sj _1yep5z61sk _1yep5z61sl"]]}),hb=x({defaultClassName:"_18v88n15 _1yep5z699 _1yep5z69a _1yep5z69b _1yep5z6lq",variantClassNames:{isFocusVisible:{true:"_1yep5z6127 _1yep5z614f _1yep5z617t"},isHovered:{true:"_1yep5z6127 _1yep5z614f _1yep5z617t"},isOpen:{true:"_1yep5z614f _1yep5z617t"}},defaultVariants:{},compoundVariants:[[{isFocusVisible:!0},"_1yep5z61oa _1yep5z61qi _1yep5z61tw"],[{isHovered:!0},"_1yep5z61oa _1yep5z61qi _1yep5z61tw"],[{isOpen:!0},"_1yep5z61qi _1yep5z61tw"]]});function _b({allowsCustomValue:r,onValueChange:e,inputValue:t},o,a,n,i){let[s,l]=bt.useState(null),p=bt.useRef(!1);bt.useEffect(()=>{if(!e)return;let d=a.current,m=u=>{l(u.target);};return d?.addEventListener("focusin",m),()=>{d?.removeEventListener("focusin",m);}},[e,a,o.selectedKey]),granularHooks.useGranularEffect(()=>{o.selectedKey&&(e?.({value:o.selectedItem?.textValue,key:o.selectedKey}),p.current=!1);},[o.selectedKey],[e,o.selectedItem]),reactAria.useInteractOutside({ref:n,isDisabled:!e,onInteractOutside:d=>{!i.current?.contains(d.target)&&s===n.current&&r&&p.current&&(e?.({value:n.current?.value,key:null}),p.current=!1);}}),bt.useEffect(()=>{if(!e)return;let d=n.current,m=()=>{p.current=!0;};return d?.addEventListener("input",m),()=>{d?.removeEventListener("input",m);}},[n,e]),bt.useEffect(()=>{p.current=!1;},[t]);let{keyboardProps:c}=reactAria.useKeyboard({isDisabled:!e,onKeyDown:d=>{r&&d.key==="Enter"&&p.current?(e?.({value:n.current?.value,key:null}),p.current=!1):d.key==="Escape"&&o.close(),d.continuePropagation();}});return {inputProps:c}}var Cb=bt__default.default.forwardRef(({className:r,style:e,inputStyle:t,inputClassName:o,"data-block-id":a,"data-block-class":n,label:i,items:s,showSelectedIcon:l=!1,onSelectionChange:p,onInputChange:c,isInvalid:d=!1,labelPosition:m="top",validationState:u="valid",variant:y="primary",toggleLabel:b,renderOption:f,showIcon:g=!0,filter:v,minValue:h,maxValue:_,inputType:C="text",onInputSubmit:P,onValueChange:w,...z},k)=>{let T=reactAria.useObjectRef(k),{contains:R}=reactAria.useFilter({sensitivity:"base"}),N=se(),S=reactStately.useComboBoxState({...z,defaultFilter:v||R,defaultItems:s,onSelectionChange:p,onInputChange:c,children:N,validationState:d?"invalid":"valid"}),I=bt__default.default.useRef(null),M=bt__default.default.useRef(null),D=bt__default.default.useRef(null),j=bt__default.default.useRef(null),O=bt__default.default.useRef(null),{inputProps:V}=_b({onValueChange:w,allowsCustomValue:z.allowsCustomValue,inputValue:z.inputValue},S,T,M,j),{buttonProps:$,inputProps:F,listBoxProps:ee,labelProps:H,errorMessageProps:Z,descriptionProps:X,validationErrors:Re}=reactAria.useComboBox({...z,inputRef:M,defaultItems:s,buttonRef:I,listBoxRef:D,popoverRef:j,validationState:u==="error"?"invalid":"valid"},S),Te=z.errorMessage||Re.join(" "),_e=Ne({...z,errorMessage:Te,descriptionProps:X,errorMessageProps:Z,labelPosition:m});Te&&(u="error");let{hoverProps:Ae,isHovered:Ge}=reactAria.useHover({isDisabled:z.isDisabled}),{isFocused:ae,focusProps:me,isFocusVisible:Lt}=reactAria.useFocusRing(),Mt=rr({isReadOnly:z.isReadOnly,validationState:u}),Sr=utils.filterTruthyValues({"data-read-only":z.isReadOnly,"data-disabled":z.isDisabled,"data-validation-state":u,"data-focused":ae,"data-focus-visible":Lt}),{labelProps:Dt,fieldProps:Y}=reactAria.useLabel({label:i,"aria-label":z["aria-label"],"aria-labelledby":z["aria-labelledby"],"aria-describedby":z["aria-describedby"],"aria-details":z["aria-details"]}),{keyboardProps:q}=reactAria.useKeyboard({onKeyDown:W=>{z.allowsCustomValue&&W.key==="Enter"&&P?.(F.value?.toString()??"");}}),{focusProps:le}=reactAria.useFocus({onBlur:()=>{z.allowsCustomValue&&F.value&&P?.(F.value?.toString()??"");}});return jsxRuntime.jsx(gt.Provider,{value:S,children:jsxRuntime.jsxs("div",{className:utils.classNames(mb({labelPosition:m}),r,"BaselineUI-ComboBox"),"data-block-id":a,"data-block-class":n,style:e,ref:T,children:[i||m==="start"&&_e?jsxRuntime.jsxs("div",{className:vb({labelPosition:m,hasMessage:!!_e}),children:[jsxRuntime.jsx("label",{...reactAria.mergeProps(H,Dt),className:gb({isDisabled:z.isDisabled}),children:i}),m==="start"&&_e]}):null,jsxRuntime.jsxs("div",{...Ae,className:bb({validationState:u,isHovered:Ge,isFocused:ae,variant:y,isReadOnly:!!z.isReadOnly,isDisabled:!!z.isDisabled}),ref:O,children:[jsxRuntime.jsx("input",{...reactAria.mergeProps(F,V,me,Sr,Y,le,q,C==="number"?{type:"number",min:h,max:_,onKeyDown:W=>{(W.key==="ArrowUp"||W.key==="ArrowDown")&&W.preventDefault();}}:null),id:z.id,ref:M,className:utils.classNames(fb({isDisabled:z.isDisabled,labelPosition:m}),"BaselineUI-ComboBox-Input",o),style:t}),Mt&&g?jsxRuntime.jsx(Mt,{className:yb({validationState:u,isReadOnly:z.isReadOnly}),size:16}):null,jsxRuntime.jsx(G,{...$,ref:I,variant:"popover",label:b,className:hb({isFocusVisible:!z.isDisabled&&!z.isReadOnly&&Lt,isHovered:!z.isDisabled&&!z.isReadOnly&&Ge,isOpen:S.isOpen})})]}),jsxRuntime.jsx(Ce,{ref:j,triggerRef:O,state:S,crossOffset:-2,className:"BaselineUI-ComboBox-Popover",children:jsxRuntime.jsx(de,{...ee,items:s,ref:D,renderOption:f,selectionMode:"single",showSelectedIcon:l,className:utils.classNames(at,"BaselineUI-ComboBox-ListBox")})}),m==="top"&&_e]})})});Cb.displayName="ComboBox";var xb=x({defaultClassName:"byycd01 _1yep5z6d6 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6id _1yep5z6ie _1yep5z6if",variantClassNames:{},defaultVariants:{},compoundVariants:[]});var Js=bt__default.default.forwardRef(({enableReorder:r,...e},t)=>r?jsxRuntime.jsx(Pb,{ref:t,...e}):jsxRuntime.jsx(Qs,{ref:t,...e}));Js.displayName="GridListItem";var Qs=bt__default.default.forwardRef(({item:r,state:e,dropState:t,renderGridItem:o,dragHandleProps:a},n)=>{let i=re(n),s=reactAria.useGridListItem({node:r},e,i),l=e.selectionManager.selectionMode!=="none"&&e.selectionManager.selectionBehavior==="toggle",{checkboxProps:p}=reactAria.useGridListSelectionCheckbox({key:r.key},e),c={...s,checkBoxProps:l?p:void 0,dragHandleProps:a};return jsxRuntime.jsxs("div",{"data-grid-list-item-key":r.key,children:[t?jsxRuntime.jsx(At,{target:{type:"item",key:r.key,dropPosition:"before"},dropState:t}):null,o?o(r,c,i):null,t&&e.collection.getKeyAfter(r.key)==null?jsxRuntime.jsx(At,{target:{type:"item",key:r.key,dropPosition:"after"},dropState:t}):null]},r.key)});Qs.displayName="BaseGridListItem";var Pb=bt__default.default.forwardRef(({dragState:r,item:e,...t},o)=>{let a=reactAria.useDraggableItem({key:e.key,hasDragButton:!0},r);return jsxRuntime.jsx(Qs,{item:e,dragHandleProps:a,ref:o,...t})});Pb.displayName="DraggableGridListItem";var sN=r=>{r.key==="Enter"||r.key==="Escape"||r.stopPropagation();},kb=bt__default.default.forwardRef(({className:r,style:e,isEditing:t=!1,"data-block-id":o,"data-block-class":a,gridListHandle:n,onReorder:i,enableReorder:s=!1,layout:l="stack",orientation:p="vertical",renderGridItem:c,...d},m)=>{let u=se(),y=reactStately.useListState({...d,children:u}),b=bt__default.default.useRef(null),f=re(m),{gridProps:g}=reactAria.useGridList(d,y,f);Ho({handle:n,type:"gridlist"},y,f);let{collectionProps:v,dragState:h,dropState:_}=Ao({...d,onReorder:i,enableReorder:s,layout:l,orientation:p,preview:b,getItems:w=>[...w].map(z=>{let k=y.collection.getItem(z);return utils.invariant(k,"Expected item to be defined."),{key:k.key.toString()}})},y,f),C=t?sN:g.onKeyDownCapture,P={state:y,dragState:h,dropState:_,enableReorder:s,renderGridItem:c};return jsxRuntime.jsxs("ul",{...reactAria.mergeProps(g,v),className:utils.classNames("BaselineUI-GridList",r),"data-block-id":o,"data-block-class":a,style:e,ref:f,"aria-rowcount":y.collection.size,onKeyDownCapture:C,children:[[...y.collection].map(w=>jsxRuntime.jsx(Js,{item:w,...P},w.key)),s?jsxRuntime.jsx(reactAria.DragPreview,{ref:b,children:w=>jsxRuntime.jsx(bn,{items:w,ulRef:f,containerClassName:".BaselineUI-GridList",previewClassName:xb(),itemDataAttribute:"data-grid-list-item-key"})}):null]})});kb.displayName="GridList";var Sb="_1yep5z6f5",Ib="_1dc3b8m0";var Rb=bt__default.default.forwardRef(({className:r,selectionMode:e,style:t,"data-block-id":o,"data-block-class":a,tooltipProps:n,icon:i,renderActionItem:s,...l},p)=>{let c=re(p),d=se(),m=reactStately.useListState({...l,selectionMode:e,suppressTextValueWarning:!0,children:d}),{actionGroupProps:u}=actiongroup.useActionGroup({...l,selectionMode:e,children:d},m,c),y=[...m.collection].map(b=>(utils.invariant(b.value),jsxRuntime.jsx(bN,{item:b,state:m,isDisabled:l.isDisabled,onAction:l.onAction,tooltipProps:n,renderActionItem:s},b.key)));return i?jsxRuntime.jsxs(E,{...u,display:"flex",flexDirection:"row",gap:"md",alignItems:"center",className:utils.classNames("BaselineUI-ActionGroup",r),"data-block-id":o,"data-block-class":a,style:t,ref:c,children:[jsxRuntime.jsx(i,{size:24,className:Sb}),jsxRuntime.jsx(E,{display:"flex",flexDirection:"row",gap:"xs",flex:1,children:y})]}):jsxRuntime.jsx(E,{...u,display:"flex",flexDirection:"row",gap:"xs",className:utils.classNames("BaselineUI-ActionGroup",r),"data-block-id":o,"data-block-class":a,style:t,ref:c,children:y})});Rb.displayName="ActionGroup";var bN=({item:r,state:e,tooltipProps:t,renderActionItem:o,onAction:a,isDisabled:n})=>{let{buttonProps:i}=actiongroup.useActionGroupItem({key:r.key},e),s=n||e.selectionManager.isDisabled(r.key),l=e.selectionManager.isSelected(r.key);utils.invariant(r.value);let{icon:p}=r.value;utils.invariant(p);let c=bt.useMemo(()=>(utils.invariant(r.value),typeof t=="function"?t(r.value):t),[t,r.value]);return jsxRuntime.jsx(interactions.PressResponder,{...reactAria.mergeProps(i,{onPress:()=>{a?.(r.key);}}),children:jsxRuntime.jsx(ne,{text:r.textValue,size:"sm",variant:"inverse",includeArrow:!1,offset:4,...c,children:o?.(r,{isSelected:l,isDisabled:s})||jsxRuntime.jsx(A,{variant:"tertiary",icon:p,"aria-label":r.textValue,size:"sm",isDisabled:s,className:utils.classNames({[Ib]:l},"BaselineUI-ActionGroup-Item")})})})};var Tb="ujkypy0 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e",Nb="_1yep5z61r7 _1yep5z61r8 _1yep5z61r9 _1yep5z61hl _1yep5z61hm _1yep5z61hn";var Lb=bt__default.default.forwardRef(({className:r,style:e,items:t,optionsContainerClassName:o,label:a,icon:n,value:i,defaultValue:s,onChange:l,isDisabled:p,optionClassName:c,optionStyle:d,labelPosition:m="top","data-block-id":u,"data-block-class":y,shouldFocusWrap:b,tooltip:f=!0,...g},v)=>{let h=bt.useMemo(()=>t.map(C=>({id:C.color,label:C.label})),[t]),_=reactAria.useId();return bt.useEffect(()=>{!a&&!g["aria-label"]&&!g["aria-labelledby"]&&console.warn("ColorSwatchPicker: Please provide a label or aria-label for accessibility.");},[a,g]),jsxRuntime.jsxs(E,{...Rn(g),className:utils.classNames("BaselineUI-ColorSwatchPicker",r),"data-block-id":u,"data-block-class":y,display:"flex",flexDirection:m==="top"?"column":"row",alignItems:m==="top"?"flex-start":"center",justifyContent:"space-between",gap:"md",style:e,ref:v,children:[n||a?jsxRuntime.jsxs(E,{display:"flex",alignItems:"center",gap:"md",children:[n?jsxRuntime.jsx(n,{size:24,className:tokens.sprinkles({color:"icon.primary"})}):null,a?jsxRuntime.jsx(J,{id:_,type:"label",size:"sm",children:a}):null]}):null,jsxRuntime.jsx(de,{className:utils.classNames(Nb,o),selectionMode:"single",items:h,orientation:"horizontal",defaultSelectedKeys:s?[s]:void 0,disabledKeys:p?h.map(C=>C.id):void 0,isDisabled:p,selectedKeys:i?[i]:void 0,onSelectionChange:C=>{l?.([...C][0]);},optionClassName:c,optionStyle:d,renderOption:({key:C,textValue:P},{isSelected:w,isFocusVisible:z,isDisabled:k,optionProps:T},R)=>jsxRuntime.jsx("li",{...T,"data-disabled":k,className:utils.classNames(Tb,T.className),ref:R,children:jsxRuntime.jsx(ct,{isFocusVisible:z,color:C,isSelected:w,"aria-label":P,isInteractive:!0,isDisabled:k,tooltip:f})}),shouldFocusWrap:b,...g,"aria-labelledby":a?_:g["aria-labelledby"]})]})});Lb.displayName="ColorSwatchPicker";var Mb="_10dw1p96",Db="_10dw1p95",Ab=x({defaultClassName:"_10dw1p90 _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z69f _1yep5z69g _1yep5z69h _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6lq _1yep5z6ld _1yep5z6la",variantClassNames:{isSelected:{true:"_1yep5z6126"},isHovered:{true:"_10dw1p92"},isRenaming:{true:"_10dw1p93"},isFocusVisible:{true:"_1yep5z6140 _1yep5z617w _1yep5z617u"}},defaultVariants:{},compoundVariants:[[{isHovered:!0,isSelected:!1,isRenaming:!1},"_1yep5z61o8 _1yep5z61q9 _1yep5z61ty _1yep5z61tx"]]});function jb(r,e){if(typeof r=="function"&&!r.prototype?.isReactComponent){let t=r(e);return bt.isValidElement(t)?r:t}return r}var Fb=({context:r,depth:e,children:t,item:o,onPrimaryAction:a,onSecondaryAction:n,actionsPosition:i,primaryActionIcon:s,secondaryActionIcon:l,primaryActionAriaLabel:p,secondaryActionAriaLabel:c,onRename:d,onAction:m,renderItemTitle:u=y=>y.data.label})=>{let{formatMessage:y}=B(),{hoverProps:b,isHovered:f}=reactAria.useHover({}),g=bt.useRef(null),{onKeyDown:v,...h}=r.interactiveElementProps;delete h.onFocus,delete h.onClick;let _=focus.createFocusManager(g),C=bt.useCallback(S=>{if(S.key==="ArrowRight"&&(r.isExpanded||!o.children?.length))g.current?.setAttribute("tabindex","-1"),S.preventDefault(),S.stopPropagation(),_.focusNext();else switch(S.key){case"ArrowLeft":{_.focusPrevious()?(S.preventDefault(),S.stopPropagation()):(v?.(S),r.focusItem(!0));break}case"Enter":{r.toggleExpandedState();break}default:v?.(S);}},[r,_,v,o,g]),P=bt.useMemo(()=>{let S=jb(s,o.index),I=jb(l,o.index),M=typeof p=="function"?p(o.index):p,D=typeof c=="function"?c(o.index):c;return S||I?jsxRuntime.jsxs(E,{display:"flex",flexDirection:"row",children:[S?jsxRuntime.jsx(xe,{icon:S,"aria-label":M,size:"sm",excludeFromTabOrder:!0,variant:"secondary",onPress:()=>{a?.(o.index);},tooltip:!0}):null,I?jsxRuntime.jsx(xe,{icon:I,"aria-label":D,size:"sm",excludeFromTabOrder:!0,variant:"secondary",onPress:()=>{n?.(o.index);},tooltip:!0}):null]}):null},[s,o.index,l,p,c,a,n]),w=bt.useCallback(S=>{S.key==="Enter"?(d?.({key:o.index,value:S.target.value}),r.stopRenamingItem()):S.key==="Escape"?(r.stopRenamingItem(),g.current?.setAttribute("tabindex","0"),g.current?.focus()):S.key!=="ArrowRight"&&S.key!=="ArrowLeft"&&S.key!=="ArrowUp"&&S.key!=="ArrowDown"&&!S.metaKey&&S.continuePropagation();},[o.index,r,d,g]),z=o.data.icon,k=!!d,{pressProps:T}=reactAria.usePress({onPress:()=>{m?.(o.index);}}),{isFocusVisible:R,focusProps:N}=focus.useFocusRing();return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{...reactAria.mergeProps({onKeyDown:C,onFocus:()=>{r.focusItem(!1);}},T,N,b,r.itemContainerWithoutChildrenProps,h),className:utils.classNames(Db,Ab({isHovered:f,isSelected:r.isSelected,isFocusVisible:R,isRenaming:r.isRenaming}),"BaselineUI-TreeView-Row"),role:"row","data-key":o.index,"data-expanded":o.isFolder?r.isExpanded:void 0,"aria-expanded":o.isFolder?r.isExpanded:void 0,"data-selected":r.isSelected,"aria-selected":r.isSelected,"data-depth":e,"aria-level":e+1,"aria-posinset":o.data.posInset,"aria-setsize":o.data.setSize,"aria-label":o.data.label,style:{justifyContent:i==="end"?"space-between":void 0},ref:g,children:jsxRuntime.jsxs(E,{role:"gridcell",style:{display:"contents"},"aria-colindex":1,children:[i==="start"?P:null,jsxRuntime.jsxs(E,{display:"flex",flexDirection:"row",alignItems:"center",children:[jsxRuntime.jsxs(E,{display:"flex",padding:"sm",flexDirection:"row",alignItems:"center",gap:"md",style:{marginInlineStart:`calc(${e*2} * ${tokens.themeVars.spacing.lg})`},children:[jsxRuntime.jsx(A,{icon:_8.ChevronRightIcon,size:"xxs",variant:"secondary",onPress:()=>{r.toggleExpandedState();},"aria-label":y(r.isExpanded?al.collapse:al.expand),style:{visibility:o.children?.length?"visible":"hidden"},className:utils.classNames(Mb,"BaselineUI-TreeView-ExpansionToggle"),UNSAFE_NON_INTERACTIVE:!0}),z?jsxRuntime.jsx(z,{size:16,style:{color:tokens.themeVars.color.icon.interactive.disabled}}):null]}),jsxRuntime.jsxs(E,{paddingLeft:"sm",paddingY:r.isRenaming?"none":"md",display:"flex",flexDirection:"column",gap:"xs",onDoubleClick:S=>{k&&(S.stopPropagation(),S.preventDefault(),r.startRenamingItem());},children:[r.isRenaming?jsxRuntime.jsx("div",{onClick:S=>{S.stopPropagation();},children:jsxRuntime.jsx(nt,{defaultValue:o.data.label,autoFocus:!0,onBlur:S=>{d?.({key:o.index,value:S.target.value}),r.stopRenamingItem();},"aria-label":y(al.rename),onKeyDown:w,className:"BaselineUI-TreeView-RenameInput"})}):jsxRuntime.jsx(J,{type:"label",size:"sm",className:utils.classNames(tokens.sprinkles.compoundVariants({color:"text.primary"}),"BaselineUI-TreeView-Title"),children:u(o)}),o.data.description?jsxRuntime.jsx(J,{type:"helper",size:"sm",className:"BaselineUI-TreeView-Description",children:o.data.description}):null]})]}),i==="end"?P:null]})}),t]})},al=K({expand:{id:"expand",defaultMessage:"Expand"},collapse:{id:"collapse",defaultMessage:"Collapse"},rename:{id:"rename",defaultMessage:"Rename"}});function HN(r,{posInset:e,setSize:t}){return {index:r.id,children:r.children?r.children.map(o=>o.id):[],data:{label:r.label,description:r.description,icon:r.icon,...r.data,posInset:e,setSize:t},isFolder:!!r.children?.length}}function VN(r,e){let t={};function o(a,n,i){if(t[a.id]=e(a,{posInset:n,setSize:i}),a.children)for(let s=0;s<a.children.length;s++)o(a.children[s],s+1,a.children.length);}return o(r,0,0),t}var Ub=bt__default.default.forwardRef(({className:r,style:e,"data-block-id":t,"data-block-class":o,items:a,rootId:n=a.id,onPrimaryAction:i,onSecondaryAction:s,primaryActionIcon:l,secondaryActionIcon:p,primaryActionAriaLabel:c,secondaryActionAriaLabel:d,actionsPosition:m="start",onRename:u,onAction:y,renderItemTitle:b,...f},g)=>{let v=se(),h=bt.useRef(null),_=reactStately.useTreeState({...f,selectionMode:"multiple",items:a.children,children:v}),C=bt.useMemo(()=>Object.fromEntries(Object.entries(VN(a,HN)).map(([R,N])=>[R,{...N,canRename:!!u}])),[a,u]),P=reactAria.useId(),[w,z]=bt__default.default.useState(a.children?.[0]?.id??""),k=bt.useRef(w),T=bt.useMemo(()=>({[`tree-${P}`]:{focusedItem:w,expandedItems:[..._.expandedKeys],selectedItems:[..._.selectionManager.selectedKeys]}}),[w,_.expandedKeys,_.selectionManager.selectedKeys,P]);return bt.useEffect(()=>{if(!h.current)return;let R=h.current.getRootNode(),N=R instanceof ShadowRoot,S=h.current?.contains(R?.activeElement??null);N&&S&&R?.querySelector(`[data-rct-item-id="${w}"]`)?.focus();},[w]),jsxRuntime.jsx(reactComplexTree.ControlledTreeEnvironment,{items:C,getItemTitle:R=>R.data?.label,viewState:T,onExpandItem:R=>{_.setExpandedKeys(new Set([..._.expandedKeys,R.index])),f.onExpand?.(R.index.toString());},onFocusItem:R=>{z(R.index),R.index&&(k.current=R.index);},onCollapseItem:R=>{_.setExpandedKeys(new Set([..._.expandedKeys].filter(N=>N!==R.index))),f.onCollapse?.(R.index.toString());},onSelectItems:R=>{_.selectionManager.setSelectedKeys(new Set(R));},renderItem:R=>jsxRuntime.jsx(Fb,{...R,onPrimaryAction:i,onSecondaryAction:s,actionsPosition:m,primaryActionIcon:l,secondaryActionIcon:p,primaryActionAriaLabel:c,secondaryActionAriaLabel:d,onRename:u,onAction:y,renderItemTitle:b}),renderLiveDescriptorContainer:({children:R})=>jsxRuntime.jsx(be,{children:jsxRuntime.jsx(reactAria.VisuallyHidden,{children:R})}),renderTreeContainer:({containerProps:R,children:N})=>jsxRuntime.jsx("div",{...Xe(R,{onBlur:S=>{S.currentTarget.contains(S.relatedTarget)||S.currentTarget.querySelector(`[data-key="${k.current}"]`)?.setAttribute("tabindex","0");}}),"data-block-id":t,"data-block-class":o,style:{...e,...R.style},className:utils.classNames(r,"BaselineUI-TreeView"),ref:L(g,R.ref,h),role:"treegrid",children:N}),renderItemsContainer:({children:R})=>R,children:jsxRuntime.jsx(reactComplexTree.Tree,{treeId:`tree-${P}`,rootItem:n,treeLabel:f["aria-label"],treeLabelledBy:f["aria-labelledby"]})})});Ub.displayName="TreeView";var XN=bt.forwardRef(({className:r,isCollapsible:e=!1,...t},o)=>{let a=bt.useRef(null),n=reactAria.useId();return bt.useImperativeHandle(o,()=>({resize:a.current?.resize})),jsxRuntime.jsx(reactResizablePanels.Panel,{className:utils.classNames("BaselineUI-Panel",r),collapsible:e,ref:a,id:n,...t})});XN.displayName="Panel";var rE=bt.forwardRef(({className:r,...e},t)=>{let o=bt.useRef(null);return bt.useImperativeHandle(t,()=>({setLayout:o.current?.setLayout})),jsxRuntime.jsx(reactResizablePanels.PanelGroup,{className:utils.classNames("BaselineUI-PanelGroup",r),ref:o,...e})});rE.displayName="PanelGroup";var qb="_6abhjk0";var iE=({className:r,isDisabled:e=!1,...t})=>jsxRuntime.jsx(reactResizablePanels.PanelResizeHandle,{disabled:e,className:utils.classNames(qb,"BaselineUI-PanelResizeHandle",r),...t});iE.displayName="PanelResizeHandle";var Kb=x({defaultClassName:"_1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6d7 _1yep5z6lz _1yep5z6m1",variantClassNames:{variant:{info:"_1yep5z6131",warning:"_1yep5z612x",error:"_1yep5z612p",success:"_1yep5z612t"}},defaultVariants:{},compoundVariants:[]}),Gb="_1udvgpn5 _1yep5z6ij _1yep5z6ik _1yep5z6il _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z69l _1yep5z69m _1yep5z69n";var uE=()=>{};function mE({state:r,...e}){let t=bt__default.default.useRef(null),{toastProps:o,contentProps:a,titleProps:n,descriptionProps:i,closeButtonProps:s}=toast$1.useToast(e,r,t),l=bt.useMemo(()=>({root:o,title:n,content:a,description:i,close:s}),[o,n,a,i,s]),{canClose:p=!0,...c}=e.toast.content;return jsxRuntime.jsx(Da,{elementProps:l,...c,className:utils.classNames(Kb({variant:c.variant||"info"}),c.className),onClose:p?uE:void 0})}var Xb=bt__default.default.forwardRef(({state:r,style:e,className:t,...o},a)=>{let n=re(a),{regionProps:i}=toast$1.useToastRegion(o,r,n),s={zIndex:1,...e,...i.style};return jsxRuntime.jsx("div",{...i,ref:n,className:utils.classNames(Gb,t),style:s,children:r.visibleToasts.map(l=>jsxRuntime.jsx(mE,{toast:l,state:r},l.key))})});Xb.displayName="ToastRegion";var Yb=bt__default.default.forwardRef(({toastQueue:r,portalContainer:e,...t},o)=>{let a=toast.useToastQueue(r),n=ye(e);return a.visibleToasts.length>0?jsxRuntime.jsx(be,{portalContainer:n,ref:o,children:jsxRuntime.jsx(Xb,{state:a,...t})}):null});Yb.displayName="GlobalToastRegion";var Zb={x:0,y:0},bE={node:null,setNode:()=>{},coordinates:Zb,setCoordinates:()=>{},displayId:"",boundsRef:{current:null},isDisabled:!1},Ke=bt__default.default.createContext(bE),Jb=({children:r,isDisabled:e=!1,coordinates:t,onMove:o})=>{let[a,n]=bt__default.default.useState(null),i=bt__default.default.useRef(null),[s,l]=utils$1.useControlledState(t,Zb,d=>{o?.({coordinates:d,boundingRect:i.current});}),p=reactAria.useId(),c=bt__default.default.useMemo(()=>({node:a,setNode:n,coordinates:s,setCoordinates:l,displayId:p,boundsRef:i,isDisabled:e}),[a,s,p,l,n,i,e]);return jsxRuntime.jsx(Ke.Provider,{value:c,children:r})};Jb.displayName="Magnifier";var Qb="_1yep5z6f6",eg=x({defaultClassName:"_1aj2a4v6",variantClassNames:{isDisabled:{true:"_1aj2a4v7",false:"_1aj2a4v8"},isIndicatorVisible:{true:"_1aj2a4v9",false:"_1aj2a4va"}},defaultVariants:{},compoundVariants:[[{isDisabled:!1,isIndicatorVisible:!0},"_1aj2a4vb"],[{isDisabled:!1,isIndicatorVisible:!1},"_1aj2a4vc"]]}),tg="_1aj2a4vd",rg="_1aj2a4v1",og="_1aj2a4v4",il="_1aj2a4v3 _1yep5z6hd _1yep5z6lz",ag="_1aj2a4v2 _1yep5z6iy _1yep5z6iz _1yep5z6j0 _1yep5z6h4 _1yep5z6lz _1yep5z6id _1yep5z6ie _1yep5z6if",ng="_1aj2a4v0",ig="_1aj2a4v5";var lg=r=>jsxRuntime.jsxs("svg",{width:92,height:92,viewBox:"0 0 92 92",fill:"none",xmlns:"http://www.w3.org/2000/svg",...r,children:[jsxRuntime.jsxs("g",{filter:"url(#filter0_d_11407_457970)",children:[jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49 43V4h-6v39H4v6h39v39h6V49h39v-6H49zm38 5H48v39h-4V48H5v-4h39V5h4v39h39v4zm-5 28v6h-6v6h12V76h-6zm5 11H77v-4h6v-6h4v10zm-77-5v-6H4v12h12v-6h-6zm5 5H5V77h4v6h6v4zM76 4v6h6v6h6V4H76zm11 11h-4V9h-6V5h10v10zM4 4v12h6v-6h6V4H4zm11 5H9v6H5V5h10v4z",fill:tokens.themeVars.color.background.positive.subtle}),jsxRuntime.jsx("path",{d:"M48 44v4h39v-4H48zm-4 4v39h4V48h-4zM5 44v4h39v-4H5zM44 5v39h4V5h-4zm39 72v6h-6v4h10V77h-4zM9 83v-6H5v10h10v-4H9zM77 5v4h6v6h4V5H77zM5 5v10h4V9h6V5H5z",fill:tokens.themeVars.color.background.positive.interactive.enabled})]}),jsxRuntime.jsx("defs",{children:jsxRuntime.jsxs("filter",{id:"filter0_d_11407_457970",x:0,y:0,width:92,height:92,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[jsxRuntime.jsx("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),jsxRuntime.jsx("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),jsxRuntime.jsx("feOffset",{}),jsxRuntime.jsx("feGaussianBlur",{stdDeviation:2}),jsxRuntime.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),jsxRuntime.jsx("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.4 0"}),jsxRuntime.jsx("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_11407_457970"}),jsxRuntime.jsx("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_11407_457970",result:"shape"})]})})]});function pg({coordinates:r,setCoordinates:e,boundsRef:t,onKeyDown:o,onKeyUp:a}){let{isDisabled:n}=bt.useContext(Ke);return reactAria.useKeyboard({isDisabled:n,onKeyDown:i=>{o?.(i);let s=i.shiftKey?10:1,l=t.current;if(!l)return;let p;switch(i.key){case"ArrowRight":{i.preventDefault(),p={x:lodash.clamp(r.x+s,0,l.width),y:lodash.clamp(r.y,0,l.height)};break}case"ArrowLeft":{i.preventDefault(),p={x:lodash.clamp(r.x-s,0,l.width),y:lodash.clamp(r.y,0,l.height)};break}case"ArrowDown":{i.preventDefault(),p={x:lodash.clamp(r.x,0,l.width),y:lodash.clamp(r.y+s,0,l.height)};break}case"ArrowUp":{i.preventDefault(),p={x:lodash.clamp(r.x,0,l.width),y:lodash.clamp(r.y-s,0,l.height)};break}}p&&e(p);},onKeyUp:a})}var dg=bt__default.default.forwardRef(({children:r,onPress:e,className:t,style:o,"data-block-id":a,"data-block-class":n,onFocusChange:i,onBlur:s,onFocus:l,onKeyDown:p,onKeyUp:c,...d},m)=>{let{setNode:u,setCoordinates:y,coordinates:b,displayId:f,boundsRef:g,isDisabled:v}=bt.useContext(Ke),h=bt.useRef(null),[_,C]=bt.useState(!1),P=interactions.useInteractionModality(),w=Ee();bt.useEffect(()=>{let D=h.current;if(!D||v)return;let j=V=>{let $=D.getBoundingClientRect();g.current=$;let F="clientX"in V?V.clientX:V.touches[0].clientX,ee="clientY"in V?V.clientY:V.touches[0].clientY,H={x:lodash.clamp(F-$.left,0,$.width),y:lodash.clamp(ee-$.top,0,$.height)};y(H),C(!0);},O=()=>{C(!1);};return D.addEventListener("mousemove",j),D.addEventListener("touchmove",j),D.addEventListener("mouseleave",O),()=>{D.removeEventListener("mousemove",j),D.removeEventListener("touchmove",j),D.removeEventListener("mouseleave",O);}},[y,g,v]);let{pressProps:z}=reactAria.usePress({isDisabled:v,onPress:D=>{D.pointerType==="keyboard"?e?.({...D,x:b.x,y:b.y}):e?.(D);}}),{focusProps:k,isFocusVisible:T,isFocused:R}=reactAria.useFocusRing(),{focusProps:N}=interactions.useFocus({isDisabled:v,onFocusChange:D=>{if(P==="keyboard")if(D){C(!0);let j=h.current?.getBoundingClientRect();if(!j)return;g.current=j,y({x:lodash.clamp(j.width/2,0,j.width),y:lodash.clamp(j.height/2,0,j.height)});}else C(!1);i?.(D);},onFocus:l,onBlur:s}),{keyboardProps:S}=pg({coordinates:b,setCoordinates:y,boundsRef:g,onKeyDown:p,onKeyUp:c}),I=bt.useMemo(()=>h.current?utils.getAbsolutePosition(h.current,b):{x:0,y:0},[b]);interactions.useInteractOutside({isDisabled:v,ref:h,onInteractOutside:()=>{C(!1);}});let M=bt.useMemo(()=>_&&!v&&(w==="mobile"||P==="keyboard"),[_,v,w,P]);return jsxRuntime.jsxs("div",{ref:L(m,h),className:utils.classNames(tg,"BaselineUI-Magnifier-Content",t),style:o,"data-block-id":a,"data-block-class":n,"aria-controls":f,role:"application",...d,children:[M?jsxRuntime.jsx(be,{children:jsxRuntime.jsx(lg,{style:{left:I.x,top:I.y},className:utils.classNames(ng,"BaselineUI-Magnifier-Cursor")})}):null,jsxRuntime.jsx("div",{...Xe(z,k,S,N),ref:u,className:utils.classNames(eg({isDisabled:v,isIndicatorVisible:M}),"BaselineUI-Magnifier-ContentInner"),"data-focus-visible":T,"data-focused":R,tabIndex:v?void 0:0,children:r})]})});dg.displayName="MagnifierContent";function AE(r){let e=[];for(let t=0;t<r.length;t++){let o=r[t],a=r.getPropertyValue(o);a&&e.push(`${o}: ${a}`);}for(let t of r)if(t.startsWith("--")){let o=r.getPropertyValue(t);o&&e.push(`${t}: ${o}`);}return e.join("; ")}function ug(r){let[e,t]=bt.useState(null),{isDisabled:o}=bt.useContext(Ke);return bt.useEffect(()=>{if(!r||o)return;let a=r,n=te(a);function i(){let p=n.getComputedStyle(a),c=a.cloneNode(!0);c.style.cssText=AE(p);let d=a.getBoundingClientRect();c.style.setProperty("width",`${d.width}px`),c.style.setProperty("height",`${d.height}px`),c.style.setProperty("position","static"),c.style.setProperty("margin","0"),c.style.setProperty("left","0"),c.style.setProperty("top","0"),c.style.setProperty("transform","none"),c.style.removeProperty("-webkit-text-fill-color"),c.style.removeProperty("-webkit-text-stroke-color"),c.removeAttribute("aria-controls"),c.setAttribute("tabindex","-1"),c.setAttribute("aria-hidden","true");let m=utils.findFocusableElements(c);if(m)for(let u of m)u.setAttribute("tabindex","-1");"scrollTop"in a&&(c.scrollTop=a.scrollTop),"scrollLeft"in a&&(c.scrollLeft=a.scrollLeft),t(c);}i();let s=new ResizeObserver(i),l=new MutationObserver(i);return s.observe(a),l.observe(a,{attributes:!0,childList:!0,subtree:!0,characterData:!0}),()=>{s.disconnect(),l.disconnect();}},[r,o]),e}var fg=8,yg=7,bg=7,gg=bt__default.default.forwardRef(({className:r,style:e,description:t,scale:o=2,"data-block-id":a,"data-block-class":n},i)=>{let{coordinates:s,node:l,boundsRef:p,displayId:c,isDisabled:d}=bt.useContext(Ke),m=ug(l),u=bt.useMemo(()=>typeof t=="function"?t({coordinates:{x:s.x,y:s.y},boundingRect:p.current}):t,[t,s,p]),y=bt.useMemo(()=>p.current?{x:s.x/p.current.width,y:s.y/p.current.height}:{x:0,y:0},[p,s]);return jsxRuntime.jsxs(E,{ref:i,className:utils.classNames(rg,"BaselineUI-Magnifier-Display",r),backgroundColor:"background.primary.subtle",boxShadow:"medium",borderRadius:"sm",outlineWidth:1,outlineColor:"border.medium",outlineOffset:-1,outlineStyle:"solid",paddingY:"md",paddingLeft:"md",paddingRight:u?.length?"xl":"md",display:"flex",flexDirection:"row",gap:"lg",alignItems:"center",style:e,id:c,"data-block-id":a,"data-block-class":n,role:"complementary",children:[jsxRuntime.jsxs("div",{className:ag,children:[m&&!d?jsxRuntime.jsx(Yo,{node:m,style:{transform:`scale(${o}) translate(calc(-${y.x*100}% + ${fg*yg/(2*o)}px), calc(-${y.y*100}% + ${fg*bg/(2*o)}px))`},className:utils.classNames(ig,"BaselineUI-Magnifier-DisplayNode")}):null,Array.from({length:yg*bg}).map((b,f)=>f===24?jsxRuntime.jsx("div",{className:utils.classNames(il,og)},f):jsxRuntime.jsx("div",{className:il},f))]}),u?.length?jsxRuntime.jsx(E,{display:"flex",gap:"lg",flexDirection:"column",children:u?.map(({label:b,icon:f},g)=>jsxRuntime.jsxs(E,{display:"flex",gap:"md",flexDirection:"row",color:"text.secondary",alignItems:"center",children:[jsxRuntime.jsx(f,{size:12,className:Qb}),jsxRuntime.jsx(J,{type:"label",size:"sm",children:b})]},b+g))}):null]})});gg.displayName="MagnifierDisplay";
43
+ Object.defineProperty(exports,"useCollator",{enumerable:true,get:function(){return reactAria.useCollator}});Object.defineProperty(exports,"useDateFormatter",{enumerable:true,get:function(){return reactAria.useDateFormatter}});Object.defineProperty(exports,"useNumberFormatter",{enumerable:true,get:function(){return reactAria.useNumberFormatter}});Object.defineProperty(exports,"MotionGlobalConfig",{enumerable:true,get:function(){return react.MotionGlobalConfig}});Object.defineProperty(exports,"ToastQueue",{enumerable:true,get:function(){return toast.ToastQueue}});exports.Accordion=Zu;exports.AccordionItem=am;exports.ActionButton=G;exports.ActionGroup=Rb;exports.ActionGroupItem=bN;exports.ActionIconButton=A;exports.AlertDialog=mn;exports.AudioPlayer=U1;exports.Avatar=pr;exports.Box=E;exports.ButtonSelect=ub;exports.Checkbox=hu;exports.ColorInput=ur;exports.ColorSwatch=ct;exports.ColorSwatchPicker=Lb;exports.ComboBox=Cb;exports.DateFormat=Tu;exports.Dialog=ve;exports.DialogTitle=Qc;exports.DomNodeRenderer=Yo;exports.Drawer=da;exports.Editor=x1;exports.FileUpload=Vd;exports.Focusable=pa;exports.FrameProvider=d_;exports.FreehandCanvas=Bf;exports.GlobalToastRegion=Yb;exports.GridList=kb;exports.Group=my;exports.I18nProvider=Ip;exports.IconColorInput=Rf;exports.IconColorInputButton=Ga;exports.IconSelect=um;exports.IconSlider=sd;exports.ImageDropZone=Zf;exports.ImageGallery=sb;exports.InlineAlert=Da;exports.Link=Ld;exports.ListBox=de;exports.Magnifier=Jb;exports.MagnifierContent=dg;exports.MagnifierDisplay=gg;exports.Markdown=M1;exports.Menu=Ca;exports.MessageFormat=uy;exports.Modal=Le;exports.ModalClose=RP;exports.ModalContent=He;exports.ModalTrigger=Aa;exports.NumberFormat=or;exports.NumberInput=Fe;exports.Pagination=Ru;exports.Panel=XN;exports.PanelGroup=rE;exports.PanelResizeHandle=iE;exports.Popover=Oe;exports.PopoverContent=Me;exports.PopoverTrigger=je;exports.Portal=be;exports.PortalContainerProvider=Qo;exports.Preview=ry;exports.ProgressBar=Zd;exports.ProgressSpinner=nr;exports.RadioGroup=dy;exports.Reaction=nu;exports.ScrollControlButton=I1;exports.SearchInput=Cd;exports.Select=lt;exports.Separator=U;exports.Slider=Kt;exports.Switch=gd;exports.TabItem=Sm;exports.Tabs=km;exports.TagGroup=Fu;exports.Text=J;exports.TextInput=nt;exports.ThemeProvider=la;exports.ToggleButton=Sa;exports.ToggleIconButton=xe;exports.Toolbar=en;exports.Tooltip=ne;exports.Transform=Gf;exports.TreeView=Ub;exports.defineMessages=K;exports.disableAnimations=rB;exports.enableAnimations=oB;exports.isInsideOverlayContent=GM;exports.isRect=ep;exports.useDevice=Ee;exports.useI18n=B;exports.useImage=Ht;exports.useIntersectionObserver=Cp;exports.useIsFirstRender=ra;exports.useLocalStorage=Lp;exports.useMutationObserver=Y8;exports.usePortalContainer=ye;exports.useResizeObserver=xp;exports.useTextSelection=oA;exports.useUndoRedo=wp;exports.useUserPreferences=Gn;