@cas-smartdesign/qrcode 3.0.1 → 3.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/docs/doc.mjs CHANGED
@@ -60,13 +60,13 @@ updateValue();
60
60
 
61
61
  container.append(qrcode);
62
62
  `,Ui={mainContent:Li,description:$i,css:ji,initializer:{content:Di,type:"typescript",initialize:()=>Bi(()=>import("./2_created_from_source.js"),__vite__mapDeps([]),import.meta.url)}},zi=Object.freeze(Object.defineProperty({__proto__:null,default:Ui},Symbol.toStringTag,{value:"Module"})),tr=class Ye extends HTMLElement{memoizedTemplate(){const e=this.is();if(Ye.TEMPLATE_CACHE[e])return Ye.TEMPLATE_CACHE[e];const t=this.template();return window.ShadyCSS&&window.ShadyCSS.prepareTemplate(t,this.is()),Ye.TEMPLATE_CACHE[e]=t,t}connectedCallback(){const e=this.memoizedTemplate();window.ShadyCSS&&window.ShadyCSS.styleElement(this),this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.appendChild(document.importNode(e.content,!0)),requestAnimationFrame(()=>this.dispatchEvent(new CustomEvent("ready"))))}whenReady(e){this.shadowRoot?e():this.addEventListener("ready",()=>e())}};tr.TEMPLATE_CACHE={};let Fi=tr;function nr(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function Hi(r){if(r.__esModule)return r;var e=r.default;if(typeof e=="function"){var t=function n(){return this instanceof n?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(r).forEach(function(n){var i=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:function(){return r[n]}})}),t}var qi=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},rr={},G={};let tn;const Wi=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];G.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return e*4+17};G.getSymbolTotalCodewords=function(e){return Wi[e]};G.getBCHDigit=function(r){let e=0;for(;r!==0;)e++,r>>>=1;return e};G.setToSJISFunction=function(e){if(typeof e!="function")throw new Error('"toSJISFunc" is not a valid function.');tn=e};G.isKanjiModeEnabled=function(){return typeof tn<"u"};G.toSJIS=function(e){return tn(e)};var ut={};(function(r){r.L={bit:1},r.M={bit:0},r.Q={bit:3},r.H={bit:2};function e(t){if(typeof t!="string")throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return r.L;case"m":case"medium":return r.M;case"q":case"quartile":return r.Q;case"h":case"high":return r.H;default:throw new Error("Unknown EC Level: "+t)}}r.isValid=function(n){return n&&typeof n.bit<"u"&&n.bit>=0&&n.bit<4},r.from=function(n,i){if(r.isValid(n))return n;try{return e(n)}catch{return i}}})(ut);function ir(){this.buffer=[],this.length=0}ir.prototype={get:function(r){const e=Math.floor(r/8);return(this.buffer[e]>>>7-r%8&1)===1},put:function(r,e){for(let t=0;t<e;t++)this.putBit((r>>>e-t-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(r){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),r&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var Gi=ir;function Te(r){if(!r||r<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=r,this.data=new Uint8Array(r*r),this.reservedBit=new Uint8Array(r*r)}Te.prototype.set=function(r,e,t,n){const i=r*this.size+e;this.data[i]=t,n&&(this.reservedBit[i]=!0)};Te.prototype.get=function(r,e){return this.data[r*this.size+e]};Te.prototype.xor=function(r,e,t){this.data[r*this.size+e]^=t};Te.prototype.isReserved=function(r,e){return this.reservedBit[r*this.size+e]};var Vi=Te,sr={};(function(r){const e=G.getSymbolSize;r.getRowColCoords=function(n){if(n===1)return[];const i=Math.floor(n/7)+2,s=e(n),o=s===145?26:Math.ceil((s-13)/(2*i-2))*2,a=[s-7];for(let l=1;l<i-1;l++)a[l]=a[l-1]-o;return a.push(6),a.reverse()},r.getPositions=function(n){const i=[],s=r.getRowColCoords(n),o=s.length;for(let a=0;a<o;a++)for(let l=0;l<o;l++)a===0&&l===0||a===0&&l===o-1||a===o-1&&l===0||i.push([s[a],s[l]]);return i}})(sr);var or={};const Ki=G.getSymbolSize,Rn=7;or.getPositions=function(e){const t=Ki(e);return[[0,0],[t-Rn,0],[0,t-Rn]]};var ar={};(function(r){r.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const e={N1:3,N2:3,N3:40,N4:10};r.isValid=function(i){return i!=null&&i!==""&&!isNaN(i)&&i>=0&&i<=7},r.from=function(i){return r.isValid(i)?parseInt(i,10):void 0},r.getPenaltyN1=function(i){const s=i.size;let o=0,a=0,l=0,c=null,u=null;for(let g=0;g<s;g++){a=l=0,c=u=null;for(let h=0;h<s;h++){let p=i.get(g,h);p===c?a++:(a>=5&&(o+=e.N1+(a-5)),c=p,a=1),p=i.get(h,g),p===u?l++:(l>=5&&(o+=e.N1+(l-5)),u=p,l=1)}a>=5&&(o+=e.N1+(a-5)),l>=5&&(o+=e.N1+(l-5))}return o},r.getPenaltyN2=function(i){const s=i.size;let o=0;for(let a=0;a<s-1;a++)for(let l=0;l<s-1;l++){const c=i.get(a,l)+i.get(a,l+1)+i.get(a+1,l)+i.get(a+1,l+1);(c===4||c===0)&&o++}return o*e.N2},r.getPenaltyN3=function(i){const s=i.size;let o=0,a=0,l=0;for(let c=0;c<s;c++){a=l=0;for(let u=0;u<s;u++)a=a<<1&2047|i.get(c,u),u>=10&&(a===1488||a===93)&&o++,l=l<<1&2047|i.get(u,c),u>=10&&(l===1488||l===93)&&o++}return o*e.N3},r.getPenaltyN4=function(i){let s=0;const o=i.data.length;for(let l=0;l<o;l++)s+=i.data[l];return Math.abs(Math.ceil(s*100/o/5)-10)*e.N4};function t(n,i,s){switch(n){case r.Patterns.PATTERN000:return(i+s)%2===0;case r.Patterns.PATTERN001:return i%2===0;case r.Patterns.PATTERN010:return s%3===0;case r.Patterns.PATTERN011:return(i+s)%3===0;case r.Patterns.PATTERN100:return(Math.floor(i/2)+Math.floor(s/3))%2===0;case r.Patterns.PATTERN101:return i*s%2+i*s%3===0;case r.Patterns.PATTERN110:return(i*s%2+i*s%3)%2===0;case r.Patterns.PATTERN111:return(i*s%3+(i+s)%2)%2===0;default:throw new Error("bad maskPattern:"+n)}}r.applyMask=function(i,s){const o=s.size;for(let a=0;a<o;a++)for(let l=0;l<o;l++)s.isReserved(l,a)||s.xor(l,a,t(i,l,a))},r.getBestMask=function(i,s){const o=Object.keys(r.Patterns).length;let a=0,l=1/0;for(let c=0;c<o;c++){s(c),r.applyMask(c,i);const u=r.getPenaltyN1(i)+r.getPenaltyN2(i)+r.getPenaltyN3(i)+r.getPenaltyN4(i);r.applyMask(c,i),u<l&&(l=u,a=c)}return a}})(ar);var ft={};const ne=ut,De=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],Ue=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];ft.getBlocksCount=function(e,t){switch(t){case ne.L:return De[(e-1)*4+0];case ne.M:return De[(e-1)*4+1];case ne.Q:return De[(e-1)*4+2];case ne.H:return De[(e-1)*4+3];default:return}};ft.getTotalCodewordsCount=function(e,t){switch(t){case ne.L:return Ue[(e-1)*4+0];case ne.M:return Ue[(e-1)*4+1];case ne.Q:return Ue[(e-1)*4+2];case ne.H:return Ue[(e-1)*4+3];default:return}};var lr={},ht={};const Ce=new Uint8Array(512),tt=new Uint8Array(256);(function(){let e=1;for(let t=0;t<255;t++)Ce[t]=e,tt[e]=t,e<<=1,e&256&&(e^=285);for(let t=255;t<512;t++)Ce[t]=Ce[t-255]})();ht.log=function(e){if(e<1)throw new Error("log("+e+")");return tt[e]};ht.exp=function(e){return Ce[e]};ht.mul=function(e,t){return e===0||t===0?0:Ce[tt[e]+tt[t]]};(function(r){const e=ht;r.mul=function(n,i){const s=new Uint8Array(n.length+i.length-1);for(let o=0;o<n.length;o++)for(let a=0;a<i.length;a++)s[o+a]^=e.mul(n[o],i[a]);return s},r.mod=function(n,i){let s=new Uint8Array(n);for(;s.length-i.length>=0;){const o=s[0];for(let l=0;l<i.length;l++)s[l]^=e.mul(i[l],o);let a=0;for(;a<s.length&&s[a]===0;)a++;s=s.slice(a)}return s},r.generateECPolynomial=function(n){let i=new Uint8Array([1]);for(let s=0;s<n;s++)i=r.mul(i,new Uint8Array([1,e.exp(s)]));return i}})(lr);const cr=lr;function nn(r){this.genPoly=void 0,this.degree=r,this.degree&&this.initialize(this.degree)}nn.prototype.initialize=function(e){this.degree=e,this.genPoly=cr.generateECPolynomial(this.degree)};nn.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");const t=new Uint8Array(e.length+this.degree);t.set(e);const n=cr.mod(t,this.genPoly),i=this.degree-n.length;if(i>0){const s=new Uint8Array(this.degree);return s.set(n,i),s}return n};var Ji=nn,ur={},ie={},rn={};rn.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40};var Y={};const fr="[0-9]+",Zi="[A-Z $%*+\\-./:]+";let _e="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";_e=_e.replace(/u/g,"\\u");const Qi="(?:(?![A-Z0-9 $%*+\\-./:]|"+_e+`)(?:.|[\r
63
- ]))+`;Y.KANJI=new RegExp(_e,"g");Y.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");Y.BYTE=new RegExp(Qi,"g");Y.NUMERIC=new RegExp(fr,"g");Y.ALPHANUMERIC=new RegExp(Zi,"g");const Yi=new RegExp("^"+_e+"$"),Xi=new RegExp("^"+fr+"$"),es=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");Y.testKanji=function(e){return Yi.test(e)};Y.testNumeric=function(e){return Xi.test(e)};Y.testAlphanumeric=function(e){return es.test(e)};(function(r){const e=rn,t=Y;r.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},r.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},r.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},r.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},r.MIXED={bit:-1},r.getCharCountIndicator=function(s,o){if(!s.ccBits)throw new Error("Invalid mode: "+s);if(!e.isValid(o))throw new Error("Invalid version: "+o);return o>=1&&o<10?s.ccBits[0]:o<27?s.ccBits[1]:s.ccBits[2]},r.getBestModeForData=function(s){return t.testNumeric(s)?r.NUMERIC:t.testAlphanumeric(s)?r.ALPHANUMERIC:t.testKanji(s)?r.KANJI:r.BYTE},r.toString=function(s){if(s&&s.id)return s.id;throw new Error("Invalid mode")},r.isValid=function(s){return s&&s.bit&&s.ccBits};function n(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.toLowerCase()){case"numeric":return r.NUMERIC;case"alphanumeric":return r.ALPHANUMERIC;case"kanji":return r.KANJI;case"byte":return r.BYTE;default:throw new Error("Unknown mode: "+i)}}r.from=function(s,o){if(r.isValid(s))return s;try{return n(s)}catch{return o}}})(ie);(function(r){const e=G,t=ft,n=ut,i=ie,s=rn,o=7973,a=e.getBCHDigit(o);function l(h,p,w){for(let C=1;C<=40;C++)if(p<=r.getCapacity(C,w,h))return C}function c(h,p){return i.getCharCountIndicator(h,p)+4}function u(h,p){let w=0;return h.forEach(function(C){const m=c(C.mode,p);w+=m+C.getBitsLength()}),w}function g(h,p){for(let w=1;w<=40;w++)if(u(h,w)<=r.getCapacity(w,p,i.MIXED))return w}r.from=function(p,w){return s.isValid(p)?parseInt(p,10):w},r.getCapacity=function(p,w,C){if(!s.isValid(p))throw new Error("Invalid QR Code version");typeof C>"u"&&(C=i.BYTE);const m=e.getSymbolTotalCodewords(p),x=t.getTotalCodewordsCount(p,w),S=(m-x)*8;if(C===i.MIXED)return S;const v=S-c(C,p);switch(C){case i.NUMERIC:return Math.floor(v/10*3);case i.ALPHANUMERIC:return Math.floor(v/11*2);case i.KANJI:return Math.floor(v/13);case i.BYTE:default:return Math.floor(v/8)}},r.getBestVersionForData=function(p,w){let C;const m=n.from(w,n.M);if(Array.isArray(p)){if(p.length>1)return g(p,m);if(p.length===0)return 1;C=p[0]}else C=p;return l(C.mode,C.getLength(),m)},r.getEncodedBits=function(p){if(!s.isValid(p)||p<7)throw new Error("Invalid QR Code version");let w=p<<12;for(;e.getBCHDigit(w)-a>=0;)w^=o<<e.getBCHDigit(w)-a;return p<<12|w}})(ur);var hr={};const Lt=G,dr=1335,ts=21522,kn=Lt.getBCHDigit(dr);hr.getEncodedBits=function(e,t){const n=e.bit<<3|t;let i=n<<10;for(;Lt.getBCHDigit(i)-kn>=0;)i^=dr<<Lt.getBCHDigit(i)-kn;return(n<<10|i)^ts};var gr={};const ns=ie;function he(r){this.mode=ns.NUMERIC,this.data=r.toString()}he.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)};he.prototype.getLength=function(){return this.data.length};he.prototype.getBitsLength=function(){return he.getBitsLength(this.data.length)};he.prototype.write=function(e){let t,n,i;for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),i=parseInt(n,10),e.put(i,10);const s=this.data.length-t;s>0&&(n=this.data.substr(t),i=parseInt(n,10),e.put(i,s*3+1))};var rs=he;const is=ie,_t=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function de(r){this.mode=is.ALPHANUMERIC,this.data=r}de.getBitsLength=function(e){return 11*Math.floor(e/2)+6*(e%2)};de.prototype.getLength=function(){return this.data.length};de.prototype.getBitsLength=function(){return de.getBitsLength(this.data.length)};de.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let n=_t.indexOf(this.data[t])*45;n+=_t.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(_t.indexOf(this.data[t]),6)};var ss=de,os=function(e){for(var t=[],n=e.length,i=0;i<n;i++){var s=e.charCodeAt(i);if(s>=55296&&s<=56319&&n>i+1){var o=e.charCodeAt(i+1);o>=56320&&o<=57343&&(s=(s-55296)*1024+o-56320+65536,i+=1)}if(s<128){t.push(s);continue}if(s<2048){t.push(s>>6|192),t.push(s&63|128);continue}if(s<55296||s>=57344&&s<65536){t.push(s>>12|224),t.push(s>>6&63|128),t.push(s&63|128);continue}if(s>=65536&&s<=1114111){t.push(s>>18|240),t.push(s>>12&63|128),t.push(s>>6&63|128),t.push(s&63|128);continue}t.push(239,191,189)}return new Uint8Array(t).buffer};const as=os,ls=ie;function ge(r){this.mode=ls.BYTE,typeof r=="string"&&(r=as(r)),this.data=new Uint8Array(r)}ge.getBitsLength=function(e){return e*8};ge.prototype.getLength=function(){return this.data.length};ge.prototype.getBitsLength=function(){return ge.getBitsLength(this.data.length)};ge.prototype.write=function(r){for(let e=0,t=this.data.length;e<t;e++)r.put(this.data[e],8)};var cs=ge;const us=ie,fs=G;function pe(r){this.mode=us.KANJI,this.data=r}pe.getBitsLength=function(e){return e*13};pe.prototype.getLength=function(){return this.data.length};pe.prototype.getBitsLength=function(){return pe.getBitsLength(this.data.length)};pe.prototype.write=function(r){let e;for(e=0;e<this.data.length;e++){let t=fs.toSJIS(this.data[e]);if(t>=33088&&t<=40956)t-=33088;else if(t>=57408&&t<=60351)t-=49472;else throw new Error("Invalid SJIS character: "+this.data[e]+`
64
- Make sure your charset is UTF-8`);t=(t>>>8&255)*192+(t&255),r.put(t,13)}};var hs=pe,pr={exports:{}};(function(r){var e={single_source_shortest_paths:function(t,n,i){var s={},o={};o[n]=0;var a=e.PriorityQueue.make();a.push(n,0);for(var l,c,u,g,h,p,w,C,m;!a.empty();){l=a.pop(),c=l.value,g=l.cost,h=t[c]||{};for(u in h)h.hasOwnProperty(u)&&(p=h[u],w=g+p,C=o[u],m=typeof o[u]>"u",(m||C>w)&&(o[u]=w,a.push(u,w),s[u]=c))}if(typeof i<"u"&&typeof o[i]>"u"){var x=["Could not find a path from ",n," to ",i,"."].join("");throw new Error(x)}return s},extract_shortest_path_from_predecessor_list:function(t,n){for(var i=[],s=n;s;)i.push(s),t[s],s=t[s];return i.reverse(),i},find_path:function(t,n,i){var s=e.single_source_shortest_paths(t,n,i);return e.extract_shortest_path_from_predecessor_list(s,i)},PriorityQueue:{make:function(t){var n=e.PriorityQueue,i={},s;t=t||{};for(s in n)n.hasOwnProperty(s)&&(i[s]=n[s]);return i.queue=[],i.sorter=t.sorter||n.default_sorter,i},default_sorter:function(t,n){return t.cost-n.cost},push:function(t,n){var i={value:t,cost:n};this.queue.push(i),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};r.exports=e})(pr);var ds=pr.exports;(function(r){const e=ie,t=rs,n=ss,i=cs,s=hs,o=Y,a=G,l=ds;function c(x){return unescape(encodeURIComponent(x)).length}function u(x,S,v){const y=[];let k;for(;(k=x.exec(v))!==null;)y.push({data:k[0],index:k.index,mode:S,length:k[0].length});return y}function g(x){const S=u(o.NUMERIC,e.NUMERIC,x),v=u(o.ALPHANUMERIC,e.ALPHANUMERIC,x);let y,k;return a.isKanjiModeEnabled()?(y=u(o.BYTE,e.BYTE,x),k=u(o.KANJI,e.KANJI,x)):(y=u(o.BYTE_KANJI,e.BYTE,x),k=[]),S.concat(v,y,k).sort(function(T,D){return T.index-D.index}).map(function(T){return{data:T.data,mode:T.mode,length:T.length}})}function h(x,S){switch(S){case e.NUMERIC:return t.getBitsLength(x);case e.ALPHANUMERIC:return n.getBitsLength(x);case e.KANJI:return s.getBitsLength(x);case e.BYTE:return i.getBitsLength(x)}}function p(x){return x.reduce(function(S,v){const y=S.length-1>=0?S[S.length-1]:null;return y&&y.mode===v.mode?(S[S.length-1].data+=v.data,S):(S.push(v),S)},[])}function w(x){const S=[];for(let v=0;v<x.length;v++){const y=x[v];switch(y.mode){case e.NUMERIC:S.push([y,{data:y.data,mode:e.ALPHANUMERIC,length:y.length},{data:y.data,mode:e.BYTE,length:y.length}]);break;case e.ALPHANUMERIC:S.push([y,{data:y.data,mode:e.BYTE,length:y.length}]);break;case e.KANJI:S.push([y,{data:y.data,mode:e.BYTE,length:c(y.data)}]);break;case e.BYTE:S.push([{data:y.data,mode:e.BYTE,length:c(y.data)}])}}return S}function C(x,S){const v={},y={start:{}};let k=["start"];for(let M=0;M<x.length;M++){const T=x[M],D=[];for(let $=0;$<T.length;$++){const U=T[$],K=""+M+$;D.push(K),v[K]={node:U,lastCount:0},y[K]={};for(let se=0;se<k.length;se++){const H=k[se];v[H]&&v[H].node.mode===U.mode?(y[H][K]=h(v[H].lastCount+U.length,U.mode)-h(v[H].lastCount,U.mode),v[H].lastCount+=U.length):(v[H]&&(v[H].lastCount=U.length),y[H][K]=h(U.length,U.mode)+4+e.getCharCountIndicator(U.mode,S))}}k=D}for(let M=0;M<k.length;M++)y[k[M]].end=0;return{map:y,table:v}}function m(x,S){let v;const y=e.getBestModeForData(x);if(v=e.from(S,y),v!==e.BYTE&&v.bit<y.bit)throw new Error('"'+x+'" cannot be encoded with mode '+e.toString(v)+`.
65
- Suggested mode is: `+e.toString(y));switch(v===e.KANJI&&!a.isKanjiModeEnabled()&&(v=e.BYTE),v){case e.NUMERIC:return new t(x);case e.ALPHANUMERIC:return new n(x);case e.KANJI:return new s(x);case e.BYTE:return new i(x)}}r.fromArray=function(S){return S.reduce(function(v,y){return typeof y=="string"?v.push(m(y,null)):y.data&&v.push(m(y.data,y.mode)),v},[])},r.fromString=function(S,v){const y=g(S,a.isKanjiModeEnabled()),k=w(y),M=C(k,v),T=l.find_path(M.map,"start","end"),D=[];for(let $=1;$<T.length-1;$++)D.push(M.table[T[$]].node);return r.fromArray(p(D))},r.rawSplit=function(S){return r.fromArray(g(S,a.isKanjiModeEnabled()))}})(gr);const dt=G,Rt=ut,gs=Gi,ps=Vi,ms=sr,bs=or,$t=ar,jt=ft,ws=Ji,nt=ur,ys=hr,Es=ie,kt=gr;function xs(r,e){const t=r.size,n=bs.getPositions(e);for(let i=0;i<n.length;i++){const s=n[i][0],o=n[i][1];for(let a=-1;a<=7;a++)if(!(s+a<=-1||t<=s+a))for(let l=-1;l<=7;l++)o+l<=-1||t<=o+l||(a>=0&&a<=6&&(l===0||l===6)||l>=0&&l<=6&&(a===0||a===6)||a>=2&&a<=4&&l>=2&&l<=4?r.set(s+a,o+l,!0,!0):r.set(s+a,o+l,!1,!0))}}function vs(r){const e=r.size;for(let t=8;t<e-8;t++){const n=t%2===0;r.set(t,6,n,!0),r.set(6,t,n,!0)}}function Cs(r,e){const t=ms.getPositions(e);for(let n=0;n<t.length;n++){const i=t[n][0],s=t[n][1];for(let o=-2;o<=2;o++)for(let a=-2;a<=2;a++)o===-2||o===2||a===-2||a===2||o===0&&a===0?r.set(i+o,s+a,!0,!0):r.set(i+o,s+a,!1,!0)}}function Ss(r,e){const t=r.size,n=nt.getEncodedBits(e);let i,s,o;for(let a=0;a<18;a++)i=Math.floor(a/3),s=a%3+t-8-3,o=(n>>a&1)===1,r.set(i,s,o,!0),r.set(s,i,o,!0)}function Nt(r,e,t){const n=r.size,i=ys.getEncodedBits(e,t);let s,o;for(s=0;s<15;s++)o=(i>>s&1)===1,s<6?r.set(s,8,o,!0):s<8?r.set(s+1,8,o,!0):r.set(n-15+s,8,o,!0),s<8?r.set(8,n-s-1,o,!0):s<9?r.set(8,15-s-1+1,o,!0):r.set(8,15-s-1,o,!0);r.set(n-8,8,1,!0)}function As(r,e){const t=r.size;let n=-1,i=t-1,s=7,o=0;for(let a=t-1;a>0;a-=2)for(a===6&&a--;;){for(let l=0;l<2;l++)if(!r.isReserved(i,a-l)){let c=!1;o<e.length&&(c=(e[o]>>>s&1)===1),r.set(i,a-l,c),s--,s===-1&&(o++,s=7)}if(i+=n,i<0||t<=i){i-=n,n=-n;break}}}function _s(r,e,t){const n=new gs;t.forEach(function(l){n.put(l.mode.bit,4),n.put(l.getLength(),Es.getCharCountIndicator(l.mode,r)),l.write(n)});const i=dt.getSymbolTotalCodewords(r),s=jt.getTotalCodewordsCount(r,e),o=(i-s)*8;for(n.getLengthInBits()+4<=o&&n.put(0,4);n.getLengthInBits()%8!==0;)n.putBit(0);const a=(o-n.getLengthInBits())/8;for(let l=0;l<a;l++)n.put(l%2?17:236,8);return Rs(n,r,e)}function Rs(r,e,t){const n=dt.getSymbolTotalCodewords(e),i=jt.getTotalCodewordsCount(e,t),s=n-i,o=jt.getBlocksCount(e,t),a=n%o,l=o-a,c=Math.floor(n/o),u=Math.floor(s/o),g=u+1,h=c-u,p=new ws(h);let w=0;const C=new Array(o),m=new Array(o);let x=0;const S=new Uint8Array(r.buffer);for(let T=0;T<o;T++){const D=T<l?u:g;C[T]=S.slice(w,w+D),m[T]=p.encode(C[T]),w+=D,x=Math.max(x,D)}const v=new Uint8Array(n);let y=0,k,M;for(k=0;k<x;k++)for(M=0;M<o;M++)k<C[M].length&&(v[y++]=C[M][k]);for(k=0;k<h;k++)for(M=0;M<o;M++)v[y++]=m[M][k];return v}function ks(r,e,t,n){let i;if(Array.isArray(r))i=kt.fromArray(r);else if(typeof r=="string"){let c=e;if(!c){const u=kt.rawSplit(r);c=nt.getBestVersionForData(u,t)}i=kt.fromString(r,c||40)}else throw new Error("Invalid data");const s=nt.getBestVersionForData(i,t);if(!s)throw new Error("The amount of data is too big to be stored in a QR Code");if(!e)e=s;else if(e<s)throw new Error(`
63
+ ]))+`;Y.KANJI=new RegExp(_e,"g");Y.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");Y.BYTE=new RegExp(Qi,"g");Y.NUMERIC=new RegExp(fr,"g");Y.ALPHANUMERIC=new RegExp(Zi,"g");const Yi=new RegExp("^"+_e+"$"),Xi=new RegExp("^"+fr+"$"),es=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");Y.testKanji=function(e){return Yi.test(e)};Y.testNumeric=function(e){return Xi.test(e)};Y.testAlphanumeric=function(e){return es.test(e)};(function(r){const e=rn,t=Y;r.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},r.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},r.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},r.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},r.MIXED={bit:-1},r.getCharCountIndicator=function(s,o){if(!s.ccBits)throw new Error("Invalid mode: "+s);if(!e.isValid(o))throw new Error("Invalid version: "+o);return o>=1&&o<10?s.ccBits[0]:o<27?s.ccBits[1]:s.ccBits[2]},r.getBestModeForData=function(s){return t.testNumeric(s)?r.NUMERIC:t.testAlphanumeric(s)?r.ALPHANUMERIC:t.testKanji(s)?r.KANJI:r.BYTE},r.toString=function(s){if(s&&s.id)return s.id;throw new Error("Invalid mode")},r.isValid=function(s){return s&&s.bit&&s.ccBits};function n(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.toLowerCase()){case"numeric":return r.NUMERIC;case"alphanumeric":return r.ALPHANUMERIC;case"kanji":return r.KANJI;case"byte":return r.BYTE;default:throw new Error("Unknown mode: "+i)}}r.from=function(s,o){if(r.isValid(s))return s;try{return n(s)}catch{return o}}})(ie);(function(r){const e=G,t=ft,n=ut,i=ie,s=rn,o=7973,a=e.getBCHDigit(o);function l(h,p,y){for(let C=1;C<=40;C++)if(p<=r.getCapacity(C,y,h))return C}function c(h,p){return i.getCharCountIndicator(h,p)+4}function u(h,p){let y=0;return h.forEach(function(C){const m=c(C.mode,p);y+=m+C.getBitsLength()}),y}function g(h,p){for(let y=1;y<=40;y++)if(u(h,y)<=r.getCapacity(y,p,i.MIXED))return y}r.from=function(p,y){return s.isValid(p)?parseInt(p,10):y},r.getCapacity=function(p,y,C){if(!s.isValid(p))throw new Error("Invalid QR Code version");typeof C>"u"&&(C=i.BYTE);const m=e.getSymbolTotalCodewords(p),x=t.getTotalCodewordsCount(p,y),S=(m-x)*8;if(C===i.MIXED)return S;const v=S-c(C,p);switch(C){case i.NUMERIC:return Math.floor(v/10*3);case i.ALPHANUMERIC:return Math.floor(v/11*2);case i.KANJI:return Math.floor(v/13);case i.BYTE:default:return Math.floor(v/8)}},r.getBestVersionForData=function(p,y){let C;const m=n.from(y,n.M);if(Array.isArray(p)){if(p.length>1)return g(p,m);if(p.length===0)return 1;C=p[0]}else C=p;return l(C.mode,C.getLength(),m)},r.getEncodedBits=function(p){if(!s.isValid(p)||p<7)throw new Error("Invalid QR Code version");let y=p<<12;for(;e.getBCHDigit(y)-a>=0;)y^=o<<e.getBCHDigit(y)-a;return p<<12|y}})(ur);var hr={};const Lt=G,dr=1335,ts=21522,kn=Lt.getBCHDigit(dr);hr.getEncodedBits=function(e,t){const n=e.bit<<3|t;let i=n<<10;for(;Lt.getBCHDigit(i)-kn>=0;)i^=dr<<Lt.getBCHDigit(i)-kn;return(n<<10|i)^ts};var gr={};const ns=ie;function he(r){this.mode=ns.NUMERIC,this.data=r.toString()}he.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)};he.prototype.getLength=function(){return this.data.length};he.prototype.getBitsLength=function(){return he.getBitsLength(this.data.length)};he.prototype.write=function(e){let t,n,i;for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),i=parseInt(n,10),e.put(i,10);const s=this.data.length-t;s>0&&(n=this.data.substr(t),i=parseInt(n,10),e.put(i,s*3+1))};var rs=he;const is=ie,_t=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function de(r){this.mode=is.ALPHANUMERIC,this.data=r}de.getBitsLength=function(e){return 11*Math.floor(e/2)+6*(e%2)};de.prototype.getLength=function(){return this.data.length};de.prototype.getBitsLength=function(){return de.getBitsLength(this.data.length)};de.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let n=_t.indexOf(this.data[t])*45;n+=_t.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(_t.indexOf(this.data[t]),6)};var ss=de,os=function(e){for(var t=[],n=e.length,i=0;i<n;i++){var s=e.charCodeAt(i);if(s>=55296&&s<=56319&&n>i+1){var o=e.charCodeAt(i+1);o>=56320&&o<=57343&&(s=(s-55296)*1024+o-56320+65536,i+=1)}if(s<128){t.push(s);continue}if(s<2048){t.push(s>>6|192),t.push(s&63|128);continue}if(s<55296||s>=57344&&s<65536){t.push(s>>12|224),t.push(s>>6&63|128),t.push(s&63|128);continue}if(s>=65536&&s<=1114111){t.push(s>>18|240),t.push(s>>12&63|128),t.push(s>>6&63|128),t.push(s&63|128);continue}t.push(239,191,189)}return new Uint8Array(t).buffer};const as=os,ls=ie;function ge(r){this.mode=ls.BYTE,typeof r=="string"&&(r=as(r)),this.data=new Uint8Array(r)}ge.getBitsLength=function(e){return e*8};ge.prototype.getLength=function(){return this.data.length};ge.prototype.getBitsLength=function(){return ge.getBitsLength(this.data.length)};ge.prototype.write=function(r){for(let e=0,t=this.data.length;e<t;e++)r.put(this.data[e],8)};var cs=ge;const us=ie,fs=G;function pe(r){this.mode=us.KANJI,this.data=r}pe.getBitsLength=function(e){return e*13};pe.prototype.getLength=function(){return this.data.length};pe.prototype.getBitsLength=function(){return pe.getBitsLength(this.data.length)};pe.prototype.write=function(r){let e;for(e=0;e<this.data.length;e++){let t=fs.toSJIS(this.data[e]);if(t>=33088&&t<=40956)t-=33088;else if(t>=57408&&t<=60351)t-=49472;else throw new Error("Invalid SJIS character: "+this.data[e]+`
64
+ Make sure your charset is UTF-8`);t=(t>>>8&255)*192+(t&255),r.put(t,13)}};var hs=pe,pr={exports:{}};(function(r){var e={single_source_shortest_paths:function(t,n,i){var s={},o={};o[n]=0;var a=e.PriorityQueue.make();a.push(n,0);for(var l,c,u,g,h,p,y,C,m;!a.empty();){l=a.pop(),c=l.value,g=l.cost,h=t[c]||{};for(u in h)h.hasOwnProperty(u)&&(p=h[u],y=g+p,C=o[u],m=typeof o[u]>"u",(m||C>y)&&(o[u]=y,a.push(u,y),s[u]=c))}if(typeof i<"u"&&typeof o[i]>"u"){var x=["Could not find a path from ",n," to ",i,"."].join("");throw new Error(x)}return s},extract_shortest_path_from_predecessor_list:function(t,n){for(var i=[],s=n;s;)i.push(s),t[s],s=t[s];return i.reverse(),i},find_path:function(t,n,i){var s=e.single_source_shortest_paths(t,n,i);return e.extract_shortest_path_from_predecessor_list(s,i)},PriorityQueue:{make:function(t){var n=e.PriorityQueue,i={},s;t=t||{};for(s in n)n.hasOwnProperty(s)&&(i[s]=n[s]);return i.queue=[],i.sorter=t.sorter||n.default_sorter,i},default_sorter:function(t,n){return t.cost-n.cost},push:function(t,n){var i={value:t,cost:n};this.queue.push(i),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};r.exports=e})(pr);var ds=pr.exports;(function(r){const e=ie,t=rs,n=ss,i=cs,s=hs,o=Y,a=G,l=ds;function c(x){return unescape(encodeURIComponent(x)).length}function u(x,S,v){const w=[];let k;for(;(k=x.exec(v))!==null;)w.push({data:k[0],index:k.index,mode:S,length:k[0].length});return w}function g(x){const S=u(o.NUMERIC,e.NUMERIC,x),v=u(o.ALPHANUMERIC,e.ALPHANUMERIC,x);let w,k;return a.isKanjiModeEnabled()?(w=u(o.BYTE,e.BYTE,x),k=u(o.KANJI,e.KANJI,x)):(w=u(o.BYTE_KANJI,e.BYTE,x),k=[]),S.concat(v,w,k).sort(function(T,D){return T.index-D.index}).map(function(T){return{data:T.data,mode:T.mode,length:T.length}})}function h(x,S){switch(S){case e.NUMERIC:return t.getBitsLength(x);case e.ALPHANUMERIC:return n.getBitsLength(x);case e.KANJI:return s.getBitsLength(x);case e.BYTE:return i.getBitsLength(x)}}function p(x){return x.reduce(function(S,v){const w=S.length-1>=0?S[S.length-1]:null;return w&&w.mode===v.mode?(S[S.length-1].data+=v.data,S):(S.push(v),S)},[])}function y(x){const S=[];for(let v=0;v<x.length;v++){const w=x[v];switch(w.mode){case e.NUMERIC:S.push([w,{data:w.data,mode:e.ALPHANUMERIC,length:w.length},{data:w.data,mode:e.BYTE,length:w.length}]);break;case e.ALPHANUMERIC:S.push([w,{data:w.data,mode:e.BYTE,length:w.length}]);break;case e.KANJI:S.push([w,{data:w.data,mode:e.BYTE,length:c(w.data)}]);break;case e.BYTE:S.push([{data:w.data,mode:e.BYTE,length:c(w.data)}])}}return S}function C(x,S){const v={},w={start:{}};let k=["start"];for(let M=0;M<x.length;M++){const T=x[M],D=[];for(let $=0;$<T.length;$++){const U=T[$],K=""+M+$;D.push(K),v[K]={node:U,lastCount:0},w[K]={};for(let se=0;se<k.length;se++){const H=k[se];v[H]&&v[H].node.mode===U.mode?(w[H][K]=h(v[H].lastCount+U.length,U.mode)-h(v[H].lastCount,U.mode),v[H].lastCount+=U.length):(v[H]&&(v[H].lastCount=U.length),w[H][K]=h(U.length,U.mode)+4+e.getCharCountIndicator(U.mode,S))}}k=D}for(let M=0;M<k.length;M++)w[k[M]].end=0;return{map:w,table:v}}function m(x,S){let v;const w=e.getBestModeForData(x);if(v=e.from(S,w),v!==e.BYTE&&v.bit<w.bit)throw new Error('"'+x+'" cannot be encoded with mode '+e.toString(v)+`.
65
+ Suggested mode is: `+e.toString(w));switch(v===e.KANJI&&!a.isKanjiModeEnabled()&&(v=e.BYTE),v){case e.NUMERIC:return new t(x);case e.ALPHANUMERIC:return new n(x);case e.KANJI:return new s(x);case e.BYTE:return new i(x)}}r.fromArray=function(S){return S.reduce(function(v,w){return typeof w=="string"?v.push(m(w,null)):w.data&&v.push(m(w.data,w.mode)),v},[])},r.fromString=function(S,v){const w=g(S,a.isKanjiModeEnabled()),k=y(w),M=C(k,v),T=l.find_path(M.map,"start","end"),D=[];for(let $=1;$<T.length-1;$++)D.push(M.table[T[$]].node);return r.fromArray(p(D))},r.rawSplit=function(S){return r.fromArray(g(S,a.isKanjiModeEnabled()))}})(gr);const dt=G,Rt=ut,gs=Gi,ps=Vi,ms=sr,bs=or,$t=ar,jt=ft,ys=Ji,nt=ur,ws=hr,Es=ie,kt=gr;function xs(r,e){const t=r.size,n=bs.getPositions(e);for(let i=0;i<n.length;i++){const s=n[i][0],o=n[i][1];for(let a=-1;a<=7;a++)if(!(s+a<=-1||t<=s+a))for(let l=-1;l<=7;l++)o+l<=-1||t<=o+l||(a>=0&&a<=6&&(l===0||l===6)||l>=0&&l<=6&&(a===0||a===6)||a>=2&&a<=4&&l>=2&&l<=4?r.set(s+a,o+l,!0,!0):r.set(s+a,o+l,!1,!0))}}function vs(r){const e=r.size;for(let t=8;t<e-8;t++){const n=t%2===0;r.set(t,6,n,!0),r.set(6,t,n,!0)}}function Cs(r,e){const t=ms.getPositions(e);for(let n=0;n<t.length;n++){const i=t[n][0],s=t[n][1];for(let o=-2;o<=2;o++)for(let a=-2;a<=2;a++)o===-2||o===2||a===-2||a===2||o===0&&a===0?r.set(i+o,s+a,!0,!0):r.set(i+o,s+a,!1,!0)}}function Ss(r,e){const t=r.size,n=nt.getEncodedBits(e);let i,s,o;for(let a=0;a<18;a++)i=Math.floor(a/3),s=a%3+t-8-3,o=(n>>a&1)===1,r.set(i,s,o,!0),r.set(s,i,o,!0)}function Nt(r,e,t){const n=r.size,i=ws.getEncodedBits(e,t);let s,o;for(s=0;s<15;s++)o=(i>>s&1)===1,s<6?r.set(s,8,o,!0):s<8?r.set(s+1,8,o,!0):r.set(n-15+s,8,o,!0),s<8?r.set(8,n-s-1,o,!0):s<9?r.set(8,15-s-1+1,o,!0):r.set(8,15-s-1,o,!0);r.set(n-8,8,1,!0)}function As(r,e){const t=r.size;let n=-1,i=t-1,s=7,o=0;for(let a=t-1;a>0;a-=2)for(a===6&&a--;;){for(let l=0;l<2;l++)if(!r.isReserved(i,a-l)){let c=!1;o<e.length&&(c=(e[o]>>>s&1)===1),r.set(i,a-l,c),s--,s===-1&&(o++,s=7)}if(i+=n,i<0||t<=i){i-=n,n=-n;break}}}function _s(r,e,t){const n=new gs;t.forEach(function(l){n.put(l.mode.bit,4),n.put(l.getLength(),Es.getCharCountIndicator(l.mode,r)),l.write(n)});const i=dt.getSymbolTotalCodewords(r),s=jt.getTotalCodewordsCount(r,e),o=(i-s)*8;for(n.getLengthInBits()+4<=o&&n.put(0,4);n.getLengthInBits()%8!==0;)n.putBit(0);const a=(o-n.getLengthInBits())/8;for(let l=0;l<a;l++)n.put(l%2?17:236,8);return Rs(n,r,e)}function Rs(r,e,t){const n=dt.getSymbolTotalCodewords(e),i=jt.getTotalCodewordsCount(e,t),s=n-i,o=jt.getBlocksCount(e,t),a=n%o,l=o-a,c=Math.floor(n/o),u=Math.floor(s/o),g=u+1,h=c-u,p=new ys(h);let y=0;const C=new Array(o),m=new Array(o);let x=0;const S=new Uint8Array(r.buffer);for(let T=0;T<o;T++){const D=T<l?u:g;C[T]=S.slice(y,y+D),m[T]=p.encode(C[T]),y+=D,x=Math.max(x,D)}const v=new Uint8Array(n);let w=0,k,M;for(k=0;k<x;k++)for(M=0;M<o;M++)k<C[M].length&&(v[w++]=C[M][k]);for(k=0;k<h;k++)for(M=0;M<o;M++)v[w++]=m[M][k];return v}function ks(r,e,t,n){let i;if(Array.isArray(r))i=kt.fromArray(r);else if(typeof r=="string"){let c=e;if(!c){const u=kt.rawSplit(r);c=nt.getBestVersionForData(u,t)}i=kt.fromString(r,c||40)}else throw new Error("Invalid data");const s=nt.getBestVersionForData(i,t);if(!s)throw new Error("The amount of data is too big to be stored in a QR Code");if(!e)e=s;else if(e<s)throw new Error(`
66
66
  The chosen QR Code version cannot contain this amount of data.
67
67
  Minimum version required to store current data is: `+s+`.
68
- `);const o=_s(e,t,i),a=dt.getSymbolSize(e),l=new ps(a);return xs(l,e),vs(l),Cs(l,e),Nt(l,t,0),e>=7&&Ss(l,e),As(l,o),isNaN(n)&&(n=$t.getBestMask(l,Nt.bind(null,l,t))),$t.applyMask(n,l),Nt(l,t,n),{modules:l,version:e,errorCorrectionLevel:t,maskPattern:n,segments:i}}rr.create=function(e,t){if(typeof e>"u"||e==="")throw new Error("No input text");let n=Rt.M,i,s;return typeof t<"u"&&(n=Rt.from(t.errorCorrectionLevel,Rt.M),i=nt.from(t.version),s=$t.from(t.maskPattern),t.toSJISFunc&&dt.setToSJISFunction(t.toSJISFunc)),ks(e,i,n,s)};var mr={},sn={};(function(r){function e(t){if(typeof t=="number"&&(t=t.toString()),typeof t!="string")throw new Error("Color should be defined as hex string");let n=t.slice().replace("#","").split("");if(n.length<3||n.length===5||n.length>8)throw new Error("Invalid hex color: "+t);(n.length===3||n.length===4)&&(n=Array.prototype.concat.apply([],n.map(function(s){return[s,s]}))),n.length===6&&n.push("F","F");const i=parseInt(n.join(""),16);return{r:i>>24&255,g:i>>16&255,b:i>>8&255,a:i&255,hex:"#"+n.slice(0,6).join("")}}r.getOptions=function(n){n||(n={}),n.color||(n.color={});const i=typeof n.margin>"u"||n.margin===null||n.margin<0?4:n.margin,s=n.width&&n.width>=21?n.width:void 0,o=n.scale||4;return{width:s,scale:s?4:o,margin:i,color:{dark:e(n.color.dark||"#000000ff"),light:e(n.color.light||"#ffffffff")},type:n.type,rendererOpts:n.rendererOpts||{}}},r.getScale=function(n,i){return i.width&&i.width>=n+i.margin*2?i.width/(n+i.margin*2):i.scale},r.getImageWidth=function(n,i){const s=r.getScale(n,i);return Math.floor((n+i.margin*2)*s)},r.qrToImageData=function(n,i,s){const o=i.modules.size,a=i.modules.data,l=r.getScale(o,s),c=Math.floor((o+s.margin*2)*l),u=s.margin*l,g=[s.color.light,s.color.dark];for(let h=0;h<c;h++)for(let p=0;p<c;p++){let w=(h*c+p)*4,C=s.color.light;if(h>=u&&p>=u&&h<c-u&&p<c-u){const m=Math.floor((h-u)/l),x=Math.floor((p-u)/l);C=g[a[m*o+x]?1:0]}n[w++]=C.r,n[w++]=C.g,n[w++]=C.b,n[w]=C.a}}})(sn);(function(r){const e=sn;function t(i,s,o){i.clearRect(0,0,s.width,s.height),s.style||(s.style={}),s.height=o,s.width=o,s.style.height=o+"px",s.style.width=o+"px"}function n(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}r.render=function(s,o,a){let l=a,c=o;typeof l>"u"&&(!o||!o.getContext)&&(l=o,o=void 0),o||(c=n()),l=e.getOptions(l);const u=e.getImageWidth(s.modules.size,l),g=c.getContext("2d"),h=g.createImageData(u,u);return e.qrToImageData(h.data,s,l),t(g,c,u),g.putImageData(h,0,0),c},r.renderToDataURL=function(s,o,a){let l=a;typeof l>"u"&&(!o||!o.getContext)&&(l=o,o=void 0),l||(l={});const c=r.render(s,o,l),u=l.type||"image/png",g=l.rendererOpts||{};return c.toDataURL(u,g.quality)}})(mr);var br={};const Ns=sn;function Nn(r,e){const t=r.a/255,n=e+'="'+r.hex+'"';return t<1?n+" "+e+'-opacity="'+t.toFixed(2).slice(1)+'"':n}function Ot(r,e,t){let n=r+e;return typeof t<"u"&&(n+=" "+t),n}function Os(r,e,t){let n="",i=0,s=!1,o=0;for(let a=0;a<r.length;a++){const l=Math.floor(a%e),c=Math.floor(a/e);!l&&!s&&(s=!0),r[a]?(o++,a>0&&l>0&&r[a-1]||(n+=s?Ot("M",l+t,.5+c+t):Ot("m",i,0),i=0,s=!1),l+1<e&&r[a+1]||(n+=Ot("h",o),o=0)):i++}return n}br.render=function(e,t,n){const i=Ns.getOptions(t),s=e.modules.size,o=e.modules.data,a=s+i.margin*2,l=i.color.light.a?"<path "+Nn(i.color.light,"fill")+' d="M0 0h'+a+"v"+a+'H0z"/>':"",c="<path "+Nn(i.color.dark,"stroke")+' d="'+Os(o,s,i.margin)+'"/>',u='viewBox="0 0 '+a+" "+a+'"',h='<svg xmlns="http://www.w3.org/2000/svg" '+(i.width?'width="'+i.width+'" height="'+i.width+'" ':"")+u+' shape-rendering="crispEdges">'+l+c+`</svg>
69
- `;return typeof n=="function"&&n(null,h),h};const Ms=qi,Dt=rr,wr=mr,Ps=br;function on(r,e,t,n,i){const s=[].slice.call(arguments,1),o=s.length,a=typeof s[o-1]=="function";if(!a&&!Ms())throw new Error("Callback required as last argument");if(a){if(o<2)throw new Error("Too few arguments provided");o===2?(i=t,t=e,e=n=void 0):o===3&&(e.getContext&&typeof i>"u"?(i=n,n=void 0):(i=n,n=t,t=e,e=void 0))}else{if(o<1)throw new Error("Too few arguments provided");return o===1?(t=e,e=n=void 0):o===2&&!e.getContext&&(n=t,t=e,e=void 0),new Promise(function(l,c){try{const u=Dt.create(t,n);l(r(u,e,n))}catch(u){c(u)}})}try{const l=Dt.create(t,n);i(null,r(l,e,n))}catch(l){i(l)}}Dt.create;on.bind(null,wr.render);on.bind(null,wr.renderToDataURL);var Ts=on.bind(null,function(r,e,t){return Ps.render(r,t)});const Is=`<style>
68
+ `);const o=_s(e,t,i),a=dt.getSymbolSize(e),l=new ps(a);return xs(l,e),vs(l),Cs(l,e),Nt(l,t,0),e>=7&&Ss(l,e),As(l,o),isNaN(n)&&(n=$t.getBestMask(l,Nt.bind(null,l,t))),$t.applyMask(n,l),Nt(l,t,n),{modules:l,version:e,errorCorrectionLevel:t,maskPattern:n,segments:i}}rr.create=function(e,t){if(typeof e>"u"||e==="")throw new Error("No input text");let n=Rt.M,i,s;return typeof t<"u"&&(n=Rt.from(t.errorCorrectionLevel,Rt.M),i=nt.from(t.version),s=$t.from(t.maskPattern),t.toSJISFunc&&dt.setToSJISFunction(t.toSJISFunc)),ks(e,i,n,s)};var mr={},sn={};(function(r){function e(t){if(typeof t=="number"&&(t=t.toString()),typeof t!="string")throw new Error("Color should be defined as hex string");let n=t.slice().replace("#","").split("");if(n.length<3||n.length===5||n.length>8)throw new Error("Invalid hex color: "+t);(n.length===3||n.length===4)&&(n=Array.prototype.concat.apply([],n.map(function(s){return[s,s]}))),n.length===6&&n.push("F","F");const i=parseInt(n.join(""),16);return{r:i>>24&255,g:i>>16&255,b:i>>8&255,a:i&255,hex:"#"+n.slice(0,6).join("")}}r.getOptions=function(n){n||(n={}),n.color||(n.color={});const i=typeof n.margin>"u"||n.margin===null||n.margin<0?4:n.margin,s=n.width&&n.width>=21?n.width:void 0,o=n.scale||4;return{width:s,scale:s?4:o,margin:i,color:{dark:e(n.color.dark||"#000000ff"),light:e(n.color.light||"#ffffffff")},type:n.type,rendererOpts:n.rendererOpts||{}}},r.getScale=function(n,i){return i.width&&i.width>=n+i.margin*2?i.width/(n+i.margin*2):i.scale},r.getImageWidth=function(n,i){const s=r.getScale(n,i);return Math.floor((n+i.margin*2)*s)},r.qrToImageData=function(n,i,s){const o=i.modules.size,a=i.modules.data,l=r.getScale(o,s),c=Math.floor((o+s.margin*2)*l),u=s.margin*l,g=[s.color.light,s.color.dark];for(let h=0;h<c;h++)for(let p=0;p<c;p++){let y=(h*c+p)*4,C=s.color.light;if(h>=u&&p>=u&&h<c-u&&p<c-u){const m=Math.floor((h-u)/l),x=Math.floor((p-u)/l);C=g[a[m*o+x]?1:0]}n[y++]=C.r,n[y++]=C.g,n[y++]=C.b,n[y]=C.a}}})(sn);(function(r){const e=sn;function t(i,s,o){i.clearRect(0,0,s.width,s.height),s.style||(s.style={}),s.height=o,s.width=o,s.style.height=o+"px",s.style.width=o+"px"}function n(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}r.render=function(s,o,a){let l=a,c=o;typeof l>"u"&&(!o||!o.getContext)&&(l=o,o=void 0),o||(c=n()),l=e.getOptions(l);const u=e.getImageWidth(s.modules.size,l),g=c.getContext("2d"),h=g.createImageData(u,u);return e.qrToImageData(h.data,s,l),t(g,c,u),g.putImageData(h,0,0),c},r.renderToDataURL=function(s,o,a){let l=a;typeof l>"u"&&(!o||!o.getContext)&&(l=o,o=void 0),l||(l={});const c=r.render(s,o,l),u=l.type||"image/png",g=l.rendererOpts||{};return c.toDataURL(u,g.quality)}})(mr);var br={};const Ns=sn;function Nn(r,e){const t=r.a/255,n=e+'="'+r.hex+'"';return t<1?n+" "+e+'-opacity="'+t.toFixed(2).slice(1)+'"':n}function Ot(r,e,t){let n=r+e;return typeof t<"u"&&(n+=" "+t),n}function Os(r,e,t){let n="",i=0,s=!1,o=0;for(let a=0;a<r.length;a++){const l=Math.floor(a%e),c=Math.floor(a/e);!l&&!s&&(s=!0),r[a]?(o++,a>0&&l>0&&r[a-1]||(n+=s?Ot("M",l+t,.5+c+t):Ot("m",i,0),i=0,s=!1),l+1<e&&r[a+1]||(n+=Ot("h",o),o=0)):i++}return n}br.render=function(e,t,n){const i=Ns.getOptions(t),s=e.modules.size,o=e.modules.data,a=s+i.margin*2,l=i.color.light.a?"<path "+Nn(i.color.light,"fill")+' d="M0 0h'+a+"v"+a+'H0z"/>':"",c="<path "+Nn(i.color.dark,"stroke")+' d="'+Os(o,s,i.margin)+'"/>',u='viewBox="0 0 '+a+" "+a+'"',h='<svg xmlns="http://www.w3.org/2000/svg" '+(i.width?'width="'+i.width+'" height="'+i.width+'" ':"")+u+' shape-rendering="crispEdges">'+l+c+`</svg>
69
+ `;return typeof n=="function"&&n(null,h),h};const Ms=qi,Dt=rr,yr=mr,Ps=br;function on(r,e,t,n,i){const s=[].slice.call(arguments,1),o=s.length,a=typeof s[o-1]=="function";if(!a&&!Ms())throw new Error("Callback required as last argument");if(a){if(o<2)throw new Error("Too few arguments provided");o===2?(i=t,t=e,e=n=void 0):o===3&&(e.getContext&&typeof i>"u"?(i=n,n=void 0):(i=n,n=t,t=e,e=void 0))}else{if(o<1)throw new Error("Too few arguments provided");return o===1?(t=e,e=n=void 0):o===2&&!e.getContext&&(n=t,t=e,e=void 0),new Promise(function(l,c){try{const u=Dt.create(t,n);l(r(u,e,n))}catch(u){c(u)}})}try{const l=Dt.create(t,n);i(null,r(l,e,n))}catch(l){i(l)}}Dt.create;on.bind(null,yr.render);on.bind(null,yr.renderToDataURL);var Ts=on.bind(null,function(r,e,t){return Ps.render(r,t)});const Is=`<style>
70
70
  :host {
71
71
  display: flex;
72
72
  }
@@ -80,7 +80,7 @@ Minimum version required to store current data is: `+s+`.
80
80
  }
81
81
  </style>
82
82
  <div id="qr-code-container"></div>
83
- `,ct=class ct extends Fi{is(){return ct.ID}get data(){return this.getAttribute("data")}set data(e){this.setAttribute("data",e)}get margin(){return this.hasAttribute("margin")?parseInt(this.getAttribute("margin")):1}set margin(e){this.setAttribute("margin",e.toString())}static get observedAttributes(){return["data","margin"]}generate(){if(!this.data||!this.shadowRoot)return;const e=this.shadowRoot.getElementById("qr-code-container");Ts(this.data,{margin:this.margin}).then(t=>e.innerHTML=t)}template(){const e=document.createElement("template");return e.innerHTML=Is,e}constructor(){super()}connectedCallback(){super.connectedCallback(),this.generate()}attributeChangedCallback(){this.generate()}};ct.ID="sd-qrcode";let Se=ct;customElements.get(Se.ID)||customElements.define(Se.ID,Se);var an={exports:{}},B=String,yr=function(){return{isColorSupported:!1,reset:B,bold:B,dim:B,italic:B,underline:B,inverse:B,hidden:B,strikethrough:B,black:B,red:B,green:B,yellow:B,blue:B,magenta:B,cyan:B,white:B,gray:B,bgBlack:B,bgRed:B,bgGreen:B,bgYellow:B,bgBlue:B,bgMagenta:B,bgCyan:B,bgWhite:B}};an.exports=yr();an.exports.createColors=yr;var Bs=an.exports;const Ls={},$s=Object.freeze(Object.defineProperty({__proto__:null,default:Ls},Symbol.toStringTag,{value:"Module"})),V=Hi($s);let On=Bs,Mn=V,Ut=class Er extends Error{constructor(e,t,n,i,s,o){super(e),this.name="CssSyntaxError",this.reason=e,s&&(this.file=s),i&&(this.source=i),o&&(this.plugin=o),typeof t<"u"&&typeof n<"u"&&(typeof t=="number"?(this.line=t,this.column=n):(this.line=t.line,this.column=t.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,Er)}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=On.isColorSupported),Mn&&e&&(t=Mn(t));let n=t.split(/\r?\n/),i=Math.max(this.line-3,0),s=Math.min(this.line+2,n.length),o=String(s).length,a,l;if(e){let{bold:c,gray:u,red:g}=On.createColors(!0);a=h=>c(g(h)),l=h=>u(h)}else a=l=c=>c;return n.slice(i,s).map((c,u)=>{let g=i+1+u,h=" "+(" "+g).slice(-o)+" | ";if(g===this.line){let p=l(h.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return a(">")+l(h)+c+`
83
+ `,ct=class ct extends Fi{is(){return ct.ID}get data(){return this.getAttribute("data")}set data(e){this.setAttribute("data",e)}get margin(){return this.hasAttribute("margin")?parseInt(this.getAttribute("margin")):1}set margin(e){this.setAttribute("margin",e.toString())}static get observedAttributes(){return["data","margin"]}generate(){if(!this.data||!this.shadowRoot)return;const e=this.shadowRoot.getElementById("qr-code-container");Ts(this.data,{margin:this.margin}).then(t=>e.innerHTML=t)}template(){const e=document.createElement("template");return e.innerHTML=Is,e}constructor(){super()}connectedCallback(){super.connectedCallback(),this.generate()}attributeChangedCallback(){this.generate()}};ct.ID="sd-qrcode";let Se=ct;customElements.get(Se.ID)||customElements.define(Se.ID,Se);var an={exports:{}},B=String,wr=function(){return{isColorSupported:!1,reset:B,bold:B,dim:B,italic:B,underline:B,inverse:B,hidden:B,strikethrough:B,black:B,red:B,green:B,yellow:B,blue:B,magenta:B,cyan:B,white:B,gray:B,bgBlack:B,bgRed:B,bgGreen:B,bgYellow:B,bgBlue:B,bgMagenta:B,bgCyan:B,bgWhite:B}};an.exports=wr();an.exports.createColors=wr;var Bs=an.exports;const Ls={},$s=Object.freeze(Object.defineProperty({__proto__:null,default:Ls},Symbol.toStringTag,{value:"Module"})),V=Hi($s);let On=Bs,Mn=V,Ut=class Er extends Error{constructor(e,t,n,i,s,o){super(e),this.name="CssSyntaxError",this.reason=e,s&&(this.file=s),i&&(this.source=i),o&&(this.plugin=o),typeof t<"u"&&typeof n<"u"&&(typeof t=="number"?(this.line=t,this.column=n):(this.line=t.line,this.column=t.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,Er)}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=On.isColorSupported),Mn&&e&&(t=Mn(t));let n=t.split(/\r?\n/),i=Math.max(this.line-3,0),s=Math.min(this.line+2,n.length),o=String(s).length,a,l;if(e){let{bold:c,gray:u,red:g}=On.createColors(!0);a=h=>c(g(h)),l=h=>u(h)}else a=l=c=>c;return n.slice(i,s).map((c,u)=>{let g=i+1+u,h=" "+(" "+g).slice(-o)+" | ";if(g===this.line){let p=l(h.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return a(">")+l(h)+c+`
84
84
  `+p+a("^")}return" "+l(h)+c}).join(`
85
85
  `)}toString(){let e=this.showSourceCode();return e&&(e=`
86
86
 
@@ -102,11 +102,11 @@ Minimum version required to store current data is: `+s+`.
102
102
  `;this.css.includes(`\r
103
103
  `)&&(t=`\r
104
104
  `),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),n=e.root||et(e.file),i;this.mapOpts.sourcesContent===!1?(i=new Cr(e.text),i.sourcesContent&&(i.sourcesContent=i.sourcesContent.map(()=>null))):i=e.consumer(),this.map.applySourceMap(i,t,this.toUrl(this.path(n)))}}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(),oo&&so&&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=Xe.fromSourceMap(e)}else this.map=new Xe({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 Xe({file:this.outputFile()});let e=1,t=1,n="<no source>",i={generated:{column:0,line:0},original:{column:0,line:0},source:""},s,o;this.stringify(this.root,(a,l,c)=>{if(this.css+=a,l&&c!=="end"&&(i.generated.line=e,i.generated.column=t-1,l.source&&l.source.start?(i.source=this.sourcePath(l),i.original.line=l.source.start.line,i.original.column=l.source.start.column-1,this.map.addMapping(i)):(i.source=n,i.original.line=1,i.original.column=0,this.map.addMapping(i))),s=a.match(/\n/g),s?(e+=s.length,o=a.lastIndexOf(`
105
- `),t=a.length-o):t+=a.length,l&&c!=="start"){let u=l.parent||{raws:{}};(!(l.type==="decl"||l.type==="atrule"&&!l.nodes)||l!==u.last||u.raws.semicolon)&&(l.source&&l.source.end?(i.source=this.sourcePath(l),i.original.line=l.source.end.line,i.original.column=l.source.end.column-1,i.generated.line=e,i.generated.column=t-2,this.map.addMapping(i)):(i.source=n,i.original.line=1,i.original.column=0,i.generated.line=e,i.generated.column=t-1,this.map.addMapping(i)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(t=>t.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let n=this.opts.to?et(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(n=et(Ar(n,this.mapOpts.annotation)));let i=Sr(n,e);return this.memoizedPaths.set(e,i),i}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new io(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 n=t.source.input.from;if(n&&!e[n]){e[n]=!0;let i=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(i,t.source.input.css)}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(jn){let n=jn(e).toString();return this.memoizedFileURLs.set(e,n),n}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;_r==="\\"&&(e=e.replace(/\\/g,"/"));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}};var Rr=ao;let lo=pt,Jt=class extends lo{constructor(e){super(e),this.type="comment"}};var wt=Jt;Jt.default=Jt;let{isClean:kr,my:Nr}=Ie,Or=mt,Mr=wt,co=pt,Pr,cn,un,Tr;function Ir(r){return r.map(e=>(e.nodes&&(e.nodes=Ir(e.nodes)),delete e.source,e))}function Br(r){if(r[kr]=!1,r.proxyOf.nodes)for(let e of r.proxyOf.nodes)Br(e)}let ee=class Lr extends co{append(...e){for(let t of e){let n=this.normalize(t,this.last);for(let i of n)this.proxyOf.nodes.push(i)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),n,i;for(;this.indexes[t]<this.proxyOf.nodes.length&&(n=this.indexes[t],i=e(this.proxyOf.nodes[n],n),i!==!1);)this.indexes[t]+=1;return delete this.indexes[t],i}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:e[t]?t==="each"||typeof t=="string"&&t.startsWith("walk")?(...n)=>e[t](...n.map(i=>typeof i=="function"?(s,o)=>i(s.toProxy(),o):i)):t==="every"||t==="some"?n=>e[t]((i,...s)=>n(i.toProxy(),...s)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(n=>n.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,n){return e[t]===n||(e[t]=n,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let o of i)this.proxyOf.nodes.splice(n+1,0,o);let s;for(let o in this.indexes)s=this.indexes[o],n<s&&(this.indexes[o]=s+i.length);return this.markDirty(),this}insertBefore(e,t){let n=this.index(e),i=n===0?"prepend":!1,s=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(let a of s)this.proxyOf.nodes.splice(n,0,a);let o;for(let a in this.indexes)o=this.indexes[a],n<=o&&(this.indexes[a]=o+s.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=Ir(Pr(e).nodes);else if(Array.isArray(e)){e=e.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new Or(e)]}else if(e.selector)e=[new cn(e)];else if(e.name)e=[new un(e)];else if(e.text)e=[new Mr(e)];else throw new Error("Unknown node type in node creation");return e.map(i=>(i[Nr]||Lr.rebuild(i),i=i.proxyOf,i.parent&&i.parent.removeChild(i),i[kr]&&Br(i),typeof i.raws.before>"u"&&t&&typeof t.raws.before<"u"&&(i.raws.before=t.raws.before.replace(/\S/g,"")),i.parent=this.proxyOf,i))}prepend(...e){e=e.reverse();for(let t of e){let n=this.normalize(t,this.first,"prepend").reverse();for(let i of n)this.proxyOf.nodes.unshift(i);for(let i in this.indexes)this.indexes[i]=this.indexes[i]+n.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}replaceValues(e,t,n){return n||(n=t,t={}),this.walkDecls(i=>{t.props&&!t.props.includes(i.prop)||t.fast&&!i.value.includes(t.fast)||(i.value=i.value.replace(e,n))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,n)=>{let i;try{i=e(t,n)}catch(s){throw t.addToError(s)}return i!==!1&&t.walk&&(i=t.walk(e)),i})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="atrule"&&e.test(n.name))return t(n,i)}):this.walk((n,i)=>{if(n.type==="atrule"&&n.name===e)return t(n,i)}):(t=e,this.walk((n,i)=>{if(n.type==="atrule")return t(n,i)}))}walkComments(e){return this.walk((t,n)=>{if(t.type==="comment")return e(t,n)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="decl"&&e.test(n.prop))return t(n,i)}):this.walk((n,i)=>{if(n.type==="decl"&&n.prop===e)return t(n,i)}):(t=e,this.walk((n,i)=>{if(n.type==="decl")return t(n,i)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="rule"&&e.test(n.selector))return t(n,i)}):this.walk((n,i)=>{if(n.type==="rule"&&n.selector===e)return t(n,i)}):(t=e,this.walk((n,i)=>{if(n.type==="rule")return t(n,i)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};ee.registerParse=r=>{Pr=r};ee.registerRule=r=>{cn=r};ee.registerAtRule=r=>{un=r};ee.registerRoot=r=>{Tr=r};var ce=ee;ee.default=ee;ee.rebuild=r=>{r.type==="atrule"?Object.setPrototypeOf(r,un.prototype):r.type==="rule"?Object.setPrototypeOf(r,cn.prototype):r.type==="decl"?Object.setPrototypeOf(r,Or.prototype):r.type==="comment"?Object.setPrototypeOf(r,Mr.prototype):r.type==="root"&&Object.setPrototypeOf(r,Tr.prototype),r[Nr]=!0,r.nodes&&r.nodes.forEach(e=>{ee.rebuild(e)})};let uo=ce,$r,jr,Re=class extends uo{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new $r(new jr,this,e).stringify()}};Re.registerLazyResult=r=>{$r=r};Re.registerProcessor=r=>{jr=r};var fn=Re;Re.default=Re;let Zt=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let n=t.node.rangeBy(t);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(let n in t)this[n]=t[n]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};var Dr=Zt;Zt.default=Zt;let fo=Dr,Qt=class{constructor(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,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 n=new fo(e,t);return this.messages.push(n),n}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};var hn=Qt;Qt.default=Qt;const It=39,Dn=34,He=92,Un=47,qe=10,Ee=32,We=12,Ge=9,Ve=13,ho=91,go=93,po=40,mo=41,bo=123,wo=125,yo=59,Eo=42,xo=58,vo=64,Ke=/[\t\n\f\r "#'()/;[\\\]{}]/g,Je=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Co=/.[\r\n"'(/\\]/,zn=/[\da-f]/i;var So=function(e,t={}){let n=e.css.valueOf(),i=t.ignoreErrors,s,o,a,l,c,u,g,h,p,w,C=n.length,m=0,x=[],S=[];function v(){return m}function y(D){throw e.error("Unclosed "+D,m)}function k(){return S.length===0&&m>=C}function M(D){if(S.length)return S.pop();if(m>=C)return;let $=D?D.ignoreUnclosed:!1;switch(s=n.charCodeAt(m),s){case qe:case Ee:case Ge:case Ve:case We:{o=m;do o+=1,s=n.charCodeAt(o);while(s===Ee||s===qe||s===Ge||s===Ve||s===We);w=["space",n.slice(m,o)],m=o-1;break}case ho:case go:case bo:case wo:case xo:case yo:case mo:{let U=String.fromCharCode(s);w=[U,U,m];break}case po:{if(h=x.length?x.pop()[1]:"",p=n.charCodeAt(m+1),h==="url"&&p!==It&&p!==Dn&&p!==Ee&&p!==qe&&p!==Ge&&p!==We&&p!==Ve){o=m;do{if(u=!1,o=n.indexOf(")",o+1),o===-1)if(i||$){o=m;break}else y("bracket");for(g=o;n.charCodeAt(g-1)===He;)g-=1,u=!u}while(u);w=["brackets",n.slice(m,o+1),m,o],m=o}else o=n.indexOf(")",m+1),l=n.slice(m,o+1),o===-1||Co.test(l)?w=["(","(",m]:(w=["brackets",l,m,o],m=o);break}case It:case Dn:{a=s===It?"'":'"',o=m;do{if(u=!1,o=n.indexOf(a,o+1),o===-1)if(i||$){o=m+1;break}else y("string");for(g=o;n.charCodeAt(g-1)===He;)g-=1,u=!u}while(u);w=["string",n.slice(m,o+1),m,o],m=o;break}case vo:{Ke.lastIndex=m+1,Ke.test(n),Ke.lastIndex===0?o=n.length-1:o=Ke.lastIndex-2,w=["at-word",n.slice(m,o+1),m,o],m=o;break}case He:{for(o=m,c=!0;n.charCodeAt(o+1)===He;)o+=1,c=!c;if(s=n.charCodeAt(o+1),c&&s!==Un&&s!==Ee&&s!==qe&&s!==Ge&&s!==Ve&&s!==We&&(o+=1,zn.test(n.charAt(o)))){for(;zn.test(n.charAt(o+1));)o+=1;n.charCodeAt(o+1)===Ee&&(o+=1)}w=["word",n.slice(m,o+1),m,o],m=o;break}default:{s===Un&&n.charCodeAt(m+1)===Eo?(o=n.indexOf("*/",m+2)+1,o===0&&(i||$?o=n.length:y("comment")),w=["comment",n.slice(m,o+1),m,o],m=o):(Je.lastIndex=m+1,Je.test(n),Je.lastIndex===0?o=n.length-1:o=Je.lastIndex-2,w=["word",n.slice(m,o+1),m,o],x.push(w),m=o);break}}return m++,w}function T(D){S.push(D)}return{back:T,endOfFile:k,nextToken:M,position:v}};let Ur=ce,it=class extends Ur{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 dn=it;it.default=it;Ur.registerAtRule(it);let zr=ce,Fr,Hr,me=class extends zr{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,n){let i=super.normalize(e);if(t){if(n==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let s of i)s.raws.before=t.raws.before}return i}removeChild(e,t){let n=this.index(e);return!t&&n===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(e={}){return new Fr(new Hr,this,e).stringify()}};me.registerLazyResult=r=>{Fr=r};me.registerProcessor=r=>{Hr=r};var Be=me;me.default=me;zr.registerRoot(me);let ke={comma(r){return ke.split(r,[","],!0)},space(r){let e=[" ",`
106
- `," "];return ke.split(r,e)},split(r,e,t){let n=[],i="",s=!1,o=0,a=!1,l="",c=!1;for(let u of r)c?c=!1:u==="\\"?c=!0:a?u===l&&(a=!1):u==='"'||u==="'"?(a=!0,l=u):u==="("?o+=1:u===")"?o>0&&(o-=1):o===0&&e.includes(u)&&(s=!0),s?(i!==""&&n.push(i.trim()),i="",s=!1):i+=u;return(t||i!=="")&&n.push(i.trim()),n}};var qr=ke;ke.default=ke;let Wr=ce,Ao=qr,st=class extends Wr{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,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}};var gn=st;st.default=st;Wr.registerRule(st);let _o=mt,Ro=So,ko=wt,No=dn,Oo=Be,Fn=gn;const Hn={empty:!0,space:!0};function Mo(r){for(let e=r.length-1;e>=0;e--){let t=r[e],n=t[3]||t[2];if(n)return n}}let Po=class{constructor(e){this.input=e,this.root=new Oo,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 No;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let n,i,s,o=!1,a=!1,l=[],c=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),n=e[0],n==="("||n==="["?c.push(n==="("?")":"]"):n==="{"&&c.length>0?c.push("}"):n===c[c.length-1]&&c.pop(),c.length===0)if(n===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(n==="{"){a=!0;break}else if(n==="}"){if(l.length>0){for(s=l.length-1,i=l[s];i&&i[0]==="space";)i=l[--s];i&&(t.source.end=this.getPosition(i[3]||i[2]),t.source.end.offset++)}this.end(e);break}else l.push(e);else l.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(t.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(t,"params",l),o&&(e=l[l.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),a&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let n=0,i;for(let s=t-1;s>=0&&(i=e[s],!(i[0]!=="space"&&(n+=1,n===2)));s--);throw this.input.error("Missed semicolon",i[0]==="word"?i[3]+1:i[2])}colon(e){let t=0,n,i,s;for(let[o,a]of e.entries()){if(n=a,i=n[0],i==="("&&(t+=1),i===")"&&(t-=1),t===0&&i===":")if(!s)this.doubleColon(n);else{if(s[0]==="word"&&s[1]==="progid")continue;return o}s=n}return!1}comment(e){let t=new ko;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else{let i=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=i[2],t.raws.left=i[1],t.raws.right=i[3]}}createTokenizer(){this.tokenizer=Ro(this.input)}decl(e,t){let n=new _o;this.init(n,e[0][2]);let i=e[e.length-1];for(i[0]===";"&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(i[3]||i[2]||Mo(e)),n.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){let c=e[0][0];if(c===":"||c==="space"||c==="comment")break;n.prop+=e.shift()[1]}n.raws.between="";let s;for(;e.length;)if(s=e.shift(),s[0]===":"){n.raws.between+=s[1];break}else s[0]==="word"&&/\w/.test(s[1])&&this.unknownWord([s]),n.raws.between+=s[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let o=[],a;for(;e.length&&(a=e[0][0],!(a!=="space"&&a!=="comment"));)o.push(e.shift());this.precheckMissedSemicolon(e);for(let c=e.length-1;c>=0;c--){if(s=e[c],s[1].toLowerCase()==="!important"){n.important=!0;let u=this.stringFrom(e,c);u=this.spacesFromEnd(e)+u,u!==" !important"&&(n.raws.important=u);break}else if(s[1].toLowerCase()==="important"){let u=e.slice(0),g="";for(let h=c;h>0;h--){let p=u[h][0];if(g.trim().indexOf("!")===0&&p!=="space")break;g=u.pop()[1]+g}g.trim().indexOf("!")===0&&(n.important=!0,n.raws.important=g,e=u)}if(s[0]!=="space"&&s[0]!=="comment")break}e.some(c=>c[0]!=="space"&&c[0]!=="comment")&&(n.raws.between+=o.map(c=>c[1]).join(""),o=[]),this.raw(n,"value",o.concat(e),t),n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new Fn;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,n=null,i=!1,s=null,o=[],a=e[1].startsWith("--"),l=[],c=e;for(;c;){if(n=c[0],l.push(c),n==="("||n==="[")s||(s=c),o.push(n==="("?")":"]");else if(a&&i&&n==="{")s||(s=c),o.push("}");else if(o.length===0)if(n===";")if(i){this.decl(l,a);return}else break;else if(n==="{"){this.rule(l);return}else if(n==="}"){this.tokenizer.back(l.pop()),t=!0;break}else n===":"&&(i=!0);else n===o[o.length-1]&&(o.pop(),o.length===0&&(s=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(s),t&&i){if(!a)for(;l.length&&(c=l[l.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,a)}else this.unknownWord(l)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,n,i){let s,o,a=n.length,l="",c=!0,u,g;for(let h=0;h<a;h+=1)s=n[h],o=s[0],o==="space"&&h===a-1&&!i?c=!1:o==="comment"?(g=n[h-1]?n[h-1][0]:"empty",u=n[h+1]?n[h+1][0]:"empty",!Hn[g]&&!Hn[u]?l.slice(-1)===","?c=!1:l+=s[1]:c=!1):l+=s[1];if(!c){let h=n.reduce((p,w)=>p+w[1],"");e.raws[t]={raw:h,value:l}}e[t]=l}rule(e){e.pop();let t=new Fn;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let t,n="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)n+=e.shift()[1];return n}spacesFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],t==="space");)n=e.pop()[1]+n;return n}stringFrom(e,t){let n="";for(let i=t;i<e.length;i++)n+=e[i][1];return e.splice(t,e.length-t),n}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{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 To=Po;let Io=ce,Bo=To,Lo=bt;function ot(r,e){let t=new Lo(r,e),n=new Bo(t);try{n.parse()}catch(i){throw i}return n.root}var pn=ot;ot.default=ot;Io.registerParse(ot);let{isClean:Q,my:$o}=Ie,jo=Rr,Do=gt,Uo=ce,zo=fn,qn=hn,Fo=pn,Ho=Be;const qo={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Wo={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},Go={Once:!0,postcssPlugin:!0,prepare:!0},be=0;function xe(r){return typeof r=="object"&&typeof r.then=="function"}function Gr(r){let e=!1,t=qo[r.type];return r.type==="decl"?e=r.prop.toLowerCase():r.type==="atrule"&&(e=r.name.toLowerCase()),e&&r.append?[t,t+"-"+e,be,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:r.append?[t,be,t+"Exit"]:[t,t+"Exit"]}function Wn(r){let e;return r.type==="document"?e=["Document",be,"DocumentExit"]:r.type==="root"?e=["Root",be,"RootExit"]:e=Gr(r),{eventIndex:0,events:e,iterator:0,node:r,visitorIndex:0,visitors:[]}}function Yt(r){return r[Q]=!1,r.nodes&&r.nodes.forEach(e=>Yt(e)),r}let Xt={},we=class Vr{constructor(e,t,n){this.stringified=!1,this.processed=!1;let i;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))i=Yt(t);else if(t instanceof Vr||t instanceof qn)i=Yt(t.root),t.map&&(typeof n.map>"u"&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=t.map);else{let s=Fo;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(t,n)}catch(o){this.processed=!0,this.error=o}i&&!i[$o]&&Uo.rebuild(i)}this.result=new qn(e,i,n),this.helpers={...Xt,postcss:Xt,result:this.result},this.plugins=this.processor.plugins.map(s=>typeof s=="object"&&s.prepare?{...s,...s.prepare(this.result)}:s)}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 n=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=n.postcssPlugin,e.setMessage()):n.postcssVersion}catch(i){console&&console.error&&console.error(i)}return e}prepareVisitors(){this.listeners={};let e=(t,n,i)=>{this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].push([t,i])};for(let t of this.plugins)if(typeof t=="object")for(let n in t){if(!Wo[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Go[n])if(typeof t[n]=="object")for(let i in t[n])i==="*"?e(t,n,t[n][i]):e(t,n+"-"+i.toLowerCase(),t[n][i]);else typeof t[n]=="function"&&e(t,n,t[n])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],n=this.runOnRoot(t);if(xe(n))try{await n}catch(i){throw this.handleError(i)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Q];){e[Q]=!0;let t=[Wn(e)];for(;t.length>0;){let n=this.visitTick(t);if(xe(n))try{await n}catch(i){let s=t[t.length-1].node;throw this.handleError(i,s)}}}if(this.listeners.OnceExit)for(let[t,n]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let i=e.nodes.map(s=>n(s,this.helpers));await Promise.all(i)}else await n(e,this.helpers)}catch(i){throw this.handleError(i)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let t=this.result.root.nodes.map(n=>e.Once(n,this.helpers));return xe(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=Do;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let i=new jo(t,this.result.root,this.result.opts).generate();return this.result.css=i[0],this.result.map=i[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let t=this.runOnRoot(e);if(xe(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Q];)e[Q]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[n,i]of e){this.result.lastPlugin=n;let s;try{s=i(t,this.helpers)}catch(o){throw this.handleError(o,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(xe(s))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:n,visitors:i}=t;if(n.type!=="root"&&n.type!=="document"&&!n.parent){e.pop();return}if(i.length>0&&t.visitorIndex<i.length){let[o,a]=i[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===i.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return a(n.toProxy(),this.helpers)}catch(l){throw this.handleError(l,n)}}if(t.iterator!==0){let o=t.iterator,a;for(;a=n.nodes[n.indexes[o]];)if(n.indexes[o]+=1,!a[Q]){a[Q]=!0,e.push(Wn(a));return}t.iterator=0,delete n.indexes[o]}let s=t.events;for(;t.eventIndex<s.length;){let o=s[t.eventIndex];if(t.eventIndex+=1,o===be){n.nodes&&n.nodes.length&&(n[Q]=!0,t.iterator=n.getIterator());return}else if(this.listeners[o]){t.visitors=this.listeners[o];return}}e.pop()}walkSync(e){e[Q]=!0;let t=Gr(e);for(let n of t)if(n===be)e.nodes&&e.each(i=>{i[Q]||this.walkSync(i)});else{let i=this.listeners[n];if(i&&this.visitSync(i,e.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};we.registerPostcss=r=>{Xt=r};var Kr=we;we.default=we;Ho.registerLazyResult(we);zo.registerLazyResult(we);let Vo=Rr,Ko=gt,Jo=pn;const Zo=hn;let en=class{constructor(e,t,n){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=n,this._map=void 0;let i,s=Ko;this.result=new Zo(this._processor,i,this._opts),this.result.css=t;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let a=new Vo(s,i,this._opts,t);if(a.isMap()){let[l,c]=a.generate();l&&(this.result.css=l),c&&(this.result.map=c)}}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=Jo;try{e=t(this._css,this._opts)}catch(n){this.error=n}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};var Qo=en;en.default=en;let Yo=Qo,Xo=Kr,ea=fn,ta=Be,Ne=class{constructor(e=[]){this.version="8.4.32",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let n of e)if(n.postcss===!0?n=n():n.postcss&&(n=n.postcss),typeof n=="object"&&Array.isArray(n.plugins))t=t.concat(n.plugins);else if(typeof n=="object"&&n.postcssPlugin)t.push(n);else if(typeof n=="function")t.push(n);else if(!(typeof n=="object"&&(n.parse||n.stringify)))throw new Error(n+" 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 Yo(this,e,t):new Xo(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var na=Ne;Ne.default=Ne;ta.registerProcessor(Ne);ea.registerProcessor(Ne);let ra=mt,ia=vr,sa=wt,oa=dn,aa=bt,la=Be,ca=gn;function Oe(r,e){if(Array.isArray(r))return r.map(i=>Oe(i));let{inputs:t,...n}=r;if(t){e=[];for(let i of t){let s={...i,__proto__:aa.prototype};s.map&&(s.map={...s.map,__proto__:ia.prototype}),e.push(s)}}if(n.nodes&&(n.nodes=r.nodes.map(i=>Oe(i,e))),n.source){let{inputId:i,...s}=n.source;n.source=s,i!=null&&(n.source.input=e[i])}if(n.type==="root")return new la(n);if(n.type==="decl")return new ra(n);if(n.type==="rule")return new ca(n);if(n.type==="comment")return new sa(n);if(n.type==="atrule")return new oa(n);throw new Error("Unknown node type: "+r.type)}var ua=Oe;Oe.default=Oe;var Gn={};let fa=ln,Jr=mt,ha=Kr,da=ce,mn=na,ga=gt,pa=ua,Zr=fn,ma=Dr,Qr=wt,Yr=dn,ba=hn,wa=bt,ya=pn,Ea=qr,Xr=gn,ei=Be,xa=pt;function O(...r){return r.length===1&&Array.isArray(r[0])&&(r=r[0]),new mn(r)}O.plugin=function(e,t){let n=!1;function i(...o){console&&console.warn&&!n&&(n=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
105
+ `),t=a.length-o):t+=a.length,l&&c!=="start"){let u=l.parent||{raws:{}};(!(l.type==="decl"||l.type==="atrule"&&!l.nodes)||l!==u.last||u.raws.semicolon)&&(l.source&&l.source.end?(i.source=this.sourcePath(l),i.original.line=l.source.end.line,i.original.column=l.source.end.column-1,i.generated.line=e,i.generated.column=t-2,this.map.addMapping(i)):(i.source=n,i.original.line=1,i.original.column=0,i.generated.line=e,i.generated.column=t-1,this.map.addMapping(i)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(t=>t.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let n=this.opts.to?et(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(n=et(Ar(n,this.mapOpts.annotation)));let i=Sr(n,e);return this.memoizedPaths.set(e,i),i}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new io(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 n=t.source.input.from;if(n&&!e[n]){e[n]=!0;let i=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(i,t.source.input.css)}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(jn){let n=jn(e).toString();return this.memoizedFileURLs.set(e,n),n}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;_r==="\\"&&(e=e.replace(/\\/g,"/"));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}};var Rr=ao;let lo=pt,Jt=class extends lo{constructor(e){super(e),this.type="comment"}};var yt=Jt;Jt.default=Jt;let{isClean:kr,my:Nr}=Ie,Or=mt,Mr=yt,co=pt,Pr,cn,un,Tr;function Ir(r){return r.map(e=>(e.nodes&&(e.nodes=Ir(e.nodes)),delete e.source,e))}function Br(r){if(r[kr]=!1,r.proxyOf.nodes)for(let e of r.proxyOf.nodes)Br(e)}let ee=class Lr extends co{append(...e){for(let t of e){let n=this.normalize(t,this.last);for(let i of n)this.proxyOf.nodes.push(i)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),n,i;for(;this.indexes[t]<this.proxyOf.nodes.length&&(n=this.indexes[t],i=e(this.proxyOf.nodes[n],n),i!==!1);)this.indexes[t]+=1;return delete this.indexes[t],i}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:e[t]?t==="each"||typeof t=="string"&&t.startsWith("walk")?(...n)=>e[t](...n.map(i=>typeof i=="function"?(s,o)=>i(s.toProxy(),o):i)):t==="every"||t==="some"?n=>e[t]((i,...s)=>n(i.toProxy(),...s)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(n=>n.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,n){return e[t]===n||(e[t]=n,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let o of i)this.proxyOf.nodes.splice(n+1,0,o);let s;for(let o in this.indexes)s=this.indexes[o],n<s&&(this.indexes[o]=s+i.length);return this.markDirty(),this}insertBefore(e,t){let n=this.index(e),i=n===0?"prepend":!1,s=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(let a of s)this.proxyOf.nodes.splice(n,0,a);let o;for(let a in this.indexes)o=this.indexes[a],n<=o&&(this.indexes[a]=o+s.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=Ir(Pr(e).nodes);else if(Array.isArray(e)){e=e.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new Or(e)]}else if(e.selector)e=[new cn(e)];else if(e.name)e=[new un(e)];else if(e.text)e=[new Mr(e)];else throw new Error("Unknown node type in node creation");return e.map(i=>(i[Nr]||Lr.rebuild(i),i=i.proxyOf,i.parent&&i.parent.removeChild(i),i[kr]&&Br(i),typeof i.raws.before>"u"&&t&&typeof t.raws.before<"u"&&(i.raws.before=t.raws.before.replace(/\S/g,"")),i.parent=this.proxyOf,i))}prepend(...e){e=e.reverse();for(let t of e){let n=this.normalize(t,this.first,"prepend").reverse();for(let i of n)this.proxyOf.nodes.unshift(i);for(let i in this.indexes)this.indexes[i]=this.indexes[i]+n.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}replaceValues(e,t,n){return n||(n=t,t={}),this.walkDecls(i=>{t.props&&!t.props.includes(i.prop)||t.fast&&!i.value.includes(t.fast)||(i.value=i.value.replace(e,n))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,n)=>{let i;try{i=e(t,n)}catch(s){throw t.addToError(s)}return i!==!1&&t.walk&&(i=t.walk(e)),i})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="atrule"&&e.test(n.name))return t(n,i)}):this.walk((n,i)=>{if(n.type==="atrule"&&n.name===e)return t(n,i)}):(t=e,this.walk((n,i)=>{if(n.type==="atrule")return t(n,i)}))}walkComments(e){return this.walk((t,n)=>{if(t.type==="comment")return e(t,n)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="decl"&&e.test(n.prop))return t(n,i)}):this.walk((n,i)=>{if(n.type==="decl"&&n.prop===e)return t(n,i)}):(t=e,this.walk((n,i)=>{if(n.type==="decl")return t(n,i)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="rule"&&e.test(n.selector))return t(n,i)}):this.walk((n,i)=>{if(n.type==="rule"&&n.selector===e)return t(n,i)}):(t=e,this.walk((n,i)=>{if(n.type==="rule")return t(n,i)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};ee.registerParse=r=>{Pr=r};ee.registerRule=r=>{cn=r};ee.registerAtRule=r=>{un=r};ee.registerRoot=r=>{Tr=r};var ce=ee;ee.default=ee;ee.rebuild=r=>{r.type==="atrule"?Object.setPrototypeOf(r,un.prototype):r.type==="rule"?Object.setPrototypeOf(r,cn.prototype):r.type==="decl"?Object.setPrototypeOf(r,Or.prototype):r.type==="comment"?Object.setPrototypeOf(r,Mr.prototype):r.type==="root"&&Object.setPrototypeOf(r,Tr.prototype),r[Nr]=!0,r.nodes&&r.nodes.forEach(e=>{ee.rebuild(e)})};let uo=ce,$r,jr,Re=class extends uo{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new $r(new jr,this,e).stringify()}};Re.registerLazyResult=r=>{$r=r};Re.registerProcessor=r=>{jr=r};var fn=Re;Re.default=Re;let Zt=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let n=t.node.rangeBy(t);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(let n in t)this[n]=t[n]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};var Dr=Zt;Zt.default=Zt;let fo=Dr,Qt=class{constructor(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,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 n=new fo(e,t);return this.messages.push(n),n}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};var hn=Qt;Qt.default=Qt;const It=39,Dn=34,He=92,Un=47,qe=10,Ee=32,We=12,Ge=9,Ve=13,ho=91,go=93,po=40,mo=41,bo=123,yo=125,wo=59,Eo=42,xo=58,vo=64,Ke=/[\t\n\f\r "#'()/;[\\\]{}]/g,Je=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Co=/.[\r\n"'(/\\]/,zn=/[\da-f]/i;var So=function(e,t={}){let n=e.css.valueOf(),i=t.ignoreErrors,s,o,a,l,c,u,g,h,p,y,C=n.length,m=0,x=[],S=[];function v(){return m}function w(D){throw e.error("Unclosed "+D,m)}function k(){return S.length===0&&m>=C}function M(D){if(S.length)return S.pop();if(m>=C)return;let $=D?D.ignoreUnclosed:!1;switch(s=n.charCodeAt(m),s){case qe:case Ee:case Ge:case Ve:case We:{o=m;do o+=1,s=n.charCodeAt(o);while(s===Ee||s===qe||s===Ge||s===Ve||s===We);y=["space",n.slice(m,o)],m=o-1;break}case ho:case go:case bo:case yo:case xo:case wo:case mo:{let U=String.fromCharCode(s);y=[U,U,m];break}case po:{if(h=x.length?x.pop()[1]:"",p=n.charCodeAt(m+1),h==="url"&&p!==It&&p!==Dn&&p!==Ee&&p!==qe&&p!==Ge&&p!==We&&p!==Ve){o=m;do{if(u=!1,o=n.indexOf(")",o+1),o===-1)if(i||$){o=m;break}else w("bracket");for(g=o;n.charCodeAt(g-1)===He;)g-=1,u=!u}while(u);y=["brackets",n.slice(m,o+1),m,o],m=o}else o=n.indexOf(")",m+1),l=n.slice(m,o+1),o===-1||Co.test(l)?y=["(","(",m]:(y=["brackets",l,m,o],m=o);break}case It:case Dn:{a=s===It?"'":'"',o=m;do{if(u=!1,o=n.indexOf(a,o+1),o===-1)if(i||$){o=m+1;break}else w("string");for(g=o;n.charCodeAt(g-1)===He;)g-=1,u=!u}while(u);y=["string",n.slice(m,o+1),m,o],m=o;break}case vo:{Ke.lastIndex=m+1,Ke.test(n),Ke.lastIndex===0?o=n.length-1:o=Ke.lastIndex-2,y=["at-word",n.slice(m,o+1),m,o],m=o;break}case He:{for(o=m,c=!0;n.charCodeAt(o+1)===He;)o+=1,c=!c;if(s=n.charCodeAt(o+1),c&&s!==Un&&s!==Ee&&s!==qe&&s!==Ge&&s!==Ve&&s!==We&&(o+=1,zn.test(n.charAt(o)))){for(;zn.test(n.charAt(o+1));)o+=1;n.charCodeAt(o+1)===Ee&&(o+=1)}y=["word",n.slice(m,o+1),m,o],m=o;break}default:{s===Un&&n.charCodeAt(m+1)===Eo?(o=n.indexOf("*/",m+2)+1,o===0&&(i||$?o=n.length:w("comment")),y=["comment",n.slice(m,o+1),m,o],m=o):(Je.lastIndex=m+1,Je.test(n),Je.lastIndex===0?o=n.length-1:o=Je.lastIndex-2,y=["word",n.slice(m,o+1),m,o],x.push(y),m=o);break}}return m++,y}function T(D){S.push(D)}return{back:T,endOfFile:k,nextToken:M,position:v}};let Ur=ce,it=class extends Ur{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 dn=it;it.default=it;Ur.registerAtRule(it);let zr=ce,Fr,Hr,me=class extends zr{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,n){let i=super.normalize(e);if(t){if(n==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let s of i)s.raws.before=t.raws.before}return i}removeChild(e,t){let n=this.index(e);return!t&&n===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(e={}){return new Fr(new Hr,this,e).stringify()}};me.registerLazyResult=r=>{Fr=r};me.registerProcessor=r=>{Hr=r};var Be=me;me.default=me;zr.registerRoot(me);let ke={comma(r){return ke.split(r,[","],!0)},space(r){let e=[" ",`
106
+ `," "];return ke.split(r,e)},split(r,e,t){let n=[],i="",s=!1,o=0,a=!1,l="",c=!1;for(let u of r)c?c=!1:u==="\\"?c=!0:a?u===l&&(a=!1):u==='"'||u==="'"?(a=!0,l=u):u==="("?o+=1:u===")"?o>0&&(o-=1):o===0&&e.includes(u)&&(s=!0),s?(i!==""&&n.push(i.trim()),i="",s=!1):i+=u;return(t||i!=="")&&n.push(i.trim()),n}};var qr=ke;ke.default=ke;let Wr=ce,Ao=qr,st=class extends Wr{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,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}};var gn=st;st.default=st;Wr.registerRule(st);let _o=mt,Ro=So,ko=yt,No=dn,Oo=Be,Fn=gn;const Hn={empty:!0,space:!0};function Mo(r){for(let e=r.length-1;e>=0;e--){let t=r[e],n=t[3]||t[2];if(n)return n}}let Po=class{constructor(e){this.input=e,this.root=new Oo,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 No;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let n,i,s,o=!1,a=!1,l=[],c=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),n=e[0],n==="("||n==="["?c.push(n==="("?")":"]"):n==="{"&&c.length>0?c.push("}"):n===c[c.length-1]&&c.pop(),c.length===0)if(n===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(n==="{"){a=!0;break}else if(n==="}"){if(l.length>0){for(s=l.length-1,i=l[s];i&&i[0]==="space";)i=l[--s];i&&(t.source.end=this.getPosition(i[3]||i[2]),t.source.end.offset++)}this.end(e);break}else l.push(e);else l.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(t.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(t,"params",l),o&&(e=l[l.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),a&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let n=0,i;for(let s=t-1;s>=0&&(i=e[s],!(i[0]!=="space"&&(n+=1,n===2)));s--);throw this.input.error("Missed semicolon",i[0]==="word"?i[3]+1:i[2])}colon(e){let t=0,n,i,s;for(let[o,a]of e.entries()){if(n=a,i=n[0],i==="("&&(t+=1),i===")"&&(t-=1),t===0&&i===":")if(!s)this.doubleColon(n);else{if(s[0]==="word"&&s[1]==="progid")continue;return o}s=n}return!1}comment(e){let t=new ko;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else{let i=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=i[2],t.raws.left=i[1],t.raws.right=i[3]}}createTokenizer(){this.tokenizer=Ro(this.input)}decl(e,t){let n=new _o;this.init(n,e[0][2]);let i=e[e.length-1];for(i[0]===";"&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(i[3]||i[2]||Mo(e)),n.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){let c=e[0][0];if(c===":"||c==="space"||c==="comment")break;n.prop+=e.shift()[1]}n.raws.between="";let s;for(;e.length;)if(s=e.shift(),s[0]===":"){n.raws.between+=s[1];break}else s[0]==="word"&&/\w/.test(s[1])&&this.unknownWord([s]),n.raws.between+=s[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let o=[],a;for(;e.length&&(a=e[0][0],!(a!=="space"&&a!=="comment"));)o.push(e.shift());this.precheckMissedSemicolon(e);for(let c=e.length-1;c>=0;c--){if(s=e[c],s[1].toLowerCase()==="!important"){n.important=!0;let u=this.stringFrom(e,c);u=this.spacesFromEnd(e)+u,u!==" !important"&&(n.raws.important=u);break}else if(s[1].toLowerCase()==="important"){let u=e.slice(0),g="";for(let h=c;h>0;h--){let p=u[h][0];if(g.trim().indexOf("!")===0&&p!=="space")break;g=u.pop()[1]+g}g.trim().indexOf("!")===0&&(n.important=!0,n.raws.important=g,e=u)}if(s[0]!=="space"&&s[0]!=="comment")break}e.some(c=>c[0]!=="space"&&c[0]!=="comment")&&(n.raws.between+=o.map(c=>c[1]).join(""),o=[]),this.raw(n,"value",o.concat(e),t),n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new Fn;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,n=null,i=!1,s=null,o=[],a=e[1].startsWith("--"),l=[],c=e;for(;c;){if(n=c[0],l.push(c),n==="("||n==="[")s||(s=c),o.push(n==="("?")":"]");else if(a&&i&&n==="{")s||(s=c),o.push("}");else if(o.length===0)if(n===";")if(i){this.decl(l,a);return}else break;else if(n==="{"){this.rule(l);return}else if(n==="}"){this.tokenizer.back(l.pop()),t=!0;break}else n===":"&&(i=!0);else n===o[o.length-1]&&(o.pop(),o.length===0&&(s=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(s),t&&i){if(!a)for(;l.length&&(c=l[l.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,a)}else this.unknownWord(l)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,n,i){let s,o,a=n.length,l="",c=!0,u,g;for(let h=0;h<a;h+=1)s=n[h],o=s[0],o==="space"&&h===a-1&&!i?c=!1:o==="comment"?(g=n[h-1]?n[h-1][0]:"empty",u=n[h+1]?n[h+1][0]:"empty",!Hn[g]&&!Hn[u]?l.slice(-1)===","?c=!1:l+=s[1]:c=!1):l+=s[1];if(!c){let h=n.reduce((p,y)=>p+y[1],"");e.raws[t]={raw:h,value:l}}e[t]=l}rule(e){e.pop();let t=new Fn;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let t,n="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)n+=e.shift()[1];return n}spacesFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],t==="space");)n=e.pop()[1]+n;return n}stringFrom(e,t){let n="";for(let i=t;i<e.length;i++)n+=e[i][1];return e.splice(t,e.length-t),n}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{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 To=Po;let Io=ce,Bo=To,Lo=bt;function ot(r,e){let t=new Lo(r,e),n=new Bo(t);try{n.parse()}catch(i){throw i}return n.root}var pn=ot;ot.default=ot;Io.registerParse(ot);let{isClean:Q,my:$o}=Ie,jo=Rr,Do=gt,Uo=ce,zo=fn,qn=hn,Fo=pn,Ho=Be;const qo={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Wo={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},Go={Once:!0,postcssPlugin:!0,prepare:!0},be=0;function xe(r){return typeof r=="object"&&typeof r.then=="function"}function Gr(r){let e=!1,t=qo[r.type];return r.type==="decl"?e=r.prop.toLowerCase():r.type==="atrule"&&(e=r.name.toLowerCase()),e&&r.append?[t,t+"-"+e,be,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:r.append?[t,be,t+"Exit"]:[t,t+"Exit"]}function Wn(r){let e;return r.type==="document"?e=["Document",be,"DocumentExit"]:r.type==="root"?e=["Root",be,"RootExit"]:e=Gr(r),{eventIndex:0,events:e,iterator:0,node:r,visitorIndex:0,visitors:[]}}function Yt(r){return r[Q]=!1,r.nodes&&r.nodes.forEach(e=>Yt(e)),r}let Xt={},ye=class Vr{constructor(e,t,n){this.stringified=!1,this.processed=!1;let i;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))i=Yt(t);else if(t instanceof Vr||t instanceof qn)i=Yt(t.root),t.map&&(typeof n.map>"u"&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=t.map);else{let s=Fo;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(t,n)}catch(o){this.processed=!0,this.error=o}i&&!i[$o]&&Uo.rebuild(i)}this.result=new qn(e,i,n),this.helpers={...Xt,postcss:Xt,result:this.result},this.plugins=this.processor.plugins.map(s=>typeof s=="object"&&s.prepare?{...s,...s.prepare(this.result)}:s)}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 n=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=n.postcssPlugin,e.setMessage()):n.postcssVersion}catch(i){console&&console.error&&console.error(i)}return e}prepareVisitors(){this.listeners={};let e=(t,n,i)=>{this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].push([t,i])};for(let t of this.plugins)if(typeof t=="object")for(let n in t){if(!Wo[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Go[n])if(typeof t[n]=="object")for(let i in t[n])i==="*"?e(t,n,t[n][i]):e(t,n+"-"+i.toLowerCase(),t[n][i]);else typeof t[n]=="function"&&e(t,n,t[n])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],n=this.runOnRoot(t);if(xe(n))try{await n}catch(i){throw this.handleError(i)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Q];){e[Q]=!0;let t=[Wn(e)];for(;t.length>0;){let n=this.visitTick(t);if(xe(n))try{await n}catch(i){let s=t[t.length-1].node;throw this.handleError(i,s)}}}if(this.listeners.OnceExit)for(let[t,n]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let i=e.nodes.map(s=>n(s,this.helpers));await Promise.all(i)}else await n(e,this.helpers)}catch(i){throw this.handleError(i)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let t=this.result.root.nodes.map(n=>e.Once(n,this.helpers));return xe(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=Do;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let i=new jo(t,this.result.root,this.result.opts).generate();return this.result.css=i[0],this.result.map=i[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let t=this.runOnRoot(e);if(xe(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Q];)e[Q]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[n,i]of e){this.result.lastPlugin=n;let s;try{s=i(t,this.helpers)}catch(o){throw this.handleError(o,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(xe(s))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:n,visitors:i}=t;if(n.type!=="root"&&n.type!=="document"&&!n.parent){e.pop();return}if(i.length>0&&t.visitorIndex<i.length){let[o,a]=i[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===i.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return a(n.toProxy(),this.helpers)}catch(l){throw this.handleError(l,n)}}if(t.iterator!==0){let o=t.iterator,a;for(;a=n.nodes[n.indexes[o]];)if(n.indexes[o]+=1,!a[Q]){a[Q]=!0,e.push(Wn(a));return}t.iterator=0,delete n.indexes[o]}let s=t.events;for(;t.eventIndex<s.length;){let o=s[t.eventIndex];if(t.eventIndex+=1,o===be){n.nodes&&n.nodes.length&&(n[Q]=!0,t.iterator=n.getIterator());return}else if(this.listeners[o]){t.visitors=this.listeners[o];return}}e.pop()}walkSync(e){e[Q]=!0;let t=Gr(e);for(let n of t)if(n===be)e.nodes&&e.each(i=>{i[Q]||this.walkSync(i)});else{let i=this.listeners[n];if(i&&this.visitSync(i,e.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};ye.registerPostcss=r=>{Xt=r};var Kr=ye;ye.default=ye;Ho.registerLazyResult(ye);zo.registerLazyResult(ye);let Vo=Rr,Ko=gt,Jo=pn;const Zo=hn;let en=class{constructor(e,t,n){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=n,this._map=void 0;let i,s=Ko;this.result=new Zo(this._processor,i,this._opts),this.result.css=t;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let a=new Vo(s,i,this._opts,t);if(a.isMap()){let[l,c]=a.generate();l&&(this.result.css=l),c&&(this.result.map=c)}}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=Jo;try{e=t(this._css,this._opts)}catch(n){this.error=n}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};var Qo=en;en.default=en;let Yo=Qo,Xo=Kr,ea=fn,ta=Be,Ne=class{constructor(e=[]){this.version="8.4.32",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let n of e)if(n.postcss===!0?n=n():n.postcss&&(n=n.postcss),typeof n=="object"&&Array.isArray(n.plugins))t=t.concat(n.plugins);else if(typeof n=="object"&&n.postcssPlugin)t.push(n);else if(typeof n=="function")t.push(n);else if(!(typeof n=="object"&&(n.parse||n.stringify)))throw new Error(n+" 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 Yo(this,e,t):new Xo(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var na=Ne;Ne.default=Ne;ta.registerProcessor(Ne);ea.registerProcessor(Ne);let ra=mt,ia=vr,sa=yt,oa=dn,aa=bt,la=Be,ca=gn;function Oe(r,e){if(Array.isArray(r))return r.map(i=>Oe(i));let{inputs:t,...n}=r;if(t){e=[];for(let i of t){let s={...i,__proto__:aa.prototype};s.map&&(s.map={...s.map,__proto__:ia.prototype}),e.push(s)}}if(n.nodes&&(n.nodes=r.nodes.map(i=>Oe(i,e))),n.source){let{inputId:i,...s}=n.source;n.source=s,i!=null&&(n.source.input=e[i])}if(n.type==="root")return new la(n);if(n.type==="decl")return new ra(n);if(n.type==="rule")return new ca(n);if(n.type==="comment")return new sa(n);if(n.type==="atrule")return new oa(n);throw new Error("Unknown node type: "+r.type)}var ua=Oe;Oe.default=Oe;var Gn={};let fa=ln,Jr=mt,ha=Kr,da=ce,mn=na,ga=gt,pa=ua,Zr=fn,ma=Dr,Qr=yt,Yr=dn,ba=hn,ya=bt,wa=pn,Ea=qr,Xr=gn,ei=Be,xa=pt;function O(...r){return r.length===1&&Array.isArray(r[0])&&(r=r[0]),new mn(r)}O.plugin=function(e,t){let n=!1;function i(...o){console&&console.warn&&!n&&(n=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
107
107
  https://evilmartians.com/chronicles/postcss-8-plugin-migration`),Gn.LANG&&Gn.LANG.startsWith("cn")&&console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南:
108
- https://www.w3ctech.com/topic/2226`));let a=t(...o);return a.postcssPlugin=e,a.postcssVersion=new mn().version,a}let s;return Object.defineProperty(i,"postcss",{get(){return s||(s=i()),s}}),i.process=function(o,a,l){return O([i(l)]).process(o,a)},i};O.stringify=ga;O.parse=ya;O.fromJSON=pa;O.list=Ea;O.comment=r=>new Qr(r);O.atRule=r=>new Yr(r);O.decl=r=>new Jr(r);O.rule=r=>new Xr(r);O.root=r=>new ei(r);O.document=r=>new Zr(r);O.CssSyntaxError=fa;O.Declaration=Jr;O.Container=da;O.Processor=mn;O.Document=Zr;O.Comment=Qr;O.Warning=ma;O.AtRule=Yr;O.Result=ba;O.Input=wa;O.Rule=Xr;O.Root=ei;O.Node=xa;ha.registerPostcss(O);var va=O;O.default=O;const L=nr(va);L.stringify;L.fromJSON;L.plugin;L.parse;L.list;L.document;L.comment;L.atRule;L.rule;L.decl;L.root;L.CssSyntaxError;L.Declaration;L.Container;L.Processor;L.Document;L.Comment;L.Warning;L.AtRule;L.Result;L.Input;L.Rule;L.Root;L.Node;var Ca=function(e){const t=e.prefix,n=/\s+$/.test(t)?t:`${t} `,i=e.ignoreFiles?[].concat(e.ignoreFiles):[],s=e.includeFiles?[].concat(e.includeFiles):[];return function(o){i.length&&o.source.input.file&&Vn(o.source.input.file,i)||s.length&&o.source.input.file&&!Vn(o.source.input.file,s)||o.walkRules(a=>{const l=["keyframes","-webkit-keyframes","-moz-keyframes","-o-keyframes"];a.parent&&l.includes(a.parent.name)||(a.selectors=a.selectors.map(c=>e.exclude&&Sa(c,e.exclude)?c:e.transform?e.transform(t,c,n+c,o.source.input.file,a):n+c))})}};function Vn(r,e){return e.some(t=>t instanceof RegExp?t.test(r):r.includes(t))}function Sa(r,e){return e.some(t=>t instanceof RegExp?t.test(r):r===t)}const Aa=nr(Ca),_a="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}",Ra="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 ka(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function ti(r){return r instanceof Map?r.clear=r.delete=r.set=function(){throw new Error("map is read-only")}:r instanceof Set&&(r.add=r.clear=r.delete=function(){throw new Error("set is read-only")}),Object.freeze(r),Object.getOwnPropertyNames(r).forEach(e=>{const t=r[e],n=typeof t;(n==="object"||n==="function")&&!Object.isFrozen(t)&&ti(t)}),r}class Kn{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function ni(r){return r.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function re(r,...e){const t=Object.create(null);for(const n in r)t[n]=r[n];return e.forEach(function(n){for(const i in n)t[i]=n[i]}),t}const Na="</span>",Jn=r=>!!r.scope,Oa=(r,{prefix:e})=>{if(r.startsWith("language:"))return r.replace("language:","language-");if(r.includes(".")){const t=r.split(".");return[`${e}${t.shift()}`,...t.map((n,i)=>`${n}${"_".repeat(i+1)}`)].join(" ")}return`${e}${r}`};class Ma{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=ni(e)}openNode(e){if(!Jn(e))return;const t=Oa(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){Jn(e)&&(this.buffer+=Na)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}const Zn=(r={})=>{const e={children:[]};return Object.assign(e,r),e};class bn{constructor(){this.rootNode=Zn(),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=Zn({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(n=>this._walk(e,n)),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=>{bn._collapse(t)}))}}class Pa extends bn{constructor(e){super(),this.options=e}addText(e){e!==""&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,t){const n=e.root;t&&(n.scope=`language:${t}`),this.add(n)}toHTML(){return new Ma(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function Me(r){return r?typeof r=="string"?r:r.source:null}function ri(r){return ue("(?=",r,")")}function Ta(r){return ue("(?:",r,")*")}function Ia(r){return ue("(?:",r,")?")}function ue(...r){return r.map(e=>Me(e)).join("")}function Ba(r){const e=r[r.length-1];return typeof e=="object"&&e.constructor===Object?(r.splice(r.length-1,1),e):{}}function wn(...r){return"("+(Ba(r).capture?"":"?:")+r.map(e=>Me(e)).join("|")+")"}function ii(r){return new RegExp(r.toString()+"|").exec("").length-1}function La(r,e){const t=r&&r.exec(e);return t&&t.index===0}const $a=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function yn(r,{joinWith:e}){let t=0;return r.map(n=>{t+=1;const i=t;let s=Me(n),o="";for(;s.length>0;){const a=$a.exec(s);if(!a){o+=s;break}o+=s.substring(0,a.index),s=s.substring(a.index+a[0].length),a[0][0]==="\\"&&a[1]?o+="\\"+String(Number(a[1])+i):(o+=a[0],a[0]==="("&&t++)}return o}).map(n=>`(${n})`).join(e)}const ja=/\b\B/,si="[a-zA-Z]\\w*",En="[a-zA-Z_]\\w*",oi="\\b\\d+(\\.\\d+)?",ai="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",li="\\b(0b[01]+)",Da="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",Ua=(r={})=>{const e=/^#![ ]*\//;return r.binary&&(r.begin=ue(e,/.*\b/,r.binary,/\b.*/)),re({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(t,n)=>{t.index!==0&&n.ignoreMatch()}},r)},Pe={begin:"\\\\[\\s\\S]",relevance:0},za={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Pe]},Fa={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Pe]},Ha={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(r,e,t={}){const n=re({scope:"comment",begin:r,end:e,contains:[]},t);n.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const i=wn("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 n.contains.push({begin:ue(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),n},qa=yt("//","$"),Wa=yt("/\\*","\\*/"),Ga=yt("#","$"),Va={scope:"number",begin:oi,relevance:0},Ka={scope:"number",begin:ai,relevance:0},Ja={scope:"number",begin:li,relevance:0},Za={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Pe,{begin:/\[/,end:/\]/,relevance:0,contains:[Pe]}]},Qa={scope:"title",begin:si,relevance:0},Ya={scope:"title",begin:En,relevance:0},Xa={begin:"\\.\\s*"+En,relevance:0},el=function(r){return Object.assign(r,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})};var Ze=Object.freeze({__proto__:null,APOS_STRING_MODE:za,BACKSLASH_ESCAPE:Pe,BINARY_NUMBER_MODE:Ja,BINARY_NUMBER_RE:li,COMMENT:yt,C_BLOCK_COMMENT_MODE:Wa,C_LINE_COMMENT_MODE:qa,C_NUMBER_MODE:Ka,C_NUMBER_RE:ai,END_SAME_AS_BEGIN:el,HASH_COMMENT_MODE:Ga,IDENT_RE:si,MATCH_NOTHING_RE:ja,METHOD_GUARD:Xa,NUMBER_MODE:Va,NUMBER_RE:oi,PHRASAL_WORDS_MODE:Ha,QUOTE_STRING_MODE:Fa,REGEXP_MODE:Za,RE_STARTERS_RE:Da,SHEBANG:Ua,TITLE_MODE:Qa,UNDERSCORE_IDENT_RE:En,UNDERSCORE_TITLE_MODE:Ya});function tl(r,e){r.input[r.index-1]==="."&&e.ignoreMatch()}function nl(r,e){r.className!==void 0&&(r.scope=r.className,delete r.className)}function rl(r,e){e&&r.beginKeywords&&(r.begin="\\b("+r.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",r.__beforeBegin=tl,r.keywords=r.keywords||r.beginKeywords,delete r.beginKeywords,r.relevance===void 0&&(r.relevance=0))}function il(r,e){Array.isArray(r.illegal)&&(r.illegal=wn(...r.illegal))}function sl(r,e){if(r.match){if(r.begin||r.end)throw new Error("begin & end are not supported with match");r.begin=r.match,delete r.match}}function ol(r,e){r.relevance===void 0&&(r.relevance=1)}const al=(r,e)=>{if(!r.beforeMatch)return;if(r.starts)throw new Error("beforeMatch cannot be used with starts");const t=Object.assign({},r);Object.keys(r).forEach(n=>{delete r[n]}),r.keywords=t.keywords,r.begin=ue(t.beforeMatch,ri(t.begin)),r.starts={relevance:0,contains:[Object.assign(t,{endsParent:!0})]},r.relevance=0,delete t.beforeMatch},ll=["of","and","for","in","not","or","if","then","parent","list","value"],cl="keyword";function ci(r,e,t=cl){const n=Object.create(null);return typeof r=="string"?i(t,r.split(" ")):Array.isArray(r)?i(t,r):Object.keys(r).forEach(function(s){Object.assign(n,ci(r[s],e,s))}),n;function i(s,o){e&&(o=o.map(a=>a.toLowerCase())),o.forEach(function(a){const l=a.split("|");n[l[0]]=[s,ul(l[0],l[1])]})}}function ul(r,e){return e?Number(e):fl(r)?0:1}function fl(r){return ll.includes(r.toLowerCase())}const Qn={},le=r=>{console.error(r)},Yn=(r,...e)=>{console.log(`WARN: ${r}`,...e)},fe=(r,e)=>{Qn[`${r}/${e}`]||(console.log(`Deprecated as of ${r}. ${e}`),Qn[`${r}/${e}`]=!0)},at=new Error;function ui(r,e,{key:t}){let n=0;const i=r[t],s={},o={};for(let a=1;a<=e.length;a++)o[a+n]=i[a],s[a+n]=!0,n+=ii(e[a-1]);r[t]=o,r[t]._emit=s,r[t]._multi=!0}function hl(r){if(Array.isArray(r.begin)){if(r.skip||r.excludeBegin||r.returnBegin)throw le("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),at;if(typeof r.beginScope!="object"||r.beginScope===null)throw le("beginScope must be object"),at;ui(r,r.begin,{key:"beginScope"}),r.begin=yn(r.begin,{joinWith:""})}}function dl(r){if(Array.isArray(r.end)){if(r.skip||r.excludeEnd||r.returnEnd)throw le("skip, excludeEnd, returnEnd not compatible with endScope: {}"),at;if(typeof r.endScope!="object"||r.endScope===null)throw le("endScope must be object"),at;ui(r,r.end,{key:"endScope"}),r.end=yn(r.end,{joinWith:""})}}function gl(r){r.scope&&typeof r.scope=="object"&&r.scope!==null&&(r.beginScope=r.scope,delete r.scope)}function pl(r){gl(r),typeof r.beginScope=="string"&&(r.beginScope={_wrap:r.beginScope}),typeof r.endScope=="string"&&(r.endScope={_wrap:r.endScope}),hl(r),dl(r)}function ml(r){function e(o,a){return new RegExp(Me(o),"m"+(r.case_insensitive?"i":"")+(r.unicodeRegex?"u":"")+(a?"g":""))}class t{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(a,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,a]),this.matchAt+=ii(a)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const a=this.regexes.map(l=>l[1]);this.matcherRe=e(yn(a,{joinWith:"|"}),!0),this.lastIndex=0}exec(a){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(a);if(!l)return null;const c=l.findIndex((g,h)=>h>0&&g!==void 0),u=this.matchIndexes[c];return l.splice(0,c),Object.assign(l,u)}}class n{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(a){if(this.multiRegexes[a])return this.multiRegexes[a];const l=new t;return this.rules.slice(a).forEach(([c,u])=>l.addRule(c,u)),l.compile(),this.multiRegexes[a]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(a,l){this.rules.push([a,l]),l.type==="begin"&&this.count++}exec(a){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let c=l.exec(a);if(this.resumingScanAtSamePosition()&&!(c&&c.index===this.lastIndex)){const u=this.getMatcher(0);u.lastIndex=this.lastIndex+1,c=u.exec(a)}return c&&(this.regexIndex+=c.position+1,this.regexIndex===this.count&&this.considerAll()),c}}function i(o){const a=new n;return o.contains.forEach(l=>a.addRule(l.begin,{rule:l,type:"begin"})),o.terminatorEnd&&a.addRule(o.terminatorEnd,{type:"end"}),o.illegal&&a.addRule(o.illegal,{type:"illegal"}),a}function s(o,a){const l=o;if(o.isCompiled)return l;[nl,sl,pl,al].forEach(u=>u(o,a)),r.compilerExtensions.forEach(u=>u(o,a)),o.__beforeBegin=null,[rl,il,ol].forEach(u=>u(o,a)),o.isCompiled=!0;let c=null;return typeof o.keywords=="object"&&o.keywords.$pattern&&(o.keywords=Object.assign({},o.keywords),c=o.keywords.$pattern,delete o.keywords.$pattern),c=c||/\w+/,o.keywords&&(o.keywords=ci(o.keywords,r.case_insensitive)),l.keywordPatternRe=e(c,!0),a&&(o.begin||(o.begin=/\B|\b/),l.beginRe=e(l.begin),!o.end&&!o.endsWithParent&&(o.end=/\B|\b/),o.end&&(l.endRe=e(l.end)),l.terminatorEnd=Me(l.end)||"",o.endsWithParent&&a.terminatorEnd&&(l.terminatorEnd+=(o.end?"|":"")+a.terminatorEnd)),o.illegal&&(l.illegalRe=e(o.illegal)),o.contains||(o.contains=[]),o.contains=[].concat(...o.contains.map(function(u){return bl(u==="self"?o:u)})),o.contains.forEach(function(u){s(u,l)}),o.starts&&s(o.starts,a),l.matcher=i(l),l}if(r.compilerExtensions||(r.compilerExtensions=[]),r.contains&&r.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return r.classNameAliases=re(r.classNameAliases||{}),s(r)}function fi(r){return r?r.endsWithParent||fi(r.starts):!1}function bl(r){return r.variants&&!r.cachedVariants&&(r.cachedVariants=r.variants.map(function(e){return re(r,{variants:null},e)})),r.cachedVariants?r.cachedVariants:fi(r)?re(r,{starts:r.starts?re(r.starts):null}):Object.isFrozen(r)?re(r):r}var wl="11.9.0";class yl extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}const Bt=ni,Xn=re,er=Symbol("nomatch"),El=7,hi=function(r){const e=Object.create(null),t=Object.create(null),n=[];let i=!0;const s="Could not find the language '{}', did you forget to load/include a language module?",o={disableAutodetect:!0,name:"Plain text",contains:[]};let a={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:Pa};function l(f){return a.noHighlightRe.test(f)}function c(f){let b=f.className+" ";b+=f.parentNode?f.parentNode.className:"";const _=a.languageDetectRe.exec(b);if(_){const N=$(_[1]);return N||(Yn(s.replace("{}",_[1])),Yn("Falling back to no-highlight mode for this block.",f)),N?_[1]:"no-highlight"}return b.split(/\s+/).find(N=>l(N)||$(N))}function u(f,b,_){let N="",j="";typeof b=="object"?(N=f,_=b.ignoreIllegals,j=b.language):(fe("10.7.0","highlight(lang, code, ...args) has been deprecated."),fe("10.7.0",`Please use highlight(code, options) instead.
109
- https://github.com/highlightjs/highlight.js/issues/2277`),j=f,N=b),_===void 0&&(_=!0);const q={code:N,language:j};oe("before:highlight",q);const te=q.result?q.result:g(q.language,q.code,_);return te.code=q.code,oe("after:highlight",te),te}function g(f,b,_,N){const j=Object.create(null);function q(d,E){return d.keywords[E]}function te(){if(!A.keywords){z.addText(I);return}let d=0;A.keywordPatternRe.lastIndex=0;let E=A.keywordPatternRe.exec(I),R="";for(;E;){R+=I.substring(d,E.index);const P=Z.case_insensitive?E[0].toLowerCase():E[0],F=q(A,P);if(F){const[X,_i]=F;if(z.addText(R),R="",j[P]=(j[P]||0)+1,j[P]<=El&&(je+=_i),X.startsWith("_"))R+=E[0];else{const Ri=Z.classNameAliases[X]||X;J(E[0],Ri)}}else R+=E[0];d=A.keywordPatternRe.lastIndex,E=A.keywordPatternRe.exec(I)}R+=I.substring(d),z.addText(R)}function Le(){if(I==="")return;let d=null;if(typeof A.subLanguage=="string"){if(!e[A.subLanguage]){z.addText(I);return}d=g(A.subLanguage,I,!0,An[A.subLanguage]),An[A.subLanguage]=d._top}else d=p(I,A.subLanguage.length?A.subLanguage:null);A.relevance>0&&(je+=d.relevance),z.__addSublanguage(d._emitter,d.language)}function W(){A.subLanguage!=null?Le():te(),I=""}function J(d,E){d!==""&&(z.startScope(E),z.addText(d),z.endScope())}function xn(d,E){let R=1;const P=E.length-1;for(;R<=P;){if(!d._emit[R]){R++;continue}const F=Z.classNameAliases[d[R]]||d[R],X=E[R];F?J(X,F):(I=X,te(),I=""),R++}}function vn(d,E){return d.scope&&typeof d.scope=="string"&&z.openNode(Z.classNameAliases[d.scope]||d.scope),d.beginScope&&(d.beginScope._wrap?(J(I,Z.classNameAliases[d.beginScope._wrap]||d.beginScope._wrap),I=""):d.beginScope._multi&&(xn(d.beginScope,E),I="")),A=Object.create(d,{parent:{value:A}}),A}function Cn(d,E,R){let P=La(d.endRe,R);if(P){if(d["on:end"]){const F=new Kn(d);d["on:end"](E,F),F.isMatchIgnored&&(P=!1)}if(P){for(;d.endsParent&&d.parent;)d=d.parent;return d}}if(d.endsWithParent)return Cn(d.parent,E,R)}function xi(d){return A.matcher.regexIndex===0?(I+=d[0],1):(At=!0,0)}function vi(d){const E=d[0],R=d.rule,P=new Kn(R),F=[R.__beforeBegin,R["on:begin"]];for(const X of F)if(X&&(X(d,P),P.isMatchIgnored))return xi(E);return R.skip?I+=E:(R.excludeBegin&&(I+=E),W(),!R.returnBegin&&!R.excludeBegin&&(I=E)),vn(R,d),R.returnBegin?0:E.length}function Ci(d){const E=d[0],R=b.substring(d.index),P=Cn(A,d,R);if(!P)return er;const F=A;A.endScope&&A.endScope._wrap?(W(),J(E,A.endScope._wrap)):A.endScope&&A.endScope._multi?(W(),xn(A.endScope,d)):F.skip?I+=E:(F.returnEnd||F.excludeEnd||(I+=E),W(),F.excludeEnd&&(I=E));do A.scope&&z.closeNode(),!A.skip&&!A.subLanguage&&(je+=A.relevance),A=A.parent;while(A!==P.parent);return P.starts&&vn(P.starts,d),F.returnEnd?0:E.length}function Si(){const d=[];for(let E=A;E!==Z;E=E.parent)E.scope&&d.unshift(E.scope);d.forEach(E=>z.openNode(E))}let $e={};function Sn(d,E){const R=E&&E[0];if(I+=d,R==null)return W(),0;if($e.type==="begin"&&E.type==="end"&&$e.index===E.index&&R===""){if(I+=b.slice(E.index,E.index+1),!i){const P=new Error(`0 width match regex (${f})`);throw P.languageName=f,P.badRule=$e.rule,P}return 1}if($e=E,E.type==="begin")return vi(E);if(E.type==="illegal"&&!_){const P=new Error('Illegal lexeme "'+R+'" for mode "'+(A.scope||"<unnamed>")+'"');throw P.mode=A,P}else if(E.type==="end"){const P=Ci(E);if(P!==er)return P}if(E.type==="illegal"&&R==="")return 1;if(St>1e5&&St>E.index*3)throw new Error("potential infinite loop, way more iterations than matches");return I+=R,R.length}const Z=$(f);if(!Z)throw le(s.replace("{}",f)),new Error('Unknown language: "'+f+'"');const Ai=ml(Z);let Ct="",A=N||Ai;const An={},z=new a.__emitter(a);Si();let I="",je=0,ae=0,St=0,At=!1;try{if(Z.__emitTokens)Z.__emitTokens(b,z);else{for(A.matcher.considerAll();;){St++,At?At=!1:A.matcher.considerAll(),A.matcher.lastIndex=ae;const d=A.matcher.exec(b);if(!d)break;const E=b.substring(ae,d.index),R=Sn(E,d);ae=d.index+R}Sn(b.substring(ae))}return z.finalize(),Ct=z.toHTML(),{language:f,value:Ct,relevance:je,illegal:!1,_emitter:z,_top:A}}catch(d){if(d.message&&d.message.includes("Illegal"))return{language:f,value:Bt(b),illegal:!0,relevance:0,_illegalBy:{message:d.message,index:ae,context:b.slice(ae-100,ae+100),mode:d.mode,resultSoFar:Ct},_emitter:z};if(i)return{language:f,value:Bt(b),illegal:!1,relevance:0,errorRaised:d,_emitter:z,_top:A};throw d}}function h(f){const b={value:Bt(f),illegal:!1,relevance:0,_top:o,_emitter:new a.__emitter(a)};return b._emitter.addText(f),b}function p(f,b){b=b||a.languages||Object.keys(e);const _=h(f),N=b.filter($).filter(K).map(W=>g(W,f,!1));N.unshift(_);const j=N.sort((W,J)=>{if(W.relevance!==J.relevance)return J.relevance-W.relevance;if(W.language&&J.language){if($(W.language).supersetOf===J.language)return 1;if($(J.language).supersetOf===W.language)return-1}return 0}),[q,te]=j,Le=q;return Le.secondBest=te,Le}function w(f,b,_){const N=b&&t[b]||_;f.classList.add("hljs"),f.classList.add(`language-${N}`)}function C(f){let b=null;const _=c(f);if(l(_))return;if(oe("before:highlightElement",{el:f,language:_}),f.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",f);return}if(f.children.length>0&&(a.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(f)),a.throwUnescapedHTML))throw new yl("One of your code blocks includes unescaped HTML.",f.innerHTML);b=f;const N=b.textContent,j=_?u(N,{language:_,ignoreIllegals:!0}):p(N);f.innerHTML=j.value,f.dataset.highlighted="yes",w(f,_,j.language),f.result={language:j.language,re:j.relevance,relevance:j.relevance},j.secondBest&&(f.secondBest={language:j.secondBest.language,relevance:j.secondBest.relevance}),oe("after:highlightElement",{el:f,result:j,text:N})}function m(f){a=Xn(a,f)}const x=()=>{y(),fe("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function S(){y(),fe("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let v=!1;function y(){if(document.readyState==="loading"){v=!0;return}document.querySelectorAll(a.cssSelector).forEach(C)}function k(){v&&y()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",k,!1);function M(f,b){let _=null;try{_=b(r)}catch(N){if(le("Language definition for '{}' could not be registered.".replace("{}",f)),i)le(N);else throw N;_=o}_.name||(_.name=f),e[f]=_,_.rawDefinition=b.bind(null,r),_.aliases&&U(_.aliases,{languageName:f})}function T(f){delete e[f];for(const b of Object.keys(t))t[b]===f&&delete t[b]}function D(){return Object.keys(e)}function $(f){return f=(f||"").toLowerCase(),e[f]||e[t[f]]}function U(f,{languageName:b}){typeof f=="string"&&(f=[f]),f.forEach(_=>{t[_.toLowerCase()]=b})}function K(f){const b=$(f);return b&&!b.disableAutodetect}function se(f){f["before:highlightBlock"]&&!f["before:highlightElement"]&&(f["before:highlightElement"]=b=>{f["before:highlightBlock"](Object.assign({block:b.el},b))}),f["after:highlightBlock"]&&!f["after:highlightElement"]&&(f["after:highlightElement"]=b=>{f["after:highlightBlock"](Object.assign({block:b.el},b))})}function H(f){se(f),n.push(f)}function xt(f){const b=n.indexOf(f);b!==-1&&n.splice(b,1)}function oe(f,b){const _=f;n.forEach(function(N){N[_]&&N[_](b)})}function vt(f){return fe("10.7.0","highlightBlock will be removed entirely in v12.0"),fe("10.7.0","Please use highlightElement now."),C(f)}Object.assign(r,{highlight:u,highlightAuto:p,highlightAll:y,highlightElement:C,highlightBlock:vt,configure:m,initHighlighting:x,initHighlightingOnLoad:S,registerLanguage:M,unregisterLanguage:T,listLanguages:D,getLanguage:$,registerAliases:U,autoDetection:K,inherit:Xn,addPlugin:H,removePlugin:xt}),r.debugMode=function(){i=!1},r.safeMode=function(){i=!0},r.versionString=wl,r.regex={concat:ue,lookahead:ri,either:wn,optional:Ia,anyNumberOfTimes:Ta};for(const f in Ze)typeof Ze[f]=="object"&&ti(Ze[f]);return Object.assign(r,Ze),r},ye=hi({});ye.newInstance=()=>hi({});var xl=ye;ye.HighlightJS=ye;ye.default=ye;const Et=ka(xl),lt="[A-Za-z$_][0-9A-Za-z$_]*",di=["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"],gi=["true","false","null","undefined","NaN","Infinity"],pi=["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"],mi=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],bi=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],wi=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],yi=[].concat(bi,pi,mi);function vl(r){const e=r.regex,t=(f,{after:b})=>{const _="</"+f[0].slice(1);return f.input.indexOf(_,b)!==-1},n=lt,i={begin:"<>",end:"</>"},s=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(f,b)=>{const _=f[0].length+f.index,N=f.input[_];if(N==="<"||N===","){b.ignoreMatch();return}N===">"&&(t(f,{after:_})||b.ignoreMatch());let j;const q=f.input.substring(_);if(j=q.match(/^\s*=/)){b.ignoreMatch();return}if((j=q.match(/^\s+extends\s+/))&&j.index===0){b.ignoreMatch();return}}},a={$pattern:lt,keyword:di,literal:gi,built_in:yi,"variable.language":wi},l="[0-9](_?[0-9])*",c=`\\.(${l})`,u="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",g={className:"number",variants:[{begin:`(\\b(${u})((${c})|\\.)?|(${c}))[eE][+-]?(${l})\\b`},{begin:`\\b(${u})\\b((${c})\\b|\\.)?|(${c})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},h={className:"subst",begin:"\\$\\{",end:"\\}",keywords:a,contains:[]},p={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[r.BACKSLASH_ESCAPE,h],subLanguage:"xml"}},w={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[r.BACKSLASH_ESCAPE,h],subLanguage:"css"}},C={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[r.BACKSLASH_ESCAPE,h],subLanguage:"graphql"}},m={className:"string",begin:"`",end:"`",contains:[r.BACKSLASH_ESCAPE,h]},x={className:"comment",variants:[r.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:n+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),r.C_BLOCK_COMMENT_MODE,r.C_LINE_COMMENT_MODE]},S=[r.APOS_STRING_MODE,r.QUOTE_STRING_MODE,p,w,C,m,{match:/\$\d+/},g];h.contains=S.concat({begin:/\{/,end:/\}/,keywords:a,contains:["self"].concat(S)});const v=[].concat(x,h.contains),y=v.concat([{begin:/\(/,end:/\)/,keywords:a,contains:["self"].concat(v)}]),k={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:y},M={variants:[{match:[/class/,/\s+/,n,/\s+/,/extends/,/\s+/,e.concat(n,"(",e.concat(/\./,n),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,n],scope:{1:"keyword",3:"title.class"}}]},T={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:{_:[...pi,...mi]}},D={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},$={variants:[{match:[/function/,/\s+/,n,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[k],illegal:/%/},U={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function K(f){return e.concat("(?!",f.join("|"),")")}const se={match:e.concat(/\b/,K([...bi,"super","import"]),n,e.lookahead(/\(/)),className:"title.function",relevance:0},H={begin:e.concat(/\./,e.lookahead(e.concat(n,/(?![0-9A-Za-z$_(])/))),end:n,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},xt={match:[/get|set/,/\s+/,n,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},k]},oe="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+r.UNDERSCORE_IDENT_RE+")\\s*=>",vt={match:[/const|var|let/,/\s+/,n,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(oe)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[k]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:a,exports:{PARAMS_CONTAINS:y,CLASS_REFERENCE:T},illegal:/#(?![$_A-z])/,contains:[r.SHEBANG({label:"shebang",binary:"node",relevance:5}),D,r.APOS_STRING_MODE,r.QUOTE_STRING_MODE,p,w,C,m,x,{match:/\$\d+/},g,T,{className:"attr",begin:n+e.lookahead(":"),relevance:0},vt,{begin:"("+r.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[x,r.REGEXP_MODE,{className:"function",begin:oe,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:r.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:y}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:s},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0,contains:["self"]}]}]},$,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+r.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[k,r.inherit(r.TITLE_MODE,{begin:n,className:"title.function"})]},{match:/\.\.\./,relevance:0},H,{match:"\\$"+n,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[k]},se,U,M,xt,{match:/\$[(.]/}]}}function Cl(r){const e=vl(r),t=lt,n=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],i={beginKeywords:"namespace",end:/\{/,excludeEnd:!0,contains:[e.exports.CLASS_REFERENCE]},s={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:n},contains:[e.exports.CLASS_REFERENCE]},o={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},a=["type","namespace","interface","public","private","protected","implements","declare","abstract","readonly","enum","override"],l={$pattern:lt,keyword:di.concat(a),literal:gi,built_in:yi.concat(n),"variable.language":wi},c={className:"meta",begin:"@"+t},u=(h,p,w)=>{const C=h.contains.findIndex(m=>m.label===p);if(C===-1)throw new Error("can not find mode to replace");h.contains.splice(C,1,w)};Object.assign(e.keywords,l),e.exports.PARAMS_CONTAINS.push(c),e.contains=e.contains.concat([c,i,s]),u(e,"shebang",r.SHEBANG()),u(e,"use_strict",o);const g=e.contains.find(h=>h.label==="func.def");return g.relevance=0,Object.assign(e,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),e}function Sl(r){const e=r.regex,t=e.concat(/[\p{L}_]/u,e.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),n=/[\p{L}0-9._:-]+/u,i={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},s={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},o=r.inherit(s,{begin:/\(/,end:/\)/}),a=r.inherit(r.APOS_STRING_MODE,{className:"string"}),l=r.inherit(r.QUOTE_STRING_MODE,{className:"string"}),c={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:n,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[i]},{begin:/'/,end:/'/,contains:[i]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[s,l,a,o,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[s,o,l,a]}]}]},r.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},i,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[l]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[c],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[c],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:e.concat(/</,e.lookahead(e.concat(t,e.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:t,relevance:0,starts:c}]},{className:"tag",begin:e.concat(/<\//,e.lookahead(e.concat(t,/>/))),contains:[{className:"name",begin:t,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}const Al=r=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:r.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:[r.APOS_STRING_MODE,r.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:r.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_-]*/}}),_l=["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"],Rl=["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"],kl=["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"],Nl=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],Ol=["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 Ml(r){const e=r.regex,t=Al(r),n={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},i="and or not only",s=/@-?\w[\w]*(-\w+)*/,o="[a-zA-Z-][a-zA-Z0-9_-]*",a=[r.APOS_STRING_MODE,r.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[t.BLOCK_COMMENT,n,t.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+o,relevance:0},t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+kl.join("|")+")"},{begin:":(:)?("+Nl.join("|")+")"}]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Ol.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[t.BLOCK_COMMENT,t.HEXCOLOR,t.IMPORTANT,t.CSS_NUMBER_MODE,...a,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...a,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},t.FUNCTION_DISPATCH]},{begin:e.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:s},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:i,attribute:Rl.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...a,t.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+_l.join("|")+")\\b"}]}}const Ei=document.createElement("style");Ei.innerText=[_a,Ra].join(`
108
+ https://www.w3ctech.com/topic/2226`));let a=t(...o);return a.postcssPlugin=e,a.postcssVersion=new mn().version,a}let s;return Object.defineProperty(i,"postcss",{get(){return s||(s=i()),s}}),i.process=function(o,a,l){return O([i(l)]).process(o,a)},i};O.stringify=ga;O.parse=wa;O.fromJSON=pa;O.list=Ea;O.comment=r=>new Qr(r);O.atRule=r=>new Yr(r);O.decl=r=>new Jr(r);O.rule=r=>new Xr(r);O.root=r=>new ei(r);O.document=r=>new Zr(r);O.CssSyntaxError=fa;O.Declaration=Jr;O.Container=da;O.Processor=mn;O.Document=Zr;O.Comment=Qr;O.Warning=ma;O.AtRule=Yr;O.Result=ba;O.Input=ya;O.Rule=Xr;O.Root=ei;O.Node=xa;ha.registerPostcss(O);var va=O;O.default=O;const L=nr(va);L.stringify;L.fromJSON;L.plugin;L.parse;L.list;L.document;L.comment;L.atRule;L.rule;L.decl;L.root;L.CssSyntaxError;L.Declaration;L.Container;L.Processor;L.Document;L.Comment;L.Warning;L.AtRule;L.Result;L.Input;L.Rule;L.Root;L.Node;var Ca=function(e){const t=e.prefix,n=/\s+$/.test(t)?t:`${t} `,i=e.ignoreFiles?[].concat(e.ignoreFiles):[],s=e.includeFiles?[].concat(e.includeFiles):[];return function(o){i.length&&o.source.input.file&&Vn(o.source.input.file,i)||s.length&&o.source.input.file&&!Vn(o.source.input.file,s)||o.walkRules(a=>{const l=["keyframes","-webkit-keyframes","-moz-keyframes","-o-keyframes"];a.parent&&l.includes(a.parent.name)||(a.selectors=a.selectors.map(c=>e.exclude&&Sa(c,e.exclude)?c:e.transform?e.transform(t,c,n+c,o.source.input.file,a):n+c))})}};function Vn(r,e){return e.some(t=>t instanceof RegExp?t.test(r):r.includes(t))}function Sa(r,e){return e.some(t=>t instanceof RegExp?t.test(r):r===t)}const Aa=nr(Ca),_a="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}",Ra="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 ka(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function ti(r){return r instanceof Map?r.clear=r.delete=r.set=function(){throw new Error("map is read-only")}:r instanceof Set&&(r.add=r.clear=r.delete=function(){throw new Error("set is read-only")}),Object.freeze(r),Object.getOwnPropertyNames(r).forEach(e=>{const t=r[e],n=typeof t;(n==="object"||n==="function")&&!Object.isFrozen(t)&&ti(t)}),r}class Kn{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function ni(r){return r.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function re(r,...e){const t=Object.create(null);for(const n in r)t[n]=r[n];return e.forEach(function(n){for(const i in n)t[i]=n[i]}),t}const Na="</span>",Jn=r=>!!r.scope,Oa=(r,{prefix:e})=>{if(r.startsWith("language:"))return r.replace("language:","language-");if(r.includes(".")){const t=r.split(".");return[`${e}${t.shift()}`,...t.map((n,i)=>`${n}${"_".repeat(i+1)}`)].join(" ")}return`${e}${r}`};class Ma{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=ni(e)}openNode(e){if(!Jn(e))return;const t=Oa(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){Jn(e)&&(this.buffer+=Na)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}const Zn=(r={})=>{const e={children:[]};return Object.assign(e,r),e};class bn{constructor(){this.rootNode=Zn(),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=Zn({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(n=>this._walk(e,n)),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=>{bn._collapse(t)}))}}class Pa extends bn{constructor(e){super(),this.options=e}addText(e){e!==""&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,t){const n=e.root;t&&(n.scope=`language:${t}`),this.add(n)}toHTML(){return new Ma(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function Me(r){return r?typeof r=="string"?r:r.source:null}function ri(r){return ue("(?=",r,")")}function Ta(r){return ue("(?:",r,")*")}function Ia(r){return ue("(?:",r,")?")}function ue(...r){return r.map(e=>Me(e)).join("")}function Ba(r){const e=r[r.length-1];return typeof e=="object"&&e.constructor===Object?(r.splice(r.length-1,1),e):{}}function yn(...r){return"("+(Ba(r).capture?"":"?:")+r.map(e=>Me(e)).join("|")+")"}function ii(r){return new RegExp(r.toString()+"|").exec("").length-1}function La(r,e){const t=r&&r.exec(e);return t&&t.index===0}const $a=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function wn(r,{joinWith:e}){let t=0;return r.map(n=>{t+=1;const i=t;let s=Me(n),o="";for(;s.length>0;){const a=$a.exec(s);if(!a){o+=s;break}o+=s.substring(0,a.index),s=s.substring(a.index+a[0].length),a[0][0]==="\\"&&a[1]?o+="\\"+String(Number(a[1])+i):(o+=a[0],a[0]==="("&&t++)}return o}).map(n=>`(${n})`).join(e)}const ja=/\b\B/,si="[a-zA-Z]\\w*",En="[a-zA-Z_]\\w*",oi="\\b\\d+(\\.\\d+)?",ai="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",li="\\b(0b[01]+)",Da="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",Ua=(r={})=>{const e=/^#![ ]*\//;return r.binary&&(r.begin=ue(e,/.*\b/,r.binary,/\b.*/)),re({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(t,n)=>{t.index!==0&&n.ignoreMatch()}},r)},Pe={begin:"\\\\[\\s\\S]",relevance:0},za={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Pe]},Fa={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Pe]},Ha={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/},wt=function(r,e,t={}){const n=re({scope:"comment",begin:r,end:e,contains:[]},t);n.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const i=yn("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 n.contains.push({begin:ue(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),n},qa=wt("//","$"),Wa=wt("/\\*","\\*/"),Ga=wt("#","$"),Va={scope:"number",begin:oi,relevance:0},Ka={scope:"number",begin:ai,relevance:0},Ja={scope:"number",begin:li,relevance:0},Za={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Pe,{begin:/\[/,end:/\]/,relevance:0,contains:[Pe]}]},Qa={scope:"title",begin:si,relevance:0},Ya={scope:"title",begin:En,relevance:0},Xa={begin:"\\.\\s*"+En,relevance:0},el=function(r){return Object.assign(r,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})};var Ze=Object.freeze({__proto__:null,APOS_STRING_MODE:za,BACKSLASH_ESCAPE:Pe,BINARY_NUMBER_MODE:Ja,BINARY_NUMBER_RE:li,COMMENT:wt,C_BLOCK_COMMENT_MODE:Wa,C_LINE_COMMENT_MODE:qa,C_NUMBER_MODE:Ka,C_NUMBER_RE:ai,END_SAME_AS_BEGIN:el,HASH_COMMENT_MODE:Ga,IDENT_RE:si,MATCH_NOTHING_RE:ja,METHOD_GUARD:Xa,NUMBER_MODE:Va,NUMBER_RE:oi,PHRASAL_WORDS_MODE:Ha,QUOTE_STRING_MODE:Fa,REGEXP_MODE:Za,RE_STARTERS_RE:Da,SHEBANG:Ua,TITLE_MODE:Qa,UNDERSCORE_IDENT_RE:En,UNDERSCORE_TITLE_MODE:Ya});function tl(r,e){r.input[r.index-1]==="."&&e.ignoreMatch()}function nl(r,e){r.className!==void 0&&(r.scope=r.className,delete r.className)}function rl(r,e){e&&r.beginKeywords&&(r.begin="\\b("+r.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",r.__beforeBegin=tl,r.keywords=r.keywords||r.beginKeywords,delete r.beginKeywords,r.relevance===void 0&&(r.relevance=0))}function il(r,e){Array.isArray(r.illegal)&&(r.illegal=yn(...r.illegal))}function sl(r,e){if(r.match){if(r.begin||r.end)throw new Error("begin & end are not supported with match");r.begin=r.match,delete r.match}}function ol(r,e){r.relevance===void 0&&(r.relevance=1)}const al=(r,e)=>{if(!r.beforeMatch)return;if(r.starts)throw new Error("beforeMatch cannot be used with starts");const t=Object.assign({},r);Object.keys(r).forEach(n=>{delete r[n]}),r.keywords=t.keywords,r.begin=ue(t.beforeMatch,ri(t.begin)),r.starts={relevance:0,contains:[Object.assign(t,{endsParent:!0})]},r.relevance=0,delete t.beforeMatch},ll=["of","and","for","in","not","or","if","then","parent","list","value"],cl="keyword";function ci(r,e,t=cl){const n=Object.create(null);return typeof r=="string"?i(t,r.split(" ")):Array.isArray(r)?i(t,r):Object.keys(r).forEach(function(s){Object.assign(n,ci(r[s],e,s))}),n;function i(s,o){e&&(o=o.map(a=>a.toLowerCase())),o.forEach(function(a){const l=a.split("|");n[l[0]]=[s,ul(l[0],l[1])]})}}function ul(r,e){return e?Number(e):fl(r)?0:1}function fl(r){return ll.includes(r.toLowerCase())}const Qn={},le=r=>{console.error(r)},Yn=(r,...e)=>{console.log(`WARN: ${r}`,...e)},fe=(r,e)=>{Qn[`${r}/${e}`]||(console.log(`Deprecated as of ${r}. ${e}`),Qn[`${r}/${e}`]=!0)},at=new Error;function ui(r,e,{key:t}){let n=0;const i=r[t],s={},o={};for(let a=1;a<=e.length;a++)o[a+n]=i[a],s[a+n]=!0,n+=ii(e[a-1]);r[t]=o,r[t]._emit=s,r[t]._multi=!0}function hl(r){if(Array.isArray(r.begin)){if(r.skip||r.excludeBegin||r.returnBegin)throw le("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),at;if(typeof r.beginScope!="object"||r.beginScope===null)throw le("beginScope must be object"),at;ui(r,r.begin,{key:"beginScope"}),r.begin=wn(r.begin,{joinWith:""})}}function dl(r){if(Array.isArray(r.end)){if(r.skip||r.excludeEnd||r.returnEnd)throw le("skip, excludeEnd, returnEnd not compatible with endScope: {}"),at;if(typeof r.endScope!="object"||r.endScope===null)throw le("endScope must be object"),at;ui(r,r.end,{key:"endScope"}),r.end=wn(r.end,{joinWith:""})}}function gl(r){r.scope&&typeof r.scope=="object"&&r.scope!==null&&(r.beginScope=r.scope,delete r.scope)}function pl(r){gl(r),typeof r.beginScope=="string"&&(r.beginScope={_wrap:r.beginScope}),typeof r.endScope=="string"&&(r.endScope={_wrap:r.endScope}),hl(r),dl(r)}function ml(r){function e(o,a){return new RegExp(Me(o),"m"+(r.case_insensitive?"i":"")+(r.unicodeRegex?"u":"")+(a?"g":""))}class t{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(a,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,a]),this.matchAt+=ii(a)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const a=this.regexes.map(l=>l[1]);this.matcherRe=e(wn(a,{joinWith:"|"}),!0),this.lastIndex=0}exec(a){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(a);if(!l)return null;const c=l.findIndex((g,h)=>h>0&&g!==void 0),u=this.matchIndexes[c];return l.splice(0,c),Object.assign(l,u)}}class n{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(a){if(this.multiRegexes[a])return this.multiRegexes[a];const l=new t;return this.rules.slice(a).forEach(([c,u])=>l.addRule(c,u)),l.compile(),this.multiRegexes[a]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(a,l){this.rules.push([a,l]),l.type==="begin"&&this.count++}exec(a){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let c=l.exec(a);if(this.resumingScanAtSamePosition()&&!(c&&c.index===this.lastIndex)){const u=this.getMatcher(0);u.lastIndex=this.lastIndex+1,c=u.exec(a)}return c&&(this.regexIndex+=c.position+1,this.regexIndex===this.count&&this.considerAll()),c}}function i(o){const a=new n;return o.contains.forEach(l=>a.addRule(l.begin,{rule:l,type:"begin"})),o.terminatorEnd&&a.addRule(o.terminatorEnd,{type:"end"}),o.illegal&&a.addRule(o.illegal,{type:"illegal"}),a}function s(o,a){const l=o;if(o.isCompiled)return l;[nl,sl,pl,al].forEach(u=>u(o,a)),r.compilerExtensions.forEach(u=>u(o,a)),o.__beforeBegin=null,[rl,il,ol].forEach(u=>u(o,a)),o.isCompiled=!0;let c=null;return typeof o.keywords=="object"&&o.keywords.$pattern&&(o.keywords=Object.assign({},o.keywords),c=o.keywords.$pattern,delete o.keywords.$pattern),c=c||/\w+/,o.keywords&&(o.keywords=ci(o.keywords,r.case_insensitive)),l.keywordPatternRe=e(c,!0),a&&(o.begin||(o.begin=/\B|\b/),l.beginRe=e(l.begin),!o.end&&!o.endsWithParent&&(o.end=/\B|\b/),o.end&&(l.endRe=e(l.end)),l.terminatorEnd=Me(l.end)||"",o.endsWithParent&&a.terminatorEnd&&(l.terminatorEnd+=(o.end?"|":"")+a.terminatorEnd)),o.illegal&&(l.illegalRe=e(o.illegal)),o.contains||(o.contains=[]),o.contains=[].concat(...o.contains.map(function(u){return bl(u==="self"?o:u)})),o.contains.forEach(function(u){s(u,l)}),o.starts&&s(o.starts,a),l.matcher=i(l),l}if(r.compilerExtensions||(r.compilerExtensions=[]),r.contains&&r.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return r.classNameAliases=re(r.classNameAliases||{}),s(r)}function fi(r){return r?r.endsWithParent||fi(r.starts):!1}function bl(r){return r.variants&&!r.cachedVariants&&(r.cachedVariants=r.variants.map(function(e){return re(r,{variants:null},e)})),r.cachedVariants?r.cachedVariants:fi(r)?re(r,{starts:r.starts?re(r.starts):null}):Object.isFrozen(r)?re(r):r}var yl="11.9.0";class wl extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}const Bt=ni,Xn=re,er=Symbol("nomatch"),El=7,hi=function(r){const e=Object.create(null),t=Object.create(null),n=[];let i=!0;const s="Could not find the language '{}', did you forget to load/include a language module?",o={disableAutodetect:!0,name:"Plain text",contains:[]};let a={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:Pa};function l(f){return a.noHighlightRe.test(f)}function c(f){let b=f.className+" ";b+=f.parentNode?f.parentNode.className:"";const _=a.languageDetectRe.exec(b);if(_){const N=$(_[1]);return N||(Yn(s.replace("{}",_[1])),Yn("Falling back to no-highlight mode for this block.",f)),N?_[1]:"no-highlight"}return b.split(/\s+/).find(N=>l(N)||$(N))}function u(f,b,_){let N="",j="";typeof b=="object"?(N=f,_=b.ignoreIllegals,j=b.language):(fe("10.7.0","highlight(lang, code, ...args) has been deprecated."),fe("10.7.0",`Please use highlight(code, options) instead.
109
+ https://github.com/highlightjs/highlight.js/issues/2277`),j=f,N=b),_===void 0&&(_=!0);const q={code:N,language:j};oe("before:highlight",q);const te=q.result?q.result:g(q.language,q.code,_);return te.code=q.code,oe("after:highlight",te),te}function g(f,b,_,N){const j=Object.create(null);function q(d,E){return d.keywords[E]}function te(){if(!A.keywords){z.addText(I);return}let d=0;A.keywordPatternRe.lastIndex=0;let E=A.keywordPatternRe.exec(I),R="";for(;E;){R+=I.substring(d,E.index);const P=Z.case_insensitive?E[0].toLowerCase():E[0],F=q(A,P);if(F){const[X,_i]=F;if(z.addText(R),R="",j[P]=(j[P]||0)+1,j[P]<=El&&(je+=_i),X.startsWith("_"))R+=E[0];else{const Ri=Z.classNameAliases[X]||X;J(E[0],Ri)}}else R+=E[0];d=A.keywordPatternRe.lastIndex,E=A.keywordPatternRe.exec(I)}R+=I.substring(d),z.addText(R)}function Le(){if(I==="")return;let d=null;if(typeof A.subLanguage=="string"){if(!e[A.subLanguage]){z.addText(I);return}d=g(A.subLanguage,I,!0,An[A.subLanguage]),An[A.subLanguage]=d._top}else d=p(I,A.subLanguage.length?A.subLanguage:null);A.relevance>0&&(je+=d.relevance),z.__addSublanguage(d._emitter,d.language)}function W(){A.subLanguage!=null?Le():te(),I=""}function J(d,E){d!==""&&(z.startScope(E),z.addText(d),z.endScope())}function xn(d,E){let R=1;const P=E.length-1;for(;R<=P;){if(!d._emit[R]){R++;continue}const F=Z.classNameAliases[d[R]]||d[R],X=E[R];F?J(X,F):(I=X,te(),I=""),R++}}function vn(d,E){return d.scope&&typeof d.scope=="string"&&z.openNode(Z.classNameAliases[d.scope]||d.scope),d.beginScope&&(d.beginScope._wrap?(J(I,Z.classNameAliases[d.beginScope._wrap]||d.beginScope._wrap),I=""):d.beginScope._multi&&(xn(d.beginScope,E),I="")),A=Object.create(d,{parent:{value:A}}),A}function Cn(d,E,R){let P=La(d.endRe,R);if(P){if(d["on:end"]){const F=new Kn(d);d["on:end"](E,F),F.isMatchIgnored&&(P=!1)}if(P){for(;d.endsParent&&d.parent;)d=d.parent;return d}}if(d.endsWithParent)return Cn(d.parent,E,R)}function xi(d){return A.matcher.regexIndex===0?(I+=d[0],1):(At=!0,0)}function vi(d){const E=d[0],R=d.rule,P=new Kn(R),F=[R.__beforeBegin,R["on:begin"]];for(const X of F)if(X&&(X(d,P),P.isMatchIgnored))return xi(E);return R.skip?I+=E:(R.excludeBegin&&(I+=E),W(),!R.returnBegin&&!R.excludeBegin&&(I=E)),vn(R,d),R.returnBegin?0:E.length}function Ci(d){const E=d[0],R=b.substring(d.index),P=Cn(A,d,R);if(!P)return er;const F=A;A.endScope&&A.endScope._wrap?(W(),J(E,A.endScope._wrap)):A.endScope&&A.endScope._multi?(W(),xn(A.endScope,d)):F.skip?I+=E:(F.returnEnd||F.excludeEnd||(I+=E),W(),F.excludeEnd&&(I=E));do A.scope&&z.closeNode(),!A.skip&&!A.subLanguage&&(je+=A.relevance),A=A.parent;while(A!==P.parent);return P.starts&&vn(P.starts,d),F.returnEnd?0:E.length}function Si(){const d=[];for(let E=A;E!==Z;E=E.parent)E.scope&&d.unshift(E.scope);d.forEach(E=>z.openNode(E))}let $e={};function Sn(d,E){const R=E&&E[0];if(I+=d,R==null)return W(),0;if($e.type==="begin"&&E.type==="end"&&$e.index===E.index&&R===""){if(I+=b.slice(E.index,E.index+1),!i){const P=new Error(`0 width match regex (${f})`);throw P.languageName=f,P.badRule=$e.rule,P}return 1}if($e=E,E.type==="begin")return vi(E);if(E.type==="illegal"&&!_){const P=new Error('Illegal lexeme "'+R+'" for mode "'+(A.scope||"<unnamed>")+'"');throw P.mode=A,P}else if(E.type==="end"){const P=Ci(E);if(P!==er)return P}if(E.type==="illegal"&&R==="")return 1;if(St>1e5&&St>E.index*3)throw new Error("potential infinite loop, way more iterations than matches");return I+=R,R.length}const Z=$(f);if(!Z)throw le(s.replace("{}",f)),new Error('Unknown language: "'+f+'"');const Ai=ml(Z);let Ct="",A=N||Ai;const An={},z=new a.__emitter(a);Si();let I="",je=0,ae=0,St=0,At=!1;try{if(Z.__emitTokens)Z.__emitTokens(b,z);else{for(A.matcher.considerAll();;){St++,At?At=!1:A.matcher.considerAll(),A.matcher.lastIndex=ae;const d=A.matcher.exec(b);if(!d)break;const E=b.substring(ae,d.index),R=Sn(E,d);ae=d.index+R}Sn(b.substring(ae))}return z.finalize(),Ct=z.toHTML(),{language:f,value:Ct,relevance:je,illegal:!1,_emitter:z,_top:A}}catch(d){if(d.message&&d.message.includes("Illegal"))return{language:f,value:Bt(b),illegal:!0,relevance:0,_illegalBy:{message:d.message,index:ae,context:b.slice(ae-100,ae+100),mode:d.mode,resultSoFar:Ct},_emitter:z};if(i)return{language:f,value:Bt(b),illegal:!1,relevance:0,errorRaised:d,_emitter:z,_top:A};throw d}}function h(f){const b={value:Bt(f),illegal:!1,relevance:0,_top:o,_emitter:new a.__emitter(a)};return b._emitter.addText(f),b}function p(f,b){b=b||a.languages||Object.keys(e);const _=h(f),N=b.filter($).filter(K).map(W=>g(W,f,!1));N.unshift(_);const j=N.sort((W,J)=>{if(W.relevance!==J.relevance)return J.relevance-W.relevance;if(W.language&&J.language){if($(W.language).supersetOf===J.language)return 1;if($(J.language).supersetOf===W.language)return-1}return 0}),[q,te]=j,Le=q;return Le.secondBest=te,Le}function y(f,b,_){const N=b&&t[b]||_;f.classList.add("hljs"),f.classList.add(`language-${N}`)}function C(f){let b=null;const _=c(f);if(l(_))return;if(oe("before:highlightElement",{el:f,language:_}),f.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",f);return}if(f.children.length>0&&(a.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(f)),a.throwUnescapedHTML))throw new wl("One of your code blocks includes unescaped HTML.",f.innerHTML);b=f;const N=b.textContent,j=_?u(N,{language:_,ignoreIllegals:!0}):p(N);f.innerHTML=j.value,f.dataset.highlighted="yes",y(f,_,j.language),f.result={language:j.language,re:j.relevance,relevance:j.relevance},j.secondBest&&(f.secondBest={language:j.secondBest.language,relevance:j.secondBest.relevance}),oe("after:highlightElement",{el:f,result:j,text:N})}function m(f){a=Xn(a,f)}const x=()=>{w(),fe("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function S(){w(),fe("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let v=!1;function w(){if(document.readyState==="loading"){v=!0;return}document.querySelectorAll(a.cssSelector).forEach(C)}function k(){v&&w()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",k,!1);function M(f,b){let _=null;try{_=b(r)}catch(N){if(le("Language definition for '{}' could not be registered.".replace("{}",f)),i)le(N);else throw N;_=o}_.name||(_.name=f),e[f]=_,_.rawDefinition=b.bind(null,r),_.aliases&&U(_.aliases,{languageName:f})}function T(f){delete e[f];for(const b of Object.keys(t))t[b]===f&&delete t[b]}function D(){return Object.keys(e)}function $(f){return f=(f||"").toLowerCase(),e[f]||e[t[f]]}function U(f,{languageName:b}){typeof f=="string"&&(f=[f]),f.forEach(_=>{t[_.toLowerCase()]=b})}function K(f){const b=$(f);return b&&!b.disableAutodetect}function se(f){f["before:highlightBlock"]&&!f["before:highlightElement"]&&(f["before:highlightElement"]=b=>{f["before:highlightBlock"](Object.assign({block:b.el},b))}),f["after:highlightBlock"]&&!f["after:highlightElement"]&&(f["after:highlightElement"]=b=>{f["after:highlightBlock"](Object.assign({block:b.el},b))})}function H(f){se(f),n.push(f)}function xt(f){const b=n.indexOf(f);b!==-1&&n.splice(b,1)}function oe(f,b){const _=f;n.forEach(function(N){N[_]&&N[_](b)})}function vt(f){return fe("10.7.0","highlightBlock will be removed entirely in v12.0"),fe("10.7.0","Please use highlightElement now."),C(f)}Object.assign(r,{highlight:u,highlightAuto:p,highlightAll:w,highlightElement:C,highlightBlock:vt,configure:m,initHighlighting:x,initHighlightingOnLoad:S,registerLanguage:M,unregisterLanguage:T,listLanguages:D,getLanguage:$,registerAliases:U,autoDetection:K,inherit:Xn,addPlugin:H,removePlugin:xt}),r.debugMode=function(){i=!1},r.safeMode=function(){i=!0},r.versionString=yl,r.regex={concat:ue,lookahead:ri,either:yn,optional:Ia,anyNumberOfTimes:Ta};for(const f in Ze)typeof Ze[f]=="object"&&ti(Ze[f]);return Object.assign(r,Ze),r},we=hi({});we.newInstance=()=>hi({});var xl=we;we.HighlightJS=we;we.default=we;const Et=ka(xl),lt="[A-Za-z$_][0-9A-Za-z$_]*",di=["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"],gi=["true","false","null","undefined","NaN","Infinity"],pi=["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"],mi=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],bi=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],yi=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],wi=[].concat(bi,pi,mi);function vl(r){const e=r.regex,t=(f,{after:b})=>{const _="</"+f[0].slice(1);return f.input.indexOf(_,b)!==-1},n=lt,i={begin:"<>",end:"</>"},s=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(f,b)=>{const _=f[0].length+f.index,N=f.input[_];if(N==="<"||N===","){b.ignoreMatch();return}N===">"&&(t(f,{after:_})||b.ignoreMatch());let j;const q=f.input.substring(_);if(j=q.match(/^\s*=/)){b.ignoreMatch();return}if((j=q.match(/^\s+extends\s+/))&&j.index===0){b.ignoreMatch();return}}},a={$pattern:lt,keyword:di,literal:gi,built_in:wi,"variable.language":yi},l="[0-9](_?[0-9])*",c=`\\.(${l})`,u="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",g={className:"number",variants:[{begin:`(\\b(${u})((${c})|\\.)?|(${c}))[eE][+-]?(${l})\\b`},{begin:`\\b(${u})\\b((${c})\\b|\\.)?|(${c})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},h={className:"subst",begin:"\\$\\{",end:"\\}",keywords:a,contains:[]},p={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[r.BACKSLASH_ESCAPE,h],subLanguage:"xml"}},y={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[r.BACKSLASH_ESCAPE,h],subLanguage:"css"}},C={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[r.BACKSLASH_ESCAPE,h],subLanguage:"graphql"}},m={className:"string",begin:"`",end:"`",contains:[r.BACKSLASH_ESCAPE,h]},x={className:"comment",variants:[r.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:n+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),r.C_BLOCK_COMMENT_MODE,r.C_LINE_COMMENT_MODE]},S=[r.APOS_STRING_MODE,r.QUOTE_STRING_MODE,p,y,C,m,{match:/\$\d+/},g];h.contains=S.concat({begin:/\{/,end:/\}/,keywords:a,contains:["self"].concat(S)});const v=[].concat(x,h.contains),w=v.concat([{begin:/\(/,end:/\)/,keywords:a,contains:["self"].concat(v)}]),k={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:w},M={variants:[{match:[/class/,/\s+/,n,/\s+/,/extends/,/\s+/,e.concat(n,"(",e.concat(/\./,n),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,n],scope:{1:"keyword",3:"title.class"}}]},T={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:{_:[...pi,...mi]}},D={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},$={variants:[{match:[/function/,/\s+/,n,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[k],illegal:/%/},U={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function K(f){return e.concat("(?!",f.join("|"),")")}const se={match:e.concat(/\b/,K([...bi,"super","import"]),n,e.lookahead(/\(/)),className:"title.function",relevance:0},H={begin:e.concat(/\./,e.lookahead(e.concat(n,/(?![0-9A-Za-z$_(])/))),end:n,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},xt={match:[/get|set/,/\s+/,n,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},k]},oe="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+r.UNDERSCORE_IDENT_RE+")\\s*=>",vt={match:[/const|var|let/,/\s+/,n,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(oe)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[k]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:a,exports:{PARAMS_CONTAINS:w,CLASS_REFERENCE:T},illegal:/#(?![$_A-z])/,contains:[r.SHEBANG({label:"shebang",binary:"node",relevance:5}),D,r.APOS_STRING_MODE,r.QUOTE_STRING_MODE,p,y,C,m,x,{match:/\$\d+/},g,T,{className:"attr",begin:n+e.lookahead(":"),relevance:0},vt,{begin:"("+r.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[x,r.REGEXP_MODE,{className:"function",begin:oe,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:r.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:w}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:s},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0,contains:["self"]}]}]},$,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+r.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[k,r.inherit(r.TITLE_MODE,{begin:n,className:"title.function"})]},{match:/\.\.\./,relevance:0},H,{match:"\\$"+n,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[k]},se,U,M,xt,{match:/\$[(.]/}]}}function Cl(r){const e=vl(r),t=lt,n=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],i={beginKeywords:"namespace",end:/\{/,excludeEnd:!0,contains:[e.exports.CLASS_REFERENCE]},s={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:n},contains:[e.exports.CLASS_REFERENCE]},o={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},a=["type","namespace","interface","public","private","protected","implements","declare","abstract","readonly","enum","override"],l={$pattern:lt,keyword:di.concat(a),literal:gi,built_in:wi.concat(n),"variable.language":yi},c={className:"meta",begin:"@"+t},u=(h,p,y)=>{const C=h.contains.findIndex(m=>m.label===p);if(C===-1)throw new Error("can not find mode to replace");h.contains.splice(C,1,y)};Object.assign(e.keywords,l),e.exports.PARAMS_CONTAINS.push(c),e.contains=e.contains.concat([c,i,s]),u(e,"shebang",r.SHEBANG()),u(e,"use_strict",o);const g=e.contains.find(h=>h.label==="func.def");return g.relevance=0,Object.assign(e,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),e}function Sl(r){const e=r.regex,t=e.concat(/[\p{L}_]/u,e.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),n=/[\p{L}0-9._:-]+/u,i={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},s={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},o=r.inherit(s,{begin:/\(/,end:/\)/}),a=r.inherit(r.APOS_STRING_MODE,{className:"string"}),l=r.inherit(r.QUOTE_STRING_MODE,{className:"string"}),c={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:n,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[i]},{begin:/'/,end:/'/,contains:[i]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[s,l,a,o,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[s,o,l,a]}]}]},r.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},i,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[l]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[c],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[c],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:e.concat(/</,e.lookahead(e.concat(t,e.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:t,relevance:0,starts:c}]},{className:"tag",begin:e.concat(/<\//,e.lookahead(e.concat(t,/>/))),contains:[{className:"name",begin:t,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}const Al=r=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:r.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:[r.APOS_STRING_MODE,r.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:r.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_-]*/}}),_l=["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"],Rl=["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"],kl=["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"],Nl=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],Ol=["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 Ml(r){const e=r.regex,t=Al(r),n={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},i="and or not only",s=/@-?\w[\w]*(-\w+)*/,o="[a-zA-Z-][a-zA-Z0-9_-]*",a=[r.APOS_STRING_MODE,r.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[t.BLOCK_COMMENT,n,t.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+o,relevance:0},t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+kl.join("|")+")"},{begin:":(:)?("+Nl.join("|")+")"}]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Ol.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[t.BLOCK_COMMENT,t.HEXCOLOR,t.IMPORTANT,t.CSS_NUMBER_MODE,...a,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...a,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},t.FUNCTION_DISPATCH]},{begin:e.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:s},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:i,attribute:Rl.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...a,t.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+_l.join("|")+")\\b"}]}}const Ei=document.createElement("style");Ei.innerText=[_a,Ra].join(`
110
110
  `);document.head.appendChild(Ei);Et.registerLanguage("typescript",Cl);Et.registerLanguage("html",Sl);Et.registerLanguage("css",Ml);function Pl(...r){const e=document.createElement("div"),t=document.createElement("div");t.classList.add("tab-control");const n=document.createElement("div");return r.forEach(i=>{e.appendChild(i),i.addEventListener("click",()=>{r.forEach(s=>s.removeAttribute("selected")),i.setAttribute("selected",""),n.innerHTML="",n.appendChild(i.content),n.className=i.className,n.classList.add("tab-content")})}),t.appendChild(e),t.appendChild(n),n.classList.add("tab-content"),r[0].setAttribute("selected",""),n.appendChild(r[0].content),t}function ve(r,e){const t=document.createElement("div");return t.role="tab",t.tabIndex=0,t.innerText=r,t.content=e,e.tagName=="PRE"&&t.classList.add("code"),t}function Ae(r,e){const t=document.createElement(r);return typeof e=="string"?t.innerHTML=e:e.forEach(n=>{t.appendChild(n)}),t}async function Tl(r,e,t){var n,i,s;const o=e.mainContent,a=Ae("div",o);a.id=`example-preview-${t}`;const l=typeof e.css=="string"||(n=e.css)==null?void 0:n.label,c=typeof e.css=="string"?e.css:(i=e.css)==null?void 0:i.content,u=Pl(ve("Preview",a),ve("HTML",Qe("html",o)),...c?[ve(l??"CSS",Qe("css",c))]:[],...e.initializer&&e.initializer.content?[ve(e.initializer.label??"TS",Qe("typescript",e.initializer.content))]:[],...(e.additionalSources||[]).map(h=>ve(h.label,Qe(h.language,h.content))));e.description&&r.appendChild(Ae("div",e.description));const g=Ae("div",[u]);g.classList.add("example"),r.appendChild(g),c&&Il(`#${a.id}`,c),(s=e.initializer)!=null&&s.initialize&&await e.initializer.initialize(a)}function Qe(r,e){let t=e.split(/\r?\n/).map(n=>{const i=n.indexOf("///");if(i>-1){const s=n.substring(i+3).trimStart();return s?n.replace(/^(\s*)([^\s].*)$/,`$1${s}`):void 0}return n}).filter(n=>typeof n<"u").join(`
111
111
  `).trim();return r&&r!="raw"&&(t=Et.highlight(t,{language:r}).value),Ae("pre",[Ae("code",t)])}function Il(r,e){const t=document.createElement("style");t.innerHTML=L().use(Aa({prefix:r})).process(e).css,document.head.appendChild(t)}async function Bl(r,e=document.body){const t=$l(e);let n=0;Object.keys(r).forEach(async i=>{const s=document.createElement("div");s.className="example-container",t.appendChild(s);const o=r[i].default;Tl(s,o,n++)})}function Ll(r){const e=document.createElement("div");e.id="examples-container";const t=r.querySelector("#examples");return t?t.after(e):r.appendChild(e),e}function $l(r){return r.children?Ll(r):r}const jl=`<h1 id="@cas-smartdesign/qrcode">@cas-smartdesign/qrcode</h1>
112
112
  <p>A custom element which can be used to show a qrcode based on a string input.</p>
@@ -122,8 +122,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`),j=f,N=b),_===void 0&&(
122
122
  </ul>
123
123
  </li>
124
124
  </ul>
125
- <h2 id="examples">Examples</h2>
126
- `;document.querySelector("#markdown-container").innerHTML=jl;Bl(Object.assign({"./examples/1_declarative/index.ts":Pi,"./examples/2_created_from_source/index.ts":zi}));export{Se as Q};
125
+ `,Dl=document.querySelector("#markdown-container");Dl.innerHTML=jl;Bl(Object.assign({"./examples/1_declarative/index.ts":Pi,"./examples/2_created_from_source/index.ts":zi}),document.querySelector(".markdown-body"));export{Se as Q};
127
126
  function __vite__mapDeps(indexes) {
128
127
  if (!__vite__mapDeps.viteFileDeps) {
129
128
  __vite__mapDeps.viteFileDeps = []
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cas-smartdesign/qrcode",
3
- "version": "3.0.1",
3
+ "version": "3.0.2",
4
4
  "description": "Creates a Qrcode on a canvas element",
5
5
  "main": "dist/qrcode-with-externals.js",
6
6
  "module": "dist/qrcode.mjs",
@@ -8,12 +8,12 @@
8
8
  "license": "SEE LICENSE IN LICENSE",
9
9
  "dependencies": {
10
10
  "qrcode": "^1.5.3",
11
- "@cas-smartdesign/element-base": "^5.0.1"
11
+ "@cas-smartdesign/element-base": "^5.0.2"
12
12
  },
13
13
  "devDependencies": {
14
14
  "@types/qrcode": "^1.5.5",
15
- "@cas-smartdesign/license-generator": "^1.6.1",
16
- "@cas-smartdesign/element-preview": "^0.2.1"
15
+ "@cas-smartdesign/license-generator": "^1.6.3",
16
+ "@cas-smartdesign/element-preview": "^0.2.2"
17
17
  },
18
18
  "files": [
19
19
  "dist",
package/readme.md CHANGED
@@ -9,5 +9,3 @@ A custom element which can be used to show a qrcode based on a string input.
9
9
  - 'margin' : number
10
10
  - Defines the size of the white border around the QrCode
11
11
  - Default value is 1
12
-
13
- ## Examples