@react-email/tailwind 0.0.15 → 0.0.16-canary.1
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/dist/index.js
CHANGED
|
@@ -21,7 +21,7 @@ Check the render method of \``+Ne+"`."}return""}}function Be(Ne){{if(Ne!==void 0
|
|
|
21
21
|
|
|
22
22
|
Check your code at `+Je+":"+ft+"."}return""}}var Ze={};function nt(Ne){{var Je=He();if(!Je){var ft=typeof Ne=="string"?Ne:Ne.displayName||Ne.name;ft&&(Je=`
|
|
23
23
|
|
|
24
|
-
Check the top-level render call using <`+ft+">.")}return Je}}function $e(Ne,Je){{if(!Ne._store||Ne._store.validated||Ne.key!=null)return;Ne._store.validated=!0;var ft=nt(Je);if(Ze[ft])return;Ze[ft]=!0;var rt="";Ne&&Ne._owner&&Ne._owner!==st.current&&(rt=" It was passed a child from "+T(Ne._owner.type)+"."),Ke(Ne),S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',ft,rt),Ke(null)}}function ut(Ne,Je){{if(typeof Ne!="object")return;if(we(Ne))for(var ft=0;ft<Ne.length;ft++){var rt=Ne[ft];xe(rt)&&$e(rt,Je)}else if(xe(Ne))Ne._store&&(Ne._store.validated=!0);else if(Ne){var At=b(Ne);if(typeof At=="function"&&At!==Ne.entries)for(var Nt=At.call(Ne),Tt;!(Tt=Nt.next()).done;)xe(Tt.value)&&$e(Tt.value,Je)}}}function vt(Ne){{var Je=Ne.type;if(Je==null||typeof Je=="string")return;var ft;if(typeof Je=="function")ft=Je.propTypes;else if(typeof Je=="object"&&(Je.$$typeof===i||Je.$$typeof===s))ft=Je.propTypes;else return;if(ft){var rt=T(Je);ue(ft,Ne.props,"prop",rt,Ne)}else if(Je.PropTypes!==void 0&&!Ce){Ce=!0;var At=T(Je);S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",At||"Unknown")}typeof Je.getDefaultProps=="function"&&!Je.getDefaultProps.isReactClassApproved&&S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function yt(Ne){{for(var Je=Object.keys(Ne.props),ft=0;ft<Je.length;ft++){var rt=Je[ft];if(rt!=="children"&&rt!=="key"){Ke(Ne),S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",rt),Ke(null);break}}Ne.ref!==null&&(Ke(Ne),S("Invalid attribute `ref` supplied to `React.Fragment`."),Ke(null))}}function et(Ne,Je,ft,rt,At,Nt){{var Tt=j(Ne);if(!Tt){var Ot="";(Ne===void 0||typeof Ne=="object"&&Ne!==null&&Object.keys(Ne).length===0)&&(Ot+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var cr=Be(At);cr?Ot+=cr:Ot+=He();var Wt;Ne===null?Wt="null":we(Ne)?Wt="array":Ne!==void 0&&Ne.$$typeof===e?(Wt="<"+(T(Ne.type)||"Unknown")+" />",Ot=" Did you accidentally export a JSX literal instead of a component?"):Wt=typeof Ne,S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Wt,Ot)}var Jt=ct(Ne,Je,ft,At,Nt);if(Jt==null)return Jt;if(Tt){var pr=Je.children;if(pr!==void 0)if(rt)if(we(pr)){for(var $r=0;$r<pr.length;$r++)ut(pr[$r],Ne);Object.freeze&&Object.freeze(pr)}else S("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ut(pr,Ne)}return Ne===a?yt(Jt):vt(Jt),Jt}}function bt(Ne,Je,ft){return et(Ne,Je,ft,!0)}function lt(Ne,Je,ft){return et(Ne,Je,ft,!1)}var Et=lt,wt=bt;wl.Fragment=a,wl.jsx=Et,wl.jsxs=wt}()),wl}Ve.process.env.NODE_ENV==="production"?jm.exports=xO():jm.exports=PO();var Gl=jm.exports;function CO(t){let e=t;const n=[];for(const a of t.matchAll(/@media\s*\(.*\)\s*{\s*\..*\s*{[\s\S]*?}\s*}/gm)){const[c]=a;e=e.replace(c,""),n.push(c)}return[e,n]}function*Lg(t){for(const[e,n,a]of t.matchAll(/\s*\.([\S]+)\s*{([^}]*)}/gm))yield{value:e,selector:n,content:a}}const IO=t=>{if(typeof t=="string")return t;if(typeof t=="object")return JSON.stringify(t)},Jc=t=>{if(typeof t=="string"||typeof t=="number")return String(t);if(Array.isArray(t))return t.map(Jc).join("");if(Ys.isValidElement(t)){const{type:e,props:n}=t;if(typeof e=="function"){const l=e(n);return Jc(l)}let a=Object.keys(n||{}).filter(r=>r!=="children").map(r=>`${r}="${IO(n[r])}"`).join(" ");a=a.trim().length>0?` ${a}`:"";const c=n&&"children"in n?n.children:"",u=c?Jc(c):"";return typeof t.type=="symbol"?u:`<${t.type.toString()}${a}>${u}</${t.type.toString()}>`}return""};var ad={exports:{}},ZS={},Fm={exports:{}},Ka={},Es={};Object.defineProperty(Es,"__esModule",{value:!0});Es.constants=void 0;Es.constants={O_RDONLY:0,O_WRONLY:1,O_RDWR:2,S_IFMT:61440,S_IFREG:32768,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960,S_IFSOCK:49152,O_CREAT:64,O_EXCL:128,O_NOCTTY:256,O_TRUNC:512,O_APPEND:1024,O_DIRECTORY:65536,O_NOATIME:262144,O_NOFOLLOW:131072,O_SYNC:1052672,O_SYMLINK:2097152,O_DIRECT:16384,O_NONBLOCK:2048,S_IRWXU:448,S_IRUSR:256,S_IWUSR:128,S_IXUSR:64,S_IRWXG:56,S_IRGRP:32,S_IWGRP:16,S_IXGRP:8,S_IRWXO:7,S_IROTH:4,S_IWOTH:2,S_IXOTH:1,F_OK:0,R_OK:4,W_OK:2,X_OK:1,UV_FS_SYMLINK_DIR:1,UV_FS_SYMLINK_JUNCTION:2,UV_FS_COPYFILE_EXCL:1,UV_FS_COPYFILE_FICLONE:2,UV_FS_COPYFILE_FICLONE_FORCE:4,COPYFILE_EXCL:1,COPYFILE_FICLONE:2,COPYFILE_FICLONE_FORCE:4};Object.defineProperty(Ka,"__esModule",{value:!0});Ka.Stats=void 0;const OO=Es,{S_IFMT:kO,S_IFDIR:DO,S_IFREG:NO,S_IFBLK:RO,S_IFCHR:MO,S_IFLNK:LO,S_IFIFO:jO,S_IFSOCK:FO}=OO.constants;class od{static build(e,n=!1){const a=new od,{uid:c,gid:u,atime:r,mtime:l,ctime:i}=e,f=n?s=>BigInt(s):s=>s;a.uid=f(c),a.gid=f(u),a.rdev=f(0),a.blksize=f(4096),a.ino=f(e.ino),a.size=f(e.getSize()),a.blocks=f(1),a.atime=r,a.mtime=l,a.ctime=i,a.birthtime=i,a.atimeMs=f(r.getTime()),a.mtimeMs=f(l.getTime());const d=f(i.getTime());if(a.ctimeMs=d,a.birthtimeMs=d,n){a.atimeNs=BigInt(r.getTime())*BigInt(1e6),a.mtimeNs=BigInt(l.getTime())*BigInt(1e6);const s=BigInt(i.getTime())*BigInt(1e6);a.ctimeNs=s,a.birthtimeNs=s}return a.dev=f(0),a.mode=f(e.mode),a.nlink=f(e.nlink),a}_checkModeProperty(e){return(Number(this.mode)&kO)===e}isDirectory(){return this._checkModeProperty(DO)}isFile(){return this._checkModeProperty(NO)}isBlockDevice(){return this._checkModeProperty(RO)}isCharacterDevice(){return this._checkModeProperty(MO)}isSymbolicLink(){return this._checkModeProperty(LO)}isFIFO(){return this._checkModeProperty(jO)}isSocket(){return this._checkModeProperty(FO)}}Ka.Stats=od;Ka.default=od;var Jo={},Eu={},_u={},fa={};/*!
|
|
24
|
+
Check the top-level render call using <`+ft+">.")}return Je}}function $e(Ne,Je){{if(!Ne._store||Ne._store.validated||Ne.key!=null)return;Ne._store.validated=!0;var ft=nt(Je);if(Ze[ft])return;Ze[ft]=!0;var rt="";Ne&&Ne._owner&&Ne._owner!==st.current&&(rt=" It was passed a child from "+T(Ne._owner.type)+"."),Ke(Ne),S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',ft,rt),Ke(null)}}function ut(Ne,Je){{if(typeof Ne!="object")return;if(we(Ne))for(var ft=0;ft<Ne.length;ft++){var rt=Ne[ft];xe(rt)&&$e(rt,Je)}else if(xe(Ne))Ne._store&&(Ne._store.validated=!0);else if(Ne){var At=b(Ne);if(typeof At=="function"&&At!==Ne.entries)for(var Nt=At.call(Ne),Tt;!(Tt=Nt.next()).done;)xe(Tt.value)&&$e(Tt.value,Je)}}}function vt(Ne){{var Je=Ne.type;if(Je==null||typeof Je=="string")return;var ft;if(typeof Je=="function")ft=Je.propTypes;else if(typeof Je=="object"&&(Je.$$typeof===i||Je.$$typeof===s))ft=Je.propTypes;else return;if(ft){var rt=T(Je);ue(ft,Ne.props,"prop",rt,Ne)}else if(Je.PropTypes!==void 0&&!Ce){Ce=!0;var At=T(Je);S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",At||"Unknown")}typeof Je.getDefaultProps=="function"&&!Je.getDefaultProps.isReactClassApproved&&S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function yt(Ne){{for(var Je=Object.keys(Ne.props),ft=0;ft<Je.length;ft++){var rt=Je[ft];if(rt!=="children"&&rt!=="key"){Ke(Ne),S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",rt),Ke(null);break}}Ne.ref!==null&&(Ke(Ne),S("Invalid attribute `ref` supplied to `React.Fragment`."),Ke(null))}}function et(Ne,Je,ft,rt,At,Nt){{var Tt=j(Ne);if(!Tt){var Ot="";(Ne===void 0||typeof Ne=="object"&&Ne!==null&&Object.keys(Ne).length===0)&&(Ot+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var cr=Be(At);cr?Ot+=cr:Ot+=He();var Wt;Ne===null?Wt="null":we(Ne)?Wt="array":Ne!==void 0&&Ne.$$typeof===e?(Wt="<"+(T(Ne.type)||"Unknown")+" />",Ot=" Did you accidentally export a JSX literal instead of a component?"):Wt=typeof Ne,S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Wt,Ot)}var Jt=ct(Ne,Je,ft,At,Nt);if(Jt==null)return Jt;if(Tt){var pr=Je.children;if(pr!==void 0)if(rt)if(we(pr)){for(var $r=0;$r<pr.length;$r++)ut(pr[$r],Ne);Object.freeze&&Object.freeze(pr)}else S("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ut(pr,Ne)}return Ne===a?yt(Jt):vt(Jt),Jt}}function bt(Ne,Je,ft){return et(Ne,Je,ft,!0)}function lt(Ne,Je,ft){return et(Ne,Je,ft,!1)}var Et=lt,wt=bt;wl.Fragment=a,wl.jsx=Et,wl.jsxs=wt}()),wl}Ve.process.env.NODE_ENV==="production"?jm.exports=xO():jm.exports=PO();var Gl=jm.exports;function CO(t){let e=t;const n=[];for(const a of t.matchAll(/@media\s*\(.*\)\s*{\s*\..*\s*{[\s\S]*?}\s*}/gm)){const[c]=a;e=e.replace(c,""),n.push(c)}return[e,n]}function*Lg(t){for(const[e,n,a]of t.matchAll(/\s*\.([\S]+)\s*{([^}]*)}/gm))yield{value:e,selector:n,content:a}}const IO=t=>{if(typeof t=="string")return t;if(typeof t=="object")return JSON.stringify(t)},Jc=t=>{if(typeof t=="string"||typeof t=="number")return String(t);if(Array.isArray(t))return t.map(Jc).join("");if(Ys.isValidElement(t)){const{type:e,props:n}=t;if(typeof e=="function"||e.render){const l=(typeof e=="object"?e.render:e)(n);return Jc(l)}let a=Object.keys(n||{}).filter(r=>r!=="children").map(r=>`${r}="${IO(n[r])}"`).join(" ");a=a.trim().length>0?` ${a}`:"";const c=n&&"children"in n?n.children:"",u=c?Jc(c):"";return typeof t.type=="symbol"?u:`<${t.type.toString()}${a}>${u}</${t.type.toString()}>`}return""};var ad={exports:{}},ZS={},Fm={exports:{}},Ka={},Es={};Object.defineProperty(Es,"__esModule",{value:!0});Es.constants=void 0;Es.constants={O_RDONLY:0,O_WRONLY:1,O_RDWR:2,S_IFMT:61440,S_IFREG:32768,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960,S_IFSOCK:49152,O_CREAT:64,O_EXCL:128,O_NOCTTY:256,O_TRUNC:512,O_APPEND:1024,O_DIRECTORY:65536,O_NOATIME:262144,O_NOFOLLOW:131072,O_SYNC:1052672,O_SYMLINK:2097152,O_DIRECT:16384,O_NONBLOCK:2048,S_IRWXU:448,S_IRUSR:256,S_IWUSR:128,S_IXUSR:64,S_IRWXG:56,S_IRGRP:32,S_IWGRP:16,S_IXGRP:8,S_IRWXO:7,S_IROTH:4,S_IWOTH:2,S_IXOTH:1,F_OK:0,R_OK:4,W_OK:2,X_OK:1,UV_FS_SYMLINK_DIR:1,UV_FS_SYMLINK_JUNCTION:2,UV_FS_COPYFILE_EXCL:1,UV_FS_COPYFILE_FICLONE:2,UV_FS_COPYFILE_FICLONE_FORCE:4,COPYFILE_EXCL:1,COPYFILE_FICLONE:2,COPYFILE_FICLONE_FORCE:4};Object.defineProperty(Ka,"__esModule",{value:!0});Ka.Stats=void 0;const OO=Es,{S_IFMT:kO,S_IFDIR:DO,S_IFREG:NO,S_IFBLK:RO,S_IFCHR:MO,S_IFLNK:LO,S_IFIFO:jO,S_IFSOCK:FO}=OO.constants;class od{static build(e,n=!1){const a=new od,{uid:c,gid:u,atime:r,mtime:l,ctime:i}=e,f=n?s=>BigInt(s):s=>s;a.uid=f(c),a.gid=f(u),a.rdev=f(0),a.blksize=f(4096),a.ino=f(e.ino),a.size=f(e.getSize()),a.blocks=f(1),a.atime=r,a.mtime=l,a.ctime=i,a.birthtime=i,a.atimeMs=f(r.getTime()),a.mtimeMs=f(l.getTime());const d=f(i.getTime());if(a.ctimeMs=d,a.birthtimeMs=d,n){a.atimeNs=BigInt(r.getTime())*BigInt(1e6),a.mtimeNs=BigInt(l.getTime())*BigInt(1e6);const s=BigInt(i.getTime())*BigInt(1e6);a.ctimeNs=s,a.birthtimeNs=s}return a.dev=f(0),a.mode=f(e.mode),a.nlink=f(e.nlink),a}_checkModeProperty(e){return(Number(this.mode)&kO)===e}isDirectory(){return this._checkModeProperty(DO)}isFile(){return this._checkModeProperty(NO)}isBlockDevice(){return this._checkModeProperty(RO)}isCharacterDevice(){return this._checkModeProperty(MO)}isSymbolicLink(){return this._checkModeProperty(LO)}isFIFO(){return this._checkModeProperty(jO)}isSocket(){return this._checkModeProperty(FO)}}Ka.Stats=od;Ka.default=od;var Jo={},Eu={},_u={},fa={};/*!
|
|
25
25
|
* The buffer module from node.js, for the browser.
|
|
26
26
|
*
|
|
27
27
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
@@ -123,17 +123,17 @@ list should be an Array.`),H.length===0)return new b(0);if(H.length===1)return H
|
|
|
123
123
|
`)&&(a=a.replace(/[^\n]+$/,"")),!1}),typeof a>"u"?a=this.raw(n,null,"beforeRule"):a&&(a=a.replace(/\S/g,"")),a}rawBeforeOpen(e){let n;return e.walk(a=>{if(a.type!=="decl"&&(n=a.raws.between,typeof n<"u"))return!1}),n}rawBeforeRule(e){let n;return e.walk(a=>{if(a.nodes&&(a.parent!==e||e.first!==a)&&typeof a.raws.before<"u")return n=a.raws.before,n.includes(`
|
|
124
124
|
`)&&(n=n.replace(/[^\n]+$/,"")),!1}),n&&(n=n.replace(/\S/g,"")),n}rawColon(e){let n;return e.walkDecls(a=>{if(typeof a.raws.between<"u")return n=a.raws.between.replace(/[^\s:]/g,""),!1}),n}rawEmptyBody(e){let n;return e.walk(a=>{if(a.nodes&&a.nodes.length===0&&(n=a.raws.after,typeof n<"u"))return!1}),n}rawIndent(e){if(e.raws.indent)return e.raws.indent;let n;return e.walk(a=>{let c=a.parent;if(c&&c!==e&&c.parent&&c.parent===e&&typeof a.raws.before<"u"){let u=a.raws.before.split(`
|
|
125
125
|
`);return n=u[u.length-1],n=n.replace(/\S/g,""),!1}}),n}rawSemicolon(e){let n;return e.walk(a=>{if(a.nodes&&a.nodes.length&&a.last.type==="decl"&&(n=a.raws.semicolon,typeof n<"u"))return!1}),n}rawValue(e,n){let a=e[n],c=e.raws[n];return c&&c.value===a?c.raw:a}root(e){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,n){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,n)}};var f2=r1;r1.default=r1;let Y5=f2;function n1(t,e){new Y5(e).stringify(t)}var Td=n1;n1.default=n1;let{isClean:Ac,my:X5}=ku,J5=J0,Q5=f2,Z5=Td;function i1(t,e){let n=new t.constructor;for(let a in t){if(!Object.prototype.hasOwnProperty.call(t,a)||a==="proxyCache")continue;let c=t[a],u=typeof c;a==="parent"&&u==="object"?e&&(n[a]=e):a==="source"?n[a]=c:Array.isArray(c)?n[a]=c.map(r=>i1(r,n)):(u==="object"&&c!==null&&(c=i1(c)),n[a]=c)}return n}let s1=class{constructor(e={}){this.raws={},this[Ac]=!1,this[X5]=!0;for(let n in e)if(n==="nodes"){this.nodes=[];for(let a of e[n])typeof a.clone=="function"?this.append(a.clone()):this.append(a)}else this[n]=e[n]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let n=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${n.input.from}:${n.start.line}:${n.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let n in e)this[n]=e[n];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 n=i1(this);for(let a in e)n[a]=e[a];return n}cloneAfter(e={}){let n=this.clone(e);return this.parent.insertAfter(this,n),n}cloneBefore(e={}){let n=this.clone(e);return this.parent.insertBefore(this,n),n}error(e,n={}){if(this.source){let{end:a,start:c}=this.rangeBy(n);return this.source.input.error(e,{column:c.column,line:c.line},{column:a.column,line:a.line},n)}return new J5(e)}getProxyProcessor(){return{get(e,n){return n==="proxyOf"?e:n==="root"?()=>e.root().toProxy():e[n]},set(e,n,a){return e[n]===a||(e[n]=a,(n==="prop"||n==="value"||n==="name"||n==="params"||n==="important"||n==="text")&&e.markDirty()),!0}}}markDirty(){if(this[Ac]){this[Ac]=!1;let e=this;for(;e=e.parent;)e[Ac]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,n){let a=this.source.start;if(e.index)a=this.positionInside(e.index,n);else if(e.word){n=this.toString();let c=n.indexOf(e.word);c!==-1&&(a=this.positionInside(c,n))}return a}positionInside(e,n){let a=n||this.toString(),c=this.source.start.column,u=this.source.start.line;for(let r=0;r<e;r++)a[r]===`
|
|
126
|
-
`?(c=1,u+=1):c+=1;return{column:c,line:u}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let n={column:this.source.start.column,line:this.source.start.line},a=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:n.column+1,line:n.line};if(e.word){let c=this.toString(),u=c.indexOf(e.word);u!==-1&&(n=this.positionInside(u,c),a=this.positionInside(u+e.word.length,c))}else e.start?n={column:e.start.column,line:e.start.line}:e.index&&(n=this.positionInside(e.index)),e.end?a={column:e.end.column,line:e.end.line}:e.endIndex?a=this.positionInside(e.endIndex):e.index&&(a=this.positionInside(e.index+1));return(a.line<n.line||a.line===n.line&&a.column<=n.column)&&(a={column:n.column+1,line:n.line}),{end:a,start:n}}raw(e,n){return new Q5().raw(this,e,n)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let n=this,a=!1;for(let c of e)c===this?a=!0:a?(this.parent.insertAfter(n,c),n=c):this.parent.insertBefore(n,c);a||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,n){let a={},c=n==null;n=n||new Map;let u=0;for(let r in this){if(!Object.prototype.hasOwnProperty.call(this,r)||r==="parent"||r==="proxyCache")continue;let l=this[r];if(Array.isArray(l))a[r]=l.map(i=>typeof i=="object"&&i.toJSON?i.toJSON(null,n):i);else if(typeof l=="object"&&l.toJSON)a[r]=l.toJSON(null,n);else if(r==="source"){let i=n.get(l.input);i==null&&(i=u,n.set(l.input,u),u++),a[r]={end:l.end,inputId:i,start:l.start}}else a[r]=l}return c&&(a.inputs=[...n.keys()].map(r=>r.toJSON())),a}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=Z5){e.stringify&&(e=e.stringify);let n="";return e(this,a=>{n+=a}),n}warn(e,n,a){let c={node:this};for(let u in a)c[u]=a[u];return e.warn(n,c)}get proxyOf(){return this}};var Ad=s1;s1.default=s1;let eN=Ad,a1=class extends eN{constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};var xd=a1;a1.default=a1;let tN="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",rN=(t,e=21)=>(n=e)=>{let a="",c=n;for(;c--;)a+=t[Math.random()*t.length|0];return a},nN=(t=21)=>{let e="",n=t;for(;n--;)e+=tN[Math.random()*64|0];return e};var iN={nanoid:nN,customAlphabet:rN};let{SourceMapConsumer:Vv,SourceMapGenerator:Wv}=xr,{existsSync:sN,readFileSync:aN}=Dn,{dirname:Ah,join:oN}=Lr;function lN(t){return Ve.Buffer?Ve.Buffer.from(t,"base64").toString():window.atob(t)}let o1=class{constructor(e,n){if(n.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let a=n.map?n.map.prev:void 0,c=this.loadMap(n.from,a);!this.mapFile&&n.from&&(this.mapFile=n.from),this.mapFile&&(this.root=Ah(this.mapFile)),c&&(this.text=c)}consumer(){return this.consumerCache||(this.consumerCache=new Vv(this.text)),this.consumerCache}decodeInline(e){let n=/^data:application\/json;charset=utf-?8;base64,/,a=/^data:application\/json;base64,/,c=/^data:application\/json;charset=utf-?8,/,u=/^data:application\/json,/;if(c.test(e)||u.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(n.test(e)||a.test(e))return lN(e.substr(RegExp.lastMatch.length));let r=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)}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 n=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!n)return;let a=e.lastIndexOf(n.pop()),c=e.indexOf("*/",a);a>-1&&c>-1&&(this.annotation=this.getAnnotationURL(e.substring(a,c)))}loadFile(e){if(this.root=Ah(e),sN(e))return this.mapFile=e,aN(e,"utf-8").toString().trim()}loadMap(e,n){if(n===!1)return!1;if(n){if(typeof n=="string")return n;if(typeof n=="function"){let a=n(e);if(a){let c=this.loadFile(a);if(!c)throw new Error("Unable to load previous source map: "+a.toString());return c}}else{if(n instanceof Vv)return Wv.fromSourceMap(n).toString();if(n instanceof Wv)return n.toString();if(this.isMap(n))return JSON.stringify(n);throw new Error("Unsupported previous source map format: "+n.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let a=this.annotation;return e&&(a=oN(Ah(e),a)),this.loadFile(a)}}}startWith(e,n){return e?e.substr(0,n.length)===n:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var d2=o1;o1.default=o1;let{SourceMapConsumer:uN,SourceMapGenerator:cN}=xr,{fileURLToPath:Hv,pathToFileURL:xc}=xr,{isAbsolute:l1,resolve:u1}=Lr,{nanoid:fN}=iN,xh=xr,qv=J0,dN=d2,Ph=Symbol("fromOffsetCache"),pN=!!(uN&&cN),Gv=!!(u1&&l1),If=class{constructor(e,n={}){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]===""?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,n.from&&(!Gv||/^\w+:\/\//.test(n.from)||l1(n.from)?this.file=n.from:this.file=u1(n.from)),Gv&&pN){let a=new dN(this.css,n);if(a.text){this.map=a;let c=a.consumer().file;!this.file&&c&&(this.file=this.mapResolve(c))}}this.file||(this.id="<input css "+fN(6)+">"),this.map&&(this.map.file=this.from)}error(e,n,a,c={}){let u,r,l;if(n&&typeof n=="object"){let f=n,d=a;if(typeof f.offset=="number"){let s=this.fromOffset(f.offset);n=s.line,a=s.col}else n=f.line,a=f.column;if(typeof d.offset=="number"){let s=this.fromOffset(d.offset);r=s.line,l=s.col}else r=d.line,l=d.column}else if(!a){let f=this.fromOffset(n);n=f.line,a=f.col}let i=this.origin(n,a,r,l);return i?u=new qv(e,i.endLine===void 0?i.line:{column:i.column,line:i.line},i.endLine===void 0?i.column:{column:i.endColumn,line:i.endLine},i.source,i.file,c.plugin):u=new qv(e,r===void 0?n:{column:a,line:n},r===void 0?a:{column:l,line:r},this.css,this.file,c.plugin),u.input={column:a,endColumn:l,endLine:r,line:n,source:this.css},this.file&&(xc&&(u.input.url=xc(this.file).toString()),u.input.file=this.file),u}fromOffset(e){let n,a;if(this[Ph])a=this[Ph];else{let u=this.css.split(`
|
|
126
|
+
`?(c=1,u+=1):c+=1;return{column:c,line:u}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let n={column:this.source.start.column,line:this.source.start.line},a=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:n.column+1,line:n.line};if(e.word){let c=this.toString(),u=c.indexOf(e.word);u!==-1&&(n=this.positionInside(u,c),a=this.positionInside(u+e.word.length,c))}else e.start?n={column:e.start.column,line:e.start.line}:e.index&&(n=this.positionInside(e.index)),e.end?a={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?a=this.positionInside(e.endIndex):e.index&&(a=this.positionInside(e.index+1));return(a.line<n.line||a.line===n.line&&a.column<=n.column)&&(a={column:n.column+1,line:n.line}),{end:a,start:n}}raw(e,n){return new Q5().raw(this,e,n)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let n=this,a=!1;for(let c of e)c===this?a=!0:a?(this.parent.insertAfter(n,c),n=c):this.parent.insertBefore(n,c);a||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,n){let a={},c=n==null;n=n||new Map;let u=0;for(let r in this){if(!Object.prototype.hasOwnProperty.call(this,r)||r==="parent"||r==="proxyCache")continue;let l=this[r];if(Array.isArray(l))a[r]=l.map(i=>typeof i=="object"&&i.toJSON?i.toJSON(null,n):i);else if(typeof l=="object"&&l.toJSON)a[r]=l.toJSON(null,n);else if(r==="source"){let i=n.get(l.input);i==null&&(i=u,n.set(l.input,u),u++),a[r]={end:l.end,inputId:i,start:l.start}}else a[r]=l}return c&&(a.inputs=[...n.keys()].map(r=>r.toJSON())),a}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=Z5){e.stringify&&(e=e.stringify);let n="";return e(this,a=>{n+=a}),n}warn(e,n,a){let c={node:this};for(let u in a)c[u]=a[u];return e.warn(n,c)}get proxyOf(){return this}};var Ad=s1;s1.default=s1;let eN=Ad,a1=class extends eN{constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};var xd=a1;a1.default=a1;let tN="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",rN=(t,e=21)=>(n=e)=>{let a="",c=n;for(;c--;)a+=t[Math.random()*t.length|0];return a},nN=(t=21)=>{let e="",n=t;for(;n--;)e+=tN[Math.random()*64|0];return e};var iN={nanoid:nN,customAlphabet:rN};let{SourceMapConsumer:Vv,SourceMapGenerator:Wv}=xr,{existsSync:sN,readFileSync:aN}=Dn,{dirname:Ah,join:oN}=Lr;function lN(t){return Ve.Buffer?Ve.Buffer.from(t,"base64").toString():window.atob(t)}let o1=class{constructor(e,n){if(n.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let a=n.map?n.map.prev:void 0,c=this.loadMap(n.from,a);!this.mapFile&&n.from&&(this.mapFile=n.from),this.mapFile&&(this.root=Ah(this.mapFile)),c&&(this.text=c)}consumer(){return this.consumerCache||(this.consumerCache=new Vv(this.text)),this.consumerCache}decodeInline(e){let n=/^data:application\/json;charset=utf-?8;base64,/,a=/^data:application\/json;base64,/,c=/^data:application\/json;charset=utf-?8,/,u=/^data:application\/json,/;if(c.test(e)||u.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(n.test(e)||a.test(e))return lN(e.substr(RegExp.lastMatch.length));let r=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)}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 n=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!n)return;let a=e.lastIndexOf(n.pop()),c=e.indexOf("*/",a);a>-1&&c>-1&&(this.annotation=this.getAnnotationURL(e.substring(a,c)))}loadFile(e){if(this.root=Ah(e),sN(e))return this.mapFile=e,aN(e,"utf-8").toString().trim()}loadMap(e,n){if(n===!1)return!1;if(n){if(typeof n=="string")return n;if(typeof n=="function"){let a=n(e);if(a){let c=this.loadFile(a);if(!c)throw new Error("Unable to load previous source map: "+a.toString());return c}}else{if(n instanceof Vv)return Wv.fromSourceMap(n).toString();if(n instanceof Wv)return n.toString();if(this.isMap(n))return JSON.stringify(n);throw new Error("Unsupported previous source map format: "+n.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let a=this.annotation;return e&&(a=oN(Ah(e),a)),this.loadFile(a)}}}startWith(e,n){return e?e.substr(0,n.length)===n:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var d2=o1;o1.default=o1;let{SourceMapConsumer:uN,SourceMapGenerator:cN}=xr,{fileURLToPath:Hv,pathToFileURL:xc}=xr,{isAbsolute:l1,resolve:u1}=Lr,{nanoid:fN}=iN,xh=xr,qv=J0,dN=d2,Ph=Symbol("fromOffsetCache"),pN=!!(uN&&cN),Gv=!!(u1&&l1),If=class{constructor(e,n={}){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]===""?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,n.from&&(!Gv||/^\w+:\/\//.test(n.from)||l1(n.from)?this.file=n.from:this.file=u1(n.from)),Gv&&pN){let a=new dN(this.css,n);if(a.text){this.map=a;let c=a.consumer().file;!this.file&&c&&(this.file=this.mapResolve(c))}}this.file||(this.id="<input css "+fN(6)+">"),this.map&&(this.map.file=this.from)}error(e,n,a,c={}){let u,r,l;if(n&&typeof n=="object"){let f=n,d=a;if(typeof f.offset=="number"){let s=this.fromOffset(f.offset);n=s.line,a=s.col}else n=f.line,a=f.column;if(typeof d.offset=="number"){let s=this.fromOffset(d.offset);r=s.line,l=s.col}else r=d.line,l=d.column}else if(!a){let f=this.fromOffset(n);n=f.line,a=f.col}let i=this.origin(n,a,r,l);return i?u=new qv(e,i.endLine===void 0?i.line:{column:i.column,line:i.line},i.endLine===void 0?i.column:{column:i.endColumn,line:i.endLine},i.source,i.file,c.plugin):u=new qv(e,r===void 0?n:{column:a,line:n},r===void 0?a:{column:l,line:r},this.css,this.file,c.plugin),u.input={column:a,endColumn:l,endLine:r,line:n,source:this.css},this.file&&(xc&&(u.input.url=xc(this.file).toString()),u.input.file=this.file),u}fromOffset(e){let n,a;if(this[Ph])a=this[Ph];else{let u=this.css.split(`
|
|
127
127
|
`);a=new Array(u.length);let r=0;for(let l=0,i=u.length;l<i;l++)a[l]=r,r+=u[l].length+1;this[Ph]=a}n=a[a.length-1];let c=0;if(e>=n)c=a.length-1;else{let u=a.length-2,r;for(;c<u;)if(r=c+(u-c>>1),e<a[r])u=r-1;else if(e>=a[r+1])c=r+1;else{c=r;break}}return{col:e-a[c]+1,line:c+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:u1(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,n,a,c){if(!this.map)return!1;let u=this.map.consumer(),r=u.originalPositionFor({column:n,line:e});if(!r.source)return!1;let l;typeof a=="number"&&(l=u.originalPositionFor({column:c,line:a}));let i;l1(r.source)?i=xc(r.source):i=new URL(r.source,this.map.consumer().sourceRoot||xc(this.map.mapFile));let f={column:r.column,endColumn:l&&l.column,endLine:l&&l.line,line:r.line,url:i.toString()};if(i.protocol==="file:")if(Hv)f.file=Hv(i);else throw new Error("file: protocol is not available in this PostCSS build");let d=u.sourceContentFor(r.source);return d&&(f.source=d),f}toJSON(){let e={};for(let n of["hasBOM","css","file","id"])this[n]!=null&&(e[n]=this[n]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}};var Pd=If;If.default=If;xh&&xh.registerInput&&xh.registerInput(If);let{SourceMapConsumer:p2,SourceMapGenerator:af}=xr,{dirname:of,relative:h2,resolve:m2,sep:y2}=Lr,{pathToFileURL:zv}=xr,hN=Pd,mN=!!(p2&&af),yN=!!(of&&m2&&h2&&y2),bN=class{constructor(e,n,a,c){this.stringify=e,this.mapOpts=a.map||{},this.root=n,this.opts=a,this.css=c,this.originalCSS=c,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let n=`
|
|
128
128
|
`;this.css.includes(`\r
|
|
129
129
|
`)&&(n=`\r
|
|
130
|
-
`),this.css+=n+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let n=this.toUrl(this.path(e.file)),a=e.root||of(e.file),c;this.mapOpts.sourcesContent===!1?(c=new p2(e.text),c.sourcesContent&&(c.sourcesContent=null)):c=e.consumer(),this.map.applySourceMap(c,n,this.toUrl(this.path(a)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let n=this.root.nodes.length-1;n>=0;n--)e=this.root.nodes[n],e.type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(n)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),yN&&mN&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,n=>{e+=n}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=af.fromSourceMap(e)}else this.map=new af({file:this.outputFile()}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new af({file:this.outputFile()});let e=1,n=1,a="<no source>",c={generated:{column:0,line:0},original:{column:0,line:0},source:""},u,r;this.stringify(this.root,(l,i,f)=>{if(this.css+=l,i&&f!=="end"&&(c.generated.line=e,c.generated.column=n-1,i.source&&i.source.start?(c.source=this.sourcePath(i),c.original.line=i.source.start.line,c.original.column=i.source.start.column-1,this.map.addMapping(c)):(c.source=a,c.original.line=1,c.original.column=0,this.map.addMapping(c))),u=l.match(/\n/g),u?(e+=u.length,r=l.lastIndexOf(`
|
|
130
|
+
`),this.css+=n+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let n=this.toUrl(this.path(e.file)),a=e.root||of(e.file),c;this.mapOpts.sourcesContent===!1?(c=new p2(e.text),c.sourcesContent&&(c.sourcesContent=null)):c=e.consumer(),this.map.applySourceMap(c,n,this.toUrl(this.path(a)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let n=this.root.nodes.length-1;n>=0;n--)e=this.root.nodes[n],e.type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(n)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),yN&&mN&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,n=>{e+=n}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=af.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new af({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new af({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,n=1,a="<no source>",c={generated:{column:0,line:0},original:{column:0,line:0},source:""},u,r;this.stringify(this.root,(l,i,f)=>{if(this.css+=l,i&&f!=="end"&&(c.generated.line=e,c.generated.column=n-1,i.source&&i.source.start?(c.source=this.sourcePath(i),c.original.line=i.source.start.line,c.original.column=i.source.start.column-1,this.map.addMapping(c)):(c.source=a,c.original.line=1,c.original.column=0,this.map.addMapping(c))),u=l.match(/\n/g),u?(e+=u.length,r=l.lastIndexOf(`
|
|
131
131
|
`),n=l.length-r):n+=l.length,i&&f!=="start"){let d=i.parent||{raws:{}};(!(i.type==="decl"||i.type==="atrule"&&!i.nodes)||i!==d.last||d.raws.semicolon)&&(i.source&&i.source.end?(c.source=this.sourcePath(i),c.original.line=i.source.end.line,c.original.column=i.source.end.column-1,c.generated.line=e,c.generated.column=n-2,this.map.addMapping(c)):(c.source=a,c.original.line=1,c.original.column=0,c.generated.line=e,c.generated.column=n-1,this.map.addMapping(c)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(n=>n.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let n=this.memoizedPaths.get(e);if(n)return n;let a=this.opts.to?of(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(a=of(m2(a,this.mapOpts.annotation)));let c=h2(a,e);return this.memoizedPaths.set(e,c),c}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let n=e.source.input.map;this.previousMaps.includes(n)||this.previousMaps.push(n)}});else{let e=new hN(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(n=>{if(n.source){let a=n.source.input.from;if(a&&!e[a]){e[a]=!0;let c=this.usesFileUrls?this.toFileUrl(a):this.toUrl(this.path(a));this.map.setSourceContent(c,n.source.input.css)}}});else if(this.css){let n=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(n,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Ve.Buffer?Ve.Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let n=this.memoizedFileURLs.get(e);if(n)return n;if(zv){let a=zv(e).toString();return this.memoizedFileURLs.set(e,a),a}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let n=this.memoizedURLs.get(e);if(n)return n;y2==="\\"&&(e=e.replace(/\\/g,"/"));let a=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,a),a}};var b2=bN;let gN=Ad,c1=class extends gN{constructor(e){super(e),this.type="comment"}};var Cd=c1;c1.default=c1;let{isClean:g2,my:v2}=ku,E2=xd,_2=Cd,vN=Ad,S2,Q0,Z0,w2;function T2(t){return t.map(e=>(e.nodes&&(e.nodes=T2(e.nodes)),delete e.source,e))}function A2(t){if(t[g2]=!1,t.proxyOf.nodes)for(let e of t.proxyOf.nodes)A2(e)}let Ls=class x2 extends vN{append(...e){for(let n of e){let a=this.normalize(n,this.last);for(let c of a)this.proxyOf.nodes.push(c)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let n of this.nodes)n.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let n=this.getIterator(),a,c;for(;this.indexes[n]<this.proxyOf.nodes.length&&(a=this.indexes[n],c=e(this.proxyOf.nodes[a],a),c!==!1);)this.indexes[n]+=1;return delete this.indexes[n],c}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,n){return n==="proxyOf"?e:e[n]?n==="each"||typeof n=="string"&&n.startsWith("walk")?(...a)=>e[n](...a.map(c=>typeof c=="function"?(u,r)=>c(u.toProxy(),r):c)):n==="every"||n==="some"?a=>e[n]((c,...u)=>a(c.toProxy(),...u)):n==="root"?()=>e.root().toProxy():n==="nodes"?e.nodes.map(a=>a.toProxy()):n==="first"||n==="last"?e[n].toProxy():e[n]:e[n]},set(e,n,a){return e[n]===a||(e[n]=a,(n==="name"||n==="params"||n==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,n){let a=this.index(e),c=this.normalize(n,this.proxyOf.nodes[a]).reverse();a=this.index(e);for(let r of c)this.proxyOf.nodes.splice(a+1,0,r);let u;for(let r in this.indexes)u=this.indexes[r],a<u&&(this.indexes[r]=u+c.length);return this.markDirty(),this}insertBefore(e,n){let a=this.index(e),c=a===0?"prepend":!1,u=this.normalize(n,this.proxyOf.nodes[a],c).reverse();a=this.index(e);for(let l of u)this.proxyOf.nodes.splice(a,0,l);let r;for(let l in this.indexes)r=this.indexes[l],a<=r&&(this.indexes[l]=r+u.length);return this.markDirty(),this}normalize(e,n){if(typeof e=="string")e=T2(S2(e).nodes);else if(typeof e>"u")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let c of e)c.parent&&c.parent.removeChild(c,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let c of e)c.parent&&c.parent.removeChild(c,"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 E2(e)]}else if(e.selector)e=[new Q0(e)];else if(e.name)e=[new Z0(e)];else if(e.text)e=[new _2(e)];else throw new Error("Unknown node type in node creation");return e.map(c=>(c[v2]||x2.rebuild(c),c=c.proxyOf,c.parent&&c.parent.removeChild(c),c[g2]&&A2(c),typeof c.raws.before>"u"&&n&&typeof n.raws.before<"u"&&(c.raws.before=n.raws.before.replace(/\S/g,"")),c.parent=this.proxyOf,c))}prepend(...e){e=e.reverse();for(let n of e){let a=this.normalize(n,this.first,"prepend").reverse();for(let c of a)this.proxyOf.nodes.unshift(c);for(let c in this.indexes)this.indexes[c]=this.indexes[c]+a.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 n;for(let a in this.indexes)n=this.indexes[a],n>=e&&(this.indexes[a]=n-1);return this.markDirty(),this}replaceValues(e,n,a){return a||(a=n,n={}),this.walkDecls(c=>{n.props&&!n.props.includes(c.prop)||n.fast&&!c.value.includes(n.fast)||(c.value=c.value.replace(e,a))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((n,a)=>{let c;try{c=e(n,a)}catch(u){throw n.addToError(u)}return c!==!1&&n.walk&&(c=n.walk(e)),c})}walkAtRules(e,n){return n?e instanceof RegExp?this.walk((a,c)=>{if(a.type==="atrule"&&e.test(a.name))return n(a,c)}):this.walk((a,c)=>{if(a.type==="atrule"&&a.name===e)return n(a,c)}):(n=e,this.walk((a,c)=>{if(a.type==="atrule")return n(a,c)}))}walkComments(e){return this.walk((n,a)=>{if(n.type==="comment")return e(n,a)})}walkDecls(e,n){return n?e instanceof RegExp?this.walk((a,c)=>{if(a.type==="decl"&&e.test(a.prop))return n(a,c)}):this.walk((a,c)=>{if(a.type==="decl"&&a.prop===e)return n(a,c)}):(n=e,this.walk((a,c)=>{if(a.type==="decl")return n(a,c)}))}walkRules(e,n){return n?e instanceof RegExp?this.walk((a,c)=>{if(a.type==="rule"&&e.test(a.selector))return n(a,c)}):this.walk((a,c)=>{if(a.type==="rule"&&a.selector===e)return n(a,c)}):(n=e,this.walk((a,c)=>{if(a.type==="rule")return n(a,c)}))}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]}};Ls.registerParse=t=>{S2=t};Ls.registerRule=t=>{Q0=t};Ls.registerAtRule=t=>{Z0=t};Ls.registerRoot=t=>{w2=t};var Ya=Ls;Ls.default=Ls;Ls.rebuild=t=>{t.type==="atrule"?Object.setPrototypeOf(t,Z0.prototype):t.type==="rule"?Object.setPrototypeOf(t,Q0.prototype):t.type==="decl"?Object.setPrototypeOf(t,E2.prototype):t.type==="comment"?Object.setPrototypeOf(t,_2.prototype):t.type==="root"&&Object.setPrototypeOf(t,w2.prototype),t[v2]=!0,t.nodes&&t.nodes.forEach(e=>{Ls.rebuild(e)})};let EN=Ya,P2,C2,iu=class extends EN{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new P2(new C2,this,e).stringify()}};iu.registerLazyResult=t=>{P2=t};iu.registerProcessor=t=>{C2=t};var ey=iu;iu.default=iu;let Kv={};var I2=function(e){Kv[e]||(Kv[e]=!0,typeof console<"u"&&console.warn&&console.warn(e))};let f1=class{constructor(e,n={}){if(this.type="warning",this.text=e,n.node&&n.node.source){let a=n.node.rangeBy(n);this.line=a.start.line,this.column=a.start.column,this.endLine=a.end.line,this.endColumn=a.end.column}for(let a in n)this[a]=n[a]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};var O2=f1;f1.default=f1;let _N=O2,d1=class{constructor(e,n,a){this.processor=e,this.messages=[],this.root=n,this.opts=a,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,n={}){n.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(n.plugin=this.lastPlugin.postcssPlugin);let a=new _N(e,n);return this.messages.push(a),a}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};var ty=d1;d1.default=d1;const Ch="'".charCodeAt(0),Yv='"'.charCodeAt(0),Pc="\\".charCodeAt(0),Xv="/".charCodeAt(0),Cc=`
|
|
132
132
|
`.charCodeAt(0),Al=" ".charCodeAt(0),Ic="\f".charCodeAt(0),Oc=" ".charCodeAt(0),kc="\r".charCodeAt(0),SN="[".charCodeAt(0),wN="]".charCodeAt(0),TN="(".charCodeAt(0),AN=")".charCodeAt(0),xN="{".charCodeAt(0),PN="}".charCodeAt(0),CN=";".charCodeAt(0),IN="*".charCodeAt(0),ON=":".charCodeAt(0),kN="@".charCodeAt(0),Dc=/[\t\n\f\r "#'()/;[\\\]{}]/g,Nc=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,DN=/.[\r\n"'(/\\]/,Jv=/[\da-f]/i;var NN=function(e,n={}){let a=e.css.valueOf(),c=n.ignoreErrors,u,r,l,i,f,d,s,o,m,h,y=a.length,b=0,E=[],S=[];function g(){return b}function P(I){throw e.error("Unclosed "+I,b)}function R(){return S.length===0&&b>=y}function N(I){if(S.length)return S.pop();if(b>=y)return;let D=I?I.ignoreUnclosed:!1;switch(u=a.charCodeAt(b),u){case Cc:case Al:case Oc:case kc:case Ic:{r=b;do r+=1,u=a.charCodeAt(r);while(u===Al||u===Cc||u===Oc||u===kc||u===Ic);h=["space",a.slice(b,r)],b=r-1;break}case SN:case wN:case xN:case PN:case ON:case CN:case AN:{let j=String.fromCharCode(u);h=[j,j,b];break}case TN:{if(o=E.length?E.pop()[1]:"",m=a.charCodeAt(b+1),o==="url"&&m!==Ch&&m!==Yv&&m!==Al&&m!==Cc&&m!==Oc&&m!==Ic&&m!==kc){r=b;do{if(d=!1,r=a.indexOf(")",r+1),r===-1)if(c||D){r=b;break}else P("bracket");for(s=r;a.charCodeAt(s-1)===Pc;)s-=1,d=!d}while(d);h=["brackets",a.slice(b,r+1),b,r],b=r}else r=a.indexOf(")",b+1),i=a.slice(b,r+1),r===-1||DN.test(i)?h=["(","(",b]:(h=["brackets",i,b,r],b=r);break}case Ch:case Yv:{l=u===Ch?"'":'"',r=b;do{if(d=!1,r=a.indexOf(l,r+1),r===-1)if(c||D){r=b+1;break}else P("string");for(s=r;a.charCodeAt(s-1)===Pc;)s-=1,d=!d}while(d);h=["string",a.slice(b,r+1),b,r],b=r;break}case kN:{Dc.lastIndex=b+1,Dc.test(a),Dc.lastIndex===0?r=a.length-1:r=Dc.lastIndex-2,h=["at-word",a.slice(b,r+1),b,r],b=r;break}case Pc:{for(r=b,f=!0;a.charCodeAt(r+1)===Pc;)r+=1,f=!f;if(u=a.charCodeAt(r+1),f&&u!==Xv&&u!==Al&&u!==Cc&&u!==Oc&&u!==kc&&u!==Ic&&(r+=1,Jv.test(a.charAt(r)))){for(;Jv.test(a.charAt(r+1));)r+=1;a.charCodeAt(r+1)===Al&&(r+=1)}h=["word",a.slice(b,r+1),b,r],b=r;break}default:{u===Xv&&a.charCodeAt(b+1)===IN?(r=a.indexOf("*/",b+2)+1,r===0&&(c||D?r=a.length:P("comment")),h=["comment",a.slice(b,r+1),b,r],b=r):(Nc.lastIndex=b+1,Nc.test(a),Nc.lastIndex===0?r=a.length-1:r=Nc.lastIndex-2,h=["word",a.slice(b,r+1),b,r],E.push(h),b=r);break}}return b++,h}function C(I){S.push(I)}return{back:C,endOfFile:R,nextToken:N,position:g}};let k2=Ya,Of=class extends k2{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)}};var ry=Of;Of.default=Of;k2.registerAtRule(Of);let D2=Ya,N2,R2,Mo=class extends D2{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,n,a){let c=super.normalize(e);if(n){if(a==="prepend")this.nodes.length>1?n.raws.before=this.nodes[1].raws.before:delete n.raws.before;else if(this.first!==n)for(let u of c)u.raws.before=n.raws.before}return c}removeChild(e,n){let a=this.index(e);return!n&&a===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[a].raws.before),super.removeChild(e)}toResult(e={}){return new N2(new R2,this,e).stringify()}};Mo.registerLazyResult=t=>{N2=t};Mo.registerProcessor=t=>{R2=t};var Du=Mo;Mo.default=Mo;D2.registerRoot(Mo);let su={comma(t){return su.split(t,[","],!0)},space(t){let e=[" ",`
|
|
133
133
|
`," "];return su.split(t,e)},split(t,e,n){let a=[],c="",u=!1,r=0,l=!1,i="",f=!1;for(let d of t)f?f=!1:d==="\\"?f=!0:l?d===i&&(l=!1):d==='"'||d==="'"?(l=!0,i=d):d==="("?r+=1:d===")"?r>0&&(r-=1):r===0&&e.includes(d)&&(u=!0),u?(c!==""&&a.push(c.trim()),c="",u=!1):c+=d;return(n||c!=="")&&a.push(c.trim()),a}};var M2=su;su.default=su;let L2=Ya,RN=M2,kf=class extends L2{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return RN.comma(this.selector)}set selectors(e){let n=this.selector?this.selector.match(/,\s*/):null,a=n?n[0]:","+this.raw("between","beforeOpen");this.selector=e.join(a)}};var ny=kf;kf.default=kf;L2.registerRule(kf);let MN=xd,LN=NN,jN=Cd,FN=ry,BN=Du,Qv=ny;const Zv={empty:!0,space:!0};function $N(t){for(let e=t.length-1;e>=0;e--){let n=t[e],a=n[3]||n[2];if(a)return a}}let UN=class{constructor(e){this.input=e,this.root=new BN,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 n=new FN;n.name=e[1].slice(1),n.name===""&&this.unnamedAtrule(n,e),this.init(n,e[2]);let a,c,u,r=!1,l=!1,i=[],f=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),a=e[0],a==="("||a==="["?f.push(a==="("?")":"]"):a==="{"&&f.length>0?f.push("}"):a===f[f.length-1]&&f.pop(),f.length===0)if(a===";"){n.source.end=this.getPosition(e[2]),n.source.end.offset++,this.semicolon=!0;break}else if(a==="{"){l=!0;break}else if(a==="}"){if(i.length>0){for(u=i.length-1,c=i[u];c&&c[0]==="space";)c=i[--u];c&&(n.source.end=this.getPosition(c[3]||c[2]),n.source.end.offset++)}this.end(e);break}else i.push(e);else i.push(e);if(this.tokenizer.endOfFile()){r=!0;break}}n.raws.between=this.spacesAndCommentsFromEnd(i),i.length?(n.raws.afterName=this.spacesAndCommentsFromStart(i),this.raw(n,"params",i),r&&(e=i[i.length-1],n.source.end=this.getPosition(e[3]||e[2]),n.source.end.offset++,this.spaces=n.raws.between,n.raws.between="")):(n.raws.afterName="",n.params=""),l&&(n.nodes=[],this.current=n)}checkMissedSemicolon(e){let n=this.colon(e);if(n===!1)return;let a=0,c;for(let u=n-1;u>=0&&(c=e[u],!(c[0]!=="space"&&(a+=1,a===2)));u--);throw this.input.error("Missed semicolon",c[0]==="word"?c[3]+1:c[2])}colon(e){let n=0,a,c,u;for(let[r,l]of e.entries()){if(a=l,c=a[0],c==="("&&(n+=1),c===")"&&(n-=1),n===0&&c===":")if(!u)this.doubleColon(a);else{if(u[0]==="word"&&u[1]==="progid")continue;return r}u=a}return!1}comment(e){let n=new jN;this.init(n,e[2]),n.source.end=this.getPosition(e[3]||e[2]),n.source.end.offset++;let a=e[1].slice(2,-2);if(/^\s*$/.test(a))n.text="",n.raws.left=a,n.raws.right="";else{let c=a.match(/^(\s*)([^]*\S)(\s*)$/);n.text=c[2],n.raws.left=c[1],n.raws.right=c[3]}}createTokenizer(){this.tokenizer=LN(this.input)}decl(e,n){let a=new MN;this.init(a,e[0][2]);let c=e[e.length-1];for(c[0]===";"&&(this.semicolon=!0,e.pop()),a.source.end=this.getPosition(c[3]||c[2]||$N(e)),a.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),a.raws.before+=e.shift()[1];for(a.source.start=this.getPosition(e[0][2]),a.prop="";e.length;){let f=e[0][0];if(f===":"||f==="space"||f==="comment")break;a.prop+=e.shift()[1]}a.raws.between="";let u;for(;e.length;)if(u=e.shift(),u[0]===":"){a.raws.between+=u[1];break}else u[0]==="word"&&/\w/.test(u[1])&&this.unknownWord([u]),a.raws.between+=u[1];(a.prop[0]==="_"||a.prop[0]==="*")&&(a.raws.before+=a.prop[0],a.prop=a.prop.slice(1));let r=[],l;for(;e.length&&(l=e[0][0],!(l!=="space"&&l!=="comment"));)r.push(e.shift());this.precheckMissedSemicolon(e);for(let f=e.length-1;f>=0;f--){if(u=e[f],u[1].toLowerCase()==="!important"){a.important=!0;let d=this.stringFrom(e,f);d=this.spacesFromEnd(e)+d,d!==" !important"&&(a.raws.important=d);break}else if(u[1].toLowerCase()==="important"){let d=e.slice(0),s="";for(let o=f;o>0;o--){let m=d[o][0];if(s.trim().indexOf("!")===0&&m!=="space")break;s=d.pop()[1]+s}s.trim().indexOf("!")===0&&(a.important=!0,a.raws.important=s,e=d)}if(u[0]!=="space"&&u[0]!=="comment")break}e.some(f=>f[0]!=="space"&&f[0]!=="comment")&&(a.raws.between+=r.map(f=>f[1]).join(""),r=[]),this.raw(a,"value",r.concat(e),n),a.value.includes(":")&&!n&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let n=new Qv;this.init(n,e[2]),n.selector="",n.raws.between="",this.current=n}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 n=this.current.nodes[this.current.nodes.length-1];n&&n.type==="rule"&&!n.raws.ownSemicolon&&(n.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let n=this.input.fromOffset(e);return{column:n.col,line:n.line,offset:e}}init(e,n){this.current.push(e),e.source={input:this.input,start:this.getPosition(n)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let n=!1,a=null,c=!1,u=null,r=[],l=e[1].startsWith("--"),i=[],f=e;for(;f;){if(a=f[0],i.push(f),a==="("||a==="[")u||(u=f),r.push(a==="("?")":"]");else if(l&&c&&a==="{")u||(u=f),r.push("}");else if(r.length===0)if(a===";")if(c){this.decl(i,l);return}else break;else if(a==="{"){this.rule(i);return}else if(a==="}"){this.tokenizer.back(i.pop()),n=!0;break}else a===":"&&(c=!0);else a===r[r.length-1]&&(r.pop(),r.length===0&&(u=null));f=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(n=!0),r.length>0&&this.unclosedBracket(u),n&&c){if(!l)for(;i.length&&(f=i[i.length-1][0],!(f!=="space"&&f!=="comment"));)this.tokenizer.back(i.pop());this.decl(i,l)}else this.unknownWord(i)}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,n,a,c){let u,r,l=a.length,i="",f=!0,d,s;for(let o=0;o<l;o+=1)u=a[o],r=u[0],r==="space"&&o===l-1&&!c?f=!1:r==="comment"?(s=a[o-1]?a[o-1][0]:"empty",d=a[o+1]?a[o+1][0]:"empty",!Zv[s]&&!Zv[d]?i.slice(-1)===","?f=!1:i+=u[1]:f=!1):i+=u[1];if(!f){let o=a.reduce((m,h)=>m+h[1],"");e.raws[n]={raw:o,value:i}}e[n]=i}rule(e){e.pop();let n=new Qv;this.init(n,e[0][2]),n.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(n,"selector",e),this.current=n}spacesAndCommentsFromEnd(e){let n,a="";for(;e.length&&(n=e[e.length-1][0],!(n!=="space"&&n!=="comment"));)a=e.pop()[1]+a;return a}spacesAndCommentsFromStart(e){let n,a="";for(;e.length&&(n=e[0][0],!(n!=="space"&&n!=="comment"));)a+=e.shift()[1];return a}spacesFromEnd(e){let n,a="";for(;e.length&&(n=e[e.length-1][0],n==="space");)a=e.pop()[1]+a;return a}stringFrom(e,n){let a="";for(let c=n;c<e.length;c++)a+=e[c][1];return e.splice(n,e.length-n),a}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",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,n){throw this.input.error("At-rule without name",{offset:n[2]},{offset:n[2]+n[1].length})}};var VN=UN;let WN=Ya,HN=VN,qN=Pd;function Df(t,e){let n=new qN(t,e),a=new HN(n);try{a.parse()}catch(c){throw Ve.process.env.NODE_ENV!=="production"&&c.name==="CssSyntaxError"&&e&&e.from&&(/\.scss$/i.test(e.from)?c.message+=`
|
|
134
134
|
You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser`:/\.sass/i.test(e.from)?c.message+=`
|
|
135
135
|
You tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser`:/\.less$/i.test(e.from)&&(c.message+=`
|
|
136
|
-
You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)),c}return a.root}var iy=Df;Df.default=Df;WN.registerParse(Df);let{isClean:Zi,my:GN}=ku,zN=b2,KN=Td,YN=Ya,XN=ey,JN=I2,eE=ty,QN=iy,ZN=Du;const e4={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},t4={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},r4={Once:!0,postcssPlugin:!0,prepare:!0},Lo=0;function xl(t){return typeof t=="object"&&typeof t.then=="function"}function j2(t){let e=!1,n=e4[t.type];return t.type==="decl"?e=t.prop.toLowerCase():t.type==="atrule"&&(e=t.name.toLowerCase()),e&&t.append?[n,n+"-"+e,Lo,n+"Exit",n+"Exit-"+e]:e?[n,n+"-"+e,n+"Exit",n+"Exit-"+e]:t.append?[n,Lo,n+"Exit"]:[n,n+"Exit"]}function tE(t){let e;return t.type==="document"?e=["Document",Lo,"DocumentExit"]:t.type==="root"?e=["Root",Lo,"RootExit"]:e=j2(t),{eventIndex:0,events:e,iterator:0,node:t,visitorIndex:0,visitors:[]}}function p1(t){return t[Zi]=!1,t.nodes&&t.nodes.forEach(e=>p1(e)),t}let h1={},jo=class F2{constructor(e,n,a){this.stringified=!1,this.processed=!1;let c;if(typeof n=="object"&&n!==null&&(n.type==="root"||n.type==="document"))c=p1(n);else if(n instanceof F2||n instanceof eE)c=p1(n.root),n.map&&(typeof a.map>"u"&&(a.map={}),a.map.inline||(a.map.inline=!1),a.map.prev=n.map);else{let u=QN;a.syntax&&(u=a.syntax.parse),a.parser&&(u=a.parser),u.parse&&(u=u.parse);try{c=u(n,a)}catch(r){this.processed=!0,this.error=r}c&&!c[GN]&&YN.rebuild(c)}this.result=new eE(e,c,a),this.helpers={...h1,postcss:h1,result:this.result},this.plugins=this.processor.plugins.map(u=>typeof u=="object"&&u.prepare?{...u,...u.prepare(this.result)}:u)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,n){let a=this.result.lastPlugin;try{if(n&&n.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=a.postcssPlugin,e.setMessage();else if(a.postcssVersion&&Ve.process.env.NODE_ENV!=="production"){let c=a.postcssPlugin,u=a.postcssVersion,r=this.result.processor.version,l=u.split("."),i=r.split(".");(l[0]!==i[0]||parseInt(l[1])>parseInt(i[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+r+", but "+c+" uses "+u+". Perhaps this is the source of the error below.")}}catch(c){console&&console.error&&console.error(c)}return e}prepareVisitors(){this.listeners={};let e=(n,a,c)=>{this.listeners[a]||(this.listeners[a]=[]),this.listeners[a].push([n,c])};for(let n of this.plugins)if(typeof n=="object")for(let a in n){if(!t4[a]&&/^[A-Z]/.test(a))throw new Error(`Unknown event ${a} in ${n.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!r4[a])if(typeof n[a]=="object")for(let c in n[a])c==="*"?e(n,a,n[a][c]):e(n,a+"-"+c.toLowerCase(),n[a][c]);else typeof n[a]=="function"&&e(n,a,n[a])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let n=this.plugins[e],a=this.runOnRoot(n);if(xl(a))try{await a}catch(c){throw this.handleError(c)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Zi];){e[Zi]=!0;let n=[tE(e)];for(;n.length>0;){let a=this.visitTick(n);if(xl(a))try{await a}catch(c){let u=n[n.length-1].node;throw this.handleError(c,u)}}}if(this.listeners.OnceExit)for(let[n,a]of this.listeners.OnceExit){this.result.lastPlugin=n;try{if(e.type==="document"){let c=e.nodes.map(u=>a(u,this.helpers));await Promise.all(c)}else await a(e,this.helpers)}catch(c){throw this.handleError(c)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let n=this.result.root.nodes.map(a=>e.Once(a,this.helpers));return xl(n[0])?Promise.all(n):n}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(n){throw this.handleError(n)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,n=KN;e.syntax&&(n=e.syntax.stringify),e.stringifier&&(n=e.stringifier),n.stringify&&(n=n.stringify);let c=new zN(n,this.result.root,this.result.opts).generate();return this.result.css=c[0],this.result.map=c[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let n=this.runOnRoot(e);if(xl(n))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Zi];)e[Zi]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let n of e.nodes)this.visitSync(this.listeners.OnceExit,n);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,n){return Ve.process.env.NODE_ENV!=="production"&&("from"in this.opts||JN("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,n)}toString(){return this.css}visitSync(e,n){for(let[a,c]of e){this.result.lastPlugin=a;let u;try{u=c(n,this.helpers)}catch(r){throw this.handleError(r,n.proxyOf)}if(n.type!=="root"&&n.type!=="document"&&!n.parent)return!0;if(xl(u))throw this.getAsyncError()}}visitTick(e){let n=e[e.length-1],{node:a,visitors:c}=n;if(a.type!=="root"&&a.type!=="document"&&!a.parent){e.pop();return}if(c.length>0&&n.visitorIndex<c.length){let[r,l]=c[n.visitorIndex];n.visitorIndex+=1,n.visitorIndex===c.length&&(n.visitors=[],n.visitorIndex=0),this.result.lastPlugin=r;try{return l(a.toProxy(),this.helpers)}catch(i){throw this.handleError(i,a)}}if(n.iterator!==0){let r=n.iterator,l;for(;l=a.nodes[a.indexes[r]];)if(a.indexes[r]+=1,!l[Zi]){l[Zi]=!0,e.push(tE(l));return}n.iterator=0,delete a.indexes[r]}let u=n.events;for(;n.eventIndex<u.length;){let r=u[n.eventIndex];if(n.eventIndex+=1,r===Lo){a.nodes&&a.nodes.length&&(a[Zi]=!0,n.iterator=a.getIterator());return}else if(this.listeners[r]){n.visitors=this.listeners[r];return}}e.pop()}walkSync(e){e[Zi]=!0;let n=j2(e);for(let a of n)if(a===Lo)e.nodes&&e.each(c=>{c[Zi]||this.walkSync(c)});else{let c=this.listeners[a];if(c&&this.visitSync(c,e.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};jo.registerPostcss=t=>{h1=t};var B2=jo;jo.default=jo;ZN.registerLazyResult(jo);XN.registerLazyResult(jo);let n4=b2,i4=Td,s4=I2,a4=iy;const o4=ty;let m1=class{constructor(e,n,a){n=n.toString(),this.stringified=!1,this._processor=e,this._css=n,this._opts=a,this._map=void 0;let c,u=i4;this.result=new o4(this._processor,c,this._opts),this.result.css=n;let r=this;Object.defineProperty(this.result,"root",{get(){return r.root}});let l=new n4(u,c,this._opts,n);if(l.isMap()){let[i,f]=l.generate();i&&(this.result.css=i),f&&(this.result.map=f)}else l.clearAnnotation(),this.result.css=l.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,n){return Ve.process.env.NODE_ENV!=="production"&&("from"in this._opts||s4("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,n)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,n=a4;try{e=n(this._css,this._opts)}catch(a){this.error=a}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};var l4=m1;m1.default=m1;let u4=l4,c4=B2,f4=ey,d4=Du,au=class{constructor(e=[]){this.version="8.4.35",this.plugins=this.normalize(e)}normalize(e){let n=[];for(let a of e)if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),typeof a=="object"&&Array.isArray(a.plugins))n=n.concat(a.plugins);else if(typeof a=="object"&&a.postcssPlugin)n.push(a);else if(typeof a=="function")n.push(a);else if(typeof a=="object"&&(a.parse||a.stringify)){if(Ve.process.env.NODE_ENV!=="production")throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}else throw new Error(a+" is not a PostCSS plugin");return n}process(e,n={}){return!this.plugins.length&&!n.parser&&!n.stringifier&&!n.syntax?new u4(this,e,n):new c4(this,e,n)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var p4=au;au.default=au;d4.registerProcessor(au);f4.registerProcessor(au);let h4=xd,m4=d2,y4=Cd,b4=ry,g4=Pd,v4=Du,E4=ny;function ou(t,e){if(Array.isArray(t))return t.map(c=>ou(c));let{inputs:n,...a}=t;if(n){e=[];for(let c of n){let u={...c,__proto__:g4.prototype};u.map&&(u.map={...u.map,__proto__:m4.prototype}),e.push(u)}}if(a.nodes&&(a.nodes=t.nodes.map(c=>ou(c,e))),a.source){let{inputId:c,...u}=a.source;a.source=u,c!=null&&(a.source.input=e[c])}if(a.type==="root")return new v4(a);if(a.type==="decl")return new h4(a);if(a.type==="rule")return new E4(a);if(a.type==="comment")return new y4(a);if(a.type==="atrule")return new b4(a);throw new Error("Unknown node type: "+t.type)}var _4=ou;ou.default=ou;let S4=J0,$2=xd,w4=B2,T4=Ya,sy=p4,A4=Td,x4=_4,U2=ey,P4=O2,V2=Cd,W2=ry,C4=ty,I4=Pd,O4=iy,k4=M2,H2=ny,q2=Du,D4=Ad;function br(...t){return t.length===1&&Array.isArray(t[0])&&(t=t[0]),new sy(t)}br.plugin=function(e,n){let a=!1;function c(...r){console&&console.warn&&!a&&(a=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
|
|
136
|
+
You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)),c}return a.root}var iy=Df;Df.default=Df;WN.registerParse(Df);let{isClean:Zi,my:GN}=ku,zN=b2,KN=Td,YN=Ya,XN=ey,JN=I2,eE=ty,QN=iy,ZN=Du;const e4={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},t4={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},r4={Once:!0,postcssPlugin:!0,prepare:!0},Lo=0;function xl(t){return typeof t=="object"&&typeof t.then=="function"}function j2(t){let e=!1,n=e4[t.type];return t.type==="decl"?e=t.prop.toLowerCase():t.type==="atrule"&&(e=t.name.toLowerCase()),e&&t.append?[n,n+"-"+e,Lo,n+"Exit",n+"Exit-"+e]:e?[n,n+"-"+e,n+"Exit",n+"Exit-"+e]:t.append?[n,Lo,n+"Exit"]:[n,n+"Exit"]}function tE(t){let e;return t.type==="document"?e=["Document",Lo,"DocumentExit"]:t.type==="root"?e=["Root",Lo,"RootExit"]:e=j2(t),{eventIndex:0,events:e,iterator:0,node:t,visitorIndex:0,visitors:[]}}function p1(t){return t[Zi]=!1,t.nodes&&t.nodes.forEach(e=>p1(e)),t}let h1={},jo=class F2{constructor(e,n,a){this.stringified=!1,this.processed=!1;let c;if(typeof n=="object"&&n!==null&&(n.type==="root"||n.type==="document"))c=p1(n);else if(n instanceof F2||n instanceof eE)c=p1(n.root),n.map&&(typeof a.map>"u"&&(a.map={}),a.map.inline||(a.map.inline=!1),a.map.prev=n.map);else{let u=QN;a.syntax&&(u=a.syntax.parse),a.parser&&(u=a.parser),u.parse&&(u=u.parse);try{c=u(n,a)}catch(r){this.processed=!0,this.error=r}c&&!c[GN]&&YN.rebuild(c)}this.result=new eE(e,c,a),this.helpers={...h1,postcss:h1,result:this.result},this.plugins=this.processor.plugins.map(u=>typeof u=="object"&&u.prepare?{...u,...u.prepare(this.result)}:u)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,n){let a=this.result.lastPlugin;try{if(n&&n.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=a.postcssPlugin,e.setMessage();else if(a.postcssVersion&&Ve.process.env.NODE_ENV!=="production"){let c=a.postcssPlugin,u=a.postcssVersion,r=this.result.processor.version,l=u.split("."),i=r.split(".");(l[0]!==i[0]||parseInt(l[1])>parseInt(i[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+r+", but "+c+" uses "+u+". Perhaps this is the source of the error below.")}}catch(c){console&&console.error&&console.error(c)}return e}prepareVisitors(){this.listeners={};let e=(n,a,c)=>{this.listeners[a]||(this.listeners[a]=[]),this.listeners[a].push([n,c])};for(let n of this.plugins)if(typeof n=="object")for(let a in n){if(!t4[a]&&/^[A-Z]/.test(a))throw new Error(`Unknown event ${a} in ${n.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!r4[a])if(typeof n[a]=="object")for(let c in n[a])c==="*"?e(n,a,n[a][c]):e(n,a+"-"+c.toLowerCase(),n[a][c]);else typeof n[a]=="function"&&e(n,a,n[a])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let n=this.plugins[e],a=this.runOnRoot(n);if(xl(a))try{await a}catch(c){throw this.handleError(c)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Zi];){e[Zi]=!0;let n=[tE(e)];for(;n.length>0;){let a=this.visitTick(n);if(xl(a))try{await a}catch(c){let u=n[n.length-1].node;throw this.handleError(c,u)}}}if(this.listeners.OnceExit)for(let[n,a]of this.listeners.OnceExit){this.result.lastPlugin=n;try{if(e.type==="document"){let c=e.nodes.map(u=>a(u,this.helpers));await Promise.all(c)}else await a(e,this.helpers)}catch(c){throw this.handleError(c)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let n=this.result.root.nodes.map(a=>e.Once(a,this.helpers));return xl(n[0])?Promise.all(n):n}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(n){throw this.handleError(n)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,n=KN;e.syntax&&(n=e.syntax.stringify),e.stringifier&&(n=e.stringifier),n.stringify&&(n=n.stringify);let c=new zN(n,this.result.root,this.result.opts).generate();return this.result.css=c[0],this.result.map=c[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let n=this.runOnRoot(e);if(xl(n))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Zi];)e[Zi]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let n of e.nodes)this.visitSync(this.listeners.OnceExit,n);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,n){return Ve.process.env.NODE_ENV!=="production"&&("from"in this.opts||JN("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,n)}toString(){return this.css}visitSync(e,n){for(let[a,c]of e){this.result.lastPlugin=a;let u;try{u=c(n,this.helpers)}catch(r){throw this.handleError(r,n.proxyOf)}if(n.type!=="root"&&n.type!=="document"&&!n.parent)return!0;if(xl(u))throw this.getAsyncError()}}visitTick(e){let n=e[e.length-1],{node:a,visitors:c}=n;if(a.type!=="root"&&a.type!=="document"&&!a.parent){e.pop();return}if(c.length>0&&n.visitorIndex<c.length){let[r,l]=c[n.visitorIndex];n.visitorIndex+=1,n.visitorIndex===c.length&&(n.visitors=[],n.visitorIndex=0),this.result.lastPlugin=r;try{return l(a.toProxy(),this.helpers)}catch(i){throw this.handleError(i,a)}}if(n.iterator!==0){let r=n.iterator,l;for(;l=a.nodes[a.indexes[r]];)if(a.indexes[r]+=1,!l[Zi]){l[Zi]=!0,e.push(tE(l));return}n.iterator=0,delete a.indexes[r]}let u=n.events;for(;n.eventIndex<u.length;){let r=u[n.eventIndex];if(n.eventIndex+=1,r===Lo){a.nodes&&a.nodes.length&&(a[Zi]=!0,n.iterator=a.getIterator());return}else if(this.listeners[r]){n.visitors=this.listeners[r];return}}e.pop()}walkSync(e){e[Zi]=!0;let n=j2(e);for(let a of n)if(a===Lo)e.nodes&&e.each(c=>{c[Zi]||this.walkSync(c)});else{let c=this.listeners[a];if(c&&this.visitSync(c,e.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};jo.registerPostcss=t=>{h1=t};var B2=jo;jo.default=jo;ZN.registerLazyResult(jo);XN.registerLazyResult(jo);let n4=b2,i4=Td,s4=I2,a4=iy;const o4=ty;let m1=class{constructor(e,n,a){n=n.toString(),this.stringified=!1,this._processor=e,this._css=n,this._opts=a,this._map=void 0;let c,u=i4;this.result=new o4(this._processor,c,this._opts),this.result.css=n;let r=this;Object.defineProperty(this.result,"root",{get(){return r.root}});let l=new n4(u,c,this._opts,n);if(l.isMap()){let[i,f]=l.generate();i&&(this.result.css=i),f&&(this.result.map=f)}else l.clearAnnotation(),this.result.css=l.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,n){return Ve.process.env.NODE_ENV!=="production"&&("from"in this._opts||s4("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,n)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,n=a4;try{e=n(this._css,this._opts)}catch(a){this.error=a}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};var l4=m1;m1.default=m1;let u4=l4,c4=B2,f4=ey,d4=Du,au=class{constructor(e=[]){this.version="8.4.38",this.plugins=this.normalize(e)}normalize(e){let n=[];for(let a of e)if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),typeof a=="object"&&Array.isArray(a.plugins))n=n.concat(a.plugins);else if(typeof a=="object"&&a.postcssPlugin)n.push(a);else if(typeof a=="function")n.push(a);else if(typeof a=="object"&&(a.parse||a.stringify)){if(Ve.process.env.NODE_ENV!=="production")throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}else throw new Error(a+" is not a PostCSS plugin");return n}process(e,n={}){return!this.plugins.length&&!n.parser&&!n.stringifier&&!n.syntax?new u4(this,e,n):new c4(this,e,n)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var p4=au;au.default=au;d4.registerProcessor(au);f4.registerProcessor(au);let h4=xd,m4=d2,y4=Cd,b4=ry,g4=Pd,v4=Du,E4=ny;function ou(t,e){if(Array.isArray(t))return t.map(c=>ou(c));let{inputs:n,...a}=t;if(n){e=[];for(let c of n){let u={...c,__proto__:g4.prototype};u.map&&(u.map={...u.map,__proto__:m4.prototype}),e.push(u)}}if(a.nodes&&(a.nodes=t.nodes.map(c=>ou(c,e))),a.source){let{inputId:c,...u}=a.source;a.source=u,c!=null&&(a.source.input=e[c])}if(a.type==="root")return new v4(a);if(a.type==="decl")return new h4(a);if(a.type==="rule")return new E4(a);if(a.type==="comment")return new y4(a);if(a.type==="atrule")return new b4(a);throw new Error("Unknown node type: "+t.type)}var _4=ou;ou.default=ou;let S4=J0,$2=xd,w4=B2,T4=Ya,sy=p4,A4=Td,x4=_4,U2=ey,P4=O2,V2=Cd,W2=ry,C4=ty,I4=Pd,O4=iy,k4=M2,H2=ny,q2=Du,D4=Ad;function br(...t){return t.length===1&&Array.isArray(t[0])&&(t=t[0]),new sy(t)}br.plugin=function(e,n){let a=!1;function c(...r){console&&console.warn&&!a&&(a=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
|
|
137
137
|
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),Ve.process.env.LANG&&Ve.process.env.LANG.startsWith("cn")&&console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南:
|
|
138
138
|
https://www.w3ctech.com/topic/2226`));let l=n(...r);return l.postcssPlugin=e,l.postcssVersion=new sy().version,l}let u;return Object.defineProperty(c,"postcss",{get(){return u||(u=c()),u}}),c.process=function(r,l,i){return br([c(i)]).process(r,l)},c};br.stringify=A4;br.parse=O4;br.fromJSON=x4;br.list=k4;br.comment=t=>new V2(t);br.atRule=t=>new W2(t);br.decl=t=>new $2(t);br.rule=t=>new H2(t);br.root=t=>new q2(t);br.document=t=>new U2(t);br.CssSyntaxError=S4;br.Declaration=$2;br.Container=T4;br.Processor=sy;br.Document=U2;br.Comment=V2;br.Warning=P4;br.AtRule=W2;br.Result=C4;br.Input=I4;br.Rule=H2;br.Root=q2;br.Node=D4;w4.registerPostcss(br);var vi=br;br.default=br;const Pr=nd(vi);var G2={exports:{}};(function(t,e){(function(n,a){t.exports=function(c,u,r,l,i){for(u=u.split?u.split("."):u,l=0;l<u.length;l++)c=c?c[u[l]]:i;return c===i?r:c}})()})(G2);var z2=G2.exports,y1={exports:{}},b1={exports:{}},g1={exports:{}},v1={exports:{}},E1={exports:{}},_1={exports:{}},Kn={},S1={exports:{}};(function(t,e){e.__esModule=!0,e.default=c;function n(u){for(var r=u.toLowerCase(),l="",i=!1,f=0;f<6&&r[f]!==void 0;f++){var d=r.charCodeAt(f),s=d>=97&&d<=102||d>=48&&d<=57;if(i=d===32,!s)break;l+=r[f]}if(l.length!==0){var o=parseInt(l,16),m=o>=55296&&o<=57343;return m||o===0||o>1114111?["�",l.length+(i?1:0)]:[String.fromCodePoint(o),l.length+(i?1:0)]}}var a=/\\/;function c(u){var r=a.test(u);if(!r)return u;for(var l="",i=0;i<u.length;i++){if(u[i]==="\\"){var f=n(u.slice(i+1,i+7));if(f!==void 0){l+=f[0],i+=f[1];continue}if(u[i+1]==="\\"){l+="\\",i++;continue}u.length===i+1&&(l+=u[i]);continue}l+=u[i]}return l}t.exports=e.default})(S1,S1.exports);var ay=S1.exports,w1={exports:{}};(function(t,e){e.__esModule=!0,e.default=n;function n(a){for(var c=arguments.length,u=new Array(c>1?c-1:0),r=1;r<c;r++)u[r-1]=arguments[r];for(;u.length>0;){var l=u.shift();if(!a[l])return;a=a[l]}return a}t.exports=e.default})(w1,w1.exports);var N4=w1.exports,T1={exports:{}};(function(t,e){e.__esModule=!0,e.default=n;function n(a){for(var c=arguments.length,u=new Array(c>1?c-1:0),r=1;r<c;r++)u[r-1]=arguments[r];for(;u.length>0;){var l=u.shift();a[l]||(a[l]={}),a=a[l]}}t.exports=e.default})(T1,T1.exports);var R4=T1.exports,A1={exports:{}};(function(t,e){e.__esModule=!0,e.default=n;function n(a){for(var c="",u=a.indexOf("/*"),r=0;u>=0;){c=c+a.slice(r,u);var l=a.indexOf("*/",u+2);if(l<0)return c;r=l+2,u=a.indexOf("/*",r)}return c=c+a.slice(r),c}t.exports=e.default})(A1,A1.exports);var M4=A1.exports;Kn.__esModule=!0;Kn.unesc=Kn.stripComments=Kn.getProp=Kn.ensureObject=void 0;var L4=Id(ay);Kn.unesc=L4.default;var j4=Id(N4);Kn.getProp=j4.default;var F4=Id(R4);Kn.ensureObject=F4.default;var B4=Id(M4);Kn.stripComments=B4.default;function Id(t){return t&&t.__esModule?t:{default:t}}(function(t,e){e.__esModule=!0,e.default=void 0;var n=Kn;function a(l,i){for(var f=0;f<i.length;f++){var d=i[f];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,d.key,d)}}function c(l,i,f){return i&&a(l.prototype,i),f&&a(l,f),Object.defineProperty(l,"prototype",{writable:!1}),l}var u=function l(i,f){if(typeof i!="object"||i===null)return i;var d=new i.constructor;for(var s in i)if(i.hasOwnProperty(s)){var o=i[s],m=typeof o;s==="parent"&&m==="object"?f&&(d[s]=f):o instanceof Array?d[s]=o.map(function(h){return l(h,d)}):d[s]=l(o,d)}return d},r=function(){function l(f){f===void 0&&(f={}),Object.assign(this,f),this.spaces=this.spaces||{},this.spaces.before=this.spaces.before||"",this.spaces.after=this.spaces.after||""}var i=l.prototype;return i.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},i.replaceWith=function(){if(this.parent){for(var d in arguments)this.parent.insertBefore(this,arguments[d]);this.remove()}return this},i.next=function(){return this.parent.at(this.parent.index(this)+1)},i.prev=function(){return this.parent.at(this.parent.index(this)-1)},i.clone=function(d){d===void 0&&(d={});var s=u(this);for(var o in d)s[o]=d[o];return s},i.appendToPropertyAndEscape=function(d,s,o){this.raws||(this.raws={});var m=this[d],h=this.raws[d];this[d]=m+s,h||o!==s?this.raws[d]=(h||m)+o:delete this.raws[d]},i.setPropertyAndEscape=function(d,s,o){this.raws||(this.raws={}),this[d]=s,this.raws[d]=o},i.setPropertyWithoutEscape=function(d,s){this[d]=s,this.raws&&delete this.raws[d]},i.isAtPosition=function(d,s){if(this.source&&this.source.start&&this.source.end)return!(this.source.start.line>d||this.source.end.line<d||this.source.start.line===d&&this.source.start.column>s||this.source.end.line===d&&this.source.end.column<s)},i.stringifyProperty=function(d){return this.raws&&this.raws[d]||this[d]},i.valueToString=function(){return String(this.stringifyProperty("value"))},i.toString=function(){return[this.rawSpaceBefore,this.valueToString(),this.rawSpaceAfter].join("")},c(l,[{key:"rawSpaceBefore",get:function(){var d=this.raws&&this.raws.spaces&&this.raws.spaces.before;return d===void 0&&(d=this.spaces&&this.spaces.before),d||""},set:function(d){(0,n.ensureObject)(this,"raws","spaces"),this.raws.spaces.before=d}},{key:"rawSpaceAfter",get:function(){var d=this.raws&&this.raws.spaces&&this.raws.spaces.after;return d===void 0&&(d=this.spaces.after),d||""},set:function(d){(0,n.ensureObject)(this,"raws","spaces"),this.raws.spaces.after=d}}]),l}();e.default=r,t.exports=e.default})(_1,_1.exports);var pa=_1.exports,Xt={};Xt.__esModule=!0;Xt.UNIVERSAL=Xt.TAG=Xt.STRING=Xt.SELECTOR=Xt.ROOT=Xt.PSEUDO=Xt.NESTING=Xt.ID=Xt.COMMENT=Xt.COMBINATOR=Xt.CLASS=Xt.ATTRIBUTE=void 0;var $4="tag";Xt.TAG=$4;var U4="string";Xt.STRING=U4;var V4="selector";Xt.SELECTOR=V4;var W4="root";Xt.ROOT=W4;var H4="pseudo";Xt.PSEUDO=H4;var q4="nesting";Xt.NESTING=q4;var G4="id";Xt.ID=G4;var z4="comment";Xt.COMMENT=z4;var K4="combinator";Xt.COMBINATOR=K4;var Y4="class";Xt.CLASS=Y4;var X4="attribute";Xt.ATTRIBUTE=X4;var J4="universal";Xt.UNIVERSAL=J4;(function(t,e){e.__esModule=!0,e.default=void 0;var n=r(pa),a=u(Xt);function c(y){if(typeof WeakMap!="function")return null;var b=new WeakMap,E=new WeakMap;return(c=function(g){return g?E:b})(y)}function u(y,b){if(!b&&y&&y.__esModule)return y;if(y===null||typeof y!="object"&&typeof y!="function")return{default:y};var E=c(b);if(E&&E.has(y))return E.get(y);var S={},g=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var P in y)if(P!=="default"&&Object.prototype.hasOwnProperty.call(y,P)){var R=g?Object.getOwnPropertyDescriptor(y,P):null;R&&(R.get||R.set)?Object.defineProperty(S,P,R):S[P]=y[P]}return S.default=y,E&&E.set(y,S),S}function r(y){return y&&y.__esModule?y:{default:y}}function l(y,b){var E=typeof Symbol<"u"&&y[Symbol.iterator]||y["@@iterator"];if(E)return(E=E.call(y)).next.bind(E);if(Array.isArray(y)||(E=i(y))||b&&y&&typeof y.length=="number"){E&&(y=E);var S=0;return function(){return S>=y.length?{done:!0}:{done:!1,value:y[S++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
139
139
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function i(y,b){if(y){if(typeof y=="string")return f(y,b);var E=Object.prototype.toString.call(y).slice(8,-1);if(E==="Object"&&y.constructor&&(E=y.constructor.name),E==="Map"||E==="Set")return Array.from(y);if(E==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(E))return f(y,b)}}function f(y,b){(b==null||b>y.length)&&(b=y.length);for(var E=0,S=new Array(b);E<b;E++)S[E]=y[E];return S}function d(y,b){for(var E=0;E<b.length;E++){var S=b[E];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(y,S.key,S)}}function s(y,b,E){return b&&d(y.prototype,b),E&&d(y,E),Object.defineProperty(y,"prototype",{writable:!1}),y}function o(y,b){y.prototype=Object.create(b.prototype),y.prototype.constructor=y,m(y,b)}function m(y,b){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(S,g){return S.__proto__=g,S},m(y,b)}var h=function(y){o(b,y);function b(S){var g;return g=y.call(this,S)||this,g.nodes||(g.nodes=[]),g}var E=b.prototype;return E.append=function(g){return g.parent=this,this.nodes.push(g),this},E.prepend=function(g){return g.parent=this,this.nodes.unshift(g),this},E.at=function(g){return this.nodes[g]},E.index=function(g){return typeof g=="number"?g:this.nodes.indexOf(g)},E.removeChild=function(g){g=this.index(g),this.at(g).parent=void 0,this.nodes.splice(g,1);var P;for(var R in this.indexes)P=this.indexes[R],P>=g&&(this.indexes[R]=P-1);return this},E.removeAll=function(){for(var g=l(this.nodes),P;!(P=g()).done;){var R=P.value;R.parent=void 0}return this.nodes=[],this},E.empty=function(){return this.removeAll()},E.insertAfter=function(g,P){P.parent=this;var R=this.index(g);this.nodes.splice(R+1,0,P),P.parent=this;var N;for(var C in this.indexes)N=this.indexes[C],R<=N&&(this.indexes[C]=N+1);return this},E.insertBefore=function(g,P){P.parent=this;var R=this.index(g);this.nodes.splice(R,0,P),P.parent=this;var N;for(var C in this.indexes)N=this.indexes[C],N<=R&&(this.indexes[C]=N+1);return this},E._findChildAtPosition=function(g,P){var R=void 0;return this.each(function(N){if(N.atPosition){var C=N.atPosition(g,P);if(C)return R=C,!1}else if(N.isAtPosition(g,P))return R=N,!1}),R},E.atPosition=function(g,P){if(this.isAtPosition(g,P))return this._findChildAtPosition(g,P)||this},E._inferEndPosition=function(){this.last&&this.last.source&&this.last.source.end&&(this.source=this.source||{},this.source.end=this.source.end||{},Object.assign(this.source.end,this.last.source.end))},E.each=function(g){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var P=this.lastEach;if(this.indexes[P]=0,!!this.length){for(var R,N;this.indexes[P]<this.length&&(R=this.indexes[P],N=g(this.at(R),R),N!==!1);)this.indexes[P]+=1;if(delete this.indexes[P],N===!1)return!1}},E.walk=function(g){return this.each(function(P,R){var N=g(P,R);if(N!==!1&&P.length&&(N=P.walk(g)),N===!1)return!1})},E.walkAttributes=function(g){var P=this;return this.walk(function(R){if(R.type===a.ATTRIBUTE)return g.call(P,R)})},E.walkClasses=function(g){var P=this;return this.walk(function(R){if(R.type===a.CLASS)return g.call(P,R)})},E.walkCombinators=function(g){var P=this;return this.walk(function(R){if(R.type===a.COMBINATOR)return g.call(P,R)})},E.walkComments=function(g){var P=this;return this.walk(function(R){if(R.type===a.COMMENT)return g.call(P,R)})},E.walkIds=function(g){var P=this;return this.walk(function(R){if(R.type===a.ID)return g.call(P,R)})},E.walkNesting=function(g){var P=this;return this.walk(function(R){if(R.type===a.NESTING)return g.call(P,R)})},E.walkPseudos=function(g){var P=this;return this.walk(function(R){if(R.type===a.PSEUDO)return g.call(P,R)})},E.walkTags=function(g){var P=this;return this.walk(function(R){if(R.type===a.TAG)return g.call(P,R)})},E.walkUniversals=function(g){var P=this;return this.walk(function(R){if(R.type===a.UNIVERSAL)return g.call(P,R)})},E.split=function(g){var P=this,R=[];return this.reduce(function(N,C,I){var D=g.call(P,C);return R.push(C),D?(N.push(R),R=[]):I===P.length-1&&N.push(R),N},[])},E.map=function(g){return this.nodes.map(g)},E.reduce=function(g,P){return this.nodes.reduce(g,P)},E.every=function(g){return this.nodes.every(g)},E.some=function(g){return this.nodes.some(g)},E.filter=function(g){return this.nodes.filter(g)},E.sort=function(g){return this.nodes.sort(g)},E.toString=function(){return this.map(String).join("")},s(b,[{key:"first",get:function(){return this.at(0)}},{key:"last",get:function(){return this.at(this.length-1)}},{key:"length",get:function(){return this.nodes.length}}]),b}(n.default);e.default=h,t.exports=e.default})(E1,E1.exports);var oy=E1.exports;(function(t,e){e.__esModule=!0,e.default=void 0;var n=c(oy),a=Xt;function c(d){return d&&d.__esModule?d:{default:d}}function u(d,s){for(var o=0;o<s.length;o++){var m=s[o];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(d,m.key,m)}}function r(d,s,o){return s&&u(d.prototype,s),o&&u(d,o),Object.defineProperty(d,"prototype",{writable:!1}),d}function l(d,s){d.prototype=Object.create(s.prototype),d.prototype.constructor=d,i(d,s)}function i(d,s){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,h){return m.__proto__=h,m},i(d,s)}var f=function(d){l(s,d);function s(m){var h;return h=d.call(this,m)||this,h.type=a.ROOT,h}var o=s.prototype;return o.toString=function(){var h=this.reduce(function(y,b){return y.push(String(b)),y},[]).join(",");return this.trailingComma?h+",":h},o.error=function(h,y){return this._error?this._error(h,y):new Error(h)},r(s,[{key:"errorGenerator",set:function(h){this._error=h}}]),s}(n.default);e.default=f,t.exports=e.default})(v1,v1.exports);var K2=v1.exports,x1={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var n=c(oy),a=Xt;function c(i){return i&&i.__esModule?i:{default:i}}function u(i,f){i.prototype=Object.create(f.prototype),i.prototype.constructor=i,r(i,f)}function r(i,f){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,o){return s.__proto__=o,s},r(i,f)}var l=function(i){u(f,i);function f(d){var s;return s=i.call(this,d)||this,s.type=a.SELECTOR,s}return f}(n.default);e.default=l,t.exports=e.default})(x1,x1.exports);var Y2=x1.exports,P1={exports:{}};/*! https://mths.be/cssesc v3.0.0 by @mathias */var Q4={},Z4=Q4.hasOwnProperty,e6=function(e,n){if(!e)return n;var a={};for(var c in n)a[c]=Z4.call(e,c)?e[c]:n[c];return a},t6=/[ -,\.\/:-@\[-\^`\{-~]/,r6=/[ -,\.\/:-@\[\]\^`\{-~]/,n6=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,ly=function t(e,n){n=e6(n,t.options),n.quotes!="single"&&n.quotes!="double"&&(n.quotes="single");for(var a=n.quotes=="double"?'"':"'",c=n.isIdentifier,u=e.charAt(0),r="",l=0,i=e.length;l<i;){var f=e.charAt(l++),d=f.charCodeAt(),s=void 0;if(d<32||d>126){if(d>=55296&&d<=56319&&l<i){var o=e.charCodeAt(l++);(o&64512)==56320?d=((d&1023)<<10)+(o&1023)+65536:l--}s="\\"+d.toString(16).toUpperCase()+" "}else n.escapeEverything?t6.test(f)?s="\\"+f:s="\\"+d.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(f)?s="\\"+d.toString(16).toUpperCase()+" ":f=="\\"||!c&&(f=='"'&&a==f||f=="'"&&a==f)||c&&r6.test(f)?s="\\"+f:s=f;r+=s}return c&&(/^-[-\d]/.test(r)?r="\\-"+r.slice(1):/\d/.test(u)&&(r="\\3"+u+" "+r.slice(1))),r=r.replace(n6,function(m,h,y){return h&&h.length%2?m:(h||"")+y}),!c&&n.wrap?a+r+a:r};ly.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1};ly.version="3.0.0";var uy=ly;(function(t,e){e.__esModule=!0,e.default=void 0;var n=r(uy),a=Kn,c=r(pa),u=Xt;function r(o){return o&&o.__esModule?o:{default:o}}function l(o,m){for(var h=0;h<m.length;h++){var y=m[h];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(o,y.key,y)}}function i(o,m,h){return m&&l(o.prototype,m),h&&l(o,h),Object.defineProperty(o,"prototype",{writable:!1}),o}function f(o,m){o.prototype=Object.create(m.prototype),o.prototype.constructor=o,d(o,m)}function d(o,m){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(y,b){return y.__proto__=b,y},d(o,m)}var s=function(o){f(m,o);function m(y){var b;return b=o.call(this,y)||this,b.type=u.CLASS,b._constructed=!0,b}var h=m.prototype;return h.valueToString=function(){return"."+o.prototype.valueToString.call(this)},i(m,[{key:"value",get:function(){return this._value},set:function(b){if(this._constructed){var E=(0,n.default)(b,{isIdentifier:!0});E!==b?((0,a.ensureObject)(this,"raws"),this.raws.value=E):this.raws&&delete this.raws.value}this._value=b}}]),m}(c.default);e.default=s,t.exports=e.default})(P1,P1.exports);var X2=P1.exports,C1={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var n=c(pa),a=Xt;function c(i){return i&&i.__esModule?i:{default:i}}function u(i,f){i.prototype=Object.create(f.prototype),i.prototype.constructor=i,r(i,f)}function r(i,f){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,o){return s.__proto__=o,s},r(i,f)}var l=function(i){u(f,i);function f(d){var s;return s=i.call(this,d)||this,s.type=a.COMMENT,s}return f}(n.default);e.default=l,t.exports=e.default})(C1,C1.exports);var J2=C1.exports,I1={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var n=c(pa),a=Xt;function c(i){return i&&i.__esModule?i:{default:i}}function u(i,f){i.prototype=Object.create(f.prototype),i.prototype.constructor=i,r(i,f)}function r(i,f){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,o){return s.__proto__=o,s},r(i,f)}var l=function(i){u(f,i);function f(s){var o;return o=i.call(this,s)||this,o.type=a.ID,o}var d=f.prototype;return d.valueToString=function(){return"#"+i.prototype.valueToString.call(this)},f}(n.default);e.default=l,t.exports=e.default})(I1,I1.exports);var Q2=I1.exports,O1={exports:{}},k1={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var n=u(uy),a=Kn,c=u(pa);function u(s){return s&&s.__esModule?s:{default:s}}function r(s,o){for(var m=0;m<o.length;m++){var h=o[m];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(s,h.key,h)}}function l(s,o,m){return o&&r(s.prototype,o),m&&r(s,m),Object.defineProperty(s,"prototype",{writable:!1}),s}function i(s,o){s.prototype=Object.create(o.prototype),s.prototype.constructor=s,f(s,o)}function f(s,o){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(h,y){return h.__proto__=y,h},f(s,o)}var d=function(s){i(o,s);function o(){return s.apply(this,arguments)||this}var m=o.prototype;return m.qualifiedName=function(y){return this.namespace?this.namespaceString+"|"+y:y},m.valueToString=function(){return this.qualifiedName(s.prototype.valueToString.call(this))},l(o,[{key:"namespace",get:function(){return this._namespace},set:function(y){if(y===!0||y==="*"||y==="&"){this._namespace=y,this.raws&&delete this.raws.namespace;return}var b=(0,n.default)(y,{isIdentifier:!0});this._namespace=y,b!==y?((0,a.ensureObject)(this,"raws"),this.raws.namespace=b):this.raws&&delete this.raws.namespace}},{key:"ns",get:function(){return this._namespace},set:function(y){this.namespace=y}},{key:"namespaceString",get:function(){if(this.namespace){var y=this.stringifyProperty("namespace");return y===!0?"":y}else return""}}]),o}(c.default);e.default=d,t.exports=e.default})(k1,k1.exports);var cy=k1.exports;(function(t,e){e.__esModule=!0,e.default=void 0;var n=c(cy),a=Xt;function c(i){return i&&i.__esModule?i:{default:i}}function u(i,f){i.prototype=Object.create(f.prototype),i.prototype.constructor=i,r(i,f)}function r(i,f){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,o){return s.__proto__=o,s},r(i,f)}var l=function(i){u(f,i);function f(d){var s;return s=i.call(this,d)||this,s.type=a.TAG,s}return f}(n.default);e.default=l,t.exports=e.default})(O1,O1.exports);var Z2=O1.exports,D1={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var n=c(pa),a=Xt;function c(i){return i&&i.__esModule?i:{default:i}}function u(i,f){i.prototype=Object.create(f.prototype),i.prototype.constructor=i,r(i,f)}function r(i,f){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,o){return s.__proto__=o,s},r(i,f)}var l=function(i){u(f,i);function f(d){var s;return s=i.call(this,d)||this,s.type=a.STRING,s}return f}(n.default);e.default=l,t.exports=e.default})(D1,D1.exports);var eT=D1.exports,N1={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var n=c(oy),a=Xt;function c(i){return i&&i.__esModule?i:{default:i}}function u(i,f){i.prototype=Object.create(f.prototype),i.prototype.constructor=i,r(i,f)}function r(i,f){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,o){return s.__proto__=o,s},r(i,f)}var l=function(i){u(f,i);function f(s){var o;return o=i.call(this,s)||this,o.type=a.PSEUDO,o}var d=f.prototype;return d.toString=function(){var o=this.length?"("+this.map(String).join(",")+")":"";return[this.rawSpaceBefore,this.stringifyProperty("value"),o,this.rawSpaceAfter].join("")},f}(n.default);e.default=l,t.exports=e.default})(N1,N1.exports);var tT=N1.exports,fy={},rT=i6;function i6(t,e){if(Ih("noDeprecation"))return t;var n=!1;function a(){if(!n){if(Ih("throwDeprecation"))throw new Error(e);Ih("traceDeprecation")?console.trace(e):console.warn(e),n=!0}return t.apply(this,arguments)}return a}function Ih(t){try{if(!Bt.localStorage)return!1}catch{return!1}var e=Bt.localStorage[t];return e==null?!1:String(e).toLowerCase()==="true"}(function(t){t.__esModule=!0,t.default=void 0,t.unescapeValue=b;var e=r(uy),n=r(ay),a=r(cy),c=Xt,u;function r(R){return R&&R.__esModule?R:{default:R}}function l(R,N){for(var C=0;C<N.length;C++){var I=N[C];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(R,I.key,I)}}function i(R,N,C){return N&&l(R.prototype,N),C&&l(R,C),Object.defineProperty(R,"prototype",{writable:!1}),R}function f(R,N){R.prototype=Object.create(N.prototype),R.prototype.constructor=R,d(R,N)}function d(R,N){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(I,D){return I.__proto__=D,I},d(R,N)}var s=rT,o=/^('|")([^]*)\1$/,m=s(function(){},"Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."),h=s(function(){},"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."),y=s(function(){},"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");function b(R){var N=!1,C=null,I=R,D=I.match(o);return D&&(C=D[1],I=D[2]),I=(0,n.default)(I),I!==R&&(N=!0),{deprecatedUsage:N,unescaped:I,quoteMark:C}}function E(R){if(R.quoteMark!==void 0||R.value===void 0)return R;y();var N=b(R.value),C=N.quoteMark,I=N.unescaped;return R.raws||(R.raws={}),R.raws.value===void 0&&(R.raws.value=R.value),R.value=I,R.quoteMark=C,R}var S=function(R){f(N,R);function N(I){var D;return I===void 0&&(I={}),D=R.call(this,E(I))||this,D.type=c.ATTRIBUTE,D.raws=D.raws||{},Object.defineProperty(D.raws,"unquoted",{get:s(function(){return D.value},"attr.raws.unquoted is deprecated. Call attr.value instead."),set:s(function(){return D.value},"Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.")}),D._constructed=!0,D}var C=N.prototype;return C.getQuotedValue=function(D){D===void 0&&(D={});var j=this._determineQuoteMark(D),F=g[j],_=(0,e.default)(this._value,F);return _},C._determineQuoteMark=function(D){return D.smart?this.smartQuoteMark(D):this.preferredQuoteMark(D)},C.setValue=function(D,j){j===void 0&&(j={}),this._value=D,this._quoteMark=this._determineQuoteMark(j),this._syncRawValue()},C.smartQuoteMark=function(D){var j=this.value,F=j.replace(/[^']/g,"").length,_=j.replace(/[^"]/g,"").length;if(F+_===0){var T=(0,e.default)(j,{isIdentifier:!0});if(T===j)return N.NO_QUOTE;var v=this.preferredQuoteMark(D);if(v===N.NO_QUOTE){var w=this.quoteMark||D.quoteMark||N.DOUBLE_QUOTE,O=g[w],G=(0,e.default)(j,O);if(G.length<T.length)return w}return v}else return _===F?this.preferredQuoteMark(D):_<F?N.DOUBLE_QUOTE:N.SINGLE_QUOTE},C.preferredQuoteMark=function(D){var j=D.preferCurrentQuoteMark?this.quoteMark:D.quoteMark;return j===void 0&&(j=D.preferCurrentQuoteMark?D.quoteMark:this.quoteMark),j===void 0&&(j=N.DOUBLE_QUOTE),j},C._syncRawValue=function(){var D=(0,e.default)(this._value,g[this.quoteMark]);D===this._value?this.raws&&delete this.raws.value:this.raws.value=D},C._handleEscapes=function(D,j){if(this._constructed){var F=(0,e.default)(j,{isIdentifier:!0});F!==j?this.raws[D]=F:delete this.raws[D]}},C._spacesFor=function(D){var j={before:"",after:""},F=this.spaces[D]||{},_=this.raws.spaces&&this.raws.spaces[D]||{};return Object.assign(j,F,_)},C._stringFor=function(D,j,F){j===void 0&&(j=D),F===void 0&&(F=P);var _=this._spacesFor(j);return F(this.stringifyProperty(D),_)},C.offsetOf=function(D){var j=1,F=this._spacesFor("attribute");if(j+=F.before.length,D==="namespace"||D==="ns")return this.namespace?j:-1;if(D==="attributeNS"||(j+=this.namespaceString.length,this.namespace&&(j+=1),D==="attribute"))return j;j+=this.stringifyProperty("attribute").length,j+=F.after.length;var _=this._spacesFor("operator");j+=_.before.length;var T=this.stringifyProperty("operator");if(D==="operator")return T?j:-1;j+=T.length,j+=_.after.length;var v=this._spacesFor("value");j+=v.before.length;var w=this.stringifyProperty("value");if(D==="value")return w?j:-1;j+=w.length,j+=v.after.length;var O=this._spacesFor("insensitive");return j+=O.before.length,D==="insensitive"&&this.insensitive?j:-1},C.toString=function(){var D=this,j=[this.rawSpaceBefore,"["];return j.push(this._stringFor("qualifiedAttribute","attribute")),this.operator&&(this.value||this.value==="")&&(j.push(this._stringFor("operator")),j.push(this._stringFor("value")),j.push(this._stringFor("insensitiveFlag","insensitive",function(F,_){return F.length>0&&!D.quoted&&_.before.length===0&&!(D.spaces.value&&D.spaces.value.after)&&(_.before=" "),P(F,_)}))),j.push("]"),j.push(this.rawSpaceAfter),j.join("")},i(N,[{key:"quoted",get:function(){var D=this.quoteMark;return D==="'"||D==='"'},set:function(D){h()}},{key:"quoteMark",get:function(){return this._quoteMark},set:function(D){if(!this._constructed){this._quoteMark=D;return}this._quoteMark!==D&&(this._quoteMark=D,this._syncRawValue())}},{key:"qualifiedAttribute",get:function(){return this.qualifiedName(this.raws.attribute||this.attribute)}},{key:"insensitiveFlag",get:function(){return this.insensitive?"i":""}},{key:"value",get:function(){return this._value},set:function(D){if(this._constructed){var j=b(D),F=j.deprecatedUsage,_=j.unescaped,T=j.quoteMark;if(F&&m(),_===this._value&&T===this._quoteMark)return;this._value=_,this._quoteMark=T,this._syncRawValue()}else this._value=D}},{key:"insensitive",get:function(){return this._insensitive},set:function(D){D||(this._insensitive=!1,this.raws&&(this.raws.insensitiveFlag==="I"||this.raws.insensitiveFlag==="i")&&(this.raws.insensitiveFlag=void 0)),this._insensitive=D}},{key:"attribute",get:function(){return this._attribute},set:function(D){this._handleEscapes("attribute",D),this._attribute=D}}]),N}(a.default);t.default=S,S.NO_QUOTE=null,S.SINGLE_QUOTE="'",S.DOUBLE_QUOTE='"';var g=(u={"'":{quotes:"single",wrap:!0},'"':{quotes:"double",wrap:!0}},u[null]={isIdentifier:!0},u);function P(R,N){return""+N.before+R+N.after}})(fy);var R1={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var n=c(cy),a=Xt;function c(i){return i&&i.__esModule?i:{default:i}}function u(i,f){i.prototype=Object.create(f.prototype),i.prototype.constructor=i,r(i,f)}function r(i,f){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,o){return s.__proto__=o,s},r(i,f)}var l=function(i){u(f,i);function f(d){var s;return s=i.call(this,d)||this,s.type=a.UNIVERSAL,s.value="*",s}return f}(n.default);e.default=l,t.exports=e.default})(R1,R1.exports);var nT=R1.exports,M1={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var n=c(pa),a=Xt;function c(i){return i&&i.__esModule?i:{default:i}}function u(i,f){i.prototype=Object.create(f.prototype),i.prototype.constructor=i,r(i,f)}function r(i,f){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,o){return s.__proto__=o,s},r(i,f)}var l=function(i){u(f,i);function f(d){var s;return s=i.call(this,d)||this,s.type=a.COMBINATOR,s}return f}(n.default);e.default=l,t.exports=e.default})(M1,M1.exports);var iT=M1.exports,L1={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var n=c(pa),a=Xt;function c(i){return i&&i.__esModule?i:{default:i}}function u(i,f){i.prototype=Object.create(f.prototype),i.prototype.constructor=i,r(i,f)}function r(i,f){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,o){return s.__proto__=o,s},r(i,f)}var l=function(i){u(f,i);function f(d){var s;return s=i.call(this,d)||this,s.type=a.NESTING,s.value="&",s}return f}(n.default);e.default=l,t.exports=e.default})(L1,L1.exports);var sT=L1.exports,j1={exports:{}};(function(t,e){e.__esModule=!0,e.default=n;function n(a){return a.sort(function(c,u){return c-u})}t.exports=e.default})(j1,j1.exports);var s6=j1.exports,aT={},Ct={};Ct.__esModule=!0;Ct.word=Ct.tilde=Ct.tab=Ct.str=Ct.space=Ct.slash=Ct.singleQuote=Ct.semicolon=Ct.plus=Ct.pipe=Ct.openSquare=Ct.openParenthesis=Ct.newline=Ct.greaterThan=Ct.feed=Ct.equals=Ct.doubleQuote=Ct.dollar=Ct.cr=Ct.comment=Ct.comma=Ct.combinator=Ct.colon=Ct.closeSquare=Ct.closeParenthesis=Ct.caret=Ct.bang=Ct.backslash=Ct.at=Ct.asterisk=Ct.ampersand=void 0;var a6=38;Ct.ampersand=a6;var o6=42;Ct.asterisk=o6;var l6=64;Ct.at=l6;var u6=44;Ct.comma=u6;var c6=58;Ct.colon=c6;var f6=59;Ct.semicolon=f6;var d6=40;Ct.openParenthesis=d6;var p6=41;Ct.closeParenthesis=p6;var h6=91;Ct.openSquare=h6;var m6=93;Ct.closeSquare=m6;var y6=36;Ct.dollar=y6;var b6=126;Ct.tilde=b6;var g6=94;Ct.caret=g6;var v6=43;Ct.plus=v6;var E6=61;Ct.equals=E6;var _6=124;Ct.pipe=_6;var S6=62;Ct.greaterThan=S6;var w6=32;Ct.space=w6;var oT=39;Ct.singleQuote=oT;var T6=34;Ct.doubleQuote=T6;var A6=47;Ct.slash=A6;var x6=33;Ct.bang=x6;var P6=92;Ct.backslash=P6;var C6=13;Ct.cr=C6;var I6=12;Ct.feed=I6;var O6=10;Ct.newline=O6;var k6=9;Ct.tab=k6;var D6=oT;Ct.str=D6;var N6=-1;Ct.comment=N6;var R6=-2;Ct.word=R6;var M6=-3;Ct.combinator=M6;(function(t){t.__esModule=!0,t.FIELDS=void 0,t.default=h;var e=u(Ct),n,a;function c(y){if(typeof WeakMap!="function")return null;var b=new WeakMap,E=new WeakMap;return(c=function(g){return g?E:b})(y)}function u(y,b){if(!b&&y&&y.__esModule)return y;if(y===null||typeof y!="object"&&typeof y!="function")return{default:y};var E=c(b);if(E&&E.has(y))return E.get(y);var S={},g=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var P in y)if(P!=="default"&&Object.prototype.hasOwnProperty.call(y,P)){var R=g?Object.getOwnPropertyDescriptor(y,P):null;R&&(R.get||R.set)?Object.defineProperty(S,P,R):S[P]=y[P]}return S.default=y,E&&E.set(y,S),S}for(var r=(n={},n[e.tab]=!0,n[e.newline]=!0,n[e.cr]=!0,n[e.feed]=!0,n),l=(a={},a[e.space]=!0,a[e.tab]=!0,a[e.newline]=!0,a[e.cr]=!0,a[e.feed]=!0,a[e.ampersand]=!0,a[e.asterisk]=!0,a[e.bang]=!0,a[e.comma]=!0,a[e.colon]=!0,a[e.semicolon]=!0,a[e.openParenthesis]=!0,a[e.closeParenthesis]=!0,a[e.openSquare]=!0,a[e.closeSquare]=!0,a[e.singleQuote]=!0,a[e.doubleQuote]=!0,a[e.plus]=!0,a[e.pipe]=!0,a[e.tilde]=!0,a[e.greaterThan]=!0,a[e.equals]=!0,a[e.dollar]=!0,a[e.caret]=!0,a[e.slash]=!0,a),i={},f="0123456789abcdefABCDEF",d=0;d<f.length;d++)i[f.charCodeAt(d)]=!0;function s(y,b){var E=b,S;do{if(S=y.charCodeAt(E),l[S])return E-1;S===e.backslash?E=o(y,E)+1:E++}while(E<y.length);return E-1}function o(y,b){var E=b,S=y.charCodeAt(E+1);if(!r[S])if(i[S]){var g=0;do E++,g++,S=y.charCodeAt(E+1);while(i[S]&&g<6);g<6&&S===e.space&&E++}else E++;return E}var m={TYPE:0,START_LINE:1,START_COL:2,END_LINE:3,END_COL:4,START_POS:5,END_POS:6};t.FIELDS=m;function h(y){var b=[],E=y.css.valueOf(),S=E,g=S.length,P=-1,R=1,N=0,C=0,I,D,j,F,_,T,v,w,O,G,W,U,M;function B(k,K){if(y.safe)E+=K,O=E.length-1;else throw y.error("Unclosed "+k,R,N-P,N)}for(;N<g;){switch(I=E.charCodeAt(N),I===e.newline&&(P=N,R+=1),I){case e.space:case e.tab:case e.newline:case e.cr:case e.feed:O=N;do O+=1,I=E.charCodeAt(O),I===e.newline&&(P=O,R+=1);while(I===e.space||I===e.newline||I===e.tab||I===e.cr||I===e.feed);M=e.space,F=R,j=O-P-1,C=O;break;case e.plus:case e.greaterThan:case e.tilde:case e.pipe:O=N;do O+=1,I=E.charCodeAt(O);while(I===e.plus||I===e.greaterThan||I===e.tilde||I===e.pipe);M=e.combinator,F=R,j=N-P,C=O;break;case e.asterisk:case e.ampersand:case e.bang:case e.comma:case e.equals:case e.dollar:case e.caret:case e.openSquare:case e.closeSquare:case e.colon:case e.semicolon:case e.openParenthesis:case e.closeParenthesis:O=N,M=I,F=R,j=N-P,C=O+1;break;case e.singleQuote:case e.doubleQuote:U=I===e.singleQuote?"'":'"',O=N;do for(_=!1,O=E.indexOf(U,O+1),O===-1&&B("quote",U),T=O;E.charCodeAt(T-1)===e.backslash;)T-=1,_=!_;while(_);M=e.str,F=R,j=N-P,C=O+1;break;default:I===e.slash&&E.charCodeAt(N+1)===e.asterisk?(O=E.indexOf("*/",N+2)+1,O===0&&B("comment","*/"),D=E.slice(N,O+1),w=D.split(`
|
|
@@ -2431,7 +2431,7 @@ ${n.map(({variableName:a,uniqueLocalName:c})=>` reactHotLoader.register(${a}, "
|
|
|
2431
2431
|
@tailwind base;
|
|
2432
2432
|
@tailwind components;
|
|
2433
2433
|
@tailwind utilities;
|
|
2434
|
-
`,{from:void 0}).css},UX=t=>{const e=/rgb\(\s*(\d+)\s*(\d+)\s*(\d+)(?:\s*\/\s*([\d%.]+))?\s*\)/gm;return t.replaceAll(e,(n,a,c,u,r)=>{const l=r==="1"||typeof r>"u"?"":`,${r}`;return`rgb(${a},${c},${u}${l})`})},VX=t=>t.replace(/-(\w|$)/g,(e,n)=>n.toUpperCase()),WX=t=>{let e=t;return e=e.toLowerCase(),e==="float"?"cssFloat":e.startsWith("--")?e:(e.startsWith("-ms-")&&(e=e.slice(1)),VX(e))},HX=t=>Array.from(t.matchAll(/([a-zA-Z0-9\-_]+)\s*:\s*('[^']*'[^;]*|"[^"]*"[^;]*|[^;]*?\([^)]*\)[^;]*|[^;(]*);?/gm)).map(([e,n,a])=>({property:n,value:a.replaceAll(/[\r\n|\r|\n]+/g,"").replaceAll(/\s+/g," ")})),qX=t=>{const e={},n=HX(t);for(const{property:a,value:c}of n)a.length>0&&c.trim().length>0&&(e[WX(a)]=c.trim());return e};function C0(t){return t.replaceAll(/\\[0-9]|\\/g,"")}const LI=t=>t.replaceAll("+","plus").replaceAll("[","").replaceAll("%","pc").replaceAll("]","").replaceAll("(","").replaceAll(")","").replaceAll("!","imprtnt").replaceAll(">","gt").replaceAll("<","lt").replaceAll("=","eq").replace(/[^a-zA-Z0-9\-_]/g,"_");function GX(t){const e=C0(t);return LI(e)}function zX(t){return t.split(";").map(e=>e.endsWith("!important")?e.trim():`${e.trim()}!important`).join(";")}function KX(t,e){const n=Jc(Gl.jsx(Gl.Fragment,{children:t})),a=UX($X(n,e)),[c,u]=CO(a),r={};for(const f of Lg(c)){const d=C0(f.selector);r[d]=qX(f.content)}const l=[],i=u.map(f=>{let d=f;for(const s of Lg(f))l.push(C0(s.selector)),d=d.replace(s.value,s.value.replace(s.selector,GX(s.selector)).replace(s.content,zX(s.content)).trim());return d.replace(/(\r\n|\r|\n)+/gm,"").replace(/\s+/gm," ")});return{stylePerClassMap:r,sanitizedMediaQueries:i,nonInlinableClasses:l}}function YX(t){return e=>{const n=e.split(" "),a=[];let c={};for(const u of n)u in t?c={...c,...t[u]}:a.push(u);return{styles:c,residualClassName:a.join(" ")}}}const XX=t=>t.replace(/\/\*[\s\S]*?\*\//gm,"").replace(/;\s+/gm,";").replace(/:\s+/gm,":").replace(/\)\s*{/gm,"){").replace(/\s+\(/gm,"(").replace(/{\s+/gm,"{").replace(/}\s+/gm,"}").replace(/\s*{/gm,"{").replace(/;?\s*}/gm,"}"),JX=({children:t,config:e})=>{const{stylePerClassMap:n,nonInlinableClasses:a,sanitizedMediaQueries:c}=KX(t,e??{}),u=YX(n),r=c.filter(s=>s.trim().length>0),l=r.length>0;let i=!1;function f(s){const o={};if(!i&&l&&s.type==="head"){i=!0;const y=Gl.jsx("style",{children:XX(r.join(""))});return Ys.cloneElement(s,s.props,s.props.children,y)}if(s.props.children
|
|
2434
|
+
`,{from:void 0}).css},UX=t=>{const e=/rgb\(\s*(\d+)\s*(\d+)\s*(\d+)(?:\s*\/\s*([\d%.]+))?\s*\)/gm;return t.replaceAll(e,(n,a,c,u,r)=>{const l=r==="1"||typeof r>"u"?"":`,${r}`;return`rgb(${a},${c},${u}${l})`})},VX=t=>t.replace(/-(\w|$)/g,(e,n)=>n.toUpperCase()),WX=t=>{let e=t;return e=e.toLowerCase(),e==="float"?"cssFloat":e.startsWith("--")?e:(e.startsWith("-ms-")&&(e=e.slice(1)),VX(e))},HX=t=>Array.from(t.matchAll(/([a-zA-Z0-9\-_]+)\s*:\s*('[^']*'[^;]*|"[^"]*"[^;]*|[^;]*?\([^)]*\)[^;]*|[^;(]*);?/gm)).map(([e,n,a])=>({property:n,value:a.replaceAll(/[\r\n|\r|\n]+/g,"").replaceAll(/\s+/g," ")})),qX=t=>{const e={},n=HX(t);for(const{property:a,value:c}of n)a.length>0&&c.trim().length>0&&(e[WX(a)]=c.trim());return e};function C0(t){return t.replaceAll(/\\[0-9]|\\/g,"")}const LI=t=>t.replaceAll("+","plus").replaceAll("[","").replaceAll("%","pc").replaceAll("]","").replaceAll("(","").replaceAll(")","").replaceAll("!","imprtnt").replaceAll(">","gt").replaceAll("<","lt").replaceAll("=","eq").replace(/[^a-zA-Z0-9\-_]/g,"_");function GX(t){const e=C0(t);return LI(e)}function zX(t){return t.split(";").map(e=>e.endsWith("!important")?e.trim():`${e.trim()}!important`).join(";")}function KX(t,e){const n=Jc(Gl.jsx(Gl.Fragment,{children:t})),a=UX($X(n,e)),[c,u]=CO(a),r={};for(const f of Lg(c)){const d=C0(f.selector);r[d]=qX(f.content)}const l=[],i=u.map(f=>{let d=f;for(const s of Lg(f))l.push(C0(s.selector)),d=d.replace(s.value,s.value.replace(s.selector,GX(s.selector)).replace(s.content,zX(s.content)).trim());return d.replace(/(\r\n|\r|\n)+/gm,"").replace(/\s+/gm," ")});return{stylePerClassMap:r,sanitizedMediaQueries:i,nonInlinableClasses:l}}function YX(t){return e=>{const n=e.split(" "),a=[];let c={};for(const u of n)u in t?c={...c,...t[u]}:a.push(u);return{styles:c,residualClassName:a.join(" ")}}}const XX=t=>t.replace(/\/\*[\s\S]*?\*\//gm,"").replace(/;\s+/gm,";").replace(/:\s+/gm,":").replace(/\)\s*{/gm,"){").replace(/\s+\(/gm,"(").replace(/{\s+/gm,"{").replace(/}\s+/gm,"}").replace(/\s*{/gm,"{").replace(/;?\s*}/gm,"}"),JX=({children:t,config:e})=>{const{stylePerClassMap:n,nonInlinableClasses:a,sanitizedMediaQueries:c}=KX(t,e??{}),u=YX(n),r=c.filter(s=>s.trim().length>0),l=r.length>0;let i=!1;function f(s){const o={};if(!i&&l&&s.type==="head"){i=!0;const y=Gl.jsx("style",{children:XX(r.join(""))});return Ys.cloneElement(s,s.props,s.props.children,y)}if(s.props.children){const y=Ys.Children.map(s.props.children,b=>Ys.isValidElement(b)?f(b):b);o.children=y&&y.length===1?y[0]:y}if(s.props.className){const{styles:y,residualClassName:b}=u(s.props.className);if(o.style={...s.props.style,...y},b.trim().length>0){o.className=b;for(const E of a)o.className=o.className.replace(E,LI(E))}else o.className=void 0}const m={...s.props,...o},h=o.children?o.children:s.props.children;if(typeof s.type=="function"||s.type.render){const b=(typeof s.type=="object"?s.type.render:s.type)({...s.props,...o});if(Ys.isValidElement(b))return f(b)}return Ys.cloneElement(s,m,h)}const d=Ys.Children.map(t,s=>Ys.isValidElement(s)?f(s):s)??[];if(l&&!i)throw new Error(`You are trying to use the following Tailwind classes that have media queries: ${a.join(" ")}.
|
|
2435
2435
|
For the media queries to work properly on rendering, they need to be added into a <style> tag inside of a <head> tag,
|
|
2436
2436
|
the Tailwind component tried finding a <head> element but just wasn't able to find it.
|
|
2437
2437
|
|
package/dist/index.mjs
CHANGED
|
@@ -1843,8 +1843,11 @@ const CO = (t) => {
|
|
|
1843
1843
|
return t.map(Jc).join("");
|
|
1844
1844
|
if (Ys.isValidElement(t)) {
|
|
1845
1845
|
const { type: e, props: n } = t;
|
|
1846
|
-
if (typeof e == "function") {
|
|
1847
|
-
const l = e(
|
|
1846
|
+
if (typeof e == "function" || e.render) {
|
|
1847
|
+
const l = (typeof e == "object" ? (
|
|
1848
|
+
// @ts-expect-error - we know this is a component
|
|
1849
|
+
e.render
|
|
1850
|
+
) : e)(n);
|
|
1848
1851
|
return Jc(l);
|
|
1849
1852
|
}
|
|
1850
1853
|
let a = Object.keys(n || {}).filter((r) => r !== "children").map((r) => `${r}="${CO(n[r])}"`).join(" ");
|
|
@@ -14385,7 +14388,7 @@ let s1 = class {
|
|
|
14385
14388
|
} : e.index && (n = this.positionInside(e.index)), e.end ? a = {
|
|
14386
14389
|
column: e.end.column,
|
|
14387
14390
|
line: e.end.line
|
|
14388
|
-
} : e.endIndex ? a = this.positionInside(e.endIndex) : e.index && (a = this.positionInside(e.index + 1));
|
|
14391
|
+
} : typeof e.endIndex == "number" ? a = this.positionInside(e.endIndex) : e.index && (a = this.positionInside(e.index + 1));
|
|
14389
14392
|
return (a.line < n.line || a.line === n.line && a.column <= n.column) && (a = { column: n.column + 1, line: n.line }), { end: a, start: n };
|
|
14390
14393
|
}
|
|
14391
14394
|
raw(e, n) {
|
|
@@ -14733,9 +14736,14 @@ let { SourceMapConsumer: p2, SourceMapGenerator: af } = xr, { dirname: of, relat
|
|
|
14733
14736
|
this.generateString();
|
|
14734
14737
|
else if (this.previous().length === 1) {
|
|
14735
14738
|
let e = this.previous()[0].consumer();
|
|
14736
|
-
e.file = this.outputFile(), this.map = af.fromSourceMap(e
|
|
14739
|
+
e.file = this.outputFile(), this.map = af.fromSourceMap(e, {
|
|
14740
|
+
ignoreInvalidMapping: !0
|
|
14741
|
+
});
|
|
14737
14742
|
} else
|
|
14738
|
-
this.map = new af({
|
|
14743
|
+
this.map = new af({
|
|
14744
|
+
file: this.outputFile(),
|
|
14745
|
+
ignoreInvalidMapping: !0
|
|
14746
|
+
}), this.map.addMapping({
|
|
14739
14747
|
generated: { column: 0, line: 1 },
|
|
14740
14748
|
original: { column: 0, line: 1 },
|
|
14741
14749
|
source: this.opts.from ? this.toUrl(this.path(this.opts.from)) : "<no source>"
|
|
@@ -14743,7 +14751,10 @@ let { SourceMapConsumer: p2, SourceMapGenerator: af } = xr, { dirname: of, relat
|
|
|
14743
14751
|
return this.isSourcesContent() && this.setSourcesContent(), this.root && this.previous().length > 0 && this.applyPrevMaps(), this.isAnnotation() && this.addAnnotation(), this.isInline() ? [this.css] : [this.css, this.map];
|
|
14744
14752
|
}
|
|
14745
14753
|
generateString() {
|
|
14746
|
-
this.css = "", this.map = new af({
|
|
14754
|
+
this.css = "", this.map = new af({
|
|
14755
|
+
file: this.outputFile(),
|
|
14756
|
+
ignoreInvalidMapping: !0
|
|
14757
|
+
});
|
|
14747
14758
|
let e = 1, n = 1, a = "<no source>", c = {
|
|
14748
14759
|
generated: { column: 0, line: 0 },
|
|
14749
14760
|
original: { column: 0, line: 0 },
|
|
@@ -16071,7 +16082,7 @@ var o4 = m1;
|
|
|
16071
16082
|
m1.default = m1;
|
|
16072
16083
|
let l4 = o4, u4 = B2, c4 = Z0, f4 = Du, au = class {
|
|
16073
16084
|
constructor(e = []) {
|
|
16074
|
-
this.version = "8.4.
|
|
16085
|
+
this.version = "8.4.38", this.plugins = this.normalize(e);
|
|
16075
16086
|
}
|
|
16076
16087
|
normalize(e) {
|
|
16077
16088
|
let n = [];
|
|
@@ -93051,10 +93062,14 @@ const YX = (t) => t.replace(/\/\*[\s\S]*?\*\//gm, "").replace(/;\s+/gm, ";").rep
|
|
|
93051
93062
|
y
|
|
93052
93063
|
);
|
|
93053
93064
|
}
|
|
93054
|
-
if (s.props.children
|
|
93055
|
-
|
|
93056
|
-
|
|
93057
|
-
|
|
93065
|
+
if (s.props.children) {
|
|
93066
|
+
const y = Ys.Children.map(
|
|
93067
|
+
s.props.children,
|
|
93068
|
+
(b) => Ys.isValidElement(b) ? f(b) : b
|
|
93069
|
+
);
|
|
93070
|
+
o.children = y && y.length === 1 ? y[0] : y;
|
|
93071
|
+
}
|
|
93072
|
+
if (s.props.className) {
|
|
93058
93073
|
const { styles: y, residualClassName: b } = u(s.props.className);
|
|
93059
93074
|
if (o.style = {
|
|
93060
93075
|
...s.props.style,
|
|
@@ -93073,8 +93088,12 @@ const YX = (t) => t.replace(/\/\*[\s\S]*?\*\//gm, "").replace(/;\s+/gm, ";").rep
|
|
|
93073
93088
|
...s.props,
|
|
93074
93089
|
...o
|
|
93075
93090
|
}, h = o.children ? o.children : s.props.children;
|
|
93076
|
-
if (typeof s.type == "function"
|
|
93077
|
-
|
|
93091
|
+
if (typeof s.type == "function" || // @ts-expect-error - we know this is a component that may have a render function
|
|
93092
|
+
s.type.render) {
|
|
93093
|
+
const b = (typeof s.type == "object" ? (
|
|
93094
|
+
// @ts-expect-error - we know this is a component with a render function
|
|
93095
|
+
s.type.render
|
|
93096
|
+
) : s.type)({
|
|
93078
93097
|
...s.props,
|
|
93079
93098
|
...o
|
|
93080
93099
|
});
|
package/dist/tailwind.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tailwind.d.ts","sourceRoot":"","sources":["../src/tailwind.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,MAAM,IAAI,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAMpE,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC,sBAAsB,EAAE,SAAS,CAAC,CAAC;AAErE,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,MAAM,CAAC,EAAE,cAAc,CAAC;CACzB;AAQD,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,
|
|
1
|
+
{"version":3,"file":"tailwind.d.ts","sourceRoot":"","sources":["../src/tailwind.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,MAAM,IAAI,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAMpE,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC,sBAAsB,EAAE,SAAS,CAAC,CAAC;AAErE,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,MAAM,CAAC,EAAE,cAAc,CAAC;CACzB;AAQD,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAuI5C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quick-safe-render-to-string.d.ts","sourceRoot":"","sources":["../../src/utils/quick-safe-render-to-string.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B;;;;;;;;;GASG;AACH,eAAO,MAAM,uBAAuB,YAAa,MAAM,SAAS,KAAG,
|
|
1
|
+
{"version":3,"file":"quick-safe-render-to-string.d.ts","sourceRoot":"","sources":["../../src/utils/quick-safe-render-to-string.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B;;;;;;;;;GASG;AACH,eAAO,MAAM,uBAAuB,YAAa,MAAM,SAAS,KAAG,MAwClE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-email/tailwind",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.16-canary.1",
|
|
4
4
|
"description": "A React component to wrap emails with Tailwind CSS",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@types/postcss-css-variables": "0.18.3",
|
|
49
49
|
"eslint-plugin-regex": "1.10.0",
|
|
50
50
|
"memfs": "4.6.0",
|
|
51
|
-
"postcss": "8.4.
|
|
51
|
+
"postcss": "8.4.38",
|
|
52
52
|
"postcss-css-variables": "0.19.0",
|
|
53
53
|
"process": "^0.11.10",
|
|
54
54
|
"react-dom": "18.2.0",
|
|
@@ -59,11 +59,12 @@
|
|
|
59
59
|
"vite-plugin-dts": "3.6.3",
|
|
60
60
|
"vite-plugin-node-polyfills": "0.17.0",
|
|
61
61
|
"@react-email/button": "^0.0.14",
|
|
62
|
-
"@react-email/head": "0.0.
|
|
63
|
-
"
|
|
62
|
+
"@react-email/head": "0.0.8-canary.0",
|
|
63
|
+
"@react-email/heading": "0.0.11",
|
|
64
64
|
"@react-email/html": "0.0.7",
|
|
65
|
+
"@react-email/hr": "0.0.7",
|
|
65
66
|
"tsconfig": "0.0.0",
|
|
66
|
-
"
|
|
67
|
+
"eslint-config-custom": "0.0.0"
|
|
67
68
|
},
|
|
68
69
|
"publishConfig": {
|
|
69
70
|
"access": "public"
|