gemi 0.45.0 → 0.46.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 (53) hide show
  1. package/dist/app/index.js +1 -1
  2. package/dist/bin/gemi.js +185 -49
  3. package/dist/bin/gemi.js.map +10 -7
  4. package/dist/{chunk-tvp3xgfq.js → chunk-2ahct6kg.js} +2 -2
  5. package/dist/{chunk-tvp3xgfq.js.map → chunk-2ahct6kg.js.map} +1 -1
  6. package/dist/{chunk-v0qh5dqv.js → chunk-5hggqap1.js} +15 -15
  7. package/dist/{chunk-v0qh5dqv.js.map → chunk-5hggqap1.js.map} +3 -3
  8. package/dist/chunk-d9k245jt.js +79 -0
  9. package/dist/{chunk-jxpwexpz.js.map → chunk-d9k245jt.js.map} +8 -5
  10. package/dist/chunk-evkv0xa7.js +4 -0
  11. package/dist/{chunk-atv6nybp.js.map → chunk-evkv0xa7.js.map} +4 -4
  12. package/dist/{chunk-63gmzy5r.js → chunk-pr2xbq0m.js} +1 -1
  13. package/dist/{chunk-ppn0j67g.js → chunk-r64ba1pf.js} +1 -1
  14. package/dist/{chunk-396qq8ge.js → chunk-z29tg1ey.js} +1 -1
  15. package/dist/client/ClientRouter.d.ts.map +1 -1
  16. package/dist/client/Head.d.ts.map +1 -1
  17. package/dist/client/QueryManagerContext.d.ts +5 -2
  18. package/dist/client/QueryManagerContext.d.ts.map +1 -1
  19. package/dist/client/QueryResource.d.ts +23 -1
  20. package/dist/client/QueryResource.d.ts.map +1 -1
  21. package/dist/client/helpers/mergeCarriedSegments.d.ts +23 -0
  22. package/dist/client/helpers/mergeCarriedSegments.d.ts.map +1 -0
  23. package/dist/client/index.js +168 -27
  24. package/dist/client/index.js.map +1 -1
  25. package/dist/client/useQuery.d.ts +2 -0
  26. package/dist/client/useQuery.d.ts.map +1 -1
  27. package/dist/facades/index.js +1 -1
  28. package/dist/http/Metadata.d.ts +6 -0
  29. package/dist/http/Metadata.d.ts.map +1 -1
  30. package/dist/http/ViewRouter.d.ts +12 -0
  31. package/dist/http/ViewRouter.d.ts.map +1 -1
  32. package/dist/http/index.js +1 -1
  33. package/dist/i18n/index.js +1 -1
  34. package/dist/kernel/index.js +1 -1
  35. package/dist/server/index.js +1 -1
  36. package/dist/services/index.js +1 -1
  37. package/dist/services/router/ViewRouterServiceContainer.d.ts.map +1 -1
  38. package/dist/services/router/ViewRouterServiceProvider.d.ts +10 -0
  39. package/dist/services/router/ViewRouterServiceProvider.d.ts.map +1 -1
  40. package/dist/services/router/createFlatViewRoutes.d.ts +16 -0
  41. package/dist/services/router/createFlatViewRoutes.d.ts.map +1 -1
  42. package/dist/services/router/matchViewRoute.d.ts +12 -0
  43. package/dist/services/router/matchViewRoute.d.ts.map +1 -0
  44. package/dist/services/router/planPartialRender.d.ts +43 -0
  45. package/dist/services/router/planPartialRender.d.ts.map +1 -0
  46. package/dist/utils/partialRender.d.ts +28 -0
  47. package/dist/utils/partialRender.d.ts.map +1 -0
  48. package/package.json +1 -1
  49. package/dist/chunk-atv6nybp.js +0 -4
  50. package/dist/chunk-jxpwexpz.js +0 -79
  51. /package/dist/{chunk-63gmzy5r.js.map → chunk-pr2xbq0m.js.map} +0 -0
  52. /package/dist/{chunk-ppn0j67g.js.map → chunk-r64ba1pf.js.map} +0 -0
  53. /package/dist/{chunk-396qq8ge.js.map → chunk-z29tg1ey.js.map} +0 -0
@@ -0,0 +1,79 @@
1
+ // @bun
2
+ import{P as I9,R as k9,S as G0,T as e0,U as H0,X as O1,Y as rY,Z as A6,ba as P5,ca as j0,ga as eY}from"./chunk-evkv0xa7.js";import{na as P0}from"./chunk-p5r0t9jh.js";import{$b as F9,Vb as Q8,Xb as R9,Yb as H8,ac as L1,cc as T9}from"./chunk-4z53shav.js";import{ec as y0}from"./chunk-m0earq80.js";import{fc as $1,gc as h0,ic as zH}from"./chunk-f18weffa.js";var p9=h0((m3,u9)=>{var D6=0,b9=-3;function v5(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function A2(J,K){this.source=J,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=K,this.destLen=0,this.ltree=new v5,this.dtree=new v5}var f9=new v5,m9=new v5,I6=new Uint8Array(30),R6=new Uint16Array(30),c9=new Uint8Array(30),l9=new Uint16Array(30),G2=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),h9=new v5,N1=new Uint8Array(320);function d9(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 M2(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 g9=new Uint16Array(16);function F6(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)g9[Z]=Q,Q+=J.table[Z];for(Z=0;Z<X;++Z)if(K[Y+Z])J.trans[g9[K[Y+Z]]++]=Z}function L2(J){if(!J.bitcount--)J.tag=J.source[J.sourceIndex++],J.bitcount=7;var K=J.tag&1;return J.tag>>>=1,K}function j1(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 q2(J,K,Y){var X,Z,Q,W,$,w;X=j1(J,5,257),Z=j1(J,5,1),Q=j1(J,4,4);for(W=0;W<19;++W)N1[W]=0;for(W=0;W<Q;++W){var H=j1(J,3,0);N1[G2[W]]=H}F6(h9,N1,0,19);for($=0;$<X+Z;){var z=_6(J,h9);switch(z){case 16:var U=N1[$-1];for(w=j1(J,2,3);w;--w)N1[$++]=U;break;case 17:for(w=j1(J,3,3);w;--w)N1[$++]=0;break;case 18:for(w=j1(J,7,11);w;--w)N1[$++]=0;break;default:N1[$++]=z;break}}F6(K,N1,0,X),F6(Y,N1,X,Z)}function x9(J,K,Y){while(!0){var X=_6(J,K);if(X===256)return D6;if(X<256)J.dest[J.destLen++]=X;else{var Z,Q,W,$;X-=257,Z=j1(J,I6[X],R6[X]),Q=_6(J,Y),W=J.destLen-j1(J,c9[Q],l9[Q]);for($=W;$<W+Z;++$)J.dest[J.destLen++]=J.dest[$]}}}function O2(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 b9;J.sourceIndex+=4;for(X=K;X;--X)J.dest[J.destLen++]=J.source[J.sourceIndex++];return J.bitcount=0,D6}function N2(J,K){var Y=new A2(J,K),X,Z,Q;do{switch(X=L2(Y),Z=j1(Y,2,0),Z){case 0:Q=O2(Y);break;case 1:Q=x9(Y,f9,m9);break;case 2:q2(Y,Y.ltree,Y.dtree),Q=x9(Y,Y.ltree,Y.dtree);break;default:Q=b9}if(Q!==D6)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}M2(f9,m9);d9(I6,R6,4,3);d9(c9,l9,2,1);I6[28]=0;R6[28]=258;u9.exports=N2});var r9=h0((c3,n9)=>{var j2=new Uint8Array(new Uint32Array([305419896]).buffer)[0]===18,i9=(J,K,Y)=>{let X=J[K];J[K]=J[Y],J[Y]=X},E2=(J)=>{let K=J.length;for(let Y=0;Y<K;Y+=4)i9(J,Y,Y+3),i9(J,Y+1,Y+2)},F2=(J)=>{if(j2)E2(J)};n9.exports={swap32LE:F2}});var t9=h0((l3,a9)=>{var o9=p9(),{swap32LE:_2}=r9();class s9{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)),_2(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]}}a9.exports=s9});var e9=h0((z8)=>{var D2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";(function(J){var K=typeof Uint8Array<"u"?Uint8Array:Array,Y=43,X=47,Z=48,Q=97,W=65,$=45,w=95;function H(V){var B=V.charCodeAt(0);if(B===Y||B===$)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<W+26)return B-W;if(B<Q+26)return B-Q+26}function z(V){var B,L,A,M,O,N;if(V.length%4>0)throw Error("Invalid string. Length must be a multiple of 4");var E=V.length;O=V.charAt(E-2)==="="?2:V.charAt(E-1)==="="?1:0,N=new K(V.length*3/4-O),A=O>0?V.length-4:V.length;var D=0;function F(j){N[D++]=j}for(B=0,L=0;B<A;B+=4,L+=3)M=H(V.charAt(B))<<18|H(V.charAt(B+1))<<12|H(V.charAt(B+2))<<6|H(V.charAt(B+3)),F((M&16711680)>>16),F((M&65280)>>8),F(M&255);if(O===2)M=H(V.charAt(B))<<2|H(V.charAt(B+1))>>4,F(M&255);else if(O===1)M=H(V.charAt(B))<<10|H(V.charAt(B+1))<<4|H(V.charAt(B+2))>>2,F(M>>8&255),F(M&255);return N}function U(V){var B,L=V.length%3,A="",M,O;function N(D){return D2.charAt(D)}function E(D){return N(D>>18&63)+N(D>>12&63)+N(D>>6&63)+N(D&63)}for(B=0,O=V.length-L;B<O;B+=3)M=(V[B]<<16)+(V[B+1]<<8)+V[B+2],A+=E(M);switch(L){case 1:M=V[V.length-1],A+=N(M>>2),A+=N(M<<4&63),A+="==";break;case 2:M=(V[V.length-2]<<8)+V[V.length-1],A+=N(M>>10),A+=N(M>>4&63),A+=N(M<<2&63),A+="=";break}return A}J.toByteArray=z,J.fromByteArray=U})(typeof z8>"u"?z8.base64js={}:z8)});var U7=h0((p3,z7)=>{var S6=40,v6=41,B8=39,y6=34,k6=92,q5=47,h6=44,g6=58,A8=42,f2=117,m2=85,c2=43,l2=/^[a-f0-9?-]+$/i;z7.exports=function(J){var K=[],Y=J,X,Z,Q,W,$,w,H,z,U=0,V=Y.charCodeAt(U),B=Y.length,L=[{nodes:K}],A=0,M,O="",N="",E="";while(U<B)if(V<=32){X=U;do X+=1,V=Y.charCodeAt(X);while(V<=32);if(W=Y.slice(U,X),Q=K[K.length-1],V===v6&&A)E=W;else if(Q&&Q.type==="div")Q.after=W,Q.sourceEndIndex+=W.length;else if(V===h6||V===g6||V===q5&&Y.charCodeAt(X+1)!==A8&&(!M||M&&M.type==="function"&&M.value!=="calc"))N=W;else K.push({type:"space",sourceIndex:U,sourceEndIndex:X,value:W});U=X}else if(V===B8||V===y6){X=U,Z=V===B8?"'":'"',W={type:"string",sourceIndex:U,quote:Z};do if($=!1,X=Y.indexOf(Z,X+1),~X){w=X;while(Y.charCodeAt(w-1)===k6)w-=1,$=!$}else Y+=Z,X=Y.length-1,W.unclosed=!0;while($);W.value=Y.slice(U+1,X),W.sourceEndIndex=W.unclosed?X:X+1,K.push(W),U=X+1,V=Y.charCodeAt(U)}else if(V===q5&&Y.charCodeAt(U+1)===A8){if(X=Y.indexOf("*/",U),W={type:"comment",sourceIndex:U,sourceEndIndex:X+2},X===-1)W.unclosed=!0,X=Y.length,W.sourceEndIndex=X;W.value=Y.slice(U+2,X),K.push(W),U=X+2,V=Y.charCodeAt(U)}else if((V===q5||V===A8)&&M&&M.type==="function"&&M.value==="calc")W=Y[U],K.push({type:"word",sourceIndex:U-N.length,sourceEndIndex:U+W.length,value:W}),U+=1,V=Y.charCodeAt(U);else if(V===q5||V===h6||V===g6)W=Y[U],K.push({type:"div",sourceIndex:U-N.length,sourceEndIndex:U+W.length,value:W,before:N,after:""}),N="",U+=1,V=Y.charCodeAt(U);else if(S6===V){X=U;do X+=1,V=Y.charCodeAt(X);while(V<=32);if(z=U,W={type:"function",sourceIndex:U-O.length,value:O,before:Y.slice(z+1,X)},U=X,O==="url"&&V!==B8&&V!==y6){X-=1;do if($=!1,X=Y.indexOf(")",X+1),~X){w=X;while(Y.charCodeAt(w-1)===k6)w-=1,$=!$}else Y+=")",X=Y.length-1,W.unclosed=!0;while($);H=X;do H-=1,V=Y.charCodeAt(H);while(V<=32);if(z<H){if(U!==H+1)W.nodes=[{type:"word",sourceIndex:U,sourceEndIndex:H+1,value:Y.slice(U,H+1)}];else W.nodes=[];if(W.unclosed&&H+1!==X)W.after="",W.nodes.push({type:"space",sourceIndex:H+1,sourceEndIndex:X,value:Y.slice(H+1,X)});else W.after=Y.slice(H+1,X),W.sourceEndIndex=X}else W.after="",W.nodes=[];U=X+1,W.sourceEndIndex=W.unclosed?X:U,V=Y.charCodeAt(U),K.push(W)}else A+=1,W.after="",W.sourceEndIndex=U+1,K.push(W),L.push(W),K=W.nodes=[],M=W;O=""}else if(v6===V&&A)U+=1,V=Y.charCodeAt(U),M.after=E,M.sourceEndIndex+=E.length,E="",A-=1,L[L.length-1].sourceEndIndex=U,L.pop(),M=L[A],K=M.nodes;else{X=U;do{if(V===k6)X+=1;X+=1,V=Y.charCodeAt(X)}while(X<B&&!(V<=32||V===B8||V===y6||V===h6||V===g6||V===q5||V===S6||V===A8&&M&&M.type==="function"&&M.value==="calc"||V===q5&&M.type==="function"&&M.value==="calc"||V===v6&&A));if(W=Y.slice(U,X),S6===V)O=W;else if((f2===W.charCodeAt(0)||m2===W.charCodeAt(0))&&c2===W.charCodeAt(1)&&l2.test(W.slice(2)))K.push({type:"unicode-range",sourceIndex:U,sourceEndIndex:X,value:W});else K.push({type:"word",sourceIndex:U,sourceEndIndex:X,value:W});U=X}for(U=L.length-1;U;U-=1)L[U].unclosed=!0,L[U].sourceEndIndex=Y.length;return L[0].nodes}});var B7=h0((i3,V7)=>{V7.exports=function J(K,Y,X){var Z,Q,W,$;for(Z=0,Q=K.length;Z<Q;Z+=1){if(W=K[Z],!X)$=Y(W,Z,K);if($!==!1&&W.type==="function"&&Array.isArray(W.nodes))J(W.nodes,Y,X);if(X)Y(W,Z,K)}}});var L7=h0((n3,M7)=>{function A7(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=G7(J.nodes,K),Y!=="function")return Z;return X+"("+(J.before||"")+Z+(J.after||"")+(J.unclosed?"":")")}return X}function G7(J,K){var Y,X;if(Array.isArray(J)){Y="";for(X=J.length-1;~X;X-=1)Y=A7(J[X],K)+Y;return Y}return A7(J,K)}M7.exports=G7});var O7=h0((r3,q7)=>{var G8=45,M8=43,x6=46,d2=101,u2=69;function p2(J){var K=J.charCodeAt(0),Y;if(K===M8||K===G8){if(Y=J.charCodeAt(1),Y>=48&&Y<=57)return!0;var X=J.charCodeAt(2);if(Y===x6&&X>=48&&X<=57)return!0;return!1}if(K===x6){if(Y=J.charCodeAt(1),Y>=48&&Y<=57)return!0;return!1}if(K>=48&&K<=57)return!0;return!1}q7.exports=function(J){var K=0,Y=J.length,X,Z,Q;if(Y===0||!p2(J))return!1;if(X=J.charCodeAt(K),X===M8||X===G8)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===x6&&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===d2||X===u2)&&(Z>=48&&Z<=57||(Z===M8||Z===G8)&&Q>=48&&Q<=57)){K+=Z===M8||Z===G8?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 b6=h0((o3,E7)=>{var i2=U7(),N7=B7(),j7=L7();function m1(J){if(this instanceof m1)return this.nodes=i2(J),this;return new m1(J)}m1.prototype.toString=function(){return Array.isArray(this.nodes)?j7(this.nodes):""};m1.prototype.walk=function(J,K){return N7(this.nodes,J,K),this};m1.unit=O7();m1.walk=N7;m1.stringify=j7;E7.exports=m1});var D7=h0((s3,_7)=>{_7.exports=function(J){if(typeof J==="string")return F7(J);return f6(J)};function f6(J){if(!J||typeof J!=="object")return J;if(r2(J)||o2(J))return J;if(n2(J))return t2(J,f6);return e2(a2(J),function(K,Y){var X=F7(Y);return K[X]=f6(J[Y]),K},{})}function F7(J){return J.replace(/[_.-](\w|$)/g,function(K,Y){return Y.toUpperCase()})}var n2=Array.isArray||function(J){return Object.prototype.toString.call(J)==="[object Array]"},r2=function(J){return Object.prototype.toString.call(J)==="[object Date]"},o2=function(J){return Object.prototype.toString.call(J)==="[object RegExp]"},s2=Object.prototype.hasOwnProperty,a2=Object.keys||function(J){var K=[];for(var Y in J)if(s2.call(J,Y))K.push(Y);return K};function t2(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 e2(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 I7=h0((a3,JX)=>{JX.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 q8=h0((f7)=>{Object.defineProperty(f7,"__esModule",{value:!0});function p6(J){return J&&typeof J==="object"&&"default"in J?J.default:J}var C7=b6(),KX=p6(C7),YX=p6(D7()),XX=p6(I7()),ZX=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,"")},QX=/^(#(?:[0-9a-f]{3,4}){1,2})$/i,WX=/^(rgba?|hsla?|hwb|lab|lch|gray|color)$/,wX=function(K){if(K.type==="word"&&(QX.test(K.value)||(K.value in XX)||K.value==="transparent"))return K.value;else if(K.type==="function"&&WX.test(K.value))return C7.stringify(K);return null},$X=/^(none)$/i,HX=/^(auto)$/i,zX=/(^-?[_a-z][_a-z0-9-]*$)/i,UX=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?)$/i,VX=/^(0$|(?:[+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?)(?=px$))/i,BX=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?(ch|em|ex|rem|vh|vw|vmin|vmax|cm|mm|in|pc|pt))$/i,AX=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?(?:deg|rad))$/i,GX=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?%)$/i,i6=function(K){return function(Y){return K(Y)?"<token>":null}},MX=function(K){return function(Y){return Y.type===K?Y.value:null}},S0=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}},k0=i6(function(J){return J.type==="space"}),P7=i6(function(J){return J.type==="div"&&J.value==="/"}),LX=i6(function(J){return J.type==="div"&&J.value===","}),qX=MX("word"),n6=S0($X),l6=S0(HX),N5=S0(UX,Number),n0=S0(VX,Number),C1=S0(BX),S7=S0(AX,function(J){return J.toLowerCase()}),r6=S0(GX),L8=S0(zX),OX=ZX,k5=wX,d6=S0(/^(none|underline|line-through)$/i),NX=function(K){var Y=K.expect(N5);if(K.hasTokens())K.expect(P7),Y/=K.expect(N5);return{aspectRatio:Y}},jX=S0(/^(solid|dashed|dotted)$/),EX=1,FX="black",_X="solid",DX=function(K){var Y,X,Z;if(K.matches(n6))return K.expectEmpty(),{borderWidth:0,borderColor:"black",borderStyle:"solid"};var Q=0;while(Q<3&&K.hasTokens()){if(Q!==0)K.expect(k0);if(Y===void 0&&K.matches(n0,C1))Y=K.lastValue;else if(X===void 0&&K.matches(k5))X=K.lastValue;else if(Z===void 0&&K.matches(jX))Z=K.lastValue;else K.throw();Q+=1}if(K.expectEmpty(),Y===void 0)Y=EX;if(X===void 0)X=FX;if(Z===void 0)Z=_X;return{borderWidth:Y,borderColor:X,borderStyle:Z}},h5=function(K){var Y=K.types,X=Y===void 0?[n0,C1,r6]:Y,Z=K.directions,Q=Z===void 0?["Top","Right","Bottom","Left"]:Z,W=K.prefix,$=W===void 0?"":W,w=K.suffix,H=w===void 0?"":w;return function(z){var U,V=[];V.push(z.expect.apply(z,X));while(V.length<4&&z.hasTokens())z.expect(k0),V.push(z.expect.apply(z,X));z.expectEmpty();var B=V[0],L=V[1],A=L===void 0?B:L,M=V[2],O=M===void 0?B:M,N=V[3],E=N===void 0?A:N,D=function(j){return""+$+Q[j]+H};return U={},U[D(0)]=B,U[D(1)]=A,U[D(2)]=O,U[D(3)]=E,U}},v7=function(K){var Y=K.expect(n0),X=K.matches(k0)?K.expect(n0):Y;return K.expectEmpty(),{width:Y,height:X}},y7=function(K){var Y,X,Z,Q;if(K.matches(n6))return K.expectEmpty(),{offset:{width:0,height:0},radius:0,color:"black"};var W=!1;while(K.hasTokens()){if(W)K.expect(k0);if(Y===void 0&&K.matches(n0,C1))if(Y=K.lastValue,K.expect(k0),X=K.expect(n0,C1),K.saveRewindPoint(),K.matches(k0)&&K.matches(n0,C1))Z=K.lastValue;else K.rewind();else if(Q===void 0&&K.matches(k5))Q=K.lastValue;else K.throw();W=!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"}},IX=function(K){var Y=y7(K),X=Y.offset,Z=Y.radius,Q=Y.color;return{shadowOffset:X,shadowRadius:Z,shadowColor:Q,shadowOpacity:1}},RX=1,TX=1,CX=0,PX=function(K){var Y,X,Z;if(K.matches(n6))return K.expectEmpty(),{flexGrow:0,flexShrink:0,flexBasis:"auto"};if(K.saveRewindPoint(),K.matches(l6)&&!K.hasTokens())return{flexGrow:1,flexShrink:1,flexBasis:"auto"};K.rewind();var Q=0;while(Q<2&&K.hasTokens()){if(Q!==0)K.expect(k0);if(Y===void 0&&K.matches(N5))if(Y=K.lastValue,K.saveRewindPoint(),K.matches(k0)&&K.matches(N5))X=K.lastValue;else K.rewind();else if(Z===void 0&&K.matches(n0,C1,r6))Z=K.lastValue;else if(Z===void 0&&K.matches(l6))Z="auto";else K.throw();Q+=1}if(K.expectEmpty(),Y===void 0)Y=RX;if(X===void 0)X=TX;if(Z===void 0)Z=CX;return{flexGrow:Y,flexShrink:X,flexBasis:Z}},SX=S0(/(nowrap|wrap|wrap-reverse)/),vX=S0(/(row|row-reverse|column|column-reverse)/),yX="nowrap",kX="row",hX=function(K){var Y,X,Z=0;while(Z<2&&K.hasTokens()){if(Z!==0)K.expect(k0);if(Y===void 0&&K.matches(SX))Y=K.lastValue;else if(X===void 0&&K.matches(vX))X=K.lastValue;else K.throw();Z+=1}if(K.expectEmpty(),Y===void 0)Y=yX;if(X===void 0)X=kX;return{flexWrap:Y,flexDirection:X}},k7=function(K){var Y;if(K.matches(OX))Y=K.lastValue;else{Y=K.expect(L8);while(K.hasTokens()){K.expect(k0);var X=K.expect(L8);Y+=" "+X}}return K.expectEmpty(),{fontFamily:Y}},gX=S0(/^(normal)$/),xX=S0(/^(italic)$/),bX=S0(/^([1-9]00|bold)$/),fX=S0(/^(small-caps)$/),mX="normal",cX="normal",lX=[],dX=function(K){var Y,X,Z,Q,W=0;while(W<3&&K.hasTokens()){if(K.matches(gX));else if(Y===void 0&&K.matches(xX))Y=K.lastValue;else if(X===void 0&&K.matches(bX))X=K.lastValue;else if(Z===void 0&&K.matches(fX))Z=[K.lastValue];else break;K.expect(k0),W+=1}var $=K.expect(n0,C1);if(K.matches(P7))Q=K.expect(n0,C1);K.expect(k0);var w=k7(K),H=w.fontFamily;if(Y===void 0)Y=mX;if(X===void 0)X=cX;if(Z===void 0)Z=lX;var z={fontStyle:Y,fontWeight:X,fontVariant:Z,fontSize:$,fontFamily:H};if(Q!==void 0)z.lineHeight=Q;return z},uX=function(K){var Y=[K.expect(L8)];while(K.hasTokens())K.expect(k0),Y.push(K.expect(L8));return{fontVariant:Y}},pX=S0(/(flex-(?:start|end)|center|stretch|space-(?:between|around))/),iX=S0(/(flex-(?:start|end)|center|space-(?:between|around|evenly))/),nX=function(K){var Y=K.expect(pX),X;if(K.hasTokens())K.expect(k0),X=K.expect(iX);else X="stretch";return K.expectEmpty(),{alignContent:Y,justifyContent:X}},rX=S0(/^(solid|double|dotted|dashed)$/),oX="none",sX="solid",aX="black",tX=function(K){var Y,X,Z,Q=!1;while(K.hasTokens()){if(Q)K.expect(k0);if(Y===void 0&&K.matches(d6)){var W=[K.lastValue.toLowerCase()];if(K.saveRewindPoint(),W[0]!=="none"&&K.matches(k0)&&K.matches(d6))W.push(K.lastValue.toLowerCase()),W.sort().reverse();else K.rewind();Y=W.join(" ")}else if(X===void 0&&K.matches(rX))X=K.lastValue;else if(Z===void 0&&K.matches(k5))Z=K.lastValue;else K.throw();Q=!0}return{textDecorationLine:Y!==void 0?Y:oX,textDecorationColor:Z!==void 0?Z:aX,textDecorationStyle:X!==void 0?X:sX}},eX=function(K){var Y=[],X=!1;while(K.hasTokens()){if(X)K.expect(k0);Y.push(K.expect(d6).toLowerCase()),X=!0}return Y.sort().reverse(),{textDecorationLine:Y.join(" ")}},JZ=function(K){var Y=y7(K),X=Y.offset,Z=Y.radius,Q=Y.color;return{textShadowOffset:X,textShadowRadius:Z,textShadowColor:Q}},o6=function(K){return function(Y){var X=Y.expect(K);return Y.expectEmpty(),X}},m6=o6(N5),R7=o6(n0),O5=o6(S7),s6=function(K){return function(Y,X){return function(Z){var Q,W,$=Z.expect(K),w;if(Z.hasTokens())Z.expect(LX),w=Z.expect(K);else if(X!==void 0)w=X;else return $;return Z.expectEmpty(),[(Q={},Q[Y+"Y"]=w,Q),(W={},W[Y+"X"]=$,W)]}}},KZ=s6(N5),YZ=s6(n0),XZ=s6(S7),ZZ={perspective:m6,scale:KZ("scale"),scaleX:m6,scaleY:m6,translate:YZ("translate",0),translateX:R7,translateY:R7,rotate:O5,rotateX:O5,rotateY:O5,rotateZ:O5,skewX:O5,skewY:O5,skew:XZ("skew","0deg")},QZ=function(K){var Y=[],X=!1;while(K.hasTokens()){if(X)K.expect(k0);var Z=K.expectFunction(),Q=Z.functionName,W=ZZ[Q](Z);if(!Array.isArray(W)){var $;W=[($={},$[Q]=W,$)]}Y=W.concat(Y),X=!0}return{transform:Y}},WZ=function(K){return{backgroundColor:K.expect(k5)}},wZ=h5({types:[k5],prefix:"border",suffix:"Color"}),$Z=h5({directions:["TopLeft","TopRight","BottomRight","BottomLeft"],prefix:"border",suffix:"Radius"}),HZ=h5({prefix:"border",suffix:"Width"}),zZ=h5({types:[n0,C1,r6,l6],prefix:"margin"}),UZ=h5({prefix:"padding"}),VZ=function(K){return{fontWeight:K.expect(qX)}},BZ=function(K){return{shadowOffset:v7(K)}},AZ=function(K){return{textShadowOffset:v7(K)}},h7={aspectRatio:NX,background:WZ,border:DX,borderColor:wZ,borderRadius:$Z,borderWidth:HZ,boxShadow:IX,flex:PX,flexFlow:hX,font:dX,fontFamily:k7,fontVariant:uX,fontWeight:VZ,margin:zZ,padding:UZ,placeContent:nX,shadowOffset:BZ,textShadow:JZ,textShadowOffset:AZ,textDecoration:tX,textDecorationLine:eX,transform:QZ},u6;if(Bun.env.NODE_ENV!=="production")u6=["aspectRatio","elevation","flexGrow","flexShrink","opacity","shadowOpacity","zIndex"];var GZ=u6!=null?new RegExp(u6.join("|")):null,c6="SYMBOL_MATCH",MZ=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[c6]=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[c6].apply(this,arguments)!==null},K.expect=function(){var X=this[c6].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}(),LZ=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?)(?:px)?$/i,qZ=/^[+-]?(?:\d*\.\d*|[1-9]\d*)(?:e[+-]?\d+)?$/i,OZ=/^true|false$/i,NZ=/^null$/i,jZ=/^undefined$/i,g7=function(K,Y){if(Bun.env.NODE_ENV!=="production"){var X=!GZ.test(K),Z=qZ.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(LZ);if(Q!==null)return Number(Q[1]);var W=Y.match(OZ);if(W!==null)return W[0].toLowerCase()==="true";var $=Y.match(NZ);if($!==null)return null;var w=Y.match(jZ);if(w!==null)return;return Y},T7=function(K,Y){var X=KX(Y),Z=new MZ(X.nodes);return h7[K](Z)},EZ=Bun.env.NODE_ENV==="production"?T7:function(J,K){try{return T7(J,K)}catch(Y){throw Error('Failed to parse declaration "'+J+": "+K+'"')}},x7=function(K,Y,X){var Z,Q=X===!1||!(K in h7),W=Y.trim(),$=Q?(Z={},Z[K]=g7(K,W),Z):EZ(K,W);return $},b7=function(K){var Y=/^--\w+/.test(K);if(Y)return K;return YX(K)},FZ=function(K,Y){if(Y===void 0)Y=[];return K.reduce(function(X,Z){var Q=b7(Z[0]),W=Z[1],$=Y.indexOf(Q)===-1;return Object.assign(X,x7(Q,W,$))},{})};f7.default=FZ;f7.getPropertyName=b7;f7.getStylesForProperty=x7;f7.transformRawValue=g7});var c7=h0((m7,O8)=>{/*!
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(W){if(!(this instanceof K))return new K;this.backgrounds=W||[]}K.prototype.toString=function(){return this.backgrounds.join(", ")};function Y(W){if(!(this instanceof Y))return new Y(W);W=W||{};var $=this;function w(H,z){$[H]=H in W?W[H]:z}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 W=[this.image,this.repeat,this.attachment,this.position+" / "+this.size,this.origin,this.clip];if(this.color)W.unshift(this.color);return W.join(" ")},J.BackgroundList=K,J.Background=Y;function X(W){var $=[],w=/[,\(\)]/,H=0,z="";if(W==null)return $;while(W.length){var U=w.exec(W);if(!U)break;var V=U[0],B=!1;switch(V){case",":if(!H)$.push(z.trim()),z="",B=!0;break;case"(":H++;break;case")":H--;break}var L=U.index+1;z+=W.slice(0,B?L-1:L),W=W.slice(L)}if(z.length||W.length)$.push((z+W).trim());return $}function Z(W){return W.trim()}function Q(W){return(W||"").split(",").map(Z)}J.parseElementStyle=function(W){var $=new K;if(W==null)return $;var w=X(W.backgroundImage),H=W.backgroundColor,z=Q(W.backgroundAttachment),U=Q(W.backgroundClip),V=Q(W.backgroundOrigin),B=Q(W.backgroundPosition),L=Q(W.backgroundRepeat),A=Q(W.backgroundSize),M;for(var O=0,N=w.length;O<N;O++){if(M=new Y({image:w[O],attachment:z[O%z.length],clip:U[O%U.length],origin:V[O%V.length],position:B[O%B.length],repeat:L[O%L.length],size:A[O%A.length]}),O===N-1)M.color=H;$.backgrounds.push(M)}return $}})(function(J){if(typeof O8<"u"&&m7!==void 0)return m7;return J.cssBgParser={}}(m7))});var d7=h0((e3,l7)=>{var TZ=/,(?![^\(]*\))/,CZ=/\s(?![^(]*\))/,PZ=/^[0-9]+[a-zA-Z%]+?$/,SZ=(J)=>{let K=J.split(CZ),Y=K.includes("inset"),X=K.slice(-1)[0],Z=!yZ(X)?X:void 0,Q=K.filter((z)=>z!=="inset").filter((z)=>z!==Z).map(kZ),[W,$,w,H]=Q;return{inset:Y,offsetX:W,offsetY:$,blurRadius:w,spreadRadius:H,color:Z}},vZ=(J)=>{let{inset:K,offsetX:Y=0,offsetY:X=0,blurRadius:Z=0,spreadRadius:Q,color:W}=J||{};return[K?"inset":null,Y,X,Z,Q,W].filter(($)=>$!==null&&$!==void 0).map(hZ).map(($)=>(""+$).trim()).join(" ")},yZ=(J)=>J==="0"||PZ.test(J),kZ=(J)=>{if(!/px$/.test(J)&&J!=="0")return J;let K=parseFloat(J);return!isNaN(K)?K:J},hZ=(J)=>typeof J==="number"&&J!==0?J+"px":J,gZ=(J)=>J.split(TZ).map((K)=>K.trim()).map(SZ),xZ=(J)=>J.map(vZ).join(", ");l7.exports={parse:gZ,stringify:xZ}});var p7=h0((JB,u7)=>{u7.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 n7=h0((KB,i7)=>{var bZ=new RegExp("[^#a-f\\d]","gi"),fZ=new RegExp("^#?[a-f\\d]{3}[a-f\\d]?$|^#?[a-f\\d]{6}([a-f\\d]{2})?$","i");i7.exports=(J,K={})=>{if(typeof J!=="string"||bZ.test(J)||!fZ.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,W=X&255,$=typeof K.alpha==="number"?K.alpha:Y;if(K.format==="array")return[Z,Q,W,$];if(K.format==="css"){let w=$===1?"":` / ${Number(($*100).toFixed(2))}%`;return`rgb(${Z} ${Q} ${W}${w})`}return{red:Z,green:Q,blue:W,alpha:$}}});var e7=h0((XB,t7)=>{/*!
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 WQ=/["'&<>]/;t7.exports=wQ;function wQ(J){var K=""+J,Y=WQ.exec(K);if(!Y)return K;var X,Z="",Q=0,W=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(W!==Q)Z+=K.substring(W,Q);W=Q+1,Z+=X}return W!==Q?Z+K.substring(W,Q):Z}});import{AsyncLocalStorage as K2}from"async_hooks";class G5 extends y0{service;static _name="BroadcastingServiceContainer";publishCb;context=new K2;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 W=new URLPattern({pathname:Z});if(W.test({pathname:Y.topic})){let $=W.exec({pathname:Y.topic})?.pathname.groups,w=new Q;if(await w.subscribe.call(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[W,$]=Q.split("=");X.set(W.trim(),$.trim())}}this.context.run({headers:J,cookies:X},K)}}class f1{static async user(){let J=G0.getStore(),K=G5.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 F9}static async guard(J){let K=await f1.user();if(!K)throw new H8;try{if(!await J(K))throw new H8}catch(Y){throw new H8}}static async guardSafe(J){let K=await f1.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 M5{static getSupportedLocales(){return P0.use().service.supportedLocales}static getDefaultLocale(){return P0.use().service.defaultLocale}static locale(){let J=P0.use(),K=G0.getStore();if(K)return J.detectLocale(K.req);return J.service.defaultLocale}static setLocale(J=M5.locale()){let K=P0.use(),Y=J;if(!K.service.supportedLocales.includes(J))Y=K.service.defaultLocale;return G0.getStore().setCookie("i18n-locale",Y,{expires:new Date(Date.now()+31536000000),secure:!1,httpOnly:!1}),Y}}import Y2 from"sharp";import{Buffer as X2}from"buffer";class L5 extends y0{service;static _name="FileStorageServiceContainer";constructor(J){super();this.service=J}}class _9{static async put(J){return L5.use().service.driver.put(J)}static async metadata(J){let K=X2.from(await J.arrayBuffer());try{return await Y2(K).metadata()}catch{return{}}}static async fetch(J){return L5.use().service.driver.fetch(J)}static async read(J,K={}){let Y=typeof J==="string"?{name:J}:{...J},X="range"in K?K.range??null:Y.range!==void 0?Y.range:G0.getStore()?.rangeRequest??null;return L5.use().service.driver.read({...Y,range:X})}static list(J){return L5.use().service.driver.list(J)}static delete(){}}function D9(J){return Object.fromEntries(Object.entries(J).filter(([,K])=>{return K!==null&&K!==void 0}))}class K5 extends Error{constructor(){super("Adapter not found");this.name="AdapterNotFound"}}class V6{createSession(){throw new K5}deleteSession(){throw new K5}findSession(){throw new K5}findUserByEmailAddress(){throw new K5}updateSession(){throw new K5}createUser(){throw new K5}}class B6 extends H0{schema={email:{required:"Email is required",string:"Invalid email",email:"Invalid email"},password:{required:"Password is required"}}}class C9 extends H0{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 P9 extends H0{schema={email:{required:"Email is required",email:"Invalid email"}}}class S9 extends H0{schema={password:{required:"Password is required",password:"Invalid password"}}}class b0 extends I9{provider=j0.use()?.provider;async me(){let J=await f1.user();if(!J)throw new R9;return J}async verifyEmail(J=new H0){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 H0){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 W=await K.createOrUpdateSession({email:Z}),$=new URL(J.rawRequest.url);return J.ctx().setCookie("access_token",W.token,{expires:W.expiresAt,secure:!$.origin.includes("localhost"),httpOnly:!0}),await Y.onSignIn(W,J.search.toJSON()),{session:W}}async signInWithPinV2(J=new H0){let K=j0.use(),Y=K.provider,X=await J.input(),{email:Z,pin:Q}=X.toJSON(),W=Z.toLowerCase().trim();if(!await Y.adapter.findUserMagicLinkToken({email:W,pin:Q}))throw new e0({pin:["Invalid pin"]});await Y.adapter.deleteMagicLinkToken(W),await Y.adapter.verifyUser(W);let w=await K.createOrUpdateSessionV2({email:W}),H=new URL(J.rawRequest.url);return J.ctx().setCookie("access_token",w.token,{expires:w.expiresAt,secure:!H.origin.includes("localhost"),httpOnly:!0}),await Y.onSignIn(w,J.search.toJSON()),w}async signInWithPin(J=new H0){let K=j0.use(),Y=K.provider,X=await J.input(),{email:Z,pin:Q}=X.toJSON(),W=Z.toLowerCase().trim();if(!await Y.adapter.findUserMagicLinkToken({email:W,pin:Q}))throw new e0({pin:["Invalid pin"]});await Y.adapter.deleteMagicLinkToken(W),await Y.adapter.verifyUser(W);let w=await K.createOrUpdateSession({email:W}),H=new URL(J.rawRequest.url);return J.ctx().setCookie("access_token",w.token,{expires:w.expiresAt,secure:!H.origin.includes("localhost"),httpOnly:!0}),await Y.onSignIn(w,J.search.toJSON()),{session:w}}async signInV2(J=new B6){let K=new URL(J.rawRequest.url),Y=await J.input(),{email:X,password:Z}=Y.toJSON(),Q=X.toLowerCase().trim(),W=j0.use().provider,$=await W.adapter.findUserByEmailAddress(Q,W.verifyEmail);if(!$)throw new e0({invalid_credentials:["Invalid credentials"]});if(!await W.verifyPassword(Z,$.password))throw new e0({invalid_credentials:["Invalid credentials"]});let H=await j0.use().createOrUpdateSessionV2({email:$.email,id:$.id});J.ctx().setCookie("access_token",H.token,{expires:H.expiresAt,secure:!K.origin.includes("localhost"),httpOnly:!0}),await W.onSignIn($,J.search.toJSON());let{password:z,...U}=$;return U}async signIn(J=new B6){let K=await J.input(),{email:Y,password:X}=K.toJSON(),Z=Y.toLowerCase().trim(),Q=j0.use().provider,W=await Q.adapter.findUserByEmailAddress(Z,Q.verifyEmail);if(!W)throw new e0({invalid_credentials:["Invalid credentials"]});if(!await Q.verifyPassword(X,W.password))throw new e0({invalid_credentials:["Invalid credentials"]});let w=await j0.use().createOrUpdateSession({email:W.email,id:W.id}),H=new URL(J.rawRequest.url);J.ctx().setCookie("access_token",w.token,{expires:w.expiresAt,secure:!H.origin.includes("localhost"),httpOnly:!0}),await Q.onSignIn(W,J.search.toJSON());let{password:z,...U}=W;return U}async signUp(){let J=j0.use().provider,K=new J.signUpRequest,Y=await K.input(),{email:X,password:Z,name:Q,invitationId:W}=Y.toJSON(),$=X.toLowerCase().trim();if(await J.adapter.findUserByEmailAddress($,!1))throw new e0({email:["Email address already exists"]});let H=await J.hashPassword(Z),z=P0.use().detectLocale(K),U;if(W){if(U=await J.adapter.findInvitation(W,$),U)await J.adapter.deleteInvitationById(W)}let V,B;if(U)V=await J.adapter.createUser({email:$,name:Q,password:H,emailVerifiedAt:new Date,locale:z}),await J.adapter.createAccount({organizationId:U.organizationId,userId:V.id,organizationRole:U.role});else B=await J.generateEmailVerificationToken($),V=await J.adapter.createUser({email:$,name:Q,password:H,verificationToken:B,locale:z});return await J.onSignUp(V,B,K.search.toJSON()),V}async signOut(J=new H0){let K=J.cookies.get("access_token"),Y=await f1.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 P9){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 S9){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 e0({token:["Invalid token"]});if(P5.Instant.from(Q.createdAt.toISOString()).add({hours:24}).until(P5.Now.instant()).sign>=0)throw new e0({token:["Token expired"]});await K.adapter.deletePasswordResetToken({token:Z});let $=await K.adapter.findUserByEmailAddress(Q.user.email,K.verifyEmail);if(!$)throw new e0({email:["User not found"]});let w=await K.hashPassword(X);return await K.adapter.updateUserPassword({id:$.id,password:w}),await K.adapter.deleteAllUserSessions($.id),await K.onResetPassword($),{}}async changePassword(J=new H0){let K=j0.use().provider,Y=await f1.user(),X=await J.input(),{oldPassword:Z,newPassword:Q}=X.toJSON(),{password:W}=await K.adapter.findUserByEmailAddress(Y.email,K.verifyEmail);if(!await K.verifyPassword(Z,W))throw new e0({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 H0){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 H0){let{provider:K}=J.params,Y=j0.use(),X=Y.provider,Z=X.oauthProviders[K],{email:Q,name:W}=await Z.onCallback(J);if(!Q)return console.error("Authentication error: No email returned from OAuth provider callback"),{session:null};let $=await X.adapter.findUserByEmailAddress(Q,!1),w=P0.use().detectLocale(J),H="signin";if(!$)H="signup",$=await X.adapter.createUser({email:Q,name:W,locale:w,emailVerifiedAt:new Date}),await X.adapter.createSocialAccount({provider:K,userId:$.id,email:Q,username:W,providerId:"",expiresAt:new Date,accessToken:"",refreshToken:""});let z=await Y.createOrUpdateSessionV2({email:$.email,id:$.id}),U=new URL(J.rawRequest.url);if(J.ctx().setCookie("access_token",z.token,{secure:!U.origin.includes("localhost"),httpOnly:!0,expires:z.expiresAt}),H==="signup"){let V=await X.generateMagicLinkToken(Q);await X.onSignUp($,V,J.search.toJSON())}else await X.onSignIn($,J.search.toJSON());return{session:z}}async createMagicLinkToken(J=new H0){let Y=(await J.input()).get("email").toLowerCase().trim(),X=j0.use(),Z=X.provider,{user:Q,pin:W,token:$}=await X.createMagicLinkToken(Y);if(Q)return await Z.onMagicLinkCreated(Q,{email:Y,pin:W,token:$}),{email:Y};return{email:null}}}class v9 extends A6{middlewares=["cache:private"];routes={"/:provider":this.view("_Redirect",[b0,"oauthRedirect"]),"/:provider/callback":this.view("auth/OauthCallback",[b0,"oauthCallback"])}}class G6 extends A6{middlewares=["cache:private"];routes={"/sign-in/magic-link":this.view("auth/MagicLinkSignIn",[b0,"signInWithMagicLink"]),"/oauth":v9}}class M6 extends O1{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 Z2 extends T9{basePath="/auth";verifyEmail=!0;redirectPath="/dashboard";sessionExpiresInHours=24;sessionAbsoluteExpiresInHours=672;signUpRequest=C9;adapter=new V6;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 L6 extends O1{middlewares=["cache:private,0,no-store"];routes={"/set-locale/:locale":this.get(async()=>{let J=new H0,K=J.params.locale;return console.log(`Setting locale to ${K}`),J.ctx().setCookie("i18n-locale",K),await P0.use().service.onLocaleChange(K),{locale:K}}),"/translations/:locale/:scope*":this.get(async()=>{let J=new H0,K=`/${J.params.scope??""}`,X=J.params.locale??P0.use().detectLocale(J),Z=P0.use().getPageTranslations(X,K);return J.ctx().setCookie("i18n-locale",X,{expires:new Date(Date.now()+31536000000)}),{[X]:Z}})}}class q6 extends O1{routes={"/resize":this.file(async()=>{let J=new H0,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",W=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}`,H=await fetch(w);if(!H.ok)return new Response(JSON.stringify({error:"Image not found",info:w}),{headers:{"Content-Type":"application/json"},status:404});let z=Buffer.from(await H.arrayBuffer()),U=await y9.use().service.driver.resize(z,{height:Z,width:X,fit:Q,quality:W});H.headers.delete("Content-Type"),H.headers.delete("Content-Length");let V=new Headers(H.headers);return V.set("Content-Type","image/webp"),V.set("Content-Length",`${U.byteLength}`),new Response(new Uint8Array(U),{headers:V})})}}class y9 extends y0{service;static _name="ImageOptimizationServiceContainer";constructor(J){super();this.service=J}}import{mkdir as O6,readdir as Q2,access as W2}from"fs/promises";async function N6(J){try{return await W2(J),!0}catch{return!1}}class J1 extends y0{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 N6(`${process.env.ROOT_DIR}/storage`))await O6(`${process.env.ROOT_DIR}/storage`);if(!await N6(this.logsDirPath))await O6(this.logsDirPath);this.newLogFile()}async newLogFile(){if(!await N6(this.logsDirPath))await O6(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 Q2(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(($)=>{let w=setInterval(()=>{if(this.isReady)$({}),clearInterval(w)},100)});let X=G0.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}},W="";try{W=JSON.stringify(Q)}catch($){console.log("Error parsing log object",$)}this.writerSize+=W.length,this.fileSize+=W.length;try{this.writer.write(W),this.writer.write(`
13
+ `),this.service.onLogCreated(Q),this.tryFlush()}catch($){console.error("Error writing log",$)}}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 j6 extends O1{middlewares=["cache:private,0"];routes={"/live":this.get(async()=>{let J=Bun.file(J1.use().currentLogFilePath);return new Response(await J.text(),{headers:{"Content-Type":"text/plain"}})})}}function w2(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 S5 extends y0{service;static _name="MiddlewareServiceContainer";constructor(J){super();this.service=J}runMiddleware(J){let K=new H0;return Array.from(w2(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(k9(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 $2(J){return"run"in J}function H2(J){return Object.hasOwn(J,"get")||Object.hasOwn(J,"post")||Object.hasOwn(J,"put")||Object.hasOwn(J,"delete")}function z2(J){return Object.hasOwn(J,"first")&&Object.hasOwn(J,"second")}function U2(J){if("__brand"in J)return J.__brand==="ApiRouter";return!1}function V2(J){if("__internal_brand"in J)return J.__internal_brand==="ProxyHandler";return!1}function B2(J){if("__internal_brand"in J)return J.__internal_brand==="StreamHandler";return!1}function E6(J,K="",Y=[]){let X={};function Z(Q,W,$,w){let H=Q==="/"?"":Q,z=K==="/"?"":K,U=(`${z}${H}`===""?"/":`${z}${H}`).replaceAll("//","/");if(!X[U])X[U]={};X[U][W.toUpperCase()]={exec:$,middleware:[...Y,...w]},X[U].OPTIONS={exec:()=>{let B=new H0().ctx().headers;return new Response(null,{headers:B,status:204})},middleware:[]}}for(let[Q,W]of Object.entries(J)){if(V2(W)){let $=W;for(let w of["GET","POST","PUT","DELETE"])Z(Q,w,$.run.bind($),[]);continue}if($2(W)){let $=W,w=$.method,H=$.middlewares,z=$.run.bind($);if(Z(Q,w,z,H),B2(W))Z(Q,"HEAD",z,H)}if(H2(W))for(let[$,w]of Object.entries(W)){let H=w.middlewares,z=w.run.bind(w);Z(Q,$,z,H)}if(U2(W)){let $=new W,w=E6($.routes,`${K}${Q}`,$.middlewares);for(let[H,z]of Object.entries(w))X[H.replaceAll("//","/")]=z}if(z2(W)){let{first:$,second:w}=W;for(let[H,z]of Object.entries($)){let U=z.middlewares,V=z.run.bind(z),[B,...L]=Q.split("/").reverse();if(!B.startsWith(":"))throw Error("Resource route must end with a dynamic segment");Z(L.reverse().join("/"),H,V,U)}for(let[H,z]of Object.entries(w)){let U=z.middlewares,V=z.run.bind(z);Z(Q,H,V,U)}}}return Object.fromEntries(Object.entries(X).sort(([Q],[W])=>{let $=Q.split("/").length+Q.split(":").length,w=W.split("/").length+W.split(":").length;return $-w}))}var Q7=$1(t9(),1),W7=$1(e9(),1),P6={};var I2=5;var J7=12,R2=13;var T2=16,C2=17;var P2=22;var K7=28;var Y7=31;var S2=33,U8=34,v2=35,T6=36,C6=37,w7=38,y2=39,k2=40,y5=41,h2=42,G=0,q=1,w0=2,$7=3,_=4,g2=[[_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,$7,_,_,_,_,_,_,_,_,_,_,_],[G,_,_,q,q,_,_,_,_,q,q,G,G,G,G,q,q,q,G,G,_,w0,_,G,G,G,G,G,G,G,G,q,G],[G,_,_,q,q,_,_,_,_,q,q,q,q,q,G,q,q,q,G,G,_,w0,_,G,G,G,G,G,G,G,G,q,G],[_,_,_,q,q,q,_,_,_,q,q,q,q,q,q,q,q,q,q,q,_,w0,_,q,q,q,q,q,q,q,q,q,q],[q,_,_,q,q,q,_,_,_,q,q,q,q,q,q,q,q,q,q,q,_,w0,_,q,q,q,q,q,q,q,q,q,q],[G,_,_,q,q,q,_,_,_,G,G,G,G,G,G,q,q,q,G,G,_,w0,_,G,G,G,G,G,G,G,G,q,G],[G,_,_,q,q,q,_,_,_,G,G,G,G,G,G,q,q,q,G,G,_,w0,_,G,G,G,G,G,G,G,G,q,G],[G,_,_,q,q,q,_,_,_,G,G,q,G,q,G,q,q,q,G,G,_,w0,_,G,G,G,G,G,G,G,G,q,G],[G,_,_,q,q,q,_,_,_,G,G,q,q,q,G,q,q,q,G,G,_,w0,_,G,G,G,G,G,G,G,G,q,G],[q,_,_,q,q,q,_,_,_,G,G,q,q,q,q,q,q,q,G,G,_,w0,_,q,q,q,q,q,G,q,q,q,G],[q,_,_,q,q,q,_,_,_,G,G,q,q,q,G,q,q,q,G,G,_,w0,_,G,G,G,G,G,G,G,G,q,G],[q,_,_,q,q,q,_,_,_,q,q,q,q,q,G,q,q,q,G,G,_,w0,_,G,G,G,G,G,G,G,G,q,G],[q,_,_,q,q,q,_,_,_,q,q,q,q,q,G,q,q,q,G,G,_,w0,_,G,G,G,G,G,G,G,G,q,G],[q,_,_,q,q,q,_,_,_,q,q,q,q,q,G,q,q,q,G,G,_,w0,_,G,G,G,G,G,G,G,G,q,G],[G,_,_,q,q,q,_,_,_,G,q,G,G,G,G,q,q,q,G,G,_,w0,_,G,G,G,G,G,G,G,G,q,G],[G,_,_,q,q,q,_,_,_,G,G,G,G,G,G,q,q,q,G,G,_,w0,_,G,G,G,G,G,G,G,G,q,G],[G,_,_,q,G,q,_,_,_,G,G,q,G,G,G,q,q,q,G,G,_,w0,_,G,G,G,G,G,G,G,G,q,G],[G,_,_,q,G,q,_,_,_,G,G,G,G,G,G,q,q,q,G,G,_,w0,_,G,G,G,G,G,G,G,G,q,G],[q,_,_,q,q,q,_,_,_,q,q,q,q,q,q,q,q,q,q,q,_,w0,_,q,q,q,q,q,q,q,q,q,G],[G,_,_,q,q,q,_,_,_,G,G,G,G,G,G,q,q,q,G,_,_,w0,_,G,G,G,G,G,G,G,G,q,G],[G,G,G,G,G,G,G,G,G,G,G,G,G,G,G,G,G,G,G,G,_,G,G,G,G,G,G,G,G,G,G,G,G],[q,_,_,q,q,q,_,_,_,q,q,q,q,q,G,q,q,q,G,G,_,w0,_,G,G,G,G,G,G,G,G,q,G],[q,_,_,q,q,q,_,_,_,q,q,q,q,q,q,q,q,q,q,q,_,w0,_,q,q,q,q,q,q,q,q,q,q],[G,_,_,q,q,q,_,_,_,G,q,G,G,G,G,q,q,q,G,G,_,w0,_,G,G,G,q,q,G,G,G,q,G],[G,_,_,q,q,q,_,_,_,G,q,G,G,G,G,q,q,q,G,G,_,w0,_,G,G,G,G,q,G,G,G,q,G],[G,_,_,q,q,q,_,_,_,G,q,G,G,G,G,q,q,q,G,G,_,w0,_,q,q,q,q,G,G,G,G,q,G],[G,_,_,q,q,q,_,_,_,G,q,G,G,G,G,q,q,q,G,G,_,w0,_,G,G,G,q,q,G,G,G,q,G],[G,_,_,q,q,q,_,_,_,G,q,G,G,G,G,q,q,q,G,G,_,w0,_,G,G,G,G,q,G,G,G,q,G],[G,_,_,q,q,q,_,_,_,G,G,G,G,G,G,q,q,q,G,G,_,w0,_,G,G,G,G,G,q,G,G,q,G],[G,_,_,q,q,q,_,_,_,G,q,G,G,G,G,q,q,q,G,G,_,w0,_,G,G,G,G,G,G,G,q,q,G],[G,_,_,q,q,q,_,_,_,G,q,G,G,G,G,q,q,q,G,G,_,w0,_,G,G,G,G,G,G,G,G,q,G],[q,_,_,q,q,q,_,_,_,q,q,q,q,q,G,q,q,q,G,G,_,w0,_,G,G,G,G,G,G,G,G,q,G],[G,_,_,q,q,G,_,_,_,G,G,G,G,G,G,G,G,G,G,G,_,w0,_,G,G,G,G,G,G,G,G,q,G]],x2=W7.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/"),b2=new Q7.default(x2),X7=function(J){switch(J){case S2:return J7;case y2:case k2:case h2:return J7;case v2:return I2;default:return J}},Z7=function(J){switch(J){case C6:case w7:return U8;case y5:return P2;default:return J}};class V8{constructor(J,K=!1){this.position=J,this.required=K}}class H7{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 X7(b2.get(this.nextCodePoint()))}getSimpleBreak(){switch(this.nextClass){case y5:return!1;case U8:case C6:case w7:return this.curClass=U8,!1;case T6:return this.curClass=T6,!1}return null}getPairTableBreak(J){let K=!1;switch(g2[this.curClass][this.nextClass]){case G:K=!0;break;case q:K=J===y5;break;case w0:if(K=J===y5,!K)return K=!1,K;break;case $7:if(J!==y5)return K;break;case _:break}if(this.LB8a)K=!1;if(this.LB21a&&(this.curClass===T2||this.curClass===C2))K=!1,this.LB21a=!1;else this.LB21a=this.curClass===R2;if(this.curClass===K7){if(this.LB30a++,this.LB30a==2&&this.nextClass===K7)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=Z7(J),this.nextClass=J,this.LB8a=J===Y7,this.LB30a=0}while(this.pos<this.string.length){this.lastPos=this.pos;let J=this.nextClass;if(this.nextClass=this.nextCharClass(),this.curClass===U8||this.curClass===T6&&this.nextClass!==C6)return this.curClass=Z7(X7(this.nextClass)),new V8(this.lastPos,!0);let K=this.getSimpleBreak();if(K===null)K=this.getPairTableBreak(J);if(this.LB8a=this.nextClass===Y7,K)return new V8(this.lastPos)}if(this.lastPos<this.string.length)return this.lastPos=this.string.length,new V8(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}}P6=H7;var G1=$1(q8(),1),wY=$1(c7(),1),$Y=$1(d7(),1);var o7=$1(p7(),1),s7=$1(n7(),1),mZ=/^#([a-f0-9]{3,4}|[a-f0-9]{4}(?:[a-f0-9]{2}){1,2})\b$/,cZ=new RegExp(mZ,"i"),a6="-?\\d*(?:\\.\\d+)",j5=`(${a6}?)`,E1=`(${a6}?%)`,E5=`(${a6}?%?)`,lZ=`^
14
+ hsla?\\(
15
+ \\s*(-?\\d*(?:\\.\\d+)?(?:deg|rad|turn)?)\\s*,
16
+ \\s*${E1}\\s*,
17
+ \\s*${E1}\\s*
18
+ (?:,\\s*${E5}\\s*)?
19
+ \\)
20
+ $
21
+ `.replace(/\n|\s/g,""),dZ=new RegExp(lZ),uZ=`^
22
+ hsla?\\(
23
+ \\s*(-?\\d*(?:\\.\\d+)?(?:deg|rad|turn)?)\\s*
24
+ \\s+${E1}
25
+ \\s+${E1}
26
+ \\s*(?:\\s*\\/\\s*${E5}\\s*)?
27
+ \\)
28
+ $
29
+ `.replace(/\n|\s/g,""),pZ=new RegExp(uZ),iZ=`^
30
+ rgba?\\(
31
+ \\s*${j5}\\s*,
32
+ \\s*${j5}\\s*,
33
+ \\s*${j5}\\s*
34
+ (?:,\\s*${E5}\\s*)?
35
+ \\)
36
+ $
37
+ `.replace(/\n|\s/g,""),nZ=new RegExp(iZ),rZ=`^
38
+ rgba?\\(
39
+ \\s*${E1}\\s*,
40
+ \\s*${E1}\\s*,
41
+ \\s*${E1}\\s*
42
+ (?:,\\s*${E5}\\s*)?
43
+ \\)
44
+ $
45
+ `.replace(/\n|\s/g,""),oZ=new RegExp(rZ),sZ=`^
46
+ rgba?\\(
47
+ \\s*${j5}
48
+ \\s+${j5}
49
+ \\s+${j5}
50
+ \\s*(?:\\s*\\/\\s*${E5}\\s*)?
51
+ \\)
52
+ $
53
+ `.replace(/\n|\s/g,""),aZ=new RegExp(sZ),tZ=`^
54
+ rgba?\\(
55
+ \\s*${E1}
56
+ \\s+${E1}
57
+ \\s+${E1}
58
+ \\s*(?:\\s*\\/\\s*${E5}\\s*)?
59
+ \\)
60
+ $
61
+ `.replace(/\n|\s/g,""),eZ=new RegExp(tZ),JQ=/^transparent$/,KQ=new RegExp(JQ,"i"),t6=(J,K,Y)=>Math.min(Math.max(K,J),Y),YQ=(J)=>{let K=J;if(typeof K!=="number")K=K.endsWith("%")?parseFloat(K)*255/100:parseFloat(K);return t6(Math.round(K),0,255)},r7=(J)=>t6(parseFloat(J),0,100);function a7(J){let K=J;if(typeof K!=="number")K=K.endsWith("%")?parseFloat(K)/100:parseFloat(K);return t6(K,0,1)}function XQ(J){let[K,Y,X,Z]=s7.default(J,{format:"array"});return N8([null,K,Y,X,Z])}function ZQ([,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,r7(K),r7(Y)],alpha:a7(X===null?1:X)}}function N8([,J,K,Y,X=1]){return{type:"rgb",values:[J,K,Y].map(YQ),alpha:a7(X===null?1:X)}}var QQ=(J)=>{if(typeof J!=="string")return null;let K=cZ.exec(J);if(K)return XQ(K[0]);let Y=pZ.exec(J)||dZ.exec(J);if(Y)return ZQ(Y);let X=aZ.exec(J)||eZ.exec(J)||nZ.exec(J)||oZ.exec(J);if(X)return N8(X);if(KQ.exec(J))return N8([null,0,0,0,0]);let Z=o7.default[J.toLowerCase()];if(Z)return N8([null,Z[0],Z[1],Z[2],1]);return null},j8=QQ;var HY=$1(b6(),1),zY=$1(q8(),1),v4=$1(e7(),1);function J4(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 e6(J){let K=[];for(let Y=0,X=J.length;Y<X;){let[Z,Q]=J4(J[Y],/\s+/);$Q(J[Y+1])?(K.push({color:Z,offset:Y5(Q),hint:Y5(J[Y+1])}),Y+=2):(K.push({color:Z,offset:Y5(Q)}),Y++)}return K}var YJ=/^(-?\d+\.?\d*)(%|vw|vh|px|em|rem|deg|rad|grad|turn)$/;function $Q(J){return YJ.test(J)}function Y5(J){if(!J)return;let[,K,Y]=J.trim().match(YJ)||[];return{value:K,unit:Y}}function XJ(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=J4(Y),Q=HQ(Z[0]);return Q&&(X.orientation=Q,Z.shift()),{...X,stops:e6(Z)}}function HQ(J){return J.startsWith("to ")?{type:"directional",value:J.replace("to ","")}:["turn","deg","grad","rad"].some((K)=>J.endsWith(K))?{type:"angular",value:Y5(J)}:null}var zQ=new Set(["closest-corner","closest-side","farthest-corner","farthest-side"]),UQ=new Set(["center","left","top","right","bottom"]);function JJ(J){return zQ.has(J)}function KJ(J){return UQ.has(J)}function VQ(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 ZJ(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=J4(Y);if(BQ(Z[0]))return{...X,stops:e6(Z)};let Q=Z[0].split("at").map((H)=>H.trim()),W=((Q[0]||"").match(/(circle|ellipse)/)||[])[1],$=(Q[0]||"").match(/(-?\d+\.?\d*(vw|vh|px|em|rem|%|rad|grad|turn|deg)?|closest-corner|closest-side|farthest-corner|farthest-side)/g)||[],w=VQ((Q[1]||"").split(" "));return W?X.shape=W:$.length===1&&!JJ($[0])?X.shape="circle":X.shape="ellipse",$.length===0&&$.push("farthest-corner"),X.size=$.map((H)=>JJ(H)?{type:"keyword",value:H}:{type:"length",value:Y5(H)}),X.position.x=KJ(w[0])?{type:"keyword",value:w[0]}:{type:"length",value:Y5(w[0])},X.position.y=KJ(w[1])?{type:"keyword",value:w[1]}:{type:"length",value:Y5(w[1])},(W||$.length>0||Q[1])&&Z.shift(),{...X,stops:e6(Z)}}function BQ(J){return/(circle|ellipse|at)/.test(J)?!1:/^(rgba?|hwb|hsl|lab|lch|oklab|color|#|[a-zA-Z]+)/.test(J)}var y4=$1(q8(),1);var K1=Uint8Array,Z5=Uint16Array,vJ=Uint32Array,yJ=new K1([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]),kJ=new K1([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]),AQ=new K1([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),hJ=function(J,K){var Y=new Z5(31);for(var X=0;X<31;++X)Y[X]=K+=1<<J[X-1];var Z=new vJ(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]},gJ=hJ(yJ,2),xJ=gJ[0],GQ=gJ[1];xJ[28]=258,GQ[258]=28;var MQ=hJ(kJ,0),LQ=MQ[0],z4=new Z5(32768);for(Q0=0;Q0<32768;++Q0)F1=(Q0&43690)>>>1|(Q0&21845)<<1,F1=(F1&52428)>>>2|(F1&13107)<<2,F1=(F1&61680)>>>4|(F1&3855)<<4,z4[Q0]=((F1&65280)>>>8|(F1&255)<<8)>>>1;var F1,Q0,x5=function(J,K,Y){var X=J.length,Z=0,Q=new Z5(K);for(;Z<X;++Z)if(J[Z])++Q[J[Z]-1];var W=new Z5(K);for(Z=0;Z<K;++Z)W[Z]=W[Z-1]+Q[Z-1]<<1;var $;if(Y){$=new Z5(1<<K);var w=15-K;for(Z=0;Z<X;++Z)if(J[Z]){var H=Z<<4|J[Z],z=K-J[Z],U=W[J[Z]-1]++<<z;for(var V=U|(1<<z)-1;U<=V;++U)$[z4[U]>>>w]=H}}else{$=new Z5(X);for(Z=0;Z<X;++Z)if(J[Z])$[Z]=z4[W[J[Z]-1]++]>>>15-J[Z]}return $},m5=new K1(288);for(Q0=0;Q0<144;++Q0)m5[Q0]=8;var Q0;for(Q0=144;Q0<256;++Q0)m5[Q0]=9;var Q0;for(Q0=256;Q0<280;++Q0)m5[Q0]=7;var Q0;for(Q0=280;Q0<288;++Q0)m5[Q0]=8;var Q0,bJ=new K1(32);for(Q0=0;Q0<32;++Q0)bJ[Q0]=5;var Q0,qQ=x5(m5,9,1),OQ=x5(bJ,5,1),K4=function(J){var K=J[0];for(var Y=1;Y<J.length;++Y)if(J[Y]>K)K=J[Y];return K},H1=function(J,K,Y){var X=K/8|0;return(J[X]|J[X+1]<<8)>>(K&7)&Y},Y4=function(J,K){var Y=K/8|0;return(J[Y]|J[Y+1]<<8|J[Y+2]<<16)>>(K&7)},NQ=function(J){return(J+7)/8|0},jQ=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?Z5:J.BYTES_PER_ELEMENT==4?vJ:K1)(Y-K);return X.set(J.subarray(K,Y)),X},EQ=["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"],d1=function(J,K,Y){var X=Error(K||EQ[J]);if(X.code=J,Error.captureStackTrace)Error.captureStackTrace(X,d1);if(!Y)throw X;return X},FQ=function(J,K,Y){var X=J.length;if(!X||Y&&Y.f&&!Y.l)return K||new K1(0);var Z=!K||Y,Q=!Y||Y.i;if(!Y)Y={};if(!K)K=new K1(X*3);var W=function(g){var J0=K.length;if(g>J0){var X0=new K1(Math.max(J0*2,g));X0.set(K),K=X0}},$=Y.f||0,w=Y.p||0,H=Y.b||0,z=Y.l,U=Y.d,V=Y.m,B=Y.n,L=X*8;do{if(!z){$=H1(J,w,1);var A=H1(J,w+1,3);if(w+=3,!A){var M=NQ(w)+4,O=J[M-4]|J[M-3]<<8,N=M+O;if(N>X){if(Q)d1(0);break}if(Z)W(H+O);K.set(J.subarray(M,N),H),Y.b=H+=O,Y.p=w=N*8,Y.f=$;continue}else if(A==1)z=qQ,U=OQ,V=9,B=5;else if(A==2){var E=H1(J,w,31)+257,D=H1(J,w+10,15)+4,F=E+H1(J,w+5,31)+1;w+=14;var j=new K1(F),R=new K1(19);for(var I=0;I<D;++I)R[AQ[I]]=H1(J,w+I*3,7);w+=D*3;var C=K4(R),h=(1<<C)-1,l=x5(R,C,1);for(var I=0;I<F;){var u=l[H1(J,w,h)];w+=u&15;var M=u>>>4;if(M<16)j[I++]=M;else{var p=0,P=0;if(M==16)P=3+H1(J,w,3),w+=2,p=j[I-1];else if(M==17)P=3+H1(J,w,7),w+=3;else if(M==18)P=11+H1(J,w,127),w+=7;while(P--)j[I++]=p}}var S=j.subarray(0,E),T=j.subarray(E);V=K4(S),B=K4(T),z=x5(S,V,1),U=x5(T,B,1)}else d1(1);if(w>L){if(Q)d1(0);break}}if(Z)W(H+131072);var c=(1<<V)-1,d=(1<<B)-1,a=w;for(;;a=w){var p=z[Y4(J,w)&c],r=p>>>4;if(w+=p&15,w>L){if(Q)d1(0);break}if(!p)d1(2);if(r<256)K[H++]=r;else if(r==256){a=w,z=null;break}else{var x=r-254;if(r>264){var I=r-257,m=yJ[I];x=H1(J,w,(1<<m)-1)+xJ[I],w+=m}var v=U[Y4(J,w)&d],k=v>>>4;if(!v)d1(3);w+=v&15;var T=LQ[k];if(k>3){var m=kJ[k];T+=Y4(J,w)&(1<<m)-1,w+=m}if(w>L){if(Q)d1(0);break}if(Z)W(H+131072);var o=H+x;for(;H<o;H+=4)K[H]=K[H-T],K[H+1]=K[H+1-T],K[H+2]=K[H+2-T],K[H+3]=K[H+3-T];H=o}}if(Y.l=z,Y.p=a,Y.b=H,Y.f=$,z)$=1,Y.m=V,Y.d=U,Y.n=B}while(!$);return H==K.length?K:jQ(K,0,H)},_Q=new K1(0);function DQ(J,K){return FQ(J,K)}var IQ=typeof TextDecoder<"u"&&new TextDecoder,RQ=0;try{IQ.decode(_Q,{stream:!0}),RQ=1}catch(J){}function f0(){this.commands=[],this.fill="black",this.stroke=null,this.strokeWidth=1}f0.prototype.moveTo=function(J,K){this.commands.push({type:"M",x:J,y:K})};f0.prototype.lineTo=function(J,K){this.commands.push({type:"L",x:J,y:K})};f0.prototype.curveTo=f0.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})};f0.prototype.quadTo=f0.prototype.quadraticCurveTo=function(J,K,Y,X){this.commands.push({type:"Q",x1:J,y1:K,x:Y,y:X})};f0.prototype.close=f0.prototype.closePath=function(){this.commands.push({type:"Z"})};f0.prototype.extend=function(J){if(J.commands)J=J.commands;Array.prototype.push.apply(this.commands,J)};f0.prototype.toPathData=function(J){J=J!==void 0?J:2;function K(W){if(Math.round(W)===W)return""+Math.round(W);else return W.toFixed(J)}function Y(){var W=arguments,$="";for(var w=0;w<arguments.length;w+=1){var H=W[w];if(H>=0&&w>0)$+=" ";$+=K(H)}return $}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 TQ=[".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"],CQ=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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"],PQ=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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 fJ(J){this.font=J}fJ.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 mJ(J){this.cmap=J}mJ.prototype.charToGlyphIndex=function(J){return this.cmap.glyphIndexMap[J.codePointAt(0)]||0};function D8(J,K){this.encoding=J,this.charset=K}D8.prototype.charToGlyphIndex=function(J){var K=J.codePointAt(0),Y=this.encoding[K];return this.charset.indexOf(Y)};function SQ(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],W=Y[Q];K=J.glyphs.get(W),K.addUnicode(parseInt(Q))}}function vQ(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 yQ(J,K){if(K.lowMemory)vQ(J);else SQ(J)}function cJ(J){throw Error(J)}function QJ(J,K){if(!J)cJ(K)}var z0={fail:cJ,argument:QJ,assert:QJ};function kQ(J,K){var Y=K||new f0;return{configurable:!0,get:function(){if(typeof Y==="function")Y=Y();return Y},set:function(X){Y=X}}}function v1(J){this.bindConstructorValues(J)}v1.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",kQ(this,J.path))};v1.prototype.addUnicode=function(J){if(this.unicodes.length===0)this.unicode=J;this.unicodes.push(J)};v1.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,W;if(!X)X={};var{xScale:$,yScale:w}=X;if(X.hinting&&Z&&Z.hinting)W=this.path&&Z.hinting.exec(this,Y);if(W)Q=Z.hinting.getCommands(W),J=Math.round(J),K=Math.round(K),$=w=1;else{Q=this.path.commands;var H=1/(this.path.unitsPerEm||1000)*Y;if($===void 0)$=H;if(w===void 0)w=H}var z=new f0;for(var U=0;U<Q.length;U+=1){var V=Q[U];if(V.type==="M")z.moveTo(J+V.x*$,K+-V.y*w);else if(V.type==="L")z.lineTo(J+V.x*$,K+-V.y*w);else if(V.type==="Q")z.quadraticCurveTo(J+V.x1*$,K+-V.y1*w,J+V.x*$,K+-V.y*w);else if(V.type==="C")z.curveTo(J+V.x1*$,K+-V.y1*w,J+V.x2*$,K+-V.y2*w,J+V.x*$,K+-V.y*w);else if(V.type==="Z")z.closePath()}return z};v1.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};v1.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 E8(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 B4(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}B4.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]};B4.prototype.push=function(J,K){this.glyphs[J]=K,this.length++};function hQ(J,K){return new v1({index:K,font:J})}function gQ(J,K,Y,X,Z,Q){return function(){var W=new v1({index:K,font:J});return W.path=function(){Y(W,X,Z);var $=Q(J.glyphs,W);return $.unitsPerEm=J.unitsPerEm,$},E8(W,"xMin","_xMin"),E8(W,"xMax","_xMax"),E8(W,"yMin","_yMin"),E8(W,"yMax","_yMax"),W}}function xQ(J,K,Y,X){return function(){var Z=new v1({index:K,font:J});return Z.path=function(){var Q=Y(J,Z,X);return Q.unitsPerEm=J.unitsPerEm,Q},Z}}var D1={GlyphSet:B4,glyphLoader:hQ,ttfGlyphLoader:gQ,cffGlyphLoader:xQ};function X4(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 WJ(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 wJ(J,K){var Y,X=0,Z=J.length-1;while(X<=Z){var Q=X+Z>>>1;Y=J[Q];var W=Y.start;if(W===K)return Y;else if(W<K)X=Q+1;else Z=Q-1}if(X>0){if(Y=J[X-1],K>Y.end)return 0;return Y}}function c5(J,K){this.font=J,this.tableName=K}c5.prototype={searchTag:X4,binSearch:WJ,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=X4(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=X4(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,W=Z.featureIndexes,$=this.font.tables[this.tableName].features;for(var w=0;w<W.length;w++)if(Q=$[W[w]],Q.tag===Y)return Q.feature;if(X){var H=$.length;return z0.assert(H===0||Y>=$[H-1].tag,"Features must be added in alphabetical order."),Q={tag:Y,feature:{params:0,lookupListIndexes:[]}},$.push(Q),W.push(H),Q.feature}}},getLookupTables:function(J,K,Y,X,Z){var Q=this.getFeatureTable(J,K,Y,Z),W=[];if(Q){var $,w=Q.lookupListIndexes,H=this.font.tables[this.tableName].lookups;for(var z=0;z<w.length;z++)if($=H[w[z]],$.lookupType===X)W.push($);if(W.length===0&&Z){$={lookupType:X,lookupFlag:0,subtables:[],markFilteringSet:void 0};var U=H.length;return H.push($),w.push(U),[$]}}return W},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=wJ(J.ranges,K);return Y?Y.classId:0}},getCoverageIndex:function(J,K){switch(J.format){case 1:var Y=WJ(J.glyphs,K);return Y>=0?Y:-1;case 2:var X=wJ(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,W=Z.end;for(var $=Q;$<=W;$++)K.push($)}return K}}};function l5(J){c5.call(this,J,"gpos")}l5.prototype=c5.prototype;l5.prototype.init=function(){var J=this.getDefaultScriptName();this.defaultKerningTables=this.getKerningTables(J)};l5.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 W=Z[Q],$=this.getCoverageIndex(W.coverage,K);if($<0)continue;switch(W.posFormat){case 1:var w=W.pairSets[$];for(var H=0;H<w.length;H++){var z=w[H];if(z.secondGlyph===Y)return z.value1&&z.value1.xAdvance||0}break;case 2:var U=this.getGlyphClass(W.classDef1,K),V=this.getGlyphClass(W.classDef2,Y),B=W.classRecords[U][V];return B.value1&&B.value1.xAdvance||0}}}return 0};l5.prototype.getKerningTables=function(J,K){if(this.font.tables.gpos)return this.getLookupTables(J,K,"kern",2)};function r0(J){c5.call(this,J,"gsub")}function bQ(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 A4(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}r0.prototype=c5.prototype;r0.prototype.createDefaultTable=function(){return{version:1,scripts:[{tag:"DFLT",script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}}],features:[],lookups:[]}};r0.prototype.getSingle=function(J,K,Y){var X=[],Z=this.getLookupTables(K,Y,J,1);for(var Q=0;Q<Z.length;Q++){var W=Z[Q].subtables;for(var $=0;$<W.length;$++){var w=W[$],H=this.expandCoverage(w.coverage),z=void 0;if(w.substFormat===1){var U=w.deltaGlyphId;for(z=0;z<H.length;z++){var V=H[z];X.push({sub:V,by:V+U})}}else{var B=w.substitute;for(z=0;z<H.length;z++)X.push({sub:H[z],by:B[z]})}}}return X};r0.prototype.getMultiple=function(J,K,Y){var X=[],Z=this.getLookupTables(K,Y,J,2);for(var Q=0;Q<Z.length;Q++){var W=Z[Q].subtables;for(var $=0;$<W.length;$++){var w=W[$],H=this.expandCoverage(w.coverage),z=void 0;for(z=0;z<H.length;z++){var U=H[z],V=w.sequences[z];X.push({sub:U,by:V})}}}return X};r0.prototype.getAlternates=function(J,K,Y){var X=[],Z=this.getLookupTables(K,Y,J,3);for(var Q=0;Q<Z.length;Q++){var W=Z[Q].subtables;for(var $=0;$<W.length;$++){var w=W[$],H=this.expandCoverage(w.coverage),z=w.alternateSets;for(var U=0;U<H.length;U++)X.push({sub:H[U],by:z[U]})}}return X};r0.prototype.getLigatures=function(J,K,Y){var X=[],Z=this.getLookupTables(K,Y,J,4);for(var Q=0;Q<Z.length;Q++){var W=Z[Q].subtables;for(var $=0;$<W.length;$++){var w=W[$],H=this.expandCoverage(w.coverage),z=w.ligatureSets;for(var U=0;U<H.length;U++){var V=H[U],B=z[U];for(var L=0;L<B.length;L++){var A=B[L];X.push({sub:[V].concat(A.components),by:A.ligGlyph})}}}}return X};r0.prototype.addSingle=function(J,K,Y,X){var Z=this.getLookupTables(Y,X,J,1,!0)[0],Q=A4(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 W=K.sub,$=this.binSearch(Q.coverage.glyphs,W);if($<0)$=-1-$,Q.coverage.glyphs.splice($,0,W),Q.substitute.splice($,0,0);Q.substitute[$]=K.by};r0.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=A4(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 W=K.sub,$=this.binSearch(Q.coverage.glyphs,W);if($<0)$=-1-$,Q.coverage.glyphs.splice($,0,W),Q.sequences.splice($,0,0);Q.sequences[$]=K.by};r0.prototype.addAlternate=function(J,K,Y,X){var Z=this.getLookupTables(Y,X,J,3,!0)[0],Q=A4(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 W=K.sub,$=this.binSearch(Q.coverage.glyphs,W);if($<0)$=-1-$,Q.coverage.glyphs.splice($,0,W),Q.alternateSets.splice($,0,0);Q.alternateSets[$]=K.by};r0.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 W=K.sub[0],$=K.sub.slice(1),w={ligGlyph:K.by,components:$},H=this.binSearch(Q.coverage.glyphs,W);if(H>=0){var z=Q.ligatureSets[H];for(var U=0;U<z.length;U++)if(bQ(z[U].components,$))return;z.push(w)}else H=-1-H,Q.coverage.glyphs.splice(H,0,W),Q.ligatureSets.splice(H,0,[w])};r0.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};r0.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 g5(J,K){if(!J)throw K}function $J(J,K){return J.getUint8(K)}function I8(J,K){return J.getUint16(K,!1)}function fQ(J,K){return J.getInt16(K,!1)}function G4(J,K){return J.getUint32(K,!1)}function lJ(J,K){var Y=J.getInt16(K,!1),X=J.getUint16(K+2,!1);return Y+X/65535}function mQ(J,K){var Y="";for(var X=K;X<K+4;X+=1)Y+=String.fromCharCode(J.getInt8(X));return Y}function cQ(J,K,Y){var X=0;for(var Z=0;Z<Y;Z+=1)X<<=8,X+=J.getUint8(K+Z);return X}function lQ(J,K,Y){var X=[];for(var Z=K;Z<Y;Z+=1)X.push(J.getUint8(Z));return X}function dQ(J){var K="";for(var Y=0;Y<J.length;Y+=1)K+=String.fromCharCode(J[Y]);return K}var uQ={byte:1,uShort:2,short:2,uLong:4,fixed:4,longDateTime:8,tag:4};function y(J,K){this.data=J,this.offset=K,this.relativeOffset=0}y.prototype.parseByte=function(){var J=this.data.getUint8(this.offset+this.relativeOffset);return this.relativeOffset+=1,J};y.prototype.parseChar=function(){var J=this.data.getInt8(this.offset+this.relativeOffset);return this.relativeOffset+=1,J};y.prototype.parseCard8=y.prototype.parseByte;y.prototype.parseUShort=function(){var J=this.data.getUint16(this.offset+this.relativeOffset);return this.relativeOffset+=2,J};y.prototype.parseCard16=y.prototype.parseUShort;y.prototype.parseSID=y.prototype.parseUShort;y.prototype.parseOffset16=y.prototype.parseUShort;y.prototype.parseShort=function(){var J=this.data.getInt16(this.offset+this.relativeOffset);return this.relativeOffset+=2,J};y.prototype.parseF2Dot14=function(){var J=this.data.getInt16(this.offset+this.relativeOffset)/16384;return this.relativeOffset+=2,J};y.prototype.parseULong=function(){var J=G4(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,J};y.prototype.parseOffset32=y.prototype.parseULong;y.prototype.parseFixed=function(){var J=lJ(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,J};y.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};y.prototype.parseTag=function(){return this.parseString(4)};y.prototype.parseLongDateTime=function(){var J=G4(this.data,this.offset+this.relativeOffset+4);return J-=2082844800,this.relativeOffset+=8,J};y.prototype.parseVersion=function(J){var K=I8(this.data,this.offset+this.relativeOffset),Y=I8(this.data,this.offset+this.relativeOffset+2);if(this.relativeOffset+=4,J===void 0)J=4096;return K+Y/J/10};y.prototype.skip=function(J,K){if(K===void 0)K=1;this.relativeOffset+=uQ[J]*K};y.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};y.prototype.parseOffset16List=y.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};y.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};y.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};y.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};y.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};y.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 W=0;W<X.length;W++){var $=X[W],w=K[$];Q[$]=w.call(this)}Y[Z]=Q}return Y};y.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 W=0;W<X.length;W++){var $=X[W],w=K[$];Q[$]=w.call(this)}Y[Z]=Q}return Y};y.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}};y.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};y.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};y.prototype.parsePointer=function(J){var K=this.parseOffset16();if(K>0)return new y(this.data,this.offset+K).parseStruct(J);return};y.prototype.parsePointer32=function(J){var K=this.parseOffset32();if(K>0)return new y(this.data,this.offset+K).parseStruct(J);return};y.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 W=K[Q];if(W===0){Z[Q]=void 0;continue}if(this.relativeOffset=W,J){var $=this.parseOffset16List(),w=Array($.length);for(var H=0;H<$.length;H++)this.relativeOffset=W+$[H],w[H]=J.call(this);Z[Q]=w}else Z[Q]=this.parseUShortList()}return this.relativeOffset=X,Z};y.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.")};y.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:y.uShort,end:y.uShort,classId:y.uShort})};throw Error("0x"+J.toString(16)+": ClassDef format must be 1 or 2.")};y.list=function(J,K){return function(){return this.parseList(J,K)}};y.list32=function(J,K){return function(){return this.parseList32(J,K)}};y.recordList=function(J,K){return function(){return this.parseRecordList(J,K)}};y.recordList32=function(J,K){return function(){return this.parseRecordList32(J,K)}};y.pointer=function(J){return function(){return this.parsePointer(J)}};y.pointer32=function(J){return function(){return this.parsePointer32(J)}};y.tag=y.prototype.parseTag;y.byte=y.prototype.parseByte;y.uShort=y.offset16=y.prototype.parseUShort;y.uShortList=y.prototype.parseUShortList;y.uLong=y.offset32=y.prototype.parseULong;y.uLongList=y.prototype.parseULongList;y.struct=y.prototype.parseStruct;y.coverage=y.prototype.parseCoverage;y.classDef=y.prototype.parseClassDef;var HJ={reserved:y.uShort,reqFeatureIndex:y.uShort,featureIndexes:y.uShortList};y.prototype.parseScriptList=function(){return this.parsePointer(y.recordList({tag:y.tag,script:y.pointer({defaultLangSys:y.pointer(HJ),langSysRecords:y.recordList({tag:y.tag,langSys:y.pointer(HJ)})})}))||[]};y.prototype.parseFeatureList=function(){return this.parsePointer(y.recordList({tag:y.tag,feature:y.pointer({featureParams:y.offset16,lookupListIndexes:y.uShortList})}))||[]};y.prototype.parseLookupList=function(J){return this.parsePointer(y.list(y.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(y.pointer(J[K])),markFilteringSet:X?this.parseUShort():void 0}})))||[]};y.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:y.offset32,featureTableSubstitutionOffset:y.offset32});return Y})||[]};var n={getByte:$J,getCard8:$J,getUShort:I8,getCard16:I8,getShort:fQ,getULong:G4,getFixed:lJ,getTag:mQ,getOffset:cQ,getBytes:lQ,bytesToString:dQ,Parser:y};function zJ(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 dJ(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 W=J.endPointIndices=[];for(var $=0;$<J.numberOfContours;$+=1)W.push(X.parseUShort());J.instructionLength=X.parseUShort(),J.instructions=[];for(var w=0;w<J.instructionLength;w+=1)J.instructions.push(X.parseByte());var H=W[W.length-1]+1;Z=[];for(var z=0;z<H;z+=1)if(Q=X.parseByte(),Z.push(Q),(Q&8)>0){var U=X.parseByte();for(var V=0;V<U;V+=1)Z.push(Q),z+=1}if(z0.argument(Z.length===H,"Bad flags."),W.length>0){var B=[],L;if(H>0){for(var A=0;A<H;A+=1)Q=Z[A],L={},L.onCurve=!!(Q&1),L.lastPointOfContour=W.indexOf(A)>=0,B.push(L);var M=0;for(var O=0;O<H;O+=1)Q=Z[O],L=B[O],L.x=zJ(X,Q,M,2,16),M=L.x;var N=0;for(var E=0;E<H;E+=1)Q=Z[E],L=B[E],L.y=zJ(X,Q,N,4,32),N=L.y}J.points=B}else J.points=[]}else if(J.numberOfContours===0)J.points=[];else{J.isComposite=!0,J.points=[],J.components=[];var D=!0;while(D){Z=X.parseUShort();var F={glyphIndex:X.parseUShort(),xScale:1,scale01:0,scale10:0,yScale:1,dx:0,dy:0};if((Z&1)>0)if((Z&2)>0)F.dx=X.parseShort(),F.dy=X.parseShort();else F.matchedPoints=[X.parseUShort(),X.parseUShort()];else if((Z&2)>0)F.dx=X.parseChar(),F.dy=X.parseChar();else F.matchedPoints=[X.parseByte(),X.parseByte()];if((Z&8)>0)F.xScale=F.yScale=X.parseF2Dot14();else if((Z&64)>0)F.xScale=X.parseF2Dot14(),F.yScale=X.parseF2Dot14();else if((Z&128)>0)F.xScale=X.parseF2Dot14(),F.scale01=X.parseF2Dot14(),F.scale10=X.parseF2Dot14(),F.yScale=X.parseF2Dot14();J.components.push(F),D=!!(Z&32)}if(Z&256){J.instructionLength=X.parseUShort(),J.instructions=[];for(var j=0;j<J.instructionLength;j+=1)J.instructions.push(X.parseByte())}}}function Z4(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 pQ(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 uJ(J){var K=new f0;if(!J)return K;var Y=pQ(J);for(var X=0;X<Y.length;++X){var Z=Y[X],Q=null,W=Z[Z.length-1],$=Z[0];if(W.onCurve)K.moveTo(W.x,W.y);else if($.onCurve)K.moveTo($.x,$.y);else{var w={x:(W.x+$.x)*0.5,y:(W.y+$.y)*0.5};K.moveTo(w.x,w.y)}for(var H=0;H<Z.length;++H)if(Q=W,W=$,$=Z[(H+1)%Z.length],W.onCurve)K.lineTo(W.x,W.y);else{var z=Q,U=$;if(!Q.onCurve)z={x:(W.x+Q.x)*0.5,y:(W.y+Q.y)*0.5};if(!$.onCurve)U={x:(W.x+$.x)*0.5,y:(W.y+$.y)*0.5};K.quadraticCurveTo(W.x,W.y,U.x,U.y)}K.closePath()}return K}function pJ(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=Z4(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 W=K.points[X.matchedPoints[0]],$=Z.points[X.matchedPoints[1]],w={xScale:X.xScale,scale01:X.scale01,scale10:X.scale10,yScale:X.yScale,dx:0,dy:0};$=Z4([$],w)[0],w.dx=W.x-$.x,w.dy=W.y-$.y,Q=Z4(Z.points,w)}K.points=K.points.concat(Q)}}return uJ(K.points)}function iQ(J,K,Y,X){var Z=new D1.GlyphSet(X);for(var Q=0;Q<Y.length-1;Q+=1){var W=Y[Q],$=Y[Q+1];if(W!==$)Z.push(Q,D1.ttfGlyphLoader(X,Q,dJ,J,K+W,pJ));else Z.push(Q,D1.glyphLoader(X,Q))}return Z}function nQ(J,K,Y,X){var Z=new D1.GlyphSet(X);return X._push=function(Q){var W=Y[Q],$=Y[Q+1];if(W!==$)Z.push(Q,D1.ttfGlyphLoader(X,Q,dJ,J,K+W,pJ));else Z.push(Q,D1.glyphLoader(X,Q))},Z}function rQ(J,K,Y,X,Z){if(Z.lowMemory)return nQ(J,K,Y,X);else return iQ(J,K,Y,X)}var iJ={getPath:uJ,parse:rQ},nJ,Q5,rJ,U4;function oJ(J){this.font=J,this.getCommands=function(K){return iJ.getPath(K).commands},this._fpgmState=this._prepState=void 0,this._errorState=0}function oQ(J){return J}function sJ(J){return Math.sign(J)*Math.round(Math.abs(J))}function sQ(J){return Math.sign(J)*Math.round(Math.abs(J*2))/2}function aQ(J){return Math.sign(J)*(Math.round(Math.abs(J)+0.5)-0.5)}function tQ(J){return Math.sign(J)*Math.ceil(Math.abs(J))}function eQ(J){return Math.sign(J)*Math.floor(Math.abs(J))}var aJ=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},_1={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,W,$,w,H,z;if(!X||X===this){if(Z=J.xo-K.xo,Q=J.xo-Y.xo,w=K.x-K.xo,H=Y.x-Y.xo,W=Math.abs(Z),$=Math.abs(Q),z=W+$,z===0){J.x=J.xo+(w+H)/2;return}J.x=J.xo+(w*$+H*W)/z;return}if(Z=X.distance(J,K,!0,!0),Q=X.distance(J,Y,!0,!0),w=X.distance(K,K,!1,!0),H=X.distance(Y,Y,!1,!0),W=Math.abs(Z),$=Math.abs(Q),z=W+$,z===0){_1.setRelative(J,J,(w+H)/2,X,!0);return}_1.setRelative(J,J,(w*$+H*W)/z,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,W=Z?K.yo:K.y,$=Q+Y*X.x,w=W+Y*X.y;J.x=$+(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}},P1={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,W,$,w,H,z;if(!X||X===this){if(Z=J.yo-K.yo,Q=J.yo-Y.yo,w=K.y-K.yo,H=Y.y-Y.yo,W=Math.abs(Z),$=Math.abs(Q),z=W+$,z===0){J.y=J.yo+(w+H)/2;return}J.y=J.yo+(w*$+H*W)/z;return}if(Z=X.distance(J,K,!0,!0),Q=X.distance(J,Y,!0,!0),w=X.distance(K,K,!1,!0),H=X.distance(Y,Y,!1,!0),W=Math.abs(Z),$=Math.abs(Q),z=W+$,z===0){P1.setRelative(J,J,(w+H)/2,X,!0);return}P1.setRelative(J,J,(w*$+H*W)/z,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,W=Z?K.yo:K.y,$=Q+Y*X.x,w=W+Y*X.y;J.y=w+X.normalSlope*(J.x-$)},slope:Number.POSITIVE_INFINITY,touch:function(J){J.yTouched=!0},touched:function(J){return J.yTouched},untouch:function(J){J.yTouched=!1}};Object.freeze(_1);Object.freeze(P1);function d5(J,K){this.x=J,this.y=K,this.axis=void 0,this.slope=K/J,this.normalSlope=-J/K,Object.freeze(this)}d5.prototype.distance=function(J,K,Y,X){return this.x*_1.distance(J,K,Y,X)+this.y*P1.distance(J,K,Y,X)};d5.prototype.interpolate=function(J,K,Y,X){var Z,Q,W,$,w,H,z;if(W=X.distance(J,K,!0,!0),$=X.distance(J,Y,!0,!0),Z=X.distance(K,K,!1,!0),Q=X.distance(Y,Y,!1,!0),w=Math.abs(W),H=Math.abs($),z=w+H,z===0){this.setRelative(J,J,(Z+Q)/2,X,!0);return}this.setRelative(J,J,(Z*H+Q*w)/z,X,!0)};d5.prototype.setRelative=function(J,K,Y,X,Z){X=X||this;var Q=Z?K.xo:K.x,W=Z?K.yo:K.y,$=Q+Y*X.x,w=W+Y*X.y,H=X.normalSlope,z=this.slope,U=J.x,V=J.y;J.x=(z*U-H*$+w-V)/(z-H),J.y=z*(J.x-U)+V};d5.prototype.touch=function(J){J.xTouched=!0,J.yTouched=!0};function u5(J,K){var Y=Math.sqrt(J*J+K*K);if(J/=Y,K/=Y,J===1&&K===0)return _1;else if(J===0&&K===1)return P1;else return new d5(J,K)}function S1(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)}S1.prototype.nextTouched=function(J){var K=this.nextPointOnContour;while(!J.touched(K)&&K!==this)K=K.nextPointOnContour;return K};S1.prototype.prevTouched=function(J){var K=this.prevPointOnContour;while(!J.touched(K)&&K!==this)K=K.prevPointOnContour;return K};var f5=Object.freeze(new S1(0,0)),JW={cvCutIn:1.0625,deltaBase:9,deltaShift:0.125,loop:1,minDis:1,autoFlip:!0};function p1(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=_1,this.round=sJ}}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(p1.prototype=JW,Z=this._fpgmState=new p1("fpgm",Y.tables.fpgm),Z.funcs=[],Z.font=Y,QB.DEBUG)console.log("---EXEC FPGM---"),Z.step=-1;try{Q5(Z)}catch(H){console.log("Hinting error in FPGM:"+H),this._errorState=3;return}}p1.prototype=Z,X=this._prepState=new p1("prep",Y.tables.prep),X.ppem=K;var Q=Y.tables.cvt;if(Q){var W=X.cvt=Array(Q.length),$=K/Y.unitsPerEm;for(var w=0;w<Q.length;w++)W[w]=Q[w]*$}else X.cvt=[];if(QB.DEBUG)console.log("---EXEC PREP---"),X.step=-1;try{Q5(X)}catch(H){if(this._errorState<2)console.log("Hinting error in PREP:"+H);this._errorState=2}}if(this._errorState>1)return;try{return rJ(J,X)}catch(H){if(this._errorState<1)console.log("Hinting error:"+H),console.log("Note: further hinting errors are silenced");this._errorState=1;return}};rJ=function(J,K){var Y=K.ppem/K.font.unitsPerEm,X=Y,Z=J.components,Q,W,$;if(p1.prototype=K,!Z){if($=new p1("glyf",J.instructions),QB.DEBUG)console.log("---EXEC GLYPH---"),$.step=-1;U4(J,$,Y,X),W=$.gZone}else{var w=K.font;W=[],Q=[];for(var H=0;H<Z.length;H++){var z=Z[H],U=w.glyphs.get(z.glyphIndex);if($=new p1("glyf",U.instructions),QB.DEBUG)console.log("---EXEC COMP "+H+"---"),$.step=-1;U4(U,$,Y,X);var V=Math.round(z.dx*Y),B=Math.round(z.dy*X),L=$.gZone,A=$.contours;for(var M=0;M<L.length;M++){var O=L[M];O.xTouched=O.yTouched=!1,O.xo=O.x=O.x+V,O.yo=O.y=O.y+B}var N=W.length;W.push.apply(W,L);for(var E=0;E<A.length;E++)Q.push(A[E]+N)}if(J.instructions&&!$.inhibitGridFit){if($=new p1("glyf",J.instructions),$.gZone=$.z0=$.z1=$.z2=W,$.contours=Q,W.push(new S1(0,0),new S1(Math.round(J.advanceWidth*Y),0)),QB.DEBUG)console.log("---EXEC COMPOSITE---"),$.step=-1;Q5($),W.length-=2}}return W};U4=function(J,K,Y,X){var Z=J.points||[],Q=Z.length,W=K.gZone=K.z0=K.z1=K.z2=[],$=K.contours=[],w;for(var H=0;H<Q;H++)w=Z[H],W[H]=new S1(w.x*Y,w.y*X,w.lastPointOfContour,w.onCurve);var z,U;for(var V=0;V<Q;V++){if(w=W[V],!z)z=w,$.push(V);if(w.lastPointOfContour)w.nextPointOnContour=z,z.prevPointOnContour=w,z=void 0;else U=W[V+1],w.nextPointOnContour=U,U.prevPointOnContour=w}if(K.inhibitGridFit)return;if(QB.DEBUG){console.log("PROCESSING GLYPH",K.stack);for(var B=0;B<Q;B++)console.log(B,W[B].x,W[B].y)}if(W.push(new S1(0,0),new S1(Math.round(J.advanceWidth*Y),0)),Q5(K),W.length-=2,QB.DEBUG){console.log("FINISHED GLYPH",K.stack);for(var L=0;L<Q;L++)console.log(L,W[L].x,W[L].y)}};Q5=function(J){var K=J.prog;if(!K)return;var Y=K.length,X;for(J.ip=0;J.ip<Y;J.ip++){if(QB.DEBUG)J.step++;if(X=nJ[K[J.ip]],!X)throw Error("unknown instruction: 0x"+Number(K[J.ip]).toString(16));X(J)}};function R8(J){var K=J.tZone=Array(J.gZone.length);for(var Y=0;Y<K.length;Y++)K[Y]=new S1(0,0)}function tJ(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 UJ(J,K){if(QB.DEBUG)console.log(K.step,"SVTCA["+J.axis+"]");K.fv=K.pv=K.dpv=J}function VJ(J,K){if(QB.DEBUG)console.log(K.step,"SPVTCA["+J.axis+"]");K.pv=K.dpv=J}function BJ(J,K){if(QB.DEBUG)console.log(K.step,"SFVTCA["+J.axis+"]");K.fv=J}function AJ(J,K){var Y=K.stack,X=Y.pop(),Z=Y.pop(),Q=K.z2[X],W=K.z1[Z];if(QB.DEBUG)console.log("SPVTL["+J+"]",X,Z);var $,w;if(!J)$=W.x-Q.x,w=W.y-Q.y;else $=Q.y-W.y,w=W.x-Q.x;K.pv=K.dpv=u5($,w)}function GJ(J,K){var Y=K.stack,X=Y.pop(),Z=Y.pop(),Q=K.z2[X],W=K.z1[Z];if(QB.DEBUG)console.log("SFVTL["+J+"]",X,Z);var $,w;if(!J)$=W.x-Q.x,w=W.y-Q.y;else $=Q.y-W.y,w=W.x-Q.x;K.fv=u5($,w)}function KW(J){var K=J.stack,Y=K.pop(),X=K.pop();if(QB.DEBUG)console.log(J.step,"SPVFS[]",Y,X);J.pv=J.dpv=u5(X,Y)}function YW(J){var K=J.stack,Y=K.pop(),X=K.pop();if(QB.DEBUG)console.log(J.step,"SPVFS[]",Y,X);J.fv=u5(X,Y)}function XW(J){var{stack:K,pv:Y}=J;if(QB.DEBUG)console.log(J.step,"GPV[]");K.push(Y.x*16384),K.push(Y.y*16384)}function ZW(J){var{stack:K,fv:Y}=J;if(QB.DEBUG)console.log(J.step,"GFV[]");K.push(Y.x*16384),K.push(Y.y*16384)}function QW(J){if(J.fv=J.pv,QB.DEBUG)console.log(J.step,"SFVTPV[]")}function WW(J){var K=J.stack,Y=K.pop(),X=K.pop(),Z=K.pop(),Q=K.pop(),W=K.pop(),$=J.z0,w=J.z1,H=$[Y],z=$[X],U=w[Z],V=w[Q],B=J.z2[W];if(QB.DEBUG)console.log("ISECT[], ",Y,X,Z,Q,W);var{x:L,y:A}=H,M=z.x,O=z.y,N=U.x,E=U.y,D=V.x,F=V.y,j=(L-M)*(E-F)-(A-O)*(N-D),R=L*O-A*M,I=N*F-E*D;B.x=(R*(N-D)-I*(L-M))/j,B.y=(R*(E-F)-I*(A-O))/j}function wW(J){if(J.rp0=J.stack.pop(),QB.DEBUG)console.log(J.step,"SRP0[]",J.rp0)}function $W(J){if(J.rp1=J.stack.pop(),QB.DEBUG)console.log(J.step,"SRP1[]",J.rp1)}function HW(J){if(J.rp2=J.stack.pop(),QB.DEBUG)console.log(J.step,"SRP2[]",J.rp2)}function zW(J){var K=J.stack.pop();if(QB.DEBUG)console.log(J.step,"SZP0[]",K);switch(J.zp0=K,K){case 0:if(!J.tZone)R8(J);J.z0=J.tZone;break;case 1:J.z0=J.gZone;break;default:throw Error("Invalid zone pointer")}}function UW(J){var K=J.stack.pop();if(QB.DEBUG)console.log(J.step,"SZP1[]",K);switch(J.zp1=K,K){case 0:if(!J.tZone)R8(J);J.z1=J.tZone;break;case 1:J.z1=J.gZone;break;default:throw Error("Invalid zone pointer")}}function VW(J){var K=J.stack.pop();if(QB.DEBUG)console.log(J.step,"SZP2[]",K);switch(J.zp2=K,K){case 0:if(!J.tZone)R8(J);J.z2=J.tZone;break;case 1:J.z2=J.gZone;break;default:throw Error("Invalid zone pointer")}}function BW(J){var K=J.stack.pop();if(QB.DEBUG)console.log(J.step,"SZPS[]",K);switch(J.zp0=J.zp1=J.zp2=K,K){case 0:if(!J.tZone)R8(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 AW(J){if(J.loop=J.stack.pop(),QB.DEBUG)console.log(J.step,"SLOOP[]",J.loop)}function GW(J){if(QB.DEBUG)console.log(J.step,"RTG[]");J.round=sJ}function MW(J){if(QB.DEBUG)console.log(J.step,"RTHG[]");J.round=aQ}function LW(J){var K=J.stack.pop();if(QB.DEBUG)console.log(J.step,"SMD[]",K);J.minDis=K/64}function qW(J){if(QB.DEBUG)console.log(J.step,"ELSE[]");tJ(J,!1)}function OW(J){var K=J.stack.pop();if(QB.DEBUG)console.log(J.step,"JMPR[]",K);J.ip+=K-1}function NW(J){var K=J.stack.pop();if(QB.DEBUG)console.log(J.step,"SCVTCI[]",K);J.cvCutIn=K/64}function jW(J){var K=J.stack;if(QB.DEBUG)console.log(J.step,"DUP[]");K.push(K[K.length-1])}function Q4(J){if(QB.DEBUG)console.log(J.step,"POP[]");J.stack.pop()}function EW(J){if(QB.DEBUG)console.log(J.step,"CLEAR[]");J.stack.length=0}function FW(J){var K=J.stack,Y=K.pop(),X=K.pop();if(QB.DEBUG)console.log(J.step,"SWAP[]");K.push(Y),K.push(X)}function _W(J){var K=J.stack;if(QB.DEBUG)console.log(J.step,"DEPTH[]");K.push(K.length)}function DW(J){var K=J.stack,Y=K.pop(),X=K.pop();if(QB.DEBUG)console.log(J.step,"LOOPCALL[]",Y,X);var{ip:Z,prog:Q}=J;J.prog=J.funcs[Y];for(var W=0;W<X;W++)if(Q5(J),QB.DEBUG)console.log(++J.step,W+1<X?"next loopcall":"done loopcall",W);J.ip=Z,J.prog=Q}function IW(J){var K=J.stack.pop();if(QB.DEBUG)console.log(J.step,"CALL[]",K);var{ip:Y,prog:X}=J;if(J.prog=J.funcs[K],Q5(J),J.ip=Y,J.prog=X,QB.DEBUG)console.log(++J.step,"returning from",K)}function RW(J){var K=J.stack,Y=K.pop();if(QB.DEBUG)console.log(J.step,"CINDEX[]",Y);K.push(K[K.length-Y])}function TW(J){var K=J.stack,Y=K.pop();if(QB.DEBUG)console.log(J.step,"MINDEX[]",Y);K.push(K.splice(K.length-Y,1)[0])}function CW(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(QB.DEBUG)console.log(J.step,"FDEF[]",Z);while(Y[++X]!==45);J.ip=X,J.funcs[Z]=Y.slice(Q+1,X)}function MJ(J,K){var Y=K.stack.pop(),X=K.z0[Y],Z=K.fv,Q=K.pv;if(QB.DEBUG)console.log(K.step,"MDAP["+J+"]",Y);var W=Q.distance(X,f5);if(J)W=K.round(W);Z.setRelative(X,f5,W,Q),Z.touch(X),K.rp0=K.rp1=Y}function LJ(J,K){var Y=K.z2,X=Y.length-2,Z,Q,W;if(QB.DEBUG)console.log(K.step,"IUP["+J.axis+"]");for(var $=0;$<X;$++){if(Z=Y[$],J.touched(Z))continue;if(Q=Z.prevTouched(J),Q===Z)continue;if(W=Z.nextTouched(J),Q===W)J.setRelative(Z,Z,J.distance(Q,Q,!1,!0),J,!0);J.interpolate(Z,Q,W,J)}}function qJ(J,K){var Y=K.stack,X=J?K.rp1:K.rp2,Z=(J?K.z0:K.z1)[X],Q=K.fv,W=K.pv,$=K.loop,w=K.z2;while($--){var H=Y.pop(),z=w[H],U=W.distance(Z,Z,!1,!0);if(Q.setRelative(z,z,U,W),Q.touch(z),QB.DEBUG)console.log(K.step,(K.loop>1?"loop "+(K.loop-$)+": ":"")+"SHP["+(J?"rp1":"rp2")+"]",H)}K.loop=1}function OJ(J,K){var Y=K.stack,X=J?K.rp1:K.rp2,Z=(J?K.z0:K.z1)[X],Q=K.fv,W=K.pv,$=Y.pop(),w=K.z2[K.contours[$]],H=w;if(QB.DEBUG)console.log(K.step,"SHC["+J+"]",$);var z=W.distance(Z,Z,!1,!0);do{if(H!==Z)Q.setRelative(H,H,z,W);H=H.nextPointOnContour}while(H!==w)}function NJ(J,K){var Y=K.stack,X=J?K.rp1:K.rp2,Z=(J?K.z0:K.z1)[X],Q=K.fv,W=K.pv,$=Y.pop();if(QB.DEBUG)console.log(K.step,"SHZ["+J+"]",$);var w;switch($){case 0:w=K.tZone;break;case 1:w=K.gZone;break;default:throw Error("Invalid zone")}var H,z=W.distance(Z,Z,!1,!0),U=w.length-2;for(var V=0;V<U;V++)H=w[V],Q.setRelative(H,H,z,W)}function PW(J){var{stack:K,loop:Y,fv:X}=J,Z=K.pop()/64,Q=J.z2;while(Y--){var W=K.pop(),$=Q[W];if(QB.DEBUG)console.log(J.step,(J.loop>1?"loop "+(J.loop-Y)+": ":"")+"SHPIX[]",W,Z);X.setRelative($,$,Z),X.touch($)}J.loop=1}function SW(J){var{stack:K,rp1:Y,rp2:X,loop:Z}=J,Q=J.z0[Y],W=J.z1[X],$=J.fv,w=J.dpv,H=J.z2;while(Z--){var z=K.pop(),U=H[z];if(QB.DEBUG)console.log(J.step,(J.loop>1?"loop "+(J.loop-Z)+": ":"")+"IP[]",z,Y,"<->",X);$.interpolate(U,Q,W,w),$.touch(U)}J.loop=1}function jJ(J,K){var Y=K.stack,X=Y.pop()/64,Z=Y.pop(),Q=K.z1[Z],W=K.z0[K.rp0],$=K.fv,w=K.pv;if($.setRelative(Q,W,X,w),$.touch(Q),QB.DEBUG)console.log(K.step,"MSIRP["+J+"]",X,Z);if(K.rp1=K.rp0,K.rp2=Z,J)K.rp0=Z}function vW(J){var{stack:K,rp0:Y}=J,X=J.z0[Y],Z=J.loop,Q=J.fv,W=J.pv,$=J.z1;while(Z--){var w=K.pop(),H=$[w];if(QB.DEBUG)console.log(J.step,(J.loop>1?"loop "+(J.loop-Z)+": ":"")+"ALIGNRP[]",w);Q.setRelative(H,X,0,W),Q.touch(H)}J.loop=1}function yW(J){if(QB.DEBUG)console.log(J.step,"RTDG[]");J.round=sQ}function EJ(J,K){var Y=K.stack,X=Y.pop(),Z=Y.pop(),Q=K.z0[Z],W=K.fv,$=K.pv,w=K.cvt[X];if(QB.DEBUG)console.log(K.step,"MIAP["+J+"]",X,"(",w,")",Z);var H=$.distance(Q,f5);if(J){if(Math.abs(H-w)<K.cvCutIn)H=w;H=K.round(H)}if(W.setRelative(Q,f5,H,$),K.zp0===0)Q.xo=Q.x,Q.yo=Q.y;W.touch(Q),K.rp0=K.rp1=Z}function kW(J){var{prog:K,ip:Y,stack:X}=J,Z=K[++Y];if(QB.DEBUG)console.log(J.step,"NPUSHB[]",Z);for(var Q=0;Q<Z;Q++)X.push(K[++Y]);J.ip=Y}function hW(J){var{ip:K,prog:Y,stack:X}=J,Z=Y[++K];if(QB.DEBUG)console.log(J.step,"NPUSHW[]",Z);for(var Q=0;Q<Z;Q++){var W=Y[++K]<<8|Y[++K];if(W&32768)W=-((W^65535)+1);X.push(W)}J.ip=K}function gW(J){var{stack:K,store:Y}=J;if(!Y)Y=J.store=[];var X=K.pop(),Z=K.pop();if(QB.DEBUG)console.log(J.step,"WS",X,Z);Y[Z]=X}function xW(J){var{stack:K,store:Y}=J,X=K.pop();if(QB.DEBUG)console.log(J.step,"RS",X);var Z=Y&&Y[X]||0;K.push(Z)}function bW(J){var K=J.stack,Y=K.pop(),X=K.pop();if(QB.DEBUG)console.log(J.step,"WCVTP",Y,X);J.cvt[X]=Y/64}function fW(J){var K=J.stack,Y=K.pop();if(QB.DEBUG)console.log(J.step,"RCVT",Y);K.push(J.cvt[Y]*64)}function FJ(J,K){var Y=K.stack,X=Y.pop(),Z=K.z2[X];if(QB.DEBUG)console.log(K.step,"GC["+J+"]",X);Y.push(K.dpv.distance(Z,f5,J,!1)*64)}function _J(J,K){var Y=K.stack,X=Y.pop(),Z=Y.pop(),Q=K.z1[X],W=K.z0[Z],$=K.dpv.distance(W,Q,J,J);if(QB.DEBUG)console.log(K.step,"MD["+J+"]",X,Z,"->",$);K.stack.push(Math.round($*64))}function mW(J){if(QB.DEBUG)console.log(J.step,"MPPEM[]");J.stack.push(J.ppem)}function cW(J){if(QB.DEBUG)console.log(J.step,"FLIPON[]");J.autoFlip=!0}function lW(J){var K=J.stack,Y=K.pop(),X=K.pop();if(QB.DEBUG)console.log(J.step,"LT[]",Y,X);K.push(X<Y?1:0)}function dW(J){var K=J.stack,Y=K.pop(),X=K.pop();if(QB.DEBUG)console.log(J.step,"LTEQ[]",Y,X);K.push(X<=Y?1:0)}function uW(J){var K=J.stack,Y=K.pop(),X=K.pop();if(QB.DEBUG)console.log(J.step,"GT[]",Y,X);K.push(X>Y?1:0)}function pW(J){var K=J.stack,Y=K.pop(),X=K.pop();if(QB.DEBUG)console.log(J.step,"GTEQ[]",Y,X);K.push(X>=Y?1:0)}function iW(J){var K=J.stack,Y=K.pop(),X=K.pop();if(QB.DEBUG)console.log(J.step,"EQ[]",Y,X);K.push(Y===X?1:0)}function nW(J){var K=J.stack,Y=K.pop(),X=K.pop();if(QB.DEBUG)console.log(J.step,"NEQ[]",Y,X);K.push(Y!==X?1:0)}function rW(J){var K=J.stack,Y=K.pop();if(QB.DEBUG)console.log(J.step,"ODD[]",Y);K.push(Math.trunc(Y)%2?1:0)}function oW(J){var K=J.stack,Y=K.pop();if(QB.DEBUG)console.log(J.step,"EVEN[]",Y);K.push(Math.trunc(Y)%2?0:1)}function sW(J){var K=J.stack.pop();if(QB.DEBUG)console.log(J.step,"IF[]",K);if(!K){if(tJ(J,!0),QB.DEBUG)console.log(J.step,"EIF[]")}}function aW(J){if(QB.DEBUG)console.log(J.step,"EIF[]")}function tW(J){var K=J.stack,Y=K.pop(),X=K.pop();if(QB.DEBUG)console.log(J.step,"AND[]",Y,X);K.push(Y&&X?1:0)}function eW(J){var K=J.stack,Y=K.pop(),X=K.pop();if(QB.DEBUG)console.log(J.step,"OR[]",Y,X);K.push(Y||X?1:0)}function Jw(J){var K=J.stack,Y=K.pop();if(QB.DEBUG)console.log(J.step,"NOT[]",Y);K.push(Y?0:1)}function W4(J,K){var Y=K.stack,X=Y.pop(),Z=K.fv,Q=K.pv,W=K.ppem,$=K.deltaBase+(J-1)*16,w=K.deltaShift,H=K.z0;if(QB.DEBUG)console.log(K.step,"DELTAP["+J+"]",X,Y);for(var z=0;z<X;z++){var U=Y.pop(),V=Y.pop(),B=$+((V&240)>>4);if(B!==W)continue;var L=(V&15)-8;if(L>=0)L++;if(QB.DEBUG)console.log(K.step,"DELTAPFIX",U,"by",L*w);var A=H[U];Z.setRelative(A,A,L*w,Q)}}function Kw(J){var K=J.stack,Y=K.pop();if(QB.DEBUG)console.log(J.step,"SDB[]",Y);J.deltaBase=Y}function Yw(J){var K=J.stack,Y=K.pop();if(QB.DEBUG)console.log(J.step,"SDS[]",Y);J.deltaShift=Math.pow(0.5,Y)}function Xw(J){var K=J.stack,Y=K.pop(),X=K.pop();if(QB.DEBUG)console.log(J.step,"ADD[]",Y,X);K.push(X+Y)}function Zw(J){var K=J.stack,Y=K.pop(),X=K.pop();if(QB.DEBUG)console.log(J.step,"SUB[]",Y,X);K.push(X-Y)}function Qw(J){var K=J.stack,Y=K.pop(),X=K.pop();if(QB.DEBUG)console.log(J.step,"DIV[]",Y,X);K.push(X*64/Y)}function Ww(J){var K=J.stack,Y=K.pop(),X=K.pop();if(QB.DEBUG)console.log(J.step,"MUL[]",Y,X);K.push(X*Y/64)}function ww(J){var K=J.stack,Y=K.pop();if(QB.DEBUG)console.log(J.step,"ABS[]",Y);K.push(Math.abs(Y))}function $w(J){var K=J.stack,Y=K.pop();if(QB.DEBUG)console.log(J.step,"NEG[]",Y);K.push(-Y)}function Hw(J){var K=J.stack,Y=K.pop();if(QB.DEBUG)console.log(J.step,"FLOOR[]",Y);K.push(Math.floor(Y/64)*64)}function zw(J){var K=J.stack,Y=K.pop();if(QB.DEBUG)console.log(J.step,"CEILING[]",Y);K.push(Math.ceil(Y/64)*64)}function F8(J,K){var Y=K.stack,X=Y.pop();if(QB.DEBUG)console.log(K.step,"ROUND[]");Y.push(K.round(X/64)*64)}function Uw(J){var K=J.stack,Y=K.pop(),X=K.pop();if(QB.DEBUG)console.log(J.step,"WCVTF[]",Y,X);J.cvt[X]=Y*J.ppem/J.font.unitsPerEm}function w4(J,K){var Y=K.stack,X=Y.pop(),Z=K.ppem,Q=K.deltaBase+(J-1)*16,W=K.deltaShift;if(QB.DEBUG)console.log(K.step,"DELTAC["+J+"]",X,Y);for(var $=0;$<X;$++){var w=Y.pop(),H=Y.pop(),z=Q+((H&240)>>4);if(z!==Z)continue;var U=(H&15)-8;if(U>=0)U++;var V=U*W;if(QB.DEBUG)console.log(K.step,"DELTACFIX",w,"by",V);K.cvt[w]+=V}}function Vw(J){var K=J.stack.pop();if(QB.DEBUG)console.log(J.step,"SROUND[]",K);J.round=aJ;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 Bw(J){var K=J.stack.pop();if(QB.DEBUG)console.log(J.step,"S45ROUND[]",K);J.round=aJ;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 Aw(J){if(QB.DEBUG)console.log(J.step,"ROFF[]");J.round=oQ}function Gw(J){if(QB.DEBUG)console.log(J.step,"RUTG[]");J.round=tQ}function Mw(J){if(QB.DEBUG)console.log(J.step,"RDTG[]");J.round=eQ}function Lw(J){var K=J.stack.pop();if(QB.DEBUG)console.log(J.step,"SCANCTRL[]",K)}function DJ(J,K){var Y=K.stack,X=Y.pop(),Z=Y.pop(),Q=K.z2[X],W=K.z1[Z];if(QB.DEBUG)console.log(K.step,"SDPVTL["+J+"]",X,Z);var $,w;if(!J)$=W.x-Q.x,w=W.y-Q.y;else $=Q.y-W.y,w=W.x-Q.x;K.dpv=u5($,w)}function qw(J){var K=J.stack,Y=K.pop(),X=0;if(QB.DEBUG)console.log(J.step,"GETINFO[]",Y);if(Y&1)X=35;if(Y&32)X|=4096;K.push(X)}function Ow(J){var K=J.stack,Y=K.pop(),X=K.pop(),Z=K.pop();if(QB.DEBUG)console.log(J.step,"ROLL[]");K.push(X),K.push(Y),K.push(Z)}function Nw(J){var K=J.stack,Y=K.pop(),X=K.pop();if(QB.DEBUG)console.log(J.step,"MAX[]",Y,X);K.push(Math.max(X,Y))}function jw(J){var K=J.stack,Y=K.pop(),X=K.pop();if(QB.DEBUG)console.log(J.step,"MIN[]",Y,X);K.push(Math.min(X,Y))}function Ew(J){var K=J.stack.pop();if(QB.DEBUG)console.log(J.step,"SCANTYPE[]",K)}function Fw(J){var K=J.stack.pop(),Y=J.stack.pop();if(QB.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 c1(J,K){var{stack:Y,prog:X,ip:Z}=K;if(QB.DEBUG)console.log(K.step,"PUSHB["+J+"]");for(var Q=0;Q<J;Q++)Y.push(X[++Z]);K.ip=Z}function l1(J,K){var{ip:Y,prog:X,stack:Z}=K;if(QB.DEBUG)console.log(K.ip,"PUSHW["+J+"]");for(var Q=0;Q<J;Q++){var W=X[++Y]<<8|X[++Y];if(W&32768)W=-((W^65535)+1);Z.push(W)}K.ip=Y}function i(J,K,Y,X,Z,Q){var W=Q.stack,$=J&&W.pop(),w=W.pop(),H=Q.rp0,z=Q.z0[H],U=Q.z1[w],V=Q.minDis,B=Q.fv,L=Q.dpv,A,M,O,N;if(M=A=L.distance(U,z,!0,!0),O=M>=0?1:-1,M=Math.abs(M),J){if(N=Q.cvt[$],X&&Math.abs(M-N)<Q.cvCutIn)M=N}if(Y&&M<V)M=V;if(X)M=Q.round(M);if(B.setRelative(U,z,O*M,L),B.touch(U),QB.DEBUG)console.log(Q.step,(J?"MIRP[":"MDRP[")+(K?"M":"m")+(Y?">":"_")+(X?"R":"_")+(Z===0?"Gr":Z===1?"Bl":Z===2?"Wh":"")+"]",J?$+"("+Q.cvt[$]+","+N+")":"",w,"(d =",A,"->",O*M,")");if(Q.rp1=Q.rp0,Q.rp2=w,K)Q.rp0=w}nJ=[UJ.bind(void 0,P1),UJ.bind(void 0,_1),VJ.bind(void 0,P1),VJ.bind(void 0,_1),BJ.bind(void 0,P1),BJ.bind(void 0,_1),AJ.bind(void 0,0),AJ.bind(void 0,1),GJ.bind(void 0,0),GJ.bind(void 0,1),KW,YW,XW,ZW,QW,WW,wW,$W,HW,zW,UW,VW,BW,AW,GW,MW,LW,qW,OW,NW,void 0,void 0,jW,Q4,EW,FW,_W,RW,TW,void 0,void 0,void 0,DW,IW,CW,void 0,MJ.bind(void 0,0),MJ.bind(void 0,1),LJ.bind(void 0,P1),LJ.bind(void 0,_1),qJ.bind(void 0,0),qJ.bind(void 0,1),OJ.bind(void 0,0),OJ.bind(void 0,1),NJ.bind(void 0,0),NJ.bind(void 0,1),PW,SW,jJ.bind(void 0,0),jJ.bind(void 0,1),vW,yW,EJ.bind(void 0,0),EJ.bind(void 0,1),kW,hW,gW,xW,bW,fW,FJ.bind(void 0,0),FJ.bind(void 0,1),void 0,_J.bind(void 0,0),_J.bind(void 0,1),mW,void 0,cW,void 0,void 0,lW,dW,uW,pW,iW,nW,rW,oW,sW,aW,tW,eW,Jw,W4.bind(void 0,1),Kw,Yw,Xw,Zw,Qw,Ww,ww,$w,Hw,zw,F8.bind(void 0,0),F8.bind(void 0,1),F8.bind(void 0,2),F8.bind(void 0,3),void 0,void 0,void 0,void 0,Uw,W4.bind(void 0,2),W4.bind(void 0,3),w4.bind(void 0,1),w4.bind(void 0,2),w4.bind(void 0,3),Vw,Bw,void 0,void 0,Aw,void 0,Gw,Mw,Q4,Q4,void 0,void 0,void 0,void 0,void 0,Lw,DJ.bind(void 0,0),DJ.bind(void 0,1),qw,void 0,Ow,Nw,jw,Ew,Fw,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,c1.bind(void 0,1),c1.bind(void 0,2),c1.bind(void 0,3),c1.bind(void 0,4),c1.bind(void 0,5),c1.bind(void 0,6),c1.bind(void 0,7),c1.bind(void 0,8),l1.bind(void 0,1),l1.bind(void 0,2),l1.bind(void 0,3),l1.bind(void 0,4),l1.bind(void 0,5),l1.bind(void 0,6),l1.bind(void 0,7),l1.bind(void 0,8),i.bind(void 0,0,0,0,0,0),i.bind(void 0,0,0,0,0,1),i.bind(void 0,0,0,0,0,2),i.bind(void 0,0,0,0,0,3),i.bind(void 0,0,0,0,1,0),i.bind(void 0,0,0,0,1,1),i.bind(void 0,0,0,0,1,2),i.bind(void 0,0,0,0,1,3),i.bind(void 0,0,0,1,0,0),i.bind(void 0,0,0,1,0,1),i.bind(void 0,0,0,1,0,2),i.bind(void 0,0,0,1,0,3),i.bind(void 0,0,0,1,1,0),i.bind(void 0,0,0,1,1,1),i.bind(void 0,0,0,1,1,2),i.bind(void 0,0,0,1,1,3),i.bind(void 0,0,1,0,0,0),i.bind(void 0,0,1,0,0,1),i.bind(void 0,0,1,0,0,2),i.bind(void 0,0,1,0,0,3),i.bind(void 0,0,1,0,1,0),i.bind(void 0,0,1,0,1,1),i.bind(void 0,0,1,0,1,2),i.bind(void 0,0,1,0,1,3),i.bind(void 0,0,1,1,0,0),i.bind(void 0,0,1,1,0,1),i.bind(void 0,0,1,1,0,2),i.bind(void 0,0,1,1,0,3),i.bind(void 0,0,1,1,1,0),i.bind(void 0,0,1,1,1,1),i.bind(void 0,0,1,1,1,2),i.bind(void 0,0,1,1,1,3),i.bind(void 0,1,0,0,0,0),i.bind(void 0,1,0,0,0,1),i.bind(void 0,1,0,0,0,2),i.bind(void 0,1,0,0,0,3),i.bind(void 0,1,0,0,1,0),i.bind(void 0,1,0,0,1,1),i.bind(void 0,1,0,0,1,2),i.bind(void 0,1,0,0,1,3),i.bind(void 0,1,0,1,0,0),i.bind(void 0,1,0,1,0,1),i.bind(void 0,1,0,1,0,2),i.bind(void 0,1,0,1,0,3),i.bind(void 0,1,0,1,1,0),i.bind(void 0,1,0,1,1,1),i.bind(void 0,1,0,1,1,2),i.bind(void 0,1,0,1,1,3),i.bind(void 0,1,1,0,0,0),i.bind(void 0,1,1,0,0,1),i.bind(void 0,1,1,0,0,2),i.bind(void 0,1,1,0,0,3),i.bind(void 0,1,1,0,1,0),i.bind(void 0,1,1,0,1,1),i.bind(void 0,1,1,0,1,2),i.bind(void 0,1,1,0,1,3),i.bind(void 0,1,1,1,0,0),i.bind(void 0,1,1,1,0,1),i.bind(void 0,1,1,1,0,2),i.bind(void 0,1,1,1,0,3),i.bind(void 0,1,1,1,1,0),i.bind(void 0,1,1,1,1,1),i.bind(void 0,1,1,1,1,2),i.bind(void 0,1,1,1,1,3)];function _5(J){this.char=J,this.state={},this.activeState=null}function M4(J,K,Y){this.contextName=Y,this.startIndex=J,this.endOffset=K}function _w(J,K,Y){this.contextName=J,this.openRange=null,this.ranges=[],this.checkStart=K,this.checkEnd=Y}function z1(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 T8(J){this.eventId=J,this.subscribers=[]}function Dw(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 T8(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=[],Dw.call(this,J)}_5.prototype.setState=function(J,K){return this.state[J]=K,this.activeState={key:J,value:this.state[J]},this.activeState};_5.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(W){return W instanceof _5});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 _5){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 _5});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],W=K===null||K.apply(this,Q)===!0,$=[X,Z];if(W){var w=Y.apply(this,$);X.setState(J,w)}}),this.registeredModifiers.push(J)};T8.prototype.subscribe=function(J){if(typeof J==="function")return this.subscribers.push(J)-1;else return{FAIL:"invalid '"+this.eventId+"' event handler"}};T8.prototype.unsubscribe=function(J){this.subscribers.splice(J,1)};z1.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)};z1.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 M4)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 T8)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 _w(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 z1(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 M4(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 M4(Y,null,Z),K.getContext(Z).openRange=Q,K.dispatch("contextStart",[Z,Y]);if(!!Q&&X.checkEnd(J)){var W=Y-Q.startIndex+1,$=K.setEndOffset(W,Z);K.dispatch("contextEnd",[Z,$])}})};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 z1(K,Y);this.dispatch("next",[Z]),this.runContextCheck(Z);var Q=new _5(X);this.tokens.push(Q),this.dispatch("newToken",[Q,Z])}return this.dispatch("end",[this.tokens]),this.tokens};function i1(J){return/[\u0600-\u065F\u066A-\u06D2\u06FA-\u06FF]/.test(J)}function eJ(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 n1(J){return/[\u0600-\u0605\u060C-\u060E\u0610-\u061B\u061E\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED]/.test(J)}function _8(J){return/[A-z]/.test(J)}function Iw(J){return/\s/.test(J)}function o0(J){this.font=J,this.features={}}function X5(J){this.id=J.id,this.tag=J.tag,this.substitution=J.substitution}function p5(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 Rw(J,K){var Y=p5(J,K.coverage);if(Y===-1)return null;return J+K.deltaGlyphId}function Tw(J,K){var Y=p5(J,K.coverage);if(Y===-1)return null;return K.substitute[Y]}function $4(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 W=p5(Q,Z);if(W!==-1)Y.push(W)}if(Y.length!==J.length)return-1;return Y}function Cw(J,K){var Y=K.inputCoverage.length+K.lookaheadCoverage.length+K.backtrackCoverage.length;if(J.context.length<Y)return[];var X=$4(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&&n1(Q[0].char))Q.shift();var W=new z1(Q,0),$=$4(K.lookaheadCoverage,W),w=[].concat(J.backtrack);w.reverse();while(w.length&&n1(w[0].char))w.shift();if(w.length<K.backtrackCoverage.length)return[];var H=new z1(w,0),z=$4(K.backtrackCoverage,H),U=X.length===K.inputCoverage.length&&$.length===K.lookaheadCoverage.length&&z.length===K.backtrackCoverage.length,V=[];if(U)for(var B=0;B<K.lookupRecords.length;B++){var L=K.lookupRecords[B],A=L.lookupListIndex,M=this.getLookupByIndex(A);for(var O=0;O<M.subtables.length;O++){var N=M.subtables[O],E=this.getLookupMethod(M,N),D=this.getSubstitutionType(M,N);if(D==="12")for(var F=0;F<X.length;F++){var j=J.get(F),R=E(j);if(R)V.push(R)}}}return V}function Pw(J,K){var Y=J.current,X=p5(Y,K.coverage);if(X===-1)return null;var Z,Q=K.ligatureSets[X];for(var W=0;W<Q.length;W++){Z=Q[W];for(var $=0;$<Z.components.length;$++){var w=J.lookahead[$],H=Z.components[$];if(w!==H)break;if($===Z.components.length-1)return Z}}return null}function Sw(J,K){var Y=p5(J,K.coverage);if(Y===-1)return null;return K.sequences[Y]}o0.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[]};o0.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 W=0;W<Q.length;W++){var $=Q[W];if($.tag===J){var w=$.langSys;return w.featureIndexes}}}}return this.getDefaultScriptFeaturesIndexes()};o0.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};o0.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};o0.prototype.getSubstitutionType=function(J,K){var Y=J.lookupType.toString(),X=K.substFormat.toString();return Y+X};o0.prototype.getLookupMethod=function(J,K){var Y=this,X=this.getSubstitutionType(J,K);switch(X){case"11":return function(Z){return Rw.apply(Y,[Z,K])};case"12":return function(Z){return Tw.apply(Y,[Z,K])};case"63":return function(Z){return Cw.apply(Y,[Z,K])};case"41":return function(Z){return Pw.apply(Y,[Z,K])};case"21":return function(Z){return Sw.apply(Y,[Z,K])};default:throw Error("lookupType: "+J.lookupType+" - substFormat: "+K.substFormat+" is not yet supported")}};o0.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 W=0;W<Z.length;W++){var $=Z[W],w=this.getLookupSubtables($);for(var H=0;H<w.length;H++){var z=w[H],U=this.getSubstitutionType($,z),V=this.getLookupMethod($,z),B=void 0;switch(U){case"11":if(B=V(K.current),B)Q.splice(Y,1,new X5({id:11,tag:J.tag,substitution:B}));break;case"12":if(B=V(K.current),B)Q.splice(Y,1,new X5({id:12,tag:J.tag,substitution:B}));break;case"63":if(B=V(K),Array.isArray(B)&&B.length)Q.splice(Y,1,new X5({id:63,tag:J.tag,substitution:B}));break;case"41":if(B=V(K),B)Q.splice(Y,1,new X5({id:41,tag:J.tag,substitution:B}));break;case"21":if(B=V(K.current),B)Q.splice(Y,1,new X5({id:21,tag:J.tag,substitution:B}));break}if(K=new z1(Q,Y),Array.isArray(B)&&!B.length)continue;B=null}}return Q.length?Q:null};o0.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};o0.prototype.getLookupSubtables=function(J){return J.subtables||null};o0.prototype.getLookupByIndex=function(J){var K=this.font.tables.gsub.lookups;return K[J]||null};o0.prototype.getFeatureLookups=function(J){return J.lookupListIndexes.map(this.getLookupByIndex.bind(this))};o0.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 vw(J){var K=J.current,Y=J.get(-1);return Y===null&&i1(K)||!i1(Y)&&i1(K)}function yw(J){var K=J.get(1);return K===null||!i1(K)}var kw={startCheck:vw,endCheck:yw};function hw(J){var K=J.current,Y=J.get(-1);return(i1(K)||n1(K))&&!i1(Y)}function gw(J){var K=J.get(1);switch(!0){case K===null:return!0;case(!i1(K)&&!n1(K)):var Y=Iw(K);if(!Y)return!0;if(Y){var X=!1;if(X=J.lookahead.some(function(Z){return i1(Z)||n1(Z)}),!X)return!0}break;default:return!1}}var xw={startCheck:hw,endCheck:gw};function bw(J,K,Y){K[Y].setState(J.tag,J.substitution)}function fw(J,K,Y){K[Y].setState(J.tag,J.substitution)}function mw(J,K,Y){J.substitution.forEach(function(X,Z){var Q=K[Y+Z];Q.setState(J.tag,X)})}function cw(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 IJ={11:bw,12:fw,63:mw,41:cw};function L4(J,K,Y){if(J instanceof X5&&IJ[J.id])IJ[J.id](J,K,Y)}function lw(J){var K=[].concat(J.backtrack);for(var Y=K.length-1;Y>=0;Y--){var X=K[Y],Z=eJ(X),Q=n1(X);if(!Z&&!Q)return!0;if(Z)return!1}return!1}function dw(J){if(eJ(J.current))return!1;for(var K=0;K<J.lookahead.length;K++){var Y=J.lookahead[K],X=n1(Y);if(!X)return!0}return!1}function uw(J){var K=this,Y="arab",X=this.featuresTags[Y],Z=this.tokenizer.getRangeTokens(J);if(Z.length===1)return;var Q=new z1(Z.map(function($){return $.getState("glyphIndex")}),0),W=new z1(Z.map(function($){return $.char}),0);Z.forEach(function($,w){if(n1($.char))return;Q.setCurrentIndex(w),W.setCurrentIndex(w);var H=0;if(lw(W))H|=1;if(dw(W))H|=2;var z;switch(H){case 1:z="fina";break;case 2:z="init";break;case 3:z="medi";break}if(X.indexOf(z)===-1)return;var U=K.query.lookupFeature({tag:z,script:Y,contextParams:Q});if(U instanceof Error)return console.info(U.message);U.forEach(function(V,B){if(V instanceof X5)L4(V,Z,B),Q.context[B]=V.substitution})})}function RJ(J,K){var Y=J.map(function(X){return X.activeState.value});return new z1(Y,K||0)}function pw(J){var K=this,Y="arab",X=this.tokenizer.getRangeTokens(J),Z=RJ(X);Z.context.forEach(function(Q,W){Z.setCurrentIndex(W);var $=K.query.lookupFeature({tag:"rlig",script:Y,contextParams:Z});if($.length)$.forEach(function(w){return L4(w,X,W)}),Z=RJ(X)})}function iw(J){var K=J.current,Y=J.get(-1);return Y===null&&_8(K)||!_8(Y)&&_8(K)}function nw(J){var K=J.get(1);return K===null||!_8(K)}var rw={startCheck:iw,endCheck:nw};function TJ(J,K){var Y=J.map(function(X){return X.activeState.value});return new z1(Y,K||0)}function ow(J){var K=this,Y="latn",X=this.tokenizer.getRangeTokens(J),Z=TJ(X);Z.context.forEach(function(Q,W){Z.setCurrentIndex(W);var $=K.query.lookupFeature({tag:"liga",script:Y,contextParams:Z});if($.length)$.forEach(function(w){return L4(w,X,W)}),Z=TJ(X)})}function B1(J){this.baseDir=J||"ltr",this.tokenizer=new F0,this.featuresTags={}}B1.prototype.setText=function(J){this.text=J};B1.prototype.contextChecks={latinWordCheck:rw,arabicWordCheck:kw,arabicSentenceCheck:xw};function H4(J){var K=this.contextChecks[J+"Check"];return this.tokenizer.registerContextChecker(J,K.startCheck,K.endCheck)}function sw(){return H4.call(this,"latinWord"),H4.call(this,"arabicWord"),H4.call(this,"arabicSentence"),this.tokenizer.tokenize(this.text)}function aw(){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())})}B1.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)};B1.prototype.applyFeatures=function(J,K){if(!J)throw Error("No valid font was provided to apply features");if(!this.query)this.query=new o0(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)}};B1.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 tw(){var J=this,K="arab";if(!this.featuresTags.hasOwnProperty(K))return;q4.call(this);var Y=this.tokenizer.getContextRanges("arabicWord");Y.forEach(function(X){uw.call(J,X)})}function ew(){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){pw.call(J,Z)})}function J$(){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){ow.call(J,Z)})}B1.prototype.checkContextReady=function(J){return!!this.tokenizer.getContext(J)};B1.prototype.applyFeaturesToContexts=function(){if(this.checkContextReady("arabicWord"))tw.call(this),ew.call(this);if(this.checkContextReady("latinWord"))J$.call(this);if(this.checkContextReady("arabicSentence"))aw.call(this)};B1.prototype.processText=function(J){if(!this.text||this.text!==J)this.setText(J),sw.call(this),this.applyFeaturesToContexts()};B1.prototype.getBidiText=function(J){return this.processText(J),this.tokenizer.getText()};B1.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)g5(J.familyName,"When creating a new Font object, familyName is required."),g5(J.styleName,"When creating a new Font object, styleName is required."),g5(J.unitsPerEm,"When creating a new Font object, unitsPerEm is required."),g5(J.ascender,"When creating a new Font object, ascender is required."),g5(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 D1.GlyphSet(this,J.glyphs||[]),this.encoding=new fJ(this),this.position=new l5(this),this.substitution=new r0(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 B1,Z=function(U){return Y.charToGlyphIndex(U.char)};X.registerModifier("glyphIndex",null,Z);var Q=K?this.updateFeatures(K.features):this.defaultRenderOptions.features;X.applyFeatures(this,Q);var W=X.getTextGlyphs(J),$=W.length,w=Array($),H=this.glyphs.get(0);for(var z=0;z<$;z+=1)w[z]=this.glyphs.get(W[z])||H;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 W=1/this.unitsPerEm*X,$=this.stringToGlyphs(J,Z),w;if(Z.kerning){var H=Z.script||this.position.getDefaultScriptName();w=this.position.getKerningTables(H,Z.language)}for(var z=0;z<$.length;z+=1){var U=$[z];if(Q.call(this,U,K,Y,X,Z),U.advanceWidth)K+=U.advanceWidth*W;if(Z.kerning&&z<$.length-1){var V=w?this.position.getKerningValue(w,U.index,$[z+1].index):this.getKerningValue(U,$[z+1]);K+=V*W}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 f0;return this.forEachGlyph(J,K,Y,X,Z,function(W,$,w,H){var z=W.getPath($,w,H,Z,this);Q.extend(z)}),Q};m0.prototype.getPaths=function(J,K,Y,X,Z){var Q=[];return this.forEachGlyph(J,K,Y,X,Z,function(W,$,w,H){var z=W.getPath($,w,H,Z,this);Q.push(z)}),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 K$(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(),W=K.parseULong();for(var $=Z;$<=Q;$+=1)J.glyphIndexMap[$]=W,W++}}function Y$(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 W=new n.Parser(Y,X+Z+14),$=new n.Parser(Y,X+Z+16+Q*2),w=new n.Parser(Y,X+Z+16+Q*4),H=new n.Parser(Y,X+Z+16+Q*6),z=X+Z+16+Q*8;for(var U=0;U<Q-1;U+=1){var V=void 0,B=W.parseUShort(),L=$.parseUShort(),A=w.parseShort(),M=H.parseUShort();for(var O=L;O<=B;O+=1){if(M!==0){if(z=H.offset+H.relativeOffset-2,z+=M,z+=(O-L)*2,V=n.getUShort(Y,z),V!==0)V=V+A&65535}else V=O+A&65535;J.glyphIndexMap[O]=V}}}function X$(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),W=n.getUShort(J,K+4+Z*8+2);if(Q===3&&(W===0||W===1||W===10)||Q===0&&(W===0||W===1||W===2||W===3||W===4)){X=n.getULong(J,K+4+Z*8+4);break}}if(X===-1)throw Error("No valid cmap sub-tables found.");var $=new n.Parser(J,K+X);if(Y.format=$.parseUShort(),Y.format===12)K$(Y,$);else if(Y.format===4)Y$(Y,$,J,K,X);else throw Error("Only format 4 and 12 cmap tables are supported (found format "+Y.format+").");return Y}var Z$={parse:X$};function V4(J){var K;if(J.length<1240)K=107;else if(J.length<33900)K=1131;else K=32768;return K}function u1(J,K,Y){var X=[],Z=[],Q=n.getCard16(J,K),W,$;if(Q!==0){var w=n.getByte(J,K+2);W=K+(Q+1)*w+2;var H=K+3;for(var z=0;z<Q+1;z+=1)X.push(n.getOffset(J,H,w)),H+=w;$=W+X[Q]}else $=K+2;for(var U=0;U<X.length-1;U+=1){var V=n.getBytes(J,W+X[U],W+X[U+1]);if(Y)V=Y(V);Z.push(V)}return{objects:Z,startOffset:K,endOffset:$}}function Q$(J,K){var Y=[],X=n.getCard16(J,K),Z,Q;if(X!==0){var W=n.getByte(J,K+2);Z=K+(X+1)*W+2;var $=K+3;for(var w=0;w<X+1;w+=1)Y.push(n.getOffset(J,$,W)),$+=W;Q=Z+Y[X]}else Q=K+2;return{offsets:Y,startOffset:K,endOffset:Q}}function W$(J,K,Y,X,Z){var Q=n.getCard16(Y,X),W=0;if(Q!==0){var $=n.getByte(Y,X+2);W=X+(Q+1)*$+2}var w=n.getBytes(Y,W+K[J],W+K[J+1]);if(Z)w=Z(w);return w}function w$(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,W=Z&15;if(Q===Y)break;if(K+=X[Q],W===Y)break;K+=X[W]}return parseFloat(K)}function $$(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 w$(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 H$(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 JK(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 W=X.parseByte();if(W<=21){if(W===12)W=1200+X.parseByte();Z.push([W,Q]),Q=[]}else Q.push($$(X,W))}return H$(Z)}function b5(J,K){if(K<=390)K=TQ[K];else K=J[K-391];return K}function KK(J,K,Y){var X={},Z;for(var Q=0;Q<K.length;Q+=1){var W=K[Q];if(Array.isArray(W.type)){var $=[];$.length=W.type.length;for(var w=0;w<W.type.length;w++){if(Z=J[W.op]!==void 0?J[W.op][w]:void 0,Z===void 0)Z=W.value!==void 0&&W.value[w]!==void 0?W.value[w]:null;if(W.type[w]==="SID")Z=b5(Y,Z);$[w]=Z}X[W.name]=$}else{if(Z=J[W.op],Z===void 0)Z=W.value!==void 0?W.value:null;if(W.type==="SID")Z=b5(Y,Z);X[W.name]=Z}}return X}function z$(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 U$=[{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"}],V$=[{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 B$(J,K){var Y=JK(J,0,J.byteLength);return KK(Y,U$,K)}function YK(J,K,Y,X){var Z=JK(J,K,Y);return KK(Z,V$,X)}function CJ(J,K,Y,X){var Z=[];for(var Q=0;Q<Y.length;Q+=1){var W=new DataView(new Uint8Array(Y[Q]).buffer),$=B$(W,X);$._subrs=[],$._subrsBias=0,$._defaultWidthX=0,$._nominalWidthX=0;var w=$.private[0],H=$.private[1];if(w!==0&&H!==0){var z=YK(J,H+K,w,X);if($._defaultWidthX=z.defaultWidthX,$._nominalWidthX=z.nominalWidthX,z.subrs!==0){var U=H+z.subrs,V=u1(J,U+K);$._subrs=V.objects,$._subrsBias=V4($._subrs)}$._privateDict=z}Z.push($)}return Z}function A$(J,K,Y,X){var Z,Q,W=new n.Parser(J,K);Y-=1;var $=[".notdef"],w=W.parseCard8();if(w===0)for(var H=0;H<Y;H+=1)Z=W.parseSID(),$.push(b5(X,Z));else if(w===1)while($.length<=Y){Z=W.parseSID(),Q=W.parseCard8();for(var z=0;z<=Q;z+=1)$.push(b5(X,Z)),Z+=1}else if(w===2)while($.length<=Y){Z=W.parseSID(),Q=W.parseCard16();for(var U=0;U<=Q;U+=1)$.push(b5(X,Z)),Z+=1}else throw Error("Unknown charset format "+w);return $}function G$(J,K,Y){var X,Z={},Q=new n.Parser(J,K),W=Q.parseCard8();if(W===0){var $=Q.parseCard8();for(var w=0;w<$;w+=1)X=Q.parseCard8(),Z[X]=w}else if(W===1){var H=Q.parseCard8();X=1;for(var z=0;z<H;z+=1){var U=Q.parseCard8(),V=Q.parseCard8();for(var B=U;B<=U+V;B+=1)Z[B]=X,X+=1}}else throw Error("Unknown encoding format "+W);return new D8(Z,Y)}function PJ(J,K,Y){var X,Z,Q,W,$=new f0,w=[],H=0,z=!1,U=!1,V=0,B=0,L,A,M,O;if(J.isCIDFont){var N=J.tables.cff.topDict._fdSelect[K.index],E=J.tables.cff.topDict._fdArray[N];L=E._subrs,A=E._subrsBias,M=E._defaultWidthX,O=E._nominalWidthX}else L=J.tables.cff.topDict._subrs,A=J.tables.cff.topDict._subrsBias,M=J.tables.cff.topDict._defaultWidthX,O=J.tables.cff.topDict._nominalWidthX;var D=M;function F(I,C){if(U)$.closePath();$.moveTo(I,C),U=!0}function j(){var I=w.length%2!==0;if(I&&!z)D=w.shift()+O;H+=w.length>>1,w.length=0,z=!0}function R(I){var C,h,l,u,p,P,S,T,c,d,a,r,x=0;while(x<I.length){var m=I[x];switch(x+=1,m){case 1:j();break;case 3:j();break;case 4:if(w.length>1&&!z)D=w.shift()+O,z=!0;B+=w.pop(),F(V,B);break;case 5:while(w.length>0)V+=w.shift(),B+=w.shift(),$.lineTo(V,B);break;case 6:while(w.length>0){if(V+=w.shift(),$.lineTo(V,B),w.length===0)break;B+=w.shift(),$.lineTo(V,B)}break;case 7:while(w.length>0){if(B+=w.shift(),$.lineTo(V,B),w.length===0)break;V+=w.shift(),$.lineTo(V,B)}break;case 8:while(w.length>0)X=V+w.shift(),Z=B+w.shift(),Q=X+w.shift(),W=Z+w.shift(),V=Q+w.shift(),B=W+w.shift(),$.curveTo(X,Z,Q,W,V,B);break;case 10:if(p=w.pop()+A,P=L[p],P)R(P);break;case 11:return;case 12:switch(m=I[x],x+=1,m){case 35:X=V+w.shift(),Z=B+w.shift(),Q=X+w.shift(),W=Z+w.shift(),S=Q+w.shift(),T=W+w.shift(),c=S+w.shift(),d=T+w.shift(),a=c+w.shift(),r=d+w.shift(),V=a+w.shift(),B=r+w.shift(),w.shift(),$.curveTo(X,Z,Q,W,S,T),$.curveTo(c,d,a,r,V,B);break;case 34:X=V+w.shift(),Z=B,Q=X+w.shift(),W=Z+w.shift(),S=Q+w.shift(),T=W,c=S+w.shift(),d=W,a=c+w.shift(),r=B,V=a+w.shift(),$.curveTo(X,Z,Q,W,S,T),$.curveTo(c,d,a,r,V,B);break;case 36:X=V+w.shift(),Z=B+w.shift(),Q=X+w.shift(),W=Z+w.shift(),S=Q+w.shift(),T=W,c=S+w.shift(),d=W,a=c+w.shift(),r=d+w.shift(),V=a+w.shift(),$.curveTo(X,Z,Q,W,S,T),$.curveTo(c,d,a,r,V,B);break;case 37:if(X=V+w.shift(),Z=B+w.shift(),Q=X+w.shift(),W=Z+w.shift(),S=Q+w.shift(),T=W+w.shift(),c=S+w.shift(),d=T+w.shift(),a=c+w.shift(),r=d+w.shift(),Math.abs(a-V)>Math.abs(r-B))V=a+w.shift();else B=r+w.shift();$.curveTo(X,Z,Q,W,S,T),$.curveTo(c,d,a,r,V,B);break;default:console.log("Glyph "+K.index+": unknown operator 1200"+m),w.length=0}break;case 14:if(w.length>0&&!z)D=w.shift()+O,z=!0;if(U)$.closePath(),U=!1;break;case 18:j();break;case 19:case 20:j(),x+=H+7>>3;break;case 21:if(w.length>2&&!z)D=w.shift()+O,z=!0;B+=w.pop(),V+=w.pop(),F(V,B);break;case 22:if(w.length>1&&!z)D=w.shift()+O,z=!0;V+=w.pop(),F(V,B);break;case 23:j();break;case 24:while(w.length>2)X=V+w.shift(),Z=B+w.shift(),Q=X+w.shift(),W=Z+w.shift(),V=Q+w.shift(),B=W+w.shift(),$.curveTo(X,Z,Q,W,V,B);V+=w.shift(),B+=w.shift(),$.lineTo(V,B);break;case 25:while(w.length>6)V+=w.shift(),B+=w.shift(),$.lineTo(V,B);X=V+w.shift(),Z=B+w.shift(),Q=X+w.shift(),W=Z+w.shift(),V=Q+w.shift(),B=W+w.shift(),$.curveTo(X,Z,Q,W,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(),W=Z+w.shift(),V=Q,B=W+w.shift(),$.curveTo(X,Z,Q,W,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(),W=Z+w.shift(),V=Q+w.shift(),B=W,$.curveTo(X,Z,Q,W,V,B);break;case 28:C=I[x],h=I[x+1],w.push((C<<24|h<<16)>>16),x+=2;break;case 29:if(p=w.pop()+J.gsubrsBias,P=J.gsubrs[p],P)R(P);break;case 30:while(w.length>0){if(X=V,Z=B+w.shift(),Q=X+w.shift(),W=Z+w.shift(),V=Q+w.shift(),B=W+(w.length===1?w.shift():0),$.curveTo(X,Z,Q,W,V,B),w.length===0)break;X=V+w.shift(),Z=B,Q=X+w.shift(),W=Z+w.shift(),B=W+w.shift(),V=Q+(w.length===1?w.shift():0),$.curveTo(X,Z,Q,W,V,B)}break;case 31:while(w.length>0){if(X=V+w.shift(),Z=B,Q=X+w.shift(),W=Z+w.shift(),B=W+w.shift(),V=Q+(w.length===1?w.shift():0),$.curveTo(X,Z,Q,W,V,B),w.length===0)break;X=V,Z=B+w.shift(),Q=X+w.shift(),W=Z+w.shift(),V=Q+w.shift(),B=W+(w.length===1?w.shift():0),$.curveTo(X,Z,Q,W,V,B)}break;default:if(m<32)console.log("Glyph "+K.index+": unknown operator "+m);else if(m<247)w.push(m-139);else if(m<251)C=I[x],x+=1,w.push((m-247)*256+C+108);else if(m<255)C=I[x],x+=1,w.push(-(m-251)*256-C-108);else C=I[x],h=I[x+1],l=I[x+2],u=I[x+3],x+=4,w.push((C<<24|h<<16|l<<8|u)/65536)}}}return R(Y),K.advanceWidth=D,$}function M$(J,K,Y,X){var Z=[],Q,W=new n.Parser(J,K),$=W.parseCard8();if($===0)for(var w=0;w<Y;w++){if(Q=W.parseCard8(),Q>=X)throw Error("CFF table CID Font FDSelect has bad FD index value "+Q+" (FD count "+X+")");Z.push(Q)}else if($===3){var H=W.parseCard16(),z=W.parseCard16();if(z!==0)throw Error("CFF Table CID Font FDSelect format 3 range has bad initial GID "+z);var U;for(var V=0;V<H;V++){if(Q=W.parseCard8(),U=W.parseCard16(),Q>=X)throw Error("CFF table CID Font FDSelect has bad FD index value "+Q+" (FD count "+X+")");if(U>Y)throw Error("CFF Table CID Font FDSelect format 3 range has bad GID "+U);for(;z<U;z++)Z.push(Q);z=U}if(U!==Y)throw Error("CFF Table CID Font FDSelect format 3 range has bad final GID "+U)}else throw Error("CFF Table CID Font FDSelect table has unsupported format "+$);return Z}function L$(J,K,Y,X){Y.tables.cff={};var Z=z$(J,K),Q=u1(J,Z.endOffset,n.bytesToString),W=u1(J,Q.endOffset),$=u1(J,W.endOffset,n.bytesToString),w=u1(J,$.endOffset);Y.gsubrs=w.objects,Y.gsubrsBias=V4(Y.gsubrs);var H=CJ(J,K,W.objects,$.objects);if(H.length!==1)throw Error("CFF table has too many fonts in 'FontSet' - count of fonts NameIndex.length = "+H.length);var z=H[0];if(Y.tables.cff.topDict=z,z._privateDict)Y.defaultWidthX=z._privateDict.defaultWidthX,Y.nominalWidthX=z._privateDict.nominalWidthX;if(z.ros[0]!==void 0&&z.ros[1]!==void 0)Y.isCIDFont=!0;if(Y.isCIDFont){var{fdArray:U,fdSelect:V}=z;if(U===0||V===0)throw Error("Font is marked as a CID font, but FDArray and/or FDSelect information is missing");U+=K;var B=u1(J,U),L=CJ(J,K,B.objects,$.objects);z._fdArray=L,V+=K,z._fdSelect=M$(J,V,Y.numGlyphs,L.length)}var A=K+z.private[1],M=YK(J,A,z.private[0],$.objects);if(Y.defaultWidthX=M.defaultWidthX,Y.nominalWidthX=M.nominalWidthX,M.subrs!==0){var O=A+M.subrs,N=u1(J,O);Y.subrs=N.objects,Y.subrsBias=V4(Y.subrs)}else Y.subrs=[],Y.subrsBias=0;var E;if(X.lowMemory)E=Q$(J,K+z.charStrings),Y.nGlyphs=E.offsets.length;else E=u1(J,K+z.charStrings),Y.nGlyphs=E.objects.length;var D=A$(J,K+z.charset,Y.nGlyphs,$.objects);if(z.encoding===0)Y.cffEncoding=new D8(CQ,D);else if(z.encoding===1)Y.cffEncoding=new D8(PQ,D);else Y.cffEncoding=G$(J,K+z.encoding,D);if(Y.encoding=Y.encoding||Y.cffEncoding,Y.glyphs=new D1.GlyphSet(Y),X.lowMemory)Y._push=function(R){var I=W$(R,E.offsets,J,K+z.charStrings);Y.glyphs.push(R,D1.cffGlyphLoader(Y,R,PJ,I))};else for(var F=0;F<Y.nGlyphs;F+=1){var j=E.objects[F];Y.glyphs.push(F,D1.cffGlyphLoader(Y,F,PJ,j))}}var q$={parse:L$};function O$(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 N$(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 W=0;W<Y.length;++W)Z.coordinates[Y[W].tag]=Q.parseFixed();return Z}function j$(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 W=X.parseUShort(),$=X.parseUShort(),w=X.parseUShort(),H=X.parseUShort(),z=[];for(var U=0;U<W;U++)z.push(O$(J,K+Q+U*$,Y));var V=[],B=K+Q+W*$;for(var L=0;L<w;L++)V.push(N$(J,B+L*H,z,Y));return{axes:z,instances:V}}var E$={parse:j$},F$=function(){return{coverage:this.parsePointer(y.coverage),attachPoints:this.parseList(y.pointer(y.uShortList))}},_$=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()}},D$=function(){return this.parseList(y.pointer(_$))},I$=function(){return{coverage:this.parsePointer(y.coverage),ligGlyphs:this.parseList(y.pointer(D$))}},R$=function(){return this.parseUShort(),this.parseList(y.pointer(y.coverage))};function T$(J,K){K=K||0;var Y=new y(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(y.classDef),attachList:Y.parsePointer(F$),ligCaretList:Y.parsePointer(I$),markAttachClassDef:Y.parsePointer(y.classDef)};if(X>=1.2)Z.markGlyphSets=Y.parsePointer(R$);return Z}var C$={parse:T$},U1=[,,,,,,,,,,];U1[1]=function(){var K=this.offset+this.relativeOffset,Y=this.parseUShort();if(Y===1)return{posFormat:1,coverage:this.parsePointer(y.coverage),value:this.parseValueRecord()};else if(Y===2)return{posFormat:2,coverage:this.parsePointer(y.coverage),values:this.parseValueRecordList()};z0.assert(!1,"0x"+K.toString(16)+": GPOS lookup type 1 format must be 1 or 2.")};U1[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(y.coverage),Z=this.parseUShort(),Q=this.parseUShort();if(Y===1)return{posFormat:Y,coverage:X,valueFormat1:Z,valueFormat2:Q,pairSets:this.parseList(y.pointer(y.list(function(){return{secondGlyph:this.parseUShort(),value1:this.parseValueRecord(Z),value2:this.parseValueRecord(Q)}})))};else if(Y===2){var W=this.parsePointer(y.classDef),$=this.parsePointer(y.classDef),w=this.parseUShort(),H=this.parseUShort();return{posFormat:Y,coverage:X,valueFormat1:Z,valueFormat2:Q,classDef1:W,classDef2:$,class1Count:w,class2Count:H,classRecords:this.parseList(w,y.list(H,function(){return{value1:this.parseValueRecord(Z),value2:this.parseValueRecord(Q)}}))}}};U1[3]=function(){return{error:"GPOS Lookup 3 not supported"}};U1[4]=function(){return{error:"GPOS Lookup 4 not supported"}};U1[5]=function(){return{error:"GPOS Lookup 5 not supported"}};U1[6]=function(){return{error:"GPOS Lookup 6 not supported"}};U1[7]=function(){return{error:"GPOS Lookup 7 not supported"}};U1[8]=function(){return{error:"GPOS Lookup 8 not supported"}};U1[9]=function(){return{error:"GPOS Lookup 9 not supported"}};function P$(J,K){K=K||0;var Y=new y(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(U1)};else return{version:X,scripts:Y.parseScriptList(),features:Y.parseFeatureList(),lookups:Y.parseLookupList(U1),variations:Y.parseFeatureVariationsList()}}var S$={parse:P$},V1=[,,,,,,,,,];V1[1]=function(){var K=this.offset+this.relativeOffset,Y=this.parseUShort();if(Y===1)return{substFormat:1,coverage:this.parsePointer(y.coverage),deltaGlyphId:this.parseUShort()};else if(Y===2)return{substFormat:2,coverage:this.parsePointer(y.coverage),substitute:this.parseOffset16List()};z0.assert(!1,"0x"+K.toString(16)+": lookup type 1 format must be 1 or 2.")};V1[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(y.coverage),sequences:this.parseListOfLists()}};V1[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(y.coverage),alternateSets:this.parseListOfLists()}};V1[4]=function(){var K=this.parseUShort();return z0.argument(K===1,"GSUB ligature table identifier-format must be 1"),{substFormat:K,coverage:this.parsePointer(y.coverage),ligatureSets:this.parseListOfLists(function(){return{ligGlyph:this.parseUShort(),components:this.parseUShortList(this.parseUShort()-1)}})}};var F5={sequenceIndex:y.uShort,lookupListIndex:y.uShort};V1[5]=function(){var K=this.offset+this.relativeOffset,Y=this.parseUShort();if(Y===1)return{substFormat:Y,coverage:this.parsePointer(y.coverage),ruleSets:this.parseListOfLists(function(){var Q=this.parseUShort(),W=this.parseUShort();return{input:this.parseUShortList(Q-1),lookupRecords:this.parseRecordList(W,F5)}})};else if(Y===2)return{substFormat:Y,coverage:this.parsePointer(y.coverage),classDef:this.parsePointer(y.classDef),classSets:this.parseListOfLists(function(){var Q=this.parseUShort(),W=this.parseUShort();return{classes:this.parseUShortList(Q-1),lookupRecords:this.parseRecordList(W,F5)}})};else if(Y===3){var X=this.parseUShort(),Z=this.parseUShort();return{substFormat:Y,coverages:this.parseList(X,y.pointer(y.coverage)),lookupRecords:this.parseRecordList(Z,F5)}}z0.assert(!1,"0x"+K.toString(16)+": lookup type 5 format must be 1, 2 or 3.")};V1[6]=function(){var K=this.offset+this.relativeOffset,Y=this.parseUShort();if(Y===1)return{substFormat:1,coverage:this.parsePointer(y.coverage),chainRuleSets:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(F5)}})};else if(Y===2)return{substFormat:2,coverage:this.parsePointer(y.coverage),backtrackClassDef:this.parsePointer(y.classDef),inputClassDef:this.parsePointer(y.classDef),lookaheadClassDef:this.parsePointer(y.classDef),chainClassSet:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(F5)}})};else if(Y===3)return{substFormat:3,backtrackCoverage:this.parseList(y.pointer(y.coverage)),inputCoverage:this.parseList(y.pointer(y.coverage)),lookaheadCoverage:this.parseList(y.pointer(y.coverage)),lookupRecords:this.parseRecordList(F5)};z0.assert(!1,"0x"+K.toString(16)+": lookup type 6 format must be 1, 2 or 3.")};V1[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 y(this.data,this.offset+this.parseULong());return{substFormat:1,lookupType:Y,extension:V1[Y].call(X)}};V1[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(y.coverage),backtrackCoverage:this.parseList(y.pointer(y.coverage)),lookaheadCoverage:this.parseList(y.pointer(y.coverage)),substitutes:this.parseUShortList()}};function v$(J,K){K=K||0;var Y=new y(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(V1)};else return{version:X,scripts:Y.parseScriptList(),features:Y.parseFeatureList(),lookups:Y.parseLookupList(V1),variations:Y.parseFeatureVariationsList()}}var y$={parse:v$};function k$(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 h$={parse:k$};function g$(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 x$={parse:g$};function b$(J,K,Y,X,Z){var Q,W,$=new n.Parser(J,K);for(var w=0;w<X;w+=1){if(w<Y)Q=$.parseUShort(),W=$.parseShort();var H=Z.get(w);H.advanceWidth=Q,H.leftSideBearing=W}}function f$(J,K,Y,X,Z){J._hmtxTableData={};var Q,W,$=new n.Parser(K,Y);for(var w=0;w<Z;w+=1){if(w<X)Q=$.parseUShort(),W=$.parseShort();J._hmtxTableData[w]={advanceWidth:Q,leftSideBearing:W}}}function m$(J,K,Y,X,Z,Q,W){if(W.lowMemory)f$(J,K,Y,X,Z);else b$(K,Y,X,Z,Q)}var c$={parse:m$};function l$(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(),W=J.parseUShort(),$=J.parseShort();K[Q+","+W]=$}return K}function d$(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 W=0;W<Q;W+=1){var $=J.parseUShort(),w=J.parseUShort(),H=J.parseShort();K[$+","+w]=H}}return K}function u$(J,K){var Y=new n.Parser(J,K),X=Y.parseUShort();if(X===0)return l$(Y);else if(X===1)return d$(Y);else throw Error("Unsupported kern table version ("+X+").")}var p$={parse:u$};function i$(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 W=0;W<Z;W++){var $="",w=K+Y.parseUShort(),H=Y.parseUShort();for(var z=w;z<w+H;++z)$+=String.fromCharCode(J.getInt8(z));Q.push($)}return Q}var n$={parse:i$};function r$(J,K,Y,X){var Z=new n.Parser(J,K),Q=X?Z.parseUShort:Z.parseULong,W=[];for(var $=0;$<Y+1;$+=1){var w=Q.call(Z);if(X)w*=2;W.push(w)}return W}var o$={parse:r$};function s$(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 a$={parse:s$};function t$(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 e$={parse:t$};function JH(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 KH={parse:JH},C8={};C8.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)};C8.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 YH={"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"};C8.MACSTRING=function(J,K,Y,X){var Z=YH[X];if(Z===void 0)return;var Q="";for(var W=0;W<Y;W++){var $=J.getUint8(K+W);if($<=127)Q+=String.fromCharCode($);else Q+=Z[$&127]}return Q};function XH(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 W=0;W<Z;W++){var $=Y.parseTag(),w=Y.parseULong(),H=Y.parseULong(),z=C8.UTF8(J,K+w,H);Q[$]=z}return Q}var ZH={parse:XH};function SJ(J,K){var Y=[],X=12;for(var Z=0;Z<K;Z+=1){var Q=n.getTag(J,X),W=n.getULong(J,X+4),$=n.getULong(J,X+8),w=n.getULong(J,X+12);Y.push({tag:Q,checksum:W,offset:$,length:w,compression:!1}),X+=16}return Y}function QH(J,K){var Y=[],X=44;for(var Z=0;Z<K;Z+=1){var Q=n.getTag(J,X),W=n.getULong(J,X+4),$=n.getULong(J,X+8),w=n.getULong(J,X+12),H=void 0;if($<w)H="WOFF";else H=!1;Y.push({tag:Q,offset:W,compression:H,compressedLength:$,length:w}),X+=20}return Y}function R0(J,K){if(K.compression==="WOFF"){var Y=new Uint8Array(J.buffer,K.offset+2,K.compressedLength-2),X=new Uint8Array(K.length);if(DQ(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 WH(J,K){K=K===void 0||K===null?{}:K;var Y,X=new m0({empty:!0}),Z=new DataView(J,0),Q,W=[],$=n.getTag(Z,0);if($===String.fromCharCode(0,1,0,0)||$==="true"||$==="typ1")X.outlinesFormat="truetype",Q=n.getUShort(Z,4),W=SJ(Z,Q);else if($==="OTTO")X.outlinesFormat="cff",Q=n.getUShort(Z,4),W=SJ(Z,Q);else if($==="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 "+$);Q=n.getUShort(Z,12),W=QH(Z,Q)}else throw Error("Unsupported OpenType signature "+$);var H,z,U,V,B,L,A,M,O,N,E;for(var D=0;D<Q;D+=1){var F=W[D],j=void 0;switch(F.tag){case"cmap":j=R0(Z,F),X.tables.cmap=Z$.parse(j.data,j.offset),X.encoding=new mJ(X.tables.cmap);break;case"cvt ":j=R0(Z,F),E=new n.Parser(j.data,j.offset),X.tables.cvt=E.parseShortList(F.length/2);break;case"fvar":z=F;break;case"fpgm":j=R0(Z,F),E=new n.Parser(j.data,j.offset),X.tables.fpgm=E.parseByteList(F.length);break;case"head":j=R0(Z,F),X.tables.head=h$.parse(j.data,j.offset),X.unitsPerEm=X.tables.head.unitsPerEm,Y=X.tables.head.indexToLocFormat;break;case"hhea":j=R0(Z,F),X.tables.hhea=x$.parse(j.data,j.offset),X.ascender=X.tables.hhea.ascender,X.descender=X.tables.hhea.descender,X.numberOfHMetrics=X.tables.hhea.numberOfHMetrics;break;case"hmtx":A=F;break;case"ltag":j=R0(Z,F),ltagTable=n$.parse(j.data,j.offset);break;case"maxp":j=R0(Z,F),X.tables.maxp=a$.parse(j.data,j.offset),X.numGlyphs=X.tables.maxp.numGlyphs;break;case"OS/2":j=R0(Z,F),X.tables.os2=e$.parse(j.data,j.offset);break;case"post":j=R0(Z,F),X.tables.post=KH.parse(j.data,j.offset);break;case"prep":j=R0(Z,F),E=new n.Parser(j.data,j.offset),X.tables.prep=E.parseByteList(F.length);break;case"glyf":U=F;break;case"loca":O=F;break;case"CFF ":H=F;break;case"kern":M=F;break;case"GDEF":V=F;break;case"GPOS":B=F;break;case"GSUB":L=F;break;case"meta":N=F;break}}if(U&&O){var R=Y===0,I=R0(Z,O),C=o$.parse(I.data,I.offset,X.numGlyphs,R),h=R0(Z,U);X.glyphs=iJ.parse(h.data,h.offset,C,X,K)}else if(H){var l=R0(Z,H);q$.parse(l.data,l.offset,X,K)}else throw Error("Font doesn't contain TrueType or CFF outlines.");var u=R0(Z,A);if(c$.parse(X,u.data,u.offset,X.numberOfHMetrics,X.numGlyphs,X.glyphs,K),yQ(X,K),M){var p=R0(Z,M);X.kerningPairs=p$.parse(p.data,p.offset)}else X.kerningPairs={};if(V){var P=R0(Z,V);X.tables.gdef=C$.parse(P.data,P.offset)}if(B){var S=R0(Z,B);X.tables.gpos=S$.parse(S.data,S.offset),X.position.init()}if(L){var T=R0(Z,L);X.tables.gsub=y$.parse(T.data,T.offset)}if(z){var c=R0(Z,z);X.tables.fvar=E$.parse(c.data,c.offset,X.names)}if(N){var d=R0(Z,N);X.tables.meta=ZH.parse(d.data,d.offset),X.metas=X.tables.meta}return X}function wH(){}function $H(){}var HH=Object.freeze({__proto__:null,Font:m0,Glyph:v1,Path:f0,_parse:n,parse:WH,load:wH,loadSync:$H}),P8=HH;var{create:UH,defineProperty:o8,getOwnPropertyDescriptor:VH,getOwnPropertyNames:BH,getPrototypeOf:AH}=Object,GH=Object.prototype.hasOwnProperty,x4=(J,K)=>()=>(J&&(K=J(J=0)),K),t=(J,K)=>()=>(K||J((K={exports:{}}).exports,K),K.exports),b4=(J,K)=>{for(var Y in K)o8(J,Y,{get:K[Y],enumerable:!0})},TK=(J,K,Y,X)=>{if(K&&typeof K=="object"||typeof K=="function")for(let Z of BH(K))!GH.call(J,Z)&&Z!==Y&&o8(J,Z,{get:()=>K[Z],enumerable:!(X=VH(K,Z))||X.enumerable});return J},MH=(J,K,Y)=>(Y=J!=null?UH(AH(J)):{},TK(K||!J||!J.__esModule?o8(Y,"default",{value:J,enumerable:!0}):Y,J)),n8=(J)=>TK(o8({},"__esModule",{value:!0}),J),CK={};b4(CK,{getYogaModule:()=>LH});async function LH(){let{default:J}=await import("./chunk-w54fj10r.js");return J()}var qH=x4(()=>{}),PK=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)`}}),OH=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"]}),NH=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)))]}}),SK=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:[]}}),s8={};b4(s8,{default:()=>vK});var vK,f4=x4(()=>{vK={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])}}}),jH=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>Z});var K=Y((f4(),n8(s8)));function Y(Q){return Q&&Q.__esModule?Q:{default:Q}}function X({version:Q,from:W,to:$}){K.default.warn(`${W}-color-renamed`,[`As of Tailwind CSS ${Q}, \`${W}\` has been renamed to \`${$}\`.`,"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}}}),EH=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"defaults",{enumerable:!0,get:()=>K});function K(Y,...X){for(let W of X){for(let $ in W){var Z;!(Y==null||(Z=Y.hasOwnProperty)===null||Z===void 0)&&Z.call(Y,$)||(Y[$]=W[$])}for(let $ of Object.getOwnPropertySymbols(W)){var Q;!(Y==null||(Q=Y.hasOwnProperty)===null||Q===void 0)&&Q.call(Y,$)||(Y[$]=W[$])}}return Y}}),FH=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)}}),_H=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"normalizeConfig",{enumerable:!0,get:()=>Z});var K=X((f4(),n8(s8)));function Y(Q){if(typeof WeakMap!="function")return null;var W=new WeakMap,$=new WeakMap;return(Y=function(w){return w?$:W})(Q)}function X(Q,W){if(!W&&Q&&Q.__esModule)return Q;if(Q===null||typeof Q!="object"&&typeof Q!="function")return{default:Q};var $=Y(W);if($&&$.has(Q))return $.get(Q);var w={},H=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var z in Q)if(z!=="default"&&Object.prototype.hasOwnProperty.call(Q,z)){var U=H?Object.getOwnPropertyDescriptor(Q,z):null;U&&(U.get||U.set)?Object.defineProperty(w,z,U):w[z]=Q[z]}return w.default=Q,$&&$.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(($)=>typeof $=="string"?!0:!(typeof($==null?void 0:$.raw)!="string"||$!=null&&$.extension&&typeof($==null?void 0:$.extension)!="string"));if(typeof Q.content=="object"&&Q.content!==null){if(Object.keys(Q.content).some(($)=>!["files","extract","transform"].includes($)))return!1;if(Array.isArray(Q.content.files)){if(!Q.content.files.every(($)=>typeof $=="string"?!0:!(typeof($==null?void 0:$.raw)!="string"||$!=null&&$.extension&&typeof($==null?void 0:$.extension)!="string")))return!1;if(typeof Q.content.extract=="object"){for(let $ of Object.values(Q.content.extract))if(typeof $!="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 $ of Object.values(Q.content.transform))if(typeof $!="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 $;let{content:w,purge:H,safelist:z}=Q;return Array.isArray(z)?z:Array.isArray(w==null?void 0:w.safelist)?w.safelist:Array.isArray(H==null?void 0:H.safelist)?H.safelist:Array.isArray(H==null||($=H.options)===null||$===void 0?void 0:$.safelist)?H.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 W;Q.prefix=(W=Q.prefix)!==null&&W!==void 0?W:""}Q.content={files:(()=>{let{content:$,purge:w}=Q;return Array.isArray(w)?w:Array.isArray(w==null?void 0:w.content)?w.content:Array.isArray($)?$:Array.isArray($==null?void 0:$.content)?$.content:Array.isArray($==null?void 0:$.files)?$.files:[]})(),extract:(()=>{let $=(()=>{var z,U,V,B,L,A,M,O,N,E;return!((z=Q.purge)===null||z===void 0)&&z.extract?Q.purge.extract:!((U=Q.content)===null||U===void 0)&&U.extract?Q.content.extract:!((V=Q.purge)===null||V===void 0||(B=V.extract)===null||B===void 0)&&B.DEFAULT?Q.purge.extract.DEFAULT:!((L=Q.content)===null||L===void 0||(A=L.extract)===null||A===void 0)&&A.DEFAULT?Q.content.extract.DEFAULT:!((M=Q.purge)===null||M===void 0||(O=M.options)===null||O===void 0)&&O.extractors?Q.purge.options.extractors:!((N=Q.content)===null||N===void 0||(E=N.options)===null||E===void 0)&&E.extractors?Q.content.options.extractors:{}})(),w={},H=(()=>{var z,U,V,B;if(!((z=Q.purge)===null||z===void 0||(U=z.options)===null||U===void 0)&&U.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(H!==void 0&&(w.DEFAULT=H),typeof $=="function")w.DEFAULT=$;else if(Array.isArray($))for(let{extensions:z,extractor:U}of $??[])for(let V of z)w[V]=U;else typeof $=="object"&&$!==null&&Object.assign(w,$);return w})(),transform:(()=>{let $=(()=>{var H,z,U,V,B,L;return!((H=Q.purge)===null||H===void 0)&&H.transform?Q.purge.transform:!((z=Q.content)===null||z===void 0)&&z.transform?Q.content.transform:!((U=Q.purge)===null||U===void 0||(V=U.transform)===null||V===void 0)&&V.DEFAULT?Q.purge.transform.DEFAULT:!((B=Q.content)===null||B===void 0||(L=B.transform)===null||L===void 0)&&L.DEFAULT?Q.content.transform.DEFAULT:{}})(),w={};return typeof $=="function"&&(w.DEFAULT=$),typeof $=="object"&&$!==null&&Object.assign(w,$),w})()};for(let $ of Q.content.files)if(typeof $=="string"&&/{([^,]*?)}/g.test($)){K.default.warn("invalid-glob-braces",[`The glob pattern ${(0,K.dim)($)} in your Tailwind CSS configuration is invalid.`,`Update it to ${(0,K.dim)($.replace(/{([^,]*?)}/g,"$1"))} to silence this warning.`]);break}return Q}}),DH=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}}),IH=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 W=Q.toLowerCase(),$="",w=!1,H=0;H<6&&W[H]!==void 0;H++){var z=W.charCodeAt(H),U=z>=97&&z<=102||z>=48&&z<=57;if(w=z===32,!U)break;$+=W[H]}if($.length!==0){var V=parseInt($,16),B=V>=55296&&V<=57343;return B||V===0||V>1114111?["\uFFFD",$.length+(w?1:0)]:[String.fromCodePoint(V),$.length+(w?1:0)]}}var X=/\\/;function Z(Q){var W=X.test(Q);if(!W)return Q;for(var $="",w=0;w<Q.length;w++){if(Q[w]==="\\"){var H=Y(Q.slice(w+1,w+7));if(H!==void 0){$+=H[0],w+=H[1];continue}if(Q[w+1]==="\\"){$+="\\",w++;continue}Q.length===w+1&&($+=Q[w]);continue}$+=Q[w]}return $}K.exports=J.default}),RH=t((J,K)=>{J.__esModule=!0,J.default=Y;function Y(X){for(var Z=arguments.length,Q=Array(Z>1?Z-1:0),W=1;W<Z;W++)Q[W-1]=arguments[W];for(;Q.length>0;){var $=Q.shift();if(!X[$])return;X=X[$]}return X}K.exports=J.default}),TH=t((J,K)=>{J.__esModule=!0,J.default=Y;function Y(X){for(var Z=arguments.length,Q=Array(Z>1?Z-1:0),W=1;W<Z;W++)Q[W-1]=arguments[W];for(;Q.length>0;){var $=Q.shift();X[$]||(X[$]={}),X=X[$]}}K.exports=J.default}),CH=t((J,K)=>{J.__esModule=!0,J.default=Y;function Y(X){for(var Z="",Q=X.indexOf("/*"),W=0;Q>=0;){Z=Z+X.slice(W,Q);var $=X.indexOf("*/",Q+2);if($<0)return Z;W=$+2,Q=X.indexOf("/*",W)}return Z=Z+X.slice(W),Z}K.exports=J.default}),a8=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(RH());J.getProp=Y.default;var X=Q(TH());J.ensureObject=X.default;var Z=Q(CH());J.stripComments=Z.default;function Q(W){return W&&W.__esModule?W:{default:W}}}),o1=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=a8();function X($,w){for(var H=0;H<w.length;H++){var z=w[H];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty($,z.key,z)}}function Z($,w,H){return w&&X($.prototype,w),H&&X($,H),$}var Q=function $(w,H){if(typeof w!="object"||w===null)return w;var z=new w.constructor;for(var U in w)if(w.hasOwnProperty(U)){var V=w[U],B=typeof V;U==="parent"&&B==="object"?H&&(z[U]=H):V instanceof Array?z[U]=V.map(function(L){return $(L,z)}):z[U]=$(V,z)}return z},W=function(){function $(H){H===void 0&&(H={}),Object.assign(this,H),this.spaces=this.spaces||{},this.spaces.before=this.spaces.before||"",this.spaces.after=this.spaces.after||""}var 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 H in arguments)this.parent.insertBefore(this,arguments[H]);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(H){H===void 0&&(H={});var z=Q(this);for(var U in H)z[U]=H[U];return z},w.appendToPropertyAndEscape=function(H,z,U){this.raws||(this.raws={});var V=this[H],B=this.raws[H];this[H]=V+z,B||U!==z?this.raws[H]=(B||V)+U:delete this.raws[H]},w.setPropertyAndEscape=function(H,z,U){this.raws||(this.raws={}),this[H]=z,this.raws[H]=U},w.setPropertyWithoutEscape=function(H,z){this[H]=z,this.raws&&delete this.raws[H]},w.isAtPosition=function(H,z){if(this.source&&this.source.start&&this.source.end)return!(this.source.start.line>H||this.source.end.line<H||this.source.start.line===H&&this.source.start.column>z||this.source.end.line===H&&this.source.end.column<z)},w.stringifyProperty=function(H){return this.raws&&this.raws[H]||this[H]},w.valueToString=function(){return String(this.stringifyProperty("value"))},w.toString=function(){return[this.rawSpaceBefore,this.valueToString(),this.rawSpaceAfter].join("")},Z($,[{key:"rawSpaceBefore",get:function(){var H=this.raws&&this.raws.spaces&&this.raws.spaces.before;return H===void 0&&(H=this.spaces&&this.spaces.before),H||""},set:function(H){(0,Y.ensureObject)(this,"raws","spaces"),this.raws.spaces.before=H}},{key:"rawSpaceAfter",get:function(){var H=this.raws&&this.raws.spaces&&this.raws.spaces.after;return H===void 0&&(H=this.spaces.after),H||""},set:function(H){(0,Y.ensureObject)(this,"raws","spaces"),this.raws.spaces.after=H}}]),$}();J.default=W,K.exports=J.default}),c0=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 W="nesting";J.NESTING=W;var $="id";J.ID=$;var w="comment";J.COMMENT=w;var H="combinator";J.COMBINATOR=H;var z="class";J.CLASS=z;var U="attribute";J.ATTRIBUTE=U;var V="universal";J.UNIVERSAL=V}),m4=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=W(o1()),X=Q(c0());function Z(){if(typeof WeakMap!="function")return null;var A=new WeakMap;return Z=function(){return A},A}function Q(A){if(A&&A.__esModule)return A;if(A===null||typeof A!="object"&&typeof A!="function")return{default:A};var M=Z();if(M&&M.has(A))return M.get(A);var O={},N=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in A)if(Object.prototype.hasOwnProperty.call(A,E)){var D=N?Object.getOwnPropertyDescriptor(A,E):null;D&&(D.get||D.set)?Object.defineProperty(O,E,D):O[E]=A[E]}return O.default=A,M&&M.set(A,O),O}function W(A){return A&&A.__esModule?A:{default:A}}function $(A,M){var O;if(typeof Symbol>"u"||A[Symbol.iterator]==null){if(Array.isArray(A)||(O=w(A))||M&&A&&typeof A.length=="number"){O&&(A=O);var N=0;return function(){return N>=A.length?{done:!0}:{done:!1,value:A[N++]}}}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 O=A[Symbol.iterator](),O.next.bind(O)}function w(A,M){if(A){if(typeof A=="string")return H(A,M);var O=Object.prototype.toString.call(A).slice(8,-1);if(O==="Object"&&A.constructor&&(O=A.constructor.name),O==="Map"||O==="Set")return Array.from(A);if(O==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return H(A,M)}}function H(A,M){(M==null||M>A.length)&&(M=A.length);for(var O=0,N=Array(M);O<M;O++)N[O]=A[O];return N}function z(A,M){for(var O=0;O<M.length;O++){var N=M[O];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(A,N.key,N)}}function U(A,M,O){return M&&z(A.prototype,M),O&&z(A,O),A}function V(A,M){A.prototype=Object.create(M.prototype),A.prototype.constructor=A,B(A,M)}function B(A,M){return B=Object.setPrototypeOf||function(O,N){return O.__proto__=N,O},B(A,M)}var L=function(A){V(M,A);function M(N){var E;return E=A.call(this,N)||this,E.nodes||(E.nodes=[]),E}var O=M.prototype;return O.append=function(N){return N.parent=this,this.nodes.push(N),this},O.prepend=function(N){return N.parent=this,this.nodes.unshift(N),this},O.at=function(N){return this.nodes[N]},O.index=function(N){return typeof N=="number"?N:this.nodes.indexOf(N)},O.removeChild=function(N){N=this.index(N),this.at(N).parent=void 0,this.nodes.splice(N,1);var E;for(var D in this.indexes)E=this.indexes[D],E>=N&&(this.indexes[D]=E-1);return this},O.removeAll=function(){for(var N=$(this.nodes),E;!(E=N()).done;){var D=E.value;D.parent=void 0}return this.nodes=[],this},O.empty=function(){return this.removeAll()},O.insertAfter=function(N,E){E.parent=this;var D=this.index(N);this.nodes.splice(D+1,0,E),E.parent=this;var F;for(var j in this.indexes)F=this.indexes[j],D<=F&&(this.indexes[j]=F+1);return this},O.insertBefore=function(N,E){E.parent=this;var D=this.index(N);this.nodes.splice(D,0,E),E.parent=this;var F;for(var j in this.indexes)F=this.indexes[j],F<=D&&(this.indexes[j]=F+1);return this},O._findChildAtPosition=function(N,E){var D=void 0;return this.each(function(F){if(F.atPosition){var j=F.atPosition(N,E);if(j)return D=j,!1}else if(F.isAtPosition(N,E))return D=F,!1}),D},O.atPosition=function(N,E){if(this.isAtPosition(N,E))return this._findChildAtPosition(N,E)||this},O._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))},O.each=function(N){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var E=this.lastEach;if(this.indexes[E]=0,!!this.length){for(var D,F;this.indexes[E]<this.length&&(D=this.indexes[E],F=N(this.at(D),D),F!==!1);)this.indexes[E]+=1;if(delete this.indexes[E],F===!1)return!1}},O.walk=function(N){return this.each(function(E,D){var F=N(E,D);if(F!==!1&&E.length&&(F=E.walk(N)),F===!1)return!1})},O.walkAttributes=function(N){var E=this;return this.walk(function(D){if(D.type===X.ATTRIBUTE)return N.call(E,D)})},O.walkClasses=function(N){var E=this;return this.walk(function(D){if(D.type===X.CLASS)return N.call(E,D)})},O.walkCombinators=function(N){var E=this;return this.walk(function(D){if(D.type===X.COMBINATOR)return N.call(E,D)})},O.walkComments=function(N){var E=this;return this.walk(function(D){if(D.type===X.COMMENT)return N.call(E,D)})},O.walkIds=function(N){var E=this;return this.walk(function(D){if(D.type===X.ID)return N.call(E,D)})},O.walkNesting=function(N){var E=this;return this.walk(function(D){if(D.type===X.NESTING)return N.call(E,D)})},O.walkPseudos=function(N){var E=this;return this.walk(function(D){if(D.type===X.PSEUDO)return N.call(E,D)})},O.walkTags=function(N){var E=this;return this.walk(function(D){if(D.type===X.TAG)return N.call(E,D)})},O.walkUniversals=function(N){var E=this;return this.walk(function(D){if(D.type===X.UNIVERSAL)return N.call(E,D)})},O.split=function(N){var E=this,D=[];return this.reduce(function(F,j,R){var I=N.call(E,j);return D.push(j),I?(F.push(D),D=[]):R===E.length-1&&F.push(D),F},[])},O.map=function(N){return this.nodes.map(N)},O.reduce=function(N,E){return this.nodes.reduce(N,E)},O.every=function(N){return this.nodes.every(N)},O.some=function(N){return this.nodes.some(N)},O.filter=function(N){return this.nodes.filter(N)},O.sort=function(N){return this.nodes.sort(N)},O.toString=function(){return this.map(String).join("")},U(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=L,K.exports=J.default}),kK=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Z(m4()),X=c0();function Z(z){return z&&z.__esModule?z:{default:z}}function Q(z,U){for(var V=0;V<U.length;V++){var B=U[V];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(z,B.key,B)}}function W(z,U,V){return U&&Q(z.prototype,U),V&&Q(z,V),z}function $(z,U){z.prototype=Object.create(U.prototype),z.prototype.constructor=z,w(z,U)}function w(z,U){return w=Object.setPrototypeOf||function(V,B){return V.__proto__=B,V},w(z,U)}var H=function(z){$(U,z);function U(B){var L;return L=z.call(this,B)||this,L.type=X.ROOT,L}var V=U.prototype;return V.toString=function(){var B=this.reduce(function(L,A){return L.push(String(A)),L},[]).join(",");return this.trailingComma?B+",":B},V.error=function(B,L){return this._error?this._error(B,L):Error(B)},W(U,[{key:"errorGenerator",set:function(B){this._error=B}}]),U}(Y.default);J.default=H,K.exports=J.default}),hK=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Z(m4()),X=c0();function Z(w){return w&&w.__esModule?w:{default:w}}function Q(w,H){w.prototype=Object.create(H.prototype),w.prototype.constructor=w,W(w,H)}function W(w,H){return W=Object.setPrototypeOf||function(z,U){return z.__proto__=U,z},W(w,H)}var $=function(w){Q(H,w);function H(z){var U;return U=w.call(this,z)||this,U.type=X.SELECTOR,U}return H}(Y.default);J.default=$,K.exports=J.default}),c4=t((J,K)=>{var Y={},X=Y.hasOwnProperty,Z=function(H,z){if(!H)return z;var U={};for(var V in z)U[V]=X.call(H,V)?H[V]:z[V];return U},Q=/[ -,\.\/:-@\[-\^`\{-~]/,W=/[ -,\.\/:-@\[\]\^`\{-~]/,$=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,w=function H(z,U){U=Z(U,H.options),U.quotes!="single"&&U.quotes!="double"&&(U.quotes="single");for(var V=U.quotes=="double"?'"':"'",B=U.isIdentifier,L=z.charAt(0),A="",M=0,O=z.length;M<O;){var N=z.charAt(M++),E=N.charCodeAt(),D=void 0;if(E<32||E>126){if(E>=55296&&E<=56319&&M<O){var F=z.charCodeAt(M++);(F&64512)==56320?E=((E&1023)<<10)+(F&1023)+65536:M--}D="\\"+E.toString(16).toUpperCase()+" "}else U.escapeEverything?Q.test(N)?D="\\"+N:D="\\"+E.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(N)?D="\\"+E.toString(16).toUpperCase()+" ":N=="\\"||!B&&(N=='"'&&V==N||N=="'"&&V==N)||B&&W.test(N)?D="\\"+N:D=N;A+=D}return B&&(/^-[-\d]/.test(A)?A="\\-"+A.slice(1):/\d/.test(L)&&(A="\\3"+L+" "+A.slice(1))),A=A.replace($,function(j,R,I){return R&&R.length%2?j:(R||"")+I}),!B&&U.wrap?V+A+V:A};w.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1},w.version="3.0.0",K.exports=w}),gK=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=W(c4()),X=a8(),Z=W(o1()),Q=c0();function W(V){return V&&V.__esModule?V:{default:V}}function $(V,B){for(var L=0;L<B.length;L++){var A=B[L];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(V,A.key,A)}}function w(V,B,L){return B&&$(V.prototype,B),L&&$(V,L),V}function H(V,B){V.prototype=Object.create(B.prototype),V.prototype.constructor=V,z(V,B)}function z(V,B){return z=Object.setPrototypeOf||function(L,A){return L.__proto__=A,L},z(V,B)}var U=function(V){H(B,V);function B(A){var M;return M=V.call(this,A)||this,M.type=Q.CLASS,M._constructed=!0,M}var L=B.prototype;return L.valueToString=function(){return"."+V.prototype.valueToString.call(this)},w(B,[{key:"value",get:function(){return this._value},set:function(A){if(this._constructed){var M=(0,Y.default)(A,{isIdentifier:!0});M!==A?((0,X.ensureObject)(this,"raws"),this.raws.value=M):this.raws&&delete this.raws.value}this._value=A}}]),B}(Z.default);J.default=U,K.exports=J.default}),xK=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Z(o1()),X=c0();function Z(w){return w&&w.__esModule?w:{default:w}}function Q(w,H){w.prototype=Object.create(H.prototype),w.prototype.constructor=w,W(w,H)}function W(w,H){return W=Object.setPrototypeOf||function(z,U){return z.__proto__=U,z},W(w,H)}var $=function(w){Q(H,w);function H(z){var U;return U=w.call(this,z)||this,U.type=X.COMMENT,U}return H}(Y.default);J.default=$,K.exports=J.default}),bK=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Z(o1()),X=c0();function Z(w){return w&&w.__esModule?w:{default:w}}function Q(w,H){w.prototype=Object.create(H.prototype),w.prototype.constructor=w,W(w,H)}function W(w,H){return W=Object.setPrototypeOf||function(z,U){return z.__proto__=U,z},W(w,H)}var $=function(w){Q(H,w);function H(U){var V;return V=w.call(this,U)||this,V.type=X.ID,V}var z=H.prototype;return z.valueToString=function(){return"#"+w.prototype.valueToString.call(this)},H}(Y.default);J.default=$,K.exports=J.default}),l4=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Q(c4()),X=a8(),Z=Q(o1());function Q(U){return U&&U.__esModule?U:{default:U}}function W(U,V){for(var B=0;B<V.length;B++){var L=V[B];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(U,L.key,L)}}function $(U,V,B){return V&&W(U.prototype,V),B&&W(U,B),U}function w(U,V){U.prototype=Object.create(V.prototype),U.prototype.constructor=U,H(U,V)}function H(U,V){return H=Object.setPrototypeOf||function(B,L){return B.__proto__=L,B},H(U,V)}var z=function(U){w(V,U);function V(){return U.apply(this,arguments)||this}var B=V.prototype;return B.qualifiedName=function(L){return this.namespace?this.namespaceString+"|"+L:L},B.valueToString=function(){return this.qualifiedName(U.prototype.valueToString.call(this))},$(V,[{key:"namespace",get:function(){return this._namespace},set:function(L){if(L===!0||L==="*"||L==="&"){this._namespace=L,this.raws&&delete this.raws.namespace;return}var A=(0,Y.default)(L,{isIdentifier:!0});this._namespace=L,A!==L?((0,X.ensureObject)(this,"raws"),this.raws.namespace=A):this.raws&&delete this.raws.namespace}},{key:"ns",get:function(){return this._namespace},set:function(L){this.namespace=L}},{key:"namespaceString",get:function(){if(this.namespace){var L=this.stringifyProperty("namespace");return L===!0?"":L}else return""}}]),V}(Z.default);J.default=z,K.exports=J.default}),fK=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Z(l4()),X=c0();function Z(w){return w&&w.__esModule?w:{default:w}}function Q(w,H){w.prototype=Object.create(H.prototype),w.prototype.constructor=w,W(w,H)}function W(w,H){return W=Object.setPrototypeOf||function(z,U){return z.__proto__=U,z},W(w,H)}var $=function(w){Q(H,w);function H(z){var U;return U=w.call(this,z)||this,U.type=X.TAG,U}return H}(Y.default);J.default=$,K.exports=J.default}),mK=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Z(o1()),X=c0();function Z(w){return w&&w.__esModule?w:{default:w}}function Q(w,H){w.prototype=Object.create(H.prototype),w.prototype.constructor=w,W(w,H)}function W(w,H){return W=Object.setPrototypeOf||function(z,U){return z.__proto__=U,z},W(w,H)}var $=function(w){Q(H,w);function H(z){var U;return U=w.call(this,z)||this,U.type=X.STRING,U}return H}(Y.default);J.default=$,K.exports=J.default}),cK=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Z(m4()),X=c0();function Z(w){return w&&w.__esModule?w:{default:w}}function Q(w,H){w.prototype=Object.create(H.prototype),w.prototype.constructor=w,W(w,H)}function W(w,H){return W=Object.setPrototypeOf||function(z,U){return z.__proto__=U,z},W(w,H)}var $=function(w){Q(H,w);function H(U){var V;return V=w.call(this,U)||this,V.type=X.PSEUDO,V}var z=H.prototype;return z.toString=function(){var U=this.length?"("+this.map(String).join(",")+")":"";return[this.rawSpaceBefore,this.stringifyProperty("value"),U,this.rawSpaceAfter].join("")},H}(Y.default);J.default=$,K.exports=J.default}),PH=t((J,K)=>{K.exports=function(Y,X){return function(...Z){return console.warn(X),Y(...Z)}}}),lK=t((J)=>{J.__esModule=!0,J.unescapeValue=M,J.default=void 0;var K=W(c4()),Y=W(yK()),X=W(l4()),Z=c0(),Q;function W(F){return F&&F.__esModule?F:{default:F}}function $(F,j){for(var R=0;R<j.length;R++){var I=j[R];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(F,I.key,I)}}function w(F,j,R){return j&&$(F.prototype,j),R&&$(F,R),F}function H(F,j){F.prototype=Object.create(j.prototype),F.prototype.constructor=F,z(F,j)}function z(F,j){return z=Object.setPrototypeOf||function(R,I){return R.__proto__=I,R},z(F,j)}var U=PH(),V=/^('|")([^]*)\1$/,B=U(function(){},"Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."),L=U(function(){},"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."),A=U(function(){},"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");function M(F){var j=!1,R=null,I=F,C=I.match(V);return C&&(R=C[1],I=C[2]),I=(0,Y.default)(I),I!==F&&(j=!0),{deprecatedUsage:j,unescaped:I,quoteMark:R}}function O(F){if(F.quoteMark!==void 0||F.value===void 0)return F;A();var j=M(F.value),R=j.quoteMark,I=j.unescaped;return F.raws||(F.raws={}),F.raws.value===void 0&&(F.raws.value=F.value),F.value=I,F.quoteMark=R,F}var N=function(F){H(j,F);function j(I){var C;return I===void 0&&(I={}),C=F.call(this,O(I))||this,C.type=Z.ATTRIBUTE,C.raws=C.raws||{},Object.defineProperty(C.raws,"unquoted",{get:U(function(){return C.value},"attr.raws.unquoted is deprecated. Call attr.value instead."),set:U(function(){return C.value},"Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.")}),C._constructed=!0,C}var R=j.prototype;return R.getQuotedValue=function(I){I===void 0&&(I={});var C=this._determineQuoteMark(I),h=E[C],l=(0,K.default)(this._value,h);return l},R._determineQuoteMark=function(I){return I.smart?this.smartQuoteMark(I):this.preferredQuoteMark(I)},R.setValue=function(I,C){C===void 0&&(C={}),this._value=I,this._quoteMark=this._determineQuoteMark(C),this._syncRawValue()},R.smartQuoteMark=function(I){var C=this.value,h=C.replace(/[^']/g,"").length,l=C.replace(/[^"]/g,"").length;if(h+l===0){var u=(0,K.default)(C,{isIdentifier:!0});if(u===C)return j.NO_QUOTE;var p=this.preferredQuoteMark(I);if(p===j.NO_QUOTE){var P=this.quoteMark||I.quoteMark||j.DOUBLE_QUOTE,S=E[P],T=(0,K.default)(C,S);if(T.length<u.length)return P}return p}else return l===h?this.preferredQuoteMark(I):l<h?j.DOUBLE_QUOTE:j.SINGLE_QUOTE},R.preferredQuoteMark=function(I){var C=I.preferCurrentQuoteMark?this.quoteMark:I.quoteMark;return C===void 0&&(C=I.preferCurrentQuoteMark?I.quoteMark:this.quoteMark),C===void 0&&(C=j.DOUBLE_QUOTE),C},R._syncRawValue=function(){var I=(0,K.default)(this._value,E[this.quoteMark]);I===this._value?this.raws&&delete this.raws.value:this.raws.value=I},R._handleEscapes=function(I,C){if(this._constructed){var h=(0,K.default)(C,{isIdentifier:!0});h!==C?this.raws[I]=h:delete this.raws[I]}},R._spacesFor=function(I){var C={before:"",after:""},h=this.spaces[I]||{},l=this.raws.spaces&&this.raws.spaces[I]||{};return Object.assign(C,h,l)},R._stringFor=function(I,C,h){C===void 0&&(C=I),h===void 0&&(h=D);var l=this._spacesFor(C);return h(this.stringifyProperty(I),l)},R.offsetOf=function(I){var C=1,h=this._spacesFor("attribute");if(C+=h.before.length,I==="namespace"||I==="ns")return this.namespace?C:-1;if(I==="attributeNS"||(C+=this.namespaceString.length,this.namespace&&(C+=1),I==="attribute"))return C;C+=this.stringifyProperty("attribute").length,C+=h.after.length;var l=this._spacesFor("operator");C+=l.before.length;var u=this.stringifyProperty("operator");if(I==="operator")return u?C:-1;C+=u.length,C+=l.after.length;var p=this._spacesFor("value");C+=p.before.length;var P=this.stringifyProperty("value");if(I==="value")return P?C:-1;C+=P.length,C+=p.after.length;var S=this._spacesFor("insensitive");return C+=S.before.length,I==="insensitive"&&this.insensitive?C:-1},R.toString=function(){var I=this,C=[this.rawSpaceBefore,"["];return C.push(this._stringFor("qualifiedAttribute","attribute")),this.operator&&(this.value||this.value==="")&&(C.push(this._stringFor("operator")),C.push(this._stringFor("value")),C.push(this._stringFor("insensitiveFlag","insensitive",function(h,l){return h.length>0&&!I.quoted&&l.before.length===0&&!(I.spaces.value&&I.spaces.value.after)&&(l.before=" "),D(h,l)}))),C.push("]"),C.push(this.rawSpaceAfter),C.join("")},w(j,[{key:"quoted",get:function(){var I=this.quoteMark;return I==="'"||I==='"'},set:function(I){L()}},{key:"quoteMark",get:function(){return this._quoteMark},set:function(I){if(!this._constructed){this._quoteMark=I;return}this._quoteMark!==I&&(this._quoteMark=I,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(I){if(this._constructed){var C=M(I),h=C.deprecatedUsage,l=C.unescaped,u=C.quoteMark;if(h&&B(),l===this._value&&u===this._quoteMark)return;this._value=l,this._quoteMark=u,this._syncRawValue()}else this._value=I}},{key:"attribute",get:function(){return this._attribute},set:function(I){this._handleEscapes("attribute",I),this._attribute=I}}]),j}(X.default);J.default=N,N.NO_QUOTE=null,N.SINGLE_QUOTE="'",N.DOUBLE_QUOTE='"';var E=(Q={"'":{quotes:"single",wrap:!0},'"':{quotes:"double",wrap:!0}},Q[null]={isIdentifier:!0},Q);function D(F,j){return""+j.before+F+j.after}}),dK=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Z(l4()),X=c0();function Z(w){return w&&w.__esModule?w:{default:w}}function Q(w,H){w.prototype=Object.create(H.prototype),w.prototype.constructor=w,W(w,H)}function W(w,H){return W=Object.setPrototypeOf||function(z,U){return z.__proto__=U,z},W(w,H)}var $=function(w){Q(H,w);function H(z){var U;return U=w.call(this,z)||this,U.type=X.UNIVERSAL,U.value="*",U}return H}(Y.default);J.default=$,K.exports=J.default}),uK=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Z(o1()),X=c0();function Z(w){return w&&w.__esModule?w:{default:w}}function Q(w,H){w.prototype=Object.create(H.prototype),w.prototype.constructor=w,W(w,H)}function W(w,H){return W=Object.setPrototypeOf||function(z,U){return z.__proto__=U,z},W(w,H)}var $=function(w){Q(H,w);function H(z){var U;return U=w.call(this,z)||this,U.type=X.COMBINATOR,U}return H}(Y.default);J.default=$,K.exports=J.default}),pK=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Z(o1()),X=c0();function Z(w){return w&&w.__esModule?w:{default:w}}function Q(w,H){w.prototype=Object.create(H.prototype),w.prototype.constructor=w,W(w,H)}function W(w,H){return W=Object.setPrototypeOf||function(z,U){return z.__proto__=U,z},W(w,H)}var $=function(w){Q(H,w);function H(z){var U;return U=w.call(this,z)||this,U.type=X.NESTING,U.value="&",U}return H}(Y.default);J.default=$,K.exports=J.default}),SH=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}),iK=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 W=59;J.semicolon=W;var $=40;J.openParenthesis=$;var w=41;J.closeParenthesis=w;var H=91;J.openSquare=H;var z=93;J.closeSquare=z;var U=36;J.dollar=U;var V=126;J.tilde=V;var B=94;J.caret=B;var L=43;J.plus=L;var A=61;J.equals=A;var M=124;J.pipe=M;var O=62;J.greaterThan=O;var N=32;J.space=N;var E=39;J.singleQuote=E;var D=34;J.doubleQuote=D;var F=47;J.slash=F;var j=33;J.bang=j;var R=92;J.backslash=R;var I=13;J.cr=I;var C=12;J.feed=C;var h=10;J.newline=h;var l=9;J.tab=l;var u=E;J.str=u;var p=-1;J.comment=p;var P=-2;J.word=P;var S=-3;J.combinator=S}),vH=t((J)=>{J.__esModule=!0,J.default=L,J.FIELDS=void 0;var K=Q(iK()),Y,X;function Z(){if(typeof WeakMap!="function")return null;var A=new WeakMap;return Z=function(){return A},A}function Q(A){if(A&&A.__esModule)return A;if(A===null||typeof A!="object"&&typeof A!="function")return{default:A};var M=Z();if(M&&M.has(A))return M.get(A);var O={},N=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in A)if(Object.prototype.hasOwnProperty.call(A,E)){var D=N?Object.getOwnPropertyDescriptor(A,E):null;D&&(D.get||D.set)?Object.defineProperty(O,E,D):O[E]=A[E]}return O.default=A,M&&M.set(A,O),O}var W=(Y={},Y[K.tab]=!0,Y[K.newline]=!0,Y[K.cr]=!0,Y[K.feed]=!0,Y),$=(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={},H="0123456789abcdefABCDEF";for(z=0;z<H.length;z++)w[H.charCodeAt(z)]=!0;var z;function U(A,M){var O=M,N;do{if(N=A.charCodeAt(O),$[N])return O-1;N===K.backslash?O=V(A,O)+1:O++}while(O<A.length);return O-1}function V(A,M){var O=M,N=A.charCodeAt(O+1);if(!W[N])if(w[N]){var E=0;do O++,E++,N=A.charCodeAt(O+1);while(w[N]&&E<6);E<6&&N===K.space&&O++}else O++;return O}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 L(A){var M=[],O=A.css.valueOf(),N=O,E=N.length,D=-1,F=1,j=0,R=0,I,C,h,l,u,p,P,S,T,c,d,a,r;function x(m,v){if(A.safe)O+=v,T=O.length-1;else throw A.error("Unclosed "+m,F,j-D,j)}for(;j<E;){switch(I=O.charCodeAt(j),I===K.newline&&(D=j,F+=1),I){case K.space:case K.tab:case K.newline:case K.cr:case K.feed:T=j;do T+=1,I=O.charCodeAt(T),I===K.newline&&(D=T,F+=1);while(I===K.space||I===K.newline||I===K.tab||I===K.cr||I===K.feed);r=K.space,l=F,h=T-D-1,R=T;break;case K.plus:case K.greaterThan:case K.tilde:case K.pipe:T=j;do T+=1,I=O.charCodeAt(T);while(I===K.plus||I===K.greaterThan||I===K.tilde||I===K.pipe);r=K.combinator,l=F,h=j-D,R=T;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:T=j,r=I,l=F,h=j-D,R=T+1;break;case K.singleQuote:case K.doubleQuote:a=I===K.singleQuote?"'":'"',T=j;do for(u=!1,T=O.indexOf(a,T+1),T===-1&&x("quote",a),p=T;O.charCodeAt(p-1)===K.backslash;)p-=1,u=!u;while(u);r=K.str,l=F,h=j-D,R=T+1;break;default:I===K.slash&&O.charCodeAt(j+1)===K.asterisk?(T=O.indexOf("*/",j+2)+1,T===0&&x("comment","*/"),C=O.slice(j,T+1),S=C.split(`
63
+ `),P=S.length-1,P>0?(c=F+P,d=T-S[P].length):(c=F,d=D),r=K.comment,F=c,l=c,h=T-d):I===K.slash?(T=j,r=I,l=F,h=j-D,R=T+1):(T=U(O,j),r=K.word,l=F,h=T-D),R=T+1;break}M.push([r,F,j-D,l,h,j,R]),d&&(D=d,d=null),j=R}return M}}),yH=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=R(kK()),X=R(hK()),Z=R(gK()),Q=R(xK()),W=R(bK()),$=R(fK()),w=R(mK()),H=R(cK()),z=j(lK()),U=R(dK()),V=R(uK()),B=R(pK()),L=R(SH()),A=j(vH()),M=j(iK()),O=j(c0()),N=a8(),E,D;function F(){if(typeof WeakMap!="function")return null;var x=new WeakMap;return F=function(){return x},x}function j(x){if(x&&x.__esModule)return x;if(x===null||typeof x!="object"&&typeof x!="function")return{default:x};var m=F();if(m&&m.has(x))return m.get(x);var v={},k=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in x)if(Object.prototype.hasOwnProperty.call(x,o)){var g=k?Object.getOwnPropertyDescriptor(x,o):null;g&&(g.get||g.set)?Object.defineProperty(v,o,g):v[o]=x[o]}return v.default=x,m&&m.set(x,v),v}function R(x){return x&&x.__esModule?x:{default:x}}function I(x,m){for(var v=0;v<m.length;v++){var k=m[v];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(x,k.key,k)}}function C(x,m,v){return m&&I(x.prototype,m),v&&I(x,v),x}var h=(E={},E[M.space]=!0,E[M.cr]=!0,E[M.feed]=!0,E[M.newline]=!0,E[M.tab]=!0,E),l=Object.assign({},h,(D={},D[M.comment]=!0,D));function u(x){return{line:x[A.FIELDS.START_LINE],column:x[A.FIELDS.START_COL]}}function p(x){return{line:x[A.FIELDS.END_LINE],column:x[A.FIELDS.END_COL]}}function P(x,m,v,k){return{start:{line:x,column:m},end:{line:v,column:k}}}function S(x){return P(x[A.FIELDS.START_LINE],x[A.FIELDS.START_COL],x[A.FIELDS.END_LINE],x[A.FIELDS.END_COL])}function T(x,m){if(x)return P(x[A.FIELDS.START_LINE],x[A.FIELDS.START_COL],m[A.FIELDS.END_LINE],m[A.FIELDS.END_COL])}function c(x,m){var v=x[m];if(typeof v=="string")return v.indexOf("\\")!==-1&&((0,N.ensureObject)(x,"raws"),x[m]=(0,N.unesc)(v),x.raws[m]===void 0&&(x.raws[m]=v)),x}function d(x,m){for(var v=-1,k=[];(v=x.indexOf(m,v+1))!==-1;)k.push(v);return k}function a(){var x=Array.prototype.concat.apply([],arguments);return x.filter(function(m,v){return v===x.indexOf(m)})}var r=function(){function x(v,k){k===void 0&&(k={}),this.rule=v,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,A.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var o=T(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new Y.default({source:o}),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 m=x.prototype;return m._errorGenerator=function(){var v=this;return function(k,o){return typeof v.rule=="string"?Error(k):v.rule.error(k,o)}},m.attribute=function(){var v=[],k=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[A.FIELDS.TYPE]!==M.closeSquare;)v.push(this.currToken),this.position++;if(this.currToken[A.FIELDS.TYPE]!==M.closeSquare)return this.expected("closing square bracket",this.currToken[A.FIELDS.START_POS]);var o=v.length,g={source:P(k[1],k[2],this.currToken[3],this.currToken[4]),sourceIndex:k[A.FIELDS.START_POS]};if(o===1&&!~[M.word].indexOf(v[0][A.FIELDS.TYPE]))return this.expected("attribute",v[0][A.FIELDS.START_POS]);for(var J0=0,X0="",Z0="",K0=null,B0=!1;J0<o;){var D0=v[J0],Y0=this.content(D0),M0=v[J0+1];switch(D0[A.FIELDS.TYPE]){case M.space:if(B0=!0,this.options.lossy)break;if(K0){(0,N.ensureObject)(g,"spaces",K0);var v0=g.spaces[K0].after||"";g.spaces[K0].after=v0+Y0;var u0=(0,N.getProp)(g,"raws","spaces",K0,"after")||null;u0&&(g.raws.spaces[K0].after=u0+Y0)}else X0=X0+Y0,Z0=Z0+Y0;break;case M.asterisk:if(M0[A.FIELDS.TYPE]===M.equals)g.operator=Y0,K0="operator";else if((!g.namespace||K0==="namespace"&&!B0)&&M0){X0&&((0,N.ensureObject)(g,"spaces","attribute"),g.spaces.attribute.before=X0,X0=""),Z0&&((0,N.ensureObject)(g,"raws","spaces","attribute"),g.raws.spaces.attribute.before=X0,Z0=""),g.namespace=(g.namespace||"")+Y0;var g0=(0,N.getProp)(g,"raws","namespace")||null;g0&&(g.raws.namespace+=Y0),K0="namespace"}B0=!1;break;case M.dollar:if(K0==="value"){var T0=(0,N.getProp)(g,"raws","value");g.value+="$",T0&&(g.raws.value=T0+"$");break}case M.caret:M0[A.FIELDS.TYPE]===M.equals&&(g.operator=Y0,K0="operator"),B0=!1;break;case M.combinator:if(Y0==="~"&&M0[A.FIELDS.TYPE]===M.equals&&(g.operator=Y0,K0="operator"),Y0!=="|"){B0=!1;break}M0[A.FIELDS.TYPE]===M.equals?(g.operator=Y0,K0="operator"):!g.namespace&&!g.attribute&&(g.namespace=!0),B0=!1;break;case M.word:if(M0&&this.content(M0)==="|"&&v[J0+2]&&v[J0+2][A.FIELDS.TYPE]!==M.equals&&!g.operator&&!g.namespace)g.namespace=Y0,K0="namespace";else if(!g.attribute||K0==="attribute"&&!B0){X0&&((0,N.ensureObject)(g,"spaces","attribute"),g.spaces.attribute.before=X0,X0=""),Z0&&((0,N.ensureObject)(g,"raws","spaces","attribute"),g.raws.spaces.attribute.before=Z0,Z0=""),g.attribute=(g.attribute||"")+Y0;var l0=(0,N.getProp)(g,"raws","attribute")||null;l0&&(g.raws.attribute+=Y0),K0="attribute"}else if(!g.value&&g.value!==""||K0==="value"&&!B0){var p0=(0,N.unesc)(Y0),i0=(0,N.getProp)(g,"raws","value")||"",Z1=g.value||"";g.value=Z1+p0,g.quoteMark=null,(p0!==Y0||i0)&&((0,N.ensureObject)(g,"raws"),g.raws.value=(i0||Z1)+Y0),K0="value"}else{var Q1=Y0==="i"||Y0==="I";(g.value||g.value==="")&&(g.quoteMark||B0)?(g.insensitive=Q1,(!Q1||Y0==="I")&&((0,N.ensureObject)(g,"raws"),g.raws.insensitiveFlag=Y0),K0="insensitive",X0&&((0,N.ensureObject)(g,"spaces","insensitive"),g.spaces.insensitive.before=X0,X0=""),Z0&&((0,N.ensureObject)(g,"raws","spaces","insensitive"),g.raws.spaces.insensitive.before=Z0,Z0="")):(g.value||g.value==="")&&(K0="value",g.value+=Y0,g.raws.value&&(g.raws.value+=Y0))}B0=!1;break;case M.str:if(!g.attribute||!g.operator)return this.error("Expected an attribute followed by an operator preceding the string.",{index:D0[A.FIELDS.START_POS]});var a0=(0,z.unescapeValue)(Y0),U5=a0.unescaped,h1=a0.quoteMark;g.value=U5,g.quoteMark=h1,K0="value",(0,N.ensureObject)(g,"raws"),g.raws.value=Y0,B0=!1;break;case M.equals:if(!g.attribute)return this.expected("attribute",D0[A.FIELDS.START_POS],Y0);if(g.value)return this.error('Unexpected "=" found; an operator was already defined.',{index:D0[A.FIELDS.START_POS]});g.operator=g.operator?g.operator+Y0:Y0,K0="operator",B0=!1;break;case M.comment:if(K0)if(B0||M0&&M0[A.FIELDS.TYPE]===M.space||K0==="insensitive"){var t1=(0,N.getProp)(g,"spaces",K0,"after")||"",V5=(0,N.getProp)(g,"raws","spaces",K0,"after")||t1;(0,N.ensureObject)(g,"raws","spaces",K0),g.raws.spaces[K0].after=V5+Y0}else{var W8=g[K0]||"",B5=(0,N.getProp)(g,"raws",K0)||W8;(0,N.ensureObject)(g,"raws"),g.raws[K0]=B5+Y0}else Z0=Z0+Y0;break;default:return this.error('Unexpected "'+Y0+'" found.',{index:D0[A.FIELDS.START_POS]})}J0++}c(g,"attribute"),c(g,"namespace"),this.newNode(new z.default(g)),this.position++},m.parseWhitespaceEquivalentTokens=function(v){v<0&&(v=this.tokens.length);var k=this.position,o=[],g="",J0=void 0;do if(h[this.currToken[A.FIELDS.TYPE]])this.options.lossy||(g+=this.content());else if(this.currToken[A.FIELDS.TYPE]===M.comment){var X0={};g&&(X0.before=g,g=""),J0=new Q.default({value:this.content(),source:S(this.currToken),sourceIndex:this.currToken[A.FIELDS.START_POS],spaces:X0}),o.push(J0)}while(++this.position<v);if(g){if(J0)J0.spaces.after=g;else if(!this.options.lossy){var Z0=this.tokens[k],K0=this.tokens[this.position-1];o.push(new w.default({value:"",source:P(Z0[A.FIELDS.START_LINE],Z0[A.FIELDS.START_COL],K0[A.FIELDS.END_LINE],K0[A.FIELDS.END_COL]),sourceIndex:Z0[A.FIELDS.START_POS],spaces:{before:g,after:""}}))}}return o},m.convertWhitespaceNodesToSpace=function(v,k){var o=this;k===void 0&&(k=!1);var g="",J0="";v.forEach(function(Z0){var K0=o.lossySpace(Z0.spaces.before,k),B0=o.lossySpace(Z0.rawSpaceBefore,k);g+=K0+o.lossySpace(Z0.spaces.after,k&&K0.length===0),J0+=K0+Z0.value+o.lossySpace(Z0.rawSpaceAfter,k&&B0.length===0)}),J0===g&&(J0=void 0);var X0={space:g,rawSpace:J0};return X0},m.isNamedCombinator=function(v){return v===void 0&&(v=this.position),this.tokens[v+0]&&this.tokens[v+0][A.FIELDS.TYPE]===M.slash&&this.tokens[v+1]&&this.tokens[v+1][A.FIELDS.TYPE]===M.word&&this.tokens[v+2]&&this.tokens[v+2][A.FIELDS.TYPE]===M.slash},m.namedCombinator=function(){if(this.isNamedCombinator()){var v=this.content(this.tokens[this.position+1]),k=(0,N.unesc)(v).toLowerCase(),o={};k!==v&&(o.value="/"+v+"/");var g=new V.default({value:"/"+k+"/",source:P(this.currToken[A.FIELDS.START_LINE],this.currToken[A.FIELDS.START_COL],this.tokens[this.position+2][A.FIELDS.END_LINE],this.tokens[this.position+2][A.FIELDS.END_COL]),sourceIndex:this.currToken[A.FIELDS.START_POS],raws:o});return this.position=this.position+3,g}else this.unexpected()},m.combinator=function(){var v=this;if(this.content()==="|")return this.namespace();var k=this.locateNextMeaningfulToken(this.position);if(k<0||this.tokens[k][A.FIELDS.TYPE]===M.comma){var o=this.parseWhitespaceEquivalentTokens(k);if(o.length>0){var g=this.current.last;if(g){var J0=this.convertWhitespaceNodesToSpace(o),X0=J0.space,Z0=J0.rawSpace;Z0!==void 0&&(g.rawSpaceAfter+=Z0),g.spaces.after+=X0}else o.forEach(function(i0){return v.newNode(i0)})}return}var K0=this.currToken,B0=void 0;k>this.position&&(B0=this.parseWhitespaceEquivalentTokens(k));var D0;if(this.isNamedCombinator()?D0=this.namedCombinator():this.currToken[A.FIELDS.TYPE]===M.combinator?(D0=new V.default({value:this.content(),source:S(this.currToken),sourceIndex:this.currToken[A.FIELDS.START_POS]}),this.position++):h[this.currToken[A.FIELDS.TYPE]]||B0||this.unexpected(),D0){if(B0){var Y0=this.convertWhitespaceNodesToSpace(B0),M0=Y0.space,v0=Y0.rawSpace;D0.spaces.before=M0,D0.rawSpaceBefore=v0}}else{var u0=this.convertWhitespaceNodesToSpace(B0,!0),g0=u0.space,T0=u0.rawSpace;T0||(T0=g0);var l0={},p0={spaces:{}};g0.endsWith(" ")&&T0.endsWith(" ")?(l0.before=g0.slice(0,g0.length-1),p0.spaces.before=T0.slice(0,T0.length-1)):g0.startsWith(" ")&&T0.startsWith(" ")?(l0.after=g0.slice(1),p0.spaces.after=T0.slice(1)):p0.value=T0,D0=new V.default({value:" ",source:T(K0,this.tokens[this.position-1]),sourceIndex:K0[A.FIELDS.START_POS],spaces:l0,raws:p0})}return this.currToken&&this.currToken[A.FIELDS.TYPE]===M.space&&(D0.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(D0)},m.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}this.current._inferEndPosition();var v=new X.default({source:{start:u(this.tokens[this.position+1])}});this.current.parent.append(v),this.current=v,this.position++},m.comment=function(){var v=this.currToken;this.newNode(new Q.default({value:this.content(),source:S(v),sourceIndex:v[A.FIELDS.START_POS]})),this.position++},m.error=function(v,k){throw this.root.error(v,k)},m.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[A.FIELDS.START_POS]})},m.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[A.FIELDS.START_POS])},m.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[A.FIELDS.START_POS])},m.unexpected=function(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[A.FIELDS.START_POS])},m.namespace=function(){var v=this.prevToken&&this.content(this.prevToken)||!0;if(this.nextToken[A.FIELDS.TYPE]===M.word)return this.position++,this.word(v);if(this.nextToken[A.FIELDS.TYPE]===M.asterisk)return this.position++,this.universal(v)},m.nesting=function(){if(this.nextToken){var v=this.content(this.nextToken);if(v==="|"){this.position++;return}}var k=this.currToken;this.newNode(new B.default({value:this.content(),source:S(k),sourceIndex:k[A.FIELDS.START_POS]})),this.position++},m.parentheses=function(){var v=this.current.last,k=1;if(this.position++,v&&v.type===O.PSEUDO){var o=new X.default({source:{start:u(this.tokens[this.position-1])}}),g=this.current;for(v.append(o),this.current=o;this.position<this.tokens.length&&k;)this.currToken[A.FIELDS.TYPE]===M.openParenthesis&&k++,this.currToken[A.FIELDS.TYPE]===M.closeParenthesis&&k--,k?this.parse():(this.current.source.end=p(this.currToken),this.current.parent.source.end=p(this.currToken),this.position++);this.current=g}else{for(var J0=this.currToken,X0="(",Z0;this.position<this.tokens.length&&k;)this.currToken[A.FIELDS.TYPE]===M.openParenthesis&&k++,this.currToken[A.FIELDS.TYPE]===M.closeParenthesis&&k--,Z0=this.currToken,X0+=this.parseParenthesisToken(this.currToken),this.position++;v?v.appendToPropertyAndEscape("value",X0,X0):this.newNode(new w.default({value:X0,source:P(J0[A.FIELDS.START_LINE],J0[A.FIELDS.START_COL],Z0[A.FIELDS.END_LINE],Z0[A.FIELDS.END_COL]),sourceIndex:J0[A.FIELDS.START_POS]}))}if(k)return this.expected("closing parenthesis",this.currToken[A.FIELDS.START_POS])},m.pseudo=function(){for(var v=this,k="",o=this.currToken;this.currToken&&this.currToken[A.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[A.FIELDS.TYPE]===M.word)this.splitWord(!1,function(g,J0){k+=g,v.newNode(new H.default({value:k,source:T(o,v.currToken),sourceIndex:o[A.FIELDS.START_POS]})),J0>1&&v.nextToken&&v.nextToken[A.FIELDS.TYPE]===M.openParenthesis&&v.error("Misplaced parenthesis.",{index:v.nextToken[A.FIELDS.START_POS]})});else return this.expected(["pseudo-class","pseudo-element"],this.currToken[A.FIELDS.START_POS])},m.space=function(){var v=this.content();this.position===0||this.prevToken[A.FIELDS.TYPE]===M.comma||this.prevToken[A.FIELDS.TYPE]===M.openParenthesis||this.current.nodes.every(function(k){return k.type==="comment"})?(this.spaces=this.optionalSpace(v),this.position++):this.position===this.tokens.length-1||this.nextToken[A.FIELDS.TYPE]===M.comma||this.nextToken[A.FIELDS.TYPE]===M.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(v),this.position++):this.combinator()},m.string=function(){var v=this.currToken;this.newNode(new w.default({value:this.content(),source:S(v),sourceIndex:v[A.FIELDS.START_POS]})),this.position++},m.universal=function(v){var k=this.nextToken;if(k&&this.content(k)==="|")return this.position++,this.namespace();var o=this.currToken;this.newNode(new U.default({value:this.content(),source:S(o),sourceIndex:o[A.FIELDS.START_POS]}),v),this.position++},m.splitWord=function(v,k){for(var o=this,g=this.nextToken,J0=this.content();g&&~[M.dollar,M.caret,M.equals,M.word].indexOf(g[A.FIELDS.TYPE]);){this.position++;var X0=this.content();if(J0+=X0,X0.lastIndexOf("\\")===X0.length-1){var Z0=this.nextToken;Z0&&Z0[A.FIELDS.TYPE]===M.space&&(J0+=this.requiredSpace(this.content(Z0)),this.position++)}g=this.nextToken}var K0=d(J0,".").filter(function(M0){var v0=J0[M0-1]==="\\",u0=/^\d+\.\d+%$/.test(J0);return!v0&&!u0}),B0=d(J0,"#").filter(function(M0){return J0[M0-1]!=="\\"}),D0=d(J0,"#{");D0.length&&(B0=B0.filter(function(M0){return!~D0.indexOf(M0)}));var Y0=(0,L.default)(a([0].concat(K0,B0)));Y0.forEach(function(M0,v0){var u0=Y0[v0+1]||J0.length,g0=J0.slice(M0,u0);if(v0===0&&k)return k.call(o,g0,Y0.length);var T0,l0=o.currToken,p0=l0[A.FIELDS.START_POS]+Y0[v0],i0=P(l0[1],l0[2]+M0,l0[3],l0[2]+(u0-1));if(~K0.indexOf(M0)){var Z1={value:g0.slice(1),source:i0,sourceIndex:p0};T0=new Z.default(c(Z1,"value"))}else if(~B0.indexOf(M0)){var Q1={value:g0.slice(1),source:i0,sourceIndex:p0};T0=new W.default(c(Q1,"value"))}else{var a0={value:g0,source:i0,sourceIndex:p0};c(a0,"value"),T0=new $.default(a0)}o.newNode(T0,v),v=null}),this.position++},m.word=function(v){var k=this.nextToken;return k&&this.content(k)==="|"?(this.position++,this.namespace()):this.splitWord(v)},m.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.current._inferEndPosition(),this.root},m.parse=function(v){switch(this.currToken[A.FIELDS.TYPE]){case M.space:this.space();break;case M.comment:this.comment();break;case M.openParenthesis:this.parentheses();break;case M.closeParenthesis:v&&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()}},m.expected=function(v,k,o){if(Array.isArray(v)){var g=v.pop();v=v.join(", ")+" or "+g}var J0=/^[aeiou]/.test(v[0])?"an":"a";return o?this.error("Expected "+J0+" "+v+', found "'+o+'" instead.',{index:k}):this.error("Expected "+J0+" "+v+".",{index:k})},m.requiredSpace=function(v){return this.options.lossy?" ":v},m.optionalSpace=function(v){return this.options.lossy?"":v},m.lossySpace=function(v,k){return this.options.lossy?k?" ":"":v},m.parseParenthesisToken=function(v){var k=this.content(v);return v[A.FIELDS.TYPE]===M.space?this.requiredSpace(k):k},m.newNode=function(v,k){return k&&(/^ +$/.test(k)&&(this.options.lossy||(this.spaces=(this.spaces||"")+k),k=!0),v.namespace=k,c(v,"namespace")),this.spaces&&(v.spaces.before=this.spaces,this.spaces=""),this.current.append(v)},m.content=function(v){return v===void 0&&(v=this.currToken),this.css.slice(v[A.FIELDS.START_POS],v[A.FIELDS.END_POS])},m.locateNextMeaningfulToken=function(v){v===void 0&&(v=this.position+1);for(var k=v;k<this.tokens.length;)if(l[this.tokens[k][A.FIELDS.TYPE]]){k++;continue}else return k;return-1},C(x,[{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]}}]),x}();J.default=r,K.exports=J.default}),kH=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=X(yH());function X(Q){return Q&&Q.__esModule?Q:{default:Q}}var Z=function(){function Q($,w){this.func=$||function(){},this.funcRes=null,this.options=w}var W=Q.prototype;return W._shouldUpdateSelector=function($,w){w===void 0&&(w={});var H=Object.assign({},this.options,w);return H.updateSelector===!1?!1:typeof $!="string"},W._isLossy=function($){$===void 0&&($={});var w=Object.assign({},this.options,$);return w.lossless===!1},W._root=function($,w){w===void 0&&(w={});var H=new Y.default($,this._parseOptions(w));return H.root},W._parseOptions=function($){return{lossy:this._isLossy($)}},W._run=function($,w){var H=this;return w===void 0&&(w={}),new Promise(function(z,U){try{var V=H._root($,w);Promise.resolve(H.func(V)).then(function(B){var L=void 0;return H._shouldUpdateSelector($,w)&&(L=V.toString(),$.selector=L),{transform:B,root:V,string:L}}).then(z,U)}catch(B){U(B);return}})},W._runSync=function($,w){w===void 0&&(w={});var H=this._root($,w),z=this.func(H);if(z&&typeof z.then=="function")throw Error("Selector processor returned a promise to a synchronous call.");var U=void 0;return w.updateSelector&&typeof $!="string"&&(U=H.toString(),$.selector=U),{transform:z,root:H,string:U}},W.ast=function($,w){return this._run($,w).then(function(H){return H.root})},W.astSync=function($,w){return this._runSync($,w).root},W.transform=function($,w){return this._run($,w).then(function(H){return H.transform})},W.transformSync=function($,w){return this._runSync($,w).transform},W.process=function($,w){return this._run($,w).then(function(H){return H.string||H.root.toString()})},W.processSync=function($,w){var H=this._runSync($,w);return H.string||H.root.toString()},Q}();J.default=Z,K.exports=J.default}),hH=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(lK()),Y=B(gK()),X=B(uK()),Z=B(xK()),Q=B(bK()),W=B(pK()),$=B(cK()),w=B(kK()),H=B(hK()),z=B(mK()),U=B(fK()),V=B(dK());function B(h){return h&&h.__esModule?h:{default:h}}var L=function(h){return new K.default(h)};J.attribute=L;var A=function(h){return new Y.default(h)};J.className=A;var M=function(h){return new X.default(h)};J.combinator=M;var O=function(h){return new Z.default(h)};J.comment=O;var N=function(h){return new Q.default(h)};J.id=N;var E=function(h){return new W.default(h)};J.nesting=E;var D=function(h){return new $.default(h)};J.pseudo=D;var F=function(h){return new w.default(h)};J.root=F;var j=function(h){return new H.default(h)};J.selector=j;var R=function(h){return new z.default(h)};J.string=R;var I=function(h){return new U.default(h)};J.tag=I;var C=function(h){return new V.default(h)};J.universal=C}),gH=t((J)=>{J.__esModule=!0,J.isNode=Z,J.isPseudoElement=N,J.isPseudoClass=E,J.isContainer=D,J.isNamespace=F,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=c0(),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(j){return typeof j=="object"&&X[j.type]}function Q(j,R){return Z(R)&&R.type===j}var W=Q.bind(null,K.ATTRIBUTE);J.isAttribute=W;var $=Q.bind(null,K.CLASS);J.isClassName=$;var w=Q.bind(null,K.COMBINATOR);J.isCombinator=w;var H=Q.bind(null,K.COMMENT);J.isComment=H;var z=Q.bind(null,K.ID);J.isIdentifier=z;var U=Q.bind(null,K.NESTING);J.isNesting=U;var V=Q.bind(null,K.PSEUDO);J.isPseudo=V;var B=Q.bind(null,K.ROOT);J.isRoot=B;var L=Q.bind(null,K.SELECTOR);J.isSelector=L;var A=Q.bind(null,K.STRING);J.isString=A;var M=Q.bind(null,K.TAG);J.isTag=M;var O=Q.bind(null,K.UNIVERSAL);J.isUniversal=O;function N(j){return V(j)&&j.value&&(j.value.startsWith("::")||j.value.toLowerCase()===":before"||j.value.toLowerCase()===":after"||j.value.toLowerCase()===":first-letter"||j.value.toLowerCase()===":first-line")}function E(j){return V(j)&&!N(j)}function D(j){return!!(Z(j)&&j.walk)}function F(j){return W(j)||M(j)}}),xH=t((J)=>{J.__esModule=!0;var K=c0();Object.keys(K).forEach(function(Z){Z==="default"||Z==="__esModule"||Z in J&&J[Z]===K[Z]||(J[Z]=K[Z])});var Y=hH();Object.keys(Y).forEach(function(Z){Z==="default"||Z==="__esModule"||Z in J&&J[Z]===Y[Z]||(J[Z]=Y[Z])});var X=gH();Object.keys(X).forEach(function(Z){Z==="default"||Z==="__esModule"||Z in J&&J[Z]===X[Z]||(J[Z]=X[Z])})}),bH=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=W(kH()),X=Q(xH());function Z(){if(typeof WeakMap!="function")return null;var H=new WeakMap;return Z=function(){return H},H}function Q(H){if(H&&H.__esModule)return H;if(H===null||typeof H!="object"&&typeof H!="function")return{default:H};var z=Z();if(z&&z.has(H))return z.get(H);var U={},V=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var B in H)if(Object.prototype.hasOwnProperty.call(H,B)){var L=V?Object.getOwnPropertyDescriptor(H,B):null;L&&(L.get||L.set)?Object.defineProperty(U,B,L):U[B]=H[B]}return U.default=H,z&&z.set(H,U),U}function W(H){return H&&H.__esModule?H:{default:H}}var $=function(H){return new Y.default(H)};Object.assign($,X),delete $.__esModule;var w=$;J.default=w,K.exports=J.default}),fH=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>K});function K(Y){return Y.replace(/\\,/g,"\\2c ")}}),mH=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]}}),nK=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function K(L,A){for(var M in A)Object.defineProperty(L,M,{enumerable:!0,get:A[M]})}K(J,{parseColor:()=>V,formatColor:()=>B});var Y=X(mH());function X(L){return L&&L.__esModule?L:{default:L}}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,W=/(?:\d+|\d*\.\d+)%?/,$=/(?:\s*,\s*|\s+)/,w=/\s*[,/]\s*/,H=/var\(--(?:[^ )]*?)\)/,z=new RegExp(`^(rgb)a?\\(\\s*(${W.source}|${H.source})(?:${$.source}(${W.source}|${H.source}))?(?:${$.source}(${W.source}|${H.source}))?(?:${w.source}(${W.source}|${H.source}))?\\s*\\)$`),U=new RegExp(`^(hsl)a?\\(\\s*((?:${W.source})(?:deg|rad|grad|turn)?|${H.source})(?:${$.source}(${W.source}|${H.source}))?(?:${$.source}(${W.source}|${H.source}))?(?:${w.source}(${W.source}|${H.source}))?\\s*\\)$`);function V(L,{loose:A=!1}={}){var M,O;if(typeof L!="string")return null;if(L=L.trim(),L==="transparent")return{mode:"rgb",color:["0","0","0"],alpha:"0"};if(L in Y.default)return{mode:"rgb",color:Y.default[L].map((j)=>j.toString())};let N=L.replace(Q,(j,R,I,C,h)=>["#",R,R,I,I,C,C,h?h+h:""].join("")).match(Z);if(N!==null)return{mode:"rgb",color:[parseInt(N[1],16),parseInt(N[2],16),parseInt(N[3],16)].map((j)=>j.toString()),alpha:N[4]?(parseInt(N[4],16)/255).toString():void 0};var E;let D=(E=L.match(z))!==null&&E!==void 0?E:L.match(U);if(D===null)return null;let F=[D[2],D[3],D[4]].filter(Boolean).map((j)=>j.toString());return!A&&F.length!==3||F.length<3&&!F.some((j)=>/^var\(.*?\)$/.test(j))?null:{mode:D[1],color:F,alpha:(M=D[5])===null||M===void 0||(O=M.toString)===null||O===void 0?void 0:O.call(M)}}function B({mode:L,color:A,alpha:M}){let O=M!==void 0;return`${L}(${A.join(" ")}${O?` / ${M}`:""})`}}),rK=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function K(Q,W){for(var $ in W)Object.defineProperty(Q,$,{enumerable:!0,get:W[$]})}K(J,{withAlphaValue:()=>X,default:()=>Z});var Y=nK();function X(Q,W,$){if(typeof Q=="function")return Q({opacityValue:W});let w=(0,Y.parseColor)(Q,{loose:!0});return w===null?$:(0,Y.formatColor)({...w,alpha:W})}function Z({color:Q,property:W,variable:$}){let w=[].concat(W);if(typeof Q=="function")return{[$]:"1",...Object.fromEntries(w.map((z)=>[z,Q({opacityVariable:$,opacityValue:`var(${$})`})]))};let H=(0,Y.parseColor)(Q);return H===null?Object.fromEntries(w.map((z)=>[z,Q])):H.alpha!==void 0?Object.fromEntries(w.map((z)=>[z,Q])):{[$]:"1",...Object.fromEntries(w.map((z)=>[z,(0,Y.formatColor)({...H,alpha:`var(${$})`})]))}}}),cH=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function K(V,B){for(var L in B)Object.defineProperty(V,L,{enumerable:!0,get:B[L]})}K(J,{pattern:()=>Q,withoutCapturing:()=>W,any:()=>$,optional:()=>w,zeroOrMore:()=>H,nestedBrackets:()=>z,escape:()=>U});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 W(V){return new RegExp(`(?:${Z(V)})`,"g")}function $(V){return`(?:${V.map(Z).join("|")})`}function w(V){return`(?:${Z(V)})?`}function H(V){return`(?:${Z(V)})*`}function z(V,B,L=1){return W([U(V),/[^\s]*/,L===1?`[^${U(V)}${U(B)}s]*`:$([`[^${U(V)}${U(B)}s]*`,z(V,B,L-1)]),/[^\s]*/,U(B)])}function U(V){return V&&X.test(V)?V.replace(Y,"\\$&"):V||""}}),lH=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"splitAtTopLevelOnly",{enumerable:!0,get:()=>Z});var K=X(cH());function Y(Q){if(typeof WeakMap!="function")return null;var W=new WeakMap,$=new WeakMap;return(Y=function(w){return w?$:W})(Q)}function X(Q,W){if(!W&&Q&&Q.__esModule)return Q;if(Q===null||typeof Q!="object"&&typeof Q!="function")return{default:Q};var $=Y(W);if($&&$.has(Q))return $.get(Q);var w={},H=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var z in Q)if(z!=="default"&&Object.prototype.hasOwnProperty.call(Q,z)){var U=H?Object.getOwnPropertyDescriptor(Q,z):null;U&&(U.get||U.set)?Object.defineProperty(w,z,U):w[z]=Q[z]}return w.default=Q,$&&$.set(Q,w),w}function*Z(Q,W){let $=new RegExp(`[(){}\\[\\]${K.escape(W)}]`,"g"),w=0,H=0,z=!1,U=0,V=0,B=W.length;for(let L of Q.matchAll($)){let A=L[0]===W[U],M=U===B-1,O=A&&M;L[0]==="("&&w++,L[0]===")"&&w--,L[0]==="["&&w++,L[0]==="]"&&w--,L[0]==="{"&&w++,L[0]==="}"&&w--,A&&w===0&&(V===0&&(V=L.index),U++),O&&w===0&&(z=!0,yield Q.substring(H,V),H=V+B),U===B&&(U=0,V=0)}z?yield Q.substring(H):yield Q}}),dH=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function K(w,H){for(var z in H)Object.defineProperty(w,z,{enumerable:!0,get:H[z]})}K(J,{parseBoxShadowValue:()=>W,formatBoxShadowValue:()=>$});var Y=lH(),X=new Set(["inset","inherit","initial","revert","unset"]),Z=/\ +(?![^(]*\))/g,Q=/^-?(\d+|\.\d+)(.*?)$/g;function W(w){return Array.from((0,Y.splitAtTopLevelOnly)(w,",")).map((H)=>{let z=H.trim(),U={raw:z},V=z.split(Z),B=new Set;for(let L of V)Q.lastIndex=0,!B.has("KEYWORD")&&X.has(L)?(U.keyword=L,B.add("KEYWORD")):Q.test(L)?B.has("X")?B.has("Y")?B.has("BLUR")?B.has("SPREAD")||(U.spread=L,B.add("SPREAD")):(U.blur=L,B.add("BLUR")):(U.y=L,B.add("Y")):(U.x=L,B.add("X")):U.color?(U.unknown||(U.unknown=[]),U.unknown.push(L)):U.color=L;return U.valid=U.x!==void 0&&U.y!==void 0,U})}function $(w){return w.map((H)=>H.valid?[H.keyword,H.x,H.y,H.blur,H.spread,H.color].filter(Boolean).join(" "):H.raw).join(", ")}}),uH=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function K(P,S){for(var T in S)Object.defineProperty(P,T,{enumerable:!0,get:S[T]})}K(J,{normalize:()=>$,url:()=>w,number:()=>H,percentage:()=>z,length:()=>B,lineWidth:()=>A,shadow:()=>M,color:()=>O,image:()=>N,gradient:()=>D,position:()=>j,familyName:()=>R,genericName:()=>C,absoluteSize:()=>l,relativeSize:()=>p});var Y=nK(),X=dH(),Z=["min","max","clamp","calc"],Q=/,(?![^(]*\))/g,W=/_(?![^(]*\))/g;function $(P,S=!0){return P.includes("url(")?P.split(/(url\(.*?\))/g).filter(Boolean).map((T)=>/^url\(.*?\)$/.test(T)?T:$(T,!1)).join(""):(P=P.replace(/([^\\])_+/g,(T,c)=>c+" ".repeat(T.length-1)).replace(/^_/g," ").replace(/\\_/g,"_"),S&&(P=P.trim()),P=P.replace(/(calc|min|max|clamp)\(.+\)/g,(T)=>T.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 ")),P)}function w(P){return P.startsWith("url(")}function H(P){return!isNaN(Number(P))||Z.some((S)=>new RegExp(`^${S}\\(.+?`).test(P))}function z(P){return P.split(W).every((S)=>/%$/g.test(S)||Z.some((T)=>new RegExp(`^${T}\\(.+?%`).test(S)))}var U=["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","lh","vw","vh","vmin","vmax"],V=`(?:${U.join("|")})`;function B(P){return P.split(W).every((S)=>S==="0"||new RegExp(`${V}$`).test(S)||Z.some((T)=>new RegExp(`^${T}\\(.+?${V}`).test(S)))}var L=new Set(["thin","medium","thick"]);function A(P){return L.has(P)}function M(P){let S=(0,X.parseBoxShadowValue)($(P));for(let T of S)if(!T.valid)return!1;return!0}function O(P){let S=0;return P.split(W).every((T)=>(T=$(T),T.startsWith("var(")?!0:(0,Y.parseColor)(T,{loose:!0})!==null?(S++,!0):!1))?S>0:!1}function N(P){let S=0;return P.split(Q).every((T)=>(T=$(T),T.startsWith("var(")?!0:w(T)||D(T)||["element(","image(","cross-fade(","image-set("].some((c)=>T.startsWith(c))?(S++,!0):!1))?S>0:!1}var E=new Set(["linear-gradient","radial-gradient","repeating-linear-gradient","repeating-radial-gradient","conic-gradient"]);function D(P){P=$(P);for(let S of E)if(P.startsWith(`${S}(`))return!0;return!1}var F=new Set(["center","top","right","bottom","left"]);function j(P){let S=0;return P.split(W).every((T)=>(T=$(T),T.startsWith("var(")?!0:F.has(T)||B(T)||z(T)?(S++,!0):!1))?S>0:!1}function R(P){let S=0;return P.split(Q).every((T)=>(T=$(T),T.startsWith("var(")?!0:T.includes(" ")&&!/(['"])([^"']+)\1/g.test(T)||/^\d/g.test(T)?!1:(S++,!0)))?S>0:!1}var I=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","math","emoji","fangsong"]);function C(P){return I.has(P)}var h=new Set(["xx-small","x-small","small","medium","large","x-large","x-large","xxx-large"]);function l(P){return h.has(P)}var u=new Set(["larger","smaller"]);function p(P){return u.has(P)}}),pH=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function K(j,R){for(var I in R)Object.defineProperty(j,I,{enumerable:!0,get:R[I]})}K(J,{updateAllClasses:()=>w,asValue:()=>U,parseColorFormat:()=>L,asColor:()=>A,asLookupValue:()=>M,coerceValue:()=>F});var Y=$(bH()),X=$(fH()),Z=rK(),Q=uH(),W=$(PK());function $(j){return j&&j.__esModule?j:{default:j}}function w(j,R){return(0,Y.default)((I)=>{I.walkClasses((C)=>{let h=R(C.value);C.value=h,C.raws&&C.raws.value&&(C.raws.value=(0,X.default)(C.raws.value))})}).processSync(j)}function H(j,R){if(!V(j))return;let I=j.slice(1,-1);if(R(I))return(0,Q.normalize)(I)}function z(j,R={},I){let C=R[j];if(C!==void 0)return(0,W.default)(C);if(V(j)){let h=H(j,I);return h===void 0?void 0:(0,W.default)(h)}}function U(j,R={},{validate:I=()=>!0}={}){var C;let h=(C=R.values)===null||C===void 0?void 0:C[j];return h!==void 0?h:R.supportsNegativeValues&&j.startsWith("-")?z(j.slice(1),R.values,I):H(j,I)}function V(j){return j.startsWith("[")&&j.endsWith("]")}function B(j){let R=j.lastIndexOf("/");return R===-1||R===j.length-1?[j]:[j.slice(0,R),j.slice(R+1)]}function L(j){if(typeof j=="string"&&j.includes("<alpha-value>")){let R=j;return({opacityValue:I=1})=>R.replace("<alpha-value>",I)}return j}function A(j,R={},{tailwindConfig:I={}}={}){var C;if(((C=R.values)===null||C===void 0?void 0:C[j])!==void 0){var h;return L((h=R.values)===null||h===void 0?void 0:h[j])}let[l,u]=B(j);if(u!==void 0){var p,P,S,T;let c=(T=(p=R.values)===null||p===void 0?void 0:p[l])!==null&&T!==void 0?T:V(l)?l.slice(1,-1):void 0;return c===void 0?void 0:(c=L(c),V(u)?(0,Z.withAlphaValue)(c,u.slice(1,-1)):((P=I.theme)===null||P===void 0||(S=P.opacity)===null||S===void 0?void 0:S[u])===void 0?void 0:(0,Z.withAlphaValue)(c,I.theme.opacity[u]))}return U(j,R,{validate:Q.color})}function M(j,R={}){var I;return(I=R.values)===null||I===void 0?void 0:I[j]}function O(j){return(R,I)=>U(R,I,{validate:j})}var N={any:U,color:A,url:O(Q.url),image:O(Q.image),length:O(Q.length),percentage:O(Q.percentage),position:O(Q.position),lookup:M,"generic-name":O(Q.genericName),"family-name":O(Q.familyName),number:O(Q.number),"line-width":O(Q.lineWidth),"absolute-size":O(Q.absoluteSize),"relative-size":O(Q.relativeSize),shadow:O(Q.shadow)},E=Object.keys(N);function D(j,R){let I=j.indexOf(R);return I===-1?[void 0,j]:[j.slice(0,I),j.slice(I+1)]}function F(j,R,I,C){if(V(R)){let h=R.slice(1,-1),[l,u]=D(h,":");if(!/^[\w-_]+$/g.test(l))u=h;else if(l!==void 0&&!E.includes(l))return[];if(u.length>0&&E.includes(l))return[U(`[${u}]`,I),l]}for(let h of[].concat(j)){let l=N[h](R,I,{tailwindConfig:C});if(l!==void 0)return[l,h]}return[]}}),iH=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}}),nH=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>p});var K=L(PK()),Y=L(OH()),X=L(NH()),Z=L(SK()),Q=L(jH()),W=EH(),$=FH(),w=_H(),H=L(DH()),z=IH(),U=pH(),V=rK(),B=L(iH());function L(P){return P&&P.__esModule?P:{default:P}}function A(P){return typeof P=="function"}function M(P){return typeof P=="object"&&P!==null}function O(P,...S){let T=S.pop();for(let c of S)for(let d in c){let a=T(P[d],c[d]);a===void 0?M(P[d])&&M(c[d])?P[d]=O(P[d],c[d],T):P[d]=c[d]:P[d]=a}return P}var N={colors:Q.default,negative(P){return Object.keys(P).filter((S)=>P[S]!=="0").reduce((S,T)=>{let c=(0,K.default)(P[T]);return c!==void 0&&(S[`-${T}`]=c),S},{})},breakpoints(P){return Object.keys(P).filter((S)=>typeof P[S]=="string").reduce((S,T)=>({...S,[`screen-${T}`]:P[T]}),{})}};function E(P,...S){return A(P)?P(...S):P}function D(P){return P.reduce((S,{extend:T})=>O(S,T,(c,d)=>c===void 0?[d]:Array.isArray(c)?[d,...c]:[d,c]),{})}function F(P){return{...P.reduce((S,T)=>(0,W.defaults)(S,T),{}),extend:D(P)}}function j(P,S){if(Array.isArray(P)&&M(P[0]))return P.concat(S);if(Array.isArray(S)&&M(S[0])&&M(P))return[P,...S];if(Array.isArray(S))return S}function R({extend:P,...S}){return O(S,P,(T,c)=>!A(T)&&!c.some(A)?O({},T,...c,j):(d,a)=>O({},...[T,...c].map((r)=>E(r,d,a)),j))}function*I(P){let S=(0,$.toPath)(P);if(S.length===0||(yield S,Array.isArray(P)))return;let T=/^(.*?)\s*\/\s*([^/]+)$/,c=P.match(T);if(c!==null){let[,d,a]=c,r=(0,$.toPath)(d);r.alpha=a,yield r}}function C(P){let S=(T,c)=>{for(let d of I(T)){let a=0,r=P;for(;r!=null&&a<d.length;)r=r[d[a++]],r=A(r)&&(d.alpha===void 0||a<=d.length-1)?r(S,N):r;if(r!==void 0){if(d.alpha!==void 0){let x=(0,U.parseColorFormat)(r);return(0,V.withAlphaValue)(x,d.alpha,(0,B.default)(x))}return(0,H.default)(r)?(0,z.cloneDeep)(r):r}}return c};return Object.assign(S,{theme:S,...N}),Object.keys(P).reduce((T,c)=>(T[c]=A(P[c])?P[c](S,N):P[c],T),{})}function h(P){let S=[];return P.forEach((T)=>{S=[...S,T];var c;let d=(c=T==null?void 0:T.plugins)!==null&&c!==void 0?c:[];d.length!==0&&d.forEach((a)=>{a.__isOptionsFunction&&(a=a());var r;S=[...S,...h([(r=a==null?void 0:a.config)!==null&&r!==void 0?r:{}])]})}),S}function l(P){return[...P].reduceRight((S,T)=>A(T)?T({corePlugins:S}):(0,X.default)(T,S),Y.default)}function u(P){return[...P].reduceRight((S,T)=>[...S,...T],[])}function p(P){let S=[...h(P),{prefix:"",important:!1,separator:":",variantOrder:Z.default.variantOrder}];var T,c;return(0,w.normalizeConfig)((0,W.defaults)({theme:C(R(F(S.map((d)=>(T=d==null?void 0:d.theme)!==null&&T!==void 0?T:{})))),corePlugins:l(S.map((d)=>d.corePlugins)),plugins:u(P.map((d)=>(c=d==null?void 0:d.plugins)!==null&&c!==void 0?c:[]))},...S))}}),oK={};b4(oK,{default:()=>sK});var sK,rH=x4(()=>{sK={yellow:(J)=>J}}),oH=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function K(U,V){for(var B in V)Object.defineProperty(U,B,{enumerable:!0,get:V[B]})}K(J,{flagEnabled:()=>$,issueFlagNotices:()=>H,default:()=>z});var Y=Z((rH(),n8(oK))),X=Z((f4(),n8(s8)));function Z(U){return U&&U.__esModule?U:{default:U}}var Q={optimizeUniversalDefaults:!1},W={future:["hoverOnlyWhenSupported","respectDefaultRingColorOpacity"],experimental:["optimizeUniversalDefaults","matchVariant"]};function $(U,V){if(W.future.includes(V)){var B,L,A;return U.future==="all"||((A=(L=U==null||(B=U.future)===null||B===void 0?void 0:B[V])!==null&&L!==void 0?L:Q[V])!==null&&A!==void 0?A:!1)}if(W.experimental.includes(V)){var M,O,N;return U.experimental==="all"||((N=(O=U==null||(M=U.experimental)===null||M===void 0?void 0:M[V])!==null&&O!==void 0?O:Q[V])!==null&&N!==void 0?N:!1)}return!1}function w(U){if(U.experimental==="all")return W.experimental;var V;return Object.keys((V=U==null?void 0:U.experimental)!==null&&V!==void 0?V:{}).filter((B)=>W.experimental.includes(B)&&U.experimental[B])}function H(U){if(process.env.JEST_WORKER_ID===void 0&&w(U).length>0){let V=w(U).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 z=W}),sH=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>Z});var K=X(SK()),Y=oH();function X(Q){return Q&&Q.__esModule?Q:{default:Q}}function Z(Q){var W;let $=((W=Q==null?void 0:Q.presets)!==null&&W!==void 0?W:[K.default]).slice().reverse().flatMap((z)=>Z(typeof z=="function"?z():z)),w={respectDefaultRingColorOpacity:{theme:{ringColor:{DEFAULT:"#3b82f67f"}}}},H=Object.keys(w).filter((z)=>(0,Y.flagEnabled)(Q,z)).map((z)=>w[z]);return[Q,...H,...$]}}),aH=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>Z});var K=X(nH()),Y=X(sH());function X(Q){return Q&&Q.__esModule?Q:{default:Q}}function Z(...Q){let[,...W]=(0,Y.default)(Q[0]);return(0,K.default)([...Q,...W])}}),tH=t((J,K)=>{var Y=aH();K.exports=(Y.__esModule?Y:{default:Y}).default}),S8;var i5=null;async function t8(){return S8||(i5?(await i5,S8):(i5=Promise.resolve().then(()=>(qH(),CK)).then((J)=>J.getYogaModule()).then((J)=>S8=J),await i5,i5=null,S8))}var e5=(J,K)=>()=>(K||J((K={exports:{}}).exports,K),K.exports),eH=e5((J,K)=>{K.exports=["em","ex","ch","rem","vh","vw","vmin","vmax","px","mm","cm","in","pt","pc","mozmm"]}),Jz=e5((J,K)=>{K.exports=["deg","grad","rad","turn"]}),Kz=e5((J,K)=>{K.exports=["dpi","dpcm","dppx"]}),Yz=e5((J,K)=>{K.exports=["Hz","kHz"]}),Xz=e5((J,K)=>{K.exports=["s","ms"]}),Zz=eH(),aK=Jz(),tK=Kz(),eK=Yz(),JY=Xz();function d4(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(Qz(J)>1)throw Error("Only one dot is allowed");if(/%$/.test(J)){this.type="percentage",this.value=O4(J),this.unit="%";return}var K=wz(J);if(!K){this.type="number",this.value=O4(J);return}this.type=Hz(K),this.value=O4(J.substr(0,J.length-K.length)),this.unit=K}d4.prototype.valueOf=function(){return this.value};d4.prototype.toString=function(){return this.value+(this.unit||"")};function J8(J){return new d4(J)}function Qz(J){var K=J.match(/\./g);return K?K.length:0}function O4(J){var K=parseFloat(J);if(isNaN(K))throw Error("Invalid number: "+J);return K}var Wz=[].concat(aK,eK,Zz,tK,JY);function wz(J){var K=J.match(/\D+$/),Y=K&&K[0];if(Y&&Wz.indexOf(Y)===-1)throw Error("Invalid unit: "+Y);return Y}var $z=Object.assign(v8(aK,"angle"),v8(eK,"frequency"),v8(tK,"resolution"),v8(JY,"time"));function v8(J,K){return Object.fromEntries(J.map((Y)=>[Y,K]))}function Hz(J){return $z[J]||"length"}function l8(J){let K=typeof J;return!(K==="number"||K==="bigint"||K==="string"||K==="boolean")}function zz(J){return/^class\s/.test(J.toString())}function Uz(J){return"dangerouslySetInnerHTML"in J}function Vz(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 J8(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 KY(J);if(Q.type==="percentage"&&Z)return Q.value/100*Y}}catch{}}function KY(J){let K=new J8(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 d8(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 A1(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 N4,j4,Bz=[32,160,4961,65792,65793,4153,4241,10].map((J)=>String.fromCodePoint(J));function M1(J,K,Y){if(!N4||!j4){if(!(typeof Intl<"u"&&("Segmenter"in Intl)))throw Error("Intl.Segmenter does not exist, please use import a polyfill.");N4=new Intl.Segmenter(Y,{granularity:"word"}),j4=new Intl.Segmenter(Y,{granularity:"grapheme"})}if(K==="grapheme")return[...j4.segment(J)].map((X)=>X.segment);{let X=[...N4.segment(J)].map((W)=>W.segment),Z=[],Q=0;for(;Q<X.length;){let W=X[Q];if(W=="\xA0"){let $=Q===0?"":Z.pop(),w=Q===X.length-1?"":X[Q+1];Z.push($+"\xA0"+w),Q+=2}else Z.push(W),Q++}return Z}}function s(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 Az(J=20){let K=new Map;function Y(Q,W){if(K.size>=J){let $=K.keys().next().value;K.delete($)}K.set(Q,W)}function X(Q){if(!K.has(Q))return;let W=K.get(Q);return K.delete(Q),K.set(Q,W),W}function Z(){K.clear()}return{set:Y,get:X,clear:Z}}function u4(J){return J?J.split(/[, ]/).filter(Boolean).map(Number):null}function Gz(J){return Object.prototype.toString.call(J)}function YY(J){return typeof J=="string"}function Mz(J){return typeof J=="number"}function Lz(J){return Gz(J)==="[object Undefined]"}function qz(J,K){if(K==="break-all")return{words:M1(J,"grapheme"),requiredBreaks:[]};if(K==="keep-all")return{words:M1(J,"word"),requiredBreaks:[]};let Y=new P6(J),X=0,Z=Y.nextBreak(),Q=[],W=[!1];for(;Z;){let $=J.slice(X,Z.position);Q.push($),Z.required?W.push(!0):W.push(!1),X=Z.position,Z=Y.nextBreak()}return{words:Q,requiredBreaks:W}}var Oz=(J)=>J.replaceAll(/([A-Z])/g,(K,Y)=>`-${Y.toLowerCase()}`);function XY(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 Nz="image/avif",jz="image/webp",e8="image/apng",J6="image/png",K6="image/jpeg",Y6="image/gif",p4="image/svg+xml";function ZY(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 QY(J){let K=new Uint8Array(J.slice(6,10));return[K[0]|K[1]<<8,K[2]|K[3]<<8]}function WY(J){let K=new DataView(J);return[K.getUint16(18,!1),K.getUint16(22,!1)]}var r1=Az(100),u8=new Map,Ez=[J6,e8,K6,Y6,p4];function Fz(J){let K="",Y=new Uint8Array(J);for(let X=0;X<Y.byteLength;X++)K+=String.fromCharCode(Y[X]);return btoa(K)}function _z(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 XK(J,K){let Y=K.match(/<svg[^>]*>/)[0],X=Y.match(/viewBox=['"](.+)['"]/),Z=X?u4(X[1]):null,Q=Y.match(/width=['"](\d*\.\d+|\d+)['"]/),W=Y.match(/height=['"](\d*\.\d+|\d+)['"]/);if(!Z&&(!Q||!W))throw Error(`Failed to parse SVG from ${J}: missing "viewBox"`);let $=Z?[Z[2],Z[3]]:[+Q[1],+W[1]],w=$[0]/$[1];return Q&&W?[+Q[1],+W[1]]:Q?[+Q[1],+Q[1]/w]:W?[+W[1]*w,+W[1]]:[$[0],$[1]]}function ZK(J){let K,Y=Dz(new Uint8Array(J));switch(Y){case J6:case e8:K=WY(J);break;case Y6:K=QY(J);break;case K6:K=ZY(J);break}if(!Ez.includes(Y))throw Error(`Unsupported image type: ${Y||"unknown"}`);return[`data:${Y};base64,${Fz(J)}`,K]}async function i4(J){if(!J)throw Error("Image source is not provided.");if(typeof J=="object"){let[Z,Q]=ZK(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:W,dataString:$}=Z;if(Q===p4){let w=W==="base64"?atob($):decodeURIComponent($.replace(/ /g,"%20")),H=W==="base64"?J:`data:image/svg+xml;base64,${btoa(w)}`,z=XK(J,w);return r1.set(J,[H,...z]),[H,...z]}else if(W==="base64"){let w,H=_z($);switch(Q){case J6:case e8:w=WY(H);break;case Y6:w=QY(H);break;case K6:w=ZY(H);break}return r1.set(J,[J,...w]),[J,...w]}else return console.warn("Image data URI resolved without size:"+J),r1.set(J,[J]),[J]}if(!globalThis.fetch)throw Error("`fetch` is required to be polyfilled to load images.");if(u8.has(J))return u8.get(J);let K=r1.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 $=`data:image/svg+xml;base64,${btoa(Z)}`,w=XK(Y,Z);return[$,...w]}catch($){throw Error(`Failed to parse SVG image: ${$.message}`)}let[Q,W]=ZK(Z);return[Q,...W]}).then((Z)=>(r1.set(Y,Z),Z)).catch((Z)=>(console.error(`Can't load image ${Y}: `+Z.message),r1.set(Y,[]),[]));return u8.set(Y,X),X}function Dz(J){return[255,216,255].every((K,Y)=>J[Y]===K)?K6:[137,80,78,71,13,10,26,10].every((K,Y)=>J[Y]===K)?Iz(J)?e8:J6:[71,73,70,56].every((K,Y)=>J[Y]===K)?Y6:[82,73,70,70,0,0,0,0,87,69,66,80].every((K,Y)=>!K||J[Y]===K)?jz:[60,63,120,109,108].every((K,Y)=>J[Y]===K)?p4:[0,0,0,0,102,116,121,112,97,118,105,102].every((K,Y)=>!K||J[Y]===K)?Nz:null}function Iz(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 W=J.subarray(Z+4,Z+8);Y=String.fromCharCode(...W),Q=Y==="acTL",Z+=12+X}return Q}var P4={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"},Rz=/[\r\n%#()<>?[\\\]^`{|}"']/g;function S4(J,K){if(!J)return"";if(Array.isArray(J))return J.map((H)=>S4(H,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||{},W=(Z==null?void 0:Z.color)||K,$=`${Object.entries(Q).map(([H,z])=>(typeof z=="string"&&z.toLowerCase()==="currentcolor"&&(z=W),H==="href"&&Y==="image"?` ${P4[H]||H}="${r1.get(z)[0]}"`:` ${P4[H]||H}="${z}"`)).join("")}`,w=Z?` style="${Object.entries(Z).map(([H,z])=>`${Oz(H)}:${z}`).join(";")}"`:"";return`<${Y}${$}${w}>${S4(X,W)}</${Y}>`}async function Tz(J){let K=new Set,Y=(X)=>{if(X&&l8(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)=>i4(X)))}async function Cz(J,K){let{viewBox:Y,viewbox:X,width:Z,height:Q,className:W,style:$,children:w,...H}=J.props||{};Y||=X,H.xmlns="http://www.w3.org/2000/svg";let z=($==null?void 0:$.color)||K,U=u4(Y),V=U?U[3]/U[2]:null;return Z=Z||V&&Q?Q/V:null,Q=Q||V&&Z?Z*V:null,H.width=Z,H.height=Q,Y&&(H.viewBox=Y),`data:image/svg+xml;utf8,${`<svg ${Object.entries(H).map(([B,L])=>(typeof L=="string"&&L.toLowerCase()==="currentcolor"&&(L=z),` ${P4[B]||B}="${L}"`)).join("")}>${S4(w,z)}</svg>`.replace(Rz,encodeURIComponent)}`}var Y1="flex",Pz={p:{display:Y1,marginTop:"1em",marginBottom:"1em"},div:{display:Y1},blockquote:{display:Y1,marginTop:"1em",marginBottom:"1em",marginLeft:40,marginRight:40},center:{display:Y1,textAlign:"center"},hr:{display:Y1,marginTop:"0.5em",marginBottom:"0.5em",marginLeft:"auto",marginRight:"auto",borderWidth:1,borderStyle:"solid"},h1:{display:Y1,fontSize:"2em",marginTop:"0.67em",marginBottom:"0.67em",marginLeft:0,marginRight:0,fontWeight:"bold"},h2:{display:Y1,fontSize:"1.5em",marginTop:"0.83em",marginBottom:"0.83em",marginLeft:0,marginRight:0,fontWeight:"bold"},h3:{display:Y1,fontSize:"1.17em",marginTop:"1em",marginBottom:"1em",marginLeft:0,marginRight:0,fontWeight:"bold"},h4:{display:Y1,marginTop:"1.33em",marginBottom:"1.33em",marginLeft:0,marginRight:0,fontWeight:"bold"},h5:{display:Y1,fontSize:"0.83em",marginTop:"1.67em",marginBottom:"1.67em",marginLeft:0,marginRight:0,fontWeight:"bold"},h6:{display:Y1,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:Y1,fontFamily:"monospace",whiteSpace:"pre",marginTop:"1em",marginBottom:"1em"},mark:{backgroundColor:"yellow",color:"black"},big:{fontSize:"larger"},small:{fontSize:"smaller"},s:{textDecoration:"line-through"}},Sz=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 vz(J){let K={};for(let Y in J)Sz.has(Y)&&(K[Y]=J[Y]);return K}function yz(J,K){try{let Y=new J8(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 E4(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=yz(J,K);return X.absolute?{[Y?"xAbsolute":"yAbsolute"]:X.absolute}:X.relative?{[Y?"xRelative":"yRelative"]:X.relative}:{}}}}function kz(J,K){if(typeof J=="number")return{xAbsolute:J};let Y;try{Y=HY.default(J).nodes.filter((X)=>X.type==="word").map((X)=>X.value)}catch{return{}}return Y.length===1?E4(Y[0],K,!0):Y.length===2?((Y[0]==="top"||Y[0]==="bottom"||Y[1]==="left"||Y[1]==="right")&&Y.reverse(),{...E4(Y[0],K,!0),...E4(Y[1],K,!1)}):{}}function n5(J,K){let Y=zY.getPropertyName(`mask-${K}`);return J[Y]||J[`WebkitM${Y.substring(1)}`]}function hz(J){let K=J.maskImage||J.WebkitMaskImage,Y={position:n5(J,"position")||"0% 0%",size:n5(J,"size")||"100% 100%",repeat:n5(J,"repeat")||"repeat",origin:n5(J,"origin")||"border-box",clip:n5(J,"origin")||"border-box"};return XY(K).filter((X)=>X&&X!=="none").reverse().map((X)=>({image:X,...Y}))}var gz=new Set(["flex","flexGrow","flexShrink","flexBasis","fontWeight","lineHeight","opacity","scale","scaleX","scaleY"]),xz=new Set(["lineHeight"]);function bz(J,K,Y,X){return J==="textDecoration"&&!Y.includes(K.textDecorationColor)&&(K.textDecorationColor=X),K}function W5(J,K){let Y=Number(K);return isNaN(Y)?K:gz.has(J)?xz.has(J)?Y:String(K):Y+"px"}function fz(J,K,Y){if(J==="lineHeight")return{lineHeight:W5(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=G1.getStylesForProperty(J,X,!0),W=G1.getStylesForProperty(J,Z,!0);for(let $ in Q)W[$]=W5(J,Q[$])+" "+W5(J,W[$]);return W}if(/^border(Top|Right|Bottom|Left)?$/.test(J)){let X=G1.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:W5(J+"Width",X.borderWidth),Style:A1(X.borderStyle,{solid:"solid",dashed:"dashed"},"solid",J+"Style"),Color:X.borderColor},Q={};for(let W of J==="border"?["Top","Right","Bottom","Left"]:[J.slice(6)])for(let $ in Z)Q["border"+W+$]=Z[$];return Q}if(J==="boxShadow"){if(!K)throw Error('Invalid `boxShadow` value: "'+K+'".');return{[J]:typeof K=="string"?$Y.parse(K):K}}if(J==="transform"){if(typeof K!="string")throw Error("Invalid `transform` value.");let X={},Z=K.replace(/(-?[\d.]+%)/g,(W,$)=>{let w=~~(Math.random()*1e9);return X[w]=$,w+"px"}),Q=G1.getStylesForProperty("transform",Z,!0);for(let W of Q.transform)for(let $ in W)X[W[$]]&&(W[$]=X[W[$]]);return Q}if(J==="background")return K=K.toString().trim(),/^(linear-gradient|radial-gradient|url|repeating-linear-gradient)\(/.test(K)?G1.getStylesForProperty("backgroundImage",K,!0):G1.getStylesForProperty("background",K,!0);if(J==="textShadow"){K=K.toString().trim();let X={},Z=XY(K);for(let Q of Z){let W=G1.getStylesForProperty("textShadow",Q,!0);for(let $ in W)X[$]?X[$].push(W[$]):X[$]=[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:W5(J,X[0]),WebkitTextStrokeColor:W5(J,X[1])}}}function QK(J){return J==="transform"?" Only absolute lengths such as `10px` are supported.":""}var WK=/rgb\((\d+)\s+(\d+)\s+(\d+)\s*\/\s*([\.\d]+)\)/;function UY(J){if(typeof J=="string"&&WK.test(J.trim()))return J.trim().replace(WK,(K,Y,X,Z,Q)=>`rgba(${Y}, ${X}, ${Z}, ${Q})`);if(typeof J=="object"&&J!==null){for(let K in J)J[K]=UY(J[K]);return J}return J}function wK(J,K){let Y={};if(J){let Z=cz(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 W=G1.getPropertyName(Q),$=dz(J[Q],Z);try{let w=fz(W,$,Z)||bz(W,G1.getStylesForProperty(W,W5(W,$),!0),$,Z);Object.assign(Y,w)}catch(w){throw Error(w.message+(w.message.includes($)?`
64
+ `+QK(W):`
65
+ in CSS rule \`${W}: ${$}\`.${QK(W)}`))}}}if(Y.backgroundImage){let{backgrounds:Z}=wY.parseElementStyle(Y);Y.backgroundImage=Z}(Y.maskImage||Y.WebkitMaskImage)&&(Y.maskImage=hz(Y));let X=mz(Y.fontSize,K.fontSize);typeof Y.fontSize<"u"&&(Y.fontSize=X),Y.transformOrigin&&(Y.transformOrigin=kz(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 W=U0(Q,X,X,K);typeof W<"u"&&(Y[Z]=W),Q=Y[Z]}if(typeof Q=="string"||typeof Q=="object"){let W=UY(Q);W&&(Y[Z]=W),Q=Y[Z]}}if(Z==="opacity"&&typeof Q=="number"&&(Y.opacity=Q*K.opacity),Z==="transform"){let W=Q;for(let $ of W){let w=Object.keys($)[0],H=$[w],z=typeof H=="string"?U0(H,X,X,K)??H:H;$[w]=z}}if(Z==="textShadowRadius"){let W=Q;Y.textShadowRadius=W.map(($)=>U0($,X,0,K,!1))}if(Z==="textShadowOffset"){let W=Q;Y.textShadowOffset=W.map(({height:$,width:w})=>({height:U0($,X,0,K,!1),width:U0(w,X,0,K,!1)}))}}return Y}function mz(J,K){if(typeof J=="number")return J;try{let Y=new J8(J);switch(Y.unit){case"em":return Y.value*K;case"rem":return Y.value*16}}catch{return K}}function $K(J){if(J.startsWith("hsl")){let K=j8(J),[Y,X,Z]=K.values;return`hsl(${[Y,`${X}%`,`${Z}%`].concat(K.alpha===1?[]:[K.alpha]).join(",")})`}return J}function cz(J,K){return J&&J.toLowerCase()!=="currentcolor"?$K(J):$K(K)}function lz(J,K){return J.replace(/currentcolor/gi,K)}function dz(J,K){return YY(J)&&(J=lz(J,K)),J}async function uz(J,K,Y,X,Z){let Q=await t8(),W={...Y,...wK(Pz[K],Y),...wK(X,Y)};if(K==="img"){let[$,w,H]=await i4(Z.src);if(w===void 0&&H===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),H=parseInt(Z.height)}let z=H/w,U=(W.borderLeftWidth||0)+(W.borderRightWidth||0)+(W.paddingLeft||0)+(W.paddingRight||0),V=(W.borderTopWidth||0)+(W.borderBottomWidth||0)+(W.paddingTop||0)+(W.paddingBottom||0),B=W.width||Z.width,L=W.height||Z.height,A=typeof B=="number"&&typeof L=="number";A&&(B-=U,L-=V),B===void 0&&L===void 0?(B="100%",J.setAspectRatio(1/z)):B===void 0?typeof L=="number"?B=L/z:J.setAspectRatio(1/z):L===void 0&&(typeof B=="number"?L=B*z:J.setAspectRatio(1/z)),W.width=A?B+U:B,W.height=A?L+V:L,W.__src=$}if(K==="svg"){let $=Z.viewBox||Z.viewbox,w=u4($),H=w?w[3]/w[2]:null,{width:z,height:U}=Z;typeof z>"u"&&U?H==null?z=0:typeof U=="string"&&U.endsWith("%")?z=parseInt(U)/H+"%":(U=U0(U,Y.fontSize,1,Y),z=U/H):typeof U>"u"&&z?H==null?z=0:typeof z=="string"&&z.endsWith("%")?U=parseInt(z)*H+"%":(z=U0(z,Y.fontSize,1,Y),U=z*H):(typeof z<"u"&&(z=U0(z,Y.fontSize,1,Y)||z),typeof U<"u"&&(U=U0(U,Y.fontSize,1,Y)||U),z||=w==null?void 0:w[2],U||=w==null?void 0:w[3]),!W.width&&z&&(W.width=z),!W.height&&U&&(W.height=U)}return J.setDisplay(A1(W.display,{flex:Q.DISPLAY_FLEX,block:Q.DISPLAY_FLEX,none:Q.DISPLAY_NONE,"-webkit-box":Q.DISPLAY_FLEX},Q.DISPLAY_FLEX,"display")),J.setAlignContent(A1(W.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(A1(W.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(A1(W.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(A1(W.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(A1(W.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(A1(W.flexWrap,{wrap:Q.WRAP_WRAP,nowrap:Q.WRAP_NO_WRAP,"wrap-reverse":Q.WRAP_WRAP_REVERSE},Q.WRAP_NO_WRAP,"flexWrap")),typeof W.gap<"u"&&J.setGap(Q.GUTTER_ALL,W.gap),typeof W.rowGap<"u"&&J.setGap(Q.GUTTER_ROW,W.rowGap),typeof W.columnGap<"u"&&J.setGap(Q.GUTTER_COLUMN,W.columnGap),typeof W.flexBasis<"u"&&J.setFlexBasis(W.flexBasis),J.setFlexGrow(typeof W.flexGrow>"u"?0:W.flexGrow),J.setFlexShrink(typeof W.flexShrink>"u"?0:W.flexShrink),typeof W.maxHeight<"u"&&J.setMaxHeight(W.maxHeight),typeof W.maxWidth<"u"&&J.setMaxWidth(W.maxWidth),typeof W.minHeight<"u"&&J.setMinHeight(W.minHeight),typeof W.minWidth<"u"&&J.setMinWidth(W.minWidth),J.setOverflow(A1(W.overflow,{visible:Q.OVERFLOW_VISIBLE,hidden:Q.OVERFLOW_HIDDEN},Q.OVERFLOW_VISIBLE,"overflow")),J.setMargin(Q.EDGE_TOP,W.marginTop||0),J.setMargin(Q.EDGE_BOTTOM,W.marginBottom||0),J.setMargin(Q.EDGE_LEFT,W.marginLeft||0),J.setMargin(Q.EDGE_RIGHT,W.marginRight||0),J.setBorder(Q.EDGE_TOP,W.borderTopWidth||0),J.setBorder(Q.EDGE_BOTTOM,W.borderBottomWidth||0),J.setBorder(Q.EDGE_LEFT,W.borderLeftWidth||0),J.setBorder(Q.EDGE_RIGHT,W.borderRightWidth||0),J.setPadding(Q.EDGE_TOP,W.paddingTop||0),J.setPadding(Q.EDGE_BOTTOM,W.paddingBottom||0),J.setPadding(Q.EDGE_LEFT,W.paddingLeft||0),J.setPadding(Q.EDGE_RIGHT,W.paddingRight||0),J.setPositionType(A1(W.position,{absolute:Q.POSITION_TYPE_ABSOLUTE,relative:Q.POSITION_TYPE_RELATIVE},Q.POSITION_TYPE_RELATIVE,"position")),typeof W.top<"u"&&J.setPosition(Q.EDGE_TOP,W.top),typeof W.bottom<"u"&&J.setPosition(Q.EDGE_BOTTOM,W.bottom),typeof W.left<"u"&&J.setPosition(Q.EDGE_LEFT,W.left),typeof W.right<"u"&&J.setPosition(Q.EDGE_RIGHT,W.right),typeof W.height<"u"?J.setHeight(W.height):J.setHeightAuto(),typeof W.width<"u"?J.setWidth(W.width):J.setWidthAuto(),[W,vz(W)]}var HK=[1,0,0,1,0,0];function pz(J,K,Y){let X=[...HK];for(let Z of J){let Q=Object.keys(Z)[0],W=Z[Q];if(typeof W=="string")if(Q==="translateX")W=parseFloat(W)/100*K,Z[Q]=W;else if(Q==="translateY")W=parseFloat(W)/100*Y,Z[Q]=W;else throw Error(`Invalid transform: "${Q}: ${W}".`);let $=W,w=[...HK];switch(Q){case"translateX":w[4]=$;break;case"translateY":w[5]=$;break;case"scale":w[0]=$,w[3]=$;break;case"scaleX":w[0]=$;break;case"scaleY":w[3]=$;break;case"rotate":{let H=$*Math.PI/180,z=Math.cos(H),U=Math.sin(H);w[0]=z,w[1]=U,w[2]=-U,w[3]=z;break}case"skewX":w[2]=Math.tan($*Math.PI/180);break;case"skewY":w[1]=Math.tan($*Math.PI/180);break}X=d8(w,X)}J.splice(0,J.length),J.push(...X),J.__resolved=!0}function VY({left:J,top:K,width:Y,height:X},Z,Q,W){let $;Z.__resolved||pz(Z,Y,X);let w=Z;if(Q)$=w;else{let H=(W==null?void 0:W.xAbsolute)??((W==null?void 0:W.xRelative)??50)*Y/100,z=(W==null?void 0:W.yAbsolute)??((W==null?void 0:W.yRelative)??50)*X/100,U=J+H,V=K+z;$=d8([1,0,0,1,U,V],d8(w,[1,0,0,1,-U,-V])),w.__parent&&($=d8(w.__parent,$)),w.splice(0,6,...$)}return`matrix(${$.map((H)=>H.toFixed(2)).join(",")})`}function iz({left:J,top:K,width:Y,height:X,isInheritingTransform:Z},Q){let W="",$=1;return Q.transform&&(W=VY({left:J,top:K,width:Y,height:X},Q.transform,Z,Q.transformOrigin)),Q.opacity!==void 0&&($=+Q.opacity),{matrix:W,opacity:$}}function nz({id:J,content:K,filter:Y,left:X,top:Z,width:Q,height:W,matrix:$,opacity:w,image:H,clipPathId:z,debug:U,shape:V,decorationShape:B},L){let A="";if(U&&(A=s("rect",{x:X,y:Z-W,width:Q,height:W,fill:"transparent",stroke:"#575eff","stroke-width":1,transform:$||void 0,"clip-path":z?`url(#${z})`:void 0})),H){let O={href:H,x:X,y:Z,width:Q,height:W,transform:$||void 0,"clip-path":z?`url(#${z})`:void 0,style:L.filter?`filter:${L.filter}`:void 0};return[(Y?`${Y}<g filter="url(#satori_s-${J})">`:"")+s("image",{...O,opacity:w!==1?w:void 0})+(B||"")+(Y?"</g>":"")+A,""]}let M={x:X,y:Z,width:Q,height:W,"font-weight":L.fontWeight,"font-style":L.fontStyle,"font-size":L.fontSize,"font-family":L.fontFamily,"letter-spacing":L.letterSpacing||void 0,transform:$||void 0,"clip-path":z?`url(#${z})`:void 0,style:L.filter?`filter:${L.filter}`:void 0,"stroke-width":L.WebkitTextStrokeWidth?`${L.WebkitTextStrokeWidth}px`:void 0,stroke:L.WebkitTextStrokeWidth?L.WebkitTextStrokeColor:void 0,"stroke-linejoin":L.WebkitTextStrokeWidth?"round":void 0,"paint-order":L.WebkitTextStrokeWidth?"stroke":void 0};return[(Y?`${Y}<g filter="url(#satori_s-${J})">`:"")+s("text",{...M,fill:L.color,opacity:w!==1?w:void 0},v4.default(K))+(B||"")+(Y?"</g>":"")+A,V?s("text",M,v4.default(K)):""]}function rz(J,K,Y){return J.replace(/([MA])([0-9.-]+),([0-9.-]+)/g,function(X,Z,Q,W){return Z+(parseFloat(Q)+K)+","+(parseFloat(W)+Y)})}var y8=1.1;function oz({id:J,width:K,height:Y},X){if(!X.shadowColor||!X.shadowOffset||typeof X.shadowRadius>"u")return"";let Z=X.shadowColor.length,Q="",W="",$=0,w=K,H=0,z=Y;for(let U=0;U<Z;U++){let V=X.shadowRadius[U]*X.shadowRadius[U]/4;$=Math.min(X.shadowOffset[U].width-V,$),w=Math.max(X.shadowOffset[U].width+V+K,w),H=Math.min(X.shadowOffset[U].height-V,H),z=Math.max(X.shadowOffset[U].height+V+Y,z),Q+=s("feDropShadow",{dx:X.shadowOffset[U].width,dy:X.shadowOffset[U].height,stdDeviation:X.shadowRadius[U]/2,"flood-color":X.shadowColor[U],"flood-opacity":1,...Z>1?{in:"SourceGraphic",result:`satori_s-${J}-result-${U}`}:{}}),Z>1&&(W=s("feMergeNode",{in:`satori_s-${J}-result-${U}`})+W)}return s("filter",{id:`satori_s-${J}`,x:($/K*100*y8).toFixed(2)+"%",y:(H/Y*100*y8).toFixed(2)+"%",width:((w-$)/K*100*y8).toFixed(2)+"%",height:((z-H)/Y*100*y8).toFixed(2)+"%"},Q+(W?s("feMerge",{},W):""))}function sz({width:J,height:K,shape:Y,opacity:X,id:Z},Q){if(!Q.boxShadow)return null;let W="",$="";for(let w=Q.boxShadow.length-1;w>=0;w--){let H="",z=Q.boxShadow[w];z.spreadRadius&&z.inset&&(z.spreadRadius=-z.spreadRadius);let U=z.blurRadius*z.blurRadius/4+(z.spreadRadius||0),V=Math.min(-U-(z.inset?z.offsetX:0),0),B=Math.max(U+J-(z.inset?z.offsetX:0),J),L=Math.min(-U-(z.inset?z.offsetY:0),0),A=Math.max(U+K-(z.inset?z.offsetY:0),K),M=`satori_s-${Z}-${w}`,O=`satori_ms-${Z}-${w}`,N=z.spreadRadius?Y.replace('stroke-width="0"',`stroke-width="${z.spreadRadius*2}"`):Y;H+=s("mask",{id:O,maskUnits:"userSpaceOnUse"},s("rect",{x:0,y:0,width:Q._viewportWidth||"100%",height:Q._viewportHeight||"100%",fill:z.inset?"#000":"#fff"})+N.replace('fill="#fff"',z.inset?'fill="#fff"':'fill="#000"').replace('stroke="#fff"',""));let E=N.replace(/d="([^"]+)"/,(D,F)=>'d="'+rz(F,z.offsetX,z.offsetY)+'"').replace(/x="([^"]+)"/,(D,F)=>'x="'+(parseFloat(F)+z.offsetX)+'"').replace(/y="([^"]+)"/,(D,F)=>'y="'+(parseFloat(F)+z.offsetY)+'"');z.spreadRadius&&z.spreadRadius<0&&(H+=s("mask",{id:O+"-neg",maskUnits:"userSpaceOnUse"},E.replace('stroke="#fff"','stroke="#000"').replace(/stroke-width="[^"]+"/,`stroke-width="${-z.spreadRadius*2}"`))),z.spreadRadius&&z.spreadRadius<0&&(E=s("g",{mask:`url(#${O}-neg)`},E)),H+=s("defs",{},s("filter",{id:M,x:`${V/J*100}%`,y:`${L/K*100}%`,width:`${(B-V)/J*100}%`,height:`${(A-L)/K*100}%`},s("feGaussianBlur",{stdDeviation:z.blurRadius/2,result:"b"})+s("feFlood",{"flood-color":z.color,in:"SourceGraphic",result:"f"})+s("feComposite",{in:"f",in2:"b",operator:z.inset?"out":"in"})))+s("g",{mask:`url(#${O})`,filter:`url(#${M})`,opacity:X},E),z.inset?$+=H:W+=H}return[W,$]}function az({width:J,left:K,top:Y,ascender:X,clipPathId:Z,matrix:Q},W){let{textDecorationColor:$,textDecorationStyle:w,textDecorationLine:H,fontSize:z,color:U}=W;if(!H||H==="none")return"";let V=Math.max(1,z*0.1),B=H==="line-through"?Y+X*0.7:H==="underline"?Y+X*1.1:Y,L=w==="dashed"?`${V*1.2} ${V*2}`:w==="dotted"?`0 ${V*2}`:void 0;return(Z?`<g clip-path="url(#${Z})">`:"")+s("line",{x1:K,y1:B,x2:K+J,y2:B,stroke:$||U,"stroke-width":V,"stroke-dasharray":L,"stroke-linecap":w==="dotted"?"round":"square",transform:Q})+(Z?"</g>":"")}function n4(J){return J=J.replace("U+","0x"),String.fromCodePoint(Number(J))}var t5=n4("U+0020"),BY=n4("U+0009"),p8=n4("U+2026");function tz(J,K,Y){let{fontSize:X,letterSpacing:Z}=Y,Q=new Map;function W(H){if(Q.has(H))return Q.get(H);let z=J.measure(H,{fontSize:X,letterSpacing:Z});return Q.set(H,z),z}function $(H){let z=0;for(let U of H)K(U)?z+=X:z+=W(U);return z}function w(H){return $(M1(H,"grapheme"))}return{measureGrapheme:W,measureGraphemeArray:$,measureText:w}}function ez(J,K,Y){let{textTransform:X,whiteSpace:Z,wordBreak:Q}=K;J=JU(J,X,Y);let{content:W,shouldCollapseTabsAndSpaces:$,allowSoftWrap:w}=XU(J,Z),{words:H,requiredBreaks:z,allowBreakWord:U}=YU(W,Q),[V,B]=KU(K,w);return{words:H,requiredBreaks:z,allowSoftWrap:w,allowBreakWord:U,processedContent:W,shouldCollapseTabsAndSpaces:$,lineLimit:V,blockEllipsis:B}}function JU(J,K,Y){return K==="uppercase"?J=J.toLocaleUpperCase(Y):K==="lowercase"?J=J.toLocaleLowerCase(Y):K==="capitalize"&&(J=M1(J,"word",Y).map((X)=>M1(X,"grapheme",Y).map((Z,Q)=>Q===0?Z.toLocaleUpperCase(Y):Z).join("")).join("")),J}function KU(J,K){let{textOverflow:Y,lineClamp:X,WebkitLineClamp:Z,WebkitBoxOrient:Q,overflow:W,display:$}=J;if($==="block"&&X){let[w,H=p8]=ZU(X);if(w)return[w,H]}return Y==="ellipsis"&&$==="-webkit-box"&&Q==="vertical"&&Mz(Z)&&Z>0?[Z,p8]:Y==="ellipsis"&&W==="hidden"&&!K?[1,p8]:[1/0]}function YU(J,K){let Y=["break-all","break-word"].includes(K),{words:X,requiredBreaks:Z}=qz(J,K);return{words:X,requiredBreaks:Z,allowBreakWord:Y}}function XU(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,t5)),X&&(J=J.replace(/([ ]|\t)+/g,t5).replace(/^[ ]|[ ]$/g,"")),{content:J,shouldCollapseTabsAndSpaces:X,allowSoftWrap:Z}}function ZU(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],W=X[2];return[Q,W]}else if(Z){let Q=+Z[1],W=Z[2];return[Q,W]}return[]}var QU=new Set([BY]);function WU(J){return QU.has(J)}async function*wU(J,K){let Y=await t8(),{parentStyle:X,inheritedStyle:Z,parent:Q,font:W,id:$,isInheritingTransform:w,debug:H,embedFont:z,graphemeImages:U,locale:V,canLoadAdditionalAssets:B}=K,{textAlign:L,lineHeight:A,textWrap:M,fontSize:O,filter:N,tabSize:E=8,letterSpacing:D,_inheritedBackgroundClipTextPath:F,flexShrink:j}=X,{words:R,requiredBreaks:I,allowSoftWrap:C,allowBreakWord:h,processedContent:l,shouldCollapseTabsAndSpaces:u,lineLimit:p,blockEllipsis:P}=ez(J,X,V),S=$U(Y,L);Q.insertChild(S,Q.getChildCount()),Lz(j)&&Q.setFlexShrink(1);let T=W.getEngine(O,A,X,V),c=B?M1(l,"grapheme").filter((W0)=>!WU(W0)&&!T.has(W0)):[];yield c.map((W0)=>({word:W0,locale:V})),c.length&&(T=W.getEngine(O,A,X,V));function d(W0){return!!(U&&U[W0])}let{measureGrapheme:a,measureGraphemeArray:r,measureText:x}=tz(T,d,{fontSize:O,letterSpacing:D}),m=YY(E)?U0(E,O,1,X):a(t5)*E,v=(W0,O0)=>{if(W0.length===0)return{originWidth:0,endingSpacesWidth:0,text:W0};let{index:E0,tabCount:V0}=HU(W0),I0=0;if(V0>0){let C0=W0.slice(0,E0),_0=W0.slice(E0+V0),L0=x(C0),q1=L0+O0;I0=(m===0?L0:(Math.floor(q1/m)+V0)*m)+x(_0)}else I0=x(W0);let A0=W0.trimEnd()===W0?I0:x(W0.trimEnd());return{originWidth:I0,endingSpacesWidth:I0-A0,text:W0}},k=[],o=[],g=[],J0=[],X0=[];function Z0(W0){let O0=0,E0=0,V0=-1,I0=0,A0=0,C0=0,_0=0;k=[],g=[0],J0=[],X0=[];let L0=0,q1=0;for(;L0<R.length&&O0<p;){let $0=R[L0],e1=I[L0],t0=0,{originWidth:x1,endingSpacesWidth:w8,text:b1}=v($0,A0);$0=b1,t0=x1;let N0=w8;e1&&C0===0&&(C0=T.height($0));let x0=",.!?:-@)>]}%#".indexOf($0[0])<0,W1=!A0,$8=L0&&x0&&A0+t0>W0+N0&&C;if(h&&t0>W0&&(!A0||$8||e1)){let d0=M1($0,"grapheme");R.splice(L0,1,...d0),A0>0&&(k.push(A0-q1),o.push(_0),O0++,I0+=C0,A0=0,C0=0,_0=0,g.push(1),V0=-1),q1=N0;continue}if(e1||$8)u&&$0===t5&&(t0=0),k.push(A0-q1),o.push(_0),O0++,I0+=C0,A0=t0,C0=t0?T.height($0):0,_0=t0?T.baseline($0):0,g.push(1),V0=-1,e1||(E0=Math.max(E0,W0));else{A0+=t0;let d0=T.height($0);d0>C0&&(C0=d0,_0=T.baseline($0)),W1&&g[g.length-1]++}W1&&V0++,E0=Math.max(E0,A0);let T5=A0-t0;if(t0===0)X0.push({y:I0,x:T5,width:0,line:O0,lineIndex:V0,isImage:!1});else{let d0=M1($0,"word");for(let w1=0;w1<d0.length;w1++){let J5=d0[w1],T1=0,C5=!1;d(J5)?(T1=O,C5=!0):T1=a(J5),J0.push(J5),X0.push({y:I0,x:T5,width:T1,line:O0,lineIndex:V0,isImage:C5}),T5+=T1}}L0++,q1=N0}return A0&&(O0<p&&(I0+=C0),O0++,k.push(A0),o.push(_0)),{width:E0,height:I0}}let K0={width:0,height:0};S.setMeasureFunc((W0)=>{let{width:O0,height:E0}=Z0(W0);if(M==="balance"){let I0=O0/2,A0=O0,C0=O0;for(;I0+1<A0;){C0=(I0+A0)/2;let{height:L0}=Z0(C0);L0>E0?I0=C0:A0=C0}Z0(A0);let _0=Math.ceil(A0);return K0={width:_0,height:E0},{width:_0,height:E0}}let V0=Math.ceil(O0);return K0={width:V0,height:E0},{width:V0,height:E0}});let[B0,D0]=yield,Y0="",M0="",v0=Z._inheritedClipPathId,u0=Z._inheritedMaskId,{left:g0,top:T0,width:l0,height:p0}=S.getComputedLayout(),i0=Q.getComputedWidth()-Q.getComputedPadding(Y.EDGE_LEFT)-Q.getComputedPadding(Y.EDGE_RIGHT)-Q.getComputedBorder(Y.EDGE_LEFT)-Q.getComputedBorder(Y.EDGE_RIGHT),Z1=B0+g0,Q1=D0+T0,{matrix:a0,opacity:U5}=iz({left:g0,top:T0,width:l0,height:p0,isInheritingTransform:w},X),h1="";if(X.textShadowOffset){let{textShadowColor:W0,textShadowOffset:O0,textShadowRadius:E0}=X;h1=oz({width:K0.width,height:K0.height,id:$},{shadowColor:W0,shadowOffset:O0,shadowRadius:E0}),h1=s("defs",{},h1)}let t1="",V5="",W8="",B5=-1,A5={},g1=null,N9=0;for(let W0=0;W0<J0.length;W0++){let O0=X0[W0],E0=X0[W0+1];if(!O0)continue;let V0=J0[W0],I0=null,A0=!1,C0=U?U[V0]:null,_0=O0.y,L0=O0.x,q1=O0.width,$0=O0.line;if($0===B5)continue;let e1=!1;if(k.length>1){let N0=l0-k[$0];if(L==="right"||L==="end")L0+=N0;else if(L==="center")L0+=N0/2;else if(L==="justify"&&$0<k.length-1){let x0=g[$0],W1=x0>1?N0/(x0-1):0;L0+=W1*O0.lineIndex,e1=!0}}let t0=o[$0],x1=T.baseline(V0),w8=T.height(V0),b1=t0-x1;if(A5[$0]||(A5[$0]=[L0,Q1+_0+b1,x1,e1?l0:k[$0]]),p!==1/0){let N0=function(d0,w1){let J5=M1(w1,"grapheme",V),T1="",C5=0;for(let j9 of J5){let E9=d0+r([T1+j9]);if(T1&&E9+W1>i0)break;T1+=j9,C5=E9}return{subset:T1,resolvedWidth:C5}},x0=P,W1=a(P);W1>i0&&(x0=p8,W1=a(x0));let $8=a(t5),T5=$0<k.length-1;if($0+1===p&&(T5||k[$0]>i0)){if(L0+q1+W1+$8>i0){let{subset:d0,resolvedWidth:w1}=N0(L0,V0);V0=d0+x0,B5=$0,A5[$0][2]=w1,A0=!0}else if(E0&&E0.line!==$0)if(L==="center"){let{subset:d0,resolvedWidth:w1}=N0(L0,V0);V0=d0+x0,B5=$0,A5[$0][2]=w1,A0=!0}else{let d0=J0[W0+1],{subset:w1,resolvedWidth:J5}=N0(q1+L0,d0);V0=V0+w1+x0,B5=$0,A5[$0][2]=J5,A0=!0}}}if(C0)_0+=0;else if(z){if(!V0.includes(BY)&&!Bz.includes(V0)&&J0[W0+1]&&E0&&!E0.isImage&&_0===E0.y&&!A0){g1===null&&(N9=L0),g1=g1===null?V0:g1+V0;continue}let N0=g1===null?V0:g1+V0,x0=g1===null?L0:N9,W1=O0.width+L0-x0;I0=T.getSVG(N0.replace(/(\t)+/g,""),{fontSize:O,left:Z1+x0,top:Q1+_0+x1+b1,letterSpacing:D}),g1=null,H&&(W8+=s("rect",{x:Z1+x0,y:Q1+_0+b1,width:W1,height:w8,fill:"transparent",stroke:"#575eff","stroke-width":1,transform:a0||void 0,"clip-path":v0?`url(#${v0})`:void 0})+s("line",{x1:Z1+L0,x2:Z1+L0+O0.width,y1:Q1+_0+b1+x1,y2:Q1+_0+b1+x1,stroke:"#14c000","stroke-width":1,transform:a0||void 0,"clip-path":v0?`url(#${v0})`:void 0}))}else _0+=x1+b1;if(X.textDecorationLine){let N0=A5[$0];N0&&!N0[4]&&(t1+=az({left:Z1+N0[0],top:N0[1],width:N0[3],ascender:N0[2],clipPathId:v0,matrix:a0},X),N0[4]=1)}if(I0!==null)V5+=I0+" ";else{let[N0,x0]=nz({content:V0,filter:h1,id:$,left:Z1+L0,top:Q1+_0,width:q1,height:w8,matrix:a0,opacity:U5,image:C0,clipPathId:v0,debug:H,shape:!!F,decorationShape:t1},X);Y0+=N0,M0+=x0,t1=""}if(A0)break}if(V5){let W0=X.color!=="transparent"&&U5!==0?s("path",{fill:X.color,d:V5,transform:a0||void 0,opacity:U5!==1?U5:void 0,"clip-path":v0?`url(#${v0})`:void 0,mask:u0?`url(#${u0})`:void 0,style:N?`filter:${N}`: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}):"";F&&(M0=s("path",{d:V5,transform:a0||void 0})),Y0+=(h1?h1+s("g",{filter:`url(#satori_s-${$})`},W0+t1):W0+t1)+W8}return M0&&(X._inheritedBackgroundClipTextPath.value+=M0),Y0}function $U(J,K){let Y=J.Node.create();return Y.setAlignItems(J.ALIGN_BASELINE),Y.setJustifyContent(A1(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 HU(J){let K=/(\t)+/.exec(J);return K?{index:K.index,tabCount:K[0].length}:{index:null,tabCount:0}}function AY(J,K,Y,X,Z){let Q=[];for(let H of K){let{color:z}=H;if(!Q.length&&(Q.push({offset:0,color:z}),!H.offset||H.offset.value==="0"))continue;let U=typeof H.offset>"u"?void 0:H.offset.unit==="%"?+H.offset.value/100:Number(U0(`${H.offset.value}${H.offset.unit}`,Y.fontSize,J,Y,!0))/J;Q.push({offset:U,color:z})}Q.length||Q.push({offset:0,color:"transparent"});let W=Q[Q.length-1];W.offset!==1&&(typeof W.offset>"u"?W.offset=1:X?Q[Q.length-1]={offset:1,color:W.color}:Q.push({offset:1,color:W.color}));let $=0,w=1;for(let H=0;H<Q.length;H++)if(typeof Q[H].offset>"u"){for(w<H&&(w=H);typeof Q[w].offset>"u";)w++;Q[H].offset=(Q[w].offset-Q[$].offset)/(w-$)*(H-$)+Q[$].offset}else $=H;return Z==="mask"?Q.map((H)=>{let z=j8(H.color);return z?z.alpha===0?{...H,color:"rgba(0, 0, 0, 1)"}:{...H,color:`rgba(255, 255, 255, ${z.alpha})`}:H}):Q}function zU({id:J,width:K,height:Y,repeatX:X,repeatY:Z},Q,W,$,w,H){let z=XJ(Q),[U,V]=W,B=Q.startsWith("repeating"),L,A,M;if(z.orientation.type==="directional")L=VU(z.orientation.value),A=Math.sqrt(Math.pow((L.x2-L.x1)*U,2)+Math.pow((L.y2-L.y1)*V,2));else if(z.orientation.type==="angular"){let{length:F,...j}=BU(KY(`${z.orientation.value.value}${z.orientation.value.unit}`)/180*Math.PI,U,V);A=F,L=j}M=B?AU(z.stops,A,L,w):L;let O=AY(B?UU(z.stops,A):A,z.stops,w,B,H),N=`satori_bi${J}`,E=`satori_pattern_${J}`,D=s("pattern",{id:E,x:$[0]/K,y:$[1]/Y,width:X?U/K:"1",height:Z?V/Y:"1",patternUnits:"objectBoundingBox"},s("linearGradient",{id:N,...M,spreadMethod:B?"repeat":"pad"},O.map((F)=>s("stop",{offset:(F.offset??0)*100+"%","stop-color":F.color})).join(""))+s("rect",{x:0,y:0,width:U,height:V,fill:`url(#${N})`}));return[E,D]}function UU(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 VU(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 BU(J,K,Y){let X=Math.pow(Y/K,2);J=(J%(Math.PI*2)+Math.PI*2)%(Math.PI*2);let Z,Q,W,$,w,H,z,U,V=(B)=>{if(B===0){Z=0,Q=Y,W=0,$=0,w=Y;return}else if(B===Math.PI/2){Z=0,Q=0,W=K,$=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,W=Math.abs(K/2-Z)+K/2,$=Y/2-Math.abs(Q-Y/2),w=Math.sqrt(Math.pow(W-Z,2)+Math.pow($-Q,2)),z=(K/2/Math.tan(B)-Y/2)/(Math.tan(B)+1/Math.tan(B)),U=Math.tan(B)*z+Y,w=2*Math.sqrt(Math.pow(K/2-z,2)+Math.pow(Y/2-U,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,W=Math.abs(K/2-Z)+K/2,$=Y/2+Math.abs(Q-Y/2),z=(K/2/Math.tan(B)+Y/2)/(Math.tan(B)+1/Math.tan(B)),U=Math.tan(B)*z,w=2*Math.sqrt(Math.pow(K/2-z,2)+Math.pow(Y/2-U,2));return}else B>=Math.PI&&(V(B-Math.PI),H=Z,Z=W,W=H,H=Q,Q=$,$=H)};return V(J),{x1:Z/K,y1:Q/Y,x2:W/K,y2:$/Y,length:w}}function AU(J,K,Y,X){let{x1:Z,x2:Q,y1:W,y2:$}=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,H=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,z=(Q-Z)*w+Z,U=($-W)*w+W,V=(Q-Z)*H+Z,B=($-W)*H+W;return{x1:z,y1:U,x2:V,y2:B}}function GU({id:J,width:K,height:Y,repeatX:X,repeatY:Z},Q,W,$,w,H){var z;let{shape:U,stops:V,position:B,size:L}=ZJ(Q),[A,M]=W,O=A/2,N=M/2,E=MU(B.x,B.y,A,M,w.fontSize,w);O=E.x,N=E.y;let D=AY(K,V,w,!1,H),F=`satori_radial_${J}`,j=`satori_pattern_${J}`,R=`satori_mask_${J}`,I=LU(U,L,w.fontSize,{x:O,y:N},[A,M],w),C=s("pattern",{id:j,x:$[0]/K,y:$[1]/Y,width:X?A/K:"1",height:Z?M/Y:"1",patternUnits:"objectBoundingBox"},s("radialGradient",{id:F},D.map((h)=>s("stop",{offset:h.offset||0,"stop-color":h.color})).join(""))+s("mask",{id:R},s("rect",{x:0,y:0,width:A,height:M,fill:"#fff"}))+s("rect",{x:0,y:0,width:A,height:M,fill:((z=D.at(-1))==null?void 0:z.color)||"transparent"})+s(U,{cx:O,cy:N,width:A,height:M,...I,fill:`url(#${F})`,mask:`url(#${R})`}));return[j,C]}function MU(J,K,Y,X,Z,Q){let W={x:Y/2,y:X/2};return J.type==="keyword"?Object.assign(W,zK(J.value,Y,X,"x")):W.x=U0(`${J.value.value}${J.value.unit}`,Z,Y,Q,!0)||Y/2,K.type==="keyword"?Object.assign(W,zK(K.value,Y,X,"y")):W.y=U0(`${K.value.value}${K.value.unit}`,Z,X,Q,!0)||X/2,W}function zK(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 LU(J,K,Y,X,Z,Q){let[W,$]=Z,{x:w,y:H}=X,z={},U=0,V=0;if(qU(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,W,Q,!0))}:{rx:Number(U0(`${K[0].value.value}${K[0].value.unit}`,Y,W,Q,!0)),ry:Number(U0(`${K[1].value.value}${K[1].value.unit}`,Y,$,Q,!0))}}switch(K[0].value){case"farthest-corner":U=Math.max(Math.abs(W-w),Math.abs(w)),V=Math.max(Math.abs($-H),Math.abs(H));break;case"closest-corner":U=Math.min(Math.abs(W-w),Math.abs(w)),V=Math.min(Math.abs($-H),Math.abs(H));break;case"farthest-side":return J==="circle"?z.r=Math.max(Math.abs(W-w),Math.abs(w),Math.abs($-H),Math.abs(H)):(z.rx=Math.max(Math.abs(W-w),Math.abs(w)),z.ry=Math.max(Math.abs($-H),Math.abs(H))),z;case"closest-side":return J==="circle"?z.r=Math.min(Math.abs(W-w),Math.abs(w),Math.abs($-H),Math.abs(H)):(z.rx=Math.min(Math.abs(W-w),Math.abs(w)),z.ry=Math.min(Math.abs($-H),Math.abs(H))),z}if(J==="circle")z.r=Math.sqrt(U*U+V*V);else{let B=V!==0?U/V:1;U===0?(z.rx=0,z.ry=0):(z.ry=Math.sqrt(U*U+V*V*B*B)/B,z.rx=z.ry*B)}return z}function qU(J){return!J.some((K)=>K.type==="keyword")}function OU(J,K){return typeof J=="string"&&J.endsWith("%")?K*parseFloat(J)/100:+J}function F4(J,{x:K,y:Y,defaultX:X,defaultY:Z}){return(J?J.split(" ").map((Q)=>{try{let W=new J8(Q);return W.type==="length"||W.type==="number"?W.value:W.value+W.unit}catch{return null}}).filter((Q)=>Q!==null):[X,Z]).map((Q,W)=>OU(Q,[K,Y][W]))}async function GY({id:J,width:K,height:Y,left:X,top:Z},{image:Q,size:W,position:$,repeat:w},H,z){w=w||"repeat",z=z||"background";let U=w==="repeat-x"||w==="repeat",V=w==="repeat-y"||w==="repeat",B=F4(W,{x:K,y:Y,defaultX:K,defaultY:Y}),L=F4($,{x:K,y:Y,defaultX:0,defaultY:0});if(Q.startsWith("linear-gradient(")||Q.startsWith("repeating-linear-gradient("))return zU({id:J,width:K,height:Y,repeatX:U,repeatY:V},Q,B,L,H,z);if(Q.startsWith("radial-gradient("))return GU({id:J,width:K,height:Y,repeatX:U,repeatY:V},Q,B,L,H,z);if(Q.startsWith("url(")){let A=F4(W,{x:K,y:Y,defaultX:0,defaultY:0}),[M,O,N]=await i4(Q.slice(4,-1)),E=z==="mask"?O||A[0]:A[0]||O,D=z==="mask"?N||A[1]:A[1]||N;return[`satori_bi${J}`,s("pattern",{id:`satori_bi${J}`,patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",x:L[0]+X,y:L[1]+Z,width:U?E:"100%",height:V?D:"100%"},s("image",{x:0,y:0,width:E,height:D,preserveAspectRatio:"none",href:M}))]}throw Error(`Invalid background image: "${Q}"`)}function NU([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 k8(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 h8(J){J[0]=J[1]=Math.min(J[0],J[1])}function g8(J,K,Y,X,Z){if(typeof J=="string"){let Q=J.split(" ").map(($)=>$.trim()),W=!Q[1]&&!Q[0].endsWith("%");return Q[1]=Q[1]||Q[0],[W,[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 x8=(J)=>J&&J[0]!==0&&J[1]!==0;function jU({id:J,borderRadiusPath:K,borderType:Y,left:X,top:Z,width:Q,height:W},$){let w=`satori_brc-${J}`;return[s("clipPath",{id:w},s(Y,{x:X,y:Z,width:Q,height:W,d:K||void 0})),w]}function r8({left:J,top:K,width:Y,height:X},Z,Q){let{borderTopLeftRadius:W,borderTopRightRadius:$,borderBottomLeftRadius:w,borderBottomRightRadius:H,fontSize:z}=Z,U,V,B,L;if([U,W]=g8(W,Y,X,z,Z),[V,$]=g8($,Y,X,z,Z),[B,w]=g8(w,Y,X,z,Z),[L,H]=g8(H,Y,X,z,Z),!Q&&!x8(W)&&!x8($)&&!x8(w)&&!x8(H))return"";W||=[0,0],$||=[0,0],w||=[0,0],H||=[0,0],[W[0],$[0]]=k8(W[0],$[0],Y),[w[0],H[0]]=k8(w[0],H[0],Y),[W[1],w[1]]=k8(W[1],w[1],X),[$[1],H[1]]=k8($[1],H[1],X),U&&h8(W),V&&h8($),B&&h8(w),L&&h8(H);let A=[];A[0]=[$,$],A[1]=[H,[-H[0],H[1]]],A[2]=[w,[-w[0],-w[1]]],A[3]=[W,[W[0],-W[1]]];let M=`h${Y-W[0]-$[0]} a${A[0][0]} 0 0 1 ${A[0][1]}`,O=`v${X-$[1]-H[1]} a${A[1][0]} 0 0 1 ${A[1][1]}`,N=`h${H[0]+w[0]-Y} a${A[2][0]} 0 0 1 ${A[2][1]}`,E=`v${w[1]+W[1]-X} a${A[3][0]} 0 0 1 ${A[3][1]}`;if(Q){let D=function(u){let p=NU([W,$,H,w][u]);return u===0?[[J+W[0]-p,K+W[1]-p],[J+W[0],K]]:u===1?[[J+Y-$[0]+p,K+$[1]-p],[J+Y,K+$[1]]]:u===2?[[J+Y-H[0]+p,K+X-H[1]+p],[J+Y-H[0],K+X]]:[[J+w[0]-p,K+X-w[1]+p],[J,K+X-w[1]]]},F=Q.indexOf(!1);if(!Q.includes(!0))throw Error("Invalid `partialSides`.");if(F===-1)F=0;else for(;!Q[F];)F=(F+1)%4;let j="",R=D(F),I=`M${R[0]} A${A[(F+3)%4][0]} 0 0 1 ${R[1]}`,C=0;for(;C<4&&Q[(F+C)%4];C++)j+=I+" ",I=[M,O,N,E][(F+C)%4];let h=(F+C)%4;j+=I.split(" ")[0];let l=D(h);return j+=` A${A[(h+3)%4][0]} 0 0 1 ${l[0]}`,j}return`M${J+W[0]},${K} ${M} ${O} ${N} ${E}`}function UK(J,K,Y){return Y[J+"Width"]===Y[K+"Width"]&&Y[J+"Style"]===Y[K+"Style"]&&Y[J+"Color"]===Y[K+"Color"]}function EU({id:J,currentClipPathId:K,borderPath:Y,borderType:X,left:Z,top:Q,width:W,height:$},w){if(!(w.borderTopWidth||w.borderRightWidth||w.borderBottomWidth||w.borderLeftWidth))return null;let H=`satori_bc-${J}`;return[s("clipPath",{id:H,"clip-path":K?`url(#${K})`:void 0},s(X,{x:Z,y:Q,width:W,height:$,d:Y||void 0})),H]}function MY({left:J,top:K,width:Y,height:X,props:Z,asContentMask:Q,maskBorderOnly:W},$){let w=["borderTop","borderRight","borderBottom","borderLeft"];if(!Q&&!w.some((B)=>$[B+"Width"]))return"";let H="",z=0;for(;z>0&&UK(w[z],w[(z+3)%4],$);)z=(z+3)%4;let U=[!1,!1,!1,!1],V=[];for(let B=0;B<4;B++){let L=(z+B)%4,A=(z+B+1)%4,M=w[L],O=w[A];if(U[L]=!0,V=[$[M+"Width"],$[M+"Style"],$[M+"Color"],M],!UK(M,O,$)){let N=(V[0]||0)+(Q&&!W&&$[M.replace("border","padding")]||0);N&&(H+=s("path",{width:Y,height:X,...Z,fill:"none",stroke:Q?"#000":V[2],"stroke-width":N*2,"stroke-dasharray":!Q&&V[1]==="dashed"?N*2+" "+N:void 0,d:r8({left:J,top:K,width:Y,height:X},$,U)})),U=[!1,!1,!1,!1]}}if(U.some(Boolean)){let B=(V[0]||0)+(Q&&!W&&$[V[3].replace("border","padding")]||0);B&&(H+=s("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:r8({left:J,top:K,width:Y,height:X},$,U)}))}return H}function FU({id:J,left:K,top:Y,width:X,height:Z,matrix:Q,borderOnly:W},$){let w=($.borderLeftWidth||0)+(W?0:$.paddingLeft||0),H=($.borderTopWidth||0)+(W?0:$.paddingTop||0),z=($.borderRightWidth||0)+(W?0:$.paddingRight||0),U=($.borderBottomWidth||0)+(W?0:$.paddingBottom||0),V={x:K+w,y:Y+H,width:X-w-z,height:Z-H-U};return s("mask",{id:J},s("rect",{...V,fill:"#fff",transform:$.overflow==="hidden"&&$.transform&&Q?Q:void 0,mask:$._inheritedMaskId?`url(#${$._inheritedMaskId})`:void 0})+MY({left:K,top:Y,width:X,height:Z,props:{transform:Q||void 0},asContentMask:!0,maskBorderOnly:W},$))}var r5={circle:/circle\((.+)\)/,ellipse:/ellipse\((.+)\)/,path:/path\((.+)\)/,polygon:/polygon\((.+)\)/,inset:/inset\((.+)\)/};function _U({width:J,height:K},Y,X){function Z(H){let z=H.match(r5.circle);if(!z)return null;let[,U]=z,[V,B=""]=U.split("at").map((M)=>M.trim()),{x:L,y:A}=BK(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(L,X.fontSize,J,X,!0),cy:U0(A,X.fontSize,K,X,!0)}}function Q(H){let z=H.match(r5.ellipse);if(!z)return null;let[,U]=z,[V,B=""]=U.split("at").map((N)=>N.trim()),[L,A]=V.split(" "),{x:M,y:O}=BK(B,J,K);return{type:"ellipse",rx:U0(L||"50%",X.fontSize,J,X,!0),ry:U0(A||"50%",X.fontSize,K,X,!0),cx:U0(M,X.fontSize,J,X,!0),cy:U0(O,X.fontSize,K,X,!0)}}function W(H){let z=H.match(r5.path);if(!z)return null;let[U,V]=VK(z[1]);return{type:"path",d:V,"fill-rule":U}}function $(H){let z=H.match(r5.polygon);if(!z)return null;let[U,V]=VK(z[1]);return{type:"polygon","fill-rule":U,points:V.split(",").map((B)=>B.split(" ").map((L,A)=>U0(L,X.fontSize,A===0?J:K,X,!0)).join(" ")).join(",")}}function w(H){let z=H.match(r5.inset);if(!z)return null;let[U,V]=(z[1].includes("round")?z[1]:`${z[1].trim()} round 0`).split("round"),B=y4.getStylesForProperty("borderRadius",V,!0),L=Object.values(B).map((D)=>String(D)).map((D,F)=>U0(D,X.fontSize,F===0||F===2?K:J,X,!0)||0),A=Object.values(y4.getStylesForProperty("margin",U,!0)).map((D)=>String(D)).map((D,F)=>U0(D,X.fontSize,F===0||F===2?K:J,X,!0)||0),M=A[3],O=A[0],N=J-(A[1]+A[3]),E=K-(A[0]+A[2]);return L.some((D)=>D>0)?{type:"path",d:r8({left:M,top:O,width:N,height:E},{...Y,...B})}:{type:"rect",x:M,y:O,width:N,height:E}}return{parseCircle:Z,parseEllipse:Q,parsePath:W,parsePolygon:$,parseInset:w}}function VK(J){let[,K="nonzero",Y]=J.replace(/('|")/g,"").match(/^(nonzero|evenodd)?,?(.+)/)||[];return[K,Y]}function BK(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 r4(J){return`satori_cp-${J}`}function DU(J){return`url(#${r4(J)})`}function IU(J,K,Y){if(K.clipPath==="none")return"";let X=_U(J,K,Y),Z=K.clipPath,Q={type:""};for(let W of Object.keys(X))if(Q=X[W](Z),Q)break;if(Q){let{type:W,...$}=Q;return s("clipPath",{id:r4(J.id),"clip-path":J.currentClipPath,transform:`translate(${J.left}, ${J.top})`},s(W,$))}return""}function RU({left:J,top:K,width:Y,height:X,path:Z,matrix:Q,id:W,currentClipPath:$,src:w},H,z){let U="",V=H.clipPath&&H.clipPath!=="none"?IU({left:J,top:K,width:Y,height:X,path:Z,id:W,matrix:Q,currentClipPath:$,src:w},H,z):"";if(H.overflow!=="hidden"&&!w)U="";else{let L=V?`satori_ocp-${W}`:r4(W);U=s("clipPath",{id:L,"clip-path":$},s(Z?"path":"rect",{x:J,y:K,width:Y,height:X,d:Z||void 0,transform:H.overflow==="hidden"&&H.transform&&Q?Q:void 0}))}let B=FU({id:`satori_om-${W}`,left:J,top:K,width:Y,height:X,matrix:Q,borderOnly:!w},H);return V+U+B}var TU=(J)=>`satori_mi-${J}`;async function CU(J,K,Y){if(!K.maskImage)return["",""];let{left:X,top:Z,width:Q,height:W,id:$}=J,w=K.maskImage,H=w.length;if(!H)return["",""];let z=TU($),U="";for(let V=0;V<H;V++){let B=w[V],[L,A]=await GY({id:`${z}-${V}`,left:X,top:Z,width:Q,height:W},B,Y,"mask");U+=A+s("rect",{x:X,y:Z,width:Q,height:W,fill:`url(#${L})`})}return U=s("mask",{id:z},U),[z,U]}async function _4({id:J,left:K,top:Y,width:X,height:Z,isInheritingTransform:Q,src:W,debug:$},w,H){if(w.display==="none")return"";let z=!!W,U="rect",V="",B="",L=[],A=1,M="";w.backgroundColor&&L.push(w.backgroundColor),w.opacity!==void 0&&(A=+w.opacity),w.transform&&(V=VY({left:K,top:Y,width:X,height:Z},w.transform,Q,w.transformOrigin));let O="";if(w.backgroundImage){let S=[];for(let T=0;T<w.backgroundImage.length;T++){let c=w.backgroundImage[T],d=await GY({id:J+"_"+T,width:X,height:Z,left:K,top:Y},c,H);d&&S.unshift(d)}for(let T of S)L.push(`url(#${T[0]})`),B+=T[1],T[2]&&(O+=T[2])}let[N,E]=await CU({id:J,left:K,top:Y,width:X,height:Z},w,H);B+=E;let D=N?`url(#${N})`:w._inheritedMaskId?`url(#${w._inheritedMaskId})`:void 0,F=r8({left:K,top:Y,width:X,height:Z},w);F&&(U="path");let j=w._inheritedClipPathId;$&&(M=s("rect",{x:K,y:Y,width:X,height:Z,fill:"transparent",stroke:"#ff5757","stroke-width":1,transform:V||void 0,"clip-path":j?`url(#${j})`:void 0}));let{backgroundClip:R,filter:I}=w,C=R==="text"?`url(#satori_bct-${J})`:j?`url(#${j})`:w.clipPath?DU(J):void 0,h=RU({left:K,top:Y,width:X,height:Z,path:F,id:J,matrix:V,currentClipPath:C,src:W},w,H),l=L.map((S)=>s(U,{x:K,y:Y,width:X,height:Z,fill:S,d:F||void 0,transform:V||void 0,"clip-path":w.transform?void 0:C,style:I?`filter:${I}`:void 0,mask:w.transform?void 0:D})).join(""),u=EU({id:J,left:K,top:Y,width:X,height:Z,currentClipPathId:j,borderPath:F,borderType:U},w),p;if(z){let S=(w.borderLeftWidth||0)+(w.paddingLeft||0),T=(w.borderTopWidth||0)+(w.paddingTop||0),c=(w.borderRightWidth||0)+(w.paddingRight||0),d=(w.borderBottomWidth||0)+(w.paddingBottom||0),a=w.objectFit==="contain"?"xMidYMid":w.objectFit==="cover"?"xMidYMid slice":"none";w.transform&&(p=jU({id:J,borderRadiusPath:F,borderType:U,left:K,top:Y,width:X,height:Z},w)),l+=s("image",{x:K+S,y:Y+T,width:X-S-c,height:Z-T-d,href:W,preserveAspectRatio:a,transform:V||void 0,style:I?`filter:${I}`:void 0,"clip-path":w.transform?p?`url(#${p[1]})`:void 0:`url(#satori_cp-${J})`,mask:w.transform?void 0:N?`url(#${N})`:`url(#satori_om-${J})`})}if(u){B+=u[0];let S=u[1];l+=MY({left:K,top:Y,width:X,height:Z,props:{transform:V||void 0,"clip-path":`url(#${S})`}},w)}let P=sz({width:X,height:Z,id:J,opacity:A,shape:s(U,{x:K,y:Y,width:X,height:Z,fill:"#fff",stroke:"#fff","stroke-width":0,d:F||void 0,transform:V||void 0,"clip-path":C,mask:D})},w);return(B?s("defs",{},B):"")+(P?P[0]:"")+(p?p[0]:"")+h+(A!==1?`<g opacity="${A}">`:"")+(w.transform&&(C||D)?`<g${C?` clip-path="${C}"`:""}${D?` mask="${D}"`:""}>`:"")+(O||l)+(w.transform&&(C||D)?"</g>":"")+(A!==1?"</g>":"")+(P?P[1]:"")+M}var PU=()=>/[#*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,SU=new RegExp(PU(),""),k4={emoji:SU,symbol:/\p{Symbol}/u,math:/\p{Math}/u},h4={"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},o4=Object.keys({...h4,...k4});function vU(J){return o4.includes(J)}function yU(J,K){for(let X of Object.keys(k4))if(k4[X].test(J))return[X];let Y=Object.keys(h4).filter((X)=>h4[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 kU(J){if(J)return o4.find((K)=>K.toLowerCase().startsWith(J.toLowerCase()))}async function*g4(J,K){var Y;let X=await t8(),{id:Z,inheritedStyle:Q,parent:W,font:$,debug:w,locale:H,embedFont:z=!0,graphemeImages:U,canLoadAdditionalAssets:V,getTwStyles:B}=K;if(J===null||typeof J>"u")return yield,yield,"";if(!l8(J)||typeof J.type=="function"){let k;if(!l8(J))k=wU(String(J),K),yield(await k.next()).value;else{if(zz(J.type))throw Error("Class component is not supported.");k=g4(J.type(J.props),K),yield(await k.next()).value}await k.next();let o=yield;return(await k.next(o)).value}let{type:L,props:A}=J;if(A&&Uz(A))throw Error("dangerouslySetInnerHTML property is not supported. See documentation for more information https://github.com/vercel/satori#jsx.");let{style:M,children:O,tw:N,lang:E=H}=A||{},D=kU(E);if(N){let k=B(N,M);M=Object.assign(k,M)}let F=X.Node.create();W.insertChild(F,W.getChildCount());let[j,R]=await uz(F,L,Q,M,A),I=j.transform===Q.transform;if(I||(j.transform.__parent=Q.transform),(j.overflow==="hidden"||j.clipPath&&j.clipPath!=="none")&&(R._inheritedClipPathId=`satori_cp-${Z}`,R._inheritedMaskId=`satori_om-${Z}`),j.maskImage&&(R._inheritedMaskId=`satori_mi-${Z}`),j.backgroundClip==="text"){let k={value:""};R._inheritedBackgroundClipTextPath=k,j._inheritedBackgroundClipTextPath=k}let C=Vz(O),h=[],l=0,u=[];for(let k of C){let o=g4(k,{id:Z+"-"+l++,parentStyle:j,inheritedStyle:R,isInheritingTransform:!0,parent:F,font:$,embedFont:z,debug:w,graphemeImages:U,canLoadAdditionalAssets:V,locale:D,getTwStyles:B,onNodeDetected:K.onNodeDetected});V?u.push(...(await o.next()).value||[]):await o.next(),h.push(o)}yield u;for(let k of h)await k.next();let[p,P]=yield,{left:S,top:T,width:c,height:d}=F.getComputedLayout();S+=p,T+=P;let a="",r="",x="",{children:m,...v}=A;if((Y=K.onNodeDetected)==null||Y.call(K,{left:S,top:T,width:c,height:d,type:L,props:v,key:J.key,textContent:l8(m)?void 0:m}),L==="img"){let k=j.__src;r=await _4({id:Z,left:S,top:T,width:c,height:d,src:k,isInheritingTransform:I,debug:w},j,R)}else if(L==="svg"){let k=j.color,o=await Cz(J,k);r=await _4({id:Z,left:S,top:T,width:c,height:d,src:o,isInheritingTransform:I,debug:w},j,R)}else{let k=M==null?void 0:M.display;if(L==="div"&&O&&typeof O!="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.');r=await _4({id:Z,left:S,top:T,width:c,height:d,isInheritingTransform:I,debug:w},j,R)}for(let k of h)a+=(await k.next([S,T])).value;return j._inheritedBackgroundClipTextPath&&(x+=s("clipPath",{id:`satori_bct-${Z}`,"clip-path":j._inheritedClipPathId?`url(#${j._inheritedClipPathId})`:void 0},j._inheritedBackgroundClipTextPath.value)),x+r+a}var LY="unknown";function hU(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 gU=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[,W,$]=Z,[,w,H]=X[Q];hU(K,Y,[W,$],[w,H])>0&&(Z=X[Q])}return Z[0]}addFonts(J){for(let K of J){let{name:Y,data:X,lang:Z}=K;if(Z&&!vU(Z))throw Error(`Invalid value for props \`lang\`: "${Z}". The value must be one of the following: ${o4.join(", ")}.`);let Q=Z??LY,W=P8.parse("buffer"in X?X.buffer.slice(X.byteOffset,X.byteOffset+X.byteLength):X,{lowMemory:!0}),$=W.charToGlyphIndex;W.charToGlyphIndex=(H)=>{let z=$.call(W,H);return z===0&&W._trackBrokenChars&&W._trackBrokenChars.push(H),z},this.defaultFont||(this.defaultFont=W);let w=`${Y.toLowerCase()}_${Q}`;this.fonts.has(w)||this.fonts.set(w,[]),this.fonts.get(w).push([W,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((O)=>O.toLowerCase());let W=[];Y.forEach((O)=>{let N=this.get({name:O,weight:X,style:Z});if(N){W.push(N);return}let E=this.get({name:O+"_unknown",weight:X,style:Z});if(E){W.push(E);return}});let $=Array.from(this.fonts.keys()),w=[],H=[],z=[];for(let O of $)if(!Y.includes(O))if(Q){let N=xU(O);N?N===Q?w.push(this.get({name:O,weight:X,style:Z})):H.push(this.get({name:O,weight:X,style:Z})):z.push(this.get({name:O,weight:X,style:Z}))}else z.push(this.get({name:O,weight:X,style:Z}));let U=new Map,V=(O,N=!0)=>{let E=[...W,...z,...w,...N?H:[]];if(typeof O>"u")return N?E[E.length-1]:void 0;let D=O.charCodeAt(0);if(U.has(D))return U.get(D);let F=E.find((j,R)=>!!j.charToGlyphIndex(O)||N&&R===E.length-1);return F&&U.set(D,F),F},B=(O,N=!1)=>{var E,D;return((N?(D=(E=O.tables)==null?void 0:E.os2)==null?void 0:D.sTypoAscender:0)||O.ascender)/O.unitsPerEm*J},L=(O,N=!1)=>{var E,D;return((N?(D=(E=O.tables)==null?void 0:E.os2)==null?void 0:D.sTypoDescender:0)||O.descender)/O.unitsPerEm*J},A=(O,N=!1)=>{var E,D;if(typeof K=="string"&&K==="normal"){let F=(N?(D=(E=O.tables)==null?void 0:E.os2)==null?void 0:D.sTypoLineGap:0)||0;return B(O,N)-L(O,N)+F/O.unitsPerEm*J}else if(typeof K=="number")return J*K},M=(O)=>V(O,!1);return{has:(O)=>{if(O===`
66
+ `)return!0;let N=M(O);return N?(N._trackBrokenChars=[],N.stringToGlyphs(O),N._trackBrokenChars.length?(N._trackBrokenChars=void 0,!1):!0):!1},baseline:(O,N=typeof O>"u"?W[0]:V(O))=>{let E=B(N),D=L(N),F=E-D;return E+(A(N)-F)/2},height:(O,N=typeof O>"u"?W[0]:V(O))=>A(N),measure:(O,N)=>this.measure(V,O,N),getSVG:(O,N)=>this.getSVG(V,O,N)}}patchFontFallbackResolver(J,K){let Y=[];J._trackBrokenChars=Y;let X=J.stringToGlyphs;return J.stringToGlyphs=(Z,...Q)=>{let W=X.call(J,Z,...Q);for(let $=0;$<W.length;$++)if(W[$].unicode===void 0){let w=Y.shift(),H=K(w);if(H!==J){let z=H.charToGlyph(w),U=J.unitsPerEm/H.unitsPerEm,V=new P8.Path;V.unitsPerEm=J.unitsPerEm,V.commands=z.path.commands.map((L)=>{let A={...L};for(let M in A)typeof A[M]=="number"&&(A[M]*=U);return A});let B=new P8.Glyph({...z,advanceWidth:z.advanceWidth*U,xMin:z.xMin*U,xMax:z.xMax*U,yMin:z.yMin*U,yMax:z.yMax*U,path:V});W[$]=B}}return W},()=>{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 W=J(K),$=this.patchFontFallbackResolver(W,J);try{return Y===0?"":W.getPath(K.replace(/\n/g,""),Z,X,Y,{letterSpacing:Q/Y}).toPathData(1)}finally{$()}}};function xU(J){let K=J.split("_"),Y=K[K.length-1];return Y===LY?void 0:Y}function bU({width:J,height:K,content:Y}){return s("svg",{width:J,height:K,viewBox:`0 0 ${J} ${K}`,xmlns:"http://www.w3.org/2000/svg"},Y)}var fU=MH(tH()),mU=["ios","android","windows","macos","web"];function cU(J){return mU.includes(J)}var lU=["portrait","landscape"];function dU(J){return lU.includes(J)}var AK;(function(J){J.fontSize="fontSize",J.lineHeight="lineHeight"})(AK||(AK={}));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 GK(J){return typeof J=="string"}function MK(J){return typeof J=="object"}var D4;function b(J){return{kind:"complete",style:J}}function X1(J,K={}){let{fractions:Y}=K;if(Y&&J.includes("/")){let[Q="",W=""]=J.split("/",2),$=X1(Q),w=X1(W);return!$||!w?null:[$[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 K8(J,K,Y={}){let X=w5(K,Y);return X===null?null:b({[J]:X})}function I4(J,K,Y){let X=w5(K);return X!==null&&(Y[J]=X),Y}function uU(J,K){let Y=w5(K);return Y===null?null:{[J]:Y}}function w5(J,K={}){if(J===void 0)return null;let Y=X1(String(J),K);return Y?Y8(...Y,K):null}function Y8(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):(y1("`vw` CSS unit requires configuration with `useDeviceContext()`"),null);case q0.vh:return Z!=null&&Z.windowDimensions?Z.windowDimensions.height*(J/100):(y1("`vh` CSS unit requires configuration with `useDeviceContext()`"),null);default:return null}}function LK(J){let K=X1(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 pU={t:"Top",tr:"TopRight",tl:"TopLeft",b:"Bottom",br:"BottomRight",bl:"BottomLeft",l:"Left",r:"Right",x:"Horizontal",y:"Vertical"};function qY(J){return pU[J??""]||"All"}function OY(J){let K="All";return[J.replace(/^-(t|b|r|l|tr|tl|br|bl)(-|$)/,(Y,X)=>(K=qY(X),"")),K]}function X6(J,K={}){if(J.includes("/")){let Y=qK(J,{...K,fractions:!0});if(Y)return Y}return J[0]==="["&&(J=J.slice(1,-1)),qK(J,K)}function $5(J,K,Y={}){let X=X6(K,Y);return X===null?null:b({[J]:X})}function qK(J,K={}){if(J==="px")return 1;let Y=X1(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),Y8(X,Z,K)}function iU(...J){console.warn(...J)}function nU(...J){}var y1=typeof process>"u"||((D4=process==null?void 0:process.env)===null||D4===void 0?void 0:D4.JEST_WORKER_ID)===void 0?iU:nU,rU=[["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",o5("oldstyle-nums")],["small-caps",o5("small-caps")],["lining-nums",o5("lining-nums")],["tabular-nums",o5("tabular-nums")],["proportional-nums",o5("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})]],OK=rU;function o5(J){return{kind:"dependent",complete(K){(!K.fontVariant||!Array.isArray(K.fontVariant))&&(K.fontVariant=[]),K.fontVariant.push(J)}}}var oU=class{constructor(J){this.ir=new Map(OK),this.styles=new Map,this.prefixes=new Map,this.ir=new Map([...OK,...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 sU(J,K,Y={}){let X=K==null?void 0:K[J];if(!X)return $5("fontSize",J,Y);if(typeof X=="string")return K8("fontSize",X);let Z={},[Q,W]=X,$=uU("fontSize",Q);if($&&(Z=$),typeof W=="string")return b(I4("lineHeight",NK(W,Z),Z));let{lineHeight:w,letterSpacing:H}=W;return w&&I4("lineHeight",NK(w,Z),Z),H&&I4("letterSpacing",H,Z),b(Z)}function NK(J,K){let Y=X1(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 aU(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=X1(X);if(!Z)return null;let[Q,W]=Z;if(W===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 $=Y8(Q,W);return $!==null?b({lineHeight:$}):null}function tU(J,K,Y,X,Z){let Q="";if(X[0]==="[")Q=X.slice(1,-1);else{let H=Z==null?void 0:Z[X];if(H)Q=H;else{let z=X6(X);return z&&typeof z=="number"?jK(z,q0.px,K,J):null}}if(Q==="auto")return NY(K,J,"auto");let W=X1(Q);if(!W)return null;let[$,w]=W;return Y&&($=-$),jK($,w,K,J)}function jK(J,K,Y,X){let Z=Y8(J,K);return Z===null?null:NY(Y,X,Z)}function NY(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 eU(J){if(!J)return{};let K=Object.entries(J).reduce((Z,[Q,W])=>{let $=[0,1/0,0],w=typeof W=="string"?{min:W}:W,H=w.min?LK(w.min):0;H===null?y1(`invalid screen config value: ${Q}->min: ${w.min}`):$[0]=H;let z=w.max?LK(w.max):1/0;return z===null?y1(`invalid screen config value: ${Q}->max: ${w.max}`):$[1]=z,Z[Q]=$,Z},{}),Y=Object.values(K);Y.sort((Z,Q)=>{let[W,$]=Z,[w,H]=Q;return $===1/0||H===1/0?W-w:$-H});let X=0;return Y.forEach((Z)=>Z[2]=X++),K}function JV(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 a5(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=jY(K,Y),!Z)return null;if(X){let Q=Number(X);if(!Number.isNaN(Q))return Z=EK(Z,Q/100),b({[i8[J].color]:Z})}return{kind:"dependent",complete(Q){let W=i8[J].opacity,$=Q[W];typeof $=="number"&&(Z=EK(Z,$)),Q[i8[J].color]=Z}}}function b8(J,K){let Y=parseInt(K,10);if(Number.isNaN(Y))return null;let X=Y/100;return{kind:"complete",style:{[i8[J].opacity]:X}}}function EK(J,K){return J.startsWith("#")?J=YV(J):J.startsWith("rgb(")&&(J=J.replace(/^rgb\(/,"rgba(").replace(/\)$/,", 1)")),J.replace(/, ?\d*\.?(\d+)\)$/,`, ${K})`)}function KV(J){for(let K in J)K.startsWith("__opacity_")&&delete J[K]}var i8={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 YV(J){let K=J;J=J.replace(XV,(W,$,w,H)=>$+$+w+w+H+H);let Y=ZV.exec(J);if(!Y)return y1(`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 jY(J,K){let Y=K[J];if(GK(Y))return Y;if(MK(Y)&&GK(Y.DEFAULT))return Y.DEFAULT;let[X="",...Z]=J.split("-");for(;X!==J;){let Q=K[X];if(MK(Q))return jY(Z.join("-"),Q);if(Z.length===0)return"";X=`${X}-${Z.shift()}`}return""}var XV=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,ZV=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;function QV(J,K){let[Y,X]=OY(J);if(Y.match(/^(-?(\d)+)?$/))return WV(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=a5(Z,Y,K==null?void 0:K.borderColor);if(Q)return Q;let W=`border${X==="All"?"":X}Width`;Y=Y.replace(/^-/,"");let $=Y.slice(1,-1),w=$5(W,$);return typeof(w==null?void 0:w.style[W])!="number"?null:w}function WV(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 K8(Z,X)}function wV(J,K){if(!K)return null;let[Y,X]=OY(J);Y=Y.replace(/^-/,""),Y===""&&(Y="DEFAULT");let Z=`border${X==="All"?"":X}Radius`,Q=K[Y];if(Q)return FK(K8(Z,Q));let W=$5(Z,Y);return typeof(W==null?void 0:W.style[Z])!="number"?null:FK(W)}function FK(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 s5(J,K,Y,X){let Z=null;J==="inset"&&(K=K.replace(/^(x|y)-/,($,w)=>(Z=w==="x"?"x":"y","")));let Q=X==null?void 0:X[K];if(Q){let $=w5(Q,{isNegative:Y});if($!==null)return _K(J,Z,$)}let W=X6(K,{isNegative:Y});return W!==null?_K(J,Z,W):null}function _K(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 f8(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 $V(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=w5((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=w5((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 DK(J,K,Y={},X){let Z=X==null?void 0:X[K];return Z!==void 0?K8(J,Z,Y):$5(J,K,Y)}function m8(J,K,Y={},X){let Z=w5(X==null?void 0:X[K],Y);return Z?b({[J]:Z}):(K==="screen"&&(K=J.includes("Width")?"100vw":"100vh"),$5(J,K,Y))}function HV(J,K,Y){let X=Y==null?void 0:Y[J];if(X){let Z=X1(X,{isNegative:K});if(!Z)return null;let[Q,W]=Z;if(W===q0.em)return zV(Q);if(W===q0.percent)return y1("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 $=Y8(Q,W,{isNegative:K});return $!==null?b({letterSpacing:$}):null}return $5("letterSpacing",J,{isNegative:K})}function zV(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 UV(J,K){let Y=K==null?void 0:K[J];if(Y){let Z=X1(String(Y));if(Z)return b({opacity:Z[0]})}let X=X1(J);return X?b({opacity:X[0]/100}):null}function VV(J){let K=parseInt(J,10);return Number.isNaN(K)?null:{kind:"complete",style:{shadowOpacity:K/100}}}function BV(J){if(J.includes("/")){let[Y="",X=""]=J.split("/",2),Z=R4(Y),Q=R4(X);return Z===null||Q===null?null:{kind:"complete",style:{shadowOffset:{width:Z,height:Q}}}}let K=R4(J);return K===null?null:{kind:"complete",style:{shadowOffset:{width:K,height:K}}}}function R4(J){let K=X6(J);return typeof K=="number"?K:null}var IK=class{constructor(J,K={},Y,X,Z){var Q,W,$,w,H,z;this.config=K,this.cache=Y,this.position=0,this.isNull=!1,this.isNegative=!1,this.context={},this.context.device=X;let U=J.trim().split(":"),V=[];U.length===1?this.string=J:(this.string=(Q=U.pop())!==null&&Q!==void 0?Q:"",V=U),this.char=this.string[0];let B=eU((W=this.config.theme)===null||W===void 0?void 0:W.screens);for(let L of V)if(B[L]){let A=($=B[L])===null||$===void 0?void 0:$[2];A!==void 0&&(this.order=((w=this.order)!==null&&w!==void 0?w:0)+A);let M=(H=X.windowDimensions)===null||H===void 0?void 0:H.width;if(M){let[O,N]=(z=B[L])!==null&&z!==void 0?z:[0,0];(M<=O||M>N)&&(this.isNull=!0)}else this.isNull=!0}else cU(L)?this.isNull=L!==Z:dU(L)?X.windowDimensions?(X.windowDimensions.width>X.windowDimensions.height?"landscape":"portrait")!==L?this.isNull=!0:this.incrementOrder():this.isNull=!0:L==="retina"?X.pixelDensity===2?this.incrementOrder():this.isNull=!0:L==="dark"?X.colorScheme!=="dark"?this.isNull=!0:this.incrementOrder():this.handlePossibleArbitraryBreakpointPrefix(L)||(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,W=null;switch(this.char){case"m":case"p":{let $=this.peekSlice(1,3).match(/^(t|b|r|l|x|y)?-/);if($){let w=this.char==="m"?"margin":"padding";this.advance(((K=(J=$[0])===null||J===void 0?void 0:J.length)!==null&&K!==void 0?K:0)+1);let H=qY($[1]),z=tU(w,H,this.isNegative,this.rest,(Y=this.config.theme)===null||Y===void 0?void 0:Y[w]);if(z)return z}}}if(this.consumePeeked("h-")&&(W=DK("height",this.rest,this.context,Q==null?void 0:Q.height),W)||this.consumePeeked("w-")&&(W=DK("width",this.rest,this.context,Q==null?void 0:Q.width),W)||this.consumePeeked("min-w-")&&(W=m8("minWidth",this.rest,this.context,Q==null?void 0:Q.minWidth),W)||this.consumePeeked("min-h-")&&(W=m8("minHeight",this.rest,this.context,Q==null?void 0:Q.minHeight),W)||this.consumePeeked("max-w-")&&(W=m8("maxWidth",this.rest,this.context,Q==null?void 0:Q.maxWidth),W)||this.consumePeeked("max-h-")&&(W=m8("maxHeight",this.rest,this.context,Q==null?void 0:Q.maxHeight),W)||this.consumePeeked("leading-")&&(W=aU(this.rest,Q==null?void 0:Q.lineHeight),W)||this.consumePeeked("text-")&&(W=sU(this.rest,Q==null?void 0:Q.fontSize,this.context),W||(W=a5("text",this.rest,Q==null?void 0:Q.textColor),W)||this.consumePeeked("opacity-")&&(W=b8("text",this.rest),W))||this.consumePeeked("font-")&&(W=JV(this.rest,Q==null?void 0:Q.fontFamily),W)||this.consumePeeked("aspect-")&&(this.consumePeeked("ratio-")&&y1("`aspect-ratio-{ratio}` is deprecated, use `aspect-{ratio}` instead"),W=K8("aspectRatio",this.rest,{fractions:!0}),W)||this.consumePeeked("tint-")&&(W=a5("tint",this.rest,Q==null?void 0:Q.colors),W)||this.consumePeeked("bg-")&&(W=a5("bg",this.rest,Q==null?void 0:Q.backgroundColor),W||this.consumePeeked("opacity-")&&(W=b8("bg",this.rest),W))||this.consumePeeked("border")&&(W=QV(this.rest,Q),W||this.consumePeeked("-opacity-")&&(W=b8("border",this.rest),W))||this.consumePeeked("rounded")&&(W=wV(this.rest,Q==null?void 0:Q.borderRadius),W)||this.consumePeeked("bottom-")&&(W=s5("bottom",this.rest,this.isNegative,Q==null?void 0:Q.inset),W)||this.consumePeeked("top-")&&(W=s5("top",this.rest,this.isNegative,Q==null?void 0:Q.inset),W)||this.consumePeeked("left-")&&(W=s5("left",this.rest,this.isNegative,Q==null?void 0:Q.inset),W)||this.consumePeeked("right-")&&(W=s5("right",this.rest,this.isNegative,Q==null?void 0:Q.inset),W)||this.consumePeeked("inset-")&&(W=s5("inset",this.rest,this.isNegative,Q==null?void 0:Q.inset),W)||this.consumePeeked("flex-")&&(this.consumePeeked("grow")?W=f8("Grow",this.rest,Q==null?void 0:Q.flexGrow):this.consumePeeked("shrink")?W=f8("Shrink",this.rest,Q==null?void 0:Q.flexShrink):W=$V(this.rest,Q==null?void 0:Q.flex),W)||this.consumePeeked("grow")&&(W=f8("Grow",this.rest,Q==null?void 0:Q.flexGrow),W)||this.consumePeeked("shrink")&&(W=f8("Shrink",this.rest,Q==null?void 0:Q.flexShrink),W)||this.consumePeeked("shadow-color-opacity-")&&(W=b8("shadow",this.rest),W)||this.consumePeeked("shadow-opacity-")&&(W=VV(this.rest),W)||this.consumePeeked("shadow-offset-")&&(W=BV(this.rest),W)||this.consumePeeked("shadow-radius-")&&(W=$5("shadowRadius",this.rest),W)||this.consumePeeked("shadow-")&&(W=a5("shadow",this.rest,Q==null?void 0:Q.colors),W))return W;if(this.consumePeeked("elevation-")){let $=parseInt(this.rest,10);if(!Number.isNaN($))return b({elevation:$})}if(this.consumePeeked("opacity-")&&(W=UV(this.rest,Q==null?void 0:Q.opacity),W)||this.consumePeeked("tracking-")&&(W=HV(this.rest,this.isNegative,Q==null?void 0:Q.letterSpacing),W))return W;if(this.consumePeeked("z-")){let $=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($))return b({zIndex:$})}return y1(`\`${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="",W=""]=Y,$=Q==="w"?X.width:X.height,w=X1(W,this.context);if(w===null)return this.isNull=!0,!0;let[H,z]=w;return z!=="px"&&(this.isNull=!0),(Z==="min"?$>=H:$<=H)?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 AV(J){let K=[],Y=null;return J.forEach((X)=>{if(typeof X=="string")K=[...K,...T4(X)];else if(Array.isArray(X))K=[...K,...X.flatMap(T4)];else if(typeof X=="object"&&X!==null)for(let[Z,Q]of Object.entries(X))typeof Q=="boolean"?K=[...K,...Q?T4(Z):[]]:Y?Y[Z]=Q:Y={[Z]:Q}}),[K.filter(Boolean).filter(GV),Y]}function T4(J){return J.trim().split(/\s+/)}function GV(J,K,Y){return Y.indexOf(J)===K}function MV(J){var K;return(K=J==null?void 0:J.reduce((Y,X)=>({...Y,...LV(X.handler)}),{}))!==null&&K!==void 0?K:{}}function LV(J){let K={};return J({addUtilities:(Y)=>{K=Y},...qV}),K}function I1(J){throw Error(`tailwindcss plugin function argument object prop "${J}" not implemented`)}var qV={addComponents:I1,addBase:I1,addVariant:I1,e:I1,prefix:I1,theme:I1,variants:I1,config:I1,corePlugins:I1,matchUtilities:I1,postcss:null};function OV(J,K){let Y=(0,fU.default)(NV(J)),X={},Z=MV(Y.plugins),Q={},W=Object.entries(Z).map(([L,A])=>typeof A=="string"?(Q[L]=A,[L,{kind:"null"}]):[L,b(A)]).filter(([,L])=>L.kind!=="null");function $(){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=$(),H={};function z(){let L=H[w];if(L)return L;let A=new oU(W);return H[w]=A,A}function U(...L){let A=z(),M={},O=[],N=[],[E,D]=AV(L),F=E.join(" "),j=A.getStyle(F);if(j)return{...j,...D||{}};for(let R of E){let I=A.getIr(R);if(!I&&R in Q){let C=U(Q[R]);A.setIr(R,b(C)),M={...M,...C};continue}switch(I=new IK(R,Y,A,X,K).parse(),I.kind){case"complete":M={...M,...I.style},A.setIr(R,I);break;case"dependent":O.push(I);break;case"ordered":N.push(I);break;case"null":A.setIr(R,I);break}}if(N.length>0){N.sort((R,I)=>R.order-I.order);for(let R of N)switch(R.styleIr.kind){case"complete":M={...M,...R.styleIr.style};break;case"dependent":O.push(R.styleIr);break}}if(O.length>0){for(let R of O){let I=R.complete(M);I&&y1(I)}KV(M)}return F!==""&&A.setStyle(F,M),D&&(M={...M,...D}),M}function V(L){let A=U(L.split(/\s+/g).map((M)=>M.replace(/^(bg|text|border)-/,"")).map((M)=>`bg-${M}`).join(" "));return typeof A.backgroundColor=="string"?A.backgroundColor:void 0}let B=(L,...A)=>{let M="";return L.forEach((O,N)=>{var E;M+=O+((E=A[N])!==null&&E!==void 0?E:"")}),U(M)};return B.style=U,B.color=V,B.prefixMatch=(...L)=>{let A=L.sort().join(":"),M=z(),O=M.getPrefixMatch(A);if(O!==void 0)return O;let N=new IK(`${A}:flex`,Y,M,X,K).parse().kind!=="null";return M.setPrefixMatch(A,N),N},B.setWindowDimensions=(L)=>{X.windowDimensions=L,w=$()},B.setFontScale=(L)=>{X.fontScale=L,w=$()},B.setPixelDensity=(L)=>{X.pixelDensity=L,w=$()},B.setColorScheme=(L)=>{X.colorScheme=L,w=$()},B}function NV(J){return{...J,content:["_no_warnings_please"]}}var jV={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 EV(J){return OV({...J,plugins:[...(J==null?void 0:J.plugins)??[],jV]},"web")}var c8;function FV({width:J,height:K,config:Y}){return c8||(c8=EV(Y)),c8.setWindowDimensions({width:+J,height:+K}),c8}var C4=new WeakMap;async function EY(J,K){let Y=await t8();if(!Y||!Y.Node)throw Error("Satori is not initialized: expect `yoga` to be loaded, got "+Y);K.fonts=K.fonts||[];let X;C4.has(K.fonts)?X=C4.get(K.fonts):C4.set(K.fonts,X=new gU(K.fonts));let Z="width"in K?K.width:void 0,Q="height"in K?K.height:void 0,W=Y.Node.create();Z&&W.setWidth(Z),Q&&W.setHeight(Q),W.setFlexDirection(Y.FLEX_DIRECTION_ROW),W.setFlexWrap(Y.WRAP_WRAP),W.setAlignContent(Y.ALIGN_AUTO),W.setAlignItems(Y.ALIGN_FLEX_START),W.setJustifyContent(Y.JUSTIFY_FLEX_START),W.setOverflow(Y.OVERFLOW_HIDDEN);let $={...K.graphemeImages},w=new Set;r1.clear(),u8.clear(),await Tz(J);let H=g4(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:W,font:X,embedFont:K.embedFont,debug:K.debug,graphemeImages:$,canLoadAdditionalAssets:!!K.loadAdditionalAsset,onNodeDetected:K.onNodeDetected,getTwStyles:(L,A)=>{let M={...FV({width:Z,height:Q,config:K.tailwindConfig})([L])};return typeof M.lineHeight=="number"&&(M.lineHeight=M.lineHeight/(+M.fontSize||A.fontSize||16)),M.shadowColor&&M.boxShadow&&(M.boxShadow=M.boxShadow.replace(/rgba?\([^)]+\)/,M.shadowColor)),M}}),z=(await H.next()).value;if(K.loadAdditionalAsset&&z.length){let L=_V(z),A=[],M={};await Promise.all(Object.entries(L).flatMap(([O,N])=>N.map((E)=>{let D=`${O}_${E}`;return w.has(D)?null:(w.add(D),K.loadAdditionalAsset(O,E).then((F)=>{typeof F=="string"?M[E]=F:F&&(Array.isArray(F)?A.push(...F):A.push(F))}))}))),X.addFonts(A),Object.assign($,M)}await H.next(),W.calculateLayout(Z,Q,Y.DIRECTION_LTR);let U=(await H.next([0,0])).value,V=W.getComputedWidth(),B=W.getComputedHeight();return W.freeRecursive(),bU({width:V,height:B,content:U})}function _V(J){let K={},Y={};for(let{word:X,locale:Z}of J){let Q=yU(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(...RK(M1(Y[X],"grapheme"))):(K[X][0]=K[X][0]||"",K[X][0]+=RK(M1(Y[X],"grapheme",X==="unknown"?void 0:X)).join(""))}),K}function RK(J){return Array.from(new Set(J))}import yV from"sharp";function Z6(J){return J.replace(/\([^)]*\)/g,"").replace(/\/\//g,"/")}function s4(J,K){if(J==="/")return K;if(K==="/")return J;return`${J}${K}`}function a4(J){let K=Z6(J);return K.length>1?K.replace(/\/$/,""):K}function FY(J,K){return K.map((Y)=>({...Y,path:a4(s4(J,Y.path))}))}function Q6(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,W=Q6(Q.routes);for(let[$,{exec:w,middleware:H,segments:z}]of Object.entries(W)){let U=s4(Y,$),V=(B)=>Z.run.call(Z,B,Y);K[Z6(U)]={exec:[V,...w],middleware:[...Z.middlewares,...H],viewPath:Z.viewPath,segments:[{path:a4(Y),viewPath:Z.viewPath,...Z.alwaysRuns?{alwaysRun:!0}:{}},...FY(Y,z)]}}}else{let Q=(W)=>Z.run.call(Z,W,Y);K[Z6(Y)]={exec:[Q],middleware:Z.middlewares,viewPath:Z.viewPath,segments:[{path:a4(Y),viewPath:Z.viewPath}]}}}else{let Z=new X,Q=Q6(Z.routes);for(let[W,{exec:$,middleware:w,viewPath:H,segments:z}]of Object.entries(Q)){let U=s4(Y,W);K[Z6(U)]={exec:$,middleware:[...Z.middlewares,...w],viewPath:H,segments:FY(Y,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}))}var DV=Object.defineProperty,e=(J,K)=>DV(J,"name",{value:K,configurable:!0}),R5=class{type=3;name="";prefix="";value="";suffix="";modifier=3;constructor(J,K,Y,X,Z,Q){this.type=J,this.name=K,this.prefix=Y,this.value=X,this.suffix=Z,this.modifier=Q}hasCustomName(){return this.name!==""&&typeof this.name!="number"}};e(R5,"Part");var IV=/[$_\p{ID_Start}]/u,RV=/[$_\u200C\u200D\p{ID_Continue}]/u,e4=".*";function _Y(J,K){return(K?/^[\x00-\xFF]*$/:/^[\x00-\x7F]*$/).test(J)}e(_Y,"isASCII");function Y9(J,K=!1){let Y=[],X=0;for(;X<J.length;){let Z=J[X],Q=e(function(W){if(!K)throw TypeError(W);Y.push({type:"INVALID_CHAR",index:X,value:J[X++]})},"ErrorOrInvalid");if(Z==="*"){Y.push({type:"ASTERISK",index:X,value:J[X++]});continue}if(Z==="+"||Z==="?"){Y.push({type:"OTHER_MODIFIER",index:X,value:J[X++]});continue}if(Z==="\\"){Y.push({type:"ESCAPED_CHAR",index:X++,value:J[X++]});continue}if(Z==="{"){Y.push({type:"OPEN",index:X,value:J[X++]});continue}if(Z==="}"){Y.push({type:"CLOSE",index:X,value:J[X++]});continue}if(Z===":"){let W="",$=X+1;for(;$<J.length;){let w=J.substr($,1);if($===X+1&&IV.test(w)||$!==X+1&&RV.test(w)){W+=J[$++];continue}break}if(!W){Q(`Missing parameter name at ${X}`);continue}Y.push({type:"NAME",index:X,value:W}),X=$;continue}if(Z==="("){let W=1,$="",w=X+1,H=!1;if(J[w]==="?"){Q(`Pattern cannot start with "?" at ${w}`);continue}for(;w<J.length;){if(!_Y(J[w],!1)){Q(`Invalid character '${J[w]}' at ${w}.`),H=!0;break}if(J[w]==="\\"){$+=J[w++]+J[w++];continue}if(J[w]===")"){if(W--,W===0){w++;break}}else if(J[w]==="("&&(W++,J[w+1]!=="?")){Q(`Capturing groups are not allowed at ${w}`),H=!0;break}$+=J[w++]}if(H)continue;if(W){Q(`Unbalanced pattern at ${X}`);continue}if(!$){Q(`Missing pattern at ${X}`);continue}Y.push({type:"REGEX",index:X,value:$}),X=w;continue}Y.push({type:"CHAR",index:X,value:J[X++]})}return Y.push({type:"END",index:X,value:""}),Y}e(Y9,"lexer");function X9(J,K={}){let Y=Y9(J);K.delimiter??="/#?",K.prefixes??="./";let X=`[^${s0(K.delimiter)}]+?`,Z=[],Q=0,W=0,$="",w=new Set,H=e((E)=>{if(W<Y.length&&Y[W].type===E)return Y[W++].value},"tryConsume"),z=e(()=>H("OTHER_MODIFIER")??H("ASTERISK"),"tryConsumeModifier"),U=e((E)=>{let D=H(E);if(D!==void 0)return D;let{type:F,index:j}=Y[W];throw TypeError(`Unexpected ${F} at ${j}, expected ${E}`)},"mustConsume"),V=e(()=>{let E="",D;for(;D=H("CHAR")??H("ESCAPED_CHAR");)E+=D;return E},"consumeText"),B=e((E)=>E,"DefaultEncodePart"),L=K.encodePart||B,A="",M=e((E)=>{A+=E},"appendToPendingFixedValue"),O=e(()=>{A.length&&(Z.push(new R5(3,"","",L(A),"",3)),A="")},"maybeAddPartFromPendingFixedValue"),N=e((E,D,F,j,R)=>{let I=3;switch(R){case"?":I=1;break;case"*":I=0;break;case"+":I=2;break}if(!D&&!F&&I===3){M(E);return}if(O(),!D&&!F){if(!E)return;Z.push(new R5(3,"","",L(E),"",I));return}let C;F?F==="*"?C=e4:C=F:C=X;let h=2;C===X?(h=1,C=""):C===e4&&(h=0,C="");let l;if(D?l=D:F&&(l=Q++),w.has(l))throw TypeError(`Duplicate name '${l}'.`);w.add(l),Z.push(new R5(h,l,L(E),C,L(j),I))},"addPart");for(;W<Y.length;){let E=H("CHAR"),D=H("NAME"),F=H("REGEX");if(!D&&!F&&(F=H("ASTERISK")),D||F){let R=E??"";K.prefixes.indexOf(R)===-1&&(M(R),R=""),O();let I=z();N(R,D,F,"",I);continue}let j=E??H("ESCAPED_CHAR");if(j){M(j);continue}if(H("OPEN")){let R=V(),I=H("NAME"),C=H("REGEX");!I&&!C&&(C=H("ASTERISK"));let h=V();U("CLOSE");let l=z();N(R,I,C,h,l);continue}O(),U("END")}return Z}e(X9,"parse");function s0(J){return J.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}e(s0,"escapeString");function J9(J){return J&&J.ignoreCase?"ui":"u"}e(J9,"flags");function DY(J,K,Y){return Z9(X9(J,Y),K,Y)}e(DY,"stringToRegexp");function H5(J){switch(J){case 0:return"*";case 1:return"?";case 2:return"+";case 3:return""}}e(H5,"modifierToString");function Z9(J,K,Y={}){Y.delimiter??="/#?",Y.prefixes??="./",Y.sensitive??=!1,Y.strict??=!1,Y.end??=!0,Y.start??=!0,Y.endsWith="";let X=Y.start?"^":"";for(let $ of J){if($.type===3){$.modifier===3?X+=s0($.value):X+=`(?:${s0($.value)})${H5($.modifier)}`;continue}K&&K.push($.name);let w=`[^${s0(Y.delimiter)}]+?`,H=$.value;if($.type===1?H=w:$.type===0&&(H=e4),!$.prefix.length&&!$.suffix.length){$.modifier===3||$.modifier===1?X+=`(${H})${H5($.modifier)}`:X+=`((?:${H})${H5($.modifier)})`;continue}if($.modifier===3||$.modifier===1){X+=`(?:${s0($.prefix)}(${H})${s0($.suffix)})`,X+=H5($.modifier);continue}X+=`(?:${s0($.prefix)}`,X+=`((?:${H})(?:`,X+=s0($.suffix),X+=s0($.prefix),X+=`(?:${H}))*)${s0($.suffix)})`,$.modifier===0&&(X+="?")}let Z=`[${s0(Y.endsWith)}]|$`,Q=`[${s0(Y.delimiter)}]`;if(Y.end)return Y.strict||(X+=`${Q}?`),Y.endsWith.length?X+=`(?=${Z})`:X+="$",new RegExp(X,J9(Y));Y.strict||(X+=`(?:${Q}(?=${Z}))?`);let W=!1;if(J.length){let $=J[J.length-1];$.type===3&&$.modifier===3&&(W=Y.delimiter.indexOf($)>-1)}return W||(X+=`(?=${Q}|${Z})`),new RegExp(X,J9(Y))}e(Z9,"partsToRegexp");var a1={delimiter:"",prefixes:"",sensitive:!0,strict:!0},TV={delimiter:".",prefixes:"",sensitive:!0,strict:!0},CV={delimiter:"/",prefixes:"/",sensitive:!0,strict:!0};function IY(J,K){return J.length?J[0]==="/"?!0:!K||J.length<2?!1:(J[0]=="\\"||J[0]=="{")&&J[1]=="/":!1}e(IY,"isAbsolutePathname");function Q9(J,K){return J.startsWith(K)?J.substring(K.length,J.length):J}e(Q9,"maybeStripPrefix");function RY(J,K){return J.endsWith(K)?J.substr(0,J.length-K.length):J}e(RY,"maybeStripSuffix");function W9(J){return!J||J.length<2?!1:J[0]==="["||(J[0]==="\\"||J[0]==="{")&&J[1]==="["}e(W9,"treatAsIPv6Hostname");var TY=["ftp","file","http","https","ws","wss"];function w9(J){if(!J)return!0;for(let K of TY)if(J.test(K))return!0;return!1}e(w9,"isSpecialScheme");function CY(J,K){if(J=Q9(J,"#"),K||J==="")return J;let Y=new URL("https://example.com");return Y.hash=J,Y.hash?Y.hash.substring(1,Y.hash.length):""}e(CY,"canonicalizeHash");function PY(J,K){if(J=Q9(J,"?"),K||J==="")return J;let Y=new URL("https://example.com");return Y.search=J,Y.search?Y.search.substring(1,Y.search.length):""}e(PY,"canonicalizeSearch");function SY(J,K){return K||J===""?J:W9(J)?z9(J):H9(J)}e(SY,"canonicalizeHostname");function vY(J,K){if(K||J==="")return J;let Y=new URL("https://example.com");return Y.password=J,Y.password}e(vY,"canonicalizePassword");function yY(J,K){if(K||J==="")return J;let Y=new URL("https://example.com");return Y.username=J,Y.username}e(yY,"canonicalizeUsername");function kY(J,K,Y){if(Y||J==="")return J;if(K&&!TY.includes(K))return new URL(`${K}:${J}`).pathname;let X=J[0]=="/";return J=new URL(X?J:"/-"+J,"https://example.com").pathname,X||(J=J.substring(2,J.length)),J}e(kY,"canonicalizePathname");function hY(J,K,Y){return $9(K)===J&&(J=""),Y||J===""?J:U9(J)}e(hY,"canonicalizePort");function gY(J,K){return J=RY(J,":"),K||J===""?J:W6(J)}e(gY,"canonicalizeProtocol");function $9(J){switch(J){case"ws":case"http":return"80";case"wws":case"https":return"443";case"ftp":return"21";default:return""}}e($9,"defaultPortForProtocol");function W6(J){if(J==="")return J;if(/^[-+.A-Za-z0-9]*$/.test(J))return J.toLowerCase();throw TypeError(`Invalid protocol '${J}'.`)}e(W6,"protocolEncodeCallback");function xY(J){if(J==="")return J;let K=new URL("https://example.com");return K.username=J,K.username}e(xY,"usernameEncodeCallback");function bY(J){if(J==="")return J;let K=new URL("https://example.com");return K.password=J,K.password}e(bY,"passwordEncodeCallback");function H9(J){if(J==="")return J;if(/[\t\n\r #%/:<>?@[\]^\\|]/g.test(J))throw TypeError(`Invalid hostname '${J}'`);let K=new URL("https://example.com");return K.hostname=J,K.hostname}e(H9,"hostnameEncodeCallback");function z9(J){if(J==="")return J;if(/[^0-9a-fA-F[\]:]/g.test(J))throw TypeError(`Invalid IPv6 hostname '${J}'`);return J.toLowerCase()}e(z9,"ipv6HostnameEncodeCallback");function U9(J){if(J===""||/^[0-9]*$/.test(J)&&parseInt(J)<=65535)return J;throw TypeError(`Invalid port '${J}'.`)}e(U9,"portEncodeCallback");function fY(J){if(J==="")return J;let K=new URL("https://example.com");return K.pathname=J[0]!=="/"?"/-"+J:J,J[0]!=="/"?K.pathname.substring(2,K.pathname.length):K.pathname}e(fY,"standardURLPathnameEncodeCallback");function mY(J){return J===""?J:new URL(`data:${J}`).pathname}e(mY,"pathURLPathnameEncodeCallback");function cY(J){if(J==="")return J;let K=new URL("https://example.com");return K.search=J,K.search.substring(1,K.search.length)}e(cY,"searchEncodeCallback");function lY(J){if(J==="")return J;let K=new URL("https://example.com");return K.hash=J,K.hash.substring(1,K.hash.length)}e(lY,"hashEncodeCallback");var dY=class{#Q;#X=[];#K={};#J=0;#Z=1;#H=0;#w=0;#B=0;#A=0;#G=!1;constructor(J){this.#Q=J}get result(){return this.#K}parse(){for(this.#X=Y9(this.#Q,!0);this.#J<this.#X.length;this.#J+=this.#Z){if(this.#Z=1,this.#X[this.#J].type==="END"){if(this.#w===0){this.#O(),this.#z()?this.#Y(9,1):this.#U()?this.#Y(8,1):this.#Y(7,0);continue}else if(this.#w===2){this.#V(5);continue}this.#Y(10,0);break}if(this.#B>0)if(this.#I())this.#B-=1;else continue;if(this.#D()){this.#B+=1;continue}switch(this.#w){case 0:this.#N()&&this.#V(1);break;case 1:if(this.#N()){this.#C();let J=7,K=1;this.#E()?(J=2,K=3):this.#G&&(J=2),this.#Y(J,K)}break;case 2:this.#L()?this.#V(3):(this.#q()||this.#U()||this.#z())&&this.#V(5);break;case 3:this.#F()?this.#Y(4,1):this.#L()&&this.#Y(5,1);break;case 4:this.#L()&&this.#Y(5,1);break;case 5:this.#R()?this.#A+=1:this.#T()&&(this.#A-=1),this.#_()&&!this.#A?this.#Y(6,1):this.#q()?this.#Y(7,0):this.#U()?this.#Y(8,1):this.#z()&&this.#Y(9,1);break;case 6:this.#q()?this.#Y(7,0):this.#U()?this.#Y(8,1):this.#z()&&this.#Y(9,1);break;case 7:this.#U()?this.#Y(8,1):this.#z()&&this.#Y(9,1);break;case 8:this.#z()&&this.#Y(9,1);break;case 9:break;case 10:break}}this.#K.hostname!==void 0&&this.#K.port===void 0&&(this.#K.port="")}#Y(J,K){switch(this.#w){case 0:break;case 1:this.#K.protocol=this.#$();break;case 2:break;case 3:this.#K.username=this.#$();break;case 4:this.#K.password=this.#$();break;case 5:this.#K.hostname=this.#$();break;case 6:this.#K.port=this.#$();break;case 7:this.#K.pathname=this.#$();break;case 8:this.#K.search=this.#$();break;case 9:this.#K.hash=this.#$();break;case 10:break}this.#w!==0&&J!==10&&([1,2,3,4].includes(this.#w)&&[6,7,8,9].includes(J)&&(this.#K.hostname??=""),[1,2,3,4,5,6].includes(this.#w)&&[8,9].includes(J)&&(this.#K.pathname??=this.#G?"/":""),[1,2,3,4,5,6,7].includes(this.#w)&&J===9&&(this.#K.search??="")),this.#j(J,K)}#j(J,K){this.#w=J,this.#H=this.#J+K,this.#J+=K,this.#Z=0}#O(){this.#J=this.#H,this.#Z=0}#V(J){this.#O(),this.#w=J}#M(J){return J<0&&(J=this.#X.length-J),J<this.#X.length?this.#X[J]:this.#X[this.#X.length-1]}#W(J,K){let Y=this.#M(J);return Y.value===K&&(Y.type==="CHAR"||Y.type==="ESCAPED_CHAR"||Y.type==="INVALID_CHAR")}#N(){return this.#W(this.#J,":")}#E(){return this.#W(this.#J+1,"/")&&this.#W(this.#J+2,"/")}#L(){return this.#W(this.#J,"@")}#F(){return this.#W(this.#J,":")}#_(){return this.#W(this.#J,":")}#q(){return this.#W(this.#J,"/")}#U(){if(this.#W(this.#J,"?"))return!0;if(this.#X[this.#J].value!=="?")return!1;let J=this.#M(this.#J-1);return J.type!=="NAME"&&J.type!=="REGEX"&&J.type!=="CLOSE"&&J.type!=="ASTERISK"}#z(){return this.#W(this.#J,"#")}#D(){return this.#X[this.#J].type=="OPEN"}#I(){return this.#X[this.#J].type=="CLOSE"}#R(){return this.#W(this.#J,"[")}#T(){return this.#W(this.#J,"]")}#$(){let J=this.#X[this.#J],K=this.#M(this.#H).index;return this.#Q.substring(K,J.index)}#C(){let J={};Object.assign(J,a1),J.encodePart=W6;let K=DY(this.#$(),void 0,J);this.#G=w9(K)}};e(dY,"Parser");var t4=["protocol","username","password","hostname","port","pathname","search","hash"],s1="*";function K9(J,K){if(typeof J!="string")throw TypeError("parameter 1 is not of type 'string'.");let Y=new URL(J,K);return{protocol:Y.protocol.substring(0,Y.protocol.length-1),username:Y.username,password:Y.password,hostname:Y.hostname,port:Y.port,pathname:Y.pathname,search:Y.search!==""?Y.search.substring(1,Y.search.length):void 0,hash:Y.hash!==""?Y.hash.substring(1,Y.hash.length):void 0}}e(K9,"extractValues");function R1(J,K){return K?I5(J):J}e(R1,"processBaseURLString");function D5(J,K,Y){let X;if(typeof K.baseURL=="string")try{X=new URL(K.baseURL),K.protocol===void 0&&(J.protocol=R1(X.protocol.substring(0,X.protocol.length-1),Y)),!Y&&K.protocol===void 0&&K.hostname===void 0&&K.port===void 0&&K.username===void 0&&(J.username=R1(X.username,Y)),!Y&&K.protocol===void 0&&K.hostname===void 0&&K.port===void 0&&K.username===void 0&&K.password===void 0&&(J.password=R1(X.password,Y)),K.protocol===void 0&&K.hostname===void 0&&(J.hostname=R1(X.hostname,Y)),K.protocol===void 0&&K.hostname===void 0&&K.port===void 0&&(J.port=R1(X.port,Y)),K.protocol===void 0&&K.hostname===void 0&&K.port===void 0&&K.pathname===void 0&&(J.pathname=R1(X.pathname,Y)),K.protocol===void 0&&K.hostname===void 0&&K.port===void 0&&K.pathname===void 0&&K.search===void 0&&(J.search=R1(X.search.substring(1,X.search.length),Y)),K.protocol===void 0&&K.hostname===void 0&&K.port===void 0&&K.pathname===void 0&&K.search===void 0&&K.hash===void 0&&(J.hash=R1(X.hash.substring(1,X.hash.length),Y))}catch{throw TypeError(`invalid baseURL '${K.baseURL}'.`)}if(typeof K.protocol=="string"&&(J.protocol=gY(K.protocol,Y)),typeof K.username=="string"&&(J.username=yY(K.username,Y)),typeof K.password=="string"&&(J.password=vY(K.password,Y)),typeof K.hostname=="string"&&(J.hostname=SY(K.hostname,Y)),typeof K.port=="string"&&(J.port=hY(K.port,J.protocol,Y)),typeof K.pathname=="string"){if(J.pathname=K.pathname,X&&!IY(J.pathname,Y)){let Z=X.pathname.lastIndexOf("/");Z>=0&&(J.pathname=R1(X.pathname.substring(0,Z+1),Y)+J.pathname)}J.pathname=kY(J.pathname,J.protocol,Y)}return typeof K.search=="string"&&(J.search=PY(K.search,Y)),typeof K.hash=="string"&&(J.hash=CY(K.hash,Y)),J}e(D5,"applyInit");function I5(J){return J.replace(/([+*?:{}()\\])/g,"\\$1")}e(I5,"escapePatternString");function uY(J){return J.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}e(uY,"escapeRegexpString");function pY(J,K){K.delimiter??="/#?",K.prefixes??="./",K.sensitive??=!1,K.strict??=!1,K.end??=!0,K.start??=!0,K.endsWith="";let Y=".*",X=`[^${uY(K.delimiter)}]+?`,Z=/[$_\u200C\u200D\p{ID_Continue}]/u,Q="";for(let W=0;W<J.length;++W){let $=J[W];if($.type===3){if($.modifier===3){Q+=I5($.value);continue}Q+=`{${I5($.value)}}${H5($.modifier)}`;continue}let w=$.hasCustomName(),H=!!$.suffix.length||!!$.prefix.length&&($.prefix.length!==1||!K.prefixes.includes($.prefix)),z=W>0?J[W-1]:null,U=W<J.length-1?J[W+1]:null;if(!H&&w&&$.type===1&&$.modifier===3&&U&&!U.prefix.length&&!U.suffix.length)if(U.type===3){let V=U.value.length>0?U.value[0]:"";H=Z.test(V)}else H=!U.hasCustomName();if(!H&&!$.prefix.length&&z&&z.type===3){let V=z.value[z.value.length-1];H=K.prefixes.includes(V)}H&&(Q+="{"),Q+=I5($.prefix),w&&(Q+=`:${$.name}`),$.type===2?Q+=`(${$.value})`:$.type===1?w||(Q+=`(${X})`):$.type===0&&(!w&&(!z||z.type===3||z.modifier!==3||H||$.prefix!=="")?Q+="*":Q+=`(${Y})`),$.type===1&&w&&$.suffix.length&&Z.test($.suffix[0])&&(Q+="\\"),Q+=I5($.suffix),H&&(Q+="}"),$.modifier!==3&&(Q+=H5($.modifier))}return Q}e(pY,"partsToPattern");var V9=class{#Q;#X={};#K={};#J={};#Z={};#H=!1;constructor(J={},K,Y){try{let X;if(typeof K=="string"?X=K:Y=K,typeof J=="string"){let $=new dY(J);if($.parse(),J=$.result,X===void 0&&typeof J.protocol!="string")throw TypeError("A base URL must be provided for a relative constructor string.");J.baseURL=X}else{if(!J||typeof J!="object")throw TypeError("parameter 1 is not of type 'string' and cannot convert to dictionary.");if(X)throw TypeError("parameter 1 is not of type 'string'.")}typeof Y>"u"&&(Y={ignoreCase:!1});let Z={ignoreCase:Y.ignoreCase===!0},Q={pathname:s1,protocol:s1,username:s1,password:s1,hostname:s1,port:s1,search:s1,hash:s1};this.#Q=D5(Q,J,!0),$9(this.#Q.protocol)===this.#Q.port&&(this.#Q.port="");let W;for(W of t4){if(!(W in this.#Q))continue;let $={},w=this.#Q[W];switch(this.#K[W]=[],W){case"protocol":Object.assign($,a1),$.encodePart=W6;break;case"username":Object.assign($,a1),$.encodePart=xY;break;case"password":Object.assign($,a1),$.encodePart=bY;break;case"hostname":Object.assign($,TV),W9(w)?$.encodePart=z9:$.encodePart=H9;break;case"port":Object.assign($,a1),$.encodePart=U9;break;case"pathname":w9(this.#X.protocol)?(Object.assign($,CV,Z),$.encodePart=fY):(Object.assign($,a1,Z),$.encodePart=mY);break;case"search":Object.assign($,a1,Z),$.encodePart=cY;break;case"hash":Object.assign($,a1,Z),$.encodePart=lY;break}try{this.#Z[W]=X9(w,$),this.#X[W]=Z9(this.#Z[W],this.#K[W],$),this.#J[W]=pY(this.#Z[W],$),this.#H=this.#H||this.#Z[W].some((H)=>H.type===2)}catch{throw TypeError(`invalid ${W} pattern '${this.#Q[W]}'.`)}}}catch(X){throw TypeError(`Failed to construct 'URLPattern': ${X.message}`)}}get[Symbol.toStringTag](){return"URLPattern"}test(J={},K){let Y={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof J!="string"&&K)throw TypeError("parameter 1 is not of type 'string'.");if(typeof J>"u")return!1;try{typeof J=="object"?Y=D5(Y,J,!1):Y=D5(Y,K9(J,K),!1)}catch{return!1}let X;for(X of t4)if(!this.#X[X].exec(Y[X]))return!1;return!0}exec(J={},K){let Y={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof J!="string"&&K)throw TypeError("parameter 1 is not of type 'string'.");if(typeof J>"u")return;try{typeof J=="object"?Y=D5(Y,J,!1):Y=D5(Y,K9(J,K),!1)}catch{return null}let X={};K?X.inputs=[J,K]:X.inputs=[J];let Z;for(Z of t4){let Q=this.#X[Z].exec(Y[Z]);if(!Q)return null;let W={};for(let[$,w]of this.#K[Z].entries())if(typeof w=="string"||typeof w=="number"){let H=Q[$+1];W[w]=H}X[Z]={input:Y[Z]??"",groups:W}}return X}static compareComponent(J,K,Y){let X=e(($,w)=>{for(let H of["type","modifier","prefix","value","suffix"]){if($[H]<w[H])return-1;if($[H]===w[H])continue;return 1}return 0},"comparePart"),Z=new R5(3,"","","","",3),Q=new R5(0,"","","","",3),W=e(($,w)=>{let H=0;for(;H<Math.min($.length,w.length);++H){let z=X($[H],w[H]);if(z)return z}return $.length===w.length?0:X($[H]??Z,w[H]??Z)},"comparePartList");return!K.#J[J]&&!Y.#J[J]?0:K.#J[J]&&!Y.#J[J]?W(K.#Z[J],[Q]):!K.#J[J]&&Y.#J[J]?W([Q],Y.#Z[J]):W(K.#Z[J],Y.#Z[J])}get protocol(){return this.#J.protocol}get username(){return this.#J.username}get password(){return this.#J.password}get hostname(){return this.#J.hostname}get port(){return this.#J.port}get pathname(){return this.#J.pathname}get search(){return this.#J.search}get hash(){return this.#J.hash}get hasRegExpGroups(){return this.#H}};e(V9,"URLPattern");function w6(J,K){for(let[Y,X]of Object.entries(J)){let Z=new V9({pathname:Y});if(Z.test({pathname:K}))return{routePath:Y,params:Z.exec({pathname:K})?.pathname.groups??{},route:X}}return null}var z5={startIndex:0,carriedViews:[]};function iY(J,K){let Y=L1(J.path,K);return Y.includes("*")?null:Y}function PV(J,K){if(!J)return z5;if(J.search!==K.search)return z5;let Y=Math.min(J.segments.length,K.segments.length-1),X=0;while(X<Y){let Z=J.segments[X],Q=K.segments[X];if(Q.alwaysRun)break;if(Z.viewPath!==Q.viewPath)break;let W=iY(Z,J.params),$=iY(Q,K.params);if(W===null||$===null||W!==$)break;X++}if(X===0)return z5;return{startIndex:X,carriedViews:K.segments.slice(0,X).map(({viewPath:Z})=>Z)}}function SV(J,K){let[,Y,...X]=J.split("/");if(!K.includes(Y))return J;let Z=`/${X.join("/")}`;return Z==="/"?"/":Z.replace(/\/$/,"")}function nY(J){let{flatViewRoutes:K,supportedLocales:Y,from:X,origin:Z,to:Q}=J;if(!X)return z5;let W;try{W=new URL(X,Z)}catch{return z5}if(W.origin!==Z)return z5;let $=w6(K,SV(W.pathname,Y));if(!$)return z5;return PV({segments:$.route.segments,params:$.params,search:W.search},Q)}var B9="x-gemi-from";import{renderToReadableStream as M9}from"react-dom/server.browser";import{createElement as Z8,Fragment as kV}from"react";function vV(J){return J.replace(/\([^)]*\)/g,"").replace(/\/\//g,"/")}function $6(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,W=$6(Q.routes);for(let[$,w]of Object.entries(W)){let H=Y==="/"?$:`${Y}${$}`,z=$==="/"&&Y!=="/"?Y:H;K[z]=[Z,...w]}if(K[Y].length===1)delete K[Y]}else K[Y]=[Z]}else{let Z=new X,Q=$6(Z.routes);for(let[W,$]of Object.entries(Q)){let w=Y==="/"?W:`${Y}${W}`,H=W==="/"&&Y!=="/"?Y:w;K[H]=$}}return Object.fromEntries(Object.entries(K).map(([Y,X])=>[vV(Y),X]))}function H6(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,W=H6(Q.routes);K.push([Z,W])}else K.push([Z,[]])}else{let Z=new X,Q=H6(Z.routes);K.push(...Q)}return K}function A9(J){let K=[];for(let[Y,X]of J)K.push(Y,...A9(X).flat());return Array.from(new Set(K))}class X8{static debug(J,K){J1.use().log("debug",J,K)}static info(J,K){J1.use().log("info",J,K)}static notice(J,K){J1.use().log("notice",J,K)}static warning(J,K){J1.use().log("warning",J,K)}static error(J,K){J1.use().log("error",J,K)}static critical(J,K){J1.use().log("critical",J,K)}static alert(J,K){J1.use().log("alert",J,K)}static emergency(J,K){J1.use().log("emergency",J,K)}}class G9 extends y0{service;static _name="KernelIdServiceContainer";constructor(J){super();this.service=J}}var hV=`
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 gV(J,K,Y){let X=`${Y==="italic"?"italic,":""}wght@${Y==="italic"?"1,":""}${K}`,W=(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(W).then(($)=>$.arrayBuffer())}var L9="/assets";function xV(J){let K=J.filter((Y)=>Y===L9||Y.startsWith(`${L9}/`));if(K.length>0){let Y=K.length>1;throw Error(`View route path${Y?"s":""} ${K.map((X)=>`"${X}"`).join(", ")} use${Y?"":"s"} the reserved "${L9}" prefix. The client build output is served from there before the router runs, so the route would never match. Mount it somewhere else.`)}}class q9 extends y0{service;static _name="ViewRouterServiceContainer";flatViewRoutes={};routeManifest={};clientRouteManifest={};componentTree=[];flatComponentTree=[];root=null;constructor(J){super();this.service=J;let K={"/":J.rootRouter,"/auth":G6};this.flatViewRoutes=Q6(K),xV(Object.keys(this.flatViewRoutes)),this.routeManifest=$6(K),this.clientRouteManifest=Object.fromEntries(Object.entries(this.routeManifest).filter(([,Y])=>Y.at(-1)!=="FILE")),this.componentTree=H6(K),this.flatComponentTree=A9(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:W,prefetchedData:$,url:w,user:H,viewData:z,breadcrumbs:U,urlLocaleSegment:V,meta:B,isOgRequest:L,appId:A}=J,M=W.replace(`/${V}`,""),O={kind:"view",data:{meta:B,pageData:{[M]:z},__csrf:K.toString("base64"),prefetchedData:$,i18n:Z,auth:{user:H},routeManifest:this.clientRouteManifest,breadcrumbs:U,router:{urlLocaleSegment:V,pathname:Y,params:Q,currentPath:W,searchParams:w.search,is404:!Y?!0:!1},appId:A,componentTree:[["404",[]],...this.componentTree]},head:{}},N=this.root,E=this.routeManifest[Y];return async(D)=>{let{bootstrapModules:F,loaders:j,getStyles:R,viewImportMap:I,cssManifest:C,ogMap:h}=D;if(L){let u=null,p=null;for(let S of E)if(typeof h[S]==="function")p=S,u=h[S];if(!u)return new Response("Not found",{status:404});let P=Object.values(O.data.pageData)[0];try{await M9(Z8(u,P[p]),{onError:()=>{}})}catch(S){let{fonts:T,...c}=S.satoriOptions,d=await Promise.all(T.map((m)=>{return gV(m.name,m.weight,m.style).then((v)=>({...m,data:v}))})),a=new Headers(X);a.set("Content-Type","image/png");let r=await EY(S.jsx,{...c,fonts:d}),x=await yV(Buffer.from(r)).png({compressionLevel:0,effort:10}).toBuffer();return new Response(new Uint8Array(x),{headers:a})}return new Response("data")}O.data.cssManifest=C;let l=await R(E);try{let u=await M9(Z8(kV,{children:[...l,Z8("script",{key:"theme-script",dangerouslySetInnerHTML:{__html:hV}}),Z8(N,{data:O.data,viewImportMap:I,key:"root"})]}),{bootstrapScriptContent:`window.__GEMI_DATA__ = ${JSON.stringify(O.data)}; window.loaders=${j}`,bootstrapModules:F});return new Response(u,{status:!Y?404:200,headers:X})}catch(u){let p=await M9(Z8("div"),{bootstrapScriptContent:`window.error= ${JSON.stringify(u.message)}; window.stack_trace=${JSON.stringify(u.stack)};window.__GEMI_DATA__ = ${JSON.stringify(O.data)}; window.loaders=${j}`,bootstrapModules:Bun.env.NODE_ENV==="development"?["/render-error.js",...F]:F});return new Response(p,{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,...W]=Z.split("/"),$=`/${W.join("/")}`,w=null,H=null,z=P0.use();if(!z.service.supportedLocales.includes(Q))$=Z;else w=Q,H=Q;if(z.isEnabled&&!X){let N=P0.use().detectLocale(new H0(J,{},"view",$));if(H===null&&N!==z.service.defaultLocale){let E=K.pathname==="/"?"":K.pathname;return new Response("",{status:302,headers:{"Cache-Control":"private, no-cache, no-store, max-age=0, must-revalidate",Location:`/${N}${E}${K.search}`}})}}$=$.replace("//","/");let V=[],B=[],L=null,A={},M=null;try{let N=w6(this.flatViewRoutes,$);if(N){if(L=N.routePath,A=N.params,V=N.route.exec,B=N.route.middleware,Y&&this.service.partialRendering){let E=J.headers.get(B9),D=nY({flatViewRoutes:this.flatViewRoutes,supportedLocales:z.service.supportedLocales,from:E,origin:K.origin,to:{segments:N.route.segments,params:A,search:K.search}});if(D.startIndex>0)V=V.slice(D.startIndex),M={from:E,carriedViews:D.carriedViews}}}}catch(N){throw N}let O=new H0(J,A,"view",L);return await G0.run(O,async()=>{let N=null,E=G0.getStore();if(H){let F=H.replaceAll("/","");M5.setLocale(F)}else M5.setLocale();let D=E.req;try{await S5.use().runMiddleware(B);let F=P0.use(),j=F.isEnabled,R={};if(j){let x=null;if(H)x=H.replaceAll("/",""),E.setLocale(x);else x=F.detectLocale(new H0(J,D.params)),E.setLocale(x);let m=F.getPageTranslations(x,D.routePath);R={supportedLocales:F.service.supportedLocales,currentLocale:x,dictionary:{[x]:m},defaultLocale:F.service.defaultLocale}}let I=V.map((x)=>x(D)),C=Array.from(E.prefetchPromiseQueue).map((x)=>x()),[h]=await Promise.all([Promise.all(I),Promise.all(C)]),l=E.cookies,u=E.headers,p=E.prefetchedResources;N={data:h,cookies:l,headers:u,user:E.user,prefetchedData:Object.fromEntries(p.entries()),currentPathName:D.routePath,params:D.params,urlLocaleSegment:w,meta:E.renderMeta(),appId:G9.use().service.id};let{params:P,currentPathName:S,user:T}=N,c={},d={};for(let x of h??[]){let[m,v]=Object.entries(x)?.[0]??[];if(!m||!v)continue;d[`${m}:${S}`]=v.breadcrumb,c[m]=v}let a=c.FILE;if(a){for(let x of l)u.append("Set-Cookie",x.toString());try{await this.onRequestEnd(D)}catch(x){X8.error(x?.message??'Error in "onRequestEnd" event handler',{err:JSON.stringify(x)})}return await rY(a,u)}if(Y)return u.set("Content-Type","application/json; charset=utf-8"),u.append("Vary",B9),l.forEach((x)=>u.append("Set-Cookie",x.toString())),await this.service.onRequestEnd(D),new Response(JSON.stringify({meta:M&&!E.metadata.touched?null:N.meta,data:{[$]:c},breadcrumbs:d,prefetchedData:N.prefetchedData,i18n:R,is404:!S,appId:N.appId,partial:M}),{headers:u});u.set("Content-Type","text/html; charset=utf-8");for(let x of l)u.append("Set-Cookie",x.toString());let r=Bun.CSRF.generate(process.env.SECRET);u.append("Set-Cookie",`csrf_token=${r}; HttpOnly; Secure; SameSite=Strict; Expires=${new Date(Date.now()+86400000).toUTCString()}`);try{await this.onRequestEnd(D)}catch(x){X8.error(x?.message??'Error in "onRequestEnd" event handler',{err:JSON.stringify(x)})}return await this.render({csrfTokenHMAC:Buffer.from(""),currentPathName:S,headers:u,i18n:R,params:P,pathname:K.pathname,prefetchedData:N.prefetchedData,url:K,user:T,viewData:c,breadcrumbs:d,urlLocaleSegment:w,meta:N.meta,appId:N.appId,isOgRequest:X})}catch(F){if(F.kind===Q8)if(Y){let{status:j=400,data:R,directive:I,headers:C}=F.payload.api;return new Response(JSON.stringify({data:R,directive:I}),{headers:C,status:j})}else{let{status:j=400,error:R}=F.payload.view;return new Response(R?.message,{...F.payload.view,status:j})}throw this.service.onRequestFail(D,F),F}})}}class oY extends O1{routes={"/api-routes":this.get(()=>{let J=z6.use().flatRoutes,K=[];for(let[Y,X]of Object.entries(J))for(let[Z,Q]of Object.entries(X)){let{exec:W,middleware:$}=Q;K.push({path:Y,method:Z,middleware:$})}return K}),"/view-routes":this.get(()=>{let J=q9.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 z6 extends y0{service;static _name="ApiRouterServiceContainer";flatRoutes={};constructor(J){super();this.service=J;this.flatRoutes=E6({"/":this.service.rootRouter.bind(this.service),"/auth":M6,"/__gemi__/services/i18n":L6,"/__gemi__/services/logs":j6,"/__gemi__/services/image":q6,"/__gemi__/debug":oY})}getRouteHandlerAndParams(J){let Y=new URL(J.url).pathname.replace("/api",""),X={},Z;for(let[Q]of Object.entries(this.flatRoutes))try{let W=new URLPattern({pathname:Q});if(W.test({pathname:Y})){Z=Q,X=W.exec({pathname:Y})?.pathname.groups;break}}catch(W){console.error(W)}return{params:X,path:Z}}async runRouteMiddleware(J,K){let X=this.flatRoutes[J][K.rawRequest.method].middleware;try{await S5.use().runMiddleware(X)}catch(Z){if(Z.kind===Q8){if(K.rawRequest.url.includes("/api")){let{status:Q=400,data:W,headers:$}=Z.payload.api;return new Response(JSON.stringify(W),{status:Q,headers:{"Content-Type":"application/json",...$}})}}else throw this.service.onRequestFail(K,Z),console.error(Z),Z}}async getRouteData(J){let K=this.flatRoutes[J],Y=G0.getStore(),X=K[Y.req.rawRequest.method].exec??(()=>Promise.resolve({})),Z={};try{Z=await X()}catch(Q){if(Q.kind===Q8){let{status:W=400,data:$,headers:w}=Q.payload.api;return new Response(JSON.stringify($),{status:W,headers:{"Content-Type":"application/json",...w}})}throw this.service.onRequestFail(Y.req,Q),console.error(Q),Q}return Z}mergeContextIntoResponse(J,K,Y){let X=[];K?.forEach((W,$)=>X.push([$,W]));let Z=[...typeof K?.getSetCookie==="function"?K.getSetCookie():[],...Array.from(Y??[])];if(X.length===0&&Z.length===0)return J;let Q=(W)=>{for(let[$,w]of X){if($.toLowerCase()==="set-cookie")continue;if(!W.has($))W.set($,w)}for(let $ of Z)W.append("Set-Cookie",$)};try{return Q(J.headers),J}catch{let W=new Headers(J.headers);return Q(W),new Response(J.body,{status:J.status,statusText:J.statusText,headers:W})}}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 H0(J,K,"api",Y);if(!J.url.includes("/__gemi__"))this.service.onRequestStart(Z);return await G0.run(Z,async()=>{let Q=G0.getStore(),W=P0.use();if(W.isEnabled){let U=W.detectLocale(Z);Q.setLocale(U)}Q.setRequest(Z);let $=await this.runRouteMiddleware(Y,Z);if($ instanceof Response)return $;let w=await this.getRouteData(Y),H=Q.headers,z=Q.cookies;if(w instanceof Response){let U=this.mergeContextIntoResponse(w,H,z);if(!J.url.includes("/__gemi__"))this.service.onRequestEnd(Z);return Q.destroy(),U}if(H.set("Content-Type","application/json"),z.forEach((U)=>H.append("Set-Cookie",U.toString())),!J.url.includes("/__gemi__"))this.service.onRequestEnd(Z);return Q.destroy(),new Response(JSON.stringify(w),{headers:H})})}}class U6{static prepare(J,...K){let Y={params:{},search:{}},[X={}]=K,{search:Z,params:Q}={...Y,...X},W=G0.getStore();if(W.req.kind==="api")throw Error("Query.prefetch() cannot be called from an API request");let $=W.req.rawRequest,w=new URL($.url),H=new URLSearchParams(D9(Z));H.delete("json"),H.sort();let z=[`${L1(J,Q)}`,H.toString()].filter((M)=>M.length>0).join("?"),U=`${w.origin}/${z}`,V=new Request(U,{headers:$.headers}),B=new H0(V,Q),L=(M)=>{W.prefetchedResources.set(L1(J,Q),{[H.toString()]:M})},A=()=>{return G0.run(B,async()=>{let M=await z6.use().getRouteData(J);return L(M),M})};return{instant:A,prefetch:()=>{W.prefetchPromiseQueue.add(A)}}}static instant(J,...K){return U6.prepare(J,...K).instant()}static prefetch(J,...K){return U6.prepare(J,...K).prefetch()}}class sY{static channel(J,K){let Y=G5.use().service.channels[J];if(!Y)return console.error(`Channel ${J} not found`),{publish:()=>{}};let X=new Y;return{publish:(Z,Q=!1)=>{let W=L1(J,K);G5.use().publish(W,JSON.stringify({topic:W,data:X.publish(Z)}),Q)}}}}class aY{static absolute(J,...K){return`${process.env.HOST_NAME}${L1(String(J),K[0]??{})}`}static relative(J,...K){return L1(String(J),K[0]??{})}}class tY{name="Meta";static description(J){G0.getStore().metadata.description(J)}static title(J){G0.getStore().metadata.title(J)}static openGraph(J){G0.getStore().metadata.openGraph(J)}}var bV={set(J,K,Y){G0.getStore().setCookie(J,K,Y)},setIfAbsent(J,K,Y){if(G0.getStore().req.cookies.has(J))return!1;return G0.getStore().setCookie(J,K,Y),!0},delete(J){G0.getStore().deleteCookie(J)}};var{RedisClient:fV}=globalThis.Bun;class O9 extends y0{service;static _name="RedisServiceContainer";client;constructor(J){super();this.service=J;this.client=new fV(J.url,J.options)}}class k1{static get client(){return O9.use().client}static get(J){return k1.client.get(J)}static set(J,K){return k1.client.set(J,K)}static del(...J){return k1.client.del(...J)}static exists(J){return k1.client.exists(J)}static incr(J){return k1.client.incr(J)}static expire(J,K){return k1.client.expire(J,K)}static ttl(J){return k1.client.ttl(J)}}class J2{static consume(J,K={}){return eY.use().consume(J,K)}}export{G5 as s,f1 as t,M5 as u,L5 as v,_9 as w,U6 as x,sY as y,aY as z,J1 as A,X8 as B,tY as C,bV as D,O9 as E,k1 as F,J2 as G,Z2 as H,y9 as I,S5 as J,V9 as K,G9 as L,L9 as M,q9 as N,z6 as O};
78
+
79
+ //# debugId=04CB649772CAB4E564756E2164756E21