@cas-smartdesign/popover 4.4.0 → 6.0.0

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,7 +1,4 @@
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
- <script src="./popover-with-externals.js"><\/script>
3
-
4
- <div>
1
+ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,a)=>(a=n==null?{}:e(i(n)),c(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var u=`<div>
5
2
  <sd-popover modal target-selector="#popover-trigger-button" placement="right-start">
6
3
  <div class="popover-content" style="padding: 8px">
7
4
  This is a popover which was opened by a button
@@ -11,11 +8,8 @@
11
8
  </sd-popover>
12
9
  <button id="popover-trigger-button">Open modal popover</button>
13
10
  </div>
14
- `,Ii=`<h3 id="modal-popover-opened-by-button-click">Modal popover opened by button click</h3>
15
- `,Di={mainContent:ji,description:Ii},Bi=Object.freeze(Object.defineProperty({__proto__:null,default:Di},Symbol.toStringTag,{value:"Module"})),zi=`<!-- Load element with all dependencies directly -->
16
- <script src="./popover-with-externals.js"><\/script>
17
-
18
- <div>
11
+ `,d=`<h3 id="modal-popover-opened-by-button-click">Modal popover opened by button click</h3>
12
+ `,f=s({default:()=>p}),p={mainContent:u,description:d},m=`<div>
19
13
  <sd-popover no-arrow target-selector="#popover-trigger-area" placement="right-start" trigger-type="hover">
20
14
  <div class="popover-content" style="padding: 8px">
21
15
  <b>Look!</b>
@@ -26,13 +20,13 @@
26
20
  >Hover to open the popover</span
27
21
  >
28
22
  </div>
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},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 p=c.length-1;p>=0;p--){const d=c[p];if(d.href===n&&(!u||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${n}"]${o}`))return;const s=document.createElement("link");if(s.rel=u?"stylesheet":qi,u||(s.as="script"),s.crossOrigin="",s.href=n,m&&s.setAttribute("nonce",m),document.head.appendChild(s),u)return new Promise((p,d)=>{s.addEventListener("load",p),s.addEventListener("error",()=>d(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
- `,Vi=`<h3 id="create-and-access-popover-from-code">Create and access popover from code</h3>
32
- `,Zi=`import "@cas-smartdesign/popover";
23
+ `,h=`<h3 id="tooltip-like-popover">Tooltip-like popover</h3>
24
+ `,g=s({default:()=>_}),_={mainContent:m,description:h},v=`<div id="popover-from-source-container" style="height: 150px"></div>
25
+ `,y=`<h3 id="create-and-access-popover-from-code">Create and access popover from code</h3>
26
+ `,b=`import "@cas-smartdesign/popover";
33
27
  import Popover from "@cas-smartdesign/popover";
34
28
 
35
- const container = document.querySelector("#popover-from-source-container");
29
+ const container = document.querySelector("#popover-from-source-container")!;
36
30
  const closeElement = document.createElement("a");
37
31
  const button = document.createElement("button");
38
32
  const content = document.createElement("div");
@@ -59,45 +53,58 @@ popover.appendChild(content);
59
53
 
60
54
  container.appendChild(button);
61
55
  container.appendChild(popover);
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
- <path d="M0 0l11.96 12L24 0z" fill="#999" class="arrow-border"/>\r
64
- <path d="M12 11L1 0h22z" fill="#f2f2f2" class="arrow-background"/>\r
56
+ `,x=`modulepreload`,S=function(e,t){return new URL(e,t).href},C={},w=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=S(t,n),t in C)return;C[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:x,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},T=s({default:()=>E}),E={mainContent:v,description:y,initializer:{content:b,type:`typescript`,initialize:()=>w(()=>import(`./3_created_from_source.js`),[],import.meta.url)}},D=`bottom`,O=`right`,k=`left`,A=`auto`,j=[`top`,D,O,k],M=`start`,N=`clippingParents`,P=`viewport`,F=`popper`,I=`reference`,L=j.reduce(function(e,t){return e.concat([t+`-`+M,t+`-end`])},[]),R=[].concat(j,[A]).reduce(function(e,t){return e.concat([t,t+`-`+M,t+`-end`])},[]),z=[`beforeRead`,`read`,`afterRead`,`beforeMain`,`main`,`afterMain`,`beforeWrite`,`write`,`afterWrite`];function B(e){return e?(e.nodeName||``).toLowerCase():null}function V(e){if(e==null)return window;if(e.toString()!==`[object Window]`){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function H(e){return e instanceof V(e).Element||e instanceof Element}function U(e){return e instanceof V(e).HTMLElement||e instanceof HTMLElement}function ee(e){return typeof ShadowRoot>`u`?!1:e instanceof V(e).ShadowRoot||e instanceof ShadowRoot}function te(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];!U(i)||!B(i)||(Object.assign(i.style,n),Object.keys(r).forEach(function(e){var t=r[e];t===!1?i.removeAttribute(e):i.setAttribute(e,t===!0?``:t)}))})}function ne(e){var t=e.state,n={popper:{position:t.options.strategy,left:`0`,top:`0`,margin:`0`},arrow:{position:`absolute`},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]=``,e},{});!U(r)||!B(r)||(Object.assign(r.style,a),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}}var re={name:`applyStyles`,enabled:!0,phase:`write`,fn:te,effect:ne,requires:[`computeStyles`]};function W(e){return e.split(`-`)[0]}var G=Math.max,ie=Math.min,ae=Math.round;function oe(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+`/`+e.version}).join(` `):navigator.userAgent}function se(){return!/^((?!chrome|android).)*safari/i.test(oe())}function K(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&U(e)&&(i=e.offsetWidth>0&&ae(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&ae(r.height)/e.offsetHeight||1);var o=(H(e)?V(e):window).visualViewport,s=!se()&&n,c=(r.left+(s&&o?o.offsetLeft:0))/i,l=(r.top+(s&&o?o.offsetTop:0))/a,u=r.width/i,d=r.height/a;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c,x:c,y:l}}function ce(e){var t=K(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function le(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ee(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function q(e){return V(e).getComputedStyle(e)}function ue(e){return[`table`,`td`,`th`].indexOf(B(e))>=0}function J(e){return((H(e)?e.ownerDocument:e.document)||window.document).documentElement}function de(e){return B(e)===`html`?e:e.assignedSlot||e.parentNode||(ee(e)?e.host:null)||J(e)}function Y(e){return!U(e)||q(e).position===`fixed`?null:e.offsetParent}function fe(e){var t=/firefox/i.test(oe());if(/Trident/i.test(oe())&&U(e)&&q(e).position===`fixed`)return null;var n=de(e);for(ee(n)&&(n=n.host);U(n)&&[`html`,`body`].indexOf(B(n))<0;){var r=q(n);if(r.transform!==`none`||r.perspective!==`none`||r.contain===`paint`||[`transform`,`perspective`].indexOf(r.willChange)!==-1||t&&r.willChange===`filter`||t&&r.filter&&r.filter!==`none`)return n;n=n.parentNode}return null}function X(e){for(var t=V(e),n=Y(e);n&&ue(n)&&q(n).position===`static`;)n=Y(n);return n&&(B(n)===`html`||B(n)===`body`&&q(n).position===`static`)?t:n||fe(e)||t}function pe(e){return[`top`,`bottom`].indexOf(e)>=0?`x`:`y`}function me(e,t,n){return G(e,ie(t,n))}function he(e,t,n){var r=me(e,t,n);return r>n?n:r}function ge(){return{top:0,right:0,bottom:0,left:0}}function _e(e){return Object.assign({},ge(),e)}function ve(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var ye=function(e,t){return e=typeof e==`function`?e(Object.assign({},t.rects,{placement:t.placement})):e,_e(typeof e==`number`?ve(e,j):e)};function be(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=W(n.placement),c=pe(s),l=[`left`,`right`].indexOf(s)>=0?`height`:`width`;if(!(!a||!o)){var u=ye(i.padding,n),d=ce(a),f=c===`y`?`top`:k,p=c===`y`?D:O,m=n.rects.reference[l]+n.rects.reference[c]-o[c]-n.rects.popper[l],h=o[c]-n.rects.reference[c],g=X(a),_=g?c===`y`?g.clientHeight||0:g.clientWidth||0:0,v=m/2-h/2,y=u[f],b=_-d[l]-u[p],x=_/2-d[l]/2+v,S=me(y,x,b),C=c;n.modifiersData[r]=(t={},t[C]=S,t.centerOffset=S-x,t)}}function xe(e){var t=e.state,n=e.options.element,r=n===void 0?`[data-popper-arrow]`:n;r!=null&&(typeof r==`string`&&(r=t.elements.popper.querySelector(r),!r)||le(t.elements.popper,r)&&(t.elements.arrow=r))}var Se={name:`arrow`,enabled:!0,phase:`main`,fn:be,effect:xe,requires:[`popperOffsets`],requiresIfExists:[`preventOverflow`]};function Ce(e){return e.split(`-`)[1]}var we={top:`auto`,right:`auto`,bottom:`auto`,left:`auto`};function Te(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:ae(n*i)/i||0,y:ae(r*i)/i||0}}function Ee(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=o.x,p=f===void 0?0:f,m=o.y,h=m===void 0?0:m,g=typeof u==`function`?u({x:p,y:h}):{x:p,y:h};p=g.x,h=g.y;var _=o.hasOwnProperty(`x`),v=o.hasOwnProperty(`y`),y=k,b=`top`,x=window;if(l){var S=X(n),C=`clientHeight`,w=`clientWidth`;if(S===V(n)&&(S=J(n),q(S).position!==`static`&&s===`absolute`&&(C=`scrollHeight`,w=`scrollWidth`)),S=S,i===`top`||(i===`left`||i===`right`)&&a===`end`){b=D;var T=d&&S===x&&x.visualViewport?x.visualViewport.height:S[C];h-=T-r.height,h*=c?1:-1}if(i===`left`||(i===`top`||i===`bottom`)&&a===`end`){y=O;var E=d&&S===x&&x.visualViewport?x.visualViewport.width:S[w];p-=E-r.width,p*=c?1:-1}}var A=Object.assign({position:s},l&&we),j=u===!0?Te({x:p,y:h},V(n)):{x:p,y:h};if(p=j.x,h=j.y,c){var M;return Object.assign({},A,(M={},M[b]=v?`0`:``,M[y]=_?`0`:``,M.transform=(x.devicePixelRatio||1)<=1?`translate(`+p+`px, `+h+`px)`:`translate3d(`+p+`px, `+h+`px, 0)`,M))}return Object.assign({},A,(t={},t[b]=v?h+`px`:``,t[y]=_?p+`px`:``,t.transform=``,t))}function De(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,a=n.adaptive,o=a===void 0?!0:a,s=n.roundOffsets,c=s===void 0?!0:s,l={placement:W(t.placement),variation:Ce(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy===`fixed`};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Ee(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ee(Object.assign({},l,{offsets:t.modifiersData.arrow,position:`absolute`,adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Oe={name:`computeStyles`,enabled:!0,phase:`beforeWrite`,fn:De,data:{}},Z={passive:!0};function ke(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0?!0:i,o=r.resize,s=o===void 0?!0:o,c=V(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(e){e.addEventListener(`scroll`,n.update,Z)}),s&&c.addEventListener(`resize`,n.update,Z),function(){a&&l.forEach(function(e){e.removeEventListener(`scroll`,n.update,Z)}),s&&c.removeEventListener(`resize`,n.update,Z)}}var Ae={name:`eventListeners`,enabled:!0,phase:`write`,fn:function(){},effect:ke,data:{}},je={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Me(e){return e.replace(/left|right|bottom|top/g,function(e){return je[e]})}var Ne={start:`end`,end:`start`};function Pe(e){return e.replace(/start|end/g,function(e){return Ne[e]})}function Fe(e){var t=V(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ie(e){return K(J(e)).left+Fe(e).scrollLeft}function Le(e,t){var n=V(e),r=J(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;var l=se();(l||!l&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s+Ie(e),y:c}}function Re(e){var t=J(e),n=Fe(e),r=e.ownerDocument?.body,i=G(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=G(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),o=-n.scrollLeft+Ie(e),s=-n.scrollTop;return q(r||t).direction===`rtl`&&(o+=G(t.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:o,y:s}}function ze(e){var t=q(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Be(e){return[`html`,`body`,`#document`].indexOf(B(e))>=0?e.ownerDocument.body:U(e)&&ze(e)?e:Be(de(e))}function Ve(e,t){t===void 0&&(t=[]);var n=Be(e),r=n===e.ownerDocument?.body,i=V(n),a=r?[i].concat(i.visualViewport||[],ze(n)?n:[]):n,o=t.concat(a);return r?o:o.concat(Ve(de(a)))}function He(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ue(e,t){var n=K(e,!1,t===`fixed`);return n.top+=e.clientTop,n.left+=e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function We(e,t,n){return t===`viewport`?He(Le(e,n)):H(t)?Ue(t,n):He(Re(J(e)))}function Ge(e){var t=Ve(de(e)),n=[`absolute`,`fixed`].indexOf(q(e).position)>=0&&U(e)?X(e):e;return H(n)?t.filter(function(e){return H(e)&&le(e,n)&&B(e)!==`body`}):[]}function Ke(e,t,n,r){var i=t===`clippingParents`?Ge(e):[].concat(t),a=[].concat(i,[n]),o=a[0],s=a.reduce(function(t,n){var i=We(e,n,r);return t.top=G(i.top,t.top),t.right=ie(i.right,t.right),t.bottom=ie(i.bottom,t.bottom),t.left=G(i.left,t.left),t},We(e,o,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function qe(e){var t=e.reference,n=e.element,r=e.placement,i=r?W(r):null,a=r?Ce(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,c;switch(i){case`top`:c={x:o,y:t.y-n.height};break;case D:c={x:o,y:t.y+t.height};break;case O:c={x:t.x+t.width,y:s};break;case k:c={x:t.x-n.width,y:s};break;default:c={x:t.x,y:t.y}}var l=i?pe(i):null;if(l!=null){var u=l===`y`?`height`:`width`;switch(a){case M:c[l]=c[l]-(t[u]/2-n[u]/2);break;case`end`:c[l]=c[l]+(t[u]/2-n[u]/2);break;default:}}return c}function Je(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,o=a===void 0?e.strategy:a,s=n.boundary,c=s===void 0?N:s,l=n.rootBoundary,u=l===void 0?P:l,d=n.elementContext,f=d===void 0?F:d,p=n.altBoundary,m=p===void 0?!1:p,h=n.padding,g=h===void 0?0:h,_=_e(typeof g==`number`?ve(g,j):g),v=f===`popper`?I:F,y=e.rects.popper,b=e.elements[m?v:f],x=Ke(H(b)?b:b.contextElement||J(e.elements.popper),c,u,o),S=K(e.elements.reference),C=qe({reference:S,element:y,strategy:`absolute`,placement:i}),w=He(Object.assign({},y,C)),T=f===`popper`?w:S,E={top:x.top-T.top+_.top,bottom:T.bottom-x.bottom+_.bottom,left:x.left-T.left+_.left,right:T.right-x.right+_.right},D=e.modifiersData.offset;if(f===`popper`&&D){var O=D[i];Object.keys(E).forEach(function(e){var t=[`right`,`bottom`].indexOf(e)>=0?1:-1,n=[`top`,`bottom`].indexOf(e)>=0?`y`:`x`;E[e]+=O[n]*t})}return E}function Ye(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=c===void 0?R:c,u=Ce(r),d=u?s?L:L.filter(function(e){return Ce(e)===u}):j,f=d.filter(function(e){return l.indexOf(e)>=0});f.length===0&&(f=d);var p=f.reduce(function(t,n){return t[n]=Je(e,{placement:n,boundary:i,rootBoundary:a,padding:o})[W(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}function Xe(e){if(W(e)===`auto`)return[];var t=Me(e);return[Pe(e),t,Pe(t)]}function Ze(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,s=o===void 0?!0:o,c=n.fallbackPlacements,l=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=p===void 0?!0:p,h=n.allowedAutoPlacements,g=t.options.placement,_=W(g)===g,v=c||(_||!m?[Me(g)]:Xe(g)),y=[g].concat(v).reduce(function(e,n){return e.concat(W(n)===`auto`?Ye(t,{placement:n,boundary:u,rootBoundary:d,padding:l,flipVariations:m,allowedAutoPlacements:h}):n)},[]),b=t.rects.reference,x=t.rects.popper,S=new Map,C=!0,w=y[0],T=0;T<y.length;T++){var E=y[T],A=W(E),j=Ce(E)===M,N=[`top`,D].indexOf(A)>=0,P=N?`width`:`height`,F=Je(t,{placement:E,boundary:u,rootBoundary:d,altBoundary:f,padding:l}),I=N?j?O:k:j?D:`top`;b[P]>x[P]&&(I=Me(I));var L=Me(I),R=[];if(a&&R.push(F[A]<=0),s&&R.push(F[I]<=0,F[L]<=0),R.every(function(e){return e})){w=E,C=!1;break}S.set(E,R)}if(C)for(var z=m?3:1,B=function(e){var t=y.find(function(t){var n=S.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return w=t,`break`},V=z;V>0&&B(V)!==`break`;V--);t.placement!==w&&(t.modifiersData[r]._skip=!0,t.placement=w,t.reset=!0)}}var Qe={name:`flip`,enabled:!0,phase:`main`,fn:Ze,requiresIfExists:[`offset`],data:{_skip:!1}};function $e(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function et(e){return[`top`,O,D,k].some(function(t){return e[t]>=0})}function tt(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=Je(t,{elementContext:`reference`}),s=Je(t,{altBoundary:!0}),c=$e(o,r),l=$e(s,i,a),u=et(c),d=et(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}var nt={name:`hide`,enabled:!0,phase:`main`,requiresIfExists:[`preventOverflow`],fn:tt};function rt(e,t,n){var r=W(e),i=[`left`,`top`].indexOf(r)>=0?-1:1,a=typeof n==`function`?n(Object.assign({},t,{placement:e})):n,o=a[0],s=a[1];return o||=0,s=(s||0)*i,[`left`,`right`].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function it(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,o=R.reduce(function(e,n){return e[n]=rt(n,t.rects,a),e},{}),s=o[t.placement],c=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=o}var at={name:`offset`,enabled:!0,phase:`main`,requires:[`popperOffsets`],fn:it};function ot(e){var t=e.state,n=e.name;t.modifiersData[n]=qe({reference:t.rects.reference,element:t.rects.popper,strategy:`absolute`,placement:t.placement})}var st={name:`popperOffsets`,enabled:!0,phase:`read`,fn:ot,data:{}};function ct(e){return e===`x`?`y`:`x`}function lt(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,s=o===void 0?!1:o,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0?!0:f,m=n.tetherOffset,h=m===void 0?0:m,g=Je(t,{boundary:c,rootBoundary:l,padding:d,altBoundary:u}),_=W(t.placement),v=Ce(t.placement),y=!v,b=pe(_),x=ct(b),S=t.modifiersData.popperOffsets,C=t.rects.reference,w=t.rects.popper,T=typeof h==`function`?h(Object.assign({},t.rects,{placement:t.placement})):h,E=typeof T==`number`?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,j={x:0,y:0};if(S){if(a){var M=b===`y`?`top`:k,N=b===`y`?D:O,P=b===`y`?`height`:`width`,F=S[b],I=F+g[M],L=F-g[N],R=p?-w[P]/2:0,z=v===`start`?C[P]:w[P],B=v===`start`?-w[P]:-C[P],V=t.elements.arrow,H=p&&V?ce(V):{width:0,height:0},U=t.modifiersData[`arrow#persistent`]?t.modifiersData[`arrow#persistent`].padding:ge(),ee=U[M],te=U[N],ne=me(0,C[P],H[P]),re=y?C[P]/2-R-ne-ee-E.mainAxis:z-ne-ee-E.mainAxis,ae=y?-C[P]/2+R+ne+te+E.mainAxis:B+ne+te+E.mainAxis,oe=t.elements.arrow&&X(t.elements.arrow),se=oe?b===`y`?oe.clientTop||0:oe.clientLeft||0:0,K=A?.[b]??0,le=F+re-K-se,q=F+ae-K,ue=me(p?ie(I,le):I,F,p?G(L,q):L);S[b]=ue,j[b]=ue-F}if(s){var J=b===`x`?`top`:k,de=b===`x`?D:O,Y=S[x],fe=x===`y`?`height`:`width`,_e=Y+g[J],ve=Y-g[de],ye=[`top`,k].indexOf(_)!==-1,be=A?.[x]??0,xe=ye?_e:Y-C[fe]-w[fe]-be+E.altAxis,Se=ye?Y+C[fe]+w[fe]-be-E.altAxis:ve,we=p&&ye?he(xe,Y,Se):me(p?xe:_e,Y,p?Se:ve);S[x]=we,j[x]=we-Y}t.modifiersData[r]=j}}var ut={name:`preventOverflow`,enabled:!0,phase:`main`,fn:lt,requiresIfExists:[`offset`]};function dt(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function ft(e){return e===V(e)||!U(e)?Fe(e):dt(e)}function pt(e){var t=e.getBoundingClientRect(),n=ae(t.width)/e.offsetWidth||1,r=ae(t.height)/e.offsetHeight||1;return n!==1||r!==1}function mt(e,t,n){n===void 0&&(n=!1);var r=U(t),i=U(t)&&pt(t),a=J(t),o=K(e,i,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((B(t)!==`body`||ze(a))&&(s=ft(t)),U(t)?(c=K(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=Ie(a))),{x:o.left+s.scrollLeft-c.x,y:o.top+s.scrollTop-c.y,width:o.width,height:o.height}}function ht(e){var t=new Map,n=new Set,r=[];e.forEach(function(e){t.set(e.name,e)});function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}}),r.push(e)}return e.forEach(function(e){n.has(e.name)||i(e)}),r}function gt(e){var t=ht(e);return z.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}function _t(e){var t;return function(){return t||=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})}),t}}function vt(e){var t=e.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}var yt={placement:`bottom`,modifiers:[],strategy:`absolute`};function bt(){return![...arguments].some(function(e){return!(e&&typeof e.getBoundingClientRect==`function`)})}function xt(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,a=i===void 0?yt:i;return function(e,t,n){n===void 0&&(n=a);var i={placement:`bottom`,orderedModifiers:[],options:Object.assign({},yt,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},o=[],s=!1,c={state:i,setOptions:function(n){var o=typeof n==`function`?n(i.options):n;u(),i.options=Object.assign({},a,i.options,o),i.scrollParents={reference:H(e)?Ve(e):e.contextElement?Ve(e.contextElement):[],popper:Ve(t)};var s=gt(vt([].concat(r,i.options.modifiers)));return i.orderedModifiers=s.filter(function(e){return e.enabled}),l(),c.update()},forceUpdate:function(){if(!s){var e=i.elements,t=e.reference,n=e.popper;if(bt(t,n)){i.rects={reference:mt(t,X(n),i.options.strategy===`fixed`),popper:ce(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach(function(e){return i.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<i.orderedModifiers.length;r++){if(i.reset===!0){i.reset=!1,r=-1;continue}var a=i.orderedModifiers[r],o=a.fn,l=a.options,u=l===void 0?{}:l,d=a.name;typeof o==`function`&&(i=o({state:i,options:u,name:d,instance:c})||i)}}}},update:_t(function(){return new Promise(function(e){c.forceUpdate(),e(i)})}),destroy:function(){u(),s=!0}};if(!bt(e,t))return c;c.setOptions(n).then(function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)});function l(){i.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=n===void 0?{}:n,a=e.effect;if(typeof a==`function`){var s=a({state:i,name:t,instance:c,options:r});o.push(s||function(){})}})}function u(){o.forEach(function(e){return e()}),o=[]}return c}}var St=xt({defaultModifiers:[Ae,st,Oe,re,at,Qe,ut,Se,nt]}),Ct=1,wt=`sd-popover-open`,Tt=0,Et=()=>(Tt++,Tt),Dt=class e extends HTMLElement{constructor(...e){super(...e),this.popoverContainerId=`popover-container-`+Et(),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=>{let t=e.target;(!(t instanceof HTMLElement)||this._container==null||this.targetElement==null||!this._container.contains(t)&&!this.targetElement.contains(t))&&this.hide()},this.handleTabKeyDown=e=>{if(e.key!==`Tab`)return;let t=e.shiftKey,n=null,r=e.target,i=this.content;r instanceof HTMLElement&&i&&(n=this.findNextFocusableAfter(r,i,!t)),!n&&(e.preventDefault(),this.open=!1,this.findNextFocusableAfter(this.targetElement,null,!t)?.focus())}}static{this.ID=`sd-popover`}static{this.ensureDefined=()=>{customElements.get(e.ID)||customElements.define(e.ID,e)}}get triggerType(){return this.getAttribute(`trigger-type`)}set triggerType(e){e?this.setAttribute(`trigger-type`,e):this.removeAttribute(`trigger-type`)}get arrowSvg(){return this.getAttribute(`arrow-svg`)||`<svg width="26" height="12" viewBox="0 0 26 12" fill="none" xmlns="http://www.w3.org/2000/svg">\r
57
+ <path d="M13.7072 0.707031L0.707153 0.707031L9.87873 9.8786C11.4408 11.4407 13.9735 11.4407 15.5356 9.8786L24.7072 0.707031L13.7072 0.707031Z" fill="var(--color-bg-default, #ffffff)" class="arrow-background"/>\r
58
+ <path d="M0.707153 0.707031L9.87872 9.8786C11.4408 11.4407 13.9735 11.4407 15.5356 9.8786L24.7072 0.707031" stroke="var(--color-border-strong, #B3B3B3)" stroke-linecap="square" class="arrow-border"/>\r
65
59
  </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()},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 arrowSvg(){return this.getAttribute("arrow-svg")||no}set arrowSvg(e){e?this.setAttribute("arrow-svg",e):this.removeAttribute("arrow-svg"),this._arrow&&(this._arrow.innerHTML=this.arrowSvg)}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=this.arrowSvg}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");const i=this._arrow.querySelector(".arrow-background");i&&(i.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
- 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"),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=`
60
+ `}set arrowSvg(e){e?this.setAttribute(`arrow-svg`,e):this.removeAttribute(`arrow-svg`),this._arrow&&(this._arrow.innerHTML=this.arrowSvg)}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=void 0,this.reConfigurePopper()}get offset(){return this.getAttribute(`offset`)?parseInt(this.getAttribute(`offset`)??`0`):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,t){switch(e){case`placement`:this.updatePopper();break;case`trigger-type`:this.removeTargetEventListener(this.targetElement),this.addTargetEventListener(this.targetElement);break;case`target-selector`:this.handleTargetSelectorChange(t);break}}connectedCallback(){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=this.arrowSvg}disconnectedCallback(){this.targetElement&&(this.removeTargetEventListener(this.targetElement),this.removeTargetClassForOpen(this.targetElement)),this._resizeObserver&&=(this._resizeObserver.disconnect(),void 0)}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(){if(this.open){if(this._popper||this.configurePopper(),this._container==null)return;this._container.innerHTML=``;let e=document.createElement(`style`);e.innerHTML=`#${this.popoverContainerId} {
61
+ box-shadow: var(--effect-shadow-strong, 1px 4px 24px 0 rgba(17, 17, 17, 0.5));
62
+ border: 1px solid var(--color-border-strong, #B3B3B3);
63
+ border-radius: var(--radius-s, 4px);
64
+ box-sizing: border-box;
65
+ z-index: 20000;
66
+
67
+ > *:not(.popover-arrow) {
68
+ border-radius: var(--radius-s, 4px);
69
+ clip-path: inset(0 round var(--radius-s, 4px));
70
+ }
71
+ }`,this._container.appendChild(e),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;if(e==`rgba(0, 0, 0, 0)`&&(this.content.style.background=e=`var(--color-bg-default, #ffffff)`),!this._arrow)return;let t=this._arrow.querySelector(`.arrow-background`);t&&(t.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(`sd-popover-open`)),this._container.addEventListener(`keydown`,this.handleTabKeyDown)}else this._container!=null&&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(`sd-popover-close`)),this._container!=null&&this._container.removeEventListener(`keydown`,this.handleTabKeyDown)}handleTargetSelectorChange(e){if(e!=null){let t=document.querySelector(e);t&&(this.removeTargetEventListener(t),this.removeTargetClassForOpen(t))}if(this.targetSelector){let e=document.querySelector(this.targetSelector);e instanceof HTMLElement&&(this.targetElement=e),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();let e=this,t={placement:e.placement,strategy:`absolute`,modifiers:[{name:`computeStyles`,options:{gpuAcceleration:!0}},{name:`flip`,options:{fallbackPlacements:e._flipPriority}},{name:`offset`,options:{offset:()=>[0,e.noArrow?0+e.offset:this._arrow?.clientHeight??0+e.offset]}},{name:`arrow`,options:{padding:10}},{name:`resetArrowStyles`,enabled:!0,phase:`beforeWrite`,fn({state:t}){e._arrow&&t.styles.arrow&&Object.assign(e._arrow.style,{top:t.styles.arrow.top||``,left:t.styles.arrow.left||``,bottom:t.styles.arrow.bottom||``,right:t.styles.arrow.right||``})}},{name:`onUpdate`,enabled:!0,phase:`afterWrite`,fn({state:t}){e.updateArrow(t.placement)}}]};this._popper=St(this.targetElement,this._container,t)}createContentContainer(){this._container=document.createElement(`div`),this._container.id=this.popoverContainerId,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)}ensureArrowIsAdded(){this._container&&this._arrow&&!this.noArrow&&!this._container.contains(this._arrow)&&this._container.appendChild(this._arrow)}updatePopper(){this._popper&&(this._popper.state.elements.reference=this.targetElement??document.body,this._popper.state.options.placement=this.placement,this.open&&this._popper.update())}updateArrow(e){if(this._arrow){let t=this.getArrowVariant(e);if(this._arrow.setAttribute(`variant`,t),this._content){let e=this._arrow.querySelector(`svg`),n=this._arrow.clientWidth,r=this._arrow.clientHeight,i=`-${r-Ct}px`,a=`-${r+(n-r)/2-Ct}px`;switch(t){case`bottom`:this._arrow.style.top=i,e.style.transform=`rotate(180deg)`;break;case`top`:this._arrow.style.bottom=i,e.style.transform=`rotate(0deg)`;break;case`left`:this._arrow.style.right=a,e.style.transform=`rotate(270deg)`;break;case`right`:this._arrow.style.left=a,e.style.transform=`rotate(90deg)`;break}}}}getArrowVariant(e){return e.indexOf(`bottom`)===-1?e.indexOf(`top`)===-1?e.indexOf(`left`)===-1?e.indexOf(`right`)===-1?`bottom`:`right`:`left`:`top`:`bottom`}get content(){return this._content||(this._content=this.firstElementChild,this._content.setAttribute(`data-popper-content`,``)),this._content}addTargetClassForOpen(e){e&&e.classList.add(wt)}removeTargetClassForOpen(e){e&&e.classList.remove(wt)}findNextFocusableAfter(e,t,n){if(!e)return null;let r=t??document.body,i=document.createTreeWalker(r,NodeFilter.SHOW_ELEMENT,{acceptNode(e){let t=e;return t.tabIndex>=0&&!t.hidden&&t.offsetParent!==null?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return i.currentNode=e,n?i.nextNode():i.previousNode()}};Dt.ensureDefined();var Ot=o(((e,t)=>{var n=String,r=function(){return{isColorSupported:!1,reset:n,bold:n,dim:n,italic:n,underline:n,inverse:n,hidden:n,strikethrough:n,black:n,red:n,green:n,yellow:n,blue:n,magenta:n,cyan:n,white:n,gray:n,bgBlack:n,bgRed:n,bgGreen:n,bgYellow:n,bgBlue:n,bgMagenta:n,bgCyan:n,bgWhite:n,blackBright:n,redBright:n,greenBright:n,yellowBright:n,blueBright:n,magentaBright:n,cyanBright:n,whiteBright:n,bgBlackBright:n,bgRedBright:n,bgGreenBright:n,bgYellowBright:n,bgBlueBright:n,bgMagentaBright:n,bgCyanBright:n,bgWhiteBright:n}};t.exports=r(),t.exports.createColors=r})),Q=o(((e,t)=>{t.exports={}})),kt=o(((e,t)=>{var n=Ot(),r=Q(),i=class e extends Error{constructor(t,n,r,i,a,o){super(t),this.name=`CssSyntaxError`,this.reason=t,a&&(this.file=a),i&&(this.source=i),o&&(this.plugin=o),n!==void 0&&r!==void 0&&(typeof n==`number`?(this.line=n,this.column=r):(this.line=n.line,this.column=n.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,e)}setMessage(){this.message=this.plugin?this.plugin+`: `:``,this.message+=this.file?this.file:`<css input>`,this.line!==void 0&&(this.message+=`:`+this.line+`:`+this.column),this.message+=`: `+this.reason}showSourceCode(e){if(!this.source)return``;let t=this.source;e??=n.isColorSupported;let i=e=>e,a=e=>e,o=e=>e;if(e){let{bold:e,gray:t,red:s}=n.createColors(!0);a=t=>e(s(t)),i=e=>t(e),r&&(o=e=>r(e))}let s=t.split(/\r?\n/),c=Math.max(this.line-3,0),l=Math.min(this.line+2,s.length),u=String(l).length;return s.slice(c,l).map((e,t)=>{let n=c+1+t,r=` `+(` `+n).slice(-u)+` | `;if(n===this.line){if(e.length>160){let t=Math.max(0,this.column-20),n=Math.max(this.column+20,this.endColumn+20),s=e.slice(t,n),c=i(r.replace(/\d/g,` `))+e.slice(0,Math.min(this.column-1,19)).replace(/[^\t]/g,` `);return a(`>`)+i(r)+o(s)+`
72
+ `+c+a(`^`)}let t=i(r.replace(/\d/g,` `))+e.slice(0,this.column-1).replace(/[^\t]/g,` `);return a(`>`)+i(r)+o(e)+`
73
+ `+t+a(`^`)}return` `+i(r)+o(e)}).join(`
74
+ `)}toString(){let e=this.showSourceCode();return e&&=`
72
75
 
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:`
76
+ `+e+`
77
+ `,this.name+`: `+this.message+e}};t.exports=i,i.default=i})),At=o(((e,t)=>{var n={after:`
75
78
  `,beforeClose:`
76
79
  `,beforeComment:`
77
80
  `,beforeDecl:`
78
- `,beforeOpen:" ",beforeRule:`
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=`
81
+ `,beforeOpen:` `,beforeRule:`
82
+ `,colon:`: `,commentLeft:` `,commentRight:` `,emptyBody:``,indent:` `,semicolon:!1};function r(e){return e[0].toUpperCase()+e.slice(1)}var i=class{constructor(e){this.builder=e}atrule(e,t){let n=`@`+e.name,r=e.params?this.rawValue(e,`params`):``;if(e.raws.afterName===void 0?r&&(n+=` `):n+=e.raws.afterName,e.nodes)this.block(e,n+r);else{let i=(e.raws.between||``)+(t?`;`:``);this.builder(n+r+i,e)}}beforeAfter(e,t){let n;n=e.type===`decl`?this.raw(e,null,`beforeDecl`):e.type===`comment`?this.raw(e,null,`beforeComment`):t===`before`?this.raw(e,null,`beforeRule`):this.raw(e,null,`beforeClose`);let r=e.parent,i=0;for(;r&&r.type!==`root`;)i+=1,r=r.parent;if(n.includes(`
83
+ `)){let t=this.raw(e,null,`indent`);if(t.length)for(let e=0;e<i;e++)n+=t}return n}block(e,t){let n=this.raw(e,`between`,`beforeOpen`);this.builder(t+n+`{`,e,`start`);let r;e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,`after`)):r=this.raw(e,`after`,`emptyBody`),r&&this.builder(r),this.builder(`}`,e,`end`)}body(e){let t=e.nodes.length-1;for(;t>0&&e.nodes[t].type===`comment`;)--t;let n=this.raw(e,`semicolon`);for(let r=0;r<e.nodes.length;r++){let i=e.nodes[r],a=this.raw(i,`before`);a&&this.builder(a),this.stringify(i,t!==r||n)}}comment(e){let t=this.raw(e,`left`,`commentLeft`),n=this.raw(e,`right`,`commentRight`);this.builder(`/*`+t+e.text+n+`*/`,e)}decl(e,t){let n=this.raw(e,`between`,`colon`),r=e.prop+n+this.rawValue(e,`value`);e.important&&(r+=e.raws.important||` !important`),t&&(r+=`;`),this.builder(r,e)}document(e){this.body(e)}raw(e,t,i){let a;if(i||=t,t&&(a=e.raws[t],a!==void 0))return a;let o=e.parent;if(i===`before`&&(!o||o.type===`root`&&o.first===e||o&&o.type===`document`))return``;if(!o)return n[i];let s=e.root();if(s.rawCache||={},s.rawCache[i]!==void 0)return s.rawCache[i];if(i===`before`||i===`after`)return this.beforeAfter(e,i);{let n=`raw`+r(i);this[n]?a=this[n](s,e):s.walk(e=>{if(a=e.raws[t],a!==void 0)return!1})}return a===void 0&&(a=n[i]),s.rawCache[i]=a,a}rawBeforeClose(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length>0&&e.raws.after!==void 0)return t=e.raws.after,t.includes(`
84
+ `)&&(t=t.replace(/[^\n]+$/,``)),!1}),t&&=t.replace(/\S/g,``),t}rawBeforeComment(e,t){let n;return e.walkComments(e=>{if(e.raws.before!==void 0)return n=e.raws.before,n.includes(`
85
+ `)&&(n=n.replace(/[^\n]+$/,``)),!1}),n===void 0?n=this.raw(t,null,`beforeDecl`):n&&=n.replace(/\S/g,``),n}rawBeforeDecl(e,t){let n;return e.walkDecls(e=>{if(e.raws.before!==void 0)return n=e.raws.before,n.includes(`
86
+ `)&&(n=n.replace(/[^\n]+$/,``)),!1}),n===void 0?n=this.raw(t,null,`beforeRule`):n&&=n.replace(/\S/g,``),n}rawBeforeOpen(e){let t;return e.walk(e=>{if(e.type!==`decl`&&(t=e.raws.between,t!==void 0))return!1}),t}rawBeforeRule(e){let t;return e.walk(n=>{if(n.nodes&&(n.parent!==e||e.first!==n)&&n.raws.before!==void 0)return t=n.raws.before,t.includes(`
87
+ `)&&(t=t.replace(/[^\n]+$/,``)),!1}),t&&=t.replace(/\S/g,``),t}rawColon(e){let t;return e.walkDecls(e=>{if(e.raws.between!==void 0)return t=e.raws.between.replace(/[^\s:]/g,``),!1}),t}rawEmptyBody(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length===0&&(t=e.raws.after,t!==void 0))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(n=>{let r=n.parent;if(r&&r!==e&&r.parent&&r.parent===e&&n.raws.before!==void 0){let e=n.raws.before.split(`
88
+ `);return t=e[e.length-1],t=t.replace(/\S/g,``),!1}}),t}rawSemicolon(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length&&e.last.type===`decl`&&(t=e.raws.semicolon,t!==void 0))return!1}),t}rawValue(e,t){let n=e[t],r=e.raws[t];return r&&r.value===n?r.raw:n}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,`selector`)),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,`end`)}stringify(e,t){if(!this[e.type])throw Error(`Unknown AST node type `+e.type+`. Maybe you need to change PostCSS stringifier.`);this[e.type](e,t)}};t.exports=i,i.default=i})),jt=o(((e,t)=>{var n=At();function r(e,t){new n(t).stringify(e)}t.exports=r,r.default=r})),Mt=o(((e,t)=>{t.exports.isClean=Symbol(`isClean`),t.exports.my=Symbol(`my`)})),Nt=o(((e,t)=>{var n=kt(),r=At(),i=jt(),{isClean:a,my:o}=Mt();function s(e,t){let n=new e.constructor;for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r)||r===`proxyCache`)continue;let i=e[r],a=typeof i;r===`parent`&&a===`object`?t&&(n[r]=t):r===`source`?n[r]=i:Array.isArray(i)?n[r]=i.map(e=>s(e,n)):(a===`object`&&i!==null&&(i=s(i)),n[r]=i)}return n}function c(e,t){if(t&&t.offset!==void 0)return t.offset;let n=1,r=1,i=0;for(let a=0;a<e.length;a++){if(r===t.line&&n===t.column){i=a;break}e[a]===`
89
+ `?(n=1,r+=1):n+=1}return i}var l=class{get proxyOf(){return this}constructor(e={}){this.raws={},this[a]=!1,this[o]=!0;for(let t in e)if(t===`nodes`){this.nodes=[];for(let n of e[t])typeof n.clone==`function`?this.append(n.clone()):this.append(n)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=s(this);for(let n in e)t[n]=e[n];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:n,start:r}=this.rangeBy(t);return this.source.input.error(e,{column:r.column,line:r.line},{column:n.column,line:n.line},t)}return new n(e)}getProxyProcessor(){return{get(e,t){return t===`proxyOf`?e:t===`root`?()=>e.root().toProxy():e[t]},set(e,t,n){return e[t]===n?!0:(e[t]=n,(t===`prop`||t===`value`||t===`name`||t===`params`||t===`important`||t===`text`)&&e.markDirty(),!0)}}}markClean(){this[a]=!0}markDirty(){if(this[a]){this[a]=!1;let e=this;for(;e=e.parent;)e[a]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e={}){let t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){let n=`document`in this.source.input?this.source.input.document:this.source.input.css,r=n.slice(c(n,this.source.start),c(n,this.source.end)).indexOf(e.word);r!==-1&&(t=this.positionInside(r))}return t}positionInside(e){let t=this.source.start.column,n=this.source.start.line,r=`document`in this.source.input?this.source.input.document:this.source.input.css,i=c(r,this.source.start),a=i+e;for(let e=i;e<a;e++)r[e]===`
90
+ `?(t=1,n+=1):t+=1;return{column:t,line:n,offset:a}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e={}){let t=`document`in this.source.input?this.source.input.document:this.source.input.css,n={column:this.source.start.column,line:this.source.start.line,offset:c(t,this.source.start)},r=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(t,this.source.end)+1}:{column:n.column+1,line:n.line,offset:n.offset+1};if(e.word){let i=t.slice(c(t,this.source.start),c(t,this.source.end)).indexOf(e.word);i!==-1&&(n=this.positionInside(i),r=this.positionInside(i+e.word.length))}else e.start?n={column:e.start.column,line:e.start.line,offset:c(t,e.start)}:e.index&&(n=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line,offset:c(t,e.end)}:typeof e.endIndex==`number`?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<n.line||r.line===n.line&&r.column<=n.column)&&(r={column:n.column+1,line:n.line,offset:n.offset+1}),{end:r,start:n}}raw(e,t){return new r().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,n=!1;for(let r of e)r===this?n=!0:n?(this.parent.insertAfter(t,r),t=r):this.parent.insertBefore(t,r);n||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!==`document`;)e=e.parent;return e}toJSON(e,t){let n={},r=t==null;t||=new Map;let i=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e)||e===`parent`||e===`proxyCache`)continue;let r=this[e];if(Array.isArray(r))n[e]=r.map(e=>typeof e==`object`&&e.toJSON?e.toJSON(null,t):e);else if(typeof r==`object`&&r.toJSON)n[e]=r.toJSON(null,t);else if(e===`source`){if(r==null)continue;let a=t.get(r.input);a??(a=i,t.set(r.input,i),i++),n[e]={end:r.end,inputId:a,start:r.start}}else n[e]=r}return r&&(n.inputs=[...t.keys()].map(e=>e.toJSON())),n}toProxy(){return this.proxyCache||=new Proxy(this,this.getProxyProcessor()),this.proxyCache}toString(e=i){e.stringify&&(e=e.stringify);let t=``;return e(this,e=>{t+=e}),t}warn(e,t,n={}){let r={node:this};for(let e in n)r[e]=n[e];return e.warn(t,r)}};t.exports=l,l.default=l})),Pt=o(((e,t)=>{var n=Nt(),r=class extends n{constructor(e){super(e),this.type=`comment`}};t.exports=r,r.default=r})),Ft=o(((e,t)=>{var n=Nt(),r=class extends n{get variable(){return this.prop.startsWith(`--`)||this.prop[0]===`$`}constructor(e){e&&e.value!==void 0&&typeof e.value!=`string`&&(e={...e,value:String(e.value)}),super(e),this.type=`decl`}};t.exports=r,r.default=r})),It=o(((e,t)=>{var n=Pt(),r=Ft(),i=Nt(),{isClean:a,my:o}=Mt(),s,c,l,u;function d(e){return e.map(e=>(e.nodes&&=d(e.nodes),delete e.source,e))}function f(e){if(e[a]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)f(t)}var p=class e 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(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),n,r;for(;this.indexes[t]<this.proxyOf.nodes.length&&(n=this.indexes[t],r=e(this.proxyOf.nodes[n],n),r!==!1);)this.indexes[t]+=1;return delete this.indexes[t],r}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||=0,this.indexes||={},this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return t===`proxyOf`?e:e[t]?t===`each`||typeof t==`string`&&t.startsWith(`walk`)?(...n)=>e[t](...n.map(e=>typeof e==`function`?(t,n)=>e(t.toProxy(),n):e)):t===`every`||t===`some`?n=>e[t]((e,...t)=>n(e.toProxy(),...t)):t===`root`?()=>e.root().toProxy():t===`nodes`?e.nodes.map(e=>e.toProxy()):t===`first`||t===`last`?e[t].toProxy():e[t]:e[t]},set(e,t,n){return e[t]===n?!0:(e[t]=n,(t===`name`||t===`params`||t===`selector`)&&e.markDirty(),!0)}}}index(e){return typeof e==`number`?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let n=this.index(e),r=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let e of r)this.proxyOf.nodes.splice(n+1,0,e);let i;for(let e in this.indexes)i=this.indexes[e],n<i&&(this.indexes[e]=i+r.length);return this.markDirty(),this}insertBefore(e,t){let n=this.index(e),r=n===0?`prepend`:!1,i=this.normalize(t,this.proxyOf.nodes[n],r).reverse();n=this.index(e);for(let e of i)this.proxyOf.nodes.splice(n,0,e);let a;for(let e in this.indexes)a=this.indexes[e],n<=a&&(this.indexes[e]=a+i.length);return this.markDirty(),this}normalize(t,i){if(typeof t==`string`)t=d(c(t).nodes);else if(t===void 0)t=[];else if(Array.isArray(t)){t=t.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,`ignore`)}else if(t.type===`root`&&this.type!==`document`){t=t.nodes.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,`ignore`)}else if(t.type)t=[t];else if(t.prop){if(t.value===void 0)throw Error(`Value field is missed in node creation`);typeof t.value!=`string`&&(t.value=String(t.value)),t=[new r(t)]}else if(t.selector||t.selectors)t=[new u(t)];else if(t.name)t=[new s(t)];else if(t.text)t=[new n(t)];else throw Error(`Unknown node type in node creation`);return t.map(t=>(t[o]||e.rebuild(t),t=t.proxyOf,t.parent&&t.parent.removeChild(t),t[a]&&f(t),t.raws||={},t.raws.before===void 0&&i&&i.raws.before!==void 0&&(t.raws.before=i.raws.before.replace(/\S/g,``)),t.parent=this.proxyOf,t))}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,`prepend`).reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}replaceValues(e,t,n){return n||(n=t,t={}),this.walkDecls(r=>{t.props&&!t.props.includes(r.prop)||t.fast&&!r.value.includes(t.fast)||(r.value=r.value.replace(e,n))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,n)=>{let r;try{r=e(t,n)}catch(e){throw t.addToError(e)}return r!==!1&&t.walk&&(r=t.walk(e)),r})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if(n.type===`atrule`&&e.test(n.name))return t(n,r)}):this.walk((n,r)=>{if(n.type===`atrule`&&n.name===e)return t(n,r)}):(t=e,this.walk((e,n)=>{if(e.type===`atrule`)return t(e,n)}))}walkComments(e){return this.walk((t,n)=>{if(t.type===`comment`)return e(t,n)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if(n.type===`decl`&&e.test(n.prop))return t(n,r)}):this.walk((n,r)=>{if(n.type===`decl`&&n.prop===e)return t(n,r)}):(t=e,this.walk((e,n)=>{if(e.type===`decl`)return t(e,n)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if(n.type===`rule`&&e.test(n.selector))return t(n,r)}):this.walk((n,r)=>{if(n.type===`rule`&&n.selector===e)return t(n,r)}):(t=e,this.walk((e,n)=>{if(e.type===`rule`)return t(e,n)}))}};p.registerParse=e=>{c=e},p.registerRule=e=>{u=e},p.registerAtRule=e=>{s=e},p.registerRoot=e=>{l=e},t.exports=p,p.default=p,p.rebuild=e=>{e.type===`atrule`?Object.setPrototypeOf(e,s.prototype):e.type===`rule`?Object.setPrototypeOf(e,u.prototype):e.type===`decl`?Object.setPrototypeOf(e,r.prototype):e.type===`comment`?Object.setPrototypeOf(e,n.prototype):e.type===`root`&&Object.setPrototypeOf(e,l.prototype),e[o]=!0,e.nodes&&e.nodes.forEach(e=>{p.rebuild(e)})}})),Lt=o(((e,t)=>{var n=It(),r=class extends n{constructor(e){super(e),this.type=`atrule`}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};t.exports=r,r.default=r,n.registerAtRule(r)})),Rt=o(((e,t)=>{var n=It(),r,i,a=class extends n{constructor(e){super({type:`document`,...e}),this.nodes||=[]}toResult(e={}){return new r(new i,this,e).stringify()}};a.registerLazyResult=e=>{r=e},a.registerProcessor=e=>{i=e},t.exports=a,a.default=a})),zt=o(((e,t)=>{var n=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`;t.exports={nanoid:(e=21)=>{let t=``,r=e|0;for(;r--;)t+=n[Math.random()*64|0];return t},customAlphabet:(e,t=21)=>(n=t)=>{let r=``,i=n|0;for(;i--;)r+=e[Math.random()*e.length|0];return r}}})),Bt=o(((e,t)=>{var{existsSync:n,readFileSync:r}=Q(),{dirname:i,join:a}=Q(),{SourceMapConsumer:o,SourceMapGenerator:s}=Q();function c(e){return Buffer?Buffer.from(e,`base64`).toString():window.atob(e)}var l=class{constructor(e,t){if(t.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,`data:`);let n=t.map?t.map.prev:void 0,r=this.loadMap(t.from,n);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=i(this.mapFile)),r&&(this.text=r)}consumer(){return this.consumerCache||=new o(this.text),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,n=/^data:application\/json;base64,/,r=e.match(/^data:application\/json;charset=utf-?8,/)||e.match(/^data:application\/json,/);if(r)return decodeURIComponent(e.substr(r[0].length));let i=e.match(t)||e.match(n);if(i)return c(e.substr(i[0].length));let a=e.match(/data:application\/json;([^,]+),/)[1];throw Error(`Unsupported source map encoding `+a)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,``).trim()}isMap(e){return typeof e==`object`?typeof e.mappings==`string`||typeof e._mappings==`string`||Array.isArray(e.sections):!1}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/g);if(!t)return;let n=e.lastIndexOf(t.pop()),r=e.indexOf(`*/`,n);n>-1&&r>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,r)))}loadFile(e){if(this.root=i(e),n(e))return this.mapFile=e,r(e,`utf-8`).toString().trim()}loadMap(e,t){if(t===!1)return!1;if(t){if(typeof t==`string`)return t;if(typeof t==`function`){let n=t(e);if(n){let e=this.loadFile(n);if(!e)throw Error(`Unable to load previous source map: `+n.toString());return e}}else if(t instanceof o)return s.fromSourceMap(t).toString();else if(t instanceof s)return t.toString();else if(this.isMap(t))return JSON.stringify(t);else throw Error(`Unsupported previous source map format: `+t.toString())}else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){let t=this.annotation;return e&&(t=a(i(e),t)),this.loadFile(t)}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};t.exports=l,l.default=l})),Vt=o(((e,t)=>{var{nanoid:n}=zt(),{isAbsolute:r,resolve:i}=Q(),{SourceMapConsumer:a,SourceMapGenerator:o}=Q(),{fileURLToPath:s,pathToFileURL:c}=Q(),l=kt(),u=Bt(),d=Q(),f=Symbol(`lineToIndexCache`),p=!!(a&&o),m=!!(i&&r);function h(e){if(e[f])return e[f];let t=e.css.split(`
91
+ `),n=Array(t.length),r=0;for(let e=0,i=t.length;e<i;e++)n[e]=r,r+=t[e].length+1;return e[f]=n,n}var g=class{get from(){return this.file||this.id}constructor(e,t={}){if(e==null||typeof e==`object`&&!e.toString)throw Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]===``||this.css[0]===`￾`?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,t.document&&(this.document=t.document.toString()),t.from&&(!m||/^\w+:\/\//.test(t.from)||r(t.from)?this.file=t.from:this.file=i(t.from)),m&&p){let e=new u(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id=`<input css `+n(6)+`>`),this.map&&(this.map.file=this.from)}error(e,t,n,r={}){let i,a,o,s,u;if(t&&typeof t==`object`){let e=t,r=n;if(typeof e.offset==`number`){s=e.offset;let r=this.fromOffset(s);t=r.line,n=r.col}else t=e.line,n=e.column,s=this.fromLineAndColumn(t,n);if(typeof r.offset==`number`){o=r.offset;let e=this.fromOffset(o);a=e.line,i=e.col}else a=r.line,i=r.column,o=this.fromLineAndColumn(r.line,r.column)}else if(n)s=this.fromLineAndColumn(t,n);else{s=t;let e=this.fromOffset(s);t=e.line,n=e.col}let d=this.origin(t,n,a,i);return u=d?new l(e,d.endLine===void 0?d.line:{column:d.column,line:d.line},d.endLine===void 0?d.column:{column:d.endColumn,line:d.endLine},d.source,d.file,r.plugin):new l(e,a===void 0?t:{column:n,line:t},a===void 0?n:{column:i,line:a},this.css,this.file,r.plugin),u.input={column:n,endColumn:i,endLine:a,endOffset:o,line:t,offset:s,source:this.css},this.file&&(c&&(u.input.url=c(this.file).toString()),u.input.file=this.file),u}fromLineAndColumn(e,t){return h(this)[e-1]+t-1}fromOffset(e){let t=h(this),n=t[t.length-1],r=0;if(e>=n)r=t.length-1;else{let n=t.length-2,i;for(;r<n;)if(i=r+(n-r>>1),e<t[i])n=i-1;else if(e>=t[i+1])r=i+1;else{r=i;break}}return{col:e-t[r]+1,line:r+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:i(this.map.consumer().sourceRoot||this.map.root||`.`,e)}origin(e,t,n,i){if(!this.map)return!1;let a=this.map.consumer(),o=a.originalPositionFor({column:t,line:e});if(!o.source)return!1;let l;typeof n==`number`&&(l=a.originalPositionFor({column:i,line:n}));let u;u=r(o.source)?c(o.source):new URL(o.source,this.map.consumer().sourceRoot||c(this.map.mapFile));let d={column:o.column,endColumn:l&&l.column,endLine:l&&l.line,line:o.line,url:u.toString()};if(u.protocol===`file:`)if(s)d.file=s(u);else throw Error(`file: protocol is not available in this PostCSS build`);let f=a.sourceContentFor(o.source);return f&&(d.source=f),d}toJSON(){let e={};for(let t of[`hasBOM`,`css`,`file`,`id`])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};t.exports=g,g.default=g,d&&d.registerInput&&d.registerInput(g)})),Ht=o(((e,t)=>{var n=It(),r,i,a=class extends n{constructor(e){super(e),this.type=`root`,this.nodes||=[]}normalize(e,t,n){let r=super.normalize(e);if(t){if(n===`prepend`)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of r)e.raws.before=t.raws.before}return r}removeChild(e,t){let n=this.index(e);return!t&&n===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(e={}){return new r(new i,this,e).stringify()}};a.registerLazyResult=e=>{r=e},a.registerProcessor=e=>{i=e},t.exports=a,a.default=a,n.registerRoot(a)})),Ut=o(((e,t)=>{var n={comma(e){return n.split(e,[`,`],!0)},space(e){return n.split(e,[` `,`
92
+ `,` `])},split(e,t,n){let r=[],i=``,a=!1,o=0,s=!1,c=``,l=!1;for(let n of e)l?l=!1:n===`\\`?l=!0:s?n===c&&(s=!1):n===`"`||n===`'`?(s=!0,c=n):n===`(`?o+=1:n===`)`?o>0&&--o:o===0&&t.includes(n)&&(a=!0),a?(i!==``&&r.push(i.trim()),i=``,a=!1):i+=n;return(n||i!==``)&&r.push(i.trim()),r}};t.exports=n,n.default=n})),Wt=o(((e,t)=>{var n=It(),r=Ut(),i=class extends n{get selectors(){return r.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:`,`+this.raw(`between`,`beforeOpen`);this.selector=e.join(n)}constructor(e){super(e),this.type=`rule`,this.nodes||=[]}};t.exports=i,i.default=i,n.registerRule(i)})),Gt=o(((e,t)=>{var n=Lt(),r=Pt(),i=Ft(),a=Vt(),o=Bt(),s=Ht(),c=Wt();function l(e,t){if(Array.isArray(e))return e.map(e=>l(e));let{inputs:u,...d}=e;if(u){t=[];for(let e of u){let n={...e,__proto__:a.prototype};n.map&&={...n.map,__proto__:o.prototype},t.push(n)}}if(d.nodes&&=e.nodes.map(e=>l(e,t)),d.source){let{inputId:e,...n}=d.source;d.source=n,e!=null&&(d.source.input=t[e])}if(d.type===`root`)return new s(d);if(d.type===`decl`)return new i(d);if(d.type===`rule`)return new c(d);if(d.type===`comment`)return new r(d);if(d.type===`atrule`)return new n(d);throw Error(`Unknown node type: `+e.type)}t.exports=l,l.default=l})),Kt=o(((e,t)=>{var{dirname:n,relative:r,resolve:i,sep:a}=Q(),{SourceMapConsumer:o,SourceMapGenerator:s}=Q(),{pathToFileURL:c}=Q(),l=Vt(),u=!!(o&&s),d=!!(n&&i&&r&&a);t.exports=class{constructor(e,t,n,r){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,this.css=r,this.originalCSS=r,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;e=this.isInline()?`data:application/json;base64,`+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation==`string`?this.mapOpts.annotation:typeof this.mapOpts.annotation==`function`?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+`.map`;let t=`
90
93
  `;this.css.includes(`\r
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 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
- 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=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>
94
+ `)&&(t=`\r
95
+ `),this.css+=t+`/*# sourceMappingURL=`+e+` */`}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),r=e.root||n(e.file),i;this.mapOpts.sourcesContent===!1?(i=new o(e.text),i.sourcesContent&&=null):i=e.consumer(),this.map.applySourceMap(i,t,this.toUrl(this.path(r)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1){if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type===`comment`&&e.text.startsWith(`# sourceMappingURL=`)&&this.root.removeChild(t)}else if(this.css){let e;for(;(e=this.css.lastIndexOf(`/*#`))!==-1;){let t=this.css.indexOf(`*/`,e+3);if(t===-1)break;for(;e>0&&this.css[e-1]===`
96
+ `;)e--;this.css=this.css.slice(0,e)+this.css.slice(t+2)}}}}generate(){if(this.clearAnnotation(),d&&u&&this.isMap())return this.generateMap();{let e=``;return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=s.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new s({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 s({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,t=1,n=`<no source>`,r={generated:{column:0,line:0},original:{column:0,line:0},source:``},i,a;this.stringify(this.root,(o,s,c)=>{if(this.css+=o,s&&c!==`end`&&(r.generated.line=e,r.generated.column=t-1,s.source&&s.source.start?(r.source=this.sourcePath(s),r.original.line=s.source.start.line,r.original.column=s.source.start.column-1,this.map.addMapping(r)):(r.source=n,r.original.line=1,r.original.column=0,this.map.addMapping(r))),a=o.match(/\n/g),a?(e+=a.length,i=o.lastIndexOf(`
97
+ `),t=o.length-i):t+=o.length,s&&c!==`start`){let i=s.parent||{raws:{}};(!(s.type===`decl`||s.type===`atrule`&&!s.nodes)||s!==i.last||i.raws.semicolon)&&(s.source&&s.source.end?(r.source=this.sourcePath(s),r.original.line=s.source.end.line,r.original.column=s.source.end.column-1,r.generated.line=e,r.generated.column=t-2,this.map.addMapping(r)):(r.source=n,r.original.line=1,r.original.column=0,r.generated.line=e,r.generated.column=t-1,this.map.addMapping(r)))}})}isAnnotation(){return this.isInline()?!0:this.mapOpts.annotation===void 0?this.previous().length?this.previous().some(e=>e.annotation):!0:this.mapOpts.annotation}isInline(){if(this.mapOpts.inline!==void 0)return this.mapOpts.inline;let e=this.mapOpts.annotation;return e!==void 0&&e!==!0?!1:this.previous().length?this.previous().some(e=>e.inline):!0}isMap(){return this.opts.map===void 0?this.previous().length>0:!!this.opts.map}isSourcesContent(){return this.mapOpts.sourcesContent===void 0?this.previous().length?this.previous().some(e=>e.withContent()):!0:this.mapOpts.sourcesContent}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):`to.css`}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let a=this.opts.to?n(this.opts.to):`.`;typeof this.mapOpts.annotation==`string`&&(a=n(i(a,this.mapOpts.annotation)));let o=r(a,e);return this.memoizedPaths.set(e,o),o}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new l(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let n=t.source.input.from;if(n&&!e[n]){e[n]=!0;let r=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(r,t.source.input.css)}}});else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):`<no source>`;this.map.setSourceContent(e,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString(`base64`):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(c){let t=c(e).toString();return this.memoizedFileURLs.set(e,t),t}else throw Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;a===`\\`&&(e=e.replace(/\\/g,`/`));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}}})),qt=o(((e,t)=>{var n=39,r=34,i=92,a=47,o=10,s=32,c=12,l=9,u=13,d=91,f=93,p=40,m=41,h=123,g=125,_=59,v=42,y=58,b=64,x=/[\t\n\f\r "#'()/;[\\\]{}]/g,S=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,C=/.[\r\n"'(/\\]/,w=/[\da-f]/i;t.exports=function(e,t={}){let T=e.css.valueOf(),E=t.ignoreErrors,D,O,k,A,j,M,N,P,F,I,L=T.length,R=0,z=[],B=[];function V(){return R}function H(t){throw e.error(`Unclosed `+t,R)}function U(){return B.length===0&&R>=L}function ee(e){if(B.length)return B.pop();if(R>=L)return;let t=e?e.ignoreUnclosed:!1;switch(D=T.charCodeAt(R),D){case o:case s:case l:case u:case c:A=R;do A+=1,D=T.charCodeAt(A);while(D===s||D===o||D===l||D===u||D===c);M=[`space`,T.slice(R,A)],R=A-1;break;case d:case f:case h:case g:case y:case _:case m:{let e=String.fromCharCode(D);M=[e,e,R];break}case p:if(I=z.length?z.pop()[1]:``,F=T.charCodeAt(R+1),I===`url`&&F!==n&&F!==r&&F!==s&&F!==o&&F!==l&&F!==c&&F!==u){A=R;do{if(N=!1,A=T.indexOf(`)`,A+1),A===-1)if(E||t){A=R;break}else H(`bracket`);for(P=A;T.charCodeAt(P-1)===i;)--P,N=!N}while(N);M=[`brackets`,T.slice(R,A+1),R,A],R=A}else A=T.indexOf(`)`,R+1),O=T.slice(R,A+1),A===-1||C.test(O)?M=[`(`,`(`,R]:(M=[`brackets`,O,R,A],R=A);break;case n:case r:j=D===n?`'`:`"`,A=R;do{if(N=!1,A=T.indexOf(j,A+1),A===-1)if(E||t){A=R+1;break}else H(`string`);for(P=A;T.charCodeAt(P-1)===i;)--P,N=!N}while(N);M=[`string`,T.slice(R,A+1),R,A],R=A;break;case b:x.lastIndex=R+1,x.test(T),A=x.lastIndex===0?T.length-1:x.lastIndex-2,M=[`at-word`,T.slice(R,A+1),R,A],R=A;break;case i:for(A=R,k=!0;T.charCodeAt(A+1)===i;)A+=1,k=!k;if(D=T.charCodeAt(A+1),k&&D!==a&&D!==s&&D!==o&&D!==l&&D!==u&&D!==c&&(A+=1,w.test(T.charAt(A)))){for(;w.test(T.charAt(A+1));)A+=1;T.charCodeAt(A+1)===s&&(A+=1)}M=[`word`,T.slice(R,A+1),R,A],R=A;break;default:D===a&&T.charCodeAt(R+1)===v?(A=T.indexOf(`*/`,R+2)+1,A===0&&(E||t?A=T.length:H(`comment`)),M=[`comment`,T.slice(R,A+1),R,A],R=A):(S.lastIndex=R+1,S.test(T),A=S.lastIndex===0?T.length-1:S.lastIndex-2,M=[`word`,T.slice(R,A+1),R,A],z.push(M),R=A);break}return R++,M}function te(e){B.push(e)}return{back:te,endOfFile:U,nextToken:ee,position:V}}})),Jt=o(((e,t)=>{var n=Lt(),r=Pt(),i=Ft(),a=Ht(),o=Wt(),s=qt(),c={empty:!0,space:!0};function l(e){for(let t=e.length-1;t>=0;t--){let n=e[t],r=n[3]||n[2];if(r)return r}}t.exports=class{constructor(e){this.input=e,this.root=new a,this.current=this.root,this.spaces=``,this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new n;t.name=e[1].slice(1),t.name===``&&this.unnamedAtrule(t,e),this.init(t,e[2]);let r,i,a,o=!1,s=!1,c=[],l=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[0],r===`(`||r===`[`?l.push(r===`(`?`)`:`]`):r===`{`&&l.length>0?l.push(`}`):r===l[l.length-1]&&l.pop(),l.length===0)if(r===`;`){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(r===`{`){s=!0;break}else if(r===`}`){if(c.length>0){for(a=c.length-1,i=c[a];i&&i[0]===`space`;)i=c[--a];i&&(t.source.end=this.getPosition(i[3]||i[2]),t.source.end.offset++)}this.end(e);break}else c.push(e);else c.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(c),c.length?(t.raws.afterName=this.spacesAndCommentsFromStart(c),this.raw(t,`params`,c),o&&(e=c[c.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between=``)):(t.raws.afterName=``,t.params=``),s&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let n=0,r;for(let i=t-1;i>=0&&(r=e[i],!(r[0]!==`space`&&(n+=1,n===2)));i--);throw this.input.error(`Missed semicolon`,r[0]===`word`?r[3]+1:r[2])}colon(e){let t=0,n,r,i;for(let[a,o]of e.entries()){if(r=o,i=r[0],i===`(`&&(t+=1),i===`)`&&--t,t===0&&i===`:`)if(!n)this.doubleColon(r);else if(n[0]===`word`&&n[1]===`progid`)continue;else return a;n=r}return!1}comment(e){let t=new r;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let n=e[1].slice(2,-2);if(!n.trim())t.text=``,t.raws.left=n,t.raws.right=``;else{let e=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}createTokenizer(){this.tokenizer=s(this.input)}decl(e,t){let n=new i;this.init(n,e[0][2]);let r=e[e.length-1];for(r[0]===`;`&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(r[3]||r[2]||l(e)),n.source.end.offset++;e[0][0]!==`word`;)e.length===1&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop=``;e.length;){let t=e[0][0];if(t===`:`||t===`space`||t===`comment`)break;n.prop+=e.shift()[1]}n.raws.between=``;let a;for(;e.length;)if(a=e.shift(),a[0]===`:`){n.raws.between+=a[1];break}else a[0]===`word`&&/\w/.test(a[1])&&this.unknownWord([a]),n.raws.between+=a[1];(n.prop[0]===`_`||n.prop[0]===`*`)&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let o=[],s;for(;e.length&&(s=e[0][0],!(s!==`space`&&s!==`comment`));)o.push(e.shift());this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){if(a=e[t],a[1].toLowerCase()===`!important`){n.important=!0;let r=this.stringFrom(e,t);r=this.spacesFromEnd(e)+r,r!==` !important`&&(n.raws.important=r);break}else if(a[1].toLowerCase()===`important`){let r=e.slice(0),i=``;for(let e=t;e>0;e--){let t=r[e][0];if(i.trim().startsWith(`!`)&&t!==`space`)break;i=r.pop()[1]+i}i.trim().startsWith(`!`)&&(n.important=!0,n.raws.important=i,e=r)}if(a[0]!==`space`&&a[0]!==`comment`)break}e.some(e=>e[0]!==`space`&&e[0]!==`comment`)&&(n.raws.between+=o.map(e=>e[1]).join(``),o=[]),this.raw(n,`value`,o.concat(e),t),n.value.includes(`:`)&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error(`Double colon`,{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new o;this.init(t,e[2]),t.selector=``,t.raws.between=``,this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||``)+this.spaces,this.spaces=``,this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||``)+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type===`rule`&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces=``,t.source.end=this.getPosition(e[2]),t.source.end.offset+=t.raws.ownSemicolon.length)}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces=``,e.type!==`comment`&&(this.semicolon=!1)}other(e){let t=!1,n=null,r=!1,i=null,a=[],o=e[1].startsWith(`--`),s=[],c=e;for(;c;){if(n=c[0],s.push(c),n===`(`||n===`[`)i||=c,a.push(n===`(`?`)`:`]`);else if(o&&r&&n===`{`)i||=c,a.push(`}`);else if(a.length===0)if(n===`;`)if(r){this.decl(s,o);return}else break;else if(n===`{`){this.rule(s);return}else if(n===`}`){this.tokenizer.back(s.pop()),t=!0;break}else n===`:`&&(r=!0);else n===a[a.length-1]&&(a.pop(),a.length===0&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),a.length>0&&this.unclosedBracket(i),t&&r){if(!o)for(;s.length&&(c=s[s.length-1][0],!(c!==`space`&&c!==`comment`));)this.tokenizer.back(s.pop());this.decl(s,o)}else this.unknownWord(s)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case`space`:this.spaces+=e[1];break;case`;`:this.freeSemicolon(e);break;case`}`:this.end(e);break;case`comment`:this.comment(e);break;case`at-word`:this.atrule(e);break;case`{`:this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,n,r){let i,a,o=n.length,s=``,l=!0,u,d;for(let e=0;e<o;e+=1)i=n[e],a=i[0],a===`space`&&e===o-1&&!r?l=!1:a===`comment`?(d=n[e-1]?n[e-1][0]:`empty`,u=n[e+1]?n[e+1][0]:`empty`,!c[d]&&!c[u]?s.slice(-1)===`,`?l=!1:s+=i[1]:l=!1):s+=i[1];if(!l){let r=n.reduce((e,t)=>e+t[1],``);e.raws[t]={raw:r,value:s}}e[t]=s}rule(e){e.pop();let t=new o;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,`selector`,e),this.current=t}spacesAndCommentsFromEnd(e){let t,n=``;for(;e.length&&(t=e[e.length-1][0],!(t!==`space`&&t!==`comment`));)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let t,n=``;for(;e.length&&(t=e[0][0],!(t!==`space`&&t!==`comment`));)n+=e.shift()[1];return n}spacesFromEnd(e){let t,n=``;for(;e.length&&(t=e[e.length-1][0],t===`space`);)n=e.pop()[1]+n;return n}stringFrom(e,t){let n=``;for(let r=t;r<e.length;r++)n+=e[r][1];return e.splice(t,e.length-t),n}unclosedBlock(){let e=this.current.source.start;throw this.input.error(`Unclosed block`,e.line,e.column)}unclosedBracket(e){throw this.input.error(`Unclosed bracket`,{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error(`Unexpected }`,{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error(`Unknown word `+e[0][1],{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error(`At-rule without name`,{offset:t[2]},{offset:t[2]+t[1].length})}}})),Yt=o(((e,t)=>{var n=It(),r=Vt(),i=Jt();function a(e,t){let n=new i(new r(e,t));try{n.parse()}catch(e){throw e}return n.root}t.exports=a,a.default=a,n.registerParse(a)})),Xt=o(((e,t)=>{var n=class{constructor(e,t={}){if(this.type=`warning`,this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let e in t)this[e]=t[e]}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}};t.exports=n,n.default=n})),Zt=o(((e,t)=>{var n=Xt(),r=class{get content(){return this.css}constructor(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=``,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new n(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type===`warning`)}};t.exports=r,r.default=r})),Qt=o(((e,t)=>{var n={};t.exports=function(e){n[e]||(n[e]=!0,typeof console<`u`&&console.warn&&console.warn(e))}})),$t=o(((e,t)=>{var n=It(),r=Rt(),i=Kt(),a=Yt(),o=Zt(),s=Ht(),c=jt(),{isClean:l,my:u}=Mt();Qt();var d={atrule:`AtRule`,comment:`Comment`,decl:`Declaration`,document:`Document`,root:`Root`,rule:`Rule`},f={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},p={Once:!0,postcssPlugin:!0,prepare:!0},m=0;function h(e){return typeof e==`object`&&typeof e.then==`function`}function g(e){let t=!1,n=d[e.type];return e.type===`decl`?t=e.prop.toLowerCase():e.type===`atrule`&&(t=e.name.toLowerCase()),t&&e.append?[n,n+`-`+t,m,n+`Exit`,n+`Exit-`+t]:t?[n,n+`-`+t,n+`Exit`,n+`Exit-`+t]:e.append?[n,m,n+`Exit`]:[n,n+`Exit`]}function _(e){let t;return t=e.type===`document`?[`Document`,m,`DocumentExit`]:e.type===`root`?[`Root`,m,`RootExit`]:g(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function v(e){return e[l]=!1,e.nodes&&e.nodes.forEach(e=>v(e)),e}var y={},b=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(t,r,i){this.stringified=!1,this.processed=!1;let s;if(typeof r==`object`&&r&&(r.type===`root`||r.type===`document`))s=v(r);else if(r instanceof e||r instanceof o)s=v(r.root),r.map&&(i.map===void 0&&(i.map={}),i.map.inline||(i.map.inline=!1),i.map.prev=r.map);else{let e=a;i.syntax&&(e=i.syntax.parse),i.parser&&(e=i.parser),e.parse&&(e=e.parse);try{s=e(r,i)}catch(e){this.processed=!0,this.error=e}s&&!s[u]&&n.rebuild(s)}this.result=new o(t,s,i),this.helpers={...y,postcss:y,result:this.result},this.plugins=this.processor.plugins.map(e=>typeof e==`object`&&e.prepare?{...e,...e.prepare(this.result)}:e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||=this.runAsync(),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw Error(`Use process(css).then(cb) to work with async plugins`)}handleError(e,t){let n=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name===`CssSyntaxError`&&!e.plugin?(e.plugin=n.postcssPlugin,e.setMessage()):n.postcssVersion}catch(e){console&&console.error&&console.error(e)}return e}prepareVisitors(){this.listeners={};let e=(e,t,n)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,n])};for(let t of this.plugins)if(typeof t==`object`)for(let n in t){if(!f[n]&&/^[A-Z]/.test(n))throw Error(`Unknown event ${n} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!p[n])if(typeof t[n]==`object`)for(let r in t[n])r===`*`?e(t,n,t[n][r]):e(t,n+`-`+r.toLowerCase(),t[n][r]);else typeof t[n]==`function`&&e(t,n,t[n])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],n=this.runOnRoot(t);if(h(n))try{await n}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[l];){e[l]=!0;let t=[_(e)];for(;t.length>0;){let e=this.visitTick(t);if(h(e))try{await e}catch(e){let n=t[t.length-1].node;throw this.handleError(e,n)}}}if(this.listeners.OnceExit)for(let[t,n]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type===`document`){let t=e.nodes.map(e=>n(e,this.helpers));await Promise.all(t)}else await n(e,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e==`object`&&e.Once){if(this.result.root.type===`document`){let t=this.result.root.nodes.map(t=>e.Once(t,this.helpers));return h(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}else if(typeof e==`function`)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=c;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let n=new i(t,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins)if(h(this.runOnRoot(e)))throw this.getAsyncError();if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[l];)e[l]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type===`document`)for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[n,r]of e){this.result.lastPlugin=n;let e;try{e=r(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if(t.type!==`root`&&t.type!==`document`&&!t.parent)return!0;if(h(e))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:n,visitors:r}=t;if(n.type!==`root`&&n.type!==`document`&&!n.parent){e.pop();return}if(r.length>0&&t.visitorIndex<r.length){let[e,i]=r[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===r.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return i(n.toProxy(),this.helpers)}catch(e){throw this.handleError(e,n)}}if(t.iterator!==0){let r=t.iterator,i;for(;i=n.nodes[n.indexes[r]];)if(n.indexes[r]+=1,!i[l]){i[l]=!0,e.push(_(i));return}t.iterator=0,delete n.indexes[r]}let i=t.events;for(;t.eventIndex<i.length;){let e=i[t.eventIndex];if(t.eventIndex+=1,e===m){n.nodes&&n.nodes.length&&(n[l]=!0,t.iterator=n.getIterator());return}else if(this.listeners[e]){t.visitors=this.listeners[e];return}}e.pop()}walkSync(e){e[l]=!0;let t=g(e);for(let n of t)if(n===m)e.nodes&&e.each(e=>{e[l]||this.walkSync(e)});else{let t=this.listeners[n];if(t&&this.visitSync(t,e.toProxy()))return}}warnings(){return this.sync().warnings()}};b.registerPostcss=e=>{y=e},t.exports=b,b.default=b,s.registerLazyResult(b),r.registerLazyResult(b)})),en=o(((e,t)=>{var n=Kt(),r=Yt(),i=Zt(),a=jt();Qt();var o=class{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=r;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return`NoWorkResult`}constructor(e,t,r){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;let o=a;this.result=new i(this._processor,void 0,this._opts),this.result.css=t;let s=this;Object.defineProperty(this.result,`root`,{get(){return s.root}});let c=new n(o,void 0,this._opts,t);if(c.isMap()){let[e,t]=c.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else c.clearAnnotation(),this.result.css=c.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}};t.exports=o,o.default=o})),tn=o(((e,t)=>{var n=Rt(),r=$t(),i=en(),a=Ht(),o=class{constructor(e=[]){this.version=`8.5.8`,this.plugins=this.normalize(e)}normalize(e){let t=[];for(let n of e)if(n.postcss===!0?n=n():n.postcss&&(n=n.postcss),typeof n==`object`&&Array.isArray(n.plugins))t=t.concat(n.plugins);else if(typeof n==`object`&&n.postcssPlugin)t.push(n);else if(typeof n==`function`)t.push(n);else if(!(typeof n==`object`&&(n.parse||n.stringify)))throw Error(n+` is not a PostCSS plugin`);return t}process(e,t={}){return!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new i(this,e,t):new r(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};t.exports=o,o.default=o,a.registerProcessor(o),n.registerProcessor(o)})),$=l(o(((e,t)=>{var n=Lt(),r=Pt(),i=It(),a=kt(),o=Ft(),s=Rt(),c=Gt(),l=Vt(),u=$t(),d=Ut(),f=Nt(),p=Yt(),m=tn(),h=Zt(),g=Ht(),_=Wt(),v=jt(),y=Xt();function b(...e){return e.length===1&&Array.isArray(e[0])&&(e=e[0]),new m(e)}b.plugin=function(e,t){let n=!1;function r(...r){console&&console.warn&&!n&&(n=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
98
+ https://evilmartians.com/chronicles/postcss-8-plugin-migration`),{}.LANG&&{}.LANG.startsWith(`cn`)&&console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南:
99
+ https://www.w3ctech.com/topic/2226`));let i=t(...r);return i.postcssPlugin=e,i.postcssVersion=new m().version,i}let i;return Object.defineProperty(r,`postcss`,{get(){return i||=r(),i}}),r.process=function(e,t,n){return b([r(n)]).process(e,t)},r},b.stringify=v,b.parse=p,b.fromJSON=c,b.list=d,b.comment=e=>new r(e),b.atRule=e=>new n(e),b.decl=e=>new o(e),b.rule=e=>new _(e),b.root=e=>new g(e),b.document=e=>new s(e),b.CssSyntaxError=a,b.Declaration=o,b.Container=i,b.Processor=m,b.Document=s,b.Comment=r,b.Warning=y,b.AtRule=n,b.Result=h,b.Input=l,b.Rule=_,b.Root=g,b.Node=f,u.registerPostcss(b),t.exports=b,b.default=b}))(),1),nn=$.default;$.default.stringify,$.default.fromJSON,$.default.plugin,$.default.parse,$.default.list,$.default.document,$.default.comment,$.default.atRule,$.default.rule,$.default.decl,$.default.root,$.default.CssSyntaxError,$.default.Declaration,$.default.Container,$.default.Processor,$.default.Document,$.default.Comment,$.default.Warning,$.default.AtRule,$.default.Result,$.default.Input,$.default.Rule,$.default.Root,$.default.Node;var rn=l(o(((e,t)=>{var n=(e={})=>{let t=e.prefix,n=/\s+$/.test(t)?t:`${t} `,a=e.ignoreFiles?[].concat(e.ignoreFiles):[],o=e.includeFiles?[].concat(e.includeFiles):[];return{postcssPlugin:`postcss-prefix-selector`,prepare(s){let c=s.root,l=c.source.input.file;if(!(a.length&&l&&r(l,a))&&!(o.length&&l&&!r(l,o)))return{Rule(r,{result:a}){r.parent&&[`keyframes`,`-webkit-keyframes`,`-moz-keyframes`,`-o-keyframes`,`-ms-keyframes`].includes(r.parent.name)||(r.selectors=r.selectors.map(a=>e.exclude&&i(a,e.exclude)?a:e.transform?e.transform(t,a,n+a,c.source.input.file,r):[`:root`,`body`,`html`].some(e=>a.startsWith(e))?e.skipGlobalSelectors?a:a.replace(/(html\s+body|:root\s+body|html|:root|body)/gm,t):n+a))}}}}};function r(e,t){return t.some(t=>t instanceof RegExp?t.test(e):e.includes(t))}function i(e,t){return t.some(t=>t instanceof RegExp?t.test(e):e===t)}n.postcss=!0,t.exports=n}))(),1),an=Object.create,on=Object.defineProperty,sn=Object.getOwnPropertyDescriptor,cn=Object.getOwnPropertyNames,ln=Object.getPrototypeOf,un=Object.prototype.hasOwnProperty,dn=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),fn=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=cn(t),a=0,o=i.length,s;a<o;a++)s=i[a],!un.call(e,s)&&s!==n&&on(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=sn(t,s))||r.enumerable});return e},pn=(e,t,n)=>(n=e==null?{}:an(ln(e)),fn(t||!e||!e.__esModule?on(n,`default`,{value:e,enumerable:!0}):n,e)),mn=`pre code.hljs{padding:1em;display:block;overflow-x:auto}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}`,hn=`code{white-space:pre}.example{flex-flow:wrap;align-items:center;gap:16px;display:flex}.example>*{flex:500px}.example .tab-control{overflow:hidden}.example div[role=tab]{cursor:pointer;-webkit-user-select:none;user-select:none;background-clip:padding-box;border-bottom:2px solid #0000;padding:8px 16px;font-size:16px;display:inline-block}.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}`,gn=pn(dn(((e,t)=>{function n(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw Error(`map is read-only`)}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw Error(`set is read-only`)}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{let r=e[t],i=typeof r;(i===`object`||i===`function`)&&!Object.isFrozen(r)&&n(r)}),e}var r=class{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function i(e){return e.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`).replace(/"/g,`&quot;`).replace(/'/g,`&#x27;`)}function a(e,...t){let n=Object.create(null);for(let t in e)n[t]=e[t];return t.forEach(function(e){for(let t in e)n[t]=e[t]}),n}var o=`</span>`,s=e=>!!e.scope,c=(e,{prefix:t})=>{if(e.startsWith(`language:`))return e.replace(`language:`,`language-`);if(e.includes(`.`)){let n=e.split(`.`);return[`${t}${n.shift()}`,...n.map((e,t)=>`${e}${`_`.repeat(t+1)}`)].join(` `)}return`${t}${e}`},l=class{constructor(e,t){this.buffer=``,this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=i(e)}openNode(e){if(!s(e))return;let t=c(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){s(e)&&(this.buffer+=o)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}},u=(e={})=>{let t={children:[]};return Object.assign(t,e),t},d=class e{constructor(){this.rootNode=u(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){let t=u({scope:e});this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return typeof t==`string`?e.addText(t):t.children&&(e.openNode(t),t.children.forEach(t=>this._walk(e,t)),e.closeNode(t)),e}static _collapse(t){typeof t!=`string`&&t.children&&(t.children.every(e=>typeof e==`string`)?t.children=[t.children.join(``)]:t.children.forEach(t=>{e._collapse(t)}))}},f=class extends d{constructor(e){super(),this.options=e}addText(e){e!==``&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,t){let n=e.root;t&&(n.scope=`language:${t}`),this.add(n)}toHTML(){return new l(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}};function p(e){return e?typeof e==`string`?e:e.source:null}function m(e){return _(`(?=`,e,`)`)}function h(e){return _(`(?:`,e,`)*`)}function g(e){return _(`(?:`,e,`)?`)}function _(...e){return e.map(e=>p(e)).join(``)}function v(e){let t=e[e.length-1];return typeof t==`object`&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function y(...e){return`(`+(v(e).capture?``:`?:`)+e.map(e=>p(e)).join(`|`)+`)`}function b(e){return RegExp(e.toString()+`|`).exec(``).length-1}function x(e,t){let n=e&&e.exec(t);return n&&n.index===0}var S=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function C(e,{joinWith:t}){let n=0;return e.map(e=>{n+=1;let t=n,r=p(e),i=``;for(;r.length>0;){let e=S.exec(r);if(!e){i+=r;break}i+=r.substring(0,e.index),r=r.substring(e.index+e[0].length),e[0][0]===`\\`&&e[1]?i+=`\\`+String(Number(e[1])+t):(i+=e[0],e[0]===`(`&&n++)}return i}).map(e=>`(${e})`).join(t)}var w=/\b\B/,T=`[a-zA-Z]\\w*`,E=`[a-zA-Z_]\\w*`,D=`\\b\\d+(\\.\\d+)?`,O=`(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)`,k=`\\b(0b[01]+)`,A=`!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~`,j=(e={})=>{let t=/^#![ ]*\//;return e.binary&&(e.begin=_(t,/.*\b/,e.binary,/\b.*/)),a({scope:`meta`,begin:t,end:/$/,relevance:0,"on:begin":(e,t)=>{e.index!==0&&t.ignoreMatch()}},e)},M={begin:`\\\\[\\s\\S]`,relevance:0},N={scope:`string`,begin:`'`,end:`'`,illegal:`\\n`,contains:[M]},P={scope:`string`,begin:`"`,end:`"`,illegal:`\\n`,contains:[M]},F={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/},I=function(e,t,n={}){let r=a({scope:`comment`,begin:e,end:t,contains:[]},n);r.contains.push({scope:`doctag`,begin:`[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)`,end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});let i=y(`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 r.contains.push({begin:_(/[ ]+/,`(`,i,/[.]?[:]?([.][ ]|[ ])/,`){3}`)}),r},L=I(`//`,`$`),R=I(`/\\*`,`\\*/`),z=I(`#`,`$`),B={scope:`number`,begin:D,relevance:0},V={scope:`number`,begin:O,relevance:0},H={scope:`number`,begin:k,relevance:0},U={scope:`regexp`,begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[M,{begin:/\[/,end:/\]/,relevance:0,contains:[M]}]},ee={scope:`title`,begin:T,relevance:0},te={scope:`title`,begin:E,relevance:0},ne={begin:`\\.\\s*`+E,relevance:0},re=Object.freeze({__proto__:null,APOS_STRING_MODE:N,BACKSLASH_ESCAPE:M,BINARY_NUMBER_MODE:H,BINARY_NUMBER_RE:k,COMMENT:I,C_BLOCK_COMMENT_MODE:R,C_LINE_COMMENT_MODE:L,C_NUMBER_MODE:V,C_NUMBER_RE:O,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})},HASH_COMMENT_MODE:z,IDENT_RE:T,MATCH_NOTHING_RE:w,METHOD_GUARD:ne,NUMBER_MODE:B,NUMBER_RE:D,PHRASAL_WORDS_MODE:F,QUOTE_STRING_MODE:P,REGEXP_MODE:U,RE_STARTERS_RE:A,SHEBANG:j,TITLE_MODE:ee,UNDERSCORE_IDENT_RE:E,UNDERSCORE_TITLE_MODE:te});function W(e,t){e.input[e.index-1]===`.`&&t.ignoreMatch()}function G(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function ie(e,t){t&&e.beginKeywords&&(e.begin=`\\b(`+e.beginKeywords.split(` `).join(`|`)+`)(?!\\.)(?=\\b|\\s)`,e.__beforeBegin=W,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function ae(e,t){Array.isArray(e.illegal)&&(e.illegal=y(...e.illegal))}function oe(e,t){if(e.match){if(e.begin||e.end)throw Error(`begin & end are not supported with match`);e.begin=e.match,delete e.match}}function se(e,t){e.relevance===void 0&&(e.relevance=1)}var K=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw Error(`beforeMatch cannot be used with starts`);let n=Object.assign({},e);Object.keys(e).forEach(t=>{delete e[t]}),e.keywords=n.keywords,e.begin=_(n.beforeMatch,m(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},ce=[`of`,`and`,`for`,`in`,`not`,`or`,`if`,`then`,`parent`,`list`,`value`],le=`keyword`;function q(e,t,n=le){let r=Object.create(null);return typeof e==`string`?i(n,e.split(` `)):Array.isArray(e)?i(n,e):Object.keys(e).forEach(function(n){Object.assign(r,q(e[n],t,n))}),r;function i(e,n){t&&(n=n.map(e=>e.toLowerCase())),n.forEach(function(t){let n=t.split(`|`);r[n[0]]=[e,ue(n[0],n[1])]})}}function ue(e,t){return t?Number(t):J(e)?0:1}function J(e){return ce.includes(e.toLowerCase())}var de={},Y=e=>{console.error(e)},fe=(e,...t)=>{console.log(`WARN: ${e}`,...t)},X=(e,t)=>{de[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),de[`${e}/${t}`]=!0)},pe=Error();function me(e,t,{key:n}){let r=0,i=e[n],a={},o={};for(let e=1;e<=t.length;e++)o[e+r]=i[e],a[e+r]=!0,r+=b(t[e-1]);e[n]=o,e[n]._emit=a,e[n]._multi=!0}function he(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw Y(`skip, excludeBegin, returnBegin not compatible with beginScope: {}`),pe;if(typeof e.beginScope!=`object`||e.beginScope===null)throw Y(`beginScope must be object`),pe;me(e,e.begin,{key:`beginScope`}),e.begin=C(e.begin,{joinWith:``})}}function ge(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw Y(`skip, excludeEnd, returnEnd not compatible with endScope: {}`),pe;if(typeof e.endScope!=`object`||e.endScope===null)throw Y(`endScope must be object`),pe;me(e,e.end,{key:`endScope`}),e.end=C(e.end,{joinWith:``})}}function _e(e){e.scope&&typeof e.scope==`object`&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function ve(e){_e(e),typeof e.beginScope==`string`&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope==`string`&&(e.endScope={_wrap:e.endScope}),he(e),ge(e)}function ye(e){function t(t,n){return new RegExp(p(t),`m`+(e.case_insensitive?`i`:``)+(e.unicodeRegex?`u`:``)+(n?`g`:``))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,t){t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),this.matchAt+=b(e)+1}compile(){this.regexes.length===0&&(this.exec=()=>null),this.matcherRe=t(C(this.regexes.map(e=>e[1]),{joinWith:`|`}),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;let t=this.matcherRe.exec(e);if(!t)return null;let n=t.findIndex((e,t)=>t>0&&e!==void 0),r=this.matchIndexes[n];return t.splice(0,n),Object.assign(t,r)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){if(this.multiRegexes[e])return this.multiRegexes[e];let t=new n;return this.rules.slice(e).forEach(([e,n])=>t.addRule(e,n)),t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(e,t){this.rules.push([e,t]),t.type===`begin`&&this.count++}exec(e){let t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex;let n=t.exec(e);if(this.resumingScanAtSamePosition()&&!(n&&n.index===this.lastIndex)){let t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,n=t.exec(e)}return n&&(this.regexIndex+=n.position+1,this.regexIndex===this.count&&this.considerAll()),n}}function i(e){let t=new r;return e.contains.forEach(e=>t.addRule(e.begin,{rule:e,type:`begin`})),e.terminatorEnd&&t.addRule(e.terminatorEnd,{type:`end`}),e.illegal&&t.addRule(e.illegal,{type:`illegal`}),t}function o(n,r){let a=n;if(n.isCompiled)return a;[G,oe,ve,K].forEach(e=>e(n,r)),e.compilerExtensions.forEach(e=>e(n,r)),n.__beforeBegin=null,[ie,ae,se].forEach(e=>e(n,r)),n.isCompiled=!0;let s=null;return typeof n.keywords==`object`&&n.keywords.$pattern&&(n.keywords=Object.assign({},n.keywords),s=n.keywords.$pattern,delete n.keywords.$pattern),s||=/\w+/,n.keywords&&=q(n.keywords,e.case_insensitive),a.keywordPatternRe=t(s,!0),r&&(n.begin||=/\B|\b/,a.beginRe=t(a.begin),!n.end&&!n.endsWithParent&&(n.end=/\B|\b/),n.end&&(a.endRe=t(a.end)),a.terminatorEnd=p(a.end)||``,n.endsWithParent&&r.terminatorEnd&&(a.terminatorEnd+=(n.end?`|`:``)+r.terminatorEnd)),n.illegal&&(a.illegalRe=t(n.illegal)),n.contains||=[],n.contains=[].concat(...n.contains.map(function(e){return xe(e===`self`?n:e)})),n.contains.forEach(function(e){o(e,a)}),n.starts&&o(n.starts,r),a.matcher=i(a),a}if(e.compilerExtensions||=[],e.contains&&e.contains.includes(`self`))throw Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=a(e.classNameAliases||{}),o(e)}function be(e){return e?e.endsWithParent||be(e.starts):!1}function xe(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return a(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:be(e)?a(e,{starts:e.starts?a(e.starts):null}):Object.isFrozen(e)?a(e):e}var Se=`11.11.1`,Ce=class extends Error{constructor(e,t){super(e),this.name=`HTMLInjectionError`,this.html=t}},we=i,Te=a,Ee=Symbol(`nomatch`),De=7,Oe=function(e){let t=Object.create(null),i=Object.create(null),a=[],o=!0,s=`Could not find the language '{}', did you forget to load/include a language module?`,c={disableAutodetect:!0,name:`Plain text`,contains:[]},l={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:`hljs-`,cssSelector:`pre code`,languages:null,__emitter:f};function u(e){return l.noHighlightRe.test(e)}function d(e){let t=e.className+` `;t+=e.parentNode?e.parentNode.className:``;let n=l.languageDetectRe.exec(t);if(n){let t=N(n[1]);return t||(fe(s.replace(`{}`,n[1])),fe(`Falling back to no-highlight mode for this block.`,e)),t?n[1]:`no-highlight`}return t.split(/\s+/).find(e=>u(e)||N(e))}function p(e,t,n){let r=``,i=``;typeof t==`object`?(r=e,n=t.ignoreIllegals,i=t.language):(X(`10.7.0`,`highlight(lang, code, ...args) has been deprecated.`),X(`10.7.0`,`Please use highlight(code, options) instead.
100
+ https://github.com/highlightjs/highlight.js/issues/2277`),i=e,r=t),n===void 0&&(n=!0);let a={code:r,language:i};z(`before:highlight`,a);let o=a.result?a.result:v(a.language,a.code,n);return o.code=a.code,z(`after:highlight`,o),o}function v(e,n,i,a){let c=Object.create(null);function u(e,t){return e.keywords[t]}function d(){if(!A.keywords){M.addText(P);return}let e=0;A.keywordPatternRe.lastIndex=0;let t=A.keywordPatternRe.exec(P),n=``;for(;t;){n+=P.substring(e,t.index);let r=D.case_insensitive?t[0].toLowerCase():t[0],i=u(A,r);if(i){let[e,a]=i;if(M.addText(n),n=``,c[r]=(c[r]||0)+1,c[r]<=De&&(F+=a),e.startsWith(`_`))n+=t[0];else{let n=D.classNameAliases[e]||e;m(t[0],n)}}else n+=t[0];e=A.keywordPatternRe.lastIndex,t=A.keywordPatternRe.exec(P)}n+=P.substring(e),M.addText(n)}function f(){if(P===``)return;let e=null;if(typeof A.subLanguage==`string`){if(!t[A.subLanguage]){M.addText(P);return}e=v(A.subLanguage,P,!0,j[A.subLanguage]),j[A.subLanguage]=e._top}else e=S(P,A.subLanguage.length?A.subLanguage:null);A.relevance>0&&(F+=e.relevance),M.__addSublanguage(e._emitter,e.language)}function p(){A.subLanguage==null?d():f(),P=``}function m(e,t){e!==``&&(M.startScope(t),M.addText(e),M.endScope())}function h(e,t){let n=1,r=t.length-1;for(;n<=r;){if(!e._emit[n]){n++;continue}let r=D.classNameAliases[e[n]]||e[n],i=t[n];r?m(i,r):(P=i,d(),P=``),n++}}function g(e,t){return e.scope&&typeof e.scope==`string`&&M.openNode(D.classNameAliases[e.scope]||e.scope),e.beginScope&&(e.beginScope._wrap?(m(P,D.classNameAliases[e.beginScope._wrap]||e.beginScope._wrap),P=``):e.beginScope._multi&&(h(e.beginScope,t),P=``)),A=Object.create(e,{parent:{value:A}}),A}function _(e,t,n){let i=x(e.endRe,n);if(i){if(e[`on:end`]){let n=new r(e);e[`on:end`](t,n),n.isMatchIgnored&&(i=!1)}if(i){for(;e.endsParent&&e.parent;)e=e.parent;return e}}if(e.endsWithParent)return _(e.parent,t,n)}function y(e){return A.matcher.regexIndex===0?(P+=e[0],1):(R=!0,0)}function b(e){let t=e[0],n=e.rule,i=new r(n),a=[n.__beforeBegin,n[`on:begin`]];for(let n of a)if(n&&(n(e,i),i.isMatchIgnored))return y(t);return n.skip?P+=t:(n.excludeBegin&&(P+=t),p(),!n.returnBegin&&!n.excludeBegin&&(P=t)),g(n,e),n.returnBegin?0:t.length}function C(e){let t=e[0],r=n.substring(e.index),i=_(A,e,r);if(!i)return Ee;let a=A;A.endScope&&A.endScope._wrap?(p(),m(t,A.endScope._wrap)):A.endScope&&A.endScope._multi?(p(),h(A.endScope,e)):a.skip?P+=t:(a.returnEnd||a.excludeEnd||(P+=t),p(),a.excludeEnd&&(P=t));do A.scope&&M.closeNode(),!A.skip&&!A.subLanguage&&(F+=A.relevance),A=A.parent;while(A!==i.parent);return i.starts&&g(i.starts,e),a.returnEnd?0:t.length}function w(){let e=[];for(let t=A;t!==D;t=t.parent)t.scope&&e.unshift(t.scope);e.forEach(e=>M.openNode(e))}let T={};function E(t,r){let a=r&&r[0];if(P+=t,a==null)return p(),0;if(T.type===`begin`&&r.type===`end`&&T.index===r.index&&a===``){if(P+=n.slice(r.index,r.index+1),!o){let t=Error(`0 width match regex (${e})`);throw t.languageName=e,t.badRule=T.rule,t}return 1}if(T=r,r.type===`begin`)return b(r);if(r.type===`illegal`&&!i){let e=Error(`Illegal lexeme "`+a+`" for mode "`+(A.scope||`<unnamed>`)+`"`);throw e.mode=A,e}else if(r.type===`end`){let e=C(r);if(e!==Ee)return e}if(r.type===`illegal`&&a===``)return P+=`
101
+ `,1;if(L>1e5&&L>r.index*3)throw Error(`potential infinite loop, way more iterations than matches`);return P+=a,a.length}let D=N(e);if(!D)throw Y(s.replace(`{}`,e)),Error(`Unknown language: "`+e+`"`);let O=ye(D),k=``,A=a||O,j={},M=new l.__emitter(l);w();let P=``,F=0,I=0,L=0,R=!1;try{if(D.__emitTokens)D.__emitTokens(n,M);else{for(A.matcher.considerAll();;){L++,R?R=!1:A.matcher.considerAll(),A.matcher.lastIndex=I;let e=A.matcher.exec(n);if(!e)break;let t=E(n.substring(I,e.index),e);I=e.index+t}E(n.substring(I))}return M.finalize(),k=M.toHTML(),{language:e,value:k,relevance:F,illegal:!1,_emitter:M,_top:A}}catch(t){if(t.message&&t.message.includes(`Illegal`))return{language:e,value:we(n),illegal:!0,relevance:0,_illegalBy:{message:t.message,index:I,context:n.slice(I-100,I+100),mode:t.mode,resultSoFar:k},_emitter:M};if(o)return{language:e,value:we(n),illegal:!1,relevance:0,errorRaised:t,_emitter:M,_top:A};throw t}}function b(e){let t={value:we(e),illegal:!1,relevance:0,_top:c,_emitter:new l.__emitter(l)};return t._emitter.addText(e),t}function S(e,n){n=n||l.languages||Object.keys(t);let r=b(e),i=n.filter(N).filter(F).map(t=>v(t,e,!1));i.unshift(r);let[a,o]=i.sort((e,t)=>{if(e.relevance!==t.relevance)return t.relevance-e.relevance;if(e.language&&t.language){if(N(e.language).supersetOf===t.language)return 1;if(N(t.language).supersetOf===e.language)return-1}return 0}),s=a;return s.secondBest=o,s}function C(e,t,n){let r=t&&i[t]||n;e.classList.add(`hljs`),e.classList.add(`language-${r}`)}function w(e){let t=null,n=d(e);if(u(n))return;if(z(`before:highlightElement`,{el:e,language:n}),e.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",e);return}if(e.children.length>0&&(l.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(e)),l.throwUnescapedHTML))throw new Ce(`One of your code blocks includes unescaped HTML.`,e.innerHTML);t=e;let r=t.textContent,i=n?p(r,{language:n,ignoreIllegals:!0}):S(r);e.innerHTML=i.value,e.dataset.highlighted=`yes`,C(e,n,i.language),e.result={language:i.language,re:i.relevance,relevance:i.relevance},i.secondBest&&(e.secondBest={language:i.secondBest.language,relevance:i.secondBest.relevance}),z(`after:highlightElement`,{el:e,result:i,text:r})}function T(e){l=Te(l,e)}let E=()=>{k(),X(`10.6.0`,`initHighlighting() deprecated. Use highlightAll() now.`)};function D(){k(),X(`10.6.0`,`initHighlightingOnLoad() deprecated. Use highlightAll() now.`)}let O=!1;function k(){function e(){k()}if(document.readyState===`loading`){O||window.addEventListener(`DOMContentLoaded`,e,!1),O=!0;return}document.querySelectorAll(l.cssSelector).forEach(w)}function A(n,r){let i=null;try{i=r(e)}catch(e){if(Y(`Language definition for '{}' could not be registered.`.replace(`{}`,n)),o)Y(e);else throw e;i=c}i.name||=n,t[n]=i,i.rawDefinition=r.bind(null,e),i.aliases&&P(i.aliases,{languageName:n})}function j(e){delete t[e];for(let t of Object.keys(i))i[t]===e&&delete i[t]}function M(){return Object.keys(t)}function N(e){return e=(e||``).toLowerCase(),t[e]||t[i[e]]}function P(e,{languageName:t}){typeof e==`string`&&(e=[e]),e.forEach(e=>{i[e.toLowerCase()]=t})}function F(e){let t=N(e);return t&&!t.disableAutodetect}function I(e){e[`before:highlightBlock`]&&!e[`before:highlightElement`]&&(e[`before:highlightElement`]=t=>{e[`before:highlightBlock`](Object.assign({block:t.el},t))}),e[`after:highlightBlock`]&&!e[`after:highlightElement`]&&(e[`after:highlightElement`]=t=>{e[`after:highlightBlock`](Object.assign({block:t.el},t))})}function L(e){I(e),a.push(e)}function R(e){let t=a.indexOf(e);t!==-1&&a.splice(t,1)}function z(e,t){let n=e;a.forEach(function(e){e[n]&&e[n](t)})}function B(e){return X(`10.7.0`,`highlightBlock will be removed entirely in v12.0`),X(`10.7.0`,`Please use highlightElement now.`),w(e)}Object.assign(e,{highlight:p,highlightAuto:S,highlightAll:k,highlightElement:w,highlightBlock:B,configure:T,initHighlighting:E,initHighlightingOnLoad:D,registerLanguage:A,unregisterLanguage:j,listLanguages:M,getLanguage:N,registerAliases:P,autoDetection:F,inherit:Te,addPlugin:L,removePlugin:R}),e.debugMode=function(){o=!1},e.safeMode=function(){o=!0},e.versionString=Se,e.regex={concat:_,lookahead:m,either:y,optional:g,anyNumberOfTimes:h};for(let e in re)typeof re[e]==`object`&&n(re[e]);return Object.assign(e,re),e},Z=Oe({});Z.newInstance=()=>Oe({}),t.exports=Z,Z.HighlightJS=Z,Z.default=Z}))()).default,_n=e=>({IMPORTANT:{scope:`meta`,begin:`!important`},BLOCK_COMMENT:e.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:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:`number`,begin:e.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_-]*/}}),vn=`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`.split(`.`),yn=`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`.split(`.`),bn=[...vn,...yn],xn=`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`.split(`.`).sort().reverse(),Sn=`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`.split(`.`).sort().reverse(),Cn=[`after`,`backdrop`,`before`,`cue`,`cue-region`,`first-letter`,`first-line`,`grammar-error`,`marker`,`part`,`placeholder`,`selection`,`slotted`,`spelling-error`].sort().reverse(),wn=`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`.split(`.`).sort().reverse();function Tn(e){let t=e.regex,n=_n(e),r={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},i=/@-?\w[\w]*(-\w+)*/,a=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE];return{name:`CSS`,case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:`from to`},classNameAliases:{keyframePosition:`selector-tag`},contains:[n.BLOCK_COMMENT,r,n.CSS_NUMBER_MODE,{className:`selector-id`,begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:`selector-class`,begin:`\\.[a-zA-Z-][a-zA-Z0-9_-]*`,relevance:0},n.ATTRIBUTE_SELECTOR_MODE,{className:`selector-pseudo`,variants:[{begin:`:(`+Sn.join(`|`)+`)`},{begin:`:(:)?(`+Cn.join(`|`)+`)`}]},n.CSS_VARIABLE,{className:`attribute`,begin:`\\b(`+wn.join(`|`)+`)\\b`},{begin:/:/,end:/[;}{]/,contains:[n.BLOCK_COMMENT,n.HEXCOLOR,n.IMPORTANT,n.CSS_NUMBER_MODE,...a,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:`url data-uri`},contains:[...a,{className:`string`,begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},n.FUNCTION_DISPATCH]},{begin:t.lookahead(/@/),end:`[{;]`,relevance:0,illegal:/:/,contains:[{className:`keyword`,begin:i},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:`and or not only`,attribute:xn.join(` `)},contains:[{begin:/[a-z-]+(?=:)/,className:`attribute`},...a,n.CSS_NUMBER_MODE]}]},{className:`selector-tag`,begin:`\\b(`+bn.join(`|`)+`)\\b`}]}}var En=`[A-Za-z$_][0-9A-Za-z$_]*`,Dn=`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`.split(`.`),On=[`true`,`false`,`null`,`undefined`,`NaN`,`Infinity`],kn=`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`.split(`.`),An=[`Error`,`EvalError`,`InternalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`],jn=[`setInterval`,`setTimeout`,`clearInterval`,`clearTimeout`,`require`,`exports`,`eval`,`isFinite`,`isNaN`,`parseFloat`,`parseInt`,`decodeURI`,`decodeURIComponent`,`encodeURI`,`encodeURIComponent`,`escape`,`unescape`],Mn=[`arguments`,`this`,`super`,`console`,`window`,`document`,`localStorage`,`sessionStorage`,`module`,`global`],Nn=[].concat(jn,kn,An);function Pn(e){let t=e.regex,n=(e,{after:t})=>{let n=`</`+e[0].slice(1);return e.input.indexOf(n,t)!==-1},r=En,i={begin:`<>`,end:`</>`},a=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(e,t)=>{let r=e[0].length+e.index,i=e.input[r];if(i===`<`||i===`,`){t.ignoreMatch();return}i===`>`&&(n(e,{after:r})||t.ignoreMatch());let a,o=e.input.substring(r);if(a=o.match(/^\s*=/)){t.ignoreMatch();return}if((a=o.match(/^\s+extends\s+/))&&a.index===0){t.ignoreMatch();return}}},s={$pattern:En,keyword:Dn,literal:On,built_in:Nn,"variable.language":Mn},c=`[0-9](_?[0-9])*`,l=`\\.(${c})`,u=`0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*`,d={className:`number`,variants:[{begin:`(\\b(${u})((${l})|\\.)?|(${l}))[eE][+-]?(${c})\\b`},{begin:`\\b(${u})\\b((${l})\\b|\\.)?|(${l})\\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},f={className:`subst`,begin:`\\$\\{`,end:`\\}`,keywords:s,contains:[]},p={begin:".?html`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:`xml`}},m={begin:".?css`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:`css`}},h={begin:".?gql`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:`graphql`}},g={className:`string`,begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,f]},_={className:`comment`,variants:[e.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:r+`(?=\\s*(-)|$)`,endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},v=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,m,h,g,{match:/\$\d+/},d];f.contains=v.concat({begin:/\{/,end:/\}/,keywords:s,contains:[`self`].concat(v)});let y=[].concat(_,f.contains),b=y.concat([{begin:/(\s*)\(/,end:/\)/,keywords:s,contains:[`self`].concat(y)}]),x={className:`params`,begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:b},S={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,t.concat(r,`(`,t.concat(/\./,r),`)*`)],scope:{1:`keyword`,3:`title.class`,5:`keyword`,7:`title.class.inherited`}},{match:[/class/,/\s+/,r],scope:{1:`keyword`,3:`title.class`}}]},C={relevance:0,match:t.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:{_:[...kn,...An]}},w={label:`use_strict`,className:`meta`,relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},T={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:`keyword`,3:`title.function`},label:`func.def`,contains:[x],illegal:/%/},E={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:`variable.constant`};function D(e){return t.concat(`(?!`,e.join(`|`),`)`)}let O={match:t.concat(/\b/,D([...jn,`super`,`import`].map(e=>`${e}\\s*\\(`)),r,t.lookahead(/\s*\(/)),className:`title.function`,relevance:0},k={begin:t.concat(/\./,t.lookahead(t.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:`prototype`,className:`property`,relevance:0},A={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:`keyword`,3:`title.function`},contains:[{begin:/\(\)/},x]},j=`(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|`+e.UNDERSCORE_IDENT_RE+`)\\s*=>`,M={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(j)],keywords:`async`,className:{1:`keyword`,3:`title.function`},contains:[x]};return{name:`JavaScript`,aliases:[`js`,`jsx`,`mjs`,`cjs`],keywords:s,exports:{PARAMS_CONTAINS:b,CLASS_REFERENCE:C},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:`shebang`,binary:`node`,relevance:5}),w,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,m,h,g,_,{match:/\$\d+/},d,C,{scope:`attr`,match:r+t.lookahead(`:`),relevance:0},M,{begin:`(`+e.RE_STARTERS_RE+`|\\b(case|return|throw)\\b)\\s*`,keywords:`return throw case`,relevance:0,contains:[_,e.REGEXP_MODE,{className:`function`,begin:j,returnBegin:!0,end:`\\s*=>`,contains:[{className:`params`,variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:b}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:a},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:`xml`,contains:[{begin:o.begin,end:o.end,skip:!0,contains:[`self`]}]}]},T,{beginKeywords:`while if switch catch for`},{begin:`\\b(?!function)`+e.UNDERSCORE_IDENT_RE+`\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{`,returnBegin:!0,label:`func.def`,contains:[x,e.inherit(e.TITLE_MODE,{begin:r,className:`title.function`})]},{match:/\.\.\./,relevance:0},k,{match:`\\$`+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:`title.function`},contains:[x]},O,E,S,A,{match:/\$[(.]/}]}}function Fn(e){let t=e.regex,n=Pn(e),r=En,i=[`any`,`void`,`number`,`boolean`,`string`,`object`,`never`,`symbol`,`bigint`,`unknown`],a={begin:[/namespace/,/\s+/,e.IDENT_RE],beginScope:{1:`keyword`,3:`title.class`}},o={beginKeywords:`interface`,end:/\{/,excludeEnd:!0,keywords:{keyword:`interface extends`,built_in:i},contains:[n.exports.CLASS_REFERENCE]},s={className:`meta`,relevance:10,begin:/^\s*['"]use strict['"]/},c={$pattern:En,keyword:Dn.concat([`type`,`interface`,`public`,`private`,`protected`,`implements`,`declare`,`abstract`,`readonly`,`enum`,`override`,`satisfies`]),literal:On,built_in:Nn.concat(i),"variable.language":Mn},l={className:`meta`,begin:`@`+r},u=(e,t,n)=>{let r=e.contains.findIndex(e=>e.label===t);if(r===-1)throw Error(`can not find mode to replace`);e.contains.splice(r,1,n)};Object.assign(n.keywords,c),n.exports.PARAMS_CONTAINS.push(l);let d=n.contains.find(e=>e.scope===`attr`),f=Object.assign({},d,{match:t.concat(r,t.lookahead(/\s*\?:/))});n.exports.PARAMS_CONTAINS.push([n.exports.CLASS_REFERENCE,d,f]),n.contains=n.contains.concat([l,a,o,f]),u(n,`shebang`,e.SHEBANG()),u(n,`use_strict`,s);let p=n.contains.find(e=>e.label===`func.def`);return p.relevance=0,Object.assign(n,{name:`TypeScript`,aliases:[`ts`,`tsx`,`mts`,`cts`]}),n}function In(e){let t=e.regex,n=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,i={className:`symbol`,begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},a={begin:/\s/,contains:[{className:`keyword`,begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},o=e.inherit(a,{begin:/\(/,end:/\)/}),s=e.inherit(e.APOS_STRING_MODE,{className:`string`}),c=e.inherit(e.QUOTE_STRING_MODE,{className:`string`}),l={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:`attr`,begin:r,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:`string`,endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[i]},{begin:/'/,end:/'/,contains:[i]},{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:[a,c,s,o,{begin:/\[/,end:/\]/,contains:[{className:`meta`,begin:/<![a-z]/,end:/>/,contains:[a,o,c,s]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},i,{className:`meta`,end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[c]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:`tag`,begin:/<style(?=\s|>)/,end:/>/,keywords:{name:`style`},contains:[l],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:[`css`,`xml`]}},{className:`tag`,begin:/<script(?=\s|>)/,end:/>/,keywords:{name:`script`},contains:[l],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:[`javascript`,`handlebars`,`xml`]}},{className:`tag`,begin:/<>|<\/>/},{className:`tag`,begin:t.concat(/</,t.lookahead(t.concat(n,t.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:`name`,begin:n,relevance:0,starts:l}]},{className:`tag`,begin:t.concat(/<\//,t.lookahead(t.concat(n,/>/))),contains:[{className:`name`,begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}var Ln=document.createElement(`style`);Ln.innerText=[hn,mn].join(`
102
+ `),document.head.appendChild(Ln),gn.registerLanguage(`typescript`,Fn),gn.registerLanguage(`html`,In),gn.registerLanguage(`css`,Tn);function Rn(...e){let t=document.createElement(`div`),n=document.createElement(`div`);n.classList.add(`tab-control`);let r=document.createElement(`div`);return e.forEach(n=>{t.appendChild(n),n.addEventListener(`click`,()=>{e.forEach(e=>e.removeAttribute(`selected`)),n.setAttribute(`selected`,``),r.innerHTML=``,r.appendChild(n.content),r.className=n.className,r.classList.add(`tab-content`)})}),n.appendChild(t),n.appendChild(r),r.classList.add(`tab-content`),e[0].setAttribute(`selected`,``),r.appendChild(e[0].content),n}function zn(e,t){let n=document.createElement(`div`);return n.role=`tab`,n.tabIndex=0,n.innerText=e,n.content=t,t.tagName==`PRE`&&n.classList.add(`code`),n}function Bn(e,t){let n=document.createElement(`template`);if(typeof t==`string`)return n.innerHTML=`<${e}>${t}</${e}>`,n.content.firstElementChild;{n.innerHTML=`<${e}></${e}>`;let r=n.content.firstElementChild;return t.forEach(e=>r.appendChild(e)),r}}async function Vn(e,t,n){let r=t.mainContent,i=typeof t.css==`string`?void 0:t.css?.label,a=typeof t.css==`string`?t.css:t.css?.content,o=`example-preview-${n}`,s;if(t.isolateMainContent){s=document.createElement(`div`);let e=s.attachShadow({mode:`open`});if(e.innerHTML=r,a){let t=new CSSStyleSheet;t.replaceSync(a),e.adoptedStyleSheets=[t]}}else s=Bn(`div`,r),a&&Un(`#${o}`,a);s.id=o;let c=Rn(zn(`Preview`,s),...r?[zn(`HTML`,Hn(`html`,r))]:[],...a?[zn(i??`CSS`,Hn(`css`,a))]:[],...t.initializer&&t.initializer.content?[zn(t.initializer.label??`TS`,Hn(`typescript`,t.initializer.content))]:[],...(t.additionalSources||[]).map(e=>zn(e.label,Hn(e.language,e.content))));t.description&&e.appendChild(Bn(`div`,t.description));let l=Bn(`div`,[c]);l.classList.add(`example`),e.appendChild(l),t.initializer?.initialize&&await t.initializer.initialize(s)}function Hn(e,t){let n=t.split(/\r?\n/).map(e=>{let t=e.indexOf(`///`);if(t>-1){let n=e.substring(t+3).trimStart();return n?e.replace(/^(\s*)([^\s].*)$/,`$1${n}`):void 0}return e}).filter(e=>e!==void 0).join(`
103
+ `).trim();return e&&e!=`raw`&&(n=gn.highlight(n,{language:e}).value),Bn(`pre`,[Bn(`code`,n)])}function Un(e,t){let n=document.createElement(`style`);n.innerHTML=nn().use((0,rn.default)({prefix:e})).process(t).css,document.head.appendChild(n)}async function Wn(e,t=document.body){let n=Kn(t),r=0;return Object.keys(e).sort().map(async t=>{let i=document.createElement(`div`);i.className=`example-container`,n.appendChild(i);let a=e[t].default;await Vn(i,a,r++)})}function Gn(e){let t=document.createElement(`div`);t.id=`examples-container`;let n=e.querySelector(`#examples`);return n?n.after(t):e.appendChild(t),t}function Kn(e){return e.children?Gn(e):e}var qn=`<h1 id="@cas-smartdesign/popover">@cas-smartdesign/popover</h1>
100
104
  <p>A popover element with SmartDesign look &amp; feel.</p>
105
+ <p>This element must be used together with the design tokens of SmartDesign.
106
+ For an independent application, make sure to include the @cas-smartdesign/design-tokens package.
107
+ For a web app / web widget, refer to the official documentation about design token usage.</p>
101
108
  <h2 id="attributes">Attributes</h2>
102
109
  <ul>
103
110
  <li><code>placement</code>: <strong><em>string (default: &quot;auto&quot;)</em></strong><ul>
@@ -191,11 +198,11 @@ https://github.com/highlightjs/highlight.js/issues/2277`),se=A,V=I),H===void 0&&
191
198
  </ul>
192
199
  <h2 id="custom-events">Custom events</h2>
193
200
  <ul>
194
- <li><code>open</code><ul>
201
+ <li><code>sd-popover-open</code><ul>
195
202
  <li>Dispatched when the popover has opened.</li>
196
203
  </ul>
197
204
  </li>
198
- <li><code>close</code><ul>
205
+ <li><code>sd-popover-close</code><ul>
199
206
  <li>Dispatched when the popover has closed.</li>
200
207
  </ul>
201
208
  </li>
@@ -204,4 +211,4 @@ https://github.com/highlightjs/highlight.js/issues/2277`),se=A,V=I),H===void 0&&
204
211
  <ul>
205
212
  <li>The first child element represents the content of the popover window.</li>
206
213
  </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":Xi}),document.querySelector(".markdown-body"));export{at as P};
214
+ `,Jn=document.querySelector(`#markdown-container`);Jn.innerHTML=qn,Wn(Object.assign({"./examples/1_declarative_button_trigger/index.ts":f,"./examples/2_declarative_hover_trigger/index.ts":g,"./examples/3_created_from_source/index.ts":T}),document.querySelector(`.markdown-body`));export{Dt as t};