This commit is contained in:
Alexander Myasoedov committed 2026-06-03 15:13:19 +03:00
1 parent 5ce4ed5d91
commit 3b26e57b9e
1 file changed
+1 -1
+1 -1
View File
@@ -5,4 +5,4 @@
* Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
*/ */
"use strict";(()=>{function e(e){let t=[0];for(let r=0;r<e.length;r++)10===e.charCodeAt(r)&&t.push(r+1);return{find:function(e){let r=0,n=t.length;for(;n>0;){let o=n>>1,a=r+o;t[a]<=e?(r=a+1,n=n-o-1):n=o}return r-=1,{line:r+1,column:e-t[r]}},findOffset:function({line:e,column:r}){e-=1,e=Math.min(Math.max(e,0),t.length-1);let n=t[e],o=t[e+1]??n;return Math.min(Math.max(n+r,0),o)}}}var t=10,r=class t extends Error{loc;constructor(r,n){if(n){let t=n[0],o=e(t.code).find(n[1]);r=`${t.file}:${o.line}:${o.column+1}: ${r}`}super(r),this.name="CssSyntaxError",this.loc=n,Error.captureStackTrace&&Error.captureStackTrace(this,t)}};function n(e,n){let l=n?.from?{file:n.from,code:e}:null;"\ufeff"===e[0]&&(e=" "+e.slice(1));let s,c=[],u=[],d=[],f=null,p=null,h="",m="",g=0;for(let n=0;n<e.length;n++){let v=e.charCodeAt(n);if(13!==v||(s=e.charCodeAt(n+1),s!==t))if(92===v)""===h&&(g=n),h+=e.slice(n,n+2),n+=1;else if(47===v&&42===e.charCodeAt(n+1)){let t=n;for(let t=n+2;t<e.length;t++)if(s=e.charCodeAt(t),92===s)t+=1;else if(42===s&&47===e.charCodeAt(t+1)){n=t+1;break}let r=e.slice(t,n+1);if(33===r.charCodeAt(2)){let e=T(r.slice(2,-2));u.push(e),l&&(e.src=[l,t,n+1],e.dst=[l,t,n+1])}}else if(39===v||34===v){let t=i(e,n,v,l);h+=e.slice(n,t+1),n=t}else{if((32===v||v===t||9===v)&&(s=e.charCodeAt(n+1))&&(32===s||s===t||9===s||13===s&&(s=e.charCodeAt(n+2))&&s==t))continue;if(v===t){if(0===h.length)continue;s=h.charCodeAt(h.length-1),32!==s&&s!==t&&9!==s&&(h+=" ")}else if(45===v&&45===e.charCodeAt(n+1)&&0===h.length){let t="",o=n,u=-1;for(let r=n+2;r<e.length;r++)if(s=e.charCodeAt(r),92===s)r+=1;else if(39===s||34===s)r=i(e,r,s,l);else if(47===s&&42===e.charCodeAt(r+1)){for(let t=r+2;t<e.length;t++)if(s=e.charCodeAt(t),92===s)t+=1;else if(42===s&&47===e.charCodeAt(t+1)){r=t+1;break}}else if(-1===u&&58===s)u=h.length+r-o;else{if(59===s&&0===t.length){h+=e.slice(o,r),n=r;break}if(40===s)t+=")";else if(91===s)t+="]";else if(123===s)t+="}";else{if((125===s||e.length-1===r)&&0===t.length){n=r-1,h+=e.slice(o,r);break}(41===s||93===s||125===s)&&t.length>0&&e[r]===t[t.length-1]&&(t=t.slice(0,-1))}}let d=a(h,u);if(!d)throw new r("Invalid custom property, expected a value",l?[l,o,n]:null);l&&(d.src=[l,o,n],d.dst=[l,o,n]),f?f.nodes.push(d):c.push(d),h=""}else if(59===v&&64===h.charCodeAt(0))p=o(h),l&&(p.src=[l,g,n],p.dst=[l,g,n]),f?f.nodes.push(p):c.push(p),h="",p=null;else if(59===v&&")"!==m[m.length-1]){let e=a(h);if(!e){if(0===h.length)continue;throw new r(`Invalid declaration: \`${h.trim()}\``,l?[l,g,n]:null)}l&&(e.src=[l,g,n],e.dst=[l,g,n]),f?f.nodes.push(e):c.push(e),h=""}else if(123===v&&")"!==m[m.length-1])m+="}",p=C(h.trim()),l&&(p.src=[l,g,n],p.dst=[l,g,n]),f&&f.nodes.push(p),d.push(f),f=p,h="",p=null;else if(125===v&&")"!==m[m.length-1]){if(""===m)throw new r("Missing opening {",l?[l,n,n]:null);if(m=m.slice(0,-1),h.length>0)if(64===h.charCodeAt(0))p=o(h),l&&(p.src=[l,g,n],p.dst=[l,g,n]),f?f.nodes.push(p):c.push(p),h="",p=null;else{let e=h.indexOf(":");if(f){let t=a(h,e);if(!t)throw new r(`Invalid declaration: \`${h.trim()}\``,l?[l,g,n]:null);l&&(t.src=[l,g,n],t.dst=[l,g,n]),f.nodes.push(t)}}let e=d.pop()??null;null===e&&f&&c.push(f),f=e,h="",p=null}else if(40===v)m+=")",h+="(";else if(41===v){if(")"!==m[m.length-1])throw new r("Missing opening (",l?[l,n,n]:null);m=m.slice(0,-1),h+=")"}else{if(0===h.length&&(32===v||v===t||9===v))continue;""===h&&(g=n),h+=String.fromCharCode(v)}}}if(64===h.charCodeAt(0)){let t=o(h);l&&(t.src=[l,g,e.length],t.dst=[l,g,e.length]),c.push(t)}if(m.length>0&&f){if("rule"===f.kind)throw new r(`Missing closing } at ${f.selector}`,f.src?[f.src[0],f.src[1],f.src[1]]:null);if("at-rule"===f.kind)throw new r(`Missing closing } at ${f.name} ${f.params}`,f.src?[f.src[0],f.src[1],f.src[1]]:null)}return u.length>0?u.concat(c):c}function o(e,t=[]){let r=e,n="";for(let t=5;t<e.length;t++){let o=e.charCodeAt(t);if(32===o||9===o||40===o){r=e.slice(0,t),n=e.slice(t);break}}return S(r.trim(),n.trim(),t)}function a(e,t=e.indexOf(":")){if(-1===t)return null;let r=e.indexOf("!important",t+1);return j(e.slice(0,t).trim(),e.slice(t+1,-1===r?e.length:r).trim(),-1!==r)}function i(e,n,o,a=null){let i;for(let l=n+1;l<e.length;l++)if(i=e.charCodeAt(l),92===i)l+=1;else{if(i===o)return l;if(59===i&&(e.charCodeAt(l+1)===t||13===e.charCodeAt(l+1)&&e.charCodeAt(l+2)===t))throw new r(`Unterminated string: ${e.slice(n,l+1)+String.fromCharCode(o)}`,a?[a,n,l+1]:null);if(i===t||13===i&&e.charCodeAt(l+1)===t)throw new r(`Unterminated string: ${e.slice(n,l)+String.fromCharCode(o)}`,a?[a,n,l+1]:null)}return n}function l(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):"�";return a}function s(e){retLine truncated "use strict";(()=>{function e(e){let t=[0];for(let r=0;r<e.length;r++)10===e.charCodeAt(r)&&t.push(r+1);return{find:function(e){let r=0,n=t.length;for(;n>0;){let o=n>>1,a=r+o;t[a]<=e?(r=a+1,n=n-o-1):n=o}return r-=1,{line:r+1,column:e-t[r]}},findOffset:function({line:e,column:r}){e-=1,e=Math.min(Math.max(e,0),t.length-1);let n=t[e],o=t[e+1]??n;return Math.min(Math.max(n+r,0),o)}}}var t=10,r=class t extends Error{loc;constructor(r,n){if(n){let t=n[0],o=e(t.code).find(n[1]);r=`${t.file}:${o.line}:${o.column+1}: ${r}`}super(r),this.name="CssSyntaxError",this.loc=n,Error.captureStackTrace&&Error.captureStackTrace(this,t)}};function n(e,n){let l=n?.from?{file:n.from,code:e}:null;"\ufeff"===e[0]&&(e=" "+e.slice(1));let s,c=[],u=[],d=[],f=null,p=null,h="",m="",g=0;for(let n=0;n<e.length;n++){let v=e.charCodeAt(n);if(13!==v||(s=e.charCodeAt(n+1),s!==t))if(92===v)""===h&&(g=n),h+=e.slice(n,n+2),n+=1;else if(47===v&&42===e.charCodeAt(n+1)){let t=n;for(let t=n+2;t<e.length;t++)if(s=e.charCodeAt(t),92===s)t+=1;else if(42===s&&47===e.charCodeAt(t+1)){n=t+1;break}let r=e.slice(t,n+1);if(33===r.charCodeAt(2)){let e=T(r.slice(2,-2));u.push(e),l&&(e.src=[l,t,n+1],e.dst=[l,t,n+1])}}else if(39===v||34===v){let t=i(e,n,v,l);h+=e.slice(n,t+1),n=t}else{if((32===v||v===t||9===v)&&(s=e.charCodeAt(n+1))&&(32===s||s===t||9===s||13===s&&(s=e.charCodeAt(n+2))&&s==t))continue;if(v===t){if(0===h.length)continue;s=h.charCodeAt(h.length-1),32!==s&&s!==t&&9!==s&&(h+=" ")}else if(45===v&&45===e.charCodeAt(n+1)&&0===h.length){let t="",o=n,u=-1;for(let r=n+2;r<e.length;r++)if(s=e.charCodeAt(r),92===s)r+=1;else if(39===s||34===s)r=i(e,r,s,l);else if(47===s&&42===e.charCodeAt(r+1)){for(let t=r+2;t<e.length;t++)if(s=e.charCodeAt(t),92===s)t+=1;else if(42===s&&47===e.charCodeAt(t+1)){r=t+1;break}}else if(-1===u&&58===s)u=h.length+r-o;else{if(59===s&&0===t.length){h+=e.slice(o,r),n=r;break}if(40===s)t+=")";else if(91===s)t+="]";else if(123===s)t+="}";else{if((125===s||e.length-1===r)&&0===t.length){n=r-1,h+=e.slice(o,r);break}(41===s||93===s||125===s)&&t.length>0&&e[r]===t[t.length-1]&&(t=t.slice(0,-1))}}let d=a(h,u);if(!d)throw new r("Invalid custom property, expected a value",l?[l,o,n]:null);l&&(d.src=[l,o,n],d.dst=[l,o,n]),f?f.nodes.push(d):c.push(d),h=""}else if(59===v&&64===h.charCodeAt(0))p=o(h),l&&(p.src=[l,g,n],p.dst=[l,g,n]),f?f.nodes.push(p):c.push(p),h="",p=null;else if(59===v&&")"!==m[m.length-1]){let e=a(h);if(!e){if(0===h.length)continue;throw new r(`Invalid declaration: \`${h.trim()}\``,l?[l,g,n]:null)}l&&(e.src=[l,g,n],e.dst=[l,g,n]),f?f.nodes.push(e):c.push(e),h=""}else if(123===v&&")"!==m[m.length-1])m+="}",p=C(h.trim()),l&&(p.src=[l,g,n],p.dst=[l,g,n]),f&&f.nodes.push(p),d.push(f),f=p,h="",p=null;else if(125===v&&")"!==m[m.length-1]){if(""===m)throw new r("Missing opening {",l?[l,n,n]:null);if(m=m.slice(0,-1),h.length>0)if(64===h.charCodeAt(0))p=o(h),l&&(p.src=[l,g,n],p.dst=[l,g,n]),f?f.nodes.push(p):c.push(p),h="",p=null;else{let e=h.indexOf(":");if(f){let t=a(h,e);if(!t)throw new r(`Invalid declaration: \`${h.trim()}\``,l?[l,g,n]:null);l&&(t.src=[l,g,n],t.dst=[l,g,n]),f.nodes.push(t)}}let e=d.pop()??null;null===e&&f&&c.push(f),f=e,h="",p=null}else if(40===v)m+=")",h+="(";else if(41===v){if(")"!==m[m.length-1])throw new r("Missing opening (",l?[l,n,n]:null);m=m.slice(0,-1),h+=")"}else{if(0===h.length&&(32===v||v===t||9===v))continue;""===h&&(g=n),h+=String.fromCharCode(v)}}}if(64===h.charCodeAt(0)){let t=o(h);l&&(t.src=[l,g,e.length],t.dst=[l,g,e.length]),c.push(t)}if(m.length>0&&f){if("rule"===f.kind)throw new r(`Missing closing } at ${f.selector}`,f.src?[f.src[0],f.src[1],f.src[1]]:null);if("at-rule"===f.kind)throw new r(`Missing closing } at ${f.name} ${f.params}`,f.src?[f.src[0],f.src[1],f.src[1]]:null)}return u.length>0?u.concat(c):c}function o(e,t=[]){let r=e,n="";for(let t=5;t<e.length;t++){let o=e.charCodeAt(t);if(32===o||9===o||40===o){r=e.slice(0,t),n=e.slice(t);break}}return S(r.trim(),n.trim(),t)}function a(e,t=e.indexOf(":")){if(-1===t)return null;let r=e.indexOf("!important",t+1);return j(e.slice(0,t).trim(),e.slice(t+1,-1===r?e.length:r).trim(),-1!==r)}function i(e,n,o,a=null){let i;for(let l=n+1;l<e.length;l++)if(i=e.charCodeAt(l),92===i)l+=1;else{if(i===o)return l;if(59===i&&(e.charCodeAt(l+1)===t||13===e.charCodeAt(l+1)&&e.charCodeAt(l+2)===t))throw new r(`Unterminated string: ${e.slice(n,l+1)+String.fromCharCode(o)}`,a?[a,n,l+1]:null);if(i===t||13===i&&e.charCodeAt(l+1)===t)throw new r(`Unterminated string: ${e.slice(n,l)+String.fromCharCode(o)}`,a?[a,n,l+1]:null)}return n}function l(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):"�";return a}function s(e){retLine truncated
//# sourceMappingURL=/sm/bd39219e772a2edfcbff5d8fd1ea19c80e713f41f1785c80de339dfab9ad6de5.map //# sourceMappingURL=/sm/bd39219e772a2edfcbff5d8fd1ea19c80e713f41f1785c80de339dfab9ad6de5.map