monocart-coverage-reports 2.13.2 → 3.0.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/README.md +267 -114
- package/README.zh-Hans.md +268 -115
- package/lib/assets.js +6 -6
- package/lib/cli.js +191 -95
- package/lib/client/cdp-client.js +74 -43
- package/lib/client/coverage-client.js +24 -8
- package/lib/client/ws-session.js +115 -37
- package/lib/converter/ast-visitor.js +5 -7
- package/lib/converter/ast.js +6 -6
- package/lib/converter/collect-source-maps.js +9 -9
- package/lib/converter/converter.js +41 -115
- package/lib/converter/fake-source-coverage.js +64 -0
- package/lib/converter/find-original-range.js +3 -3
- package/lib/converter/flatten-source-maps.js +2 -4
- package/lib/converter/ignore.js +2 -4
- package/lib/converter/info-branch.js +5 -3
- package/lib/converter/info-function.js +5 -3
- package/lib/converter/info-statement.js +5 -3
- package/lib/converter/range-index.js +78 -0
- package/lib/converter/source-range-merge.js +103 -0
- package/lib/converter/untested.js +27 -55
- package/lib/default/options.js +13 -1
- package/lib/generate.js +44 -26
- package/lib/index.d.ts +52 -4
- package/lib/index.js +35 -41
- package/lib/istanbul/istanbul-summary.js +2 -2
- package/lib/istanbul/istanbul.js +35 -13
- package/lib/packages/chunks/chunk-RVOSNMVU.js +2 -0
- package/lib/packages/monocart-coverage-assets.js +4 -3
- package/lib/packages/monocart-coverage-converter.js +27 -0
- package/lib/packages/monocart-coverage-vendor.js +2 -41
- package/lib/packages/monocart-coverage-vendor.js.LICENSE +3 -221
- package/lib/platform/concurrency.js +47 -43
- package/lib/platform/share.js +1 -1
- package/lib/register/hooks.js +19 -13
- package/lib/register/register.js +5 -3
- package/lib/reports/codacy.js +3 -5
- package/lib/reports/codecov.js +3 -5
- package/lib/reports/console-details.js +5 -5
- package/lib/reports/console-summary.js +4 -4
- package/lib/reports/custom.js +8 -24
- package/lib/reports/markdown-details.js +4 -6
- package/lib/reports/markdown-summary.js +4 -6
- package/lib/reports/raw.js +10 -12
- package/lib/reports/v8-json.js +3 -5
- package/lib/reports/v8.js +3 -5
- package/lib/utils/dedupe.js +1 -1
- package/lib/utils/gc.js +30 -14
- package/lib/utils/markdown.js +2 -2
- package/lib/utils/merge/merge.js +2 -4
- package/lib/utils/merge/range-tree.js +1 -1
- package/lib/utils/request.js +85 -73
- package/lib/utils/snapshot.js +4 -4
- package/lib/utils/source-path.js +5 -5
- package/lib/utils/util.js +61 -41
- package/lib/v8/v8-summary.js +2 -4
- package/lib/v8/v8.js +11 -11
- package/migrate-to-3.md +175 -0
- package/package.json +153 -149
- package/skills/monocart-coverage-reports/SKILL.md +106 -0
- package/skills/monocart-coverage-reports/references/cli.md +108 -0
- package/skills/monocart-coverage-reports/references/collection.md +152 -0
- package/skills/monocart-coverage-reports/references/filtering-and-sourcemaps.md +170 -0
- package/skills/monocart-coverage-reports/references/reports-and-ci.md +219 -0
- package/skills/monocart-coverage-reports/references/repository-map.md +55 -0
- package/lib/index.mjs +0 -9
- package/lib/register/hooks.mjs +0 -3
- package/lib/register/register.mjs +0 -3
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { createRequire } from 'node:module'; const require = createRequire(import.meta.url);
|
|
2
|
+
import{a as be,b as v,c as vt}from"./chunks/chunk-RVOSNMVU.js";var Ie=v((Ri,ke)=>{var Ce=process||{},Ct=Ce.argv||[],ve=Ce.env||{},on=!(ve.NO_COLOR||Ct.includes("--no-color"))&&(!!ve.FORCE_COLOR||Ct.includes("--color")||Ce.platform==="win32"||(Ce.stdout||{}).isTTY&&ve.TERM!=="dumb"||!!ve.CI),sn=(i,e,t=i)=>r=>{let n=""+r,o=n.indexOf(e,i.length);return~o?i+ln(n,e,t,o)+e:i+n+e},ln=(i,e,t,r)=>{let n="",o=0;do n+=i.substring(o,r)+t,o=r+e.length,r=i.indexOf(e,o);while(~r);return n+i.substring(o)},_t=(i=on)=>{let e=i?sn:()=>String;return{isColorSupported:i,reset:e("\x1B[0m","\x1B[0m"),bold:e("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:e("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:e("\x1B[3m","\x1B[23m"),underline:e("\x1B[4m","\x1B[24m"),inverse:e("\x1B[7m","\x1B[27m"),hidden:e("\x1B[8m","\x1B[28m"),strikethrough:e("\x1B[9m","\x1B[29m"),black:e("\x1B[30m","\x1B[39m"),red:e("\x1B[31m","\x1B[39m"),green:e("\x1B[32m","\x1B[39m"),yellow:e("\x1B[33m","\x1B[39m"),blue:e("\x1B[34m","\x1B[39m"),magenta:e("\x1B[35m","\x1B[39m"),cyan:e("\x1B[36m","\x1B[39m"),white:e("\x1B[37m","\x1B[39m"),gray:e("\x1B[90m","\x1B[39m"),bgBlack:e("\x1B[40m","\x1B[49m"),bgRed:e("\x1B[41m","\x1B[49m"),bgGreen:e("\x1B[42m","\x1B[49m"),bgYellow:e("\x1B[43m","\x1B[49m"),bgBlue:e("\x1B[44m","\x1B[49m"),bgMagenta:e("\x1B[45m","\x1B[49m"),bgCyan:e("\x1B[46m","\x1B[49m"),bgWhite:e("\x1B[47m","\x1B[49m"),blackBright:e("\x1B[90m","\x1B[39m"),redBright:e("\x1B[91m","\x1B[39m"),greenBright:e("\x1B[92m","\x1B[39m"),yellowBright:e("\x1B[93m","\x1B[39m"),blueBright:e("\x1B[94m","\x1B[39m"),magentaBright:e("\x1B[95m","\x1B[39m"),cyanBright:e("\x1B[96m","\x1B[39m"),whiteBright:e("\x1B[97m","\x1B[39m"),bgBlackBright:e("\x1B[100m","\x1B[49m"),bgRedBright:e("\x1B[101m","\x1B[49m"),bgGreenBright:e("\x1B[102m","\x1B[49m"),bgYellowBright:e("\x1B[103m","\x1B[49m"),bgBlueBright:e("\x1B[104m","\x1B[49m"),bgMagentaBright:e("\x1B[105m","\x1B[49m"),bgCyanBright:e("\x1B[106m","\x1B[49m"),bgWhiteBright:e("\x1B[107m","\x1B[49m")}};ke.exports=_t();ke.exports.createColors=_t});var Be=v((Pi,xt)=>{"use strict";var _e=/[\t\n\f\r "#'()/;[\\\]{}]/g,Se=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,un=/.[\r\n"'(/\\]/,St=/[\da-f]/i;xt.exports=function(e,t={}){let r=e.css.valueOf(),n=t.ignoreErrors,o,s,u,l,f,a,p,c,h,d,w=r.length,m=0,b=[],y=[],C=-1;function S(){return m}function L(A){throw e.error("Unclosed "+A,m)}function x(){return y.length===0&&m>=w}function F(A){if(y.length)return y.pop();if(m>=w)return;let P=A?A.ignoreUnclosed:!1;switch(o=r.charCodeAt(m),o){case 10:case 32:case 9:case 13:case 12:{l=m;do l+=1,o=r.charCodeAt(l);while(o===32||o===10||o===9||o===13||o===12);a=["space",r.slice(m,l)],m=l-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let D=String.fromCharCode(o);a=[D,D,m];break}case 40:{if(d=b.length?b.pop()[1]:"",h=r.charCodeAt(m+1),d==="url"&&h!==39&&h!==34&&h!==32&&h!==10&&h!==9&&h!==12&&h!==13){l=m;do{if(p=!1,l=r.indexOf(")",l+1),l===-1)if(n||P){l=m;break}else L("bracket");for(c=l;r.charCodeAt(c-1)===92;)c-=1,p=!p}while(p);a=["brackets",r.slice(m,l+1),m,l],m=l}else m<=C?a=["(","(",m]:(l=r.indexOf(")",m+1),s=r.slice(m,l+1),l===-1||un.test(s)?(C=l===-1?w:l,a=["(","(",m]):(a=["brackets",s,m,l],m=l));break}case 39:case 34:{f=o===39?"'":'"',l=m;do{if(p=!1,l=r.indexOf(f,l+1),l===-1)if(n||P){l=m+1;break}else L("string");for(c=l;r.charCodeAt(c-1)===92;)c-=1,p=!p}while(p);a=["string",r.slice(m,l+1),m,l],m=l;break}case 64:{_e.lastIndex=m+1,_e.test(r),_e.lastIndex===0?l=r.length-1:l=_e.lastIndex-2,a=["at-word",r.slice(m,l+1),m,l],m=l;break}case 92:{for(l=m,u=!0;r.charCodeAt(l+1)===92;)l+=1,u=!u;if(o=r.charCodeAt(l+1),u&&o!==47&&o!==32&&o!==10&&o!==9&&o!==13&&o!==12&&(l+=1,St.test(r.charAt(l)))){for(;St.test(r.charAt(l+1));)l+=1;r.charCodeAt(l+1)===32&&(l+=1)}a=["word",r.slice(m,l+1),m,l],m=l;break}default:{o===47&&r.charCodeAt(m+1)===42?(l=r.indexOf("*/",m+2)+1,l===0&&(n||P?l=r.length:L("comment")),a=["comment",r.slice(m,l+1),m,l],m=l):(Se.lastIndex=m+1,Se.test(r),Se.lastIndex===0?l=r.length-1:l=Se.lastIndex-2,a=["word",r.slice(m,l+1),m,l],b.push(a),m=l);break}}return m++,a}function q(A){y.push(A)}return{back:q,endOfFile:x,nextToken:F,position:S}}});var qe=v((Ni,At)=>{"use strict";var N=Ie(),an=Be(),Ot;function fn(i){Ot=i}var cn={";":N.yellow,":":N.yellow,"(":N.cyan,")":N.cyan,"[":N.yellow,"]":N.yellow,"{":N.yellow,"}":N.yellow,"at-word":N.cyan,brackets:N.cyan,call:N.cyan,class:N.yellow,comment:N.gray,hash:N.magenta,string:N.green};function hn([i,e],t){if(i==="word"){if(e[0]===".")return"class";if(e[0]==="#")return"hash"}if(!t.endOfFile()){let r=t.nextToken();if(t.back(r),r[0]==="brackets"||r[0]==="(")return"call"}return i}function Lt(i){let e=an(new Ot(i),{ignoreErrors:!0}),t="";for(;!e.endOfFile();){let r=e.nextToken(),n=cn[hn(r,e)];n?t+=r[1].split(/\r?\n/).map(o=>n(o)).join(`
|
|
3
|
+
`):t+=r[1]}return t}Lt.registerInput=fn;At.exports=Lt});var De=v((Fi,Rt)=>{"use strict";var Et=Ie(),Mt=qe(),ne=class i extends Error{constructor(e,t,r,n,o,s){super(e),this.name="CssSyntaxError",this.reason=e,o&&(this.file=o),n&&(this.source=n),s&&(this.plugin=s),typeof t<"u"&&typeof r<"u"&&(typeof t=="number"?(this.line=t,this.column=r):(this.line=t.line,this.column=t.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,i)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;e==null&&(e=Et.isColorSupported);let r=a=>a,n=a=>a,o=a=>a;if(e){let{bold:a,gray:p,red:c}=Et.createColors(!0);n=h=>a(c(h)),r=h=>p(h),Mt&&(o=h=>Mt(h))}let s=t.split(/\r?\n/),u=Math.max(this.line-3,0),l=Math.min(this.line+2,s.length),f=String(l).length;return s.slice(u,l).map((a,p)=>{let c=u+1+p,h=" "+(" "+c).slice(-f)+" | ";if(c===this.line){if(a.length>160){let w=20,m=Math.max(0,this.column-w),b=Math.max(this.column+w,this.endColumn+w),y=a.slice(m,b),C=r(h.replace(/\d/g," "))+a.slice(0,Math.min(this.column-1,w-1)).replace(/[^\t]/g," ");return n(">")+r(h)+o(y)+`
|
|
4
|
+
`+C+n("^")}let d=r(h.replace(/\d/g," "))+a.slice(0,this.column-1).replace(/[^\t]/g," ");return n(">")+r(h)+o(a)+`
|
|
5
|
+
`+d+n("^")}return" "+r(h)+o(a)}).join(`
|
|
6
|
+
`)}toString(){let e=this.showSourceCode();return e&&(e=`
|
|
7
|
+
|
|
8
|
+
`+e+`
|
|
9
|
+
`),this.name+": "+this.message+e}};Rt.exports=ne;ne.default=ne});var Ue=v((Ti,kt)=>{"use strict";var pn=/[\t\n\f\r "#'()/;[\\\]{}]/,Pt={after:`
|
|
10
|
+
`,beforeClose:`
|
|
11
|
+
`,beforeComment:`
|
|
12
|
+
`,beforeDecl:`
|
|
13
|
+
`,beforeOpen:" ",beforeRule:`
|
|
14
|
+
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function dn(i){return i[0].toUpperCase()+i.slice(1)}function Nt(i,e){let t="@"+e.name,r=e.params?i.rawValue(e,"params"):"",n=e.raws.afterName;return typeof n>"u"?n=r?" ":"":n===""&&r&&!pn.test(r[0])&&(n=" "),t+n+r}function mn(i){if(!i.prop.startsWith("--"))return!1;let e=i.raws.before;return typeof e>"u"||!/[^\s;]$/.test(e)}function Tt(i,e,t){let r=t.nodes,n=r.length-1;for(;n>0&&r[n].type==="comment";)n-=1;let o=i.raw(t,"semicolon"),s=t.type==="document";for(let u=r.length-1;u>=0;u--){let l=r[u],f=n!==u||o;!f&&u<r.length-1&&(l.type==="atrule"&&!l.nodes||l.type==="decl"&&mn(l))&&(f=!0),e.push({document:s,node:l,semicolon:f})}}function Ft(i,e,t,r){let n=i.raw(t,"between","beforeOpen");i.builder(r+n+"{",t,"start");let o=t.nodes&&t.nodes.length,s=()=>{let u=o?i.raw(t,"after"):i.raw(t,"after","emptyBody");u&&i.builder(u),i.builder("}",t,"end"),t.type==="rule"&&t.raws.ownSemicolon&&i.builder(t.raws.ownSemicolon,t,"end")};o?(e.push(s),Tt(i,e,t)):s()}var ie=class i{constructor(e){this.builder=e}atrule(e,t){let r=Nt(this,e);if(e.nodes)this.block(e,r);else{let n=(e.raws.between||"")+(t?";":"");this.builder(r+n,e)}}beforeAfter(e,t){let r;e.type==="decl"?r=this.raw(e,null,"beforeDecl"):e.type==="comment"?r=this.raw(e,null,"beforeComment"):t==="before"?r=this.raw(e,null,"beforeRule"):r=this.raw(e,null,"beforeClose");let n=e.parent,o=0;for(;n&&n.type!=="root";)o+=1,n=n.parent;if(r.includes(`
|
|
15
|
+
`)){let s=this.raw(e,null,"indent");if(s.length)for(let u=0;u<o;u++)r+=s}return r}block(e,t){let r=this.raw(e,"between","beforeOpen");this.builder(t+r+"{",e,"start");let n;e.nodes&&e.nodes.length?(this.body(e),n=this.raw(e,"after")):n=this.raw(e,"after","emptyBody"),n&&this.builder(n),this.builder("}",e,"end")}body(e){let t=i.prototype,r=["atrule","block","body","rule","stringify"].every(o=>this[o]===t[o]),n=[];for(Tt(this,n,e);n.length>0;){let o=n.pop();if(typeof o=="function"){o();continue}let s=o.node,u=this.raw(s,"before");u&&this.builder(u),r&&s.type==="rule"?Ft(this,n,s,this.rawValue(s,"selector")):r&&s.type==="atrule"&&s.nodes?Ft(this,n,s,Nt(this,s)):this.stringify(s,o.semicolon)}}comment(e){let t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)}decl(e,t){let r=e.raws,n=this.raw(e,"between","colon"),o=e.prop+n+this.rawValue(e,"value");e.important&&(o+=r.important||" !important"),t&&(o+=";"),this.builder(o,e)}document(e){this.body(e)}raw(e,t,r){let n;if(r||(r=t),t&&(n=e.raws[t],typeof n<"u"))return n;let o=e.parent;if(r==="before"&&(!o||o.type==="root"&&o.first===e||o&&o.type==="document"))return"";if(!o)return Pt[r];let s=e.root(),u=s.rawCache||(s.rawCache={});if(typeof u[r]<"u")return u[r];if(r==="before"||r==="after")return this.beforeAfter(e,r);{let l="raw"+dn(r);this[l]?n=this[l](s,e):s.walk(f=>{if(n=f.raws[t],typeof n<"u")return!1})}return typeof n>"u"&&(n=Pt[r]),u[r]=n,n}rawBeforeClose(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length>0&&typeof r.raws.after<"u")return t=r.raws.after,t.includes(`
|
|
16
|
+
`)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let r;return e.walkComments(n=>{if(typeof n.raws.before<"u")return r=n.raws.before,r.includes(`
|
|
17
|
+
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,t){let r;return e.walkDecls(n=>{if(typeof n.raws.before<"u")return r=n.raws.before,r.includes(`
|
|
18
|
+
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let t;return e.walk(r=>{if(r.type!=="decl"&&(t=r.raws.between,typeof t<"u"))return!1}),t}rawBeforeRule(e){let t;return e.walk(r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&typeof r.raws.before<"u")return t=r.raws.before,t.includes(`
|
|
19
|
+
`)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(r=>{if(typeof r.raws.between<"u")return t=r.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length===0&&(t=r.raws.after,typeof t<"u"))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(r=>{let n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&typeof r.raws.before<"u"){let o=r.raws.before.split(`
|
|
20
|
+
`);return t=o[o.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length&&r.last.type==="decl"&&(t=r.raws.semicolon,typeof t<"u"))return!1}),t}rawValue(e,t){let r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r}root(e){!(e.parent&&e.parent.type==="document")&&e.source&&e.source.input.hasBOM&&this.builder("\uFEFF",e,"start"),this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}};kt.exports=ie;ie.default=ie});var Bt=v((ki,It)=>{"use strict";var gn=Ue(),wn=/(<)(\/?style\b)/gi,yn=/(<)(!--)/g;function bn(i){return i.includes("<")?i.replace(wn,"\\3c $2").replace(yn,"\\3c $2"):i}var Ge=class extends gn{escapeHTML(e,t){let r=this.builder,n,o;if(this.builder=(u,l,f)=>{n?(o+=u,n.push(u,l,f)):u.includes("<")?(o=u,n=[u,l,f]):r(u,l,f)},t(),this.builder=r,!n)return;let s=bn(o);if(s===o)for(let u=0;u<n.length;u+=3)r(n[u],n[u+1],n[u+2]);else r(s,e,"start")}root(e){e.parent&&e.parent.type==="document"?(this.escapeHTML(e,()=>this.body(e)),e.raws.after&&this.builder(e.raws.after)):this.escapeHTML(e,()=>super.root(e))}};function je(i,e){let t=new Ge(e);i.type==="root"||i.type==="document"?t.stringify(i):t.escapeHTML(i,()=>t.stringify(i))}It.exports=je;je.default=je});var ze=v((Ii,$e)=>{"use strict";$e.exports.isClean=Symbol("isClean");$e.exports.my=Symbol("my")});var xe=v((Bi,qt)=>{"use strict";var vn=De(),Cn=Ue(),_n=Bt(),{isClean:oe,my:Sn}=ze();function xn(i,e){let t=new i.constructor,r=[[i,t,e]];for(;r.length>0;){let[n,o,s]=r.pop();for(let u in n){if(!Object.prototype.hasOwnProperty.call(n,u)||u==="proxyCache")continue;let l=n[u],f=typeof l;if(u==="parent"&&f==="object")s&&(o[u]=s);else if(u==="source")o[u]=l;else if(Array.isArray(l)){let a=[];o[u]=a;for(let p of l){let c=new p.constructor;a.push(c),r.push([p,c,o])}}else{if(f==="object"&&l!==null){let a=new l.constructor;r.push([l,a,void 0]),l=a}o[u]=l}}}return t}function G(i,e){if(e&&typeof e.offset<"u")return e.offset;let t=1,r=1,n=0;for(let o=0;o<i.length;o++){if(r===e.line&&t===e.column){n=o;break}i[o]===`
|
|
21
|
+
`?(t=1,r+=1):t+=1}return n}var se=class i{get proxyOf(){return this}constructor(e={}){this.raws={},this[oe]=!1,this[Sn]=!0;for(let t of Object.keys(e))if(t!=="__proto__")if(t==="nodes"){this.nodes=[];for(let r of e[t])typeof r.clone=="function"&&r.parent?this.append(r.clone()):this.append(r)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=xn(this);for(let r in e)t[r]=e[r];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:r,start:n}=this.rangeBy(t);return this.source.input.error(e,{column:n.column,line:n.line},{column:r.column,line:r.line},t)}return new vn(e)}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:t==="root"?()=>e.root().toProxy():e[t]},set(e,t,r){return e[t]===r||(e[t]=r,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&e.markDirty()),!0}}}markClean(){this[oe]=!0}markDirty(){if(this[oe]){this[oe]=!1;let e=this;for(;e=e.parent;)e[oe]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e={}){let t="document"in this.source.input?this.source.input.document:this.source.input.css,r={column:this.source.start.column,line:this.source.start.line,offset:G(t,this.source.start)};if(e.index)r=this.positionInside(e.index);else if(e.word){let o=t.slice(G(t,this.source.start),G(t,this.source.end)).indexOf(e.word);o!==-1&&(r=this.positionInside(o))}return r}positionInside(e){let t=this.source.start.column,r=this.source.start.line,n="document"in this.source.input?this.source.input.document:this.source.input.css,o=G(n,this.source.start),s=o+e;for(let u=o;u<s;u++)n[u]===`
|
|
22
|
+
`?(t=1,r+=1):t+=1;return{column:t,line:r,offset:s}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e={}){let t="document"in this.source.input?this.source.input.document:this.source.input.css,r={column:this.source.start.column,line:this.source.start.line,offset:G(t,this.source.start)},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:G(t,this.source.end)+1}:{column:r.column+1,line:r.line,offset:r.offset+1};if(e.word){let s=t.slice(G(t,this.source.start),G(t,this.source.end)).indexOf(e.word);s!==-1&&(r=this.positionInside(s),n=this.positionInside(s+e.word.length))}else e.start?r={column:e.start.column,line:e.start.line,offset:G(t,e.start)}:typeof e.index=="number"&&(r=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line,offset:G(t,e.end)}:typeof e.endIndex=="number"?n=this.positionInside(e.endIndex):typeof e.index=="number"&&(n=this.positionInside(e.index+1));return(n.line<r.line||n.line===r.line&&n.column<=r.column)&&(n={column:r.column+1,line:r.line,offset:r.offset+1}),{end:n,start:r}}raw(e,t){return new Cn().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,r=!1;for(let n of e)n===this?r=!0:r?(this.parent.insertAfter(t,n),t=n):this.parent.insertBefore(t,n);r||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,t){let r=t==null;t=t||new Map;let n=[],o=[[this,n,0]];for(let u=0;u<o.length;u++){let[l,f,a]=o[u],p={};f[a]=p;for(let c in l){if(!Object.prototype.hasOwnProperty.call(l,c)||c==="parent"||c==="proxyCache")continue;let h=l[c];if(Array.isArray(h)){let d=[];p[c]=d;for(let w=0;w<h.length;w++){let m=h[w];typeof m=="object"&&m.toJSON?m.toJSON===i.prototype.toJSON?o.push([m,d,w]):d[w]=m.toJSON(null,t):d[w]=m}}else if(typeof h=="object"&&h.toJSON)h.toJSON===i.prototype.toJSON?o.push([h,p,c]):p[c]=h.toJSON(null,t);else if(c==="source"){if(h==null)continue;let d=t.get(h.input);d==null&&(d=t.size,t.set(h.input,d)),p[c]={end:h.end,inputId:d,start:h.start}}else p[c]=h}}let s=n[0];return r&&(s.inputs=[...t.keys()].map(u=>u.toJSON())),s}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=_n){e.stringify&&(e=e.stringify);let t="";return e(this,r=>{t+=r}),t}warn(e,t,r={}){let n={node:this};for(let o in r)n[o]=r[o];return e.warn(t,n)}};qt.exports=se;se.default=se});var We=v((qi,Dt)=>{"use strict";var On=xe(),le=class extends On{constructor(e){super(e),this.type="comment"}};Dt.exports=le;le.default=le});var Qe=v((Di,Ut)=>{"use strict";var Ln=xe(),ue=class extends Ln{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}};Ut.exports=ue;ue.default=ue});var ae=v((Ui,Ht)=>{"use strict";var jt=We(),$t=Qe(),Gt=xe(),{isClean:zt,my:Wt}=ze(),Je,Qt,Jt,He;function An(i){let e=i.slice();for(;e.length>0;){let t=e.pop();if(delete t.source,t.nodes){t.nodes=t.nodes.slice();for(let r of t.nodes)e.push(r)}}return i.slice()}function En(i){let e=[i];for(;e.length>0;){let t=e.pop();if(t[zt]=!1,t.proxyOf.nodes)for(let r of t.proxyOf.nodes)e.push(r)}}var j=class i extends Gt{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...e){for(let t of e){let r=this.normalize(t,this.last);for(let n of r)this.proxyOf.nodes.push(n)}return this.markDirty(),this}cleanRaws(e){let t=[this];for(;t.length>0;){let r=t.pop();if(r!==this&&r.cleanRaws!==i.prototype.cleanRaws){r.cleanRaws(e);continue}if(Gt.prototype.cleanRaws.call(r,e),r.nodes)for(let n of r.nodes)t.push(n)}}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),r,n;for(;this.indexes[t]<this.proxyOf.nodes.length&&(r=this.indexes[t],n=e(this.proxyOf.nodes[r],r),n!==!1);)this.indexes[t]+=1;return delete this.indexes[t],n}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:e[t]?t==="each"||typeof t=="string"&&t.startsWith("walk")?(...r)=>e[t](...r.map(n=>typeof n=="function"?(o,s)=>n(o.toProxy(),s):n)):t==="every"||t==="some"?r=>e[t]((n,...o)=>r(n.toProxy(),...o)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(r=>r.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,r){return e[t]===r||(e[t]=r,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let r=this.index(e),n=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let s of n)this.proxyOf.nodes.splice(r+1,0,s);let o;for(let s in this.indexes)o=this.indexes[s],r<o&&(this.indexes[s]=o+n.length);return this.markDirty(),this}insertBefore(e,t){let r=this.index(e),n=r===0?"prepend":!1,o=this.normalize(t,this.proxyOf.nodes[r],n).reverse();r=this.index(e);for(let u of o)this.proxyOf.nodes.splice(r,0,u);let s;for(let u in this.indexes)s=this.indexes[u],r<=s&&(this.indexes[u]=s+o.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=An(Qt(e).nodes);else if(typeof e>"u")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let n of e)n.parent&&n.parent.removeChild(n,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let n of e)n.parent&&n.parent.removeChild(n,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new $t(e)]}else if(e.selector||e.selectors)e=[new He(e)];else if(e.name)e=[new Je(e)];else if(e.text)e=[new jt(e)];else throw new Error("Unknown node type in node creation");return e.map(n=>(n[Wt]||i.rebuild(n),n=n.proxyOf,n.parent&&n.parent.removeChild(n),n[zt]&&En(n),n.raws||(n.raws={}),typeof n.raws.before>"u"&&t&&typeof t.raws.before<"u"&&(n.raws.before=t.raws.before.replace(/\S/g,"")),n.parent=this.proxyOf,n))}prepend(...e){e=e.reverse();for(let t of e){let r=this.normalize(t,this.first,"prepend").reverse();for(let n of r)this.proxyOf.nodes.unshift(n);for(let n in this.indexes)this.indexes[n]=this.indexes[n]+r.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let r in this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls(n=>{t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){if(!this.proxyOf.nodes)return;let t=[{iterator:this.getIterator(),node:this.proxyOf}];for(;t.length>0;){let{iterator:r,node:n}=t[t.length-1],o=n.indexes[r];if(o>=n.proxyOf.nodes.length){delete n.indexes[r],t.pop();let l=t[t.length-1];l&&(l.node.indexes[l.iterator]+=1);continue}let s=n.proxyOf.nodes[o],u;try{u=e(s,o)}catch(l){throw s.addToError(l)}if(u===!1){for(let l of t)delete l.node.indexes[l.iterator];return!1}s.walk&&s.proxyOf.nodes?t.push({iterator:s.getIterator(),node:s}):n.indexes[r]+=1}}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((r,n)=>{if(r.type==="atrule"&&e.test(r.name))return t(r,n)}):this.walk((r,n)=>{if(r.type==="atrule"&&r.name===e)return t(r,n)}):(t=e,this.walk((r,n)=>{if(r.type==="atrule")return t(r,n)}))}walkComments(e){return this.walk((t,r)=>{if(t.type==="comment")return e(t,r)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((r,n)=>{if(r.type==="decl"&&e.test(r.prop))return t(r,n)}):this.walk((r,n)=>{if(r.type==="decl"&&r.prop===e)return t(r,n)}):(t=e,this.walk((r,n)=>{if(r.type==="decl")return t(r,n)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((r,n)=>{if(r.type==="rule"&&e.test(r.selector))return t(r,n)}):this.walk((r,n)=>{if(r.type==="rule"&&r.selector===e)return t(r,n)}):(t=e,this.walk((r,n)=>{if(r.type==="rule")return t(r,n)}))}};j.registerParse=i=>{Qt=i};j.registerRule=i=>{He=i};j.registerAtRule=i=>{Je=i};j.registerRoot=i=>{Jt=i};Ht.exports=j;j.default=j;j.rebuild=i=>{let e=[i];for(;e.length>0;){let t=e.pop();if(t.type==="atrule"?Object.setPrototypeOf(t,Je.prototype):t.type==="rule"?Object.setPrototypeOf(t,He.prototype):t.type==="decl"?Object.setPrototypeOf(t,$t.prototype):t.type==="comment"?Object.setPrototypeOf(t,jt.prototype):t.type==="root"&&Object.setPrototypeOf(t,Jt.prototype),t[Wt]=!0,t.nodes)for(let r of t.nodes)e.push(r)}}});var Yt=v((Gi,Vt)=>{var Mn="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Rn=(i,e=21)=>(t=e)=>{let r="",n=t|0;for(;n-- >0;)r+=i[Math.random()*i.length|0];return r},Pn=(i=21)=>{let e="",t=i|0;for(;t-- >0;)e+=Mn[Math.random()*64|0];return e};Vt.exports={nanoid:Pn,customAlphabet:Rn}});var Xt=v(Ve=>{var Kt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");Ve.encode=function(i){if(0<=i&&i<Kt.length)return Kt[i];throw new TypeError("Must be between 0 and 63: "+i)};Ve.decode=function(i){var e=65,t=90,r=97,n=122,o=48,s=57,u=43,l=47,f=26,a=52;return e<=i&&i<=t?i-e:r<=i&&i<=n?i-r+f:o<=i&&i<=s?i-o+a:i==u?62:i==l?63:-1}});var Xe=v(Ke=>{var Zt=Xt(),Ye=5,er=1<<Ye,tr=er-1,rr=er;function Nn(i){return i<0?(-i<<1)+1:(i<<1)+0}function Fn(i){var e=(i&1)===1,t=i>>1;return e?-t:t}Ke.encode=function(e){var t="",r,n=Nn(e);do r=n&tr,n>>>=Ye,n>0&&(r|=rr),t+=Zt.encode(r);while(n>0);return t};Ke.decode=function(e,t,r){var n=e.length,o=0,s=0,u,l;do{if(t>=n)throw new Error("Expected more digits in base 64 VLQ value.");if(l=Zt.decode(e.charCodeAt(t++)),l===-1)throw new Error("Invalid base64 digit: "+e.charAt(t-1));u=!!(l&rr),l&=tr,o=o+(l<<s),s+=Ye}while(u);r.value=Fn(o),r.rest=t}});var K=v(E=>{function Tn(i,e,t){if(e in i)return i[e];if(arguments.length===3)return t;throw new Error('"'+e+'" is a required argument.')}E.getArg=Tn;var nr=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,kn=/^data:.+\,.+$/;function fe(i){var e=i.match(nr);return e?{scheme:e[1],auth:e[2],host:e[3],port:e[4],path:e[5]}:null}E.urlParse=fe;function Y(i){var e="";return i.scheme&&(e+=i.scheme+":"),e+="//",i.auth&&(e+=i.auth+"@"),i.host&&(e+=i.host),i.port&&(e+=":"+i.port),i.path&&(e+=i.path),e}E.urlGenerate=Y;var In=32;function Bn(i){var e=[];return function(t){for(var r=0;r<e.length;r++)if(e[r].input===t){var n=e[0];return e[0]=e[r],e[r]=n,e[0].result}var o=i(t);return e.unshift({input:t,result:o}),e.length>In&&e.pop(),o}}var Ze=Bn(function(e){var t=e,r=fe(e);if(r){if(!r.path)return e;t=r.path}for(var n=E.isAbsolute(t),o=[],s=0,u=0;;)if(s=u,u=t.indexOf("/",s),u===-1){o.push(t.slice(s));break}else for(o.push(t.slice(s,u));u<t.length&&t[u]==="/";)u++;for(var l,f=0,u=o.length-1;u>=0;u--)l=o[u],l==="."?o.splice(u,1):l===".."?f++:f>0&&(l===""?(o.splice(u+1,f),f=0):(o.splice(u,2),f--));return t=o.join("/"),t===""&&(t=n?"/":"."),r?(r.path=t,Y(r)):t});E.normalize=Ze;function ir(i,e){i===""&&(i="."),e===""&&(e=".");var t=fe(e),r=fe(i);if(r&&(i=r.path||"/"),t&&!t.scheme)return r&&(t.scheme=r.scheme),Y(t);if(t||e.match(kn))return e;if(r&&!r.host&&!r.path)return r.host=e,Y(r);var n=e.charAt(0)==="/"?e:Ze(i.replace(/\/+$/,"")+"/"+e);return r?(r.path=n,Y(r)):n}E.join=ir;E.isAbsolute=function(i){return i.charAt(0)==="/"||nr.test(i)};function qn(i,e){i===""&&(i="."),i=i.replace(/\/$/,"");for(var t=0;e.indexOf(i+"/")!==0;){var r=i.lastIndexOf("/");if(r<0||(i=i.slice(0,r),i.match(/^([^\/]+:\/)?\/*$/)))return e;++t}return Array(t+1).join("../")+e.substr(i.length+1)}E.relative=qn;var or=(function(){var i=Object.create(null);return!("__proto__"in i)})();function sr(i){return i}function Dn(i){return lr(i)?"$"+i:i}E.toSetString=or?sr:Dn;function Un(i){return lr(i)?i.slice(1):i}E.fromSetString=or?sr:Un;function lr(i){if(!i)return!1;var e=i.length;if(e<9||i.charCodeAt(e-1)!==95||i.charCodeAt(e-2)!==95||i.charCodeAt(e-3)!==111||i.charCodeAt(e-4)!==116||i.charCodeAt(e-5)!==111||i.charCodeAt(e-6)!==114||i.charCodeAt(e-7)!==112||i.charCodeAt(e-8)!==95||i.charCodeAt(e-9)!==95)return!1;for(var t=e-10;t>=0;t--)if(i.charCodeAt(t)!==36)return!1;return!0}function Gn(i,e,t){var r=$(i.source,e.source);return r!==0||(r=i.originalLine-e.originalLine,r!==0)||(r=i.originalColumn-e.originalColumn,r!==0||t)||(r=i.generatedColumn-e.generatedColumn,r!==0)||(r=i.generatedLine-e.generatedLine,r!==0)?r:$(i.name,e.name)}E.compareByOriginalPositions=Gn;function jn(i,e,t){var r;return r=i.originalLine-e.originalLine,r!==0||(r=i.originalColumn-e.originalColumn,r!==0||t)||(r=i.generatedColumn-e.generatedColumn,r!==0)||(r=i.generatedLine-e.generatedLine,r!==0)?r:$(i.name,e.name)}E.compareByOriginalPositionsNoSource=jn;function $n(i,e,t){var r=i.generatedLine-e.generatedLine;return r!==0||(r=i.generatedColumn-e.generatedColumn,r!==0||t)||(r=$(i.source,e.source),r!==0)||(r=i.originalLine-e.originalLine,r!==0)||(r=i.originalColumn-e.originalColumn,r!==0)?r:$(i.name,e.name)}E.compareByGeneratedPositionsDeflated=$n;function zn(i,e,t){var r=i.generatedColumn-e.generatedColumn;return r!==0||t||(r=$(i.source,e.source),r!==0)||(r=i.originalLine-e.originalLine,r!==0)||(r=i.originalColumn-e.originalColumn,r!==0)?r:$(i.name,e.name)}E.compareByGeneratedPositionsDeflatedNoLine=zn;function $(i,e){return i===e?0:i===null?1:e===null?-1:i>e?1:-1}function Wn(i,e){var t=i.generatedLine-e.generatedLine;return t!==0||(t=i.generatedColumn-e.generatedColumn,t!==0)||(t=$(i.source,e.source),t!==0)||(t=i.originalLine-e.originalLine,t!==0)||(t=i.originalColumn-e.originalColumn,t!==0)?t:$(i.name,e.name)}E.compareByGeneratedPositionsInflated=Wn;function Qn(i){return JSON.parse(i.replace(/^\)]}'[^\n]*\n/,""))}E.parseSourceMapInput=Qn;function Jn(i,e,t){if(e=e||"",i&&(i[i.length-1]!=="/"&&e[0]!=="/"&&(i+="/"),e=i+e),t){var r=fe(t);if(!r)throw new Error("sourceMapURL could not be parsed");if(r.path){var n=r.path.lastIndexOf("/");n>=0&&(r.path=r.path.substring(0,n+1))}e=ir(Y(r),e)}return Ze(e)}E.computeSourceURL=Jn});var rt=v(ur=>{var et=K(),tt=Object.prototype.hasOwnProperty,J=typeof Map<"u";function z(){this._array=[],this._set=J?new Map:Object.create(null)}z.fromArray=function(e,t){for(var r=new z,n=0,o=e.length;n<o;n++)r.add(e[n],t);return r};z.prototype.size=function(){return J?this._set.size:Object.getOwnPropertyNames(this._set).length};z.prototype.add=function(e,t){var r=J?e:et.toSetString(e),n=J?this.has(e):tt.call(this._set,r),o=this._array.length;(!n||t)&&this._array.push(e),n||(J?this._set.set(e,o):this._set[r]=o)};z.prototype.has=function(e){if(J)return this._set.has(e);var t=et.toSetString(e);return tt.call(this._set,t)};z.prototype.indexOf=function(e){if(J){var t=this._set.get(e);if(t>=0)return t}else{var r=et.toSetString(e);if(tt.call(this._set,r))return this._set[r]}throw new Error('"'+e+'" is not in the set.')};z.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)};z.prototype.toArray=function(){return this._array.slice()};ur.ArraySet=z});var cr=v(fr=>{var ar=K();function Hn(i,e){var t=i.generatedLine,r=e.generatedLine,n=i.generatedColumn,o=e.generatedColumn;return r>t||r==t&&o>=n||ar.compareByGeneratedPositionsInflated(i,e)<=0}function Oe(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}Oe.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)};Oe.prototype.add=function(e){Hn(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))};Oe.prototype.toArray=function(){return this._sorted||(this._array.sort(ar.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};fr.MappingList=Oe});var nt=v(hr=>{var ce=Xe(),O=K(),Le=rt().ArraySet,Vn=cr().MappingList;function I(i){i||(i={}),this._file=O.getArg(i,"file",null),this._sourceRoot=O.getArg(i,"sourceRoot",null),this._skipValidation=O.getArg(i,"skipValidation",!1),this._ignoreInvalidMapping=O.getArg(i,"ignoreInvalidMapping",!1),this._sources=new Le,this._names=new Le,this._mappings=new Vn,this._sourcesContents=null}I.prototype._version=3;I.fromSourceMap=function(e,t){var r=e.sourceRoot,n=new I(Object.assign(t||{},{file:e.file,sourceRoot:r}));return e.eachMapping(function(o){var s={generated:{line:o.generatedLine,column:o.generatedColumn}};o.source!=null&&(s.source=o.source,r!=null&&(s.source=O.relative(r,s.source)),s.original={line:o.originalLine,column:o.originalColumn},o.name!=null&&(s.name=o.name)),n.addMapping(s)}),e.sources.forEach(function(o){var s=o;r!==null&&(s=O.relative(r,o)),n._sources.has(s)||n._sources.add(s);var u=e.sourceContentFor(o);u!=null&&n.setSourceContent(o,u)}),n};I.prototype.addMapping=function(e){var t=O.getArg(e,"generated"),r=O.getArg(e,"original",null),n=O.getArg(e,"source",null),o=O.getArg(e,"name",null);!this._skipValidation&&this._validateMapping(t,r,n,o)===!1||(n!=null&&(n=String(n),this._sources.has(n)||this._sources.add(n)),o!=null&&(o=String(o),this._names.has(o)||this._names.add(o)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:r!=null&&r.line,originalColumn:r!=null&&r.column,source:n,name:o}))};I.prototype.setSourceContent=function(e,t){var r=e;this._sourceRoot!=null&&(r=O.relative(this._sourceRoot,r)),t!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[O.toSetString(r)]=t):this._sourcesContents&&(delete this._sourcesContents[O.toSetString(r)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};I.prototype.applySourceMap=function(e,t,r){var n=t;if(t==null){if(e.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);n=e.file}var o=this._sourceRoot;o!=null&&(n=O.relative(o,n));var s=new Le,u=new Le;this._mappings.unsortedForEach(function(l){if(l.source===n&&l.originalLine!=null){var f=e.originalPositionFor({line:l.originalLine,column:l.originalColumn});f.source!=null&&(l.source=f.source,r!=null&&(l.source=O.join(r,l.source)),o!=null&&(l.source=O.relative(o,l.source)),l.originalLine=f.line,l.originalColumn=f.column,f.name!=null&&(l.name=f.name))}var a=l.source;a!=null&&!s.has(a)&&s.add(a);var p=l.name;p!=null&&!u.has(p)&&u.add(p)},this),this._sources=s,this._names=u,e.sources.forEach(function(l){var f=e.sourceContentFor(l);f!=null&&(r!=null&&(l=O.join(r,l)),o!=null&&(l=O.relative(o,l)),this.setSourceContent(l,f))},this)};I.prototype._validateMapping=function(e,t,r,n){if(t&&typeof t.line!="number"&&typeof t.column!="number"){var o="original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.";if(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(o),!1;throw new Error(o)}if(!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!t&&!r&&!n)){if(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&r)return;var o="Invalid mapping: "+JSON.stringify({generated:e,source:r,original:t,name:n});if(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(o),!1;throw new Error(o)}};I.prototype._serializeMappings=function(){for(var e=0,t=1,r=0,n=0,o=0,s=0,u="",l,f,a,p,c=this._mappings.toArray(),h=0,d=c.length;h<d;h++){if(f=c[h],l="",f.generatedLine!==t){e=0;var w=f.generatedLine-t;l+=w===1?";":";".repeat(w),t=f.generatedLine}else if(h>0){if(!O.compareByGeneratedPositionsInflated(f,c[h-1]))continue;l+=","}l+=ce.encode(f.generatedColumn-e),e=f.generatedColumn,f.source!=null&&(p=this._sources.indexOf(f.source),l+=ce.encode(p-s),s=p,l+=ce.encode(f.originalLine-1-n),n=f.originalLine-1,l+=ce.encode(f.originalColumn-r),r=f.originalColumn,f.name!=null&&(a=this._names.indexOf(f.name),l+=ce.encode(a-o),o=a)),u+=l}return u};I.prototype._generateSourcesContent=function(e,t){return e.map(function(r){if(!this._sourcesContents)return null;t!=null&&(r=O.relative(t,r));var n=O.toSetString(r);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null},this)};I.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(e.file=this._file),this._sourceRoot!=null&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e};I.prototype.toString=function(){return JSON.stringify(this.toJSON())};hr.SourceMapGenerator=I});var pr=v(H=>{H.GREATEST_LOWER_BOUND=1;H.LEAST_UPPER_BOUND=2;function it(i,e,t,r,n,o){var s=Math.floor((e-i)/2)+i,u=n(t,r[s],!0);return u===0?s:u>0?e-s>1?it(s,e,t,r,n,o):o==H.LEAST_UPPER_BOUND?e<r.length?e:-1:s:s-i>1?it(i,s,t,r,n,o):o==H.LEAST_UPPER_BOUND?s:i<0?-1:i}H.search=function(e,t,r,n){if(t.length===0)return-1;var o=it(-1,t.length,e,t,r,n||H.GREATEST_LOWER_BOUND);if(o<0)return-1;for(;o-1>=0&&r(t[o],t[o-1],!0)===0;)--o;return o}});var wr=v(gr=>{function mr(i){function e(n,o,s){var u=n[o];n[o]=n[s],n[s]=u}function t(n,o){return Math.round(n+Math.random()*(o-n))}function r(n,o,s,u){if(s<u){var l=t(s,u),f=s-1;e(n,l,u);for(var a=n[u],p=s;p<u;p++)o(n[p],a,!1)<=0&&(f+=1,e(n,f,p));e(n,f+1,p);var c=f+1;r(n,o,s,c-1),r(n,o,c+1,u)}}return r}function Yn(i){let e=mr.toString();return new Function(`return ${e}`)()(i)}var Kn=(function(){try{return new Function("return 0")(),!0}catch{return!1}})(),dr=new WeakMap;gr.quickSort=function(i,e,t=0){let r=Kn?dr.get(e):mr(e);r===void 0&&(r=Yn(e),dr.set(e,r)),r(i,e,t,i.length-1)}});var Cr=v(Ee=>{var g=K(),st=pr(),X=rt().ArraySet,Xn=Xe(),he=wr().quickSort,Ae=1e7;function _(i,e){var t=i;return typeof i=="string"&&(t=g.parseSourceMapInput(i)),t.sections!=null?new B(t,e):new M(t,e)}_.fromSourceMap=function(i,e){return M.fromSourceMap(i,e)};_.prototype._version=3;_.prototype.__generatedMappings=null;Object.defineProperty(_.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});_.prototype.__originalMappings=null;Object.defineProperty(_.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});_.prototype._charIsMappingSeparator=function(e,t){var r=e.charAt(t);return r===";"||r===","};_.prototype._parseMappings=function(e,t){throw new Error("Subclasses must implement _parseMappings")};_.GENERATED_ORDER=1;_.ORIGINAL_ORDER=2;_.GREATEST_LOWER_BOUND=1;_.LEAST_UPPER_BOUND=2;_.prototype.eachMapping=function(e,t,r){var n=t||null,o=r||_.GENERATED_ORDER,s;switch(o){case _.GENERATED_ORDER:s=this._generatedMappings;break;case _.ORIGINAL_ORDER:s=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}for(var u=this.sourceRoot,l=e.bind(n),f=this._names,a=this._sources,p=this._sourceMapURL,c=0,h=s.length;c<h;c++){var d=s[c],w=d.source===null?null:a.at(d.source);w!==null&&(w=g.computeSourceURL(u,w,p)),l({source:w,generatedLine:d.generatedLine,generatedColumn:d.generatedColumn,originalLine:d.originalLine,originalColumn:d.originalColumn,name:d.name===null?null:f.at(d.name)})}};_.prototype.allGeneratedPositionsFor=function(e){var t=g.getArg(e,"line"),r={source:g.getArg(e,"source"),originalLine:t,originalColumn:g.getArg(e,"column",0)};if(r.source=this._findSourceIndex(r.source),r.source<0)return[];var n=[],o=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",g.compareByOriginalPositions,st.LEAST_UPPER_BOUND);if(o>=0){var s=this._originalMappings[o];if(e.column===void 0)for(var u=s.originalLine;s&&s.originalLine===u;)n.push({line:g.getArg(s,"generatedLine",null),column:g.getArg(s,"generatedColumn",null),lastColumn:g.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++o];else for(var l=s.originalColumn;s&&s.originalLine===t&&s.originalColumn==l;)n.push({line:g.getArg(s,"generatedLine",null),column:g.getArg(s,"generatedColumn",null),lastColumn:g.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++o]}return n};Ee.SourceMapConsumer=_;function M(i,e){var t=i;typeof i=="string"&&(t=g.parseSourceMapInput(i));var r=g.getArg(t,"version"),n=g.getArg(t,"sources"),o=g.getArg(t,"names",[]),s=g.getArg(t,"sourceRoot",null),u=g.getArg(t,"sourcesContent",null),l=g.getArg(t,"mappings"),f=g.getArg(t,"file",null);if(r!=this._version)throw new Error("Unsupported version: "+r);s&&(s=g.normalize(s)),n=n.map(String).map(g.normalize).map(function(a){return s&&g.isAbsolute(s)&&g.isAbsolute(a)?g.relative(s,a):a}),this._names=X.fromArray(o.map(String),!0),this._sources=X.fromArray(n,!0),this._absoluteSources=this._sources.toArray().map(function(a){return g.computeSourceURL(s,a,e)}),this.sourceRoot=s,this.sourcesContent=u,this._mappings=l,this._sourceMapURL=e,this.file=f}M.prototype=Object.create(_.prototype);M.prototype.consumer=_;M.prototype._findSourceIndex=function(i){var e=i;if(this.sourceRoot!=null&&(e=g.relative(this.sourceRoot,e)),this._sources.has(e))return this._sources.indexOf(e);var t;for(t=0;t<this._absoluteSources.length;++t)if(this._absoluteSources[t]==i)return t;return-1};M.fromSourceMap=function(e,t){var r=Object.create(M.prototype),n=r._names=X.fromArray(e._names.toArray(),!0),o=r._sources=X.fromArray(e._sources.toArray(),!0);r.sourceRoot=e._sourceRoot,r.sourcesContent=e._generateSourcesContent(r._sources.toArray(),r.sourceRoot),r.file=e._file,r._sourceMapURL=t,r._absoluteSources=r._sources.toArray().map(function(h){return g.computeSourceURL(r.sourceRoot,h,t)});for(var s=e._mappings.toArray().slice(),u=r.__generatedMappings=[],l=r.__originalMappings=[],f=0,a=s.length;f<a;f++){var p=s[f],c=new vr;c.generatedLine=p.generatedLine,c.generatedColumn=p.generatedColumn,p.source&&(c.source=o.indexOf(p.source),c.originalLine=p.originalLine,c.originalColumn=p.originalColumn,p.name&&(c.name=n.indexOf(p.name)),l.push(c)),u.push(c)}return he(r.__originalMappings,g.compareByOriginalPositions),r};M.prototype._version=3;Object.defineProperty(M.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function vr(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}var ot=g.compareByGeneratedPositionsDeflatedNoLine;function yr(i,e){let t=i.length,r=i.length-e;if(!(r<=1))if(r==2){let n=i[e],o=i[e+1];ot(n,o)>0&&(i[e]=o,i[e+1]=n)}else if(r<20)for(let n=e;n<t;n++)for(let o=n;o>e;o--){let s=i[o-1],u=i[o];if(ot(s,u)<=0)break;i[o-1]=u,i[o]=s}else he(i,ot,e)}M.prototype._parseMappings=function(e,t){var r=1,n=0,o=0,s=0,u=0,l=0,f=e.length,a=0,p={},c={},h=[],d=[],w,m,b,y,C;let S=0;for(;a<f;)if(e.charAt(a)===";")r++,a++,n=0,yr(d,S),S=d.length;else if(e.charAt(a)===",")a++;else{for(w=new vr,w.generatedLine=r,y=a;y<f&&!this._charIsMappingSeparator(e,y);y++);for(m=e.slice(a,y),b=[];a<y;)Xn.decode(e,a,c),C=c.value,a=c.rest,b.push(C);if(b.length===2)throw new Error("Found a source, but no line and column");if(b.length===3)throw new Error("Found a source and line, but no column");if(w.generatedColumn=n+b[0],n=w.generatedColumn,b.length>1&&(w.source=u+b[1],u+=b[1],w.originalLine=o+b[2],o=w.originalLine,w.originalLine+=1,w.originalColumn=s+b[3],s=w.originalColumn,b.length>4&&(w.name=l+b[4],l+=b[4])),d.push(w),typeof w.originalLine=="number"){let x=w.source;for(;h.length<=x;)h.push(null);h[x]===null&&(h[x]=[]),h[x].push(w)}}yr(d,S),this.__generatedMappings=d;for(var L=0;L<h.length;L++)h[L]!=null&&he(h[L],g.compareByOriginalPositionsNoSource);this.__originalMappings=[].concat(...h)};M.prototype._findMapping=function(e,t,r,n,o,s){if(e[r]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[r]);if(e[n]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[n]);return st.search(e,t,o,s)};M.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var r=this._generatedMappings[e+1];if(t.generatedLine===r.generatedLine){t.lastGeneratedColumn=r.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}};M.prototype.originalPositionFor=function(e){var t={generatedLine:g.getArg(e,"line"),generatedColumn:g.getArg(e,"column")},r=this._findMapping(t,this._generatedMappings,"generatedLine","generatedColumn",g.compareByGeneratedPositionsDeflated,g.getArg(e,"bias",_.GREATEST_LOWER_BOUND));if(r>=0){var n=this._generatedMappings[r];if(n.generatedLine===t.generatedLine){var o=g.getArg(n,"source",null);o!==null&&(o=this._sources.at(o),o=g.computeSourceURL(this.sourceRoot,o,this._sourceMapURL));var s=g.getArg(n,"name",null);return s!==null&&(s=this._names.at(s)),{source:o,line:g.getArg(n,"originalLine",null),column:g.getArg(n,"originalColumn",null),name:s}}}return{source:null,line:null,column:null,name:null}};M.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null}):!1};M.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;var r=this._findSourceIndex(e);if(r>=0)return this.sourcesContent[r];var n=e;this.sourceRoot!=null&&(n=g.relative(this.sourceRoot,n));var o;if(this.sourceRoot!=null&&(o=g.urlParse(this.sourceRoot))){var s=n.replace(/^file:\/\//,"");if(o.scheme=="file"&&this._sources.has(s))return this.sourcesContent[this._sources.indexOf(s)];if((!o.path||o.path=="/")&&this._sources.has("/"+n))return this.sourcesContent[this._sources.indexOf("/"+n)]}if(t)return null;throw new Error('"'+n+'" is not in the SourceMap.')};M.prototype.generatedPositionFor=function(e){var t=g.getArg(e,"source");if(t=this._findSourceIndex(t),t<0)return{line:null,column:null,lastColumn:null};var r={source:t,originalLine:g.getArg(e,"line"),originalColumn:g.getArg(e,"column")},n=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",g.compareByOriginalPositions,g.getArg(e,"bias",_.GREATEST_LOWER_BOUND));if(n>=0){var o=this._originalMappings[n];if(o.source===r.source)return{line:g.getArg(o,"generatedLine",null),column:g.getArg(o,"generatedColumn",null),lastColumn:g.getArg(o,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};Ee.BasicSourceMapConsumer=M;function B(i,e){var t=i;typeof i=="string"&&(t=g.parseSourceMapInput(i));var r=g.getArg(t,"version"),n=g.getArg(t,"sections");if(r!=this._version)throw new Error("Unsupported version: "+r);this._sources=new X,this._names=new X;var o={line:-1,column:0},s=0;this._sections=n.map(function(u){if(u.url)throw new Error("Support for url field in sections not implemented.");var l=g.getArg(u,"offset"),f=g.getArg(l,"line"),a=g.getArg(l,"column");if(!br(f)||!br(a))throw new Error("Section offset line and column must be non-negative integers.");if(f>Ae)throw new Error("Section offset line must not exceed "+Ae+".");if(f<o.line||f===o.line&&a<o.column)throw new Error("Section offsets must be ordered and non-overlapping.");o=l;var p=new _(g.getArg(u,"map"),e),c=f+(p._maxOffsetLine||0);if(c>Ae)throw new Error("Section offset line must not exceed "+Ae+", including offsets of nested sections.");return c>s&&(s=c),{generatedOffset:{generatedLine:f+1,generatedColumn:a+1},consumer:p}}),this._maxOffsetLine=s}function br(i){return typeof i=="number"&&i>=0&&i<=9007199254740991&&Math.floor(i)===i}B.prototype=Object.create(_.prototype);B.prototype.constructor=_;B.prototype._version=3;Object.defineProperty(B.prototype,"sources",{get:function(){for(var i=[],e=0;e<this._sections.length;e++)for(var t=this._sections[e].consumer.sources,r=0;r<t.length;r++)i.push(t[r]);return i}});B.prototype.originalPositionFor=function(e){var t={generatedLine:g.getArg(e,"line"),generatedColumn:g.getArg(e,"column")},r=st.search(t,this._sections,function(o,s){var u=o.generatedLine-s.generatedOffset.generatedLine;return u||o.generatedColumn-s.generatedOffset.generatedColumn}),n=this._sections[r];return n?n.consumer.originalPositionFor({line:t.generatedLine-(n.generatedOffset.generatedLine-1),column:t.generatedColumn-(n.generatedOffset.generatedLine===t.generatedLine?n.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}};B.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})};B.prototype.sourceContentFor=function(e,t){for(var r=0;r<this._sections.length;r++){var n=this._sections[r],o=n.consumer.sourceContentFor(e,!0);if(o||o==="")return o}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')};B.prototype.generatedPositionFor=function(e){for(var t=0;t<this._sections.length;t++){var r=this._sections[t];if(r.consumer._findSourceIndex(g.getArg(e,"source"))!==-1){var n=r.consumer.generatedPositionFor(e);if(n){var o={line:n.line+(r.generatedOffset.generatedLine-1),column:n.column+(r.generatedOffset.generatedLine===n.line?r.generatedOffset.generatedColumn-1:0)};return o}}}return{line:null,column:null}};B.prototype._parseMappings=function(e,t){this.__generatedMappings=[],this.__originalMappings=[];for(var r=0;r<this._sections.length;r++)for(var n=this._sections[r],o=n.consumer._generatedMappings,s=0;s<o.length;s++){var u=o[s],l=n.consumer._sources.at(u.source);l!==null&&(l=g.computeSourceURL(n.consumer.sourceRoot,l,this._sourceMapURL)),this._sources.add(l),l=this._sources.indexOf(l);var f=null;u.name&&(f=n.consumer._names.at(u.name),this._names.add(f),f=this._names.indexOf(f));var a={source:l,generatedLine:u.generatedLine+(n.generatedOffset.generatedLine-1),generatedColumn:u.generatedColumn+(n.generatedOffset.generatedLine===u.generatedLine?n.generatedOffset.generatedColumn-1:0),originalLine:u.originalLine,originalColumn:u.originalColumn,name:f};this.__generatedMappings.push(a),typeof a.originalLine=="number"&&this.__originalMappings.push(a)}he(this.__generatedMappings,g.compareByGeneratedPositionsDeflated),he(this.__originalMappings,g.compareByOriginalPositions)};Ee.IndexedSourceMapConsumer=B});var Sr=v(_r=>{var Zn=nt().SourceMapGenerator,Me=K(),ei=/(\r?\n)/,ti=10,Z="$$$isSourceNode$$$";function T(i,e,t,r,n){this.children=[],this.sourceContents={},this.line=i??null,this.column=e??null,this.source=t??null,this.name=n??null,this[Z]=!0,r!=null&&this.add(r)}T.fromStringWithSourceMap=function(e,t,r){var n=new T,o=e.split(ei),s=0,u=function(){var c=d(),h=d()||"";return c+h;function d(){return s<o.length?o[s++]:void 0}},l=1,f=0,a=null;return t.eachMapping(function(c){if(a!==null)if(l<c.generatedLine)p(a,u()),l++,f=0;else{var h=o[s]||"",d=h.substr(0,c.generatedColumn-f);o[s]=h.substr(c.generatedColumn-f),f=c.generatedColumn,p(a,d),a=c;return}for(;l<c.generatedLine;){if(s>=o.length){l=c.generatedLine;break}n.add(u()),l++}if(f<c.generatedColumn){var h=o[s]||"";n.add(h.substr(0,c.generatedColumn)),o[s]=h.substr(c.generatedColumn),f=c.generatedColumn}a=c},this),s<o.length&&(a&&p(a,u()),n.add(o.splice(s).join(""))),t.sources.forEach(function(c){var h=t.sourceContentFor(c);h!=null&&(r!=null&&(c=Me.join(r,c)),n.setSourceContent(c,h))}),n;function p(c,h){if(c===null||c.source===void 0)n.add(h);else{var d=r?Me.join(r,c.source):c.source;n.add(new T(c.originalLine,c.originalColumn,d,h,c.name))}}};T.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(t){this.add(t)},this);else if(e[Z]||typeof e=="string")e&&this.children.push(e);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this};T.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else if(e[Z]||typeof e=="string")this.children.unshift(e);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this};T.prototype.walk=function(e){for(var t,r=0,n=this.children.length;r<n;r++)t=this.children[r],t[Z]?t.walk(e):t!==""&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})};T.prototype.join=function(e){var t,r,n=this.children.length;if(n>0){for(t=[],r=0;r<n-1;r++)t.push(this.children[r]),t.push(e);t.push(this.children[r]),this.children=t}return this};T.prototype.replaceRight=function(e,t){var r=this.children[this.children.length-1];return r[Z]?r.replaceRight(e,t):typeof r=="string"?this.children[this.children.length-1]=r.replace(e,t):this.children.push("".replace(e,t)),this};T.prototype.setSourceContent=function(e,t){this.sourceContents[Me.toSetString(e)]=t};T.prototype.walkSourceContents=function(e){for(var t=0,r=this.children.length;t<r;t++)this.children[t][Z]&&this.children[t].walkSourceContents(e);for(var n=Object.keys(this.sourceContents),t=0,r=n.length;t<r;t++)e(Me.fromSetString(n[t]),this.sourceContents[n[t]])};T.prototype.toString=function(){var e="";return this.walk(function(t){e+=t}),e};T.prototype.toStringWithSourceMap=function(e){var t={code:"",line:1,column:0},r=new Zn(e),n=!1,o=null,s=null,u=null,l=null;return this.walk(function(f,a){t.code+=f,a.source!==null&&a.line!==null&&a.column!==null?((o!==a.source||s!==a.line||u!==a.column||l!==a.name)&&r.addMapping({source:a.source,original:{line:a.line,column:a.column},generated:{line:t.line,column:t.column},name:a.name}),o=a.source,s=a.line,u=a.column,l=a.name,n=!0):n&&(r.addMapping({generated:{line:t.line,column:t.column}}),o=null,n=!1);for(var p=0,c=f.length;p<c;p++)f.charCodeAt(p)===ti?(t.line++,t.column=0,p+1===c?(o=null,n=!1):n&&r.addMapping({source:a.source,original:{line:a.line,column:a.column},generated:{line:t.line,column:t.column},name:a.name})):t.column++}),this.walkSourceContents(function(f,a){r.setSourceContent(f,a)}),{code:t.code,map:r}};_r.SourceNode=T});var lt=v(Re=>{Re.SourceMapGenerator=nt().SourceMapGenerator;Re.SourceMapConsumer=Cr().SourceMapConsumer;Re.SourceNode=Sr().SourceNode});var Er=v((Zi,Ar)=>{"use strict";var{existsSync:ri,readFileSync:ni,realpathSync:ii}=be("fs"),{dirname:Pe,isAbsolute:oi,join:si,relative:li,sep:ui}=be("path"),{SourceMapConsumer:xr,SourceMapGenerator:Or}=lt();function Lr(i){try{return ii(i)}catch{return i}}function ai(i){return Buffer?Buffer.from(i,"base64").toString():window.atob(i)}var pe=class{constructor(e,t){if(t.map===!1)return;t.unsafeMap&&(this.unsafeMap=!0),this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=Pe(this.mapFile)),n&&(this.text=n)}consumer(){return this.consumerCache||(this.consumerCache=new xr(this.json||this.text)),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,n=/^data:application\/json;charset=utf-?8,/,o=/^data:application\/json,/,s=e.match(n)||e.match(o);if(s)return decodeURIComponent(e.substr(s[0].length));let u=e.match(t)||e.match(r);if(u)return ai(e.substr(u[0].length));let l=e.slice(22);throw l=l.slice(0,l.indexOf(",")),new Error("Unsupported source map encoding "+l)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/g);if(!t)return;let r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}loadFile(e,t,r){if(!r&&!this.unsafeMap){if(!/\.map$/i.test(e)||!t)return;let n=li(Lr(Pe(t)),Lr(e));if(n===".."||n.startsWith(".."+ui)||oi(n))return}if(this.root=Pe(e),ri(e))return this.mapFile=e,ni(e,"utf-8").toString().trim()}loadMap(e,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let r=t(e);if(r){let n=this.loadFile(r,e,!0);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(t instanceof xr)return Or.fromSourceMap(t).toString();if(t instanceof Or)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let r=this.annotation;e&&(r=si(Pe(e),r));let n=this.loadFile(r,e,!1);if(n)try{this.json=JSON.parse(n.replace(/^\)]}'[^\n]*\n/,""))}catch{return}return n}}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};Ar.exports=pe;pe.default=pe});var Tr=v((eo,Fr)=>{"use strict";var{nanoid:fi}=Yt(),{isAbsolute:ft,resolve:ct}=be("path"),{SourceMapConsumer:ci,SourceMapGenerator:hi}=lt(),{fileURLToPath:Mr,pathToFileURL:Ne}=be("url"),Rr=De(),pi=Er(),ut=qe(),at=Symbol("lineToIndexCache"),di=!!(ci&&hi),Pr=!!(ct&&ft);function Nr(i){if(i[at])return i[at];let e=i.css.split(`
|
|
23
|
+
`),t=new Array(e.length),r=0;for(let n=0,o=e.length;n<o;n++)t[n]=r,r+=e[n].length+1;return i[at]=t,t}var ee=class{get from(){return this.file||this.id}constructor(e,t={}){if(e===null||typeof e>"u"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,t.document&&(this.document=t.document.toString()),t.from&&(!Pr||/^\w+:\/\//.test(t.from)||ft(t.from)?this.file=t.from:this.file=ct(t.from)),Pr&&di){let r=new pi(this.css,t);if(r.text){this.map=r;let n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+fi(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,r,n={}){let o,s,u,l,f;if(t&&typeof t=="object"){let p=t,c=r;if(typeof p.offset=="number"){l=p.offset;let h=this.fromOffset(l);t=h.line,r=h.col}else t=p.line,r=p.column,l=this.fromLineAndColumn(t,r);if(typeof c.offset=="number"){u=c.offset;let h=this.fromOffset(u);s=h.line,o=h.col}else s=c.line,o=c.column,u=this.fromLineAndColumn(c.line,c.column)}else if(r)l=this.fromLineAndColumn(t,r);else{l=t;let p=this.fromOffset(l);t=p.line,r=p.col}let a=this.origin(t,r,s,o);return a?f=new Rr(e,a.endLine===void 0?a.line:{column:a.column,line:a.line},a.endLine===void 0?a.column:{column:a.endColumn,line:a.endLine},a.source,a.file,n.plugin):f=new Rr(e,s===void 0?t:{column:r,line:t},s===void 0?r:{column:o,line:s},this.css,this.file,n.plugin),f.input={column:r,endColumn:o,endLine:s,endOffset:u,line:t,offset:l,source:this.css},this.file&&(Ne&&(f.input.url=Ne(this.file).toString()),f.input.file=this.file),f}fromLineAndColumn(e,t){return Nr(this)[e-1]+t-1}fromOffset(e){let t=Nr(this),r=t[t.length-1],n=0;if(e>=r)n=t.length-1;else{let o=t.length-2,s;for(;n<o;)if(s=n+(o-n>>1),e<t[s])o=s-1;else if(e>=t[s+1])n=s+1;else{n=s;break}}return{col:e-t[n]+1,line:n+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:ct(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,n){if(!this.map)return!1;let o=this.map.consumer(),s=o.originalPositionFor({column:t-1,line:e});if(!s.source)return!1;let u;if(typeof r=="number"){let p=o.originalPositionFor({column:n-1,line:r});p.source&&(u=p)}let l;ft(s.source)?l=Ne(s.source):l=new URL(s.source,this.map.consumer().sourceRoot||Ne(this.map.mapFile));let f={column:s.column+1,endColumn:u&&u.column+1,endLine:u&&u.line,line:s.line,url:l.toString()};if(l.protocol==="file:")if(Mr)f.file=Mr(l);else throw new Error("file: protocol is not available in this PostCSS build");let a=o.sourceContentFor(s.source);return a&&(f.source=a),f}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};Fr.exports=ee;ee.default=ee;ut&&ut.registerInput&&ut.registerInput(ee)});var Br=v((to,Ir)=>{"use strict";var kr=ae(),te=class extends kr{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};Ir.exports=te;te.default=te;kr.registerAtRule(te)});var jr=v((ro,Gr)=>{"use strict";var qr=ae(),Dr,Ur,Q=class extends qr{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let n=new Set;for(let s of Array.isArray(e)?e:[e])s&&typeof s=="object"&&!s.parent&&s.raws&&typeof s.raws.before<"u"&&n.add(s.raws);let o=super.normalize(e);if(t){if(r==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let s of o)n.has(s.raws)||(s.raws.before=t.raws.before)}return o}removeChild(e,t){let r=this.index(e);return!t&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new Dr(new Ur,this,e).stringify()}};Q.registerLazyResult=i=>{Dr=i};Q.registerProcessor=i=>{Ur=i};Gr.exports=Q;Q.default=Q;qr.registerRoot(Q)});var zr=v((no,$r)=>{"use strict";var de={comma(i){return de.split(i,[","],!0)},space(i){let e=[" ",`
|
|
24
|
+
`," "];return de.split(i,e)},split(i,e,t){if(typeof i!="string")return[];let r=[],n="",o=!1,s=0,u=!1,l="",f=!1,a=!1;for(let c=0;c<i.length;c++){let h=i[c];if(a){n+=h,h==="*"&&i[c+1]==="/"&&(n+="/",c+=1,a=!1);continue}if(f)f=!1;else if(h==="\\")f=!0;else if(u)h===l&&(u=!1);else if(h==='"'||h==="'")u=!0,l=h;else if(h==="/"&&i[c+1]==="*"){n+="/*",c+=1,a=!0;continue}else h==="("?s+=1:h===")"?s>0&&(s-=1):s===0&&e.includes(h)&&(o=!0);if(o){let d=n.trim();(t||d!=="")&&r.push(d),n="",o=!1}else n+=h}let p=n.trim();return(t||p!=="")&&r.push(p),r}};$r.exports=de;de.default=de});var Jr=v((io,Qr)=>{"use strict";var Wr=ae(),mi=zr(),re=class extends Wr{get selectors(){return mi.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}};Qr.exports=re;re.default=re;Wr.registerRule(re)});var Kr=v((oo,Yr)=>{"use strict";var gi=Br(),wi=We(),yi=Qe(),bi=jr(),Hr=Jr(),vi=Be(),Vr={empty:!0,space:!0};function Ci(i){for(let e=i.length-1;e>=0;e--){let t=i[e],r=t[3]||t[2];if(r)return r}}function ht(i,e,t){let r="";for(let n=e;n<t;n++)r+=i[n][1];return r}var pt=class{constructor(e){this.input=e,this.root=new bi,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new gi;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let r,n,o,s=!1,u=!1,l=[],f=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[0],r==="("||r==="["?f.push(r==="("?")":"]"):r==="{"&&f.length>0?f.push("}"):r===f[f.length-1]&&f.pop(),f.length===0)if(r===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(r==="{"){u=!0;break}else if(r==="}"){if(l.length>0){for(o=l.length-1,n=l[o];n&&n[0]==="space";)n=l[--o];n&&(t.source.end=this.getPosition(n[3]||n[2]),t.source.end.offset++)}this.end(e);break}else l.push(e);else l.push(e);if(this.tokenizer.endOfFile()){s=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(t.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(t,"params",l),s&&(e=l[l.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),u&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let r=0,n;for(let o=t-1;o>=0&&(n=e[o],!(n[0]!=="space"&&(r+=1,r===2)));o--);throw this.input.error("Missed semicolon",n[0]==="word"?n[3]+1:n[2])}colon(e){let t=0,r,n,o;for(let[s,u]of e.entries()){if(n=u,o=n[0],o==="("&&(t+=1),o===")"&&(t-=1),t===0&&o===":")if(!r)this.doubleColon(n);else{if(r[0]==="word"&&r[1]==="progid")continue;return s}r=n}return!1}comment(e){let t=new wi;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(!r.trim())t.text="",t.raws.left=r,t.raws.right="";else{let n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}}createTokenizer(){this.tokenizer=vi(this.input)}decl(e,t){let r=new yi;this.init(r,e[0][2]);let n=e[e.length-1];n[0]===";"&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(n[3]||n[2]||Ci(e)),r.source.end.offset++;let o=0;for(;e[o][0]!=="word";)o===e.length-1&&this.unknownWord([e[o]]),o++;r.raws.before+=ht(e,0,o),r.source.start=this.getPosition(e[o][2]);let s=o;for(;o<e.length;){let c=e[o][0];if(c===":"||c==="space"||c==="comment")break;o++}r.prop=ht(e,s,o);let u=o,l;for(;o<e.length&&(l=e[o],o++,l[0]!==":");)l[0]==="word"&&/\w/.test(l[1])&&this.unknownWord([l]);r.raws.between=ht(e,u,o),(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let f=o;for(;o<e.length;){let c=e[o][0];if(c!=="space"&&c!=="comment")break;o++}let a=e.slice(f,o);e=e.slice(o),this.precheckMissedSemicolon(e);for(let c=e.length-1;c>=0;c--){if(l=e[c],l[1].toLowerCase()==="!important"){r.important=!0;let h=this.stringFrom(e,c);h=this.spacesFromEnd(e)+h,h!==" !important"&&(r.raws.important=h);break}else if(l[1].toLowerCase()==="important"){let h=e.slice(0),d="";for(let w=c;w>0;w--){let m=h[w][0];if(d.trim().startsWith("!")&&m!=="space")break;d=h.pop()[1]+d}d.trim().startsWith("!")&&(r.important=!0,r.raws.important=d,e=h)}if(l[0]!=="space"&&l[0]!=="comment")break}e.some(c=>c[0]!=="space"&&c[0]!=="comment")&&(r.raws.between+=a.map(c=>c[1]).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new Hr;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="",t.source.end=this.getPosition(e[2]),t.source.end.offset++)}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let t=!1,r=null,n=!1,o=null,s=[],u=e[1].startsWith("--"),l=[],f=e;for(;f;){if(r=f[0],l.push(f),r==="("||r==="[")o||(o=f),s.push(r==="("?")":"]");else if(u&&n&&r==="{")o||(o=f),s.push("}");else if(s.length===0)if(r===";")if(n){this.decl(l,u);return}else break;else if(r==="{"){this.rule(l);return}else if(r==="}"){this.tokenizer.back(l.pop()),t=!0;break}else r===":"&&(n=!0);else r===s[s.length-1]&&(s.pop(),s.length===0&&(o=null));f=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),s.length>0&&this.unclosedBracket(o),t&&n){if(!u)for(;l.length&&(f=l[l.length-1][0],!(f!=="space"&&f!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,u)}else this.unknownWord(l)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,n){let o,s,u=r.length,l="",f="",a=!0,p,c;for(let h=0;h<u;h+=1)o=r[h],s=o[0],s==="space"&&h===u-1&&!n?a=!1:s==="comment"?(c=r[h-1]?r[h-1][0]:"empty",p=r[h+1]?r[h+1][0]:"empty",!Vr[c]&&!Vr[p]?f===","?a=!1:(l+=o[1],f=o[1].slice(-1)):a=!1):(l+=o[1],f=o[1].slice(-1));if(!a){let h=r.reduce((d,w)=>d+w[1],"");e.raws[t]={raw:h,value:l}}e[t]=l}rule(e){e.pop();let t=new Hr;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t,r="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)r+=e.shift()[1];return r}spacesFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],t==="space");)r=e.pop()[1]+r;return r}stringFrom(e,t){let r="";for(let n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word "+e[0][1],{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}};Yr.exports=pt});var Zr=v((so,Xr)=>{"use strict";var _i=ae(),Si=Tr(),xi=Kr();function Fe(i,e){let t=new Si(i,e),r=new xi(t);try{r.parse()}catch(n){throw process.env.NODE_ENV!=="production"&&n.name==="CssSyntaxError"&&e&&e.from&&(/\.scss$/i.test(e.from)?n.message+=`
|
|
25
|
+
You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser`:/\.sass/i.test(e.from)?n.message+=`
|
|
26
|
+
You tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser`:/\.less$/i.test(e.from)&&(n.message+=`
|
|
27
|
+
You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)),n}return r.root}Xr.exports=Fe;Fe.default=Fe;_i.registerParse(Fe)});var nn=v(gt=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});gt.default=Ei;var me="diff-sequences",R=0,ge=(i,e,t,r,n)=>{let o=0;for(;i<e&&t<r&&n(i,t);)i+=1,t+=1,o+=1;return o},we=(i,e,t,r,n)=>{let o=0;for(;i<=e&&t<=r&&n(e,r);)e-=1,r-=1,o+=1;return o},dt=(i,e,t,r,n,o,s)=>{let u=0,l=-i,f=o[u],a=f;o[u]+=ge(f+1,e,r+f-l+1,t,n);let p=i<s?i:s;for(u+=1,l+=2;u<=p;u+=1,l+=2){if(u!==i&&a<o[u])f=o[u];else if(f=a+1,e<=f)return u-1;a=o[u],o[u]=f+ge(f+1,e,r+f-l+1,t,n)}return s},en=(i,e,t,r,n,o,s)=>{let u=0,l=i,f=o[u],a=f;o[u]-=we(e,f-1,t,r+f-l-1,n);let p=i<s?i:s;for(u+=1,l-=2;u<=p;u+=1,l-=2){if(u!==i&&o[u]<a)f=o[u];else if(f=a-1,f<e)return u-1;a=o[u],o[u]=f-we(e,f-1,t,r+f-l-1,n)}return s},Oi=(i,e,t,r,n,o,s,u,l,f,a)=>{let p=r-e,c=t-e,d=n-r-c,w=-d-(i-1),m=-d+(i-1),b=R,y=i<u?i:u;for(let C=0,S=-i;C<=y;C+=1,S+=2){let L=C===0||C!==i&&b<s[C],x=L?s[C]:b,F=L?x:x+1,q=p+F-S,A=ge(F+1,t,q+1,n,o),P=F+A;if(b=s[C],s[C]=P,w<=S&&S<=m){let D=(i-1-(S+d))/2;if(D<=f&&l[D]-1<=P){let U=p+x-(L?S+1:S-1),k=we(e,x,r,U,o),W=x-k,ye=U-k,V=W+1,Te=ye+1;a.nChangePreceding=i-1,i-1===V+Te-e-r?(a.aEndPreceding=e,a.bEndPreceding=r):(a.aEndPreceding=V,a.bEndPreceding=Te),a.nCommonPreceding=k,k!==0&&(a.aCommonPreceding=V,a.bCommonPreceding=Te),a.nCommonFollowing=A,A!==0&&(a.aCommonFollowing=F+1,a.bCommonFollowing=q+1);let yt=P+1,bt=q+A+1;return a.nChangeFollowing=i-1,i-1===t+n-yt-bt?(a.aStartFollowing=t,a.bStartFollowing=n):(a.aStartFollowing=yt,a.bStartFollowing=bt),!0}}}return!1},Li=(i,e,t,r,n,o,s,u,l,f,a)=>{let p=n-t,c=t-e,d=n-r-c,w=d-i,m=d+i,b=R,y=i<f?i:f;for(let C=0,S=i;C<=y;C+=1,S-=2){let L=C===0||C!==i&&l[C]<b,x=L?l[C]:b,F=L?x:x-1,q=p+F-S,A=we(e,F-1,r,q-1,o),P=F-A;if(b=l[C],l[C]=P,w<=S&&S<=m){let D=(i+(S-d))/2;if(D<=u&&P-1<=s[D]){let U=q-A;if(a.nChangePreceding=i,i===P+U-e-r?(a.aEndPreceding=e,a.bEndPreceding=r):(a.aEndPreceding=P,a.bEndPreceding=U),a.nCommonPreceding=A,A!==0&&(a.aCommonPreceding=P,a.bCommonPreceding=U),a.nChangeFollowing=i-1,i===1)a.nCommonFollowing=0,a.aStartFollowing=t,a.bStartFollowing=n;else{let k=p+x-(L?S-1:S+1),W=ge(x,t,k,n,o);a.nCommonFollowing=W,W!==0&&(a.aCommonFollowing=x,a.bCommonFollowing=k);let ye=x+W,V=k+W;i-1===t+n-ye-V?(a.aStartFollowing=t,a.bStartFollowing=n):(a.aStartFollowing=ye,a.bStartFollowing=V)}return!0}}}return!1},Ai=(i,e,t,r,n,o,s,u,l)=>{let f=r-e,a=n-t,p=t-e,c=n-r,h=c-p,d=p,w=p;if(s[0]=e-1,u[0]=t,h%2===0){let m=(i||h)/2,b=(p+c)/2;for(let y=1;y<=b;y+=1)if(d=dt(y,t,n,f,o,s,d),y<m)w=en(y,e,r,a,o,u,w);else if(Li(y,e,t,r,n,o,s,d,u,w,l))return}else{let m=((i||h)+1)/2,b=(p+c+1)/2,y=1;for(d=dt(y,t,n,f,o,s,d),y+=1;y<=b;y+=1)if(w=en(y-1,e,r,a,o,u,w),y<m)d=dt(y,t,n,f,o,s,d);else if(Oi(y,e,t,r,n,o,s,d,u,w,l))return}throw new Error(`${me}: no overlap aStart=${e} aEnd=${t} bStart=${r} bEnd=${n}`)},mt=(i,e,t,r,n,o,s,u,l,f)=>{if(n-r<t-e){if(o=!o,o&&s.length===1){let{foundSubsequence:P,isCommon:D}=s[0];s[1]={foundSubsequence:(U,k,W)=>{P(U,W,k)},isCommon:(U,k)=>D(k,U)}}let q=e,A=t;e=r,t=n,r=q,n=A}let{foundSubsequence:a,isCommon:p}=s[o?1:0];Ai(i,e,t,r,n,p,u,l,f);let{nChangePreceding:c,aEndPreceding:h,bEndPreceding:d,nCommonPreceding:w,aCommonPreceding:m,bCommonPreceding:b,nCommonFollowing:y,aCommonFollowing:C,bCommonFollowing:S,nChangeFollowing:L,aStartFollowing:x,bStartFollowing:F}=f;e<h&&r<d&&mt(c,e,h,r,d,o,s,u,l,f),w!==0&&a(w,m,b),y!==0&&a(y,C,S),x<t&&F<n&&mt(L,x,t,F,n,o,s,u,l,f)},tn=(i,e)=>{if(typeof e!="number")throw new TypeError(`${me}: ${i} typeof ${typeof e} is not a number`);if(!Number.isSafeInteger(e))throw new RangeError(`${me}: ${i} value ${e} is not a safe integer`);if(e<0)throw new RangeError(`${me}: ${i} value ${e} is a negative integer`)},rn=(i,e)=>{let t=typeof e;if(t!=="function")throw new TypeError(`${me}: ${i} typeof ${t} is not a function`)};function Ei(i,e,t,r){tn("aLength",i),tn("bLength",e),rn("isCommon",t),rn("foundSubsequence",r);let n=ge(0,i,0,e,t);if(n!==0&&r(n,0,0),i!==n||e!==n){let o=n,s=n,u=we(o,i-1,s,e-1,t),l=i-u,f=e-u,a=n+u;i!==a&&e!==a&&mt(0,o,l,s,f,!1,[{foundSubsequence:r,isCommon:t}],[R],[R],{aCommonFollowing:R,aCommonPreceding:R,aEndPreceding:R,aStartFollowing:R,bCommonFollowing:R,bCommonPreceding:R,bEndPreceding:R,bStartFollowing:R,nChangeFollowing:R,nChangePreceding:R,nCommonFollowing:R,nCommonPreceding:R}),u!==0&&r(u,l,f)}}});var Mi=vt(Zr(),1),wt=vt(nn(),1),uo=wt.default.default||wt.default;var export_parseCss=Mi.default;export{uo as diffSequence,export_parseCss as parseCss};
|