@cas-smartdesign/splitter 0.1.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/LICENSE +8 -0
- package/dist/docs/doc.css +1 -0
- package/dist/docs/doc.mjs +295 -0
- package/dist/docs/index.html +24 -0
- package/dist/splitter-with-externals.js +164 -0
- package/dist/splitter-with-externals.js.map +7 -0
- package/dist/splitter.d.ts +53 -0
- package/dist/splitter.mjs +177 -0
- package/dist/splitter.mjs.map +1 -0
- package/npm-third-party-licenses.json +192 -0
- package/package.json +33 -0
- package/readme.md +72 -0
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&i(s)}).observe(document,{childList:!0,subtree:!0});function t(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function i(r){if(r.ep)return;r.ep=!0;const o=t(r);fetch(r.href,o)}})();const Tr=`<sd-splitter class="basic">
|
|
2
|
+
<div slot="left" class="panel left">
|
|
3
|
+
<span>Left</span>
|
|
4
|
+
</div>
|
|
5
|
+
<div slot="right" class="panel right">
|
|
6
|
+
<span>Right</span>
|
|
7
|
+
</div>
|
|
8
|
+
</sd-splitter>
|
|
9
|
+
`,Lr=`<h3 id="basic-usage">Basic usage</h3>
|
|
10
|
+
`,jr=`sd-splitter.basic {
|
|
11
|
+
width: 100%;
|
|
12
|
+
height: 300px;
|
|
13
|
+
}
|
|
14
|
+
sd-splitter.basic .panel {
|
|
15
|
+
display: flex;
|
|
16
|
+
justify-content: center;
|
|
17
|
+
align-items: center;
|
|
18
|
+
}
|
|
19
|
+
sd-splitter.basic .panel.left {
|
|
20
|
+
background-color: lightblue;
|
|
21
|
+
}
|
|
22
|
+
sd-splitter.basic .panel.right {
|
|
23
|
+
background-color: lightcoral;
|
|
24
|
+
}
|
|
25
|
+
`,Ir={mainContent:Tr,description:Lr,css:jr},zr=Object.freeze(Object.defineProperty({__proto__:null,default:Ir},Symbol.toStringTag,{value:"Module"})),Ur=`<sd-splitter class="advanced" ratio="[1,2]">
|
|
26
|
+
<div slot="left" class="panel left">
|
|
27
|
+
<span>Left</span>
|
|
28
|
+
</div>
|
|
29
|
+
<div slot="right" class="panel right">
|
|
30
|
+
<span>Right</span>
|
|
31
|
+
</div>
|
|
32
|
+
</sd-splitter>
|
|
33
|
+
`,Dr=`<h3 id="advanced-usage">Advanced usage</h3>
|
|
34
|
+
<ul>
|
|
35
|
+
<li>Initial ratio: [2,1]</li>
|
|
36
|
+
<li>Minimum width of left panel: 100px</li>
|
|
37
|
+
<li>Visible splitter: 3px, gray</li>
|
|
38
|
+
<li>Gap around splitter: 10px</li>
|
|
39
|
+
<li>Splitter handle color: light green</li>
|
|
40
|
+
</ul>
|
|
41
|
+
`,Br=`sd-splitter.advanced {
|
|
42
|
+
width: 100%;
|
|
43
|
+
height: 300px;
|
|
44
|
+
--sd-splitter-gap: 10px;
|
|
45
|
+
--sd-splitter-width: 3px;
|
|
46
|
+
--sd-splitter-color: gray;
|
|
47
|
+
--sd-splitter-handle-color: lightgreen;
|
|
48
|
+
}
|
|
49
|
+
sd-splitter.advanced .panel {
|
|
50
|
+
display: flex;
|
|
51
|
+
justify-content: center;
|
|
52
|
+
align-items: center;
|
|
53
|
+
}
|
|
54
|
+
sd-splitter.advanced .panel.left {
|
|
55
|
+
background-color: lightblue;
|
|
56
|
+
min-width: 100px;
|
|
57
|
+
}
|
|
58
|
+
sd-splitter.advanced .panel.right {
|
|
59
|
+
background-color: lightcoral;
|
|
60
|
+
}
|
|
61
|
+
`,Hr={mainContent:Ur,description:Dr,css:Br},Fr=Object.freeze(Object.defineProperty({__proto__:null,default:Hr},Symbol.toStringTag,{value:"Module"})),Wr=`<sd-splitter class="custom" ratio="[3,1]">
|
|
62
|
+
<div slot="left" class="panel left">
|
|
63
|
+
<span>Left</span>
|
|
64
|
+
</div>
|
|
65
|
+
<div slot="splitter" class="custom-splitter">
|
|
66
|
+
<div class="sd-splitter-drag-area">
|
|
67
|
+
<svg
|
|
68
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
69
|
+
width="24"
|
|
70
|
+
height="24"
|
|
71
|
+
viewBox="0 0 24 24"
|
|
72
|
+
fill="none"
|
|
73
|
+
stroke="black"
|
|
74
|
+
stroke-width="2"
|
|
75
|
+
stroke-linecap="round"
|
|
76
|
+
stroke-linejoin="round">
|
|
77
|
+
<path d="m9 7-5 5 5 5" />
|
|
78
|
+
<path d="m15 7 5 5-5 5" />
|
|
79
|
+
</svg>
|
|
80
|
+
</div>
|
|
81
|
+
</div>
|
|
82
|
+
<div slot="right" class="panel right">
|
|
83
|
+
<span>Right</span>
|
|
84
|
+
</div>
|
|
85
|
+
</sd-splitter>
|
|
86
|
+
`,Gr=`<h3 id="custom-splitter">Custom splitter</h3>
|
|
87
|
+
<ul>
|
|
88
|
+
<li>Initial ratio: [3,1]</li>
|
|
89
|
+
<li>Minimum width of right panel: 100px</li>
|
|
90
|
+
<li>Minimum width of left panel: 100px</li>
|
|
91
|
+
<li>Gap around splitter: 5px</li>
|
|
92
|
+
</ul>
|
|
93
|
+
`,Zr=`sd-splitter.custom {
|
|
94
|
+
width: 100%;
|
|
95
|
+
height: 300px;
|
|
96
|
+
--sd-splitter-gap: 5px;
|
|
97
|
+
--sd-splitter-cursor: grab;
|
|
98
|
+
}
|
|
99
|
+
sd-splitter.custom .panel {
|
|
100
|
+
display: flex;
|
|
101
|
+
justify-content: center;
|
|
102
|
+
align-items: center;
|
|
103
|
+
}
|
|
104
|
+
sd-splitter.custom .panel.left {
|
|
105
|
+
background-color: lightblue;
|
|
106
|
+
min-width: 100px;
|
|
107
|
+
}
|
|
108
|
+
sd-splitter.custom .panel.right {
|
|
109
|
+
background-color: lightcoral;
|
|
110
|
+
min-width: 100px;
|
|
111
|
+
}
|
|
112
|
+
sd-splitter.custom .custom-splitter {
|
|
113
|
+
width: 10px;
|
|
114
|
+
background-color: lightgray;
|
|
115
|
+
border-radius: 5px;
|
|
116
|
+
display: flex;
|
|
117
|
+
justify-content: center;
|
|
118
|
+
align-items: center;
|
|
119
|
+
}
|
|
120
|
+
sd-splitter.custom .custom-splitter .sd-splitter-drag-area {
|
|
121
|
+
width: 30px;
|
|
122
|
+
height: 30px;
|
|
123
|
+
border-radius: 15px;
|
|
124
|
+
flex: none;
|
|
125
|
+
background-color: darkgray;
|
|
126
|
+
border: 1px solid black;
|
|
127
|
+
z-index: 0;
|
|
128
|
+
display: flex;
|
|
129
|
+
justify-content: center;
|
|
130
|
+
align-items: center;
|
|
131
|
+
}
|
|
132
|
+
sd-splitter.custom[hovering] .custom-splitter {
|
|
133
|
+
background-color: darkgray;
|
|
134
|
+
}
|
|
135
|
+
`,Vr={mainContent:Wr,description:Gr,css:Zr},Kr=Object.freeze(Object.defineProperty({__proto__:null,default:Vr},Symbol.toStringTag,{value:"Module"}));const tt=window,ri=tt.ShadowRoot&&(tt.ShadyCSS===void 0||tt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,si=Symbol(),Ci=new WeakMap;let dn=class{constructor(e,t,i){if(this._$cssResult$=!0,i!==si)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(ri&&e===void 0){const i=t!==void 0&&t.length===1;i&&(e=Ci.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&Ci.set(t,e))}return e}toString(){return this.cssText}};const fn=n=>new dn(typeof n=="string"?n:n+"",void 0,si),qr=(n,...e)=>{const t=n.length===1?n[0]:e.reduce((i,r,o)=>i+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+n[o+1],n[0]);return new dn(t,n,si)},Xr=(n,e)=>{ri?n.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet):e.forEach(t=>{const i=document.createElement("style"),r=tt.litNonce;r!==void 0&&i.setAttribute("nonce",r),i.textContent=t.cssText,n.appendChild(i)})},Oi=ri?n=>n:n=>n instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return fn(t)})(n):n;var Ct;const rt=window,ki=rt.trustedTypes,Jr=ki?ki.emptyScript:"",Ri=rt.reactiveElementPolyfillSupport,Dt={toAttribute(n,e){switch(e){case Boolean:n=n?Jr:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,e){let t=n;switch(e){case Boolean:t=n!==null;break;case Number:t=n===null?null:Number(n);break;case Object:case Array:try{t=JSON.parse(n)}catch{t=null}}return t}},pn=(n,e)=>e!==n&&(e==e||n==n),Ot={attribute:!0,type:String,converter:Dt,reflect:!1,hasChanged:pn},Bt="finalized";let de=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(e){var t;this.finalize(),((t=this.h)!==null&&t!==void 0?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach((t,i)=>{const r=this._$Ep(i,t);r!==void 0&&(this._$Ev.set(r,i),e.push(r))}),e}static createProperty(e,t=Ot){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const i=typeof e=="symbol"?Symbol():"__"+e,r=this.getPropertyDescriptor(e,i,t);r!==void 0&&Object.defineProperty(this.prototype,e,r)}}static getPropertyDescriptor(e,t,i){return{get(){return this[t]},set(r){const o=this[e];this[t]=r,this.requestUpdate(e,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||Ot}static finalize(){if(this.hasOwnProperty(Bt))return!1;this[Bt]=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),e.h!==void 0&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,i=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const r of i)this.createProperty(r,t[r])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const r of i)t.unshift(Oi(r))}else e!==void 0&&t.push(Oi(e));return t}static _$Ep(e,t){const i=t.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}_$Eu(){var e;this._$E_=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(t=>t(this))}addController(e){var t,i;((t=this._$ES)!==null&&t!==void 0?t:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((i=e.hostConnected)===null||i===void 0||i.call(e))}removeController(e){var t;(t=this._$ES)===null||t===void 0||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])})}createRenderRoot(){var e;const t=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return Xr(t,this.constructor.elementStyles),t}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(t=>{var i;return(i=t.hostConnected)===null||i===void 0?void 0:i.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(t=>{var i;return(i=t.hostDisconnected)===null||i===void 0?void 0:i.call(t)})}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$EO(e,t,i=Ot){var r;const o=this.constructor._$Ep(e,i);if(o!==void 0&&i.reflect===!0){const s=(((r=i.converter)===null||r===void 0?void 0:r.toAttribute)!==void 0?i.converter:Dt).toAttribute(t,i.type);this._$El=e,s==null?this.removeAttribute(o):this.setAttribute(o,s),this._$El=null}}_$AK(e,t){var i;const r=this.constructor,o=r._$Ev.get(e);if(o!==void 0&&this._$El!==o){const s=r.getPropertyOptions(o),l=typeof s.converter=="function"?{fromAttribute:s.converter}:((i=s.converter)===null||i===void 0?void 0:i.fromAttribute)!==void 0?s.converter:Dt;this._$El=o,this[o]=l.fromAttribute(t,s.type),this._$El=null}}requestUpdate(e,t,i){let r=!0;e!==void 0&&(((i=i||this.constructor.getPropertyOptions(e)).hasChanged||pn)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),i.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,i))):r=!1),!this.isUpdatePending&&r&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((r,o)=>this[o]=r),this._$Ei=void 0);let t=!1;const i=this._$AL;try{t=this.shouldUpdate(i),t?(this.willUpdate(i),(e=this._$ES)===null||e===void 0||e.forEach(r=>{var o;return(o=r.hostUpdate)===null||o===void 0?void 0:o.call(r)}),this.update(i)):this._$Ek()}catch(r){throw t=!1,this._$Ek(),r}t&&this._$AE(i)}willUpdate(e){}_$AE(e){var t;(t=this._$ES)===null||t===void 0||t.forEach(i=>{var r;return(r=i.hostUpdated)===null||r===void 0?void 0:r.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach((t,i)=>this._$EO(i,this[i],t)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};de[Bt]=!0,de.elementProperties=new Map,de.elementStyles=[],de.shadowRootOptions={mode:"open"},Ri==null||Ri({ReactiveElement:de}),((Ct=rt.reactiveElementVersions)!==null&&Ct!==void 0?Ct:rt.reactiveElementVersions=[]).push("1.6.3");var kt;const st=window,fe=st.trustedTypes,Ni=fe?fe.createPolicy("lit-html",{createHTML:n=>n}):void 0,Ht="$lit$",J=`lit$${(Math.random()+"").slice(9)}$`,gn="?"+J,Qr=`<${gn}>`,le=document,Ce=()=>le.createComment(""),Oe=n=>n===null||typeof n!="object"&&typeof n!="function",mn=Array.isArray,Yr=n=>mn(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",Rt=`[
|
|
136
|
+
\f\r]`,_e=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Mi=/-->/g,Pi=/>/g,re=RegExp(`>|${Rt}(?:([^\\s"'>=/]+)(${Rt}*=${Rt}*(?:[^
|
|
137
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ti=/'/g,Li=/"/g,bn=/^(?:script|style|textarea|title)$/i,es=n=>(e,...t)=>({_$litType$:n,strings:e,values:t}),ji=es(1),Y=Symbol.for("lit-noChange"),R=Symbol.for("lit-nothing"),Ii=new WeakMap,se=le.createTreeWalker(le,129,null,!1);function yn(n,e){if(!Array.isArray(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ni!==void 0?Ni.createHTML(e):e}const ts=(n,e)=>{const t=n.length-1,i=[];let r,o=e===2?"<svg>":"",s=_e;for(let l=0;l<t;l++){const a=n[l];let c,h,f=-1,p=0;for(;p<a.length&&(s.lastIndex=p,h=s.exec(a),h!==null);)p=s.lastIndex,s===_e?h[1]==="!--"?s=Mi:h[1]!==void 0?s=Pi:h[2]!==void 0?(bn.test(h[2])&&(r=RegExp("</"+h[2],"g")),s=re):h[3]!==void 0&&(s=re):s===re?h[0]===">"?(s=r??_e,f=-1):h[1]===void 0?f=-2:(f=s.lastIndex-h[2].length,c=h[1],s=h[3]===void 0?re:h[3]==='"'?Li:Ti):s===Li||s===Ti?s=re:s===Mi||s===Pi?s=_e:(s=re,r=void 0);const _=s===re&&n[l+1].startsWith("/>")?" ":"";o+=s===_e?a+Qr:f>=0?(i.push(c),a.slice(0,f)+Ht+a.slice(f)+J+_):a+J+(f===-2?(i.push(void 0),l):_)}return[yn(n,o+(n[t]||"<?>")+(e===2?"</svg>":"")),i]};class ke{constructor({strings:e,_$litType$:t},i){let r;this.parts=[];let o=0,s=0;const l=e.length-1,a=this.parts,[c,h]=ts(e,t);if(this.el=ke.createElement(c,i),se.currentNode=this.el.content,t===2){const f=this.el.content,p=f.firstChild;p.remove(),f.append(...p.childNodes)}for(;(r=se.nextNode())!==null&&a.length<l;){if(r.nodeType===1){if(r.hasAttributes()){const f=[];for(const p of r.getAttributeNames())if(p.endsWith(Ht)||p.startsWith(J)){const _=h[s++];if(f.push(p),_!==void 0){const O=r.getAttribute(_.toLowerCase()+Ht).split(J),N=/([.?@])?(.*)/.exec(_);a.push({type:1,index:o,name:N[2],strings:O,ctor:N[1]==="."?ns:N[1]==="?"?ss:N[1]==="@"?os:dt})}else a.push({type:6,index:o})}for(const p of f)r.removeAttribute(p)}if(bn.test(r.tagName)){const f=r.textContent.split(J),p=f.length-1;if(p>0){r.textContent=fe?fe.emptyScript:"";for(let _=0;_<p;_++)r.append(f[_],Ce()),se.nextNode(),a.push({type:2,index:++o});r.append(f[p],Ce())}}}else if(r.nodeType===8)if(r.data===gn)a.push({type:2,index:o});else{let f=-1;for(;(f=r.data.indexOf(J,f+1))!==-1;)a.push({type:7,index:o}),f+=J.length-1}o++}}static createElement(e,t){const i=le.createElement("template");return i.innerHTML=e,i}}function pe(n,e,t=n,i){var r,o,s,l;if(e===Y)return e;let a=i!==void 0?(r=t._$Co)===null||r===void 0?void 0:r[i]:t._$Cl;const c=Oe(e)?void 0:e._$litDirective$;return(a==null?void 0:a.constructor)!==c&&((o=a==null?void 0:a._$AO)===null||o===void 0||o.call(a,!1),c===void 0?a=void 0:(a=new c(n),a._$AT(n,t,i)),i!==void 0?((s=(l=t)._$Co)!==null&&s!==void 0?s:l._$Co=[])[i]=a:t._$Cl=a),a!==void 0&&(e=pe(n,a._$AS(n,e.values),a,i)),e}class is{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;const{el:{content:i},parts:r}=this._$AD,o=((t=e==null?void 0:e.creationScope)!==null&&t!==void 0?t:le).importNode(i,!0);se.currentNode=o;let s=se.nextNode(),l=0,a=0,c=r[0];for(;c!==void 0;){if(l===c.index){let h;c.type===2?h=new je(s,s.nextSibling,this,e):c.type===1?h=new c.ctor(s,c.name,c.strings,this,e):c.type===6&&(h=new ls(s,this,e)),this._$AV.push(h),c=r[++a]}l!==(c==null?void 0:c.index)&&(s=se.nextNode(),l++)}return se.currentNode=le,o}v(e){let t=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}}class je{constructor(e,t,i,r){var o;this.type=2,this._$AH=R,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=r,this._$Cp=(o=r==null?void 0:r.isConnected)===null||o===void 0||o}get _$AU(){var e,t;return(t=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&t!==void 0?t:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=pe(this,e,t),Oe(e)?e===R||e==null||e===""?(this._$AH!==R&&this._$AR(),this._$AH=R):e!==this._$AH&&e!==Y&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):Yr(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==R&&Oe(this._$AH)?this._$AA.nextSibling.data=e:this.$(le.createTextNode(e)),this._$AH=e}g(e){var t;const{values:i,_$litType$:r}=e,o=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=ke.createElement(yn(r.h,r.h[0]),this.options)),r);if(((t=this._$AH)===null||t===void 0?void 0:t._$AD)===o)this._$AH.v(i);else{const s=new is(o,this),l=s.u(this.options);s.v(i),this.$(l),this._$AH=s}}_$AC(e){let t=Ii.get(e.strings);return t===void 0&&Ii.set(e.strings,t=new ke(e)),t}T(e){mn(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let i,r=0;for(const o of e)r===t.length?t.push(i=new je(this.k(Ce()),this.k(Ce()),this,this.options)):i=t[r],i._$AI(o),r++;r<t.length&&(this._$AR(i&&i._$AB.nextSibling,r),t.length=r)}_$AR(e=this._$AA.nextSibling,t){var i;for((i=this._$AP)===null||i===void 0||i.call(this,!1,!0,t);e&&e!==this._$AB;){const r=e.nextSibling;e.remove(),e=r}}setConnected(e){var t;this._$AM===void 0&&(this._$Cp=e,(t=this._$AP)===null||t===void 0||t.call(this,e))}}class dt{constructor(e,t,i,r,o){this.type=1,this._$AH=R,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=o,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=R}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,i,r){const o=this.strings;let s=!1;if(o===void 0)e=pe(this,e,t,0),s=!Oe(e)||e!==this._$AH&&e!==Y,s&&(this._$AH=e);else{const l=e;let a,c;for(e=o[0],a=0;a<o.length-1;a++)c=pe(this,l[i+a],t,a),c===Y&&(c=this._$AH[a]),s||(s=!Oe(c)||c!==this._$AH[a]),c===R?e=R:e!==R&&(e+=(c??"")+o[a+1]),this._$AH[a]=c}s&&!r&&this.j(e)}j(e){e===R?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class ns extends dt{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===R?void 0:e}}const rs=fe?fe.emptyScript:"";class ss extends dt{constructor(){super(...arguments),this.type=4}j(e){e&&e!==R?this.element.setAttribute(this.name,rs):this.element.removeAttribute(this.name)}}let os=class extends dt{constructor(e,t,i,r,o){super(e,t,i,r,o),this.type=5}_$AI(e,t=this){var i;if((e=(i=pe(this,e,t,0))!==null&&i!==void 0?i:R)===Y)return;const r=this._$AH,o=e===R&&r!==R||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,s=e!==R&&(r===R||o);o&&this.element.removeEventListener(this.name,this,r),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,i;typeof this._$AH=="function"?this._$AH.call((i=(t=this.options)===null||t===void 0?void 0:t.host)!==null&&i!==void 0?i:this.element,e):this._$AH.handleEvent(e)}};class ls{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){pe(this,e)}}const zi=st.litHtmlPolyfillSupport;zi==null||zi(ke,je),((kt=st.litHtmlVersions)!==null&&kt!==void 0?kt:st.litHtmlVersions=[]).push("2.8.0");const as=(n,e,t)=>{var i,r;const o=(i=t==null?void 0:t.renderBefore)!==null&&i!==void 0?i:e;let s=o._$litPart$;if(s===void 0){const l=(r=t==null?void 0:t.renderBefore)!==null&&r!==void 0?r:null;o._$litPart$=s=new je(e.insertBefore(Ce(),l),l,void 0,t??{})}return s._$AI(n),s};var Nt,Mt;class Ae extends de{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;const i=super.createRenderRoot();return(e=(t=this.renderOptions).renderBefore)!==null&&e!==void 0||(t.renderBefore=i.firstChild),i}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=as(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!1)}render(){return Y}}Ae.finalized=!0,Ae._$litElement$=!0,(Nt=globalThis.litElementHydrateSupport)===null||Nt===void 0||Nt.call(globalThis,{LitElement:Ae});const Ui=globalThis.litElementPolyfillSupport;Ui==null||Ui({LitElement:Ae});((Mt=globalThis.litElementVersions)!==null&&Mt!==void 0?Mt:globalThis.litElementVersions=[]).push("3.3.3");const cs=(n,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(t){t.createProperty(e.key,n)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this))},finisher(t){t.createProperty(e.key,n)}},hs=(n,e,t)=>{e.constructor.createProperty(t,n)};function wn(n){return(e,t)=>t!==void 0?hs(n,e,t):cs(n,e)}function Ie(n){return wn({...n,state:!0})}const us=({finisher:n,descriptor:e})=>(t,i)=>{var r;if(i===void 0){const o=(r=t.originalKey)!==null&&r!==void 0?r:t.key,s=e!=null?{kind:"method",placement:"prototype",key:o,descriptor:e(t.key)}:{...t,key:o};return n!=null&&(s.finisher=function(l){n(l,o)}),s}{const o=t.constructor;e!==void 0&&Object.defineProperty(t,i,e(i)),n==null||n(o,i)}};function we(n,e){return us({descriptor:t=>{const i={get(){var r,o;return(o=(r=this.renderRoot)===null||r===void 0?void 0:r.querySelector(n))!==null&&o!==void 0?o:null},enumerable:!0,configurable:!0};if(e){const r=typeof t=="symbol"?Symbol():"__"+t;i.get=function(){var o,s;return this[r]===void 0&&(this[r]=(s=(o=this.renderRoot)===null||o===void 0?void 0:o.querySelector(n))!==null&&s!==void 0?s:null),this[r]}}return i}})}var Pt;((Pt=window.HTMLSlotElement)===null||Pt===void 0?void 0:Pt.prototype.assignedElements)!=null;const vn={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},_n=n=>(...e)=>({_$litDirective$:n,values:e});let xn=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,i){this._$Ct=e,this._$AM=t,this._$Ci=i}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};const ds=_n(class extends xn{constructor(n){var e;if(super(n),n.type!==vn.ATTRIBUTE||n.name!=="class"||((e=n.strings)===null||e===void 0?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(n){return" "+Object.keys(n).filter(e=>n[e]).join(" ")+" "}update(n,[e]){var t,i;if(this.it===void 0){this.it=new Set,n.strings!==void 0&&(this.nt=new Set(n.strings.join(" ").split(/\s/).filter(o=>o!=="")));for(const o in e)e[o]&&!(!((t=this.nt)===null||t===void 0)&&t.has(o))&&this.it.add(o);return this.render(e)}const r=n.element.classList;this.it.forEach(o=>{o in e||(r.remove(o),this.it.delete(o))});for(const o in e){const s=!!e[o];s===this.it.has(o)||!((i=this.nt)===null||i===void 0)&&i.has(o)||(s?(r.add(o),this.it.add(o)):(r.remove(o),this.it.delete(o)))}return Y}});const En="important",fs=" !"+En,Tt=_n(class extends xn{constructor(n){var e;if(super(n),n.type!==vn.ATTRIBUTE||n.name!=="style"||((e=n.strings)===null||e===void 0?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(n){return Object.keys(n).reduce((e,t)=>{const i=n[t];return i==null?e:e+`${t=t.includes("-")?t:t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(n,[e]){const{style:t}=n.element;if(this.ht===void 0){this.ht=new Set;for(const i in e)this.ht.add(i);return this.render(e)}this.ht.forEach(i=>{e[i]==null&&(this.ht.delete(i),i.includes("-")?t.removeProperty(i):t[i]="")});for(const i in e){const r=e[i];if(r!=null){this.ht.add(i);const o=typeof r=="string"&&r.endsWith(fs);i.includes("-")||o?t.setProperty(i,o?r.slice(0,-11):r,o?En:""):t[i]=r}}return Y}}),ps=":host{display:block;--sd-splitter-gap: 0px;--sd-splitter-cursor: ew-resize;--sd-splitter-width: 0px;--sd-splitter-color: transparent;--sd-splitter-handle-width: 5px;--sd-splitter-handle-color: #1467ba}#root{display:flex;height:100%;width:100%;justify-content:space-between;gap:var(--sd-splitter-gap)}.pane{overflow:hidden}::slotted([slot=left]),::slotted([slot=right]){width:100%;height:100%}::slotted([slot=splitter]){flex:none;touch-action:none}#default-splitter{flex:none;touch-action:none;width:var(--sd-splitter-width);position:relative;background-color:var(--sd-splitter-color)}#default-splitter-handle{position:absolute;top:0;left:calc((var(--sd-splitter-width) - var(--sd-splitter-handle-width)) / 2);right:0;bottom:0;width:var(--sd-splitter-handle-width);background-color:var(--sd-splitter-handle-color);opacity:0;transition:opacity .2s}#default-splitter-drag-area{position:absolute;top:0;left:-3px;width:calc(var(--sd-splitter-handle-width) + 6px);bottom:0}#default-splitter-handle.hover,#default-splitter-handle.drag{opacity:1}#default-splitter-handle.hover{transition-delay:.5s}#default-splitter-handle.drag{transition:none}";var gs=Object.defineProperty,ms=Object.getOwnPropertyDescriptor,U=(n,e,t,i)=>{for(var r=i>1?void 0:i?ms(e,t):e,o=n.length-1,s;o>=0;o--)(s=n[o])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&gs(e,t,r),r};const _i=class _i extends Ae{constructor(){super(),this.ratio=[1,1],this._hovering=!1,this._dragging=!1,this._startX=0,this._startLeftWidth=0,this._onLeftSlotChange=()=>{this._assignSlotted("left",this._leftSlot,e=>{this._leftSlotted=e})},this._onRightSlotChange=()=>{this._assignSlotted("right",this._rightSlot,e=>{this._rightSlotted=e})},this._onSplitterSlotChange=()=>{if(this._customSplitterCleanup&&(this._customSplitterCleanup(),this._customSplitterCleanup=void 0),this._assignSlotted("splitter",this._splitterSlot,e=>{this._customSplitter=e}),this._customSplitter){const e=this._customSplitter.querySelector(".sd-splitter-drag-area")||this._customSplitter;e.addEventListener("pointerenter",this._enterDragArea),e.addEventListener("pointerleave",this._leaveDragArea),e.addEventListener("pointerdown",this._startDrag),this._customSplitterCleanup=()=>{e.removeEventListener("pointerenter",this._enterDragArea),e.removeEventListener("pointerleave",this._leaveDragArea),e.removeEventListener("pointerdown",this._startDrag)}}},this._enterDragArea=()=>{this._hovering=!0,this.setAttribute("hovering","")},this._leaveDragArea=()=>{this._hovering=!1,this._dragging||this.removeAttribute("hovering")},this._startDrag=e=>{this._dragging=!0,this.setAttribute("dragging",""),this._startX=e.clientX,this._startLeftWidth=this._leftPane.offsetWidth,window.addEventListener("pointermove",this._doDrag),window.addEventListener("pointerup",this._endDrag),window.addEventListener("contextmenu",this._preventContextMenu),window.document.body.style.cursor=getComputedStyle(this).getPropertyValue("--sd-splitter-cursor"),e.preventDefault()},this._doDrag=e=>{if(!this._dragging)return;const t=e.clientX-this._startX;this._recomputeRatio(this._startLeftWidth+t)},this._endDrag=()=>{this._dragging=!1,this.removeAttribute("dragging"),this._hovering||this.removeAttribute("hovering"),window.removeEventListener("pointermove",this._doDrag),window.removeEventListener("pointerup",this._endDrag),window.removeEventListener("contextmenu",this._preventContextMenu),window.document.body.style.removeProperty("cursor")},this._preventContextMenu=e=>{e.preventDefault()},this._resizeObserver=new ResizeObserver(()=>{this._handleResize()})}connectedCallback(){super.connectedCallback(),this._resizeObserver.observe(this)}disconnectedCallback(){super.disconnectedCallback(),this._resizeObserver.unobserve(this)}_assignSlotted(e,t,i){t.assignedElements().length>1&&console.warn(`At most one element can be assigned to slot '${e}' in sd-splitter.`),i(t.assignedElements()[0])}_handleResize(){!this._leftSlotted||!this._rightSlotted||this._recomputeRatio(this._leftPane.offsetWidth)}_recomputeRatio(e){const t=this._getAvailableWidth();if(t<=0)return;const[i,r]=this._getMinMaxWidth(this._leftSlot),[o,s]=this._getMinMaxWidth(this._rightSlot),l=Math.max(i,t-s),a=Math.min(r,t-o),c=Math.max(l,Math.min(e,a)),h=t-c;this._setRatio(c,h)}_getAvailableWidth(){const e=parseFloat(getComputedStyle(this._root).getPropertyValue("gap"))||0;return this.offsetWidth-this._getSplitter().offsetWidth-2*e}_getSplitter(){return this._customSplitter||this._defaultSplitter}_getMinMaxWidth(e){const t=getComputedStyle(e.assignedElements()[0]);return[parseFloat(t.minWidth)||0,parseFloat(t.maxWidth)||1/0]}_setRatio(e,t){const i=e+t;if(i===0)return[.5,.5];this.ratio=[e/i,t/i],this.dispatchEvent(new bs(this.ratio))}render(){if(!this._leftSlotted||!this._rightSlotted)return ji`
|
|
138
|
+
<div id="root">
|
|
139
|
+
<slot name="left" @slotchange=${this._onLeftSlotChange} ?hidden=${!this._leftSlotted}></slot>
|
|
140
|
+
<slot name="splitter" @slotchange=${this._onSplitterSlotChange} ?hidden=${!0}></slot>
|
|
141
|
+
<slot name="right" @slotchange=${this._onRightSlotChange} ?hidden=${!this._rightSlotted}></slot>
|
|
142
|
+
</div>
|
|
143
|
+
`;const[e,t]=this.ratio,i=this._hovering?getComputedStyle(this).getPropertyValue("--sd-splitter-cursor"):"inherit";return ji`
|
|
144
|
+
<div id="root" style=${Tt({cursor:i})}>
|
|
145
|
+
<div id="left" class="pane" style=${Tt({flex:e+" "+e+" 0"})}>
|
|
146
|
+
<slot name="left" @slotchange=${this._onLeftSlotChange}></slot>
|
|
147
|
+
</div>
|
|
148
|
+
<slot name="splitter" @slotchange=${this._onSplitterSlotChange}>
|
|
149
|
+
<div id="default-splitter">
|
|
150
|
+
<div
|
|
151
|
+
id="default-splitter-handle"
|
|
152
|
+
class=${ds({hover:this._hovering,drag:this._dragging})}
|
|
153
|
+
>
|
|
154
|
+
<div
|
|
155
|
+
id="default-splitter-drag-area"
|
|
156
|
+
@pointerenter=${this._enterDragArea}
|
|
157
|
+
@pointerleave=${this._leaveDragArea}
|
|
158
|
+
@pointerdown=${this._startDrag}
|
|
159
|
+
></div>
|
|
160
|
+
</div>
|
|
161
|
+
</div>
|
|
162
|
+
</slot>
|
|
163
|
+
<div id="right" class="pane" style=${Tt({flex:t+" "+t+" 0"})}>
|
|
164
|
+
<slot name="right" @slotchange=${this._onRightSlotChange}></slot>
|
|
165
|
+
</div>
|
|
166
|
+
</div>
|
|
167
|
+
`}static get styles(){return[qr`
|
|
168
|
+
${fn(ps)}
|
|
169
|
+
`]}};_i.ID="sd-splitter";let P=_i;U([wn({type:Array,reflect:!0})],P.prototype,"ratio",2);U([we("#root",!0)],P.prototype,"_root",2);U([we("#left")],P.prototype,"_leftPane",2);U([we('slot[name="left"]')],P.prototype,"_leftSlot",2);U([we('slot[name="right"]')],P.prototype,"_rightSlot",2);U([we('slot[name="splitter"]')],P.prototype,"_splitterSlot",2);U([we("#default-splitter")],P.prototype,"_defaultSplitter",2);U([Ie()],P.prototype,"_leftSlotted",2);U([Ie()],P.prototype,"_rightSlotted",2);U([Ie()],P.prototype,"_customSplitter",2);U([Ie()],P.prototype,"_hovering",2);U([Ie()],P.prototype,"_dragging",2);customElements.get(P.ID)||customElements.define(P.ID,P);class bs extends Event{constructor(e){super("sd-splitter-resized",{bubbles:!0,composed:!0}),this.ratio=e}}function Sn(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function ys(n){if(n.__esModule)return n;var e=n.default;if(typeof e=="function"){var t=function i(){return this instanceof i?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(n).forEach(function(i){var r=Object.getOwnPropertyDescriptor(n,i);Object.defineProperty(t,i,r.get?r:{enumerable:!0,get:function(){return n[i]}})}),t}var oi={exports:{}},$=String,An=function(){return{isColorSupported:!1,reset:$,bold:$,dim:$,italic:$,underline:$,inverse:$,hidden:$,strikethrough:$,black:$,red:$,green:$,yellow:$,blue:$,magenta:$,cyan:$,white:$,gray:$,bgBlack:$,bgRed:$,bgGreen:$,bgYellow:$,bgBlue:$,bgMagenta:$,bgCyan:$,bgWhite:$}};oi.exports=An();oi.exports.createColors=An;var ws=oi.exports;const vs={},_s=Object.freeze(Object.defineProperty({__proto__:null,default:vs},Symbol.toStringTag,{value:"Module"})),D=ys(_s);let Di=ws,Bi=D,Ft=class $n extends Error{constructor(e,t,i,r,o,s){super(e),this.name="CssSyntaxError",this.reason=e,o&&(this.file=o),r&&(this.source=r),s&&(this.plugin=s),typeof t<"u"&&typeof i<"u"&&(typeof t=="number"?(this.line=t,this.column=i):(this.line=t.line,this.column=t.column,this.endLine=i.line,this.endColumn=i.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,$n)}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(e){if(!this.source)return"";let t=this.source;e==null&&(e=Di.isColorSupported),Bi&&e&&(t=Bi(t));let i=t.split(/\r?\n/),r=Math.max(this.line-3,0),o=Math.min(this.line+2,i.length),s=String(o).length,l,a;if(e){let{bold:c,gray:h,red:f}=Di.createColors(!0);l=p=>c(f(p)),a=p=>h(p)}else l=a=c=>c;return i.slice(r,o).map((c,h)=>{let f=r+1+h,p=" "+(" "+f).slice(-s)+" | ";if(f===this.line){let _=a(p.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return l(">")+a(p)+c+`
|
|
170
|
+
`+_+l("^")}return" "+a(p)+c}).join(`
|
|
171
|
+
`)}toString(){let e=this.showSourceCode();return e&&(e=`
|
|
172
|
+
|
|
173
|
+
`+e+`
|
|
174
|
+
`),this.name+": "+this.message+e}};var li=Ft;Ft.default=Ft;var ze={};ze.isClean=Symbol("isClean");ze.my=Symbol("my");const Hi={after:`
|
|
175
|
+
`,beforeClose:`
|
|
176
|
+
`,beforeComment:`
|
|
177
|
+
`,beforeDecl:`
|
|
178
|
+
`,beforeOpen:" ",beforeRule:`
|
|
179
|
+
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function xs(n){return n[0].toUpperCase()+n.slice(1)}let Wt=class{constructor(e){this.builder=e}atrule(e,t){let i="@"+e.name,r=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?i+=e.raws.afterName:r&&(i+=" "),e.nodes)this.block(e,i+r);else{let o=(e.raws.between||"")+(t?";":"");this.builder(i+r+o,e)}}beforeAfter(e,t){let i;e.type==="decl"?i=this.raw(e,null,"beforeDecl"):e.type==="comment"?i=this.raw(e,null,"beforeComment"):t==="before"?i=this.raw(e,null,"beforeRule"):i=this.raw(e,null,"beforeClose");let r=e.parent,o=0;for(;r&&r.type!=="root";)o+=1,r=r.parent;if(i.includes(`
|
|
180
|
+
`)){let s=this.raw(e,null,"indent");if(s.length)for(let l=0;l<o;l++)i+=s}return i}block(e,t){let i=this.raw(e,"between","beforeOpen");this.builder(t+i+"{",e,"start");let r;e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&e.nodes[t].type==="comment";)t-=1;let i=this.raw(e,"semicolon");for(let r=0;r<e.nodes.length;r++){let o=e.nodes[r],s=this.raw(o,"before");s&&this.builder(s),this.stringify(o,t!==r||i)}}comment(e){let t=this.raw(e,"left","commentLeft"),i=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+i+"*/",e)}decl(e,t){let i=this.raw(e,"between","colon"),r=e.prop+i+this.rawValue(e,"value");e.important&&(r+=e.raws.important||" !important"),t&&(r+=";"),this.builder(r,e)}document(e){this.body(e)}raw(e,t,i){let r;if(i||(i=t),t&&(r=e.raws[t],typeof r<"u"))return r;let o=e.parent;if(i==="before"&&(!o||o.type==="root"&&o.first===e||o&&o.type==="document"))return"";if(!o)return Hi[i];let s=e.root();if(s.rawCache||(s.rawCache={}),typeof s.rawCache[i]<"u")return s.rawCache[i];if(i==="before"||i==="after")return this.beforeAfter(e,i);{let l="raw"+xs(i);this[l]?r=this[l](s,e):s.walk(a=>{if(r=a.raws[t],typeof r<"u")return!1})}return typeof r>"u"&&(r=Hi[i]),s.rawCache[i]=r,r}rawBeforeClose(e){let t;return e.walk(i=>{if(i.nodes&&i.nodes.length>0&&typeof i.raws.after<"u")return t=i.raws.after,t.includes(`
|
|
181
|
+
`)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let i;return e.walkComments(r=>{if(typeof r.raws.before<"u")return i=r.raws.before,i.includes(`
|
|
182
|
+
`)&&(i=i.replace(/[^\n]+$/,"")),!1}),typeof i>"u"?i=this.raw(t,null,"beforeDecl"):i&&(i=i.replace(/\S/g,"")),i}rawBeforeDecl(e,t){let i;return e.walkDecls(r=>{if(typeof r.raws.before<"u")return i=r.raws.before,i.includes(`
|
|
183
|
+
`)&&(i=i.replace(/[^\n]+$/,"")),!1}),typeof i>"u"?i=this.raw(t,null,"beforeRule"):i&&(i=i.replace(/\S/g,"")),i}rawBeforeOpen(e){let t;return e.walk(i=>{if(i.type!=="decl"&&(t=i.raws.between,typeof t<"u"))return!1}),t}rawBeforeRule(e){let t;return e.walk(i=>{if(i.nodes&&(i.parent!==e||e.first!==i)&&typeof i.raws.before<"u")return t=i.raws.before,t.includes(`
|
|
184
|
+
`)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(i=>{if(typeof i.raws.between<"u")return t=i.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(i=>{if(i.nodes&&i.nodes.length===0&&(t=i.raws.after,typeof t<"u"))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(i=>{let r=i.parent;if(r&&r!==e&&r.parent&&r.parent===e&&typeof i.raws.before<"u"){let o=i.raws.before.split(`
|
|
185
|
+
`);return t=o[o.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(i=>{if(i.nodes&&i.nodes.length&&i.last.type==="decl"&&(t=i.raws.semicolon,typeof t<"u"))return!1}),t}rawValue(e,t){let i=e[t],r=e.raws[t];return r&&r.value===i?r.raw:i}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}};var Cn=Wt;Wt.default=Wt;let Es=Cn;function Gt(n,e){new Es(e).stringify(n)}var ft=Gt;Gt.default=Gt;let{isClean:We,my:Ss}=ze,As=li,$s=Cn,Cs=ft;function Zt(n,e){let t=new n.constructor;for(let i in n){if(!Object.prototype.hasOwnProperty.call(n,i)||i==="proxyCache")continue;let r=n[i],o=typeof r;i==="parent"&&o==="object"?e&&(t[i]=e):i==="source"?t[i]=r:Array.isArray(r)?t[i]=r.map(s=>Zt(s,t)):(o==="object"&&r!==null&&(r=Zt(r)),t[i]=r)}return t}let Vt=class{constructor(e={}){this.raws={},this[We]=!1,this[Ss]=!0;for(let t in e)if(t==="nodes"){this.nodes=[];for(let i of e[t])typeof i.clone=="function"?this.append(i.clone()):this.append(i)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=Zt(this);for(let i in e)t[i]=e[i];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:i,start:r}=this.rangeBy(t);return this.source.input.error(e,{column:r.column,line:r.line},{column:i.column,line:i.line},t)}return new As(e)}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:t==="root"?()=>e.root().toProxy():e[t]},set(e,t,i){return e[t]===i||(e[t]=i,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&e.markDirty()),!0}}}markDirty(){if(this[We]){this[We]=!1;let e=this;for(;e=e.parent;)e[We]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let i=this.source.start;if(e.index)i=this.positionInside(e.index,t);else if(e.word){t=this.toString();let r=t.indexOf(e.word);r!==-1&&(i=this.positionInside(r,t))}return i}positionInside(e,t){let i=t||this.toString(),r=this.source.start.column,o=this.source.start.line;for(let s=0;s<e;s++)i[s]===`
|
|
186
|
+
`?(r=1,o+=1):r+=1;return{column:r,line:o}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},i=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let r=this.toString(),o=r.indexOf(e.word);o!==-1&&(t=this.positionInside(o,r),i=this.positionInside(o+e.word.length,r))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?i={column:e.end.column,line:e.end.line}:e.endIndex?i=this.positionInside(e.endIndex):e.index&&(i=this.positionInside(e.index+1));return(i.line<t.line||i.line===t.line&&i.column<=t.column)&&(i={column:t.column+1,line:t.line}),{end:i,start:t}}raw(e,t){return new $s().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,i=!1;for(let r of e)r===this?i=!0:i?(this.parent.insertAfter(t,r),t=r):this.parent.insertBefore(t,r);i||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,t){let i={},r=t==null;t=t||new Map;let o=0;for(let s in this){if(!Object.prototype.hasOwnProperty.call(this,s)||s==="parent"||s==="proxyCache")continue;let l=this[s];if(Array.isArray(l))i[s]=l.map(a=>typeof a=="object"&&a.toJSON?a.toJSON(null,t):a);else if(typeof l=="object"&&l.toJSON)i[s]=l.toJSON(null,t);else if(s==="source"){let a=t.get(l.input);a==null&&(a=o,t.set(l.input,o),o++),i[s]={end:l.end,inputId:a,start:l.start}}else i[s]=l}return r&&(i.inputs=[...t.keys()].map(s=>s.toJSON())),i}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=Cs){e.stringify&&(e=e.stringify);let t="";return e(this,i=>{t+=i}),t}warn(e,t,i){let r={node:this};for(let o in i)r[o]=i[o];return e.warn(t,r)}get proxyOf(){return this}};var pt=Vt;Vt.default=Vt;let Os=pt,Kt=class extends Os{constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};var gt=Kt;Kt.default=Kt;let ks="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Rs=(n,e=21)=>(t=e)=>{let i="",r=t;for(;r--;)i+=n[Math.random()*n.length|0];return i},Ns=(n=21)=>{let e="",t=n;for(;t--;)e+=ks[Math.random()*64|0];return e};var Ms={nanoid:Ns,customAlphabet:Rs};let{SourceMapConsumer:Fi,SourceMapGenerator:Wi}=D,{existsSync:Ps,readFileSync:Ts}=D,{dirname:Lt,join:Ls}=D;function js(n){return Buffer?Buffer.from(n,"base64").toString():window.atob(n)}let qt=class{constructor(e,t){if(t.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let i=t.map?t.map.prev:void 0,r=this.loadMap(t.from,i);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=Lt(this.mapFile)),r&&(this.text=r)}consumer(){return this.consumerCache||(this.consumerCache=new Fi(this.text)),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,i=/^data:application\/json;base64,/,r=/^data:application\/json;charset=utf-?8,/,o=/^data:application\/json,/;if(r.test(e)||o.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||i.test(e))return js(e.substr(RegExp.lastMatch.length));let s=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+s)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let i=e.lastIndexOf(t.pop()),r=e.indexOf("*/",i);i>-1&&r>-1&&(this.annotation=this.getAnnotationURL(e.substring(i,r)))}loadFile(e){if(this.root=Lt(e),Ps(e))return this.mapFile=e,Ts(e,"utf-8").toString().trim()}loadMap(e,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let i=t(e);if(i){let r=this.loadFile(i);if(!r)throw new Error("Unable to load previous source map: "+i.toString());return r}}else{if(t instanceof Fi)return Wi.fromSourceMap(t).toString();if(t instanceof Wi)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let i=this.annotation;return e&&(i=Ls(Lt(e),i)),this.loadFile(i)}}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var On=qt;qt.default=qt;let{SourceMapConsumer:Is,SourceMapGenerator:zs}=D,{fileURLToPath:Gi,pathToFileURL:Ge}=D,{isAbsolute:Xt,resolve:Jt}=D,{nanoid:Us}=Ms,jt=D,Zi=li,Ds=On,It=Symbol("fromOffsetCache"),Bs=!!(Is&&zs),Vi=!!(Jt&&Xt),ot=class{constructor(e,t={}){if(e===null||typeof e>"u"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]===""?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!Vi||/^\w+:\/\//.test(t.from)||Xt(t.from)?this.file=t.from:this.file=Jt(t.from)),Vi&&Bs){let i=new Ds(this.css,t);if(i.text){this.map=i;let r=i.consumer().file;!this.file&&r&&(this.file=this.mapResolve(r))}}this.file||(this.id="<input css "+Us(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,i,r={}){let o,s,l;if(t&&typeof t=="object"){let c=t,h=i;if(typeof c.offset=="number"){let f=this.fromOffset(c.offset);t=f.line,i=f.col}else t=c.line,i=c.column;if(typeof h.offset=="number"){let f=this.fromOffset(h.offset);s=f.line,l=f.col}else s=h.line,l=h.column}else if(!i){let c=this.fromOffset(t);t=c.line,i=c.col}let a=this.origin(t,i,s,l);return a?o=new Zi(e,a.endLine===void 0?a.line:{column:a.column,line:a.line},a.endLine===void 0?a.column:{column:a.endColumn,line:a.endLine},a.source,a.file,r.plugin):o=new Zi(e,s===void 0?t:{column:i,line:t},s===void 0?i:{column:l,line:s},this.css,this.file,r.plugin),o.input={column:i,endColumn:l,endLine:s,line:t,source:this.css},this.file&&(Ge&&(o.input.url=Ge(this.file).toString()),o.input.file=this.file),o}fromOffset(e){let t,i;if(this[It])i=this[It];else{let o=this.css.split(`
|
|
187
|
+
`);i=new Array(o.length);let s=0;for(let l=0,a=o.length;l<a;l++)i[l]=s,s+=o[l].length+1;this[It]=i}t=i[i.length-1];let r=0;if(e>=t)r=i.length-1;else{let o=i.length-2,s;for(;r<o;)if(s=r+(o-r>>1),e<i[s])o=s-1;else if(e>=i[s+1])r=s+1;else{r=s;break}}return{col:e-i[r]+1,line:r+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:Jt(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,i,r){if(!this.map)return!1;let o=this.map.consumer(),s=o.originalPositionFor({column:t,line:e});if(!s.source)return!1;let l;typeof i=="number"&&(l=o.originalPositionFor({column:r,line:i}));let a;Xt(s.source)?a=Ge(s.source):a=new URL(s.source,this.map.consumer().sourceRoot||Ge(this.map.mapFile));let c={column:s.column,endColumn:l&&l.column,endLine:l&&l.line,line:s.line,url:a.toString()};if(a.protocol==="file:")if(Gi)c.file=Gi(a);else throw new Error("file: protocol is not available in this PostCSS build");let h=o.sourceContentFor(s.source);return h&&(c.source=h),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 mt=ot;ot.default=ot;jt&&jt.registerInput&&jt.registerInput(ot);let{SourceMapConsumer:kn,SourceMapGenerator:it}=D,{dirname:nt,relative:Rn,resolve:Nn,sep:Mn}=D,{pathToFileURL:Ki}=D,Hs=mt,Fs=!!(kn&&it),Ws=!!(nt&&Nn&&Rn&&Mn),Gs=class{constructor(e,t,i,r){this.stringify=e,this.mapOpts=i.map||{},this.root=t,this.opts=i,this.css=r,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=`
|
|
188
|
+
`;this.css.includes(`\r
|
|
189
|
+
`)&&(t=`\r
|
|
190
|
+
`),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),i=e.root||nt(e.file),r;this.mapOpts.sourcesContent===!1?(r=new kn(e.text),r.sourcesContent&&(r.sourcesContent=r.sourcesContent.map(()=>null))):r=e.consumer(),this.map.applySourceMap(r,t,this.toUrl(this.path(i)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/(\n)?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),Ws&&Fs&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=it.fromSourceMap(e)}else this.map=new it({file:this.outputFile()}),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 it({file:this.outputFile()});let e=1,t=1,i="<no source>",r={generated:{column:0,line:0},original:{column:0,line:0},source:""},o,s;this.stringify(this.root,(l,a,c)=>{if(this.css+=l,a&&c!=="end"&&(r.generated.line=e,r.generated.column=t-1,a.source&&a.source.start?(r.source=this.sourcePath(a),r.original.line=a.source.start.line,r.original.column=a.source.start.column-1,this.map.addMapping(r)):(r.source=i,r.original.line=1,r.original.column=0,this.map.addMapping(r))),o=l.match(/\n/g),o?(e+=o.length,s=l.lastIndexOf(`
|
|
191
|
+
`),t=l.length-s):t+=l.length,a&&c!=="start"){let h=a.parent||{raws:{}};(!(a.type==="decl"||a.type==="atrule"&&!a.nodes)||a!==h.last||h.raws.semicolon)&&(a.source&&a.source.end?(r.source=this.sourcePath(a),r.original.line=a.source.end.line,r.original.column=a.source.end.column-1,r.generated.line=e,r.generated.column=t-2,this.map.addMapping(r)):(r.source=i,r.original.line=1,r.original.column=0,r.generated.line=e,r.generated.column=t-1,this.map.addMapping(r)))}})}isAnnotation(){return this.isInline()?!0: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 i=this.opts.to?nt(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(i=nt(Nn(i,this.mapOpts.annotation)));let r=Rn(i,e);return this.memoizedPaths.set(e,r),r}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 Hs(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 i=t.source.input.from;if(i&&!e[i]){e[i]=!0;let r=this.usesFileUrls?this.toFileUrl(i):this.toUrl(this.path(i));this.map.setSourceContent(r,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(Ki){let i=Ki(e).toString();return this.memoizedFileURLs.set(e,i),i}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;Mn==="\\"&&(e=e.replace(/\\/g,"/"));let i=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,i),i}};var Pn=Gs;let Zs=pt,Qt=class extends Zs{constructor(e){super(e),this.type="comment"}};var bt=Qt;Qt.default=Qt;let{isClean:Tn,my:Ln}=ze,jn=gt,In=bt,Vs=pt,zn,ai,ci,Un;function Dn(n){return n.map(e=>(e.nodes&&(e.nodes=Dn(e.nodes)),delete e.source,e))}function Bn(n){if(n[Tn]=!1,n.proxyOf.nodes)for(let e of n.proxyOf.nodes)Bn(e)}let q=class Hn extends Vs{append(...e){for(let t of e){let i=this.normalize(t,this.last);for(let r of i)this.proxyOf.nodes.push(r)}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(),i,r;for(;this.indexes[t]<this.proxyOf.nodes.length&&(i=this.indexes[t],r=e(this.proxyOf.nodes[i],i),r!==!1);)this.indexes[t]+=1;return delete this.indexes[t],r}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:e[t]?t==="each"||typeof t=="string"&&t.startsWith("walk")?(...i)=>e[t](...i.map(r=>typeof r=="function"?(o,s)=>r(o.toProxy(),s):r)):t==="every"||t==="some"?i=>e[t]((r,...o)=>i(r.toProxy(),...o)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(i=>i.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,i){return e[t]===i||(e[t]=i,(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 i=this.index(e),r=this.normalize(t,this.proxyOf.nodes[i]).reverse();i=this.index(e);for(let s of r)this.proxyOf.nodes.splice(i+1,0,s);let o;for(let s in this.indexes)o=this.indexes[s],i<o&&(this.indexes[s]=o+r.length);return this.markDirty(),this}insertBefore(e,t){let i=this.index(e),r=i===0?"prepend":!1,o=this.normalize(t,this.proxyOf.nodes[i],r).reverse();i=this.index(e);for(let l of o)this.proxyOf.nodes.splice(i,0,l);let s;for(let l in this.indexes)s=this.indexes[l],i<=s&&(this.indexes[l]=s+o.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=Dn(zn(e).nodes);else if(Array.isArray(e)){e=e.slice(0);for(let r of e)r.parent&&r.parent.removeChild(r,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let r of e)r.parent&&r.parent.removeChild(r,"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 jn(e)]}else if(e.selector)e=[new ai(e)];else if(e.name)e=[new ci(e)];else if(e.text)e=[new In(e)];else throw new Error("Unknown node type in node creation");return e.map(r=>(r[Ln]||Hn.rebuild(r),r=r.proxyOf,r.parent&&r.parent.removeChild(r),r[Tn]&&Bn(r),typeof r.raws.before>"u"&&t&&typeof t.raws.before<"u"&&(r.raws.before=t.raws.before.replace(/\S/g,"")),r.parent=this.proxyOf,r))}prepend(...e){e=e.reverse();for(let t of e){let i=this.normalize(t,this.first,"prepend").reverse();for(let r of i)this.proxyOf.nodes.unshift(r);for(let r in this.indexes)this.indexes[r]=this.indexes[r]+i.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 i in this.indexes)t=this.indexes[i],t>=e&&(this.indexes[i]=t-1);return this.markDirty(),this}replaceValues(e,t,i){return i||(i=t,t={}),this.walkDecls(r=>{t.props&&!t.props.includes(r.prop)||t.fast&&!r.value.includes(t.fast)||(r.value=r.value.replace(e,i))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,i)=>{let r;try{r=e(t,i)}catch(o){throw t.addToError(o)}return r!==!1&&t.walk&&(r=t.walk(e)),r})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((i,r)=>{if(i.type==="atrule"&&e.test(i.name))return t(i,r)}):this.walk((i,r)=>{if(i.type==="atrule"&&i.name===e)return t(i,r)}):(t=e,this.walk((i,r)=>{if(i.type==="atrule")return t(i,r)}))}walkComments(e){return this.walk((t,i)=>{if(t.type==="comment")return e(t,i)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((i,r)=>{if(i.type==="decl"&&e.test(i.prop))return t(i,r)}):this.walk((i,r)=>{if(i.type==="decl"&&i.prop===e)return t(i,r)}):(t=e,this.walk((i,r)=>{if(i.type==="decl")return t(i,r)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((i,r)=>{if(i.type==="rule"&&e.test(i.selector))return t(i,r)}):this.walk((i,r)=>{if(i.type==="rule"&&i.selector===e)return t(i,r)}):(t=e,this.walk((i,r)=>{if(i.type==="rule")return t(i,r)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};q.registerParse=n=>{zn=n};q.registerRule=n=>{ai=n};q.registerAtRule=n=>{ci=n};q.registerRoot=n=>{Un=n};var ae=q;q.default=q;q.rebuild=n=>{n.type==="atrule"?Object.setPrototypeOf(n,ci.prototype):n.type==="rule"?Object.setPrototypeOf(n,ai.prototype):n.type==="decl"?Object.setPrototypeOf(n,jn.prototype):n.type==="comment"?Object.setPrototypeOf(n,In.prototype):n.type==="root"&&Object.setPrototypeOf(n,Un.prototype),n[Ln]=!0,n.nodes&&n.nodes.forEach(e=>{q.rebuild(e)})};let Ks=ae,Fn,Wn,Re=class extends Ks{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new Fn(new Wn,this,e).stringify()}};Re.registerLazyResult=n=>{Fn=n};Re.registerProcessor=n=>{Wn=n};var hi=Re;Re.default=Re;let Yt=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let i=t.node.rangeBy(t);this.line=i.start.line,this.column=i.start.column,this.endLine=i.end.line,this.endColumn=i.end.column}for(let i in t)this[i]=t[i]}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=Yt;Yt.default=Yt;let qs=Gn,ei=class{constructor(e,t,i){this.processor=e,this.messages=[],this.root=t,this.opts=i,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 i=new qs(e,t);return this.messages.push(i),i}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};var ui=ei;ei.default=ei;const zt=39,qi=34,Ze=92,Xi=47,Ve=10,xe=32,Ke=12,qe=9,Xe=13,Xs=91,Js=93,Qs=40,Ys=41,eo=123,to=125,io=59,no=42,ro=58,so=64,Je=/[\t\n\f\r "#'()/;[\\\]{}]/g,Qe=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,oo=/.[\r\n"'(/\\]/,Ji=/[\da-f]/i;var lo=function(e,t={}){let i=e.css.valueOf(),r=t.ignoreErrors,o,s,l,a,c,h,f,p,_,O,N=i.length,b=0,G=[],Z=[];function ee(){return b}function z(B){throw e.error("Unclosed "+B,b)}function V(){return Z.length===0&&b>=N}function ve(B){if(Z.length)return Z.pop();if(b>=N)return;let L=B?B.ignoreUnclosed:!1;switch(o=i.charCodeAt(b),o){case Ve:case xe:case qe:case Xe:case Ke:{s=b;do s+=1,o=i.charCodeAt(s);while(o===xe||o===Ve||o===qe||o===Xe||o===Ke);O=["space",i.slice(b,s)],b=s-1;break}case Xs:case Js:case eo:case to:case ro:case io:case Ys:{let te=String.fromCharCode(o);O=[te,te,b];break}case Qs:{if(p=G.length?G.pop()[1]:"",_=i.charCodeAt(b+1),p==="url"&&_!==zt&&_!==qi&&_!==xe&&_!==Ve&&_!==qe&&_!==Ke&&_!==Xe){s=b;do{if(h=!1,s=i.indexOf(")",s+1),s===-1)if(r||L){s=b;break}else z("bracket");for(f=s;i.charCodeAt(f-1)===Ze;)f-=1,h=!h}while(h);O=["brackets",i.slice(b,s+1),b,s],b=s}else s=i.indexOf(")",b+1),a=i.slice(b,s+1),s===-1||oo.test(a)?O=["(","(",b]:(O=["brackets",a,b,s],b=s);break}case zt:case qi:{l=o===zt?"'":'"',s=b;do{if(h=!1,s=i.indexOf(l,s+1),s===-1)if(r||L){s=b+1;break}else z("string");for(f=s;i.charCodeAt(f-1)===Ze;)f-=1,h=!h}while(h);O=["string",i.slice(b,s+1),b,s],b=s;break}case so:{Je.lastIndex=b+1,Je.test(i),Je.lastIndex===0?s=i.length-1:s=Je.lastIndex-2,O=["at-word",i.slice(b,s+1),b,s],b=s;break}case Ze:{for(s=b,c=!0;i.charCodeAt(s+1)===Ze;)s+=1,c=!c;if(o=i.charCodeAt(s+1),c&&o!==Xi&&o!==xe&&o!==Ve&&o!==qe&&o!==Xe&&o!==Ke&&(s+=1,Ji.test(i.charAt(s)))){for(;Ji.test(i.charAt(s+1));)s+=1;i.charCodeAt(s+1)===xe&&(s+=1)}O=["word",i.slice(b,s+1),b,s],b=s;break}default:{o===Xi&&i.charCodeAt(b+1)===no?(s=i.indexOf("*/",b+2)+1,s===0&&(r||L?s=i.length:z("comment")),O=["comment",i.slice(b,s+1),b,s],b=s):(Qe.lastIndex=b+1,Qe.test(i),Qe.lastIndex===0?s=i.length-1:s=Qe.lastIndex-2,O=["word",i.slice(b,s+1),b,s],G.push(O),b=s);break}}return b++,O}function he(B){Z.push(B)}return{back:he,endOfFile:V,nextToken:ve,position:ee}};let Zn=ae,lt=class extends Zn{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 di=lt;lt.default=lt;Zn.registerAtRule(lt);let Vn=ae,Kn,qn,ge=class extends Vn{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,i){let r=super.normalize(e);if(t){if(i==="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 r)o.raws.before=t.raws.before}return r}removeChild(e,t){let i=this.index(e);return!t&&i===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[i].raws.before),super.removeChild(e)}toResult(e={}){return new Kn(new qn,this,e).stringify()}};ge.registerLazyResult=n=>{Kn=n};ge.registerProcessor=n=>{qn=n};var Ue=ge;ge.default=ge;Vn.registerRoot(ge);let Ne={comma(n){return Ne.split(n,[","],!0)},space(n){let e=[" ",`
|
|
192
|
+
`," "];return Ne.split(n,e)},split(n,e,t){let i=[],r="",o=!1,s=0,l=!1,a="",c=!1;for(let h of n)c?c=!1:h==="\\"?c=!0:l?h===a&&(l=!1):h==='"'||h==="'"?(l=!0,a=h):h==="("?s+=1:h===")"?s>0&&(s-=1):s===0&&e.includes(h)&&(o=!0),o?(r!==""&&i.push(r.trim()),r="",o=!1):r+=h;return(t||r!=="")&&i.push(r.trim()),i}};var Xn=Ne;Ne.default=Ne;let Jn=ae,ao=Xn,at=class extends Jn{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return ao.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,i=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(i)}};var fi=at;at.default=at;Jn.registerRule(at);let co=gt,ho=lo,uo=bt,fo=di,po=Ue,Qi=fi;const Yi={empty:!0,space:!0};function go(n){for(let e=n.length-1;e>=0;e--){let t=n[e],i=t[3]||t[2];if(i)return i}}let mo=class{constructor(e){this.input=e,this.root=new po,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 fo;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let i,r,o,s=!1,l=!1,a=[],c=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),i=e[0],i==="("||i==="["?c.push(i==="("?")":"]"):i==="{"&&c.length>0?c.push("}"):i===c[c.length-1]&&c.pop(),c.length===0)if(i===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(i==="{"){l=!0;break}else if(i==="}"){if(a.length>0){for(o=a.length-1,r=a[o];r&&r[0]==="space";)r=a[--o];r&&(t.source.end=this.getPosition(r[3]||r[2]),t.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){s=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(t.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(t,"params",a),s&&(e=a[a.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=""),l&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let i=0,r;for(let o=t-1;o>=0&&(r=e[o],!(r[0]!=="space"&&(i+=1,i===2)));o--);throw this.input.error("Missed semicolon",r[0]==="word"?r[3]+1:r[2])}colon(e){let t=0,i,r,o;for(let[s,l]of e.entries()){if(i=l,r=i[0],r==="("&&(t+=1),r===")"&&(t-=1),t===0&&r===":")if(!o)this.doubleColon(i);else{if(o[0]==="word"&&o[1]==="progid")continue;return s}o=i}return!1}comment(e){let t=new uo;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let i=e[1].slice(2,-2);if(/^\s*$/.test(i))t.text="",t.raws.left=i,t.raws.right="";else{let r=i.match(/^(\s*)([^]*\S)(\s*)$/);t.text=r[2],t.raws.left=r[1],t.raws.right=r[3]}}createTokenizer(){this.tokenizer=ho(this.input)}decl(e,t){let i=new co;this.init(i,e[0][2]);let r=e[e.length-1];for(r[0]===";"&&(this.semicolon=!0,e.pop()),i.source.end=this.getPosition(r[3]||r[2]||go(e)),i.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),i.raws.before+=e.shift()[1];for(i.source.start=this.getPosition(e[0][2]),i.prop="";e.length;){let c=e[0][0];if(c===":"||c==="space"||c==="comment")break;i.prop+=e.shift()[1]}i.raws.between="";let o;for(;e.length;)if(o=e.shift(),o[0]===":"){i.raws.between+=o[1];break}else o[0]==="word"&&/\w/.test(o[1])&&this.unknownWord([o]),i.raws.between+=o[1];(i.prop[0]==="_"||i.prop[0]==="*")&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));let s=[],l;for(;e.length&&(l=e[0][0],!(l!=="space"&&l!=="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"){i.important=!0;let h=this.stringFrom(e,c);h=this.spacesFromEnd(e)+h,h!==" !important"&&(i.raws.important=h);break}else if(o[1].toLowerCase()==="important"){let h=e.slice(0),f="";for(let p=c;p>0;p--){let _=h[p][0];if(f.trim().indexOf("!")===0&&_!=="space")break;f=h.pop()[1]+f}f.trim().indexOf("!")===0&&(i.important=!0,i.raws.important=f,e=h)}if(o[0]!=="space"&&o[0]!=="comment")break}e.some(c=>c[0]!=="space"&&c[0]!=="comment")&&(i.raws.between+=s.map(c=>c[1]).join(""),s=[]),this.raw(i,"value",s.concat(e),t),i.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 Qi;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,i=null,r=!1,o=null,s=[],l=e[1].startsWith("--"),a=[],c=e;for(;c;){if(i=c[0],a.push(c),i==="("||i==="[")o||(o=c),s.push(i==="("?")":"]");else if(l&&r&&i==="{")o||(o=c),s.push("}");else if(s.length===0)if(i===";")if(r){this.decl(a,l);return}else break;else if(i==="{"){this.rule(a);return}else if(i==="}"){this.tokenizer.back(a.pop()),t=!0;break}else i===":"&&(r=!0);else i===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&&r){if(!l)for(;a.length&&(c=a[a.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(a.pop());this.decl(a,l)}else this.unknownWord(a)}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,i,r){let o,s,l=i.length,a="",c=!0,h,f;for(let p=0;p<l;p+=1)o=i[p],s=o[0],s==="space"&&p===l-1&&!r?c=!1:s==="comment"?(f=i[p-1]?i[p-1][0]:"empty",h=i[p+1]?i[p+1][0]:"empty",!Yi[f]&&!Yi[h]?a.slice(-1)===","?c=!1:a+=o[1]:c=!1):a+=o[1];if(!c){let p=i.reduce((_,O)=>_+O[1],"");e.raws[t]={raw:p,value:a}}e[t]=a}rule(e){e.pop();let t=new Qi;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,i="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)i=e.pop()[1]+i;return i}spacesAndCommentsFromStart(e){let t,i="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)i+=e.shift()[1];return i}spacesFromEnd(e){let t,i="";for(;e.length&&(t=e[e.length-1][0],t==="space");)i=e.pop()[1]+i;return i}stringFrom(e,t){let i="";for(let r=t;r<e.length;r++)i+=e[r][1];return e.splice(t,e.length-t),i}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 bo=mo;let yo=ae,wo=bo,vo=mt;function ct(n,e){let t=new vo(n,e),i=new wo(t);try{i.parse()}catch(r){throw r}return i.root}var pi=ct;ct.default=ct;yo.registerParse(ct);let{isClean:W,my:_o}=ze,xo=Pn,Eo=ft,So=ae,Ao=hi,en=ui,$o=pi,Co=Ue;const Oo={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},ko={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},Ro={Once:!0,postcssPlugin:!0,prepare:!0},me=0;function Ee(n){return typeof n=="object"&&typeof n.then=="function"}function Qn(n){let e=!1,t=Oo[n.type];return n.type==="decl"?e=n.prop.toLowerCase():n.type==="atrule"&&(e=n.name.toLowerCase()),e&&n.append?[t,t+"-"+e,me,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:n.append?[t,me,t+"Exit"]:[t,t+"Exit"]}function tn(n){let e;return n.type==="document"?e=["Document",me,"DocumentExit"]:n.type==="root"?e=["Root",me,"RootExit"]:e=Qn(n),{eventIndex:0,events:e,iterator:0,node:n,visitorIndex:0,visitors:[]}}function ti(n){return n[W]=!1,n.nodes&&n.nodes.forEach(e=>ti(e)),n}let ii={},be=class Yn{constructor(e,t,i){this.stringified=!1,this.processed=!1;let r;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))r=ti(t);else if(t instanceof Yn||t instanceof en)r=ti(t.root),t.map&&(typeof i.map>"u"&&(i.map={}),i.map.inline||(i.map.inline=!1),i.map.prev=t.map);else{let o=$o;i.syntax&&(o=i.syntax.parse),i.parser&&(o=i.parser),o.parse&&(o=o.parse);try{r=o(t,i)}catch(s){this.processed=!0,this.error=s}r&&!r[_o]&&So.rebuild(r)}this.result=new en(e,r,i),this.helpers={...ii,postcss:ii,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 i=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=i.postcssPlugin,e.setMessage()):i.postcssVersion}catch(r){console&&console.error&&console.error(r)}return e}prepareVisitors(){this.listeners={};let e=(t,i,r)=>{this.listeners[i]||(this.listeners[i]=[]),this.listeners[i].push([t,r])};for(let t of this.plugins)if(typeof t=="object")for(let i in t){if(!ko[i]&&/^[A-Z]/.test(i))throw new Error(`Unknown event ${i} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Ro[i])if(typeof t[i]=="object")for(let r in t[i])r==="*"?e(t,i,t[i][r]):e(t,i+"-"+r.toLowerCase(),t[i][r]);else typeof t[i]=="function"&&e(t,i,t[i])}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],i=this.runOnRoot(t);if(Ee(i))try{await i}catch(r){throw this.handleError(r)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[W];){e[W]=!0;let t=[tn(e)];for(;t.length>0;){let i=this.visitTick(t);if(Ee(i))try{await i}catch(r){let o=t[t.length-1].node;throw this.handleError(r,o)}}}if(this.listeners.OnceExit)for(let[t,i]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let r=e.nodes.map(o=>i(o,this.helpers));await Promise.all(r)}else await i(e,this.helpers)}catch(r){throw this.handleError(r)}}}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(i=>e.Once(i,this.helpers));return Ee(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=Eo;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let r=new xo(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let t=this.runOnRoot(e);if(Ee(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[W];)e[W]=!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[i,r]of e){this.result.lastPlugin=i;let o;try{o=r(t,this.helpers)}catch(s){throw this.handleError(s,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(Ee(o))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:i,visitors:r}=t;if(i.type!=="root"&&i.type!=="document"&&!i.parent){e.pop();return}if(r.length>0&&t.visitorIndex<r.length){let[s,l]=r[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===r.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=s;try{return l(i.toProxy(),this.helpers)}catch(a){throw this.handleError(a,i)}}if(t.iterator!==0){let s=t.iterator,l;for(;l=i.nodes[i.indexes[s]];)if(i.indexes[s]+=1,!l[W]){l[W]=!0,e.push(tn(l));return}t.iterator=0,delete i.indexes[s]}let o=t.events;for(;t.eventIndex<o.length;){let s=o[t.eventIndex];if(t.eventIndex+=1,s===me){i.nodes&&i.nodes.length&&(i[W]=!0,t.iterator=i.getIterator());return}else if(this.listeners[s]){t.visitors=this.listeners[s];return}}e.pop()}walkSync(e){e[W]=!0;let t=Qn(e);for(let i of t)if(i===me)e.nodes&&e.each(r=>{r[W]||this.walkSync(r)});else{let r=this.listeners[i];if(r&&this.visitSync(r,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"}};be.registerPostcss=n=>{ii=n};var er=be;be.default=be;Co.registerLazyResult(be);Ao.registerLazyResult(be);let No=Pn,Mo=ft,Po=pi;const To=ui;let ni=class{constructor(e,t,i){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=i,this._map=void 0;let r,o=Mo;this.result=new To(this._processor,r,this._opts),this.result.css=t;let s=this;Object.defineProperty(this.result,"root",{get(){return s.root}});let l=new No(o,r,this._opts,t);if(l.isMap()){let[a,c]=l.generate();a&&(this.result.css=a),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=Po;try{e=t(this._css,this._opts)}catch(i){this.error=i}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};var Lo=ni;ni.default=ni;let jo=Lo,Io=er,zo=hi,Uo=Ue,Me=class{constructor(e=[]){this.version="8.4.32",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let i of e)if(i.postcss===!0?i=i():i.postcss&&(i=i.postcss),typeof i=="object"&&Array.isArray(i.plugins))t=t.concat(i.plugins);else if(typeof i=="object"&&i.postcssPlugin)t.push(i);else if(typeof i=="function")t.push(i);else if(!(typeof i=="object"&&(i.parse||i.stringify)))throw new Error(i+" 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 jo(this,e,t):new Io(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var Do=Me;Me.default=Me;Uo.registerProcessor(Me);zo.registerProcessor(Me);let Bo=gt,Ho=On,Fo=bt,Wo=di,Go=mt,Zo=Ue,Vo=fi;function Pe(n,e){if(Array.isArray(n))return n.map(r=>Pe(r));let{inputs:t,...i}=n;if(t){e=[];for(let r of t){let o={...r,__proto__:Go.prototype};o.map&&(o.map={...o.map,__proto__:Ho.prototype}),e.push(o)}}if(i.nodes&&(i.nodes=n.nodes.map(r=>Pe(r,e))),i.source){let{inputId:r,...o}=i.source;i.source=o,r!=null&&(i.source.input=e[r])}if(i.type==="root")return new Zo(i);if(i.type==="decl")return new Bo(i);if(i.type==="rule")return new Vo(i);if(i.type==="comment")return new Fo(i);if(i.type==="atrule")return new Wo(i);throw new Error("Unknown node type: "+n.type)}var Ko=Pe;Pe.default=Pe;var nn={};let qo=li,tr=gt,Xo=er,Jo=ae,gi=Do,Qo=ft,Yo=Ko,ir=hi,el=Gn,nr=bt,rr=di,tl=ui,il=mt,nl=pi,rl=Xn,sr=fi,or=Ue,sl=pt;function E(...n){return n.length===1&&Array.isArray(n[0])&&(n=n[0]),new gi(n)}E.plugin=function(e,t){let i=!1;function r(...s){console&&console.warn&&!i&&(i=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
|
|
193
|
+
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),nn.LANG&&nn.LANG.startsWith("cn")&&console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南:
|
|
194
|
+
https://www.w3ctech.com/topic/2226`));let l=t(...s);return l.postcssPlugin=e,l.postcssVersion=new gi().version,l}let o;return Object.defineProperty(r,"postcss",{get(){return o||(o=r()),o}}),r.process=function(s,l,a){return E([r(a)]).process(s,l)},r};E.stringify=Qo;E.parse=nl;E.fromJSON=Yo;E.list=rl;E.comment=n=>new nr(n);E.atRule=n=>new rr(n);E.decl=n=>new tr(n);E.rule=n=>new sr(n);E.root=n=>new or(n);E.document=n=>new ir(n);E.CssSyntaxError=qo;E.Declaration=tr;E.Container=Jo;E.Processor=gi;E.Document=ir;E.Comment=nr;E.Warning=el;E.AtRule=rr;E.Result=tl;E.Input=il;E.Rule=sr;E.Root=or;E.Node=sl;Xo.registerPostcss(E);var ol=E;E.default=E;const C=Sn(ol);C.stringify;C.fromJSON;C.plugin;C.parse;C.list;C.document;C.comment;C.atRule;C.rule;C.decl;C.root;C.CssSyntaxError;C.Declaration;C.Container;C.Processor;C.Document;C.Comment;C.Warning;C.AtRule;C.Result;C.Input;C.Rule;C.Root;C.Node;var ll=function(e){const t=e.prefix,i=/\s+$/.test(t)?t:`${t} `,r=e.ignoreFiles?[].concat(e.ignoreFiles):[],o=e.includeFiles?[].concat(e.includeFiles):[];return function(s){r.length&&s.source.input.file&&rn(s.source.input.file,r)||o.length&&s.source.input.file&&!rn(s.source.input.file,o)||s.walkRules(l=>{const a=["keyframes","-webkit-keyframes","-moz-keyframes","-o-keyframes"];l.parent&&a.includes(l.parent.name)||(l.selectors=l.selectors.map(c=>e.exclude&&al(c,e.exclude)?c:e.transform?e.transform(t,c,i+c,s.source.input.file,l):i+c))})}};function rn(n,e){return e.some(t=>t instanceof RegExp?t.test(n):n.includes(t))}function al(n,e){return e.some(t=>t instanceof RegExp?t.test(n):n===t)}const cl=Sn(ll),hl="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}",ul="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 dl(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function lr(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],i=typeof t;(i==="object"||i==="function")&&!Object.isFrozen(t)&&lr(t)}),n}class sn{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function ar(n){return n.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function Q(n,...e){const t=Object.create(null);for(const i in n)t[i]=n[i];return e.forEach(function(i){for(const r in i)t[r]=i[r]}),t}const fl="</span>",on=n=>!!n.scope,pl=(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((i,r)=>`${i}${"_".repeat(r+1)}`)].join(" ")}return`${e}${n}`};class gl{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=ar(e)}openNode(e){if(!on(e))return;const t=pl(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){on(e)&&(this.buffer+=fl)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}const ln=(n={})=>{const e={children:[]};return Object.assign(e,n),e};class mi{constructor(){this.rootNode=ln(),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=ln({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(i=>this._walk(e,i)),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=>{mi._collapse(t)}))}}class ml extends mi{constructor(e){super(),this.options=e}addText(e){e!==""&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,t){const i=e.root;t&&(i.scope=`language:${t}`),this.add(i)}toHTML(){return new gl(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function Te(n){return n?typeof n=="string"?n:n.source:null}function cr(n){return ce("(?=",n,")")}function bl(n){return ce("(?:",n,")*")}function yl(n){return ce("(?:",n,")?")}function ce(...n){return n.map(e=>Te(e)).join("")}function wl(n){const e=n[n.length-1];return typeof e=="object"&&e.constructor===Object?(n.splice(n.length-1,1),e):{}}function bi(...n){return"("+(wl(n).capture?"":"?:")+n.map(e=>Te(e)).join("|")+")"}function hr(n){return new RegExp(n.toString()+"|").exec("").length-1}function vl(n,e){const t=n&&n.exec(e);return t&&t.index===0}const _l=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function yi(n,{joinWith:e}){let t=0;return n.map(i=>{t+=1;const r=t;let o=Te(i),s="";for(;o.length>0;){const l=_l.exec(o);if(!l){s+=o;break}s+=o.substring(0,l.index),o=o.substring(l.index+l[0].length),l[0][0]==="\\"&&l[1]?s+="\\"+String(Number(l[1])+r):(s+=l[0],l[0]==="("&&t++)}return s}).map(i=>`(${i})`).join(e)}const xl=/\b\B/,ur="[a-zA-Z]\\w*",wi="[a-zA-Z_]\\w*",dr="\\b\\d+(\\.\\d+)?",fr="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",pr="\\b(0b[01]+)",El="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",Sl=(n={})=>{const e=/^#![ ]*\//;return n.binary&&(n.begin=ce(e,/.*\b/,n.binary,/\b.*/)),Q({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(t,i)=>{t.index!==0&&i.ignoreMatch()}},n)},Le={begin:"\\\\[\\s\\S]",relevance:0},Al={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Le]},$l={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Le]},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/},yt=function(n,e,t={}){const i=Q({scope:"comment",begin:n,end:e,contains:[]},t);i.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 r=bi("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 i.contains.push({begin:ce(/[ ]+/,"(",r,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),i},Ol=yt("//","$"),kl=yt("/\\*","\\*/"),Rl=yt("#","$"),Nl={scope:"number",begin:dr,relevance:0},Ml={scope:"number",begin:fr,relevance:0},Pl={scope:"number",begin:pr,relevance:0},Tl={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Le,{begin:/\[/,end:/\]/,relevance:0,contains:[Le]}]},Ll={scope:"title",begin:ur,relevance:0},jl={scope:"title",begin:wi,relevance:0},Il={begin:"\\.\\s*"+wi,relevance:0},zl=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 Ye=Object.freeze({__proto__:null,APOS_STRING_MODE:Al,BACKSLASH_ESCAPE:Le,BINARY_NUMBER_MODE:Pl,BINARY_NUMBER_RE:pr,COMMENT:yt,C_BLOCK_COMMENT_MODE:kl,C_LINE_COMMENT_MODE:Ol,C_NUMBER_MODE:Ml,C_NUMBER_RE:fr,END_SAME_AS_BEGIN:zl,HASH_COMMENT_MODE:Rl,IDENT_RE:ur,MATCH_NOTHING_RE:xl,METHOD_GUARD:Il,NUMBER_MODE:Nl,NUMBER_RE:dr,PHRASAL_WORDS_MODE:Cl,QUOTE_STRING_MODE:$l,REGEXP_MODE:Tl,RE_STARTERS_RE:El,SHEBANG:Sl,TITLE_MODE:Ll,UNDERSCORE_IDENT_RE:wi,UNDERSCORE_TITLE_MODE:jl});function Ul(n,e){n.input[n.index-1]==="."&&e.ignoreMatch()}function Dl(n,e){n.className!==void 0&&(n.scope=n.className,delete n.className)}function Bl(n,e){e&&n.beginKeywords&&(n.begin="\\b("+n.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",n.__beforeBegin=Ul,n.keywords=n.keywords||n.beginKeywords,delete n.beginKeywords,n.relevance===void 0&&(n.relevance=0))}function Hl(n,e){Array.isArray(n.illegal)&&(n.illegal=bi(...n.illegal))}function Fl(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 Wl(n,e){n.relevance===void 0&&(n.relevance=1)}const Gl=(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(i=>{delete n[i]}),n.keywords=t.keywords,n.begin=ce(t.beforeMatch,cr(t.begin)),n.starts={relevance:0,contains:[Object.assign(t,{endsParent:!0})]},n.relevance=0,delete t.beforeMatch},Zl=["of","and","for","in","not","or","if","then","parent","list","value"],Vl="keyword";function gr(n,e,t=Vl){const i=Object.create(null);return typeof n=="string"?r(t,n.split(" ")):Array.isArray(n)?r(t,n):Object.keys(n).forEach(function(o){Object.assign(i,gr(n[o],e,o))}),i;function r(o,s){e&&(s=s.map(l=>l.toLowerCase())),s.forEach(function(l){const a=l.split("|");i[a[0]]=[o,Kl(a[0],a[1])]})}}function Kl(n,e){return e?Number(e):ql(n)?0:1}function ql(n){return Zl.includes(n.toLowerCase())}const an={},oe=n=>{console.error(n)},cn=(n,...e)=>{console.log(`WARN: ${n}`,...e)},ue=(n,e)=>{an[`${n}/${e}`]||(console.log(`Deprecated as of ${n}. ${e}`),an[`${n}/${e}`]=!0)},ht=new Error;function mr(n,e,{key:t}){let i=0;const r=n[t],o={},s={};for(let l=1;l<=e.length;l++)s[l+i]=r[l],o[l+i]=!0,i+=hr(e[l-1]);n[t]=s,n[t]._emit=o,n[t]._multi=!0}function Xl(n){if(Array.isArray(n.begin)){if(n.skip||n.excludeBegin||n.returnBegin)throw oe("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),ht;if(typeof n.beginScope!="object"||n.beginScope===null)throw oe("beginScope must be object"),ht;mr(n,n.begin,{key:"beginScope"}),n.begin=yi(n.begin,{joinWith:""})}}function Jl(n){if(Array.isArray(n.end)){if(n.skip||n.excludeEnd||n.returnEnd)throw oe("skip, excludeEnd, returnEnd not compatible with endScope: {}"),ht;if(typeof n.endScope!="object"||n.endScope===null)throw oe("endScope must be object"),ht;mr(n,n.end,{key:"endScope"}),n.end=yi(n.end,{joinWith:""})}}function Ql(n){n.scope&&typeof n.scope=="object"&&n.scope!==null&&(n.beginScope=n.scope,delete n.scope)}function Yl(n){Ql(n),typeof n.beginScope=="string"&&(n.beginScope={_wrap:n.beginScope}),typeof n.endScope=="string"&&(n.endScope={_wrap:n.endScope}),Xl(n),Jl(n)}function ea(n){function e(s,l){return new RegExp(Te(s),"m"+(n.case_insensitive?"i":"")+(n.unicodeRegex?"u":"")+(l?"g":""))}class t{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(l,a){a.position=this.position++,this.matchIndexes[this.matchAt]=a,this.regexes.push([a,l]),this.matchAt+=hr(l)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const l=this.regexes.map(a=>a[1]);this.matcherRe=e(yi(l,{joinWith:"|"}),!0),this.lastIndex=0}exec(l){this.matcherRe.lastIndex=this.lastIndex;const a=this.matcherRe.exec(l);if(!a)return null;const c=a.findIndex((f,p)=>p>0&&f!==void 0),h=this.matchIndexes[c];return a.splice(0,c),Object.assign(a,h)}}class i{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(l){if(this.multiRegexes[l])return this.multiRegexes[l];const a=new t;return this.rules.slice(l).forEach(([c,h])=>a.addRule(c,h)),a.compile(),this.multiRegexes[l]=a,a}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(l,a){this.rules.push([l,a]),a.type==="begin"&&this.count++}exec(l){const a=this.getMatcher(this.regexIndex);a.lastIndex=this.lastIndex;let c=a.exec(l);if(this.resumingScanAtSamePosition()&&!(c&&c.index===this.lastIndex)){const h=this.getMatcher(0);h.lastIndex=this.lastIndex+1,c=h.exec(l)}return c&&(this.regexIndex+=c.position+1,this.regexIndex===this.count&&this.considerAll()),c}}function r(s){const l=new i;return s.contains.forEach(a=>l.addRule(a.begin,{rule:a,type:"begin"})),s.terminatorEnd&&l.addRule(s.terminatorEnd,{type:"end"}),s.illegal&&l.addRule(s.illegal,{type:"illegal"}),l}function o(s,l){const a=s;if(s.isCompiled)return a;[Dl,Fl,Yl,Gl].forEach(h=>h(s,l)),n.compilerExtensions.forEach(h=>h(s,l)),s.__beforeBegin=null,[Bl,Hl,Wl].forEach(h=>h(s,l)),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=gr(s.keywords,n.case_insensitive)),a.keywordPatternRe=e(c,!0),l&&(s.begin||(s.begin=/\B|\b/),a.beginRe=e(a.begin),!s.end&&!s.endsWithParent&&(s.end=/\B|\b/),s.end&&(a.endRe=e(a.end)),a.terminatorEnd=Te(a.end)||"",s.endsWithParent&&l.terminatorEnd&&(a.terminatorEnd+=(s.end?"|":"")+l.terminatorEnd)),s.illegal&&(a.illegalRe=e(s.illegal)),s.contains||(s.contains=[]),s.contains=[].concat(...s.contains.map(function(h){return ta(h==="self"?s:h)})),s.contains.forEach(function(h){o(h,a)}),s.starts&&o(s.starts,l),a.matcher=r(a),a}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=Q(n.classNameAliases||{}),o(n)}function br(n){return n?n.endsWithParent||br(n.starts):!1}function ta(n){return n.variants&&!n.cachedVariants&&(n.cachedVariants=n.variants.map(function(e){return Q(n,{variants:null},e)})),n.cachedVariants?n.cachedVariants:br(n)?Q(n,{starts:n.starts?Q(n.starts):null}):Object.isFrozen(n)?Q(n):n}var ia="11.9.0";class na extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}const Ut=ar,hn=Q,un=Symbol("nomatch"),ra=7,yr=function(n){const e=Object.create(null),t=Object.create(null),i=[];let r=!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 l={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:ml};function a(u){return l.noHighlightRe.test(u)}function c(u){let g=u.className+" ";g+=u.parentNode?u.parentNode.className:"";const w=l.languageDetectRe.exec(g);if(w){const x=L(w[1]);return x||(cn(o.replace("{}",w[1])),cn("Falling back to no-highlight mode for this block.",u)),x?w[1]:"no-highlight"}return g.split(/\s+/).find(x=>a(x)||L(x))}function h(u,g,w){let x="",k="";typeof g=="object"?(x=u,w=g.ignoreIllegals,k=g.language):(ue("10.7.0","highlight(lang, code, ...args) has been deprecated."),ue("10.7.0",`Please use highlight(code, options) instead.
|
|
195
|
+
https://github.com/highlightjs/highlight.js/issues/2277`),k=u,x=g),w===void 0&&(w=!0);const j={code:x,language:k};ie("before:highlight",j);const X=j.result?j.result:f(j.language,j.code,w);return X.code=j.code,ie("after:highlight",X),X}function f(u,g,w,x){const k=Object.create(null);function j(d,m){return d.keywords[m]}function X(){if(!y.keywords){M.addText(A);return}let d=0;y.keywordPatternRe.lastIndex=0;let m=y.keywordPatternRe.exec(A),v="";for(;m;){v+=A.substring(d,m.index);const S=F.case_insensitive?m[0].toLowerCase():m[0],T=j(y,S);if(T){const[K,Mr]=T;if(M.addText(v),v="",k[S]=(k[S]||0)+1,k[S]<=ra&&(Fe+=Mr),K.startsWith("_"))v+=m[0];else{const Pr=F.classNameAliases[K]||K;H(m[0],Pr)}}else v+=m[0];d=y.keywordPatternRe.lastIndex,m=y.keywordPatternRe.exec(A)}v+=A.substring(d),M.addText(v)}function Be(){if(A==="")return;let d=null;if(typeof y.subLanguage=="string"){if(!e[y.subLanguage]){M.addText(A);return}d=f(y.subLanguage,A,!0,$i[y.subLanguage]),$i[y.subLanguage]=d._top}else d=_(A,y.subLanguage.length?y.subLanguage:null);y.relevance>0&&(Fe+=d.relevance),M.__addSublanguage(d._emitter,d.language)}function I(){y.subLanguage!=null?Be():X(),A=""}function H(d,m){d!==""&&(M.startScope(m),M.addText(d),M.endScope())}function xi(d,m){let v=1;const S=m.length-1;for(;v<=S;){if(!d._emit[v]){v++;continue}const T=F.classNameAliases[d[v]]||d[v],K=m[v];T?H(K,T):(A=K,X(),A=""),v++}}function Ei(d,m){return d.scope&&typeof d.scope=="string"&&M.openNode(F.classNameAliases[d.scope]||d.scope),d.beginScope&&(d.beginScope._wrap?(H(A,F.classNameAliases[d.beginScope._wrap]||d.beginScope._wrap),A=""):d.beginScope._multi&&(xi(d.beginScope,m),A="")),y=Object.create(d,{parent:{value:y}}),y}function Si(d,m,v){let S=vl(d.endRe,v);if(S){if(d["on:end"]){const T=new sn(d);d["on:end"](m,T),T.isMatchIgnored&&(S=!1)}if(S){for(;d.endsParent&&d.parent;)d=d.parent;return d}}if(d.endsWithParent)return Si(d.parent,m,v)}function Cr(d){return y.matcher.regexIndex===0?(A+=d[0],1):($t=!0,0)}function Or(d){const m=d[0],v=d.rule,S=new sn(v),T=[v.__beforeBegin,v["on:begin"]];for(const K of T)if(K&&(K(d,S),S.isMatchIgnored))return Cr(m);return v.skip?A+=m:(v.excludeBegin&&(A+=m),I(),!v.returnBegin&&!v.excludeBegin&&(A=m)),Ei(v,d),v.returnBegin?0:m.length}function kr(d){const m=d[0],v=g.substring(d.index),S=Si(y,d,v);if(!S)return un;const T=y;y.endScope&&y.endScope._wrap?(I(),H(m,y.endScope._wrap)):y.endScope&&y.endScope._multi?(I(),xi(y.endScope,d)):T.skip?A+=m:(T.returnEnd||T.excludeEnd||(A+=m),I(),T.excludeEnd&&(A=m));do y.scope&&M.closeNode(),!y.skip&&!y.subLanguage&&(Fe+=y.relevance),y=y.parent;while(y!==S.parent);return S.starts&&Ei(S.starts,d),T.returnEnd?0:m.length}function Rr(){const d=[];for(let m=y;m!==F;m=m.parent)m.scope&&d.unshift(m.scope);d.forEach(m=>M.openNode(m))}let He={};function Ai(d,m){const v=m&&m[0];if(A+=d,v==null)return I(),0;if(He.type==="begin"&&m.type==="end"&&He.index===m.index&&v===""){if(A+=g.slice(m.index,m.index+1),!r){const S=new Error(`0 width match regex (${u})`);throw S.languageName=u,S.badRule=He.rule,S}return 1}if(He=m,m.type==="begin")return Or(m);if(m.type==="illegal"&&!w){const S=new Error('Illegal lexeme "'+v+'" for mode "'+(y.scope||"<unnamed>")+'"');throw S.mode=y,S}else if(m.type==="end"){const S=kr(m);if(S!==un)return S}if(m.type==="illegal"&&v==="")return 1;if(At>1e5&&At>m.index*3)throw new Error("potential infinite loop, way more iterations than matches");return A+=v,v.length}const F=L(u);if(!F)throw oe(o.replace("{}",u)),new Error('Unknown language: "'+u+'"');const Nr=ea(F);let St="",y=x||Nr;const $i={},M=new l.__emitter(l);Rr();let A="",Fe=0,ne=0,At=0,$t=!1;try{if(F.__emitTokens)F.__emitTokens(g,M);else{for(y.matcher.considerAll();;){At++,$t?$t=!1:y.matcher.considerAll(),y.matcher.lastIndex=ne;const d=y.matcher.exec(g);if(!d)break;const m=g.substring(ne,d.index),v=Ai(m,d);ne=d.index+v}Ai(g.substring(ne))}return M.finalize(),St=M.toHTML(),{language:u,value:St,relevance:Fe,illegal:!1,_emitter:M,_top:y}}catch(d){if(d.message&&d.message.includes("Illegal"))return{language:u,value:Ut(g),illegal:!0,relevance:0,_illegalBy:{message:d.message,index:ne,context:g.slice(ne-100,ne+100),mode:d.mode,resultSoFar:St},_emitter:M};if(r)return{language:u,value:Ut(g),illegal:!1,relevance:0,errorRaised:d,_emitter:M,_top:y};throw d}}function p(u){const g={value:Ut(u),illegal:!1,relevance:0,_top:s,_emitter:new l.__emitter(l)};return g._emitter.addText(u),g}function _(u,g){g=g||l.languages||Object.keys(e);const w=p(u),x=g.filter(L).filter(De).map(I=>f(I,u,!1));x.unshift(w);const k=x.sort((I,H)=>{if(I.relevance!==H.relevance)return H.relevance-I.relevance;if(I.language&&H.language){if(L(I.language).supersetOf===H.language)return 1;if(L(H.language).supersetOf===I.language)return-1}return 0}),[j,X]=k,Be=j;return Be.secondBest=X,Be}function O(u,g,w){const x=g&&t[g]||w;u.classList.add("hljs"),u.classList.add(`language-${x}`)}function N(u){let g=null;const w=c(u);if(a(w))return;if(ie("before:highlightElement",{el:u,language:w}),u.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",u);return}if(u.children.length>0&&(l.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(u)),l.throwUnescapedHTML))throw new na("One of your code blocks includes unescaped HTML.",u.innerHTML);g=u;const x=g.textContent,k=w?h(x,{language:w,ignoreIllegals:!0}):_(x);u.innerHTML=k.value,u.dataset.highlighted="yes",O(u,w,k.language),u.result={language:k.language,re:k.relevance,relevance:k.relevance},k.secondBest&&(u.secondBest={language:k.secondBest.language,relevance:k.secondBest.relevance}),ie("after:highlightElement",{el:u,result:k,text:x})}function b(u){l=hn(l,u)}const G=()=>{z(),ue("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function Z(){z(),ue("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let ee=!1;function z(){if(document.readyState==="loading"){ee=!0;return}document.querySelectorAll(l.cssSelector).forEach(N)}function V(){ee&&z()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",V,!1);function ve(u,g){let w=null;try{w=g(n)}catch(x){if(oe("Language definition for '{}' could not be registered.".replace("{}",u)),r)oe(x);else throw x;w=s}w.name||(w.name=u),e[u]=w,w.rawDefinition=g.bind(null,n),w.aliases&&te(w.aliases,{languageName:u})}function he(u){delete e[u];for(const g of Object.keys(t))t[g]===u&&delete t[g]}function B(){return Object.keys(e)}function L(u){return u=(u||"").toLowerCase(),e[u]||e[t[u]]}function te(u,{languageName:g}){typeof u=="string"&&(u=[u]),u.forEach(w=>{t[w.toLowerCase()]=g})}function De(u){const g=L(u);return g&&!g.disableAutodetect}function vt(u){u["before:highlightBlock"]&&!u["before:highlightElement"]&&(u["before:highlightElement"]=g=>{u["before:highlightBlock"](Object.assign({block:g.el},g))}),u["after:highlightBlock"]&&!u["after:highlightElement"]&&(u["after:highlightElement"]=g=>{u["after:highlightBlock"](Object.assign({block:g.el},g))})}function _t(u){vt(u),i.push(u)}function xt(u){const g=i.indexOf(u);g!==-1&&i.splice(g,1)}function ie(u,g){const w=u;i.forEach(function(x){x[w]&&x[w](g)})}function Et(u){return ue("10.7.0","highlightBlock will be removed entirely in v12.0"),ue("10.7.0","Please use highlightElement now."),N(u)}Object.assign(n,{highlight:h,highlightAuto:_,highlightAll:z,highlightElement:N,highlightBlock:Et,configure:b,initHighlighting:G,initHighlightingOnLoad:Z,registerLanguage:ve,unregisterLanguage:he,listLanguages:B,getLanguage:L,registerAliases:te,autoDetection:De,inherit:hn,addPlugin:_t,removePlugin:xt}),n.debugMode=function(){r=!1},n.safeMode=function(){r=!0},n.versionString=ia,n.regex={concat:ce,lookahead:cr,either:bi,optional:yl,anyNumberOfTimes:bl};for(const u in Ye)typeof Ye[u]=="object"&&lr(Ye[u]);return Object.assign(n,Ye),n},ye=yr({});ye.newInstance=()=>yr({});var sa=ye;ye.HighlightJS=ye;ye.default=ye;const wt=dl(sa),ut="[A-Za-z$_][0-9A-Za-z$_]*",wr=["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"],vr=["true","false","null","undefined","NaN","Infinity"],_r=["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"],xr=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Er=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Sr=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Ar=[].concat(Er,_r,xr);function oa(n){const e=n.regex,t=(u,{after:g})=>{const w="</"+u[0].slice(1);return u.input.indexOf(w,g)!==-1},i=ut,r={begin:"<>",end:"</>"},o=/<[A-Za-z0-9\\._:-]+\s*\/>/,s={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(u,g)=>{const w=u[0].length+u.index,x=u.input[w];if(x==="<"||x===","){g.ignoreMatch();return}x===">"&&(t(u,{after:w})||g.ignoreMatch());let k;const j=u.input.substring(w);if(k=j.match(/^\s*=/)){g.ignoreMatch();return}if((k=j.match(/^\s+extends\s+/))&&k.index===0){g.ignoreMatch();return}}},l={$pattern:ut,keyword:wr,literal:vr,built_in:Ar,"variable.language":Sr},a="[0-9](_?[0-9])*",c=`\\.(${a})`,h="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",f={className:"number",variants:[{begin:`(\\b(${h})((${c})|\\.)?|(${c}))[eE][+-]?(${a})\\b`},{begin:`\\b(${h})\\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},p={className:"subst",begin:"\\$\\{",end:"\\}",keywords:l,contains:[]},_={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,p],subLanguage:"xml"}},O={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,p],subLanguage:"css"}},N={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,p],subLanguage:"graphql"}},b={className:"string",begin:"`",end:"`",contains:[n.BACKSLASH_ESCAPE,p]},G={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:i+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),n.C_BLOCK_COMMENT_MODE,n.C_LINE_COMMENT_MODE]},Z=[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,_,O,N,b,{match:/\$\d+/},f];p.contains=Z.concat({begin:/\{/,end:/\}/,keywords:l,contains:["self"].concat(Z)});const ee=[].concat(G,p.contains),z=ee.concat([{begin:/\(/,end:/\)/,keywords:l,contains:["self"].concat(ee)}]),V={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:l,contains:z},ve={variants:[{match:[/class/,/\s+/,i,/\s+/,/extends/,/\s+/,e.concat(i,"(",e.concat(/\./,i),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,i],scope:{1:"keyword",3:"title.class"}}]},he={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:{_:[..._r,...xr]}},B={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},L={variants:[{match:[/function/,/\s+/,i,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[V],illegal:/%/},te={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function De(u){return e.concat("(?!",u.join("|"),")")}const vt={match:e.concat(/\b/,De([...Er,"super","import"]),i,e.lookahead(/\(/)),className:"title.function",relevance:0},_t={begin:e.concat(/\./,e.lookahead(e.concat(i,/(?![0-9A-Za-z$_(])/))),end:i,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},xt={match:[/get|set/,/\s+/,i,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},V]},ie="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+n.UNDERSCORE_IDENT_RE+")\\s*=>",Et={match:[/const|var|let/,/\s+/,i,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(ie)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[V]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:l,exports:{PARAMS_CONTAINS:z,CLASS_REFERENCE:he},illegal:/#(?![$_A-z])/,contains:[n.SHEBANG({label:"shebang",binary:"node",relevance:5}),B,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,_,O,N,b,G,{match:/\$\d+/},f,he,{className:"attr",begin:i+e.lookahead(":"),relevance:0},Et,{begin:"("+n.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[G,n.REGEXP_MODE,{className:"function",begin:ie,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:l,contains:z}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:r.begin,end:r.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"]}]}]},L,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+n.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[V,n.inherit(n.TITLE_MODE,{begin:i,className:"title.function"})]},{match:/\.\.\./,relevance:0},_t,{match:"\\$"+i,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[V]},vt,te,ve,xt,{match:/\$[(.]/}]}}function la(n){const e=oa(n),t=ut,i=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],r={beginKeywords:"namespace",end:/\{/,excludeEnd:!0,contains:[e.exports.CLASS_REFERENCE]},o={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:i},contains:[e.exports.CLASS_REFERENCE]},s={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},l=["type","namespace","interface","public","private","protected","implements","declare","abstract","readonly","enum","override"],a={$pattern:ut,keyword:wr.concat(l),literal:vr,built_in:Ar.concat(i),"variable.language":Sr},c={className:"meta",begin:"@"+t},h=(p,_,O)=>{const N=p.contains.findIndex(b=>b.label===_);if(N===-1)throw new Error("can not find mode to replace");p.contains.splice(N,1,O)};Object.assign(e.keywords,a),e.exports.PARAMS_CONTAINS.push(c),e.contains=e.contains.concat([c,r,o]),h(e,"shebang",n.SHEBANG()),h(e,"use_strict",s);const f=e.contains.find(p=>p.label==="func.def");return f.relevance=0,Object.assign(e,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),e}function aa(n){const e=n.regex,t=e.concat(/[\p{L}_]/u,e.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),i=/[\p{L}0-9._:-]+/u,r={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:/\)/}),l=n.inherit(n.APOS_STRING_MODE,{className:"string"}),a=n.inherit(n.QUOTE_STRING_MODE,{className:"string"}),c={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:i,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[r]},{begin:/'/,end:/'/,contains:[r]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[o,a,l,s,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[o,s,a,l]}]}]},n.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},r,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[a]},{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 ca=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_-]*/}}),ha=["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"],ua=["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"],da=["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"],fa=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],pa=["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 ga(n){const e=n.regex,t=ca(n),i={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},r="and or not only",o=/@-?\w[\w]*(-\w+)*/,s="[a-zA-Z-][a-zA-Z0-9_-]*",l=[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,i,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:":("+da.join("|")+")"},{begin:":(:)?("+fa.join("|")+")"}]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+pa.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[t.BLOCK_COMMENT,t.HEXCOLOR,t.IMPORTANT,t.CSS_NUMBER_MODE,...l,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...l,{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:r,attribute:ua.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...l,t.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+ha.join("|")+")\\b"}]}}const $r=document.createElement("style");$r.innerText=[hl,ul].join(`
|
|
196
|
+
`);document.head.appendChild($r);wt.registerLanguage("typescript",la);wt.registerLanguage("html",aa);wt.registerLanguage("css",ga);function ma(...n){const e=document.createElement("div"),t=document.createElement("div");t.classList.add("tab-control");const i=document.createElement("div");return n.forEach(r=>{e.appendChild(r),r.addEventListener("click",()=>{n.forEach(o=>o.removeAttribute("selected")),r.setAttribute("selected",""),i.innerHTML="",i.appendChild(r.content),i.className=r.className,i.classList.add("tab-content")})}),t.appendChild(e),t.appendChild(i),i.classList.add("tab-content"),n[0].setAttribute("selected",""),i.appendChild(n[0].content),t}function Se(n,e){const t=document.createElement("div");return t.role="tab",t.tabIndex=0,t.innerText=n,t.content=e,e.tagName=="PRE"&&t.classList.add("code"),t}function $e(n,e){const t=document.createElement(n);return typeof e=="string"?t.innerHTML=e:e.forEach(i=>{t.appendChild(i)}),t}async function ba(n,e,t){var i,r,o;const s=e.mainContent,l=$e("div",s);l.id=`example-preview-${t}`;const a=typeof e.css=="string"||(i=e.css)==null?void 0:i.label,c=typeof e.css=="string"?e.css:(r=e.css)==null?void 0:r.content,h=ma(Se("Preview",l),Se("HTML",et("html",s)),...c?[Se(a??"CSS",et("css",c))]:[],...e.initializer&&e.initializer.content?[Se(e.initializer.label??"TS",et("typescript",e.initializer.content))]:[],...(e.additionalSources||[]).map(p=>Se(p.label,et(p.language,p.content))));e.description&&n.appendChild($e("div",e.description));const f=$e("div",[h]);f.classList.add("example"),n.appendChild(f),c&&ya(`#${l.id}`,c),(o=e.initializer)!=null&&o.initialize&&await e.initializer.initialize(l)}function et(n,e){let t=e.split(/\r?\n/).map(i=>{const r=i.indexOf("///");if(r>-1){const o=i.substring(r+3).trimStart();return o?i.replace(/^(\s*)([^\s].*)$/,`$1${o}`):void 0}return i}).filter(i=>typeof i<"u").join(`
|
|
197
|
+
`).trim();return n&&n!="raw"&&(t=wt.highlight(t,{language:n}).value),$e("pre",[$e("code",t)])}function ya(n,e){const t=document.createElement("style");t.innerHTML=C().use(cl({prefix:n})).process(e).css,document.head.appendChild(t)}async function vi(n,e=document.body){const t=va(e);let i=0;Object.keys(n).forEach(async r=>{const o=document.createElement("div");o.className="example-container",t.appendChild(o);const s=n[r].default;ba(o,s,i++)})}function wa(n){const e=document.createElement("div");e.id="examples-container";const t=n.querySelector("#examples");return t?t.after(e):n.appendChild(e),e}function va(n){return n.children?wa(n):n}const _a=`<h1 id="@cas-smartdesign/splitter">@cas-smartdesign/splitter</h1>
|
|
198
|
+
<p>A draggable splitter layout for displaying 2 panels side by side.</p>
|
|
199
|
+
<p>An initial ratio can be configured but the user is able to move the
|
|
200
|
+
splitter and therefore resize the panels.</p>
|
|
201
|
+
<p>The splitter takes the <code>min-width</code> and <code>max-width</code> CSS styles on the
|
|
202
|
+
slotted elements into account but might not be able to uphold all size
|
|
203
|
+
restrictions at the same time.</p>
|
|
204
|
+
<h2 id="slots">Slots</h2>
|
|
205
|
+
<ul>
|
|
206
|
+
<li><code>left</code><ul>
|
|
207
|
+
<li>The left panel.</li>
|
|
208
|
+
<li>Supports at most one assigned element.</li>
|
|
209
|
+
</ul>
|
|
210
|
+
</li>
|
|
211
|
+
<li><code>right</code><ul>
|
|
212
|
+
<li>The right panel.</li>
|
|
213
|
+
<li>Supports at most one assigned element.</li>
|
|
214
|
+
</ul>
|
|
215
|
+
</li>
|
|
216
|
+
<li><code>splitter</code><ul>
|
|
217
|
+
<li>Can be used to assigned a custom splitter element.</li>
|
|
218
|
+
<li>Supports at most one assigned element.</li>
|
|
219
|
+
<li>The assigned splitter element should have a fixed width.</li>
|
|
220
|
+
<li>The assigned splitter element can contain an element with the class <code>sd-splitter-drag-area</code>.
|
|
221
|
+
This element is then used for dragging the splitter.
|
|
222
|
+
If there is no such element, then the entire splitter element serves as the drag area.</li>
|
|
223
|
+
</ul>
|
|
224
|
+
</li>
|
|
225
|
+
</ul>
|
|
226
|
+
<h2 id="attributes">Attributes</h2>
|
|
227
|
+
<ul>
|
|
228
|
+
<li><code>ratio</code> <strong><em>[number, number] (default=[1, 1])</em></strong><ul>
|
|
229
|
+
<li>A tuple of 2 numbers defining the width ratio of the 2 panels.
|
|
230
|
+
This attribute is kept in sync with the actual ratio by the
|
|
231
|
+
component implementation.</li>
|
|
232
|
+
</ul>
|
|
233
|
+
</li>
|
|
234
|
+
<li><code>hovering</code> <strong><em>boolean</em> (default=false)</strong><ul>
|
|
235
|
+
<li>Read-only attribute to indicate when the cursor is hovering over the splitter's drag area.</li>
|
|
236
|
+
<li>Useful for styling custom splitters.</li>
|
|
237
|
+
</ul>
|
|
238
|
+
</li>
|
|
239
|
+
<li><code>dragging</code> <strong><em>boolean</em> (default=false)</strong><ul>
|
|
240
|
+
<li>Read-only attribute to indicate when the splitter is being dragged.</li>
|
|
241
|
+
<li>Useful for styling custom splitters.</li>
|
|
242
|
+
</ul>
|
|
243
|
+
</li>
|
|
244
|
+
</ul>
|
|
245
|
+
<h2 id="properties">Properties</h2>
|
|
246
|
+
<ul>
|
|
247
|
+
<li><code>ratio</code><ul>
|
|
248
|
+
<li>Reflects the corresponding attribute.</li>
|
|
249
|
+
</ul>
|
|
250
|
+
</li>
|
|
251
|
+
</ul>
|
|
252
|
+
<h2 id="css-custom-properties">CSS Custom Properties</h2>
|
|
253
|
+
<p>The following custom properties are always considered:</p>
|
|
254
|
+
<ul>
|
|
255
|
+
<li><code>--sd-splitter-gap</code><ul>
|
|
256
|
+
<li>Additional gap separating the splitter from the left and right panels (default: 0px).</li>
|
|
257
|
+
</ul>
|
|
258
|
+
</li>
|
|
259
|
+
<li><code>--sd-splitter-cursor</code><ul>
|
|
260
|
+
<li>The cursor to display when the user interacts with the splitter (default: ew-resize).</li>
|
|
261
|
+
</ul>
|
|
262
|
+
</li>
|
|
263
|
+
</ul>
|
|
264
|
+
<p>The following custom properties only affect the default splitter (i.e., when the <code>splitter</code> slot is not assigned):</p>
|
|
265
|
+
<ul>
|
|
266
|
+
<li><code>--sd-splitter-width</code><ul>
|
|
267
|
+
<li>The visible width of the splitter between the 2 panels (default: 0px).</li>
|
|
268
|
+
</ul>
|
|
269
|
+
</li>
|
|
270
|
+
<li><code>--sd-splitter-color</code><ul>
|
|
271
|
+
<li>The splitter color in case its width is set to a non-zero value (default: transparent).</li>
|
|
272
|
+
</ul>
|
|
273
|
+
</li>
|
|
274
|
+
<li><code>--sd-splitter-handle-width</code><ul>
|
|
275
|
+
<li>The width of the handle which the user has to drag for moving the splitter (default: 5px).</li>
|
|
276
|
+
</ul>
|
|
277
|
+
</li>
|
|
278
|
+
<li><code>--sd-splitter-handle-color</code><ul>
|
|
279
|
+
<li>The color of the handle when the user interacts with it, i.e., during hover and drag (default: #1467ba).</li>
|
|
280
|
+
</ul>
|
|
281
|
+
</li>
|
|
282
|
+
</ul>
|
|
283
|
+
<h2 id="custom-events">Custom events</h2>
|
|
284
|
+
<ul>
|
|
285
|
+
<li><code>sd-splitter-resized</code><ul>
|
|
286
|
+
<li>Fired when the ratio is changed / updated. This is generally the case when<ol>
|
|
287
|
+
<li>The component is rendered for the 1st time.</li>
|
|
288
|
+
<li>The size of the overall splitter layout changes.</li>
|
|
289
|
+
<li>The user drags the splitter.</li>
|
|
290
|
+
</ol>
|
|
291
|
+
</li>
|
|
292
|
+
</ul>
|
|
293
|
+
</li>
|
|
294
|
+
</ul>
|
|
295
|
+
`,xa=document.querySelector("#markdown-container");xa.innerHTML=_a;vi(Object.assign({"./examples/basic-usage/index.ts":zr}),document.querySelector(".markdown-body"));vi(Object.assign({"./examples/advanced-usage/index.ts":Fr}),document.querySelector(".markdown-body"));vi(Object.assign({"./examples/custom-splitter/index.ts":Kr}),document.querySelector(".markdown-body"));
|