import{r as e}from"./rolldown-runtime-Bjp52BOI.js?dpl=dpl_4UDxC3erAcBDHX8QT9FjyxxnLZSQ";function t(e,t){let n=String(e);if(typeof t!=`string`)throw TypeError(`Expected character`);let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}var n={}.hasOwnProperty;function r(e,t){let r=t||{};function i(t,...r){let a=i.invalid,o=i.handlers;if(t&&n.call(t,e)){let r=String(t[e]);a=n.call(o,r)?o[r]:i.unknown}if(a)return a.call(this,t,...r)}return i.handlers=r.handlers||{},i.invalid=r.invalid,i.unknown=r.unknown,i}var i=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};i.prototype.normal={},i.prototype.property={},i.prototype.space=void 0;function a(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new i(n,r,t)}function o(e){return e.toLowerCase()}var s=class{constructor(e,t){this.attribute=t,this.property=e}};s.prototype.attribute=``,s.prototype.booleanish=!1,s.prototype.boolean=!1,s.prototype.commaOrSpaceSeparated=!1,s.prototype.commaSeparated=!1,s.prototype.defined=!1,s.prototype.mustUseProperty=!1,s.prototype.number=!1,s.prototype.overloadedBoolean=!1,s.prototype.property=``,s.prototype.spaceSeparated=!1,s.prototype.space=void 0;var c=e({boolean:()=>u,booleanish:()=>d,commaOrSpaceSeparated:()=>g,commaSeparated:()=>h,number:()=>p,overloadedBoolean:()=>f,spaceSeparated:()=>m}),l=0,u=_(),d=_(),f=_(),p=_(),m=_(),h=_(),g=_();function _(){return 2**++l}var v=Object.keys(c),y=class extends s{constructor(e,t,n,r){let i=-1;if(super(e,t),b(this,`space`,r),typeof n==`number`)for(;++i4&&n.slice(0,4)===`data`&&M.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(j,F);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!j.test(e)){let n=e.replace(A,P);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=y}return new i(r,t)}function P(e){return`-`+e.toLowerCase()}function F(e){return e.charAt(1).toUpperCase()}var I=a([S,T,D,O,k],`html`),L=a([S,E,D,O,k],`svg`);function R(e){let t=[],n=String(e||``),r=n.indexOf(`,`),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);let e=n.slice(i,r).trim();(e||!a)&&t.push(e),i=r+1,r=n.indexOf(`,`,i)}return t}function z(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}function B(e){let t=String(e||``).trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function V(e){return e.join(` `).trim()}var H=/[ \t\n\f\r]/g;function U(e){return typeof e==`object`?e.type===`text`&&W(e.value):W(e)}function W(e){return e.replace(H,``)===``}export{z as a,N as c,t as d,R as i,o as l,B as n,I as o,V as r,L as s,U as t,r as u};