@cas-smartdesign/popover 4.1.1 → 4.2.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.css +1 -1
- package/dist/docs/doc.mjs +36 -40
- package/dist/popover-with-externals.js +1 -1
- package/dist/popover-with-externals.js.map +3 -3
- package/dist/popover.mjs +59 -59
- package/dist/popover.mjs.map +1 -1
- package/npm-third-party-licenses.json +51 -46
- package/package.json +3 -3
- package/readme.md +0 -2
package/dist/docs/doc.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const
|
|
1
|
+
(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))a(n);new MutationObserver(n=>{for(const u of n)if(u.type==="childList")for(const l of u.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&a(l)}).observe(document,{childList:!0,subtree:!0});function i(n){const u={};return n.integrity&&(u.integrity=n.integrity),n.referrerPolicy&&(u.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?u.credentials="include":n.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function a(n){if(n.ep)return;n.ep=!0;const u=i(n);fetch(n.href,u)}})();const ji=`<!-- Load element with all dependencies directly -->
|
|
2
2
|
<script src="./popover-with-externals.js"><\/script>
|
|
3
3
|
|
|
4
4
|
<div>
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
</sd-popover>
|
|
12
12
|
<button id="popover-trigger-button">Open modal popover</button>
|
|
13
13
|
</div>
|
|
14
|
-
`,
|
|
15
|
-
`,
|
|
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
16
|
<script src="./popover-with-externals.js"><\/script>
|
|
17
17
|
|
|
18
18
|
<div>
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
>Hover to open the popover</span
|
|
27
27
|
>
|
|
28
28
|
</div>
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
`,
|
|
32
|
-
`,
|
|
29
|
+
`,$i=`<h3 id="tooltip-like-popover">Tooltip-like popover</h3>
|
|
30
|
+
`,Ui={mainContent:zi,description:$i},Fi=Object.freeze(Object.defineProperty({__proto__:null,default:Ui},Symbol.toStringTag,{value:"Module"})),qi="modulepreload",Wi=function(t,e){return new URL(t,e).href},Jr={},Hi=function(e,i,a){let n=Promise.resolve();if(i&&i.length>0){let f=function(r){return Promise.all(r.map(c=>Promise.resolve(c).then(o=>({status:"fulfilled",value:o}),o=>({status:"rejected",reason:o}))))};const l=document.getElementsByTagName("link"),h=document.querySelector("meta[property=csp-nonce]"),b=h?.nonce||h?.getAttribute("nonce");n=f(i.map(r=>{if(r=Wi(r,a),r in Jr)return;Jr[r]=!0;const c=r.endsWith(".css"),o=c?'[rel="stylesheet"]':"";if(!!a)for(let d=l.length-1;d>=0;d--){const m=l[d];if(m.href===r&&(!c||m.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${r}"]${o}`))return;const p=document.createElement("link");if(p.rel=c?"stylesheet":qi,c||(p.as="script"),p.crossOrigin="",p.href=r,b&&p.setAttribute("nonce",b),document.head.appendChild(p),c)return new Promise((d,m)=>{p.addEventListener("load",d),p.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${r}`)))})}))}function u(l){const h=new Event("vite:preloadError",{cancelable:!0});if(h.payload=l,window.dispatchEvent(h),!h.defaultPrevented)throw l}return n.then(l=>{for(const h of l||[])h.status==="rejected"&&u(h.reason);return e().catch(u)})},Gi=`<div id="popover-from-source-container" style="height: 150px"></div>
|
|
31
|
+
`,Vi=`<h3 id="create-and-access-popover-from-code">Create and access popover from code</h3>
|
|
32
|
+
`,Zi=`import "@cas-smartdesign/popover";
|
|
33
33
|
import Popover from "@cas-smartdesign/popover";
|
|
34
34
|
|
|
35
35
|
const container = document.querySelector("#popover-from-source-container");
|
|
@@ -59,41 +59,44 @@ popover.appendChild(content);
|
|
|
59
59
|
|
|
60
60
|
container.appendChild(button);
|
|
61
61
|
container.appendChild(popover);
|
|
62
|
-
`,Wi={mainContent:Ui,description:Fi,initializer:{content:Hi,type:"typescript",initialize:()=>zi(()=>import("./3_created_from_source.js"),__vite__mapDeps([]),import.meta.url)}},qi=Object.freeze(Object.defineProperty({__proto__:null,default:Wi},Symbol.toStringTag,{value:"Module"}));var J="top",ne="bottom",ie="right",Y="left",ur="auto",nt=[J,ne,ie,Y],Me="start",Xe="end",Gi="clippingParents",mn="viewport",Ue="popper",Vi="reference",Tr=nt.reduce(function(n,e){return n.concat([e+"-"+Me,e+"-"+Xe])},[]),bn=[].concat(nt,[ur]).reduce(function(n,e){return n.concat([e,e+"-"+Me,e+"-"+Xe])},[]),Zi="beforeRead",Xi="read",Ki="afterRead",Ji="beforeMain",Yi="main",Qi="afterMain",es="beforeWrite",ts="write",rs="afterWrite",ns=[Zi,Xi,Ki,Ji,Yi,Qi,es,ts,rs];function pe(n){return n?(n.nodeName||"").toLowerCase():null}function te(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var e=n.ownerDocument;return e&&e.defaultView||window}return n}function Oe(n){var e=te(n).Element;return n instanceof e||n instanceof Element}function re(n){var e=te(n).HTMLElement;return n instanceof e||n instanceof HTMLElement}function fr(n){if(typeof ShadowRoot>"u")return!1;var e=te(n).ShadowRoot;return n instanceof e||n instanceof ShadowRoot}function is(n){var e=n.state;Object.keys(e.elements).forEach(function(t){var r=e.styles[t]||{},i=e.attributes[t]||{},o=e.elements[t];!re(o)||!pe(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(s){var a=i[s];a===!1?o.removeAttribute(s):o.setAttribute(s,a===!0?"":a)}))})}function ss(n){var e=n.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(r){var i=e.elements[r],o=e.attributes[r]||{},s=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:t[r]),a=s.reduce(function(l,c){return l[c]="",l},{});!re(i)||!pe(i)||(Object.assign(i.style,a),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const os={name:"applyStyles",enabled:!0,phase:"write",fn:is,effect:ss,requires:["computeStyles"]};function he(n){return n.split("-")[0]}var xe=Math.max,St=Math.min,Ne=Math.round;function Vt(){var n=navigator.userAgentData;return n!=null&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function vn(){return!/^((?!chrome|android).)*safari/i.test(Vt())}function Te(n,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var r=n.getBoundingClientRect(),i=1,o=1;e&&re(n)&&(i=n.offsetWidth>0&&Ne(r.width)/n.offsetWidth||1,o=n.offsetHeight>0&&Ne(r.height)/n.offsetHeight||1);var s=Oe(n)?te(n):window,a=s.visualViewport,l=!vn()&&t,c=(r.left+(l&&a?a.offsetLeft:0))/i,u=(r.top+(l&&a?a.offsetTop:0))/o,p=r.width/i,d=r.height/o;return{width:p,height:d,top:u,right:c+p,bottom:u+d,left:c,x:c,y:u}}function hr(n){var e=Te(n),t=n.offsetWidth,r=n.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:n.offsetLeft,y:n.offsetTop,width:t,height:r}}function yn(n,e){var t=e.getRootNode&&e.getRootNode();if(n.contains(e))return!0;if(t&&fr(t)){var r=e;do{if(r&&n.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ge(n){return te(n).getComputedStyle(n)}function as(n){return["table","td","th"].indexOf(pe(n))>=0}function ve(n){return((Oe(n)?n.ownerDocument:n.document)||window.document).documentElement}function Nt(n){return pe(n)==="html"?n:n.assignedSlot||n.parentNode||(fr(n)?n.host:null)||ve(n)}function Lr(n){return!re(n)||ge(n).position==="fixed"?null:n.offsetParent}function ls(n){var e=/firefox/i.test(Vt()),t=/Trident/i.test(Vt());if(t&&re(n)){var r=ge(n);if(r.position==="fixed")return null}var i=Nt(n);for(fr(i)&&(i=i.host);re(i)&&["html","body"].indexOf(pe(i))<0;){var o=ge(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||e&&o.willChange==="filter"||e&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function it(n){for(var e=te(n),t=Lr(n);t&&as(t)&&ge(t).position==="static";)t=Lr(t);return t&&(pe(t)==="html"||pe(t)==="body"&&ge(t).position==="static")?e:t||ls(n)||e}function pr(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function qe(n,e,t){return xe(n,St(e,t))}function cs(n,e,t){var r=qe(n,e,t);return r>t?t:r}function wn(){return{top:0,right:0,bottom:0,left:0}}function xn(n){return Object.assign({},wn(),n)}function En(n,e){return e.reduce(function(t,r){return t[r]=n,t},{})}var us=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,xn(typeof e!="number"?e:En(e,nt))};function fs(n){var e,t=n.state,r=n.name,i=n.options,o=t.elements.arrow,s=t.modifiersData.popperOffsets,a=he(t.placement),l=pr(a),c=[Y,ie].indexOf(a)>=0,u=c?"height":"width";if(!(!o||!s)){var p=us(i.padding,t),d=hr(o),b=l==="y"?J:Y,x=l==="y"?ne:ie,O=t.rects.reference[u]+t.rects.reference[l]-s[l]-t.rects.popper[u],h=s[l]-t.rects.reference[l],_=it(o),P=_?l==="y"?_.clientHeight||0:_.clientWidth||0:0,M=O/2-h/2,y=p[b],S=P-d[u]-p[x],C=P/2-d[u]/2+M,N=qe(y,C,S),L=l;t.modifiersData[r]=(e={},e[L]=N,e.centerOffset=N-C,e)}}function hs(n){var e=n.state,t=n.options,r=t.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=e.elements.popper.querySelector(i),!i)||yn(e.elements.popper,i)&&(e.elements.arrow=i))}const ps={name:"arrow",enabled:!0,phase:"main",fn:fs,effect:hs,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Le(n){return n.split("-")[1]}var ds={top:"auto",right:"auto",bottom:"auto",left:"auto"};function gs(n,e){var t=n.x,r=n.y,i=e.devicePixelRatio||1;return{x:Ne(t*i)/i||0,y:Ne(r*i)/i||0}}function jr(n){var e,t=n.popper,r=n.popperRect,i=n.placement,o=n.variation,s=n.offsets,a=n.position,l=n.gpuAcceleration,c=n.adaptive,u=n.roundOffsets,p=n.isFixed,d=s.x,b=d===void 0?0:d,x=s.y,O=x===void 0?0:x,h=typeof u=="function"?u({x:b,y:O}):{x:b,y:O};b=h.x,O=h.y;var _=s.hasOwnProperty("x"),P=s.hasOwnProperty("y"),M=Y,y=J,S=window;if(c){var C=it(t),N="clientHeight",L="clientWidth";if(C===te(t)&&(C=ve(t),ge(C).position!=="static"&&a==="absolute"&&(N="scrollHeight",L="scrollWidth")),C=C,i===J||(i===Y||i===ie)&&o===Xe){y=ne;var R=p&&C===S&&S.visualViewport?S.visualViewport.height:C[N];O-=R-r.height,O*=l?1:-1}if(i===Y||(i===J||i===ne)&&o===Xe){M=ie;var I=p&&C===S&&S.visualViewport?S.visualViewport.width:C[L];b-=I-r.width,b*=l?1:-1}}var H=Object.assign({position:a},c&&ds),X=u===!0?gs({x:b,y:O},te(t)):{x:b,y:O};if(b=X.x,O=X.y,l){var W;return Object.assign({},H,(W={},W[y]=P?"0":"",W[M]=_?"0":"",W.transform=(S.devicePixelRatio||1)<=1?"translate("+b+"px, "+O+"px)":"translate3d("+b+"px, "+O+"px, 0)",W))}return Object.assign({},H,(e={},e[y]=P?O+"px":"",e[M]=_?b+"px":"",e.transform="",e))}function ms(n){var e=n.state,t=n.options,r=t.gpuAcceleration,i=r===void 0?!0:r,o=t.adaptive,s=o===void 0?!0:o,a=t.roundOffsets,l=a===void 0?!0:a,c={placement:he(e.placement),variation:Le(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,jr(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,jr(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const bs={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ms,data:{}};var ut={passive:!0};function vs(n){var e=n.state,t=n.instance,r=n.options,i=r.scroll,o=i===void 0?!0:i,s=r.resize,a=s===void 0?!0:s,l=te(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&c.forEach(function(u){u.addEventListener("scroll",t.update,ut)}),a&&l.addEventListener("resize",t.update,ut),function(){o&&c.forEach(function(u){u.removeEventListener("scroll",t.update,ut)}),a&&l.removeEventListener("resize",t.update,ut)}}const ys={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:vs,data:{}};var ws={left:"right",right:"left",bottom:"top",top:"bottom"};function Et(n){return n.replace(/left|right|bottom|top/g,function(e){return ws[e]})}var xs={start:"end",end:"start"};function $r(n){return n.replace(/start|end/g,function(e){return xs[e]})}function dr(n){var e=te(n),t=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:t,scrollTop:r}}function gr(n){return Te(ve(n)).left+dr(n).scrollLeft}function Es(n,e){var t=te(n),r=ve(n),i=t.visualViewport,o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;var c=vn();(c||!c&&e==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a+gr(n),y:l}}function Os(n){var e,t=ve(n),r=dr(n),i=(e=n.ownerDocument)==null?void 0:e.body,o=xe(t.scrollWidth,t.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=xe(t.scrollHeight,t.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+gr(n),l=-r.scrollTop;return ge(i||t).direction==="rtl"&&(a+=xe(t.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:a,y:l}}function mr(n){var e=ge(n),t=e.overflow,r=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+i+r)}function On(n){return["html","body","#document"].indexOf(pe(n))>=0?n.ownerDocument.body:re(n)&&mr(n)?n:On(Nt(n))}function Ge(n,e){var t;e===void 0&&(e=[]);var r=On(n),i=r===((t=n.ownerDocument)==null?void 0:t.body),o=te(r),s=i?[o].concat(o.visualViewport||[],mr(r)?r:[]):r,a=e.concat(s);return i?a:a.concat(Ge(Nt(s)))}function Zt(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function As(n,e){var t=Te(n,!1,e==="fixed");return t.top=t.top+n.clientTop,t.left=t.left+n.clientLeft,t.bottom=t.top+n.clientHeight,t.right=t.left+n.clientWidth,t.width=n.clientWidth,t.height=n.clientHeight,t.x=t.left,t.y=t.top,t}function Ir(n,e,t){return e===mn?Zt(Es(n,t)):Oe(e)?As(e,t):Zt(Os(ve(n)))}function Ss(n){var e=Ge(Nt(n)),t=["absolute","fixed"].indexOf(ge(n).position)>=0,r=t&&re(n)?it(n):n;return Oe(r)?e.filter(function(i){return Oe(i)&&yn(i,r)&&pe(i)!=="body"}):[]}function _s(n,e,t,r){var i=e==="clippingParents"?Ss(n):[].concat(e),o=[].concat(i,[t]),s=o[0],a=o.reduce(function(l,c){var u=Ir(n,c,r);return l.top=xe(u.top,l.top),l.right=St(u.right,l.right),l.bottom=St(u.bottom,l.bottom),l.left=xe(u.left,l.left),l},Ir(n,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function An(n){var e=n.reference,t=n.element,r=n.placement,i=r?he(r):null,o=r?Le(r):null,s=e.x+e.width/2-t.width/2,a=e.y+e.height/2-t.height/2,l;switch(i){case J:l={x:s,y:e.y-t.height};break;case ne:l={x:s,y:e.y+e.height};break;case ie:l={x:e.x+e.width,y:a};break;case Y:l={x:e.x-t.width,y:a};break;default:l={x:e.x,y:e.y}}var c=i?pr(i):null;if(c!=null){var u=c==="y"?"height":"width";switch(o){case Me:l[c]=l[c]-(e[u]/2-t[u]/2);break;case Xe:l[c]=l[c]+(e[u]/2-t[u]/2);break}}return l}function Ke(n,e){e===void 0&&(e={});var t=e,r=t.placement,i=r===void 0?n.placement:r,o=t.strategy,s=o===void 0?n.strategy:o,a=t.boundary,l=a===void 0?Gi:a,c=t.rootBoundary,u=c===void 0?mn:c,p=t.elementContext,d=p===void 0?Ue:p,b=t.altBoundary,x=b===void 0?!1:b,O=t.padding,h=O===void 0?0:O,_=xn(typeof h!="number"?h:En(h,nt)),P=d===Ue?Vi:Ue,M=n.rects.popper,y=n.elements[x?P:d],S=_s(Oe(y)?y:y.contextElement||ve(n.elements.popper),l,u,s),C=Te(n.elements.reference),N=An({reference:C,element:M,strategy:"absolute",placement:i}),L=Zt(Object.assign({},M,N)),R=d===Ue?L:C,I={top:S.top-R.top+_.top,bottom:R.bottom-S.bottom+_.bottom,left:S.left-R.left+_.left,right:R.right-S.right+_.right},H=n.modifiersData.offset;if(d===Ue&&H){var X=H[i];Object.keys(I).forEach(function(W){var se=[ie,ne].indexOf(W)>=0?1:-1,K=[J,ne].indexOf(W)>=0?"y":"x";I[W]+=X[K]*se})}return I}function ks(n,e){e===void 0&&(e={});var t=e,r=t.placement,i=t.boundary,o=t.rootBoundary,s=t.padding,a=t.flipVariations,l=t.allowedAutoPlacements,c=l===void 0?bn:l,u=Le(r),p=u?a?Tr:Tr.filter(function(x){return Le(x)===u}):nt,d=p.filter(function(x){return c.indexOf(x)>=0});d.length===0&&(d=p);var b=d.reduce(function(x,O){return x[O]=Ke(n,{placement:O,boundary:i,rootBoundary:o,padding:s})[he(O)],x},{});return Object.keys(b).sort(function(x,O){return b[x]-b[O]})}function Cs(n){if(he(n)===ur)return[];var e=Et(n);return[$r(n),e,$r(e)]}function Rs(n){var e=n.state,t=n.options,r=n.name;if(!e.modifiersData[r]._skip){for(var i=t.mainAxis,o=i===void 0?!0:i,s=t.altAxis,a=s===void 0?!0:s,l=t.fallbackPlacements,c=t.padding,u=t.boundary,p=t.rootBoundary,d=t.altBoundary,b=t.flipVariations,x=b===void 0?!0:b,O=t.allowedAutoPlacements,h=e.options.placement,_=he(h),P=_===h,M=l||(P||!x?[Et(h)]:Cs(h)),y=[h].concat(M).reduce(function(oe,U){return oe.concat(he(U)===ur?ks(e,{placement:U,boundary:u,rootBoundary:p,padding:c,flipVariations:x,allowedAutoPlacements:O}):U)},[]),S=e.rects.reference,C=e.rects.popper,N=new Map,L=!0,R=y[0],I=0;I<y.length;I++){var H=y[I],X=he(H),W=Le(H)===Me,se=[J,ne].indexOf(X)>=0,K=se?"width":"height",G=Ke(e,{placement:H,boundary:u,rootBoundary:p,altBoundary:d,padding:c}),f=se?W?ie:Y:W?ne:J;S[K]>C[K]&&(f=Et(f));var m=Et(f),w=[];if(o&&w.push(G[X]<=0),a&&w.push(G[f]<=0,G[m]<=0),w.every(function(oe){return oe})){R=H,L=!1;break}N.set(H,w)}if(L)for(var k=x?3:1,D=function(U){var V=y.find(function(ye){var ce=N.get(ye);if(ce)return ce.slice(0,U).every(function(_e){return _e})});if(V)return R=V,"break"},q=k;q>0;q--){var Q=D(q);if(Q==="break")break}e.placement!==R&&(e.modifiersData[r]._skip=!0,e.placement=R,e.reset=!0)}}const Ps={name:"flip",enabled:!0,phase:"main",fn:Rs,requiresIfExists:["offset"],data:{_skip:!1}};function Dr(n,e,t){return t===void 0&&(t={x:0,y:0}),{top:n.top-e.height-t.y,right:n.right-e.width+t.x,bottom:n.bottom-e.height+t.y,left:n.left-e.width-t.x}}function Br(n){return[J,ie,ne,Y].some(function(e){return n[e]>=0})}function Ms(n){var e=n.state,t=n.name,r=e.rects.reference,i=e.rects.popper,o=e.modifiersData.preventOverflow,s=Ke(e,{elementContext:"reference"}),a=Ke(e,{altBoundary:!0}),l=Dr(s,r),c=Dr(a,i,o),u=Br(l),p=Br(c);e.modifiersData[t]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:p},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":p})}const Ns={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Ms};function Ts(n,e,t){var r=he(n),i=[Y,J].indexOf(r)>=0?-1:1,o=typeof t=="function"?t(Object.assign({},e,{placement:n})):t,s=o[0],a=o[1];return s=s||0,a=(a||0)*i,[Y,ie].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function Ls(n){var e=n.state,t=n.options,r=n.name,i=t.offset,o=i===void 0?[0,0]:i,s=bn.reduce(function(u,p){return u[p]=Ts(p,e.rects,o),u},{}),a=s[e.placement],l=a.x,c=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[r]=s}const js={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Ls};function $s(n){var e=n.state,t=n.name;e.modifiersData[t]=An({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const Is={name:"popperOffsets",enabled:!0,phase:"read",fn:$s,data:{}};function Ds(n){return n==="x"?"y":"x"}function Bs(n){var e=n.state,t=n.options,r=n.name,i=t.mainAxis,o=i===void 0?!0:i,s=t.altAxis,a=s===void 0?!1:s,l=t.boundary,c=t.rootBoundary,u=t.altBoundary,p=t.padding,d=t.tether,b=d===void 0?!0:d,x=t.tetherOffset,O=x===void 0?0:x,h=Ke(e,{boundary:l,rootBoundary:c,padding:p,altBoundary:u}),_=he(e.placement),P=Le(e.placement),M=!P,y=pr(_),S=Ds(y),C=e.modifiersData.popperOffsets,N=e.rects.reference,L=e.rects.popper,R=typeof O=="function"?O(Object.assign({},e.rects,{placement:e.placement})):O,I=typeof R=="number"?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),H=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,X={x:0,y:0};if(C){if(o){var W,se=y==="y"?J:Y,K=y==="y"?ne:ie,G=y==="y"?"height":"width",f=C[y],m=f+h[se],w=f-h[K],k=b?-L[G]/2:0,D=P===Me?N[G]:L[G],q=P===Me?-L[G]:-N[G],Q=e.elements.arrow,oe=b&&Q?hr(Q):{width:0,height:0},U=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:wn(),V=U[se],ye=U[K],ce=qe(0,N[G],oe[G]),_e=M?N[G]/2-k-ce-V-I.mainAxis:D-ce-V-I.mainAxis,zt=M?-N[G]/2+k+ce+ye+I.mainAxis:q+ce+ye+I.mainAxis,Be=e.elements.arrow&&it(e.elements.arrow),Ut=Be?y==="y"?Be.clientTop||0:Be.clientLeft||0:0,at=(W=H==null?void 0:H[y])!=null?W:0,ke=f+_e-at-Ut,lt=f+zt-at,ee=qe(b?St(m,ke):m,f,b?xe(w,lt):w);C[y]=ee,X[y]=ee-f}if(a){var ct,ze=y==="x"?J:Y,E=y==="x"?ne:ie,ue=C[S],F=S==="y"?"height":"width",j=ue+h[ze],we=ue-h[E],ae=[J,Y].indexOf(_)!==-1,Ce=(ct=H==null?void 0:H[S])!=null?ct:0,Re=ae?j:ue-N[F]-L[F]-Ce+I.altAxis,g=ae?ue+N[F]+L[F]-Ce-I.altAxis:we,v=b&&ae?cs(Re,ue,g):qe(b?Re:j,ue,b?g:we);C[S]=v,X[S]=v-ue}e.modifiersData[r]=X}}const zs={name:"preventOverflow",enabled:!0,phase:"main",fn:Bs,requiresIfExists:["offset"]};function Us(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function Fs(n){return n===te(n)||!re(n)?dr(n):Us(n)}function Hs(n){var e=n.getBoundingClientRect(),t=Ne(e.width)/n.offsetWidth||1,r=Ne(e.height)/n.offsetHeight||1;return t!==1||r!==1}function Ws(n,e,t){t===void 0&&(t=!1);var r=re(e),i=re(e)&&Hs(e),o=ve(e),s=Te(n,i,t),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!t)&&((pe(e)!=="body"||mr(o))&&(a=Fs(e)),re(e)?(l=Te(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):o&&(l.x=gr(o))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function qs(n){var e=new Map,t=new Set,r=[];n.forEach(function(o){e.set(o.name,o)});function i(o){t.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(a){if(!t.has(a)){var l=e.get(a);l&&i(l)}}),r.push(o)}return n.forEach(function(o){t.has(o.name)||i(o)}),r}function Gs(n){var e=qs(n);return ns.reduce(function(t,r){return t.concat(e.filter(function(i){return i.phase===r}))},[])}function Vs(n){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(n())})})),e}}function Zs(n){var e=n.reduce(function(t,r){var i=t[r.name];return t[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,t},{});return Object.keys(e).map(function(t){return e[t]})}var zr={placement:"bottom",modifiers:[],strategy:"absolute"};function Ur(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function Xs(n){n===void 0&&(n={});var e=n,t=e.defaultModifiers,r=t===void 0?[]:t,i=e.defaultOptions,o=i===void 0?zr:i;return function(a,l,c){c===void 0&&(c=o);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},zr,o),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},p=[],d=!1,b={state:u,setOptions:function(_){var P=typeof _=="function"?_(u.options):_;O(),u.options=Object.assign({},o,u.options,P),u.scrollParents={reference:Oe(a)?Ge(a):a.contextElement?Ge(a.contextElement):[],popper:Ge(l)};var M=Gs(Zs([].concat(r,u.options.modifiers)));return u.orderedModifiers=M.filter(function(y){return y.enabled}),x(),b.update()},forceUpdate:function(){if(!d){var _=u.elements,P=_.reference,M=_.popper;if(Ur(P,M)){u.rects={reference:Ws(P,it(M),u.options.strategy==="fixed"),popper:hr(M)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(I){return u.modifiersData[I.name]=Object.assign({},I.data)});for(var y=0;y<u.orderedModifiers.length;y++){if(u.reset===!0){u.reset=!1,y=-1;continue}var S=u.orderedModifiers[y],C=S.fn,N=S.options,L=N===void 0?{}:N,R=S.name;typeof C=="function"&&(u=C({state:u,options:L,name:R,instance:b})||u)}}}},update:Vs(function(){return new Promise(function(h){b.forceUpdate(),h(u)})}),destroy:function(){O(),d=!0}};if(!Ur(a,l))return b;b.setOptions(c).then(function(h){!d&&c.onFirstUpdate&&c.onFirstUpdate(h)});function x(){u.orderedModifiers.forEach(function(h){var _=h.name,P=h.options,M=P===void 0?{}:P,y=h.effect;if(typeof y=="function"){var S=y({state:u,name:_,instance:b,options:M}),C=function(){};p.push(S||C)}})}function O(){p.forEach(function(h){return h()}),p=[]}return b}}var Ks=[ys,Is,bs,os,js,Ps,zs,ps,Ns],Js=Xs({defaultModifiers:Ks});const Ys=`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="12" viewBox="0 0 24 12">\r
|
|
62
|
+
`,Xi={mainContent:Gi,description:Vi,initializer:{content:Zi,type:"typescript",initialize:()=>Hi(()=>import("./3_created_from_source.js"),[],import.meta.url)}},Ji=Object.freeze(Object.defineProperty({__proto__:null,default:Xi},Symbol.toStringTag,{value:"Module"}));var ue="top",ye="bottom",we="right",fe="left",Or="auto",ft=[ue,ye,we,fe],Xe="start",ct="end",Ki="clippingParents",zn="viewport",nt="popper",Yi="reference",Kr=ft.reduce(function(t,e){return t.concat([e+"-"+Xe,e+"-"+ct])},[]),$n=[].concat(ft,[Or]).reduce(function(t,e){return t.concat([e,e+"-"+Xe,e+"-"+ct])},[]),Qi="beforeRead",es="read",ts="afterRead",rs="beforeMain",ns="main",is="afterMain",ss="beforeWrite",os="write",as="afterWrite",ls=[Qi,es,ts,rs,ns,is,ss,os,as];function Pe(t){return t?(t.nodeName||"").toLowerCase():null}function de(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function We(t){var e=de(t).Element;return t instanceof e||t instanceof Element}function ve(t){var e=de(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function kr(t){if(typeof ShadowRoot>"u")return!1;var e=de(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function cs(t){var e=t.state;Object.keys(e.elements).forEach(function(i){var a=e.styles[i]||{},n=e.attributes[i]||{},u=e.elements[i];!ve(u)||!Pe(u)||(Object.assign(u.style,a),Object.keys(n).forEach(function(l){var h=n[l];h===!1?u.removeAttribute(l):u.setAttribute(l,h===!0?"":h)}))})}function us(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach(function(a){var n=e.elements[a],u=e.attributes[a]||{},l=Object.keys(e.styles.hasOwnProperty(a)?e.styles[a]:i[a]),h=l.reduce(function(b,f){return b[f]="",b},{});!ve(n)||!Pe(n)||(Object.assign(n.style,h),Object.keys(u).forEach(function(b){n.removeAttribute(b)}))})}}const fs={name:"applyStyles",enabled:!0,phase:"write",fn:cs,effect:us,requires:["computeStyles"]};function Re(t){return t.split("-")[0]}var qe=Math.max,Ct=Math.min,Je=Math.round;function xr(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Un(){return!/^((?!chrome|android).)*safari/i.test(xr())}function Ke(t,e,i){e===void 0&&(e=!1),i===void 0&&(i=!1);var a=t.getBoundingClientRect(),n=1,u=1;e&&ve(t)&&(n=t.offsetWidth>0&&Je(a.width)/t.offsetWidth||1,u=t.offsetHeight>0&&Je(a.height)/t.offsetHeight||1);var l=We(t)?de(t):window,h=l.visualViewport,b=!Un()&&i,f=(a.left+(b&&h?h.offsetLeft:0))/n,r=(a.top+(b&&h?h.offsetTop:0))/u,c=a.width/n,o=a.height/u;return{width:c,height:o,top:r,right:f+c,bottom:r+o,left:f,x:f,y:r}}function Sr(t){var e=Ke(t),i=t.offsetWidth,a=t.offsetHeight;return Math.abs(e.width-i)<=1&&(i=e.width),Math.abs(e.height-a)<=1&&(a=e.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:a}}function Fn(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(i&&kr(i)){var a=e;do{if(a&&t.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function je(t){return de(t).getComputedStyle(t)}function hs(t){return["table","td","th"].indexOf(Pe(t))>=0}function Be(t){return((We(t)?t.ownerDocument:t.document)||window.document).documentElement}function Pt(t){return Pe(t)==="html"?t:t.assignedSlot||t.parentNode||(kr(t)?t.host:null)||Be(t)}function Yr(t){return!ve(t)||je(t).position==="fixed"?null:t.offsetParent}function ps(t){var e=/firefox/i.test(xr()),i=/Trident/i.test(xr());if(i&&ve(t)){var a=je(t);if(a.position==="fixed")return null}var n=Pt(t);for(kr(n)&&(n=n.host);ve(n)&&["html","body"].indexOf(Pe(n))<0;){var u=je(n);if(u.transform!=="none"||u.perspective!=="none"||u.contain==="paint"||["transform","perspective"].indexOf(u.willChange)!==-1||e&&u.willChange==="filter"||e&&u.filter&&u.filter!=="none")return n;n=n.parentNode}return null}function ht(t){for(var e=de(t),i=Yr(t);i&&hs(i)&&je(i).position==="static";)i=Yr(i);return i&&(Pe(i)==="html"||Pe(i)==="body"&&je(i).position==="static")?e:i||ps(t)||e}function Ar(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function st(t,e,i){return qe(t,Ct(e,i))}function ds(t,e,i){var a=st(t,e,i);return a>i?i:a}function qn(){return{top:0,right:0,bottom:0,left:0}}function Wn(t){return Object.assign({},qn(),t)}function Hn(t,e){return e.reduce(function(i,a){return i[a]=t,i},{})}var gs=function(e,i){return e=typeof e=="function"?e(Object.assign({},i.rects,{placement:i.placement})):e,Wn(typeof e!="number"?e:Hn(e,ft))};function ms(t){var e,i=t.state,a=t.name,n=t.options,u=i.elements.arrow,l=i.modifiersData.popperOffsets,h=Re(i.placement),b=Ar(h),f=[fe,we].indexOf(h)>=0,r=f?"height":"width";if(!(!u||!l)){var c=gs(n.padding,i),o=Sr(u),s=b==="y"?ue:fe,p=b==="y"?ye:we,d=i.rects.reference[r]+i.rects.reference[b]-l[b]-i.rects.popper[r],m=l[b]-i.rects.reference[b],x=ht(u),E=x?b==="y"?x.clientHeight||0:x.clientWidth||0:0,w=d/2-m/2,y=c[s],v=E-o[r]-c[p],O=E/2-o[r]/2+w,S=st(y,O,v),N=b;i.modifiersData[a]=(e={},e[N]=S,e.centerOffset=S-O,e)}}function bs(t){var e=t.state,i=t.options,a=i.element,n=a===void 0?"[data-popper-arrow]":a;n!=null&&(typeof n=="string"&&(n=e.elements.popper.querySelector(n),!n)||Fn(e.elements.popper,n)&&(e.elements.arrow=n))}const vs={name:"arrow",enabled:!0,phase:"main",fn:ms,effect:bs,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ye(t){return t.split("-")[1]}var ys={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ws(t,e){var i=t.x,a=t.y,n=e.devicePixelRatio||1;return{x:Je(i*n)/n||0,y:Je(a*n)/n||0}}function Qr(t){var e,i=t.popper,a=t.popperRect,n=t.placement,u=t.variation,l=t.offsets,h=t.position,b=t.gpuAcceleration,f=t.adaptive,r=t.roundOffsets,c=t.isFixed,o=l.x,s=o===void 0?0:o,p=l.y,d=p===void 0?0:p,m=typeof r=="function"?r({x:s,y:d}):{x:s,y:d};s=m.x,d=m.y;var x=l.hasOwnProperty("x"),E=l.hasOwnProperty("y"),w=fe,y=ue,v=window;if(f){var O=ht(i),S="clientHeight",N="clientWidth";if(O===de(i)&&(O=Be(i),je(O).position!=="static"&&h==="absolute"&&(S="scrollHeight",N="scrollWidth")),O=O,n===ue||(n===fe||n===we)&&u===ct){y=ye;var L=c&&O===v&&v.visualViewport?v.visualViewport.height:O[S];d-=L-a.height,d*=b?1:-1}if(n===fe||(n===ue||n===ye)&&u===ct){w=we;var _=c&&O===v&&v.visualViewport?v.visualViewport.width:O[N];s-=_-a.width,s*=b?1:-1}}var F=Object.assign({position:h},f&&ys),$=r===!0?ws({x:s,y:d},de(i)):{x:s,y:d};if(s=$.x,d=$.y,b){var K;return Object.assign({},F,(K={},K[y]=E?"0":"",K[w]=x?"0":"",K.transform=(v.devicePixelRatio||1)<=1?"translate("+s+"px, "+d+"px)":"translate3d("+s+"px, "+d+"px, 0)",K))}return Object.assign({},F,(e={},e[y]=E?d+"px":"",e[w]=x?s+"px":"",e.transform="",e))}function xs(t){var e=t.state,i=t.options,a=i.gpuAcceleration,n=a===void 0?!0:a,u=i.adaptive,l=u===void 0?!0:u,h=i.roundOffsets,b=h===void 0?!0:h,f={placement:Re(e.placement),variation:Ye(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:n,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Qr(Object.assign({},f,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:l,roundOffsets:b})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Qr(Object.assign({},f,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:b})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const Es={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:xs,data:{}};var Ot={passive:!0};function Os(t){var e=t.state,i=t.instance,a=t.options,n=a.scroll,u=n===void 0?!0:n,l=a.resize,h=l===void 0?!0:l,b=de(e.elements.popper),f=[].concat(e.scrollParents.reference,e.scrollParents.popper);return u&&f.forEach(function(r){r.addEventListener("scroll",i.update,Ot)}),h&&b.addEventListener("resize",i.update,Ot),function(){u&&f.forEach(function(r){r.removeEventListener("scroll",i.update,Ot)}),h&&b.removeEventListener("resize",i.update,Ot)}}const ks={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Os,data:{}};var Ss={left:"right",right:"left",bottom:"top",top:"bottom"};function _t(t){return t.replace(/left|right|bottom|top/g,function(e){return Ss[e]})}var As={start:"end",end:"start"};function en(t){return t.replace(/start|end/g,function(e){return As[e]})}function _r(t){var e=de(t),i=e.pageXOffset,a=e.pageYOffset;return{scrollLeft:i,scrollTop:a}}function Cr(t){return Ke(Be(t)).left+_r(t).scrollLeft}function _s(t,e){var i=de(t),a=Be(t),n=i.visualViewport,u=a.clientWidth,l=a.clientHeight,h=0,b=0;if(n){u=n.width,l=n.height;var f=Un();(f||!f&&e==="fixed")&&(h=n.offsetLeft,b=n.offsetTop)}return{width:u,height:l,x:h+Cr(t),y:b}}function Cs(t){var e,i=Be(t),a=_r(t),n=(e=t.ownerDocument)==null?void 0:e.body,u=qe(i.scrollWidth,i.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),l=qe(i.scrollHeight,i.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),h=-a.scrollLeft+Cr(t),b=-a.scrollTop;return je(n||i).direction==="rtl"&&(h+=qe(i.clientWidth,n?n.clientWidth:0)-u),{width:u,height:l,x:h,y:b}}function Rr(t){var e=je(t),i=e.overflow,a=e.overflowX,n=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+n+a)}function Gn(t){return["html","body","#document"].indexOf(Pe(t))>=0?t.ownerDocument.body:ve(t)&&Rr(t)?t:Gn(Pt(t))}function ot(t,e){var i;e===void 0&&(e=[]);var a=Gn(t),n=a===((i=t.ownerDocument)==null?void 0:i.body),u=de(a),l=n?[u].concat(u.visualViewport||[],Rr(a)?a:[]):a,h=e.concat(l);return n?h:h.concat(ot(Pt(l)))}function Er(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Rs(t,e){var i=Ke(t,!1,e==="fixed");return i.top=i.top+t.clientTop,i.left=i.left+t.clientLeft,i.bottom=i.top+t.clientHeight,i.right=i.left+t.clientWidth,i.width=t.clientWidth,i.height=t.clientHeight,i.x=i.left,i.y=i.top,i}function tn(t,e,i){return e===zn?Er(_s(t,i)):We(e)?Rs(e,i):Er(Cs(Be(t)))}function Ps(t){var e=ot(Pt(t)),i=["absolute","fixed"].indexOf(je(t).position)>=0,a=i&&ve(t)?ht(t):t;return We(a)?e.filter(function(n){return We(n)&&Fn(n,a)&&Pe(n)!=="body"}):[]}function Ns(t,e,i,a){var n=e==="clippingParents"?Ps(t):[].concat(e),u=[].concat(n,[i]),l=u[0],h=u.reduce(function(b,f){var r=tn(t,f,a);return b.top=qe(r.top,b.top),b.right=Ct(r.right,b.right),b.bottom=Ct(r.bottom,b.bottom),b.left=qe(r.left,b.left),b},tn(t,l,a));return h.width=h.right-h.left,h.height=h.bottom-h.top,h.x=h.left,h.y=h.top,h}function Vn(t){var e=t.reference,i=t.element,a=t.placement,n=a?Re(a):null,u=a?Ye(a):null,l=e.x+e.width/2-i.width/2,h=e.y+e.height/2-i.height/2,b;switch(n){case ue:b={x:l,y:e.y-i.height};break;case ye:b={x:l,y:e.y+e.height};break;case we:b={x:e.x+e.width,y:h};break;case fe:b={x:e.x-i.width,y:h};break;default:b={x:e.x,y:e.y}}var f=n?Ar(n):null;if(f!=null){var r=f==="y"?"height":"width";switch(u){case Xe:b[f]=b[f]-(e[r]/2-i[r]/2);break;case ct:b[f]=b[f]+(e[r]/2-i[r]/2);break}}return b}function ut(t,e){e===void 0&&(e={});var i=e,a=i.placement,n=a===void 0?t.placement:a,u=i.strategy,l=u===void 0?t.strategy:u,h=i.boundary,b=h===void 0?Ki:h,f=i.rootBoundary,r=f===void 0?zn:f,c=i.elementContext,o=c===void 0?nt:c,s=i.altBoundary,p=s===void 0?!1:s,d=i.padding,m=d===void 0?0:d,x=Wn(typeof m!="number"?m:Hn(m,ft)),E=o===nt?Yi:nt,w=t.rects.popper,y=t.elements[p?E:o],v=Ns(We(y)?y:y.contextElement||Be(t.elements.popper),b,r,l),O=Ke(t.elements.reference),S=Vn({reference:O,element:w,placement:n}),N=Er(Object.assign({},w,S)),L=o===nt?N:O,_={top:v.top-L.top+x.top,bottom:L.bottom-v.bottom+x.bottom,left:v.left-L.left+x.left,right:L.right-v.right+x.right},F=t.modifiersData.offset;if(o===nt&&F){var $=F[n];Object.keys(_).forEach(function(K){var te=[we,ye].indexOf(K)>=0?1:-1,P=[ue,ye].indexOf(K)>=0?"y":"x";_[K]+=$[P]*te})}return _}function Ms(t,e){e===void 0&&(e={});var i=e,a=i.placement,n=i.boundary,u=i.rootBoundary,l=i.padding,h=i.flipVariations,b=i.allowedAutoPlacements,f=b===void 0?$n:b,r=Ye(a),c=r?h?Kr:Kr.filter(function(p){return Ye(p)===r}):ft,o=c.filter(function(p){return f.indexOf(p)>=0});o.length===0&&(o=c);var s=o.reduce(function(p,d){return p[d]=ut(t,{placement:d,boundary:n,rootBoundary:u,padding:l})[Re(d)],p},{});return Object.keys(s).sort(function(p,d){return s[p]-s[d]})}function Ts(t){if(Re(t)===Or)return[];var e=_t(t);return[en(t),e,en(e)]}function Ls(t){var e=t.state,i=t.options,a=t.name;if(!e.modifiersData[a]._skip){for(var n=i.mainAxis,u=n===void 0?!0:n,l=i.altAxis,h=l===void 0?!0:l,b=i.fallbackPlacements,f=i.padding,r=i.boundary,c=i.rootBoundary,o=i.altBoundary,s=i.flipVariations,p=s===void 0?!0:s,d=i.allowedAutoPlacements,m=e.options.placement,x=Re(m),E=x===m,w=b||(E||!p?[_t(m)]:Ts(m)),y=[m].concat(w).reduce(function(me,ce){return me.concat(Re(ce)===Or?Ms(e,{placement:ce,boundary:r,rootBoundary:c,padding:f,flipVariations:p,allowedAutoPlacements:d}):ce)},[]),v=e.rects.reference,O=e.rects.popper,S=new Map,N=!0,L=y[0],_=0;_<y.length;_++){var F=y[_],$=Re(F),K=Ye(F)===Xe,te=[ue,ye].indexOf($)>=0,P=te?"width":"height",re=ut(e,{placement:F,boundary:r,rootBoundary:c,altBoundary:o,padding:f}),q=te?K?we:fe:K?ye:ue;v[P]>O[P]&&(q=_t(q));var X=_t(q),Y=[];if(u&&Y.push(re[$]<=0),h&&Y.push(re[q]<=0,re[X]<=0),Y.every(function(me){return me})){L=F,N=!1;break}S.set(F,Y)}if(N)for(var ie=p?3:1,ge=function(ce){var Ne=y.find(function(Oe){var xe=S.get(Oe);if(xe)return xe.slice(0,ce).every(function(ke){return ke})});if(Ne)return L=Ne,"break"},he=ie;he>0;he--){var D=ge(he);if(D==="break")break}e.placement!==L&&(e.modifiersData[a]._skip=!0,e.placement=L,e.reset=!0)}}const js={name:"flip",enabled:!0,phase:"main",fn:Ls,requiresIfExists:["offset"],data:{_skip:!1}};function rn(t,e,i){return i===void 0&&(i={x:0,y:0}),{top:t.top-e.height-i.y,right:t.right-e.width+i.x,bottom:t.bottom-e.height+i.y,left:t.left-e.width-i.x}}function nn(t){return[ue,we,ye,fe].some(function(e){return t[e]>=0})}function Is(t){var e=t.state,i=t.name,a=e.rects.reference,n=e.rects.popper,u=e.modifiersData.preventOverflow,l=ut(e,{elementContext:"reference"}),h=ut(e,{altBoundary:!0}),b=rn(l,a),f=rn(h,n,u),r=nn(b),c=nn(f);e.modifiersData[i]={referenceClippingOffsets:b,popperEscapeOffsets:f,isReferenceHidden:r,hasPopperEscaped:c},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":r,"data-popper-escaped":c})}const Ds={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Is};function Bs(t,e,i){var a=Re(t),n=[fe,ue].indexOf(a)>=0?-1:1,u=typeof i=="function"?i(Object.assign({},e,{placement:t})):i,l=u[0],h=u[1];return l=l||0,h=(h||0)*n,[fe,we].indexOf(a)>=0?{x:h,y:l}:{x:l,y:h}}function zs(t){var e=t.state,i=t.options,a=t.name,n=i.offset,u=n===void 0?[0,0]:n,l=$n.reduce(function(r,c){return r[c]=Bs(c,e.rects,u),r},{}),h=l[e.placement],b=h.x,f=h.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=b,e.modifiersData.popperOffsets.y+=f),e.modifiersData[a]=l}const $s={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:zs};function Us(t){var e=t.state,i=t.name;e.modifiersData[i]=Vn({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const Fs={name:"popperOffsets",enabled:!0,phase:"read",fn:Us,data:{}};function qs(t){return t==="x"?"y":"x"}function Ws(t){var e=t.state,i=t.options,a=t.name,n=i.mainAxis,u=n===void 0?!0:n,l=i.altAxis,h=l===void 0?!1:l,b=i.boundary,f=i.rootBoundary,r=i.altBoundary,c=i.padding,o=i.tether,s=o===void 0?!0:o,p=i.tetherOffset,d=p===void 0?0:p,m=ut(e,{boundary:b,rootBoundary:f,padding:c,altBoundary:r}),x=Re(e.placement),E=Ye(e.placement),w=!E,y=Ar(x),v=qs(y),O=e.modifiersData.popperOffsets,S=e.rects.reference,N=e.rects.popper,L=typeof d=="function"?d(Object.assign({},e.rects,{placement:e.placement})):d,_=typeof L=="number"?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),F=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,$={x:0,y:0};if(O){if(u){var K,te=y==="y"?ue:fe,P=y==="y"?ye:we,re=y==="y"?"height":"width",q=O[y],X=q+m[te],Y=q-m[P],ie=s?-N[re]/2:0,ge=E===Xe?S[re]:N[re],he=E===Xe?-N[re]:-S[re],D=e.elements.arrow,me=s&&D?Sr(D):{width:0,height:0},ce=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:qn(),Ne=ce[te],Oe=ce[P],xe=st(0,S[re],me[re]),ke=w?S[re]/2-ie-xe-Ne-_.mainAxis:ge-xe-Ne-_.mainAxis,Qe=w?-S[re]/2+ie+xe+Oe+_.mainAxis:he+xe+Oe+_.mainAxis,be=e.elements.arrow&&ht(e.elements.arrow),ze=be?y==="y"?be.clientTop||0:be.clientLeft||0:0,$e=(K=F?.[y])!=null?K:0,Dt=q+ke-$e-ze,Bt=q+Qe-$e,dt=st(s?Ct(X,Dt):X,q,s?qe(Y,Bt):Y);O[y]=dt,$[y]=dt-q}if(h){var gt,zt=y==="x"?ue:fe,mt=y==="x"?ye:we,Me=O[v],Ge=v==="y"?"height":"width",et=Me+m[zt],Se=Me-m[mt],Ve=[ue,fe].indexOf(x)!==-1,Te=(gt=F?.[v])!=null?gt:0,Ue=Ve?et:Me-S[Ge]-N[Ge]-Te+_.altAxis,tt=Ve?Me+S[Ge]+N[Ge]-Te-_.altAxis:Se,bt=s&&Ve?ds(Ue,Me,tt):st(s?Ue:et,Me,s?tt:Se);O[v]=bt,$[v]=bt-Me}e.modifiersData[a]=$}}const Hs={name:"preventOverflow",enabled:!0,phase:"main",fn:Ws,requiresIfExists:["offset"]};function Gs(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function Vs(t){return t===de(t)||!ve(t)?_r(t):Gs(t)}function Zs(t){var e=t.getBoundingClientRect(),i=Je(e.width)/t.offsetWidth||1,a=Je(e.height)/t.offsetHeight||1;return i!==1||a!==1}function Xs(t,e,i){i===void 0&&(i=!1);var a=ve(e),n=ve(e)&&Zs(e),u=Be(e),l=Ke(t,n,i),h={scrollLeft:0,scrollTop:0},b={x:0,y:0};return(a||!a&&!i)&&((Pe(e)!=="body"||Rr(u))&&(h=Vs(e)),ve(e)?(b=Ke(e,!0),b.x+=e.clientLeft,b.y+=e.clientTop):u&&(b.x=Cr(u))),{x:l.left+h.scrollLeft-b.x,y:l.top+h.scrollTop-b.y,width:l.width,height:l.height}}function Js(t){var e=new Map,i=new Set,a=[];t.forEach(function(u){e.set(u.name,u)});function n(u){i.add(u.name);var l=[].concat(u.requires||[],u.requiresIfExists||[]);l.forEach(function(h){if(!i.has(h)){var b=e.get(h);b&&n(b)}}),a.push(u)}return t.forEach(function(u){i.has(u.name)||n(u)}),a}function Ks(t){var e=Js(t);return ls.reduce(function(i,a){return i.concat(e.filter(function(n){return n.phase===a}))},[])}function Ys(t){var e;return function(){return e||(e=new Promise(function(i){Promise.resolve().then(function(){e=void 0,i(t())})})),e}}function Qs(t){var e=t.reduce(function(i,a){var n=i[a.name];return i[a.name]=n?Object.assign({},n,a,{options:Object.assign({},n.options,a.options),data:Object.assign({},n.data,a.data)}):a,i},{});return Object.keys(e).map(function(i){return e[i]})}var sn={placement:"bottom",modifiers:[],strategy:"absolute"};function on(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return!e.some(function(a){return!(a&&typeof a.getBoundingClientRect=="function")})}function eo(t){t===void 0&&(t={});var e=t,i=e.defaultModifiers,a=i===void 0?[]:i,n=e.defaultOptions,u=n===void 0?sn:n;return function(h,b,f){f===void 0&&(f=u);var r={placement:"bottom",orderedModifiers:[],options:Object.assign({},sn,u),modifiersData:{},elements:{reference:h,popper:b},attributes:{},styles:{}},c=[],o=!1,s={state:r,setOptions:function(x){var E=typeof x=="function"?x(r.options):x;d(),r.options=Object.assign({},u,r.options,E),r.scrollParents={reference:We(h)?ot(h):h.contextElement?ot(h.contextElement):[],popper:ot(b)};var w=Ks(Qs([].concat(a,r.options.modifiers)));return r.orderedModifiers=w.filter(function(y){return y.enabled}),p(),s.update()},forceUpdate:function(){if(!o){var x=r.elements,E=x.reference,w=x.popper;if(on(E,w)){r.rects={reference:Xs(E,ht(w),r.options.strategy==="fixed"),popper:Sr(w)},r.reset=!1,r.placement=r.options.placement,r.orderedModifiers.forEach(function(_){return r.modifiersData[_.name]=Object.assign({},_.data)});for(var y=0;y<r.orderedModifiers.length;y++){if(r.reset===!0){r.reset=!1,y=-1;continue}var v=r.orderedModifiers[y],O=v.fn,S=v.options,N=S===void 0?{}:S,L=v.name;typeof O=="function"&&(r=O({state:r,options:N,name:L,instance:s})||r)}}}},update:Ys(function(){return new Promise(function(m){s.forceUpdate(),m(r)})}),destroy:function(){d(),o=!0}};if(!on(h,b))return s;s.setOptions(f).then(function(m){!o&&f.onFirstUpdate&&f.onFirstUpdate(m)});function p(){r.orderedModifiers.forEach(function(m){var x=m.name,E=m.options,w=E===void 0?{}:E,y=m.effect;if(typeof y=="function"){var v=y({state:r,name:x,instance:s,options:w}),O=function(){};c.push(v||O)}})}function d(){c.forEach(function(m){return m()}),c=[]}return s}}var to=[ks,Fs,Es,fs,$s,js,Hs,vs,Ds],ro=eo({defaultModifiers:to});const no=`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="12" viewBox="0 0 24 12">\r
|
|
63
63
|
<path d="M0 0l11.96 12L24 0z" fill="#999" class="arrow-border"/>\r
|
|
64
64
|
<path d="M12 11L1 0h22z" fill="#f2f2f2" class="arrow-background"/>\r
|
|
65
65
|
</svg>\r
|
|
66
|
-
`,
|
|
66
|
+
`,io=navigator.userAgent.indexOf("Trident")!==-1,an=1,ln="sd-popover-open",Dr=class Dr extends HTMLElement{constructor(){super(...arguments),this._open=!1,this._firstUpdated=!1,this.toggle=()=>{this.open=!this.open},this.show=()=>{this.open=!0},this.hide=()=>{this.open=!1},this.hideIfExternalTarget=e=>{const i=e.target;(!(i instanceof HTMLElement)||!this._container.contains(i)&&!this.targetElement.contains(i))&&this.hide()}}get triggerType(){return this.getAttribute("trigger-type")}set triggerType(e){e?this.setAttribute("trigger-type",e):this.removeAttribute("trigger-type")}get placement(){return this.getAttribute("placement")}set placement(e){e?this.setAttribute("placement",e):this.removeAttribute("placement")}get targetElement(){return this._targetElement}set targetElement(e){this.removeTargetEventListener(this.targetElement),this._targetElement&&this._targetElement.getAttribute("aria-expanded")=="true"&&this._targetElement.setAttribute("aria-expanded","false"),this._targetElement=e,e&&e.setAttribute("aria-expanded","false"),this.addTargetEventListener(this.targetElement),this.updatePopper()}get targetSelector(){return this.getAttribute("target-selector")}set targetSelector(e){e?this.setAttribute("target-selector",e):this.removeAttribute("target-selector")}get modal(){return this.hasAttribute("modal")}set modal(e){e?this.setAttribute("modal",""):this.removeAttribute("modal")}get popoverFor(){return this.getAttribute("popover-for")}set popoverFor(e){e?this.setAttribute("popover-for",e):this.removeAttribute("popover-for")}get flipPriority(){return this._flipPriority}set flipPriority(e){e&&e.length>0?this._flipPriority=e:this._flipPriority=null,this.reConfigurePopper()}get offset(){return this.getAttribute("offset")?parseInt(this.getAttribute("offset")):0}set offset(e){e?this.setAttribute("offset",e.toString()):this.removeAttribute("offset"),this.reConfigurePopper()}reConfigurePopper(){this._popper&&this.configurePopper()}get noArrow(){return this.hasAttribute("no-arrow")}set noArrow(e){e?this.setAttribute("no-arrow",""):this.removeAttribute("no-arrow")}static get observedAttributes(){return["placement","target-selector","trigger-type"]}attributeChangedCallback(e,i){switch(e){case"placement":{this.updatePopper();break}case"trigger-type":{this.removeTargetEventListener(this.targetElement),this.addTargetEventListener(this.targetElement);break}case"target-selector":{this.handleTargetSelectorChange(i);break}}}connectedCallback(){this._firstUpdated||(this.firstUpdated(),this._firstUpdated=!0),this.targetElement?this.addTargetEventListener(this.targetElement):this.targetSelector&&requestAnimationFrame(()=>{this.isConnected&&this.handleTargetSelectorChange(null)}),this._arrow=document.createElement("div"),this._arrow.classList.add("popover-arrow"),this._arrow.setAttribute("data-popper-arrow",""),this._arrow.style.display="flex",this._arrow.innerHTML=no}disconnectedCallback(){this.targetElement&&(this.removeTargetEventListener(this.targetElement),this.removeTargetClassForOpen(this.targetElement)),this._resizeObserver&&(this._resizeObserver.disconnect(),this._resizeObserver=null)}firstUpdated(){this.style.display="none",this.triggerType=this.triggerType||"click",this.placement=this.placement||"auto"}get open(){return this._open}set open(e){e!==this._open&&(this._open=e,this.handleOpenChange())}handleOpenChange(){this.open?(this._popper||this.configurePopper(),this._container.innerHTML="",this.popoverFor&&this._container.setAttribute("popover-for",this.popoverFor),this.content&&(this._container.prepend(this.content),Object.assign(this.content.style,{position:"relative",display:"block",zIndex:1}),window.requestAnimationFrame(()=>{let e=getComputedStyle(this.content).backgroundColor;e=="rgba(0, 0, 0, 0)"&&(this.content.style.background=e="#f2f2f2"),this._arrow.querySelector(".arrow-background").style.fill=e})),this.ensureArrowIsAdded(),this.ownerDocument.body.appendChild(this._container),this.updatePopper(),this.setAttribute("open",""),this.modal&&(window.addEventListener("click",this.hideIfExternalTarget,{capture:!0}),window.addEventListener("focus",this.hideIfExternalTarget,{capture:!0})),this.targetElement&&(this.addTargetClassForOpen(this.targetElement),this.targetElement.setAttribute("aria-expanded","true")),this.dispatchEvent(new CustomEvent("open"))):(this.ownerDocument.body.removeChild(this._container),this.removeAttribute("open"),window.removeEventListener("click",this.hideIfExternalTarget,{capture:!0}),window.removeEventListener("focus",this.hideIfExternalTarget,{capture:!0}),this.targetElement&&(this.removeTargetClassForOpen(this.targetElement),this.targetElement.setAttribute("aria-expanded","false")),this.dispatchEvent(new CustomEvent("close")))}handleTargetSelectorChange(e){const i=document.querySelector(e);i&&(this.removeTargetEventListener(i),this.removeTargetClassForOpen(i)),this.targetSelector&&(this.targetElement=document.querySelector(this.targetSelector),this.addTargetEventListener(this.targetElement))}addTargetEventListener(e){if(e)switch(this.triggerType){case"hover":{e.addEventListener("mouseenter",this.show),e.addEventListener("mouseleave",this.hide);break}case"click":{e.addEventListener("click",this.toggle);break}}}removeTargetEventListener(e){if(e)switch(this.triggerType){case"hover":{e.removeEventListener("mouseenter",this.show),e.removeEventListener("mouseleave",this.hide);break}case"click":{e.removeEventListener("click",this.toggle);break}}}configurePopper(){this.createContentContainer(),this.ensureArrowIsAdded();const e=this,i={placement:e.placement,strategy:"absolute",modifiers:[{name:"computeStyles",options:{gpuAcceleration:!io}},{name:"flip",options:{fallbackPlacements:e._flipPriority}},{name:"offset",options:{offset:()=>[0,e.noArrow?0+e.offset:this._arrow.clientHeight+e.offset]}},{name:"arrow",options:{padding:6}},{name:"resetArrowStyles",enabled:!0,phase:"beforeWrite",fn({state:a}){Object.assign(e._arrow.style,{top:a.styles.arrow.top||"",left:a.styles.arrow.left||"",bottom:a.styles.arrow.bottom||"",right:a.styles.arrow.right||""})}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn({state:a}){e.updateArrow(a.placement)}}]};this._popper=ro(this.targetElement,this._container,i)}createContentContainer(){this._container=document.createElement("div"),this._container.classList.add("popover-container"),this._container.tabIndex=0,this._resizeObserver&&this._resizeObserver.disconnect(),this._resizeObserver=new ResizeObserver(()=>{this._popper&&this._popper.update()}),this._resizeObserver.observe(this._container),Object.assign(this._container.style,{boxShadow:`0 4px 5px 0 rgba(0, 0, 0, 0.14),
|
|
67
67
|
0 1px 10px 0 rgba(0, 0, 0, 0.12),
|
|
68
|
-
0 2px 4px -1px rgba(0, 0, 0, 0.4)`,border:"1px solid #999",boxSizing:"border-box",zIndex:2e4})}ensureArrowIsAdded(){!this.noArrow&&!this._container.contains(this._arrow)&&this._container.appendChild(this._arrow)}updatePopper(){this._popper&&(this._popper.state.elements.reference=this.targetElement,this._popper.state.options.placement=this.placement,this.open&&this._popper.update())}updateArrow(e){if(this._arrow){const
|
|
69
|
-
`+
|
|
70
|
-
|
|
68
|
+
0 2px 4px -1px rgba(0, 0, 0, 0.4)`,border:"1px solid #999",boxSizing:"border-box",zIndex:2e4})}ensureArrowIsAdded(){!this.noArrow&&!this._container.contains(this._arrow)&&this._container.appendChild(this._arrow)}updatePopper(){this._popper&&(this._popper.state.elements.reference=this.targetElement,this._popper.state.options.placement=this.placement,this.open&&this._popper.update())}updateArrow(e){if(this._arrow){const i=this.getArrowVariant(e);if(this._arrow.setAttribute("variant",i),this._content){const a=this._arrow.querySelector("svg"),n=this._arrow.clientWidth,u=this._arrow.clientHeight,l=`-${u-an}px`,h=(n-u)/2,b=`-${u+h-an}px`;switch(i){case"bottom":{this._arrow.style.top=l,a.style.transform="rotate(180deg)";break}case"top":{this._arrow.style.bottom=l,a.style.transform="rotate(0deg)";break}case"left":{this._arrow.style.right=b,a.style.transform="rotate(270deg)";break}case"right":{this._arrow.style.left=b,a.style.transform="rotate(90deg)";break}}}}}getArrowVariant(e){if(e.indexOf("bottom")!==-1)return"bottom";if(e.indexOf("top")!==-1)return"top";if(e.indexOf("left")!==-1)return"left";if(e.indexOf("right")!==-1)return"right"}get content(){return this._content||(this._content=this.firstElementChild,this._content.setAttribute("data-popper-content","")),this._content}addTargetClassForOpen(e){e&&e.classList.add(ln)}removeTargetClassForOpen(e){e&&e.classList.remove(ln)}};Dr.ID="sd-popover";let at=Dr;customElements.get(at.ID)||customElements.define(at.ID,at);function Zn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function so(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var e=t.default;if(typeof e=="function"){var i=function a(){var n=!1;try{n=this instanceof a}catch{}return n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};i.prototype=e.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(t).forEach(function(a){var n=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(i,a,n.get?n:{enumerable:!0,get:function(){return t[a]}})}),i}var kt={exports:{}},cn;function oo(){if(cn)return kt.exports;cn=1;var t=String,e=function(){return{isColorSupported:!1,reset:t,bold:t,dim:t,italic:t,underline:t,inverse:t,hidden:t,strikethrough:t,black:t,red:t,green:t,yellow:t,blue:t,magenta:t,cyan:t,white:t,gray:t,bgBlack:t,bgRed:t,bgGreen:t,bgYellow:t,bgBlue:t,bgMagenta:t,bgCyan:t,bgWhite:t,blackBright:t,redBright:t,greenBright:t,yellowBright:t,blueBright:t,magentaBright:t,cyanBright:t,whiteBright:t,bgBlackBright:t,bgRedBright:t,bgGreenBright:t,bgYellowBright:t,bgBlueBright:t,bgMagentaBright:t,bgCyanBright:t,bgWhiteBright:t}};return kt.exports=e(),kt.exports.createColors=e,kt.exports}const ao={},lo=Object.freeze(Object.defineProperty({__proto__:null,default:ao},Symbol.toStringTag,{value:"Module"})),Ee=so(lo);var Vt,un;function Pr(){if(un)return Vt;un=1;let t=oo(),e=Ee;class i extends Error{constructor(n,u,l,h,b,f){super(n),this.name="CssSyntaxError",this.reason=n,b&&(this.file=b),h&&(this.source=h),f&&(this.plugin=f),typeof u<"u"&&typeof l<"u"&&(typeof u=="number"?(this.line=u,this.column=l):(this.line=u.line,this.column=u.column,this.endLine=l.line,this.endColumn=l.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,i)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(n){if(!this.source)return"";let u=this.source;n==null&&(n=t.isColorSupported);let l=s=>s,h=s=>s,b=s=>s;if(n){let{bold:s,gray:p,red:d}=t.createColors(!0);h=m=>s(d(m)),l=m=>p(m),e&&(b=m=>e(m))}let f=u.split(/\r?\n/),r=Math.max(this.line-3,0),c=Math.min(this.line+2,f.length),o=String(c).length;return f.slice(r,c).map((s,p)=>{let d=r+1+p,m=" "+(" "+d).slice(-o)+" | ";if(d===this.line){if(s.length>160){let E=20,w=Math.max(0,this.column-E),y=Math.max(this.column+E,this.endColumn+E),v=s.slice(w,y),O=l(m.replace(/\d/g," "))+s.slice(0,Math.min(this.column-1,E-1)).replace(/[^\t]/g," ");return h(">")+l(m)+b(v)+`
|
|
69
|
+
`+O+h("^")}let x=l(m.replace(/\d/g," "))+s.slice(0,this.column-1).replace(/[^\t]/g," ");return h(">")+l(m)+b(s)+`
|
|
70
|
+
`+x+h("^")}return" "+l(m)+b(s)}).join(`
|
|
71
|
+
`)}toString(){let n=this.showSourceCode();return n&&(n=`
|
|
71
72
|
|
|
72
|
-
`+
|
|
73
|
-
`),this.name+": "+this.message+
|
|
73
|
+
`+n+`
|
|
74
|
+
`),this.name+": "+this.message+n}}return Vt=i,i.default=i,Vt}var Zt,fn;function Xn(){if(fn)return Zt;fn=1;const t={after:`
|
|
74
75
|
`,beforeClose:`
|
|
75
76
|
`,beforeComment:`
|
|
76
77
|
`,beforeDecl:`
|
|
77
78
|
`,beforeOpen:" ",beforeRule:`
|
|
78
|
-
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function
|
|
79
|
-
`)){let
|
|
80
|
-
`)&&(
|
|
81
|
-
`)&&(
|
|
82
|
-
`)&&(
|
|
83
|
-
`)&&(
|
|
84
|
-
`);return
|
|
85
|
-
`?(
|
|
86
|
-
`);r=new Array(o.length);let s=0;for(let a=0,l=o.length;a<l;a++)r[a]=s,s+=o[a].length+1;this[Wt]=r}t=r[r.length-1];let i=0;if(e>=t)i=r.length-1;else{let o=r.length-2,s;for(;i<o;)if(s=i+(o-i>>1),e<r[s])o=s-1;else if(e>=r[s+1])i=s+1;else{i=s;break}}return{col:e-r[i]+1,line:i+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:nr(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,i){if(!this.map)return!1;let o=this.map.consumer(),s=o.originalPositionFor({column:t,line:e});if(!s.source)return!1;let a;typeof r=="number"&&(a=o.originalPositionFor({column:i,line:r}));let l;rr(s.source)?l=ht(s.source):l=new URL(s.source,this.map.consumer().sourceRoot||ht(this.map.mapFile));let c={column:s.column,endColumn:a&&a.column,endLine:a&&a.line,line:s.line,url:l.toString()};if(l.protocol==="file:")if(Xr)c.file=Xr(l);else throw new Error("file: protocol is not available in this PostCSS build");let u=o.sourceContentFor(s.source);return u&&(c.source=u),c}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}get from(){return this.file||this.id}};var $t=_t;_t.default=_t;Ht&&Ht.registerInput&&Ht.registerInput(_t);let{SourceMapConsumer:Pn,SourceMapGenerator:Ot}=le,{dirname:At,relative:Mn,resolve:Nn,sep:Tn}=le,{pathToFileURL:Yr}=le,So=$t,_o=!!(Pn&&Ot),ko=!!(At&&Nn&&Mn&&Tn),Co=class{constructor(e,t,r,i){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=i,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let t=`
|
|
79
|
+
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function e(a){return a[0].toUpperCase()+a.slice(1)}class i{constructor(n){this.builder=n}atrule(n,u){let l="@"+n.name,h=n.params?this.rawValue(n,"params"):"";if(typeof n.raws.afterName<"u"?l+=n.raws.afterName:h&&(l+=" "),n.nodes)this.block(n,l+h);else{let b=(n.raws.between||"")+(u?";":"");this.builder(l+h+b,n)}}beforeAfter(n,u){let l;n.type==="decl"?l=this.raw(n,null,"beforeDecl"):n.type==="comment"?l=this.raw(n,null,"beforeComment"):u==="before"?l=this.raw(n,null,"beforeRule"):l=this.raw(n,null,"beforeClose");let h=n.parent,b=0;for(;h&&h.type!=="root";)b+=1,h=h.parent;if(l.includes(`
|
|
80
|
+
`)){let f=this.raw(n,null,"indent");if(f.length)for(let r=0;r<b;r++)l+=f}return l}block(n,u){let l=this.raw(n,"between","beforeOpen");this.builder(u+l+"{",n,"start");let h;n.nodes&&n.nodes.length?(this.body(n),h=this.raw(n,"after")):h=this.raw(n,"after","emptyBody"),h&&this.builder(h),this.builder("}",n,"end")}body(n){let u=n.nodes.length-1;for(;u>0&&n.nodes[u].type==="comment";)u-=1;let l=this.raw(n,"semicolon");for(let h=0;h<n.nodes.length;h++){let b=n.nodes[h],f=this.raw(b,"before");f&&this.builder(f),this.stringify(b,u!==h||l)}}comment(n){let u=this.raw(n,"left","commentLeft"),l=this.raw(n,"right","commentRight");this.builder("/*"+u+n.text+l+"*/",n)}decl(n,u){let l=this.raw(n,"between","colon"),h=n.prop+l+this.rawValue(n,"value");n.important&&(h+=n.raws.important||" !important"),u&&(h+=";"),this.builder(h,n)}document(n){this.body(n)}raw(n,u,l){let h;if(l||(l=u),u&&(h=n.raws[u],typeof h<"u"))return h;let b=n.parent;if(l==="before"&&(!b||b.type==="root"&&b.first===n||b&&b.type==="document"))return"";if(!b)return t[l];let f=n.root();if(f.rawCache||(f.rawCache={}),typeof f.rawCache[l]<"u")return f.rawCache[l];if(l==="before"||l==="after")return this.beforeAfter(n,l);{let r="raw"+e(l);this[r]?h=this[r](f,n):f.walk(c=>{if(h=c.raws[u],typeof h<"u")return!1})}return typeof h>"u"&&(h=t[l]),f.rawCache[l]=h,h}rawBeforeClose(n){let u;return n.walk(l=>{if(l.nodes&&l.nodes.length>0&&typeof l.raws.after<"u")return u=l.raws.after,u.includes(`
|
|
81
|
+
`)&&(u=u.replace(/[^\n]+$/,"")),!1}),u&&(u=u.replace(/\S/g,"")),u}rawBeforeComment(n,u){let l;return n.walkComments(h=>{if(typeof h.raws.before<"u")return l=h.raws.before,l.includes(`
|
|
82
|
+
`)&&(l=l.replace(/[^\n]+$/,"")),!1}),typeof l>"u"?l=this.raw(u,null,"beforeDecl"):l&&(l=l.replace(/\S/g,"")),l}rawBeforeDecl(n,u){let l;return n.walkDecls(h=>{if(typeof h.raws.before<"u")return l=h.raws.before,l.includes(`
|
|
83
|
+
`)&&(l=l.replace(/[^\n]+$/,"")),!1}),typeof l>"u"?l=this.raw(u,null,"beforeRule"):l&&(l=l.replace(/\S/g,"")),l}rawBeforeOpen(n){let u;return n.walk(l=>{if(l.type!=="decl"&&(u=l.raws.between,typeof u<"u"))return!1}),u}rawBeforeRule(n){let u;return n.walk(l=>{if(l.nodes&&(l.parent!==n||n.first!==l)&&typeof l.raws.before<"u")return u=l.raws.before,u.includes(`
|
|
84
|
+
`)&&(u=u.replace(/[^\n]+$/,"")),!1}),u&&(u=u.replace(/\S/g,"")),u}rawColon(n){let u;return n.walkDecls(l=>{if(typeof l.raws.between<"u")return u=l.raws.between.replace(/[^\s:]/g,""),!1}),u}rawEmptyBody(n){let u;return n.walk(l=>{if(l.nodes&&l.nodes.length===0&&(u=l.raws.after,typeof u<"u"))return!1}),u}rawIndent(n){if(n.raws.indent)return n.raws.indent;let u;return n.walk(l=>{let h=l.parent;if(h&&h!==n&&h.parent&&h.parent===n&&typeof l.raws.before<"u"){let b=l.raws.before.split(`
|
|
85
|
+
`);return u=b[b.length-1],u=u.replace(/\S/g,""),!1}}),u}rawSemicolon(n){let u;return n.walk(l=>{if(l.nodes&&l.nodes.length&&l.last.type==="decl"&&(u=l.raws.semicolon,typeof u<"u"))return!1}),u}rawValue(n,u){let l=n[u],h=n.raws[u];return h&&h.value===l?h.raw:l}root(n){this.body(n),n.raws.after&&this.builder(n.raws.after)}rule(n){this.block(n,this.rawValue(n,"selector")),n.raws.ownSemicolon&&this.builder(n.raws.ownSemicolon,n,"end")}stringify(n,u){if(!this[n.type])throw new Error("Unknown AST node type "+n.type+". Maybe you need to change PostCSS stringifier.");this[n.type](n,u)}}return Zt=i,i.default=i,Zt}var Xt,hn;function Nt(){if(hn)return Xt;hn=1;let t=Xn();function e(i,a){new t(a).stringify(i)}return Xt=e,e.default=e,Xt}var St={},pn;function Nr(){return pn||(pn=1,St.isClean=Symbol("isClean"),St.my=Symbol("my")),St}var Jt,dn;function Mt(){if(dn)return Jt;dn=1;let t=Pr(),e=Xn(),i=Nt(),{isClean:a,my:n}=Nr();function u(b,f){let r=new b.constructor;for(let c in b){if(!Object.prototype.hasOwnProperty.call(b,c)||c==="proxyCache")continue;let o=b[c],s=typeof o;c==="parent"&&s==="object"?f&&(r[c]=f):c==="source"?r[c]=o:Array.isArray(o)?r[c]=o.map(p=>u(p,r)):(s==="object"&&o!==null&&(o=u(o)),r[c]=o)}return r}function l(b,f){if(f&&typeof f.offset<"u")return f.offset;let r=1,c=1,o=0;for(let s=0;s<b.length;s++){if(c===f.line&&r===f.column){o=s;break}b[s]===`
|
|
86
|
+
`?(r=1,c+=1):r+=1}return o}class h{get proxyOf(){return this}constructor(f={}){this.raws={},this[a]=!1,this[n]=!0;for(let r in f)if(r==="nodes"){this.nodes=[];for(let c of f[r])typeof c.clone=="function"?this.append(c.clone()):this.append(c)}else this[r]=f[r]}addToError(f){if(f.postcssNode=this,f.stack&&this.source&&/\n\s{4}at /.test(f.stack)){let r=this.source;f.stack=f.stack.replace(/\n\s{4}at /,`$&${r.input.from}:${r.start.line}:${r.start.column}$&`)}return f}after(f){return this.parent.insertAfter(this,f),this}assign(f={}){for(let r in f)this[r]=f[r];return this}before(f){return this.parent.insertBefore(this,f),this}cleanRaws(f){delete this.raws.before,delete this.raws.after,f||delete this.raws.between}clone(f={}){let r=u(this);for(let c in f)r[c]=f[c];return r}cloneAfter(f={}){let r=this.clone(f);return this.parent.insertAfter(this,r),r}cloneBefore(f={}){let r=this.clone(f);return this.parent.insertBefore(this,r),r}error(f,r={}){if(this.source){let{end:c,start:o}=this.rangeBy(r);return this.source.input.error(f,{column:o.column,line:o.line},{column:c.column,line:c.line},r)}return new t(f)}getProxyProcessor(){return{get(f,r){return r==="proxyOf"?f:r==="root"?()=>f.root().toProxy():f[r]},set(f,r,c){return f[r]===c||(f[r]=c,(r==="prop"||r==="value"||r==="name"||r==="params"||r==="important"||r==="text")&&f.markDirty()),!0}}}markClean(){this[a]=!0}markDirty(){if(this[a]){this[a]=!1;let f=this;for(;f=f.parent;)f[a]=!1}}next(){if(!this.parent)return;let f=this.parent.index(this);return this.parent.nodes[f+1]}positionBy(f={}){let r=this.source.start;if(f.index)r=this.positionInside(f.index);else if(f.word){let c="document"in this.source.input?this.source.input.document:this.source.input.css,s=c.slice(l(c,this.source.start),l(c,this.source.end)).indexOf(f.word);s!==-1&&(r=this.positionInside(s))}return r}positionInside(f){let r=this.source.start.column,c=this.source.start.line,o="document"in this.source.input?this.source.input.document:this.source.input.css,s=l(o,this.source.start),p=s+f;for(let d=s;d<p;d++)o[d]===`
|
|
87
|
+
`?(r=1,c+=1):r+=1;return{column:r,line:c,offset:p}}prev(){if(!this.parent)return;let f=this.parent.index(this);return this.parent.nodes[f-1]}rangeBy(f={}){let r="document"in this.source.input?this.source.input.document:this.source.input.css,c={column:this.source.start.column,line:this.source.start.line,offset:l(r,this.source.start)},o=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:l(r,this.source.end)+1}:{column:c.column+1,line:c.line,offset:c.offset+1};if(f.word){let p=r.slice(l(r,this.source.start),l(r,this.source.end)).indexOf(f.word);p!==-1&&(c=this.positionInside(p),o=this.positionInside(p+f.word.length))}else f.start?c={column:f.start.column,line:f.start.line,offset:l(r,f.start)}:f.index&&(c=this.positionInside(f.index)),f.end?o={column:f.end.column,line:f.end.line,offset:l(r,f.end)}:typeof f.endIndex=="number"?o=this.positionInside(f.endIndex):f.index&&(o=this.positionInside(f.index+1));return(o.line<c.line||o.line===c.line&&o.column<=c.column)&&(o={column:c.column+1,line:c.line,offset:c.offset+1}),{end:o,start:c}}raw(f,r){return new e().raw(this,f,r)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...f){if(this.parent){let r=this,c=!1;for(let o of f)o===this?c=!0:c?(this.parent.insertAfter(r,o),r=o):this.parent.insertBefore(r,o);c||this.remove()}return this}root(){let f=this;for(;f.parent&&f.parent.type!=="document";)f=f.parent;return f}toJSON(f,r){let c={},o=r==null;r=r||new Map;let s=0;for(let p in this){if(!Object.prototype.hasOwnProperty.call(this,p)||p==="parent"||p==="proxyCache")continue;let d=this[p];if(Array.isArray(d))c[p]=d.map(m=>typeof m=="object"&&m.toJSON?m.toJSON(null,r):m);else if(typeof d=="object"&&d.toJSON)c[p]=d.toJSON(null,r);else if(p==="source"){if(d==null)continue;let m=r.get(d.input);m==null&&(m=s,r.set(d.input,s),s++),c[p]={end:d.end,inputId:m,start:d.start}}else c[p]=d}return o&&(c.inputs=[...r.keys()].map(p=>p.toJSON())),c}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(f=i){f.stringify&&(f=f.stringify);let r="";return f(this,c=>{r+=c}),r}warn(f,r,c={}){let o={node:this};for(let s in c)o[s]=c[s];return f.warn(r,o)}}return Jt=h,h.default=h,Jt}var Kt,gn;function Tt(){if(gn)return Kt;gn=1;let t=Mt();class e extends t{constructor(a){super(a),this.type="comment"}}return Kt=e,e.default=e,Kt}var Yt,mn;function Lt(){if(mn)return Yt;mn=1;let t=Mt();class e extends t{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(a){a&&typeof a.value<"u"&&typeof a.value!="string"&&(a={...a,value:String(a.value)}),super(a),this.type="decl"}}return Yt=e,e.default=e,Yt}var Qt,bn;function He(){if(bn)return Qt;bn=1;let t=Tt(),e=Lt(),i=Mt(),{isClean:a,my:n}=Nr(),u,l,h,b;function f(o){return o.map(s=>(s.nodes&&(s.nodes=f(s.nodes)),delete s.source,s))}function r(o){if(o[a]=!1,o.proxyOf.nodes)for(let s of o.proxyOf.nodes)r(s)}class c extends i{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...s){for(let p of s){let d=this.normalize(p,this.last);for(let m of d)this.proxyOf.nodes.push(m)}return this.markDirty(),this}cleanRaws(s){if(super.cleanRaws(s),this.nodes)for(let p of this.nodes)p.cleanRaws(s)}each(s){if(!this.proxyOf.nodes)return;let p=this.getIterator(),d,m;for(;this.indexes[p]<this.proxyOf.nodes.length&&(d=this.indexes[p],m=s(this.proxyOf.nodes[d],d),m!==!1);)this.indexes[p]+=1;return delete this.indexes[p],m}every(s){return this.nodes.every(s)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let s=this.lastEach;return this.indexes[s]=0,s}getProxyProcessor(){return{get(s,p){return p==="proxyOf"?s:s[p]?p==="each"||typeof p=="string"&&p.startsWith("walk")?(...d)=>s[p](...d.map(m=>typeof m=="function"?(x,E)=>m(x.toProxy(),E):m)):p==="every"||p==="some"?d=>s[p]((m,...x)=>d(m.toProxy(),...x)):p==="root"?()=>s.root().toProxy():p==="nodes"?s.nodes.map(d=>d.toProxy()):p==="first"||p==="last"?s[p].toProxy():s[p]:s[p]},set(s,p,d){return s[p]===d||(s[p]=d,(p==="name"||p==="params"||p==="selector")&&s.markDirty()),!0}}}index(s){return typeof s=="number"?s:(s.proxyOf&&(s=s.proxyOf),this.proxyOf.nodes.indexOf(s))}insertAfter(s,p){let d=this.index(s),m=this.normalize(p,this.proxyOf.nodes[d]).reverse();d=this.index(s);for(let E of m)this.proxyOf.nodes.splice(d+1,0,E);let x;for(let E in this.indexes)x=this.indexes[E],d<x&&(this.indexes[E]=x+m.length);return this.markDirty(),this}insertBefore(s,p){let d=this.index(s),m=d===0?"prepend":!1,x=this.normalize(p,this.proxyOf.nodes[d],m).reverse();d=this.index(s);for(let w of x)this.proxyOf.nodes.splice(d,0,w);let E;for(let w in this.indexes)E=this.indexes[w],d<=E&&(this.indexes[w]=E+x.length);return this.markDirty(),this}normalize(s,p){if(typeof s=="string")s=f(l(s).nodes);else if(typeof s>"u")s=[];else if(Array.isArray(s)){s=s.slice(0);for(let m of s)m.parent&&m.parent.removeChild(m,"ignore")}else if(s.type==="root"&&this.type!=="document"){s=s.nodes.slice(0);for(let m of s)m.parent&&m.parent.removeChild(m,"ignore")}else if(s.type)s=[s];else if(s.prop){if(typeof s.value>"u")throw new Error("Value field is missed in node creation");typeof s.value!="string"&&(s.value=String(s.value)),s=[new e(s)]}else if(s.selector||s.selectors)s=[new b(s)];else if(s.name)s=[new u(s)];else if(s.text)s=[new t(s)];else throw new Error("Unknown node type in node creation");return s.map(m=>(m[n]||c.rebuild(m),m=m.proxyOf,m.parent&&m.parent.removeChild(m),m[a]&&r(m),m.raws||(m.raws={}),typeof m.raws.before>"u"&&p&&typeof p.raws.before<"u"&&(m.raws.before=p.raws.before.replace(/\S/g,"")),m.parent=this.proxyOf,m))}prepend(...s){s=s.reverse();for(let p of s){let d=this.normalize(p,this.first,"prepend").reverse();for(let m of d)this.proxyOf.nodes.unshift(m);for(let m in this.indexes)this.indexes[m]=this.indexes[m]+d.length}return this.markDirty(),this}push(s){return s.parent=this,this.proxyOf.nodes.push(s),this}removeAll(){for(let s of this.proxyOf.nodes)s.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(s){s=this.index(s),this.proxyOf.nodes[s].parent=void 0,this.proxyOf.nodes.splice(s,1);let p;for(let d in this.indexes)p=this.indexes[d],p>=s&&(this.indexes[d]=p-1);return this.markDirty(),this}replaceValues(s,p,d){return d||(d=p,p={}),this.walkDecls(m=>{p.props&&!p.props.includes(m.prop)||p.fast&&!m.value.includes(p.fast)||(m.value=m.value.replace(s,d))}),this.markDirty(),this}some(s){return this.nodes.some(s)}walk(s){return this.each((p,d)=>{let m;try{m=s(p,d)}catch(x){throw p.addToError(x)}return m!==!1&&p.walk&&(m=p.walk(s)),m})}walkAtRules(s,p){return p?s instanceof RegExp?this.walk((d,m)=>{if(d.type==="atrule"&&s.test(d.name))return p(d,m)}):this.walk((d,m)=>{if(d.type==="atrule"&&d.name===s)return p(d,m)}):(p=s,this.walk((d,m)=>{if(d.type==="atrule")return p(d,m)}))}walkComments(s){return this.walk((p,d)=>{if(p.type==="comment")return s(p,d)})}walkDecls(s,p){return p?s instanceof RegExp?this.walk((d,m)=>{if(d.type==="decl"&&s.test(d.prop))return p(d,m)}):this.walk((d,m)=>{if(d.type==="decl"&&d.prop===s)return p(d,m)}):(p=s,this.walk((d,m)=>{if(d.type==="decl")return p(d,m)}))}walkRules(s,p){return p?s instanceof RegExp?this.walk((d,m)=>{if(d.type==="rule"&&s.test(d.selector))return p(d,m)}):this.walk((d,m)=>{if(d.type==="rule"&&d.selector===s)return p(d,m)}):(p=s,this.walk((d,m)=>{if(d.type==="rule")return p(d,m)}))}}return c.registerParse=o=>{l=o},c.registerRule=o=>{b=o},c.registerAtRule=o=>{u=o},c.registerRoot=o=>{h=o},Qt=c,c.default=c,c.rebuild=o=>{o.type==="atrule"?Object.setPrototypeOf(o,u.prototype):o.type==="rule"?Object.setPrototypeOf(o,b.prototype):o.type==="decl"?Object.setPrototypeOf(o,e.prototype):o.type==="comment"?Object.setPrototypeOf(o,t.prototype):o.type==="root"&&Object.setPrototypeOf(o,h.prototype),o[n]=!0,o.nodes&&o.nodes.forEach(s=>{c.rebuild(s)})},Qt}var er,vn;function Mr(){if(vn)return er;vn=1;let t=He();class e extends t{constructor(a){super(a),this.type="atrule"}append(...a){return this.proxyOf.nodes||(this.nodes=[]),super.append(...a)}prepend(...a){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...a)}}return er=e,e.default=e,t.registerAtRule(e),er}var tr,yn;function Tr(){if(yn)return tr;yn=1;let t=He(),e,i;class a extends t{constructor(u){super({type:"document",...u}),this.nodes||(this.nodes=[])}toResult(u={}){return new e(new i,this,u).stringify()}}return a.registerLazyResult=n=>{e=n},a.registerProcessor=n=>{i=n},tr=a,a.default=a,tr}var rr,wn;function co(){if(wn)return rr;wn=1;let t="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return rr={nanoid:(a=21)=>{let n="",u=a|0;for(;u--;)n+=t[Math.random()*64|0];return n},customAlphabet:(a,n=21)=>(u=n)=>{let l="",h=u|0;for(;h--;)l+=a[Math.random()*a.length|0];return l}},rr}var nr,xn;function Jn(){if(xn)return nr;xn=1;let{existsSync:t,readFileSync:e}=Ee,{dirname:i,join:a}=Ee,{SourceMapConsumer:n,SourceMapGenerator:u}=Ee;function l(b){return Buffer?Buffer.from(b,"base64").toString():window.atob(b)}class h{constructor(f,r){if(r.map===!1)return;this.loadAnnotation(f),this.inline=this.startWith(this.annotation,"data:");let c=r.map?r.map.prev:void 0,o=this.loadMap(r.from,c);!this.mapFile&&r.from&&(this.mapFile=r.from),this.mapFile&&(this.root=i(this.mapFile)),o&&(this.text=o)}consumer(){return this.consumerCache||(this.consumerCache=new n(this.text)),this.consumerCache}decodeInline(f){let r=/^data:application\/json;charset=utf-?8;base64,/,c=/^data:application\/json;base64,/,o=/^data:application\/json;charset=utf-?8,/,s=/^data:application\/json,/,p=f.match(o)||f.match(s);if(p)return decodeURIComponent(f.substr(p[0].length));let d=f.match(r)||f.match(c);if(d)return l(f.substr(d[0].length));let m=f.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+m)}getAnnotationURL(f){return f.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(f){return typeof f!="object"?!1:typeof f.mappings=="string"||typeof f._mappings=="string"||Array.isArray(f.sections)}loadAnnotation(f){let r=f.match(/\/\*\s*# sourceMappingURL=/g);if(!r)return;let c=f.lastIndexOf(r.pop()),o=f.indexOf("*/",c);c>-1&&o>-1&&(this.annotation=this.getAnnotationURL(f.substring(c,o)))}loadFile(f){if(this.root=i(f),t(f))return this.mapFile=f,e(f,"utf-8").toString().trim()}loadMap(f,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r=="function"){let c=r(f);if(c){let o=this.loadFile(c);if(!o)throw new Error("Unable to load previous source map: "+c.toString());return o}}else{if(r instanceof n)return u.fromSourceMap(r).toString();if(r instanceof u)return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let c=this.annotation;return f&&(c=a(i(f),c)),this.loadFile(c)}}}startWith(f,r){return f?f.substr(0,r.length)===r:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return nr=h,h.default=h,nr}var ir,En;function jt(){if(En)return ir;En=1;let{nanoid:t}=co(),{isAbsolute:e,resolve:i}=Ee,{SourceMapConsumer:a,SourceMapGenerator:n}=Ee,{fileURLToPath:u,pathToFileURL:l}=Ee,h=Pr(),b=Jn(),f=Ee,r=Symbol("lineToIndexCache"),c=!!(a&&n),o=!!(i&&e);function s(d){if(d[r])return d[r];let m=d.css.split(`
|
|
88
|
+
`),x=new Array(m.length),E=0;for(let w=0,y=m.length;w<y;w++)x[w]=E,E+=m[w].length+1;return d[r]=x,x}class p{get from(){return this.file||this.id}constructor(m,x={}){if(m===null||typeof m>"u"||typeof m=="object"&&!m.toString)throw new Error(`PostCSS received ${m} instead of CSS string`);if(this.css=m.toString(),this.css[0]==="\uFEFF"||this.css[0]===""?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,x.document&&(this.document=x.document.toString()),x.from&&(!o||/^\w+:\/\//.test(x.from)||e(x.from)?this.file=x.from:this.file=i(x.from)),o&&c){let E=new b(this.css,x);if(E.text){this.map=E;let w=E.consumer().file;!this.file&&w&&(this.file=this.mapResolve(w))}}this.file||(this.id="<input css "+t(6)+">"),this.map&&(this.map.file=this.from)}error(m,x,E,w={}){let y,v,O,S,N;if(x&&typeof x=="object"){let _=x,F=E;if(typeof _.offset=="number"){S=_.offset;let $=this.fromOffset(S);x=$.line,E=$.col}else x=_.line,E=_.column,S=this.fromLineAndColumn(x,E);if(typeof F.offset=="number"){O=F.offset;let $=this.fromOffset(O);v=$.line,y=$.col}else v=F.line,y=F.column,O=this.fromLineAndColumn(F.line,F.column)}else if(E)S=this.fromLineAndColumn(x,E);else{S=x;let _=this.fromOffset(S);x=_.line,E=_.col}let L=this.origin(x,E,v,y);return L?N=new h(m,L.endLine===void 0?L.line:{column:L.column,line:L.line},L.endLine===void 0?L.column:{column:L.endColumn,line:L.endLine},L.source,L.file,w.plugin):N=new h(m,v===void 0?x:{column:E,line:x},v===void 0?E:{column:y,line:v},this.css,this.file,w.plugin),N.input={column:E,endColumn:y,endLine:v,endOffset:O,line:x,offset:S,source:this.css},this.file&&(l&&(N.input.url=l(this.file).toString()),N.input.file=this.file),N}fromLineAndColumn(m,x){return s(this)[m-1]+x-1}fromOffset(m){let x=s(this),E=x[x.length-1],w=0;if(m>=E)w=x.length-1;else{let y=x.length-2,v;for(;w<y;)if(v=w+(y-w>>1),m<x[v])y=v-1;else if(m>=x[v+1])w=v+1;else{w=v;break}}return{col:m-x[w]+1,line:w+1}}mapResolve(m){return/^\w+:\/\//.test(m)?m:i(this.map.consumer().sourceRoot||this.map.root||".",m)}origin(m,x,E,w){if(!this.map)return!1;let y=this.map.consumer(),v=y.originalPositionFor({column:x,line:m});if(!v.source)return!1;let O;typeof E=="number"&&(O=y.originalPositionFor({column:w,line:E}));let S;e(v.source)?S=l(v.source):S=new URL(v.source,this.map.consumer().sourceRoot||l(this.map.mapFile));let N={column:v.column,endColumn:O&&O.column,endLine:O&&O.line,line:v.line,url:S.toString()};if(S.protocol==="file:")if(u)N.file=u(S);else throw new Error("file: protocol is not available in this PostCSS build");let L=y.sourceContentFor(v.source);return L&&(N.source=L),N}toJSON(){let m={};for(let x of["hasBOM","css","file","id"])this[x]!=null&&(m[x]=this[x]);return this.map&&(m.map={...this.map},m.map.consumerCache&&(m.map.consumerCache=void 0)),m}}return ir=p,p.default=p,f&&f.registerInput&&f.registerInput(p),ir}var sr,On;function pt(){if(On)return sr;On=1;let t=He(),e,i;class a extends t{constructor(u){super(u),this.type="root",this.nodes||(this.nodes=[])}normalize(u,l,h){let b=super.normalize(u);if(l){if(h==="prepend")this.nodes.length>1?l.raws.before=this.nodes[1].raws.before:delete l.raws.before;else if(this.first!==l)for(let f of b)f.raws.before=l.raws.before}return b}removeChild(u,l){let h=this.index(u);return!l&&h===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[h].raws.before),super.removeChild(u)}toResult(u={}){return new e(new i,this,u).stringify()}}return a.registerLazyResult=n=>{e=n},a.registerProcessor=n=>{i=n},sr=a,a.default=a,t.registerRoot(a),sr}var or,kn;function Kn(){if(kn)return or;kn=1;let t={comma(e){return t.split(e,[","],!0)},space(e){let i=[" ",`
|
|
89
|
+
`," "];return t.split(e,i)},split(e,i,a){let n=[],u="",l=!1,h=0,b=!1,f="",r=!1;for(let c of e)r?r=!1:c==="\\"?r=!0:b?c===f&&(b=!1):c==='"'||c==="'"?(b=!0,f=c):c==="("?h+=1:c===")"?h>0&&(h-=1):h===0&&i.includes(c)&&(l=!0),l?(u!==""&&n.push(u.trim()),u="",l=!1):u+=c;return(a||u!=="")&&n.push(u.trim()),n}};return or=t,t.default=t,or}var ar,Sn;function Lr(){if(Sn)return ar;Sn=1;let t=He(),e=Kn();class i extends t{get selectors(){return e.comma(this.selector)}set selectors(n){let u=this.selector?this.selector.match(/,\s*/):null,l=u?u[0]:","+this.raw("between","beforeOpen");this.selector=n.join(l)}constructor(n){super(n),this.type="rule",this.nodes||(this.nodes=[])}}return ar=i,i.default=i,t.registerRule(i),ar}var lr,An;function uo(){if(An)return lr;An=1;let t=Mr(),e=Tt(),i=Lt(),a=jt(),n=Jn(),u=pt(),l=Lr();function h(b,f){if(Array.isArray(b))return b.map(o=>h(o));let{inputs:r,...c}=b;if(r){f=[];for(let o of r){let s={...o,__proto__:a.prototype};s.map&&(s.map={...s.map,__proto__:n.prototype}),f.push(s)}}if(c.nodes&&(c.nodes=b.nodes.map(o=>h(o,f))),c.source){let{inputId:o,...s}=c.source;c.source=s,o!=null&&(c.source.input=f[o])}if(c.type==="root")return new u(c);if(c.type==="decl")return new i(c);if(c.type==="rule")return new l(c);if(c.type==="comment")return new e(c);if(c.type==="atrule")return new t(c);throw new Error("Unknown node type: "+b.type)}return lr=h,h.default=h,lr}var cr,_n;function Yn(){if(_n)return cr;_n=1;let{dirname:t,relative:e,resolve:i,sep:a}=Ee,{SourceMapConsumer:n,SourceMapGenerator:u}=Ee,{pathToFileURL:l}=Ee,h=jt(),b=!!(n&&u),f=!!(t&&i&&e&&a);class r{constructor(o,s,p,d){this.stringify=o,this.mapOpts=p.map||{},this.root=s,this.opts=p,this.css=d,this.originalCSS=d,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let o;this.isInline()?o="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?o=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?o=this.mapOpts.annotation(this.opts.to,this.root):o=this.outputFile()+".map";let s=`
|
|
87
90
|
`;this.css.includes(`\r
|
|
88
|
-
`)&&(
|
|
89
|
-
`),this.css+=
|
|
90
|
-
`),t=a.length-s):t+=a.length,l&&c!=="start"){let u=l.parent||{raws:{}};(!(l.type==="decl"||l.type==="atrule"&&!l.nodes)||l!==u.last||u.raws.semicolon)&&(l.source&&l.source.end?(i.source=this.sourcePath(l),i.original.line=l.source.end.line,i.original.column=l.source.end.column-1,i.generated.line=e,i.generated.column=t-2,this.map.addMapping(i)):(i.source=r,i.original.line=1,i.original.column=0,i.generated.line=e,i.generated.column=t-1,this.map.addMapping(i)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(t=>t.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(e=>e.withContent()):!0}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 r=this.opts.to?At(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(r=At(Nn(r,this.mapOpts.annotation)));let i=Mn(r,e);return this.memoizedPaths.set(e,i),i}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 So(this.css,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let r=t.source.input.from;if(r&&!e[r]){e[r]=!0;let i=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(i,t.source.input.css)}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,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(Yr){let r=Yr(e).toString();return this.memoizedFileURLs.set(e,r),r}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;Tn==="\\"&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}};var Ln=Co;let Ro=Lt,ir=class extends Ro{constructor(e){super(e),this.type="comment"}};var It=ir;ir.default=ir;let{isClean:jn,my:$n}=st,In=jt,Dn=It,Po=Lt,Bn,yr,wr,zn;function Un(n){return n.map(e=>(e.nodes&&(e.nodes=Un(e.nodes)),delete e.source,e))}function Fn(n){if(n[jn]=!1,n.proxyOf.nodes)for(let e of n.proxyOf.nodes)Fn(e)}let me=class Hn extends Po{append(...e){for(let t of e){let r=this.normalize(t,this.last);for(let i of r)this.proxyOf.nodes.push(i)}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(),r,i;for(;this.indexes[t]<this.proxyOf.nodes.length&&(r=this.indexes[t],i=e(this.proxyOf.nodes[r],r),i!==!1);)this.indexes[t]+=1;return delete this.indexes[t],i}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:e[t]?t==="each"||typeof t=="string"&&t.startsWith("walk")?(...r)=>e[t](...r.map(i=>typeof i=="function"?(o,s)=>i(o.toProxy(),s):i)):t==="every"||t==="some"?r=>e[t]((i,...o)=>r(i.toProxy(),...o)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(r=>r.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,r){return e[t]===r||(e[t]=r,(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 r=this.index(e),i=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let s of i)this.proxyOf.nodes.splice(r+1,0,s);let o;for(let s in this.indexes)o=this.indexes[s],r<o&&(this.indexes[s]=o+i.length);return this.markDirty(),this}insertBefore(e,t){let r=this.index(e),i=r===0?"prepend":!1,o=this.normalize(t,this.proxyOf.nodes[r],i).reverse();r=this.index(e);for(let a of o)this.proxyOf.nodes.splice(r,0,a);let s;for(let a in this.indexes)s=this.indexes[a],r<=s&&(this.indexes[a]=s+o.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=Un(Bn(e).nodes);else if(Array.isArray(e)){e=e.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new In(e)]}else if(e.selector)e=[new yr(e)];else if(e.name)e=[new wr(e)];else if(e.text)e=[new Dn(e)];else throw new Error("Unknown node type in node creation");return e.map(i=>(i[$n]||Hn.rebuild(i),i=i.proxyOf,i.parent&&i.parent.removeChild(i),i[jn]&&Fn(i),typeof i.raws.before>"u"&&t&&typeof t.raws.before<"u"&&(i.raws.before=t.raws.before.replace(/\S/g,"")),i.parent=this.proxyOf,i))}prepend(...e){e=e.reverse();for(let t of e){let r=this.normalize(t,this.first,"prepend").reverse();for(let i of r)this.proxyOf.nodes.unshift(i);for(let i in this.indexes)this.indexes[i]=this.indexes[i]+r.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 r in this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls(i=>{t.props&&!t.props.includes(i.prop)||t.fast&&!i.value.includes(t.fast)||(i.value=i.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,r)=>{let i;try{i=e(t,r)}catch(o){throw t.addToError(o)}return i!==!1&&t.walk&&(i=t.walk(e)),i})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if(r.type==="atrule"&&e.test(r.name))return t(r,i)}):this.walk((r,i)=>{if(r.type==="atrule"&&r.name===e)return t(r,i)}):(t=e,this.walk((r,i)=>{if(r.type==="atrule")return t(r,i)}))}walkComments(e){return this.walk((t,r)=>{if(t.type==="comment")return e(t,r)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if(r.type==="decl"&&e.test(r.prop))return t(r,i)}):this.walk((r,i)=>{if(r.type==="decl"&&r.prop===e)return t(r,i)}):(t=e,this.walk((r,i)=>{if(r.type==="decl")return t(r,i)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if(r.type==="rule"&&e.test(r.selector))return t(r,i)}):this.walk((r,i)=>{if(r.type==="rule"&&r.selector===e)return t(r,i)}):(t=e,this.walk((r,i)=>{if(r.type==="rule")return t(r,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]}};me.registerParse=n=>{Bn=n};me.registerRule=n=>{yr=n};me.registerAtRule=n=>{wr=n};me.registerRoot=n=>{zn=n};var Ae=me;me.default=me;me.rebuild=n=>{n.type==="atrule"?Object.setPrototypeOf(n,wr.prototype):n.type==="rule"?Object.setPrototypeOf(n,yr.prototype):n.type==="decl"?Object.setPrototypeOf(n,In.prototype):n.type==="comment"?Object.setPrototypeOf(n,Dn.prototype):n.type==="root"&&Object.setPrototypeOf(n,zn.prototype),n[$n]=!0,n.nodes&&n.nodes.forEach(e=>{me.rebuild(e)})};let Mo=Ae,Wn,qn,Je=class extends Mo{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new Wn(new qn,this,e).stringify()}};Je.registerLazyResult=n=>{Wn=n};Je.registerProcessor=n=>{qn=n};var xr=Je;Je.default=Je;let sr=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in t)this[r]=t[r]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};var Gn=sr;sr.default=sr;let No=Gn,or=class{constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new No(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};var Er=or;or.default=or;const qt=39,Qr=34,pt=92,en=47,dt=10,Fe=32,gt=12,mt=9,bt=13,To=91,Lo=93,jo=40,$o=41,Io=123,Do=125,Bo=59,zo=42,Uo=58,Fo=64,vt=/[\t\n\f\r "#'()/;[\\\]{}]/g,yt=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Ho=/.[\r\n"'(/\\]/,tn=/[\da-f]/i;var Wo=function(e,t={}){let r=e.css.valueOf(),i=t.ignoreErrors,o,s,a,l,c,u,p,d,b,x,O=r.length,h=0,_=[],P=[];function M(){return h}function y(L){throw e.error("Unclosed "+L,h)}function S(){return P.length===0&&h>=O}function C(L){if(P.length)return P.pop();if(h>=O)return;let R=L?L.ignoreUnclosed:!1;switch(o=r.charCodeAt(h),o){case dt:case Fe:case mt:case bt:case gt:{s=h;do s+=1,o=r.charCodeAt(s);while(o===Fe||o===dt||o===mt||o===bt||o===gt);x=["space",r.slice(h,s)],h=s-1;break}case To:case Lo:case Io:case Do:case Uo:case Bo:case $o:{let I=String.fromCharCode(o);x=[I,I,h];break}case jo:{if(d=_.length?_.pop()[1]:"",b=r.charCodeAt(h+1),d==="url"&&b!==qt&&b!==Qr&&b!==Fe&&b!==dt&&b!==mt&&b!==gt&&b!==bt){s=h;do{if(u=!1,s=r.indexOf(")",s+1),s===-1)if(i||R){s=h;break}else y("bracket");for(p=s;r.charCodeAt(p-1)===pt;)p-=1,u=!u}while(u);x=["brackets",r.slice(h,s+1),h,s],h=s}else s=r.indexOf(")",h+1),l=r.slice(h,s+1),s===-1||Ho.test(l)?x=["(","(",h]:(x=["brackets",l,h,s],h=s);break}case qt:case Qr:{a=o===qt?"'":'"',s=h;do{if(u=!1,s=r.indexOf(a,s+1),s===-1)if(i||R){s=h+1;break}else y("string");for(p=s;r.charCodeAt(p-1)===pt;)p-=1,u=!u}while(u);x=["string",r.slice(h,s+1),h,s],h=s;break}case Fo:{vt.lastIndex=h+1,vt.test(r),vt.lastIndex===0?s=r.length-1:s=vt.lastIndex-2,x=["at-word",r.slice(h,s+1),h,s],h=s;break}case pt:{for(s=h,c=!0;r.charCodeAt(s+1)===pt;)s+=1,c=!c;if(o=r.charCodeAt(s+1),c&&o!==en&&o!==Fe&&o!==dt&&o!==mt&&o!==bt&&o!==gt&&(s+=1,tn.test(r.charAt(s)))){for(;tn.test(r.charAt(s+1));)s+=1;r.charCodeAt(s+1)===Fe&&(s+=1)}x=["word",r.slice(h,s+1),h,s],h=s;break}default:{o===en&&r.charCodeAt(h+1)===zo?(s=r.indexOf("*/",h+2)+1,s===0&&(i||R?s=r.length:y("comment")),x=["comment",r.slice(h,s+1),h,s],h=s):(yt.lastIndex=h+1,yt.test(r),yt.lastIndex===0?s=r.length-1:s=yt.lastIndex-2,x=["word",r.slice(h,s+1),h,s],_.push(x),h=s);break}}return h++,x}function N(L){P.push(L)}return{back:N,endOfFile:S,nextToken:C,position:M}};let Vn=Ae,kt=class extends Vn{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};var Or=kt;kt.default=kt;Vn.registerAtRule(kt);let Zn=Ae,Xn,Kn,je=class extends Zn{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let i=super.normalize(e);if(t){if(r==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let o of i)o.raws.before=t.raws.before}return i}removeChild(e,t){let r=this.index(e);return!t&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new Xn(new Kn,this,e).stringify()}};je.registerLazyResult=n=>{Xn=n};je.registerProcessor=n=>{Kn=n};var ot=je;je.default=je;Zn.registerRoot(je);let Ye={comma(n){return Ye.split(n,[","],!0)},space(n){let e=[" ",`
|
|
91
|
-
`," "];return Ye.split(n,e)},split(n,e,t){let r=[],i="",o=!1,s=0,a=!1,l="",c=!1;for(let u of n)c?c=!1:u==="\\"?c=!0:a?u===l&&(a=!1):u==='"'||u==="'"?(a=!0,l=u):u==="("?s+=1:u===")"?s>0&&(s-=1):s===0&&e.includes(u)&&(o=!0),o?(i!==""&&r.push(i.trim()),i="",o=!1):i+=u;return(t||i!=="")&&r.push(i.trim()),r}};var Jn=Ye;Ye.default=Ye;let Yn=Ae,qo=Jn,Ct=class extends Yn{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return qo.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}};var Ar=Ct;Ct.default=Ct;Yn.registerRule(Ct);let Go=jt,Vo=Wo,Zo=It,Xo=Or,Ko=ot,rn=Ar;const nn={empty:!0,space:!0};function Jo(n){for(let e=n.length-1;e>=0;e--){let t=n[e],r=t[3]||t[2];if(r)return r}}let Yo=class{constructor(e){this.input=e,this.root=new Ko,this.current=this.root,this.spaces="",this.semicolon=!1,this.customProperty=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new Xo;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let r,i,o,s=!1,a=!1,l=[],c=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[0],r==="("||r==="["?c.push(r==="("?")":"]"):r==="{"&&c.length>0?c.push("}"):r===c[c.length-1]&&c.pop(),c.length===0)if(r===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(r==="{"){a=!0;break}else if(r==="}"){if(l.length>0){for(o=l.length-1,i=l[o];i&&i[0]==="space";)i=l[--o];i&&(t.source.end=this.getPosition(i[3]||i[2]),t.source.end.offset++)}this.end(e);break}else l.push(e);else l.push(e);if(this.tokenizer.endOfFile()){s=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(t.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(t,"params",l),s&&(e=l[l.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=""),a&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let r=0,i;for(let o=t-1;o>=0&&(i=e[o],!(i[0]!=="space"&&(r+=1,r===2)));o--);throw this.input.error("Missed semicolon",i[0]==="word"?i[3]+1:i[2])}colon(e){let t=0,r,i,o;for(let[s,a]of e.entries()){if(r=a,i=r[0],i==="("&&(t+=1),i===")"&&(t-=1),t===0&&i===":")if(!o)this.doubleColon(r);else{if(o[0]==="word"&&o[1]==="progid")continue;return s}o=r}return!1}comment(e){let t=new Zo;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{let i=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=i[2],t.raws.left=i[1],t.raws.right=i[3]}}createTokenizer(){this.tokenizer=Vo(this.input)}decl(e,t){let r=new Go;this.init(r,e[0][2]);let i=e[e.length-1];for(i[0]===";"&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||Jo(e)),r.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let c=e[0][0];if(c===":"||c==="space"||c==="comment")break;r.prop+=e.shift()[1]}r.raws.between="";let o;for(;e.length;)if(o=e.shift(),o[0]===":"){r.raws.between+=o[1];break}else o[0]==="word"&&/\w/.test(o[1])&&this.unknownWord([o]),r.raws.between+=o[1];(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let s=[],a;for(;e.length&&(a=e[0][0],!(a!=="space"&&a!=="comment"));)s.push(e.shift());this.precheckMissedSemicolon(e);for(let c=e.length-1;c>=0;c--){if(o=e[c],o[1].toLowerCase()==="!important"){r.important=!0;let u=this.stringFrom(e,c);u=this.spacesFromEnd(e)+u,u!==" !important"&&(r.raws.important=u);break}else if(o[1].toLowerCase()==="important"){let u=e.slice(0),p="";for(let d=c;d>0;d--){let b=u[d][0];if(p.trim().indexOf("!")===0&&b!=="space")break;p=u.pop()[1]+p}p.trim().indexOf("!")===0&&(r.important=!0,r.raws.important=p,e=u)}if(o[0]!=="space"&&o[0]!=="comment")break}e.some(c=>c[0]!=="space"&&c[0]!=="comment")&&(r.raws.between+=s.map(c=>c[1]).join(""),s=[]),this.raw(r,"value",s.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new rn;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="")}}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,r=null,i=!1,o=null,s=[],a=e[1].startsWith("--"),l=[],c=e;for(;c;){if(r=c[0],l.push(c),r==="("||r==="[")o||(o=c),s.push(r==="("?")":"]");else if(a&&i&&r==="{")o||(o=c),s.push("}");else if(s.length===0)if(r===";")if(i){this.decl(l,a);return}else break;else if(r==="{"){this.rule(l);return}else if(r==="}"){this.tokenizer.back(l.pop()),t=!0;break}else r===":"&&(i=!0);else r===s[s.length-1]&&(s.pop(),s.length===0&&(o=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),s.length>0&&this.unclosedBracket(o),t&&i){if(!a)for(;l.length&&(c=l[l.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,a)}else this.unknownWord(l)}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,r,i){let o,s,a=r.length,l="",c=!0,u,p;for(let d=0;d<a;d+=1)o=r[d],s=o[0],s==="space"&&d===a-1&&!i?c=!1:s==="comment"?(p=r[d-1]?r[d-1][0]:"empty",u=r[d+1]?r[d+1][0]:"empty",!nn[p]&&!nn[u]?l.slice(-1)===","?c=!1:l+=o[1]:c=!1):l+=o[1];if(!c){let d=r.reduce((b,x)=>b+x[1],"");e.raws[t]={raw:d,value:l}}e[t]=l}rule(e){e.pop();let t=new rn;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t,r="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)r+=e.shift()[1];return r}spacesFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],t==="space");)r=e.pop()[1]+r;return r}stringFrom(e,t){let r="";for(let i=t;i<e.length;i++)r+=e[i][1];return e.splice(t,e.length-t),r}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",{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})}};var Qo=Yo;let ea=Ae,ta=Qo,ra=$t;function Rt(n,e){let t=new ra(n,e),r=new ta(t);try{r.parse()}catch(i){throw i}return r.root}var Sr=Rt;Rt.default=Rt;ea.registerParse(Rt);let{isClean:fe,my:na}=st,ia=Ln,sa=Tt,oa=Ae,aa=xr,sn=Er,la=Sr,ca=ot;const ua={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},fa={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},ha={Once:!0,postcssPlugin:!0,prepare:!0},$e=0;function He(n){return typeof n=="object"&&typeof n.then=="function"}function Qn(n){let e=!1,t=ua[n.type];return n.type==="decl"?e=n.prop.toLowerCase():n.type==="atrule"&&(e=n.name.toLowerCase()),e&&n.append?[t,t+"-"+e,$e,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:n.append?[t,$e,t+"Exit"]:[t,t+"Exit"]}function on(n){let e;return n.type==="document"?e=["Document",$e,"DocumentExit"]:n.type==="root"?e=["Root",$e,"RootExit"]:e=Qn(n),{eventIndex:0,events:e,iterator:0,node:n,visitorIndex:0,visitors:[]}}function ar(n){return n[fe]=!1,n.nodes&&n.nodes.forEach(e=>ar(e)),n}let lr={},Ie=class ei{constructor(e,t,r){this.stringified=!1,this.processed=!1;let i;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))i=ar(t);else if(t instanceof ei||t instanceof sn)i=ar(t.root),t.map&&(typeof r.map>"u"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=t.map);else{let o=la;r.syntax&&(o=r.syntax.parse),r.parser&&(o=r.parser),o.parse&&(o=o.parse);try{i=o(t,r)}catch(s){this.processed=!0,this.error=s}i&&!i[na]&&oa.rebuild(i)}this.result=new sn(e,i,r),this.helpers={...lr,postcss:lr,result:this.result},this.plugins=this.processor.plugins.map(o=>typeof o=="object"&&o.prepare?{...o,...o.prepare(this.result)}:o)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=r.postcssPlugin,e.setMessage()):r.postcssVersion}catch(i){console&&console.error&&console.error(i)}return e}prepareVisitors(){this.listeners={};let e=(t,r,i)=>{this.listeners[r]||(this.listeners[r]=[]),this.listeners[r].push([t,i])};for(let t of this.plugins)if(typeof t=="object")for(let r in t){if(!fa[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!ha[r])if(typeof t[r]=="object")for(let i in t[r])i==="*"?e(t,r,t[r][i]):e(t,r+"-"+i.toLowerCase(),t[r][i]);else typeof t[r]=="function"&&e(t,r,t[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],r=this.runOnRoot(t);if(He(r))try{await r}catch(i){throw this.handleError(i)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[fe];){e[fe]=!0;let t=[on(e)];for(;t.length>0;){let r=this.visitTick(t);if(He(r))try{await r}catch(i){let o=t[t.length-1].node;throw this.handleError(i,o)}}}if(this.listeners.OnceExit)for(let[t,r]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let i=e.nodes.map(o=>r(o,this.helpers));await Promise.all(i)}else await r(e,this.helpers)}catch(i){throw this.handleError(i)}}}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(r=>e.Once(r,this.helpers));return He(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(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=sa;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let i=new ia(t,this.result.root,this.result.opts).generate();return this.result.css=i[0],this.result.map=i[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){let t=this.runOnRoot(e);if(He(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[fe];)e[fe]=!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[r,i]of e){this.result.lastPlugin=r;let o;try{o=i(t,this.helpers)}catch(s){throw this.handleError(s,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(He(o))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:r,visitors:i}=t;if(r.type!=="root"&&r.type!=="document"&&!r.parent){e.pop();return}if(i.length>0&&t.visitorIndex<i.length){let[s,a]=i[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===i.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=s;try{return a(r.toProxy(),this.helpers)}catch(l){throw this.handleError(l,r)}}if(t.iterator!==0){let s=t.iterator,a;for(;a=r.nodes[r.indexes[s]];)if(r.indexes[s]+=1,!a[fe]){a[fe]=!0,e.push(on(a));return}t.iterator=0,delete r.indexes[s]}let o=t.events;for(;t.eventIndex<o.length;){let s=o[t.eventIndex];if(t.eventIndex+=1,s===$e){r.nodes&&r.nodes.length&&(r[fe]=!0,t.iterator=r.getIterator());return}else if(this.listeners[s]){t.visitors=this.listeners[s];return}}e.pop()}walkSync(e){e[fe]=!0;let t=Qn(e);for(let r of t)if(r===$e)e.nodes&&e.each(i=>{i[fe]||this.walkSync(i)});else{let i=this.listeners[r];if(i&&this.visitSync(i,e.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};Ie.registerPostcss=n=>{lr=n};var ti=Ie;Ie.default=Ie;ca.registerLazyResult(Ie);aa.registerLazyResult(Ie);let pa=Ln,da=Tt,ga=Sr;const ma=Er;let cr=class{constructor(e,t,r){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;let i,o=da;this.result=new ma(this._processor,i,this._opts),this.result.css=t;let s=this;Object.defineProperty(this.result,"root",{get(){return s.root}});let a=new pa(o,i,this._opts,t);if(a.isMap()){let[l,c]=a.generate();l&&(this.result.css=l),c&&(this.result.map=c)}}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=ga;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};var ba=cr;cr.default=cr;let va=ba,ya=ti,wa=xr,xa=ot,Qe=class{constructor(e=[]){this.version="8.4.32",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let r of e)if(r.postcss===!0?r=r():r.postcss&&(r=r.postcss),typeof r=="object"&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if(typeof r=="object"&&r.postcssPlugin)t.push(r);else if(typeof r=="function")t.push(r);else if(!(typeof r=="object"&&(r.parse||r.stringify)))throw new Error(r+" is not a PostCSS plugin");return t}process(e,t={}){return this.plugins.length===0&&typeof t.parser>"u"&&typeof t.stringifier>"u"&&typeof t.syntax>"u"?new va(this,e,t):new ya(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var Ea=Qe;Qe.default=Qe;xa.registerProcessor(Qe);wa.registerProcessor(Qe);let Oa=jt,Aa=Rn,Sa=It,_a=Or,ka=$t,Ca=ot,Ra=Ar;function et(n,e){if(Array.isArray(n))return n.map(i=>et(i));let{inputs:t,...r}=n;if(t){e=[];for(let i of t){let o={...i,__proto__:ka.prototype};o.map&&(o.map={...o.map,__proto__:Aa.prototype}),e.push(o)}}if(r.nodes&&(r.nodes=n.nodes.map(i=>et(i,e))),r.source){let{inputId:i,...o}=r.source;r.source=o,i!=null&&(r.source.input=e[i])}if(r.type==="root")return new Ca(r);if(r.type==="decl")return new Oa(r);if(r.type==="rule")return new Ra(r);if(r.type==="comment")return new Sa(r);if(r.type==="atrule")return new _a(r);throw new Error("Unknown node type: "+n.type)}var Pa=et;et.default=et;var an={};let Ma=vr,ri=jt,Na=ti,Ta=Ae,_r=Ea,La=Tt,ja=Pa,ni=xr,$a=Gn,ii=It,si=Or,Ia=Er,Da=$t,Ba=Sr,za=Jn,oi=Ar,ai=ot,Ua=Lt;function T(...n){return n.length===1&&Array.isArray(n[0])&&(n=n[0]),new _r(n)}T.plugin=function(e,t){let r=!1;function i(...s){console&&console.warn&&!r&&(r=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
|
|
92
|
-
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),an.LANG&&an.LANG.startsWith("cn")&&console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南:
|
|
93
|
-
https://www.w3ctech.com/topic/2226`));let a=t(...s);return a.postcssPlugin=e,a.postcssVersion=new _r().version,a}let o;return Object.defineProperty(i,"postcss",{get(){return o||(o=i()),o}}),i.process=function(s,a,l){return T([i(l)]).process(s,a)},i};T.stringify=La;T.parse=Ba;T.fromJSON=ja;T.list=za;T.comment=n=>new ii(n);T.atRule=n=>new si(n);T.decl=n=>new ri(n);T.rule=n=>new oi(n);T.root=n=>new ai(n);T.document=n=>new ni(n);T.CssSyntaxError=Ma;T.Declaration=ri;T.Container=Ta;T.Processor=_r;T.Document=ni;T.Comment=ii;T.Warning=$a;T.AtRule=si;T.Result=Ia;T.Input=Da;T.Rule=oi;T.Root=ai;T.Node=Ua;Na.registerPostcss(T);var Fa=T;T.default=T;const z=Sn(Fa);z.stringify;z.fromJSON;z.plugin;z.parse;z.list;z.document;z.comment;z.atRule;z.rule;z.decl;z.root;z.CssSyntaxError;z.Declaration;z.Container;z.Processor;z.Document;z.Comment;z.Warning;z.AtRule;z.Result;z.Input;z.Rule;z.Root;z.Node;var Ha=function(e){const t=e.prefix,r=/\s+$/.test(t)?t:`${t} `,i=e.ignoreFiles?[].concat(e.ignoreFiles):[],o=e.includeFiles?[].concat(e.includeFiles):[];return function(s){i.length&&s.source.input.file&&ln(s.source.input.file,i)||o.length&&s.source.input.file&&!ln(s.source.input.file,o)||s.walkRules(a=>{const l=["keyframes","-webkit-keyframes","-moz-keyframes","-o-keyframes"];a.parent&&l.includes(a.parent.name)||(a.selectors=a.selectors.map(c=>e.exclude&&Wa(c,e.exclude)?c:e.transform?e.transform(t,c,r+c,s.source.input.file,a):r+c))})}};function ln(n,e){return e.some(t=>t instanceof RegExp?t.test(n):n.includes(t))}function Wa(n,e){return e.some(t=>t instanceof RegExp?t.test(n):n===t)}const qa=Sn(Ha),Ga="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}",Va="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 Za(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function li(n){return n instanceof Map?n.clear=n.delete=n.set=function(){throw new Error("map is read-only")}:n instanceof Set&&(n.add=n.clear=n.delete=function(){throw new Error("set is read-only")}),Object.freeze(n),Object.getOwnPropertyNames(n).forEach(e=>{const t=n[e],r=typeof t;(r==="object"||r==="function")&&!Object.isFrozen(t)&&li(t)}),n}class cn{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function ci(n){return n.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function be(n,...e){const t=Object.create(null);for(const r in n)t[r]=n[r];return e.forEach(function(r){for(const i in r)t[i]=r[i]}),t}const Xa="</span>",un=n=>!!n.scope,Ka=(n,{prefix:e})=>{if(n.startsWith("language:"))return n.replace("language:","language-");if(n.includes(".")){const t=n.split(".");return[`${e}${t.shift()}`,...t.map((r,i)=>`${r}${"_".repeat(i+1)}`)].join(" ")}return`${e}${n}`};class Ja{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=ci(e)}openNode(e){if(!un(e))return;const t=Ka(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){un(e)&&(this.buffer+=Xa)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}const fn=(n={})=>{const e={children:[]};return Object.assign(e,n),e};class kr{constructor(){this.rootNode=fn(),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){const t=fn({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(r=>this._walk(e,r)),e.closeNode(t)),e}static _collapse(e){typeof e!="string"&&e.children&&(e.children.every(t=>typeof t=="string")?e.children=[e.children.join("")]:e.children.forEach(t=>{kr._collapse(t)}))}}class Ya extends kr{constructor(e){super(),this.options=e}addText(e){e!==""&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,t){const r=e.root;t&&(r.scope=`language:${t}`),this.add(r)}toHTML(){return new Ja(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function tt(n){return n?typeof n=="string"?n:n.source:null}function ui(n){return Se("(?=",n,")")}function Qa(n){return Se("(?:",n,")*")}function el(n){return Se("(?:",n,")?")}function Se(...n){return n.map(e=>tt(e)).join("")}function tl(n){const e=n[n.length-1];return typeof e=="object"&&e.constructor===Object?(n.splice(n.length-1,1),e):{}}function Cr(...n){return"("+(tl(n).capture?"":"?:")+n.map(e=>tt(e)).join("|")+")"}function fi(n){return new RegExp(n.toString()+"|").exec("").length-1}function rl(n,e){const t=n&&n.exec(e);return t&&t.index===0}const nl=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function Rr(n,{joinWith:e}){let t=0;return n.map(r=>{t+=1;const i=t;let o=tt(r),s="";for(;o.length>0;){const a=nl.exec(o);if(!a){s+=o;break}s+=o.substring(0,a.index),o=o.substring(a.index+a[0].length),a[0][0]==="\\"&&a[1]?s+="\\"+String(Number(a[1])+i):(s+=a[0],a[0]==="("&&t++)}return s}).map(r=>`(${r})`).join(e)}const il=/\b\B/,hi="[a-zA-Z]\\w*",Pr="[a-zA-Z_]\\w*",pi="\\b\\d+(\\.\\d+)?",di="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",gi="\\b(0b[01]+)",sl="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",ol=(n={})=>{const e=/^#![ ]*\//;return n.binary&&(n.begin=Se(e,/.*\b/,n.binary,/\b.*/)),be({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(t,r)=>{t.index!==0&&r.ignoreMatch()}},n)},rt={begin:"\\\\[\\s\\S]",relevance:0},al={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[rt]},ll={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[rt]},cl={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/},Dt=function(n,e,t={}){const r=be({scope:"comment",begin:n,end:e,contains:[]},t);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});const i=Cr("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:Se(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},ul=Dt("//","$"),fl=Dt("/\\*","\\*/"),hl=Dt("#","$"),pl={scope:"number",begin:pi,relevance:0},dl={scope:"number",begin:di,relevance:0},gl={scope:"number",begin:gi,relevance:0},ml={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[rt,{begin:/\[/,end:/\]/,relevance:0,contains:[rt]}]},bl={scope:"title",begin:hi,relevance:0},vl={scope:"title",begin:Pr,relevance:0},yl={begin:"\\.\\s*"+Pr,relevance:0},wl=function(n){return Object.assign(n,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})};var wt=Object.freeze({__proto__:null,APOS_STRING_MODE:al,BACKSLASH_ESCAPE:rt,BINARY_NUMBER_MODE:gl,BINARY_NUMBER_RE:gi,COMMENT:Dt,C_BLOCK_COMMENT_MODE:fl,C_LINE_COMMENT_MODE:ul,C_NUMBER_MODE:dl,C_NUMBER_RE:di,END_SAME_AS_BEGIN:wl,HASH_COMMENT_MODE:hl,IDENT_RE:hi,MATCH_NOTHING_RE:il,METHOD_GUARD:yl,NUMBER_MODE:pl,NUMBER_RE:pi,PHRASAL_WORDS_MODE:cl,QUOTE_STRING_MODE:ll,REGEXP_MODE:ml,RE_STARTERS_RE:sl,SHEBANG:ol,TITLE_MODE:bl,UNDERSCORE_IDENT_RE:Pr,UNDERSCORE_TITLE_MODE:vl});function xl(n,e){n.input[n.index-1]==="."&&e.ignoreMatch()}function El(n,e){n.className!==void 0&&(n.scope=n.className,delete n.className)}function Ol(n,e){e&&n.beginKeywords&&(n.begin="\\b("+n.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",n.__beforeBegin=xl,n.keywords=n.keywords||n.beginKeywords,delete n.beginKeywords,n.relevance===void 0&&(n.relevance=0))}function Al(n,e){Array.isArray(n.illegal)&&(n.illegal=Cr(...n.illegal))}function Sl(n,e){if(n.match){if(n.begin||n.end)throw new Error("begin & end are not supported with match");n.begin=n.match,delete n.match}}function _l(n,e){n.relevance===void 0&&(n.relevance=1)}const kl=(n,e)=>{if(!n.beforeMatch)return;if(n.starts)throw new Error("beforeMatch cannot be used with starts");const t=Object.assign({},n);Object.keys(n).forEach(r=>{delete n[r]}),n.keywords=t.keywords,n.begin=Se(t.beforeMatch,ui(t.begin)),n.starts={relevance:0,contains:[Object.assign(t,{endsParent:!0})]},n.relevance=0,delete t.beforeMatch},Cl=["of","and","for","in","not","or","if","then","parent","list","value"],Rl="keyword";function mi(n,e,t=Rl){const r=Object.create(null);return typeof n=="string"?i(t,n.split(" ")):Array.isArray(n)?i(t,n):Object.keys(n).forEach(function(o){Object.assign(r,mi(n[o],e,o))}),r;function i(o,s){e&&(s=s.map(a=>a.toLowerCase())),s.forEach(function(a){const l=a.split("|");r[l[0]]=[o,Pl(l[0],l[1])]})}}function Pl(n,e){return e?Number(e):Ml(n)?0:1}function Ml(n){return Cl.includes(n.toLowerCase())}const hn={},Ee=n=>{console.error(n)},pn=(n,...e)=>{console.log(`WARN: ${n}`,...e)},Pe=(n,e)=>{hn[`${n}/${e}`]||(console.log(`Deprecated as of ${n}. ${e}`),hn[`${n}/${e}`]=!0)},Pt=new Error;function bi(n,e,{key:t}){let r=0;const i=n[t],o={},s={};for(let a=1;a<=e.length;a++)s[a+r]=i[a],o[a+r]=!0,r+=fi(e[a-1]);n[t]=s,n[t]._emit=o,n[t]._multi=!0}function Nl(n){if(Array.isArray(n.begin)){if(n.skip||n.excludeBegin||n.returnBegin)throw Ee("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Pt;if(typeof n.beginScope!="object"||n.beginScope===null)throw Ee("beginScope must be object"),Pt;bi(n,n.begin,{key:"beginScope"}),n.begin=Rr(n.begin,{joinWith:""})}}function Tl(n){if(Array.isArray(n.end)){if(n.skip||n.excludeEnd||n.returnEnd)throw Ee("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Pt;if(typeof n.endScope!="object"||n.endScope===null)throw Ee("endScope must be object"),Pt;bi(n,n.end,{key:"endScope"}),n.end=Rr(n.end,{joinWith:""})}}function Ll(n){n.scope&&typeof n.scope=="object"&&n.scope!==null&&(n.beginScope=n.scope,delete n.scope)}function jl(n){Ll(n),typeof n.beginScope=="string"&&(n.beginScope={_wrap:n.beginScope}),typeof n.endScope=="string"&&(n.endScope={_wrap:n.endScope}),Nl(n),Tl(n)}function $l(n){function e(s,a){return new RegExp(tt(s),"m"+(n.case_insensitive?"i":"")+(n.unicodeRegex?"u":"")+(a?"g":""))}class t{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(a,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,a]),this.matchAt+=fi(a)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const a=this.regexes.map(l=>l[1]);this.matcherRe=e(Rr(a,{joinWith:"|"}),!0),this.lastIndex=0}exec(a){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(a);if(!l)return null;const c=l.findIndex((p,d)=>d>0&&p!==void 0),u=this.matchIndexes[c];return l.splice(0,c),Object.assign(l,u)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(a){if(this.multiRegexes[a])return this.multiRegexes[a];const l=new t;return this.rules.slice(a).forEach(([c,u])=>l.addRule(c,u)),l.compile(),this.multiRegexes[a]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(a,l){this.rules.push([a,l]),l.type==="begin"&&this.count++}exec(a){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let c=l.exec(a);if(this.resumingScanAtSamePosition()&&!(c&&c.index===this.lastIndex)){const u=this.getMatcher(0);u.lastIndex=this.lastIndex+1,c=u.exec(a)}return c&&(this.regexIndex+=c.position+1,this.regexIndex===this.count&&this.considerAll()),c}}function i(s){const a=new r;return s.contains.forEach(l=>a.addRule(l.begin,{rule:l,type:"begin"})),s.terminatorEnd&&a.addRule(s.terminatorEnd,{type:"end"}),s.illegal&&a.addRule(s.illegal,{type:"illegal"}),a}function o(s,a){const l=s;if(s.isCompiled)return l;[El,Sl,jl,kl].forEach(u=>u(s,a)),n.compilerExtensions.forEach(u=>u(s,a)),s.__beforeBegin=null,[Ol,Al,_l].forEach(u=>u(s,a)),s.isCompiled=!0;let c=null;return typeof s.keywords=="object"&&s.keywords.$pattern&&(s.keywords=Object.assign({},s.keywords),c=s.keywords.$pattern,delete s.keywords.$pattern),c=c||/\w+/,s.keywords&&(s.keywords=mi(s.keywords,n.case_insensitive)),l.keywordPatternRe=e(c,!0),a&&(s.begin||(s.begin=/\B|\b/),l.beginRe=e(l.begin),!s.end&&!s.endsWithParent&&(s.end=/\B|\b/),s.end&&(l.endRe=e(l.end)),l.terminatorEnd=tt(l.end)||"",s.endsWithParent&&a.terminatorEnd&&(l.terminatorEnd+=(s.end?"|":"")+a.terminatorEnd)),s.illegal&&(l.illegalRe=e(s.illegal)),s.contains||(s.contains=[]),s.contains=[].concat(...s.contains.map(function(u){return Il(u==="self"?s:u)})),s.contains.forEach(function(u){o(u,l)}),s.starts&&o(s.starts,a),l.matcher=i(l),l}if(n.compilerExtensions||(n.compilerExtensions=[]),n.contains&&n.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return n.classNameAliases=be(n.classNameAliases||{}),o(n)}function vi(n){return n?n.endsWithParent||vi(n.starts):!1}function Il(n){return n.variants&&!n.cachedVariants&&(n.cachedVariants=n.variants.map(function(e){return be(n,{variants:null},e)})),n.cachedVariants?n.cachedVariants:vi(n)?be(n,{starts:n.starts?be(n.starts):null}):Object.isFrozen(n)?be(n):n}var Dl="11.9.0";class Bl extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}const Gt=ci,dn=be,gn=Symbol("nomatch"),zl=7,yi=function(n){const e=Object.create(null),t=Object.create(null),r=[];let i=!0;const o="Could not find the language '{}', did you forget to load/include a language module?",s={disableAutodetect:!0,name:"Plain text",contains:[]};let a={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:Ya};function l(f){return a.noHighlightRe.test(f)}function c(f){let m=f.className+" ";m+=f.parentNode?f.parentNode.className:"";const w=a.languageDetectRe.exec(m);if(w){const k=R(w[1]);return k||(pn(o.replace("{}",w[1])),pn("Falling back to no-highlight mode for this block.",f)),k?w[1]:"no-highlight"}return m.split(/\s+/).find(k=>l(k)||R(k))}function u(f,m,w){let k="",D="";typeof m=="object"?(k=f,w=m.ignoreIllegals,D=m.language):(Pe("10.7.0","highlight(lang, code, ...args) has been deprecated."),Pe("10.7.0",`Please use highlight(code, options) instead.
|
|
94
|
-
https://github.com/highlightjs/highlight.js/issues/2277`),D=f,k=m),w===void 0&&(w=!0);const q={code:k,language:D};K("before:highlight",q);const Q=q.result?q.result:p(q.language,q.code,w);return Q.code=q.code,K("after:highlight",Q),Q}function p(f,m,w,k){const D=Object.create(null);function q(g,v){return g.keywords[v]}function Q(){if(!E.keywords){F.addText(j);return}let g=0;E.keywordPatternRe.lastIndex=0;let v=E.keywordPatternRe.exec(j),A="";for(;v;){A+=j.substring(g,v.index);const $=ee.case_insensitive?v[0].toLowerCase():v[0],Z=q(E,$);if(Z){const[de,Ci]=Z;if(F.addText(A),A="",D[$]=(D[$]||0)+1,D[$]<=zl&&(we+=Ci),de.startsWith("_"))A+=v[0];else{const Ri=ee.classNameAliases[de]||de;V(v[0],Ri)}}else A+=v[0];g=E.keywordPatternRe.lastIndex,v=E.keywordPatternRe.exec(j)}A+=j.substring(g),F.addText(A)}function oe(){if(j==="")return;let g=null;if(typeof E.subLanguage=="string"){if(!e[E.subLanguage]){F.addText(j);return}g=p(E.subLanguage,j,!0,ue[E.subLanguage]),ue[E.subLanguage]=g._top}else g=b(j,E.subLanguage.length?E.subLanguage:null);E.relevance>0&&(we+=g.relevance),F.__addSublanguage(g._emitter,g.language)}function U(){E.subLanguage!=null?oe():Q(),j=""}function V(g,v){g!==""&&(F.startScope(v),F.addText(g),F.endScope())}function ye(g,v){let A=1;const $=v.length-1;for(;A<=$;){if(!g._emit[A]){A++;continue}const Z=ee.classNameAliases[g[A]]||g[A],de=v[A];Z?V(de,Z):(j=de,Q(),j=""),A++}}function ce(g,v){return g.scope&&typeof g.scope=="string"&&F.openNode(ee.classNameAliases[g.scope]||g.scope),g.beginScope&&(g.beginScope._wrap?(V(j,ee.classNameAliases[g.beginScope._wrap]||g.beginScope._wrap),j=""):g.beginScope._multi&&(ye(g.beginScope,v),j="")),E=Object.create(g,{parent:{value:E}}),E}function _e(g,v,A){let $=rl(g.endRe,A);if($){if(g["on:end"]){const Z=new cn(g);g["on:end"](v,Z),Z.isMatchIgnored&&($=!1)}if($){for(;g.endsParent&&g.parent;)g=g.parent;return g}}if(g.endsWithParent)return _e(g.parent,v,A)}function zt(g){return E.matcher.regexIndex===0?(j+=g[0],1):(Re=!0,0)}function Be(g){const v=g[0],A=g.rule,$=new cn(A),Z=[A.__beforeBegin,A["on:begin"]];for(const de of Z)if(de&&(de(g,$),$.isMatchIgnored))return zt(v);return A.skip?j+=v:(A.excludeBegin&&(j+=v),U(),!A.returnBegin&&!A.excludeBegin&&(j=v)),ce(A,g),A.returnBegin?0:v.length}function Ut(g){const v=g[0],A=m.substring(g.index),$=_e(E,g,A);if(!$)return gn;const Z=E;E.endScope&&E.endScope._wrap?(U(),V(v,E.endScope._wrap)):E.endScope&&E.endScope._multi?(U(),ye(E.endScope,g)):Z.skip?j+=v:(Z.returnEnd||Z.excludeEnd||(j+=v),U(),Z.excludeEnd&&(j=v));do E.scope&&F.closeNode(),!E.skip&&!E.subLanguage&&(we+=E.relevance),E=E.parent;while(E!==$.parent);return $.starts&&ce($.starts,g),Z.returnEnd?0:v.length}function at(){const g=[];for(let v=E;v!==ee;v=v.parent)v.scope&&g.unshift(v.scope);g.forEach(v=>F.openNode(v))}let ke={};function lt(g,v){const A=v&&v[0];if(j+=g,A==null)return U(),0;if(ke.type==="begin"&&v.type==="end"&&ke.index===v.index&&A===""){if(j+=m.slice(v.index,v.index+1),!i){const $=new Error(`0 width match regex (${f})`);throw $.languageName=f,$.badRule=ke.rule,$}return 1}if(ke=v,v.type==="begin")return Be(v);if(v.type==="illegal"&&!w){const $=new Error('Illegal lexeme "'+A+'" for mode "'+(E.scope||"<unnamed>")+'"');throw $.mode=E,$}else if(v.type==="end"){const $=Ut(v);if($!==gn)return $}if(v.type==="illegal"&&A==="")return 1;if(Ce>1e5&&Ce>v.index*3)throw new Error("potential infinite loop, way more iterations than matches");return j+=A,A.length}const ee=R(f);if(!ee)throw Ee(o.replace("{}",f)),new Error('Unknown language: "'+f+'"');const ct=$l(ee);let ze="",E=k||ct;const ue={},F=new a.__emitter(a);at();let j="",we=0,ae=0,Ce=0,Re=!1;try{if(ee.__emitTokens)ee.__emitTokens(m,F);else{for(E.matcher.considerAll();;){Ce++,Re?Re=!1:E.matcher.considerAll(),E.matcher.lastIndex=ae;const g=E.matcher.exec(m);if(!g)break;const v=m.substring(ae,g.index),A=lt(v,g);ae=g.index+A}lt(m.substring(ae))}return F.finalize(),ze=F.toHTML(),{language:f,value:ze,relevance:we,illegal:!1,_emitter:F,_top:E}}catch(g){if(g.message&&g.message.includes("Illegal"))return{language:f,value:Gt(m),illegal:!0,relevance:0,_illegalBy:{message:g.message,index:ae,context:m.slice(ae-100,ae+100),mode:g.mode,resultSoFar:ze},_emitter:F};if(i)return{language:f,value:Gt(m),illegal:!1,relevance:0,errorRaised:g,_emitter:F,_top:E};throw g}}function d(f){const m={value:Gt(f),illegal:!1,relevance:0,_top:s,_emitter:new a.__emitter(a)};return m._emitter.addText(f),m}function b(f,m){m=m||a.languages||Object.keys(e);const w=d(f),k=m.filter(R).filter(H).map(U=>p(U,f,!1));k.unshift(w);const D=k.sort((U,V)=>{if(U.relevance!==V.relevance)return V.relevance-U.relevance;if(U.language&&V.language){if(R(U.language).supersetOf===V.language)return 1;if(R(V.language).supersetOf===U.language)return-1}return 0}),[q,Q]=D,oe=q;return oe.secondBest=Q,oe}function x(f,m,w){const k=m&&t[m]||w;f.classList.add("hljs"),f.classList.add(`language-${k}`)}function O(f){let m=null;const w=c(f);if(l(w))return;if(K("before:highlightElement",{el:f,language:w}),f.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",f);return}if(f.children.length>0&&(a.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(f)),a.throwUnescapedHTML))throw new Bl("One of your code blocks includes unescaped HTML.",f.innerHTML);m=f;const k=m.textContent,D=w?u(k,{language:w,ignoreIllegals:!0}):b(k);f.innerHTML=D.value,f.dataset.highlighted="yes",x(f,w,D.language),f.result={language:D.language,re:D.relevance,relevance:D.relevance},D.secondBest&&(f.secondBest={language:D.secondBest.language,relevance:D.secondBest.relevance}),K("after:highlightElement",{el:f,result:D,text:k})}function h(f){a=dn(a,f)}const _=()=>{y(),Pe("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function P(){y(),Pe("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let M=!1;function y(){if(document.readyState==="loading"){M=!0;return}document.querySelectorAll(a.cssSelector).forEach(O)}function S(){M&&y()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",S,!1);function C(f,m){let w=null;try{w=m(n)}catch(k){if(Ee("Language definition for '{}' could not be registered.".replace("{}",f)),i)Ee(k);else throw k;w=s}w.name||(w.name=f),e[f]=w,w.rawDefinition=m.bind(null,n),w.aliases&&I(w.aliases,{languageName:f})}function N(f){delete e[f];for(const m of Object.keys(t))t[m]===f&&delete t[m]}function L(){return Object.keys(e)}function R(f){return f=(f||"").toLowerCase(),e[f]||e[t[f]]}function I(f,{languageName:m}){typeof f=="string"&&(f=[f]),f.forEach(w=>{t[w.toLowerCase()]=m})}function H(f){const m=R(f);return m&&!m.disableAutodetect}function X(f){f["before:highlightBlock"]&&!f["before:highlightElement"]&&(f["before:highlightElement"]=m=>{f["before:highlightBlock"](Object.assign({block:m.el},m))}),f["after:highlightBlock"]&&!f["after:highlightElement"]&&(f["after:highlightElement"]=m=>{f["after:highlightBlock"](Object.assign({block:m.el},m))})}function W(f){X(f),r.push(f)}function se(f){const m=r.indexOf(f);m!==-1&&r.splice(m,1)}function K(f,m){const w=f;r.forEach(function(k){k[w]&&k[w](m)})}function G(f){return Pe("10.7.0","highlightBlock will be removed entirely in v12.0"),Pe("10.7.0","Please use highlightElement now."),O(f)}Object.assign(n,{highlight:u,highlightAuto:b,highlightAll:y,highlightElement:O,highlightBlock:G,configure:h,initHighlighting:_,initHighlightingOnLoad:P,registerLanguage:C,unregisterLanguage:N,listLanguages:L,getLanguage:R,registerAliases:I,autoDetection:H,inherit:dn,addPlugin:W,removePlugin:se}),n.debugMode=function(){i=!1},n.safeMode=function(){i=!0},n.versionString=Dl,n.regex={concat:Se,lookahead:ui,either:Cr,optional:el,anyNumberOfTimes:Qa};for(const f in wt)typeof wt[f]=="object"&&li(wt[f]);return Object.assign(n,wt),n},De=yi({});De.newInstance=()=>yi({});var Ul=De;De.HighlightJS=De;De.default=De;const Bt=Za(Ul),Mt="[A-Za-z$_][0-9A-Za-z$_]*",wi=["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"],xi=["true","false","null","undefined","NaN","Infinity"],Ei=["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"],Oi=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Ai=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Si=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],_i=[].concat(Ai,Ei,Oi);function Fl(n){const e=n.regex,t=(f,{after:m})=>{const w="</"+f[0].slice(1);return f.input.indexOf(w,m)!==-1},r=Mt,i={begin:"<>",end:"</>"},o=/<[A-Za-z0-9\\._:-]+\s*\/>/,s={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(f,m)=>{const w=f[0].length+f.index,k=f.input[w];if(k==="<"||k===","){m.ignoreMatch();return}k===">"&&(t(f,{after:w})||m.ignoreMatch());let D;const q=f.input.substring(w);if(D=q.match(/^\s*=/)){m.ignoreMatch();return}if((D=q.match(/^\s+extends\s+/))&&D.index===0){m.ignoreMatch();return}}},a={$pattern:Mt,keyword:wi,literal:xi,built_in:_i,"variable.language":Si},l="[0-9](_?[0-9])*",c=`\\.(${l})`,u="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",p={className:"number",variants:[{begin:`(\\b(${u})((${c})|\\.)?|(${c}))[eE][+-]?(${l})\\b`},{begin:`\\b(${u})\\b((${c})\\b|\\.)?|(${c})\\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},d={className:"subst",begin:"\\$\\{",end:"\\}",keywords:a,contains:[]},b={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,d],subLanguage:"xml"}},x={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,d],subLanguage:"css"}},O={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,d],subLanguage:"graphql"}},h={className:"string",begin:"`",end:"`",contains:[n.BACKSLASH_ESCAPE,d]},_={className:"comment",variants:[n.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}]}]}),n.C_BLOCK_COMMENT_MODE,n.C_LINE_COMMENT_MODE]},P=[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,b,x,O,h,{match:/\$\d+/},p];d.contains=P.concat({begin:/\{/,end:/\}/,keywords:a,contains:["self"].concat(P)});const M=[].concat(_,d.contains),y=M.concat([{begin:/\(/,end:/\)/,keywords:a,contains:["self"].concat(M)}]),S={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:y},C={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,e.concat(r,"(",e.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},N={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:{_:[...Ei,...Oi]}},L={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},R={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[S],illegal:/%/},I={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function H(f){return e.concat("(?!",f.join("|"),")")}const X={match:e.concat(/\b/,H([...Ai,"super","import"]),r,e.lookahead(/\(/)),className:"title.function",relevance:0},W={begin:e.concat(/\./,e.lookahead(e.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},se={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},S]},K="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+n.UNDERSCORE_IDENT_RE+")\\s*=>",G={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(K)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[S]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:a,exports:{PARAMS_CONTAINS:y,CLASS_REFERENCE:N},illegal:/#(?![$_A-z])/,contains:[n.SHEBANG({label:"shebang",binary:"node",relevance:5}),L,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,b,x,O,h,_,{match:/\$\d+/},p,N,{className:"attr",begin:r+e.lookahead(":"),relevance:0},G,{begin:"("+n.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[_,n.REGEXP_MODE,{className:"function",begin:K,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:n.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:y}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:o},{begin:s.begin,"on:begin":s.isTrulyOpeningTag,end:s.end}],subLanguage:"xml",contains:[{begin:s.begin,end:s.end,skip:!0,contains:["self"]}]}]},R,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+n.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[S,n.inherit(n.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},W,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[S]},X,I,C,se,{match:/\$[(.]/}]}}function Hl(n){const e=Fl(n),t=Mt,r=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],i={beginKeywords:"namespace",end:/\{/,excludeEnd:!0,contains:[e.exports.CLASS_REFERENCE]},o={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:r},contains:[e.exports.CLASS_REFERENCE]},s={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},a=["type","namespace","interface","public","private","protected","implements","declare","abstract","readonly","enum","override"],l={$pattern:Mt,keyword:wi.concat(a),literal:xi,built_in:_i.concat(r),"variable.language":Si},c={className:"meta",begin:"@"+t},u=(d,b,x)=>{const O=d.contains.findIndex(h=>h.label===b);if(O===-1)throw new Error("can not find mode to replace");d.contains.splice(O,1,x)};Object.assign(e.keywords,l),e.exports.PARAMS_CONTAINS.push(c),e.contains=e.contains.concat([c,i,o]),u(e,"shebang",n.SHEBANG()),u(e,"use_strict",s);const p=e.contains.find(d=>d.label==="func.def");return p.relevance=0,Object.assign(e,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),e}function Wl(n){const e=n.regex,t=e.concat(/[\p{L}_]/u,e.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]+;/},o={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},s=n.inherit(o,{begin:/\(/,end:/\)/}),a=n.inherit(n.APOS_STRING_MODE,{className:"string"}),l=n.inherit(n.QUOTE_STRING_MODE,{className:"string"}),c={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:[o,l,a,s,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[o,s,l,a]}]}]},n.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},i,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[l]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[c],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[c],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:e.concat(/</,e.lookahead(e.concat(t,e.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:t,relevance:0,starts:c}]},{className:"tag",begin:e.concat(/<\//,e.lookahead(e.concat(t,/>/))),contains:[{className:"name",begin:t,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}const ql=n=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:n.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:[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:n.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_-]*/}}),Gl=["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","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],Vl=["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"],Zl=["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"],Xl=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],Kl=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","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-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-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","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","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","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","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","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","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-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-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","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","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();function Jl(n){const e=n.regex,t=ql(n),r={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},i="and or not only",o=/@-?\w[\w]*(-\w+)*/,s="[a-zA-Z-][a-zA-Z0-9_-]*",a=[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[t.BLOCK_COMMENT,r,t.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+s,relevance:0},t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+Zl.join("|")+")"},{begin:":(:)?("+Xl.join("|")+")"}]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Kl.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[t.BLOCK_COMMENT,t.HEXCOLOR,t.IMPORTANT,t.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}]},t.FUNCTION_DISPATCH]},{begin:e.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:o},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:i,attribute:Vl.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...a,t.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+Gl.join("|")+")\\b"}]}}const ki=document.createElement("style");ki.innerText=[Ga,Va].join(`
|
|
95
|
-
`);document.head.appendChild(
|
|
96
|
-
`).trim();return
|
|
91
|
+
`)&&(s=`\r
|
|
92
|
+
`),this.css+=s+"/*# sourceMappingURL="+o+" */"}applyPrevMaps(){for(let o of this.previous()){let s=this.toUrl(this.path(o.file)),p=o.root||t(o.file),d;this.mapOpts.sourcesContent===!1?(d=new n(o.text),d.sourcesContent&&(d.sourcesContent=null)):d=o.consumer(),this.map.applySourceMap(d,s,this.toUrl(this.path(p)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let o;for(let s=this.root.nodes.length-1;s>=0;s--)o=this.root.nodes[s],o.type==="comment"&&o.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(s)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),f&&b&&this.isMap())return this.generateMap();{let o="";return this.stringify(this.root,s=>{o+=s}),[o]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let o=this.previous()[0].consumer();o.file=this.outputFile(),this.map=u.fromSourceMap(o,{ignoreInvalidMapping:!0})}else this.map=new u({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new u({file:this.outputFile(),ignoreInvalidMapping:!0});let o=1,s=1,p="<no source>",d={generated:{column:0,line:0},original:{column:0,line:0},source:""},m,x;this.stringify(this.root,(E,w,y)=>{if(this.css+=E,w&&y!=="end"&&(d.generated.line=o,d.generated.column=s-1,w.source&&w.source.start?(d.source=this.sourcePath(w),d.original.line=w.source.start.line,d.original.column=w.source.start.column-1,this.map.addMapping(d)):(d.source=p,d.original.line=1,d.original.column=0,this.map.addMapping(d))),x=E.match(/\n/g),x?(o+=x.length,m=E.lastIndexOf(`
|
|
93
|
+
`),s=E.length-m):s+=E.length,w&&y!=="start"){let v=w.parent||{raws:{}};(!(w.type==="decl"||w.type==="atrule"&&!w.nodes)||w!==v.last||v.raws.semicolon)&&(w.source&&w.source.end?(d.source=this.sourcePath(w),d.original.line=w.source.end.line,d.original.column=w.source.end.column-1,d.generated.line=o,d.generated.column=s-2,this.map.addMapping(d)):(d.source=p,d.original.line=1,d.original.column=0,d.generated.line=o,d.generated.column=s-1,this.map.addMapping(d)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(o=>o.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let o=this.mapOpts.annotation;return typeof o<"u"&&o!==!0?!1:this.previous().length?this.previous().some(s=>s.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(o=>o.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(o){if(this.mapOpts.absolute||o.charCodeAt(0)===60||/^\w+:\/\//.test(o))return o;let s=this.memoizedPaths.get(o);if(s)return s;let p=this.opts.to?t(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(p=t(i(p,this.mapOpts.annotation)));let d=e(p,o);return this.memoizedPaths.set(o,d),d}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(o=>{if(o.source&&o.source.input.map){let s=o.source.input.map;this.previousMaps.includes(s)||this.previousMaps.push(s)}});else{let o=new h(this.originalCSS,this.opts);o.map&&this.previousMaps.push(o.map)}return this.previousMaps}setSourcesContent(){let o={};if(this.root)this.root.walk(s=>{if(s.source){let p=s.source.input.from;if(p&&!o[p]){o[p]=!0;let d=this.usesFileUrls?this.toFileUrl(p):this.toUrl(this.path(p));this.map.setSourceContent(d,s.source.input.css)}}});else if(this.css){let s=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(s,this.css)}}sourcePath(o){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(o.source.input.from):this.toUrl(this.path(o.source.input.from))}toBase64(o){return Buffer?Buffer.from(o).toString("base64"):window.btoa(unescape(encodeURIComponent(o)))}toFileUrl(o){let s=this.memoizedFileURLs.get(o);if(s)return s;if(l){let p=l(o).toString();return this.memoizedFileURLs.set(o,p),p}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(o){let s=this.memoizedURLs.get(o);if(s)return s;a==="\\"&&(o=o.replace(/\\/g,"/"));let p=encodeURI(o).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(o,p),p}}return cr=r,cr}var ur,Cn;function fo(){if(Cn)return ur;Cn=1;const t=39,e=34,i=92,a=47,n=10,u=32,l=12,h=9,b=13,f=91,r=93,c=40,o=41,s=123,p=125,d=59,m=42,x=58,E=64,w=/[\t\n\f\r "#'()/;[\\\]{}]/g,y=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,v=/.[\r\n"'(/\\]/,O=/[\da-f]/i;return ur=function(N,L={}){let _=N.css.valueOf(),F=L.ignoreErrors,$,K,te,P,re,q,X,Y,ie,ge,he=_.length,D=0,me=[],ce=[];function Ne(){return D}function Oe(be){throw N.error("Unclosed "+be,D)}function xe(){return ce.length===0&&D>=he}function ke(be){if(ce.length)return ce.pop();if(D>=he)return;let ze=be?be.ignoreUnclosed:!1;switch($=_.charCodeAt(D),$){case n:case u:case h:case b:case l:{P=D;do P+=1,$=_.charCodeAt(P);while($===u||$===n||$===h||$===b||$===l);q=["space",_.slice(D,P)],D=P-1;break}case f:case r:case s:case p:case x:case d:case o:{let $e=String.fromCharCode($);q=[$e,$e,D];break}case c:{if(ge=me.length?me.pop()[1]:"",ie=_.charCodeAt(D+1),ge==="url"&&ie!==t&&ie!==e&&ie!==u&&ie!==n&&ie!==h&&ie!==l&&ie!==b){P=D;do{if(X=!1,P=_.indexOf(")",P+1),P===-1)if(F||ze){P=D;break}else Oe("bracket");for(Y=P;_.charCodeAt(Y-1)===i;)Y-=1,X=!X}while(X);q=["brackets",_.slice(D,P+1),D,P],D=P}else P=_.indexOf(")",D+1),K=_.slice(D,P+1),P===-1||v.test(K)?q=["(","(",D]:(q=["brackets",K,D,P],D=P);break}case t:case e:{re=$===t?"'":'"',P=D;do{if(X=!1,P=_.indexOf(re,P+1),P===-1)if(F||ze){P=D+1;break}else Oe("string");for(Y=P;_.charCodeAt(Y-1)===i;)Y-=1,X=!X}while(X);q=["string",_.slice(D,P+1),D,P],D=P;break}case E:{w.lastIndex=D+1,w.test(_),w.lastIndex===0?P=_.length-1:P=w.lastIndex-2,q=["at-word",_.slice(D,P+1),D,P],D=P;break}case i:{for(P=D,te=!0;_.charCodeAt(P+1)===i;)P+=1,te=!te;if($=_.charCodeAt(P+1),te&&$!==a&&$!==u&&$!==n&&$!==h&&$!==b&&$!==l&&(P+=1,O.test(_.charAt(P)))){for(;O.test(_.charAt(P+1));)P+=1;_.charCodeAt(P+1)===u&&(P+=1)}q=["word",_.slice(D,P+1),D,P],D=P;break}default:{$===a&&_.charCodeAt(D+1)===m?(P=_.indexOf("*/",D+2)+1,P===0&&(F||ze?P=_.length:Oe("comment")),q=["comment",_.slice(D,P+1),D,P],D=P):(y.lastIndex=D+1,y.test(_),y.lastIndex===0?P=_.length-1:P=y.lastIndex-2,q=["word",_.slice(D,P+1),D,P],me.push(q),D=P);break}}return D++,q}function Qe(be){ce.push(be)}return{back:Qe,endOfFile:xe,nextToken:ke,position:Ne}},ur}var fr,Rn;function ho(){if(Rn)return fr;Rn=1;let t=Mr(),e=Tt(),i=Lt(),a=pt(),n=Lr(),u=fo();const l={empty:!0,space:!0};function h(f){for(let r=f.length-1;r>=0;r--){let c=f[r],o=c[3]||c[2];if(o)return o}}class b{constructor(r){this.input=r,this.root=new a,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:r,start:{column:1,line:1,offset:0}}}atrule(r){let c=new t;c.name=r[1].slice(1),c.name===""&&this.unnamedAtrule(c,r),this.init(c,r[2]);let o,s,p,d=!1,m=!1,x=[],E=[];for(;!this.tokenizer.endOfFile();){if(r=this.tokenizer.nextToken(),o=r[0],o==="("||o==="["?E.push(o==="("?")":"]"):o==="{"&&E.length>0?E.push("}"):o===E[E.length-1]&&E.pop(),E.length===0)if(o===";"){c.source.end=this.getPosition(r[2]),c.source.end.offset++,this.semicolon=!0;break}else if(o==="{"){m=!0;break}else if(o==="}"){if(x.length>0){for(p=x.length-1,s=x[p];s&&s[0]==="space";)s=x[--p];s&&(c.source.end=this.getPosition(s[3]||s[2]),c.source.end.offset++)}this.end(r);break}else x.push(r);else x.push(r);if(this.tokenizer.endOfFile()){d=!0;break}}c.raws.between=this.spacesAndCommentsFromEnd(x),x.length?(c.raws.afterName=this.spacesAndCommentsFromStart(x),this.raw(c,"params",x),d&&(r=x[x.length-1],c.source.end=this.getPosition(r[3]||r[2]),c.source.end.offset++,this.spaces=c.raws.between,c.raws.between="")):(c.raws.afterName="",c.params=""),m&&(c.nodes=[],this.current=c)}checkMissedSemicolon(r){let c=this.colon(r);if(c===!1)return;let o=0,s;for(let p=c-1;p>=0&&(s=r[p],!(s[0]!=="space"&&(o+=1,o===2)));p--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}colon(r){let c=0,o,s,p;for(let[d,m]of r.entries()){if(s=m,p=s[0],p==="("&&(c+=1),p===")"&&(c-=1),c===0&&p===":")if(!o)this.doubleColon(s);else{if(o[0]==="word"&&o[1]==="progid")continue;return d}o=s}return!1}comment(r){let c=new e;this.init(c,r[2]),c.source.end=this.getPosition(r[3]||r[2]),c.source.end.offset++;let o=r[1].slice(2,-2);if(/^\s*$/.test(o))c.text="",c.raws.left=o,c.raws.right="";else{let s=o.match(/^(\s*)([^]*\S)(\s*)$/);c.text=s[2],c.raws.left=s[1],c.raws.right=s[3]}}createTokenizer(){this.tokenizer=u(this.input)}decl(r,c){let o=new i;this.init(o,r[0][2]);let s=r[r.length-1];for(s[0]===";"&&(this.semicolon=!0,r.pop()),o.source.end=this.getPosition(s[3]||s[2]||h(r)),o.source.end.offset++;r[0][0]!=="word";)r.length===1&&this.unknownWord(r),o.raws.before+=r.shift()[1];for(o.source.start=this.getPosition(r[0][2]),o.prop="";r.length;){let E=r[0][0];if(E===":"||E==="space"||E==="comment")break;o.prop+=r.shift()[1]}o.raws.between="";let p;for(;r.length;)if(p=r.shift(),p[0]===":"){o.raws.between+=p[1];break}else p[0]==="word"&&/\w/.test(p[1])&&this.unknownWord([p]),o.raws.between+=p[1];(o.prop[0]==="_"||o.prop[0]==="*")&&(o.raws.before+=o.prop[0],o.prop=o.prop.slice(1));let d=[],m;for(;r.length&&(m=r[0][0],!(m!=="space"&&m!=="comment"));)d.push(r.shift());this.precheckMissedSemicolon(r);for(let E=r.length-1;E>=0;E--){if(p=r[E],p[1].toLowerCase()==="!important"){o.important=!0;let w=this.stringFrom(r,E);w=this.spacesFromEnd(r)+w,w!==" !important"&&(o.raws.important=w);break}else if(p[1].toLowerCase()==="important"){let w=r.slice(0),y="";for(let v=E;v>0;v--){let O=w[v][0];if(y.trim().startsWith("!")&&O!=="space")break;y=w.pop()[1]+y}y.trim().startsWith("!")&&(o.important=!0,o.raws.important=y,r=w)}if(p[0]!=="space"&&p[0]!=="comment")break}r.some(E=>E[0]!=="space"&&E[0]!=="comment")&&(o.raws.between+=d.map(E=>E[1]).join(""),d=[]),this.raw(o,"value",d.concat(r),c),o.value.includes(":")&&!c&&this.checkMissedSemicolon(r)}doubleColon(r){throw this.input.error("Double colon",{offset:r[2]},{offset:r[2]+r[1].length})}emptyRule(r){let c=new n;this.init(c,r[2]),c.selector="",c.raws.between="",this.current=c}end(r){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(r[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(r)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(r){if(this.spaces+=r[1],this.current.nodes){let c=this.current.nodes[this.current.nodes.length-1];c&&c.type==="rule"&&!c.raws.ownSemicolon&&(c.raws.ownSemicolon=this.spaces,this.spaces="",c.source.end=this.getPosition(r[2]),c.source.end.offset+=c.raws.ownSemicolon.length)}}getPosition(r){let c=this.input.fromOffset(r);return{column:c.col,line:c.line,offset:r}}init(r,c){this.current.push(r),r.source={input:this.input,start:this.getPosition(c)},r.raws.before=this.spaces,this.spaces="",r.type!=="comment"&&(this.semicolon=!1)}other(r){let c=!1,o=null,s=!1,p=null,d=[],m=r[1].startsWith("--"),x=[],E=r;for(;E;){if(o=E[0],x.push(E),o==="("||o==="[")p||(p=E),d.push(o==="("?")":"]");else if(m&&s&&o==="{")p||(p=E),d.push("}");else if(d.length===0)if(o===";")if(s){this.decl(x,m);return}else break;else if(o==="{"){this.rule(x);return}else if(o==="}"){this.tokenizer.back(x.pop()),c=!0;break}else o===":"&&(s=!0);else o===d[d.length-1]&&(d.pop(),d.length===0&&(p=null));E=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(c=!0),d.length>0&&this.unclosedBracket(p),c&&s){if(!m)for(;x.length&&(E=x[x.length-1][0],!(E!=="space"&&E!=="comment"));)this.tokenizer.back(x.pop());this.decl(x,m)}else this.unknownWord(x)}parse(){let r;for(;!this.tokenizer.endOfFile();)switch(r=this.tokenizer.nextToken(),r[0]){case"space":this.spaces+=r[1];break;case";":this.freeSemicolon(r);break;case"}":this.end(r);break;case"comment":this.comment(r);break;case"at-word":this.atrule(r);break;case"{":this.emptyRule(r);break;default:this.other(r);break}this.endFile()}precheckMissedSemicolon(){}raw(r,c,o,s){let p,d,m=o.length,x="",E=!0,w,y;for(let v=0;v<m;v+=1)p=o[v],d=p[0],d==="space"&&v===m-1&&!s?E=!1:d==="comment"?(y=o[v-1]?o[v-1][0]:"empty",w=o[v+1]?o[v+1][0]:"empty",!l[y]&&!l[w]?x.slice(-1)===","?E=!1:x+=p[1]:E=!1):x+=p[1];if(!E){let v=o.reduce((O,S)=>O+S[1],"");r.raws[c]={raw:v,value:x}}r[c]=x}rule(r){r.pop();let c=new n;this.init(c,r[0][2]),c.raws.between=this.spacesAndCommentsFromEnd(r),this.raw(c,"selector",r),this.current=c}spacesAndCommentsFromEnd(r){let c,o="";for(;r.length&&(c=r[r.length-1][0],!(c!=="space"&&c!=="comment"));)o=r.pop()[1]+o;return o}spacesAndCommentsFromStart(r){let c,o="";for(;r.length&&(c=r[0][0],!(c!=="space"&&c!=="comment"));)o+=r.shift()[1];return o}spacesFromEnd(r){let c,o="";for(;r.length&&(c=r[r.length-1][0],c==="space");)o=r.pop()[1]+o;return o}stringFrom(r,c){let o="";for(let s=c;s<r.length;s++)o+=r[s][1];return r.splice(c,r.length-c),o}unclosedBlock(){let r=this.current.source.start;throw this.input.error("Unclosed block",r.line,r.column)}unclosedBracket(r){throw this.input.error("Unclosed bracket",{offset:r[2]},{offset:r[2]+1})}unexpectedClose(r){throw this.input.error("Unexpected }",{offset:r[2]},{offset:r[2]+1})}unknownWord(r){throw this.input.error("Unknown word "+r[0][1],{offset:r[0][2]},{offset:r[0][2]+r[0][1].length})}unnamedAtrule(r,c){throw this.input.error("At-rule without name",{offset:c[2]},{offset:c[2]+c[1].length})}}return fr=b,fr}var hr,Pn;function jr(){if(Pn)return hr;Pn=1;let t=He(),e=jt(),i=ho();function a(n,u){let l=new e(n,u),h=new i(l);try{h.parse()}catch(b){throw b}return h.root}return hr=a,a.default=a,t.registerParse(a),hr}var pr,Nn;function Qn(){if(Nn)return pr;Nn=1;class t{constructor(i,a={}){if(this.type="warning",this.text=i,a.node&&a.node.source){let n=a.node.rangeBy(a);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(let n in a)this[n]=a[n]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return pr=t,t.default=t,pr}var dr,Mn;function Ir(){if(Mn)return dr;Mn=1;let t=Qn();class e{get content(){return this.css}constructor(a,n,u){this.processor=a,this.messages=[],this.root=n,this.opts=u,this.css="",this.map=void 0}toString(){return this.css}warn(a,n={}){n.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(n.plugin=this.lastPlugin.postcssPlugin);let u=new t(a,n);return this.messages.push(u),u}warnings(){return this.messages.filter(a=>a.type==="warning")}}return dr=e,e.default=e,dr}var gr,Tn;function ei(){if(Tn)return gr;Tn=1;let t=He(),e=Tr(),i=Yn(),a=jr(),n=Ir(),u=pt(),l=Nt(),{isClean:h,my:b}=Nr();const f={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},r={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},c={Once:!0,postcssPlugin:!0,prepare:!0},o=0;function s(w){return typeof w=="object"&&typeof w.then=="function"}function p(w){let y=!1,v=f[w.type];return w.type==="decl"?y=w.prop.toLowerCase():w.type==="atrule"&&(y=w.name.toLowerCase()),y&&w.append?[v,v+"-"+y,o,v+"Exit",v+"Exit-"+y]:y?[v,v+"-"+y,v+"Exit",v+"Exit-"+y]:w.append?[v,o,v+"Exit"]:[v,v+"Exit"]}function d(w){let y;return w.type==="document"?y=["Document",o,"DocumentExit"]:w.type==="root"?y=["Root",o,"RootExit"]:y=p(w),{eventIndex:0,events:y,iterator:0,node:w,visitorIndex:0,visitors:[]}}function m(w){return w[h]=!1,w.nodes&&w.nodes.forEach(y=>m(y)),w}let x={};class E{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(y,v,O){this.stringified=!1,this.processed=!1;let S;if(typeof v=="object"&&v!==null&&(v.type==="root"||v.type==="document"))S=m(v);else if(v instanceof E||v instanceof n)S=m(v.root),v.map&&(typeof O.map>"u"&&(O.map={}),O.map.inline||(O.map.inline=!1),O.map.prev=v.map);else{let N=a;O.syntax&&(N=O.syntax.parse),O.parser&&(N=O.parser),N.parse&&(N=N.parse);try{S=N(v,O)}catch(L){this.processed=!0,this.error=L}S&&!S[b]&&t.rebuild(S)}this.result=new n(y,S,O),this.helpers={...x,postcss:x,result:this.result},this.plugins=this.processor.plugins.map(N=>typeof N=="object"&&N.prepare?{...N,...N.prepare(this.result)}:N)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(y){return this.async().catch(y)}finally(y){return this.async().then(y,y)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(y,v){let O=this.result.lastPlugin;try{v&&v.addToError(y),this.error=y,y.name==="CssSyntaxError"&&!y.plugin?(y.plugin=O.postcssPlugin,y.setMessage()):O.postcssVersion}catch(S){console&&console.error&&console.error(S)}return y}prepareVisitors(){this.listeners={};let y=(v,O,S)=>{this.listeners[O]||(this.listeners[O]=[]),this.listeners[O].push([v,S])};for(let v of this.plugins)if(typeof v=="object")for(let O in v){if(!r[O]&&/^[A-Z]/.test(O))throw new Error(`Unknown event ${O} in ${v.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!c[O])if(typeof v[O]=="object")for(let S in v[O])S==="*"?y(v,O,v[O][S]):y(v,O+"-"+S.toLowerCase(),v[O][S]);else typeof v[O]=="function"&&y(v,O,v[O])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let y=0;y<this.plugins.length;y++){let v=this.plugins[y],O=this.runOnRoot(v);if(s(O))try{await O}catch(S){throw this.handleError(S)}}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[h];){y[h]=!0;let v=[d(y)];for(;v.length>0;){let O=this.visitTick(v);if(s(O))try{await O}catch(S){let N=v[v.length-1].node;throw this.handleError(S,N)}}}if(this.listeners.OnceExit)for(let[v,O]of this.listeners.OnceExit){this.result.lastPlugin=v;try{if(y.type==="document"){let S=y.nodes.map(N=>O(N,this.helpers));await Promise.all(S)}else await O(y,this.helpers)}catch(S){throw this.handleError(S)}}}return this.processed=!0,this.stringify()}runOnRoot(y){this.result.lastPlugin=y;try{if(typeof y=="object"&&y.Once){if(this.result.root.type==="document"){let v=this.result.root.nodes.map(O=>y.Once(O,this.helpers));return s(v[0])?Promise.all(v):v}return y.Once(this.result.root,this.helpers)}else if(typeof y=="function")return y(this.result.root,this.result)}catch(v){throw this.handleError(v)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let y=this.result.opts,v=l;y.syntax&&(v=y.syntax.stringify),y.stringifier&&(v=y.stringifier),v.stringify&&(v=v.stringify);let S=new i(v,this.result.root,this.result.opts).generate();return this.result.css=S[0],this.result.map=S[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let y of this.plugins){let v=this.runOnRoot(y);if(s(v))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[h];)y[h]=!0,this.walkSync(y);if(this.listeners.OnceExit)if(y.type==="document")for(let v of y.nodes)this.visitSync(this.listeners.OnceExit,v);else this.visitSync(this.listeners.OnceExit,y)}return this.result}then(y,v){return this.async().then(y,v)}toString(){return this.css}visitSync(y,v){for(let[O,S]of y){this.result.lastPlugin=O;let N;try{N=S(v,this.helpers)}catch(L){throw this.handleError(L,v.proxyOf)}if(v.type!=="root"&&v.type!=="document"&&!v.parent)return!0;if(s(N))throw this.getAsyncError()}}visitTick(y){let v=y[y.length-1],{node:O,visitors:S}=v;if(O.type!=="root"&&O.type!=="document"&&!O.parent){y.pop();return}if(S.length>0&&v.visitorIndex<S.length){let[L,_]=S[v.visitorIndex];v.visitorIndex+=1,v.visitorIndex===S.length&&(v.visitors=[],v.visitorIndex=0),this.result.lastPlugin=L;try{return _(O.toProxy(),this.helpers)}catch(F){throw this.handleError(F,O)}}if(v.iterator!==0){let L=v.iterator,_;for(;_=O.nodes[O.indexes[L]];)if(O.indexes[L]+=1,!_[h]){_[h]=!0,y.push(d(_));return}v.iterator=0,delete O.indexes[L]}let N=v.events;for(;v.eventIndex<N.length;){let L=N[v.eventIndex];if(v.eventIndex+=1,L===o){O.nodes&&O.nodes.length&&(O[h]=!0,v.iterator=O.getIterator());return}else if(this.listeners[L]){v.visitors=this.listeners[L];return}}y.pop()}walkSync(y){y[h]=!0;let v=p(y);for(let O of v)if(O===o)y.nodes&&y.each(S=>{S[h]||this.walkSync(S)});else{let S=this.listeners[O];if(S&&this.visitSync(S,y.toProxy()))return}}warnings(){return this.sync().warnings()}}return E.registerPostcss=w=>{x=w},gr=E,E.default=E,u.registerLazyResult(E),e.registerLazyResult(E),gr}var mr,Ln;function po(){if(Ln)return mr;Ln=1;let t=Yn(),e=jr();const i=Ir();let a=Nt();class n{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let l,h=e;try{l=h(this._css,this._opts)}catch(b){this.error=b}if(this.error)throw this.error;return this._root=l,l}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(l,h,b){h=h.toString(),this.stringified=!1,this._processor=l,this._css=h,this._opts=b,this._map=void 0;let f,r=a;this.result=new i(this._processor,f,this._opts),this.result.css=h;let c=this;Object.defineProperty(this.result,"root",{get(){return c.root}});let o=new t(r,f,this._opts,h);if(o.isMap()){let[s,p]=o.generate();s&&(this.result.css=s),p&&(this.result.map=p)}else o.clearAnnotation(),this.result.css=o.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(l){return this.async().catch(l)}finally(l){return this.async().then(l,l)}sync(){if(this.error)throw this.error;return this.result}then(l,h){return this.async().then(l,h)}toString(){return this._css}warnings(){return[]}}return mr=n,n.default=n,mr}var br,jn;function go(){if(jn)return br;jn=1;let t=Tr(),e=ei(),i=po(),a=pt();class n{constructor(l=[]){this.version="8.5.6",this.plugins=this.normalize(l)}normalize(l){let h=[];for(let b of l)if(b.postcss===!0?b=b():b.postcss&&(b=b.postcss),typeof b=="object"&&Array.isArray(b.plugins))h=h.concat(b.plugins);else if(typeof b=="object"&&b.postcssPlugin)h.push(b);else if(typeof b=="function")h.push(b);else if(!(typeof b=="object"&&(b.parse||b.stringify)))throw new Error(b+" is not a PostCSS plugin");return h}process(l,h={}){return!this.plugins.length&&!h.parser&&!h.stringifier&&!h.syntax?new i(this,l,h):new e(this,l,h)}use(l){return this.plugins=this.plugins.concat(this.normalize([l])),this}}return br=n,n.default=n,a.registerProcessor(n),t.registerProcessor(n),br}var vr,In;function mo(){if(In)return vr;In=1;var t={};let e=Mr(),i=Tt(),a=He(),n=Pr(),u=Lt(),l=Tr(),h=uo(),b=jt(),f=ei(),r=Kn(),c=Mt(),o=jr(),s=go(),p=Ir(),d=pt(),m=Lr(),x=Nt(),E=Qn();function w(...y){return y.length===1&&Array.isArray(y[0])&&(y=y[0]),new s(y)}return w.plugin=function(v,O){let S=!1;function N(..._){console&&console.warn&&!S&&(S=!0,console.warn(v+`: postcss.plugin was deprecated. Migration guide:
|
|
94
|
+
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),t.LANG&&t.LANG.startsWith("cn")&&console.warn(v+`: 里面 postcss.plugin 被弃用. 迁移指南:
|
|
95
|
+
https://www.w3ctech.com/topic/2226`));let F=O(..._);return F.postcssPlugin=v,F.postcssVersion=new s().version,F}let L;return Object.defineProperty(N,"postcss",{get(){return L||(L=N()),L}}),N.process=function(_,F,$){return w([N($)]).process(_,F)},N},w.stringify=x,w.parse=o,w.fromJSON=h,w.list=r,w.comment=y=>new i(y),w.atRule=y=>new e(y),w.decl=y=>new u(y),w.rule=y=>new m(y),w.root=y=>new d(y),w.document=y=>new l(y),w.CssSyntaxError=n,w.Declaration=u,w.Container=a,w.Processor=s,w.Document=l,w.Comment=i,w.Warning=E,w.AtRule=e,w.Result=p,w.Input=b,w.Rule=m,w.Root=d,w.Node=c,f.registerPostcss(w),vr=w,w.default=w,vr}var bo=mo();const J=Zn(bo);J.stringify;J.fromJSON;J.plugin;J.parse;J.list;J.document;J.comment;J.atRule;J.rule;J.decl;J.root;J.CssSyntaxError;J.Declaration;J.Container;J.Processor;J.Document;J.Comment;J.Warning;J.AtRule;J.Result;J.Input;J.Rule;J.Root;J.Node;var yr,Dn;function vo(){if(Dn)return yr;Dn=1;const t=(a={})=>{const n=a.prefix,u=/\s+$/.test(n)?n:`${n} `,l=a.ignoreFiles?[].concat(a.ignoreFiles):[],h=a.includeFiles?[].concat(a.includeFiles):[];return{postcssPlugin:"postcss-prefix-selector",prepare(b){const f=b.root,r=f.source.input.file;if(!(l.length&&r&&e(r,l))&&!(h.length&&r&&!e(r,h)))return{Rule(c,{result:o}){const s=["keyframes","-webkit-keyframes","-moz-keyframes","-o-keyframes","-ms-keyframes"];c.parent&&s.includes(c.parent.name)||(c.selectors=c.selectors.map(p=>a.exclude&&i(p,a.exclude)?p:a.transform?a.transform(n,p,u+p,f.source.input.file,c):[":root","body","html"].some(d=>p.startsWith(d))?a.skipGlobalSelectors?p:p.replace(/(html\s+body|:root\s+body|html|:root|body)/gm,n):u+p))}}}}};function e(a,n){return n.some(u=>u instanceof RegExp?u.test(a):a.includes(u))}function i(a,n){return n.some(u=>u instanceof RegExp?u.test(a):a===u)}return t.postcss=!0,yr=t,yr}var yo=vo();const wo=Zn(yo),xo="code{white-space:pre}.example{display:flex;flex-wrap:wrap;flex-direction:row;align-items:center;gap:16px}.example>*{flex:1 1 500px}.example .tab-control{overflow:hidden}.example div[role=tab]{cursor:pointer;padding:8px 16px;display:inline-block;font-size:16px;border-bottom:2px solid transparent;background-clip:padding-box;-webkit-user-select:none;user-select:none}.example div[role=tab]:hover{background-color:#1467ba14}.example div[role=tab][selected]{background-color:#1467ba21;border-bottom:2px solid #1467ba}.tab-content{margin:16px 0}.tab-content>pre{padding-top:0}.tab-content.code{max-height:500px;overflow:auto}.tab-content.code pre{margin:0}",Eo="pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{color:#24292e;background:#fff}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#d73a49}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#6f42c1}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-variable,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id{color:#005cc5}.hljs-regexp,.hljs-string,.hljs-meta .hljs-string{color:#032f62}.hljs-built_in,.hljs-symbol{color:#e36209}.hljs-comment,.hljs-code,.hljs-formula{color:#6a737d}.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo{color:#22863a}.hljs-subst{color:#24292e}.hljs-section{color:#005cc5;font-weight:700}.hljs-bullet{color:#735c0f}.hljs-emphasis{color:#24292e;font-style:italic}.hljs-strong{color:#24292e;font-weight:700}.hljs-addition{color:#22863a;background-color:#f0fff4}.hljs-deletion{color:#b31d28;background-color:#ffeef0}";function Oo(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var wr,Bn;function ko(){if(Bn)return wr;Bn=1;function t(g){return g instanceof Map?g.clear=g.delete=g.set=function(){throw new Error("map is read-only")}:g instanceof Set&&(g.add=g.clear=g.delete=function(){throw new Error("set is read-only")}),Object.freeze(g),Object.getOwnPropertyNames(g).forEach(k=>{const R=g[k],U=typeof R;(U==="object"||U==="function")&&!Object.isFrozen(R)&&t(R)}),g}class e{constructor(k){k.data===void 0&&(k.data={}),this.data=k.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function i(g){return g.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function a(g,...k){const R=Object.create(null);for(const U in g)R[U]=g[U];return k.forEach(function(U){for(const Q in U)R[Q]=U[Q]}),R}const n="</span>",u=g=>!!g.scope,l=(g,{prefix:k})=>{if(g.startsWith("language:"))return g.replace("language:","language-");if(g.includes(".")){const R=g.split(".");return[`${k}${R.shift()}`,...R.map((U,Q)=>`${U}${"_".repeat(Q+1)}`)].join(" ")}return`${k}${g}`};class h{constructor(k,R){this.buffer="",this.classPrefix=R.classPrefix,k.walk(this)}addText(k){this.buffer+=i(k)}openNode(k){if(!u(k))return;const R=l(k.scope,{prefix:this.classPrefix});this.span(R)}closeNode(k){u(k)&&(this.buffer+=n)}value(){return this.buffer}span(k){this.buffer+=`<span class="${k}">`}}const b=(g={})=>{const k={children:[]};return Object.assign(k,g),k};class f{constructor(){this.rootNode=b(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(k){this.top.children.push(k)}openNode(k){const R=b({scope:k});this.add(R),this.stack.push(R)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(k){return this.constructor._walk(k,this.rootNode)}static _walk(k,R){return typeof R=="string"?k.addText(R):R.children&&(k.openNode(R),R.children.forEach(U=>this._walk(k,U)),k.closeNode(R)),k}static _collapse(k){typeof k!="string"&&k.children&&(k.children.every(R=>typeof R=="string")?k.children=[k.children.join("")]:k.children.forEach(R=>{f._collapse(R)}))}}class r extends f{constructor(k){super(),this.options=k}addText(k){k!==""&&this.add(k)}startScope(k){this.openNode(k)}endScope(){this.closeNode()}__addSublanguage(k,R){const U=k.root;R&&(U.scope=`language:${R}`),this.add(U)}toHTML(){return new h(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function c(g){return g?typeof g=="string"?g:g.source:null}function o(g){return d("(?=",g,")")}function s(g){return d("(?:",g,")*")}function p(g){return d("(?:",g,")?")}function d(...g){return g.map(k=>c(k)).join("")}function m(g){const k=g[g.length-1];return typeof k=="object"&&k.constructor===Object?(g.splice(g.length-1,1),k):{}}function x(...g){return"("+(m(g).capture?"":"?:")+g.map(k=>c(k)).join("|")+")"}function E(g){return new RegExp(g.toString()+"|").exec("").length-1}function w(g,k){const R=g&&g.exec(k);return R&&R.index===0}const y=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function v(g,{joinWith:k}){let R=0;return g.map(U=>{R+=1;const Q=R;let ee=c(U),T="";for(;ee.length>0;){const M=y.exec(ee);if(!M){T+=ee;break}T+=ee.substring(0,M.index),ee=ee.substring(M.index+M[0].length),M[0][0]==="\\"&&M[1]?T+="\\"+String(Number(M[1])+Q):(T+=M[0],M[0]==="("&&R++)}return T}).map(U=>`(${U})`).join(k)}const O=/\b\B/,S="[a-zA-Z]\\w*",N="[a-zA-Z_]\\w*",L="\\b\\d+(\\.\\d+)?",_="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",F="\\b(0b[01]+)",$="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",K=(g={})=>{const k=/^#![ ]*\//;return g.binary&&(g.begin=d(k,/.*\b/,g.binary,/\b.*/)),a({scope:"meta",begin:k,end:/$/,relevance:0,"on:begin":(R,U)=>{R.index!==0&&U.ignoreMatch()}},g)},te={begin:"\\\\[\\s\\S]",relevance:0},P={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[te]},re={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[te]},q={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},X=function(g,k,R={}){const U=a({scope:"comment",begin:g,end:k,contains:[]},R);U.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const Q=x("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return U.contains.push({begin:d(/[ ]+/,"(",Q,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),U},Y=X("//","$"),ie=X("/\\*","\\*/"),ge=X("#","$"),he={scope:"number",begin:L,relevance:0},D={scope:"number",begin:_,relevance:0},me={scope:"number",begin:F,relevance:0},ce={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[te,{begin:/\[/,end:/\]/,relevance:0,contains:[te]}]},Ne={scope:"title",begin:S,relevance:0},Oe={scope:"title",begin:N,relevance:0},xe={begin:"\\.\\s*"+N,relevance:0};var ke=Object.freeze({__proto__:null,APOS_STRING_MODE:P,BACKSLASH_ESCAPE:te,BINARY_NUMBER_MODE:me,BINARY_NUMBER_RE:F,COMMENT:X,C_BLOCK_COMMENT_MODE:ie,C_LINE_COMMENT_MODE:Y,C_NUMBER_MODE:D,C_NUMBER_RE:_,END_SAME_AS_BEGIN:function(g){return Object.assign(g,{"on:begin":(k,R)=>{R.data._beginMatch=k[1]},"on:end":(k,R)=>{R.data._beginMatch!==k[1]&&R.ignoreMatch()}})},HASH_COMMENT_MODE:ge,IDENT_RE:S,MATCH_NOTHING_RE:O,METHOD_GUARD:xe,NUMBER_MODE:he,NUMBER_RE:L,PHRASAL_WORDS_MODE:q,QUOTE_STRING_MODE:re,REGEXP_MODE:ce,RE_STARTERS_RE:$,SHEBANG:K,TITLE_MODE:Ne,UNDERSCORE_IDENT_RE:N,UNDERSCORE_TITLE_MODE:Oe});function Qe(g,k){g.input[g.index-1]==="."&&k.ignoreMatch()}function be(g,k){g.className!==void 0&&(g.scope=g.className,delete g.className)}function ze(g,k){k&&g.beginKeywords&&(g.begin="\\b("+g.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",g.__beforeBegin=Qe,g.keywords=g.keywords||g.beginKeywords,delete g.beginKeywords,g.relevance===void 0&&(g.relevance=0))}function $e(g,k){Array.isArray(g.illegal)&&(g.illegal=x(...g.illegal))}function Dt(g,k){if(g.match){if(g.begin||g.end)throw new Error("begin & end are not supported with match");g.begin=g.match,delete g.match}}function Bt(g,k){g.relevance===void 0&&(g.relevance=1)}const dt=(g,k)=>{if(!g.beforeMatch)return;if(g.starts)throw new Error("beforeMatch cannot be used with starts");const R=Object.assign({},g);Object.keys(g).forEach(U=>{delete g[U]}),g.keywords=R.keywords,g.begin=d(R.beforeMatch,o(R.begin)),g.starts={relevance:0,contains:[Object.assign(R,{endsParent:!0})]},g.relevance=0,delete R.beforeMatch},gt=["of","and","for","in","not","or","if","then","parent","list","value"],zt="keyword";function mt(g,k,R=zt){const U=Object.create(null);return typeof g=="string"?Q(R,g.split(" ")):Array.isArray(g)?Q(R,g):Object.keys(g).forEach(function(ee){Object.assign(U,mt(g[ee],k,ee))}),U;function Q(ee,T){k&&(T=T.map(M=>M.toLowerCase())),T.forEach(function(M){const B=M.split("|");U[B[0]]=[ee,Me(B[0],B[1])]})}}function Me(g,k){return k?Number(k):Ge(g)?0:1}function Ge(g){return gt.includes(g.toLowerCase())}const et={},Se=g=>{console.error(g)},Ve=(g,...k)=>{console.log(`WARN: ${g}`,...k)},Te=(g,k)=>{et[`${g}/${k}`]||(console.log(`Deprecated as of ${g}. ${k}`),et[`${g}/${k}`]=!0)},Ue=new Error;function tt(g,k,{key:R}){let U=0;const Q=g[R],ee={},T={};for(let M=1;M<=k.length;M++)T[M+U]=Q[M],ee[M+U]=!0,U+=E(k[M-1]);g[R]=T,g[R]._emit=ee,g[R]._multi=!0}function bt(g){if(Array.isArray(g.begin)){if(g.skip||g.excludeBegin||g.returnBegin)throw Se("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Ue;if(typeof g.beginScope!="object"||g.beginScope===null)throw Se("beginScope must be object"),Ue;tt(g,g.begin,{key:"beginScope"}),g.begin=v(g.begin,{joinWith:""})}}function ci(g){if(Array.isArray(g.end)){if(g.skip||g.excludeEnd||g.returnEnd)throw Se("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Ue;if(typeof g.endScope!="object"||g.endScope===null)throw Se("endScope must be object"),Ue;tt(g,g.end,{key:"endScope"}),g.end=v(g.end,{joinWith:""})}}function ui(g){g.scope&&typeof g.scope=="object"&&g.scope!==null&&(g.beginScope=g.scope,delete g.scope)}function fi(g){ui(g),typeof g.beginScope=="string"&&(g.beginScope={_wrap:g.beginScope}),typeof g.endScope=="string"&&(g.endScope={_wrap:g.endScope}),bt(g),ci(g)}function hi(g){function k(T,M){return new RegExp(c(T),"m"+(g.case_insensitive?"i":"")+(g.unicodeRegex?"u":"")+(M?"g":""))}class R{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(M,B){B.position=this.position++,this.matchIndexes[this.matchAt]=B,this.regexes.push([B,M]),this.matchAt+=E(M)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const M=this.regexes.map(B=>B[1]);this.matcherRe=k(v(M,{joinWith:"|"}),!0),this.lastIndex=0}exec(M){this.matcherRe.lastIndex=this.lastIndex;const B=this.matcherRe.exec(M);if(!B)return null;const oe=B.findIndex((rt,Ut)=>Ut>0&&rt!==void 0),ne=this.matchIndexes[oe];return B.splice(0,oe),Object.assign(B,ne)}}class U{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(M){if(this.multiRegexes[M])return this.multiRegexes[M];const B=new R;return this.rules.slice(M).forEach(([oe,ne])=>B.addRule(oe,ne)),B.compile(),this.multiRegexes[M]=B,B}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(M,B){this.rules.push([M,B]),B.type==="begin"&&this.count++}exec(M){const B=this.getMatcher(this.regexIndex);B.lastIndex=this.lastIndex;let oe=B.exec(M);if(this.resumingScanAtSamePosition()&&!(oe&&oe.index===this.lastIndex)){const ne=this.getMatcher(0);ne.lastIndex=this.lastIndex+1,oe=ne.exec(M)}return oe&&(this.regexIndex+=oe.position+1,this.regexIndex===this.count&&this.considerAll()),oe}}function Q(T){const M=new U;return T.contains.forEach(B=>M.addRule(B.begin,{rule:B,type:"begin"})),T.terminatorEnd&&M.addRule(T.terminatorEnd,{type:"end"}),T.illegal&&M.addRule(T.illegal,{type:"illegal"}),M}function ee(T,M){const B=T;if(T.isCompiled)return B;[be,Dt,fi,dt].forEach(ne=>ne(T,M)),g.compilerExtensions.forEach(ne=>ne(T,M)),T.__beforeBegin=null,[ze,$e,Bt].forEach(ne=>ne(T,M)),T.isCompiled=!0;let oe=null;return typeof T.keywords=="object"&&T.keywords.$pattern&&(T.keywords=Object.assign({},T.keywords),oe=T.keywords.$pattern,delete T.keywords.$pattern),oe=oe||/\w+/,T.keywords&&(T.keywords=mt(T.keywords,g.case_insensitive)),B.keywordPatternRe=k(oe,!0),M&&(T.begin||(T.begin=/\B|\b/),B.beginRe=k(B.begin),!T.end&&!T.endsWithParent&&(T.end=/\B|\b/),T.end&&(B.endRe=k(B.end)),B.terminatorEnd=c(B.end)||"",T.endsWithParent&&M.terminatorEnd&&(B.terminatorEnd+=(T.end?"|":"")+M.terminatorEnd)),T.illegal&&(B.illegalRe=k(T.illegal)),T.contains||(T.contains=[]),T.contains=[].concat(...T.contains.map(function(ne){return pi(ne==="self"?T:ne)})),T.contains.forEach(function(ne){ee(ne,B)}),T.starts&&ee(T.starts,M),B.matcher=Q(B),B}if(g.compilerExtensions||(g.compilerExtensions=[]),g.contains&&g.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return g.classNameAliases=a(g.classNameAliases||{}),ee(g)}function Br(g){return g?g.endsWithParent||Br(g.starts):!1}function pi(g){return g.variants&&!g.cachedVariants&&(g.cachedVariants=g.variants.map(function(k){return a(g,{variants:null},k)})),g.cachedVariants?g.cachedVariants:Br(g)?a(g,{starts:g.starts?a(g.starts):null}):Object.isFrozen(g)?a(g):g}var di="11.11.1";class gi extends Error{constructor(k,R){super(k),this.name="HTMLInjectionError",this.html=R}}const $t=i,zr=a,$r=Symbol("nomatch"),mi=7,Ur=function(g){const k=Object.create(null),R=Object.create(null),U=[];let Q=!0;const ee="Could not find the language '{}', did you forget to load/include a language module?",T={disableAutodetect:!0,name:"Plain text",contains:[]};let M={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:r};function B(A){return M.noHighlightRe.test(A)}function oe(A){let I=A.className+" ";I+=A.parentNode?A.parentNode.className:"";const H=M.languageDetectRe.exec(I);if(H){const V=Ie(H[1]);return V||(Ve(ee.replace("{}",H[1])),Ve("Falling back to no-highlight mode for this block.",A)),V?H[1]:"no-highlight"}return I.split(/\s+/).find(V=>B(V)||Ie(V))}function ne(A,I,H){let V="",se="";typeof I=="object"?(V=A,H=I.ignoreIllegals,se=I.language):(Te("10.7.0","highlight(lang, code, ...args) has been deprecated."),Te("10.7.0",`Please use highlight(code, options) instead.
|
|
96
|
+
https://github.com/highlightjs/highlight.js/issues/2277`),se=A,V=I),H===void 0&&(H=!0);const Ae={code:V,language:se};yt("before:highlight",Ae);const De=Ae.result?Ae.result:rt(Ae.language,Ae.code,H);return De.code=Ae.code,yt("after:highlight",De),De}function rt(A,I,H,V){const se=Object.create(null);function Ae(C,j){return C.keywords[j]}function De(){if(!z.keywords){ae.addText(Z);return}let C=0;z.keywordPatternRe.lastIndex=0;let j=z.keywordPatternRe.exec(Z),W="";for(;j;){W+=Z.substring(C,j.index);const G=Ce.case_insensitive?j[0].toLowerCase():j[0],le=Ae(z,G);if(le){const[Le,Ti]=le;if(ae.addText(W),W="",se[G]=(se[G]||0)+1,se[G]<=mi&&(Et+=Ti),Le.startsWith("_"))W+=j[0];else{const Li=Ce.classNameAliases[Le]||Le;_e(j[0],Li)}}else W+=j[0];C=z.keywordPatternRe.lastIndex,j=z.keywordPatternRe.exec(Z)}W+=Z.substring(C),ae.addText(W)}function wt(){if(Z==="")return;let C=null;if(typeof z.subLanguage=="string"){if(!k[z.subLanguage]){ae.addText(Z);return}C=rt(z.subLanguage,Z,!0,Xr[z.subLanguage]),Xr[z.subLanguage]=C._top}else C=Ft(Z,z.subLanguage.length?z.subLanguage:null);z.relevance>0&&(Et+=C.relevance),ae.__addSublanguage(C._emitter,C.language)}function pe(){z.subLanguage!=null?wt():De(),Z=""}function _e(C,j){C!==""&&(ae.startScope(j),ae.addText(C),ae.endScope())}function Hr(C,j){let W=1;const G=j.length-1;for(;W<=G;){if(!C._emit[W]){W++;continue}const le=Ce.classNameAliases[C[W]]||C[W],Le=j[W];le?_e(Le,le):(Z=Le,De(),Z=""),W++}}function Gr(C,j){return C.scope&&typeof C.scope=="string"&&ae.openNode(Ce.classNameAliases[C.scope]||C.scope),C.beginScope&&(C.beginScope._wrap?(_e(Z,Ce.classNameAliases[C.beginScope._wrap]||C.beginScope._wrap),Z=""):C.beginScope._multi&&(Hr(C.beginScope,j),Z="")),z=Object.create(C,{parent:{value:z}}),z}function Vr(C,j,W){let G=w(C.endRe,W);if(G){if(C["on:end"]){const le=new e(C);C["on:end"](j,le),le.isMatchIgnored&&(G=!1)}if(G){for(;C.endsParent&&C.parent;)C=C.parent;return C}}if(C.endsWithParent)return Vr(C.parent,j,W)}function Ci(C){return z.matcher.regexIndex===0?(Z+=C[0],1):(Gt=!0,0)}function Ri(C){const j=C[0],W=C.rule,G=new e(W),le=[W.__beforeBegin,W["on:begin"]];for(const Le of le)if(Le&&(Le(C,G),G.isMatchIgnored))return Ci(j);return W.skip?Z+=j:(W.excludeBegin&&(Z+=j),pe(),!W.returnBegin&&!W.excludeBegin&&(Z=j)),Gr(W,C),W.returnBegin?0:j.length}function Pi(C){const j=C[0],W=I.substring(C.index),G=Vr(z,C,W);if(!G)return $r;const le=z;z.endScope&&z.endScope._wrap?(pe(),_e(j,z.endScope._wrap)):z.endScope&&z.endScope._multi?(pe(),Hr(z.endScope,C)):le.skip?Z+=j:(le.returnEnd||le.excludeEnd||(Z+=j),pe(),le.excludeEnd&&(Z=j));do z.scope&&ae.closeNode(),!z.skip&&!z.subLanguage&&(Et+=z.relevance),z=z.parent;while(z!==G.parent);return G.starts&&Gr(G.starts,C),le.returnEnd?0:j.length}function Ni(){const C=[];for(let j=z;j!==Ce;j=j.parent)j.scope&&C.unshift(j.scope);C.forEach(j=>ae.openNode(j))}let xt={};function Zr(C,j){const W=j&&j[0];if(Z+=C,W==null)return pe(),0;if(xt.type==="begin"&&j.type==="end"&&xt.index===j.index&&W===""){if(Z+=I.slice(j.index,j.index+1),!Q){const G=new Error(`0 width match regex (${A})`);throw G.languageName=A,G.badRule=xt.rule,G}return 1}if(xt=j,j.type==="begin")return Ri(j);if(j.type==="illegal"&&!H){const G=new Error('Illegal lexeme "'+W+'" for mode "'+(z.scope||"<unnamed>")+'"');throw G.mode=z,G}else if(j.type==="end"){const G=Pi(j);if(G!==$r)return G}if(j.type==="illegal"&&W==="")return Z+=`
|
|
97
|
+
`,1;if(Ht>1e5&&Ht>j.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Z+=W,W.length}const Ce=Ie(A);if(!Ce)throw Se(ee.replace("{}",A)),new Error('Unknown language: "'+A+'"');const Mi=hi(Ce);let Wt="",z=V||Mi;const Xr={},ae=new M.__emitter(M);Ni();let Z="",Et=0,Fe=0,Ht=0,Gt=!1;try{if(Ce.__emitTokens)Ce.__emitTokens(I,ae);else{for(z.matcher.considerAll();;){Ht++,Gt?Gt=!1:z.matcher.considerAll(),z.matcher.lastIndex=Fe;const C=z.matcher.exec(I);if(!C)break;const j=I.substring(Fe,C.index),W=Zr(j,C);Fe=C.index+W}Zr(I.substring(Fe))}return ae.finalize(),Wt=ae.toHTML(),{language:A,value:Wt,relevance:Et,illegal:!1,_emitter:ae,_top:z}}catch(C){if(C.message&&C.message.includes("Illegal"))return{language:A,value:$t(I),illegal:!0,relevance:0,_illegalBy:{message:C.message,index:Fe,context:I.slice(Fe-100,Fe+100),mode:C.mode,resultSoFar:Wt},_emitter:ae};if(Q)return{language:A,value:$t(I),illegal:!1,relevance:0,errorRaised:C,_emitter:ae,_top:z};throw C}}function Ut(A){const I={value:$t(A),illegal:!1,relevance:0,_top:T,_emitter:new M.__emitter(M)};return I._emitter.addText(A),I}function Ft(A,I){I=I||M.languages||Object.keys(k);const H=Ut(A),V=I.filter(Ie).filter(Wr).map(pe=>rt(pe,A,!1));V.unshift(H);const se=V.sort((pe,_e)=>{if(pe.relevance!==_e.relevance)return _e.relevance-pe.relevance;if(pe.language&&_e.language){if(Ie(pe.language).supersetOf===_e.language)return 1;if(Ie(_e.language).supersetOf===pe.language)return-1}return 0}),[Ae,De]=se,wt=Ae;return wt.secondBest=De,wt}function bi(A,I,H){const V=I&&R[I]||H;A.classList.add("hljs"),A.classList.add(`language-${V}`)}function qt(A){let I=null;const H=oe(A);if(B(H))return;if(yt("before:highlightElement",{el:A,language:H}),A.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",A);return}if(A.children.length>0&&(M.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(A)),M.throwUnescapedHTML))throw new gi("One of your code blocks includes unescaped HTML.",A.innerHTML);I=A;const V=I.textContent,se=H?ne(V,{language:H,ignoreIllegals:!0}):Ft(V);A.innerHTML=se.value,A.dataset.highlighted="yes",bi(A,H,se.language),A.result={language:se.language,re:se.relevance,relevance:se.relevance},se.secondBest&&(A.secondBest={language:se.secondBest.language,relevance:se.secondBest.relevance}),yt("after:highlightElement",{el:A,result:se,text:V})}function vi(A){M=zr(M,A)}const yi=()=>{vt(),Te("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function wi(){vt(),Te("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Fr=!1;function vt(){function A(){vt()}if(document.readyState==="loading"){Fr||window.addEventListener("DOMContentLoaded",A,!1),Fr=!0;return}document.querySelectorAll(M.cssSelector).forEach(qt)}function xi(A,I){let H=null;try{H=I(g)}catch(V){if(Se("Language definition for '{}' could not be registered.".replace("{}",A)),Q)Se(V);else throw V;H=T}H.name||(H.name=A),k[A]=H,H.rawDefinition=I.bind(null,g),H.aliases&&qr(H.aliases,{languageName:A})}function Ei(A){delete k[A];for(const I of Object.keys(R))R[I]===A&&delete R[I]}function Oi(){return Object.keys(k)}function Ie(A){return A=(A||"").toLowerCase(),k[A]||k[R[A]]}function qr(A,{languageName:I}){typeof A=="string"&&(A=[A]),A.forEach(H=>{R[H.toLowerCase()]=I})}function Wr(A){const I=Ie(A);return I&&!I.disableAutodetect}function ki(A){A["before:highlightBlock"]&&!A["before:highlightElement"]&&(A["before:highlightElement"]=I=>{A["before:highlightBlock"](Object.assign({block:I.el},I))}),A["after:highlightBlock"]&&!A["after:highlightElement"]&&(A["after:highlightElement"]=I=>{A["after:highlightBlock"](Object.assign({block:I.el},I))})}function Si(A){ki(A),U.push(A)}function Ai(A){const I=U.indexOf(A);I!==-1&&U.splice(I,1)}function yt(A,I){const H=A;U.forEach(function(V){V[H]&&V[H](I)})}function _i(A){return Te("10.7.0","highlightBlock will be removed entirely in v12.0"),Te("10.7.0","Please use highlightElement now."),qt(A)}Object.assign(g,{highlight:ne,highlightAuto:Ft,highlightAll:vt,highlightElement:qt,highlightBlock:_i,configure:vi,initHighlighting:yi,initHighlightingOnLoad:wi,registerLanguage:xi,unregisterLanguage:Ei,listLanguages:Oi,getLanguage:Ie,registerAliases:qr,autoDetection:Wr,inherit:zr,addPlugin:Si,removePlugin:Ai}),g.debugMode=function(){Q=!1},g.safeMode=function(){Q=!0},g.versionString=di,g.regex={concat:d,lookahead:o,either:x,optional:p,anyNumberOfTimes:s};for(const A in ke)typeof ke[A]=="object"&&t(ke[A]);return Object.assign(g,ke),g},Ze=Ur({});return Ze.newInstance=()=>Ur({}),wr=Ze,Ze.HighlightJS=Ze,Ze.default=Ze,wr}var So=ko();const It=Oo(So),Rt="[A-Za-z$_][0-9A-Za-z$_]*",ti=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],ri=["true","false","null","undefined","NaN","Infinity"],ni=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],ii=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],si=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],oi=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],ai=[].concat(si,ni,ii);function Ao(t){const e=t.regex,i=(q,{after:X})=>{const Y="</"+q[0].slice(1);return q.input.indexOf(Y,X)!==-1},a=Rt,n={begin:"<>",end:"</>"},u=/<[A-Za-z0-9\\._:-]+\s*\/>/,l={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(q,X)=>{const Y=q[0].length+q.index,ie=q.input[Y];if(ie==="<"||ie===","){X.ignoreMatch();return}ie===">"&&(i(q,{after:Y})||X.ignoreMatch());let ge;const he=q.input.substring(Y);if(ge=he.match(/^\s*=/)){X.ignoreMatch();return}if((ge=he.match(/^\s+extends\s+/))&&ge.index===0){X.ignoreMatch();return}}},h={$pattern:Rt,keyword:ti,literal:ri,built_in:ai,"variable.language":oi},b="[0-9](_?[0-9])*",f=`\\.(${b})`,r="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",c={className:"number",variants:[{begin:`(\\b(${r})((${f})|\\.)?|(${f}))[eE][+-]?(${b})\\b`},{begin:`\\b(${r})\\b((${f})\\b|\\.)?|(${f})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},o={className:"subst",begin:"\\$\\{",end:"\\}",keywords:h,contains:[]},s={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,o],subLanguage:"xml"}},p={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,o],subLanguage:"css"}},d={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,o],subLanguage:"graphql"}},m={className:"string",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE,o]},x={className:"comment",variants:[t.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:a+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE]},E=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,s,p,d,m,{match:/\$\d+/},c];o.contains=E.concat({begin:/\{/,end:/\}/,keywords:h,contains:["self"].concat(E)});const w=[].concat(x,o.contains),y=w.concat([{begin:/(\s*)\(/,end:/\)/,keywords:h,contains:["self"].concat(w)}]),v={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:h,contains:y},O={variants:[{match:[/class/,/\s+/,a,/\s+/,/extends/,/\s+/,e.concat(a,"(",e.concat(/\./,a),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,a],scope:{1:"keyword",3:"title.class"}}]},S={relevance:0,match:e.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...ni,...ii]}},N={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},L={variants:[{match:[/function/,/\s+/,a,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[v],illegal:/%/},_={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function F(q){return e.concat("(?!",q.join("|"),")")}const $={match:e.concat(/\b/,F([...si,"super","import"].map(q=>`${q}\\s*\\(`)),a,e.lookahead(/\s*\(/)),className:"title.function",relevance:0},K={begin:e.concat(/\./,e.lookahead(e.concat(a,/(?![0-9A-Za-z$_(])/))),end:a,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},te={match:[/get|set/,/\s+/,a,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},v]},P="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+t.UNDERSCORE_IDENT_RE+")\\s*=>",re={match:[/const|var|let/,/\s+/,a,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(P)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[v]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:h,exports:{PARAMS_CONTAINS:y,CLASS_REFERENCE:S},illegal:/#(?![$_A-z])/,contains:[t.SHEBANG({label:"shebang",binary:"node",relevance:5}),N,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,s,p,d,m,x,{match:/\$\d+/},c,S,{scope:"attr",match:a+e.lookahead(":"),relevance:0},re,{begin:"("+t.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[x,t.REGEXP_MODE,{className:"function",begin:P,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:h,contains:y}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:n.begin,end:n.end},{match:u},{begin:l.begin,"on:begin":l.isTrulyOpeningTag,end:l.end}],subLanguage:"xml",contains:[{begin:l.begin,end:l.end,skip:!0,contains:["self"]}]}]},L,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+t.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[v,t.inherit(t.TITLE_MODE,{begin:a,className:"title.function"})]},{match:/\.\.\./,relevance:0},K,{match:"\\$"+a,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[v]},$,_,O,te,{match:/\$[(.]/}]}}function _o(t){const e=t.regex,i=Ao(t),a=Rt,n=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],u={begin:[/namespace/,/\s+/,t.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},l={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:n},contains:[i.exports.CLASS_REFERENCE]},h={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},b=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],f={$pattern:Rt,keyword:ti.concat(b),literal:ri,built_in:ai.concat(n),"variable.language":oi},r={className:"meta",begin:"@"+a},c=(d,m,x)=>{const E=d.contains.findIndex(w=>w.label===m);if(E===-1)throw new Error("can not find mode to replace");d.contains.splice(E,1,x)};Object.assign(i.keywords,f),i.exports.PARAMS_CONTAINS.push(r);const o=i.contains.find(d=>d.scope==="attr"),s=Object.assign({},o,{match:e.concat(a,e.lookahead(/\s*\?:/))});i.exports.PARAMS_CONTAINS.push([i.exports.CLASS_REFERENCE,o,s]),i.contains=i.contains.concat([r,u,l,s]),c(i,"shebang",t.SHEBANG()),c(i,"use_strict",h);const p=i.contains.find(d=>d.label==="func.def");return p.relevance=0,Object.assign(i,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),i}function Co(t){const e=t.regex,i=e.concat(/[\p{L}_]/u,e.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),a=/[\p{L}0-9._:-]+/u,n={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},u={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},l=t.inherit(u,{begin:/\(/,end:/\)/}),h=t.inherit(t.APOS_STRING_MODE,{className:"string"}),b=t.inherit(t.QUOTE_STRING_MODE,{className:"string"}),f={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:a,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[n]},{begin:/'/,end:/'/,contains:[n]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[u,b,h,l,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[u,l,b,h]}]}]},t.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},n,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[b]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[f],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[f],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:e.concat(/</,e.lookahead(e.concat(i,e.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:i,relevance:0,starts:f}]},{className:"tag",begin:e.concat(/<\//,e.lookahead(e.concat(i,/>/))),contains:[{className:"name",begin:i,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}const Ro=t=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:t.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:t.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),Po=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],No=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],Mo=[...Po,...No],To=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),Lo=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),jo=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),Io=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function Do(t){const e=t.regex,i=Ro(t),a={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},n="and or not only",u=/@-?\w[\w]*(-\w+)*/,l="[a-zA-Z-][a-zA-Z0-9_-]*",h=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[i.BLOCK_COMMENT,a,i.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+l,relevance:0},i.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+Lo.join("|")+")"},{begin:":(:)?("+jo.join("|")+")"}]},i.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Io.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[i.BLOCK_COMMENT,i.HEXCOLOR,i.IMPORTANT,i.CSS_NUMBER_MODE,...h,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...h,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},i.FUNCTION_DISPATCH]},{begin:e.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:u},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:n,attribute:To.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...h,i.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+Mo.join("|")+")\\b"}]}}const li=document.createElement("style");li.innerText=[xo,Eo].join(`
|
|
98
|
+
`);document.head.appendChild(li);It.registerLanguage("typescript",_o);It.registerLanguage("html",Co);It.registerLanguage("css",Do);function Bo(...t){const e=document.createElement("div"),i=document.createElement("div");i.classList.add("tab-control");const a=document.createElement("div");return t.forEach(n=>{e.appendChild(n),n.addEventListener("click",()=>{t.forEach(u=>u.removeAttribute("selected")),n.setAttribute("selected",""),a.innerHTML="",a.appendChild(n.content),a.className=n.className,a.classList.add("tab-content")})}),i.appendChild(e),i.appendChild(a),a.classList.add("tab-content"),t[0].setAttribute("selected",""),a.appendChild(t[0].content),i}function it(t,e){const i=document.createElement("div");return i.role="tab",i.tabIndex=0,i.innerText=t,i.content=e,e.tagName=="PRE"&&i.classList.add("code"),i}function lt(t,e){const i=document.createElement(t);return typeof e=="string"?i.innerHTML=e:e.forEach(a=>{i.appendChild(a)}),i}async function zo(t,e,i){const a=e.mainContent,n=lt("div",a);n.id=`example-preview-${i}`;const u=typeof e.css=="string"?void 0:e.css?.label,l=typeof e.css=="string"?e.css:e.css?.content,h=Bo(it("Preview",n),it("HTML",At("html",a)),...l?[it(u??"CSS",At("css",l))]:[],...e.initializer&&e.initializer.content?[it(e.initializer.label??"TS",At("typescript",e.initializer.content))]:[],...(e.additionalSources||[]).map(f=>it(f.label,At(f.language,f.content))));e.description&&t.appendChild(lt("div",e.description));const b=lt("div",[h]);b.classList.add("example"),t.appendChild(b),l&&$o(`#${n.id}`,l),e.initializer?.initialize&&await e.initializer.initialize(n)}function At(t,e){let i=e.split(/\r?\n/).map(a=>{const n=a.indexOf("///");if(n>-1){const u=a.substring(n+3).trimStart();return u?a.replace(/^(\s*)([^\s].*)$/,`$1${u}`):void 0}return a}).filter(a=>typeof a<"u").join(`
|
|
99
|
+
`).trim();return t&&t!="raw"&&(i=It.highlight(i,{language:t}).value),lt("pre",[lt("code",i)])}function $o(t,e){const i=document.createElement("style");i.innerHTML=J().use(wo({prefix:t})).process(e).css,document.head.appendChild(i)}async function Uo(t,e=document.body){const i=qo(e);let a=0;Object.keys(t).sort().forEach(async n=>{const u=document.createElement("div");u.className="example-container",i.appendChild(u);const l=t[n].default;zo(u,l,a++)})}function Fo(t){const e=document.createElement("div");e.id="examples-container";const i=t.querySelector("#examples");return i?i.after(e):t.appendChild(e),e}function qo(t){return t.children?Fo(t):t}const Wo=`<h1 id="@cas-smartdesign/popover">@cas-smartdesign/popover</h1>
|
|
97
100
|
<p>A popover element with SmartDesign look & feel.</p>
|
|
98
101
|
<h2 id="attributes">Attributes</h2>
|
|
99
102
|
<ul>
|
|
@@ -201,11 +204,4 @@ https://github.com/highlightjs/highlight.js/issues/2277`),D=f,k=m),w===void 0&&(
|
|
|
201
204
|
<ul>
|
|
202
205
|
<li>The first child element represents the content of the popover window.</li>
|
|
203
206
|
</ul>
|
|
204
|
-
|
|
205
|
-
`;document.querySelector("#markdown-container").innerHTML=ic;tc(Object.assign({"./examples/1_declarative_button_trigger/index.ts":Ti,"./examples/2_declarative_hover_trigger/index.ts":Ii,"./examples/3_created_from_source/index.ts":qi}));export{Ve as P};
|
|
206
|
-
function __vite__mapDeps(indexes) {
|
|
207
|
-
if (!__vite__mapDeps.viteFileDeps) {
|
|
208
|
-
__vite__mapDeps.viteFileDeps = []
|
|
209
|
-
}
|
|
210
|
-
return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
|
|
211
|
-
}
|
|
207
|
+
`,Ho=document.querySelector("#markdown-container");Ho.innerHTML=Wo;Uo(Object.assign({"./examples/1_declarative_button_trigger/index.ts":Bi,"./examples/2_declarative_hover_trigger/index.ts":Fi,"./examples/3_created_from_source/index.ts":Ji}),document.querySelector(".markdown-body"));export{at as P};
|