@fastr-pro/global-header 1.0.4 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +6 -2
- package/dist/index.js +509 -409
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -104,80 +104,80 @@ var R = ({ className: e = "h-9 w-auto cursor-pointer", isDarkMode: n, theme: r,
|
|
|
104
104
|
})
|
|
105
105
|
]
|
|
106
106
|
});
|
|
107
|
-
},
|
|
107
|
+
}, z = 48, B = (e, t = 0) => {
|
|
108
108
|
let n = new Int32Array(e.length);
|
|
109
|
-
for (let r = 0; r < e.length; r++) n[r] = e.charCodeAt(r) -
|
|
109
|
+
for (let r = 0; r < e.length; r++) n[r] = e.charCodeAt(r) - z - t;
|
|
110
110
|
return n;
|
|
111
|
-
},
|
|
111
|
+
}, V = (e) => {
|
|
112
112
|
let t = new Int32Array(e.length + 1);
|
|
113
113
|
for (let n = 0; n < e.length; n++) t[n + 1] = t[n] + e[n];
|
|
114
114
|
return t;
|
|
115
|
-
},
|
|
115
|
+
}, H = (e) => {
|
|
116
116
|
let t = new Int32Array(e.length), n = 0;
|
|
117
117
|
for (let r = 0; r < e.length; r++) {
|
|
118
|
-
let i = e.charCodeAt(r) -
|
|
118
|
+
let i = e.charCodeAt(r) - z;
|
|
119
119
|
n += i >>> 1 ^ -(i & 1), t[r] = n;
|
|
120
120
|
}
|
|
121
121
|
return t;
|
|
122
|
-
},
|
|
123
|
-
let e =
|
|
122
|
+
}, oe = 384, U = [], W = V(B("E0500002005282000000002000150000020021820000011200000003022202000300004200120000200420001200021200301200010400162000010000220021010:2192001200220012000220012000200200200400010200040000000000400200108200110100000022010313000162002000020020012020080213000228200000000082000000000120002000120020020040101020300130001001010")), G = V(B(":11111111211111119311546544411119731869:671397415686432441111111111161114151214313433415:78311132233313187211117221449443411141111151152226611131111112212518142224214215421421542142424242516171151615616347111111111197911327451111111111111111111113134714133513411111311111111111111111111112444411111342312715245411117:3")), K = "@containerabcdefghinlmoprstunderlineviawzccentlignnimatespectuto-colsrowsaglorightnessckdrop-sisbcontrastfiltergrayscalehue-rotateinvertopacityslurrightnessaturateepia-coniclinearpositionradialsizeockurrderttom-belrstxyespacing-xyaretoursorlnt-umnsendspantartainentrasteividerop-shadowurationcorationlay-xyasendillexontromlter-featuresstretchapr-xyayscaleidow-colsrowsue-rotatedentlinesetvert-beringsxyeshadoweiadingftnest-clamp-imageabein-lrstxyskx--b-coniclpositionrsizet-x-y-fromto-fromto-inearfromto-fromto-adialfromto-fromtofromtofromtofromtoblockhinlinew-screenesblockhinlinewbjectpacityrutlinederigin-offsetbelrstxyesrspective-originaceholderioghtng-offsettateundedw-xyz-belrstlreseslr-endspantartaturatecepiahizekewpace-taleroll-xyz-barmpbelrstxyesbelrstxyes-thumbrackadowrink-xyxyartrokeabextora-shadowpckingnsformitionlate-xyz-offsetill-changeoom", se = (() => {
|
|
123
|
+
let e = W.length - 1, t = new Int32Array(e);
|
|
124
124
|
for (let n = e - 1; n >= 0; n--) {
|
|
125
125
|
let e = 1, r = n + 1;
|
|
126
|
-
for (let i =
|
|
126
|
+
for (let i = W[n]; i < W[n + 1]; i++) e += t[r], r += t[r];
|
|
127
127
|
t[n] = e;
|
|
128
128
|
}
|
|
129
|
-
let n = new Int32Array(
|
|
129
|
+
let n = new Int32Array(W[e]), r = 0;
|
|
130
130
|
for (let i = 0; i < e; i++) {
|
|
131
131
|
let e = i + 1;
|
|
132
|
-
for (let a =
|
|
132
|
+
for (let a = W[i]; a < W[i + 1]; a++) n[r++] = e, e += t[e];
|
|
133
133
|
}
|
|
134
134
|
return n;
|
|
135
|
-
})(),
|
|
136
|
-
let e = (/* @__PURE__ */ new Int32Array(319)).fill(-1), t =
|
|
135
|
+
})(), ce = B("02000000000000900<=0?000B000F00F00ŏI0J0LNPRTVX0000]_a00000000000000000000000rst0000000zŏ00000000000
ŏ0000000ŏ00000000000000000000000000000000000000000000000000000000000000Ë000000000000000000000Þ000000000000000000ð0000000ø0ùúûüýþÿĀāĂ㥹Ć000000000000000000000000000000000000000000ħ0ĨĪ00000000000000000000ļĽ00000Ŭ000000", 1), q = V(B("123333359346463635126536711576")), le = B("93203242332583253248325D>E?F@03263243255B:032523853:0325B:8GA032542H<C=12727B:0328432553;D>E?3257D>032585:0325B:;0328B:032"), ue = B("012113445661666666789111:5;;;;;;;;444;;;:62999<1161=62>>?61:21@ABCD4446996:64E:::;:?::64:F114GHHIHHHHIHH1HH1HH1HHHHHH::EEJ4444::EE4444441691;644444114244444:;K6666555555555555555999666664444444444444444444444226?6:66644L9M?D:111::::6DE199"), de = H("020200202020020020020020020020200200200200200200200002020202001003040106000200200200200200200200200200200200200200200200200200200200200200200200200200200200020020020020020020002020200202002002002002002002002002002020002002020020200220200200200200200200200200200200020020020000200020002000200200200020020020002000200200200020020202002020202000200200020022000200200020020002002000200220002002000200W0Z00020020002002020002002000200g0j0002002000200200020020002002000200200020020002000200002000002002002002002000200020000200002002002002002002002020020020200200200200200200200200202020020020020020020020020002002002020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020002002002002002002000200200200200200200200200200020202020002000200020002002002002000020200200"), fe = (() => {
|
|
136
|
+
let e = (/* @__PURE__ */ new Int32Array(319)).fill(-1), t = H("02422242:222222242224222242442222222422222244442242226224222426222422442462222422622222222626222462242622422622422424242422222222422222222242422222222222222222622442224222222222222224424442262222222222222222222226224222424242422224422422422222"), n = H("02222222222222222222202222222222222222222222221422222222222222222222222222222222222Y\\222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222221422222222222222222222222222222222222222Ŀł222222222222222222");
|
|
137
137
|
for (let r = 0; r < t.length; r++) e[t[r]] = n[r];
|
|
138
138
|
return e;
|
|
139
|
-
})(),
|
|
139
|
+
})(), pe = "container |break-after- all auto avoid avoid-page column left page right|break-before- all auto avoid avoid-page column left page right|break-inside-a uto void void-column void-page|box-decoration- clone slice|box- border content| contents flow-root hidden table table-caption table-cell table-column table-column-group table-footer-group table-header-group table-row table-row-group| not-sr-only sr-only|float- end left none right start|clear- both end left none right start|isolat e ion-auto|overflow- auto clip hidden scroll visible|overflow-x- auto clip hidden scroll visible|overflow-y- auto clip hidden scroll visible|overscroll- auto contain none|overscroll-x- auto contain none|overscroll-y- auto contain none| absolute fixed relative static sticky| collapse invisible visible|justify- around baseline between center center-safe end end-safe evenly normal start stretch|justify-items- center center-safe end end-safe normal start stretch|justify-self- auto center center-safe end end-safe start stretch|items- baseline baseline-last center center-safe end end-safe start stretch|self- auto baseline baseline-last center center-safe end end-safe start stretch|place-content- around baseline between center center-safe end end-safe evenly start stretch|place-items- baseline center center-safe end end-safe start stretch|place-self- auto center center-safe end end-safe start stretch| antialiased subpixel-antialiased| italic not-italic|normal-nums |ordinal |slashed-zero | lining-nums oldstyle-nums| proportional-nums tabular-nums| diagonal-fractions stacked-fractions| no-underline overline| capitalize lowercase normal-case uppercase|truncate |whitespace- break-spaces normal nowrap pre pre-line pre-wrap|break- all keep normal words|wrap- anywhere break-word normal|hyphens- auto manual none|mix-blend- color color-burn color-dodge darken difference exclusion hard-light hue lighten luminosity multiply normal overlay plus-darker plus-lighter saturation screen soft-light|table- auto fixed|caption- bottom top|backface- hidden visible|appearance- auto none|scheme- dark light light-dark normal only-dark only-light|field-sizing- content fixed|pointer-events- auto none|resize -none -x -y|snap- align-none center end start|snap- always normal|snap- both none x y|snap- mandatory proximity|touch- auto manipulation none|touch-pan- left right x|touch-pan- down up y|touch-pinch-zoom |select- all auto none text|forced-color-adjust- auto none| normal size| baseline bottom middle sub super text-bottom text-top top| bounce none ping pulse spin| auto square video| auto fr max min px|none | auto full px| fixed local scroll|clip- border content padding text|origin- border content padding| bottom bottom-left bottom-right center left left-bottom left-top right right-bottom right-top top top-left top-right| no-repeat repeat repeat-round repeat-space repeat-x repeat-y| auto contain cover| gradient-to-b gradient-to-bl gradient-to-br gradient-to-l gradient-to-r gradient-to-t gradient-to-tl gradient-to-tr none|blend- color color-burn color-dodge darken difference exclusion hard-light hue lighten luminosity multiply normal overlay saturation screen soft-light|to- b bl br l r t tl tr| auto dvh fit full lh lvh max min px screen svh| dashed dotted double hidden none solid| collapse separate|px |auto |full | content none strict| inline-size size|layout |paint |style | around baseline between center center-safe end end-safe evenly normal start stretch| alias all-scroll auto cell col-resize context-menu copy crosshair default e-resize ew-resize grab grabbing help move n-resize ne-resize nesw-resize no-drop none not-allowed ns-resize nw-resize nwse-resize pointer progress row-resize s-resize se-resize sw-resize text vertical-text w-resize wait zoom-in zoom-out| dashed dotted double solid wavy| auto from-font|reverse |initial | in in-out initial linear out| col col-reverse row row-reverse| nowrap wrap wrap-reverse| auto initial none| black bold extrabold extralight light medium normal semibold thin| condensed expanded extra-condensed extra-expanded normal semi-condensed semi-expanded ultra-condensed ultra-expanded|flow- col col-dense dense row row-dense| none subgrid| auto dvh dvw fit full lh lvh lvw max min px screen svh svw| block flex grid table| auto dvw fit full lvw max min px screen svw| loose none normal px relaxed snug tight|through |item | inside outside| decimal disc none| auto px| clip-border clip-content clip-fill clip-padding clip-stroke clip-view no-clip| add exclude intersect subtract| alpha luminance match|origin- border content fill padding stroke view|type- alpha luminance| circle ellipse| closest-corner closest-side farthest-corner farthest-side|at- bottom bottom-left bottom-right center left left-bottom left-top right right-bottom right-top top top-left top-right| dvh fit full lh lvh max min none px screen svh| auto dvh dvw fit full lh lvh lvw max min none px screen svh svw| dvw fit full lvw max min none px screen svw| auto dvh dvw fit full lvh lvw max min none prose px svh svw| auto dvh dvw fit full lvh lvw max min none px screen svh svw| contain cover fill none scale-down| first last none| distant dramatic midrange near none normal|inset | full none|3d | auto smooth|gutter- auto both stable| auto none thin| inner none| auto dvh dvw fit full lvh lvw max min px svh svw|base | center end justify left right start| clip ellipsis| balance nowrap pretty wrap| normal tight tighter wide wider widest| cpu gpu none| 3d flat| all colors none opacity shadow transform| discrete normal| full px| auto dvh dvw fit full lvh lvw max min px screen svh svw| auto contents scroll transform".split("|").map((e) => {
|
|
140
140
|
let t = e.split(" "), n = t.shift();
|
|
141
141
|
for (let e = 0; e < t.length; e++) t[e] = n + t[e];
|
|
142
142
|
return t;
|
|
143
|
-
}),
|
|
143
|
+
}), me = H("0000000000000000000000000000000000000000000000000000000000000262242:6@200000006:240B428:4422400002046044222426220026642642462026224222824220022400000000\\00N222422242222222224062242222222422226264222422222222222222442804222422222222222222222222220<4<0204260002444020204224422"), he = H("ɠ222222222222222222222222222222222222222222222222222222222222˕4222226>ʶ22ʷʺʷ2ʸʷ42ʴ2ʓ22>621422ɶ222ɹɼɷɺɷɺ22ɱ42222ɨ2ɧ26622ɘɓ244ƸƵ222]d24242ǖǓƚÄȫ2263ȨȥȨ2222222ǣ222222222222222222ǂƽ2ƾƵ2222222422222ƜƑ22222222222222222222144Ŧţ22Ţş222222222222222222222ĸ2ı68ĦģĦɡŰ4Ġ«®ĝ822ĔđĔ2ē2222622"), ge = H("02222222222222222222222222222222222222222222222222222222222222222202022222222222EH2200IL021042222Y\\222IL0cf2e10j2222U00X202[^2y0000120|{~22
:22|22222222222G000qOVI00000}2>40000B00000I¨©000¬00000000000000021M®00°000000000000000000000222HGHa1º222¿2À2222ÉÌ000°2±"), _e = /* @__PURE__ */ new Int32Array(995), ve = /* @__PURE__ */ new Int32Array(995), ye = /* @__PURE__ */ new Int32Array(995), be = "", J = /* @__PURE__ */ new Int32Array(1038);
|
|
144
144
|
{
|
|
145
145
|
let e = /* @__PURE__ */ new Map(), t = 0, n = 0;
|
|
146
|
-
for (let r = 0; r <
|
|
146
|
+
for (let r = 0; r < me.length; r++) for (let i of pe[ge[r]]) {
|
|
147
147
|
let a = e.get(i);
|
|
148
|
-
a === void 0 && (a = t++, e.set(i, a),
|
|
148
|
+
a === void 0 && (a = t++, e.set(i, a), J[a * 2] = be.length, J[a * 2 + 1] = i.length, be += i), _e[n] = me[r], ve[n] = he[r], ye[n] = a, n++;
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
|
-
var
|
|
152
|
-
GROUP_COUNT:
|
|
153
|
-
customValidatorNames:
|
|
154
|
-
edgeStart:
|
|
155
|
-
labelStart:
|
|
156
|
-
labelText:
|
|
157
|
-
edgeTarget:
|
|
158
|
-
nodeGroup:
|
|
159
|
-
nodeVlist:
|
|
160
|
-
vlistPat:
|
|
161
|
-
vlistOps:
|
|
162
|
-
vlistRef:
|
|
163
|
-
vlistGroup:
|
|
164
|
-
litAnchor:
|
|
165
|
-
litGroup:
|
|
166
|
-
litPool:
|
|
167
|
-
poolOffsets:
|
|
168
|
-
poolText:
|
|
169
|
-
adjGid:
|
|
170
|
-
adjStart:
|
|
171
|
-
adjTgt:
|
|
172
|
-
patGid:
|
|
173
|
-
patTgt:
|
|
174
|
-
postfixLookupGroups:
|
|
151
|
+
var xe = H("0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p"), Se = V(B("1::24444432:442:44:44>222222:44:4421322511111311111114")), Ce = H("24A;33N=C@H4A;33N=C@<27;83:;8393NQ:3NQʰ222ˉºŴŽ2R2=18cƴÅŇ=cĞÛC1ƈǝȈ:ħ25=11D3A@4=<1;1DEr25;11B3?<6;:371BCn9@7=<8192>2E121@9@EHE@9>2T25511<398454131<=V25511<398454131<=ƧNž2Đå242L222290000f22500ɛ000ǘ222"), we = B("ij"), Te = B(""), Ee = B("1"), De = {
|
|
152
|
+
GROUP_COUNT: oe,
|
|
153
|
+
customValidatorNames: U,
|
|
154
|
+
edgeStart: W,
|
|
155
|
+
labelStart: G,
|
|
156
|
+
labelText: K,
|
|
157
|
+
edgeTarget: se,
|
|
158
|
+
nodeGroup: ce,
|
|
159
|
+
nodeVlist: fe,
|
|
160
|
+
vlistPat: q,
|
|
161
|
+
vlistOps: le,
|
|
162
|
+
vlistRef: ue,
|
|
163
|
+
vlistGroup: de,
|
|
164
|
+
litAnchor: _e,
|
|
165
|
+
litGroup: ve,
|
|
166
|
+
litPool: ye,
|
|
167
|
+
poolOffsets: J,
|
|
168
|
+
poolText: be,
|
|
169
|
+
adjGid: xe,
|
|
170
|
+
adjStart: Se,
|
|
171
|
+
adjTgt: Ce,
|
|
172
|
+
patGid: we,
|
|
173
|
+
patTgt: Te,
|
|
174
|
+
postfixLookupGroups: Ee,
|
|
175
175
|
orderSensitiveModifiers: "* ** after backdrop before details-content file first-letter first-line marker placeholder selection"
|
|
176
|
-
},
|
|
176
|
+
}, Oe = "line" in /* @__PURE__ */ Error(), Y = -1, ke = -1, Ae = (e, t, n) => {
|
|
177
177
|
let r = 2166136261;
|
|
178
178
|
for (let i = t; i < n; i++) r = Math.imul(r ^ e.charCodeAt(i), 16777619);
|
|
179
179
|
return r;
|
|
180
|
-
},
|
|
180
|
+
}, je = (e, t, n) => {
|
|
181
181
|
let r = n - t, i = Math.imul(r, 2654435761) ^ e.charCodeAt(t);
|
|
182
182
|
if (r > 3) {
|
|
183
183
|
let a = r >> 2, o = r >> 1;
|
|
@@ -185,7 +185,7 @@ var we = V("0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p"), Te = B(z
|
|
|
185
185
|
for (let r = t + 3, a = n - 4; r < t + 8 && r < a; r++, a--) i = Math.imul(i ^ e.charCodeAt(r) ^ e.charCodeAt(a) << 8, 16777619);
|
|
186
186
|
}
|
|
187
187
|
return i ^ i >>> 15 | 0;
|
|
188
|
-
},
|
|
188
|
+
}, Me = (e, t, n = {}) => {
|
|
189
189
|
let { GROUP_COUNT: r, edgeStart: i, labelStart: a, labelText: o, edgeTarget: s, nodeGroup: c, nodeVlist: l, vlistPat: u, vlistOps: d, vlistRef: f, vlistGroup: p, litAnchor: m, litGroup: h, litPool: g, poolOffsets: _, poolText: v, adjGid: y, adjStart: b, adjTgt: ee, patGid: te, patTgt: x, postfixLookupGroups: S, customValidatorNames: C, orderSensitiveModifiers: w } = e, T = new Int32Array(r).fill(-1);
|
|
190
190
|
for (let e = 0; e < y.length; e++) T[y[e]] = e;
|
|
191
191
|
let E = 0;
|
|
@@ -211,12 +211,12 @@ var we = V("0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p"), Te = B(z
|
|
|
211
211
|
for (; j < m.length * 2;) j <<= 1;
|
|
212
212
|
let M = new Int32Array(j).fill(-1);
|
|
213
213
|
for (let e = 0; e < m.length; e++) {
|
|
214
|
-
let t = _[g[e] * 2], n = (
|
|
214
|
+
let t = _[g[e] * 2], n = (Ae(v, t, t + _[g[e] * 2 + 1]) ^ Math.imul(m[e], 2654435761) | 0) & j - 1;
|
|
215
215
|
for (; M[n] !== -1;) n = n + 1 & j - 1;
|
|
216
216
|
M[n] = e;
|
|
217
217
|
}
|
|
218
218
|
let N = (e, t, n, r) => {
|
|
219
|
-
let i = (
|
|
219
|
+
let i = (Ae(t, n, r) ^ Math.imul(e, 2654435761) | 0) & j - 1, a = r - n;
|
|
220
220
|
for (;;) {
|
|
221
221
|
let r = M[i];
|
|
222
222
|
if (r === -1) return -1;
|
|
@@ -234,32 +234,32 @@ var we = V("0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p"), Te = B(z
|
|
|
234
234
|
let n = t && t[e];
|
|
235
235
|
if (!n) throw Error("cn: missing validator " + e);
|
|
236
236
|
return n;
|
|
237
|
-
}), R = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,
|
|
238
|
-
if (
|
|
237
|
+
}), R = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, z = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, B = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, V = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, H = 0, oe = -1, U = -1, W = -1, G = -1, K = (e) => e >= 97 && e <= 122 || e >= 65 && e <= 90 || e >= 48 && e <= 57 || e === 95, se = (e) => /\s/.test(String.fromCharCode(e)), ce = (e, t, n) => {
|
|
238
|
+
if (H = 0, oe = -1, n - t < 3) return;
|
|
239
239
|
let r = e.charCodeAt(t), i = e.charCodeAt(n - 1);
|
|
240
|
-
if (r === 91 && i === 93)
|
|
241
|
-
else if (r === 40 && i === 41)
|
|
240
|
+
if (r === 91 && i === 93) H = 1;
|
|
241
|
+
else if (r === 40 && i === 41) H = 2;
|
|
242
242
|
else return;
|
|
243
|
-
|
|
243
|
+
W = t + 1, G = n - 1;
|
|
244
244
|
let a = t + 1;
|
|
245
|
-
if (
|
|
245
|
+
if (K(e.charCodeAt(a))) {
|
|
246
246
|
for (a++; a < n - 1;) {
|
|
247
247
|
let t = e.charCodeAt(a);
|
|
248
|
-
if (!
|
|
248
|
+
if (!K(t) && t !== 45) break;
|
|
249
249
|
a++;
|
|
250
250
|
}
|
|
251
|
-
a < n - 2 && e.charCodeAt(a) === 58 && (
|
|
251
|
+
a < n - 2 && e.charCodeAt(a) === 58 && (oe = t + 1, U = a, W = a + 1);
|
|
252
252
|
}
|
|
253
|
-
},
|
|
253
|
+
}, q = (e, t, n, r) => {
|
|
254
254
|
if (n - t !== r.length) return !1;
|
|
255
255
|
for (let n = 0; n < r.length; n++) if (e.charCodeAt(t + n) !== r.charCodeAt(n)) return !1;
|
|
256
256
|
return !0;
|
|
257
|
-
},
|
|
258
|
-
if (n - t < 11 || !
|
|
257
|
+
}, le = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, ue = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, de = (e) => !!e && !Number.isNaN(Number(e)), fe = (e, t, n) => {
|
|
258
|
+
if (n - t < 11 || !q(e, t, t + 10, "@container")) return !1;
|
|
259
259
|
if (e.charCodeAt(t + 10) === 47) return n - t >= 12;
|
|
260
260
|
let r = e.charCodeAt(t + 11);
|
|
261
|
-
return r === 115 && n - t >= 17 &&
|
|
262
|
-
},
|
|
261
|
+
return r === 115 && n - t >= 17 && q(e, t + 10, t + 16, "-size/") || r === 110 && n - t >= 19 && q(e, t + 10, t + 18, "-normal/");
|
|
262
|
+
}, pe = [
|
|
263
263
|
1,
|
|
264
264
|
1,
|
|
265
265
|
1,
|
|
@@ -275,7 +275,7 @@ var we = V("0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p"), Te = B(z
|
|
|
275
275
|
2,
|
|
276
276
|
2,
|
|
277
277
|
2
|
|
278
|
-
],
|
|
278
|
+
], me = "length|number|number weight|family-name|position percentage|length size bg-size|image url|shadow|length|family-name|position percentage|length size bg-size|image url|shadow|number weight".split("|").map((e) => e.split(" ")), he = [
|
|
279
279
|
2,
|
|
280
280
|
3,
|
|
281
281
|
1,
|
|
@@ -291,44 +291,44 @@ var we = V("0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p"), Te = B(z
|
|
|
291
291
|
0,
|
|
292
292
|
1,
|
|
293
293
|
1
|
|
294
|
-
],
|
|
294
|
+
], ge = (e, t, n, r) => {
|
|
295
295
|
if (e >= 10) {
|
|
296
296
|
if (e >= 25) return L[e - 25](t.slice(n, r));
|
|
297
297
|
let i = e - 10;
|
|
298
|
-
if (
|
|
299
|
-
if (
|
|
300
|
-
for (let e of
|
|
298
|
+
if (H !== pe[i]) return !1;
|
|
299
|
+
if (oe >= 0) {
|
|
300
|
+
for (let e of me[i]) if (q(t, oe, U, e)) return !0;
|
|
301
301
|
return !1;
|
|
302
302
|
}
|
|
303
|
-
switch (
|
|
303
|
+
switch (he[i]) {
|
|
304
304
|
case 0: return !1;
|
|
305
305
|
case 1: return !0;
|
|
306
306
|
case 2: {
|
|
307
|
-
let e = t.slice(
|
|
308
|
-
return R.test(e) && !
|
|
307
|
+
let e = t.slice(W, G);
|
|
308
|
+
return R.test(e) && !z.test(e);
|
|
309
309
|
}
|
|
310
|
-
case 3: return
|
|
311
|
-
case 4: return
|
|
312
|
-
default: return
|
|
310
|
+
case 3: return de(t.slice(W, G));
|
|
311
|
+
case 4: return V.test(t.slice(W, G));
|
|
312
|
+
default: return B.test(t.slice(W, G));
|
|
313
313
|
}
|
|
314
314
|
}
|
|
315
315
|
switch (e) {
|
|
316
316
|
case 0: return !0;
|
|
317
|
-
case 1: return
|
|
318
|
-
case 2: return
|
|
319
|
-
case 3: return
|
|
320
|
-
case 4: return
|
|
321
|
-
case 5: return
|
|
317
|
+
case 1: return H === 0;
|
|
318
|
+
case 2: return H === 1;
|
|
319
|
+
case 3: return H === 2;
|
|
320
|
+
case 4: return le.test(t.slice(n, r));
|
|
321
|
+
case 5: return de(t.slice(n, r));
|
|
322
322
|
case 6: {
|
|
323
323
|
let e = t.slice(n, r);
|
|
324
324
|
return !!e && Number.isInteger(Number(e));
|
|
325
325
|
}
|
|
326
|
-
case 7: return r > n && t.charCodeAt(r - 1) === 37 &&
|
|
327
|
-
case 8: return
|
|
328
|
-
default: return
|
|
326
|
+
case 7: return r > n && t.charCodeAt(r - 1) === 37 && de(t.slice(n, r - 1));
|
|
327
|
+
case 8: return ue.test(t.slice(n, r));
|
|
328
|
+
default: return fe(t, n, r);
|
|
329
329
|
}
|
|
330
|
-
},
|
|
331
|
-
let o =
|
|
330
|
+
}, _e = new Set(typeof w == "string" ? w.split(" ") : w), ve = (e, t, n, r, i, a) => {
|
|
331
|
+
let o = Ae(t, n, r) ^ (i ? 2654435769 : 0) | 0, s = e.get(o);
|
|
332
332
|
if (s !== void 0) outer: for (let e = 0; e < s.length; e++) {
|
|
333
333
|
let a = s[e];
|
|
334
334
|
if (a.imp === i && a.k.length === r - n) {
|
|
@@ -343,7 +343,7 @@ var we = V("0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p"), Te = B(z
|
|
|
343
343
|
imp: i,
|
|
344
344
|
id: l
|
|
345
345
|
}), l;
|
|
346
|
-
},
|
|
346
|
+
}, ye = /* @__PURE__ */ new Map(), be = /* @__PURE__ */ new Map(), J = 2, xe = 4096, Se = (e, t) => {
|
|
347
347
|
let n = [], r = 0, i = 0, a = 0;
|
|
348
348
|
for (let t = 0; t < e.length; t++) {
|
|
349
349
|
let o = e.charCodeAt(t);
|
|
@@ -353,53 +353,53 @@ var we = V("0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p"), Te = B(z
|
|
|
353
353
|
let o = n[0];
|
|
354
354
|
if (n.length > 1) {
|
|
355
355
|
let e = [], t = [];
|
|
356
|
-
for (let r of n) r.charCodeAt(0) === 91 ||
|
|
356
|
+
for (let r of n) r.charCodeAt(0) === 91 || _e.has(r) ? (t.length && (e.push(...t.sort()), t = []), e.push(r)) : t.push(r);
|
|
357
357
|
t.length && e.push(...t.sort()), o = e.join(":");
|
|
358
358
|
}
|
|
359
|
-
let s = t ? o + " !" : o, c =
|
|
360
|
-
return c === void 0 &&
|
|
361
|
-
},
|
|
359
|
+
let s = t ? o + " !" : o, c = be.get(s);
|
|
360
|
+
return c === void 0 && be.set(s, c = J++), c;
|
|
361
|
+
}, Ce = /* @__PURE__ */ new Map(), we = r, Te = r + 4096, Ee = () => we++, De = 2097152, Me = 8192, Ne = new Int32Array(Me), Pe = Array(Me).fill(null), Ie = new Int32Array(Me), Le = new Int32Array(Me), Re = new Uint8Array(Me), ze = 0, Be = (e, t, n, r, i, a, o, s) => {
|
|
362
362
|
let c = e;
|
|
363
|
-
if (
|
|
364
|
-
if (
|
|
365
|
-
else if (!(
|
|
363
|
+
if (Pe[e] !== null) {
|
|
364
|
+
if (Pe[e | 1] === null) c = e | 1;
|
|
365
|
+
else if (!(ze++ & 3)) c = e | ze >> 2 & 1;
|
|
366
366
|
else return;
|
|
367
367
|
}
|
|
368
|
-
|
|
369
|
-
},
|
|
370
|
-
new Int32Array(
|
|
371
|
-
new Int32Array(
|
|
372
|
-
new Int32Array(
|
|
373
|
-
new Int32Array(
|
|
374
|
-
], [
|
|
375
|
-
|
|
376
|
-
let t = new Int32Array(
|
|
368
|
+
Pe[c] = t.slice(n, r), Ne[c] = i, Ie[c] = a, Le[c] = o, Re[c] = s;
|
|
369
|
+
}, Ve = () => Pe.fill(null), X = 256, He = [
|
|
370
|
+
new Int32Array(X),
|
|
371
|
+
new Int32Array(X),
|
|
372
|
+
new Int32Array(X),
|
|
373
|
+
new Int32Array(X)
|
|
374
|
+
], [Ue, We, Ge, Ke] = He, qe = new Uint8Array(X), Je = new Uint8Array(X), Ye = () => {
|
|
375
|
+
X *= 2, He = He.map((e) => {
|
|
376
|
+
let t = new Int32Array(X);
|
|
377
377
|
return t.set(e), t;
|
|
378
|
-
}), [
|
|
379
|
-
let e = new Uint8Array(
|
|
380
|
-
e.set(
|
|
381
|
-
},
|
|
382
|
-
if (e === 0 && t < r) return
|
|
383
|
-
let n = e * 2097152 + t + 1, i = Math.imul(n, 2654435761) >>>
|
|
384
|
-
for (;
|
|
385
|
-
if (
|
|
386
|
-
i = i + 1 &
|
|
378
|
+
}), [Ue, We, Ge, Ke] = He;
|
|
379
|
+
let e = new Uint8Array(X);
|
|
380
|
+
e.set(qe), qe = e, Je = new Uint8Array(X);
|
|
381
|
+
}, Xe = 64, Ze = new Int32Array(Xe), Qe = new Int32Array(Xe), $e = new Int32Array(r), et = 2048, tt = 21, nt = new Float64Array(et), rt = new Int32Array(et), it = 0, at = (e, t) => {
|
|
382
|
+
if (e === 0 && t < r) return $e[t] === it ? 1 : ($e[t] = it, 0);
|
|
383
|
+
let n = e * 2097152 + t + 1, i = Math.imul(n, 2654435761) >>> tt;
|
|
384
|
+
for (; rt[i] === it;) {
|
|
385
|
+
if (nt[i] === n) return 1;
|
|
386
|
+
i = i + 1 & et - 1;
|
|
387
387
|
}
|
|
388
|
-
return
|
|
389
|
-
},
|
|
388
|
+
return nt[i] = n, rt[i] = it, 0;
|
|
389
|
+
}, ot = (e, t, n, r, i) => {
|
|
390
390
|
if (n - t >= 2 && e.charCodeAt(t) === 91 && e.charCodeAt(n - 1) === 93) {
|
|
391
391
|
let r = -1;
|
|
392
392
|
for (let i = t + 1; i < n - 1; i++) if (e.charCodeAt(i) === 58) {
|
|
393
393
|
r = i;
|
|
394
394
|
break;
|
|
395
395
|
}
|
|
396
|
-
return r === -1 || r === t + 1 ?
|
|
396
|
+
return r === -1 || r === t + 1 ? Y : ve(Ce, e, t + 1, r, 0, Ee);
|
|
397
397
|
}
|
|
398
398
|
if (r >= 0 && c[r] >= 0) return c[r];
|
|
399
399
|
for (let t = i - 1; t >= 0; t--) {
|
|
400
|
-
let r =
|
|
400
|
+
let r = Qe[t];
|
|
401
401
|
if (r > n) continue;
|
|
402
|
-
let i =
|
|
402
|
+
let i = Ze[t], a = n - r;
|
|
403
403
|
if (ie[i] === 1 && a > 0 && a <= k) {
|
|
404
404
|
let t = e.charCodeAt(r);
|
|
405
405
|
if (A === !1 || t !== 91 && t !== 40) {
|
|
@@ -411,18 +411,18 @@ var we = V("0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p"), Te = B(z
|
|
|
411
411
|
if (o < 0) continue;
|
|
412
412
|
let s = f[o], c = u[s], m = u[s + 1];
|
|
413
413
|
if (c === m) continue;
|
|
414
|
-
|
|
414
|
+
ce(e, r, n);
|
|
415
415
|
let h = O[o] - c;
|
|
416
|
-
for (let t = c; t < m; t++) if (
|
|
416
|
+
for (let t = c; t < m; t++) if (ge(d[t], e, r, n)) return p[h + t];
|
|
417
417
|
}
|
|
418
|
-
return
|
|
419
|
-
},
|
|
418
|
+
return Y;
|
|
419
|
+
}, st = (e) => {
|
|
420
420
|
let t = e.length, n = 0, c = 0, u = !1;
|
|
421
|
-
(
|
|
421
|
+
(J > xe || ye.size > xe) && (ye = /* @__PURE__ */ new Map(), be = /* @__PURE__ */ new Map(), J = 2, Ve()), we > Te && (Ce = /* @__PURE__ */ new Map(), we = r, Ve());
|
|
422
422
|
let d = 0;
|
|
423
423
|
for (; d < t;) {
|
|
424
424
|
let f = e.charCodeAt(d);
|
|
425
|
-
if (f === 32 || f >= 9 && f <= 13 || f >= 160 &&
|
|
425
|
+
if (f === 32 || f >= 9 && f <= 13 || f >= 160 && se(f)) {
|
|
426
426
|
f !== 32 && (u = !0), d++;
|
|
427
427
|
continue;
|
|
428
428
|
}
|
|
@@ -434,27 +434,27 @@ var we = V("0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p"), Te = B(z
|
|
|
434
434
|
u = !0;
|
|
435
435
|
break;
|
|
436
436
|
}
|
|
437
|
-
} else if (f >= 160 &&
|
|
437
|
+
} else if (f >= 160 && se(f)) {
|
|
438
438
|
u = !0;
|
|
439
439
|
break;
|
|
440
440
|
}
|
|
441
441
|
m = Math.imul(m ^ f, 16777619), d++;
|
|
442
442
|
}
|
|
443
443
|
let h = d, g = h - p;
|
|
444
|
-
n ===
|
|
444
|
+
n === X && Ye();
|
|
445
445
|
let _ = n++;
|
|
446
|
-
|
|
446
|
+
Ue[_] = p, We[_] = h, c += g, m ^= Math.imul(g, 2654435761);
|
|
447
447
|
let v = m ^ m >>> 15 | 0, y = v & 8190;
|
|
448
448
|
{
|
|
449
449
|
let t = -1;
|
|
450
|
-
if (
|
|
451
|
-
let n =
|
|
450
|
+
if (Ne[y] === v && Pe[y] !== null && Pe[y].length === g ? t = y : Ne[y | 1] === v && Pe[y | 1] !== null && Pe[y | 1].length === g && (t = y | 1), t >= 0) {
|
|
451
|
+
let n = Pe[t], r = !0;
|
|
452
452
|
for (let t = 0; t < g; t++) if (n.charCodeAt(t) !== e.charCodeAt(p + t)) {
|
|
453
453
|
r = !1;
|
|
454
454
|
break;
|
|
455
455
|
}
|
|
456
456
|
if (r) {
|
|
457
|
-
|
|
457
|
+
Ge[_] = Ie[t], Ke[_] = Le[t], qe[_] = Re[t];
|
|
458
458
|
continue;
|
|
459
459
|
}
|
|
460
460
|
}
|
|
@@ -462,7 +462,7 @@ var we = V("0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p"), Te = B(z
|
|
|
462
462
|
let b = p;
|
|
463
463
|
if (I !== 0) {
|
|
464
464
|
if (h - p <= I || !e.startsWith(ae, p)) {
|
|
465
|
-
|
|
465
|
+
Ge[_] = Y, Be(y, e, p, h, v, Y, 0, 0);
|
|
466
466
|
continue;
|
|
467
467
|
}
|
|
468
468
|
b = p + I;
|
|
@@ -489,13 +489,13 @@ var we = V("0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p"), Te = B(z
|
|
|
489
489
|
let re = w;
|
|
490
490
|
T - w > 1 && e.charCodeAt(w) === 45 && (re = w + 1);
|
|
491
491
|
let k = 0, A = 0, j = 0, M = -1, N = 0;
|
|
492
|
-
(l[0] >= 0 || ie[0] === 1) && (
|
|
493
|
-
let P =
|
|
494
|
-
for (let t = re; t < T; t++) if (t === O && (P = A < j ?
|
|
492
|
+
(l[0] >= 0 || ie[0] === 1) && (Ze[0] = 0, Qe[0] = re, N = 1);
|
|
493
|
+
let P = ke, F = 0;
|
|
494
|
+
for (let t = re; t < T; t++) if (t === O && (P = A < j ? ke : k, F = N), k !== ke) {
|
|
495
495
|
let n = e.charCodeAt(t), r = -1;
|
|
496
|
-
if (A < j) o.charCodeAt(A) === n ? (A++, A === j && (r = k = M)) : k =
|
|
496
|
+
if (A < j) o.charCodeAt(A) === n ? (A++, A === j && (r = k = M)) : k = ke;
|
|
497
497
|
else {
|
|
498
|
-
let e = i[k], t = i[k + 1], c =
|
|
498
|
+
let e = i[k], t = i[k + 1], c = ke;
|
|
499
499
|
for (let i = e; i < t; i++) {
|
|
500
500
|
let e = a[i];
|
|
501
501
|
if (o.charCodeAt(e) === n) {
|
|
@@ -506,93 +506,93 @@ var we = V("0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p"), Te = B(z
|
|
|
506
506
|
k = c;
|
|
507
507
|
}
|
|
508
508
|
if (r >= 0 && (l[r] >= 0 || ie[r] === 1) && t + 1 < T && e.charCodeAt(t + 1) === 45) {
|
|
509
|
-
if (N ===
|
|
510
|
-
|
|
511
|
-
let e = new Int32Array(
|
|
512
|
-
e.set(
|
|
513
|
-
let t = new Int32Array(
|
|
514
|
-
t.set(
|
|
509
|
+
if (N === Xe) {
|
|
510
|
+
Xe *= 2;
|
|
511
|
+
let e = new Int32Array(Xe);
|
|
512
|
+
e.set(Ze), Ze = e;
|
|
513
|
+
let t = new Int32Array(Xe);
|
|
514
|
+
t.set(Qe), Qe = t;
|
|
515
515
|
}
|
|
516
|
-
|
|
516
|
+
Ze[N] = r, Qe[N] = t + 2, N++;
|
|
517
517
|
}
|
|
518
518
|
}
|
|
519
|
-
O === T && (P = A < j ?
|
|
520
|
-
let L = A < j ?
|
|
519
|
+
O === T && (P = A < j ? ke : k, F = N);
|
|
520
|
+
let L = A < j ? ke : k, R, z = !1;
|
|
521
521
|
if (O >= 0) {
|
|
522
|
-
if (
|
|
523
|
-
let t =
|
|
524
|
-
t !==
|
|
525
|
-
} else R ===
|
|
526
|
-
} else R =
|
|
527
|
-
let
|
|
528
|
-
R ===
|
|
522
|
+
if (z = !0, R = ot(e, w, O, P, F), R !== Y && R < r && ne[R]) {
|
|
523
|
+
let t = ot(e, w, T, L, N);
|
|
524
|
+
t !== Y && t !== R && (R = t, z = !1);
|
|
525
|
+
} else R === Y && (R = ot(e, w, T, L, N), z = !1);
|
|
526
|
+
} else R = ot(e, w, T, L, N);
|
|
527
|
+
let B = 0, V = 0;
|
|
528
|
+
R === Y ? Ge[_] = Y : (V = +!!z, B = b >= x ? +!!E : ve(ye, e, b, x, +!!E, (e) => Se(e, E)), Ge[_] = R, qe[_] = V, Ke[_] = B), Be(y, e, p, h, v, R, B, V);
|
|
529
529
|
}
|
|
530
530
|
if (n === 0) return "";
|
|
531
|
-
if (n === 1) return
|
|
532
|
-
if (n * D >
|
|
533
|
-
for (; n * D >
|
|
534
|
-
|
|
531
|
+
if (n === 1) return Ue[0] === 0 && We[0] === t ? e : e.slice(Ue[0], We[0]);
|
|
532
|
+
if (n * D > et) {
|
|
533
|
+
for (; n * D > et;) et <<= 1, tt--;
|
|
534
|
+
nt = new Float64Array(et), rt = new Int32Array(et);
|
|
535
535
|
}
|
|
536
|
-
if (
|
|
537
|
-
|
|
536
|
+
if (J >= De || we >= De) throw Error("cn: too many distinct classes in one merge");
|
|
537
|
+
it = it + 1 | 0, it === 0 && ($e.fill(0), rt.fill(0), it = 1);
|
|
538
538
|
let f = !1;
|
|
539
539
|
for (let e = n - 1; e >= 0; e--) {
|
|
540
|
-
let t =
|
|
541
|
-
if (t ===
|
|
542
|
-
|
|
540
|
+
let t = Ge[e];
|
|
541
|
+
if (t === Y) {
|
|
542
|
+
Je[e] = 1;
|
|
543
543
|
continue;
|
|
544
544
|
}
|
|
545
|
-
let n =
|
|
546
|
-
if (
|
|
547
|
-
|
|
545
|
+
let n = Ke[e];
|
|
546
|
+
if (at(n, t) === 1) {
|
|
547
|
+
Je[e] = 0, f = !0;
|
|
548
548
|
continue;
|
|
549
549
|
}
|
|
550
|
-
if (
|
|
550
|
+
if (Je[e] = 1, t < r) {
|
|
551
551
|
let r = T[t];
|
|
552
|
-
if (r >= 0) for (let e = b[r]; e < b[r + 1]; e++)
|
|
553
|
-
if (
|
|
552
|
+
if (r >= 0) for (let e = b[r]; e < b[r + 1]; e++) at(n, ee[e]);
|
|
553
|
+
if (qe[e] & 1) for (let e = 0; e < te.length; e++) te[e] === t && at(n, x[e]);
|
|
554
554
|
}
|
|
555
555
|
}
|
|
556
556
|
if (!f && !u && t === c + n - 1) return e;
|
|
557
557
|
let p = "", m = 0;
|
|
558
558
|
for (; m < n;) {
|
|
559
|
-
if (!
|
|
559
|
+
if (!Je[m]) {
|
|
560
560
|
m++;
|
|
561
561
|
continue;
|
|
562
562
|
}
|
|
563
|
-
let t =
|
|
564
|
-
for (; i < n &&
|
|
563
|
+
let t = Ue[m], r = We[m], i = m + 1;
|
|
564
|
+
for (; i < n && Je[i] && Ue[i] === r + 1 && e.charCodeAt(r) === 32;) r = We[i], i++;
|
|
565
565
|
p.length > 0 && (p += " "), p += e.slice(t, r), m = i;
|
|
566
566
|
}
|
|
567
567
|
return p;
|
|
568
|
-
},
|
|
569
|
-
ut ^=
|
|
568
|
+
}, ct = 16384, lt = new Int32Array(ct * 2), ut = 0, Z = 1, dt = Object.create(null), ft = Object.create(null), pt = /* @__PURE__ */ new Map(), mt = /* @__PURE__ */ new Map(), Q = 0, ht = 0, $ = () => {
|
|
569
|
+
ut ^= ct, Z = Z + 1 | 0, ht = 0;
|
|
570
570
|
}, gt = (e) => {
|
|
571
571
|
let t = dt[e];
|
|
572
572
|
if (t !== void 0) return t;
|
|
573
|
-
let n =
|
|
574
|
-
return i && (t = ft[e], t !== void 0) ? (dt[e] = t, t) : (t =
|
|
573
|
+
let n = je(e, 0, e.length), r = (n & 16383) + ut, i = lt[r] === (n ^ Z) || lt[r ^ ct] === (n ^ Z - 1);
|
|
574
|
+
return i && (t = ft[e], t !== void 0) ? (dt[e] = t, t) : (t = st(e), i ? (dt[e] = t, ++Q > P && (Q = 0, ft = dt, dt = Object.create(null), $())) : (lt[r] = n ^ Z, ++ht > ct && $()), t);
|
|
575
575
|
}, _t = (e) => {
|
|
576
576
|
let t = pt.get(e);
|
|
577
577
|
if (t !== void 0) return t;
|
|
578
|
-
let n =
|
|
579
|
-
return i && (t = mt.get(e), t !== void 0) ? (pt.set(e, t), t) : (t =
|
|
578
|
+
let n = je(e, 0, e.length), r = (n & 16383) + ut, i = lt[r] === (n ^ Z) || lt[r ^ ct] === (n ^ Z - 1);
|
|
579
|
+
return i && (t = mt.get(e), t !== void 0) ? (pt.set(e, t), t) : (t = st(e), i ? (pt.set(e, t), ++Q > P && (Q = 0, mt = pt, pt = /* @__PURE__ */ new Map(), $())) : (lt[r] = n ^ Z, ++ht > ct && $()), t);
|
|
580
580
|
}, vt = (e) => {
|
|
581
|
-
let t =
|
|
582
|
-
return
|
|
583
|
-
}, yt = P === 0 ?
|
|
581
|
+
let t = je(e, 0, e.length), n = (t & 16383) + ut;
|
|
582
|
+
return lt[n] === (t ^ Z) || lt[n ^ ct] === (t ^ Z - 1) || (lt[n] = t ^ Z, ++ht > ct && $(), !1);
|
|
583
|
+
}, yt = P === 0 ? st : Oe ? (e) => {
|
|
584
584
|
let t = pt.get(e);
|
|
585
585
|
return t === void 0 ? _t(e) : t;
|
|
586
586
|
} : gt;
|
|
587
587
|
return {
|
|
588
588
|
merge: function() {
|
|
589
|
-
return arguments.length === 1 && typeof arguments[0] == "string" ? yt(arguments[0]) : yt(
|
|
589
|
+
return arguments.length === 1 && typeof arguments[0] == "string" ? yt(arguments[0]) : yt(Fe.apply(null, arguments));
|
|
590
590
|
},
|
|
591
591
|
mergeString: yt,
|
|
592
592
|
seenBefore: P === 0 ? () => !1 : vt,
|
|
593
|
-
mergeUncached:
|
|
593
|
+
mergeUncached: st
|
|
594
594
|
};
|
|
595
|
-
},
|
|
595
|
+
}, Ne = (e, t) => {
|
|
596
596
|
if (!e) return "";
|
|
597
597
|
if (typeof e == "string") return e;
|
|
598
598
|
let n = "";
|
|
@@ -601,7 +601,7 @@ var we = V("0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p"), Te = B(z
|
|
|
601
601
|
for (let e = 0; e < r.length; e++) {
|
|
602
602
|
let i = r[e];
|
|
603
603
|
if (!i) continue;
|
|
604
|
-
let a = typeof i == "string" ? i :
|
|
604
|
+
let a = typeof i == "string" ? i : Ne(i, t);
|
|
605
605
|
a && (n && (n += " "), n += a);
|
|
606
606
|
}
|
|
607
607
|
return n;
|
|
@@ -611,21 +611,21 @@ var we = V("0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p"), Te = B(z
|
|
|
611
611
|
if (typeof e == "object") for (let t in e) e[t] && (n && (n += " "), n += t);
|
|
612
612
|
}
|
|
613
613
|
return n;
|
|
614
|
-
},
|
|
614
|
+
}, Pe = (e, t) => {
|
|
615
615
|
let n = "";
|
|
616
616
|
for (let r = 0; r < e.length; r++) {
|
|
617
617
|
let i = e[r];
|
|
618
618
|
if (!i) continue;
|
|
619
|
-
let a = typeof i == "string" ? i :
|
|
619
|
+
let a = typeof i == "string" ? i : Ne(i, t);
|
|
620
620
|
a && (n && (n += " "), n += a);
|
|
621
621
|
}
|
|
622
622
|
return n;
|
|
623
|
-
},
|
|
624
|
-
return
|
|
625
|
-
},
|
|
623
|
+
}, Fe = function() {
|
|
624
|
+
return Pe(arguments, !1);
|
|
625
|
+
}, Ie = 256, Le = 16, Re = 1024, ze = 4096, Be = (e, t) => {
|
|
626
626
|
let n = t === void 0 ? () => !0 : t.seenBefore, r = t === void 0 ? e : t.mergeUncached, i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), o = 0, s = null, c = null, l = [], u = [], d = 0, f = (t, n, r) => {
|
|
627
|
-
c === null && (c = Array(
|
|
628
|
-
let i =
|
|
627
|
+
c === null && (c = Array(ze).fill(""), l = Array(ze).fill(""), u = Array(ze).fill(""));
|
|
628
|
+
let i = je(t, 0, t.length) & 4094;
|
|
629
629
|
if (c[i] === t && l[i] === n) return u[i];
|
|
630
630
|
if (c[i | 1] === t && l[i | 1] === n) return u[i | 1];
|
|
631
631
|
let a = e(r ? n + " " + t : t), o = c[i] === "" ? i : i | (c[i | 1] === "" ? 1 : d++ & 1);
|
|
@@ -666,7 +666,7 @@ var we = V("0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p"), Te = B(z
|
|
|
666
666
|
let n = t[e];
|
|
667
667
|
if (n) {
|
|
668
668
|
if (typeof n != "string") {
|
|
669
|
-
if (n = t[e] =
|
|
669
|
+
if (n = t[e] = Ne(n, !0), !n) continue;
|
|
670
670
|
g = !0;
|
|
671
671
|
}
|
|
672
672
|
p < 0 && (d = n, p = e), h++;
|
|
@@ -725,12 +725,12 @@ var we = V("0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p"), Te = B(z
|
|
|
725
725
|
miss: 0,
|
|
726
726
|
skip: 0,
|
|
727
727
|
at: 0
|
|
728
|
-
}) : ++_.miss >
|
|
728
|
+
}) : ++_.miss > Le && (_.miss = Le, _.skip = Re, _.e.length = 0, _.at = 0);
|
|
729
729
|
let u = _.e;
|
|
730
|
-
u.length <
|
|
730
|
+
u.length < Ie ? u.push(v) : (u[_.at] = v, _.at = _.at + 1 & 255), ++o > 1e3 && (o = 0, a = i, i = /* @__PURE__ */ new Map());
|
|
731
731
|
}
|
|
732
732
|
return s !== null && s !== v && (s.n = v), s = v, v.r;
|
|
733
|
-
}, g = (t) => Array.isArray(t) ? h(t.slice(), !1) : e(
|
|
733
|
+
}, g = (t) => Array.isArray(t) ? h(t.slice(), !1) : e(Ne(t, !0));
|
|
734
734
|
return function(t, n, r) {
|
|
735
735
|
let a = arguments.length;
|
|
736
736
|
if ((a | 1) == 3) {
|
|
@@ -787,195 +787,209 @@ var we = V("0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p"), Te = B(z
|
|
|
787
787
|
for (let e = 0; e < a; e++) c.push(arguments[e]);
|
|
788
788
|
return h(c, !0);
|
|
789
789
|
};
|
|
790
|
-
},
|
|
791
|
-
|
|
790
|
+
}, Ve = /* @__PURE__ */ Me(De), X = /* @__PURE__ */ Be(Ve.mergeString, Ve);
|
|
791
|
+
Ve.merge;
|
|
792
792
|
//#endregion
|
|
793
793
|
//#region src/components/ui/dropdown-menu.jsx
|
|
794
|
-
function
|
|
794
|
+
function He({ ...e }) {
|
|
795
795
|
return /* @__PURE__ */ a(s.Root, {
|
|
796
796
|
"data-slot": "dropdown-menu",
|
|
797
797
|
...e
|
|
798
798
|
});
|
|
799
799
|
}
|
|
800
|
-
function
|
|
800
|
+
function Ue({ ...e }) {
|
|
801
801
|
return /* @__PURE__ */ a(s.Portal, {
|
|
802
802
|
"data-slot": "dropdown-menu-portal",
|
|
803
803
|
...e
|
|
804
804
|
});
|
|
805
805
|
}
|
|
806
|
-
function
|
|
806
|
+
function We({ ...e }) {
|
|
807
807
|
return /* @__PURE__ */ a(s.Trigger, {
|
|
808
808
|
"data-slot": "dropdown-menu-trigger",
|
|
809
809
|
...e
|
|
810
810
|
});
|
|
811
811
|
}
|
|
812
|
-
function
|
|
813
|
-
return /* @__PURE__ */ a(s.Portal, {
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
812
|
+
function Ge({ align: e = "start", alignOffset: t = 0, side: n = "bottom", sideOffset: r = 4, className: i, ...o }) {
|
|
813
|
+
return /* @__PURE__ */ a(s.Portal, {
|
|
814
|
+
"data-slot": "dropdown-menu-portal",
|
|
815
|
+
children: /* @__PURE__ */ a(s.Positioner, {
|
|
816
|
+
"data-slot": "dropdown-menu-positioner",
|
|
817
|
+
className: "isolate z-1000000 bg-transparent outline-none",
|
|
818
|
+
align: e,
|
|
819
|
+
alignOffset: t,
|
|
820
|
+
side: n,
|
|
821
|
+
sideOffset: r,
|
|
822
|
+
children: /* @__PURE__ */ a(s.Popup, {
|
|
823
|
+
"data-fastr-popup": "",
|
|
824
|
+
"data-slot": "dropdown-menu-content",
|
|
825
|
+
className: X("bg-popover text-popover-foreground ring-foreground/10 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 z-50 max-h-(--available-height) w-(--anchor-width) min-w-32 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-md p-1 shadow-md ring-1 duration-100 outline-none data-closed:overflow-hidden", i),
|
|
826
|
+
...o
|
|
827
|
+
})
|
|
823
828
|
})
|
|
824
|
-
})
|
|
829
|
+
});
|
|
825
830
|
}
|
|
826
|
-
function
|
|
831
|
+
function Ke({ ...e }) {
|
|
827
832
|
return /* @__PURE__ */ a(s.Group, {
|
|
828
833
|
"data-slot": "dropdown-menu-group",
|
|
829
834
|
...e
|
|
830
835
|
});
|
|
831
836
|
}
|
|
832
|
-
function
|
|
837
|
+
function qe({ className: e, inset: t, ...n }) {
|
|
833
838
|
return /* @__PURE__ */ a(s.GroupLabel, {
|
|
834
839
|
"data-slot": "dropdown-menu-label",
|
|
835
840
|
"data-inset": t,
|
|
836
|
-
className:
|
|
841
|
+
className: X("text-muted-foreground px-1.5 py-1 text-xs font-medium data-inset:pl-7", e),
|
|
837
842
|
...n
|
|
838
843
|
});
|
|
839
844
|
}
|
|
840
|
-
function
|
|
845
|
+
function Je({ className: e, inset: t, variant: n = "default", ...r }) {
|
|
841
846
|
return /* @__PURE__ */ a(s.Item, {
|
|
842
847
|
"data-slot": "dropdown-menu-item",
|
|
843
848
|
"data-inset": t,
|
|
844
849
|
"data-variant": n,
|
|
845
|
-
className:
|
|
850
|
+
className: X("group/dropdown-menu-item focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:*:[svg]:text-destructive relative flex cursor-default items-center gap-1.5 rounded px-2 py-1 text-xs outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-inset:pl-7 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-3.5", e),
|
|
846
851
|
...r
|
|
847
852
|
});
|
|
848
853
|
}
|
|
849
|
-
function
|
|
854
|
+
function Ye({ className: e, ...t }) {
|
|
850
855
|
return /* @__PURE__ */ a(s.Separator, {
|
|
851
856
|
"data-slot": "dropdown-menu-separator",
|
|
852
|
-
className:
|
|
857
|
+
className: X("bg-border -mx-1 my-1 h-px", e),
|
|
853
858
|
...t
|
|
854
859
|
});
|
|
855
860
|
}
|
|
856
861
|
//#endregion
|
|
857
862
|
//#region src/components/ui/navigation-menu.jsx
|
|
858
|
-
function
|
|
863
|
+
function Xe({ align: e = "start", className: t, children: n, ...r }) {
|
|
859
864
|
return /* @__PURE__ */ o(c.Root, {
|
|
860
865
|
"data-slot": "navigation-menu",
|
|
861
|
-
className:
|
|
866
|
+
className: X("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center", t),
|
|
862
867
|
...r,
|
|
863
|
-
children: [n, /* @__PURE__ */ a(
|
|
868
|
+
children: [n, /* @__PURE__ */ a(nt, { align: e })]
|
|
864
869
|
});
|
|
865
870
|
}
|
|
866
|
-
function
|
|
871
|
+
function Ze({ className: e, ...t }) {
|
|
867
872
|
return /* @__PURE__ */ a(c.List, {
|
|
868
873
|
"data-slot": "navigation-menu-list",
|
|
869
|
-
className:
|
|
874
|
+
className: X("group flex flex-1 list-none items-center justify-center gap-1", e),
|
|
870
875
|
...t
|
|
871
876
|
});
|
|
872
877
|
}
|
|
873
|
-
function
|
|
878
|
+
function Qe({ className: e, ...t }) {
|
|
874
879
|
return /* @__PURE__ */ a(c.Item, {
|
|
875
880
|
"data-slot": "navigation-menu-item",
|
|
876
|
-
className:
|
|
881
|
+
className: X("relative", e),
|
|
877
882
|
...t
|
|
878
883
|
});
|
|
879
884
|
}
|
|
880
|
-
var
|
|
881
|
-
function
|
|
885
|
+
var $e = l("group/navigation-menu-trigger inline-flex h-9 w-max items-center justify-center gap-1.5 rounded-lg px-2.5 py-1.5 text-sm font-medium transition-colors outline-none hover:bg-muted focus:bg-muted focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50 data-popup-open:bg-muted data-open:bg-muted cursor-pointer text-foreground select-none");
|
|
886
|
+
function et({ className: e, children: t, ...n }) {
|
|
882
887
|
return /* @__PURE__ */ o(c.Trigger, {
|
|
883
888
|
"data-slot": "navigation-menu-trigger",
|
|
884
|
-
className:
|
|
889
|
+
className: X($e(), "group", e),
|
|
885
890
|
...n,
|
|
886
|
-
children: [
|
|
887
|
-
|
|
888
|
-
" "
|
|
889
|
-
|
|
890
|
-
className: "relative top-px ml-1 size-5 -mr-1 transition duration-300 group-data-popup-open/navigation-menu-trigger:rotate-180 group-data-open/navigation-menu-trigger:rotate-180",
|
|
891
|
-
"aria-hidden": "true"
|
|
892
|
-
})
|
|
893
|
-
]
|
|
891
|
+
children: [t, /* @__PURE__ */ a(g, {
|
|
892
|
+
className: "size-3.5 shrink-0 opacity-70 transition-transform duration-200 group-data-popup-open/navigation-menu-trigger:rotate-180 group-data-open/navigation-menu-trigger:rotate-180",
|
|
893
|
+
"aria-hidden": "true"
|
|
894
|
+
})]
|
|
894
895
|
});
|
|
895
896
|
}
|
|
896
|
-
function
|
|
897
|
+
function tt({ className: e, ...t }) {
|
|
897
898
|
return /* @__PURE__ */ a(c.Content, {
|
|
898
899
|
"data-slot": "navigation-menu-content",
|
|
899
|
-
className:
|
|
900
|
+
className: X("h-full w-auto p-0 rounded-xl overflow-hidden", e),
|
|
900
901
|
...t
|
|
901
902
|
});
|
|
902
903
|
}
|
|
903
|
-
function
|
|
904
|
-
return /* @__PURE__ */ a(c.Portal, {
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
className: "
|
|
913
|
-
|
|
904
|
+
function nt({ className: e, side: t = "bottom", sideOffset: n = 8, align: r = "start", alignOffset: i = 0, ...o }) {
|
|
905
|
+
return /* @__PURE__ */ a(c.Portal, {
|
|
906
|
+
"data-slot": "navigation-menu-portal",
|
|
907
|
+
children: /* @__PURE__ */ a(c.Positioner, {
|
|
908
|
+
"data-slot": "navigation-menu-positioner",
|
|
909
|
+
side: t,
|
|
910
|
+
sideOffset: n,
|
|
911
|
+
align: r,
|
|
912
|
+
alignOffset: i,
|
|
913
|
+
className: X("isolate z-50 h-(--positioner-height) w-(--positioner-width) max-w-(--available-width) bg-transparent transition-[top,left,right,bottom] duration-300 ease-[cubic-bezier(0.22,1,0.36,1)] data-instant:transition-none data-[side=bottom]:before:-top-2.5 data-[side=bottom]:before:right-0 data-[side=bottom]:before:left-0", e),
|
|
914
|
+
...o,
|
|
915
|
+
children: /* @__PURE__ */ a(c.Popup, {
|
|
916
|
+
"data-slot": "navigation-menu-popup",
|
|
917
|
+
className: "xs:w-(--popup-width) relative h-(--popup-height) w-(--popup-width) origin-(--transform-origin) rounded-xl bg-transparent text-popover-foreground outline-none transition-[width,height] duration-300 ease-[cubic-bezier(0.22,1,0.36,1)]",
|
|
918
|
+
children: /* @__PURE__ */ a(c.Viewport, {
|
|
919
|
+
"data-slot": "navigation-menu-viewport",
|
|
920
|
+
className: "relative size-full rounded-xl bg-transparent overflow-hidden"
|
|
921
|
+
})
|
|
922
|
+
})
|
|
914
923
|
})
|
|
915
|
-
})
|
|
924
|
+
});
|
|
916
925
|
}
|
|
917
|
-
function
|
|
926
|
+
function rt({ className: e, ...t }) {
|
|
918
927
|
return /* @__PURE__ */ a(c.Link, {
|
|
919
928
|
"data-slot": "navigation-menu-link",
|
|
920
|
-
className:
|
|
929
|
+
className: X("flex items-center gap-2 rounded-lg p-2 text-sm transition-all outline-none hover:bg-muted focus:bg-muted focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:outline-1 in-data-[slot=navigation-menu-content]:rounded-md data-active:bg-muted/50 data-active:hover:bg-muted data-active:focus:bg-muted [&_svg:not([class*='size-'])]:size-4", e),
|
|
921
930
|
...t
|
|
922
931
|
});
|
|
923
932
|
}
|
|
924
|
-
function
|
|
933
|
+
function it({ className: e, ...t }) {
|
|
925
934
|
return /* @__PURE__ */ a(c.Icon, {
|
|
926
935
|
"data-slot": "navigation-menu-indicator",
|
|
927
|
-
className:
|
|
936
|
+
className: X("top-full z-1 flex h-1.5 items-end justify-center overflow-hidden data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:animate-in data-[state=visible]:fade-in", e),
|
|
928
937
|
...t,
|
|
929
938
|
children: /* @__PURE__ */ a("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" })
|
|
930
939
|
});
|
|
931
940
|
}
|
|
932
941
|
//#endregion
|
|
933
942
|
//#region src/components/ui/popover.jsx
|
|
934
|
-
function
|
|
943
|
+
function at({ ...e }) {
|
|
935
944
|
return /* @__PURE__ */ a(L.Root, {
|
|
936
945
|
"data-slot": "popover",
|
|
937
946
|
...e
|
|
938
947
|
});
|
|
939
948
|
}
|
|
940
|
-
function
|
|
949
|
+
function ot({ className: e, ...t }) {
|
|
941
950
|
return /* @__PURE__ */ a(L.Trigger, {
|
|
942
951
|
"data-slot": "popover-trigger",
|
|
943
|
-
className:
|
|
952
|
+
className: X("w-full", e),
|
|
944
953
|
...t
|
|
945
954
|
});
|
|
946
955
|
}
|
|
947
|
-
function
|
|
948
|
-
return /* @__PURE__ */ a(L.Portal, {
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
className:
|
|
957
|
-
|
|
956
|
+
function st({ className: e, align: t = "center", alignOffset: n = 0, side: r = "bottom", sideOffset: i = 4, ...o }) {
|
|
957
|
+
return /* @__PURE__ */ a(L.Portal, {
|
|
958
|
+
"data-slot": "popover-portal",
|
|
959
|
+
children: /* @__PURE__ */ a(L.Positioner, {
|
|
960
|
+
"data-slot": "popover-positioner",
|
|
961
|
+
align: t,
|
|
962
|
+
alignOffset: n,
|
|
963
|
+
side: r,
|
|
964
|
+
sideOffset: i,
|
|
965
|
+
className: "isolate z-[1000000] bg-transparent outline-none",
|
|
966
|
+
children: /* @__PURE__ */ a(L.Popup, {
|
|
967
|
+
"data-fastr-popup": "",
|
|
968
|
+
"data-slot": "popover-content",
|
|
969
|
+
className: X("bg-popover text-popover-foreground ring-foreground/10 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 z-[1000000] flex w-72 origin-(--transform-origin) flex-col gap-2.5 rounded-xl p-1 text-xs shadow-md ring-1 outline-hidden duration-100 overflow-hidden", e),
|
|
970
|
+
...o
|
|
971
|
+
})
|
|
958
972
|
})
|
|
959
|
-
})
|
|
973
|
+
});
|
|
960
974
|
}
|
|
961
|
-
function
|
|
975
|
+
function ct({ className: e, ...t }) {
|
|
962
976
|
return /* @__PURE__ */ a("div", {
|
|
963
977
|
"data-slot": "popover-header",
|
|
964
|
-
className:
|
|
978
|
+
className: X("flex flex-col gap-0.5 text-xs", e),
|
|
965
979
|
...t
|
|
966
980
|
});
|
|
967
981
|
}
|
|
968
|
-
function
|
|
982
|
+
function lt({ className: e, ...t }) {
|
|
969
983
|
return /* @__PURE__ */ a(L.Title, {
|
|
970
984
|
"data-slot": "popover-title",
|
|
971
|
-
className:
|
|
985
|
+
className: X("font-heading font-medium", e),
|
|
972
986
|
...t
|
|
973
987
|
});
|
|
974
988
|
}
|
|
975
989
|
function ut({ className: e, ...t }) {
|
|
976
990
|
return /* @__PURE__ */ a(L.Description, {
|
|
977
991
|
"data-slot": "popover-description",
|
|
978
|
-
className:
|
|
992
|
+
className: X("text-muted-foreground", e),
|
|
979
993
|
...t
|
|
980
994
|
});
|
|
981
995
|
}
|
|
@@ -3227,7 +3241,9 @@ function vt({ app: e, type: r = "macro", config: s, currentApp: c = "derivatives
|
|
|
3227
3241
|
}
|
|
3228
3242
|
}, I = M && (M.sections || M.items) || [];
|
|
3229
3243
|
return /* @__PURE__ */ a("div", {
|
|
3230
|
-
|
|
3244
|
+
"data-fastr-popup": "",
|
|
3245
|
+
"data-theme": l ? "dark" : "light",
|
|
3246
|
+
className: "bg-popover text-popover-foreground border-border w-285 max-w-[96vw] rounded-xl border p-4 shadow-2xl transition-all overflow-hidden",
|
|
3231
3247
|
onMouseDown: (e) => e.stopPropagation(),
|
|
3232
3248
|
children: /* @__PURE__ */ o("div", {
|
|
3233
3249
|
className: "grid grid-cols-1 gap-4 lg:grid-cols-[1fr_1fr_3fr]",
|
|
@@ -3290,11 +3306,11 @@ function vt({ app: e, type: r = "macro", config: s, currentApp: c = "derivatives
|
|
|
3290
3306
|
href: n,
|
|
3291
3307
|
onClick: (t) => ae(t, n, e.onClick, e),
|
|
3292
3308
|
onMouseEnter: () => N(e),
|
|
3293
|
-
className:
|
|
3309
|
+
className: X("flex w-full cursor-pointer items-center justify-between rounded-lg px-3 py-2 text-left text-xs font-medium transition-all select-none sm:text-sm", t ? "bg-primary text-primary-foreground font-semibold shadow-xs" : "text-foreground/80 hover:bg-accent hover:text-accent-foreground"),
|
|
3294
3310
|
children: [/* @__PURE__ */ o("div", {
|
|
3295
3311
|
className: "flex items-center gap-2.5",
|
|
3296
|
-
children: [$(e.icon, { className:
|
|
3297
|
-
}), /* @__PURE__ */ a(_, { className:
|
|
3312
|
+
children: [$(e.icon, { className: X("size-4 shrink-0", t ? "text-primary-foreground" : "text-muted-foreground group-hover:text-foreground") }), /* @__PURE__ */ a("span", { children: e.label || e.title || e.name })]
|
|
3313
|
+
}), /* @__PURE__ */ a(_, { className: X("size-3.5 transition-transform", t ? "opacity-100" : "opacity-0") })]
|
|
3298
3314
|
}, e.id);
|
|
3299
3315
|
})
|
|
3300
3316
|
})] })
|
|
@@ -3325,11 +3341,11 @@ function vt({ app: e, type: r = "macro", config: s, currentApp: c = "derivatives
|
|
|
3325
3341
|
return /* @__PURE__ */ o("a", {
|
|
3326
3342
|
href: t,
|
|
3327
3343
|
onClick: (n) => ae(n, t, e.onClick, e),
|
|
3328
|
-
className: "group border-border bg-card hover:bg-accent/
|
|
3344
|
+
className: "group border-border bg-card hover:bg-accent/70 hover:border-primary/50 flex min-h-18 cursor-pointer flex-col justify-between rounded-lg border p-3 text-left shadow-xs transition-all hover:shadow-sm",
|
|
3329
3345
|
children: [/* @__PURE__ */ o("div", {
|
|
3330
3346
|
className: "mb-1.5 flex items-start justify-between gap-1.5",
|
|
3331
3347
|
children: [/* @__PURE__ */ a("span", {
|
|
3332
|
-
className: "text-card-foreground group-hover:text-
|
|
3348
|
+
className: "text-card-foreground group-hover:text-primary line-clamp-2 text-xs leading-snug font-semibold transition-colors",
|
|
3333
3349
|
children: e.title || e.name || e.label
|
|
3334
3350
|
}), /* @__PURE__ */ a(d, { className: "text-muted-foreground group-hover:text-primary mt-0.5 size-3 shrink-0 transition-all group-hover:translate-x-0.5" })]
|
|
3335
3351
|
}), /* @__PURE__ */ a("span", {
|
|
@@ -3360,16 +3376,19 @@ function yt(e) {
|
|
|
3360
3376
|
return e;
|
|
3361
3377
|
}
|
|
3362
3378
|
}
|
|
3363
|
-
function bt({ config: e, authApiUrl: s, authRedirectUrl: l, profileGetter: u, uiTheme:
|
|
3364
|
-
let
|
|
3379
|
+
function bt({ config: e, authApiUrl: s, authRedirectUrl: l, profileGetter: u, uiTheme: f, apps: p, user: g, logout: v, theme: y, setTheme: b, onThemeChange: x, currentApp: S, navigate: C, onNavigate: D, urls: O = {}, logo: ne, onLogoClick: re, categoryData: ie = [], chartingCallbacks: k = {}, products: A, extraRightContent: j, className: M }) {
|
|
3380
|
+
let N = n(() => {
|
|
3365
3381
|
let t = {
|
|
3366
3382
|
...s ? { authApiUrl: s } : {},
|
|
3367
3383
|
...l ? { authRedirectUrl: l } : {},
|
|
3368
3384
|
...u ? { profileGetter: u } : {},
|
|
3369
|
-
...
|
|
3370
|
-
...
|
|
3371
|
-
...
|
|
3372
|
-
...
|
|
3385
|
+
...f ? { uiTheme: f } : {},
|
|
3386
|
+
...p ? { apps: p } : {},
|
|
3387
|
+
...S ? { currentApp: S } : {},
|
|
3388
|
+
...O && Object.keys(O).length > 0 ? { urls: O } : {},
|
|
3389
|
+
...y === void 0 ? {} : { theme: y },
|
|
3390
|
+
...b ? { setTheme: b } : {},
|
|
3391
|
+
...x ? { onThemeChange: x } : {}
|
|
3373
3392
|
};
|
|
3374
3393
|
return ht({
|
|
3375
3394
|
...e || {},
|
|
@@ -3380,54 +3399,110 @@ function bt({ config: e, authApiUrl: s, authRedirectUrl: l, profileGetter: u, ui
|
|
|
3380
3399
|
s,
|
|
3381
3400
|
l,
|
|
3382
3401
|
u,
|
|
3383
|
-
d,
|
|
3384
3402
|
f,
|
|
3403
|
+
p,
|
|
3404
|
+
S,
|
|
3405
|
+
O,
|
|
3406
|
+
y,
|
|
3385
3407
|
b,
|
|
3386
|
-
|
|
3387
|
-
]),
|
|
3408
|
+
x
|
|
3409
|
+
]), F = S || N.currentApp || "derivatives", I = (N.authApiUrl || "https://sso-api.datatokenapi.com/api").replace(/\/+$/, ""), L = (N.authRedirectUrl || N.urls?.sso || "https://sso.datatokenapi.com").replace(/\/+$/, ""), z = u || N.profileGetter, [B, V] = i(null), [H, oe] = i(!1);
|
|
3388
3410
|
t(() => {
|
|
3389
|
-
if (
|
|
3390
|
-
if (typeof
|
|
3391
|
-
|
|
3411
|
+
if (g === void 0 && N.user === void 0) {
|
|
3412
|
+
if (typeof z == "function") oe(!0), Promise.resolve(z()).then((e) => {
|
|
3413
|
+
V(e?.data || e?.user || e);
|
|
3392
3414
|
}).catch((e) => {
|
|
3393
3415
|
console.warn("[GlobalHeader] profileGetter error:", e);
|
|
3394
3416
|
}).finally(() => {
|
|
3395
|
-
|
|
3417
|
+
oe(!1);
|
|
3396
3418
|
});
|
|
3397
|
-
else if (
|
|
3398
|
-
|
|
3399
|
-
let e =
|
|
3419
|
+
else if (I && typeof window < "u") {
|
|
3420
|
+
oe(!0);
|
|
3421
|
+
let e = I.endsWith("/api") ? `${I}/auth/me` : `${I}/api/auth/me`, t = I.endsWith("/api") ? `${I}/auth/profile` : `${I}/api/auth/profile`;
|
|
3400
3422
|
fetch(e, { credentials: "include" }).then((e) => e.ok ? e.json() : fetch(t, { credentials: "include" }).then((e) => e.ok ? e.json() : null)).then((e) => {
|
|
3401
|
-
e &&
|
|
3402
|
-
}).catch(() => {}).finally(() =>
|
|
3423
|
+
e && V(e?.data || e?.user || e);
|
|
3424
|
+
}).catch(() => {}).finally(() => oe(!1));
|
|
3403
3425
|
}
|
|
3404
3426
|
}
|
|
3405
3427
|
}, [
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3428
|
+
g,
|
|
3429
|
+
N.user,
|
|
3430
|
+
z,
|
|
3431
|
+
I
|
|
3410
3432
|
]);
|
|
3411
|
-
let
|
|
3412
|
-
let t =
|
|
3413
|
-
return t.find((
|
|
3414
|
-
let
|
|
3415
|
-
return n.includes("scanner") && (
|
|
3433
|
+
let U = g === void 0 ? N.user === void 0 ? B : N.user : g, W = (e) => {
|
|
3434
|
+
let t = U?.all_apps || U?.apps || [], n = (e || "").toLowerCase().replace(/[^a-z0-9]/g, "");
|
|
3435
|
+
return t.find((t) => {
|
|
3436
|
+
let r = (t.code || "").toLowerCase().replace(/[^a-z0-9]/g, ""), i = (t.name || "").toLowerCase().replace(/[^a-z0-9]/g, "");
|
|
3437
|
+
return n.includes("scanner") && (r.includes("scanner") || i.includes("scanner")) || n.includes("chart") && (r.includes("chart") || i.includes("chart")) || n.includes("deriv") && (r.includes("deriv") || i.includes("deriv")) || n.includes("macro") && (r.includes("macro") || i.includes("macro")) || n.includes("xray") && (r.includes("xray") || i.includes("xray") || i.includes("stockxray") || i.includes("stock-x-ray")) || i === n || r === n || t.id === e;
|
|
3416
3438
|
});
|
|
3417
|
-
},
|
|
3418
|
-
|
|
3419
|
-
|
|
3439
|
+
}, G = () => {
|
|
3440
|
+
if (typeof window > "u") return !1;
|
|
3441
|
+
let e = document.documentElement, t = document.body;
|
|
3442
|
+
if (e.classList.contains("dark") || t?.classList.contains("dark")) return !0;
|
|
3443
|
+
if (e.classList.contains("light") || t?.classList.contains("light")) return !1;
|
|
3444
|
+
let n = e.getAttribute("data-theme") || e.getAttribute("data-mode") || e.getAttribute("data-color-mode") || t?.getAttribute("data-theme") || t?.getAttribute("data-mode");
|
|
3445
|
+
if (n === "dark") return !0;
|
|
3446
|
+
if (n === "light") return !1;
|
|
3447
|
+
if (t) {
|
|
3448
|
+
let e = window.getComputedStyle(t).backgroundColor;
|
|
3449
|
+
if (e && e !== "rgba(0, 0, 0, 0)" && e !== "transparent") {
|
|
3450
|
+
let t = e.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)/);
|
|
3451
|
+
if (t) {
|
|
3452
|
+
let e = parseInt(t[1], 10), n = parseInt(t[2], 10), r = parseInt(t[3], 10);
|
|
3453
|
+
return (e * 299 + n * 587 + r * 114) / 1e3 < 128;
|
|
3454
|
+
}
|
|
3455
|
+
}
|
|
3456
|
+
}
|
|
3457
|
+
return window.matchMedia("(prefers-color-scheme: dark)").matches;
|
|
3458
|
+
}, K = y === void 0 ? N.theme : y, [se, ce] = i(() => typeof window < "u" ? localStorage.getItem("theme") || K || N.uiTheme || "system" : K || N.uiTheme || "system");
|
|
3459
|
+
t(() => {
|
|
3460
|
+
K !== void 0 && ce(K);
|
|
3461
|
+
}, [K]);
|
|
3462
|
+
let q = K === void 0 ? se : K, le = (e) => {
|
|
3463
|
+
let t = e === "dark" || e !== "light" && G();
|
|
3464
|
+
if (ce(e), typeof window < "u") {
|
|
3465
|
+
try {
|
|
3466
|
+
localStorage.setItem("theme", e);
|
|
3467
|
+
} catch {}
|
|
3468
|
+
e === "dark" ? document.documentElement.classList.add("dark") : e === "light" ? document.documentElement.classList.remove("dark") : G() ? document.documentElement.classList.add("dark") : document.documentElement.classList.remove("dark");
|
|
3469
|
+
}
|
|
3470
|
+
typeof b == "function" && b(e, t), typeof x == "function" && x(e, t), typeof N?.setTheme == "function" && N.setTheme !== b && N.setTheme(e, t), typeof N?.onThemeChange == "function" && N.onThemeChange !== x && N.onThemeChange(e, t);
|
|
3471
|
+
}, [ue, de] = i(() => G());
|
|
3420
3472
|
t(() => {
|
|
3421
3473
|
if (typeof window > "u") return;
|
|
3422
|
-
let e =
|
|
3423
|
-
|
|
3474
|
+
let e = () => de(G());
|
|
3475
|
+
e();
|
|
3476
|
+
let t = window.matchMedia("(prefers-color-scheme: dark)");
|
|
3477
|
+
t.addEventListener("change", e);
|
|
3478
|
+
let n = new MutationObserver(e);
|
|
3479
|
+
return n.observe(document.documentElement, {
|
|
3480
|
+
attributes: !0,
|
|
3481
|
+
attributeFilter: [
|
|
3482
|
+
"class",
|
|
3483
|
+
"data-theme",
|
|
3484
|
+
"data-mode",
|
|
3485
|
+
"data-color-mode",
|
|
3486
|
+
"style"
|
|
3487
|
+
]
|
|
3488
|
+
}), document.body && n.observe(document.body, {
|
|
3489
|
+
attributes: !0,
|
|
3490
|
+
attributeFilter: [
|
|
3491
|
+
"class",
|
|
3492
|
+
"data-theme",
|
|
3493
|
+
"data-mode",
|
|
3494
|
+
"style"
|
|
3495
|
+
]
|
|
3496
|
+
}), () => {
|
|
3497
|
+
t.removeEventListener("change", e), n.disconnect();
|
|
3498
|
+
};
|
|
3424
3499
|
}, []);
|
|
3425
|
-
let fe =
|
|
3426
|
-
let t =
|
|
3427
|
-
return t && t.id ? `${
|
|
3428
|
-
},
|
|
3429
|
-
if (!
|
|
3430
|
-
let t = (e || "").toLowerCase().replace(/[^a-z0-9]/g, ""), n =
|
|
3500
|
+
let fe = q === "dark" || q !== "light" && ue, [pe, me] = i(!1), [he, ge] = i(""), [_e, ve] = i(null), ye = r(null), be = N.urls?.profile || `${L}/profile`, J = N.urls?.purchase || `${L}/purchase`, xe = N.urls?.landing || "http://localhost:3005", Se = (e) => {
|
|
3501
|
+
let t = W(e);
|
|
3502
|
+
return t && t.id ? `${J}?app_id=${t.id}` : `${J}?app=${e}`;
|
|
3503
|
+
}, Ce = (e) => {
|
|
3504
|
+
if (!U || U?.role === "superadmin" || U?.is_superadmin) return !0;
|
|
3505
|
+
let t = (e || "").toLowerCase().replace(/[^a-z0-9]/g, ""), n = U?.subscriptions;
|
|
3431
3506
|
if (n && !Array.isArray(n) && typeof n == "object") for (let [e, r] of Object.entries(n)) {
|
|
3432
3507
|
let n = e.toLowerCase().replace(/[^a-z0-9]/g, "");
|
|
3433
3508
|
if (t.includes("scanner") && n.includes("scanner") || t.includes("chart") && n.includes("chart") || t.includes("deriv") && n.includes("deriv") || t.includes("macro") && n.includes("macro") || t.includes("xray") && (n.includes("xray") || n.includes("stockxray")) || n === t) {
|
|
@@ -3442,48 +3517,67 @@ function bt({ config: e, authApiUrl: s, authRedirectUrl: l, profileGetter: u, ui
|
|
|
3442
3517
|
if (t === "active" || t === "expiring_soon") return !0;
|
|
3443
3518
|
}
|
|
3444
3519
|
}
|
|
3445
|
-
let r =
|
|
3520
|
+
let r = W(e);
|
|
3446
3521
|
return r ? [
|
|
3447
3522
|
"superadmin",
|
|
3448
3523
|
"admin",
|
|
3449
3524
|
"staff"
|
|
3450
|
-
].includes(r.role) ? !0 : r.subscription_status === "active" || r.subscription_status === "expiring_soon" || r.is_subscribed === !0 :
|
|
3451
|
-
},
|
|
3452
|
-
let e =
|
|
3525
|
+
].includes(r.role) ? !0 : r.subscription_status === "active" || r.subscription_status === "expiring_soon" || r.is_subscribed === !0 : U?.subscription?.status === "active" || U?.subscription?.status === "expiring_soon";
|
|
3526
|
+
}, we = () => {
|
|
3527
|
+
let e = U?.fullName || U?.full_name || U?.name;
|
|
3453
3528
|
if (e && typeof e == "string" && e.trim() && !e.includes("@")) return e.trim();
|
|
3454
|
-
if (
|
|
3455
|
-
let e =
|
|
3529
|
+
if (U?.email && typeof U.email == "string") {
|
|
3530
|
+
let e = U.email.split("@")[0].replace(/[._0-9+-]+/g, " ").trim();
|
|
3456
3531
|
if (e) return e.split(/\s+/).map((e) => e.charAt(0).toUpperCase() + e.slice(1)).join(" ");
|
|
3457
3532
|
}
|
|
3458
3533
|
return e || "User";
|
|
3459
|
-
},
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
e
|
|
3464
|
-
|
|
3465
|
-
if (
|
|
3466
|
-
|
|
3534
|
+
}, Te = n(() => {
|
|
3535
|
+
if (Array.isArray(U?.subscriptions) && U.subscriptions.length > 0) return U.subscriptions.find((e) => {
|
|
3536
|
+
let t = (e.app_name || e.name || "").toLowerCase().replace(/[^a-z0-9]/g, ""), n = (F || "").toLowerCase().replace(/[^a-z0-9]/g, "");
|
|
3537
|
+
return n.includes("scanner") && t.includes("scanner") || n.includes("chart") && t.includes("chart") || n.includes("deriv") && t.includes("deriv") || n.includes("macro") && t.includes("macro") || n.includes("xray") && (t.includes("xray") || t.includes("stockxray")) || t === n;
|
|
3538
|
+
}) || U.subscriptions.find((e) => e.status === "active") || U.subscriptions[0];
|
|
3539
|
+
if (U?.subscription) return U.subscription;
|
|
3540
|
+
if (Array.isArray(U?.all_apps) && U.all_apps.length > 0) {
|
|
3541
|
+
let e = U.all_apps.find((e) => {
|
|
3542
|
+
let t = (e.name || "").toLowerCase().replace(/[^a-z0-9]/g, ""), n = (F || "").toLowerCase().replace(/[^a-z0-9]/g, "");
|
|
3543
|
+
return (n.includes("scanner") && t.includes("scanner") || n.includes("chart") && t.includes("chart") || n.includes("deriv") && t.includes("deriv") || n.includes("macro") && t.includes("macro") || n.includes("xray") && (t.includes("xray") || t.includes("stockxray")) || t === n) && e.is_subscribed;
|
|
3544
|
+
}) || U.all_apps.find((e) => e.is_subscribed);
|
|
3545
|
+
if (e) return {
|
|
3546
|
+
plan_name: e.plan_name,
|
|
3547
|
+
status: e.subscription_status || (e.is_subscribed ? "active" : "inactive"),
|
|
3548
|
+
expiry_date: e.subscription_expiry,
|
|
3549
|
+
app_name: e.name
|
|
3550
|
+
};
|
|
3551
|
+
}
|
|
3552
|
+
return null;
|
|
3553
|
+
}, [U, F]), Ee = (e, t, n) => {
|
|
3554
|
+
D ? D(e, t, n) : C ? C(e) : window.location.assign(e);
|
|
3555
|
+
}, De = () => {
|
|
3556
|
+
let e = v || N.logout;
|
|
3557
|
+
e ? e() : window.location.assign(`${L}/logout`);
|
|
3558
|
+
}, Oe = n(() => {
|
|
3559
|
+
if (A) return A;
|
|
3560
|
+
let e = N.apps || {};
|
|
3467
3561
|
return (Array.isArray(e) ? e : Object.entries(e).map(([e, t]) => ({
|
|
3468
3562
|
id: e,
|
|
3469
3563
|
...t
|
|
3470
3564
|
}))).map((e) => {
|
|
3471
|
-
let t = e.id, n = e.name || e.label || t, r = e.hasMegaMenu !== !1 && !!(e.pages?.length || e.categories?.length), i =
|
|
3565
|
+
let t = e.id, n = e.name || e.label || t, r = e.hasMegaMenu !== !1 && !!(e.pages?.length || e.categories?.length), i = W(t), a = e.url || N.urls?.[t] || i?.app_url || "", o = gt({
|
|
3472
3566
|
baseUrl: a,
|
|
3473
3567
|
route: e.route || "/",
|
|
3474
3568
|
href: e.href,
|
|
3475
3569
|
queryParams: e.queryParams,
|
|
3476
3570
|
params: e.params,
|
|
3477
|
-
currentTheme:
|
|
3478
|
-
appendTheme:
|
|
3479
|
-
themeParamName:
|
|
3480
|
-
isCurrentApp: t ===
|
|
3571
|
+
currentTheme: q,
|
|
3572
|
+
appendTheme: N.appendThemeParam !== !1,
|
|
3573
|
+
themeParamName: N.themeParamName || "theme",
|
|
3574
|
+
isCurrentApp: t === F
|
|
3481
3575
|
});
|
|
3482
3576
|
return {
|
|
3483
3577
|
id: t,
|
|
3484
3578
|
name: n,
|
|
3485
3579
|
icon: e.icon,
|
|
3486
|
-
isActive: t ===
|
|
3580
|
+
isActive: t === F,
|
|
3487
3581
|
hasMegaMenu: r,
|
|
3488
3582
|
href: o,
|
|
3489
3583
|
rawApp: {
|
|
@@ -3493,39 +3587,41 @@ function bt({ config: e, authApiUrl: s, authRedirectUrl: l, profileGetter: u, ui
|
|
|
3493
3587
|
};
|
|
3494
3588
|
});
|
|
3495
3589
|
}, [
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
]),
|
|
3590
|
+
A,
|
|
3591
|
+
N.apps,
|
|
3592
|
+
N.urls,
|
|
3593
|
+
N.appendThemeParam,
|
|
3594
|
+
N.themeParamName,
|
|
3595
|
+
F,
|
|
3596
|
+
q,
|
|
3597
|
+
U
|
|
3598
|
+
]), Y = (e, t) => {
|
|
3505
3599
|
let n = t.rawApp || {};
|
|
3506
3600
|
if (n.onClick) {
|
|
3507
3601
|
e.preventDefault(), n.onClick(n);
|
|
3508
3602
|
return;
|
|
3509
3603
|
}
|
|
3510
|
-
if (t.id !==
|
|
3511
|
-
e.preventDefault(), ge(""), window.location.assign(
|
|
3604
|
+
if (t.id !== F && !Ce(t.id)) {
|
|
3605
|
+
e.preventDefault(), ge(""), window.location.assign(Se(t.id));
|
|
3512
3606
|
return;
|
|
3513
3607
|
}
|
|
3514
|
-
t.id === "derivatives" ? (e.preventDefault(), ge((e) => e === "derivatives" ? "" : "derivatives"),
|
|
3608
|
+
t.id === "derivatives" ? (e.preventDefault(), ge((e) => e === "derivatives" ? "" : "derivatives"), Ee("/positions", n, t)) : t.id === F && (D || C) && (e.preventDefault(), ge(""), Ee(t.href, n, t));
|
|
3515
3609
|
};
|
|
3516
3610
|
return /* @__PURE__ */ o("header", {
|
|
3517
|
-
|
|
3611
|
+
"data-fastr-header": "",
|
|
3612
|
+
"data-theme": fe ? "dark" : "light",
|
|
3613
|
+
className: X("bg-background sticky top-0 z-50 w-full border-b", M),
|
|
3518
3614
|
children: [/* @__PURE__ */ o("div", {
|
|
3519
3615
|
className: "relative flex h-10 w-full items-center justify-between gap-4 px-3 sm:h-12 sm:px-4",
|
|
3520
3616
|
children: [/* @__PURE__ */ o("div", {
|
|
3521
3617
|
className: "no-scrollbar flex items-center gap-4 overflow-x-auto py-1 lg:gap-6",
|
|
3522
3618
|
children: [/* @__PURE__ */ a("a", {
|
|
3523
|
-
href:
|
|
3619
|
+
href: xe,
|
|
3524
3620
|
className: "mr-1 flex shrink-0 cursor-pointer items-center gap-1.5 select-none",
|
|
3525
3621
|
onClick: (e) => {
|
|
3526
|
-
e.metaKey || e.ctrlKey || e.shiftKey || e.button === 1 ||
|
|
3622
|
+
e.metaKey || e.ctrlKey || e.shiftKey || e.button === 1 || re && (e.preventDefault(), re());
|
|
3527
3623
|
},
|
|
3528
|
-
children:
|
|
3624
|
+
children: ne || /* @__PURE__ */ a(R, {
|
|
3529
3625
|
className: "h-9 w-auto sm:h-10",
|
|
3530
3626
|
isDarkMode: fe
|
|
3531
3627
|
})
|
|
@@ -3534,51 +3630,51 @@ function bt({ config: e, authApiUrl: s, authRedirectUrl: l, profileGetter: u, ui
|
|
|
3534
3630
|
onValueChange: ge,
|
|
3535
3631
|
"data-slot": "navigation-menu",
|
|
3536
3632
|
className: "group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",
|
|
3537
|
-
children: [/* @__PURE__ */ a(
|
|
3633
|
+
children: [/* @__PURE__ */ a(Ze, {
|
|
3538
3634
|
className: "gap-0",
|
|
3539
|
-
children:
|
|
3635
|
+
children: Oe.map((e, t) => {
|
|
3540
3636
|
let n = e.rawApp || e;
|
|
3541
|
-
return e.hasMegaMenu ? /* @__PURE__ */ o(
|
|
3637
|
+
return e.hasMegaMenu ? /* @__PURE__ */ o(Qe, {
|
|
3542
3638
|
value: e.id,
|
|
3543
|
-
children: [/* @__PURE__ */ o(
|
|
3639
|
+
children: [/* @__PURE__ */ o(et, {
|
|
3544
3640
|
ref: t === 0 ? ye : void 0,
|
|
3545
|
-
className:
|
|
3546
|
-
children: [$(e.icon, { className: "size-4" }), /* @__PURE__ */ a("span", { children: e.name })]
|
|
3547
|
-
}), /* @__PURE__ */ a(
|
|
3641
|
+
className: X(e.isActive && "bg-primary text-primary-foreground font-semibold hover:bg-primary/90 hover:text-primary-foreground data-popup-open:bg-primary data-popup-open:text-primary-foreground data-open:bg-primary data-open:text-primary-foreground"),
|
|
3642
|
+
children: [$(e.icon, { className: "size-4 shrink-0" }), /* @__PURE__ */ a("span", { children: e.name })]
|
|
3643
|
+
}), /* @__PURE__ */ a(tt, {
|
|
3548
3644
|
className: "p-0 rounded-xl overflow-hidden",
|
|
3549
3645
|
children: /* @__PURE__ */ a(vt, {
|
|
3550
3646
|
app: n,
|
|
3551
3647
|
type: e.id,
|
|
3552
|
-
config:
|
|
3553
|
-
currentApp:
|
|
3648
|
+
config: N,
|
|
3649
|
+
currentApp: F,
|
|
3554
3650
|
isDarkMode: fe,
|
|
3555
|
-
isSubscribed:
|
|
3556
|
-
purchaseUrl:
|
|
3557
|
-
categoryData:
|
|
3558
|
-
theme:
|
|
3651
|
+
isSubscribed: Ce(e.id),
|
|
3652
|
+
purchaseUrl: Se(e.id),
|
|
3653
|
+
categoryData: ie,
|
|
3654
|
+
theme: q,
|
|
3559
3655
|
onClose: () => ge(""),
|
|
3560
|
-
onNavigate:
|
|
3561
|
-
urls:
|
|
3562
|
-
...
|
|
3656
|
+
onNavigate: Ee,
|
|
3657
|
+
urls: N.urls,
|
|
3658
|
+
...k
|
|
3563
3659
|
})
|
|
3564
3660
|
})]
|
|
3565
|
-
}, e.id) : /* @__PURE__ */ a(
|
|
3661
|
+
}, e.id) : /* @__PURE__ */ a(Qe, {
|
|
3566
3662
|
value: e.id,
|
|
3567
|
-
children: /* @__PURE__ */ a(
|
|
3663
|
+
children: /* @__PURE__ */ a(rt, {
|
|
3568
3664
|
asChild: !0,
|
|
3569
3665
|
children: /* @__PURE__ */ o("a", {
|
|
3570
3666
|
ref: t === 0 ? ye : void 0,
|
|
3571
3667
|
href: e.href || "/",
|
|
3572
3668
|
onClick: (t) => {
|
|
3573
|
-
t.metaKey || t.ctrlKey || t.shiftKey || t.button === 1 ||
|
|
3669
|
+
t.metaKey || t.ctrlKey || t.shiftKey || t.button === 1 || Y(t, e);
|
|
3574
3670
|
},
|
|
3575
|
-
className:
|
|
3576
|
-
children: [$(e.icon, { className: "size-4" }), /* @__PURE__ */ a("span", { children: e.name })]
|
|
3671
|
+
className: X($e(), "cursor-pointer", e.isActive && "bg-primary text-primary-foreground font-semibold hover:bg-primary/90 hover:text-primary-foreground"),
|
|
3672
|
+
children: [$(e.icon, { className: "size-4 shrink-0" }), /* @__PURE__ */ a("span", { children: e.name })]
|
|
3577
3673
|
})
|
|
3578
3674
|
})
|
|
3579
3675
|
}, e.id);
|
|
3580
3676
|
})
|
|
3581
|
-
}), /* @__PURE__ */ a(
|
|
3677
|
+
}), /* @__PURE__ */ a(nt, {
|
|
3582
3678
|
align: "start",
|
|
3583
3679
|
anchor: ye
|
|
3584
3680
|
})]
|
|
@@ -3586,14 +3682,15 @@ function bt({ config: e, authApiUrl: s, authRedirectUrl: l, profileGetter: u, ui
|
|
|
3586
3682
|
}), /* @__PURE__ */ o("div", {
|
|
3587
3683
|
className: "flex shrink-0 items-center gap-2",
|
|
3588
3684
|
children: [
|
|
3589
|
-
|
|
3590
|
-
/* @__PURE__ */ o(
|
|
3685
|
+
j,
|
|
3686
|
+
/* @__PURE__ */ o(He, { children: [/* @__PURE__ */ a(We, {
|
|
3591
3687
|
className: "hover:bg-accent hover:text-accent-foreground text-muted-foreground flex size-8 cursor-pointer items-center justify-center rounded-lg transition-colors sm:size-8.5",
|
|
3592
|
-
title: `Theme: ${
|
|
3593
|
-
children: a(
|
|
3594
|
-
}), /* @__PURE__ */ a(
|
|
3688
|
+
title: `Theme: ${q === "system" ? "System Default" : q === "dark" ? "Dark" : "Light"}`,
|
|
3689
|
+
children: a(q === "system" ? T : fe ? P : E, { className: "size-4.5" })
|
|
3690
|
+
}), /* @__PURE__ */ a(Ge, {
|
|
3595
3691
|
align: "end",
|
|
3596
3692
|
className: "w-44",
|
|
3693
|
+
"data-theme": fe ? "dark" : "light",
|
|
3597
3694
|
children: [
|
|
3598
3695
|
{
|
|
3599
3696
|
id: "light",
|
|
@@ -3611,8 +3708,8 @@ function bt({ config: e, authApiUrl: s, authRedirectUrl: l, profileGetter: u, ui
|
|
|
3611
3708
|
icon: T
|
|
3612
3709
|
}
|
|
3613
3710
|
].map((e) => {
|
|
3614
|
-
let t = e.icon, n =
|
|
3615
|
-
return /* @__PURE__ */ o(
|
|
3711
|
+
let t = e.icon, n = q === e.id;
|
|
3712
|
+
return /* @__PURE__ */ o(Je, {
|
|
3616
3713
|
onClick: () => le(e.id),
|
|
3617
3714
|
className: "cursor-pointer justify-between",
|
|
3618
3715
|
children: [/* @__PURE__ */ o("div", {
|
|
@@ -3622,29 +3719,30 @@ function bt({ config: e, authApiUrl: s, authRedirectUrl: l, profileGetter: u, ui
|
|
|
3622
3719
|
}, e.id);
|
|
3623
3720
|
})
|
|
3624
3721
|
})] }),
|
|
3625
|
-
/* @__PURE__ */ o(
|
|
3722
|
+
/* @__PURE__ */ o(at, {
|
|
3626
3723
|
open: pe,
|
|
3627
3724
|
onOpenChange: me,
|
|
3628
|
-
children: [/* @__PURE__ */ a(
|
|
3725
|
+
children: [/* @__PURE__ */ a(ot, {
|
|
3629
3726
|
className: "hover:bg-accent hover:text-accent-foreground text-foreground flex cursor-pointer justify-center items-center size-10! gap-2 rounded-full p-0 transition-colors select-none",
|
|
3630
3727
|
children: /* @__PURE__ */ o("div", {
|
|
3631
3728
|
className: "relative",
|
|
3632
3729
|
children: [/* @__PURE__ */ a("div", {
|
|
3633
3730
|
className: "border-border/60 bg-muted flex size-8 shrink-0 items-center justify-center overflow-hidden rounded-full border",
|
|
3634
|
-
children:
|
|
3635
|
-
src:
|
|
3636
|
-
alt:
|
|
3731
|
+
children: U?.profile_image_url ? /* @__PURE__ */ a("img", {
|
|
3732
|
+
src: U.profile_image_url,
|
|
3733
|
+
alt: we(),
|
|
3637
3734
|
className: "size-full object-cover",
|
|
3638
3735
|
referrerPolicy: "no-referrer",
|
|
3639
3736
|
onError: (e) => {
|
|
3640
3737
|
e.currentTarget.style.display = "none";
|
|
3641
3738
|
}
|
|
3642
3739
|
}) : /* @__PURE__ */ a(ae, { className: "text-muted-foreground size-3.5 sm:size-4" })
|
|
3643
|
-
}),
|
|
3740
|
+
}), U && /* @__PURE__ */ a("span", { className: "border-background absolute bottom-0 right-0 size-2.5 rounded-full border-2 bg-emerald-500" })]
|
|
3644
3741
|
})
|
|
3645
|
-
}), /* @__PURE__ */ o(
|
|
3646
|
-
className: "border-border bg-popover text-popover-foreground w-84 gap-0! rounded-xl p-0 shadow-2xl",
|
|
3742
|
+
}), /* @__PURE__ */ o(st, {
|
|
3743
|
+
className: "border-border bg-popover text-popover-foreground w-84 gap-0! rounded-xl p-0 shadow-2xl overflow-hidden",
|
|
3647
3744
|
align: "end",
|
|
3745
|
+
"data-theme": fe ? "dark" : "light",
|
|
3648
3746
|
children: [
|
|
3649
3747
|
/* @__PURE__ */ o("div", {
|
|
3650
3748
|
className: "border-border/60 bg-muted/20 border-b p-3",
|
|
@@ -3654,9 +3752,9 @@ function bt({ config: e, authApiUrl: s, authRedirectUrl: l, profileGetter: u, ui
|
|
|
3654
3752
|
className: "relative shrink-0",
|
|
3655
3753
|
children: [/* @__PURE__ */ a("div", {
|
|
3656
3754
|
className: "border-border bg-muted flex size-14 items-center justify-center overflow-hidden rounded-full border shadow-xs",
|
|
3657
|
-
children:
|
|
3658
|
-
src:
|
|
3659
|
-
alt:
|
|
3755
|
+
children: U?.profile_image_url ? /* @__PURE__ */ a("img", {
|
|
3756
|
+
src: U.profile_image_url,
|
|
3757
|
+
alt: we(),
|
|
3660
3758
|
className: "size-full object-cover",
|
|
3661
3759
|
referrerPolicy: "no-referrer"
|
|
3662
3760
|
}) : /* @__PURE__ */ a(ae, { className: "text-muted-foreground size-6" })
|
|
@@ -3667,43 +3765,43 @@ function bt({ config: e, authApiUrl: s, authRedirectUrl: l, profileGetter: u, ui
|
|
|
3667
3765
|
className: "flex items-center justify-between gap-1.5",
|
|
3668
3766
|
children: [/* @__PURE__ */ a("p", {
|
|
3669
3767
|
className: "text-foreground truncate text-sm font-bold tracking-tight",
|
|
3670
|
-
children:
|
|
3768
|
+
children: we()
|
|
3671
3769
|
}), /* @__PURE__ */ a("span", {
|
|
3672
3770
|
className: "border-border bg-muted text-muted-foreground shrink-0 rounded-md border px-1.5 py-0.5 text-[10px] font-semibold capitalize",
|
|
3673
|
-
children:
|
|
3771
|
+
children: U?.is_superadmin ? "Superadmin" : U?.role || "User"
|
|
3674
3772
|
})]
|
|
3675
3773
|
}), /* @__PURE__ */ a("p", {
|
|
3676
3774
|
className: "text-muted-foreground truncate text-xs font-medium",
|
|
3677
|
-
children:
|
|
3775
|
+
children: U?.email || ""
|
|
3678
3776
|
})]
|
|
3679
3777
|
})]
|
|
3680
3778
|
}), /* @__PURE__ */ o("div", {
|
|
3681
|
-
className: " bg-primary/5 mt-3 rounded-lg p-3",
|
|
3779
|
+
className: "border-border/60 bg-primary/5 mt-3 rounded-lg border p-3",
|
|
3682
3780
|
children: [/* @__PURE__ */ o("div", {
|
|
3683
3781
|
className: "flex items-center justify-between",
|
|
3684
3782
|
children: [/* @__PURE__ */ a("div", {
|
|
3685
3783
|
className: "flex items-center gap-1.5",
|
|
3686
3784
|
children: /* @__PURE__ */ a("span", {
|
|
3687
3785
|
className: "text-foreground text-xs font-bold",
|
|
3688
|
-
children:
|
|
3786
|
+
children: Te?.plan_name ? `${Te.plan_name} Plan` : U?.is_superadmin ? "Superadmin Access" : "Fastr Pro Member"
|
|
3689
3787
|
})
|
|
3690
3788
|
}), /* @__PURE__ */ o("span", {
|
|
3691
3789
|
className: "inline-flex items-center gap-1 rounded-full bg-emerald-500/10 px-2 py-0.5 text-[10px] text-emerald-600 dark:text-emerald-400",
|
|
3692
|
-
children: [/* @__PURE__ */ a(h, { className: "size-3 text-emerald-500" }),
|
|
3790
|
+
children: [/* @__PURE__ */ a(h, { className: "size-3 text-emerald-500" }), Te?.status ? Te.status.toUpperCase() : "ACTIVE"]
|
|
3693
3791
|
})]
|
|
3694
|
-
}),
|
|
3792
|
+
}), (Te?.expiry_date || Te?.expiry) && /* @__PURE__ */ o("div", {
|
|
3695
3793
|
className: "text-muted-foreground mt-2 flex items-center justify-between text-[11px]",
|
|
3696
3794
|
children: [/* @__PURE__ */ o("span", {
|
|
3697
3795
|
className: "flex items-center gap-1",
|
|
3698
3796
|
children: [
|
|
3699
3797
|
/* @__PURE__ */ a(m, { className: "text-muted-foreground/70 size-3" }),
|
|
3700
3798
|
"Renews: ",
|
|
3701
|
-
yt(
|
|
3799
|
+
yt(Te.expiry_date || Te.expiry)
|
|
3702
3800
|
]
|
|
3703
|
-
}), /* @__PURE__ */
|
|
3704
|
-
href:
|
|
3801
|
+
}), /* @__PURE__ */ o("a", {
|
|
3802
|
+
href: J,
|
|
3705
3803
|
className: "text-primary hover:text-primary/80 font-semibold transition-colors hover:underline",
|
|
3706
|
-
children: "Manage
|
|
3804
|
+
children: ["Manage ", /* @__PURE__ */ a(d, { className: "size-2.5 inline" })]
|
|
3707
3805
|
})]
|
|
3708
3806
|
})]
|
|
3709
3807
|
})]
|
|
@@ -3718,31 +3816,31 @@ function bt({ config: e, authApiUrl: s, authRedirectUrl: l, profileGetter: u, ui
|
|
|
3718
3816
|
}), /* @__PURE__ */ o("span", {
|
|
3719
3817
|
className: "text-muted-foreground text-[10px]",
|
|
3720
3818
|
children: [
|
|
3721
|
-
|
|
3819
|
+
Oe.filter((e) => Ce(e.id)).length,
|
|
3722
3820
|
"/",
|
|
3723
|
-
|
|
3821
|
+
Oe.length,
|
|
3724
3822
|
" Active"
|
|
3725
3823
|
]
|
|
3726
3824
|
})]
|
|
3727
3825
|
}), /* @__PURE__ */ a("div", {
|
|
3728
3826
|
className: "grid grid-cols-2 gap-1.5",
|
|
3729
|
-
children:
|
|
3730
|
-
let t =
|
|
3827
|
+
children: Oe.map((e) => {
|
|
3828
|
+
let t = Ce(e.id);
|
|
3731
3829
|
return /* @__PURE__ */ o("a", {
|
|
3732
3830
|
href: e.href,
|
|
3733
3831
|
onClick: (n) => {
|
|
3734
3832
|
if (!(n.metaKey || n.ctrlKey || n.shiftKey || n.button === 1)) {
|
|
3735
|
-
if (e.id ===
|
|
3833
|
+
if (e.id === F) {
|
|
3736
3834
|
n.preventDefault(), me(!1);
|
|
3737
3835
|
return;
|
|
3738
3836
|
}
|
|
3739
|
-
t || (n.preventDefault(), me(!1), window.location.assign(
|
|
3837
|
+
t || (n.preventDefault(), me(!1), window.location.assign(Se(e.id)));
|
|
3740
3838
|
}
|
|
3741
3839
|
},
|
|
3742
|
-
className:
|
|
3840
|
+
className: X("flex items-center justify-between rounded-lg border p-2 text-xs transition-all", e.isActive ? "border-primary/10 bg-primary/10 text-primary shadow-2xs font-bold" : t ? "border-border/50 bg-card text-foreground hover:bg-accent hover:border-border" : "border-border/60 bg-muted/30 text-muted-foreground hover:bg-muted/60 border-dashed"),
|
|
3743
3841
|
children: [/* @__PURE__ */ o("div", {
|
|
3744
3842
|
className: "flex min-w-0 items-center gap-1.5",
|
|
3745
|
-
children: [$(e.icon, { className:
|
|
3843
|
+
children: [$(e.icon, { className: X("size-3.5 shrink-0", e.isActive ? "text-primary" : t ? "text-foreground" : "text-muted-foreground") }), /* @__PURE__ */ a("span", {
|
|
3746
3844
|
className: "truncate",
|
|
3747
3845
|
children: e.name
|
|
3748
3846
|
})]
|
|
@@ -3764,7 +3862,7 @@ function bt({ config: e, authApiUrl: s, authRedirectUrl: l, profileGetter: u, ui
|
|
|
3764
3862
|
children: [/* @__PURE__ */ a(ae, { className: "text-muted-foreground group-hover:text-foreground size-4 transition-colors" }), /* @__PURE__ */ a("span", { children: "Profile & Account Settings" })]
|
|
3765
3863
|
}), /* @__PURE__ */ a(_, { className: "text-muted-foreground/60 group-hover:text-foreground size-3.5 transition-transform group-hover:translate-x-0.5" })]
|
|
3766
3864
|
}), /* @__PURE__ */ o("a", {
|
|
3767
|
-
href:
|
|
3865
|
+
href: J,
|
|
3768
3866
|
className: "hover:bg-accent hover:text-accent-foreground text-foreground group flex w-full items-center justify-between rounded-lg px-2.5 py-2 text-xs font-semibold transition-colors",
|
|
3769
3867
|
children: [/* @__PURE__ */ o("div", {
|
|
3770
3868
|
className: "flex items-center gap-2",
|
|
@@ -3775,7 +3873,7 @@ function bt({ config: e, authApiUrl: s, authRedirectUrl: l, profileGetter: u, ui
|
|
|
3775
3873
|
/* @__PURE__ */ a("div", {
|
|
3776
3874
|
className: "border-border/60 my-1 border-t p-2",
|
|
3777
3875
|
children: /* @__PURE__ */ a("button", {
|
|
3778
|
-
onClick:
|
|
3876
|
+
onClick: De,
|
|
3779
3877
|
className: "text-destructive hover:bg-destructive/10 flex w-full cursor-pointer items-center justify-between rounded-lg px-2.5 py-2 text-xs font-semibold transition-colors",
|
|
3780
3878
|
children: /* @__PURE__ */ o("div", {
|
|
3781
3879
|
className: "flex items-center gap-2",
|
|
@@ -3789,6 +3887,8 @@ function bt({ config: e, authApiUrl: s, authRedirectUrl: l, profileGetter: u, ui
|
|
|
3789
3887
|
]
|
|
3790
3888
|
})]
|
|
3791
3889
|
}), _e && /* @__PURE__ */ a("div", {
|
|
3890
|
+
"data-fastr-popup": "",
|
|
3891
|
+
"data-theme": fe ? "dark" : "light",
|
|
3792
3892
|
className: "animate-in fade-in fixed inset-0 z-50 flex items-center justify-center bg-black/50 p-4 backdrop-blur-xs duration-200",
|
|
3793
3893
|
onClick: () => ve(null),
|
|
3794
3894
|
children: /* @__PURE__ */ o("div", {
|
|
@@ -3831,7 +3931,7 @@ function bt({ config: e, authApiUrl: s, authRedirectUrl: l, profileGetter: u, ui
|
|
|
3831
3931
|
/* @__PURE__ */ a("button", {
|
|
3832
3932
|
type: "button",
|
|
3833
3933
|
onClick: () => {
|
|
3834
|
-
let e =
|
|
3934
|
+
let e = U?.apps?.find((e) => (e.code || "").toLowerCase().includes(_e.id.toLowerCase()) || (e.name || "").toLowerCase().includes(_e.name.toLowerCase())), t = e?.id ? `${J}?app_id=${e.id}` : `${J}?app=${_e.id}`;
|
|
3835
3935
|
window.location.assign(t);
|
|
3836
3936
|
},
|
|
3837
3937
|
className: "bg-primary text-primary-foreground hover:bg-primary/90 w-full max-w-xs cursor-pointer rounded-xl px-6 py-3 text-sm font-medium shadow-sm transition-all sm:text-base",
|
|
@@ -3852,6 +3952,6 @@ function bt({ config: e, authApiUrl: s, authRedirectUrl: l, profileGetter: u, ui
|
|
|
3852
3952
|
//#region src/index.js
|
|
3853
3953
|
var xt = bt;
|
|
3854
3954
|
//#endregion
|
|
3855
|
-
export {
|
|
3955
|
+
export { He as DropdownMenu, Ge as DropdownMenuContent, Ke as DropdownMenuGroup, Je as DropdownMenuItem, qe as DropdownMenuLabel, Ue as DropdownMenuPortal, Ye as DropdownMenuSeparator, We as DropdownMenuTrigger, R as FasterProLogo, bt as GlobalHeader, vt as GlobalMegaMenu, Xe as NavigationMenu, tt as NavigationMenuContent, it as NavigationMenuIndicator, Qe as NavigationMenuItem, rt as NavigationMenuLink, Ze as NavigationMenuList, nt as NavigationMenuPositioner, et as NavigationMenuTrigger, at as Popover, st as PopoverContent, ut as PopoverDescription, ct as PopoverHeader, lt as PopoverTitle, ot as PopoverTrigger, gt as buildItemUrl, dt as chartingCategories, X as cn, ht as createHeaderConfig, xt as default, Q as defaultHeaderConfig, mt as derivativesCategories, pt as macroPulseCategories, $e as navigationMenuTriggerStyle, $ as renderIcon, ft as scannerCategories, Z as stockXRayCategories, _t as withThemeParam };
|
|
3856
3956
|
|
|
3857
3957
|
//# sourceMappingURL=index.js.map
|