@storefront-ui/tw-plugin-peer-next
Advanced tools
Comparing version
@@ -1,3 +0,3 @@ | ||
(function(de,ve){typeof exports=="object"&&typeof module<"u"?module.exports=ve():typeof define=="function"&&define.amd?define(ve):(de=typeof globalThis<"u"?globalThis:de||self,de["storefront-ui-tw-plugin-peer-next"]=ve())})(this,function(){"use strict";var de=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ve(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var Ze={},je={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"default",{enumerable:!0,get:()=>g});function e(o,d){return{handler:o,config:d}}e.withOptions=function(o,d=()=>({})){const y=function(p){return{__options:p,handler:o(p),config:d(p)}};return y.__isOptionsFunction=!0,y.__pluginFunction=o,y.__configFunction=d,y};const g=e})(je),function(a){Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"default",{enumerable:!0,get:()=>o});const e=g(je);function g(d){return d&&d.__esModule?d:{default:d}}const o=e.default}(Ze);let Ee=Ze;var Tt=(Ee.__esModule?Ee:{default:Ee}).default;const yt=ve(Tt);function et(a,e=!0){return a.includes("url(")?a.split(/(url\(.*?\))/g).filter(Boolean).map(g=>/^url\(.*?\)$/.test(g)?g:et(g,!1)).join(""):(a=a.replace(/([^\\])_+/g,(g,o)=>o+" ".repeat(g.length-1)).replace(/^_/g," ").replace(/\\_/g,"_"),e&&(a=a.trim()),a=a.replace(/(calc|min|max|clamp)\(.+\)/g,g=>g.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 ")),a)}function Et(a,e){a.walkDecls(g=>{if(e.includes(g.prop)){g.remove();return}for(let o of e)g.value.includes(`/ var(${o})`)&&(g.value=g.value.replace(`/ var(${o})`,""))})}var me={exports:{}},Oe={exports:{}},we={exports:{}},Pe={exports:{}},ke={exports:{}},Ie={exports:{}},te={},be={exports:{}};(function(a,e){e.__esModule=!0,e.default=d;function g(y){for(var p=y.toLowerCase(),S="",t=!1,n=0;n<6&&p[n]!==void 0;n++){var i=p.charCodeAt(n),s=i>=97&&i<=102||i>=48&&i<=57;if(t=i===32,!s)break;S+=p[n]}if(S.length!==0){var c=parseInt(S,16),k=c>=55296&&c<=57343;return k||c===0||c>1114111?["�",S.length+(t?1:0)]:[String.fromCodePoint(c),S.length+(t?1:0)]}}var o=/\\/;function d(y){var p=o.test(y);if(!p)return y;for(var S="",t=0;t<y.length;t++){if(y[t]==="\\"){var n=g(y.slice(t+1,t+7));if(n!==void 0){S+=n[0],t+=n[1];continue}if(y[t+1]==="\\"){S+="\\",t++;continue}y.length===t+1&&(S+=y[t]);continue}S+=y[t]}return S}a.exports=e.default})(be,be.exports);var tt=be.exports,De={exports:{}};(function(a,e){e.__esModule=!0,e.default=g;function g(o){for(var d=arguments.length,y=new Array(d>1?d-1:0),p=1;p<d;p++)y[p-1]=arguments[p];for(;y.length>0;){var S=y.shift();if(!o[S])return;o=o[S]}return o}a.exports=e.default})(De,De.exports);var mt=De.exports,Le={exports:{}};(function(a,e){e.__esModule=!0,e.default=g;function g(o){for(var d=arguments.length,y=new Array(d>1?d-1:0),p=1;p<d;p++)y[p-1]=arguments[p];for(;y.length>0;){var S=y.shift();o[S]||(o[S]={}),o=o[S]}}a.exports=e.default})(Le,Le.exports);var Ot=Le.exports,xe={exports:{}};(function(a,e){e.__esModule=!0,e.default=g;function g(o){for(var d="",y=o.indexOf("/*"),p=0;y>=0;){d=d+o.slice(p,y);var S=o.indexOf("*/",y+2);if(S<0)return d;p=S+2,y=o.indexOf("/*",p)}return d=d+o.slice(p),d}a.exports=e.default})(xe,xe.exports);var wt=xe.exports;te.__esModule=!0,te.stripComments=te.ensureObject=te.getProp=te.unesc=void 0;var Pt=Se(tt);te.unesc=Pt.default;var kt=Se(mt);te.getProp=kt.default;var It=Se(Ot);te.ensureObject=It.default;var bt=Se(wt);te.stripComments=bt.default;function Se(a){return a&&a.__esModule?a:{default:a}}(function(a,e){e.__esModule=!0,e.default=void 0;var g=te;function o(S,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(S,i.key,i)}}function d(S,t,n){return t&&o(S.prototype,t),n&&o(S,n),S}var y=function S(t,n){if(typeof t!="object"||t===null)return t;var i=new t.constructor;for(var s in t)if(t.hasOwnProperty(s)){var c=t[s],k=typeof c;s==="parent"&&k==="object"?n&&(i[s]=n):c instanceof Array?i[s]=c.map(function(b){return S(b,i)}):i[s]=S(c,i)}return i},p=function(){function S(n){n===void 0&&(n={}),Object.assign(this,n),this.spaces=this.spaces||{},this.spaces.before=this.spaces.before||"",this.spaces.after=this.spaces.after||""}var t=S.prototype;return t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){if(this.parent){for(var i in arguments)this.parent.insertBefore(this,arguments[i]);this.remove()}return this},t.next=function(){return this.parent.at(this.parent.index(this)+1)},t.prev=function(){return this.parent.at(this.parent.index(this)-1)},t.clone=function(i){i===void 0&&(i={});var s=y(this);for(var c in i)s[c]=i[c];return s},t.appendToPropertyAndEscape=function(i,s,c){this.raws||(this.raws={});var k=this[i],b=this.raws[i];this[i]=k+s,b||c!==s?this.raws[i]=(b||k)+c:delete this.raws[i]},t.setPropertyAndEscape=function(i,s,c){this.raws||(this.raws={}),this[i]=s,this.raws[i]=c},t.setPropertyWithoutEscape=function(i,s){this[i]=s,this.raws&&delete this.raws[i]},t.isAtPosition=function(i,s){if(this.source&&this.source.start&&this.source.end)return!(this.source.start.line>i||this.source.end.line<i||this.source.start.line===i&&this.source.start.column>s||this.source.end.line===i&&this.source.end.column<s)},t.stringifyProperty=function(i){return this.raws&&this.raws[i]||this[i]},t.valueToString=function(){return String(this.stringifyProperty("value"))},t.toString=function(){return[this.rawSpaceBefore,this.valueToString(),this.rawSpaceAfter].join("")},d(S,[{key:"rawSpaceBefore",get:function(){var i=this.raws&&this.raws.spaces&&this.raws.spaces.before;return i===void 0&&(i=this.spaces&&this.spaces.before),i||""},set:function(i){(0,g.ensureObject)(this,"raws","spaces"),this.raws.spaces.before=i}},{key:"rawSpaceAfter",get:function(){var i=this.raws&&this.raws.spaces&&this.raws.spaces.after;return i===void 0&&(i=this.spaces.after),i||""},set:function(i){(0,g.ensureObject)(this,"raws","spaces"),this.raws.spaces.after=i}}]),S}();e.default=p,a.exports=e.default})(Ie,Ie.exports);var he=Ie.exports,q={};q.__esModule=!0,q.UNIVERSAL=q.ATTRIBUTE=q.CLASS=q.COMBINATOR=q.COMMENT=q.ID=q.NESTING=q.PSEUDO=q.ROOT=q.SELECTOR=q.STRING=q.TAG=void 0;var Dt="tag";q.TAG=Dt;var Lt="string";q.STRING=Lt;var xt="selector";q.SELECTOR=xt;var At="root";q.ROOT=At;var Mt="pseudo";q.PSEUDO=Mt;var Ft="nesting";q.NESTING=Ft;var Nt="id";q.ID=Nt;var qt="comment";q.COMMENT=qt;var Rt="combinator";q.COMBINATOR=Rt;var Ct="class";q.CLASS=Ct;var Ut="attribute";q.ATTRIBUTE=Ut;var Wt="universal";q.UNIVERSAL=Wt,function(a,e){e.__esModule=!0,e.default=void 0;var g=p(he),o=y(q);function d(){if(typeof WeakMap!="function")return null;var r=new WeakMap;return d=function(){return r},r}function y(r){if(r&&r.__esModule)return r;if(r===null||typeof r!="object"&&typeof r!="function")return{default:r};var u=d();if(u&&u.has(r))return u.get(r);var v={},T=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var _ in r)if(Object.prototype.hasOwnProperty.call(r,_)){var E=T?Object.getOwnPropertyDescriptor(r,_):null;E&&(E.get||E.set)?Object.defineProperty(v,_,E):v[_]=r[_]}return v.default=r,u&&u.set(r,v),v}function p(r){return r&&r.__esModule?r:{default:r}}function S(r,u){var v;if(typeof Symbol>"u"||r[Symbol.iterator]==null){if(Array.isArray(r)||(v=t(r))||u&&r&&typeof r.length=="number"){v&&(r=v);var T=0;return function(){return T>=r.length?{done:!0}:{done:!1,value:r[T++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. | ||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return v=r[Symbol.iterator](),v.next.bind(v)}function t(r,u){if(r){if(typeof r=="string")return n(r,u);var v=Object.prototype.toString.call(r).slice(8,-1);if(v==="Object"&&r.constructor&&(v=r.constructor.name),v==="Map"||v==="Set")return Array.from(r);if(v==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(v))return n(r,u)}}function n(r,u){(u==null||u>r.length)&&(u=r.length);for(var v=0,T=new Array(u);v<u;v++)T[v]=r[v];return T}function i(r,u){for(var v=0;v<u.length;v++){var T=u[v];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(r,T.key,T)}}function s(r,u,v){return u&&i(r.prototype,u),v&&i(r,v),r}function c(r,u){r.prototype=Object.create(u.prototype),r.prototype.constructor=r,k(r,u)}function k(r,u){return k=Object.setPrototypeOf||function(T,_){return T.__proto__=_,T},k(r,u)}var b=function(r){c(u,r);function u(T){var _;return _=r.call(this,T)||this,_.nodes||(_.nodes=[]),_}var v=u.prototype;return v.append=function(_){return _.parent=this,this.nodes.push(_),this},v.prepend=function(_){return _.parent=this,this.nodes.unshift(_),this},v.at=function(_){return this.nodes[_]},v.index=function(_){return typeof _=="number"?_:this.nodes.indexOf(_)},v.removeChild=function(_){_=this.index(_),this.at(_).parent=void 0,this.nodes.splice(_,1);var E;for(var h in this.indexes)E=this.indexes[h],E>=_&&(this.indexes[h]=E-1);return this},v.removeAll=function(){for(var _=S(this.nodes),E;!(E=_()).done;){var h=E.value;h.parent=void 0}return this.nodes=[],this},v.empty=function(){return this.removeAll()},v.insertAfter=function(_,E){E.parent=this;var h=this.index(_);this.nodes.splice(h+1,0,E),E.parent=this;var m;for(var M in this.indexes)m=this.indexes[M],h<=m&&(this.indexes[M]=m+1);return this},v.insertBefore=function(_,E){E.parent=this;var h=this.index(_);this.nodes.splice(h,0,E),E.parent=this;var m;for(var M in this.indexes)m=this.indexes[M],m<=h&&(this.indexes[M]=m+1);return this},v._findChildAtPosition=function(_,E){var h=void 0;return this.each(function(m){if(m.atPosition){var M=m.atPosition(_,E);if(M)return h=M,!1}else if(m.isAtPosition(_,E))return h=m,!1}),h},v.atPosition=function(_,E){if(this.isAtPosition(_,E))return this._findChildAtPosition(_,E)||this},v._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))},v.each=function(_){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var E=this.lastEach;if(this.indexes[E]=0,!!this.length){for(var h,m;this.indexes[E]<this.length&&(h=this.indexes[E],m=_(this.at(h),h),m!==!1);)this.indexes[E]+=1;if(delete this.indexes[E],m===!1)return!1}},v.walk=function(_){return this.each(function(E,h){var m=_(E,h);if(m!==!1&&E.length&&(m=E.walk(_)),m===!1)return!1})},v.walkAttributes=function(_){var E=this;return this.walk(function(h){if(h.type===o.ATTRIBUTE)return _.call(E,h)})},v.walkClasses=function(_){var E=this;return this.walk(function(h){if(h.type===o.CLASS)return _.call(E,h)})},v.walkCombinators=function(_){var E=this;return this.walk(function(h){if(h.type===o.COMBINATOR)return _.call(E,h)})},v.walkComments=function(_){var E=this;return this.walk(function(h){if(h.type===o.COMMENT)return _.call(E,h)})},v.walkIds=function(_){var E=this;return this.walk(function(h){if(h.type===o.ID)return _.call(E,h)})},v.walkNesting=function(_){var E=this;return this.walk(function(h){if(h.type===o.NESTING)return _.call(E,h)})},v.walkPseudos=function(_){var E=this;return this.walk(function(h){if(h.type===o.PSEUDO)return _.call(E,h)})},v.walkTags=function(_){var E=this;return this.walk(function(h){if(h.type===o.TAG)return _.call(E,h)})},v.walkUniversals=function(_){var E=this;return this.walk(function(h){if(h.type===o.UNIVERSAL)return _.call(E,h)})},v.split=function(_){var E=this,h=[];return this.reduce(function(m,M,P){var O=_.call(E,M);return h.push(M),O?(m.push(h),h=[]):P===E.length-1&&m.push(h),m},[])},v.map=function(_){return this.nodes.map(_)},v.reduce=function(_,E){return this.nodes.reduce(_,E)},v.every=function(_){return this.nodes.every(_)},v.some=function(_){return this.nodes.some(_)},v.filter=function(_){return this.nodes.filter(_)},v.sort=function(_){return this.nodes.sort(_)},v.toString=function(){return this.map(String).join("")},s(u,[{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}}]),u}(g.default);e.default=b,a.exports=e.default}(ke,ke.exports);var Ae=ke.exports;(function(a,e){e.__esModule=!0,e.default=void 0;var g=d(Ae),o=q;function d(i){return i&&i.__esModule?i:{default:i}}function y(i,s){for(var c=0;c<s.length;c++){var k=s[c];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(i,k.key,k)}}function p(i,s,c){return s&&y(i.prototype,s),c&&y(i,c),i}function S(i,s){i.prototype=Object.create(s.prototype),i.prototype.constructor=i,t(i,s)}function t(i,s){return t=Object.setPrototypeOf||function(k,b){return k.__proto__=b,k},t(i,s)}var n=function(i){S(s,i);function s(k){var b;return b=i.call(this,k)||this,b.type=o.ROOT,b}var c=s.prototype;return c.toString=function(){var b=this.reduce(function(r,u){return r.push(String(u)),r},[]).join(",");return this.trailingComma?b+",":b},c.error=function(b,r){return this._error?this._error(b,r):new Error(b)},p(s,[{key:"errorGenerator",set:function(b){this._error=b}}]),s}(g.default);e.default=n,a.exports=e.default})(Pe,Pe.exports);var rt=Pe.exports,Me={exports:{}};(function(a,e){e.__esModule=!0,e.default=void 0;var g=d(Ae),o=q;function d(t){return t&&t.__esModule?t:{default:t}}function y(t,n){t.prototype=Object.create(n.prototype),t.prototype.constructor=t,p(t,n)}function p(t,n){return p=Object.setPrototypeOf||function(s,c){return s.__proto__=c,s},p(t,n)}var S=function(t){y(n,t);function n(i){var s;return s=t.call(this,i)||this,s.type=o.SELECTOR,s}return n}(g.default);e.default=S,a.exports=e.default})(Me,Me.exports);var nt=Me.exports,Fe={exports:{}};/*! https://mths.be/cssesc v3.0.0 by @mathias */var Qt={},Bt=Qt.hasOwnProperty,Yt=function(e,g){if(!e)return g;var o={};for(var d in g)o[d]=Bt.call(e,d)?e[d]:g[d];return o},$t=/[ -,\.\/:-@\[-\^`\{-~]/,Gt=/[ -,\.\/:-@\[\]\^`\{-~]/,Vt=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,Ne=function a(e,g){g=Yt(g,a.options),g.quotes!="single"&&g.quotes!="double"&&(g.quotes="single");for(var o=g.quotes=="double"?'"':"'",d=g.isIdentifier,y=e.charAt(0),p="",S=0,t=e.length;S<t;){var n=e.charAt(S++),i=n.charCodeAt(),s=void 0;if(i<32||i>126){if(i>=55296&&i<=56319&&S<t){var c=e.charCodeAt(S++);(c&64512)==56320?i=((i&1023)<<10)+(c&1023)+65536:S--}s="\\"+i.toString(16).toUpperCase()+" "}else g.escapeEverything?$t.test(n)?s="\\"+n:s="\\"+i.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(n)?s="\\"+i.toString(16).toUpperCase()+" ":n=="\\"||!d&&(n=='"'&&o==n||n=="'"&&o==n)||d&&Gt.test(n)?s="\\"+n:s=n;p+=s}return d&&(/^-[-\d]/.test(p)?p="\\-"+p.slice(1):/\d/.test(y)&&(p="\\3"+y+" "+p.slice(1))),p=p.replace(Vt,function(k,b,r){return b&&b.length%2?k:(b||"")+r}),!d&&g.wrap?o+p+o:p};Ne.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1},Ne.version="3.0.0";var qe=Ne;(function(a,e){e.__esModule=!0,e.default=void 0;var g=p(qe),o=te,d=p(he),y=q;function p(c){return c&&c.__esModule?c:{default:c}}function S(c,k){for(var b=0;b<k.length;b++){var r=k[b];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(c,r.key,r)}}function t(c,k,b){return k&&S(c.prototype,k),b&&S(c,b),c}function n(c,k){c.prototype=Object.create(k.prototype),c.prototype.constructor=c,i(c,k)}function i(c,k){return i=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},i(c,k)}var s=function(c){n(k,c);function k(r){var u;return u=c.call(this,r)||this,u.type=y.CLASS,u._constructed=!0,u}var b=k.prototype;return b.valueToString=function(){return"."+c.prototype.valueToString.call(this)},t(k,[{key:"value",get:function(){return this._value},set:function(u){if(this._constructed){var v=(0,g.default)(u,{isIdentifier:!0});v!==u?((0,o.ensureObject)(this,"raws"),this.raws.value=v):this.raws&&delete this.raws.value}this._value=u}}]),k}(d.default);e.default=s,a.exports=e.default})(Fe,Fe.exports);var it=Fe.exports,Re={exports:{}};(function(a,e){e.__esModule=!0,e.default=void 0;var g=d(he),o=q;function d(t){return t&&t.__esModule?t:{default:t}}function y(t,n){t.prototype=Object.create(n.prototype),t.prototype.constructor=t,p(t,n)}function p(t,n){return p=Object.setPrototypeOf||function(s,c){return s.__proto__=c,s},p(t,n)}var S=function(t){y(n,t);function n(i){var s;return s=t.call(this,i)||this,s.type=o.COMMENT,s}return n}(g.default);e.default=S,a.exports=e.default})(Re,Re.exports);var st=Re.exports,Ce={exports:{}};(function(a,e){e.__esModule=!0,e.default=void 0;var g=d(he),o=q;function d(t){return t&&t.__esModule?t:{default:t}}function y(t,n){t.prototype=Object.create(n.prototype),t.prototype.constructor=t,p(t,n)}function p(t,n){return p=Object.setPrototypeOf||function(s,c){return s.__proto__=c,s},p(t,n)}var S=function(t){y(n,t);function n(s){var c;return c=t.call(this,s)||this,c.type=o.ID,c}var i=n.prototype;return i.valueToString=function(){return"#"+t.prototype.valueToString.call(this)},n}(g.default);e.default=S,a.exports=e.default})(Ce,Ce.exports);var at=Ce.exports,Ue={exports:{}},We={exports:{}};(function(a,e){e.__esModule=!0,e.default=void 0;var g=y(qe),o=te,d=y(he);function y(s){return s&&s.__esModule?s:{default:s}}function p(s,c){for(var k=0;k<c.length;k++){var b=c[k];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(s,b.key,b)}}function S(s,c,k){return c&&p(s.prototype,c),k&&p(s,k),s}function t(s,c){s.prototype=Object.create(c.prototype),s.prototype.constructor=s,n(s,c)}function n(s,c){return n=Object.setPrototypeOf||function(b,r){return b.__proto__=r,b},n(s,c)}var i=function(s){t(c,s);function c(){return s.apply(this,arguments)||this}var k=c.prototype;return k.qualifiedName=function(r){return this.namespace?this.namespaceString+"|"+r:r},k.valueToString=function(){return this.qualifiedName(s.prototype.valueToString.call(this))},S(c,[{key:"namespace",get:function(){return this._namespace},set:function(r){if(r===!0||r==="*"||r==="&"){this._namespace=r,this.raws&&delete this.raws.namespace;return}var u=(0,g.default)(r,{isIdentifier:!0});this._namespace=r,u!==r?((0,o.ensureObject)(this,"raws"),this.raws.namespace=u):this.raws&&delete this.raws.namespace}},{key:"ns",get:function(){return this._namespace},set:function(r){this.namespace=r}},{key:"namespaceString",get:function(){if(this.namespace){var r=this.stringifyProperty("namespace");return r===!0?"":r}else return""}}]),c}(d.default);e.default=i,a.exports=e.default})(We,We.exports);var Qe=We.exports;(function(a,e){e.__esModule=!0,e.default=void 0;var g=d(Qe),o=q;function d(t){return t&&t.__esModule?t:{default:t}}function y(t,n){t.prototype=Object.create(n.prototype),t.prototype.constructor=t,p(t,n)}function p(t,n){return p=Object.setPrototypeOf||function(s,c){return s.__proto__=c,s},p(t,n)}var S=function(t){y(n,t);function n(i){var s;return s=t.call(this,i)||this,s.type=o.TAG,s}return n}(g.default);e.default=S,a.exports=e.default})(Ue,Ue.exports);var ut=Ue.exports,Be={exports:{}};(function(a,e){e.__esModule=!0,e.default=void 0;var g=d(he),o=q;function d(t){return t&&t.__esModule?t:{default:t}}function y(t,n){t.prototype=Object.create(n.prototype),t.prototype.constructor=t,p(t,n)}function p(t,n){return p=Object.setPrototypeOf||function(s,c){return s.__proto__=c,s},p(t,n)}var S=function(t){y(n,t);function n(i){var s;return s=t.call(this,i)||this,s.type=o.STRING,s}return n}(g.default);e.default=S,a.exports=e.default})(Be,Be.exports);var ot=Be.exports,Ye={exports:{}};(function(a,e){e.__esModule=!0,e.default=void 0;var g=d(Ae),o=q;function d(t){return t&&t.__esModule?t:{default:t}}function y(t,n){t.prototype=Object.create(n.prototype),t.prototype.constructor=t,p(t,n)}function p(t,n){return p=Object.setPrototypeOf||function(s,c){return s.__proto__=c,s},p(t,n)}var S=function(t){y(n,t);function n(s){var c;return c=t.call(this,s)||this,c.type=o.PSEUDO,c}var i=n.prototype;return i.toString=function(){var c=this.length?"("+this.map(String).join(",")+")":"";return[this.rawSpaceBefore,this.stringifyProperty("value"),c,this.rawSpaceAfter].join("")},n}(g.default);e.default=S,a.exports=e.default})(Ye,Ye.exports);var ft=Ye.exports,$e={},zt=Ht;function Ht(a,e){if(Ge("noDeprecation"))return a;var g=!1;function o(){if(!g){if(Ge("throwDeprecation"))throw new Error(e);Ge("traceDeprecation")?console.trace(e):console.warn(e),g=!0}return a.apply(this,arguments)}return o}function Ge(a){try{if(!de.localStorage)return!1}catch{return!1}var e=de.localStorage[a];return e==null?!1:String(e).toLowerCase()==="true"}(function(a){a.__esModule=!0,a.unescapeValue=u,a.default=void 0;var e=p(qe),g=p(tt),o=p(Qe),d=q,y;function p(h){return h&&h.__esModule?h:{default:h}}function S(h,m){for(var M=0;M<m.length;M++){var P=m[M];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(h,P.key,P)}}function t(h,m,M){return m&&S(h.prototype,m),M&&S(h,M),h}function n(h,m){h.prototype=Object.create(m.prototype),h.prototype.constructor=h,i(h,m)}function i(h,m){return i=Object.setPrototypeOf||function(P,O){return P.__proto__=O,P},i(h,m)}var s=zt,c=/^('|")([^]*)\1$/,k=s(function(){},"Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."),b=s(function(){},"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."),r=s(function(){},"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");function u(h){var m=!1,M=null,P=h,O=P.match(c);return O&&(M=O[1],P=O[2]),P=(0,g.default)(P),P!==h&&(m=!0),{deprecatedUsage:m,unescaped:P,quoteMark:M}}function v(h){if(h.quoteMark!==void 0||h.value===void 0)return h;r();var m=u(h.value),M=m.quoteMark,P=m.unescaped;return h.raws||(h.raws={}),h.raws.value===void 0&&(h.raws.value=h.value),h.value=P,h.quoteMark=M,h}var T=function(h){n(m,h);function m(P){var O;return P===void 0&&(P={}),O=h.call(this,v(P))||this,O.type=d.ATTRIBUTE,O.raws=O.raws||{},Object.defineProperty(O.raws,"unquoted",{get:s(function(){return O.value},"attr.raws.unquoted is deprecated. Call attr.value instead."),set:s(function(){return O.value},"Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.")}),O._constructed=!0,O}var M=m.prototype;return M.getQuotedValue=function(O){O===void 0&&(O={});var I=this._determineQuoteMark(O),W=_[I],$=(0,e.default)(this._value,W);return $},M._determineQuoteMark=function(O){return O.smart?this.smartQuoteMark(O):this.preferredQuoteMark(O)},M.setValue=function(O,I){I===void 0&&(I={}),this._value=O,this._quoteMark=this._determineQuoteMark(I),this._syncRawValue()},M.smartQuoteMark=function(O){var I=this.value,W=I.replace(/[^']/g,"").length,$=I.replace(/[^"]/g,"").length;if(W+$===0){var j=(0,e.default)(I,{isIdentifier:!0});if(j===I)return m.NO_QUOTE;var K=this.preferredQuoteMark(O);if(K===m.NO_QUOTE){var X=this.quoteMark||O.quoteMark||m.DOUBLE_QUOTE,U=_[X],re=(0,e.default)(I,U);if(re.length<j.length)return X}return K}else return $===W?this.preferredQuoteMark(O):$<W?m.DOUBLE_QUOTE:m.SINGLE_QUOTE},M.preferredQuoteMark=function(O){var I=O.preferCurrentQuoteMark?this.quoteMark:O.quoteMark;return I===void 0&&(I=O.preferCurrentQuoteMark?O.quoteMark:this.quoteMark),I===void 0&&(I=m.DOUBLE_QUOTE),I},M._syncRawValue=function(){var O=(0,e.default)(this._value,_[this.quoteMark]);O===this._value?this.raws&&delete this.raws.value:this.raws.value=O},M._handleEscapes=function(O,I){if(this._constructed){var W=(0,e.default)(I,{isIdentifier:!0});W!==I?this.raws[O]=W:delete this.raws[O]}},M._spacesFor=function(O){var I={before:"",after:""},W=this.spaces[O]||{},$=this.raws.spaces&&this.raws.spaces[O]||{};return Object.assign(I,W,$)},M._stringFor=function(O,I,W){I===void 0&&(I=O),W===void 0&&(W=E);var $=this._spacesFor(I);return W(this.stringifyProperty(O),$)},M.offsetOf=function(O){var I=1,W=this._spacesFor("attribute");if(I+=W.before.length,O==="namespace"||O==="ns")return this.namespace?I:-1;if(O==="attributeNS"||(I+=this.namespaceString.length,this.namespace&&(I+=1),O==="attribute"))return I;I+=this.stringifyProperty("attribute").length,I+=W.after.length;var $=this._spacesFor("operator");I+=$.before.length;var j=this.stringifyProperty("operator");if(O==="operator")return j?I:-1;I+=j.length,I+=$.after.length;var K=this._spacesFor("value");I+=K.before.length;var X=this.stringifyProperty("value");if(O==="value")return X?I:-1;I+=X.length,I+=K.after.length;var U=this._spacesFor("insensitive");return I+=U.before.length,O==="insensitive"&&this.insensitive?I:-1},M.toString=function(){var O=this,I=[this.rawSpaceBefore,"["];return I.push(this._stringFor("qualifiedAttribute","attribute")),this.operator&&(this.value||this.value==="")&&(I.push(this._stringFor("operator")),I.push(this._stringFor("value")),I.push(this._stringFor("insensitiveFlag","insensitive",function(W,$){return W.length>0&&!O.quoted&&$.before.length===0&&!(O.spaces.value&&O.spaces.value.after)&&($.before=" "),E(W,$)}))),I.push("]"),I.push(this.rawSpaceAfter),I.join("")},t(m,[{key:"quoted",get:function(){var O=this.quoteMark;return O==="'"||O==='"'},set:function(O){b()}},{key:"quoteMark",get:function(){return this._quoteMark},set:function(O){if(!this._constructed){this._quoteMark=O;return}this._quoteMark!==O&&(this._quoteMark=O,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(O){if(this._constructed){var I=u(O),W=I.deprecatedUsage,$=I.unescaped,j=I.quoteMark;if(W&&k(),$===this._value&&j===this._quoteMark)return;this._value=$,this._quoteMark=j,this._syncRawValue()}else this._value=O}},{key:"insensitive",get:function(){return this._insensitive},set:function(O){O||(this._insensitive=!1,this.raws&&(this.raws.insensitiveFlag==="I"||this.raws.insensitiveFlag==="i")&&(this.raws.insensitiveFlag=void 0)),this._insensitive=O}},{key:"attribute",get:function(){return this._attribute},set:function(O){this._handleEscapes("attribute",O),this._attribute=O}}]),m}(o.default);a.default=T,T.NO_QUOTE=null,T.SINGLE_QUOTE="'",T.DOUBLE_QUOTE='"';var _=(y={"'":{quotes:"single",wrap:!0},'"':{quotes:"double",wrap:!0}},y[null]={isIdentifier:!0},y);function E(h,m){return""+m.before+h+m.after}})($e);var Ve={exports:{}};(function(a,e){e.__esModule=!0,e.default=void 0;var g=d(Qe),o=q;function d(t){return t&&t.__esModule?t:{default:t}}function y(t,n){t.prototype=Object.create(n.prototype),t.prototype.constructor=t,p(t,n)}function p(t,n){return p=Object.setPrototypeOf||function(s,c){return s.__proto__=c,s},p(t,n)}var S=function(t){y(n,t);function n(i){var s;return s=t.call(this,i)||this,s.type=o.UNIVERSAL,s.value="*",s}return n}(g.default);e.default=S,a.exports=e.default})(Ve,Ve.exports);var ct=Ve.exports,ze={exports:{}};(function(a,e){e.__esModule=!0,e.default=void 0;var g=d(he),o=q;function d(t){return t&&t.__esModule?t:{default:t}}function y(t,n){t.prototype=Object.create(n.prototype),t.prototype.constructor=t,p(t,n)}function p(t,n){return p=Object.setPrototypeOf||function(s,c){return s.__proto__=c,s},p(t,n)}var S=function(t){y(n,t);function n(i){var s;return s=t.call(this,i)||this,s.type=o.COMBINATOR,s}return n}(g.default);e.default=S,a.exports=e.default})(ze,ze.exports);var lt=ze.exports,He={exports:{}};(function(a,e){e.__esModule=!0,e.default=void 0;var g=d(he),o=q;function d(t){return t&&t.__esModule?t:{default:t}}function y(t,n){t.prototype=Object.create(n.prototype),t.prototype.constructor=t,p(t,n)}function p(t,n){return p=Object.setPrototypeOf||function(s,c){return s.__proto__=c,s},p(t,n)}var S=function(t){y(n,t);function n(i){var s;return s=t.call(this,i)||this,s.type=o.NESTING,s.value="&",s}return n}(g.default);e.default=S,a.exports=e.default})(He,He.exports);var ht=He.exports,Ke={exports:{}};(function(a,e){e.__esModule=!0,e.default=g;function g(o){return o.sort(function(d,y){return d-y})}a.exports=e.default})(Ke,Ke.exports);var Kt=Ke.exports,pt={},D={};D.__esModule=!0,D.combinator=D.word=D.comment=D.str=D.tab=D.newline=D.feed=D.cr=D.backslash=D.bang=D.slash=D.doubleQuote=D.singleQuote=D.space=D.greaterThan=D.pipe=D.equals=D.plus=D.caret=D.tilde=D.dollar=D.closeSquare=D.openSquare=D.closeParenthesis=D.openParenthesis=D.semicolon=D.colon=D.comma=D.at=D.asterisk=D.ampersand=void 0;var Jt=38;D.ampersand=Jt;var Xt=42;D.asterisk=Xt;var Zt=64;D.at=Zt;var jt=44;D.comma=jt;var er=58;D.colon=er;var tr=59;D.semicolon=tr;var rr=40;D.openParenthesis=rr;var nr=41;D.closeParenthesis=nr;var ir=91;D.openSquare=ir;var sr=93;D.closeSquare=sr;var ar=36;D.dollar=ar;var ur=126;D.tilde=ur;var or=94;D.caret=or;var fr=43;D.plus=fr;var cr=61;D.equals=cr;var lr=124;D.pipe=lr;var hr=62;D.greaterThan=hr;var pr=32;D.space=pr;var dt=39;D.singleQuote=dt;var dr=34;D.doubleQuote=dr;var vr=47;D.slash=vr;var _r=33;D.bang=_r;var gr=92;D.backslash=gr;var Sr=13;D.cr=Sr;var Tr=12;D.feed=Tr;var yr=10;D.newline=yr;var Er=9;D.tab=Er;var mr=dt;D.str=mr;var Or=-1;D.comment=Or;var wr=-2;D.word=wr;var Pr=-3;D.combinator=Pr,function(a){a.__esModule=!0,a.default=b,a.FIELDS=void 0;var e=y(D),g,o;function d(){if(typeof WeakMap!="function")return null;var r=new WeakMap;return d=function(){return r},r}function y(r){if(r&&r.__esModule)return r;if(r===null||typeof r!="object"&&typeof r!="function")return{default:r};var u=d();if(u&&u.has(r))return u.get(r);var v={},T=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var _ in r)if(Object.prototype.hasOwnProperty.call(r,_)){var E=T?Object.getOwnPropertyDescriptor(r,_):null;E&&(E.get||E.set)?Object.defineProperty(v,_,E):v[_]=r[_]}return v.default=r,u&&u.set(r,v),v}for(var p=(g={},g[e.tab]=!0,g[e.newline]=!0,g[e.cr]=!0,g[e.feed]=!0,g),S=(o={},o[e.space]=!0,o[e.tab]=!0,o[e.newline]=!0,o[e.cr]=!0,o[e.feed]=!0,o[e.ampersand]=!0,o[e.asterisk]=!0,o[e.bang]=!0,o[e.comma]=!0,o[e.colon]=!0,o[e.semicolon]=!0,o[e.openParenthesis]=!0,o[e.closeParenthesis]=!0,o[e.openSquare]=!0,o[e.closeSquare]=!0,o[e.singleQuote]=!0,o[e.doubleQuote]=!0,o[e.plus]=!0,o[e.pipe]=!0,o[e.tilde]=!0,o[e.greaterThan]=!0,o[e.equals]=!0,o[e.dollar]=!0,o[e.caret]=!0,o[e.slash]=!0,o),t={},n="0123456789abcdefABCDEF",i=0;i<n.length;i++)t[n.charCodeAt(i)]=!0;function s(r,u){var v=u,T;do{if(T=r.charCodeAt(v),S[T])return v-1;T===e.backslash?v=c(r,v)+1:v++}while(v<r.length);return v-1}function c(r,u){var v=u,T=r.charCodeAt(v+1);if(!p[T])if(t[T]){var _=0;do v++,_++,T=r.charCodeAt(v+1);while(t[T]&&_<6);_<6&&T===e.space&&v++}else v++;return v}var k={TYPE:0,START_LINE:1,START_COL:2,END_LINE:3,END_COL:4,START_POS:5,END_POS:6};a.FIELDS=k;function b(r){var u=[],v=r.css.valueOf(),T=v,_=T.length,E=-1,h=1,m=0,M=0,P,O,I,W,$,j,K,X,U,re,oe,_e,fe;function L(A,x){if(r.safe)v+=x,U=v.length-1;else throw r.error("Unclosed "+A,h,m-E,m)}for(;m<_;){switch(P=v.charCodeAt(m),P===e.newline&&(E=m,h+=1),P){case e.space:case e.tab:case e.newline:case e.cr:case e.feed:U=m;do U+=1,P=v.charCodeAt(U),P===e.newline&&(E=U,h+=1);while(P===e.space||P===e.newline||P===e.tab||P===e.cr||P===e.feed);fe=e.space,W=h,I=U-E-1,M=U;break;case e.plus:case e.greaterThan:case e.tilde:case e.pipe:U=m;do U+=1,P=v.charCodeAt(U);while(P===e.plus||P===e.greaterThan||P===e.tilde||P===e.pipe);fe=e.combinator,W=h,I=m-E,M=U;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:U=m,fe=P,W=h,I=m-E,M=U+1;break;case e.singleQuote:case e.doubleQuote:_e=P===e.singleQuote?"'":'"',U=m;do for($=!1,U=v.indexOf(_e,U+1),U===-1&&L("quote",_e),j=U;v.charCodeAt(j-1)===e.backslash;)j-=1,$=!$;while($);fe=e.str,W=h,I=m-E,M=U+1;break;default:P===e.slash&&v.charCodeAt(m+1)===e.asterisk?(U=v.indexOf("*/",m+2)+1,U===0&&L("comment","*/"),O=v.slice(m,U+1),X=O.split(` | ||
`),K=X.length-1,K>0?(re=h+K,oe=U-X[K].length):(re=h,oe=E),fe=e.comment,h=re,W=re,I=U-oe):P===e.slash?(U=m,fe=P,W=h,I=m-E,M=U+1):(U=s(v,m),fe=e.word,W=h,I=U-E),M=U+1;break}u.push([fe,h,m-E,W,I,m,M]),oe&&(E=oe,oe=null),m=M}return u}}(pt),function(a,e){e.__esModule=!0,e.default=void 0;var g=M(rt),o=M(nt),d=M(it),y=M(st),p=M(at),S=M(ut),t=M(ot),n=M(ft),i=m($e),s=M(ct),c=M(lt),k=M(ht),b=M(Kt),r=m(pt),u=m(D),v=m(q),T=te,_,E;function h(){if(typeof WeakMap!="function")return null;var L=new WeakMap;return h=function(){return L},L}function m(L){if(L&&L.__esModule)return L;if(L===null||typeof L!="object"&&typeof L!="function")return{default:L};var A=h();if(A&&A.has(L))return A.get(L);var x={},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var w in L)if(Object.prototype.hasOwnProperty.call(L,w)){var F=f?Object.getOwnPropertyDescriptor(L,w):null;F&&(F.get||F.set)?Object.defineProperty(x,w,F):x[w]=L[w]}return x.default=L,A&&A.set(L,x),x}function M(L){return L&&L.__esModule?L:{default:L}}function P(L,A){for(var x=0;x<A.length;x++){var f=A[x];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(L,f.key,f)}}function O(L,A,x){return A&&P(L.prototype,A),x&&P(L,x),L}var I=(_={},_[u.space]=!0,_[u.cr]=!0,_[u.feed]=!0,_[u.newline]=!0,_[u.tab]=!0,_),W=Object.assign({},I,(E={},E[u.comment]=!0,E));function $(L){return{line:L[r.FIELDS.START_LINE],column:L[r.FIELDS.START_COL]}}function j(L){return{line:L[r.FIELDS.END_LINE],column:L[r.FIELDS.END_COL]}}function K(L,A,x,f){return{start:{line:L,column:A},end:{line:x,column:f}}}function X(L){return K(L[r.FIELDS.START_LINE],L[r.FIELDS.START_COL],L[r.FIELDS.END_LINE],L[r.FIELDS.END_COL])}function U(L,A){if(L)return K(L[r.FIELDS.START_LINE],L[r.FIELDS.START_COL],A[r.FIELDS.END_LINE],A[r.FIELDS.END_COL])}function re(L,A){var x=L[A];if(typeof x=="string")return x.indexOf("\\")!==-1&&((0,T.ensureObject)(L,"raws"),L[A]=(0,T.unesc)(x),L.raws[A]===void 0&&(L.raws[A]=x)),L}function oe(L,A){for(var x=-1,f=[];(x=L.indexOf(A,x+1))!==-1;)f.push(x);return f}function _e(){var L=Array.prototype.concat.apply([],arguments);return L.filter(function(A,x){return x===L.indexOf(A)})}var fe=function(){function L(x,f){f===void 0&&(f={}),this.rule=x,this.options=Object.assign({lossy:!1,safe:!1},f),this.position=0,this.css=typeof this.rule=="string"?this.rule:this.rule.selector,this.tokens=(0,r.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var w=U(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new g.default({source:w}),this.root.errorGenerator=this._errorGenerator();var F=new o.default({source:{start:{line:1,column:1}}});this.root.append(F),this.current=F,this.loop()}var A=L.prototype;return A._errorGenerator=function(){var f=this;return function(w,F){return typeof f.rule=="string"?new Error(w):f.rule.error(w,F)}},A.attribute=function(){var f=[],w=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[r.FIELDS.TYPE]!==u.closeSquare;)f.push(this.currToken),this.position++;if(this.currToken[r.FIELDS.TYPE]!==u.closeSquare)return this.expected("closing square bracket",this.currToken[r.FIELDS.START_POS]);var F=f.length,l={source:K(w[1],w[2],this.currToken[3],this.currToken[4]),sourceIndex:w[r.FIELDS.START_POS]};if(F===1&&!~[u.word].indexOf(f[0][r.FIELDS.TYPE]))return this.expected("attribute",f[0][r.FIELDS.START_POS]);for(var C=0,Y="",Q="",N=null,V=!1;C<F;){var J=f[C],R=this.content(J),H=f[C+1];switch(J[r.FIELDS.TYPE]){case u.space:if(V=!0,this.options.lossy)break;if(N){(0,T.ensureObject)(l,"spaces",N);var le=l.spaces[N].after||"";l.spaces[N].after=le+R;var ce=(0,T.getProp)(l,"raws","spaces",N,"after")||null;ce&&(l.raws.spaces[N].after=ce+R)}else Y=Y+R,Q=Q+R;break;case u.asterisk:if(H[r.FIELDS.TYPE]===u.equals)l.operator=R,N="operator";else if((!l.namespace||N==="namespace"&&!V)&&H){Y&&((0,T.ensureObject)(l,"spaces","attribute"),l.spaces.attribute.before=Y,Y=""),Q&&((0,T.ensureObject)(l,"raws","spaces","attribute"),l.raws.spaces.attribute.before=Y,Q=""),l.namespace=(l.namespace||"")+R;var ne=(0,T.getProp)(l,"raws","namespace")||null;ne&&(l.raws.namespace+=R),N="namespace"}V=!1;break;case u.dollar:if(N==="value"){var Z=(0,T.getProp)(l,"raws","value");l.value+="$",Z&&(l.raws.value=Z+"$");break}case u.caret:H[r.FIELDS.TYPE]===u.equals&&(l.operator=R,N="operator"),V=!1;break;case u.combinator:if(R==="~"&&H[r.FIELDS.TYPE]===u.equals&&(l.operator=R,N="operator"),R!=="|"){V=!1;break}H[r.FIELDS.TYPE]===u.equals?(l.operator=R,N="operator"):!l.namespace&&!l.attribute&&(l.namespace=!0),V=!1;break;case u.word:if(H&&this.content(H)==="|"&&f[C+2]&&f[C+2][r.FIELDS.TYPE]!==u.equals&&!l.operator&&!l.namespace)l.namespace=R,N="namespace";else if(!l.attribute||N==="attribute"&&!V){Y&&((0,T.ensureObject)(l,"spaces","attribute"),l.spaces.attribute.before=Y,Y=""),Q&&((0,T.ensureObject)(l,"raws","spaces","attribute"),l.raws.spaces.attribute.before=Q,Q=""),l.attribute=(l.attribute||"")+R;var ae=(0,T.getProp)(l,"raws","attribute")||null;ae&&(l.raws.attribute+=R),N="attribute"}else if(!l.value&&l.value!==""||N==="value"&&!(V||l.quoteMark)){var ue=(0,T.unesc)(R),pe=(0,T.getProp)(l,"raws","value")||"",Te=l.value||"";l.value=Te+ue,l.quoteMark=null,(ue!==R||pe)&&((0,T.ensureObject)(l,"raws"),l.raws.value=(pe||Te)+R),N="value"}else{var ye=R==="i"||R==="I";(l.value||l.value==="")&&(l.quoteMark||V)?(l.insensitive=ye,(!ye||R==="I")&&((0,T.ensureObject)(l,"raws"),l.raws.insensitiveFlag=R),N="insensitive",Y&&((0,T.ensureObject)(l,"spaces","insensitive"),l.spaces.insensitive.before=Y,Y=""),Q&&((0,T.ensureObject)(l,"raws","spaces","insensitive"),l.raws.spaces.insensitive.before=Q,Q="")):(l.value||l.value==="")&&(N="value",l.value+=R,l.raws.value&&(l.raws.value+=R))}V=!1;break;case u.str:if(!l.attribute||!l.operator)return this.error("Expected an attribute followed by an operator preceding the string.",{index:J[r.FIELDS.START_POS]});var ge=(0,i.unescapeValue)(R),gn=ge.unescaped,Sn=ge.quoteMark;l.value=gn,l.quoteMark=Sn,N="value",(0,T.ensureObject)(l,"raws"),l.raws.value=R,V=!1;break;case u.equals:if(!l.attribute)return this.expected("attribute",J[r.FIELDS.START_POS],R);if(l.value)return this.error('Unexpected "=" found; an operator was already defined.',{index:J[r.FIELDS.START_POS]});l.operator=l.operator?l.operator+R:R,N="operator",V=!1;break;case u.comment:if(N)if(V||H&&H[r.FIELDS.TYPE]===u.space||N==="insensitive"){var Tn=(0,T.getProp)(l,"spaces",N,"after")||"",yn=(0,T.getProp)(l,"raws","spaces",N,"after")||Tn;(0,T.ensureObject)(l,"raws","spaces",N),l.raws.spaces[N].after=yn+R}else{var En=l[N]||"",mn=(0,T.getProp)(l,"raws",N)||En;(0,T.ensureObject)(l,"raws"),l.raws[N]=mn+R}else Q=Q+R;break;default:return this.error('Unexpected "'+R+'" found.',{index:J[r.FIELDS.START_POS]})}C++}re(l,"attribute"),re(l,"namespace"),this.newNode(new i.default(l)),this.position++},A.parseWhitespaceEquivalentTokens=function(f){f<0&&(f=this.tokens.length);var w=this.position,F=[],l="",C=void 0;do if(I[this.currToken[r.FIELDS.TYPE]])this.options.lossy||(l+=this.content());else if(this.currToken[r.FIELDS.TYPE]===u.comment){var Y={};l&&(Y.before=l,l=""),C=new y.default({value:this.content(),source:X(this.currToken),sourceIndex:this.currToken[r.FIELDS.START_POS],spaces:Y}),F.push(C)}while(++this.position<f);if(l){if(C)C.spaces.after=l;else if(!this.options.lossy){var Q=this.tokens[w],N=this.tokens[this.position-1];F.push(new t.default({value:"",source:K(Q[r.FIELDS.START_LINE],Q[r.FIELDS.START_COL],N[r.FIELDS.END_LINE],N[r.FIELDS.END_COL]),sourceIndex:Q[r.FIELDS.START_POS],spaces:{before:l,after:""}}))}}return F},A.convertWhitespaceNodesToSpace=function(f,w){var F=this;w===void 0&&(w=!1);var l="",C="";f.forEach(function(Q){var N=F.lossySpace(Q.spaces.before,w),V=F.lossySpace(Q.rawSpaceBefore,w);l+=N+F.lossySpace(Q.spaces.after,w&&N.length===0),C+=N+Q.value+F.lossySpace(Q.rawSpaceAfter,w&&V.length===0)}),C===l&&(C=void 0);var Y={space:l,rawSpace:C};return Y},A.isNamedCombinator=function(f){return f===void 0&&(f=this.position),this.tokens[f+0]&&this.tokens[f+0][r.FIELDS.TYPE]===u.slash&&this.tokens[f+1]&&this.tokens[f+1][r.FIELDS.TYPE]===u.word&&this.tokens[f+2]&&this.tokens[f+2][r.FIELDS.TYPE]===u.slash},A.namedCombinator=function(){if(this.isNamedCombinator()){var f=this.content(this.tokens[this.position+1]),w=(0,T.unesc)(f).toLowerCase(),F={};w!==f&&(F.value="/"+f+"/");var l=new c.default({value:"/"+w+"/",source:K(this.currToken[r.FIELDS.START_LINE],this.currToken[r.FIELDS.START_COL],this.tokens[this.position+2][r.FIELDS.END_LINE],this.tokens[this.position+2][r.FIELDS.END_COL]),sourceIndex:this.currToken[r.FIELDS.START_POS],raws:F});return this.position=this.position+3,l}else this.unexpected()},A.combinator=function(){var f=this;if(this.content()==="|")return this.namespace();var w=this.locateNextMeaningfulToken(this.position);if(w<0||this.tokens[w][r.FIELDS.TYPE]===u.comma){var F=this.parseWhitespaceEquivalentTokens(w);if(F.length>0){var l=this.current.last;if(l){var C=this.convertWhitespaceNodesToSpace(F),Y=C.space,Q=C.rawSpace;Q!==void 0&&(l.rawSpaceAfter+=Q),l.spaces.after+=Y}else F.forEach(function(pe){return f.newNode(pe)})}return}var N=this.currToken,V=void 0;w>this.position&&(V=this.parseWhitespaceEquivalentTokens(w));var J;if(this.isNamedCombinator()?J=this.namedCombinator():this.currToken[r.FIELDS.TYPE]===u.combinator?(J=new c.default({value:this.content(),source:X(this.currToken),sourceIndex:this.currToken[r.FIELDS.START_POS]}),this.position++):I[this.currToken[r.FIELDS.TYPE]]||V||this.unexpected(),J){if(V){var R=this.convertWhitespaceNodesToSpace(V),H=R.space,le=R.rawSpace;J.spaces.before=H,J.rawSpaceBefore=le}}else{var ce=this.convertWhitespaceNodesToSpace(V,!0),ne=ce.space,Z=ce.rawSpace;Z||(Z=ne);var ae={},ue={spaces:{}};ne.endsWith(" ")&&Z.endsWith(" ")?(ae.before=ne.slice(0,ne.length-1),ue.spaces.before=Z.slice(0,Z.length-1)):ne.startsWith(" ")&&Z.startsWith(" ")?(ae.after=ne.slice(1),ue.spaces.after=Z.slice(1)):ue.value=Z,J=new c.default({value:" ",source:U(N,this.tokens[this.position-1]),sourceIndex:N[r.FIELDS.START_POS],spaces:ae,raws:ue})}return this.currToken&&this.currToken[r.FIELDS.TYPE]===u.space&&(J.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(J)},A.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}this.current._inferEndPosition();var f=new o.default({source:{start:$(this.tokens[this.position+1])}});this.current.parent.append(f),this.current=f,this.position++},A.comment=function(){var f=this.currToken;this.newNode(new y.default({value:this.content(),source:X(f),sourceIndex:f[r.FIELDS.START_POS]})),this.position++},A.error=function(f,w){throw this.root.error(f,w)},A.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[r.FIELDS.START_POS]})},A.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[r.FIELDS.START_POS])},A.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[r.FIELDS.START_POS])},A.unexpected=function(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[r.FIELDS.START_POS])},A.namespace=function(){var f=this.prevToken&&this.content(this.prevToken)||!0;if(this.nextToken[r.FIELDS.TYPE]===u.word)return this.position++,this.word(f);if(this.nextToken[r.FIELDS.TYPE]===u.asterisk)return this.position++,this.universal(f)},A.nesting=function(){if(this.nextToken){var f=this.content(this.nextToken);if(f==="|"){this.position++;return}}var w=this.currToken;this.newNode(new k.default({value:this.content(),source:X(w),sourceIndex:w[r.FIELDS.START_POS]})),this.position++},A.parentheses=function(){var f=this.current.last,w=1;if(this.position++,f&&f.type===v.PSEUDO){var F=new o.default({source:{start:$(this.tokens[this.position-1])}}),l=this.current;for(f.append(F),this.current=F;this.position<this.tokens.length&&w;)this.currToken[r.FIELDS.TYPE]===u.openParenthesis&&w++,this.currToken[r.FIELDS.TYPE]===u.closeParenthesis&&w--,w?this.parse():(this.current.source.end=j(this.currToken),this.current.parent.source.end=j(this.currToken),this.position++);this.current=l}else{for(var C=this.currToken,Y="(",Q;this.position<this.tokens.length&&w;)this.currToken[r.FIELDS.TYPE]===u.openParenthesis&&w++,this.currToken[r.FIELDS.TYPE]===u.closeParenthesis&&w--,Q=this.currToken,Y+=this.parseParenthesisToken(this.currToken),this.position++;f?f.appendToPropertyAndEscape("value",Y,Y):this.newNode(new t.default({value:Y,source:K(C[r.FIELDS.START_LINE],C[r.FIELDS.START_COL],Q[r.FIELDS.END_LINE],Q[r.FIELDS.END_COL]),sourceIndex:C[r.FIELDS.START_POS]}))}if(w)return this.expected("closing parenthesis",this.currToken[r.FIELDS.START_POS])},A.pseudo=function(){for(var f=this,w="",F=this.currToken;this.currToken&&this.currToken[r.FIELDS.TYPE]===u.colon;)w+=this.content(),this.position++;if(!this.currToken)return this.expected(["pseudo-class","pseudo-element"],this.position-1);if(this.currToken[r.FIELDS.TYPE]===u.word)this.splitWord(!1,function(l,C){w+=l,f.newNode(new n.default({value:w,source:U(F,f.currToken),sourceIndex:F[r.FIELDS.START_POS]})),C>1&&f.nextToken&&f.nextToken[r.FIELDS.TYPE]===u.openParenthesis&&f.error("Misplaced parenthesis.",{index:f.nextToken[r.FIELDS.START_POS]})});else return this.expected(["pseudo-class","pseudo-element"],this.currToken[r.FIELDS.START_POS])},A.space=function(){var f=this.content();this.position===0||this.prevToken[r.FIELDS.TYPE]===u.comma||this.prevToken[r.FIELDS.TYPE]===u.openParenthesis||this.current.nodes.every(function(w){return w.type==="comment"})?(this.spaces=this.optionalSpace(f),this.position++):this.position===this.tokens.length-1||this.nextToken[r.FIELDS.TYPE]===u.comma||this.nextToken[r.FIELDS.TYPE]===u.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(f),this.position++):this.combinator()},A.string=function(){var f=this.currToken;this.newNode(new t.default({value:this.content(),source:X(f),sourceIndex:f[r.FIELDS.START_POS]})),this.position++},A.universal=function(f){var w=this.nextToken;if(w&&this.content(w)==="|")return this.position++,this.namespace();var F=this.currToken;this.newNode(new s.default({value:this.content(),source:X(F),sourceIndex:F[r.FIELDS.START_POS]}),f),this.position++},A.splitWord=function(f,w){for(var F=this,l=this.nextToken,C=this.content();l&&~[u.dollar,u.caret,u.equals,u.word].indexOf(l[r.FIELDS.TYPE]);){this.position++;var Y=this.content();if(C+=Y,Y.lastIndexOf("\\")===Y.length-1){var Q=this.nextToken;Q&&Q[r.FIELDS.TYPE]===u.space&&(C+=this.requiredSpace(this.content(Q)),this.position++)}l=this.nextToken}var N=oe(C,".").filter(function(H){var le=C[H-1]==="\\",ce=/^\d+\.\d+%$/.test(C);return!le&&!ce}),V=oe(C,"#").filter(function(H){return C[H-1]!=="\\"}),J=oe(C,"#{");J.length&&(V=V.filter(function(H){return!~J.indexOf(H)}));var R=(0,b.default)(_e([0].concat(N,V)));R.forEach(function(H,le){var ce=R[le+1]||C.length,ne=C.slice(H,ce);if(le===0&&w)return w.call(F,ne,R.length);var Z,ae=F.currToken,ue=ae[r.FIELDS.START_POS]+R[le],pe=K(ae[1],ae[2]+H,ae[3],ae[2]+(ce-1));if(~N.indexOf(H)){var Te={value:ne.slice(1),source:pe,sourceIndex:ue};Z=new d.default(re(Te,"value"))}else if(~V.indexOf(H)){var ye={value:ne.slice(1),source:pe,sourceIndex:ue};Z=new p.default(re(ye,"value"))}else{var ge={value:ne,source:pe,sourceIndex:ue};re(ge,"value"),Z=new S.default(ge)}F.newNode(Z,f),f=null}),this.position++},A.word=function(f){var w=this.nextToken;return w&&this.content(w)==="|"?(this.position++,this.namespace()):this.splitWord(f)},A.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.current._inferEndPosition(),this.root},A.parse=function(f){switch(this.currToken[r.FIELDS.TYPE]){case u.space:this.space();break;case u.comment:this.comment();break;case u.openParenthesis:this.parentheses();break;case u.closeParenthesis:f&&this.missingParenthesis();break;case u.openSquare:this.attribute();break;case u.dollar:case u.caret:case u.equals:case u.word:this.word();break;case u.colon:this.pseudo();break;case u.comma:this.comma();break;case u.asterisk:this.universal();break;case u.ampersand:this.nesting();break;case u.slash:case u.combinator:this.combinator();break;case u.str:this.string();break;case u.closeSquare:this.missingSquareBracket();case u.semicolon:this.missingBackslash();default:this.unexpected()}},A.expected=function(f,w,F){if(Array.isArray(f)){var l=f.pop();f=f.join(", ")+" or "+l}var C=/^[aeiou]/.test(f[0])?"an":"a";return F?this.error("Expected "+C+" "+f+', found "'+F+'" instead.',{index:w}):this.error("Expected "+C+" "+f+".",{index:w})},A.requiredSpace=function(f){return this.options.lossy?" ":f},A.optionalSpace=function(f){return this.options.lossy?"":f},A.lossySpace=function(f,w){return this.options.lossy?w?" ":"":f},A.parseParenthesisToken=function(f){var w=this.content(f);return f[r.FIELDS.TYPE]===u.space?this.requiredSpace(w):w},A.newNode=function(f,w){return w&&(/^ +$/.test(w)&&(this.options.lossy||(this.spaces=(this.spaces||"")+w),w=!0),f.namespace=w,re(f,"namespace")),this.spaces&&(f.spaces.before=this.spaces,this.spaces=""),this.current.append(f)},A.content=function(f){return f===void 0&&(f=this.currToken),this.css.slice(f[r.FIELDS.START_POS],f[r.FIELDS.END_POS])},A.locateNextMeaningfulToken=function(f){f===void 0&&(f=this.position+1);for(var w=f;w<this.tokens.length;)if(W[this.tokens[w][r.FIELDS.TYPE]]){w++;continue}else return w;return-1},O(L,[{key:"currToken",get:function(){return this.tokens[this.position]}},{key:"nextToken",get:function(){return this.tokens[this.position+1]}},{key:"prevToken",get:function(){return this.tokens[this.position-1]}}]),L}();e.default=fe,a.exports=e.default}(we,we.exports);var kr=we.exports;(function(a,e){e.__esModule=!0,e.default=void 0;var g=o(kr);function o(y){return y&&y.__esModule?y:{default:y}}var d=function(){function y(S,t){this.func=S||function(){},this.funcRes=null,this.options=t}var p=y.prototype;return p._shouldUpdateSelector=function(t,n){n===void 0&&(n={});var i=Object.assign({},this.options,n);return i.updateSelector===!1?!1:typeof t!="string"},p._isLossy=function(t){t===void 0&&(t={});var n=Object.assign({},this.options,t);return n.lossless===!1},p._root=function(t,n){n===void 0&&(n={});var i=new g.default(t,this._parseOptions(n));return i.root},p._parseOptions=function(t){return{lossy:this._isLossy(t)}},p._run=function(t,n){var i=this;return n===void 0&&(n={}),new Promise(function(s,c){try{var k=i._root(t,n);Promise.resolve(i.func(k)).then(function(b){var r=void 0;return i._shouldUpdateSelector(t,n)&&(r=k.toString(),t.selector=r),{transform:b,root:k,string:r}}).then(s,c)}catch(b){c(b);return}})},p._runSync=function(t,n){n===void 0&&(n={});var i=this._root(t,n),s=this.func(i);if(s&&typeof s.then=="function")throw new Error("Selector processor returned a promise to a synchronous call.");var c=void 0;return n.updateSelector&&typeof t!="string"&&(c=i.toString(),t.selector=c),{transform:s,root:i,string:c}},p.ast=function(t,n){return this._run(t,n).then(function(i){return i.root})},p.astSync=function(t,n){return this._runSync(t,n).root},p.transform=function(t,n){return this._run(t,n).then(function(i){return i.transform})},p.transformSync=function(t,n){return this._runSync(t,n).transform},p.process=function(t,n){return this._run(t,n).then(function(i){return i.string||i.root.toString()})},p.processSync=function(t,n){var i=this._runSync(t,n);return i.string||i.root.toString()},y}();e.default=d,a.exports=e.default})(Oe,Oe.exports);var Ir=Oe.exports,vt={},G={};G.__esModule=!0,G.universal=G.tag=G.string=G.selector=G.root=G.pseudo=G.nesting=G.id=G.comment=G.combinator=G.className=G.attribute=void 0;var br=ie($e),Dr=ie(it),Lr=ie(lt),xr=ie(st),Ar=ie(at),Mr=ie(ht),Fr=ie(ft),Nr=ie(rt),qr=ie(nt),Rr=ie(ot),Cr=ie(ut),Ur=ie(ct);function ie(a){return a&&a.__esModule?a:{default:a}}var Wr=function(e){return new br.default(e)};G.attribute=Wr;var Qr=function(e){return new Dr.default(e)};G.className=Qr;var Br=function(e){return new Lr.default(e)};G.combinator=Br;var Yr=function(e){return new xr.default(e)};G.comment=Yr;var $r=function(e){return new Ar.default(e)};G.id=$r;var Gr=function(e){return new Mr.default(e)};G.nesting=Gr;var Vr=function(e){return new Fr.default(e)};G.pseudo=Vr;var zr=function(e){return new Nr.default(e)};G.root=zr;var Hr=function(e){return new qr.default(e)};G.selector=Hr;var Kr=function(e){return new Rr.default(e)};G.string=Kr;var Jr=function(e){return new Cr.default(e)};G.tag=Jr;var Xr=function(e){return new Ur.default(e)};G.universal=Xr;var B={};B.__esModule=!0,B.isNode=Je,B.isPseudoElement=St,B.isPseudoClass=fn,B.isContainer=cn,B.isNamespace=ln,B.isUniversal=B.isTag=B.isString=B.isSelector=B.isRoot=B.isPseudo=B.isNesting=B.isIdentifier=B.isComment=B.isCombinator=B.isClassName=B.isAttribute=void 0;var z=q,ee,Zr=(ee={},ee[z.ATTRIBUTE]=!0,ee[z.CLASS]=!0,ee[z.COMBINATOR]=!0,ee[z.COMMENT]=!0,ee[z.ID]=!0,ee[z.NESTING]=!0,ee[z.PSEUDO]=!0,ee[z.ROOT]=!0,ee[z.SELECTOR]=!0,ee[z.STRING]=!0,ee[z.TAG]=!0,ee[z.UNIVERSAL]=!0,ee);function Je(a){return typeof a=="object"&&Zr[a.type]}function se(a,e){return Je(e)&&e.type===a}var _t=se.bind(null,z.ATTRIBUTE);B.isAttribute=_t;var jr=se.bind(null,z.CLASS);B.isClassName=jr;var en=se.bind(null,z.COMBINATOR);B.isCombinator=en;var tn=se.bind(null,z.COMMENT);B.isComment=tn;var rn=se.bind(null,z.ID);B.isIdentifier=rn;var nn=se.bind(null,z.NESTING);B.isNesting=nn;var Xe=se.bind(null,z.PSEUDO);B.isPseudo=Xe;var sn=se.bind(null,z.ROOT);B.isRoot=sn;var an=se.bind(null,z.SELECTOR);B.isSelector=an;var un=se.bind(null,z.STRING);B.isString=un;var gt=se.bind(null,z.TAG);B.isTag=gt;var on=se.bind(null,z.UNIVERSAL);B.isUniversal=on;function St(a){return Xe(a)&&a.value&&(a.value.startsWith("::")||a.value.toLowerCase()===":before"||a.value.toLowerCase()===":after"||a.value.toLowerCase()===":first-letter"||a.value.toLowerCase()===":first-line")}function fn(a){return Xe(a)&&!St(a)}function cn(a){return!!(Je(a)&&a.walk)}function ln(a){return _t(a)||gt(a)}(function(a){a.__esModule=!0;var e=q;Object.keys(e).forEach(function(d){d==="default"||d==="__esModule"||d in a&&a[d]===e[d]||(a[d]=e[d])});var g=G;Object.keys(g).forEach(function(d){d==="default"||d==="__esModule"||d in a&&a[d]===g[d]||(a[d]=g[d])});var o=B;Object.keys(o).forEach(function(d){d==="default"||d==="__esModule"||d in a&&a[d]===o[d]||(a[d]=o[d])})})(vt),function(a,e){e.__esModule=!0,e.default=void 0;var g=p(Ir),o=y(vt);function d(){if(typeof WeakMap!="function")return null;var n=new WeakMap;return d=function(){return n},n}function y(n){if(n&&n.__esModule)return n;if(n===null||typeof n!="object"&&typeof n!="function")return{default:n};var i=d();if(i&&i.has(n))return i.get(n);var s={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in n)if(Object.prototype.hasOwnProperty.call(n,k)){var b=c?Object.getOwnPropertyDescriptor(n,k):null;b&&(b.get||b.set)?Object.defineProperty(s,k,b):s[k]=n[k]}return s.default=n,i&&i.set(n,s),s}function p(n){return n&&n.__esModule?n:{default:n}}var S=function(i){return new g.default(i)};Object.assign(S,o),delete S.__esModule;var t=S;e.default=t,a.exports=e.default}(me,me.exports);var hn=me.exports;const pn=ve(hn);function dn(a){return a.replace(/\\,/g,"\\2c ")}function vn(a){var g;let e=pn.className();return e.value=a,dn(((g=e==null?void 0:e.raws)==null?void 0:g.value)??e.value)}let _n=[["first","&:first-child"],["last","&:last-child"],["only","&:only-child"],["odd","&:nth-child(odd)"],["even","&:nth-child(even)"],"first-of-type","last-of-type","only-of-type",["visited",({container:a})=>(Et(a,["--tw-text-opacity","--tw-border-opacity","--tw-bg-opacity"]),"&:visited")],"target",["open","&[open]"],"default","checked","indeterminate","placeholder-shown","autofill","optional","required","valid","invalid","in-range","out-of-range","read-only","empty","focus-within",["hover","&:hover"],"focus","focus-visible","active","enabled","disabled"].map(a=>Array.isArray(a)?a:[a,`&:${a}`]);return yt(function({matchVariant:a}){a("peer-next",(e="",g)=>{let o=et(typeof e=="function"?e(g):e);o.includes("&")||(o="&"+o);const d=(i,{modifier:s})=>s?[`:merge(.peer\\/${vn(s)})`," + &"]:[":merge(.peer)"," + &"];let[y,p]=d("",g),S=null,t=null,n=0;for(let i=0;i<o.length;++i){let s=o[i];s==="&"?S=i:s==="'"||s==='"'?n+=1:S!==null&&s===" "&&!n&&(t=i)}return S!==null&&t===null&&(t=o.length),o.slice(0,S)+y+o.slice(S+1,t)+p+o.slice(t)},{values:Object.fromEntries(_n)})})}); | ||
(function(de,ve){typeof exports=="object"&&typeof module<"u"?module.exports=ve():typeof define=="function"&&define.amd?define(ve):(de=typeof globalThis<"u"?globalThis:de||self,de["storefront-ui-tw-plugin-peer-next"]=ve())})(this,function(){"use strict";var de=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ve(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var Ze={},je={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"default",{enumerable:!0,get:function(){return g}});function e(u,d){return{handler:u,config:d}}e.withOptions=function(u,d=()=>({})){const y=function(p){return{__options:p,handler:u(p),config:d(p)}};return y.__isOptionsFunction=!0,y.__pluginFunction=u,y.__configFunction=d,y};const g=e})(je),function(a){Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"default",{enumerable:!0,get:function(){return u}});const e=g(je);function g(d){return d&&d.__esModule?d:{default:d}}const u=e.default}(Ze);let Ee=Ze;var yt=(Ee.__esModule?Ee:{default:Ee}).default;const Et=ve(yt),et="--tw-placeholder",mt=new RegExp(et,"g");function tt(a,e=!0){return a.startsWith("--")?`var(${a})`:a.includes("url(")?a.split(/(url\(.*?\))/g).filter(Boolean).map(g=>/^url\(.*?\)$/.test(g)?g:tt(g,!1)).join(""):(a=a.replace(/([^\\])_+/g,(g,u)=>u+" ".repeat(g.length-1)).replace(/^_/g," ").replace(/\\_/g,"_"),e&&(a=a.trim()),a=a.replace(/(calc|min|max|clamp)\(.+\)/g,g=>{let u=[];return g.replace(/var\((--.+?)[,)]/g,(d,y)=>(u.push(y),d.replace(y,et))).replace(/(-?\d*\.?\d(?!\b-\d.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 ").replace(mt,()=>u.shift())}),a)}function wt(a,e){a.walkDecls(g=>{if(e.includes(g.prop)){g.remove();return}for(let u of e)g.value.includes(`/ var(${u})`)&&(g.value=g.value.replace(`/ var(${u})`,""))})}var me={exports:{}},we={exports:{}},Oe={exports:{}},Pe={exports:{}},ke={exports:{}},Ie={exports:{}},te={},be={exports:{}};(function(a,e){e.__esModule=!0,e.default=d;function g(y){for(var p=y.toLowerCase(),S="",t=!1,n=0;n<6&&p[n]!==void 0;n++){var i=p.charCodeAt(n),s=i>=97&&i<=102||i>=48&&i<=57;if(t=i===32,!s)break;S+=p[n]}if(S.length!==0){var c=parseInt(S,16),k=c>=55296&&c<=57343;return k||c===0||c>1114111?["�",S.length+(t?1:0)]:[String.fromCodePoint(c),S.length+(t?1:0)]}}var u=/\\/;function d(y){var p=u.test(y);if(!p)return y;for(var S="",t=0;t<y.length;t++){if(y[t]==="\\"){var n=g(y.slice(t+1,t+7));if(n!==void 0){S+=n[0],t+=n[1];continue}if(y[t+1]==="\\"){S+="\\",t++;continue}y.length===t+1&&(S+=y[t]);continue}S+=y[t]}return S}a.exports=e.default})(be,be.exports);var rt=be.exports,De={exports:{}};(function(a,e){e.__esModule=!0,e.default=g;function g(u){for(var d=arguments.length,y=new Array(d>1?d-1:0),p=1;p<d;p++)y[p-1]=arguments[p];for(;y.length>0;){var S=y.shift();if(!u[S])return;u=u[S]}return u}a.exports=e.default})(De,De.exports);var Ot=De.exports,Le={exports:{}};(function(a,e){e.__esModule=!0,e.default=g;function g(u){for(var d=arguments.length,y=new Array(d>1?d-1:0),p=1;p<d;p++)y[p-1]=arguments[p];for(;y.length>0;){var S=y.shift();u[S]||(u[S]={}),u=u[S]}}a.exports=e.default})(Le,Le.exports);var Pt=Le.exports,xe={exports:{}};(function(a,e){e.__esModule=!0,e.default=g;function g(u){for(var d="",y=u.indexOf("/*"),p=0;y>=0;){d=d+u.slice(p,y);var S=u.indexOf("*/",y+2);if(S<0)return d;p=S+2,y=u.indexOf("/*",p)}return d=d+u.slice(p),d}a.exports=e.default})(xe,xe.exports);var kt=xe.exports;te.__esModule=!0,te.stripComments=te.ensureObject=te.getProp=te.unesc=void 0;var It=Se(rt);te.unesc=It.default;var bt=Se(Ot);te.getProp=bt.default;var Dt=Se(Pt);te.ensureObject=Dt.default;var Lt=Se(kt);te.stripComments=Lt.default;function Se(a){return a&&a.__esModule?a:{default:a}}(function(a,e){e.__esModule=!0,e.default=void 0;var g=te;function u(S,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(S,i.key,i)}}function d(S,t,n){return t&&u(S.prototype,t),n&&u(S,n),S}var y=function S(t,n){if(typeof t!="object"||t===null)return t;var i=new t.constructor;for(var s in t)if(t.hasOwnProperty(s)){var c=t[s],k=typeof c;s==="parent"&&k==="object"?n&&(i[s]=n):c instanceof Array?i[s]=c.map(function(b){return S(b,i)}):i[s]=S(c,i)}return i},p=function(){function S(n){n===void 0&&(n={}),Object.assign(this,n),this.spaces=this.spaces||{},this.spaces.before=this.spaces.before||"",this.spaces.after=this.spaces.after||""}var t=S.prototype;return t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){if(this.parent){for(var i in arguments)this.parent.insertBefore(this,arguments[i]);this.remove()}return this},t.next=function(){return this.parent.at(this.parent.index(this)+1)},t.prev=function(){return this.parent.at(this.parent.index(this)-1)},t.clone=function(i){i===void 0&&(i={});var s=y(this);for(var c in i)s[c]=i[c];return s},t.appendToPropertyAndEscape=function(i,s,c){this.raws||(this.raws={});var k=this[i],b=this.raws[i];this[i]=k+s,b||c!==s?this.raws[i]=(b||k)+c:delete this.raws[i]},t.setPropertyAndEscape=function(i,s,c){this.raws||(this.raws={}),this[i]=s,this.raws[i]=c},t.setPropertyWithoutEscape=function(i,s){this[i]=s,this.raws&&delete this.raws[i]},t.isAtPosition=function(i,s){if(this.source&&this.source.start&&this.source.end)return!(this.source.start.line>i||this.source.end.line<i||this.source.start.line===i&&this.source.start.column>s||this.source.end.line===i&&this.source.end.column<s)},t.stringifyProperty=function(i){return this.raws&&this.raws[i]||this[i]},t.valueToString=function(){return String(this.stringifyProperty("value"))},t.toString=function(){return[this.rawSpaceBefore,this.valueToString(),this.rawSpaceAfter].join("")},d(S,[{key:"rawSpaceBefore",get:function(){var i=this.raws&&this.raws.spaces&&this.raws.spaces.before;return i===void 0&&(i=this.spaces&&this.spaces.before),i||""},set:function(i){(0,g.ensureObject)(this,"raws","spaces"),this.raws.spaces.before=i}},{key:"rawSpaceAfter",get:function(){var i=this.raws&&this.raws.spaces&&this.raws.spaces.after;return i===void 0&&(i=this.spaces.after),i||""},set:function(i){(0,g.ensureObject)(this,"raws","spaces"),this.raws.spaces.after=i}}]),S}();e.default=p,a.exports=e.default})(Ie,Ie.exports);var he=Ie.exports,q={};q.__esModule=!0,q.UNIVERSAL=q.ATTRIBUTE=q.CLASS=q.COMBINATOR=q.COMMENT=q.ID=q.NESTING=q.PSEUDO=q.ROOT=q.SELECTOR=q.STRING=q.TAG=void 0;var xt="tag";q.TAG=xt;var At="string";q.STRING=At;var Mt="selector";q.SELECTOR=Mt;var Ft="root";q.ROOT=Ft;var Nt="pseudo";q.PSEUDO=Nt;var qt="nesting";q.NESTING=qt;var Rt="id";q.ID=Rt;var Ct="comment";q.COMMENT=Ct;var Ut="combinator";q.COMBINATOR=Ut;var Wt="class";q.CLASS=Wt;var Qt="attribute";q.ATTRIBUTE=Qt;var Bt="universal";q.UNIVERSAL=Bt,function(a,e){e.__esModule=!0,e.default=void 0;var g=p(he),u=y(q);function d(){if(typeof WeakMap!="function")return null;var r=new WeakMap;return d=function(){return r},r}function y(r){if(r&&r.__esModule)return r;if(r===null||typeof r!="object"&&typeof r!="function")return{default:r};var o=d();if(o&&o.has(r))return o.get(r);var v={},T=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var _ in r)if(Object.prototype.hasOwnProperty.call(r,_)){var E=T?Object.getOwnPropertyDescriptor(r,_):null;E&&(E.get||E.set)?Object.defineProperty(v,_,E):v[_]=r[_]}return v.default=r,o&&o.set(r,v),v}function p(r){return r&&r.__esModule?r:{default:r}}function S(r,o){var v;if(typeof Symbol>"u"||r[Symbol.iterator]==null){if(Array.isArray(r)||(v=t(r))||o&&r&&typeof r.length=="number"){v&&(r=v);var T=0;return function(){return T>=r.length?{done:!0}:{done:!1,value:r[T++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. | ||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return v=r[Symbol.iterator](),v.next.bind(v)}function t(r,o){if(r){if(typeof r=="string")return n(r,o);var v=Object.prototype.toString.call(r).slice(8,-1);if(v==="Object"&&r.constructor&&(v=r.constructor.name),v==="Map"||v==="Set")return Array.from(r);if(v==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(v))return n(r,o)}}function n(r,o){(o==null||o>r.length)&&(o=r.length);for(var v=0,T=new Array(o);v<o;v++)T[v]=r[v];return T}function i(r,o){for(var v=0;v<o.length;v++){var T=o[v];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(r,T.key,T)}}function s(r,o,v){return o&&i(r.prototype,o),v&&i(r,v),r}function c(r,o){r.prototype=Object.create(o.prototype),r.prototype.constructor=r,k(r,o)}function k(r,o){return k=Object.setPrototypeOf||function(T,_){return T.__proto__=_,T},k(r,o)}var b=function(r){c(o,r);function o(T){var _;return _=r.call(this,T)||this,_.nodes||(_.nodes=[]),_}var v=o.prototype;return v.append=function(_){return _.parent=this,this.nodes.push(_),this},v.prepend=function(_){return _.parent=this,this.nodes.unshift(_),this},v.at=function(_){return this.nodes[_]},v.index=function(_){return typeof _=="number"?_:this.nodes.indexOf(_)},v.removeChild=function(_){_=this.index(_),this.at(_).parent=void 0,this.nodes.splice(_,1);var E;for(var h in this.indexes)E=this.indexes[h],E>=_&&(this.indexes[h]=E-1);return this},v.removeAll=function(){for(var _=S(this.nodes),E;!(E=_()).done;){var h=E.value;h.parent=void 0}return this.nodes=[],this},v.empty=function(){return this.removeAll()},v.insertAfter=function(_,E){E.parent=this;var h=this.index(_);this.nodes.splice(h+1,0,E),E.parent=this;var m;for(var M in this.indexes)m=this.indexes[M],h<=m&&(this.indexes[M]=m+1);return this},v.insertBefore=function(_,E){E.parent=this;var h=this.index(_);this.nodes.splice(h,0,E),E.parent=this;var m;for(var M in this.indexes)m=this.indexes[M],m<=h&&(this.indexes[M]=m+1);return this},v._findChildAtPosition=function(_,E){var h=void 0;return this.each(function(m){if(m.atPosition){var M=m.atPosition(_,E);if(M)return h=M,!1}else if(m.isAtPosition(_,E))return h=m,!1}),h},v.atPosition=function(_,E){if(this.isAtPosition(_,E))return this._findChildAtPosition(_,E)||this},v._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))},v.each=function(_){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var E=this.lastEach;if(this.indexes[E]=0,!!this.length){for(var h,m;this.indexes[E]<this.length&&(h=this.indexes[E],m=_(this.at(h),h),m!==!1);)this.indexes[E]+=1;if(delete this.indexes[E],m===!1)return!1}},v.walk=function(_){return this.each(function(E,h){var m=_(E,h);if(m!==!1&&E.length&&(m=E.walk(_)),m===!1)return!1})},v.walkAttributes=function(_){var E=this;return this.walk(function(h){if(h.type===u.ATTRIBUTE)return _.call(E,h)})},v.walkClasses=function(_){var E=this;return this.walk(function(h){if(h.type===u.CLASS)return _.call(E,h)})},v.walkCombinators=function(_){var E=this;return this.walk(function(h){if(h.type===u.COMBINATOR)return _.call(E,h)})},v.walkComments=function(_){var E=this;return this.walk(function(h){if(h.type===u.COMMENT)return _.call(E,h)})},v.walkIds=function(_){var E=this;return this.walk(function(h){if(h.type===u.ID)return _.call(E,h)})},v.walkNesting=function(_){var E=this;return this.walk(function(h){if(h.type===u.NESTING)return _.call(E,h)})},v.walkPseudos=function(_){var E=this;return this.walk(function(h){if(h.type===u.PSEUDO)return _.call(E,h)})},v.walkTags=function(_){var E=this;return this.walk(function(h){if(h.type===u.TAG)return _.call(E,h)})},v.walkUniversals=function(_){var E=this;return this.walk(function(h){if(h.type===u.UNIVERSAL)return _.call(E,h)})},v.split=function(_){var E=this,h=[];return this.reduce(function(m,M,P){var w=_.call(E,M);return h.push(M),w?(m.push(h),h=[]):P===E.length-1&&m.push(h),m},[])},v.map=function(_){return this.nodes.map(_)},v.reduce=function(_,E){return this.nodes.reduce(_,E)},v.every=function(_){return this.nodes.every(_)},v.some=function(_){return this.nodes.some(_)},v.filter=function(_){return this.nodes.filter(_)},v.sort=function(_){return this.nodes.sort(_)},v.toString=function(){return this.map(String).join("")},s(o,[{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}}]),o}(g.default);e.default=b,a.exports=e.default}(ke,ke.exports);var Ae=ke.exports;(function(a,e){e.__esModule=!0,e.default=void 0;var g=d(Ae),u=q;function d(i){return i&&i.__esModule?i:{default:i}}function y(i,s){for(var c=0;c<s.length;c++){var k=s[c];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(i,k.key,k)}}function p(i,s,c){return s&&y(i.prototype,s),c&&y(i,c),i}function S(i,s){i.prototype=Object.create(s.prototype),i.prototype.constructor=i,t(i,s)}function t(i,s){return t=Object.setPrototypeOf||function(k,b){return k.__proto__=b,k},t(i,s)}var n=function(i){S(s,i);function s(k){var b;return b=i.call(this,k)||this,b.type=u.ROOT,b}var c=s.prototype;return c.toString=function(){var b=this.reduce(function(r,o){return r.push(String(o)),r},[]).join(",");return this.trailingComma?b+",":b},c.error=function(b,r){return this._error?this._error(b,r):new Error(b)},p(s,[{key:"errorGenerator",set:function(b){this._error=b}}]),s}(g.default);e.default=n,a.exports=e.default})(Pe,Pe.exports);var nt=Pe.exports,Me={exports:{}};(function(a,e){e.__esModule=!0,e.default=void 0;var g=d(Ae),u=q;function d(t){return t&&t.__esModule?t:{default:t}}function y(t,n){t.prototype=Object.create(n.prototype),t.prototype.constructor=t,p(t,n)}function p(t,n){return p=Object.setPrototypeOf||function(s,c){return s.__proto__=c,s},p(t,n)}var S=function(t){y(n,t);function n(i){var s;return s=t.call(this,i)||this,s.type=u.SELECTOR,s}return n}(g.default);e.default=S,a.exports=e.default})(Me,Me.exports);var it=Me.exports,Fe={exports:{}};/*! https://mths.be/cssesc v3.0.0 by @mathias */var Yt={},$t=Yt.hasOwnProperty,Gt=function(e,g){if(!e)return g;var u={};for(var d in g)u[d]=$t.call(e,d)?e[d]:g[d];return u},Vt=/[ -,\.\/:-@\[-\^`\{-~]/,zt=/[ -,\.\/:-@\[\]\^`\{-~]/,Ht=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,Ne=function a(e,g){g=Gt(g,a.options),g.quotes!="single"&&g.quotes!="double"&&(g.quotes="single");for(var u=g.quotes=="double"?'"':"'",d=g.isIdentifier,y=e.charAt(0),p="",S=0,t=e.length;S<t;){var n=e.charAt(S++),i=n.charCodeAt(),s=void 0;if(i<32||i>126){if(i>=55296&&i<=56319&&S<t){var c=e.charCodeAt(S++);(c&64512)==56320?i=((i&1023)<<10)+(c&1023)+65536:S--}s="\\"+i.toString(16).toUpperCase()+" "}else g.escapeEverything?Vt.test(n)?s="\\"+n:s="\\"+i.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(n)?s="\\"+i.toString(16).toUpperCase()+" ":n=="\\"||!d&&(n=='"'&&u==n||n=="'"&&u==n)||d&&zt.test(n)?s="\\"+n:s=n;p+=s}return d&&(/^-[-\d]/.test(p)?p="\\-"+p.slice(1):/\d/.test(y)&&(p="\\3"+y+" "+p.slice(1))),p=p.replace(Ht,function(k,b,r){return b&&b.length%2?k:(b||"")+r}),!d&&g.wrap?u+p+u:p};Ne.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1},Ne.version="3.0.0";var qe=Ne;(function(a,e){e.__esModule=!0,e.default=void 0;var g=p(qe),u=te,d=p(he),y=q;function p(c){return c&&c.__esModule?c:{default:c}}function S(c,k){for(var b=0;b<k.length;b++){var r=k[b];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(c,r.key,r)}}function t(c,k,b){return k&&S(c.prototype,k),b&&S(c,b),c}function n(c,k){c.prototype=Object.create(k.prototype),c.prototype.constructor=c,i(c,k)}function i(c,k){return i=Object.setPrototypeOf||function(r,o){return r.__proto__=o,r},i(c,k)}var s=function(c){n(k,c);function k(r){var o;return o=c.call(this,r)||this,o.type=y.CLASS,o._constructed=!0,o}var b=k.prototype;return b.valueToString=function(){return"."+c.prototype.valueToString.call(this)},t(k,[{key:"value",get:function(){return this._value},set:function(o){if(this._constructed){var v=(0,g.default)(o,{isIdentifier:!0});v!==o?((0,u.ensureObject)(this,"raws"),this.raws.value=v):this.raws&&delete this.raws.value}this._value=o}}]),k}(d.default);e.default=s,a.exports=e.default})(Fe,Fe.exports);var st=Fe.exports,Re={exports:{}};(function(a,e){e.__esModule=!0,e.default=void 0;var g=d(he),u=q;function d(t){return t&&t.__esModule?t:{default:t}}function y(t,n){t.prototype=Object.create(n.prototype),t.prototype.constructor=t,p(t,n)}function p(t,n){return p=Object.setPrototypeOf||function(s,c){return s.__proto__=c,s},p(t,n)}var S=function(t){y(n,t);function n(i){var s;return s=t.call(this,i)||this,s.type=u.COMMENT,s}return n}(g.default);e.default=S,a.exports=e.default})(Re,Re.exports);var at=Re.exports,Ce={exports:{}};(function(a,e){e.__esModule=!0,e.default=void 0;var g=d(he),u=q;function d(t){return t&&t.__esModule?t:{default:t}}function y(t,n){t.prototype=Object.create(n.prototype),t.prototype.constructor=t,p(t,n)}function p(t,n){return p=Object.setPrototypeOf||function(s,c){return s.__proto__=c,s},p(t,n)}var S=function(t){y(n,t);function n(s){var c;return c=t.call(this,s)||this,c.type=u.ID,c}var i=n.prototype;return i.valueToString=function(){return"#"+t.prototype.valueToString.call(this)},n}(g.default);e.default=S,a.exports=e.default})(Ce,Ce.exports);var ot=Ce.exports,Ue={exports:{}},We={exports:{}};(function(a,e){e.__esModule=!0,e.default=void 0;var g=y(qe),u=te,d=y(he);function y(s){return s&&s.__esModule?s:{default:s}}function p(s,c){for(var k=0;k<c.length;k++){var b=c[k];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(s,b.key,b)}}function S(s,c,k){return c&&p(s.prototype,c),k&&p(s,k),s}function t(s,c){s.prototype=Object.create(c.prototype),s.prototype.constructor=s,n(s,c)}function n(s,c){return n=Object.setPrototypeOf||function(b,r){return b.__proto__=r,b},n(s,c)}var i=function(s){t(c,s);function c(){return s.apply(this,arguments)||this}var k=c.prototype;return k.qualifiedName=function(r){return this.namespace?this.namespaceString+"|"+r:r},k.valueToString=function(){return this.qualifiedName(s.prototype.valueToString.call(this))},S(c,[{key:"namespace",get:function(){return this._namespace},set:function(r){if(r===!0||r==="*"||r==="&"){this._namespace=r,this.raws&&delete this.raws.namespace;return}var o=(0,g.default)(r,{isIdentifier:!0});this._namespace=r,o!==r?((0,u.ensureObject)(this,"raws"),this.raws.namespace=o):this.raws&&delete this.raws.namespace}},{key:"ns",get:function(){return this._namespace},set:function(r){this.namespace=r}},{key:"namespaceString",get:function(){if(this.namespace){var r=this.stringifyProperty("namespace");return r===!0?"":r}else return""}}]),c}(d.default);e.default=i,a.exports=e.default})(We,We.exports);var Qe=We.exports;(function(a,e){e.__esModule=!0,e.default=void 0;var g=d(Qe),u=q;function d(t){return t&&t.__esModule?t:{default:t}}function y(t,n){t.prototype=Object.create(n.prototype),t.prototype.constructor=t,p(t,n)}function p(t,n){return p=Object.setPrototypeOf||function(s,c){return s.__proto__=c,s},p(t,n)}var S=function(t){y(n,t);function n(i){var s;return s=t.call(this,i)||this,s.type=u.TAG,s}return n}(g.default);e.default=S,a.exports=e.default})(Ue,Ue.exports);var ut=Ue.exports,Be={exports:{}};(function(a,e){e.__esModule=!0,e.default=void 0;var g=d(he),u=q;function d(t){return t&&t.__esModule?t:{default:t}}function y(t,n){t.prototype=Object.create(n.prototype),t.prototype.constructor=t,p(t,n)}function p(t,n){return p=Object.setPrototypeOf||function(s,c){return s.__proto__=c,s},p(t,n)}var S=function(t){y(n,t);function n(i){var s;return s=t.call(this,i)||this,s.type=u.STRING,s}return n}(g.default);e.default=S,a.exports=e.default})(Be,Be.exports);var ft=Be.exports,Ye={exports:{}};(function(a,e){e.__esModule=!0,e.default=void 0;var g=d(Ae),u=q;function d(t){return t&&t.__esModule?t:{default:t}}function y(t,n){t.prototype=Object.create(n.prototype),t.prototype.constructor=t,p(t,n)}function p(t,n){return p=Object.setPrototypeOf||function(s,c){return s.__proto__=c,s},p(t,n)}var S=function(t){y(n,t);function n(s){var c;return c=t.call(this,s)||this,c.type=u.PSEUDO,c}var i=n.prototype;return i.toString=function(){var c=this.length?"("+this.map(String).join(",")+")":"";return[this.rawSpaceBefore,this.stringifyProperty("value"),c,this.rawSpaceAfter].join("")},n}(g.default);e.default=S,a.exports=e.default})(Ye,Ye.exports);var ct=Ye.exports,$e={},Kt=Jt;function Jt(a,e){if(Ge("noDeprecation"))return a;var g=!1;function u(){if(!g){if(Ge("throwDeprecation"))throw new Error(e);Ge("traceDeprecation")?console.trace(e):console.warn(e),g=!0}return a.apply(this,arguments)}return u}function Ge(a){try{if(!de.localStorage)return!1}catch{return!1}var e=de.localStorage[a];return e==null?!1:String(e).toLowerCase()==="true"}(function(a){a.__esModule=!0,a.unescapeValue=o,a.default=void 0;var e=p(qe),g=p(rt),u=p(Qe),d=q,y;function p(h){return h&&h.__esModule?h:{default:h}}function S(h,m){for(var M=0;M<m.length;M++){var P=m[M];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(h,P.key,P)}}function t(h,m,M){return m&&S(h.prototype,m),M&&S(h,M),h}function n(h,m){h.prototype=Object.create(m.prototype),h.prototype.constructor=h,i(h,m)}function i(h,m){return i=Object.setPrototypeOf||function(P,w){return P.__proto__=w,P},i(h,m)}var s=Kt,c=/^('|")([^]*)\1$/,k=s(function(){},"Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."),b=s(function(){},"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."),r=s(function(){},"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");function o(h){var m=!1,M=null,P=h,w=P.match(c);return w&&(M=w[1],P=w[2]),P=(0,g.default)(P),P!==h&&(m=!0),{deprecatedUsage:m,unescaped:P,quoteMark:M}}function v(h){if(h.quoteMark!==void 0||h.value===void 0)return h;r();var m=o(h.value),M=m.quoteMark,P=m.unescaped;return h.raws||(h.raws={}),h.raws.value===void 0&&(h.raws.value=h.value),h.value=P,h.quoteMark=M,h}var T=function(h){n(m,h);function m(P){var w;return P===void 0&&(P={}),w=h.call(this,v(P))||this,w.type=d.ATTRIBUTE,w.raws=w.raws||{},Object.defineProperty(w.raws,"unquoted",{get:s(function(){return w.value},"attr.raws.unquoted is deprecated. Call attr.value instead."),set:s(function(){return w.value},"Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.")}),w._constructed=!0,w}var M=m.prototype;return M.getQuotedValue=function(w){w===void 0&&(w={});var I=this._determineQuoteMark(w),W=_[I],$=(0,e.default)(this._value,W);return $},M._determineQuoteMark=function(w){return w.smart?this.smartQuoteMark(w):this.preferredQuoteMark(w)},M.setValue=function(w,I){I===void 0&&(I={}),this._value=w,this._quoteMark=this._determineQuoteMark(I),this._syncRawValue()},M.smartQuoteMark=function(w){var I=this.value,W=I.replace(/[^']/g,"").length,$=I.replace(/[^"]/g,"").length;if(W+$===0){var j=(0,e.default)(I,{isIdentifier:!0});if(j===I)return m.NO_QUOTE;var K=this.preferredQuoteMark(w);if(K===m.NO_QUOTE){var X=this.quoteMark||w.quoteMark||m.DOUBLE_QUOTE,U=_[X],re=(0,e.default)(I,U);if(re.length<j.length)return X}return K}else return $===W?this.preferredQuoteMark(w):$<W?m.DOUBLE_QUOTE:m.SINGLE_QUOTE},M.preferredQuoteMark=function(w){var I=w.preferCurrentQuoteMark?this.quoteMark:w.quoteMark;return I===void 0&&(I=w.preferCurrentQuoteMark?w.quoteMark:this.quoteMark),I===void 0&&(I=m.DOUBLE_QUOTE),I},M._syncRawValue=function(){var w=(0,e.default)(this._value,_[this.quoteMark]);w===this._value?this.raws&&delete this.raws.value:this.raws.value=w},M._handleEscapes=function(w,I){if(this._constructed){var W=(0,e.default)(I,{isIdentifier:!0});W!==I?this.raws[w]=W:delete this.raws[w]}},M._spacesFor=function(w){var I={before:"",after:""},W=this.spaces[w]||{},$=this.raws.spaces&&this.raws.spaces[w]||{};return Object.assign(I,W,$)},M._stringFor=function(w,I,W){I===void 0&&(I=w),W===void 0&&(W=E);var $=this._spacesFor(I);return W(this.stringifyProperty(w),$)},M.offsetOf=function(w){var I=1,W=this._spacesFor("attribute");if(I+=W.before.length,w==="namespace"||w==="ns")return this.namespace?I:-1;if(w==="attributeNS"||(I+=this.namespaceString.length,this.namespace&&(I+=1),w==="attribute"))return I;I+=this.stringifyProperty("attribute").length,I+=W.after.length;var $=this._spacesFor("operator");I+=$.before.length;var j=this.stringifyProperty("operator");if(w==="operator")return j?I:-1;I+=j.length,I+=$.after.length;var K=this._spacesFor("value");I+=K.before.length;var X=this.stringifyProperty("value");if(w==="value")return X?I:-1;I+=X.length,I+=K.after.length;var U=this._spacesFor("insensitive");return I+=U.before.length,w==="insensitive"&&this.insensitive?I:-1},M.toString=function(){var w=this,I=[this.rawSpaceBefore,"["];return I.push(this._stringFor("qualifiedAttribute","attribute")),this.operator&&(this.value||this.value==="")&&(I.push(this._stringFor("operator")),I.push(this._stringFor("value")),I.push(this._stringFor("insensitiveFlag","insensitive",function(W,$){return W.length>0&&!w.quoted&&$.before.length===0&&!(w.spaces.value&&w.spaces.value.after)&&($.before=" "),E(W,$)}))),I.push("]"),I.push(this.rawSpaceAfter),I.join("")},t(m,[{key:"quoted",get:function(){var w=this.quoteMark;return w==="'"||w==='"'},set:function(w){b()}},{key:"quoteMark",get:function(){return this._quoteMark},set:function(w){if(!this._constructed){this._quoteMark=w;return}this._quoteMark!==w&&(this._quoteMark=w,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(w){if(this._constructed){var I=o(w),W=I.deprecatedUsage,$=I.unescaped,j=I.quoteMark;if(W&&k(),$===this._value&&j===this._quoteMark)return;this._value=$,this._quoteMark=j,this._syncRawValue()}else this._value=w}},{key:"insensitive",get:function(){return this._insensitive},set:function(w){w||(this._insensitive=!1,this.raws&&(this.raws.insensitiveFlag==="I"||this.raws.insensitiveFlag==="i")&&(this.raws.insensitiveFlag=void 0)),this._insensitive=w}},{key:"attribute",get:function(){return this._attribute},set:function(w){this._handleEscapes("attribute",w),this._attribute=w}}]),m}(u.default);a.default=T,T.NO_QUOTE=null,T.SINGLE_QUOTE="'",T.DOUBLE_QUOTE='"';var _=(y={"'":{quotes:"single",wrap:!0},'"':{quotes:"double",wrap:!0}},y[null]={isIdentifier:!0},y);function E(h,m){return""+m.before+h+m.after}})($e);var Ve={exports:{}};(function(a,e){e.__esModule=!0,e.default=void 0;var g=d(Qe),u=q;function d(t){return t&&t.__esModule?t:{default:t}}function y(t,n){t.prototype=Object.create(n.prototype),t.prototype.constructor=t,p(t,n)}function p(t,n){return p=Object.setPrototypeOf||function(s,c){return s.__proto__=c,s},p(t,n)}var S=function(t){y(n,t);function n(i){var s;return s=t.call(this,i)||this,s.type=u.UNIVERSAL,s.value="*",s}return n}(g.default);e.default=S,a.exports=e.default})(Ve,Ve.exports);var lt=Ve.exports,ze={exports:{}};(function(a,e){e.__esModule=!0,e.default=void 0;var g=d(he),u=q;function d(t){return t&&t.__esModule?t:{default:t}}function y(t,n){t.prototype=Object.create(n.prototype),t.prototype.constructor=t,p(t,n)}function p(t,n){return p=Object.setPrototypeOf||function(s,c){return s.__proto__=c,s},p(t,n)}var S=function(t){y(n,t);function n(i){var s;return s=t.call(this,i)||this,s.type=u.COMBINATOR,s}return n}(g.default);e.default=S,a.exports=e.default})(ze,ze.exports);var ht=ze.exports,He={exports:{}};(function(a,e){e.__esModule=!0,e.default=void 0;var g=d(he),u=q;function d(t){return t&&t.__esModule?t:{default:t}}function y(t,n){t.prototype=Object.create(n.prototype),t.prototype.constructor=t,p(t,n)}function p(t,n){return p=Object.setPrototypeOf||function(s,c){return s.__proto__=c,s},p(t,n)}var S=function(t){y(n,t);function n(i){var s;return s=t.call(this,i)||this,s.type=u.NESTING,s.value="&",s}return n}(g.default);e.default=S,a.exports=e.default})(He,He.exports);var pt=He.exports,Ke={exports:{}};(function(a,e){e.__esModule=!0,e.default=g;function g(u){return u.sort(function(d,y){return d-y})}a.exports=e.default})(Ke,Ke.exports);var Xt=Ke.exports,dt={},D={};D.__esModule=!0,D.combinator=D.word=D.comment=D.str=D.tab=D.newline=D.feed=D.cr=D.backslash=D.bang=D.slash=D.doubleQuote=D.singleQuote=D.space=D.greaterThan=D.pipe=D.equals=D.plus=D.caret=D.tilde=D.dollar=D.closeSquare=D.openSquare=D.closeParenthesis=D.openParenthesis=D.semicolon=D.colon=D.comma=D.at=D.asterisk=D.ampersand=void 0;var Zt=38;D.ampersand=Zt;var jt=42;D.asterisk=jt;var er=64;D.at=er;var tr=44;D.comma=tr;var rr=58;D.colon=rr;var nr=59;D.semicolon=nr;var ir=40;D.openParenthesis=ir;var sr=41;D.closeParenthesis=sr;var ar=91;D.openSquare=ar;var or=93;D.closeSquare=or;var ur=36;D.dollar=ur;var fr=126;D.tilde=fr;var cr=94;D.caret=cr;var lr=43;D.plus=lr;var hr=61;D.equals=hr;var pr=124;D.pipe=pr;var dr=62;D.greaterThan=dr;var vr=32;D.space=vr;var vt=39;D.singleQuote=vt;var _r=34;D.doubleQuote=_r;var gr=47;D.slash=gr;var Sr=33;D.bang=Sr;var Tr=92;D.backslash=Tr;var yr=13;D.cr=yr;var Er=12;D.feed=Er;var mr=10;D.newline=mr;var wr=9;D.tab=wr;var Or=vt;D.str=Or;var Pr=-1;D.comment=Pr;var kr=-2;D.word=kr;var Ir=-3;D.combinator=Ir,function(a){a.__esModule=!0,a.default=b,a.FIELDS=void 0;var e=y(D),g,u;function d(){if(typeof WeakMap!="function")return null;var r=new WeakMap;return d=function(){return r},r}function y(r){if(r&&r.__esModule)return r;if(r===null||typeof r!="object"&&typeof r!="function")return{default:r};var o=d();if(o&&o.has(r))return o.get(r);var v={},T=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var _ in r)if(Object.prototype.hasOwnProperty.call(r,_)){var E=T?Object.getOwnPropertyDescriptor(r,_):null;E&&(E.get||E.set)?Object.defineProperty(v,_,E):v[_]=r[_]}return v.default=r,o&&o.set(r,v),v}for(var p=(g={},g[e.tab]=!0,g[e.newline]=!0,g[e.cr]=!0,g[e.feed]=!0,g),S=(u={},u[e.space]=!0,u[e.tab]=!0,u[e.newline]=!0,u[e.cr]=!0,u[e.feed]=!0,u[e.ampersand]=!0,u[e.asterisk]=!0,u[e.bang]=!0,u[e.comma]=!0,u[e.colon]=!0,u[e.semicolon]=!0,u[e.openParenthesis]=!0,u[e.closeParenthesis]=!0,u[e.openSquare]=!0,u[e.closeSquare]=!0,u[e.singleQuote]=!0,u[e.doubleQuote]=!0,u[e.plus]=!0,u[e.pipe]=!0,u[e.tilde]=!0,u[e.greaterThan]=!0,u[e.equals]=!0,u[e.dollar]=!0,u[e.caret]=!0,u[e.slash]=!0,u),t={},n="0123456789abcdefABCDEF",i=0;i<n.length;i++)t[n.charCodeAt(i)]=!0;function s(r,o){var v=o,T;do{if(T=r.charCodeAt(v),S[T])return v-1;T===e.backslash?v=c(r,v)+1:v++}while(v<r.length);return v-1}function c(r,o){var v=o,T=r.charCodeAt(v+1);if(!p[T])if(t[T]){var _=0;do v++,_++,T=r.charCodeAt(v+1);while(t[T]&&_<6);_<6&&T===e.space&&v++}else v++;return v}var k={TYPE:0,START_LINE:1,START_COL:2,END_LINE:3,END_COL:4,START_POS:5,END_POS:6};a.FIELDS=k;function b(r){var o=[],v=r.css.valueOf(),T=v,_=T.length,E=-1,h=1,m=0,M=0,P,w,I,W,$,j,K,X,U,re,ue,_e,fe;function L(A,x){if(r.safe)v+=x,U=v.length-1;else throw r.error("Unclosed "+A,h,m-E,m)}for(;m<_;){switch(P=v.charCodeAt(m),P===e.newline&&(E=m,h+=1),P){case e.space:case e.tab:case e.newline:case e.cr:case e.feed:U=m;do U+=1,P=v.charCodeAt(U),P===e.newline&&(E=U,h+=1);while(P===e.space||P===e.newline||P===e.tab||P===e.cr||P===e.feed);fe=e.space,W=h,I=U-E-1,M=U;break;case e.plus:case e.greaterThan:case e.tilde:case e.pipe:U=m;do U+=1,P=v.charCodeAt(U);while(P===e.plus||P===e.greaterThan||P===e.tilde||P===e.pipe);fe=e.combinator,W=h,I=m-E,M=U;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:U=m,fe=P,W=h,I=m-E,M=U+1;break;case e.singleQuote:case e.doubleQuote:_e=P===e.singleQuote?"'":'"',U=m;do for($=!1,U=v.indexOf(_e,U+1),U===-1&&L("quote",_e),j=U;v.charCodeAt(j-1)===e.backslash;)j-=1,$=!$;while($);fe=e.str,W=h,I=m-E,M=U+1;break;default:P===e.slash&&v.charCodeAt(m+1)===e.asterisk?(U=v.indexOf("*/",m+2)+1,U===0&&L("comment","*/"),w=v.slice(m,U+1),X=w.split(` | ||
`),K=X.length-1,K>0?(re=h+K,ue=U-X[K].length):(re=h,ue=E),fe=e.comment,h=re,W=re,I=U-ue):P===e.slash?(U=m,fe=P,W=h,I=m-E,M=U+1):(U=s(v,m),fe=e.word,W=h,I=U-E),M=U+1;break}o.push([fe,h,m-E,W,I,m,M]),ue&&(E=ue,ue=null),m=M}return o}}(dt),function(a,e){e.__esModule=!0,e.default=void 0;var g=M(nt),u=M(it),d=M(st),y=M(at),p=M(ot),S=M(ut),t=M(ft),n=M(ct),i=m($e),s=M(lt),c=M(ht),k=M(pt),b=M(Xt),r=m(dt),o=m(D),v=m(q),T=te,_,E;function h(){if(typeof WeakMap!="function")return null;var L=new WeakMap;return h=function(){return L},L}function m(L){if(L&&L.__esModule)return L;if(L===null||typeof L!="object"&&typeof L!="function")return{default:L};var A=h();if(A&&A.has(L))return A.get(L);var x={},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var O in L)if(Object.prototype.hasOwnProperty.call(L,O)){var F=f?Object.getOwnPropertyDescriptor(L,O):null;F&&(F.get||F.set)?Object.defineProperty(x,O,F):x[O]=L[O]}return x.default=L,A&&A.set(L,x),x}function M(L){return L&&L.__esModule?L:{default:L}}function P(L,A){for(var x=0;x<A.length;x++){var f=A[x];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(L,f.key,f)}}function w(L,A,x){return A&&P(L.prototype,A),x&&P(L,x),L}var I=(_={},_[o.space]=!0,_[o.cr]=!0,_[o.feed]=!0,_[o.newline]=!0,_[o.tab]=!0,_),W=Object.assign({},I,(E={},E[o.comment]=!0,E));function $(L){return{line:L[r.FIELDS.START_LINE],column:L[r.FIELDS.START_COL]}}function j(L){return{line:L[r.FIELDS.END_LINE],column:L[r.FIELDS.END_COL]}}function K(L,A,x,f){return{start:{line:L,column:A},end:{line:x,column:f}}}function X(L){return K(L[r.FIELDS.START_LINE],L[r.FIELDS.START_COL],L[r.FIELDS.END_LINE],L[r.FIELDS.END_COL])}function U(L,A){if(L)return K(L[r.FIELDS.START_LINE],L[r.FIELDS.START_COL],A[r.FIELDS.END_LINE],A[r.FIELDS.END_COL])}function re(L,A){var x=L[A];if(typeof x=="string")return x.indexOf("\\")!==-1&&((0,T.ensureObject)(L,"raws"),L[A]=(0,T.unesc)(x),L.raws[A]===void 0&&(L.raws[A]=x)),L}function ue(L,A){for(var x=-1,f=[];(x=L.indexOf(A,x+1))!==-1;)f.push(x);return f}function _e(){var L=Array.prototype.concat.apply([],arguments);return L.filter(function(A,x){return x===L.indexOf(A)})}var fe=function(){function L(x,f){f===void 0&&(f={}),this.rule=x,this.options=Object.assign({lossy:!1,safe:!1},f),this.position=0,this.css=typeof this.rule=="string"?this.rule:this.rule.selector,this.tokens=(0,r.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var O=U(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new g.default({source:O}),this.root.errorGenerator=this._errorGenerator();var F=new u.default({source:{start:{line:1,column:1}}});this.root.append(F),this.current=F,this.loop()}var A=L.prototype;return A._errorGenerator=function(){var f=this;return function(O,F){return typeof f.rule=="string"?new Error(O):f.rule.error(O,F)}},A.attribute=function(){var f=[],O=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[r.FIELDS.TYPE]!==o.closeSquare;)f.push(this.currToken),this.position++;if(this.currToken[r.FIELDS.TYPE]!==o.closeSquare)return this.expected("closing square bracket",this.currToken[r.FIELDS.START_POS]);var F=f.length,l={source:K(O[1],O[2],this.currToken[3],this.currToken[4]),sourceIndex:O[r.FIELDS.START_POS]};if(F===1&&!~[o.word].indexOf(f[0][r.FIELDS.TYPE]))return this.expected("attribute",f[0][r.FIELDS.START_POS]);for(var C=0,Y="",Q="",N=null,V=!1;C<F;){var J=f[C],R=this.content(J),H=f[C+1];switch(J[r.FIELDS.TYPE]){case o.space:if(V=!0,this.options.lossy)break;if(N){(0,T.ensureObject)(l,"spaces",N);var le=l.spaces[N].after||"";l.spaces[N].after=le+R;var ce=(0,T.getProp)(l,"raws","spaces",N,"after")||null;ce&&(l.raws.spaces[N].after=ce+R)}else Y=Y+R,Q=Q+R;break;case o.asterisk:if(H[r.FIELDS.TYPE]===o.equals)l.operator=R,N="operator";else if((!l.namespace||N==="namespace"&&!V)&&H){Y&&((0,T.ensureObject)(l,"spaces","attribute"),l.spaces.attribute.before=Y,Y=""),Q&&((0,T.ensureObject)(l,"raws","spaces","attribute"),l.raws.spaces.attribute.before=Y,Q=""),l.namespace=(l.namespace||"")+R;var ne=(0,T.getProp)(l,"raws","namespace")||null;ne&&(l.raws.namespace+=R),N="namespace"}V=!1;break;case o.dollar:if(N==="value"){var Z=(0,T.getProp)(l,"raws","value");l.value+="$",Z&&(l.raws.value=Z+"$");break}case o.caret:H[r.FIELDS.TYPE]===o.equals&&(l.operator=R,N="operator"),V=!1;break;case o.combinator:if(R==="~"&&H[r.FIELDS.TYPE]===o.equals&&(l.operator=R,N="operator"),R!=="|"){V=!1;break}H[r.FIELDS.TYPE]===o.equals?(l.operator=R,N="operator"):!l.namespace&&!l.attribute&&(l.namespace=!0),V=!1;break;case o.word:if(H&&this.content(H)==="|"&&f[C+2]&&f[C+2][r.FIELDS.TYPE]!==o.equals&&!l.operator&&!l.namespace)l.namespace=R,N="namespace";else if(!l.attribute||N==="attribute"&&!V){Y&&((0,T.ensureObject)(l,"spaces","attribute"),l.spaces.attribute.before=Y,Y=""),Q&&((0,T.ensureObject)(l,"raws","spaces","attribute"),l.raws.spaces.attribute.before=Q,Q=""),l.attribute=(l.attribute||"")+R;var ae=(0,T.getProp)(l,"raws","attribute")||null;ae&&(l.raws.attribute+=R),N="attribute"}else if(!l.value&&l.value!==""||N==="value"&&!(V||l.quoteMark)){var oe=(0,T.unesc)(R),pe=(0,T.getProp)(l,"raws","value")||"",Te=l.value||"";l.value=Te+oe,l.quoteMark=null,(oe!==R||pe)&&((0,T.ensureObject)(l,"raws"),l.raws.value=(pe||Te)+R),N="value"}else{var ye=R==="i"||R==="I";(l.value||l.value==="")&&(l.quoteMark||V)?(l.insensitive=ye,(!ye||R==="I")&&((0,T.ensureObject)(l,"raws"),l.raws.insensitiveFlag=R),N="insensitive",Y&&((0,T.ensureObject)(l,"spaces","insensitive"),l.spaces.insensitive.before=Y,Y=""),Q&&((0,T.ensureObject)(l,"raws","spaces","insensitive"),l.raws.spaces.insensitive.before=Q,Q="")):(l.value||l.value==="")&&(N="value",l.value+=R,l.raws.value&&(l.raws.value+=R))}V=!1;break;case o.str:if(!l.attribute||!l.operator)return this.error("Expected an attribute followed by an operator preceding the string.",{index:J[r.FIELDS.START_POS]});var ge=(0,i.unescapeValue)(R),Tn=ge.unescaped,yn=ge.quoteMark;l.value=Tn,l.quoteMark=yn,N="value",(0,T.ensureObject)(l,"raws"),l.raws.value=R,V=!1;break;case o.equals:if(!l.attribute)return this.expected("attribute",J[r.FIELDS.START_POS],R);if(l.value)return this.error('Unexpected "=" found; an operator was already defined.',{index:J[r.FIELDS.START_POS]});l.operator=l.operator?l.operator+R:R,N="operator",V=!1;break;case o.comment:if(N)if(V||H&&H[r.FIELDS.TYPE]===o.space||N==="insensitive"){var En=(0,T.getProp)(l,"spaces",N,"after")||"",mn=(0,T.getProp)(l,"raws","spaces",N,"after")||En;(0,T.ensureObject)(l,"raws","spaces",N),l.raws.spaces[N].after=mn+R}else{var wn=l[N]||"",On=(0,T.getProp)(l,"raws",N)||wn;(0,T.ensureObject)(l,"raws"),l.raws[N]=On+R}else Q=Q+R;break;default:return this.error('Unexpected "'+R+'" found.',{index:J[r.FIELDS.START_POS]})}C++}re(l,"attribute"),re(l,"namespace"),this.newNode(new i.default(l)),this.position++},A.parseWhitespaceEquivalentTokens=function(f){f<0&&(f=this.tokens.length);var O=this.position,F=[],l="",C=void 0;do if(I[this.currToken[r.FIELDS.TYPE]])this.options.lossy||(l+=this.content());else if(this.currToken[r.FIELDS.TYPE]===o.comment){var Y={};l&&(Y.before=l,l=""),C=new y.default({value:this.content(),source:X(this.currToken),sourceIndex:this.currToken[r.FIELDS.START_POS],spaces:Y}),F.push(C)}while(++this.position<f);if(l){if(C)C.spaces.after=l;else if(!this.options.lossy){var Q=this.tokens[O],N=this.tokens[this.position-1];F.push(new t.default({value:"",source:K(Q[r.FIELDS.START_LINE],Q[r.FIELDS.START_COL],N[r.FIELDS.END_LINE],N[r.FIELDS.END_COL]),sourceIndex:Q[r.FIELDS.START_POS],spaces:{before:l,after:""}}))}}return F},A.convertWhitespaceNodesToSpace=function(f,O){var F=this;O===void 0&&(O=!1);var l="",C="";f.forEach(function(Q){var N=F.lossySpace(Q.spaces.before,O),V=F.lossySpace(Q.rawSpaceBefore,O);l+=N+F.lossySpace(Q.spaces.after,O&&N.length===0),C+=N+Q.value+F.lossySpace(Q.rawSpaceAfter,O&&V.length===0)}),C===l&&(C=void 0);var Y={space:l,rawSpace:C};return Y},A.isNamedCombinator=function(f){return f===void 0&&(f=this.position),this.tokens[f+0]&&this.tokens[f+0][r.FIELDS.TYPE]===o.slash&&this.tokens[f+1]&&this.tokens[f+1][r.FIELDS.TYPE]===o.word&&this.tokens[f+2]&&this.tokens[f+2][r.FIELDS.TYPE]===o.slash},A.namedCombinator=function(){if(this.isNamedCombinator()){var f=this.content(this.tokens[this.position+1]),O=(0,T.unesc)(f).toLowerCase(),F={};O!==f&&(F.value="/"+f+"/");var l=new c.default({value:"/"+O+"/",source:K(this.currToken[r.FIELDS.START_LINE],this.currToken[r.FIELDS.START_COL],this.tokens[this.position+2][r.FIELDS.END_LINE],this.tokens[this.position+2][r.FIELDS.END_COL]),sourceIndex:this.currToken[r.FIELDS.START_POS],raws:F});return this.position=this.position+3,l}else this.unexpected()},A.combinator=function(){var f=this;if(this.content()==="|")return this.namespace();var O=this.locateNextMeaningfulToken(this.position);if(O<0||this.tokens[O][r.FIELDS.TYPE]===o.comma){var F=this.parseWhitespaceEquivalentTokens(O);if(F.length>0){var l=this.current.last;if(l){var C=this.convertWhitespaceNodesToSpace(F),Y=C.space,Q=C.rawSpace;Q!==void 0&&(l.rawSpaceAfter+=Q),l.spaces.after+=Y}else F.forEach(function(pe){return f.newNode(pe)})}return}var N=this.currToken,V=void 0;O>this.position&&(V=this.parseWhitespaceEquivalentTokens(O));var J;if(this.isNamedCombinator()?J=this.namedCombinator():this.currToken[r.FIELDS.TYPE]===o.combinator?(J=new c.default({value:this.content(),source:X(this.currToken),sourceIndex:this.currToken[r.FIELDS.START_POS]}),this.position++):I[this.currToken[r.FIELDS.TYPE]]||V||this.unexpected(),J){if(V){var R=this.convertWhitespaceNodesToSpace(V),H=R.space,le=R.rawSpace;J.spaces.before=H,J.rawSpaceBefore=le}}else{var ce=this.convertWhitespaceNodesToSpace(V,!0),ne=ce.space,Z=ce.rawSpace;Z||(Z=ne);var ae={},oe={spaces:{}};ne.endsWith(" ")&&Z.endsWith(" ")?(ae.before=ne.slice(0,ne.length-1),oe.spaces.before=Z.slice(0,Z.length-1)):ne.startsWith(" ")&&Z.startsWith(" ")?(ae.after=ne.slice(1),oe.spaces.after=Z.slice(1)):oe.value=Z,J=new c.default({value:" ",source:U(N,this.tokens[this.position-1]),sourceIndex:N[r.FIELDS.START_POS],spaces:ae,raws:oe})}return this.currToken&&this.currToken[r.FIELDS.TYPE]===o.space&&(J.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(J)},A.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}this.current._inferEndPosition();var f=new u.default({source:{start:$(this.tokens[this.position+1])}});this.current.parent.append(f),this.current=f,this.position++},A.comment=function(){var f=this.currToken;this.newNode(new y.default({value:this.content(),source:X(f),sourceIndex:f[r.FIELDS.START_POS]})),this.position++},A.error=function(f,O){throw this.root.error(f,O)},A.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[r.FIELDS.START_POS]})},A.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[r.FIELDS.START_POS])},A.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[r.FIELDS.START_POS])},A.unexpected=function(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[r.FIELDS.START_POS])},A.namespace=function(){var f=this.prevToken&&this.content(this.prevToken)||!0;if(this.nextToken[r.FIELDS.TYPE]===o.word)return this.position++,this.word(f);if(this.nextToken[r.FIELDS.TYPE]===o.asterisk)return this.position++,this.universal(f)},A.nesting=function(){if(this.nextToken){var f=this.content(this.nextToken);if(f==="|"){this.position++;return}}var O=this.currToken;this.newNode(new k.default({value:this.content(),source:X(O),sourceIndex:O[r.FIELDS.START_POS]})),this.position++},A.parentheses=function(){var f=this.current.last,O=1;if(this.position++,f&&f.type===v.PSEUDO){var F=new u.default({source:{start:$(this.tokens[this.position-1])}}),l=this.current;for(f.append(F),this.current=F;this.position<this.tokens.length&&O;)this.currToken[r.FIELDS.TYPE]===o.openParenthesis&&O++,this.currToken[r.FIELDS.TYPE]===o.closeParenthesis&&O--,O?this.parse():(this.current.source.end=j(this.currToken),this.current.parent.source.end=j(this.currToken),this.position++);this.current=l}else{for(var C=this.currToken,Y="(",Q;this.position<this.tokens.length&&O;)this.currToken[r.FIELDS.TYPE]===o.openParenthesis&&O++,this.currToken[r.FIELDS.TYPE]===o.closeParenthesis&&O--,Q=this.currToken,Y+=this.parseParenthesisToken(this.currToken),this.position++;f?f.appendToPropertyAndEscape("value",Y,Y):this.newNode(new t.default({value:Y,source:K(C[r.FIELDS.START_LINE],C[r.FIELDS.START_COL],Q[r.FIELDS.END_LINE],Q[r.FIELDS.END_COL]),sourceIndex:C[r.FIELDS.START_POS]}))}if(O)return this.expected("closing parenthesis",this.currToken[r.FIELDS.START_POS])},A.pseudo=function(){for(var f=this,O="",F=this.currToken;this.currToken&&this.currToken[r.FIELDS.TYPE]===o.colon;)O+=this.content(),this.position++;if(!this.currToken)return this.expected(["pseudo-class","pseudo-element"],this.position-1);if(this.currToken[r.FIELDS.TYPE]===o.word)this.splitWord(!1,function(l,C){O+=l,f.newNode(new n.default({value:O,source:U(F,f.currToken),sourceIndex:F[r.FIELDS.START_POS]})),C>1&&f.nextToken&&f.nextToken[r.FIELDS.TYPE]===o.openParenthesis&&f.error("Misplaced parenthesis.",{index:f.nextToken[r.FIELDS.START_POS]})});else return this.expected(["pseudo-class","pseudo-element"],this.currToken[r.FIELDS.START_POS])},A.space=function(){var f=this.content();this.position===0||this.prevToken[r.FIELDS.TYPE]===o.comma||this.prevToken[r.FIELDS.TYPE]===o.openParenthesis||this.current.nodes.every(function(O){return O.type==="comment"})?(this.spaces=this.optionalSpace(f),this.position++):this.position===this.tokens.length-1||this.nextToken[r.FIELDS.TYPE]===o.comma||this.nextToken[r.FIELDS.TYPE]===o.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(f),this.position++):this.combinator()},A.string=function(){var f=this.currToken;this.newNode(new t.default({value:this.content(),source:X(f),sourceIndex:f[r.FIELDS.START_POS]})),this.position++},A.universal=function(f){var O=this.nextToken;if(O&&this.content(O)==="|")return this.position++,this.namespace();var F=this.currToken;this.newNode(new s.default({value:this.content(),source:X(F),sourceIndex:F[r.FIELDS.START_POS]}),f),this.position++},A.splitWord=function(f,O){for(var F=this,l=this.nextToken,C=this.content();l&&~[o.dollar,o.caret,o.equals,o.word].indexOf(l[r.FIELDS.TYPE]);){this.position++;var Y=this.content();if(C+=Y,Y.lastIndexOf("\\")===Y.length-1){var Q=this.nextToken;Q&&Q[r.FIELDS.TYPE]===o.space&&(C+=this.requiredSpace(this.content(Q)),this.position++)}l=this.nextToken}var N=ue(C,".").filter(function(H){var le=C[H-1]==="\\",ce=/^\d+\.\d+%$/.test(C);return!le&&!ce}),V=ue(C,"#").filter(function(H){return C[H-1]!=="\\"}),J=ue(C,"#{");J.length&&(V=V.filter(function(H){return!~J.indexOf(H)}));var R=(0,b.default)(_e([0].concat(N,V)));R.forEach(function(H,le){var ce=R[le+1]||C.length,ne=C.slice(H,ce);if(le===0&&O)return O.call(F,ne,R.length);var Z,ae=F.currToken,oe=ae[r.FIELDS.START_POS]+R[le],pe=K(ae[1],ae[2]+H,ae[3],ae[2]+(ce-1));if(~N.indexOf(H)){var Te={value:ne.slice(1),source:pe,sourceIndex:oe};Z=new d.default(re(Te,"value"))}else if(~V.indexOf(H)){var ye={value:ne.slice(1),source:pe,sourceIndex:oe};Z=new p.default(re(ye,"value"))}else{var ge={value:ne,source:pe,sourceIndex:oe};re(ge,"value"),Z=new S.default(ge)}F.newNode(Z,f),f=null}),this.position++},A.word=function(f){var O=this.nextToken;return O&&this.content(O)==="|"?(this.position++,this.namespace()):this.splitWord(f)},A.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.current._inferEndPosition(),this.root},A.parse=function(f){switch(this.currToken[r.FIELDS.TYPE]){case o.space:this.space();break;case o.comment:this.comment();break;case o.openParenthesis:this.parentheses();break;case o.closeParenthesis:f&&this.missingParenthesis();break;case o.openSquare:this.attribute();break;case o.dollar:case o.caret:case o.equals:case o.word:this.word();break;case o.colon:this.pseudo();break;case o.comma:this.comma();break;case o.asterisk:this.universal();break;case o.ampersand:this.nesting();break;case o.slash:case o.combinator:this.combinator();break;case o.str:this.string();break;case o.closeSquare:this.missingSquareBracket();case o.semicolon:this.missingBackslash();default:this.unexpected()}},A.expected=function(f,O,F){if(Array.isArray(f)){var l=f.pop();f=f.join(", ")+" or "+l}var C=/^[aeiou]/.test(f[0])?"an":"a";return F?this.error("Expected "+C+" "+f+', found "'+F+'" instead.',{index:O}):this.error("Expected "+C+" "+f+".",{index:O})},A.requiredSpace=function(f){return this.options.lossy?" ":f},A.optionalSpace=function(f){return this.options.lossy?"":f},A.lossySpace=function(f,O){return this.options.lossy?O?" ":"":f},A.parseParenthesisToken=function(f){var O=this.content(f);return f[r.FIELDS.TYPE]===o.space?this.requiredSpace(O):O},A.newNode=function(f,O){return O&&(/^ +$/.test(O)&&(this.options.lossy||(this.spaces=(this.spaces||"")+O),O=!0),f.namespace=O,re(f,"namespace")),this.spaces&&(f.spaces.before=this.spaces,this.spaces=""),this.current.append(f)},A.content=function(f){return f===void 0&&(f=this.currToken),this.css.slice(f[r.FIELDS.START_POS],f[r.FIELDS.END_POS])},A.locateNextMeaningfulToken=function(f){f===void 0&&(f=this.position+1);for(var O=f;O<this.tokens.length;)if(W[this.tokens[O][r.FIELDS.TYPE]]){O++;continue}else return O;return-1},w(L,[{key:"currToken",get:function(){return this.tokens[this.position]}},{key:"nextToken",get:function(){return this.tokens[this.position+1]}},{key:"prevToken",get:function(){return this.tokens[this.position-1]}}]),L}();e.default=fe,a.exports=e.default}(Oe,Oe.exports);var br=Oe.exports;(function(a,e){e.__esModule=!0,e.default=void 0;var g=u(br);function u(y){return y&&y.__esModule?y:{default:y}}var d=function(){function y(S,t){this.func=S||function(){},this.funcRes=null,this.options=t}var p=y.prototype;return p._shouldUpdateSelector=function(t,n){n===void 0&&(n={});var i=Object.assign({},this.options,n);return i.updateSelector===!1?!1:typeof t!="string"},p._isLossy=function(t){t===void 0&&(t={});var n=Object.assign({},this.options,t);return n.lossless===!1},p._root=function(t,n){n===void 0&&(n={});var i=new g.default(t,this._parseOptions(n));return i.root},p._parseOptions=function(t){return{lossy:this._isLossy(t)}},p._run=function(t,n){var i=this;return n===void 0&&(n={}),new Promise(function(s,c){try{var k=i._root(t,n);Promise.resolve(i.func(k)).then(function(b){var r=void 0;return i._shouldUpdateSelector(t,n)&&(r=k.toString(),t.selector=r),{transform:b,root:k,string:r}}).then(s,c)}catch(b){c(b);return}})},p._runSync=function(t,n){n===void 0&&(n={});var i=this._root(t,n),s=this.func(i);if(s&&typeof s.then=="function")throw new Error("Selector processor returned a promise to a synchronous call.");var c=void 0;return n.updateSelector&&typeof t!="string"&&(c=i.toString(),t.selector=c),{transform:s,root:i,string:c}},p.ast=function(t,n){return this._run(t,n).then(function(i){return i.root})},p.astSync=function(t,n){return this._runSync(t,n).root},p.transform=function(t,n){return this._run(t,n).then(function(i){return i.transform})},p.transformSync=function(t,n){return this._runSync(t,n).transform},p.process=function(t,n){return this._run(t,n).then(function(i){return i.string||i.root.toString()})},p.processSync=function(t,n){var i=this._runSync(t,n);return i.string||i.root.toString()},y}();e.default=d,a.exports=e.default})(we,we.exports);var Dr=we.exports,_t={},G={};G.__esModule=!0,G.universal=G.tag=G.string=G.selector=G.root=G.pseudo=G.nesting=G.id=G.comment=G.combinator=G.className=G.attribute=void 0;var Lr=ie($e),xr=ie(st),Ar=ie(ht),Mr=ie(at),Fr=ie(ot),Nr=ie(pt),qr=ie(ct),Rr=ie(nt),Cr=ie(it),Ur=ie(ft),Wr=ie(ut),Qr=ie(lt);function ie(a){return a&&a.__esModule?a:{default:a}}var Br=function(e){return new Lr.default(e)};G.attribute=Br;var Yr=function(e){return new xr.default(e)};G.className=Yr;var $r=function(e){return new Ar.default(e)};G.combinator=$r;var Gr=function(e){return new Mr.default(e)};G.comment=Gr;var Vr=function(e){return new Fr.default(e)};G.id=Vr;var zr=function(e){return new Nr.default(e)};G.nesting=zr;var Hr=function(e){return new qr.default(e)};G.pseudo=Hr;var Kr=function(e){return new Rr.default(e)};G.root=Kr;var Jr=function(e){return new Cr.default(e)};G.selector=Jr;var Xr=function(e){return new Ur.default(e)};G.string=Xr;var Zr=function(e){return new Wr.default(e)};G.tag=Zr;var jr=function(e){return new Qr.default(e)};G.universal=jr;var B={};B.__esModule=!0,B.isNode=Je,B.isPseudoElement=Tt,B.isPseudoClass=ln,B.isContainer=hn,B.isNamespace=pn,B.isUniversal=B.isTag=B.isString=B.isSelector=B.isRoot=B.isPseudo=B.isNesting=B.isIdentifier=B.isComment=B.isCombinator=B.isClassName=B.isAttribute=void 0;var z=q,ee,en=(ee={},ee[z.ATTRIBUTE]=!0,ee[z.CLASS]=!0,ee[z.COMBINATOR]=!0,ee[z.COMMENT]=!0,ee[z.ID]=!0,ee[z.NESTING]=!0,ee[z.PSEUDO]=!0,ee[z.ROOT]=!0,ee[z.SELECTOR]=!0,ee[z.STRING]=!0,ee[z.TAG]=!0,ee[z.UNIVERSAL]=!0,ee);function Je(a){return typeof a=="object"&&en[a.type]}function se(a,e){return Je(e)&&e.type===a}var gt=se.bind(null,z.ATTRIBUTE);B.isAttribute=gt;var tn=se.bind(null,z.CLASS);B.isClassName=tn;var rn=se.bind(null,z.COMBINATOR);B.isCombinator=rn;var nn=se.bind(null,z.COMMENT);B.isComment=nn;var sn=se.bind(null,z.ID);B.isIdentifier=sn;var an=se.bind(null,z.NESTING);B.isNesting=an;var Xe=se.bind(null,z.PSEUDO);B.isPseudo=Xe;var on=se.bind(null,z.ROOT);B.isRoot=on;var un=se.bind(null,z.SELECTOR);B.isSelector=un;var fn=se.bind(null,z.STRING);B.isString=fn;var St=se.bind(null,z.TAG);B.isTag=St;var cn=se.bind(null,z.UNIVERSAL);B.isUniversal=cn;function Tt(a){return Xe(a)&&a.value&&(a.value.startsWith("::")||a.value.toLowerCase()===":before"||a.value.toLowerCase()===":after"||a.value.toLowerCase()===":first-letter"||a.value.toLowerCase()===":first-line")}function ln(a){return Xe(a)&&!Tt(a)}function hn(a){return!!(Je(a)&&a.walk)}function pn(a){return gt(a)||St(a)}(function(a){a.__esModule=!0;var e=q;Object.keys(e).forEach(function(d){d==="default"||d==="__esModule"||d in a&&a[d]===e[d]||(a[d]=e[d])});var g=G;Object.keys(g).forEach(function(d){d==="default"||d==="__esModule"||d in a&&a[d]===g[d]||(a[d]=g[d])});var u=B;Object.keys(u).forEach(function(d){d==="default"||d==="__esModule"||d in a&&a[d]===u[d]||(a[d]=u[d])})})(_t),function(a,e){e.__esModule=!0,e.default=void 0;var g=p(Dr),u=y(_t);function d(){if(typeof WeakMap!="function")return null;var n=new WeakMap;return d=function(){return n},n}function y(n){if(n&&n.__esModule)return n;if(n===null||typeof n!="object"&&typeof n!="function")return{default:n};var i=d();if(i&&i.has(n))return i.get(n);var s={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in n)if(Object.prototype.hasOwnProperty.call(n,k)){var b=c?Object.getOwnPropertyDescriptor(n,k):null;b&&(b.get||b.set)?Object.defineProperty(s,k,b):s[k]=n[k]}return s.default=n,i&&i.set(n,s),s}function p(n){return n&&n.__esModule?n:{default:n}}var S=function(i){return new g.default(i)};Object.assign(S,u),delete S.__esModule;var t=S;e.default=t,a.exports=e.default}(me,me.exports);var dn=me.exports;const vn=ve(dn);function _n(a){return a.replace(/\\,/g,"\\2c ")}function gn(a){var g;let e=vn.className();return e.value=a,_n(((g=e==null?void 0:e.raws)==null?void 0:g.value)??e.value)}let Sn=[["first","&:first-child"],["last","&:last-child"],["only","&:only-child"],["odd","&:nth-child(odd)"],["even","&:nth-child(even)"],"first-of-type","last-of-type","only-of-type",["visited",({container:a})=>(wt(a,["--tw-text-opacity","--tw-border-opacity","--tw-bg-opacity"]),"&:visited")],"target",["open","&[open]"],"default","checked","indeterminate","placeholder-shown","autofill","optional","required","valid","invalid","in-range","out-of-range","read-only","empty","focus-within",["hover","&:hover"],"focus","focus-visible","active","enabled","disabled"].map(a=>Array.isArray(a)?a:[a,`&:${a}`]);return Et(function({matchVariant:a}){a("peer-next",(e="",g)=>{let u=tt(typeof e=="function"?e(g):e);u.includes("&")||(u="&"+u);const d=(i,{modifier:s})=>s?[`:merge(.peer\\/${gn(s)})`," + &"]:[":merge(.peer)"," + &"];let[y,p]=d("",g),S=null,t=null,n=0;for(let i=0;i<u.length;++i){let s=u[i];s==="&"?S=i:s==="'"||s==='"'?n+=1:S!==null&&s===" "&&!n&&(t=i)}return S!==null&&t===null&&(t=u.length),u.slice(0,S)+y+u.slice(S+1,t)+p+u.slice(t)},{values:Object.fromEntries(Sn)})})}); |
{ | ||
"name": "@storefront-ui/tw-plugin-peer-next", | ||
"description": "SFUI peer-next plugin for Tailwind", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "sideEffects": false, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
144244
0.03%7
-12.5%2572
-0.23%