@cas-smartdesign/popover 4.2.0 → 4.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/docs/doc.mjs CHANGED
@@ -1,4 +1,4 @@
1
- (function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))a(n);new MutationObserver(n=>{for(const u of n)if(u.type==="childList")for(const l of u.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&a(l)}).observe(document,{childList:!0,subtree:!0});function i(n){const u={};return n.integrity&&(u.integrity=n.integrity),n.referrerPolicy&&(u.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?u.credentials="include":n.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function a(n){if(n.ep)return;n.ep=!0;const u=i(n);fetch(n.href,u)}})();const ji=`<!-- Load element with all dependencies directly -->
1
+ (function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))a(r);new MutationObserver(r=>{for(const l of r)if(l.type==="childList")for(const c of l.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&a(c)}).observe(document,{childList:!0,subtree:!0});function i(r){const l={};return r.integrity&&(l.integrity=r.integrity),r.referrerPolicy&&(l.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?l.credentials="include":r.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function a(r){if(r.ep)return;r.ep=!0;const l=i(r);fetch(r.href,l)}})();const ji=`<!-- Load element with all dependencies directly -->
2
2
  <script src="./popover-with-externals.js"><\/script>
3
3
 
4
4
  <div>
@@ -27,7 +27,7 @@
27
27
  >
28
28
  </div>
29
29
  `,$i=`<h3 id="tooltip-like-popover">Tooltip-like popover</h3>
30
- `,Ui={mainContent:zi,description:$i},Fi=Object.freeze(Object.defineProperty({__proto__:null,default:Ui},Symbol.toStringTag,{value:"Module"})),qi="modulepreload",Wi=function(t,e){return new URL(t,e).href},Jr={},Hi=function(e,i,a){let n=Promise.resolve();if(i&&i.length>0){let f=function(r){return Promise.all(r.map(c=>Promise.resolve(c).then(o=>({status:"fulfilled",value:o}),o=>({status:"rejected",reason:o}))))};const l=document.getElementsByTagName("link"),h=document.querySelector("meta[property=csp-nonce]"),b=h?.nonce||h?.getAttribute("nonce");n=f(i.map(r=>{if(r=Wi(r,a),r in Jr)return;Jr[r]=!0;const c=r.endsWith(".css"),o=c?'[rel="stylesheet"]':"";if(!!a)for(let d=l.length-1;d>=0;d--){const m=l[d];if(m.href===r&&(!c||m.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${r}"]${o}`))return;const p=document.createElement("link");if(p.rel=c?"stylesheet":qi,c||(p.as="script"),p.crossOrigin="",p.href=r,b&&p.setAttribute("nonce",b),document.head.appendChild(p),c)return new Promise((d,m)=>{p.addEventListener("load",d),p.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${r}`)))})}))}function u(l){const h=new Event("vite:preloadError",{cancelable:!0});if(h.payload=l,window.dispatchEvent(h),!h.defaultPrevented)throw l}return n.then(l=>{for(const h of l||[])h.status==="rejected"&&u(h.reason);return e().catch(u)})},Gi=`<div id="popover-from-source-container" style="height: 150px"></div>
30
+ `,Ui={mainContent:zi,description:$i},Fi=Object.freeze(Object.defineProperty({__proto__:null,default:Ui},Symbol.toStringTag,{value:"Module"})),qi="modulepreload",Wi=function(t,e){return new URL(t,e).href},Xr={},Hi=function(e,i,a){let r=Promise.resolve();if(i&&i.length>0){let f=function(n){return Promise.all(n.map(u=>Promise.resolve(u).then(o=>({status:"fulfilled",value:o}),o=>({status:"rejected",reason:o}))))};const c=document.getElementsByTagName("link"),h=document.querySelector("meta[property=csp-nonce]"),m=h?.nonce||h?.getAttribute("nonce");r=f(i.map(n=>{if(n=Wi(n,a),n in Xr)return;Xr[n]=!0;const u=n.endsWith(".css"),o=u?'[rel="stylesheet"]':"";if(!!a)for(let d=c.length-1;d>=0;d--){const b=c[d];if(b.href===n&&(!u||b.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${n}"]${o}`))return;const p=document.createElement("link");if(p.rel=u?"stylesheet":qi,u||(p.as="script"),p.crossOrigin="",p.href=n,m&&p.setAttribute("nonce",m),document.head.appendChild(p),u)return new Promise((d,b)=>{p.addEventListener("load",d),p.addEventListener("error",()=>b(new Error(`Unable to preload CSS for ${n}`)))})}))}function l(c){const h=new Event("vite:preloadError",{cancelable:!0});if(h.payload=c,window.dispatchEvent(h),!h.defaultPrevented)throw c}return r.then(c=>{for(const h of c||[])h.status==="rejected"&&l(h.reason);return e().catch(l)})},Gi=`<div id="popover-from-source-container" style="height: 150px"></div>
31
31
  `,Vi=`<h3 id="create-and-access-popover-from-code">Create and access popover from code</h3>
32
32
  `,Zi=`import "@cas-smartdesign/popover";
33
33
  import Popover from "@cas-smartdesign/popover";
@@ -59,44 +59,44 @@ popover.appendChild(content);
59
59
 
60
60
  container.appendChild(button);
61
61
  container.appendChild(popover);
62
- `,Xi={mainContent:Gi,description:Vi,initializer:{content:Zi,type:"typescript",initialize:()=>Hi(()=>import("./3_created_from_source.js"),[],import.meta.url)}},Ji=Object.freeze(Object.defineProperty({__proto__:null,default:Xi},Symbol.toStringTag,{value:"Module"}));var ue="top",ye="bottom",we="right",fe="left",Or="auto",ft=[ue,ye,we,fe],Xe="start",ct="end",Ki="clippingParents",zn="viewport",nt="popper",Yi="reference",Kr=ft.reduce(function(t,e){return t.concat([e+"-"+Xe,e+"-"+ct])},[]),$n=[].concat(ft,[Or]).reduce(function(t,e){return t.concat([e,e+"-"+Xe,e+"-"+ct])},[]),Qi="beforeRead",es="read",ts="afterRead",rs="beforeMain",ns="main",is="afterMain",ss="beforeWrite",os="write",as="afterWrite",ls=[Qi,es,ts,rs,ns,is,ss,os,as];function Pe(t){return t?(t.nodeName||"").toLowerCase():null}function de(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function We(t){var e=de(t).Element;return t instanceof e||t instanceof Element}function ve(t){var e=de(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function kr(t){if(typeof ShadowRoot>"u")return!1;var e=de(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function cs(t){var e=t.state;Object.keys(e.elements).forEach(function(i){var a=e.styles[i]||{},n=e.attributes[i]||{},u=e.elements[i];!ve(u)||!Pe(u)||(Object.assign(u.style,a),Object.keys(n).forEach(function(l){var h=n[l];h===!1?u.removeAttribute(l):u.setAttribute(l,h===!0?"":h)}))})}function us(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach(function(a){var n=e.elements[a],u=e.attributes[a]||{},l=Object.keys(e.styles.hasOwnProperty(a)?e.styles[a]:i[a]),h=l.reduce(function(b,f){return b[f]="",b},{});!ve(n)||!Pe(n)||(Object.assign(n.style,h),Object.keys(u).forEach(function(b){n.removeAttribute(b)}))})}}const fs={name:"applyStyles",enabled:!0,phase:"write",fn:cs,effect:us,requires:["computeStyles"]};function Re(t){return t.split("-")[0]}var qe=Math.max,Ct=Math.min,Je=Math.round;function xr(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Un(){return!/^((?!chrome|android).)*safari/i.test(xr())}function Ke(t,e,i){e===void 0&&(e=!1),i===void 0&&(i=!1);var a=t.getBoundingClientRect(),n=1,u=1;e&&ve(t)&&(n=t.offsetWidth>0&&Je(a.width)/t.offsetWidth||1,u=t.offsetHeight>0&&Je(a.height)/t.offsetHeight||1);var l=We(t)?de(t):window,h=l.visualViewport,b=!Un()&&i,f=(a.left+(b&&h?h.offsetLeft:0))/n,r=(a.top+(b&&h?h.offsetTop:0))/u,c=a.width/n,o=a.height/u;return{width:c,height:o,top:r,right:f+c,bottom:r+o,left:f,x:f,y:r}}function Sr(t){var e=Ke(t),i=t.offsetWidth,a=t.offsetHeight;return Math.abs(e.width-i)<=1&&(i=e.width),Math.abs(e.height-a)<=1&&(a=e.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:a}}function Fn(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(i&&kr(i)){var a=e;do{if(a&&t.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function je(t){return de(t).getComputedStyle(t)}function hs(t){return["table","td","th"].indexOf(Pe(t))>=0}function Be(t){return((We(t)?t.ownerDocument:t.document)||window.document).documentElement}function Pt(t){return Pe(t)==="html"?t:t.assignedSlot||t.parentNode||(kr(t)?t.host:null)||Be(t)}function Yr(t){return!ve(t)||je(t).position==="fixed"?null:t.offsetParent}function ps(t){var e=/firefox/i.test(xr()),i=/Trident/i.test(xr());if(i&&ve(t)){var a=je(t);if(a.position==="fixed")return null}var n=Pt(t);for(kr(n)&&(n=n.host);ve(n)&&["html","body"].indexOf(Pe(n))<0;){var u=je(n);if(u.transform!=="none"||u.perspective!=="none"||u.contain==="paint"||["transform","perspective"].indexOf(u.willChange)!==-1||e&&u.willChange==="filter"||e&&u.filter&&u.filter!=="none")return n;n=n.parentNode}return null}function ht(t){for(var e=de(t),i=Yr(t);i&&hs(i)&&je(i).position==="static";)i=Yr(i);return i&&(Pe(i)==="html"||Pe(i)==="body"&&je(i).position==="static")?e:i||ps(t)||e}function Ar(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function st(t,e,i){return qe(t,Ct(e,i))}function ds(t,e,i){var a=st(t,e,i);return a>i?i:a}function qn(){return{top:0,right:0,bottom:0,left:0}}function Wn(t){return Object.assign({},qn(),t)}function Hn(t,e){return e.reduce(function(i,a){return i[a]=t,i},{})}var gs=function(e,i){return e=typeof e=="function"?e(Object.assign({},i.rects,{placement:i.placement})):e,Wn(typeof e!="number"?e:Hn(e,ft))};function ms(t){var e,i=t.state,a=t.name,n=t.options,u=i.elements.arrow,l=i.modifiersData.popperOffsets,h=Re(i.placement),b=Ar(h),f=[fe,we].indexOf(h)>=0,r=f?"height":"width";if(!(!u||!l)){var c=gs(n.padding,i),o=Sr(u),s=b==="y"?ue:fe,p=b==="y"?ye:we,d=i.rects.reference[r]+i.rects.reference[b]-l[b]-i.rects.popper[r],m=l[b]-i.rects.reference[b],x=ht(u),E=x?b==="y"?x.clientHeight||0:x.clientWidth||0:0,w=d/2-m/2,y=c[s],v=E-o[r]-c[p],O=E/2-o[r]/2+w,S=st(y,O,v),N=b;i.modifiersData[a]=(e={},e[N]=S,e.centerOffset=S-O,e)}}function bs(t){var e=t.state,i=t.options,a=i.element,n=a===void 0?"[data-popper-arrow]":a;n!=null&&(typeof n=="string"&&(n=e.elements.popper.querySelector(n),!n)||Fn(e.elements.popper,n)&&(e.elements.arrow=n))}const vs={name:"arrow",enabled:!0,phase:"main",fn:ms,effect:bs,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ye(t){return t.split("-")[1]}var ys={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ws(t,e){var i=t.x,a=t.y,n=e.devicePixelRatio||1;return{x:Je(i*n)/n||0,y:Je(a*n)/n||0}}function Qr(t){var e,i=t.popper,a=t.popperRect,n=t.placement,u=t.variation,l=t.offsets,h=t.position,b=t.gpuAcceleration,f=t.adaptive,r=t.roundOffsets,c=t.isFixed,o=l.x,s=o===void 0?0:o,p=l.y,d=p===void 0?0:p,m=typeof r=="function"?r({x:s,y:d}):{x:s,y:d};s=m.x,d=m.y;var x=l.hasOwnProperty("x"),E=l.hasOwnProperty("y"),w=fe,y=ue,v=window;if(f){var O=ht(i),S="clientHeight",N="clientWidth";if(O===de(i)&&(O=Be(i),je(O).position!=="static"&&h==="absolute"&&(S="scrollHeight",N="scrollWidth")),O=O,n===ue||(n===fe||n===we)&&u===ct){y=ye;var L=c&&O===v&&v.visualViewport?v.visualViewport.height:O[S];d-=L-a.height,d*=b?1:-1}if(n===fe||(n===ue||n===ye)&&u===ct){w=we;var _=c&&O===v&&v.visualViewport?v.visualViewport.width:O[N];s-=_-a.width,s*=b?1:-1}}var F=Object.assign({position:h},f&&ys),$=r===!0?ws({x:s,y:d},de(i)):{x:s,y:d};if(s=$.x,d=$.y,b){var K;return Object.assign({},F,(K={},K[y]=E?"0":"",K[w]=x?"0":"",K.transform=(v.devicePixelRatio||1)<=1?"translate("+s+"px, "+d+"px)":"translate3d("+s+"px, "+d+"px, 0)",K))}return Object.assign({},F,(e={},e[y]=E?d+"px":"",e[w]=x?s+"px":"",e.transform="",e))}function xs(t){var e=t.state,i=t.options,a=i.gpuAcceleration,n=a===void 0?!0:a,u=i.adaptive,l=u===void 0?!0:u,h=i.roundOffsets,b=h===void 0?!0:h,f={placement:Re(e.placement),variation:Ye(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:n,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Qr(Object.assign({},f,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:l,roundOffsets:b})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Qr(Object.assign({},f,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:b})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const Es={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:xs,data:{}};var Ot={passive:!0};function Os(t){var e=t.state,i=t.instance,a=t.options,n=a.scroll,u=n===void 0?!0:n,l=a.resize,h=l===void 0?!0:l,b=de(e.elements.popper),f=[].concat(e.scrollParents.reference,e.scrollParents.popper);return u&&f.forEach(function(r){r.addEventListener("scroll",i.update,Ot)}),h&&b.addEventListener("resize",i.update,Ot),function(){u&&f.forEach(function(r){r.removeEventListener("scroll",i.update,Ot)}),h&&b.removeEventListener("resize",i.update,Ot)}}const ks={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Os,data:{}};var Ss={left:"right",right:"left",bottom:"top",top:"bottom"};function _t(t){return t.replace(/left|right|bottom|top/g,function(e){return Ss[e]})}var As={start:"end",end:"start"};function en(t){return t.replace(/start|end/g,function(e){return As[e]})}function _r(t){var e=de(t),i=e.pageXOffset,a=e.pageYOffset;return{scrollLeft:i,scrollTop:a}}function Cr(t){return Ke(Be(t)).left+_r(t).scrollLeft}function _s(t,e){var i=de(t),a=Be(t),n=i.visualViewport,u=a.clientWidth,l=a.clientHeight,h=0,b=0;if(n){u=n.width,l=n.height;var f=Un();(f||!f&&e==="fixed")&&(h=n.offsetLeft,b=n.offsetTop)}return{width:u,height:l,x:h+Cr(t),y:b}}function Cs(t){var e,i=Be(t),a=_r(t),n=(e=t.ownerDocument)==null?void 0:e.body,u=qe(i.scrollWidth,i.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),l=qe(i.scrollHeight,i.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),h=-a.scrollLeft+Cr(t),b=-a.scrollTop;return je(n||i).direction==="rtl"&&(h+=qe(i.clientWidth,n?n.clientWidth:0)-u),{width:u,height:l,x:h,y:b}}function Rr(t){var e=je(t),i=e.overflow,a=e.overflowX,n=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+n+a)}function Gn(t){return["html","body","#document"].indexOf(Pe(t))>=0?t.ownerDocument.body:ve(t)&&Rr(t)?t:Gn(Pt(t))}function ot(t,e){var i;e===void 0&&(e=[]);var a=Gn(t),n=a===((i=t.ownerDocument)==null?void 0:i.body),u=de(a),l=n?[u].concat(u.visualViewport||[],Rr(a)?a:[]):a,h=e.concat(l);return n?h:h.concat(ot(Pt(l)))}function Er(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Rs(t,e){var i=Ke(t,!1,e==="fixed");return i.top=i.top+t.clientTop,i.left=i.left+t.clientLeft,i.bottom=i.top+t.clientHeight,i.right=i.left+t.clientWidth,i.width=t.clientWidth,i.height=t.clientHeight,i.x=i.left,i.y=i.top,i}function tn(t,e,i){return e===zn?Er(_s(t,i)):We(e)?Rs(e,i):Er(Cs(Be(t)))}function Ps(t){var e=ot(Pt(t)),i=["absolute","fixed"].indexOf(je(t).position)>=0,a=i&&ve(t)?ht(t):t;return We(a)?e.filter(function(n){return We(n)&&Fn(n,a)&&Pe(n)!=="body"}):[]}function Ns(t,e,i,a){var n=e==="clippingParents"?Ps(t):[].concat(e),u=[].concat(n,[i]),l=u[0],h=u.reduce(function(b,f){var r=tn(t,f,a);return b.top=qe(r.top,b.top),b.right=Ct(r.right,b.right),b.bottom=Ct(r.bottom,b.bottom),b.left=qe(r.left,b.left),b},tn(t,l,a));return h.width=h.right-h.left,h.height=h.bottom-h.top,h.x=h.left,h.y=h.top,h}function Vn(t){var e=t.reference,i=t.element,a=t.placement,n=a?Re(a):null,u=a?Ye(a):null,l=e.x+e.width/2-i.width/2,h=e.y+e.height/2-i.height/2,b;switch(n){case ue:b={x:l,y:e.y-i.height};break;case ye:b={x:l,y:e.y+e.height};break;case we:b={x:e.x+e.width,y:h};break;case fe:b={x:e.x-i.width,y:h};break;default:b={x:e.x,y:e.y}}var f=n?Ar(n):null;if(f!=null){var r=f==="y"?"height":"width";switch(u){case Xe:b[f]=b[f]-(e[r]/2-i[r]/2);break;case ct:b[f]=b[f]+(e[r]/2-i[r]/2);break}}return b}function ut(t,e){e===void 0&&(e={});var i=e,a=i.placement,n=a===void 0?t.placement:a,u=i.strategy,l=u===void 0?t.strategy:u,h=i.boundary,b=h===void 0?Ki:h,f=i.rootBoundary,r=f===void 0?zn:f,c=i.elementContext,o=c===void 0?nt:c,s=i.altBoundary,p=s===void 0?!1:s,d=i.padding,m=d===void 0?0:d,x=Wn(typeof m!="number"?m:Hn(m,ft)),E=o===nt?Yi:nt,w=t.rects.popper,y=t.elements[p?E:o],v=Ns(We(y)?y:y.contextElement||Be(t.elements.popper),b,r,l),O=Ke(t.elements.reference),S=Vn({reference:O,element:w,placement:n}),N=Er(Object.assign({},w,S)),L=o===nt?N:O,_={top:v.top-L.top+x.top,bottom:L.bottom-v.bottom+x.bottom,left:v.left-L.left+x.left,right:L.right-v.right+x.right},F=t.modifiersData.offset;if(o===nt&&F){var $=F[n];Object.keys(_).forEach(function(K){var te=[we,ye].indexOf(K)>=0?1:-1,P=[ue,ye].indexOf(K)>=0?"y":"x";_[K]+=$[P]*te})}return _}function Ms(t,e){e===void 0&&(e={});var i=e,a=i.placement,n=i.boundary,u=i.rootBoundary,l=i.padding,h=i.flipVariations,b=i.allowedAutoPlacements,f=b===void 0?$n:b,r=Ye(a),c=r?h?Kr:Kr.filter(function(p){return Ye(p)===r}):ft,o=c.filter(function(p){return f.indexOf(p)>=0});o.length===0&&(o=c);var s=o.reduce(function(p,d){return p[d]=ut(t,{placement:d,boundary:n,rootBoundary:u,padding:l})[Re(d)],p},{});return Object.keys(s).sort(function(p,d){return s[p]-s[d]})}function Ts(t){if(Re(t)===Or)return[];var e=_t(t);return[en(t),e,en(e)]}function Ls(t){var e=t.state,i=t.options,a=t.name;if(!e.modifiersData[a]._skip){for(var n=i.mainAxis,u=n===void 0?!0:n,l=i.altAxis,h=l===void 0?!0:l,b=i.fallbackPlacements,f=i.padding,r=i.boundary,c=i.rootBoundary,o=i.altBoundary,s=i.flipVariations,p=s===void 0?!0:s,d=i.allowedAutoPlacements,m=e.options.placement,x=Re(m),E=x===m,w=b||(E||!p?[_t(m)]:Ts(m)),y=[m].concat(w).reduce(function(me,ce){return me.concat(Re(ce)===Or?Ms(e,{placement:ce,boundary:r,rootBoundary:c,padding:f,flipVariations:p,allowedAutoPlacements:d}):ce)},[]),v=e.rects.reference,O=e.rects.popper,S=new Map,N=!0,L=y[0],_=0;_<y.length;_++){var F=y[_],$=Re(F),K=Ye(F)===Xe,te=[ue,ye].indexOf($)>=0,P=te?"width":"height",re=ut(e,{placement:F,boundary:r,rootBoundary:c,altBoundary:o,padding:f}),q=te?K?we:fe:K?ye:ue;v[P]>O[P]&&(q=_t(q));var X=_t(q),Y=[];if(u&&Y.push(re[$]<=0),h&&Y.push(re[q]<=0,re[X]<=0),Y.every(function(me){return me})){L=F,N=!1;break}S.set(F,Y)}if(N)for(var ie=p?3:1,ge=function(ce){var Ne=y.find(function(Oe){var xe=S.get(Oe);if(xe)return xe.slice(0,ce).every(function(ke){return ke})});if(Ne)return L=Ne,"break"},he=ie;he>0;he--){var D=ge(he);if(D==="break")break}e.placement!==L&&(e.modifiersData[a]._skip=!0,e.placement=L,e.reset=!0)}}const js={name:"flip",enabled:!0,phase:"main",fn:Ls,requiresIfExists:["offset"],data:{_skip:!1}};function rn(t,e,i){return i===void 0&&(i={x:0,y:0}),{top:t.top-e.height-i.y,right:t.right-e.width+i.x,bottom:t.bottom-e.height+i.y,left:t.left-e.width-i.x}}function nn(t){return[ue,we,ye,fe].some(function(e){return t[e]>=0})}function Is(t){var e=t.state,i=t.name,a=e.rects.reference,n=e.rects.popper,u=e.modifiersData.preventOverflow,l=ut(e,{elementContext:"reference"}),h=ut(e,{altBoundary:!0}),b=rn(l,a),f=rn(h,n,u),r=nn(b),c=nn(f);e.modifiersData[i]={referenceClippingOffsets:b,popperEscapeOffsets:f,isReferenceHidden:r,hasPopperEscaped:c},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":r,"data-popper-escaped":c})}const Ds={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Is};function Bs(t,e,i){var a=Re(t),n=[fe,ue].indexOf(a)>=0?-1:1,u=typeof i=="function"?i(Object.assign({},e,{placement:t})):i,l=u[0],h=u[1];return l=l||0,h=(h||0)*n,[fe,we].indexOf(a)>=0?{x:h,y:l}:{x:l,y:h}}function zs(t){var e=t.state,i=t.options,a=t.name,n=i.offset,u=n===void 0?[0,0]:n,l=$n.reduce(function(r,c){return r[c]=Bs(c,e.rects,u),r},{}),h=l[e.placement],b=h.x,f=h.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=b,e.modifiersData.popperOffsets.y+=f),e.modifiersData[a]=l}const $s={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:zs};function Us(t){var e=t.state,i=t.name;e.modifiersData[i]=Vn({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const Fs={name:"popperOffsets",enabled:!0,phase:"read",fn:Us,data:{}};function qs(t){return t==="x"?"y":"x"}function Ws(t){var e=t.state,i=t.options,a=t.name,n=i.mainAxis,u=n===void 0?!0:n,l=i.altAxis,h=l===void 0?!1:l,b=i.boundary,f=i.rootBoundary,r=i.altBoundary,c=i.padding,o=i.tether,s=o===void 0?!0:o,p=i.tetherOffset,d=p===void 0?0:p,m=ut(e,{boundary:b,rootBoundary:f,padding:c,altBoundary:r}),x=Re(e.placement),E=Ye(e.placement),w=!E,y=Ar(x),v=qs(y),O=e.modifiersData.popperOffsets,S=e.rects.reference,N=e.rects.popper,L=typeof d=="function"?d(Object.assign({},e.rects,{placement:e.placement})):d,_=typeof L=="number"?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),F=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,$={x:0,y:0};if(O){if(u){var K,te=y==="y"?ue:fe,P=y==="y"?ye:we,re=y==="y"?"height":"width",q=O[y],X=q+m[te],Y=q-m[P],ie=s?-N[re]/2:0,ge=E===Xe?S[re]:N[re],he=E===Xe?-N[re]:-S[re],D=e.elements.arrow,me=s&&D?Sr(D):{width:0,height:0},ce=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:qn(),Ne=ce[te],Oe=ce[P],xe=st(0,S[re],me[re]),ke=w?S[re]/2-ie-xe-Ne-_.mainAxis:ge-xe-Ne-_.mainAxis,Qe=w?-S[re]/2+ie+xe+Oe+_.mainAxis:he+xe+Oe+_.mainAxis,be=e.elements.arrow&&ht(e.elements.arrow),ze=be?y==="y"?be.clientTop||0:be.clientLeft||0:0,$e=(K=F?.[y])!=null?K:0,Dt=q+ke-$e-ze,Bt=q+Qe-$e,dt=st(s?Ct(X,Dt):X,q,s?qe(Y,Bt):Y);O[y]=dt,$[y]=dt-q}if(h){var gt,zt=y==="x"?ue:fe,mt=y==="x"?ye:we,Me=O[v],Ge=v==="y"?"height":"width",et=Me+m[zt],Se=Me-m[mt],Ve=[ue,fe].indexOf(x)!==-1,Te=(gt=F?.[v])!=null?gt:0,Ue=Ve?et:Me-S[Ge]-N[Ge]-Te+_.altAxis,tt=Ve?Me+S[Ge]+N[Ge]-Te-_.altAxis:Se,bt=s&&Ve?ds(Ue,Me,tt):st(s?Ue:et,Me,s?tt:Se);O[v]=bt,$[v]=bt-Me}e.modifiersData[a]=$}}const Hs={name:"preventOverflow",enabled:!0,phase:"main",fn:Ws,requiresIfExists:["offset"]};function Gs(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function Vs(t){return t===de(t)||!ve(t)?_r(t):Gs(t)}function Zs(t){var e=t.getBoundingClientRect(),i=Je(e.width)/t.offsetWidth||1,a=Je(e.height)/t.offsetHeight||1;return i!==1||a!==1}function Xs(t,e,i){i===void 0&&(i=!1);var a=ve(e),n=ve(e)&&Zs(e),u=Be(e),l=Ke(t,n,i),h={scrollLeft:0,scrollTop:0},b={x:0,y:0};return(a||!a&&!i)&&((Pe(e)!=="body"||Rr(u))&&(h=Vs(e)),ve(e)?(b=Ke(e,!0),b.x+=e.clientLeft,b.y+=e.clientTop):u&&(b.x=Cr(u))),{x:l.left+h.scrollLeft-b.x,y:l.top+h.scrollTop-b.y,width:l.width,height:l.height}}function Js(t){var e=new Map,i=new Set,a=[];t.forEach(function(u){e.set(u.name,u)});function n(u){i.add(u.name);var l=[].concat(u.requires||[],u.requiresIfExists||[]);l.forEach(function(h){if(!i.has(h)){var b=e.get(h);b&&n(b)}}),a.push(u)}return t.forEach(function(u){i.has(u.name)||n(u)}),a}function Ks(t){var e=Js(t);return ls.reduce(function(i,a){return i.concat(e.filter(function(n){return n.phase===a}))},[])}function Ys(t){var e;return function(){return e||(e=new Promise(function(i){Promise.resolve().then(function(){e=void 0,i(t())})})),e}}function Qs(t){var e=t.reduce(function(i,a){var n=i[a.name];return i[a.name]=n?Object.assign({},n,a,{options:Object.assign({},n.options,a.options),data:Object.assign({},n.data,a.data)}):a,i},{});return Object.keys(e).map(function(i){return e[i]})}var sn={placement:"bottom",modifiers:[],strategy:"absolute"};function on(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return!e.some(function(a){return!(a&&typeof a.getBoundingClientRect=="function")})}function eo(t){t===void 0&&(t={});var e=t,i=e.defaultModifiers,a=i===void 0?[]:i,n=e.defaultOptions,u=n===void 0?sn:n;return function(h,b,f){f===void 0&&(f=u);var r={placement:"bottom",orderedModifiers:[],options:Object.assign({},sn,u),modifiersData:{},elements:{reference:h,popper:b},attributes:{},styles:{}},c=[],o=!1,s={state:r,setOptions:function(x){var E=typeof x=="function"?x(r.options):x;d(),r.options=Object.assign({},u,r.options,E),r.scrollParents={reference:We(h)?ot(h):h.contextElement?ot(h.contextElement):[],popper:ot(b)};var w=Ks(Qs([].concat(a,r.options.modifiers)));return r.orderedModifiers=w.filter(function(y){return y.enabled}),p(),s.update()},forceUpdate:function(){if(!o){var x=r.elements,E=x.reference,w=x.popper;if(on(E,w)){r.rects={reference:Xs(E,ht(w),r.options.strategy==="fixed"),popper:Sr(w)},r.reset=!1,r.placement=r.options.placement,r.orderedModifiers.forEach(function(_){return r.modifiersData[_.name]=Object.assign({},_.data)});for(var y=0;y<r.orderedModifiers.length;y++){if(r.reset===!0){r.reset=!1,y=-1;continue}var v=r.orderedModifiers[y],O=v.fn,S=v.options,N=S===void 0?{}:S,L=v.name;typeof O=="function"&&(r=O({state:r,options:N,name:L,instance:s})||r)}}}},update:Ys(function(){return new Promise(function(m){s.forceUpdate(),m(r)})}),destroy:function(){d(),o=!0}};if(!on(h,b))return s;s.setOptions(f).then(function(m){!o&&f.onFirstUpdate&&f.onFirstUpdate(m)});function p(){r.orderedModifiers.forEach(function(m){var x=m.name,E=m.options,w=E===void 0?{}:E,y=m.effect;if(typeof y=="function"){var v=y({state:r,name:x,instance:s,options:w}),O=function(){};c.push(v||O)}})}function d(){c.forEach(function(m){return m()}),c=[]}return s}}var to=[ks,Fs,Es,fs,$s,js,Hs,vs,Ds],ro=eo({defaultModifiers:to});const no=`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="12" viewBox="0 0 24 12">\r
62
+ `,Ki={mainContent:Gi,description:Vi,initializer:{content:Zi,type:"typescript",initialize:()=>Hi(()=>import("./3_created_from_source.js"),[],import.meta.url)}},Xi=Object.freeze(Object.defineProperty({__proto__:null,default:Ki},Symbol.toStringTag,{value:"Module"}));var ue="top",ye="bottom",we="right",fe="left",Or="auto",ft=[ue,ye,we,fe],Ke="start",ct="end",Ji="clippingParents",zn="viewport",nt="popper",Yi="reference",Jr=ft.reduce(function(t,e){return t.concat([e+"-"+Ke,e+"-"+ct])},[]),$n=[].concat(ft,[Or]).reduce(function(t,e){return t.concat([e,e+"-"+Ke,e+"-"+ct])},[]),Qi="beforeRead",es="read",ts="afterRead",rs="beforeMain",ns="main",is="afterMain",ss="beforeWrite",os="write",as="afterWrite",ls=[Qi,es,ts,rs,ns,is,ss,os,as];function Pe(t){return t?(t.nodeName||"").toLowerCase():null}function de(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function We(t){var e=de(t).Element;return t instanceof e||t instanceof Element}function ve(t){var e=de(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function kr(t){if(typeof ShadowRoot>"u")return!1;var e=de(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function cs(t){var e=t.state;Object.keys(e.elements).forEach(function(i){var a=e.styles[i]||{},r=e.attributes[i]||{},l=e.elements[i];!ve(l)||!Pe(l)||(Object.assign(l.style,a),Object.keys(r).forEach(function(c){var h=r[c];h===!1?l.removeAttribute(c):l.setAttribute(c,h===!0?"":h)}))})}function us(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach(function(a){var r=e.elements[a],l=e.attributes[a]||{},c=Object.keys(e.styles.hasOwnProperty(a)?e.styles[a]:i[a]),h=c.reduce(function(m,f){return m[f]="",m},{});!ve(r)||!Pe(r)||(Object.assign(r.style,h),Object.keys(l).forEach(function(m){r.removeAttribute(m)}))})}}const fs={name:"applyStyles",enabled:!0,phase:"write",fn:cs,effect:us,requires:["computeStyles"]};function Re(t){return t.split("-")[0]}var qe=Math.max,Ct=Math.min,Xe=Math.round;function xr(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Un(){return!/^((?!chrome|android).)*safari/i.test(xr())}function Je(t,e,i){e===void 0&&(e=!1),i===void 0&&(i=!1);var a=t.getBoundingClientRect(),r=1,l=1;e&&ve(t)&&(r=t.offsetWidth>0&&Xe(a.width)/t.offsetWidth||1,l=t.offsetHeight>0&&Xe(a.height)/t.offsetHeight||1);var c=We(t)?de(t):window,h=c.visualViewport,m=!Un()&&i,f=(a.left+(m&&h?h.offsetLeft:0))/r,n=(a.top+(m&&h?h.offsetTop:0))/l,u=a.width/r,o=a.height/l;return{width:u,height:o,top:n,right:f+u,bottom:n+o,left:f,x:f,y:n}}function Sr(t){var e=Je(t),i=t.offsetWidth,a=t.offsetHeight;return Math.abs(e.width-i)<=1&&(i=e.width),Math.abs(e.height-a)<=1&&(a=e.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:a}}function Fn(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(i&&kr(i)){var a=e;do{if(a&&t.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function je(t){return de(t).getComputedStyle(t)}function hs(t){return["table","td","th"].indexOf(Pe(t))>=0}function Be(t){return((We(t)?t.ownerDocument:t.document)||window.document).documentElement}function Pt(t){return Pe(t)==="html"?t:t.assignedSlot||t.parentNode||(kr(t)?t.host:null)||Be(t)}function Yr(t){return!ve(t)||je(t).position==="fixed"?null:t.offsetParent}function ps(t){var e=/firefox/i.test(xr()),i=/Trident/i.test(xr());if(i&&ve(t)){var a=je(t);if(a.position==="fixed")return null}var r=Pt(t);for(kr(r)&&(r=r.host);ve(r)&&["html","body"].indexOf(Pe(r))<0;){var l=je(r);if(l.transform!=="none"||l.perspective!=="none"||l.contain==="paint"||["transform","perspective"].indexOf(l.willChange)!==-1||e&&l.willChange==="filter"||e&&l.filter&&l.filter!=="none")return r;r=r.parentNode}return null}function ht(t){for(var e=de(t),i=Yr(t);i&&hs(i)&&je(i).position==="static";)i=Yr(i);return i&&(Pe(i)==="html"||Pe(i)==="body"&&je(i).position==="static")?e:i||ps(t)||e}function Ar(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function st(t,e,i){return qe(t,Ct(e,i))}function ds(t,e,i){var a=st(t,e,i);return a>i?i:a}function qn(){return{top:0,right:0,bottom:0,left:0}}function Wn(t){return Object.assign({},qn(),t)}function Hn(t,e){return e.reduce(function(i,a){return i[a]=t,i},{})}var gs=function(e,i){return e=typeof e=="function"?e(Object.assign({},i.rects,{placement:i.placement})):e,Wn(typeof e!="number"?e:Hn(e,ft))};function ms(t){var e,i=t.state,a=t.name,r=t.options,l=i.elements.arrow,c=i.modifiersData.popperOffsets,h=Re(i.placement),m=Ar(h),f=[fe,we].indexOf(h)>=0,n=f?"height":"width";if(!(!l||!c)){var u=gs(r.padding,i),o=Sr(l),s=m==="y"?ue:fe,p=m==="y"?ye:we,d=i.rects.reference[n]+i.rects.reference[m]-c[m]-i.rects.popper[n],b=c[m]-i.rects.reference[m],x=ht(l),E=x?m==="y"?x.clientHeight||0:x.clientWidth||0:0,w=d/2-b/2,y=u[s],v=E-o[n]-u[p],O=E/2-o[n]/2+w,S=st(y,O,v),N=m;i.modifiersData[a]=(e={},e[N]=S,e.centerOffset=S-O,e)}}function bs(t){var e=t.state,i=t.options,a=i.element,r=a===void 0?"[data-popper-arrow]":a;r!=null&&(typeof r=="string"&&(r=e.elements.popper.querySelector(r),!r)||Fn(e.elements.popper,r)&&(e.elements.arrow=r))}const vs={name:"arrow",enabled:!0,phase:"main",fn:ms,effect:bs,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ye(t){return t.split("-")[1]}var ys={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ws(t,e){var i=t.x,a=t.y,r=e.devicePixelRatio||1;return{x:Xe(i*r)/r||0,y:Xe(a*r)/r||0}}function Qr(t){var e,i=t.popper,a=t.popperRect,r=t.placement,l=t.variation,c=t.offsets,h=t.position,m=t.gpuAcceleration,f=t.adaptive,n=t.roundOffsets,u=t.isFixed,o=c.x,s=o===void 0?0:o,p=c.y,d=p===void 0?0:p,b=typeof n=="function"?n({x:s,y:d}):{x:s,y:d};s=b.x,d=b.y;var x=c.hasOwnProperty("x"),E=c.hasOwnProperty("y"),w=fe,y=ue,v=window;if(f){var O=ht(i),S="clientHeight",N="clientWidth";if(O===de(i)&&(O=Be(i),je(O).position!=="static"&&h==="absolute"&&(S="scrollHeight",N="scrollWidth")),O=O,r===ue||(r===fe||r===we)&&l===ct){y=ye;var L=u&&O===v&&v.visualViewport?v.visualViewport.height:O[S];d-=L-a.height,d*=m?1:-1}if(r===fe||(r===ue||r===ye)&&l===ct){w=we;var _=u&&O===v&&v.visualViewport?v.visualViewport.width:O[N];s-=_-a.width,s*=m?1:-1}}var F=Object.assign({position:h},f&&ys),$=n===!0?ws({x:s,y:d},de(i)):{x:s,y:d};if(s=$.x,d=$.y,m){var J;return Object.assign({},F,(J={},J[y]=E?"0":"",J[w]=x?"0":"",J.transform=(v.devicePixelRatio||1)<=1?"translate("+s+"px, "+d+"px)":"translate3d("+s+"px, "+d+"px, 0)",J))}return Object.assign({},F,(e={},e[y]=E?d+"px":"",e[w]=x?s+"px":"",e.transform="",e))}function xs(t){var e=t.state,i=t.options,a=i.gpuAcceleration,r=a===void 0?!0:a,l=i.adaptive,c=l===void 0?!0:l,h=i.roundOffsets,m=h===void 0?!0:h,f={placement:Re(e.placement),variation:Ye(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Qr(Object.assign({},f,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:c,roundOffsets:m})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Qr(Object.assign({},f,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:m})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const Es={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:xs,data:{}};var Ot={passive:!0};function Os(t){var e=t.state,i=t.instance,a=t.options,r=a.scroll,l=r===void 0?!0:r,c=a.resize,h=c===void 0?!0:c,m=de(e.elements.popper),f=[].concat(e.scrollParents.reference,e.scrollParents.popper);return l&&f.forEach(function(n){n.addEventListener("scroll",i.update,Ot)}),h&&m.addEventListener("resize",i.update,Ot),function(){l&&f.forEach(function(n){n.removeEventListener("scroll",i.update,Ot)}),h&&m.removeEventListener("resize",i.update,Ot)}}const ks={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Os,data:{}};var Ss={left:"right",right:"left",bottom:"top",top:"bottom"};function _t(t){return t.replace(/left|right|bottom|top/g,function(e){return Ss[e]})}var As={start:"end",end:"start"};function en(t){return t.replace(/start|end/g,function(e){return As[e]})}function _r(t){var e=de(t),i=e.pageXOffset,a=e.pageYOffset;return{scrollLeft:i,scrollTop:a}}function Cr(t){return Je(Be(t)).left+_r(t).scrollLeft}function _s(t,e){var i=de(t),a=Be(t),r=i.visualViewport,l=a.clientWidth,c=a.clientHeight,h=0,m=0;if(r){l=r.width,c=r.height;var f=Un();(f||!f&&e==="fixed")&&(h=r.offsetLeft,m=r.offsetTop)}return{width:l,height:c,x:h+Cr(t),y:m}}function Cs(t){var e,i=Be(t),a=_r(t),r=(e=t.ownerDocument)==null?void 0:e.body,l=qe(i.scrollWidth,i.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),c=qe(i.scrollHeight,i.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),h=-a.scrollLeft+Cr(t),m=-a.scrollTop;return je(r||i).direction==="rtl"&&(h+=qe(i.clientWidth,r?r.clientWidth:0)-l),{width:l,height:c,x:h,y:m}}function Rr(t){var e=je(t),i=e.overflow,a=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+r+a)}function Gn(t){return["html","body","#document"].indexOf(Pe(t))>=0?t.ownerDocument.body:ve(t)&&Rr(t)?t:Gn(Pt(t))}function ot(t,e){var i;e===void 0&&(e=[]);var a=Gn(t),r=a===((i=t.ownerDocument)==null?void 0:i.body),l=de(a),c=r?[l].concat(l.visualViewport||[],Rr(a)?a:[]):a,h=e.concat(c);return r?h:h.concat(ot(Pt(c)))}function Er(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Rs(t,e){var i=Je(t,!1,e==="fixed");return i.top=i.top+t.clientTop,i.left=i.left+t.clientLeft,i.bottom=i.top+t.clientHeight,i.right=i.left+t.clientWidth,i.width=t.clientWidth,i.height=t.clientHeight,i.x=i.left,i.y=i.top,i}function tn(t,e,i){return e===zn?Er(_s(t,i)):We(e)?Rs(e,i):Er(Cs(Be(t)))}function Ps(t){var e=ot(Pt(t)),i=["absolute","fixed"].indexOf(je(t).position)>=0,a=i&&ve(t)?ht(t):t;return We(a)?e.filter(function(r){return We(r)&&Fn(r,a)&&Pe(r)!=="body"}):[]}function Ns(t,e,i,a){var r=e==="clippingParents"?Ps(t):[].concat(e),l=[].concat(r,[i]),c=l[0],h=l.reduce(function(m,f){var n=tn(t,f,a);return m.top=qe(n.top,m.top),m.right=Ct(n.right,m.right),m.bottom=Ct(n.bottom,m.bottom),m.left=qe(n.left,m.left),m},tn(t,c,a));return h.width=h.right-h.left,h.height=h.bottom-h.top,h.x=h.left,h.y=h.top,h}function Vn(t){var e=t.reference,i=t.element,a=t.placement,r=a?Re(a):null,l=a?Ye(a):null,c=e.x+e.width/2-i.width/2,h=e.y+e.height/2-i.height/2,m;switch(r){case ue:m={x:c,y:e.y-i.height};break;case ye:m={x:c,y:e.y+e.height};break;case we:m={x:e.x+e.width,y:h};break;case fe:m={x:e.x-i.width,y:h};break;default:m={x:e.x,y:e.y}}var f=r?Ar(r):null;if(f!=null){var n=f==="y"?"height":"width";switch(l){case Ke:m[f]=m[f]-(e[n]/2-i[n]/2);break;case ct:m[f]=m[f]+(e[n]/2-i[n]/2);break}}return m}function ut(t,e){e===void 0&&(e={});var i=e,a=i.placement,r=a===void 0?t.placement:a,l=i.strategy,c=l===void 0?t.strategy:l,h=i.boundary,m=h===void 0?Ji:h,f=i.rootBoundary,n=f===void 0?zn:f,u=i.elementContext,o=u===void 0?nt:u,s=i.altBoundary,p=s===void 0?!1:s,d=i.padding,b=d===void 0?0:d,x=Wn(typeof b!="number"?b:Hn(b,ft)),E=o===nt?Yi:nt,w=t.rects.popper,y=t.elements[p?E:o],v=Ns(We(y)?y:y.contextElement||Be(t.elements.popper),m,n,c),O=Je(t.elements.reference),S=Vn({reference:O,element:w,placement:r}),N=Er(Object.assign({},w,S)),L=o===nt?N:O,_={top:v.top-L.top+x.top,bottom:L.bottom-v.bottom+x.bottom,left:v.left-L.left+x.left,right:L.right-v.right+x.right},F=t.modifiersData.offset;if(o===nt&&F){var $=F[r];Object.keys(_).forEach(function(J){var te=[we,ye].indexOf(J)>=0?1:-1,P=[ue,ye].indexOf(J)>=0?"y":"x";_[J]+=$[P]*te})}return _}function Ts(t,e){e===void 0&&(e={});var i=e,a=i.placement,r=i.boundary,l=i.rootBoundary,c=i.padding,h=i.flipVariations,m=i.allowedAutoPlacements,f=m===void 0?$n:m,n=Ye(a),u=n?h?Jr:Jr.filter(function(p){return Ye(p)===n}):ft,o=u.filter(function(p){return f.indexOf(p)>=0});o.length===0&&(o=u);var s=o.reduce(function(p,d){return p[d]=ut(t,{placement:d,boundary:r,rootBoundary:l,padding:c})[Re(d)],p},{});return Object.keys(s).sort(function(p,d){return s[p]-s[d]})}function Ms(t){if(Re(t)===Or)return[];var e=_t(t);return[en(t),e,en(e)]}function Ls(t){var e=t.state,i=t.options,a=t.name;if(!e.modifiersData[a]._skip){for(var r=i.mainAxis,l=r===void 0?!0:r,c=i.altAxis,h=c===void 0?!0:c,m=i.fallbackPlacements,f=i.padding,n=i.boundary,u=i.rootBoundary,o=i.altBoundary,s=i.flipVariations,p=s===void 0?!0:s,d=i.allowedAutoPlacements,b=e.options.placement,x=Re(b),E=x===b,w=m||(E||!p?[_t(b)]:Ms(b)),y=[b].concat(w).reduce(function(me,ce){return me.concat(Re(ce)===Or?Ts(e,{placement:ce,boundary:n,rootBoundary:u,padding:f,flipVariations:p,allowedAutoPlacements:d}):ce)},[]),v=e.rects.reference,O=e.rects.popper,S=new Map,N=!0,L=y[0],_=0;_<y.length;_++){var F=y[_],$=Re(F),J=Ye(F)===Ke,te=[ue,ye].indexOf($)>=0,P=te?"width":"height",re=ut(e,{placement:F,boundary:n,rootBoundary:u,altBoundary:o,padding:f}),q=te?J?we:fe:J?ye:ue;v[P]>O[P]&&(q=_t(q));var K=_t(q),Y=[];if(l&&Y.push(re[$]<=0),h&&Y.push(re[q]<=0,re[K]<=0),Y.every(function(me){return me})){L=F,N=!1;break}S.set(F,Y)}if(N)for(var ie=p?3:1,ge=function(ce){var Ne=y.find(function(Oe){var xe=S.get(Oe);if(xe)return xe.slice(0,ce).every(function(ke){return ke})});if(Ne)return L=Ne,"break"},he=ie;he>0;he--){var D=ge(he);if(D==="break")break}e.placement!==L&&(e.modifiersData[a]._skip=!0,e.placement=L,e.reset=!0)}}const js={name:"flip",enabled:!0,phase:"main",fn:Ls,requiresIfExists:["offset"],data:{_skip:!1}};function rn(t,e,i){return i===void 0&&(i={x:0,y:0}),{top:t.top-e.height-i.y,right:t.right-e.width+i.x,bottom:t.bottom-e.height+i.y,left:t.left-e.width-i.x}}function nn(t){return[ue,we,ye,fe].some(function(e){return t[e]>=0})}function Is(t){var e=t.state,i=t.name,a=e.rects.reference,r=e.rects.popper,l=e.modifiersData.preventOverflow,c=ut(e,{elementContext:"reference"}),h=ut(e,{altBoundary:!0}),m=rn(c,a),f=rn(h,r,l),n=nn(m),u=nn(f);e.modifiersData[i]={referenceClippingOffsets:m,popperEscapeOffsets:f,isReferenceHidden:n,hasPopperEscaped:u},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":n,"data-popper-escaped":u})}const Ds={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Is};function Bs(t,e,i){var a=Re(t),r=[fe,ue].indexOf(a)>=0?-1:1,l=typeof i=="function"?i(Object.assign({},e,{placement:t})):i,c=l[0],h=l[1];return c=c||0,h=(h||0)*r,[fe,we].indexOf(a)>=0?{x:h,y:c}:{x:c,y:h}}function zs(t){var e=t.state,i=t.options,a=t.name,r=i.offset,l=r===void 0?[0,0]:r,c=$n.reduce(function(n,u){return n[u]=Bs(u,e.rects,l),n},{}),h=c[e.placement],m=h.x,f=h.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=m,e.modifiersData.popperOffsets.y+=f),e.modifiersData[a]=c}const $s={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:zs};function Us(t){var e=t.state,i=t.name;e.modifiersData[i]=Vn({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const Fs={name:"popperOffsets",enabled:!0,phase:"read",fn:Us,data:{}};function qs(t){return t==="x"?"y":"x"}function Ws(t){var e=t.state,i=t.options,a=t.name,r=i.mainAxis,l=r===void 0?!0:r,c=i.altAxis,h=c===void 0?!1:c,m=i.boundary,f=i.rootBoundary,n=i.altBoundary,u=i.padding,o=i.tether,s=o===void 0?!0:o,p=i.tetherOffset,d=p===void 0?0:p,b=ut(e,{boundary:m,rootBoundary:f,padding:u,altBoundary:n}),x=Re(e.placement),E=Ye(e.placement),w=!E,y=Ar(x),v=qs(y),O=e.modifiersData.popperOffsets,S=e.rects.reference,N=e.rects.popper,L=typeof d=="function"?d(Object.assign({},e.rects,{placement:e.placement})):d,_=typeof L=="number"?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),F=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,$={x:0,y:0};if(O){if(l){var J,te=y==="y"?ue:fe,P=y==="y"?ye:we,re=y==="y"?"height":"width",q=O[y],K=q+b[te],Y=q-b[P],ie=s?-N[re]/2:0,ge=E===Ke?S[re]:N[re],he=E===Ke?-N[re]:-S[re],D=e.elements.arrow,me=s&&D?Sr(D):{width:0,height:0},ce=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:qn(),Ne=ce[te],Oe=ce[P],xe=st(0,S[re],me[re]),ke=w?S[re]/2-ie-xe-Ne-_.mainAxis:ge-xe-Ne-_.mainAxis,Qe=w?-S[re]/2+ie+xe+Oe+_.mainAxis:he+xe+Oe+_.mainAxis,be=e.elements.arrow&&ht(e.elements.arrow),ze=be?y==="y"?be.clientTop||0:be.clientLeft||0:0,$e=(J=F?.[y])!=null?J:0,Dt=q+ke-$e-ze,Bt=q+Qe-$e,dt=st(s?Ct(K,Dt):K,q,s?qe(Y,Bt):Y);O[y]=dt,$[y]=dt-q}if(h){var gt,zt=y==="x"?ue:fe,mt=y==="x"?ye:we,Te=O[v],Ge=v==="y"?"height":"width",et=Te+b[zt],Se=Te-b[mt],Ve=[ue,fe].indexOf(x)!==-1,Me=(gt=F?.[v])!=null?gt:0,Ue=Ve?et:Te-S[Ge]-N[Ge]-Me+_.altAxis,tt=Ve?Te+S[Ge]+N[Ge]-Me-_.altAxis:Se,bt=s&&Ve?ds(Ue,Te,tt):st(s?Ue:et,Te,s?tt:Se);O[v]=bt,$[v]=bt-Te}e.modifiersData[a]=$}}const Hs={name:"preventOverflow",enabled:!0,phase:"main",fn:Ws,requiresIfExists:["offset"]};function Gs(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function Vs(t){return t===de(t)||!ve(t)?_r(t):Gs(t)}function Zs(t){var e=t.getBoundingClientRect(),i=Xe(e.width)/t.offsetWidth||1,a=Xe(e.height)/t.offsetHeight||1;return i!==1||a!==1}function Ks(t,e,i){i===void 0&&(i=!1);var a=ve(e),r=ve(e)&&Zs(e),l=Be(e),c=Je(t,r,i),h={scrollLeft:0,scrollTop:0},m={x:0,y:0};return(a||!a&&!i)&&((Pe(e)!=="body"||Rr(l))&&(h=Vs(e)),ve(e)?(m=Je(e,!0),m.x+=e.clientLeft,m.y+=e.clientTop):l&&(m.x=Cr(l))),{x:c.left+h.scrollLeft-m.x,y:c.top+h.scrollTop-m.y,width:c.width,height:c.height}}function Xs(t){var e=new Map,i=new Set,a=[];t.forEach(function(l){e.set(l.name,l)});function r(l){i.add(l.name);var c=[].concat(l.requires||[],l.requiresIfExists||[]);c.forEach(function(h){if(!i.has(h)){var m=e.get(h);m&&r(m)}}),a.push(l)}return t.forEach(function(l){i.has(l.name)||r(l)}),a}function Js(t){var e=Xs(t);return ls.reduce(function(i,a){return i.concat(e.filter(function(r){return r.phase===a}))},[])}function Ys(t){var e;return function(){return e||(e=new Promise(function(i){Promise.resolve().then(function(){e=void 0,i(t())})})),e}}function Qs(t){var e=t.reduce(function(i,a){var r=i[a.name];return i[a.name]=r?Object.assign({},r,a,{options:Object.assign({},r.options,a.options),data:Object.assign({},r.data,a.data)}):a,i},{});return Object.keys(e).map(function(i){return e[i]})}var sn={placement:"bottom",modifiers:[],strategy:"absolute"};function on(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return!e.some(function(a){return!(a&&typeof a.getBoundingClientRect=="function")})}function eo(t){t===void 0&&(t={});var e=t,i=e.defaultModifiers,a=i===void 0?[]:i,r=e.defaultOptions,l=r===void 0?sn:r;return function(h,m,f){f===void 0&&(f=l);var n={placement:"bottom",orderedModifiers:[],options:Object.assign({},sn,l),modifiersData:{},elements:{reference:h,popper:m},attributes:{},styles:{}},u=[],o=!1,s={state:n,setOptions:function(x){var E=typeof x=="function"?x(n.options):x;d(),n.options=Object.assign({},l,n.options,E),n.scrollParents={reference:We(h)?ot(h):h.contextElement?ot(h.contextElement):[],popper:ot(m)};var w=Js(Qs([].concat(a,n.options.modifiers)));return n.orderedModifiers=w.filter(function(y){return y.enabled}),p(),s.update()},forceUpdate:function(){if(!o){var x=n.elements,E=x.reference,w=x.popper;if(on(E,w)){n.rects={reference:Ks(E,ht(w),n.options.strategy==="fixed"),popper:Sr(w)},n.reset=!1,n.placement=n.options.placement,n.orderedModifiers.forEach(function(_){return n.modifiersData[_.name]=Object.assign({},_.data)});for(var y=0;y<n.orderedModifiers.length;y++){if(n.reset===!0){n.reset=!1,y=-1;continue}var v=n.orderedModifiers[y],O=v.fn,S=v.options,N=S===void 0?{}:S,L=v.name;typeof O=="function"&&(n=O({state:n,options:N,name:L,instance:s})||n)}}}},update:Ys(function(){return new Promise(function(b){s.forceUpdate(),b(n)})}),destroy:function(){d(),o=!0}};if(!on(h,m))return s;s.setOptions(f).then(function(b){!o&&f.onFirstUpdate&&f.onFirstUpdate(b)});function p(){n.orderedModifiers.forEach(function(b){var x=b.name,E=b.options,w=E===void 0?{}:E,y=b.effect;if(typeof y=="function"){var v=y({state:n,name:x,instance:s,options:w}),O=function(){};u.push(v||O)}})}function d(){u.forEach(function(b){return b()}),u=[]}return s}}var to=[ks,Fs,Es,fs,$s,js,Hs,vs,Ds],ro=eo({defaultModifiers:to});const no=`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="12" viewBox="0 0 24 12">\r
63
63
  <path d="M0 0l11.96 12L24 0z" fill="#999" class="arrow-border"/>\r
64
64
  <path d="M12 11L1 0h22z" fill="#f2f2f2" class="arrow-background"/>\r
65
65
  </svg>\r
66
- `,io=navigator.userAgent.indexOf("Trident")!==-1,an=1,ln="sd-popover-open",Dr=class Dr extends HTMLElement{constructor(){super(...arguments),this._open=!1,this._firstUpdated=!1,this.toggle=()=>{this.open=!this.open},this.show=()=>{this.open=!0},this.hide=()=>{this.open=!1},this.hideIfExternalTarget=e=>{const i=e.target;(!(i instanceof HTMLElement)||!this._container.contains(i)&&!this.targetElement.contains(i))&&this.hide()}}get triggerType(){return this.getAttribute("trigger-type")}set triggerType(e){e?this.setAttribute("trigger-type",e):this.removeAttribute("trigger-type")}get placement(){return this.getAttribute("placement")}set placement(e){e?this.setAttribute("placement",e):this.removeAttribute("placement")}get targetElement(){return this._targetElement}set targetElement(e){this.removeTargetEventListener(this.targetElement),this._targetElement&&this._targetElement.getAttribute("aria-expanded")=="true"&&this._targetElement.setAttribute("aria-expanded","false"),this._targetElement=e,e&&e.setAttribute("aria-expanded","false"),this.addTargetEventListener(this.targetElement),this.updatePopper()}get targetSelector(){return this.getAttribute("target-selector")}set targetSelector(e){e?this.setAttribute("target-selector",e):this.removeAttribute("target-selector")}get modal(){return this.hasAttribute("modal")}set modal(e){e?this.setAttribute("modal",""):this.removeAttribute("modal")}get popoverFor(){return this.getAttribute("popover-for")}set popoverFor(e){e?this.setAttribute("popover-for",e):this.removeAttribute("popover-for")}get flipPriority(){return this._flipPriority}set flipPriority(e){e&&e.length>0?this._flipPriority=e:this._flipPriority=null,this.reConfigurePopper()}get offset(){return this.getAttribute("offset")?parseInt(this.getAttribute("offset")):0}set offset(e){e?this.setAttribute("offset",e.toString()):this.removeAttribute("offset"),this.reConfigurePopper()}reConfigurePopper(){this._popper&&this.configurePopper()}get noArrow(){return this.hasAttribute("no-arrow")}set noArrow(e){e?this.setAttribute("no-arrow",""):this.removeAttribute("no-arrow")}static get observedAttributes(){return["placement","target-selector","trigger-type"]}attributeChangedCallback(e,i){switch(e){case"placement":{this.updatePopper();break}case"trigger-type":{this.removeTargetEventListener(this.targetElement),this.addTargetEventListener(this.targetElement);break}case"target-selector":{this.handleTargetSelectorChange(i);break}}}connectedCallback(){this._firstUpdated||(this.firstUpdated(),this._firstUpdated=!0),this.targetElement?this.addTargetEventListener(this.targetElement):this.targetSelector&&requestAnimationFrame(()=>{this.isConnected&&this.handleTargetSelectorChange(null)}),this._arrow=document.createElement("div"),this._arrow.classList.add("popover-arrow"),this._arrow.setAttribute("data-popper-arrow",""),this._arrow.style.display="flex",this._arrow.innerHTML=no}disconnectedCallback(){this.targetElement&&(this.removeTargetEventListener(this.targetElement),this.removeTargetClassForOpen(this.targetElement)),this._resizeObserver&&(this._resizeObserver.disconnect(),this._resizeObserver=null)}firstUpdated(){this.style.display="none",this.triggerType=this.triggerType||"click",this.placement=this.placement||"auto"}get open(){return this._open}set open(e){e!==this._open&&(this._open=e,this.handleOpenChange())}handleOpenChange(){this.open?(this._popper||this.configurePopper(),this._container.innerHTML="",this.popoverFor&&this._container.setAttribute("popover-for",this.popoverFor),this.content&&(this._container.prepend(this.content),Object.assign(this.content.style,{position:"relative",display:"block",zIndex:1}),window.requestAnimationFrame(()=>{let e=getComputedStyle(this.content).backgroundColor;e=="rgba(0, 0, 0, 0)"&&(this.content.style.background=e="#f2f2f2"),this._arrow.querySelector(".arrow-background").style.fill=e})),this.ensureArrowIsAdded(),this.ownerDocument.body.appendChild(this._container),this.updatePopper(),this.setAttribute("open",""),this.modal&&(window.addEventListener("click",this.hideIfExternalTarget,{capture:!0}),window.addEventListener("focus",this.hideIfExternalTarget,{capture:!0})),this.targetElement&&(this.addTargetClassForOpen(this.targetElement),this.targetElement.setAttribute("aria-expanded","true")),this.dispatchEvent(new CustomEvent("open"))):(this.ownerDocument.body.removeChild(this._container),this.removeAttribute("open"),window.removeEventListener("click",this.hideIfExternalTarget,{capture:!0}),window.removeEventListener("focus",this.hideIfExternalTarget,{capture:!0}),this.targetElement&&(this.removeTargetClassForOpen(this.targetElement),this.targetElement.setAttribute("aria-expanded","false")),this.dispatchEvent(new CustomEvent("close")))}handleTargetSelectorChange(e){const i=document.querySelector(e);i&&(this.removeTargetEventListener(i),this.removeTargetClassForOpen(i)),this.targetSelector&&(this.targetElement=document.querySelector(this.targetSelector),this.addTargetEventListener(this.targetElement))}addTargetEventListener(e){if(e)switch(this.triggerType){case"hover":{e.addEventListener("mouseenter",this.show),e.addEventListener("mouseleave",this.hide);break}case"click":{e.addEventListener("click",this.toggle);break}}}removeTargetEventListener(e){if(e)switch(this.triggerType){case"hover":{e.removeEventListener("mouseenter",this.show),e.removeEventListener("mouseleave",this.hide);break}case"click":{e.removeEventListener("click",this.toggle);break}}}configurePopper(){this.createContentContainer(),this.ensureArrowIsAdded();const e=this,i={placement:e.placement,strategy:"absolute",modifiers:[{name:"computeStyles",options:{gpuAcceleration:!io}},{name:"flip",options:{fallbackPlacements:e._flipPriority}},{name:"offset",options:{offset:()=>[0,e.noArrow?0+e.offset:this._arrow.clientHeight+e.offset]}},{name:"arrow",options:{padding:6}},{name:"resetArrowStyles",enabled:!0,phase:"beforeWrite",fn({state:a}){Object.assign(e._arrow.style,{top:a.styles.arrow.top||"",left:a.styles.arrow.left||"",bottom:a.styles.arrow.bottom||"",right:a.styles.arrow.right||""})}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn({state:a}){e.updateArrow(a.placement)}}]};this._popper=ro(this.targetElement,this._container,i)}createContentContainer(){this._container=document.createElement("div"),this._container.classList.add("popover-container"),this._container.tabIndex=0,this._resizeObserver&&this._resizeObserver.disconnect(),this._resizeObserver=new ResizeObserver(()=>{this._popper&&this._popper.update()}),this._resizeObserver.observe(this._container),Object.assign(this._container.style,{boxShadow:`0 4px 5px 0 rgba(0, 0, 0, 0.14),
66
+ `,io=navigator.userAgent.indexOf("Trident")!==-1,an=1,ln="sd-popover-open",Dr=class Dr extends HTMLElement{constructor(){super(...arguments),this._open=!1,this._firstUpdated=!1,this.toggle=()=>{this.open=!this.open},this.show=()=>{this.open=!0},this.hide=()=>{this.open=!1},this.hideIfExternalTarget=e=>{const i=e.target;(!(i instanceof HTMLElement)||!this._container.contains(i)&&!this.targetElement.contains(i))&&this.hide()},this.handleTabKeyDown=e=>{if(e.key!=="Tab")return;const i=e.shiftKey;let a=null;const r=e.target,l=this.content;if(r instanceof HTMLElement&&l&&(a=this.findNextFocusableAfter(r,l,!i)),a)return;e.preventDefault(),this.open=!1,this.findNextFocusableAfter(this.targetElement,null,!i)?.focus()}}get triggerType(){return this.getAttribute("trigger-type")}set triggerType(e){e?this.setAttribute("trigger-type",e):this.removeAttribute("trigger-type")}get placement(){return this.getAttribute("placement")}set placement(e){e?this.setAttribute("placement",e):this.removeAttribute("placement")}get targetElement(){return this._targetElement}set targetElement(e){this.removeTargetEventListener(this.targetElement),this._targetElement&&this._targetElement.getAttribute("aria-expanded")=="true"&&this._targetElement.setAttribute("aria-expanded","false"),this._targetElement=e,e&&e.setAttribute("aria-expanded","false"),this.addTargetEventListener(this.targetElement),this.updatePopper()}get targetSelector(){return this.getAttribute("target-selector")}set targetSelector(e){e?this.setAttribute("target-selector",e):this.removeAttribute("target-selector")}get modal(){return this.hasAttribute("modal")}set modal(e){e?this.setAttribute("modal",""):this.removeAttribute("modal")}get popoverFor(){return this.getAttribute("popover-for")}set popoverFor(e){e?this.setAttribute("popover-for",e):this.removeAttribute("popover-for")}get flipPriority(){return this._flipPriority}set flipPriority(e){e&&e.length>0?this._flipPriority=e:this._flipPriority=null,this.reConfigurePopper()}get offset(){return this.getAttribute("offset")?parseInt(this.getAttribute("offset")):0}set offset(e){e?this.setAttribute("offset",e.toString()):this.removeAttribute("offset"),this.reConfigurePopper()}reConfigurePopper(){this._popper&&this.configurePopper()}get noArrow(){return this.hasAttribute("no-arrow")}set noArrow(e){e?this.setAttribute("no-arrow",""):this.removeAttribute("no-arrow")}static get observedAttributes(){return["placement","target-selector","trigger-type"]}attributeChangedCallback(e,i){switch(e){case"placement":{this.updatePopper();break}case"trigger-type":{this.removeTargetEventListener(this.targetElement),this.addTargetEventListener(this.targetElement);break}case"target-selector":{this.handleTargetSelectorChange(i);break}}}connectedCallback(){this._firstUpdated||(this.firstUpdated(),this._firstUpdated=!0),this.targetElement?this.addTargetEventListener(this.targetElement):this.targetSelector&&requestAnimationFrame(()=>{this.isConnected&&this.handleTargetSelectorChange(null)}),this._arrow=document.createElement("div"),this._arrow.classList.add("popover-arrow"),this._arrow.setAttribute("data-popper-arrow",""),this._arrow.style.display="flex",this._arrow.innerHTML=no}disconnectedCallback(){this.targetElement&&(this.removeTargetEventListener(this.targetElement),this.removeTargetClassForOpen(this.targetElement)),this._resizeObserver&&(this._resizeObserver.disconnect(),this._resizeObserver=null)}firstUpdated(){this.style.display="none",this.triggerType=this.triggerType||"click",this.placement=this.placement||"auto"}get open(){return this._open}set open(e){e!==this._open&&(this._open=e,this.handleOpenChange())}handleOpenChange(){this.open?(this._popper||this.configurePopper(),this._container.innerHTML="",this.popoverFor&&this._container.setAttribute("popover-for",this.popoverFor),this.content&&(this._container.prepend(this.content),Object.assign(this.content.style,{position:"relative",display:"block",zIndex:1}),window.requestAnimationFrame(()=>{let e=getComputedStyle(this.content).backgroundColor;e=="rgba(0, 0, 0, 0)"&&(this.content.style.background=e="#f2f2f2"),this._arrow.querySelector(".arrow-background").style.fill=e})),this.ensureArrowIsAdded(),this.ownerDocument.body.appendChild(this._container),this.updatePopper(),this.setAttribute("open",""),this.modal&&(window.addEventListener("click",this.hideIfExternalTarget,{capture:!0}),window.addEventListener("focus",this.hideIfExternalTarget,{capture:!0})),this.targetElement&&(this.addTargetClassForOpen(this.targetElement),this.targetElement.setAttribute("aria-expanded","true")),this.dispatchEvent(new CustomEvent("open")),this._container.addEventListener("keydown",this.handleTabKeyDown)):(this.ownerDocument.body.removeChild(this._container),this.removeAttribute("open"),window.removeEventListener("click",this.hideIfExternalTarget,{capture:!0}),window.removeEventListener("focus",this.hideIfExternalTarget,{capture:!0}),this.targetElement&&(this.removeTargetClassForOpen(this.targetElement),this.targetElement.setAttribute("aria-expanded","false")),this.dispatchEvent(new CustomEvent("close")),this._container.removeEventListener("keydown",this.handleTabKeyDown))}handleTargetSelectorChange(e){const i=document.querySelector(e);i&&(this.removeTargetEventListener(i),this.removeTargetClassForOpen(i)),this.targetSelector&&(this.targetElement=document.querySelector(this.targetSelector),this.addTargetEventListener(this.targetElement))}addTargetEventListener(e){if(e)switch(this.triggerType){case"hover":{e.addEventListener("mouseenter",this.show),e.addEventListener("mouseleave",this.hide);break}case"click":{e.addEventListener("click",this.toggle);break}}}removeTargetEventListener(e){if(e)switch(this.triggerType){case"hover":{e.removeEventListener("mouseenter",this.show),e.removeEventListener("mouseleave",this.hide);break}case"click":{e.removeEventListener("click",this.toggle);break}}}configurePopper(){this.createContentContainer(),this.ensureArrowIsAdded();const e=this,i={placement:e.placement,strategy:"absolute",modifiers:[{name:"computeStyles",options:{gpuAcceleration:!io}},{name:"flip",options:{fallbackPlacements:e._flipPriority}},{name:"offset",options:{offset:()=>[0,e.noArrow?0+e.offset:this._arrow.clientHeight+e.offset]}},{name:"arrow",options:{padding:6}},{name:"resetArrowStyles",enabled:!0,phase:"beforeWrite",fn({state:a}){Object.assign(e._arrow.style,{top:a.styles.arrow.top||"",left:a.styles.arrow.left||"",bottom:a.styles.arrow.bottom||"",right:a.styles.arrow.right||""})}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn({state:a}){e.updateArrow(a.placement)}}]};this._popper=ro(this.targetElement,this._container,i)}createContentContainer(){this._container=document.createElement("div"),this._container.classList.add("popover-container"),this._container.tabIndex=0,this._resizeObserver&&this._resizeObserver.disconnect(),this._resizeObserver=new ResizeObserver(()=>{this._popper&&this._popper.update()}),this._resizeObserver.observe(this._container),Object.assign(this._container.style,{boxShadow:`0 4px 5px 0 rgba(0, 0, 0, 0.14),
67
67
  0 1px 10px 0 rgba(0, 0, 0, 0.12),
68
- 0 2px 4px -1px rgba(0, 0, 0, 0.4)`,border:"1px solid #999",boxSizing:"border-box",zIndex:2e4})}ensureArrowIsAdded(){!this.noArrow&&!this._container.contains(this._arrow)&&this._container.appendChild(this._arrow)}updatePopper(){this._popper&&(this._popper.state.elements.reference=this.targetElement,this._popper.state.options.placement=this.placement,this.open&&this._popper.update())}updateArrow(e){if(this._arrow){const i=this.getArrowVariant(e);if(this._arrow.setAttribute("variant",i),this._content){const a=this._arrow.querySelector("svg"),n=this._arrow.clientWidth,u=this._arrow.clientHeight,l=`-${u-an}px`,h=(n-u)/2,b=`-${u+h-an}px`;switch(i){case"bottom":{this._arrow.style.top=l,a.style.transform="rotate(180deg)";break}case"top":{this._arrow.style.bottom=l,a.style.transform="rotate(0deg)";break}case"left":{this._arrow.style.right=b,a.style.transform="rotate(270deg)";break}case"right":{this._arrow.style.left=b,a.style.transform="rotate(90deg)";break}}}}}getArrowVariant(e){if(e.indexOf("bottom")!==-1)return"bottom";if(e.indexOf("top")!==-1)return"top";if(e.indexOf("left")!==-1)return"left";if(e.indexOf("right")!==-1)return"right"}get content(){return this._content||(this._content=this.firstElementChild,this._content.setAttribute("data-popper-content","")),this._content}addTargetClassForOpen(e){e&&e.classList.add(ln)}removeTargetClassForOpen(e){e&&e.classList.remove(ln)}};Dr.ID="sd-popover";let at=Dr;customElements.get(at.ID)||customElements.define(at.ID,at);function Zn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function so(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var e=t.default;if(typeof e=="function"){var i=function a(){var n=!1;try{n=this instanceof a}catch{}return n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};i.prototype=e.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(t).forEach(function(a){var n=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(i,a,n.get?n:{enumerable:!0,get:function(){return t[a]}})}),i}var kt={exports:{}},cn;function oo(){if(cn)return kt.exports;cn=1;var t=String,e=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}};return kt.exports=e(),kt.exports.createColors=e,kt.exports}const ao={},lo=Object.freeze(Object.defineProperty({__proto__:null,default:ao},Symbol.toStringTag,{value:"Module"})),Ee=so(lo);var Vt,un;function Pr(){if(un)return Vt;un=1;let t=oo(),e=Ee;class i extends Error{constructor(n,u,l,h,b,f){super(n),this.name="CssSyntaxError",this.reason=n,b&&(this.file=b),h&&(this.source=h),f&&(this.plugin=f),typeof u<"u"&&typeof l<"u"&&(typeof u=="number"?(this.line=u,this.column=l):(this.line=u.line,this.column=u.column,this.endLine=l.line,this.endColumn=l.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,i)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(n){if(!this.source)return"";let u=this.source;n==null&&(n=t.isColorSupported);let l=s=>s,h=s=>s,b=s=>s;if(n){let{bold:s,gray:p,red:d}=t.createColors(!0);h=m=>s(d(m)),l=m=>p(m),e&&(b=m=>e(m))}let f=u.split(/\r?\n/),r=Math.max(this.line-3,0),c=Math.min(this.line+2,f.length),o=String(c).length;return f.slice(r,c).map((s,p)=>{let d=r+1+p,m=" "+(" "+d).slice(-o)+" | ";if(d===this.line){if(s.length>160){let E=20,w=Math.max(0,this.column-E),y=Math.max(this.column+E,this.endColumn+E),v=s.slice(w,y),O=l(m.replace(/\d/g," "))+s.slice(0,Math.min(this.column-1,E-1)).replace(/[^\t]/g," ");return h(">")+l(m)+b(v)+`
69
- `+O+h("^")}let x=l(m.replace(/\d/g," "))+s.slice(0,this.column-1).replace(/[^\t]/g," ");return h(">")+l(m)+b(s)+`
70
- `+x+h("^")}return" "+l(m)+b(s)}).join(`
71
- `)}toString(){let n=this.showSourceCode();return n&&(n=`
68
+ 0 2px 4px -1px rgba(0, 0, 0, 0.4)`,border:"1px solid #999",boxSizing:"border-box",zIndex:2e4})}ensureArrowIsAdded(){!this.noArrow&&!this._container.contains(this._arrow)&&this._container.appendChild(this._arrow)}updatePopper(){this._popper&&(this._popper.state.elements.reference=this.targetElement,this._popper.state.options.placement=this.placement,this.open&&this._popper.update())}updateArrow(e){if(this._arrow){const i=this.getArrowVariant(e);if(this._arrow.setAttribute("variant",i),this._content){const a=this._arrow.querySelector("svg"),r=this._arrow.clientWidth,l=this._arrow.clientHeight,c=`-${l-an}px`,h=(r-l)/2,m=`-${l+h-an}px`;switch(i){case"bottom":{this._arrow.style.top=c,a.style.transform="rotate(180deg)";break}case"top":{this._arrow.style.bottom=c,a.style.transform="rotate(0deg)";break}case"left":{this._arrow.style.right=m,a.style.transform="rotate(270deg)";break}case"right":{this._arrow.style.left=m,a.style.transform="rotate(90deg)";break}}}}}getArrowVariant(e){if(e.indexOf("bottom")!==-1)return"bottom";if(e.indexOf("top")!==-1)return"top";if(e.indexOf("left")!==-1)return"left";if(e.indexOf("right")!==-1)return"right"}get content(){return this._content||(this._content=this.firstElementChild,this._content.setAttribute("data-popper-content","")),this._content}addTargetClassForOpen(e){e&&e.classList.add(ln)}removeTargetClassForOpen(e){e&&e.classList.remove(ln)}findNextFocusableAfter(e,i,a){if(!e)return null;const r=i??document.body,l=document.createTreeWalker(r,NodeFilter.SHOW_ELEMENT,{acceptNode(h){const m=h;return m.tabIndex>=0&&!m.hidden&&m.offsetParent!==null?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return l.currentNode=e,a?l.nextNode():l.previousNode()}};Dr.ID="sd-popover";let at=Dr;customElements.get(at.ID)||customElements.define(at.ID,at);function Zn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function so(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var e=t.default;if(typeof e=="function"){var i=function a(){var r=!1;try{r=this instanceof a}catch{}return r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};i.prototype=e.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(t).forEach(function(a){var r=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(i,a,r.get?r:{enumerable:!0,get:function(){return t[a]}})}),i}var kt={exports:{}},cn;function oo(){if(cn)return kt.exports;cn=1;var t=String,e=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}};return kt.exports=e(),kt.exports.createColors=e,kt.exports}const ao={},lo=Object.freeze(Object.defineProperty({__proto__:null,default:ao},Symbol.toStringTag,{value:"Module"})),Ee=so(lo);var Vt,un;function Pr(){if(un)return Vt;un=1;let t=oo(),e=Ee;class i extends Error{constructor(r,l,c,h,m,f){super(r),this.name="CssSyntaxError",this.reason=r,m&&(this.file=m),h&&(this.source=h),f&&(this.plugin=f),typeof l<"u"&&typeof c<"u"&&(typeof l=="number"?(this.line=l,this.column=c):(this.line=l.line,this.column=l.column,this.endLine=c.line,this.endColumn=c.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,i)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(r){if(!this.source)return"";let l=this.source;r==null&&(r=t.isColorSupported);let c=s=>s,h=s=>s,m=s=>s;if(r){let{bold:s,gray:p,red:d}=t.createColors(!0);h=b=>s(d(b)),c=b=>p(b),e&&(m=b=>e(b))}let f=l.split(/\r?\n/),n=Math.max(this.line-3,0),u=Math.min(this.line+2,f.length),o=String(u).length;return f.slice(n,u).map((s,p)=>{let d=n+1+p,b=" "+(" "+d).slice(-o)+" | ";if(d===this.line){if(s.length>160){let E=20,w=Math.max(0,this.column-E),y=Math.max(this.column+E,this.endColumn+E),v=s.slice(w,y),O=c(b.replace(/\d/g," "))+s.slice(0,Math.min(this.column-1,E-1)).replace(/[^\t]/g," ");return h(">")+c(b)+m(v)+`
69
+ `+O+h("^")}let x=c(b.replace(/\d/g," "))+s.slice(0,this.column-1).replace(/[^\t]/g," ");return h(">")+c(b)+m(s)+`
70
+ `+x+h("^")}return" "+c(b)+m(s)}).join(`
71
+ `)}toString(){let r=this.showSourceCode();return r&&(r=`
72
72
 
73
- `+n+`
74
- `),this.name+": "+this.message+n}}return Vt=i,i.default=i,Vt}var Zt,fn;function Xn(){if(fn)return Zt;fn=1;const t={after:`
73
+ `+r+`
74
+ `),this.name+": "+this.message+r}}return Vt=i,i.default=i,Vt}var Zt,fn;function Kn(){if(fn)return Zt;fn=1;const t={after:`
75
75
  `,beforeClose:`
76
76
  `,beforeComment:`
77
77
  `,beforeDecl:`
78
78
  `,beforeOpen:" ",beforeRule:`
79
- `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function e(a){return a[0].toUpperCase()+a.slice(1)}class i{constructor(n){this.builder=n}atrule(n,u){let l="@"+n.name,h=n.params?this.rawValue(n,"params"):"";if(typeof n.raws.afterName<"u"?l+=n.raws.afterName:h&&(l+=" "),n.nodes)this.block(n,l+h);else{let b=(n.raws.between||"")+(u?";":"");this.builder(l+h+b,n)}}beforeAfter(n,u){let l;n.type==="decl"?l=this.raw(n,null,"beforeDecl"):n.type==="comment"?l=this.raw(n,null,"beforeComment"):u==="before"?l=this.raw(n,null,"beforeRule"):l=this.raw(n,null,"beforeClose");let h=n.parent,b=0;for(;h&&h.type!=="root";)b+=1,h=h.parent;if(l.includes(`
80
- `)){let f=this.raw(n,null,"indent");if(f.length)for(let r=0;r<b;r++)l+=f}return l}block(n,u){let l=this.raw(n,"between","beforeOpen");this.builder(u+l+"{",n,"start");let h;n.nodes&&n.nodes.length?(this.body(n),h=this.raw(n,"after")):h=this.raw(n,"after","emptyBody"),h&&this.builder(h),this.builder("}",n,"end")}body(n){let u=n.nodes.length-1;for(;u>0&&n.nodes[u].type==="comment";)u-=1;let l=this.raw(n,"semicolon");for(let h=0;h<n.nodes.length;h++){let b=n.nodes[h],f=this.raw(b,"before");f&&this.builder(f),this.stringify(b,u!==h||l)}}comment(n){let u=this.raw(n,"left","commentLeft"),l=this.raw(n,"right","commentRight");this.builder("/*"+u+n.text+l+"*/",n)}decl(n,u){let l=this.raw(n,"between","colon"),h=n.prop+l+this.rawValue(n,"value");n.important&&(h+=n.raws.important||" !important"),u&&(h+=";"),this.builder(h,n)}document(n){this.body(n)}raw(n,u,l){let h;if(l||(l=u),u&&(h=n.raws[u],typeof h<"u"))return h;let b=n.parent;if(l==="before"&&(!b||b.type==="root"&&b.first===n||b&&b.type==="document"))return"";if(!b)return t[l];let f=n.root();if(f.rawCache||(f.rawCache={}),typeof f.rawCache[l]<"u")return f.rawCache[l];if(l==="before"||l==="after")return this.beforeAfter(n,l);{let r="raw"+e(l);this[r]?h=this[r](f,n):f.walk(c=>{if(h=c.raws[u],typeof h<"u")return!1})}return typeof h>"u"&&(h=t[l]),f.rawCache[l]=h,h}rawBeforeClose(n){let u;return n.walk(l=>{if(l.nodes&&l.nodes.length>0&&typeof l.raws.after<"u")return u=l.raws.after,u.includes(`
81
- `)&&(u=u.replace(/[^\n]+$/,"")),!1}),u&&(u=u.replace(/\S/g,"")),u}rawBeforeComment(n,u){let l;return n.walkComments(h=>{if(typeof h.raws.before<"u")return l=h.raws.before,l.includes(`
82
- `)&&(l=l.replace(/[^\n]+$/,"")),!1}),typeof l>"u"?l=this.raw(u,null,"beforeDecl"):l&&(l=l.replace(/\S/g,"")),l}rawBeforeDecl(n,u){let l;return n.walkDecls(h=>{if(typeof h.raws.before<"u")return l=h.raws.before,l.includes(`
83
- `)&&(l=l.replace(/[^\n]+$/,"")),!1}),typeof l>"u"?l=this.raw(u,null,"beforeRule"):l&&(l=l.replace(/\S/g,"")),l}rawBeforeOpen(n){let u;return n.walk(l=>{if(l.type!=="decl"&&(u=l.raws.between,typeof u<"u"))return!1}),u}rawBeforeRule(n){let u;return n.walk(l=>{if(l.nodes&&(l.parent!==n||n.first!==l)&&typeof l.raws.before<"u")return u=l.raws.before,u.includes(`
84
- `)&&(u=u.replace(/[^\n]+$/,"")),!1}),u&&(u=u.replace(/\S/g,"")),u}rawColon(n){let u;return n.walkDecls(l=>{if(typeof l.raws.between<"u")return u=l.raws.between.replace(/[^\s:]/g,""),!1}),u}rawEmptyBody(n){let u;return n.walk(l=>{if(l.nodes&&l.nodes.length===0&&(u=l.raws.after,typeof u<"u"))return!1}),u}rawIndent(n){if(n.raws.indent)return n.raws.indent;let u;return n.walk(l=>{let h=l.parent;if(h&&h!==n&&h.parent&&h.parent===n&&typeof l.raws.before<"u"){let b=l.raws.before.split(`
85
- `);return u=b[b.length-1],u=u.replace(/\S/g,""),!1}}),u}rawSemicolon(n){let u;return n.walk(l=>{if(l.nodes&&l.nodes.length&&l.last.type==="decl"&&(u=l.raws.semicolon,typeof u<"u"))return!1}),u}rawValue(n,u){let l=n[u],h=n.raws[u];return h&&h.value===l?h.raw:l}root(n){this.body(n),n.raws.after&&this.builder(n.raws.after)}rule(n){this.block(n,this.rawValue(n,"selector")),n.raws.ownSemicolon&&this.builder(n.raws.ownSemicolon,n,"end")}stringify(n,u){if(!this[n.type])throw new Error("Unknown AST node type "+n.type+". Maybe you need to change PostCSS stringifier.");this[n.type](n,u)}}return Zt=i,i.default=i,Zt}var Xt,hn;function Nt(){if(hn)return Xt;hn=1;let t=Xn();function e(i,a){new t(a).stringify(i)}return Xt=e,e.default=e,Xt}var St={},pn;function Nr(){return pn||(pn=1,St.isClean=Symbol("isClean"),St.my=Symbol("my")),St}var Jt,dn;function Mt(){if(dn)return Jt;dn=1;let t=Pr(),e=Xn(),i=Nt(),{isClean:a,my:n}=Nr();function u(b,f){let r=new b.constructor;for(let c in b){if(!Object.prototype.hasOwnProperty.call(b,c)||c==="proxyCache")continue;let o=b[c],s=typeof o;c==="parent"&&s==="object"?f&&(r[c]=f):c==="source"?r[c]=o:Array.isArray(o)?r[c]=o.map(p=>u(p,r)):(s==="object"&&o!==null&&(o=u(o)),r[c]=o)}return r}function l(b,f){if(f&&typeof f.offset<"u")return f.offset;let r=1,c=1,o=0;for(let s=0;s<b.length;s++){if(c===f.line&&r===f.column){o=s;break}b[s]===`
86
- `?(r=1,c+=1):r+=1}return o}class h{get proxyOf(){return this}constructor(f={}){this.raws={},this[a]=!1,this[n]=!0;for(let r in f)if(r==="nodes"){this.nodes=[];for(let c of f[r])typeof c.clone=="function"?this.append(c.clone()):this.append(c)}else this[r]=f[r]}addToError(f){if(f.postcssNode=this,f.stack&&this.source&&/\n\s{4}at /.test(f.stack)){let r=this.source;f.stack=f.stack.replace(/\n\s{4}at /,`$&${r.input.from}:${r.start.line}:${r.start.column}$&`)}return f}after(f){return this.parent.insertAfter(this,f),this}assign(f={}){for(let r in f)this[r]=f[r];return this}before(f){return this.parent.insertBefore(this,f),this}cleanRaws(f){delete this.raws.before,delete this.raws.after,f||delete this.raws.between}clone(f={}){let r=u(this);for(let c in f)r[c]=f[c];return r}cloneAfter(f={}){let r=this.clone(f);return this.parent.insertAfter(this,r),r}cloneBefore(f={}){let r=this.clone(f);return this.parent.insertBefore(this,r),r}error(f,r={}){if(this.source){let{end:c,start:o}=this.rangeBy(r);return this.source.input.error(f,{column:o.column,line:o.line},{column:c.column,line:c.line},r)}return new t(f)}getProxyProcessor(){return{get(f,r){return r==="proxyOf"?f:r==="root"?()=>f.root().toProxy():f[r]},set(f,r,c){return f[r]===c||(f[r]=c,(r==="prop"||r==="value"||r==="name"||r==="params"||r==="important"||r==="text")&&f.markDirty()),!0}}}markClean(){this[a]=!0}markDirty(){if(this[a]){this[a]=!1;let f=this;for(;f=f.parent;)f[a]=!1}}next(){if(!this.parent)return;let f=this.parent.index(this);return this.parent.nodes[f+1]}positionBy(f={}){let r=this.source.start;if(f.index)r=this.positionInside(f.index);else if(f.word){let c="document"in this.source.input?this.source.input.document:this.source.input.css,s=c.slice(l(c,this.source.start),l(c,this.source.end)).indexOf(f.word);s!==-1&&(r=this.positionInside(s))}return r}positionInside(f){let r=this.source.start.column,c=this.source.start.line,o="document"in this.source.input?this.source.input.document:this.source.input.css,s=l(o,this.source.start),p=s+f;for(let d=s;d<p;d++)o[d]===`
87
- `?(r=1,c+=1):r+=1;return{column:r,line:c,offset:p}}prev(){if(!this.parent)return;let f=this.parent.index(this);return this.parent.nodes[f-1]}rangeBy(f={}){let r="document"in this.source.input?this.source.input.document:this.source.input.css,c={column:this.source.start.column,line:this.source.start.line,offset:l(r,this.source.start)},o=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:l(r,this.source.end)+1}:{column:c.column+1,line:c.line,offset:c.offset+1};if(f.word){let p=r.slice(l(r,this.source.start),l(r,this.source.end)).indexOf(f.word);p!==-1&&(c=this.positionInside(p),o=this.positionInside(p+f.word.length))}else f.start?c={column:f.start.column,line:f.start.line,offset:l(r,f.start)}:f.index&&(c=this.positionInside(f.index)),f.end?o={column:f.end.column,line:f.end.line,offset:l(r,f.end)}:typeof f.endIndex=="number"?o=this.positionInside(f.endIndex):f.index&&(o=this.positionInside(f.index+1));return(o.line<c.line||o.line===c.line&&o.column<=c.column)&&(o={column:c.column+1,line:c.line,offset:c.offset+1}),{end:o,start:c}}raw(f,r){return new e().raw(this,f,r)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...f){if(this.parent){let r=this,c=!1;for(let o of f)o===this?c=!0:c?(this.parent.insertAfter(r,o),r=o):this.parent.insertBefore(r,o);c||this.remove()}return this}root(){let f=this;for(;f.parent&&f.parent.type!=="document";)f=f.parent;return f}toJSON(f,r){let c={},o=r==null;r=r||new Map;let s=0;for(let p in this){if(!Object.prototype.hasOwnProperty.call(this,p)||p==="parent"||p==="proxyCache")continue;let d=this[p];if(Array.isArray(d))c[p]=d.map(m=>typeof m=="object"&&m.toJSON?m.toJSON(null,r):m);else if(typeof d=="object"&&d.toJSON)c[p]=d.toJSON(null,r);else if(p==="source"){if(d==null)continue;let m=r.get(d.input);m==null&&(m=s,r.set(d.input,s),s++),c[p]={end:d.end,inputId:m,start:d.start}}else c[p]=d}return o&&(c.inputs=[...r.keys()].map(p=>p.toJSON())),c}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(f=i){f.stringify&&(f=f.stringify);let r="";return f(this,c=>{r+=c}),r}warn(f,r,c={}){let o={node:this};for(let s in c)o[s]=c[s];return f.warn(r,o)}}return Jt=h,h.default=h,Jt}var Kt,gn;function Tt(){if(gn)return Kt;gn=1;let t=Mt();class e extends t{constructor(a){super(a),this.type="comment"}}return Kt=e,e.default=e,Kt}var Yt,mn;function Lt(){if(mn)return Yt;mn=1;let t=Mt();class e extends t{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(a){a&&typeof a.value<"u"&&typeof a.value!="string"&&(a={...a,value:String(a.value)}),super(a),this.type="decl"}}return Yt=e,e.default=e,Yt}var Qt,bn;function He(){if(bn)return Qt;bn=1;let t=Tt(),e=Lt(),i=Mt(),{isClean:a,my:n}=Nr(),u,l,h,b;function f(o){return o.map(s=>(s.nodes&&(s.nodes=f(s.nodes)),delete s.source,s))}function r(o){if(o[a]=!1,o.proxyOf.nodes)for(let s of o.proxyOf.nodes)r(s)}class c extends i{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...s){for(let p of s){let d=this.normalize(p,this.last);for(let m of d)this.proxyOf.nodes.push(m)}return this.markDirty(),this}cleanRaws(s){if(super.cleanRaws(s),this.nodes)for(let p of this.nodes)p.cleanRaws(s)}each(s){if(!this.proxyOf.nodes)return;let p=this.getIterator(),d,m;for(;this.indexes[p]<this.proxyOf.nodes.length&&(d=this.indexes[p],m=s(this.proxyOf.nodes[d],d),m!==!1);)this.indexes[p]+=1;return delete this.indexes[p],m}every(s){return this.nodes.every(s)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let s=this.lastEach;return this.indexes[s]=0,s}getProxyProcessor(){return{get(s,p){return p==="proxyOf"?s:s[p]?p==="each"||typeof p=="string"&&p.startsWith("walk")?(...d)=>s[p](...d.map(m=>typeof m=="function"?(x,E)=>m(x.toProxy(),E):m)):p==="every"||p==="some"?d=>s[p]((m,...x)=>d(m.toProxy(),...x)):p==="root"?()=>s.root().toProxy():p==="nodes"?s.nodes.map(d=>d.toProxy()):p==="first"||p==="last"?s[p].toProxy():s[p]:s[p]},set(s,p,d){return s[p]===d||(s[p]=d,(p==="name"||p==="params"||p==="selector")&&s.markDirty()),!0}}}index(s){return typeof s=="number"?s:(s.proxyOf&&(s=s.proxyOf),this.proxyOf.nodes.indexOf(s))}insertAfter(s,p){let d=this.index(s),m=this.normalize(p,this.proxyOf.nodes[d]).reverse();d=this.index(s);for(let E of m)this.proxyOf.nodes.splice(d+1,0,E);let x;for(let E in this.indexes)x=this.indexes[E],d<x&&(this.indexes[E]=x+m.length);return this.markDirty(),this}insertBefore(s,p){let d=this.index(s),m=d===0?"prepend":!1,x=this.normalize(p,this.proxyOf.nodes[d],m).reverse();d=this.index(s);for(let w of x)this.proxyOf.nodes.splice(d,0,w);let E;for(let w in this.indexes)E=this.indexes[w],d<=E&&(this.indexes[w]=E+x.length);return this.markDirty(),this}normalize(s,p){if(typeof s=="string")s=f(l(s).nodes);else if(typeof s>"u")s=[];else if(Array.isArray(s)){s=s.slice(0);for(let m of s)m.parent&&m.parent.removeChild(m,"ignore")}else if(s.type==="root"&&this.type!=="document"){s=s.nodes.slice(0);for(let m of s)m.parent&&m.parent.removeChild(m,"ignore")}else if(s.type)s=[s];else if(s.prop){if(typeof s.value>"u")throw new Error("Value field is missed in node creation");typeof s.value!="string"&&(s.value=String(s.value)),s=[new e(s)]}else if(s.selector||s.selectors)s=[new b(s)];else if(s.name)s=[new u(s)];else if(s.text)s=[new t(s)];else throw new Error("Unknown node type in node creation");return s.map(m=>(m[n]||c.rebuild(m),m=m.proxyOf,m.parent&&m.parent.removeChild(m),m[a]&&r(m),m.raws||(m.raws={}),typeof m.raws.before>"u"&&p&&typeof p.raws.before<"u"&&(m.raws.before=p.raws.before.replace(/\S/g,"")),m.parent=this.proxyOf,m))}prepend(...s){s=s.reverse();for(let p of s){let d=this.normalize(p,this.first,"prepend").reverse();for(let m of d)this.proxyOf.nodes.unshift(m);for(let m in this.indexes)this.indexes[m]=this.indexes[m]+d.length}return this.markDirty(),this}push(s){return s.parent=this,this.proxyOf.nodes.push(s),this}removeAll(){for(let s of this.proxyOf.nodes)s.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(s){s=this.index(s),this.proxyOf.nodes[s].parent=void 0,this.proxyOf.nodes.splice(s,1);let p;for(let d in this.indexes)p=this.indexes[d],p>=s&&(this.indexes[d]=p-1);return this.markDirty(),this}replaceValues(s,p,d){return d||(d=p,p={}),this.walkDecls(m=>{p.props&&!p.props.includes(m.prop)||p.fast&&!m.value.includes(p.fast)||(m.value=m.value.replace(s,d))}),this.markDirty(),this}some(s){return this.nodes.some(s)}walk(s){return this.each((p,d)=>{let m;try{m=s(p,d)}catch(x){throw p.addToError(x)}return m!==!1&&p.walk&&(m=p.walk(s)),m})}walkAtRules(s,p){return p?s instanceof RegExp?this.walk((d,m)=>{if(d.type==="atrule"&&s.test(d.name))return p(d,m)}):this.walk((d,m)=>{if(d.type==="atrule"&&d.name===s)return p(d,m)}):(p=s,this.walk((d,m)=>{if(d.type==="atrule")return p(d,m)}))}walkComments(s){return this.walk((p,d)=>{if(p.type==="comment")return s(p,d)})}walkDecls(s,p){return p?s instanceof RegExp?this.walk((d,m)=>{if(d.type==="decl"&&s.test(d.prop))return p(d,m)}):this.walk((d,m)=>{if(d.type==="decl"&&d.prop===s)return p(d,m)}):(p=s,this.walk((d,m)=>{if(d.type==="decl")return p(d,m)}))}walkRules(s,p){return p?s instanceof RegExp?this.walk((d,m)=>{if(d.type==="rule"&&s.test(d.selector))return p(d,m)}):this.walk((d,m)=>{if(d.type==="rule"&&d.selector===s)return p(d,m)}):(p=s,this.walk((d,m)=>{if(d.type==="rule")return p(d,m)}))}}return c.registerParse=o=>{l=o},c.registerRule=o=>{b=o},c.registerAtRule=o=>{u=o},c.registerRoot=o=>{h=o},Qt=c,c.default=c,c.rebuild=o=>{o.type==="atrule"?Object.setPrototypeOf(o,u.prototype):o.type==="rule"?Object.setPrototypeOf(o,b.prototype):o.type==="decl"?Object.setPrototypeOf(o,e.prototype):o.type==="comment"?Object.setPrototypeOf(o,t.prototype):o.type==="root"&&Object.setPrototypeOf(o,h.prototype),o[n]=!0,o.nodes&&o.nodes.forEach(s=>{c.rebuild(s)})},Qt}var er,vn;function Mr(){if(vn)return er;vn=1;let t=He();class e extends t{constructor(a){super(a),this.type="atrule"}append(...a){return this.proxyOf.nodes||(this.nodes=[]),super.append(...a)}prepend(...a){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...a)}}return er=e,e.default=e,t.registerAtRule(e),er}var tr,yn;function Tr(){if(yn)return tr;yn=1;let t=He(),e,i;class a extends t{constructor(u){super({type:"document",...u}),this.nodes||(this.nodes=[])}toResult(u={}){return new e(new i,this,u).stringify()}}return a.registerLazyResult=n=>{e=n},a.registerProcessor=n=>{i=n},tr=a,a.default=a,tr}var rr,wn;function co(){if(wn)return rr;wn=1;let t="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return rr={nanoid:(a=21)=>{let n="",u=a|0;for(;u--;)n+=t[Math.random()*64|0];return n},customAlphabet:(a,n=21)=>(u=n)=>{let l="",h=u|0;for(;h--;)l+=a[Math.random()*a.length|0];return l}},rr}var nr,xn;function Jn(){if(xn)return nr;xn=1;let{existsSync:t,readFileSync:e}=Ee,{dirname:i,join:a}=Ee,{SourceMapConsumer:n,SourceMapGenerator:u}=Ee;function l(b){return Buffer?Buffer.from(b,"base64").toString():window.atob(b)}class h{constructor(f,r){if(r.map===!1)return;this.loadAnnotation(f),this.inline=this.startWith(this.annotation,"data:");let c=r.map?r.map.prev:void 0,o=this.loadMap(r.from,c);!this.mapFile&&r.from&&(this.mapFile=r.from),this.mapFile&&(this.root=i(this.mapFile)),o&&(this.text=o)}consumer(){return this.consumerCache||(this.consumerCache=new n(this.text)),this.consumerCache}decodeInline(f){let r=/^data:application\/json;charset=utf-?8;base64,/,c=/^data:application\/json;base64,/,o=/^data:application\/json;charset=utf-?8,/,s=/^data:application\/json,/,p=f.match(o)||f.match(s);if(p)return decodeURIComponent(f.substr(p[0].length));let d=f.match(r)||f.match(c);if(d)return l(f.substr(d[0].length));let m=f.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+m)}getAnnotationURL(f){return f.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(f){return typeof f!="object"?!1:typeof f.mappings=="string"||typeof f._mappings=="string"||Array.isArray(f.sections)}loadAnnotation(f){let r=f.match(/\/\*\s*# sourceMappingURL=/g);if(!r)return;let c=f.lastIndexOf(r.pop()),o=f.indexOf("*/",c);c>-1&&o>-1&&(this.annotation=this.getAnnotationURL(f.substring(c,o)))}loadFile(f){if(this.root=i(f),t(f))return this.mapFile=f,e(f,"utf-8").toString().trim()}loadMap(f,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r=="function"){let c=r(f);if(c){let o=this.loadFile(c);if(!o)throw new Error("Unable to load previous source map: "+c.toString());return o}}else{if(r instanceof n)return u.fromSourceMap(r).toString();if(r instanceof u)return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let c=this.annotation;return f&&(c=a(i(f),c)),this.loadFile(c)}}}startWith(f,r){return f?f.substr(0,r.length)===r:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return nr=h,h.default=h,nr}var ir,En;function jt(){if(En)return ir;En=1;let{nanoid:t}=co(),{isAbsolute:e,resolve:i}=Ee,{SourceMapConsumer:a,SourceMapGenerator:n}=Ee,{fileURLToPath:u,pathToFileURL:l}=Ee,h=Pr(),b=Jn(),f=Ee,r=Symbol("lineToIndexCache"),c=!!(a&&n),o=!!(i&&e);function s(d){if(d[r])return d[r];let m=d.css.split(`
88
- `),x=new Array(m.length),E=0;for(let w=0,y=m.length;w<y;w++)x[w]=E,E+=m[w].length+1;return d[r]=x,x}class p{get from(){return this.file||this.id}constructor(m,x={}){if(m===null||typeof m>"u"||typeof m=="object"&&!m.toString)throw new Error(`PostCSS received ${m} instead of CSS string`);if(this.css=m.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,x.document&&(this.document=x.document.toString()),x.from&&(!o||/^\w+:\/\//.test(x.from)||e(x.from)?this.file=x.from:this.file=i(x.from)),o&&c){let E=new b(this.css,x);if(E.text){this.map=E;let w=E.consumer().file;!this.file&&w&&(this.file=this.mapResolve(w))}}this.file||(this.id="<input css "+t(6)+">"),this.map&&(this.map.file=this.from)}error(m,x,E,w={}){let y,v,O,S,N;if(x&&typeof x=="object"){let _=x,F=E;if(typeof _.offset=="number"){S=_.offset;let $=this.fromOffset(S);x=$.line,E=$.col}else x=_.line,E=_.column,S=this.fromLineAndColumn(x,E);if(typeof F.offset=="number"){O=F.offset;let $=this.fromOffset(O);v=$.line,y=$.col}else v=F.line,y=F.column,O=this.fromLineAndColumn(F.line,F.column)}else if(E)S=this.fromLineAndColumn(x,E);else{S=x;let _=this.fromOffset(S);x=_.line,E=_.col}let L=this.origin(x,E,v,y);return L?N=new h(m,L.endLine===void 0?L.line:{column:L.column,line:L.line},L.endLine===void 0?L.column:{column:L.endColumn,line:L.endLine},L.source,L.file,w.plugin):N=new h(m,v===void 0?x:{column:E,line:x},v===void 0?E:{column:y,line:v},this.css,this.file,w.plugin),N.input={column:E,endColumn:y,endLine:v,endOffset:O,line:x,offset:S,source:this.css},this.file&&(l&&(N.input.url=l(this.file).toString()),N.input.file=this.file),N}fromLineAndColumn(m,x){return s(this)[m-1]+x-1}fromOffset(m){let x=s(this),E=x[x.length-1],w=0;if(m>=E)w=x.length-1;else{let y=x.length-2,v;for(;w<y;)if(v=w+(y-w>>1),m<x[v])y=v-1;else if(m>=x[v+1])w=v+1;else{w=v;break}}return{col:m-x[w]+1,line:w+1}}mapResolve(m){return/^\w+:\/\//.test(m)?m:i(this.map.consumer().sourceRoot||this.map.root||".",m)}origin(m,x,E,w){if(!this.map)return!1;let y=this.map.consumer(),v=y.originalPositionFor({column:x,line:m});if(!v.source)return!1;let O;typeof E=="number"&&(O=y.originalPositionFor({column:w,line:E}));let S;e(v.source)?S=l(v.source):S=new URL(v.source,this.map.consumer().sourceRoot||l(this.map.mapFile));let N={column:v.column,endColumn:O&&O.column,endLine:O&&O.line,line:v.line,url:S.toString()};if(S.protocol==="file:")if(u)N.file=u(S);else throw new Error("file: protocol is not available in this PostCSS build");let L=y.sourceContentFor(v.source);return L&&(N.source=L),N}toJSON(){let m={};for(let x of["hasBOM","css","file","id"])this[x]!=null&&(m[x]=this[x]);return this.map&&(m.map={...this.map},m.map.consumerCache&&(m.map.consumerCache=void 0)),m}}return ir=p,p.default=p,f&&f.registerInput&&f.registerInput(p),ir}var sr,On;function pt(){if(On)return sr;On=1;let t=He(),e,i;class a extends t{constructor(u){super(u),this.type="root",this.nodes||(this.nodes=[])}normalize(u,l,h){let b=super.normalize(u);if(l){if(h==="prepend")this.nodes.length>1?l.raws.before=this.nodes[1].raws.before:delete l.raws.before;else if(this.first!==l)for(let f of b)f.raws.before=l.raws.before}return b}removeChild(u,l){let h=this.index(u);return!l&&h===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[h].raws.before),super.removeChild(u)}toResult(u={}){return new e(new i,this,u).stringify()}}return a.registerLazyResult=n=>{e=n},a.registerProcessor=n=>{i=n},sr=a,a.default=a,t.registerRoot(a),sr}var or,kn;function Kn(){if(kn)return or;kn=1;let t={comma(e){return t.split(e,[","],!0)},space(e){let i=[" ",`
89
- `," "];return t.split(e,i)},split(e,i,a){let n=[],u="",l=!1,h=0,b=!1,f="",r=!1;for(let c of e)r?r=!1:c==="\\"?r=!0:b?c===f&&(b=!1):c==='"'||c==="'"?(b=!0,f=c):c==="("?h+=1:c===")"?h>0&&(h-=1):h===0&&i.includes(c)&&(l=!0),l?(u!==""&&n.push(u.trim()),u="",l=!1):u+=c;return(a||u!=="")&&n.push(u.trim()),n}};return or=t,t.default=t,or}var ar,Sn;function Lr(){if(Sn)return ar;Sn=1;let t=He(),e=Kn();class i extends t{get selectors(){return e.comma(this.selector)}set selectors(n){let u=this.selector?this.selector.match(/,\s*/):null,l=u?u[0]:","+this.raw("between","beforeOpen");this.selector=n.join(l)}constructor(n){super(n),this.type="rule",this.nodes||(this.nodes=[])}}return ar=i,i.default=i,t.registerRule(i),ar}var lr,An;function uo(){if(An)return lr;An=1;let t=Mr(),e=Tt(),i=Lt(),a=jt(),n=Jn(),u=pt(),l=Lr();function h(b,f){if(Array.isArray(b))return b.map(o=>h(o));let{inputs:r,...c}=b;if(r){f=[];for(let o of r){let s={...o,__proto__:a.prototype};s.map&&(s.map={...s.map,__proto__:n.prototype}),f.push(s)}}if(c.nodes&&(c.nodes=b.nodes.map(o=>h(o,f))),c.source){let{inputId:o,...s}=c.source;c.source=s,o!=null&&(c.source.input=f[o])}if(c.type==="root")return new u(c);if(c.type==="decl")return new i(c);if(c.type==="rule")return new l(c);if(c.type==="comment")return new e(c);if(c.type==="atrule")return new t(c);throw new Error("Unknown node type: "+b.type)}return lr=h,h.default=h,lr}var cr,_n;function Yn(){if(_n)return cr;_n=1;let{dirname:t,relative:e,resolve:i,sep:a}=Ee,{SourceMapConsumer:n,SourceMapGenerator:u}=Ee,{pathToFileURL:l}=Ee,h=jt(),b=!!(n&&u),f=!!(t&&i&&e&&a);class r{constructor(o,s,p,d){this.stringify=o,this.mapOpts=p.map||{},this.root=s,this.opts=p,this.css=d,this.originalCSS=d,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let o;this.isInline()?o="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?o=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?o=this.mapOpts.annotation(this.opts.to,this.root):o=this.outputFile()+".map";let s=`
79
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function e(a){return a[0].toUpperCase()+a.slice(1)}class i{constructor(r){this.builder=r}atrule(r,l){let c="@"+r.name,h=r.params?this.rawValue(r,"params"):"";if(typeof r.raws.afterName<"u"?c+=r.raws.afterName:h&&(c+=" "),r.nodes)this.block(r,c+h);else{let m=(r.raws.between||"")+(l?";":"");this.builder(c+h+m,r)}}beforeAfter(r,l){let c;r.type==="decl"?c=this.raw(r,null,"beforeDecl"):r.type==="comment"?c=this.raw(r,null,"beforeComment"):l==="before"?c=this.raw(r,null,"beforeRule"):c=this.raw(r,null,"beforeClose");let h=r.parent,m=0;for(;h&&h.type!=="root";)m+=1,h=h.parent;if(c.includes(`
80
+ `)){let f=this.raw(r,null,"indent");if(f.length)for(let n=0;n<m;n++)c+=f}return c}block(r,l){let c=this.raw(r,"between","beforeOpen");this.builder(l+c+"{",r,"start");let h;r.nodes&&r.nodes.length?(this.body(r),h=this.raw(r,"after")):h=this.raw(r,"after","emptyBody"),h&&this.builder(h),this.builder("}",r,"end")}body(r){let l=r.nodes.length-1;for(;l>0&&r.nodes[l].type==="comment";)l-=1;let c=this.raw(r,"semicolon");for(let h=0;h<r.nodes.length;h++){let m=r.nodes[h],f=this.raw(m,"before");f&&this.builder(f),this.stringify(m,l!==h||c)}}comment(r){let l=this.raw(r,"left","commentLeft"),c=this.raw(r,"right","commentRight");this.builder("/*"+l+r.text+c+"*/",r)}decl(r,l){let c=this.raw(r,"between","colon"),h=r.prop+c+this.rawValue(r,"value");r.important&&(h+=r.raws.important||" !important"),l&&(h+=";"),this.builder(h,r)}document(r){this.body(r)}raw(r,l,c){let h;if(c||(c=l),l&&(h=r.raws[l],typeof h<"u"))return h;let m=r.parent;if(c==="before"&&(!m||m.type==="root"&&m.first===r||m&&m.type==="document"))return"";if(!m)return t[c];let f=r.root();if(f.rawCache||(f.rawCache={}),typeof f.rawCache[c]<"u")return f.rawCache[c];if(c==="before"||c==="after")return this.beforeAfter(r,c);{let n="raw"+e(c);this[n]?h=this[n](f,r):f.walk(u=>{if(h=u.raws[l],typeof h<"u")return!1})}return typeof h>"u"&&(h=t[c]),f.rawCache[c]=h,h}rawBeforeClose(r){let l;return r.walk(c=>{if(c.nodes&&c.nodes.length>0&&typeof c.raws.after<"u")return l=c.raws.after,l.includes(`
81
+ `)&&(l=l.replace(/[^\n]+$/,"")),!1}),l&&(l=l.replace(/\S/g,"")),l}rawBeforeComment(r,l){let c;return r.walkComments(h=>{if(typeof h.raws.before<"u")return c=h.raws.before,c.includes(`
82
+ `)&&(c=c.replace(/[^\n]+$/,"")),!1}),typeof c>"u"?c=this.raw(l,null,"beforeDecl"):c&&(c=c.replace(/\S/g,"")),c}rawBeforeDecl(r,l){let c;return r.walkDecls(h=>{if(typeof h.raws.before<"u")return c=h.raws.before,c.includes(`
83
+ `)&&(c=c.replace(/[^\n]+$/,"")),!1}),typeof c>"u"?c=this.raw(l,null,"beforeRule"):c&&(c=c.replace(/\S/g,"")),c}rawBeforeOpen(r){let l;return r.walk(c=>{if(c.type!=="decl"&&(l=c.raws.between,typeof l<"u"))return!1}),l}rawBeforeRule(r){let l;return r.walk(c=>{if(c.nodes&&(c.parent!==r||r.first!==c)&&typeof c.raws.before<"u")return l=c.raws.before,l.includes(`
84
+ `)&&(l=l.replace(/[^\n]+$/,"")),!1}),l&&(l=l.replace(/\S/g,"")),l}rawColon(r){let l;return r.walkDecls(c=>{if(typeof c.raws.between<"u")return l=c.raws.between.replace(/[^\s:]/g,""),!1}),l}rawEmptyBody(r){let l;return r.walk(c=>{if(c.nodes&&c.nodes.length===0&&(l=c.raws.after,typeof l<"u"))return!1}),l}rawIndent(r){if(r.raws.indent)return r.raws.indent;let l;return r.walk(c=>{let h=c.parent;if(h&&h!==r&&h.parent&&h.parent===r&&typeof c.raws.before<"u"){let m=c.raws.before.split(`
85
+ `);return l=m[m.length-1],l=l.replace(/\S/g,""),!1}}),l}rawSemicolon(r){let l;return r.walk(c=>{if(c.nodes&&c.nodes.length&&c.last.type==="decl"&&(l=c.raws.semicolon,typeof l<"u"))return!1}),l}rawValue(r,l){let c=r[l],h=r.raws[l];return h&&h.value===c?h.raw:c}root(r){this.body(r),r.raws.after&&this.builder(r.raws.after)}rule(r){this.block(r,this.rawValue(r,"selector")),r.raws.ownSemicolon&&this.builder(r.raws.ownSemicolon,r,"end")}stringify(r,l){if(!this[r.type])throw new Error("Unknown AST node type "+r.type+". Maybe you need to change PostCSS stringifier.");this[r.type](r,l)}}return Zt=i,i.default=i,Zt}var Kt,hn;function Nt(){if(hn)return Kt;hn=1;let t=Kn();function e(i,a){new t(a).stringify(i)}return Kt=e,e.default=e,Kt}var St={},pn;function Nr(){return pn||(pn=1,St.isClean=Symbol("isClean"),St.my=Symbol("my")),St}var Xt,dn;function Tt(){if(dn)return Xt;dn=1;let t=Pr(),e=Kn(),i=Nt(),{isClean:a,my:r}=Nr();function l(m,f){let n=new m.constructor;for(let u in m){if(!Object.prototype.hasOwnProperty.call(m,u)||u==="proxyCache")continue;let o=m[u],s=typeof o;u==="parent"&&s==="object"?f&&(n[u]=f):u==="source"?n[u]=o:Array.isArray(o)?n[u]=o.map(p=>l(p,n)):(s==="object"&&o!==null&&(o=l(o)),n[u]=o)}return n}function c(m,f){if(f&&typeof f.offset<"u")return f.offset;let n=1,u=1,o=0;for(let s=0;s<m.length;s++){if(u===f.line&&n===f.column){o=s;break}m[s]===`
86
+ `?(n=1,u+=1):n+=1}return o}class h{get proxyOf(){return this}constructor(f={}){this.raws={},this[a]=!1,this[r]=!0;for(let n in f)if(n==="nodes"){this.nodes=[];for(let u of f[n])typeof u.clone=="function"?this.append(u.clone()):this.append(u)}else this[n]=f[n]}addToError(f){if(f.postcssNode=this,f.stack&&this.source&&/\n\s{4}at /.test(f.stack)){let n=this.source;f.stack=f.stack.replace(/\n\s{4}at /,`$&${n.input.from}:${n.start.line}:${n.start.column}$&`)}return f}after(f){return this.parent.insertAfter(this,f),this}assign(f={}){for(let n in f)this[n]=f[n];return this}before(f){return this.parent.insertBefore(this,f),this}cleanRaws(f){delete this.raws.before,delete this.raws.after,f||delete this.raws.between}clone(f={}){let n=l(this);for(let u in f)n[u]=f[u];return n}cloneAfter(f={}){let n=this.clone(f);return this.parent.insertAfter(this,n),n}cloneBefore(f={}){let n=this.clone(f);return this.parent.insertBefore(this,n),n}error(f,n={}){if(this.source){let{end:u,start:o}=this.rangeBy(n);return this.source.input.error(f,{column:o.column,line:o.line},{column:u.column,line:u.line},n)}return new t(f)}getProxyProcessor(){return{get(f,n){return n==="proxyOf"?f:n==="root"?()=>f.root().toProxy():f[n]},set(f,n,u){return f[n]===u||(f[n]=u,(n==="prop"||n==="value"||n==="name"||n==="params"||n==="important"||n==="text")&&f.markDirty()),!0}}}markClean(){this[a]=!0}markDirty(){if(this[a]){this[a]=!1;let f=this;for(;f=f.parent;)f[a]=!1}}next(){if(!this.parent)return;let f=this.parent.index(this);return this.parent.nodes[f+1]}positionBy(f={}){let n=this.source.start;if(f.index)n=this.positionInside(f.index);else if(f.word){let u="document"in this.source.input?this.source.input.document:this.source.input.css,s=u.slice(c(u,this.source.start),c(u,this.source.end)).indexOf(f.word);s!==-1&&(n=this.positionInside(s))}return n}positionInside(f){let n=this.source.start.column,u=this.source.start.line,o="document"in this.source.input?this.source.input.document:this.source.input.css,s=c(o,this.source.start),p=s+f;for(let d=s;d<p;d++)o[d]===`
87
+ `?(n=1,u+=1):n+=1;return{column:n,line:u,offset:p}}prev(){if(!this.parent)return;let f=this.parent.index(this);return this.parent.nodes[f-1]}rangeBy(f={}){let n="document"in this.source.input?this.source.input.document:this.source.input.css,u={column:this.source.start.column,line:this.source.start.line,offset:c(n,this.source.start)},o=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:c(n,this.source.end)+1}:{column:u.column+1,line:u.line,offset:u.offset+1};if(f.word){let p=n.slice(c(n,this.source.start),c(n,this.source.end)).indexOf(f.word);p!==-1&&(u=this.positionInside(p),o=this.positionInside(p+f.word.length))}else f.start?u={column:f.start.column,line:f.start.line,offset:c(n,f.start)}:f.index&&(u=this.positionInside(f.index)),f.end?o={column:f.end.column,line:f.end.line,offset:c(n,f.end)}:typeof f.endIndex=="number"?o=this.positionInside(f.endIndex):f.index&&(o=this.positionInside(f.index+1));return(o.line<u.line||o.line===u.line&&o.column<=u.column)&&(o={column:u.column+1,line:u.line,offset:u.offset+1}),{end:o,start:u}}raw(f,n){return new e().raw(this,f,n)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...f){if(this.parent){let n=this,u=!1;for(let o of f)o===this?u=!0:u?(this.parent.insertAfter(n,o),n=o):this.parent.insertBefore(n,o);u||this.remove()}return this}root(){let f=this;for(;f.parent&&f.parent.type!=="document";)f=f.parent;return f}toJSON(f,n){let u={},o=n==null;n=n||new Map;let s=0;for(let p in this){if(!Object.prototype.hasOwnProperty.call(this,p)||p==="parent"||p==="proxyCache")continue;let d=this[p];if(Array.isArray(d))u[p]=d.map(b=>typeof b=="object"&&b.toJSON?b.toJSON(null,n):b);else if(typeof d=="object"&&d.toJSON)u[p]=d.toJSON(null,n);else if(p==="source"){if(d==null)continue;let b=n.get(d.input);b==null&&(b=s,n.set(d.input,s),s++),u[p]={end:d.end,inputId:b,start:d.start}}else u[p]=d}return o&&(u.inputs=[...n.keys()].map(p=>p.toJSON())),u}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(f=i){f.stringify&&(f=f.stringify);let n="";return f(this,u=>{n+=u}),n}warn(f,n,u={}){let o={node:this};for(let s in u)o[s]=u[s];return f.warn(n,o)}}return Xt=h,h.default=h,Xt}var Jt,gn;function Mt(){if(gn)return Jt;gn=1;let t=Tt();class e extends t{constructor(a){super(a),this.type="comment"}}return Jt=e,e.default=e,Jt}var Yt,mn;function Lt(){if(mn)return Yt;mn=1;let t=Tt();class e extends t{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(a){a&&typeof a.value<"u"&&typeof a.value!="string"&&(a={...a,value:String(a.value)}),super(a),this.type="decl"}}return Yt=e,e.default=e,Yt}var Qt,bn;function He(){if(bn)return Qt;bn=1;let t=Mt(),e=Lt(),i=Tt(),{isClean:a,my:r}=Nr(),l,c,h,m;function f(o){return o.map(s=>(s.nodes&&(s.nodes=f(s.nodes)),delete s.source,s))}function n(o){if(o[a]=!1,o.proxyOf.nodes)for(let s of o.proxyOf.nodes)n(s)}class u extends i{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...s){for(let p of s){let d=this.normalize(p,this.last);for(let b of d)this.proxyOf.nodes.push(b)}return this.markDirty(),this}cleanRaws(s){if(super.cleanRaws(s),this.nodes)for(let p of this.nodes)p.cleanRaws(s)}each(s){if(!this.proxyOf.nodes)return;let p=this.getIterator(),d,b;for(;this.indexes[p]<this.proxyOf.nodes.length&&(d=this.indexes[p],b=s(this.proxyOf.nodes[d],d),b!==!1);)this.indexes[p]+=1;return delete this.indexes[p],b}every(s){return this.nodes.every(s)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let s=this.lastEach;return this.indexes[s]=0,s}getProxyProcessor(){return{get(s,p){return p==="proxyOf"?s:s[p]?p==="each"||typeof p=="string"&&p.startsWith("walk")?(...d)=>s[p](...d.map(b=>typeof b=="function"?(x,E)=>b(x.toProxy(),E):b)):p==="every"||p==="some"?d=>s[p]((b,...x)=>d(b.toProxy(),...x)):p==="root"?()=>s.root().toProxy():p==="nodes"?s.nodes.map(d=>d.toProxy()):p==="first"||p==="last"?s[p].toProxy():s[p]:s[p]},set(s,p,d){return s[p]===d||(s[p]=d,(p==="name"||p==="params"||p==="selector")&&s.markDirty()),!0}}}index(s){return typeof s=="number"?s:(s.proxyOf&&(s=s.proxyOf),this.proxyOf.nodes.indexOf(s))}insertAfter(s,p){let d=this.index(s),b=this.normalize(p,this.proxyOf.nodes[d]).reverse();d=this.index(s);for(let E of b)this.proxyOf.nodes.splice(d+1,0,E);let x;for(let E in this.indexes)x=this.indexes[E],d<x&&(this.indexes[E]=x+b.length);return this.markDirty(),this}insertBefore(s,p){let d=this.index(s),b=d===0?"prepend":!1,x=this.normalize(p,this.proxyOf.nodes[d],b).reverse();d=this.index(s);for(let w of x)this.proxyOf.nodes.splice(d,0,w);let E;for(let w in this.indexes)E=this.indexes[w],d<=E&&(this.indexes[w]=E+x.length);return this.markDirty(),this}normalize(s,p){if(typeof s=="string")s=f(c(s).nodes);else if(typeof s>"u")s=[];else if(Array.isArray(s)){s=s.slice(0);for(let b of s)b.parent&&b.parent.removeChild(b,"ignore")}else if(s.type==="root"&&this.type!=="document"){s=s.nodes.slice(0);for(let b of s)b.parent&&b.parent.removeChild(b,"ignore")}else if(s.type)s=[s];else if(s.prop){if(typeof s.value>"u")throw new Error("Value field is missed in node creation");typeof s.value!="string"&&(s.value=String(s.value)),s=[new e(s)]}else if(s.selector||s.selectors)s=[new m(s)];else if(s.name)s=[new l(s)];else if(s.text)s=[new t(s)];else throw new Error("Unknown node type in node creation");return s.map(b=>(b[r]||u.rebuild(b),b=b.proxyOf,b.parent&&b.parent.removeChild(b),b[a]&&n(b),b.raws||(b.raws={}),typeof b.raws.before>"u"&&p&&typeof p.raws.before<"u"&&(b.raws.before=p.raws.before.replace(/\S/g,"")),b.parent=this.proxyOf,b))}prepend(...s){s=s.reverse();for(let p of s){let d=this.normalize(p,this.first,"prepend").reverse();for(let b of d)this.proxyOf.nodes.unshift(b);for(let b in this.indexes)this.indexes[b]=this.indexes[b]+d.length}return this.markDirty(),this}push(s){return s.parent=this,this.proxyOf.nodes.push(s),this}removeAll(){for(let s of this.proxyOf.nodes)s.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(s){s=this.index(s),this.proxyOf.nodes[s].parent=void 0,this.proxyOf.nodes.splice(s,1);let p;for(let d in this.indexes)p=this.indexes[d],p>=s&&(this.indexes[d]=p-1);return this.markDirty(),this}replaceValues(s,p,d){return d||(d=p,p={}),this.walkDecls(b=>{p.props&&!p.props.includes(b.prop)||p.fast&&!b.value.includes(p.fast)||(b.value=b.value.replace(s,d))}),this.markDirty(),this}some(s){return this.nodes.some(s)}walk(s){return this.each((p,d)=>{let b;try{b=s(p,d)}catch(x){throw p.addToError(x)}return b!==!1&&p.walk&&(b=p.walk(s)),b})}walkAtRules(s,p){return p?s instanceof RegExp?this.walk((d,b)=>{if(d.type==="atrule"&&s.test(d.name))return p(d,b)}):this.walk((d,b)=>{if(d.type==="atrule"&&d.name===s)return p(d,b)}):(p=s,this.walk((d,b)=>{if(d.type==="atrule")return p(d,b)}))}walkComments(s){return this.walk((p,d)=>{if(p.type==="comment")return s(p,d)})}walkDecls(s,p){return p?s instanceof RegExp?this.walk((d,b)=>{if(d.type==="decl"&&s.test(d.prop))return p(d,b)}):this.walk((d,b)=>{if(d.type==="decl"&&d.prop===s)return p(d,b)}):(p=s,this.walk((d,b)=>{if(d.type==="decl")return p(d,b)}))}walkRules(s,p){return p?s instanceof RegExp?this.walk((d,b)=>{if(d.type==="rule"&&s.test(d.selector))return p(d,b)}):this.walk((d,b)=>{if(d.type==="rule"&&d.selector===s)return p(d,b)}):(p=s,this.walk((d,b)=>{if(d.type==="rule")return p(d,b)}))}}return u.registerParse=o=>{c=o},u.registerRule=o=>{m=o},u.registerAtRule=o=>{l=o},u.registerRoot=o=>{h=o},Qt=u,u.default=u,u.rebuild=o=>{o.type==="atrule"?Object.setPrototypeOf(o,l.prototype):o.type==="rule"?Object.setPrototypeOf(o,m.prototype):o.type==="decl"?Object.setPrototypeOf(o,e.prototype):o.type==="comment"?Object.setPrototypeOf(o,t.prototype):o.type==="root"&&Object.setPrototypeOf(o,h.prototype),o[r]=!0,o.nodes&&o.nodes.forEach(s=>{u.rebuild(s)})},Qt}var er,vn;function Tr(){if(vn)return er;vn=1;let t=He();class e extends t{constructor(a){super(a),this.type="atrule"}append(...a){return this.proxyOf.nodes||(this.nodes=[]),super.append(...a)}prepend(...a){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...a)}}return er=e,e.default=e,t.registerAtRule(e),er}var tr,yn;function Mr(){if(yn)return tr;yn=1;let t=He(),e,i;class a extends t{constructor(l){super({type:"document",...l}),this.nodes||(this.nodes=[])}toResult(l={}){return new e(new i,this,l).stringify()}}return a.registerLazyResult=r=>{e=r},a.registerProcessor=r=>{i=r},tr=a,a.default=a,tr}var rr,wn;function co(){if(wn)return rr;wn=1;let t="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return rr={nanoid:(a=21)=>{let r="",l=a|0;for(;l--;)r+=t[Math.random()*64|0];return r},customAlphabet:(a,r=21)=>(l=r)=>{let c="",h=l|0;for(;h--;)c+=a[Math.random()*a.length|0];return c}},rr}var nr,xn;function Xn(){if(xn)return nr;xn=1;let{existsSync:t,readFileSync:e}=Ee,{dirname:i,join:a}=Ee,{SourceMapConsumer:r,SourceMapGenerator:l}=Ee;function c(m){return Buffer?Buffer.from(m,"base64").toString():window.atob(m)}class h{constructor(f,n){if(n.map===!1)return;this.loadAnnotation(f),this.inline=this.startWith(this.annotation,"data:");let u=n.map?n.map.prev:void 0,o=this.loadMap(n.from,u);!this.mapFile&&n.from&&(this.mapFile=n.from),this.mapFile&&(this.root=i(this.mapFile)),o&&(this.text=o)}consumer(){return this.consumerCache||(this.consumerCache=new r(this.text)),this.consumerCache}decodeInline(f){let n=/^data:application\/json;charset=utf-?8;base64,/,u=/^data:application\/json;base64,/,o=/^data:application\/json;charset=utf-?8,/,s=/^data:application\/json,/,p=f.match(o)||f.match(s);if(p)return decodeURIComponent(f.substr(p[0].length));let d=f.match(n)||f.match(u);if(d)return c(f.substr(d[0].length));let b=f.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+b)}getAnnotationURL(f){return f.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(f){return typeof f!="object"?!1:typeof f.mappings=="string"||typeof f._mappings=="string"||Array.isArray(f.sections)}loadAnnotation(f){let n=f.match(/\/\*\s*# sourceMappingURL=/g);if(!n)return;let u=f.lastIndexOf(n.pop()),o=f.indexOf("*/",u);u>-1&&o>-1&&(this.annotation=this.getAnnotationURL(f.substring(u,o)))}loadFile(f){if(this.root=i(f),t(f))return this.mapFile=f,e(f,"utf-8").toString().trim()}loadMap(f,n){if(n===!1)return!1;if(n){if(typeof n=="string")return n;if(typeof n=="function"){let u=n(f);if(u){let o=this.loadFile(u);if(!o)throw new Error("Unable to load previous source map: "+u.toString());return o}}else{if(n instanceof r)return l.fromSourceMap(n).toString();if(n instanceof l)return n.toString();if(this.isMap(n))return JSON.stringify(n);throw new Error("Unsupported previous source map format: "+n.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let u=this.annotation;return f&&(u=a(i(f),u)),this.loadFile(u)}}}startWith(f,n){return f?f.substr(0,n.length)===n:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return nr=h,h.default=h,nr}var ir,En;function jt(){if(En)return ir;En=1;let{nanoid:t}=co(),{isAbsolute:e,resolve:i}=Ee,{SourceMapConsumer:a,SourceMapGenerator:r}=Ee,{fileURLToPath:l,pathToFileURL:c}=Ee,h=Pr(),m=Xn(),f=Ee,n=Symbol("lineToIndexCache"),u=!!(a&&r),o=!!(i&&e);function s(d){if(d[n])return d[n];let b=d.css.split(`
88
+ `),x=new Array(b.length),E=0;for(let w=0,y=b.length;w<y;w++)x[w]=E,E+=b[w].length+1;return d[n]=x,x}class p{get from(){return this.file||this.id}constructor(b,x={}){if(b===null||typeof b>"u"||typeof b=="object"&&!b.toString)throw new Error(`PostCSS received ${b} instead of CSS string`);if(this.css=b.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,x.document&&(this.document=x.document.toString()),x.from&&(!o||/^\w+:\/\//.test(x.from)||e(x.from)?this.file=x.from:this.file=i(x.from)),o&&u){let E=new m(this.css,x);if(E.text){this.map=E;let w=E.consumer().file;!this.file&&w&&(this.file=this.mapResolve(w))}}this.file||(this.id="<input css "+t(6)+">"),this.map&&(this.map.file=this.from)}error(b,x,E,w={}){let y,v,O,S,N;if(x&&typeof x=="object"){let _=x,F=E;if(typeof _.offset=="number"){S=_.offset;let $=this.fromOffset(S);x=$.line,E=$.col}else x=_.line,E=_.column,S=this.fromLineAndColumn(x,E);if(typeof F.offset=="number"){O=F.offset;let $=this.fromOffset(O);v=$.line,y=$.col}else v=F.line,y=F.column,O=this.fromLineAndColumn(F.line,F.column)}else if(E)S=this.fromLineAndColumn(x,E);else{S=x;let _=this.fromOffset(S);x=_.line,E=_.col}let L=this.origin(x,E,v,y);return L?N=new h(b,L.endLine===void 0?L.line:{column:L.column,line:L.line},L.endLine===void 0?L.column:{column:L.endColumn,line:L.endLine},L.source,L.file,w.plugin):N=new h(b,v===void 0?x:{column:E,line:x},v===void 0?E:{column:y,line:v},this.css,this.file,w.plugin),N.input={column:E,endColumn:y,endLine:v,endOffset:O,line:x,offset:S,source:this.css},this.file&&(c&&(N.input.url=c(this.file).toString()),N.input.file=this.file),N}fromLineAndColumn(b,x){return s(this)[b-1]+x-1}fromOffset(b){let x=s(this),E=x[x.length-1],w=0;if(b>=E)w=x.length-1;else{let y=x.length-2,v;for(;w<y;)if(v=w+(y-w>>1),b<x[v])y=v-1;else if(b>=x[v+1])w=v+1;else{w=v;break}}return{col:b-x[w]+1,line:w+1}}mapResolve(b){return/^\w+:\/\//.test(b)?b:i(this.map.consumer().sourceRoot||this.map.root||".",b)}origin(b,x,E,w){if(!this.map)return!1;let y=this.map.consumer(),v=y.originalPositionFor({column:x,line:b});if(!v.source)return!1;let O;typeof E=="number"&&(O=y.originalPositionFor({column:w,line:E}));let S;e(v.source)?S=c(v.source):S=new URL(v.source,this.map.consumer().sourceRoot||c(this.map.mapFile));let N={column:v.column,endColumn:O&&O.column,endLine:O&&O.line,line:v.line,url:S.toString()};if(S.protocol==="file:")if(l)N.file=l(S);else throw new Error("file: protocol is not available in this PostCSS build");let L=y.sourceContentFor(v.source);return L&&(N.source=L),N}toJSON(){let b={};for(let x of["hasBOM","css","file","id"])this[x]!=null&&(b[x]=this[x]);return this.map&&(b.map={...this.map},b.map.consumerCache&&(b.map.consumerCache=void 0)),b}}return ir=p,p.default=p,f&&f.registerInput&&f.registerInput(p),ir}var sr,On;function pt(){if(On)return sr;On=1;let t=He(),e,i;class a extends t{constructor(l){super(l),this.type="root",this.nodes||(this.nodes=[])}normalize(l,c,h){let m=super.normalize(l);if(c){if(h==="prepend")this.nodes.length>1?c.raws.before=this.nodes[1].raws.before:delete c.raws.before;else if(this.first!==c)for(let f of m)f.raws.before=c.raws.before}return m}removeChild(l,c){let h=this.index(l);return!c&&h===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[h].raws.before),super.removeChild(l)}toResult(l={}){return new e(new i,this,l).stringify()}}return a.registerLazyResult=r=>{e=r},a.registerProcessor=r=>{i=r},sr=a,a.default=a,t.registerRoot(a),sr}var or,kn;function Jn(){if(kn)return or;kn=1;let t={comma(e){return t.split(e,[","],!0)},space(e){let i=[" ",`
89
+ `," "];return t.split(e,i)},split(e,i,a){let r=[],l="",c=!1,h=0,m=!1,f="",n=!1;for(let u of e)n?n=!1:u==="\\"?n=!0:m?u===f&&(m=!1):u==='"'||u==="'"?(m=!0,f=u):u==="("?h+=1:u===")"?h>0&&(h-=1):h===0&&i.includes(u)&&(c=!0),c?(l!==""&&r.push(l.trim()),l="",c=!1):l+=u;return(a||l!=="")&&r.push(l.trim()),r}};return or=t,t.default=t,or}var ar,Sn;function Lr(){if(Sn)return ar;Sn=1;let t=He(),e=Jn();class i extends t{get selectors(){return e.comma(this.selector)}set selectors(r){let l=this.selector?this.selector.match(/,\s*/):null,c=l?l[0]:","+this.raw("between","beforeOpen");this.selector=r.join(c)}constructor(r){super(r),this.type="rule",this.nodes||(this.nodes=[])}}return ar=i,i.default=i,t.registerRule(i),ar}var lr,An;function uo(){if(An)return lr;An=1;let t=Tr(),e=Mt(),i=Lt(),a=jt(),r=Xn(),l=pt(),c=Lr();function h(m,f){if(Array.isArray(m))return m.map(o=>h(o));let{inputs:n,...u}=m;if(n){f=[];for(let o of n){let s={...o,__proto__:a.prototype};s.map&&(s.map={...s.map,__proto__:r.prototype}),f.push(s)}}if(u.nodes&&(u.nodes=m.nodes.map(o=>h(o,f))),u.source){let{inputId:o,...s}=u.source;u.source=s,o!=null&&(u.source.input=f[o])}if(u.type==="root")return new l(u);if(u.type==="decl")return new i(u);if(u.type==="rule")return new c(u);if(u.type==="comment")return new e(u);if(u.type==="atrule")return new t(u);throw new Error("Unknown node type: "+m.type)}return lr=h,h.default=h,lr}var cr,_n;function Yn(){if(_n)return cr;_n=1;let{dirname:t,relative:e,resolve:i,sep:a}=Ee,{SourceMapConsumer:r,SourceMapGenerator:l}=Ee,{pathToFileURL:c}=Ee,h=jt(),m=!!(r&&l),f=!!(t&&i&&e&&a);class n{constructor(o,s,p,d){this.stringify=o,this.mapOpts=p.map||{},this.root=s,this.opts=p,this.css=d,this.originalCSS=d,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let o;this.isInline()?o="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?o=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?o=this.mapOpts.annotation(this.opts.to,this.root):o=this.outputFile()+".map";let s=`
90
90
  `;this.css.includes(`\r
91
91
  `)&&(s=`\r
92
- `),this.css+=s+"/*# sourceMappingURL="+o+" */"}applyPrevMaps(){for(let o of this.previous()){let s=this.toUrl(this.path(o.file)),p=o.root||t(o.file),d;this.mapOpts.sourcesContent===!1?(d=new n(o.text),d.sourcesContent&&(d.sourcesContent=null)):d=o.consumer(),this.map.applySourceMap(d,s,this.toUrl(this.path(p)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let o;for(let s=this.root.nodes.length-1;s>=0;s--)o=this.root.nodes[s],o.type==="comment"&&o.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(s)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),f&&b&&this.isMap())return this.generateMap();{let o="";return this.stringify(this.root,s=>{o+=s}),[o]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let o=this.previous()[0].consumer();o.file=this.outputFile(),this.map=u.fromSourceMap(o,{ignoreInvalidMapping:!0})}else this.map=new u({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new u({file:this.outputFile(),ignoreInvalidMapping:!0});let o=1,s=1,p="<no source>",d={generated:{column:0,line:0},original:{column:0,line:0},source:""},m,x;this.stringify(this.root,(E,w,y)=>{if(this.css+=E,w&&y!=="end"&&(d.generated.line=o,d.generated.column=s-1,w.source&&w.source.start?(d.source=this.sourcePath(w),d.original.line=w.source.start.line,d.original.column=w.source.start.column-1,this.map.addMapping(d)):(d.source=p,d.original.line=1,d.original.column=0,this.map.addMapping(d))),x=E.match(/\n/g),x?(o+=x.length,m=E.lastIndexOf(`
93
- `),s=E.length-m):s+=E.length,w&&y!=="start"){let v=w.parent||{raws:{}};(!(w.type==="decl"||w.type==="atrule"&&!w.nodes)||w!==v.last||v.raws.semicolon)&&(w.source&&w.source.end?(d.source=this.sourcePath(w),d.original.line=w.source.end.line,d.original.column=w.source.end.column-1,d.generated.line=o,d.generated.column=s-2,this.map.addMapping(d)):(d.source=p,d.original.line=1,d.original.column=0,d.generated.line=o,d.generated.column=s-1,this.map.addMapping(d)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(o=>o.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let o=this.mapOpts.annotation;return typeof o<"u"&&o!==!0?!1:this.previous().length?this.previous().some(s=>s.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(o=>o.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(o){if(this.mapOpts.absolute||o.charCodeAt(0)===60||/^\w+:\/\//.test(o))return o;let s=this.memoizedPaths.get(o);if(s)return s;let p=this.opts.to?t(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(p=t(i(p,this.mapOpts.annotation)));let d=e(p,o);return this.memoizedPaths.set(o,d),d}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(o=>{if(o.source&&o.source.input.map){let s=o.source.input.map;this.previousMaps.includes(s)||this.previousMaps.push(s)}});else{let o=new h(this.originalCSS,this.opts);o.map&&this.previousMaps.push(o.map)}return this.previousMaps}setSourcesContent(){let o={};if(this.root)this.root.walk(s=>{if(s.source){let p=s.source.input.from;if(p&&!o[p]){o[p]=!0;let d=this.usesFileUrls?this.toFileUrl(p):this.toUrl(this.path(p));this.map.setSourceContent(d,s.source.input.css)}}});else if(this.css){let s=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(s,this.css)}}sourcePath(o){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(o.source.input.from):this.toUrl(this.path(o.source.input.from))}toBase64(o){return Buffer?Buffer.from(o).toString("base64"):window.btoa(unescape(encodeURIComponent(o)))}toFileUrl(o){let s=this.memoizedFileURLs.get(o);if(s)return s;if(l){let p=l(o).toString();return this.memoizedFileURLs.set(o,p),p}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(o){let s=this.memoizedURLs.get(o);if(s)return s;a==="\\"&&(o=o.replace(/\\/g,"/"));let p=encodeURI(o).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(o,p),p}}return cr=r,cr}var ur,Cn;function fo(){if(Cn)return ur;Cn=1;const t=39,e=34,i=92,a=47,n=10,u=32,l=12,h=9,b=13,f=91,r=93,c=40,o=41,s=123,p=125,d=59,m=42,x=58,E=64,w=/[\t\n\f\r "#'()/;[\\\]{}]/g,y=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,v=/.[\r\n"'(/\\]/,O=/[\da-f]/i;return ur=function(N,L={}){let _=N.css.valueOf(),F=L.ignoreErrors,$,K,te,P,re,q,X,Y,ie,ge,he=_.length,D=0,me=[],ce=[];function Ne(){return D}function Oe(be){throw N.error("Unclosed "+be,D)}function xe(){return ce.length===0&&D>=he}function ke(be){if(ce.length)return ce.pop();if(D>=he)return;let ze=be?be.ignoreUnclosed:!1;switch($=_.charCodeAt(D),$){case n:case u:case h:case b:case l:{P=D;do P+=1,$=_.charCodeAt(P);while($===u||$===n||$===h||$===b||$===l);q=["space",_.slice(D,P)],D=P-1;break}case f:case r:case s:case p:case x:case d:case o:{let $e=String.fromCharCode($);q=[$e,$e,D];break}case c:{if(ge=me.length?me.pop()[1]:"",ie=_.charCodeAt(D+1),ge==="url"&&ie!==t&&ie!==e&&ie!==u&&ie!==n&&ie!==h&&ie!==l&&ie!==b){P=D;do{if(X=!1,P=_.indexOf(")",P+1),P===-1)if(F||ze){P=D;break}else Oe("bracket");for(Y=P;_.charCodeAt(Y-1)===i;)Y-=1,X=!X}while(X);q=["brackets",_.slice(D,P+1),D,P],D=P}else P=_.indexOf(")",D+1),K=_.slice(D,P+1),P===-1||v.test(K)?q=["(","(",D]:(q=["brackets",K,D,P],D=P);break}case t:case e:{re=$===t?"'":'"',P=D;do{if(X=!1,P=_.indexOf(re,P+1),P===-1)if(F||ze){P=D+1;break}else Oe("string");for(Y=P;_.charCodeAt(Y-1)===i;)Y-=1,X=!X}while(X);q=["string",_.slice(D,P+1),D,P],D=P;break}case E:{w.lastIndex=D+1,w.test(_),w.lastIndex===0?P=_.length-1:P=w.lastIndex-2,q=["at-word",_.slice(D,P+1),D,P],D=P;break}case i:{for(P=D,te=!0;_.charCodeAt(P+1)===i;)P+=1,te=!te;if($=_.charCodeAt(P+1),te&&$!==a&&$!==u&&$!==n&&$!==h&&$!==b&&$!==l&&(P+=1,O.test(_.charAt(P)))){for(;O.test(_.charAt(P+1));)P+=1;_.charCodeAt(P+1)===u&&(P+=1)}q=["word",_.slice(D,P+1),D,P],D=P;break}default:{$===a&&_.charCodeAt(D+1)===m?(P=_.indexOf("*/",D+2)+1,P===0&&(F||ze?P=_.length:Oe("comment")),q=["comment",_.slice(D,P+1),D,P],D=P):(y.lastIndex=D+1,y.test(_),y.lastIndex===0?P=_.length-1:P=y.lastIndex-2,q=["word",_.slice(D,P+1),D,P],me.push(q),D=P);break}}return D++,q}function Qe(be){ce.push(be)}return{back:Qe,endOfFile:xe,nextToken:ke,position:Ne}},ur}var fr,Rn;function ho(){if(Rn)return fr;Rn=1;let t=Mr(),e=Tt(),i=Lt(),a=pt(),n=Lr(),u=fo();const l={empty:!0,space:!0};function h(f){for(let r=f.length-1;r>=0;r--){let c=f[r],o=c[3]||c[2];if(o)return o}}class b{constructor(r){this.input=r,this.root=new a,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:r,start:{column:1,line:1,offset:0}}}atrule(r){let c=new t;c.name=r[1].slice(1),c.name===""&&this.unnamedAtrule(c,r),this.init(c,r[2]);let o,s,p,d=!1,m=!1,x=[],E=[];for(;!this.tokenizer.endOfFile();){if(r=this.tokenizer.nextToken(),o=r[0],o==="("||o==="["?E.push(o==="("?")":"]"):o==="{"&&E.length>0?E.push("}"):o===E[E.length-1]&&E.pop(),E.length===0)if(o===";"){c.source.end=this.getPosition(r[2]),c.source.end.offset++,this.semicolon=!0;break}else if(o==="{"){m=!0;break}else if(o==="}"){if(x.length>0){for(p=x.length-1,s=x[p];s&&s[0]==="space";)s=x[--p];s&&(c.source.end=this.getPosition(s[3]||s[2]),c.source.end.offset++)}this.end(r);break}else x.push(r);else x.push(r);if(this.tokenizer.endOfFile()){d=!0;break}}c.raws.between=this.spacesAndCommentsFromEnd(x),x.length?(c.raws.afterName=this.spacesAndCommentsFromStart(x),this.raw(c,"params",x),d&&(r=x[x.length-1],c.source.end=this.getPosition(r[3]||r[2]),c.source.end.offset++,this.spaces=c.raws.between,c.raws.between="")):(c.raws.afterName="",c.params=""),m&&(c.nodes=[],this.current=c)}checkMissedSemicolon(r){let c=this.colon(r);if(c===!1)return;let o=0,s;for(let p=c-1;p>=0&&(s=r[p],!(s[0]!=="space"&&(o+=1,o===2)));p--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}colon(r){let c=0,o,s,p;for(let[d,m]of r.entries()){if(s=m,p=s[0],p==="("&&(c+=1),p===")"&&(c-=1),c===0&&p===":")if(!o)this.doubleColon(s);else{if(o[0]==="word"&&o[1]==="progid")continue;return d}o=s}return!1}comment(r){let c=new e;this.init(c,r[2]),c.source.end=this.getPosition(r[3]||r[2]),c.source.end.offset++;let o=r[1].slice(2,-2);if(/^\s*$/.test(o))c.text="",c.raws.left=o,c.raws.right="";else{let s=o.match(/^(\s*)([^]*\S)(\s*)$/);c.text=s[2],c.raws.left=s[1],c.raws.right=s[3]}}createTokenizer(){this.tokenizer=u(this.input)}decl(r,c){let o=new i;this.init(o,r[0][2]);let s=r[r.length-1];for(s[0]===";"&&(this.semicolon=!0,r.pop()),o.source.end=this.getPosition(s[3]||s[2]||h(r)),o.source.end.offset++;r[0][0]!=="word";)r.length===1&&this.unknownWord(r),o.raws.before+=r.shift()[1];for(o.source.start=this.getPosition(r[0][2]),o.prop="";r.length;){let E=r[0][0];if(E===":"||E==="space"||E==="comment")break;o.prop+=r.shift()[1]}o.raws.between="";let p;for(;r.length;)if(p=r.shift(),p[0]===":"){o.raws.between+=p[1];break}else p[0]==="word"&&/\w/.test(p[1])&&this.unknownWord([p]),o.raws.between+=p[1];(o.prop[0]==="_"||o.prop[0]==="*")&&(o.raws.before+=o.prop[0],o.prop=o.prop.slice(1));let d=[],m;for(;r.length&&(m=r[0][0],!(m!=="space"&&m!=="comment"));)d.push(r.shift());this.precheckMissedSemicolon(r);for(let E=r.length-1;E>=0;E--){if(p=r[E],p[1].toLowerCase()==="!important"){o.important=!0;let w=this.stringFrom(r,E);w=this.spacesFromEnd(r)+w,w!==" !important"&&(o.raws.important=w);break}else if(p[1].toLowerCase()==="important"){let w=r.slice(0),y="";for(let v=E;v>0;v--){let O=w[v][0];if(y.trim().startsWith("!")&&O!=="space")break;y=w.pop()[1]+y}y.trim().startsWith("!")&&(o.important=!0,o.raws.important=y,r=w)}if(p[0]!=="space"&&p[0]!=="comment")break}r.some(E=>E[0]!=="space"&&E[0]!=="comment")&&(o.raws.between+=d.map(E=>E[1]).join(""),d=[]),this.raw(o,"value",d.concat(r),c),o.value.includes(":")&&!c&&this.checkMissedSemicolon(r)}doubleColon(r){throw this.input.error("Double colon",{offset:r[2]},{offset:r[2]+r[1].length})}emptyRule(r){let c=new n;this.init(c,r[2]),c.selector="",c.raws.between="",this.current=c}end(r){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(r[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(r)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(r){if(this.spaces+=r[1],this.current.nodes){let c=this.current.nodes[this.current.nodes.length-1];c&&c.type==="rule"&&!c.raws.ownSemicolon&&(c.raws.ownSemicolon=this.spaces,this.spaces="",c.source.end=this.getPosition(r[2]),c.source.end.offset+=c.raws.ownSemicolon.length)}}getPosition(r){let c=this.input.fromOffset(r);return{column:c.col,line:c.line,offset:r}}init(r,c){this.current.push(r),r.source={input:this.input,start:this.getPosition(c)},r.raws.before=this.spaces,this.spaces="",r.type!=="comment"&&(this.semicolon=!1)}other(r){let c=!1,o=null,s=!1,p=null,d=[],m=r[1].startsWith("--"),x=[],E=r;for(;E;){if(o=E[0],x.push(E),o==="("||o==="[")p||(p=E),d.push(o==="("?")":"]");else if(m&&s&&o==="{")p||(p=E),d.push("}");else if(d.length===0)if(o===";")if(s){this.decl(x,m);return}else break;else if(o==="{"){this.rule(x);return}else if(o==="}"){this.tokenizer.back(x.pop()),c=!0;break}else o===":"&&(s=!0);else o===d[d.length-1]&&(d.pop(),d.length===0&&(p=null));E=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(c=!0),d.length>0&&this.unclosedBracket(p),c&&s){if(!m)for(;x.length&&(E=x[x.length-1][0],!(E!=="space"&&E!=="comment"));)this.tokenizer.back(x.pop());this.decl(x,m)}else this.unknownWord(x)}parse(){let r;for(;!this.tokenizer.endOfFile();)switch(r=this.tokenizer.nextToken(),r[0]){case"space":this.spaces+=r[1];break;case";":this.freeSemicolon(r);break;case"}":this.end(r);break;case"comment":this.comment(r);break;case"at-word":this.atrule(r);break;case"{":this.emptyRule(r);break;default:this.other(r);break}this.endFile()}precheckMissedSemicolon(){}raw(r,c,o,s){let p,d,m=o.length,x="",E=!0,w,y;for(let v=0;v<m;v+=1)p=o[v],d=p[0],d==="space"&&v===m-1&&!s?E=!1:d==="comment"?(y=o[v-1]?o[v-1][0]:"empty",w=o[v+1]?o[v+1][0]:"empty",!l[y]&&!l[w]?x.slice(-1)===","?E=!1:x+=p[1]:E=!1):x+=p[1];if(!E){let v=o.reduce((O,S)=>O+S[1],"");r.raws[c]={raw:v,value:x}}r[c]=x}rule(r){r.pop();let c=new n;this.init(c,r[0][2]),c.raws.between=this.spacesAndCommentsFromEnd(r),this.raw(c,"selector",r),this.current=c}spacesAndCommentsFromEnd(r){let c,o="";for(;r.length&&(c=r[r.length-1][0],!(c!=="space"&&c!=="comment"));)o=r.pop()[1]+o;return o}spacesAndCommentsFromStart(r){let c,o="";for(;r.length&&(c=r[0][0],!(c!=="space"&&c!=="comment"));)o+=r.shift()[1];return o}spacesFromEnd(r){let c,o="";for(;r.length&&(c=r[r.length-1][0],c==="space");)o=r.pop()[1]+o;return o}stringFrom(r,c){let o="";for(let s=c;s<r.length;s++)o+=r[s][1];return r.splice(c,r.length-c),o}unclosedBlock(){let r=this.current.source.start;throw this.input.error("Unclosed block",r.line,r.column)}unclosedBracket(r){throw this.input.error("Unclosed bracket",{offset:r[2]},{offset:r[2]+1})}unexpectedClose(r){throw this.input.error("Unexpected }",{offset:r[2]},{offset:r[2]+1})}unknownWord(r){throw this.input.error("Unknown word "+r[0][1],{offset:r[0][2]},{offset:r[0][2]+r[0][1].length})}unnamedAtrule(r,c){throw this.input.error("At-rule without name",{offset:c[2]},{offset:c[2]+c[1].length})}}return fr=b,fr}var hr,Pn;function jr(){if(Pn)return hr;Pn=1;let t=He(),e=jt(),i=ho();function a(n,u){let l=new e(n,u),h=new i(l);try{h.parse()}catch(b){throw b}return h.root}return hr=a,a.default=a,t.registerParse(a),hr}var pr,Nn;function Qn(){if(Nn)return pr;Nn=1;class t{constructor(i,a={}){if(this.type="warning",this.text=i,a.node&&a.node.source){let n=a.node.rangeBy(a);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(let n in a)this[n]=a[n]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return pr=t,t.default=t,pr}var dr,Mn;function Ir(){if(Mn)return dr;Mn=1;let t=Qn();class e{get content(){return this.css}constructor(a,n,u){this.processor=a,this.messages=[],this.root=n,this.opts=u,this.css="",this.map=void 0}toString(){return this.css}warn(a,n={}){n.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(n.plugin=this.lastPlugin.postcssPlugin);let u=new t(a,n);return this.messages.push(u),u}warnings(){return this.messages.filter(a=>a.type==="warning")}}return dr=e,e.default=e,dr}var gr,Tn;function ei(){if(Tn)return gr;Tn=1;let t=He(),e=Tr(),i=Yn(),a=jr(),n=Ir(),u=pt(),l=Nt(),{isClean:h,my:b}=Nr();const f={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},r={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},c={Once:!0,postcssPlugin:!0,prepare:!0},o=0;function s(w){return typeof w=="object"&&typeof w.then=="function"}function p(w){let y=!1,v=f[w.type];return w.type==="decl"?y=w.prop.toLowerCase():w.type==="atrule"&&(y=w.name.toLowerCase()),y&&w.append?[v,v+"-"+y,o,v+"Exit",v+"Exit-"+y]:y?[v,v+"-"+y,v+"Exit",v+"Exit-"+y]:w.append?[v,o,v+"Exit"]:[v,v+"Exit"]}function d(w){let y;return w.type==="document"?y=["Document",o,"DocumentExit"]:w.type==="root"?y=["Root",o,"RootExit"]:y=p(w),{eventIndex:0,events:y,iterator:0,node:w,visitorIndex:0,visitors:[]}}function m(w){return w[h]=!1,w.nodes&&w.nodes.forEach(y=>m(y)),w}let x={};class E{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"}constructor(y,v,O){this.stringified=!1,this.processed=!1;let S;if(typeof v=="object"&&v!==null&&(v.type==="root"||v.type==="document"))S=m(v);else if(v instanceof E||v instanceof n)S=m(v.root),v.map&&(typeof O.map>"u"&&(O.map={}),O.map.inline||(O.map.inline=!1),O.map.prev=v.map);else{let N=a;O.syntax&&(N=O.syntax.parse),O.parser&&(N=O.parser),N.parse&&(N=N.parse);try{S=N(v,O)}catch(L){this.processed=!0,this.error=L}S&&!S[b]&&t.rebuild(S)}this.result=new n(y,S,O),this.helpers={...x,postcss:x,result:this.result},this.plugins=this.processor.plugins.map(N=>typeof N=="object"&&N.prepare?{...N,...N.prepare(this.result)}:N)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(y){return this.async().catch(y)}finally(y){return this.async().then(y,y)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(y,v){let O=this.result.lastPlugin;try{v&&v.addToError(y),this.error=y,y.name==="CssSyntaxError"&&!y.plugin?(y.plugin=O.postcssPlugin,y.setMessage()):O.postcssVersion}catch(S){console&&console.error&&console.error(S)}return y}prepareVisitors(){this.listeners={};let y=(v,O,S)=>{this.listeners[O]||(this.listeners[O]=[]),this.listeners[O].push([v,S])};for(let v of this.plugins)if(typeof v=="object")for(let O in v){if(!r[O]&&/^[A-Z]/.test(O))throw new Error(`Unknown event ${O} in ${v.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!c[O])if(typeof v[O]=="object")for(let S in v[O])S==="*"?y(v,O,v[O][S]):y(v,O+"-"+S.toLowerCase(),v[O][S]);else typeof v[O]=="function"&&y(v,O,v[O])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let y=0;y<this.plugins.length;y++){let v=this.plugins[y],O=this.runOnRoot(v);if(s(O))try{await O}catch(S){throw this.handleError(S)}}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[h];){y[h]=!0;let v=[d(y)];for(;v.length>0;){let O=this.visitTick(v);if(s(O))try{await O}catch(S){let N=v[v.length-1].node;throw this.handleError(S,N)}}}if(this.listeners.OnceExit)for(let[v,O]of this.listeners.OnceExit){this.result.lastPlugin=v;try{if(y.type==="document"){let S=y.nodes.map(N=>O(N,this.helpers));await Promise.all(S)}else await O(y,this.helpers)}catch(S){throw this.handleError(S)}}}return this.processed=!0,this.stringify()}runOnRoot(y){this.result.lastPlugin=y;try{if(typeof y=="object"&&y.Once){if(this.result.root.type==="document"){let v=this.result.root.nodes.map(O=>y.Once(O,this.helpers));return s(v[0])?Promise.all(v):v}return y.Once(this.result.root,this.helpers)}else if(typeof y=="function")return y(this.result.root,this.result)}catch(v){throw this.handleError(v)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let y=this.result.opts,v=l;y.syntax&&(v=y.syntax.stringify),y.stringifier&&(v=y.stringifier),v.stringify&&(v=v.stringify);let S=new i(v,this.result.root,this.result.opts).generate();return this.result.css=S[0],this.result.map=S[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 y of this.plugins){let v=this.runOnRoot(y);if(s(v))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[h];)y[h]=!0,this.walkSync(y);if(this.listeners.OnceExit)if(y.type==="document")for(let v of y.nodes)this.visitSync(this.listeners.OnceExit,v);else this.visitSync(this.listeners.OnceExit,y)}return this.result}then(y,v){return this.async().then(y,v)}toString(){return this.css}visitSync(y,v){for(let[O,S]of y){this.result.lastPlugin=O;let N;try{N=S(v,this.helpers)}catch(L){throw this.handleError(L,v.proxyOf)}if(v.type!=="root"&&v.type!=="document"&&!v.parent)return!0;if(s(N))throw this.getAsyncError()}}visitTick(y){let v=y[y.length-1],{node:O,visitors:S}=v;if(O.type!=="root"&&O.type!=="document"&&!O.parent){y.pop();return}if(S.length>0&&v.visitorIndex<S.length){let[L,_]=S[v.visitorIndex];v.visitorIndex+=1,v.visitorIndex===S.length&&(v.visitors=[],v.visitorIndex=0),this.result.lastPlugin=L;try{return _(O.toProxy(),this.helpers)}catch(F){throw this.handleError(F,O)}}if(v.iterator!==0){let L=v.iterator,_;for(;_=O.nodes[O.indexes[L]];)if(O.indexes[L]+=1,!_[h]){_[h]=!0,y.push(d(_));return}v.iterator=0,delete O.indexes[L]}let N=v.events;for(;v.eventIndex<N.length;){let L=N[v.eventIndex];if(v.eventIndex+=1,L===o){O.nodes&&O.nodes.length&&(O[h]=!0,v.iterator=O.getIterator());return}else if(this.listeners[L]){v.visitors=this.listeners[L];return}}y.pop()}walkSync(y){y[h]=!0;let v=p(y);for(let O of v)if(O===o)y.nodes&&y.each(S=>{S[h]||this.walkSync(S)});else{let S=this.listeners[O];if(S&&this.visitSync(S,y.toProxy()))return}}warnings(){return this.sync().warnings()}}return E.registerPostcss=w=>{x=w},gr=E,E.default=E,u.registerLazyResult(E),e.registerLazyResult(E),gr}var mr,Ln;function po(){if(Ln)return mr;Ln=1;let t=Yn(),e=jr();const i=Ir();let a=Nt();class n{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let l,h=e;try{l=h(this._css,this._opts)}catch(b){this.error=b}if(this.error)throw this.error;return this._root=l,l}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(l,h,b){h=h.toString(),this.stringified=!1,this._processor=l,this._css=h,this._opts=b,this._map=void 0;let f,r=a;this.result=new i(this._processor,f,this._opts),this.result.css=h;let c=this;Object.defineProperty(this.result,"root",{get(){return c.root}});let o=new t(r,f,this._opts,h);if(o.isMap()){let[s,p]=o.generate();s&&(this.result.css=s),p&&(this.result.map=p)}else o.clearAnnotation(),this.result.css=o.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(l){return this.async().catch(l)}finally(l){return this.async().then(l,l)}sync(){if(this.error)throw this.error;return this.result}then(l,h){return this.async().then(l,h)}toString(){return this._css}warnings(){return[]}}return mr=n,n.default=n,mr}var br,jn;function go(){if(jn)return br;jn=1;let t=Tr(),e=ei(),i=po(),a=pt();class n{constructor(l=[]){this.version="8.5.6",this.plugins=this.normalize(l)}normalize(l){let h=[];for(let b of l)if(b.postcss===!0?b=b():b.postcss&&(b=b.postcss),typeof b=="object"&&Array.isArray(b.plugins))h=h.concat(b.plugins);else if(typeof b=="object"&&b.postcssPlugin)h.push(b);else if(typeof b=="function")h.push(b);else if(!(typeof b=="object"&&(b.parse||b.stringify)))throw new Error(b+" is not a PostCSS plugin");return h}process(l,h={}){return!this.plugins.length&&!h.parser&&!h.stringifier&&!h.syntax?new i(this,l,h):new e(this,l,h)}use(l){return this.plugins=this.plugins.concat(this.normalize([l])),this}}return br=n,n.default=n,a.registerProcessor(n),t.registerProcessor(n),br}var vr,In;function mo(){if(In)return vr;In=1;var t={};let e=Mr(),i=Tt(),a=He(),n=Pr(),u=Lt(),l=Tr(),h=uo(),b=jt(),f=ei(),r=Kn(),c=Mt(),o=jr(),s=go(),p=Ir(),d=pt(),m=Lr(),x=Nt(),E=Qn();function w(...y){return y.length===1&&Array.isArray(y[0])&&(y=y[0]),new s(y)}return w.plugin=function(v,O){let S=!1;function N(..._){console&&console.warn&&!S&&(S=!0,console.warn(v+`: postcss.plugin was deprecated. Migration guide:
92
+ `),this.css+=s+"/*# sourceMappingURL="+o+" */"}applyPrevMaps(){for(let o of this.previous()){let s=this.toUrl(this.path(o.file)),p=o.root||t(o.file),d;this.mapOpts.sourcesContent===!1?(d=new r(o.text),d.sourcesContent&&(d.sourcesContent=null)):d=o.consumer(),this.map.applySourceMap(d,s,this.toUrl(this.path(p)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let o;for(let s=this.root.nodes.length-1;s>=0;s--)o=this.root.nodes[s],o.type==="comment"&&o.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(s)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),f&&m&&this.isMap())return this.generateMap();{let o="";return this.stringify(this.root,s=>{o+=s}),[o]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let o=this.previous()[0].consumer();o.file=this.outputFile(),this.map=l.fromSourceMap(o,{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="",this.map=new l({file:this.outputFile(),ignoreInvalidMapping:!0});let o=1,s=1,p="<no source>",d={generated:{column:0,line:0},original:{column:0,line:0},source:""},b,x;this.stringify(this.root,(E,w,y)=>{if(this.css+=E,w&&y!=="end"&&(d.generated.line=o,d.generated.column=s-1,w.source&&w.source.start?(d.source=this.sourcePath(w),d.original.line=w.source.start.line,d.original.column=w.source.start.column-1,this.map.addMapping(d)):(d.source=p,d.original.line=1,d.original.column=0,this.map.addMapping(d))),x=E.match(/\n/g),x?(o+=x.length,b=E.lastIndexOf(`
93
+ `),s=E.length-b):s+=E.length,w&&y!=="start"){let v=w.parent||{raws:{}};(!(w.type==="decl"||w.type==="atrule"&&!w.nodes)||w!==v.last||v.raws.semicolon)&&(w.source&&w.source.end?(d.source=this.sourcePath(w),d.original.line=w.source.end.line,d.original.column=w.source.end.column-1,d.generated.line=o,d.generated.column=s-2,this.map.addMapping(d)):(d.source=p,d.original.line=1,d.original.column=0,d.generated.line=o,d.generated.column=s-1,this.map.addMapping(d)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(o=>o.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let o=this.mapOpts.annotation;return typeof o<"u"&&o!==!0?!1:this.previous().length?this.previous().some(s=>s.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(o=>o.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(o){if(this.mapOpts.absolute||o.charCodeAt(0)===60||/^\w+:\/\//.test(o))return o;let s=this.memoizedPaths.get(o);if(s)return s;let p=this.opts.to?t(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(p=t(i(p,this.mapOpts.annotation)));let d=e(p,o);return this.memoizedPaths.set(o,d),d}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(o=>{if(o.source&&o.source.input.map){let s=o.source.input.map;this.previousMaps.includes(s)||this.previousMaps.push(s)}});else{let o=new h(this.originalCSS,this.opts);o.map&&this.previousMaps.push(o.map)}return this.previousMaps}setSourcesContent(){let o={};if(this.root)this.root.walk(s=>{if(s.source){let p=s.source.input.from;if(p&&!o[p]){o[p]=!0;let d=this.usesFileUrls?this.toFileUrl(p):this.toUrl(this.path(p));this.map.setSourceContent(d,s.source.input.css)}}});else if(this.css){let s=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(s,this.css)}}sourcePath(o){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(o.source.input.from):this.toUrl(this.path(o.source.input.from))}toBase64(o){return Buffer?Buffer.from(o).toString("base64"):window.btoa(unescape(encodeURIComponent(o)))}toFileUrl(o){let s=this.memoizedFileURLs.get(o);if(s)return s;if(c){let p=c(o).toString();return this.memoizedFileURLs.set(o,p),p}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(o){let s=this.memoizedURLs.get(o);if(s)return s;a==="\\"&&(o=o.replace(/\\/g,"/"));let p=encodeURI(o).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(o,p),p}}return cr=n,cr}var ur,Cn;function fo(){if(Cn)return ur;Cn=1;const t=39,e=34,i=92,a=47,r=10,l=32,c=12,h=9,m=13,f=91,n=93,u=40,o=41,s=123,p=125,d=59,b=42,x=58,E=64,w=/[\t\n\f\r "#'()/;[\\\]{}]/g,y=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,v=/.[\r\n"'(/\\]/,O=/[\da-f]/i;return ur=function(N,L={}){let _=N.css.valueOf(),F=L.ignoreErrors,$,J,te,P,re,q,K,Y,ie,ge,he=_.length,D=0,me=[],ce=[];function Ne(){return D}function Oe(be){throw N.error("Unclosed "+be,D)}function xe(){return ce.length===0&&D>=he}function ke(be){if(ce.length)return ce.pop();if(D>=he)return;let ze=be?be.ignoreUnclosed:!1;switch($=_.charCodeAt(D),$){case r:case l:case h:case m:case c:{P=D;do P+=1,$=_.charCodeAt(P);while($===l||$===r||$===h||$===m||$===c);q=["space",_.slice(D,P)],D=P-1;break}case f:case n:case s:case p:case x:case d:case o:{let $e=String.fromCharCode($);q=[$e,$e,D];break}case u:{if(ge=me.length?me.pop()[1]:"",ie=_.charCodeAt(D+1),ge==="url"&&ie!==t&&ie!==e&&ie!==l&&ie!==r&&ie!==h&&ie!==c&&ie!==m){P=D;do{if(K=!1,P=_.indexOf(")",P+1),P===-1)if(F||ze){P=D;break}else Oe("bracket");for(Y=P;_.charCodeAt(Y-1)===i;)Y-=1,K=!K}while(K);q=["brackets",_.slice(D,P+1),D,P],D=P}else P=_.indexOf(")",D+1),J=_.slice(D,P+1),P===-1||v.test(J)?q=["(","(",D]:(q=["brackets",J,D,P],D=P);break}case t:case e:{re=$===t?"'":'"',P=D;do{if(K=!1,P=_.indexOf(re,P+1),P===-1)if(F||ze){P=D+1;break}else Oe("string");for(Y=P;_.charCodeAt(Y-1)===i;)Y-=1,K=!K}while(K);q=["string",_.slice(D,P+1),D,P],D=P;break}case E:{w.lastIndex=D+1,w.test(_),w.lastIndex===0?P=_.length-1:P=w.lastIndex-2,q=["at-word",_.slice(D,P+1),D,P],D=P;break}case i:{for(P=D,te=!0;_.charCodeAt(P+1)===i;)P+=1,te=!te;if($=_.charCodeAt(P+1),te&&$!==a&&$!==l&&$!==r&&$!==h&&$!==m&&$!==c&&(P+=1,O.test(_.charAt(P)))){for(;O.test(_.charAt(P+1));)P+=1;_.charCodeAt(P+1)===l&&(P+=1)}q=["word",_.slice(D,P+1),D,P],D=P;break}default:{$===a&&_.charCodeAt(D+1)===b?(P=_.indexOf("*/",D+2)+1,P===0&&(F||ze?P=_.length:Oe("comment")),q=["comment",_.slice(D,P+1),D,P],D=P):(y.lastIndex=D+1,y.test(_),y.lastIndex===0?P=_.length-1:P=y.lastIndex-2,q=["word",_.slice(D,P+1),D,P],me.push(q),D=P);break}}return D++,q}function Qe(be){ce.push(be)}return{back:Qe,endOfFile:xe,nextToken:ke,position:Ne}},ur}var fr,Rn;function ho(){if(Rn)return fr;Rn=1;let t=Tr(),e=Mt(),i=Lt(),a=pt(),r=Lr(),l=fo();const c={empty:!0,space:!0};function h(f){for(let n=f.length-1;n>=0;n--){let u=f[n],o=u[3]||u[2];if(o)return o}}class m{constructor(n){this.input=n,this.root=new a,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:n,start:{column:1,line:1,offset:0}}}atrule(n){let u=new t;u.name=n[1].slice(1),u.name===""&&this.unnamedAtrule(u,n),this.init(u,n[2]);let o,s,p,d=!1,b=!1,x=[],E=[];for(;!this.tokenizer.endOfFile();){if(n=this.tokenizer.nextToken(),o=n[0],o==="("||o==="["?E.push(o==="("?")":"]"):o==="{"&&E.length>0?E.push("}"):o===E[E.length-1]&&E.pop(),E.length===0)if(o===";"){u.source.end=this.getPosition(n[2]),u.source.end.offset++,this.semicolon=!0;break}else if(o==="{"){b=!0;break}else if(o==="}"){if(x.length>0){for(p=x.length-1,s=x[p];s&&s[0]==="space";)s=x[--p];s&&(u.source.end=this.getPosition(s[3]||s[2]),u.source.end.offset++)}this.end(n);break}else x.push(n);else x.push(n);if(this.tokenizer.endOfFile()){d=!0;break}}u.raws.between=this.spacesAndCommentsFromEnd(x),x.length?(u.raws.afterName=this.spacesAndCommentsFromStart(x),this.raw(u,"params",x),d&&(n=x[x.length-1],u.source.end=this.getPosition(n[3]||n[2]),u.source.end.offset++,this.spaces=u.raws.between,u.raws.between="")):(u.raws.afterName="",u.params=""),b&&(u.nodes=[],this.current=u)}checkMissedSemicolon(n){let u=this.colon(n);if(u===!1)return;let o=0,s;for(let p=u-1;p>=0&&(s=n[p],!(s[0]!=="space"&&(o+=1,o===2)));p--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}colon(n){let u=0,o,s,p;for(let[d,b]of n.entries()){if(s=b,p=s[0],p==="("&&(u+=1),p===")"&&(u-=1),u===0&&p===":")if(!o)this.doubleColon(s);else{if(o[0]==="word"&&o[1]==="progid")continue;return d}o=s}return!1}comment(n){let u=new e;this.init(u,n[2]),u.source.end=this.getPosition(n[3]||n[2]),u.source.end.offset++;let o=n[1].slice(2,-2);if(/^\s*$/.test(o))u.text="",u.raws.left=o,u.raws.right="";else{let s=o.match(/^(\s*)([^]*\S)(\s*)$/);u.text=s[2],u.raws.left=s[1],u.raws.right=s[3]}}createTokenizer(){this.tokenizer=l(this.input)}decl(n,u){let o=new i;this.init(o,n[0][2]);let s=n[n.length-1];for(s[0]===";"&&(this.semicolon=!0,n.pop()),o.source.end=this.getPosition(s[3]||s[2]||h(n)),o.source.end.offset++;n[0][0]!=="word";)n.length===1&&this.unknownWord(n),o.raws.before+=n.shift()[1];for(o.source.start=this.getPosition(n[0][2]),o.prop="";n.length;){let E=n[0][0];if(E===":"||E==="space"||E==="comment")break;o.prop+=n.shift()[1]}o.raws.between="";let p;for(;n.length;)if(p=n.shift(),p[0]===":"){o.raws.between+=p[1];break}else p[0]==="word"&&/\w/.test(p[1])&&this.unknownWord([p]),o.raws.between+=p[1];(o.prop[0]==="_"||o.prop[0]==="*")&&(o.raws.before+=o.prop[0],o.prop=o.prop.slice(1));let d=[],b;for(;n.length&&(b=n[0][0],!(b!=="space"&&b!=="comment"));)d.push(n.shift());this.precheckMissedSemicolon(n);for(let E=n.length-1;E>=0;E--){if(p=n[E],p[1].toLowerCase()==="!important"){o.important=!0;let w=this.stringFrom(n,E);w=this.spacesFromEnd(n)+w,w!==" !important"&&(o.raws.important=w);break}else if(p[1].toLowerCase()==="important"){let w=n.slice(0),y="";for(let v=E;v>0;v--){let O=w[v][0];if(y.trim().startsWith("!")&&O!=="space")break;y=w.pop()[1]+y}y.trim().startsWith("!")&&(o.important=!0,o.raws.important=y,n=w)}if(p[0]!=="space"&&p[0]!=="comment")break}n.some(E=>E[0]!=="space"&&E[0]!=="comment")&&(o.raws.between+=d.map(E=>E[1]).join(""),d=[]),this.raw(o,"value",d.concat(n),u),o.value.includes(":")&&!u&&this.checkMissedSemicolon(n)}doubleColon(n){throw this.input.error("Double colon",{offset:n[2]},{offset:n[2]+n[1].length})}emptyRule(n){let u=new r;this.init(u,n[2]),u.selector="",u.raws.between="",this.current=u}end(n){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(n[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(n)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(n){if(this.spaces+=n[1],this.current.nodes){let u=this.current.nodes[this.current.nodes.length-1];u&&u.type==="rule"&&!u.raws.ownSemicolon&&(u.raws.ownSemicolon=this.spaces,this.spaces="",u.source.end=this.getPosition(n[2]),u.source.end.offset+=u.raws.ownSemicolon.length)}}getPosition(n){let u=this.input.fromOffset(n);return{column:u.col,line:u.line,offset:n}}init(n,u){this.current.push(n),n.source={input:this.input,start:this.getPosition(u)},n.raws.before=this.spaces,this.spaces="",n.type!=="comment"&&(this.semicolon=!1)}other(n){let u=!1,o=null,s=!1,p=null,d=[],b=n[1].startsWith("--"),x=[],E=n;for(;E;){if(o=E[0],x.push(E),o==="("||o==="[")p||(p=E),d.push(o==="("?")":"]");else if(b&&s&&o==="{")p||(p=E),d.push("}");else if(d.length===0)if(o===";")if(s){this.decl(x,b);return}else break;else if(o==="{"){this.rule(x);return}else if(o==="}"){this.tokenizer.back(x.pop()),u=!0;break}else o===":"&&(s=!0);else o===d[d.length-1]&&(d.pop(),d.length===0&&(p=null));E=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(u=!0),d.length>0&&this.unclosedBracket(p),u&&s){if(!b)for(;x.length&&(E=x[x.length-1][0],!(E!=="space"&&E!=="comment"));)this.tokenizer.back(x.pop());this.decl(x,b)}else this.unknownWord(x)}parse(){let n;for(;!this.tokenizer.endOfFile();)switch(n=this.tokenizer.nextToken(),n[0]){case"space":this.spaces+=n[1];break;case";":this.freeSemicolon(n);break;case"}":this.end(n);break;case"comment":this.comment(n);break;case"at-word":this.atrule(n);break;case"{":this.emptyRule(n);break;default:this.other(n);break}this.endFile()}precheckMissedSemicolon(){}raw(n,u,o,s){let p,d,b=o.length,x="",E=!0,w,y;for(let v=0;v<b;v+=1)p=o[v],d=p[0],d==="space"&&v===b-1&&!s?E=!1:d==="comment"?(y=o[v-1]?o[v-1][0]:"empty",w=o[v+1]?o[v+1][0]:"empty",!c[y]&&!c[w]?x.slice(-1)===","?E=!1:x+=p[1]:E=!1):x+=p[1];if(!E){let v=o.reduce((O,S)=>O+S[1],"");n.raws[u]={raw:v,value:x}}n[u]=x}rule(n){n.pop();let u=new r;this.init(u,n[0][2]),u.raws.between=this.spacesAndCommentsFromEnd(n),this.raw(u,"selector",n),this.current=u}spacesAndCommentsFromEnd(n){let u,o="";for(;n.length&&(u=n[n.length-1][0],!(u!=="space"&&u!=="comment"));)o=n.pop()[1]+o;return o}spacesAndCommentsFromStart(n){let u,o="";for(;n.length&&(u=n[0][0],!(u!=="space"&&u!=="comment"));)o+=n.shift()[1];return o}spacesFromEnd(n){let u,o="";for(;n.length&&(u=n[n.length-1][0],u==="space");)o=n.pop()[1]+o;return o}stringFrom(n,u){let o="";for(let s=u;s<n.length;s++)o+=n[s][1];return n.splice(u,n.length-u),o}unclosedBlock(){let n=this.current.source.start;throw this.input.error("Unclosed block",n.line,n.column)}unclosedBracket(n){throw this.input.error("Unclosed bracket",{offset:n[2]},{offset:n[2]+1})}unexpectedClose(n){throw this.input.error("Unexpected }",{offset:n[2]},{offset:n[2]+1})}unknownWord(n){throw this.input.error("Unknown word "+n[0][1],{offset:n[0][2]},{offset:n[0][2]+n[0][1].length})}unnamedAtrule(n,u){throw this.input.error("At-rule without name",{offset:u[2]},{offset:u[2]+u[1].length})}}return fr=m,fr}var hr,Pn;function jr(){if(Pn)return hr;Pn=1;let t=He(),e=jt(),i=ho();function a(r,l){let c=new e(r,l),h=new i(c);try{h.parse()}catch(m){throw m}return h.root}return hr=a,a.default=a,t.registerParse(a),hr}var pr,Nn;function Qn(){if(Nn)return pr;Nn=1;class t{constructor(i,a={}){if(this.type="warning",this.text=i,a.node&&a.node.source){let r=a.node.rangeBy(a);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in a)this[r]=a[r]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return pr=t,t.default=t,pr}var dr,Tn;function Ir(){if(Tn)return dr;Tn=1;let t=Qn();class e{get content(){return this.css}constructor(a,r,l){this.processor=a,this.messages=[],this.root=r,this.opts=l,this.css="",this.map=void 0}toString(){return this.css}warn(a,r={}){r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);let l=new t(a,r);return this.messages.push(l),l}warnings(){return this.messages.filter(a=>a.type==="warning")}}return dr=e,e.default=e,dr}var gr,Mn;function ei(){if(Mn)return gr;Mn=1;let t=He(),e=Mr(),i=Yn(),a=jr(),r=Ir(),l=pt(),c=Nt(),{isClean:h,my:m}=Nr();const f={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},n={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},u={Once:!0,postcssPlugin:!0,prepare:!0},o=0;function s(w){return typeof w=="object"&&typeof w.then=="function"}function p(w){let y=!1,v=f[w.type];return w.type==="decl"?y=w.prop.toLowerCase():w.type==="atrule"&&(y=w.name.toLowerCase()),y&&w.append?[v,v+"-"+y,o,v+"Exit",v+"Exit-"+y]:y?[v,v+"-"+y,v+"Exit",v+"Exit-"+y]:w.append?[v,o,v+"Exit"]:[v,v+"Exit"]}function d(w){let y;return w.type==="document"?y=["Document",o,"DocumentExit"]:w.type==="root"?y=["Root",o,"RootExit"]:y=p(w),{eventIndex:0,events:y,iterator:0,node:w,visitorIndex:0,visitors:[]}}function b(w){return w[h]=!1,w.nodes&&w.nodes.forEach(y=>b(y)),w}let x={};class E{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"}constructor(y,v,O){this.stringified=!1,this.processed=!1;let S;if(typeof v=="object"&&v!==null&&(v.type==="root"||v.type==="document"))S=b(v);else if(v instanceof E||v instanceof r)S=b(v.root),v.map&&(typeof O.map>"u"&&(O.map={}),O.map.inline||(O.map.inline=!1),O.map.prev=v.map);else{let N=a;O.syntax&&(N=O.syntax.parse),O.parser&&(N=O.parser),N.parse&&(N=N.parse);try{S=N(v,O)}catch(L){this.processed=!0,this.error=L}S&&!S[m]&&t.rebuild(S)}this.result=new r(y,S,O),this.helpers={...x,postcss:x,result:this.result},this.plugins=this.processor.plugins.map(N=>typeof N=="object"&&N.prepare?{...N,...N.prepare(this.result)}:N)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(y){return this.async().catch(y)}finally(y){return this.async().then(y,y)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(y,v){let O=this.result.lastPlugin;try{v&&v.addToError(y),this.error=y,y.name==="CssSyntaxError"&&!y.plugin?(y.plugin=O.postcssPlugin,y.setMessage()):O.postcssVersion}catch(S){console&&console.error&&console.error(S)}return y}prepareVisitors(){this.listeners={};let y=(v,O,S)=>{this.listeners[O]||(this.listeners[O]=[]),this.listeners[O].push([v,S])};for(let v of this.plugins)if(typeof v=="object")for(let O in v){if(!n[O]&&/^[A-Z]/.test(O))throw new Error(`Unknown event ${O} in ${v.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!u[O])if(typeof v[O]=="object")for(let S in v[O])S==="*"?y(v,O,v[O][S]):y(v,O+"-"+S.toLowerCase(),v[O][S]);else typeof v[O]=="function"&&y(v,O,v[O])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let y=0;y<this.plugins.length;y++){let v=this.plugins[y],O=this.runOnRoot(v);if(s(O))try{await O}catch(S){throw this.handleError(S)}}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[h];){y[h]=!0;let v=[d(y)];for(;v.length>0;){let O=this.visitTick(v);if(s(O))try{await O}catch(S){let N=v[v.length-1].node;throw this.handleError(S,N)}}}if(this.listeners.OnceExit)for(let[v,O]of this.listeners.OnceExit){this.result.lastPlugin=v;try{if(y.type==="document"){let S=y.nodes.map(N=>O(N,this.helpers));await Promise.all(S)}else await O(y,this.helpers)}catch(S){throw this.handleError(S)}}}return this.processed=!0,this.stringify()}runOnRoot(y){this.result.lastPlugin=y;try{if(typeof y=="object"&&y.Once){if(this.result.root.type==="document"){let v=this.result.root.nodes.map(O=>y.Once(O,this.helpers));return s(v[0])?Promise.all(v):v}return y.Once(this.result.root,this.helpers)}else if(typeof y=="function")return y(this.result.root,this.result)}catch(v){throw this.handleError(v)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let y=this.result.opts,v=c;y.syntax&&(v=y.syntax.stringify),y.stringifier&&(v=y.stringifier),v.stringify&&(v=v.stringify);let S=new i(v,this.result.root,this.result.opts).generate();return this.result.css=S[0],this.result.map=S[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 y of this.plugins){let v=this.runOnRoot(y);if(s(v))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[h];)y[h]=!0,this.walkSync(y);if(this.listeners.OnceExit)if(y.type==="document")for(let v of y.nodes)this.visitSync(this.listeners.OnceExit,v);else this.visitSync(this.listeners.OnceExit,y)}return this.result}then(y,v){return this.async().then(y,v)}toString(){return this.css}visitSync(y,v){for(let[O,S]of y){this.result.lastPlugin=O;let N;try{N=S(v,this.helpers)}catch(L){throw this.handleError(L,v.proxyOf)}if(v.type!=="root"&&v.type!=="document"&&!v.parent)return!0;if(s(N))throw this.getAsyncError()}}visitTick(y){let v=y[y.length-1],{node:O,visitors:S}=v;if(O.type!=="root"&&O.type!=="document"&&!O.parent){y.pop();return}if(S.length>0&&v.visitorIndex<S.length){let[L,_]=S[v.visitorIndex];v.visitorIndex+=1,v.visitorIndex===S.length&&(v.visitors=[],v.visitorIndex=0),this.result.lastPlugin=L;try{return _(O.toProxy(),this.helpers)}catch(F){throw this.handleError(F,O)}}if(v.iterator!==0){let L=v.iterator,_;for(;_=O.nodes[O.indexes[L]];)if(O.indexes[L]+=1,!_[h]){_[h]=!0,y.push(d(_));return}v.iterator=0,delete O.indexes[L]}let N=v.events;for(;v.eventIndex<N.length;){let L=N[v.eventIndex];if(v.eventIndex+=1,L===o){O.nodes&&O.nodes.length&&(O[h]=!0,v.iterator=O.getIterator());return}else if(this.listeners[L]){v.visitors=this.listeners[L];return}}y.pop()}walkSync(y){y[h]=!0;let v=p(y);for(let O of v)if(O===o)y.nodes&&y.each(S=>{S[h]||this.walkSync(S)});else{let S=this.listeners[O];if(S&&this.visitSync(S,y.toProxy()))return}}warnings(){return this.sync().warnings()}}return E.registerPostcss=w=>{x=w},gr=E,E.default=E,l.registerLazyResult(E),e.registerLazyResult(E),gr}var mr,Ln;function po(){if(Ln)return mr;Ln=1;let t=Yn(),e=jr();const i=Ir();let a=Nt();class r{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let c,h=e;try{c=h(this._css,this._opts)}catch(m){this.error=m}if(this.error)throw this.error;return this._root=c,c}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(c,h,m){h=h.toString(),this.stringified=!1,this._processor=c,this._css=h,this._opts=m,this._map=void 0;let f,n=a;this.result=new i(this._processor,f,this._opts),this.result.css=h;let u=this;Object.defineProperty(this.result,"root",{get(){return u.root}});let o=new t(n,f,this._opts,h);if(o.isMap()){let[s,p]=o.generate();s&&(this.result.css=s),p&&(this.result.map=p)}else o.clearAnnotation(),this.result.css=o.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(c){return this.async().catch(c)}finally(c){return this.async().then(c,c)}sync(){if(this.error)throw this.error;return this.result}then(c,h){return this.async().then(c,h)}toString(){return this._css}warnings(){return[]}}return mr=r,r.default=r,mr}var br,jn;function go(){if(jn)return br;jn=1;let t=Mr(),e=ei(),i=po(),a=pt();class r{constructor(c=[]){this.version="8.5.6",this.plugins=this.normalize(c)}normalize(c){let h=[];for(let m of c)if(m.postcss===!0?m=m():m.postcss&&(m=m.postcss),typeof m=="object"&&Array.isArray(m.plugins))h=h.concat(m.plugins);else if(typeof m=="object"&&m.postcssPlugin)h.push(m);else if(typeof m=="function")h.push(m);else if(!(typeof m=="object"&&(m.parse||m.stringify)))throw new Error(m+" is not a PostCSS plugin");return h}process(c,h={}){return!this.plugins.length&&!h.parser&&!h.stringifier&&!h.syntax?new i(this,c,h):new e(this,c,h)}use(c){return this.plugins=this.plugins.concat(this.normalize([c])),this}}return br=r,r.default=r,a.registerProcessor(r),t.registerProcessor(r),br}var vr,In;function mo(){if(In)return vr;In=1;var t={};let e=Tr(),i=Mt(),a=He(),r=Pr(),l=Lt(),c=Mr(),h=uo(),m=jt(),f=ei(),n=Jn(),u=Tt(),o=jr(),s=go(),p=Ir(),d=pt(),b=Lr(),x=Nt(),E=Qn();function w(...y){return y.length===1&&Array.isArray(y[0])&&(y=y[0]),new s(y)}return w.plugin=function(v,O){let S=!1;function N(..._){console&&console.warn&&!S&&(S=!0,console.warn(v+`: postcss.plugin was deprecated. Migration guide:
94
94
  https://evilmartians.com/chronicles/postcss-8-plugin-migration`),t.LANG&&t.LANG.startsWith("cn")&&console.warn(v+`: 里面 postcss.plugin 被弃用. 迁移指南:
95
- https://www.w3ctech.com/topic/2226`));let F=O(..._);return F.postcssPlugin=v,F.postcssVersion=new s().version,F}let L;return Object.defineProperty(N,"postcss",{get(){return L||(L=N()),L}}),N.process=function(_,F,$){return w([N($)]).process(_,F)},N},w.stringify=x,w.parse=o,w.fromJSON=h,w.list=r,w.comment=y=>new i(y),w.atRule=y=>new e(y),w.decl=y=>new u(y),w.rule=y=>new m(y),w.root=y=>new d(y),w.document=y=>new l(y),w.CssSyntaxError=n,w.Declaration=u,w.Container=a,w.Processor=s,w.Document=l,w.Comment=i,w.Warning=E,w.AtRule=e,w.Result=p,w.Input=b,w.Rule=m,w.Root=d,w.Node=c,f.registerPostcss(w),vr=w,w.default=w,vr}var bo=mo();const J=Zn(bo);J.stringify;J.fromJSON;J.plugin;J.parse;J.list;J.document;J.comment;J.atRule;J.rule;J.decl;J.root;J.CssSyntaxError;J.Declaration;J.Container;J.Processor;J.Document;J.Comment;J.Warning;J.AtRule;J.Result;J.Input;J.Rule;J.Root;J.Node;var yr,Dn;function vo(){if(Dn)return yr;Dn=1;const t=(a={})=>{const n=a.prefix,u=/\s+$/.test(n)?n:`${n} `,l=a.ignoreFiles?[].concat(a.ignoreFiles):[],h=a.includeFiles?[].concat(a.includeFiles):[];return{postcssPlugin:"postcss-prefix-selector",prepare(b){const f=b.root,r=f.source.input.file;if(!(l.length&&r&&e(r,l))&&!(h.length&&r&&!e(r,h)))return{Rule(c,{result:o}){const s=["keyframes","-webkit-keyframes","-moz-keyframes","-o-keyframes","-ms-keyframes"];c.parent&&s.includes(c.parent.name)||(c.selectors=c.selectors.map(p=>a.exclude&&i(p,a.exclude)?p:a.transform?a.transform(n,p,u+p,f.source.input.file,c):[":root","body","html"].some(d=>p.startsWith(d))?a.skipGlobalSelectors?p:p.replace(/(html\s+body|:root\s+body|html|:root|body)/gm,n):u+p))}}}}};function e(a,n){return n.some(u=>u instanceof RegExp?u.test(a):a.includes(u))}function i(a,n){return n.some(u=>u instanceof RegExp?u.test(a):a===u)}return t.postcss=!0,yr=t,yr}var yo=vo();const wo=Zn(yo),xo="code{white-space:pre}.example{display:flex;flex-wrap:wrap;flex-direction:row;align-items:center;gap:16px}.example>*{flex:1 1 500px}.example .tab-control{overflow:hidden}.example div[role=tab]{cursor:pointer;padding:8px 16px;display:inline-block;font-size:16px;border-bottom:2px solid transparent;background-clip:padding-box;-webkit-user-select:none;user-select:none}.example div[role=tab]:hover{background-color:#1467ba14}.example div[role=tab][selected]{background-color:#1467ba21;border-bottom:2px solid #1467ba}.tab-content{margin:16px 0}.tab-content>pre{padding-top:0}.tab-content.code{max-height:500px;overflow:auto}.tab-content.code pre{margin:0}",Eo="pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{color:#24292e;background:#fff}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#d73a49}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#6f42c1}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-variable,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id{color:#005cc5}.hljs-regexp,.hljs-string,.hljs-meta .hljs-string{color:#032f62}.hljs-built_in,.hljs-symbol{color:#e36209}.hljs-comment,.hljs-code,.hljs-formula{color:#6a737d}.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo{color:#22863a}.hljs-subst{color:#24292e}.hljs-section{color:#005cc5;font-weight:700}.hljs-bullet{color:#735c0f}.hljs-emphasis{color:#24292e;font-style:italic}.hljs-strong{color:#24292e;font-weight:700}.hljs-addition{color:#22863a;background-color:#f0fff4}.hljs-deletion{color:#b31d28;background-color:#ffeef0}";function Oo(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var wr,Bn;function ko(){if(Bn)return wr;Bn=1;function t(g){return g instanceof Map?g.clear=g.delete=g.set=function(){throw new Error("map is read-only")}:g instanceof Set&&(g.add=g.clear=g.delete=function(){throw new Error("set is read-only")}),Object.freeze(g),Object.getOwnPropertyNames(g).forEach(k=>{const R=g[k],U=typeof R;(U==="object"||U==="function")&&!Object.isFrozen(R)&&t(R)}),g}class e{constructor(k){k.data===void 0&&(k.data={}),this.data=k.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function i(g){return g.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function a(g,...k){const R=Object.create(null);for(const U in g)R[U]=g[U];return k.forEach(function(U){for(const Q in U)R[Q]=U[Q]}),R}const n="</span>",u=g=>!!g.scope,l=(g,{prefix:k})=>{if(g.startsWith("language:"))return g.replace("language:","language-");if(g.includes(".")){const R=g.split(".");return[`${k}${R.shift()}`,...R.map((U,Q)=>`${U}${"_".repeat(Q+1)}`)].join(" ")}return`${k}${g}`};class h{constructor(k,R){this.buffer="",this.classPrefix=R.classPrefix,k.walk(this)}addText(k){this.buffer+=i(k)}openNode(k){if(!u(k))return;const R=l(k.scope,{prefix:this.classPrefix});this.span(R)}closeNode(k){u(k)&&(this.buffer+=n)}value(){return this.buffer}span(k){this.buffer+=`<span class="${k}">`}}const b=(g={})=>{const k={children:[]};return Object.assign(k,g),k};class f{constructor(){this.rootNode=b(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(k){this.top.children.push(k)}openNode(k){const R=b({scope:k});this.add(R),this.stack.push(R)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(k){return this.constructor._walk(k,this.rootNode)}static _walk(k,R){return typeof R=="string"?k.addText(R):R.children&&(k.openNode(R),R.children.forEach(U=>this._walk(k,U)),k.closeNode(R)),k}static _collapse(k){typeof k!="string"&&k.children&&(k.children.every(R=>typeof R=="string")?k.children=[k.children.join("")]:k.children.forEach(R=>{f._collapse(R)}))}}class r extends f{constructor(k){super(),this.options=k}addText(k){k!==""&&this.add(k)}startScope(k){this.openNode(k)}endScope(){this.closeNode()}__addSublanguage(k,R){const U=k.root;R&&(U.scope=`language:${R}`),this.add(U)}toHTML(){return new h(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function c(g){return g?typeof g=="string"?g:g.source:null}function o(g){return d("(?=",g,")")}function s(g){return d("(?:",g,")*")}function p(g){return d("(?:",g,")?")}function d(...g){return g.map(k=>c(k)).join("")}function m(g){const k=g[g.length-1];return typeof k=="object"&&k.constructor===Object?(g.splice(g.length-1,1),k):{}}function x(...g){return"("+(m(g).capture?"":"?:")+g.map(k=>c(k)).join("|")+")"}function E(g){return new RegExp(g.toString()+"|").exec("").length-1}function w(g,k){const R=g&&g.exec(k);return R&&R.index===0}const y=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function v(g,{joinWith:k}){let R=0;return g.map(U=>{R+=1;const Q=R;let ee=c(U),T="";for(;ee.length>0;){const M=y.exec(ee);if(!M){T+=ee;break}T+=ee.substring(0,M.index),ee=ee.substring(M.index+M[0].length),M[0][0]==="\\"&&M[1]?T+="\\"+String(Number(M[1])+Q):(T+=M[0],M[0]==="("&&R++)}return T}).map(U=>`(${U})`).join(k)}const O=/\b\B/,S="[a-zA-Z]\\w*",N="[a-zA-Z_]\\w*",L="\\b\\d+(\\.\\d+)?",_="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",F="\\b(0b[01]+)",$="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",K=(g={})=>{const k=/^#![ ]*\//;return g.binary&&(g.begin=d(k,/.*\b/,g.binary,/\b.*/)),a({scope:"meta",begin:k,end:/$/,relevance:0,"on:begin":(R,U)=>{R.index!==0&&U.ignoreMatch()}},g)},te={begin:"\\\\[\\s\\S]",relevance:0},P={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[te]},re={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[te]},q={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},X=function(g,k,R={}){const U=a({scope:"comment",begin:g,end:k,contains:[]},R);U.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const Q=x("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return U.contains.push({begin:d(/[ ]+/,"(",Q,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),U},Y=X("//","$"),ie=X("/\\*","\\*/"),ge=X("#","$"),he={scope:"number",begin:L,relevance:0},D={scope:"number",begin:_,relevance:0},me={scope:"number",begin:F,relevance:0},ce={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[te,{begin:/\[/,end:/\]/,relevance:0,contains:[te]}]},Ne={scope:"title",begin:S,relevance:0},Oe={scope:"title",begin:N,relevance:0},xe={begin:"\\.\\s*"+N,relevance:0};var ke=Object.freeze({__proto__:null,APOS_STRING_MODE:P,BACKSLASH_ESCAPE:te,BINARY_NUMBER_MODE:me,BINARY_NUMBER_RE:F,COMMENT:X,C_BLOCK_COMMENT_MODE:ie,C_LINE_COMMENT_MODE:Y,C_NUMBER_MODE:D,C_NUMBER_RE:_,END_SAME_AS_BEGIN:function(g){return Object.assign(g,{"on:begin":(k,R)=>{R.data._beginMatch=k[1]},"on:end":(k,R)=>{R.data._beginMatch!==k[1]&&R.ignoreMatch()}})},HASH_COMMENT_MODE:ge,IDENT_RE:S,MATCH_NOTHING_RE:O,METHOD_GUARD:xe,NUMBER_MODE:he,NUMBER_RE:L,PHRASAL_WORDS_MODE:q,QUOTE_STRING_MODE:re,REGEXP_MODE:ce,RE_STARTERS_RE:$,SHEBANG:K,TITLE_MODE:Ne,UNDERSCORE_IDENT_RE:N,UNDERSCORE_TITLE_MODE:Oe});function Qe(g,k){g.input[g.index-1]==="."&&k.ignoreMatch()}function be(g,k){g.className!==void 0&&(g.scope=g.className,delete g.className)}function ze(g,k){k&&g.beginKeywords&&(g.begin="\\b("+g.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",g.__beforeBegin=Qe,g.keywords=g.keywords||g.beginKeywords,delete g.beginKeywords,g.relevance===void 0&&(g.relevance=0))}function $e(g,k){Array.isArray(g.illegal)&&(g.illegal=x(...g.illegal))}function Dt(g,k){if(g.match){if(g.begin||g.end)throw new Error("begin & end are not supported with match");g.begin=g.match,delete g.match}}function Bt(g,k){g.relevance===void 0&&(g.relevance=1)}const dt=(g,k)=>{if(!g.beforeMatch)return;if(g.starts)throw new Error("beforeMatch cannot be used with starts");const R=Object.assign({},g);Object.keys(g).forEach(U=>{delete g[U]}),g.keywords=R.keywords,g.begin=d(R.beforeMatch,o(R.begin)),g.starts={relevance:0,contains:[Object.assign(R,{endsParent:!0})]},g.relevance=0,delete R.beforeMatch},gt=["of","and","for","in","not","or","if","then","parent","list","value"],zt="keyword";function mt(g,k,R=zt){const U=Object.create(null);return typeof g=="string"?Q(R,g.split(" ")):Array.isArray(g)?Q(R,g):Object.keys(g).forEach(function(ee){Object.assign(U,mt(g[ee],k,ee))}),U;function Q(ee,T){k&&(T=T.map(M=>M.toLowerCase())),T.forEach(function(M){const B=M.split("|");U[B[0]]=[ee,Me(B[0],B[1])]})}}function Me(g,k){return k?Number(k):Ge(g)?0:1}function Ge(g){return gt.includes(g.toLowerCase())}const et={},Se=g=>{console.error(g)},Ve=(g,...k)=>{console.log(`WARN: ${g}`,...k)},Te=(g,k)=>{et[`${g}/${k}`]||(console.log(`Deprecated as of ${g}. ${k}`),et[`${g}/${k}`]=!0)},Ue=new Error;function tt(g,k,{key:R}){let U=0;const Q=g[R],ee={},T={};for(let M=1;M<=k.length;M++)T[M+U]=Q[M],ee[M+U]=!0,U+=E(k[M-1]);g[R]=T,g[R]._emit=ee,g[R]._multi=!0}function bt(g){if(Array.isArray(g.begin)){if(g.skip||g.excludeBegin||g.returnBegin)throw Se("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Ue;if(typeof g.beginScope!="object"||g.beginScope===null)throw Se("beginScope must be object"),Ue;tt(g,g.begin,{key:"beginScope"}),g.begin=v(g.begin,{joinWith:""})}}function ci(g){if(Array.isArray(g.end)){if(g.skip||g.excludeEnd||g.returnEnd)throw Se("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Ue;if(typeof g.endScope!="object"||g.endScope===null)throw Se("endScope must be object"),Ue;tt(g,g.end,{key:"endScope"}),g.end=v(g.end,{joinWith:""})}}function ui(g){g.scope&&typeof g.scope=="object"&&g.scope!==null&&(g.beginScope=g.scope,delete g.scope)}function fi(g){ui(g),typeof g.beginScope=="string"&&(g.beginScope={_wrap:g.beginScope}),typeof g.endScope=="string"&&(g.endScope={_wrap:g.endScope}),bt(g),ci(g)}function hi(g){function k(T,M){return new RegExp(c(T),"m"+(g.case_insensitive?"i":"")+(g.unicodeRegex?"u":"")+(M?"g":""))}class R{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(M,B){B.position=this.position++,this.matchIndexes[this.matchAt]=B,this.regexes.push([B,M]),this.matchAt+=E(M)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const M=this.regexes.map(B=>B[1]);this.matcherRe=k(v(M,{joinWith:"|"}),!0),this.lastIndex=0}exec(M){this.matcherRe.lastIndex=this.lastIndex;const B=this.matcherRe.exec(M);if(!B)return null;const oe=B.findIndex((rt,Ut)=>Ut>0&&rt!==void 0),ne=this.matchIndexes[oe];return B.splice(0,oe),Object.assign(B,ne)}}class U{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(M){if(this.multiRegexes[M])return this.multiRegexes[M];const B=new R;return this.rules.slice(M).forEach(([oe,ne])=>B.addRule(oe,ne)),B.compile(),this.multiRegexes[M]=B,B}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(M,B){this.rules.push([M,B]),B.type==="begin"&&this.count++}exec(M){const B=this.getMatcher(this.regexIndex);B.lastIndex=this.lastIndex;let oe=B.exec(M);if(this.resumingScanAtSamePosition()&&!(oe&&oe.index===this.lastIndex)){const ne=this.getMatcher(0);ne.lastIndex=this.lastIndex+1,oe=ne.exec(M)}return oe&&(this.regexIndex+=oe.position+1,this.regexIndex===this.count&&this.considerAll()),oe}}function Q(T){const M=new U;return T.contains.forEach(B=>M.addRule(B.begin,{rule:B,type:"begin"})),T.terminatorEnd&&M.addRule(T.terminatorEnd,{type:"end"}),T.illegal&&M.addRule(T.illegal,{type:"illegal"}),M}function ee(T,M){const B=T;if(T.isCompiled)return B;[be,Dt,fi,dt].forEach(ne=>ne(T,M)),g.compilerExtensions.forEach(ne=>ne(T,M)),T.__beforeBegin=null,[ze,$e,Bt].forEach(ne=>ne(T,M)),T.isCompiled=!0;let oe=null;return typeof T.keywords=="object"&&T.keywords.$pattern&&(T.keywords=Object.assign({},T.keywords),oe=T.keywords.$pattern,delete T.keywords.$pattern),oe=oe||/\w+/,T.keywords&&(T.keywords=mt(T.keywords,g.case_insensitive)),B.keywordPatternRe=k(oe,!0),M&&(T.begin||(T.begin=/\B|\b/),B.beginRe=k(B.begin),!T.end&&!T.endsWithParent&&(T.end=/\B|\b/),T.end&&(B.endRe=k(B.end)),B.terminatorEnd=c(B.end)||"",T.endsWithParent&&M.terminatorEnd&&(B.terminatorEnd+=(T.end?"|":"")+M.terminatorEnd)),T.illegal&&(B.illegalRe=k(T.illegal)),T.contains||(T.contains=[]),T.contains=[].concat(...T.contains.map(function(ne){return pi(ne==="self"?T:ne)})),T.contains.forEach(function(ne){ee(ne,B)}),T.starts&&ee(T.starts,M),B.matcher=Q(B),B}if(g.compilerExtensions||(g.compilerExtensions=[]),g.contains&&g.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return g.classNameAliases=a(g.classNameAliases||{}),ee(g)}function Br(g){return g?g.endsWithParent||Br(g.starts):!1}function pi(g){return g.variants&&!g.cachedVariants&&(g.cachedVariants=g.variants.map(function(k){return a(g,{variants:null},k)})),g.cachedVariants?g.cachedVariants:Br(g)?a(g,{starts:g.starts?a(g.starts):null}):Object.isFrozen(g)?a(g):g}var di="11.11.1";class gi extends Error{constructor(k,R){super(k),this.name="HTMLInjectionError",this.html=R}}const $t=i,zr=a,$r=Symbol("nomatch"),mi=7,Ur=function(g){const k=Object.create(null),R=Object.create(null),U=[];let Q=!0;const ee="Could not find the language '{}', did you forget to load/include a language module?",T={disableAutodetect:!0,name:"Plain text",contains:[]};let M={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:r};function B(A){return M.noHighlightRe.test(A)}function oe(A){let I=A.className+" ";I+=A.parentNode?A.parentNode.className:"";const H=M.languageDetectRe.exec(I);if(H){const V=Ie(H[1]);return V||(Ve(ee.replace("{}",H[1])),Ve("Falling back to no-highlight mode for this block.",A)),V?H[1]:"no-highlight"}return I.split(/\s+/).find(V=>B(V)||Ie(V))}function ne(A,I,H){let V="",se="";typeof I=="object"?(V=A,H=I.ignoreIllegals,se=I.language):(Te("10.7.0","highlight(lang, code, ...args) has been deprecated."),Te("10.7.0",`Please use highlight(code, options) instead.
96
- https://github.com/highlightjs/highlight.js/issues/2277`),se=A,V=I),H===void 0&&(H=!0);const Ae={code:V,language:se};yt("before:highlight",Ae);const De=Ae.result?Ae.result:rt(Ae.language,Ae.code,H);return De.code=Ae.code,yt("after:highlight",De),De}function rt(A,I,H,V){const se=Object.create(null);function Ae(C,j){return C.keywords[j]}function De(){if(!z.keywords){ae.addText(Z);return}let C=0;z.keywordPatternRe.lastIndex=0;let j=z.keywordPatternRe.exec(Z),W="";for(;j;){W+=Z.substring(C,j.index);const G=Ce.case_insensitive?j[0].toLowerCase():j[0],le=Ae(z,G);if(le){const[Le,Ti]=le;if(ae.addText(W),W="",se[G]=(se[G]||0)+1,se[G]<=mi&&(Et+=Ti),Le.startsWith("_"))W+=j[0];else{const Li=Ce.classNameAliases[Le]||Le;_e(j[0],Li)}}else W+=j[0];C=z.keywordPatternRe.lastIndex,j=z.keywordPatternRe.exec(Z)}W+=Z.substring(C),ae.addText(W)}function wt(){if(Z==="")return;let C=null;if(typeof z.subLanguage=="string"){if(!k[z.subLanguage]){ae.addText(Z);return}C=rt(z.subLanguage,Z,!0,Xr[z.subLanguage]),Xr[z.subLanguage]=C._top}else C=Ft(Z,z.subLanguage.length?z.subLanguage:null);z.relevance>0&&(Et+=C.relevance),ae.__addSublanguage(C._emitter,C.language)}function pe(){z.subLanguage!=null?wt():De(),Z=""}function _e(C,j){C!==""&&(ae.startScope(j),ae.addText(C),ae.endScope())}function Hr(C,j){let W=1;const G=j.length-1;for(;W<=G;){if(!C._emit[W]){W++;continue}const le=Ce.classNameAliases[C[W]]||C[W],Le=j[W];le?_e(Le,le):(Z=Le,De(),Z=""),W++}}function Gr(C,j){return C.scope&&typeof C.scope=="string"&&ae.openNode(Ce.classNameAliases[C.scope]||C.scope),C.beginScope&&(C.beginScope._wrap?(_e(Z,Ce.classNameAliases[C.beginScope._wrap]||C.beginScope._wrap),Z=""):C.beginScope._multi&&(Hr(C.beginScope,j),Z="")),z=Object.create(C,{parent:{value:z}}),z}function Vr(C,j,W){let G=w(C.endRe,W);if(G){if(C["on:end"]){const le=new e(C);C["on:end"](j,le),le.isMatchIgnored&&(G=!1)}if(G){for(;C.endsParent&&C.parent;)C=C.parent;return C}}if(C.endsWithParent)return Vr(C.parent,j,W)}function Ci(C){return z.matcher.regexIndex===0?(Z+=C[0],1):(Gt=!0,0)}function Ri(C){const j=C[0],W=C.rule,G=new e(W),le=[W.__beforeBegin,W["on:begin"]];for(const Le of le)if(Le&&(Le(C,G),G.isMatchIgnored))return Ci(j);return W.skip?Z+=j:(W.excludeBegin&&(Z+=j),pe(),!W.returnBegin&&!W.excludeBegin&&(Z=j)),Gr(W,C),W.returnBegin?0:j.length}function Pi(C){const j=C[0],W=I.substring(C.index),G=Vr(z,C,W);if(!G)return $r;const le=z;z.endScope&&z.endScope._wrap?(pe(),_e(j,z.endScope._wrap)):z.endScope&&z.endScope._multi?(pe(),Hr(z.endScope,C)):le.skip?Z+=j:(le.returnEnd||le.excludeEnd||(Z+=j),pe(),le.excludeEnd&&(Z=j));do z.scope&&ae.closeNode(),!z.skip&&!z.subLanguage&&(Et+=z.relevance),z=z.parent;while(z!==G.parent);return G.starts&&Gr(G.starts,C),le.returnEnd?0:j.length}function Ni(){const C=[];for(let j=z;j!==Ce;j=j.parent)j.scope&&C.unshift(j.scope);C.forEach(j=>ae.openNode(j))}let xt={};function Zr(C,j){const W=j&&j[0];if(Z+=C,W==null)return pe(),0;if(xt.type==="begin"&&j.type==="end"&&xt.index===j.index&&W===""){if(Z+=I.slice(j.index,j.index+1),!Q){const G=new Error(`0 width match regex (${A})`);throw G.languageName=A,G.badRule=xt.rule,G}return 1}if(xt=j,j.type==="begin")return Ri(j);if(j.type==="illegal"&&!H){const G=new Error('Illegal lexeme "'+W+'" for mode "'+(z.scope||"<unnamed>")+'"');throw G.mode=z,G}else if(j.type==="end"){const G=Pi(j);if(G!==$r)return G}if(j.type==="illegal"&&W==="")return Z+=`
97
- `,1;if(Ht>1e5&&Ht>j.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Z+=W,W.length}const Ce=Ie(A);if(!Ce)throw Se(ee.replace("{}",A)),new Error('Unknown language: "'+A+'"');const Mi=hi(Ce);let Wt="",z=V||Mi;const Xr={},ae=new M.__emitter(M);Ni();let Z="",Et=0,Fe=0,Ht=0,Gt=!1;try{if(Ce.__emitTokens)Ce.__emitTokens(I,ae);else{for(z.matcher.considerAll();;){Ht++,Gt?Gt=!1:z.matcher.considerAll(),z.matcher.lastIndex=Fe;const C=z.matcher.exec(I);if(!C)break;const j=I.substring(Fe,C.index),W=Zr(j,C);Fe=C.index+W}Zr(I.substring(Fe))}return ae.finalize(),Wt=ae.toHTML(),{language:A,value:Wt,relevance:Et,illegal:!1,_emitter:ae,_top:z}}catch(C){if(C.message&&C.message.includes("Illegal"))return{language:A,value:$t(I),illegal:!0,relevance:0,_illegalBy:{message:C.message,index:Fe,context:I.slice(Fe-100,Fe+100),mode:C.mode,resultSoFar:Wt},_emitter:ae};if(Q)return{language:A,value:$t(I),illegal:!1,relevance:0,errorRaised:C,_emitter:ae,_top:z};throw C}}function Ut(A){const I={value:$t(A),illegal:!1,relevance:0,_top:T,_emitter:new M.__emitter(M)};return I._emitter.addText(A),I}function Ft(A,I){I=I||M.languages||Object.keys(k);const H=Ut(A),V=I.filter(Ie).filter(Wr).map(pe=>rt(pe,A,!1));V.unshift(H);const se=V.sort((pe,_e)=>{if(pe.relevance!==_e.relevance)return _e.relevance-pe.relevance;if(pe.language&&_e.language){if(Ie(pe.language).supersetOf===_e.language)return 1;if(Ie(_e.language).supersetOf===pe.language)return-1}return 0}),[Ae,De]=se,wt=Ae;return wt.secondBest=De,wt}function bi(A,I,H){const V=I&&R[I]||H;A.classList.add("hljs"),A.classList.add(`language-${V}`)}function qt(A){let I=null;const H=oe(A);if(B(H))return;if(yt("before:highlightElement",{el:A,language:H}),A.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",A);return}if(A.children.length>0&&(M.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(A)),M.throwUnescapedHTML))throw new gi("One of your code blocks includes unescaped HTML.",A.innerHTML);I=A;const V=I.textContent,se=H?ne(V,{language:H,ignoreIllegals:!0}):Ft(V);A.innerHTML=se.value,A.dataset.highlighted="yes",bi(A,H,se.language),A.result={language:se.language,re:se.relevance,relevance:se.relevance},se.secondBest&&(A.secondBest={language:se.secondBest.language,relevance:se.secondBest.relevance}),yt("after:highlightElement",{el:A,result:se,text:V})}function vi(A){M=zr(M,A)}const yi=()=>{vt(),Te("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function wi(){vt(),Te("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Fr=!1;function vt(){function A(){vt()}if(document.readyState==="loading"){Fr||window.addEventListener("DOMContentLoaded",A,!1),Fr=!0;return}document.querySelectorAll(M.cssSelector).forEach(qt)}function xi(A,I){let H=null;try{H=I(g)}catch(V){if(Se("Language definition for '{}' could not be registered.".replace("{}",A)),Q)Se(V);else throw V;H=T}H.name||(H.name=A),k[A]=H,H.rawDefinition=I.bind(null,g),H.aliases&&qr(H.aliases,{languageName:A})}function Ei(A){delete k[A];for(const I of Object.keys(R))R[I]===A&&delete R[I]}function Oi(){return Object.keys(k)}function Ie(A){return A=(A||"").toLowerCase(),k[A]||k[R[A]]}function qr(A,{languageName:I}){typeof A=="string"&&(A=[A]),A.forEach(H=>{R[H.toLowerCase()]=I})}function Wr(A){const I=Ie(A);return I&&!I.disableAutodetect}function ki(A){A["before:highlightBlock"]&&!A["before:highlightElement"]&&(A["before:highlightElement"]=I=>{A["before:highlightBlock"](Object.assign({block:I.el},I))}),A["after:highlightBlock"]&&!A["after:highlightElement"]&&(A["after:highlightElement"]=I=>{A["after:highlightBlock"](Object.assign({block:I.el},I))})}function Si(A){ki(A),U.push(A)}function Ai(A){const I=U.indexOf(A);I!==-1&&U.splice(I,1)}function yt(A,I){const H=A;U.forEach(function(V){V[H]&&V[H](I)})}function _i(A){return Te("10.7.0","highlightBlock will be removed entirely in v12.0"),Te("10.7.0","Please use highlightElement now."),qt(A)}Object.assign(g,{highlight:ne,highlightAuto:Ft,highlightAll:vt,highlightElement:qt,highlightBlock:_i,configure:vi,initHighlighting:yi,initHighlightingOnLoad:wi,registerLanguage:xi,unregisterLanguage:Ei,listLanguages:Oi,getLanguage:Ie,registerAliases:qr,autoDetection:Wr,inherit:zr,addPlugin:Si,removePlugin:Ai}),g.debugMode=function(){Q=!1},g.safeMode=function(){Q=!0},g.versionString=di,g.regex={concat:d,lookahead:o,either:x,optional:p,anyNumberOfTimes:s};for(const A in ke)typeof ke[A]=="object"&&t(ke[A]);return Object.assign(g,ke),g},Ze=Ur({});return Ze.newInstance=()=>Ur({}),wr=Ze,Ze.HighlightJS=Ze,Ze.default=Ze,wr}var So=ko();const It=Oo(So),Rt="[A-Za-z$_][0-9A-Za-z$_]*",ti=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],ri=["true","false","null","undefined","NaN","Infinity"],ni=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],ii=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],si=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],oi=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],ai=[].concat(si,ni,ii);function Ao(t){const e=t.regex,i=(q,{after:X})=>{const Y="</"+q[0].slice(1);return q.input.indexOf(Y,X)!==-1},a=Rt,n={begin:"<>",end:"</>"},u=/<[A-Za-z0-9\\._:-]+\s*\/>/,l={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(q,X)=>{const Y=q[0].length+q.index,ie=q.input[Y];if(ie==="<"||ie===","){X.ignoreMatch();return}ie===">"&&(i(q,{after:Y})||X.ignoreMatch());let ge;const he=q.input.substring(Y);if(ge=he.match(/^\s*=/)){X.ignoreMatch();return}if((ge=he.match(/^\s+extends\s+/))&&ge.index===0){X.ignoreMatch();return}}},h={$pattern:Rt,keyword:ti,literal:ri,built_in:ai,"variable.language":oi},b="[0-9](_?[0-9])*",f=`\\.(${b})`,r="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",c={className:"number",variants:[{begin:`(\\b(${r})((${f})|\\.)?|(${f}))[eE][+-]?(${b})\\b`},{begin:`\\b(${r})\\b((${f})\\b|\\.)?|(${f})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},o={className:"subst",begin:"\\$\\{",end:"\\}",keywords:h,contains:[]},s={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,o],subLanguage:"xml"}},p={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,o],subLanguage:"css"}},d={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,o],subLanguage:"graphql"}},m={className:"string",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE,o]},x={className:"comment",variants:[t.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:a+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE]},E=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,s,p,d,m,{match:/\$\d+/},c];o.contains=E.concat({begin:/\{/,end:/\}/,keywords:h,contains:["self"].concat(E)});const w=[].concat(x,o.contains),y=w.concat([{begin:/(\s*)\(/,end:/\)/,keywords:h,contains:["self"].concat(w)}]),v={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:h,contains:y},O={variants:[{match:[/class/,/\s+/,a,/\s+/,/extends/,/\s+/,e.concat(a,"(",e.concat(/\./,a),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,a],scope:{1:"keyword",3:"title.class"}}]},S={relevance:0,match:e.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...ni,...ii]}},N={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},L={variants:[{match:[/function/,/\s+/,a,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[v],illegal:/%/},_={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function F(q){return e.concat("(?!",q.join("|"),")")}const $={match:e.concat(/\b/,F([...si,"super","import"].map(q=>`${q}\\s*\\(`)),a,e.lookahead(/\s*\(/)),className:"title.function",relevance:0},K={begin:e.concat(/\./,e.lookahead(e.concat(a,/(?![0-9A-Za-z$_(])/))),end:a,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},te={match:[/get|set/,/\s+/,a,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},v]},P="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+t.UNDERSCORE_IDENT_RE+")\\s*=>",re={match:[/const|var|let/,/\s+/,a,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(P)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[v]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:h,exports:{PARAMS_CONTAINS:y,CLASS_REFERENCE:S},illegal:/#(?![$_A-z])/,contains:[t.SHEBANG({label:"shebang",binary:"node",relevance:5}),N,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,s,p,d,m,x,{match:/\$\d+/},c,S,{scope:"attr",match:a+e.lookahead(":"),relevance:0},re,{begin:"("+t.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[x,t.REGEXP_MODE,{className:"function",begin:P,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:h,contains:y}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:n.begin,end:n.end},{match:u},{begin:l.begin,"on:begin":l.isTrulyOpeningTag,end:l.end}],subLanguage:"xml",contains:[{begin:l.begin,end:l.end,skip:!0,contains:["self"]}]}]},L,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+t.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[v,t.inherit(t.TITLE_MODE,{begin:a,className:"title.function"})]},{match:/\.\.\./,relevance:0},K,{match:"\\$"+a,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[v]},$,_,O,te,{match:/\$[(.]/}]}}function _o(t){const e=t.regex,i=Ao(t),a=Rt,n=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],u={begin:[/namespace/,/\s+/,t.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},l={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:n},contains:[i.exports.CLASS_REFERENCE]},h={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},b=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],f={$pattern:Rt,keyword:ti.concat(b),literal:ri,built_in:ai.concat(n),"variable.language":oi},r={className:"meta",begin:"@"+a},c=(d,m,x)=>{const E=d.contains.findIndex(w=>w.label===m);if(E===-1)throw new Error("can not find mode to replace");d.contains.splice(E,1,x)};Object.assign(i.keywords,f),i.exports.PARAMS_CONTAINS.push(r);const o=i.contains.find(d=>d.scope==="attr"),s=Object.assign({},o,{match:e.concat(a,e.lookahead(/\s*\?:/))});i.exports.PARAMS_CONTAINS.push([i.exports.CLASS_REFERENCE,o,s]),i.contains=i.contains.concat([r,u,l,s]),c(i,"shebang",t.SHEBANG()),c(i,"use_strict",h);const p=i.contains.find(d=>d.label==="func.def");return p.relevance=0,Object.assign(i,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),i}function Co(t){const e=t.regex,i=e.concat(/[\p{L}_]/u,e.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),a=/[\p{L}0-9._:-]+/u,n={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},u={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},l=t.inherit(u,{begin:/\(/,end:/\)/}),h=t.inherit(t.APOS_STRING_MODE,{className:"string"}),b=t.inherit(t.QUOTE_STRING_MODE,{className:"string"}),f={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:a,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[n]},{begin:/'/,end:/'/,contains:[n]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[u,b,h,l,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[u,l,b,h]}]}]},t.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},n,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[b]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[f],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[f],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:e.concat(/</,e.lookahead(e.concat(i,e.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:i,relevance:0,starts:f}]},{className:"tag",begin:e.concat(/<\//,e.lookahead(e.concat(i,/>/))),contains:[{className:"name",begin:i,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}const Ro=t=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:t.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:t.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),Po=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],No=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],Mo=[...Po,...No],To=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),Lo=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),jo=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),Io=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function Do(t){const e=t.regex,i=Ro(t),a={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},n="and or not only",u=/@-?\w[\w]*(-\w+)*/,l="[a-zA-Z-][a-zA-Z0-9_-]*",h=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[i.BLOCK_COMMENT,a,i.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+l,relevance:0},i.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+Lo.join("|")+")"},{begin:":(:)?("+jo.join("|")+")"}]},i.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Io.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[i.BLOCK_COMMENT,i.HEXCOLOR,i.IMPORTANT,i.CSS_NUMBER_MODE,...h,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...h,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},i.FUNCTION_DISPATCH]},{begin:e.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:u},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:n,attribute:To.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...h,i.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+Mo.join("|")+")\\b"}]}}const li=document.createElement("style");li.innerText=[xo,Eo].join(`
98
- `);document.head.appendChild(li);It.registerLanguage("typescript",_o);It.registerLanguage("html",Co);It.registerLanguage("css",Do);function Bo(...t){const e=document.createElement("div"),i=document.createElement("div");i.classList.add("tab-control");const a=document.createElement("div");return t.forEach(n=>{e.appendChild(n),n.addEventListener("click",()=>{t.forEach(u=>u.removeAttribute("selected")),n.setAttribute("selected",""),a.innerHTML="",a.appendChild(n.content),a.className=n.className,a.classList.add("tab-content")})}),i.appendChild(e),i.appendChild(a),a.classList.add("tab-content"),t[0].setAttribute("selected",""),a.appendChild(t[0].content),i}function it(t,e){const i=document.createElement("div");return i.role="tab",i.tabIndex=0,i.innerText=t,i.content=e,e.tagName=="PRE"&&i.classList.add("code"),i}function lt(t,e){const i=document.createElement(t);return typeof e=="string"?i.innerHTML=e:e.forEach(a=>{i.appendChild(a)}),i}async function zo(t,e,i){const a=e.mainContent,n=lt("div",a);n.id=`example-preview-${i}`;const u=typeof e.css=="string"?void 0:e.css?.label,l=typeof e.css=="string"?e.css:e.css?.content,h=Bo(it("Preview",n),it("HTML",At("html",a)),...l?[it(u??"CSS",At("css",l))]:[],...e.initializer&&e.initializer.content?[it(e.initializer.label??"TS",At("typescript",e.initializer.content))]:[],...(e.additionalSources||[]).map(f=>it(f.label,At(f.language,f.content))));e.description&&t.appendChild(lt("div",e.description));const b=lt("div",[h]);b.classList.add("example"),t.appendChild(b),l&&$o(`#${n.id}`,l),e.initializer?.initialize&&await e.initializer.initialize(n)}function At(t,e){let i=e.split(/\r?\n/).map(a=>{const n=a.indexOf("///");if(n>-1){const u=a.substring(n+3).trimStart();return u?a.replace(/^(\s*)([^\s].*)$/,`$1${u}`):void 0}return a}).filter(a=>typeof a<"u").join(`
99
- `).trim();return t&&t!="raw"&&(i=It.highlight(i,{language:t}).value),lt("pre",[lt("code",i)])}function $o(t,e){const i=document.createElement("style");i.innerHTML=J().use(wo({prefix:t})).process(e).css,document.head.appendChild(i)}async function Uo(t,e=document.body){const i=qo(e);let a=0;Object.keys(t).sort().forEach(async n=>{const u=document.createElement("div");u.className="example-container",i.appendChild(u);const l=t[n].default;zo(u,l,a++)})}function Fo(t){const e=document.createElement("div");e.id="examples-container";const i=t.querySelector("#examples");return i?i.after(e):t.appendChild(e),e}function qo(t){return t.children?Fo(t):t}const Wo=`<h1 id="@cas-smartdesign/popover">@cas-smartdesign/popover</h1>
95
+ https://www.w3ctech.com/topic/2226`));let F=O(..._);return F.postcssPlugin=v,F.postcssVersion=new s().version,F}let L;return Object.defineProperty(N,"postcss",{get(){return L||(L=N()),L}}),N.process=function(_,F,$){return w([N($)]).process(_,F)},N},w.stringify=x,w.parse=o,w.fromJSON=h,w.list=n,w.comment=y=>new i(y),w.atRule=y=>new e(y),w.decl=y=>new l(y),w.rule=y=>new b(y),w.root=y=>new d(y),w.document=y=>new c(y),w.CssSyntaxError=r,w.Declaration=l,w.Container=a,w.Processor=s,w.Document=c,w.Comment=i,w.Warning=E,w.AtRule=e,w.Result=p,w.Input=m,w.Rule=b,w.Root=d,w.Node=u,f.registerPostcss(w),vr=w,w.default=w,vr}var bo=mo();const X=Zn(bo);X.stringify;X.fromJSON;X.plugin;X.parse;X.list;X.document;X.comment;X.atRule;X.rule;X.decl;X.root;X.CssSyntaxError;X.Declaration;X.Container;X.Processor;X.Document;X.Comment;X.Warning;X.AtRule;X.Result;X.Input;X.Rule;X.Root;X.Node;var yr,Dn;function vo(){if(Dn)return yr;Dn=1;const t=(a={})=>{const r=a.prefix,l=/\s+$/.test(r)?r:`${r} `,c=a.ignoreFiles?[].concat(a.ignoreFiles):[],h=a.includeFiles?[].concat(a.includeFiles):[];return{postcssPlugin:"postcss-prefix-selector",prepare(m){const f=m.root,n=f.source.input.file;if(!(c.length&&n&&e(n,c))&&!(h.length&&n&&!e(n,h)))return{Rule(u,{result:o}){const s=["keyframes","-webkit-keyframes","-moz-keyframes","-o-keyframes","-ms-keyframes"];u.parent&&s.includes(u.parent.name)||(u.selectors=u.selectors.map(p=>a.exclude&&i(p,a.exclude)?p:a.transform?a.transform(r,p,l+p,f.source.input.file,u):[":root","body","html"].some(d=>p.startsWith(d))?a.skipGlobalSelectors?p:p.replace(/(html\s+body|:root\s+body|html|:root|body)/gm,r):l+p))}}}}};function e(a,r){return r.some(l=>l instanceof RegExp?l.test(a):a.includes(l))}function i(a,r){return r.some(l=>l instanceof RegExp?l.test(a):a===l)}return t.postcss=!0,yr=t,yr}var yo=vo();const wo=Zn(yo),xo="code{white-space:pre}.example{display:flex;flex-wrap:wrap;flex-direction:row;align-items:center;gap:16px}.example>*{flex:1 1 500px}.example .tab-control{overflow:hidden}.example div[role=tab]{cursor:pointer;padding:8px 16px;display:inline-block;font-size:16px;border-bottom:2px solid transparent;background-clip:padding-box;-webkit-user-select:none;user-select:none}.example div[role=tab]:hover{background-color:#1467ba14}.example div[role=tab][selected]{background-color:#1467ba21;border-bottom:2px solid #1467ba}.tab-content{margin:16px 0}.tab-content>pre{padding-top:0}.tab-content.code{max-height:500px;overflow:auto}.tab-content.code pre{margin:0}",Eo="pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{color:#24292e;background:#fff}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#d73a49}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#6f42c1}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-variable,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id{color:#005cc5}.hljs-regexp,.hljs-string,.hljs-meta .hljs-string{color:#032f62}.hljs-built_in,.hljs-symbol{color:#e36209}.hljs-comment,.hljs-code,.hljs-formula{color:#6a737d}.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo{color:#22863a}.hljs-subst{color:#24292e}.hljs-section{color:#005cc5;font-weight:700}.hljs-bullet{color:#735c0f}.hljs-emphasis{color:#24292e;font-style:italic}.hljs-strong{color:#24292e;font-weight:700}.hljs-addition{color:#22863a;background-color:#f0fff4}.hljs-deletion{color:#b31d28;background-color:#ffeef0}";function Oo(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var wr,Bn;function ko(){if(Bn)return wr;Bn=1;function t(g){return g instanceof Map?g.clear=g.delete=g.set=function(){throw new Error("map is read-only")}:g instanceof Set&&(g.add=g.clear=g.delete=function(){throw new Error("set is read-only")}),Object.freeze(g),Object.getOwnPropertyNames(g).forEach(k=>{const R=g[k],U=typeof R;(U==="object"||U==="function")&&!Object.isFrozen(R)&&t(R)}),g}class e{constructor(k){k.data===void 0&&(k.data={}),this.data=k.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function i(g){return g.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function a(g,...k){const R=Object.create(null);for(const U in g)R[U]=g[U];return k.forEach(function(U){for(const Q in U)R[Q]=U[Q]}),R}const r="</span>",l=g=>!!g.scope,c=(g,{prefix:k})=>{if(g.startsWith("language:"))return g.replace("language:","language-");if(g.includes(".")){const R=g.split(".");return[`${k}${R.shift()}`,...R.map((U,Q)=>`${U}${"_".repeat(Q+1)}`)].join(" ")}return`${k}${g}`};class h{constructor(k,R){this.buffer="",this.classPrefix=R.classPrefix,k.walk(this)}addText(k){this.buffer+=i(k)}openNode(k){if(!l(k))return;const R=c(k.scope,{prefix:this.classPrefix});this.span(R)}closeNode(k){l(k)&&(this.buffer+=r)}value(){return this.buffer}span(k){this.buffer+=`<span class="${k}">`}}const m=(g={})=>{const k={children:[]};return Object.assign(k,g),k};class f{constructor(){this.rootNode=m(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(k){this.top.children.push(k)}openNode(k){const R=m({scope:k});this.add(R),this.stack.push(R)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(k){return this.constructor._walk(k,this.rootNode)}static _walk(k,R){return typeof R=="string"?k.addText(R):R.children&&(k.openNode(R),R.children.forEach(U=>this._walk(k,U)),k.closeNode(R)),k}static _collapse(k){typeof k!="string"&&k.children&&(k.children.every(R=>typeof R=="string")?k.children=[k.children.join("")]:k.children.forEach(R=>{f._collapse(R)}))}}class n extends f{constructor(k){super(),this.options=k}addText(k){k!==""&&this.add(k)}startScope(k){this.openNode(k)}endScope(){this.closeNode()}__addSublanguage(k,R){const U=k.root;R&&(U.scope=`language:${R}`),this.add(U)}toHTML(){return new h(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function u(g){return g?typeof g=="string"?g:g.source:null}function o(g){return d("(?=",g,")")}function s(g){return d("(?:",g,")*")}function p(g){return d("(?:",g,")?")}function d(...g){return g.map(k=>u(k)).join("")}function b(g){const k=g[g.length-1];return typeof k=="object"&&k.constructor===Object?(g.splice(g.length-1,1),k):{}}function x(...g){return"("+(b(g).capture?"":"?:")+g.map(k=>u(k)).join("|")+")"}function E(g){return new RegExp(g.toString()+"|").exec("").length-1}function w(g,k){const R=g&&g.exec(k);return R&&R.index===0}const y=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function v(g,{joinWith:k}){let R=0;return g.map(U=>{R+=1;const Q=R;let ee=u(U),M="";for(;ee.length>0;){const T=y.exec(ee);if(!T){M+=ee;break}M+=ee.substring(0,T.index),ee=ee.substring(T.index+T[0].length),T[0][0]==="\\"&&T[1]?M+="\\"+String(Number(T[1])+Q):(M+=T[0],T[0]==="("&&R++)}return M}).map(U=>`(${U})`).join(k)}const O=/\b\B/,S="[a-zA-Z]\\w*",N="[a-zA-Z_]\\w*",L="\\b\\d+(\\.\\d+)?",_="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",F="\\b(0b[01]+)",$="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",J=(g={})=>{const k=/^#![ ]*\//;return g.binary&&(g.begin=d(k,/.*\b/,g.binary,/\b.*/)),a({scope:"meta",begin:k,end:/$/,relevance:0,"on:begin":(R,U)=>{R.index!==0&&U.ignoreMatch()}},g)},te={begin:"\\\\[\\s\\S]",relevance:0},P={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[te]},re={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[te]},q={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},K=function(g,k,R={}){const U=a({scope:"comment",begin:g,end:k,contains:[]},R);U.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const Q=x("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return U.contains.push({begin:d(/[ ]+/,"(",Q,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),U},Y=K("//","$"),ie=K("/\\*","\\*/"),ge=K("#","$"),he={scope:"number",begin:L,relevance:0},D={scope:"number",begin:_,relevance:0},me={scope:"number",begin:F,relevance:0},ce={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[te,{begin:/\[/,end:/\]/,relevance:0,contains:[te]}]},Ne={scope:"title",begin:S,relevance:0},Oe={scope:"title",begin:N,relevance:0},xe={begin:"\\.\\s*"+N,relevance:0};var ke=Object.freeze({__proto__:null,APOS_STRING_MODE:P,BACKSLASH_ESCAPE:te,BINARY_NUMBER_MODE:me,BINARY_NUMBER_RE:F,COMMENT:K,C_BLOCK_COMMENT_MODE:ie,C_LINE_COMMENT_MODE:Y,C_NUMBER_MODE:D,C_NUMBER_RE:_,END_SAME_AS_BEGIN:function(g){return Object.assign(g,{"on:begin":(k,R)=>{R.data._beginMatch=k[1]},"on:end":(k,R)=>{R.data._beginMatch!==k[1]&&R.ignoreMatch()}})},HASH_COMMENT_MODE:ge,IDENT_RE:S,MATCH_NOTHING_RE:O,METHOD_GUARD:xe,NUMBER_MODE:he,NUMBER_RE:L,PHRASAL_WORDS_MODE:q,QUOTE_STRING_MODE:re,REGEXP_MODE:ce,RE_STARTERS_RE:$,SHEBANG:J,TITLE_MODE:Ne,UNDERSCORE_IDENT_RE:N,UNDERSCORE_TITLE_MODE:Oe});function Qe(g,k){g.input[g.index-1]==="."&&k.ignoreMatch()}function be(g,k){g.className!==void 0&&(g.scope=g.className,delete g.className)}function ze(g,k){k&&g.beginKeywords&&(g.begin="\\b("+g.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",g.__beforeBegin=Qe,g.keywords=g.keywords||g.beginKeywords,delete g.beginKeywords,g.relevance===void 0&&(g.relevance=0))}function $e(g,k){Array.isArray(g.illegal)&&(g.illegal=x(...g.illegal))}function Dt(g,k){if(g.match){if(g.begin||g.end)throw new Error("begin & end are not supported with match");g.begin=g.match,delete g.match}}function Bt(g,k){g.relevance===void 0&&(g.relevance=1)}const dt=(g,k)=>{if(!g.beforeMatch)return;if(g.starts)throw new Error("beforeMatch cannot be used with starts");const R=Object.assign({},g);Object.keys(g).forEach(U=>{delete g[U]}),g.keywords=R.keywords,g.begin=d(R.beforeMatch,o(R.begin)),g.starts={relevance:0,contains:[Object.assign(R,{endsParent:!0})]},g.relevance=0,delete R.beforeMatch},gt=["of","and","for","in","not","or","if","then","parent","list","value"],zt="keyword";function mt(g,k,R=zt){const U=Object.create(null);return typeof g=="string"?Q(R,g.split(" ")):Array.isArray(g)?Q(R,g):Object.keys(g).forEach(function(ee){Object.assign(U,mt(g[ee],k,ee))}),U;function Q(ee,M){k&&(M=M.map(T=>T.toLowerCase())),M.forEach(function(T){const B=T.split("|");U[B[0]]=[ee,Te(B[0],B[1])]})}}function Te(g,k){return k?Number(k):Ge(g)?0:1}function Ge(g){return gt.includes(g.toLowerCase())}const et={},Se=g=>{console.error(g)},Ve=(g,...k)=>{console.log(`WARN: ${g}`,...k)},Me=(g,k)=>{et[`${g}/${k}`]||(console.log(`Deprecated as of ${g}. ${k}`),et[`${g}/${k}`]=!0)},Ue=new Error;function tt(g,k,{key:R}){let U=0;const Q=g[R],ee={},M={};for(let T=1;T<=k.length;T++)M[T+U]=Q[T],ee[T+U]=!0,U+=E(k[T-1]);g[R]=M,g[R]._emit=ee,g[R]._multi=!0}function bt(g){if(Array.isArray(g.begin)){if(g.skip||g.excludeBegin||g.returnBegin)throw Se("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Ue;if(typeof g.beginScope!="object"||g.beginScope===null)throw Se("beginScope must be object"),Ue;tt(g,g.begin,{key:"beginScope"}),g.begin=v(g.begin,{joinWith:""})}}function ci(g){if(Array.isArray(g.end)){if(g.skip||g.excludeEnd||g.returnEnd)throw Se("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Ue;if(typeof g.endScope!="object"||g.endScope===null)throw Se("endScope must be object"),Ue;tt(g,g.end,{key:"endScope"}),g.end=v(g.end,{joinWith:""})}}function ui(g){g.scope&&typeof g.scope=="object"&&g.scope!==null&&(g.beginScope=g.scope,delete g.scope)}function fi(g){ui(g),typeof g.beginScope=="string"&&(g.beginScope={_wrap:g.beginScope}),typeof g.endScope=="string"&&(g.endScope={_wrap:g.endScope}),bt(g),ci(g)}function hi(g){function k(M,T){return new RegExp(u(M),"m"+(g.case_insensitive?"i":"")+(g.unicodeRegex?"u":"")+(T?"g":""))}class R{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(T,B){B.position=this.position++,this.matchIndexes[this.matchAt]=B,this.regexes.push([B,T]),this.matchAt+=E(T)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const T=this.regexes.map(B=>B[1]);this.matcherRe=k(v(T,{joinWith:"|"}),!0),this.lastIndex=0}exec(T){this.matcherRe.lastIndex=this.lastIndex;const B=this.matcherRe.exec(T);if(!B)return null;const oe=B.findIndex((rt,Ut)=>Ut>0&&rt!==void 0),ne=this.matchIndexes[oe];return B.splice(0,oe),Object.assign(B,ne)}}class U{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(T){if(this.multiRegexes[T])return this.multiRegexes[T];const B=new R;return this.rules.slice(T).forEach(([oe,ne])=>B.addRule(oe,ne)),B.compile(),this.multiRegexes[T]=B,B}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(T,B){this.rules.push([T,B]),B.type==="begin"&&this.count++}exec(T){const B=this.getMatcher(this.regexIndex);B.lastIndex=this.lastIndex;let oe=B.exec(T);if(this.resumingScanAtSamePosition()&&!(oe&&oe.index===this.lastIndex)){const ne=this.getMatcher(0);ne.lastIndex=this.lastIndex+1,oe=ne.exec(T)}return oe&&(this.regexIndex+=oe.position+1,this.regexIndex===this.count&&this.considerAll()),oe}}function Q(M){const T=new U;return M.contains.forEach(B=>T.addRule(B.begin,{rule:B,type:"begin"})),M.terminatorEnd&&T.addRule(M.terminatorEnd,{type:"end"}),M.illegal&&T.addRule(M.illegal,{type:"illegal"}),T}function ee(M,T){const B=M;if(M.isCompiled)return B;[be,Dt,fi,dt].forEach(ne=>ne(M,T)),g.compilerExtensions.forEach(ne=>ne(M,T)),M.__beforeBegin=null,[ze,$e,Bt].forEach(ne=>ne(M,T)),M.isCompiled=!0;let oe=null;return typeof M.keywords=="object"&&M.keywords.$pattern&&(M.keywords=Object.assign({},M.keywords),oe=M.keywords.$pattern,delete M.keywords.$pattern),oe=oe||/\w+/,M.keywords&&(M.keywords=mt(M.keywords,g.case_insensitive)),B.keywordPatternRe=k(oe,!0),T&&(M.begin||(M.begin=/\B|\b/),B.beginRe=k(B.begin),!M.end&&!M.endsWithParent&&(M.end=/\B|\b/),M.end&&(B.endRe=k(B.end)),B.terminatorEnd=u(B.end)||"",M.endsWithParent&&T.terminatorEnd&&(B.terminatorEnd+=(M.end?"|":"")+T.terminatorEnd)),M.illegal&&(B.illegalRe=k(M.illegal)),M.contains||(M.contains=[]),M.contains=[].concat(...M.contains.map(function(ne){return pi(ne==="self"?M:ne)})),M.contains.forEach(function(ne){ee(ne,B)}),M.starts&&ee(M.starts,T),B.matcher=Q(B),B}if(g.compilerExtensions||(g.compilerExtensions=[]),g.contains&&g.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return g.classNameAliases=a(g.classNameAliases||{}),ee(g)}function Br(g){return g?g.endsWithParent||Br(g.starts):!1}function pi(g){return g.variants&&!g.cachedVariants&&(g.cachedVariants=g.variants.map(function(k){return a(g,{variants:null},k)})),g.cachedVariants?g.cachedVariants:Br(g)?a(g,{starts:g.starts?a(g.starts):null}):Object.isFrozen(g)?a(g):g}var di="11.11.1";class gi extends Error{constructor(k,R){super(k),this.name="HTMLInjectionError",this.html=R}}const $t=i,zr=a,$r=Symbol("nomatch"),mi=7,Ur=function(g){const k=Object.create(null),R=Object.create(null),U=[];let Q=!0;const ee="Could not find the language '{}', did you forget to load/include a language module?",M={disableAutodetect:!0,name:"Plain text",contains:[]};let T={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:n};function B(A){return T.noHighlightRe.test(A)}function oe(A){let I=A.className+" ";I+=A.parentNode?A.parentNode.className:"";const H=T.languageDetectRe.exec(I);if(H){const V=Ie(H[1]);return V||(Ve(ee.replace("{}",H[1])),Ve("Falling back to no-highlight mode for this block.",A)),V?H[1]:"no-highlight"}return I.split(/\s+/).find(V=>B(V)||Ie(V))}function ne(A,I,H){let V="",se="";typeof I=="object"?(V=A,H=I.ignoreIllegals,se=I.language):(Me("10.7.0","highlight(lang, code, ...args) has been deprecated."),Me("10.7.0",`Please use highlight(code, options) instead.
96
+ https://github.com/highlightjs/highlight.js/issues/2277`),se=A,V=I),H===void 0&&(H=!0);const Ae={code:V,language:se};yt("before:highlight",Ae);const De=Ae.result?Ae.result:rt(Ae.language,Ae.code,H);return De.code=Ae.code,yt("after:highlight",De),De}function rt(A,I,H,V){const se=Object.create(null);function Ae(C,j){return C.keywords[j]}function De(){if(!z.keywords){ae.addText(Z);return}let C=0;z.keywordPatternRe.lastIndex=0;let j=z.keywordPatternRe.exec(Z),W="";for(;j;){W+=Z.substring(C,j.index);const G=Ce.case_insensitive?j[0].toLowerCase():j[0],le=Ae(z,G);if(le){const[Le,Mi]=le;if(ae.addText(W),W="",se[G]=(se[G]||0)+1,se[G]<=mi&&(Et+=Mi),Le.startsWith("_"))W+=j[0];else{const Li=Ce.classNameAliases[Le]||Le;_e(j[0],Li)}}else W+=j[0];C=z.keywordPatternRe.lastIndex,j=z.keywordPatternRe.exec(Z)}W+=Z.substring(C),ae.addText(W)}function wt(){if(Z==="")return;let C=null;if(typeof z.subLanguage=="string"){if(!k[z.subLanguage]){ae.addText(Z);return}C=rt(z.subLanguage,Z,!0,Kr[z.subLanguage]),Kr[z.subLanguage]=C._top}else C=Ft(Z,z.subLanguage.length?z.subLanguage:null);z.relevance>0&&(Et+=C.relevance),ae.__addSublanguage(C._emitter,C.language)}function pe(){z.subLanguage!=null?wt():De(),Z=""}function _e(C,j){C!==""&&(ae.startScope(j),ae.addText(C),ae.endScope())}function Hr(C,j){let W=1;const G=j.length-1;for(;W<=G;){if(!C._emit[W]){W++;continue}const le=Ce.classNameAliases[C[W]]||C[W],Le=j[W];le?_e(Le,le):(Z=Le,De(),Z=""),W++}}function Gr(C,j){return C.scope&&typeof C.scope=="string"&&ae.openNode(Ce.classNameAliases[C.scope]||C.scope),C.beginScope&&(C.beginScope._wrap?(_e(Z,Ce.classNameAliases[C.beginScope._wrap]||C.beginScope._wrap),Z=""):C.beginScope._multi&&(Hr(C.beginScope,j),Z="")),z=Object.create(C,{parent:{value:z}}),z}function Vr(C,j,W){let G=w(C.endRe,W);if(G){if(C["on:end"]){const le=new e(C);C["on:end"](j,le),le.isMatchIgnored&&(G=!1)}if(G){for(;C.endsParent&&C.parent;)C=C.parent;return C}}if(C.endsWithParent)return Vr(C.parent,j,W)}function Ci(C){return z.matcher.regexIndex===0?(Z+=C[0],1):(Gt=!0,0)}function Ri(C){const j=C[0],W=C.rule,G=new e(W),le=[W.__beforeBegin,W["on:begin"]];for(const Le of le)if(Le&&(Le(C,G),G.isMatchIgnored))return Ci(j);return W.skip?Z+=j:(W.excludeBegin&&(Z+=j),pe(),!W.returnBegin&&!W.excludeBegin&&(Z=j)),Gr(W,C),W.returnBegin?0:j.length}function Pi(C){const j=C[0],W=I.substring(C.index),G=Vr(z,C,W);if(!G)return $r;const le=z;z.endScope&&z.endScope._wrap?(pe(),_e(j,z.endScope._wrap)):z.endScope&&z.endScope._multi?(pe(),Hr(z.endScope,C)):le.skip?Z+=j:(le.returnEnd||le.excludeEnd||(Z+=j),pe(),le.excludeEnd&&(Z=j));do z.scope&&ae.closeNode(),!z.skip&&!z.subLanguage&&(Et+=z.relevance),z=z.parent;while(z!==G.parent);return G.starts&&Gr(G.starts,C),le.returnEnd?0:j.length}function Ni(){const C=[];for(let j=z;j!==Ce;j=j.parent)j.scope&&C.unshift(j.scope);C.forEach(j=>ae.openNode(j))}let xt={};function Zr(C,j){const W=j&&j[0];if(Z+=C,W==null)return pe(),0;if(xt.type==="begin"&&j.type==="end"&&xt.index===j.index&&W===""){if(Z+=I.slice(j.index,j.index+1),!Q){const G=new Error(`0 width match regex (${A})`);throw G.languageName=A,G.badRule=xt.rule,G}return 1}if(xt=j,j.type==="begin")return Ri(j);if(j.type==="illegal"&&!H){const G=new Error('Illegal lexeme "'+W+'" for mode "'+(z.scope||"<unnamed>")+'"');throw G.mode=z,G}else if(j.type==="end"){const G=Pi(j);if(G!==$r)return G}if(j.type==="illegal"&&W==="")return Z+=`
97
+ `,1;if(Ht>1e5&&Ht>j.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Z+=W,W.length}const Ce=Ie(A);if(!Ce)throw Se(ee.replace("{}",A)),new Error('Unknown language: "'+A+'"');const Ti=hi(Ce);let Wt="",z=V||Ti;const Kr={},ae=new T.__emitter(T);Ni();let Z="",Et=0,Fe=0,Ht=0,Gt=!1;try{if(Ce.__emitTokens)Ce.__emitTokens(I,ae);else{for(z.matcher.considerAll();;){Ht++,Gt?Gt=!1:z.matcher.considerAll(),z.matcher.lastIndex=Fe;const C=z.matcher.exec(I);if(!C)break;const j=I.substring(Fe,C.index),W=Zr(j,C);Fe=C.index+W}Zr(I.substring(Fe))}return ae.finalize(),Wt=ae.toHTML(),{language:A,value:Wt,relevance:Et,illegal:!1,_emitter:ae,_top:z}}catch(C){if(C.message&&C.message.includes("Illegal"))return{language:A,value:$t(I),illegal:!0,relevance:0,_illegalBy:{message:C.message,index:Fe,context:I.slice(Fe-100,Fe+100),mode:C.mode,resultSoFar:Wt},_emitter:ae};if(Q)return{language:A,value:$t(I),illegal:!1,relevance:0,errorRaised:C,_emitter:ae,_top:z};throw C}}function Ut(A){const I={value:$t(A),illegal:!1,relevance:0,_top:M,_emitter:new T.__emitter(T)};return I._emitter.addText(A),I}function Ft(A,I){I=I||T.languages||Object.keys(k);const H=Ut(A),V=I.filter(Ie).filter(Wr).map(pe=>rt(pe,A,!1));V.unshift(H);const se=V.sort((pe,_e)=>{if(pe.relevance!==_e.relevance)return _e.relevance-pe.relevance;if(pe.language&&_e.language){if(Ie(pe.language).supersetOf===_e.language)return 1;if(Ie(_e.language).supersetOf===pe.language)return-1}return 0}),[Ae,De]=se,wt=Ae;return wt.secondBest=De,wt}function bi(A,I,H){const V=I&&R[I]||H;A.classList.add("hljs"),A.classList.add(`language-${V}`)}function qt(A){let I=null;const H=oe(A);if(B(H))return;if(yt("before:highlightElement",{el:A,language:H}),A.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",A);return}if(A.children.length>0&&(T.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(A)),T.throwUnescapedHTML))throw new gi("One of your code blocks includes unescaped HTML.",A.innerHTML);I=A;const V=I.textContent,se=H?ne(V,{language:H,ignoreIllegals:!0}):Ft(V);A.innerHTML=se.value,A.dataset.highlighted="yes",bi(A,H,se.language),A.result={language:se.language,re:se.relevance,relevance:se.relevance},se.secondBest&&(A.secondBest={language:se.secondBest.language,relevance:se.secondBest.relevance}),yt("after:highlightElement",{el:A,result:se,text:V})}function vi(A){T=zr(T,A)}const yi=()=>{vt(),Me("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function wi(){vt(),Me("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Fr=!1;function vt(){function A(){vt()}if(document.readyState==="loading"){Fr||window.addEventListener("DOMContentLoaded",A,!1),Fr=!0;return}document.querySelectorAll(T.cssSelector).forEach(qt)}function xi(A,I){let H=null;try{H=I(g)}catch(V){if(Se("Language definition for '{}' could not be registered.".replace("{}",A)),Q)Se(V);else throw V;H=M}H.name||(H.name=A),k[A]=H,H.rawDefinition=I.bind(null,g),H.aliases&&qr(H.aliases,{languageName:A})}function Ei(A){delete k[A];for(const I of Object.keys(R))R[I]===A&&delete R[I]}function Oi(){return Object.keys(k)}function Ie(A){return A=(A||"").toLowerCase(),k[A]||k[R[A]]}function qr(A,{languageName:I}){typeof A=="string"&&(A=[A]),A.forEach(H=>{R[H.toLowerCase()]=I})}function Wr(A){const I=Ie(A);return I&&!I.disableAutodetect}function ki(A){A["before:highlightBlock"]&&!A["before:highlightElement"]&&(A["before:highlightElement"]=I=>{A["before:highlightBlock"](Object.assign({block:I.el},I))}),A["after:highlightBlock"]&&!A["after:highlightElement"]&&(A["after:highlightElement"]=I=>{A["after:highlightBlock"](Object.assign({block:I.el},I))})}function Si(A){ki(A),U.push(A)}function Ai(A){const I=U.indexOf(A);I!==-1&&U.splice(I,1)}function yt(A,I){const H=A;U.forEach(function(V){V[H]&&V[H](I)})}function _i(A){return Me("10.7.0","highlightBlock will be removed entirely in v12.0"),Me("10.7.0","Please use highlightElement now."),qt(A)}Object.assign(g,{highlight:ne,highlightAuto:Ft,highlightAll:vt,highlightElement:qt,highlightBlock:_i,configure:vi,initHighlighting:yi,initHighlightingOnLoad:wi,registerLanguage:xi,unregisterLanguage:Ei,listLanguages:Oi,getLanguage:Ie,registerAliases:qr,autoDetection:Wr,inherit:zr,addPlugin:Si,removePlugin:Ai}),g.debugMode=function(){Q=!1},g.safeMode=function(){Q=!0},g.versionString=di,g.regex={concat:d,lookahead:o,either:x,optional:p,anyNumberOfTimes:s};for(const A in ke)typeof ke[A]=="object"&&t(ke[A]);return Object.assign(g,ke),g},Ze=Ur({});return Ze.newInstance=()=>Ur({}),wr=Ze,Ze.HighlightJS=Ze,Ze.default=Ze,wr}var So=ko();const It=Oo(So),Rt="[A-Za-z$_][0-9A-Za-z$_]*",ti=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],ri=["true","false","null","undefined","NaN","Infinity"],ni=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],ii=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],si=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],oi=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],ai=[].concat(si,ni,ii);function Ao(t){const e=t.regex,i=(q,{after:K})=>{const Y="</"+q[0].slice(1);return q.input.indexOf(Y,K)!==-1},a=Rt,r={begin:"<>",end:"</>"},l=/<[A-Za-z0-9\\._:-]+\s*\/>/,c={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(q,K)=>{const Y=q[0].length+q.index,ie=q.input[Y];if(ie==="<"||ie===","){K.ignoreMatch();return}ie===">"&&(i(q,{after:Y})||K.ignoreMatch());let ge;const he=q.input.substring(Y);if(ge=he.match(/^\s*=/)){K.ignoreMatch();return}if((ge=he.match(/^\s+extends\s+/))&&ge.index===0){K.ignoreMatch();return}}},h={$pattern:Rt,keyword:ti,literal:ri,built_in:ai,"variable.language":oi},m="[0-9](_?[0-9])*",f=`\\.(${m})`,n="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",u={className:"number",variants:[{begin:`(\\b(${n})((${f})|\\.)?|(${f}))[eE][+-]?(${m})\\b`},{begin:`\\b(${n})\\b((${f})\\b|\\.)?|(${f})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},o={className:"subst",begin:"\\$\\{",end:"\\}",keywords:h,contains:[]},s={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,o],subLanguage:"xml"}},p={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,o],subLanguage:"css"}},d={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,o],subLanguage:"graphql"}},b={className:"string",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE,o]},x={className:"comment",variants:[t.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:a+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE]},E=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,s,p,d,b,{match:/\$\d+/},u];o.contains=E.concat({begin:/\{/,end:/\}/,keywords:h,contains:["self"].concat(E)});const w=[].concat(x,o.contains),y=w.concat([{begin:/(\s*)\(/,end:/\)/,keywords:h,contains:["self"].concat(w)}]),v={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:h,contains:y},O={variants:[{match:[/class/,/\s+/,a,/\s+/,/extends/,/\s+/,e.concat(a,"(",e.concat(/\./,a),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,a],scope:{1:"keyword",3:"title.class"}}]},S={relevance:0,match:e.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...ni,...ii]}},N={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},L={variants:[{match:[/function/,/\s+/,a,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[v],illegal:/%/},_={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function F(q){return e.concat("(?!",q.join("|"),")")}const $={match:e.concat(/\b/,F([...si,"super","import"].map(q=>`${q}\\s*\\(`)),a,e.lookahead(/\s*\(/)),className:"title.function",relevance:0},J={begin:e.concat(/\./,e.lookahead(e.concat(a,/(?![0-9A-Za-z$_(])/))),end:a,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},te={match:[/get|set/,/\s+/,a,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},v]},P="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+t.UNDERSCORE_IDENT_RE+")\\s*=>",re={match:[/const|var|let/,/\s+/,a,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(P)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[v]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:h,exports:{PARAMS_CONTAINS:y,CLASS_REFERENCE:S},illegal:/#(?![$_A-z])/,contains:[t.SHEBANG({label:"shebang",binary:"node",relevance:5}),N,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,s,p,d,b,x,{match:/\$\d+/},u,S,{scope:"attr",match:a+e.lookahead(":"),relevance:0},re,{begin:"("+t.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[x,t.REGEXP_MODE,{className:"function",begin:P,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:h,contains:y}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:r.begin,end:r.end},{match:l},{begin:c.begin,"on:begin":c.isTrulyOpeningTag,end:c.end}],subLanguage:"xml",contains:[{begin:c.begin,end:c.end,skip:!0,contains:["self"]}]}]},L,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+t.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[v,t.inherit(t.TITLE_MODE,{begin:a,className:"title.function"})]},{match:/\.\.\./,relevance:0},J,{match:"\\$"+a,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[v]},$,_,O,te,{match:/\$[(.]/}]}}function _o(t){const e=t.regex,i=Ao(t),a=Rt,r=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],l={begin:[/namespace/,/\s+/,t.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},c={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:r},contains:[i.exports.CLASS_REFERENCE]},h={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},m=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],f={$pattern:Rt,keyword:ti.concat(m),literal:ri,built_in:ai.concat(r),"variable.language":oi},n={className:"meta",begin:"@"+a},u=(d,b,x)=>{const E=d.contains.findIndex(w=>w.label===b);if(E===-1)throw new Error("can not find mode to replace");d.contains.splice(E,1,x)};Object.assign(i.keywords,f),i.exports.PARAMS_CONTAINS.push(n);const o=i.contains.find(d=>d.scope==="attr"),s=Object.assign({},o,{match:e.concat(a,e.lookahead(/\s*\?:/))});i.exports.PARAMS_CONTAINS.push([i.exports.CLASS_REFERENCE,o,s]),i.contains=i.contains.concat([n,l,c,s]),u(i,"shebang",t.SHEBANG()),u(i,"use_strict",h);const p=i.contains.find(d=>d.label==="func.def");return p.relevance=0,Object.assign(i,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),i}function Co(t){const e=t.regex,i=e.concat(/[\p{L}_]/u,e.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),a=/[\p{L}0-9._:-]+/u,r={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},l={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},c=t.inherit(l,{begin:/\(/,end:/\)/}),h=t.inherit(t.APOS_STRING_MODE,{className:"string"}),m=t.inherit(t.QUOTE_STRING_MODE,{className:"string"}),f={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:a,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[r]},{begin:/'/,end:/'/,contains:[r]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[l,m,h,c,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[l,c,m,h]}]}]},t.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},r,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[m]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[f],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[f],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:e.concat(/</,e.lookahead(e.concat(i,e.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:i,relevance:0,starts:f}]},{className:"tag",begin:e.concat(/<\//,e.lookahead(e.concat(i,/>/))),contains:[{className:"name",begin:i,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}const Ro=t=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:t.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:t.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),Po=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],No=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],To=[...Po,...No],Mo=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),Lo=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),jo=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),Io=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function Do(t){const e=t.regex,i=Ro(t),a={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},r="and or not only",l=/@-?\w[\w]*(-\w+)*/,c="[a-zA-Z-][a-zA-Z0-9_-]*",h=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[i.BLOCK_COMMENT,a,i.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+c,relevance:0},i.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+Lo.join("|")+")"},{begin:":(:)?("+jo.join("|")+")"}]},i.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Io.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[i.BLOCK_COMMENT,i.HEXCOLOR,i.IMPORTANT,i.CSS_NUMBER_MODE,...h,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...h,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},i.FUNCTION_DISPATCH]},{begin:e.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:l},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:r,attribute:Mo.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...h,i.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+To.join("|")+")\\b"}]}}const li=document.createElement("style");li.innerText=[xo,Eo].join(`
98
+ `);document.head.appendChild(li);It.registerLanguage("typescript",_o);It.registerLanguage("html",Co);It.registerLanguage("css",Do);function Bo(...t){const e=document.createElement("div"),i=document.createElement("div");i.classList.add("tab-control");const a=document.createElement("div");return t.forEach(r=>{e.appendChild(r),r.addEventListener("click",()=>{t.forEach(l=>l.removeAttribute("selected")),r.setAttribute("selected",""),a.innerHTML="",a.appendChild(r.content),a.className=r.className,a.classList.add("tab-content")})}),i.appendChild(e),i.appendChild(a),a.classList.add("tab-content"),t[0].setAttribute("selected",""),a.appendChild(t[0].content),i}function it(t,e){const i=document.createElement("div");return i.role="tab",i.tabIndex=0,i.innerText=t,i.content=e,e.tagName=="PRE"&&i.classList.add("code"),i}function lt(t,e){const i=document.createElement(t);return typeof e=="string"?i.innerHTML=e:e.forEach(a=>{i.appendChild(a)}),i}async function zo(t,e,i){const a=e.mainContent,r=lt("div",a);r.id=`example-preview-${i}`;const l=typeof e.css=="string"?void 0:e.css?.label,c=typeof e.css=="string"?e.css:e.css?.content,h=Bo(it("Preview",r),it("HTML",At("html",a)),...c?[it(l??"CSS",At("css",c))]:[],...e.initializer&&e.initializer.content?[it(e.initializer.label??"TS",At("typescript",e.initializer.content))]:[],...(e.additionalSources||[]).map(f=>it(f.label,At(f.language,f.content))));e.description&&t.appendChild(lt("div",e.description));const m=lt("div",[h]);m.classList.add("example"),t.appendChild(m),c&&$o(`#${r.id}`,c),e.initializer?.initialize&&await e.initializer.initialize(r)}function At(t,e){let i=e.split(/\r?\n/).map(a=>{const r=a.indexOf("///");if(r>-1){const l=a.substring(r+3).trimStart();return l?a.replace(/^(\s*)([^\s].*)$/,`$1${l}`):void 0}return a}).filter(a=>typeof a<"u").join(`
99
+ `).trim();return t&&t!="raw"&&(i=It.highlight(i,{language:t}).value),lt("pre",[lt("code",i)])}function $o(t,e){const i=document.createElement("style");i.innerHTML=X().use(wo({prefix:t})).process(e).css,document.head.appendChild(i)}async function Uo(t,e=document.body){const i=qo(e);let a=0;Object.keys(t).sort().forEach(async r=>{const l=document.createElement("div");l.className="example-container",i.appendChild(l);const c=t[r].default;zo(l,c,a++)})}function Fo(t){const e=document.createElement("div");e.id="examples-container";const i=t.querySelector("#examples");return i?i.after(e):t.appendChild(e),e}function qo(t){return t.children?Fo(t):t}const Wo=`<h1 id="@cas-smartdesign/popover">@cas-smartdesign/popover</h1>
100
100
  <p>A popover element with SmartDesign look &amp; feel.</p>
101
101
  <h2 id="attributes">Attributes</h2>
102
102
  <ul>
@@ -204,4 +204,4 @@ https://github.com/highlightjs/highlight.js/issues/2277`),se=A,V=I),H===void 0&&
204
204
  <ul>
205
205
  <li>The first child element represents the content of the popover window.</li>
206
206
  </ul>
207
- `,Ho=document.querySelector("#markdown-container");Ho.innerHTML=Wo;Uo(Object.assign({"./examples/1_declarative_button_trigger/index.ts":Bi,"./examples/2_declarative_hover_trigger/index.ts":Fi,"./examples/3_created_from_source/index.ts":Ji}),document.querySelector(".markdown-body"));export{at as P};
207
+ `,Ho=document.querySelector("#markdown-container");Ho.innerHTML=Wo;Uo(Object.assign({"./examples/1_declarative_button_trigger/index.ts":Bi,"./examples/2_declarative_hover_trigger/index.ts":Fi,"./examples/3_created_from_source/index.ts":Xi}),document.querySelector(".markdown-body"));export{at as P};