var e=Object.defineProperty,t=Object.defineProperties,r=Object.getOwnPropertyDescriptors,s=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,i=(t,r,s)=>r in t?e(t,r,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[r]=s,a=(e,t)=>{for(var r in t||(t={}))n.call(t,r)&&i(e,r,t[r]);if(s)for(var r of s(t))o.call(t,r)&&i(e,r,t[r]);return e},u=(e,s)=>t(e,r(s)),l=(e,t)=>{var r={};for(var i in e)n.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(null!=e&&s)for(var i of s(e))t.indexOf(i)<0&&o.call(e,i)&&(r[i]=e[i]);return r};try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="cc938310-93e7-4b75-932f-a7b9eb4421f3",e._sentryDebugIdIdentifier="sentry-dbid-cc938310-93e7-4b75-932f-a7b9eb4421f3")}catch(Io){}import{bB as c,bC as p,aB as h,bD as f,d,a0 as v,i as m,c as y,ay as g,ao as w,o as b,E as S,a as k,Z as x,Q as O,w as E,K as _,av as T,ax as P,a2 as A}from"./vendor.82ce4f28.js";import{o as C,p as I,h as L,i as M,n as D,T as j,r as R}from"./index.3a1c246f.js";import{B as F,I as N,R as U}from"./ContentfulRichTextRenderer.3aadc01d.js";import q from"./ContentfulResponsiveAsset.fb463deb.js";import{C as B}from"./ContentfulField.83c7817a.js";import{_ as W}from"./ContentfulAsset.8bc55591.js";import $ from"./Divider.9f0477f6.js";import{s as z}from"./slugify.bb683085.js";import"./useProduct.f4df4b6e.js";import"./EventAnalytics.130bb5b5.js";import"./useContentfulLivePreview.10fb7da3.js";let Y=c.exports,G=p;class Q extends Error{constructor(e,t,r,s,n,o){super(e),this.name="CssSyntaxError",this.reason=e,n&&(this.file=n),s&&(this.source=s),o&&(this.plugin=o),void 0!==t&&void 0!==r&&("number"==typeof t?(this.line=t,this.column=r):(this.line=t.line,this.column=t.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,Q)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;null==e&&(e=Y.isColorSupported),G&&e&&(t=G(t));let r,s,n=t.split(/\r?\n/),o=Math.max(this.line-3,0),i=Math.min(this.line+2,n.length),a=String(i).length;if(e){let{bold:e,gray:t,red:n}=Y.createColors(!0);r=t=>e(n(t)),s=e=>t(e)}else r=s=e=>e;return n.slice(o,i).map(((e,t)=>{let n=o+1+t,i=" "+(" "+n).slice(-a)+" | ";if(n===this.line){let t=s(i.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return r(">")+s(i)+e+"\n "+t+r("^")}return" "+s(i)+e})).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}}var V=Q;Q.default=Q;var J={};J.isClean=Symbol("isClean"),J.my=Symbol("my");const H={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};class K{constructor(e){this.builder=e}atrule(e,t){let r="@"+e.name,s=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:s&&(r+=" "),e.nodes)this.block(e,r+s);else{let n=(e.raws.between||"")+(t?";":"");this.builder(r+s+n,e)}}beforeAfter(e,t){let r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");let s=e.parent,n=0;for(;s&&"root"!==s.type;)n+=1,s=s.parent;if(r.includes("\n")){let t=this.raw(e,null,"indent");if(t.length)for(let e=0;e0&&"comment"===e.nodes[t].type;)t-=1;let r=this.raw(e,"semicolon");for(let s=0;s{if(s=e.raws[t],void 0!==s)return!1}))}var i;return void 0===s&&(s=H[r]),o.rawCache[r]=s,s}rawBeforeClose(e){let t;return e.walk((e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return t=e.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let r;return e.walkComments((e=>{if(void 0!==e.raws.before)return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,t){let r;return e.walkDecls((e=>{if(void 0!==e.raws.before)return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let t;return e.walk((e=>{if("decl"!==e.type&&(t=e.raws.between,void 0!==t))return!1})),t}rawBeforeRule(e){let t;return e.walk((r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return t=r.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls((e=>{if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1})),t}rawEmptyBody(e){let t;return e.walk((e=>{if(e.nodes&&0===e.nodes.length&&(t=e.raws.after,void 0!==t))return!1})),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk((r=>{let s=r.parent;if(s&&s!==e&&s.parent&&s.parent===e&&void 0!==r.raws.before){let e=r.raws.before.split("\n");return t=e[e.length-1],t=t.replace(/\S/g,""),!1}})),t}rawSemicolon(e){let t;return e.walk((e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,void 0!==t))return!1})),t}rawValue(e,t){let r=e[t],s=e.raws[t];return s&&s.value===r?s.raw:r}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,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}}var Z=K;K.default=K;let X=Z;function ee(e,t){new X(t).stringify(e)}var te=ee;ee.default=ee;let{isClean:re,my:se}=J,ne=V,oe=Z,ie=te;function ae(e,t){let r=new e.constructor;for(let s in e){if(!Object.prototype.hasOwnProperty.call(e,s))continue;if("proxyCache"===s)continue;let n=e[s],o=typeof n;"parent"===s&&"object"===o?t&&(r[s]=t):"source"===s?r[s]=n:Array.isArray(n)?r[s]=n.map((e=>ae(e,r))):("object"===o&&null!==n&&(n=ae(n)),r[s]=n)}return r}class ue{constructor(e={}){this.raws={},this[re]=!1,this[se]=!0;for(let t in e)if("nodes"===t){this.nodes=[];for(let r of e[t])"function"==typeof r.clone?this.append(r.clone()):this.append(r)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=ae(this);for(let r in e)t[r]=e[r];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:r,start:s}=this.rangeBy(t);return this.source.input.error(e,{column:s.column,line:s.line},{column:r.column,line:r.line},t)}return new ne(e)}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t],set:(e,t,r)=>(e[t]===r||(e[t]=r,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0)}}markDirty(){if(this[re]){this[re]=!1;let e=this;for(;e=e.parent;)e[re]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){let s=(t=this.toString()).indexOf(e.word);-1!==s&&(r=this.positionInside(s,t))}return r}positionInside(e,t){let r=t||this.toString(),s=this.source.start.column,n=this.source.start.line;for(let o=0;o"object"==typeof e&&e.toJSON?e.toJSON(null,t):e));else if("object"==typeof e&&e.toJSON)r[o]=e.toJSON(null,t);else if("source"===o){let s=t.get(e.input);null==s&&(s=n,t.set(e.input,n),n++),r[o]={end:e.end,inputId:s,start:e.start}}else r[o]=e}return s&&(r.inputs=[...t.keys()].map((e=>e.toJSON()))),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=ie){e.stringify&&(e=e.stringify);let t="";return e(this,(e=>{t+=e})),t}warn(e,t,r){let s={node:this};for(let n in r)s[n]=r[n];return e.warn(t,s)}get proxyOf(){return this}}var le=ue;ue.default=ue;let ce=le;class pe extends ce{constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e=u(a({},e),{value:String(e.value)})),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}}var he=pe;pe.default=pe;var fe={nanoid:(e=21)=>{let t="",r=e;for(;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(e,t=21)=>(r=t)=>{let s="",n=r;for(;n--;)s+=e[Math.random()*e.length|0];return s}};let{SourceMapConsumer:de,SourceMapGenerator:ve}=p,{existsSync:me,readFileSync:ye}=p,{dirname:ge,join:we}=p;class be{constructor(e,t){if(!1===t.map)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,s=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=ge(this.mapFile)),s&&(this.text=s)}consumer(){return this.consumerCache||(this.consumerCache=new de(this.text)),this.consumerCache}decodeInline(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from(t,"base64").toString():window.atob(t);var t;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"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let r=e.lastIndexOf(t.pop()),s=e.indexOf("*/",r);r>-1&&s>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,s)))}loadFile(e){if(this.root=ge(e),me(e))return this.mapFile=e,ye(e,"utf-8").toString().trim()}loadMap(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(t instanceof de)return ve.fromSourceMap(t).toString();if(t instanceof ve)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}{let r=t(e);if(r){let e=this.loadFile(r);if(!e)throw new Error("Unable to load previous source map: "+r.toString());return e}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let t=this.annotation;return e&&(t=we(ge(e),t)),this.loadFile(t)}}}startWith(e,t){return!!e&&e.substr(0,t.length)===t}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}var Se=be;be.default=be;let{SourceMapConsumer:ke,SourceMapGenerator:xe}=p,{fileURLToPath:Oe,pathToFileURL:Ee}=p,{isAbsolute:_e,resolve:Te}=p,{nanoid:Pe}=fe,Ae=p,Ce=V,Ie=Se,Le=Symbol("fromOffsetCache"),Me=Boolean(ke&&xe),De=Boolean(Te&&_e);class je{constructor(e,t={}){if(null==e||"object"==typeof e&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!De||/^\w+:\/\//.test(t.from)||_e(t.from)?this.file=t.from:this.file=Te(t.from)),De&&Me){let e=new Ie(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id=""),this.map&&(this.map.file=this.from)}error(e,t,r,s={}){let n,o,i;if(t&&"object"==typeof t){let e=t,s=r;if("number"==typeof e.offset){let s=this.fromOffset(e.offset);t=s.line,r=s.col}else t=e.line,r=e.column;if("number"==typeof s.offset){let e=this.fromOffset(s.offset);o=e.line,i=e.col}else o=s.line,i=s.column}else if(!r){let e=this.fromOffset(t);t=e.line,r=e.col}let a=this.origin(t,r,o,i);return n=a?new Ce(e,void 0===a.endLine?a.line:{column:a.column,line:a.line},void 0===a.endLine?a.column:{column:a.endColumn,line:a.endLine},a.source,a.file,s.plugin):new Ce(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:i,line:o},this.css,this.file,s.plugin),n.input={column:r,endColumn:i,endLine:o,line:t,source:this.css},this.file&&(Ee&&(n.input.url=Ee(this.file).toString()),n.input.file=this.file),n}fromOffset(e){let t,r;if(this[Le])r=this[Le];else{let e=this.css.split("\n");r=new Array(e.length);let t=0;for(let s=0,n=e.length;s=t)s=r.length-1;else{let t,n=r.length-2;for(;s>1),e=r[t+1])){s=t;break}s=t+1}}return{col:e-r[s]+1,line:s+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:Te(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,s){if(!this.map)return!1;let n,o,i=this.map.consumer(),a=i.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(n=i.originalPositionFor({column:s,line:r})),o=_e(a.source)?Ee(a.source):new URL(a.source,this.map.consumer().sourceRoot||Ee(this.map.mapFile));let u={column:a.column,endColumn:n&&n.column,endLine:n&&n.line,line:a.line,url:o.toString()};if("file:"===o.protocol){if(!Oe)throw new Error("file: protocol is not available in this PostCSS build");u.file=Oe(o)}let l=i.sourceContentFor(a.source);return l&&(u.source=l),u}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(e[t]=this[t]);return this.map&&(e.map=a({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}}var Re=je;je.default=je,Ae&&Ae.registerInput&&Ae.registerInput(je);let{SourceMapConsumer:Fe,SourceMapGenerator:Ne}=p,{dirname:Ue,relative:qe,resolve:Be,sep:We}=p,{pathToFileURL:$e}=p,ze=Re,Ye=Boolean(Fe&&Ne),Ge=Boolean(Ue&&Be&&qe&&We);var Qe=class{constructor(e,t,r,s){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=s,this.originalCSS=s,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t,r=this.toUrl(this.path(e.file)),s=e.root||Ue(e.file);!1===this.mapOpts.sourcesContent?(t=new Fe(e.text),t.sourcesContent&&(t.sourcesContent=null)):t=e.consumer(),this.map.applySourceMap(t,r,this.toUrl(this.path(s)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],"comment"===e.type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),Ge&&Ye&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,(t=>{e+=t})),[e]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=Ne.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Ne({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)):""});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 Ne({file:this.outputFile(),ignoreInvalidMapping:!0});let e,t,r=1,s=1,n="",o={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,((i,a,u)=>{if(this.css+=i,a&&"end"!==u&&(o.generated.line=r,o.generated.column=s-1,a.source&&a.source.start?(o.source=this.sourcePath(a),o.original.line=a.source.start.line,o.original.column=a.source.start.column-1,this.map.addMapping(o)):(o.source=n,o.original.line=1,o.original.column=0,this.map.addMapping(o))),e=i.match(/\n/g),e?(r+=e.length,t=i.lastIndexOf("\n"),s=i.length-t):s+=i.length,a&&"start"!==u){let e=a.parent||{raws:{}};("decl"===a.type||"atrule"===a.type&&!a.nodes)&&a===e.last&&!e.raws.semicolon||(a.source&&a.source.end?(o.source=this.sourcePath(a),o.original.line=a.source.end.line,o.original.column=a.source.end.column-1,o.generated.line=r,o.generated.column=s-2,this.map.addMapping(o)):(o.source=n,o.original.line=1,o.original.column=0,o.generated.line=r,o.generated.column=s-1,this.map.addMapping(o)))}}))}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((e=>e.annotation)))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some((e=>e.inline)))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((e=>e.withContent()))}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)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let r=this.opts.to?Ue(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=Ue(Be(r,this.mapOpts.annotation)));let s=qe(r,e);return this.memoizedPaths.set(e,s),s}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}}));else{let e=new ze(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk((t=>{if(t.source){let r=t.source.input.from;if(r&&!e[r]){e[r]=!0;let s=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(s,t.source.input.css)}}}));else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):"";this.map.setSourceContent(e,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 Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if($e){let t=$e(e).toString();return this.memoizedFileURLs.set(e,t),t}throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;"\\"===We&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}};let Ve=le;class Je extends Ve{constructor(e){super(e),this.type="comment"}}var He=Je;Je.default=Je;let Ke,Ze,Xe,et,{isClean:tt,my:rt}=J,st=he,nt=He,ot=le;function it(e){return e.map((e=>(e.nodes&&(e.nodes=it(e.nodes)),delete e.source,e)))}function at(e){if(e[tt]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)at(t)}class ut extends ot{append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t,r,s=this.getIterator();for(;this.indexes[s]"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?(...r)=>e[t](...r.map((e=>"function"==typeof e?(t,r)=>e(t.toProxy(),r):e))):"every"===t||"some"===t?r=>e[t](((e,...t)=>r(e.toProxy(),...t))):"root"===t?()=>e.root().toProxy():"nodes"===t?e.nodes.map((e=>e.toProxy())):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t],set:(e,t,r)=>(e[t]===r||(e[t]=r,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0)}}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let r,s=this.index(e),n=this.normalize(t,this.proxyOf.nodes[s]).reverse();s=this.index(e);for(let o of n)this.proxyOf.nodes.splice(s+1,0,o);for(let o in this.indexes)r=this.indexes[o],s(e[rt]||ut.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[tt]&&at(e),void 0===e.raws.before&&t&&void 0!==t.raws.before&&(e.raws.before=t.raws.before.replace(/\S/g,"")),e.parent=this.proxyOf,e)))}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.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){let t;e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);for(let r in this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls((s=>{t.props&&!t.props.includes(s.prop)||t.fast&&!s.value.includes(t.fast)||(s.value=s.value.replace(e,r))})),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each(((t,r)=>{let s;try{s=e(t,r)}catch(Io){throw t.addToError(Io)}return!1!==s&&t.walk&&(s=t.walk(e)),s}))}walkAtRules(e,t){return t?e instanceof RegExp?this.walk(((r,s)=>{if("atrule"===r.type&&e.test(r.name))return t(r,s)})):this.walk(((r,s)=>{if("atrule"===r.type&&r.name===e)return t(r,s)})):(t=e,this.walk(((e,r)=>{if("atrule"===e.type)return t(e,r)})))}walkComments(e){return this.walk(((t,r)=>{if("comment"===t.type)return e(t,r)}))}walkDecls(e,t){return t?e instanceof RegExp?this.walk(((r,s)=>{if("decl"===r.type&&e.test(r.prop))return t(r,s)})):this.walk(((r,s)=>{if("decl"===r.type&&r.prop===e)return t(r,s)})):(t=e,this.walk(((e,r)=>{if("decl"===e.type)return t(e,r)})))}walkRules(e,t){return t?e instanceof RegExp?this.walk(((r,s)=>{if("rule"===r.type&&e.test(r.selector))return t(r,s)})):this.walk(((r,s)=>{if("rule"===r.type&&r.selector===e)return t(r,s)})):(t=e,this.walk(((e,r)=>{if("rule"===e.type)return t(e,r)})))}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]}}ut.registerParse=e=>{Ke=e},ut.registerRule=e=>{Ze=e},ut.registerAtRule=e=>{Xe=e},ut.registerRoot=e=>{et=e};var lt=ut;ut.default=ut,ut.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,Xe.prototype):"rule"===e.type?Object.setPrototypeOf(e,Ze.prototype):"decl"===e.type?Object.setPrototypeOf(e,st.prototype):"comment"===e.type?Object.setPrototypeOf(e,nt.prototype):"root"===e.type&&Object.setPrototypeOf(e,et.prototype),e[rt]=!0,e.nodes&&e.nodes.forEach((e=>{ut.rebuild(e)}))};let ct,pt,ht=lt;class ft extends ht{constructor(e){super(a({type:"document"},e)),this.nodes||(this.nodes=[])}toResult(e={}){return new ct(new pt,this,e).stringify()}}ft.registerLazyResult=e=>{ct=e},ft.registerProcessor=e=>{pt=e};var dt=ft;ft.default=ft;class vt{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let r in t)this[r]=t[r]}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 mt=vt;vt.default=vt;let yt=mt;class gt{constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new yt(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter((e=>"warning"===e.type))}get content(){return this.css}}var wt=gt;gt.default=gt;const bt="'".charCodeAt(0),St='"'.charCodeAt(0),kt="\\".charCodeAt(0),xt="/".charCodeAt(0),Ot="\n".charCodeAt(0),Et=" ".charCodeAt(0),_t="\f".charCodeAt(0),Tt="\t".charCodeAt(0),Pt="\r".charCodeAt(0),At="[".charCodeAt(0),Ct="]".charCodeAt(0),It="(".charCodeAt(0),Lt=")".charCodeAt(0),Mt="{".charCodeAt(0),Dt="}".charCodeAt(0),jt=";".charCodeAt(0),Rt="*".charCodeAt(0),Ft=":".charCodeAt(0),Nt="@".charCodeAt(0),Ut=/[\t\n\f\r "#'()/;[\\\]{}]/g,qt=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Bt=/.[\r\n"'(/\\]/,Wt=/[\da-f]/i;let $t=lt;class zt extends $t{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 Yt=zt;zt.default=zt,$t.registerAtRule(zt);let Gt,Qt,Vt=lt;class Jt extends Vt{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let s=super.normalize(e);if(t)if("prepend"===r)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let n of s)n.raws.before=t.raws.before;return s}removeChild(e,t){let r=this.index(e);return!t&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new Gt(new Qt,this,e).stringify()}}Jt.registerLazyResult=e=>{Gt=e},Jt.registerProcessor=e=>{Qt=e};var Ht=Jt;Jt.default=Jt,Vt.registerRoot(Jt);let Kt={comma:e=>Kt.split(e,[","],!0),space:e=>Kt.split(e,[" ","\n","\t"]),split(e,t,r){let s=[],n="",o=!1,i=0,a=!1,u="",l=!1;for(let c of e)l?l=!1:"\\"===c?l=!0:a?c===u&&(a=!1):'"'===c||"'"===c?(a=!0,u=c):"("===c?i+=1:")"===c?i>0&&(i-=1):0===i&&t.includes(c)&&(o=!0),o?(""!==n&&s.push(n.trim()),n="",o=!1):n+=c;return(r||""!==n)&&s.push(n.trim()),s}};var Zt=Kt;Kt.default=Kt;let Xt=lt,er=Zt;class tr extends Xt{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return er.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}var rr=tr;tr.default=tr,Xt.registerRule(tr);let sr=he,nr=function(e,t={}){let r,s,n,o,i,a,u,l,c,p,h=e.css.valueOf(),f=t.ignoreErrors,d=h.length,v=0,m=[],y=[];function g(t){throw e.error("Unclosed "+t,v)}return{back:function(e){y.push(e)},endOfFile:function(){return 0===y.length&&v>=d},nextToken:function(e){if(y.length)return y.pop();if(v>=d)return;let t=!!e&&e.ignoreUnclosed;switch(r=h.charCodeAt(v),r){case Ot:case Et:case Tt:case Pt:case _t:s=v;do{s+=1,r=h.charCodeAt(s)}while(r===Et||r===Ot||r===Tt||r===Pt||r===_t);p=["space",h.slice(v,s)],v=s-1;break;case At:case Ct:case Mt:case Dt:case Ft:case jt:case Lt:{let e=String.fromCharCode(r);p=[e,e,v];break}case It:if(l=m.length?m.pop()[1]:"",c=h.charCodeAt(v+1),"url"===l&&c!==bt&&c!==St&&c!==Et&&c!==Ot&&c!==Tt&&c!==_t&&c!==Pt){s=v;do{if(a=!1,s=h.indexOf(")",s+1),-1===s){if(f||t){s=v;break}g("bracket")}for(u=s;h.charCodeAt(u-1)===kt;)u-=1,a=!a}while(a);p=["brackets",h.slice(v,s+1),v,s],v=s}else s=h.indexOf(")",v+1),o=h.slice(v,s+1),-1===s||Bt.test(o)?p=["(","(",v]:(p=["brackets",o,v,s],v=s);break;case bt:case St:n=r===bt?"'":'"',s=v;do{if(a=!1,s=h.indexOf(n,s+1),-1===s){if(f||t){s=v+1;break}g("string")}for(u=s;h.charCodeAt(u-1)===kt;)u-=1,a=!a}while(a);p=["string",h.slice(v,s+1),v,s],v=s;break;case Nt:Ut.lastIndex=v+1,Ut.test(h),s=0===Ut.lastIndex?h.length-1:Ut.lastIndex-2,p=["at-word",h.slice(v,s+1),v,s],v=s;break;case kt:for(s=v,i=!0;h.charCodeAt(s+1)===kt;)s+=1,i=!i;if(r=h.charCodeAt(s+1),i&&r!==xt&&r!==Et&&r!==Ot&&r!==Tt&&r!==Pt&&r!==_t&&(s+=1,Wt.test(h.charAt(s)))){for(;Wt.test(h.charAt(s+1));)s+=1;h.charCodeAt(s+1)===Et&&(s+=1)}p=["word",h.slice(v,s+1),v,s],v=s;break;default:r===xt&&h.charCodeAt(v+1)===Rt?(s=h.indexOf("*/",v+2)+1,0===s&&(f||t?s=h.length:g("comment")),p=["comment",h.slice(v,s+1),v,s],v=s):(qt.lastIndex=v+1,qt.test(h),s=0===qt.lastIndex?h.length-1:qt.lastIndex-2,p=["word",h.slice(v,s+1),v,s],m.push(p),v=s)}return v++,p},position:function(){return v}}},or=He,ir=Yt,ar=Ht,ur=rr;const lr={empty:!0,space:!0};let cr=lt,pr=class{constructor(e){this.input=e,this.root=new ar,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t,r,s,n=new ir;n.name=e[1].slice(1),""===n.name&&this.unnamedAtrule(n,e),this.init(n,e[2]);let o=!1,i=!1,a=[],u=[];for(;!this.tokenizer.endOfFile();){if(t=(e=this.tokenizer.nextToken())[0],"("===t||"["===t?u.push("("===t?")":"]"):"{"===t&&u.length>0?u.push("}"):t===u[u.length-1]&&u.pop(),0===u.length){if(";"===t){n.source.end=this.getPosition(e[2]),n.source.end.offset++,this.semicolon=!0;break}if("{"===t){i=!0;break}if("}"===t){if(a.length>0){for(s=a.length-1,r=a[s];r&&"space"===r[0];)r=a[--s];r&&(n.source.end=this.getPosition(r[3]||r[2]),n.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}n.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(n.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(n,"params",a),o&&(e=a[a.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=""),i&&(n.nodes=[],this.current=n)}checkMissedSemicolon(e){let t=this.colon(e);if(!1===t)return;let r,s=0;for(let n=t-1;n>=0&&(r=e[n],"space"===r[0]||(s+=1,2!==s));n--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}colon(e){let t,r,s,n=0;for(let[o,i]of e.entries()){if(t=i,r=t[0],"("===r&&(n+=1),")"===r&&(n-=1),0===n&&":"===r){if(s){if("word"===s[0]&&"progid"===s[1])continue;return o}this.doubleColon(t)}s=t}return!1}comment(e){let t=new or;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{let e=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}createTokenizer(){this.tokenizer=nr(this.input)}decl(e,t){let r=new sr;this.init(r,e[0][2]);let s,n=e[e.length-1];for(";"===n[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(n[3]||n[2]||function(e){for(let t=e.length-1;t>=0;t--){let r=e[t],s=r[3]||r[2];if(s)return s}}(e)),r.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let t=e[0][0];if(":"===t||"space"===t||"comment"===t)break;r.prop+=e.shift()[1]}for(r.raws.between="";e.length;){if(s=e.shift(),":"===s[0]){r.raws.between+=s[1];break}"word"===s[0]&&/\w/.test(s[1])&&this.unknownWord([s]),r.raws.between+=s[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let o,i=[];for(;e.length&&(o=e[0][0],"space"===o||"comment"===o);)i.push(e.shift());this.precheckMissedSemicolon(e);for(let a=e.length-1;a>=0;a--){if(s=e[a],"!important"===s[1].toLowerCase()){r.important=!0;let t=this.stringFrom(e,a);t=this.spacesFromEnd(e)+t," !important"!==t&&(r.raws.important=t);break}if("important"===s[1].toLowerCase()){let t=e.slice(0),s="";for(let e=a;e>0;e--){let r=t[e][0];if(0===s.trim().indexOf("!")&&"space"!==r)break;s=t.pop()[1]+s}0===s.trim().indexOf("!")&&(r.important=!0,r.raws.important=s,e=t)}if("space"!==s[0]&&"comment"!==s[0])break}e.some((e=>"space"!==e[0]&&"comment"!==e[0]))&&(r.raws.between+=i.map((e=>e[1])).join(""),i=[]),this.raw(r,"value",i.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new ur;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}other(e){let t=!1,r=null,s=!1,n=null,o=[],i=e[1].startsWith("--"),a=[],u=e;for(;u;){if(r=u[0],a.push(u),"("===r||"["===r)n||(n=u),o.push("("===r?")":"]");else if(i&&s&&"{"===r)n||(n=u),o.push("}");else if(0===o.length){if(";"===r){if(s)return void this.decl(a,i);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(s=!0)}else r===o[o.length-1]&&(o.pop(),0===o.length&&(n=null));u=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(n),t&&s){if(!i)for(;a.length&&(u=a[a.length-1][0],"space"===u||"comment"===u);)this.tokenizer.back(a.pop());this.decl(a,i)}else this.unknownWord(a)}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)}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,s){let n,o,i,a,u=r.length,l="",c=!0;for(let p=0;pe+t[1]),"");e.raws[t]={raw:s,value:l}}e[t]=l}rule(e){e.pop();let t=new ur;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],"space"===t||"comment"===t);)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t,r="";for(;e.length&&(t=e[0][0],"space"===t||"comment"===t);)r+=e.shift()[1];return r}spacesFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],"space"===t);)r=e.pop()[1]+r;return r}stringFrom(e,t){let r="";for(let s=t;sCr(e))),e}let Ir={};class Lr{constructor(e,t,r){let s;if(this.stringified=!1,this.processed=!1,"object"!=typeof t||null===t||"root"!==t.type&&"document"!==t.type)if(t instanceof Lr||t instanceof Sr)s=Cr(t.root),t.map&&(void 0===r.map&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=t.map);else{let e=kr;r.syntax&&(e=r.syntax.parse),r.parser&&(e=r.parser),e.parse&&(e=e.parse);try{s=e(t,r)}catch(n){this.processed=!0,this.error=n}s&&!s[mr]&&wr.rebuild(s)}else s=Cr(t);this.result=new Sr(e,s,r),this.helpers=u(a({},Ir),{postcss:Ir,result:this.result}),this.plugins=this.processor.plugins.map((e=>"object"==typeof e&&e.prepare?a(a({},e),e.prepare(this.result)):e))}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,t){let r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?r.postcssVersion:(e.plugin=r.postcssPlugin,e.setMessage())}catch(s){console&&console.error&&console.error(s)}return e}prepareVisitors(){this.listeners={};let e=(e,t,r)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,r])};for(let t of this.plugins)if("object"==typeof t)for(let r in t){if(!Er[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!_r[r])if("object"==typeof t[r])for(let s in t[r])e(t,"*"===s?r:r+"-"+s.toLowerCase(),t[r][s]);else"function"==typeof t[r]&&e(t,r,t[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let t=0;t0;){let e=this.visitTick(t);if(Tr(e))try{await e}catch(Io){let r=t[t.length-1].node;throw this.handleError(Io,r)}}}if(this.listeners.OnceExit)for(let[t,r]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if("document"===e.type){let t=e.nodes.map((e=>r(e,this.helpers)));await Promise.all(t)}else await r(e,this.helpers)}catch(Io){throw this.handleError(Io)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once){if("document"===this.result.root.type){let t=this.result.root.nodes.map((t=>e.Once(t,this.helpers)));return Tr(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=gr;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let r=new yr(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[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){if(Tr(this.runOnRoot(e)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[vr];)e[vr]=!0,this.walkSync(e);if(this.listeners.OnceExit)if("document"===e.type)for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[r,s]of e){let e;this.result.lastPlugin=r;try{e=s(t,this.helpers)}catch(Io){throw this.handleError(Io,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(Tr(e))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:r,visitors:s}=t;if("root"!==r.type&&"document"!==r.type&&!r.parent)return void e.pop();if(s.length>0&&t.visitorIndex{e[vr]||this.walkSync(e)}));else{let t=this.listeners[r];if(t&&this.visitSync(t,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"}}Lr.registerPostcss=e=>{Ir=e};var Mr=Lr;Lr.default=Lr,xr.registerLazyResult(Lr),br.registerLazyResult(Lr);let Dr=Qe,jr=te,Rr=dr;const Fr=wt;class Nr{constructor(e,t,r){let s;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;let n=jr;this.result=new Fr(this._processor,s,this._opts),this.result.css=t;let o=this;Object.defineProperty(this.result,"root",{get:()=>o.root});let i=new Dr(n,s,this._opts,t);if(i.isMap()){let[e,t]=i.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else i.clearAnnotation(),this.result.css=i.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,t){return this.async().then(e,t)}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,t=Rr;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}}var Ur=Nr;Nr.default=Nr;let qr=Ur,Br=Mr,Wr=dt,$r=Ht;class zr{constructor(e=[]){this.version="8.4.38",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let r of e)if(!0===r.postcss?r=r():r.postcss&&(r=r.postcss),"object"==typeof r&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if("object"==typeof r&&r.postcssPlugin)t.push(r);else if("function"==typeof r)t.push(r);else if("object"!=typeof r||!r.parse&&!r.stringify)throw new Error(r+" is not a PostCSS plugin");return t}process(e,t={}){return this.plugins.length||t.parser||t.stringifier||t.syntax?new Br(this,e,t):new qr(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}}var Yr=zr;zr.default=zr,$r.registerProcessor(zr),Wr.registerProcessor(zr);let Gr=he,Qr=Se,Vr=He,Jr=Yt,Hr=Re,Kr=Ht,Zr=rr;function Xr(e,t){if(Array.isArray(e))return e.map((e=>Xr(e)));let r=e,{inputs:s}=r,n=l(r,["inputs"]);if(s){t=[];for(let e of s){let r=u(a({},e),{__proto__:Hr.prototype});r.map&&(r.map=u(a({},r.map),{__proto__:Qr.prototype})),t.push(r)}}if(n.nodes&&(n.nodes=e.nodes.map((e=>Xr(e,t)))),n.source){let e=n.source,{inputId:r}=e,s=l(e,["inputId"]);n.source=s,null!=r&&(n.source.input=t[r])}if("root"===n.type)return new Kr(n);if("decl"===n.type)return new Gr(n);if("rule"===n.type)return new Zr(n);if("comment"===n.type)return new Vr(n);if("atrule"===n.type)return new Jr(n);throw new Error("Unknown node type: "+e.type)}var es=Xr;Xr.default=Xr;let ts=V,rs=he,ss=Mr,ns=lt,os=Yr,is=te,as=es,us=dt,ls=mt,cs=He,ps=Yt,hs=wt,fs=Re,ds=dr,vs=Zt,ms=rr,ys=Ht,gs=le;function ws(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new os(e)}ws.plugin=function(e,t){let r,s=!1;function n(...r){console&&console.warn&&!s&&(s=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),{}.LANG&&{}.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));let n=t(...r);return n.postcssPlugin=e,n.postcssVersion=(new os).version,n}return Object.defineProperty(n,"postcss",{get:()=>(r||(r=n()),r)}),n.process=function(e,t,r){return ws([n(r)]).process(e,t)},n},ws.stringify=is,ws.parse=ds,ws.fromJSON=as,ws.list=vs,ws.comment=e=>new cs(e),ws.atRule=e=>new ps(e),ws.decl=e=>new rs(e),ws.rule=e=>new ms(e),ws.root=e=>new ys(e),ws.document=e=>new us(e),ws.CssSyntaxError=ts,ws.Declaration=rs,ws.Container=ns,ws.Processor=os,ws.Document=us,ws.Comment=cs,ws.Warning=ls,ws.AtRule=ps,ws.Result=hs,ws.Input=fs,ws.Rule=ms,ws.Root=ys,ws.Node=gs,ss.registerPostcss(ws);var bs=ws;ws.default=ws,bs.stringify,bs.fromJSON,bs.plugin,bs.parse,bs.list,bs.document,bs.comment,bs.atRule,bs.rule,bs.decl,bs.root,bs.CssSyntaxError,bs.Declaration,bs.Container,bs.Processor,bs.Document,bs.Comment,bs.Warning,bs.AtRule,bs.Result,bs.Input,bs.Rule,bs.Root,bs.Node;var Ss={exports:{}},ks={exports:{}},xs={exports:{}},Os={exports:{}},Es={exports:{}},_s={exports:{}},Ts={},Ps={exports:{}};!function(e,t){function r(e){for(var t=e.toLowerCase(),r="",s=!1,n=0;n<6&&void 0!==t[n];n++){var o=t.charCodeAt(n);if(s=32===o,!(o>=97&&o<=102||o>=48&&o<=57))break;r+=t[n]}if(0!==r.length){var i=parseInt(r,16);return i>=55296&&i<=57343||0===i||i>1114111?["�",r.length+(s?1:0)]:[String.fromCodePoint(i),r.length+(s?1:0)]}}t.__esModule=!0,t.default=function(e){if(!s.test(e))return e;for(var t="",n=0;n1?t-1:0),s=1;s0;){var n=r.shift();if(!e[n])return;e=e[n]}return e},As.exports=Cs.default;var Ls={exports:{}};!function(e,t){t.__esModule=!0,t.default=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),s=1;s0;){var n=r.shift();e[n]||(e[n]={}),e=e[n]}},e.exports=t.default}(Ls,Ls.exports);var Ms={exports:{}};!function(e,t){t.__esModule=!0,t.default=function(e){var t="",r=e.indexOf("/*"),s=0;for(;r>=0;){t+=e.slice(s,r);var n=e.indexOf("*/",r+2);if(n<0)return t;s=n+2,r=e.indexOf("/*",s)}return t+=e.slice(s)},e.exports=t.default}(Ms,Ms.exports),Ts.__esModule=!0,Ts.unesc=Ts.stripComments=Ts.getProp=Ts.ensureObject=void 0;var Ds=Ns(Ps.exports);Ts.unesc=Ds.default;var js=Ns(Is.exports);Ts.getProp=js.default;var Rs=Ns(Ls.exports);Ts.ensureObject=Rs.default;var Fs=Ns(Ms.exports);function Ns(e){return e&&e.__esModule?e:{default:e}}Ts.stripComments=Fs.default,function(e,t){t.__esModule=!0,t.default=void 0;var r=Ts;function s(e,t){for(var r=0;re)&&(!(this.source.end.linet)&&!(this.source.end.line===e&&this.source.end.column=e.length?{done:!0}:{done:!1,value:e[s++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,s=new Array(t);r=e&&(this.indexes[r]=t-1);return this},p.removeAll=function(){for(var e,t=i(this.nodes);!(e=t()).done;){e.value.parent=void 0}return this.nodes=[],this},p.empty=function(){return this.removeAll()},p.insertAfter=function(e,t){t.parent=this;var r,s=this.index(e);for(var n in this.nodes.splice(s+1,0,t),t.parent=this,this.indexes)s<=(r=this.indexes[n])&&(this.indexes[n]=r+1);return this},p.insertBefore=function(e,t){t.parent=this;var r,s=this.index(e);for(var n in this.nodes.splice(s,0,t),t.parent=this,this.indexes)(r=this.indexes[n])<=s&&(this.indexes[n]=r+1);return this},p._findChildAtPosition=function(e,t){var r=void 0;return this.each((function(s){if(s.atPosition){var n=s.atPosition(e,t);if(n)return r=n,!1}else if(s.isAtPosition(e,t))return r=s,!1})),r},p.atPosition=function(e,t){return this.isAtPosition(e,t)?this._findChildAtPosition(e,t)||this:void 0},p._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))},p.each=function(e){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var t=this.lastEach;if(this.indexes[t]=0,this.length){for(var r,s;this.indexes[t]126){if(c>=55296&&c<=56319&&a0)||e.quoted||0!==r.before.length||e.spaces.value&&e.spaces.value.after||(r.before=" "),y(t,r)})))),t.push("]"),t.push(this.rawSpaceAfter),t.join("")},i=n,(c=[{key:"quoted",get:function(){var e=this.quoteMark;return"'"===e||'"'===e},set:function(e){h()}},{key:"quoteMark",get:function(){return this._quoteMark},set:function(e){this._constructed?this._quoteMark!==e&&(this._quoteMark=e,this._syncRawValue()):this._quoteMark=e}},{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(e){if(this._constructed){var t=d(e),r=t.deprecatedUsage,s=t.unescaped,n=t.quoteMark;if(r&&p(),s===this._value&&n===this._quoteMark)return;this._value=s,this._quoteMark=n,this._syncRawValue()}else this._value=e}},{key:"insensitive",get:function(){return this._insensitive},set:function(e){e||(this._insensitive=!1,!this.raws||"I"!==this.raws.insensitiveFlag&&"i"!==this.raws.insensitiveFlag||(this.raws.insensitiveFlag=void 0)),this._insensitive=e}},{key:"attribute",get:function(){return this._attribute},set:function(e){this._handleEscapes("attribute",e),this._attribute=e}}])&&a(i.prototype,c),v&&a(i,v),Object.defineProperty(i,"prototype",{writable:!1}),n}(n.default);e.default=v,v.NO_QUOTE=null,v.SINGLE_QUOTE="'",v.DOUBLE_QUOTE='"';var m=((t={"'":{quotes:"single",wrap:!0},'"':{quotes:"double",wrap:!0}}).null={isIdentifier:!0},t);function y(e,t){return""+t.before+e+t.after}}(en);var sn={exports:{}};!function(e,t){t.__esModule=!0,t.default=void 0;var r,s=(r=Ks.exports)&&r.__esModule?r:{default:r},n=Us;function o(e,t){return(o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var i=function(e){var t,r;function s(t){var r;return(r=e.call(this,t)||this).type=n.UNIVERSAL,r.value="*",r}return r=e,(t=s).prototype=Object.create(r.prototype),t.prototype.constructor=t,o(t,r),s}(s.default);t.default=i,e.exports=t.default}(sn,sn.exports);var nn={exports:{}};!function(e,t){t.__esModule=!0,t.default=void 0;var r,s=(r=_s.exports)&&r.__esModule?r:{default:r},n=Us;function o(e,t){return(o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var i=function(e){var t,r;function s(t){var r;return(r=e.call(this,t)||this).type=n.COMBINATOR,r}return r=e,(t=s).prototype=Object.create(r.prototype),t.prototype.constructor=t,o(t,r),s}(s.default);t.default=i,e.exports=t.default}(nn,nn.exports);var on={exports:{}};!function(e,t){t.__esModule=!0,t.default=void 0;var r,s=(r=_s.exports)&&r.__esModule?r:{default:r},n=Us;function o(e,t){return(o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var i=function(e){var t,r;function s(t){var r;return(r=e.call(this,t)||this).type=n.NESTING,r.value="&",r}return r=e,(t=s).prototype=Object.create(r.prototype),t.prototype.constructor=t,o(t,r),s}(s.default);t.default=i,e.exports=t.default}(on,on.exports);var an={exports:{}};!function(e,t){t.__esModule=!0,t.default=function(e){return e.sort((function(e,t){return e-t}))},e.exports=t.default}(an,an.exports);var un={},ln={__esModule:!0};ln.word=ln.tilde=ln.tab=ln.str=ln.space=ln.slash=ln.singleQuote=ln.semicolon=ln.plus=ln.pipe=ln.openSquare=ln.openParenthesis=ln.newline=ln.greaterThan=ln.feed=ln.equals=ln.doubleQuote=ln.dollar=ln.cr=ln.comment=ln.comma=ln.combinator=ln.colon=ln.closeSquare=ln.closeParenthesis=ln.caret=ln.bang=ln.backslash=ln.at=ln.asterisk=ln.ampersand=void 0;ln.ampersand=38;ln.asterisk=42;ln.at=64;ln.comma=44;ln.colon=58;ln.semicolon=59;ln.openParenthesis=40;ln.closeParenthesis=41;ln.openSquare=91;ln.closeSquare=93;ln.dollar=36;ln.tilde=126;ln.caret=94;ln.plus=43;ln.equals=61;ln.pipe=124;ln.greaterThan=62;ln.space=32;ln.singleQuote=39;ln.doubleQuote=34;ln.slash=47;ln.bang=33;ln.backslash=92;ln.cr=13;ln.feed=12;ln.newline=10;ln.tab=9;ln.str=39;ln.comment=-1;ln.word=-2;ln.combinator=-3,function(e){e.__esModule=!0,e.FIELDS=void 0,e.default=function(e){var t,r,n,o,i,a,u,l,p,h,f,d,v,m=[],y=e.css.valueOf(),g=y.length,w=-1,b=1,S=0,k=0;function x(t,r){if(!e.safe)throw e.error("Unclosed "+t,b,S-w,S);p=(y+=r).length-1}for(;S0?(h=b+u,f=p-l[u].length):(h=b,f=w),v=s.comment,b=h,o=h,n=p-f):t===s.slash?(v=t,o=b,n=S-w,k=(p=S)+1):(p=c(y,S),v=s.word,o=b,n=p-w),k=p+1}m.push([v,b,S-w,o,n,S,k]),f&&(w=f,f=null),S=k}return m};var t,r,s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var s={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(s,i,a):s[i]=e[i]}s.default=e,r&&r.set(e,s);return s}(ln);function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}for(var o=((t={})[s.tab]=!0,t[s.newline]=!0,t[s.cr]=!0,t[s.feed]=!0,t),i=((r={})[s.space]=!0,r[s.tab]=!0,r[s.newline]=!0,r[s.cr]=!0,r[s.feed]=!0,r[s.ampersand]=!0,r[s.asterisk]=!0,r[s.bang]=!0,r[s.comma]=!0,r[s.colon]=!0,r[s.semicolon]=!0,r[s.openParenthesis]=!0,r[s.closeParenthesis]=!0,r[s.openSquare]=!0,r[s.closeSquare]=!0,r[s.singleQuote]=!0,r[s.doubleQuote]=!0,r[s.plus]=!0,r[s.pipe]=!0,r[s.tilde]=!0,r[s.greaterThan]=!0,r[s.equals]=!0,r[s.dollar]=!0,r[s.caret]=!0,r[s.slash]=!0,r),a={},u="0123456789abcdefABCDEF",l=0;lthis.position&&(n=this.parseWhitespaceEquivalentTokens(t)),this.isNamedCombinator()?r=this.namedCombinator():this.currToken[y.FIELDS.TYPE]===g.combinator?(r=new d.default({value:this.content(),source:C(this.currToken),sourceIndex:this.currToken[y.FIELDS.START_POS]}),this.position++):E[this.currToken[y.FIELDS.TYPE]]||n||this.unexpected(),r){if(n){var o=this.convertWhitespaceNodesToSpace(n),i=o.space,a=o.rawSpace;r.spaces.before=i,r.rawSpaceBefore=a}}else{var u=this.convertWhitespaceNodesToSpace(n,!0),l=u.space,c=u.rawSpace;c||(c=l);var p={},h={spaces:{}};l.endsWith(" ")&&c.endsWith(" ")?(p.before=l.slice(0,l.length-1),h.spaces.before=c.slice(0,c.length-1)):l.startsWith(" ")&&c.startsWith(" ")?(p.after=l.slice(1),h.spaces.after=c.slice(1)):h.value=c,r=new d.default({value:" ",source:I(s,this.tokens[this.position-1]),sourceIndex:s[y.FIELDS.START_POS],spaces:p,raws:h})}return this.currToken&&this.currToken[y.FIELDS.TYPE]===g.space&&(r.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(r)}var f=this.parseWhitespaceEquivalentTokens(t);if(f.length>0){var v=this.current.last;if(v){var m=this.convertWhitespaceNodesToSpace(f),w=m.space,b=m.rawSpace;void 0!==b&&(v.rawSpaceAfter+=b),v.spaces.after+=w}else f.forEach((function(t){return e.newNode(t)}))}},S.comma=function(){if(this.position===this.tokens.length-1)return this.root.trailingComma=!0,void this.position++;this.current._inferEndPosition();var e=new o.default({source:{start:T(this.tokens[this.position+1])}});this.current.parent.append(e),this.current=e,this.position++},S.comment=function(){var e=this.currToken;this.newNode(new a.default({value:this.content(),source:C(e),sourceIndex:e[y.FIELDS.START_POS]})),this.position++},S.error=function(e,t){throw this.root.error(e,t)},S.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[y.FIELDS.START_POS]})},S.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[y.FIELDS.START_POS])},S.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[y.FIELDS.START_POS])},S.unexpected=function(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[y.FIELDS.START_POS])},S.unexpectedPipe=function(){return this.error("Unexpected '|'.",this.currToken[y.FIELDS.START_POS])},S.namespace=function(){var e=this.prevToken&&this.content(this.prevToken)||!0;return this.nextToken[y.FIELDS.TYPE]===g.word?(this.position++,this.word(e)):this.nextToken[y.FIELDS.TYPE]===g.asterisk?(this.position++,this.universal(e)):void this.unexpectedPipe()},S.nesting=function(){if(this.nextToken&&"|"===this.content(this.nextToken))return void this.position++;var e=this.currToken;this.newNode(new v.default({value:this.content(),source:C(e),sourceIndex:e[y.FIELDS.START_POS]})),this.position++},S.parentheses=function(){var e=this.current.last,t=1;if(this.position++,e&&e.type===w.PSEUDO){var r=new o.default({source:{start:T(this.tokens[this.position-1])}}),s=this.current;for(e.append(r),this.current=r;this.position1&&e.nextToken&&e.nextToken[y.FIELDS.TYPE]===g.openParenthesis&&e.error("Misplaced parenthesis.",{index:e.nextToken[y.FIELDS.START_POS]})})):this.expected(["pseudo-class","pseudo-element"],this.position-1)},S.space=function(){var e=this.content();0===this.position||this.prevToken[y.FIELDS.TYPE]===g.comma||this.prevToken[y.FIELDS.TYPE]===g.openParenthesis||this.current.nodes.every((function(e){return"comment"===e.type}))?(this.spaces=this.optionalSpace(e),this.position++):this.position===this.tokens.length-1||this.nextToken[y.FIELDS.TYPE]===g.comma||this.nextToken[y.FIELDS.TYPE]===g.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(e),this.position++):this.combinator()},S.string=function(){var e=this.currToken;this.newNode(new c.default({value:this.content(),source:C(e),sourceIndex:e[y.FIELDS.START_POS]})),this.position++},S.universal=function(e){var t=this.nextToken;if(t&&"|"===this.content(t))return this.position++,this.namespace();var r=this.currToken;this.newNode(new f.default({value:this.content(),source:C(r),sourceIndex:r[y.FIELDS.START_POS]}),e),this.position++},S.splitWord=function(e,t){for(var r=this,s=this.nextToken,n=this.content();s&&~[g.dollar,g.caret,g.equals,g.word].indexOf(s[y.FIELDS.TYPE]);){this.position++;var o=this.content();if(n+=o,o.lastIndexOf("\\")===o.length-1){var a=this.nextToken;a&&a[y.FIELDS.TYPE]===g.space&&(n+=this.requiredSpace(this.content(a)),this.position++)}s=this.nextToken}var c=M(n,".").filter((function(e){var t="\\"===n[e-1],r=/^\d+\.\d+%$/.test(n);return!t&&!r})),p=M(n,"#").filter((function(e){return"\\"!==n[e-1]})),h=M(n,"#{");h.length&&(p=p.filter((function(e){return!~h.indexOf(e)})));var f=(0,m.default)(function(){var e=Array.prototype.concat.apply([],arguments);return e.filter((function(t,r){return r===e.indexOf(t)}))}([0].concat(c,p)));f.forEach((function(s,o){var a,h=f[o+1]||n.length,d=n.slice(s,h);if(0===o&&t)return t.call(r,d,f.length);var v=r.currToken,m=v[y.FIELDS.START_POS]+f[o],g=A(v[1],v[2]+s,v[3],v[2]+(h-1));if(~c.indexOf(s)){var w={value:d.slice(1),source:g,sourceIndex:m};a=new i.default(L(w,"value"))}else if(~p.indexOf(s)){var b={value:d.slice(1),source:g,sourceIndex:m};a=new u.default(L(b,"value"))}else{var S={value:d,source:g,sourceIndex:m};L(S,"value"),a=new l.default(S)}r.newNode(a,e),e=null})),this.position++},S.word=function(e){var t=this.nextToken;return t&&"|"===this.content(t)?(this.position++,this.namespace()):this.splitWord(e)},S.loop=function(){for(;this.position0){const n=Gn(e.nodes);t+=n.a,r+=n.b,s+=n.c}break;case"::view-transition-group":case"::view-transition-image-pair":case"::view-transition-old":case"::view-transition-new":return e.nodes&&1===e.nodes.length&&"selector"===e.nodes[0].type&&function(e){if(!e)return!1;if(!e.nodes)return!1;const t=e.nodes.filter((e=>"comment"!==e.type));return 0===t.length||1===t.length&&"universal"===t[0].type}(e.nodes[0])?{a:0,b:0,c:0}:{a:0,b:0,c:1};default:s+=1}else if(zn.isPseudoClass(e))switch(e.value.toLowerCase()){case":-webkit-any":case":any":default:r+=1;break;case":-moz-any":case":has":case":is":case":matches":case":not":if(e.nodes&&e.nodes.length>0){const n=Gn(e.nodes);t+=n.a,r+=n.b,s+=n.c}break;case":where":break;case":nth-child":case":nth-last-child":if(r+=1,e.nodes&&e.nodes.length>0){const n=e.nodes[0].nodes.findIndex((e=>"tag"===e.type&&"of"===e.value.toLowerCase()));if(n>-1){const o=[zn.selector({nodes:e.nodes[0].nodes.slice(n+1),value:""})];e.nodes.length>1&&o.push(...e.nodes.slice(1));const i=Gn(o);t+=i.a,r+=i.b,s+=i.c}}break;case":local":case":global":e.nodes&&e.nodes.length>0&&e.nodes.forEach((e=>{const n=Yn(e);t+=n.a,r+=n.b,s+=n.c}));break;case":host":case":host-context":if(r+=1,e.nodes&&e.nodes.length>0){const n=Gn(e.nodes);t+=n.a,r+=n.b,s+=n.c}break;case":active-view-transition":case":active-view-transition-type":return{a:0,b:1,c:0}}else zn.isContainer(e)&&e.nodes.length>0&&e.nodes.forEach((e=>{const n=Yn(e);t+=n.a,r+=n.b,s+=n.c}));return{a:t,b:r,c:s}}function Gn(e){let t={a:0,b:0,c:0};return e.forEach((e=>{const r=Yn(e);r.a>t.a?t=r:r.at.b?t=r:r.bt.c&&(t=r))})),t}function Qn(e){var t;return{sourceIndex:null!=(t=e.sourceIndex)?t:0,source:e.source}}function Vn(e){const t=[];let r=[];e.each((e=>{if("combinator"===e.type)return t.push(r,[e]),void(r=[]);if(zn.isPseudoElement(e))return t.push(r),void(r=[e]);if("universal"===e.type&&r.find((e=>"universal"===e.type)))e.remove();else{if("tag"===e.type&&r.find((e=>"tag"===e.type))){e.remove();const t=zn.selector(a({value:""},Qn(e)));t.append(e);const s=zn.pseudo(a({value:":is"},Qn(e)));return s.append(t),void r.push(s)}r.push(e)}})),t.push(r);const s=[];for(let n=0;nJn(e)-Jn(t))),s.push(...e)}e.removeAll();for(let n=s.length-1;n>=0;n--)s[n].remove(),e.prepend(s[n])}function Jn(e){return zn.isPseudoElement(e)?Hn.pseudoElement:Hn[e.type]}const Hn={universal:0,tag:1,pseudoElement:2,nesting:3,id:4,class:5,attribute:6,pseudo:7,comment:8};function Kn(e,t=!1){if(t||!function(e){return 1===e.length&&!e[0].nodes.some((e=>"combinator"===e.type||zn.isPseudoElement(e)))}(e.nodes)){const t=zn.pseudo(a({value:":is"},Qn(e)));return e.nodes.forEach((e=>{t.append(e.clone())})),[t]}return e.nodes[0].nodes.map((e=>e.clone()))}const Zn=zn.pseudo({value:":is"});function Xn(e){if(!e||!e.nodes)return;const t=[];let r=[];for(let n=0;n"tag"===e.type))){const t=Zn.clone({}),r=e.nodes[n];r.replaceWith(t),t.append(zn.selector({nodes:[r],value:void 0}))}r.push(e.nodes[n])}else t.push(r),t.push([e.nodes[n]]),r=[];t.push(r);const s=[];for(let n=0;n"selector"===e.type&&"selector"===t.type&&e.nodes.length&&t.nodes.length?eo(e.nodes[0])-eo(t.nodes[0]):"selector"===e.type&&e.nodes.length?eo(e.nodes[0])-eo(t):"selector"===t.type&&t.nodes.length?eo(e)-eo(t.nodes[0]):eo(e)-eo(t)));for(let t=0;t=0;n--)s[n].remove(),e.prepend(s[n])}function eo(e){return zn.isPseudoElement(e)?to.pseudoElement:to[e.type]}const to={universal:0,tag:1,pseudoElement:2,id:3,class:4,attribute:5,pseudo:6,selector:7,string:8,root:9,comment:10};function ro(e){if(!e.nodes.length)return void e.remove();const t=e.nodes.filter((e=>"comment"===e.type));t.length===e.nodes.length&&e.replaceWith(...t)}function so(e){const t=[],r=[];e.each((e=>{if(no(e,r.length>0))t.push(e);else{if("comment"===e.type){let s=e.next();for(;s&&"comment"===s.type;)s=s.next();if(no(s,r.length>0))return void t.push(e)}r.push(e)}})),e.removeAll(),t.forEach((t=>{e.append(t)})),r.forEach((t=>{e.append(t)}))}function no(e,t){return!!e&&("decl"===e.type||"atrule"===e.type&&"mixin"===e.name.toLowerCase()&&!t)}function oo(e){const t=[];let r="",s=!1,n=0,o=!1,i=!1;for(const a of e)i?i=!1:"\\"===a?i=!0:o?a===o&&(o=!1):'"'===a||"'"===a?o=a:"("===a?n+=1:")"===a?n>0&&(n-=1):0===n&&","===a&&(s=!0),s?(""!==r&&t.push(r.trim()),r="",s=!1):r+=a;return t.push(r.trim()),t}function io(e,t){const r=t.index(e);if(r){const e=t.cloneBefore().removeAll().append(t.nodes.slice(0,r));e.raws.semicolon=!0,ro(e)}t.before(e),t.raws.semicolon=!0}var ao=["container","document","media","supports","layer","starting-style"];function uo(e,t){if(t<2)throw new Error("n must be greater than 1");if(e.length<2)throw new Error("s must be greater than 1");if(Math.pow(e.length,t)>1e4)throw new Error("Too many combinations when trying to resolve a nested selector with lists, reduce the complexity of your selectors");const r=[];for(let n=0;n=0;o--){let t=r[o];if(t>=e.length){if(t=0,r[o]=0,0===o)return s;r[o-1]+=1}n[o]=e[t]}s.push(n),r[r.length-1]++}}function lo(e,t,r){let s=[];s=function(e){const t=e.map((e=>zn().astSync(e))).map((e=>Yn(e))),r=t[0];for(let s=1;szn().astSync(e))):[zn().astSync(`:is(${e.join(",")})`)];const n=[];for(let o=0;o{"nesting"===e.type&&(t=!0)}));const r=e.nodes[0];let s=!1;r.each((e=>"combinator"===e.type&&(s=!0,!1))),t?s&&r.insertBefore(r.at(0),zn.nesting({})):(r.insertBefore(r.at(0),zn.combinator({value:" "})),r.insertBefore(r.at(0),zn.nesting({}))),i=e.toString()}let a=[],u=0;if(zn().astSync(i).walkNesting((()=>{u++})),u>1&&s.length>1)a=uo(s,u),e=a.length;else{e=s.length;for(let e=0;e{if("nesting"!==s.type)return;let n=a[t][e];e++,"root"===n.type&&1===n.nodes.length&&(n=n.nodes[0]);const o=zn().astSync(`:is(${n.toString()})`),i=co(n.nodes[0]),u=po(n.nodes[0]),l=co(s),c=po(s);if(i&&l)return void s.replaceWith(n.clone());if((i||u)&&(l||c)){const e=s.parent;return i&&"selector"===n.type?s.replaceWith(n.clone().nodes[0]):s.replaceWith(...n.clone().nodes),void(e&&e.nodes.length>1&&Xn(e))}if(i){const e=s.parent;return s.replaceWith(n.clone().nodes[0]),void(e&&Xn(e))}if(u){const e=s.parent;return s.replaceWith(...n.clone().nodes),void(e&&Xn(e))}if(ho(s)){const e=s.parent;return s.replaceWith(...n.clone().nodes),void(e&&Xn(e))}if(fo(s)){const e=s.parent;return s.replaceWith(...n.clone().nodes),void(e&&Xn(e))}const p=s.parent;r.noIsPseudoSelector?s.replaceWith(...n.clone().nodes):s.replaceWith(...o.clone({}).nodes),p&&Xn(p)})),n.push(s.toString())}}return n}function co(e){return"combinator"!==e.type&&!(e.parent&&e.parent.nodes.length>1)}function po(e,t=null){return!co(e)&&(!!e.parent&&(!e.parent.nodes.find((e=>"combinator"===e.type))&&!(e.parent.nodes.find((e=>"nesting"===e.type))&&t&&!po(t))))}function ho(e){if(!e.parent)return!1;if(0!==e.parent.nodes.indexOf(e))return!1;for(let t=1;t"!==e.parent.nodes[t].value)return!1;return!0}function fo(e){if(co(e))return!0;if(!e.parent)return!1;for(let t=0;t{const n=s.parent;mo(s)&&!r.silenceAtNestWarning&&e.warn(t,`\`@nest\` was removed from the CSS Nesting specification and will be removed from PostCSS Nesting in the next major version.\nChange \`@nest ${s.params} {}\` to \`${s.params} {}\` to migrate to the latest standard.`),yo(s)&&yo(n)&&function(e){return e.selectors.every((e=>-1===e.indexOf("|")))}(s)?function(e,t,r,s){let n=[];try{n=lo(t.selectors,e.selectors,s)}catch(o){return void e.warn(r,`Failed to parse selectors : "${t.selector}" / "${e.selector}" with message: "${o instanceof Error?o.message:o}"`)}n.length&&(so(t),io(e,t),e.selectors=n,"rule"===e.type&&"rule"===t.type&&e.selector===t.selector&&e.append(...t.nodes),ro(t))}(s,n,t,r):mo(s)&&yo(n)&&function(e){return oo(e.params).every((e=>e.split("&").length>=2&&-1===e.indexOf("|")))}(s)?function(e,t,r,s,n){let o=[];try{o=lo(t.selectors,oo(e.params),n)}catch(a){return void e.warn(r,`Failed to parse selectors : "${t.selector}" / "${e.params}" with message: "${a instanceof Error?a.message:a}"`)}if(!o.length)return;io(e,t);const i=t.clone().removeAll().append(e.nodes);i.raws.semicolon=!0,i.selectors=o,e.replaceWith(i),ro(t),s(i,r,n)}(s,n,t,go,r):vo(s)&&yo(n)&&function(e){return ao.includes(e.name)}(s)?function(e,t,r,s,n){if(so(t),io(e,t),e.nodes){const o=t.clone().removeAll().append(e.nodes);e.append(o),ro(t),s(o,r,n)}else ro(t)}(s,n,t,go,r):vo(s)&&vo(n)&&function(e,t){return ao.includes(e.name)&&e.name===t.name}(s,n)&&function(e,t){var r,s;so(t),io(e,t),e.params=(r=t.params,s=e.params,oo(r).map((e=>oo(s).map((t=>`${e} and ${t}`)).join(", "))).join(", ")),ro(t)}(s,n),"nodes"in s&&s.nodes.length&&go(s,t,r)}))}const wo=e=>{const t=Object.assign({noIsPseudoSelector:!1,silenceAtNestWarning:!1},e);return{postcssPlugin:"postcss-nesting",Rule(r,{result:s}){go(r,s,t),r.selector.includes("&")&&function(t,r){let s,n=t.parent;for(;n;){if("rule"===n.type)return;n=n.parent}try{s=zn().astSync(t.selector)}catch(e){return void t.warn(r,`Failed to parse selector : "${t.selector}" with message: "${e instanceof Error?e.message:e}"`)}s&&(s.walkNesting((e=>{const t=e.parent;e.replaceWith(zn.pseudo({value:":scope"})),t&&Xn(t)})),t.selector=s.toString())}(r,s)}}};wo.postcss=!0;const bo=zn();function So(e,t,r,s){let n;try{n=function(e,t){var r;const s=[];for(let o=0;o(e=!0,!1))),e?"combinator"===(null==(r=n.nodes[0])?void 0:r.type)&&n.prepend(zn.nesting(a({},Qn(n)))):(n.prepend(zn.combinator(a({value:" "},Qn(n)))),n.prepend(zn.nesting(a({},Qn(n)))))}{const e=new Set;n.walkNesting((r=>{var s,n;const o=r.parent;e.add(o),"pseudo"===(null==(s=o.parent)?void 0:s.type)&&":has"===(null==(n=o.parent.value)?void 0:n.toLowerCase())?r.replaceWith(...Kn(t,!0)):r.replaceWith(...Kn(t))}));for(const t of e)Vn(t)}n.walk((e=>{"combinator"===e.type&&""!==e.value.trim()?(e.rawSpaceAfter=" ",e.rawSpaceBefore=" "):(e.rawSpaceAfter="",e.rawSpaceBefore="")})),s.push(n)}const n=zn.root(a({value:""},Qn(e)));return s.forEach((e=>{n.append(e)})),n}(bo.astSync(t),bo.astSync(r))}catch(o){return e.warn(s,`Failed to parse selectors : "${r}" / "${t}" with message: "${o instanceof Error?o.message:o}"`),!1}return!!n&&n.toString()}function ko(e,t){e.each((e=>{const r=e.parent;yo(e)&&yo(r)&&function(e){return e.selectors.every((e=>-1===e.indexOf("|")))}(e)?function(e,t,r){const s=So(e,e.selector,t.selector,r);s&&(io(e,t),e.selector=s,"rule"===e.type&&"rule"===t.type&&e.selector===t.selector&&e.append(...t.nodes),ro(t))}(e,r,t):vo(e)&&yo(r)&&function(e){return ao.includes(e.name)}(e)&&function(e,t,r,s){if(io(e,t),e.nodes){const n=t.clone().removeAll().append(e.nodes);e.append(n),ro(t),s(n,r)}else ro(t)}(e,r,t,ko),"nodes"in e&&e.nodes.length&&ko(e,t)}))}const xo=()=>({postcssPlugin:"postcss-nesting",Rule(e,{result:t}){ko(e,t),e.selector.includes("&")&&function(t,r){let s,n=t.parent;for(;n;){if("rule"===n.type)return;n=n.parent}try{s=zn().astSync(t.selector)}catch(e){return void t.warn(r,`Failed to parse selector : "${t.selector}" with message: "${e instanceof Error?e.message:e}"`)}s&&(s.walkNesting((e=>{e.replaceWith(zn.pseudo({value:":scope"}))})),t.selector=s.toString())}(e,t)},AtRule:{nest(e){throw e.error(`\`@nest\` was removed from the CSS Nesting specification and will be removed from PostCSS Nesting in the next major version.\nChange \`@nest ${e.params} {}\` to \`${e.params} {}\` to migrate to the latest standard.`)}}});xo.postcss=!0;const Oo=e=>{const t=Object.assign({edition:"2021"},e);switch(t.edition){case"2021":return wo(e);case"2024-02":return xo();default:throw new Error(`Invalid edition: ${t.edition}`)}};Oo.postcss=!0;var Eo=d({functional:!0,props:["css"],render(){return v("style",{type:"text/css"},this.css)}});const _o={[F.HR]:(e,t,r)=>v($,{key:t,class:"margin",marginTop:"var(--space-10)",marginBottom:"var(--space-10)",color:"var(--grey-ultra-light) !important",height:"4px !important"}),[F.HEADING_1]:(e,t,r)=>v("h1",{key:t,class:"typography-weight-bold typography-style-as-typed typography-size-display4 typography-bold-as-typed-display4",id:z(e.content[0].value)},r(e.content,t,r)),[F.HEADING_2]:(e,t,r)=>v("h2",{key:t,class:"typography-weight-bold typography-style-as-typed typography-size-display4 typography-bold-as-typed-display4",id:z(e.content[0].value)},r(e.content,t,r)),[F.HEADING_3]:(e,t,r)=>v("h3",{key:t,class:"typography-weight-bold typography-style-as-typed typography-size-display5 typography-bold-as-typed-display5",id:z(e.content[0].value)},r(e.content,t,r)),[F.HEADING_4]:(e,t,r)=>v("h4",{key:t,class:"typography-weight-bold typography-style-as-typed typography-size-display6 typography-bold-as-typed-display6",id:z(e.content[0].value)},r(e.content,t,r)),[F.HEADING_5]:(e,t,r)=>v("h5",{key:t,class:"typography-weight-bold typography-style-as-typed typography-size-display7 typography-bold-as-typed-display7",id:z(e.content[0].value)},r(e.content,t,r)),[F.HEADING_6]:(e,t,r)=>v("h6",{key:t,class:"typography-weight-bold typography-style-as-typed typography-size-display8 typography-bold-as-typed-display8",id:z(e.content[0].value)},r(e.content,t,r)),[F.PARAGRAPH]:(e,t,r)=>v("p",{key:t,class:"typography-weight-regular typography-style-as-typed typography-size-display7 typography-regular-as-typed-display7"},r(e.content,t,r)),[N.HYPERLINK]:(e,t,r)=>v("a",{key:t,style:"color: var(--ctf-link-color);",href:e.data.uri,target:C.isStorefrontUrl(e.data.uri)?"_self":"_blank"},r(e.content,t,r)),[F.EMBEDDED_ENTRY]:function(e,t,r){var s,n,o,i,u,l,c;const p=null==(s=null==e?void 0:e.data)?void 0:s.target;if(!p)return v("div",{class:"error"},"This entry cannot be found. Please make sure it is published");const h=I(null==(i=null==(o=null==(n=p.sys)?void 0:n.contentType)?void 0:o.sys)?void 0:i.id);return h?v(h,a({key:t},p)):v("div",{},`unknown type: ${null==(c=null==(l=null==(u=p.sys)?void 0:u.contentType)?void 0:l.sys)?void 0:c.id}`)},[N.EMBEDDED_ENTRY]:function(e,t,r){var s,n,o,i,u,l,c;const p=null==(s=null==e?void 0:e.data)?void 0:s.target,h=I(null==(i=null==(o=null==(n=p.sys)?void 0:n.contentType)?void 0:o.sys)?void 0:i.id);return h?v(h,a({key:t,style:"display: inline-block;"},p)):v("div",{},`unknown type: ${null==(c=null==(l=null==(u=p.sys)?void 0:u.contentType)?void 0:l.sys)?void 0:c.id}`)},[F.EMBEDDED_ASSET]:function(e,t,r){return v(W,a({key:t},e.data.target))}};const To=["id"],Po={key:0,class:"asset"},Ao={key:0,class:"asset"},Co={__name:"ContentfulFrame",props:u(a({},L),{__typename:{type:String}}),emits:["updated"],setup(e,{emit:t}){const r=e,s=t,n=m(!1),{data:o,init:i}=M("frame",r,{emit:s},{resolveDepth:2}),a=D().isPreview,u=y((()=>{var e;return`f-${null==(e=r.sys)?void 0:e.id}`})),l=y((()=>{var e,t,s,n,i,l,c,p;if(!(null==(e=o.value)?void 0:e.css))return"";const h=`div#${u.value} { ${null==(t=o.value)?void 0:t.css} }`.trim();try{return bs([Oo()]).process(h).css}catch(Io){return a?console.error(Io,{extra:{id:null==(s=r.sys)?void 0:s.id,slug:null==(n=o.value)?void 0:n.slug,css:null==(i=o.value)?void 0:i.css,wrappedCss:h,isPreview:a}}):j.sentryCaptureError(Io,{extra:{id:null==(l=r.sys)?void 0:l.id,slug:null==(c=o.value)?void 0:c.slug,css:null==(p=o.value)?void 0:p.css,wrappedCss:h,isPreview:a}}),""}}));async function c(){var e,t,s,u,l;await i();try{await Promise.all((null!=(s=null==(t=null==(e=o.value)?void 0:e.content)?void 0:t.content)?s:[]).filter((e=>{var t;return null==(t=null==e?void 0:e.data)?void 0:t.target})).map((e=>{var t;return R(null==(t=e.data)?void 0:t.target,2,a)})))}catch(Io){j.sentryCaptureError(Io,{extra:{id:null==(u=r.sys)?void 0:u.id,slug:null==(l=o.value)?void 0:l.slug}})}n.value=!0}return g(c),w(c),(e,t)=>{var r,s,i,a;return b(),S(A,null,[l.value?(b(),k(x(Eo),{key:0,css:l.value},null,8,["css"])):O("",!0),(null==(r=x(o))?void 0:r.url)?(b(),k(x(B),{key:1,component:"a","field-id":"content","entry-id":null==(s=e.sys)?void 0:s.id,href:x(o).url,"aria-label":x(o).titleAriaLabel||" ",target:x(o).openLinkInNewTab?"_blank":"_self"},{default:E((()=>{var e,t,r;return[_("div",{id:u.value,class:"frame contentfulframe-scoped to-edge to-edge-mobile"},[(null==(e=x(o))?void 0:e.backgroundAsset)?(b(),S("div",Po,[(null==(t=x(o))?void 0:t.backgroundAsset)?(b(),k(q,T(P({key:0},x(o).backgroundAsset)),null,16)):O("",!0)])):O("",!0),n.value&&(null==(r=x(o))?void 0:r.content)?(b(),k(x(U),{key:1,document:x(o).content,"node-renderers":x(_o)},null,8,["document","node-renderers"])):O("",!0)],8,To)]})),_:1},8,["entry-id","href","aria-label","target"])):O("",!0),(null==(i=x(o))?void 0:i.url)?O("",!0):(b(),k(x(B),{key:2,id:u.value,component:"div","field-id":"content","entry-id":null==(a=e.sys)?void 0:a.id,class:"frame contentfulframe-scoped to-edge to-edge-mobile"},{default:E((()=>{var e,t,r;return[(null==(e=x(o))?void 0:e.backgroundAsset)?(b(),S("div",Ao,[(null==(t=x(o))?void 0:t.backgroundAsset)?(b(),k(q,T(P({key:0},x(o).backgroundAsset)),null,16)):O("",!0)])):O("",!0),n.value&&(null==(r=x(o))?void 0:r.content)?(b(),k(x(U),{key:1,document:x(o).content,"node-renderers":x(_o)},null,8,["document","node-renderers"])):O("",!0)]})),_:1},8,["id","entry-id"]))],64)}}};export{Co as default}; //# sourceMappingURL=ContentfulFrame.d543e08f.js.map