@infinilabs/discover 0.0.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.
- package/LICENSE +9 -0
- package/README.md +8 -0
- package/dist/abap-B988NUrV.js +122 -0
- package/dist/abap-obercqiY.cjs +1 -0
- package/dist/apex-B0_UGK1B.cjs +1 -0
- package/dist/apex-BlHPPQK-.js +168 -0
- package/dist/azcli-C7iyZFGk.js +53 -0
- package/dist/azcli-CEoytwx_.cjs +1 -0
- package/dist/bat-Buc0l0C3.js +123 -0
- package/dist/bat-D65OC-jj.cjs +1 -0
- package/dist/bicep-DvD_e5vW.cjs +2 -0
- package/dist/bicep-U66iJ-pV.js +219 -0
- package/dist/cameligo-C9Dwkdmm.js +189 -0
- package/dist/cameligo-DzMHfeEs.cjs +1 -0
- package/dist/chunk-BjqF3vbe.cjs +1 -0
- package/dist/chunk-CIp4IH9D.js +21 -0
- package/dist/classnames-BXjDNQ6Q.cjs +1 -0
- package/dist/classnames-eUba3oot.js +29 -0
- package/dist/clojure-BC7BzAFK.cjs +1 -0
- package/dist/clojure-DDWmWbSx.js +146 -0
- package/dist/coffee-7Sx2S8NH.js +260 -0
- package/dist/coffee-Ca9F0OWZ.cjs +1 -0
- package/dist/common-BeXEy5sz.cjs +18 -0
- package/dist/common-BlOHZJzI.js +64 -0
- package/dist/common-DuYIpe6b.cjs +1 -0
- package/dist/common-Tr1I-HCs.js +6725 -0
- package/dist/cpp-CHjqaSPQ.js +230 -0
- package/dist/cpp-DKy9h6xR.cjs +1 -0
- package/dist/createLucideIcon-239Z-2by.cjs +1 -0
- package/dist/createLucideIcon-BO6TDGE7.js +43 -0
- package/dist/csharp-CkbgT9vH.cjs +1 -0
- package/dist/csharp-jwStnVeK.js +260 -0
- package/dist/csp-C2qFd6iv.cjs +1 -0
- package/dist/csp-DkO8Np0h.js +46 -0
- package/dist/css-BFvwcljm.js +284 -0
- package/dist/css-DCKUCzD6.cjs +3 -0
- package/dist/cssMode-CU2AJQMM.js +1509 -0
- package/dist/cssMode-l7eR8WSG.cjs +4 -0
- package/dist/cypher-122TYSjJ.cjs +1 -0
- package/dist/cypher-DaQ7hFRL.js +212 -0
- package/dist/dart-D8p_2HKP.js +236 -0
- package/dist/dart-DshcPGU8.cjs +1 -0
- package/dist/dist-DCz_Qv0B.js +884 -0
- package/dist/dist-D_2dZQH5.cjs +11 -0
- package/dist/dockerfile-CL8dwZCe.cjs +1 -0
- package/dist/dockerfile-DKWOQrwp.js +191 -0
- package/dist/ecl-DP3PNWGB.js +226 -0
- package/dist/ecl-DVx2J_EE.cjs +1 -0
- package/dist/editor.api-CbUDOph7.js +70302 -0
- package/dist/editor.api-lY2thcaq.cjs +644 -0
- package/dist/elixir-Xgx_1krO.cjs +1 -0
- package/dist/elixir-e9tDp1p1.js +523 -0
- package/dist/filter_label-DRJC3vpe.js +58 -0
- package/dist/filter_label-DssaWGpx.cjs +1 -0
- package/dist/filter_operators-C-TaTcNc.js +70 -0
- package/dist/filter_operators-D0kyB-XI.cjs +1 -0
- package/dist/flow9-C9BjpX8h.js +176 -0
- package/dist/flow9-DR-EyjYV.cjs +1 -0
- package/dist/freemarker2-BTGUjvgA.cjs +3 -0
- package/dist/freemarker2-C6Iq5MB-.js +724 -0
- package/dist/fsharp-BWm_FISn.js +147 -0
- package/dist/fsharp-DaBEigN7.cjs +1 -0
- package/dist/go-Xyq33f0v.cjs +1 -0
- package/dist/go-cmqV0Vy_.js +165 -0
- package/dist/graphql-BkFHHVmI.js +174 -0
- package/dist/graphql-Cj7XAy25.cjs +1 -0
- package/dist/handlebars-B2b1q7PA.cjs +1 -0
- package/dist/handlebars-DGGN9u4Y.js +418 -0
- package/dist/hcl-5I-P7bYX.js +219 -0
- package/dist/hcl-C3dpBsgU.cjs +1 -0
- package/dist/html-RJa-j-qT.js +339 -0
- package/dist/html-qfcUzk8e.cjs +1 -0
- package/dist/htmlMode-CYIxo4hc.cjs +4 -0
- package/dist/htmlMode-DDZ48mdp.js +1520 -0
- package/dist/index.cjs +303 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +72895 -0
- package/dist/index_pattern_select--iGeA3sP.js +93 -0
- package/dist/index_pattern_select-BeN5049F.cjs +1 -0
- package/dist/ini-ChENqKh8.cjs +1 -0
- package/dist/ini-DSIAxBZt.js +94 -0
- package/dist/java-DGeAxsRb.js +173 -0
- package/dist/java-LZ6g7weJ.cjs +1 -0
- package/dist/javascript-CN5gTHH2.js +19 -0
- package/dist/javascript-CZ97a-BN.cjs +1 -0
- package/dist/jsonMode-BZDeJMLL.cjs +10 -0
- package/dist/jsonMode-DraOl-ka.js +1885 -0
- package/dist/julia-BeebccKw.cjs +1 -0
- package/dist/julia-CU4CtsP4.js +414 -0
- package/dist/kotlin-B8NxXJ89.js +183 -0
- package/dist/kotlin-M82nl514.cjs +1 -0
- package/dist/less-B4Q3fV9Y.cjs +2 -0
- package/dist/less-DbeQQzer.js +242 -0
- package/dist/lexon-CXQaaecE.cjs +1 -0
- package/dist/lexon-Cw9JuAKc.js +185 -0
- package/dist/lib-C9j_E-l0.js +47 -0
- package/dist/lib-Chy_6VKj.cjs +1 -0
- package/dist/liquid-BYNEOJvX.cjs +1 -0
- package/dist/liquid-DvB-d2w7.js +205 -0
- package/dist/lodash-C_2NO1eK.cjs +35 -0
- package/dist/lodash-D-qGlPRW.js +3769 -0
- package/dist/lua-CnG8Tpu2.cjs +1 -0
- package/dist/lua-yl5NzA_S.js +200 -0
- package/dist/m3-CVcm-OIn.cjs +1 -0
- package/dist/m3-CdNAqvIX.js +193 -0
- package/dist/markdown-C1h-EuiT.js +262 -0
- package/dist/markdown-DrRHDVSU.cjs +1 -0
- package/dist/mdx-BbiOYPr2.cjs +1 -0
- package/dist/mdx-Fk8VTCUK.js +335 -0
- package/dist/mips-DIWpzGF0.js +128 -0
- package/dist/mips-D_p8UYQb.cjs +1 -0
- package/dist/monaco.contribution-BpuUCejv.cjs +1 -0
- package/dist/monaco.contribution-Cq4QrMn0.js +134 -0
- package/dist/msdax-BiazpDQ1.js +156 -0
- package/dist/msdax-xM1_j20x.cjs +1 -0
- package/dist/mysql-DMsJkSnA.cjs +1 -0
- package/dist/mysql-DphBFJlP.js +168 -0
- package/dist/objective-c-BG02Lrht.cjs +1 -0
- package/dist/objective-c-DWZ8Qpyc.js +144 -0
- package/dist/pascal-BcvlMOdu.js +176 -0
- package/dist/pascal-CnP2Fqes.cjs +1 -0
- package/dist/pascaligo-BzDEm-l_.cjs +1 -0
- package/dist/pascaligo-DHEp4kzh.js +201 -0
- package/dist/perl-USYKPHpO.js +316 -0
- package/dist/perl-nIxw-e4R.cjs +1 -0
- package/dist/pgsql-Buk6XzVf.cjs +1 -0
- package/dist/pgsql-DzPhAh9W.js +158 -0
- package/dist/php-B3sFYUqV.cjs +1 -0
- package/dist/php-PfpSTefE.js +471 -0
- package/dist/pla-CZtnfWl6.cjs +1 -0
- package/dist/pla-DrFOZwDB.js +146 -0
- package/dist/postiats-4OGxVVUT.js +504 -0
- package/dist/postiats-CgJZf83Q.cjs +1 -0
- package/dist/powerquery-D9gzk2Dq.cjs +1 -0
- package/dist/powerquery-_h9-HEnY.js +190 -0
- package/dist/powershell-CZHaQY6z.cjs +1 -0
- package/dist/powershell-nOzcY8gy.js +211 -0
- package/dist/protobuf-DAgxhnea.js +659 -0
- package/dist/protobuf-D_C8Guej.cjs +2 -0
- package/dist/public-1PveQco4.js +1756 -0
- package/dist/public-D1K7oN7t.cjs +3 -0
- package/dist/pug-quEtG4rz.cjs +1 -0
- package/dist/pug-raGZNmZ1.js +300 -0
- package/dist/python-C45c7K7W.js +260 -0
- package/dist/python-CQX8JcT4.cjs +1 -0
- package/dist/qsharp-C2jz5tuo.js +143 -0
- package/dist/qsharp-CX1SSV_j.cjs +1 -0
- package/dist/query_bar_top_row-3UclS1nm.cjs +1 -0
- package/dist/query_bar_top_row-CfV4Iu71.cjs +1 -0
- package/dist/query_bar_top_row-D6a48VTk.js +11 -0
- package/dist/query_bar_top_row-DonV1OzY.js +2930 -0
- package/dist/query_string_input-75waAcWy.js +9 -0
- package/dist/query_string_input-CHG9w1ze.cjs +1 -0
- package/dist/query_string_input-CyPZVKif.js +366 -0
- package/dist/query_string_input-SOULY6dl.cjs +1 -0
- package/dist/r-CXkPcYYf.js +189 -0
- package/dist/r-DpVDQTST.cjs +1 -0
- package/dist/razor-BnoJmj1k.js +525 -0
- package/dist/razor-DYx4yJJn.cjs +1 -0
- package/dist/redis-DsCuCZIT.cjs +1 -0
- package/dist/redis-giKZvbbg.js +123 -0
- package/dist/redshift-qKVxBsP_.js +158 -0
- package/dist/redshift-z5_aUfdC.cjs +1 -0
- package/dist/restructuredtext-D0n4pabr.js +287 -0
- package/dist/restructuredtext-DdXoKocW.cjs +1 -0
- package/dist/ruby-BNrBlpcw.js +527 -0
- package/dist/ruby-Dj0sNBey.cjs +1 -0
- package/dist/rust-D6mpPoli.js +178 -0
- package/dist/rust-DjkW1U4M.cjs +1 -0
- package/dist/sb-BCN0JcpS.cjs +1 -0
- package/dist/sb-DhS9GhXl.js +143 -0
- package/dist/scala-BqxBEpi8.js +551 -0
- package/dist/scala-CyXWhZaJ.cjs +1 -0
- package/dist/scheme-Bh4oGAk3.js +170 -0
- package/dist/scheme-Cs9G6QEE.cjs +1 -0
- package/dist/scss-Byf08jwC.js +417 -0
- package/dist/scss-Fl7taPuq.cjs +3 -0
- package/dist/search_bar-Caqi1NVo.js +1815 -0
- package/dist/search_bar-DyO_WsC5.cjs +1 -0
- package/dist/services-9wPHk1eh.js +2350 -0
- package/dist/services-BPC3fXx4.cjs +7 -0
- package/dist/shard_failure_open_modal_button-BYTThYch.js +199 -0
- package/dist/shard_failure_open_modal_button-Dx8ML4VE.cjs +2 -0
- package/dist/shell-Cw5yNfC4.cjs +1 -0
- package/dist/shell-UoRv_tpG.js +223 -0
- package/dist/solidity-B5t7Lkol.js +147 -0
- package/dist/solidity-BoAzg9X_.cjs +1 -0
- package/dist/sophia-BrXXWhvp.js +147 -0
- package/dist/sophia-L84Jz6Ow.cjs +1 -0
- package/dist/sparql-B8ZTY48u.js +124 -0
- package/dist/sparql-D6lnG7vO.cjs +1 -0
- package/dist/sql-D_74hUL-.js +171 -0
- package/dist/sql-VXdYzIyz.cjs +1 -0
- package/dist/src/App.d.ts +2 -0
- package/dist/src/components/ResultHeader/Info.d.ts +30 -0
- package/dist/src/components/ResultHeader/index.d.ts +13 -0
- package/dist/src/components/context.d.ts +82 -0
- package/dist/src/components/euiicons.d.ts +1 -0
- package/dist/src/components/index.d.ts +8 -0
- package/dist/src/main.d.ts +1 -0
- package/dist/src/utils/request.d.ts +1 -0
- package/dist/src/utils/utils.d.ts +1 -0
- package/dist/st-CxJLwAAK.cjs +1 -0
- package/dist/st-D8Rdx9Bz.js +476 -0
- package/dist/suggestions_component-BBHwbjYT.js +1243 -0
- package/dist/suggestions_component-CF4sehth.cjs +77 -0
- package/dist/swift-ZBC6wQdc.cjs +1 -0
- package/dist/swift-s19Ivx3X.js +213 -0
- package/dist/systemverilog-DoSgAb1I.cjs +1 -0
- package/dist/systemverilog-fA72PnKj.js +298 -0
- package/dist/tcl-B8QLbcxi.js +223 -0
- package/dist/tcl-IXmy-lJ0.cjs +1 -0
- package/dist/tsMode-BrPRpJvb.js +597 -0
- package/dist/tsMode-CNvH6xuC.cjs +11 -0
- package/dist/tsup.config.d.ts +2 -0
- package/dist/twig-CT2RXmm0.cjs +1 -0
- package/dist/twig-Dy7NkzKI.js +388 -0
- package/dist/typescript-BRKHcp4S.js +263 -0
- package/dist/typescript-Bbw9fxuo.cjs +1 -0
- package/dist/typescript-CQjO9XnF.js +3 -0
- package/dist/typescript-D6q4AO2z.cjs +1 -0
- package/dist/typespec-CkKpvaMv.cjs +1 -0
- package/dist/typespec-ndyv0mQx.js +234 -0
- package/dist/vb-DET0NIW-.js +260 -0
- package/dist/vb-R3Kcrzvd.cjs +1 -0
- package/dist/vite.config.d.ts +2 -0
- package/dist/wgsl-D5TeQchR.js +145 -0
- package/dist/wgsl-FTDBzylH.cjs +298 -0
- package/dist/xml-BZjE3dtf.js +136 -0
- package/dist/xml-CxbMIueA.cjs +1 -0
- package/dist/yaml-Di_6aXC4.js +229 -0
- package/dist/yaml-DvaGkWBl.cjs +1 -0
- package/package.json +98 -0
|
@@ -0,0 +1,1243 @@
|
|
|
1
|
+
import { o as __toESM, t as __commonJSMin } from "./chunk-CIp4IH9D.js";
|
|
2
|
+
import { n as require_jsx_runtime, t as require_lodash } from "./lodash-D-qGlPRW.js";
|
|
3
|
+
import { t as require_classnames } from "./classnames-eUba3oot.js";
|
|
4
|
+
import React, { Component, createElement, useContext, useDebugValue, useEffect, useMemo, useRef, useState } from "react";
|
|
5
|
+
import { EuiIcon } from "@elastic/eui";
|
|
6
|
+
var import_lodash = require_lodash(), import_classnames$1 = /* @__PURE__ */ __toESM(require_classnames(), 1), __assign = function() {
|
|
7
|
+
return __assign = Object.assign || function(e) {
|
|
8
|
+
for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
9
|
+
return e;
|
|
10
|
+
}, __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
function __spreadArray(e, t, n) {
|
|
13
|
+
if (n || arguments.length === 2) for (var r = 0, i = t.length, a; r < i; r++) (a || !(r in t)) && (a ||= Array.prototype.slice.call(t, 0, r), a[r] = t[r]);
|
|
14
|
+
return e.concat(a || Array.prototype.slice.call(t));
|
|
15
|
+
}
|
|
16
|
+
function memoize(e) {
|
|
17
|
+
var t = Object.create(null);
|
|
18
|
+
return function(n) {
|
|
19
|
+
return t[n] === void 0 && (t[n] = e(n)), t[n];
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, isPropValid = /* @__PURE__ */ memoize(function(e) {
|
|
23
|
+
return reactPropsRegex.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
|
|
24
|
+
}), require_shallowequal = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
25
|
+
t.exports = function(e, t, n, r) {
|
|
26
|
+
var i = n ? n.call(r, e, t) : void 0;
|
|
27
|
+
if (i !== void 0) return !!i;
|
|
28
|
+
if (e === t) return !0;
|
|
29
|
+
if (typeof e != "object" || !e || typeof t != "object" || !t) return !1;
|
|
30
|
+
var a = Object.keys(e), o = Object.keys(t);
|
|
31
|
+
if (a.length !== o.length) return !1;
|
|
32
|
+
for (var s = Object.prototype.hasOwnProperty.bind(t), c = 0; c < a.length; c++) {
|
|
33
|
+
var l = a[c];
|
|
34
|
+
if (!s(l)) return !1;
|
|
35
|
+
var u = e[l], d = t[l];
|
|
36
|
+
if (i = n ? n.call(r, u, d, l) : void 0, i === !1 || i === void 0 && u !== d) return !1;
|
|
37
|
+
}
|
|
38
|
+
return !0;
|
|
39
|
+
};
|
|
40
|
+
})), MS = "-ms-", MOZ = "-moz-", WEBKIT = "-webkit-", COMMENT = "comm", RULESET = "rule", DECLARATION = "decl", IMPORT = "@import", KEYFRAMES = "@keyframes", LAYER = "@layer", abs = Math.abs, from = String.fromCharCode, assign = Object.assign;
|
|
41
|
+
function hash(e, t) {
|
|
42
|
+
return charat(e, 0) ^ 45 ? (((t << 2 ^ charat(e, 0)) << 2 ^ charat(e, 1)) << 2 ^ charat(e, 2)) << 2 ^ charat(e, 3) : 0;
|
|
43
|
+
}
|
|
44
|
+
function trim(e) {
|
|
45
|
+
return e.trim();
|
|
46
|
+
}
|
|
47
|
+
function match(e, t) {
|
|
48
|
+
return (e = t.exec(e)) ? e[0] : e;
|
|
49
|
+
}
|
|
50
|
+
function replace(e, t, n) {
|
|
51
|
+
return e.replace(t, n);
|
|
52
|
+
}
|
|
53
|
+
function indexof(e, t, n) {
|
|
54
|
+
return e.indexOf(t, n);
|
|
55
|
+
}
|
|
56
|
+
function charat(e, t) {
|
|
57
|
+
return e.charCodeAt(t) | 0;
|
|
58
|
+
}
|
|
59
|
+
function substr(e, t, n) {
|
|
60
|
+
return e.slice(t, n);
|
|
61
|
+
}
|
|
62
|
+
function strlen(e) {
|
|
63
|
+
return e.length;
|
|
64
|
+
}
|
|
65
|
+
function sizeof(e) {
|
|
66
|
+
return e.length;
|
|
67
|
+
}
|
|
68
|
+
function append(e, t) {
|
|
69
|
+
return t.push(e), e;
|
|
70
|
+
}
|
|
71
|
+
function combine(e, t) {
|
|
72
|
+
return e.map(t).join("");
|
|
73
|
+
}
|
|
74
|
+
function filter(e, t) {
|
|
75
|
+
return e.filter(function(e) {
|
|
76
|
+
return !match(e, t);
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
var line = 1, column = 1, length = 0, position = 0, character = 0, characters = "";
|
|
80
|
+
function node(e, t, n, r, i, a, o, s) {
|
|
81
|
+
return {
|
|
82
|
+
value: e,
|
|
83
|
+
root: t,
|
|
84
|
+
parent: n,
|
|
85
|
+
type: r,
|
|
86
|
+
props: i,
|
|
87
|
+
children: a,
|
|
88
|
+
line,
|
|
89
|
+
column,
|
|
90
|
+
length: o,
|
|
91
|
+
return: "",
|
|
92
|
+
siblings: s
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
function copy(e, t) {
|
|
96
|
+
return assign(node("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t);
|
|
97
|
+
}
|
|
98
|
+
function lift(e) {
|
|
99
|
+
for (; e.root;) e = copy(e.root, { children: [e] });
|
|
100
|
+
append(e, e.siblings);
|
|
101
|
+
}
|
|
102
|
+
function char() {
|
|
103
|
+
return character;
|
|
104
|
+
}
|
|
105
|
+
function prev() {
|
|
106
|
+
return character = position > 0 ? charat(characters, --position) : 0, column--, character === 10 && (column = 1, line--), character;
|
|
107
|
+
}
|
|
108
|
+
function next() {
|
|
109
|
+
return character = position < length ? charat(characters, position++) : 0, column++, character === 10 && (column = 1, line++), character;
|
|
110
|
+
}
|
|
111
|
+
function peek() {
|
|
112
|
+
return charat(characters, position);
|
|
113
|
+
}
|
|
114
|
+
function caret() {
|
|
115
|
+
return position;
|
|
116
|
+
}
|
|
117
|
+
function slice(e, t) {
|
|
118
|
+
return substr(characters, e, t);
|
|
119
|
+
}
|
|
120
|
+
function token(e) {
|
|
121
|
+
switch (e) {
|
|
122
|
+
case 0:
|
|
123
|
+
case 9:
|
|
124
|
+
case 10:
|
|
125
|
+
case 13:
|
|
126
|
+
case 32: return 5;
|
|
127
|
+
case 33:
|
|
128
|
+
case 43:
|
|
129
|
+
case 44:
|
|
130
|
+
case 47:
|
|
131
|
+
case 62:
|
|
132
|
+
case 64:
|
|
133
|
+
case 126:
|
|
134
|
+
case 59:
|
|
135
|
+
case 123:
|
|
136
|
+
case 125: return 4;
|
|
137
|
+
case 58: return 3;
|
|
138
|
+
case 34:
|
|
139
|
+
case 39:
|
|
140
|
+
case 40:
|
|
141
|
+
case 91: return 2;
|
|
142
|
+
case 41:
|
|
143
|
+
case 93: return 1;
|
|
144
|
+
}
|
|
145
|
+
return 0;
|
|
146
|
+
}
|
|
147
|
+
function alloc(e) {
|
|
148
|
+
return line = column = 1, length = strlen(characters = e), position = 0, [];
|
|
149
|
+
}
|
|
150
|
+
function dealloc(e) {
|
|
151
|
+
return characters = "", e;
|
|
152
|
+
}
|
|
153
|
+
function delimit(e) {
|
|
154
|
+
return trim(slice(position - 1, delimiter(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
155
|
+
}
|
|
156
|
+
function whitespace(e) {
|
|
157
|
+
for (; (character = peek()) && character < 33;) next();
|
|
158
|
+
return token(e) > 2 || token(character) > 3 ? "" : " ";
|
|
159
|
+
}
|
|
160
|
+
function escaping(e, t) {
|
|
161
|
+
for (; --t && next() && !(character < 48 || character > 102 || character > 57 && character < 65 || character > 70 && character < 97););
|
|
162
|
+
return slice(e, caret() + (t < 6 && peek() == 32 && next() == 32));
|
|
163
|
+
}
|
|
164
|
+
function delimiter(e) {
|
|
165
|
+
for (; next();) switch (character) {
|
|
166
|
+
case e: return position;
|
|
167
|
+
case 34:
|
|
168
|
+
case 39:
|
|
169
|
+
e !== 34 && e !== 39 && delimiter(character);
|
|
170
|
+
break;
|
|
171
|
+
case 40:
|
|
172
|
+
e === 41 && delimiter(e);
|
|
173
|
+
break;
|
|
174
|
+
case 92:
|
|
175
|
+
next();
|
|
176
|
+
break;
|
|
177
|
+
}
|
|
178
|
+
return position;
|
|
179
|
+
}
|
|
180
|
+
function commenter(e, t) {
|
|
181
|
+
for (; next() && e + character !== 57 && !(e + character === 84 && peek() === 47););
|
|
182
|
+
return "/*" + slice(t, position - 1) + "*" + from(e === 47 ? e : next());
|
|
183
|
+
}
|
|
184
|
+
function identifier(e) {
|
|
185
|
+
for (; !token(peek());) next();
|
|
186
|
+
return slice(e, position);
|
|
187
|
+
}
|
|
188
|
+
function compile(e) {
|
|
189
|
+
return dealloc(parse("", null, null, null, [""], e = alloc(e), 0, [0], e));
|
|
190
|
+
}
|
|
191
|
+
function parse(e, t, n, r, i, a, o, s, c) {
|
|
192
|
+
for (var l = 0, u = 0, d = o, _i = 0, vi = 0, yi = 0, bi = 1, xi = 1, Si = 1, p = 0, Ci = "", h = i, wi = a, Ti = r, b = Ci; xi;) switch (yi = p, p = next()) {
|
|
193
|
+
case 40: if (yi != 108 && charat(b, d - 1) == 58) {
|
|
194
|
+
indexof(b += replace(delimit(p), "&", "&\f"), "&\f", abs(l ? s[l - 1] : 0)) != -1 && (Si = -1);
|
|
195
|
+
break;
|
|
196
|
+
}
|
|
197
|
+
case 34:
|
|
198
|
+
case 39:
|
|
199
|
+
case 91:
|
|
200
|
+
b += delimit(p);
|
|
201
|
+
break;
|
|
202
|
+
case 9:
|
|
203
|
+
case 10:
|
|
204
|
+
case 13:
|
|
205
|
+
case 32:
|
|
206
|
+
b += whitespace(yi);
|
|
207
|
+
break;
|
|
208
|
+
case 92:
|
|
209
|
+
b += escaping(caret() - 1, 7);
|
|
210
|
+
continue;
|
|
211
|
+
case 47:
|
|
212
|
+
switch (peek()) {
|
|
213
|
+
case 42:
|
|
214
|
+
case 47:
|
|
215
|
+
append(comment(commenter(next(), caret()), t, n, c), c);
|
|
216
|
+
break;
|
|
217
|
+
default: b += "/";
|
|
218
|
+
}
|
|
219
|
+
break;
|
|
220
|
+
case 123 * bi: s[l++] = strlen(b) * Si;
|
|
221
|
+
case 125 * bi:
|
|
222
|
+
case 59:
|
|
223
|
+
case 0:
|
|
224
|
+
switch (p) {
|
|
225
|
+
case 0:
|
|
226
|
+
case 125: xi = 0;
|
|
227
|
+
case 59 + u:
|
|
228
|
+
Si == -1 && (b = replace(b, /\f/g, "")), vi > 0 && strlen(b) - d && append(vi > 32 ? declaration(b + ";", r, n, d - 1, c) : declaration(replace(b, " ", "") + ";", r, n, d - 2, c), c);
|
|
229
|
+
break;
|
|
230
|
+
case 59: b += ";";
|
|
231
|
+
default: if (append(Ti = ruleset(b, t, n, l, u, i, s, Ci, h = [], wi = [], d, a), a), p === 123) if (u === 0) parse(b, t, Ti, Ti, h, a, d, s, wi);
|
|
232
|
+
else switch (_i === 99 && charat(b, 3) === 110 ? 100 : _i) {
|
|
233
|
+
case 100:
|
|
234
|
+
case 108:
|
|
235
|
+
case 109:
|
|
236
|
+
case 115:
|
|
237
|
+
parse(e, Ti, Ti, r && append(ruleset(e, Ti, Ti, 0, 0, i, s, Ci, i, h = [], d, wi), wi), i, wi, d, s, r ? h : wi);
|
|
238
|
+
break;
|
|
239
|
+
default: parse(b, Ti, Ti, Ti, [""], wi, 0, s, wi);
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
l = u = vi = 0, bi = Si = 1, Ci = b = "", d = o;
|
|
243
|
+
break;
|
|
244
|
+
case 58: d = 1 + strlen(b), vi = yi;
|
|
245
|
+
default:
|
|
246
|
+
if (bi < 1) {
|
|
247
|
+
if (p == 123) --bi;
|
|
248
|
+
else if (p == 125 && bi++ == 0 && prev() == 125) continue;
|
|
249
|
+
}
|
|
250
|
+
switch (b += from(p), p * bi) {
|
|
251
|
+
case 38:
|
|
252
|
+
Si = u > 0 ? 1 : (b += "\f", -1);
|
|
253
|
+
break;
|
|
254
|
+
case 44:
|
|
255
|
+
s[l++] = (strlen(b) - 1) * Si, Si = 1;
|
|
256
|
+
break;
|
|
257
|
+
case 64:
|
|
258
|
+
peek() === 45 && (b += delimit(next())), _i = peek(), u = d = strlen(Ci = b += identifier(caret())), p++;
|
|
259
|
+
break;
|
|
260
|
+
case 45: yi === 45 && strlen(b) == 2 && (bi = 0);
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
return a;
|
|
264
|
+
}
|
|
265
|
+
function ruleset(e, t, n, r, i, a, o, s, c, l, u, d) {
|
|
266
|
+
for (var _i = i - 1, vi = i === 0 ? a : [""], yi = sizeof(vi), bi = 0, xi = 0, Si = 0; bi < r; ++bi) for (var p = 0, Ci = substr(e, _i + 1, _i = abs(xi = o[bi])), h = e; p < yi; ++p) (h = trim(xi > 0 ? vi[p] + " " + Ci : replace(Ci, /&\f/g, vi[p]))) && (c[Si++] = h);
|
|
267
|
+
return node(e, t, n, i === 0 ? RULESET : s, c, l, u, d);
|
|
268
|
+
}
|
|
269
|
+
function comment(e, t, n, r) {
|
|
270
|
+
return node(e, t, n, COMMENT, from(char()), substr(e, 2, -2), 0, r);
|
|
271
|
+
}
|
|
272
|
+
function declaration(e, t, n, r, i) {
|
|
273
|
+
return node(e, t, n, DECLARATION, substr(e, 0, r), substr(e, r + 1, -1), r, i);
|
|
274
|
+
}
|
|
275
|
+
function prefix(e, t, n) {
|
|
276
|
+
switch (hash(e, t)) {
|
|
277
|
+
case 5103: return WEBKIT + "print-" + e + e;
|
|
278
|
+
case 5737:
|
|
279
|
+
case 4201:
|
|
280
|
+
case 3177:
|
|
281
|
+
case 3433:
|
|
282
|
+
case 1641:
|
|
283
|
+
case 4457:
|
|
284
|
+
case 2921:
|
|
285
|
+
case 5572:
|
|
286
|
+
case 6356:
|
|
287
|
+
case 5844:
|
|
288
|
+
case 3191:
|
|
289
|
+
case 6645:
|
|
290
|
+
case 3005:
|
|
291
|
+
case 6391:
|
|
292
|
+
case 5879:
|
|
293
|
+
case 5623:
|
|
294
|
+
case 6135:
|
|
295
|
+
case 4599:
|
|
296
|
+
case 4855:
|
|
297
|
+
case 4215:
|
|
298
|
+
case 6389:
|
|
299
|
+
case 5109:
|
|
300
|
+
case 5365:
|
|
301
|
+
case 5621:
|
|
302
|
+
case 3829: return WEBKIT + e + e;
|
|
303
|
+
case 4789: return MOZ + e + e;
|
|
304
|
+
case 5349:
|
|
305
|
+
case 4246:
|
|
306
|
+
case 4810:
|
|
307
|
+
case 6968:
|
|
308
|
+
case 2756: return WEBKIT + e + MOZ + e + MS + e + e;
|
|
309
|
+
case 5936: switch (charat(e, t + 11)) {
|
|
310
|
+
case 114: return WEBKIT + e + MS + replace(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
|
|
311
|
+
case 108: return WEBKIT + e + MS + replace(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
|
|
312
|
+
case 45: return WEBKIT + e + MS + replace(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
|
|
313
|
+
}
|
|
314
|
+
case 6828:
|
|
315
|
+
case 4268:
|
|
316
|
+
case 2903: return WEBKIT + e + MS + e + e;
|
|
317
|
+
case 6165: return WEBKIT + e + MS + "flex-" + e + e;
|
|
318
|
+
case 5187: return WEBKIT + e + replace(e, /(\w+).+(:[^]+)/, WEBKIT + "box-$1$2" + MS + "flex-$1$2") + e;
|
|
319
|
+
case 5443: return WEBKIT + e + MS + "flex-item-" + replace(e, /flex-|-self/g, "") + (match(e, /flex-|baseline/) ? "" : MS + "grid-row-" + replace(e, /flex-|-self/g, "")) + e;
|
|
320
|
+
case 4675: return WEBKIT + e + MS + "flex-line-pack" + replace(e, /align-content|flex-|-self/g, "") + e;
|
|
321
|
+
case 5548: return WEBKIT + e + MS + replace(e, "shrink", "negative") + e;
|
|
322
|
+
case 5292: return WEBKIT + e + MS + replace(e, "basis", "preferred-size") + e;
|
|
323
|
+
case 6060: return WEBKIT + "box-" + replace(e, "-grow", "") + WEBKIT + e + MS + replace(e, "grow", "positive") + e;
|
|
324
|
+
case 4554: return WEBKIT + replace(e, /([^-])(transform)/g, "$1" + WEBKIT + "$2") + e;
|
|
325
|
+
case 6187: return replace(replace(replace(e, /(zoom-|grab)/, WEBKIT + "$1"), /(image-set)/, WEBKIT + "$1"), e, "") + e;
|
|
326
|
+
case 5495:
|
|
327
|
+
case 3959: return replace(e, /(image-set\([^]*)/, WEBKIT + "$1$`$1");
|
|
328
|
+
case 4968: return replace(replace(e, /(.+:)(flex-)?(.*)/, WEBKIT + "box-pack:$3" + MS + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + WEBKIT + e + e;
|
|
329
|
+
case 4200:
|
|
330
|
+
if (!match(e, /flex-|baseline/)) return MS + "grid-column-align" + substr(e, t) + e;
|
|
331
|
+
break;
|
|
332
|
+
case 2592:
|
|
333
|
+
case 3360: return MS + replace(e, "template-", "") + e;
|
|
334
|
+
case 4384:
|
|
335
|
+
case 3616: return n && n.some(function(e, n) {
|
|
336
|
+
return t = n, match(e.props, /grid-\w+-end/);
|
|
337
|
+
}) ? ~indexof(e + (n = n[t].value), "span", 0) ? e : MS + replace(e, "-start", "") + e + MS + "grid-row-span:" + (~indexof(n, "span", 0) ? match(n, /\d+/) : match(n, /\d+/) - +match(e, /\d+/)) + ";" : MS + replace(e, "-start", "") + e;
|
|
338
|
+
case 4896:
|
|
339
|
+
case 4128: return n && n.some(function(e) {
|
|
340
|
+
return match(e.props, /grid-\w+-start/);
|
|
341
|
+
}) ? e : MS + replace(replace(e, "-end", "-span"), "span ", "") + e;
|
|
342
|
+
case 4095:
|
|
343
|
+
case 3583:
|
|
344
|
+
case 4068:
|
|
345
|
+
case 2532: return replace(e, /(.+)-inline(.+)/, WEBKIT + "$1$2") + e;
|
|
346
|
+
case 8116:
|
|
347
|
+
case 7059:
|
|
348
|
+
case 5753:
|
|
349
|
+
case 5535:
|
|
350
|
+
case 5445:
|
|
351
|
+
case 5701:
|
|
352
|
+
case 4933:
|
|
353
|
+
case 4677:
|
|
354
|
+
case 5533:
|
|
355
|
+
case 5789:
|
|
356
|
+
case 5021:
|
|
357
|
+
case 4765:
|
|
358
|
+
if (strlen(e) - 1 - t > 6) switch (charat(e, t + 1)) {
|
|
359
|
+
case 109: if (charat(e, t + 4) !== 45) break;
|
|
360
|
+
case 102: return replace(e, /(.+:)(.+)-([^]+)/, "$1" + WEBKIT + "$2-$3$1" + MOZ + (charat(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
361
|
+
case 115: return ~indexof(e, "stretch", 0) ? prefix(replace(e, "stretch", "fill-available"), t, n) + e : e;
|
|
362
|
+
}
|
|
363
|
+
break;
|
|
364
|
+
case 5152:
|
|
365
|
+
case 5920: return replace(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(t, n, r, i, a, o, s) {
|
|
366
|
+
return MS + n + ":" + r + s + (i ? MS + n + "-span:" + (a ? o : o - +r) + s : "") + e;
|
|
367
|
+
});
|
|
368
|
+
case 4949:
|
|
369
|
+
if (charat(e, t + 6) === 121) return replace(e, ":", ":" + WEBKIT) + e;
|
|
370
|
+
break;
|
|
371
|
+
case 6444:
|
|
372
|
+
switch (charat(e, charat(e, 14) === 45 ? 18 : 11)) {
|
|
373
|
+
case 120: return replace(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + WEBKIT + (charat(e, 14) === 45 ? "inline-" : "") + "box$3$1" + WEBKIT + "$2$3$1" + MS + "$2box$3") + e;
|
|
374
|
+
case 100: return replace(e, ":", ":" + MS) + e;
|
|
375
|
+
}
|
|
376
|
+
break;
|
|
377
|
+
case 5719:
|
|
378
|
+
case 2647:
|
|
379
|
+
case 2135:
|
|
380
|
+
case 3927:
|
|
381
|
+
case 2391: return replace(e, "scroll-", "scroll-snap-") + e;
|
|
382
|
+
}
|
|
383
|
+
return e;
|
|
384
|
+
}
|
|
385
|
+
function serialize(e, t) {
|
|
386
|
+
for (var n = "", r = 0; r < e.length; r++) n += t(e[r], r, e, t) || "";
|
|
387
|
+
return n;
|
|
388
|
+
}
|
|
389
|
+
function stringify(e, t, n, r) {
|
|
390
|
+
switch (e.type) {
|
|
391
|
+
case LAYER: if (e.children.length) break;
|
|
392
|
+
case IMPORT:
|
|
393
|
+
case DECLARATION: return e.return = e.return || e.value;
|
|
394
|
+
case COMMENT: return "";
|
|
395
|
+
case KEYFRAMES: return e.return = e.value + "{" + serialize(e.children, r) + "}";
|
|
396
|
+
case RULESET: if (!strlen(e.value = e.props.join(","))) return "";
|
|
397
|
+
}
|
|
398
|
+
return strlen(n = serialize(e.children, r)) ? e.return = e.value + "{" + n + "}" : "";
|
|
399
|
+
}
|
|
400
|
+
function middleware(e) {
|
|
401
|
+
var t = sizeof(e);
|
|
402
|
+
return function(n, r, i, a) {
|
|
403
|
+
for (var o = "", s = 0; s < t; s++) o += e[s](n, r, i, a) || "";
|
|
404
|
+
return o;
|
|
405
|
+
};
|
|
406
|
+
}
|
|
407
|
+
function rulesheet(e) {
|
|
408
|
+
return function(t) {
|
|
409
|
+
t.root || (t = t.return) && e(t);
|
|
410
|
+
};
|
|
411
|
+
}
|
|
412
|
+
function prefixer(e, t, n, r) {
|
|
413
|
+
if (e.length > -1 && !e.return) switch (e.type) {
|
|
414
|
+
case DECLARATION:
|
|
415
|
+
e.return = prefix(e.value, e.length, n);
|
|
416
|
+
return;
|
|
417
|
+
case KEYFRAMES: return serialize([copy(e, { value: replace(e.value, "@", "@" + WEBKIT) })], r);
|
|
418
|
+
case RULESET: if (e.length) return combine(n = e.props, function(t) {
|
|
419
|
+
switch (match(t, r = /(::plac\w+|:read-\w+)/)) {
|
|
420
|
+
case ":read-only":
|
|
421
|
+
case ":read-write":
|
|
422
|
+
lift(copy(e, { props: [replace(t, /:(read-\w+)/, ":" + MOZ + "$1")] })), lift(copy(e, { props: [t] })), assign(e, { props: filter(n, r) });
|
|
423
|
+
break;
|
|
424
|
+
case "::placeholder":
|
|
425
|
+
lift(copy(e, { props: [replace(t, /:(plac\w+)/, ":" + WEBKIT + "input-$1")] })), lift(copy(e, { props: [replace(t, /:(plac\w+)/, ":" + MOZ + "$1")] })), lift(copy(e, { props: [replace(t, /:(plac\w+)/, MS + "input-$1")] })), lift(copy(e, { props: [t] })), assign(e, { props: filter(n, r) });
|
|
426
|
+
break;
|
|
427
|
+
}
|
|
428
|
+
return "";
|
|
429
|
+
});
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
var import_shallowequal = /* @__PURE__ */ __toESM(require_shallowequal()), unitlessKeys = {
|
|
433
|
+
animationIterationCount: 1,
|
|
434
|
+
aspectRatio: 1,
|
|
435
|
+
borderImageOutset: 1,
|
|
436
|
+
borderImageSlice: 1,
|
|
437
|
+
borderImageWidth: 1,
|
|
438
|
+
boxFlex: 1,
|
|
439
|
+
boxFlexGroup: 1,
|
|
440
|
+
boxOrdinalGroup: 1,
|
|
441
|
+
columnCount: 1,
|
|
442
|
+
columns: 1,
|
|
443
|
+
flex: 1,
|
|
444
|
+
flexGrow: 1,
|
|
445
|
+
flexPositive: 1,
|
|
446
|
+
flexShrink: 1,
|
|
447
|
+
flexNegative: 1,
|
|
448
|
+
flexOrder: 1,
|
|
449
|
+
gridRow: 1,
|
|
450
|
+
gridRowEnd: 1,
|
|
451
|
+
gridRowSpan: 1,
|
|
452
|
+
gridRowStart: 1,
|
|
453
|
+
gridColumn: 1,
|
|
454
|
+
gridColumnEnd: 1,
|
|
455
|
+
gridColumnSpan: 1,
|
|
456
|
+
gridColumnStart: 1,
|
|
457
|
+
msGridRow: 1,
|
|
458
|
+
msGridRowSpan: 1,
|
|
459
|
+
msGridColumn: 1,
|
|
460
|
+
msGridColumnSpan: 1,
|
|
461
|
+
fontWeight: 1,
|
|
462
|
+
lineHeight: 1,
|
|
463
|
+
opacity: 1,
|
|
464
|
+
order: 1,
|
|
465
|
+
orphans: 1,
|
|
466
|
+
tabSize: 1,
|
|
467
|
+
widows: 1,
|
|
468
|
+
zIndex: 1,
|
|
469
|
+
zoom: 1,
|
|
470
|
+
WebkitLineClamp: 1,
|
|
471
|
+
fillOpacity: 1,
|
|
472
|
+
floodOpacity: 1,
|
|
473
|
+
stopOpacity: 1,
|
|
474
|
+
strokeDasharray: 1,
|
|
475
|
+
strokeDashoffset: 1,
|
|
476
|
+
strokeMiterlimit: 1,
|
|
477
|
+
strokeOpacity: 1,
|
|
478
|
+
strokeWidth: 1
|
|
479
|
+
}, f = typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", m = "active", y = "data-styled-version", v = "6.1.19", g = "/*!sc*/\n", S = typeof window < "u" && typeof document < "u", w = !!(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== "" ? process.env.REACT_APP_SC_DISABLE_SPEEDY !== "false" && process.env.REACT_APP_SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.SC_DISABLE_SPEEDY !== void 0 && process.env.SC_DISABLE_SPEEDY !== "" ? process.env.SC_DISABLE_SPEEDY !== "false" && process.env.SC_DISABLE_SPEEDY : process.env.NODE_ENV !== "production"), E = /invalid hook call/i, N = /* @__PURE__ */ new Set(), P = function(e, t) {
|
|
480
|
+
if (process.env.NODE_ENV !== "production") {
|
|
481
|
+
var n = `The component ${e}${t ? ` with the id of "${t}"` : ""} has been created dynamically.
|
|
482
|
+
You may see this warning because you've called styled inside another component.
|
|
483
|
+
To resolve this only create new StyledComponents outside of any render method and function component.
|
|
484
|
+
See https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.
|
|
485
|
+
`, r = console.error;
|
|
486
|
+
try {
|
|
487
|
+
var i = !0;
|
|
488
|
+
console.error = function(e) {
|
|
489
|
+
var t = [...arguments].slice(1);
|
|
490
|
+
E.test(e) ? (i = !1, N.delete(n)) : r.apply(void 0, __spreadArray([e], t, !1));
|
|
491
|
+
}, useRef(), i && !N.has(n) && (console.warn(n), N.add(n));
|
|
492
|
+
} catch (e) {
|
|
493
|
+
E.test(e.message) && N.delete(n);
|
|
494
|
+
} finally {
|
|
495
|
+
console.error = r;
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
}, _ = Object.freeze([]), C = Object.freeze({});
|
|
499
|
+
function I(e, t, n) {
|
|
500
|
+
return n === void 0 && (n = C), e.theme !== n.theme && e.theme || t || n.theme;
|
|
501
|
+
}
|
|
502
|
+
var A = new Set(/* @__PURE__ */ "a.abbr.address.area.article.aside.audio.b.base.bdi.bdo.big.blockquote.body.br.button.canvas.caption.cite.code.col.colgroup.data.datalist.dd.del.details.dfn.dialog.div.dl.dt.em.embed.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.header.hgroup.hr.html.i.iframe.img.input.ins.kbd.keygen.label.legend.li.link.main.map.mark.menu.menuitem.meta.meter.nav.noscript.object.ol.optgroup.option.output.p.param.picture.pre.progress.q.rp.rt.ruby.s.samp.script.section.select.small.source.span.strong.style.sub.summary.sup.table.tbody.td.textarea.tfoot.th.thead.time.tr.track.u.ul.use.var.video.wbr.circle.clipPath.defs.ellipse.foreignObject.g.image.line.linearGradient.marker.mask.path.pattern.polygon.polyline.radialGradient.rect.stop.svg.text.tspan".split(".")), O = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, D = /(^-|-$)/g;
|
|
503
|
+
function R(e) {
|
|
504
|
+
return e.replace(O, "-").replace(D, "");
|
|
505
|
+
}
|
|
506
|
+
var T = /(a)(d)/gi, k = 52, j = function(e) {
|
|
507
|
+
return String.fromCharCode(e + (e > 25 ? 39 : 97));
|
|
508
|
+
};
|
|
509
|
+
function x(e) {
|
|
510
|
+
var t, n = "";
|
|
511
|
+
for (t = Math.abs(e); t > k; t = t / k | 0) n = j(t % k) + n;
|
|
512
|
+
return (j(t % k) + n).replace(T, "$1-$2");
|
|
513
|
+
}
|
|
514
|
+
var V, F = 5381, M = function(e, t) {
|
|
515
|
+
for (var n = t.length; n;) e = 33 * e ^ t.charCodeAt(--n);
|
|
516
|
+
return e;
|
|
517
|
+
}, z = function(e) {
|
|
518
|
+
return M(F, e);
|
|
519
|
+
};
|
|
520
|
+
function $(e) {
|
|
521
|
+
return x(z(e) >>> 0);
|
|
522
|
+
}
|
|
523
|
+
function B(e) {
|
|
524
|
+
return process.env.NODE_ENV !== "production" && typeof e == "string" && e || e.displayName || e.name || "Component";
|
|
525
|
+
}
|
|
526
|
+
function L(e) {
|
|
527
|
+
return typeof e == "string" && (process.env.NODE_ENV === "production" || e.charAt(0) === e.charAt(0).toLowerCase());
|
|
528
|
+
}
|
|
529
|
+
var G = typeof Symbol == "function" && Symbol.for, Y = G ? Symbol.for("react.memo") : 60115, W = G ? Symbol.for("react.forward_ref") : 60112, q = {
|
|
530
|
+
childContextTypes: !0,
|
|
531
|
+
contextType: !0,
|
|
532
|
+
contextTypes: !0,
|
|
533
|
+
defaultProps: !0,
|
|
534
|
+
displayName: !0,
|
|
535
|
+
getDefaultProps: !0,
|
|
536
|
+
getDerivedStateFromError: !0,
|
|
537
|
+
getDerivedStateFromProps: !0,
|
|
538
|
+
mixins: !0,
|
|
539
|
+
propTypes: !0,
|
|
540
|
+
type: !0
|
|
541
|
+
}, H = {
|
|
542
|
+
name: !0,
|
|
543
|
+
length: !0,
|
|
544
|
+
prototype: !0,
|
|
545
|
+
caller: !0,
|
|
546
|
+
callee: !0,
|
|
547
|
+
arguments: !0,
|
|
548
|
+
arity: !0
|
|
549
|
+
}, U = {
|
|
550
|
+
$$typeof: !0,
|
|
551
|
+
compare: !0,
|
|
552
|
+
defaultProps: !0,
|
|
553
|
+
displayName: !0,
|
|
554
|
+
propTypes: !0,
|
|
555
|
+
type: !0
|
|
556
|
+
}, J = ((V = {})[W] = {
|
|
557
|
+
$$typeof: !0,
|
|
558
|
+
render: !0,
|
|
559
|
+
defaultProps: !0,
|
|
560
|
+
displayName: !0,
|
|
561
|
+
propTypes: !0
|
|
562
|
+
}, V[Y] = U, V);
|
|
563
|
+
function X(e) {
|
|
564
|
+
return ("type" in (t = e) && t.type.$$typeof) === Y ? U : "$$typeof" in e ? J[e.$$typeof] : q;
|
|
565
|
+
var t;
|
|
566
|
+
}
|
|
567
|
+
var Z = Object.defineProperty, K = Object.getOwnPropertyNames, Q = Object.getOwnPropertySymbols, ee = Object.getOwnPropertyDescriptor, te = Object.getPrototypeOf, ne = Object.prototype;
|
|
568
|
+
function oe(e, t, n) {
|
|
569
|
+
if (typeof t != "string") {
|
|
570
|
+
if (ne) {
|
|
571
|
+
var r = te(t);
|
|
572
|
+
r && r !== ne && oe(e, r, n);
|
|
573
|
+
}
|
|
574
|
+
var i = K(t);
|
|
575
|
+
Q && (i = i.concat(Q(t)));
|
|
576
|
+
for (var a = X(e), o = X(t), s = 0; s < i.length; ++s) {
|
|
577
|
+
var c = i[s];
|
|
578
|
+
if (!(c in H || n && n[c] || o && c in o || a && c in a)) {
|
|
579
|
+
var l = ee(t, c);
|
|
580
|
+
try {
|
|
581
|
+
Z(e, c, l);
|
|
582
|
+
} catch {}
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
return e;
|
|
587
|
+
}
|
|
588
|
+
function re(e) {
|
|
589
|
+
return typeof e == "function";
|
|
590
|
+
}
|
|
591
|
+
function se(e) {
|
|
592
|
+
return typeof e == "object" && "styledComponentId" in e;
|
|
593
|
+
}
|
|
594
|
+
function ie(e, t) {
|
|
595
|
+
return e && t ? `${e} ${t}` : e || t || "";
|
|
596
|
+
}
|
|
597
|
+
function ae(e, t) {
|
|
598
|
+
if (e.length === 0) return "";
|
|
599
|
+
for (var n = e[0], r = 1; r < e.length; r++) n += t ? t + e[r] : e[r];
|
|
600
|
+
return n;
|
|
601
|
+
}
|
|
602
|
+
function ce(e) {
|
|
603
|
+
return typeof e == "object" && !!e && e.constructor.name === Object.name && !("props" in e && e.$$typeof);
|
|
604
|
+
}
|
|
605
|
+
function le(e, t, n) {
|
|
606
|
+
if (n === void 0 && (n = !1), !n && !ce(e) && !Array.isArray(e)) return t;
|
|
607
|
+
if (Array.isArray(t)) for (var r = 0; r < t.length; r++) e[r] = le(e[r], t[r]);
|
|
608
|
+
else if (ce(t)) for (var r in t) e[r] = le(e[r], t[r]);
|
|
609
|
+
return e;
|
|
610
|
+
}
|
|
611
|
+
function ue(e, t) {
|
|
612
|
+
Object.defineProperty(e, "toString", { value: t });
|
|
613
|
+
}
|
|
614
|
+
var pe = process.env.NODE_ENV === "production" ? {} : {
|
|
615
|
+
1: "Cannot create styled-component for component: %s.\n\n",
|
|
616
|
+
2: "Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",
|
|
617
|
+
3: "Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",
|
|
618
|
+
4: "The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",
|
|
619
|
+
5: "The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",
|
|
620
|
+
6: "Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",
|
|
621
|
+
7: "ThemeProvider: Please return an object from your \"theme\" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n",
|
|
622
|
+
8: "ThemeProvider: Please make your \"theme\" prop an object.\n\n",
|
|
623
|
+
9: "Missing document `<head>`\n\n",
|
|
624
|
+
10: "Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",
|
|
625
|
+
11: "_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",
|
|
626
|
+
12: "It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",
|
|
627
|
+
13: "%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",
|
|
628
|
+
14: "ThemeProvider: \"theme\" prop is required.\n\n",
|
|
629
|
+
15: "A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",
|
|
630
|
+
16: "Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",
|
|
631
|
+
17: "CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n",
|
|
632
|
+
18: "ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"
|
|
633
|
+
};
|
|
634
|
+
function de() {
|
|
635
|
+
for (var e = [...arguments], t = e[0], n = [], r = 1, i = e.length; r < i; r += 1) n.push(e[r]);
|
|
636
|
+
return n.forEach(function(e) {
|
|
637
|
+
t = t.replace(/%[a-z]/, e);
|
|
638
|
+
}), t;
|
|
639
|
+
}
|
|
640
|
+
function he(e) {
|
|
641
|
+
var t = [...arguments].slice(1);
|
|
642
|
+
return process.env.NODE_ENV === "production" ? Error(`An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#${e} for more information.${t.length > 0 ? ` Args: ${t.join(", ")}` : ""}`) : Error(de.apply(void 0, __spreadArray([pe[e]], t, !1)).trim());
|
|
643
|
+
}
|
|
644
|
+
var fe = function() {
|
|
645
|
+
function e(e) {
|
|
646
|
+
this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = e;
|
|
647
|
+
}
|
|
648
|
+
return e.prototype.indexOfGroup = function(e) {
|
|
649
|
+
for (var t = 0, n = 0; n < e; n++) t += this.groupSizes[n];
|
|
650
|
+
return t;
|
|
651
|
+
}, e.prototype.insertRules = function(e, t) {
|
|
652
|
+
if (e >= this.groupSizes.length) {
|
|
653
|
+
for (var n = this.groupSizes, r = n.length, i = r; e >= i;) if ((i <<= 1) < 0) throw he(16, `${e}`);
|
|
654
|
+
this.groupSizes = new Uint32Array(i), this.groupSizes.set(n), this.length = i;
|
|
655
|
+
for (var a = r; a < i; a++) this.groupSizes[a] = 0;
|
|
656
|
+
}
|
|
657
|
+
for (var o = this.indexOfGroup(e + 1), s = (a = 0, t.length); a < s; a++) this.tag.insertRule(o, t[a]) && (this.groupSizes[e]++, o++);
|
|
658
|
+
}, e.prototype.clearGroup = function(e) {
|
|
659
|
+
if (e < this.length) {
|
|
660
|
+
var t = this.groupSizes[e], n = this.indexOfGroup(e), r = n + t;
|
|
661
|
+
this.groupSizes[e] = 0;
|
|
662
|
+
for (var i = n; i < r; i++) this.tag.deleteRule(n);
|
|
663
|
+
}
|
|
664
|
+
}, e.prototype.getGroup = function(e) {
|
|
665
|
+
var t = "";
|
|
666
|
+
if (e >= this.length || this.groupSizes[e] === 0) return t;
|
|
667
|
+
for (var n = this.groupSizes[e], r = this.indexOfGroup(e), i = r + n, a = r; a < i; a++) t += `${this.tag.getRule(a)}${g}`;
|
|
668
|
+
return t;
|
|
669
|
+
}, e;
|
|
670
|
+
}(), me = 1 << 30, ye = /* @__PURE__ */ new Map(), ve = /* @__PURE__ */ new Map(), ge = 1, Se = function(e) {
|
|
671
|
+
if (ye.has(e)) return ye.get(e);
|
|
672
|
+
for (; ve.has(ge);) ge++;
|
|
673
|
+
var t = ge++;
|
|
674
|
+
if (process.env.NODE_ENV !== "production" && ((0 | t) < 0 || t > me)) throw he(16, `${t}`);
|
|
675
|
+
return ye.set(e, t), ve.set(t, e), t;
|
|
676
|
+
}, we = function(e, t) {
|
|
677
|
+
ge = t + 1, ye.set(e, t), ve.set(t, e);
|
|
678
|
+
}, be = `style[${f}][${y}="${v}"]`, Ee = RegExp(`^${f}\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)`), Ne = function(e, t, n) {
|
|
679
|
+
for (var r, i = n.split(","), a = 0, o = i.length; a < o; a++) (r = i[a]) && e.registerName(t, r);
|
|
680
|
+
}, Pe = function(e, t) {
|
|
681
|
+
for (var n = (t.textContent ?? "").split(g), r = [], i = 0, a = n.length; i < a; i++) {
|
|
682
|
+
var o = n[i].trim();
|
|
683
|
+
if (o) {
|
|
684
|
+
var s = o.match(Ee);
|
|
685
|
+
if (s) {
|
|
686
|
+
var c = 0 | parseInt(s[1], 10), l = s[2];
|
|
687
|
+
c !== 0 && (we(l, c), Ne(e, l, s[3]), e.getTag().insertRules(c, r)), r.length = 0;
|
|
688
|
+
} else r.push(o);
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
}, _e = function(e) {
|
|
692
|
+
for (var t = document.querySelectorAll(be), n = 0, r = t.length; n < r; n++) {
|
|
693
|
+
var i = t[n];
|
|
694
|
+
i && i.getAttribute(f) !== m && (Pe(e, i), i.parentNode && i.parentNode.removeChild(i));
|
|
695
|
+
}
|
|
696
|
+
};
|
|
697
|
+
function Ce() {
|
|
698
|
+
return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : null;
|
|
699
|
+
}
|
|
700
|
+
var Ie = function(e) {
|
|
701
|
+
var t = document.head, n = e || t, r = document.createElement("style"), i = function(e) {
|
|
702
|
+
var t = Array.from(e.querySelectorAll(`style[${f}]`));
|
|
703
|
+
return t[t.length - 1];
|
|
704
|
+
}(n), a = i === void 0 ? null : i.nextSibling;
|
|
705
|
+
r.setAttribute(f, m), r.setAttribute(y, v);
|
|
706
|
+
var o = Ce();
|
|
707
|
+
return o && r.setAttribute("nonce", o), n.insertBefore(r, a), r;
|
|
708
|
+
}, Ae = function() {
|
|
709
|
+
function e(e) {
|
|
710
|
+
this.element = Ie(e), this.element.appendChild(document.createTextNode("")), this.sheet = function(e) {
|
|
711
|
+
if (e.sheet) return e.sheet;
|
|
712
|
+
for (var t = document.styleSheets, n = 0, r = t.length; n < r; n++) {
|
|
713
|
+
var i = t[n];
|
|
714
|
+
if (i.ownerNode === e) return i;
|
|
715
|
+
}
|
|
716
|
+
throw he(17);
|
|
717
|
+
}(this.element), this.length = 0;
|
|
718
|
+
}
|
|
719
|
+
return e.prototype.insertRule = function(e, t) {
|
|
720
|
+
try {
|
|
721
|
+
return this.sheet.insertRule(t, e), this.length++, !0;
|
|
722
|
+
} catch {
|
|
723
|
+
return !1;
|
|
724
|
+
}
|
|
725
|
+
}, e.prototype.deleteRule = function(e) {
|
|
726
|
+
this.sheet.deleteRule(e), this.length--;
|
|
727
|
+
}, e.prototype.getRule = function(e) {
|
|
728
|
+
var t = this.sheet.cssRules[e];
|
|
729
|
+
return t && t.cssText ? t.cssText : "";
|
|
730
|
+
}, e;
|
|
731
|
+
}(), Oe = function() {
|
|
732
|
+
function e(e) {
|
|
733
|
+
this.element = Ie(e), this.nodes = this.element.childNodes, this.length = 0;
|
|
734
|
+
}
|
|
735
|
+
return e.prototype.insertRule = function(e, t) {
|
|
736
|
+
if (e <= this.length && e >= 0) {
|
|
737
|
+
var n = document.createTextNode(t);
|
|
738
|
+
return this.element.insertBefore(n, this.nodes[e] || null), this.length++, !0;
|
|
739
|
+
}
|
|
740
|
+
return !1;
|
|
741
|
+
}, e.prototype.deleteRule = function(e) {
|
|
742
|
+
this.element.removeChild(this.nodes[e]), this.length--;
|
|
743
|
+
}, e.prototype.getRule = function(e) {
|
|
744
|
+
return e < this.length ? this.nodes[e].textContent : "";
|
|
745
|
+
}, e;
|
|
746
|
+
}(), De = function() {
|
|
747
|
+
function e(e) {
|
|
748
|
+
this.rules = [], this.length = 0;
|
|
749
|
+
}
|
|
750
|
+
return e.prototype.insertRule = function(e, t) {
|
|
751
|
+
return e <= this.length && (this.rules.splice(e, 0, t), this.length++, !0);
|
|
752
|
+
}, e.prototype.deleteRule = function(e) {
|
|
753
|
+
this.rules.splice(e, 1), this.length--;
|
|
754
|
+
}, e.prototype.getRule = function(e) {
|
|
755
|
+
return e < this.length ? this.rules[e] : "";
|
|
756
|
+
}, e;
|
|
757
|
+
}(), Re = S, Te = {
|
|
758
|
+
isServer: !S,
|
|
759
|
+
useCSSOMInjection: !w
|
|
760
|
+
}, ke = function() {
|
|
761
|
+
function e(e, t, n) {
|
|
762
|
+
e === void 0 && (e = C), t === void 0 && (t = {});
|
|
763
|
+
var r = this;
|
|
764
|
+
this.options = __assign(__assign({}, Te), e), this.gs = t, this.names = new Map(n), this.server = !!e.isServer, !this.server && S && Re && (Re = !1, _e(this)), ue(this, function() {
|
|
765
|
+
return function(e) {
|
|
766
|
+
for (var t = e.getTag(), n = t.length, r = "", i = function(n) {
|
|
767
|
+
var i = function(e) {
|
|
768
|
+
return ve.get(e);
|
|
769
|
+
}(n);
|
|
770
|
+
if (i === void 0) return "continue";
|
|
771
|
+
var a = e.names.get(i), o = t.getGroup(n);
|
|
772
|
+
if (a === void 0 || !a.size || o.length === 0) return "continue";
|
|
773
|
+
var s = `${f}.g${n}[id="${i}"]`, c = "";
|
|
774
|
+
a !== void 0 && a.forEach(function(e) {
|
|
775
|
+
e.length > 0 && (c += `${e},`);
|
|
776
|
+
}), r += `${o}${s}{content:"${c}"}${g}`;
|
|
777
|
+
}, a = 0; a < n; a++) i(a);
|
|
778
|
+
return r;
|
|
779
|
+
}(r);
|
|
780
|
+
});
|
|
781
|
+
}
|
|
782
|
+
return e.registerId = function(e) {
|
|
783
|
+
return Se(e);
|
|
784
|
+
}, e.prototype.rehydrate = function() {
|
|
785
|
+
!this.server && S && _e(this);
|
|
786
|
+
}, e.prototype.reconstructWithOptions = function(t, n) {
|
|
787
|
+
return n === void 0 && (n = !0), new e(__assign(__assign({}, this.options), t), this.gs, n && this.names || void 0);
|
|
788
|
+
}, e.prototype.allocateGSInstance = function(e) {
|
|
789
|
+
return this.gs[e] = (this.gs[e] || 0) + 1;
|
|
790
|
+
}, e.prototype.getTag = function() {
|
|
791
|
+
return this.tag ||= (e = function(e) {
|
|
792
|
+
var t = e.useCSSOMInjection, n = e.target;
|
|
793
|
+
return e.isServer ? new De(n) : t ? new Ae(n) : new Oe(n);
|
|
794
|
+
}(this.options), new fe(e));
|
|
795
|
+
var e;
|
|
796
|
+
}, e.prototype.hasNameForId = function(e, t) {
|
|
797
|
+
return this.names.has(e) && this.names.get(e).has(t);
|
|
798
|
+
}, e.prototype.registerName = function(e, t) {
|
|
799
|
+
if (Se(e), this.names.has(e)) this.names.get(e).add(t);
|
|
800
|
+
else {
|
|
801
|
+
var n = /* @__PURE__ */ new Set();
|
|
802
|
+
n.add(t), this.names.set(e, n);
|
|
803
|
+
}
|
|
804
|
+
}, e.prototype.insertRules = function(e, t, n) {
|
|
805
|
+
this.registerName(e, t), this.getTag().insertRules(Se(e), n);
|
|
806
|
+
}, e.prototype.clearNames = function(e) {
|
|
807
|
+
this.names.has(e) && this.names.get(e).clear();
|
|
808
|
+
}, e.prototype.clearRules = function(e) {
|
|
809
|
+
this.getTag().clearGroup(Se(e)), this.clearNames(e);
|
|
810
|
+
}, e.prototype.clearTag = function() {
|
|
811
|
+
this.tag = void 0;
|
|
812
|
+
}, e;
|
|
813
|
+
}(), je = /&/g, xe = /^\s*\/\/.*$/gm;
|
|
814
|
+
function Ve(e, t) {
|
|
815
|
+
return e.map(function(e) {
|
|
816
|
+
return e.type === "rule" && (e.value = `${t} ${e.value}`, e.value = e.value.replaceAll(",", `,${t} `), e.props = e.props.map(function(e) {
|
|
817
|
+
return `${t} ${e}`;
|
|
818
|
+
})), Array.isArray(e.children) && e.type !== "@keyframes" && (e.children = Ve(e.children, t)), e;
|
|
819
|
+
});
|
|
820
|
+
}
|
|
821
|
+
function Fe(e) {
|
|
822
|
+
var t, n, r, i = e === void 0 ? C : e, a = i.options, o = a === void 0 ? C : a, s = i.plugins, c = s === void 0 ? _ : s, l = function(e, r, i) {
|
|
823
|
+
return i.startsWith(n) && i.endsWith(n) && i.replaceAll(n, "").length > 0 ? `.${t}` : e;
|
|
824
|
+
}, u = c.slice();
|
|
825
|
+
u.push(function(e) {
|
|
826
|
+
e.type === "rule" && e.value.includes("&") && (e.props[0] = e.props[0].replace(je, n).replace(r, l));
|
|
827
|
+
}), o.prefix && u.push(prefixer), u.push(stringify);
|
|
828
|
+
var d = function(e, i, a, s) {
|
|
829
|
+
i === void 0 && (i = ""), a === void 0 && (a = ""), s === void 0 && (s = "&"), t = s, n = i, r = RegExp(`\\${n}\\b`, "g");
|
|
830
|
+
var c = e.replace(xe, ""), l = compile(a || i ? `${a} ${i} { ${c} }` : c);
|
|
831
|
+
o.namespace && (l = Ve(l, o.namespace));
|
|
832
|
+
var d = [];
|
|
833
|
+
return serialize(l, middleware(u.concat(rulesheet(function(e) {
|
|
834
|
+
return d.push(e);
|
|
835
|
+
})))), d;
|
|
836
|
+
};
|
|
837
|
+
return d.hash = c.length ? c.reduce(function(e, t) {
|
|
838
|
+
return t.name || he(15), M(e, t.name);
|
|
839
|
+
}, F).toString() : "", d;
|
|
840
|
+
}
|
|
841
|
+
var Me = new ke(), ze = Fe(), $e = React.createContext({
|
|
842
|
+
shouldForwardProp: void 0,
|
|
843
|
+
styleSheet: Me,
|
|
844
|
+
stylis: ze
|
|
845
|
+
});
|
|
846
|
+
$e.Consumer;
|
|
847
|
+
var Le = React.createContext(void 0);
|
|
848
|
+
function Ge() {
|
|
849
|
+
return useContext($e);
|
|
850
|
+
}
|
|
851
|
+
function Ye(e) {
|
|
852
|
+
var t = useState(e.stylisPlugins), n = t[0], r = t[1], i = Ge().styleSheet, o = useMemo(function() {
|
|
853
|
+
var t = i;
|
|
854
|
+
return e.sheet ? t = e.sheet : e.target && (t = t.reconstructWithOptions({ target: e.target }, !1)), e.disableCSSOMInjection && (t = t.reconstructWithOptions({ useCSSOMInjection: !1 })), t;
|
|
855
|
+
}, [
|
|
856
|
+
e.disableCSSOMInjection,
|
|
857
|
+
e.sheet,
|
|
858
|
+
e.target,
|
|
859
|
+
i
|
|
860
|
+
]), s = useMemo(function() {
|
|
861
|
+
return Fe({
|
|
862
|
+
options: {
|
|
863
|
+
namespace: e.namespace,
|
|
864
|
+
prefix: e.enableVendorPrefixes
|
|
865
|
+
},
|
|
866
|
+
plugins: n
|
|
867
|
+
});
|
|
868
|
+
}, [
|
|
869
|
+
e.enableVendorPrefixes,
|
|
870
|
+
e.namespace,
|
|
871
|
+
n
|
|
872
|
+
]);
|
|
873
|
+
useEffect(function() {
|
|
874
|
+
(0, import_shallowequal.default)(n, e.stylisPlugins) || r(e.stylisPlugins);
|
|
875
|
+
}, [e.stylisPlugins]);
|
|
876
|
+
var c = useMemo(function() {
|
|
877
|
+
return {
|
|
878
|
+
shouldForwardProp: e.shouldForwardProp,
|
|
879
|
+
styleSheet: o,
|
|
880
|
+
stylis: s
|
|
881
|
+
};
|
|
882
|
+
}, [
|
|
883
|
+
e.shouldForwardProp,
|
|
884
|
+
o,
|
|
885
|
+
s
|
|
886
|
+
]);
|
|
887
|
+
return React.createElement($e.Provider, { value: c }, React.createElement(Le.Provider, { value: s }, e.children));
|
|
888
|
+
}
|
|
889
|
+
var We = function() {
|
|
890
|
+
function e(e, t) {
|
|
891
|
+
var n = this;
|
|
892
|
+
this.inject = function(e, t) {
|
|
893
|
+
t === void 0 && (t = ze);
|
|
894
|
+
var r = n.name + t.hash;
|
|
895
|
+
e.hasNameForId(n.id, r) || e.insertRules(n.id, r, t(n.rules, r, "@keyframes"));
|
|
896
|
+
}, this.name = e, this.id = `sc-keyframes-${e}`, this.rules = t, ue(this, function() {
|
|
897
|
+
throw he(12, String(n.name));
|
|
898
|
+
});
|
|
899
|
+
}
|
|
900
|
+
return e.prototype.getName = function(e) {
|
|
901
|
+
return e === void 0 && (e = ze), this.name + e.hash;
|
|
902
|
+
}, e;
|
|
903
|
+
}(), qe = function(e) {
|
|
904
|
+
return e >= "A" && e <= "Z";
|
|
905
|
+
};
|
|
906
|
+
function He(e) {
|
|
907
|
+
for (var t = "", n = 0; n < e.length; n++) {
|
|
908
|
+
var r = e[n];
|
|
909
|
+
if (n === 1 && r === "-" && e[0] === "-") return e;
|
|
910
|
+
qe(r) ? t += "-" + r.toLowerCase() : t += r;
|
|
911
|
+
}
|
|
912
|
+
return t.startsWith("ms-") ? "-" + t : t;
|
|
913
|
+
}
|
|
914
|
+
var Ue = function(e) {
|
|
915
|
+
return e == null || !1 === e || e === "";
|
|
916
|
+
}, Je = function(e) {
|
|
917
|
+
var t, n, r = [];
|
|
918
|
+
for (var i in e) {
|
|
919
|
+
var a = e[i];
|
|
920
|
+
e.hasOwnProperty(i) && !Ue(a) && (Array.isArray(a) && a.isCss || re(a) ? r.push(`${He(i)}:`, a, ";") : ce(a) ? r.push.apply(r, __spreadArray(__spreadArray([`${i} {`], Je(a), !1), ["}"], !1)) : r.push(`${He(i)}: ${t = i, (n = a) == null || typeof n == "boolean" || n === "" ? "" : typeof n != "number" || n === 0 || t in unitlessKeys || t.startsWith("--") ? String(n).trim() : `${n}px`};`));
|
|
921
|
+
}
|
|
922
|
+
return r;
|
|
923
|
+
};
|
|
924
|
+
function Xe(e, t, n, r) {
|
|
925
|
+
if (Ue(e)) return [];
|
|
926
|
+
if (se(e)) return [`.${e.styledComponentId}`];
|
|
927
|
+
if (re(e)) {
|
|
928
|
+
if (!re(a = e) || a.prototype && a.prototype.isReactComponent || !t) return [e];
|
|
929
|
+
var i = e(t);
|
|
930
|
+
return process.env.NODE_ENV === "production" || typeof i != "object" || Array.isArray(i) || i instanceof We || ce(i) || i === null || console.error(`${B(e)} is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.`), Xe(i, t, n, r);
|
|
931
|
+
}
|
|
932
|
+
var a;
|
|
933
|
+
return e instanceof We ? n ? (e.inject(n, r), [e.getName(r)]) : [e] : ce(e) ? Je(e) : Array.isArray(e) ? Array.prototype.concat.apply(_, e.map(function(e) {
|
|
934
|
+
return Xe(e, t, n, r);
|
|
935
|
+
})) : [e.toString()];
|
|
936
|
+
}
|
|
937
|
+
function Ze(e) {
|
|
938
|
+
for (var t = 0; t < e.length; t += 1) {
|
|
939
|
+
var n = e[t];
|
|
940
|
+
if (re(n) && !se(n)) return !1;
|
|
941
|
+
}
|
|
942
|
+
return !0;
|
|
943
|
+
}
|
|
944
|
+
var Ke = z(v), Qe = function() {
|
|
945
|
+
function e(e, t, n) {
|
|
946
|
+
this.rules = e, this.staticRulesId = "", this.isStatic = process.env.NODE_ENV === "production" && (n === void 0 || n.isStatic) && Ze(e), this.componentId = t, this.baseHash = M(Ke, t), this.baseStyle = n, ke.registerId(t);
|
|
947
|
+
}
|
|
948
|
+
return e.prototype.generateAndInjectStyles = function(e, t, n) {
|
|
949
|
+
var r = this.baseStyle ? this.baseStyle.generateAndInjectStyles(e, t, n) : "";
|
|
950
|
+
if (this.isStatic && !n.hash) if (this.staticRulesId && t.hasNameForId(this.componentId, this.staticRulesId)) r = ie(r, this.staticRulesId);
|
|
951
|
+
else {
|
|
952
|
+
var i = ae(Xe(this.rules, e, t, n)), a = x(M(this.baseHash, i) >>> 0);
|
|
953
|
+
if (!t.hasNameForId(this.componentId, a)) {
|
|
954
|
+
var o = n(i, `.${a}`, void 0, this.componentId);
|
|
955
|
+
t.insertRules(this.componentId, a, o);
|
|
956
|
+
}
|
|
957
|
+
r = ie(r, a), this.staticRulesId = a;
|
|
958
|
+
}
|
|
959
|
+
else {
|
|
960
|
+
for (var s = M(this.baseHash, n.hash), c = "", l = 0; l < this.rules.length; l++) {
|
|
961
|
+
var u = this.rules[l];
|
|
962
|
+
if (typeof u == "string") c += u, process.env.NODE_ENV !== "production" && (s = M(s, u));
|
|
963
|
+
else if (u) {
|
|
964
|
+
var d = ae(Xe(u, e, t, n));
|
|
965
|
+
s = M(s, d + l), c += d;
|
|
966
|
+
}
|
|
967
|
+
}
|
|
968
|
+
if (c) {
|
|
969
|
+
var _i = x(s >>> 0);
|
|
970
|
+
t.hasNameForId(this.componentId, _i) || t.insertRules(this.componentId, _i, n(c, `.${_i}`, void 0, this.componentId)), r = ie(r, _i);
|
|
971
|
+
}
|
|
972
|
+
}
|
|
973
|
+
return r;
|
|
974
|
+
}, e;
|
|
975
|
+
}(), et = React.createContext(void 0);
|
|
976
|
+
et.Consumer;
|
|
977
|
+
var rt = {}, st = /* @__PURE__ */ new Set();
|
|
978
|
+
function it(e, t, n) {
|
|
979
|
+
var r = se(e), i = e, o = !L(e), c = t.attrs, u = c === void 0 ? _ : c, d = t.componentId, _i = d === void 0 ? function(e, t) {
|
|
980
|
+
var n = typeof e == "string" ? R(e) : "sc";
|
|
981
|
+
rt[n] = (rt[n] || 0) + 1;
|
|
982
|
+
var r = `${n}-${$(v + n + rt[n])}`;
|
|
983
|
+
return t ? `${t}-${r}` : r;
|
|
984
|
+
}(t.displayName, t.parentComponentId) : d, vi = t.displayName, yi = vi === void 0 ? function(e) {
|
|
985
|
+
return L(e) ? `styled.${e}` : `Styled(${B(e)})`;
|
|
986
|
+
}(e) : vi, bi = t.displayName && t.componentId ? `${R(t.displayName)}-${t.componentId}` : t.componentId || _i, xi = r && i.attrs ? i.attrs.concat(u).filter(Boolean) : u, p = t.shouldForwardProp;
|
|
987
|
+
if (r && i.shouldForwardProp) {
|
|
988
|
+
var Ci = i.shouldForwardProp;
|
|
989
|
+
if (t.shouldForwardProp) {
|
|
990
|
+
var h = t.shouldForwardProp;
|
|
991
|
+
p = function(e, t) {
|
|
992
|
+
return Ci(e, t) && h(e, t);
|
|
993
|
+
};
|
|
994
|
+
} else p = Ci;
|
|
995
|
+
}
|
|
996
|
+
var Ti = new Qe(n, bi, r ? i.componentStyle : void 0);
|
|
997
|
+
function b(e, t) {
|
|
998
|
+
return function(e, t, n) {
|
|
999
|
+
var r = e.attrs, i = e.componentStyle, o = e.defaultProps, c = e.foldedComponentIds, u = e.styledComponentId, d = e.target, _i = React.useContext(et), vi = Ge(), yi = e.shouldForwardProp || vi.shouldForwardProp;
|
|
1000
|
+
process.env.NODE_ENV !== "production" && useDebugValue(u);
|
|
1001
|
+
var bi = I(t, _i, o) || C, xi = function(e, t, n) {
|
|
1002
|
+
for (var r, i = __assign(__assign({}, t), {
|
|
1003
|
+
className: void 0,
|
|
1004
|
+
theme: n
|
|
1005
|
+
}), a = 0; a < e.length; a += 1) {
|
|
1006
|
+
var o = re(r = e[a]) ? r(i) : r;
|
|
1007
|
+
for (var s in o) i[s] = s === "className" ? ie(i[s], o[s]) : s === "style" ? __assign(__assign({}, i[s]), o[s]) : o[s];
|
|
1008
|
+
}
|
|
1009
|
+
return t.className && (i.className = ie(i.className, t.className)), i;
|
|
1010
|
+
}(r, t, bi), p = xi.as || d, Ci = {};
|
|
1011
|
+
for (var h in xi) xi[h] === void 0 || h[0] === "$" || h === "as" || h === "theme" && xi.theme === bi || (h === "forwardedAs" ? Ci.as = xi.forwardedAs : yi && !yi(h, p) || (Ci[h] = xi[h], yi || process.env.NODE_ENV !== "development" || isPropValid(h) || st.has(h) || !A.has(p) || (st.add(h), console.warn(`styled-components: it looks like an unknown prop "${h}" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via \`<StyleSheetManager shouldForwardProp={...}>\` (connect an API like \`@emotion/is-prop-valid\`) or consider using transient props (\`\$\` prefix for automatic filtering.)`))));
|
|
1012
|
+
var Ti = function(e, t) {
|
|
1013
|
+
var n = Ge(), r = e.generateAndInjectStyles(t, n.styleSheet, n.stylis);
|
|
1014
|
+
return process.env.NODE_ENV !== "production" && useDebugValue(r), r;
|
|
1015
|
+
}(i, xi);
|
|
1016
|
+
process.env.NODE_ENV !== "production" && e.warnTooManyClasses && e.warnTooManyClasses(Ti);
|
|
1017
|
+
var b = ie(c, u);
|
|
1018
|
+
return Ti && (b += " " + Ti), xi.className && (b += " " + xi.className), Ci[L(p) && !A.has(p) ? "class" : "className"] = b, n && (Ci.ref = n), createElement(p, Ci);
|
|
1019
|
+
}(Ei, e, t);
|
|
1020
|
+
}
|
|
1021
|
+
b.displayName = yi;
|
|
1022
|
+
var Ei = React.forwardRef(b);
|
|
1023
|
+
return Ei.attrs = xi, Ei.componentStyle = Ti, Ei.displayName = yi, Ei.shouldForwardProp = p, Ei.foldedComponentIds = r ? ie(i.foldedComponentIds, i.styledComponentId) : "", Ei.styledComponentId = bi, Ei.target = r ? i.target : e, Object.defineProperty(Ei, "defaultProps", {
|
|
1024
|
+
get: function() {
|
|
1025
|
+
return this._foldedDefaultProps;
|
|
1026
|
+
},
|
|
1027
|
+
set: function(e) {
|
|
1028
|
+
this._foldedDefaultProps = r ? function(e) {
|
|
1029
|
+
for (var t = [...arguments].slice(1), n = 0, r = t; n < r.length; n++) le(e, r[n], !0);
|
|
1030
|
+
return e;
|
|
1031
|
+
}({}, i.defaultProps, e) : e;
|
|
1032
|
+
}
|
|
1033
|
+
}), process.env.NODE_ENV !== "production" && (P(yi, bi), Ei.warnTooManyClasses = function(e, t) {
|
|
1034
|
+
var n = {}, r = !1;
|
|
1035
|
+
return function(i) {
|
|
1036
|
+
if (!r && (n[i] = !0, Object.keys(n).length >= 200)) {
|
|
1037
|
+
var a = t ? ` with the id of "${t}"` : "";
|
|
1038
|
+
console.warn(`Over 200 classes were generated for component ${e}${a}.
|
|
1039
|
+
Consider using the attrs method, together with a style object for frequently changed styles.
|
|
1040
|
+
Example:
|
|
1041
|
+
const Component = styled.div.attrs(props => ({
|
|
1042
|
+
style: {
|
|
1043
|
+
background: props.background,
|
|
1044
|
+
},
|
|
1045
|
+
}))\`width: 100%;\`
|
|
1046
|
+
|
|
1047
|
+
<Component />`), r = !0, n = {};
|
|
1048
|
+
}
|
|
1049
|
+
};
|
|
1050
|
+
}(yi, bi)), ue(Ei, function() {
|
|
1051
|
+
return `.${Ei.styledComponentId}`;
|
|
1052
|
+
}), o && oe(Ei, e, {
|
|
1053
|
+
attrs: !0,
|
|
1054
|
+
componentStyle: !0,
|
|
1055
|
+
displayName: !0,
|
|
1056
|
+
foldedComponentIds: !0,
|
|
1057
|
+
shouldForwardProp: !0,
|
|
1058
|
+
styledComponentId: !0,
|
|
1059
|
+
target: !0
|
|
1060
|
+
}), Ei;
|
|
1061
|
+
}
|
|
1062
|
+
function at(e, t) {
|
|
1063
|
+
for (var n = [e[0]], r = 0, i = t.length; r < i; r += 1) n.push(t[r], e[r + 1]);
|
|
1064
|
+
return n;
|
|
1065
|
+
}
|
|
1066
|
+
var ct = function(e) {
|
|
1067
|
+
return Object.assign(e, { isCss: !0 });
|
|
1068
|
+
};
|
|
1069
|
+
function lt(e) {
|
|
1070
|
+
var t = [...arguments].slice(1);
|
|
1071
|
+
if (re(e) || ce(e)) return ct(Xe(at(_, __spreadArray([e], t, !0))));
|
|
1072
|
+
var n = e;
|
|
1073
|
+
return t.length === 0 && n.length === 1 && typeof n[0] == "string" ? Xe(n) : ct(Xe(at(n, t)));
|
|
1074
|
+
}
|
|
1075
|
+
function ut(e, t, n) {
|
|
1076
|
+
if (n === void 0 && (n = C), !t) throw he(1, t);
|
|
1077
|
+
var r = function(r) {
|
|
1078
|
+
var i = [...arguments].slice(1);
|
|
1079
|
+
return e(t, n, lt.apply(void 0, __spreadArray([r], i, !1)));
|
|
1080
|
+
};
|
|
1081
|
+
return r.attrs = function(r) {
|
|
1082
|
+
return ut(e, t, __assign(__assign({}, n), { attrs: Array.prototype.concat(n.attrs, r).filter(Boolean) }));
|
|
1083
|
+
}, r.withConfig = function(r) {
|
|
1084
|
+
return ut(e, t, __assign(__assign({}, n), r));
|
|
1085
|
+
}, r;
|
|
1086
|
+
}
|
|
1087
|
+
var pt = function(e) {
|
|
1088
|
+
return ut(it, e);
|
|
1089
|
+
}, dt = pt;
|
|
1090
|
+
A.forEach(function(e) {
|
|
1091
|
+
dt[e] = pt(e);
|
|
1092
|
+
}), function() {
|
|
1093
|
+
function e(e, t) {
|
|
1094
|
+
this.rules = e, this.componentId = t, this.isStatic = Ze(e), ke.registerId(this.componentId + 1);
|
|
1095
|
+
}
|
|
1096
|
+
return e.prototype.createStyles = function(e, t, n, r) {
|
|
1097
|
+
var i = r(ae(Xe(this.rules, t, n, r)), ""), a = this.componentId + e;
|
|
1098
|
+
n.insertRules(a, a, i);
|
|
1099
|
+
}, e.prototype.removeStyles = function(e, t) {
|
|
1100
|
+
t.clearRules(this.componentId + e);
|
|
1101
|
+
}, e.prototype.renderStyles = function(e, t, n, r) {
|
|
1102
|
+
e > 2 && ke.registerId(this.componentId + e), this.removeStyles(e, n), this.createStyles(e, t, n, r);
|
|
1103
|
+
}, e;
|
|
1104
|
+
}(), function() {
|
|
1105
|
+
function e() {
|
|
1106
|
+
var e = this;
|
|
1107
|
+
this._emitSheetCSS = function() {
|
|
1108
|
+
var t = e.instance.toString();
|
|
1109
|
+
if (!t) return "";
|
|
1110
|
+
var n = Ce();
|
|
1111
|
+
return `<style ${ae([
|
|
1112
|
+
n && `nonce="${n}"`,
|
|
1113
|
+
`${f}="true"`,
|
|
1114
|
+
`${y}="${v}"`
|
|
1115
|
+
].filter(Boolean), " ")}>${t}</style>`;
|
|
1116
|
+
}, this.getStyleTags = function() {
|
|
1117
|
+
if (e.sealed) throw he(2);
|
|
1118
|
+
return e._emitSheetCSS();
|
|
1119
|
+
}, this.getStyleElement = function() {
|
|
1120
|
+
var t;
|
|
1121
|
+
if (e.sealed) throw he(2);
|
|
1122
|
+
var n = e.instance.toString();
|
|
1123
|
+
if (!n) return [];
|
|
1124
|
+
var r = ((t = {})[f] = "", t[y] = v, t.dangerouslySetInnerHTML = { __html: n }, t), i = Ce();
|
|
1125
|
+
return i && (r.nonce = i), [React.createElement("style", __assign({}, r, { key: "sc-0-0" }))];
|
|
1126
|
+
}, this.seal = function() {
|
|
1127
|
+
e.sealed = !0;
|
|
1128
|
+
}, this.instance = new ke({ isServer: !0 }), this.sealed = !1;
|
|
1129
|
+
}
|
|
1130
|
+
return e.prototype.collectStyles = function(e) {
|
|
1131
|
+
if (this.sealed) throw he(2);
|
|
1132
|
+
return React.createElement(Ye, { sheet: this.instance }, e);
|
|
1133
|
+
}, e.prototype.interleaveWithNodeStream = function(e) {
|
|
1134
|
+
throw he(3);
|
|
1135
|
+
}, e;
|
|
1136
|
+
}(), process.env.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native");
|
|
1137
|
+
var St = `__sc-${f}__`;
|
|
1138
|
+
process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && typeof window < "u" && (window[St] || (window[St] = 0), window[St] === 1 && console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."), window[St] += 1);
|
|
1139
|
+
var import_jsx_runtime = require_jsx_runtime();
|
|
1140
|
+
function getEuiIconType(e) {
|
|
1141
|
+
switch (e) {
|
|
1142
|
+
case "field": return "kqlField";
|
|
1143
|
+
case "value": return "kqlValue";
|
|
1144
|
+
case "recentSearch": return "search";
|
|
1145
|
+
case "conjunction": return "kqlSelector";
|
|
1146
|
+
case "operator": return "kqlOperand";
|
|
1147
|
+
default: throw Error(`Unknown type: ${e}`);
|
|
1148
|
+
}
|
|
1149
|
+
}
|
|
1150
|
+
function SuggestionComponent(e) {
|
|
1151
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
1152
|
+
className: (0, import_classnames$1.default)({
|
|
1153
|
+
kbnTypeahead__item: !0,
|
|
1154
|
+
active: e.selected
|
|
1155
|
+
}),
|
|
1156
|
+
role: "option",
|
|
1157
|
+
onClick: () => e.onClick(e.suggestion),
|
|
1158
|
+
onMouseEnter: e.onMouseEnter,
|
|
1159
|
+
ref: e.innerRef,
|
|
1160
|
+
id: e.ariaId,
|
|
1161
|
+
"aria-selected": e.selected,
|
|
1162
|
+
"data-test-subj": `autocompleteSuggestion-${e.suggestion.type}-${e.suggestion.text.replace(/\s/g, "-")}`,
|
|
1163
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
1164
|
+
className: "kbnSuggestionItem kbnSuggestionItem--" + e.suggestion.type,
|
|
1165
|
+
children: [
|
|
1166
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
1167
|
+
className: "kbnSuggestionItem__type",
|
|
1168
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EuiIcon, { type: getEuiIconType(e.suggestion.type) })
|
|
1169
|
+
}),
|
|
1170
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
1171
|
+
className: "kbnSuggestionItem__text",
|
|
1172
|
+
"data-test-subj": "autoCompleteSuggestionText",
|
|
1173
|
+
children: e.suggestion.text
|
|
1174
|
+
}),
|
|
1175
|
+
e.shouldDisplayDescription && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
1176
|
+
className: "kbnSuggestionItem__description",
|
|
1177
|
+
children: e.suggestion.description
|
|
1178
|
+
})
|
|
1179
|
+
]
|
|
1180
|
+
})
|
|
1181
|
+
});
|
|
1182
|
+
}
|
|
1183
|
+
var import_classnames = /* @__PURE__ */ __toESM(require_classnames(), 1), SuggestionsComponent = class extends Component {
|
|
1184
|
+
childNodes = [];
|
|
1185
|
+
parentNode = null;
|
|
1186
|
+
render() {
|
|
1187
|
+
if (!this.props.queryBarRect || !this.props.show || (0, import_lodash.isEmpty)(this.props.suggestions)) return null;
|
|
1188
|
+
let e = this.props.suggestions.map((e, t) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SuggestionComponent, {
|
|
1189
|
+
innerRef: (e) => this.childNodes[t] = e,
|
|
1190
|
+
selected: t === this.props.index,
|
|
1191
|
+
suggestion: e,
|
|
1192
|
+
onClick: this.props.onClick,
|
|
1193
|
+
onMouseEnter: () => this.props.onMouseEnter(t),
|
|
1194
|
+
ariaId: "suggestion-" + t,
|
|
1195
|
+
shouldDisplayDescription: !1
|
|
1196
|
+
}, `${e.type} - ${e.text}`)), t = document.documentElement.clientHeight || window.innerHeight, { queryBarRect: n } = this.props, r = t - (n.top + n.height) > 250;
|
|
1197
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyledSuggestionsListDiv, {
|
|
1198
|
+
queryBarRect: n,
|
|
1199
|
+
verticalListPosition: r ? `top: ${window.scrollY + n.bottom + 12}px;` : `bottom: ${t - (window.scrollY + n.top)}px;`,
|
|
1200
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
1201
|
+
className: (0, import_classnames.default)("kbnTypeahead", { "kbnTypeahead--small": this.props.size === "s" }),
|
|
1202
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
1203
|
+
className: (0, import_classnames.default)("kbnTypeahead__popover rounded-6px", {
|
|
1204
|
+
"kbnTypeahead__popover--bottom": r,
|
|
1205
|
+
"kbnTypeahead__popover--top": !r
|
|
1206
|
+
}),
|
|
1207
|
+
style: {
|
|
1208
|
+
border: 0,
|
|
1209
|
+
boxShadow: "0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05)"
|
|
1210
|
+
},
|
|
1211
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
1212
|
+
id: "kbnTypeahead__items",
|
|
1213
|
+
role: "listbox",
|
|
1214
|
+
ref: (e) => this.parentNode = e,
|
|
1215
|
+
onScroll: this.handleScroll,
|
|
1216
|
+
children: e
|
|
1217
|
+
})
|
|
1218
|
+
})
|
|
1219
|
+
})
|
|
1220
|
+
});
|
|
1221
|
+
}
|
|
1222
|
+
componentDidUpdate(e) {
|
|
1223
|
+
e.index !== this.props.index && this.scrollIntoView();
|
|
1224
|
+
}
|
|
1225
|
+
scrollIntoView = () => {
|
|
1226
|
+
if (this.props.index === null) return;
|
|
1227
|
+
let e = this.parentNode, t = this.childNodes[this.props.index];
|
|
1228
|
+
this.props.index == null || !e || !t || (e.scrollTop = Math.max(Math.min(e.scrollTop, t.offsetTop), t.offsetTop + t.offsetHeight - e.offsetHeight));
|
|
1229
|
+
};
|
|
1230
|
+
handleScroll = () => {
|
|
1231
|
+
if (!this.props.loadMore || !this.parentNode) return;
|
|
1232
|
+
let e = this.parentNode.scrollTop + this.parentNode.offsetHeight, t = this.parentNode.scrollHeight, n = t - e;
|
|
1233
|
+
!t || !e || n <= 50 && this.props.loadMore();
|
|
1234
|
+
};
|
|
1235
|
+
}, StyledSuggestionsListDiv = dt.div`
|
|
1236
|
+
${(e) => `
|
|
1237
|
+
position: absolute;
|
|
1238
|
+
z-index: 4001;
|
|
1239
|
+
left: ${e.queryBarRect.left}px;
|
|
1240
|
+
width: ${e.queryBarRect.width}px;
|
|
1241
|
+
${e.verticalListPosition}`}
|
|
1242
|
+
`;
|
|
1243
|
+
export { SuggestionsComponent as default };
|