gemi 0.41.4 → 0.42.1

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.
Files changed (124) hide show
  1. package/dist/app/index.js +2 -2
  2. package/dist/app/index.js.map +1 -1
  3. package/dist/bin/gemi.js +129 -19
  4. package/dist/bin/gemi.js.map +5 -5
  5. package/dist/broadcasting/index.js +1 -1
  6. package/dist/bun/plugin.js +1 -1
  7. package/dist/bun/preload.js +1 -1
  8. package/dist/{chunk-4e4ax9bs.js → chunk-0pjn1a5d.js} +2 -2
  9. package/dist/{chunk-4e4ax9bs.js.map → chunk-0pjn1a5d.js.map} +1 -1
  10. package/dist/{chunk-awscq13h.js → chunk-1kmbs8cd.js} +3 -3
  11. package/dist/{chunk-awscq13h.js.map → chunk-1kmbs8cd.js.map} +1 -1
  12. package/dist/{chunk-4f45pw0v.js → chunk-22pr1w8v.js} +2 -2
  13. package/dist/{chunk-4f45pw0v.js.map → chunk-22pr1w8v.js.map} +1 -1
  14. package/dist/{chunk-xdk56snm.js → chunk-358x9aca.js} +3 -3
  15. package/dist/{chunk-xdk56snm.js.map → chunk-358x9aca.js.map} +1 -1
  16. package/dist/{chunk-9nfdjzen.js → chunk-522q81af.js} +4 -4
  17. package/dist/{chunk-9nfdjzen.js.map → chunk-522q81af.js.map} +1 -1
  18. package/dist/{chunk-8rm601h3.js → chunk-81yxskss.js} +2 -2
  19. package/dist/{chunk-8rm601h3.js.map → chunk-81yxskss.js.map} +1 -1
  20. package/dist/{chunk-jt0z45dn.js → chunk-8cqkdzyh.js} +4 -4
  21. package/dist/{chunk-jt0z45dn.js.map → chunk-8cqkdzyh.js.map} +1 -1
  22. package/dist/{chunk-r9p9g2x9.js → chunk-8mgsjrcc.js} +2 -2
  23. package/dist/{chunk-r9p9g2x9.js.map → chunk-8mgsjrcc.js.map} +1 -1
  24. package/dist/{chunk-c1bjq2ss.js → chunk-9byxbqnn.js} +2 -2
  25. package/dist/{chunk-c1bjq2ss.js.map → chunk-9byxbqnn.js.map} +1 -1
  26. package/dist/{chunk-q91708he.js → chunk-akbepc3f.js} +65 -65
  27. package/dist/{chunk-q91708he.js.map → chunk-akbepc3f.js.map} +3 -3
  28. package/dist/{chunk-1g3qpb60.js → chunk-ayjtdck4.js} +2 -2
  29. package/dist/{chunk-1g3qpb60.js.map → chunk-ayjtdck4.js.map} +1 -1
  30. package/dist/{chunk-6b1abejc.js → chunk-b3qebxqh.js} +3 -3
  31. package/dist/{chunk-6b1abejc.js.map → chunk-b3qebxqh.js.map} +1 -1
  32. package/dist/{chunk-c1hsc4aa.js → chunk-bfnh3gwv.js} +2 -2
  33. package/dist/{chunk-c1hsc4aa.js.map → chunk-bfnh3gwv.js.map} +1 -1
  34. package/dist/{chunk-agvzqxv7.js → chunk-cwq1vdcb.js} +2 -2
  35. package/dist/{chunk-21r4g9h0.js.map → chunk-cwq1vdcb.js.map} +1 -1
  36. package/dist/{chunk-b4xfh9pg.js → chunk-cx38xsyf.js} +2 -2
  37. package/dist/{chunk-b4xfh9pg.js.map → chunk-cx38xsyf.js.map} +1 -1
  38. package/dist/{chunk-wzxsj3cp.js → chunk-fb78bz10.js} +2 -2
  39. package/dist/{chunk-wzxsj3cp.js.map → chunk-fb78bz10.js.map} +2 -2
  40. package/dist/{chunk-q3wpyr9y.js → chunk-gsvzrj5r.js} +2 -2
  41. package/dist/{chunk-q3wpyr9y.js.map → chunk-gsvzrj5r.js.map} +1 -1
  42. package/dist/{chunk-s3zn2vas.js → chunk-hzw2y2rz.js} +3 -3
  43. package/dist/{chunk-s3zn2vas.js.map → chunk-hzw2y2rz.js.map} +1 -1
  44. package/dist/{chunk-xnhktttd.js → chunk-n1xpxhm0.js} +2 -2
  45. package/dist/{chunk-xnhktttd.js.map → chunk-n1xpxhm0.js.map} +1 -1
  46. package/dist/{chunk-3hjfype8.js → chunk-n78kxce1.js} +2 -2
  47. package/dist/{chunk-3hjfype8.js.map → chunk-n78kxce1.js.map} +1 -1
  48. package/dist/chunk-nccmdkf1.js +5 -0
  49. package/dist/chunk-nccmdkf1.js.map +12 -0
  50. package/dist/{chunk-c74f9zbq.js → chunk-pfaq2mer.js} +2 -2
  51. package/dist/{chunk-c74f9zbq.js.map → chunk-pfaq2mer.js.map} +1 -1
  52. package/dist/chunk-pjgfvdr6.js +79 -0
  53. package/dist/{chunk-88fb6hzq.js.map → chunk-pjgfvdr6.js.map} +5 -4
  54. package/dist/{chunk-sns685hn.js → chunk-pn30zsrt.js} +2 -2
  55. package/dist/{chunk-sns685hn.js.map → chunk-pn30zsrt.js.map} +1 -1
  56. package/dist/{chunk-4cqg9kg4.js → chunk-pr3pvtmh.js} +2 -2
  57. package/dist/{chunk-4cqg9kg4.js.map → chunk-pr3pvtmh.js.map} +1 -1
  58. package/dist/{chunk-wfbgtbae.js → chunk-pxcv9ccp.js} +3 -3
  59. package/dist/{chunk-wfbgtbae.js.map → chunk-pxcv9ccp.js.map} +1 -1
  60. package/dist/{chunk-yk9aw128.js → chunk-pygcsw1f.js} +2 -2
  61. package/dist/{chunk-yk9aw128.js.map → chunk-pygcsw1f.js.map} +1 -1
  62. package/dist/{chunk-1nm4bfjq.js → chunk-q0y425d3.js} +3 -3
  63. package/dist/{chunk-1nm4bfjq.js.map → chunk-q0y425d3.js.map} +1 -1
  64. package/dist/{chunk-y7qsts67.js → chunk-qeq8hv3t.js} +2 -2
  65. package/dist/{chunk-y7qsts67.js.map → chunk-qeq8hv3t.js.map} +1 -1
  66. package/dist/{chunk-kd4whs4z.js → chunk-qyn10pv7.js} +1 -1
  67. package/dist/{chunk-h465ja8n.js → chunk-qzemjynx.js} +3 -3
  68. package/dist/{chunk-h465ja8n.js.map → chunk-qzemjynx.js.map} +1 -1
  69. package/dist/{chunk-rm5y1v00.js → chunk-ratbccpg.js} +2 -2
  70. package/dist/{chunk-rm5y1v00.js.map → chunk-ratbccpg.js.map} +1 -1
  71. package/dist/{chunk-p9qt93zk.js → chunk-rrwtgt86.js} +2 -2
  72. package/dist/{chunk-agvzqxv7.js.map → chunk-rrwtgt86.js.map} +1 -1
  73. package/dist/{chunk-p6ezs2w7.js → chunk-sbmg0hfr.js} +3 -3
  74. package/dist/{chunk-p6ezs2w7.js.map → chunk-sbmg0hfr.js.map} +1 -1
  75. package/dist/{chunk-3hgk4fxz.js → chunk-shpca068.js} +3 -3
  76. package/dist/{chunk-3hgk4fxz.js.map → chunk-shpca068.js.map} +1 -1
  77. package/dist/{chunk-vfvetfjg.js → chunk-syaxsp9y.js} +3 -3
  78. package/dist/{chunk-vfvetfjg.js.map → chunk-syaxsp9y.js.map} +1 -1
  79. package/dist/chunk-tb8yy4rf.js +5 -0
  80. package/dist/{chunk-emt6gz1d.js.map → chunk-tb8yy4rf.js.map} +1 -1
  81. package/dist/{chunk-sgv88qqn.js → chunk-wa84ybnt.js} +5 -5
  82. package/dist/{chunk-sgv88qqn.js.map → chunk-wa84ybnt.js.map} +1 -1
  83. package/dist/{chunk-rkf1stc0.js → chunk-x3vy6dbw.js} +2 -2
  84. package/dist/{chunk-rkf1stc0.js.map → chunk-x3vy6dbw.js.map} +1 -1
  85. package/dist/chunk-xpk460d1.js +4 -0
  86. package/dist/{chunk-p9qt93zk.js.map → chunk-xpk460d1.js.map} +1 -1
  87. package/dist/chunk-yeqwzeq7.js +4 -0
  88. package/dist/{chunk-a8wmfnw6.js.map → chunk-yeqwzeq7.js.map} +3 -3
  89. package/dist/{chunk-85hzphk5.js → chunk-z9vdcpqr.js} +2 -2
  90. package/dist/{chunk-85hzphk5.js.map → chunk-z9vdcpqr.js.map} +1 -1
  91. package/dist/{chunk-kw1g4bjh.js → chunk-zaa3yt2w.js} +3 -3
  92. package/dist/{chunk-kw1g4bjh.js.map → chunk-zaa3yt2w.js.map} +1 -1
  93. package/dist/config/index.js +1 -1
  94. package/dist/email/index.js +2 -2
  95. package/dist/email/index.js.map +1 -1
  96. package/dist/facades/index.js +2 -2
  97. package/dist/facades/index.js.map +1 -1
  98. package/dist/http/ViewRouter.d.ts +29 -5
  99. package/dist/http/ViewRouter.d.ts.map +1 -1
  100. package/dist/http/index.d.ts +2 -2
  101. package/dist/http/index.d.ts.map +1 -1
  102. package/dist/http/index.js +2 -2
  103. package/dist/http/index.js.map +1 -1
  104. package/dist/i18n/index.js +2 -2
  105. package/dist/i18n/index.js.map +2 -2
  106. package/dist/kernel/index.js +2 -2
  107. package/dist/kernel/index.js.map +2 -2
  108. package/dist/server/httpProd.d.ts.map +1 -1
  109. package/dist/server/index.js +2 -2
  110. package/dist/server/index.js.map +2 -2
  111. package/dist/services/index.js +2 -2
  112. package/dist/services/index.js.map +1 -1
  113. package/dist/services/router/ViewRouterServiceContainer.d.ts +9 -0
  114. package/dist/services/router/ViewRouterServiceContainer.d.ts.map +1 -1
  115. package/package.json +1 -1
  116. package/dist/chunk-21r4g9h0.js +0 -4
  117. package/dist/chunk-88fb6hzq.js +0 -79
  118. package/dist/chunk-a8wmfnw6.js +0 -4
  119. package/dist/chunk-c9wa4rtm.js +0 -5
  120. package/dist/chunk-c9wa4rtm.js.map +0 -10
  121. package/dist/chunk-emt6gz1d.js +0 -5
  122. package/dist/chunk-kyw5n83x.js +0 -5
  123. package/dist/chunk-kyw5n83x.js.map +0 -12
  124. /package/dist/{chunk-kd4whs4z.js.map → chunk-qyn10pv7.js.map} +0 -0
@@ -1,79 +0,0 @@
1
- // @bun
2
- import{M as iK}from"./chunk-c9wa4rtm.js";import{$ as j8,N as n4,P as X9,Q as M0,R as a0,S as w0,T as M1,U as K6,Y as a4,Z as t8,_ as i4,aa as j0}from"./chunk-a8wmfnw6.js";import{ja as C0}from"./chunk-p6ezs2w7.js";import{Jb as r8,Lb as i1,Nb as s4}from"./chunk-xnhktttd.js";import{Pb as v0}from"./chunk-c1hsc4aa.js";import{Qb as H1,Rb as k0,Tb as Qw}from"./chunk-agvzqxv7.js";var A9=k0((DV,B9)=>{var V6=0,W9=-3;function F8(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function zY(J,K){this.source=J,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=K,this.destLen=0,this.ltree=new F8,this.dtree=new F8}var w9=new F8,z9=new F8,B6=new Uint8Array(30),A6=new Uint16Array(30),U9=new Uint8Array(30),$9=new Uint16Array(30),UY=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Z9=new F8,q1=new Uint8Array(320);function V9(J,K,Y,X){var Z,Q;for(Z=0;Z<Y;++Z)J[Z]=0;for(Z=0;Z<30-Y;++Z)J[Z+Y]=Z/Y|0;for(Q=X,Z=0;Z<30;++Z)K[Z]=Q,Q+=1<<J[Z]}function $Y(J,K){var Y;for(Y=0;Y<7;++Y)J.table[Y]=0;J.table[7]=24,J.table[8]=152,J.table[9]=112;for(Y=0;Y<24;++Y)J.trans[Y]=256+Y;for(Y=0;Y<144;++Y)J.trans[24+Y]=Y;for(Y=0;Y<8;++Y)J.trans[168+Y]=280+Y;for(Y=0;Y<112;++Y)J.trans[176+Y]=144+Y;for(Y=0;Y<5;++Y)K.table[Y]=0;K.table[5]=32;for(Y=0;Y<32;++Y)K.trans[Y]=Y}var Q9=new Uint16Array(16);function U6(J,K,Y,X){var Z,Q;for(Z=0;Z<16;++Z)J.table[Z]=0;for(Z=0;Z<X;++Z)J.table[K[Y+Z]]++;J.table[0]=0;for(Q=0,Z=0;Z<16;++Z)Q9[Z]=Q,Q+=J.table[Z];for(Z=0;Z<X;++Z)if(K[Y+Z])J.trans[Q9[K[Y+Z]]++]=Z}function VY(J){if(!J.bitcount--)J.tag=J.source[J.sourceIndex++],J.bitcount=7;var K=J.tag&1;return J.tag>>>=1,K}function O1(J,K,Y){if(!K)return Y;while(J.bitcount<24)J.tag|=J.source[J.sourceIndex++]<<J.bitcount,J.bitcount+=8;var X=J.tag&65535>>>16-K;return J.tag>>>=K,J.bitcount-=K,X+Y}function $6(J,K){while(J.bitcount<24)J.tag|=J.source[J.sourceIndex++]<<J.bitcount,J.bitcount+=8;var Y=0,X=0,Z=0,Q=J.tag;do X=2*X+(Q&1),Q>>>=1,++Z,Y+=K.table[Z],X-=K.table[Z];while(X>=0);return J.tag=Q,J.bitcount-=Z,K.trans[Y+X]}function BY(J,K,Y){var X,Z,Q,H,w,W;X=O1(J,5,257),Z=O1(J,5,1),Q=O1(J,4,4);for(H=0;H<19;++H)q1[H]=0;for(H=0;H<Q;++H){var z=O1(J,3,0);q1[UY[H]]=z}U6(Z9,q1,0,19);for(w=0;w<X+Z;){var U=$6(J,Z9);switch(U){case 16:var $=q1[w-1];for(W=O1(J,2,3);W;--W)q1[w++]=$;break;case 17:for(W=O1(J,3,3);W;--W)q1[w++]=0;break;case 18:for(W=O1(J,7,11);W;--W)q1[w++]=0;break;default:q1[w++]=U;break}}U6(K,q1,0,X),U6(Y,q1,X,Z)}function H9(J,K,Y){while(!0){var X=$6(J,K);if(X===256)return V6;if(X<256)J.dest[J.destLen++]=X;else{var Z,Q,H,w;X-=257,Z=O1(J,B6[X],A6[X]),Q=$6(J,Y),H=J.destLen-O1(J,U9[Q],$9[Q]);for(w=H;w<H+Z;++w)J.dest[J.destLen++]=J.dest[w]}}}function AY(J){var K,Y,X;while(J.bitcount>8)J.sourceIndex--,J.bitcount-=8;if(K=J.source[J.sourceIndex+1],K=256*K+J.source[J.sourceIndex],Y=J.source[J.sourceIndex+3],Y=256*Y+J.source[J.sourceIndex+2],K!==(~Y&65535))return W9;J.sourceIndex+=4;for(X=K;X;--X)J.dest[J.destLen++]=J.source[J.sourceIndex++];return J.bitcount=0,V6}function GY(J,K){var Y=new zY(J,K),X,Z,Q;do{switch(X=VY(Y),Z=O1(Y,2,0),Z){case 0:Q=AY(Y);break;case 1:Q=H9(Y,w9,z9);break;case 2:BY(Y,Y.ltree,Y.dtree),Q=H9(Y,Y.ltree,Y.dtree);break;default:Q=W9}if(Q!==V6)throw Error("Data error")}while(!X);if(Y.destLen<Y.dest.length)if(typeof Y.dest.slice==="function")return Y.dest.slice(0,Y.destLen);else return Y.dest.subarray(0,Y.destLen);return Y.dest}$Y(w9,z9);V9(B6,A6,4,3);V9(U9,$9,2,1);B6[28]=0;A6[28]=258;B9.exports=GY});var q9=k0((IV,M9)=>{var MY=new Uint8Array(new Uint32Array([305419896]).buffer)[0]===18,G9=(J,K,Y)=>{let X=J[K];J[K]=J[Y],J[Y]=X},qY=(J)=>{let K=J.length;for(let Y=0;Y<K;Y+=4)G9(J,Y,Y+3),G9(J,Y+1,Y+2)},OY=(J)=>{if(MY)qY(J)};M9.exports={swap32LE:OY}});var L9=k0((TV,j9)=>{var O9=A9(),{swap32LE:NY}=q9();class N9{constructor(J){let K=typeof J.readUInt32BE==="function"&&typeof J.slice==="function";if(K||J instanceof Uint8Array){let Y;if(K)this.highStart=J.readUInt32LE(0),this.errorValue=J.readUInt32LE(4),Y=J.readUInt32LE(8),J=J.slice(12);else{let X=new DataView(J.buffer);this.highStart=X.getUint32(0,!0),this.errorValue=X.getUint32(4,!0),Y=X.getUint32(8,!0),J=J.subarray(12)}J=O9(J,new Uint8Array(Y)),J=O9(J,new Uint8Array(Y)),NY(J),this.data=new Uint32Array(J.buffer)}else({data:this.data,highStart:this.highStart,errorValue:this.errorValue}=J)}get(J){let K;if(J<0||J>1114111)return this.errorValue;if(J<55296||J>56319&&J<=65535)return K=(this.data[J>>5]<<2)+(J&31),this.data[K];if(J<=65535)return K=(this.data[2048+(J-55296>>5)]<<2)+(J&31),this.data[K];if(J<this.highStart)return K=this.data[2080+(J>>11)],K=this.data[K+(J>>5&63)],K=(K<<2)+(J&31),this.data[K];return this.data[this.data.length-4]}}j9.exports=N9});var F9=k0((e8)=>{var jY="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";(function(J){var K=typeof Uint8Array<"u"?Uint8Array:Array,Y=43,X=47,Z=48,Q=97,H=65,w=45,W=95;function z(V){var B=V.charCodeAt(0);if(B===Y||B===w)return 62;if(B===X||B===W)return 63;if(B<Z)return-1;if(B<Z+10)return B-Z+26+26;if(B<H+26)return B-H;if(B<Q+26)return B-Q+26}function U(V){var B,q,G,M,N,j;if(V.length%4>0)throw Error("Invalid string. Length must be a multiple of 4");var _=V.length;N=V.charAt(_-2)==="="?2:V.charAt(_-1)==="="?1:0,j=new K(V.length*3/4-N),G=N>0?V.length-4:V.length;var R=0;function E(L){j[R++]=L}for(B=0,q=0;B<G;B+=4,q+=3)M=z(V.charAt(B))<<18|z(V.charAt(B+1))<<12|z(V.charAt(B+2))<<6|z(V.charAt(B+3)),E((M&16711680)>>16),E((M&65280)>>8),E(M&255);if(N===2)M=z(V.charAt(B))<<2|z(V.charAt(B+1))>>4,E(M&255);else if(N===1)M=z(V.charAt(B))<<10|z(V.charAt(B+1))<<4|z(V.charAt(B+2))>>2,E(M>>8&255),E(M&255);return j}function $(V){var B,q=V.length%3,G="",M,N;function j(R){return jY.charAt(R)}function _(R){return j(R>>18&63)+j(R>>12&63)+j(R>>6&63)+j(R&63)}for(B=0,N=V.length-q;B<N;B+=3)M=(V[B]<<16)+(V[B+1]<<8)+V[B+2],G+=_(M);switch(q){case 1:M=V[V.length-1],G+=j(M>>2),G+=j(M<<4&63),G+="==";break;case 2:M=(V[V.length-2]<<8)+V[V.length-1],G+=j(M>>10),G+=j(M>>4&63),G+=j(M<<2&63),G+="=";break}return G}J.toByteArray=U,J.fromByteArray=$})(typeof e8>"u"?e8.base64js={}:e8)});var k9=k0((SV,y9)=>{var O6=40,N6=41,Y5=39,j6=34,L6=92,U8=47,F6=44,E6=58,X5=42,kY=117,gY=85,xY=43,bY=/^[a-f0-9?-]+$/i;y9.exports=function(J){var K=[],Y=J,X,Z,Q,H,w,W,z,U,$=0,V=Y.charCodeAt($),B=Y.length,q=[{nodes:K}],G=0,M,N="",j="",_="";while($<B)if(V<=32){X=$;do X+=1,V=Y.charCodeAt(X);while(V<=32);if(H=Y.slice($,X),Q=K[K.length-1],V===N6&&G)_=H;else if(Q&&Q.type==="div")Q.after=H,Q.sourceEndIndex+=H.length;else if(V===F6||V===E6||V===U8&&Y.charCodeAt(X+1)!==X5&&(!M||M&&M.type==="function"&&M.value!=="calc"))j=H;else K.push({type:"space",sourceIndex:$,sourceEndIndex:X,value:H});$=X}else if(V===Y5||V===j6){X=$,Z=V===Y5?"'":'"',H={type:"string",sourceIndex:$,quote:Z};do if(w=!1,X=Y.indexOf(Z,X+1),~X){W=X;while(Y.charCodeAt(W-1)===L6)W-=1,w=!w}else Y+=Z,X=Y.length-1,H.unclosed=!0;while(w);H.value=Y.slice($+1,X),H.sourceEndIndex=H.unclosed?X:X+1,K.push(H),$=X+1,V=Y.charCodeAt($)}else if(V===U8&&Y.charCodeAt($+1)===X5){if(X=Y.indexOf("*/",$),H={type:"comment",sourceIndex:$,sourceEndIndex:X+2},X===-1)H.unclosed=!0,X=Y.length,H.sourceEndIndex=X;H.value=Y.slice($+2,X),K.push(H),$=X+2,V=Y.charCodeAt($)}else if((V===U8||V===X5)&&M&&M.type==="function"&&M.value==="calc")H=Y[$],K.push({type:"word",sourceIndex:$-j.length,sourceEndIndex:$+H.length,value:H}),$+=1,V=Y.charCodeAt($);else if(V===U8||V===F6||V===E6)H=Y[$],K.push({type:"div",sourceIndex:$-j.length,sourceEndIndex:$+H.length,value:H,before:j,after:""}),j="",$+=1,V=Y.charCodeAt($);else if(O6===V){X=$;do X+=1,V=Y.charCodeAt(X);while(V<=32);if(U=$,H={type:"function",sourceIndex:$-N.length,value:N,before:Y.slice(U+1,X)},$=X,N==="url"&&V!==Y5&&V!==j6){X-=1;do if(w=!1,X=Y.indexOf(")",X+1),~X){W=X;while(Y.charCodeAt(W-1)===L6)W-=1,w=!w}else Y+=")",X=Y.length-1,H.unclosed=!0;while(w);z=X;do z-=1,V=Y.charCodeAt(z);while(V<=32);if(U<z){if($!==z+1)H.nodes=[{type:"word",sourceIndex:$,sourceEndIndex:z+1,value:Y.slice($,z+1)}];else H.nodes=[];if(H.unclosed&&z+1!==X)H.after="",H.nodes.push({type:"space",sourceIndex:z+1,sourceEndIndex:X,value:Y.slice(z+1,X)});else H.after=Y.slice(z+1,X),H.sourceEndIndex=X}else H.after="",H.nodes=[];$=X+1,H.sourceEndIndex=H.unclosed?X:$,V=Y.charCodeAt($),K.push(H)}else G+=1,H.after="",H.sourceEndIndex=$+1,K.push(H),q.push(H),K=H.nodes=[],M=H;N=""}else if(N6===V&&G)$+=1,V=Y.charCodeAt($),M.after=_,M.sourceEndIndex+=_.length,_="",G-=1,q[q.length-1].sourceEndIndex=$,q.pop(),M=q[G],K=M.nodes;else{X=$;do{if(V===L6)X+=1;X+=1,V=Y.charCodeAt(X)}while(X<B&&!(V<=32||V===Y5||V===j6||V===F6||V===E6||V===U8||V===O6||V===X5&&M&&M.type==="function"&&M.value==="calc"||V===U8&&M.type==="function"&&M.value==="calc"||V===N6&&G));if(H=Y.slice($,X),O6===V)N=H;else if((kY===H.charCodeAt(0)||gY===H.charCodeAt(0))&&xY===H.charCodeAt(1)&&bY.test(H.slice(2)))K.push({type:"unicode-range",sourceIndex:$,sourceEndIndex:X,value:H});else K.push({type:"word",sourceIndex:$,sourceEndIndex:X,value:H});$=X}for($=q.length-1;$;$-=1)q[$].unclosed=!0,q[$].sourceEndIndex=Y.length;return q[0].nodes}});var x9=k0((vV,g9)=>{g9.exports=function J(K,Y,X){var Z,Q,H,w;for(Z=0,Q=K.length;Z<Q;Z+=1){if(H=K[Z],!X)w=Y(H,Z,K);if(w!==!1&&H.type==="function"&&Array.isArray(H.nodes))J(H.nodes,Y,X);if(X)Y(H,Z,K)}}});var f9=k0((yV,m9)=>{function b9(J,K){var{type:Y,value:X}=J,Z,Q;if(K&&(Q=K(J))!==void 0)return Q;else if(Y==="word"||Y==="space")return X;else if(Y==="string")return Z=J.quote||"",Z+X+(J.unclosed?"":Z);else if(Y==="comment")return"/*"+X+(J.unclosed?"":"*/");else if(Y==="div")return(J.before||"")+X+(J.after||"");else if(Array.isArray(J.nodes)){if(Z=h9(J.nodes,K),Y!=="function")return Z;return X+"("+(J.before||"")+Z+(J.after||"")+(J.unclosed?"":")")}return X}function h9(J,K){var Y,X;if(Array.isArray(J)){Y="";for(X=J.length-1;~X;X-=1)Y=b9(J[X],K)+Y;return Y}return b9(J,K)}m9.exports=h9});var l9=k0((kV,d9)=>{var Z5=45,Q5=43,_6=46,hY=101,mY=69;function fY(J){var K=J.charCodeAt(0),Y;if(K===Q5||K===Z5){if(Y=J.charCodeAt(1),Y>=48&&Y<=57)return!0;var X=J.charCodeAt(2);if(Y===_6&&X>=48&&X<=57)return!0;return!1}if(K===_6){if(Y=J.charCodeAt(1),Y>=48&&Y<=57)return!0;return!1}if(K>=48&&K<=57)return!0;return!1}d9.exports=function(J){var K=0,Y=J.length,X,Z,Q;if(Y===0||!fY(J))return!1;if(X=J.charCodeAt(K),X===Q5||X===Z5)K++;while(K<Y){if(X=J.charCodeAt(K),X<48||X>57)break;K+=1}if(X=J.charCodeAt(K),Z=J.charCodeAt(K+1),X===_6&&Z>=48&&Z<=57){K+=2;while(K<Y){if(X=J.charCodeAt(K),X<48||X>57)break;K+=1}}if(X=J.charCodeAt(K),Z=J.charCodeAt(K+1),Q=J.charCodeAt(K+2),(X===hY||X===mY)&&(Z>=48&&Z<=57||(Z===Q5||Z===Z5)&&Q>=48&&Q<=57)){K+=Z===Q5||Z===Z5?3:2;while(K<Y){if(X=J.charCodeAt(K),X<48||X>57)break;K+=1}}return{number:J.slice(0,K),unit:J.slice(K)}}});var R6=k0((gV,p9)=>{var dY=k9(),c9=x9(),u9=f9();function x1(J){if(this instanceof x1)return this.nodes=dY(J),this;return new x1(J)}x1.prototype.toString=function(){return Array.isArray(this.nodes)?u9(this.nodes):""};x1.prototype.walk=function(J,K){return c9(this.nodes,J,K),this};x1.unit=l9();x1.walk=c9;x1.stringify=u9;p9.exports=x1});var r9=k0((xV,o9)=>{o9.exports=function(J){if(typeof J==="string")return i9(J);return D6(J)};function D6(J){if(!J||typeof J!=="object")return J;if(cY(J)||uY(J))return J;if(lY(J))return oY(J,D6);return rY(iY(J),function(K,Y){var X=i9(Y);return K[X]=D6(J[Y]),K},{})}function i9(J){return J.replace(/[_.-](\w|$)/g,function(K,Y){return Y.toUpperCase()})}var lY=Array.isArray||function(J){return Object.prototype.toString.call(J)==="[object Array]"},cY=function(J){return Object.prototype.toString.call(J)==="[object Date]"},uY=function(J){return Object.prototype.toString.call(J)==="[object RegExp]"},pY=Object.prototype.hasOwnProperty,iY=Object.keys||function(J){var K=[];for(var Y in J)if(pY.call(J,Y))K.push(Y);return K};function oY(J,K){if(J.map)return J.map(K);var Y=[];for(var X=0;X<J.length;X++)Y.push(K(J[X],X));return Y}function rY(J,K,Y){if(J.reduce)return J.reduce(K,Y);for(var X=0;X<J.length;X++)Y=K(Y,J[X],X);return Y}});var n9=k0((bV,nY)=>{nY.exports={black:"#000000",silver:"#c0c0c0",gray:"#808080",white:"#ffffff",maroon:"#800000",red:"#ff0000",purple:"#800080",fuchsia:"#ff00ff",green:"#008000",lime:"#00ff00",olive:"#808000",yellow:"#ffff00",navy:"#000080",blue:"#0000ff",teal:"#008080",aqua:"#00ffff",orange:"#ffa500",aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",blanchedalmond:"#ffebcd",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",limegreen:"#32cd32",linen:"#faf0e6",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",oldlace:"#fdf5e6",olivedrab:"#6b8e23",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",whitesmoke:"#f5f5f5",yellowgreen:"#9acd32",rebeccapurple:"#663399"}});var W5=k0((w7)=>{Object.defineProperty(w7,"__esModule",{value:!0});function v6(J){return J&&typeof J==="object"&&"default"in J?J.default:J}var t9=R6(),sY=v6(t9),aY=v6(r9()),tY=v6(n9()),eY=function(K){if(K.type!=="string")return null;return K.value.replace(/\\([0-9a-f]{1,6})(?:\s|$)/gi,function(Y,X){return String.fromCharCode(parseInt(X,16))}).replace(/\\/g,"")},JX=/^(#(?:[0-9a-f]{3,4}){1,2})$/i,KX=/^(rgba?|hsla?|hwb|lab|lch|gray|color)$/,YX=function(K){if(K.type==="word"&&(JX.test(K.value)||(K.value in tY)||K.value==="transparent"))return K.value;else if(K.type==="function"&&KX.test(K.value))return t9.stringify(K);return null},XX=/^(none)$/i,ZX=/^(auto)$/i,QX=/(^-?[_a-z][_a-z0-9-]*$)/i,HX=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?)$/i,WX=/^(0$|(?:[+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?)(?=px$))/i,wX=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?(ch|em|ex|rem|vh|vw|vmin|vmax|cm|mm|in|pc|pt))$/i,zX=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?(?:deg|rad))$/i,UX=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?%)$/i,y6=function(K){return function(Y){return K(Y)?"<token>":null}},$X=function(K){return function(Y){return Y.type===K?Y.value:null}},P0=function(K,Y){if(Y===void 0)Y=String;return function(X){if(X.type!=="word")return null;var Z=X.value.match(K);if(Z===null)return null;var Q=Y(Z[1]);return Q}},y0=y6(function(J){return J.type==="space"}),e9=y6(function(J){return J.type==="div"&&J.value==="/"}),VX=y6(function(J){return J.type==="div"&&J.value===","}),BX=$X("word"),k6=P0(XX),C6=P0(ZX),V8=P0(HX,Number),i0=P0(WX,Number),R1=P0(wX),J7=P0(zX,function(J){return J.toLowerCase()}),g6=P0(UX),H5=P0(QX),AX=eY,_8=YX,P6=P0(/^(none|underline|line-through)$/i),GX=function(K){var Y=K.expect(V8);if(K.hasTokens())K.expect(e9),Y/=K.expect(V8);return{aspectRatio:Y}},MX=P0(/^(solid|dashed|dotted)$/),qX=1,OX="black",NX="solid",jX=function(K){var Y,X,Z;if(K.matches(k6))return K.expectEmpty(),{borderWidth:0,borderColor:"black",borderStyle:"solid"};var Q=0;while(Q<3&&K.hasTokens()){if(Q!==0)K.expect(y0);if(Y===void 0&&K.matches(i0,R1))Y=K.lastValue;else if(X===void 0&&K.matches(_8))X=K.lastValue;else if(Z===void 0&&K.matches(MX))Z=K.lastValue;else K.throw();Q+=1}if(K.expectEmpty(),Y===void 0)Y=qX;if(X===void 0)X=OX;if(Z===void 0)Z=NX;return{borderWidth:Y,borderColor:X,borderStyle:Z}},R8=function(K){var Y=K.types,X=Y===void 0?[i0,R1,g6]:Y,Z=K.directions,Q=Z===void 0?["Top","Right","Bottom","Left"]:Z,H=K.prefix,w=H===void 0?"":H,W=K.suffix,z=W===void 0?"":W;return function(U){var $,V=[];V.push(U.expect.apply(U,X));while(V.length<4&&U.hasTokens())U.expect(y0),V.push(U.expect.apply(U,X));U.expectEmpty();var B=V[0],q=V[1],G=q===void 0?B:q,M=V[2],N=M===void 0?B:M,j=V[3],_=j===void 0?G:j,R=function(L){return""+w+Q[L]+z};return $={},$[R(0)]=B,$[R(1)]=G,$[R(2)]=N,$[R(3)]=_,$}},K7=function(K){var Y=K.expect(i0),X=K.matches(y0)?K.expect(i0):Y;return K.expectEmpty(),{width:Y,height:X}},Y7=function(K){var Y,X,Z,Q;if(K.matches(k6))return K.expectEmpty(),{offset:{width:0,height:0},radius:0,color:"black"};var H=!1;while(K.hasTokens()){if(H)K.expect(y0);if(Y===void 0&&K.matches(i0,R1))if(Y=K.lastValue,K.expect(y0),X=K.expect(i0,R1),K.saveRewindPoint(),K.matches(y0)&&K.matches(i0,R1))Z=K.lastValue;else K.rewind();else if(Q===void 0&&K.matches(_8))Q=K.lastValue;else K.throw();H=!0}if(Y===void 0)K.throw();return{offset:{width:Y,height:X},radius:Z!==void 0?Z:0,color:Q!==void 0?Q:"black"}},LX=function(K){var Y=Y7(K),X=Y.offset,Z=Y.radius,Q=Y.color;return{shadowOffset:X,shadowRadius:Z,shadowColor:Q,shadowOpacity:1}},FX=1,EX=1,_X=0,RX=function(K){var Y,X,Z;if(K.matches(k6))return K.expectEmpty(),{flexGrow:0,flexShrink:0,flexBasis:"auto"};if(K.saveRewindPoint(),K.matches(C6)&&!K.hasTokens())return{flexGrow:1,flexShrink:1,flexBasis:"auto"};K.rewind();var Q=0;while(Q<2&&K.hasTokens()){if(Q!==0)K.expect(y0);if(Y===void 0&&K.matches(V8))if(Y=K.lastValue,K.saveRewindPoint(),K.matches(y0)&&K.matches(V8))X=K.lastValue;else K.rewind();else if(Z===void 0&&K.matches(i0,R1,g6))Z=K.lastValue;else if(Z===void 0&&K.matches(C6))Z="auto";else K.throw();Q+=1}if(K.expectEmpty(),Y===void 0)Y=FX;if(X===void 0)X=EX;if(Z===void 0)Z=_X;return{flexGrow:Y,flexShrink:X,flexBasis:Z}},DX=P0(/(nowrap|wrap|wrap-reverse)/),IX=P0(/(row|row-reverse|column|column-reverse)/),TX="nowrap",CX="row",PX=function(K){var Y,X,Z=0;while(Z<2&&K.hasTokens()){if(Z!==0)K.expect(y0);if(Y===void 0&&K.matches(DX))Y=K.lastValue;else if(X===void 0&&K.matches(IX))X=K.lastValue;else K.throw();Z+=1}if(K.expectEmpty(),Y===void 0)Y=TX;if(X===void 0)X=CX;return{flexWrap:Y,flexDirection:X}},X7=function(K){var Y;if(K.matches(AX))Y=K.lastValue;else{Y=K.expect(H5);while(K.hasTokens()){K.expect(y0);var X=K.expect(H5);Y+=" "+X}}return K.expectEmpty(),{fontFamily:Y}},SX=P0(/^(normal)$/),vX=P0(/^(italic)$/),yX=P0(/^([1-9]00|bold)$/),kX=P0(/^(small-caps)$/),gX="normal",xX="normal",bX=[],hX=function(K){var Y,X,Z,Q,H=0;while(H<3&&K.hasTokens()){if(K.matches(SX));else if(Y===void 0&&K.matches(vX))Y=K.lastValue;else if(X===void 0&&K.matches(yX))X=K.lastValue;else if(Z===void 0&&K.matches(kX))Z=[K.lastValue];else break;K.expect(y0),H+=1}var w=K.expect(i0,R1);if(K.matches(e9))Q=K.expect(i0,R1);K.expect(y0);var W=X7(K),z=W.fontFamily;if(Y===void 0)Y=gX;if(X===void 0)X=xX;if(Z===void 0)Z=bX;var U={fontStyle:Y,fontWeight:X,fontVariant:Z,fontSize:w,fontFamily:z};if(Q!==void 0)U.lineHeight=Q;return U},mX=function(K){var Y=[K.expect(H5)];while(K.hasTokens())K.expect(y0),Y.push(K.expect(H5));return{fontVariant:Y}},fX=P0(/(flex-(?:start|end)|center|stretch|space-(?:between|around))/),dX=P0(/(flex-(?:start|end)|center|space-(?:between|around|evenly))/),lX=function(K){var Y=K.expect(fX),X;if(K.hasTokens())K.expect(y0),X=K.expect(dX);else X="stretch";return K.expectEmpty(),{alignContent:Y,justifyContent:X}},cX=P0(/^(solid|double|dotted|dashed)$/),uX="none",pX="solid",iX="black",oX=function(K){var Y,X,Z,Q=!1;while(K.hasTokens()){if(Q)K.expect(y0);if(Y===void 0&&K.matches(P6)){var H=[K.lastValue.toLowerCase()];if(K.saveRewindPoint(),H[0]!=="none"&&K.matches(y0)&&K.matches(P6))H.push(K.lastValue.toLowerCase()),H.sort().reverse();else K.rewind();Y=H.join(" ")}else if(X===void 0&&K.matches(cX))X=K.lastValue;else if(Z===void 0&&K.matches(_8))Z=K.lastValue;else K.throw();Q=!0}return{textDecorationLine:Y!==void 0?Y:uX,textDecorationColor:Z!==void 0?Z:iX,textDecorationStyle:X!==void 0?X:pX}},rX=function(K){var Y=[],X=!1;while(K.hasTokens()){if(X)K.expect(y0);Y.push(K.expect(P6).toLowerCase()),X=!0}return Y.sort().reverse(),{textDecorationLine:Y.join(" ")}},nX=function(K){var Y=Y7(K),X=Y.offset,Z=Y.radius,Q=Y.color;return{textShadowOffset:X,textShadowRadius:Z,textShadowColor:Q}},x6=function(K){return function(Y){var X=Y.expect(K);return Y.expectEmpty(),X}},I6=x6(V8),s9=x6(i0),$8=x6(J7),b6=function(K){return function(Y,X){return function(Z){var Q,H,w=Z.expect(K),W;if(Z.hasTokens())Z.expect(VX),W=Z.expect(K);else if(X!==void 0)W=X;else return w;return Z.expectEmpty(),[(Q={},Q[Y+"Y"]=W,Q),(H={},H[Y+"X"]=w,H)]}}},sX=b6(V8),aX=b6(i0),tX=b6(J7),eX={perspective:I6,scale:sX("scale"),scaleX:I6,scaleY:I6,translate:aX("translate",0),translateX:s9,translateY:s9,rotate:$8,rotateX:$8,rotateY:$8,rotateZ:$8,skewX:$8,skewY:$8,skew:tX("skew","0deg")},JZ=function(K){var Y=[],X=!1;while(K.hasTokens()){if(X)K.expect(y0);var Z=K.expectFunction(),Q=Z.functionName,H=eX[Q](Z);if(!Array.isArray(H)){var w;H=[(w={},w[Q]=H,w)]}Y=H.concat(Y),X=!0}return{transform:Y}},KZ=function(K){return{backgroundColor:K.expect(_8)}},YZ=R8({types:[_8],prefix:"border",suffix:"Color"}),XZ=R8({directions:["TopLeft","TopRight","BottomRight","BottomLeft"],prefix:"border",suffix:"Radius"}),ZZ=R8({prefix:"border",suffix:"Width"}),QZ=R8({types:[i0,R1,g6,C6],prefix:"margin"}),HZ=R8({prefix:"padding"}),WZ=function(K){return{fontWeight:K.expect(BX)}},wZ=function(K){return{shadowOffset:K7(K)}},zZ=function(K){return{textShadowOffset:K7(K)}},Z7={aspectRatio:GX,background:KZ,border:jX,borderColor:YZ,borderRadius:XZ,borderWidth:ZZ,boxShadow:LX,flex:RX,flexFlow:PX,font:hX,fontFamily:X7,fontVariant:mX,fontWeight:WZ,margin:QZ,padding:HZ,placeContent:lX,shadowOffset:wZ,textShadow:nX,textShadowOffset:zZ,textDecoration:oX,textDecorationLine:rX,transform:JZ},S6;if(Bun.env.NODE_ENV!=="production")S6=["aspectRatio","elevation","flexGrow","flexShrink","opacity","shadowOpacity","zIndex"];var UZ=S6!=null?new RegExp(S6.join("|")):null,T6="SYMBOL_MATCH",$Z=function(){function J(Y,X){this.index=0,this.nodes=Y,this.functionName=X!=null?X.value:null,this.lastValue=null,this.rewindIndex=-1}var K=J.prototype;return K.hasTokens=function(){return this.index<=this.nodes.length-1},K[T6]=function(){if(!this.hasTokens())return null;var Y=this.nodes[this.index];for(var X=0;X<arguments.length;X+=1){var Z=X<0||arguments.length<=X?void 0:arguments[X],Q=Z(Y);if(Q!==null)return this.index+=1,this.lastValue=Q,Q}return null},K.matches=function(){return this[T6].apply(this,arguments)!==null},K.expect=function(){var X=this[T6].apply(this,arguments);return X!==null?X:this.throw()},K.matchesFunction=function(){var X=this.nodes[this.index];if(X.type!=="function")return null;var Z=new J(X.nodes,X);return this.index+=1,this.lastValue=null,Z},K.expectFunction=function(){var X=this.matchesFunction();return X!==null?X:this.throw()},K.expectEmpty=function(){if(this.hasTokens())this.throw()},K.throw=function(){throw Error("Unexpected token type: "+this.nodes[this.index].type)},K.saveRewindPoint=function(){this.rewindIndex=this.index},K.rewind=function(){if(this.rewindIndex===-1)throw Error("Internal error");this.index=this.rewindIndex,this.lastValue=null},J}(),VZ=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?)(?:px)?$/i,BZ=/^[+-]?(?:\d*\.\d*|[1-9]\d*)(?:e[+-]?\d+)?$/i,AZ=/^true|false$/i,GZ=/^null$/i,MZ=/^undefined$/i,Q7=function(K,Y){if(Bun.env.NODE_ENV!=="production"){var X=!UZ.test(K),Z=BZ.test(Y);if(X&&Z)console.warn('Expected style "'+K+": "+Y+'" to contain units');if(!X&&Y!=="0"&&!Z)console.warn('Expected style "'+K+": "+Y+'" to be unitless')}var Q=Y.match(VZ);if(Q!==null)return Number(Q[1]);var H=Y.match(AZ);if(H!==null)return H[0].toLowerCase()==="true";var w=Y.match(GZ);if(w!==null)return null;var W=Y.match(MZ);if(W!==null)return;return Y},a9=function(K,Y){var X=sY(Y),Z=new $Z(X.nodes);return Z7[K](Z)},qZ=Bun.env.NODE_ENV==="production"?a9:function(J,K){try{return a9(J,K)}catch(Y){throw Error('Failed to parse declaration "'+J+": "+K+'"')}},H7=function(K,Y,X){var Z,Q=X===!1||!(K in Z7),H=Y.trim(),w=Q?(Z={},Z[K]=Q7(K,H),Z):qZ(K,H);return w},W7=function(K){var Y=/^--\w+/.test(K);if(Y)return K;return aY(K)},OZ=function(K,Y){if(Y===void 0)Y=[];return K.reduce(function(X,Z){var Q=W7(Z[0]),H=Z[1],w=Y.indexOf(Q)===-1;return Object.assign(X,H7(Q,H,w))},{})};w7.default=OZ;w7.getPropertyName=W7;w7.getStylesForProperty=H7;w7.transformRawValue=Q7});var U7=k0((z7,w5)=>{/*!
3
- * https://github.com/gilmoreorless/css-background-parser
4
- * Copyright © 2015 Gilmore Davidson under the MIT license: http://gilmoreorless.mit-license.org/
5
- */(function(J){function K(H){if(!(this instanceof K))return new K;this.backgrounds=H||[]}K.prototype.toString=function(){return this.backgrounds.join(", ")};function Y(H){if(!(this instanceof Y))return new Y(H);H=H||{};var w=this;function W(z,U){w[z]=z in H?H[z]:U}W("color",""),W("image","none"),W("attachment","scroll"),W("clip","border-box"),W("origin","padding-box"),W("position","0% 0%"),W("repeat","repeat"),W("size","auto")}Y.prototype.toString=function(){var H=[this.image,this.repeat,this.attachment,this.position+" / "+this.size,this.origin,this.clip];if(this.color)H.unshift(this.color);return H.join(" ")},J.BackgroundList=K,J.Background=Y;function X(H){var w=[],W=/[,\(\)]/,z=0,U="";if(H==null)return w;while(H.length){var $=W.exec(H);if(!$)break;var V=$[0],B=!1;switch(V){case",":if(!z)w.push(U.trim()),U="",B=!0;break;case"(":z++;break;case")":z--;break}var q=$.index+1;U+=H.slice(0,B?q-1:q),H=H.slice(q)}if(U.length||H.length)w.push((U+H).trim());return w}function Z(H){return H.trim()}function Q(H){return(H||"").split(",").map(Z)}J.parseElementStyle=function(H){var w=new K;if(H==null)return w;var W=X(H.backgroundImage),z=H.backgroundColor,U=Q(H.backgroundAttachment),$=Q(H.backgroundClip),V=Q(H.backgroundOrigin),B=Q(H.backgroundPosition),q=Q(H.backgroundRepeat),G=Q(H.backgroundSize),M;for(var N=0,j=W.length;N<j;N++){if(M=new Y({image:W[N],attachment:U[N%U.length],clip:$[N%$.length],origin:V[N%V.length],position:B[N%B.length],repeat:q[N%q.length],size:G[N%G.length]}),N===j-1)M.color=z;w.backgrounds.push(M)}return w}})(function(J){if(typeof w5<"u"&&z7!==void 0)return z7;return J.cssBgParser={}}(z7))});var V7=k0((mV,$7)=>{var EZ=/,(?![^\(]*\))/,_Z=/\s(?![^(]*\))/,RZ=/^[0-9]+[a-zA-Z%]+?$/,DZ=(J)=>{let K=J.split(_Z),Y=K.includes("inset"),X=K.slice(-1)[0],Z=!TZ(X)?X:void 0,Q=K.filter((U)=>U!=="inset").filter((U)=>U!==Z).map(CZ),[H,w,W,z]=Q;return{inset:Y,offsetX:H,offsetY:w,blurRadius:W,spreadRadius:z,color:Z}},IZ=(J)=>{let{inset:K,offsetX:Y=0,offsetY:X=0,blurRadius:Z=0,spreadRadius:Q,color:H}=J||{};return[K?"inset":null,Y,X,Z,Q,H].filter((w)=>w!==null&&w!==void 0).map(PZ).map((w)=>(""+w).trim()).join(" ")},TZ=(J)=>J==="0"||RZ.test(J),CZ=(J)=>{if(!/px$/.test(J)&&J!=="0")return J;let K=parseFloat(J);return!isNaN(K)?K:J},PZ=(J)=>typeof J==="number"&&J!==0?J+"px":J,SZ=(J)=>J.split(EZ).map((K)=>K.trim()).map(DZ),vZ=(J)=>J.map(IZ).join(", ");$7.exports={parse:SZ,stringify:vZ}});var A7=k0((fV,B7)=>{B7.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var M7=k0((dV,G7)=>{var yZ=new RegExp("[^#a-f\\d]","gi"),kZ=new RegExp("^#?[a-f\\d]{3}[a-f\\d]?$|^#?[a-f\\d]{6}([a-f\\d]{2})?$","i");G7.exports=(J,K={})=>{if(typeof J!=="string"||yZ.test(J)||!kZ.test(J))throw TypeError("Expected a valid hex string");J=J.replace(/^#/,"");let Y=1;if(J.length===8)Y=Number.parseInt(J.slice(6,8),16)/255,J=J.slice(0,6);if(J.length===4)Y=Number.parseInt(J.slice(3,4).repeat(2),16)/255,J=J.slice(0,3);if(J.length===3)J=J[0]+J[0]+J[1]+J[1]+J[2]+J[2];let X=Number.parseInt(J,16),Z=X>>16,Q=X>>8&255,H=X&255,w=typeof K.alpha==="number"?K.alpha:Y;if(K.format==="array")return[Z,Q,H,w];if(K.format==="css"){let W=w===1?"":` / ${Number((w*100).toFixed(2))}%`;return`rgb(${Z} ${Q} ${H}${W})`}return{red:Z,green:Q,blue:H,alpha:w}}});var F7=k0((cV,L7)=>{/*!
6
- * escape-html
7
- * Copyright(c) 2012-2013 TJ Holowaychuk
8
- * Copyright(c) 2015 Andreas Lubbe
9
- * Copyright(c) 2015 Tiancheng "Timothy" Gu
10
- * MIT Licensed
11
- */var KQ=/["'&<>]/;L7.exports=YQ;function YQ(J){var K=""+J,Y=KQ.exec(K);if(!Y)return K;var X,Z="",Q=0,H=0;for(Q=Y.index;Q<K.length;Q++){switch(K.charCodeAt(Q)){case 34:X="&quot;";break;case 38:X="&amp;";break;case 39:X="&#39;";break;case 60:X="&lt;";break;case 62:X="&gt;";break;default:continue}if(H!==Q)Z+=K.substring(H,Q);H=Q+1,Z+=X}return H!==Q?Z+K.substring(H,Q):Z}});import{AsyncLocalStorage as aK}from"async_hooks";class w8 extends v0{service;static _name="BroadcastingServiceContainer";publishCb;context=new aK;constructor(J){super();this.service=J}onPublish(J){this.publishCb=J}publish(...J){let[K,Y,X]=J;this.publishCb(K,Y,X)}async handleMessage(J,K){let Y=JSON.parse(K);if(Y.type==="subscribe"){let X=Object.entries(this.service.channels).sort(([Z],[Q])=>Z.length-Q.length);for(let[Z,Q]of X){let H=new URLPattern({pathname:Z});if(H.test({pathname:Y.topic})){let w=H.exec({pathname:Y.topic})?.pathname.groups,W=new Q;if(await W.subscribe.call(W,w))J.subscribe(Y.topic);break}}}if(Y.type==="broadcast")J.publish(Y.topic,JSON.stringify({topic:Y.topic,data:Y.payload}));if(Y.type==="unsubscribe")J.unsubscribe(Y.topic)}run(J,K){let Y=J.get("Cookie"),X=new Map;if(Y){let Z=Y.split(";");for(let Q of Z){let[H,w]=Q.split("=");X.set(H.trim(),w.trim())}}this.context.run({headers:J,cookies:X},K)}}class g1{static async user(){let J=M0.getStore(),K=w8.use().context.getStore(),Y="",X="";if(J?.req)Y=J.req.cookies.get("access_token"),X=J.req.headers.get("User-Agent");if(K?.cookies)X=K.headers.get("User-Agent"),Y=K.cookies.get("access_token");let Z=J?.user;if(!Z)Z=(await j0.use().getSession(Y,X))?.user,J?.setUser(Z);if(Z)return Z;throw new i4}static async guard(J){let K=await g1.user();if(!K)throw new t8;try{if(!await J(K))throw new t8}catch(Y){throw new t8}}static async guardSafe(J){let K=await g1.user();if(!K)return!1;try{return await J(K)}catch(Y){return!1}}static async authenticate(J){return await j0.use().authenticate(J)}static async createMagicLink(J){return await j0.use().createMagicLinkToken(J)}}class z8{static getSupportedLocales(){return C0.use().service.supportedLocales}static getDefaultLocale(){return C0.use().service.defaultLocale}static locale(){let J=C0.use(),K=M0.getStore();if(K)return J.detectLocale(K.req);return J.service.defaultLocale}static setLocale(J=z8.locale()){let K=C0.use(),Y=J;if(!K.service.supportedLocales.includes(J))Y=K.service.defaultLocale;return M0.getStore().setCookie("i18n-locale",Y,{expires:new Date(Date.now()+31536000000),secure:!1,httpOnly:!1}),Y}}import tK from"sharp";import{Buffer as eK}from"buffer";class N8 extends v0{service;static _name="FileStorageServiceContainer";constructor(J){super();this.service=J}}class o4{static async put(J){return N8.use().service.driver.put(J)}static async metadata(J){let K=eK.from(await J.arrayBuffer());try{return await tK(K).metadata()}catch{return{}}}static async fetch(J){return N8.use().service.driver.fetch(J)}static list(J){return N8.use().service.driver.list(J)}static delete(){}}function r4(J){return Object.fromEntries(Object.entries(J).filter(([,K])=>{return K!==null&&K!==void 0}))}class s1 extends Error{constructor(){super("Adapter not found");this.name="AdapterNotFound"}}class e5{createSession(){throw new s1}deleteSession(){throw new s1}findSession(){throw new s1}findUserByEmailAddress(){throw new s1}updateSession(){throw new s1}createUser(){throw new s1}}class J6 extends w0{schema={email:{required:"Email is required",string:"Invalid email",email:"Invalid email"},password:{required:"Password is required"}}}class t4 extends w0{schema={name:{string:"Invalid name",required:"Name is required","min:2":"Name must be at least 3 characters"},email:{string:"Invalid email",required:"Email is required",email:"Invalid email"},password:{"min:8":"Password must be at least 9 characters"}}}class e4 extends w0{schema={email:{required:"Email is required",email:"Invalid email"}}}class J9 extends w0{schema={password:{required:"Password is required",password:"Invalid password"}}}class b0 extends n4{provider=j0.use()?.provider;async me(){let J=await g1.user();if(!J)throw new a4;return J}async verifyEmail(J=new w0){let K=await J.input(),Y=j0.use()?.provider,X=await Y.adapter.findUserByVerificationToken(K.get("token"));if(!X)return{email:null};if(await Y.adapter.verifyUser(X.email),X)return{email:X.email};return{email:null}}async signInWithMagicLink(J=new w0){let K=j0.use(),Y=K.provider,X=J.search.get("token"),Z=decodeURIComponent(J.search.get("email")).toLowerCase().trim(),Q=null;try{Q=await Y.adapter.findUserMagicLinkToken({email:Z,token:X})}catch(W){return console.log(W),{error:JSON.stringify(W)}}if(!Q)return{error:"Invalid token"};await Y.adapter.verifyUser(Z),await Y.adapter.deleteMagicLinkToken(Z);let H=await K.createOrUpdateSession({email:Z}),w=new URL(J.rawRequest.url);return J.ctx().setCookie("access_token",H.token,{expires:H.expiresAt,secure:!w.origin.includes("localhost"),httpOnly:!0}),await Y.onSignIn(H,J.search.toJSON()),{session:H}}async signInWithPinV2(J=new w0){let K=j0.use(),Y=K.provider,X=await J.input(),{email:Z,pin:Q}=X.toJSON(),H=Z.toLowerCase().trim();if(!await Y.adapter.findUserMagicLinkToken({email:H,pin:Q}))throw new a0({pin:["Invalid pin"]});await Y.adapter.deleteMagicLinkToken(H),await Y.adapter.verifyUser(H);let W=await K.createOrUpdateSessionV2({email:H}),z=new URL(J.rawRequest.url);return J.ctx().setCookie("access_token",W.token,{expires:W.expiresAt,secure:!z.origin.includes("localhost"),httpOnly:!0}),await Y.onSignIn(W,J.search.toJSON()),W}async signInWithPin(J=new w0){let K=j0.use(),Y=K.provider,X=await J.input(),{email:Z,pin:Q}=X.toJSON(),H=Z.toLowerCase().trim();if(!await Y.adapter.findUserMagicLinkToken({email:H,pin:Q}))throw new a0({pin:["Invalid pin"]});await Y.adapter.deleteMagicLinkToken(H),await Y.adapter.verifyUser(H);let W=await K.createOrUpdateSession({email:H}),z=new URL(J.rawRequest.url);return J.ctx().setCookie("access_token",W.token,{expires:W.expiresAt,secure:!z.origin.includes("localhost"),httpOnly:!0}),await Y.onSignIn(W,J.search.toJSON()),{session:W}}async signInV2(J=new J6){let K=new URL(J.rawRequest.url),Y=await J.input(),{email:X,password:Z}=Y.toJSON(),Q=X.toLowerCase().trim(),H=j0.use().provider,w=await H.adapter.findUserByEmailAddress(Q,H.verifyEmail);if(!w)throw new a0({invalid_credentials:["Invalid credentials"]});if(!await H.verifyPassword(Z,w.password))throw new a0({invalid_credentials:["Invalid credentials"]});let z=await j0.use().createOrUpdateSessionV2({email:w.email,id:w.id});J.ctx().setCookie("access_token",z.token,{expires:z.expiresAt,secure:!K.origin.includes("localhost"),httpOnly:!0}),await H.onSignIn(w,J.search.toJSON());let{password:U,...$}=w;return $}async signIn(J=new J6){let K=await J.input(),{email:Y,password:X}=K.toJSON(),Z=Y.toLowerCase().trim(),Q=j0.use().provider,H=await Q.adapter.findUserByEmailAddress(Z,Q.verifyEmail);if(!H)throw new a0({invalid_credentials:["Invalid credentials"]});if(!await Q.verifyPassword(X,H.password))throw new a0({invalid_credentials:["Invalid credentials"]});let W=await j0.use().createOrUpdateSession({email:H.email,id:H.id}),z=new URL(J.rawRequest.url);J.ctx().setCookie("access_token",W.token,{expires:W.expiresAt,secure:!z.origin.includes("localhost"),httpOnly:!0}),await Q.onSignIn(H,J.search.toJSON());let{password:U,...$}=H;return $}async signUp(){let J=j0.use().provider,K=new J.signUpRequest,Y=await K.input(),{email:X,password:Z,name:Q,invitationId:H}=Y.toJSON(),w=X.toLowerCase().trim();if(await J.adapter.findUserByEmailAddress(w,!1))throw new a0({email:["Email address already exists"]});let z=await J.hashPassword(Z),U=C0.use().detectLocale(K),$;if(H){if($=await J.adapter.findInvitation(H,w),$)await J.adapter.deleteInvitationById(H)}let V,B;if($)V=await J.adapter.createUser({email:w,name:Q,password:z,emailVerifiedAt:new Date,locale:U}),await J.adapter.createAccount({organizationId:$.organizationId,userId:V.id,organizationRole:$.role});else B=await J.generateEmailVerificationToken(w),V=await J.adapter.createUser({email:w,name:Q,password:z,verificationToken:B,locale:U});return await J.onSignUp(V,B,K.search.toJSON()),V}async signOut(J=new w0){let K=J.cookies.get("access_token"),Y=await g1.user(),X=j0.use().provider;await X.adapter.deleteSession({token:K});let Z=new URL(J.rawRequest.url);return J.ctx().setCookie("access_token","",{expires:new Date(0),secure:!Z.origin.includes("localhost"),httpOnly:!0}),await X.onSignOut(Y),{}}async forgotPassword(J=new e4){let Y=(await J.input()).get("email").toLowerCase().trim(),X=j0.use().provider,Z=await X.adapter.findUserByEmailAddress(Y,X.verifyEmail);if(!Z)return{};let Q=await X.generateForgotPasswordToken(Z);return await X.adapter.createPasswordResetToken({user:Z,token:Q}),await X.onForgotPassword(Z,Q),{}}async resetPassword(J=new J9){let K=j0.use().provider,Y=await J.input(),{password:X,token:Z}=Y.toJSON(),Q=await K.adapter.findPasswordResetToken({token:Z});if(!Q)throw new a0({token:["Invalid token"]});if(j8.Instant.from(Q.createdAt.toISOString()).add({hours:24}).until(j8.Now.instant()).sign>=0)throw new a0({token:["Token expired"]});await K.adapter.deletePasswordResetToken({token:Z});let w=await K.adapter.findUserByEmailAddress(Q.user.email,K.verifyEmail);if(!w)throw new a0({email:["User not found"]});let W=await K.hashPassword(X);return await K.adapter.updateUserPassword({id:w.id,password:W}),await K.adapter.deleteAllUserSessions(w.id),await K.onResetPassword(w),{}}async changePassword(J=new w0){let K=j0.use().provider,Y=await g1.user(),X=await J.input(),{oldPassword:Z,newPassword:Q}=X.toJSON(),{password:H}=await K.adapter.findUserByEmailAddress(Y.email,K.verifyEmail);if(!await K.verifyPassword(Z,H))throw new a0({oldPassword:["Incorrect password"]});let W=await K.hashPassword(Q);return await K.adapter.updateUserPassword({id:Y.id,password:W}),await K.adapter.deleteAllUserSessions(Y.id),{}}async oauthRedirect(J=new w0){let{provider:K}=J.params,Y=j0.use().provider.oauthProviders[K];if(!Y)throw Error(`Invalid provider: ${K}`);return{destination:await Y.getRedirectUrl(J)}}async oauthCallback(J=new w0){let{provider:K}=J.params,Y=j0.use(),X=Y.provider,Z=X.oauthProviders[K],{email:Q,name:H}=await Z.onCallback(J);if(!Q)return console.error("Authentication error: No email returned from OAuth provider callback"),{session:null};let w=await X.adapter.findUserByEmailAddress(Q,!1),W=C0.use().detectLocale(J),z="signin";if(!w)z="signup",w=await X.adapter.createUser({email:Q,name:H,locale:W,emailVerifiedAt:new Date}),await X.adapter.createSocialAccount({provider:K,userId:w.id,email:Q,username:H,providerId:"",expiresAt:new Date,accessToken:"",refreshToken:""});let U=await Y.createOrUpdateSessionV2({email:w.email,id:w.id}),$=new URL(J.rawRequest.url);if(J.ctx().setCookie("access_token",U.token,{secure:!$.origin.includes("localhost"),httpOnly:!0,expires:U.expiresAt}),z==="signup"){let V=await X.generateMagicLinkToken(Q);await X.onSignUp(w,V,J.search.toJSON())}else await X.onSignIn(w,J.search.toJSON());return{session:U}}async createMagicLinkToken(J=new w0){let Y=(await J.input()).get("email").toLowerCase().trim(),X=j0.use(),Z=X.provider,{user:Q,pin:H,token:w}=await X.createMagicLinkToken(Y);if(Q)return await Z.onMagicLinkCreated(Q,{email:Y,pin:H,token:w}),{email:Y};return{email:null}}}class K9 extends K6{middlewares=["cache:private"];routes={"/:provider":this.view("_Redirect",[b0,"oauthRedirect"]),"/:provider/callback":this.view("auth/OauthCallback",[b0,"oauthCallback"])}}class Y6 extends K6{middlewares=["cache:private"];routes={"/sign-in/magic-link":this.view("auth/MagicLinkSignIn",[b0,"signInWithMagicLink"]),"/oauth":K9}}class X6 extends M1{middlewares=["cache:private"];routes={"/sign-in":this.post(b0,"signIn"),"/sign-in-v2":this.post(b0,"signInV2"),"/sign-up":this.post(b0,"signUp"),"/sign-out":this.post(b0,"signOut"),"/forgot-password":this.post(b0,"forgotPassword"),"/reset-password":this.post(b0,"resetPassword"),"/change-password":this.post(b0,"changePassword"),"/verify-email":this.post(b0,"verifyEmail"),"/me":this.get(b0,"me").middleware(["auth"]),"/magic-link":this.post(b0,"createMagicLinkToken"),"/sign-in-with-pin":this.post(b0,"signInWithPin"),"/sign-in-with-pin-v2":this.post(b0,"signInWithPinV2")}}class JY extends s4{basePath="/auth";verifyEmail=!0;redirectPath="/dashboard";sessionExpiresInHours=24;sessionAbsoluteExpiresInHours=672;signUpRequest=t4;adapter=new e5;oauthProviders={};boot(){}async verifyPassword(J,K){return await Bun.password.verify(J,K)}async hashPassword(J){return await Bun.password.hash(J)}async generateForgotPasswordToken(J){let K=new Bun.CryptoHasher("sha256");return K.update(`${J.email}${Date.now()}`),K.digest("hex")}generateEmailVerificationToken(J){if(!this.verifyEmail)return"";let K=new Bun.CryptoHasher("sha256");return K.update(`${J}${Date.now()}`),K.digest("hex")}generateMagicLinkToken(J){let K=new Bun.CryptoHasher("sha256");return K.update(`${J}${Date.now()}`),K.digest("hex")}extendSession(J){return{}}onSignUp(J,K,Y){}onSignIn(J,K){}onSignOut(J){}onForgotPassword(J,K){}onResetPassword(J){}onMagicLinkCreated(J,K){return}}class Z6 extends M1{middlewares=["cache:private,0,no-store"];routes={"/set-locale/:locale":this.get(async()=>{let J=new w0,K=J.params.locale;return console.log(`Setting locale to ${K}`),J.ctx().setCookie("i18n-locale",K),await C0.use().service.onLocaleChange(K),{locale:K}}),"/translations/:locale/:scope*":this.get(async()=>{let J=new w0,K=`/${J.params.scope??""}`,X=J.params.locale??C0.use().detectLocale(J),Z=C0.use().getPageTranslations(X,K);return J.ctx().setCookie("i18n-locale",X,{expires:new Date(Date.now()+31536000000)}),{[X]:Z}})}}class Q6 extends M1{routes={"/resize":this.file(async()=>{let J=new w0,K=new URL(J.rawRequest.url),Y=K.searchParams.get("url"),X=Number(K.searchParams.get("w")),Z=Number(K.searchParams.get("h")),Q=K.searchParams.get("fit")??"cover",H=Number(K.searchParams.get("q"));if(!Y)return new Response(JSON.stringify({error:"url query parameter is required"}),{headers:{"Content-Type":"application/json"},status:404});let W=`${Y.startsWith("http")?"":`http://localhost:${process.env.PORT||5173}`}${Y}`,z=await fetch(W);if(!z.ok)return new Response(JSON.stringify({error:"Image not found",info:W}),{headers:{"Content-Type":"application/json"},status:404});let U=Buffer.from(await z.arrayBuffer()),$=await Y9.use().service.driver.resize(U,{height:Z,width:X,fit:Q,quality:H});z.headers.delete("Content-Type"),z.headers.delete("Content-Length");let V=new Headers(z.headers);return V.set("Content-Type","image/webp"),V.set("Content-Length",`${$.byteLength}`),new Response(new Uint8Array($),{headers:V})})}}class Y9 extends v0{service;static _name="ImageOptimizationServiceContainer";constructor(J){super();this.service=J}}import{mkdir as H6,readdir as KY,access as YY}from"fs/promises";async function W6(J){try{return await YY(J),!0}catch{return!1}}class t0 extends v0{service;static _name="LoggingServiceContainer";writer;isReady=!1;logsDirPath=`${process.env.ROOT_DIR}/storage/logs`;flushTimeout;fileSize=0;writerSize=0;isCreatingFile=!1;currentLogFilePath;constructor(J){super();this.service=J;this.boot().then(()=>{this.isReady=!0})}async boot(){if(!process.env.ROOT_DIR)return;if(!await W6(`${process.env.ROOT_DIR}/storage`))await H6(`${process.env.ROOT_DIR}/storage`);if(!await W6(this.logsDirPath))await H6(this.logsDirPath);this.newLogFile()}async newLogFile(){if(!await W6(this.logsDirPath))await H6(this.logsDirPath);if(this.isCreatingFile=!0,this.currentLogFilePath){this.writer.flush(),this.writer.end(),this.writer=null;let Y=new File([await Bun.file(this.currentLogFilePath).arrayBuffer()],this.currentLogFilePath.split("/").pop(),{type:"text/plain"});this.service.onLogFileClosed(Y),this.fileSize=0,this.writerSize=0}let K=(await KY(this.logsDirPath)).sort().reverse()[0];if(K){let Y=Bun.file(`${this.logsDirPath}/${K}`);if(Y.size<this.service.maxFileSize)this.currentLogFilePath=`${this.logsDirPath}/${K}`,this.writer=Y.writer(),this.writer.write(await Y.text()),this.writer.write(`
12
- `),this.writer.flush(),this.fileSize=Y.size}if(!this.writer){let Y=`${new Date(Date.now()).toISOString()}.log`.replaceAll(":","-");this.currentLogFilePath=`${this.logsDirPath}/${Y}`;let X=Bun.file(`${this.logsDirPath}/${Y}`);this.writer=X.writer(),this.fileSize=0,this.writerSize=0}this.isCreatingFile=!1}async log(J,K,Y={}){if(!this.isReady)await new Promise((w)=>{let W=setInterval(()=>{if(this.isReady)w({}),clearInterval(W)},100)});let X=M0.getStore(),Z={};if(X)Z={url:X.req.rawRequest.url,method:X.req.rawRequest.method,headers:X.req.rawRequest.headers,body:X.req.rawRequest.body};let Q={timestamp:new Date(Date.now()).toISOString(),env:Bun.env.NODE_ENV,level:J,message:K,metadata:{...Z,...Y}},H="";try{H=JSON.stringify(Q)}catch(w){console.log("Error parsing log object",w)}this.writerSize+=H.length,this.fileSize+=H.length;try{this.writer.write(H),this.writer.write(`
13
- `),this.service.onLogCreated(Q),this.tryFlush()}catch(w){console.error("Error writing log",w)}}async tryFlush(){if(this.fileSize>this.service.maxFileSize){if(!this.isCreatingFile)await this.newLogFile()}if(this.writerSize>this.service.maxFileSize/2)await this.writer.flush(),this.writerSize=0,await this.newLogFile();else clearTimeout(this.flushTimeout),this.flushTimeout=setTimeout(async()=>{await this.writer.flush(),this.writerSize=0},100)}}class w6 extends M1{middlewares=["cache:private,0"];routes={"/live":this.get(async()=>{let J=Bun.file(t0.use().currentLogFilePath);return new Response(await J.text(),{headers:{"Content-Type":"text/plain"}})})}}function XY(J){let K=new Map;for(let Y of J)if(typeof Y==="string"){let[X,Z=""]=Y.split(":");if(X.startsWith("-")){if(K.has(X.replace("-","")))K.delete(X.replace("-",""))}else K.set(X,Z.split(",").filter(Boolean))}else K.set(Y,[]);return K}class L8 extends v0{service;static _name="MiddlewareServiceContainer";constructor(J){super();this.service=J}runMiddleware(J){let K=new w0;return Array.from(XY(J).entries()).map(([Y,X])=>{if(typeof Y==="string"){let Z=this.service.aliases[Y];if(Z){let Q=new Z(K);return()=>Q.run.call(Q,...X)}}else{if(X9(Y)){let Z=new Y(K);return Z.run.bind(Z)}return Y}}).filter(Boolean).reduce((Y,X)=>{return async()=>{return{...await Y(),...await X()}}},()=>Promise.resolve({}))()}}function ZY(J){return"run"in J}function QY(J){return Object.hasOwn(J,"get")||Object.hasOwn(J,"post")||Object.hasOwn(J,"put")||Object.hasOwn(J,"delete")}function HY(J){return Object.hasOwn(J,"first")&&Object.hasOwn(J,"second")}function WY(J){if("__brand"in J)return J.__brand==="ApiRouter";return!1}function wY(J){if("__internal_brand"in J)return J.__internal_brand==="ProxyHandler";return!1}function z6(J,K="",Y=[]){let X={};function Z(Q,H,w,W){let z=Q==="/"?"":Q,U=K==="/"?"":K,$=(`${U}${z}`===""?"/":`${U}${z}`).replaceAll("//","/");if(!X[$])X[$]={};X[$][H.toUpperCase()]={exec:w,middleware:[...Y,...W]},X[$].OPTIONS={exec:()=>{let B=new w0().ctx().headers;return new Response(null,{headers:B,status:204})},middleware:[]}}for(let[Q,H]of Object.entries(J)){if(wY(H)){let w=H;for(let W of["GET","POST","PUT","DELETE"])Z(Q,W,w.run.bind(w),[]);continue}if(ZY(H)){let w=H,W=w.method,z=w.middlewares,U=w.run.bind(w);Z(Q,W,U,z)}if(QY(H))for(let[w,W]of Object.entries(H)){let z=W.middlewares,U=W.run.bind(W);Z(Q,w,U,z)}if(WY(H)){let w=new H,W=z6(w.routes,`${K}${Q}`,w.middlewares);for(let[z,U]of Object.entries(W))X[z.replaceAll("//","/")]=U}if(HY(H)){let{first:w,second:W}=H;for(let[z,U]of Object.entries(w)){let $=U.middlewares,V=U.run.bind(U),[B,...q]=Q.split("/").reverse();if(!B.startsWith(":"))throw Error("Resource route must end with a dynamic segment");Z(q.reverse().join("/"),z,V,$)}for(let[z,U]of Object.entries(W)){let $=U.middlewares,V=U.run.bind(U);Z(Q,z,V,$)}}}return Object.fromEntries(Object.entries(X).sort(([Q],[H])=>{let w=Q.split("/").length+Q.split(":").length,W=H.split("/").length+H.split(":").length;return w-W}))}var T9=H1(L9(),1),C9=H1(F9(),1),q6={};var LY=5;var E9=12,FY=13;var EY=16,_Y=17;var RY=22;var _9=28;var R9=31;var DY=33,J5=34,IY=35,G6=36,M6=37,P9=38,TY=39,CY=40,E8=41,PY=42,A=0,O=1,H0=2,S9=3,F=4,SY=[[F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,S9,F,F,F,F,F,F,F,F,F,F,F],[A,F,F,O,O,F,F,F,F,O,O,A,A,A,A,O,O,O,A,A,F,H0,F,A,A,A,A,A,A,A,A,O,A],[A,F,F,O,O,F,F,F,F,O,O,O,O,O,A,O,O,O,A,A,F,H0,F,A,A,A,A,A,A,A,A,O,A],[F,F,F,O,O,O,F,F,F,O,O,O,O,O,O,O,O,O,O,O,F,H0,F,O,O,O,O,O,O,O,O,O,O],[O,F,F,O,O,O,F,F,F,O,O,O,O,O,O,O,O,O,O,O,F,H0,F,O,O,O,O,O,O,O,O,O,O],[A,F,F,O,O,O,F,F,F,A,A,A,A,A,A,O,O,O,A,A,F,H0,F,A,A,A,A,A,A,A,A,O,A],[A,F,F,O,O,O,F,F,F,A,A,A,A,A,A,O,O,O,A,A,F,H0,F,A,A,A,A,A,A,A,A,O,A],[A,F,F,O,O,O,F,F,F,A,A,O,A,O,A,O,O,O,A,A,F,H0,F,A,A,A,A,A,A,A,A,O,A],[A,F,F,O,O,O,F,F,F,A,A,O,O,O,A,O,O,O,A,A,F,H0,F,A,A,A,A,A,A,A,A,O,A],[O,F,F,O,O,O,F,F,F,A,A,O,O,O,O,O,O,O,A,A,F,H0,F,O,O,O,O,O,A,O,O,O,A],[O,F,F,O,O,O,F,F,F,A,A,O,O,O,A,O,O,O,A,A,F,H0,F,A,A,A,A,A,A,A,A,O,A],[O,F,F,O,O,O,F,F,F,O,O,O,O,O,A,O,O,O,A,A,F,H0,F,A,A,A,A,A,A,A,A,O,A],[O,F,F,O,O,O,F,F,F,O,O,O,O,O,A,O,O,O,A,A,F,H0,F,A,A,A,A,A,A,A,A,O,A],[O,F,F,O,O,O,F,F,F,O,O,O,O,O,A,O,O,O,A,A,F,H0,F,A,A,A,A,A,A,A,A,O,A],[A,F,F,O,O,O,F,F,F,A,O,A,A,A,A,O,O,O,A,A,F,H0,F,A,A,A,A,A,A,A,A,O,A],[A,F,F,O,O,O,F,F,F,A,A,A,A,A,A,O,O,O,A,A,F,H0,F,A,A,A,A,A,A,A,A,O,A],[A,F,F,O,A,O,F,F,F,A,A,O,A,A,A,O,O,O,A,A,F,H0,F,A,A,A,A,A,A,A,A,O,A],[A,F,F,O,A,O,F,F,F,A,A,A,A,A,A,O,O,O,A,A,F,H0,F,A,A,A,A,A,A,A,A,O,A],[O,F,F,O,O,O,F,F,F,O,O,O,O,O,O,O,O,O,O,O,F,H0,F,O,O,O,O,O,O,O,O,O,A],[A,F,F,O,O,O,F,F,F,A,A,A,A,A,A,O,O,O,A,F,F,H0,F,A,A,A,A,A,A,A,A,O,A],[A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,F,A,A,A,A,A,A,A,A,A,A,A,A],[O,F,F,O,O,O,F,F,F,O,O,O,O,O,A,O,O,O,A,A,F,H0,F,A,A,A,A,A,A,A,A,O,A],[O,F,F,O,O,O,F,F,F,O,O,O,O,O,O,O,O,O,O,O,F,H0,F,O,O,O,O,O,O,O,O,O,O],[A,F,F,O,O,O,F,F,F,A,O,A,A,A,A,O,O,O,A,A,F,H0,F,A,A,A,O,O,A,A,A,O,A],[A,F,F,O,O,O,F,F,F,A,O,A,A,A,A,O,O,O,A,A,F,H0,F,A,A,A,A,O,A,A,A,O,A],[A,F,F,O,O,O,F,F,F,A,O,A,A,A,A,O,O,O,A,A,F,H0,F,O,O,O,O,A,A,A,A,O,A],[A,F,F,O,O,O,F,F,F,A,O,A,A,A,A,O,O,O,A,A,F,H0,F,A,A,A,O,O,A,A,A,O,A],[A,F,F,O,O,O,F,F,F,A,O,A,A,A,A,O,O,O,A,A,F,H0,F,A,A,A,A,O,A,A,A,O,A],[A,F,F,O,O,O,F,F,F,A,A,A,A,A,A,O,O,O,A,A,F,H0,F,A,A,A,A,A,O,A,A,O,A],[A,F,F,O,O,O,F,F,F,A,O,A,A,A,A,O,O,O,A,A,F,H0,F,A,A,A,A,A,A,A,O,O,A],[A,F,F,O,O,O,F,F,F,A,O,A,A,A,A,O,O,O,A,A,F,H0,F,A,A,A,A,A,A,A,A,O,A],[O,F,F,O,O,O,F,F,F,O,O,O,O,O,A,O,O,O,A,A,F,H0,F,A,A,A,A,A,A,A,A,O,A],[A,F,F,O,O,A,F,F,F,A,A,A,A,A,A,A,A,A,A,A,F,H0,F,A,A,A,A,A,A,A,A,O,A]],vY=C9.default.toByteArray("AAgOAAAAAAAQ4QAAAQ0P8vDtnQuMXUUZx+eyu7d7797d9m5bHoWltKVUlsjLWE0VJNigQoMVqkStEoNQQUl5GIo1KKmogEgqkKbBRki72lYabZMGKoGAjQRtJJDaCCIRiiigREBQS3z+xzOTnZ3O+3HOhd5NfpkzZx7fN9988zivu2M9hGwB28F94DnwEngd/Asc1EtIs9c/bIPDwCxwLDgezHcodyo4w5C+CCwBS8FnwSXgCnA1uFbI93XwbXAbWAfWgx+CzWAb+An4KfgFeAzsYWWfYuFz4CXwGvgb+Dfo6yNkEEwGh4CZYB44FpwI3g1OY+kfBItZOo2fB84Hy8DF4HJwNbiWpV8PVoO1LH4n2NRXyN+KcAd4kNVP9XsY4aPgcfAbsBfs6SniL4K/sPjfEf6HlanXCRkCw2BGvUh/keWfXS/CY+pFXs7x9XHmM94LTmWIeU2cgbxnS/k/B3kf86jDhU8L9V2E40vAFWAlWFUfb++NOL4F3C7JX4/4GiE+hvgWsF0oS7mXldspnN+F493gyXrh9xTav0cg3EvzgVfBG6wsmVSEkxBOBgdPGpd7JI6PnqRvJ68/xlbHof53gPeA94OzwLngk+ACsAwsByvASrAK3MB0Ws3CtQjvBJvAVrADPMDSHkb4CNijaccTwvnf4fiPEs8Lxy+D18A/QU8/xjgYBjPAbDAKTgYLwOngTHAO+EQ/8wuEF4EvsPiVCFf2+9tsFStzA8LVHuXXBsi6QyqzUYiPMR/7Mc7dAx7oL8bzw/3u/Bw8Bp4Az4AXwCtgHzsmDXP5fiF9iiVvly5d0sHngar16NKlS5cuXbp06fLmYlqHXrcd3ph4P0THUY3iXh49novju4S0tzfs5d+JPKewfAsRntZb3K9ZhOMlrO6lCC8An28U9+OuovcPcPxlVu5rCL/VmHh/iHIrzn3fIPu7SN8Axmg+8AOwEWwCm7tp3bRuWjetm5Y8bSu4B9zbKO6ZVsnORrVU3f4uXTqZ2H3sLoyx3eDXjfDndE9qyj6L838CfwVvgFpzYnof4oNgOhgBc8Fos9DrZIQLmtXPP1MmF6wGj4H+KXoWguvADkXaPil+YpuQy8Am8Ey7ODdtmJDF4HowBp4De6HDTNjhfHAHeBr0DBBy0kDxfPbcgSIusgrcWhtnJ8vL+TPix7UIOQtcBq4C28Cr4KRBnANbwSuDE+s50JgyNNFuXbp06XIgsXjIvPafjvXozKY+fVFz/z0LT1uCtKVSWbrOLWPnztG8e0Xfy7ol8XtZJi7WtG+5od2UFXQ/A12vUeS7jp27yVKHjdsU9lXB869TyNvAzt0lpP2oWbwLdjiO78bx/Sz+EMJHwK9Y/LcIfw+eZ3F67/Hl5vh9xX80J+rwX8SvRDhpgL17iPAQMHNArfPrqHPewLheI+AERV6efwV418B4nOZ/H+IfYHV8GOF5LJ3eAz0fx8sM9S0fUNud39O9CulfGZhY5huI3wzWgNvBelbHZoTbNPVpfYjKQpkHwUNgl0LWblbnk0LbbDxr0OMFpL3iqWdu9nWYPlVAWkXY39LnGdCkDbeqv1YNbfcMQ3t9oe8lzm6NH9N1ZB6Ln4BwfkJZJk7RyFnYKt6b/JDQXx9p5X+eFdqOjzM9P9MB/lUlFzr20aXIdzlY4dmn9F3YqtvoO76/2hp/D/xA5Zue88nNyL8GbFbs075X0tyUig3Qd2MCnf//HjnzpbsR3g9+1kHzzVjdnE71/qVBX9rGPUh/ysNWe1neFzvIDi5zAufV1sT0N0poR22wkFUfTOPfA4N2mbZ5fSrqOHSw+IbkSBbOGSzSRgf91/GTUWYBOB2cIZQ/G8cfBZ8CFwrnL8XxF8FKcA24jqXdiPA7Qr61OF7H4mMItwzuv2/YLth1ISt3Hzu3k4W7EH5JqPdRHD/O4k+z8A8IX5Lq3y7Z4nXE9xn6kX6vQ4bKfy+ok+hH+xf3hq9dnTTHhjKd2GmDuWA242iHMq4cC7A8kJ7i8o1+skSa7Jieo38HCWnoNjKFhdSFBxzpZ7QE6lI8N4S14aASZcryaV/WWHw66f6NHuCoxuQxmvM56GX9QMd8Q4D65ywGP+ZzRJuM+zQvx/MOS2VFeqQ4IXnH26zM9Xe6/E6D+4foAzzuajPZp8Qyw5ayZVDWuH0z0BtYRkeIDqH9KO9VbH1btd/lhNqCzvl8zeLnG0S/hnU6baHfpiuO6yy0rd+DHURo/zYF5H26j03rQsip2ndzz82u1z9N4VjWKWeb68Tedpt95HRVXp7H1R6p+/Wt4FPy/PpWwscOLRJ+PVWF/+W0iVyGzs18TIvXkOJ1Wxm66vSXz+vylenrZcj1ub439W+K8RNCGTJi2p/TJ1K23VaXr35tRpnzmjxequgfcfyk6B/TGBVlyedsNgpdd/h+W1U3P99QyFPNo1X3TwpM/WLTIWYfoBqXrv6iskHZ/RFr79R6hIyHBrH3f1nrUVnjP8SnZZ+rYtzr9Exld5MNbPNErusAPg+77u/eDOPftU9yj39TH7rezxd1LvsZQJlzkWlOirG/79zjMj/mtHUKu7vKy+3/LnXr9okyKedjX5/0He9iP/j63LwOQdarEVlfy8OO/Lqw023j6xcqmwxLiOd6heM2i9cV9LJy8jMJ23yQ+rpbfu7EQ/pXE8KYvUSqvVnb4XzZa6LrHMXHR+zcLvqWbm/Bn0/HzIs6fWPHoat8XfnDKmZGxRxeMbn2UqZ5Q94nmcZRbqqUXbZ8+lcjE+cPX11t814orvvAXNcG8vqj2vvk1MGn3anlj0bIT72v47bvE+Lc98T9b6r7AKn6j+8Duf7D0nnZx/j7Zjn0j9nbpSTndaLr9WNLivP+iN23xF7L+fqv6ZouFyb78jxVXvv5jJ9YUs9/sddO8h7KNg5jrhfaJGztT6G7KF+1d6yCmD5Kdb2fan60rSc552fZr3zeQ9DpnPp+Si5cx5Ktv2QfSzF/mMbWdOm46rFI4XstnU9xeqX4NKb7TKEdcr6pZOK3ID1k/LvFHkVczEuZLEDr499YqvqBym1aEHWgcvoYOtv0M91qQl5TfpO/in6rWx8OVpT1Wedkv3f5xom3T/xeR/6Gx6V86PWAOB4bBpqWdN+yTcVxjIyGRz/FrDGu6w/3d7kPm8StX8RyPu+uuvpNju/vTLJV37GpvoM0oZPnW87VLnL/5pDno1NoW1R6yedU6TyUv3u19a3KFnIbTLYz+ZCLP4T0tU1uivFgso0pnsJ/UtXvarNY28Xq5cvkBDrQP/E5ZaiuQwwfmTlsOiQRU1fMuqrDd/3ISSuwjOwXOfTyGUMpZIXq4GpLn3pUcdfzch2x7XO1u2uZHOPb1G6b3Xg9PH1IIWeEpJlPQtqos2EKW8b0u8rnuP1UeVLoXJb9be0uG9nnbchjU+XTszT5VeNBThPHnc5OKj1U9aj0GTHIVaGy1YhEWT4ixns00DT+XEzWn/7VAsIc63Cov3OdyhwjrnaqQqZvWKXdypRdlq+k8msZ031U+Rm4fA+3TtyeR9hwfW9G9yxDN0fZMN33F+9TE6md4hwoxumfaUzI9fN3PFT3xVV2msrQ3UsnChm6Nulk8TndpS28D3zX9tTIPsF/z7Am5OkTjm1tI1JZW74+4VgsZ0N3L1yXV3WeP5uR7TGHHdvC3JQlxybfpd22tDlk/2eofRK8TzrN/qnar/K/OUTth6I/+jAnEptNbPvFHP2gs40N3+dfMWtwqvVct7/wfd8gtQ7imifial9ZJ9/3IHLYU6eDj3+4PhsNhX+vwvcWLnu6kGfEMe8DuciPfUfGZB8X/7HJy/Gefe5n+VRGFd/wyP2ta7/LO4yh/sbLV/k9lev6kfO9Dt/5U67b1/6u/epqB1U9Me23jfHY9sscAg4tkbLl+e4/U36rJ9ddxfd6sg5vq5ice42Wpk/pb9FOJ36/W9tpv4kbC79nUbZceX8Zu6/qJ+P3WvhvA8v3reh7Jbn2d6rrNC7XNZTLma4Ba0JI9efX2uLzF5scG/w9UNU1ZxW+ymUfzELeTllXlQ1rUuhzjS5fp9c964iFBOqeSz63bU065nZKdU+mDEz3qHIjjifquw0pnb/raRtvrnsYcb46ihT3taoYz6brdNW9l6rWRnE/navdPn1XlR1km7hcz1WlH/elKuSOSvLLuE8U6m8uzwRdfcGl73VyTHuyMvzJ1Sa2cWDTP/Z63Kc94n2B1PYr24dz1JlyHLlcP+S4B6vD1c9EW4q2LWstCvUjeVy63k/LMYdUNd5D1xQfvVTzX1VjkMsUv88N8VH5fReVn/Fjn++/h6X6Q8a6b1/q3g/i/ewi0/Scs8zxXeV6mWIOUPlPzBgdFerW+bZrm2P18dnjuK6HunEp+rHvPMXbr+sHVb/lnL+pTP57jPw9Cvk3PW178JD9qChfzuvTf7Htl38L1QUf/VKu9SFjwWbTWPvFEvu7Uq76y7+31g6QlYPc669pbsm9Xur2LWI9Pu8ypfDXqm3A2z8s1FWGn4ntL9NfQu2oSlftX9uetvTtv7J8Ql4zxfXGZ3zk8PeQ9w59x2uMfqI8/q5eKh/l9cb2rwsu9rSNl06ZP2Pmxtz+rNMx93yno0n2/82rVH7rQ+y9P15H6FyRun9ViH81ATmffI7nJ5r8uXXW6enbP6b/B8/l5OifVHYLnb9S39s2zcc+Ph+rh8+eQgVPS72elzGWY/tUtbbabBpDiI7yN1q6/4th2y+ErAc5+9BVvu/7KamJbWNZeuqI/R4tRf+YyD1HmOZM1bMV3/14Sn10c0Xu+Sj1nOXb5jL73ncdy02uvlXZNde65dOHYl7Vs4KYuS6FzWLn2zJlpZqPXPVPOa5yzKOyn1VhT9lmMfdbfH7D11Wf2PXN5h9y+dD287+qxgSnaYmnIrRtIb8pJe6/Uv9OVer6Whn0zfGO/BEloZI9ojmfAlUflClDd178bTmVHVTpZXOkAlk/lb42UujmI89HH5V+cl7XtowY6vTxLVWok6UrGzoGTHN+bB+6ri05687VNpvfuvRfaP2uMlNQth1D5JjGelm/8yn+9p3p/7qk9gnfeddXZmq/Sm333PJT659Kv1zjNbZ9uv2Oi//67CV8/N1nj1DmviyXDNVeJkaeaX8UsyesYg8cu2+NvdaPfb+lLDu5tvt/"),yY=new T9.default(vY),D9=function(J){switch(J){case DY:return E9;case TY:case CY:case PY:return E9;case IY:return LY;default:return J}},I9=function(J){switch(J){case M6:case P9:return J5;case E8:return RY;default:return J}};class K5{constructor(J,K=!1){this.position=J,this.required=K}}class v9{nextCodePoint(){let J=this.string.charCodeAt(this.pos++),K=this.string.charCodeAt(this.pos);if(55296<=J&&J<=56319&&56320<=K&&K<=57343)return this.pos++,(J-55296)*1024+(K-56320)+65536;return J}nextCharClass(){return D9(yY.get(this.nextCodePoint()))}getSimpleBreak(){switch(this.nextClass){case E8:return!1;case J5:case M6:case P9:return this.curClass=J5,!1;case G6:return this.curClass=G6,!1}return null}getPairTableBreak(J){let K=!1;switch(SY[this.curClass][this.nextClass]){case A:K=!0;break;case O:K=J===E8;break;case H0:if(K=J===E8,!K)return K=!1,K;break;case S9:if(J!==E8)return K;break;case F:break}if(this.LB8a)K=!1;if(this.LB21a&&(this.curClass===EY||this.curClass===_Y))K=!1,this.LB21a=!1;else this.LB21a=this.curClass===FY;if(this.curClass===_9){if(this.LB30a++,this.LB30a==2&&this.nextClass===_9)K=!0,this.LB30a=0}else this.LB30a=0;return this.curClass=this.nextClass,K}nextBreak(){if(this.curClass==null){let J=this.nextCharClass();this.curClass=I9(J),this.nextClass=J,this.LB8a=J===R9,this.LB30a=0}while(this.pos<this.string.length){this.lastPos=this.pos;let J=this.nextClass;if(this.nextClass=this.nextCharClass(),this.curClass===J5||this.curClass===G6&&this.nextClass!==M6)return this.curClass=I9(D9(this.nextClass)),new K5(this.lastPos,!0);let K=this.getSimpleBreak();if(K===null)K=this.getPairTableBreak(J);if(this.LB8a=this.nextClass===R9,K)return new K5(this.lastPos)}if(this.lastPos<this.string.length)return this.lastPos=this.string.length,new K5(this.string.length);return null}constructor(J){this.string=J,this.pos=0,this.lastPos=0,this.curClass=null,this.nextClass=null,this.LB8a=!1,this.LB21a=!1,this.LB30a=0}}q6=v9;var B1=H1(W5(),1),PK=H1(U7(),1),SK=H1(V7(),1);var O7=H1(A7(),1),N7=H1(M7(),1),gZ=/^#([a-f0-9]{3,4}|[a-f0-9]{4}(?:[a-f0-9]{2}){1,2})\b$/,xZ=new RegExp(gZ,"i"),h6="-?\\d*(?:\\.\\d+)",B8=`(${h6}?)`,N1=`(${h6}?%)`,A8=`(${h6}?%?)`,bZ=`^
14
- hsla?\\(
15
- \\s*(-?\\d*(?:\\.\\d+)?(?:deg|rad|turn)?)\\s*,
16
- \\s*${N1}\\s*,
17
- \\s*${N1}\\s*
18
- (?:,\\s*${A8}\\s*)?
19
- \\)
20
- $
21
- `.replace(/\n|\s/g,""),hZ=new RegExp(bZ),mZ=`^
22
- hsla?\\(
23
- \\s*(-?\\d*(?:\\.\\d+)?(?:deg|rad|turn)?)\\s*
24
- \\s+${N1}
25
- \\s+${N1}
26
- \\s*(?:\\s*\\/\\s*${A8}\\s*)?
27
- \\)
28
- $
29
- `.replace(/\n|\s/g,""),fZ=new RegExp(mZ),dZ=`^
30
- rgba?\\(
31
- \\s*${B8}\\s*,
32
- \\s*${B8}\\s*,
33
- \\s*${B8}\\s*
34
- (?:,\\s*${A8}\\s*)?
35
- \\)
36
- $
37
- `.replace(/\n|\s/g,""),lZ=new RegExp(dZ),cZ=`^
38
- rgba?\\(
39
- \\s*${N1}\\s*,
40
- \\s*${N1}\\s*,
41
- \\s*${N1}\\s*
42
- (?:,\\s*${A8}\\s*)?
43
- \\)
44
- $
45
- `.replace(/\n|\s/g,""),uZ=new RegExp(cZ),pZ=`^
46
- rgba?\\(
47
- \\s*${B8}
48
- \\s+${B8}
49
- \\s+${B8}
50
- \\s*(?:\\s*\\/\\s*${A8}\\s*)?
51
- \\)
52
- $
53
- `.replace(/\n|\s/g,""),iZ=new RegExp(pZ),oZ=`^
54
- rgba?\\(
55
- \\s*${N1}
56
- \\s+${N1}
57
- \\s+${N1}
58
- \\s*(?:\\s*\\/\\s*${A8}\\s*)?
59
- \\)
60
- $
61
- `.replace(/\n|\s/g,""),rZ=new RegExp(oZ),nZ=/^transparent$/,sZ=new RegExp(nZ,"i"),m6=(J,K,Y)=>Math.min(Math.max(K,J),Y),aZ=(J)=>{let K=J;if(typeof K!=="number")K=K.endsWith("%")?parseFloat(K)*255/100:parseFloat(K);return m6(Math.round(K),0,255)},q7=(J)=>m6(parseFloat(J),0,100);function j7(J){let K=J;if(typeof K!=="number")K=K.endsWith("%")?parseFloat(K)/100:parseFloat(K);return m6(K,0,1)}function tZ(J){let[K,Y,X,Z]=N7.default(J,{format:"array"});return z5([null,K,Y,X,Z])}function eZ([,J,K,Y,X=1]){let Z=J;if(Z.endsWith("turn"))Z=parseFloat(Z)*360/1;else if(Z.endsWith("rad"))Z=Math.round(parseFloat(Z)*180/Math.PI);else Z=parseFloat(Z);return{type:"hsl",values:[Z,q7(K),q7(Y)],alpha:j7(X===null?1:X)}}function z5([,J,K,Y,X=1]){return{type:"rgb",values:[J,K,Y].map(aZ),alpha:j7(X===null?1:X)}}var JQ=(J)=>{if(typeof J!=="string")return null;let K=xZ.exec(J);if(K)return tZ(K[0]);let Y=fZ.exec(J)||hZ.exec(J);if(Y)return eZ(Y);let X=iZ.exec(J)||rZ.exec(J)||lZ.exec(J)||uZ.exec(J);if(X)return z5(X);if(sZ.exec(J))return z5([null,0,0,0,0]);let Z=O7.default[J.toLowerCase()];if(Z)return z5([null,Z[0],Z[1],Z[2],1]);return null},U5=JQ;var vK=H1(R6(),1),yK=H1(W5(),1),N4=H1(F7(),1);function d6(J,K=","){let Y=[],X=0,Z=0;K=new RegExp(K);for(let Q=0;Q<J.length;Q++)J[Q]==="("?Z++:J[Q]===")"&&Z--,Z===0&&K.test(J[Q])&&(Y.push(J.slice(X,Q).trim()),X=Q+1);return Y.push(J.slice(X).trim()),Y}function f6(J){let K=[];for(let Y=0,X=J.length;Y<X;){let[Z,Q]=d6(J[Y],/\s+/);XQ(J[Y+1])?(K.push({color:Z,offset:a1(Q),hint:a1(J[Y+1])}),Y+=2):(K.push({color:Z,offset:a1(Q)}),Y++)}return K}var R7=/^(-?\d+\.?\d*)(%|vw|vh|px|em|rem|deg|rad|grad|turn)$/;function XQ(J){return R7.test(J)}function a1(J){if(!J)return;let[,K,Y]=J.trim().match(R7)||[];return{value:K,unit:Y}}function D7(J){if(!/^(repeating-)?linear-gradient/.test(J))throw SyntaxError(`could not find syntax for this item: ${J}`);let[,K,Y]=J.match(/(repeating-)?linear-gradient\((.+)\)/),X={orientation:{type:"directional",value:"bottom"},repeating:!!K,stops:[]},Z=d6(Y),Q=ZQ(Z[0]);return Q&&(X.orientation=Q,Z.shift()),{...X,stops:f6(Z)}}function ZQ(J){return J.startsWith("to ")?{type:"directional",value:J.replace("to ","")}:["turn","deg","grad","rad"].some((K)=>J.endsWith(K))?{type:"angular",value:a1(J)}:null}var QQ=new Set(["closest-corner","closest-side","farthest-corner","farthest-side"]),HQ=new Set(["center","left","top","right","bottom"]);function E7(J){return QQ.has(J)}function _7(J){return HQ.has(J)}function WQ(J){let K=Array(2).fill("");for(let Y=0;Y<2;Y++)J[Y]?K[Y]=J[Y]:K[Y]="center";return K}function I7(J){if(!/(repeating-)?radial-gradient/.test(J))throw SyntaxError(`could not find syntax for this item: ${J}`);let[,K,Y]=J.match(/(repeating-)?radial-gradient\((.+)\)/),X={shape:"ellipse",repeating:!!K,size:[{type:"keyword",value:"farthest-corner"}],position:{x:{type:"keyword",value:"center"},y:{type:"keyword",value:"center"}},stops:[]},Z=d6(Y);if(wQ(Z[0]))return{...X,stops:f6(Z)};let Q=Z[0].split("at").map((z)=>z.trim()),H=((Q[0]||"").match(/(circle|ellipse)/)||[])[1],w=(Q[0]||"").match(/(-?\d+\.?\d*(vw|vh|px|em|rem|%|rad|grad|turn|deg)?|closest-corner|closest-side|farthest-corner|farthest-side)/g)||[],W=WQ((Q[1]||"").split(" "));return H?X.shape=H:w.length===1&&!E7(w[0])?X.shape="circle":X.shape="ellipse",w.length===0&&w.push("farthest-corner"),X.size=w.map((z)=>E7(z)?{type:"keyword",value:z}:{type:"length",value:a1(z)}),X.position.x=_7(W[0])?{type:"keyword",value:W[0]}:{type:"length",value:a1(W[0])},X.position.y=_7(W[1])?{type:"keyword",value:W[1]}:{type:"length",value:a1(W[1])},(H||w.length>0||Q[1])&&Z.shift(),{...X,stops:f6(Z)}}function wQ(J){return/(circle|ellipse|at)/.test(J)?!1:/^(rgba?|hwb|hsl|lab|lch|oklab|color|#|[a-zA-Z]+)/.test(J)}var j4=H1(W5(),1);var e0=Uint8Array,e1=Uint16Array,KJ=Uint32Array,YJ=new e0([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),XJ=new e0([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),zQ=new e0([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),ZJ=function(J,K){var Y=new e1(31);for(var X=0;X<31;++X)Y[X]=K+=1<<J[X-1];var Z=new KJ(Y[30]);for(var X=1;X<30;++X)for(var Q=Y[X];Q<Y[X+1];++Q)Z[Q]=Q-Y[X]<<5|X;return[Y,Z]},QJ=ZJ(YJ,2),HJ=QJ[0],UQ=QJ[1];HJ[28]=258,UQ[258]=28;var $Q=ZJ(XJ,0),VQ=$Q[0],a6=new e1(32768);for(Z0=0;Z0<32768;++Z0)j1=(Z0&43690)>>>1|(Z0&21845)<<1,j1=(j1&52428)>>>2|(j1&13107)<<2,j1=(j1&61680)>>>4|(j1&3855)<<4,a6[Z0]=((j1&65280)>>>8|(j1&255)<<8)>>>1;var j1,Z0,I8=function(J,K,Y){var X=J.length,Z=0,Q=new e1(K);for(;Z<X;++Z)if(J[Z])++Q[J[Z]-1];var H=new e1(K);for(Z=0;Z<K;++Z)H[Z]=H[Z-1]+Q[Z-1]<<1;var w;if(Y){w=new e1(1<<K);var W=15-K;for(Z=0;Z<X;++Z)if(J[Z]){var z=Z<<4|J[Z],U=K-J[Z],$=H[J[Z]-1]++<<U;for(var V=$|(1<<U)-1;$<=V;++$)w[a6[$]>>>W]=z}}else{w=new e1(X);for(Z=0;Z<X;++Z)if(J[Z])w[Z]=a6[H[J[Z]-1]++]>>>15-J[Z]}return w},P8=new e0(288);for(Z0=0;Z0<144;++Z0)P8[Z0]=8;var Z0;for(Z0=144;Z0<256;++Z0)P8[Z0]=9;var Z0;for(Z0=256;Z0<280;++Z0)P8[Z0]=7;var Z0;for(Z0=280;Z0<288;++Z0)P8[Z0]=8;var Z0,WJ=new e0(32);for(Z0=0;Z0<32;++Z0)WJ[Z0]=5;var Z0,BQ=I8(P8,9,1),AQ=I8(WJ,5,1),l6=function(J){var K=J[0];for(var Y=1;Y<J.length;++Y)if(J[Y]>K)K=J[Y];return K},W1=function(J,K,Y){var X=K/8|0;return(J[X]|J[X+1]<<8)>>(K&7)&Y},c6=function(J,K){var Y=K/8|0;return(J[Y]|J[Y+1]<<8|J[Y+2]<<16)>>(K&7)},GQ=function(J){return(J+7)/8|0},MQ=function(J,K,Y){if(K==null||K<0)K=0;if(Y==null||Y>J.length)Y=J.length;var X=new(J.BYTES_PER_ELEMENT==2?e1:J.BYTES_PER_ELEMENT==4?KJ:e0)(Y-K);return X.set(J.subarray(K,Y)),X},qQ=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],m1=function(J,K,Y){var X=Error(K||qQ[J]);if(X.code=J,Error.captureStackTrace)Error.captureStackTrace(X,m1);if(!Y)throw X;return X},OQ=function(J,K,Y){var X=J.length;if(!X||Y&&Y.f&&!Y.l)return K||new e0(0);var Z=!K||Y,Q=!Y||Y.i;if(!Y)Y={};if(!K)K=new e0(X*3);var H=function(g){var e=K.length;if(g>e){var Y0=new e0(Math.max(e*2,g));Y0.set(K),K=Y0}},w=Y.f||0,W=Y.p||0,z=Y.b||0,U=Y.l,$=Y.d,V=Y.m,B=Y.n,q=X*8;do{if(!U){w=W1(J,W,1);var G=W1(J,W+1,3);if(W+=3,!G){var M=GQ(W)+4,N=J[M-4]|J[M-3]<<8,j=M+N;if(j>X){if(Q)m1(0);break}if(Z)H(z+N);K.set(J.subarray(M,j),z),Y.b=z+=N,Y.p=W=j*8,Y.f=w;continue}else if(G==1)U=BQ,$=AQ,V=9,B=5;else if(G==2){var _=W1(J,W,31)+257,R=W1(J,W+10,15)+4,E=_+W1(J,W+5,31)+1;W+=14;var L=new e0(E),T=new e0(19);for(var D=0;D<R;++D)T[zQ[D]]=W1(J,W+D*3,7);W+=R*3;var P=l6(T),x=(1<<P)-1,u=I8(T,P,1);for(var D=0;D<E;){var p=u[W1(J,W,x)];W+=p&15;var M=p>>>4;if(M<16)L[D++]=M;else{var i=0,C=0;if(M==16)C=3+W1(J,W,3),W+=2,i=L[D-1];else if(M==17)C=3+W1(J,W,7),W+=3;else if(M==18)C=11+W1(J,W,127),W+=7;while(C--)L[D++]=i}}var S=L.subarray(0,_),I=L.subarray(_);V=l6(S),B=l6(I),U=I8(S,V,1),$=I8(I,B,1)}else m1(1);if(W>q){if(Q)m1(0);break}}if(Z)H(z+131072);var d=(1<<V)-1,l=(1<<B)-1,c=W;for(;;c=W){var i=U[c6(J,W)&d],o=i>>>4;if(W+=i&15,W>q){if(Q)m1(0);break}if(!i)m1(2);if(o<256)K[z++]=o;else if(o==256){c=W,U=null;break}else{var m=o-254;if(o>264){var D=o-257,f=YJ[D];m=W1(J,W,(1<<f)-1)+HJ[D],W+=f}var y=$[c6(J,W)&l],k=y>>>4;if(!y)m1(3);W+=y&15;var I=VQ[k];if(k>3){var f=XJ[k];I+=c6(J,W)&(1<<f)-1,W+=f}if(W>q){if(Q)m1(0);break}if(Z)H(z+131072);var s=z+m;for(;z<s;z+=4)K[z]=K[z-I],K[z+1]=K[z+1-I],K[z+2]=K[z+2-I],K[z+3]=K[z+3-I];z=s}}if(Y.l=U,Y.p=c,Y.b=z,Y.f=w,U)w=1,Y.m=V,Y.d=$,Y.n=B}while(!w);return z==K.length?K:MQ(K,0,z)},NQ=new e0(0);function jQ(J,K){return OQ(J,K)}var LQ=typeof TextDecoder<"u"&&new TextDecoder,FQ=0;try{LQ.decode(NQ,{stream:!0}),FQ=1}catch(J){}function h0(){this.commands=[],this.fill="black",this.stroke=null,this.strokeWidth=1}h0.prototype.moveTo=function(J,K){this.commands.push({type:"M",x:J,y:K})};h0.prototype.lineTo=function(J,K){this.commands.push({type:"L",x:J,y:K})};h0.prototype.curveTo=h0.prototype.bezierCurveTo=function(J,K,Y,X,Z,Q){this.commands.push({type:"C",x1:J,y1:K,x2:Y,y2:X,x:Z,y:Q})};h0.prototype.quadTo=h0.prototype.quadraticCurveTo=function(J,K,Y,X){this.commands.push({type:"Q",x1:J,y1:K,x:Y,y:X})};h0.prototype.close=h0.prototype.closePath=function(){this.commands.push({type:"Z"})};h0.prototype.extend=function(J){if(J.commands)J=J.commands;Array.prototype.push.apply(this.commands,J)};h0.prototype.toPathData=function(J){J=J!==void 0?J:2;function K(H){if(Math.round(H)===H)return""+Math.round(H);else return H.toFixed(J)}function Y(){var H=arguments,w="";for(var W=0;W<arguments.length;W+=1){var z=H[W];if(z>=0&&W>0)w+=" ";w+=K(z)}return w}var X="";for(var Z=0;Z<this.commands.length;Z+=1){var Q=this.commands[Z];if(Q.type==="M")X+="M"+Y(Q.x,Q.y);else if(Q.type==="L")X+="L"+Y(Q.x,Q.y);else if(Q.type==="C")X+="C"+Y(Q.x1,Q.y1,Q.x2,Q.y2,Q.x,Q.y);else if(Q.type==="Q")X+="Q"+Y(Q.x1,Q.y1,Q.x,Q.y);else if(Q.type==="Z")X+="Z"}return X};var EQ=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","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","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","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","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","266 ff","onedotenleader","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall","001.000","001.001","001.002","001.003","Black","Bold","Book","Light","Medium","Regular","Roman","Semibold"],_Q=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","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","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","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","braceleft","bar","braceright","asciitilde","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","","endash","dagger","daggerdbl","periodcentered","","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","","questiondown","","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","","ring","cedilla","","hungarumlaut","ogonek","caron","emdash","","","","","","","","","","","","","","","","","AE","","ordfeminine","","","","","Lslash","Oslash","OE","ordmasculine","","","","","","ae","","","","dotlessi","","","lslash","oslash","oe","germandbls"],RQ=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","","asuperior","bsuperior","centsuperior","dsuperior","esuperior","","","isuperior","","","lsuperior","msuperior","nsuperior","osuperior","","","rsuperior","ssuperior","tsuperior","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdownsmall","centoldstyle","Lslashsmall","","","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","","Dotaccentsmall","","","Macronsmall","","","figuredash","hypheninferior","","","Ogoneksmall","Ringsmall","Cedillasmall","","","","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"];function wJ(J){this.font=J}wJ.prototype.charToGlyphIndex=function(J){var K=J.codePointAt(0),Y=this.font.glyphs;if(Y)for(var X=0;X<Y.length;X+=1){var Z=Y.get(X);for(var Q=0;Q<Z.unicodes.length;Q+=1)if(Z.unicodes[Q]===K)return X}return null};function zJ(J){this.cmap=J}zJ.prototype.charToGlyphIndex=function(J){return this.cmap.glyphIndexMap[J.codePointAt(0)]||0};function A5(J,K){this.encoding=J,this.charset=K}A5.prototype.charToGlyphIndex=function(J){var K=J.codePointAt(0),Y=this.encoding[K];return this.charset.indexOf(Y)};function DQ(J){var K,Y=J.tables.cmap.glyphIndexMap,X=Object.keys(Y);for(var Z=0;Z<X.length;Z+=1){var Q=X[Z],H=Y[Q];K=J.glyphs.get(H),K.addUnicode(parseInt(Q))}}function IQ(J){J._IndexToUnicodeMap={};var K=J.tables.cmap.glyphIndexMap,Y=Object.keys(K);for(var X=0;X<Y.length;X+=1){var Z=Y[X],Q=K[Z];if(J._IndexToUnicodeMap[Q]===void 0)J._IndexToUnicodeMap[Q]={unicodes:[parseInt(Z)]};else J._IndexToUnicodeMap[Q].unicodes.push(parseInt(Z))}}function TQ(J,K){if(K.lowMemory)IQ(J);else DQ(J)}function UJ(J){throw Error(J)}function T7(J,K){if(!J)UJ(K)}var z0={fail:UJ,argument:T7,assert:T7};function CQ(J,K){var Y=K||new h0;return{configurable:!0,get:function(){if(typeof Y==="function")Y=Y();return Y},set:function(X){Y=X}}}function T1(J){this.bindConstructorValues(J)}T1.prototype.bindConstructorValues=function(J){if(this.index=J.index||0,this.name=J.name||null,this.unicode=J.unicode||void 0,this.unicodes=J.unicodes||J.unicode!==void 0?[J.unicode]:[],"xMin"in J)this.xMin=J.xMin;if("yMin"in J)this.yMin=J.yMin;if("xMax"in J)this.xMax=J.xMax;if("yMax"in J)this.yMax=J.yMax;if("advanceWidth"in J)this.advanceWidth=J.advanceWidth;Object.defineProperty(this,"path",CQ(this,J.path))};T1.prototype.addUnicode=function(J){if(this.unicodes.length===0)this.unicode=J;this.unicodes.push(J)};T1.prototype.getPath=function(J,K,Y,X,Z){J=J!==void 0?J:0,K=K!==void 0?K:0,Y=Y!==void 0?Y:72;var Q,H;if(!X)X={};var{xScale:w,yScale:W}=X;if(X.hinting&&Z&&Z.hinting)H=this.path&&Z.hinting.exec(this,Y);if(H)Q=Z.hinting.getCommands(H),J=Math.round(J),K=Math.round(K),w=W=1;else{Q=this.path.commands;var z=1/(this.path.unitsPerEm||1000)*Y;if(w===void 0)w=z;if(W===void 0)W=z}var U=new h0;for(var $=0;$<Q.length;$+=1){var V=Q[$];if(V.type==="M")U.moveTo(J+V.x*w,K+-V.y*W);else if(V.type==="L")U.lineTo(J+V.x*w,K+-V.y*W);else if(V.type==="Q")U.quadraticCurveTo(J+V.x1*w,K+-V.y1*W,J+V.x*w,K+-V.y*W);else if(V.type==="C")U.curveTo(J+V.x1*w,K+-V.y1*W,J+V.x2*w,K+-V.y2*W,J+V.x*w,K+-V.y*W);else if(V.type==="Z")U.closePath()}return U};T1.prototype.getContours=function(){if(this.points===void 0)return[];var J=[],K=[];for(var Y=0;Y<this.points.length;Y+=1){var X=this.points[Y];if(K.push(X),X.lastPointOfContour)J.push(K),K=[]}return z0.argument(K.length===0,"There are still points left in the current contour."),J};T1.prototype.getMetrics=function(){var J=this.path.commands,K=[],Y=[];for(var X=0;X<J.length;X+=1){var Z=J[X];if(Z.type!=="Z")K.push(Z.x),Y.push(Z.y);if(Z.type==="Q"||Z.type==="C")K.push(Z.x1),Y.push(Z.y1);if(Z.type==="C")K.push(Z.x2),Y.push(Z.y2)}var Q={xMin:Math.min.apply(null,K),yMin:Math.min.apply(null,Y),xMax:Math.max.apply(null,K),yMax:Math.max.apply(null,Y),leftSideBearing:this.leftSideBearing};if(!isFinite(Q.xMin))Q.xMin=0;if(!isFinite(Q.xMax))Q.xMax=this.advanceWidth;if(!isFinite(Q.yMin))Q.yMin=0;if(!isFinite(Q.yMax))Q.yMax=0;return Q.rightSideBearing=this.advanceWidth-Q.leftSideBearing-(Q.xMax-Q.xMin),Q};function $5(J,K,Y){Object.defineProperty(J,K,{get:function(){return J.path,J[Y]},set:function(X){J[Y]=X},enumerable:!0,configurable:!0})}function J4(J,K){if(this.font=J,this.glyphs={},Array.isArray(K))for(var Y=0;Y<K.length;Y++){var X=K[Y];X.path.unitsPerEm=J.unitsPerEm,this.glyphs[Y]=X}this.length=K&&K.length||0}J4.prototype.get=function(J){if(this.glyphs[J]===void 0){if(this.font._push(J),typeof this.glyphs[J]==="function")this.glyphs[J]=this.glyphs[J]();var K=this.glyphs[J],Y=this.font._IndexToUnicodeMap[J];if(Y)for(var X=0;X<Y.unicodes.length;X++)K.addUnicode(Y.unicodes[X]);this.glyphs[J].advanceWidth=this.font._hmtxTableData[J].advanceWidth,this.glyphs[J].leftSideBearing=this.font._hmtxTableData[J].leftSideBearing}else if(typeof this.glyphs[J]==="function")this.glyphs[J]=this.glyphs[J]();return this.glyphs[J]};J4.prototype.push=function(J,K){this.glyphs[J]=K,this.length++};function PQ(J,K){return new T1({index:K,font:J})}function SQ(J,K,Y,X,Z,Q){return function(){var H=new T1({index:K,font:J});return H.path=function(){Y(H,X,Z);var w=Q(J.glyphs,H);return w.unitsPerEm=J.unitsPerEm,w},$5(H,"xMin","_xMin"),$5(H,"xMax","_xMax"),$5(H,"yMin","_yMin"),$5(H,"yMax","_yMax"),H}}function vQ(J,K,Y,X){return function(){var Z=new T1({index:K,font:J});return Z.path=function(){var Q=Y(J,Z,X);return Q.unitsPerEm=J.unitsPerEm,Q},Z}}var F1={GlyphSet:J4,glyphLoader:PQ,ttfGlyphLoader:SQ,cffGlyphLoader:vQ};function u6(J,K){var Y=0,X=J.length-1;while(Y<=X){var Z=Y+X>>>1,Q=J[Z].tag;if(Q===K)return Z;else if(Q<K)Y=Z+1;else X=Z-1}return-Y-1}function C7(J,K){var Y=0,X=J.length-1;while(Y<=X){var Z=Y+X>>>1,Q=J[Z];if(Q===K)return Z;else if(Q<K)Y=Z+1;else X=Z-1}return-Y-1}function P7(J,K){var Y,X=0,Z=J.length-1;while(X<=Z){var Q=X+Z>>>1;Y=J[Q];var H=Y.start;if(H===K)return Y;else if(H<K)X=Q+1;else Z=Q-1}if(X>0){if(Y=J[X-1],K>Y.end)return 0;return Y}}function S8(J,K){this.font=J,this.tableName=K}S8.prototype={searchTag:u6,binSearch:C7,getTable:function(J){var K=this.font.tables[this.tableName];if(!K&&J)K=this.font.tables[this.tableName]=this.createDefaultTable();return K},getDefaultScriptName:function(){var J=this.getTable();if(!J)return;var K=!1;for(var Y=0;Y<J.scripts.length;Y++){var X=J.scripts[Y].tag;if(X==="DFLT")return X;if(X==="latn")K=!0}if(K)return"latn"},getScriptTable:function(J,K){var Y=this.getTable(K);if(Y){J=J||"DFLT";var X=Y.scripts,Z=u6(Y.scripts,J);if(Z>=0)return X[Z].script;else if(K){var Q={tag:J,script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}};return X.splice(-1-Z,0,Q),Q.script}}},getLangSysTable:function(J,K,Y){var X=this.getScriptTable(J,Y);if(X){if(!K||K==="dflt"||K==="DFLT")return X.defaultLangSys;var Z=u6(X.langSysRecords,K);if(Z>=0)return X.langSysRecords[Z].langSys;else if(Y){var Q={tag:K,langSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]}};return X.langSysRecords.splice(-1-Z,0,Q),Q.langSys}}},getFeatureTable:function(J,K,Y,X){var Z=this.getLangSysTable(J,K,X);if(Z){var Q,H=Z.featureIndexes,w=this.font.tables[this.tableName].features;for(var W=0;W<H.length;W++)if(Q=w[H[W]],Q.tag===Y)return Q.feature;if(X){var z=w.length;return z0.assert(z===0||Y>=w[z-1].tag,"Features must be added in alphabetical order."),Q={tag:Y,feature:{params:0,lookupListIndexes:[]}},w.push(Q),H.push(z),Q.feature}}},getLookupTables:function(J,K,Y,X,Z){var Q=this.getFeatureTable(J,K,Y,Z),H=[];if(Q){var w,W=Q.lookupListIndexes,z=this.font.tables[this.tableName].lookups;for(var U=0;U<W.length;U++)if(w=z[W[U]],w.lookupType===X)H.push(w);if(H.length===0&&Z){w={lookupType:X,lookupFlag:0,subtables:[],markFilteringSet:void 0};var $=z.length;return z.push(w),W.push($),[w]}}return H},getGlyphClass:function(J,K){switch(J.format){case 1:if(J.startGlyph<=K&&K<J.startGlyph+J.classes.length)return J.classes[K-J.startGlyph];return 0;case 2:var Y=P7(J.ranges,K);return Y?Y.classId:0}},getCoverageIndex:function(J,K){switch(J.format){case 1:var Y=C7(J.glyphs,K);return Y>=0?Y:-1;case 2:var X=P7(J.ranges,K);return X?X.index+K-X.start:-1}},expandCoverage:function(J){if(J.format===1)return J.glyphs;else{var K=[],Y=J.ranges;for(var X=0;X<Y.length;X++){var Z=Y[X],Q=Z.start,H=Z.end;for(var w=Q;w<=H;w++)K.push(w)}return K}}};function v8(J){S8.call(this,J,"gpos")}v8.prototype=S8.prototype;v8.prototype.init=function(){var J=this.getDefaultScriptName();this.defaultKerningTables=this.getKerningTables(J)};v8.prototype.getKerningValue=function(J,K,Y){for(var X=0;X<J.length;X++){var Z=J[X].subtables;for(var Q=0;Q<Z.length;Q++){var H=Z[Q],w=this.getCoverageIndex(H.coverage,K);if(w<0)continue;switch(H.posFormat){case 1:var W=H.pairSets[w];for(var z=0;z<W.length;z++){var U=W[z];if(U.secondGlyph===Y)return U.value1&&U.value1.xAdvance||0}break;case 2:var $=this.getGlyphClass(H.classDef1,K),V=this.getGlyphClass(H.classDef2,Y),B=H.classRecords[$][V];return B.value1&&B.value1.xAdvance||0}}}return 0};v8.prototype.getKerningTables=function(J,K){if(this.font.tables.gpos)return this.getLookupTables(J,K,"kern",2)};function o0(J){S8.call(this,J,"gsub")}function yQ(J,K){var Y=J.length;if(Y!==K.length)return!1;for(var X=0;X<Y;X++)if(J[X]!==K[X])return!1;return!0}function K4(J,K,Y){var X=J.subtables;for(var Z=0;Z<X.length;Z++){var Q=X[Z];if(Q.substFormat===K)return Q}if(Y)return X.push(Y),Y;return}o0.prototype=S8.prototype;o0.prototype.createDefaultTable=function(){return{version:1,scripts:[{tag:"DFLT",script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}}],features:[],lookups:[]}};o0.prototype.getSingle=function(J,K,Y){var X=[],Z=this.getLookupTables(K,Y,J,1);for(var Q=0;Q<Z.length;Q++){var H=Z[Q].subtables;for(var w=0;w<H.length;w++){var W=H[w],z=this.expandCoverage(W.coverage),U=void 0;if(W.substFormat===1){var $=W.deltaGlyphId;for(U=0;U<z.length;U++){var V=z[U];X.push({sub:V,by:V+$})}}else{var B=W.substitute;for(U=0;U<z.length;U++)X.push({sub:z[U],by:B[U]})}}}return X};o0.prototype.getMultiple=function(J,K,Y){var X=[],Z=this.getLookupTables(K,Y,J,2);for(var Q=0;Q<Z.length;Q++){var H=Z[Q].subtables;for(var w=0;w<H.length;w++){var W=H[w],z=this.expandCoverage(W.coverage),U=void 0;for(U=0;U<z.length;U++){var $=z[U],V=W.sequences[U];X.push({sub:$,by:V})}}}return X};o0.prototype.getAlternates=function(J,K,Y){var X=[],Z=this.getLookupTables(K,Y,J,3);for(var Q=0;Q<Z.length;Q++){var H=Z[Q].subtables;for(var w=0;w<H.length;w++){var W=H[w],z=this.expandCoverage(W.coverage),U=W.alternateSets;for(var $=0;$<z.length;$++)X.push({sub:z[$],by:U[$]})}}return X};o0.prototype.getLigatures=function(J,K,Y){var X=[],Z=this.getLookupTables(K,Y,J,4);for(var Q=0;Q<Z.length;Q++){var H=Z[Q].subtables;for(var w=0;w<H.length;w++){var W=H[w],z=this.expandCoverage(W.coverage),U=W.ligatureSets;for(var $=0;$<z.length;$++){var V=z[$],B=U[$];for(var q=0;q<B.length;q++){var G=B[q];X.push({sub:[V].concat(G.components),by:G.ligGlyph})}}}}return X};o0.prototype.addSingle=function(J,K,Y,X){var Z=this.getLookupTables(Y,X,J,1,!0)[0],Q=K4(Z,2,{substFormat:2,coverage:{format:1,glyphs:[]},substitute:[]});z0.assert(Q.coverage.format===1,"Single: unable to modify coverage table format "+Q.coverage.format);var H=K.sub,w=this.binSearch(Q.coverage.glyphs,H);if(w<0)w=-1-w,Q.coverage.glyphs.splice(w,0,H),Q.substitute.splice(w,0,0);Q.substitute[w]=K.by};o0.prototype.addMultiple=function(J,K,Y,X){z0.assert(K.by instanceof Array&&K.by.length>1,'Multiple: "by" must be an array of two or more ids');var Z=this.getLookupTables(Y,X,J,2,!0)[0],Q=K4(Z,1,{substFormat:1,coverage:{format:1,glyphs:[]},sequences:[]});z0.assert(Q.coverage.format===1,"Multiple: unable to modify coverage table format "+Q.coverage.format);var H=K.sub,w=this.binSearch(Q.coverage.glyphs,H);if(w<0)w=-1-w,Q.coverage.glyphs.splice(w,0,H),Q.sequences.splice(w,0,0);Q.sequences[w]=K.by};o0.prototype.addAlternate=function(J,K,Y,X){var Z=this.getLookupTables(Y,X,J,3,!0)[0],Q=K4(Z,1,{substFormat:1,coverage:{format:1,glyphs:[]},alternateSets:[]});z0.assert(Q.coverage.format===1,"Alternate: unable to modify coverage table format "+Q.coverage.format);var H=K.sub,w=this.binSearch(Q.coverage.glyphs,H);if(w<0)w=-1-w,Q.coverage.glyphs.splice(w,0,H),Q.alternateSets.splice(w,0,0);Q.alternateSets[w]=K.by};o0.prototype.addLigature=function(J,K,Y,X){var Z=this.getLookupTables(Y,X,J,4,!0)[0],Q=Z.subtables[0];if(!Q)Q={substFormat:1,coverage:{format:1,glyphs:[]},ligatureSets:[]},Z.subtables[0]=Q;z0.assert(Q.coverage.format===1,"Ligature: unable to modify coverage table format "+Q.coverage.format);var H=K.sub[0],w=K.sub.slice(1),W={ligGlyph:K.by,components:w},z=this.binSearch(Q.coverage.glyphs,H);if(z>=0){var U=Q.ligatureSets[z];for(var $=0;$<U.length;$++)if(yQ(U[$].components,w))return;U.push(W)}else z=-1-z,Q.coverage.glyphs.splice(z,0,H),Q.ligatureSets.splice(z,0,[W])};o0.prototype.getFeature=function(J,K,Y){if(/ss\d\d/.test(J))return this.getSingle(J,K,Y);switch(J){case"aalt":case"salt":return this.getSingle(J,K,Y).concat(this.getAlternates(J,K,Y));case"dlig":case"liga":case"rlig":return this.getLigatures(J,K,Y);case"ccmp":return this.getMultiple(J,K,Y).concat(this.getLigatures(J,K,Y));case"stch":return this.getMultiple(J,K,Y)}return};o0.prototype.add=function(J,K,Y,X){if(/ss\d\d/.test(J))return this.addSingle(J,K,Y,X);switch(J){case"aalt":case"salt":if(typeof K.by==="number")return this.addSingle(J,K,Y,X);return this.addAlternate(J,K,Y,X);case"dlig":case"liga":case"rlig":return this.addLigature(J,K,Y,X);case"ccmp":if(K.by instanceof Array)return this.addMultiple(J,K,Y,X);return this.addLigature(J,K,Y,X)}return};function D8(J,K){if(!J)throw K}function S7(J,K){return J.getUint8(K)}function G5(J,K){return J.getUint16(K,!1)}function kQ(J,K){return J.getInt16(K,!1)}function Y4(J,K){return J.getUint32(K,!1)}function $J(J,K){var Y=J.getInt16(K,!1),X=J.getUint16(K+2,!1);return Y+X/65535}function gQ(J,K){var Y="";for(var X=K;X<K+4;X+=1)Y+=String.fromCharCode(J.getInt8(X));return Y}function xQ(J,K,Y){var X=0;for(var Z=0;Z<Y;Z+=1)X<<=8,X+=J.getUint8(K+Z);return X}function bQ(J,K,Y){var X=[];for(var Z=K;Z<Y;Z+=1)X.push(J.getUint8(Z));return X}function hQ(J){var K="";for(var Y=0;Y<J.length;Y+=1)K+=String.fromCharCode(J[Y]);return K}var mQ={byte:1,uShort:2,short:2,uLong:4,fixed:4,longDateTime:8,tag:4};function v(J,K){this.data=J,this.offset=K,this.relativeOffset=0}v.prototype.parseByte=function(){var J=this.data.getUint8(this.offset+this.relativeOffset);return this.relativeOffset+=1,J};v.prototype.parseChar=function(){var J=this.data.getInt8(this.offset+this.relativeOffset);return this.relativeOffset+=1,J};v.prototype.parseCard8=v.prototype.parseByte;v.prototype.parseUShort=function(){var J=this.data.getUint16(this.offset+this.relativeOffset);return this.relativeOffset+=2,J};v.prototype.parseCard16=v.prototype.parseUShort;v.prototype.parseSID=v.prototype.parseUShort;v.prototype.parseOffset16=v.prototype.parseUShort;v.prototype.parseShort=function(){var J=this.data.getInt16(this.offset+this.relativeOffset);return this.relativeOffset+=2,J};v.prototype.parseF2Dot14=function(){var J=this.data.getInt16(this.offset+this.relativeOffset)/16384;return this.relativeOffset+=2,J};v.prototype.parseULong=function(){var J=Y4(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,J};v.prototype.parseOffset32=v.prototype.parseULong;v.prototype.parseFixed=function(){var J=$J(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,J};v.prototype.parseString=function(J){var K=this.data,Y=this.offset+this.relativeOffset,X="";this.relativeOffset+=J;for(var Z=0;Z<J;Z++)X+=String.fromCharCode(K.getUint8(Y+Z));return X};v.prototype.parseTag=function(){return this.parseString(4)};v.prototype.parseLongDateTime=function(){var J=Y4(this.data,this.offset+this.relativeOffset+4);return J-=2082844800,this.relativeOffset+=8,J};v.prototype.parseVersion=function(J){var K=G5(this.data,this.offset+this.relativeOffset),Y=G5(this.data,this.offset+this.relativeOffset+2);if(this.relativeOffset+=4,J===void 0)J=4096;return K+Y/J/10};v.prototype.skip=function(J,K){if(K===void 0)K=1;this.relativeOffset+=mQ[J]*K};v.prototype.parseULongList=function(J){if(J===void 0)J=this.parseULong();var K=Array(J),Y=this.data,X=this.offset+this.relativeOffset;for(var Z=0;Z<J;Z++)K[Z]=Y.getUint32(X),X+=4;return this.relativeOffset+=J*4,K};v.prototype.parseOffset16List=v.prototype.parseUShortList=function(J){if(J===void 0)J=this.parseUShort();var K=Array(J),Y=this.data,X=this.offset+this.relativeOffset;for(var Z=0;Z<J;Z++)K[Z]=Y.getUint16(X),X+=2;return this.relativeOffset+=J*2,K};v.prototype.parseShortList=function(J){var K=Array(J),Y=this.data,X=this.offset+this.relativeOffset;for(var Z=0;Z<J;Z++)K[Z]=Y.getInt16(X),X+=2;return this.relativeOffset+=J*2,K};v.prototype.parseByteList=function(J){var K=Array(J),Y=this.data,X=this.offset+this.relativeOffset;for(var Z=0;Z<J;Z++)K[Z]=Y.getUint8(X++);return this.relativeOffset+=J,K};v.prototype.parseList=function(J,K){if(!K)K=J,J=this.parseUShort();var Y=Array(J);for(var X=0;X<J;X++)Y[X]=K.call(this);return Y};v.prototype.parseList32=function(J,K){if(!K)K=J,J=this.parseULong();var Y=Array(J);for(var X=0;X<J;X++)Y[X]=K.call(this);return Y};v.prototype.parseRecordList=function(J,K){if(!K)K=J,J=this.parseUShort();var Y=Array(J),X=Object.keys(K);for(var Z=0;Z<J;Z++){var Q={};for(var H=0;H<X.length;H++){var w=X[H],W=K[w];Q[w]=W.call(this)}Y[Z]=Q}return Y};v.prototype.parseRecordList32=function(J,K){if(!K)K=J,J=this.parseULong();var Y=Array(J),X=Object.keys(K);for(var Z=0;Z<J;Z++){var Q={};for(var H=0;H<X.length;H++){var w=X[H],W=K[w];Q[w]=W.call(this)}Y[Z]=Q}return Y};v.prototype.parseStruct=function(J){if(typeof J==="function")return J.call(this);else{var K=Object.keys(J),Y={};for(var X=0;X<K.length;X++){var Z=K[X],Q=J[Z];Y[Z]=Q.call(this)}return Y}};v.prototype.parseValueRecord=function(J){if(J===void 0)J=this.parseUShort();if(J===0)return;var K={};if(J&1)K.xPlacement=this.parseShort();if(J&2)K.yPlacement=this.parseShort();if(J&4)K.xAdvance=this.parseShort();if(J&8)K.yAdvance=this.parseShort();if(J&16)K.xPlaDevice=void 0,this.parseShort();if(J&32)K.yPlaDevice=void 0,this.parseShort();if(J&64)K.xAdvDevice=void 0,this.parseShort();if(J&128)K.yAdvDevice=void 0,this.parseShort();return K};v.prototype.parseValueRecordList=function(){var J=this.parseUShort(),K=this.parseUShort(),Y=Array(K);for(var X=0;X<K;X++)Y[X]=this.parseValueRecord(J);return Y};v.prototype.parsePointer=function(J){var K=this.parseOffset16();if(K>0)return new v(this.data,this.offset+K).parseStruct(J);return};v.prototype.parsePointer32=function(J){var K=this.parseOffset32();if(K>0)return new v(this.data,this.offset+K).parseStruct(J);return};v.prototype.parseListOfLists=function(J){var K=this.parseOffset16List(),Y=K.length,X=this.relativeOffset,Z=Array(Y);for(var Q=0;Q<Y;Q++){var H=K[Q];if(H===0){Z[Q]=void 0;continue}if(this.relativeOffset=H,J){var w=this.parseOffset16List(),W=Array(w.length);for(var z=0;z<w.length;z++)this.relativeOffset=H+w[z],W[z]=J.call(this);Z[Q]=W}else Z[Q]=this.parseUShortList()}return this.relativeOffset=X,Z};v.prototype.parseCoverage=function(){var J=this.offset+this.relativeOffset,K=this.parseUShort(),Y=this.parseUShort();if(K===1)return{format:1,glyphs:this.parseUShortList(Y)};else if(K===2){var X=Array(Y);for(var Z=0;Z<Y;Z++)X[Z]={start:this.parseUShort(),end:this.parseUShort(),index:this.parseUShort()};return{format:2,ranges:X}}throw Error("0x"+J.toString(16)+": Coverage format must be 1 or 2.")};v.prototype.parseClassDef=function(){var J=this.offset+this.relativeOffset,K=this.parseUShort();if(K===1)return{format:1,startGlyph:this.parseUShort(),classes:this.parseUShortList()};else if(K===2)return{format:2,ranges:this.parseRecordList({start:v.uShort,end:v.uShort,classId:v.uShort})};throw Error("0x"+J.toString(16)+": ClassDef format must be 1 or 2.")};v.list=function(J,K){return function(){return this.parseList(J,K)}};v.list32=function(J,K){return function(){return this.parseList32(J,K)}};v.recordList=function(J,K){return function(){return this.parseRecordList(J,K)}};v.recordList32=function(J,K){return function(){return this.parseRecordList32(J,K)}};v.pointer=function(J){return function(){return this.parsePointer(J)}};v.pointer32=function(J){return function(){return this.parsePointer32(J)}};v.tag=v.prototype.parseTag;v.byte=v.prototype.parseByte;v.uShort=v.offset16=v.prototype.parseUShort;v.uShortList=v.prototype.parseUShortList;v.uLong=v.offset32=v.prototype.parseULong;v.uLongList=v.prototype.parseULongList;v.struct=v.prototype.parseStruct;v.coverage=v.prototype.parseCoverage;v.classDef=v.prototype.parseClassDef;var v7={reserved:v.uShort,reqFeatureIndex:v.uShort,featureIndexes:v.uShortList};v.prototype.parseScriptList=function(){return this.parsePointer(v.recordList({tag:v.tag,script:v.pointer({defaultLangSys:v.pointer(v7),langSysRecords:v.recordList({tag:v.tag,langSys:v.pointer(v7)})})}))||[]};v.prototype.parseFeatureList=function(){return this.parsePointer(v.recordList({tag:v.tag,feature:v.pointer({featureParams:v.offset16,lookupListIndexes:v.uShortList})}))||[]};v.prototype.parseLookupList=function(J){return this.parsePointer(v.list(v.pointer(function(){var K=this.parseUShort();z0.argument(1<=K&&K<=9,"GPOS/GSUB lookup type "+K+" unknown.");var Y=this.parseUShort(),X=Y&16;return{lookupType:K,lookupFlag:Y,subtables:this.parseList(v.pointer(J[K])),markFilteringSet:X?this.parseUShort():void 0}})))||[]};v.prototype.parseFeatureVariationsList=function(){return this.parsePointer32(function(){var J=this.parseUShort(),K=this.parseUShort();z0.argument(J===1&&K<1,"GPOS/GSUB feature variations table unknown.");var Y=this.parseRecordList32({conditionSetOffset:v.offset32,featureTableSubstitutionOffset:v.offset32});return Y})||[]};var n={getByte:S7,getCard8:S7,getUShort:G5,getCard16:G5,getShort:kQ,getULong:Y4,getFixed:$J,getTag:gQ,getOffset:xQ,getBytes:bQ,bytesToString:hQ,Parser:v};function y7(J,K,Y,X,Z){var Q;if((K&X)>0){if(Q=J.parseByte(),(K&Z)===0)Q=-Q;Q=Y+Q}else if((K&Z)>0)Q=Y;else Q=Y+J.parseShort();return Q}function VJ(J,K,Y){var X=new n.Parser(K,Y);J.numberOfContours=X.parseShort(),J._xMin=X.parseShort(),J._yMin=X.parseShort(),J._xMax=X.parseShort(),J._yMax=X.parseShort();var Z,Q;if(J.numberOfContours>0){var H=J.endPointIndices=[];for(var w=0;w<J.numberOfContours;w+=1)H.push(X.parseUShort());J.instructionLength=X.parseUShort(),J.instructions=[];for(var W=0;W<J.instructionLength;W+=1)J.instructions.push(X.parseByte());var z=H[H.length-1]+1;Z=[];for(var U=0;U<z;U+=1)if(Q=X.parseByte(),Z.push(Q),(Q&8)>0){var $=X.parseByte();for(var V=0;V<$;V+=1)Z.push(Q),U+=1}if(z0.argument(Z.length===z,"Bad flags."),H.length>0){var B=[],q;if(z>0){for(var G=0;G<z;G+=1)Q=Z[G],q={},q.onCurve=!!(Q&1),q.lastPointOfContour=H.indexOf(G)>=0,B.push(q);var M=0;for(var N=0;N<z;N+=1)Q=Z[N],q=B[N],q.x=y7(X,Q,M,2,16),M=q.x;var j=0;for(var _=0;_<z;_+=1)Q=Z[_],q=B[_],q.y=y7(X,Q,j,4,32),j=q.y}J.points=B}else J.points=[]}else if(J.numberOfContours===0)J.points=[];else{J.isComposite=!0,J.points=[],J.components=[];var R=!0;while(R){Z=X.parseUShort();var E={glyphIndex:X.parseUShort(),xScale:1,scale01:0,scale10:0,yScale:1,dx:0,dy:0};if((Z&1)>0)if((Z&2)>0)E.dx=X.parseShort(),E.dy=X.parseShort();else E.matchedPoints=[X.parseUShort(),X.parseUShort()];else if((Z&2)>0)E.dx=X.parseChar(),E.dy=X.parseChar();else E.matchedPoints=[X.parseByte(),X.parseByte()];if((Z&8)>0)E.xScale=E.yScale=X.parseF2Dot14();else if((Z&64)>0)E.xScale=X.parseF2Dot14(),E.yScale=X.parseF2Dot14();else if((Z&128)>0)E.xScale=X.parseF2Dot14(),E.scale01=X.parseF2Dot14(),E.scale10=X.parseF2Dot14(),E.yScale=X.parseF2Dot14();J.components.push(E),R=!!(Z&32)}if(Z&256){J.instructionLength=X.parseUShort(),J.instructions=[];for(var L=0;L<J.instructionLength;L+=1)J.instructions.push(X.parseByte())}}}function p6(J,K){var Y=[];for(var X=0;X<J.length;X+=1){var Z=J[X],Q={x:K.xScale*Z.x+K.scale01*Z.y+K.dx,y:K.scale10*Z.x+K.yScale*Z.y+K.dy,onCurve:Z.onCurve,lastPointOfContour:Z.lastPointOfContour};Y.push(Q)}return Y}function fQ(J){var K=[],Y=[];for(var X=0;X<J.length;X+=1){var Z=J[X];if(Y.push(Z),Z.lastPointOfContour)K.push(Y),Y=[]}return z0.argument(Y.length===0,"There are still points left in the current contour."),K}function BJ(J){var K=new h0;if(!J)return K;var Y=fQ(J);for(var X=0;X<Y.length;++X){var Z=Y[X],Q=null,H=Z[Z.length-1],w=Z[0];if(H.onCurve)K.moveTo(H.x,H.y);else if(w.onCurve)K.moveTo(w.x,w.y);else{var W={x:(H.x+w.x)*0.5,y:(H.y+w.y)*0.5};K.moveTo(W.x,W.y)}for(var z=0;z<Z.length;++z)if(Q=H,H=w,w=Z[(z+1)%Z.length],H.onCurve)K.lineTo(H.x,H.y);else{var U=Q,$=w;if(!Q.onCurve)U={x:(H.x+Q.x)*0.5,y:(H.y+Q.y)*0.5};if(!w.onCurve)$={x:(H.x+w.x)*0.5,y:(H.y+w.y)*0.5};K.quadraticCurveTo(H.x,H.y,$.x,$.y)}K.closePath()}return K}function AJ(J,K){if(K.isComposite)for(var Y=0;Y<K.components.length;Y+=1){var X=K.components[Y],Z=J.get(X.glyphIndex);if(Z.getPath(),Z.points){var Q=void 0;if(X.matchedPoints===void 0)Q=p6(Z.points,X);else{if(X.matchedPoints[0]>K.points.length-1||X.matchedPoints[1]>Z.points.length-1)throw Error("Matched points out of range in "+K.name);var H=K.points[X.matchedPoints[0]],w=Z.points[X.matchedPoints[1]],W={xScale:X.xScale,scale01:X.scale01,scale10:X.scale10,yScale:X.yScale,dx:0,dy:0};w=p6([w],W)[0],W.dx=H.x-w.x,W.dy=H.y-w.y,Q=p6(Z.points,W)}K.points=K.points.concat(Q)}}return BJ(K.points)}function dQ(J,K,Y,X){var Z=new F1.GlyphSet(X);for(var Q=0;Q<Y.length-1;Q+=1){var H=Y[Q],w=Y[Q+1];if(H!==w)Z.push(Q,F1.ttfGlyphLoader(X,Q,VJ,J,K+H,AJ));else Z.push(Q,F1.glyphLoader(X,Q))}return Z}function lQ(J,K,Y,X){var Z=new F1.GlyphSet(X);return X._push=function(Q){var H=Y[Q],w=Y[Q+1];if(H!==w)Z.push(Q,F1.ttfGlyphLoader(X,Q,VJ,J,K+H,AJ));else Z.push(Q,F1.glyphLoader(X,Q))},Z}function cQ(J,K,Y,X,Z){if(Z.lowMemory)return lQ(J,K,Y,X);else return dQ(J,K,Y,X)}var GJ={getPath:BJ,parse:cQ},MJ,J8,qJ,t6;function OJ(J){this.font=J,this.getCommands=function(K){return GJ.getPath(K).commands},this._fpgmState=this._prepState=void 0,this._errorState=0}function uQ(J){return J}function NJ(J){return Math.sign(J)*Math.round(Math.abs(J))}function pQ(J){return Math.sign(J)*Math.round(Math.abs(J*2))/2}function iQ(J){return Math.sign(J)*(Math.round(Math.abs(J)+0.5)-0.5)}function oQ(J){return Math.sign(J)*Math.ceil(Math.abs(J))}function rQ(J){return Math.sign(J)*Math.floor(Math.abs(J))}var jJ=function(J){var K=this.srPeriod,Y=this.srPhase,X=this.srThreshold,Z=1;if(J<0)J=-J,Z=-1;if(J+=X-Y,J=Math.trunc(J/K)*K,J+=Y,J<0)return Y*Z;return J*Z},L1={x:1,y:0,axis:"x",distance:function(J,K,Y,X){return(Y?J.xo:J.x)-(X?K.xo:K.x)},interpolate:function(J,K,Y,X){var Z,Q,H,w,W,z,U;if(!X||X===this){if(Z=J.xo-K.xo,Q=J.xo-Y.xo,W=K.x-K.xo,z=Y.x-Y.xo,H=Math.abs(Z),w=Math.abs(Q),U=H+w,U===0){J.x=J.xo+(W+z)/2;return}J.x=J.xo+(W*w+z*H)/U;return}if(Z=X.distance(J,K,!0,!0),Q=X.distance(J,Y,!0,!0),W=X.distance(K,K,!1,!0),z=X.distance(Y,Y,!1,!0),H=Math.abs(Z),w=Math.abs(Q),U=H+w,U===0){L1.setRelative(J,J,(W+z)/2,X,!0);return}L1.setRelative(J,J,(W*w+z*H)/U,X,!0)},normalSlope:Number.NEGATIVE_INFINITY,setRelative:function(J,K,Y,X,Z){if(!X||X===this){J.x=(Z?K.xo:K.x)+Y;return}var Q=Z?K.xo:K.x,H=Z?K.yo:K.y,w=Q+Y*X.x,W=H+Y*X.y;J.x=w+(J.y-W)/X.normalSlope},slope:0,touch:function(J){J.xTouched=!0},touched:function(J){return J.xTouched},untouch:function(J){J.xTouched=!1}},D1={x:0,y:1,axis:"y",distance:function(J,K,Y,X){return(Y?J.yo:J.y)-(X?K.yo:K.y)},interpolate:function(J,K,Y,X){var Z,Q,H,w,W,z,U;if(!X||X===this){if(Z=J.yo-K.yo,Q=J.yo-Y.yo,W=K.y-K.yo,z=Y.y-Y.yo,H=Math.abs(Z),w=Math.abs(Q),U=H+w,U===0){J.y=J.yo+(W+z)/2;return}J.y=J.yo+(W*w+z*H)/U;return}if(Z=X.distance(J,K,!0,!0),Q=X.distance(J,Y,!0,!0),W=X.distance(K,K,!1,!0),z=X.distance(Y,Y,!1,!0),H=Math.abs(Z),w=Math.abs(Q),U=H+w,U===0){D1.setRelative(J,J,(W+z)/2,X,!0);return}D1.setRelative(J,J,(W*w+z*H)/U,X,!0)},normalSlope:0,setRelative:function(J,K,Y,X,Z){if(!X||X===this){J.y=(Z?K.yo:K.y)+Y;return}var Q=Z?K.xo:K.x,H=Z?K.yo:K.y,w=Q+Y*X.x,W=H+Y*X.y;J.y=W+X.normalSlope*(J.x-w)},slope:Number.POSITIVE_INFINITY,touch:function(J){J.yTouched=!0},touched:function(J){return J.yTouched},untouch:function(J){J.yTouched=!1}};Object.freeze(L1);Object.freeze(D1);function y8(J,K){this.x=J,this.y=K,this.axis=void 0,this.slope=K/J,this.normalSlope=-J/K,Object.freeze(this)}y8.prototype.distance=function(J,K,Y,X){return this.x*L1.distance(J,K,Y,X)+this.y*D1.distance(J,K,Y,X)};y8.prototype.interpolate=function(J,K,Y,X){var Z,Q,H,w,W,z,U;if(H=X.distance(J,K,!0,!0),w=X.distance(J,Y,!0,!0),Z=X.distance(K,K,!1,!0),Q=X.distance(Y,Y,!1,!0),W=Math.abs(H),z=Math.abs(w),U=W+z,U===0){this.setRelative(J,J,(Z+Q)/2,X,!0);return}this.setRelative(J,J,(Z*z+Q*W)/U,X,!0)};y8.prototype.setRelative=function(J,K,Y,X,Z){X=X||this;var Q=Z?K.xo:K.x,H=Z?K.yo:K.y,w=Q+Y*X.x,W=H+Y*X.y,z=X.normalSlope,U=this.slope,$=J.x,V=J.y;J.x=(U*$-z*w+W-V)/(U-z),J.y=U*(J.x-$)+V};y8.prototype.touch=function(J){J.xTouched=!0,J.yTouched=!0};function k8(J,K){var Y=Math.sqrt(J*J+K*K);if(J/=Y,K/=Y,J===1&&K===0)return L1;else if(J===0&&K===1)return D1;else return new y8(J,K)}function I1(J,K,Y,X){this.x=this.xo=Math.round(J*64)/64,this.y=this.yo=Math.round(K*64)/64,this.lastPointOfContour=Y,this.onCurve=X,this.prevPointOnContour=void 0,this.nextPointOnContour=void 0,this.xTouched=!1,this.yTouched=!1,Object.preventExtensions(this)}I1.prototype.nextTouched=function(J){var K=this.nextPointOnContour;while(!J.touched(K)&&K!==this)K=K.nextPointOnContour;return K};I1.prototype.prevTouched=function(J){var K=this.prevPointOnContour;while(!J.touched(K)&&K!==this)K=K.prevPointOnContour;return K};var C8=Object.freeze(new I1(0,0)),nQ={cvCutIn:1.0625,deltaBase:9,deltaShift:0.125,loop:1,minDis:1,autoFlip:!0};function d1(J,K){switch(this.env=J,this.stack=[],this.prog=K,J){case"glyf":this.zp0=this.zp1=this.zp2=1,this.rp0=this.rp1=this.rp2=0;case"prep":this.fv=this.pv=this.dpv=L1,this.round=NJ}}OJ.prototype.exec=function(J,K){if(typeof K!=="number")throw Error("Point size is not a number!");if(this._errorState>2)return;var Y=this.font,X=this._prepState;if(!X||X.ppem!==K){var Z=this._fpgmState;if(!Z){if(d1.prototype=nQ,Z=this._fpgmState=new d1("fpgm",Y.tables.fpgm),Z.funcs=[],Z.font=Y,pV.DEBUG)console.log("---EXEC FPGM---"),Z.step=-1;try{J8(Z)}catch(z){console.log("Hinting error in FPGM:"+z),this._errorState=3;return}}d1.prototype=Z,X=this._prepState=new d1("prep",Y.tables.prep),X.ppem=K;var Q=Y.tables.cvt;if(Q){var H=X.cvt=Array(Q.length),w=K/Y.unitsPerEm;for(var W=0;W<Q.length;W++)H[W]=Q[W]*w}else X.cvt=[];if(pV.DEBUG)console.log("---EXEC PREP---"),X.step=-1;try{J8(X)}catch(z){if(this._errorState<2)console.log("Hinting error in PREP:"+z);this._errorState=2}}if(this._errorState>1)return;try{return qJ(J,X)}catch(z){if(this._errorState<1)console.log("Hinting error:"+z),console.log("Note: further hinting errors are silenced");this._errorState=1;return}};qJ=function(J,K){var Y=K.ppem/K.font.unitsPerEm,X=Y,Z=J.components,Q,H,w;if(d1.prototype=K,!Z){if(w=new d1("glyf",J.instructions),pV.DEBUG)console.log("---EXEC GLYPH---"),w.step=-1;t6(J,w,Y,X),H=w.gZone}else{var W=K.font;H=[],Q=[];for(var z=0;z<Z.length;z++){var U=Z[z],$=W.glyphs.get(U.glyphIndex);if(w=new d1("glyf",$.instructions),pV.DEBUG)console.log("---EXEC COMP "+z+"---"),w.step=-1;t6($,w,Y,X);var V=Math.round(U.dx*Y),B=Math.round(U.dy*X),q=w.gZone,G=w.contours;for(var M=0;M<q.length;M++){var N=q[M];N.xTouched=N.yTouched=!1,N.xo=N.x=N.x+V,N.yo=N.y=N.y+B}var j=H.length;H.push.apply(H,q);for(var _=0;_<G.length;_++)Q.push(G[_]+j)}if(J.instructions&&!w.inhibitGridFit){if(w=new d1("glyf",J.instructions),w.gZone=w.z0=w.z1=w.z2=H,w.contours=Q,H.push(new I1(0,0),new I1(Math.round(J.advanceWidth*Y),0)),pV.DEBUG)console.log("---EXEC COMPOSITE---"),w.step=-1;J8(w),H.length-=2}}return H};t6=function(J,K,Y,X){var Z=J.points||[],Q=Z.length,H=K.gZone=K.z0=K.z1=K.z2=[],w=K.contours=[],W;for(var z=0;z<Q;z++)W=Z[z],H[z]=new I1(W.x*Y,W.y*X,W.lastPointOfContour,W.onCurve);var U,$;for(var V=0;V<Q;V++){if(W=H[V],!U)U=W,w.push(V);if(W.lastPointOfContour)W.nextPointOnContour=U,U.prevPointOnContour=W,U=void 0;else $=H[V+1],W.nextPointOnContour=$,$.prevPointOnContour=W}if(K.inhibitGridFit)return;if(pV.DEBUG){console.log("PROCESSING GLYPH",K.stack);for(var B=0;B<Q;B++)console.log(B,H[B].x,H[B].y)}if(H.push(new I1(0,0),new I1(Math.round(J.advanceWidth*Y),0)),J8(K),H.length-=2,pV.DEBUG){console.log("FINISHED GLYPH",K.stack);for(var q=0;q<Q;q++)console.log(q,H[q].x,H[q].y)}};J8=function(J){var K=J.prog;if(!K)return;var Y=K.length,X;for(J.ip=0;J.ip<Y;J.ip++){if(pV.DEBUG)J.step++;if(X=MJ[K[J.ip]],!X)throw Error("unknown instruction: 0x"+Number(K[J.ip]).toString(16));X(J)}};function M5(J){var K=J.tZone=Array(J.gZone.length);for(var Y=0;Y<K.length;Y++)K[Y]=new I1(0,0)}function LJ(J,K){var{prog:Y,ip:X}=J,Z=1,Q;do if(Q=Y[++X],Q===88)Z++;else if(Q===89)Z--;else if(Q===64)X+=Y[X+1]+1;else if(Q===65)X+=2*Y[X+1]+1;else if(Q>=176&&Q<=183)X+=Q-176+1;else if(Q>=184&&Q<=191)X+=(Q-184+1)*2;else if(K&&Z===1&&Q===27)break;while(Z>0);J.ip=X}function k7(J,K){if(pV.DEBUG)console.log(K.step,"SVTCA["+J.axis+"]");K.fv=K.pv=K.dpv=J}function g7(J,K){if(pV.DEBUG)console.log(K.step,"SPVTCA["+J.axis+"]");K.pv=K.dpv=J}function x7(J,K){if(pV.DEBUG)console.log(K.step,"SFVTCA["+J.axis+"]");K.fv=J}function b7(J,K){var Y=K.stack,X=Y.pop(),Z=Y.pop(),Q=K.z2[X],H=K.z1[Z];if(pV.DEBUG)console.log("SPVTL["+J+"]",X,Z);var w,W;if(!J)w=H.x-Q.x,W=H.y-Q.y;else w=Q.y-H.y,W=H.x-Q.x;K.pv=K.dpv=k8(w,W)}function h7(J,K){var Y=K.stack,X=Y.pop(),Z=Y.pop(),Q=K.z2[X],H=K.z1[Z];if(pV.DEBUG)console.log("SFVTL["+J+"]",X,Z);var w,W;if(!J)w=H.x-Q.x,W=H.y-Q.y;else w=Q.y-H.y,W=H.x-Q.x;K.fv=k8(w,W)}function sQ(J){var K=J.stack,Y=K.pop(),X=K.pop();if(pV.DEBUG)console.log(J.step,"SPVFS[]",Y,X);J.pv=J.dpv=k8(X,Y)}function aQ(J){var K=J.stack,Y=K.pop(),X=K.pop();if(pV.DEBUG)console.log(J.step,"SPVFS[]",Y,X);J.fv=k8(X,Y)}function tQ(J){var{stack:K,pv:Y}=J;if(pV.DEBUG)console.log(J.step,"GPV[]");K.push(Y.x*16384),K.push(Y.y*16384)}function eQ(J){var{stack:K,fv:Y}=J;if(pV.DEBUG)console.log(J.step,"GFV[]");K.push(Y.x*16384),K.push(Y.y*16384)}function J2(J){if(J.fv=J.pv,pV.DEBUG)console.log(J.step,"SFVTPV[]")}function K2(J){var K=J.stack,Y=K.pop(),X=K.pop(),Z=K.pop(),Q=K.pop(),H=K.pop(),w=J.z0,W=J.z1,z=w[Y],U=w[X],$=W[Z],V=W[Q],B=J.z2[H];if(pV.DEBUG)console.log("ISECT[], ",Y,X,Z,Q,H);var{x:q,y:G}=z,M=U.x,N=U.y,j=$.x,_=$.y,R=V.x,E=V.y,L=(q-M)*(_-E)-(G-N)*(j-R),T=q*N-G*M,D=j*E-_*R;B.x=(T*(j-R)-D*(q-M))/L,B.y=(T*(_-E)-D*(G-N))/L}function Y2(J){if(J.rp0=J.stack.pop(),pV.DEBUG)console.log(J.step,"SRP0[]",J.rp0)}function X2(J){if(J.rp1=J.stack.pop(),pV.DEBUG)console.log(J.step,"SRP1[]",J.rp1)}function Z2(J){if(J.rp2=J.stack.pop(),pV.DEBUG)console.log(J.step,"SRP2[]",J.rp2)}function Q2(J){var K=J.stack.pop();if(pV.DEBUG)console.log(J.step,"SZP0[]",K);switch(J.zp0=K,K){case 0:if(!J.tZone)M5(J);J.z0=J.tZone;break;case 1:J.z0=J.gZone;break;default:throw Error("Invalid zone pointer")}}function H2(J){var K=J.stack.pop();if(pV.DEBUG)console.log(J.step,"SZP1[]",K);switch(J.zp1=K,K){case 0:if(!J.tZone)M5(J);J.z1=J.tZone;break;case 1:J.z1=J.gZone;break;default:throw Error("Invalid zone pointer")}}function W2(J){var K=J.stack.pop();if(pV.DEBUG)console.log(J.step,"SZP2[]",K);switch(J.zp2=K,K){case 0:if(!J.tZone)M5(J);J.z2=J.tZone;break;case 1:J.z2=J.gZone;break;default:throw Error("Invalid zone pointer")}}function w2(J){var K=J.stack.pop();if(pV.DEBUG)console.log(J.step,"SZPS[]",K);switch(J.zp0=J.zp1=J.zp2=K,K){case 0:if(!J.tZone)M5(J);J.z0=J.z1=J.z2=J.tZone;break;case 1:J.z0=J.z1=J.z2=J.gZone;break;default:throw Error("Invalid zone pointer")}}function z2(J){if(J.loop=J.stack.pop(),pV.DEBUG)console.log(J.step,"SLOOP[]",J.loop)}function U2(J){if(pV.DEBUG)console.log(J.step,"RTG[]");J.round=NJ}function $2(J){if(pV.DEBUG)console.log(J.step,"RTHG[]");J.round=iQ}function V2(J){var K=J.stack.pop();if(pV.DEBUG)console.log(J.step,"SMD[]",K);J.minDis=K/64}function B2(J){if(pV.DEBUG)console.log(J.step,"ELSE[]");LJ(J,!1)}function A2(J){var K=J.stack.pop();if(pV.DEBUG)console.log(J.step,"JMPR[]",K);J.ip+=K-1}function G2(J){var K=J.stack.pop();if(pV.DEBUG)console.log(J.step,"SCVTCI[]",K);J.cvCutIn=K/64}function M2(J){var K=J.stack;if(pV.DEBUG)console.log(J.step,"DUP[]");K.push(K[K.length-1])}function i6(J){if(pV.DEBUG)console.log(J.step,"POP[]");J.stack.pop()}function q2(J){if(pV.DEBUG)console.log(J.step,"CLEAR[]");J.stack.length=0}function O2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(pV.DEBUG)console.log(J.step,"SWAP[]");K.push(Y),K.push(X)}function N2(J){var K=J.stack;if(pV.DEBUG)console.log(J.step,"DEPTH[]");K.push(K.length)}function j2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(pV.DEBUG)console.log(J.step,"LOOPCALL[]",Y,X);var{ip:Z,prog:Q}=J;J.prog=J.funcs[Y];for(var H=0;H<X;H++)if(J8(J),pV.DEBUG)console.log(++J.step,H+1<X?"next loopcall":"done loopcall",H);J.ip=Z,J.prog=Q}function L2(J){var K=J.stack.pop();if(pV.DEBUG)console.log(J.step,"CALL[]",K);var{ip:Y,prog:X}=J;if(J.prog=J.funcs[K],J8(J),J.ip=Y,J.prog=X,pV.DEBUG)console.log(++J.step,"returning from",K)}function F2(J){var K=J.stack,Y=K.pop();if(pV.DEBUG)console.log(J.step,"CINDEX[]",Y);K.push(K[K.length-Y])}function E2(J){var K=J.stack,Y=K.pop();if(pV.DEBUG)console.log(J.step,"MINDEX[]",Y);K.push(K.splice(K.length-Y,1)[0])}function _2(J){if(J.env!=="fpgm")throw Error("FDEF not allowed here");var{stack:K,prog:Y,ip:X}=J,Z=K.pop(),Q=X;if(pV.DEBUG)console.log(J.step,"FDEF[]",Z);while(Y[++X]!==45);J.ip=X,J.funcs[Z]=Y.slice(Q+1,X)}function m7(J,K){var Y=K.stack.pop(),X=K.z0[Y],Z=K.fv,Q=K.pv;if(pV.DEBUG)console.log(K.step,"MDAP["+J+"]",Y);var H=Q.distance(X,C8);if(J)H=K.round(H);Z.setRelative(X,C8,H,Q),Z.touch(X),K.rp0=K.rp1=Y}function f7(J,K){var Y=K.z2,X=Y.length-2,Z,Q,H;if(pV.DEBUG)console.log(K.step,"IUP["+J.axis+"]");for(var w=0;w<X;w++){if(Z=Y[w],J.touched(Z))continue;if(Q=Z.prevTouched(J),Q===Z)continue;if(H=Z.nextTouched(J),Q===H)J.setRelative(Z,Z,J.distance(Q,Q,!1,!0),J,!0);J.interpolate(Z,Q,H,J)}}function d7(J,K){var Y=K.stack,X=J?K.rp1:K.rp2,Z=(J?K.z0:K.z1)[X],Q=K.fv,H=K.pv,w=K.loop,W=K.z2;while(w--){var z=Y.pop(),U=W[z],$=H.distance(Z,Z,!1,!0);if(Q.setRelative(U,U,$,H),Q.touch(U),pV.DEBUG)console.log(K.step,(K.loop>1?"loop "+(K.loop-w)+": ":"")+"SHP["+(J?"rp1":"rp2")+"]",z)}K.loop=1}function l7(J,K){var Y=K.stack,X=J?K.rp1:K.rp2,Z=(J?K.z0:K.z1)[X],Q=K.fv,H=K.pv,w=Y.pop(),W=K.z2[K.contours[w]],z=W;if(pV.DEBUG)console.log(K.step,"SHC["+J+"]",w);var U=H.distance(Z,Z,!1,!0);do{if(z!==Z)Q.setRelative(z,z,U,H);z=z.nextPointOnContour}while(z!==W)}function c7(J,K){var Y=K.stack,X=J?K.rp1:K.rp2,Z=(J?K.z0:K.z1)[X],Q=K.fv,H=K.pv,w=Y.pop();if(pV.DEBUG)console.log(K.step,"SHZ["+J+"]",w);var W;switch(w){case 0:W=K.tZone;break;case 1:W=K.gZone;break;default:throw Error("Invalid zone")}var z,U=H.distance(Z,Z,!1,!0),$=W.length-2;for(var V=0;V<$;V++)z=W[V],Q.setRelative(z,z,U,H)}function R2(J){var{stack:K,loop:Y,fv:X}=J,Z=K.pop()/64,Q=J.z2;while(Y--){var H=K.pop(),w=Q[H];if(pV.DEBUG)console.log(J.step,(J.loop>1?"loop "+(J.loop-Y)+": ":"")+"SHPIX[]",H,Z);X.setRelative(w,w,Z),X.touch(w)}J.loop=1}function D2(J){var{stack:K,rp1:Y,rp2:X,loop:Z}=J,Q=J.z0[Y],H=J.z1[X],w=J.fv,W=J.dpv,z=J.z2;while(Z--){var U=K.pop(),$=z[U];if(pV.DEBUG)console.log(J.step,(J.loop>1?"loop "+(J.loop-Z)+": ":"")+"IP[]",U,Y,"<->",X);w.interpolate($,Q,H,W),w.touch($)}J.loop=1}function u7(J,K){var Y=K.stack,X=Y.pop()/64,Z=Y.pop(),Q=K.z1[Z],H=K.z0[K.rp0],w=K.fv,W=K.pv;if(w.setRelative(Q,H,X,W),w.touch(Q),pV.DEBUG)console.log(K.step,"MSIRP["+J+"]",X,Z);if(K.rp1=K.rp0,K.rp2=Z,J)K.rp0=Z}function I2(J){var{stack:K,rp0:Y}=J,X=J.z0[Y],Z=J.loop,Q=J.fv,H=J.pv,w=J.z1;while(Z--){var W=K.pop(),z=w[W];if(pV.DEBUG)console.log(J.step,(J.loop>1?"loop "+(J.loop-Z)+": ":"")+"ALIGNRP[]",W);Q.setRelative(z,X,0,H),Q.touch(z)}J.loop=1}function T2(J){if(pV.DEBUG)console.log(J.step,"RTDG[]");J.round=pQ}function p7(J,K){var Y=K.stack,X=Y.pop(),Z=Y.pop(),Q=K.z0[Z],H=K.fv,w=K.pv,W=K.cvt[X];if(pV.DEBUG)console.log(K.step,"MIAP["+J+"]",X,"(",W,")",Z);var z=w.distance(Q,C8);if(J){if(Math.abs(z-W)<K.cvCutIn)z=W;z=K.round(z)}if(H.setRelative(Q,C8,z,w),K.zp0===0)Q.xo=Q.x,Q.yo=Q.y;H.touch(Q),K.rp0=K.rp1=Z}function C2(J){var{prog:K,ip:Y,stack:X}=J,Z=K[++Y];if(pV.DEBUG)console.log(J.step,"NPUSHB[]",Z);for(var Q=0;Q<Z;Q++)X.push(K[++Y]);J.ip=Y}function P2(J){var{ip:K,prog:Y,stack:X}=J,Z=Y[++K];if(pV.DEBUG)console.log(J.step,"NPUSHW[]",Z);for(var Q=0;Q<Z;Q++){var H=Y[++K]<<8|Y[++K];if(H&32768)H=-((H^65535)+1);X.push(H)}J.ip=K}function S2(J){var{stack:K,store:Y}=J;if(!Y)Y=J.store=[];var X=K.pop(),Z=K.pop();if(pV.DEBUG)console.log(J.step,"WS",X,Z);Y[Z]=X}function v2(J){var{stack:K,store:Y}=J,X=K.pop();if(pV.DEBUG)console.log(J.step,"RS",X);var Z=Y&&Y[X]||0;K.push(Z)}function y2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(pV.DEBUG)console.log(J.step,"WCVTP",Y,X);J.cvt[X]=Y/64}function k2(J){var K=J.stack,Y=K.pop();if(pV.DEBUG)console.log(J.step,"RCVT",Y);K.push(J.cvt[Y]*64)}function i7(J,K){var Y=K.stack,X=Y.pop(),Z=K.z2[X];if(pV.DEBUG)console.log(K.step,"GC["+J+"]",X);Y.push(K.dpv.distance(Z,C8,J,!1)*64)}function o7(J,K){var Y=K.stack,X=Y.pop(),Z=Y.pop(),Q=K.z1[X],H=K.z0[Z],w=K.dpv.distance(H,Q,J,J);if(pV.DEBUG)console.log(K.step,"MD["+J+"]",X,Z,"->",w);K.stack.push(Math.round(w*64))}function g2(J){if(pV.DEBUG)console.log(J.step,"MPPEM[]");J.stack.push(J.ppem)}function x2(J){if(pV.DEBUG)console.log(J.step,"FLIPON[]");J.autoFlip=!0}function b2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(pV.DEBUG)console.log(J.step,"LT[]",Y,X);K.push(X<Y?1:0)}function h2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(pV.DEBUG)console.log(J.step,"LTEQ[]",Y,X);K.push(X<=Y?1:0)}function m2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(pV.DEBUG)console.log(J.step,"GT[]",Y,X);K.push(X>Y?1:0)}function f2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(pV.DEBUG)console.log(J.step,"GTEQ[]",Y,X);K.push(X>=Y?1:0)}function d2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(pV.DEBUG)console.log(J.step,"EQ[]",Y,X);K.push(Y===X?1:0)}function l2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(pV.DEBUG)console.log(J.step,"NEQ[]",Y,X);K.push(Y!==X?1:0)}function c2(J){var K=J.stack,Y=K.pop();if(pV.DEBUG)console.log(J.step,"ODD[]",Y);K.push(Math.trunc(Y)%2?1:0)}function u2(J){var K=J.stack,Y=K.pop();if(pV.DEBUG)console.log(J.step,"EVEN[]",Y);K.push(Math.trunc(Y)%2?0:1)}function p2(J){var K=J.stack.pop();if(pV.DEBUG)console.log(J.step,"IF[]",K);if(!K){if(LJ(J,!0),pV.DEBUG)console.log(J.step,"EIF[]")}}function i2(J){if(pV.DEBUG)console.log(J.step,"EIF[]")}function o2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(pV.DEBUG)console.log(J.step,"AND[]",Y,X);K.push(Y&&X?1:0)}function r2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(pV.DEBUG)console.log(J.step,"OR[]",Y,X);K.push(Y||X?1:0)}function n2(J){var K=J.stack,Y=K.pop();if(pV.DEBUG)console.log(J.step,"NOT[]",Y);K.push(Y?0:1)}function o6(J,K){var Y=K.stack,X=Y.pop(),Z=K.fv,Q=K.pv,H=K.ppem,w=K.deltaBase+(J-1)*16,W=K.deltaShift,z=K.z0;if(pV.DEBUG)console.log(K.step,"DELTAP["+J+"]",X,Y);for(var U=0;U<X;U++){var $=Y.pop(),V=Y.pop(),B=w+((V&240)>>4);if(B!==H)continue;var q=(V&15)-8;if(q>=0)q++;if(pV.DEBUG)console.log(K.step,"DELTAPFIX",$,"by",q*W);var G=z[$];Z.setRelative(G,G,q*W,Q)}}function s2(J){var K=J.stack,Y=K.pop();if(pV.DEBUG)console.log(J.step,"SDB[]",Y);J.deltaBase=Y}function a2(J){var K=J.stack,Y=K.pop();if(pV.DEBUG)console.log(J.step,"SDS[]",Y);J.deltaShift=Math.pow(0.5,Y)}function t2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(pV.DEBUG)console.log(J.step,"ADD[]",Y,X);K.push(X+Y)}function e2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(pV.DEBUG)console.log(J.step,"SUB[]",Y,X);K.push(X-Y)}function JH(J){var K=J.stack,Y=K.pop(),X=K.pop();if(pV.DEBUG)console.log(J.step,"DIV[]",Y,X);K.push(X*64/Y)}function KH(J){var K=J.stack,Y=K.pop(),X=K.pop();if(pV.DEBUG)console.log(J.step,"MUL[]",Y,X);K.push(X*Y/64)}function YH(J){var K=J.stack,Y=K.pop();if(pV.DEBUG)console.log(J.step,"ABS[]",Y);K.push(Math.abs(Y))}function XH(J){var K=J.stack,Y=K.pop();if(pV.DEBUG)console.log(J.step,"NEG[]",Y);K.push(-Y)}function ZH(J){var K=J.stack,Y=K.pop();if(pV.DEBUG)console.log(J.step,"FLOOR[]",Y);K.push(Math.floor(Y/64)*64)}function QH(J){var K=J.stack,Y=K.pop();if(pV.DEBUG)console.log(J.step,"CEILING[]",Y);K.push(Math.ceil(Y/64)*64)}function V5(J,K){var Y=K.stack,X=Y.pop();if(pV.DEBUG)console.log(K.step,"ROUND[]");Y.push(K.round(X/64)*64)}function HH(J){var K=J.stack,Y=K.pop(),X=K.pop();if(pV.DEBUG)console.log(J.step,"WCVTF[]",Y,X);J.cvt[X]=Y*J.ppem/J.font.unitsPerEm}function r6(J,K){var Y=K.stack,X=Y.pop(),Z=K.ppem,Q=K.deltaBase+(J-1)*16,H=K.deltaShift;if(pV.DEBUG)console.log(K.step,"DELTAC["+J+"]",X,Y);for(var w=0;w<X;w++){var W=Y.pop(),z=Y.pop(),U=Q+((z&240)>>4);if(U!==Z)continue;var $=(z&15)-8;if($>=0)$++;var V=$*H;if(pV.DEBUG)console.log(K.step,"DELTACFIX",W,"by",V);K.cvt[W]+=V}}function WH(J){var K=J.stack.pop();if(pV.DEBUG)console.log(J.step,"SROUND[]",K);J.round=jJ;var Y;switch(K&192){case 0:Y=0.5;break;case 64:Y=1;break;case 128:Y=2;break;default:throw Error("invalid SROUND value")}switch(J.srPeriod=Y,K&48){case 0:J.srPhase=0;break;case 16:J.srPhase=0.25*Y;break;case 32:J.srPhase=0.5*Y;break;case 48:J.srPhase=0.75*Y;break;default:throw Error("invalid SROUND value")}if(K&=15,K===0)J.srThreshold=0;else J.srThreshold=(K/8-0.5)*Y}function wH(J){var K=J.stack.pop();if(pV.DEBUG)console.log(J.step,"S45ROUND[]",K);J.round=jJ;var Y;switch(K&192){case 0:Y=Math.sqrt(2)/2;break;case 64:Y=Math.sqrt(2);break;case 128:Y=2*Math.sqrt(2);break;default:throw Error("invalid S45ROUND value")}switch(J.srPeriod=Y,K&48){case 0:J.srPhase=0;break;case 16:J.srPhase=0.25*Y;break;case 32:J.srPhase=0.5*Y;break;case 48:J.srPhase=0.75*Y;break;default:throw Error("invalid S45ROUND value")}if(K&=15,K===0)J.srThreshold=0;else J.srThreshold=(K/8-0.5)*Y}function zH(J){if(pV.DEBUG)console.log(J.step,"ROFF[]");J.round=uQ}function UH(J){if(pV.DEBUG)console.log(J.step,"RUTG[]");J.round=oQ}function $H(J){if(pV.DEBUG)console.log(J.step,"RDTG[]");J.round=rQ}function VH(J){var K=J.stack.pop();if(pV.DEBUG)console.log(J.step,"SCANCTRL[]",K)}function r7(J,K){var Y=K.stack,X=Y.pop(),Z=Y.pop(),Q=K.z2[X],H=K.z1[Z];if(pV.DEBUG)console.log(K.step,"SDPVTL["+J+"]",X,Z);var w,W;if(!J)w=H.x-Q.x,W=H.y-Q.y;else w=Q.y-H.y,W=H.x-Q.x;K.dpv=k8(w,W)}function BH(J){var K=J.stack,Y=K.pop(),X=0;if(pV.DEBUG)console.log(J.step,"GETINFO[]",Y);if(Y&1)X=35;if(Y&32)X|=4096;K.push(X)}function AH(J){var K=J.stack,Y=K.pop(),X=K.pop(),Z=K.pop();if(pV.DEBUG)console.log(J.step,"ROLL[]");K.push(X),K.push(Y),K.push(Z)}function GH(J){var K=J.stack,Y=K.pop(),X=K.pop();if(pV.DEBUG)console.log(J.step,"MAX[]",Y,X);K.push(Math.max(X,Y))}function MH(J){var K=J.stack,Y=K.pop(),X=K.pop();if(pV.DEBUG)console.log(J.step,"MIN[]",Y,X);K.push(Math.min(X,Y))}function qH(J){var K=J.stack.pop();if(pV.DEBUG)console.log(J.step,"SCANTYPE[]",K)}function OH(J){var K=J.stack.pop(),Y=J.stack.pop();if(pV.DEBUG)console.log(J.step,"INSTCTRL[]",K,Y);switch(K){case 1:J.inhibitGridFit=!!Y;return;case 2:J.ignoreCvt=!!Y;return;default:throw Error("invalid INSTCTRL[] selector")}}function b1(J,K){var{stack:Y,prog:X,ip:Z}=K;if(pV.DEBUG)console.log(K.step,"PUSHB["+J+"]");for(var Q=0;Q<J;Q++)Y.push(X[++Z]);K.ip=Z}function h1(J,K){var{ip:Y,prog:X,stack:Z}=K;if(pV.DEBUG)console.log(K.ip,"PUSHW["+J+"]");for(var Q=0;Q<J;Q++){var H=X[++Y]<<8|X[++Y];if(H&32768)H=-((H^65535)+1);Z.push(H)}K.ip=Y}function r(J,K,Y,X,Z,Q){var H=Q.stack,w=J&&H.pop(),W=H.pop(),z=Q.rp0,U=Q.z0[z],$=Q.z1[W],V=Q.minDis,B=Q.fv,q=Q.dpv,G,M,N,j;if(M=G=q.distance($,U,!0,!0),N=M>=0?1:-1,M=Math.abs(M),J){if(j=Q.cvt[w],X&&Math.abs(M-j)<Q.cvCutIn)M=j}if(Y&&M<V)M=V;if(X)M=Q.round(M);if(B.setRelative($,U,N*M,q),B.touch($),pV.DEBUG)console.log(Q.step,(J?"MIRP[":"MDRP[")+(K?"M":"m")+(Y?">":"_")+(X?"R":"_")+(Z===0?"Gr":Z===1?"Bl":Z===2?"Wh":"")+"]",J?w+"("+Q.cvt[w]+","+j+")":"",W,"(d =",G,"->",N*M,")");if(Q.rp1=Q.rp0,Q.rp2=W,K)Q.rp0=W}MJ=[k7.bind(void 0,D1),k7.bind(void 0,L1),g7.bind(void 0,D1),g7.bind(void 0,L1),x7.bind(void 0,D1),x7.bind(void 0,L1),b7.bind(void 0,0),b7.bind(void 0,1),h7.bind(void 0,0),h7.bind(void 0,1),sQ,aQ,tQ,eQ,J2,K2,Y2,X2,Z2,Q2,H2,W2,w2,z2,U2,$2,V2,B2,A2,G2,void 0,void 0,M2,i6,q2,O2,N2,F2,E2,void 0,void 0,void 0,j2,L2,_2,void 0,m7.bind(void 0,0),m7.bind(void 0,1),f7.bind(void 0,D1),f7.bind(void 0,L1),d7.bind(void 0,0),d7.bind(void 0,1),l7.bind(void 0,0),l7.bind(void 0,1),c7.bind(void 0,0),c7.bind(void 0,1),R2,D2,u7.bind(void 0,0),u7.bind(void 0,1),I2,T2,p7.bind(void 0,0),p7.bind(void 0,1),C2,P2,S2,v2,y2,k2,i7.bind(void 0,0),i7.bind(void 0,1),void 0,o7.bind(void 0,0),o7.bind(void 0,1),g2,void 0,x2,void 0,void 0,b2,h2,m2,f2,d2,l2,c2,u2,p2,i2,o2,r2,n2,o6.bind(void 0,1),s2,a2,t2,e2,JH,KH,YH,XH,ZH,QH,V5.bind(void 0,0),V5.bind(void 0,1),V5.bind(void 0,2),V5.bind(void 0,3),void 0,void 0,void 0,void 0,HH,o6.bind(void 0,2),o6.bind(void 0,3),r6.bind(void 0,1),r6.bind(void 0,2),r6.bind(void 0,3),WH,wH,void 0,void 0,zH,void 0,UH,$H,i6,i6,void 0,void 0,void 0,void 0,void 0,VH,r7.bind(void 0,0),r7.bind(void 0,1),BH,void 0,AH,GH,MH,qH,OH,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,b1.bind(void 0,1),b1.bind(void 0,2),b1.bind(void 0,3),b1.bind(void 0,4),b1.bind(void 0,5),b1.bind(void 0,6),b1.bind(void 0,7),b1.bind(void 0,8),h1.bind(void 0,1),h1.bind(void 0,2),h1.bind(void 0,3),h1.bind(void 0,4),h1.bind(void 0,5),h1.bind(void 0,6),h1.bind(void 0,7),h1.bind(void 0,8),r.bind(void 0,0,0,0,0,0),r.bind(void 0,0,0,0,0,1),r.bind(void 0,0,0,0,0,2),r.bind(void 0,0,0,0,0,3),r.bind(void 0,0,0,0,1,0),r.bind(void 0,0,0,0,1,1),r.bind(void 0,0,0,0,1,2),r.bind(void 0,0,0,0,1,3),r.bind(void 0,0,0,1,0,0),r.bind(void 0,0,0,1,0,1),r.bind(void 0,0,0,1,0,2),r.bind(void 0,0,0,1,0,3),r.bind(void 0,0,0,1,1,0),r.bind(void 0,0,0,1,1,1),r.bind(void 0,0,0,1,1,2),r.bind(void 0,0,0,1,1,3),r.bind(void 0,0,1,0,0,0),r.bind(void 0,0,1,0,0,1),r.bind(void 0,0,1,0,0,2),r.bind(void 0,0,1,0,0,3),r.bind(void 0,0,1,0,1,0),r.bind(void 0,0,1,0,1,1),r.bind(void 0,0,1,0,1,2),r.bind(void 0,0,1,0,1,3),r.bind(void 0,0,1,1,0,0),r.bind(void 0,0,1,1,0,1),r.bind(void 0,0,1,1,0,2),r.bind(void 0,0,1,1,0,3),r.bind(void 0,0,1,1,1,0),r.bind(void 0,0,1,1,1,1),r.bind(void 0,0,1,1,1,2),r.bind(void 0,0,1,1,1,3),r.bind(void 0,1,0,0,0,0),r.bind(void 0,1,0,0,0,1),r.bind(void 0,1,0,0,0,2),r.bind(void 0,1,0,0,0,3),r.bind(void 0,1,0,0,1,0),r.bind(void 0,1,0,0,1,1),r.bind(void 0,1,0,0,1,2),r.bind(void 0,1,0,0,1,3),r.bind(void 0,1,0,1,0,0),r.bind(void 0,1,0,1,0,1),r.bind(void 0,1,0,1,0,2),r.bind(void 0,1,0,1,0,3),r.bind(void 0,1,0,1,1,0),r.bind(void 0,1,0,1,1,1),r.bind(void 0,1,0,1,1,2),r.bind(void 0,1,0,1,1,3),r.bind(void 0,1,1,0,0,0),r.bind(void 0,1,1,0,0,1),r.bind(void 0,1,1,0,0,2),r.bind(void 0,1,1,0,0,3),r.bind(void 0,1,1,0,1,0),r.bind(void 0,1,1,0,1,1),r.bind(void 0,1,1,0,1,2),r.bind(void 0,1,1,0,1,3),r.bind(void 0,1,1,1,0,0),r.bind(void 0,1,1,1,0,1),r.bind(void 0,1,1,1,0,2),r.bind(void 0,1,1,1,0,3),r.bind(void 0,1,1,1,1,0),r.bind(void 0,1,1,1,1,1),r.bind(void 0,1,1,1,1,2),r.bind(void 0,1,1,1,1,3)];function M8(J){this.char=J,this.state={},this.activeState=null}function X4(J,K,Y){this.contextName=Y,this.startIndex=J,this.endOffset=K}function NH(J,K,Y){this.contextName=J,this.openRange=null,this.ranges=[],this.checkStart=K,this.checkEnd=Y}function w1(J,K){this.context=J,this.index=K,this.length=J.length,this.current=J[K],this.backtrack=J.slice(0,K),this.lookahead=J.slice(K+1)}function q5(J){this.eventId=J,this.subscribers=[]}function jH(J){var K=this,Y=["start","end","next","newToken","contextStart","contextEnd","insertToken","removeToken","removeRange","replaceToken","replaceRange","composeRUD","updateContextsRanges"];if(Y.forEach(function(Z){Object.defineProperty(K.events,Z,{value:new q5(Z)})}),J)Y.forEach(function(Z){var Q=J[Z];if(typeof Q==="function")K.events[Z].subscribe(Q)});var X=["insertToken","removeToken","removeRange","replaceToken","replaceRange","composeRUD"];X.forEach(function(Z){K.events[Z].subscribe(K.updateContextsRanges)})}function F0(J){this.tokens=[],this.registeredContexts={},this.contextCheckers=[],this.events={},this.registeredModifiers=[],jH.call(this,J)}M8.prototype.setState=function(J,K){return this.state[J]=K,this.activeState={key:J,value:this.state[J]},this.activeState};M8.prototype.getState=function(J){return this.state[J]||null};F0.prototype.inboundIndex=function(J){return J>=0&&J<this.tokens.length};F0.prototype.composeRUD=function(J){var K=this,Y=!0,X=J.map(function(Q){return K[Q[0]].apply(K,Q.slice(1).concat(Y))}),Z=function(Q){return typeof Q==="object"&&Q.hasOwnProperty("FAIL")};if(X.every(Z))return{FAIL:"composeRUD: one or more operations hasn't completed successfully",report:X.filter(Z)};this.dispatch("composeRUD",[X.filter(function(Q){return!Z(Q)})])};F0.prototype.replaceRange=function(J,K,Y,X){K=K!==null?K:this.tokens.length;var Z=Y.every(function(H){return H instanceof M8});if(!isNaN(J)&&this.inboundIndex(J)&&Z){var Q=this.tokens.splice.apply(this.tokens,[J,K].concat(Y));if(!X)this.dispatch("replaceToken",[J,K,Y]);return[Q,Y]}else return{FAIL:"replaceRange: invalid tokens or startIndex."}};F0.prototype.replaceToken=function(J,K,Y){if(!isNaN(J)&&this.inboundIndex(J)&&K instanceof M8){var X=this.tokens.splice(J,1,K);if(!Y)this.dispatch("replaceToken",[J,K]);return[X[0],K]}else return{FAIL:"replaceToken: invalid token or index."}};F0.prototype.removeRange=function(J,K,Y){K=!isNaN(K)?K:this.tokens.length;var X=this.tokens.splice(J,K);if(!Y)this.dispatch("removeRange",[X,J,K]);return X};F0.prototype.removeToken=function(J,K){if(!isNaN(J)&&this.inboundIndex(J)){var Y=this.tokens.splice(J,1);if(!K)this.dispatch("removeToken",[Y,J]);return Y}else return{FAIL:"removeToken: invalid token index."}};F0.prototype.insertToken=function(J,K,Y){var X=J.every(function(Z){return Z instanceof M8});if(X){if(this.tokens.splice.apply(this.tokens,[K,0].concat(J)),!Y)this.dispatch("insertToken",[J,K]);return J}else return{FAIL:"insertToken: invalid token(s)."}};F0.prototype.registerModifier=function(J,K,Y){this.events.newToken.subscribe(function(X,Z){var Q=[X,Z],H=K===null||K.apply(this,Q)===!0,w=[X,Z];if(H){var W=Y.apply(this,w);X.setState(J,W)}}),this.registeredModifiers.push(J)};q5.prototype.subscribe=function(J){if(typeof J==="function")return this.subscribers.push(J)-1;else return{FAIL:"invalid '"+this.eventId+"' event handler"}};q5.prototype.unsubscribe=function(J){this.subscribers.splice(J,1)};w1.prototype.setCurrentIndex=function(J){this.index=J,this.current=this.context[J],this.backtrack=this.context.slice(0,J),this.lookahead=this.context.slice(J+1)};w1.prototype.get=function(J){switch(!0){case J===0:return this.current;case(J<0&&Math.abs(J)<=this.backtrack.length):return this.backtrack.slice(J)[0];case(J>0&&J<=this.lookahead.length):return this.lookahead[J-1];default:return null}};F0.prototype.rangeToText=function(J){if(J instanceof X4)return this.getRangeTokens(J).map(function(K){return K.char}).join("")};F0.prototype.getText=function(){return this.tokens.map(function(J){return J.char}).join("")};F0.prototype.getContext=function(J){var K=this.registeredContexts[J];return K?K:null};F0.prototype.on=function(J,K){var Y=this.events[J];if(Y)return Y.subscribe(K);else return null};F0.prototype.dispatch=function(J,K){var Y=this,X=this.events[J];if(X instanceof q5)X.subscribers.forEach(function(Z){Z.apply(Y,K||[])})};F0.prototype.registerContextChecker=function(J,K,Y){if(this.getContext(J))return{FAIL:"context name '"+J+"' is already registered."};if(typeof K!=="function")return{FAIL:"missing context start check."};if(typeof Y!=="function")return{FAIL:"missing context end check."};var X=new NH(J,K,Y);return this.registeredContexts[J]=X,this.contextCheckers.push(X),X};F0.prototype.getRangeTokens=function(J){var K=J.startIndex+J.endOffset;return[].concat(this.tokens.slice(J.startIndex,K))};F0.prototype.getContextRanges=function(J){var K=this.getContext(J);if(K)return K.ranges;else return{FAIL:"context checker '"+J+"' is not registered."}};F0.prototype.resetContextsRanges=function(){var J=this.registeredContexts;for(var K in J)if(J.hasOwnProperty(K)){var Y=J[K];Y.ranges=[]}};F0.prototype.updateContextsRanges=function(){this.resetContextsRanges();var J=this.tokens.map(function(X){return X.char});for(var K=0;K<J.length;K++){var Y=new w1(J,K);this.runContextCheck(Y)}this.dispatch("updateContextsRanges",[this.registeredContexts])};F0.prototype.setEndOffset=function(J,K){var Y=this.getContext(K).openRange.startIndex,X=new X4(Y,J,K),Z=this.getContext(K).ranges;return X.rangeId=K+"."+Z.length,Z.push(X),this.getContext(K).openRange=null,X};F0.prototype.runContextCheck=function(J){var K=this,Y=J.index;this.contextCheckers.forEach(function(X){var Z=X.contextName,Q=K.getContext(Z).openRange;if(!Q&&X.checkStart(J))Q=new X4(Y,null,Z),K.getContext(Z).openRange=Q,K.dispatch("contextStart",[Z,Y]);if(!!Q&&X.checkEnd(J)){var H=Y-Q.startIndex+1,w=K.setEndOffset(H,Z);K.dispatch("contextEnd",[Z,w])}})};F0.prototype.tokenize=function(J){this.tokens=[],this.resetContextsRanges();var K=Array.from(J);this.dispatch("start");for(var Y=0;Y<K.length;Y++){var X=K[Y],Z=new w1(K,Y);this.dispatch("next",[Z]),this.runContextCheck(Z);var Q=new M8(X);this.tokens.push(Q),this.dispatch("newToken",[Q,Z])}return this.dispatch("end",[this.tokens]),this.tokens};function l1(J){return/[\u0600-\u065F\u066A-\u06D2\u06FA-\u06FF]/.test(J)}function FJ(J){return/[\u0630\u0690\u0621\u0631\u0661\u0671\u0622\u0632\u0672\u0692\u06C2\u0623\u0673\u0693\u06C3\u0624\u0694\u06C4\u0625\u0675\u0695\u06C5\u06E5\u0676\u0696\u06C6\u0627\u0677\u0697\u06C7\u0648\u0688\u0698\u06C8\u0689\u0699\u06C9\u068A\u06CA\u066B\u068B\u06CB\u068C\u068D\u06CD\u06FD\u068E\u06EE\u06FE\u062F\u068F\u06CF\u06EF]/.test(J)}function c1(J){return/[\u0600-\u0605\u060C-\u060E\u0610-\u061B\u061E\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED]/.test(J)}function B5(J){return/[A-z]/.test(J)}function LH(J){return/\s/.test(J)}function r0(J){this.font=J,this.features={}}function t1(J){this.id=J.id,this.tag=J.tag,this.substitution=J.substitution}function g8(J,K){if(!J)return-1;switch(K.format){case 1:return K.glyphs.indexOf(J);case 2:var Y=K.ranges;for(var X=0;X<Y.length;X++){var Z=Y[X];if(J>=Z.start&&J<=Z.end){var Q=J-Z.start;return Z.index+Q}}break;default:return-1}return-1}function FH(J,K){var Y=g8(J,K.coverage);if(Y===-1)return null;return J+K.deltaGlyphId}function EH(J,K){var Y=g8(J,K.coverage);if(Y===-1)return null;return K.substitute[Y]}function n6(J,K){var Y=[];for(var X=0;X<J.length;X++){var Z=J[X],Q=K.current;Q=Array.isArray(Q)?Q[0]:Q;var H=g8(Q,Z);if(H!==-1)Y.push(H)}if(Y.length!==J.length)return-1;return Y}function _H(J,K){var Y=K.inputCoverage.length+K.lookaheadCoverage.length+K.backtrackCoverage.length;if(J.context.length<Y)return[];var X=n6(K.inputCoverage,J);if(X===-1)return[];var Z=K.inputCoverage.length-1;if(J.lookahead.length<K.lookaheadCoverage.length)return[];var Q=J.lookahead.slice(Z);while(Q.length&&c1(Q[0].char))Q.shift();var H=new w1(Q,0),w=n6(K.lookaheadCoverage,H),W=[].concat(J.backtrack);W.reverse();while(W.length&&c1(W[0].char))W.shift();if(W.length<K.backtrackCoverage.length)return[];var z=new w1(W,0),U=n6(K.backtrackCoverage,z),$=X.length===K.inputCoverage.length&&w.length===K.lookaheadCoverage.length&&U.length===K.backtrackCoverage.length,V=[];if($)for(var B=0;B<K.lookupRecords.length;B++){var q=K.lookupRecords[B],G=q.lookupListIndex,M=this.getLookupByIndex(G);for(var N=0;N<M.subtables.length;N++){var j=M.subtables[N],_=this.getLookupMethod(M,j),R=this.getSubstitutionType(M,j);if(R==="12")for(var E=0;E<X.length;E++){var L=J.get(E),T=_(L);if(T)V.push(T)}}}return V}function RH(J,K){var Y=J.current,X=g8(Y,K.coverage);if(X===-1)return null;var Z,Q=K.ligatureSets[X];for(var H=0;H<Q.length;H++){Z=Q[H];for(var w=0;w<Z.components.length;w++){var W=J.lookahead[w],z=Z.components[w];if(W!==z)break;if(w===Z.components.length-1)return Z}}return null}function DH(J,K){var Y=g8(J,K.coverage);if(Y===-1)return null;return K.sequences[Y]}r0.prototype.getDefaultScriptFeaturesIndexes=function(){var J=this.font.tables.gsub.scripts;for(var K=0;K<J.length;K++){var Y=J[K];if(Y.tag==="DFLT")return Y.script.defaultLangSys.featureIndexes}return[]};r0.prototype.getScriptFeaturesIndexes=function(J){var K=this.font.tables;if(!K.gsub)return[];if(!J)return this.getDefaultScriptFeaturesIndexes();var Y=this.font.tables.gsub.scripts;for(var X=0;X<Y.length;X++){var Z=Y[X];if(Z.tag===J&&Z.script.defaultLangSys)return Z.script.defaultLangSys.featureIndexes;else{var Q=Z.langSysRecords;if(Q)for(var H=0;H<Q.length;H++){var w=Q[H];if(w.tag===J){var W=w.langSys;return W.featureIndexes}}}}return this.getDefaultScriptFeaturesIndexes()};r0.prototype.mapTagsToFeatures=function(J,K){var Y={};for(var X=0;X<J.length;X++){var Z=J[X].tag,Q=J[X].feature;Y[Z]=Q}this.features[K].tags=Y};r0.prototype.getScriptFeatures=function(J){var K=this.features[J];if(this.features.hasOwnProperty(J))return K;var Y=this.getScriptFeaturesIndexes(J);if(!Y)return null;var X=this.font.tables.gsub;return K=Y.map(function(Z){return X.features[Z]}),this.features[J]=K,this.mapTagsToFeatures(K,J),K};r0.prototype.getSubstitutionType=function(J,K){var Y=J.lookupType.toString(),X=K.substFormat.toString();return Y+X};r0.prototype.getLookupMethod=function(J,K){var Y=this,X=this.getSubstitutionType(J,K);switch(X){case"11":return function(Z){return FH.apply(Y,[Z,K])};case"12":return function(Z){return EH.apply(Y,[Z,K])};case"63":return function(Z){return _H.apply(Y,[Z,K])};case"41":return function(Z){return RH.apply(Y,[Z,K])};case"21":return function(Z){return DH.apply(Y,[Z,K])};default:throw Error("lookupType: "+J.lookupType+" - substFormat: "+K.substFormat+" is not yet supported")}};r0.prototype.lookupFeature=function(J){var K=J.contextParams,Y=K.index,X=this.getFeature({tag:J.tag,script:J.script});if(!X)return Error("font '"+this.font.names.fullName.en+"' doesn't support feature '"+J.tag+"' for script '"+J.script+"'.");var Z=this.getFeatureLookups(X),Q=[].concat(K.context);for(var H=0;H<Z.length;H++){var w=Z[H],W=this.getLookupSubtables(w);for(var z=0;z<W.length;z++){var U=W[z],$=this.getSubstitutionType(w,U),V=this.getLookupMethod(w,U),B=void 0;switch($){case"11":if(B=V(K.current),B)Q.splice(Y,1,new t1({id:11,tag:J.tag,substitution:B}));break;case"12":if(B=V(K.current),B)Q.splice(Y,1,new t1({id:12,tag:J.tag,substitution:B}));break;case"63":if(B=V(K),Array.isArray(B)&&B.length)Q.splice(Y,1,new t1({id:63,tag:J.tag,substitution:B}));break;case"41":if(B=V(K),B)Q.splice(Y,1,new t1({id:41,tag:J.tag,substitution:B}));break;case"21":if(B=V(K.current),B)Q.splice(Y,1,new t1({id:21,tag:J.tag,substitution:B}));break}if(K=new w1(Q,Y),Array.isArray(B)&&!B.length)continue;B=null}}return Q.length?Q:null};r0.prototype.supports=function(J){if(!J.script)return!1;this.getScriptFeatures(J.script);var K=this.features.hasOwnProperty(J.script);if(!J.tag)return K;var Y=this.features[J.script].some(function(X){return X.tag===J.tag});return K&&Y};r0.prototype.getLookupSubtables=function(J){return J.subtables||null};r0.prototype.getLookupByIndex=function(J){var K=this.font.tables.gsub.lookups;return K[J]||null};r0.prototype.getFeatureLookups=function(J){return J.lookupListIndexes.map(this.getLookupByIndex.bind(this))};r0.prototype.getFeature=function(K){if(!this.font)return{FAIL:"No font was found"};if(!this.features.hasOwnProperty(K.script))this.getScriptFeatures(K.script);var Y=this.features[K.script];if(!Y)return{FAIL:"No feature for script "+K.script};if(!Y.tags[K.tag])return null;return this.features[K.script].tags[K.tag]};function IH(J){var K=J.current,Y=J.get(-1);return Y===null&&l1(K)||!l1(Y)&&l1(K)}function TH(J){var K=J.get(1);return K===null||!l1(K)}var CH={startCheck:IH,endCheck:TH};function PH(J){var K=J.current,Y=J.get(-1);return(l1(K)||c1(K))&&!l1(Y)}function SH(J){var K=J.get(1);switch(!0){case K===null:return!0;case(!l1(K)&&!c1(K)):var Y=LH(K);if(!Y)return!0;if(Y){var X=!1;if(X=J.lookahead.some(function(Z){return l1(Z)||c1(Z)}),!X)return!0}break;default:return!1}}var vH={startCheck:PH,endCheck:SH};function yH(J,K,Y){K[Y].setState(J.tag,J.substitution)}function kH(J,K,Y){K[Y].setState(J.tag,J.substitution)}function gH(J,K,Y){J.substitution.forEach(function(X,Z){var Q=K[Y+Z];Q.setState(J.tag,X)})}function xH(J,K,Y){var X=K[Y];X.setState(J.tag,J.substitution.ligGlyph);var Z=J.substitution.components.length;for(var Q=0;Q<Z;Q++)X=K[Y+Q+1],X.setState("deleted",!0)}var n7={11:yH,12:kH,63:gH,41:xH};function Z4(J,K,Y){if(J instanceof t1&&n7[J.id])n7[J.id](J,K,Y)}function bH(J){var K=[].concat(J.backtrack);for(var Y=K.length-1;Y>=0;Y--){var X=K[Y],Z=FJ(X),Q=c1(X);if(!Z&&!Q)return!0;if(Z)return!1}return!1}function hH(J){if(FJ(J.current))return!1;for(var K=0;K<J.lookahead.length;K++){var Y=J.lookahead[K],X=c1(Y);if(!X)return!0}return!1}function mH(J){var K=this,Y="arab",X=this.featuresTags[Y],Z=this.tokenizer.getRangeTokens(J);if(Z.length===1)return;var Q=new w1(Z.map(function(w){return w.getState("glyphIndex")}),0),H=new w1(Z.map(function(w){return w.char}),0);Z.forEach(function(w,W){if(c1(w.char))return;Q.setCurrentIndex(W),H.setCurrentIndex(W);var z=0;if(bH(H))z|=1;if(hH(H))z|=2;var U;switch(z){case 1:U="fina";break;case 2:U="init";break;case 3:U="medi";break}if(X.indexOf(U)===-1)return;var $=K.query.lookupFeature({tag:U,script:Y,contextParams:Q});if($ instanceof Error)return console.info($.message);$.forEach(function(V,B){if(V instanceof t1)Z4(V,Z,B),Q.context[B]=V.substitution})})}function s7(J,K){var Y=J.map(function(X){return X.activeState.value});return new w1(Y,K||0)}function fH(J){var K=this,Y="arab",X=this.tokenizer.getRangeTokens(J),Z=s7(X);Z.context.forEach(function(Q,H){Z.setCurrentIndex(H);var w=K.query.lookupFeature({tag:"rlig",script:Y,contextParams:Z});if(w.length)w.forEach(function(W){return Z4(W,X,H)}),Z=s7(X)})}function dH(J){var K=J.current,Y=J.get(-1);return Y===null&&B5(K)||!B5(Y)&&B5(K)}function lH(J){var K=J.get(1);return K===null||!B5(K)}var cH={startCheck:dH,endCheck:lH};function a7(J,K){var Y=J.map(function(X){return X.activeState.value});return new w1(Y,K||0)}function uH(J){var K=this,Y="latn",X=this.tokenizer.getRangeTokens(J),Z=a7(X);Z.context.forEach(function(Q,H){Z.setCurrentIndex(H);var w=K.query.lookupFeature({tag:"liga",script:Y,contextParams:Z});if(w.length)w.forEach(function(W){return Z4(W,X,H)}),Z=a7(X)})}function $1(J){this.baseDir=J||"ltr",this.tokenizer=new F0,this.featuresTags={}}$1.prototype.setText=function(J){this.text=J};$1.prototype.contextChecks={latinWordCheck:cH,arabicWordCheck:CH,arabicSentenceCheck:vH};function s6(J){var K=this.contextChecks[J+"Check"];return this.tokenizer.registerContextChecker(J,K.startCheck,K.endCheck)}function pH(){return s6.call(this,"latinWord"),s6.call(this,"arabicWord"),s6.call(this,"arabicSentence"),this.tokenizer.tokenize(this.text)}function iH(){var J=this,K=this.tokenizer.getContextRanges("arabicSentence");K.forEach(function(Y){var X=J.tokenizer.getRangeTokens(Y);J.tokenizer.replaceRange(Y.startIndex,Y.endOffset,X.reverse())})}$1.prototype.registerFeatures=function(J,K){var Y=this,X=K.filter(function(Z){return Y.query.supports({script:J,tag:Z})});if(!this.featuresTags.hasOwnProperty(J))this.featuresTags[J]=X;else this.featuresTags[J]=this.featuresTags[J].concat(X)};$1.prototype.applyFeatures=function(J,K){if(!J)throw Error("No valid font was provided to apply features");if(!this.query)this.query=new r0(J);for(var Y=0;Y<K.length;Y++){var X=K[Y];if(!this.query.supports({script:X.script}))continue;this.registerFeatures(X.script,X.tags)}};$1.prototype.registerModifier=function(J,K,Y){this.tokenizer.registerModifier(J,K,Y)};function Q4(){if(this.tokenizer.registeredModifiers.indexOf("glyphIndex")===-1)throw Error("glyphIndex modifier is required to apply arabic presentation features.")}function oH(){var J=this,K="arab";if(!this.featuresTags.hasOwnProperty(K))return;Q4.call(this);var Y=this.tokenizer.getContextRanges("arabicWord");Y.forEach(function(X){mH.call(J,X)})}function rH(){var J=this,K="arab";if(!this.featuresTags.hasOwnProperty(K))return;var Y=this.featuresTags[K];if(Y.indexOf("rlig")===-1)return;Q4.call(this);var X=this.tokenizer.getContextRanges("arabicWord");X.forEach(function(Z){fH.call(J,Z)})}function nH(){var J=this,K="latn";if(!this.featuresTags.hasOwnProperty(K))return;var Y=this.featuresTags[K];if(Y.indexOf("liga")===-1)return;Q4.call(this);var X=this.tokenizer.getContextRanges("latinWord");X.forEach(function(Z){uH.call(J,Z)})}$1.prototype.checkContextReady=function(J){return!!this.tokenizer.getContext(J)};$1.prototype.applyFeaturesToContexts=function(){if(this.checkContextReady("arabicWord"))oH.call(this),rH.call(this);if(this.checkContextReady("latinWord"))nH.call(this);if(this.checkContextReady("arabicSentence"))iH.call(this)};$1.prototype.processText=function(J){if(!this.text||this.text!==J)this.setText(J),pH.call(this),this.applyFeaturesToContexts()};$1.prototype.getBidiText=function(J){return this.processText(J),this.tokenizer.getText()};$1.prototype.getTextGlyphs=function(J){this.processText(J);var K=[];for(var Y=0;Y<this.tokenizer.tokens.length;Y++){var X=this.tokenizer.tokens[Y];if(X.state.deleted)continue;var Z=X.activeState.value;K.push(Array.isArray(Z)?Z[0]:Z)}return K};function m0(J){if(J=J||{},J.tables=J.tables||{},!J.empty)D8(J.familyName,"When creating a new Font object, familyName is required."),D8(J.styleName,"When creating a new Font object, styleName is required."),D8(J.unitsPerEm,"When creating a new Font object, unitsPerEm is required."),D8(J.ascender,"When creating a new Font object, ascender is required."),D8(J.descender<=0,"When creating a new Font object, negative descender value is required."),this.unitsPerEm=J.unitsPerEm||1000,this.ascender=J.ascender,this.descender=J.descender,this.createdTimestamp=J.createdTimestamp,this.tables=Object.assign(J.tables,{os2:Object.assign({usWeightClass:J.weightClass||this.usWeightClasses.MEDIUM,usWidthClass:J.widthClass||this.usWidthClasses.MEDIUM,fsSelection:J.fsSelection||this.fsSelectionValues.REGULAR},J.tables.os2)});this.supported=!0,this.glyphs=new F1.GlyphSet(this,J.glyphs||[]),this.encoding=new wJ(this),this.position=new v8(this),this.substitution=new o0(this),this.tables=this.tables||{},this._push=null,this._hmtxTableData={},Object.defineProperty(this,"hinting",{get:function(){if(this._hinting)return this._hinting;if(this.outlinesFormat==="truetype")return this._hinting=new OJ(this)}})}m0.prototype.hasChar=function(J){return this.encoding.charToGlyphIndex(J)!==null};m0.prototype.charToGlyphIndex=function(J){return this.encoding.charToGlyphIndex(J)};m0.prototype.charToGlyph=function(J){var K=this.charToGlyphIndex(J),Y=this.glyphs.get(K);if(!Y)Y=this.glyphs.get(0);return Y};m0.prototype.updateFeatures=function(J){return this.defaultRenderOptions.features.map(function(K){if(K.script==="latn")return{script:"latn",tags:K.tags.filter(function(Y){return J[Y]})};else return K})};m0.prototype.stringToGlyphs=function(J,K){var Y=this,X=new $1,Z=function($){return Y.charToGlyphIndex($.char)};X.registerModifier("glyphIndex",null,Z);var Q=K?this.updateFeatures(K.features):this.defaultRenderOptions.features;X.applyFeatures(this,Q);var H=X.getTextGlyphs(J),w=H.length,W=Array(w),z=this.glyphs.get(0);for(var U=0;U<w;U+=1)W[U]=this.glyphs.get(H[U])||z;return W};m0.prototype.getKerningValue=function(J,K){J=J.index||J,K=K.index||K;var Y=this.position.defaultKerningTables;if(Y)return this.position.getKerningValue(Y,J,K);return this.kerningPairs[J+","+K]||0};m0.prototype.defaultRenderOptions={kerning:!0,features:[{script:"arab",tags:["init","medi","fina","rlig"]},{script:"latn",tags:["liga","rlig"]}]};m0.prototype.forEachGlyph=function(J,K,Y,X,Z,Q){K=K!==void 0?K:0,Y=Y!==void 0?Y:0,X=X!==void 0?X:72,Z=Object.assign({},this.defaultRenderOptions,Z);var H=1/this.unitsPerEm*X,w=this.stringToGlyphs(J,Z),W;if(Z.kerning){var z=Z.script||this.position.getDefaultScriptName();W=this.position.getKerningTables(z,Z.language)}for(var U=0;U<w.length;U+=1){var $=w[U];if(Q.call(this,$,K,Y,X,Z),$.advanceWidth)K+=$.advanceWidth*H;if(Z.kerning&&U<w.length-1){var V=W?this.position.getKerningValue(W,$.index,w[U+1].index):this.getKerningValue($,w[U+1]);K+=V*H}if(Z.letterSpacing)K+=Z.letterSpacing*X;else if(Z.tracking)K+=Z.tracking/1000*X}return K};m0.prototype.getPath=function(J,K,Y,X,Z){var Q=new h0;return this.forEachGlyph(J,K,Y,X,Z,function(H,w,W,z){var U=H.getPath(w,W,z,Z,this);Q.extend(U)}),Q};m0.prototype.getPaths=function(J,K,Y,X,Z){var Q=[];return this.forEachGlyph(J,K,Y,X,Z,function(H,w,W,z){var U=H.getPath(w,W,z,Z,this);Q.push(U)}),Q};m0.prototype.getAdvanceWidth=function(J,K,Y){return this.forEachGlyph(J,0,0,K,Y,function(){})};m0.prototype.fsSelectionValues={ITALIC:1,UNDERSCORE:2,NEGATIVE:4,OUTLINED:8,STRIKEOUT:16,BOLD:32,REGULAR:64,USER_TYPO_METRICS:128,WWS:256,OBLIQUE:512};m0.prototype.usWidthClasses={ULTRA_CONDENSED:1,EXTRA_CONDENSED:2,CONDENSED:3,SEMI_CONDENSED:4,MEDIUM:5,SEMI_EXPANDED:6,EXPANDED:7,EXTRA_EXPANDED:8,ULTRA_EXPANDED:9};m0.prototype.usWeightClasses={THIN:100,EXTRA_LIGHT:200,LIGHT:300,NORMAL:400,MEDIUM:500,SEMI_BOLD:600,BOLD:700,EXTRA_BOLD:800,BLACK:900};function sH(J,K){K.parseUShort(),J.length=K.parseULong(),J.language=K.parseULong();var Y;J.groupCount=Y=K.parseULong(),J.glyphIndexMap={};for(var X=0;X<Y;X+=1){var Z=K.parseULong(),Q=K.parseULong(),H=K.parseULong();for(var w=Z;w<=Q;w+=1)J.glyphIndexMap[w]=H,H++}}function aH(J,K,Y,X,Z){J.length=K.parseUShort(),J.language=K.parseUShort();var Q;J.segCount=Q=K.parseUShort()>>1,K.skip("uShort",3),J.glyphIndexMap={};var H=new n.Parser(Y,X+Z+14),w=new n.Parser(Y,X+Z+16+Q*2),W=new n.Parser(Y,X+Z+16+Q*4),z=new n.Parser(Y,X+Z+16+Q*6),U=X+Z+16+Q*8;for(var $=0;$<Q-1;$+=1){var V=void 0,B=H.parseUShort(),q=w.parseUShort(),G=W.parseShort(),M=z.parseUShort();for(var N=q;N<=B;N+=1){if(M!==0){if(U=z.offset+z.relativeOffset-2,U+=M,U+=(N-q)*2,V=n.getUShort(Y,U),V!==0)V=V+G&65535}else V=N+G&65535;J.glyphIndexMap[N]=V}}}function tH(J,K){var Y={};Y.version=n.getUShort(J,K),z0.argument(Y.version===0,"cmap table version should be 0."),Y.numTables=n.getUShort(J,K+2);var X=-1;for(var Z=Y.numTables-1;Z>=0;Z-=1){var Q=n.getUShort(J,K+4+Z*8),H=n.getUShort(J,K+4+Z*8+2);if(Q===3&&(H===0||H===1||H===10)||Q===0&&(H===0||H===1||H===2||H===3||H===4)){X=n.getULong(J,K+4+Z*8+4);break}}if(X===-1)throw Error("No valid cmap sub-tables found.");var w=new n.Parser(J,K+X);if(Y.format=w.parseUShort(),Y.format===12)sH(Y,w);else if(Y.format===4)aH(Y,w,J,K,X);else throw Error("Only format 4 and 12 cmap tables are supported (found format "+Y.format+").");return Y}var eH={parse:tH};function e6(J){var K;if(J.length<1240)K=107;else if(J.length<33900)K=1131;else K=32768;return K}function f1(J,K,Y){var X=[],Z=[],Q=n.getCard16(J,K),H,w;if(Q!==0){var W=n.getByte(J,K+2);H=K+(Q+1)*W+2;var z=K+3;for(var U=0;U<Q+1;U+=1)X.push(n.getOffset(J,z,W)),z+=W;w=H+X[Q]}else w=K+2;for(var $=0;$<X.length-1;$+=1){var V=n.getBytes(J,H+X[$],H+X[$+1]);if(Y)V=Y(V);Z.push(V)}return{objects:Z,startOffset:K,endOffset:w}}function JW(J,K){var Y=[],X=n.getCard16(J,K),Z,Q;if(X!==0){var H=n.getByte(J,K+2);Z=K+(X+1)*H+2;var w=K+3;for(var W=0;W<X+1;W+=1)Y.push(n.getOffset(J,w,H)),w+=H;Q=Z+Y[X]}else Q=K+2;return{offsets:Y,startOffset:K,endOffset:Q}}function KW(J,K,Y,X,Z){var Q=n.getCard16(Y,X),H=0;if(Q!==0){var w=n.getByte(Y,X+2);H=X+(Q+1)*w+2}var W=n.getBytes(Y,H+K[J],H+K[J+1]);if(Z)W=Z(W);return W}function YW(J){var K="",Y=15,X=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"];while(!0){var Z=J.parseByte(),Q=Z>>4,H=Z&15;if(Q===Y)break;if(K+=X[Q],H===Y)break;K+=X[H]}return parseFloat(K)}function XW(J,K){var Y,X,Z,Q;if(K===28)return Y=J.parseByte(),X=J.parseByte(),Y<<8|X;if(K===29)return Y=J.parseByte(),X=J.parseByte(),Z=J.parseByte(),Q=J.parseByte(),Y<<24|X<<16|Z<<8|Q;if(K===30)return YW(J);if(K>=32&&K<=246)return K-139;if(K>=247&&K<=250)return Y=J.parseByte(),(K-247)*256+Y+108;if(K>=251&&K<=254)return Y=J.parseByte(),-(K-251)*256-Y-108;throw Error("Invalid b0 "+K)}function ZW(J){var K={};for(var Y=0;Y<J.length;Y+=1){var X=J[Y][0],Z=J[Y][1],Q=void 0;if(Z.length===1)Q=Z[0];else Q=Z;if(K.hasOwnProperty(X)&&!isNaN(K[X]))throw Error("Object "+K+" already has key "+X);K[X]=Q}return K}function EJ(J,K,Y){K=K!==void 0?K:0;var X=new n.Parser(J,K),Z=[],Q=[];Y=Y!==void 0?Y:J.length;while(X.relativeOffset<Y){var H=X.parseByte();if(H<=21){if(H===12)H=1200+X.parseByte();Z.push([H,Q]),Q=[]}else Q.push(XW(X,H))}return ZW(Z)}function T8(J,K){if(K<=390)K=EQ[K];else K=J[K-391];return K}function _J(J,K,Y){var X={},Z;for(var Q=0;Q<K.length;Q+=1){var H=K[Q];if(Array.isArray(H.type)){var w=[];w.length=H.type.length;for(var W=0;W<H.type.length;W++){if(Z=J[H.op]!==void 0?J[H.op][W]:void 0,Z===void 0)Z=H.value!==void 0&&H.value[W]!==void 0?H.value[W]:null;if(H.type[W]==="SID")Z=T8(Y,Z);w[W]=Z}X[H.name]=w}else{if(Z=J[H.op],Z===void 0)Z=H.value!==void 0?H.value:null;if(H.type==="SID")Z=T8(Y,Z);X[H.name]=Z}}return X}function QW(J,K){var Y={};return Y.formatMajor=n.getCard8(J,K),Y.formatMinor=n.getCard8(J,K+1),Y.size=n.getCard8(J,K+2),Y.offsetSize=n.getCard8(J,K+3),Y.startOffset=K,Y.endOffset=K+4,Y}var HW=[{name:"version",op:0,type:"SID"},{name:"notice",op:1,type:"SID"},{name:"copyright",op:1200,type:"SID"},{name:"fullName",op:2,type:"SID"},{name:"familyName",op:3,type:"SID"},{name:"weight",op:4,type:"SID"},{name:"isFixedPitch",op:1201,type:"number",value:0},{name:"italicAngle",op:1202,type:"number",value:0},{name:"underlinePosition",op:1203,type:"number",value:-100},{name:"underlineThickness",op:1204,type:"number",value:50},{name:"paintType",op:1205,type:"number",value:0},{name:"charstringType",op:1206,type:"number",value:2},{name:"fontMatrix",op:1207,type:["real","real","real","real","real","real"],value:[0.001,0,0,0.001,0,0]},{name:"uniqueId",op:13,type:"number"},{name:"fontBBox",op:5,type:["number","number","number","number"],value:[0,0,0,0]},{name:"strokeWidth",op:1208,type:"number",value:0},{name:"xuid",op:14,type:[],value:null},{name:"charset",op:15,type:"offset",value:0},{name:"encoding",op:16,type:"offset",value:0},{name:"charStrings",op:17,type:"offset",value:0},{name:"private",op:18,type:["number","offset"],value:[0,0]},{name:"ros",op:1230,type:["SID","SID","number"]},{name:"cidFontVersion",op:1231,type:"number",value:0},{name:"cidFontRevision",op:1232,type:"number",value:0},{name:"cidFontType",op:1233,type:"number",value:0},{name:"cidCount",op:1234,type:"number",value:8720},{name:"uidBase",op:1235,type:"number"},{name:"fdArray",op:1236,type:"offset"},{name:"fdSelect",op:1237,type:"offset"},{name:"fontName",op:1238,type:"SID"}],WW=[{name:"subrs",op:19,type:"offset",value:0},{name:"defaultWidthX",op:20,type:"number",value:0},{name:"nominalWidthX",op:21,type:"number",value:0}];function wW(J,K){var Y=EJ(J,0,J.byteLength);return _J(Y,HW,K)}function RJ(J,K,Y,X){var Z=EJ(J,K,Y);return _J(Z,WW,X)}function t7(J,K,Y,X){var Z=[];for(var Q=0;Q<Y.length;Q+=1){var H=new DataView(new Uint8Array(Y[Q]).buffer),w=wW(H,X);w._subrs=[],w._subrsBias=0,w._defaultWidthX=0,w._nominalWidthX=0;var W=w.private[0],z=w.private[1];if(W!==0&&z!==0){var U=RJ(J,z+K,W,X);if(w._defaultWidthX=U.defaultWidthX,w._nominalWidthX=U.nominalWidthX,U.subrs!==0){var $=z+U.subrs,V=f1(J,$+K);w._subrs=V.objects,w._subrsBias=e6(w._subrs)}w._privateDict=U}Z.push(w)}return Z}function zW(J,K,Y,X){var Z,Q,H=new n.Parser(J,K);Y-=1;var w=[".notdef"],W=H.parseCard8();if(W===0)for(var z=0;z<Y;z+=1)Z=H.parseSID(),w.push(T8(X,Z));else if(W===1)while(w.length<=Y){Z=H.parseSID(),Q=H.parseCard8();for(var U=0;U<=Q;U+=1)w.push(T8(X,Z)),Z+=1}else if(W===2)while(w.length<=Y){Z=H.parseSID(),Q=H.parseCard16();for(var $=0;$<=Q;$+=1)w.push(T8(X,Z)),Z+=1}else throw Error("Unknown charset format "+W);return w}function UW(J,K,Y){var X,Z={},Q=new n.Parser(J,K),H=Q.parseCard8();if(H===0){var w=Q.parseCard8();for(var W=0;W<w;W+=1)X=Q.parseCard8(),Z[X]=W}else if(H===1){var z=Q.parseCard8();X=1;for(var U=0;U<z;U+=1){var $=Q.parseCard8(),V=Q.parseCard8();for(var B=$;B<=$+V;B+=1)Z[B]=X,X+=1}}else throw Error("Unknown encoding format "+H);return new A5(Z,Y)}function e7(J,K,Y){var X,Z,Q,H,w=new h0,W=[],z=0,U=!1,$=!1,V=0,B=0,q,G,M,N;if(J.isCIDFont){var j=J.tables.cff.topDict._fdSelect[K.index],_=J.tables.cff.topDict._fdArray[j];q=_._subrs,G=_._subrsBias,M=_._defaultWidthX,N=_._nominalWidthX}else q=J.tables.cff.topDict._subrs,G=J.tables.cff.topDict._subrsBias,M=J.tables.cff.topDict._defaultWidthX,N=J.tables.cff.topDict._nominalWidthX;var R=M;function E(D,P){if($)w.closePath();w.moveTo(D,P),$=!0}function L(){var D=W.length%2!==0;if(D&&!U)R=W.shift()+N;z+=W.length>>1,W.length=0,U=!0}function T(D){var P,x,u,p,i,C,S,I,d,l,c,o,m=0;while(m<D.length){var f=D[m];switch(m+=1,f){case 1:L();break;case 3:L();break;case 4:if(W.length>1&&!U)R=W.shift()+N,U=!0;B+=W.pop(),E(V,B);break;case 5:while(W.length>0)V+=W.shift(),B+=W.shift(),w.lineTo(V,B);break;case 6:while(W.length>0){if(V+=W.shift(),w.lineTo(V,B),W.length===0)break;B+=W.shift(),w.lineTo(V,B)}break;case 7:while(W.length>0){if(B+=W.shift(),w.lineTo(V,B),W.length===0)break;V+=W.shift(),w.lineTo(V,B)}break;case 8:while(W.length>0)X=V+W.shift(),Z=B+W.shift(),Q=X+W.shift(),H=Z+W.shift(),V=Q+W.shift(),B=H+W.shift(),w.curveTo(X,Z,Q,H,V,B);break;case 10:if(i=W.pop()+G,C=q[i],C)T(C);break;case 11:return;case 12:switch(f=D[m],m+=1,f){case 35:X=V+W.shift(),Z=B+W.shift(),Q=X+W.shift(),H=Z+W.shift(),S=Q+W.shift(),I=H+W.shift(),d=S+W.shift(),l=I+W.shift(),c=d+W.shift(),o=l+W.shift(),V=c+W.shift(),B=o+W.shift(),W.shift(),w.curveTo(X,Z,Q,H,S,I),w.curveTo(d,l,c,o,V,B);break;case 34:X=V+W.shift(),Z=B,Q=X+W.shift(),H=Z+W.shift(),S=Q+W.shift(),I=H,d=S+W.shift(),l=H,c=d+W.shift(),o=B,V=c+W.shift(),w.curveTo(X,Z,Q,H,S,I),w.curveTo(d,l,c,o,V,B);break;case 36:X=V+W.shift(),Z=B+W.shift(),Q=X+W.shift(),H=Z+W.shift(),S=Q+W.shift(),I=H,d=S+W.shift(),l=H,c=d+W.shift(),o=l+W.shift(),V=c+W.shift(),w.curveTo(X,Z,Q,H,S,I),w.curveTo(d,l,c,o,V,B);break;case 37:if(X=V+W.shift(),Z=B+W.shift(),Q=X+W.shift(),H=Z+W.shift(),S=Q+W.shift(),I=H+W.shift(),d=S+W.shift(),l=I+W.shift(),c=d+W.shift(),o=l+W.shift(),Math.abs(c-V)>Math.abs(o-B))V=c+W.shift();else B=o+W.shift();w.curveTo(X,Z,Q,H,S,I),w.curveTo(d,l,c,o,V,B);break;default:console.log("Glyph "+K.index+": unknown operator 1200"+f),W.length=0}break;case 14:if(W.length>0&&!U)R=W.shift()+N,U=!0;if($)w.closePath(),$=!1;break;case 18:L();break;case 19:case 20:L(),m+=z+7>>3;break;case 21:if(W.length>2&&!U)R=W.shift()+N,U=!0;B+=W.pop(),V+=W.pop(),E(V,B);break;case 22:if(W.length>1&&!U)R=W.shift()+N,U=!0;V+=W.pop(),E(V,B);break;case 23:L();break;case 24:while(W.length>2)X=V+W.shift(),Z=B+W.shift(),Q=X+W.shift(),H=Z+W.shift(),V=Q+W.shift(),B=H+W.shift(),w.curveTo(X,Z,Q,H,V,B);V+=W.shift(),B+=W.shift(),w.lineTo(V,B);break;case 25:while(W.length>6)V+=W.shift(),B+=W.shift(),w.lineTo(V,B);X=V+W.shift(),Z=B+W.shift(),Q=X+W.shift(),H=Z+W.shift(),V=Q+W.shift(),B=H+W.shift(),w.curveTo(X,Z,Q,H,V,B);break;case 26:if(W.length%2)V+=W.shift();while(W.length>0)X=V,Z=B+W.shift(),Q=X+W.shift(),H=Z+W.shift(),V=Q,B=H+W.shift(),w.curveTo(X,Z,Q,H,V,B);break;case 27:if(W.length%2)B+=W.shift();while(W.length>0)X=V+W.shift(),Z=B,Q=X+W.shift(),H=Z+W.shift(),V=Q+W.shift(),B=H,w.curveTo(X,Z,Q,H,V,B);break;case 28:P=D[m],x=D[m+1],W.push((P<<24|x<<16)>>16),m+=2;break;case 29:if(i=W.pop()+J.gsubrsBias,C=J.gsubrs[i],C)T(C);break;case 30:while(W.length>0){if(X=V,Z=B+W.shift(),Q=X+W.shift(),H=Z+W.shift(),V=Q+W.shift(),B=H+(W.length===1?W.shift():0),w.curveTo(X,Z,Q,H,V,B),W.length===0)break;X=V+W.shift(),Z=B,Q=X+W.shift(),H=Z+W.shift(),B=H+W.shift(),V=Q+(W.length===1?W.shift():0),w.curveTo(X,Z,Q,H,V,B)}break;case 31:while(W.length>0){if(X=V+W.shift(),Z=B,Q=X+W.shift(),H=Z+W.shift(),B=H+W.shift(),V=Q+(W.length===1?W.shift():0),w.curveTo(X,Z,Q,H,V,B),W.length===0)break;X=V,Z=B+W.shift(),Q=X+W.shift(),H=Z+W.shift(),V=Q+W.shift(),B=H+(W.length===1?W.shift():0),w.curveTo(X,Z,Q,H,V,B)}break;default:if(f<32)console.log("Glyph "+K.index+": unknown operator "+f);else if(f<247)W.push(f-139);else if(f<251)P=D[m],m+=1,W.push((f-247)*256+P+108);else if(f<255)P=D[m],m+=1,W.push(-(f-251)*256-P-108);else P=D[m],x=D[m+1],u=D[m+2],p=D[m+3],m+=4,W.push((P<<24|x<<16|u<<8|p)/65536)}}}return T(Y),K.advanceWidth=R,w}function $W(J,K,Y,X){var Z=[],Q,H=new n.Parser(J,K),w=H.parseCard8();if(w===0)for(var W=0;W<Y;W++){if(Q=H.parseCard8(),Q>=X)throw Error("CFF table CID Font FDSelect has bad FD index value "+Q+" (FD count "+X+")");Z.push(Q)}else if(w===3){var z=H.parseCard16(),U=H.parseCard16();if(U!==0)throw Error("CFF Table CID Font FDSelect format 3 range has bad initial GID "+U);var $;for(var V=0;V<z;V++){if(Q=H.parseCard8(),$=H.parseCard16(),Q>=X)throw Error("CFF table CID Font FDSelect has bad FD index value "+Q+" (FD count "+X+")");if($>Y)throw Error("CFF Table CID Font FDSelect format 3 range has bad GID "+$);for(;U<$;U++)Z.push(Q);U=$}if($!==Y)throw Error("CFF Table CID Font FDSelect format 3 range has bad final GID "+$)}else throw Error("CFF Table CID Font FDSelect table has unsupported format "+w);return Z}function VW(J,K,Y,X){Y.tables.cff={};var Z=QW(J,K),Q=f1(J,Z.endOffset,n.bytesToString),H=f1(J,Q.endOffset),w=f1(J,H.endOffset,n.bytesToString),W=f1(J,w.endOffset);Y.gsubrs=W.objects,Y.gsubrsBias=e6(Y.gsubrs);var z=t7(J,K,H.objects,w.objects);if(z.length!==1)throw Error("CFF table has too many fonts in 'FontSet' - count of fonts NameIndex.length = "+z.length);var U=z[0];if(Y.tables.cff.topDict=U,U._privateDict)Y.defaultWidthX=U._privateDict.defaultWidthX,Y.nominalWidthX=U._privateDict.nominalWidthX;if(U.ros[0]!==void 0&&U.ros[1]!==void 0)Y.isCIDFont=!0;if(Y.isCIDFont){var{fdArray:$,fdSelect:V}=U;if($===0||V===0)throw Error("Font is marked as a CID font, but FDArray and/or FDSelect information is missing");$+=K;var B=f1(J,$),q=t7(J,K,B.objects,w.objects);U._fdArray=q,V+=K,U._fdSelect=$W(J,V,Y.numGlyphs,q.length)}var G=K+U.private[1],M=RJ(J,G,U.private[0],w.objects);if(Y.defaultWidthX=M.defaultWidthX,Y.nominalWidthX=M.nominalWidthX,M.subrs!==0){var N=G+M.subrs,j=f1(J,N);Y.subrs=j.objects,Y.subrsBias=e6(Y.subrs)}else Y.subrs=[],Y.subrsBias=0;var _;if(X.lowMemory)_=JW(J,K+U.charStrings),Y.nGlyphs=_.offsets.length;else _=f1(J,K+U.charStrings),Y.nGlyphs=_.objects.length;var R=zW(J,K+U.charset,Y.nGlyphs,w.objects);if(U.encoding===0)Y.cffEncoding=new A5(_Q,R);else if(U.encoding===1)Y.cffEncoding=new A5(RQ,R);else Y.cffEncoding=UW(J,K+U.encoding,R);if(Y.encoding=Y.encoding||Y.cffEncoding,Y.glyphs=new F1.GlyphSet(Y),X.lowMemory)Y._push=function(T){var D=KW(T,_.offsets,J,K+U.charStrings);Y.glyphs.push(T,F1.cffGlyphLoader(Y,T,e7,D))};else for(var E=0;E<Y.nGlyphs;E+=1){var L=_.objects[E];Y.glyphs.push(E,F1.cffGlyphLoader(Y,E,e7,L))}}var BW={parse:VW};function AW(J,K,Y){var X={},Z=new n.Parser(J,K);return X.tag=Z.parseTag(),X.minValue=Z.parseFixed(),X.defaultValue=Z.parseFixed(),X.maxValue=Z.parseFixed(),Z.skip("uShort",1),X.name=Y[Z.parseUShort()]||{},X}function GW(J,K,Y,X){var Z={},Q=new n.Parser(J,K);Z.name=X[Q.parseUShort()]||{},Q.skip("uShort",1),Z.coordinates={};for(var H=0;H<Y.length;++H)Z.coordinates[Y[H].tag]=Q.parseFixed();return Z}function MW(J,K,Y){var X=new n.Parser(J,K),Z=X.parseULong();z0.argument(Z===65536,"Unsupported fvar table version.");var Q=X.parseOffset16();X.skip("uShort",1);var H=X.parseUShort(),w=X.parseUShort(),W=X.parseUShort(),z=X.parseUShort(),U=[];for(var $=0;$<H;$++)U.push(AW(J,K+Q+$*w,Y));var V=[],B=K+Q+H*w;for(var q=0;q<W;q++)V.push(GW(J,B+q*z,U,Y));return{axes:U,instances:V}}var qW={parse:MW},OW=function(){return{coverage:this.parsePointer(v.coverage),attachPoints:this.parseList(v.pointer(v.uShortList))}},NW=function(){var J=this.parseUShort();if(z0.argument(J===1||J===2||J===3,"Unsupported CaretValue table version."),J===1)return{coordinate:this.parseShort()};else if(J===2)return{pointindex:this.parseShort()};else if(J===3)return{coordinate:this.parseShort()}},jW=function(){return this.parseList(v.pointer(NW))},LW=function(){return{coverage:this.parsePointer(v.coverage),ligGlyphs:this.parseList(v.pointer(jW))}},FW=function(){return this.parseUShort(),this.parseList(v.pointer(v.coverage))};function EW(J,K){K=K||0;var Y=new v(J,K),X=Y.parseVersion(1);z0.argument(X===1||X===1.2||X===1.3,"Unsupported GDEF table version.");var Z={version:X,classDef:Y.parsePointer(v.classDef),attachList:Y.parsePointer(OW),ligCaretList:Y.parsePointer(LW),markAttachClassDef:Y.parsePointer(v.classDef)};if(X>=1.2)Z.markGlyphSets=Y.parsePointer(FW);return Z}var _W={parse:EW},z1=[,,,,,,,,,,];z1[1]=function(){var K=this.offset+this.relativeOffset,Y=this.parseUShort();if(Y===1)return{posFormat:1,coverage:this.parsePointer(v.coverage),value:this.parseValueRecord()};else if(Y===2)return{posFormat:2,coverage:this.parsePointer(v.coverage),values:this.parseValueRecordList()};z0.assert(!1,"0x"+K.toString(16)+": GPOS lookup type 1 format must be 1 or 2.")};z1[2]=function(){var K=this.offset+this.relativeOffset,Y=this.parseUShort();z0.assert(Y===1||Y===2,"0x"+K.toString(16)+": GPOS lookup type 2 format must be 1 or 2.");var X=this.parsePointer(v.coverage),Z=this.parseUShort(),Q=this.parseUShort();if(Y===1)return{posFormat:Y,coverage:X,valueFormat1:Z,valueFormat2:Q,pairSets:this.parseList(v.pointer(v.list(function(){return{secondGlyph:this.parseUShort(),value1:this.parseValueRecord(Z),value2:this.parseValueRecord(Q)}})))};else if(Y===2){var H=this.parsePointer(v.classDef),w=this.parsePointer(v.classDef),W=this.parseUShort(),z=this.parseUShort();return{posFormat:Y,coverage:X,valueFormat1:Z,valueFormat2:Q,classDef1:H,classDef2:w,class1Count:W,class2Count:z,classRecords:this.parseList(W,v.list(z,function(){return{value1:this.parseValueRecord(Z),value2:this.parseValueRecord(Q)}}))}}};z1[3]=function(){return{error:"GPOS Lookup 3 not supported"}};z1[4]=function(){return{error:"GPOS Lookup 4 not supported"}};z1[5]=function(){return{error:"GPOS Lookup 5 not supported"}};z1[6]=function(){return{error:"GPOS Lookup 6 not supported"}};z1[7]=function(){return{error:"GPOS Lookup 7 not supported"}};z1[8]=function(){return{error:"GPOS Lookup 8 not supported"}};z1[9]=function(){return{error:"GPOS Lookup 9 not supported"}};function RW(J,K){K=K||0;var Y=new v(J,K),X=Y.parseVersion(1);if(z0.argument(X===1||X===1.1,"Unsupported GPOS table version "+X),X===1)return{version:X,scripts:Y.parseScriptList(),features:Y.parseFeatureList(),lookups:Y.parseLookupList(z1)};else return{version:X,scripts:Y.parseScriptList(),features:Y.parseFeatureList(),lookups:Y.parseLookupList(z1),variations:Y.parseFeatureVariationsList()}}var DW={parse:RW},U1=[,,,,,,,,,];U1[1]=function(){var K=this.offset+this.relativeOffset,Y=this.parseUShort();if(Y===1)return{substFormat:1,coverage:this.parsePointer(v.coverage),deltaGlyphId:this.parseUShort()};else if(Y===2)return{substFormat:2,coverage:this.parsePointer(v.coverage),substitute:this.parseOffset16List()};z0.assert(!1,"0x"+K.toString(16)+": lookup type 1 format must be 1 or 2.")};U1[2]=function(){var K=this.parseUShort();return z0.argument(K===1,"GSUB Multiple Substitution Subtable identifier-format must be 1"),{substFormat:K,coverage:this.parsePointer(v.coverage),sequences:this.parseListOfLists()}};U1[3]=function(){var K=this.parseUShort();return z0.argument(K===1,"GSUB Alternate Substitution Subtable identifier-format must be 1"),{substFormat:K,coverage:this.parsePointer(v.coverage),alternateSets:this.parseListOfLists()}};U1[4]=function(){var K=this.parseUShort();return z0.argument(K===1,"GSUB ligature table identifier-format must be 1"),{substFormat:K,coverage:this.parsePointer(v.coverage),ligatureSets:this.parseListOfLists(function(){return{ligGlyph:this.parseUShort(),components:this.parseUShortList(this.parseUShort()-1)}})}};var G8={sequenceIndex:v.uShort,lookupListIndex:v.uShort};U1[5]=function(){var K=this.offset+this.relativeOffset,Y=this.parseUShort();if(Y===1)return{substFormat:Y,coverage:this.parsePointer(v.coverage),ruleSets:this.parseListOfLists(function(){var Q=this.parseUShort(),H=this.parseUShort();return{input:this.parseUShortList(Q-1),lookupRecords:this.parseRecordList(H,G8)}})};else if(Y===2)return{substFormat:Y,coverage:this.parsePointer(v.coverage),classDef:this.parsePointer(v.classDef),classSets:this.parseListOfLists(function(){var Q=this.parseUShort(),H=this.parseUShort();return{classes:this.parseUShortList(Q-1),lookupRecords:this.parseRecordList(H,G8)}})};else if(Y===3){var X=this.parseUShort(),Z=this.parseUShort();return{substFormat:Y,coverages:this.parseList(X,v.pointer(v.coverage)),lookupRecords:this.parseRecordList(Z,G8)}}z0.assert(!1,"0x"+K.toString(16)+": lookup type 5 format must be 1, 2 or 3.")};U1[6]=function(){var K=this.offset+this.relativeOffset,Y=this.parseUShort();if(Y===1)return{substFormat:1,coverage:this.parsePointer(v.coverage),chainRuleSets:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(G8)}})};else if(Y===2)return{substFormat:2,coverage:this.parsePointer(v.coverage),backtrackClassDef:this.parsePointer(v.classDef),inputClassDef:this.parsePointer(v.classDef),lookaheadClassDef:this.parsePointer(v.classDef),chainClassSet:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(G8)}})};else if(Y===3)return{substFormat:3,backtrackCoverage:this.parseList(v.pointer(v.coverage)),inputCoverage:this.parseList(v.pointer(v.coverage)),lookaheadCoverage:this.parseList(v.pointer(v.coverage)),lookupRecords:this.parseRecordList(G8)};z0.assert(!1,"0x"+K.toString(16)+": lookup type 6 format must be 1, 2 or 3.")};U1[7]=function(){var K=this.parseUShort();z0.argument(K===1,"GSUB Extension Substitution subtable identifier-format must be 1");var Y=this.parseUShort(),X=new v(this.data,this.offset+this.parseULong());return{substFormat:1,lookupType:Y,extension:U1[Y].call(X)}};U1[8]=function(){var K=this.parseUShort();return z0.argument(K===1,"GSUB Reverse Chaining Contextual Single Substitution Subtable identifier-format must be 1"),{substFormat:K,coverage:this.parsePointer(v.coverage),backtrackCoverage:this.parseList(v.pointer(v.coverage)),lookaheadCoverage:this.parseList(v.pointer(v.coverage)),substitutes:this.parseUShortList()}};function IW(J,K){K=K||0;var Y=new v(J,K),X=Y.parseVersion(1);if(z0.argument(X===1||X===1.1,"Unsupported GSUB table version."),X===1)return{version:X,scripts:Y.parseScriptList(),features:Y.parseFeatureList(),lookups:Y.parseLookupList(U1)};else return{version:X,scripts:Y.parseScriptList(),features:Y.parseFeatureList(),lookups:Y.parseLookupList(U1),variations:Y.parseFeatureVariationsList()}}var TW={parse:IW};function CW(J,K){var Y={},X=new n.Parser(J,K);return Y.version=X.parseVersion(),Y.fontRevision=Math.round(X.parseFixed()*1000)/1000,Y.checkSumAdjustment=X.parseULong(),Y.magicNumber=X.parseULong(),z0.argument(Y.magicNumber===1594834165,"Font header has wrong magic number."),Y.flags=X.parseUShort(),Y.unitsPerEm=X.parseUShort(),Y.created=X.parseLongDateTime(),Y.modified=X.parseLongDateTime(),Y.xMin=X.parseShort(),Y.yMin=X.parseShort(),Y.xMax=X.parseShort(),Y.yMax=X.parseShort(),Y.macStyle=X.parseUShort(),Y.lowestRecPPEM=X.parseUShort(),Y.fontDirectionHint=X.parseShort(),Y.indexToLocFormat=X.parseShort(),Y.glyphDataFormat=X.parseShort(),Y}var PW={parse:CW};function SW(J,K){var Y={},X=new n.Parser(J,K);return Y.version=X.parseVersion(),Y.ascender=X.parseShort(),Y.descender=X.parseShort(),Y.lineGap=X.parseShort(),Y.advanceWidthMax=X.parseUShort(),Y.minLeftSideBearing=X.parseShort(),Y.minRightSideBearing=X.parseShort(),Y.xMaxExtent=X.parseShort(),Y.caretSlopeRise=X.parseShort(),Y.caretSlopeRun=X.parseShort(),Y.caretOffset=X.parseShort(),X.relativeOffset+=8,Y.metricDataFormat=X.parseShort(),Y.numberOfHMetrics=X.parseUShort(),Y}var vW={parse:SW};function yW(J,K,Y,X,Z){var Q,H,w=new n.Parser(J,K);for(var W=0;W<X;W+=1){if(W<Y)Q=w.parseUShort(),H=w.parseShort();var z=Z.get(W);z.advanceWidth=Q,z.leftSideBearing=H}}function kW(J,K,Y,X,Z){J._hmtxTableData={};var Q,H,w=new n.Parser(K,Y);for(var W=0;W<Z;W+=1){if(W<X)Q=w.parseUShort(),H=w.parseShort();J._hmtxTableData[W]={advanceWidth:Q,leftSideBearing:H}}}function gW(J,K,Y,X,Z,Q,H){if(H.lowMemory)kW(J,K,Y,X,Z);else yW(K,Y,X,Z,Q)}var xW={parse:gW};function bW(J){var K={};J.skip("uShort");var Y=J.parseUShort();z0.argument(Y===0,"Unsupported kern sub-table version."),J.skip("uShort",2);var X=J.parseUShort();J.skip("uShort",3);for(var Z=0;Z<X;Z+=1){var Q=J.parseUShort(),H=J.parseUShort(),w=J.parseShort();K[Q+","+H]=w}return K}function hW(J){var K={};J.skip("uShort");var Y=J.parseULong();if(Y>1)console.warn("Only the first kern subtable is supported.");J.skip("uLong");var X=J.parseUShort(),Z=X&255;if(J.skip("uShort"),Z===0){var Q=J.parseUShort();J.skip("uShort",3);for(var H=0;H<Q;H+=1){var w=J.parseUShort(),W=J.parseUShort(),z=J.parseShort();K[w+","+W]=z}}return K}function mW(J,K){var Y=new n.Parser(J,K),X=Y.parseUShort();if(X===0)return bW(Y);else if(X===1)return hW(Y);else throw Error("Unsupported kern table version ("+X+").")}var fW={parse:mW};function dW(J,K){var Y=new n.Parser(J,K),X=Y.parseULong();z0.argument(X===1,"Unsupported ltag table version."),Y.skip("uLong",1);var Z=Y.parseULong(),Q=[];for(var H=0;H<Z;H++){var w="",W=K+Y.parseUShort(),z=Y.parseUShort();for(var U=W;U<W+z;++U)w+=String.fromCharCode(J.getInt8(U));Q.push(w)}return Q}var lW={parse:dW};function cW(J,K,Y,X){var Z=new n.Parser(J,K),Q=X?Z.parseUShort:Z.parseULong,H=[];for(var w=0;w<Y+1;w+=1){var W=Q.call(Z);if(X)W*=2;H.push(W)}return H}var uW={parse:cW};function pW(J,K){var Y={},X=new n.Parser(J,K);if(Y.version=X.parseVersion(),Y.numGlyphs=X.parseUShort(),Y.version===1)Y.maxPoints=X.parseUShort(),Y.maxContours=X.parseUShort(),Y.maxCompositePoints=X.parseUShort(),Y.maxCompositeContours=X.parseUShort(),Y.maxZones=X.parseUShort(),Y.maxTwilightPoints=X.parseUShort(),Y.maxStorage=X.parseUShort(),Y.maxFunctionDefs=X.parseUShort(),Y.maxInstructionDefs=X.parseUShort(),Y.maxStackElements=X.parseUShort(),Y.maxSizeOfInstructions=X.parseUShort(),Y.maxComponentElements=X.parseUShort(),Y.maxComponentDepth=X.parseUShort();return Y}var iW={parse:pW};function oW(J,K){var Y={},X=new n.Parser(J,K);Y.version=X.parseUShort(),Y.xAvgCharWidth=X.parseShort(),Y.usWeightClass=X.parseUShort(),Y.usWidthClass=X.parseUShort(),Y.fsType=X.parseUShort(),Y.ySubscriptXSize=X.parseShort(),Y.ySubscriptYSize=X.parseShort(),Y.ySubscriptXOffset=X.parseShort(),Y.ySubscriptYOffset=X.parseShort(),Y.ySuperscriptXSize=X.parseShort(),Y.ySuperscriptYSize=X.parseShort(),Y.ySuperscriptXOffset=X.parseShort(),Y.ySuperscriptYOffset=X.parseShort(),Y.yStrikeoutSize=X.parseShort(),Y.yStrikeoutPosition=X.parseShort(),Y.sFamilyClass=X.parseShort(),Y.panose=[];for(var Z=0;Z<10;Z++)Y.panose[Z]=X.parseByte();if(Y.ulUnicodeRange1=X.parseULong(),Y.ulUnicodeRange2=X.parseULong(),Y.ulUnicodeRange3=X.parseULong(),Y.ulUnicodeRange4=X.parseULong(),Y.achVendID=String.fromCharCode(X.parseByte(),X.parseByte(),X.parseByte(),X.parseByte()),Y.fsSelection=X.parseUShort(),Y.usFirstCharIndex=X.parseUShort(),Y.usLastCharIndex=X.parseUShort(),Y.sTypoAscender=X.parseShort(),Y.sTypoDescender=X.parseShort(),Y.sTypoLineGap=X.parseShort(),Y.usWinAscent=X.parseUShort(),Y.usWinDescent=X.parseUShort(),Y.version>=1)Y.ulCodePageRange1=X.parseULong(),Y.ulCodePageRange2=X.parseULong();if(Y.version>=2)Y.sxHeight=X.parseShort(),Y.sCapHeight=X.parseShort(),Y.usDefaultChar=X.parseUShort(),Y.usBreakChar=X.parseUShort(),Y.usMaxContent=X.parseUShort();return Y}var rW={parse:oW};function nW(J,K){var Y={},X=new n.Parser(J,K);switch(Y.version=X.parseVersion(),Y.italicAngle=X.parseFixed(),Y.underlinePosition=X.parseShort(),Y.underlineThickness=X.parseShort(),Y.isFixedPitch=X.parseULong(),Y.minMemType42=X.parseULong(),Y.maxMemType42=X.parseULong(),Y.minMemType1=X.parseULong(),Y.maxMemType1=X.parseULong(),Y.names=[],Y.version){case 1:break;case 2:Y.numberOfGlyphs=X.parseUShort(),Y.glyphNameIndex=Array(Y.numberOfGlyphs);for(var Z=0;Z<Y.numberOfGlyphs;Z++)Y.glyphNameIndex[Z]=X.parseUShort();break;case 2.5:Y.numberOfGlyphs=X.parseUShort(),Y.offset=Array(Y.numberOfGlyphs);for(var Q=0;Q<Y.numberOfGlyphs;Q++)Y.offset[Q]=X.parseChar();break}return Y}var sW={parse:nW},O5={};O5.UTF8=function(J,K,Y){var X=[],Z=Y;for(var Q=0;Q<Z;Q++,K+=1)X[Q]=J.getUint8(K);return String.fromCharCode.apply(null,X)};O5.UTF16=function(J,K,Y){var X=[],Z=Y/2;for(var Q=0;Q<Z;Q++,K+=2)X[Q]=J.getUint16(K);return String.fromCharCode.apply(null,X)};var aW={"x-mac-croatian":"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\u0160\u2122\xB4\xA8\u2260\u017D\xD8\u221E\xB1\u2264\u2265\u2206\xB5\u2202\u2211\u220F\u0161\u222B\xAA\xBA\u03A9\u017E\xF8"+"\xBF\xA1\xAC\u221A\u0192\u2248\u0106\xAB\u010C\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u0110\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\uF8FF\xA9\u2044\u20AC\u2039\u203A\xC6\xBB\u2013\xB7\u201A\u201E\u2030\xC2\u0107\xC1\u010D\xC8\xCD\xCE\xCF\xCC\xD3\xD4\u0111\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u03C0\xCB\u02DA\xB8\xCA\xE6\u02C7","x-mac-cyrillic":"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u2020\xB0\u0490\xA3\xA7\u2022\xB6\u0406\xAE\xA9\u2122\u0402\u0452\u2260\u0403\u0453\u221E\xB1\u2264\u2265\u0456\xB5\u0491\u0408\u0404\u0454\u0407\u0457\u0409\u0459\u040A\u045A"+"\u0458\u0405\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\u040B\u045B\u040C\u045C\u0455\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u201E\u040E\u045E\u040F\u045F\u2116\u0401\u0451\u044F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E","x-mac-gaelic":"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u1E02\xB1\u2264\u2265\u1E03\u010A\u010B\u1E0A\u1E0B\u1E1E\u1E1F\u0120\u0121\u1E40\xE6\xF8"+"\u1E41\u1E56\u1E57\u027C\u0192\u017F\u1E60\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\u1E61\u1E9B\xFF\u0178\u1E6A\u20AC\u2039\u203A\u0176\u0177\u1E6B\xB7\u1EF2\u1EF3\u204A\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\u2663\xD2\xDA\xDB\xD9\u0131\xDD\xFD\u0174\u0175\u1E84\u1E85\u1E80\u1E81\u1E82\u1E83","x-mac-greek":"\xC4\xB9\xB2\xC9\xB3\xD6\xDC\u0385\xE0\xE2\xE4\u0384\xA8\xE7\xE9\xE8\xEA\xEB\xA3\u2122\xEE\xEF\u2022\xBD\u2030\xF4\xF6\xA6\u20AC\xF9\xFB\xFC\u2020\u0393\u0394\u0398\u039B\u039E\u03A0\xDF\xAE\xA9\u03A3\u03AA\xA7\u2260\xB0\xB7\u0391\xB1\u2264\u2265\xA5\u0392\u0395\u0396\u0397\u0399\u039A\u039C\u03A6\u03AB\u03A8\u03A9"+"\u03AC\u039D\xAC\u039F\u03A1\u2248\u03A4\xAB\xBB\u2026\xA0\u03A5\u03A7\u0386\u0388\u0153\u2013\u2015\u201C\u201D\u2018\u2019\xF7\u0389\u038A\u038C\u038E\u03AD\u03AE\u03AF\u03CC\u038F\u03CD\u03B1\u03B2\u03C8\u03B4\u03B5\u03C6\u03B3\u03B7\u03B9\u03BE\u03BA\u03BB\u03BC\u03BD\u03BF\u03C0\u03CE\u03C1\u03C3\u03C4\u03B8\u03C9\u03C2\u03C7\u03C5\u03B6\u03CA\u03CB\u0390\u03B0\xAD","x-mac-icelandic":"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\xDD\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u03A9\xE6\xF8"+"\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\u20AC\xD0\xF0\xDE\xFE\xFD\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uF8FF\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7","x-mac-inuit":"\u1403\u1404\u1405\u1406\u140A\u140B\u1431\u1432\u1433\u1434\u1438\u1439\u1449\u144E\u144F\u1450\u1451\u1455\u1456\u1466\u146D\u146E\u146F\u1470\u1472\u1473\u1483\u148B\u148C\u148D\u148E\u1490\u1491\xB0\u14A1\u14A5\u14A6\u2022\xB6\u14A7\xAE\xA9\u2122\u14A8\u14AA\u14AB\u14BB\u14C2\u14C3\u14C4\u14C5\u14C7\u14C8\u14D0\u14EF\u14F0\u14F1\u14F2\u14F4\u14F5\u1505\u14D5\u14D6\u14D7"+"\u14D8\u14DA\u14DB\u14EA\u1528\u1529\u152A\u152B\u152D\u2026\xA0\u152E\u153E\u1555\u1556\u1557\u2013\u2014\u201C\u201D\u2018\u2019\u1558\u1559\u155A\u155D\u1546\u1547\u1548\u1549\u154B\u154C\u1550\u157F\u1580\u1581\u1582\u1583\u1584\u1585\u158F\u1590\u1591\u1592\u1593\u1594\u1595\u1671\u1672\u1673\u1674\u1675\u1676\u1596\u15A0\u15A1\u15A2\u15A3\u15A4\u15A5\u15A6\u157C\u0141\u0142","x-mac-ce":"\xC4\u0100\u0101\xC9\u0104\xD6\xDC\xE1\u0105\u010C\xE4\u010D\u0106\u0107\xE9\u0179\u017A\u010E\xED\u010F\u0112\u0113\u0116\xF3\u0117\xF4\xF6\xF5\xFA\u011A\u011B\xFC\u2020\xB0\u0118\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\u0119\xA8\u2260\u0123\u012E\u012F\u012A\u2264\u2265\u012B\u0136\u2202\u2211\u0142\u013B\u013C\u013D\u013E\u0139\u013A\u0145"+"\u0146\u0143\xAC\u221A\u0144\u0147\u2206\xAB\xBB\u2026\xA0\u0148\u0150\xD5\u0151\u014C\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\u014D\u0154\u0155\u0158\u2039\u203A\u0159\u0156\u0157\u0160\u201A\u201E\u0161\u015A\u015B\xC1\u0164\u0165\xCD\u017D\u017E\u016A\xD3\xD4\u016B\u016E\xDA\u016F\u0170\u0171\u0172\u0173\xDD\xFD\u0137\u017B\u0141\u017C\u0122\u02C7",macintosh:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u03A9\xE6\xF8"+"\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\u20AC\u2039\u203A\uFB01\uFB02\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uF8FF\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7","x-mac-romanian":"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\u0102\u0218\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u03A9\u0103\u0219"+"\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\u20AC\u2039\u203A\u021A\u021B\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uF8FF\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7","x-mac-turkish":"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u03A9\xE6\xF8"+"\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u011E\u011F\u0130\u0131\u015E\u015F\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uF8FF\xD2\xDA\xDB\xD9\uF8A0\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"};O5.MACSTRING=function(J,K,Y,X){var Z=aW[X];if(Z===void 0)return;var Q="";for(var H=0;H<Y;H++){var w=J.getUint8(K+H);if(w<=127)Q+=String.fromCharCode(w);else Q+=Z[w&127]}return Q};function tW(J,K){var Y=new n.Parser(J,K),X=Y.parseULong();z0.argument(X===1,"Unsupported META table version."),Y.parseULong(),Y.parseULong();var Z=Y.parseULong(),Q={};for(var H=0;H<Z;H++){var w=Y.parseTag(),W=Y.parseULong(),z=Y.parseULong(),U=O5.UTF8(J,K+W,z);Q[w]=U}return Q}var eW={parse:tW};function JJ(J,K){var Y=[],X=12;for(var Z=0;Z<K;Z+=1){var Q=n.getTag(J,X),H=n.getULong(J,X+4),w=n.getULong(J,X+8),W=n.getULong(J,X+12);Y.push({tag:Q,checksum:H,offset:w,length:W,compression:!1}),X+=16}return Y}function Jw(J,K){var Y=[],X=44;for(var Z=0;Z<K;Z+=1){var Q=n.getTag(J,X),H=n.getULong(J,X+4),w=n.getULong(J,X+8),W=n.getULong(J,X+12),z=void 0;if(w<W)z="WOFF";else z=!1;Y.push({tag:Q,offset:H,compression:z,compressedLength:w,length:W}),X+=20}return Y}function D0(J,K){if(K.compression==="WOFF"){var Y=new Uint8Array(J.buffer,K.offset+2,K.compressedLength-2),X=new Uint8Array(K.length);if(jQ(Y,X),X.byteLength!==K.length)throw Error("Decompression error: "+K.tag+" decompressed length doesn't match recorded length");var Z=new DataView(X.buffer,0);return{data:Z,offset:0}}else return{data:J,offset:K.offset}}function Kw(J,K){K=K===void 0||K===null?{}:K;var Y,X=new m0({empty:!0}),Z=new DataView(J,0),Q,H=[],w=n.getTag(Z,0);if(w===String.fromCharCode(0,1,0,0)||w==="true"||w==="typ1")X.outlinesFormat="truetype",Q=n.getUShort(Z,4),H=JJ(Z,Q);else if(w==="OTTO")X.outlinesFormat="cff",Q=n.getUShort(Z,4),H=JJ(Z,Q);else if(w==="wOFF"){var W=n.getTag(Z,4);if(W===String.fromCharCode(0,1,0,0))X.outlinesFormat="truetype";else if(W==="OTTO")X.outlinesFormat="cff";else throw Error("Unsupported OpenType flavor "+w);Q=n.getUShort(Z,12),H=Jw(Z,Q)}else throw Error("Unsupported OpenType signature "+w);var z,U,$,V,B,q,G,M,N,j,_;for(var R=0;R<Q;R+=1){var E=H[R],L=void 0;switch(E.tag){case"cmap":L=D0(Z,E),X.tables.cmap=eH.parse(L.data,L.offset),X.encoding=new zJ(X.tables.cmap);break;case"cvt ":L=D0(Z,E),_=new n.Parser(L.data,L.offset),X.tables.cvt=_.parseShortList(E.length/2);break;case"fvar":U=E;break;case"fpgm":L=D0(Z,E),_=new n.Parser(L.data,L.offset),X.tables.fpgm=_.parseByteList(E.length);break;case"head":L=D0(Z,E),X.tables.head=PW.parse(L.data,L.offset),X.unitsPerEm=X.tables.head.unitsPerEm,Y=X.tables.head.indexToLocFormat;break;case"hhea":L=D0(Z,E),X.tables.hhea=vW.parse(L.data,L.offset),X.ascender=X.tables.hhea.ascender,X.descender=X.tables.hhea.descender,X.numberOfHMetrics=X.tables.hhea.numberOfHMetrics;break;case"hmtx":G=E;break;case"ltag":L=D0(Z,E),ltagTable=lW.parse(L.data,L.offset);break;case"maxp":L=D0(Z,E),X.tables.maxp=iW.parse(L.data,L.offset),X.numGlyphs=X.tables.maxp.numGlyphs;break;case"OS/2":L=D0(Z,E),X.tables.os2=rW.parse(L.data,L.offset);break;case"post":L=D0(Z,E),X.tables.post=sW.parse(L.data,L.offset);break;case"prep":L=D0(Z,E),_=new n.Parser(L.data,L.offset),X.tables.prep=_.parseByteList(E.length);break;case"glyf":$=E;break;case"loca":N=E;break;case"CFF ":z=E;break;case"kern":M=E;break;case"GDEF":V=E;break;case"GPOS":B=E;break;case"GSUB":q=E;break;case"meta":j=E;break}}if($&&N){var T=Y===0,D=D0(Z,N),P=uW.parse(D.data,D.offset,X.numGlyphs,T),x=D0(Z,$);X.glyphs=GJ.parse(x.data,x.offset,P,X,K)}else if(z){var u=D0(Z,z);BW.parse(u.data,u.offset,X,K)}else throw Error("Font doesn't contain TrueType or CFF outlines.");var p=D0(Z,G);if(xW.parse(X,p.data,p.offset,X.numberOfHMetrics,X.numGlyphs,X.glyphs,K),TQ(X,K),M){var i=D0(Z,M);X.kerningPairs=fW.parse(i.data,i.offset)}else X.kerningPairs={};if(V){var C=D0(Z,V);X.tables.gdef=_W.parse(C.data,C.offset)}if(B){var S=D0(Z,B);X.tables.gpos=DW.parse(S.data,S.offset),X.position.init()}if(q){var I=D0(Z,q);X.tables.gsub=TW.parse(I.data,I.offset)}if(U){var d=D0(Z,U);X.tables.fvar=qW.parse(d.data,d.offset,X.names)}if(j){var l=D0(Z,j);X.tables.meta=eW.parse(l.data,l.offset),X.metas=X.tables.meta}return X}function Yw(){}function Xw(){}var Zw=Object.freeze({__proto__:null,Font:m0,Glyph:T1,Path:h0,_parse:n,parse:Kw,load:Yw,loadSync:Xw}),N5=Zw;var{create:Hw,defineProperty:h5,getOwnPropertyDescriptor:Ww,getOwnPropertyNames:ww,getPrototypeOf:zw}=Object,Uw=Object.prototype.hasOwnProperty,_4=(J,K)=>()=>(J&&(K=J(J=0)),K),t=(J,K)=>()=>(K||J((K={exports:{}}).exports,K),K.exports),R4=(J,K)=>{for(var Y in K)h5(J,Y,{get:K[Y],enumerable:!0})},aJ=(J,K,Y,X)=>{if(K&&typeof K=="object"||typeof K=="function")for(let Z of ww(K))!Uw.call(J,Z)&&Z!==Y&&h5(J,Z,{get:()=>K[Z],enumerable:!(X=Ww(K,Z))||X.enumerable});return J},$w=(J,K,Y)=>(Y=J!=null?Hw(zw(J)):{},aJ(K||!J||!J.__esModule?h5(Y,"default",{value:J,enumerable:!0}):Y,J)),x5=(J)=>aJ(h5({},"__esModule",{value:!0}),J),tJ={};R4(tJ,{getYogaModule:()=>Vw});async function Vw(){let{default:J}=await import("./chunk-kd4whs4z.js");return J()}var Bw=_4(()=>{}),eJ=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>K});function K(Y){if(Y=`${Y}`,Y==="0")return"0";if(/^[+-]?(\d+|\d*\.\d+)(e[+-]?\d+)?(%|\w+)?$/.test(Y))return Y.replace(/^[+-]?/,(X)=>X==="-"?"":"-");if(Y.includes("var(")||Y.includes("calc("))return`calc(${Y} * -1)`}}),Aw=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>K});var K=["preflight","container","accessibility","pointerEvents","visibility","position","inset","isolation","zIndex","order","gridColumn","gridColumnStart","gridColumnEnd","gridRow","gridRowStart","gridRowEnd","float","clear","margin","boxSizing","display","aspectRatio","height","maxHeight","minHeight","width","minWidth","maxWidth","flex","flexShrink","flexGrow","flexBasis","tableLayout","borderCollapse","borderSpacing","transformOrigin","translate","rotate","skew","scale","transform","animation","cursor","touchAction","userSelect","resize","scrollSnapType","scrollSnapAlign","scrollSnapStop","scrollMargin","scrollPadding","listStylePosition","listStyleType","appearance","columns","breakBefore","breakInside","breakAfter","gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateColumns","gridTemplateRows","flexDirection","flexWrap","placeContent","placeItems","alignContent","alignItems","justifyContent","justifyItems","gap","space","divideWidth","divideStyle","divideColor","divideOpacity","placeSelf","alignSelf","justifySelf","overflow","overscrollBehavior","scrollBehavior","textOverflow","whitespace","wordBreak","borderRadius","borderWidth","borderStyle","borderColor","borderOpacity","backgroundColor","backgroundOpacity","backgroundImage","gradientColorStops","boxDecorationBreak","backgroundSize","backgroundAttachment","backgroundClip","backgroundPosition","backgroundRepeat","backgroundOrigin","fill","stroke","strokeWidth","objectFit","objectPosition","padding","textAlign","textIndent","verticalAlign","fontFamily","fontSize","fontWeight","textTransform","fontStyle","fontVariantNumeric","lineHeight","letterSpacing","textColor","textOpacity","textDecoration","textDecorationColor","textDecorationStyle","textDecorationThickness","textUnderlineOffset","fontSmoothing","placeholderColor","placeholderOpacity","caretColor","accentColor","opacity","backgroundBlendMode","mixBlendMode","boxShadow","boxShadowColor","outlineStyle","outlineWidth","outlineOffset","outlineColor","ringWidth","ringColor","ringOpacity","ringOffsetWidth","ringOffsetColor","blur","brightness","contrast","dropShadow","grayscale","hueRotate","invert","saturate","sepia","filter","backdropBlur","backdropBrightness","backdropContrast","backdropGrayscale","backdropHueRotate","backdropInvert","backdropOpacity","backdropSaturate","backdropSepia","backdropFilter","transitionProperty","transitionDelay","transitionDuration","transitionTimingFunction","willChange","content"]}),Gw=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>K});function K(Y,X){return Y===void 0?X:Array.isArray(Y)?Y:[...new Set(X.filter((Z)=>Y!==!1&&Y[Z]!==!1).concat(Object.keys(Y).filter((Z)=>Y[Z]!==!1)))]}}),JK=t((J,K)=>{K.exports={content:[],presets:[],darkMode:"media",theme:{screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},colors:({colors:Y})=>({inherit:Y.inherit,current:Y.current,transparent:Y.transparent,black:Y.black,white:Y.white,slate:Y.slate,gray:Y.gray,zinc:Y.zinc,neutral:Y.neutral,stone:Y.stone,red:Y.red,orange:Y.orange,amber:Y.amber,yellow:Y.yellow,lime:Y.lime,green:Y.green,emerald:Y.emerald,teal:Y.teal,cyan:Y.cyan,sky:Y.sky,blue:Y.blue,indigo:Y.indigo,violet:Y.violet,purple:Y.purple,fuchsia:Y.fuchsia,pink:Y.pink,rose:Y.rose}),columns:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},spacing:{px:"1px",0:"0px",0.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite",pulse:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",bounce:"bounce 1s infinite"},aspectRatio:{auto:"auto",square:"1 / 1",video:"16 / 9"},backdropBlur:({theme:Y})=>Y("blur"),backdropBrightness:({theme:Y})=>Y("brightness"),backdropContrast:({theme:Y})=>Y("contrast"),backdropGrayscale:({theme:Y})=>Y("grayscale"),backdropHueRotate:({theme:Y})=>Y("hueRotate"),backdropInvert:({theme:Y})=>Y("invert"),backdropOpacity:({theme:Y})=>Y("opacity"),backdropSaturate:({theme:Y})=>Y("saturate"),backdropSepia:({theme:Y})=>Y("sepia"),backgroundColor:({theme:Y})=>Y("colors"),backgroundImage:{none:"none","gradient-to-t":"linear-gradient(to top, var(--tw-gradient-stops))","gradient-to-tr":"linear-gradient(to top right, var(--tw-gradient-stops))","gradient-to-r":"linear-gradient(to right, var(--tw-gradient-stops))","gradient-to-br":"linear-gradient(to bottom right, var(--tw-gradient-stops))","gradient-to-b":"linear-gradient(to bottom, var(--tw-gradient-stops))","gradient-to-bl":"linear-gradient(to bottom left, var(--tw-gradient-stops))","gradient-to-l":"linear-gradient(to left, var(--tw-gradient-stops))","gradient-to-tl":"linear-gradient(to top left, var(--tw-gradient-stops))"},backgroundOpacity:({theme:Y})=>Y("opacity"),backgroundPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{0:"0",none:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",200:"2"},borderColor:({theme:Y})=>({...Y("colors"),DEFAULT:Y("colors.gray.200","currentColor")}),borderOpacity:({theme:Y})=>Y("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},borderSpacing:({theme:Y})=>({...Y("spacing")}),borderWidth:{DEFAULT:"1px",0:"0px",2:"2px",4:"4px",8:"8px"},boxShadow:{sm:"0 1px 2px 0 rgb(0 0 0 / 0.05)",DEFAULT:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)","2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",none:"none"},boxShadowColor:({theme:Y})=>Y("colors"),caretColor:({theme:Y})=>Y("colors"),accentColor:({theme:Y})=>({...Y("colors"),auto:"auto"}),contrast:{0:"0",50:".5",75:".75",100:"1",125:"1.25",150:"1.5",200:"2"},container:{},content:{none:"none"},cursor:{auto:"auto",default:"default",pointer:"pointer",wait:"wait",text:"text",move:"move",help:"help","not-allowed":"not-allowed",none:"none","context-menu":"context-menu",progress:"progress",cell:"cell",crosshair:"crosshair","vertical-text":"vertical-text",alias:"alias",copy:"copy","no-drop":"no-drop",grab:"grab",grabbing:"grabbing","all-scroll":"all-scroll","col-resize":"col-resize","row-resize":"row-resize","n-resize":"n-resize","e-resize":"e-resize","s-resize":"s-resize","w-resize":"w-resize","ne-resize":"ne-resize","nw-resize":"nw-resize","se-resize":"se-resize","sw-resize":"sw-resize","ew-resize":"ew-resize","ns-resize":"ns-resize","nesw-resize":"nesw-resize","nwse-resize":"nwse-resize","zoom-in":"zoom-in","zoom-out":"zoom-out"},divideColor:({theme:Y})=>Y("borderColor"),divideOpacity:({theme:Y})=>Y("borderOpacity"),divideWidth:({theme:Y})=>Y("borderWidth"),dropShadow:{sm:"0 1px 1px rgb(0 0 0 / 0.05)",DEFAULT:["0 1px 2px rgb(0 0 0 / 0.1)","0 1px 1px rgb(0 0 0 / 0.06)"],md:["0 4px 3px rgb(0 0 0 / 0.07)","0 2px 2px rgb(0 0 0 / 0.06)"],lg:["0 10px 8px rgb(0 0 0 / 0.04)","0 4px 3px rgb(0 0 0 / 0.1)"],xl:["0 20px 13px rgb(0 0 0 / 0.03)","0 8px 5px rgb(0 0 0 / 0.08)"],"2xl":"0 25px 25px rgb(0 0 0 / 0.15)",none:"0 0 #0000"},fill:({theme:Y})=>Y("colors"),grayscale:{0:"0",DEFAULT:"100%"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{0:"0",DEFAULT:"100%"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:Y})=>({auto:"auto",...Y("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%"}),flexGrow:{0:"0",DEFAULT:"1"},flexShrink:{0:"0",DEFAULT:"1"},fontFamily:{sans:["ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial",'"Noto Sans"',"sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"','"Noto Color Emoji"'],serif:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"],mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"]},fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}],"5xl":["3rem",{lineHeight:"1"}],"6xl":["3.75rem",{lineHeight:"1"}],"7xl":["4.5rem",{lineHeight:"1"}],"8xl":["6rem",{lineHeight:"1"}],"9xl":["8rem",{lineHeight:"1"}]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:({theme:Y})=>Y("spacing"),gradientColorStops:({theme:Y})=>Y("colors"),gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridColumn:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridColumnEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridColumnStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridRow:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-full":"1 / -1"},gridRowStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7"},gridRowEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7"},gridTemplateColumns:{none:"none",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))"},gridTemplateRows:{none:"none",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))"},height:({theme:Y})=>({auto:"auto",...Y("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%",full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"}),inset:({theme:Y})=>({auto:"auto",...Y("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%"}),keyframes:{spin:{to:{transform:"rotate(360deg)"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},pulse:{"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},listStyleType:{none:"none",disc:"disc",decimal:"decimal"},margin:({theme:Y})=>({auto:"auto",...Y("spacing")}),maxHeight:({theme:Y})=>({...Y("spacing"),full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"}),maxWidth:({theme:Y,breakpoints:X})=>({none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch",...X(Y("screens"))}),minHeight:{0:"0px",full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},objectPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},opacity:{0:"0",5:"0.05",10:"0.1",20:"0.2",25:"0.25",30:"0.3",40:"0.4",50:"0.5",60:"0.6",70:"0.7",75:"0.75",80:"0.8",90:"0.9",95:"0.95",100:"1"},order:{first:"-9999",last:"9999",none:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12"},padding:({theme:Y})=>Y("spacing"),placeholderColor:({theme:Y})=>Y("colors"),placeholderOpacity:({theme:Y})=>Y("opacity"),outlineColor:({theme:Y})=>Y("colors"),outlineOffset:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},ringColor:({theme:Y})=>({DEFAULT:Y("colors.blue.500","#3b82f6"),...Y("colors")}),ringOffsetColor:({theme:Y})=>Y("colors"),ringOffsetWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},ringOpacity:({theme:Y})=>({DEFAULT:"0.5",...Y("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg"},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2"},scale:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5"},scrollMargin:({theme:Y})=>({...Y("spacing")}),scrollPadding:({theme:Y})=>Y("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg"},space:({theme:Y})=>({...Y("spacing")}),stroke:({theme:Y})=>Y("colors"),strokeWidth:{0:"0",1:"1",2:"2"},textColor:({theme:Y})=>Y("colors"),textDecorationColor:({theme:Y})=>Y("colors"),textDecorationThickness:{auto:"auto","from-font":"from-font",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},textIndent:({theme:Y})=>({...Y("spacing")}),textOpacity:({theme:Y})=>Y("opacity"),transformOrigin:{center:"center",top:"top","top-right":"top right",right:"right","bottom-right":"bottom right",bottom:"bottom","bottom-left":"bottom left",left:"left","top-left":"top left"},transitionDelay:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1000:"1000ms"},transitionDuration:{DEFAULT:"150ms",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1000:"1000ms"},transitionProperty:{none:"none",all:"all",DEFAULT:"color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",colors:"color, background-color, border-color, text-decoration-color, fill, stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4, 0, 0.2, 1)",linear:"linear",in:"cubic-bezier(0.4, 0, 1, 1)",out:"cubic-bezier(0, 0, 0.2, 1)","in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},translate:({theme:Y})=>({...Y("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%"}),width:({theme:Y})=>({auto:"auto",...Y("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",screen:"100vw",min:"min-content",max:"max-content",fit:"fit-content"}),willChange:{auto:"auto",scroll:"scroll-position",contents:"contents",transform:"transform"},zIndex:{auto:"auto",0:"0",10:"10",20:"20",30:"30",40:"40",50:"50"}},variantOrder:["first","last","odd","even","visited","checked","empty","read-only","group-hover","group-focus","focus-within","hover","focus","focus-visible","active","disabled"],plugins:[]}}),m5={};R4(m5,{default:()=>KK});var KK,D4=_4(()=>{KK={info(J,K){console.info(...Array.isArray(J)?[J]:[K,J])},warn(J,K){console.warn(...Array.isArray(J)?[J]:[K,J])},risk(J,K){console.error(...Array.isArray(J)?[J]:[K,J])}}}),Mw=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>Z});var K=Y((D4(),x5(m5)));function Y(Q){return Q&&Q.__esModule?Q:{default:Q}}function X({version:Q,from:H,to:w}){K.default.warn(`${H}-color-renamed`,[`As of Tailwind CSS ${Q}, \`${H}\` has been renamed to \`${w}\`.`,"Update your configuration file to silence this warning."])}var Z={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"},get lightBlue(){return X({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return X({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return X({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return X({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return X({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}}),qw=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"defaults",{enumerable:!0,get:()=>K});function K(Y,...X){for(let H of X){for(let w in H){var Z;!(Y==null||(Z=Y.hasOwnProperty)===null||Z===void 0)&&Z.call(Y,w)||(Y[w]=H[w])}for(let w of Object.getOwnPropertySymbols(H)){var Q;!(Y==null||(Q=Y.hasOwnProperty)===null||Q===void 0)&&Q.call(Y,w)||(Y[w]=H[w])}}return Y}}),Ow=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"toPath",{enumerable:!0,get:()=>K});function K(Y){if(Array.isArray(Y))return Y;let X=Y.split("[").length-1,Z=Y.split("]").length-1;if(X!==Z)throw Error(`Path is invalid. Has unbalanced brackets: ${Y}`);return Y.split(/\.(?![^\[]*\])|[\[\]]/g).filter(Boolean)}}),Nw=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"normalizeConfig",{enumerable:!0,get:()=>Z});var K=X((D4(),x5(m5)));function Y(Q){if(typeof WeakMap!="function")return null;var H=new WeakMap,w=new WeakMap;return(Y=function(W){return W?w:H})(Q)}function X(Q,H){if(!H&&Q&&Q.__esModule)return Q;if(Q===null||typeof Q!="object"&&typeof Q!="function")return{default:Q};var w=Y(H);if(w&&w.has(Q))return w.get(Q);var W={},z=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var U in Q)if(U!=="default"&&Object.prototype.hasOwnProperty.call(Q,U)){var $=z?Object.getOwnPropertyDescriptor(Q,U):null;$&&($.get||$.set)?Object.defineProperty(W,U,$):W[U]=Q[U]}return W.default=Q,w&&w.set(Q,W),W}function Z(Q){if((()=>{if(Q.purge||!Q.content||!Array.isArray(Q.content)&&!(typeof Q.content=="object"&&Q.content!==null))return!1;if(Array.isArray(Q.content))return Q.content.every((w)=>typeof w=="string"?!0:!(typeof(w==null?void 0:w.raw)!="string"||w!=null&&w.extension&&typeof(w==null?void 0:w.extension)!="string"));if(typeof Q.content=="object"&&Q.content!==null){if(Object.keys(Q.content).some((w)=>!["files","extract","transform"].includes(w)))return!1;if(Array.isArray(Q.content.files)){if(!Q.content.files.every((w)=>typeof w=="string"?!0:!(typeof(w==null?void 0:w.raw)!="string"||w!=null&&w.extension&&typeof(w==null?void 0:w.extension)!="string")))return!1;if(typeof Q.content.extract=="object"){for(let w of Object.values(Q.content.extract))if(typeof w!="function")return!1}else if(!(Q.content.extract===void 0||typeof Q.content.extract=="function"))return!1;if(typeof Q.content.transform=="object"){for(let w of Object.values(Q.content.transform))if(typeof w!="function")return!1}else if(!(Q.content.transform===void 0||typeof Q.content.transform=="function"))return!1}return!0}return!1})()||K.default.warn("purge-deprecation",["The `purge`/`content` options have changed in Tailwind CSS v3.0.","Update your configuration file to eliminate this warning.","https://tailwindcss.com/docs/upgrade-guide#configure-content-sources"]),Q.safelist=(()=>{var w;let{content:W,purge:z,safelist:U}=Q;return Array.isArray(U)?U:Array.isArray(W==null?void 0:W.safelist)?W.safelist:Array.isArray(z==null?void 0:z.safelist)?z.safelist:Array.isArray(z==null||(w=z.options)===null||w===void 0?void 0:w.safelist)?z.options.safelist:[]})(),typeof Q.prefix=="function")K.default.warn("prefix-function",["As of Tailwind CSS v3.0, `prefix` cannot be a function.","Update `prefix` in your configuration to be a string to eliminate this warning.","https://tailwindcss.com/docs/upgrade-guide#prefix-cannot-be-a-function"]),Q.prefix="";else{var H;Q.prefix=(H=Q.prefix)!==null&&H!==void 0?H:""}Q.content={files:(()=>{let{content:w,purge:W}=Q;return Array.isArray(W)?W:Array.isArray(W==null?void 0:W.content)?W.content:Array.isArray(w)?w:Array.isArray(w==null?void 0:w.content)?w.content:Array.isArray(w==null?void 0:w.files)?w.files:[]})(),extract:(()=>{let w=(()=>{var U,$,V,B,q,G,M,N,j,_;return!((U=Q.purge)===null||U===void 0)&&U.extract?Q.purge.extract:!(($=Q.content)===null||$===void 0)&&$.extract?Q.content.extract:!((V=Q.purge)===null||V===void 0||(B=V.extract)===null||B===void 0)&&B.DEFAULT?Q.purge.extract.DEFAULT:!((q=Q.content)===null||q===void 0||(G=q.extract)===null||G===void 0)&&G.DEFAULT?Q.content.extract.DEFAULT:!((M=Q.purge)===null||M===void 0||(N=M.options)===null||N===void 0)&&N.extractors?Q.purge.options.extractors:!((j=Q.content)===null||j===void 0||(_=j.options)===null||_===void 0)&&_.extractors?Q.content.options.extractors:{}})(),W={},z=(()=>{var U,$,V,B;if(!((U=Q.purge)===null||U===void 0||($=U.options)===null||$===void 0)&&$.defaultExtractor)return Q.purge.options.defaultExtractor;if(!((V=Q.content)===null||V===void 0||(B=V.options)===null||B===void 0)&&B.defaultExtractor)return Q.content.options.defaultExtractor})();if(z!==void 0&&(W.DEFAULT=z),typeof w=="function")W.DEFAULT=w;else if(Array.isArray(w))for(let{extensions:U,extractor:$}of w??[])for(let V of U)W[V]=$;else typeof w=="object"&&w!==null&&Object.assign(W,w);return W})(),transform:(()=>{let w=(()=>{var z,U,$,V,B,q;return!((z=Q.purge)===null||z===void 0)&&z.transform?Q.purge.transform:!((U=Q.content)===null||U===void 0)&&U.transform?Q.content.transform:!(($=Q.purge)===null||$===void 0||(V=$.transform)===null||V===void 0)&&V.DEFAULT?Q.purge.transform.DEFAULT:!((B=Q.content)===null||B===void 0||(q=B.transform)===null||q===void 0)&&q.DEFAULT?Q.content.transform.DEFAULT:{}})(),W={};return typeof w=="function"&&(W.DEFAULT=w),typeof w=="object"&&w!==null&&Object.assign(W,w),W})()};for(let w of Q.content.files)if(typeof w=="string"&&/{([^,]*?)}/g.test(w)){K.default.warn("invalid-glob-braces",[`The glob pattern ${(0,K.dim)(w)} in your Tailwind CSS configuration is invalid.`,`Update it to ${(0,K.dim)(w.replace(/{([^,]*?)}/g,"$1"))} to silence this warning.`]);break}return Q}}),jw=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>K});function K(Y){if(Object.prototype.toString.call(Y)!=="[object Object]")return!1;let X=Object.getPrototypeOf(Y);return X===null||X===Object.prototype}}),Lw=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"cloneDeep",{enumerable:!0,get:()=>K});function K(Y){return Array.isArray(Y)?Y.map((X)=>K(X)):typeof Y=="object"&&Y!==null?Object.fromEntries(Object.entries(Y).map(([X,Z])=>[X,K(Z)])):Y}}),YK=t((J,K)=>{J.__esModule=!0,J.default=Z;function Y(Q){for(var H=Q.toLowerCase(),w="",W=!1,z=0;z<6&&H[z]!==void 0;z++){var U=H.charCodeAt(z),$=U>=97&&U<=102||U>=48&&U<=57;if(W=U===32,!$)break;w+=H[z]}if(w.length!==0){var V=parseInt(w,16),B=V>=55296&&V<=57343;return B||V===0||V>1114111?["\uFFFD",w.length+(W?1:0)]:[String.fromCodePoint(V),w.length+(W?1:0)]}}var X=/\\/;function Z(Q){var H=X.test(Q);if(!H)return Q;for(var w="",W=0;W<Q.length;W++){if(Q[W]==="\\"){var z=Y(Q.slice(W+1,W+7));if(z!==void 0){w+=z[0],W+=z[1];continue}if(Q[W+1]==="\\"){w+="\\",W++;continue}Q.length===W+1&&(w+=Q[W]);continue}w+=Q[W]}return w}K.exports=J.default}),Fw=t((J,K)=>{J.__esModule=!0,J.default=Y;function Y(X){for(var Z=arguments.length,Q=Array(Z>1?Z-1:0),H=1;H<Z;H++)Q[H-1]=arguments[H];for(;Q.length>0;){var w=Q.shift();if(!X[w])return;X=X[w]}return X}K.exports=J.default}),Ew=t((J,K)=>{J.__esModule=!0,J.default=Y;function Y(X){for(var Z=arguments.length,Q=Array(Z>1?Z-1:0),H=1;H<Z;H++)Q[H-1]=arguments[H];for(;Q.length>0;){var w=Q.shift();X[w]||(X[w]={}),X=X[w]}}K.exports=J.default}),_w=t((J,K)=>{J.__esModule=!0,J.default=Y;function Y(X){for(var Z="",Q=X.indexOf("/*"),H=0;Q>=0;){Z=Z+X.slice(H,Q);var w=X.indexOf("*/",Q+2);if(w<0)return Z;H=w+2,Q=X.indexOf("/*",H)}return Z=Z+X.slice(H),Z}K.exports=J.default}),f5=t((J)=>{J.__esModule=!0,J.stripComments=J.ensureObject=J.getProp=J.unesc=void 0;var K=Q(YK());J.unesc=K.default;var Y=Q(Fw());J.getProp=Y.default;var X=Q(Ew());J.ensureObject=X.default;var Z=Q(_w());J.stripComments=Z.default;function Q(H){return H&&H.__esModule?H:{default:H}}}),p1=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=f5();function X(w,W){for(var z=0;z<W.length;z++){var U=W[z];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(w,U.key,U)}}function Z(w,W,z){return W&&X(w.prototype,W),z&&X(w,z),w}var Q=function w(W,z){if(typeof W!="object"||W===null)return W;var U=new W.constructor;for(var $ in W)if(W.hasOwnProperty($)){var V=W[$],B=typeof V;$==="parent"&&B==="object"?z&&(U[$]=z):V instanceof Array?U[$]=V.map(function(q){return w(q,U)}):U[$]=w(V,U)}return U},H=function(){function w(z){z===void 0&&(z={}),Object.assign(this,z),this.spaces=this.spaces||{},this.spaces.before=this.spaces.before||"",this.spaces.after=this.spaces.after||""}var W=w.prototype;return W.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},W.replaceWith=function(){if(this.parent){for(var z in arguments)this.parent.insertBefore(this,arguments[z]);this.remove()}return this},W.next=function(){return this.parent.at(this.parent.index(this)+1)},W.prev=function(){return this.parent.at(this.parent.index(this)-1)},W.clone=function(z){z===void 0&&(z={});var U=Q(this);for(var $ in z)U[$]=z[$];return U},W.appendToPropertyAndEscape=function(z,U,$){this.raws||(this.raws={});var V=this[z],B=this.raws[z];this[z]=V+U,B||$!==U?this.raws[z]=(B||V)+$:delete this.raws[z]},W.setPropertyAndEscape=function(z,U,$){this.raws||(this.raws={}),this[z]=U,this.raws[z]=$},W.setPropertyWithoutEscape=function(z,U){this[z]=U,this.raws&&delete this.raws[z]},W.isAtPosition=function(z,U){if(this.source&&this.source.start&&this.source.end)return!(this.source.start.line>z||this.source.end.line<z||this.source.start.line===z&&this.source.start.column>U||this.source.end.line===z&&this.source.end.column<U)},W.stringifyProperty=function(z){return this.raws&&this.raws[z]||this[z]},W.valueToString=function(){return String(this.stringifyProperty("value"))},W.toString=function(){return[this.rawSpaceBefore,this.valueToString(),this.rawSpaceAfter].join("")},Z(w,[{key:"rawSpaceBefore",get:function(){var z=this.raws&&this.raws.spaces&&this.raws.spaces.before;return z===void 0&&(z=this.spaces&&this.spaces.before),z||""},set:function(z){(0,Y.ensureObject)(this,"raws","spaces"),this.raws.spaces.before=z}},{key:"rawSpaceAfter",get:function(){var z=this.raws&&this.raws.spaces&&this.raws.spaces.after;return z===void 0&&(z=this.spaces.after),z||""},set:function(z){(0,Y.ensureObject)(this,"raws","spaces"),this.raws.spaces.after=z}}]),w}();J.default=H,K.exports=J.default}),f0=t((J)=>{J.__esModule=!0,J.UNIVERSAL=J.ATTRIBUTE=J.CLASS=J.COMBINATOR=J.COMMENT=J.ID=J.NESTING=J.PSEUDO=J.ROOT=J.SELECTOR=J.STRING=J.TAG=void 0;var K="tag";J.TAG=K;var Y="string";J.STRING=Y;var X="selector";J.SELECTOR=X;var Z="root";J.ROOT=Z;var Q="pseudo";J.PSEUDO=Q;var H="nesting";J.NESTING=H;var w="id";J.ID=w;var W="comment";J.COMMENT=W;var z="combinator";J.COMBINATOR=z;var U="class";J.CLASS=U;var $="attribute";J.ATTRIBUTE=$;var V="universal";J.UNIVERSAL=V}),I4=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=H(p1()),X=Q(f0());function Z(){if(typeof WeakMap!="function")return null;var G=new WeakMap;return Z=function(){return G},G}function Q(G){if(G&&G.__esModule)return G;if(G===null||typeof G!="object"&&typeof G!="function")return{default:G};var M=Z();if(M&&M.has(G))return M.get(G);var N={},j=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var _ in G)if(Object.prototype.hasOwnProperty.call(G,_)){var R=j?Object.getOwnPropertyDescriptor(G,_):null;R&&(R.get||R.set)?Object.defineProperty(N,_,R):N[_]=G[_]}return N.default=G,M&&M.set(G,N),N}function H(G){return G&&G.__esModule?G:{default:G}}function w(G,M){var N;if(typeof Symbol>"u"||G[Symbol.iterator]==null){if(Array.isArray(G)||(N=W(G))||M&&G&&typeof G.length=="number"){N&&(G=N);var j=0;return function(){return j>=G.length?{done:!0}:{done:!1,value:G[j++]}}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
62
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return N=G[Symbol.iterator](),N.next.bind(N)}function W(G,M){if(G){if(typeof G=="string")return z(G,M);var N=Object.prototype.toString.call(G).slice(8,-1);if(N==="Object"&&G.constructor&&(N=G.constructor.name),N==="Map"||N==="Set")return Array.from(G);if(N==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(N))return z(G,M)}}function z(G,M){(M==null||M>G.length)&&(M=G.length);for(var N=0,j=Array(M);N<M;N++)j[N]=G[N];return j}function U(G,M){for(var N=0;N<M.length;N++){var j=M[N];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(G,j.key,j)}}function $(G,M,N){return M&&U(G.prototype,M),N&&U(G,N),G}function V(G,M){G.prototype=Object.create(M.prototype),G.prototype.constructor=G,B(G,M)}function B(G,M){return B=Object.setPrototypeOf||function(N,j){return N.__proto__=j,N},B(G,M)}var q=function(G){V(M,G);function M(j){var _;return _=G.call(this,j)||this,_.nodes||(_.nodes=[]),_}var N=M.prototype;return N.append=function(j){return j.parent=this,this.nodes.push(j),this},N.prepend=function(j){return j.parent=this,this.nodes.unshift(j),this},N.at=function(j){return this.nodes[j]},N.index=function(j){return typeof j=="number"?j:this.nodes.indexOf(j)},N.removeChild=function(j){j=this.index(j),this.at(j).parent=void 0,this.nodes.splice(j,1);var _;for(var R in this.indexes)_=this.indexes[R],_>=j&&(this.indexes[R]=_-1);return this},N.removeAll=function(){for(var j=w(this.nodes),_;!(_=j()).done;){var R=_.value;R.parent=void 0}return this.nodes=[],this},N.empty=function(){return this.removeAll()},N.insertAfter=function(j,_){_.parent=this;var R=this.index(j);this.nodes.splice(R+1,0,_),_.parent=this;var E;for(var L in this.indexes)E=this.indexes[L],R<=E&&(this.indexes[L]=E+1);return this},N.insertBefore=function(j,_){_.parent=this;var R=this.index(j);this.nodes.splice(R,0,_),_.parent=this;var E;for(var L in this.indexes)E=this.indexes[L],E<=R&&(this.indexes[L]=E+1);return this},N._findChildAtPosition=function(j,_){var R=void 0;return this.each(function(E){if(E.atPosition){var L=E.atPosition(j,_);if(L)return R=L,!1}else if(E.isAtPosition(j,_))return R=E,!1}),R},N.atPosition=function(j,_){if(this.isAtPosition(j,_))return this._findChildAtPosition(j,_)||this},N._inferEndPosition=function(){this.last&&this.last.source&&this.last.source.end&&(this.source=this.source||{},this.source.end=this.source.end||{},Object.assign(this.source.end,this.last.source.end))},N.each=function(j){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var _=this.lastEach;if(this.indexes[_]=0,!!this.length){for(var R,E;this.indexes[_]<this.length&&(R=this.indexes[_],E=j(this.at(R),R),E!==!1);)this.indexes[_]+=1;if(delete this.indexes[_],E===!1)return!1}},N.walk=function(j){return this.each(function(_,R){var E=j(_,R);if(E!==!1&&_.length&&(E=_.walk(j)),E===!1)return!1})},N.walkAttributes=function(j){var _=this;return this.walk(function(R){if(R.type===X.ATTRIBUTE)return j.call(_,R)})},N.walkClasses=function(j){var _=this;return this.walk(function(R){if(R.type===X.CLASS)return j.call(_,R)})},N.walkCombinators=function(j){var _=this;return this.walk(function(R){if(R.type===X.COMBINATOR)return j.call(_,R)})},N.walkComments=function(j){var _=this;return this.walk(function(R){if(R.type===X.COMMENT)return j.call(_,R)})},N.walkIds=function(j){var _=this;return this.walk(function(R){if(R.type===X.ID)return j.call(_,R)})},N.walkNesting=function(j){var _=this;return this.walk(function(R){if(R.type===X.NESTING)return j.call(_,R)})},N.walkPseudos=function(j){var _=this;return this.walk(function(R){if(R.type===X.PSEUDO)return j.call(_,R)})},N.walkTags=function(j){var _=this;return this.walk(function(R){if(R.type===X.TAG)return j.call(_,R)})},N.walkUniversals=function(j){var _=this;return this.walk(function(R){if(R.type===X.UNIVERSAL)return j.call(_,R)})},N.split=function(j){var _=this,R=[];return this.reduce(function(E,L,T){var D=j.call(_,L);return R.push(L),D?(E.push(R),R=[]):T===_.length-1&&E.push(R),E},[])},N.map=function(j){return this.nodes.map(j)},N.reduce=function(j,_){return this.nodes.reduce(j,_)},N.every=function(j){return this.nodes.every(j)},N.some=function(j){return this.nodes.some(j)},N.filter=function(j){return this.nodes.filter(j)},N.sort=function(j){return this.nodes.sort(j)},N.toString=function(){return this.map(String).join("")},$(M,[{key:"first",get:function(){return this.at(0)}},{key:"last",get:function(){return this.at(this.length-1)}},{key:"length",get:function(){return this.nodes.length}}]),M}(Y.default);J.default=q,K.exports=J.default}),XK=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Z(I4()),X=f0();function Z(U){return U&&U.__esModule?U:{default:U}}function Q(U,$){for(var V=0;V<$.length;V++){var B=$[V];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(U,B.key,B)}}function H(U,$,V){return $&&Q(U.prototype,$),V&&Q(U,V),U}function w(U,$){U.prototype=Object.create($.prototype),U.prototype.constructor=U,W(U,$)}function W(U,$){return W=Object.setPrototypeOf||function(V,B){return V.__proto__=B,V},W(U,$)}var z=function(U){w($,U);function $(B){var q;return q=U.call(this,B)||this,q.type=X.ROOT,q}var V=$.prototype;return V.toString=function(){var B=this.reduce(function(q,G){return q.push(String(G)),q},[]).join(",");return this.trailingComma?B+",":B},V.error=function(B,q){return this._error?this._error(B,q):Error(B)},H($,[{key:"errorGenerator",set:function(B){this._error=B}}]),$}(Y.default);J.default=z,K.exports=J.default}),ZK=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Z(I4()),X=f0();function Z(W){return W&&W.__esModule?W:{default:W}}function Q(W,z){W.prototype=Object.create(z.prototype),W.prototype.constructor=W,H(W,z)}function H(W,z){return H=Object.setPrototypeOf||function(U,$){return U.__proto__=$,U},H(W,z)}var w=function(W){Q(z,W);function z(U){var $;return $=W.call(this,U)||this,$.type=X.SELECTOR,$}return z}(Y.default);J.default=w,K.exports=J.default}),T4=t((J,K)=>{var Y={},X=Y.hasOwnProperty,Z=function(z,U){if(!z)return U;var $={};for(var V in U)$[V]=X.call(z,V)?z[V]:U[V];return $},Q=/[ -,\.\/:-@\[-\^`\{-~]/,H=/[ -,\.\/:-@\[\]\^`\{-~]/,w=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,W=function z(U,$){$=Z($,z.options),$.quotes!="single"&&$.quotes!="double"&&($.quotes="single");for(var V=$.quotes=="double"?'"':"'",B=$.isIdentifier,q=U.charAt(0),G="",M=0,N=U.length;M<N;){var j=U.charAt(M++),_=j.charCodeAt(),R=void 0;if(_<32||_>126){if(_>=55296&&_<=56319&&M<N){var E=U.charCodeAt(M++);(E&64512)==56320?_=((_&1023)<<10)+(E&1023)+65536:M--}R="\\"+_.toString(16).toUpperCase()+" "}else $.escapeEverything?Q.test(j)?R="\\"+j:R="\\"+_.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(j)?R="\\"+_.toString(16).toUpperCase()+" ":j=="\\"||!B&&(j=='"'&&V==j||j=="'"&&V==j)||B&&H.test(j)?R="\\"+j:R=j;G+=R}return B&&(/^-[-\d]/.test(G)?G="\\-"+G.slice(1):/\d/.test(q)&&(G="\\3"+q+" "+G.slice(1))),G=G.replace(w,function(L,T,D){return T&&T.length%2?L:(T||"")+D}),!B&&$.wrap?V+G+V:G};W.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1},W.version="3.0.0",K.exports=W}),QK=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=H(T4()),X=f5(),Z=H(p1()),Q=f0();function H(V){return V&&V.__esModule?V:{default:V}}function w(V,B){for(var q=0;q<B.length;q++){var G=B[q];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(V,G.key,G)}}function W(V,B,q){return B&&w(V.prototype,B),q&&w(V,q),V}function z(V,B){V.prototype=Object.create(B.prototype),V.prototype.constructor=V,U(V,B)}function U(V,B){return U=Object.setPrototypeOf||function(q,G){return q.__proto__=G,q},U(V,B)}var $=function(V){z(B,V);function B(G){var M;return M=V.call(this,G)||this,M.type=Q.CLASS,M._constructed=!0,M}var q=B.prototype;return q.valueToString=function(){return"."+V.prototype.valueToString.call(this)},W(B,[{key:"value",get:function(){return this._value},set:function(G){if(this._constructed){var M=(0,Y.default)(G,{isIdentifier:!0});M!==G?((0,X.ensureObject)(this,"raws"),this.raws.value=M):this.raws&&delete this.raws.value}this._value=G}}]),B}(Z.default);J.default=$,K.exports=J.default}),HK=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Z(p1()),X=f0();function Z(W){return W&&W.__esModule?W:{default:W}}function Q(W,z){W.prototype=Object.create(z.prototype),W.prototype.constructor=W,H(W,z)}function H(W,z){return H=Object.setPrototypeOf||function(U,$){return U.__proto__=$,U},H(W,z)}var w=function(W){Q(z,W);function z(U){var $;return $=W.call(this,U)||this,$.type=X.COMMENT,$}return z}(Y.default);J.default=w,K.exports=J.default}),WK=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Z(p1()),X=f0();function Z(W){return W&&W.__esModule?W:{default:W}}function Q(W,z){W.prototype=Object.create(z.prototype),W.prototype.constructor=W,H(W,z)}function H(W,z){return H=Object.setPrototypeOf||function(U,$){return U.__proto__=$,U},H(W,z)}var w=function(W){Q(z,W);function z($){var V;return V=W.call(this,$)||this,V.type=X.ID,V}var U=z.prototype;return U.valueToString=function(){return"#"+W.prototype.valueToString.call(this)},z}(Y.default);J.default=w,K.exports=J.default}),C4=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Q(T4()),X=f5(),Z=Q(p1());function Q($){return $&&$.__esModule?$:{default:$}}function H($,V){for(var B=0;B<V.length;B++){var q=V[B];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty($,q.key,q)}}function w($,V,B){return V&&H($.prototype,V),B&&H($,B),$}function W($,V){$.prototype=Object.create(V.prototype),$.prototype.constructor=$,z($,V)}function z($,V){return z=Object.setPrototypeOf||function(B,q){return B.__proto__=q,B},z($,V)}var U=function($){W(V,$);function V(){return $.apply(this,arguments)||this}var B=V.prototype;return B.qualifiedName=function(q){return this.namespace?this.namespaceString+"|"+q:q},B.valueToString=function(){return this.qualifiedName($.prototype.valueToString.call(this))},w(V,[{key:"namespace",get:function(){return this._namespace},set:function(q){if(q===!0||q==="*"||q==="&"){this._namespace=q,this.raws&&delete this.raws.namespace;return}var G=(0,Y.default)(q,{isIdentifier:!0});this._namespace=q,G!==q?((0,X.ensureObject)(this,"raws"),this.raws.namespace=G):this.raws&&delete this.raws.namespace}},{key:"ns",get:function(){return this._namespace},set:function(q){this.namespace=q}},{key:"namespaceString",get:function(){if(this.namespace){var q=this.stringifyProperty("namespace");return q===!0?"":q}else return""}}]),V}(Z.default);J.default=U,K.exports=J.default}),wK=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Z(C4()),X=f0();function Z(W){return W&&W.__esModule?W:{default:W}}function Q(W,z){W.prototype=Object.create(z.prototype),W.prototype.constructor=W,H(W,z)}function H(W,z){return H=Object.setPrototypeOf||function(U,$){return U.__proto__=$,U},H(W,z)}var w=function(W){Q(z,W);function z(U){var $;return $=W.call(this,U)||this,$.type=X.TAG,$}return z}(Y.default);J.default=w,K.exports=J.default}),zK=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Z(p1()),X=f0();function Z(W){return W&&W.__esModule?W:{default:W}}function Q(W,z){W.prototype=Object.create(z.prototype),W.prototype.constructor=W,H(W,z)}function H(W,z){return H=Object.setPrototypeOf||function(U,$){return U.__proto__=$,U},H(W,z)}var w=function(W){Q(z,W);function z(U){var $;return $=W.call(this,U)||this,$.type=X.STRING,$}return z}(Y.default);J.default=w,K.exports=J.default}),UK=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Z(I4()),X=f0();function Z(W){return W&&W.__esModule?W:{default:W}}function Q(W,z){W.prototype=Object.create(z.prototype),W.prototype.constructor=W,H(W,z)}function H(W,z){return H=Object.setPrototypeOf||function(U,$){return U.__proto__=$,U},H(W,z)}var w=function(W){Q(z,W);function z($){var V;return V=W.call(this,$)||this,V.type=X.PSEUDO,V}var U=z.prototype;return U.toString=function(){var $=this.length?"("+this.map(String).join(",")+")":"";return[this.rawSpaceBefore,this.stringifyProperty("value"),$,this.rawSpaceAfter].join("")},z}(Y.default);J.default=w,K.exports=J.default}),Rw=t((J,K)=>{K.exports=function(Y,X){return function(...Z){return console.warn(X),Y(...Z)}}}),$K=t((J)=>{J.__esModule=!0,J.unescapeValue=M,J.default=void 0;var K=H(T4()),Y=H(YK()),X=H(C4()),Z=f0(),Q;function H(E){return E&&E.__esModule?E:{default:E}}function w(E,L){for(var T=0;T<L.length;T++){var D=L[T];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(E,D.key,D)}}function W(E,L,T){return L&&w(E.prototype,L),T&&w(E,T),E}function z(E,L){E.prototype=Object.create(L.prototype),E.prototype.constructor=E,U(E,L)}function U(E,L){return U=Object.setPrototypeOf||function(T,D){return T.__proto__=D,T},U(E,L)}var $=Rw(),V=/^('|")([^]*)\1$/,B=$(function(){},"Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."),q=$(function(){},"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."),G=$(function(){},"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");function M(E){var L=!1,T=null,D=E,P=D.match(V);return P&&(T=P[1],D=P[2]),D=(0,Y.default)(D),D!==E&&(L=!0),{deprecatedUsage:L,unescaped:D,quoteMark:T}}function N(E){if(E.quoteMark!==void 0||E.value===void 0)return E;G();var L=M(E.value),T=L.quoteMark,D=L.unescaped;return E.raws||(E.raws={}),E.raws.value===void 0&&(E.raws.value=E.value),E.value=D,E.quoteMark=T,E}var j=function(E){z(L,E);function L(D){var P;return D===void 0&&(D={}),P=E.call(this,N(D))||this,P.type=Z.ATTRIBUTE,P.raws=P.raws||{},Object.defineProperty(P.raws,"unquoted",{get:$(function(){return P.value},"attr.raws.unquoted is deprecated. Call attr.value instead."),set:$(function(){return P.value},"Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.")}),P._constructed=!0,P}var T=L.prototype;return T.getQuotedValue=function(D){D===void 0&&(D={});var P=this._determineQuoteMark(D),x=_[P],u=(0,K.default)(this._value,x);return u},T._determineQuoteMark=function(D){return D.smart?this.smartQuoteMark(D):this.preferredQuoteMark(D)},T.setValue=function(D,P){P===void 0&&(P={}),this._value=D,this._quoteMark=this._determineQuoteMark(P),this._syncRawValue()},T.smartQuoteMark=function(D){var P=this.value,x=P.replace(/[^']/g,"").length,u=P.replace(/[^"]/g,"").length;if(x+u===0){var p=(0,K.default)(P,{isIdentifier:!0});if(p===P)return L.NO_QUOTE;var i=this.preferredQuoteMark(D);if(i===L.NO_QUOTE){var C=this.quoteMark||D.quoteMark||L.DOUBLE_QUOTE,S=_[C],I=(0,K.default)(P,S);if(I.length<p.length)return C}return i}else return u===x?this.preferredQuoteMark(D):u<x?L.DOUBLE_QUOTE:L.SINGLE_QUOTE},T.preferredQuoteMark=function(D){var P=D.preferCurrentQuoteMark?this.quoteMark:D.quoteMark;return P===void 0&&(P=D.preferCurrentQuoteMark?D.quoteMark:this.quoteMark),P===void 0&&(P=L.DOUBLE_QUOTE),P},T._syncRawValue=function(){var D=(0,K.default)(this._value,_[this.quoteMark]);D===this._value?this.raws&&delete this.raws.value:this.raws.value=D},T._handleEscapes=function(D,P){if(this._constructed){var x=(0,K.default)(P,{isIdentifier:!0});x!==P?this.raws[D]=x:delete this.raws[D]}},T._spacesFor=function(D){var P={before:"",after:""},x=this.spaces[D]||{},u=this.raws.spaces&&this.raws.spaces[D]||{};return Object.assign(P,x,u)},T._stringFor=function(D,P,x){P===void 0&&(P=D),x===void 0&&(x=R);var u=this._spacesFor(P);return x(this.stringifyProperty(D),u)},T.offsetOf=function(D){var P=1,x=this._spacesFor("attribute");if(P+=x.before.length,D==="namespace"||D==="ns")return this.namespace?P:-1;if(D==="attributeNS"||(P+=this.namespaceString.length,this.namespace&&(P+=1),D==="attribute"))return P;P+=this.stringifyProperty("attribute").length,P+=x.after.length;var u=this._spacesFor("operator");P+=u.before.length;var p=this.stringifyProperty("operator");if(D==="operator")return p?P:-1;P+=p.length,P+=u.after.length;var i=this._spacesFor("value");P+=i.before.length;var C=this.stringifyProperty("value");if(D==="value")return C?P:-1;P+=C.length,P+=i.after.length;var S=this._spacesFor("insensitive");return P+=S.before.length,D==="insensitive"&&this.insensitive?P:-1},T.toString=function(){var D=this,P=[this.rawSpaceBefore,"["];return P.push(this._stringFor("qualifiedAttribute","attribute")),this.operator&&(this.value||this.value==="")&&(P.push(this._stringFor("operator")),P.push(this._stringFor("value")),P.push(this._stringFor("insensitiveFlag","insensitive",function(x,u){return x.length>0&&!D.quoted&&u.before.length===0&&!(D.spaces.value&&D.spaces.value.after)&&(u.before=" "),R(x,u)}))),P.push("]"),P.push(this.rawSpaceAfter),P.join("")},W(L,[{key:"quoted",get:function(){var D=this.quoteMark;return D==="'"||D==='"'},set:function(D){q()}},{key:"quoteMark",get:function(){return this._quoteMark},set:function(D){if(!this._constructed){this._quoteMark=D;return}this._quoteMark!==D&&(this._quoteMark=D,this._syncRawValue())}},{key:"qualifiedAttribute",get:function(){return this.qualifiedName(this.raws.attribute||this.attribute)}},{key:"insensitiveFlag",get:function(){return this.insensitive?"i":""}},{key:"value",get:function(){return this._value},set:function(D){if(this._constructed){var P=M(D),x=P.deprecatedUsage,u=P.unescaped,p=P.quoteMark;if(x&&B(),u===this._value&&p===this._quoteMark)return;this._value=u,this._quoteMark=p,this._syncRawValue()}else this._value=D}},{key:"attribute",get:function(){return this._attribute},set:function(D){this._handleEscapes("attribute",D),this._attribute=D}}]),L}(X.default);J.default=j,j.NO_QUOTE=null,j.SINGLE_QUOTE="'",j.DOUBLE_QUOTE='"';var _=(Q={"'":{quotes:"single",wrap:!0},'"':{quotes:"double",wrap:!0}},Q[null]={isIdentifier:!0},Q);function R(E,L){return""+L.before+E+L.after}}),VK=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Z(C4()),X=f0();function Z(W){return W&&W.__esModule?W:{default:W}}function Q(W,z){W.prototype=Object.create(z.prototype),W.prototype.constructor=W,H(W,z)}function H(W,z){return H=Object.setPrototypeOf||function(U,$){return U.__proto__=$,U},H(W,z)}var w=function(W){Q(z,W);function z(U){var $;return $=W.call(this,U)||this,$.type=X.UNIVERSAL,$.value="*",$}return z}(Y.default);J.default=w,K.exports=J.default}),BK=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Z(p1()),X=f0();function Z(W){return W&&W.__esModule?W:{default:W}}function Q(W,z){W.prototype=Object.create(z.prototype),W.prototype.constructor=W,H(W,z)}function H(W,z){return H=Object.setPrototypeOf||function(U,$){return U.__proto__=$,U},H(W,z)}var w=function(W){Q(z,W);function z(U){var $;return $=W.call(this,U)||this,$.type=X.COMBINATOR,$}return z}(Y.default);J.default=w,K.exports=J.default}),AK=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Z(p1()),X=f0();function Z(W){return W&&W.__esModule?W:{default:W}}function Q(W,z){W.prototype=Object.create(z.prototype),W.prototype.constructor=W,H(W,z)}function H(W,z){return H=Object.setPrototypeOf||function(U,$){return U.__proto__=$,U},H(W,z)}var w=function(W){Q(z,W);function z(U){var $;return $=W.call(this,U)||this,$.type=X.NESTING,$.value="&",$}return z}(Y.default);J.default=w,K.exports=J.default}),Dw=t((J,K)=>{J.__esModule=!0,J.default=Y;function Y(X){return X.sort(function(Z,Q){return Z-Q})}K.exports=J.default}),GK=t((J)=>{J.__esModule=!0,J.combinator=J.word=J.comment=J.str=J.tab=J.newline=J.feed=J.cr=J.backslash=J.bang=J.slash=J.doubleQuote=J.singleQuote=J.space=J.greaterThan=J.pipe=J.equals=J.plus=J.caret=J.tilde=J.dollar=J.closeSquare=J.openSquare=J.closeParenthesis=J.openParenthesis=J.semicolon=J.colon=J.comma=J.at=J.asterisk=J.ampersand=void 0;var K=38;J.ampersand=K;var Y=42;J.asterisk=Y;var X=64;J.at=X;var Z=44;J.comma=Z;var Q=58;J.colon=Q;var H=59;J.semicolon=H;var w=40;J.openParenthesis=w;var W=41;J.closeParenthesis=W;var z=91;J.openSquare=z;var U=93;J.closeSquare=U;var $=36;J.dollar=$;var V=126;J.tilde=V;var B=94;J.caret=B;var q=43;J.plus=q;var G=61;J.equals=G;var M=124;J.pipe=M;var N=62;J.greaterThan=N;var j=32;J.space=j;var _=39;J.singleQuote=_;var R=34;J.doubleQuote=R;var E=47;J.slash=E;var L=33;J.bang=L;var T=92;J.backslash=T;var D=13;J.cr=D;var P=12;J.feed=P;var x=10;J.newline=x;var u=9;J.tab=u;var p=_;J.str=p;var i=-1;J.comment=i;var C=-2;J.word=C;var S=-3;J.combinator=S}),Iw=t((J)=>{J.__esModule=!0,J.default=q,J.FIELDS=void 0;var K=Q(GK()),Y,X;function Z(){if(typeof WeakMap!="function")return null;var G=new WeakMap;return Z=function(){return G},G}function Q(G){if(G&&G.__esModule)return G;if(G===null||typeof G!="object"&&typeof G!="function")return{default:G};var M=Z();if(M&&M.has(G))return M.get(G);var N={},j=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var _ in G)if(Object.prototype.hasOwnProperty.call(G,_)){var R=j?Object.getOwnPropertyDescriptor(G,_):null;R&&(R.get||R.set)?Object.defineProperty(N,_,R):N[_]=G[_]}return N.default=G,M&&M.set(G,N),N}var H=(Y={},Y[K.tab]=!0,Y[K.newline]=!0,Y[K.cr]=!0,Y[K.feed]=!0,Y),w=(X={},X[K.space]=!0,X[K.tab]=!0,X[K.newline]=!0,X[K.cr]=!0,X[K.feed]=!0,X[K.ampersand]=!0,X[K.asterisk]=!0,X[K.bang]=!0,X[K.comma]=!0,X[K.colon]=!0,X[K.semicolon]=!0,X[K.openParenthesis]=!0,X[K.closeParenthesis]=!0,X[K.openSquare]=!0,X[K.closeSquare]=!0,X[K.singleQuote]=!0,X[K.doubleQuote]=!0,X[K.plus]=!0,X[K.pipe]=!0,X[K.tilde]=!0,X[K.greaterThan]=!0,X[K.equals]=!0,X[K.dollar]=!0,X[K.caret]=!0,X[K.slash]=!0,X),W={},z="0123456789abcdefABCDEF";for(U=0;U<z.length;U++)W[z.charCodeAt(U)]=!0;var U;function $(G,M){var N=M,j;do{if(j=G.charCodeAt(N),w[j])return N-1;j===K.backslash?N=V(G,N)+1:N++}while(N<G.length);return N-1}function V(G,M){var N=M,j=G.charCodeAt(N+1);if(!H[j])if(W[j]){var _=0;do N++,_++,j=G.charCodeAt(N+1);while(W[j]&&_<6);_<6&&j===K.space&&N++}else N++;return N}var B={TYPE:0,START_LINE:1,START_COL:2,END_LINE:3,END_COL:4,START_POS:5,END_POS:6};J.FIELDS=B;function q(G){var M=[],N=G.css.valueOf(),j=N,_=j.length,R=-1,E=1,L=0,T=0,D,P,x,u,p,i,C,S,I,d,l,c,o;function m(f,y){if(G.safe)N+=y,I=N.length-1;else throw G.error("Unclosed "+f,E,L-R,L)}for(;L<_;){switch(D=N.charCodeAt(L),D===K.newline&&(R=L,E+=1),D){case K.space:case K.tab:case K.newline:case K.cr:case K.feed:I=L;do I+=1,D=N.charCodeAt(I),D===K.newline&&(R=I,E+=1);while(D===K.space||D===K.newline||D===K.tab||D===K.cr||D===K.feed);o=K.space,u=E,x=I-R-1,T=I;break;case K.plus:case K.greaterThan:case K.tilde:case K.pipe:I=L;do I+=1,D=N.charCodeAt(I);while(D===K.plus||D===K.greaterThan||D===K.tilde||D===K.pipe);o=K.combinator,u=E,x=L-R,T=I;break;case K.asterisk:case K.ampersand:case K.bang:case K.comma:case K.equals:case K.dollar:case K.caret:case K.openSquare:case K.closeSquare:case K.colon:case K.semicolon:case K.openParenthesis:case K.closeParenthesis:I=L,o=D,u=E,x=L-R,T=I+1;break;case K.singleQuote:case K.doubleQuote:c=D===K.singleQuote?"'":'"',I=L;do for(p=!1,I=N.indexOf(c,I+1),I===-1&&m("quote",c),i=I;N.charCodeAt(i-1)===K.backslash;)i-=1,p=!p;while(p);o=K.str,u=E,x=L-R,T=I+1;break;default:D===K.slash&&N.charCodeAt(L+1)===K.asterisk?(I=N.indexOf("*/",L+2)+1,I===0&&m("comment","*/"),P=N.slice(L,I+1),S=P.split(`
63
- `),C=S.length-1,C>0?(d=E+C,l=I-S[C].length):(d=E,l=R),o=K.comment,E=d,u=d,x=I-l):D===K.slash?(I=L,o=D,u=E,x=L-R,T=I+1):(I=$(N,L),o=K.word,u=E,x=I-R),T=I+1;break}M.push([o,E,L-R,u,x,L,T]),l&&(R=l,l=null),L=T}return M}}),Tw=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=T(XK()),X=T(ZK()),Z=T(QK()),Q=T(HK()),H=T(WK()),w=T(wK()),W=T(zK()),z=T(UK()),U=L($K()),$=T(VK()),V=T(BK()),B=T(AK()),q=T(Dw()),G=L(Iw()),M=L(GK()),N=L(f0()),j=f5(),_,R;function E(){if(typeof WeakMap!="function")return null;var m=new WeakMap;return E=function(){return m},m}function L(m){if(m&&m.__esModule)return m;if(m===null||typeof m!="object"&&typeof m!="function")return{default:m};var f=E();if(f&&f.has(m))return f.get(m);var y={},k=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in m)if(Object.prototype.hasOwnProperty.call(m,s)){var g=k?Object.getOwnPropertyDescriptor(m,s):null;g&&(g.get||g.set)?Object.defineProperty(y,s,g):y[s]=m[s]}return y.default=m,f&&f.set(m,y),y}function T(m){return m&&m.__esModule?m:{default:m}}function D(m,f){for(var y=0;y<f.length;y++){var k=f[y];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(m,k.key,k)}}function P(m,f,y){return f&&D(m.prototype,f),y&&D(m,y),m}var x=(_={},_[M.space]=!0,_[M.cr]=!0,_[M.feed]=!0,_[M.newline]=!0,_[M.tab]=!0,_),u=Object.assign({},x,(R={},R[M.comment]=!0,R));function p(m){return{line:m[G.FIELDS.START_LINE],column:m[G.FIELDS.START_COL]}}function i(m){return{line:m[G.FIELDS.END_LINE],column:m[G.FIELDS.END_COL]}}function C(m,f,y,k){return{start:{line:m,column:f},end:{line:y,column:k}}}function S(m){return C(m[G.FIELDS.START_LINE],m[G.FIELDS.START_COL],m[G.FIELDS.END_LINE],m[G.FIELDS.END_COL])}function I(m,f){if(m)return C(m[G.FIELDS.START_LINE],m[G.FIELDS.START_COL],f[G.FIELDS.END_LINE],f[G.FIELDS.END_COL])}function d(m,f){var y=m[f];if(typeof y=="string")return y.indexOf("\\")!==-1&&((0,j.ensureObject)(m,"raws"),m[f]=(0,j.unesc)(y),m.raws[f]===void 0&&(m.raws[f]=y)),m}function l(m,f){for(var y=-1,k=[];(y=m.indexOf(f,y+1))!==-1;)k.push(y);return k}function c(){var m=Array.prototype.concat.apply([],arguments);return m.filter(function(f,y){return y===m.indexOf(f)})}var o=function(){function m(y,k){k===void 0&&(k={}),this.rule=y,this.options=Object.assign({lossy:!1,safe:!1},k),this.position=0,this.css=typeof this.rule=="string"?this.rule:this.rule.selector,this.tokens=(0,G.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var s=I(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new Y.default({source:s}),this.root.errorGenerator=this._errorGenerator();var g=new X.default({source:{start:{line:1,column:1}}});this.root.append(g),this.current=g,this.loop()}var f=m.prototype;return f._errorGenerator=function(){var y=this;return function(k,s){return typeof y.rule=="string"?Error(k):y.rule.error(k,s)}},f.attribute=function(){var y=[],k=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[G.FIELDS.TYPE]!==M.closeSquare;)y.push(this.currToken),this.position++;if(this.currToken[G.FIELDS.TYPE]!==M.closeSquare)return this.expected("closing square bracket",this.currToken[G.FIELDS.START_POS]);var s=y.length,g={source:C(k[1],k[2],this.currToken[3],this.currToken[4]),sourceIndex:k[G.FIELDS.START_POS]};if(s===1&&!~[M.word].indexOf(y[0][G.FIELDS.TYPE]))return this.expected("attribute",y[0][G.FIELDS.START_POS]);for(var e=0,Y0="",X0="",J0=null,V0=!1;e<s;){var _0=y[e],K0=this.content(_0),A0=y[e+1];switch(_0[G.FIELDS.TYPE]){case M.space:if(V0=!0,this.options.lossy)break;if(J0){(0,j.ensureObject)(g,"spaces",J0);var S0=g.spaces[J0].after||"";g.spaces[J0].after=S0+K0;var c0=(0,j.getProp)(g,"raws","spaces",J0,"after")||null;c0&&(g.raws.spaces[J0].after=c0+K0)}else Y0=Y0+K0,X0=X0+K0;break;case M.asterisk:if(A0[G.FIELDS.TYPE]===M.equals)g.operator=K0,J0="operator";else if((!g.namespace||J0==="namespace"&&!V0)&&A0){Y0&&((0,j.ensureObject)(g,"spaces","attribute"),g.spaces.attribute.before=Y0,Y0=""),X0&&((0,j.ensureObject)(g,"raws","spaces","attribute"),g.raws.spaces.attribute.before=Y0,X0=""),g.namespace=(g.namespace||"")+K0;var g0=(0,j.getProp)(g,"raws","namespace")||null;g0&&(g.raws.namespace+=K0),J0="namespace"}V0=!1;break;case M.dollar:if(J0==="value"){var I0=(0,j.getProp)(g,"raws","value");g.value+="$",I0&&(g.raws.value=I0+"$");break}case M.caret:A0[G.FIELDS.TYPE]===M.equals&&(g.operator=K0,J0="operator"),V0=!1;break;case M.combinator:if(K0==="~"&&A0[G.FIELDS.TYPE]===M.equals&&(g.operator=K0,J0="operator"),K0!=="|"){V0=!1;break}A0[G.FIELDS.TYPE]===M.equals?(g.operator=K0,J0="operator"):!g.namespace&&!g.attribute&&(g.namespace=!0),V0=!1;break;case M.word:if(A0&&this.content(A0)==="|"&&y[e+2]&&y[e+2][G.FIELDS.TYPE]!==M.equals&&!g.operator&&!g.namespace)g.namespace=K0,J0="namespace";else if(!g.attribute||J0==="attribute"&&!V0){Y0&&((0,j.ensureObject)(g,"spaces","attribute"),g.spaces.attribute.before=Y0,Y0=""),X0&&((0,j.ensureObject)(g,"raws","spaces","attribute"),g.raws.spaces.attribute.before=X0,X0=""),g.attribute=(g.attribute||"")+K0;var d0=(0,j.getProp)(g,"raws","attribute")||null;d0&&(g.raws.attribute+=K0),J0="attribute"}else if(!g.value&&g.value!==""||J0==="value"&&!V0){var u0=(0,j.unesc)(K0),p0=(0,j.getProp)(g,"raws","value")||"",Y1=g.value||"";g.value=Y1+u0,g.quoteMark=null,(u0!==K0||p0)&&((0,j.ensureObject)(g,"raws"),g.raws.value=(p0||Y1)+K0),J0="value"}else{var X1=K0==="i"||K0==="I";(g.value||g.value==="")&&(g.quoteMark||V0)?(g.insensitive=X1,(!X1||K0==="I")&&((0,j.ensureObject)(g,"raws"),g.raws.insensitiveFlag=K0),J0="insensitive",Y0&&((0,j.ensureObject)(g,"spaces","insensitive"),g.spaces.insensitive.before=Y0,Y0=""),X0&&((0,j.ensureObject)(g,"raws","spaces","insensitive"),g.raws.spaces.insensitive.before=X0,X0="")):(g.value||g.value==="")&&(J0="value",g.value+=K0,g.raws.value&&(g.raws.value+=K0))}V0=!1;break;case M.str:if(!g.attribute||!g.operator)return this.error("Expected an attribute followed by an operator preceding the string.",{index:_0[G.FIELDS.START_POS]});var n0=(0,U.unescapeValue)(K0),Z8=n0.unescaped,S1=n0.quoteMark;g.value=Z8,g.quoteMark=S1,J0="value",(0,j.ensureObject)(g,"raws"),g.raws.value=K0,V0=!1;break;case M.equals:if(!g.attribute)return this.expected("attribute",_0[G.FIELDS.START_POS],K0);if(g.value)return this.error('Unexpected "=" found; an operator was already defined.',{index:_0[G.FIELDS.START_POS]});g.operator=g.operator?g.operator+K0:K0,J0="operator",V0=!1;break;case M.comment:if(J0)if(V0||A0&&A0[G.FIELDS.TYPE]===M.space||J0==="insensitive"){var o1=(0,j.getProp)(g,"spaces",J0,"after")||"",Q8=(0,j.getProp)(g,"raws","spaces",J0,"after")||o1;(0,j.ensureObject)(g,"raws","spaces",J0),g.raws.spaces[J0].after=Q8+K0}else{var n8=g[J0]||"",H8=(0,j.getProp)(g,"raws",J0)||n8;(0,j.ensureObject)(g,"raws"),g.raws[J0]=H8+K0}else X0=X0+K0;break;default:return this.error('Unexpected "'+K0+'" found.',{index:_0[G.FIELDS.START_POS]})}e++}d(g,"attribute"),d(g,"namespace"),this.newNode(new U.default(g)),this.position++},f.parseWhitespaceEquivalentTokens=function(y){y<0&&(y=this.tokens.length);var k=this.position,s=[],g="",e=void 0;do if(x[this.currToken[G.FIELDS.TYPE]])this.options.lossy||(g+=this.content());else if(this.currToken[G.FIELDS.TYPE]===M.comment){var Y0={};g&&(Y0.before=g,g=""),e=new Q.default({value:this.content(),source:S(this.currToken),sourceIndex:this.currToken[G.FIELDS.START_POS],spaces:Y0}),s.push(e)}while(++this.position<y);if(g){if(e)e.spaces.after=g;else if(!this.options.lossy){var X0=this.tokens[k],J0=this.tokens[this.position-1];s.push(new W.default({value:"",source:C(X0[G.FIELDS.START_LINE],X0[G.FIELDS.START_COL],J0[G.FIELDS.END_LINE],J0[G.FIELDS.END_COL]),sourceIndex:X0[G.FIELDS.START_POS],spaces:{before:g,after:""}}))}}return s},f.convertWhitespaceNodesToSpace=function(y,k){var s=this;k===void 0&&(k=!1);var g="",e="";y.forEach(function(X0){var J0=s.lossySpace(X0.spaces.before,k),V0=s.lossySpace(X0.rawSpaceBefore,k);g+=J0+s.lossySpace(X0.spaces.after,k&&J0.length===0),e+=J0+X0.value+s.lossySpace(X0.rawSpaceAfter,k&&V0.length===0)}),e===g&&(e=void 0);var Y0={space:g,rawSpace:e};return Y0},f.isNamedCombinator=function(y){return y===void 0&&(y=this.position),this.tokens[y+0]&&this.tokens[y+0][G.FIELDS.TYPE]===M.slash&&this.tokens[y+1]&&this.tokens[y+1][G.FIELDS.TYPE]===M.word&&this.tokens[y+2]&&this.tokens[y+2][G.FIELDS.TYPE]===M.slash},f.namedCombinator=function(){if(this.isNamedCombinator()){var y=this.content(this.tokens[this.position+1]),k=(0,j.unesc)(y).toLowerCase(),s={};k!==y&&(s.value="/"+y+"/");var g=new V.default({value:"/"+k+"/",source:C(this.currToken[G.FIELDS.START_LINE],this.currToken[G.FIELDS.START_COL],this.tokens[this.position+2][G.FIELDS.END_LINE],this.tokens[this.position+2][G.FIELDS.END_COL]),sourceIndex:this.currToken[G.FIELDS.START_POS],raws:s});return this.position=this.position+3,g}else this.unexpected()},f.combinator=function(){var y=this;if(this.content()==="|")return this.namespace();var k=this.locateNextMeaningfulToken(this.position);if(k<0||this.tokens[k][G.FIELDS.TYPE]===M.comma){var s=this.parseWhitespaceEquivalentTokens(k);if(s.length>0){var g=this.current.last;if(g){var e=this.convertWhitespaceNodesToSpace(s),Y0=e.space,X0=e.rawSpace;X0!==void 0&&(g.rawSpaceAfter+=X0),g.spaces.after+=Y0}else s.forEach(function(p0){return y.newNode(p0)})}return}var J0=this.currToken,V0=void 0;k>this.position&&(V0=this.parseWhitespaceEquivalentTokens(k));var _0;if(this.isNamedCombinator()?_0=this.namedCombinator():this.currToken[G.FIELDS.TYPE]===M.combinator?(_0=new V.default({value:this.content(),source:S(this.currToken),sourceIndex:this.currToken[G.FIELDS.START_POS]}),this.position++):x[this.currToken[G.FIELDS.TYPE]]||V0||this.unexpected(),_0){if(V0){var K0=this.convertWhitespaceNodesToSpace(V0),A0=K0.space,S0=K0.rawSpace;_0.spaces.before=A0,_0.rawSpaceBefore=S0}}else{var c0=this.convertWhitespaceNodesToSpace(V0,!0),g0=c0.space,I0=c0.rawSpace;I0||(I0=g0);var d0={},u0={spaces:{}};g0.endsWith(" ")&&I0.endsWith(" ")?(d0.before=g0.slice(0,g0.length-1),u0.spaces.before=I0.slice(0,I0.length-1)):g0.startsWith(" ")&&I0.startsWith(" ")?(d0.after=g0.slice(1),u0.spaces.after=I0.slice(1)):u0.value=I0,_0=new V.default({value:" ",source:I(J0,this.tokens[this.position-1]),sourceIndex:J0[G.FIELDS.START_POS],spaces:d0,raws:u0})}return this.currToken&&this.currToken[G.FIELDS.TYPE]===M.space&&(_0.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(_0)},f.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}this.current._inferEndPosition();var y=new X.default({source:{start:p(this.tokens[this.position+1])}});this.current.parent.append(y),this.current=y,this.position++},f.comment=function(){var y=this.currToken;this.newNode(new Q.default({value:this.content(),source:S(y),sourceIndex:y[G.FIELDS.START_POS]})),this.position++},f.error=function(y,k){throw this.root.error(y,k)},f.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[G.FIELDS.START_POS]})},f.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[G.FIELDS.START_POS])},f.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[G.FIELDS.START_POS])},f.unexpected=function(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[G.FIELDS.START_POS])},f.namespace=function(){var y=this.prevToken&&this.content(this.prevToken)||!0;if(this.nextToken[G.FIELDS.TYPE]===M.word)return this.position++,this.word(y);if(this.nextToken[G.FIELDS.TYPE]===M.asterisk)return this.position++,this.universal(y)},f.nesting=function(){if(this.nextToken){var y=this.content(this.nextToken);if(y==="|"){this.position++;return}}var k=this.currToken;this.newNode(new B.default({value:this.content(),source:S(k),sourceIndex:k[G.FIELDS.START_POS]})),this.position++},f.parentheses=function(){var y=this.current.last,k=1;if(this.position++,y&&y.type===N.PSEUDO){var s=new X.default({source:{start:p(this.tokens[this.position-1])}}),g=this.current;for(y.append(s),this.current=s;this.position<this.tokens.length&&k;)this.currToken[G.FIELDS.TYPE]===M.openParenthesis&&k++,this.currToken[G.FIELDS.TYPE]===M.closeParenthesis&&k--,k?this.parse():(this.current.source.end=i(this.currToken),this.current.parent.source.end=i(this.currToken),this.position++);this.current=g}else{for(var e=this.currToken,Y0="(",X0;this.position<this.tokens.length&&k;)this.currToken[G.FIELDS.TYPE]===M.openParenthesis&&k++,this.currToken[G.FIELDS.TYPE]===M.closeParenthesis&&k--,X0=this.currToken,Y0+=this.parseParenthesisToken(this.currToken),this.position++;y?y.appendToPropertyAndEscape("value",Y0,Y0):this.newNode(new W.default({value:Y0,source:C(e[G.FIELDS.START_LINE],e[G.FIELDS.START_COL],X0[G.FIELDS.END_LINE],X0[G.FIELDS.END_COL]),sourceIndex:e[G.FIELDS.START_POS]}))}if(k)return this.expected("closing parenthesis",this.currToken[G.FIELDS.START_POS])},f.pseudo=function(){for(var y=this,k="",s=this.currToken;this.currToken&&this.currToken[G.FIELDS.TYPE]===M.colon;)k+=this.content(),this.position++;if(!this.currToken)return this.expected(["pseudo-class","pseudo-element"],this.position-1);if(this.currToken[G.FIELDS.TYPE]===M.word)this.splitWord(!1,function(g,e){k+=g,y.newNode(new z.default({value:k,source:I(s,y.currToken),sourceIndex:s[G.FIELDS.START_POS]})),e>1&&y.nextToken&&y.nextToken[G.FIELDS.TYPE]===M.openParenthesis&&y.error("Misplaced parenthesis.",{index:y.nextToken[G.FIELDS.START_POS]})});else return this.expected(["pseudo-class","pseudo-element"],this.currToken[G.FIELDS.START_POS])},f.space=function(){var y=this.content();this.position===0||this.prevToken[G.FIELDS.TYPE]===M.comma||this.prevToken[G.FIELDS.TYPE]===M.openParenthesis||this.current.nodes.every(function(k){return k.type==="comment"})?(this.spaces=this.optionalSpace(y),this.position++):this.position===this.tokens.length-1||this.nextToken[G.FIELDS.TYPE]===M.comma||this.nextToken[G.FIELDS.TYPE]===M.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(y),this.position++):this.combinator()},f.string=function(){var y=this.currToken;this.newNode(new W.default({value:this.content(),source:S(y),sourceIndex:y[G.FIELDS.START_POS]})),this.position++},f.universal=function(y){var k=this.nextToken;if(k&&this.content(k)==="|")return this.position++,this.namespace();var s=this.currToken;this.newNode(new $.default({value:this.content(),source:S(s),sourceIndex:s[G.FIELDS.START_POS]}),y),this.position++},f.splitWord=function(y,k){for(var s=this,g=this.nextToken,e=this.content();g&&~[M.dollar,M.caret,M.equals,M.word].indexOf(g[G.FIELDS.TYPE]);){this.position++;var Y0=this.content();if(e+=Y0,Y0.lastIndexOf("\\")===Y0.length-1){var X0=this.nextToken;X0&&X0[G.FIELDS.TYPE]===M.space&&(e+=this.requiredSpace(this.content(X0)),this.position++)}g=this.nextToken}var J0=l(e,".").filter(function(A0){var S0=e[A0-1]==="\\",c0=/^\d+\.\d+%$/.test(e);return!S0&&!c0}),V0=l(e,"#").filter(function(A0){return e[A0-1]!=="\\"}),_0=l(e,"#{");_0.length&&(V0=V0.filter(function(A0){return!~_0.indexOf(A0)}));var K0=(0,q.default)(c([0].concat(J0,V0)));K0.forEach(function(A0,S0){var c0=K0[S0+1]||e.length,g0=e.slice(A0,c0);if(S0===0&&k)return k.call(s,g0,K0.length);var I0,d0=s.currToken,u0=d0[G.FIELDS.START_POS]+K0[S0],p0=C(d0[1],d0[2]+A0,d0[3],d0[2]+(c0-1));if(~J0.indexOf(A0)){var Y1={value:g0.slice(1),source:p0,sourceIndex:u0};I0=new Z.default(d(Y1,"value"))}else if(~V0.indexOf(A0)){var X1={value:g0.slice(1),source:p0,sourceIndex:u0};I0=new H.default(d(X1,"value"))}else{var n0={value:g0,source:p0,sourceIndex:u0};d(n0,"value"),I0=new w.default(n0)}s.newNode(I0,y),y=null}),this.position++},f.word=function(y){var k=this.nextToken;return k&&this.content(k)==="|"?(this.position++,this.namespace()):this.splitWord(y)},f.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.current._inferEndPosition(),this.root},f.parse=function(y){switch(this.currToken[G.FIELDS.TYPE]){case M.space:this.space();break;case M.comment:this.comment();break;case M.openParenthesis:this.parentheses();break;case M.closeParenthesis:y&&this.missingParenthesis();break;case M.openSquare:this.attribute();break;case M.dollar:case M.caret:case M.equals:case M.word:this.word();break;case M.colon:this.pseudo();break;case M.comma:this.comma();break;case M.asterisk:this.universal();break;case M.ampersand:this.nesting();break;case M.slash:case M.combinator:this.combinator();break;case M.str:this.string();break;case M.closeSquare:this.missingSquareBracket();case M.semicolon:this.missingBackslash();default:this.unexpected()}},f.expected=function(y,k,s){if(Array.isArray(y)){var g=y.pop();y=y.join(", ")+" or "+g}var e=/^[aeiou]/.test(y[0])?"an":"a";return s?this.error("Expected "+e+" "+y+', found "'+s+'" instead.',{index:k}):this.error("Expected "+e+" "+y+".",{index:k})},f.requiredSpace=function(y){return this.options.lossy?" ":y},f.optionalSpace=function(y){return this.options.lossy?"":y},f.lossySpace=function(y,k){return this.options.lossy?k?" ":"":y},f.parseParenthesisToken=function(y){var k=this.content(y);return y[G.FIELDS.TYPE]===M.space?this.requiredSpace(k):k},f.newNode=function(y,k){return k&&(/^ +$/.test(k)&&(this.options.lossy||(this.spaces=(this.spaces||"")+k),k=!0),y.namespace=k,d(y,"namespace")),this.spaces&&(y.spaces.before=this.spaces,this.spaces=""),this.current.append(y)},f.content=function(y){return y===void 0&&(y=this.currToken),this.css.slice(y[G.FIELDS.START_POS],y[G.FIELDS.END_POS])},f.locateNextMeaningfulToken=function(y){y===void 0&&(y=this.position+1);for(var k=y;k<this.tokens.length;)if(u[this.tokens[k][G.FIELDS.TYPE]]){k++;continue}else return k;return-1},P(m,[{key:"currToken",get:function(){return this.tokens[this.position]}},{key:"nextToken",get:function(){return this.tokens[this.position+1]}},{key:"prevToken",get:function(){return this.tokens[this.position-1]}}]),m}();J.default=o,K.exports=J.default}),Cw=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=X(Tw());function X(Q){return Q&&Q.__esModule?Q:{default:Q}}var Z=function(){function Q(w,W){this.func=w||function(){},this.funcRes=null,this.options=W}var H=Q.prototype;return H._shouldUpdateSelector=function(w,W){W===void 0&&(W={});var z=Object.assign({},this.options,W);return z.updateSelector===!1?!1:typeof w!="string"},H._isLossy=function(w){w===void 0&&(w={});var W=Object.assign({},this.options,w);return W.lossless===!1},H._root=function(w,W){W===void 0&&(W={});var z=new Y.default(w,this._parseOptions(W));return z.root},H._parseOptions=function(w){return{lossy:this._isLossy(w)}},H._run=function(w,W){var z=this;return W===void 0&&(W={}),new Promise(function(U,$){try{var V=z._root(w,W);Promise.resolve(z.func(V)).then(function(B){var q=void 0;return z._shouldUpdateSelector(w,W)&&(q=V.toString(),w.selector=q),{transform:B,root:V,string:q}}).then(U,$)}catch(B){$(B);return}})},H._runSync=function(w,W){W===void 0&&(W={});var z=this._root(w,W),U=this.func(z);if(U&&typeof U.then=="function")throw Error("Selector processor returned a promise to a synchronous call.");var $=void 0;return W.updateSelector&&typeof w!="string"&&($=z.toString(),w.selector=$),{transform:U,root:z,string:$}},H.ast=function(w,W){return this._run(w,W).then(function(z){return z.root})},H.astSync=function(w,W){return this._runSync(w,W).root},H.transform=function(w,W){return this._run(w,W).then(function(z){return z.transform})},H.transformSync=function(w,W){return this._runSync(w,W).transform},H.process=function(w,W){return this._run(w,W).then(function(z){return z.string||z.root.toString()})},H.processSync=function(w,W){var z=this._runSync(w,W);return z.string||z.root.toString()},Q}();J.default=Z,K.exports=J.default}),Pw=t((J)=>{J.__esModule=!0,J.universal=J.tag=J.string=J.selector=J.root=J.pseudo=J.nesting=J.id=J.comment=J.combinator=J.className=J.attribute=void 0;var K=B($K()),Y=B(QK()),X=B(BK()),Z=B(HK()),Q=B(WK()),H=B(AK()),w=B(UK()),W=B(XK()),z=B(ZK()),U=B(zK()),$=B(wK()),V=B(VK());function B(x){return x&&x.__esModule?x:{default:x}}var q=function(x){return new K.default(x)};J.attribute=q;var G=function(x){return new Y.default(x)};J.className=G;var M=function(x){return new X.default(x)};J.combinator=M;var N=function(x){return new Z.default(x)};J.comment=N;var j=function(x){return new Q.default(x)};J.id=j;var _=function(x){return new H.default(x)};J.nesting=_;var R=function(x){return new w.default(x)};J.pseudo=R;var E=function(x){return new W.default(x)};J.root=E;var L=function(x){return new z.default(x)};J.selector=L;var T=function(x){return new U.default(x)};J.string=T;var D=function(x){return new $.default(x)};J.tag=D;var P=function(x){return new V.default(x)};J.universal=P}),Sw=t((J)=>{J.__esModule=!0,J.isNode=Z,J.isPseudoElement=j,J.isPseudoClass=_,J.isContainer=R,J.isNamespace=E,J.isUniversal=J.isTag=J.isString=J.isSelector=J.isRoot=J.isPseudo=J.isNesting=J.isIdentifier=J.isComment=J.isCombinator=J.isClassName=J.isAttribute=void 0;var K=f0(),Y,X=(Y={},Y[K.ATTRIBUTE]=!0,Y[K.CLASS]=!0,Y[K.COMBINATOR]=!0,Y[K.COMMENT]=!0,Y[K.ID]=!0,Y[K.NESTING]=!0,Y[K.PSEUDO]=!0,Y[K.ROOT]=!0,Y[K.SELECTOR]=!0,Y[K.STRING]=!0,Y[K.TAG]=!0,Y[K.UNIVERSAL]=!0,Y);function Z(L){return typeof L=="object"&&X[L.type]}function Q(L,T){return Z(T)&&T.type===L}var H=Q.bind(null,K.ATTRIBUTE);J.isAttribute=H;var w=Q.bind(null,K.CLASS);J.isClassName=w;var W=Q.bind(null,K.COMBINATOR);J.isCombinator=W;var z=Q.bind(null,K.COMMENT);J.isComment=z;var U=Q.bind(null,K.ID);J.isIdentifier=U;var $=Q.bind(null,K.NESTING);J.isNesting=$;var V=Q.bind(null,K.PSEUDO);J.isPseudo=V;var B=Q.bind(null,K.ROOT);J.isRoot=B;var q=Q.bind(null,K.SELECTOR);J.isSelector=q;var G=Q.bind(null,K.STRING);J.isString=G;var M=Q.bind(null,K.TAG);J.isTag=M;var N=Q.bind(null,K.UNIVERSAL);J.isUniversal=N;function j(L){return V(L)&&L.value&&(L.value.startsWith("::")||L.value.toLowerCase()===":before"||L.value.toLowerCase()===":after"||L.value.toLowerCase()===":first-letter"||L.value.toLowerCase()===":first-line")}function _(L){return V(L)&&!j(L)}function R(L){return!!(Z(L)&&L.walk)}function E(L){return H(L)||M(L)}}),vw=t((J)=>{J.__esModule=!0;var K=f0();Object.keys(K).forEach(function(Z){Z==="default"||Z==="__esModule"||Z in J&&J[Z]===K[Z]||(J[Z]=K[Z])});var Y=Pw();Object.keys(Y).forEach(function(Z){Z==="default"||Z==="__esModule"||Z in J&&J[Z]===Y[Z]||(J[Z]=Y[Z])});var X=Sw();Object.keys(X).forEach(function(Z){Z==="default"||Z==="__esModule"||Z in J&&J[Z]===X[Z]||(J[Z]=X[Z])})}),yw=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=H(Cw()),X=Q(vw());function Z(){if(typeof WeakMap!="function")return null;var z=new WeakMap;return Z=function(){return z},z}function Q(z){if(z&&z.__esModule)return z;if(z===null||typeof z!="object"&&typeof z!="function")return{default:z};var U=Z();if(U&&U.has(z))return U.get(z);var $={},V=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var B in z)if(Object.prototype.hasOwnProperty.call(z,B)){var q=V?Object.getOwnPropertyDescriptor(z,B):null;q&&(q.get||q.set)?Object.defineProperty($,B,q):$[B]=z[B]}return $.default=z,U&&U.set(z,$),$}function H(z){return z&&z.__esModule?z:{default:z}}var w=function(z){return new Y.default(z)};Object.assign(w,X),delete w.__esModule;var W=w;J.default=W,K.exports=J.default}),kw=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>K});function K(Y){return Y.replace(/\\,/g,"\\2c ")}}),gw=t((J,K)=>{K.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}}),MK=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function K(q,G){for(var M in G)Object.defineProperty(q,M,{enumerable:!0,get:G[M]})}K(J,{parseColor:()=>V,formatColor:()=>B});var Y=X(gw());function X(q){return q&&q.__esModule?q:{default:q}}var Z=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i,Q=/^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,H=/(?:\d+|\d*\.\d+)%?/,w=/(?:\s*,\s*|\s+)/,W=/\s*[,/]\s*/,z=/var\(--(?:[^ )]*?)\)/,U=new RegExp(`^(rgb)a?\\(\\s*(${H.source}|${z.source})(?:${w.source}(${H.source}|${z.source}))?(?:${w.source}(${H.source}|${z.source}))?(?:${W.source}(${H.source}|${z.source}))?\\s*\\)$`),$=new RegExp(`^(hsl)a?\\(\\s*((?:${H.source})(?:deg|rad|grad|turn)?|${z.source})(?:${w.source}(${H.source}|${z.source}))?(?:${w.source}(${H.source}|${z.source}))?(?:${W.source}(${H.source}|${z.source}))?\\s*\\)$`);function V(q,{loose:G=!1}={}){var M,N;if(typeof q!="string")return null;if(q=q.trim(),q==="transparent")return{mode:"rgb",color:["0","0","0"],alpha:"0"};if(q in Y.default)return{mode:"rgb",color:Y.default[q].map((L)=>L.toString())};let j=q.replace(Q,(L,T,D,P,x)=>["#",T,T,D,D,P,P,x?x+x:""].join("")).match(Z);if(j!==null)return{mode:"rgb",color:[parseInt(j[1],16),parseInt(j[2],16),parseInt(j[3],16)].map((L)=>L.toString()),alpha:j[4]?(parseInt(j[4],16)/255).toString():void 0};var _;let R=(_=q.match(U))!==null&&_!==void 0?_:q.match($);if(R===null)return null;let E=[R[2],R[3],R[4]].filter(Boolean).map((L)=>L.toString());return!G&&E.length!==3||E.length<3&&!E.some((L)=>/^var\(.*?\)$/.test(L))?null:{mode:R[1],color:E,alpha:(M=R[5])===null||M===void 0||(N=M.toString)===null||N===void 0?void 0:N.call(M)}}function B({mode:q,color:G,alpha:M}){let N=M!==void 0;return`${q}(${G.join(" ")}${N?` / ${M}`:""})`}}),qK=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function K(Q,H){for(var w in H)Object.defineProperty(Q,w,{enumerable:!0,get:H[w]})}K(J,{withAlphaValue:()=>X,default:()=>Z});var Y=MK();function X(Q,H,w){if(typeof Q=="function")return Q({opacityValue:H});let W=(0,Y.parseColor)(Q,{loose:!0});return W===null?w:(0,Y.formatColor)({...W,alpha:H})}function Z({color:Q,property:H,variable:w}){let W=[].concat(H);if(typeof Q=="function")return{[w]:"1",...Object.fromEntries(W.map((U)=>[U,Q({opacityVariable:w,opacityValue:`var(${w})`})]))};let z=(0,Y.parseColor)(Q);return z===null?Object.fromEntries(W.map((U)=>[U,Q])):z.alpha!==void 0?Object.fromEntries(W.map((U)=>[U,Q])):{[w]:"1",...Object.fromEntries(W.map((U)=>[U,(0,Y.formatColor)({...z,alpha:`var(${w})`})]))}}}),xw=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function K(V,B){for(var q in B)Object.defineProperty(V,q,{enumerable:!0,get:B[q]})}K(J,{pattern:()=>Q,withoutCapturing:()=>H,any:()=>w,optional:()=>W,zeroOrMore:()=>z,nestedBrackets:()=>U,escape:()=>$});var Y=/[\\^$.*+?()[\]{}|]/g,X=RegExp(Y.source);function Z(V){return V=Array.isArray(V)?V:[V],V=V.map((B)=>B instanceof RegExp?B.source:B),V.join("")}function Q(V){return new RegExp(Z(V),"g")}function H(V){return new RegExp(`(?:${Z(V)})`,"g")}function w(V){return`(?:${V.map(Z).join("|")})`}function W(V){return`(?:${Z(V)})?`}function z(V){return`(?:${Z(V)})*`}function U(V,B,q=1){return H([$(V),/[^\s]*/,q===1?`[^${$(V)}${$(B)}s]*`:w([`[^${$(V)}${$(B)}s]*`,U(V,B,q-1)]),/[^\s]*/,$(B)])}function $(V){return V&&X.test(V)?V.replace(Y,"\\$&"):V||""}}),bw=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"splitAtTopLevelOnly",{enumerable:!0,get:()=>Z});var K=X(xw());function Y(Q){if(typeof WeakMap!="function")return null;var H=new WeakMap,w=new WeakMap;return(Y=function(W){return W?w:H})(Q)}function X(Q,H){if(!H&&Q&&Q.__esModule)return Q;if(Q===null||typeof Q!="object"&&typeof Q!="function")return{default:Q};var w=Y(H);if(w&&w.has(Q))return w.get(Q);var W={},z=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var U in Q)if(U!=="default"&&Object.prototype.hasOwnProperty.call(Q,U)){var $=z?Object.getOwnPropertyDescriptor(Q,U):null;$&&($.get||$.set)?Object.defineProperty(W,U,$):W[U]=Q[U]}return W.default=Q,w&&w.set(Q,W),W}function*Z(Q,H){let w=new RegExp(`[(){}\\[\\]${K.escape(H)}]`,"g"),W=0,z=0,U=!1,$=0,V=0,B=H.length;for(let q of Q.matchAll(w)){let G=q[0]===H[$],M=$===B-1,N=G&&M;q[0]==="("&&W++,q[0]===")"&&W--,q[0]==="["&&W++,q[0]==="]"&&W--,q[0]==="{"&&W++,q[0]==="}"&&W--,G&&W===0&&(V===0&&(V=q.index),$++),N&&W===0&&(U=!0,yield Q.substring(z,V),z=V+B),$===B&&($=0,V=0)}U?yield Q.substring(z):yield Q}}),hw=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function K(W,z){for(var U in z)Object.defineProperty(W,U,{enumerable:!0,get:z[U]})}K(J,{parseBoxShadowValue:()=>H,formatBoxShadowValue:()=>w});var Y=bw(),X=new Set(["inset","inherit","initial","revert","unset"]),Z=/\ +(?![^(]*\))/g,Q=/^-?(\d+|\.\d+)(.*?)$/g;function H(W){return Array.from((0,Y.splitAtTopLevelOnly)(W,",")).map((z)=>{let U=z.trim(),$={raw:U},V=U.split(Z),B=new Set;for(let q of V)Q.lastIndex=0,!B.has("KEYWORD")&&X.has(q)?($.keyword=q,B.add("KEYWORD")):Q.test(q)?B.has("X")?B.has("Y")?B.has("BLUR")?B.has("SPREAD")||($.spread=q,B.add("SPREAD")):($.blur=q,B.add("BLUR")):($.y=q,B.add("Y")):($.x=q,B.add("X")):$.color?($.unknown||($.unknown=[]),$.unknown.push(q)):$.color=q;return $.valid=$.x!==void 0&&$.y!==void 0,$})}function w(W){return W.map((z)=>z.valid?[z.keyword,z.x,z.y,z.blur,z.spread,z.color].filter(Boolean).join(" "):z.raw).join(", ")}}),mw=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function K(C,S){for(var I in S)Object.defineProperty(C,I,{enumerable:!0,get:S[I]})}K(J,{normalize:()=>w,url:()=>W,number:()=>z,percentage:()=>U,length:()=>B,lineWidth:()=>G,shadow:()=>M,color:()=>N,image:()=>j,gradient:()=>R,position:()=>L,familyName:()=>T,genericName:()=>P,absoluteSize:()=>u,relativeSize:()=>i});var Y=MK(),X=hw(),Z=["min","max","clamp","calc"],Q=/,(?![^(]*\))/g,H=/_(?![^(]*\))/g;function w(C,S=!0){return C.includes("url(")?C.split(/(url\(.*?\))/g).filter(Boolean).map((I)=>/^url\(.*?\)$/.test(I)?I:w(I,!1)).join(""):(C=C.replace(/([^\\])_+/g,(I,d)=>d+" ".repeat(I.length-1)).replace(/^_/g," ").replace(/\\_/g,"_"),S&&(C=C.trim()),C=C.replace(/(calc|min|max|clamp)\(.+\)/g,(I)=>I.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 ")),C)}function W(C){return C.startsWith("url(")}function z(C){return!isNaN(Number(C))||Z.some((S)=>new RegExp(`^${S}\\(.+?`).test(C))}function U(C){return C.split(H).every((S)=>/%$/g.test(S)||Z.some((I)=>new RegExp(`^${I}\\(.+?%`).test(S)))}var $=["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","lh","vw","vh","vmin","vmax"],V=`(?:${$.join("|")})`;function B(C){return C.split(H).every((S)=>S==="0"||new RegExp(`${V}$`).test(S)||Z.some((I)=>new RegExp(`^${I}\\(.+?${V}`).test(S)))}var q=new Set(["thin","medium","thick"]);function G(C){return q.has(C)}function M(C){let S=(0,X.parseBoxShadowValue)(w(C));for(let I of S)if(!I.valid)return!1;return!0}function N(C){let S=0;return C.split(H).every((I)=>(I=w(I),I.startsWith("var(")?!0:(0,Y.parseColor)(I,{loose:!0})!==null?(S++,!0):!1))?S>0:!1}function j(C){let S=0;return C.split(Q).every((I)=>(I=w(I),I.startsWith("var(")?!0:W(I)||R(I)||["element(","image(","cross-fade(","image-set("].some((d)=>I.startsWith(d))?(S++,!0):!1))?S>0:!1}var _=new Set(["linear-gradient","radial-gradient","repeating-linear-gradient","repeating-radial-gradient","conic-gradient"]);function R(C){C=w(C);for(let S of _)if(C.startsWith(`${S}(`))return!0;return!1}var E=new Set(["center","top","right","bottom","left"]);function L(C){let S=0;return C.split(H).every((I)=>(I=w(I),I.startsWith("var(")?!0:E.has(I)||B(I)||U(I)?(S++,!0):!1))?S>0:!1}function T(C){let S=0;return C.split(Q).every((I)=>(I=w(I),I.startsWith("var(")?!0:I.includes(" ")&&!/(['"])([^"']+)\1/g.test(I)||/^\d/g.test(I)?!1:(S++,!0)))?S>0:!1}var D=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","math","emoji","fangsong"]);function P(C){return D.has(C)}var x=new Set(["xx-small","x-small","small","medium","large","x-large","x-large","xxx-large"]);function u(C){return x.has(C)}var p=new Set(["larger","smaller"]);function i(C){return p.has(C)}}),fw=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function K(L,T){for(var D in T)Object.defineProperty(L,D,{enumerable:!0,get:T[D]})}K(J,{updateAllClasses:()=>W,asValue:()=>$,parseColorFormat:()=>q,asColor:()=>G,asLookupValue:()=>M,coerceValue:()=>E});var Y=w(yw()),X=w(kw()),Z=qK(),Q=mw(),H=w(eJ());function w(L){return L&&L.__esModule?L:{default:L}}function W(L,T){return(0,Y.default)((D)=>{D.walkClasses((P)=>{let x=T(P.value);P.value=x,P.raws&&P.raws.value&&(P.raws.value=(0,X.default)(P.raws.value))})}).processSync(L)}function z(L,T){if(!V(L))return;let D=L.slice(1,-1);if(T(D))return(0,Q.normalize)(D)}function U(L,T={},D){let P=T[L];if(P!==void 0)return(0,H.default)(P);if(V(L)){let x=z(L,D);return x===void 0?void 0:(0,H.default)(x)}}function $(L,T={},{validate:D=()=>!0}={}){var P;let x=(P=T.values)===null||P===void 0?void 0:P[L];return x!==void 0?x:T.supportsNegativeValues&&L.startsWith("-")?U(L.slice(1),T.values,D):z(L,D)}function V(L){return L.startsWith("[")&&L.endsWith("]")}function B(L){let T=L.lastIndexOf("/");return T===-1||T===L.length-1?[L]:[L.slice(0,T),L.slice(T+1)]}function q(L){if(typeof L=="string"&&L.includes("<alpha-value>")){let T=L;return({opacityValue:D=1})=>T.replace("<alpha-value>",D)}return L}function G(L,T={},{tailwindConfig:D={}}={}){var P;if(((P=T.values)===null||P===void 0?void 0:P[L])!==void 0){var x;return q((x=T.values)===null||x===void 0?void 0:x[L])}let[u,p]=B(L);if(p!==void 0){var i,C,S,I;let d=(I=(i=T.values)===null||i===void 0?void 0:i[u])!==null&&I!==void 0?I:V(u)?u.slice(1,-1):void 0;return d===void 0?void 0:(d=q(d),V(p)?(0,Z.withAlphaValue)(d,p.slice(1,-1)):((C=D.theme)===null||C===void 0||(S=C.opacity)===null||S===void 0?void 0:S[p])===void 0?void 0:(0,Z.withAlphaValue)(d,D.theme.opacity[p]))}return $(L,T,{validate:Q.color})}function M(L,T={}){var D;return(D=T.values)===null||D===void 0?void 0:D[L]}function N(L){return(T,D)=>$(T,D,{validate:L})}var j={any:$,color:G,url:N(Q.url),image:N(Q.image),length:N(Q.length),percentage:N(Q.percentage),position:N(Q.position),lookup:M,"generic-name":N(Q.genericName),"family-name":N(Q.familyName),number:N(Q.number),"line-width":N(Q.lineWidth),"absolute-size":N(Q.absoluteSize),"relative-size":N(Q.relativeSize),shadow:N(Q.shadow)},_=Object.keys(j);function R(L,T){let D=L.indexOf(T);return D===-1?[void 0,L]:[L.slice(0,D),L.slice(D+1)]}function E(L,T,D,P){if(V(T)){let x=T.slice(1,-1),[u,p]=R(x,":");if(!/^[\w-_]+$/g.test(u))p=x;else if(u!==void 0&&!_.includes(u))return[];if(p.length>0&&_.includes(u))return[$(`[${p}]`,D),u]}for(let x of[].concat(L)){let u=j[x](T,D,{tailwindConfig:P});if(u!==void 0)return[u,x]}return[]}}),dw=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>K});function K(Y){return typeof Y=="function"?Y({}):Y}}),lw=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>i});var K=q(eJ()),Y=q(Aw()),X=q(Gw()),Z=q(JK()),Q=q(Mw()),H=qw(),w=Ow(),W=Nw(),z=q(jw()),U=Lw(),$=fw(),V=qK(),B=q(dw());function q(C){return C&&C.__esModule?C:{default:C}}function G(C){return typeof C=="function"}function M(C){return typeof C=="object"&&C!==null}function N(C,...S){let I=S.pop();for(let d of S)for(let l in d){let c=I(C[l],d[l]);c===void 0?M(C[l])&&M(d[l])?C[l]=N(C[l],d[l],I):C[l]=d[l]:C[l]=c}return C}var j={colors:Q.default,negative(C){return Object.keys(C).filter((S)=>C[S]!=="0").reduce((S,I)=>{let d=(0,K.default)(C[I]);return d!==void 0&&(S[`-${I}`]=d),S},{})},breakpoints(C){return Object.keys(C).filter((S)=>typeof C[S]=="string").reduce((S,I)=>({...S,[`screen-${I}`]:C[I]}),{})}};function _(C,...S){return G(C)?C(...S):C}function R(C){return C.reduce((S,{extend:I})=>N(S,I,(d,l)=>d===void 0?[l]:Array.isArray(d)?[l,...d]:[l,d]),{})}function E(C){return{...C.reduce((S,I)=>(0,H.defaults)(S,I),{}),extend:R(C)}}function L(C,S){if(Array.isArray(C)&&M(C[0]))return C.concat(S);if(Array.isArray(S)&&M(S[0])&&M(C))return[C,...S];if(Array.isArray(S))return S}function T({extend:C,...S}){return N(S,C,(I,d)=>!G(I)&&!d.some(G)?N({},I,...d,L):(l,c)=>N({},...[I,...d].map((o)=>_(o,l,c)),L))}function*D(C){let S=(0,w.toPath)(C);if(S.length===0||(yield S,Array.isArray(C)))return;let I=/^(.*?)\s*\/\s*([^/]+)$/,d=C.match(I);if(d!==null){let[,l,c]=d,o=(0,w.toPath)(l);o.alpha=c,yield o}}function P(C){let S=(I,d)=>{for(let l of D(I)){let c=0,o=C;for(;o!=null&&c<l.length;)o=o[l[c++]],o=G(o)&&(l.alpha===void 0||c<=l.length-1)?o(S,j):o;if(o!==void 0){if(l.alpha!==void 0){let m=(0,$.parseColorFormat)(o);return(0,V.withAlphaValue)(m,l.alpha,(0,B.default)(m))}return(0,z.default)(o)?(0,U.cloneDeep)(o):o}}return d};return Object.assign(S,{theme:S,...j}),Object.keys(C).reduce((I,d)=>(I[d]=G(C[d])?C[d](S,j):C[d],I),{})}function x(C){let S=[];return C.forEach((I)=>{S=[...S,I];var d;let l=(d=I==null?void 0:I.plugins)!==null&&d!==void 0?d:[];l.length!==0&&l.forEach((c)=>{c.__isOptionsFunction&&(c=c());var o;S=[...S,...x([(o=c==null?void 0:c.config)!==null&&o!==void 0?o:{}])]})}),S}function u(C){return[...C].reduceRight((S,I)=>G(I)?I({corePlugins:S}):(0,X.default)(I,S),Y.default)}function p(C){return[...C].reduceRight((S,I)=>[...S,...I],[])}function i(C){let S=[...x(C),{prefix:"",important:!1,separator:":",variantOrder:Z.default.variantOrder}];var I,d;return(0,W.normalizeConfig)((0,H.defaults)({theme:P(T(E(S.map((l)=>(I=l==null?void 0:l.theme)!==null&&I!==void 0?I:{})))),corePlugins:u(S.map((l)=>l.corePlugins)),plugins:p(C.map((l)=>(d=l==null?void 0:l.plugins)!==null&&d!==void 0?d:[]))},...S))}}),OK={};R4(OK,{default:()=>NK});var NK,cw=_4(()=>{NK={yellow:(J)=>J}}),uw=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function K($,V){for(var B in V)Object.defineProperty($,B,{enumerable:!0,get:V[B]})}K(J,{flagEnabled:()=>w,issueFlagNotices:()=>z,default:()=>U});var Y=Z((cw(),x5(OK))),X=Z((D4(),x5(m5)));function Z($){return $&&$.__esModule?$:{default:$}}var Q={optimizeUniversalDefaults:!1},H={future:["hoverOnlyWhenSupported","respectDefaultRingColorOpacity"],experimental:["optimizeUniversalDefaults","matchVariant"]};function w($,V){if(H.future.includes(V)){var B,q,G;return $.future==="all"||((G=(q=$==null||(B=$.future)===null||B===void 0?void 0:B[V])!==null&&q!==void 0?q:Q[V])!==null&&G!==void 0?G:!1)}if(H.experimental.includes(V)){var M,N,j;return $.experimental==="all"||((j=(N=$==null||(M=$.experimental)===null||M===void 0?void 0:M[V])!==null&&N!==void 0?N:Q[V])!==null&&j!==void 0?j:!1)}return!1}function W($){if($.experimental==="all")return H.experimental;var V;return Object.keys((V=$==null?void 0:$.experimental)!==null&&V!==void 0?V:{}).filter((B)=>H.experimental.includes(B)&&$.experimental[B])}function z($){if(process.env.JEST_WORKER_ID===void 0&&W($).length>0){let V=W($).map((B)=>Y.default.yellow(B)).join(", ");X.default.warn("experimental-flags-enabled",[`You have enabled experimental features: ${V}`,"Experimental features in Tailwind CSS are not covered by semver, may introduce breaking changes, and can change at any time."])}}var U=H}),pw=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>Z});var K=X(JK()),Y=uw();function X(Q){return Q&&Q.__esModule?Q:{default:Q}}function Z(Q){var H;let w=((H=Q==null?void 0:Q.presets)!==null&&H!==void 0?H:[K.default]).slice().reverse().flatMap((U)=>Z(typeof U=="function"?U():U)),W={respectDefaultRingColorOpacity:{theme:{ringColor:{DEFAULT:"#3b82f67f"}}}},z=Object.keys(W).filter((U)=>(0,Y.flagEnabled)(Q,U)).map((U)=>W[U]);return[Q,...z,...w]}}),iw=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>Z});var K=X(lw()),Y=X(pw());function X(Q){return Q&&Q.__esModule?Q:{default:Q}}function Z(...Q){let[,...H]=(0,Y.default)(Q[0]);return(0,K.default)([...Q,...H])}}),ow=t((J,K)=>{var Y=iw();K.exports=(Y.__esModule?Y:{default:Y}).default}),j5;var x8=null;async function d5(){return j5||(x8?(await x8,j5):(x8=Promise.resolve().then(()=>(Bw(),tJ)).then((J)=>J.getYogaModule()).then((J)=>j5=J),await x8,x8=null,j5))}var c8=(J,K)=>()=>(K||J((K={exports:{}}).exports,K),K.exports),rw=c8((J,K)=>{K.exports=["em","ex","ch","rem","vh","vw","vmin","vmax","px","mm","cm","in","pt","pc","mozmm"]}),nw=c8((J,K)=>{K.exports=["deg","grad","rad","turn"]}),sw=c8((J,K)=>{K.exports=["dpi","dpcm","dppx"]}),aw=c8((J,K)=>{K.exports=["Hz","kHz"]}),tw=c8((J,K)=>{K.exports=["s","ms"]}),ew=rw(),jK=nw(),LK=sw(),FK=aw(),EK=tw();function P4(J){if(/\.\D?$/.test(J))throw Error("The dot should be followed by a number");if(/^[+-]{2}/.test(J))throw Error("Only one leading +/- is allowed");if(Jz(J)>1)throw Error("Only one dot is allowed");if(/%$/.test(J)){this.type="percentage",this.value=H4(J),this.unit="%";return}var K=Yz(J);if(!K){this.type="number",this.value=H4(J);return}this.type=Zz(K),this.value=H4(J.substr(0,J.length-K.length)),this.unit=K}P4.prototype.valueOf=function(){return this.value};P4.prototype.toString=function(){return this.value+(this.unit||"")};function u8(J){return new P4(J)}function Jz(J){var K=J.match(/\./g);return K?K.length:0}function H4(J){var K=parseFloat(J);if(isNaN(K))throw Error("Invalid number: "+J);return K}var Kz=[].concat(jK,FK,ew,LK,EK);function Yz(J){var K=J.match(/\D+$/),Y=K&&K[0];if(Y&&Kz.indexOf(Y)===-1)throw Error("Invalid unit: "+Y);return Y}var Xz=Object.assign(L5(jK,"angle"),L5(FK,"frequency"),L5(LK,"resolution"),L5(EK,"time"));function L5(J,K){return Object.fromEntries(J.map((Y)=>[Y,K]))}function Zz(J){return Xz[J]||"length"}function S5(J){let K=typeof J;return!(K==="number"||K==="bigint"||K==="string"||K==="boolean")}function Qz(J){return/^class\s/.test(J.toString())}function Hz(J){return"dangerouslySetInnerHTML"in J}function Wz(J){let K=typeof J>"u"?[]:[].concat(J).flat(1/0),Y=[];for(let X=0;X<K.length;X++){let Z=K[X];typeof Z>"u"||typeof Z=="boolean"||Z===null||(typeof Z=="number"&&(Z=String(Z)),typeof Z=="string"&&Y.length&&typeof Y[Y.length-1]=="string"?Y[Y.length-1]+=Z:Y.push(Z))}return Y}function U0(J,K,Y,X,Z=!1){if(typeof J=="number")return J;try{if(J=J.trim(),/[ /\(,]/.test(J))return;if(J===String(+J))return+J;let Q=new u8(J);if(Q.type==="length")switch(Q.unit){case"em":return Q.value*K;case"rem":return Q.value*16;case"vw":return~~(Q.value*X._viewportWidth/100);case"vh":return~~(Q.value*X._viewportHeight/100);default:return Q.value}else{if(Q.type==="angle")return _K(J);if(Q.type==="percentage"&&Z)return Q.value/100*Y}}catch{}}function _K(J){let K=new u8(J);switch(K.unit){case"deg":return K.value;case"rad":return K.value*180/Math.PI;case"turn":return K.value*360;case"grad":return 0.9*K.value}}function v5(J,K){return[J[0]*K[0]+J[2]*K[1],J[1]*K[0]+J[3]*K[1],J[0]*K[2]+J[2]*K[3],J[1]*K[2]+J[3]*K[3],J[0]*K[4]+J[2]*K[5]+J[4],J[1]*K[4]+J[3]*K[5]+J[5]]}function V1(J,K,Y,X){let Z=K[J];if(typeof Z>"u"){if(X&&typeof J<"u")throw Error(`Invalid value for CSS property "${X}". Allowed values: ${Object.keys(K).map((Q)=>`"${Q}"`).join(" | ")}. Received: "${J}".`);Z=Y}return Z}var W4,w4,wz=[32,160,4961,65792,65793,4153,4241,10].map((J)=>String.fromCodePoint(J));function A1(J,K,Y){if(!W4||!w4){if(!(typeof Intl<"u"&&("Segmenter"in Intl)))throw Error("Intl.Segmenter does not exist, please use import a polyfill.");W4=new Intl.Segmenter(Y,{granularity:"word"}),w4=new Intl.Segmenter(Y,{granularity:"grapheme"})}if(K==="grapheme")return[...w4.segment(J)].map((X)=>X.segment);{let X=[...W4.segment(J)].map((H)=>H.segment),Z=[],Q=0;for(;Q<X.length;){let H=X[Q];if(H=="\xA0"){let w=Q===0?"":Z.pop(),W=Q===X.length-1?"":X[Q+1];Z.push(w+"\xA0"+W),Q+=2}else Z.push(H),Q++}return Z}}function a(J,K,Y){let X="";for(let[Z,Q]of Object.entries(K))typeof Q<"u"&&(X+=` ${Z}="${Q}"`);return Y?`<${J}${X}>${Y}</${J}>`:`<${J}${X}/>`}function zz(J=20){let K=new Map;function Y(Q,H){if(K.size>=J){let w=K.keys().next().value;K.delete(w)}K.set(Q,H)}function X(Q){if(!K.has(Q))return;let H=K.get(Q);return K.delete(Q),K.set(Q,H),H}function Z(){K.clear()}return{set:Y,get:X,clear:Z}}function S4(J){return J?J.split(/[, ]/).filter(Boolean).map(Number):null}function Uz(J){return Object.prototype.toString.call(J)}function RK(J){return typeof J=="string"}function $z(J){return typeof J=="number"}function Vz(J){return Uz(J)==="[object Undefined]"}function Bz(J,K){if(K==="break-all")return{words:A1(J,"grapheme"),requiredBreaks:[]};if(K==="keep-all")return{words:A1(J,"word"),requiredBreaks:[]};let Y=new q6(J),X=0,Z=Y.nextBreak(),Q=[],H=[!1];for(;Z;){let w=J.slice(X,Z.position);Q.push(w),Z.required?H.push(!0):H.push(!1),X=Z.position,Z=Y.nextBreak()}return{words:Q,requiredBreaks:H}}var Az=(J)=>J.replaceAll(/([A-Z])/g,(K,Y)=>`-${Y.toLowerCase()}`);function DK(J,K=","){let Y=[],X=0,Z=0;K=new RegExp(K);for(let Q=0;Q<J.length;Q++)J[Q]==="("?Z++:J[Q]===")"&&Z--,Z===0&&K.test(J[Q])&&(Y.push(J.slice(X,Q).trim()),X=Q+1);return Y.push(J.slice(X).trim()),Y}var Gz="image/avif",Mz="image/webp",l5="image/apng",c5="image/png",u5="image/jpeg",p5="image/gif",v4="image/svg+xml";function IK(J){let K=new DataView(J),Y=4,X=K.byteLength;for(;Y<X;){let Z=K.getUint16(Y,!1);if(Z>X)throw TypeError("Invalid JPEG");let Q=K.getUint8(Z+1+Y);if(Q===192||Q===193||Q===194)return[K.getUint16(Z+7+Y,!1),K.getUint16(Z+5+Y,!1)];Y+=Z+2}throw TypeError("Invalid JPEG")}function TK(J){let K=new Uint8Array(J.slice(6,10));return[K[0]|K[1]<<8,K[2]|K[3]<<8]}function CK(J){let K=new DataView(J);return[K.getUint16(18,!1),K.getUint16(22,!1)]}var u1=zz(100),y5=new Map,qz=[c5,l5,u5,p5,v4];function Oz(J){let K="",Y=new Uint8Array(J);for(let X=0;X<Y.byteLength;X++)K+=String.fromCharCode(Y[X]);return btoa(K)}function Nz(J){let K=atob(J),Y=K.length,X=new Uint8Array(Y);for(let Z=0;Z<Y;Z++)X[Z]=K.charCodeAt(Z);return X.buffer}function DJ(J,K){let Y=K.match(/<svg[^>]*>/)[0],X=Y.match(/viewBox=['"](.+)['"]/),Z=X?S4(X[1]):null,Q=Y.match(/width=['"](\d*\.\d+|\d+)['"]/),H=Y.match(/height=['"](\d*\.\d+|\d+)['"]/);if(!Z&&(!Q||!H))throw Error(`Failed to parse SVG from ${J}: missing "viewBox"`);let w=Z?[Z[2],Z[3]]:[+Q[1],+H[1]],W=w[0]/w[1];return Q&&H?[+Q[1],+H[1]]:Q?[+Q[1],+Q[1]/W]:H?[+H[1]*W,+H[1]]:[w[0],w[1]]}function IJ(J){let K,Y=jz(new Uint8Array(J));switch(Y){case c5:case l5:K=CK(J);break;case p5:K=TK(J);break;case u5:K=IK(J);break}if(!qz.includes(Y))throw Error(`Unsupported image type: ${Y||"unknown"}`);return[`data:${Y};base64,${Oz(J)}`,K]}async function y4(J){if(!J)throw Error("Image source is not provided.");if(typeof J=="object"){let[Z,Q]=IJ(J);return[Z,...Q]}if((J.startsWith('"')&&J.endsWith('"')||J.startsWith("'")&&J.endsWith("'"))&&(J=J.slice(1,-1)),typeof window>"u"&&!J.startsWith("http")&&!J.startsWith("data:"))throw Error(`Image source must be an absolute URL: ${J}`);if(J.startsWith("data:")){let Z;try{Z=/data:(?<imageType>[a-z/+]+)(;[^;=]+=[^;=]+)*?(;(?<encodingType>[^;,]+))?,(?<dataString>.*)/g.exec(J).groups}catch{return console.warn("Image data URI resolved without size:"+J),[J]}let{imageType:Q,encodingType:H,dataString:w}=Z;if(Q===v4){let W=H==="base64"?atob(w):decodeURIComponent(w.replace(/ /g,"%20")),z=H==="base64"?J:`data:image/svg+xml;base64,${btoa(W)}`,U=DJ(J,W);return u1.set(J,[z,...U]),[z,...U]}else if(H==="base64"){let W,z=Nz(w);switch(Q){case c5:case l5:W=CK(z);break;case p5:W=TK(z);break;case u5:W=IK(z);break}return u1.set(J,[J,...W]),[J,...W]}else return console.warn("Image data URI resolved without size:"+J),u1.set(J,[J]),[J]}if(!globalThis.fetch)throw Error("`fetch` is required to be polyfilled to load images.");if(y5.has(J))return y5.get(J);let K=u1.get(J);if(K)return K;let Y=J,X=fetch(Y).then((Z)=>{let Q=Z.headers.get("content-type");return Q==="image/svg+xml"||Q==="application/svg+xml"?Z.text():Z.arrayBuffer()}).then((Z)=>{if(typeof Z=="string")try{let w=`data:image/svg+xml;base64,${btoa(Z)}`,W=DJ(Y,Z);return[w,...W]}catch(w){throw Error(`Failed to parse SVG image: ${w.message}`)}let[Q,H]=IJ(Z);return[Q,...H]}).then((Z)=>(u1.set(Y,Z),Z)).catch((Z)=>(console.error(`Can't load image ${Y}: `+Z.message),u1.set(Y,[]),[]));return y5.set(Y,X),X}function jz(J){return[255,216,255].every((K,Y)=>J[Y]===K)?u5:[137,80,78,71,13,10,26,10].every((K,Y)=>J[Y]===K)?Lz(J)?l5:c5:[71,73,70,56].every((K,Y)=>J[Y]===K)?p5:[82,73,70,70,0,0,0,0,87,69,66,80].every((K,Y)=>!K||J[Y]===K)?Mz:[60,63,120,109,108].every((K,Y)=>J[Y]===K)?v4:[0,0,0,0,102,116,121,112,97,118,105,102].every((K,Y)=>!K||J[Y]===K)?Gz:null}function Lz(J){let K=new DataView(J.buffer),Y,X,Z=8,Q=!1;for(;!Q&&Y!=="IEND"&&Z<J.length;){X=K.getUint32(Z);let H=J.subarray(Z+4,Z+8);Y=String.fromCharCode(...H),Q=Y==="acTL",Z+=12+X}return Q}var q4={accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",href:"href",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDasharray:"stroke-dasharray",strokeDashoffset:"stroke-dashoffset",strokeLinecap:"stroke-linecap",strokeLinejoin:"stroke-linejoin",strokeMiterlimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",xlinkActuate:"xlink:actuate",xlinkArcrole:"xlink:arcrole",xlinkHref:"xlink:href",xlinkRole:"xlink:role",xlinkShow:"xlink:show",xlinkTitle:"xlink:title",xlinkType:"xlink:type",xmlBase:"xml:base",xmlLang:"xml:lang",xmlSpace:"xml:space",xmlnsXlink:"xmlns:xlink"},Fz=/[\r\n%#()<>?[\\\]^`{|}"']/g;function O4(J,K){if(!J)return"";if(Array.isArray(J))return J.map((z)=>O4(z,K)).join("");if(typeof J!="object")return String(J);let Y=J.type;if(Y==="text")throw Error("<text> nodes are not currently supported, please convert them to <path>");let{children:X,style:Z,...Q}=J.props||{},H=(Z==null?void 0:Z.color)||K,w=`${Object.entries(Q).map(([z,U])=>(typeof U=="string"&&U.toLowerCase()==="currentcolor"&&(U=H),z==="href"&&Y==="image"?` ${q4[z]||z}="${u1.get(U)[0]}"`:` ${q4[z]||z}="${U}"`)).join("")}`,W=Z?` style="${Object.entries(Z).map(([z,U])=>`${Az(z)}:${U}`).join(";")}"`:"";return`<${Y}${w}${W}>${O4(X,H)}</${Y}>`}async function Ez(J){let K=new Set,Y=(X)=>{if(X&&S5(X)){if(Array.isArray(X)){X.forEach((Z)=>Y(Z));return}else typeof X=="object"&&(X.type==="image"?K.has(X.props.href)||K.add(X.props.href):X.type==="img"&&(K.has(X.props.src)||K.add(X.props.src)));Array.isArray(X.props.children)?X.props.children.map((Z)=>Y(Z)):Y(X.props.children)}};return Y(J),Promise.all(Array.from(K).map((X)=>y4(X)))}async function _z(J,K){let{viewBox:Y,viewbox:X,width:Z,height:Q,className:H,style:w,children:W,...z}=J.props||{};Y||=X,z.xmlns="http://www.w3.org/2000/svg";let U=(w==null?void 0:w.color)||K,$=S4(Y),V=$?$[3]/$[2]:null;return Z=Z||V&&Q?Q/V:null,Q=Q||V&&Z?Z*V:null,z.width=Z,z.height=Q,Y&&(z.viewBox=Y),`data:image/svg+xml;utf8,${`<svg ${Object.entries(z).map(([B,q])=>(typeof q=="string"&&q.toLowerCase()==="currentcolor"&&(q=U),` ${q4[B]||B}="${q}"`)).join("")}>${O4(W,U)}</svg>`.replace(Fz,encodeURIComponent)}`}var J1="flex",Rz={p:{display:J1,marginTop:"1em",marginBottom:"1em"},div:{display:J1},blockquote:{display:J1,marginTop:"1em",marginBottom:"1em",marginLeft:40,marginRight:40},center:{display:J1,textAlign:"center"},hr:{display:J1,marginTop:"0.5em",marginBottom:"0.5em",marginLeft:"auto",marginRight:"auto",borderWidth:1,borderStyle:"solid"},h1:{display:J1,fontSize:"2em",marginTop:"0.67em",marginBottom:"0.67em",marginLeft:0,marginRight:0,fontWeight:"bold"},h2:{display:J1,fontSize:"1.5em",marginTop:"0.83em",marginBottom:"0.83em",marginLeft:0,marginRight:0,fontWeight:"bold"},h3:{display:J1,fontSize:"1.17em",marginTop:"1em",marginBottom:"1em",marginLeft:0,marginRight:0,fontWeight:"bold"},h4:{display:J1,marginTop:"1.33em",marginBottom:"1.33em",marginLeft:0,marginRight:0,fontWeight:"bold"},h5:{display:J1,fontSize:"0.83em",marginTop:"1.67em",marginBottom:"1.67em",marginLeft:0,marginRight:0,fontWeight:"bold"},h6:{display:J1,fontSize:"0.67em",marginTop:"2.33em",marginBottom:"2.33em",marginLeft:0,marginRight:0,fontWeight:"bold"},u:{textDecoration:"underline"},strong:{fontWeight:"bold"},b:{fontWeight:"bold"},i:{fontStyle:"italic"},em:{fontStyle:"italic"},code:{fontFamily:"monospace"},kbd:{fontFamily:"monospace"},pre:{display:J1,fontFamily:"monospace",whiteSpace:"pre",marginTop:"1em",marginBottom:"1em"},mark:{backgroundColor:"yellow",color:"black"},big:{fontSize:"larger"},small:{fontSize:"smaller"},s:{textDecoration:"line-through"}},Dz=new Set(["color","font","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","textAlign","textTransform","textShadowOffset","textShadowColor","textShadowRadius","WebkitTextStrokeWidth","WebkitTextStrokeColor","textDecorationLine","textDecorationStyle","textDecorationColor","whiteSpace","transform","wordBreak","tabSize","opacity","filter","_viewportWidth","_viewportHeight","_inheritedClipPathId","_inheritedMaskId","_inheritedBackgroundClipTextPath"]);function Iz(J){let K={};for(let Y in J)Dz.has(Y)&&(K[Y]=J[Y]);return K}function Tz(J,K){try{let Y=new u8(J);switch(Y.unit){case"px":return{absolute:Y.value};case"em":return{absolute:Y.value*K};case"rem":return{absolute:Y.value*16};case"%":return{relative:Y.value};default:return{}}}catch{return{}}}function z4(J,K,Y){switch(J){case"top":return{yRelative:0};case"left":return{xRelative:0};case"right":return{xRelative:100};case"bottom":return{yRelative:100};case"center":return{};default:{let X=Tz(J,K);return X.absolute?{[Y?"xAbsolute":"yAbsolute"]:X.absolute}:X.relative?{[Y?"xRelative":"yRelative"]:X.relative}:{}}}}function Cz(J,K){if(typeof J=="number")return{xAbsolute:J};let Y;try{Y=vK.default(J).nodes.filter((X)=>X.type==="word").map((X)=>X.value)}catch{return{}}return Y.length===1?z4(Y[0],K,!0):Y.length===2?((Y[0]==="top"||Y[0]==="bottom"||Y[1]==="left"||Y[1]==="right")&&Y.reverse(),{...z4(Y[0],K,!0),...z4(Y[1],K,!1)}):{}}function b8(J,K){let Y=yK.getPropertyName(`mask-${K}`);return J[Y]||J[`WebkitM${Y.substring(1)}`]}function Pz(J){let K=J.maskImage||J.WebkitMaskImage,Y={position:b8(J,"position")||"0% 0%",size:b8(J,"size")||"100% 100%",repeat:b8(J,"repeat")||"repeat",origin:b8(J,"origin")||"border-box",clip:b8(J,"origin")||"border-box"};return DK(K).filter((X)=>X&&X!=="none").reverse().map((X)=>({image:X,...Y}))}var Sz=new Set(["flex","flexGrow","flexShrink","flexBasis","fontWeight","lineHeight","opacity","scale","scaleX","scaleY"]),vz=new Set(["lineHeight"]);function yz(J,K,Y,X){return J==="textDecoration"&&!Y.includes(K.textDecorationColor)&&(K.textDecorationColor=X),K}function K8(J,K){let Y=Number(K);return isNaN(Y)?K:Sz.has(J)?vz.has(J)?Y:String(K):Y+"px"}function kz(J,K,Y){if(J==="lineHeight")return{lineHeight:K8(J,K)};if(J==="fontFamily")return{fontFamily:K.split(",").map((X)=>X.trim().replace(/(^['"])|(['"]$)/g,"").toLocaleLowerCase())};if(J==="borderRadius"){if(typeof K!="string"||!K.includes("/"))return;let[X,Z]=K.split("/"),Q=B1.getStylesForProperty(J,X,!0),H=B1.getStylesForProperty(J,Z,!0);for(let w in Q)H[w]=K8(J,Q[w])+" "+K8(J,H[w]);return H}if(/^border(Top|Right|Bottom|Left)?$/.test(J)){let X=B1.getStylesForProperty("border",K,!0);X.borderWidth===1&&!String(K).includes("1px")&&(X.borderWidth=3),X.borderColor==="black"&&!String(K).includes("black")&&(X.borderColor=Y);let Z={Width:K8(J+"Width",X.borderWidth),Style:V1(X.borderStyle,{solid:"solid",dashed:"dashed"},"solid",J+"Style"),Color:X.borderColor},Q={};for(let H of J==="border"?["Top","Right","Bottom","Left"]:[J.slice(6)])for(let w in Z)Q["border"+H+w]=Z[w];return Q}if(J==="boxShadow"){if(!K)throw Error('Invalid `boxShadow` value: "'+K+'".');return{[J]:typeof K=="string"?SK.parse(K):K}}if(J==="transform"){if(typeof K!="string")throw Error("Invalid `transform` value.");let X={},Z=K.replace(/(-?[\d.]+%)/g,(H,w)=>{let W=~~(Math.random()*1e9);return X[W]=w,W+"px"}),Q=B1.getStylesForProperty("transform",Z,!0);for(let H of Q.transform)for(let w in H)X[H[w]]&&(H[w]=X[H[w]]);return Q}if(J==="background")return K=K.toString().trim(),/^(linear-gradient|radial-gradient|url|repeating-linear-gradient)\(/.test(K)?B1.getStylesForProperty("backgroundImage",K,!0):B1.getStylesForProperty("background",K,!0);if(J==="textShadow"){K=K.toString().trim();let X={},Z=DK(K);for(let Q of Z){let H=B1.getStylesForProperty("textShadow",Q,!0);for(let w in H)X[w]?X[w].push(H[w]):X[w]=[H[w]]}return X}if(J==="WebkitTextStroke"){K=K.toString().trim();let X=K.split(" ");if(X.length!==2)throw Error("Invalid `WebkitTextStroke` value.");return{WebkitTextStrokeWidth:K8(J,X[0]),WebkitTextStrokeColor:K8(J,X[1])}}}function TJ(J){return J==="transform"?" Only absolute lengths such as `10px` are supported.":""}var CJ=/rgb\((\d+)\s+(\d+)\s+(\d+)\s*\/\s*([\.\d]+)\)/;function kK(J){if(typeof J=="string"&&CJ.test(J.trim()))return J.trim().replace(CJ,(K,Y,X,Z,Q)=>`rgba(${Y}, ${X}, ${Z}, ${Q})`);if(typeof J=="object"&&J!==null){for(let K in J)J[K]=kK(J[K]);return J}return J}function PJ(J,K){let Y={};if(J){let Z=xz(J.color,K.color);Y.color=Z;for(let Q in J){if(Q.startsWith("_")){Y[Q]=J[Q];continue}if(Q==="color")continue;let H=B1.getPropertyName(Q),w=hz(J[Q],Z);try{let W=kz(H,w,Z)||yz(H,B1.getStylesForProperty(H,K8(H,w),!0),w,Z);Object.assign(Y,W)}catch(W){throw Error(W.message+(W.message.includes(w)?`
64
- `+TJ(H):`
65
- in CSS rule \`${H}: ${w}\`.${TJ(H)}`))}}}if(Y.backgroundImage){let{backgrounds:Z}=PK.parseElementStyle(Y);Y.backgroundImage=Z}(Y.maskImage||Y.WebkitMaskImage)&&(Y.maskImage=Pz(Y));let X=gz(Y.fontSize,K.fontSize);typeof Y.fontSize<"u"&&(Y.fontSize=X),Y.transformOrigin&&(Y.transformOrigin=Cz(Y.transformOrigin,X));for(let Z in Y){let Q=Y[Z];if(Z==="lineHeight")typeof Q=="string"&&Q!=="normal"&&(Q=Y[Z]=U0(Q,X,X,K,!0)/X);else{if(typeof Q=="string"){let H=U0(Q,X,X,K);typeof H<"u"&&(Y[Z]=H),Q=Y[Z]}if(typeof Q=="string"||typeof Q=="object"){let H=kK(Q);H&&(Y[Z]=H),Q=Y[Z]}}if(Z==="opacity"&&typeof Q=="number"&&(Y.opacity=Q*K.opacity),Z==="transform"){let H=Q;for(let w of H){let W=Object.keys(w)[0],z=w[W],U=typeof z=="string"?U0(z,X,X,K)??z:z;w[W]=U}}if(Z==="textShadowRadius"){let H=Q;Y.textShadowRadius=H.map((w)=>U0(w,X,0,K,!1))}if(Z==="textShadowOffset"){let H=Q;Y.textShadowOffset=H.map(({height:w,width:W})=>({height:U0(w,X,0,K,!1),width:U0(W,X,0,K,!1)}))}}return Y}function gz(J,K){if(typeof J=="number")return J;try{let Y=new u8(J);switch(Y.unit){case"em":return Y.value*K;case"rem":return Y.value*16}}catch{return K}}function SJ(J){if(J.startsWith("hsl")){let K=U5(J),[Y,X,Z]=K.values;return`hsl(${[Y,`${X}%`,`${Z}%`].concat(K.alpha===1?[]:[K.alpha]).join(",")})`}return J}function xz(J,K){return J&&J.toLowerCase()!=="currentcolor"?SJ(J):SJ(K)}function bz(J,K){return J.replace(/currentcolor/gi,K)}function hz(J,K){return RK(J)&&(J=bz(J,K)),J}async function mz(J,K,Y,X,Z){let Q=await d5(),H={...Y,...PJ(Rz[K],Y),...PJ(X,Y)};if(K==="img"){let[w,W,z]=await y4(Z.src);if(W===void 0&&z===void 0){if(Z.width===void 0||Z.height===void 0)throw Error("Image size cannot be determined. Please provide the width and height of the image.");W=parseInt(Z.width),z=parseInt(Z.height)}let U=z/W,$=(H.borderLeftWidth||0)+(H.borderRightWidth||0)+(H.paddingLeft||0)+(H.paddingRight||0),V=(H.borderTopWidth||0)+(H.borderBottomWidth||0)+(H.paddingTop||0)+(H.paddingBottom||0),B=H.width||Z.width,q=H.height||Z.height,G=typeof B=="number"&&typeof q=="number";G&&(B-=$,q-=V),B===void 0&&q===void 0?(B="100%",J.setAspectRatio(1/U)):B===void 0?typeof q=="number"?B=q/U:J.setAspectRatio(1/U):q===void 0&&(typeof B=="number"?q=B*U:J.setAspectRatio(1/U)),H.width=G?B+$:B,H.height=G?q+V:q,H.__src=w}if(K==="svg"){let w=Z.viewBox||Z.viewbox,W=S4(w),z=W?W[3]/W[2]:null,{width:U,height:$}=Z;typeof U>"u"&&$?z==null?U=0:typeof $=="string"&&$.endsWith("%")?U=parseInt($)/z+"%":($=U0($,Y.fontSize,1,Y),U=$/z):typeof $>"u"&&U?z==null?U=0:typeof U=="string"&&U.endsWith("%")?$=parseInt(U)*z+"%":(U=U0(U,Y.fontSize,1,Y),$=U*z):(typeof U<"u"&&(U=U0(U,Y.fontSize,1,Y)||U),typeof $<"u"&&($=U0($,Y.fontSize,1,Y)||$),U||=W==null?void 0:W[2],$||=W==null?void 0:W[3]),!H.width&&U&&(H.width=U),!H.height&&$&&(H.height=$)}return J.setDisplay(V1(H.display,{flex:Q.DISPLAY_FLEX,block:Q.DISPLAY_FLEX,none:Q.DISPLAY_NONE,"-webkit-box":Q.DISPLAY_FLEX},Q.DISPLAY_FLEX,"display")),J.setAlignContent(V1(H.alignContent,{stretch:Q.ALIGN_STRETCH,center:Q.ALIGN_CENTER,"flex-start":Q.ALIGN_FLEX_START,"flex-end":Q.ALIGN_FLEX_END,"space-between":Q.ALIGN_SPACE_BETWEEN,"space-around":Q.ALIGN_SPACE_AROUND,baseline:Q.ALIGN_BASELINE,normal:Q.ALIGN_AUTO},Q.ALIGN_AUTO,"alignContent")),J.setAlignItems(V1(H.alignItems,{stretch:Q.ALIGN_STRETCH,center:Q.ALIGN_CENTER,"flex-start":Q.ALIGN_FLEX_START,"flex-end":Q.ALIGN_FLEX_END,baseline:Q.ALIGN_BASELINE,normal:Q.ALIGN_AUTO},Q.ALIGN_STRETCH,"alignItems")),J.setAlignSelf(V1(H.alignSelf,{stretch:Q.ALIGN_STRETCH,center:Q.ALIGN_CENTER,"flex-start":Q.ALIGN_FLEX_START,"flex-end":Q.ALIGN_FLEX_END,baseline:Q.ALIGN_BASELINE,normal:Q.ALIGN_AUTO},Q.ALIGN_AUTO,"alignSelf")),J.setJustifyContent(V1(H.justifyContent,{center:Q.JUSTIFY_CENTER,"flex-start":Q.JUSTIFY_FLEX_START,"flex-end":Q.JUSTIFY_FLEX_END,"space-between":Q.JUSTIFY_SPACE_BETWEEN,"space-around":Q.JUSTIFY_SPACE_AROUND},Q.JUSTIFY_FLEX_START,"justifyContent")),J.setFlexDirection(V1(H.flexDirection,{row:Q.FLEX_DIRECTION_ROW,column:Q.FLEX_DIRECTION_COLUMN,"row-reverse":Q.FLEX_DIRECTION_ROW_REVERSE,"column-reverse":Q.FLEX_DIRECTION_COLUMN_REVERSE},Q.FLEX_DIRECTION_ROW,"flexDirection")),J.setFlexWrap(V1(H.flexWrap,{wrap:Q.WRAP_WRAP,nowrap:Q.WRAP_NO_WRAP,"wrap-reverse":Q.WRAP_WRAP_REVERSE},Q.WRAP_NO_WRAP,"flexWrap")),typeof H.gap<"u"&&J.setGap(Q.GUTTER_ALL,H.gap),typeof H.rowGap<"u"&&J.setGap(Q.GUTTER_ROW,H.rowGap),typeof H.columnGap<"u"&&J.setGap(Q.GUTTER_COLUMN,H.columnGap),typeof H.flexBasis<"u"&&J.setFlexBasis(H.flexBasis),J.setFlexGrow(typeof H.flexGrow>"u"?0:H.flexGrow),J.setFlexShrink(typeof H.flexShrink>"u"?0:H.flexShrink),typeof H.maxHeight<"u"&&J.setMaxHeight(H.maxHeight),typeof H.maxWidth<"u"&&J.setMaxWidth(H.maxWidth),typeof H.minHeight<"u"&&J.setMinHeight(H.minHeight),typeof H.minWidth<"u"&&J.setMinWidth(H.minWidth),J.setOverflow(V1(H.overflow,{visible:Q.OVERFLOW_VISIBLE,hidden:Q.OVERFLOW_HIDDEN},Q.OVERFLOW_VISIBLE,"overflow")),J.setMargin(Q.EDGE_TOP,H.marginTop||0),J.setMargin(Q.EDGE_BOTTOM,H.marginBottom||0),J.setMargin(Q.EDGE_LEFT,H.marginLeft||0),J.setMargin(Q.EDGE_RIGHT,H.marginRight||0),J.setBorder(Q.EDGE_TOP,H.borderTopWidth||0),J.setBorder(Q.EDGE_BOTTOM,H.borderBottomWidth||0),J.setBorder(Q.EDGE_LEFT,H.borderLeftWidth||0),J.setBorder(Q.EDGE_RIGHT,H.borderRightWidth||0),J.setPadding(Q.EDGE_TOP,H.paddingTop||0),J.setPadding(Q.EDGE_BOTTOM,H.paddingBottom||0),J.setPadding(Q.EDGE_LEFT,H.paddingLeft||0),J.setPadding(Q.EDGE_RIGHT,H.paddingRight||0),J.setPositionType(V1(H.position,{absolute:Q.POSITION_TYPE_ABSOLUTE,relative:Q.POSITION_TYPE_RELATIVE},Q.POSITION_TYPE_RELATIVE,"position")),typeof H.top<"u"&&J.setPosition(Q.EDGE_TOP,H.top),typeof H.bottom<"u"&&J.setPosition(Q.EDGE_BOTTOM,H.bottom),typeof H.left<"u"&&J.setPosition(Q.EDGE_LEFT,H.left),typeof H.right<"u"&&J.setPosition(Q.EDGE_RIGHT,H.right),typeof H.height<"u"?J.setHeight(H.height):J.setHeightAuto(),typeof H.width<"u"?J.setWidth(H.width):J.setWidthAuto(),[H,Iz(H)]}var vJ=[1,0,0,1,0,0];function fz(J,K,Y){let X=[...vJ];for(let Z of J){let Q=Object.keys(Z)[0],H=Z[Q];if(typeof H=="string")if(Q==="translateX")H=parseFloat(H)/100*K,Z[Q]=H;else if(Q==="translateY")H=parseFloat(H)/100*Y,Z[Q]=H;else throw Error(`Invalid transform: "${Q}: ${H}".`);let w=H,W=[...vJ];switch(Q){case"translateX":W[4]=w;break;case"translateY":W[5]=w;break;case"scale":W[0]=w,W[3]=w;break;case"scaleX":W[0]=w;break;case"scaleY":W[3]=w;break;case"rotate":{let z=w*Math.PI/180,U=Math.cos(z),$=Math.sin(z);W[0]=U,W[1]=$,W[2]=-$,W[3]=U;break}case"skewX":W[2]=Math.tan(w*Math.PI/180);break;case"skewY":W[1]=Math.tan(w*Math.PI/180);break}X=v5(W,X)}J.splice(0,J.length),J.push(...X),J.__resolved=!0}function gK({left:J,top:K,width:Y,height:X},Z,Q,H){let w;Z.__resolved||fz(Z,Y,X);let W=Z;if(Q)w=W;else{let z=(H==null?void 0:H.xAbsolute)??((H==null?void 0:H.xRelative)??50)*Y/100,U=(H==null?void 0:H.yAbsolute)??((H==null?void 0:H.yRelative)??50)*X/100,$=J+z,V=K+U;w=v5([1,0,0,1,$,V],v5(W,[1,0,0,1,-$,-V])),W.__parent&&(w=v5(W.__parent,w)),W.splice(0,6,...w)}return`matrix(${w.map((z)=>z.toFixed(2)).join(",")})`}function dz({left:J,top:K,width:Y,height:X,isInheritingTransform:Z},Q){let H="",w=1;return Q.transform&&(H=gK({left:J,top:K,width:Y,height:X},Q.transform,Z,Q.transformOrigin)),Q.opacity!==void 0&&(w=+Q.opacity),{matrix:H,opacity:w}}function lz({id:J,content:K,filter:Y,left:X,top:Z,width:Q,height:H,matrix:w,opacity:W,image:z,clipPathId:U,debug:$,shape:V,decorationShape:B},q){let G="";if($&&(G=a("rect",{x:X,y:Z-H,width:Q,height:H,fill:"transparent",stroke:"#575eff","stroke-width":1,transform:w||void 0,"clip-path":U?`url(#${U})`:void 0})),z){let N={href:z,x:X,y:Z,width:Q,height:H,transform:w||void 0,"clip-path":U?`url(#${U})`:void 0,style:q.filter?`filter:${q.filter}`:void 0};return[(Y?`${Y}<g filter="url(#satori_s-${J})">`:"")+a("image",{...N,opacity:W!==1?W:void 0})+(B||"")+(Y?"</g>":"")+G,""]}let M={x:X,y:Z,width:Q,height:H,"font-weight":q.fontWeight,"font-style":q.fontStyle,"font-size":q.fontSize,"font-family":q.fontFamily,"letter-spacing":q.letterSpacing||void 0,transform:w||void 0,"clip-path":U?`url(#${U})`:void 0,style:q.filter?`filter:${q.filter}`:void 0,"stroke-width":q.WebkitTextStrokeWidth?`${q.WebkitTextStrokeWidth}px`:void 0,stroke:q.WebkitTextStrokeWidth?q.WebkitTextStrokeColor:void 0,"stroke-linejoin":q.WebkitTextStrokeWidth?"round":void 0,"paint-order":q.WebkitTextStrokeWidth?"stroke":void 0};return[(Y?`${Y}<g filter="url(#satori_s-${J})">`:"")+a("text",{...M,fill:q.color,opacity:W!==1?W:void 0},N4.default(K))+(B||"")+(Y?"</g>":"")+G,V?a("text",M,N4.default(K)):""]}function cz(J,K,Y){return J.replace(/([MA])([0-9.-]+),([0-9.-]+)/g,function(X,Z,Q,H){return Z+(parseFloat(Q)+K)+","+(parseFloat(H)+Y)})}var F5=1.1;function uz({id:J,width:K,height:Y},X){if(!X.shadowColor||!X.shadowOffset||typeof X.shadowRadius>"u")return"";let Z=X.shadowColor.length,Q="",H="",w=0,W=K,z=0,U=Y;for(let $=0;$<Z;$++){let V=X.shadowRadius[$]*X.shadowRadius[$]/4;w=Math.min(X.shadowOffset[$].width-V,w),W=Math.max(X.shadowOffset[$].width+V+K,W),z=Math.min(X.shadowOffset[$].height-V,z),U=Math.max(X.shadowOffset[$].height+V+Y,U),Q+=a("feDropShadow",{dx:X.shadowOffset[$].width,dy:X.shadowOffset[$].height,stdDeviation:X.shadowRadius[$]/2,"flood-color":X.shadowColor[$],"flood-opacity":1,...Z>1?{in:"SourceGraphic",result:`satori_s-${J}-result-${$}`}:{}}),Z>1&&(H=a("feMergeNode",{in:`satori_s-${J}-result-${$}`})+H)}return a("filter",{id:`satori_s-${J}`,x:(w/K*100*F5).toFixed(2)+"%",y:(z/Y*100*F5).toFixed(2)+"%",width:((W-w)/K*100*F5).toFixed(2)+"%",height:((U-z)/Y*100*F5).toFixed(2)+"%"},Q+(H?a("feMerge",{},H):""))}function pz({width:J,height:K,shape:Y,opacity:X,id:Z},Q){if(!Q.boxShadow)return null;let H="",w="";for(let W=Q.boxShadow.length-1;W>=0;W--){let z="",U=Q.boxShadow[W];U.spreadRadius&&U.inset&&(U.spreadRadius=-U.spreadRadius);let $=U.blurRadius*U.blurRadius/4+(U.spreadRadius||0),V=Math.min(-$-(U.inset?U.offsetX:0),0),B=Math.max($+J-(U.inset?U.offsetX:0),J),q=Math.min(-$-(U.inset?U.offsetY:0),0),G=Math.max($+K-(U.inset?U.offsetY:0),K),M=`satori_s-${Z}-${W}`,N=`satori_ms-${Z}-${W}`,j=U.spreadRadius?Y.replace('stroke-width="0"',`stroke-width="${U.spreadRadius*2}"`):Y;z+=a("mask",{id:N,maskUnits:"userSpaceOnUse"},a("rect",{x:0,y:0,width:Q._viewportWidth||"100%",height:Q._viewportHeight||"100%",fill:U.inset?"#000":"#fff"})+j.replace('fill="#fff"',U.inset?'fill="#fff"':'fill="#000"').replace('stroke="#fff"',""));let _=j.replace(/d="([^"]+)"/,(R,E)=>'d="'+cz(E,U.offsetX,U.offsetY)+'"').replace(/x="([^"]+)"/,(R,E)=>'x="'+(parseFloat(E)+U.offsetX)+'"').replace(/y="([^"]+)"/,(R,E)=>'y="'+(parseFloat(E)+U.offsetY)+'"');U.spreadRadius&&U.spreadRadius<0&&(z+=a("mask",{id:N+"-neg",maskUnits:"userSpaceOnUse"},_.replace('stroke="#fff"','stroke="#000"').replace(/stroke-width="[^"]+"/,`stroke-width="${-U.spreadRadius*2}"`))),U.spreadRadius&&U.spreadRadius<0&&(_=a("g",{mask:`url(#${N}-neg)`},_)),z+=a("defs",{},a("filter",{id:M,x:`${V/J*100}%`,y:`${q/K*100}%`,width:`${(B-V)/J*100}%`,height:`${(G-q)/K*100}%`},a("feGaussianBlur",{stdDeviation:U.blurRadius/2,result:"b"})+a("feFlood",{"flood-color":U.color,in:"SourceGraphic",result:"f"})+a("feComposite",{in:"f",in2:"b",operator:U.inset?"out":"in"})))+a("g",{mask:`url(#${N})`,filter:`url(#${M})`,opacity:X},_),U.inset?w+=z:H+=z}return[H,w]}function iz({width:J,left:K,top:Y,ascender:X,clipPathId:Z,matrix:Q},H){let{textDecorationColor:w,textDecorationStyle:W,textDecorationLine:z,fontSize:U,color:$}=H;if(!z||z==="none")return"";let V=Math.max(1,U*0.1),B=z==="line-through"?Y+X*0.7:z==="underline"?Y+X*1.1:Y,q=W==="dashed"?`${V*1.2} ${V*2}`:W==="dotted"?`0 ${V*2}`:void 0;return(Z?`<g clip-path="url(#${Z})">`:"")+a("line",{x1:K,y1:B,x2:K+J,y2:B,stroke:w||$,"stroke-width":V,"stroke-dasharray":q,"stroke-linecap":W==="dotted"?"round":"square",transform:Q})+(Z?"</g>":"")}function k4(J){return J=J.replace("U+","0x"),String.fromCodePoint(Number(J))}var l8=k4("U+0020"),xK=k4("U+0009"),k5=k4("U+2026");function oz(J,K,Y){let{fontSize:X,letterSpacing:Z}=Y,Q=new Map;function H(z){if(Q.has(z))return Q.get(z);let U=J.measure(z,{fontSize:X,letterSpacing:Z});return Q.set(z,U),U}function w(z){let U=0;for(let $ of z)K($)?U+=X:U+=H($);return U}function W(z){return w(A1(z,"grapheme"))}return{measureGrapheme:H,measureGraphemeArray:w,measureText:W}}function rz(J,K,Y){let{textTransform:X,whiteSpace:Z,wordBreak:Q}=K;J=nz(J,X,Y);let{content:H,shouldCollapseTabsAndSpaces:w,allowSoftWrap:W}=tz(J,Z),{words:z,requiredBreaks:U,allowBreakWord:$}=az(H,Q),[V,B]=sz(K,W);return{words:z,requiredBreaks:U,allowSoftWrap:W,allowBreakWord:$,processedContent:H,shouldCollapseTabsAndSpaces:w,lineLimit:V,blockEllipsis:B}}function nz(J,K,Y){return K==="uppercase"?J=J.toLocaleUpperCase(Y):K==="lowercase"?J=J.toLocaleLowerCase(Y):K==="capitalize"&&(J=A1(J,"word",Y).map((X)=>A1(X,"grapheme",Y).map((Z,Q)=>Q===0?Z.toLocaleUpperCase(Y):Z).join("")).join("")),J}function sz(J,K){let{textOverflow:Y,lineClamp:X,WebkitLineClamp:Z,WebkitBoxOrient:Q,overflow:H,display:w}=J;if(w==="block"&&X){let[W,z=k5]=ez(X);if(W)return[W,z]}return Y==="ellipsis"&&w==="-webkit-box"&&Q==="vertical"&&$z(Z)&&Z>0?[Z,k5]:Y==="ellipsis"&&H==="hidden"&&!K?[1,k5]:[1/0]}function az(J,K){let Y=["break-all","break-word"].includes(K),{words:X,requiredBreaks:Z}=Bz(J,K);return{words:X,requiredBreaks:Z,allowBreakWord:Y}}function tz(J,K){let Y=["pre","pre-wrap","pre-line"].includes(K),X=["normal","nowrap","pre-line"].includes(K),Z=!["pre","nowrap"].includes(K);return Y||(J=J.replace(/\n/g,l8)),X&&(J=J.replace(/([ ]|\t)+/g,l8).replace(/^[ ]|[ ]$/g,"")),{content:J,shouldCollapseTabsAndSpaces:X,allowSoftWrap:Z}}function ez(J){if(typeof J=="number")return[J];let K=/^(\d+)\s*"(.*)"$/,Y=/^(\d+)\s*'(.*)'$/,X=K.exec(J),Z=Y.exec(J);if(X){let Q=+X[1],H=X[2];return[Q,H]}else if(Z){let Q=+Z[1],H=Z[2];return[Q,H]}return[]}var JU=new Set([xK]);function KU(J){return JU.has(J)}async function*YU(J,K){let Y=await d5(),{parentStyle:X,inheritedStyle:Z,parent:Q,font:H,id:w,isInheritingTransform:W,debug:z,embedFont:U,graphemeImages:$,locale:V,canLoadAdditionalAssets:B}=K,{textAlign:q,lineHeight:G,textWrap:M,fontSize:N,filter:j,tabSize:_=8,letterSpacing:R,_inheritedBackgroundClipTextPath:E,flexShrink:L}=X,{words:T,requiredBreaks:D,allowSoftWrap:P,allowBreakWord:x,processedContent:u,shouldCollapseTabsAndSpaces:p,lineLimit:i,blockEllipsis:C}=rz(J,X,V),S=XU(Y,q);Q.insertChild(S,Q.getChildCount()),Vz(L)&&Q.setFlexShrink(1);let I=H.getEngine(N,G,X,V),d=B?A1(u,"grapheme").filter((Q0)=>!KU(Q0)&&!I.has(Q0)):[];yield d.map((Q0)=>({word:Q0,locale:V})),d.length&&(I=H.getEngine(N,G,X,V));function l(Q0){return!!($&&$[Q0])}let{measureGrapheme:c,measureGraphemeArray:o,measureText:m}=oz(I,l,{fontSize:N,letterSpacing:R}),f=RK(_)?U0(_,N,1,X):c(l8)*_,y=(Q0,O0)=>{if(Q0.length===0)return{originWidth:0,endingSpacesWidth:0,text:Q0};let{index:L0,tabCount:$0}=ZU(Q0),R0=0;if($0>0){let T0=Q0.slice(0,L0),E0=Q0.slice(L0+$0),G0=m(T0),G1=G0+O0;R0=(f===0?G0:(Math.floor(G1/f)+$0)*f)+m(E0)}else R0=m(Q0);let B0=Q0.trimEnd()===Q0?R0:m(Q0.trimEnd());return{originWidth:R0,endingSpacesWidth:R0-B0,text:Q0}},k=[],s=[],g=[],e=[],Y0=[];function X0(Q0){let O0=0,L0=0,$0=-1,R0=0,B0=0,T0=0,E0=0;k=[],g=[0],e=[],Y0=[];let G0=0,G1=0;for(;G0<T.length&&O0<i;){let W0=T[G0],r1=D[G0],s0=0,{originWidth:y1,endingSpacesWidth:s8,text:k1}=y(W0,B0);W0=k1,s0=y1;let N0=s8;r1&&T0===0&&(T0=I.height(W0));let x0=",.!?:-@)>]}%#".indexOf(W0[0])<0,Z1=!B0,a8=G0&&x0&&B0+s0>Q0+N0&&P;if(x&&s0>Q0&&(!B0||a8||r1)){let l0=A1(W0,"grapheme");T.splice(G0,1,...l0),B0>0&&(k.push(B0-G1),s.push(E0),O0++,R0+=T0,B0=0,T0=0,E0=0,g.push(1),$0=-1),G1=N0;continue}if(r1||a8)p&&W0===l8&&(s0=0),k.push(B0-G1),s.push(E0),O0++,R0+=T0,B0=s0,T0=s0?I.height(W0):0,E0=s0?I.baseline(W0):0,g.push(1),$0=-1,r1||(L0=Math.max(L0,Q0));else{B0+=s0;let l0=I.height(W0);l0>T0&&(T0=l0,E0=I.baseline(W0)),Z1&&g[g.length-1]++}Z1&&$0++,L0=Math.max(L0,B0);let q8=B0-s0;if(s0===0)Y0.push({y:R0,x:q8,width:0,line:O0,lineIndex:$0,isImage:!1});else{let l0=A1(W0,"word");for(let Q1=0;Q1<l0.length;Q1++){let n1=l0[Q1],_1=0,O8=!1;l(n1)?(_1=N,O8=!0):_1=c(n1),e.push(n1),Y0.push({y:R0,x:q8,width:_1,line:O0,lineIndex:$0,isImage:O8}),q8+=_1}}G0++,G1=N0}return B0&&(O0<i&&(R0+=T0),O0++,k.push(B0),s.push(E0)),{width:L0,height:R0}}let J0={width:0,height:0};S.setMeasureFunc((Q0)=>{let{width:O0,height:L0}=X0(Q0);if(M==="balance"){let R0=O0/2,B0=O0,T0=O0;for(;R0+1<B0;){T0=(R0+B0)/2;let{height:G0}=X0(T0);G0>L0?R0=T0:B0=T0}X0(B0);let E0=Math.ceil(B0);return J0={width:E0,height:L0},{width:E0,height:L0}}let $0=Math.ceil(O0);return J0={width:$0,height:L0},{width:$0,height:L0}});let[V0,_0]=yield,K0="",A0="",S0=Z._inheritedClipPathId,c0=Z._inheritedMaskId,{left:g0,top:I0,width:d0,height:u0}=S.getComputedLayout(),p0=Q.getComputedWidth()-Q.getComputedPadding(Y.EDGE_LEFT)-Q.getComputedPadding(Y.EDGE_RIGHT)-Q.getComputedBorder(Y.EDGE_LEFT)-Q.getComputedBorder(Y.EDGE_RIGHT),Y1=V0+g0,X1=_0+I0,{matrix:n0,opacity:Z8}=dz({left:g0,top:I0,width:d0,height:u0,isInheritingTransform:W},X),S1="";if(X.textShadowOffset){let{textShadowColor:Q0,textShadowOffset:O0,textShadowRadius:L0}=X;S1=uz({width:J0.width,height:J0.height,id:w},{shadowColor:Q0,shadowOffset:O0,shadowRadius:L0}),S1=a("defs",{},S1)}let o1="",Q8="",n8="",H8=-1,W8={},v1=null,c4=0;for(let Q0=0;Q0<e.length;Q0++){let O0=Y0[Q0],L0=Y0[Q0+1];if(!O0)continue;let $0=e[Q0],R0=null,B0=!1,T0=$?$[$0]:null,E0=O0.y,G0=O0.x,G1=O0.width,W0=O0.line;if(W0===H8)continue;let r1=!1;if(k.length>1){let N0=d0-k[W0];if(q==="right"||q==="end")G0+=N0;else if(q==="center")G0+=N0/2;else if(q==="justify"&&W0<k.length-1){let x0=g[W0],Z1=x0>1?N0/(x0-1):0;G0+=Z1*O0.lineIndex,r1=!0}}let s0=s[W0],y1=I.baseline($0),s8=I.height($0),k1=s0-y1;if(W8[W0]||(W8[W0]=[G0,X1+E0+k1,y1,r1?d0:k[W0]]),i!==1/0){let N0=function(l0,Q1){let n1=A1(Q1,"grapheme",V),_1="",O8=0;for(let u4 of n1){let p4=l0+o([_1+u4]);if(_1&&p4+Z1>p0)break;_1+=u4,O8=p4}return{subset:_1,resolvedWidth:O8}},x0=C,Z1=c(C);Z1>p0&&(x0=k5,Z1=c(x0));let a8=c(l8),q8=W0<k.length-1;if(W0+1===i&&(q8||k[W0]>p0)){if(G0+G1+Z1+a8>p0){let{subset:l0,resolvedWidth:Q1}=N0(G0,$0);$0=l0+x0,H8=W0,W8[W0][2]=Q1,B0=!0}else if(L0&&L0.line!==W0)if(q==="center"){let{subset:l0,resolvedWidth:Q1}=N0(G0,$0);$0=l0+x0,H8=W0,W8[W0][2]=Q1,B0=!0}else{let l0=e[Q0+1],{subset:Q1,resolvedWidth:n1}=N0(G1+G0,l0);$0=$0+Q1+x0,H8=W0,W8[W0][2]=n1,B0=!0}}}if(T0)E0+=0;else if(U){if(!$0.includes(xK)&&!wz.includes($0)&&e[Q0+1]&&L0&&!L0.isImage&&E0===L0.y&&!B0){v1===null&&(c4=G0),v1=v1===null?$0:v1+$0;continue}let N0=v1===null?$0:v1+$0,x0=v1===null?G0:c4,Z1=O0.width+G0-x0;R0=I.getSVG(N0.replace(/(\t)+/g,""),{fontSize:N,left:Y1+x0,top:X1+E0+y1+k1,letterSpacing:R}),v1=null,z&&(n8+=a("rect",{x:Y1+x0,y:X1+E0+k1,width:Z1,height:s8,fill:"transparent",stroke:"#575eff","stroke-width":1,transform:n0||void 0,"clip-path":S0?`url(#${S0})`:void 0})+a("line",{x1:Y1+G0,x2:Y1+G0+O0.width,y1:X1+E0+k1+y1,y2:X1+E0+k1+y1,stroke:"#14c000","stroke-width":1,transform:n0||void 0,"clip-path":S0?`url(#${S0})`:void 0}))}else E0+=y1+k1;if(X.textDecorationLine){let N0=W8[W0];N0&&!N0[4]&&(o1+=iz({left:Y1+N0[0],top:N0[1],width:N0[3],ascender:N0[2],clipPathId:S0,matrix:n0},X),N0[4]=1)}if(R0!==null)Q8+=R0+" ";else{let[N0,x0]=lz({content:$0,filter:S1,id:w,left:Y1+G0,top:X1+E0,width:G1,height:s8,matrix:n0,opacity:Z8,image:T0,clipPathId:S0,debug:z,shape:!!E,decorationShape:o1},X);K0+=N0,A0+=x0,o1=""}if(B0)break}if(Q8){let Q0=X.color!=="transparent"&&Z8!==0?a("path",{fill:X.color,d:Q8,transform:n0||void 0,opacity:Z8!==1?Z8:void 0,"clip-path":S0?`url(#${S0})`:void 0,mask:c0?`url(#${c0})`:void 0,style:j?`filter:${j}`:void 0,"stroke-width":Z.WebkitTextStrokeWidth?`${Z.WebkitTextStrokeWidth}px`:void 0,stroke:Z.WebkitTextStrokeWidth?Z.WebkitTextStrokeColor:void 0,"stroke-linejoin":Z.WebkitTextStrokeWidth?"round":void 0,"paint-order":Z.WebkitTextStrokeWidth?"stroke":void 0}):"";E&&(A0=a("path",{d:Q8,transform:n0||void 0})),K0+=(S1?S1+a("g",{filter:`url(#satori_s-${w})`},Q0+o1):Q0+o1)+n8}return A0&&(X._inheritedBackgroundClipTextPath.value+=A0),K0}function XU(J,K){let Y=J.Node.create();return Y.setAlignItems(J.ALIGN_BASELINE),Y.setJustifyContent(V1(K,{left:J.JUSTIFY_FLEX_START,right:J.JUSTIFY_FLEX_END,center:J.JUSTIFY_CENTER,justify:J.JUSTIFY_SPACE_BETWEEN,start:J.JUSTIFY_FLEX_START,end:J.JUSTIFY_FLEX_END},J.JUSTIFY_FLEX_START,"textAlign")),Y}function ZU(J){let K=/(\t)+/.exec(J);return K?{index:K.index,tabCount:K[0].length}:{index:null,tabCount:0}}function bK(J,K,Y,X,Z){let Q=[];for(let z of K){let{color:U}=z;if(!Q.length&&(Q.push({offset:0,color:U}),!z.offset||z.offset.value==="0"))continue;let $=typeof z.offset>"u"?void 0:z.offset.unit==="%"?+z.offset.value/100:Number(U0(`${z.offset.value}${z.offset.unit}`,Y.fontSize,J,Y,!0))/J;Q.push({offset:$,color:U})}Q.length||Q.push({offset:0,color:"transparent"});let H=Q[Q.length-1];H.offset!==1&&(typeof H.offset>"u"?H.offset=1:X?Q[Q.length-1]={offset:1,color:H.color}:Q.push({offset:1,color:H.color}));let w=0,W=1;for(let z=0;z<Q.length;z++)if(typeof Q[z].offset>"u"){for(W<z&&(W=z);typeof Q[W].offset>"u";)W++;Q[z].offset=(Q[W].offset-Q[w].offset)/(W-w)*(z-w)+Q[w].offset}else w=z;return Z==="mask"?Q.map((z)=>{let U=U5(z.color);return U?U.alpha===0?{...z,color:"rgba(0, 0, 0, 1)"}:{...z,color:`rgba(255, 255, 255, ${U.alpha})`}:z}):Q}function QU({id:J,width:K,height:Y,repeatX:X,repeatY:Z},Q,H,w,W,z){let U=D7(Q),[$,V]=H,B=Q.startsWith("repeating"),q,G,M;if(U.orientation.type==="directional")q=WU(U.orientation.value),G=Math.sqrt(Math.pow((q.x2-q.x1)*$,2)+Math.pow((q.y2-q.y1)*V,2));else if(U.orientation.type==="angular"){let{length:E,...L}=wU(_K(`${U.orientation.value.value}${U.orientation.value.unit}`)/180*Math.PI,$,V);G=E,q=L}M=B?zU(U.stops,G,q,W):q;let N=bK(B?HU(U.stops,G):G,U.stops,W,B,z),j=`satori_bi${J}`,_=`satori_pattern_${J}`,R=a("pattern",{id:_,x:w[0]/K,y:w[1]/Y,width:X?$/K:"1",height:Z?V/Y:"1",patternUnits:"objectBoundingBox"},a("linearGradient",{id:j,...M,spreadMethod:B?"repeat":"pad"},N.map((E)=>a("stop",{offset:(E.offset??0)*100+"%","stop-color":E.color})).join(""))+a("rect",{x:0,y:0,width:$,height:V,fill:`url(#${j})`}));return[_,R]}function HU(J,K){let Y=J[J.length-1],{offset:X}=Y;return X?X.unit==="%"?Number(X.value)/100*K:Number(X.value):K}function WU(J){let K=0,Y=0,X=0,Z=0;return J.includes("top")?Y=1:J.includes("bottom")&&(Z=1),J.includes("left")?K=1:J.includes("right")&&(X=1),!K&&!X&&!Y&&!Z&&(Y=1),{x1:K,y1:Y,x2:X,y2:Z}}function wU(J,K,Y){let X=Math.pow(Y/K,2);J=(J%(Math.PI*2)+Math.PI*2)%(Math.PI*2);let Z,Q,H,w,W,z,U,$,V=(B)=>{if(B===0){Z=0,Q=Y,H=0,w=0,W=Y;return}else if(B===Math.PI/2){Z=0,Q=0,H=K,w=0,W=K;return}if(B>0&&B<Math.PI/2){Z=(X*K/2/Math.tan(B)-Y/2)/(Math.tan(B)+X/Math.tan(B)),Q=Math.tan(B)*Z+Y,H=Math.abs(K/2-Z)+K/2,w=Y/2-Math.abs(Q-Y/2),W=Math.sqrt(Math.pow(H-Z,2)+Math.pow(w-Q,2)),U=(K/2/Math.tan(B)-Y/2)/(Math.tan(B)+1/Math.tan(B)),$=Math.tan(B)*U+Y,W=2*Math.sqrt(Math.pow(K/2-U,2)+Math.pow(Y/2-$,2));return}else if(B>Math.PI/2&&B<Math.PI){Z=(Y/2+X*K/2/Math.tan(B))/(Math.tan(B)+X/Math.tan(B)),Q=Math.tan(B)*Z,H=Math.abs(K/2-Z)+K/2,w=Y/2+Math.abs(Q-Y/2),U=(K/2/Math.tan(B)+Y/2)/(Math.tan(B)+1/Math.tan(B)),$=Math.tan(B)*U,W=2*Math.sqrt(Math.pow(K/2-U,2)+Math.pow(Y/2-$,2));return}else B>=Math.PI&&(V(B-Math.PI),z=Z,Z=H,H=z,z=Q,Q=w,w=z)};return V(J),{x1:Z/K,y1:Q/Y,x2:H/K,y2:w/Y,length:W}}function zU(J,K,Y,X){let{x1:Z,x2:Q,y1:H,y2:w}=Y,W=J[0].offset?J[0].offset.unit==="%"?Number(J[0].offset.value)/100:U0(`${J[0].offset.value}${J[0].offset.unit}`,X.fontSize,K,X,!0)/K:0,z=J.at(-1).offset?J.at(-1).offset.unit==="%"?Number(J.at(-1).offset.value)/100:U0(`${J.at(-1).offset.value}${J.at(-1).offset.unit}`,X.fontSize,K,X,!0)/K:1,U=(Q-Z)*W+Z,$=(w-H)*W+H,V=(Q-Z)*z+Z,B=(w-H)*z+H;return{x1:U,y1:$,x2:V,y2:B}}function UU({id:J,width:K,height:Y,repeatX:X,repeatY:Z},Q,H,w,W,z){var U;let{shape:$,stops:V,position:B,size:q}=I7(Q),[G,M]=H,N=G/2,j=M/2,_=$U(B.x,B.y,G,M,W.fontSize,W);N=_.x,j=_.y;let R=bK(K,V,W,!1,z),E=`satori_radial_${J}`,L=`satori_pattern_${J}`,T=`satori_mask_${J}`,D=VU($,q,W.fontSize,{x:N,y:j},[G,M],W),P=a("pattern",{id:L,x:w[0]/K,y:w[1]/Y,width:X?G/K:"1",height:Z?M/Y:"1",patternUnits:"objectBoundingBox"},a("radialGradient",{id:E},R.map((x)=>a("stop",{offset:x.offset||0,"stop-color":x.color})).join(""))+a("mask",{id:T},a("rect",{x:0,y:0,width:G,height:M,fill:"#fff"}))+a("rect",{x:0,y:0,width:G,height:M,fill:((U=R.at(-1))==null?void 0:U.color)||"transparent"})+a($,{cx:N,cy:j,width:G,height:M,...D,fill:`url(#${E})`,mask:`url(#${T})`}));return[L,P]}function $U(J,K,Y,X,Z,Q){let H={x:Y/2,y:X/2};return J.type==="keyword"?Object.assign(H,yJ(J.value,Y,X,"x")):H.x=U0(`${J.value.value}${J.value.unit}`,Z,Y,Q,!0)||Y/2,K.type==="keyword"?Object.assign(H,yJ(K.value,Y,X,"y")):H.y=U0(`${K.value.value}${K.value.unit}`,Z,X,Q,!0)||X/2,H}function yJ(J,K,Y,X){switch(J){case"center":return{[X]:X==="x"?K/2:Y/2};case"left":return{x:0};case"top":return{y:0};case"right":return{x:K};case"bottom":return{y:Y}}}function VU(J,K,Y,X,Z,Q){let[H,w]=Z,{x:W,y:z}=X,U={},$=0,V=0;if(BU(K)){if(K.some((B)=>B.value.value.startsWith("-")))throw Error("disallow setting negative values to the size of the shape. Check https://w3c.github.io/csswg-drafts/css-images/#valdef-rg-size-length-0");return J==="circle"?{r:Number(U0(`${K[0].value.value}${K[0].value.unit}`,Y,H,Q,!0))}:{rx:Number(U0(`${K[0].value.value}${K[0].value.unit}`,Y,H,Q,!0)),ry:Number(U0(`${K[1].value.value}${K[1].value.unit}`,Y,w,Q,!0))}}switch(K[0].value){case"farthest-corner":$=Math.max(Math.abs(H-W),Math.abs(W)),V=Math.max(Math.abs(w-z),Math.abs(z));break;case"closest-corner":$=Math.min(Math.abs(H-W),Math.abs(W)),V=Math.min(Math.abs(w-z),Math.abs(z));break;case"farthest-side":return J==="circle"?U.r=Math.max(Math.abs(H-W),Math.abs(W),Math.abs(w-z),Math.abs(z)):(U.rx=Math.max(Math.abs(H-W),Math.abs(W)),U.ry=Math.max(Math.abs(w-z),Math.abs(z))),U;case"closest-side":return J==="circle"?U.r=Math.min(Math.abs(H-W),Math.abs(W),Math.abs(w-z),Math.abs(z)):(U.rx=Math.min(Math.abs(H-W),Math.abs(W)),U.ry=Math.min(Math.abs(w-z),Math.abs(z))),U}if(J==="circle")U.r=Math.sqrt($*$+V*V);else{let B=V!==0?$/V:1;$===0?(U.rx=0,U.ry=0):(U.ry=Math.sqrt($*$+V*V*B*B)/B,U.rx=U.ry*B)}return U}function BU(J){return!J.some((K)=>K.type==="keyword")}function AU(J,K){return typeof J=="string"&&J.endsWith("%")?K*parseFloat(J)/100:+J}function U4(J,{x:K,y:Y,defaultX:X,defaultY:Z}){return(J?J.split(" ").map((Q)=>{try{let H=new u8(Q);return H.type==="length"||H.type==="number"?H.value:H.value+H.unit}catch{return null}}).filter((Q)=>Q!==null):[X,Z]).map((Q,H)=>AU(Q,[K,Y][H]))}async function hK({id:J,width:K,height:Y,left:X,top:Z},{image:Q,size:H,position:w,repeat:W},z,U){W=W||"repeat",U=U||"background";let $=W==="repeat-x"||W==="repeat",V=W==="repeat-y"||W==="repeat",B=U4(H,{x:K,y:Y,defaultX:K,defaultY:Y}),q=U4(w,{x:K,y:Y,defaultX:0,defaultY:0});if(Q.startsWith("linear-gradient(")||Q.startsWith("repeating-linear-gradient("))return QU({id:J,width:K,height:Y,repeatX:$,repeatY:V},Q,B,q,z,U);if(Q.startsWith("radial-gradient("))return UU({id:J,width:K,height:Y,repeatX:$,repeatY:V},Q,B,q,z,U);if(Q.startsWith("url(")){let G=U4(H,{x:K,y:Y,defaultX:0,defaultY:0}),[M,N,j]=await y4(Q.slice(4,-1)),_=U==="mask"?N||G[0]:G[0]||N,R=U==="mask"?j||G[1]:G[1]||j;return[`satori_bi${J}`,a("pattern",{id:`satori_bi${J}`,patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",x:q[0]+X,y:q[1]+Z,width:$?_:"100%",height:V?R:"100%"},a("image",{x:0,y:0,width:_,height:R,preserveAspectRatio:"none",href:M}))]}throw Error(`Invalid background image: "${Q}"`)}function GU([J,K]){return Math.round(J*1000)===0&&Math.round(K*1000)===0?0:Math.round(J*K/Math.sqrt(J*J+K*K)*1000)/1000}function E5(J,K,Y){return Y<J+K&&(Y/2<J&&Y/2<K?J=K=Y/2:Y/2<J?J=Y-K:Y/2<K&&(K=Y-J)),[J,K]}function _5(J){J[0]=J[1]=Math.min(J[0],J[1])}function R5(J,K,Y,X,Z){if(typeof J=="string"){let Q=J.split(" ").map((w)=>w.trim()),H=!Q[1]&&!Q[0].endsWith("%");return Q[1]=Q[1]||Q[0],[H,[Math.min(U0(Q[0],X,K,Z,!0),K),Math.min(U0(Q[1],X,Y,Z,!0),Y)]]}return typeof J=="number"?[!0,[Math.min(J,K),Math.min(J,Y)]]:[!0,void 0]}var D5=(J)=>J&&J[0]!==0&&J[1]!==0;function MU({id:J,borderRadiusPath:K,borderType:Y,left:X,top:Z,width:Q,height:H},w){let W=`satori_brc-${J}`;return[a("clipPath",{id:W},a(Y,{x:X,y:Z,width:Q,height:H,d:K||void 0})),W]}function b5({left:J,top:K,width:Y,height:X},Z,Q){let{borderTopLeftRadius:H,borderTopRightRadius:w,borderBottomLeftRadius:W,borderBottomRightRadius:z,fontSize:U}=Z,$,V,B,q;if([$,H]=R5(H,Y,X,U,Z),[V,w]=R5(w,Y,X,U,Z),[B,W]=R5(W,Y,X,U,Z),[q,z]=R5(z,Y,X,U,Z),!Q&&!D5(H)&&!D5(w)&&!D5(W)&&!D5(z))return"";H||=[0,0],w||=[0,0],W||=[0,0],z||=[0,0],[H[0],w[0]]=E5(H[0],w[0],Y),[W[0],z[0]]=E5(W[0],z[0],Y),[H[1],W[1]]=E5(H[1],W[1],X),[w[1],z[1]]=E5(w[1],z[1],X),$&&_5(H),V&&_5(w),B&&_5(W),q&&_5(z);let G=[];G[0]=[w,w],G[1]=[z,[-z[0],z[1]]],G[2]=[W,[-W[0],-W[1]]],G[3]=[H,[H[0],-H[1]]];let M=`h${Y-H[0]-w[0]} a${G[0][0]} 0 0 1 ${G[0][1]}`,N=`v${X-w[1]-z[1]} a${G[1][0]} 0 0 1 ${G[1][1]}`,j=`h${z[0]+W[0]-Y} a${G[2][0]} 0 0 1 ${G[2][1]}`,_=`v${W[1]+H[1]-X} a${G[3][0]} 0 0 1 ${G[3][1]}`;if(Q){let R=function(p){let i=GU([H,w,z,W][p]);return p===0?[[J+H[0]-i,K+H[1]-i],[J+H[0],K]]:p===1?[[J+Y-w[0]+i,K+w[1]-i],[J+Y,K+w[1]]]:p===2?[[J+Y-z[0]+i,K+X-z[1]+i],[J+Y-z[0],K+X]]:[[J+W[0]-i,K+X-W[1]+i],[J,K+X-W[1]]]},E=Q.indexOf(!1);if(!Q.includes(!0))throw Error("Invalid `partialSides`.");if(E===-1)E=0;else for(;!Q[E];)E=(E+1)%4;let L="",T=R(E),D=`M${T[0]} A${G[(E+3)%4][0]} 0 0 1 ${T[1]}`,P=0;for(;P<4&&Q[(E+P)%4];P++)L+=D+" ",D=[M,N,j,_][(E+P)%4];let x=(E+P)%4;L+=D.split(" ")[0];let u=R(x);return L+=` A${G[(x+3)%4][0]} 0 0 1 ${u[0]}`,L}return`M${J+H[0]},${K} ${M} ${N} ${j} ${_}`}function kJ(J,K,Y){return Y[J+"Width"]===Y[K+"Width"]&&Y[J+"Style"]===Y[K+"Style"]&&Y[J+"Color"]===Y[K+"Color"]}function qU({id:J,currentClipPathId:K,borderPath:Y,borderType:X,left:Z,top:Q,width:H,height:w},W){if(!(W.borderTopWidth||W.borderRightWidth||W.borderBottomWidth||W.borderLeftWidth))return null;let z=`satori_bc-${J}`;return[a("clipPath",{id:z,"clip-path":K?`url(#${K})`:void 0},a(X,{x:Z,y:Q,width:H,height:w,d:Y||void 0})),z]}function mK({left:J,top:K,width:Y,height:X,props:Z,asContentMask:Q,maskBorderOnly:H},w){let W=["borderTop","borderRight","borderBottom","borderLeft"];if(!Q&&!W.some((B)=>w[B+"Width"]))return"";let z="",U=0;for(;U>0&&kJ(W[U],W[(U+3)%4],w);)U=(U+3)%4;let $=[!1,!1,!1,!1],V=[];for(let B=0;B<4;B++){let q=(U+B)%4,G=(U+B+1)%4,M=W[q],N=W[G];if($[q]=!0,V=[w[M+"Width"],w[M+"Style"],w[M+"Color"],M],!kJ(M,N,w)){let j=(V[0]||0)+(Q&&!H&&w[M.replace("border","padding")]||0);j&&(z+=a("path",{width:Y,height:X,...Z,fill:"none",stroke:Q?"#000":V[2],"stroke-width":j*2,"stroke-dasharray":!Q&&V[1]==="dashed"?j*2+" "+j:void 0,d:b5({left:J,top:K,width:Y,height:X},w,$)})),$=[!1,!1,!1,!1]}}if($.some(Boolean)){let B=(V[0]||0)+(Q&&!H&&w[V[3].replace("border","padding")]||0);B&&(z+=a("path",{width:Y,height:X,...Z,fill:"none",stroke:Q?"#000":V[2],"stroke-width":B*2,"stroke-dasharray":!Q&&V[1]==="dashed"?B*2+" "+B:void 0,d:b5({left:J,top:K,width:Y,height:X},w,$)}))}return z}function OU({id:J,left:K,top:Y,width:X,height:Z,matrix:Q,borderOnly:H},w){let W=(w.borderLeftWidth||0)+(H?0:w.paddingLeft||0),z=(w.borderTopWidth||0)+(H?0:w.paddingTop||0),U=(w.borderRightWidth||0)+(H?0:w.paddingRight||0),$=(w.borderBottomWidth||0)+(H?0:w.paddingBottom||0),V={x:K+W,y:Y+z,width:X-W-U,height:Z-z-$};return a("mask",{id:J},a("rect",{...V,fill:"#fff",transform:w.overflow==="hidden"&&w.transform&&Q?Q:void 0,mask:w._inheritedMaskId?`url(#${w._inheritedMaskId})`:void 0})+mK({left:K,top:Y,width:X,height:Z,props:{transform:Q||void 0},asContentMask:!0,maskBorderOnly:H},w))}var h8={circle:/circle\((.+)\)/,ellipse:/ellipse\((.+)\)/,path:/path\((.+)\)/,polygon:/polygon\((.+)\)/,inset:/inset\((.+)\)/};function NU({width:J,height:K},Y,X){function Z(z){let U=z.match(h8.circle);if(!U)return null;let[,$]=U,[V,B=""]=$.split("at").map((M)=>M.trim()),{x:q,y:G}=xJ(B,J,K);return{type:"circle",r:U0(V,X.fontSize,Math.sqrt(Math.pow(J,2)+Math.pow(K,2))/Math.sqrt(2),X,!0),cx:U0(q,X.fontSize,J,X,!0),cy:U0(G,X.fontSize,K,X,!0)}}function Q(z){let U=z.match(h8.ellipse);if(!U)return null;let[,$]=U,[V,B=""]=$.split("at").map((j)=>j.trim()),[q,G]=V.split(" "),{x:M,y:N}=xJ(B,J,K);return{type:"ellipse",rx:U0(q||"50%",X.fontSize,J,X,!0),ry:U0(G||"50%",X.fontSize,K,X,!0),cx:U0(M,X.fontSize,J,X,!0),cy:U0(N,X.fontSize,K,X,!0)}}function H(z){let U=z.match(h8.path);if(!U)return null;let[$,V]=gJ(U[1]);return{type:"path",d:V,"fill-rule":$}}function w(z){let U=z.match(h8.polygon);if(!U)return null;let[$,V]=gJ(U[1]);return{type:"polygon","fill-rule":$,points:V.split(",").map((B)=>B.split(" ").map((q,G)=>U0(q,X.fontSize,G===0?J:K,X,!0)).join(" ")).join(",")}}function W(z){let U=z.match(h8.inset);if(!U)return null;let[$,V]=(U[1].includes("round")?U[1]:`${U[1].trim()} round 0`).split("round"),B=j4.getStylesForProperty("borderRadius",V,!0),q=Object.values(B).map((R)=>String(R)).map((R,E)=>U0(R,X.fontSize,E===0||E===2?K:J,X,!0)||0),G=Object.values(j4.getStylesForProperty("margin",$,!0)).map((R)=>String(R)).map((R,E)=>U0(R,X.fontSize,E===0||E===2?K:J,X,!0)||0),M=G[3],N=G[0],j=J-(G[1]+G[3]),_=K-(G[0]+G[2]);return q.some((R)=>R>0)?{type:"path",d:b5({left:M,top:N,width:j,height:_},{...Y,...B})}:{type:"rect",x:M,y:N,width:j,height:_}}return{parseCircle:Z,parseEllipse:Q,parsePath:H,parsePolygon:w,parseInset:W}}function gJ(J){let[,K="nonzero",Y]=J.replace(/('|")/g,"").match(/^(nonzero|evenodd)?,?(.+)/)||[];return[K,Y]}function xJ(J,K,Y){let X=J.split(" "),Z={x:X[0]||"50%",y:X[1]||"50%"};return X.forEach((Q)=>{Q==="top"?Z.y=0:Q==="bottom"?Z.y=Y:Q==="left"?Z.x=0:Q==="right"?Z.x=K:Q==="center"&&(Z.x=K/2,Z.y=Y/2)}),Z}function g4(J){return`satori_cp-${J}`}function jU(J){return`url(#${g4(J)})`}function LU(J,K,Y){if(K.clipPath==="none")return"";let X=NU(J,K,Y),Z=K.clipPath,Q={type:""};for(let H of Object.keys(X))if(Q=X[H](Z),Q)break;if(Q){let{type:H,...w}=Q;return a("clipPath",{id:g4(J.id),"clip-path":J.currentClipPath,transform:`translate(${J.left}, ${J.top})`},a(H,w))}return""}function FU({left:J,top:K,width:Y,height:X,path:Z,matrix:Q,id:H,currentClipPath:w,src:W},z,U){let $="",V=z.clipPath&&z.clipPath!=="none"?LU({left:J,top:K,width:Y,height:X,path:Z,id:H,matrix:Q,currentClipPath:w,src:W},z,U):"";if(z.overflow!=="hidden"&&!W)$="";else{let q=V?`satori_ocp-${H}`:g4(H);$=a("clipPath",{id:q,"clip-path":w},a(Z?"path":"rect",{x:J,y:K,width:Y,height:X,d:Z||void 0,transform:z.overflow==="hidden"&&z.transform&&Q?Q:void 0}))}let B=OU({id:`satori_om-${H}`,left:J,top:K,width:Y,height:X,matrix:Q,borderOnly:!W},z);return V+$+B}var EU=(J)=>`satori_mi-${J}`;async function _U(J,K,Y){if(!K.maskImage)return["",""];let{left:X,top:Z,width:Q,height:H,id:w}=J,W=K.maskImage,z=W.length;if(!z)return["",""];let U=EU(w),$="";for(let V=0;V<z;V++){let B=W[V],[q,G]=await hK({id:`${U}-${V}`,left:X,top:Z,width:Q,height:H},B,Y,"mask");$+=G+a("rect",{x:X,y:Z,width:Q,height:H,fill:`url(#${q})`})}return $=a("mask",{id:U},$),[U,$]}async function $4({id:J,left:K,top:Y,width:X,height:Z,isInheritingTransform:Q,src:H,debug:w},W,z){if(W.display==="none")return"";let U=!!H,$="rect",V="",B="",q=[],G=1,M="";W.backgroundColor&&q.push(W.backgroundColor),W.opacity!==void 0&&(G=+W.opacity),W.transform&&(V=gK({left:K,top:Y,width:X,height:Z},W.transform,Q,W.transformOrigin));let N="";if(W.backgroundImage){let S=[];for(let I=0;I<W.backgroundImage.length;I++){let d=W.backgroundImage[I],l=await hK({id:J+"_"+I,width:X,height:Z,left:K,top:Y},d,z);l&&S.unshift(l)}for(let I of S)q.push(`url(#${I[0]})`),B+=I[1],I[2]&&(N+=I[2])}let[j,_]=await _U({id:J,left:K,top:Y,width:X,height:Z},W,z);B+=_;let R=j?`url(#${j})`:W._inheritedMaskId?`url(#${W._inheritedMaskId})`:void 0,E=b5({left:K,top:Y,width:X,height:Z},W);E&&($="path");let L=W._inheritedClipPathId;w&&(M=a("rect",{x:K,y:Y,width:X,height:Z,fill:"transparent",stroke:"#ff5757","stroke-width":1,transform:V||void 0,"clip-path":L?`url(#${L})`:void 0}));let{backgroundClip:T,filter:D}=W,P=T==="text"?`url(#satori_bct-${J})`:L?`url(#${L})`:W.clipPath?jU(J):void 0,x=FU({left:K,top:Y,width:X,height:Z,path:E,id:J,matrix:V,currentClipPath:P,src:H},W,z),u=q.map((S)=>a($,{x:K,y:Y,width:X,height:Z,fill:S,d:E||void 0,transform:V||void 0,"clip-path":W.transform?void 0:P,style:D?`filter:${D}`:void 0,mask:W.transform?void 0:R})).join(""),p=qU({id:J,left:K,top:Y,width:X,height:Z,currentClipPathId:L,borderPath:E,borderType:$},W),i;if(U){let S=(W.borderLeftWidth||0)+(W.paddingLeft||0),I=(W.borderTopWidth||0)+(W.paddingTop||0),d=(W.borderRightWidth||0)+(W.paddingRight||0),l=(W.borderBottomWidth||0)+(W.paddingBottom||0),c=W.objectFit==="contain"?"xMidYMid":W.objectFit==="cover"?"xMidYMid slice":"none";W.transform&&(i=MU({id:J,borderRadiusPath:E,borderType:$,left:K,top:Y,width:X,height:Z},W)),u+=a("image",{x:K+S,y:Y+I,width:X-S-d,height:Z-I-l,href:H,preserveAspectRatio:c,transform:V||void 0,style:D?`filter:${D}`:void 0,"clip-path":W.transform?i?`url(#${i[1]})`:void 0:`url(#satori_cp-${J})`,mask:W.transform?void 0:j?`url(#${j})`:`url(#satori_om-${J})`})}if(p){B+=p[0];let S=p[1];u+=mK({left:K,top:Y,width:X,height:Z,props:{transform:V||void 0,"clip-path":`url(#${S})`}},W)}let C=pz({width:X,height:Z,id:J,opacity:G,shape:a($,{x:K,y:Y,width:X,height:Z,fill:"#fff",stroke:"#fff","stroke-width":0,d:E||void 0,transform:V||void 0,"clip-path":P,mask:R})},W);return(B?a("defs",{},B):"")+(C?C[0]:"")+(i?i[0]:"")+x+(G!==1?`<g opacity="${G}">`:"")+(W.transform&&(P||R)?`<g${P?` clip-path="${P}"`:""}${R?` mask="${R}"`:""}>`:"")+(N||u)+(W.transform&&(P||R)?"</g>":"")+(G!==1?"</g>":"")+(C?C[1]:"")+M}var RU=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC3\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC08\uDC26](?:\u200D\u2B1B)?|[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g,DU=new RegExp(RU(),""),L4={emoji:DU,symbol:/\p{Symbol}/u,math:/\p{Math}/u},F4={"ja-JP":/\p{scx=Hira}|\p{scx=Kana}|\p{scx=Han}|[\u3000]|[\uFF00-\uFFEF]/u,"ko-KR":/\p{scx=Hangul}/u,"zh-CN":/\p{scx=Han}/u,"zh-TW":/\p{scx=Han}/u,"zh-HK":/\p{scx=Han}/u,"th-TH":/\p{scx=Thai}/u,"bn-IN":/\p{scx=Bengali}/u,"ar-AR":/\p{scx=Arabic}/u,"ta-IN":/\p{scx=Tamil}/u,"ml-IN":/\p{scx=Malayalam}/u,"he-IL":/\p{scx=Hebrew}/u,"te-IN":/\p{scx=Telugu}/u,devanagari:/\p{scx=Devanagari}/u,kannada:/\p{scx=Kannada}/u},x4=Object.keys({...F4,...L4});function IU(J){return x4.includes(J)}function TU(J,K){for(let X of Object.keys(L4))if(L4[X].test(J))return[X];let Y=Object.keys(F4).filter((X)=>F4[X].test(J));if(Y.length===0)return["unknown"];if(K){let X=Y.findIndex((Z)=>Z===K);X!==-1&&(Y.splice(X,1),Y.unshift(K))}return Y}function CU(J){if(J)return x4.find((K)=>K.toLowerCase().startsWith(J.toLowerCase()))}async function*E4(J,K){var Y;let X=await d5(),{id:Z,inheritedStyle:Q,parent:H,font:w,debug:W,locale:z,embedFont:U=!0,graphemeImages:$,canLoadAdditionalAssets:V,getTwStyles:B}=K;if(J===null||typeof J>"u")return yield,yield,"";if(!S5(J)||typeof J.type=="function"){let k;if(!S5(J))k=YU(String(J),K),yield(await k.next()).value;else{if(Qz(J.type))throw Error("Class component is not supported.");k=E4(J.type(J.props),K),yield(await k.next()).value}await k.next();let s=yield;return(await k.next(s)).value}let{type:q,props:G}=J;if(G&&Hz(G))throw Error("dangerouslySetInnerHTML property is not supported. See documentation for more information https://github.com/vercel/satori#jsx.");let{style:M,children:N,tw:j,lang:_=z}=G||{},R=CU(_);if(j){let k=B(j,M);M=Object.assign(k,M)}let E=X.Node.create();H.insertChild(E,H.getChildCount());let[L,T]=await mz(E,q,Q,M,G),D=L.transform===Q.transform;if(D||(L.transform.__parent=Q.transform),(L.overflow==="hidden"||L.clipPath&&L.clipPath!=="none")&&(T._inheritedClipPathId=`satori_cp-${Z}`,T._inheritedMaskId=`satori_om-${Z}`),L.maskImage&&(T._inheritedMaskId=`satori_mi-${Z}`),L.backgroundClip==="text"){let k={value:""};T._inheritedBackgroundClipTextPath=k,L._inheritedBackgroundClipTextPath=k}let P=Wz(N),x=[],u=0,p=[];for(let k of P){let s=E4(k,{id:Z+"-"+u++,parentStyle:L,inheritedStyle:T,isInheritingTransform:!0,parent:E,font:w,embedFont:U,debug:W,graphemeImages:$,canLoadAdditionalAssets:V,locale:R,getTwStyles:B,onNodeDetected:K.onNodeDetected});V?p.push(...(await s.next()).value||[]):await s.next(),x.push(s)}yield p;for(let k of x)await k.next();let[i,C]=yield,{left:S,top:I,width:d,height:l}=E.getComputedLayout();S+=i,I+=C;let c="",o="",m="",{children:f,...y}=G;if((Y=K.onNodeDetected)==null||Y.call(K,{left:S,top:I,width:d,height:l,type:q,props:y,key:J.key,textContent:S5(f)?void 0:f}),q==="img"){let k=L.__src;o=await $4({id:Z,left:S,top:I,width:d,height:l,src:k,isInheritingTransform:D,debug:W},L,T)}else if(q==="svg"){let k=L.color,s=await _z(J,k);o=await $4({id:Z,left:S,top:I,width:d,height:l,src:s,isInheritingTransform:D,debug:W},L,T)}else{let k=M==null?void 0:M.display;if(q==="div"&&N&&typeof N!="string"&&k!=="flex"&&k!=="none")throw Error('Expected <div> to have explicit "display: flex" or "display: none" if it has more than one child node.');o=await $4({id:Z,left:S,top:I,width:d,height:l,isInheritingTransform:D,debug:W},L,T)}for(let k of x)c+=(await k.next([S,I])).value;return L._inheritedBackgroundClipTextPath&&(m+=a("clipPath",{id:`satori_bct-${Z}`,"clip-path":L._inheritedClipPathId?`url(#${L._inheritedClipPathId})`:void 0},L._inheritedBackgroundClipTextPath.value)),m+o+c}var fK="unknown";function PU(J,K,[Y,X],[Z,Q]){if(Y!==Z)return Y?!Z||Y===J?-1:Z===J?1:J===400&&Y===500||J===500&&Y===400?-1:J===400&&Z===500||J===500&&Z===400?1:J<400?Y<J&&Z<J?Z-Y:Y<J?-1:Z<J?1:Y-Z:J<Y&&J<Z?Y-Z:J<Y?-1:J<Z?1:Z-Y:1;if(X!==Q){if(X===K)return-1;if(Q===K)return 1}return-1}var SU=class{constructor(J){this.fonts=new Map,this.addFonts(J)}get({name:J,weight:K,style:Y}){if(!this.fonts.has(J))return null;K==="normal"&&(K=400),K==="bold"&&(K=700),typeof K=="string"&&(K=Number.parseInt(K,10));let X=[...this.fonts.get(J)],Z=X[0];for(let Q=1;Q<X.length;Q++){let[,H,w]=Z,[,W,z]=X[Q];PU(K,Y,[H,w],[W,z])>0&&(Z=X[Q])}return Z[0]}addFonts(J){for(let K of J){let{name:Y,data:X,lang:Z}=K;if(Z&&!IU(Z))throw Error(`Invalid value for props \`lang\`: "${Z}". The value must be one of the following: ${x4.join(", ")}.`);let Q=Z??fK,H=N5.parse("buffer"in X?X.buffer.slice(X.byteOffset,X.byteOffset+X.byteLength):X,{lowMemory:!0}),w=H.charToGlyphIndex;H.charToGlyphIndex=(z)=>{let U=w.call(H,z);return U===0&&H._trackBrokenChars&&H._trackBrokenChars.push(z),U},this.defaultFont||(this.defaultFont=H);let W=`${Y.toLowerCase()}_${Q}`;this.fonts.has(W)||this.fonts.set(W,[]),this.fonts.get(W).push([H,K.weight,K.style])}}getEngine(J=16,K="normal",{fontFamily:Y="sans-serif",fontWeight:X=400,fontStyle:Z="normal"},Q){if(!this.fonts.size)throw Error("No fonts are loaded. At least one font is required to calculate the layout.");Y=(Array.isArray(Y)?Y:[Y]).map((N)=>N.toLowerCase());let H=[];Y.forEach((N)=>{let j=this.get({name:N,weight:X,style:Z});if(j){H.push(j);return}let _=this.get({name:N+"_unknown",weight:X,style:Z});if(_){H.push(_);return}});let w=Array.from(this.fonts.keys()),W=[],z=[],U=[];for(let N of w)if(!Y.includes(N))if(Q){let j=vU(N);j?j===Q?W.push(this.get({name:N,weight:X,style:Z})):z.push(this.get({name:N,weight:X,style:Z})):U.push(this.get({name:N,weight:X,style:Z}))}else U.push(this.get({name:N,weight:X,style:Z}));let $=new Map,V=(N,j=!0)=>{let _=[...H,...U,...W,...j?z:[]];if(typeof N>"u")return j?_[_.length-1]:void 0;let R=N.charCodeAt(0);if($.has(R))return $.get(R);let E=_.find((L,T)=>!!L.charToGlyphIndex(N)||j&&T===_.length-1);return E&&$.set(R,E),E},B=(N,j=!1)=>{var _,R;return((j?(R=(_=N.tables)==null?void 0:_.os2)==null?void 0:R.sTypoAscender:0)||N.ascender)/N.unitsPerEm*J},q=(N,j=!1)=>{var _,R;return((j?(R=(_=N.tables)==null?void 0:_.os2)==null?void 0:R.sTypoDescender:0)||N.descender)/N.unitsPerEm*J},G=(N,j=!1)=>{var _,R;if(typeof K=="string"&&K==="normal"){let E=(j?(R=(_=N.tables)==null?void 0:_.os2)==null?void 0:R.sTypoLineGap:0)||0;return B(N,j)-q(N,j)+E/N.unitsPerEm*J}else if(typeof K=="number")return J*K},M=(N)=>V(N,!1);return{has:(N)=>{if(N===`
66
- `)return!0;let j=M(N);return j?(j._trackBrokenChars=[],j.stringToGlyphs(N),j._trackBrokenChars.length?(j._trackBrokenChars=void 0,!1):!0):!1},baseline:(N,j=typeof N>"u"?H[0]:V(N))=>{let _=B(j),R=q(j),E=_-R;return _+(G(j)-E)/2},height:(N,j=typeof N>"u"?H[0]:V(N))=>G(j),measure:(N,j)=>this.measure(V,N,j),getSVG:(N,j)=>this.getSVG(V,N,j)}}patchFontFallbackResolver(J,K){let Y=[];J._trackBrokenChars=Y;let X=J.stringToGlyphs;return J.stringToGlyphs=(Z,...Q)=>{let H=X.call(J,Z,...Q);for(let w=0;w<H.length;w++)if(H[w].unicode===void 0){let W=Y.shift(),z=K(W);if(z!==J){let U=z.charToGlyph(W),$=J.unitsPerEm/z.unitsPerEm,V=new N5.Path;V.unitsPerEm=J.unitsPerEm,V.commands=U.path.commands.map((q)=>{let G={...q};for(let M in G)typeof G[M]=="number"&&(G[M]*=$);return G});let B=new N5.Glyph({...U,advanceWidth:U.advanceWidth*$,xMin:U.xMin*$,xMax:U.xMax*$,yMin:U.yMin*$,yMax:U.yMax*$,path:V});H[w]=B}}return H},()=>{J.stringToGlyphs=X,J._trackBrokenChars=void 0}}measure(J,K,{fontSize:Y,letterSpacing:X=0}){let Z=J(K),Q=this.patchFontFallbackResolver(Z,J);try{return Z.getAdvanceWidth(K,Y,{letterSpacing:X/Y})}finally{Q()}}getSVG(J,K,{fontSize:Y,top:X,left:Z,letterSpacing:Q=0}){let H=J(K),w=this.patchFontFallbackResolver(H,J);try{return Y===0?"":H.getPath(K.replace(/\n/g,""),Z,X,Y,{letterSpacing:Q/Y}).toPathData(1)}finally{w()}}};function vU(J){let K=J.split("_"),Y=K[K.length-1];return Y===fK?void 0:Y}function yU({width:J,height:K,content:Y}){return a("svg",{width:J,height:K,viewBox:`0 0 ${J} ${K}`,xmlns:"http://www.w3.org/2000/svg"},Y)}var kU=$w(ow()),gU=["ios","android","windows","macos","web"];function xU(J){return gU.includes(J)}var bU=["portrait","landscape"];function hU(J){return bU.includes(J)}var bJ;(function(J){J.fontSize="fontSize",J.lineHeight="lineHeight"})(bJ||(bJ={}));var q0;(function(J){J.rem="rem",J.em="em",J.px="px",J.percent="%",J.vw="vw",J.vh="vh",J.none="<no-css-unit>"})(q0||(q0={}));function hJ(J){return typeof J=="string"}function mJ(J){return typeof J=="object"}var V4;function b(J){return{kind:"complete",style:J}}function K1(J,K={}){let{fractions:Y}=K;if(Y&&J.includes("/")){let[Q="",H=""]=J.split("/",2),w=K1(Q),W=K1(H);return!w||!W?null:[w[0]/W[0],W[1]]}let X=parseFloat(J);if(Number.isNaN(X))return null;let Z=J.match(/(([a-z]{2,}|%))$/);if(!Z)return[X,q0.none];switch(Z==null?void 0:Z[1]){case"rem":return[X,q0.rem];case"px":return[X,q0.px];case"em":return[X,q0.em];case"%":return[X,q0.percent];case"vw":return[X,q0.vw];case"vh":return[X,q0.vh];default:return null}}function p8(J,K,Y={}){let X=Y8(K,Y);return X===null?null:b({[J]:X})}function B4(J,K,Y){let X=Y8(K);return X!==null&&(Y[J]=X),Y}function mU(J,K){let Y=Y8(K);return Y===null?null:{[J]:Y}}function Y8(J,K={}){if(J===void 0)return null;let Y=K1(String(J),K);return Y?i8(...Y,K):null}function i8(J,K,Y={}){let{isNegative:X,device:Z}=Y;switch(K){case q0.rem:return J*16*(X?-1:1);case q0.px:return J*(X?-1:1);case q0.percent:return`${X?"-":""}${J}%`;case q0.none:return J*(X?-1:1);case q0.vw:return Z!=null&&Z.windowDimensions?Z.windowDimensions.width*(J/100):(C1("`vw` CSS unit requires configuration with `useDeviceContext()`"),null);case q0.vh:return Z!=null&&Z.windowDimensions?Z.windowDimensions.height*(J/100):(C1("`vh` CSS unit requires configuration with `useDeviceContext()`"),null);default:return null}}function fJ(J){let K=K1(J);if(!K)return null;let[Y,X]=K;switch(X){case q0.rem:return Y*16;case q0.px:return Y;default:return null}}var fU={t:"Top",tr:"TopRight",tl:"TopLeft",b:"Bottom",br:"BottomRight",bl:"BottomLeft",l:"Left",r:"Right",x:"Horizontal",y:"Vertical"};function dK(J){return fU[J??""]||"All"}function lK(J){let K="All";return[J.replace(/^-(t|b|r|l|tr|tl|br|bl)(-|$)/,(Y,X)=>(K=dK(X),"")),K]}function i5(J,K={}){if(J.includes("/")){let Y=dJ(J,{...K,fractions:!0});if(Y)return Y}return J[0]==="["&&(J=J.slice(1,-1)),dJ(J,K)}function X8(J,K,Y={}){let X=i5(K,Y);return X===null?null:b({[J]:X})}function dJ(J,K={}){if(J==="px")return 1;let Y=K1(J,K);if(!Y)return null;let[X,Z]=Y;return K.fractions&&(Z=q0.percent,X*=100),Z===q0.none&&(X=X/4,Z=q0.rem),i8(X,Z,K)}function dU(...J){console.warn(...J)}function lU(...J){}var C1=typeof process>"u"||((V4=process==null?void 0:process.env)===null||V4===void 0?void 0:V4.JEST_WORKER_ID)===void 0?dU:lU,cU=[["aspect-square",b({aspectRatio:1})],["aspect-video",b({aspectRatio:1.7777777777777777})],["items-center",b({alignItems:"center"})],["items-start",b({alignItems:"flex-start"})],["items-end",b({alignItems:"flex-end"})],["items-baseline",b({alignItems:"baseline"})],["items-stretch",b({alignItems:"stretch"})],["justify-start",b({justifyContent:"flex-start"})],["justify-end",b({justifyContent:"flex-end"})],["justify-center",b({justifyContent:"center"})],["justify-between",b({justifyContent:"space-between"})],["justify-around",b({justifyContent:"space-around"})],["justify-evenly",b({justifyContent:"space-evenly"})],["content-start",b({alignContent:"flex-start"})],["content-end",b({alignContent:"flex-end"})],["content-between",b({alignContent:"space-between"})],["content-around",b({alignContent:"space-around"})],["content-stretch",b({alignContent:"stretch"})],["content-center",b({alignContent:"center"})],["self-auto",b({alignSelf:"auto"})],["self-start",b({alignSelf:"flex-start"})],["self-end",b({alignSelf:"flex-end"})],["self-center",b({alignSelf:"center"})],["self-stretch",b({alignSelf:"stretch"})],["self-baseline",b({alignSelf:"baseline"})],["direction-inherit",b({direction:"inherit"})],["direction-ltr",b({direction:"ltr"})],["direction-rtl",b({direction:"rtl"})],["hidden",b({display:"none"})],["flex",b({display:"flex"})],["flex-row",b({flexDirection:"row"})],["flex-row-reverse",b({flexDirection:"row-reverse"})],["flex-col",b({flexDirection:"column"})],["flex-col-reverse",b({flexDirection:"column-reverse"})],["flex-wrap",b({flexWrap:"wrap"})],["flex-wrap-reverse",b({flexWrap:"wrap-reverse"})],["flex-nowrap",b({flexWrap:"nowrap"})],["flex-auto",b({flexGrow:1,flexShrink:1,flexBasis:"auto"})],["flex-initial",b({flexGrow:0,flexShrink:1,flexBasis:"auto"})],["flex-none",b({flexGrow:0,flexShrink:0,flexBasis:"auto"})],["overflow-hidden",b({overflow:"hidden"})],["overflow-visible",b({overflow:"visible"})],["overflow-scroll",b({overflow:"scroll"})],["absolute",b({position:"absolute"})],["relative",b({position:"relative"})],["italic",b({fontStyle:"italic"})],["not-italic",b({fontStyle:"normal"})],["oldstyle-nums",m8("oldstyle-nums")],["small-caps",m8("small-caps")],["lining-nums",m8("lining-nums")],["tabular-nums",m8("tabular-nums")],["proportional-nums",m8("proportional-nums")],["font-thin",b({fontWeight:"100"})],["font-100",b({fontWeight:"100"})],["font-extralight",b({fontWeight:"200"})],["font-200",b({fontWeight:"200"})],["font-light",b({fontWeight:"300"})],["font-300",b({fontWeight:"300"})],["font-normal",b({fontWeight:"normal"})],["font-400",b({fontWeight:"400"})],["font-medium",b({fontWeight:"500"})],["font-500",b({fontWeight:"500"})],["font-semibold",b({fontWeight:"600"})],["font-600",b({fontWeight:"600"})],["font-bold",b({fontWeight:"bold"})],["font-700",b({fontWeight:"700"})],["font-extrabold",b({fontWeight:"800"})],["font-800",b({fontWeight:"800"})],["font-black",b({fontWeight:"900"})],["font-900",b({fontWeight:"900"})],["include-font-padding",b({includeFontPadding:!0})],["remove-font-padding",b({includeFontPadding:!1})],["max-w-none",b({maxWidth:"99999%"})],["text-left",b({textAlign:"left"})],["text-center",b({textAlign:"center"})],["text-right",b({textAlign:"right"})],["text-justify",b({textAlign:"justify"})],["text-auto",b({textAlign:"auto"})],["underline",b({textDecorationLine:"underline"})],["line-through",b({textDecorationLine:"line-through"})],["no-underline",b({textDecorationLine:"none"})],["uppercase",b({textTransform:"uppercase"})],["lowercase",b({textTransform:"lowercase"})],["capitalize",b({textTransform:"capitalize"})],["normal-case",b({textTransform:"none"})],["w-auto",b({width:"auto"})],["h-auto",b({height:"auto"})],["shadow-sm",b({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:1,shadowOpacity:0.025,elevation:1})],["shadow",b({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:1,shadowOpacity:0.075,elevation:2})],["shadow-md",b({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:3,shadowOpacity:0.125,elevation:3})],["shadow-lg",b({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:0.15,shadowRadius:8,elevation:8})],["shadow-xl",b({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:0.19,shadowRadius:20,elevation:12})],["shadow-2xl",b({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:0.25,shadowRadius:30,elevation:16})],["shadow-none",b({shadowOffset:{width:0,height:0},shadowColor:"#000",shadowRadius:0,shadowOpacity:0,elevation:0})]],lJ=cU;function m8(J){return{kind:"dependent",complete(K){(!K.fontVariant||!Array.isArray(K.fontVariant))&&(K.fontVariant=[]),K.fontVariant.push(J)}}}var uU=class{constructor(J){this.ir=new Map(lJ),this.styles=new Map,this.prefixes=new Map,this.ir=new Map([...lJ,...J??[]])}getStyle(J){return this.styles.get(J)}setStyle(J,K){this.styles.set(J,K)}getIr(J){return this.ir.get(J)}setIr(J,K){this.ir.set(J,K)}getPrefixMatch(J){return this.prefixes.get(J)}setPrefixMatch(J,K){this.prefixes.set(J,K)}};function pU(J,K,Y={}){let X=K==null?void 0:K[J];if(!X)return X8("fontSize",J,Y);if(typeof X=="string")return p8("fontSize",X);let Z={},[Q,H]=X,w=mU("fontSize",Q);if(w&&(Z=w),typeof H=="string")return b(B4("lineHeight",cJ(H,Z),Z));let{lineHeight:W,letterSpacing:z}=H;return W&&B4("lineHeight",cJ(W,Z),Z),z&&B4("letterSpacing",z,Z),b(Z)}function cJ(J,K){let Y=K1(J);if(Y){let[X,Z]=Y;if((Z===q0.none||Z===q0.em)&&typeof K.fontSize=="number")return K.fontSize*X}return J}function iU(J,K){var Y;let X=(Y=K==null?void 0:K[J])!==null&&Y!==void 0?Y:J.startsWith("[")?J.slice(1,-1):J,Z=K1(X);if(!Z)return null;let[Q,H]=Z;if(H===q0.none)return{kind:"dependent",complete(W){if(typeof W.fontSize!="number")return"relative line-height utilities require that font-size be set";W.lineHeight=W.fontSize*Q}};let w=i8(Q,H);return w!==null?b({lineHeight:w}):null}function oU(J,K,Y,X,Z){let Q="";if(X[0]==="[")Q=X.slice(1,-1);else{let z=Z==null?void 0:Z[X];if(z)Q=z;else{let U=i5(X);return U&&typeof U=="number"?uJ(U,q0.px,K,J):null}}if(Q==="auto")return cK(K,J,"auto");let H=K1(Q);if(!H)return null;let[w,W]=H;return Y&&(w=-w),uJ(w,W,K,J)}function uJ(J,K,Y,X){let Z=i8(J,K);return Z===null?null:cK(Y,X,Z)}function cK(J,K,Y){switch(J){case"All":return{kind:"complete",style:{[`${K}Top`]:Y,[`${K}Right`]:Y,[`${K}Bottom`]:Y,[`${K}Left`]:Y}};case"Bottom":case"Top":case"Left":case"Right":return{kind:"complete",style:{[`${K}${J}`]:Y}};case"Vertical":return{kind:"complete",style:{[`${K}Top`]:Y,[`${K}Bottom`]:Y}};case"Horizontal":return{kind:"complete",style:{[`${K}Left`]:Y,[`${K}Right`]:Y}};default:return null}}function rU(J){if(!J)return{};let K=Object.entries(J).reduce((Z,[Q,H])=>{let w=[0,1/0,0],W=typeof H=="string"?{min:H}:H,z=W.min?fJ(W.min):0;z===null?C1(`invalid screen config value: ${Q}->min: ${W.min}`):w[0]=z;let U=W.max?fJ(W.max):1/0;return U===null?C1(`invalid screen config value: ${Q}->max: ${W.max}`):w[1]=U,Z[Q]=w,Z},{}),Y=Object.values(K);Y.sort((Z,Q)=>{let[H,w]=Z,[W,z]=Q;return w===1/0||z===1/0?H-W:w-z});let X=0;return Y.forEach((Z)=>Z[2]=X++),K}function nU(J,K){let Y=K==null?void 0:K[J];if(!Y)return null;if(typeof Y=="string")return b({fontFamily:Y});let X=Y[0];return X?b({fontFamily:X}):null}function d8(J,K,Y){if(!Y)return null;let X;K.includes("/")&&([K="",X]=K.split("/",2));let Z="";if(K.startsWith("[#")||K.startsWith("[rgb")?Z=K.slice(1,-1):Z=uK(K,Y),!Z)return null;if(X){let Q=Number(X);if(!Number.isNaN(Q))return Z=pJ(Z,Q/100),b({[g5[J].color]:Z})}return{kind:"dependent",complete(Q){let H=g5[J].opacity,w=Q[H];typeof w=="number"&&(Z=pJ(Z,w)),Q[g5[J].color]=Z}}}function I5(J,K){let Y=parseInt(K,10);if(Number.isNaN(Y))return null;let X=Y/100;return{kind:"complete",style:{[g5[J].opacity]:X}}}function pJ(J,K){return J.startsWith("#")?J=aU(J):J.startsWith("rgb(")&&(J=J.replace(/^rgb\(/,"rgba(").replace(/\)$/,", 1)")),J.replace(/, ?\d*\.?(\d+)\)$/,`, ${K})`)}function sU(J){for(let K in J)K.startsWith("__opacity_")&&delete J[K]}var g5={bg:{opacity:"__opacity_bg",color:"backgroundColor"},text:{opacity:"__opacity_text",color:"color"},border:{opacity:"__opacity_border",color:"borderColor"},borderTop:{opacity:"__opacity_border",color:"borderTopColor"},borderBottom:{opacity:"__opacity_border",color:"borderBottomColor"},borderLeft:{opacity:"__opacity_border",color:"borderLeftColor"},borderRight:{opacity:"__opacity_border",color:"borderRightColor"},shadow:{opacity:"__opacity_shadow",color:"shadowColor"},tint:{opacity:"__opacity_tint",color:"tintColor"}};function aU(J){let K=J;J=J.replace(tU,(H,w,W,z)=>w+w+W+W+z+z);let Y=eU.exec(J);if(!Y)return C1(`invalid config hex color value: ${K}`),"rgba(0, 0, 0, 1)";let X=parseInt(Y[1],16),Z=parseInt(Y[2],16),Q=parseInt(Y[3],16);return`rgba(${X}, ${Z}, ${Q}, 1)`}function uK(J,K){let Y=K[J];if(hJ(Y))return Y;if(mJ(Y)&&hJ(Y.DEFAULT))return Y.DEFAULT;let[X="",...Z]=J.split("-");for(;X!==J;){let Q=K[X];if(mJ(Q))return uK(Z.join("-"),Q);if(Z.length===0)return"";X=`${X}-${Z.shift()}`}return""}var tU=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,eU=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;function J$(J,K){let[Y,X]=lK(J);if(Y.match(/^(-?(\d)+)?$/))return K$(Y,X,K==null?void 0:K.borderWidth);if(Y=Y.replace(/^-/,""),["dashed","solid","dotted"].includes(Y))return b({borderStyle:Y});let Z="border";switch(X){case"Bottom":Z="borderBottom";break;case"Top":Z="borderTop";break;case"Left":Z="borderLeft";break;case"Right":Z="borderRight";break}let Q=d8(Z,Y,K==null?void 0:K.borderColor);if(Q)return Q;let H=`border${X==="All"?"":X}Width`;Y=Y.replace(/^-/,"");let w=Y.slice(1,-1),W=X8(H,w);return typeof(W==null?void 0:W.style[H])!="number"?null:W}function K$(J,K,Y){if(!Y)return null;J=J.replace(/^-/,"");let X=Y[J===""?"DEFAULT":J];if(X===void 0)return null;let Z=`border${K==="All"?"":K}Width`;return p8(Z,X)}function Y$(J,K){if(!K)return null;let[Y,X]=lK(J);Y=Y.replace(/^-/,""),Y===""&&(Y="DEFAULT");let Z=`border${X==="All"?"":X}Radius`,Q=K[Y];if(Q)return iJ(p8(Z,Q));let H=X8(Z,Y);return typeof(H==null?void 0:H.style[Z])!="number"?null:iJ(H)}function iJ(J){if((J==null?void 0:J.kind)!=="complete")return J;let K=J.style.borderTopRadius;K!==void 0&&(J.style.borderTopLeftRadius=K,J.style.borderTopRightRadius=K,delete J.style.borderTopRadius);let Y=J.style.borderBottomRadius;Y!==void 0&&(J.style.borderBottomLeftRadius=Y,J.style.borderBottomRightRadius=Y,delete J.style.borderBottomRadius);let X=J.style.borderLeftRadius;X!==void 0&&(J.style.borderBottomLeftRadius=X,J.style.borderTopLeftRadius=X,delete J.style.borderLeftRadius);let Z=J.style.borderRightRadius;return Z!==void 0&&(J.style.borderBottomRightRadius=Z,J.style.borderTopRightRadius=Z,delete J.style.borderRightRadius),J}function f8(J,K,Y,X){let Z=null;J==="inset"&&(K=K.replace(/^(x|y)-/,(w,W)=>(Z=W==="x"?"x":"y","")));let Q=X==null?void 0:X[K];if(Q){let w=Y8(Q,{isNegative:Y});if(w!==null)return oJ(J,Z,w)}let H=i5(K,{isNegative:Y});return H!==null?oJ(J,Z,H):null}function oJ(J,K,Y){if(J!=="inset")return b({[J]:Y});switch(K){case null:return b({top:Y,left:Y,right:Y,bottom:Y});case"y":return b({top:Y,bottom:Y});case"x":return b({left:Y,right:Y})}}function T5(J,K,Y){var X;K=K.replace(/^-/,"");let Z=K===""?"DEFAULT":K,Q=Number((X=Y==null?void 0:Y[Z])!==null&&X!==void 0?X:K);return Number.isNaN(Q)?null:b({[`flex${J}`]:Q})}function X$(J,K){var Y,X;if(J=(K==null?void 0:K[J])||J,["min-content","revert","unset"].includes(J))return null;if(J.match(/^\d+(\.\d+)?$/))return b({flexGrow:Number(J),flexBasis:"0%"});let Z=J.match(/^(\d+)\s+(\d+)$/);if(Z)return b({flexGrow:Number(Z[1]),flexShrink:Number(Z[2])});if(Z=J.match(/^(\d+)\s+([^ ]+)$/),Z){let Q=Y8((Y=Z[2])!==null&&Y!==void 0?Y:"");return Q?b({flexGrow:Number(Z[1]),flexBasis:Q}):null}if(Z=J.match(/^(\d+)\s+(\d+)\s+(.+)$/),Z){let Q=Y8((X=Z[3])!==null&&X!==void 0?X:"");return Q?b({flexGrow:Number(Z[1]),flexShrink:Number(Z[2]),flexBasis:Q}):null}return null}function rJ(J,K,Y={},X){let Z=X==null?void 0:X[K];return Z!==void 0?p8(J,Z,Y):X8(J,K,Y)}function C5(J,K,Y={},X){let Z=Y8(X==null?void 0:X[K],Y);return Z?b({[J]:Z}):(K==="screen"&&(K=J.includes("Width")?"100vw":"100vh"),X8(J,K,Y))}function Z$(J,K,Y){let X=Y==null?void 0:Y[J];if(X){let Z=K1(X,{isNegative:K});if(!Z)return null;let[Q,H]=Z;if(H===q0.em)return Q$(Q);if(H===q0.percent)return C1("percentage-based letter-spacing configuration currently unsupported, switch to `em`s, or open an issue if you'd like to see support added."),null;let w=i8(Q,H,{isNegative:K});return w!==null?b({letterSpacing:w}):null}return X8("letterSpacing",J,{isNegative:K})}function Q$(J){return{kind:"dependent",complete(K){let Y=K.fontSize;if(typeof Y!="number"||Number.isNaN(Y))return"tracking-X relative letter spacing classes require font-size to be set";K.letterSpacing=Math.round((J*Y+Number.EPSILON)*100)/100}}}function H$(J,K){let Y=K==null?void 0:K[J];if(Y){let Z=K1(String(Y));if(Z)return b({opacity:Z[0]})}let X=K1(J);return X?b({opacity:X[0]/100}):null}function W$(J){let K=parseInt(J,10);return Number.isNaN(K)?null:{kind:"complete",style:{shadowOpacity:K/100}}}function w$(J){if(J.includes("/")){let[Y="",X=""]=J.split("/",2),Z=A4(Y),Q=A4(X);return Z===null||Q===null?null:{kind:"complete",style:{shadowOffset:{width:Z,height:Q}}}}let K=A4(J);return K===null?null:{kind:"complete",style:{shadowOffset:{width:K,height:K}}}}function A4(J){let K=i5(J);return typeof K=="number"?K:null}var nJ=class{constructor(J,K={},Y,X,Z){var Q,H,w,W,z,U;this.config=K,this.cache=Y,this.position=0,this.isNull=!1,this.isNegative=!1,this.context={},this.context.device=X;let $=J.trim().split(":"),V=[];$.length===1?this.string=J:(this.string=(Q=$.pop())!==null&&Q!==void 0?Q:"",V=$),this.char=this.string[0];let B=rU((H=this.config.theme)===null||H===void 0?void 0:H.screens);for(let q of V)if(B[q]){let G=(w=B[q])===null||w===void 0?void 0:w[2];G!==void 0&&(this.order=((W=this.order)!==null&&W!==void 0?W:0)+G);let M=(z=X.windowDimensions)===null||z===void 0?void 0:z.width;if(M){let[N,j]=(U=B[q])!==null&&U!==void 0?U:[0,0];(M<=N||M>j)&&(this.isNull=!0)}else this.isNull=!0}else xU(q)?this.isNull=q!==Z:hU(q)?X.windowDimensions?(X.windowDimensions.width>X.windowDimensions.height?"landscape":"portrait")!==q?this.isNull=!0:this.incrementOrder():this.isNull=!0:q==="retina"?X.pixelDensity===2?this.incrementOrder():this.isNull=!0:q==="dark"?X.colorScheme!=="dark"?this.isNull=!0:this.incrementOrder():this.handlePossibleArbitraryBreakpointPrefix(q)||(this.isNull=!0)}parse(){if(this.isNull)return{kind:"null"};let J=this.cache.getIr(this.rest);if(J)return J;this.parseIsNegative();let K=this.parseUtility();return K?this.order!==void 0?{kind:"ordered",order:this.order,styleIr:K}:K:{kind:"null"}}parseUtility(){var J,K,Y,X,Z;let Q=this.config.theme,H=null;switch(this.char){case"m":case"p":{let w=this.peekSlice(1,3).match(/^(t|b|r|l|x|y)?-/);if(w){let W=this.char==="m"?"margin":"padding";this.advance(((K=(J=w[0])===null||J===void 0?void 0:J.length)!==null&&K!==void 0?K:0)+1);let z=dK(w[1]),U=oU(W,z,this.isNegative,this.rest,(Y=this.config.theme)===null||Y===void 0?void 0:Y[W]);if(U)return U}}}if(this.consumePeeked("h-")&&(H=rJ("height",this.rest,this.context,Q==null?void 0:Q.height),H)||this.consumePeeked("w-")&&(H=rJ("width",this.rest,this.context,Q==null?void 0:Q.width),H)||this.consumePeeked("min-w-")&&(H=C5("minWidth",this.rest,this.context,Q==null?void 0:Q.minWidth),H)||this.consumePeeked("min-h-")&&(H=C5("minHeight",this.rest,this.context,Q==null?void 0:Q.minHeight),H)||this.consumePeeked("max-w-")&&(H=C5("maxWidth",this.rest,this.context,Q==null?void 0:Q.maxWidth),H)||this.consumePeeked("max-h-")&&(H=C5("maxHeight",this.rest,this.context,Q==null?void 0:Q.maxHeight),H)||this.consumePeeked("leading-")&&(H=iU(this.rest,Q==null?void 0:Q.lineHeight),H)||this.consumePeeked("text-")&&(H=pU(this.rest,Q==null?void 0:Q.fontSize,this.context),H||(H=d8("text",this.rest,Q==null?void 0:Q.textColor),H)||this.consumePeeked("opacity-")&&(H=I5("text",this.rest),H))||this.consumePeeked("font-")&&(H=nU(this.rest,Q==null?void 0:Q.fontFamily),H)||this.consumePeeked("aspect-")&&(this.consumePeeked("ratio-")&&C1("`aspect-ratio-{ratio}` is deprecated, use `aspect-{ratio}` instead"),H=p8("aspectRatio",this.rest,{fractions:!0}),H)||this.consumePeeked("tint-")&&(H=d8("tint",this.rest,Q==null?void 0:Q.colors),H)||this.consumePeeked("bg-")&&(H=d8("bg",this.rest,Q==null?void 0:Q.backgroundColor),H||this.consumePeeked("opacity-")&&(H=I5("bg",this.rest),H))||this.consumePeeked("border")&&(H=J$(this.rest,Q),H||this.consumePeeked("-opacity-")&&(H=I5("border",this.rest),H))||this.consumePeeked("rounded")&&(H=Y$(this.rest,Q==null?void 0:Q.borderRadius),H)||this.consumePeeked("bottom-")&&(H=f8("bottom",this.rest,this.isNegative,Q==null?void 0:Q.inset),H)||this.consumePeeked("top-")&&(H=f8("top",this.rest,this.isNegative,Q==null?void 0:Q.inset),H)||this.consumePeeked("left-")&&(H=f8("left",this.rest,this.isNegative,Q==null?void 0:Q.inset),H)||this.consumePeeked("right-")&&(H=f8("right",this.rest,this.isNegative,Q==null?void 0:Q.inset),H)||this.consumePeeked("inset-")&&(H=f8("inset",this.rest,this.isNegative,Q==null?void 0:Q.inset),H)||this.consumePeeked("flex-")&&(this.consumePeeked("grow")?H=T5("Grow",this.rest,Q==null?void 0:Q.flexGrow):this.consumePeeked("shrink")?H=T5("Shrink",this.rest,Q==null?void 0:Q.flexShrink):H=X$(this.rest,Q==null?void 0:Q.flex),H)||this.consumePeeked("grow")&&(H=T5("Grow",this.rest,Q==null?void 0:Q.flexGrow),H)||this.consumePeeked("shrink")&&(H=T5("Shrink",this.rest,Q==null?void 0:Q.flexShrink),H)||this.consumePeeked("shadow-color-opacity-")&&(H=I5("shadow",this.rest),H)||this.consumePeeked("shadow-opacity-")&&(H=W$(this.rest),H)||this.consumePeeked("shadow-offset-")&&(H=w$(this.rest),H)||this.consumePeeked("shadow-radius-")&&(H=X8("shadowRadius",this.rest),H)||this.consumePeeked("shadow-")&&(H=d8("shadow",this.rest,Q==null?void 0:Q.colors),H))return H;if(this.consumePeeked("elevation-")){let w=parseInt(this.rest,10);if(!Number.isNaN(w))return b({elevation:w})}if(this.consumePeeked("opacity-")&&(H=H$(this.rest,Q==null?void 0:Q.opacity),H)||this.consumePeeked("tracking-")&&(H=Z$(this.rest,this.isNegative,Q==null?void 0:Q.letterSpacing),H))return H;if(this.consumePeeked("z-")){let w=Number((Z=(X=Q==null?void 0:Q.zIndex)===null||X===void 0?void 0:X[this.rest])!==null&&Z!==void 0?Z:this.rest);if(!Number.isNaN(w))return b({zIndex:w})}return C1(`\`${this.rest}\` unknown or invalid utility`),null}handlePossibleArbitraryBreakpointPrefix(J){var K;if(J[0]!=="m")return!1;let Y=J.match(/^(min|max)-(w|h)-\[([^\]]+)\]$/);if(!Y)return!1;if(!(!((K=this.context.device)===null||K===void 0)&&K.windowDimensions))return this.isNull=!0,!0;let X=this.context.device.windowDimensions,[,Z="",Q="",H=""]=Y,w=Q==="w"?X.width:X.height,W=K1(H,this.context);if(W===null)return this.isNull=!0,!0;let[z,U]=W;return U!=="px"&&(this.isNull=!0),(Z==="min"?w>=z:w<=z)?this.incrementOrder():this.isNull=!0,!0}advance(J=1){this.position+=J,this.char=this.string[this.position]}get rest(){return this.peekSlice(0,this.string.length)}peekSlice(J,K){return this.string.slice(this.position+J,this.position+K)}consumePeeked(J){return this.peekSlice(0,J.length)===J?(this.advance(J.length),!0):!1}parseIsNegative(){this.char==="-"&&(this.advance(),this.isNegative=!0,this.context.isNegative=!0)}incrementOrder(){var J;this.order=((J=this.order)!==null&&J!==void 0?J:0)+1}};function z$(J){let K=[],Y=null;return J.forEach((X)=>{if(typeof X=="string")K=[...K,...G4(X)];else if(Array.isArray(X))K=[...K,...X.flatMap(G4)];else if(typeof X=="object"&&X!==null)for(let[Z,Q]of Object.entries(X))typeof Q=="boolean"?K=[...K,...Q?G4(Z):[]]:Y?Y[Z]=Q:Y={[Z]:Q}}),[K.filter(Boolean).filter(U$),Y]}function G4(J){return J.trim().split(/\s+/)}function U$(J,K,Y){return Y.indexOf(J)===K}function $$(J){var K;return(K=J==null?void 0:J.reduce((Y,X)=>({...Y,...V$(X.handler)}),{}))!==null&&K!==void 0?K:{}}function V$(J){let K={};return J({addUtilities:(Y)=>{K=Y},...B$}),K}function E1(J){throw Error(`tailwindcss plugin function argument object prop "${J}" not implemented`)}var B$={addComponents:E1,addBase:E1,addVariant:E1,e:E1,prefix:E1,theme:E1,variants:E1,config:E1,corePlugins:E1,matchUtilities:E1,postcss:null};function A$(J,K){let Y=(0,kU.default)(G$(J)),X={},Z=$$(Y.plugins),Q={},H=Object.entries(Z).map(([q,G])=>typeof G=="string"?(Q[q]=G,[q,{kind:"null"}]):[q,b(G)]).filter(([,q])=>q.kind!=="null");function w(){return[X.windowDimensions?`w${X.windowDimensions.width}`:!1,X.windowDimensions?`h${X.windowDimensions.height}`:!1,X.fontScale?`fs${X.fontScale}`:!1,X.colorScheme==="dark"?"dark":!1,X.pixelDensity===2?"retina":!1].filter(Boolean).join("--")||"default"}let W=w(),z={};function U(){let q=z[W];if(q)return q;let G=new uU(H);return z[W]=G,G}function $(...q){let G=U(),M={},N=[],j=[],[_,R]=z$(q),E=_.join(" "),L=G.getStyle(E);if(L)return{...L,...R||{}};for(let T of _){let D=G.getIr(T);if(!D&&T in Q){let P=$(Q[T]);G.setIr(T,b(P)),M={...M,...P};continue}switch(D=new nJ(T,Y,G,X,K).parse(),D.kind){case"complete":M={...M,...D.style},G.setIr(T,D);break;case"dependent":N.push(D);break;case"ordered":j.push(D);break;case"null":G.setIr(T,D);break}}if(j.length>0){j.sort((T,D)=>T.order-D.order);for(let T of j)switch(T.styleIr.kind){case"complete":M={...M,...T.styleIr.style};break;case"dependent":N.push(T.styleIr);break}}if(N.length>0){for(let T of N){let D=T.complete(M);D&&C1(D)}sU(M)}return E!==""&&G.setStyle(E,M),R&&(M={...M,...R}),M}function V(q){let G=$(q.split(/\s+/g).map((M)=>M.replace(/^(bg|text|border)-/,"")).map((M)=>`bg-${M}`).join(" "));return typeof G.backgroundColor=="string"?G.backgroundColor:void 0}let B=(q,...G)=>{let M="";return q.forEach((N,j)=>{var _;M+=N+((_=G[j])!==null&&_!==void 0?_:"")}),$(M)};return B.style=$,B.color=V,B.prefixMatch=(...q)=>{let G=q.sort().join(":"),M=U(),N=M.getPrefixMatch(G);if(N!==void 0)return N;let j=new nJ(`${G}:flex`,Y,M,X,K).parse().kind!=="null";return M.setPrefixMatch(G,j),j},B.setWindowDimensions=(q)=>{X.windowDimensions=q,W=w()},B.setFontScale=(q)=>{X.fontScale=q,W=w()},B.setPixelDensity=(q)=>{X.pixelDensity=q,W=w()},B.setColorScheme=(q)=>{X.colorScheme=q,W=w()},B}function G$(J){return{...J,content:["_no_warnings_please"]}}var M$={handler:({addUtilities:J})=>{J({"shadow-sm":{boxShadow:"0 1px 2px 0 rgb(0 0 0 / 0.05)"},shadow:{boxShadow:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)"},"shadow-md":{boxShadow:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)"},"shadow-lg":{boxShadow:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)"},"shadow-xl":{boxShadow:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)"},"shadow-2xl":{boxShadow:"0 25px 50px -12px rgb(0 0 0 / 0.25)"},"shadow-inner":{boxShadow:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)"},"shadow-none":{boxShadow:"0 0 #0000"}})}};function q$(J){return A$({...J,plugins:[...(J==null?void 0:J.plugins)??[],M$]},"web")}var P5;function O$({width:J,height:K,config:Y}){return P5||(P5=q$(Y)),P5.setWindowDimensions({width:+J,height:+K}),P5}var M4=new WeakMap;async function pK(J,K){let Y=await d5();if(!Y||!Y.Node)throw Error("Satori is not initialized: expect `yoga` to be loaded, got "+Y);K.fonts=K.fonts||[];let X;M4.has(K.fonts)?X=M4.get(K.fonts):M4.set(K.fonts,X=new SU(K.fonts));let Z="width"in K?K.width:void 0,Q="height"in K?K.height:void 0,H=Y.Node.create();Z&&H.setWidth(Z),Q&&H.setHeight(Q),H.setFlexDirection(Y.FLEX_DIRECTION_ROW),H.setFlexWrap(Y.WRAP_WRAP),H.setAlignContent(Y.ALIGN_AUTO),H.setAlignItems(Y.ALIGN_FLEX_START),H.setJustifyContent(Y.JUSTIFY_FLEX_START),H.setOverflow(Y.OVERFLOW_HIDDEN);let w={...K.graphemeImages},W=new Set;u1.clear(),y5.clear(),await Ez(J);let z=E4(J,{id:"id",parentStyle:{},inheritedStyle:{fontSize:16,fontWeight:"normal",fontFamily:"serif",fontStyle:"normal",lineHeight:"normal",color:"black",opacity:1,whiteSpace:"normal",_viewportWidth:Z,_viewportHeight:Q},parent:H,font:X,embedFont:K.embedFont,debug:K.debug,graphemeImages:w,canLoadAdditionalAssets:!!K.loadAdditionalAsset,onNodeDetected:K.onNodeDetected,getTwStyles:(q,G)=>{let M={...O$({width:Z,height:Q,config:K.tailwindConfig})([q])};return typeof M.lineHeight=="number"&&(M.lineHeight=M.lineHeight/(+M.fontSize||G.fontSize||16)),M.shadowColor&&M.boxShadow&&(M.boxShadow=M.boxShadow.replace(/rgba?\([^)]+\)/,M.shadowColor)),M}}),U=(await z.next()).value;if(K.loadAdditionalAsset&&U.length){let q=N$(U),G=[],M={};await Promise.all(Object.entries(q).flatMap(([N,j])=>j.map((_)=>{let R=`${N}_${_}`;return W.has(R)?null:(W.add(R),K.loadAdditionalAsset(N,_).then((E)=>{typeof E=="string"?M[_]=E:E&&(Array.isArray(E)?G.push(...E):G.push(E))}))}))),X.addFonts(G),Object.assign(w,M)}await z.next(),H.calculateLayout(Z,Q,Y.DIRECTION_LTR);let $=(await z.next([0,0])).value,V=H.getComputedWidth(),B=H.getComputedHeight();return H.freeRecursive(),yU({width:V,height:B,content:$})}function N$(J){let K={},Y={};for(let{word:X,locale:Z}of J){let Q=TU(X,Z).join("|");Y[Q]=Y[Q]||"",Y[Q]+=X}return Object.keys(Y).forEach((X)=>{K[X]=K[X]||[],X==="emoji"?K[X].push(...sJ(A1(Y[X],"grapheme"))):(K[X][0]=K[X][0]||"",K[X][0]+=sJ(A1(Y[X],"grapheme",X==="unknown"?void 0:X)).join(""))}),K}function sJ(J){return Array.from(new Set(J))}import L$ from"sharp";function b4(J){return J.replace(/\([^)]*\)/g,"").replace(/\/\//g,"/")}function o5(J){let K={};for(let[Y,X]of Object.entries(J))if("run"in X){let Z=X;if("children"in Z){let Q=new Z.children,H=o5(Q.routes);for(let[w,{exec:W,middleware:z}]of Object.entries(H)){let U=Y==="/"?w:`${Y}${w}`,$=w==="/"&&Y!=="/"?Y:U,V=(B)=>Z.run.call(Z,B,Y);K[b4($)]={exec:[V,...W],middleware:[...Z.middlewares,...z],viewPath:Z.viewPath}}}else{let Q=(H)=>Z.run.call(Z,H,Y);K[b4(Y)]={exec:[Q],middleware:Z.middlewares,viewPath:Z.viewPath}}}else{let Z=new X,Q=o5(Z.routes);for(let[H,{exec:w,middleware:W,viewPath:z}]of Object.entries(Q)){let U=Y==="/"?H:`${Y}${H}`,$=H==="/"&&Y!=="/"?Y:U;K[b4($)]={exec:w,middleware:[...Z.middlewares,...W],viewPath:z}}}return Object.fromEntries(Object.entries(K).sort(([Y],[X])=>{let Z=Y.split("/").length+Y.split(":").length,Q=X.split("/").length+X.split(":").length;return Z-Q}))}import{renderToReadableStream as f4}from"react-dom/server.browser";import{createElement as o8,Fragment as F$}from"react";function j$(J){return J.replace(/\([^)]*\)/g,"").replace(/\/\//g,"/")}function r5(J){let K={};for(let[Y,X]of Object.entries(J))if("run"in X){let Z=X.viewPath;if("children"in X){K[Y]=[Z];let Q=new X.children,H=r5(Q.routes);for(let[w,W]of Object.entries(H)){let z=Y==="/"?w:`${Y}${w}`,U=w==="/"&&Y!=="/"?Y:z;K[U]=[Z,...W]}if(K[Y].length===1)delete K[Y]}else K[Y]=[Z]}else{let Z=new X,Q=r5(Z.routes);for(let[H,w]of Object.entries(Q)){let W=Y==="/"?H:`${Y}${H}`,z=H==="/"&&Y!=="/"?Y:W;K[z]=w}}return Object.fromEntries(Object.entries(K).map(([Y,X])=>[j$(Y),X]))}function n5(J){let K=[];for(let[Y,X]of Object.entries(J))if("run"in X){let Z=X.viewPath;if(Z==="__")continue;if(Z==="REDIRECT")continue;if(Z==="FILE")continue;if("children"in X){let Q=new X.children,H=n5(Q.routes);K.push([Z,H])}else K.push([Z,[]])}else{let Z=new X,Q=n5(Z.routes);K.push(...Q)}return K}function h4(J){let K=[];for(let[Y,X]of J)K.push(Y,...h4(X).flat());return Array.from(new Set(K))}class s5{static debug(J,K){t0.use().log("debug",J,K)}static info(J,K){t0.use().log("info",J,K)}static notice(J,K){t0.use().log("notice",J,K)}static warning(J,K){t0.use().log("warning",J,K)}static error(J,K){t0.use().log("error",J,K)}static critical(J,K){t0.use().log("critical",J,K)}static alert(J,K){t0.use().log("alert",J,K)}static emergency(J,K){t0.use().log("emergency",J,K)}}class m4 extends v0{service;static _name="KernelIdServiceContainer";constructor(J){super();this.service=J}}var E$=`
67
- !function(){try{var d=document.documentElement,c=d.classList;
68
- c.remove('light','dark');
69
- var e=localStorage.getItem('theme');
70
- if('system'===e||(!e&&'system'===defaultTheme)){
71
- var t='(prefers-color-scheme: dark)',m=window.matchMedia(t);
72
- if(m.media!==t||m.matches){d.style.colorScheme='dark';c.add('dark')}
73
- else{d.style.colorScheme='light';c.add('light')}
74
- }else if(e){
75
- c.add(e||'')
76
- }}catch(e){}}()
77
- `;async function _$(J,K,Y){let X=`${Y==="italic"?"italic,":""}wght@${Y==="italic"?"1,":""}${K}`,H=(await(await fetch(`https://fonts.googleapis.com/css2?family=${J}:${X}&display=swap`,{headers:{"User-Agent":"Mozilla/5.0 Firefox/1.0"}})).text()).match(/url\(([^)]+)\)/)?.[1];return await fetch(H).then((w)=>w.arrayBuffer())}class d4 extends v0{service;static _name="ViewRouterServiceContainer";flatViewRoutes={};routeManifest={};componentTree=[];flatComponentTree=[];root=null;constructor(J){super();this.service=J;let K={"/":J.rootRouter,"/auth":Y6};this.flatViewRoutes=o5(K),this.routeManifest=r5(K),this.componentTree=n5(K),this.flatComponentTree=h4(this.componentTree),this.root=J.root}boot(){}async onRequestEnd(J){if(!J.cookies.has("session_id"))J.ctx().setCookie("session_id",Bun.randomUUIDv7(),{httpOnly:!0,secure:Bun.env.NODE_ENV==="production",sameSite:"Strict",expires:new Date(Date.now()+31536000000)});return await this.service.onRequestEnd(J)}async render(J){let{csrfTokenHMAC:K,currentPathName:Y,headers:X,i18n:Z,params:Q,pathname:H,prefetchedData:w,url:W,user:z,viewData:U,breadcrumbs:$,urlLocaleSegment:V,meta:B,isOgRequest:q,appId:G}=J,M=H.replace(`/${V}`,""),N={kind:"view",data:{meta:B,pageData:{[M]:U},__csrf:K.toString("base64"),prefetchedData:w,i18n:Z,auth:{user:z},routeManifest:this.routeManifest,breadcrumbs:$,router:{urlLocaleSegment:V,pathname:Y,params:Q,currentPath:H,searchParams:W.search,is404:!Y?!0:!1},appId:G,componentTree:[["404",[]],...this.componentTree]},head:{}},j=this.root,_=this.routeManifest[Y];return async(R)=>{let{bootstrapModules:E,loaders:L,getStyles:T,viewImportMap:D,cssManifest:P,ogMap:x}=R;if(q){let p=null,i=null;for(let S of _)if(typeof x[S]==="function")i=S,p=x[S];if(!p)return new Response("Not found",{status:404});let C=Object.values(N.data.pageData)[0];try{await f4(o8(p,C[i]),{onError:()=>{}})}catch(S){let{fonts:I,...d}=S.satoriOptions,l=await Promise.all(I.map((f)=>{return _$(f.name,f.weight,f.style).then((y)=>({...f,data:y}))})),c=new Headers(X);c.set("Content-Type","image/png");let o=await pK(S.jsx,{...d,fonts:l}),m=await L$(Buffer.from(o)).png({compressionLevel:0,effort:10}).toBuffer();return new Response(new Uint8Array(m),{headers:c})}return new Response("data")}N.data.cssManifest=P;let u=await T(_);try{let p=await f4(o8(F$,{children:[...u,o8("script",{key:"theme-script",dangerouslySetInnerHTML:{__html:E$}}),o8(j,{data:N.data,viewImportMap:D,key:"root"})]}),{bootstrapScriptContent:`window.__GEMI_DATA__ = ${JSON.stringify(N.data)}; window.loaders=${L}`,bootstrapModules:E});return new Response(p,{status:!Y?404:200,headers:X})}catch(p){let i=await f4(o8("div"),{bootstrapScriptContent:`window.error= ${JSON.stringify(p.message)}; window.stack_trace=${JSON.stringify(p.stack)};window.__GEMI_DATA__ = ${JSON.stringify(N.data)}; window.loaders=${L}`,bootstrapModules:Bun.env.NODE_ENV==="development"?["/render-error.js",...E]:E});return new Response(i,{status:!Y?404:200,headers:X})}}}async handleViewRequest(J){let K=new URL(J.url),Y=K.pathname.endsWith(".json"),X=K.pathname.endsWith(".og"),Z=K.pathname.replace(".json","").replace(".og",""),[,Q,...H]=Z.split("/"),w=`/${H.join("/")}`,W=null,z=null,U=C0.use();if(!U.service.supportedLocales.includes(Q))w=Z;else W=Q,z=Q;if(U.isEnabled&&!X){let N=C0.use().detectLocale(new w0(J,{},"view",w));if(z===null&&N!==U.service.defaultLocale){let j=K.pathname==="/"?"":K.pathname;return new Response("",{status:302,headers:{"Cache-Control":"private, no-cache, no-store, max-age=0, must-revalidate",Location:`/${N}${j}${K.search}`}})}}w=w.replace("//","/");let V=[],B=[],q=null,G={};try{for(let[N,j]of Object.entries(this.flatViewRoutes)){let _=new iK({pathname:N});if(_.test({pathname:w})){q=N,G=_.exec({pathname:w})?.pathname.groups,V=j.exec,B=j.middleware;break}}}catch(N){throw N}let M=new w0(J,G,"view",q);return await M0.run(M,async()=>{let N=null,j=M0.getStore();if(z){let R=z.replaceAll("/","");z8.setLocale(R)}else z8.setLocale();let _=j.req;try{await L8.use().runMiddleware(B);let R=C0.use(),E=R.isEnabled,L={};if(E){let c=null;if(z)c=z.replaceAll("/",""),j.setLocale(c);else c=R.detectLocale(new w0(J,_.params)),j.setLocale(c);let o=R.getPageTranslations(c,_.routePath);L={supportedLocales:R.service.supportedLocales,currentLocale:c,dictionary:{[c]:o},defaultLocale:R.service.defaultLocale}}let T=await Promise.all([...V.map((c)=>c(_)),...Array.from(j.prefetchPromiseQueue).map((c)=>c())]),D=j.cookies,P=j.headers,x=j.prefetchedResources;N={data:T,cookies:D,headers:P,user:j.user,prefetchedData:Object.fromEntries(x.entries()),currentPathName:_.routePath,params:_.params,urlLocaleSegment:W,meta:j.renderMeta(),appId:m4.use().service.id};let{params:u,currentPathName:p,user:i}=N,C={},S={};for(let c of T??[]){let[o,m]=Object.entries(c)?.[0]??[];if(!o||!m)continue;S[`${o}:${p}`]=m.breadcrumb,C[o]=m}let I=this.routeManifest[p];if(I?.[I?.length??-1]==="FILE"){let c=C.FILE;return P.set("Content-Type",c.type||"application/octet-stream"),new Response(c.stream(),{headers:P})}if(Y)return P.set("Content-Type","application/json; charset=utf-8"),D.forEach((c)=>P.append("Set-Cookie",c.toString())),await this.service.onRequestEnd(_),new Response(JSON.stringify({meta:N.meta,data:{[w]:C},breadcrumbs:S,prefetchedData:N.prefetchedData,i18n:L,is404:!p,appId:N.appId}),{headers:P});P.set("Content-Type","text/html; charset=utf-8");for(let c of D)P.append("Set-Cookie",c.toString());let l=Bun.CSRF.generate(process.env.SECRET);P.append("Set-Cookie",`csrf_token=${l}; HttpOnly; Secure; SameSite=Strict; Expires=${new Date(Date.now()+86400000).toUTCString()}`);try{await this.onRequestEnd(_)}catch(c){s5.error(c?.message??'Error in "onRequestEnd" event handler',{err:JSON.stringify(c)})}return await this.render({csrfTokenHMAC:Buffer.from(""),currentPathName:p,headers:P,i18n:L,params:u,pathname:K.pathname,prefetchedData:N.prefetchedData,url:K,user:i,viewData:C,breadcrumbs:S,urlLocaleSegment:W,meta:N.meta,appId:N.appId,isOgRequest:X})}catch(R){if(R.kind===r8)if(Y){let{status:E=400,data:L,directive:T,headers:D}=R.payload.api;return new Response(JSON.stringify({data:L,directive:T}),{headers:D,status:E})}else{let{status:E=400,error:L}=R.payload.view;return new Response(L?.message,{...R.payload.view,status:E})}throw this.service.onRequestFail(_,R),R}})}}class oK extends M1{routes={"/api-routes":this.get(()=>{let J=a5.use().flatRoutes,K=[];for(let[Y,X]of Object.entries(J))for(let[Z,Q]of Object.entries(X)){let{exec:H,middleware:w}=Q;K.push({path:Y,method:Z,middleware:w})}return K}),"/view-routes":this.get(()=>{let J=d4.use().flatViewRoutes,K=[];for(let[Y,{middleware:X,viewPath:Z}]of Object.entries(J))K.push({path:Y,method:"GET",viewPath:Z,middleware:X});return K})}}class a5 extends v0{service;static _name="ApiRouterServiceContainer";flatRoutes={};constructor(J){super();this.service=J;this.flatRoutes=z6({"/":this.service.rootRouter.bind(this.service),"/auth":X6,"/__gemi__/services/i18n":Z6,"/__gemi__/services/logs":w6,"/__gemi__/services/image":Q6,"/__gemi__/debug":oK})}getRouteHandlerAndParams(J){let Y=new URL(J.url).pathname.replace("/api",""),X={},Z;for(let[Q]of Object.entries(this.flatRoutes))try{let H=new URLPattern({pathname:Q});if(H.test({pathname:Y})){Z=Q,X=H.exec({pathname:Y})?.pathname.groups;break}}catch(H){console.error(H)}return{params:X,path:Z}}async runRouteMiddleware(J,K){let X=this.flatRoutes[J][K.rawRequest.method].middleware;try{await L8.use().runMiddleware(X)}catch(Z){if(Z.kind===r8){if(K.rawRequest.url.includes("/api")){let{status:Q=400,data:H,headers:w}=Z.payload.api;return new Response(JSON.stringify(H),{status:Q,headers:{"Content-Type":"application/json",...w}})}}else throw this.service.onRequestFail(K,Z),console.error(Z),Z}}async getRouteData(J){let K=this.flatRoutes[J],Y=M0.getStore(),X=K[Y.req.rawRequest.method].exec??(()=>Promise.resolve({})),Z={};try{Z=await X()}catch(Q){if(Q.kind===r8){let{status:H=400,data:w,headers:W}=Q.payload.api;return new Response(JSON.stringify(w),{status:H,headers:{"Content-Type":"application/json",...W}})}throw this.service.onRequestFail(Y.req,Q),console.error(Q),Q}return Z}async handleApiRequest(J){let{params:K,path:Y}=this.getRouteHandlerAndParams(J),X=this.flatRoutes[Y];if(!X||!X[J.method])return new Response(JSON.stringify({error:{message:"Not found"}}),{status:404});let Z=new w0(J,K,"api",Y);if(!J.url.includes("/__gemi__"))this.service.onRequestStart(Z);return await M0.run(Z,async()=>{let Q=M0.getStore(),H=C0.use();if(H.isEnabled){let U=H.detectLocale(Z);Q.setLocale(U)}Q.setRequest(Z);let w=await this.runRouteMiddleware(Y,Z);if(w instanceof Response)return w;let W=await this.getRouteData(Y);if(W instanceof Response)return W;let z=Q.headers;if(z.append("Content-Type","application/json"),Q.cookies.forEach((U)=>z.append("Set-Cookie",U.toString())),Q.destroy(),!J.url.includes("/__gemi__"))this.service.onRequestEnd(Z);return new Response(JSON.stringify(W),{headers:z})})}}class t5{static prepare(J,...K){let Y={params:{},search:{}},[X={}]=K,{search:Z,params:Q}={...Y,...X},H=M0.getStore();if(H.req.kind==="api")throw Error("Query.prefetch() cannot be called from an API request");let w=H.req.rawRequest,W=new URL(w.url),z=new URLSearchParams(r4(Z));z.delete("json"),z.sort();let U=[`${i1(J,Q)}`,z.toString()].filter((M)=>M.length>0).join("?"),$=`${W.origin}/${U}`,V=new Request($,{headers:w.headers}),B=new w0(V,Q),q=(M)=>{H.prefetchedResources.set(i1(J,Q),{[z.toString()]:M})},G=()=>{return M0.run(B,async()=>{let M=await a5.use().getRouteData(J);return q(M),M})};return{instant:G,prefetch:()=>{H.prefetchPromiseQueue.add(G)}}}static instant(J,...K){return t5.prepare(J,...K).instant()}static prefetch(J,...K){return t5.prepare(J,...K).prefetch()}}class rK{static channel(J,K){let Y=w8.use().service.channels[J];if(!Y)return console.error(`Channel ${J} not found`),{publish:()=>{}};let X=new Y;return{publish:(Z,Q=!1)=>{let H=i1(J,K);w8.use().publish(H,JSON.stringify({topic:H,data:X.publish(Z)}),Q)}}}}class nK{static absolute(J,...K){return`${process.env.HOST_NAME}${i1(String(J),K[0]??{})}`}static relative(J,...K){return i1(String(J),K[0]??{})}}class sK{name="Meta";static description(J){M0.getStore().metadata.description(J)}static title(J){M0.getStore().metadata.title(J)}static openGraph(J){M0.getStore().metadata.openGraph(J)}}var R$={set(J,K,Y){M0.getStore().setCookie(J,K,Y)},setIfAbsent(J,K,Y){if(M0.getStore().req.cookies.has(J))return!1;return M0.getStore().setCookie(J,K,Y),!0},delete(J){M0.getStore().deleteCookie(J)}};var{RedisClient:D$}=globalThis.Bun;class l4 extends v0{service;static _name="RedisServiceContainer";client;constructor(J){super();this.service=J;this.client=new D$(J.url,J.options)}}class P1{static get client(){return l4.use().client}static get(J){return P1.client.get(J)}static set(J,K){return P1.client.set(J,K)}static del(...J){return P1.client.del(...J)}static exists(J){return P1.client.exists(J)}static incr(J){return P1.client.incr(J)}static expire(J,K){return P1.client.expire(J,K)}static ttl(J){return P1.client.ttl(J)}}export{w8 as s,g1 as t,z8 as u,N8 as v,o4 as w,t5 as x,rK as y,nK as z,t0 as A,s5 as B,sK as C,R$ as D,l4 as E,P1 as F,JY as G,Y9 as H,L8 as I,m4 as J,d4 as K,a5 as L};
78
-
79
- //# debugId=CE715DFEEE59547064756E2164756E21