UNPKG

@rocketspark/domain-checker

Version:
13 lines 265 kB
/*! * * @rocketspark/domain-checker v1.0.12 * git+https://github.com/rocketspark/domain-checker.git * * Copyright (c) Lee Reichardt and project contributors. * * This source code is licensed under the no license license found in the * LICENSE file in the root directory of this source tree. * */ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.DomainChecker=t():e.DomainChecker=t()}(self,(function(){return function(){var e,t,r={6919:function(e,t,r){"use strict";r.d(t,{H:function(){return Q},a:function(){return L},b:function(){return We},c:function(){return ee},f:function(){return Me},g:function(){return K},h:function(){return G},r:function(){return h}});const n=!1,i="hydrated",s=!0,o=!0,a=!0;var l=Object.defineProperty,c=new WeakMap,u=e=>c.get(e),h=(e,t)=>{c.set(t.$lazyInstance$=e,t)},d=(e,t)=>t in e,p=(e,t)=>(0,console.error)(e,t),f=new Map,m=new Map,g="slot-fb{display:contents}slot-fb[hidden]{display:none}",y="http://www.w3.org/1999/xlink",b="undefined"!=typeof window?window:{},v=b.document||{head:{}},w={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,r,n)=>e.addEventListener(t,r,n),rel:(e,t,r,n)=>e.removeEventListener(t,r,n),ce:(e,t)=>new CustomEvent(e,t)},x=(()=>{let e=!1;try{v.addEventListener("e",null,Object.defineProperty({},"passive",{get(){e=!0}}))}catch(e){}return e})(),S=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),$=!1,C=[],E=[],N=(e,t)=>r=>{e.push(r),$||($=!0,t&&4&w.$flags$?k(A):w.raf(A))},T=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){p(e)}e.length=0},A=()=>{T(C),T(E),($=C.length>0)&&w.raf(A)},k=e=>{return Promise.resolve(t).then(e);var t},O=N(E,!0),L=e=>{const t=new URL(e,w.$resourcesUrl$);return t.origin!==b.location.origin?t.href:t.pathname},I=e=>"object"===(e=typeof e)||"function"===e;function P(e){var t,r,n;return null!=(n=null==(r=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:r.getAttribute("content"))?n:void 0}((e,t)=>{for(var r in t)l(e,r,{get:t[r],enumerable:!0})})({},{err:()=>j,map:()=>R,ok:()=>D,unwrap:()=>M,unwrapErr:()=>_});var D=e=>({isOk:!0,isErr:!1,value:e}),j=e=>({isOk:!1,isErr:!0,value:e});function R(e,t){if(e.isOk){const r=t(e.value);return r instanceof Promise?r.then((e=>D(e))):D(r)}if(e.isErr){const t=e.value;return j(t)}throw"should never get here"}var M=e=>{if(e.isOk)return e.value;throw e.value},_=e=>{if(e.isErr)return e.value;throw e.value},q=e=>{const t=e.__childNodes||e.childNodes;e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&"SLOT-FB"!==e.tagName&&B(t,e.tagName).forEach((e=>{var t;1===e.nodeType&&"SLOT-FB"===e.tagName&&((null==(t=V(e,e["s-sn"],!1))?void 0:t.length)?e.hidden=!0:e.hidden=!1)}));for(const e of t)1===e.nodeType&&(e.__childNodes||e.childNodes).length&&q(e)};function B(e,t,r){let n,i=0,s=[];for(;i<e.length;i++){if(n=e[i],n["s-sr"]&&n["s-hn"]===t&&(void 0===r||n["s-sn"]===r)&&(s.push(n),void 0!==r))return s;s=[...s,...B(n.childNodes,t,r)]}return s}var H,U,F,V=(e,t,r=!0)=>{const n=[];for((r&&e["s-sr"]||!e["s-sr"])&&n.push(e);(e=e.nextSibling)&&e["s-sn"]===t;)n.push(e);return n},z=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,G=(e,t,...r)=>{let n=null,i=null,s=null,o=!1,a=!1;const l=[],c=t=>{for(let r=0;r<t.length;r++)n=t[r],Array.isArray(n)?c(n):null!=n&&"boolean"!=typeof n&&((o="function"!=typeof e&&!I(n))&&(n=String(n)),o&&a?l[l.length-1].$text$+=n:l.push(o?W(null,n):n),a=o)};if(c(r),t){t.key&&(i=t.key),t.name&&(s=t.name);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,l,Z);const u=W(e,null);return u.$attrs$=t,l.length>0&&(u.$children$=l),u.$key$=i,u.$name$=s,u},W=(e,t)=>{const r={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null};return r},Q={},Z={forEach:(e,t)=>e.map(X).forEach(t),map:(e,t)=>e.map(X).map(t).map(J)},X=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),J=e=>{if("function"==typeof e.vtag){const t={...e.vattrs};return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),G(e.vtag,t,...e.vchildren||[])}const t=W(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},Y=(e,t)=>null==e||I(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?String(e):e,K=e=>u(e).$hostElement$,ee=(e,t,r)=>{const n=K(e);return{emit:e=>te(n,t,{bubbles:!!(4&r),composed:!!(2&r),cancelable:!!(1&r),detail:e})}},te=(e,t,r)=>{const n=w.ce(t,r);return e.dispatchEvent(n),n},re=new WeakMap,ne=e=>{const t=e.$cmpMeta$,r=e.$hostElement$,n=t.$flags$,i=(t.$tagName$,()=>{}),s=((e,t)=>{var r;const n=ie(t),i=m.get(n);if(e=11===e.nodeType?e:v,i)if("string"==typeof i){e=e.head||e;let s,o=re.get(e);if(o||re.set(e,o=new Set),!o.has(n)){{s=document.querySelector(`[sty-id="${n}"]`)||v.createElement("style"),s.innerHTML=i;const o=null!=(r=w.$nonce$)?r:P(v);if(null!=o&&s.setAttribute("nonce",o),!(1&t.$flags$))if("HEAD"===e.nodeName){const t=e.querySelectorAll("link[rel=preconnect]"),r=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(s,(null==r?void 0:r.parentNode)===e?r:null)}else if("host"in e)if(S){const t=new CSSStyleSheet;t.replaceSync(i),e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");t?t.innerHTML=i+t.innerHTML:e.prepend(s)}else e.append(s);1&t.$flags$&&e.insertBefore(s,null)}4&t.$flags$&&(s.innerHTML+=g),o&&o.add(n)}}else e.adoptedStyleSheets.includes(i)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,i]);return n})(r.shadowRoot?r.shadowRoot:r.getRootNode(),t);(10&n&&2&n||128&n)&&(r["s-sc"]=s,r.classList.add(s+"-h")),i()},ie=(e,t)=>"sc-"+e.$tagName$,se=(e,t,r,n,i,s,o)=>{if(r!==n){let o=d(e,t),a=t.toLowerCase();if("class"===t){const t=e.classList,i=ae(r);let s=ae(n);t.remove(...i.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!i.includes(e))))}else if("style"===t){for(const t in r)n&&null!=n[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in n)r&&n[t]===r[t]||(t.includes("-")?e.style.setProperty(t,n[t]):e.style[t]=n[t])}else if("key"===t);else if("ref"===t)n&&n(e);else if(o||"o"!==t[0]||"n"!==t[1]){const l=I(n);if((o||l&&null!==n)&&!i)try{if(e.tagName.includes("-"))e[t]!==n&&(e[t]=n);else{const i=null==n?"":n;"list"===t?o=!1:null!=r&&e[t]==i||("function"==typeof e.__lookupSetter__(t)?e[t]=i:e.setAttribute(t,i))}}catch(e){}let c=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,c=!0),null==n||!1===n?!1===n&&""!==e.getAttribute(t)||(c?e.removeAttributeNS(y,t):e.removeAttribute(t)):(!o||4&s||i)&&!l&&(n=!0===n?"":n,c?e.setAttributeNS(y,t,n):e.setAttribute(t,n))}else if(t="-"===t[2]?t.slice(3):d(b,a)?a.slice(2):a[2]+t.slice(3),r||n){const i=t.endsWith(le);t=t.replace(ce,""),r&&w.rel(e,t,r,i),n&&w.ael(e,t,n,i)}}},oe=/\s/,ae=e=>("object"==typeof e&&e&&"baseVal"in e&&(e=e.baseVal),e&&"string"==typeof e?e.split(oe):[]),le="Capture",ce=new RegExp(le+"$"),ue=(e,t,r,n)=>{const i=11===t.$elm$.nodeType&&t.$elm$.host?t.$elm$.host:t.$elm$,s=e&&e.$attrs$||{},o=t.$attrs$||{};for(const e of he(Object.keys(s)))e in o||se(i,e,s[e],void 0,r,t.$flags$);for(const e of he(Object.keys(o)))se(i,e,s[e],o[e],r,t.$flags$)};function he(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var de=!1,pe=!1,fe=!1,me=!1,ge=(e,t,r)=>{var n;const i=t.$children$[r];let s,a,l,c=0;if(de||(fe=!0,"slot"===i.$tag$&&(i.$flags$|=i.$children$?2:1)),null!==i.$text$)s=i.$elm$=v.createTextNode(i.$text$);else if(1&i.$flags$)s=i.$elm$=v.createTextNode("");else{if(me||(me="svg"===i.$tag$),s=i.$elm$=v.createElementNS(me?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!de&&o&&2&i.$flags$?"slot-fb":i.$tag$),me&&"foreignObject"===i.$tag$&&(me=!1),ue(null,i,me),null!=(u=H)&&void 0!==u&&s["s-si"]!==H&&s.classList.add(s["s-si"]=H),i.$children$)for(c=0;c<i.$children$.length;++c)a=ge(e,i,c),a&&s.appendChild(a);"svg"===i.$tag$?me=!1:"foreignObject"===s.tagName&&(me=!0)}var u;return s["s-hn"]=F,3&i.$flags$&&(s["s-sr"]=!0,s["s-cr"]=U,s["s-sn"]=i.$name$||"",s["s-rf"]=null==(n=i.$attrs$)?void 0:n.ref,l=e&&e.$children$&&e.$children$[r],l&&l.$tag$===i.$tag$&&e.$elm$&&ye(e.$elm$,!1),Te(U,s,t.$elm$,null==e?void 0:e.$elm$)),s},ye=(e,t)=>{w.$flags$|=1;const r=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]&&n){let t=e;for(;t=t.nextSibling;)t&&t["s-sn"]===e["s-sn"]&&t["s-sh"]===F&&r.push(t)}for(let e=r.length-1;e>=0;e--){const n=r[e];n["s-hn"]!==F&&n["s-ol"]&&(Ne(xe(n).parentNode,n,xe(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,fe=!0),t&&ye(n,t)}w.$flags$&=-2},be=(e,t,r,n,i,s)=>{let o,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===F&&(a=a.shadowRoot);i<=s;++i)n[i]&&(o=ge(null,r,i),o&&(n[i].$elm$=o,Ne(a,o,xe(t))))},ve=(e,t,r)=>{for(let n=t;n<=r;++n){const t=e[n];if(t){const e=t.$elm$;Ee(t),e&&(pe=!0,e["s-ol"]?e["s-ol"].remove():ye(e,!0),e.remove())}}},we=(e,t,r=!1)=>e.$tag$===t.$tag$&&("slot"===e.$tag$?e.$name$===t.$name$:r?(r&&!e.$key$&&t.$key$&&(e.$key$=t.$key$),!0):e.$key$===t.$key$),xe=e=>e&&e["s-ol"]||e,Se=(e,t,r=!1)=>{const n=t.$elm$=e.$elm$,i=e.$children$,s=t.$children$,o=t.$tag$,l=t.$text$;let c;null===l?(me="svg"===o||"foreignObject"!==o&&me,("slot"!==o||de)&&ue(e,t,me),null!==i&&null!==s?((e,t,r,n,i=!1)=>{let s,o,a=0,l=0,c=0,u=0,h=t.length-1,d=t[0],p=t[h],f=n.length-1,m=n[0],g=n[f];for(;a<=h&&l<=f;)if(null==d)d=t[++a];else if(null==p)p=t[--h];else if(null==m)m=n[++l];else if(null==g)g=n[--f];else if(we(d,m,i))Se(d,m,i),d=t[++a],m=n[++l];else if(we(p,g,i))Se(p,g,i),p=t[--h],g=n[--f];else if(we(d,g,i))"slot"!==d.$tag$&&"slot"!==g.$tag$||ye(d.$elm$.parentNode,!1),Se(d,g,i),Ne(e,d.$elm$,p.$elm$.nextSibling),d=t[++a],g=n[--f];else if(we(p,m,i))"slot"!==d.$tag$&&"slot"!==g.$tag$||ye(p.$elm$.parentNode,!1),Se(p,m,i),Ne(e,p.$elm$,d.$elm$),p=t[--h],m=n[++l];else{for(c=-1,u=a;u<=h;++u)if(t[u]&&null!==t[u].$key$&&t[u].$key$===m.$key$){c=u;break}c>=0?(o=t[c],o.$tag$!==m.$tag$?s=ge(t&&t[l],r,c):(Se(o,m,i),t[c]=void 0,s=o.$elm$),m=n[++l]):(s=ge(t&&t[l],r,l),m=n[++l]),s&&Ne(xe(d.$elm$).parentNode,s,xe(d.$elm$))}a>h?be(e,null==n[f+1]?null:n[f+1].$elm$,r,n,l,f):l>f&&ve(t,a,h)})(n,i,t,s,r):null!==s?(null!==e.$text$&&(n.textContent=""),be(n,null,t,s,0,s.length-1)):!r&&a&&null!==i&&ve(i,0,i.length-1),me&&"svg"===o&&(me=!1)):(c=n["s-cr"])?c.parentNode.textContent=l:e.$text$!==l&&(n.data=l)},$e=[],Ce=e=>{let t,r,i;const s=e.__childNodes||e.childNodes;for(const e of s){if(e["s-sr"]&&(t=e["s-cr"])&&t.parentNode){r=t.parentNode.__childNodes||t.parentNode.childNodes;const s=e["s-sn"];for(i=r.length-1;i>=0;i--)if(t=r[i],!t["s-cn"]&&!t["s-nr"]&&t["s-hn"]!==e["s-hn"]&&!n)if(z(t,s)){let r=$e.find((e=>e.$nodeToRelocate$===t));pe=!0,t["s-sn"]=t["s-sn"]||s,r?(r.$nodeToRelocate$["s-sh"]=e["s-hn"],r.$slotRefNode$=e):(t["s-sh"]=e["s-hn"],$e.push({$slotRefNode$:e,$nodeToRelocate$:t})),t["s-sr"]&&$e.map((e=>{z(e.$nodeToRelocate$,t["s-sn"])&&(r=$e.find((e=>e.$nodeToRelocate$===t)),r&&!e.$slotRefNode$&&(e.$slotRefNode$=r.$slotRefNode$))}))}else $e.some((e=>e.$nodeToRelocate$===t))||$e.push({$nodeToRelocate$:t})}1===e.nodeType&&Ce(e)}},Ee=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(Ee)},Ne=(e,t,r)=>("string"==typeof t["s-sn"]&&t["s-sr"]&&t["s-cr"]&&Te(t["s-cr"],t,e,t.parentElement),null==e?void 0:e.insertBefore(t,r));function Te(e,t,r,n){var i,s;let o;if(e&&"string"==typeof t["s-sn"]&&t["s-sr"]&&e.parentNode&&e.parentNode["s-sc"]&&(o=t["s-si"]||e.parentNode["s-sc"])){const e=t["s-sn"],a=t["s-hn"];if(null==(i=r.classList)||i.add(o+"-s"),n&&(null==(s=n.classList)?void 0:s.contains(o+"-s"))){let t=(n.__childNodes||n.childNodes)[0],r=!1;for(;t;){if(t["s-sn"]!==e&&t["s-hn"]===a&&t["s-sr"]){r=!0;break}t=t.nextSibling}r||n.classList.remove(o+"-s")}}}var Ae=(e,t,r=!1)=>{var n,i,s,o;const a=e.$hostElement$,l=e.$cmpMeta$,c=e.$vnode$||W(null,null),u=(h=t)&&h.$tag$===Q?t:G(null,null,t);var h;if(F=a.tagName,r&&u.$attrs$)for(const e of Object.keys(u.$attrs$))a.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(u.$attrs$[e]=a[e]);if(u.$tag$=null,u.$flags$|=4,e.$vnode$=u,u.$elm$=c.$elm$=a.shadowRoot||a,H=a["s-sc"],de=!(!(1&l.$flags$)||128&l.$flags$),U=a["s-cr"],pe=!1,Se(c,u,r),w.$flags$|=1,fe){Ce(u.$elm$);for(const e of $e){const t=e.$nodeToRelocate$;if(!t["s-ol"]){const e=v.createTextNode("");e["s-nr"]=t,Ne(t.parentNode,t["s-ol"]=e,t)}}for(const e of $e){const t=e.$nodeToRelocate$,a=e.$slotRefNode$;if(a){const e=a.parentNode;let r=a.nextSibling;{let s=null==(n=t["s-ol"])?void 0:n.previousSibling;for(;s;){let n=null!=(i=s["s-nr"])?i:null;if(n&&n["s-sn"]===t["s-sn"]&&e===(n.__parentNode||n.parentNode)){for(n=n.nextSibling;n===t||(null==n?void 0:n["s-sr"]);)n=null==n?void 0:n.nextSibling;if(!n||!n["s-nr"]){r=n;break}}s=s.previousSibling}}const o=t.__parentNode||t.parentNode,l=t.__nextSibling||t.nextSibling;(!r&&e!==o||l!==r)&&t!==r&&(!t["s-hn"]&&t["s-ol"]&&(t["s-hn"]=t["s-ol"].parentNode.nodeName),Ne(e,t,r),1===t.nodeType&&"SLOT-FB"!==t.tagName&&(t.hidden=null!=(s=t["s-ih"])&&s)),t&&"function"==typeof a["s-rf"]&&a["s-rf"](t)}else 1===t.nodeType&&(r&&(t["s-ih"]=null!=(o=t.hidden)&&o),t.hidden=!0)}}pe&&q(u.$elm$),w.$flags$&=-2,$e.length=0,U=void 0},ke=(e,t)=>{if(t&&!e.$onRenderResolve$&&t["s-p"]){const r=t["s-p"].push(new Promise((n=>e.$onRenderResolve$=()=>{t["s-p"].splice(r-1,1),n()})))}},Oe=(e,t)=>{if(e.$flags$|=16,4&e.$flags$)return void(e.$flags$|=512);ke(e,e.$ancestorComponent$);return O((()=>Le(e,t)))},Le=(e,t)=>{const r=e.$hostElement$,n=(e.$cmpMeta$.$tagName$,()=>{}),i=e.$lazyInstance$;if(!i)throw new Error(`Can't render component <${r.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let s;return t&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map((([e,t])=>qe(i,e,t,r))),e.$queuedListeners$=void 0),s=qe(i,"componentWillLoad",void 0,r)),s=Ie(s,(()=>qe(i,"componentWillRender",void 0,r))),n(),Ie(s,(()=>De(e,i,t)))},Ie=(e,t)=>Pe(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),Pe=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,De=async(e,t,r)=>{var n;const i=e.$hostElement$,s=(e.$cmpMeta$.$tagName$,()=>{}),o=i["s-rc"];r&&ne(e);const a=(e.$cmpMeta$.$tagName$,()=>{});je(e,t,i,r),o&&(o.map((e=>e())),i["s-rc"]=void 0),a(),s();{const t=null!=(n=i["s-p"])?n:[],r=()=>Re(e);0===t.length?r():(Promise.all(t).then(r),e.$flags$|=4,t.length=0)}},je=(e,t,r,n)=>{try{t=t.render(),e.$flags$&=-17,e.$flags$|=2,Ae(e,t,n)}catch(t){p(t,e.$hostElement$)}return null},Re=e=>{e.$cmpMeta$.$tagName$;const t=e.$hostElement$,r=()=>{},n=e.$lazyInstance$,i=e.$ancestorComponent$;qe(n,"componentDidRender",void 0,t),64&e.$flags$?(qe(n,"componentDidUpdate",void 0,t),r()):(e.$flags$|=64,Be(t),qe(n,"componentDidLoad",void 0,t),r(),e.$onReadyResolve$(t),i||_e()),e.$onInstanceResolve$(t),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),512&e.$flags$&&k((()=>Oe(e,!1))),e.$flags$&=-517},Me=e=>{{const t=u(e),r=t.$hostElement$.isConnected;return r&&2==(18&t.$flags$)&&Oe(t,!1),r}},_e=e=>{k((()=>te(b,"appload",{detail:{namespace:"rocketspark"}})))},qe=(e,t,r,n)=>{if(e&&e[t])try{return e[t](r)}catch(e){p(e,n)}},Be=e=>{var t;return e.classList.add(null!=(t=i)?t:"hydrated")},He=(e,t,r,n)=>{const i=u(e);if(!i)throw new Error(`Couldn't find host element for "${n.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const s=i.$hostElement$,o=i.$instanceValues$.get(t),a=i.$flags$,l=i.$lazyInstance$;r=Y(r,n.$members$[t][0]);const c=Number.isNaN(o)&&Number.isNaN(r);if((!(8&a)||void 0===o)&&(r!==o&&!c)&&(i.$instanceValues$.set(t,r),l)){if(n.$watchers$&&128&a){const e=n.$watchers$[t];e&&e.map((e=>{try{l[e](r,o,t)}catch(e){p(e,s)}}))}2==(18&a)&&Oe(i,!1)}},Ue=(e,t,r)=>{var n,i;const o=e.prototype;if(t.$members$||t.$watchers$||e.watchers){e.watchers&&!t.$watchers$&&(t.$watchers$=e.watchers);const a=Object.entries(null!=(n=t.$members$)?n:{});if(a.map((([e,[n]])=>{if(31&n||2&r&&32&n){const{get:i,set:s}=Object.getOwnPropertyDescriptor(o,e)||{};i&&(t.$members$[e][0]|=2048),s&&(t.$members$[e][0]|=4096),(1&r||!i)&&Object.defineProperty(o,e,{get(){{if(!(2048&t.$members$[e][0]))return((e,t)=>u(e).$instanceValues$.get(t))(this,e);const r=u(this),n=r?r.$lazyInstance$:o;if(!n)return;return n[e]}},configurable:!0,enumerable:!0}),Object.defineProperty(o,e,{set(i){const o=u(this);if(s){const r=32&n?this[e]:o.$hostElement$[e];return void 0===r&&o.$instanceValues$.get(e)?i=o.$instanceValues$.get(e):!o.$instanceValues$.get(e)&&r&&o.$instanceValues$.set(e,r),s.apply(this,[Y(i,n)]),i=32&n?this[e]:o.$hostElement$[e],void He(this,e,i,t)}{if(!(1&r&&4096&t.$members$[e][0]))return He(this,e,i,t),void(1&r&&!o.$lazyInstance$&&o.$onReadyPromise$.then((()=>{4096&t.$members$[e][0]&&o.$lazyInstance$[e]!==o.$instanceValues$.get(e)&&(o.$lazyInstance$[e]=i)})));const s=()=>{const r=o.$lazyInstance$[e];!o.$instanceValues$.get(e)&&r&&o.$instanceValues$.set(e,r),o.$lazyInstance$[e]=Y(i,n),He(this,e,o.$lazyInstance$[e],t)};o.$lazyInstance$?s():o.$onReadyPromise$.then((()=>s()))}}})}else 1&r&&64&n&&Object.defineProperty(o,e,{value(...t){var r;const n=u(this);return null==(r=null==n?void 0:n.$onInstancePromise$)?void 0:r.then((()=>{var r;return null==(r=n.$lazyInstance$)?void 0:r[e](...t)}))}})})),1&r){const r=new Map;o.attributeChangedCallback=function(e,n,i){w.jmp((()=>{var a;const l=r.get(e);if(this.hasOwnProperty(l)&&s)i=this[l],delete this[l];else{if(o.hasOwnProperty(l)&&"number"==typeof this[l]&&this[l]==i)return;if(null==l){const r=u(this),s=null==r?void 0:r.$flags$;if(s&&!(8&s)&&128&s&&i!==n){const s=r.$lazyInstance$,o=null==(a=t.$watchers$)?void 0:a[e];null==o||o.forEach((t=>{null!=s[t]&&s[t].call(s,i,n,e)}))}return}}const c=Object.getOwnPropertyDescriptor(o,l);(i=(null!==i||"boolean"!=typeof this[l])&&i)===this[l]||c.get&&!c.set||(this[l]=i)}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(i=t.$watchers$)?i:{}),...a.filter((([e,t])=>15&t[0])).map((([e,t])=>{const n=t[1]||e;return r.set(n,e),n}))]))}}return e},Fe=async(e,t,n,i)=>{let s;if(!(32&t.$flags$)){t.$flags$|=32;if(n.$lazyBundleId$){const i=((e,t)=>{const n=e.$tagName$.replace(/-/g,"_"),i=e.$lazyBundleId$;if(!i)return;const s=f.get(i);return s?s[n]:r(3274)(`./${i}.entry.js`).then((e=>(f.set(i,e),e[n])),(e=>{p(e,t.$hostElement$)})) /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,t);if(i&&"then"in i){const e=()=>{};s=await i,e()}else s=i;if(!s)throw new Error(`Constructor for "${n.$tagName$}#${t.$modeName$}" was not found`);s.isProxied||(n.$watchers$=s.watchers,Ue(s,n,2),s.isProxied=!0);const o=(n.$tagName$,()=>{});t.$flags$|=8;try{new s(t)}catch(t){p(t,e)}t.$flags$&=-9,t.$flags$|=128,o(),Ve(t.$lazyInstance$,e)}else{s=e.constructor;const r=e.localName;customElements.whenDefined(r).then((()=>t.$flags$|=128))}if(s&&s.style){let e;"string"==typeof s.style&&(e=s.style);const t=ie(n);if(!m.has(t)){const r=(n.$tagName$,()=>{});((e,t,r)=>{let n=m.get(e);S&&r?(n=n||new CSSStyleSheet,"string"==typeof n?n=t:n.replaceSync(t)):n=t,m.set(e,n)})(t,e,!!(1&n.$flags$)),r()}}}const o=t.$ancestorComponent$,a=()=>Oe(t,!0);o&&o["s-rc"]?o["s-rc"].push(a):a()},Ve=(e,t)=>{qe(e,"connectedCallback",void 0,t)},ze=e=>{const t=e["s-cr"]=v.createComment("");t["s-cn"]=!0,Ne(e,t,e.firstChild)},Ge=(e,t)=>{qe(e,"disconnectedCallback",void 0,t||e)},We=(e,t={})=>{var r;const n=()=>{},i=[],s=t.exclude||[],o=b.customElements,a=v.head,l=a.querySelector("meta[charset]"),h=v.createElement("style"),d=[];let p,f=!0;Object.assign(w,t),w.$resourcesUrl$=new URL(t.resourcesUrl||"./",v.baseURI).href;let m=!1;if(e.map((e=>{e[1].map((t=>{var r;const n={$flags$:t[0],$tagName$:t[1],$members$:t[2],$listeners$:t[3]};4&n.$flags$&&(m=!0),n.$members$=t[2],n.$listeners$=t[3],n.$watchers$=null!=(r=t[4])?r:{};const a=n.$tagName$,l=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,t)=>{const r={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};r.$onInstancePromise$=new Promise((e=>r.$onInstanceResolve$=e)),r.$onReadyPromise$=new Promise((e=>r.$onReadyResolve$=e)),e["s-p"]=[],e["s-rc"]=[],c.set(e,r)})(e=this,n),1&n.$flags$)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw new Error(`Unable to re-use existing shadow root for ${n.$tagName$}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){const e=u(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,Qe(this,e,n.$listeners$)),p&&(clearTimeout(p),p=null),f?d.push(this):w.jmp((()=>(e=>{if(!(1&w.$flags$)){const t=u(e),r=t.$cmpMeta$,n=(r.$tagName$,()=>{});if(1&t.$flags$)Qe(e,t,r.$listeners$),(null==t?void 0:t.$lazyInstance$)?Ve(t.$lazyInstance$,e):(null==t?void 0:t.$onReadyPromise$)&&t.$onReadyPromise$.then((()=>Ve(t.$lazyInstance$,e)));else{t.$flags$|=1,12&r.$flags$&&ze(e);{let r=e;for(;r=r.parentNode||r.host;)if(r["s-p"]){ke(t,t.$ancestorComponent$=r);break}}r.$members$&&Object.entries(r.$members$).map((([t,[r]])=>{if(31&r&&e.hasOwnProperty(t)){const r=e[t];delete e[t],e[t]=r}})),Fe(e,t,r)}n()}})(this)))}disconnectedCallback(){w.jmp((()=>(async e=>{if(!(1&w.$flags$)){const t=u(e);t.$rmListeners$&&(t.$rmListeners$.map((e=>e())),t.$rmListeners$=void 0),(null==t?void 0:t.$lazyInstance$)?Ge(t.$lazyInstance$,e):(null==t?void 0:t.$onReadyPromise$)&&t.$onReadyPromise$.then((()=>Ge(t.$lazyInstance$,e)))}re.has(e)&&re.delete(e),e.shadowRoot&&re.has(e.shadowRoot)&&re.delete(e.shadowRoot)})(this))),w.raf((()=>{var e;const t=u(this),r=d.findIndex((e=>e===this));r>-1&&d.splice(r,1),(null==(e=null==t?void 0:t.$vnode$)?void 0:e.$elm$)instanceof Node&&!t.$vnode$.$elm$.isConnected&&delete t.$vnode$.$elm$}))}componentOnReady(){return u(this).$onReadyPromise$}};n.$lazyBundleId$=e[0],s.includes(a)||o.get(a)||(i.push(a),o.define(a,Ue(l,n,1)))}))})),i.length>0&&(m&&(h.textContent+=g),h.textContent+=i.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",h.innerHTML.length)){h.setAttribute("data-styles","");const e=null!=(r=w.$nonce$)?r:P(v);null!=e&&h.setAttribute("nonce",e),a.insertBefore(h,l?l.nextSibling:a.firstChild)}f=!1,d.length?d.map((e=>e.connectedCallback())):w.jmp((()=>p=setTimeout(_e,30))),n()},Qe=(e,t,r,n)=>{r&&r.map((([r,n,i])=>{const s=Xe(e,r),o=Ze(t,i),a=Je(r);w.ael(s,n,o,a),(t.$rmListeners$=t.$rmListeners$||[]).push((()=>w.rel(s,n,o,a)))}))},Ze=(e,t)=>r=>{var n;try{256&e.$flags$?null==(n=e.$lazyInstance$)||n[t](r):(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,r])}catch(t){p(t,e.$hostElement$)}},Xe=(e,t)=>4&t?v:e,Je=e=>x?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e)},3274:function(e,t,r){var n={"./color-picker_4.entry.js":[7245,245],"./rs-accordion.entry.js":[2714,714],"./rs-alert.entry.js":[3598,598],"./rs-button_4.entry.js":[6717,717],"./rs-caption.entry.js":[194,194],"./rs-card-content.entry.js":[7964,964],"./rs-card-header.entry.js":[9420,420],"./rs-card.entry.js":[572,572],"./rs-checkbox.entry.js":[5551,551],"./rs-chip.entry.js":[9984,984],"./rs-col.entry.js":[4970,970],"./rs-color-picker.entry.js":[278,278],"./rs-color-swatch.entry.js":[3208,208],"./rs-column-header_4.entry.js":[1567,567],"./rs-content-placeholder.entry.js":[5237,237],"./rs-content.entry.js":[6993,993],"./rs-dropdown_5.entry.js":[2795,795],"./rs-flint-popup-content.entry.js":[1404,404],"./rs-flint-popup.entry.js":[6588,588],"./rs-grid.entry.js":[2654,654],"./rs-icon.entry.js":[3167,167],"./rs-incrementer-option.entry.js":[4386,386],"./rs-incrementer.entry.js":[2542,542],"./rs-item-group.entry.js":[5847,847],"./rs-item.entry.js":[6833,833],"./rs-link-select.entry.js":[1835,835],"./rs-list-item.entry.js":[8616,616],"./rs-list-select.entry.js":[8631,631],"./rs-modal.entry.js":[9697,697],"./rs-multi-select-item.entry.js":[3808,808],"./rs-multi-select.entry.js":[4514,514],"./rs-overline.entry.js":[938,938],"./rs-popup.entry.js":[1890,890],"./rs-progress-bar.entry.js":[2017,17],"./rs-progress-circle.entry.js":[66,66],"./rs-progress-step.entry.js":[9584,584],"./rs-radio-group.entry.js":[2141,141],"./rs-radio.entry.js":[6643,643],"./rs-row.entry.js":[4008,8],"./rs-select_2.entry.js":[8871,871],"./rs-side-drawer.entry.js":[9147,147],"./rs-sidebar-incrementer.entry.js":[6571,571],"./rs-spinner.entry.js":[9853,853],"./rs-switch.entry.js":[3810,810],"./rs-template-picker.entry.js":[9899,899],"./rs-textarea.entry.js":[5524,524],"./rs-tool-tip.entry.js":[4060,60]};function i(e){if(!r.o(n,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=n[e],i=t[0];return r.e(t[1]).then((function(){return r(i)}))}i.keys=function(){return Object.keys(n)},i.id=3274,e.exports=i},4744:function(e){"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===r}(e)}(e)};var r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function i(e,t,r){return e.concat(t).map((function(e){return n(e,r)}))}function s(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function o(e,t){try{return t in e}catch(e){return!1}}function a(e,t,r){var i={};return r.isMergeableObject(e)&&s(e).forEach((function(t){i[t]=n(e[t],r)})),s(t).forEach((function(s){(function(e,t){return o(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,s)||(o(e,s)&&r.isMergeableObject(t[s])?i[s]=function(e,t){if(!t.customMerge)return l;var r=t.customMerge(e);return"function"==typeof r?r:l}(s,r)(e[s],t[s],r):i[s]=n(t[s],r))})),i}function l(e,r,s){(s=s||{}).arrayMerge=s.arrayMerge||i,s.isMergeableObject=s.isMergeableObject||t,s.cloneUnlessOtherwiseSpecified=n;var o=Array.isArray(r);return o===Array.isArray(e)?o?s.arrayMerge(e,r,s):a(e,r,s):n(r,s)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return l(e,r,t)}),{})};var c=l;e.exports=c},5413:function(e,t){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(r=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===r.Tag||e.type===r.Script||e.type===r.Style},t.Root=r.Root,t.Text=r.Text,t.Directive=r.Directive,t.Comment=r.Comment,t.Script=r.Script,t.Style=r.Style,t.Tag=r.Tag,t.CDATA=r.CDATA,t.Doctype=r.Doctype},9466:function(e,t){var r,n,i;n=[],void 0===(i="function"==typeof(r=function(){return function(e){function t(e){return" "===e||"\t"===e||"\n"===e||"\f"===e||"\r"===e}function r(t){var r,n=t.exec(e.substring(m));if(n)return r=n[0],m+=r.length,r}for(var n,i,s,o,a,l=e.length,c=/^[ \t\n\r\u000c]+/,u=/^[, \t\n\r\u000c]+/,h=/^[^ \t\n\r\u000c]+/,d=/[,]+$/,p=/^\d+$/,f=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,m=0,g=[];;){if(r(u),m>=l)return g;n=r(h),i=[],","===n.slice(-1)?(n=n.replace(d,""),b()):y()}function y(){for(r(c),s="",o="in descriptor";;){if(a=e.charAt(m),"in descriptor"===o)if(t(a))s&&(i.push(s),s="",o="after descriptor");else{if(","===a)return m+=1,s&&i.push(s),void b();if("("===a)s+=a,o="in parens";else{if(""===a)return s&&i.push(s),void b();s+=a}}else if("in parens"===o)if(")"===a)s+=a,o="in descriptor";else{if(""===a)return i.push(s),void b();s+=a}else if("after descriptor"===o)if(t(a));else{if(""===a)return void b();o="in descriptor",m-=1}m+=1}}function b(){var t,r,s,o,a,l,c,u,h,d=!1,m={};for(o=0;o<i.length;o++)l=(a=i[o])[a.length-1],c=a.substring(0,a.length-1),u=parseInt(c,10),h=parseFloat(c),p.test(c)&&"w"===l?((t||r)&&(d=!0),0===u?d=!0:t=u):f.test(c)&&"x"===l?((t||r||s)&&(d=!0),h<0?d=!0:r=h):p.test(c)&&"h"===l?((s||r)&&(d=!0),0===u?d=!0:s=u):d=!0;d?console&&console.log&&console.log("Invalid srcset descriptor found in '"+e+"' at '"+a+"'."):(m.url=n,t&&(m.w=t),r&&(m.d=r),s&&(m.h=s),g.push(m))}}})?r.apply(t,n):r)||(e.exports=i)},8633:function(e){var t=String,r=function(){return{isColorSupported:!1,reset:t,bold:t,dim:t,italic:t,underline:t,inverse:t,hidden:t,strikethrough:t,black:t,red:t,green:t,yellow:t,blue:t,magenta:t,cyan:t,white:t,gray:t,bgBlack:t,bgRed:t,bgGreen:t,bgYellow:t,bgBlue:t,bgMagenta:t,bgCyan:t,bgWhite:t,blackBright:t,redBright:t,greenBright:t,yellowBright:t,blueBright:t,magentaBright:t,cyanBright:t,whiteBright:t,bgBlackBright:t,bgRedBright:t,bgGreenBright:t,bgYellowBright:t,bgBlueBright:t,bgMagentaBright:t,bgCyanBright:t,bgWhiteBright:t}};e.exports=r(),e.exports.createColors=r},396:function(e,t,r){"use strict";let n=r(7793);class i extends n{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}}e.exports=i,i.default=i,n.registerAtRule(i)},9371:function(e,t,r){"use strict";let n=r(3152);class i extends n{constructor(e){super(e),this.type="comment"}}e.exports=i,i.default=i},7793:function(e,t,r){"use strict";let n,i,s,o,a=r(9371),l=r(5238),c=r(3152),{isClean:u,my:h}=r(4151);function d(e){return e.map((e=>(e.nodes&&(e.nodes=d(e.nodes)),delete e.source,e)))}function p(e){if(e[u]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)p(t)}class f extends c{append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t,r,n=this.getIterator();for(;this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],r=e(this.proxyOf.nodes[t],t),!1!==r);)this.indexes[n]+=1;return delete this.indexes[n],r}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?(...r)=>e[t](...r.map((e=>"function"==typeof e?(t,r)=>e(t.toProxy(),r):e))):"every"===t||"some"===t?r=>e[t](((e,...t)=>r(e.toProxy(),...t))):"root"===t?()=>e.root().toProxy():"nodes"===t?e.nodes.map((e=>e.toProxy())):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t]},set(e,t,r){return e[t]===r||(e[t]=r,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0}}}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let r,n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let e of i)this.proxyOf.nodes.splice(n+1,0,e);for(let e in this.indexes)r=this.indexes[e],n<r&&(this.indexes[e]=r+i.length);return this.markDirty(),this}insertBefore(e,t){let r,n=this.index(e),i=0===n&&"prepend",s=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(let e of s)this.proxyOf.nodes.splice(n,0,e);for(let e in this.indexes)r=this.indexes[e],n<=r&&(this.indexes[e]=r+s.length);return this.markDirty(),this}normalize(e,t){if("string"==typeof e)e=d(i(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(let t of e)t.parent&&t.parent.removeChild(t,"ignore")}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(let t of e)t.parent&&t.parent.removeChild(t,"ignore")}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new l(e)]}else if(e.selector||e.selectors)e=[new o(e)];else if(e.name)e=[new n(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new a(e)]}return e.map((e=>(e[h]||f.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[u]&&p(e),e.raws||(e.raws={}),void 0===e.raws.before&&t&&void 0!==t.raws.before&&(e.raws.before=t.raws.before.replace(/\S/g,"")),e.parent=this.proxyOf,e)))}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){let t;e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);for(let r in this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls((n=>{t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))})),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each(((t,r)=>{let n;try{n=e(t,r)}catch(e){throw t.addToError(e)}return!1!==n&&t.walk&&(n=t.walk(e)),n}))}walkAtRules(e,t){return t?e instanceof RegExp?this.walk(((r,n)=>{if("atrule"===r.type&&e.test(r.name))return t(r,n)})):this.walk(((r,n)=>{if("atrule"===r.type&&r.name===e)return t(r,n)})):(t=e,this.walk(((e,r)=>{if("atrule"===e.type)return t(e,r)})))}walkComments(e){return this.walk(((t,r)=>{if("comment"===t.type)return e(t,r)}))}walkDecls(e,t){return t?e instanceof RegExp?this.walk(((r,n)=>{if("decl"===r.type&&e.test(r.prop))return t(r,n)})):this.walk(((r,n)=>{if("decl"===r.type&&r.prop===e)return t(r,n)})):(t=e,this.walk(((e,r)=>{if("decl"===e.type)return t(e,r)})))}walkRules(e,t){return t?e instanceof RegExp?this.walk(((r,n)=>{if("rule"===r.type&&e.test(r.selector))return t(r,n)})):this.walk(((r,n)=>{if("rule"===r.type&&r.selector===e)return t(r,n)})):(t=e,this.walk(((e,r)=>{if("rule"===e.type)return t(e,r)})))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}f.registerParse=e=>{i=e},f.registerRule=e=>{o=e},f.registerAtRule=e=>{n=e},f.registerRoot=e=>{s=e},e.exports=f,f.default=f,f.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,n.prototype):"rule"===e.type?Object.setPrototypeOf(e,o.prototype):"decl"===e.type?Object.setPrototypeOf(e,l.prototype):"comment"===e.type?Object.setPrototypeOf(e,a.prototype):"root"===e.type&&Object.setPrototypeOf(e,s.prototype),e[h]=!0,e.nodes&&e.nodes.forEach((e=>{f.rebuild(e)}))}},3614:function(e,t,r){"use strict";let n=r(8633),i=r(9746);class s extends Error{constructor(e,t,r,n,i,o){super(e),this.name="CssSyntaxError",this.reason=e,i&&(this.file=i),n&&(this.source=n),o&&(this.plugin=o),void 0!==t&&void 0!==r&&("number"==typeof t?(this.line=t,this.column=r):(this.line=t.line,this.column=t.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,s)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;null==e&&(e=n.isColorSupported);let r=e=>e,s=e=>e,o=e=>e;if(e){let{bold:e,gray:t,red:a}=n.createColors(!0);s=t=>e(a(t)),r=e=>t(e),i&&(o=e=>i(e))}let a=t.split(/\r?\n/),l=Math.max(this.line-3,0),c=Math.min(this.line+2,a.length),u=String(c).length;return a.slice(l,c).map(((e,t)=>{let n=l+1+t,i=" "+(" "+n).slice(-u)+" | ";if(n===this.line){if(e.length>160){let t=20,n=Math.max(0,this.column-t),a=Math.max(this.column+t,this.endColumn+t),l=e.slice(n,a),c=r(i.replace(/\d/g," "))+e.slice(0,Math.min(this.column-1,t-1)).replace(/[^\t]/g," ");return s(">")+r(i)+o(l)+"\n "+c+s("^")}let t=r(i.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return s(">")+r(i)+o(e)+"\n "+t+s("^")}return" "+r(i)+o(e)})).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}}e.exports=s,s.default=s},5238:function(e,t,r){"use strict";let n=r(3152);class i extends n{constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}}e.exports=i,i.default=i},145:function(e,t,r){"use strict";let n,i,s=r(7793);class o extends s{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new n(new i,this,e).stringify()}}o.registerLazyResult=e=>{n=e},o.registerProcessor=e=>{i=e},e.exports=o,o.default=o},3438:function(e,t,r){"use strict";let n=r(396),i=r(9371),s=r(5238),o=r(1106),a=r(3878),l=r(5644),c=r(1534);function u(e,t){if(Array.isArray(e))return e.map((e=>u(e)));let{inputs:r,...h}=e;if(r){t=[];for(let e of r){let r={...e,__proto__:o.prototype};r.map&&(r.map={...r.map,__proto__:a.prototype}),t.push(r)}}if(h.nodes&&(h.nodes=e.nodes.map((e=>u(e,t)))),h.source){let{inputId:e,...r}=h.source;h.source=r,null!=e&&(h.source.input=t[e])}if("root"===h.type)return new l(h);if("decl"===h.type)return new s(h);if("rule"===h.type)return new c(h);if("comment"===h.type)return new i(h);if("atrule"===h.type)return new n(h);throw new Error("Unknown node type: "+e.type)}e.exports=u,u.default=u},1106:function(e,t,r){"use strict";let{nanoid:n}=r(5042),{isAbsolute:i,resolve:s}=r(197),{SourceMapConsumer:o,SourceMapGenerator:a}=r(1866),{fileURLToPath:l,pathToFileURL:c}=r(2739),u=r(3614),h=r(3878),d=r(9746),p=Symbol("fromOffsetCache"),f=Boolean(o&&a),m=Boolean(s&&i);class g{constructor(e,t={}){if(null==e||"object"==typeof e&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!m||/^\w+:\/\//.test(t.from)||i(t.from)?this.file=t.from:this.file=s(t.from)),m&&f){let e=new h(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id="<input css "+n(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,r,n={}){let i,s,o;if(t&&"object"==typeof t){let e=t,n=r;if("number"==typeof e.offset){let n=this.fromOffset(e.offset);t=n.line,r=n.col}else t=e.line,r=e.column;if("number"==typeof n.offset){let e=this.fromOffset(n.offset);s=e.line,i=e.col}else s=n.line,i=n.column}else if(!r){let e=this.fromOffset(t);t=e.line,r=e.col}let a=this.origin(t,r,s,i);return o=a?new u(e,void 0===a.endLine?a.line:{column:a.column,line:a.line},void 0===a.endLine?a.column:{column:a.endColumn,line:a.endLine},a.source,a.file,n.plugin):new u(e,void 0===s?t:{column:r,line:t},void 0===s?r:{column:i,line:s},this.css,this.file,n.plugin),o.input={column:r,endColumn:i,endLine:s,line:t,source:this.css},this.file&&(c&&(o.input.url=c(this.file).toString()),o.input.file=this.file),o}fromOffset(e){let t,r;if(this[p])r=this[p];else{let e=this.css.split("\n");r=new Array(e.length);let t=0;for(let n=0,i=e.length;n<i;n++)r[n]=t,t+=e[n].length+1;this[p]=r}t=r[r.length-1];let n=0;if(e>=t)n=r.length-1;else{let t,i=r.length-2;for(;n<i;)if(t=n+(i-n>>1),e<r[t])i=t-1;else{if(!(e>=r[t+1])){n=t;break}n=t+1}}return{col:e-r[n]+1,line:n+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:s(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,n){if(!this.map)return!1;let s,o,a=this.map.consumer(),u=a.originalPositionFor({column:t,line:e});if(!u.source)return!1;"number"==typeof r&&(s=a.originalPositionFor({column:n,line:r})),o=i(u.source)?c(u.source):new URL(u.source,this.map.consumer().sourceRoot||c(this.map.mapFile));let h={column:u.column,endColumn:s&&s.column,endLine:s&&s.line,line:u.line,url:o.toString()};if("file:"===o.protocol){if(!l)throw new Error("file: protocol is not available in this PostCSS build");h.file=l(o)}let d=a.sourceContentFor(u.source);return d&&(h.source=d),h}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}}e.exports=g,g.default=g,d&&d.registerInput&&d.registerInput(g)},6966:function(e,t,r){"use strict";let n=r(7793),i=r(145),s=r(3604),o=r(9577),a=r(3717),l=r(5644),c=r(3303),{isClean:u,my:h}=r(4151);r(6156);const d={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},p={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},f={Once:!0,postcssPlugin:!0,prepare:!0};function m(e){return"object"==typeof e&&"function"==typeof e.then}function g(e){let t=!1,r=d[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,0,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function y(e){let t;return t="document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:g(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function b(e){return e[u]=!1,e.nodes&&e.nodes.forEach((e=>b(e))),e}let v={};class w{constructor(e,t,r){let i;if(this.stringified=!1,this.processed=!1,"object"!=typeof t||null===t||"root"!==t.type&&"document"!==t.type)if(t instanceof w||t instanceof a)i=b(t.root),t.map&&(void 0===r.map&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=t.map);else{let e=o;r.syntax&&(e=r.syntax.parse),r.parser&&(e=r.parser),e.parse&&(e=e.parse);try{i=e(t,r)}catch(e){this.processed=!0,this.error=e}i&&!i[h]&&n.rebuild(i)}else i=b(t);this.result=new a(e,i,r),this.helpers={...v,postcss:v,result:this.result},this.plugins=this.processor.plugins.map((e=>"object"==typeof e&&e.prepare?{...e,...e.prepare(this.result)}:e))}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?r.postcssVersion:(e.plugin=r.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e}prepareVisitors(){this.listeners={};let e=(e,t,r)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,r])};for(let t of this.plugins)if("object"==typeof t)for(let r in t){if(!p[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!f[r])if("object"==typeof t[r])for(let n in t[r])e(t,"*"===n?r:r+"-"+n.toLowerCase(),t[r][n]);else"function"==typeof t[r]&&e(t,r,t[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],r=this.runOnRoot(t);if(m(r))try{await r}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[u];){e[u]=!0;let t=[y(e)];for(;t.length>0;){let e=this.visitTick(t);if(m(e))try{await e}catch(e){let r=t[t.length-1].node;throw this.handleError(e,r)}}}if(this.listeners.OnceExit)for(let[t,r]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if("document"===e.type){let t=e.nodes.map((e=>r(e,this.helpers)));await Promise.all(t)}else await r(e,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once){if("document"===this.result.root.type){let t=this.result.root.nodes.map((t=>e.Once(t,this.helpers)));return m(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=c;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let r=new s(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){if(m(this.runOnRoot(e)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[u];)e[u]=!0,this.walkSync(e);if(this.listeners.OnceExit)if("document"===e.type)for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[r,n]of e){let e;this.result.lastPlugin=r;try{e=n(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(m(e))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:r,visitors:n}=t;if("root"!==r.type&&"document"!==r.type&&!r.parent)return void e.pop();if(n.length>0&&t.visitorIndex<n.length){let[e,i]=n[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return i(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){let n,i=t.iterator;for(;n=r.nodes[r.indexes[i]];)if(r.indexes[i]+=1,!n[u])return n[u]=!0,void e.push(y(n));t.iterator=0,delete r.indexes[i]}let i=t.events;for(;t.eventIndex<i.length;){let e=i[t.eventIndex];if(t.eventIndex+=1,0===e)return void(r.nodes&&r.nodes.length&&(r[u]=!0,t.iterator=r.getIterator()));if(this.listeners[e])return void(t.visitors=this.listeners[e])}e.pop()}walkSync(e){e[u]=!0;let t=g(e);for(let r of t)if(0===r)e.nodes&&e.each((e=>{e[u]||this.walkSync(e)}));else{let t=this.listeners[r];if(t&&this.visitSync(t,e.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}w.registerPostcss=e=>{v=e},e.exports=w,w.default=w,l.registerLazyResult(w),i.registerLazyResult(w)},1752:function(e){"use strict";let t={comma(e){return t.split(e,[","],!0)},space(e){return t.split(e,[" ","\n","\t"])},split(e,t,r){let n=[],i="",s=!1,o=0,a=!1,l="",c=!1;for(let r of e)c?c=!1:"\\"===r?c=!0:a?r===l&&(a=!1):'"'===r||"'"===r?(a=!0,l=r):"("===r?o+=1:")"===r?o>0&&(o-=1):0===o&&t.includes(r)&&(s=!0),s?(""!==i&&n.push(i.trim()),i="",s=!1):i+=r;return(r||""!==i)&&n.push(i.trim()),n}};e.exports=t,t.default=t},3604:function(e,t,r){"use strict";let{dirname:n,relative:i,resolve:s,sep:o}=r(197),{SourceMapConsumer:a,SourceMapGenerator:l}=r(1866),{pathToFileURL:c}=r(2739),u=r(1106),h=Boolean(a&&l),d=Boolean(n&&s&&i&&o);e.exports=class{constructor(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t,r=this.toUrl(this.path(e.file)),i=e.root||n(e.file);!1===this.mapOpts.sourcesContent?(t=new a(e.text),t.sourcesContent&&(t.sourcesContent=null)):t=e.consumer(),this.map.applySourceMap(t,r,this.toUrl(this.path(i)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],"comment"===e.type&&e.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),d&&h&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,(t=>{e+=t})),[e]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=l.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new l({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css=