8 lines
245 KiB
JavaScript
8 lines
245 KiB
JavaScript
|
|
/**
|
|||
|
|
* Minified by jsDelivr using Terser v5.39.0.
|
|||
|
|
* Original file: /npm/@tailwindcss/browser@4.1.4/dist/index.global.js
|
|||
|
|
*
|
|||
|
|
* Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
|
|||
|
|
*/
|
|||
|
|
"use strict";(()=>{var e=10;function t(t){"\ufeff"===t[0]&&(t=t.slice(1)),t=t.replaceAll("\r\n","\n");let o,a=[],i=[],l=[],s=null,c=null,u="",d="";for(let f=0;f<t.length;f++){let p=t.charCodeAt(f);if(92===p)u+=t.slice(f,f+2),f+=1;else if(47===p&&42===t.charCodeAt(f+1)){let e=f;for(let e=f+2;e<t.length;e++)if(o=t.charCodeAt(e),92===o)e+=1;else if(42===o&&47===t.charCodeAt(e+1)){f=e+1;break}let r=t.slice(e,f+1);33===r.charCodeAt(2)&&i.push(x(r.slice(2,-2)))}else if(39===p||34===p){let r=f;for(let n=f+1;n<t.length;n++)if(o=t.charCodeAt(n),92===o)n+=1;else{if(o===p){f=n;break}if(59===o&&t.charCodeAt(n+1)===e)throw new Error(`Unterminated string: ${t.slice(r,n+1)+String.fromCharCode(p)}`);if(o===e)throw new Error(`Unterminated string: ${t.slice(r,n)+String.fromCharCode(p)}`)}u+=t.slice(r,f+1)}else{if((32===p||p===e||9===p)&&(o=t.charCodeAt(f+1))&&(32===o||o===e||9===o))continue;if(p===e){if(0===u.length)continue;o=u.charCodeAt(u.length-1),32!==o&&o!==e&&9!==o&&(u+=" ")}else if(45===p&&45===t.charCodeAt(f+1)&&0===u.length){let e="",r=f,i=-1;for(let n=f+2;n<t.length;n++)if(o=t.charCodeAt(n),92===o)n+=1;else if(47===o&&42===t.charCodeAt(n+1)){for(let e=n+2;e<t.length;e++)if(o=t.charCodeAt(e),92===o)e+=1;else if(42===o&&47===t.charCodeAt(e+1)){n=e+1;break}}else if(-1===i&&58===o)i=u.length+n-r;else{if(59===o&&0===e.length){u+=t.slice(r,n),f=n;break}if(40===o)e+=")";else if(91===o)e+="]";else if(123===o)e+="}";else{if((125===o||t.length-1===n)&&0===e.length){f=n-1,u+=t.slice(r,n);break}(41===o||93===o||125===o)&&e.length>0&&t[n]===e[e.length-1]&&(e=e.slice(0,-1))}}let l=n(u,i);if(!l)throw new Error("Invalid custom property, expected a value");s?s.nodes.push(l):a.push(l),u=""}else if(59===p&&64===u.charCodeAt(0))c=r(u),s?s.nodes.push(c):a.push(c),u="",c=null;else if(59===p&&")"!==d[d.length-1]){let e=n(u);if(!e)throw 0===u.length?new Error("Unexpected semicolon"):new Error(`Invalid declaration: \`${u.trim()}\``);s?s.nodes.push(e):a.push(e),u=""}else if(123===p&&")"!==d[d.length-1])d+="}",c=b(u.trim()),s&&s.nodes.push(c),l.push(s),s=c,u="",c=null;else if(125===p&&")"!==d[d.length-1]){if(""===d)throw new Error("Missing opening {");if(d=d.slice(0,-1),u.length>0)if(64===u.charCodeAt(0))c=r(u),s?s.nodes.push(c):a.push(c),u="",c=null;else{let e=u.indexOf(":");if(s){let t=n(u,e);if(!t)throw new Error(`Invalid declaration: \`${u.trim()}\``);s.nodes.push(t)}}let e=l.pop()??null;null===e&&s&&a.push(s),s=e,u="",c=null}else if(40===p)d+=")",u+="(";else if(41===p){if(")"!==d[d.length-1])throw new Error("Missing opening (");d=d.slice(0,-1),u+=")"}else{if(0===u.length&&(32===p||p===e||9===p))continue;u+=String.fromCharCode(p)}}}if(64===u.charCodeAt(0)&&a.push(r(u)),d.length>0&&s){if("rule"===s.kind)throw new Error(`Missing closing } at ${s.selector}`);if("at-rule"===s.kind)throw new Error(`Missing closing } at ${s.name} ${s.params}`)}return i.length>0?i.concat(a):a}function r(e,t=[]){for(let r=5;r<e.length;r++){let n=e.charCodeAt(r);if(32===n||40===n){return k(e.slice(0,r).trim(),e.slice(r).trim(),t)}}return k(e.trim(),"",t)}function n(e,t=e.indexOf(":")){if(-1===t)return null;let r=e.indexOf("!important",t+1);return y(e.slice(0,t).trim(),e.slice(t+1,-1===r?e.length:r).trim(),-1!==r)}function o(e){if(0===arguments.length)throw new TypeError("`CSS.escape` requires an argument.");let t,r=String(e),n=r.length,o=-1,a="",i=r.charCodeAt(0);if(1===n&&45===i)return"\\"+r;for(;++o<n;)t=r.charCodeAt(o),a+=0!==t?t>=1&&t<=31||127===t||0===o&&t>=48&&t<=57||1===o&&t>=48&&t<=57&&45===i?"\\"+t.toString(16)+" ":t>=128||45===t||95===t||t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122?r.charAt(o):"\\"+r.charAt(o):"<22>";return a}function a(e){return e.replace(/\\([\dA-Fa-f]{1,6}[\t\n\f\r ]?|[\S\s])/g,(e=>e.length>2?String.fromCodePoint(Number.parseInt(e.slice(1).trim(),16)):e[1]))}var i=new Map([["--font",["--font-weight","--font-size"]],["--inset",["--inset-shadow","--inset-ring"]],["--text",["--text-color","--text-decoration-color","--text-decoration-thickness","--text-indent","--text-shadow","--text-underline-offset"]]]);function l(e,t){return(i.get(t)??[]).some((t=>e=
|
|||
|
|
//# sourceMappingURL=/sm/0484e182646765791ab67efd1fae58cdb41b3390b5dacd1930759b1eb586ef0d.map
|