@manamerge/mana-atomic-ui 0.0.16 → 0.0.18

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/cjs/index.js CHANGED
@@ -2806,4 +2806,937 @@ const Button = ({ label }) => {
2806
2806
  return React.createElement("button", null, label);
2807
2807
  };
2808
2808
 
2809
+ /******************************************************************************
2810
+ Copyright (c) Microsoft Corporation.
2811
+
2812
+ Permission to use, copy, modify, and/or distribute this software for any
2813
+ purpose with or without fee is hereby granted.
2814
+
2815
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
2816
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
2817
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
2818
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
2819
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
2820
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
2821
+ PERFORMANCE OF THIS SOFTWARE.
2822
+ ***************************************************************************** */
2823
+ /* global Reflect, Promise, SuppressedError, Symbol */
2824
+
2825
+
2826
+ var __assign = function() {
2827
+ __assign = Object.assign || function __assign(t) {
2828
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
2829
+ s = arguments[i];
2830
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
2831
+ }
2832
+ return t;
2833
+ };
2834
+ return __assign.apply(this, arguments);
2835
+ };
2836
+
2837
+ function __spreadArray(to, from, pack) {
2838
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
2839
+ if (ar || !(i in from)) {
2840
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
2841
+ ar[i] = from[i];
2842
+ }
2843
+ }
2844
+ return to.concat(ar || Array.prototype.slice.call(from));
2845
+ }
2846
+
2847
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
2848
+ var e = new Error(message);
2849
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
2850
+ };
2851
+
2852
+ function memoize(fn) {
2853
+ var cache = Object.create(null);
2854
+ return function (arg) {
2855
+ if (cache[arg] === undefined) cache[arg] = fn(arg);
2856
+ return cache[arg];
2857
+ };
2858
+ }
2859
+
2860
+ 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)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23
2861
+
2862
+ var isPropValid = /* #__PURE__ */memoize(function (prop) {
2863
+ return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111
2864
+ /* o */
2865
+ && prop.charCodeAt(1) === 110
2866
+ /* n */
2867
+ && prop.charCodeAt(2) < 91;
2868
+ }
2869
+ /* Z+1 */
2870
+ );
2871
+
2872
+ var MS = '-ms-';
2873
+ var MOZ = '-moz-';
2874
+ var WEBKIT = '-webkit-';
2875
+
2876
+ var COMMENT = 'comm';
2877
+ var RULESET = 'rule';
2878
+ var DECLARATION = 'decl';
2879
+ var IMPORT = '@import';
2880
+ var KEYFRAMES = '@keyframes';
2881
+ var LAYER = '@layer';
2882
+
2883
+ /**
2884
+ * @param {number}
2885
+ * @return {number}
2886
+ */
2887
+ var abs = Math.abs;
2888
+
2889
+ /**
2890
+ * @param {number}
2891
+ * @return {string}
2892
+ */
2893
+ var from = String.fromCharCode;
2894
+
2895
+ /**
2896
+ * @param {object}
2897
+ * @return {object}
2898
+ */
2899
+ var assign = Object.assign;
2900
+
2901
+ /**
2902
+ * @param {string} value
2903
+ * @param {number} length
2904
+ * @return {number}
2905
+ */
2906
+ function hash (value, length) {
2907
+ return charat(value, 0) ^ 45 ? (((((((length << 2) ^ charat(value, 0)) << 2) ^ charat(value, 1)) << 2) ^ charat(value, 2)) << 2) ^ charat(value, 3) : 0
2908
+ }
2909
+
2910
+ /**
2911
+ * @param {string} value
2912
+ * @return {string}
2913
+ */
2914
+ function trim (value) {
2915
+ return value.trim()
2916
+ }
2917
+
2918
+ /**
2919
+ * @param {string} value
2920
+ * @param {RegExp} pattern
2921
+ * @return {string?}
2922
+ */
2923
+ function match (value, pattern) {
2924
+ return (value = pattern.exec(value)) ? value[0] : value
2925
+ }
2926
+
2927
+ /**
2928
+ * @param {string} value
2929
+ * @param {(string|RegExp)} pattern
2930
+ * @param {string} replacement
2931
+ * @return {string}
2932
+ */
2933
+ function replace (value, pattern, replacement) {
2934
+ return value.replace(pattern, replacement)
2935
+ }
2936
+
2937
+ /**
2938
+ * @param {string} value
2939
+ * @param {string} search
2940
+ * @param {number} position
2941
+ * @return {number}
2942
+ */
2943
+ function indexof (value, search, position) {
2944
+ return value.indexOf(search, position)
2945
+ }
2946
+
2947
+ /**
2948
+ * @param {string} value
2949
+ * @param {number} index
2950
+ * @return {number}
2951
+ */
2952
+ function charat (value, index) {
2953
+ return value.charCodeAt(index) | 0
2954
+ }
2955
+
2956
+ /**
2957
+ * @param {string} value
2958
+ * @param {number} begin
2959
+ * @param {number} end
2960
+ * @return {string}
2961
+ */
2962
+ function substr (value, begin, end) {
2963
+ return value.slice(begin, end)
2964
+ }
2965
+
2966
+ /**
2967
+ * @param {string} value
2968
+ * @return {number}
2969
+ */
2970
+ function strlen (value) {
2971
+ return value.length
2972
+ }
2973
+
2974
+ /**
2975
+ * @param {any[]} value
2976
+ * @return {number}
2977
+ */
2978
+ function sizeof (value) {
2979
+ return value.length
2980
+ }
2981
+
2982
+ /**
2983
+ * @param {any} value
2984
+ * @param {any[]} array
2985
+ * @return {any}
2986
+ */
2987
+ function append (value, array) {
2988
+ return array.push(value), value
2989
+ }
2990
+
2991
+ /**
2992
+ * @param {string[]} array
2993
+ * @param {function} callback
2994
+ * @return {string}
2995
+ */
2996
+ function combine (array, callback) {
2997
+ return array.map(callback).join('')
2998
+ }
2999
+
3000
+ /**
3001
+ * @param {string[]} array
3002
+ * @param {RegExp} pattern
3003
+ * @return {string[]}
3004
+ */
3005
+ function filter (array, pattern) {
3006
+ return array.filter(function (value) { return !match(value, pattern) })
3007
+ }
3008
+
3009
+ var line = 1;
3010
+ var column = 1;
3011
+ var length = 0;
3012
+ var position = 0;
3013
+ var character = 0;
3014
+ var characters = '';
3015
+
3016
+ /**
3017
+ * @param {string} value
3018
+ * @param {object | null} root
3019
+ * @param {object | null} parent
3020
+ * @param {string} type
3021
+ * @param {string[] | string} props
3022
+ * @param {object[] | string} children
3023
+ * @param {object[]} siblings
3024
+ * @param {number} length
3025
+ */
3026
+ function node (value, root, parent, type, props, children, length, siblings) {
3027
+ return {value: value, root: root, parent: parent, type: type, props: props, children: children, line: line, column: column, length: length, return: '', siblings: siblings}
3028
+ }
3029
+
3030
+ /**
3031
+ * @param {object} root
3032
+ * @param {object} props
3033
+ * @return {object}
3034
+ */
3035
+ function copy (root, props) {
3036
+ return assign(node('', null, null, '', null, null, 0, root.siblings), root, {length: -root.length}, props)
3037
+ }
3038
+
3039
+ /**
3040
+ * @param {object} root
3041
+ */
3042
+ function lift (root) {
3043
+ while (root.root)
3044
+ root = copy(root.root, {children: [root]});
3045
+
3046
+ append(root, root.siblings);
3047
+ }
3048
+
3049
+ /**
3050
+ * @return {number}
3051
+ */
3052
+ function char () {
3053
+ return character
3054
+ }
3055
+
3056
+ /**
3057
+ * @return {number}
3058
+ */
3059
+ function prev () {
3060
+ character = position > 0 ? charat(characters, --position) : 0;
3061
+
3062
+ if (column--, character === 10)
3063
+ column = 1, line--;
3064
+
3065
+ return character
3066
+ }
3067
+
3068
+ /**
3069
+ * @return {number}
3070
+ */
3071
+ function next () {
3072
+ character = position < length ? charat(characters, position++) : 0;
3073
+
3074
+ if (column++, character === 10)
3075
+ column = 1, line++;
3076
+
3077
+ return character
3078
+ }
3079
+
3080
+ /**
3081
+ * @return {number}
3082
+ */
3083
+ function peek () {
3084
+ return charat(characters, position)
3085
+ }
3086
+
3087
+ /**
3088
+ * @return {number}
3089
+ */
3090
+ function caret () {
3091
+ return position
3092
+ }
3093
+
3094
+ /**
3095
+ * @param {number} begin
3096
+ * @param {number} end
3097
+ * @return {string}
3098
+ */
3099
+ function slice (begin, end) {
3100
+ return substr(characters, begin, end)
3101
+ }
3102
+
3103
+ /**
3104
+ * @param {number} type
3105
+ * @return {number}
3106
+ */
3107
+ function token (type) {
3108
+ switch (type) {
3109
+ // \0 \t \n \r \s whitespace token
3110
+ case 0: case 9: case 10: case 13: case 32:
3111
+ return 5
3112
+ // ! + , / > @ ~ isolate token
3113
+ case 33: case 43: case 44: case 47: case 62: case 64: case 126:
3114
+ // ; { } breakpoint token
3115
+ case 59: case 123: case 125:
3116
+ return 4
3117
+ // : accompanied token
3118
+ case 58:
3119
+ return 3
3120
+ // " ' ( [ opening delimit token
3121
+ case 34: case 39: case 40: case 91:
3122
+ return 2
3123
+ // ) ] closing delimit token
3124
+ case 41: case 93:
3125
+ return 1
3126
+ }
3127
+
3128
+ return 0
3129
+ }
3130
+
3131
+ /**
3132
+ * @param {string} value
3133
+ * @return {any[]}
3134
+ */
3135
+ function alloc (value) {
3136
+ return line = column = 1, length = strlen(characters = value), position = 0, []
3137
+ }
3138
+
3139
+ /**
3140
+ * @param {any} value
3141
+ * @return {any}
3142
+ */
3143
+ function dealloc (value) {
3144
+ return characters = '', value
3145
+ }
3146
+
3147
+ /**
3148
+ * @param {number} type
3149
+ * @return {string}
3150
+ */
3151
+ function delimit (type) {
3152
+ return trim(slice(position - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type)))
3153
+ }
3154
+
3155
+ /**
3156
+ * @param {number} type
3157
+ * @return {string}
3158
+ */
3159
+ function whitespace (type) {
3160
+ while (character = peek())
3161
+ if (character < 33)
3162
+ next();
3163
+ else
3164
+ break
3165
+
3166
+ return token(type) > 2 || token(character) > 3 ? '' : ' '
3167
+ }
3168
+
3169
+ /**
3170
+ * @param {number} index
3171
+ * @param {number} count
3172
+ * @return {string}
3173
+ */
3174
+ function escaping (index, count) {
3175
+ while (--count && next())
3176
+ // not 0-9 A-F a-f
3177
+ if (character < 48 || character > 102 || (character > 57 && character < 65) || (character > 70 && character < 97))
3178
+ break
3179
+
3180
+ return slice(index, caret() + (count < 6 && peek() == 32 && next() == 32))
3181
+ }
3182
+
3183
+ /**
3184
+ * @param {number} type
3185
+ * @return {number}
3186
+ */
3187
+ function delimiter (type) {
3188
+ while (next())
3189
+ switch (character) {
3190
+ // ] ) " '
3191
+ case type:
3192
+ return position
3193
+ // " '
3194
+ case 34: case 39:
3195
+ if (type !== 34 && type !== 39)
3196
+ delimiter(character);
3197
+ break
3198
+ // (
3199
+ case 40:
3200
+ if (type === 41)
3201
+ delimiter(type);
3202
+ break
3203
+ // \
3204
+ case 92:
3205
+ next();
3206
+ break
3207
+ }
3208
+
3209
+ return position
3210
+ }
3211
+
3212
+ /**
3213
+ * @param {number} type
3214
+ * @param {number} index
3215
+ * @return {number}
3216
+ */
3217
+ function commenter (type, index) {
3218
+ while (next())
3219
+ // //
3220
+ if (type + character === 47 + 10)
3221
+ break
3222
+ // /*
3223
+ else if (type + character === 42 + 42 && peek() === 47)
3224
+ break
3225
+
3226
+ return '/*' + slice(index, position - 1) + '*' + from(type === 47 ? type : next())
3227
+ }
3228
+
3229
+ /**
3230
+ * @param {number} index
3231
+ * @return {string}
3232
+ */
3233
+ function identifier (index) {
3234
+ while (!token(peek()))
3235
+ next();
3236
+
3237
+ return slice(index, position)
3238
+ }
3239
+
3240
+ /**
3241
+ * @param {string} value
3242
+ * @return {object[]}
3243
+ */
3244
+ function compile (value) {
3245
+ return dealloc(parse('', null, null, null, [''], value = alloc(value), 0, [0], value))
3246
+ }
3247
+
3248
+ /**
3249
+ * @param {string} value
3250
+ * @param {object} root
3251
+ * @param {object?} parent
3252
+ * @param {string[]} rule
3253
+ * @param {string[]} rules
3254
+ * @param {string[]} rulesets
3255
+ * @param {number[]} pseudo
3256
+ * @param {number[]} points
3257
+ * @param {string[]} declarations
3258
+ * @return {object}
3259
+ */
3260
+ function parse (value, root, parent, rule, rules, rulesets, pseudo, points, declarations) {
3261
+ var index = 0;
3262
+ var offset = 0;
3263
+ var length = pseudo;
3264
+ var atrule = 0;
3265
+ var property = 0;
3266
+ var previous = 0;
3267
+ var variable = 1;
3268
+ var scanning = 1;
3269
+ var ampersand = 1;
3270
+ var character = 0;
3271
+ var type = '';
3272
+ var props = rules;
3273
+ var children = rulesets;
3274
+ var reference = rule;
3275
+ var characters = type;
3276
+
3277
+ while (scanning)
3278
+ switch (previous = character, character = next()) {
3279
+ // (
3280
+ case 40:
3281
+ if (previous != 108 && charat(characters, length - 1) == 58) {
3282
+ if (indexof(characters += replace(delimit(character), '&', '&\f'), '&\f', abs(index ? points[index - 1] : 0)) != -1)
3283
+ ampersand = -1;
3284
+ break
3285
+ }
3286
+ // " ' [
3287
+ case 34: case 39: case 91:
3288
+ characters += delimit(character);
3289
+ break
3290
+ // \t \n \r \s
3291
+ case 9: case 10: case 13: case 32:
3292
+ characters += whitespace(previous);
3293
+ break
3294
+ // \
3295
+ case 92:
3296
+ characters += escaping(caret() - 1, 7);
3297
+ continue
3298
+ // /
3299
+ case 47:
3300
+ switch (peek()) {
3301
+ case 42: case 47:
3302
+ append(comment(commenter(next(), caret()), root, parent, declarations), declarations);
3303
+ break
3304
+ default:
3305
+ characters += '/';
3306
+ }
3307
+ break
3308
+ // {
3309
+ case 123 * variable:
3310
+ points[index++] = strlen(characters) * ampersand;
3311
+ // } ; \0
3312
+ case 125 * variable: case 59: case 0:
3313
+ switch (character) {
3314
+ // \0 }
3315
+ case 0: case 125: scanning = 0;
3316
+ // ;
3317
+ case 59 + offset: if (ampersand == -1) characters = replace(characters, /\f/g, '');
3318
+ if (property > 0 && (strlen(characters) - length))
3319
+ append(property > 32 ? declaration(characters + ';', rule, parent, length - 1, declarations) : declaration(replace(characters, ' ', '') + ';', rule, parent, length - 2, declarations), declarations);
3320
+ break
3321
+ // @ ;
3322
+ case 59: characters += ';';
3323
+ // { rule/at-rule
3324
+ default:
3325
+ append(reference = ruleset(characters, root, parent, index, offset, rules, points, type, props = [], children = [], length, rulesets), rulesets);
3326
+
3327
+ if (character === 123)
3328
+ if (offset === 0)
3329
+ parse(characters, root, reference, reference, props, rulesets, length, points, children);
3330
+ else
3331
+ switch (atrule === 99 && charat(characters, 3) === 110 ? 100 : atrule) {
3332
+ // d l m s
3333
+ case 100: case 108: case 109: case 115:
3334
+ parse(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length, children), children), rules, children, length, points, rule ? props : children);
3335
+ break
3336
+ default:
3337
+ parse(characters, reference, reference, reference, [''], children, 0, points, children);
3338
+ }
3339
+ }
3340
+
3341
+ index = offset = property = 0, variable = ampersand = 1, type = characters = '', length = pseudo;
3342
+ break
3343
+ // :
3344
+ case 58:
3345
+ length = 1 + strlen(characters), property = previous;
3346
+ default:
3347
+ if (variable < 1)
3348
+ if (character == 123)
3349
+ --variable;
3350
+ else if (character == 125 && variable++ == 0 && prev() == 125)
3351
+ continue
3352
+
3353
+ switch (characters += from(character), character * variable) {
3354
+ // &
3355
+ case 38:
3356
+ ampersand = offset > 0 ? 1 : (characters += '\f', -1);
3357
+ break
3358
+ // ,
3359
+ case 44:
3360
+ points[index++] = (strlen(characters) - 1) * ampersand, ampersand = 1;
3361
+ break
3362
+ // @
3363
+ case 64:
3364
+ // -
3365
+ if (peek() === 45)
3366
+ characters += delimit(next());
3367
+
3368
+ atrule = peek(), offset = length = strlen(type = characters += identifier(caret())), character++;
3369
+ break
3370
+ // -
3371
+ case 45:
3372
+ if (previous === 45 && strlen(characters) == 2)
3373
+ variable = 0;
3374
+ }
3375
+ }
3376
+
3377
+ return rulesets
3378
+ }
3379
+
3380
+ /**
3381
+ * @param {string} value
3382
+ * @param {object} root
3383
+ * @param {object?} parent
3384
+ * @param {number} index
3385
+ * @param {number} offset
3386
+ * @param {string[]} rules
3387
+ * @param {number[]} points
3388
+ * @param {string} type
3389
+ * @param {string[]} props
3390
+ * @param {string[]} children
3391
+ * @param {number} length
3392
+ * @param {object[]} siblings
3393
+ * @return {object}
3394
+ */
3395
+ function ruleset (value, root, parent, index, offset, rules, points, type, props, children, length, siblings) {
3396
+ var post = offset - 1;
3397
+ var rule = offset === 0 ? rules : [''];
3398
+ var size = sizeof(rule);
3399
+
3400
+ for (var i = 0, j = 0, k = 0; i < index; ++i)
3401
+ for (var x = 0, y = substr(value, post + 1, post = abs(j = points[i])), z = value; x < size; ++x)
3402
+ if (z = trim(j > 0 ? rule[x] + ' ' + y : replace(y, /&\f/g, rule[x])))
3403
+ props[k++] = z;
3404
+
3405
+ return node(value, root, parent, offset === 0 ? RULESET : type, props, children, length, siblings)
3406
+ }
3407
+
3408
+ /**
3409
+ * @param {number} value
3410
+ * @param {object} root
3411
+ * @param {object?} parent
3412
+ * @param {object[]} siblings
3413
+ * @return {object}
3414
+ */
3415
+ function comment (value, root, parent, siblings) {
3416
+ return node(value, root, parent, COMMENT, from(char()), substr(value, 2, -2), 0, siblings)
3417
+ }
3418
+
3419
+ /**
3420
+ * @param {string} value
3421
+ * @param {object} root
3422
+ * @param {object?} parent
3423
+ * @param {number} length
3424
+ * @param {object[]} siblings
3425
+ * @return {object}
3426
+ */
3427
+ function declaration (value, root, parent, length, siblings) {
3428
+ return node(value, root, parent, DECLARATION, substr(value, 0, length), substr(value, length + 1, -1), length, siblings)
3429
+ }
3430
+
3431
+ /**
3432
+ * @param {string} value
3433
+ * @param {number} length
3434
+ * @param {object[]} children
3435
+ * @return {string}
3436
+ */
3437
+ function prefix (value, length, children) {
3438
+ switch (hash(value, length)) {
3439
+ // color-adjust
3440
+ case 5103:
3441
+ return WEBKIT + 'print-' + value + value
3442
+ // animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
3443
+ case 5737: case 4201: case 3177: case 3433: case 1641: case 4457: case 2921:
3444
+ // text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
3445
+ case 5572: case 6356: case 5844: case 3191: case 6645: case 3005:
3446
+ // mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
3447
+ case 6391: case 5879: case 5623: case 6135: case 4599: case 4855:
3448
+ // background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
3449
+ case 4215: case 6389: case 5109: case 5365: case 5621: case 3829:
3450
+ return WEBKIT + value + value
3451
+ // tab-size
3452
+ case 4789:
3453
+ return MOZ + value + value
3454
+ // appearance, user-select, transform, hyphens, text-size-adjust
3455
+ case 5349: case 4246: case 4810: case 6968: case 2756:
3456
+ return WEBKIT + value + MOZ + value + MS + value + value
3457
+ // writing-mode
3458
+ case 5936:
3459
+ switch (charat(value, length + 11)) {
3460
+ // vertical-l(r)
3461
+ case 114:
3462
+ return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'tb') + value
3463
+ // vertical-r(l)
3464
+ case 108:
3465
+ return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'tb-rl') + value
3466
+ // horizontal(-)tb
3467
+ case 45:
3468
+ return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'lr') + value
3469
+ // default: fallthrough to below
3470
+ }
3471
+ // flex, flex-direction, scroll-snap-type, writing-mode
3472
+ case 6828: case 4268: case 2903:
3473
+ return WEBKIT + value + MS + value + value
3474
+ // order
3475
+ case 6165:
3476
+ return WEBKIT + value + MS + 'flex-' + value + value
3477
+ // align-items
3478
+ case 5187:
3479
+ return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + 'box-$1$2' + MS + 'flex-$1$2') + value
3480
+ // align-self
3481
+ case 5443:
3482
+ return WEBKIT + value + MS + 'flex-item-' + replace(value, /flex-|-self/g, '') + (!match(value, /flex-|baseline/) ? MS + 'grid-row-' + replace(value, /flex-|-self/g, '') : '') + value
3483
+ // align-content
3484
+ case 4675:
3485
+ return WEBKIT + value + MS + 'flex-line-pack' + replace(value, /align-content|flex-|-self/g, '') + value
3486
+ // flex-shrink
3487
+ case 5548:
3488
+ return WEBKIT + value + MS + replace(value, 'shrink', 'negative') + value
3489
+ // flex-basis
3490
+ case 5292:
3491
+ return WEBKIT + value + MS + replace(value, 'basis', 'preferred-size') + value
3492
+ // flex-grow
3493
+ case 6060:
3494
+ return WEBKIT + 'box-' + replace(value, '-grow', '') + WEBKIT + value + MS + replace(value, 'grow', 'positive') + value
3495
+ // transition
3496
+ case 4554:
3497
+ return WEBKIT + replace(value, /([^-])(transform)/g, '$1' + WEBKIT + '$2') + value
3498
+ // cursor
3499
+ case 6187:
3500
+ return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + '$1'), /(image-set)/, WEBKIT + '$1'), value, '') + value
3501
+ // background, background-image
3502
+ case 5495: case 3959:
3503
+ return replace(value, /(image-set\([^]*)/, WEBKIT + '$1' + '$`$1')
3504
+ // justify-content
3505
+ case 4968:
3506
+ return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + 'box-pack:$3' + MS + 'flex-pack:$3'), /s.+-b[^;]+/, 'justify') + WEBKIT + value + value
3507
+ // justify-self
3508
+ case 4200:
3509
+ if (!match(value, /flex-|baseline/)) return MS + 'grid-column-align' + substr(value, length) + value
3510
+ break
3511
+ // grid-template-(columns|rows)
3512
+ case 2592: case 3360:
3513
+ return MS + replace(value, 'template-', '') + value
3514
+ // grid-(row|column)-start
3515
+ case 4384: case 3616:
3516
+ if (children && children.some(function (element, index) { return length = index, match(element.props, /grid-\w+-end/) })) {
3517
+ return ~indexof(value + (children = children[length].value), 'span', 0) ? value : (MS + replace(value, '-start', '') + value + MS + 'grid-row-span:' + (~indexof(children, 'span', 0) ? match(children, /\d+/) : +match(children, /\d+/) - +match(value, /\d+/)) + ';')
3518
+ }
3519
+ return MS + replace(value, '-start', '') + value
3520
+ // grid-(row|column)-end
3521
+ case 4896: case 4128:
3522
+ return (children && children.some(function (element) { return match(element.props, /grid-\w+-start/) })) ? value : MS + replace(replace(value, '-end', '-span'), 'span ', '') + value
3523
+ // (margin|padding)-inline-(start|end)
3524
+ case 4095: case 3583: case 4068: case 2532:
3525
+ return replace(value, /(.+)-inline(.+)/, WEBKIT + '$1$2') + value
3526
+ // (min|max)?(width|height|inline-size|block-size)
3527
+ case 8116: case 7059: case 5753: case 5535:
3528
+ case 5445: case 5701: case 4933: case 4677:
3529
+ case 5533: case 5789: case 5021: case 4765:
3530
+ // stretch, max-content, min-content, fill-available
3531
+ if (strlen(value) - 1 - length > 6)
3532
+ switch (charat(value, length + 1)) {
3533
+ // (m)ax-content, (m)in-content
3534
+ case 109:
3535
+ // -
3536
+ if (charat(value, length + 4) !== 45)
3537
+ break
3538
+ // (f)ill-available, (f)it-content
3539
+ case 102:
3540
+ return replace(value, /(.+:)(.+)-([^]+)/, '$1' + WEBKIT + '$2-$3' + '$1' + MOZ + (charat(value, length + 3) == 108 ? '$3' : '$2-$3')) + value
3541
+ // (s)tretch
3542
+ case 115:
3543
+ return ~indexof(value, 'stretch', 0) ? prefix(replace(value, 'stretch', 'fill-available'), length, children) + value : value
3544
+ }
3545
+ break
3546
+ // grid-(column|row)
3547
+ case 5152: case 5920:
3548
+ return replace(value, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function (_, a, b, c, d, e, f) { return (MS + a + ':' + b + f) + (c ? (MS + a + '-span:' + (d ? e : +e - +b)) + f : '') + value })
3549
+ // position: sticky
3550
+ case 4949:
3551
+ // stick(y)?
3552
+ if (charat(value, length + 6) === 121)
3553
+ return replace(value, ':', ':' + WEBKIT) + value
3554
+ break
3555
+ // display: (flex|inline-flex|grid|inline-grid)
3556
+ case 6444:
3557
+ switch (charat(value, charat(value, 14) === 45 ? 18 : 11)) {
3558
+ // (inline-)?fle(x)
3559
+ case 120:
3560
+ return replace(value, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, '$1' + WEBKIT + (charat(value, 14) === 45 ? 'inline-' : '') + 'box$3' + '$1' + WEBKIT + '$2$3' + '$1' + MS + '$2box$3') + value
3561
+ // (inline-)?gri(d)
3562
+ case 100:
3563
+ return replace(value, ':', ':' + MS) + value
3564
+ }
3565
+ break
3566
+ // scroll-margin, scroll-margin-(top|right|bottom|left)
3567
+ case 5719: case 2647: case 2135: case 3927: case 2391:
3568
+ return replace(value, 'scroll-', 'scroll-snap-') + value
3569
+ }
3570
+
3571
+ return value
3572
+ }
3573
+
3574
+ /**
3575
+ * @param {object[]} children
3576
+ * @param {function} callback
3577
+ * @return {string}
3578
+ */
3579
+ function serialize (children, callback) {
3580
+ var output = '';
3581
+
3582
+ for (var i = 0; i < children.length; i++)
3583
+ output += callback(children[i], i, children, callback) || '';
3584
+
3585
+ return output
3586
+ }
3587
+
3588
+ /**
3589
+ * @param {object} element
3590
+ * @param {number} index
3591
+ * @param {object[]} children
3592
+ * @param {function} callback
3593
+ * @return {string}
3594
+ */
3595
+ function stringify (element, index, children, callback) {
3596
+ switch (element.type) {
3597
+ case LAYER: if (element.children.length) break
3598
+ case IMPORT: case DECLARATION: return element.return = element.return || element.value
3599
+ case COMMENT: return ''
3600
+ case KEYFRAMES: return element.return = element.value + '{' + serialize(element.children, callback) + '}'
3601
+ case RULESET: if (!strlen(element.value = element.props.join(','))) return ''
3602
+ }
3603
+
3604
+ return strlen(children = serialize(element.children, callback)) ? element.return = element.value + '{' + children + '}' : ''
3605
+ }
3606
+
3607
+ /**
3608
+ * @param {function[]} collection
3609
+ * @return {function}
3610
+ */
3611
+ function middleware (collection) {
3612
+ var length = sizeof(collection);
3613
+
3614
+ return function (element, index, children, callback) {
3615
+ var output = '';
3616
+
3617
+ for (var i = 0; i < length; i++)
3618
+ output += collection[i](element, index, children, callback) || '';
3619
+
3620
+ return output
3621
+ }
3622
+ }
3623
+
3624
+ /**
3625
+ * @param {function} callback
3626
+ * @return {function}
3627
+ */
3628
+ function rulesheet (callback) {
3629
+ return function (element) {
3630
+ if (!element.root)
3631
+ if (element = element.return)
3632
+ callback(element);
3633
+ }
3634
+ }
3635
+
3636
+ /**
3637
+ * @param {object} element
3638
+ * @param {number} index
3639
+ * @param {object[]} children
3640
+ * @param {function} callback
3641
+ */
3642
+ function prefixer (element, index, children, callback) {
3643
+ if (element.length > -1)
3644
+ if (!element.return)
3645
+ switch (element.type) {
3646
+ case DECLARATION: element.return = prefix(element.value, element.length, children);
3647
+ return
3648
+ case KEYFRAMES:
3649
+ return serialize([copy(element, {value: replace(element.value, '@', '@' + WEBKIT)})], callback)
3650
+ case RULESET:
3651
+ if (element.length)
3652
+ return combine(children = element.props, function (value) {
3653
+ switch (match(value, callback = /(::plac\w+|:read-\w+)/)) {
3654
+ // :read-(only|write)
3655
+ case ':read-only': case ':read-write':
3656
+ lift(copy(element, {props: [replace(value, /:(read-\w+)/, ':' + MOZ + '$1')]}));
3657
+ lift(copy(element, {props: [value]}));
3658
+ assign(element, {props: filter(children, callback)});
3659
+ break
3660
+ // :placeholder
3661
+ case '::placeholder':
3662
+ lift(copy(element, {props: [replace(value, /:(plac\w+)/, ':' + WEBKIT + 'input-$1')]}));
3663
+ lift(copy(element, {props: [replace(value, /:(plac\w+)/, ':' + MOZ + '$1')]}));
3664
+ lift(copy(element, {props: [replace(value, /:(plac\w+)/, MS + 'input-$1')]}));
3665
+ lift(copy(element, {props: [value]}));
3666
+ assign(element, {props: filter(children, callback)});
3667
+ break
3668
+ }
3669
+
3670
+ return ''
3671
+ })
3672
+ }
3673
+ }
3674
+
3675
+ var unitlessKeys = {
3676
+ animationIterationCount: 1,
3677
+ aspectRatio: 1,
3678
+ borderImageOutset: 1,
3679
+ borderImageSlice: 1,
3680
+ borderImageWidth: 1,
3681
+ boxFlex: 1,
3682
+ boxFlexGroup: 1,
3683
+ boxOrdinalGroup: 1,
3684
+ columnCount: 1,
3685
+ columns: 1,
3686
+ flex: 1,
3687
+ flexGrow: 1,
3688
+ flexPositive: 1,
3689
+ flexShrink: 1,
3690
+ flexNegative: 1,
3691
+ flexOrder: 1,
3692
+ gridRow: 1,
3693
+ gridRowEnd: 1,
3694
+ gridRowSpan: 1,
3695
+ gridRowStart: 1,
3696
+ gridColumn: 1,
3697
+ gridColumnEnd: 1,
3698
+ gridColumnSpan: 1,
3699
+ gridColumnStart: 1,
3700
+ msGridRow: 1,
3701
+ msGridRowSpan: 1,
3702
+ msGridColumn: 1,
3703
+ msGridColumnSpan: 1,
3704
+ fontWeight: 1,
3705
+ lineHeight: 1,
3706
+ opacity: 1,
3707
+ order: 1,
3708
+ orphans: 1,
3709
+ tabSize: 1,
3710
+ widows: 1,
3711
+ zIndex: 1,
3712
+ zoom: 1,
3713
+ WebkitLineClamp: 1,
3714
+ // SVG-related properties
3715
+ fillOpacity: 1,
3716
+ floodOpacity: 1,
3717
+ stopOpacity: 1,
3718
+ strokeDasharray: 1,
3719
+ strokeDashoffset: 1,
3720
+ strokeMiterlimit: 1,
3721
+ strokeOpacity: 1,
3722
+ strokeWidth: 1
3723
+ };
3724
+
3725
+ var f="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",m="active",y="data-styled-version",v="6.1.11",g="/*!sc*/\n",S="undefined"!=typeof window&&"HTMLElement"in window,w=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),E=/invalid hook call/i,N=new Set,P=function(t,n){if("production"!==process.env.NODE_ENV){var o=n?' with the id of "'.concat(n,'"'):"",s="The component ".concat(t).concat(o," has been created dynamically.\n")+"You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",i=console.error;try{var a=!0;console.error=function(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];E.test(t)?(a=!1,N.delete(s)):i.apply(void 0,__spreadArray([t],n,!1));},reactExports.useRef(),a&&!N.has(s)&&(console.warn(s),N.add(s));}catch(e){E.test(e.message)&&N.delete(s);}finally{console.error=i;}}},_=Object.freeze([]),C=Object.freeze({});function I(e,t,n){return void 0===n&&(n=C),e.theme!==n.theme&&e.theme||t||n.theme}var A=new Set(["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"]),O=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,D=/(^-|-$)/g;function R(e){return e.replace(O,"-").replace(D,"")}var T=/(a)(d)/gi,k=52,j=function(e){return String.fromCharCode(e+(e>25?39:97))};function x(e){var t,n="";for(t=Math.abs(e);t>k;t=t/k|0)n=j(t%k)+n;return (j(t%k)+n).replace(T,"$1-$2")}var V,F=5381,M=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},z=function(e){return M(F,e)};function $(e){return x(z(e)>>>0)}function B(e){return "production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function L(e){return "string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var G="function"==typeof Symbol&&Symbol.for,Y=G?Symbol.for("react.memo"):60115,q=G?Symbol.for("react.forward_ref"):60112,W={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},H={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},U={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},J=((V={})[q]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},V[Y]=U,V);function X(e){return ("type"in(t=e)&&t.type.$$typeof)===Y?U:"$$typeof"in e?J[e.$$typeof]:W;var t;}var Z=Object.defineProperty,K=Object.getOwnPropertyNames,Q=Object.getOwnPropertySymbols,ee=Object.getOwnPropertyDescriptor,te=Object.getPrototypeOf,ne=Object.prototype;function oe(e,t,n){if("string"!=typeof t){if(ne){var o=te(t);o&&o!==ne&&oe(e,o,n);}var r=K(t);Q&&(r=r.concat(Q(t)));for(var s=X(e),i=X(t),a=0;a<r.length;++a){var c=r[a];if(!(c in H||n&&n[c]||i&&c in i||s&&c in s)){var l=ee(t,c);try{Z(e,c,l);}catch(e){}}}}return e}function re(e){return "function"==typeof e}function se(e){return "object"==typeof e&&"styledComponentId"in e}function ie(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function ae(e,t){if(0===e.length)return "";for(var n=e[0],o=1;o<e.length;o++)n+=t?t+e[o]:e[o];return n}function ce(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function le(e,t,n){if(void 0===n&&(n=!1),!n&&!ce(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var o=0;o<t.length;o++)e[o]=le(e[o],t[o]);else if(ce(t))for(var o in t)e[o]=le(e[o],t[o]);return e}function ue(e,t){Object.defineProperty(e,"toString",{value:t});}var pe="production"!==process.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\n\n",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",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",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",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",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",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\n\n",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",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",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",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",14:'ThemeProvider: "theme" prop is required.\n\n',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",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",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n",18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function de(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],o=[],r=1,s=e.length;r<s;r+=1)o.push(e[r]);return o.forEach(function(e){n=n.replace(/%[a-z]/,e);}),n}function he(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];return "production"===process.env.NODE_ENV?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t," for more information.").concat(n.length>0?" Args: ".concat(n.join(", ")):"")):new Error(de.apply(void 0,__spreadArray([pe[t]],n,!1)).trim())}var fe=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e;}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,r=o;e>=r;)if((r<<=1)<0)throw he(16,"".concat(e));this.groupSizes=new Uint32Array(r),this.groupSizes.set(n),this.length=r;for(var s=o;s<r;s++)this.groupSizes[s]=0;}for(var i=this.indexOfGroup(e+1),a=(s=0,t.length);s<a;s++)this.tag.insertRule(i,t[s])&&(this.groupSizes[e]++,i++);},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),o=n+t;this.groupSizes[e]=0;for(var r=n;r<o;r++)this.tag.deleteRule(n);}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],o=this.indexOfGroup(e),r=o+n,s=o;s<r;s++)t+="".concat(this.tag.getRule(s)).concat(g);return t},e}(),me=1<<30,ye=new Map,ve=new Map,ge=1,Se=function(e){if(ye.has(e))return ye.get(e);for(;ve.has(ge);)ge++;var t=ge++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>me))throw he(16,"".concat(t));return ye.set(e,t),ve.set(t,e),t},we=function(e,t){ge=t+1,ye.set(e,t),ve.set(t,e);},be="style[".concat(f,"][").concat(y,'="').concat(v,'"]'),Ee=new RegExp("^".concat(f,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Ne=function(e,t,n){for(var o,r=n.split(","),s=0,i=r.length;s<i;s++)(o=r[s])&&e.registerName(t,o);},Pe=function(e,t){for(var n,o=(null!==(n=t.textContent)&&void 0!==n?n:"").split(g),r=[],s=0,i=o.length;s<i;s++){var a=o[s].trim();if(a){var c=a.match(Ee);if(c){var l=0|parseInt(c[1],10),u=c[2];0!==l&&(we(u,l),Ne(e,u,c[3]),e.getTag().insertRules(l,r)),r.length=0;}else r.push(a);}}};function _e(){return "undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null}var Ce=function(e){var t=document.head,n=e||t,o=document.createElement("style"),r=function(e){var t=Array.from(e.querySelectorAll("style[".concat(f,"]")));return t[t.length-1]}(n),s=void 0!==r?r.nextSibling:null;o.setAttribute(f,m),o.setAttribute(y,v);var i=_e();return i&&o.setAttribute("nonce",i),n.insertBefore(o,s),o},Ie=function(){function e(e){this.element=Ce(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,o=t.length;n<o;n++){var r=t[n];if(r.ownerNode===e)return r}throw he(17)}(this.element),this.length=0;}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return !1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--;},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),Ae=function(){function e(e){this.element=Ce(e),this.nodes=this.element.childNodes,this.length=0;}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return !1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--;},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),Oe=function(){function e(e){this.rules=[],this.length=0;}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--;},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),De=S,Re={isServer:!S,useCSSOMInjection:!w},Te=function(){function e(e,n,o){void 0===e&&(e=C),void 0===n&&(n={});var r=this;this.options=__assign(__assign({},Re),e),this.gs=n,this.names=new Map(o),this.server=!!e.isServer,!this.server&&S&&De&&(De=!1,function(e){for(var t=document.querySelectorAll(be),n=0,o=t.length;n<o;n++){var r=t[n];r&&r.getAttribute(f)!==m&&(Pe(e,r),r.parentNode&&r.parentNode.removeChild(r));}}(this)),ue(this,function(){return function(e){for(var t=e.getTag(),n=t.length,o="",r=function(n){var r=function(e){return ve.get(e)}(n);if(void 0===r)return "continue";var s=e.names.get(r),i=t.getGroup(n);if(void 0===s||0===i.length)return "continue";var a="".concat(f,".g").concat(n,'[id="').concat(r,'"]'),c="";void 0!==s&&s.forEach(function(e){e.length>0&&(c+="".concat(e,","));}),o+="".concat(i).concat(a,'{content:"').concat(c,'"}').concat(g);},s=0;s<n;s++)r(s);return o}(r)});}return e.registerId=function(e){return Se(e)},e.prototype.reconstructWithOptions=function(n,o){return void 0===o&&(o=!0),new e(__assign(__assign({},this.options),n),this.gs,o&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new Oe(n):t?new Ie(n):new Ae(n)}(this.options),new fe(e)));var e;},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(Se(e),this.names.has(e))this.names.get(e).add(t);else {var n=new Set;n.add(t),this.names.set(e,n);}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(Se(e),n);},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear();},e.prototype.clearRules=function(e){this.getTag().clearGroup(Se(e)),this.clearNames(e);},e.prototype.clearTag=function(){this.tag=void 0;},e}(),ke=/&/g,je=/^\s*\/\/.*$/gm;function xe(e,t){return e.map(function(e){return "rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return "".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=xe(e.children,t)),e})}function Ve(e){var t,n,o,r=void 0===e?C:e,s=r.options,i=void 0===s?C:s,a=r.plugins,c=void 0===a?_:a,l=function(e,o,r){return r.startsWith(n)&&r.endsWith(n)&&r.replaceAll(n,"").length>0?".".concat(t):e},u=c.slice();u.push(function(e){e.type===RULESET&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(ke,n).replace(o,l));}),i.prefix&&u.push(prefixer),u.push(stringify);var p=function(e,r,s,a){void 0===r&&(r=""),void 0===s&&(s=""),void 0===a&&(a="&"),t=a,n=r,o=new RegExp("\\".concat(n,"\\b"),"g");var c=e.replace(je,""),l=compile(s||r?"".concat(s," ").concat(r," { ").concat(c," }"):c);i.namespace&&(l=xe(l,i.namespace));var p=[];return serialize(l,middleware(u.concat(rulesheet(function(e){return p.push(e)})))),p};return p.hash=c.length?c.reduce(function(e,t){return t.name||he(15),M(e,t.name)},F).toString():"",p}var Fe=new Te,Me=Ve(),ze=React.createContext({shouldForwardProp:void 0,styleSheet:Fe,stylis:Me});ze.Consumer;React.createContext(void 0);function Le(){return reactExports.useContext(ze)}var Ye=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Me);var o=n.name+t.hash;e.hasNameForId(n.id,o)||e.insertRules(n.id,o,t(n.rules,o,"@keyframes"));},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,ue(this,function(){throw he(12,String(n.name))});}return e.prototype.getName=function(e){return void 0===e&&(e=Me),this.name+e.hash},e}(),qe=function(e){return e>="A"&&e<="Z"};function We(e){for(var t="",n=0;n<e.length;n++){var o=e[n];if(1===n&&"-"===o&&"-"===e[0])return e;qe(o)?t+="-"+o.toLowerCase():t+=o;}return t.startsWith("ms-")?"-"+t:t}var He=function(e){return null==e||!1===e||""===e},Ue=function(t){var n,o,r=[];for(var s in t){var i=t[s];t.hasOwnProperty(s)&&!He(i)&&(Array.isArray(i)&&i.isCss||re(i)?r.push("".concat(We(s),":"),i,";"):ce(i)?r.push.apply(r,__spreadArray(__spreadArray(["".concat(s," {")],Ue(i),!1),["}"],!1)):r.push("".concat(We(s),": ").concat((n=s,null==(o=i)||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||n in unitlessKeys||n.startsWith("--")?String(o).trim():"".concat(o,"px")),";")));}return r};function Je(e,t,n,o){if(He(e))return [];if(se(e))return [".".concat(e.styledComponentId)];if(re(e)){if(!re(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return [e];var r=e(t);return "production"===process.env.NODE_ENV||"object"!=typeof r||Array.isArray(r)||r instanceof Ye||ce(r)||null===r||console.error("".concat(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.")),Je(r,t,n,o)}var s;return e instanceof Ye?n?(e.inject(n,o),[e.getName(o)]):[e]:ce(e)?Ue(e):Array.isArray(e)?Array.prototype.concat.apply(_,e.map(function(e){return Je(e,t,n,o)})):[e.toString()]}function Xe(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(re(n)&&!se(n))return !1}return !0}var Ze=z(v),Ke=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&Xe(e),this.componentId=t,this.baseHash=M(Ze,t),this.baseStyle=n,Te.registerId(t);}return e.prototype.generateAndInjectStyles=function(e,t,n){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))o=ie(o,this.staticRulesId);else {var r=ae(Je(this.rules,e,t,n)),s=x(M(this.baseHash,r)>>>0);if(!t.hasNameForId(this.componentId,s)){var i=n(r,".".concat(s),void 0,this.componentId);t.insertRules(this.componentId,s,i);}o=ie(o,s),this.staticRulesId=s;}else {for(var a=M(this.baseHash,n.hash),c="",l=0;l<this.rules.length;l++){var u=this.rules[l];if("string"==typeof u)c+=u,"production"!==process.env.NODE_ENV&&(a=M(a,u));else if(u){var p=ae(Je(u,e,t,n));a=M(a,p+l),c+=p;}}if(c){var d=x(a>>>0);t.hasNameForId(this.componentId,d)||t.insertRules(this.componentId,d,n(c,".".concat(d),void 0,this.componentId)),o=ie(o,d);}}return o},e}(),Qe=React.createContext(void 0);Qe.Consumer;var ot={},rt=new Set;function st(e,r,s){var i=se(e),a=e,c=!L(e),p=r.attrs,d=void 0===p?_:p,h=r.componentId,f=void 0===h?function(e,t){var n="string"!=typeof e?"sc":R(e);ot[n]=(ot[n]||0)+1;var o="".concat(n,"-").concat($(v+n+ot[n]));return t?"".concat(t,"-").concat(o):o}(r.displayName,r.parentComponentId):h,m=r.displayName,y=void 0===m?function(e){return L(e)?"styled.".concat(e):"Styled(".concat(B(e),")")}(e):m,g=r.displayName&&r.componentId?"".concat(R(r.displayName),"-").concat(r.componentId):r.componentId||f,S=i&&a.attrs?a.attrs.concat(d).filter(Boolean):d,w=r.shouldForwardProp;if(i&&a.shouldForwardProp){var b=a.shouldForwardProp;if(r.shouldForwardProp){var E=r.shouldForwardProp;w=function(e,t){return b(e,t)&&E(e,t)};}else w=b;}var N=new Ke(s,g,i?a.componentStyle:void 0);function O(e,r){return function(e,r,s){var i=e.attrs,a=e.componentStyle,c=e.defaultProps,p=e.foldedComponentIds,d=e.styledComponentId,h=e.target,f=React.useContext(Qe),m=Le(),y=e.shouldForwardProp||m.shouldForwardProp;"production"!==process.env.NODE_ENV&&reactExports.useDebugValue(d);var v=I(r,f,c)||C,g=function(e,n,o){for(var r,s=__assign(__assign({},n),{className:void 0,theme:o}),i=0;i<e.length;i+=1){var a=re(r=e[i])?r(s):r;for(var c in a)s[c]="className"===c?ie(s[c],a[c]):"style"===c?__assign(__assign({},s[c]),a[c]):a[c];}return n.className&&(s.className=ie(s.className,n.className)),s}(i,r,v),S=g.as||h,w={};for(var b in g)void 0===g[b]||"$"===b[0]||"as"===b||"theme"===b&&g.theme===v||("forwardedAs"===b?w.as=g.forwardedAs:y&&!y(b,S)||(w[b]=g[b],y||"development"!==process.env.NODE_ENV||isPropValid(b)||rt.has(b)||!A.has(S)||(rt.add(b),console.warn('styled-components: it looks like an unknown prop "'.concat(b,'" 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.)')))));var E=function(e,t){var n=Le(),o=e.generateAndInjectStyles(t,n.styleSheet,n.stylis);return "production"!==process.env.NODE_ENV&&reactExports.useDebugValue(o),o}(a,g);"production"!==process.env.NODE_ENV&&e.warnTooManyClasses&&e.warnTooManyClasses(E);var N=ie(p,d);return E&&(N+=" "+E),g.className&&(N+=" "+g.className),w[L(S)&&!A.has(S)?"class":"className"]=N,w.ref=s,reactExports.createElement(S,w)}(D,e,r)}O.displayName=y;var D=React.forwardRef(O);return D.attrs=S,D.componentStyle=N,D.displayName=y,D.shouldForwardProp=w,D.foldedComponentIds=i?ie(a.foldedComponentIds,a.styledComponentId):"",D.styledComponentId=g,D.target=i?a.target:e,Object.defineProperty(D,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var o=0,r=t;o<r.length;o++)le(e,r[o],!0);return e}({},a.defaultProps,e):e;}}),"production"!==process.env.NODE_ENV&&(P(y,g),D.warnTooManyClasses=function(e,t){var n={},o=!1;return function(r){if(!o&&(n[r]=!0,Object.keys(n).length>=200)){var s=t?' with the id of "'.concat(t,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(e).concat(s,".\n")+"Consider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),o=!0,n={};}}}(y,g)),ue(D,function(){return ".".concat(D.styledComponentId)}),c&&oe(D,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),D}function it(e,t){for(var n=[e[0]],o=0,r=t.length;o<r;o+=1)n.push(t[o],e[o+1]);return n}var at=function(e){return Object.assign(e,{isCss:!0})};function ct(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];if(re(t)||ce(t))return at(Je(it(_,__spreadArray([t],n,!0))));var r=t;return 0===n.length&&1===r.length&&"string"==typeof r[0]?Je(r):at(Je(it(r,n)))}function lt(n,o,r){if(void 0===r&&(r=C),!o)throw he(1,o);var s=function(t){for(var s=[],i=1;i<arguments.length;i++)s[i-1]=arguments[i];return n(o,r,ct.apply(void 0,__spreadArray([t],s,!1)))};return s.attrs=function(e){return lt(n,o,__assign(__assign({},r),{attrs:Array.prototype.concat(r.attrs,e).filter(Boolean)}))},s.withConfig=function(e){return lt(n,o,__assign(__assign({},r),e))},s}var ut=function(e){return lt(st,e)},pt=ut;A.forEach(function(e){pt[e]=ut(e);});"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&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");var St="__sc-".concat(f,"__");"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window[St]||(window[St]=0),1===window[St]&&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);
3726
+
3727
+ // src/components/Wrapper.tsx
3728
+ const Wrapper = pt.div `
3729
+ padding: ${(props) => props.padding || "1rem"};
3730
+ margin: ${(props) => props.margin || "0 auto"};
3731
+ background-color: ${(props) => props.backgroundColor || "red"};
3732
+ `;
3733
+
3734
+ // const Button = ({ label }: ButtonProps) => {
3735
+ const Wrapper1 = (args) => {
3736
+ return (React.createElement(Wrapper, { padding: args.padding, margin: "1rem auto", backgroundColor: args.backgroundColor },
3737
+ React.createElement("h1", null, "Hello, World!"),
3738
+ React.createElement("p", null, "This is a simple wrapper component.")));
3739
+ };
3740
+
2809
3741
  exports.Button = Button;
3742
+ exports.Wrapper = Wrapper1;