{"version":3,"sources":["jsdelivr-header.js","/npm/@julr/unocss-preset-forms@2.0.0/dist/index.mjs"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,OCNS,iBAAoB,gBACpB,YAAe,4BAExB,MAAM,UAAa,GAAU,kHAAkH,mBAC7I,uGAEI,mBAAqB,gPACrB,gBAAkB,8IAClB,yBAA2B,iNAEjC,SAAS,aACP,MAAM,EAAW,GAAM,QAAQ,SAAS,IAAI,GAAG,KAAO,KAChD,EAAyB,MACzB,EAAgB,CACpB,gBACA,4BACA,iBACA,eACA,oBACA,kBACA,gBACA,0BACA,iBACA,kBACA,eACA,gBACA,gBACA,aACA,WACA,UAEF,MAAO,CACL,CACE,KAAM,EACN,MAAO,CAAC,cAAe,iBAAkB,eAAgB,qBACzD,OAAS,IAAU,CACjB,WAAc,OACd,mBAAoB,OACpB,eAAgB,EAAM,OAAO,KAAK,KAClC,eAAgB,EAChB,gBAAiB,EAAM,aAAa,KACpC,cAAe,EAAQ,GACvB,gBAAiB,EAAQ,GACzB,iBAAkB,EAAQ,GAC1B,eAAgB,EAAQ,GACxB,YAAa,EAAM,SAAS,KAAK,GACjC,cAAe,GAAG,EAAM,WAAW,YACnC,cAAe,eAGnB,CACE,KAAM,EAAc,KAAK,GAAa,GAAG,YACzC,OAAS,IAAU,CACjB,QAAW,wBACX,iBAAkB,MAClB,kBAAmB,8BACnB,yBAA0B,MAC1B,yBAA0B,OAC1B,kBAAmB,EAAM,OAAO,KAAK,KACrC,0BAA2B,qFAC3B,mBAAoB,0FACpB,aAAc,wEACd,eAAgB,EAAM,OAAO,KAAK,QAGtC,CACE,KAAM,CAAC,qBAAsB,yBAC7B,MAAO,CAAC,2BAA4B,+BACpC,OAAS,IAAU,CACjB,MAAO,EAAM,OAAO,KAAK,KACzB,QAAS,OAGb,CACE,KAAM,CAAC,0CACP,MAAO,CAAC,qDACR,OAAQ,CACN,QAAS,MAGb,CAIE,KAAM,CAAC,iCACP,MAAO,CAAC,4CAC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KAAa,EAAK,OAAS,GACpC,EAAe,GAAa,EAAe,IAAc,GACzD,EAAe,GAAW,KAAK,EAAK,QAOxC,OAJe,OAAO,KAAK,GAAgB,KAAK,IAAc,CAC5D,MAAO,EACP,OAAQ,EAAe,OAEX,KAAK,IACjB,MAAM,EAAqB,EAAK,MAAM,MAAM,GAE5C,OAD4B,EAAK,OAAO,MAAM,GAA2B,mBAAV,IAEtD,CACL,IAAI,OAAO,IAAI,MACf,CAAC,GAAK,WAAY,sBAAsB,EAAK,OAAQ,IAGlD,CAAC,EAAoB,sBAAsB,EAAK,OAAQ,CAAC,GAAG,GAEvE,CACA,SAAS,qBAAqB,GAC5B,MAAO,CACL,CACE,OAAQ,EAAG,WACK,EAAM,KAAK,IACvB,MAAM,EAAW,EAAK,KAAK,KAAK,MAC1B,EAAuC,mBAAhB,EAAK,OAAwB,EAAK,OAAO,GAAS,EAAK,OAEpF,MAAO,GAAG,OADK,OAAO,QAAQ,GAAe,KAAI,EAAE,EAAK,KAAW,GAAG,MAAQ,OAAU,KAAK,SAC3D,IAEvB,KAAK,OAI1B,CAEA,MAAM,YAAc,cAAc,IAChC,MAAM,OAAiC,IAAtB,GAAS,SAAsB,CAAC,OAAQ,SAAW,CAAC,EAAQ,UACvE,EAAQ,aACd,IAAI,EAAW,GACX,EAAgB,GAOpB,OANI,EAAS,SAAS,WACpB,EAAW,gBAAgB,IAEzB,EAAS,SAAS,UACpB,EAAgB,qBAAqB,IAEhC,CACL,KAAM,sBACN,MAAO,EACP,WAAY,EACb,WAGM","file":"/npm/@julr/unocss-preset-forms@2.0.0/dist/index.mjs","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@julr/unocss-preset-forms@2.0.0/dist/index.mjs\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","import { definePreset } from 'unocss';\nimport { handler } from '@unocss/preset-mini/utils';\n\nconst svgSelect = (color) => `data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='${encodeURIComponent(\n  color\n)}' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e`;\nconst svgCheckboxChecked = `data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e`;\nconst svgRadioChecked = `data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e`;\nconst svgCheckboxIndeterminate = `data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e`;\n\nfunction buildRules() {\n  const spacing = (s) => handler.fraction.rem(`${s}` || \"1\");\n  const borderWidth = { DEFAULT: \"1px\" };\n  const inputsClasses = [\n    \"[type='text']\",\n    \"input:where(:not([type]))\",\n    \"[type='email']\",\n    \"[type='url']\",\n    \"[type='password']\",\n    \"[type='number']\",\n    \"[type='date']\",\n    \"[type='datetime-local']\",\n    \"[type='month']\",\n    \"[type='search']\",\n    \"[type='tel']\",\n    \"[type='time']\",\n    \"[type='week']\",\n    \"[multiple]\",\n    \"textarea\",\n    \"select\"\n  ];\n  return [\n    {\n      base: inputsClasses,\n      class: [\".form-input\", \".form-textarea\", \".form-select\", \".form-multiselect\"],\n      styles: (theme) => ({\n        \"appearance\": \"none\",\n        \"background-color\": \"#fff\",\n        \"border-color\": theme.colors.gray[\"500\"],\n        \"border-width\": borderWidth.DEFAULT,\n        \"border-radius\": theme.borderRadius.none,\n        \"padding-top\": spacing(2),\n        \"padding-right\": spacing(3),\n        \"padding-bottom\": spacing(2),\n        \"padding-left\": spacing(3),\n        \"font-size\": theme.fontSize.base[0],\n        \"line-height\": `${theme.lineHeight.normal}rem`,\n        \"--un-shadow\": \"0 0 #0000\"\n      })\n    },\n    {\n      base: inputsClasses.map((cssClass) => `${cssClass}:focus`),\n      styles: (theme) => ({\n        \"outline\": \"2px solid transparent\",\n        \"outline-offset\": \"2px\",\n        \"--un-ring-inset\": \"var(--un-empty,/*!*/ /*!*/)\",\n        \"--un-ring-offset-width\": \"0px\",\n        \"--un-ring-offset-color\": \"#fff\",\n        \"--un-ring-color\": theme.colors.blue[\"600\"],\n        \"--un-ring-offset-shadow\": \"var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color)\",\n        \"--un-ring-shadow\": \"var(--un-ring-inset) 0 0 0 calc(1px + var(--un-ring-offset-width)) var(--un-ring-color)\",\n        \"box-shadow\": \"var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow)\",\n        \"border-color\": theme.colors.blue[\"600\"]\n      })\n    },\n    {\n      base: [\"input::placeholder\", \"textarea::placeholder\"],\n      class: [\".form-input::placeholder\", \".form-textarea::placeholder\"],\n      styles: (theme) => ({\n        color: theme.colors.gray[\"500\"],\n        opacity: \"1\"\n      })\n    },\n    {\n      base: [\"::-webkit-datetime-edit-fields-wrapper\"],\n      class: [\".form-input::-webkit-datetime-edit-fields-wrapper\"],\n      styles: {\n        padding: \"0\"\n      }\n    },\n    {\n      // Unfortunate hack until https://bugs.webkit.org/show_bug.cgi?id=198959 is fixed.\n      // This sucks because users can't change line-height with a utility on date inputs now.\n      // Reference: https://github.com/twbs/bootstrap/pull/31993\n      base: [\"::-webkit-date-and-time-value\"],\n      class: [\".form-input::-webkit-date-and-time-value\"],\n      styles: {\n        \"min-height\": \"1.5em\"\n      }\n    },\n    {\n      // In Safari on iOS date and time inputs are centered instead of left-aligned and can't be\n      // changed with `text-align` utilities on the input by default. Resetting this to `inherit`\n      // makes them left-aligned by default and makes it possible to override the alignment with\n      // utility classes without using an arbitrary variant to target the pseudo-elements.\n      base: [\"::-webkit-date-and-time-value\"],\n      class: [\".form-input::-webkit-date-and-time-value\"],\n      styles: {\n        \"text-align\": \"inherit\"\n      }\n    },\n    {\n      // In Safari on macOS date time inputs that are set to `display: block` have unexpected\n      // extra bottom spacing. This can be corrected by setting the `::-webkit-datetime-edit`\n      // pseudo-element to `display: inline-flex`, instead of the browser default of\n      // `display: inline-block`.\n      base: [\"::-webkit-datetime-edit\"],\n      class: [\".form-input::-webkit-datetime-edit\"],\n      styles: {\n        display: \"inline-flex\"\n      }\n    },\n    {\n      // In Safari on macOS date time inputs are 4px taller than normal inputs\n      // This is because there is extra padding on the datetime-edit and datetime-edit-{part}-field pseudo elements\n      // See https://github.com/tailwindlabs/tailwindcss-forms/issues/95\n      base: [\n        \"::-webkit-datetime-edit\",\n        \"::-webkit-datetime-edit-year-field\",\n        \"::-webkit-datetime-edit-month-field\",\n        \"::-webkit-datetime-edit-day-field\",\n        \"::-webkit-datetime-edit-hour-field\",\n        \"::-webkit-datetime-edit-minute-field\",\n        \"::-webkit-datetime-edit-second-field\",\n        \"::-webkit-datetime-edit-millisecond-field\",\n        \"::-webkit-datetime-edit-meridiem-field\"\n      ],\n      class: [\n        \".form-input::-webkit-datetime-edit\",\n        \".form-input::-webkit-datetime-edit-year-field\",\n        \".form-input::-webkit-datetime-edit-month-field\",\n        \".form-input::-webkit-datetime-edit-day-field\",\n        \".form-input::-webkit-datetime-edit-hour-field\",\n        \".form-input::-webkit-datetime-edit-minute-field\",\n        \".form-input::-webkit-datetime-edit-second-field\",\n        \".form-input::-webkit-datetime-edit-millisecond-field\",\n        \".form-input::-webkit-datetime-edit-meridiem-field\"\n      ],\n      styles: {\n        \"padding-top\": 0,\n        \"padding-bottom\": 0\n      }\n    },\n    {\n      base: [\"select\"],\n      class: [\".form-select\"],\n      styles: (theme) => ({\n        \"background-image\": `url(\"${svgSelect(theme.colors.gray[\"500\"])}\")`,\n        \"background-position\": `right ${spacing(2)} center`,\n        \"background-repeat\": `no-repeat`,\n        \"background-size\": `1.5em 1.5em`,\n        \"padding-right\": spacing(10),\n        \"print-color-adjust\": `exact`\n      })\n    },\n    {\n      base: [\"[multiple]\"],\n      class: null,\n      styles: {\n        \"background-image\": \"initial\",\n        \"background-position\": \"initial\",\n        \"background-repeat\": \"unset\",\n        \"background-size\": \"initial\",\n        \"padding-right\": spacing(3),\n        \"print-color-adjust\": \"unset\"\n      }\n    },\n    {\n      base: [`[type='checkbox']`, `[type='radio']`],\n      class: [\".form-checkbox\", \".form-radio\"],\n      styles: (theme) => ({\n        \"appearance\": \"none\",\n        \"padding\": \"0\",\n        \"print-color-adjust\": \"exact\",\n        \"display\": \"inline-block\",\n        \"vertical-align\": \"middle\",\n        \"background-origin\": \"border-box\",\n        \"user-select\": \"none\",\n        \"flex-shrink\": \"0\",\n        \"height\": spacing(4),\n        \"width\": spacing(4),\n        \"color\": theme.colors.blue[\"600\"],\n        \"background-color\": \"#fff\",\n        \"border-color\": theme.colors.gray[\"500\"],\n        \"border-width\": borderWidth.DEFAULT,\n        \"--un-shadow\": \"0 0 #0000\"\n      })\n    },\n    {\n      base: [`[type='checkbox']`],\n      class: [\".form-checkbox\"],\n      styles: (theme) => ({\n        \"border-radius\": theme.borderRadius.none\n      })\n    },\n    {\n      base: [`[type='radio']`],\n      class: [\".form-radio\"],\n      styles: {\n        \"border-radius\": \"100%\"\n      }\n    },\n    {\n      base: [`[type='checkbox']:focus`, `[type='radio']:focus`],\n      class: [\".form-checkbox:focus\", \".form-radio:focus\"],\n      styles: (theme) => ({\n        \"outline\": \"2px solid transparent\",\n        \"outline-offset\": \"2px\",\n        \"--un-ring-inset\": \"var(--un-empty,/*!*/ /*!*/)\",\n        \"--un-ring-offset-width\": \"2px\",\n        \"--un-ring-offset-color\": \"#fff\",\n        \"--un-ring-color\": theme.colors.blue[\"600\"],\n        \"--un-ring-offset-shadow\": `var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color)`,\n        \"--un-ring-shadow\": `var(--un-ring-inset) 0 0 0 calc(2px + var(--un-ring-offset-width)) var(--un-ring-color)`,\n        \"box-shadow\": `var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow)`\n      })\n    },\n    {\n      base: [`[type='checkbox']:checked`, `[type='radio']:checked`],\n      class: [\".form-checkbox:checked\", \".form-radio:checked\"],\n      styles: {\n        \"border-color\": `transparent`,\n        \"background-color\": `currentColor`,\n        \"background-size\": `100% 100%`,\n        \"background-position\": `center`,\n        \"background-repeat\": `no-repeat`\n      }\n    },\n    {\n      base: [`[type='checkbox']:checked`],\n      class: [\".form-checkbox:checked\"],\n      styles: {\n        \"background-image\": `url(\"${svgCheckboxChecked}\")`\n        // TODO: need to support nested selectors in the generators\n        // '@media (forced-colors: active) ': {\n        //   appearance: 'auto',\n        // },\n      }\n    },\n    {\n      base: [`[type='radio']:checked`],\n      class: [\".form-radio:checked\"],\n      styles: {\n        \"background-image\": `url(\"${svgRadioChecked}\")`\n        // TODO: need to support nested selectors in the generators\n        // '@media (forced-colors: active) ': {\n        //   appearance: 'auto',\n        // },\n      }\n    },\n    {\n      base: [\n        `[type='checkbox']:checked:hover`,\n        `[type='checkbox']:checked:focus`,\n        `[type='radio']:checked:hover`,\n        `[type='radio']:checked:focus`\n      ],\n      class: [\n        \".form-checkbox:checked:hover\",\n        \".form-checkbox:checked:focus\",\n        \".form-radio:checked:hover\",\n        \".form-radio:checked:focus\"\n      ],\n      styles: {\n        \"border-color\": \"transparent\",\n        \"background-color\": \"currentColor\"\n      }\n    },\n    {\n      base: [`[type='checkbox']:indeterminate`],\n      class: [\".form-checkbox:indeterminate\"],\n      styles: {\n        \"background-image\": `url(\"${svgCheckboxIndeterminate}\")`,\n        \"border-color\": `transparent`,\n        \"background-color\": `currentColor`,\n        \"background-size\": `100% 100%`,\n        \"background-position\": `center`,\n        \"background-repeat\": `no-repeat`\n        // TODO: need to support nested selectors in the generators\n        // '@media (forced-colors: active) ': {\n        //   appearance: 'auto',\n        // },\n      }\n    },\n    {\n      base: [`[type='checkbox']:indeterminate:hover`, `[type='checkbox']:indeterminate:focus`],\n      class: [\".form-checkbox:indeterminate:hover\", \".form-checkbox:indeterminate:focus\"],\n      styles: {\n        \"border-color\": \"transparent\",\n        \"background-color\": \"currentColor\"\n      }\n    },\n    {\n      base: [`[type='file']`],\n      class: null,\n      styles: {\n        \"background\": \"unset\",\n        \"border-color\": \"inherit\",\n        \"border-width\": \"0\",\n        \"border-radius\": \"0\",\n        \"padding\": \"0\",\n        \"font-size\": \"unset\",\n        \"line-height\": \"inherit\"\n      }\n    },\n    {\n      base: [`[type='file']:focus`],\n      class: null,\n      styles: {\n        outline: `1px solid ButtonText , 1px auto -webkit-focus-ring-color`\n      }\n    }\n  ];\n}\n\nfunction resolveMultipleStyles(styles, theme) {\n  const results = styles.map((style) => {\n    if (typeof style === \"function\") return style(theme);\n    return style;\n  });\n  return Object.assign({}, ...results);\n}\nfunction rulesToUnoRules(rules) {\n  const classStylesMap = {};\n  for (const rule of rules) {\n    for (const className of rule.class || []) {\n      classStylesMap[className] = classStylesMap[className] || [];\n      classStylesMap[className].push(rule.styles);\n    }\n  }\n  const groups = Object.keys(classStylesMap).map((className) => ({\n    class: className,\n    styles: classStylesMap[className]\n  }));\n  return groups.map((rule) => {\n    const selectorWithoutDot = rule.class.slice(1);\n    const shouldBeDynamicRule = rule.styles.some((style) => typeof style === \"function\");\n    if (shouldBeDynamicRule) {\n      return [\n        new RegExp(`^${selectorWithoutDot}$`),\n        (_, { theme }) => resolveMultipleStyles(rule.styles, theme)\n      ];\n    }\n    return [selectorWithoutDot, resolveMultipleStyles(rule.styles, {})];\n  });\n}\nfunction rulesToUnoPreflights(rules) {\n  return [\n    {\n      getCSS: ({ theme }) => {\n        const style = rules.map((rule) => {\n          const selector = rule.base.join(\", \");\n          const resolvedStyle = typeof rule.styles === \"function\" ? rule.styles(theme) : rule.styles;\n          const styles = Object.entries(resolvedStyle).map(([key, value]) => `${key}: ${value};`).join(\"\\n\");\n          return `${selector} { ${styles} }`;\n        });\n        return style.join(\"\\n\");\n      }\n    }\n  ];\n}\n\nconst presetForms = definePreset((options) => {\n  const strategy = options?.strategy === void 0 ? [\"base\", \"class\"] : [options.strategy];\n  const rules = buildRules();\n  let unoRules = [];\n  let unoPreflights = [];\n  if (strategy.includes(\"class\")) {\n    unoRules = rulesToUnoRules(rules);\n  }\n  if (strategy.includes(\"base\")) {\n    unoPreflights = rulesToUnoPreflights(rules);\n  }\n  return {\n    name: \"unocss-preset-forms\",\n    rules: unoRules,\n    preflights: unoPreflights\n  };\n});\n\nexport { presetForms };\n"]}