@salesforce/ui-design-mode 12.7.0 → 12.8.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/authoring/react/index.js +1 -1
- package/dist/authoring/web-component/index.js +1 -1
- package/dist/protocol/editableElementTags.cjs +13 -1
- package/dist/protocol/editableElementTags.d.ts.map +1 -1
- package/dist/protocol/editableElementTags.js +13 -1
- package/dist/protocol/version.cjs +1 -1
- package/dist/protocol/version.js +1 -1
- package/dist/runtime/design-mode-interactions.js +37 -4
- package/dist/runtime/interactions/editableManager.d.ts.map +1 -1
- package/dist/runtime/interactions/interactionsController.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -399,7 +399,7 @@ Error generating stack: `+a.message+`
|
|
|
399
399
|
box-shadow: 0 0 0 var(--dmp-focus-ring-width) var(--dmp-color-focus-border);
|
|
400
400
|
outline: none;
|
|
401
401
|
}
|
|
402
|
-
`;var $=V(he());function et(e,t){if(e==null)return{};var o={},a=Object.keys(e),r,l;for(l=0;l<a.length;l++)r=a[l],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}var Dw=["color"],zp=(0,$.forwardRef)(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=et(e,Dw);return(0,$.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),(0,$.createElement)("path",{d:"M0 7.5C0 7.22386 0.223858 7 0.5 7H3C3.27614 7 3.5 7.22386 3.5 7.5C3.5 7.77614 3.27614 8 3 8H0.5C0.223858 8 0 7.77614 0 7.5ZM5.75 7.5C5.75 7.22386 5.97386 7 6.25 7H8.75C9.02614 7 9.25 7.22386 9.25 7.5C9.25 7.77614 9.02614 8 8.75 8H6.25C5.97386 8 5.75 7.77614 5.75 7.5ZM12 7C11.7239 7 11.5 7.22386 11.5 7.5C11.5 7.77614 11.7239 8 12 8H14.5C14.7761 8 15 7.77614 15 7.5C15 7.22386 14.7761 7 14.5 7H12Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))}),Vw=["color"],Up=(0,$.forwardRef)(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=et(e,Vw);return(0,$.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),(0,$.createElement)("path",{d:"M1.5 6.625C1.01675 6.625 0.625 7.01675 0.625 7.5C0.625 7.98325 1.01675 8.375 1.5 8.375C1.98325 8.375 2.375 7.98325 2.375 7.5C2.375 7.01675 1.98325 6.625 1.5 6.625ZM5.5 6.625C5.01675 6.625 4.625 7.01675 4.625 7.5C4.625 7.98325 5.01675 8.375 5.5 8.375C5.98325 8.375 6.375 7.98325 6.375 7.5C6.375 7.01675 5.98325 6.625 5.5 6.625ZM9.5 6.625C9.01675 6.625 8.625 7.01675 8.625 7.5C8.625 7.98325 9.01675 8.375 9.5 8.375C9.98325 8.375 10.375 7.98325 10.375 7.5C10.375 7.01675 9.98325 6.625 9.5 6.625ZM12.625 7.5C12.625 7.01675 13.0168 6.625 13.5 6.625C13.9832 6.625 14.375 7.01675 14.375 7.5C14.375 7.98325 13.9832 8.375 13.5 8.375C13.0168 8.375 12.625 7.98325 12.625 7.5Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))});var Aw=["color"],Fp=(0,$.forwardRef)(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=et(e,Aw);return(0,$.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),(0,$.createElement)("path",{d:"M1.25 7.5C1.25 7.22386 1.47386 7 1.75 7H13.25C13.5261 7 13.75 7.22386 13.75 7.5C13.75 7.77614 13.5261 8 13.25 8H1.75C1.47386 8 1.25 7.77614 1.25 7.5Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))});var Bw=["color"],qp=(0,$.forwardRef)(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=et(e,Bw);return(0,$.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),(0,$.createElement)("path",{d:"M6.1584 3.13508C6.35985 2.94621 6.67627 2.95642 6.86514 3.15788L10.6151 7.15788C10.7954 7.3502 10.7954 7.64949 10.6151 7.84182L6.86514 11.8418C6.67627 12.0433 6.35985 12.0535 6.1584 11.8646C5.95694 11.6757 5.94673 11.3593 6.1356 11.1579L9.565 7.49985L6.1356 3.84182C5.94673 3.64036 5.95694 3.32394 6.1584 3.13508Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))});var Nw=["color"],$a=(0,$.forwardRef)(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=et(e,Nw);return(0,$.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),(0,$.createElement)("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))});var Pw=["color"],$p=(0,$.forwardRef)(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=et(e,Pw);return(0,$.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),(0,$.createElement)("path",{d:"M5.67494 3.50017C5.67494 3.25164 5.87641 3.05017 6.12494 3.05017H10.6249C10.8735 3.05017 11.0749 3.25164 11.0749 3.50017C11.0749 3.7487 10.8735 3.95017 10.6249 3.95017H9.00587L7.2309 11.05H8.87493C9.12345 11.05 9.32493 11.2515 9.32493 11.5C9.32493 11.7486 9.12345 11.95 8.87493 11.95H4.37493C4.1264 11.95 3.92493 11.7486 3.92493 11.5C3.92493 11.2515 4.1264 11.05 4.37493 11.05H5.99397L7.76894 3.95017H6.12494C5.87641 3.95017 5.67494 3.7487 5.67494 3.50017Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))}),Zw=["color"],jp=(0,$.forwardRef)(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=et(e,Zw);return(0,$.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),(0,$.createElement)("path",{d:"M4.79993 3.50017C4.79993 3.25164 5.0014 3.05017 5.24993 3.05017H9.74993C9.99845 3.05017 10.1999 3.25164 10.1999 3.50017C10.1999 3.7487 9.99845 3.95017 9.74993 3.95017H8.09993V11.05H9.74994C9.99847 11.05 10.1999 11.2515 10.1999 11.5C10.1999 11.7486 9.99847 11.95 9.74994 11.95H5.24994C5.00141 11.95 4.79994 11.7486 4.79994 11.5C4.79994 11.2515 5.00141 11.05 5.24994 11.05H6.89993V3.95017H5.24993C5.0014 3.95017 4.79993 3.7487 4.79993 3.50017Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))}),zw=["color"],Gp=(0,$.forwardRef)(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=et(e,zw);return(0,$.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),(0,$.createElement)("path",{d:"M2.78233 2.21707C2.70732 2.14206 2.60557 2.09991 2.49949 2.09991C2.3934 2.09991 2.29166 2.14206 2.21664 2.21707L0.216645 4.21707C0.0604351 4.37328 0.0604351 4.62655 0.216645 4.78276C0.372855 4.93897 0.626121 4.93897 0.78233 4.78276L2.09949 3.4656L2.09949 11.5342L0.78233 10.2171C0.62612 10.0609 0.372854 10.0609 0.216645 10.2171C0.0604349 10.3733 0.0604349 10.6265 0.216645 10.7828L2.21664 12.7828C2.29166 12.8578 2.3934 12.8999 2.49949 12.8999C2.60557 12.8999 2.70731 12.8578 2.78233 12.7828L4.78233 10.7828C4.93854 10.6265 4.93854 10.3733 4.78233 10.2171C4.62612 10.0609 4.37285 10.0609 4.21664 10.2171L2.89949 11.5342L2.89949 3.4656L4.21664 4.78276C4.37285 4.93897 4.62612 4.93897 4.78233 4.78276C4.93854 4.62655 4.93854 4.37328 4.78233 4.21707L2.78233 2.21707ZM10.5 2.74997C10.7107 2.74997 10.8988 2.88211 10.9703 3.08036L13.9703 11.3999C14.064 11.6597 13.9293 11.9462 13.6696 12.0399C13.4098 12.1336 13.1233 11.9989 13.0296 11.7392L12.0477 9.016H8.95228L7.97033 11.7392C7.87666 11.9989 7.59013 12.1336 7.33036 12.0399C7.07059 11.9462 6.93595 11.6597 7.02962 11.3999L10.0296 3.08036C10.1011 2.88211 10.2892 2.74997 10.5 2.74997ZM10.5 4.72396L11.7412 8.166H9.25879L10.5 4.72396Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))});var Uw=["color"],Kp=(0,$.forwardRef)(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=et(e,Uw);return(0,$.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),(0,$.createElement)("path",{d:"M7.1813 1.68179C7.35704 1.50605 7.64196 1.50605 7.8177 1.68179L10.3177 4.18179C10.4934 4.35753 10.4934 4.64245 10.3177 4.81819C10.142 4.99392 9.85704 4.99392 9.6813 4.81819L7.9495 3.08638L7.9495 11.9136L9.6813 10.1818C9.85704 10.0061 10.142 10.0061 10.3177 10.1818C10.4934 10.3575 10.4934 10.6424 10.3177 10.8182L7.8177 13.3182C7.73331 13.4026 7.61885 13.45 7.4995 13.45C7.38015 13.45 7.26569 13.4026 7.1813 13.3182L4.6813 10.8182C4.50557 10.6424 4.50557 10.3575 4.6813 10.1818C4.85704 10.0061 5.14196 10.0061 5.3177 10.1818L7.0495 11.9136L7.0495 3.08638L5.3177 4.81819C5.14196 4.99392 4.85704 4.99392 4.6813 4.81819C4.50557 4.64245 4.50557 4.35753 4.6813 4.18179L7.1813 1.68179Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))});var Fw=["color"],Xp=(0,$.forwardRef)(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=et(e,Fw);return(0,$.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),(0,$.createElement)("path",{d:"M6.5 1C6.22386 1 6 1.22386 6 1.5C6 1.77614 6.22386 2 6.5 2C7.12671 2 7.45718 2.20028 7.65563 2.47812C7.8781 2.78957 8 3.28837 8 4V11C8 11.7116 7.8781 12.2104 7.65563 12.5219C7.45718 12.7997 7.12671 13 6.5 13C6.22386 13 6 13.2239 6 13.5C6 13.7761 6.22386 14 6.5 14C7.37329 14 8.04282 13.7003 8.46937 13.1031C8.47976 13.0886 8.48997 13.0739 8.5 13.0591C8.51003 13.0739 8.52024 13.0886 8.53063 13.1031C8.95718 13.7003 9.62671 14 10.5 14C10.7761 14 11 13.7761 11 13.5C11 13.2239 10.7761 13 10.5 13C9.87329 13 9.54282 12.7997 9.34437 12.5219C9.1219 12.2104 9 11.7116 9 11V4C9 3.28837 9.1219 2.78957 9.34437 2.47812C9.54282 2.20028 9.87329 2 10.5 2C10.7761 2 11 1.77614 11 1.5C11 1.22386 10.7761 1 10.5 1C9.62671 1 8.95718 1.29972 8.53063 1.89688C8.52024 1.91143 8.51003 1.92611 8.5 1.9409C8.48997 1.92611 8.47976 1.91143 8.46937 1.89688C8.04282 1.29972 7.37329 1 6.5 1ZM14 5H11V4H14C14.5523 4 15 4.44772 15 5V10C15 10.5523 14.5523 11 14 11H11V10H14V5ZM6 4V5H1L1 10H6V11H1C0.447715 11 0 10.5523 0 10V5C0 4.44772 0.447715 4 1 4H6Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))});var qw=["color"],Qp=(0,$.forwardRef)(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=et(e,qw);return(0,$.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),(0,$.createElement)("path",{d:"M3.68979 2.75C3.89667 2.74979 4.08232 2.87701 4.15679 3.07003L7.36662 11.39C7.46602 11.6477 7.33774 11.9371 7.0801 12.0365C6.82247 12.1359 6.53304 12.0076 6.43365 11.75L5.3825 9.02537H2.01133L0.966992 11.749C0.868128 12.0068 0.578964 12.1357 0.321126 12.0369C0.0632878 11.938 -0.0655864 11.6488 0.0332774 11.391L3.22344 3.07099C3.29751 2.87782 3.4829 2.75021 3.68979 2.75ZM3.69174 4.64284L5.05458 8.17537H2.33724L3.69174 4.64284ZM10.8989 5.20703C9.25818 5.20703 8.00915 6.68569 8.00915 8.60972C8.00915 10.6337 9.35818 12.0124 10.8989 12.0124C11.7214 12.0124 12.5744 11.6692 13.1543 11.0219V11.53C13.1543 11.7785 13.3557 11.98 13.6043 11.98C13.8528 11.98 14.0543 11.7785 14.0543 11.53V5.72C14.0543 5.47147 13.8528 5.27 13.6043 5.27C13.3557 5.27 13.1543 5.47147 13.1543 5.72V6.22317C12.6054 5.60095 11.7924 5.20703 10.8989 5.20703ZM13.1543 9.79823V7.30195C12.7639 6.58101 11.9414 6.05757 11.0868 6.05757C10.1088 6.05757 9.03503 6.96581 9.03503 8.60955C9.03503 10.1533 10.0088 11.1615 11.0868 11.1615C11.9701 11.1615 12.7719 10.4952 13.1543 9.79823Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))}),$w=["color"],Yp=(0,$.forwardRef)(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=et(e,$w);return(0,$.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),(0,$.createElement)("path",{d:"M3.69899 5.20703C2.05823 5.20703 0.809204 6.68569 0.809204 8.60972C0.809204 10.6337 2.15823 12.0124 3.69899 12.0124C4.52126 12.0124 5.37402 11.6693 5.9539 11.0223V11.53C5.9539 11.7785 6.15537 11.98 6.4039 11.98C6.65243 11.98 6.8539 11.7785 6.8539 11.53V5.72001C6.8539 5.47149 6.65243 5.27001 6.4039 5.27001C6.15537 5.27001 5.9539 5.47149 5.9539 5.72001V6.22269C5.40506 5.60075 4.59218 5.20703 3.69899 5.20703ZM5.9539 9.799V7.30117C5.56339 6.58064 4.74118 6.05757 3.8868 6.05757C2.9089 6.05757 1.83508 6.96581 1.83508 8.60955C1.83508 10.1533 2.80889 11.1615 3.8868 11.1615C4.76984 11.1615 5.57141 10.4957 5.9539 9.799ZM10.799 5.20703C9.15823 5.20703 7.9092 6.68569 7.9092 8.60972C7.9092 10.6337 9.25823 12.0124 10.799 12.0124C11.6215 12.0124 12.4744 11.6692 13.0543 11.0218V11.53C13.0543 11.7785 13.2558 11.98 13.5043 11.98C13.7529 11.98 13.9543 11.7785 13.9543 11.53V5.72C13.9543 5.47147 13.7529 5.27 13.5043 5.27C13.2558 5.27 13.0543 5.47147 13.0543 5.72V6.22318C12.5055 5.60095 11.6924 5.20703 10.799 5.20703ZM13.0543 9.79822V7.30196C12.664 6.58102 11.8415 6.05757 10.9868 6.05757C10.0089 6.05757 8.93508 6.96581 8.93508 8.60955C8.93508 10.1533 9.90889 11.1615 10.9868 11.1615C11.8702 11.1615 12.672 10.4952 13.0543 9.79822Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))});var jw=["color"],Wp=(0,$.forwardRef)(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=et(e,jw);return(0,$.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),(0,$.createElement)("path",{d:"M3.6255 2.75C3.83478 2.75 4.02192 2.88034 4.09448 3.07664L7.16985 11.3962C7.2656 11.6552 7.13324 11.9428 6.87423 12.0386C6.61522 12.1343 6.32763 12.002 6.23188 11.7429L5.22387 9.01603H2.02712L1.01911 11.7429C0.923362 12.002 0.635774 12.1343 0.376762 12.0386C0.117749 11.9428 -0.0146052 11.6552 0.0811401 11.3962L3.15651 3.07664C3.22908 2.88034 3.41621 2.75 3.6255 2.75ZM3.6255 4.69207L4.90966 8.16603H2.34133L3.6255 4.69207ZM11.3719 2.75C11.5811 2.75 11.7683 2.88034 11.8408 3.07664L14.9162 11.3962C15.012 11.6552 14.8796 11.9428 14.6206 12.0386C14.3616 12.1343 14.074 12.002 13.9782 11.7429L12.9702 9.01603H9.77348L8.76547 11.7429C8.66972 12.002 8.38213 12.1343 8.12312 12.0386C7.86411 11.9428 7.73175 11.6552 7.8275 11.3962L10.9029 3.07664C10.9754 2.88034 11.1626 2.75 11.3719 2.75ZM11.3719 4.69207L12.656 8.16603H10.0877L11.3719 4.69207Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))}),Gw=["color"],Jp=(0,$.forwardRef)(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=et(e,Gw);return(0,$.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),(0,$.createElement)("path",{d:"M4.55293 0.999969C4.75295 0.999969 4.93372 1.11917 5.0125 1.30301L8.01106 8.29982C8.11984 8.55363 8.00226 8.84757 7.74844 8.95635C7.49463 9.06512 7.20069 8.94754 7.09191 8.69373L6.11613 6.41685H2.98973L2.01395 8.69373C1.90517 8.94754 1.61123 9.06512 1.35742 8.95635C1.1036 8.84757 0.986023 8.55363 1.0948 8.29982L4.09336 1.30301C4.17214 1.11917 4.35291 0.999969 4.55293 0.999969ZM4.55293 2.76929L5.75186 5.56685H3.354L4.55293 2.76929ZM11.0562 9.00214C11.2617 9.00214 11.4463 8.87633 11.5215 8.68502L14.2733 1.68299C14.3743 1.42598 14.2478 1.13575 13.9908 1.03475C13.7338 0.933747 13.4436 1.06021 13.3426 1.31722L11.0562 7.13514L8.76973 1.31722C8.66873 1.06021 8.3785 0.933747 8.1215 1.03475C7.86449 1.13575 7.73802 1.42598 7.83902 1.68299L10.5908 8.68502C10.666 8.87633 10.8506 9.00214 11.0562 9.00214ZM14.9537 12.4999C14.9537 12.606 14.9115 12.7077 14.8365 12.7828L12.8365 14.7828C12.6803 14.939 12.4271 14.939 12.2708 14.7828C12.1146 14.6265 12.1146 14.3733 12.2708 14.2171L13.588 12.8999H1.51937L2.83653 14.2171C2.99274 14.3733 2.99274 14.6265 2.83653 14.7828C2.68032 14.939 2.42705 14.939 2.27084 14.7828L0.270843 12.7828C0.195828 12.7077 0.153687 12.606 0.153687 12.4999C0.153687 12.3938 0.195828 12.2921 0.270843 12.2171L2.27084 10.2171C2.42705 10.0609 2.68032 10.0609 2.83653 10.2171C2.99274 10.3733 2.99274 10.6265 2.83653 10.7828L1.51937 12.0999L13.588 12.0999L12.2708 10.7828C12.1146 10.6265 12.1146 10.3733 12.2708 10.2171C12.4271 10.0609 12.6803 10.0609 12.8365 10.2171L14.8365 12.2171C14.9115 12.2921 14.9537 12.3938 14.9537 12.4999Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))});var Kw=["color"],em=(0,$.forwardRef)(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=et(e,Kw);return(0,$.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),(0,$.createElement)("path",{d:"M3.78233 2.21713C3.70732 2.14212 3.60557 2.09998 3.49949 2.09998C3.3934 2.09998 3.29166 2.14212 3.21664 2.21713L1.21664 4.21713C1.06044 4.37334 1.06044 4.62661 1.21664 4.78282C1.37285 4.93903 1.62612 4.93903 1.78233 4.78282L3.09949 3.46566L3.09949 11.5343L1.78233 10.2171C1.62612 10.0609 1.37285 10.0609 1.21664 10.2171C1.06043 10.3733 1.06043 10.6266 1.21664 10.7828L3.21664 12.7828C3.29166 12.8578 3.3934 12.9 3.49949 12.9C3.60557 12.9 3.70731 12.8578 3.78233 12.7828L5.78233 10.7828C5.93854 10.6266 5.93854 10.3733 5.78233 10.2171C5.62612 10.0609 5.37285 10.0609 5.21664 10.2171L3.89949 11.5343L3.89949 3.46566L5.21664 4.78282C5.37285 4.93903 5.62612 4.93903 5.78233 4.78282C5.93854 4.62661 5.93854 4.37334 5.78233 4.21713L3.78233 2.21713ZM8.49998 3.99997C8.22383 3.99997 7.99998 4.22382 7.99998 4.49997C7.99998 4.77611 8.22383 4.99997 8.49998 4.99997H14.5C14.7761 4.99997 15 4.77611 15 4.49997C15 4.22382 14.7761 3.99997 14.5 3.99997H8.49998ZM7.99998 7.49997C7.99998 7.22382 8.22383 6.99997 8.49998 6.99997H14.5C14.7761 6.99997 15 7.22382 15 7.49997C15 7.77611 14.7761 7.99997 14.5 7.99997H8.49998C8.22383 7.99997 7.99998 7.77611 7.99998 7.49997ZM8.49998 9.99997C8.22383 9.99997 7.99998 10.2238 7.99998 10.5C7.99998 10.7761 8.22383 11 8.49998 11H14.5C14.7761 11 15 10.7761 15 10.5C15 10.2238 14.7761 9.99997 14.5 9.99997H8.49998Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))});var Xw=["color"],tm=(0,$.forwardRef)(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=et(e,Xw);return(0,$.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),(0,$.createElement)("path",{d:"M4.85355 2.14645C5.04882 2.34171 5.04882 2.65829 4.85355 2.85355L3.70711 4H9C11.4853 4 13.5 6.01472 13.5 8.5C13.5 10.9853 11.4853 13 9 13H5C4.72386 13 4.5 12.7761 4.5 12.5C4.5 12.2239 4.72386 12 5 12H9C10.933 12 12.5 10.433 12.5 8.5C12.5 6.567 10.933 5 9 5H3.70711L4.85355 6.14645C5.04882 6.34171 5.04882 6.65829 4.85355 6.85355C4.65829 7.04882 4.34171 7.04882 4.14645 6.85355L2.14645 4.85355C1.95118 4.65829 1.95118 4.34171 2.14645 4.14645L4.14645 2.14645C4.34171 1.95118 4.65829 1.95118 4.85355 2.14645Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))});var Qw=["color"],om=(0,$.forwardRef)(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=et(e,Qw);return(0,$.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),(0,$.createElement)("path",{d:"M5.00003 3.25C5.00003 2.97386 4.77617 2.75 4.50003 2.75C4.22389 2.75 4.00003 2.97386 4.00003 3.25V7.10003H2.49998C2.27906 7.10003 2.09998 7.27912 2.09998 7.50003C2.09998 7.72094 2.27906 7.90003 2.49998 7.90003H4.00003V8.55C4.00003 10.483 5.56703 12.05 7.50003 12.05C9.43303 12.05 11 10.483 11 8.55V7.90003H12.5C12.7209 7.90003 12.9 7.72094 12.9 7.50003C12.9 7.27912 12.7209 7.10003 12.5 7.10003H11V3.25C11 2.97386 10.7762 2.75 10.5 2.75C10.2239 2.75 10 2.97386 10 3.25V7.10003H5.00003V3.25ZM5.00003 7.90003V8.55C5.00003 9.93071 6.11932 11.05 7.50003 11.05C8.88074 11.05 10 9.93071 10 8.55V7.90003H5.00003Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))});var Yw=["color"],am=(0,$.forwardRef)(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=et(e,Yw);return(0,$.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),(0,$.createElement)("path",{d:"M2 4.5C2 4.22386 2.22386 4 2.5 4H12.5C12.7761 4 13 4.22386 13 4.5C13 4.77614 12.7761 5 12.5 5H2.5C2.22386 5 2 4.77614 2 4.5ZM4 7.5C4 7.22386 4.22386 7 4.5 7H10.5C10.7761 7 11 7.22386 11 7.5C11 7.77614 10.7761 8 10.5 8H4.5C4.22386 8 4 7.77614 4 7.5ZM3 10.5C3 10.2239 3.22386 10 3.5 10H11.5C11.7761 10 12 10.2239 12 10.5C12 10.7761 11.7761 11 11.5 11H3.5C3.22386 11 3 10.7761 3 10.5Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))}),Ww=["color"],rm=(0,$.forwardRef)(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=et(e,Ww);return(0,$.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),(0,$.createElement)("path",{d:"M2.5 4C2.22386 4 2 4.22386 2 4.5C2 4.77614 2.22386 5 2.5 5H12.5C12.7761 5 13 4.77614 13 4.5C13 4.22386 12.7761 4 12.5 4H2.5ZM2 7.5C2 7.22386 2.22386 7 2.5 7H12.5C12.7761 7 13 7.22386 13 7.5C13 7.77614 12.7761 8 12.5 8H2.5C2.22386 8 2 7.77614 2 7.5ZM2 10.5C2 10.2239 2.22386 10 2.5 10H12.5C12.7761 10 13 10.2239 13 10.5C13 10.7761 12.7761 11 12.5 11H2.5C2.22386 11 2 10.7761 2 10.5Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))}),Jw=["color"],lm=(0,$.forwardRef)(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=et(e,Jw);return(0,$.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),(0,$.createElement)("path",{d:"M2 4.5C2 4.22386 2.22386 4 2.5 4H12.5C12.7761 4 13 4.22386 13 4.5C13 4.77614 12.7761 5 12.5 5H2.5C2.22386 5 2 4.77614 2 4.5ZM2 7.5C2 7.22386 2.22386 7 2.5 7H7.5C7.77614 7 8 7.22386 8 7.5C8 7.77614 7.77614 8 7.5 8H2.5C2.22386 8 2 7.77614 2 7.5ZM2 10.5C2 10.2239 2.22386 10 2.5 10H10.5C10.7761 10 11 10.2239 11 10.5C11 10.7761 10.7761 11 10.5 11H2.5C2.22386 11 2 10.7761 2 10.5Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))});var ey=["color"],nm=(0,$.forwardRef)(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=et(e,ey);return(0,$.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),(0,$.createElement)("path",{d:"M2 4.5C2 4.22386 2.22386 4 2.5 4H12.5C12.7761 4 13 4.22386 13 4.5C13 4.77614 12.7761 5 12.5 5H2.5C2.22386 5 2 4.77614 2 4.5ZM7 7.5C7 7.22386 7.22386 7 7.5 7H12.5C12.7761 7 13 7.22386 13 7.5C13 7.77614 12.7761 8 12.5 8H7.5C7.22386 8 7 7.77614 7 7.5ZM4 10.5C4 10.2239 4.22386 10 4.5 10H12.5C12.7761 10 13 10.2239 13 10.5C13 10.7761 12.7761 11 12.5 11H4.5C4.22386 11 4 10.7761 4 10.5Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))});var ty=["color"],im=(0,$.forwardRef)(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=et(e,ty);return(0,$.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),(0,$.createElement)("path",{d:"M4 6H11L7.5 10.5L4 6Z",fill:a}))});var oy=["color"],um=(0,$.forwardRef)(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=et(e,oy);return(0,$.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),(0,$.createElement)("path",{d:"M4 9H11L7.5 4.5L4 9Z",fill:a}))});var ay=["color"],sm=(0,$.forwardRef)(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=et(e,ay);return(0,$.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),(0,$.createElement)("path",{d:"M5.00001 2.75C5.00001 2.47386 4.77615 2.25 4.50001 2.25C4.22387 2.25 4.00001 2.47386 4.00001 2.75V8.05C4.00001 9.983 5.56702 11.55 7.50001 11.55C9.43301 11.55 11 9.983 11 8.05V2.75C11 2.47386 10.7762 2.25 10.5 2.25C10.2239 2.25 10 2.47386 10 2.75V8.05C10 9.43071 8.88072 10.55 7.50001 10.55C6.1193 10.55 5.00001 9.43071 5.00001 8.05V2.75ZM3.49998 13.1001C3.27906 13.1001 3.09998 13.2791 3.09998 13.5001C3.09998 13.721 3.27906 13.9001 3.49998 13.9001H11.5C11.7209 13.9001 11.9 13.721 11.9 13.5001C11.9 13.2791 11.7209 13.1001 11.5 13.1001H3.49998Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))});var ry=["color"],dm=(0,$.forwardRef)(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=et(e,ry);return(0,$.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),(0,$.createElement)("path",{d:"M4.81812 4.68161C4.99386 4.85734 4.99386 5.14227 4.81812 5.318L3.08632 7.0498H11.9135L10.1817 5.318C10.006 5.14227 10.006 4.85734 10.1817 4.68161C10.3575 4.50587 10.6424 4.50587 10.8181 4.68161L13.3181 7.18161C13.4939 7.35734 13.4939 7.64227 13.3181 7.818L10.8181 10.318C10.6424 10.4937 10.3575 10.4937 10.1817 10.318C10.006 10.1423 10.006 9.85734 10.1817 9.68161L11.9135 7.9498H3.08632L4.81812 9.68161C4.99386 9.85734 4.99386 10.1423 4.81812 10.318C4.64239 10.4937 4.35746 10.4937 4.18173 10.318L1.68173 7.818C1.50599 7.64227 1.50599 7.35734 1.68173 7.18161L4.18173 4.68161C4.35746 4.50587 4.64239 4.50587 4.81812 4.68161Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))});var Ve=V(he(),1),Yk=V(Hc(),1);var kc=V(he(),1),Zr=V(ue(),1);function zr({title:e,defaultOpen:t=!0,children:o}){let[a,r]=kc.default.useState(t),l=kc.default.useCallback(n=>{r(n.currentTarget.open)},[]);return(0,Zr.jsxs)("details",{className:"property-panel-section",open:a,onToggle:l,children:[(0,Zr.jsxs)("summary",{className:"property-panel-section-trigger",children:[(0,Zr.jsx)("span",{children:e}),(0,Zr.jsx)(qp,{className:"property-panel-section-chevron",width:12,height:12,"aria-hidden":"true"})]}),(0,Zr.jsx)("div",{className:"property-panel-section-content",children:o})]})}var mm=["H1","H2","H3","H4","H5","H6","P","SPAN","A","BUTTON","LABEL","DIV"];var Y1=V(he(),1);var ia=V(he(),1),gm=V(ue(),1);function Jl(e,t=[]){let o=[];function a(l,n){let i=ia.createContext(n),u=o.length;o=[...o,n];let s=g=>{let{scope:f,children:p,...v}=g,b=f?.[e]?.[u]||i,x=ia.useMemo(()=>v,Object.values(v));return(0,gm.jsx)(b.Provider,{value:x,children:p})};s.displayName=l+"Provider";function d(g,f){let p=f?.[e]?.[u]||i,v=ia.useContext(p);if(v)return v;if(n!==void 0)return n;throw new Error(`\`${g}\` must be used within \`${l}\``)}return[s,d]}let r=()=>{let l=o.map(n=>ia.createContext(n));return function(i){let u=i?.[e]||l;return ia.useMemo(()=>({[`__scope${e}`]:{...i,[e]:u}}),[i,u])}};return r.scopeName=e,[a,iy(r,...t)]}function iy(...e){let t=e[0];if(e.length===1)return t;let o=()=>{let a=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(l){let n=a.reduce((i,{useScope:u,scopeName:s})=>{let g=u(l)[`__scope${s}`];return{...i,...g}},{});return ia.useMemo(()=>({[`__scope${t.scopeName}`]:n}),[n])}};return o.scopeName=t.scopeName,o}var xm=V(he(),1),my=V(qo(),1);var It=V(he(),1);var uy=V(he(),1);function hm(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Cm(...e){return t=>{let o=!1,a=e.map(r=>{let l=hm(r,t);return!o&&typeof l=="function"&&(o=!0),l});if(o)return()=>{for(let r=0;r<a.length;r++){let l=a[r];typeof l=="function"?l():hm(e[r],null)}}}}var Y0=V(ue(),1);function vm(e){let t=sy(e),o=It.forwardRef((a,r)=>{let{children:l,...n}=a,i=It.Children.toArray(l),u=i.find(cy);if(u){let s=u.props.children,d=i.map(g=>g===u?It.Children.count(s)>1?It.Children.only(null):It.isValidElement(s)?s.props.children:null:g);return(0,Y0.jsx)(t,{...n,ref:r,children:It.isValidElement(s)?It.cloneElement(s,void 0,d):null})}return(0,Y0.jsx)(t,{...n,ref:r,children:l})});return o.displayName=`${e}.Slot`,o}function sy(e){let t=It.forwardRef((o,a)=>{let{children:r,...l}=o;if(It.isValidElement(r)){let n=py(r),i=fy(l,r.props);return r.type!==It.Fragment&&(i.ref=a?Cm(a,n):n),It.cloneElement(r,i)}return It.Children.count(r)>1?It.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var dy=Symbol("radix.slottable");function cy(e){return It.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===dy}function fy(e,t){let o={...t};for(let a in t){let r=e[a],l=t[a];/^on[A-Z]/.test(a)?r&&l?o[a]=(...i)=>{let u=l(...i);return r(...i),u}:r&&(o[a]=r):a==="style"?o[a]={...r,...l}:a==="className"&&(o[a]=[r,l].filter(Boolean).join(" "))}return{...e,...o}}function py(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}var bm=V(ue(),1),gy=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Tc=gy.reduce((e,t)=>{let o=vm(`Primitive.${t}`),a=xm.forwardRef((r,l)=>{let{asChild:n,...i}=r,u=n?o:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,bm.jsx)(u,{...i,ref:l})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{});var Ot=V(he(),1);var WT=!!(typeof window<"u"&&window.document&&window.document.createElement);function ua(e,t,{checkForDefaultPrevented:o=!0}={}){return function(r){if(e?.(r),o===!1||!r.defaultPrevented)return t?.(r)}}var ja=V(he(),1);var wm=V(he(),1);function Lm(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Ec(...e){return t=>{let o=!1,a=e.map(r=>{let l=Lm(r,t);return!o&&typeof l=="function"&&(o=!0),l});if(o)return()=>{for(let r=0;r<a.length;r++){let l=a[r];typeof l=="function"?l():Lm(e[r],null)}}}}function _c(...e){return wm.useCallback(Ec(...e),e)}var St=V(he(),1);var W0=V(ue(),1);function Oc(e){let t=hy(e),o=St.forwardRef((a,r)=>{let{children:l,...n}=a,i=St.Children.toArray(l),u=i.find(vy);if(u){let s=u.props.children,d=i.map(g=>g===u?St.Children.count(s)>1?St.Children.only(null):St.isValidElement(s)?s.props.children:null:g);return(0,W0.jsx)(t,{...n,ref:r,children:St.isValidElement(s)?St.cloneElement(s,void 0,d):null})}return(0,W0.jsx)(t,{...n,ref:r,children:l})});return o.displayName=`${e}.Slot`,o}function hy(e){let t=St.forwardRef((o,a)=>{let{children:r,...l}=o;if(St.isValidElement(r)){let n=by(r),i=xy(l,r.props);return r.type!==St.Fragment&&(i.ref=a?Ec(a,n):n),St.cloneElement(r,i)}return St.Children.count(r)>1?St.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Cy=Symbol("radix.slottable");function vy(e){return St.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Cy}function xy(e,t){let o={...t};for(let a in t){let r=e[a],l=t[a];/^on[A-Z]/.test(a)?r&&l?o[a]=(...i)=>{let u=l(...i);return r(...i),u}:r&&(o[a]=r):a==="style"?o[a]={...r,...l}:a==="className"&&(o[a]=[r,l].filter(Boolean).join(" "))}return{...e,...o}}function by(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}var J0=V(ue(),1),Ly=V(he(),1);var wy=V(ue(),1);function ym(e){let t=e+"CollectionProvider",[o,a]=Jl(t),[r,l]=o(t,{collectionRef:{current:null},itemMap:new Map}),n=b=>{let{scope:x,children:m}=b,c=ja.default.useRef(null),h=ja.default.useRef(new Map).current;return(0,J0.jsx)(r,{scope:x,itemMap:h,collectionRef:c,children:m})};n.displayName=t;let i=e+"CollectionSlot",u=Oc(i),s=ja.default.forwardRef((b,x)=>{let{scope:m,children:c}=b,h=l(i,m),C=_c(x,h.collectionRef);return(0,J0.jsx)(u,{ref:C,children:c})});s.displayName=i;let d=e+"CollectionItemSlot",g="data-radix-collection-item",f=Oc(d),p=ja.default.forwardRef((b,x)=>{let{scope:m,children:c,...h}=b,C=ja.default.useRef(null),w=_c(x,C),S=l(d,m);return ja.default.useEffect(()=>(S.itemMap.set(C,{ref:C,...h}),()=>{S.itemMap.delete(C)})),(0,J0.jsx)(f,{[g]:"",ref:w,children:c})});p.displayName=d;function v(b){let x=l(e+"CollectionConsumer",b);return ja.default.useCallback(()=>{let c=x.collectionRef.current;if(!c)return[];let h=Array.from(c.querySelectorAll(`[${g}]`));return Array.from(x.itemMap.values()).sort((S,H)=>h.indexOf(S.ref.current)-h.indexOf(H.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:n,Slot:s,ItemSlot:p},v,a]}var Sm=V(he(),1);function Im(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Dc(...e){return t=>{let o=!1,a=e.map(r=>{let l=Im(r,t);return!o&&typeof l=="function"&&(o=!0),l});if(o)return()=>{for(let r=0;r<a.length;r++){let l=a[r];typeof l=="function"?l():Im(e[r],null)}}}}function Mm(...e){return Sm.useCallback(Dc(...e),e)}var Vc=V(he(),1);var Rm=V(he(),1),e2=globalThis?.document?Rm.useLayoutEffect:()=>{};var yy=Vc[" useId ".trim().toString()]||(()=>{}),Iy=0;function Hm(e){let[t,o]=Vc.useState(yy());return e2(()=>{e||o(a=>a??String(Iy++))},[e]),e||(t?`radix-${t}`:"")}var Tm=V(he(),1),Ty=V(qo(),1);var Mt=V(he(),1);var t2=V(ue(),1);function km(e){let t=Sy(e),o=Mt.forwardRef((a,r)=>{let{children:l,...n}=a,i=Mt.Children.toArray(l),u=i.find(Ry);if(u){let s=u.props.children,d=i.map(g=>g===u?Mt.Children.count(s)>1?Mt.Children.only(null):Mt.isValidElement(s)?s.props.children:null:g);return(0,t2.jsx)(t,{...n,ref:r,children:Mt.isValidElement(s)?Mt.cloneElement(s,void 0,d):null})}return(0,t2.jsx)(t,{...n,ref:r,children:l})});return o.displayName=`${e}.Slot`,o}function Sy(e){let t=Mt.forwardRef((o,a)=>{let{children:r,...l}=o;if(Mt.isValidElement(r)){let n=ky(r),i=Hy(l,r.props);return r.type!==Mt.Fragment&&(i.ref=a?Dc(a,n):n),Mt.cloneElement(r,i)}return Mt.Children.count(r)>1?Mt.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var My=Symbol("radix.slottable");function Ry(e){return Mt.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===My}function Hy(e,t){let o={...t};for(let a in t){let r=e[a],l=t[a];/^on[A-Z]/.test(a)?r&&l?o[a]=(...i)=>{let u=l(...i);return r(...i),u}:r&&(o[a]=r):a==="style"?o[a]={...r,...l}:a==="className"&&(o[a]=[r,l].filter(Boolean).join(" "))}return{...e,...o}}function ky(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}var Em=V(ue(),1),Ey=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ac=Ey.reduce((e,t)=>{let o=km(`Primitive.${t}`),a=Tm.forwardRef((r,l)=>{let{asChild:n,...i}=r,u=n?o:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,Em.jsx)(u,{...i,ref:l})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{});var en=V(he(),1);function _m(e){let t=en.useRef(e);return en.useEffect(()=>{t.current=e}),en.useMemo(()=>(...o)=>t.current?.(...o),[])}var Q1=V(he(),1);var o2=V(he(),1);var _y=Q1[" useInsertionEffect ".trim().toString()]||e2;function Ur({prop:e,defaultProp:t,onChange:o=()=>{},caller:a}){let[r,l,n]=Oy({defaultProp:t,onChange:o}),i=e!==void 0,u=i?e:r;{let d=Q1.useRef(e!==void 0);Q1.useEffect(()=>{let g=d.current;g!==i&&console.warn(`${a} is changing from ${g?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=i},[i,a])}let s=Q1.useCallback(d=>{if(i){let g=Dy(d)?d(e):d;g!==e&&n.current?.(g)}else l(d)},[i,e,l,n]);return[u,s]}function Oy({defaultProp:e,onChange:t}){let[o,a]=Q1.useState(e),r=Q1.useRef(o),l=Q1.useRef(t);return _y(()=>{l.current=t},[t]),Q1.useEffect(()=>{r.current!==o&&(l.current?.(o),r.current=o)},[o,r]),[o,a,l]}function Dy(e){return typeof e=="function"}var a2=V(he(),1),Vy=V(ue(),1),Ay=a2.createContext(void 0);function r2(e){let t=a2.useContext(Ay);return e||t||"ltr"}var Ga=V(ue(),1),Bc="rovingFocusGroup.onEntryFocus",By={bubbles:!1,cancelable:!0},Oi="RovingFocusGroup",[Nc,Om,Ny]=ym(Oi),[Py,Pc]=Jl(Oi,[Ny]),[Zy,zy]=Py(Oi),Dm=Ot.forwardRef((e,t)=>(0,Ga.jsx)(Nc.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,Ga.jsx)(Nc.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,Ga.jsx)(Uy,{...e,ref:t})})}));Dm.displayName=Oi;var Uy=Ot.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:o,orientation:a,loop:r=!1,dir:l,currentTabStopId:n,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:u,onEntryFocus:s,preventScrollOnEntryFocus:d=!1,...g}=e,f=Ot.useRef(null),p=Mm(t,f),v=r2(l),[b,x]=Ur({prop:n,defaultProp:i??null,onChange:u,caller:Oi}),[m,c]=Ot.useState(!1),h=_m(s),C=Om(o),w=Ot.useRef(!1),[S,H]=Ot.useState(0);return Ot.useEffect(()=>{let y=f.current;if(y)return y.addEventListener(Bc,h),()=>y.removeEventListener(Bc,h)},[h]),(0,Ga.jsx)(Zy,{scope:o,orientation:a,dir:v,loop:r,currentTabStopId:b,onItemFocus:Ot.useCallback(y=>x(y),[x]),onItemShiftTab:Ot.useCallback(()=>c(!0),[]),onFocusableItemAdd:Ot.useCallback(()=>H(y=>y+1),[]),onFocusableItemRemove:Ot.useCallback(()=>H(y=>y-1),[]),children:(0,Ga.jsx)(Ac.div,{tabIndex:m||S===0?-1:0,"data-orientation":a,...g,ref:p,style:{outline:"none",...e.style},onMouseDown:ua(e.onMouseDown,()=>{w.current=!0}),onFocus:ua(e.onFocus,y=>{let k=!w.current;if(y.target===y.currentTarget&&k&&!m){let O=new CustomEvent(Bc,By);if(y.currentTarget.dispatchEvent(O),!O.defaultPrevented){let F=C().filter(M=>M.focusable),ae=F.find(M=>M.active),K=F.find(M=>M.id===b),Q=[ae,K,...F].filter(Boolean).map(M=>M.ref.current);Bm(Q,d)}}w.current=!1}),onBlur:ua(e.onBlur,()=>c(!1))})})}),Vm="RovingFocusGroupItem",Am=Ot.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:o,focusable:a=!0,active:r=!1,tabStopId:l,children:n,...i}=e,u=Hm(),s=l||u,d=zy(Vm,o),g=d.currentTabStopId===s,f=Om(o),{onFocusableItemAdd:p,onFocusableItemRemove:v,currentTabStopId:b}=d;return Ot.useEffect(()=>{if(a)return p(),()=>v()},[a,p,v]),(0,Ga.jsx)(Nc.ItemSlot,{scope:o,id:s,focusable:a,active:r,children:(0,Ga.jsx)(Ac.span,{tabIndex:g?0:-1,"data-orientation":d.orientation,...i,ref:t,onMouseDown:ua(e.onMouseDown,x=>{a?d.onItemFocus(s):x.preventDefault()}),onFocus:ua(e.onFocus,()=>d.onItemFocus(s)),onKeyDown:ua(e.onKeyDown,x=>{if(x.key==="Tab"&&x.shiftKey){d.onItemShiftTab();return}if(x.target!==x.currentTarget)return;let m=$y(x,d.orientation,d.dir);if(m!==void 0){if(x.metaKey||x.ctrlKey||x.altKey||x.shiftKey)return;x.preventDefault();let h=f().filter(C=>C.focusable).map(C=>C.ref.current);if(m==="last")h.reverse();else if(m==="prev"||m==="next"){m==="prev"&&h.reverse();let C=h.indexOf(x.currentTarget);h=d.loop?jy(h,C+1):h.slice(C+1)}setTimeout(()=>Bm(h))}}),children:typeof n=="function"?n({isCurrentTabStop:g,hasTabStop:b!=null}):n})})});Am.displayName=Vm;var Fy={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function qy(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function $y(e,t,o){let a=qy(e.key,o);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(a))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(a)))return Fy[a]}function Bm(e,t=!1){let o=document.activeElement;for(let a of e)if(a===o||(a.focus({preventScroll:t}),document.activeElement!==o))return}function jy(e,t){return e.map((o,a)=>e[(t+a)%e.length])}var Nm=Dm,Pm=Am;var jm=V(he(),1);var Fm=V(he(),1),eI=V(qo(),1);var Rt=V(he(),1);var Ky=V(he(),1);function Zm(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function zm(...e){return t=>{let o=!1,a=e.map(r=>{let l=Zm(r,t);return!o&&typeof l=="function"&&(o=!0),l});if(o)return()=>{for(let r=0;r<a.length;r++){let l=a[r];typeof l=="function"?l():Zm(e[r],null)}}}}var l2=V(ue(),1);function Um(e){let t=Xy(e),o=Rt.forwardRef((a,r)=>{let{children:l,...n}=a,i=Rt.Children.toArray(l),u=i.find(Yy);if(u){let s=u.props.children,d=i.map(g=>g===u?Rt.Children.count(s)>1?Rt.Children.only(null):Rt.isValidElement(s)?s.props.children:null:g);return(0,l2.jsx)(t,{...n,ref:r,children:Rt.isValidElement(s)?Rt.cloneElement(s,void 0,d):null})}return(0,l2.jsx)(t,{...n,ref:r,children:l})});return o.displayName=`${e}.Slot`,o}function Xy(e){let t=Rt.forwardRef((o,a)=>{let{children:r,...l}=o;if(Rt.isValidElement(r)){let n=Jy(r),i=Wy(l,r.props);return r.type!==Rt.Fragment&&(i.ref=a?zm(a,n):n),Rt.cloneElement(r,i)}return Rt.Children.count(r)>1?Rt.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Qy=Symbol("radix.slottable");function Yy(e){return Rt.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Qy}function Wy(e,t){let o={...t};for(let a in t){let r=e[a],l=t[a];/^on[A-Z]/.test(a)?r&&l?o[a]=(...i)=>{let u=l(...i);return r(...i),u}:r&&(o[a]=r):a==="style"?o[a]={...r,...l}:a==="className"&&(o[a]=[r,l].filter(Boolean).join(" "))}return{...e,...o}}function Jy(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}var qm=V(ue(),1),tI=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],$m=tI.reduce((e,t)=>{let o=Um(`Primitive.${t}`),a=Fm.forwardRef((r,l)=>{let{asChild:n,...i}=r,u=n?o:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,qm.jsx)(u,{...i,ref:l})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{});var Gm=V(ue(),1),Km="Toggle",Zc=jm.forwardRef((e,t)=>{let{pressed:o,defaultPressed:a,onPressedChange:r,...l}=e,[n,i]=Ur({prop:o,onChange:r,defaultProp:a??!1,caller:Km});return(0,Gm.jsx)($m.button,{type:"button","aria-pressed":n,"data-state":n?"on":"off","data-disabled":e.disabled?"":void 0,...l,ref:t,onClick:ua(e.onClick,()=>{e.disabled||i(!n)})})});Zc.displayName=Km;var n1=V(ue(),1),Ka="ToggleGroup",[Qm,qE]=Jl(Ka,[Pc]),Ym=Pc(),zc=Y1.default.forwardRef((e,t)=>{let{type:o,...a}=e;if(o==="single")return(0,n1.jsx)(oI,{...a,ref:t});if(o==="multiple")return(0,n1.jsx)(aI,{...a,ref:t});throw new Error(`Missing prop \`type\` expected on \`${Ka}\``)});zc.displayName=Ka;var[Wm,Jm]=Qm(Ka),oI=Y1.default.forwardRef((e,t)=>{let{value:o,defaultValue:a,onValueChange:r=()=>{},...l}=e,[n,i]=Ur({prop:o,defaultProp:a??"",onChange:r,caller:Ka});return(0,n1.jsx)(Wm,{scope:e.__scopeToggleGroup,type:"single",value:Y1.default.useMemo(()=>n?[n]:[],[n]),onItemActivate:i,onItemDeactivate:Y1.default.useCallback(()=>i(""),[i]),children:(0,n1.jsx)(eg,{...l,ref:t})})}),aI=Y1.default.forwardRef((e,t)=>{let{value:o,defaultValue:a,onValueChange:r=()=>{},...l}=e,[n,i]=Ur({prop:o,defaultProp:a??[],onChange:r,caller:Ka}),u=Y1.default.useCallback(d=>i((g=[])=>[...g,d]),[i]),s=Y1.default.useCallback(d=>i((g=[])=>g.filter(f=>f!==d)),[i]);return(0,n1.jsx)(Wm,{scope:e.__scopeToggleGroup,type:"multiple",value:n,onItemActivate:u,onItemDeactivate:s,children:(0,n1.jsx)(eg,{...l,ref:t})})});zc.displayName=Ka;var[rI,lI]=Qm(Ka),eg=Y1.default.forwardRef((e,t)=>{let{__scopeToggleGroup:o,disabled:a=!1,rovingFocus:r=!0,orientation:l,dir:n,loop:i=!0,...u}=e,s=Ym(o),d=r2(n),g={role:"group",dir:d,...u};return(0,n1.jsx)(rI,{scope:o,rovingFocus:r,disabled:a,children:r?(0,n1.jsx)(Nm,{asChild:!0,...s,orientation:l,dir:d,loop:i,children:(0,n1.jsx)(Tc.div,{...g,ref:t})}):(0,n1.jsx)(Tc.div,{...g,ref:t})})}),n2="ToggleGroupItem",tg=Y1.default.forwardRef((e,t)=>{let o=Jm(n2,e.__scopeToggleGroup),a=lI(n2,e.__scopeToggleGroup),r=Ym(e.__scopeToggleGroup),l=o.value.includes(e.value),n=a.disabled||e.disabled,i={...e,pressed:l,disabled:n},u=Y1.default.useRef(null);return a.rovingFocus?(0,n1.jsx)(Pm,{asChild:!0,...r,focusable:!n,active:l,ref:u,children:(0,n1.jsx)(Xm,{...i,ref:t})}):(0,n1.jsx)(Xm,{...i,ref:t})});tg.displayName=n2;var Xm=Y1.default.forwardRef((e,t)=>{let{__scopeToggleGroup:o,value:a,...r}=e,l=Jm(n2,o),n={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},i=l.type==="single"?n:void 0;return(0,n1.jsx)(Zc,{...i,...r,ref:t,onPressedChange:u=>{u?l.onItemActivate(a):l.onItemDeactivate(a)}})}),og=zc,ag=tg;var rg=V(he(),1);var i2=V(ue(),1),iI={border:"none",margin:0,padding:0,minWidth:0},uI={color:"var(--dmp-color-foreground)",fontSize:"var(--dmp-font-size-label)",display:"block",marginBottom:"5px",padding:0};function W1({label:e,id:t,className:o,children:a}){let r=`${t}-legend`;return(0,i2.jsxs)("fieldset",{style:iI,className:o,"aria-labelledby":r,children:[(0,i2.jsx)("legend",{id:r,style:uI,children:e}),a]})}var u2=V(ue(),1);function Do({label:e,options:t,value:o,onChange:a,id:r="radio-group"}){let l=rg.default.useCallback(n=>{n&&typeof a=="function"&&a(n)},[a]);return(0,u2.jsx)(W1,{label:e,id:r,className:"radioGroupEditor-fieldset",children:(0,u2.jsx)(og,{type:"single",value:o,onValueChange:l,className:"radioGroupEditor-root","aria-label":e,children:t.map(n=>(0,u2.jsx)(ag,{value:n.value,className:"radioGroupEditor-item","aria-label":n.label,title:n.label,children:n.icon??n.label},n.value))})})}var tn=V(ue(),1),ng=[{value:"none",labelKey:"none",defaultLabel:"None",icon:(0,tn.jsx)($a,{width:14,height:14})},{value:"solid",labelKey:"solid",defaultLabel:"Solid",icon:(0,tn.jsx)(Fp,{width:14,height:14})},{value:"dashed",labelKey:"dashed",defaultLabel:"Dashed",icon:(0,tn.jsx)(zp,{width:14,height:14})},{value:"dotted",labelKey:"dotted",defaultLabel:"Dotted",icon:(0,tn.jsx)(Up,{width:14,height:14})}],lg=new Set(ng.map(e=>e.value));function sI(e){if(!e)return"none";if(lg.has(e))return e;let t=e.split(/\s+/)[0]??"";return lg.has(t)?t:"none"}function ig({label:e="Border Style",value:t,onChange:o,id:a="border-style",optionLabels:r}){let l=ng.map(n=>({value:n.value,label:r?.[n.labelKey]??n.defaultLabel,icon:n.icon}));return(0,tn.jsx)(Do,{label:e,options:l,value:sI(t),onChange:o,id:a})}var Dt=V(he(),1);function vt(e,t){return e.replace(/\{(\d+)\}/g,(o,a)=>{let r=t[Number(a)];return r===void 0?o:String(r)})}function D1(e,t){if(t==null||typeof t!="object"||typeof e!="object")return e;let o={...e},a=t;for(let r of Object.keys(o)){let l=o[r],n=a[r];l!==null&&typeof l=="object"&&!Array.isArray(l)?o[r]=D1(l,n):typeof n=="string"&&(o[r]=n)}return o}var ug=[{path:"general.headerTitle"},{path:"general.emptyPlaceholder"},{path:"general.inlineEditEditable"},{path:"general.inlineEditNonEditable"},{path:"general.addToChatContext"},{path:"general.ariaPropertyPanel"},{path:"general.ariaSelectedComponent"},{path:"general.ariaElementStyling"},{path:"general.closePanel"},{path:"sections.imageSource"},{path:"sections.background"},{path:"sections.spacing"},{path:"sections.border"},{path:"sections.typography"},{path:"sections.elementDimensions"},{path:"instances.imageSource"},{path:"instances.backgroundColor"},{path:"instances.padding"},{path:"instances.margin"},{path:"instances.borderRadius"},{path:"instances.borderWeight"},{path:"instances.borderStyle"},{path:"instances.borderColor"},{path:"instances.fontFamily"},{path:"instances.fontSize"},{path:"instances.fontWeight"},{path:"instances.fontStyle"},{path:"instances.textColor"},{path:"instances.textAlignment"},{path:"instances.textFormatting"},{path:"instances.textTransform"},{path:"instances.lineHeight"},{path:"instances.letterSpacing"},{path:"instances.width"},{path:"instances.minWidth"},{path:"instances.maxWidth"},{path:"instances.height"},{path:"instances.minHeight"},{path:"instances.maxHeight"},{path:"instances.overflow"},{path:"editors.image.tabCms"},{path:"editors.image.tabLocal"},{path:"editors.image.tabUrl"},{path:"editors.image.ariaTablist"},{path:"editors.image.clearImage"},{path:"editors.image.chooseFile"},{path:"editors.image.ariaChooseFile"},{path:"editors.image.useThisImage"},{path:"editors.image.ariaImageUrl"},{path:"editors.image.urlPlaceholder"},{path:"editors.image.previewAlt"},{path:"editors.image.altText"},{path:"editors.image.altPlaceholder"},{path:"editors.image.width"},{path:"editors.image.height"},{path:"editors.image.autoPlaceholder"},{path:"editors.image.workspace"},{path:"editors.image.selectWorkspace"},{path:"editors.image.selectImage"},{path:"editors.image.loadingWorkspaces"},{path:"editors.image.noWorkspaces"},{path:"editors.image.loadingImages"},{path:"editors.image.noImages"},{path:"editors.image.loadingMore"},{path:"editors.image.untitled"},{path:"editors.image.downloadingImage"},{path:"editors.image.downloadFailed"},{path:"editors.image.closePicker"},{path:"editors.image.cancel"},{path:"editors.image.done"},{path:"editors.image.pickerTitle",placeholders:[0]},{path:"editors.image.pickerError",placeholders:[0]},{path:"editors.boxDimension.sides.top"},{path:"editors.boxDimension.sides.right"},{path:"editors.boxDimension.sides.bottom"},{path:"editors.boxDimension.sides.left"},{path:"editors.boxDimension.corners.topLeft"},{path:"editors.boxDimension.corners.topRight"},{path:"editors.boxDimension.corners.bottomRight"},{path:"editors.boxDimension.corners.bottomLeft"},{path:"editors.boxDimension.makeEqual"},{path:"editors.boxDimension.ariaUnit",placeholders:[0]},{path:"editors.boxDimension.ariaSide",placeholders:[0,1]},{path:"editors.dimension.ariaValue",placeholders:[0]},{path:"editors.dimension.ariaUnit",placeholders:[0]},{path:"editors.color.placeholder"},{path:"editors.color.ariaValue",placeholders:[0]},{path:"editors.color.ariaOpenPicker",placeholders:[0,1]},{path:"editors.color.ariaPicker",placeholders:[0]},{path:"editors.color.ariaSaturation",placeholders:[0,1]},{path:"editors.color.ariaEyedropper"},{path:"editors.color.ariaHue"},{path:"editors.color.ariaAlphaSlider"},{path:"editors.color.ariaHex"},{path:"editors.color.ariaChannel",placeholders:[0,1,2,3]},{path:"editors.color.ariaAlphaInput"},{path:"editors.color.ariaFormatCycle",placeholders:[0]},{path:"editors.color.titleFormatCycle"},{path:"editors.color.gradientValue"},{path:"editors.color.imageValue"},{path:"editors.fontWeight.options.thin"},{path:"editors.fontWeight.options.extraLight"},{path:"editors.fontWeight.options.light"},{path:"editors.fontWeight.options.regular"},{path:"editors.fontWeight.options.medium"},{path:"editors.fontWeight.options.semiBold"},{path:"editors.fontWeight.options.bold"},{path:"editors.fontWeight.options.extraBold"},{path:"editors.fontWeight.options.black"},{path:"editors.fontStyle.options.normal"},{path:"editors.fontStyle.options.italic"},{path:"editors.borderStyle.options.none"},{path:"editors.borderStyle.options.solid"},{path:"editors.borderStyle.options.dashed"},{path:"editors.borderStyle.options.dotted"},{path:"editors.overflow.options.visible"},{path:"editors.overflow.options.hidden"},{path:"editors.overflow.options.scroll"},{path:"editors.overflow.options.auto"},{path:"editors.textAlignment.options.left"},{path:"editors.textAlignment.options.center"},{path:"editors.textAlignment.options.right"},{path:"editors.textAlignment.options.justify"},{path:"editors.textDecoration.options.none"},{path:"editors.textDecoration.options.underline"},{path:"editors.textDecoration.options.lineThrough"},{path:"editors.textTransform.options.none"},{path:"editors.textTransform.options.uppercase"},{path:"editors.textTransform.options.lowercase"},{path:"editors.textTransform.options.capitalize"},{path:"editors.picklist.ariaReset",placeholders:[0]},{path:"history.changeLimitTitle"},{path:"history.changeLimitBody"}];function dI(e,t){return t.split(".").reduce((o,a)=>{if(o&&typeof o=="object")return o[a]},e)}function cI(e){let t=new Set;for(let o of e.matchAll(/\{(\d+)\}/g))t.add(Number(o[1]));return Array.from(t).sort((o,a)=>o-a)}function Uc(e){let t=[];if(!e||typeof e!="object")return["labels is not an object"];for(let o of ug){let{path:a,placeholders:r}=o,l=dI(e,a);if(typeof l!="string"){t.push(`missing or non-string label: ${a}`);continue}if(r){let n=cI(l),i=[...r].sort((s,d)=>s-d);(n.length!==i.length||n.some((s,d)=>s!==i[d]))&&t.push(`placeholder mismatch at ${a}: expected {${i.join(",")}}, got {${n.join(",")}}`)}}return t}var s2=[{value:"px",label:"px"},{value:"em",label:"em"},{value:"rem",label:"rem"},{value:"%",label:"%"},{value:"pt",label:"pt"},{value:"vw",label:"vw"},{value:"vh",label:"vh"},{value:"vmin",label:"vmin"},{value:"vmax",label:"vmax"},{value:"ch",label:"ch"},{value:"ex",label:"ex"},{value:"cm",label:"cm"},{value:"mm",label:"mm"},{value:"in",label:"in"},{value:"pc",label:"pc"}],po={px:{min:0,max:1e4,step:1,decimals:1},em:{min:0,max:100,step:.1,decimals:3},rem:{min:0,max:100,step:.1,decimals:3},"%":{min:0,max:1e3,step:1,decimals:2},pt:{min:0,max:1e4,step:1,decimals:1},vw:{min:0,max:100,step:.1,decimals:1},vh:{min:0,max:100,step:.1,decimals:1},vmin:{min:0,max:100,step:.1,decimals:1},vmax:{min:0,max:100,step:.1,decimals:1},ch:{min:0,max:100,step:.1,decimals:1},ex:{min:0,max:100,step:.1,decimals:1},cm:{min:0,max:100,step:.1,decimals:2},mm:{min:0,max:1e3,step:1,decimals:1},in:{min:0,max:50,step:.01,decimals:2},pc:{min:0,max:500,step:1,decimals:0}},fI=po.px??{min:0,max:1e4,step:1,decimals:0};function Di(e){let t=e.map(o=>o.value).join("|");return new RegExp(`^(-?\\d*\\.?\\d+)\\s*(${t})$`)}var pI=Di(s2);function h1(e,t="px",o=pI){if(e==null||e==="")return{numericValue:"",unit:t};let a=String(e).trim();if(a==="")return{numericValue:"",unit:t};let r=a.match(o);if(r&&r[1]!=null&&r[2]!=null)return{numericValue:parseFloat(r[1]),unit:r[2]};let l=parseFloat(a);return isNaN(l)?{numericValue:"",unit:t}:{numericValue:l,unit:t}}function Fc(e,t=po){return t[e]||fI}function mo(e,t,o=po){let a=Fc(t,o);return Math.min(a.max,Math.max(a.min,e))}function go(e,t,o=po){if(e===""||e==null||isNaN(e))return"";let a=Fc(t,o);return Number(Number(e).toFixed(a.decimals))}function d2(e,t){return e===""||e==null||isNaN(e)?"":`${e}${t}`}function c2(e,t,o,a,r=po){let l=parseFloat(e)||0,n=Fc(a,r),i=o?10:1,u=(t==="ArrowUp"?1:-1)*n.step*i,s=mo(l+u,a,r);return String(go(s,a,r))}function qc({top:e,right:t,bottom:o,left:a}){return`${e||"0px"} ${t||"0px"} ${o||"0px"} ${a||"0px"}`}function on(e){let t={top:"",right:"",bottom:"",left:""};if(!e||typeof e!="string")return t;let o=e.trim().split(/\s+/),[a="",r="",l="",n=""]=o;return o.length===0||o.length===1&&a===""?t:o.length===1?{top:a,right:a,bottom:a,left:a}:o.length===2?{top:a,right:r,bottom:a,left:r}:o.length===3?{top:a,right:r,bottom:l,left:r}:{top:a,right:r,bottom:l,left:n}}function J1(...e){return s2.filter(t=>e.includes(t.value))}var Vo={width:{units:J1("px","em","rem","vw","ch","%"),icon:dm},minWidth:{units:J1("px","em","rem","vw","ch","%")},maxWidth:{units:J1("px","em","rem","vw","ch","%")},height:{units:J1("px","em","rem","vh","%"),icon:Kp},minHeight:{units:J1("px","em","rem","vh","%")},maxHeight:{units:J1("px","em","rem","vh","%")},fontSize:{units:J1("px","em","rem","%","pt"),constraints:{...po,px:{min:0,max:1e3,step:1,decimals:0},"%":{min:0,max:1e3,step:1,decimals:0}},icon:Gp},lineHeight:{units:[{value:"",label:"\xD7"},{value:"px",label:"px"},{value:"em",label:"em"},{value:"rem",label:"rem"},{value:"%",label:"%"}],defaultUnit:"",constraints:{"":{min:0,max:10,step:.1,decimals:2},px:{min:0,max:1e3,step:1,decimals:2},em:{min:0,max:100,step:.1,decimals:3},rem:{min:0,max:100,step:.1,decimals:3},"%":{min:0,max:1e3,step:1,decimals:2}},icon:em},letterSpacing:{units:J1("px","em","rem"),constraints:{...po,px:{min:-100,max:1e3,step:.5,decimals:1},em:{min:-10,max:100,step:.01,decimals:3},rem:{min:-10,max:100,step:.01,decimals:3}},icon:Jp}},Vi={padding:{units:J1("px","em","rem","%")},margin:{units:J1("px","em","rem","%")},borderRadius:{units:J1("px","em","rem","%"),sideLabelKind:"corners"},borderWidth:{units:J1("px","em","rem")}};var $t=V(ue(),1),mI=[{value:"px",label:"px"},{value:"em",label:"em"},{value:"rem",label:"rem"},{value:"%",label:"%"}],an=["top","right","bottom","left"],gI={sides:{top:"Top",right:"Right",bottom:"Bottom",left:"Left"},corners:{topLeft:"Top Left",topRight:"Top Right",bottomRight:"Bottom Right",bottomLeft:"Bottom Left"},makeEqual:"Make all values equal",ariaUnit:"{0} unit",ariaSide:"{0} {1}"};function hI(e,t){return t==="corners"?[e.corners.topLeft,e.corners.topRight,e.corners.bottomRight,e.corners.bottomLeft]:[e.sides.top,e.sides.right,e.sides.bottom,e.sides.left]}function Ai(e){return typeof e=="string"&&e.trim().toLowerCase()==="auto"}function $c(e,t,o){let a={top:"",right:"",bottom:"",left:""};for(let r of an){let l=e[r];if(l==null||l==="")a[r]="";else if(Ai(l))a[r]="auto";else{let n=h1(String(l),t,o);a[r]=n.numericValue!==""?String(n.numericValue):""}}return a}function jc(e){let t=e.top||"";return t===(e.right||"")&&t===(e.bottom||"")&&t===(e.left||"")}function sg(e,t,o){for(let a of an){let r=e[a];if(r!=null&&r!==""&&r!=="0"){let l=h1(String(r),"px",t);if(l.unit&&o.has(l.unit))return l.unit}}return"px"}function CI(e,t,o){if(Ai(e))return"auto";let a=parseFloat(e);if(e===""||isNaN(a))return"";let r=mo(a,t,o);return`${go(r,t,o)}${t}`}function dg(e){if(!e)return"";let t=on(e);return!t.top&&!t.right&&!t.bottom&&!t.left?"":qc(t)}function Bi({label:e,value:t="",onChange:o,id:a="",units:r=mI,constraints:l=po,allowAuto:n=!1,sideLabelKind:i="sides",sideIcons:u,placeholder:s="",aria:d}){let g=D1(gI,d),f=hI(g,i),p=Dt.default.useRef(o);p.current=o;let v=Dt.default.useMemo(()=>Di(r),[r]),b=Dt.default.useMemo(()=>new Set(r.map(M=>M.value)),[r]),x=Dt.default.useMemo(()=>{let M={top:"",right:"",bottom:"",left:""};if(!s)return M;let I=on(s),R={...M};for(let L of an){let T=I[L];if(!T)continue;let Z=h1(T,"px",v);Z.numericValue!==""&&(R[L]=String(Z.numericValue))}return R},[s,v]),m=Dt.default.useMemo(()=>on(t),[]),[c,h]=Dt.default.useState(()=>sg(m,v,b)),[C,w]=Dt.default.useState(()=>$c(m,c,v)),[S,H]=Dt.default.useState(()=>jc(C)),y=Dt.default.useRef(dg(t));Dt.default.useEffect(()=>{if(t===y.current)return;let M=dg(t);if(M===y.current)return;y.current=M;let I=on(t),R=sg(I,v,b);h(R);let L=$c(I,R,v);w(L),H(jc(L))},[t,v,b]);let k=Dt.default.useCallback((M,I)=>{let R={top:"",right:"",bottom:"",left:""},L=!0;for(let Z of an)R[Z]=CI(M[Z],I,l),R[Z]!==""&&(L=!1);let T=L?"":qc(R);T!==y.current&&(y.current=T,typeof p.current=="function"&&p.current(T))},[l]),O=Dt.default.useCallback((M,I)=>{w(S?{top:I,right:I,bottom:I,left:I}:L=>({...L,[M]:I}));let R=h1(I,c,v);R.numericValue!==""&&R.unit&&b.has(R.unit)&&R.unit!==c&&h(R.unit)},[S,c,v,b]),F=Dt.default.useCallback((M,I)=>{let R=I.clipboardData.getData("text"),L=h1(R,c,v);if(L.numericValue!==""&&L.unit&&b.has(L.unit)){I.preventDefault();let T=mo(L.numericValue,L.unit,l),Z=String(go(T,L.unit,l)),z=S?{top:Z,right:Z,bottom:Z,left:Z}:{...C,[M]:Z};w(z),L.unit!==c&&h(L.unit),k(z,L.unit)}},[S,C,c,v,b,l,k]),ae=Dt.default.useCallback(M=>{let I=C[M];if(I===""){let z=S?{top:"",right:"",bottom:"",left:""}:{...C,[M]:""};w(z),k(z,c);return}if(n&&Ai(I)){let z="auto",W=S?{top:z,right:z,bottom:z,left:z}:{...C,[M]:z};w(W),k(W,c);return}let R=parseFloat(I);if(isNaN(R)){let z=on(y.current);w($c(z,c,v));return}let L=mo(R,c,l),T=String(go(L,c,l)),Z=S?{top:T,right:T,bottom:T,left:T}:{...C,[M]:T};w(Z),k(Z,c)},[C,S,c,v,l,k,n]),K=Dt.default.useCallback((M,I)=>{if(I.key==="Enter"){I.currentTarget.blur();return}if(I.key==="ArrowUp"||I.key==="ArrowDown"){if(Ai(C[M]))return;I.preventDefault();let R=c2(C[M],I.key,I.shiftKey,c,l);if(R===null)return;let L=S?{top:R,right:R,bottom:R,left:R}:{...C,[M]:R};w(L),k(L,c)}},[C,S,c,l,k]),B=Dt.default.useCallback(()=>{if(!S&&!jc(C)){let M=C.top,I={top:M,right:M,bottom:M,left:M};w(I),k(I,c)}H(M=>!M)},[S,C,c,k]),Q=Dt.default.useCallback(M=>{let I=M.target.value;if(!b.has(I))return;h(I);let R={top:"",right:"",bottom:"",left:""};for(let L of an){let T=C[L];if(Ai(T))R[L]="auto";else if(T!==""){let Z=parseFloat(T);if(isNaN(Z))R[L]=T;else{let z=mo(Z,I,l);R[L]=String(go(z,I,l))}}else R[L]=""}w(R),k(R,I)},[C,b,l,k]);return(0,$t.jsxs)(W1,{label:e,id:a,className:"boxDimensionEditor-fieldset",children:[(0,$t.jsx)("div",{className:"boxDimensionEditor-header",children:(0,$t.jsx)("div",{className:"boxDimensionEditor-controls",children:(0,$t.jsx)("select",{className:"boxDimensionEditor-unit",value:c,onChange:Q,"aria-label":vt(g.ariaUnit,[e]),children:r.map(M=>(0,$t.jsx)("option",{value:M.value,children:M.label},M.value))})})}),(0,$t.jsx)("div",{className:"boxDimensionEditor-grid",children:an.map((M,I)=>{let R=u&&u[I];return(0,$t.jsxs)("div",{className:"boxDimensionEditor-cell",children:[(0,$t.jsx)("label",{htmlFor:`${a}-${M}`,className:"boxDimensionEditor-label",children:f[I]}),(0,$t.jsxs)("div",{className:"boxDimensionEditor-input-row",children:[R&&(0,$t.jsx)("span",{className:"boxDimensionEditor-input-icon","aria-hidden":"true",children:(0,$t.jsx)(R,{size:12,width:12,height:12})}),(0,$t.jsx)("input",{id:`${a}-${M}`,type:"text",className:R?"boxDimensionEditor-input boxDimensionEditor-input--with-icon":"boxDimensionEditor-input",value:C[M],placeholder:x[M],onChange:L=>O(M,L.target.value),onPaste:L=>F(M,L),onBlur:()=>ae(M),onKeyDown:L=>K(M,L),"aria-label":vt(g.ariaSide,[e,f[I]??""]),autoComplete:"off",spellCheck:"false"})]})]},M)})}),(0,$t.jsxs)("label",{className:"boxDimensionEditor-equal",children:[(0,$t.jsx)("input",{type:"checkbox",className:"boxDimensionEditor-equal-checkbox",checked:S,onChange:B}),(0,$t.jsx)("span",{className:"boxDimensionEditor-equal-label",children:g.makeEqual})]})]})}var p2=V(he());var f2=(...e)=>e.filter((t,o,a)=>!!t&&t.trim()!==""&&a.indexOf(t)===o).join(" ").trim();var cg=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();var fg=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,o,a)=>a?a.toUpperCase():o.toLowerCase());var Gc=e=>{let t=fg(e);return t.charAt(0).toUpperCase()+t.slice(1)};var Ni=V(he());var pg={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var mg=e=>{for(let t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};var gg=(0,Ni.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:o=2,absoluteStrokeWidth:a,className:r="",children:l,iconNode:n,...i},u)=>(0,Ni.createElement)("svg",{ref:u,...pg,width:t,height:t,stroke:e,strokeWidth:a?Number(o)*24/Number(t):o,className:f2("lucide",r),...!l&&!mg(i)&&{"aria-hidden":"true"},...i},[...n.map(([s,d])=>(0,Ni.createElement)(s,d)),...Array.isArray(l)?l:[l]]));var hg=(e,t)=>{let o=(0,p2.forwardRef)(({className:a,...r},l)=>(0,p2.createElement)(gg,{ref:l,iconNode:t,className:f2(`lucide-${cg(Gc(e))}`,`lucide-${e}`,a),...r}));return o.displayName=Gc(e),o};var vI=[["path",{d:"m12 9-8.414 8.414A2 2 0 0 0 3 18.828v1.344a2 2 0 0 1-.586 1.414A2 2 0 0 1 3.828 21h1.344a2 2 0 0 0 1.414-.586L15 12",key:"1y3wsu"}],["path",{d:"m18 9 .4.4a1 1 0 1 1-3 3l-3.8-3.8a1 1 0 1 1 3-3l.4.4 3.4-3.4a1 1 0 1 1 3 3z",key:"110lr1"}],["path",{d:"m2 22 .414-.414",key:"jhxm08"}]],Pi=hg("pipette",vI);var tt=V(he(),1);var xe=V(he(),1),Cg={exports:{}},Zi={};var vg;function xI(){if(vg)return Zi;vg=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function o(a,r,l){var n=null;if(l!==void 0&&(n=""+l),r.key!==void 0&&(n=""+r.key),"key"in r){l={};for(var i in r)i!=="key"&&(l[i]=r[i])}else l=r;return r=l.ref,{$$typeof:e,type:a,key:n,ref:r!==void 0?r:null,props:l}}return Zi.Fragment=t,Zi.jsx=o,Zi.jsxs=o,Zi}var xg;function bI(){return xg||(xg=1,Cg.exports=xI()),Cg.exports}var pt=bI();function Hg(e){var t,o,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(o=Hg(e[t]))&&(a&&(a+=" "),a+=o)}else for(o in e)e[o]&&(a&&(a+=" "),a+=o);return a}function LI(){for(var e,t,o=0,a="",r=arguments.length;o<r;o++)(e=arguments[o])&&(t=Hg(e))&&(a&&(a+=" "),a+=t);return a}var t5="-",wI=e=>{let t=II(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:r=>{let l=r.split(t5);return l[0]===""&&l.length!==1&&l.shift(),kg(l,t)||yI(r)},getConflictingClassGroupIds:(r,l)=>{let n=o[r]||[];return l&&a[r]?[...n,...a[r]]:n}}},kg=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],a=t.nextPart.get(o),r=a?kg(e.slice(1),a):void 0;if(r)return r;if(t.validators.length===0)return;let l=e.join(t5);return t.validators.find(({validator:n})=>n(l))?.classGroupId},bg=/^\[(.+)\]$/,yI=e=>{if(bg.test(e)){let t=bg.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},II=e=>{let{theme:t,classGroups:o}=e,a={nextPart:new Map,validators:[]};for(let r in o)Qc(o[r],a,r,t);return a},Qc=(e,t,o,a)=>{e.forEach(r=>{if(typeof r=="string"){let l=r===""?t:Lg(t,r);l.classGroupId=o;return}if(typeof r=="function"){if(SI(r)){Qc(r(a),t,o,a);return}t.validators.push({validator:r,classGroupId:o});return}Object.entries(r).forEach(([l,n])=>{Qc(n,Lg(t,l),o,a)})})},Lg=(e,t)=>{let o=e;return t.split(t5).forEach(a=>{o.nextPart.has(a)||o.nextPart.set(a,{nextPart:new Map,validators:[]}),o=o.nextPart.get(a)}),o},SI=e=>e.isThemeGetter,MI=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,a=new Map,r=(l,n)=>{o.set(l,n),t++,t>e&&(t=0,a=o,o=new Map)};return{get(l){let n=o.get(l);if(n!==void 0)return n;if((n=a.get(l))!==void 0)return r(l,n),n},set(l,n){o.has(l)?o.set(l,n):r(l,n)}}},Yc="!",Wc=":",RI=Wc.length,HI=e=>{let{prefix:t,experimentalParseClassName:o}=e,a=r=>{let l=[],n=0,i=0,u=0,s;for(let v=0;v<r.length;v++){let b=r[v];if(n===0&&i===0){if(b===Wc){l.push(r.slice(u,v)),u=v+RI;continue}if(b==="/"){s=v;continue}}b==="["?n++:b==="]"?n--:b==="("?i++:b===")"&&i--}let d=l.length===0?r:r.substring(u),g=kI(d),f=g!==d,p=s&&s>u?s-u:void 0;return{modifiers:l,hasImportantModifier:f,baseClassName:g,maybePostfixModifierPosition:p}};if(t){let r=t+Wc,l=a;a=n=>n.startsWith(r)?l(n.substring(r.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:n,maybePostfixModifierPosition:void 0}}if(o){let r=a;a=l=>o({className:l,parseClassName:r})}return a},kI=e=>e.endsWith(Yc)?e.substring(0,e.length-1):e.startsWith(Yc)?e.substring(1):e,TI=e=>{let t=Object.fromEntries(e.orderSensitiveModifiers.map(o=>[o,!0]));return o=>{if(o.length<=1)return o;let a=[],r=[];return o.forEach(l=>{l[0]==="["||t[l]?(a.push(...r.sort(),l),r=[]):r.push(l)}),a.push(...r.sort()),a}},EI=e=>({cache:MI(e.cacheSize),parseClassName:HI(e),sortModifiers:TI(e),...wI(e)}),_I=/\s+/,OI=(e,t)=>{let{parseClassName:o,getClassGroupId:a,getConflictingClassGroupIds:r,sortModifiers:l}=t,n=[],i=e.trim().split(_I),u="";for(let s=i.length-1;s>=0;s-=1){let d=i[s],{isExternal:g,modifiers:f,hasImportantModifier:p,baseClassName:v,maybePostfixModifierPosition:b}=o(d);if(g){u=d+(u.length>0?" "+u:u);continue}let x=!!b,m=a(x?v.substring(0,b):v);if(!m){if(!x){u=d+(u.length>0?" "+u:u);continue}if(m=a(v),!m){u=d+(u.length>0?" "+u:u);continue}x=!1}let c=l(f).join(":"),h=p?c+Yc:c,C=h+m;if(n.includes(C))continue;n.push(C);let w=r(m,x);for(let S=0;S<w.length;++S){let H=w[S];n.push(h+H)}u=d+(u.length>0?" "+u:u)}return u};function DI(){let e=0,t,o,a="";for(;e<arguments.length;)(t=arguments[e++])&&(o=Tg(t))&&(a&&(a+=" "),a+=o);return a}var Tg=e=>{if(typeof e=="string")return e;let t,o="";for(let a=0;a<e.length;a++)e[a]&&(t=Tg(e[a]))&&(o&&(o+=" "),o+=t);return o};function VI(e,...t){let o,a,r,l=n;function n(u){let s=t.reduce((d,g)=>g(d),e());return o=EI(s),a=o.cache.get,r=o.cache.set,l=i,i(u)}function i(u){let s=a(u);if(s)return s;let d=OI(u,o);return r(u,d),d}return function(){return l(DI.apply(null,arguments))}}var Ht=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},Eg=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,_g=/^\((?:(\w[\w-]*):)?(.+)\)$/i,AI=/^\d+\/\d+$/,BI=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,NI=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,PI=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ZI=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,zI=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,rn=e=>AI.test(e),Le=e=>!!e&&!Number.isNaN(Number(e)),Xa=e=>!!e&&Number.isInteger(Number(e)),Kc=e=>e.endsWith("%")&&Le(e.slice(0,-1)),sa=e=>BI.test(e),UI=()=>!0,FI=e=>NI.test(e)&&!PI.test(e),Og=()=>!1,qI=e=>ZI.test(e),$I=e=>zI.test(e),jI=e=>!J(e)&&!ee(e),GI=e=>ln(e,Ag,Og),J=e=>Eg.test(e),Fr=e=>ln(e,Bg,FI),Xc=e=>ln(e,WI,Le),wg=e=>ln(e,Dg,Og),KI=e=>ln(e,Vg,$I),m2=e=>ln(e,Ng,qI),ee=e=>_g.test(e),zi=e=>nn(e,Bg),XI=e=>nn(e,JI),yg=e=>nn(e,Dg),QI=e=>nn(e,Ag),YI=e=>nn(e,Vg),g2=e=>nn(e,Ng,!0),ln=(e,t,o)=>{let a=Eg.exec(e);return a?a[1]?t(a[1]):o(a[2]):!1},nn=(e,t,o=!1)=>{let a=_g.exec(e);return a?a[1]?t(a[1]):o:!1},Dg=e=>e==="position"||e==="percentage",Vg=e=>e==="image"||e==="url",Ag=e=>e==="length"||e==="size"||e==="bg-size",Bg=e=>e==="length",WI=e=>e==="number",JI=e=>e==="family-name",Ng=e=>e==="shadow",eS=()=>{let e=Ht("color"),t=Ht("font"),o=Ht("text"),a=Ht("font-weight"),r=Ht("tracking"),l=Ht("leading"),n=Ht("breakpoint"),i=Ht("container"),u=Ht("spacing"),s=Ht("radius"),d=Ht("shadow"),g=Ht("inset-shadow"),f=Ht("text-shadow"),p=Ht("drop-shadow"),v=Ht("blur"),b=Ht("perspective"),x=Ht("aspect"),m=Ht("ease"),c=Ht("animate"),h=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],w=()=>[...C(),ee,J],S=()=>["auto","hidden","clip","visible","scroll"],H=()=>["auto","contain","none"],y=()=>[ee,J,u],k=()=>[rn,"full","auto",...y()],O=()=>[Xa,"none","subgrid",ee,J],F=()=>["auto",{span:["full",Xa,ee,J]},Xa,ee,J],ae=()=>[Xa,"auto",ee,J],K=()=>["auto","min","max","fr",ee,J],B=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Q=()=>["start","end","center","stretch","center-safe","end-safe"],M=()=>["auto",...y()],I=()=>[rn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...y()],R=()=>[e,ee,J],L=()=>[...C(),yg,wg,{position:[ee,J]}],T=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Z=()=>["auto","cover","contain",QI,GI,{size:[ee,J]}],z=()=>[Kc,zi,Fr],W=()=>["","none","full",s,ee,J],U=()=>["",Le,zi,Fr],j=()=>["solid","dashed","dotted","double"],q=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],D=()=>[Le,Kc,yg,wg],ne=()=>["","none",v,ee,J],ce=()=>["none",Le,ee,J],ve=()=>["none",Le,ee,J],_=()=>[Le,ee,J],P=()=>[rn,"full",...y()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[sa],breakpoint:[sa],color:[UI],container:[sa],"drop-shadow":[sa],ease:["in","out","in-out"],font:[jI],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[sa],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[sa],shadow:[sa],spacing:["px",Le],text:[sa],"text-shadow":[sa],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",rn,J,ee,x]}],container:["container"],columns:[{columns:[Le,J,ee,i]}],"break-after":[{"break-after":h()}],"break-before":[{"break-before":h()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:w()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:H()}],"overscroll-x":[{"overscroll-x":H()}],"overscroll-y":[{"overscroll-y":H()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:k()}],"inset-x":[{"inset-x":k()}],"inset-y":[{"inset-y":k()}],start:[{start:k()}],end:[{end:k()}],top:[{top:k()}],right:[{right:k()}],bottom:[{bottom:k()}],left:[{left:k()}],visibility:["visible","invisible","collapse"],z:[{z:[Xa,"auto",ee,J]}],basis:[{basis:[rn,"full","auto",i,...y()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Le,rn,"auto","initial","none",J]}],grow:[{grow:["",Le,ee,J]}],shrink:[{shrink:["",Le,ee,J]}],order:[{order:[Xa,"first","last","none",ee,J]}],"grid-cols":[{"grid-cols":O()}],"col-start-end":[{col:F()}],"col-start":[{"col-start":ae()}],"col-end":[{"col-end":ae()}],"grid-rows":[{"grid-rows":O()}],"row-start-end":[{row:F()}],"row-start":[{"row-start":ae()}],"row-end":[{"row-end":ae()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":K()}],"auto-rows":[{"auto-rows":K()}],gap:[{gap:y()}],"gap-x":[{"gap-x":y()}],"gap-y":[{"gap-y":y()}],"justify-content":[{justify:[...B(),"normal"]}],"justify-items":[{"justify-items":[...Q(),"normal"]}],"justify-self":[{"justify-self":["auto",...Q()]}],"align-content":[{content:["normal",...B()]}],"align-items":[{items:[...Q(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Q(),{baseline:["","last"]}]}],"place-content":[{"place-content":B()}],"place-items":[{"place-items":[...Q(),"baseline"]}],"place-self":[{"place-self":["auto",...Q()]}],p:[{p:y()}],px:[{px:y()}],py:[{py:y()}],ps:[{ps:y()}],pe:[{pe:y()}],pt:[{pt:y()}],pr:[{pr:y()}],pb:[{pb:y()}],pl:[{pl:y()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":y()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":y()}],"space-y-reverse":["space-y-reverse"],size:[{size:I()}],w:[{w:[i,"screen",...I()]}],"min-w":[{"min-w":[i,"screen","none",...I()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[n]},...I()]}],h:[{h:["screen","lh",...I()]}],"min-h":[{"min-h":["screen","lh","none",...I()]}],"max-h":[{"max-h":["screen","lh",...I()]}],"font-size":[{text:["base",o,zi,Fr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,ee,Xc]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Kc,J]}],"font-family":[{font:[XI,J,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,ee,J]}],"line-clamp":[{"line-clamp":[Le,"none",ee,Xc]}],leading:[{leading:[l,...y()]}],"list-image":[{"list-image":["none",ee,J]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ee,J]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:R()}],"text-color":[{text:R()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...j(),"wavy"]}],"text-decoration-thickness":[{decoration:[Le,"from-font","auto",ee,Fr]}],"text-decoration-color":[{decoration:R()}],"underline-offset":[{"underline-offset":[Le,"auto",ee,J]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:y()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ee,J]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ee,J]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:L()}],"bg-repeat":[{bg:T()}],"bg-size":[{bg:Z()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Xa,ee,J],radial:["",ee,J],conic:[Xa,ee,J]},YI,KI]}],"bg-color":[{bg:R()}],"gradient-from-pos":[{from:z()}],"gradient-via-pos":[{via:z()}],"gradient-to-pos":[{to:z()}],"gradient-from":[{from:R()}],"gradient-via":[{via:R()}],"gradient-to":[{to:R()}],rounded:[{rounded:W()}],"rounded-s":[{"rounded-s":W()}],"rounded-e":[{"rounded-e":W()}],"rounded-t":[{"rounded-t":W()}],"rounded-r":[{"rounded-r":W()}],"rounded-b":[{"rounded-b":W()}],"rounded-l":[{"rounded-l":W()}],"rounded-ss":[{"rounded-ss":W()}],"rounded-se":[{"rounded-se":W()}],"rounded-ee":[{"rounded-ee":W()}],"rounded-es":[{"rounded-es":W()}],"rounded-tl":[{"rounded-tl":W()}],"rounded-tr":[{"rounded-tr":W()}],"rounded-br":[{"rounded-br":W()}],"rounded-bl":[{"rounded-bl":W()}],"border-w":[{border:U()}],"border-w-x":[{"border-x":U()}],"border-w-y":[{"border-y":U()}],"border-w-s":[{"border-s":U()}],"border-w-e":[{"border-e":U()}],"border-w-t":[{"border-t":U()}],"border-w-r":[{"border-r":U()}],"border-w-b":[{"border-b":U()}],"border-w-l":[{"border-l":U()}],"divide-x":[{"divide-x":U()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":U()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...j(),"hidden","none"]}],"divide-style":[{divide:[...j(),"hidden","none"]}],"border-color":[{border:R()}],"border-color-x":[{"border-x":R()}],"border-color-y":[{"border-y":R()}],"border-color-s":[{"border-s":R()}],"border-color-e":[{"border-e":R()}],"border-color-t":[{"border-t":R()}],"border-color-r":[{"border-r":R()}],"border-color-b":[{"border-b":R()}],"border-color-l":[{"border-l":R()}],"divide-color":[{divide:R()}],"outline-style":[{outline:[...j(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Le,ee,J]}],"outline-w":[{outline:["",Le,zi,Fr]}],"outline-color":[{outline:R()}],shadow:[{shadow:["","none",d,g2,m2]}],"shadow-color":[{shadow:R()}],"inset-shadow":[{"inset-shadow":["none",g,g2,m2]}],"inset-shadow-color":[{"inset-shadow":R()}],"ring-w":[{ring:U()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:R()}],"ring-offset-w":[{"ring-offset":[Le,Fr]}],"ring-offset-color":[{"ring-offset":R()}],"inset-ring-w":[{"inset-ring":U()}],"inset-ring-color":[{"inset-ring":R()}],"text-shadow":[{"text-shadow":["none",f,g2,m2]}],"text-shadow-color":[{"text-shadow":R()}],opacity:[{opacity:[Le,ee,J]}],"mix-blend":[{"mix-blend":[...q(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":q()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Le]}],"mask-image-linear-from-pos":[{"mask-linear-from":D()}],"mask-image-linear-to-pos":[{"mask-linear-to":D()}],"mask-image-linear-from-color":[{"mask-linear-from":R()}],"mask-image-linear-to-color":[{"mask-linear-to":R()}],"mask-image-t-from-pos":[{"mask-t-from":D()}],"mask-image-t-to-pos":[{"mask-t-to":D()}],"mask-image-t-from-color":[{"mask-t-from":R()}],"mask-image-t-to-color":[{"mask-t-to":R()}],"mask-image-r-from-pos":[{"mask-r-from":D()}],"mask-image-r-to-pos":[{"mask-r-to":D()}],"mask-image-r-from-color":[{"mask-r-from":R()}],"mask-image-r-to-color":[{"mask-r-to":R()}],"mask-image-b-from-pos":[{"mask-b-from":D()}],"mask-image-b-to-pos":[{"mask-b-to":D()}],"mask-image-b-from-color":[{"mask-b-from":R()}],"mask-image-b-to-color":[{"mask-b-to":R()}],"mask-image-l-from-pos":[{"mask-l-from":D()}],"mask-image-l-to-pos":[{"mask-l-to":D()}],"mask-image-l-from-color":[{"mask-l-from":R()}],"mask-image-l-to-color":[{"mask-l-to":R()}],"mask-image-x-from-pos":[{"mask-x-from":D()}],"mask-image-x-to-pos":[{"mask-x-to":D()}],"mask-image-x-from-color":[{"mask-x-from":R()}],"mask-image-x-to-color":[{"mask-x-to":R()}],"mask-image-y-from-pos":[{"mask-y-from":D()}],"mask-image-y-to-pos":[{"mask-y-to":D()}],"mask-image-y-from-color":[{"mask-y-from":R()}],"mask-image-y-to-color":[{"mask-y-to":R()}],"mask-image-radial":[{"mask-radial":[ee,J]}],"mask-image-radial-from-pos":[{"mask-radial-from":D()}],"mask-image-radial-to-pos":[{"mask-radial-to":D()}],"mask-image-radial-from-color":[{"mask-radial-from":R()}],"mask-image-radial-to-color":[{"mask-radial-to":R()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":C()}],"mask-image-conic-pos":[{"mask-conic":[Le]}],"mask-image-conic-from-pos":[{"mask-conic-from":D()}],"mask-image-conic-to-pos":[{"mask-conic-to":D()}],"mask-image-conic-from-color":[{"mask-conic-from":R()}],"mask-image-conic-to-color":[{"mask-conic-to":R()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:L()}],"mask-repeat":[{mask:T()}],"mask-size":[{mask:Z()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ee,J]}],filter:[{filter:["","none",ee,J]}],blur:[{blur:ne()}],brightness:[{brightness:[Le,ee,J]}],contrast:[{contrast:[Le,ee,J]}],"drop-shadow":[{"drop-shadow":["","none",p,g2,m2]}],"drop-shadow-color":[{"drop-shadow":R()}],grayscale:[{grayscale:["",Le,ee,J]}],"hue-rotate":[{"hue-rotate":[Le,ee,J]}],invert:[{invert:["",Le,ee,J]}],saturate:[{saturate:[Le,ee,J]}],sepia:[{sepia:["",Le,ee,J]}],"backdrop-filter":[{"backdrop-filter":["","none",ee,J]}],"backdrop-blur":[{"backdrop-blur":ne()}],"backdrop-brightness":[{"backdrop-brightness":[Le,ee,J]}],"backdrop-contrast":[{"backdrop-contrast":[Le,ee,J]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Le,ee,J]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Le,ee,J]}],"backdrop-invert":[{"backdrop-invert":["",Le,ee,J]}],"backdrop-opacity":[{"backdrop-opacity":[Le,ee,J]}],"backdrop-saturate":[{"backdrop-saturate":[Le,ee,J]}],"backdrop-sepia":[{"backdrop-sepia":["",Le,ee,J]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":y()}],"border-spacing-x":[{"border-spacing-x":y()}],"border-spacing-y":[{"border-spacing-y":y()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ee,J]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Le,"initial",ee,J]}],ease:[{ease:["linear","initial",m,ee,J]}],delay:[{delay:[Le,ee,J]}],animate:[{animate:["none",c,ee,J]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,ee,J]}],"perspective-origin":[{"perspective-origin":w()}],rotate:[{rotate:ce()}],"rotate-x":[{"rotate-x":ce()}],"rotate-y":[{"rotate-y":ce()}],"rotate-z":[{"rotate-z":ce()}],scale:[{scale:ve()}],"scale-x":[{"scale-x":ve()}],"scale-y":[{"scale-y":ve()}],"scale-z":[{"scale-z":ve()}],"scale-3d":["scale-3d"],skew:[{skew:_()}],"skew-x":[{"skew-x":_()}],"skew-y":[{"skew-y":_()}],transform:[{transform:[ee,J,"","none","gpu","cpu"]}],"transform-origin":[{origin:w()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:P()}],"translate-x":[{"translate-x":P()}],"translate-y":[{"translate-y":P()}],"translate-z":[{"translate-z":P()}],"translate-none":["translate-none"],accent:[{accent:R()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:R()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ee,J]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":y()}],"scroll-mx":[{"scroll-mx":y()}],"scroll-my":[{"scroll-my":y()}],"scroll-ms":[{"scroll-ms":y()}],"scroll-me":[{"scroll-me":y()}],"scroll-mt":[{"scroll-mt":y()}],"scroll-mr":[{"scroll-mr":y()}],"scroll-mb":[{"scroll-mb":y()}],"scroll-ml":[{"scroll-ml":y()}],"scroll-p":[{"scroll-p":y()}],"scroll-px":[{"scroll-px":y()}],"scroll-py":[{"scroll-py":y()}],"scroll-ps":[{"scroll-ps":y()}],"scroll-pe":[{"scroll-pe":y()}],"scroll-pt":[{"scroll-pt":y()}],"scroll-pr":[{"scroll-pr":y()}],"scroll-pb":[{"scroll-pb":y()}],"scroll-pl":[{"scroll-pl":y()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ee,J]}],fill:[{fill:["none",...R()]}],"stroke-w":[{stroke:[Le,zi,Fr,Xc]}],stroke:[{stroke:["none",...R()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},tS=VI(eS),oS=(e,t,o)=>Math.min(Math.max(e,t),o),h2=e=>Math.round(oS(e,0,255)),Pg=e=>{let t=e.replace("#",""),o=parseInt(t,16);return{r:o>>16&255,g:o>>8&255,b:o&255}},aS=({r:e,g:t,b:o})=>{let a=r=>h2(r).toString(16).padStart(2,"0");return`#${a(e)}${a(t)}${a(o)}`},Jc=({h:e,s:t,v:o})=>{e=e/360,t=t/100,o=o/100;let a=Math.floor(e*6),r=e*6-a,l=o*(1-t),n=o*(1-r*t),i=o*(1-(1-r)*t),u,s,d;switch(a%6){case 0:u=o,s=i,d=l;break;case 1:u=n,s=o,d=l;break;case 2:u=l,s=o,d=i;break;case 3:u=l,s=n,d=o;break;case 4:u=i,s=l,d=o;break;case 5:u=o,s=l,d=n;break;default:u=s=d=0}return{r:h2(u*255),g:h2(s*255),b:h2(d*255)}},e5=({r:e,g:t,b:o})=>{e/=255,t/=255,o/=255;let a=Math.max(e,t,o),r=Math.min(e,t,o),l=a-r,n=0,i=a===0?0:l/a,u=a;if(l!==0)switch(a){case e:n=((t-o)/l+(t<o?6:0))/6;break;case t:n=((o-e)/l+2)/6;break;case o:n=((e-t)/l+4)/6;break}return{h:Math.round(n*360),s:Math.round(i*100),v:Math.round(u*100)}},rS=e=>aS(Jc(e)),lS=e=>e5(Pg(e));var Ig=({h:e,s:t,v:o})=>{let a=o*(2-t/100)/2,r=a!==0&&a!==100?(o-a)/Math.min(a,100-a)*100:0;return{h:e,s:Math.round(r),l:Math.round(a)}},Sg=({h:e,s:t,l:o})=>{let a=o+t*Math.min(o,100-o)/100,r=a===0?0:2*(1-o/a)*100;return{h:e,s:Math.round(r),v:Math.round(a)}},nS=e=>{let{r:t,g:o,b:a}=Pg(e);return(.299*t+.587*o+.114*a)/255>.5?"#000000":"#ffffff"};var iS=(e,t="hex")=>{switch(t){case"hex":return e.getHex();case"rgb":let o=e.getRgb();return`rgb(${o.r}, ${o.g}, ${o.b})`;case"rgba":let a=e.getRgba();return`rgba(${a.r}, ${a.g}, ${a.b}, ${a.a})`;case"hsl":let r=e.getHsl();return`hsl(${r.h}, ${r.s}%, ${r.l}%)`;case"hsla":let l=e.getHsla();return`hsla(${l.h}, ${l.s}%, ${l.l}%, ${l.a})`;default:C2()}};function uS(e){switch(e.type){case"hex":return{...lS(e.value),a:1};case"rgb":return{...e5(e),a:1};case"rgba":return{...e5(e),a:e.a};case"hsl":return{...Sg(e),a:1};case"hsla":return{...Sg(e),a:1};case"hsv":return{...e,a:1};case"hsva":return{...e};default:C2()}}function Qa(e,t){let o=uS(e);switch(t){case"hex":return rS(o);case"rgb":return Jc(o);case"rgba":return{...Jc(o),a:o.a};case"hsl":return Ig(o);case"hsla":return{...Ig(o),a:o.a};case"hsv":return{h:o.h,s:o.s,v:o.v};case"hsva":return o;default:C2()}}var qr=(...e)=>tS(LI(e)),da=(e,t,o)=>Math.min(Math.max(e,t),o),Ya=e=>Math.round(e);function C2(e){throw new Error("You should never get here.")}var Wa=class e{constructor(t){this.colorInput=t,typeof t=="string"?this.color={type:"hex",value:t}:"type"in t?this.color=t:"r"in t?"a"in t?this.color={type:"rgba",...t}:this.color={type:"rgb",...t}:"v"in t?"a"in t?this.color={type:"hsva",...t}:this.color={type:"hsv",...t}:"a"in t?this.color={type:"hsla",...t}:this.color={type:"hsl",...t}}getRgb(){return Qa(this.color,"rgb")}getHsv(){return Qa(this.color,"hsv")}getHsla(){return Qa(this.color,"hsla")}getHsva(){return Qa(this.color,"hsva")}getHex(){return Qa(this.color,"hex")}getHsl(){return Qa(this.color,"hsl")}getRgba(){return Qa(this.color,"rgba")}format(t="hex"){return iS(this,t)}getContrastingColor(){return new e({type:"hex",value:nS(this.getHex())})}},Mg=(e,t)=>{let o=e.getBoundingClientRect(),a,r;if("touches"in t){let s=t.touches[0]||t.changedTouches[0];a=s.clientX,r=s.clientY}else a=t.clientX,r=t.clientY;let l=a-o.left,n=r-o.top,i=da(l/o.width,0,1),u=da(n/o.height,0,1);return{left:i,top:u}},o5=({onMove:e,onMoveEnd:t,onKey:o,children:a,className:r,...l})=>{let n=(0,xe.useRef)(null),i=(0,xe.useRef)(!1),u=(0,xe.useCallback)(f=>{!i.current||!n.current||(f.preventDefault(),e(Mg(n.current,f)))},[e]),s=(0,xe.useCallback)(()=>{i.current=!1,t(),document.removeEventListener("mousemove",u),document.removeEventListener("mouseup",s),document.removeEventListener("touchmove",u),document.removeEventListener("touchend",s)},[u,t]),d=(0,xe.useCallback)(f=>{let p=n.current;p&&(f.preventDefault(),i.current=!0,e(Mg(p,f.nativeEvent)),document.addEventListener("mousemove",u),document.addEventListener("mouseup",s),document.addEventListener("touchmove",u,{passive:!1}),document.addEventListener("touchend",s))},[e,u,s]),g=(0,xe.useCallback)(f=>{if(!o)return;let p=f.which||f.keyCode;p<37||p>40||(f.preventDefault(),o({left:p===39?.05:p===37?-.05:0,top:p===40?.05:p===38?-.05:0}))},[o]);return(0,xe.useEffect)(()=>()=>{document.removeEventListener("mousemove",u),document.removeEventListener("mouseup",s),document.removeEventListener("touchmove",u),document.removeEventListener("touchend",s)},[u,s]),pt.jsx("div",{ref:n,className:qr("rounded-inherit absolute inset-0 touch-none outline-none","focus:[&_.react-colorful-pointer]:scale-110",r),onTouchStart:d,onMouseDown:d,onKeyDown:g,tabIndex:0,role:"slider",...l,children:a})},a5=({className:e,top:t=.5,left:o,color:a})=>pt.jsx("div",{className:qr("absolute z-[1] h-6 w-6 -translate-x-1/2 -translate-y-1/2 cursor-grab rounded-full border-2 border-white bg-white active:cursor-grabbing","react-colorful-pointer shadow-[0_2px_8px_rgba(0,0,0,0.15)] transition-transform",e),style:{top:`${t*100}%`,left:`${o*100}%`}}),sS=({hsva:e,onChange:t,className:o,onFinishedUpdates:a})=>{let r=(0,xe.useCallback)(u=>{t({a:u.left},!1)},[t]),l=(0,xe.useCallback)(u=>{t({a:da(e.a+u.left,0,1)},!0)},[e.a,t]),n=(0,xe.useMemo)(()=>new Wa({type:"hsva",h:e.h,s:e.s,v:e.v,a:0}).format("hsla"),[e.h,e.s,e.v]),i=(0,xe.useMemo)(()=>new Wa({type:"hsva",h:e.h,s:e.s,v:e.v,a:1}).format("hsla"),[e.h,e.s,e.v]);return pt.jsx("div",{className:qr("relative h-full w-full",o),children:pt.jsxs(o5,{onMove:r,onMoveEnd:a,onKey:l,"aria-label":"Alpha","aria-valuetext":`${Ya(e.a*100)}%`,"aria-valuenow":Ya(e.a*100),"aria-valuemin":0,"aria-valuemax":100,className:"h-full w-full rounded-lg",children:[pt.jsx("div",{className:"absolute inset-0 rounded-lg bg-white",style:{backgroundImage:`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><rect x="8" width="8" height="8"/><rect y="8" width="8" height="8"/></svg>')`}}),pt.jsx("div",{className:"absolute inset-0 rounded-lg",style:{backgroundImage:`linear-gradient(90deg, ${n}, ${i})`}}),pt.jsx(a5,{className:"z-[1]",top:.5,left:e.a,color:""})]})})},dS=({hue:e,onChange:t,className:o,onFinishedUpdates:a})=>{let r=(0,xe.useCallback)(n=>{let i=Ya(da(360*n.left,0,360));t({h:i},!1)},[t]),l=(0,xe.useCallback)(n=>{t({h:da(e+n.left*360,0,360)},!0)},[e,t]);return pt.jsx("div",{className:qr("relative h-full w-full",o),children:pt.jsxs(o5,{onMove:r,onMoveEnd:a,onKey:l,"aria-label":"Hue","aria-valuenow":Ya(e),"aria-valuemax":360,"aria-valuemin":0,className:"h-full w-full rounded-lg",children:[pt.jsx("div",{className:"absolute inset-0 rounded-lg",style:{background:"linear-gradient(to right, #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%)"}}),pt.jsx(a5,{className:"z-[2]",top:.5,left:e/360,color:""})]})})},cS=({hsva:e,onChange:t,className:o,onFinishedUpdates:a})=>{let r=(0,xe.useCallback)(i=>{let u=Ya(da(i.left*100,0,100)),s=Ya(da(100-i.top*100,0,100));t({s:u,v:s},!1)},[t]),l=(0,xe.useCallback)(i=>{t({s:da(e.s+i.left*100,0,100),v:da(e.v-i.top*100,0,100)},!0)},[e.s,e.v,t]),n=`hsl(${e.h}, 100%, 50%)`;return pt.jsx("div",{className:qr("relative h-full w-full rounded-xl",o),children:pt.jsxs(o5,{onMove:r,onMoveEnd:a,onKey:l,"aria-label":"Color","aria-valuetext":`Saturation ${Ya(e.s)}%, Brightness ${Ya(e.v)}%`,className:"rounded-inherit h-full w-full",children:[pt.jsx("div",{className:"rounded-inherit absolute inset-0 rounded-b-none",style:{backgroundColor:n,backgroundImage:"linear-gradient(to top, #000, rgba(0, 0, 0, 0)), linear-gradient(to right, #fff, rgba(255, 255, 255, 0))",boxShadow:"inset 0 0 0 1px rgba(0, 0, 0, 0.05)"}}),pt.jsx(a5,{className:"z-[3]",top:1-e.v/100,left:e.s/100,color:""})]})})},Zg=(0,xe.createContext)(null),v2=()=>{let e=(0,xe.useContext)(Zg);if(!e)throw new Error("ColorPicker compound components must be used within a ColorPicker");return e};function Rg(e){return"type"in e?new Wa(e):e}var fS=({color:e,onChange:t,className:o,children:a,defaultColor:r,...l})=>{let[n,i]=(0,xe.useState)(Rg(e??r??{h:340,s:58,v:100,a:1,type:"hsva"})),u=(0,xe.useRef)(!1),s=(0,xe.useRef)(n);(0,xe.useEffect)(()=>{!u.current&&e&&(s.current=Rg(e),i(s.current))},[e]);let d=(0,xe.useCallback)((v,b)=>{let x=new Wa({type:"hsva",...s.current.getHsva(),...v});s.current=x,i(x),u.current=!b,t?.(x)},[t]),g=(0,xe.useCallback)(()=>{u.current=!1},[]),f=(0,xe.useCallback)(async()=>{if(!("EyeDropper"in window)){console.log("EyeDropper API not supported");return}try{let v=await new window.EyeDropper().open();v.sRGBHex&&d(Qa({type:"hex",value:v.sRGBHex},"hsva"),!0)}catch(v){console.log("EyeDropper cancelled or failed:",v)}},[t]),p={hsva:n.getHsva(),updateHsva:d,handleEyeDropper:f,onFinishedUpdates:g};return pt.jsx(Zg.Provider,{value:p,children:pt.jsx("div",{...l,className:qr("relative flex h-[280px] w-[280px] cursor-default flex-col rounded-2xl bg-white shadow-lg select-none",o),children:a})})},pS=({className:e})=>{let{hsva:t,updateHsva:o,onFinishedUpdates:a}=v2(),r=(0,xe.useCallback)((l,n)=>{o(l,n)},[o]);return pt.jsx(cS,{hsva:t,onChange:r,className:e,onFinishedUpdates:a})},mS=({className:e})=>{let{hsva:t,updateHsva:o,onFinishedUpdates:a}=v2(),r=(0,xe.useCallback)((l,n)=>{o(l,n)},[o]);return pt.jsx(dS,{hue:t.h,onChange:r,className:e,onFinishedUpdates:a})},gS=({className:e})=>{let{hsva:t,updateHsva:o,onFinishedUpdates:a}=v2(),r=(0,xe.useCallback)((l,n)=>{o(l,n)},[o]);return pt.jsx(sS,{hsva:t,onChange:r,className:e,onFinishedUpdates:a})},hS=({className:e,title:t="Pick color from screen",children:o})=>{let{handleEyeDropper:a}=v2(),[r,l]=(0,xe.useState)(!1);return(0,xe.useEffect)(()=>{typeof window<"u"&&"EyeDropper"in window&&l(!0)},[]),r?pt.jsx("button",{onClick:a,className:qr("flex h-10 w-10 flex-shrink-0 cursor-pointer items-center justify-center rounded-lg transition-colors hover:bg-gray-100",e),title:t,children:o}):null},un=Object.assign(fS,{Saturation:pS,Hue:mS,Alpha:gS,EyeDropper:hS});function CS(e,t){switch(t){case"hex":return{type:"hex",value:e.getHex()};case"rgb":return{type:"rgb",...e.getRgb()};case"rgba":return{type:"rgba",...e.getRgba()};case"hsl":return{type:"hsl",...e.getHsl()};case"hsla":return{type:"hsla",...e.getHsla()};case"hsv":return{type:"hsv",...e.getHsv()};case"hsva":return{type:"hsva",...e.getHsva()};default:C2()}}var zg=(e={type:"hex",value:"#ff6b9d"})=>{let[t,o]=(0,xe.useState)(()=>{let n=typeof e=="function"?e():e;return{color:new Wa(n),type:n.type}}),a=(0,xe.useMemo)(()=>CS(t.color,t.type),[t.color,t.type]),r=(0,xe.useMemo)(()=>{let n=t.color.getHsva();return{hex:t.color.getHex(),rgb:t.color.getRgb(),rgba:t.color.getRgba(),hsl:t.color.getHsl(),hsla:t.color.getHsla(),hsv:t.color.getHsv(),hsva:n,alpha:n.a}},[t.color]),l=(0,xe.useCallback)(n=>{try{let i="type"in n?new Wa(n):n;o(u=>({color:i,type:u.type}))}catch(i){console.warn("Invalid color input:",n,i)}},[]);return[{colorInput:a,colorState:r},l]};var hC=V(qo(),1);var Vt=V(he());function Ug(e,t,o,a){var r=this,l=(0,Vt.useRef)(null),n=(0,Vt.useRef)(0),i=(0,Vt.useRef)(0),u=(0,Vt.useRef)(null),s=(0,Vt.useRef)([]),d=(0,Vt.useRef)(),g=(0,Vt.useRef)(),f=(0,Vt.useRef)(e),p=(0,Vt.useRef)(!0),v=(0,Vt.useRef)(),b=(0,Vt.useRef)();f.current=e;var x=typeof window<"u",m=!t&&t!==0&&x;if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var c=!!(o=o||{}).leading,h=!("trailing"in o)||!!o.trailing,C=!!o.flushOnExit&&h,w="maxWait"in o,S="debounceOnServer"in o&&!!o.debounceOnServer,H=w?Math.max(+o.maxWait||0,t):null,y=(0,Vt.useMemo)(function(){var k=function(M){var I=s.current,R=d.current;return s.current=d.current=null,n.current=M,i.current=i.current||M,g.current=f.current.apply(R,I)},O=function(M,I){m&&cancelAnimationFrame(u.current),u.current=m?requestAnimationFrame(M):setTimeout(M,I)},F=function(M){if(!p.current)return!1;var I=M-l.current;return!l.current||I>=t||I<0||w&&M-n.current>=H},ae=function(M){return u.current=null,h&&s.current?k(M):(s.current=d.current=null,g.current)},K=function M(){var I=Date.now();if(c&&i.current===n.current&&B(),F(I))return ae(I);if(p.current){var R=t-(I-l.current),L=w?Math.min(R,H-(I-n.current)):R;O(M,L)}},B=function(){a&&a({})},Q=function(){if(x||S){var M,I=Date.now(),R=F(I);if(s.current=[].slice.call(arguments),d.current=r,l.current=I,C&&!v.current&&(v.current=function(){var L;((L=globalThis.document)==null?void 0:L.visibilityState)==="hidden"&&b.current.flush()},(M=globalThis.document)==null||M.addEventListener==null||M.addEventListener("visibilitychange",v.current)),R){if(!u.current&&p.current)return n.current=l.current,O(K,t),c?k(l.current):g.current;if(w)return O(K,t),k(l.current)}return u.current||O(K,t),g.current}};return Q.cancel=function(){var M=u.current;M&&(m?cancelAnimationFrame(u.current):clearTimeout(u.current)),n.current=0,s.current=l.current=d.current=u.current=null,M&&a&&a({})},Q.isPending=function(){return!!u.current},Q.flush=function(){return u.current?ae(Date.now()):g.current},Q},[c,w,t,H,h,C,m,x,S,a]);return b.current=y,(0,Vt.useEffect)(function(){return p.current=!0,function(){var k;C&&b.current.flush(),v.current&&((k=globalThis.document)==null||k.removeEventListener==null||k.removeEventListener("visibilitychange",v.current),v.current=null),p.current=!1}},[C]),y}var Qt=V(he(),1);function $r(e){let t=e?.parentNode;for(;t;){if(t instanceof ShadowRoot){t=t.host;continue}if(t instanceof HTMLElement){let{overflowY:o}=getComputedStyle(t);if(o==="auto"||o==="scroll")return t}t=t.parentNode}return null}var Fg='button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])';function qg({computePosition:e,onClose:t,autoFocus:o=!0,trapFocus:a=!1}={}){let[r,l]=Qt.default.useState(!1),[n,i]=Qt.default.useState({top:0,left:0}),u=Qt.default.useRef(null),s=Qt.default.useRef(null),d=Qt.default.useRef(!1),g=Qt.default.useRef(e);g.current=e;let f=Qt.default.useRef(t);f.current=t;let p=Qt.default.useRef(a);p.current=a;let v=Qt.default.useCallback((...c)=>{!u.current||!g.current||i(g.current(u.current,...c))},[]),b=Qt.default.useCallback(()=>{v(),d.current=!0,l(!0)},[v]),x=Qt.default.useCallback(()=>{f.current&&f.current(),d.current=!1,l(!1),u.current?.focus()},[]),m=Qt.default.useCallback(()=>{d.current?x():b()},[b,x]);return Qt.default.useEffect(()=>{if(!r)return;let c=C=>{if(C.key==="Escape"&&(C.preventDefault(),x()),p.current&&C.key==="Tab"){let w=s.current;if(!w)return;let S=Array.from(w.querySelectorAll(Fg)).filter(k=>!k.hasAttribute("disabled")),H=S[0],y=S.at(-1);if(!H||!y)return;C.shiftKey&&document.activeElement===H?(C.preventDefault(),y.focus()):!C.shiftKey&&document.activeElement===y&&(C.preventDefault(),H.focus())}},h=C=>{let w=s.current,S=u.current;if(!w||!S)return;let H=typeof C.composedPath=="function"?C.composedPath():[],y=H.includes(w)||C.target instanceof Node&&w.contains(C.target),k=H.includes(S)||C.target instanceof Node&&S.contains(C.target);!y&&!k&&x()};return document.addEventListener("keydown",c),document.addEventListener("mousedown",h),document.addEventListener("touchstart",h),()=>{document.removeEventListener("keydown",c),document.removeEventListener("mousedown",h),document.removeEventListener("touchstart",h)}},[r,x]),Qt.default.useEffect(()=>{if(!r||!o||!s.current)return;let c=s.current.querySelector(Fg);c&&c.focus()},[r,o]),Qt.default.useEffect(()=>{if(!r||!u.current)return;let c=$r(u.current);if(!c)return;let h=()=>x();return c.addEventListener("scroll",h,{passive:!0}),()=>c.removeEventListener("scroll",h)},[r,x]),{isOpen:r,open:b,close:x,toggle:m,triggerRef:u,popoverRef:s,position:n,reposition:v}}var vS=(e,t)=>{if(typeof e=="number"){if(t===3)return{mode:"rgb",r:(e>>8&15|e>>4&240)/255,g:(e>>4&15|e&240)/255,b:(e&15|e<<4&240)/255};if(t===4)return{mode:"rgb",r:(e>>12&15|e>>8&240)/255,g:(e>>8&15|e>>4&240)/255,b:(e>>4&15|e&240)/255,alpha:(e&15|e<<4&240)/255};if(t===6)return{mode:"rgb",r:(e>>16&255)/255,g:(e>>8&255)/255,b:(e&255)/255};if(t===8)return{mode:"rgb",r:(e>>24&255)/255,g:(e>>16&255)/255,b:(e>>8&255)/255,alpha:(e&255)/255}}},x2=vS;var xS={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},$g=xS;var bS=e=>x2($g[e.toLowerCase()],6),jg=bS;var LS=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,wS=e=>{let t;return(t=e.match(LS))?x2(parseInt(t[1],16),t[1].length):void 0},Gg=wS;var i1="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",B_=`(?:${i1}|none)`,jr=`${i1}%`,N_=`(?:${i1}%|none)`,Ui=`(?:${i1}%|${i1})`,yS=`(?:${i1}%|${i1}|none)`,Kg=`(?:${i1}(deg|grad|rad|turn)|${i1})`,P_=`(?:${i1}(deg|grad|rad|turn)|${i1}|none)`,Ja="\\s*,\\s*";var Z_=new RegExp("^"+yS+"$");var IS=new RegExp(`^rgba?\\(\\s*${i1}${Ja}${i1}${Ja}${i1}\\s*(?:,\\s*${Ui}\\s*)?\\)$`),SS=new RegExp(`^rgba?\\(\\s*${jr}${Ja}${jr}${Ja}${jr}\\s*(?:,\\s*${Ui}\\s*)?\\)$`),MS=e=>{let t={mode:"rgb"},o;if(o=e.match(IS))o[1]!==void 0&&(t.r=o[1]/255),o[2]!==void 0&&(t.g=o[2]/255),o[3]!==void 0&&(t.b=o[3]/255);else if(o=e.match(SS))o[1]!==void 0&&(t.r=o[1]/100),o[2]!==void 0&&(t.g=o[2]/100),o[3]!==void 0&&(t.b=o[3]/100);else return;return o[4]!==void 0?t.alpha=Math.max(0,Math.min(1,o[4]/100)):o[5]!==void 0&&(t.alpha=Math.max(0,Math.min(1,+o[5]))),t},Xg=MS;var RS=(e,t)=>e===void 0?void 0:typeof e!="object"?Gr(e):e.mode!==void 0?e:t?{...e,mode:t}:void 0,b2=RS;var HS=(e="rgb")=>t=>(t=b2(t,e))!==void 0?t.mode===e?t:ho[t.mode][e]?ho[t.mode][e](t):e==="rgb"?ho[t.mode].rgb(t):ho.rgb[e](ho[t.mode].rgb(t)):void 0,V1=HS;var ho={},Qg={},Fi=[],r5={},kS=e=>e,_e=e=>(ho[e.mode]={...ho[e.mode],...e.toMode},Object.keys(e.fromMode||{}).forEach(t=>{ho[t]||(ho[t]={}),ho[t][e.mode]=e.fromMode[t]}),e.ranges||(e.ranges={}),e.difference||(e.difference={}),e.channels.forEach(t=>{if(e.ranges[t]===void 0&&(e.ranges[t]=[0,1]),!e.interpolate[t])throw new Error(`Missing interpolator for: ${t}`);typeof e.interpolate[t]=="function"&&(e.interpolate[t]={use:e.interpolate[t]}),e.interpolate[t].fixup||(e.interpolate[t].fixup=kS)}),Qg[e.mode]=e,(e.parse||[]).forEach(t=>{TS(t,e.mode)}),V1(e.mode)),L2=e=>Qg[e],TS=(e,t)=>{if(typeof e=="string"){if(!t)throw new Error("'mode' required when 'parser' is a string");r5[e]=t}else typeof e=="function"&&Fi.indexOf(e)<0&&Fi.push(e)};var l5=/[^\x00-\x7F]|[a-zA-Z_]/,ES=/[^\x00-\x7F]|[-\w]/,A={Function:"function",Ident:"ident",Number:"number",Percentage:"percentage",ParenClose:")",None:"none",Hue:"hue",Alpha:"alpha"},se=0;function w2(e){let t=e[se],o=e[se+1];return t==="-"||t==="+"?/\d/.test(o)||o==="."&&/\d/.test(e[se+2]):t==="."?/\d/.test(o):/\d/.test(t)}function n5(e){if(se>=e.length)return!1;let t=e[se];if(l5.test(t))return!0;if(t==="-"){if(e.length-se<2)return!1;let o=e[se+1];return!!(o==="-"||l5.test(o))}return!1}var _S={deg:1,rad:180/Math.PI,grad:9/10,turn:360};function qi(e){let t="";if((e[se]==="-"||e[se]==="+")&&(t+=e[se++]),t+=y2(e),e[se]==="."&&/\d/.test(e[se+1])&&(t+=e[se++]+y2(e)),(e[se]==="e"||e[se]==="E")&&((e[se+1]==="-"||e[se+1]==="+")&&/\d/.test(e[se+2])?t+=e[se++]+e[se++]+y2(e):/\d/.test(e[se+1])&&(t+=e[se++]+y2(e))),n5(e)){let o=I2(e);return o==="deg"||o==="rad"||o==="turn"||o==="grad"?{type:A.Hue,value:t*_S[o]}:void 0}return e[se]==="%"?(se++,{type:A.Percentage,value:+t}):{type:A.Number,value:+t}}function y2(e){let t="";for(;/\d/.test(e[se]);)t+=e[se++];return t}function I2(e){let t="";for(;se<e.length&&ES.test(e[se]);)t+=e[se++];return t}function OS(e){let t=I2(e);return e[se]==="("?(se++,{type:A.Function,value:t}):t==="none"?{type:A.None,value:void 0}:{type:A.Ident,value:t}}function DS(e=""){let t=e.trim(),o=[],a;for(se=0;se<t.length;){if(a=t[se++],a===`
|
|
402
|
+
`;var $=V(he());function et(e,t){if(e==null)return{};var o={},a=Object.keys(e),r,l;for(l=0;l<a.length;l++)r=a[l],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}var Dw=["color"],zp=(0,$.forwardRef)(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=et(e,Dw);return(0,$.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),(0,$.createElement)("path",{d:"M0 7.5C0 7.22386 0.223858 7 0.5 7H3C3.27614 7 3.5 7.22386 3.5 7.5C3.5 7.77614 3.27614 8 3 8H0.5C0.223858 8 0 7.77614 0 7.5ZM5.75 7.5C5.75 7.22386 5.97386 7 6.25 7H8.75C9.02614 7 9.25 7.22386 9.25 7.5C9.25 7.77614 9.02614 8 8.75 8H6.25C5.97386 8 5.75 7.77614 5.75 7.5ZM12 7C11.7239 7 11.5 7.22386 11.5 7.5C11.5 7.77614 11.7239 8 12 8H14.5C14.7761 8 15 7.77614 15 7.5C15 7.22386 14.7761 7 14.5 7H12Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))}),Vw=["color"],Up=(0,$.forwardRef)(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=et(e,Vw);return(0,$.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),(0,$.createElement)("path",{d:"M1.5 6.625C1.01675 6.625 0.625 7.01675 0.625 7.5C0.625 7.98325 1.01675 8.375 1.5 8.375C1.98325 8.375 2.375 7.98325 2.375 7.5C2.375 7.01675 1.98325 6.625 1.5 6.625ZM5.5 6.625C5.01675 6.625 4.625 7.01675 4.625 7.5C4.625 7.98325 5.01675 8.375 5.5 8.375C5.98325 8.375 6.375 7.98325 6.375 7.5C6.375 7.01675 5.98325 6.625 5.5 6.625ZM9.5 6.625C9.01675 6.625 8.625 7.01675 8.625 7.5C8.625 7.98325 9.01675 8.375 9.5 8.375C9.98325 8.375 10.375 7.98325 10.375 7.5C10.375 7.01675 9.98325 6.625 9.5 6.625ZM12.625 7.5C12.625 7.01675 13.0168 6.625 13.5 6.625C13.9832 6.625 14.375 7.01675 14.375 7.5C14.375 7.98325 13.9832 8.375 13.5 8.375C13.0168 8.375 12.625 7.98325 12.625 7.5Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))});var Aw=["color"],Fp=(0,$.forwardRef)(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=et(e,Aw);return(0,$.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),(0,$.createElement)("path",{d:"M1.25 7.5C1.25 7.22386 1.47386 7 1.75 7H13.25C13.5261 7 13.75 7.22386 13.75 7.5C13.75 7.77614 13.5261 8 13.25 8H1.75C1.47386 8 1.25 7.77614 1.25 7.5Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))});var Bw=["color"],qp=(0,$.forwardRef)(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=et(e,Bw);return(0,$.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),(0,$.createElement)("path",{d:"M6.1584 3.13508C6.35985 2.94621 6.67627 2.95642 6.86514 3.15788L10.6151 7.15788C10.7954 7.3502 10.7954 7.64949 10.6151 7.84182L6.86514 11.8418C6.67627 12.0433 6.35985 12.0535 6.1584 11.8646C5.95694 11.6757 5.94673 11.3593 6.1356 11.1579L9.565 7.49985L6.1356 3.84182C5.94673 3.64036 5.95694 3.32394 6.1584 3.13508Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))});var Nw=["color"],$a=(0,$.forwardRef)(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=et(e,Nw);return(0,$.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),(0,$.createElement)("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))});var Pw=["color"],$p=(0,$.forwardRef)(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=et(e,Pw);return(0,$.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),(0,$.createElement)("path",{d:"M5.67494 3.50017C5.67494 3.25164 5.87641 3.05017 6.12494 3.05017H10.6249C10.8735 3.05017 11.0749 3.25164 11.0749 3.50017C11.0749 3.7487 10.8735 3.95017 10.6249 3.95017H9.00587L7.2309 11.05H8.87493C9.12345 11.05 9.32493 11.2515 9.32493 11.5C9.32493 11.7486 9.12345 11.95 8.87493 11.95H4.37493C4.1264 11.95 3.92493 11.7486 3.92493 11.5C3.92493 11.2515 4.1264 11.05 4.37493 11.05H5.99397L7.76894 3.95017H6.12494C5.87641 3.95017 5.67494 3.7487 5.67494 3.50017Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))}),Zw=["color"],jp=(0,$.forwardRef)(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=et(e,Zw);return(0,$.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),(0,$.createElement)("path",{d:"M4.79993 3.50017C4.79993 3.25164 5.0014 3.05017 5.24993 3.05017H9.74993C9.99845 3.05017 10.1999 3.25164 10.1999 3.50017C10.1999 3.7487 9.99845 3.95017 9.74993 3.95017H8.09993V11.05H9.74994C9.99847 11.05 10.1999 11.2515 10.1999 11.5C10.1999 11.7486 9.99847 11.95 9.74994 11.95H5.24994C5.00141 11.95 4.79994 11.7486 4.79994 11.5C4.79994 11.2515 5.00141 11.05 5.24994 11.05H6.89993V3.95017H5.24993C5.0014 3.95017 4.79993 3.7487 4.79993 3.50017Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))}),zw=["color"],Gp=(0,$.forwardRef)(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=et(e,zw);return(0,$.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),(0,$.createElement)("path",{d:"M2.78233 2.21707C2.70732 2.14206 2.60557 2.09991 2.49949 2.09991C2.3934 2.09991 2.29166 2.14206 2.21664 2.21707L0.216645 4.21707C0.0604351 4.37328 0.0604351 4.62655 0.216645 4.78276C0.372855 4.93897 0.626121 4.93897 0.78233 4.78276L2.09949 3.4656L2.09949 11.5342L0.78233 10.2171C0.62612 10.0609 0.372854 10.0609 0.216645 10.2171C0.0604349 10.3733 0.0604349 10.6265 0.216645 10.7828L2.21664 12.7828C2.29166 12.8578 2.3934 12.8999 2.49949 12.8999C2.60557 12.8999 2.70731 12.8578 2.78233 12.7828L4.78233 10.7828C4.93854 10.6265 4.93854 10.3733 4.78233 10.2171C4.62612 10.0609 4.37285 10.0609 4.21664 10.2171L2.89949 11.5342L2.89949 3.4656L4.21664 4.78276C4.37285 4.93897 4.62612 4.93897 4.78233 4.78276C4.93854 4.62655 4.93854 4.37328 4.78233 4.21707L2.78233 2.21707ZM10.5 2.74997C10.7107 2.74997 10.8988 2.88211 10.9703 3.08036L13.9703 11.3999C14.064 11.6597 13.9293 11.9462 13.6696 12.0399C13.4098 12.1336 13.1233 11.9989 13.0296 11.7392L12.0477 9.016H8.95228L7.97033 11.7392C7.87666 11.9989 7.59013 12.1336 7.33036 12.0399C7.07059 11.9462 6.93595 11.6597 7.02962 11.3999L10.0296 3.08036C10.1011 2.88211 10.2892 2.74997 10.5 2.74997ZM10.5 4.72396L11.7412 8.166H9.25879L10.5 4.72396Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))});var Uw=["color"],Kp=(0,$.forwardRef)(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=et(e,Uw);return(0,$.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),(0,$.createElement)("path",{d:"M7.1813 1.68179C7.35704 1.50605 7.64196 1.50605 7.8177 1.68179L10.3177 4.18179C10.4934 4.35753 10.4934 4.64245 10.3177 4.81819C10.142 4.99392 9.85704 4.99392 9.6813 4.81819L7.9495 3.08638L7.9495 11.9136L9.6813 10.1818C9.85704 10.0061 10.142 10.0061 10.3177 10.1818C10.4934 10.3575 10.4934 10.6424 10.3177 10.8182L7.8177 13.3182C7.73331 13.4026 7.61885 13.45 7.4995 13.45C7.38015 13.45 7.26569 13.4026 7.1813 13.3182L4.6813 10.8182C4.50557 10.6424 4.50557 10.3575 4.6813 10.1818C4.85704 10.0061 5.14196 10.0061 5.3177 10.1818L7.0495 11.9136L7.0495 3.08638L5.3177 4.81819C5.14196 4.99392 4.85704 4.99392 4.6813 4.81819C4.50557 4.64245 4.50557 4.35753 4.6813 4.18179L7.1813 1.68179Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))});var Fw=["color"],Xp=(0,$.forwardRef)(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=et(e,Fw);return(0,$.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),(0,$.createElement)("path",{d:"M6.5 1C6.22386 1 6 1.22386 6 1.5C6 1.77614 6.22386 2 6.5 2C7.12671 2 7.45718 2.20028 7.65563 2.47812C7.8781 2.78957 8 3.28837 8 4V11C8 11.7116 7.8781 12.2104 7.65563 12.5219C7.45718 12.7997 7.12671 13 6.5 13C6.22386 13 6 13.2239 6 13.5C6 13.7761 6.22386 14 6.5 14C7.37329 14 8.04282 13.7003 8.46937 13.1031C8.47976 13.0886 8.48997 13.0739 8.5 13.0591C8.51003 13.0739 8.52024 13.0886 8.53063 13.1031C8.95718 13.7003 9.62671 14 10.5 14C10.7761 14 11 13.7761 11 13.5C11 13.2239 10.7761 13 10.5 13C9.87329 13 9.54282 12.7997 9.34437 12.5219C9.1219 12.2104 9 11.7116 9 11V4C9 3.28837 9.1219 2.78957 9.34437 2.47812C9.54282 2.20028 9.87329 2 10.5 2C10.7761 2 11 1.77614 11 1.5C11 1.22386 10.7761 1 10.5 1C9.62671 1 8.95718 1.29972 8.53063 1.89688C8.52024 1.91143 8.51003 1.92611 8.5 1.9409C8.48997 1.92611 8.47976 1.91143 8.46937 1.89688C8.04282 1.29972 7.37329 1 6.5 1ZM14 5H11V4H14C14.5523 4 15 4.44772 15 5V10C15 10.5523 14.5523 11 14 11H11V10H14V5ZM6 4V5H1L1 10H6V11H1C0.447715 11 0 10.5523 0 10V5C0 4.44772 0.447715 4 1 4H6Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))});var qw=["color"],Qp=(0,$.forwardRef)(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=et(e,qw);return(0,$.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),(0,$.createElement)("path",{d:"M3.68979 2.75C3.89667 2.74979 4.08232 2.87701 4.15679 3.07003L7.36662 11.39C7.46602 11.6477 7.33774 11.9371 7.0801 12.0365C6.82247 12.1359 6.53304 12.0076 6.43365 11.75L5.3825 9.02537H2.01133L0.966992 11.749C0.868128 12.0068 0.578964 12.1357 0.321126 12.0369C0.0632878 11.938 -0.0655864 11.6488 0.0332774 11.391L3.22344 3.07099C3.29751 2.87782 3.4829 2.75021 3.68979 2.75ZM3.69174 4.64284L5.05458 8.17537H2.33724L3.69174 4.64284ZM10.8989 5.20703C9.25818 5.20703 8.00915 6.68569 8.00915 8.60972C8.00915 10.6337 9.35818 12.0124 10.8989 12.0124C11.7214 12.0124 12.5744 11.6692 13.1543 11.0219V11.53C13.1543 11.7785 13.3557 11.98 13.6043 11.98C13.8528 11.98 14.0543 11.7785 14.0543 11.53V5.72C14.0543 5.47147 13.8528 5.27 13.6043 5.27C13.3557 5.27 13.1543 5.47147 13.1543 5.72V6.22317C12.6054 5.60095 11.7924 5.20703 10.8989 5.20703ZM13.1543 9.79823V7.30195C12.7639 6.58101 11.9414 6.05757 11.0868 6.05757C10.1088 6.05757 9.03503 6.96581 9.03503 8.60955C9.03503 10.1533 10.0088 11.1615 11.0868 11.1615C11.9701 11.1615 12.7719 10.4952 13.1543 9.79823Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))}),$w=["color"],Yp=(0,$.forwardRef)(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=et(e,$w);return(0,$.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),(0,$.createElement)("path",{d:"M3.69899 5.20703C2.05823 5.20703 0.809204 6.68569 0.809204 8.60972C0.809204 10.6337 2.15823 12.0124 3.69899 12.0124C4.52126 12.0124 5.37402 11.6693 5.9539 11.0223V11.53C5.9539 11.7785 6.15537 11.98 6.4039 11.98C6.65243 11.98 6.8539 11.7785 6.8539 11.53V5.72001C6.8539 5.47149 6.65243 5.27001 6.4039 5.27001C6.15537 5.27001 5.9539 5.47149 5.9539 5.72001V6.22269C5.40506 5.60075 4.59218 5.20703 3.69899 5.20703ZM5.9539 9.799V7.30117C5.56339 6.58064 4.74118 6.05757 3.8868 6.05757C2.9089 6.05757 1.83508 6.96581 1.83508 8.60955C1.83508 10.1533 2.80889 11.1615 3.8868 11.1615C4.76984 11.1615 5.57141 10.4957 5.9539 9.799ZM10.799 5.20703C9.15823 5.20703 7.9092 6.68569 7.9092 8.60972C7.9092 10.6337 9.25823 12.0124 10.799 12.0124C11.6215 12.0124 12.4744 11.6692 13.0543 11.0218V11.53C13.0543 11.7785 13.2558 11.98 13.5043 11.98C13.7529 11.98 13.9543 11.7785 13.9543 11.53V5.72C13.9543 5.47147 13.7529 5.27 13.5043 5.27C13.2558 5.27 13.0543 5.47147 13.0543 5.72V6.22318C12.5055 5.60095 11.6924 5.20703 10.799 5.20703ZM13.0543 9.79822V7.30196C12.664 6.58102 11.8415 6.05757 10.9868 6.05757C10.0089 6.05757 8.93508 6.96581 8.93508 8.60955C8.93508 10.1533 9.90889 11.1615 10.9868 11.1615C11.8702 11.1615 12.672 10.4952 13.0543 9.79822Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))});var jw=["color"],Wp=(0,$.forwardRef)(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=et(e,jw);return(0,$.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),(0,$.createElement)("path",{d:"M3.6255 2.75C3.83478 2.75 4.02192 2.88034 4.09448 3.07664L7.16985 11.3962C7.2656 11.6552 7.13324 11.9428 6.87423 12.0386C6.61522 12.1343 6.32763 12.002 6.23188 11.7429L5.22387 9.01603H2.02712L1.01911 11.7429C0.923362 12.002 0.635774 12.1343 0.376762 12.0386C0.117749 11.9428 -0.0146052 11.6552 0.0811401 11.3962L3.15651 3.07664C3.22908 2.88034 3.41621 2.75 3.6255 2.75ZM3.6255 4.69207L4.90966 8.16603H2.34133L3.6255 4.69207ZM11.3719 2.75C11.5811 2.75 11.7683 2.88034 11.8408 3.07664L14.9162 11.3962C15.012 11.6552 14.8796 11.9428 14.6206 12.0386C14.3616 12.1343 14.074 12.002 13.9782 11.7429L12.9702 9.01603H9.77348L8.76547 11.7429C8.66972 12.002 8.38213 12.1343 8.12312 12.0386C7.86411 11.9428 7.73175 11.6552 7.8275 11.3962L10.9029 3.07664C10.9754 2.88034 11.1626 2.75 11.3719 2.75ZM11.3719 4.69207L12.656 8.16603H10.0877L11.3719 4.69207Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))}),Gw=["color"],Jp=(0,$.forwardRef)(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=et(e,Gw);return(0,$.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),(0,$.createElement)("path",{d:"M4.55293 0.999969C4.75295 0.999969 4.93372 1.11917 5.0125 1.30301L8.01106 8.29982C8.11984 8.55363 8.00226 8.84757 7.74844 8.95635C7.49463 9.06512 7.20069 8.94754 7.09191 8.69373L6.11613 6.41685H2.98973L2.01395 8.69373C1.90517 8.94754 1.61123 9.06512 1.35742 8.95635C1.1036 8.84757 0.986023 8.55363 1.0948 8.29982L4.09336 1.30301C4.17214 1.11917 4.35291 0.999969 4.55293 0.999969ZM4.55293 2.76929L5.75186 5.56685H3.354L4.55293 2.76929ZM11.0562 9.00214C11.2617 9.00214 11.4463 8.87633 11.5215 8.68502L14.2733 1.68299C14.3743 1.42598 14.2478 1.13575 13.9908 1.03475C13.7338 0.933747 13.4436 1.06021 13.3426 1.31722L11.0562 7.13514L8.76973 1.31722C8.66873 1.06021 8.3785 0.933747 8.1215 1.03475C7.86449 1.13575 7.73802 1.42598 7.83902 1.68299L10.5908 8.68502C10.666 8.87633 10.8506 9.00214 11.0562 9.00214ZM14.9537 12.4999C14.9537 12.606 14.9115 12.7077 14.8365 12.7828L12.8365 14.7828C12.6803 14.939 12.4271 14.939 12.2708 14.7828C12.1146 14.6265 12.1146 14.3733 12.2708 14.2171L13.588 12.8999H1.51937L2.83653 14.2171C2.99274 14.3733 2.99274 14.6265 2.83653 14.7828C2.68032 14.939 2.42705 14.939 2.27084 14.7828L0.270843 12.7828C0.195828 12.7077 0.153687 12.606 0.153687 12.4999C0.153687 12.3938 0.195828 12.2921 0.270843 12.2171L2.27084 10.2171C2.42705 10.0609 2.68032 10.0609 2.83653 10.2171C2.99274 10.3733 2.99274 10.6265 2.83653 10.7828L1.51937 12.0999L13.588 12.0999L12.2708 10.7828C12.1146 10.6265 12.1146 10.3733 12.2708 10.2171C12.4271 10.0609 12.6803 10.0609 12.8365 10.2171L14.8365 12.2171C14.9115 12.2921 14.9537 12.3938 14.9537 12.4999Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))});var Kw=["color"],em=(0,$.forwardRef)(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=et(e,Kw);return(0,$.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),(0,$.createElement)("path",{d:"M3.78233 2.21713C3.70732 2.14212 3.60557 2.09998 3.49949 2.09998C3.3934 2.09998 3.29166 2.14212 3.21664 2.21713L1.21664 4.21713C1.06044 4.37334 1.06044 4.62661 1.21664 4.78282C1.37285 4.93903 1.62612 4.93903 1.78233 4.78282L3.09949 3.46566L3.09949 11.5343L1.78233 10.2171C1.62612 10.0609 1.37285 10.0609 1.21664 10.2171C1.06043 10.3733 1.06043 10.6266 1.21664 10.7828L3.21664 12.7828C3.29166 12.8578 3.3934 12.9 3.49949 12.9C3.60557 12.9 3.70731 12.8578 3.78233 12.7828L5.78233 10.7828C5.93854 10.6266 5.93854 10.3733 5.78233 10.2171C5.62612 10.0609 5.37285 10.0609 5.21664 10.2171L3.89949 11.5343L3.89949 3.46566L5.21664 4.78282C5.37285 4.93903 5.62612 4.93903 5.78233 4.78282C5.93854 4.62661 5.93854 4.37334 5.78233 4.21713L3.78233 2.21713ZM8.49998 3.99997C8.22383 3.99997 7.99998 4.22382 7.99998 4.49997C7.99998 4.77611 8.22383 4.99997 8.49998 4.99997H14.5C14.7761 4.99997 15 4.77611 15 4.49997C15 4.22382 14.7761 3.99997 14.5 3.99997H8.49998ZM7.99998 7.49997C7.99998 7.22382 8.22383 6.99997 8.49998 6.99997H14.5C14.7761 6.99997 15 7.22382 15 7.49997C15 7.77611 14.7761 7.99997 14.5 7.99997H8.49998C8.22383 7.99997 7.99998 7.77611 7.99998 7.49997ZM8.49998 9.99997C8.22383 9.99997 7.99998 10.2238 7.99998 10.5C7.99998 10.7761 8.22383 11 8.49998 11H14.5C14.7761 11 15 10.7761 15 10.5C15 10.2238 14.7761 9.99997 14.5 9.99997H8.49998Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))});var Xw=["color"],tm=(0,$.forwardRef)(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=et(e,Xw);return(0,$.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),(0,$.createElement)("path",{d:"M4.85355 2.14645C5.04882 2.34171 5.04882 2.65829 4.85355 2.85355L3.70711 4H9C11.4853 4 13.5 6.01472 13.5 8.5C13.5 10.9853 11.4853 13 9 13H5C4.72386 13 4.5 12.7761 4.5 12.5C4.5 12.2239 4.72386 12 5 12H9C10.933 12 12.5 10.433 12.5 8.5C12.5 6.567 10.933 5 9 5H3.70711L4.85355 6.14645C5.04882 6.34171 5.04882 6.65829 4.85355 6.85355C4.65829 7.04882 4.34171 7.04882 4.14645 6.85355L2.14645 4.85355C1.95118 4.65829 1.95118 4.34171 2.14645 4.14645L4.14645 2.14645C4.34171 1.95118 4.65829 1.95118 4.85355 2.14645Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))});var Qw=["color"],om=(0,$.forwardRef)(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=et(e,Qw);return(0,$.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),(0,$.createElement)("path",{d:"M5.00003 3.25C5.00003 2.97386 4.77617 2.75 4.50003 2.75C4.22389 2.75 4.00003 2.97386 4.00003 3.25V7.10003H2.49998C2.27906 7.10003 2.09998 7.27912 2.09998 7.50003C2.09998 7.72094 2.27906 7.90003 2.49998 7.90003H4.00003V8.55C4.00003 10.483 5.56703 12.05 7.50003 12.05C9.43303 12.05 11 10.483 11 8.55V7.90003H12.5C12.7209 7.90003 12.9 7.72094 12.9 7.50003C12.9 7.27912 12.7209 7.10003 12.5 7.10003H11V3.25C11 2.97386 10.7762 2.75 10.5 2.75C10.2239 2.75 10 2.97386 10 3.25V7.10003H5.00003V3.25ZM5.00003 7.90003V8.55C5.00003 9.93071 6.11932 11.05 7.50003 11.05C8.88074 11.05 10 9.93071 10 8.55V7.90003H5.00003Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))});var Yw=["color"],am=(0,$.forwardRef)(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=et(e,Yw);return(0,$.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),(0,$.createElement)("path",{d:"M2 4.5C2 4.22386 2.22386 4 2.5 4H12.5C12.7761 4 13 4.22386 13 4.5C13 4.77614 12.7761 5 12.5 5H2.5C2.22386 5 2 4.77614 2 4.5ZM4 7.5C4 7.22386 4.22386 7 4.5 7H10.5C10.7761 7 11 7.22386 11 7.5C11 7.77614 10.7761 8 10.5 8H4.5C4.22386 8 4 7.77614 4 7.5ZM3 10.5C3 10.2239 3.22386 10 3.5 10H11.5C11.7761 10 12 10.2239 12 10.5C12 10.7761 11.7761 11 11.5 11H3.5C3.22386 11 3 10.7761 3 10.5Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))}),Ww=["color"],rm=(0,$.forwardRef)(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=et(e,Ww);return(0,$.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),(0,$.createElement)("path",{d:"M2.5 4C2.22386 4 2 4.22386 2 4.5C2 4.77614 2.22386 5 2.5 5H12.5C12.7761 5 13 4.77614 13 4.5C13 4.22386 12.7761 4 12.5 4H2.5ZM2 7.5C2 7.22386 2.22386 7 2.5 7H12.5C12.7761 7 13 7.22386 13 7.5C13 7.77614 12.7761 8 12.5 8H2.5C2.22386 8 2 7.77614 2 7.5ZM2 10.5C2 10.2239 2.22386 10 2.5 10H12.5C12.7761 10 13 10.2239 13 10.5C13 10.7761 12.7761 11 12.5 11H2.5C2.22386 11 2 10.7761 2 10.5Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))}),Jw=["color"],lm=(0,$.forwardRef)(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=et(e,Jw);return(0,$.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),(0,$.createElement)("path",{d:"M2 4.5C2 4.22386 2.22386 4 2.5 4H12.5C12.7761 4 13 4.22386 13 4.5C13 4.77614 12.7761 5 12.5 5H2.5C2.22386 5 2 4.77614 2 4.5ZM2 7.5C2 7.22386 2.22386 7 2.5 7H7.5C7.77614 7 8 7.22386 8 7.5C8 7.77614 7.77614 8 7.5 8H2.5C2.22386 8 2 7.77614 2 7.5ZM2 10.5C2 10.2239 2.22386 10 2.5 10H10.5C10.7761 10 11 10.2239 11 10.5C11 10.7761 10.7761 11 10.5 11H2.5C2.22386 11 2 10.7761 2 10.5Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))});var ey=["color"],nm=(0,$.forwardRef)(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=et(e,ey);return(0,$.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),(0,$.createElement)("path",{d:"M2 4.5C2 4.22386 2.22386 4 2.5 4H12.5C12.7761 4 13 4.22386 13 4.5C13 4.77614 12.7761 5 12.5 5H2.5C2.22386 5 2 4.77614 2 4.5ZM7 7.5C7 7.22386 7.22386 7 7.5 7H12.5C12.7761 7 13 7.22386 13 7.5C13 7.77614 12.7761 8 12.5 8H7.5C7.22386 8 7 7.77614 7 7.5ZM4 10.5C4 10.2239 4.22386 10 4.5 10H12.5C12.7761 10 13 10.2239 13 10.5C13 10.7761 12.7761 11 12.5 11H4.5C4.22386 11 4 10.7761 4 10.5Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))});var ty=["color"],im=(0,$.forwardRef)(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=et(e,ty);return(0,$.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),(0,$.createElement)("path",{d:"M4 6H11L7.5 10.5L4 6Z",fill:a}))});var oy=["color"],um=(0,$.forwardRef)(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=et(e,oy);return(0,$.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),(0,$.createElement)("path",{d:"M4 9H11L7.5 4.5L4 9Z",fill:a}))});var ay=["color"],sm=(0,$.forwardRef)(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=et(e,ay);return(0,$.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),(0,$.createElement)("path",{d:"M5.00001 2.75C5.00001 2.47386 4.77615 2.25 4.50001 2.25C4.22387 2.25 4.00001 2.47386 4.00001 2.75V8.05C4.00001 9.983 5.56702 11.55 7.50001 11.55C9.43301 11.55 11 9.983 11 8.05V2.75C11 2.47386 10.7762 2.25 10.5 2.25C10.2239 2.25 10 2.47386 10 2.75V8.05C10 9.43071 8.88072 10.55 7.50001 10.55C6.1193 10.55 5.00001 9.43071 5.00001 8.05V2.75ZM3.49998 13.1001C3.27906 13.1001 3.09998 13.2791 3.09998 13.5001C3.09998 13.721 3.27906 13.9001 3.49998 13.9001H11.5C11.7209 13.9001 11.9 13.721 11.9 13.5001C11.9 13.2791 11.7209 13.1001 11.5 13.1001H3.49998Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))});var ry=["color"],dm=(0,$.forwardRef)(function(e,t){var o=e.color,a=o===void 0?"currentColor":o,r=et(e,ry);return(0,$.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),(0,$.createElement)("path",{d:"M4.81812 4.68161C4.99386 4.85734 4.99386 5.14227 4.81812 5.318L3.08632 7.0498H11.9135L10.1817 5.318C10.006 5.14227 10.006 4.85734 10.1817 4.68161C10.3575 4.50587 10.6424 4.50587 10.8181 4.68161L13.3181 7.18161C13.4939 7.35734 13.4939 7.64227 13.3181 7.818L10.8181 10.318C10.6424 10.4937 10.3575 10.4937 10.1817 10.318C10.006 10.1423 10.006 9.85734 10.1817 9.68161L11.9135 7.9498H3.08632L4.81812 9.68161C4.99386 9.85734 4.99386 10.1423 4.81812 10.318C4.64239 10.4937 4.35746 10.4937 4.18173 10.318L1.68173 7.818C1.50599 7.64227 1.50599 7.35734 1.68173 7.18161L4.18173 4.68161C4.35746 4.50587 4.64239 4.50587 4.81812 4.68161Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))});var Ve=V(he(),1),Yk=V(Hc(),1);var kc=V(he(),1),Zr=V(ue(),1);function zr({title:e,defaultOpen:t=!0,children:o}){let[a,r]=kc.default.useState(t),l=kc.default.useCallback(n=>{r(n.currentTarget.open)},[]);return(0,Zr.jsxs)("details",{className:"property-panel-section",open:a,onToggle:l,children:[(0,Zr.jsxs)("summary",{className:"property-panel-section-trigger",children:[(0,Zr.jsx)("span",{children:e}),(0,Zr.jsx)(qp,{className:"property-panel-section-chevron",width:12,height:12,"aria-hidden":"true"})]}),(0,Zr.jsx)("div",{className:"property-panel-section-content",children:o})]})}var mm=["H1","H2","H3","H4","H5","H6","P","SPAN","A","BUTTON","LABEL","DIV","LI","TD","TH","CAPTION","FIGCAPTION","BLOCKQUOTE","LEGEND","SUMMARY","DT","DD","EM","STRONG"];var Y1=V(he(),1);var ia=V(he(),1),gm=V(ue(),1);function Jl(e,t=[]){let o=[];function a(l,n){let i=ia.createContext(n),u=o.length;o=[...o,n];let s=g=>{let{scope:f,children:p,...v}=g,b=f?.[e]?.[u]||i,x=ia.useMemo(()=>v,Object.values(v));return(0,gm.jsx)(b.Provider,{value:x,children:p})};s.displayName=l+"Provider";function d(g,f){let p=f?.[e]?.[u]||i,v=ia.useContext(p);if(v)return v;if(n!==void 0)return n;throw new Error(`\`${g}\` must be used within \`${l}\``)}return[s,d]}let r=()=>{let l=o.map(n=>ia.createContext(n));return function(i){let u=i?.[e]||l;return ia.useMemo(()=>({[`__scope${e}`]:{...i,[e]:u}}),[i,u])}};return r.scopeName=e,[a,iy(r,...t)]}function iy(...e){let t=e[0];if(e.length===1)return t;let o=()=>{let a=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(l){let n=a.reduce((i,{useScope:u,scopeName:s})=>{let g=u(l)[`__scope${s}`];return{...i,...g}},{});return ia.useMemo(()=>({[`__scope${t.scopeName}`]:n}),[n])}};return o.scopeName=t.scopeName,o}var xm=V(he(),1),my=V(qo(),1);var It=V(he(),1);var uy=V(he(),1);function hm(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Cm(...e){return t=>{let o=!1,a=e.map(r=>{let l=hm(r,t);return!o&&typeof l=="function"&&(o=!0),l});if(o)return()=>{for(let r=0;r<a.length;r++){let l=a[r];typeof l=="function"?l():hm(e[r],null)}}}}var Y0=V(ue(),1);function vm(e){let t=sy(e),o=It.forwardRef((a,r)=>{let{children:l,...n}=a,i=It.Children.toArray(l),u=i.find(cy);if(u){let s=u.props.children,d=i.map(g=>g===u?It.Children.count(s)>1?It.Children.only(null):It.isValidElement(s)?s.props.children:null:g);return(0,Y0.jsx)(t,{...n,ref:r,children:It.isValidElement(s)?It.cloneElement(s,void 0,d):null})}return(0,Y0.jsx)(t,{...n,ref:r,children:l})});return o.displayName=`${e}.Slot`,o}function sy(e){let t=It.forwardRef((o,a)=>{let{children:r,...l}=o;if(It.isValidElement(r)){let n=py(r),i=fy(l,r.props);return r.type!==It.Fragment&&(i.ref=a?Cm(a,n):n),It.cloneElement(r,i)}return It.Children.count(r)>1?It.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var dy=Symbol("radix.slottable");function cy(e){return It.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===dy}function fy(e,t){let o={...t};for(let a in t){let r=e[a],l=t[a];/^on[A-Z]/.test(a)?r&&l?o[a]=(...i)=>{let u=l(...i);return r(...i),u}:r&&(o[a]=r):a==="style"?o[a]={...r,...l}:a==="className"&&(o[a]=[r,l].filter(Boolean).join(" "))}return{...e,...o}}function py(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}var bm=V(ue(),1),gy=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Tc=gy.reduce((e,t)=>{let o=vm(`Primitive.${t}`),a=xm.forwardRef((r,l)=>{let{asChild:n,...i}=r,u=n?o:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,bm.jsx)(u,{...i,ref:l})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{});var Ot=V(he(),1);var WT=!!(typeof window<"u"&&window.document&&window.document.createElement);function ua(e,t,{checkForDefaultPrevented:o=!0}={}){return function(r){if(e?.(r),o===!1||!r.defaultPrevented)return t?.(r)}}var ja=V(he(),1);var wm=V(he(),1);function Lm(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Ec(...e){return t=>{let o=!1,a=e.map(r=>{let l=Lm(r,t);return!o&&typeof l=="function"&&(o=!0),l});if(o)return()=>{for(let r=0;r<a.length;r++){let l=a[r];typeof l=="function"?l():Lm(e[r],null)}}}}function _c(...e){return wm.useCallback(Ec(...e),e)}var St=V(he(),1);var W0=V(ue(),1);function Oc(e){let t=hy(e),o=St.forwardRef((a,r)=>{let{children:l,...n}=a,i=St.Children.toArray(l),u=i.find(vy);if(u){let s=u.props.children,d=i.map(g=>g===u?St.Children.count(s)>1?St.Children.only(null):St.isValidElement(s)?s.props.children:null:g);return(0,W0.jsx)(t,{...n,ref:r,children:St.isValidElement(s)?St.cloneElement(s,void 0,d):null})}return(0,W0.jsx)(t,{...n,ref:r,children:l})});return o.displayName=`${e}.Slot`,o}function hy(e){let t=St.forwardRef((o,a)=>{let{children:r,...l}=o;if(St.isValidElement(r)){let n=by(r),i=xy(l,r.props);return r.type!==St.Fragment&&(i.ref=a?Ec(a,n):n),St.cloneElement(r,i)}return St.Children.count(r)>1?St.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Cy=Symbol("radix.slottable");function vy(e){return St.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Cy}function xy(e,t){let o={...t};for(let a in t){let r=e[a],l=t[a];/^on[A-Z]/.test(a)?r&&l?o[a]=(...i)=>{let u=l(...i);return r(...i),u}:r&&(o[a]=r):a==="style"?o[a]={...r,...l}:a==="className"&&(o[a]=[r,l].filter(Boolean).join(" "))}return{...e,...o}}function by(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}var J0=V(ue(),1),Ly=V(he(),1);var wy=V(ue(),1);function ym(e){let t=e+"CollectionProvider",[o,a]=Jl(t),[r,l]=o(t,{collectionRef:{current:null},itemMap:new Map}),n=b=>{let{scope:x,children:m}=b,c=ja.default.useRef(null),h=ja.default.useRef(new Map).current;return(0,J0.jsx)(r,{scope:x,itemMap:h,collectionRef:c,children:m})};n.displayName=t;let i=e+"CollectionSlot",u=Oc(i),s=ja.default.forwardRef((b,x)=>{let{scope:m,children:c}=b,h=l(i,m),C=_c(x,h.collectionRef);return(0,J0.jsx)(u,{ref:C,children:c})});s.displayName=i;let d=e+"CollectionItemSlot",g="data-radix-collection-item",f=Oc(d),p=ja.default.forwardRef((b,x)=>{let{scope:m,children:c,...h}=b,C=ja.default.useRef(null),w=_c(x,C),S=l(d,m);return ja.default.useEffect(()=>(S.itemMap.set(C,{ref:C,...h}),()=>{S.itemMap.delete(C)})),(0,J0.jsx)(f,{[g]:"",ref:w,children:c})});p.displayName=d;function v(b){let x=l(e+"CollectionConsumer",b);return ja.default.useCallback(()=>{let c=x.collectionRef.current;if(!c)return[];let h=Array.from(c.querySelectorAll(`[${g}]`));return Array.from(x.itemMap.values()).sort((S,H)=>h.indexOf(S.ref.current)-h.indexOf(H.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:n,Slot:s,ItemSlot:p},v,a]}var Sm=V(he(),1);function Im(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Dc(...e){return t=>{let o=!1,a=e.map(r=>{let l=Im(r,t);return!o&&typeof l=="function"&&(o=!0),l});if(o)return()=>{for(let r=0;r<a.length;r++){let l=a[r];typeof l=="function"?l():Im(e[r],null)}}}}function Mm(...e){return Sm.useCallback(Dc(...e),e)}var Vc=V(he(),1);var Rm=V(he(),1),e2=globalThis?.document?Rm.useLayoutEffect:()=>{};var yy=Vc[" useId ".trim().toString()]||(()=>{}),Iy=0;function Hm(e){let[t,o]=Vc.useState(yy());return e2(()=>{e||o(a=>a??String(Iy++))},[e]),e||(t?`radix-${t}`:"")}var Tm=V(he(),1),Ty=V(qo(),1);var Mt=V(he(),1);var t2=V(ue(),1);function km(e){let t=Sy(e),o=Mt.forwardRef((a,r)=>{let{children:l,...n}=a,i=Mt.Children.toArray(l),u=i.find(Ry);if(u){let s=u.props.children,d=i.map(g=>g===u?Mt.Children.count(s)>1?Mt.Children.only(null):Mt.isValidElement(s)?s.props.children:null:g);return(0,t2.jsx)(t,{...n,ref:r,children:Mt.isValidElement(s)?Mt.cloneElement(s,void 0,d):null})}return(0,t2.jsx)(t,{...n,ref:r,children:l})});return o.displayName=`${e}.Slot`,o}function Sy(e){let t=Mt.forwardRef((o,a)=>{let{children:r,...l}=o;if(Mt.isValidElement(r)){let n=ky(r),i=Hy(l,r.props);return r.type!==Mt.Fragment&&(i.ref=a?Dc(a,n):n),Mt.cloneElement(r,i)}return Mt.Children.count(r)>1?Mt.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var My=Symbol("radix.slottable");function Ry(e){return Mt.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===My}function Hy(e,t){let o={...t};for(let a in t){let r=e[a],l=t[a];/^on[A-Z]/.test(a)?r&&l?o[a]=(...i)=>{let u=l(...i);return r(...i),u}:r&&(o[a]=r):a==="style"?o[a]={...r,...l}:a==="className"&&(o[a]=[r,l].filter(Boolean).join(" "))}return{...e,...o}}function ky(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}var Em=V(ue(),1),Ey=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ac=Ey.reduce((e,t)=>{let o=km(`Primitive.${t}`),a=Tm.forwardRef((r,l)=>{let{asChild:n,...i}=r,u=n?o:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,Em.jsx)(u,{...i,ref:l})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{});var en=V(he(),1);function _m(e){let t=en.useRef(e);return en.useEffect(()=>{t.current=e}),en.useMemo(()=>(...o)=>t.current?.(...o),[])}var Q1=V(he(),1);var o2=V(he(),1);var _y=Q1[" useInsertionEffect ".trim().toString()]||e2;function Ur({prop:e,defaultProp:t,onChange:o=()=>{},caller:a}){let[r,l,n]=Oy({defaultProp:t,onChange:o}),i=e!==void 0,u=i?e:r;{let d=Q1.useRef(e!==void 0);Q1.useEffect(()=>{let g=d.current;g!==i&&console.warn(`${a} is changing from ${g?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=i},[i,a])}let s=Q1.useCallback(d=>{if(i){let g=Dy(d)?d(e):d;g!==e&&n.current?.(g)}else l(d)},[i,e,l,n]);return[u,s]}function Oy({defaultProp:e,onChange:t}){let[o,a]=Q1.useState(e),r=Q1.useRef(o),l=Q1.useRef(t);return _y(()=>{l.current=t},[t]),Q1.useEffect(()=>{r.current!==o&&(l.current?.(o),r.current=o)},[o,r]),[o,a,l]}function Dy(e){return typeof e=="function"}var a2=V(he(),1),Vy=V(ue(),1),Ay=a2.createContext(void 0);function r2(e){let t=a2.useContext(Ay);return e||t||"ltr"}var Ga=V(ue(),1),Bc="rovingFocusGroup.onEntryFocus",By={bubbles:!1,cancelable:!0},Oi="RovingFocusGroup",[Nc,Om,Ny]=ym(Oi),[Py,Pc]=Jl(Oi,[Ny]),[Zy,zy]=Py(Oi),Dm=Ot.forwardRef((e,t)=>(0,Ga.jsx)(Nc.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,Ga.jsx)(Nc.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,Ga.jsx)(Uy,{...e,ref:t})})}));Dm.displayName=Oi;var Uy=Ot.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:o,orientation:a,loop:r=!1,dir:l,currentTabStopId:n,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:u,onEntryFocus:s,preventScrollOnEntryFocus:d=!1,...g}=e,f=Ot.useRef(null),p=Mm(t,f),v=r2(l),[b,x]=Ur({prop:n,defaultProp:i??null,onChange:u,caller:Oi}),[m,c]=Ot.useState(!1),h=_m(s),C=Om(o),w=Ot.useRef(!1),[S,H]=Ot.useState(0);return Ot.useEffect(()=>{let y=f.current;if(y)return y.addEventListener(Bc,h),()=>y.removeEventListener(Bc,h)},[h]),(0,Ga.jsx)(Zy,{scope:o,orientation:a,dir:v,loop:r,currentTabStopId:b,onItemFocus:Ot.useCallback(y=>x(y),[x]),onItemShiftTab:Ot.useCallback(()=>c(!0),[]),onFocusableItemAdd:Ot.useCallback(()=>H(y=>y+1),[]),onFocusableItemRemove:Ot.useCallback(()=>H(y=>y-1),[]),children:(0,Ga.jsx)(Ac.div,{tabIndex:m||S===0?-1:0,"data-orientation":a,...g,ref:p,style:{outline:"none",...e.style},onMouseDown:ua(e.onMouseDown,()=>{w.current=!0}),onFocus:ua(e.onFocus,y=>{let k=!w.current;if(y.target===y.currentTarget&&k&&!m){let O=new CustomEvent(Bc,By);if(y.currentTarget.dispatchEvent(O),!O.defaultPrevented){let F=C().filter(M=>M.focusable),ae=F.find(M=>M.active),K=F.find(M=>M.id===b),Q=[ae,K,...F].filter(Boolean).map(M=>M.ref.current);Bm(Q,d)}}w.current=!1}),onBlur:ua(e.onBlur,()=>c(!1))})})}),Vm="RovingFocusGroupItem",Am=Ot.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:o,focusable:a=!0,active:r=!1,tabStopId:l,children:n,...i}=e,u=Hm(),s=l||u,d=zy(Vm,o),g=d.currentTabStopId===s,f=Om(o),{onFocusableItemAdd:p,onFocusableItemRemove:v,currentTabStopId:b}=d;return Ot.useEffect(()=>{if(a)return p(),()=>v()},[a,p,v]),(0,Ga.jsx)(Nc.ItemSlot,{scope:o,id:s,focusable:a,active:r,children:(0,Ga.jsx)(Ac.span,{tabIndex:g?0:-1,"data-orientation":d.orientation,...i,ref:t,onMouseDown:ua(e.onMouseDown,x=>{a?d.onItemFocus(s):x.preventDefault()}),onFocus:ua(e.onFocus,()=>d.onItemFocus(s)),onKeyDown:ua(e.onKeyDown,x=>{if(x.key==="Tab"&&x.shiftKey){d.onItemShiftTab();return}if(x.target!==x.currentTarget)return;let m=$y(x,d.orientation,d.dir);if(m!==void 0){if(x.metaKey||x.ctrlKey||x.altKey||x.shiftKey)return;x.preventDefault();let h=f().filter(C=>C.focusable).map(C=>C.ref.current);if(m==="last")h.reverse();else if(m==="prev"||m==="next"){m==="prev"&&h.reverse();let C=h.indexOf(x.currentTarget);h=d.loop?jy(h,C+1):h.slice(C+1)}setTimeout(()=>Bm(h))}}),children:typeof n=="function"?n({isCurrentTabStop:g,hasTabStop:b!=null}):n})})});Am.displayName=Vm;var Fy={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function qy(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function $y(e,t,o){let a=qy(e.key,o);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(a))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(a)))return Fy[a]}function Bm(e,t=!1){let o=document.activeElement;for(let a of e)if(a===o||(a.focus({preventScroll:t}),document.activeElement!==o))return}function jy(e,t){return e.map((o,a)=>e[(t+a)%e.length])}var Nm=Dm,Pm=Am;var jm=V(he(),1);var Fm=V(he(),1),eI=V(qo(),1);var Rt=V(he(),1);var Ky=V(he(),1);function Zm(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function zm(...e){return t=>{let o=!1,a=e.map(r=>{let l=Zm(r,t);return!o&&typeof l=="function"&&(o=!0),l});if(o)return()=>{for(let r=0;r<a.length;r++){let l=a[r];typeof l=="function"?l():Zm(e[r],null)}}}}var l2=V(ue(),1);function Um(e){let t=Xy(e),o=Rt.forwardRef((a,r)=>{let{children:l,...n}=a,i=Rt.Children.toArray(l),u=i.find(Yy);if(u){let s=u.props.children,d=i.map(g=>g===u?Rt.Children.count(s)>1?Rt.Children.only(null):Rt.isValidElement(s)?s.props.children:null:g);return(0,l2.jsx)(t,{...n,ref:r,children:Rt.isValidElement(s)?Rt.cloneElement(s,void 0,d):null})}return(0,l2.jsx)(t,{...n,ref:r,children:l})});return o.displayName=`${e}.Slot`,o}function Xy(e){let t=Rt.forwardRef((o,a)=>{let{children:r,...l}=o;if(Rt.isValidElement(r)){let n=Jy(r),i=Wy(l,r.props);return r.type!==Rt.Fragment&&(i.ref=a?zm(a,n):n),Rt.cloneElement(r,i)}return Rt.Children.count(r)>1?Rt.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Qy=Symbol("radix.slottable");function Yy(e){return Rt.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Qy}function Wy(e,t){let o={...t};for(let a in t){let r=e[a],l=t[a];/^on[A-Z]/.test(a)?r&&l?o[a]=(...i)=>{let u=l(...i);return r(...i),u}:r&&(o[a]=r):a==="style"?o[a]={...r,...l}:a==="className"&&(o[a]=[r,l].filter(Boolean).join(" "))}return{...e,...o}}function Jy(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}var qm=V(ue(),1),tI=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],$m=tI.reduce((e,t)=>{let o=Um(`Primitive.${t}`),a=Fm.forwardRef((r,l)=>{let{asChild:n,...i}=r,u=n?o:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,qm.jsx)(u,{...i,ref:l})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{});var Gm=V(ue(),1),Km="Toggle",Zc=jm.forwardRef((e,t)=>{let{pressed:o,defaultPressed:a,onPressedChange:r,...l}=e,[n,i]=Ur({prop:o,onChange:r,defaultProp:a??!1,caller:Km});return(0,Gm.jsx)($m.button,{type:"button","aria-pressed":n,"data-state":n?"on":"off","data-disabled":e.disabled?"":void 0,...l,ref:t,onClick:ua(e.onClick,()=>{e.disabled||i(!n)})})});Zc.displayName=Km;var n1=V(ue(),1),Ka="ToggleGroup",[Qm,qE]=Jl(Ka,[Pc]),Ym=Pc(),zc=Y1.default.forwardRef((e,t)=>{let{type:o,...a}=e;if(o==="single")return(0,n1.jsx)(oI,{...a,ref:t});if(o==="multiple")return(0,n1.jsx)(aI,{...a,ref:t});throw new Error(`Missing prop \`type\` expected on \`${Ka}\``)});zc.displayName=Ka;var[Wm,Jm]=Qm(Ka),oI=Y1.default.forwardRef((e,t)=>{let{value:o,defaultValue:a,onValueChange:r=()=>{},...l}=e,[n,i]=Ur({prop:o,defaultProp:a??"",onChange:r,caller:Ka});return(0,n1.jsx)(Wm,{scope:e.__scopeToggleGroup,type:"single",value:Y1.default.useMemo(()=>n?[n]:[],[n]),onItemActivate:i,onItemDeactivate:Y1.default.useCallback(()=>i(""),[i]),children:(0,n1.jsx)(eg,{...l,ref:t})})}),aI=Y1.default.forwardRef((e,t)=>{let{value:o,defaultValue:a,onValueChange:r=()=>{},...l}=e,[n,i]=Ur({prop:o,defaultProp:a??[],onChange:r,caller:Ka}),u=Y1.default.useCallback(d=>i((g=[])=>[...g,d]),[i]),s=Y1.default.useCallback(d=>i((g=[])=>g.filter(f=>f!==d)),[i]);return(0,n1.jsx)(Wm,{scope:e.__scopeToggleGroup,type:"multiple",value:n,onItemActivate:u,onItemDeactivate:s,children:(0,n1.jsx)(eg,{...l,ref:t})})});zc.displayName=Ka;var[rI,lI]=Qm(Ka),eg=Y1.default.forwardRef((e,t)=>{let{__scopeToggleGroup:o,disabled:a=!1,rovingFocus:r=!0,orientation:l,dir:n,loop:i=!0,...u}=e,s=Ym(o),d=r2(n),g={role:"group",dir:d,...u};return(0,n1.jsx)(rI,{scope:o,rovingFocus:r,disabled:a,children:r?(0,n1.jsx)(Nm,{asChild:!0,...s,orientation:l,dir:d,loop:i,children:(0,n1.jsx)(Tc.div,{...g,ref:t})}):(0,n1.jsx)(Tc.div,{...g,ref:t})})}),n2="ToggleGroupItem",tg=Y1.default.forwardRef((e,t)=>{let o=Jm(n2,e.__scopeToggleGroup),a=lI(n2,e.__scopeToggleGroup),r=Ym(e.__scopeToggleGroup),l=o.value.includes(e.value),n=a.disabled||e.disabled,i={...e,pressed:l,disabled:n},u=Y1.default.useRef(null);return a.rovingFocus?(0,n1.jsx)(Pm,{asChild:!0,...r,focusable:!n,active:l,ref:u,children:(0,n1.jsx)(Xm,{...i,ref:t})}):(0,n1.jsx)(Xm,{...i,ref:t})});tg.displayName=n2;var Xm=Y1.default.forwardRef((e,t)=>{let{__scopeToggleGroup:o,value:a,...r}=e,l=Jm(n2,o),n={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},i=l.type==="single"?n:void 0;return(0,n1.jsx)(Zc,{...i,...r,ref:t,onPressedChange:u=>{u?l.onItemActivate(a):l.onItemDeactivate(a)}})}),og=zc,ag=tg;var rg=V(he(),1);var i2=V(ue(),1),iI={border:"none",margin:0,padding:0,minWidth:0},uI={color:"var(--dmp-color-foreground)",fontSize:"var(--dmp-font-size-label)",display:"block",marginBottom:"5px",padding:0};function W1({label:e,id:t,className:o,children:a}){let r=`${t}-legend`;return(0,i2.jsxs)("fieldset",{style:iI,className:o,"aria-labelledby":r,children:[(0,i2.jsx)("legend",{id:r,style:uI,children:e}),a]})}var u2=V(ue(),1);function Do({label:e,options:t,value:o,onChange:a,id:r="radio-group"}){let l=rg.default.useCallback(n=>{n&&typeof a=="function"&&a(n)},[a]);return(0,u2.jsx)(W1,{label:e,id:r,className:"radioGroupEditor-fieldset",children:(0,u2.jsx)(og,{type:"single",value:o,onValueChange:l,className:"radioGroupEditor-root","aria-label":e,children:t.map(n=>(0,u2.jsx)(ag,{value:n.value,className:"radioGroupEditor-item","aria-label":n.label,title:n.label,children:n.icon??n.label},n.value))})})}var tn=V(ue(),1),ng=[{value:"none",labelKey:"none",defaultLabel:"None",icon:(0,tn.jsx)($a,{width:14,height:14})},{value:"solid",labelKey:"solid",defaultLabel:"Solid",icon:(0,tn.jsx)(Fp,{width:14,height:14})},{value:"dashed",labelKey:"dashed",defaultLabel:"Dashed",icon:(0,tn.jsx)(zp,{width:14,height:14})},{value:"dotted",labelKey:"dotted",defaultLabel:"Dotted",icon:(0,tn.jsx)(Up,{width:14,height:14})}],lg=new Set(ng.map(e=>e.value));function sI(e){if(!e)return"none";if(lg.has(e))return e;let t=e.split(/\s+/)[0]??"";return lg.has(t)?t:"none"}function ig({label:e="Border Style",value:t,onChange:o,id:a="border-style",optionLabels:r}){let l=ng.map(n=>({value:n.value,label:r?.[n.labelKey]??n.defaultLabel,icon:n.icon}));return(0,tn.jsx)(Do,{label:e,options:l,value:sI(t),onChange:o,id:a})}var Dt=V(he(),1);function vt(e,t){return e.replace(/\{(\d+)\}/g,(o,a)=>{let r=t[Number(a)];return r===void 0?o:String(r)})}function D1(e,t){if(t==null||typeof t!="object"||typeof e!="object")return e;let o={...e},a=t;for(let r of Object.keys(o)){let l=o[r],n=a[r];l!==null&&typeof l=="object"&&!Array.isArray(l)?o[r]=D1(l,n):typeof n=="string"&&(o[r]=n)}return o}var ug=[{path:"general.headerTitle"},{path:"general.emptyPlaceholder"},{path:"general.inlineEditEditable"},{path:"general.inlineEditNonEditable"},{path:"general.addToChatContext"},{path:"general.ariaPropertyPanel"},{path:"general.ariaSelectedComponent"},{path:"general.ariaElementStyling"},{path:"general.closePanel"},{path:"sections.imageSource"},{path:"sections.background"},{path:"sections.spacing"},{path:"sections.border"},{path:"sections.typography"},{path:"sections.elementDimensions"},{path:"instances.imageSource"},{path:"instances.backgroundColor"},{path:"instances.padding"},{path:"instances.margin"},{path:"instances.borderRadius"},{path:"instances.borderWeight"},{path:"instances.borderStyle"},{path:"instances.borderColor"},{path:"instances.fontFamily"},{path:"instances.fontSize"},{path:"instances.fontWeight"},{path:"instances.fontStyle"},{path:"instances.textColor"},{path:"instances.textAlignment"},{path:"instances.textFormatting"},{path:"instances.textTransform"},{path:"instances.lineHeight"},{path:"instances.letterSpacing"},{path:"instances.width"},{path:"instances.minWidth"},{path:"instances.maxWidth"},{path:"instances.height"},{path:"instances.minHeight"},{path:"instances.maxHeight"},{path:"instances.overflow"},{path:"editors.image.tabCms"},{path:"editors.image.tabLocal"},{path:"editors.image.tabUrl"},{path:"editors.image.ariaTablist"},{path:"editors.image.clearImage"},{path:"editors.image.chooseFile"},{path:"editors.image.ariaChooseFile"},{path:"editors.image.useThisImage"},{path:"editors.image.ariaImageUrl"},{path:"editors.image.urlPlaceholder"},{path:"editors.image.previewAlt"},{path:"editors.image.altText"},{path:"editors.image.altPlaceholder"},{path:"editors.image.width"},{path:"editors.image.height"},{path:"editors.image.autoPlaceholder"},{path:"editors.image.workspace"},{path:"editors.image.selectWorkspace"},{path:"editors.image.selectImage"},{path:"editors.image.loadingWorkspaces"},{path:"editors.image.noWorkspaces"},{path:"editors.image.loadingImages"},{path:"editors.image.noImages"},{path:"editors.image.loadingMore"},{path:"editors.image.untitled"},{path:"editors.image.downloadingImage"},{path:"editors.image.downloadFailed"},{path:"editors.image.closePicker"},{path:"editors.image.cancel"},{path:"editors.image.done"},{path:"editors.image.pickerTitle",placeholders:[0]},{path:"editors.image.pickerError",placeholders:[0]},{path:"editors.boxDimension.sides.top"},{path:"editors.boxDimension.sides.right"},{path:"editors.boxDimension.sides.bottom"},{path:"editors.boxDimension.sides.left"},{path:"editors.boxDimension.corners.topLeft"},{path:"editors.boxDimension.corners.topRight"},{path:"editors.boxDimension.corners.bottomRight"},{path:"editors.boxDimension.corners.bottomLeft"},{path:"editors.boxDimension.makeEqual"},{path:"editors.boxDimension.ariaUnit",placeholders:[0]},{path:"editors.boxDimension.ariaSide",placeholders:[0,1]},{path:"editors.dimension.ariaValue",placeholders:[0]},{path:"editors.dimension.ariaUnit",placeholders:[0]},{path:"editors.color.placeholder"},{path:"editors.color.ariaValue",placeholders:[0]},{path:"editors.color.ariaOpenPicker",placeholders:[0,1]},{path:"editors.color.ariaPicker",placeholders:[0]},{path:"editors.color.ariaSaturation",placeholders:[0,1]},{path:"editors.color.ariaEyedropper"},{path:"editors.color.ariaHue"},{path:"editors.color.ariaAlphaSlider"},{path:"editors.color.ariaHex"},{path:"editors.color.ariaChannel",placeholders:[0,1,2,3]},{path:"editors.color.ariaAlphaInput"},{path:"editors.color.ariaFormatCycle",placeholders:[0]},{path:"editors.color.titleFormatCycle"},{path:"editors.color.gradientValue"},{path:"editors.color.imageValue"},{path:"editors.fontWeight.options.thin"},{path:"editors.fontWeight.options.extraLight"},{path:"editors.fontWeight.options.light"},{path:"editors.fontWeight.options.regular"},{path:"editors.fontWeight.options.medium"},{path:"editors.fontWeight.options.semiBold"},{path:"editors.fontWeight.options.bold"},{path:"editors.fontWeight.options.extraBold"},{path:"editors.fontWeight.options.black"},{path:"editors.fontStyle.options.normal"},{path:"editors.fontStyle.options.italic"},{path:"editors.borderStyle.options.none"},{path:"editors.borderStyle.options.solid"},{path:"editors.borderStyle.options.dashed"},{path:"editors.borderStyle.options.dotted"},{path:"editors.overflow.options.visible"},{path:"editors.overflow.options.hidden"},{path:"editors.overflow.options.scroll"},{path:"editors.overflow.options.auto"},{path:"editors.textAlignment.options.left"},{path:"editors.textAlignment.options.center"},{path:"editors.textAlignment.options.right"},{path:"editors.textAlignment.options.justify"},{path:"editors.textDecoration.options.none"},{path:"editors.textDecoration.options.underline"},{path:"editors.textDecoration.options.lineThrough"},{path:"editors.textTransform.options.none"},{path:"editors.textTransform.options.uppercase"},{path:"editors.textTransform.options.lowercase"},{path:"editors.textTransform.options.capitalize"},{path:"editors.picklist.ariaReset",placeholders:[0]},{path:"history.changeLimitTitle"},{path:"history.changeLimitBody"}];function dI(e,t){return t.split(".").reduce((o,a)=>{if(o&&typeof o=="object")return o[a]},e)}function cI(e){let t=new Set;for(let o of e.matchAll(/\{(\d+)\}/g))t.add(Number(o[1]));return Array.from(t).sort((o,a)=>o-a)}function Uc(e){let t=[];if(!e||typeof e!="object")return["labels is not an object"];for(let o of ug){let{path:a,placeholders:r}=o,l=dI(e,a);if(typeof l!="string"){t.push(`missing or non-string label: ${a}`);continue}if(r){let n=cI(l),i=[...r].sort((s,d)=>s-d);(n.length!==i.length||n.some((s,d)=>s!==i[d]))&&t.push(`placeholder mismatch at ${a}: expected {${i.join(",")}}, got {${n.join(",")}}`)}}return t}var s2=[{value:"px",label:"px"},{value:"em",label:"em"},{value:"rem",label:"rem"},{value:"%",label:"%"},{value:"pt",label:"pt"},{value:"vw",label:"vw"},{value:"vh",label:"vh"},{value:"vmin",label:"vmin"},{value:"vmax",label:"vmax"},{value:"ch",label:"ch"},{value:"ex",label:"ex"},{value:"cm",label:"cm"},{value:"mm",label:"mm"},{value:"in",label:"in"},{value:"pc",label:"pc"}],po={px:{min:0,max:1e4,step:1,decimals:1},em:{min:0,max:100,step:.1,decimals:3},rem:{min:0,max:100,step:.1,decimals:3},"%":{min:0,max:1e3,step:1,decimals:2},pt:{min:0,max:1e4,step:1,decimals:1},vw:{min:0,max:100,step:.1,decimals:1},vh:{min:0,max:100,step:.1,decimals:1},vmin:{min:0,max:100,step:.1,decimals:1},vmax:{min:0,max:100,step:.1,decimals:1},ch:{min:0,max:100,step:.1,decimals:1},ex:{min:0,max:100,step:.1,decimals:1},cm:{min:0,max:100,step:.1,decimals:2},mm:{min:0,max:1e3,step:1,decimals:1},in:{min:0,max:50,step:.01,decimals:2},pc:{min:0,max:500,step:1,decimals:0}},fI=po.px??{min:0,max:1e4,step:1,decimals:0};function Di(e){let t=e.map(o=>o.value).join("|");return new RegExp(`^(-?\\d*\\.?\\d+)\\s*(${t})$`)}var pI=Di(s2);function h1(e,t="px",o=pI){if(e==null||e==="")return{numericValue:"",unit:t};let a=String(e).trim();if(a==="")return{numericValue:"",unit:t};let r=a.match(o);if(r&&r[1]!=null&&r[2]!=null)return{numericValue:parseFloat(r[1]),unit:r[2]};let l=parseFloat(a);return isNaN(l)?{numericValue:"",unit:t}:{numericValue:l,unit:t}}function Fc(e,t=po){return t[e]||fI}function mo(e,t,o=po){let a=Fc(t,o);return Math.min(a.max,Math.max(a.min,e))}function go(e,t,o=po){if(e===""||e==null||isNaN(e))return"";let a=Fc(t,o);return Number(Number(e).toFixed(a.decimals))}function d2(e,t){return e===""||e==null||isNaN(e)?"":`${e}${t}`}function c2(e,t,o,a,r=po){let l=parseFloat(e)||0,n=Fc(a,r),i=o?10:1,u=(t==="ArrowUp"?1:-1)*n.step*i,s=mo(l+u,a,r);return String(go(s,a,r))}function qc({top:e,right:t,bottom:o,left:a}){return`${e||"0px"} ${t||"0px"} ${o||"0px"} ${a||"0px"}`}function on(e){let t={top:"",right:"",bottom:"",left:""};if(!e||typeof e!="string")return t;let o=e.trim().split(/\s+/),[a="",r="",l="",n=""]=o;return o.length===0||o.length===1&&a===""?t:o.length===1?{top:a,right:a,bottom:a,left:a}:o.length===2?{top:a,right:r,bottom:a,left:r}:o.length===3?{top:a,right:r,bottom:l,left:r}:{top:a,right:r,bottom:l,left:n}}function J1(...e){return s2.filter(t=>e.includes(t.value))}var Vo={width:{units:J1("px","em","rem","vw","ch","%"),icon:dm},minWidth:{units:J1("px","em","rem","vw","ch","%")},maxWidth:{units:J1("px","em","rem","vw","ch","%")},height:{units:J1("px","em","rem","vh","%"),icon:Kp},minHeight:{units:J1("px","em","rem","vh","%")},maxHeight:{units:J1("px","em","rem","vh","%")},fontSize:{units:J1("px","em","rem","%","pt"),constraints:{...po,px:{min:0,max:1e3,step:1,decimals:0},"%":{min:0,max:1e3,step:1,decimals:0}},icon:Gp},lineHeight:{units:[{value:"",label:"\xD7"},{value:"px",label:"px"},{value:"em",label:"em"},{value:"rem",label:"rem"},{value:"%",label:"%"}],defaultUnit:"",constraints:{"":{min:0,max:10,step:.1,decimals:2},px:{min:0,max:1e3,step:1,decimals:2},em:{min:0,max:100,step:.1,decimals:3},rem:{min:0,max:100,step:.1,decimals:3},"%":{min:0,max:1e3,step:1,decimals:2}},icon:em},letterSpacing:{units:J1("px","em","rem"),constraints:{...po,px:{min:-100,max:1e3,step:.5,decimals:1},em:{min:-10,max:100,step:.01,decimals:3},rem:{min:-10,max:100,step:.01,decimals:3}},icon:Jp}},Vi={padding:{units:J1("px","em","rem","%")},margin:{units:J1("px","em","rem","%")},borderRadius:{units:J1("px","em","rem","%"),sideLabelKind:"corners"},borderWidth:{units:J1("px","em","rem")}};var $t=V(ue(),1),mI=[{value:"px",label:"px"},{value:"em",label:"em"},{value:"rem",label:"rem"},{value:"%",label:"%"}],an=["top","right","bottom","left"],gI={sides:{top:"Top",right:"Right",bottom:"Bottom",left:"Left"},corners:{topLeft:"Top Left",topRight:"Top Right",bottomRight:"Bottom Right",bottomLeft:"Bottom Left"},makeEqual:"Make all values equal",ariaUnit:"{0} unit",ariaSide:"{0} {1}"};function hI(e,t){return t==="corners"?[e.corners.topLeft,e.corners.topRight,e.corners.bottomRight,e.corners.bottomLeft]:[e.sides.top,e.sides.right,e.sides.bottom,e.sides.left]}function Ai(e){return typeof e=="string"&&e.trim().toLowerCase()==="auto"}function $c(e,t,o){let a={top:"",right:"",bottom:"",left:""};for(let r of an){let l=e[r];if(l==null||l==="")a[r]="";else if(Ai(l))a[r]="auto";else{let n=h1(String(l),t,o);a[r]=n.numericValue!==""?String(n.numericValue):""}}return a}function jc(e){let t=e.top||"";return t===(e.right||"")&&t===(e.bottom||"")&&t===(e.left||"")}function sg(e,t,o){for(let a of an){let r=e[a];if(r!=null&&r!==""&&r!=="0"){let l=h1(String(r),"px",t);if(l.unit&&o.has(l.unit))return l.unit}}return"px"}function CI(e,t,o){if(Ai(e))return"auto";let a=parseFloat(e);if(e===""||isNaN(a))return"";let r=mo(a,t,o);return`${go(r,t,o)}${t}`}function dg(e){if(!e)return"";let t=on(e);return!t.top&&!t.right&&!t.bottom&&!t.left?"":qc(t)}function Bi({label:e,value:t="",onChange:o,id:a="",units:r=mI,constraints:l=po,allowAuto:n=!1,sideLabelKind:i="sides",sideIcons:u,placeholder:s="",aria:d}){let g=D1(gI,d),f=hI(g,i),p=Dt.default.useRef(o);p.current=o;let v=Dt.default.useMemo(()=>Di(r),[r]),b=Dt.default.useMemo(()=>new Set(r.map(M=>M.value)),[r]),x=Dt.default.useMemo(()=>{let M={top:"",right:"",bottom:"",left:""};if(!s)return M;let I=on(s),R={...M};for(let L of an){let T=I[L];if(!T)continue;let Z=h1(T,"px",v);Z.numericValue!==""&&(R[L]=String(Z.numericValue))}return R},[s,v]),m=Dt.default.useMemo(()=>on(t),[]),[c,h]=Dt.default.useState(()=>sg(m,v,b)),[C,w]=Dt.default.useState(()=>$c(m,c,v)),[S,H]=Dt.default.useState(()=>jc(C)),y=Dt.default.useRef(dg(t));Dt.default.useEffect(()=>{if(t===y.current)return;let M=dg(t);if(M===y.current)return;y.current=M;let I=on(t),R=sg(I,v,b);h(R);let L=$c(I,R,v);w(L),H(jc(L))},[t,v,b]);let k=Dt.default.useCallback((M,I)=>{let R={top:"",right:"",bottom:"",left:""},L=!0;for(let Z of an)R[Z]=CI(M[Z],I,l),R[Z]!==""&&(L=!1);let T=L?"":qc(R);T!==y.current&&(y.current=T,typeof p.current=="function"&&p.current(T))},[l]),O=Dt.default.useCallback((M,I)=>{w(S?{top:I,right:I,bottom:I,left:I}:L=>({...L,[M]:I}));let R=h1(I,c,v);R.numericValue!==""&&R.unit&&b.has(R.unit)&&R.unit!==c&&h(R.unit)},[S,c,v,b]),F=Dt.default.useCallback((M,I)=>{let R=I.clipboardData.getData("text"),L=h1(R,c,v);if(L.numericValue!==""&&L.unit&&b.has(L.unit)){I.preventDefault();let T=mo(L.numericValue,L.unit,l),Z=String(go(T,L.unit,l)),z=S?{top:Z,right:Z,bottom:Z,left:Z}:{...C,[M]:Z};w(z),L.unit!==c&&h(L.unit),k(z,L.unit)}},[S,C,c,v,b,l,k]),ae=Dt.default.useCallback(M=>{let I=C[M];if(I===""){let z=S?{top:"",right:"",bottom:"",left:""}:{...C,[M]:""};w(z),k(z,c);return}if(n&&Ai(I)){let z="auto",W=S?{top:z,right:z,bottom:z,left:z}:{...C,[M]:z};w(W),k(W,c);return}let R=parseFloat(I);if(isNaN(R)){let z=on(y.current);w($c(z,c,v));return}let L=mo(R,c,l),T=String(go(L,c,l)),Z=S?{top:T,right:T,bottom:T,left:T}:{...C,[M]:T};w(Z),k(Z,c)},[C,S,c,v,l,k,n]),K=Dt.default.useCallback((M,I)=>{if(I.key==="Enter"){I.currentTarget.blur();return}if(I.key==="ArrowUp"||I.key==="ArrowDown"){if(Ai(C[M]))return;I.preventDefault();let R=c2(C[M],I.key,I.shiftKey,c,l);if(R===null)return;let L=S?{top:R,right:R,bottom:R,left:R}:{...C,[M]:R};w(L),k(L,c)}},[C,S,c,l,k]),B=Dt.default.useCallback(()=>{if(!S&&!jc(C)){let M=C.top,I={top:M,right:M,bottom:M,left:M};w(I),k(I,c)}H(M=>!M)},[S,C,c,k]),Q=Dt.default.useCallback(M=>{let I=M.target.value;if(!b.has(I))return;h(I);let R={top:"",right:"",bottom:"",left:""};for(let L of an){let T=C[L];if(Ai(T))R[L]="auto";else if(T!==""){let Z=parseFloat(T);if(isNaN(Z))R[L]=T;else{let z=mo(Z,I,l);R[L]=String(go(z,I,l))}}else R[L]=""}w(R),k(R,I)},[C,b,l,k]);return(0,$t.jsxs)(W1,{label:e,id:a,className:"boxDimensionEditor-fieldset",children:[(0,$t.jsx)("div",{className:"boxDimensionEditor-header",children:(0,$t.jsx)("div",{className:"boxDimensionEditor-controls",children:(0,$t.jsx)("select",{className:"boxDimensionEditor-unit",value:c,onChange:Q,"aria-label":vt(g.ariaUnit,[e]),children:r.map(M=>(0,$t.jsx)("option",{value:M.value,children:M.label},M.value))})})}),(0,$t.jsx)("div",{className:"boxDimensionEditor-grid",children:an.map((M,I)=>{let R=u&&u[I];return(0,$t.jsxs)("div",{className:"boxDimensionEditor-cell",children:[(0,$t.jsx)("label",{htmlFor:`${a}-${M}`,className:"boxDimensionEditor-label",children:f[I]}),(0,$t.jsxs)("div",{className:"boxDimensionEditor-input-row",children:[R&&(0,$t.jsx)("span",{className:"boxDimensionEditor-input-icon","aria-hidden":"true",children:(0,$t.jsx)(R,{size:12,width:12,height:12})}),(0,$t.jsx)("input",{id:`${a}-${M}`,type:"text",className:R?"boxDimensionEditor-input boxDimensionEditor-input--with-icon":"boxDimensionEditor-input",value:C[M],placeholder:x[M],onChange:L=>O(M,L.target.value),onPaste:L=>F(M,L),onBlur:()=>ae(M),onKeyDown:L=>K(M,L),"aria-label":vt(g.ariaSide,[e,f[I]??""]),autoComplete:"off",spellCheck:"false"})]})]},M)})}),(0,$t.jsxs)("label",{className:"boxDimensionEditor-equal",children:[(0,$t.jsx)("input",{type:"checkbox",className:"boxDimensionEditor-equal-checkbox",checked:S,onChange:B}),(0,$t.jsx)("span",{className:"boxDimensionEditor-equal-label",children:g.makeEqual})]})]})}var p2=V(he());var f2=(...e)=>e.filter((t,o,a)=>!!t&&t.trim()!==""&&a.indexOf(t)===o).join(" ").trim();var cg=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();var fg=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,o,a)=>a?a.toUpperCase():o.toLowerCase());var Gc=e=>{let t=fg(e);return t.charAt(0).toUpperCase()+t.slice(1)};var Ni=V(he());var pg={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var mg=e=>{for(let t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};var gg=(0,Ni.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:o=2,absoluteStrokeWidth:a,className:r="",children:l,iconNode:n,...i},u)=>(0,Ni.createElement)("svg",{ref:u,...pg,width:t,height:t,stroke:e,strokeWidth:a?Number(o)*24/Number(t):o,className:f2("lucide",r),...!l&&!mg(i)&&{"aria-hidden":"true"},...i},[...n.map(([s,d])=>(0,Ni.createElement)(s,d)),...Array.isArray(l)?l:[l]]));var hg=(e,t)=>{let o=(0,p2.forwardRef)(({className:a,...r},l)=>(0,p2.createElement)(gg,{ref:l,iconNode:t,className:f2(`lucide-${cg(Gc(e))}`,`lucide-${e}`,a),...r}));return o.displayName=Gc(e),o};var vI=[["path",{d:"m12 9-8.414 8.414A2 2 0 0 0 3 18.828v1.344a2 2 0 0 1-.586 1.414A2 2 0 0 1 3.828 21h1.344a2 2 0 0 0 1.414-.586L15 12",key:"1y3wsu"}],["path",{d:"m18 9 .4.4a1 1 0 1 1-3 3l-3.8-3.8a1 1 0 1 1 3-3l.4.4 3.4-3.4a1 1 0 1 1 3 3z",key:"110lr1"}],["path",{d:"m2 22 .414-.414",key:"jhxm08"}]],Pi=hg("pipette",vI);var tt=V(he(),1);var xe=V(he(),1),Cg={exports:{}},Zi={};var vg;function xI(){if(vg)return Zi;vg=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function o(a,r,l){var n=null;if(l!==void 0&&(n=""+l),r.key!==void 0&&(n=""+r.key),"key"in r){l={};for(var i in r)i!=="key"&&(l[i]=r[i])}else l=r;return r=l.ref,{$$typeof:e,type:a,key:n,ref:r!==void 0?r:null,props:l}}return Zi.Fragment=t,Zi.jsx=o,Zi.jsxs=o,Zi}var xg;function bI(){return xg||(xg=1,Cg.exports=xI()),Cg.exports}var pt=bI();function Hg(e){var t,o,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(o=Hg(e[t]))&&(a&&(a+=" "),a+=o)}else for(o in e)e[o]&&(a&&(a+=" "),a+=o);return a}function LI(){for(var e,t,o=0,a="",r=arguments.length;o<r;o++)(e=arguments[o])&&(t=Hg(e))&&(a&&(a+=" "),a+=t);return a}var t5="-",wI=e=>{let t=II(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:r=>{let l=r.split(t5);return l[0]===""&&l.length!==1&&l.shift(),kg(l,t)||yI(r)},getConflictingClassGroupIds:(r,l)=>{let n=o[r]||[];return l&&a[r]?[...n,...a[r]]:n}}},kg=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],a=t.nextPart.get(o),r=a?kg(e.slice(1),a):void 0;if(r)return r;if(t.validators.length===0)return;let l=e.join(t5);return t.validators.find(({validator:n})=>n(l))?.classGroupId},bg=/^\[(.+)\]$/,yI=e=>{if(bg.test(e)){let t=bg.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},II=e=>{let{theme:t,classGroups:o}=e,a={nextPart:new Map,validators:[]};for(let r in o)Qc(o[r],a,r,t);return a},Qc=(e,t,o,a)=>{e.forEach(r=>{if(typeof r=="string"){let l=r===""?t:Lg(t,r);l.classGroupId=o;return}if(typeof r=="function"){if(SI(r)){Qc(r(a),t,o,a);return}t.validators.push({validator:r,classGroupId:o});return}Object.entries(r).forEach(([l,n])=>{Qc(n,Lg(t,l),o,a)})})},Lg=(e,t)=>{let o=e;return t.split(t5).forEach(a=>{o.nextPart.has(a)||o.nextPart.set(a,{nextPart:new Map,validators:[]}),o=o.nextPart.get(a)}),o},SI=e=>e.isThemeGetter,MI=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,a=new Map,r=(l,n)=>{o.set(l,n),t++,t>e&&(t=0,a=o,o=new Map)};return{get(l){let n=o.get(l);if(n!==void 0)return n;if((n=a.get(l))!==void 0)return r(l,n),n},set(l,n){o.has(l)?o.set(l,n):r(l,n)}}},Yc="!",Wc=":",RI=Wc.length,HI=e=>{let{prefix:t,experimentalParseClassName:o}=e,a=r=>{let l=[],n=0,i=0,u=0,s;for(let v=0;v<r.length;v++){let b=r[v];if(n===0&&i===0){if(b===Wc){l.push(r.slice(u,v)),u=v+RI;continue}if(b==="/"){s=v;continue}}b==="["?n++:b==="]"?n--:b==="("?i++:b===")"&&i--}let d=l.length===0?r:r.substring(u),g=kI(d),f=g!==d,p=s&&s>u?s-u:void 0;return{modifiers:l,hasImportantModifier:f,baseClassName:g,maybePostfixModifierPosition:p}};if(t){let r=t+Wc,l=a;a=n=>n.startsWith(r)?l(n.substring(r.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:n,maybePostfixModifierPosition:void 0}}if(o){let r=a;a=l=>o({className:l,parseClassName:r})}return a},kI=e=>e.endsWith(Yc)?e.substring(0,e.length-1):e.startsWith(Yc)?e.substring(1):e,TI=e=>{let t=Object.fromEntries(e.orderSensitiveModifiers.map(o=>[o,!0]));return o=>{if(o.length<=1)return o;let a=[],r=[];return o.forEach(l=>{l[0]==="["||t[l]?(a.push(...r.sort(),l),r=[]):r.push(l)}),a.push(...r.sort()),a}},EI=e=>({cache:MI(e.cacheSize),parseClassName:HI(e),sortModifiers:TI(e),...wI(e)}),_I=/\s+/,OI=(e,t)=>{let{parseClassName:o,getClassGroupId:a,getConflictingClassGroupIds:r,sortModifiers:l}=t,n=[],i=e.trim().split(_I),u="";for(let s=i.length-1;s>=0;s-=1){let d=i[s],{isExternal:g,modifiers:f,hasImportantModifier:p,baseClassName:v,maybePostfixModifierPosition:b}=o(d);if(g){u=d+(u.length>0?" "+u:u);continue}let x=!!b,m=a(x?v.substring(0,b):v);if(!m){if(!x){u=d+(u.length>0?" "+u:u);continue}if(m=a(v),!m){u=d+(u.length>0?" "+u:u);continue}x=!1}let c=l(f).join(":"),h=p?c+Yc:c,C=h+m;if(n.includes(C))continue;n.push(C);let w=r(m,x);for(let S=0;S<w.length;++S){let H=w[S];n.push(h+H)}u=d+(u.length>0?" "+u:u)}return u};function DI(){let e=0,t,o,a="";for(;e<arguments.length;)(t=arguments[e++])&&(o=Tg(t))&&(a&&(a+=" "),a+=o);return a}var Tg=e=>{if(typeof e=="string")return e;let t,o="";for(let a=0;a<e.length;a++)e[a]&&(t=Tg(e[a]))&&(o&&(o+=" "),o+=t);return o};function VI(e,...t){let o,a,r,l=n;function n(u){let s=t.reduce((d,g)=>g(d),e());return o=EI(s),a=o.cache.get,r=o.cache.set,l=i,i(u)}function i(u){let s=a(u);if(s)return s;let d=OI(u,o);return r(u,d),d}return function(){return l(DI.apply(null,arguments))}}var Ht=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},Eg=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,_g=/^\((?:(\w[\w-]*):)?(.+)\)$/i,AI=/^\d+\/\d+$/,BI=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,NI=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,PI=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ZI=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,zI=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,rn=e=>AI.test(e),Le=e=>!!e&&!Number.isNaN(Number(e)),Xa=e=>!!e&&Number.isInteger(Number(e)),Kc=e=>e.endsWith("%")&&Le(e.slice(0,-1)),sa=e=>BI.test(e),UI=()=>!0,FI=e=>NI.test(e)&&!PI.test(e),Og=()=>!1,qI=e=>ZI.test(e),$I=e=>zI.test(e),jI=e=>!J(e)&&!ee(e),GI=e=>ln(e,Ag,Og),J=e=>Eg.test(e),Fr=e=>ln(e,Bg,FI),Xc=e=>ln(e,WI,Le),wg=e=>ln(e,Dg,Og),KI=e=>ln(e,Vg,$I),m2=e=>ln(e,Ng,qI),ee=e=>_g.test(e),zi=e=>nn(e,Bg),XI=e=>nn(e,JI),yg=e=>nn(e,Dg),QI=e=>nn(e,Ag),YI=e=>nn(e,Vg),g2=e=>nn(e,Ng,!0),ln=(e,t,o)=>{let a=Eg.exec(e);return a?a[1]?t(a[1]):o(a[2]):!1},nn=(e,t,o=!1)=>{let a=_g.exec(e);return a?a[1]?t(a[1]):o:!1},Dg=e=>e==="position"||e==="percentage",Vg=e=>e==="image"||e==="url",Ag=e=>e==="length"||e==="size"||e==="bg-size",Bg=e=>e==="length",WI=e=>e==="number",JI=e=>e==="family-name",Ng=e=>e==="shadow",eS=()=>{let e=Ht("color"),t=Ht("font"),o=Ht("text"),a=Ht("font-weight"),r=Ht("tracking"),l=Ht("leading"),n=Ht("breakpoint"),i=Ht("container"),u=Ht("spacing"),s=Ht("radius"),d=Ht("shadow"),g=Ht("inset-shadow"),f=Ht("text-shadow"),p=Ht("drop-shadow"),v=Ht("blur"),b=Ht("perspective"),x=Ht("aspect"),m=Ht("ease"),c=Ht("animate"),h=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],w=()=>[...C(),ee,J],S=()=>["auto","hidden","clip","visible","scroll"],H=()=>["auto","contain","none"],y=()=>[ee,J,u],k=()=>[rn,"full","auto",...y()],O=()=>[Xa,"none","subgrid",ee,J],F=()=>["auto",{span:["full",Xa,ee,J]},Xa,ee,J],ae=()=>[Xa,"auto",ee,J],K=()=>["auto","min","max","fr",ee,J],B=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Q=()=>["start","end","center","stretch","center-safe","end-safe"],M=()=>["auto",...y()],I=()=>[rn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...y()],R=()=>[e,ee,J],L=()=>[...C(),yg,wg,{position:[ee,J]}],T=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Z=()=>["auto","cover","contain",QI,GI,{size:[ee,J]}],z=()=>[Kc,zi,Fr],W=()=>["","none","full",s,ee,J],U=()=>["",Le,zi,Fr],j=()=>["solid","dashed","dotted","double"],q=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],D=()=>[Le,Kc,yg,wg],ne=()=>["","none",v,ee,J],ce=()=>["none",Le,ee,J],ve=()=>["none",Le,ee,J],_=()=>[Le,ee,J],P=()=>[rn,"full",...y()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[sa],breakpoint:[sa],color:[UI],container:[sa],"drop-shadow":[sa],ease:["in","out","in-out"],font:[jI],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[sa],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[sa],shadow:[sa],spacing:["px",Le],text:[sa],"text-shadow":[sa],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",rn,J,ee,x]}],container:["container"],columns:[{columns:[Le,J,ee,i]}],"break-after":[{"break-after":h()}],"break-before":[{"break-before":h()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:w()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:H()}],"overscroll-x":[{"overscroll-x":H()}],"overscroll-y":[{"overscroll-y":H()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:k()}],"inset-x":[{"inset-x":k()}],"inset-y":[{"inset-y":k()}],start:[{start:k()}],end:[{end:k()}],top:[{top:k()}],right:[{right:k()}],bottom:[{bottom:k()}],left:[{left:k()}],visibility:["visible","invisible","collapse"],z:[{z:[Xa,"auto",ee,J]}],basis:[{basis:[rn,"full","auto",i,...y()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Le,rn,"auto","initial","none",J]}],grow:[{grow:["",Le,ee,J]}],shrink:[{shrink:["",Le,ee,J]}],order:[{order:[Xa,"first","last","none",ee,J]}],"grid-cols":[{"grid-cols":O()}],"col-start-end":[{col:F()}],"col-start":[{"col-start":ae()}],"col-end":[{"col-end":ae()}],"grid-rows":[{"grid-rows":O()}],"row-start-end":[{row:F()}],"row-start":[{"row-start":ae()}],"row-end":[{"row-end":ae()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":K()}],"auto-rows":[{"auto-rows":K()}],gap:[{gap:y()}],"gap-x":[{"gap-x":y()}],"gap-y":[{"gap-y":y()}],"justify-content":[{justify:[...B(),"normal"]}],"justify-items":[{"justify-items":[...Q(),"normal"]}],"justify-self":[{"justify-self":["auto",...Q()]}],"align-content":[{content:["normal",...B()]}],"align-items":[{items:[...Q(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Q(),{baseline:["","last"]}]}],"place-content":[{"place-content":B()}],"place-items":[{"place-items":[...Q(),"baseline"]}],"place-self":[{"place-self":["auto",...Q()]}],p:[{p:y()}],px:[{px:y()}],py:[{py:y()}],ps:[{ps:y()}],pe:[{pe:y()}],pt:[{pt:y()}],pr:[{pr:y()}],pb:[{pb:y()}],pl:[{pl:y()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":y()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":y()}],"space-y-reverse":["space-y-reverse"],size:[{size:I()}],w:[{w:[i,"screen",...I()]}],"min-w":[{"min-w":[i,"screen","none",...I()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[n]},...I()]}],h:[{h:["screen","lh",...I()]}],"min-h":[{"min-h":["screen","lh","none",...I()]}],"max-h":[{"max-h":["screen","lh",...I()]}],"font-size":[{text:["base",o,zi,Fr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,ee,Xc]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Kc,J]}],"font-family":[{font:[XI,J,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,ee,J]}],"line-clamp":[{"line-clamp":[Le,"none",ee,Xc]}],leading:[{leading:[l,...y()]}],"list-image":[{"list-image":["none",ee,J]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ee,J]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:R()}],"text-color":[{text:R()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...j(),"wavy"]}],"text-decoration-thickness":[{decoration:[Le,"from-font","auto",ee,Fr]}],"text-decoration-color":[{decoration:R()}],"underline-offset":[{"underline-offset":[Le,"auto",ee,J]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:y()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ee,J]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ee,J]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:L()}],"bg-repeat":[{bg:T()}],"bg-size":[{bg:Z()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Xa,ee,J],radial:["",ee,J],conic:[Xa,ee,J]},YI,KI]}],"bg-color":[{bg:R()}],"gradient-from-pos":[{from:z()}],"gradient-via-pos":[{via:z()}],"gradient-to-pos":[{to:z()}],"gradient-from":[{from:R()}],"gradient-via":[{via:R()}],"gradient-to":[{to:R()}],rounded:[{rounded:W()}],"rounded-s":[{"rounded-s":W()}],"rounded-e":[{"rounded-e":W()}],"rounded-t":[{"rounded-t":W()}],"rounded-r":[{"rounded-r":W()}],"rounded-b":[{"rounded-b":W()}],"rounded-l":[{"rounded-l":W()}],"rounded-ss":[{"rounded-ss":W()}],"rounded-se":[{"rounded-se":W()}],"rounded-ee":[{"rounded-ee":W()}],"rounded-es":[{"rounded-es":W()}],"rounded-tl":[{"rounded-tl":W()}],"rounded-tr":[{"rounded-tr":W()}],"rounded-br":[{"rounded-br":W()}],"rounded-bl":[{"rounded-bl":W()}],"border-w":[{border:U()}],"border-w-x":[{"border-x":U()}],"border-w-y":[{"border-y":U()}],"border-w-s":[{"border-s":U()}],"border-w-e":[{"border-e":U()}],"border-w-t":[{"border-t":U()}],"border-w-r":[{"border-r":U()}],"border-w-b":[{"border-b":U()}],"border-w-l":[{"border-l":U()}],"divide-x":[{"divide-x":U()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":U()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...j(),"hidden","none"]}],"divide-style":[{divide:[...j(),"hidden","none"]}],"border-color":[{border:R()}],"border-color-x":[{"border-x":R()}],"border-color-y":[{"border-y":R()}],"border-color-s":[{"border-s":R()}],"border-color-e":[{"border-e":R()}],"border-color-t":[{"border-t":R()}],"border-color-r":[{"border-r":R()}],"border-color-b":[{"border-b":R()}],"border-color-l":[{"border-l":R()}],"divide-color":[{divide:R()}],"outline-style":[{outline:[...j(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Le,ee,J]}],"outline-w":[{outline:["",Le,zi,Fr]}],"outline-color":[{outline:R()}],shadow:[{shadow:["","none",d,g2,m2]}],"shadow-color":[{shadow:R()}],"inset-shadow":[{"inset-shadow":["none",g,g2,m2]}],"inset-shadow-color":[{"inset-shadow":R()}],"ring-w":[{ring:U()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:R()}],"ring-offset-w":[{"ring-offset":[Le,Fr]}],"ring-offset-color":[{"ring-offset":R()}],"inset-ring-w":[{"inset-ring":U()}],"inset-ring-color":[{"inset-ring":R()}],"text-shadow":[{"text-shadow":["none",f,g2,m2]}],"text-shadow-color":[{"text-shadow":R()}],opacity:[{opacity:[Le,ee,J]}],"mix-blend":[{"mix-blend":[...q(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":q()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Le]}],"mask-image-linear-from-pos":[{"mask-linear-from":D()}],"mask-image-linear-to-pos":[{"mask-linear-to":D()}],"mask-image-linear-from-color":[{"mask-linear-from":R()}],"mask-image-linear-to-color":[{"mask-linear-to":R()}],"mask-image-t-from-pos":[{"mask-t-from":D()}],"mask-image-t-to-pos":[{"mask-t-to":D()}],"mask-image-t-from-color":[{"mask-t-from":R()}],"mask-image-t-to-color":[{"mask-t-to":R()}],"mask-image-r-from-pos":[{"mask-r-from":D()}],"mask-image-r-to-pos":[{"mask-r-to":D()}],"mask-image-r-from-color":[{"mask-r-from":R()}],"mask-image-r-to-color":[{"mask-r-to":R()}],"mask-image-b-from-pos":[{"mask-b-from":D()}],"mask-image-b-to-pos":[{"mask-b-to":D()}],"mask-image-b-from-color":[{"mask-b-from":R()}],"mask-image-b-to-color":[{"mask-b-to":R()}],"mask-image-l-from-pos":[{"mask-l-from":D()}],"mask-image-l-to-pos":[{"mask-l-to":D()}],"mask-image-l-from-color":[{"mask-l-from":R()}],"mask-image-l-to-color":[{"mask-l-to":R()}],"mask-image-x-from-pos":[{"mask-x-from":D()}],"mask-image-x-to-pos":[{"mask-x-to":D()}],"mask-image-x-from-color":[{"mask-x-from":R()}],"mask-image-x-to-color":[{"mask-x-to":R()}],"mask-image-y-from-pos":[{"mask-y-from":D()}],"mask-image-y-to-pos":[{"mask-y-to":D()}],"mask-image-y-from-color":[{"mask-y-from":R()}],"mask-image-y-to-color":[{"mask-y-to":R()}],"mask-image-radial":[{"mask-radial":[ee,J]}],"mask-image-radial-from-pos":[{"mask-radial-from":D()}],"mask-image-radial-to-pos":[{"mask-radial-to":D()}],"mask-image-radial-from-color":[{"mask-radial-from":R()}],"mask-image-radial-to-color":[{"mask-radial-to":R()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":C()}],"mask-image-conic-pos":[{"mask-conic":[Le]}],"mask-image-conic-from-pos":[{"mask-conic-from":D()}],"mask-image-conic-to-pos":[{"mask-conic-to":D()}],"mask-image-conic-from-color":[{"mask-conic-from":R()}],"mask-image-conic-to-color":[{"mask-conic-to":R()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:L()}],"mask-repeat":[{mask:T()}],"mask-size":[{mask:Z()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ee,J]}],filter:[{filter:["","none",ee,J]}],blur:[{blur:ne()}],brightness:[{brightness:[Le,ee,J]}],contrast:[{contrast:[Le,ee,J]}],"drop-shadow":[{"drop-shadow":["","none",p,g2,m2]}],"drop-shadow-color":[{"drop-shadow":R()}],grayscale:[{grayscale:["",Le,ee,J]}],"hue-rotate":[{"hue-rotate":[Le,ee,J]}],invert:[{invert:["",Le,ee,J]}],saturate:[{saturate:[Le,ee,J]}],sepia:[{sepia:["",Le,ee,J]}],"backdrop-filter":[{"backdrop-filter":["","none",ee,J]}],"backdrop-blur":[{"backdrop-blur":ne()}],"backdrop-brightness":[{"backdrop-brightness":[Le,ee,J]}],"backdrop-contrast":[{"backdrop-contrast":[Le,ee,J]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Le,ee,J]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Le,ee,J]}],"backdrop-invert":[{"backdrop-invert":["",Le,ee,J]}],"backdrop-opacity":[{"backdrop-opacity":[Le,ee,J]}],"backdrop-saturate":[{"backdrop-saturate":[Le,ee,J]}],"backdrop-sepia":[{"backdrop-sepia":["",Le,ee,J]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":y()}],"border-spacing-x":[{"border-spacing-x":y()}],"border-spacing-y":[{"border-spacing-y":y()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ee,J]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Le,"initial",ee,J]}],ease:[{ease:["linear","initial",m,ee,J]}],delay:[{delay:[Le,ee,J]}],animate:[{animate:["none",c,ee,J]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,ee,J]}],"perspective-origin":[{"perspective-origin":w()}],rotate:[{rotate:ce()}],"rotate-x":[{"rotate-x":ce()}],"rotate-y":[{"rotate-y":ce()}],"rotate-z":[{"rotate-z":ce()}],scale:[{scale:ve()}],"scale-x":[{"scale-x":ve()}],"scale-y":[{"scale-y":ve()}],"scale-z":[{"scale-z":ve()}],"scale-3d":["scale-3d"],skew:[{skew:_()}],"skew-x":[{"skew-x":_()}],"skew-y":[{"skew-y":_()}],transform:[{transform:[ee,J,"","none","gpu","cpu"]}],"transform-origin":[{origin:w()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:P()}],"translate-x":[{"translate-x":P()}],"translate-y":[{"translate-y":P()}],"translate-z":[{"translate-z":P()}],"translate-none":["translate-none"],accent:[{accent:R()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:R()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ee,J]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":y()}],"scroll-mx":[{"scroll-mx":y()}],"scroll-my":[{"scroll-my":y()}],"scroll-ms":[{"scroll-ms":y()}],"scroll-me":[{"scroll-me":y()}],"scroll-mt":[{"scroll-mt":y()}],"scroll-mr":[{"scroll-mr":y()}],"scroll-mb":[{"scroll-mb":y()}],"scroll-ml":[{"scroll-ml":y()}],"scroll-p":[{"scroll-p":y()}],"scroll-px":[{"scroll-px":y()}],"scroll-py":[{"scroll-py":y()}],"scroll-ps":[{"scroll-ps":y()}],"scroll-pe":[{"scroll-pe":y()}],"scroll-pt":[{"scroll-pt":y()}],"scroll-pr":[{"scroll-pr":y()}],"scroll-pb":[{"scroll-pb":y()}],"scroll-pl":[{"scroll-pl":y()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ee,J]}],fill:[{fill:["none",...R()]}],"stroke-w":[{stroke:[Le,zi,Fr,Xc]}],stroke:[{stroke:["none",...R()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},tS=VI(eS),oS=(e,t,o)=>Math.min(Math.max(e,t),o),h2=e=>Math.round(oS(e,0,255)),Pg=e=>{let t=e.replace("#",""),o=parseInt(t,16);return{r:o>>16&255,g:o>>8&255,b:o&255}},aS=({r:e,g:t,b:o})=>{let a=r=>h2(r).toString(16).padStart(2,"0");return`#${a(e)}${a(t)}${a(o)}`},Jc=({h:e,s:t,v:o})=>{e=e/360,t=t/100,o=o/100;let a=Math.floor(e*6),r=e*6-a,l=o*(1-t),n=o*(1-r*t),i=o*(1-(1-r)*t),u,s,d;switch(a%6){case 0:u=o,s=i,d=l;break;case 1:u=n,s=o,d=l;break;case 2:u=l,s=o,d=i;break;case 3:u=l,s=n,d=o;break;case 4:u=i,s=l,d=o;break;case 5:u=o,s=l,d=n;break;default:u=s=d=0}return{r:h2(u*255),g:h2(s*255),b:h2(d*255)}},e5=({r:e,g:t,b:o})=>{e/=255,t/=255,o/=255;let a=Math.max(e,t,o),r=Math.min(e,t,o),l=a-r,n=0,i=a===0?0:l/a,u=a;if(l!==0)switch(a){case e:n=((t-o)/l+(t<o?6:0))/6;break;case t:n=((o-e)/l+2)/6;break;case o:n=((e-t)/l+4)/6;break}return{h:Math.round(n*360),s:Math.round(i*100),v:Math.round(u*100)}},rS=e=>aS(Jc(e)),lS=e=>e5(Pg(e));var Ig=({h:e,s:t,v:o})=>{let a=o*(2-t/100)/2,r=a!==0&&a!==100?(o-a)/Math.min(a,100-a)*100:0;return{h:e,s:Math.round(r),l:Math.round(a)}},Sg=({h:e,s:t,l:o})=>{let a=o+t*Math.min(o,100-o)/100,r=a===0?0:2*(1-o/a)*100;return{h:e,s:Math.round(r),v:Math.round(a)}},nS=e=>{let{r:t,g:o,b:a}=Pg(e);return(.299*t+.587*o+.114*a)/255>.5?"#000000":"#ffffff"};var iS=(e,t="hex")=>{switch(t){case"hex":return e.getHex();case"rgb":let o=e.getRgb();return`rgb(${o.r}, ${o.g}, ${o.b})`;case"rgba":let a=e.getRgba();return`rgba(${a.r}, ${a.g}, ${a.b}, ${a.a})`;case"hsl":let r=e.getHsl();return`hsl(${r.h}, ${r.s}%, ${r.l}%)`;case"hsla":let l=e.getHsla();return`hsla(${l.h}, ${l.s}%, ${l.l}%, ${l.a})`;default:C2()}};function uS(e){switch(e.type){case"hex":return{...lS(e.value),a:1};case"rgb":return{...e5(e),a:1};case"rgba":return{...e5(e),a:e.a};case"hsl":return{...Sg(e),a:1};case"hsla":return{...Sg(e),a:1};case"hsv":return{...e,a:1};case"hsva":return{...e};default:C2()}}function Qa(e,t){let o=uS(e);switch(t){case"hex":return rS(o);case"rgb":return Jc(o);case"rgba":return{...Jc(o),a:o.a};case"hsl":return Ig(o);case"hsla":return{...Ig(o),a:o.a};case"hsv":return{h:o.h,s:o.s,v:o.v};case"hsva":return o;default:C2()}}var qr=(...e)=>tS(LI(e)),da=(e,t,o)=>Math.min(Math.max(e,t),o),Ya=e=>Math.round(e);function C2(e){throw new Error("You should never get here.")}var Wa=class e{constructor(t){this.colorInput=t,typeof t=="string"?this.color={type:"hex",value:t}:"type"in t?this.color=t:"r"in t?"a"in t?this.color={type:"rgba",...t}:this.color={type:"rgb",...t}:"v"in t?"a"in t?this.color={type:"hsva",...t}:this.color={type:"hsv",...t}:"a"in t?this.color={type:"hsla",...t}:this.color={type:"hsl",...t}}getRgb(){return Qa(this.color,"rgb")}getHsv(){return Qa(this.color,"hsv")}getHsla(){return Qa(this.color,"hsla")}getHsva(){return Qa(this.color,"hsva")}getHex(){return Qa(this.color,"hex")}getHsl(){return Qa(this.color,"hsl")}getRgba(){return Qa(this.color,"rgba")}format(t="hex"){return iS(this,t)}getContrastingColor(){return new e({type:"hex",value:nS(this.getHex())})}},Mg=(e,t)=>{let o=e.getBoundingClientRect(),a,r;if("touches"in t){let s=t.touches[0]||t.changedTouches[0];a=s.clientX,r=s.clientY}else a=t.clientX,r=t.clientY;let l=a-o.left,n=r-o.top,i=da(l/o.width,0,1),u=da(n/o.height,0,1);return{left:i,top:u}},o5=({onMove:e,onMoveEnd:t,onKey:o,children:a,className:r,...l})=>{let n=(0,xe.useRef)(null),i=(0,xe.useRef)(!1),u=(0,xe.useCallback)(f=>{!i.current||!n.current||(f.preventDefault(),e(Mg(n.current,f)))},[e]),s=(0,xe.useCallback)(()=>{i.current=!1,t(),document.removeEventListener("mousemove",u),document.removeEventListener("mouseup",s),document.removeEventListener("touchmove",u),document.removeEventListener("touchend",s)},[u,t]),d=(0,xe.useCallback)(f=>{let p=n.current;p&&(f.preventDefault(),i.current=!0,e(Mg(p,f.nativeEvent)),document.addEventListener("mousemove",u),document.addEventListener("mouseup",s),document.addEventListener("touchmove",u,{passive:!1}),document.addEventListener("touchend",s))},[e,u,s]),g=(0,xe.useCallback)(f=>{if(!o)return;let p=f.which||f.keyCode;p<37||p>40||(f.preventDefault(),o({left:p===39?.05:p===37?-.05:0,top:p===40?.05:p===38?-.05:0}))},[o]);return(0,xe.useEffect)(()=>()=>{document.removeEventListener("mousemove",u),document.removeEventListener("mouseup",s),document.removeEventListener("touchmove",u),document.removeEventListener("touchend",s)},[u,s]),pt.jsx("div",{ref:n,className:qr("rounded-inherit absolute inset-0 touch-none outline-none","focus:[&_.react-colorful-pointer]:scale-110",r),onTouchStart:d,onMouseDown:d,onKeyDown:g,tabIndex:0,role:"slider",...l,children:a})},a5=({className:e,top:t=.5,left:o,color:a})=>pt.jsx("div",{className:qr("absolute z-[1] h-6 w-6 -translate-x-1/2 -translate-y-1/2 cursor-grab rounded-full border-2 border-white bg-white active:cursor-grabbing","react-colorful-pointer shadow-[0_2px_8px_rgba(0,0,0,0.15)] transition-transform",e),style:{top:`${t*100}%`,left:`${o*100}%`}}),sS=({hsva:e,onChange:t,className:o,onFinishedUpdates:a})=>{let r=(0,xe.useCallback)(u=>{t({a:u.left},!1)},[t]),l=(0,xe.useCallback)(u=>{t({a:da(e.a+u.left,0,1)},!0)},[e.a,t]),n=(0,xe.useMemo)(()=>new Wa({type:"hsva",h:e.h,s:e.s,v:e.v,a:0}).format("hsla"),[e.h,e.s,e.v]),i=(0,xe.useMemo)(()=>new Wa({type:"hsva",h:e.h,s:e.s,v:e.v,a:1}).format("hsla"),[e.h,e.s,e.v]);return pt.jsx("div",{className:qr("relative h-full w-full",o),children:pt.jsxs(o5,{onMove:r,onMoveEnd:a,onKey:l,"aria-label":"Alpha","aria-valuetext":`${Ya(e.a*100)}%`,"aria-valuenow":Ya(e.a*100),"aria-valuemin":0,"aria-valuemax":100,className:"h-full w-full rounded-lg",children:[pt.jsx("div",{className:"absolute inset-0 rounded-lg bg-white",style:{backgroundImage:`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><rect x="8" width="8" height="8"/><rect y="8" width="8" height="8"/></svg>')`}}),pt.jsx("div",{className:"absolute inset-0 rounded-lg",style:{backgroundImage:`linear-gradient(90deg, ${n}, ${i})`}}),pt.jsx(a5,{className:"z-[1]",top:.5,left:e.a,color:""})]})})},dS=({hue:e,onChange:t,className:o,onFinishedUpdates:a})=>{let r=(0,xe.useCallback)(n=>{let i=Ya(da(360*n.left,0,360));t({h:i},!1)},[t]),l=(0,xe.useCallback)(n=>{t({h:da(e+n.left*360,0,360)},!0)},[e,t]);return pt.jsx("div",{className:qr("relative h-full w-full",o),children:pt.jsxs(o5,{onMove:r,onMoveEnd:a,onKey:l,"aria-label":"Hue","aria-valuenow":Ya(e),"aria-valuemax":360,"aria-valuemin":0,className:"h-full w-full rounded-lg",children:[pt.jsx("div",{className:"absolute inset-0 rounded-lg",style:{background:"linear-gradient(to right, #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%)"}}),pt.jsx(a5,{className:"z-[2]",top:.5,left:e/360,color:""})]})})},cS=({hsva:e,onChange:t,className:o,onFinishedUpdates:a})=>{let r=(0,xe.useCallback)(i=>{let u=Ya(da(i.left*100,0,100)),s=Ya(da(100-i.top*100,0,100));t({s:u,v:s},!1)},[t]),l=(0,xe.useCallback)(i=>{t({s:da(e.s+i.left*100,0,100),v:da(e.v-i.top*100,0,100)},!0)},[e.s,e.v,t]),n=`hsl(${e.h}, 100%, 50%)`;return pt.jsx("div",{className:qr("relative h-full w-full rounded-xl",o),children:pt.jsxs(o5,{onMove:r,onMoveEnd:a,onKey:l,"aria-label":"Color","aria-valuetext":`Saturation ${Ya(e.s)}%, Brightness ${Ya(e.v)}%`,className:"rounded-inherit h-full w-full",children:[pt.jsx("div",{className:"rounded-inherit absolute inset-0 rounded-b-none",style:{backgroundColor:n,backgroundImage:"linear-gradient(to top, #000, rgba(0, 0, 0, 0)), linear-gradient(to right, #fff, rgba(255, 255, 255, 0))",boxShadow:"inset 0 0 0 1px rgba(0, 0, 0, 0.05)"}}),pt.jsx(a5,{className:"z-[3]",top:1-e.v/100,left:e.s/100,color:""})]})})},Zg=(0,xe.createContext)(null),v2=()=>{let e=(0,xe.useContext)(Zg);if(!e)throw new Error("ColorPicker compound components must be used within a ColorPicker");return e};function Rg(e){return"type"in e?new Wa(e):e}var fS=({color:e,onChange:t,className:o,children:a,defaultColor:r,...l})=>{let[n,i]=(0,xe.useState)(Rg(e??r??{h:340,s:58,v:100,a:1,type:"hsva"})),u=(0,xe.useRef)(!1),s=(0,xe.useRef)(n);(0,xe.useEffect)(()=>{!u.current&&e&&(s.current=Rg(e),i(s.current))},[e]);let d=(0,xe.useCallback)((v,b)=>{let x=new Wa({type:"hsva",...s.current.getHsva(),...v});s.current=x,i(x),u.current=!b,t?.(x)},[t]),g=(0,xe.useCallback)(()=>{u.current=!1},[]),f=(0,xe.useCallback)(async()=>{if(!("EyeDropper"in window)){console.log("EyeDropper API not supported");return}try{let v=await new window.EyeDropper().open();v.sRGBHex&&d(Qa({type:"hex",value:v.sRGBHex},"hsva"),!0)}catch(v){console.log("EyeDropper cancelled or failed:",v)}},[t]),p={hsva:n.getHsva(),updateHsva:d,handleEyeDropper:f,onFinishedUpdates:g};return pt.jsx(Zg.Provider,{value:p,children:pt.jsx("div",{...l,className:qr("relative flex h-[280px] w-[280px] cursor-default flex-col rounded-2xl bg-white shadow-lg select-none",o),children:a})})},pS=({className:e})=>{let{hsva:t,updateHsva:o,onFinishedUpdates:a}=v2(),r=(0,xe.useCallback)((l,n)=>{o(l,n)},[o]);return pt.jsx(cS,{hsva:t,onChange:r,className:e,onFinishedUpdates:a})},mS=({className:e})=>{let{hsva:t,updateHsva:o,onFinishedUpdates:a}=v2(),r=(0,xe.useCallback)((l,n)=>{o(l,n)},[o]);return pt.jsx(dS,{hue:t.h,onChange:r,className:e,onFinishedUpdates:a})},gS=({className:e})=>{let{hsva:t,updateHsva:o,onFinishedUpdates:a}=v2(),r=(0,xe.useCallback)((l,n)=>{o(l,n)},[o]);return pt.jsx(sS,{hsva:t,onChange:r,className:e,onFinishedUpdates:a})},hS=({className:e,title:t="Pick color from screen",children:o})=>{let{handleEyeDropper:a}=v2(),[r,l]=(0,xe.useState)(!1);return(0,xe.useEffect)(()=>{typeof window<"u"&&"EyeDropper"in window&&l(!0)},[]),r?pt.jsx("button",{onClick:a,className:qr("flex h-10 w-10 flex-shrink-0 cursor-pointer items-center justify-center rounded-lg transition-colors hover:bg-gray-100",e),title:t,children:o}):null},un=Object.assign(fS,{Saturation:pS,Hue:mS,Alpha:gS,EyeDropper:hS});function CS(e,t){switch(t){case"hex":return{type:"hex",value:e.getHex()};case"rgb":return{type:"rgb",...e.getRgb()};case"rgba":return{type:"rgba",...e.getRgba()};case"hsl":return{type:"hsl",...e.getHsl()};case"hsla":return{type:"hsla",...e.getHsla()};case"hsv":return{type:"hsv",...e.getHsv()};case"hsva":return{type:"hsva",...e.getHsva()};default:C2()}}var zg=(e={type:"hex",value:"#ff6b9d"})=>{let[t,o]=(0,xe.useState)(()=>{let n=typeof e=="function"?e():e;return{color:new Wa(n),type:n.type}}),a=(0,xe.useMemo)(()=>CS(t.color,t.type),[t.color,t.type]),r=(0,xe.useMemo)(()=>{let n=t.color.getHsva();return{hex:t.color.getHex(),rgb:t.color.getRgb(),rgba:t.color.getRgba(),hsl:t.color.getHsl(),hsla:t.color.getHsla(),hsv:t.color.getHsv(),hsva:n,alpha:n.a}},[t.color]),l=(0,xe.useCallback)(n=>{try{let i="type"in n?new Wa(n):n;o(u=>({color:i,type:u.type}))}catch(i){console.warn("Invalid color input:",n,i)}},[]);return[{colorInput:a,colorState:r},l]};var hC=V(qo(),1);var Vt=V(he());function Ug(e,t,o,a){var r=this,l=(0,Vt.useRef)(null),n=(0,Vt.useRef)(0),i=(0,Vt.useRef)(0),u=(0,Vt.useRef)(null),s=(0,Vt.useRef)([]),d=(0,Vt.useRef)(),g=(0,Vt.useRef)(),f=(0,Vt.useRef)(e),p=(0,Vt.useRef)(!0),v=(0,Vt.useRef)(),b=(0,Vt.useRef)();f.current=e;var x=typeof window<"u",m=!t&&t!==0&&x;if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var c=!!(o=o||{}).leading,h=!("trailing"in o)||!!o.trailing,C=!!o.flushOnExit&&h,w="maxWait"in o,S="debounceOnServer"in o&&!!o.debounceOnServer,H=w?Math.max(+o.maxWait||0,t):null,y=(0,Vt.useMemo)(function(){var k=function(M){var I=s.current,R=d.current;return s.current=d.current=null,n.current=M,i.current=i.current||M,g.current=f.current.apply(R,I)},O=function(M,I){m&&cancelAnimationFrame(u.current),u.current=m?requestAnimationFrame(M):setTimeout(M,I)},F=function(M){if(!p.current)return!1;var I=M-l.current;return!l.current||I>=t||I<0||w&&M-n.current>=H},ae=function(M){return u.current=null,h&&s.current?k(M):(s.current=d.current=null,g.current)},K=function M(){var I=Date.now();if(c&&i.current===n.current&&B(),F(I))return ae(I);if(p.current){var R=t-(I-l.current),L=w?Math.min(R,H-(I-n.current)):R;O(M,L)}},B=function(){a&&a({})},Q=function(){if(x||S){var M,I=Date.now(),R=F(I);if(s.current=[].slice.call(arguments),d.current=r,l.current=I,C&&!v.current&&(v.current=function(){var L;((L=globalThis.document)==null?void 0:L.visibilityState)==="hidden"&&b.current.flush()},(M=globalThis.document)==null||M.addEventListener==null||M.addEventListener("visibilitychange",v.current)),R){if(!u.current&&p.current)return n.current=l.current,O(K,t),c?k(l.current):g.current;if(w)return O(K,t),k(l.current)}return u.current||O(K,t),g.current}};return Q.cancel=function(){var M=u.current;M&&(m?cancelAnimationFrame(u.current):clearTimeout(u.current)),n.current=0,s.current=l.current=d.current=u.current=null,M&&a&&a({})},Q.isPending=function(){return!!u.current},Q.flush=function(){return u.current?ae(Date.now()):g.current},Q},[c,w,t,H,h,C,m,x,S,a]);return b.current=y,(0,Vt.useEffect)(function(){return p.current=!0,function(){var k;C&&b.current.flush(),v.current&&((k=globalThis.document)==null||k.removeEventListener==null||k.removeEventListener("visibilitychange",v.current),v.current=null),p.current=!1}},[C]),y}var Qt=V(he(),1);function $r(e){let t=e?.parentNode;for(;t;){if(t instanceof ShadowRoot){t=t.host;continue}if(t instanceof HTMLElement){let{overflowY:o}=getComputedStyle(t);if(o==="auto"||o==="scroll")return t}t=t.parentNode}return null}var Fg='button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])';function qg({computePosition:e,onClose:t,autoFocus:o=!0,trapFocus:a=!1}={}){let[r,l]=Qt.default.useState(!1),[n,i]=Qt.default.useState({top:0,left:0}),u=Qt.default.useRef(null),s=Qt.default.useRef(null),d=Qt.default.useRef(!1),g=Qt.default.useRef(e);g.current=e;let f=Qt.default.useRef(t);f.current=t;let p=Qt.default.useRef(a);p.current=a;let v=Qt.default.useCallback((...c)=>{!u.current||!g.current||i(g.current(u.current,...c))},[]),b=Qt.default.useCallback(()=>{v(),d.current=!0,l(!0)},[v]),x=Qt.default.useCallback(()=>{f.current&&f.current(),d.current=!1,l(!1),u.current?.focus()},[]),m=Qt.default.useCallback(()=>{d.current?x():b()},[b,x]);return Qt.default.useEffect(()=>{if(!r)return;let c=C=>{if(C.key==="Escape"&&(C.preventDefault(),x()),p.current&&C.key==="Tab"){let w=s.current;if(!w)return;let S=Array.from(w.querySelectorAll(Fg)).filter(k=>!k.hasAttribute("disabled")),H=S[0],y=S.at(-1);if(!H||!y)return;C.shiftKey&&document.activeElement===H?(C.preventDefault(),y.focus()):!C.shiftKey&&document.activeElement===y&&(C.preventDefault(),H.focus())}},h=C=>{let w=s.current,S=u.current;if(!w||!S)return;let H=typeof C.composedPath=="function"?C.composedPath():[],y=H.includes(w)||C.target instanceof Node&&w.contains(C.target),k=H.includes(S)||C.target instanceof Node&&S.contains(C.target);!y&&!k&&x()};return document.addEventListener("keydown",c),document.addEventListener("mousedown",h),document.addEventListener("touchstart",h),()=>{document.removeEventListener("keydown",c),document.removeEventListener("mousedown",h),document.removeEventListener("touchstart",h)}},[r,x]),Qt.default.useEffect(()=>{if(!r||!o||!s.current)return;let c=s.current.querySelector(Fg);c&&c.focus()},[r,o]),Qt.default.useEffect(()=>{if(!r||!u.current)return;let c=$r(u.current);if(!c)return;let h=()=>x();return c.addEventListener("scroll",h,{passive:!0}),()=>c.removeEventListener("scroll",h)},[r,x]),{isOpen:r,open:b,close:x,toggle:m,triggerRef:u,popoverRef:s,position:n,reposition:v}}var vS=(e,t)=>{if(typeof e=="number"){if(t===3)return{mode:"rgb",r:(e>>8&15|e>>4&240)/255,g:(e>>4&15|e&240)/255,b:(e&15|e<<4&240)/255};if(t===4)return{mode:"rgb",r:(e>>12&15|e>>8&240)/255,g:(e>>8&15|e>>4&240)/255,b:(e>>4&15|e&240)/255,alpha:(e&15|e<<4&240)/255};if(t===6)return{mode:"rgb",r:(e>>16&255)/255,g:(e>>8&255)/255,b:(e&255)/255};if(t===8)return{mode:"rgb",r:(e>>24&255)/255,g:(e>>16&255)/255,b:(e>>8&255)/255,alpha:(e&255)/255}}},x2=vS;var xS={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},$g=xS;var bS=e=>x2($g[e.toLowerCase()],6),jg=bS;var LS=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,wS=e=>{let t;return(t=e.match(LS))?x2(parseInt(t[1],16),t[1].length):void 0},Gg=wS;var i1="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",B_=`(?:${i1}|none)`,jr=`${i1}%`,N_=`(?:${i1}%|none)`,Ui=`(?:${i1}%|${i1})`,yS=`(?:${i1}%|${i1}|none)`,Kg=`(?:${i1}(deg|grad|rad|turn)|${i1})`,P_=`(?:${i1}(deg|grad|rad|turn)|${i1}|none)`,Ja="\\s*,\\s*";var Z_=new RegExp("^"+yS+"$");var IS=new RegExp(`^rgba?\\(\\s*${i1}${Ja}${i1}${Ja}${i1}\\s*(?:,\\s*${Ui}\\s*)?\\)$`),SS=new RegExp(`^rgba?\\(\\s*${jr}${Ja}${jr}${Ja}${jr}\\s*(?:,\\s*${Ui}\\s*)?\\)$`),MS=e=>{let t={mode:"rgb"},o;if(o=e.match(IS))o[1]!==void 0&&(t.r=o[1]/255),o[2]!==void 0&&(t.g=o[2]/255),o[3]!==void 0&&(t.b=o[3]/255);else if(o=e.match(SS))o[1]!==void 0&&(t.r=o[1]/100),o[2]!==void 0&&(t.g=o[2]/100),o[3]!==void 0&&(t.b=o[3]/100);else return;return o[4]!==void 0?t.alpha=Math.max(0,Math.min(1,o[4]/100)):o[5]!==void 0&&(t.alpha=Math.max(0,Math.min(1,+o[5]))),t},Xg=MS;var RS=(e,t)=>e===void 0?void 0:typeof e!="object"?Gr(e):e.mode!==void 0?e:t?{...e,mode:t}:void 0,b2=RS;var HS=(e="rgb")=>t=>(t=b2(t,e))!==void 0?t.mode===e?t:ho[t.mode][e]?ho[t.mode][e](t):e==="rgb"?ho[t.mode].rgb(t):ho.rgb[e](ho[t.mode].rgb(t)):void 0,V1=HS;var ho={},Qg={},Fi=[],r5={},kS=e=>e,_e=e=>(ho[e.mode]={...ho[e.mode],...e.toMode},Object.keys(e.fromMode||{}).forEach(t=>{ho[t]||(ho[t]={}),ho[t][e.mode]=e.fromMode[t]}),e.ranges||(e.ranges={}),e.difference||(e.difference={}),e.channels.forEach(t=>{if(e.ranges[t]===void 0&&(e.ranges[t]=[0,1]),!e.interpolate[t])throw new Error(`Missing interpolator for: ${t}`);typeof e.interpolate[t]=="function"&&(e.interpolate[t]={use:e.interpolate[t]}),e.interpolate[t].fixup||(e.interpolate[t].fixup=kS)}),Qg[e.mode]=e,(e.parse||[]).forEach(t=>{TS(t,e.mode)}),V1(e.mode)),L2=e=>Qg[e],TS=(e,t)=>{if(typeof e=="string"){if(!t)throw new Error("'mode' required when 'parser' is a string");r5[e]=t}else typeof e=="function"&&Fi.indexOf(e)<0&&Fi.push(e)};var l5=/[^\x00-\x7F]|[a-zA-Z_]/,ES=/[^\x00-\x7F]|[-\w]/,A={Function:"function",Ident:"ident",Number:"number",Percentage:"percentage",ParenClose:")",None:"none",Hue:"hue",Alpha:"alpha"},se=0;function w2(e){let t=e[se],o=e[se+1];return t==="-"||t==="+"?/\d/.test(o)||o==="."&&/\d/.test(e[se+2]):t==="."?/\d/.test(o):/\d/.test(t)}function n5(e){if(se>=e.length)return!1;let t=e[se];if(l5.test(t))return!0;if(t==="-"){if(e.length-se<2)return!1;let o=e[se+1];return!!(o==="-"||l5.test(o))}return!1}var _S={deg:1,rad:180/Math.PI,grad:9/10,turn:360};function qi(e){let t="";if((e[se]==="-"||e[se]==="+")&&(t+=e[se++]),t+=y2(e),e[se]==="."&&/\d/.test(e[se+1])&&(t+=e[se++]+y2(e)),(e[se]==="e"||e[se]==="E")&&((e[se+1]==="-"||e[se+1]==="+")&&/\d/.test(e[se+2])?t+=e[se++]+e[se++]+y2(e):/\d/.test(e[se+1])&&(t+=e[se++]+y2(e))),n5(e)){let o=I2(e);return o==="deg"||o==="rad"||o==="turn"||o==="grad"?{type:A.Hue,value:t*_S[o]}:void 0}return e[se]==="%"?(se++,{type:A.Percentage,value:+t}):{type:A.Number,value:+t}}function y2(e){let t="";for(;/\d/.test(e[se]);)t+=e[se++];return t}function I2(e){let t="";for(;se<e.length&&ES.test(e[se]);)t+=e[se++];return t}function OS(e){let t=I2(e);return e[se]==="("?(se++,{type:A.Function,value:t}):t==="none"?{type:A.None,value:void 0}:{type:A.Ident,value:t}}function DS(e=""){let t=e.trim(),o=[],a;for(se=0;se<t.length;){if(a=t[se++],a===`
|
|
403
403
|
`||a===" "||a===" "){for(;se<t.length&&(t[se]===`
|
|
404
404
|
`||t[se]===" "||t[se]===" ");)se++;continue}if(a===",")return;if(a===")"){o.push({type:A.ParenClose});continue}if(a==="+"){if(se--,w2(t)){o.push(qi(t));continue}return}if(a==="-"){if(se--,w2(t)){o.push(qi(t));continue}if(n5(t)){o.push({type:A.Ident,value:I2(t)});continue}return}if(a==="."){if(se--,w2(t)){o.push(qi(t));continue}return}if(a==="/"){for(;se<t.length&&(t[se]===`
|
|
405
405
|
`||t[se]===" "||t[se]===" ");)se++;let r;if(w2(t)&&(r=qi(t),r.type!==A.Hue)){o.push({type:A.Alpha,value:r});continue}if(n5(t)&&I2(t)==="none"){o.push({type:A.Alpha,value:{type:A.None,value:void 0}});continue}return}if(/\d/.test(a)){se--,o.push(qi(t));continue}if(l5.test(a)){se--,o.push(OS(t));continue}return}return o}function VS(e){e._i=0;let t=e[e._i++];if(!t||t.type!==A.Function||t.value!=="color"||(t=e[e._i++],t.type!==A.Ident))return;let o=r5[t.value];if(!o)return;let a={mode:o},r=Yg(e,!1);if(!r)return;let l=L2(o).channels;for(let n=0,i,u;n<l.length;n++)i=r[n],u=l[n],i.type!==A.None&&(a[u]=i.type===A.Number?i.value:i.value/100,u==="alpha"&&(a[u]=Math.max(0,Math.min(1,a[u]))));return a}function Yg(e,t){let o=[],a;for(;e._i<e.length;){if(a=e[e._i++],a.type===A.None||a.type===A.Number||a.type===A.Alpha||a.type===A.Percentage||t&&a.type===A.Hue){o.push(a);continue}if(a.type===A.ParenClose){if(e._i<e.length)return;continue}return}if(!(o.length<3||o.length>4)){if(o.length===4){if(o[3].type!==A.Alpha)return;o[3]=o[3].value}return o.length===3&&o.push({type:A.None,value:void 0}),o.every(r=>r.type!==A.Alpha)?o:void 0}}function AS(e,t){e._i=0;let o=e[e._i++];if(!o||o.type!==A.Function)return;let a=Yg(e,t);if(a)return a.unshift(o.value),a}var BS=e=>{if(typeof e!="string")return;let t=DS(e),o=t?AS(t,!0):void 0,a,r=0,l=Fi.length;for(;r<l;)if((a=Fi[r++](e,o))!==void 0)return a;return t?VS(t):void 0},Gr=BS;function NS(e,t){if(!t||t[0]!=="rgb"&&t[0]!=="rgba")return;let o={mode:"rgb"},[,a,r,l,n]=t;if(!(a.type===A.Hue||r.type===A.Hue||l.type===A.Hue))return a.type!==A.None&&(o.r=a.type===A.Number?a.value/255:a.value/100),r.type!==A.None&&(o.g=r.type===A.Number?r.value/255:r.value/100),l.type!==A.None&&(o.b=l.type===A.Number?l.value/255:l.value/100),n.type!==A.None&&(o.alpha=Math.min(1,Math.max(0,n.type===A.Number?n.value:n.value/100))),o}var Wg=NS;var PS=e=>e==="transparent"?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0,Jg=PS;var eh=(e,t,o)=>e+o*(t-e);var ZS=e=>{let t=[];for(let o=0;o<e.length-1;o++){let a=e[o],r=e[o+1];a===void 0&&r===void 0?t.push(void 0):a!==void 0&&r!==void 0?t.push([a,r]):t.push(a!==void 0?[a,a]:[r,r])}return t},th=e=>t=>{let o=ZS(t);return a=>{let r=a*o.length,l=a>=1?o.length-1:Math.max(Math.floor(r),0),n=o[l];return n===void 0?void 0:e(n[0],n[1],r-l)}};var N=th(eh);var we=e=>{let t=!1,o=e.map(a=>a!==void 0?(t=!0,a):1);return t?o:e};var zS={mode:"rgb",channels:["r","g","b","alpha"],parse:[Wg,Gg,Xg,jg,Jg,"srgb"],serialize:"srgb",interpolate:{r:N,g:N,b:N,alpha:{use:N,fixup:we}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},eo=zS;var i5=(e=0)=>Math.pow(Math.abs(e),2.19921875)*Math.sign(e),US=e=>{let t=i5(e.r),o=i5(e.g),a=i5(e.b),r={mode:"xyz65",x:.5766690429101305*t+.1855582379065463*o+.1882286462349947*a,y:.297344975250536*t+.6273635662554661*o+.0752914584939979*a,z:.0270313613864123*t+.0706888525358272*o+.9913375368376386*a};return e.alpha!==void 0&&(r.alpha=e.alpha),r},u5=US;var s5=e=>Math.pow(Math.abs(e),.4547069271758437)*Math.sign(e),FS=({x:e,y:t,z:o,alpha:a})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r={mode:"a98",r:s5(e*2.0415879038107465-t*.5650069742788597-.3447313507783297*o),g:s5(e*-.9692436362808798+t*1.8759675015077206+.0415550574071756*o),b:s5(e*.0134442806320312-t*.1183623922310184+1.0151749943912058*o)};return a!==void 0&&(r.alpha=a),r},d5=FS;var c5=(e=0)=>{let t=Math.abs(e);return t<=.04045?e/12.92:(Math.sign(e)||1)*Math.pow((t+.055)/1.055,2.4)},qS=({r:e,g:t,b:o,alpha:a})=>{let r={mode:"lrgb",r:c5(e),g:c5(t),b:c5(o)};return a!==void 0&&(r.alpha=a),r},to=qS;var $S=e=>{let{r:t,g:o,b:a,alpha:r}=to(e),l={mode:"xyz65",x:.4123907992659593*t+.357584339383878*o+.1804807884018343*a,y:.2126390058715102*t+.715168678767756*o+.0721923153607337*a,z:.0193308187155918*t+.119194779794626*o+.9505321522496607*a};return r!==void 0&&(l.alpha=r),l},C1=$S;var f5=(e=0)=>{let t=Math.abs(e);return t>.0031308?(Math.sign(e)||1)*(1.055*Math.pow(t,.4166666666666667)-.055):e*12.92},jS=({r:e,g:t,b:o,alpha:a},r="rgb")=>{let l={mode:r,r:f5(e),g:f5(t),b:f5(o)};return a!==void 0&&(l.alpha=a),l},oo=jS;var GS=({x:e,y:t,z:o,alpha:a})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=oo({r:e*3.2409699419045226-t*1.537383177570094-.4986107602930034*o,g:e*-.9692436362808796+t*1.8759675015077204+.0415550574071756*o,b:e*.0556300796969936-t*.2039769588889765+1.0569715142428784*o});return a!==void 0&&(r.alpha=a),r},v1=GS;var KS={...eo,mode:"a98",parse:["a98-rgb"],serialize:"a98-rgb",fromMode:{rgb:e=>d5(C1(e)),xyz65:d5},toMode:{rgb:e=>v1(u5(e)),xyz65:u5}},oh=KS;var XS=e=>(e=e%360)<0?e+360:e,qe=XS;var QS=(e,t)=>e.map((o,a,r)=>{if(o===void 0)return o;let l=qe(o);return a===0||e[a-1]===void 0?l:t(l-qe(r[a-1]))}).reduce((o,a)=>!o.length||a===void 0||o[o.length-1]===void 0?(o.push(a),o):(o.push(a+o[o.length-1]),o),[]),At=e=>QS(e,t=>Math.abs(t)<=180?t:t-360*Math.sign(t));var xt=[-.14861,1.78277,-.29227,-.90649,1.97294,0],ah=Math.PI/180,rh=180/Math.PI;var lh=xt[3]*xt[4],nh=xt[1]*xt[4],ih=xt[1]*xt[2]-xt[0]*xt[3],YS=({r:e,g:t,b:o,alpha:a})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=(ih*o+e*lh-t*nh)/(ih+lh-nh),l=o-r,n=(xt[4]*(t-r)-xt[2]*l)/xt[3],i={mode:"cubehelix",l:r,s:r===0||r===1?void 0:Math.sqrt(l*l+n*n)/(xt[4]*r*(1-r))};return i.s&&(i.h=Math.atan2(n,l)*rh-120),a!==void 0&&(i.alpha=a),i},uh=YS;var WS=({h:e,s:t,l:o,alpha:a})=>{let r={mode:"rgb"};e=(e===void 0?0:e+120)*ah,o===void 0&&(o=0);let l=t===void 0?0:t*o*(1-o),n=Math.cos(e),i=Math.sin(e);return r.r=o+l*(xt[0]*n+xt[1]*i),r.g=o+l*(xt[2]*n+xt[3]*i),r.b=o+l*(xt[4]*n+xt[5]*i),a!==void 0&&(r.alpha=a),r},sh=WS;var er=(e,t)=>{if(e.h===void 0||t.h===void 0||!e.s||!t.s)return 0;let o=qe(e.h),a=qe(t.h),r=Math.sin((a-o+360)/2*Math.PI/180);return 2*Math.sqrt(e.s*t.s)*r},dh=(e,t)=>{if(e.h===void 0||t.h===void 0)return 0;let o=qe(e.h),a=qe(t.h);return Math.abs(a-o)>180?o-(a-360*Math.sign(a-o)):a-o},tr=(e,t)=>{if(e.h===void 0||t.h===void 0||!e.c||!t.c)return 0;let o=qe(e.h),a=qe(t.h),r=Math.sin((a-o+360)/2*Math.PI/180);return 2*Math.sqrt(e.c*t.c)*r};var Bt=e=>{let t=e.reduce((a,r)=>{if(r!==void 0){let l=r*Math.PI/180;a.sin+=Math.sin(l),a.cos+=Math.cos(l)}return a},{sin:0,cos:0}),o=Math.atan2(t.sin,t.cos)*180/Math.PI;return o<0?360+o:o};var JS={mode:"cubehelix",channels:["h","s","l","alpha"],parse:["--cubehelix"],serialize:"--cubehelix",ranges:{h:[0,360],s:[0,4.614],l:[0,1]},fromMode:{rgb:uh},toMode:{rgb:sh},interpolate:{h:{use:N,fixup:At},s:N,l:N,alpha:{use:N,fixup:we}},difference:{h:er},average:{h:Bt}},ch=JS;var eM=({l:e,a:t,b:o,alpha:a},r="lch")=>{t===void 0&&(t=0),o===void 0&&(o=0);let l=Math.sqrt(t*t+o*o),n={mode:r,l:e,c:l};return l&&(n.h=qe(Math.atan2(o,t)*180/Math.PI)),a!==void 0&&(n.alpha=a),n},A1=eM;var tM=({l:e,c:t,h:o,alpha:a},r="lab")=>{o===void 0&&(o=0);let l={mode:r,l:e,a:t?t*Math.cos(o/180*Math.PI):0,b:t?t*Math.sin(o/180*Math.PI):0};return a!==void 0&&(l.alpha=a),l},B1=tM;var S2=Math.pow(29,3)/Math.pow(3,3),M2=Math.pow(6,3)/Math.pow(29,3);var rt={X:.9642956764295677,Y:1,Z:.8251046025104602},or={X:.3127/.329,Y:1,Z:(1-.3127-.329)/.329},JO=Math.pow(29,3)/Math.pow(3,3),eD=Math.pow(6,3)/Math.pow(29,3);var p5=e=>Math.pow(e,3)>M2?Math.pow(e,3):(116*e-16)/S2,oM=({l:e,a:t,b:o,alpha:a})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=(e+16)/116,l=t/500+r,n=r-o/200,i={mode:"xyz65",x:p5(l)*or.X,y:p5(r)*or.Y,z:p5(n)*or.Z};return a!==void 0&&(i.alpha=a),i},R2=oM;var aM=e=>v1(R2(e)),ar=aM;var m5=e=>e>M2?Math.cbrt(e):(S2*e+16)/116,rM=({x:e,y:t,z:o,alpha:a})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=m5(e/or.X),l=m5(t/or.Y),n=m5(o/or.Z),i={mode:"lab65",l:116*l-16,a:500*(r-l),b:200*(l-n)};return a!==void 0&&(i.alpha=a),i},H2=rM;var lM=e=>{let t=H2(C1(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},rr=lM;var Kr=.14444444444444443*Math.PI,sn=Math.cos(Kr),dn=Math.sin(Kr),k2=100/Math.log(139/100);var nM=({l:e,c:t,h:o,alpha:a})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r={mode:"lab65",l:(Math.exp(e*1/k2)-1)/.0039},l=(Math.exp(.0435*t*1*1)-1)/.075,n=l*Math.cos(o/180*Math.PI-Kr),i=l*Math.sin(o/180*Math.PI-Kr);return r.a=n*sn-i/.83*dn,r.b=n*dn+i/.83*sn,a!==void 0&&(r.alpha=a),r},ji=nM;var iM=({l:e,a:t,b:o,alpha:a})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=t*sn+o*dn,l=.83*(o*sn-t*dn),n=Math.sqrt(r*r+l*l),i={mode:"dlch",l:k2/1*Math.log(1+.0039*e),c:Math.log(1+.075*n)/(.0435*1*1)};return i.c&&(i.h=qe((Math.atan2(l,r)+Kr)/Math.PI*180)),a!==void 0&&(i.alpha=a),i},Gi=iM;var fh=e=>ji(A1(e,"dlch")),ph=e=>B1(Gi(e),"dlab"),uM={mode:"dlab",parse:["--din99o-lab"],serialize:"--din99o-lab",toMode:{lab65:fh,rgb:e=>ar(fh(e))},fromMode:{lab65:ph,rgb:e=>ph(rr(e))},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-40.09,45.501],b:[-40.469,44.344]},interpolate:{l:N,a:N,b:N,alpha:{use:N,fixup:we}}},mh=uM;var sM={mode:"dlch",parse:["--din99o-lch"],serialize:"--din99o-lch",toMode:{lab65:ji,dlab:e=>B1(e,"dlab"),rgb:e=>ar(ji(e))},fromMode:{lab65:Gi,dlab:e=>A1(e,"dlch"),rgb:e=>Gi(rr(e))},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,51.484],h:[0,360]},interpolate:{l:N,c:N,h:{use:N,fixup:At},alpha:{use:N,fixup:we}},difference:{h:tr},average:{h:Bt}},gh=sM;function h5({h:e,s:t,i:o,alpha:a}){e=qe(e!==void 0?e:0),t===void 0&&(t=0),o===void 0&&(o=0);let r=Math.abs(e/60%2-1),l;switch(Math.floor(e/60)){case 0:l={r:o*(1+t*(3/(2-r)-1)),g:o*(1+t*(3*(1-r)/(2-r)-1)),b:o*(1-t)};break;case 1:l={r:o*(1+t*(3*(1-r)/(2-r)-1)),g:o*(1+t*(3/(2-r)-1)),b:o*(1-t)};break;case 2:l={r:o*(1-t),g:o*(1+t*(3/(2-r)-1)),b:o*(1+t*(3*(1-r)/(2-r)-1))};break;case 3:l={r:o*(1-t),g:o*(1+t*(3*(1-r)/(2-r)-1)),b:o*(1+t*(3/(2-r)-1))};break;case 4:l={r:o*(1+t*(3*(1-r)/(2-r)-1)),g:o*(1-t),b:o*(1+t*(3/(2-r)-1))};break;case 5:l={r:o*(1+t*(3/(2-r)-1)),g:o*(1-t),b:o*(1+t*(3*(1-r)/(2-r)-1))};break;default:l={r:o*(1-t),g:o*(1-t),b:o*(1-t)}}return l.mode="rgb",a!==void 0&&(l.alpha=a),l}function C5({r:e,g:t,b:o,alpha:a}){e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=Math.max(e,t,o),l=Math.min(e,t,o),n={mode:"hsi",s:e+t+o===0?0:1-3*l/(e+t+o),i:(e+t+o)/3};return r-l!==0&&(n.h=(r===e?(t-o)/(r-l)+(t<o)*6:r===t?(o-e)/(r-l)+2:(e-t)/(r-l)+4)*60),a!==void 0&&(n.alpha=a),n}var dM={mode:"hsi",toMode:{rgb:h5},parse:["--hsi"],serialize:"--hsi",fromMode:{rgb:C5},channels:["h","s","i","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:N,fixup:At},s:N,i:N,alpha:{use:N,fixup:we}},difference:{h:er},average:{h:Bt}},hh=dM;function v5({h:e,s:t,l:o,alpha:a}){e=qe(e!==void 0?e:0),t===void 0&&(t=0),o===void 0&&(o=0);let r=o+t*(o<.5?o:1-o),l=r-(r-o)*2*Math.abs(e/60%2-1),n;switch(Math.floor(e/60)){case 0:n={r,g:l,b:2*o-r};break;case 1:n={r:l,g:r,b:2*o-r};break;case 2:n={r:2*o-r,g:r,b:l};break;case 3:n={r:2*o-r,g:l,b:r};break;case 4:n={r:l,g:2*o-r,b:r};break;case 5:n={r,g:2*o-r,b:l};break;default:n={r:2*o-r,g:2*o-r,b:2*o-r}}return n.mode="rgb",a!==void 0&&(n.alpha=a),n}function x5({r:e,g:t,b:o,alpha:a}){e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=Math.max(e,t,o),l=Math.min(e,t,o),n={mode:"hsl",s:r===l?0:(r-l)/(1-Math.abs(r+l-1)),l:.5*(r+l)};return r-l!==0&&(n.h=(r===e?(t-o)/(r-l)+(t<o)*6:r===t?(o-e)/(r-l)+2:(e-t)/(r-l)+4)*60),a!==void 0&&(n.alpha=a),n}var cM=(e,t)=>{switch(t){case"deg":return+e;case"rad":return e/Math.PI*180;case"grad":return e/10*9;case"turn":return e*360}},Ch=cM;var fM=new RegExp(`^hsla?\\(\\s*${Kg}${Ja}${jr}${Ja}${jr}\\s*(?:,\\s*${Ui}\\s*)?\\)$`),pM=e=>{let t=e.match(fM);if(!t)return;let o={mode:"hsl"};return t[3]!==void 0?o.h=+t[3]:t[1]!==void 0&&t[2]!==void 0&&(o.h=Ch(t[1],t[2])),t[4]!==void 0&&(o.s=Math.min(Math.max(0,t[4]/100),1)),t[5]!==void 0&&(o.l=Math.min(Math.max(0,t[5]/100),1)),t[6]!==void 0?o.alpha=Math.max(0,Math.min(1,t[6]/100)):t[7]!==void 0&&(o.alpha=Math.max(0,Math.min(1,+t[7]))),o},vh=pM;function mM(e,t){if(!t||t[0]!=="hsl"&&t[0]!=="hsla")return;let o={mode:"hsl"},[,a,r,l,n]=t;if(a.type!==A.None){if(a.type===A.Percentage)return;o.h=a.value}if(r.type!==A.None){if(r.type===A.Hue)return;o.s=r.value/100}if(l.type!==A.None){if(l.type===A.Hue)return;o.l=l.value/100}return n.type!==A.None&&(o.alpha=Math.min(1,Math.max(0,n.type===A.Number?n.value:n.value/100))),o}var xh=mM;var gM={mode:"hsl",toMode:{rgb:v5},fromMode:{rgb:x5},channels:["h","s","l","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[xh,vh],serialize:e=>`hsl(${e.h!==void 0?e.h:"none"} ${e.s!==void 0?e.s*100+"%":"none"} ${e.l!==void 0?e.l*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:N,fixup:At},s:N,l:N,alpha:{use:N,fixup:we}},difference:{h:er},average:{h:Bt}},T2=gM;function Ki({h:e,s:t,v:o,alpha:a}){e=qe(e!==void 0?e:0),t===void 0&&(t=0),o===void 0&&(o=0);let r=Math.abs(e/60%2-1),l;switch(Math.floor(e/60)){case 0:l={r:o,g:o*(1-t*r),b:o*(1-t)};break;case 1:l={r:o*(1-t*r),g:o,b:o*(1-t)};break;case 2:l={r:o*(1-t),g:o,b:o*(1-t*r)};break;case 3:l={r:o*(1-t),g:o*(1-t*r),b:o};break;case 4:l={r:o*(1-t*r),g:o*(1-t),b:o};break;case 5:l={r:o,g:o*(1-t),b:o*(1-t*r)};break;default:l={r:o*(1-t),g:o*(1-t),b:o*(1-t)}}return l.mode="rgb",a!==void 0&&(l.alpha=a),l}function Xi({r:e,g:t,b:o,alpha:a}){e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=Math.max(e,t,o),l=Math.min(e,t,o),n={mode:"hsv",s:r===0?0:1-l/r,v:r};return r-l!==0&&(n.h=(r===e?(t-o)/(r-l)+(t<o)*6:r===t?(o-e)/(r-l)+2:(e-t)/(r-l)+4)*60),a!==void 0&&(n.alpha=a),n}var hM={mode:"hsv",toMode:{rgb:Ki},parse:["--hsv"],serialize:"--hsv",fromMode:{rgb:Xi},channels:["h","s","v","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:N,fixup:At},s:N,v:N,alpha:{use:N,fixup:we}},difference:{h:er},average:{h:Bt}},E2=hM;function b5({h:e,w:t,b:o,alpha:a}){if(t===void 0&&(t=0),o===void 0&&(o=0),t+o>1){let r=t+o;t/=r,o/=r}return Ki({h:e,s:o===1?1:1-t/(1-o),v:1-o,alpha:a})}function L5(e){let t=Xi(e);if(t===void 0)return;let o=t.s!==void 0?t.s:0,a=t.v!==void 0?t.v:0,r={mode:"hwb",w:(1-o)*a,b:1-a};return t.h!==void 0&&(r.h=t.h),t.alpha!==void 0&&(r.alpha=t.alpha),r}function CM(e,t){if(!t||t[0]!=="hwb")return;let o={mode:"hwb"},[,a,r,l,n]=t;if(a.type!==A.None){if(a.type===A.Percentage)return;o.h=a.value}if(r.type!==A.None){if(r.type===A.Hue)return;o.w=r.value/100}if(l.type!==A.None){if(l.type===A.Hue)return;o.b=l.value/100}return n.type!==A.None&&(o.alpha=Math.min(1,Math.max(0,n.type===A.Number?n.value:n.value/100))),o}var bh=CM;var vM={mode:"hwb",toMode:{rgb:b5},fromMode:{rgb:L5},channels:["h","w","b","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[bh],serialize:e=>`hwb(${e.h!==void 0?e.h:"none"} ${e.w!==void 0?e.w*100+"%":"none"} ${e.b!==void 0?e.b*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:N,fixup:At},w:N,b:N,alpha:{use:N,fixup:we}},difference:{h:dh},average:{h:Bt}},Lh=vM;var cn=.1593017578125,wh=78.84375,fn=.8359375,pn=18.8515625,mn=18.6875;function _2(e){if(e<0)return 0;let t=Math.pow(e,1/wh);return 1e4*Math.pow(Math.max(0,t-fn)/(pn-mn*t),1/cn)}function O2(e){if(e<0)return 0;let t=Math.pow(e/1e4,cn);return Math.pow((fn+pn*t)/(1+mn*t),wh)}var w5=e=>Math.max(e/203,0),bM=({i:e,t,p:o,alpha:a})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=_2(e+.008609037037932761*t+.11102962500302593*o),l=_2(e-.00860903703793275*t-.11102962500302599*o),n=_2(e+.5600313357106791*t-.32062717498731885*o),i={mode:"xyz65",x:w5(2.070152218389422*r-1.3263473389671556*l+.2066510476294051*n),y:w5(.3647385209748074*r+.680566024947227*l-.0453045459220346*n),z:w5(-.049747207535812*r-.0492609666966138*l+1.1880659249923042*n)};return a!==void 0&&(i.alpha=a),i},y5=bM;var I5=(e=0)=>Math.max(e*203,0),LM=({x:e,y:t,z:o,alpha:a})=>{let r=I5(e),l=I5(t),n=I5(o),i=O2(.3592832590121217*r+.6976051147779502*l-.0358915932320289*n),u=O2(-.1920808463704995*r+1.1004767970374323*l+.0753748658519118*n),s=O2(.0070797844607477*r+.0748396662186366*l+.8433265453898765*n),d=.5*i+.5*u,g=1.61376953125*i-3.323486328125*u+1.709716796875*s,f=4.378173828125*i-4.24560546875*u-.132568359375*s,p={mode:"itp",i:d,t:g,p:f};return a!==void 0&&(p.alpha=a),p},S5=LM;var wM={mode:"itp",channels:["i","t","p","alpha"],parse:["--ictcp"],serialize:"--ictcp",toMode:{xyz65:y5,rgb:e=>v1(y5(e))},fromMode:{xyz65:S5,rgb:e=>S5(C1(e))},ranges:{i:[0,.581],t:[-.369,.272],p:[-.164,.331]},interpolate:{i:N,t:N,p:N,alpha:{use:N,fixup:we}}},yh=wM;var yM=134.03437499999998,IM=16295499532821565e-27,M5=e=>{if(e<0)return 0;let t=Math.pow(e/1e4,cn);return Math.pow((fn+pn*t)/(1+mn*t),yM)},R5=(e=0)=>Math.max(e*203,0),SM=({x:e,y:t,z:o,alpha:a})=>{e=R5(e),t=R5(t),o=R5(o);let r=1.15*e-.15*o,l=.66*t+.34*e,n=M5(.41478972*r+.579999*l+.014648*o),i=M5(-.20151*r+1.120649*l+.0531008*o),u=M5(-.0166008*r+.2648*l+.6684799*o),s=(n+i)/2,d={mode:"jab",j:.44*s/(1-.56*s)-IM,a:3.524*n-4.066708*i+.542708*u,b:.199076*n+1.096799*i-1.295875*u};return a!==void 0&&(d.alpha=a),d},D2=SM;var MM=134.03437499999998,Ih=16295499532821565e-27,H5=e=>{if(e<0)return 0;let t=Math.pow(e,1/MM);return 1e4*Math.pow((fn-t)/(mn*t-pn),1/cn)},k5=e=>e/203,RM=({j:e,a:t,b:o,alpha:a})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=(e+Ih)/(.44+.56*(e+Ih)),l=H5(r+.13860504*t+.058047316*o),n=H5(r-.13860504*t-.058047316*o),i=H5(r-.096019242*t-.8118919*o),u={mode:"xyz65",x:k5(1.661373024652174*l-.914523081304348*n+.23136208173913045*i),y:k5(-.3250758611844533*l+1.571847026732543*n-.21825383453227928*i),z:k5(-.090982811*l-.31272829*n+1.5227666*i)};return a!==void 0&&(u.alpha=a),u},V2=RM;var HM=e=>{let t=D2(C1(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},A2=HM;var kM=e=>v1(V2(e)),B2=kM;var TM={mode:"jab",channels:["j","a","b","alpha"],parse:["--jzazbz"],serialize:"--jzazbz",fromMode:{rgb:A2,xyz65:D2},toMode:{rgb:B2,xyz65:V2},ranges:{j:[0,.222],a:[-.109,.129],b:[-.185,.134]},interpolate:{j:N,a:N,b:N,alpha:{use:N,fixup:we}}},Sh=TM;var EM=({j:e,a:t,b:o,alpha:a})=>{t===void 0&&(t=0),o===void 0&&(o=0);let r=Math.sqrt(t*t+o*o),l={mode:"jch",j:e,c:r};return r&&(l.h=qe(Math.atan2(o,t)*180/Math.PI)),a!==void 0&&(l.alpha=a),l},T5=EM;var _M=({j:e,c:t,h:o,alpha:a})=>{o===void 0&&(o=0);let r={mode:"jab",j:e,a:t?t*Math.cos(o/180*Math.PI):0,b:t?t*Math.sin(o/180*Math.PI):0};return a!==void 0&&(r.alpha=a),r},E5=_M;var OM={mode:"jch",parse:["--jzczhz"],serialize:"--jzczhz",toMode:{jab:E5,rgb:e=>B2(E5(e))},fromMode:{rgb:e=>T5(A2(e)),jab:T5},channels:["j","c","h","alpha"],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:N,fixup:At},c:N,j:N,alpha:{use:N,fixup:we}},difference:{h:tr},average:{h:Bt}},Mh=OM;var lr=Math.pow(29,3)/Math.pow(3,3),gn=Math.pow(6,3)/Math.pow(29,3);var _5=e=>Math.pow(e,3)>gn?Math.pow(e,3):(116*e-16)/lr,DM=({l:e,a:t,b:o,alpha:a})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=(e+16)/116,l=t/500+r,n=r-o/200,i={mode:"xyz50",x:_5(l)*rt.X,y:_5(r)*rt.Y,z:_5(n)*rt.Z};return a!==void 0&&(i.alpha=a),i},hn=DM;var VM=({x:e,y:t,z:o,alpha:a})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=oo({r:e*3.1341359569958707-t*1.6173863321612538-.4906619460083532*o,g:e*-.978795502912089+t*1.916254567259524+.03344273116131949*o,b:e*.07195537988411677-t*.2289768264158322+1.405386058324125*o});return a!==void 0&&(r.alpha=a),r},Ao=VM;var AM=e=>Ao(hn(e)),N2=AM;var BM=e=>{let{r:t,g:o,b:a,alpha:r}=to(e),l={mode:"xyz50",x:.436065742824811*t+.3851514688337912*o+.14307845442264197*a,y:.22249319175623702*t+.7168870538238823*o+.06061979053616537*a,z:.013923904500943465*t+.09708128566574634*o+.7140993584005155*a};return r!==void 0&&(l.alpha=r),l},Bo=BM;var O5=e=>e>gn?Math.cbrt(e):(lr*e+16)/116,NM=({x:e,y:t,z:o,alpha:a})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=O5(e/rt.X),l=O5(t/rt.Y),n=O5(o/rt.Z),i={mode:"lab",l:116*l-16,a:500*(r-l),b:200*(l-n)};return a!==void 0&&(i.alpha=a),i},Cn=NM;var PM=e=>{let t=Cn(Bo(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},P2=PM;function ZM(e,t){if(!t||t[0]!=="lab")return;let o={mode:"lab"},[,a,r,l,n]=t;if(!(a.type===A.Hue||r.type===A.Hue||l.type===A.Hue))return a.type!==A.None&&(o.l=Math.min(Math.max(0,a.value),100)),r.type!==A.None&&(o.a=r.type===A.Number?r.value:r.value*125/100),l.type!==A.None&&(o.b=l.type===A.Number?l.value:l.value*125/100),n.type!==A.None&&(o.alpha=Math.min(1,Math.max(0,n.type===A.Number?n.value:n.value/100))),o}var Rh=ZM;var zM={mode:"lab",toMode:{xyz50:hn,rgb:N2},fromMode:{xyz50:Cn,rgb:P2},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[Rh],serialize:e=>`lab(${e.l!==void 0?e.l:"none"} ${e.a!==void 0?e.a:"none"} ${e.b!==void 0?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{l:N,a:N,b:N,alpha:{use:N,fixup:we}}},vn=zM;var UM={...vn,mode:"lab65",parse:["--lab-d65"],serialize:"--lab-d65",toMode:{xyz65:R2,rgb:ar},fromMode:{xyz65:H2,rgb:rr},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}},Hh=UM;function FM(e,t){if(!t||t[0]!=="lch")return;let o={mode:"lch"},[,a,r,l,n]=t;if(a.type!==A.None){if(a.type===A.Hue)return;o.l=Math.min(Math.max(0,a.value),100)}if(r.type!==A.None&&(o.c=Math.max(0,r.type===A.Number?r.value:r.value*150/100)),l.type!==A.None){if(l.type===A.Percentage)return;o.h=l.value}return n.type!==A.None&&(o.alpha=Math.min(1,Math.max(0,n.type===A.Number?n.value:n.value/100))),o}var kh=FM;var qM={mode:"lch",toMode:{lab:B1,rgb:e=>N2(B1(e))},fromMode:{rgb:e=>A1(P2(e)),lab:A1},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[kh],serialize:e=>`lch(${e.l!==void 0?e.l:"none"} ${e.c!==void 0?e.c:"none"} ${e.h!==void 0?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:N,fixup:At},c:N,l:N,alpha:{use:N,fixup:we}},difference:{h:tr},average:{h:Bt}},xn=qM;var $M={...xn,mode:"lch65",parse:["--lch-d65"],serialize:"--lch-d65",toMode:{lab65:e=>B1(e,"lab65"),rgb:e=>ar(B1(e,"lab65"))},fromMode:{rgb:e=>A1(rr(e),"lch65"),lab65:e=>A1(e,"lch65")},ranges:{l:[0,100],c:[0,150],h:[0,360]}},Th=$M;var jM=({l:e,u:t,v:o,alpha:a})=>{t===void 0&&(t=0),o===void 0&&(o=0);let r=Math.sqrt(t*t+o*o),l={mode:"lchuv",l:e,c:r};return r&&(l.h=qe(Math.atan2(o,t)*180/Math.PI)),a!==void 0&&(l.alpha=a),l},D5=jM;var GM=({l:e,c:t,h:o,alpha:a})=>{o===void 0&&(o=0);let r={mode:"luv",l:e,u:t?t*Math.cos(o/180*Math.PI):0,v:t?t*Math.sin(o/180*Math.PI):0};return a!==void 0&&(r.alpha=a),r},V5=GM;var Eh=(e,t,o)=>4*e/(e+15*t+3*o),_h=(e,t,o)=>9*t/(e+15*t+3*o),KM=Eh(rt.X,rt.Y,rt.Z),XM=_h(rt.X,rt.Y,rt.Z),QM=e=>e<=gn?lr*e:116*Math.cbrt(e)-16,YM=({x:e,y:t,z:o,alpha:a})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=QM(t/rt.Y),l=Eh(e,t,o),n=_h(e,t,o);!isFinite(l)||!isFinite(n)?r=l=n=0:(l=13*r*(l-KM),n=13*r*(n-XM));let i={mode:"luv",l:r,u:l,v:n};return a!==void 0&&(i.alpha=a),i},Qi=YM;var WM=(e,t,o)=>4*e/(e+15*t+3*o),JM=(e,t,o)=>9*t/(e+15*t+3*o),eR=WM(rt.X,rt.Y,rt.Z),tR=JM(rt.X,rt.Y,rt.Z),oR=({l:e,u:t,v:o,alpha:a})=>{if(e===void 0&&(e=0),e===0)return{mode:"xyz50",x:0,y:0,z:0};t===void 0&&(t=0),o===void 0&&(o=0);let r=t/(13*e)+eR,l=o/(13*e)+tR,n=rt.Y*(e<=8?e/lr:Math.pow((e+16)/116,3)),i=n*(9*r)/(4*l),u=n*(12-3*r-20*l)/(4*l),s={mode:"xyz50",x:i,y:n,z:u};return a!==void 0&&(s.alpha=a),s},Yi=oR;var aR=e=>D5(Qi(Bo(e))),rR=e=>Ao(Yi(V5(e))),lR={mode:"lchuv",toMode:{luv:V5,rgb:rR},fromMode:{rgb:aR,luv:D5},channels:["l","c","h","alpha"],parse:["--lchuv"],serialize:"--lchuv",ranges:{l:[0,100],c:[0,176.956],h:[0,360]},interpolate:{h:{use:N,fixup:At},c:N,l:N,alpha:{use:N,fixup:we}},difference:{h:tr},average:{h:Bt}},Oh=lR;var nR={...eo,mode:"lrgb",toMode:{rgb:oo},fromMode:{rgb:to},parse:["srgb-linear"],serialize:"srgb-linear"},Dh=nR;var iR={mode:"luv",toMode:{xyz50:Yi,rgb:e=>Ao(Yi(e))},fromMode:{xyz50:Qi,rgb:e=>Qi(Bo(e))},channels:["l","u","v","alpha"],parse:["--luv"],serialize:"--luv",ranges:{l:[0,100],u:[-84.936,175.042],v:[-125.882,87.243]},interpolate:{l:N,u:N,v:N,alpha:{use:N,fixup:we}}},Vh=iR;var uR=({r:e,g:t,b:o,alpha:a})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=Math.cbrt(.412221469470763*e+.5363325372617348*t+.0514459932675022*o),l=Math.cbrt(.2119034958178252*e+.6806995506452344*t+.1073969535369406*o),n=Math.cbrt(.0883024591900564*e+.2817188391361215*t+.6299787016738222*o),i={mode:"oklab",l:.210454268309314*r+.7936177747023054*l-.0040720430116193*n,a:1.9779985324311684*r-2.42859224204858*l+.450593709617411*n,b:.0259040424655478*r+.7827717124575296*l-.8086757549230774*n};return a!==void 0&&(i.alpha=a),i},Z2=uR;var sR=e=>{let t=Z2(to(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},nr=sR;var dR=({l:e,a:t,b:o,alpha:a})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=Math.pow(e+.3963377773761749*t+.2158037573099136*o,3),l=Math.pow(e-.1055613458156586*t-.0638541728258133*o,3),n=Math.pow(e-.0894841775298119*t-1.2914855480194092*o,3),i={mode:"lrgb",r:4.076741636075957*r-3.3077115392580616*l+.2309699031821044*n,g:-1.2684379732850317*r+2.6097573492876887*l-.3413193760026573*n,b:-.0041960761386756*r-.7034186179359362*l+1.7076146940746117*n};return a!==void 0&&(i.alpha=a),i},No=dR;var cR=e=>oo(No(e)),ir=cR;function Wi(e){let a=1.170873786407767;return .5*(a*e-.206+Math.sqrt((a*e-.206)*(a*e-.206)+4*.03*a*e))}function Xr(e){return(e*e+.206*e)/(1.170873786407767*(e+.03))}function fR(e,t){let o,a,r,l,n,i,u,s;-1.88170328*e-.80936493*t>1?(o=1.19086277,a=1.76576728,r=.59662641,l=.75515197,n=.56771245,i=4.0767416621,u=-3.3077115913,s=.2309699292):1.81444104*e-1.19445276*t>1?(o=.73956515,a=-.45954404,r=.08285427,l=.1254107,n=.14503204,i=-1.2684380046,u=2.6097574011,s=-.3413193965):(o=1.35733652,a=-.00915799,r=-1.1513021,l=-.50559606,n=.00692167,i=-.0041960863,u=-.7034186147,s=1.707614701);let d=o+a*e+r*t+l*e*e+n*e*t,g=.3963377774*e+.2158037573*t,f=-.1055613458*e-.0638541728*t,p=-.0894841775*e-1.291485548*t;{let v=1+d*g,b=1+d*f,x=1+d*p,m=v*v*v,c=b*b*b,h=x*x*x,C=3*g*v*v,w=3*f*b*b,S=3*p*x*x,H=6*g*g*v,y=6*f*f*b,k=6*p*p*x,O=i*m+u*c+s*h,F=i*C+u*w+s*S,ae=i*H+u*y+s*k;d=d-O*F/(F*F-.5*O*ae)}return d}function A5(e,t){let o=fR(e,t),a=No({l:1,a:o*e,b:o*t}),r=Math.cbrt(1/Math.max(a.r,a.g,a.b)),l=r*o;return[r,l]}function pR(e,t,o,a,r,l=null){l||(l=A5(e,t));let n;if((o-r)*l[1]-(l[0]-r)*a<=0)n=l[1]*r/(a*l[0]+l[1]*(r-o));else{n=l[1]*(r-1)/(a*(l[0]-1)+l[1]*(r-o));{let i=o-r,u=a,s=.3963377774*e+.2158037573*t,d=-.1055613458*e-.0638541728*t,g=-.0894841775*e-1.291485548*t,f=i+u*s,p=i+u*d,v=i+u*g;{let b=r*(1-n)+n*o,x=n*a,m=b+x*s,c=b+x*d,h=b+x*g,C=m*m*m,w=c*c*c,S=h*h*h,H=3*f*m*m,y=3*p*c*c,k=3*v*h*h,O=6*f*f*m,F=6*p*p*c,ae=6*v*v*h,K=4.0767416621*C-3.3077115913*w+.2309699292*S-1,B=4.0767416621*H-3.3077115913*y+.2309699292*k,Q=4.0767416621*O-3.3077115913*F+.2309699292*ae,M=B/(B*B-.5*K*Q),I=-K*M,R=-1.2684380046*C+2.6097574011*w-.3413193965*S-1,L=-1.2684380046*H+2.6097574011*y-.3413193965*k,T=-1.2684380046*O+2.6097574011*F-.3413193965*ae,Z=L/(L*L-.5*R*T),z=-R*Z,W=-.0041960863*C-.7034186147*w+1.707614701*S-1,U=-.0041960863*H-.7034186147*y+1.707614701*k,j=-.0041960863*O-.7034186147*F+1.707614701*ae,q=U/(U*U-.5*W*j),D=-W*q;I=M>=0?I:1e6,z=Z>=0?z:1e6,D=q>=0?D:1e6,n+=Math.min(I,Math.min(z,D))}}}return n}function Ji(e,t,o=null){o||(o=A5(e,t));let a=o[0],r=o[1];return[r/a,r/(1-a)]}function z2(e,t,o){let a=A5(t,o),r=pR(t,o,e,1,e,a),l=Ji(t,o,a),n=.11516993+1/(7.4477897+4.1590124*o+t*(-2.19557347+1.75198401*o+t*(-2.13704948-10.02301043*o+t*(-4.24894561+5.38770819*o+4.69891013*t)))),i=.11239642+1/(1.6132032-.68124379*o+t*(.40370612+.90148123*o+t*(-.27087943+.6122399*o+t*(.00299215-.45399568*o-.14661872*t)))),u=r/Math.min(e*l[0],(1-e)*l[1]),s=e*n,d=(1-e)*i,g=.9*u*Math.sqrt(Math.sqrt(1/(1/(s*s*s*s)+1/(d*d*d*d))));return s=e*.4,d=(1-e)*.8,[Math.sqrt(1/(1/(s*s)+1/(d*d))),g,r]}function U2(e){let t=e.l!==void 0?e.l:0,o=e.a!==void 0?e.a:0,a=e.b!==void 0?e.b:0,r={mode:"okhsl",l:Wi(t)};e.alpha!==void 0&&(r.alpha=e.alpha);let l=Math.sqrt(o*o+a*a);if(!l)return r.s=0,r;let[n,i,u]=z2(t,o/l,a/l),s;if(l<i){let d=0,g=.8*n,f=1-g/i;s=(l-d)/(g+f*(l-d))*.8}else{let d=i,g=.2*i*i*1.25*1.25/n,f=1-g/(u-i);s=.8+.2*((l-d)/(g+f*(l-d)))}return s&&(r.s=s,r.h=qe(Math.atan2(a,o)*180/Math.PI)),r}function F2(e){let t=e.h!==void 0?e.h:0,o=e.s!==void 0?e.s:0,a=e.l!==void 0?e.l:0,r={mode:"oklab",l:Xr(a)};if(e.alpha!==void 0&&(r.alpha=e.alpha),!o||a===1)return r.a=r.b=0,r;let l=Math.cos(t/180*Math.PI),n=Math.sin(t/180*Math.PI),[i,u,s]=z2(r.l,l,n),d,g,f,p;o<.8?(d=1.25*o,g=0,f=.8*i,p=1-f/u):(d=5*(o-.8),g=u,f=.2*u*u*1.25*1.25/i,p=1-f/(s-u));let v=g+d*f/(1-p*d);return r.a=v*l,r.b=v*n,r}var mR={...T2,mode:"okhsl",channels:["h","s","l","alpha"],parse:["--okhsl"],serialize:"--okhsl",fromMode:{oklab:U2,rgb:e=>U2(nr(e))},toMode:{oklab:F2,rgb:e=>ir(F2(e))}},Ah=mR;function q2(e){let t=e.l!==void 0?e.l:0,o=e.a!==void 0?e.a:0,a=e.b!==void 0?e.b:0,r=Math.sqrt(o*o+a*a),l=r?o/r:1,n=r?a/r:1,[i,u]=Ji(l,n),s=.5,d=1-s/i,g=u/(r+t*u),f=g*t,p=g*r,v=Xr(f),b=p*v/f,x=No({l:v,a:l*b,b:n*b}),m=Math.cbrt(1/Math.max(x.r,x.g,x.b,0));t=t/m,r=r/m*Wi(t)/t,t=Wi(t);let c={mode:"okhsv",s:r?(s+u)*p/(u*s+u*d*p):0,v:t?t/f:0};return c.s&&(c.h=qe(Math.atan2(a,o)*180/Math.PI)),e.alpha!==void 0&&(c.alpha=e.alpha),c}function $2(e){let t={mode:"oklab"};e.alpha!==void 0&&(t.alpha=e.alpha);let o=e.h!==void 0?e.h:0,a=e.s!==void 0?e.s:0,r=e.v!==void 0?e.v:0,l=Math.cos(o/180*Math.PI),n=Math.sin(o/180*Math.PI),[i,u]=Ji(l,n),s=.5,d=1-s/i,g=1-a*s/(s+u-u*d*a),f=a*u*s/(s+u-u*d*a),p=Xr(g),v=f*p/g,b=No({l:p,a:l*v,b:n*v}),x=Math.cbrt(1/Math.max(b.r,b.g,b.b,0)),m=Xr(r*g),c=f*m/g;return t.l=m*x,t.a=c*l*x,t.b=c*n*x,t}var gR={...E2,mode:"okhsv",channels:["h","s","v","alpha"],parse:["--okhsv"],serialize:"--okhsv",fromMode:{oklab:q2,rgb:e=>q2(nr(e))},toMode:{oklab:$2,rgb:e=>ir($2(e))}},Bh=gR;function hR(e,t){if(!t||t[0]!=="oklab")return;let o={mode:"oklab"},[,a,r,l,n]=t;if(!(a.type===A.Hue||r.type===A.Hue||l.type===A.Hue))return a.type!==A.None&&(o.l=Math.min(Math.max(0,a.type===A.Number?a.value:a.value/100),1)),r.type!==A.None&&(o.a=r.type===A.Number?r.value:r.value*.4/100),l.type!==A.None&&(o.b=l.type===A.Number?l.value:l.value*.4/100),n.type!==A.None&&(o.alpha=Math.min(1,Math.max(0,n.type===A.Number?n.value:n.value/100))),o}var Nh=hR;var CR={...vn,mode:"oklab",toMode:{lrgb:No,rgb:ir},fromMode:{lrgb:Z2,rgb:nr},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[Nh],serialize:e=>`oklab(${e.l!==void 0?e.l:"none"} ${e.a!==void 0?e.a:"none"} ${e.b!==void 0?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`},Ph=CR;function vR(e,t){if(!t||t[0]!=="oklch")return;let o={mode:"oklch"},[,a,r,l,n]=t;if(a.type!==A.None){if(a.type===A.Hue)return;o.l=Math.min(Math.max(0,a.type===A.Number?a.value:a.value/100),1)}if(r.type!==A.None&&(o.c=Math.max(0,r.type===A.Number?r.value:r.value*.4/100)),l.type!==A.None){if(l.type===A.Percentage)return;o.h=l.value}return n.type!==A.None&&(o.alpha=Math.min(1,Math.max(0,n.type===A.Number?n.value:n.value/100))),o}var Zh=vR;var xR={...xn,mode:"oklch",toMode:{oklab:e=>B1(e,"oklab"),rgb:e=>ir(B1(e,"oklab"))},fromMode:{rgb:e=>A1(nr(e),"oklch"),oklab:e=>A1(e,"oklch")},parse:[Zh],serialize:e=>`oklch(${e.l!==void 0?e.l:"none"} ${e.c!==void 0?e.c:"none"} ${e.h!==void 0?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,ranges:{l:[0,1],c:[0,.4],h:[0,360]}},zh=xR;var bR=e=>{let{r:t,g:o,b:a,alpha:r}=to(e),l={mode:"xyz65",x:.486570948648216*t+.265667693169093*o+.1982172852343625*a,y:.2289745640697487*t+.6917385218365062*o+.079286914093745*a,z:0*t+.0451133818589026*o+1.043944368900976*a};return r!==void 0&&(l.alpha=r),l},B5=bR;var LR=({x:e,y:t,z:o,alpha:a})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=oo({r:e*2.4934969119414263-t*.9313836179191242-.402710784450717*o,g:e*-.8294889695615749+t*1.7626640603183465+.0236246858419436*o,b:e*.0358458302437845-t*.0761723892680418+.9568845240076871*o},"p3");return a!==void 0&&(r.alpha=a),r},N5=LR;var wR={...eo,mode:"p3",parse:["display-p3"],serialize:"display-p3",fromMode:{rgb:e=>N5(C1(e)),xyz65:N5},toMode:{rgb:e=>v1(B5(e)),xyz65:B5}},Uh=wR;var P5=e=>{let t=Math.abs(e);return t>=.001953125?Math.sign(e)*Math.pow(t,.5555555555555556):16*e},yR=({x:e,y:t,z:o,alpha:a})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r={mode:"prophoto",r:P5(e*1.3457868816471585-t*.2555720873797946-.0511018649755453*o),g:P5(e*-.5446307051249019+t*1.5082477428451466+.0205274474364214*o),b:P5(e*0+t*0+1.2119675456389452*o)};return a!==void 0&&(r.alpha=a),r},Z5=yR;var z5=(e=0)=>{let t=Math.abs(e);return t>=.03125?Math.sign(e)*Math.pow(t,1.8):e/16},IR=e=>{let t=z5(e.r),o=z5(e.g),a=z5(e.b),r={mode:"xyz50",x:.7977666449006423*t+.1351812974005331*o+.0313477341283922*a,y:.2880748288194013*t+.7118352342418731*o+899369387256e-16*a,z:0*t+0*o+.8251046025104602*a};return e.alpha!==void 0&&(r.alpha=e.alpha),r},U5=IR;var SR={...eo,mode:"prophoto",parse:["prophoto-rgb"],serialize:"prophoto-rgb",fromMode:{xyz50:Z5,rgb:e=>Z5(Bo(e))},toMode:{xyz50:U5,rgb:e=>Ao(U5(e))}},Fh=SR;var qh=1.09929682680944,MR=.018053968510807,F5=e=>{let t=Math.abs(e);return t>MR?(Math.sign(e)||1)*(qh*Math.pow(t,.45)-(qh-1)):4.5*e},RR=({x:e,y:t,z:o,alpha:a})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r={mode:"rec2020",r:F5(e*1.7166511879712683-t*.3556707837763925-.2533662813736599*o),g:F5(e*-.6666843518324893+t*1.6164812366349395+.0157685458139111*o),b:F5(e*.0176398574453108-t*.0427706132578085+.9421031212354739*o)};return a!==void 0&&(r.alpha=a),r},q5=RR;var $h=1.09929682680944,HR=.018053968510807,$5=(e=0)=>{let t=Math.abs(e);return t<HR*4.5?e/4.5:(Math.sign(e)||1)*Math.pow((t+$h-1)/$h,1/.45)},kR=e=>{let t=$5(e.r),o=$5(e.g),a=$5(e.b),r={mode:"xyz65",x:.6369580483012911*t+.1446169035862083*o+.1688809751641721*a,y:.262700212011267*t+.6779980715188708*o+.059301716469862*a,z:0*t+.0280726930490874*o+1.0609850577107909*a};return e.alpha!==void 0&&(r.alpha=e.alpha),r},j5=kR;var TR={...eo,mode:"rec2020",fromMode:{xyz65:q5,rgb:e=>q5(C1(e))},toMode:{xyz65:j5,rgb:e=>v1(j5(e))},parse:["rec2020"],serialize:"rec2020"},jh=TR;var ca=.0037930732552754493,j2=Math.cbrt(ca);var G5=e=>Math.cbrt(e)-j2,ER=e=>{let{r:t,g:o,b:a,alpha:r}=to(e),l=G5(.3*t+.622*o+.078*a+ca),n=G5(.23*t+.692*o+.078*a+ca),i=G5(.2434226892454782*t+.2047674442449682*o+.5518098665095535*a+ca),u={mode:"xyb",x:(l-n)/2,y:(l+n)/2,b:i-(l+n)/2};return r!==void 0&&(u.alpha=r),u},Gh=ER;var K5=e=>Math.pow(e+j2,3),_R=({x:e,y:t,b:o,alpha:a})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=K5(e+t)-ca,l=K5(t-e)-ca,n=K5(o+t)-ca,i=oo({r:11.031566904639861*r-9.866943908131562*l-.16462299650829934*n,g:-3.2541473810744237*r+4.418770377582723*l-.16462299650829934*n,b:-3.6588512867136815*r+2.7129230459360922*l+1.9459282407775895*n});return a!==void 0&&(i.alpha=a),i},Kh=_R;var OR={mode:"xyb",channels:["x","y","b","alpha"],parse:["--xyb"],serialize:"--xyb",toMode:{rgb:Kh},fromMode:{rgb:Gh},ranges:{x:[-.0154,.0281],y:[0,.8453],b:[-.2778,.388]},interpolate:{x:N,y:N,b:N,alpha:{use:N,fixup:we}}},Xh=OR;var DR={mode:"xyz50",parse:["xyz-d50"],serialize:"xyz-d50",toMode:{rgb:Ao,lab:Cn},fromMode:{rgb:Bo,lab:hn},channels:["x","y","z","alpha"],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:N,y:N,z:N,alpha:{use:N,fixup:we}}},Qh=DR;var VR=e=>{let{x:t,y:o,z:a,alpha:r}=e;t===void 0&&(t=0),o===void 0&&(o=0),a===void 0&&(a=0);let l={mode:"xyz50",x:1.0479298208405488*t+.0229467933410191*o-.0501922295431356*a,y:.0296278156881593*t+.990434484573249*o-.0170738250293851*a,z:-.0092430581525912*t+.0150551448965779*o+.7518742899580008*a};return r!==void 0&&(l.alpha=r),l},Yh=VR;var AR=e=>{let{x:t,y:o,z:a,alpha:r}=e;t===void 0&&(t=0),o===void 0&&(o=0),a===void 0&&(a=0);let l={mode:"xyz65",x:.9554734527042182*t-.0230985368742614*o+.0632593086610217*a,y:-.0283697069632081*t+1.0099954580058226*o+.021041398966943*a,z:.0123140016883199*t-.0205076964334779*o+1.3303659366080753*a};return r!==void 0&&(l.alpha=r),l},Wh=AR;var BR={mode:"xyz65",toMode:{rgb:v1,xyz50:Yh},fromMode:{rgb:C1,xyz50:Wh},ranges:{x:[0,.95],y:[0,1],z:[0,1.088]},channels:["x","y","z","alpha"],parse:["xyz","xyz-d65"],serialize:"xyz-d65",interpolate:{x:N,y:N,z:N,alpha:{use:N,fixup:we}}},Jh=BR;var NR=({r:e,g:t,b:o,alpha:a})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r={mode:"yiq",y:.29889531*e+.58662247*t+.11448223*o,i:.59597799*e-.2741761*t-.32180189*o,q:.21147017*e-.52261711*t+.31114694*o};return a!==void 0&&(r.alpha=a),r},eC=NR;var PR=({y:e,i:t,q:o,alpha:a})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r={mode:"rgb",r:e+.95608445*t+.6208885*o,g:e-.27137664*t-.6486059*o,b:e-1.10561724*t+1.70250126*o};return a!==void 0&&(r.alpha=a),r},tC=PR;var ZR={mode:"yiq",toMode:{rgb:tC},fromMode:{rgb:eC},channels:["y","i","q","alpha"],parse:["--yiq"],serialize:"--yiq",ranges:{i:[-.595,.595],q:[-.522,.522]},interpolate:{y:N,i:N,q:N,alpha:{use:N,fixup:we}}},oC=ZR;var zR=(e,t)=>Math.round(e*(t=Math.pow(10,t)))/t,UR=(e=4)=>t=>typeof t=="number"?zR(t,e):t,eu=UR;var CZ=eu(2);var vZ=V1("rgb"),xZ=V1("hsl");var X5=e=>{let t=b2(e);if(!t)return;let o=L2(t.mode);if(!o.serialize||typeof o.serialize=="string"){let a=`color(${o.serialize||`--${t.mode}`} `;return o.channels.forEach((r,l)=>{r!=="alpha"&&(a+=(l?" ":"")+(t[r]!==void 0?t[r]:"none"))}),t.alpha!==void 0&&t.alpha<1&&(a+=` / ${t.alpha}`),a+")"}if(typeof o.serialize=="function")return o.serialize(t)};var nz=_e(oh),iz=_e(ch),uz=_e(mh),sz=_e(gh),dz=_e(hh),cz=_e(T2),fz=_e(E2),pz=_e(Lh),mz=_e(yh),gz=_e(Sh),hz=_e(Mh),Cz=_e(vn),vz=_e(Hh),xz=_e(xn),bz=_e(Th),Lz=_e(Oh),wz=_e(Dh),yz=_e(Vh),Iz=_e(Ah),Sz=_e(Bh),Mz=_e(Ph),Rz=_e(zh),Hz=_e(Uh),kz=_e(Fh),Tz=_e(jh),Ez=_e(eo),_z=_e(Xh),Oz=_e(Qh),Dz=_e(Jh),Vz=_e(oC);var Y5=V1("rgb"),FR=V1("hsl"),qR=V1("oklch"),$R=V1("oklab"),jR=V1("lch"),GR=V1("lab"),KR=eu(3),Q5=null;function XR(){return Q5??(Q5=document.createElement("canvas").getContext("2d")),Q5}function aC(e){try{let t=XR();if(!t)return null;t.fillStyle="#000000",t.fillStyle=e;let o=t.fillStyle;t.fillStyle="#ffffff",t.fillStyle=e;let a=t.fillStyle;return o===a?o:null}catch{return null}}function rC(e){if(!e||typeof e!="string")return!1;let t=e.trim();return Gr(t)!==void 0?!0:aC(t)!==null}function ur(e){let t={r:255,g:255,b:255,a:1};if(!e||typeof e!="string")return t;let o=e.trim(),a=Gr(o);if(a){let l=Y5(a);if(l&&"r"in l&&"g"in l&&"b"in l)return{r:Math.round(Math.min(255,Math.max(0,l.r*255))),g:Math.round(Math.min(255,Math.max(0,l.g*255))),b:Math.round(Math.min(255,Math.max(0,l.b*255))),a:l.alpha??1}}let r=aC(o);if(r){if(r.startsWith("#")){let n=r.slice(1);return{r:parseInt(n.slice(0,2),16),g:parseInt(n.slice(2,4),16),b:parseInt(n.slice(4,6),16),a:1}}let l=r.match(/rgba?\(\s*(\d+),\s*(\d+),\s*(\d+)(?:,\s*([\d.]+))?\)/);if(l&&l[1]!=null&&l[2]!=null&&l[3]!=null)return{r:+l[1],g:+l[2],b:+l[3],a:l[4]!=null?+l[4]:1}}return t}var QR=new Set(["initial","inherit","unset","revert","revert-layer"]);function G2(e){return QR.has((e??"").trim().toLowerCase())}function lC(e){let t=(e??"").trim();if(t===""||G2(t))return!1;let o=t.toLowerCase();return o!=="currentcolor"&&!o.includes("var(")}function bn(e){let t=Math.round(Math.min(255,Math.max(0,e.r))),o=Math.round(Math.min(255,Math.max(0,e.g))),a=Math.round(Math.min(255,Math.max(0,e.b))),r=Math.round(Math.min(1,Math.max(0,e.a))*100)/100;return r>=1?`rgb(${t}, ${o}, ${a})`:`rgba(${t}, ${o}, ${a}, ${r})`}function tu(e){let t=e.startsWith("#")?e.slice(1):e;return/^[0-9a-fA-F]+$/.test(t)&&[3,4,6,8].includes(t.length)}function ou(e){let t=Math.round(Math.min(255,Math.max(0,e.r))),o=Math.round(Math.min(255,Math.max(0,e.g))),a=Math.round(Math.min(255,Math.max(0,e.b))),r=Math.min(1,Math.max(0,e.a)),l=`#${[t,o,a].map(n=>n.toString(16).padStart(2,"0")).join("")}`;return r<1?l+Math.round(r*255).toString(16).padStart(2,"0"):l}function nC(e){return!e||typeof e!="string"?"rgb":Gr(e.trim())?.mode??"rgb"}function x1(e,t){let o={mode:"rgb",r:e.r/255,g:e.g/255,b:e.b/255,alpha:e.a};switch(t){case"oklch":return qR(o);case"oklab":return $R(o);case"lch":return jR(o);case"lab":return GR(o);default:return o}}function W5(e){let t=e?Y5(e):null;return!t||!("r"in t)||!("g"in t)||!("b"in t)?{r:255,g:255,b:255,a:1}:{r:Math.round(Math.min(255,Math.max(0,t.r*255))),g:Math.round(Math.min(255,Math.max(0,t.g*255))),b:Math.round(Math.min(255,Math.max(0,t.b*255))),a:t.alpha??1}}function J5(e){if(!e)return"";let t={...e},o=t;for(let a of Object.keys(o)){let r=o[a];typeof r=="number"&&(o[a]=KR(r))}return X5(t)}function au(e){let t={mode:"rgb",r:e.r/255,g:e.g/255,b:e.b/255},o=FR(t);return o?{h:o.h??0,s:o.s*100,l:o.l*100}:{h:0,s:0,l:0}}function e3(e){let t={mode:"hsl",h:e.h,s:e.s/100,l:e.l/100},o=Y5(t);return!o||!("r"in o)||!("g"in o)||!("b"in o)?{r:0,g:0,b:0}:{r:Math.round(o.r*255),g:Math.round(o.g*255),b:Math.round(o.b*255)}}function t3(e){let t=(e??"").trim();return t===""||t.toLowerCase()==="none"||G2(t)?"":t}function sr(e){return t3(e)!==""}function K2(e){return(e??"").trim().toLowerCase()==="text"}function Co(e){let t=[],o=0,a="";for(let r of e)r==="("?o++:r===")"&&o--,r===","&&o===0?(t.push(a.trim()),a=""):a+=r;return a.trim()!==""&&t.push(a.trim()),t}function o3(e,t,o){let a=Co(e),r=Co(t.toLowerCase());if(a.length===0||r.length===0)return"";let l=o.toLowerCase();return a.filter((n,i)=>r[i%r.length]===l&&sr(n)).join(", ")}function iC(e,t){let o=Co(e);if(o.length===0)return"";let a=Co(t.toLowerCase());return o.filter((r,l)=>(a.length===0||!K2(a[l%a.length]))&&sr(r)).join(", ")}function a3(e,t){let o=Co(t.toLowerCase());if(o.length===0)return!1;let a=Co(e).length||1;return K2(o[(a-1)%o.length])}function uC(e,t,o,a){let r=Co(e);if(r.length===0)return"";let l=Co(t.toLowerCase());return l.length===0?a==="unchanged"?e:r.map(()=>"none").join(", "):r.map((n,i)=>o(l[i%l.length])?"none":n).join(", ")}function sC(e,t){return uC(e,t,K2,"unchanged")}function dC(e,t){return uC(e,t,o=>!K2(o),"clearAll")}function cC(e,t){let o=Co(t.toLowerCase());if(o.length===0)return t;let r=((Co(e).length||1)-1)%o.length;return o.map((l,n)=>n===r?"border-box":l).join(", ")}function r3(e,t,o=!1){let a=(e??"").trim();return a===""||G2(a)||a.toLowerCase()==="currentcolor"?!1:o||t==null?!0:a.toLowerCase()!==t.trim().toLowerCase()}function fC(e){let t=Co((e??"").toLowerCase());return t.length>1&&t.some(o=>o!=="border-box")}function pC(e,t,o,a,r=sr,l="none"){if(e.trim()==="")return[];let n=(a??"").trim();if(n.toLowerCase()===l.toLowerCase())return[];let i=n||(o??"");return r(i)?[{property:t,oldValue:i,newValue:l}]:[]}var De=V(ue(),1),l3=16,Ln=4,YR=245,mC=260,WR=200,JR="linear-gradient(45deg, #e0e0e0 25%, transparent 25%), linear-gradient(-45deg, #e0e0e0 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #e0e0e0 75%), linear-gradient(-45deg, transparent 75%, #e0e0e0 75%)",eH=["oklch","oklab","lch","lab","hsl"],gC=["oklch","oklab","lch","lab"],n3=["rgb","hsl","oklch","oklab","lch","lab"];function i3(e){let t=nC(e);return eH.includes(t)?t:"rgb"}function ru(e,t){let o=au({r:e.r,g:e.g,b:e.b}),a=x1(e,"oklch"),r=x1(e,"oklab"),l=x1(e,"lch"),n=x1(e,"lab");return{hex:rH(t,e),r:e.r,g:e.g,b:e.b,h:Math.round(o.h),s:Math.round(o.s),l:Math.round(o.l),a:Math.round(e.a*100),oklch_l:Math.round(a.l*100),oklch_c:Math.round(a.c*1e3)/10,oklch_h:Math.round(a.h||0),oklab_l:Math.round(r.l*100),oklab_a:Math.round(r.a*1e3)/10,oklab_b:Math.round(r.b*1e3)/10,lch_l:Math.round(l.l),lch_c:Math.round(l.c),lch_h:Math.round(l.h||0),lab_l:Math.round(n.l),lab_a:Math.round(n.a),lab_b:Math.round(n.b)}}function s3(e,t){let o=t.a/100;switch(e){case"oklch":return{mode:"oklch",l:t.oklch_l/100,c:t.oklch_c/100,h:t.oklch_h,alpha:o};case"oklab":return{mode:"oklab",l:t.oklab_l/100,a:t.oklab_a/100,b:t.oklab_b/100,alpha:o};case"lch":return{mode:"lch",l:t.lch_l,c:t.lch_c,h:t.lch_h,alpha:o};case"lab":return{mode:"lab",l:t.lab_l,a:t.lab_a,b:t.lab_b,alpha:o};case"hsl":return{mode:"hsl",h:t.h,s:t.s,l:t.l};default:return{mode:"rgb",r:t.r/255,g:t.g/255,b:t.b/255,alpha:o}}}function tH(e){let t=$r(e);return t?t.getBoundingClientRect():{top:0,bottom:window.innerHeight,left:0,right:window.innerWidth}}function oH(e,t=YR){let o=e.getBoundingClientRect(),a=tH(e),r=a.bottom-o.bottom-Ln,l=o.top-a.top-Ln,i=r<t&&l>=t?o.top-t-Ln:o.bottom+Ln;i=Math.max(a.top+Ln,Math.min(i,a.bottom-t-Ln));let u=o.left;return u+mC>a.right&&(u=a.right-mC-l3),u<a.left+l3&&(u=a.left+l3),{top:i,left:u}}function d3(e){return e!=null&&typeof e=="string"?e:"#ffffff"}function u3(e){let{r:t,g:o,b:a,a:r}=ur(d3(e));return{type:"rgba",r:t,g:o,b:a,a:r}}function aH(e,t){let o=e||bn(t);return t.a>=1?{backgroundColor:o}:{backgroundColor:o,backgroundImage:`linear-gradient(0deg, ${o}, ${o}), ${JR}`,backgroundSize:"100% 100%, 8px 8px, 8px 8px, 8px 8px, 8px 8px",backgroundPosition:"0 0, 0 0, 0 4px, 4px -4px, -4px 0"}}function rH(e,t){let o=typeof e=="string"?e.trim():"";return tu(o)?o:ou(t)}var lH=e=>e.preventDefault(),nH=e=>{e.key==="Enter"&&e.currentTarget.blur()};function iH(e,t){switch(t.type){case"SET_ALL":return{format:e.format,hex:t.hex,r:t.r,g:t.g,b:t.b,h:t.h,s:t.s,l:t.l,a:t.a,oklch_l:t.oklch_l,oklch_c:t.oklch_c,oklch_h:t.oklch_h,oklab_l:t.oklab_l,oklab_a:t.oklab_a,oklab_b:t.oklab_b,lch_l:t.lch_l,lch_c:t.lch_c,lch_h:t.lch_h,lab_l:t.lab_l,lab_a:t.lab_a,lab_b:t.lab_b};case"SET_RGBA":{let{r:o,g:a,b:r,a:l}=t,n=au({r:o,g:a,b:r}),i={r:o,g:a,b:r,a:l/100},u=x1(i,"oklch"),s=x1(i,"oklab"),d=x1(i,"lch"),g=x1(i,"lab");return{...e,hex:ou(i),r:o,g:a,b:r,h:Math.round(n.h),s:Math.round(n.s),l:Math.round(n.l),a:l,oklch_l:Math.round(u.l*100),oklch_c:Math.round(u.c*1e3)/10,oklch_h:Math.round(u.h||0),oklab_l:Math.round(s.l*100),oklab_a:Math.round(s.a*1e3)/10,oklab_b:Math.round(s.b*1e3)/10,lch_l:Math.round(d.l),lch_c:Math.round(d.c),lch_h:Math.round(d.h||0),lab_l:Math.round(g.l),lab_a:Math.round(g.a),lab_b:Math.round(g.b)}}case"SET_HEX":return{...e,hex:t.hex};case"SET_CHANNEL":{let o={...e,[t.channel]:t.value},a;if(e.format==="rgb")a={r:o.r,g:o.g,b:o.b,a:o.a/100};else if(e.format==="hsl"){let s=e3({h:o.h,s:o.s,l:o.l});o.r=Math.round(s.r),o.g=Math.round(s.g),o.b=Math.round(s.b),a={r:o.r,g:o.g,b:o.b,a:o.a/100}}else{let s=s3(e.format,o);a=W5(s),o.r=a.r,o.g=a.g,o.b=a.b}let r=au({r:o.r,g:o.g,b:o.b}),l=x1(a,"oklch"),n=x1(a,"oklab"),i=x1(a,"lch"),u=x1(a,"lab");return{...o,hex:ou(a),h:Math.round(r.h),s:Math.round(r.s),l:Math.round(r.l),oklch_l:Math.round(l.l*100),oklch_c:Math.round(l.c*1e3)/10,oklch_h:Math.round(l.h||0),oklab_l:Math.round(n.l*100),oklab_a:Math.round(n.a*1e3)/10,oklab_b:Math.round(n.b*1e3)/10,lch_l:Math.round(i.l),lch_c:Math.round(i.c),lch_h:Math.round(i.h||0),lab_l:Math.round(u.l),lab_a:Math.round(u.a),lab_b:Math.round(u.b)}}case"SET_FORMAT":return{...e,format:t.format};default:return e}}var uH={placeholder:"Enter color value",ariaValue:"{0} color value",ariaOpenPicker:"{0}, open color picker. Current color: {1}",ariaPicker:"{0} picker",ariaSaturation:"Saturation {0}%, brightness {1}%",ariaEyedropper:"Pick color from screen",ariaHue:"Hue, 0 to 360 degrees",ariaAlphaSlider:"Alpha transparency, 0 to 100 percent",ariaHex:"Hexadecimal color value",ariaChannel:"{0} ({1}), {2} to {3}",ariaAlphaInput:"Alpha, 0 to 100 percent",ariaFormatCycle:"Color format: {0}. Click to change format.",titleFormatCycle:"Click to cycle format: RGB, HSL, OKLCH, OKLAB, LCH, LAB",gradientValue:"Gradient",imageValue:"Image"};function X2({label:e,value:t,onChange:o,id:a="color",aria:r,backgroundImage:l}){let n=D1(uH,r),i=`${a}-trigger`,u=`${a}-popover`,s=d3(t),[{colorInput:d,colorState:g},f]=zg(()=>u3(s)),[p,v]=tt.default.useReducer(iH,s,_=>{let P=ur(_),oe=ru(P,_);return{format:i3(_),...oe}}),b=tt.default.useRef(p);b.current=p;let x=tt.default.useRef(null),m=tt.default.useRef(t),c=tt.default.useRef(o);c.current=o;let h=tt.default.useCallback(_=>{let P=b.current.format,oe;if(gC.includes(P)){let me=x1(_,P);oe=J5(me)}else if(P==="hsl"){let me=au({r:_.r,g:_.g,b:_.b}),lt=Math.round(_.a*100)/100;oe=lt>=1?`hsl(${Math.round(me.h)}, ${Math.round(me.s)}%, ${Math.round(me.l)}%)`:`hsla(${Math.round(me.h)}, ${Math.round(me.s)}%, ${Math.round(me.l)}%, ${lt})`}else oe=bn(_);oe!==x.current&&(x.current=oe,m.current=oe,typeof c.current=="function"&&c.current(oe))},[]),C=Ug(h,WR),w=qg({computePosition:oH,onClose:C.flush,trapFocus:!0});tt.default.useEffect(()=>{let _=d3(t);if(_===m.current)return;m.current=_;let P=ur(_);f(u3(t));let oe=ru(P,_),me=i3(_);v({type:"SET_ALL",...oe}),me!==b.current.format&&v({type:"SET_FORMAT",format:me})},[t,f]);let S=tt.default.useCallback(_=>{C.cancel();let P=_.target.value;if((!P||!P.startsWith("#"))&&(P="#"+P.replace(/^#+/,"")),tu(P)){f({type:"hex",value:P});let oe=ur(P),me=ru(oe,P);v({type:"SET_ALL",...me})}else v({type:"SET_HEX",hex:P})},[C,f]),H=tt.default.useCallback(()=>{C.cancel();let _=b.current.hex.trim();if(tu(_)){let P=ur(_),oe=ru(P,_);v({type:"SET_ALL",...oe}),h(P)}else{let P=b.current;v({type:"SET_HEX",hex:ou({r:P.r,g:P.g,b:P.b,a:P.a/100})})}},[C,h]),y=tt.default.useMemo(()=>{switch(p.format){case"hsl":return[{key:"h",label:"H",min:0,max:360},{key:"s",label:"S",min:0,max:100},{key:"l",label:"L",min:0,max:100}];case"oklch":return[{key:"oklch_l",label:"L",min:0,max:100,step:1},{key:"oklch_c",label:"C",min:0,max:40,step:.1},{key:"oklch_h",label:"H",min:0,max:360,step:1}];case"oklab":return[{key:"oklab_l",label:"L",min:0,max:100,step:1},{key:"oklab_a",label:"A",min:-40,max:40,step:.1},{key:"oklab_b",label:"B",min:-40,max:40,step:.1}];case"lch":return[{key:"lch_l",label:"L",min:0,max:100,step:1},{key:"lch_c",label:"C",min:0,max:150,step:1},{key:"lch_h",label:"H",min:0,max:360,step:1}];case"lab":return[{key:"lab_l",label:"L",min:0,max:100,step:1},{key:"lab_a",label:"A",min:-128,max:127,step:1},{key:"lab_b",label:"B",min:-128,max:127,step:1}];default:return[{key:"r",label:"R",min:0,max:255},{key:"g",label:"G",min:0,max:255},{key:"b",label:"B",min:0,max:255}]}},[p.format]),k=tt.default.useCallback((_,P)=>{C.cancel();let oe=String(P).trim(),me=["oklch_c","oklab_a","oklab_b"].includes(_),lt=oe===""?0:me?parseFloat(oe):parseInt(oe,10);if(Number.isNaN(lt))return;let Ue=b.current,u1=y.find(ye=>ye.key===_),te=0,ie=100;u1?(te=u1.min,ie=u1.max):_==="a"?(te=0,ie=100):_==="h"?(te=0,ie=360):Ue.format==="rgb"&&(te=0,ie=255);let le=Math.min(ie,Math.max(te,lt));v({type:"SET_CHANNEL",channel:_,value:le});let Re={...Ue,[_]:le},ut;if(Ue.format==="rgb")ut={r:Re.r,g:Re.g,b:Re.b,a:Re.a/100};else if(Ue.format==="hsl"){let ye=e3({h:Re.h,s:Re.s,l:Re.l});ut={r:ye.r,g:ye.g,b:ye.b,a:Re.a/100}}else{let ye=s3(Ue.format,Re);ut=W5(ye)}f({type:"rgba",...ut}),h(ut)},[C,f,h,y]),O=tt.default.useCallback(_=>{f(_);let P=_.getRgba();v({type:"SET_RGBA",r:Math.round(P.r),g:Math.round(P.g),b:Math.round(P.b),a:Math.round(P.a*100)}),C({r:P.r,g:P.g,b:P.b,a:P.a})},[f,C]),F=tt.default.useCallback(_=>{let P=_.target.closest('[role="slider"]');P instanceof HTMLElement&&P.focus()},[]);tt.default.useLayoutEffect(()=>{if(!w.isOpen||!w.popoverRef.current)return;let _=w.popoverRef.current.offsetHeight;_<=0||w.reposition(_)},[w.isOpen,w.reposition]);let ae=g?.rgba??{r:255,g:255,b:255,a:1},K=g?.hsva??{h:0,s:0,v:100,a:1},B=Math.round(K.s),Q=Math.round(K.v);tt.default.useEffect(()=>{let _=w.popoverRef.current;if(!w.isOpen||!_)return;let P=me=>_.querySelector(`.${me} [role="slider"]`)??null,oe=P("colorEditor-picker-saturation");oe&&(oe.setAttribute("aria-label",e),oe.setAttribute("aria-valuetext",vt(n.ariaSaturation,[B,Q])),oe.setAttribute("aria-valuenow",String(B)),oe.setAttribute("aria-valuemin","0"),oe.setAttribute("aria-valuemax","100")),P("colorEditor-picker-hue")?.setAttribute("aria-label",n.ariaHue),P("colorEditor-picker-alpha")?.setAttribute("aria-label",n.ariaAlphaSlider)});let I=tt.default.useCallback(()=>{let _=p.format,P=p.a/100;if(gC.includes(_)){let oe=s3(_,p);return J5(oe)}else return _==="hsl"?P>=1?`hsl(${p.h}, ${p.s}%, ${p.l}%)`:`hsla(${p.h}, ${p.s}%, ${p.l}%, ${P})`:bn({r:p.r,g:p.g,b:p.b,a:P})},[p])(),R=t3(l),L=R!==""&&ae.a===0,T=/url\(/i.test(R)?n.imageValue:n.gradientValue,Z=L?T:I,z=L?{backgroundImage:R,backgroundSize:"cover",backgroundPosition:"center"}:aH(I,ae),[W,U]=tt.default.useState(I),j=tt.default.useRef(W);j.current=W,tt.default.useEffect(()=>{U(I)},[I]);let q=tt.default.useCallback(_=>{let P=_.target.value;U(P)},[]),D=tt.default.useCallback(()=>{C.cancel();let _=j.current.trim();if(_&&!_.startsWith("#")&&tu(_)&&(_="#"+_),!_||!rC(_)){U(I);return}let P=ur(_),oe=bn(P),me=bn(ur(I));if(oe!==me){f(u3(_));let lt=ru(P,_),Ue=i3(_);v({type:"SET_ALL",...lt}),Ue!==b.current.format&&v({type:"SET_FORMAT",format:Ue}),_!==x.current&&(x.current=_,m.current=_,typeof c.current=="function"&&c.current(_))}else U(I)},[C,I,f]),ne=tt.default.useCallback(_=>{_.key==="Enter"&&_.currentTarget.blur()},[]),ce=tt.default.useCallback(()=>{let _=n3.indexOf(p.format),P=n3[(_+1)%n3.length]??p.format;v({type:"SET_FORMAT",format:P})},[p.format]),ve=tt.default.useMemo(()=>{let _=w.triggerRef.current;if(!_)return document.body;let P=_.getRootNode();return P instanceof ShadowRoot?P:document.body},[w.isOpen,w.triggerRef]);return(0,De.jsx)(W1,{label:e,id:a,className:"colorEditor-fieldset",children:(0,De.jsxs)("div",{className:"colorEditor-wrapper",children:[(0,De.jsx)("button",{ref:w.triggerRef,id:i,type:"button",className:"colorEditor-swatch-only",onClick:w.toggle,"aria-expanded":w.isOpen,"aria-haspopup":"dialog","aria-controls":u,"aria-label":vt(n.ariaOpenPicker,[e,Z]),children:(0,De.jsx)("span",{style:z,"aria-hidden":"true",className:"colorEditor-swatch"})}),(0,De.jsx)("input",{type:"text",className:"colorEditor-value-input",value:L?Z:W,readOnly:L,onChange:q,onBlur:D,onKeyDown:ne,"aria-label":vt(n.ariaValue,[e]),placeholder:n.placeholder,spellCheck:"false",autoComplete:"off"}),w.isOpen&&(0,hC.createPortal)((0,De.jsxs)("div",{ref:w.popoverRef,id:u,role:"dialog","aria-modal":"true","aria-label":vt(n.ariaPicker,[e]),style:{top:w.position.top,left:w.position.left},onDragStart:lH,onMouseUp:F,className:"colorEditor-popover",children:[(0,De.jsxs)(un,{color:d,onChange:O,className:"colorEditor-picker",children:[(0,De.jsx)(un.Saturation,{className:"colorEditor-picker-saturation"}),(0,De.jsxs)("div",{className:"colorEditor-picker-toolbar",children:[(0,De.jsx)(un.EyeDropper,{title:n.ariaEyedropper,children:(0,De.jsx)(Pi,{size:18,"aria-hidden":"true"})}),(0,De.jsxs)("div",{className:"colorEditor-picker-sliders",children:[(0,De.jsx)(un.Hue,{className:"h-4 colorEditor-picker-hue"}),(0,De.jsx)(un.Alpha,{className:"h-4 colorEditor-picker-alpha"})]})]})]}),(0,De.jsxs)("div",{className:"colorEditor-input-wrapper",children:[(0,De.jsxs)("div",{className:"colorEditor-input-group",children:[(0,De.jsx)("input",{type:"text",value:p.hex,onChange:S,onBlur:H,onKeyDown:nH,"aria-label":n.ariaHex,className:"colorEditor-input-hex",spellCheck:"false",autoComplete:"off"}),(0,De.jsx)("label",{className:"colorEditor-input-label","aria-hidden":"true",children:"HEX"})]}),(0,De.jsxs)("div",{className:"colorEditor-channels-wrapper",children:[(0,De.jsxs)("div",{className:"colorEditor-input-container",children:[y.map(_=>(0,De.jsx)("div",{className:"colorEditor-input-group-no-label",children:(0,De.jsx)("input",{type:"number",min:_.min,max:_.max,step:_.step||1,value:p[_.key],onChange:P=>k(_.key,P.target.value),onBlur:P=>k(_.key,P.target.value),"aria-label":vt(n.ariaChannel,[_.label,p.format.toUpperCase(),_.min,_.max]),"aria-valuemin":_.min,"aria-valuemax":_.max,"aria-valuenow":p[_.key],className:"colorEditor-input-rgba"})},_.key)),(0,De.jsx)("div",{className:"colorEditor-input-group-no-label",children:(0,De.jsx)("input",{type:"number",min:0,max:100,value:p.a,onChange:_=>k("a",_.target.value),onBlur:_=>k("a",_.target.value),"aria-label":n.ariaAlphaInput,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":p.a,className:"colorEditor-input-rgba"})})]}),(0,De.jsx)("div",{className:"colorEditor-format-selector",children:(0,De.jsxs)("button",{type:"button",className:"colorEditor-format-picker",onClick:ce,"aria-label":vt(n.ariaFormatCycle,[p.format.toUpperCase()]),"aria-live":"polite",title:n.titleFormatCycle,children:[y.map(_=>(0,De.jsx)("span",{className:"colorEditor-format-letter","aria-hidden":"true",children:_.label},_.key)),(0,De.jsx)("span",{className:"colorEditor-format-letter","aria-hidden":"true",children:"A"})]})})]})]})]}),ve)]})})}var Yt=V(he(),1);var fa=V(ue(),1),sH={ariaValue:"{0} value",ariaUnit:"{0} unit"};function CC(e,t,o,a,r){let l=h1(e,o,a);if(l.numericValue!=="")return l.unit;if(t!=null&&t!==""){let n=h1(t,o,a);if(n.numericValue!==""&&r.has(n.unit))return n.unit}return o}function Po({label:e,value:t,onChange:o,units:a=s2,constraints:r=po,defaultUnit:l="px",placeholder:n=0,id:i="dimension",icon:u,aria:s}){let d=D1(sH,s),g=Yt.default.useMemo(()=>new Set(a.map(B=>B.value)),[a]),f=Yt.default.useMemo(()=>Di(a),[a]),p=Yt.default.useMemo(()=>{if(n==null||n==="")return"";if(typeof n=="number")return String(n);let B=h1(String(n),l,f);return B.numericValue!==""?String(B.numericValue):String(n)},[n,l,f]),[v,b]=Yt.default.useState(()=>{let B=h1(t,l,f);return B.numericValue!==""?String(B.numericValue):""}),[x,m]=Yt.default.useState(()=>CC(t,n,l,f,g)),c=Yt.default.useRef(o);c.current=o;let h=Yt.default.useRef(t),C=Yt.default.useRef(n);Yt.default.useEffect(()=>{if(t===h.current&&n===C.current)return;h.current=t,C.current=n;let B=h1(t,l,f);b(B.numericValue!==""?String(B.numericValue):""),m(CC(t,n,l,f,g))},[t,n,l,f,g]);let w=Yt.default.useCallback((B,Q)=>{let M=parseFloat(B);if(B===""||isNaN(M)){if(h.current==="")return;h.current="",typeof c.current=="function"&&c.current("");return}let I=mo(M,Q,r),R=go(I,Q,r),L=d2(R,Q);L!==h.current&&(h.current=L,typeof c.current=="function"&&c.current(L))},[r]),S=Yt.default.useCallback(B=>{let Q=B.target.value;b(Q);let I=Q.trim().match(f)?.[2];I&&g.has(I)&&I!==x&&m(I)},[f,x,g]),H=Yt.default.useCallback(B=>{let Q=B.clipboardData.getData("text"),M=h1(Q,l,f);if(M.numericValue!==""&&M.unit&&g.has(M.unit)){B.preventDefault(),b(String(M.numericValue)),m(M.unit);let I=mo(M.numericValue,M.unit,r),R=go(I,M.unit,r),L=d2(R,M.unit);h.current=L,typeof c.current=="function"&&c.current(L)}},[l,f,g,r]),y=Yt.default.useCallback(()=>{if(v===""){w("",x);return}let B=parseFloat(v);if(isNaN(B)){let I=h1(t,l,f);b(I.numericValue!==""?String(I.numericValue):"");return}let Q=mo(B,x,r),M=go(Q,x,r);b(String(M)),w(String(M),x)},[v,x,t,l,f,r,w]),k=Yt.default.useCallback(B=>{if(B.key==="Enter"){B.currentTarget.blur();return}if(B.key==="ArrowUp"||B.key==="ArrowDown"){B.preventDefault();let Q=c2(v,B.key,B.shiftKey,x,r);if(Q===null)return;b(Q),w(Q,x)}},[v,x,r,w]),O=Yt.default.useCallback(B=>{let Q=B.target.value;if(!g.has(Q))return;if(m(Q),v===""){w("",Q);return}let M=parseFloat(v);if(isNaN(M))return;let I=mo(M,Q,r),R=go(I,Q,r);b(String(R));let L=d2(R,Q);h.current=L,typeof c.current=="function"&&c.current(L)},[v,g,r,w]),F=`${i}-input`,ae=`${i}-unit`,K=a.some(B=>B.value!=="");return(0,fa.jsx)(W1,{label:e,id:i,className:"dimensionEditor-fieldset",children:(0,fa.jsxs)("div",{className:"dimensionEditor-row",children:[u&&(0,fa.jsx)("span",{className:"dimensionEditor-icon","aria-hidden":"true",children:(0,fa.jsx)(u,{size:14,width:14,height:14})}),(0,fa.jsx)("input",{id:F,type:"text",className:u?"dimensionEditor-input dimensionEditor-input--with-icon":"dimensionEditor-input",value:v,placeholder:p,onChange:S,onPaste:H,onBlur:y,onKeyDown:k,"aria-label":vt(d.ariaValue,[e]),autoComplete:"off",spellCheck:"false"}),K&&(0,fa.jsx)("select",{id:ae,className:"dimensionEditor-unit",value:x,onChange:O,"aria-label":vt(d.ariaUnit,[e]),children:a.map(B=>(0,fa.jsx)("option",{value:B.value,children:B.label},B.value||"__unitless__"))})]})})}function b1(e,t){if(e==null)return{};var o={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;o[a]=e[a]}return o}function fe(){return fe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var a in o)({}).hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},fe.apply(null,arguments)}var re=V(SC(),1),He=V(he(),1),X=V(he(),1),gH=V(kC(),1);var TC=e=>typeof e=="object"&&e!=null&&e.nodeType===1,EC=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",n9=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){let o=getComputedStyle(e,null);return EC(o.overflowY,t)||EC(o.overflowX,t)||(a=>{let r=(l=>{if(!l.ownerDocument||!l.ownerDocument.defaultView)return null;try{return l.ownerDocument.defaultView.frameElement}catch{return null}})(a);return!!r&&(r.clientHeight<a.scrollHeight||r.clientWidth<a.scrollWidth)})(e)}return!1},i9=(e,t,o,a,r,l,n,i)=>l<e&&n>t||l>e&&n<t?0:l<=e&&i<=o||n>=t&&i>=o?l-e-a:n>t&&i<o||l<e&&i>o?n-t+r:0,mH=e=>{let t=e.parentElement;return t??(e.getRootNode().host||null)},_C=(e,t)=>{var o,a,r,l;if(typeof document>"u")return[];let{scrollMode:n,block:i,inline:u,boundary:s,skipOverflowHiddenElements:d}=t,g=typeof s=="function"?s:M=>M!==s;if(!TC(e))throw new TypeError("Invalid target");let f=document.scrollingElement||document.documentElement,p=[],v=e;for(;TC(v)&&g(v);){if(v=mH(v),v===f){p.push(v);break}v!=null&&v===document.body&&n9(v)&&!n9(document.documentElement)||v!=null&&n9(v,d)&&p.push(v)}let b=(a=(o=window.visualViewport)==null?void 0:o.width)!=null?a:innerWidth,x=(l=(r=window.visualViewport)==null?void 0:r.height)!=null?l:innerHeight,{scrollX:m,scrollY:c}=window,{height:h,width:C,top:w,right:S,bottom:H,left:y}=e.getBoundingClientRect(),{top:k,right:O,bottom:F,left:ae}=(M=>{let I=window.getComputedStyle(M);return{top:parseFloat(I.scrollMarginTop)||0,right:parseFloat(I.scrollMarginRight)||0,bottom:parseFloat(I.scrollMarginBottom)||0,left:parseFloat(I.scrollMarginLeft)||0}})(e),K=i==="start"||i==="nearest"?w-k:i==="end"?H+F:w+h/2-k+F,B=u==="center"?y+C/2-ae+O:u==="end"?S+O:y-ae,Q=[];for(let M=0;M<p.length;M++){let I=p[M],{height:R,width:L,top:T,right:Z,bottom:z,left:W}=I.getBoundingClientRect();if(n==="if-needed"&&w>=0&&y>=0&&H<=x&&S<=b&&(I===f&&!n9(I)||w>=T&&H<=z&&y>=W&&S<=Z))return Q;let U=getComputedStyle(I),j=parseInt(U.borderLeftWidth,10),q=parseInt(U.borderTopWidth,10),D=parseInt(U.borderRightWidth,10),ne=parseInt(U.borderBottomWidth,10),ce=0,ve=0,_="offsetWidth"in I?I.offsetWidth-I.clientWidth-j-D:0,P="offsetHeight"in I?I.offsetHeight-I.clientHeight-q-ne:0,oe="offsetWidth"in I?I.offsetWidth===0?0:L/I.offsetWidth:0,me="offsetHeight"in I?I.offsetHeight===0?0:R/I.offsetHeight:0;if(f===I)ce=i==="start"?K:i==="end"?K-x:i==="nearest"?i9(c,c+x,x,q,ne,c+K,c+K+h,h):K-x/2,ve=u==="start"?B:u==="center"?B-b/2:u==="end"?B-b:i9(m,m+b,b,j,D,m+B,m+B+C,C),ce=Math.max(0,ce+c),ve=Math.max(0,ve+m);else{ce=i==="start"?K-T-q:i==="end"?K-z+ne+P:i==="nearest"?i9(T,z,R,q,ne+P,K,K+h,h):K-(T+R/2)+P/2,ve=u==="start"?B-W-j:u==="center"?B-(W+L/2)+_/2:u==="end"?B-Z+D+_:i9(W,Z,L,j,D+_,B,B+C,C);let{scrollLeft:lt,scrollTop:Ue}=I;ce=me===0?0:Math.max(0,Math.min(Ue+ce/me,I.scrollHeight-R/me+P)),ve=oe===0?0:Math.max(0,Math.min(lt+ve/oe,I.scrollWidth-L/oe+_)),K+=Ue-ce,B+=lt-ve}Q.push({el:I,top:ce,left:ve})}return Q};var hH=0;function PC(){return String(hH++)}function iu(e){var t=He.useRef(e);return t.current=e,t}function CH(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return function(a){t.forEach(function(r){typeof r=="function"?r(a):r&&(r.current=a)})}}function p3(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return function(a){for(var r=arguments.length,l=new Array(r>1?r-1:0),n=1;n<r;n++)l[n-1]=arguments[n];return t.some(function(i){return i&&i.apply(void 0,[a].concat(l)),a.preventDownshiftDefault||a.hasOwnProperty("nativeEvent")&&a.nativeEvent.preventDownshiftDefault})}}function ZC(e,t){var o;function a(){o&&clearTimeout(o)}function r(){for(var l=arguments.length,n=new Array(l),i=0;i<l;i++)n[i]=arguments[i];a(),o=setTimeout(function(){o=null,e.apply(void 0,n)},t)}return r.cancel=a,r}var vH=ZC(function(e){zC(e).textContent=""},500);function zC(e){var t=e.getElementById("a11y-status-message");return t||(t=e.createElement("div"),t.setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}function xH(e,t){if(!(!e||!t)){var o=zC(t);o.textContent=e,vH(t)}}function bH(e){var t=e?.getElementById("a11y-status-message");t&&t.remove()}function uu(){}var g3=uu;function s9(e,t){if(!t)return e;var o=Object.keys(e);return o.reduce(function(a,r){return t[r]!==void 0&&(a[r]=t[r]),a},fe({},e))}function LH(e,t){if(e){var o=_C(e,{boundary:t,block:"nearest",scrollMode:"if-needed"});o.forEach(function(a){var r=a.el,l=a.top,n=a.left;r.scrollTop=l,r.scrollLeft=n})}}function OC(e,t,o){var a=e===t||t instanceof o.Node&&e.contains&&e.contains(t);return a}function wH(e,t){var o;function a(){o&&clearTimeout(o)}function r(){for(var l=arguments.length,n=new Array(l),i=0;i<l;i++)n[i]=arguments[i];a(),o=setTimeout(function(){o=null,e.apply(void 0,n)},t)}return r.cancel=a,r}function mt(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return function(a){for(var r=arguments.length,l=new Array(r>1?r-1:0),n=1;n<r;n++)l[n-1]=arguments[n];return t.some(function(i){return i&&i.apply(void 0,[a].concat(l)),a.preventDownshiftDefault||a.hasOwnProperty("nativeEvent")&&a.nativeEvent.preventDownshiftDefault})}}function pa(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return function(a){t.forEach(function(r){typeof r=="function"?r(a):r&&(r.current=a)})}}function yH(e,t){return e[t]!==void 0}function d9(e){var t=e.key,o=e.keyCode;return o>=37&&o<=40&&t.indexOf("Arrow")!==0?"Arrow"+t:t}function dr(e,t,o,a,r){r===void 0&&(r=!1);var l=o.length;if(l===0)return-1;var n=l-1;(typeof e!="number"||e<0||e>n)&&(e=t>0?-1:n+1);var i=e+t;i<0?i=r?n:0:i>n&&(i=r?0:n);var u=wn(i,t<0,o,a,r);return u===-1?e>=l?-1:e:u}function wn(e,t,o,a,r){r===void 0&&(r=!1);var l=o.length;if(t){for(var n=e;n>=0;n--)if(!a(o[n],n))return n}else for(var i=e;i<l;i++)if(!a(o[i],i))return i;return r?wn(t?l-1:0,t,o,a):-1}function DC(e,t,o,a){return a===void 0&&(a=!0),o&&t.some(function(r){return r&&(OC(r,e,o)||a&&OC(r,o.document.activeElement,o))})}function h3(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function IH(e,t,o,a){for(var r=e.type,l={},n=Object.keys(o),i=0,u=n;i<u.length;i++){var s=u[i];SH(s,e,t,o,a),a[s]!==o[s]&&(l[s]=a[s])}t.onStateChange&&Object.keys(l).length&&t.onStateChange(fe({type:r},l))}function SH(e,t,o,a,r){if(r[e]!==a[e]){var l="on"+h3(e)+"Change",n=o[l];if(typeof n=="function"){var i=t.type;n(fe({type:i},r))}}}function UC(e,t,o,a){var r=He.useRef(null),l=He.useRef(void 0),n=iu(t),i=He.useCallback(function(f,p){l.current=p,f=s9(f,n.current);var v=e(f,n.current,p),b=n.current.stateReducer(f,fe({},p,{changes:v}));return fe({},f,b)},[n,e]),u=He.useReducer(i,t,o),s=u[0],d=u[1],g=l.current;return He.useEffect(function(){var f,p=s9((f=r.current)!=null?f:{},n.current),v=g&&r.current&&!a(p,s);v&&IH(g,n.current,p,s),r.current=s},[s,g,a,n]),[s,d]}function C3(e,t,o,a){var r=UC(e,t,o,a),l=r[0],n=r[1];return[s9(l,t),n]}function v3(e,t,o,a){if(e!==void 0&&t!==void 0)return[e,t];if(e!==void 0){var r=o.indexOf(e);if(r<0)throw new Error(a);return[e,o.indexOf(e)]}if(t!==void 0){var l=o[t];if(l===void 0)throw new Error(a);return[l,t]}throw new Error(a)}function h9(){var e=He.useRef(!0);return He.useEffect(function(){return e.current=!1,function(){e.current=!0}},[]),e.current}function MH(e,t){return t.changes}var RH={environment:re.default.shape({addEventListener:re.default.func.isRequired,removeEventListener:re.default.func.isRequired,document:re.default.shape({createElement:re.default.func.isRequired,getElementById:re.default.func.isRequired,activeElement:re.default.any.isRequired,body:re.default.any.isRequired}).isRequired,Node:re.default.func.isRequired}),itemToKey:re.default.func,stateReducer:re.default.func};function Zo(e,t,o){var a=e["default"+h3(t)];return a!==void 0?a:o[t]}function Qr(e,t,o){var a=e[t];if(a!==void 0)return a;var r=e["initial"+h3(t)];return r!==void 0?r:Zo(e,t,o)}var VC=ZC(function(e,t){xH(e,t)},200);function x3(e,t,o,a){var r=a?.document,l=h9();He.useEffect(function(){if(!(!e||l||!r)){var n=e(t);VC(n,r)}},o),He.useEffect(function(){return function(){VC.cancel(),bH(r)}},[r])}var lu=fe({},RH,{getA11yStatusMessage:re.default.func,highlightedIndex:re.default.number,defaultHighlightedIndex:re.default.number,initialHighlightedIndex:re.default.number,isOpen:re.default.bool,defaultIsOpen:re.default.bool,initialIsOpen:re.default.bool,selectedItem:re.default.any,initialSelectedItem:re.default.any,defaultSelectedItem:re.default.any,id:re.default.string,labelId:re.default.string,menuId:re.default.string,getItemId:re.default.func,toggleButtonId:re.default.string,onSelectedItemChange:re.default.func,onHighlightedIndexChange:re.default.func,onStateChange:re.default.func,onIsOpenChange:re.default.func,scrollIntoView:re.default.func}),nu={itemToString:function(t){return t?String(t):""},itemToKey:function(t){return t},stateReducer:MH,scrollIntoView:LH,environment:typeof window>"u"?void 0:window},L1={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""},HH=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?He.useLayoutEffect:He.useEffect;function kH(e){return/^\S{1}$/.test(e)}function FC(e){var t=Qr(e,"selectedItem",L1),o=Qr(e,"isOpen",L1),a=TH(e),r=Qr(e,"inputValue",L1);return{highlightedIndex:a<0&&t&&o?e.items.findIndex(function(l){return e.itemToKey(l)===e.itemToKey(t)}):a,isOpen:o,selectedItem:t,inputValue:r}}function Yr(e,t,o){var a=e.items,r=e.initialHighlightedIndex,l=e.defaultHighlightedIndex,n=e.isItemDisabled,i=e.itemToKey,u=t.selectedItem,s=t.highlightedIndex;return a.length===0?-1:r!==void 0&&s===r&&!n(a[r],r)?r:l!==void 0&&!n(a[l],l)?l:u?a.findIndex(function(d){return i(u)===i(d)}):o<0&&!n(a[a.length-1],a.length-1)?a.length-1:o>0&&!n(a[0],0)?0:-1}function qC(e,t,o){var a=He.useRef({isMouseDown:!1,isTouchMove:!1,isTouchEnd:!1}),r=He.useCallback(function(){return o.map(function(l){return l.current})},[o]);return He.useEffect(function(){if(!e)return uu;function l(){a.current.isTouchEnd=!1,a.current.isMouseDown=!0}function n(d){a.current.isMouseDown=!1,DC(d.target,r(),e)||t()}function i(){a.current.isTouchEnd=!1,a.current.isTouchMove=!1}function u(){a.current.isTouchMove=!0}function s(d){a.current.isTouchEnd=!0,!a.current.isTouchMove&&!DC(d.target,r(),e,!1)&&t()}return e.addEventListener("mousedown",l),e.addEventListener("mouseup",n),e.addEventListener("touchstart",i),e.addEventListener("touchmove",u),e.addEventListener("touchend",s),function(){e.removeEventListener("mousedown",l),e.removeEventListener("mouseup",n),e.removeEventListener("touchstart",i),e.removeEventListener("touchmove",u),e.removeEventListener("touchend",s)}},[e,r,t]),a.current}var b3=function(){return uu};function $C(e){var t=e.highlightedIndex,o=e.isOpen,a=e.itemRefs,r=e.getItemNodeFromIndex,l=e.menuElement,n=e.scrollIntoView,i=He.useRef(!0);return HH(function(){t<0||!o||!Object.keys(a.current).length||(i.current===!1?i.current=!0:n(r(t),l))},[t]),i}var L3=uu;function c9(e,t,o){var a;o===void 0&&(o=!0);var r=((a=e.items)==null?void 0:a.length)&&t>=0;return fe({isOpen:!1,highlightedIndex:-1},r&&fe({selectedItem:e.items[t],isOpen:Zo(e,"isOpen",L1),highlightedIndex:Zo(e,"highlightedIndex",L1)},o&&{inputValue:e.itemToString(e.items[t])}))}function jC(e,t){return e.isOpen===t.isOpen&&e.inputValue===t.inputValue&&e.highlightedIndex===t.highlightedIndex&&e.selectedItem===t.selectedItem}function f9(e){var t=Zo(e,"highlightedIndex",L1);return t>-1&&e.isItemDisabled(e.items[t],t)?-1:t}function TH(e){var t=Qr(e,"highlightedIndex",L1);return t>-1&&e.isItemDisabled(e.items[t],t)?-1:t}function GC(e,t,o,a){var r=o.type,l;switch(r){case a.ItemMouseMove:l={highlightedIndex:o.disabled?-1:o.index};break;case a.MenuMouseLeave:l={highlightedIndex:-1};break;case a.ToggleButtonClick:case a.FunctionToggleMenu:l={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:Yr(t,e,0)};break;case a.FunctionOpenMenu:l={isOpen:!0,highlightedIndex:Yr(t,e,0)};break;case a.FunctionCloseMenu:l={isOpen:!1};break;case a.FunctionSetHighlightedIndex:l={highlightedIndex:t.isItemDisabled(t.items[o.highlightedIndex],o.highlightedIndex)?-1:o.highlightedIndex};break;case a.FunctionSetInputValue:l={inputValue:o.inputValue};break;case a.FunctionReset:l={highlightedIndex:f9(t),isOpen:Zo(t,"isOpen",L1),selectedItem:Zo(t,"selectedItem",L1),inputValue:Zo(t,"inputValue",L1)};break;default:throw new Error("Reducer called without proper action type.")}return fe({},e,l)}var EH=fe({},lu,{items:re.default.array.isRequired,isItemDisabled:re.default.func}),_H=fe({},nu,{isItemDisabled:function(){return!1}});function OH(e){for(var t=e.keysSoFar,o=e.highlightedIndex,a=e.items,r=e.itemToString,l=e.isItemDisabled,n=t.toLowerCase(),i=0;i<a.length;i++){var u=(i+o+(t.length<2?1:0))%a.length,s=a[u];if(s!==void 0&&r(s).toLowerCase().startsWith(n)&&!l(s,u))return u}return o}var u9=0,w3=1,y3=2,p9=3,I3=4,S3=5,M3=6,R3=7,H3=8,k3=9,T3=10,m9=11,KC=12,XC=13,E3=14,QC=15,YC=16,WC=17,JC=18,_3=19,m3=20,ev=21,tv=Object.freeze({__proto__:null,FunctionCloseMenu:WC,FunctionOpenMenu:YC,FunctionReset:ev,FunctionSelectItem:_3,FunctionSetHighlightedIndex:JC,FunctionSetInputValue:m3,FunctionToggleMenu:QC,ItemClick:E3,ItemMouseMove:XC,MenuMouseLeave:KC,ToggleButtonBlur:m9,ToggleButtonClick:u9,ToggleButtonKeyDownArrowDown:w3,ToggleButtonKeyDownArrowUp:y3,ToggleButtonKeyDownCharacter:p9,ToggleButtonKeyDownEnd:M3,ToggleButtonKeyDownEnter:R3,ToggleButtonKeyDownEscape:I3,ToggleButtonKeyDownHome:S3,ToggleButtonKeyDownPageDown:T3,ToggleButtonKeyDownPageUp:k3,ToggleButtonKeyDownSpaceButton:H3});function DH(e,t,o){var a,r=o.type,l=o.altKey,n;switch(r){case E3:n={isOpen:Zo(t,"isOpen",L1),highlightedIndex:f9(t),selectedItem:t.items[o.index]};break;case p9:{var i=o.key,u=""+e.inputValue+i,s=!e.isOpen&&e.selectedItem?t.items.findIndex(function(p){return t.itemToKey(p)===t.itemToKey(e.selectedItem)}):e.highlightedIndex,d=OH({keysSoFar:u,highlightedIndex:s,items:t.items,itemToString:t.itemToString,isItemDisabled:t.isItemDisabled});n={inputValue:u,highlightedIndex:d,isOpen:!0}}break;case w3:{var g=e.isOpen?dr(e.highlightedIndex,1,t.items,t.isItemDisabled):l&&e.selectedItem==null?-1:Yr(t,e,1);n={highlightedIndex:g,isOpen:!0}}break;case y3:if(e.isOpen&&l)n=c9(t,e.highlightedIndex,!1);else{var f=e.isOpen?dr(e.highlightedIndex,-1,t.items,t.isItemDisabled):Yr(t,e,-1);n={highlightedIndex:f,isOpen:!0}}break;case R3:case H3:n=c9(t,e.highlightedIndex,!1);break;case S3:n={highlightedIndex:wn(0,!1,t.items,t.isItemDisabled),isOpen:!0};break;case M3:n={highlightedIndex:wn(t.items.length-1,!0,t.items,t.isItemDisabled),isOpen:!0};break;case k3:n={highlightedIndex:dr(e.highlightedIndex,-10,t.items,t.isItemDisabled)};break;case T3:n={highlightedIndex:dr(e.highlightedIndex,10,t.items,t.isItemDisabled)};break;case I3:n={isOpen:!1,highlightedIndex:-1};break;case m9:n=fe({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&((a=t.items)==null?void 0:a.length)&&{selectedItem:t.items[e.highlightedIndex]});break;case _3:n={selectedItem:o.selectedItem};break;default:return GC(e,t,o,tv)}return fe({},e,n)}var VH=fe({},He),ov=VH.useId,av=typeof ov=="function"?AH:BH;function AH(e){var t=e.id,o=e.labelId,a=e.menuId,r=e.getItemId,l=e.toggleButtonId,n=e.inputId,i="downshift-"+ov();t||(t=i);var u=He.useMemo(function(){return{labelId:o??t+"-label",menuId:a??t+"-menu",getItemId:r??function(s){return t+"-item-"+s},toggleButtonId:l??t+"-toggle-button",inputId:n??t+"-input"}},[r,t,n,o,a,l]);return u}function BH(e){var t=e.id,o=e.labelId,a=e.menuId,r=e.getItemId,l=e.toggleButtonId,n=e.inputId,i=He.useRef(t??"downshift-"+PC()),u=i.current,s=He.useMemo(function(){return{labelId:o??u+"-label",menuId:a??u+"-menu",getItemId:r??function(d){return u+"-item-"+d},toggleButtonId:l??u+"-toggle-button",inputId:n??u+"-input"}},[r,n,o,a,l,u]);return s}var NH=["onClick"],PH=["onMouseLeave","refKey","ref"],ZH=["onBlur","onClick","onPress","onKeyDown","refKey","ref"],zH=["item","index","onMouseMove","onClick","onMouseDown","onPress","refKey","disabled","ref"];C9.stateChangeTypes=tv;function C9(e){e===void 0&&(e={}),g3(e,C9,EH);var t=fe({},_H,e),o=t.scrollIntoView,a=t.environment,r=t.getA11yStatusMessage,l=C3(DH,t,FC,jC),n=l[0],i=l[1],u=n.isOpen,s=n.highlightedIndex,d=n.selectedItem,g=n.inputValue,f=(0,X.useRef)(null),p=(0,X.useRef)(null),v=(0,X.useRef)({}),b=(0,X.useRef)(null),x=av(t),m=iu({state:n,props:t}),c=(0,X.useCallback)(function(T){return v.current[x.getItemId(T)]},[x]);x3(r,n,[u,s,d,g],a);var h=$C({menuElement:p.current,highlightedIndex:s,isOpen:u,itemRefs:v,scrollIntoView:o,getItemNodeFromIndex:c});(0,X.useEffect)(function(){return b.current=wH(function(T){T({type:m3,inputValue:""})},500),function(){b.current.cancel()}},[]),(0,X.useEffect)(function(){g&&b.current(i)},[i,g]),L3({props:t,state:n}),(0,X.useEffect)(function(){var T=Qr(t,"isOpen",L1);T&&f.current&&f.current.focus()},[]);var C=(0,X.useCallback)(function(){m.current.state.isOpen&&i({type:m9})},[i,m]),w=(0,X.useMemo)(function(){return[p,f]},[]),S=qC(a,C,w),H=b3("getMenuProps","getToggleButtonProps");(0,X.useEffect)(function(){u||(v.current={})},[u]);var y=(0,X.useMemo)(function(){return{ArrowDown:function(Z){Z.preventDefault(),i({type:w3,altKey:Z.altKey})},ArrowUp:function(Z){Z.preventDefault(),i({type:y3,altKey:Z.altKey})},Home:function(Z){Z.preventDefault(),i({type:S3})},End:function(Z){Z.preventDefault(),i({type:M3})},Escape:function(){m.current.state.isOpen&&i({type:I3})},Enter:function(Z){Z.preventDefault(),i({type:m.current.state.isOpen?R3:u9})},PageUp:function(Z){m.current.state.isOpen&&(Z.preventDefault(),i({type:k3}))},PageDown:function(Z){m.current.state.isOpen&&(Z.preventDefault(),i({type:T3}))}," ":function(Z){Z.preventDefault();var z=m.current.state;if(!z.isOpen){i({type:u9});return}z.inputValue?i({type:p9,key:" "}):i({type:H3})}}},[i,m]),k=(0,X.useCallback)(function(){i({type:QC})},[i]),O=(0,X.useCallback)(function(){i({type:WC})},[i]),F=(0,X.useCallback)(function(){i({type:YC})},[i]),ae=(0,X.useCallback)(function(T){i({type:JC,highlightedIndex:T})},[i]),K=(0,X.useCallback)(function(T){i({type:_3,selectedItem:T})},[i]),B=(0,X.useCallback)(function(){i({type:ev})},[i]),Q=(0,X.useCallback)(function(T){i({type:m3,inputValue:T})},[i]),M=(0,X.useCallback)(function(T){var Z=T===void 0?{}:T,z=Z.onClick,W=b1(Z,NH),U=function(){var q;(q=f.current)==null||q.focus()};return fe({id:x.labelId,htmlFor:x.toggleButtonId,onClick:mt(z,U)},W)},[x]),I=(0,X.useCallback)(function(T,Z){var z,W=T===void 0?{}:T,U=W.onMouseLeave,j=W.refKey,q=j===void 0?"ref":j,D=W.ref,ne=b1(W,PH),ce=Z===void 0?{}:Z,ve=ce.suppressRefError,_=ve===void 0?!1:ve,P=function(){i({type:KC})};return H("getMenuProps",_,q,p),fe((z={},z[q]=pa(D,function(oe){p.current=oe}),z.id=x.menuId,z.role="listbox",z["aria-labelledby"]=ne&&ne["aria-label"]?void 0:""+x.labelId,z.onMouseLeave=mt(U,P),z),ne)},[i,H,x]),R=(0,X.useCallback)(function(T,Z){var z,W=T===void 0?{}:T,U=W.onBlur,j=W.onClick;W.onPress;var q=W.onKeyDown,D=W.refKey,ne=D===void 0?"ref":D,ce=W.ref,ve=b1(W,ZH),_=Z===void 0?{}:Z,P=_.suppressRefError,oe=P===void 0?!1:P,me=m.current.state,lt=function(){i({type:u9})},Ue=function(){me.isOpen&&!S.isMouseDown&&i({type:m9})},u1=function(le){var Re=d9(le);Re&&y[Re]?y[Re](le):kH(Re)&&i({type:p9,key:Re})},te=fe((z={},z[ne]=pa(ce,function(ie){f.current=ie}),z["aria-activedescendant"]=me.isOpen&&me.highlightedIndex>-1?x.getItemId(me.highlightedIndex):"",z["aria-controls"]=x.menuId,z["aria-expanded"]=m.current.state.isOpen,z["aria-haspopup"]="listbox",z["aria-labelledby"]=ve&&ve["aria-label"]?void 0:""+x.labelId,z.id=x.toggleButtonId,z.role="combobox",z.tabIndex=0,z.onBlur=mt(U,Ue),z),ve);return ve.disabled||(te.onClick=mt(j,lt),te.onKeyDown=mt(q,u1)),H("getToggleButtonProps",oe,ne,f),te},[i,x,m,S,H,y]),L=(0,X.useCallback)(function(T){var Z,z=T===void 0?{}:T,W=z.item,U=z.index,j=z.onMouseMove,q=z.onClick,D=z.onMouseDown;z.onPress;var ne=z.refKey,ce=ne===void 0?"ref":ne,ve=z.disabled,_=z.ref,P=b1(z,zH);ve!==void 0&&console.warn('Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useSelect.');var oe=m.current,me=oe.state,lt=oe.props,Ue=v3(W,U,lt.items,"Pass either item or index to getItemProps!"),u1=Ue[0],te=Ue[1],ie=lt.isItemDisabled(u1,te),le=function(){S.isTouchEnd||te===me.highlightedIndex||(h.current=!1,i({type:XC,index:te,disabled:ie}))},Re=function(){i({type:E3,index:te})},ut=function(jt){return jt.preventDefault()},ye=fe((Z={},Z[ce]=pa(_,function(Ae){Ae&&(v.current[x.getItemId(te)]=Ae)}),Z["aria-disabled"]=ie,Z["aria-selected"]=u1===me.selectedItem,Z.id=x.getItemId(te),Z.role="option",Z),P);return ie||(ye.onClick=mt(q,Re)),ye.onMouseMove=mt(j,le),ye.onMouseDown=mt(D,ut),ye},[m,x,S,h,i]);return{getToggleButtonProps:R,getLabelProps:M,getMenuProps:I,getItemProps:L,toggleMenu:k,openMenu:F,closeMenu:O,setHighlightedIndex:ae,selectItem:K,reset:B,setInputValue:Q,highlightedIndex:s,isOpen:u,selectedItem:d,inputValue:g}}var O3=0,D3=1,V3=2,A3=3,B3=4,N3=5,P3=6,Z3=7,z3=8,g9=9,U3=10,rv=11,lv=12,F3=13,nv=14,iv=15,uv=16,sv=17,dv=18,q3=19,cv=20,fv=21,$3=22,pv=Object.freeze({__proto__:null,ControlledPropUpdatedSelectedItem:$3,FunctionCloseMenu:sv,FunctionOpenMenu:uv,FunctionReset:fv,FunctionSelectItem:q3,FunctionSetHighlightedIndex:dv,FunctionSetInputValue:cv,FunctionToggleMenu:iv,InputBlur:g9,InputChange:z3,InputClick:U3,InputKeyDownArrowDown:O3,InputKeyDownArrowUp:D3,InputKeyDownEnd:B3,InputKeyDownEnter:Z3,InputKeyDownEscape:V3,InputKeyDownHome:A3,InputKeyDownPageDown:P3,InputKeyDownPageUp:N3,ItemClick:F3,ItemMouseMove:lv,MenuMouseLeave:rv,ToggleButtonClick:nv});function UH(e){var t=FC(e),o=t.selectedItem,a=t.inputValue;return a===""&&o&&e.defaultInputValue===void 0&&e.initialInputValue===void 0&&e.inputValue===void 0&&(a=e.itemToString(o)),fe({},t,{inputValue:a})}var FH=fe({},lu,{items:re.default.array.isRequired,isItemDisabled:re.default.func,inputValue:re.default.string,defaultInputValue:re.default.string,initialInputValue:re.default.string,inputId:re.default.string,onInputValueChange:re.default.func});function qH(e,t,o,a){var r=(0,X.useRef)(),l=UC(e,t,o,a),n=l[0],i=l[1],u=h9();return(0,X.useEffect)(function(){if(yH(t,"selectedItem")){if(!u){var s=t.itemToKey(t.selectedItem)!==t.itemToKey(r.current);s&&i({type:$3,inputValue:t.itemToString(t.selectedItem)})}r.current=n.selectedItem===r.current?t.selectedItem:n.selectedItem}},[n.selectedItem,t.selectedItem]),[s9(n,t),i]}var $H=fe({},nu,{isItemDisabled:function(){return!1}});function jH(e,t,o){var a,r=o.type,l=o.altKey,n;switch(r){case F3:n={isOpen:Zo(t,"isOpen",L1),highlightedIndex:f9(t),selectedItem:t.items[o.index],inputValue:t.itemToString(t.items[o.index])};break;case O3:e.isOpen?n={highlightedIndex:dr(e.highlightedIndex,1,t.items,t.isItemDisabled,!0)}:n={highlightedIndex:l&&e.selectedItem==null?-1:Yr(t,e,1),isOpen:t.items.length>=0};break;case D3:e.isOpen?l?n=c9(t,e.highlightedIndex):n={highlightedIndex:dr(e.highlightedIndex,-1,t.items,t.isItemDisabled,!0)}:n={highlightedIndex:Yr(t,e,-1),isOpen:t.items.length>=0};break;case Z3:n=c9(t,e.highlightedIndex);break;case V3:n=fe({isOpen:!1,highlightedIndex:-1},!e.isOpen&&{selectedItem:null,inputValue:""});break;case N3:n={highlightedIndex:dr(e.highlightedIndex,-10,t.items,t.isItemDisabled,!0)};break;case P3:n={highlightedIndex:dr(e.highlightedIndex,10,t.items,t.isItemDisabled,!0)};break;case A3:n={highlightedIndex:wn(0,!1,t.items,t.isItemDisabled)};break;case B3:n={highlightedIndex:wn(t.items.length-1,!0,t.items,t.isItemDisabled)};break;case g9:n=fe({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&((a=t.items)==null?void 0:a.length)&&o.selectItem&&{selectedItem:t.items[e.highlightedIndex],inputValue:t.itemToString(t.items[e.highlightedIndex])});break;case z3:n={isOpen:!0,highlightedIndex:f9(t),inputValue:o.inputValue};break;case U3:n={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:Yr(t,e,0)};break;case q3:n={selectedItem:o.selectedItem,inputValue:t.itemToString(o.selectedItem)};break;case $3:n={inputValue:o.inputValue};break;default:return GC(e,t,o,pv)}return fe({},e,n)}var GH=["onMouseLeave","refKey","ref"],KH=["item","index","refKey","ref","onMouseMove","onMouseDown","onClick","onPress","disabled"],XH=["onClick","onPress","refKey","ref"],QH=["onKeyDown","onChange","onInput","onBlur","onChangeText","onClick","refKey","ref"];mv.stateChangeTypes=pv;function mv(e){e===void 0&&(e={}),g3(e,mv,FH);var t=fe({},$H,e),o=t.items,a=t.scrollIntoView,r=t.environment,l=t.getA11yStatusMessage,n=qH(jH,t,UH,jC),i=n[0],u=n[1],s=i.isOpen,d=i.highlightedIndex,g=i.selectedItem,f=i.inputValue,p=(0,X.useRef)(null),v=(0,X.useRef)({}),b=(0,X.useRef)(null),x=(0,X.useRef)(null),m=h9(),c=av(t),h=(0,X.useRef)(),C=iu({state:i,props:t}),w=(0,X.useCallback)(function(U){return v.current[c.getItemId(U)]},[c]);x3(l,i,[s,d,g,f],r);var S=$C({menuElement:p.current,highlightedIndex:d,isOpen:s,itemRefs:v,scrollIntoView:a,getItemNodeFromIndex:w});L3({props:t,state:i}),(0,X.useEffect)(function(){var U=Qr(t,"isOpen",L1);U&&b.current&&b.current.focus()},[]),(0,X.useEffect)(function(){m||(h.current=o.length)});var H=(0,X.useCallback)(function(){C.current.state.isOpen&&u({type:g9})},[u,C]),y=(0,X.useMemo)(function(){return[p,x,b]},[]),k=qC(r,H,y),O=b3("getInputProps","getMenuProps");(0,X.useEffect)(function(){s||(v.current={})},[s]),(0,X.useEffect)(function(){var U;!s||!(r!=null&&r.document)||!(b!=null&&(U=b.current)!=null&&U.focus)||r.document.activeElement!==b.current&&b.current.focus()},[s,r]);var F=(0,X.useMemo)(function(){return{ArrowDown:function(j){j.preventDefault(),u({type:O3,altKey:j.altKey})},ArrowUp:function(j){j.preventDefault(),u({type:D3,altKey:j.altKey})},Home:function(j){C.current.state.isOpen&&(j.preventDefault(),u({type:A3}))},End:function(j){C.current.state.isOpen&&(j.preventDefault(),u({type:B3}))},Escape:function(j){var q=C.current.state;(q.isOpen||q.inputValue||q.selectedItem||q.highlightedIndex>-1)&&(j.preventDefault(),u({type:V3}))},Enter:function(j){var q=C.current.state;!q.isOpen||j.which===229||(j.preventDefault(),u({type:Z3}))},PageUp:function(j){C.current.state.isOpen&&(j.preventDefault(),u({type:N3}))},PageDown:function(j){C.current.state.isOpen&&(j.preventDefault(),u({type:P3}))}}},[u,C]),ae=(0,X.useCallback)(function(U){return fe({id:c.labelId,htmlFor:c.inputId},U)},[c]),K=(0,X.useCallback)(function(U,j){var q,D=U===void 0?{}:U,ne=D.onMouseLeave,ce=D.refKey,ve=ce===void 0?"ref":ce,_=D.ref,P=b1(D,GH),oe=j===void 0?{}:j,me=oe.suppressRefError,lt=me===void 0?!1:me;return O("getMenuProps",lt,ve,p),fe((q={},q[ve]=pa(_,function(Ue){p.current=Ue}),q.id=c.menuId,q.role="listbox",q["aria-labelledby"]=P&&P["aria-label"]?void 0:""+c.labelId,q.onMouseLeave=mt(ne,function(){u({type:rv})}),q),P)},[u,O,c]),B=(0,X.useCallback)(function(U){var j,q,D=U===void 0?{}:U,ne=D.item,ce=D.index,ve=D.refKey,_=ve===void 0?"ref":ve,P=D.ref,oe=D.onMouseMove,me=D.onMouseDown,lt=D.onClick;D.onPress;var Ue=D.disabled,u1=b1(D,KH);Ue!==void 0&&console.warn('Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useCombobox.');var te=C.current,ie=te.props,le=te.state,Re=v3(ne,ce,ie.items,"Pass either item or index to getItemProps!"),ut=Re[0],ye=Re[1],Ae=ie.isItemDisabled(ut,ye),jt="onClick",w1=lt,Wt=function(){k.isTouchEnd||ye===le.highlightedIndex||(S.current=!1,u({type:lv,index:ye,disabled:Ae}))},$e=function(){u({type:F3,index:ye})},st=function(ro){return ro.preventDefault()};return fe((j={},j[_]=pa(P,function(Ke){Ke&&(v.current[c.getItemId(ye)]=Ke)}),j["aria-disabled"]=Ae,j["aria-selected"]=ye===le.highlightedIndex,j.id=c.getItemId(ye),j.role="option",j),!Ae&&(q={},q[jt]=mt(w1,$e),q),{onMouseMove:mt(oe,Wt),onMouseDown:mt(me,st)},u1)},[u,c,C,k,S]),Q=(0,X.useCallback)(function(U){var j,q=U===void 0?{}:U,D=q.onClick;q.onPress;var ne=q.refKey,ce=ne===void 0?"ref":ne,ve=q.ref,_=b1(q,XH),P=C.current.state,oe=function(){u({type:nv})};return fe((j={},j[ce]=pa(ve,function(me){x.current=me}),j["aria-controls"]=c.menuId,j["aria-expanded"]=P.isOpen,j.id=c.toggleButtonId,j.tabIndex=-1,j),!_.disabled&&fe({},{onClick:mt(D,oe)}),_)},[u,C,c]),M=(0,X.useCallback)(function(U,j){var q,D=U===void 0?{}:U,ne=D.onKeyDown,ce=D.onChange,ve=D.onInput,_=D.onBlur;D.onChangeText;var P=D.onClick,oe=D.refKey,me=oe===void 0?"ref":oe,lt=D.ref,Ue=b1(D,QH),u1=j===void 0?{}:j,te=u1.suppressRefError,ie=te===void 0?!1:te;O("getInputProps",ie,me,b);var le=C.current.state,Re=function(st){var Ke=d9(st);Ke&&F[Ke]&&F[Ke](st)},ut=function(st){u({type:z3,inputValue:st.target.value})},ye=function(st){if(r!=null&&r.document&&le.isOpen&&!k.isMouseDown){var Ke=st.relatedTarget===null&&r.document.activeElement!==r.document.body;u({type:g9,selectItem:!Ke})}},Ae=function(){u({type:U3})},jt="onChange",w1={};if(!Ue.disabled){var Wt;w1=(Wt={},Wt[jt]=mt(ce,ve,ut),Wt.onKeyDown=mt(ne,Re),Wt.onBlur=mt(_,ye),Wt.onClick=mt(P,Ae),Wt)}return fe((q={},q[me]=pa(lt,function($e){b.current=$e}),q["aria-activedescendant"]=le.isOpen&&le.highlightedIndex>-1?c.getItemId(le.highlightedIndex):"",q["aria-autocomplete"]="list",q["aria-controls"]=c.menuId,q["aria-expanded"]=le.isOpen,q["aria-labelledby"]=Ue&&Ue["aria-label"]?void 0:c.labelId,q.autoComplete="off",q.id=c.inputId,q.role="combobox",q.value=le.inputValue,q),w1,Ue)},[u,c,r,F,C,k,O]),I=(0,X.useCallback)(function(){u({type:iv})},[u]),R=(0,X.useCallback)(function(){u({type:sv})},[u]),L=(0,X.useCallback)(function(){u({type:uv})},[u]),T=(0,X.useCallback)(function(U){u({type:dv,highlightedIndex:U})},[u]),Z=(0,X.useCallback)(function(U){u({type:q3,selectedItem:U})},[u]),z=(0,X.useCallback)(function(U){u({type:cv,inputValue:U})},[u]),W=(0,X.useCallback)(function(){u({type:fv})},[u]);return{getItemProps:B,getLabelProps:ae,getMenuProps:K,getInputProps:M,getToggleButtonProps:Q,toggleMenu:I,openMenu:L,closeMenu:R,setHighlightedIndex:T,setInputValue:z,selectItem:Z,reset:W,highlightedIndex:d,isOpen:s,selectedItem:g,inputValue:f}}var gv={activeIndex:-1,selectedItems:[]};function AC(e,t){return Qr(e,t,gv)}function BC(e,t){return Zo(e,t,gv)}function YH(e){var t=AC(e,"activeIndex"),o=AC(e,"selectedItems");return{activeIndex:t,selectedItems:o}}function NC(e){if(e.shiftKey||e.metaKey||e.ctrlKey||e.altKey)return!1;var t=e.target;return!(t instanceof HTMLInputElement&&t.value!==""&&(t.selectionStart!==0||t.selectionEnd!==0))}function WH(e,t){return e.selectedItems===t.selectedItems&&e.activeIndex===t.activeIndex}var IU={stateReducer:lu.stateReducer,itemToKey:lu.itemToKey,environment:lu.environment,selectedItems:re.default.array,initialSelectedItems:re.default.array,defaultSelectedItems:re.default.array,getA11yStatusMessage:re.default.func,activeIndex:re.default.number,initialActiveIndex:re.default.number,defaultActiveIndex:re.default.number,onActiveIndexChange:re.default.func,onSelectedItemsChange:re.default.func,keyNavigationNext:re.default.string,keyNavigationPrevious:re.default.string},JH={itemToKey:nu.itemToKey,stateReducer:nu.stateReducer,environment:nu.environment,keyNavigationNext:"ArrowRight",keyNavigationPrevious:"ArrowLeft"},ek=uu,j3=0,G3=1,K3=2,X3=3,Q3=4,Y3=5,W3=6,J3=7,ef=8,tf=9,of=10,af=11,rf=12,tk=Object.freeze({__proto__:null,DropdownClick:J3,DropdownKeyDownBackspace:W3,DropdownKeyDownNavigationPrevious:Y3,FunctionAddSelectedItem:ef,FunctionRemoveSelectedItem:tf,FunctionReset:rf,FunctionSetActiveIndex:af,FunctionSetSelectedItems:of,SelectedItemClick:j3,SelectedItemKeyDownBackspace:K3,SelectedItemKeyDownDelete:G3,SelectedItemKeyDownNavigationNext:X3,SelectedItemKeyDownNavigationPrevious:Q3});function ok(e,t,o){var a=o.type,r=o.index,l=o.selectedItem,n=e.activeIndex,i=e.selectedItems,u;switch(a){case j3:u={activeIndex:r};break;case Q3:u={activeIndex:n-1<0?0:n-1};break;case X3:u={activeIndex:n+1>=i.length?-1:n+1};break;case K3:case G3:{if(n<0)break;var s=n;i.length===1?s=-1:n===i.length-1&&(s=i.length-2),u=fe({selectedItems:[].concat(i.slice(0,n),i.slice(n+1))},{activeIndex:s});break}case Y3:u={activeIndex:i.length-1};break;case W3:u={selectedItems:i.slice(0,i.length-1)};break;case ef:u={selectedItems:[].concat(i,[l])};break;case J3:u={activeIndex:-1};break;case tf:{var d=n,g=i.findIndex(function(v){return t.itemToKey(v)===t.itemToKey(l)});if(g<0)break;i.length===1?d=-1:g===i.length-1&&(d=i.length-2),u={selectedItems:[].concat(i.slice(0,g),i.slice(g+1)),activeIndex:d};break}case of:{var f=o.selectedItems;u={selectedItems:f};break}case af:{var p=o.activeIndex;u={activeIndex:p};break}case rf:u={activeIndex:BC(t,"activeIndex"),selectedItems:BC(t,"selectedItems")};break;default:throw new Error("Reducer called without proper action type.")}return fe({},e,u)}var ak=["refKey","ref","onClick","onKeyDown","selectedItem","index"],rk=["refKey","ref","onKeyDown","onClick","preventKeyAction"];hv.stateChangeTypes=tk;function hv(e){e===void 0&&(e={}),ek(e,hv);var t=fe({},JH,e),o=t.getA11yStatusMessage,a=t.environment,r=t.keyNavigationNext,l=t.keyNavigationPrevious,n=C3(ok,t,YH,WH),i=n[0],u=n[1],s=i.activeIndex,d=i.selectedItems,g=h9(),f=(0,X.useRef)(null),p=(0,X.useRef)();p.current=[];var v=iu({state:i,props:t});x3(o,i,[s,d],a),(0,X.useEffect)(function(){g||(s===-1&&f.current?f.current.focus():p.current[s]&&p.current[s].focus())},[s]),L3({props:t,state:i});var b=b3("getDropdownProps"),x=(0,X.useMemo)(function(){var k;return k={},k[l]=function(){u({type:Q3})},k[r]=function(){u({type:X3})},k.Delete=function(){u({type:G3})},k.Backspace=function(){u({type:K3})},k},[u,r,l]),m=(0,X.useMemo)(function(){var k;return k={},k[l]=function(O){NC(O)&&u({type:Y3})},k.Backspace=function(F){NC(F)&&u({type:W3})},k},[u,l]),c=(0,X.useCallback)(function(k){var O,F=k===void 0?{}:k,ae=F.refKey,K=ae===void 0?"ref":ae,B=F.ref,Q=F.onClick,M=F.onKeyDown,I=F.selectedItem,R=F.index,L=b1(F,ak),T=v.current.state,Z=v3(I,R,T.selectedItems,"Pass either item or index to getSelectedItemProps!"),z=Z[1],W=z>-1&&z===T.activeIndex,U=function(){u({type:j3,index:z})},j=function(D){var ne=d9(D);ne&&x[ne]&&x[ne](D)};return fe((O={},O[K]=pa(B,function(q){q&&p.current.push(q)}),O.tabIndex=W?0:-1,O.onClick=mt(Q,U),O.onKeyDown=mt(M,j),O),L)},[u,v,x]),h=(0,X.useCallback)(function(k,O){var F,ae=k===void 0?{}:k,K=ae.refKey,B=K===void 0?"ref":K,Q=ae.ref,M=ae.onKeyDown,I=ae.onClick,R=ae.preventKeyAction,L=R===void 0?!1:R,T=b1(ae,rk),Z=O===void 0?{}:O,z=Z.suppressRefError,W=z===void 0?!1:z;b("getDropdownProps",W,B,f);var U=function(D){var ne=d9(D);ne&&m[ne]&&m[ne](D)},j=function(){u({type:J3})};return fe((F={},F[B]=pa(Q,function(q){q&&(f.current=q)}),F),!L&&{onKeyDown:mt(M,U),onClick:mt(I,j)},T)},[u,m,b]),C=(0,X.useCallback)(function(k){u({type:ef,selectedItem:k})},[u]),w=(0,X.useCallback)(function(k){u({type:tf,selectedItem:k})},[u]),S=(0,X.useCallback)(function(k){u({type:of,selectedItems:k})},[u]),H=(0,X.useCallback)(function(k){u({type:af,activeIndex:k})},[u]),y=(0,X.useCallback)(function(){u({type:rf})},[u]);return{getSelectedItemProps:c,getDropdownProps:h,addSelectedItem:C,removeSelectedItem:w,setSelectedItems:S,setActiveIndex:H,reset:y,selectedItems:d,activeIndex:s}}var lf=0,nf=1,uf=2,sf=3,df=4,cf=5,ff=6,lk=Object.freeze({__proto__:null,FunctionAddItem:ff,TagClick:lf,TagGroupKeyDownArrowLeft:nf,TagGroupKeyDownArrowRight:uf,TagGroupKeyDownBackspace:df,TagGroupKeyDownDelete:sf,TagRemoveClick:cf});function nk(e,t,o){var a=o.type,r;switch(a){case lf:r={activeIndex:o.index};break;case nf:r={activeIndex:e.activeIndex===0?e.items.length-1:e.activeIndex-1};break;case uf:r={activeIndex:e.activeIndex===e.items.length-1?0:e.activeIndex+1};break;case df:case sf:{var l=[].concat(e.items.slice(0,e.activeIndex),e.items.slice(e.activeIndex+1)),n=l.length===0?-1:l.length===e.activeIndex?e.activeIndex-1:e.activeIndex;r={items:[].concat(e.items.slice(0,e.activeIndex),e.items.slice(e.activeIndex+1)),activeIndex:n};break}case cf:{var i=[].concat(e.items.slice(0,o.index),e.items.slice(o.index+1)),u=i.length===0?-1:i.length===o.index?o.index-1:o.index;r={items:i,activeIndex:u}}break;case ff:{var s=[];o.index===void 0?s=[].concat(e.items,[o.item]):s=[].concat(e.items.slice(0,o.index),[o.item],e.items.slice(o.index));var d=e.activeIndex===-1?s.length-1:e.activeIndex;r={items:s,activeIndex:d};break}default:throw new Error("Invalid useTagGroup reducer action.")}return fe({},e,r)}var ik=fe({},He),Cv=ik.useId,uk=typeof Cv=="function"?sk:dk;function sk(e){var t=e.id,o=e.tagGroupId,a=e.getTagId,r="downshift-"+Cv();t||(t=r);var l=He.useMemo(function(){return{tagGroupId:o??t+"-tag-group",getTagId:a??function(n){return t+"-tag-"+n}}},[a,t,o]);return l}function dk(e){var t=e.id,o=e.getTagId,a=e.tagGroupId,r=He.useRef(t??"downshift-"+PC()),l=r.current,n=He.useMemo(function(){return{tagGroupId:a??l+"-tag-group",getTagId:o??function(i){return l+"-tag-"+i}}},[o,l,a]);return n}function ck(e){var t,o,a,r,l=(t=(o=e.items)!=null?o:e.initialItems)!=null?t:[],n=(a=(r=e.activeIndex)!=null?r:e.initialActiveIndex)!=null?a:l.length===0?-1:0;return{activeIndex:n,items:l}}function fk(e,t){return e.activeIndex===t.activeIndex&&e.items===t.items}var vv="tag-group-a11y-description";function pk(e,t){He.useEffect(function(){if(e){var o=e.createElement("div");return o.setAttribute("id",vv),o.style.display="none",o.textContent=t,e.body.appendChild(o),function(){o.remove()}}},[t,e])}function mk(e){return fe({stateReducer:function(o,a){var r=a.changes;return r},environment:typeof window>"u"?void 0:window,removeElementDescription:"Press Delete or Backspace to remove tag."},e)}function gk(e,t,o){var a=He.useRef({}),r=He.useRef(e),l=He.useRef(t);return He.useEffect(function(){if(e!==-1&&r.current!==-1&&e!==r.current||l.current===t+1){var n;(n=a.current[o(e)])==null||n.focus()}r.current=e,l.current=t},[e,o,t]),a}var hk={isItemDisabled:re.default.func},Ck=["onKeyDown"],vk=["index","refKey","ref","onClick"],xk=["index","onClick"],xv=function(t){var o;t===void 0&&(t={}),g3(t,xv,hk);var a=mk(t),r=C3(nk,a,ck,fk),l=r[0],n=r[1],i=l.activeIndex,u=l.items,s=iu({state:l,props:a}),d=uk({getTagId:a.getTagId,id:a.id,tagGroupId:a.tagGroupId});pk((o=a.environment)==null?void 0:o.document,a.removeElementDescription);var g=gk(i,u.length,d.getTagId),f=(0,X.useCallback)(function(x){var m=x??{},c=m.onKeyDown,h=b1(m,Ck),C=function(H){switch(H.key){case"ArrowLeft":n({type:nf});break;case"ArrowRight":n({type:uf});break;case"Delete":n({type:sf});break;case"Backspace":n({type:df});break}},w=fe({id:d.tagGroupId,"aria-live":"polite","aria-atomic":"false","aria-relevant":"additions",role:"listbox",onKeyDown:p3(c,C)},h);return w},[n,d.tagGroupId]),p=(0,X.useCallback)(function(x){var m,c=x.index,h=x.refKey,C=h===void 0?"ref":h,w=x.ref,S=x.onClick,H=b1(x,vk);if(!Number.isInteger(c)||c<0)throw new Error("Pass correct item index to getTagProps!");var y=s.current.state,k=function(){n({type:lf,index:c})},O=d.getTagId(c);return fe((m={"aria-describedby":vv},m[C]=CH(w,function(F){F&&(g.current[O]=F)}),m["aria-labelledby"]=O,m.role="option",m.id=O,m.onClick=p3(S,k),m.tabIndex=y.activeIndex===c?0:-1,m),H)},[n,d,s,g]),v=(0,X.useCallback)(function(x){var m=x.index,c=x.onClick,h=b1(x,xk);if(!Number.isInteger(m)||m<0)throw new Error("Pass correct item index to getTagRemoveProps!");var C=function(y){y.stopPropagation(),n({type:cf,index:m})},w=d.getTagId(m),S=w+"-remove";return fe({id:S,tabIndex:-1,"aria-labelledby":S+" "+w,onClick:p3(c,C)},h)},[d,n]),b=(0,X.useCallback)(function(x,m){n({type:ff,item:x,index:m})},[n]);return{activeIndex:i,addItem:b,getTagGroupProps:f,getTagProps:p,getTagRemoveProps:v,items:u}};xv.stateChangeTypes=lk;var Wr=V(he(),1),bv=V(qo(),1);var N1=V(ue(),1),bk=260,v9=4,Lk=(0,N1.jsx)(im,{width:9,height:9}),wk=(0,N1.jsx)(um,{width:9,height:9}),yk={ariaReset:"Reset {0} to default"};function Ik(e){let t=e.getBoundingClientRect(),o=$r(e),a=o?o.getBoundingClientRect():{top:0,bottom:window.innerHeight},r=a.bottom-t.bottom-v9,l=t.top-a.top-v9,n=r<bk&&l>r;return{top:n?t.top-v9:t.bottom+v9,left:t.left,width:t.width,openAbove:n}}function yn({label:e,options:t,selectedItem:o,onChange:a,id:r="picklist",getOptionStyle:l,triggerLabel:n,triggerMuted:i=!1,triggerStyle:u,aria:s}){let[d,g]=Wr.default.useState({top:0,left:0,width:0,openAbove:!1}),f=Wr.default.useRef(null),p=`${r}-legend`,v=D1(yk,s),b=vt(v.ariaReset,[e]),x=Wr.default.useMemo(()=>t.filter(K=>K.value!==""),[t]),m=o!=null,c=()=>{f.current?.focus(),a("")},{isOpen:h,closeMenu:C,highlightedIndex:w,getToggleButtonProps:S,getMenuProps:H,getItemProps:y}=C9({items:x,itemToString:K=>K?K.label:"",selectedItem:o,onSelectedItemChange:({selectedItem:K})=>{typeof a=="function"&&K&&K.value!==o?.value&&a(K.value)},onIsOpenChange:({isOpen:K})=>{K&&f.current&&g(Ik(f.current))},id:r,labelId:p});Wr.default.useEffect(()=>{if(!h||!f.current)return;let K=$r(f.current);if(!K)return;let B=()=>C();return K.addEventListener("scroll",B,{passive:!0}),()=>K.removeEventListener("scroll",B)},[h,C]);let k="picklistEditor-dropdown"+(h?" picklistEditor-dropdown--open":""),O=h?{top:d.top,left:d.left,width:d.width,...d.openAbove?{transform:"translateY(-100%)"}:void 0}:void 0,[F,ae]=Wr.default.useState(null);return Wr.default.useLayoutEffect(()=>{let B=f.current?.getRootNode();ae(B instanceof ShadowRoot?B:document.body)},[]),(0,N1.jsx)(W1,{label:e,id:r,className:"picklistEditor-fieldset",children:(0,N1.jsxs)("div",{className:"picklistEditor-wrapper",children:[(0,N1.jsxs)("button",{type:"button",className:"picklistEditor-trigger",style:u,...S({ref:f}),children:[(0,N1.jsx)("span",{className:"picklistEditor-trigger-label"+(i?" picklistEditor-trigger-label--muted":""),children:n??o?.label??"Default"}),(0,N1.jsx)("span",{className:"picklistEditor-trigger-chevron","aria-hidden":"true",children:h?wk:Lk})]}),m&&(0,N1.jsx)("button",{type:"button",className:"picklistEditor-reset",onClick:c,"aria-label":b,title:b,children:(0,N1.jsx)(tm,{width:14,height:14})}),(0,bv.createPortal)((0,N1.jsx)("ul",{className:k,style:O,...H(),children:h&&x.map((K,B)=>(0,N1.jsx)("li",{className:"picklistEditor-option"+(w===B?" picklistEditor-option--highlighted":"")+(o?.value===K.value?" picklistEditor-option--selected":""),style:l?l(K):void 0,...y({item:K,index:B}),children:K.label},K.value))}),F??document.body)]})})}var yv=V(ue(),1),Sk=[{value:"Arial, sans-serif",label:"Arial"},{value:"Helvetica, sans-serif",label:"Helvetica"},{value:"Verdana, sans-serif",label:"Verdana"},{value:"Tahoma, sans-serif",label:"Tahoma"},{value:"'Trebuchet MS', sans-serif",label:"Trebuchet MS"},{value:"'Lucida Sans Unicode', sans-serif",label:"Lucida Sans"},{value:"Georgia, serif",label:"Georgia"},{value:"'Times New Roman', serif",label:"Times New Roman"},{value:"'Palatino Linotype', serif",label:"Palatino"},{value:"'Courier New', monospace",label:"Courier New"},{value:"'Lucida Console', monospace",label:"Lucida Console"}];function Lv(e){return(e.split(",")[0]??"").trim().replace(/['"]/g,"")}function Mk(e,t){if(!e)return null;let o=e.replace(/['"]/g,""),a=Lv(e);for(let r of t){if(!r.value)continue;let l=r.value.replace(/['"]/g,"");if(o.indexOf(l)!==-1||l.indexOf(a)!==-1)return r}return null}var Rk=e=>e.value?{fontFamily:e.value}:void 0;function wv({label:e="Font family",value:t,computedValue:o,options:a,onChange:r,matchOption:l=Mk,id:n="font-family",aria:i}){let u=a??Sk,s=l(t,u),d=t||o,g=l(d,u),f=!s,p;return g?p=g.label:d&&(p=Lv(d)||void 0),(0,yv.jsx)(yn,{label:e,options:u,selectedItem:s,triggerLabel:p,triggerMuted:f,triggerStyle:d?{fontFamily:d}:void 0,onChange:r,id:n,getOptionStyle:Rk,aria:i})}var x9=V(ue(),1),Hk=[{value:"normal",labelKey:"normal",defaultLabel:"Normal",icon:(0,x9.jsx)(jp,{width:14,height:14})},{value:"italic",labelKey:"italic",defaultLabel:"Italic",icon:(0,x9.jsx)($p,{width:14,height:14})}];function Iv({label:e="Font Style",value:t,onChange:o,id:a="font-style",optionLabels:r}){let l=Hk.map(n=>({value:n.value,label:r?.[n.labelKey]??n.defaultLabel,icon:n.icon}));return(0,x9.jsx)(Do,{label:e,options:l,value:t||"normal",onChange:o,id:a})}var Mv=V(ue(),1),kk=[{value:"100",labelKey:"thin",defaultWord:"Thin"},{value:"200",labelKey:"extraLight",defaultWord:"Extra Light"},{value:"300",labelKey:"light",defaultWord:"Light"},{value:"400",labelKey:"regular",defaultWord:"Regular"},{value:"500",labelKey:"medium",defaultWord:"Medium"},{value:"600",labelKey:"semiBold",defaultWord:"Semi Bold"},{value:"700",labelKey:"bold",defaultWord:"Bold"},{value:"800",labelKey:"extraBold",defaultWord:"Extra Bold"},{value:"900",labelKey:"black",defaultWord:"Black"}];function Tk(e){return kk.map(t=>{let o=e?.[t.labelKey]??t.defaultWord;return{value:t.value,label:`${o} (${t.value})`}})}function Ek(e,t){if(!e)return null;let o=String(e).trim();return t.find(a=>a.value===o)??null}function Sv({label:e="Font weight",value:t,computedValue:o,options:a,onChange:r,matchOption:l=Ek,id:n="font-weight",optionLabels:i,aria:u}){let s=a??Tk(i),d=l(t,s),g=l(t||o,s),f=!d,p=g?.label;return(0,Mv.jsx)(yn,{label:e,options:s,selectedItem:d,triggerLabel:p,triggerMuted:f,onChange:r,id:n,aria:u})}var pe=V(he(),1),Rv=V(qo(),1);var Y=V(ue(),1),_k={tabCms:"CMS",tabLocal:"Local",tabUrl:"URL",ariaTablist:"Image source",clearImage:"Clear image",chooseFile:"Choose File...",ariaChooseFile:"Choose an image file from your computer",useThisImage:"Use This Image",ariaImageUrl:"Image URL",urlPlaceholder:"https://example.com/image.png",previewAlt:"Preview",altText:"Alt Text",altPlaceholder:"Describe the image",width:"Width",height:"Height",autoPlaceholder:"auto",workspace:"Workspace",selectWorkspace:"Select a workspace...",selectImage:"Select an Image",loadingWorkspaces:"Loading workspaces...",noWorkspaces:"No CMS workspaces found",loadingImages:"Loading images...",noImages:"No images in this workspace",loadingMore:"Loading more...",untitled:"Untitled",downloadingImage:"Downloading image...",downloadFailed:"Download failed",closePicker:"Close",cancel:"Cancel",done:"Done",pickerTitle:"Select an image from {0}",pickerError:"Error: {0}"},In=["cms","local","url"];function Ok({labels:e,workspaceName:t,folderId:o,portalTarget:a,folderItemsResult:r,contentDetail:l,thumbnailResult:n,onFetchFolderItems:i,onFetchContentDetail:u,onFetchThumbnail:s,onCancel:d,onConfirm:g}){let[f,p]=pe.default.useState([]),[v,b]=pe.default.useState(0),[x,m]=pe.default.useState(!0),[c,h]=pe.default.useState(!1),[C,w]=pe.default.useState(null),[S,H]=pe.default.useState(null),[y,k]=pe.default.useState({}),[O,F]=pe.default.useState({}),ae=pe.default.useRef(new Set),K=pe.default.useRef(new Set),B=pe.default.useCallback(L=>{c||typeof i=="function"&&(h(!0),w(null),i(o,L,20))},[o,c,i]);pe.default.useEffect(()=>{B(0)},[o]),pe.default.useEffect(()=>{let L=T=>{T.key==="Escape"&&(T.stopPropagation(),d())};return document.addEventListener("keydown",L),()=>document.removeEventListener("keydown",L)},[d]);let Q=pe.default.useRef(null);pe.default.useEffect(()=>{Q.current?.focus()},[]),pe.default.useEffect(()=>{if(!r)return;let L=(r.items??[]).map(T=>({contentKey:T.contentKey,title:T.title??e.untitled,mimeType:T.mimeType??"image/png"}));p(T=>r.page===0?L:[...T,...L]),m(!!r.hasMore),b(r.page??0),h(!1),r.error&&w(String(r.error))},[r]),pe.default.useEffect(()=>{if(!l)return;let L=l.contentKey;if(!L||l.error)return;let T=l.url??"",Z=l.mimeType??"image/png",z=l.title??"";k(W=>W[L]?W:{...W,[L]:{url:T,mimeType:Z,title:z}}),T&&!K.current.has(L)&&typeof s=="function"&&(K.current.add(L),s(L,T,Z))},[l,s]),pe.default.useEffect(()=>{if(!n)return;let{imageId:L,thumbnailUrl:T}=n;L&&T&&F(Z=>({...Z,[L]:T}))},[n]);let M=pe.default.useRef(null);pe.default.useEffect(()=>{let L=M.current;if(!L||!x||c)return;let T=new IntersectionObserver(Z=>{Z.some(W=>W.isIntersecting)&&B(v+1)});return T.observe(L),()=>T.disconnect()},[x,c,v,B]);let I=pe.default.useCallback(L=>{ae.current.has(L)||typeof u=="function"&&(ae.current.add(L),u(L))},[u]),R=()=>{if(!S)return;let L=y[S],T=f.find(Z=>Z.contentKey===S);!L||!T||g({contentKey:S,title:T.title,url:L.url,mimeType:L.mimeType||T.mimeType})};return(0,Rv.createPortal)((0,Y.jsx)("div",{ref:Q,tabIndex:-1,className:"cmsPicker-overlay",role:"dialog","aria-modal":"true","aria-label":vt(e.pickerTitle,[t]),onClick:L=>{L.target===L.currentTarget&&d()},children:(0,Y.jsxs)("div",{className:"cmsPicker-dialog",children:[(0,Y.jsxs)("div",{className:"cmsPicker-header",children:[(0,Y.jsx)("span",{className:"cmsPicker-title",children:vt(e.pickerTitle,[t])}),(0,Y.jsx)("button",{type:"button",className:"cmsPicker-close",onClick:d,"aria-label":e.closePicker,title:e.closePicker,children:"\u2715"})]}),(0,Y.jsxs)("div",{className:"cmsPicker-body",children:[f.length===0&&c&&(0,Y.jsx)("div",{className:"cmsPicker-empty",children:e.loadingImages}),f.length===0&&!c&&!C&&(0,Y.jsx)("div",{className:"cmsPicker-empty",children:e.noImages}),C&&(0,Y.jsx)("div",{className:"cmsPicker-empty",children:vt(e.pickerError,[C])}),(0,Y.jsxs)("div",{className:"cmsPicker-grid",children:[f.map(L=>(0,Y.jsx)(Dk,{item:L,selected:S===L.contentKey,thumbnailDataUrl:O[L.contentKey],onIntersect:()=>I(L.contentKey),onClick:()=>H(L.contentKey)},L.contentKey)),x&&(0,Y.jsx)("div",{className:"cmsPicker-sentinel",ref:M,children:c?e.loadingMore:""})]})]}),(0,Y.jsxs)("div",{className:"cmsPicker-footer",children:[(0,Y.jsx)("button",{type:"button",className:"cmsPicker-btn",onClick:d,children:e.cancel}),(0,Y.jsx)("button",{type:"button",className:"cmsPicker-btn cmsPicker-btn--primary",disabled:!S||!y[S??""],onClick:R,children:e.done})]})]})}),a)}function Dk({item:e,selected:t,thumbnailDataUrl:o,onIntersect:a,onClick:r}){let l=pe.default.useRef(null),n=pe.default.useRef(!1);return pe.default.useEffect(()=>{let i=l.current;if(!i||n.current)return;let u=new IntersectionObserver(s=>{s.some(g=>g.isIntersecting)&&!n.current&&(n.current=!0,a(),u.disconnect())});return u.observe(i),()=>u.disconnect()},[a]),(0,Y.jsxs)("button",{ref:l,type:"button",className:`cmsPicker-thumb${t?" cmsPicker-thumb--selected":""}`,onClick:r,title:e.title,"aria-pressed":t,children:[(0,Y.jsx)("div",{className:"cmsPicker-thumb-img",children:o?(0,Y.jsx)("img",{src:o,alt:e.title}):(0,Y.jsx)("div",{className:"cmsPicker-thumb-placeholder","aria-hidden":"true",children:"\u2026"})}),(0,Y.jsx)("span",{className:"cmsPicker-thumb-label",children:e.title})]})}function Vk({labels:e,spaces:t,spacesLoading:o,selectedSpaceId:a,onSpaceSelect:r,onOpenPicker:l}){return o?(0,Y.jsx)("div",{className:"imageEditor-cms",children:(0,Y.jsx)("div",{className:"imageEditor-cms-loading",children:e.loadingWorkspaces})}):t.length===0?(0,Y.jsx)("div",{className:"imageEditor-cms",children:(0,Y.jsx)("div",{className:"imageEditor-cms-empty",children:e.noWorkspaces})}):(0,Y.jsxs)("div",{className:"imageEditor-cms",children:[(0,Y.jsxs)("div",{className:"imageEditor-cms-channel",children:[(0,Y.jsx)("label",{className:"imageEditor-cms-channel-label",htmlFor:"cms-space-select",children:e.workspace}),(0,Y.jsxs)("select",{id:"cms-space-select",className:"imageEditor-input imageEditor-cms-channel-select",value:a,onChange:n=>r(n.target.value),children:[(0,Y.jsx)("option",{value:"",children:e.selectWorkspace}),t.map(n=>(0,Y.jsx)("option",{value:n.id,children:n.name},n.id))]})]}),(0,Y.jsx)("button",{type:"button",className:"imageEditor-cms-pick-btn",onClick:l,disabled:!a,children:e.selectImage})]})}function Ak({labels:e,preview:t,onPick:o,onApply:a}){return(0,Y.jsxs)("div",{className:"imageEditor-local",children:[(0,Y.jsx)("button",{className:"imageEditor-local-pick",onClick:o,type:"button","aria-label":e.ariaChooseFile,"aria-haspopup":"dialog",children:e.chooseFile}),t&&(0,Y.jsxs)("div",{className:"imageEditor-local-preview",children:[(0,Y.jsx)("img",{src:t.webviewUri,alt:t.fileName,className:"imageEditor-preview-thumb"}),(0,Y.jsx)("span",{className:"imageEditor-local-filename",children:t.fileName}),(0,Y.jsx)("button",{className:"imageEditor-local-apply",onClick:()=>a(t.devUrl||t.webviewUri),type:"button",children:e.useThisImage})]})]})}function Hv({src:e,alt:t,className:o}){let[a,r]=pe.default.useState(!1);return pe.default.useEffect(()=>{r(!1)},[e]),a?null:(0,Y.jsx)("img",{src:e,alt:t,className:o,onError:()=>r(!0)})}function Bk({labels:e,input:t,onInputChange:o,onApply:a,currentUrl:r}){return(0,Y.jsxs)("div",{className:"imageEditor-url",children:[(0,Y.jsx)("input",{type:"text",value:t,"aria-label":e.ariaImageUrl,placeholder:e.urlPlaceholder,className:"imageEditor-input",onChange:l=>o(l.target.value),onKeyDown:l=>{l.key==="Enter"&&t&&a(t)},onBlur:()=>{t&&t!==r&&a(t)}}),t&&(0,Y.jsx)("div",{className:"imageEditor-url-preview",children:(0,Y.jsx)(Hv,{src:t,alt:e.previewAlt,className:"imageEditor-preview-thumb"})})]})}function pf({id:e,label:t,value:o,type:a,inputMode:r,placeholder:l,onCommit:n}){let[i,u]=pe.default.useState(o),s=pe.default.useRef(n);s.current=n;let d=pe.default.useRef(o);pe.default.useEffect(()=>{o!==d.current&&(d.current=o,u(o))},[o]);let g=()=>{i!==o&&(d.current=i,s.current(i))};return(0,Y.jsxs)("div",{className:"imageEditor-attr",children:[(0,Y.jsx)("label",{className:"imageEditor-attr-label",htmlFor:e,children:t}),(0,Y.jsx)("input",{id:e,type:a,inputMode:r,value:i,placeholder:l,className:"imageEditor-input",onChange:f=>u(f.target.value),onKeyDown:f=>{f.key==="Enter"&&g()},onBlur:g})]})}function Nk({labels:e,attributes:t,onAttributeChange:o}){return(0,Y.jsxs)("div",{className:"imageEditor-attrs",children:[(0,Y.jsx)(pf,{id:"design-img-alt",label:e.altText,type:"text",value:t.alt,placeholder:e.altPlaceholder,onCommit:a=>o("alt",a)}),(0,Y.jsxs)("div",{className:"imageEditor-attrs-row",children:[(0,Y.jsx)(pf,{id:"design-img-width",label:e.width,type:"number",inputMode:"numeric",value:t.width,placeholder:e.autoPlaceholder,onCommit:a=>o("width",a)}),(0,Y.jsx)(pf,{id:"design-img-height",label:e.height,type:"number",inputMode:"numeric",value:t.height,placeholder:e.autoPlaceholder,onCommit:a=>o("height",a)})]})]})}function kv({label:e,value:t,onChange:o,id:a="image",attributes:r,onAttributeChange:l,cmsSpaces:n,cmsSpacesLoading:i,onFetchCmsSpaces:u,cmsFolderItemsResult:s,onFetchCmsFolderItems:d,cmsContentDetail:g,onFetchCmsContentDetail:f,cmsThumbnailResult:p,onFetchCmsThumbnail:v,onImportCmsImage:b,cmsImportResult:x,onPickLocalFile:m,localPreview:c,imageLabels:h}){let C=D1(_k,h),w={cms:C.tabCms,local:C.tabLocal,url:C.tabUrl},[S,H]=pe.default.useState("cms"),[y,k]=pe.default.useState(""),[O,F]=pe.default.useState(!1),[ae,K]=pe.default.useState(""),[B,Q]=pe.default.useState("idle"),M=pe.default.useRef(null),I=pe.default.useRef(null),R=pe.default.useCallback(()=>{let D=I.current?.getRootNode();return D instanceof ShadowRoot?D:document.body},[]),L=pe.default.useRef({}),T=pe.default.useCallback(D=>{H(D),L.current[D]?.focus()},[]),Z=pe.default.useCallback((D,ne)=>{let ce=null;switch(D.key){case"ArrowRight":ce=(ne+1)%In.length;break;case"ArrowLeft":ce=(ne-1+In.length)%In.length;break;case"Home":ce=0;break;case"End":ce=In.length-1;break;default:return}D.preventDefault();let ve=In[ce];ve&&T(ve)},[T]),z=n??[],W=i??!1,U=t||"";pe.default.useEffect(()=>{if(x)if(x.success&&x.devUrl)o(x.devUrl),Q("success");else{let D=M.current?.url;D?(o(D),Q("success")):Q("error")}},[x,o]),pe.default.useEffect(()=>{S==="cms"&&z.length===0&&!W&&typeof u=="function"&&u()},[S]);let j=pe.default.useMemo(()=>z.find(D=>D.id===y)??null,[z,y]),q=pe.default.useCallback(D=>{let ne={id:D.contentKey,title:D.title,url:D.url,thumbnailUrl:"",contentType:D.mimeType};M.current=ne,F(!1),typeof b=="function"&&ne.url?(Q("importing"),b(ne)):ne.url&&o(ne.url)},[o,b]);return(0,Y.jsx)(W1,{label:e,id:a,className:"imageEditor-fieldset",children:(0,Y.jsxs)("div",{ref:I,className:"imageEditor-root",children:[U&&(0,Y.jsxs)("div",{className:"imageEditor-current",children:[(0,Y.jsx)(Hv,{src:U,alt:"",className:"imageEditor-current-thumb"}),(0,Y.jsx)("span",{className:"imageEditor-current-url",title:U,children:U.length>30?`...${U.slice(-30)}`:U}),(0,Y.jsx)("button",{className:"imageEditor-clear",onClick:()=>o(""),title:C.clearImage,"aria-label":C.clearImage,type:"button",children:"\u2715"})]}),(0,Y.jsx)("div",{className:"imageEditor-tabs",role:"tablist","aria-label":C.ariaTablist,children:In.map((D,ne)=>(0,Y.jsx)("button",{id:`${a}-tab-${D}`,ref:ce=>{L.current[D]=ce},role:"tab",type:"button","aria-selected":S===D,"aria-controls":`${a}-tabpanel`,tabIndex:S===D?0:-1,className:`imageEditor-tab${S===D?" imageEditor-tab--active":""}`,onClick:()=>H(D),onKeyDown:ce=>Z(ce,ne),children:w[D]},D))}),(0,Y.jsxs)("div",{className:"imageEditor-tab-content",role:"tabpanel",id:`${a}-tabpanel`,"aria-labelledby":`${a}-tab-${S}`,children:[S==="cms"&&(0,Y.jsx)(Vk,{labels:C,spaces:z,spacesLoading:W,selectedSpaceId:y,onSpaceSelect:k,onOpenPicker:()=>F(!0)}),S==="cms"&&B==="importing"&&(0,Y.jsx)("div",{className:"imageEditor-cms-loading",children:C.downloadingImage}),S==="cms"&&B==="error"&&(0,Y.jsx)("div",{className:"imageEditor-cms-empty",children:C.downloadFailed}),S==="local"&&(0,Y.jsx)(Ak,{labels:C,preview:c,onPick:()=>m?.(),onApply:D=>o(D)}),S==="url"&&(0,Y.jsx)(Bk,{labels:C,input:ae,onInputChange:K,onApply:o,currentUrl:U})]}),r&&l&&(0,Y.jsx)(Nk,{labels:C,attributes:r,onAttributeChange:l}),O&&j&&(0,Y.jsx)(Ok,{labels:C,workspaceName:j.name,folderId:j.rootFolderId,portalTarget:R(),folderItemsResult:s,contentDetail:g,thumbnailResult:p,onFetchFolderItems:d,onFetchContentDetail:f,onFetchThumbnail:v,onCancel:()=>F(!1),onConfirm:q})]})})}var _v=V(ue(),1),Pk=[{value:"visible",labelKey:"visible",defaultLabel:"Visible"},{value:"hidden",labelKey:"hidden",defaultLabel:"Hidden"},{value:"scroll",labelKey:"scroll",defaultLabel:"Scroll"},{value:"auto",labelKey:"auto",defaultLabel:"Auto"}];function Zk(e){return Pk.map(t=>({value:t.value,label:e?.[t.labelKey]??t.defaultLabel}))}function Tv(e,t){if(!e)return null;let o=String(e).trim().toLowerCase();return t.find(a=>a.value===o)??null}function Ev({label:e="Content Overflow",value:t,computedValue:o,onChange:a,id:r="overflow",optionLabels:l,aria:n}){let i=Zk(l),u=Tv(t,i),s=Tv(t||o,i),d=!u,g=s?.label;return(0,_v.jsx)(yn,{label:e,options:i,selectedItem:u,triggerLabel:g,triggerMuted:d,onChange:a,id:r,aria:n})}var Sn=V(ue(),1),zk=[{value:"left",labelKey:"left",defaultLabel:"Left",icon:(0,Sn.jsx)(lm,{width:14,height:14})},{value:"center",labelKey:"center",defaultLabel:"Center",icon:(0,Sn.jsx)(am,{width:14,height:14})},{value:"right",labelKey:"right",defaultLabel:"Right",icon:(0,Sn.jsx)(nm,{width:14,height:14})},{value:"justify",labelKey:"justify",defaultLabel:"Justify",icon:(0,Sn.jsx)(rm,{width:14,height:14})}],Uk={start:"left",end:"right"};function Ov({label:e="Text Align",value:t,onChange:o,id:a="text-align",optionLabels:r}){let l=Uk[t||""]||t||"left",n=zk.map(i=>({value:i.value,label:r?.[i.labelKey]??i.defaultLabel,icon:i.icon}));return(0,Sn.jsx)(Do,{label:e,options:n,value:l,onChange:o,id:a})}var su=V(ue(),1),Dv=[{value:"none",labelKey:"none",defaultLabel:"None",icon:(0,su.jsx)($a,{width:14,height:14})},{value:"underline",labelKey:"underline",defaultLabel:"Underline",icon:(0,su.jsx)(sm,{width:14,height:14})},{value:"line-through",labelKey:"lineThrough",defaultLabel:"Line Through",icon:(0,su.jsx)(om,{width:14,height:14})}];function Fk(e){if(!e)return"none";for(let t of Dv)if(e===t.value||e.startsWith(t.value+" "))return t.value;return"none"}function Vv({label:e="Text Decoration",value:t,onChange:o,id:a="text-decoration",optionLabels:r}){let l=Dv.map(n=>({value:n.value,label:r?.[n.labelKey]??n.defaultLabel,icon:n.icon}));return(0,su.jsx)(Do,{label:e,options:l,value:Fk(t),onChange:o,id:a})}var Mn=V(ue(),1),qk=[{value:"none",labelKey:"none",defaultLabel:"None",icon:(0,Mn.jsx)($a,{width:14,height:14})},{value:"uppercase",labelKey:"uppercase",defaultLabel:"Uppercase",icon:(0,Mn.jsx)(Wp,{width:14,height:14})},{value:"lowercase",labelKey:"lowercase",defaultLabel:"Lowercase",icon:(0,Mn.jsx)(Yp,{width:14,height:14})},{value:"capitalize",labelKey:"capitalize",defaultLabel:"Capitalize",icon:(0,Mn.jsx)(Qp,{width:14,height:14})}];function Av({label:e="Text Case",value:t,onChange:o,id:a="text-transform",optionLabels:r}){let l=qk.map(n=>({value:n.value,label:r?.[n.labelKey]??n.defaultLabel,icon:n.icon}));return(0,Mn.jsx)(Do,{label:e,options:l,value:t||"none",onChange:o,id:a})}var Bv="textContent";var $k=e=>e!=null&&typeof e=="object"&&"property"in e,jk=e=>typeof e?.sourceFile=="string"&&e.sourceFile!==""&&e.lineNumber!=null&&e.columnNumber!=null?{sourceFile:e.sourceFile,lineNumber:e.lineNumber,columnNumber:e.columnNumber}:void 0;function Nv(e){let t=[],o=new Map,a=l=>{let n=jk(l);if(!n)return;let{sourceFile:i,lineNumber:u,columnNumber:s}=n,d=`${i}\0${u}:${s}`,g=o.get(d);return g||(g={byProperty:new Map,baselineByProperty:new Map,debugSource:n},o.set(d,g),t.push(g)),g},r=(l,n,i)=>{l.baselineByProperty.has(n)||l.baselineByProperty.set(n,String(i??""))};for(let l of e){let n=l.data;if(l.type==="style"&&n?.property!=null){let i=a(n);if(i){let u=String(n.property);r(i,u,l.oldValue),i.byProperty.set(u,String(l.newValue??""))}}else if(l.type==="style-batch"&&Array.isArray(n?.changes)){let i=a(n);for(let u of n.changes)if(i&&$k(u)&&u.property!=null){let s=String(u.property);r(i,s,u.oldValue),i.byProperty.set(s,String(u.newValue??""))}}else l.type==="text"&&a(n)?.byProperty.set(Bv,String(l.newValue??""))}return t.map(l=>{let n=[...l.byProperty].map(([i,u])=>({property:i,value:u})).filter(i=>i.property===Bv||i.value!==""||l.baselineByProperty.get(i.property)!=="");return{debugSource:l.debugSource,commands:n}}).filter(l=>l.commands.length>0)}var cr={CHANGED:"history-changed",COMMAND_PUSHED:"command-pushed",COMMAND_UNDONE:"command-undone",COMMAND_REDONE:"command-redone",CLEARED:"history-cleared"},b9=class{constructor(t={}){mr(this,"undoStack",[]);mr(this,"redoStack",[]);mr(this,"maxHistorySize");mr(this,"listeners",new Set);mr(this,"_isProcessing",!1);mr(this,"commandExecutor");if(this.maxHistorySize=t.maxHistorySize??200,!t.commandExecutor)throw new Error("CommandExecutor is required");this.commandExecutor=t.commandExecutor}createCommand(t,o,a,r){return Object.freeze({id:this._generateCommandId(),type:t,oldValue:o,newValue:a,data:r})}_generateCommandId(){return`cmd-${Date.now()}-${Math.random().toString(36).substr(2,9)}`}subscribe(t){if(typeof t!="function")throw new Error("Listener must be a function");return this.listeners.add(t),()=>{this.listeners.delete(t)}}_notify(t,o={}){if(this.listeners.size===0)return;let a=Object.freeze({type:t,timestamp:Date.now(),canUndo:this.canUndo(),canRedo:this.canRedo(),undoCount:this.getUndoCount(),redoCount:this.getRedoCount(),...o}),r=Array.from(this.listeners);for(let l of r)try{l(a)}catch(n){console.error("[HistoryManager] Error in listener:",n)}}pushCommand(t){if(!t||typeof t!="object")throw new Error("Invalid command: must be an object");if(!t.type)throw new Error("Invalid command: missing required fields (type)");if(this._isProcessing){console.warn("[HistoryManager] pushCommand called during processing, ignoring");return}this.undoStack.length>=this.maxHistorySize||(this.undoStack.push(t),this.redoStack=[],this._notify(cr.COMMAND_PUSHED,{command:t}),this._notify(cr.CHANGED))}_trimStack(){if(this.undoStack.length>this.maxHistorySize){let t=this.undoStack.length-this.maxHistorySize;this.undoStack.splice(0,t)}}_applyCommand(t,o){if(!this.commandExecutor.canHandle(t.type))return console.warn("[HistoryManager] No executor for command type:",t.type),!1;try{return this.commandExecutor.execute(t,o)}catch(a){return console.error("[HistoryManager] Error applying command:",a,t),!1}}_createInverseCommand(t,o){let a=this.commandExecutor.getCurrentValue(t);return Object.freeze({id:this._generateCommandId(),type:t.type,oldValue:o?t.oldValue:a,newValue:o?a:t.newValue,data:t.data})}undo(){if(this._isProcessing)return console.warn("[HistoryManager] undo called during processing, ignoring"),!1;if(!this.canUndo())return!1;this._isProcessing=!0;try{let t=this.undoStack.pop(),o=this._applyCommand(t,!0);if(o){let a=this._createInverseCommand(t,!1);this.redoStack.push(a)}else this.undoStack.push(t),console.warn("[HistoryManager] Undo failed, command restored to stack");return this._notify(cr.COMMAND_UNDONE,{command:t,appliedValue:t.oldValue}),this._notify(cr.CHANGED),o}finally{this._isProcessing=!1}}redo(){if(this._isProcessing)return console.warn("[HistoryManager] redo called during processing, ignoring"),!1;if(!this.canRedo())return!1;this._isProcessing=!0;try{let t=this.redoStack.pop();if(!t)return console.warn("[HistoryManager] No command to redo"),!1;let o=this._applyCommand(t,!1);if(o){let a=this._createInverseCommand(t,!0);this.undoStack.push(a),this._trimStack()}else this.redoStack.push(t),console.warn("[HistoryManager] Redo failed, command restored to stack");return this._notify(cr.COMMAND_REDONE,{command:t,appliedValue:t.newValue}),this._notify(cr.CHANGED),o}finally{this._isProcessing=!1}}canUndo(){return this.undoStack.length>0}canRedo(){return this.redoStack.length>0}clear(){this.undoStack=[],this.redoStack=[],this._notify(cr.CLEARED),this._notify(cr.CHANGED)}getUndoCount(){return this.undoStack.length}getMaxHistorySize(){return this.maxHistorySize}getRedoCount(){return this.redoStack.length}getUndoStackSnapshot(){return this.undoStack.map(t=>({type:t.type,oldValue:t.oldValue,newValue:t.newValue,data:t.data}))}};var Gk=(e,t)=>{let o=t?e.oldValue:e.newValue;return typeof o=="string"?o:String(o??"")},L9=e=>{if(!e||typeof e!="object")return;let t=e;if(!(typeof t.sourceFile!="string"||typeof t.lineNumber!="number"||typeof t.columnNumber!="number"))return{sourceFile:t.sourceFile,lineNumber:t.lineNumber,columnNumber:t.columnNumber}},Kk=e=>typeof e=="object"&&e!==null&&"property"in e&&typeof e.property=="string",Xk=e=>typeof e=="object"&&e!==null&&Array.isArray(e.changes)&&e.changes.every(t=>t!=null&&typeof t.property=="string"),Qk=e=>typeof e=="object"&&e!==null&&"tag"in e&&typeof e.tag=="string"&&"attribute"in e&&typeof e.attribute=="string",Pv=(e,t,o)=>{let a=new Map;return{execute:(r,l)=>{let n=Gk(r,l);a.set(r.id,n);try{if(r.type==="style"&&Kk(r.data)){let i=L9(r.data);return e(r.data.property,n,i),!0}else if(r.type==="style-batch"&&Xk(r.data)){let i=L9(r.data);for(let u of r.data.changes)e(u.property,l?u.oldValue:u.newValue,i);return!0}else if(r.type==="text"){let i=L9(r.data);return t(n,i),!0}else if(r.type==="media"&&Qk(r.data)){if(!o)return!1;let i=L9(r.data);return o(r.data.tag,{[r.data.attribute]:n},i),!0}}catch{return!1}return!1},getCurrentValue:r=>a.get(r.id)??r.newValue,canHandle:r=>r==="style"||r==="style-batch"||r==="text"||r==="media"&&typeof o=="function"}};function Zv(e,t,o){let a=Pv(e,t,o),r=new b9({commandExecutor:a});return{recordStyleChange(l,n,i,u){let s=r.createCommand("style",n,i,{...u,property:l});r.pushCommand(s)},recordStyleBatch(l,n){if(l.length===0)return;let i=l[0],u=r.createCommand("style-batch",i.oldValue,i.newValue,{...n,changes:l});r.pushCommand(u)},recordTextChange(l,n,i){let u=r.createCommand("text",l,n,{...i});r.pushCommand(u)},recordMediaChange(l,n,i,u,s){let d=r.createCommand("media",i,u,{...s,tag:l,attribute:n});r.pushCommand(d)},undo:()=>r.undo(),redo:()=>r.redo(),canUndo:()=>r.canUndo(),canRedo:()=>r.canRedo(),subscribe:l=>r.subscribe(l),getHistoryStack:()=>r.getUndoStackSnapshot(),clear:()=>r.clear(),getUndoCount:()=>r.getUndoCount(),getMaxHistorySize:()=>r.getMaxHistorySize()}}var G=V(ue(),1),Wk="Edit this element's text on the canvas.",Jk="You can't edit this element's text because it contains dynamic content.",eT={opacity:.4},tT=new Set(mm),oT=!1,aT={general:{headerTitle:"Selected Element",emptyPlaceholder:"To edit an element, select it on the canvas.",inlineEditEditable:Wk,inlineEditNonEditable:Jk,addToChatContext:"Add to chat as context",ariaPropertyPanel:"Property panel",ariaSelectedComponent:"Property panel for the selected element",ariaElementStyling:"Element properties",closePanel:"Close panel"},sections:{imageSource:"Image Source",background:"Background",spacing:"Layout",border:"Border",typography:"Text",elementDimensions:"Dimensions"},instances:{imageSource:"Source",backgroundColor:"Background Color",padding:"Padding",margin:"Margin",borderRadius:"Border Radius",borderWeight:"Border Weight",borderStyle:"Border Style",borderColor:"Border Color",fontFamily:"Font Family",fontSize:"Font Size",fontWeight:"Font Weight",fontStyle:"Font Style",textColor:"Text Color",textAlignment:"Text Alignment",textFormatting:"Text Formatting",textTransform:"Text Case",lineHeight:"Line Height",letterSpacing:"Letter Spacing",width:"Width",minWidth:"Minimum Width",maxWidth:"Maximum Width",height:"Height",minHeight:"Minimum Height",maxHeight:"Maximum Height",overflow:"Content Overflow"},history:{changeLimitTitle:"You're at the edit limit",changeLimitBody:"To continue editing, save your changes."}};function rT({size:e=16}){return(0,G.jsx)("svg",{width:e,height:e,viewBox:"-1 0 252 302",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:(0,G.jsx)("path",{d:"M57 49Q67 49 74 42Q81 35 81 25Q81 15 74 8Q67 1 57 1Q47 1 40 8Q33 15 33 25Q33 35 40 42Q47 49 57 49ZM193 49Q203 49 210 42Q217 35 217 25Q217 15 210 8Q203 1 193 1Q183 1 176 8Q169 15 169 25Q169 35 176 42Q183 49 193 49ZM125 301Q100 301 71 292Q47 285 26 274Q7 265 3.5 259.5Q0 254 1 249Q13 216 20 189Q24 171 26 157V147Q28 120 30 105Q34 78 40 65Q48 48 63 39Q85 27 125 27Q165 27 186 39Q201 47 209 65Q216 78 220 105Q222 120 224 147V157Q226 171 230 189Q237 216 248 249Q250 254 246.5 259.5Q243 265 224 274Q203 285 179 292Q150 301 125 301ZM23 249Q39 259 63 268Q97 280 125 280Q153 280 187 268Q210 259 227 249Q216 219 210 194Q205 174 204 159L203 148Q199 91 191 73Q188 66 184 62Q177 56 165 52Q150 48 125 48Q90 48 73 57Q64 63 59 73Q51 91 47 148L46 158Q45 174 40 194Q34 220 23 249ZM124 248Q113 248 102 244Q84 236 76 217Q72 209 71 201Q70 193 70 179Q70 163 73 151Q76 142 81.5 134Q87 126 98 120Q109 114 125.5 114Q142 114 152 120Q164 127 169 134.5Q174 142 177 151Q180 163 180 178.5Q180 194 179 200Q178 209 174 218Q167 232 154.5 240Q142 248 126 248ZM124 228H126Q147 228 156 209Q158 203 159 197.5Q160 192 160 179Q160 166 157 157Q155 151 152 146.5Q149 142 141 138Q136 134 125 134Q114 134 107.5 138Q101 142 98 146.5Q95 151 93 157Q90 166 90 178.5Q90 191 91 197Q92 203 94 209Q99 221 111 225Q117 228 124 228ZM195 81Q192 79 190 78Q170 70 146 76Q134 80 125.5 80Q117 80 104 76Q80 70 60 78Q58 79 55 81Q50 84 51 89L55 112Q56 117 59.5 120.5Q63 124 68 125Q83 126 99 126Q111 126 115 114L122 92Q122 91 124 89L125 88L126 89Q128 91 128 92L135 114Q139 126 152 126Q167 126 182 125Q187 124 190.5 120.5Q194 117 195 112L199 89Q200 84 195 81ZM141 192Q137 190 133 193V171Q138 169 141 165Q143 163 144 161Q145 159 145 156.5Q145 154 143.5 152Q142 150 140 148.5Q138 147 134 146Q130 145 125.5 145Q121 145 116 146Q111 147 109 149Q107 151 106 153Q105 155 105 157Q105 159 106 161Q107 163 109.5 166Q112 169 116 171H117V193Q113 190 109 191.5Q105 193 104 196Q103 199 105 202Q108 210 117 213Q124 216 133 213L134 212Q143 209 146 202Q147 199 145.5 196Q144 193 141 192Z"})})}function lT({size:e=12}){return(0,G.jsx)("svg",{width:e,height:e,viewBox:"0 0 12 12","aria-hidden":"true",style:{display:"block",flexShrink:0},children:(0,G.jsx)("rect",{x:"1",y:"1",width:"10",height:"10",rx:"2",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeDasharray:"2.5 2"})})}function nT(e,t){let o=e[t];return o!=null?String(o):""}function mf(e){if(!(!e||!e.name||!e.debugSource))return{sourceFile:e.debugSource.sourceFile,lineNumber:e.debugSource.lineNumber,columnNumber:e.debugSource.columnNumber,componentName:e.name,tagName:e.tagName}}function iT({component:e,onOpenSourceFile:t,showOpenSourceFile:o,showComponentName:a,generalLabels:r}){if(!e||!e.name)return(0,G.jsx)("section",{id:"property-panel-selected-component",className:"property-panel-selected-component",children:(0,G.jsx)("p",{className:"property-panel-selected-component-placeholder",id:"component-info",children:r.emptyPlaceholder})});let l=e.tagName?e.tagName.toLowerCase():"",n=l?`${e.name} > ${l}`:e.name,i=null;if(o&&e.debugSource){let{sourceFile:u,lineNumber:s,columnNumber:d}=e.debugSource,g=u.split("/").pop()||u,f=`:${s}:${d}`;i=(0,G.jsxs)("a",{href:"#",className:"property-panel-selected-component-source",onClick:v=>{v.preventDefault(),t?.({sourceFile:u,lineNumber:s,columnNumber:d})},title:`${u}${f}`,children:[g,f]})}return!a&&!i?null:(0,G.jsx)("section",{id:"property-panel-selected-component",className:"property-panel-selected-component","aria-label":r.ariaSelectedComponent,children:(0,G.jsxs)("div",{id:"component-info",className:"property-panel-selected-component-info",children:[a&&(0,G.jsx)("span",{className:"property-panel-selected-component-name",children:n}),i&&(0,G.jsxs)("span",{className:"property-panel-selected-component-source-row",children:["\u21B3 ",i]})]})})}var uT=Ve.default.forwardRef(function({title:t,body:o},a){return(0,G.jsxs)("section",{ref:a,role:"alert","aria-live":"assertive","aria-labelledby":"property-panel-change-limit-title",className:"property-panel-change-limit-message",tabIndex:-1,children:[(0,G.jsx)("svg",{className:"property-panel-change-limit-icon",viewBox:"0 0 520 520",fill:"currentColor","aria-hidden":"true",focusable:"false",children:(0,G.jsx)("path",{d:"M260 20a240 240 0 100 480 240 240 0 100-480m0 121c17 0 30 13 30 30s-13 30-30 30-30-13-30-30 13-30 30-30m50 210c0 5-4 9-10 9h-80c-5 0-10-3-10-9v-20c0-5 4-11 10-11 5 0 10-3 10-9v-40c0-5-4-11-10-11-5 0-10-3-10-9v-20c0-5 4-11 10-11h60c5 0 10 5 10 11v80c0 5 4 9 10 9 5 0 10 5 10 11z"})}),(0,G.jsxs)("div",{className:"property-panel-change-limit-content",children:[(0,G.jsx)("h2",{id:"property-panel-change-limit-title",className:"property-panel-change-limit-title",children:t}),(0,G.jsx)("p",{className:"property-panel-change-limit-body",children:o})]})]})});function sT({styles:e,computedStyles:t,inlineOrigin:o,hasSelection:a,onStyleChange:r,generalLabels:l,sectionLabels:n,instanceLabels:i,editorLabels:u,component:s,onImageAttributeChange:d,imageSource:g}){let f=a?"visible":"",p=oT&&s?.media?.tag==="img"?s.media:null,v=L=>o.has(L)?"":t[L]??"",b=e.backgroundImage||t.backgroundImage,x=e.backgroundClip||t.backgroundClip,m=o3(b??"",x??"","text"),c=m!=="",h=iC(b??"",x??""),C=a3(b??"",x??""),w=sr(h)?"rgba(0, 0, 0, 0)":"#ffffff",S=L=>lC(L)?L:void 0,H=S(e.backgroundColor),y=S(t.backgroundColor),k=S(e.color),O=S(t.color),F=e.webkitTextFillColor||t.webkitTextFillColor,ae=e.color||t.color,K=r3(F,ae),B=S(e.borderColor),Q=S(t.borderColor),M=e.borderImageSource||t.borderImageSource,I=sr(M)?M:fC(x)&&o3(b??"",x||"","border-box")||void 0,R=sr(I)?"rgba(0, 0, 0, 0)":"#000000";return(0,G.jsx)("section",{className:"property-panel-style-properties-container"+(f?" "+f:""),"aria-label":l.ariaElementStyling,"aria-hidden":!a,children:(0,G.jsxs)("div",{className:"property-panel-style-properties",children:[(0,G.jsxs)(zr,{title:n.typography,children:[(0,G.jsx)(wv,{label:i.fontFamily,id:"design-font-family",value:e.fontFamily,computedValue:v("fontFamily"),onChange:L=>r("fontFamily",L),aria:u?.picklist}),(0,G.jsx)(Po,{label:i.fontSize,id:"design-font-size",value:e.fontSize,placeholder:v("fontSize"),onChange:L=>r("fontSize",L),...Vo.fontSize,aria:u?.dimension}),(0,G.jsx)(Sv,{label:i.fontWeight,id:"design-font-weight",value:e.fontWeight,computedValue:v("fontWeight"),onChange:L=>r("fontWeight",L),optionLabels:u?.fontWeight?.options,aria:u?.picklist}),(0,G.jsx)(Iv,{label:i.fontStyle,id:"design-font-style",value:e.fontStyle||t.fontStyle,onChange:L=>r("fontStyle",L),optionLabels:u?.fontStyle?.options}),(0,G.jsx)(X2,{label:i.textColor,value:K?F:k||O||(c?"rgba(0, 0, 0, 0)":"#000000"),onChange:L=>r("color",L),id:"design-text-color",aria:u?.color,backgroundImage:c?m:void 0}),(0,G.jsx)(Ov,{label:i.textAlignment,id:"design-text-align",value:e.textAlign||t.textAlign,onChange:L=>r("textAlign",L),optionLabels:u?.textAlignment?.options}),(0,G.jsx)(Vv,{label:i.textFormatting,id:"design-text-decoration",value:e.textDecoration||t.textDecoration,onChange:L=>r("textDecoration",L),optionLabels:u?.textDecoration?.options}),(0,G.jsx)(Av,{label:i.textTransform,id:"design-text-transform",value:e.textTransform||t.textTransform,onChange:L=>r("textTransform",L),optionLabels:u?.textTransform?.options}),(0,G.jsx)(Po,{label:i.lineHeight,id:"design-line-height",value:e.lineHeight,placeholder:v("lineHeight"),onChange:L=>r("lineHeight",L),...Vo.lineHeight,aria:u?.dimension}),(0,G.jsx)(Po,{label:i.letterSpacing,id:"design-letter-spacing",value:e.letterSpacing,placeholder:v("letterSpacing"),onChange:L=>r("letterSpacing",L),...Vo.letterSpacing,aria:u?.dimension})]}),(0,G.jsxs)(zr,{title:n.spacing,children:[(0,G.jsx)(Bi,{label:i.padding,id:"design-padding",value:e.padding,placeholder:v("padding"),onChange:L=>r("padding",L),...Vi.padding,aria:u?.boxDimension}),(0,G.jsx)(Bi,{label:i.margin,id:"design-margin",value:e.margin,placeholder:v("margin"),onChange:L=>r("margin",L),...Vi.margin,allowAuto:!0,aria:u?.boxDimension})]}),(0,G.jsxs)(zr,{title:n.elementDimensions,children:[(0,G.jsx)(Po,{label:i.width,id:"design-width",value:e.width,placeholder:v("width"),onChange:L=>r("width",L),...Vo.width,aria:u?.dimension}),(0,G.jsxs)("div",{className:"property-panel-row-2col",children:[(0,G.jsx)(Po,{label:i.minWidth,id:"design-min-width",value:e.minWidth,placeholder:v("minWidth"),onChange:L=>r("minWidth",L),...Vo.minWidth,aria:u?.dimension}),(0,G.jsx)(Po,{label:i.maxWidth,id:"design-max-width",value:e.maxWidth,placeholder:v("maxWidth"),onChange:L=>r("maxWidth",L),...Vo.maxWidth,aria:u?.dimension})]}),(0,G.jsx)(Po,{label:i.height,id:"design-height",value:e.height,placeholder:v("height"),onChange:L=>r("height",L),...Vo.height,aria:u?.dimension}),(0,G.jsxs)("div",{className:"property-panel-row-2col",children:[(0,G.jsx)(Po,{label:i.minHeight,id:"design-min-height",value:e.minHeight,placeholder:v("minHeight"),onChange:L=>r("minHeight",L),...Vo.minHeight,aria:u?.dimension}),(0,G.jsx)(Po,{label:i.maxHeight,id:"design-max-height",value:e.maxHeight,placeholder:v("maxHeight"),onChange:L=>r("maxHeight",L),...Vo.maxHeight,aria:u?.dimension})]}),(0,G.jsx)(Ev,{label:i.overflow,id:"design-overflow",value:e.overflow,computedValue:v("overflow"),onChange:L=>r("overflow",L),optionLabels:u?.overflow?.options,aria:u?.picklist})]}),(0,G.jsx)(zr,{title:n.background,children:(0,G.jsx)(X2,{label:i.backgroundColor,value:C?"rgba(0, 0, 0, 0)":H||y||w,onChange:L=>r("backgroundColor",L),id:"design-bg-color",aria:u?.color,backgroundImage:h||void 0})}),(0,G.jsxs)(zr,{title:n.border,children:[(0,G.jsx)(Bi,{label:i.borderRadius,id:"design-border-radius",value:e.borderRadius,placeholder:v("borderRadius"),onChange:L=>r("borderRadius",L),...Vi.borderRadius,aria:u?.boxDimension}),(0,G.jsx)(Bi,{label:i.borderWeight,id:"design-border-width",value:e.borderWidth,placeholder:v("borderWidth"),onChange:L=>r("borderWidth",L),...Vi.borderWidth,aria:u?.boxDimension}),(0,G.jsx)(ig,{label:i.borderStyle,id:"design-border-style",value:e.borderStyle||t.borderStyle,onChange:L=>r("borderStyle",L),optionLabels:u?.borderStyle?.options}),(0,G.jsx)(X2,{label:i.borderColor,value:B||Q||R,onChange:L=>r("borderColor",L),id:"design-border-color",aria:u?.color,backgroundImage:I})]}),p&&(0,G.jsx)(zr,{title:n.imageSource,children:(0,G.jsx)(kv,{label:i.imageSource,value:p.src,onChange:L=>d("src",L),id:"design-img-src",attributes:{alt:p.alt,width:p.width,height:p.height},onAttributeChange:d,imageLabels:u?.image,...g})})]})})}var gf=["width","minWidth","maxWidth","height","minHeight","maxHeight","overflow","padding","margin","backgroundColor","backgroundImage","backgroundClip","borderWidth","borderStyle","borderColor","borderImageSource","borderRadius","color","webkitTextFillColor","fontFamily","fontSize","fontWeight","fontStyle","lineHeight","letterSpacing","textAlign","textDecoration","textTransform"],fr=Object.fromEntries(gf.map(e=>[e,""]));function w9(e,t,o,a){let r={...t};for(let l of gf){let n=e[l];n!=null&&!o.has(l)&&(r[l]=n[a]??t[l]??"")}return r}function zv(e,t,o){let a=new Set(t);for(let r of gf){if(o.has(r))continue;let l=e[r];l!=null&&(l.inline?a.add(r):a.delete(r))}return a}var Uv=Ve.default.forwardRef(function(t,o){let{component:a,styles:r,onStyleChange:l,onTextChange:n,onHistoryStateChange:i,onAddToChatContext:u,onOpenSourceFile:s,onClose:d,onMediaChange:g,showAddToChatContext:f=!0,showOpenSourceFile:p=!0,compactHeader:v=!1,labels:b,imageSource:x}=t,m=D1(aT,b),[c,h]=Ve.default.useState(fr),[C,w]=Ve.default.useState(fr),[S,H]=Ve.default.useState(()=>new Set),[y,k]=Ve.default.useState(()=>new Set),O=Ve.default.useRef(c);O.current=c;let F=Ve.default.useRef(C);F.current=C;let ae=Ve.default.useRef(S);ae.current=S;let K=Ve.default.useRef(y);K.current=y;let B=Ve.default.useRef(r);B.current=r;let Q=Ve.default.useRef(new Map),M=Ve.default.useRef(l);M.current=l;let I=Ve.default.useRef(n);I.current=n;let R=Ve.default.useRef(g);R.current=g;let L=Ve.default.useRef(null);L.current||(L.current=Zv((te,ie,le)=>M.current(te,ie,le,!0),(te,ie)=>I.current?.(te,ie),(te,ie,le)=>R.current?.(te,ie,le)));let T=L.current,Z=Ve.default.useRef(i);Z.current=i;let[z,W]=Ve.default.useState(()=>T.getUndoCount()),U=T.getMaxHistorySize(),j=Ve.default.useRef("none");Ve.default.useEffect(()=>{let te=le=>{if(Z.current?.({canUndo:le.canUndo,canRedo:le.canRedo}),W(le.undoCount),!(le.type==="command-undone"||le.type==="command-redone"))return;let ut=le.type==="command-undone",ye=le.command?.data?.property,Ae=le.command?.data?.changes,jt=[];if(typeof ye=="string"?jt=[[ye,typeof le.appliedValue=="string"?le.appliedValue:""]]:Array.isArray(Ae)&&(jt=Ae.filter($e=>$e!=null&&typeof $e.property=="string").map($e=>[$e.property,String((ut?$e.oldValue:$e.newValue)??"")])),jt.length===0)return;let w1=le.command?.data,Wt=w1&&typeof w1.componentName=="string"?`${w1.componentName}-${w1.tagName??""}-${w1.lineNumber??""}-${w1.columnNumber??""}`:null;if(Wt!==null&&Wt!==j.current){let $e=Q.current.get(Wt);if(!$e)return;let st={...$e.styles},Ke=new Set($e.sessionEdits),ro=new Set($e.inlineOrigin);for(let[Be,Jt]of jt)st[Be]=Jt,Jt===""&&ro.has(Be)?(Ke.delete(Be),ro.delete(Be)):Ke.add(Be);Q.current.set(Wt,{...$e,styles:st,sessionEdits:Ke,inlineOrigin:ro});return}h($e=>{let st={...$e};for(let[Ke,ro]of jt)st[Ke]=ro;return st}),H($e=>{let st=new Set($e);for(let[Ke]of jt)st.add(Ke);return st})},ie=T.subscribe(te);return Z.current?.({canUndo:T.canUndo(),canRedo:T.canRedo()}),W(T.getUndoCount()),ie},[T]);let q=z>=U,D=Ve.default.useRef(null),ne=Ve.default.useRef(!1);Ve.default.useEffect(()=>{q&&!ne.current&&D.current?.focus(),ne.current=q},[q]),Ve.default.useImperativeHandle(o,()=>({undo:()=>T.undo(),redo:()=>T.redo(),clearHistory:te=>{if(T.clear(),Q.current.clear(),te?.keepSelectedStyles){let ie=B.current||{},le=new Set;h(w9(ie,fr,le,"inline")),w(w9(ie,fr,le,"computed")),k(zv(ie,le,le))}else h(fr),w(fr),k(new Set);H(new Set),W(0)},getHistoryStack:()=>T.getHistoryStack(),getChangeSet:()=>Nv(T.getHistoryStack()),recordTextChange:(te,ie,le)=>T.recordTextChange(te,ie,le),canUndo:()=>T.canUndo(),canRedo:()=>T.canRedo()}),[T]);let ce=a?`${a.name}-${a.tagName??""}-${a.debugSource?.lineNumber??""}-${a.debugSource?.columnNumber??""}`:"none";j.current=ce;let ve=Ve.default.useRef("none");Ve.default.useEffect(()=>{let te=ve.current,ie,le,Re,ut;if(ce!==te){te!=="none"&&ae.current.size>0&&Q.current.set(te,{styles:O.current,computedStyles:F.current,sessionEdits:ae.current,inlineOrigin:K.current}),ve.current=ce;let Ae=Q.current.get(ce);ie=Ae?Ae.styles:fr,le=Ae?Ae.computedStyles:fr,Re=Ae?Ae.sessionEdits:new Set,ut=Ae?Ae.inlineOrigin:new Set}else ie=O.current,le=F.current,Re=ae.current,ut=K.current;let ye=r||{};h(w9(ye,ie,Re,"inline")),w(w9(ye,le,Re,"computed")),H(Re),k(zv(ye,ut,Re))},[ce,r]);let _=Ve.default.useCallback((te,ie)=>{let le=nT(O.current,te),Re=mf(a),ut=a?.debugSource?{sourceFile:a.debugSource.sourceFile,lineNumber:a.debugSource.lineNumber,columnNumber:a.debugSource.columnNumber}:void 0,ye=O.current.backgroundImage||F.current.backgroundImage||"",Ae=O.current.backgroundClip||F.current.backgroundClip||"",jt=a3(ye,Ae),w1=O.current.color||F.current.color||"",Wt=!!O.current.webkitTextFillColor?.trim(),$e={property:"webkitTextFillColor",isOccluding:Be=>r3(Be,w1,Wt),resetValue:"currentcolor"},st=[];te==="backgroundColor"?st=jt?[$e]:[]:te==="borderColor"?st=[{property:"borderImageSource"}]:te==="color"&&(st=[$e]);let Ke=st.flatMap(({property:Be,isOccluding:Jt,resetValue:Fo})=>pC(ie,Be,F.current[Be],O.current[Be],Jt,Fo)),ro=(Be,Jt,Fo)=>{Fo!==Jt&&Ke.push({property:Be,oldValue:Jt,newValue:Fo})};if(ie.trim()!==""&&(sr(ye)||jt))if(te==="backgroundColor"){let Be=jt?cC(ye,Ae):Ae;ro("backgroundClip",Ae,Be),ro("backgroundImage",ye,dC(ye,Be))}else te==="color"&&ro("backgroundImage",ye,sC(ye,Ae));l(te,ie,ut);for(let Be of Ke)l(Be.property,Be.newValue,ut);Ke.length===0?T.recordStyleChange(te,le,ie,Re):T.recordStyleBatch([{property:te,oldValue:le,newValue:ie},...Ke.map(Be=>({property:Be.property,oldValue:Be.oldValue,newValue:Be.newValue}))],Re),h(Be=>{let Jt={...Be,[te]:ie};for(let Fo of Ke)Jt[Fo.property]=Fo.newValue;return Jt}),te==="color"&&w(Be=>({...Be,webkitTextFillColor:ie})),H(Be=>{let Jt=new Set(Be);ie===""&&K.current.has(te)?Jt.delete(te):Jt.add(te);for(let Fo of Ke)Jt.add(Fo.property);return Jt})},[l,T,a]),P=Ve.default.useCallback((te,ie)=>{let le=a?.media;if(!le)return;let Re=a?.debugSource;g?.(le.tag,{[te]:ie},Re);let ut=String(le[te]??"");T.recordMediaChange(le.tag,te,ut,ie,mf(a))},[a,g,T]),oe=!!(a&&a.name),me=Ve.default.useCallback(()=>{let te=mf(a);te&&u?.(te)},[a,u]),lt=oe&&a&&a.tagName&&tT.has(a.tagName.toUpperCase()),Ue=a?.hasNonEditableText?m.general.inlineEditNonEditable:m.general.inlineEditEditable,u1=a?.tagName?a.tagName.toLowerCase():a?.name;return(0,G.jsxs)("div",{role:"complementary","aria-label":m.general.ariaPropertyPanel,className:"property-panel-container",children:[(0,G.jsxs)("header",{className:v?"property-panel-header property-panel-header-compact":"property-panel-header",children:[v?oe&&(0,G.jsxs)("span",{className:"property-panel-selected-pill",children:[(0,G.jsx)(lT,{size:12}),(0,G.jsx)("span",{className:"property-panel-selected-pill-tag",children:u1})]}):(0,G.jsx)("h2",{id:"design-property-panel-title",className:"property-panel-title",children:m.general.headerTitle}),(oe||d)&&(0,G.jsxs)("div",{className:"property-panel-header-actions",children:[oe&&(0,G.jsxs)(G.Fragment,{children:[lt&&(0,G.jsx)("span",{className:"property-panel-selected-component-action property-panel-selected-component-action-help","data-tooltip":Ue,"aria-label":Ue,children:(0,G.jsx)(Xp,{width:14,height:14,style:a.hasNonEditableText?eT:void 0})}),f&&!q&&(0,G.jsx)("button",{type:"button",className:"property-panel-selected-component-action",onClick:me,"data-tooltip":m.general.addToChatContext,"aria-label":m.general.addToChatContext,children:(0,G.jsx)(rT,{size:14})})]}),d&&(0,G.jsx)("button",{type:"button",className:"property-panel-selected-component-action property-panel-close",onClick:d,"data-tooltip":m.general.closePanel,"aria-label":m.general.closePanel,children:(0,G.jsx)($a,{width:14,height:14,"aria-hidden":"true"})})]})]}),(0,G.jsxs)("div",{className:"property-panel-content","aria-labelledby":v?void 0:"design-property-panel-title",children:[(0,G.jsx)(iT,{component:a,onOpenSourceFile:s,showOpenSourceFile:p,showComponentName:!v,generalLabels:m.general}),q?(0,G.jsx)(uT,{ref:D,title:m.history.changeLimitTitle,body:m.history.changeLimitBody}):(0,G.jsx)(sT,{styles:c,computedStyles:C,inlineOrigin:y,hasSelection:oe,onStyleChange:_,generalLabels:m.general,sectionLabels:m.sections,instanceLabels:m.instances,editorLabels:b?.editors,component:a,onImageAttributeChange:P,imageSource:x},ce)]})]})});var Fv=`/*
|