@mui/material 5.16.11 → 5.16.12

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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/material v5.16.11
2
+ * @mui/material v5.16.12
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -409,9 +409,6 @@
409
409
  typeof self !== "undefined" ? self :
410
410
  typeof window !== "undefined" ? window : {});
411
411
 
412
- if (typeof global$1.setTimeout === 'function') ;
413
- if (typeof global$1.clearTimeout === 'function') ;
414
-
415
412
  // from https://github.com/kumavis/browser-process-hrtime/blob/master/index.js
416
413
  var performance$1 = global$1.performance || {};
417
414
  performance$1.now ||
@@ -508,25 +505,7 @@
508
505
  return target;
509
506
  }
510
507
 
511
- function memoize$1(fn) {
512
- var cache = Object.create(null);
513
- return function (arg) {
514
- if (cache[arg] === undefined) cache[arg] = fn(arg);
515
- return cache[arg];
516
- };
517
- }
518
-
519
- 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|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
520
-
521
- var isPropValid = /* #__PURE__ */memoize$1(function (prop) {
522
- return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111
523
- /* o */
524
- && prop.charCodeAt(1) === 110
525
- /* n */
526
- && prop.charCodeAt(2) < 91;
527
- }
528
- /* Z+1 */
529
- );
508
+ var isDevelopment$3 = false;
530
509
 
531
510
  /*
532
511
 
@@ -550,10 +529,9 @@
550
529
  - empties the stylesheet of all its contents
551
530
 
552
531
  */
553
- // $FlowFixMe
532
+
554
533
  function sheetForTag(tag) {
555
534
  if (tag.sheet) {
556
- // $FlowFixMe
557
535
  return tag.sheet;
558
536
  } // this weirdness brought to you by firefox
559
537
 
@@ -562,10 +540,13 @@
562
540
 
563
541
  for (var i = 0; i < document.styleSheets.length; i++) {
564
542
  if (document.styleSheets[i].ownerNode === tag) {
565
- // $FlowFixMe
566
543
  return document.styleSheets[i];
567
544
  }
568
- }
545
+ } // this function should always return with a value
546
+ // TS can't understand it though so we make it stop complaining here
547
+
548
+
549
+ return undefined;
569
550
  }
570
551
 
571
552
  function createStyleElement(options) {
@@ -606,7 +587,7 @@
606
587
  _this.tags.push(tag);
607
588
  };
608
589
 
609
- this.isSpeedy = options.speedy === undefined ? "development" === 'production' : options.speedy;
590
+ this.isSpeedy = options.speedy === undefined ? !isDevelopment$3 : options.speedy;
610
591
  this.tags = [];
611
592
  this.ctr = 0;
612
593
  this.nonce = options.nonce; // key is the value of the data-emotion attribute, it's used to identify different sheets
@@ -634,18 +615,6 @@
634
615
 
635
616
  var tag = this.tags[this.tags.length - 1];
636
617
 
637
- {
638
- var isImportRule = rule.charCodeAt(0) === 64 && rule.charCodeAt(1) === 105;
639
-
640
- if (isImportRule && this._alreadyInsertedOrderInsensitiveRule) {
641
- // this would only cause problem in speedy mode
642
- // but we don't want enabling speedy to affect the observable behavior
643
- // so we report this error at all times
644
- console.error("You're attempting to insert the following rule:\n" + rule + '\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules.');
645
- }
646
- this._alreadyInsertedOrderInsensitiveRule = this._alreadyInsertedOrderInsensitiveRule || !isImportRule;
647
- }
648
-
649
618
  if (this.isSpeedy) {
650
619
  var sheet = sheetForTag(tag);
651
620
 
@@ -654,9 +623,6 @@
654
623
  // the big drawback is that the css won't be editable in devtools
655
624
  sheet.insertRule(rule, sheet.cssRules.length);
656
625
  } catch (e) {
657
- if (!/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(rule)) {
658
- console.error("There was a problem inserting the following rule: \"" + rule + "\"", e);
659
- }
660
626
  }
661
627
  } else {
662
628
  tag.appendChild(document.createTextNode(rule));
@@ -666,29 +632,26 @@
666
632
  };
667
633
 
668
634
  _proto.flush = function flush() {
669
- // $FlowFixMe
670
635
  this.tags.forEach(function (tag) {
671
- return tag.parentNode && tag.parentNode.removeChild(tag);
636
+ var _tag$parentNode;
637
+
638
+ return (_tag$parentNode = tag.parentNode) == null ? void 0 : _tag$parentNode.removeChild(tag);
672
639
  });
673
640
  this.tags = [];
674
641
  this.ctr = 0;
675
-
676
- {
677
- this._alreadyInsertedOrderInsensitiveRule = false;
678
- }
679
642
  };
680
643
 
681
644
  return StyleSheet;
682
645
  }();
683
646
 
684
- var e="-ms-";var r$1="-moz-";var a="-webkit-";var n="comm";var c="rule";var s="decl";var i="@import";var h="@keyframes";var $="@layer";var g=Math.abs;var k=String.fromCharCode;var m=Object.assign;function x(e,r){return O(e,0)^45?(((r<<2^O(e,0))<<2^O(e,1))<<2^O(e,2))<<2^O(e,3):0}function y(e){return e.trim()}function j(e,r){return (e=r.exec(e))?e[0]:e}function z(e,r,a){return e.replace(r,a)}function C(e,r){return e.indexOf(r)}function O(e,r){return e.charCodeAt(r)|0}function A(e,r,a){return e.slice(r,a)}function M(e){return e.length}function S(e){return e.length}function q(e,r){return r.push(e),e}function B(e,r){return e.map(r).join("")}var D=1;var E=1;var F=0;var G=0;var H=0;var I="";function J(e,r,a,n,c,s,t){return {value:e,root:r,parent:a,type:n,props:c,children:s,line:D,column:E,length:t,return:""}}function K(e,r){return m(J("",null,null,"",null,null,0),e,{length:-e.length},r)}function L(){return H}function N(){H=G>0?O(I,--G):0;if(E--,H===10)E=1,D--;return H}function P(){H=G<F?O(I,G++):0;if(E++,H===10)E=1,D++;return H}function Q(){return O(I,G)}function R(){return G}function T(e,r){return A(I,e,r)}function U(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function V(e){return D=E=1,F=M(I=e),G=0,[]}function W(e){return I="",e}function X(e){return y(T(G-1,re(e===91?e+2:e===40?e+1:e)))}function Z(e){while(H=Q())if(H<33)P();else break;return U(e)>2||U(H)>3?"":" "}function ee(e,r){while(--r&&P())if(H<48||H>102||H>57&&H<65||H>70&&H<97)break;return T(e,R()+(r<6&&Q()==32&&P()==32))}function re(e){while(P())switch(H){case e:return G;case 34:case 39:if(e!==34&&e!==39)re(H);break;case 40:if(e===41)re(e);break;case 92:P();break}return G}function ae(e,r){while(P())if(e+H===47+10)break;else if(e+H===42+42&&Q()===47)break;return "/*"+T(r,G-1)+"*"+k(e===47?e:P())}function ne(e){while(!U(Q()))P();return T(e,G)}function ce(e){return W(se("",null,null,null,[""],e=V(e),0,[0],e))}function se(e,r,a,n,c,s,t,u,i){var f=0;var o=0;var l=t;var v=0;var p=0;var h=0;var b=1;var w=1;var d=1;var $=0;var g="";var m=c;var x=s;var y=n;var j=g;while(w)switch(h=$,$=P()){case 40:if(h!=108&&O(j,l-1)==58){if(C(j+=z(X($),"&","&\f"),"&\f")!=-1)d=-1;break}case 34:case 39:case 91:j+=X($);break;case 9:case 10:case 13:case 32:j+=Z(h);break;case 92:j+=ee(R()-1,7);continue;case 47:switch(Q()){case 42:case 47:q(ue(ae(P(),R()),r,a),i);break;default:j+="/";}break;case 123*b:u[f++]=M(j)*d;case 125*b:case 59:case 0:switch($){case 0:case 125:w=0;case 59+o:if(d==-1)j=z(j,/\f/g,"");if(p>0&&M(j)-l)q(p>32?ie(j+";",n,a,l-1):ie(z(j," ","")+";",n,a,l-2),i);break;case 59:j+=";";default:q(y=te(j,r,a,f,o,c,u,g,m=[],x=[],l),s);if($===123)if(o===0)se(j,r,y,y,m,s,l,u,x);else switch(v===99&&O(j,3)===110?100:v){case 100:case 108:case 109:case 115:se(e,y,y,n&&q(te(e,y,y,0,0,c,u,g,c,m=[],l),x),c,x,l,u,n?m:x);break;default:se(j,y,y,y,[""],x,0,u,x);}}f=o=p=0,b=d=1,g=j="",l=t;break;case 58:l=1+M(j),p=h;default:if(b<1)if($==123)--b;else if($==125&&b++==0&&N()==125)continue;switch(j+=k($),$*b){case 38:d=o>0?1:(j+="\f",-1);break;case 44:u[f++]=(M(j)-1)*d,d=1;break;case 64:if(Q()===45)j+=X(P());v=Q(),o=l=M(g=j+=ne(R())),$++;break;case 45:if(h===45&&M(j)==2)b=0;}}return s}function te(e,r,a,n,s,t,u,i,f,o,l){var v=s-1;var p=s===0?t:[""];var h=S(p);for(var b=0,w=0,d=0;b<n;++b)for(var $=0,k=A(e,v+1,v=g(w=u[b])),m=e;$<h;++$)if(m=y(w>0?p[$]+" "+k:z(k,/&\f/g,p[$])))f[d++]=m;return J(e,r,a,s===0?c:i,f,o,l)}function ue(e,r,a){return J(e,r,a,n,k(L()),A(e,2,-2),0)}function ie(e,r,a,n){return J(e,r,a,s,A(e,0,n),A(e,n+1,-1),n)}function oe(e,r){var a="";var n=S(e);for(var c=0;c<n;c++)a+=r(e[c],c,e,r)||"";return a}function le(e,r,a,t){switch(e.type){case $:if(e.children.length)break;case i:case s:return e.return=e.return||e.value;case n:return "";case h:return e.return=e.value+"{"+oe(e.children,t)+"}";case c:e.value=e.props.join(",");}return M(a=oe(e.children,t))?e.return=e.value+"{"+a+"}":""}function ve(e){var r=S(e);return function(a,n,c,s){var t="";for(var u=0;u<r;u++)t+=e[u](a,n,c,s)||"";return t}}
647
+ var e="-ms-";var r$1="-moz-";var a="-webkit-";var n="comm";var c="rule";var s="decl";var i="@import";var h="@keyframes";var $="@layer";var g=Math.abs;var k=String.fromCharCode;var m=Object.assign;function x(e,r){return O(e,0)^45?(((r<<2^O(e,0))<<2^O(e,1))<<2^O(e,2))<<2^O(e,3):0}function y(e){return e.trim()}function j(e,r){return (e=r.exec(e))?e[0]:e}function z(e,r,a){return e.replace(r,a)}function C(e,r){return e.indexOf(r)}function O(e,r){return e.charCodeAt(r)|0}function A(e,r,a){return e.slice(r,a)}function M(e){return e.length}function S(e){return e.length}function q(e,r){return r.push(e),e}function B(e,r){return e.map(r).join("")}var D=1;var E=1;var F=0;var G=0;var H=0;var I="";function J(e,r,a,n,c,s,t){return {value:e,root:r,parent:a,type:n,props:c,children:s,line:D,column:E,length:t,return:""}}function K(e,r){return m(J("",null,null,"",null,null,0),e,{length:-e.length},r)}function L(){return H}function N(){H=G>0?O(I,--G):0;if(E--,H===10)E=1,D--;return H}function P(){H=G<F?O(I,G++):0;if(E++,H===10)E=1,D++;return H}function Q(){return O(I,G)}function R(){return G}function T(e,r){return A(I,e,r)}function U(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function V(e){return D=E=1,F=M(I=e),G=0,[]}function W(e){return I="",e}function X(e){return y(T(G-1,re(e===91?e+2:e===40?e+1:e)))}function Z(e){while(H=Q())if(H<33)P();else break;return U(e)>2||U(H)>3?"":" "}function ee(e,r){while(--r&&P())if(H<48||H>102||H>57&&H<65||H>70&&H<97)break;return T(e,R()+(r<6&&Q()==32&&P()==32))}function re(e){while(P())switch(H){case e:return G;case 34:case 39:if(e!==34&&e!==39)re(H);break;case 40:if(e===41)re(e);break;case 92:P();break}return G}function ae(e,r){while(P())if(e+H===47+10)break;else if(e+H===42+42&&Q()===47)break;return "/*"+T(r,G-1)+"*"+k(e===47?e:P())}function ne(e){while(!U(Q()))P();return T(e,G)}function ce(e){return W(se("",null,null,null,[""],e=V(e),0,[0],e))}function se(e,r,a,n,c,s,t,u,i){var f=0;var o=0;var l=t;var v=0;var p=0;var h=0;var b=1;var w=1;var d=1;var $=0;var g="";var m=c;var x=s;var y=n;var j=g;while(w)switch(h=$,$=P()){case 40:if(h!=108&&O(j,l-1)==58){if(C(j+=z(X($),"&","&\f"),"&\f")!=-1)d=-1;break}case 34:case 39:case 91:j+=X($);break;case 9:case 10:case 13:case 32:j+=Z(h);break;case 92:j+=ee(R()-1,7);continue;case 47:switch(Q()){case 42:case 47:q(ue(ae(P(),R()),r,a),i);break;default:j+="/";}break;case 123*b:u[f++]=M(j)*d;case 125*b:case 59:case 0:switch($){case 0:case 125:w=0;case 59+o:if(d==-1)j=z(j,/\f/g,"");if(p>0&&M(j)-l)q(p>32?ie(j+";",n,a,l-1):ie(z(j," ","")+";",n,a,l-2),i);break;case 59:j+=";";default:q(y=te(j,r,a,f,o,c,u,g,m=[],x=[],l),s);if($===123)if(o===0)se(j,r,y,y,m,s,l,u,x);else switch(v===99&&O(j,3)===110?100:v){case 100:case 108:case 109:case 115:se(e,y,y,n&&q(te(e,y,y,0,0,c,u,g,c,m=[],l),x),c,x,l,u,n?m:x);break;default:se(j,y,y,y,[""],x,0,u,x);}}f=o=p=0,b=d=1,g=j="",l=t;break;case 58:l=1+M(j),p=h;default:if(b<1)if($==123)--b;else if($==125&&b++==0&&N()==125)continue;switch(j+=k($),$*b){case 38:d=o>0?1:(j+="\f",-1);break;case 44:u[f++]=(M(j)-1)*d,d=1;break;case 64:if(Q()===45)j+=X(P());v=Q(),o=l=M(g=j+=ne(R())),$++;break;case 45:if(h===45&&M(j)==2)b=0;}}return s}function te(e,r,a,n,s,t,u,i,f,o,l){var v=s-1;var p=s===0?t:[""];var h=S(p);for(var b=0,w=0,d=0;b<n;++b)for(var $=0,k=A(e,v+1,v=g(w=u[b])),m=e;$<h;++$)if(m=y(w>0?p[$]+" "+k:z(k,/&\f/g,p[$])))f[d++]=m;return J(e,r,a,s===0?c:i,f,o,l)}function ue(e,r,a){return J(e,r,a,n,k(L()),A(e,2,-2),0)}function ie(e,r,a,n){return J(e,r,a,s,A(e,0,n),A(e,n+1,-1),n)}function oe(e,r){var a="";var n=S(e);for(var c=0;c<n;c++)a+=r(e[c],c,e,r)||"";return a}function le(e,r,a,t){switch(e.type){case $:if(e.children.length)break;case i:case s:return e.return=e.return||e.value;case n:return "";case h:return e.return=e.value+"{"+oe(e.children,t)+"}";case c:e.value=e.props.join(",");}return M(a=oe(e.children,t))?e.return=e.value+"{"+a+"}":""}function ve(e){var r=S(e);return function(a,n,c,s){var t="";for(var u=0;u<r;u++)t+=e[u](a,n,c,s)||"";return t}}function pe(e){return function(r){if(!r.root)if(r=r.return)e(r);}}
685
648
 
686
649
  var weakMemoize = function weakMemoize(func) {
687
- // $FlowFixMe flow doesn't include all non-primitive types as allowed for weakmaps
688
650
  var cache = new WeakMap();
689
651
  return function (arg) {
690
652
  if (cache.has(arg)) {
691
- // $FlowFixMe
653
+ // Use non-null assertion because we just checked that the cache `has` it
654
+ // This allows us to remove `undefined` from the return value
692
655
  return cache.get(arg);
693
656
  }
694
657
 
@@ -698,6 +661,16 @@
698
661
  };
699
662
  };
700
663
 
664
+ function memoize$1(fn) {
665
+ var cache = Object.create(null);
666
+ return function (arg) {
667
+ if (cache[arg] === undefined) cache[arg] = fn(arg);
668
+ return cache[arg];
669
+ };
670
+ }
671
+
672
+ var isBrowser$4 = typeof document !== 'undefined';
673
+
701
674
  var identifierWithPointTracking = function identifierWithPointTracking(begin, points, index) {
702
675
  var previous = 0;
703
676
  var character = 0;
@@ -776,8 +749,8 @@
776
749
  return;
777
750
  }
778
751
 
779
- var value = element.value,
780
- parent = element.parent;
752
+ var value = element.value;
753
+ var parent = element.parent;
781
754
  var isImplicitRule = element.column === parent.column && element.line === parent.line;
782
755
 
783
756
  while (parent.type !== 'rule') {
@@ -822,114 +795,6 @@
822
795
  }
823
796
  }
824
797
  };
825
- var ignoreFlag = 'emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason';
826
-
827
- var isIgnoringComment = function isIgnoringComment(element) {
828
- return element.type === 'comm' && element.children.indexOf(ignoreFlag) > -1;
829
- };
830
-
831
- var createUnsafeSelectorsAlarm = function createUnsafeSelectorsAlarm(cache) {
832
- return function (element, index, children) {
833
- if (element.type !== 'rule' || cache.compat) return;
834
- var unsafePseudoClasses = element.value.match(/(:first|:nth|:nth-last)-child/g);
835
-
836
- if (unsafePseudoClasses) {
837
- var isNested = !!element.parent; // in nested rules comments become children of the "auto-inserted" rule and that's always the `element.parent`
838
- //
839
- // considering this input:
840
- // .a {
841
- // .b /* comm */ {}
842
- // color: hotpink;
843
- // }
844
- // we get output corresponding to this:
845
- // .a {
846
- // & {
847
- // /* comm */
848
- // color: hotpink;
849
- // }
850
- // .b {}
851
- // }
852
-
853
- var commentContainer = isNested ? element.parent.children : // global rule at the root level
854
- children;
855
-
856
- for (var i = commentContainer.length - 1; i >= 0; i--) {
857
- var node = commentContainer[i];
858
-
859
- if (node.line < element.line) {
860
- break;
861
- } // it is quite weird but comments are *usually* put at `column: element.column - 1`
862
- // so we seek *from the end* for the node that is earlier than the rule's `element` and check that
863
- // this will also match inputs like this:
864
- // .a {
865
- // /* comm */
866
- // .b {}
867
- // }
868
- //
869
- // but that is fine
870
- //
871
- // it would be the easiest to change the placement of the comment to be the first child of the rule:
872
- // .a {
873
- // .b { /* comm */ }
874
- // }
875
- // with such inputs we wouldn't have to search for the comment at all
876
- // TODO: consider changing this comment placement in the next major version
877
-
878
-
879
- if (node.column < element.column) {
880
- if (isIgnoringComment(node)) {
881
- return;
882
- }
883
-
884
- break;
885
- }
886
- }
887
-
888
- unsafePseudoClasses.forEach(function (unsafePseudoClass) {
889
- console.error("The pseudo class \"" + unsafePseudoClass + "\" is potentially unsafe when doing server-side rendering. Try changing it to \"" + unsafePseudoClass.split('-child')[0] + "-of-type\".");
890
- });
891
- }
892
- };
893
- };
894
-
895
- var isImportRule = function isImportRule(element) {
896
- return element.type.charCodeAt(1) === 105 && element.type.charCodeAt(0) === 64;
897
- };
898
-
899
- var isPrependedWithRegularRules = function isPrependedWithRegularRules(index, children) {
900
- for (var i = index - 1; i >= 0; i--) {
901
- if (!isImportRule(children[i])) {
902
- return true;
903
- }
904
- }
905
-
906
- return false;
907
- }; // use this to remove incorrect elements from further processing
908
- // so they don't get handed to the `sheet` (or anything else)
909
- // as that could potentially lead to additional logs which in turn could be overhelming to the user
910
-
911
-
912
- var nullifyElement = function nullifyElement(element) {
913
- element.type = '';
914
- element.value = '';
915
- element["return"] = '';
916
- element.children = '';
917
- element.props = '';
918
- };
919
-
920
- var incorrectImportAlarm = function incorrectImportAlarm(element, index, children) {
921
- if (!isImportRule(element)) {
922
- return;
923
- }
924
-
925
- if (element.parent) {
926
- console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles.");
927
- nullifyElement(element);
928
- } else if (isPrependedWithRegularRules(index, children)) {
929
- console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules.");
930
- nullifyElement(element);
931
- }
932
- };
933
798
 
934
799
  /* eslint-disable no-fallthrough */
935
800
 
@@ -1143,13 +1008,9 @@
1143
1008
  }
1144
1009
  };
1145
1010
 
1146
- var isBrowser$5 = typeof document !== 'undefined';
1147
- var getServerStylisCache = isBrowser$5 ? undefined : weakMemoize(function () {
1011
+ var getServerStylisCache = isBrowser$4 ? undefined : weakMemoize(function () {
1148
1012
  return memoize$1(function () {
1149
- var cache = {};
1150
- return function (name) {
1151
- return cache[name];
1152
- };
1013
+ return {};
1153
1014
  });
1154
1015
  });
1155
1016
  var defaultStylisPlugins = [prefixer];
@@ -1157,11 +1018,7 @@
1157
1018
  var createCache = function createCache(options) {
1158
1019
  var key = options.key;
1159
1020
 
1160
- if (!key) {
1161
- throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\n" + "If multiple caches share the same key they might \"fight\" for each other's style elements.");
1162
- }
1163
-
1164
- if (isBrowser$5 && key === 'css') {
1021
+ if (isBrowser$4 && key === 'css') {
1165
1022
  var ssrStyles = document.querySelectorAll("style[data-emotion]:not([data-s])"); // get SSRed styles out of the way of React's hydration
1166
1023
  // document.head is a safe place to move them to(though note document.head is not necessarily the last place they will be)
1167
1024
  // note this very very intentionally targets all style elements regardless of the key to ensure
@@ -1179,6 +1036,7 @@
1179
1036
  if (dataEmotionAttribute.indexOf(' ') === -1) {
1180
1037
  return;
1181
1038
  }
1039
+
1182
1040
  document.head.appendChild(node);
1183
1041
  node.setAttribute('data-s', '');
1184
1042
  });
@@ -1186,23 +1044,16 @@
1186
1044
 
1187
1045
  var stylisPlugins = options.stylisPlugins || defaultStylisPlugins;
1188
1046
 
1189
- {
1190
- // $FlowFixMe
1191
- if (/[^a-z-]/.test(key)) {
1192
- throw new Error("Emotion key must only contain lower case alphabetical characters and - but \"" + key + "\" was passed");
1193
- }
1194
- }
1195
-
1196
1047
  var inserted = {};
1197
1048
  var container;
1198
1049
  var nodesToHydrate = [];
1199
1050
 
1200
- if (isBrowser$5) {
1051
+ if (isBrowser$4) {
1201
1052
  container = options.container || document.head;
1202
1053
  Array.prototype.forEach.call( // this means we will ignore elements which don't have a space in them which
1203
1054
  // means that the style elements we're looking at are only Emotion 11 server-rendered style elements
1204
1055
  document.querySelectorAll("style[data-emotion^=\"" + key + " \"]"), function (node) {
1205
- var attrib = node.getAttribute("data-emotion").split(' '); // $FlowFixMe
1056
+ var attrib = node.getAttribute("data-emotion").split(' ');
1206
1057
 
1207
1058
  for (var i = 1; i < attrib.length; i++) {
1208
1059
  inserted[attrib[i]] = true;
@@ -1216,28 +1067,11 @@
1216
1067
 
1217
1068
  var omnipresentPlugins = [compat, removeLabel];
1218
1069
 
1219
- {
1220
- omnipresentPlugins.push(createUnsafeSelectorsAlarm({
1221
- get compat() {
1222
- return cache.compat;
1223
- }
1224
-
1225
- }), incorrectImportAlarm);
1226
- }
1227
-
1228
- if (isBrowser$5) {
1070
+ if (!getServerStylisCache) {
1229
1071
  var currentSheet;
1230
- var finalizingPlugins = [le, function (element) {
1231
- if (!element.root) {
1232
- if (element["return"]) {
1233
- currentSheet.insert(element["return"]);
1234
- } else if (element.value && element.type !== n) {
1235
- // insert empty rule in non-production environments
1236
- // so @emotion/jest can grab `key` from the (JS)DOM for caches without any rules inserted yet
1237
- currentSheet.insert(element.value + "{}");
1238
- }
1239
- }
1240
- } ];
1072
+ var finalizingPlugins = [le, pe(function (rule) {
1073
+ currentSheet.insert(rule);
1074
+ })];
1241
1075
  var serializer = ve(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins));
1242
1076
 
1243
1077
  var stylis = function stylis(styles) {
@@ -1247,14 +1081,6 @@
1247
1081
  _insert = function insert(selector, serialized, sheet, shouldCache) {
1248
1082
  currentSheet = sheet;
1249
1083
 
1250
- if (serialized.map !== undefined) {
1251
- currentSheet = {
1252
- insert: function insert(rule) {
1253
- sheet.insert(rule + serialized.map);
1254
- }
1255
- };
1256
- }
1257
-
1258
1084
  stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles);
1259
1085
 
1260
1086
  if (shouldCache) {
@@ -1268,8 +1094,7 @@
1268
1094
 
1269
1095
  var _stylis = function _stylis(styles) {
1270
1096
  return oe(ce(styles), _serializer);
1271
- }; // $FlowFixMe
1272
-
1097
+ };
1273
1098
 
1274
1099
  var serverStylisCache = getServerStylisCache(stylisPlugins)(key);
1275
1100
 
@@ -1295,12 +1120,6 @@
1295
1120
  cache.inserted[name] = true;
1296
1121
  }
1297
1122
 
1298
- if ( // using === development instead of !== production
1299
- // because if people do ssr in tests, the source maps showing up would be annoying
1300
- serialized.map !== undefined) {
1301
- return rules + serialized.map;
1302
- }
1303
-
1304
1123
  return rules;
1305
1124
  } else {
1306
1125
  // in compat mode, we put the styles on the inserted cache so
@@ -1573,13 +1392,14 @@
1573
1392
  TYPE_STATICS[reactIs$1.ForwardRef] = FORWARD_REF_STATICS;
1574
1393
  TYPE_STATICS[reactIs$1.Memo] = MEMO_STATICS;
1575
1394
 
1576
- var isBrowser$4 = typeof document !== 'undefined';
1395
+ var isBrowser$3 = typeof document !== 'undefined';
1396
+
1577
1397
  function getRegisteredStyles(registered, registeredStyles, classNames) {
1578
1398
  var rawClassName = '';
1579
1399
  classNames.split(' ').forEach(function (className) {
1580
1400
  if (registered[className] !== undefined) {
1581
1401
  registeredStyles.push(registered[className] + ";");
1582
- } else {
1402
+ } else if (className) {
1583
1403
  rawClassName += className + " ";
1584
1404
  }
1585
1405
  });
@@ -1597,7 +1417,7 @@
1597
1417
  // in node since emotion-server relies on whether a style is in
1598
1418
  // the registered cache to know whether a style is global or not
1599
1419
  // also, note that this check will be dead code eliminated in the browser
1600
- isBrowser$4 === false && cache.compat !== undefined) && cache.registered[className] === undefined) {
1420
+ isBrowser$3 === false && cache.compat !== undefined) && cache.registered[className] === undefined) {
1601
1421
  cache.registered[className] = serialized.styles;
1602
1422
  }
1603
1423
  };
@@ -1612,14 +1432,14 @@
1612
1432
  do {
1613
1433
  var maybeStyles = cache.insert(serialized === current ? "." + className : '', current, cache.sheet, true);
1614
1434
 
1615
- if (!isBrowser$4 && maybeStyles !== undefined) {
1435
+ if (!isBrowser$3 && maybeStyles !== undefined) {
1616
1436
  stylesForSSR += maybeStyles;
1617
1437
  }
1618
1438
 
1619
1439
  current = current.next;
1620
1440
  } while (current !== undefined);
1621
1441
 
1622
- if (!isBrowser$4 && stylesForSSR.length !== 0) {
1442
+ if (!isBrowser$3 && stylesForSSR.length !== 0) {
1623
1443
  return stylesForSSR;
1624
1444
  }
1625
1445
  }
@@ -1713,6 +1533,7 @@
1713
1533
  opacity: 1,
1714
1534
  order: 1,
1715
1535
  orphans: 1,
1536
+ scale: 1,
1716
1537
  tabSize: 1,
1717
1538
  widows: 1,
1718
1539
  zIndex: 1,
@@ -1729,8 +1550,8 @@
1729
1550
  strokeWidth: 1
1730
1551
  };
1731
1552
 
1732
- var ILLEGAL_ESCAPE_SEQUENCE_ERROR$1 = "You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences";
1733
- var UNDEFINED_AS_OBJECT_KEY_ERROR = "You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).";
1553
+ var isDevelopment$2 = false;
1554
+
1734
1555
  var hyphenateRegex = /[A-Z]|^ms/g;
1735
1556
  var animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g;
1736
1557
 
@@ -1771,34 +1592,6 @@
1771
1592
  return value;
1772
1593
  };
1773
1594
 
1774
- {
1775
- var contentValuePattern = /(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/;
1776
- var contentValues = ['normal', 'none', 'initial', 'inherit', 'unset'];
1777
- var oldProcessStyleValue = processStyleValue;
1778
- var msPattern = /^-ms-/;
1779
- var hyphenPattern = /-(.)/g;
1780
- var hyphenatedCache = {};
1781
-
1782
- processStyleValue = function processStyleValue(key, value) {
1783
- if (key === 'content') {
1784
- if (typeof value !== 'string' || contentValues.indexOf(value) === -1 && !contentValuePattern.test(value) && (value.charAt(0) !== value.charAt(value.length - 1) || value.charAt(0) !== '"' && value.charAt(0) !== "'")) {
1785
- throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"" + value + "\"'`");
1786
- }
1787
- }
1788
-
1789
- var processed = oldProcessStyleValue(key, value);
1790
-
1791
- if (processed !== '' && !isCustomProperty(key) && key.indexOf('-') !== -1 && hyphenatedCache[key] === undefined) {
1792
- hyphenatedCache[key] = true;
1793
- console.error("Using kebab-case for css properties in objects is not supported. Did you mean " + key.replace(msPattern, 'ms-').replace(hyphenPattern, function (str, _char) {
1794
- return _char.toUpperCase();
1795
- }) + "?");
1796
- }
1797
-
1798
- return processed;
1799
- };
1800
- }
1801
-
1802
1595
  var noComponentSelectorMessage = 'Component selectors can only be used in conjunction with ' + '@emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware ' + 'compiler transform.';
1803
1596
 
1804
1597
  function handleInterpolation(mergedProps, registered, interpolation) {
@@ -1806,12 +1599,11 @@
1806
1599
  return '';
1807
1600
  }
1808
1601
 
1809
- if (interpolation.__emotion_styles !== undefined) {
1810
- if (interpolation.toString() === 'NO_COMPONENT_SELECTOR') {
1811
- throw new Error(noComponentSelectorMessage);
1812
- }
1602
+ var componentSelector = interpolation;
1603
+
1604
+ if (componentSelector.__emotion_styles !== undefined) {
1813
1605
 
1814
- return interpolation;
1606
+ return componentSelector;
1815
1607
  }
1816
1608
 
1817
1609
  switch (typeof interpolation) {
@@ -1822,17 +1614,21 @@
1822
1614
 
1823
1615
  case 'object':
1824
1616
  {
1825
- if (interpolation.anim === 1) {
1617
+ var keyframes = interpolation;
1618
+
1619
+ if (keyframes.anim === 1) {
1826
1620
  cursor = {
1827
- name: interpolation.name,
1828
- styles: interpolation.styles,
1621
+ name: keyframes.name,
1622
+ styles: keyframes.styles,
1829
1623
  next: cursor
1830
1624
  };
1831
- return interpolation.name;
1625
+ return keyframes.name;
1832
1626
  }
1833
1627
 
1834
- if (interpolation.styles !== undefined) {
1835
- var next = interpolation.next;
1628
+ var serializedStyles = interpolation;
1629
+
1630
+ if (serializedStyles.styles !== undefined) {
1631
+ var next = serializedStyles.next;
1836
1632
 
1837
1633
  if (next !== undefined) {
1838
1634
  // not the most efficient thing ever but this is a pretty rare case
@@ -1847,12 +1643,7 @@
1847
1643
  }
1848
1644
  }
1849
1645
 
1850
- var styles = interpolation.styles + ";";
1851
-
1852
- if (interpolation.map !== undefined) {
1853
- styles += interpolation.map;
1854
- }
1855
-
1646
+ var styles = serializedStyles.styles + ";";
1856
1647
  return styles;
1857
1648
  }
1858
1649
 
@@ -1866,37 +1657,21 @@
1866
1657
  var result = interpolation(mergedProps);
1867
1658
  cursor = previousCursor;
1868
1659
  return handleInterpolation(mergedProps, registered, result);
1869
- } else {
1870
- console.error('Functions that are interpolated in css calls will be stringified.\n' + 'If you want to have a css call based on props, create a function that returns a css call like this\n' + 'let dynamicStyle = (props) => css`color: ${props.color}`\n' + 'It can be called directly with props or interpolated in a styled call like this\n' + "let SomeComponent = styled('div')`${dynamicStyle}`");
1871
1660
  }
1872
1661
 
1873
1662
  break;
1874
1663
  }
1875
-
1876
- case 'string':
1877
- {
1878
- var matched = [];
1879
- var replaced = interpolation.replace(animationRegex, function (match, p1, p2) {
1880
- var fakeVarName = "animation" + matched.length;
1881
- matched.push("const " + fakeVarName + " = keyframes`" + p2.replace(/^@keyframes animation-\w+/, '') + "`");
1882
- return "${" + fakeVarName + "}";
1883
- });
1884
-
1885
- if (matched.length) {
1886
- console.error('`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\n' + 'Instead of doing this:\n\n' + [].concat(matched, ["`" + replaced + "`"]).join('\n') + '\n\nYou should wrap it with `css` like this:\n\n' + ("css`" + replaced + "`"));
1887
- }
1888
- }
1889
-
1890
- break;
1891
1664
  } // finalize string values (regular strings and functions interpolated into css calls)
1892
1665
 
1893
1666
 
1667
+ var asString = interpolation;
1668
+
1894
1669
  if (registered == null) {
1895
- return interpolation;
1670
+ return asString;
1896
1671
  }
1897
1672
 
1898
- var cached = registered[interpolation];
1899
- return cached !== undefined ? cached : interpolation;
1673
+ var cached = registered[asString];
1674
+ return cached !== undefined ? cached : asString;
1900
1675
  }
1901
1676
 
1902
1677
  function createStringFromObject(mergedProps, registered, obj) {
@@ -1907,44 +1682,43 @@
1907
1682
  string += handleInterpolation(mergedProps, registered, obj[i]) + ";";
1908
1683
  }
1909
1684
  } else {
1910
- for (var _key in obj) {
1911
- var value = obj[_key];
1685
+ for (var key in obj) {
1686
+ var value = obj[key];
1912
1687
 
1913
1688
  if (typeof value !== 'object') {
1914
- if (registered != null && registered[value] !== undefined) {
1915
- string += _key + "{" + registered[value] + "}";
1916
- } else if (isProcessableValue(value)) {
1917
- string += processStyleName(_key) + ":" + processStyleValue(_key, value) + ";";
1689
+ var asString = value;
1690
+
1691
+ if (registered != null && registered[asString] !== undefined) {
1692
+ string += key + "{" + registered[asString] + "}";
1693
+ } else if (isProcessableValue(asString)) {
1694
+ string += processStyleName(key) + ":" + processStyleValue(key, asString) + ";";
1918
1695
  }
1919
1696
  } else {
1920
- if (_key === 'NO_COMPONENT_SELECTOR' && "development" !== 'production') {
1697
+ if (key === 'NO_COMPONENT_SELECTOR' && isDevelopment$2) {
1921
1698
  throw new Error(noComponentSelectorMessage);
1922
1699
  }
1923
1700
 
1924
1701
  if (Array.isArray(value) && typeof value[0] === 'string' && (registered == null || registered[value[0]] === undefined)) {
1925
1702
  for (var _i = 0; _i < value.length; _i++) {
1926
1703
  if (isProcessableValue(value[_i])) {
1927
- string += processStyleName(_key) + ":" + processStyleValue(_key, value[_i]) + ";";
1704
+ string += processStyleName(key) + ":" + processStyleValue(key, value[_i]) + ";";
1928
1705
  }
1929
1706
  }
1930
1707
  } else {
1931
1708
  var interpolated = handleInterpolation(mergedProps, registered, value);
1932
1709
 
1933
- switch (_key) {
1710
+ switch (key) {
1934
1711
  case 'animation':
1935
1712
  case 'animationName':
1936
1713
  {
1937
- string += processStyleName(_key) + ":" + interpolated + ";";
1714
+ string += processStyleName(key) + ":" + interpolated + ";";
1938
1715
  break;
1939
1716
  }
1940
1717
 
1941
1718
  default:
1942
1719
  {
1943
- if (_key === 'undefined') {
1944
- console.error(UNDEFINED_AS_OBJECT_KEY_ERROR);
1945
- }
1946
1720
 
1947
- string += _key + "{" + interpolated + "}";
1721
+ string += key + "{" + interpolated + "}";
1948
1722
  }
1949
1723
  }
1950
1724
  }
@@ -1955,17 +1729,11 @@
1955
1729
  return string;
1956
1730
  }
1957
1731
 
1958
- var labelPattern = /label:\s*([^\s;\n{]+)\s*(;|$)/g;
1959
- var sourceMapPattern;
1960
-
1961
- {
1962
- sourceMapPattern = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;
1963
- } // this is the cursor for keyframes
1732
+ var labelPattern = /label:\s*([^\s;{]+)\s*(;|$)/g; // this is the cursor for keyframes
1964
1733
  // keyframes are stored on the SerializedStyles object as a linked list
1965
1734
 
1966
-
1967
1735
  var cursor;
1968
- var serializeStyles = function serializeStyles(args, registered, mergedProps) {
1736
+ function serializeStyles(args, registered, mergedProps) {
1969
1737
  if (args.length === 1 && typeof args[0] === 'object' && args[0] !== null && args[0].styles !== undefined) {
1970
1738
  return args[0];
1971
1739
  }
@@ -1979,11 +1747,9 @@
1979
1747
  stringMode = false;
1980
1748
  styles += handleInterpolation(mergedProps, registered, strings);
1981
1749
  } else {
1982
- if (strings[0] === undefined) {
1983
- console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR$1);
1984
- }
1750
+ var asTemplateStringsArr = strings;
1985
1751
 
1986
- styles += strings[0];
1752
+ styles += asTemplateStringsArr[0];
1987
1753
  } // we start at 1 since we've already handled the first arg
1988
1754
 
1989
1755
 
@@ -1991,21 +1757,10 @@
1991
1757
  styles += handleInterpolation(mergedProps, registered, args[i]);
1992
1758
 
1993
1759
  if (stringMode) {
1994
- if (strings[i] === undefined) {
1995
- console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR$1);
1996
- }
1760
+ var templateStringsArr = strings;
1997
1761
 
1998
- styles += strings[i];
1762
+ styles += templateStringsArr[i];
1999
1763
  }
2000
- }
2001
-
2002
- var sourceMap;
2003
-
2004
- {
2005
- styles = styles.replace(sourceMapPattern, function (match) {
2006
- sourceMap = match;
2007
- return '';
2008
- });
2009
1764
  } // using a global regex with .exec is stateful so lastIndex has to be reset each time
2010
1765
 
2011
1766
 
@@ -2014,38 +1769,31 @@
2014
1769
  var match; // https://esbench.com/bench/5b809c2cf2949800a0f61fb5
2015
1770
 
2016
1771
  while ((match = labelPattern.exec(styles)) !== null) {
2017
- identifierName += '-' + // $FlowFixMe we know it's not null
2018
- match[1];
1772
+ identifierName += '-' + match[1];
2019
1773
  }
2020
1774
 
2021
1775
  var name = murmur2(styles) + identifierName;
2022
1776
 
2023
- {
2024
- // $FlowFixMe SerializedStyles type doesn't have toString property (and we don't want to add it)
2025
- return {
2026
- name: name,
2027
- styles: styles,
2028
- map: sourceMap,
2029
- next: cursor,
2030
- toString: function toString() {
2031
- return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
2032
- }
2033
- };
2034
- }
2035
- };
1777
+ return {
1778
+ name: name,
1779
+ styles: styles,
1780
+ next: cursor
1781
+ };
1782
+ }
2036
1783
 
2037
- var isBrowser$3 = typeof document !== 'undefined';
1784
+ var isBrowser$2 = typeof document !== 'undefined';
2038
1785
 
2039
1786
  var syncFallback = function syncFallback(create) {
2040
1787
  return create();
2041
1788
  };
2042
1789
 
2043
1790
  var useInsertionEffect = React__namespace['useInsertion' + 'Effect'] ? React__namespace['useInsertion' + 'Effect'] : false;
2044
- var useInsertionEffectAlwaysWithSyncFallback = !isBrowser$3 ? syncFallback : useInsertionEffect || syncFallback;
1791
+ var useInsertionEffectAlwaysWithSyncFallback = !isBrowser$2 ? syncFallback : useInsertionEffect || syncFallback;
2045
1792
  var useInsertionEffectWithLayoutFallback = useInsertionEffect || React__namespace.useLayoutEffect;
2046
1793
 
2047
- var isBrowser$2 = typeof document !== 'undefined';
2048
- var hasOwn = {}.hasOwnProperty;
1794
+ var isDevelopment$1 = false;
1795
+
1796
+ var isBrowser$1 = typeof document !== 'undefined';
2049
1797
 
2050
1798
  var EmotionCacheContext = /* #__PURE__ */React__namespace.createContext( // we're doing this to avoid preconstruct's dead code elimination in this one case
2051
1799
  // because this module is primarily intended for the browser and node
@@ -2057,14 +1805,9 @@
2057
1805
  key: 'css'
2058
1806
  }) : null);
2059
1807
 
2060
- {
2061
- EmotionCacheContext.displayName = 'EmotionCacheContext';
2062
- }
2063
-
2064
1808
  var CacheProvider = EmotionCacheContext.Provider;
2065
1809
 
2066
1810
  var withEmotionCache = function withEmotionCache(func) {
2067
- // $FlowFixMe
2068
1811
  return /*#__PURE__*/React.forwardRef(function (props, ref) {
2069
1812
  // the cache will never be null in the browser
2070
1813
  var cache = React.useContext(EmotionCacheContext);
@@ -2072,7 +1815,7 @@
2072
1815
  });
2073
1816
  };
2074
1817
 
2075
- if (!isBrowser$2) {
1818
+ if (!isBrowser$1) {
2076
1819
  withEmotionCache = function withEmotionCache(func) {
2077
1820
  return function (props) {
2078
1821
  var cache = React.useContext(EmotionCacheContext);
@@ -2098,14 +1841,25 @@
2098
1841
 
2099
1842
  var ThemeContext$2 = /* #__PURE__ */React__namespace.createContext({});
2100
1843
 
2101
- {
2102
- ThemeContext$2.displayName = 'EmotionThemeContext';
2103
- }
1844
+ var hasOwn = {}.hasOwnProperty;
2104
1845
 
2105
1846
  var typePropName = '__EMOTION_TYPE_PLEASE_DO_NOT_USE__';
2106
- var labelPropName = '__EMOTION_LABEL_PLEASE_DO_NOT_USE__';
1847
+ var createEmotionProps = function createEmotionProps(type, props) {
1848
+
1849
+ var newProps = {};
1850
+
1851
+ for (var _key in props) {
1852
+ if (hasOwn.call(props, _key)) {
1853
+ newProps[_key] = props[_key];
1854
+ }
1855
+ }
1856
+
1857
+ newProps[typePropName] = type; // Runtime labeling is an opt-in feature because:
2107
1858
 
2108
- var Insertion$2 = function Insertion(_ref) {
1859
+ return newProps;
1860
+ };
1861
+
1862
+ var Insertion$1 = function Insertion(_ref) {
2109
1863
  var cache = _ref.cache,
2110
1864
  serialized = _ref.serialized,
2111
1865
  isStringTag = _ref.isStringTag;
@@ -2114,7 +1868,7 @@
2114
1868
  return insertStyles(cache, serialized, isStringTag);
2115
1869
  });
2116
1870
 
2117
- if (!isBrowser$2 && rules !== undefined) {
1871
+ if (!isBrowser$1 && rules !== undefined) {
2118
1872
  var _ref2;
2119
1873
 
2120
1874
  var serializedNames = serialized.name;
@@ -2154,35 +1908,29 @@
2154
1908
 
2155
1909
  var serialized = serializeStyles(registeredStyles, undefined, React__namespace.useContext(ThemeContext$2));
2156
1910
 
2157
- if (serialized.name.indexOf('-') === -1) {
2158
- var labelFromStack = props[labelPropName];
2159
-
2160
- if (labelFromStack) {
2161
- serialized = serializeStyles([serialized, 'label:' + labelFromStack + ';']);
2162
- }
2163
- }
2164
-
2165
1911
  className += cache.key + "-" + serialized.name;
2166
1912
  var newProps = {};
2167
1913
 
2168
- for (var key in props) {
2169
- if (hasOwn.call(props, key) && key !== 'css' && key !== typePropName && (key !== labelPropName)) {
2170
- newProps[key] = props[key];
1914
+ for (var _key2 in props) {
1915
+ if (hasOwn.call(props, _key2) && _key2 !== 'css' && _key2 !== typePropName && (!isDevelopment$1 )) {
1916
+ newProps[_key2] = props[_key2];
2171
1917
  }
2172
1918
  }
2173
1919
 
2174
- newProps.ref = ref;
2175
1920
  newProps.className = className;
2176
- return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, /*#__PURE__*/React__namespace.createElement(Insertion$2, {
1921
+
1922
+ if (ref) {
1923
+ newProps.ref = ref;
1924
+ }
1925
+
1926
+ return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, /*#__PURE__*/React__namespace.createElement(Insertion$1, {
2177
1927
  cache: cache,
2178
1928
  serialized: serialized,
2179
1929
  isStringTag: typeof WrappedComponent === 'string'
2180
1930
  }), /*#__PURE__*/React__namespace.createElement(WrappedComponent, newProps));
2181
1931
  });
2182
1932
 
2183
- {
2184
- Emotion.displayName = 'EmotionCssPropInternal';
2185
- }
1933
+ var Emotion$1 = Emotion;
2186
1934
 
2187
1935
  var _extends_1 = createCommonjsModule(function (module) {
2188
1936
  function _extends() {
@@ -2204,156 +1952,41 @@
2204
1952
 
2205
1953
  unwrapExports(_extends_1);
2206
1954
 
2207
- var pkg = {
2208
- name: "@emotion/react",
2209
- version: "11.11.4",
2210
- main: "dist/emotion-react.cjs.js",
2211
- module: "dist/emotion-react.esm.js",
2212
- browser: {
2213
- "./dist/emotion-react.esm.js": "./dist/emotion-react.browser.esm.js"
2214
- },
2215
- exports: {
2216
- ".": {
2217
- module: {
2218
- worker: "./dist/emotion-react.worker.esm.js",
2219
- browser: "./dist/emotion-react.browser.esm.js",
2220
- "default": "./dist/emotion-react.esm.js"
2221
- },
2222
- "import": "./dist/emotion-react.cjs.mjs",
2223
- "default": "./dist/emotion-react.cjs.js"
2224
- },
2225
- "./jsx-runtime": {
2226
- module: {
2227
- worker: "./jsx-runtime/dist/emotion-react-jsx-runtime.worker.esm.js",
2228
- browser: "./jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js",
2229
- "default": "./jsx-runtime/dist/emotion-react-jsx-runtime.esm.js"
2230
- },
2231
- "import": "./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.mjs",
2232
- "default": "./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js"
2233
- },
2234
- "./_isolated-hnrs": {
2235
- module: {
2236
- worker: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.worker.esm.js",
2237
- browser: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js",
2238
- "default": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js"
2239
- },
2240
- "import": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.mjs",
2241
- "default": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js"
2242
- },
2243
- "./jsx-dev-runtime": {
2244
- module: {
2245
- worker: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.worker.esm.js",
2246
- browser: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js",
2247
- "default": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js"
2248
- },
2249
- "import": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.mjs",
2250
- "default": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js"
2251
- },
2252
- "./package.json": "./package.json",
2253
- "./types/css-prop": "./types/css-prop.d.ts",
2254
- "./macro": {
2255
- types: {
2256
- "import": "./macro.d.mts",
2257
- "default": "./macro.d.ts"
2258
- },
2259
- "default": "./macro.js"
2260
- }
2261
- },
2262
- types: "types/index.d.ts",
2263
- files: [
2264
- "src",
2265
- "dist",
2266
- "jsx-runtime",
2267
- "jsx-dev-runtime",
2268
- "_isolated-hnrs",
2269
- "types/*.d.ts",
2270
- "macro.*"
2271
- ],
2272
- sideEffects: false,
2273
- author: "Emotion Contributors",
2274
- license: "MIT",
2275
- scripts: {
2276
- "test:typescript": "dtslint types"
2277
- },
2278
- dependencies: {
2279
- "@babel/runtime": "^7.18.3",
2280
- "@emotion/babel-plugin": "^11.11.0",
2281
- "@emotion/cache": "^11.11.0",
2282
- "@emotion/serialize": "^1.1.3",
2283
- "@emotion/use-insertion-effect-with-fallbacks": "^1.0.1",
2284
- "@emotion/utils": "^1.2.1",
2285
- "@emotion/weak-memoize": "^0.3.1",
2286
- "hoist-non-react-statics": "^3.3.1"
2287
- },
2288
- peerDependencies: {
2289
- react: ">=16.8.0"
2290
- },
2291
- peerDependenciesMeta: {
2292
- "@types/react": {
2293
- optional: true
2294
- }
2295
- },
2296
- devDependencies: {
2297
- "@definitelytyped/dtslint": "0.0.112",
2298
- "@emotion/css": "11.11.2",
2299
- "@emotion/css-prettifier": "1.1.3",
2300
- "@emotion/server": "11.11.0",
2301
- "@emotion/styled": "11.11.0",
2302
- "html-tag-names": "^1.1.2",
2303
- react: "16.14.0",
2304
- "svg-tag-names": "^1.1.1",
2305
- typescript: "^4.5.5"
2306
- },
2307
- repository: "https://github.com/emotion-js/emotion/tree/main/packages/react",
2308
- publishConfig: {
2309
- access: "public"
2310
- },
2311
- "umd:main": "dist/emotion-react.umd.min.js",
2312
- preconstruct: {
2313
- entrypoints: [
2314
- "./index.js",
2315
- "./jsx-runtime.js",
2316
- "./jsx-dev-runtime.js",
2317
- "./_isolated-hnrs.js"
2318
- ],
2319
- umdName: "emotionReact",
2320
- exports: {
2321
- envConditions: [
2322
- "browser",
2323
- "worker"
2324
- ],
2325
- extra: {
2326
- "./types/css-prop": "./types/css-prop.d.ts",
2327
- "./macro": {
2328
- types: {
2329
- "import": "./macro.d.mts",
2330
- "default": "./macro.d.ts"
2331
- },
2332
- "default": "./macro.js"
2333
- }
2334
- }
2335
- }
2336
- }
1955
+ var jsx = function jsx(type, props) {
1956
+ // eslint-disable-next-line prefer-rest-params
1957
+ var args = arguments;
1958
+
1959
+ if (props == null || !hasOwn.call(props, 'css')) {
1960
+ return React__namespace.createElement.apply(undefined, args);
1961
+ }
1962
+
1963
+ var argsLength = args.length;
1964
+ var createElementArgArray = new Array(argsLength);
1965
+ createElementArgArray[0] = Emotion$1;
1966
+ createElementArgArray[1] = createEmotionProps(type, props);
1967
+
1968
+ for (var i = 2; i < argsLength; i++) {
1969
+ createElementArgArray[i] = args[i];
1970
+ }
1971
+
1972
+ return React__namespace.createElement.apply(null, createElementArgArray);
2337
1973
  };
2338
1974
 
2339
- var warnedAboutCssPropForGlobal = false; // maintain place over rerenders.
1975
+ (function (_jsx) {
1976
+ var JSX;
1977
+
1978
+ (function (_JSX) {})(JSX || (JSX = _jsx.JSX || (_jsx.JSX = {})));
1979
+ })(jsx || (jsx = {}));
1980
+
2340
1981
  // initial render from browser, insertBefore context.sheet.tags[0] or if a style hasn't been inserted there yet, appendChild
2341
1982
  // initial client-side render from SSR, use place of hydrating tag
2342
1983
 
2343
1984
  var Global = /* #__PURE__ */withEmotionCache(function (props, cache) {
2344
- if (!warnedAboutCssPropForGlobal && ( // check for className as well since the user is
2345
- // probably using the custom createElement which
2346
- // means it will be turned into a className prop
2347
- // $FlowFixMe I don't really want to add it to the type since it shouldn't be used
2348
- props.className || props.css)) {
2349
- console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?");
2350
- warnedAboutCssPropForGlobal = true;
2351
- }
2352
1985
 
2353
1986
  var styles = props.styles;
2354
1987
  var serialized = serializeStyles([styles], undefined, React__namespace.useContext(ThemeContext$2));
2355
1988
 
2356
- if (!isBrowser$2) {
1989
+ if (!isBrowser$1) {
2357
1990
  var _ref;
2358
1991
 
2359
1992
  var serializedNames = serialized.name;
@@ -2395,8 +2028,7 @@
2395
2028
  container: cache.sheet.container,
2396
2029
  speedy: cache.sheet.isSpeedy
2397
2030
  });
2398
- var rehydrating = false; // $FlowFixMe
2399
-
2031
+ var rehydrating = false;
2400
2032
  var node = document.querySelector("style[data-emotion=\"" + key + " " + serialized.name + "\"]");
2401
2033
 
2402
2034
  if (cache.sheet.tags.length) {
@@ -2442,10 +2074,6 @@
2442
2074
  return null;
2443
2075
  });
2444
2076
 
2445
- {
2446
- Global.displayName = 'EmotionGlobal';
2447
- }
2448
-
2449
2077
  function css() {
2450
2078
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
2451
2079
  args[_key] = arguments[_key];
@@ -2454,10 +2082,9 @@
2454
2082
  return serializeStyles(args);
2455
2083
  }
2456
2084
 
2457
- var keyframes = function keyframes() {
2085
+ function keyframes() {
2458
2086
  var insertable = css.apply(void 0, arguments);
2459
- var name = "animation-" + insertable.name; // $FlowFixMe
2460
-
2087
+ var name = "animation-" + insertable.name;
2461
2088
  return {
2462
2089
  name: name,
2463
2090
  styles: "@keyframes " + name + "{" + insertable.styles + "}",
@@ -2466,191 +2093,45 @@
2466
2093
  return "_EMO_" + this.name + "_" + this.styles + "_EMO_";
2467
2094
  }
2468
2095
  };
2469
- };
2470
-
2471
- var classnames = function classnames(args) {
2472
- var len = args.length;
2473
- var i = 0;
2474
- var cls = '';
2096
+ }
2475
2097
 
2476
- for (; i < len; i++) {
2477
- var arg = args[i];
2478
- if (arg == null) continue;
2479
- var toAdd = void 0;
2098
+ // eslint-disable-next-line no-undef
2099
+ 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|fetchpriority|fetchPriority|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
2480
2100
 
2481
- switch (typeof arg) {
2482
- case 'boolean':
2483
- break;
2101
+ var isPropValid = /* #__PURE__ */memoize$1(function (prop) {
2102
+ return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111
2103
+ /* o */
2104
+ && prop.charCodeAt(1) === 110
2105
+ /* n */
2106
+ && prop.charCodeAt(2) < 91;
2107
+ }
2108
+ /* Z+1 */
2109
+ );
2484
2110
 
2485
- case 'object':
2486
- {
2487
- if (Array.isArray(arg)) {
2488
- toAdd = classnames(arg);
2489
- } else {
2490
- if (arg.styles !== undefined && arg.name !== undefined) {
2491
- console.error('You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n' + '`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component.');
2492
- }
2111
+ var isBrowser = typeof document !== 'undefined';
2493
2112
 
2494
- toAdd = '';
2113
+ var isDevelopment = false;
2495
2114
 
2496
- for (var k in arg) {
2497
- if (arg[k] && k) {
2498
- toAdd && (toAdd += ' ');
2499
- toAdd += k;
2500
- }
2501
- }
2502
- }
2115
+ var testOmitPropsOnStringTag = isPropValid;
2503
2116
 
2504
- break;
2505
- }
2117
+ var testOmitPropsOnComponent = function testOmitPropsOnComponent(key) {
2118
+ return key !== 'theme';
2119
+ };
2506
2120
 
2507
- default:
2508
- {
2509
- toAdd = arg;
2510
- }
2511
- }
2121
+ var getDefaultShouldForwardProp = function getDefaultShouldForwardProp(tag) {
2122
+ return typeof tag === 'string' && // 96 is one less than the char code
2123
+ // for "a" so this is checking that
2124
+ // it's a lowercase character
2125
+ tag.charCodeAt(0) > 96 ? testOmitPropsOnStringTag : testOmitPropsOnComponent;
2126
+ };
2127
+ var composeShouldForwardProps = function composeShouldForwardProps(tag, options, isReal) {
2128
+ var shouldForwardProp;
2512
2129
 
2513
- if (toAdd) {
2514
- cls && (cls += ' ');
2515
- cls += toAdd;
2516
- }
2517
- }
2518
-
2519
- return cls;
2520
- };
2521
-
2522
- function merge$1(registered, css, className) {
2523
- var registeredStyles = [];
2524
- var rawClassName = getRegisteredStyles(registered, registeredStyles, className);
2525
-
2526
- if (registeredStyles.length < 2) {
2527
- return className;
2528
- }
2529
-
2530
- return rawClassName + css(registeredStyles);
2531
- }
2532
-
2533
- var Insertion$1 = function Insertion(_ref) {
2534
- var cache = _ref.cache,
2535
- serializedArr = _ref.serializedArr;
2536
- var rules = useInsertionEffectAlwaysWithSyncFallback(function () {
2537
- var rules = '';
2538
-
2539
- for (var i = 0; i < serializedArr.length; i++) {
2540
- var res = insertStyles(cache, serializedArr[i], false);
2541
-
2542
- if (!isBrowser$2 && res !== undefined) {
2543
- rules += res;
2544
- }
2545
- }
2546
-
2547
- if (!isBrowser$2) {
2548
- return rules;
2549
- }
2550
- });
2551
-
2552
- if (!isBrowser$2 && rules.length !== 0) {
2553
- var _ref2;
2554
-
2555
- return /*#__PURE__*/React__namespace.createElement("style", (_ref2 = {}, _ref2["data-emotion"] = cache.key + " " + serializedArr.map(function (serialized) {
2556
- return serialized.name;
2557
- }).join(' '), _ref2.dangerouslySetInnerHTML = {
2558
- __html: rules
2559
- }, _ref2.nonce = cache.sheet.nonce, _ref2));
2560
- }
2561
-
2562
- return null;
2563
- };
2564
-
2565
- var ClassNames = /* #__PURE__ */withEmotionCache(function (props, cache) {
2566
- var hasRendered = false;
2567
- var serializedArr = [];
2568
-
2569
- var css = function css() {
2570
- if (hasRendered && "development" !== 'production') {
2571
- throw new Error('css can only be used during render');
2572
- }
2573
-
2574
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
2575
- args[_key] = arguments[_key];
2576
- }
2577
-
2578
- var serialized = serializeStyles(args, cache.registered);
2579
- serializedArr.push(serialized); // registration has to happen here as the result of this might get consumed by `cx`
2580
-
2581
- registerStyles(cache, serialized, false);
2582
- return cache.key + "-" + serialized.name;
2583
- };
2584
-
2585
- var cx = function cx() {
2586
- if (hasRendered && "development" !== 'production') {
2587
- throw new Error('cx can only be used during render');
2588
- }
2589
-
2590
- for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
2591
- args[_key2] = arguments[_key2];
2592
- }
2593
-
2594
- return merge$1(cache.registered, css, classnames(args));
2595
- };
2596
-
2597
- var content = {
2598
- css: css,
2599
- cx: cx,
2600
- theme: React__namespace.useContext(ThemeContext$2)
2601
- };
2602
- var ele = props.children(content);
2603
- hasRendered = true;
2604
- return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, /*#__PURE__*/React__namespace.createElement(Insertion$1, {
2605
- cache: cache,
2606
- serializedArr: serializedArr
2607
- }), ele);
2608
- });
2609
-
2610
- {
2611
- ClassNames.displayName = 'EmotionClassNames';
2612
- }
2613
-
2614
- {
2615
- var isBrowser$1 = typeof document !== 'undefined'; // #1727, #2905 for some reason Jest and Vitest evaluate modules twice if some consuming module gets mocked
2616
-
2617
- var isTestEnv = typeof jest !== 'undefined' || typeof vi !== 'undefined';
2618
-
2619
- if (isBrowser$1 && !isTestEnv) {
2620
- // globalThis has wide browser support - https://caniuse.com/?search=globalThis, Node.js 12 and later
2621
- var globalContext = // $FlowIgnore
2622
- typeof globalThis !== 'undefined' ? globalThis // eslint-disable-line no-undef
2623
- : isBrowser$1 ? window : global$1;
2624
- var globalKey = "__EMOTION_REACT_" + pkg.version.split('.')[0] + "__";
2625
-
2626
- if (globalContext[globalKey]) {
2627
- console.warn('You are loading @emotion/react when it is already loaded. Running ' + 'multiple instances may cause problems. This can happen if multiple ' + 'versions are used, or if multiple builds of the same version are ' + 'used.');
2628
- }
2629
-
2630
- globalContext[globalKey] = true;
2631
- }
2632
- }
2633
-
2634
- var testOmitPropsOnStringTag = isPropValid;
2635
-
2636
- var testOmitPropsOnComponent = function testOmitPropsOnComponent(key) {
2637
- return key !== 'theme';
2638
- };
2639
-
2640
- var getDefaultShouldForwardProp = function getDefaultShouldForwardProp(tag) {
2641
- return typeof tag === 'string' && // 96 is one less than the char code
2642
- // for "a" so this is checking that
2643
- // it's a lowercase character
2644
- tag.charCodeAt(0) > 96 ? testOmitPropsOnStringTag : testOmitPropsOnComponent;
2645
- };
2646
- var composeShouldForwardProps = function composeShouldForwardProps(tag, options, isReal) {
2647
- var shouldForwardProp;
2648
-
2649
- if (options) {
2650
- var optionsShouldForwardProp = options.shouldForwardProp;
2651
- shouldForwardProp = tag.__emotion_forwardProp && optionsShouldForwardProp ? function (propName) {
2652
- return tag.__emotion_forwardProp(propName) && optionsShouldForwardProp(propName);
2653
- } : optionsShouldForwardProp;
2130
+ if (options) {
2131
+ var optionsShouldForwardProp = options.shouldForwardProp;
2132
+ shouldForwardProp = tag.__emotion_forwardProp && optionsShouldForwardProp ? function (propName) {
2133
+ return tag.__emotion_forwardProp(propName) && optionsShouldForwardProp(propName);
2134
+ } : optionsShouldForwardProp;
2654
2135
  }
2655
2136
 
2656
2137
  if (typeof shouldForwardProp !== 'function' && isReal) {
@@ -2660,9 +2141,6 @@
2660
2141
  return shouldForwardProp;
2661
2142
  };
2662
2143
 
2663
- var ILLEGAL_ESCAPE_SEQUENCE_ERROR = "You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences";
2664
- var isBrowser = typeof document !== 'undefined';
2665
-
2666
2144
  var Insertion = function Insertion(_ref) {
2667
2145
  var cache = _ref.cache,
2668
2146
  serialized = _ref.serialized,
@@ -2692,11 +2170,6 @@
2692
2170
  };
2693
2171
 
2694
2172
  var createStyled$1 = function createStyled(tag, options) {
2695
- {
2696
- if (tag === undefined) {
2697
- throw new Error('You are trying to create a styled element with an undefined component.\nYou may have forgotten to import it.');
2698
- }
2699
- }
2700
2173
 
2701
2174
  var isReal = tag.__emotion_real === tag;
2702
2175
  var baseTag = isReal && tag.__emotion_base || tag;
@@ -2712,6 +2185,7 @@
2712
2185
  var defaultShouldForwardProp = shouldForwardProp || getDefaultShouldForwardProp(baseTag);
2713
2186
  var shouldUseAs = !defaultShouldForwardProp('as');
2714
2187
  return function () {
2188
+ // eslint-disable-next-line prefer-rest-params
2715
2189
  var args = arguments;
2716
2190
  var styles = isReal && tag.__emotion_styles !== undefined ? tag.__emotion_styles.slice(0) : [];
2717
2191
 
@@ -2720,25 +2194,20 @@
2720
2194
  }
2721
2195
 
2722
2196
  if (args[0] == null || args[0].raw === undefined) {
2197
+ // eslint-disable-next-line prefer-spread
2723
2198
  styles.push.apply(styles, args);
2724
2199
  } else {
2725
- if (args[0][0] === undefined) {
2726
- console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR);
2727
- }
2200
+ var templateStringsArr = args[0];
2728
2201
 
2729
- styles.push(args[0][0]);
2202
+ styles.push(templateStringsArr[0]);
2730
2203
  var len = args.length;
2731
2204
  var i = 1;
2732
2205
 
2733
2206
  for (; i < len; i++) {
2734
- if (args[0][i] === undefined) {
2735
- console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR);
2736
- }
2737
2207
 
2738
- styles.push(args[i], args[0][i]);
2208
+ styles.push(args[i], templateStringsArr[i]);
2739
2209
  }
2740
- } // $FlowFixMe: we need to cast StatelessFunctionalComponent to our PrivateStyledComponent class
2741
-
2210
+ }
2742
2211
 
2743
2212
  var Styled = withEmotionCache(function (props, cache, ref) {
2744
2213
  var FinalTag = shouldUseAs && props.as || baseTag;
@@ -2775,14 +2244,17 @@
2775
2244
  for (var _key in props) {
2776
2245
  if (shouldUseAs && _key === 'as') continue;
2777
2246
 
2778
- if ( // $FlowFixMe
2779
- finalShouldForwardProp(_key)) {
2247
+ if (finalShouldForwardProp(_key)) {
2780
2248
  newProps[_key] = props[_key];
2781
2249
  }
2782
2250
  }
2783
2251
 
2784
2252
  newProps.className = className;
2785
- newProps.ref = ref;
2253
+
2254
+ if (ref) {
2255
+ newProps.ref = ref;
2256
+ }
2257
+
2786
2258
  return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, /*#__PURE__*/React__namespace.createElement(Insertion, {
2787
2259
  cache: cache,
2788
2260
  serialized: serialized,
@@ -2797,19 +2269,19 @@
2797
2269
  Styled.__emotion_forwardProp = shouldForwardProp;
2798
2270
  Object.defineProperty(Styled, 'toString', {
2799
2271
  value: function value() {
2800
- if (targetClassName === undefined && "development" !== 'production') {
2272
+ if (targetClassName === undefined && isDevelopment) {
2801
2273
  return 'NO_COMPONENT_SELECTOR';
2802
- } // $FlowFixMe: coerce undefined to string
2803
-
2274
+ }
2804
2275
 
2805
2276
  return "." + targetClassName;
2806
2277
  }
2807
2278
  });
2808
2279
 
2809
2280
  Styled.withComponent = function (nextTag, nextOptions) {
2810
- return createStyled(nextTag, _extends({}, options, nextOptions, {
2281
+ var newStyled = createStyled(nextTag, _extends({}, options, nextOptions, {
2811
2282
  shouldForwardProp: composeShouldForwardProps(Styled, nextOptions, true)
2812
- })).apply(void 0, styles);
2283
+ }));
2284
+ return newStyled.apply(void 0, styles);
2813
2285
  };
2814
2286
 
2815
2287
  return Styled;
@@ -2819,9 +2291,9 @@
2819
2291
  var tags = ['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', 'head', 'header', 'hgroup', 'hr', 'html', 'i', 'iframe', 'img', 'input', 'ins', 'kbd', 'keygen', 'label', 'legend', 'li', 'link', 'main', 'map', 'mark', 'marquee', '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', 'title', 'tr', 'track', 'u', 'ul', 'var', 'video', 'wbr', // SVG
2820
2292
  'circle', 'clipPath', 'defs', 'ellipse', 'foreignObject', 'g', 'image', 'line', 'linearGradient', 'mask', 'path', 'pattern', 'polygon', 'polyline', 'radialGradient', 'rect', 'stop', 'svg', 'text', 'tspan'];
2821
2293
 
2822
- var newStyled = createStyled$1.bind();
2294
+ // bind it to avoid mutating the original function
2295
+ var newStyled = createStyled$1.bind(null);
2823
2296
  tags.forEach(function (tagName) {
2824
- // $FlowFixMe: we can ignore this because its exposed type is defined by the CreateStyled type
2825
2297
  newStyled[tagName] = newStyled(tagName);
2826
2298
  });
2827
2299
 
@@ -3645,1330 +3117,650 @@
3645
3117
  propTypes.oneOfType;
3646
3118
  propTypes.element;
3647
3119
 
3648
- React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner;
3649
-
3650
3120
  var reactJsxRuntime_development = createCommonjsModule(function (module, exports) {
3651
-
3652
- {
3653
- (function() {
3654
-
3655
- var React$1 = React;
3656
-
3657
- // ATTENTION
3658
- // When adding new symbols to this file,
3659
- // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
3660
- // The Symbol used to tag the ReactElement-like types.
3661
- var REACT_ELEMENT_TYPE = Symbol.for('react.element');
3662
- var REACT_PORTAL_TYPE = Symbol.for('react.portal');
3663
- var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
3664
- var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');
3665
- var REACT_PROFILER_TYPE = Symbol.for('react.profiler');
3666
- var REACT_PROVIDER_TYPE = Symbol.for('react.provider');
3667
- var REACT_CONTEXT_TYPE = Symbol.for('react.context');
3668
- var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
3669
- var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');
3670
- var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');
3671
- var REACT_MEMO_TYPE = Symbol.for('react.memo');
3672
- var REACT_LAZY_TYPE = Symbol.for('react.lazy');
3673
- var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');
3674
- var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
3675
- var FAUX_ITERATOR_SYMBOL = '@@iterator';
3676
- function getIteratorFn(maybeIterable) {
3677
- if (maybeIterable === null || typeof maybeIterable !== 'object') {
3678
- return null;
3679
- }
3680
-
3681
- var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
3682
-
3683
- if (typeof maybeIterator === 'function') {
3684
- return maybeIterator;
3685
- }
3686
-
3687
- return null;
3688
- }
3689
-
3690
- var ReactSharedInternals = React$1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
3691
-
3692
- function error(format) {
3693
- {
3694
- {
3695
- for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
3696
- args[_key2 - 1] = arguments[_key2];
3697
- }
3698
-
3699
- printWarning('error', format, args);
3700
- }
3701
- }
3702
- }
3703
-
3704
- function printWarning(level, format, args) {
3705
- // When changing this logic, you might want to also
3706
- // update consoleWithStackDev.www.js as well.
3707
- {
3708
- var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
3709
- var stack = ReactDebugCurrentFrame.getStackAddendum();
3710
-
3711
- if (stack !== '') {
3712
- format += '%s';
3713
- args = args.concat([stack]);
3714
- } // eslint-disable-next-line react-internal/safe-string-coercion
3715
-
3716
-
3717
- var argsWithFormat = args.map(function (item) {
3718
- return String(item);
3719
- }); // Careful: RN currently depends on this prefix
3720
-
3721
- argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
3722
- // breaks IE9: https://github.com/facebook/react/issues/13610
3723
- // eslint-disable-next-line react-internal/no-production-logging
3724
-
3725
- Function.prototype.apply.call(console[level], console, argsWithFormat);
3726
- }
3727
- }
3728
-
3729
- // -----------------------------------------------------------------------------
3730
-
3731
- var enableScopeAPI = false; // Experimental Create Event Handle API.
3732
- var enableCacheElement = false;
3733
- var enableTransitionTracing = false; // No known bugs, but needs performance testing
3734
-
3735
- var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber
3736
- // stuff. Intended to enable React core members to more easily debug scheduling
3737
- // issues in DEV builds.
3738
-
3739
- var enableDebugTracing = false; // Track which Fiber(s) schedule render work.
3740
-
3741
- var REACT_MODULE_REFERENCE;
3742
-
3743
- {
3744
- REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');
3745
- }
3746
-
3747
- function isValidElementType(type) {
3748
- if (typeof type === 'string' || typeof type === 'function') {
3749
- return true;
3750
- } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
3751
-
3752
-
3753
- if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {
3754
- return true;
3755
- }
3756
-
3757
- if (typeof type === 'object' && type !== null) {
3758
- if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
3759
- // types supported by any Flight configuration anywhere since
3760
- // we don't know which Flight build this will end up being used
3761
- // with.
3762
- type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {
3763
- return true;
3764
- }
3765
- }
3766
-
3767
- return false;
3768
- }
3769
-
3770
- function getWrappedName(outerType, innerType, wrapperName) {
3771
- var displayName = outerType.displayName;
3772
-
3773
- if (displayName) {
3774
- return displayName;
3775
- }
3776
-
3777
- var functionName = innerType.displayName || innerType.name || '';
3778
- return functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName;
3779
- } // Keep in sync with react-reconciler/getComponentNameFromFiber
3780
-
3781
-
3782
- function getContextName(type) {
3783
- return type.displayName || 'Context';
3784
- } // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.
3785
-
3786
-
3787
- function getComponentNameFromType(type) {
3788
- if (type == null) {
3789
- // Host root, text node or just invalid type.
3790
- return null;
3791
- }
3792
-
3793
- {
3794
- if (typeof type.tag === 'number') {
3795
- error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');
3796
- }
3797
- }
3798
-
3799
- if (typeof type === 'function') {
3800
- return type.displayName || type.name || null;
3801
- }
3802
-
3803
- if (typeof type === 'string') {
3804
- return type;
3805
- }
3806
-
3807
- switch (type) {
3808
- case REACT_FRAGMENT_TYPE:
3809
- return 'Fragment';
3810
-
3811
- case REACT_PORTAL_TYPE:
3812
- return 'Portal';
3813
-
3814
- case REACT_PROFILER_TYPE:
3815
- return 'Profiler';
3816
-
3817
- case REACT_STRICT_MODE_TYPE:
3818
- return 'StrictMode';
3819
-
3820
- case REACT_SUSPENSE_TYPE:
3821
- return 'Suspense';
3822
-
3823
- case REACT_SUSPENSE_LIST_TYPE:
3824
- return 'SuspenseList';
3825
-
3826
- }
3827
-
3828
- if (typeof type === 'object') {
3829
- switch (type.$$typeof) {
3830
- case REACT_CONTEXT_TYPE:
3831
- var context = type;
3832
- return getContextName(context) + '.Consumer';
3833
-
3834
- case REACT_PROVIDER_TYPE:
3835
- var provider = type;
3836
- return getContextName(provider._context) + '.Provider';
3837
-
3838
- case REACT_FORWARD_REF_TYPE:
3839
- return getWrappedName(type, type.render, 'ForwardRef');
3840
-
3841
- case REACT_MEMO_TYPE:
3842
- var outerName = type.displayName || null;
3843
-
3844
- if (outerName !== null) {
3845
- return outerName;
3846
- }
3847
-
3848
- return getComponentNameFromType(type.type) || 'Memo';
3849
-
3850
- case REACT_LAZY_TYPE:
3851
- {
3852
- var lazyComponent = type;
3853
- var payload = lazyComponent._payload;
3854
- var init = lazyComponent._init;
3855
-
3856
- try {
3857
- return getComponentNameFromType(init(payload));
3858
- } catch (x) {
3859
- return null;
3860
- }
3121
+ ((function () {
3122
+ function getComponentNameFromType(type) {
3123
+ if (null == type) return null;
3124
+ if ("function" === typeof type)
3125
+ return type.$$typeof === REACT_CLIENT_REFERENCE$2
3126
+ ? null
3127
+ : type.displayName || type.name || null;
3128
+ if ("string" === typeof type) return type;
3129
+ switch (type) {
3130
+ case REACT_FRAGMENT_TYPE:
3131
+ return "Fragment";
3132
+ case REACT_PORTAL_TYPE:
3133
+ return "Portal";
3134
+ case REACT_PROFILER_TYPE:
3135
+ return "Profiler";
3136
+ case REACT_STRICT_MODE_TYPE:
3137
+ return "StrictMode";
3138
+ case REACT_SUSPENSE_TYPE:
3139
+ return "Suspense";
3140
+ case REACT_SUSPENSE_LIST_TYPE:
3141
+ return "SuspenseList";
3142
+ }
3143
+ if ("object" === typeof type)
3144
+ switch (
3145
+ ("number" === typeof type.tag &&
3146
+ console.error(
3147
+ "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
3148
+ ),
3149
+ type.$$typeof)
3150
+ ) {
3151
+ case REACT_CONTEXT_TYPE:
3152
+ return (type.displayName || "Context") + ".Provider";
3153
+ case REACT_CONSUMER_TYPE:
3154
+ return (type._context.displayName || "Context") + ".Consumer";
3155
+ case REACT_FORWARD_REF_TYPE:
3156
+ var innerType = type.render;
3157
+ type = type.displayName;
3158
+ type ||
3159
+ ((type = innerType.displayName || innerType.name || ""),
3160
+ (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"));
3161
+ return type;
3162
+ case REACT_MEMO_TYPE:
3163
+ return (
3164
+ (innerType = type.displayName || null),
3165
+ null !== innerType
3166
+ ? innerType
3167
+ : getComponentNameFromType(type.type) || "Memo"
3168
+ );
3169
+ case REACT_LAZY_TYPE:
3170
+ innerType = type._payload;
3171
+ type = type._init;
3172
+ try {
3173
+ return getComponentNameFromType(type(innerType));
3174
+ } catch (x) {}
3861
3175
  }
3862
-
3863
- // eslint-disable-next-line no-fallthrough
3864
- }
3865
- }
3866
-
3867
- return null;
3868
- }
3869
-
3870
- var assign = Object.assign;
3871
-
3872
- // Helpers to patch console.logs to avoid logging during side-effect free
3873
- // replaying on render function. This currently only patches the object
3874
- // lazily which won't cover if the log function was extracted eagerly.
3875
- // We could also eagerly patch the method.
3876
- var disabledDepth = 0;
3877
- var prevLog;
3878
- var prevInfo;
3879
- var prevWarn;
3880
- var prevError;
3881
- var prevGroup;
3882
- var prevGroupCollapsed;
3883
- var prevGroupEnd;
3884
-
3885
- function disabledLog() {}
3886
-
3887
- disabledLog.__reactDisabledLog = true;
3888
- function disableLogs() {
3889
- {
3890
- if (disabledDepth === 0) {
3891
- /* eslint-disable react-internal/no-production-logging */
3892
- prevLog = console.log;
3893
- prevInfo = console.info;
3894
- prevWarn = console.warn;
3895
- prevError = console.error;
3896
- prevGroup = console.group;
3897
- prevGroupCollapsed = console.groupCollapsed;
3898
- prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099
3899
-
3900
- var props = {
3901
- configurable: true,
3902
- enumerable: true,
3903
- value: disabledLog,
3904
- writable: true
3905
- }; // $FlowFixMe Flow thinks console is immutable.
3906
-
3907
- Object.defineProperties(console, {
3908
- info: props,
3909
- log: props,
3910
- warn: props,
3911
- error: props,
3912
- group: props,
3913
- groupCollapsed: props,
3914
- groupEnd: props
3915
- });
3916
- /* eslint-enable react-internal/no-production-logging */
3917
- }
3918
-
3919
- disabledDepth++;
3920
- }
3921
- }
3922
- function reenableLogs() {
3923
- {
3924
- disabledDepth--;
3925
-
3926
- if (disabledDepth === 0) {
3927
- /* eslint-disable react-internal/no-production-logging */
3928
- var props = {
3929
- configurable: true,
3930
- enumerable: true,
3931
- writable: true
3932
- }; // $FlowFixMe Flow thinks console is immutable.
3933
-
3934
- Object.defineProperties(console, {
3935
- log: assign({}, props, {
3936
- value: prevLog
3937
- }),
3938
- info: assign({}, props, {
3939
- value: prevInfo
3940
- }),
3941
- warn: assign({}, props, {
3942
- value: prevWarn
3943
- }),
3944
- error: assign({}, props, {
3945
- value: prevError
3946
- }),
3947
- group: assign({}, props, {
3948
- value: prevGroup
3949
- }),
3950
- groupCollapsed: assign({}, props, {
3951
- value: prevGroupCollapsed
3952
- }),
3953
- groupEnd: assign({}, props, {
3954
- value: prevGroupEnd
3955
- })
3956
- });
3957
- /* eslint-enable react-internal/no-production-logging */
3176
+ return null;
3958
3177
  }
3959
-
3960
- if (disabledDepth < 0) {
3961
- error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');
3178
+ function testStringCoercion(value) {
3179
+ return "" + value;
3962
3180
  }
3963
- }
3964
- }
3965
-
3966
- var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
3967
- var prefix;
3968
- function describeBuiltInComponentFrame(name, source, ownerFn) {
3969
- {
3970
- if (prefix === undefined) {
3971
- // Extract the VM specific prefix used by each line.
3181
+ function checkKeyStringCoercion(value) {
3972
3182
  try {
3973
- throw Error();
3974
- } catch (x) {
3975
- var match = x.stack.trim().match(/\n( *(at )?)/);
3976
- prefix = match && match[1] || '';
3977
- }
3978
- } // We use the prefix to ensure our stacks line up with native stack frames.
3979
-
3980
-
3981
- return '\n' + prefix + name;
3982
- }
3983
- }
3984
- var reentry = false;
3985
- var componentFrameCache;
3986
-
3987
- {
3988
- var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;
3989
- componentFrameCache = new PossiblyWeakMap();
3990
- }
3991
-
3992
- function describeNativeComponentFrame(fn, construct) {
3993
- // If something asked for a stack inside a fake render, it should get ignored.
3994
- if ( !fn || reentry) {
3995
- return '';
3996
- }
3997
-
3998
- {
3999
- var frame = componentFrameCache.get(fn);
4000
-
4001
- if (frame !== undefined) {
4002
- return frame;
4003
- }
4004
- }
4005
-
4006
- var control;
4007
- reentry = true;
4008
- var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.
4009
-
4010
- Error.prepareStackTrace = undefined;
4011
- var previousDispatcher;
4012
-
4013
- {
4014
- previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function
4015
- // for warnings.
4016
-
4017
- ReactCurrentDispatcher.current = null;
4018
- disableLogs();
4019
- }
4020
-
4021
- try {
4022
- // This should throw.
4023
- if (construct) {
4024
- // Something should be setting the props in the constructor.
4025
- var Fake = function () {
4026
- throw Error();
4027
- }; // $FlowFixMe
4028
-
4029
-
4030
- Object.defineProperty(Fake.prototype, 'props', {
4031
- set: function () {
4032
- // We use a throwing setter instead of frozen or non-writable props
4033
- // because that won't throw in a non-strict mode function.
4034
- throw Error();
4035
- }
4036
- });
4037
-
4038
- if (typeof Reflect === 'object' && Reflect.construct) {
4039
- // We construct a different control for this case to include any extra
4040
- // frames added by the construct call.
4041
- try {
4042
- Reflect.construct(Fake, []);
4043
- } catch (x) {
4044
- control = x;
4045
- }
4046
-
4047
- Reflect.construct(fn, [], Fake);
4048
- } else {
4049
- try {
4050
- Fake.call();
4051
- } catch (x) {
4052
- control = x;
4053
- }
4054
-
4055
- fn.call(Fake.prototype);
4056
- }
4057
- } else {
4058
- try {
4059
- throw Error();
4060
- } catch (x) {
4061
- control = x;
4062
- }
4063
-
4064
- fn();
4065
- }
4066
- } catch (sample) {
4067
- // This is inlined manually because closure doesn't do it for us.
4068
- if (sample && control && typeof sample.stack === 'string') {
4069
- // This extracts the first frame from the sample that isn't also in the control.
4070
- // Skipping one frame that we assume is the frame that calls the two.
4071
- var sampleLines = sample.stack.split('\n');
4072
- var controlLines = control.stack.split('\n');
4073
- var s = sampleLines.length - 1;
4074
- var c = controlLines.length - 1;
4075
-
4076
- while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
4077
- // We expect at least one stack frame to be shared.
4078
- // Typically this will be the root most one. However, stack frames may be
4079
- // cut off due to maximum stack limits. In this case, one maybe cut off
4080
- // earlier than the other. We assume that the sample is longer or the same
4081
- // and there for cut off earlier. So we should find the root most frame in
4082
- // the sample somewhere in the control.
4083
- c--;
4084
- }
4085
-
4086
- for (; s >= 1 && c >= 0; s--, c--) {
4087
- // Next we find the first one that isn't the same which should be the
4088
- // frame that called our sample function and the control.
4089
- if (sampleLines[s] !== controlLines[c]) {
4090
- // In V8, the first line is describing the message but other VMs don't.
4091
- // If we're about to return the first line, and the control is also on the same
4092
- // line, that's a pretty good indicator that our sample threw at same line as
4093
- // the control. I.e. before we entered the sample frame. So we ignore this result.
4094
- // This can happen if you passed a class to function component, or non-function.
4095
- if (s !== 1 || c !== 1) {
4096
- do {
4097
- s--;
4098
- c--; // We may still have similar intermediate frames from the construct call.
4099
- // The next one that isn't the same should be our match though.
4100
-
4101
- if (c < 0 || sampleLines[s] !== controlLines[c]) {
4102
- // V8 adds a "new" prefix for native classes. Let's remove it to make it prettier.
4103
- var _frame = '\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled "<anonymous>"
4104
- // but we have a user-provided "displayName"
4105
- // splice it in to make the stack more readable.
4106
-
4107
-
4108
- if (fn.displayName && _frame.includes('<anonymous>')) {
4109
- _frame = _frame.replace('<anonymous>', fn.displayName);
4110
- }
4111
-
4112
- {
4113
- if (typeof fn === 'function') {
4114
- componentFrameCache.set(fn, _frame);
4115
- }
4116
- } // Return the line we found.
4117
-
4118
-
4119
- return _frame;
4120
- }
4121
- } while (s >= 1 && c >= 0);
4122
- }
4123
-
4124
- break;
4125
- }
4126
- }
4127
- }
4128
- } finally {
4129
- reentry = false;
4130
-
4131
- {
4132
- ReactCurrentDispatcher.current = previousDispatcher;
4133
- reenableLogs();
4134
- }
4135
-
4136
- Error.prepareStackTrace = previousPrepareStackTrace;
4137
- } // Fallback to just using the name if we couldn't make it throw.
4138
-
4139
-
4140
- var name = fn ? fn.displayName || fn.name : '';
4141
- var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';
4142
-
4143
- {
4144
- if (typeof fn === 'function') {
4145
- componentFrameCache.set(fn, syntheticFrame);
4146
- }
4147
- }
4148
-
4149
- return syntheticFrame;
4150
- }
4151
- function describeFunctionComponentFrame(fn, source, ownerFn) {
4152
- {
4153
- return describeNativeComponentFrame(fn, false);
4154
- }
4155
- }
4156
-
4157
- function shouldConstruct(Component) {
4158
- var prototype = Component.prototype;
4159
- return !!(prototype && prototype.isReactComponent);
4160
- }
4161
-
4162
- function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
4163
-
4164
- if (type == null) {
4165
- return '';
4166
- }
4167
-
4168
- if (typeof type === 'function') {
4169
- {
4170
- return describeNativeComponentFrame(type, shouldConstruct(type));
4171
- }
4172
- }
4173
-
4174
- if (typeof type === 'string') {
4175
- return describeBuiltInComponentFrame(type);
4176
- }
4177
-
4178
- switch (type) {
4179
- case REACT_SUSPENSE_TYPE:
4180
- return describeBuiltInComponentFrame('Suspense');
4181
-
4182
- case REACT_SUSPENSE_LIST_TYPE:
4183
- return describeBuiltInComponentFrame('SuspenseList');
4184
- }
4185
-
4186
- if (typeof type === 'object') {
4187
- switch (type.$$typeof) {
4188
- case REACT_FORWARD_REF_TYPE:
4189
- return describeFunctionComponentFrame(type.render);
4190
-
4191
- case REACT_MEMO_TYPE:
4192
- // Memo may contain any component type so we recursively resolve it.
4193
- return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
4194
-
4195
- case REACT_LAZY_TYPE:
4196
- {
4197
- var lazyComponent = type;
4198
- var payload = lazyComponent._payload;
4199
- var init = lazyComponent._init;
4200
-
4201
- try {
4202
- // Lazy may contain any component type so we recursively resolve it.
4203
- return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
4204
- } catch (x) {}
4205
- }
4206
- }
4207
- }
4208
-
4209
- return '';
4210
- }
4211
-
4212
- var hasOwnProperty = Object.prototype.hasOwnProperty;
4213
-
4214
- var loggedTypeFailures = {};
4215
- var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
4216
-
4217
- function setCurrentlyValidatingElement(element) {
4218
- {
4219
- if (element) {
4220
- var owner = element._owner;
4221
- var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
4222
- ReactDebugCurrentFrame.setExtraStackFrame(stack);
4223
- } else {
4224
- ReactDebugCurrentFrame.setExtraStackFrame(null);
4225
- }
4226
- }
4227
- }
4228
-
4229
- function checkPropTypes(typeSpecs, values, location, componentName, element) {
4230
- {
4231
- // $FlowFixMe This is okay but Flow doesn't know it.
4232
- var has = Function.call.bind(hasOwnProperty);
4233
-
4234
- for (var typeSpecName in typeSpecs) {
4235
- if (has(typeSpecs, typeSpecName)) {
4236
- var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to
4237
- // fail the render phase where it didn't fail before. So we log it.
4238
- // After these have been cleaned up, we'll let them throw.
4239
-
4240
- try {
4241
- // This is intentionally an invariant that gets caught. It's the same
4242
- // behavior as without this statement except with a better message.
4243
- if (typeof typeSpecs[typeSpecName] !== 'function') {
4244
- // eslint-disable-next-line react-internal/prod-error-codes
4245
- var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');
4246
- err.name = 'Invariant Violation';
4247
- throw err;
4248
- }
4249
-
4250
- error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');
4251
- } catch (ex) {
4252
- error$1 = ex;
4253
- }
4254
-
4255
- if (error$1 && !(error$1 instanceof Error)) {
4256
- setCurrentlyValidatingElement(element);
4257
-
4258
- error('%s: type specification of %s' + ' `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error$1);
4259
-
4260
- setCurrentlyValidatingElement(null);
4261
- }
4262
-
4263
- if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
4264
- // Only monitor this failure once because there tends to be a lot of the
4265
- // same error.
4266
- loggedTypeFailures[error$1.message] = true;
4267
- setCurrentlyValidatingElement(element);
4268
-
4269
- error('Failed %s type: %s', location, error$1.message);
4270
-
4271
- setCurrentlyValidatingElement(null);
4272
- }
4273
- }
4274
- }
4275
- }
4276
- }
4277
-
4278
- var isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare
4279
-
4280
- function isArray(a) {
4281
- return isArrayImpl(a);
4282
- }
4283
-
4284
- /*
4285
- * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol
4286
- * and Temporal.* types. See https://github.com/facebook/react/pull/22064.
4287
- *
4288
- * The functions in this module will throw an easier-to-understand,
4289
- * easier-to-debug exception with a clear errors message message explaining the
4290
- * problem. (Instead of a confusing exception thrown inside the implementation
4291
- * of the `value` object).
4292
- */
4293
- // $FlowFixMe only called in DEV, so void return is not possible.
4294
- function typeName(value) {
4295
- {
4296
- // toStringTag is needed for namespaced types like Temporal.Instant
4297
- var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;
4298
- var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';
4299
- return type;
4300
- }
4301
- } // $FlowFixMe only called in DEV, so void return is not possible.
4302
-
4303
-
4304
- function willCoercionThrow(value) {
4305
- {
4306
- try {
4307
- testStringCoercion(value);
4308
- return false;
4309
- } catch (e) {
4310
- return true;
4311
- }
4312
- }
4313
- }
4314
-
4315
- function testStringCoercion(value) {
4316
- // If you ended up here by following an exception call stack, here's what's
4317
- // happened: you supplied an object or symbol value to React (as a prop, key,
4318
- // DOM attribute, CSS property, string ref, etc.) and when React tried to
4319
- // coerce it to a string using `'' + value`, an exception was thrown.
4320
- //
4321
- // The most common types that will cause this exception are `Symbol` instances
4322
- // and Temporal objects like `Temporal.Instant`. But any object that has a
4323
- // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this
4324
- // exception. (Library authors do this to prevent users from using built-in
4325
- // numeric operators like `+` or comparison operators like `>=` because custom
4326
- // methods are needed to perform accurate arithmetic or comparison.)
4327
- //
4328
- // To fix the problem, coerce this object or symbol value to a string before
4329
- // passing it to React. The most reliable way is usually `String(value)`.
4330
- //
4331
- // To find which value is throwing, check the browser or debugger console.
4332
- // Before this exception was thrown, there should be `console.error` output
4333
- // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the
4334
- // problem and how that type was used: key, atrribute, input value prop, etc.
4335
- // In most cases, this console output also shows the component and its
4336
- // ancestor components where the exception happened.
4337
- //
4338
- // eslint-disable-next-line react-internal/safe-string-coercion
4339
- return '' + value;
4340
- }
4341
- function checkKeyStringCoercion(value) {
4342
- {
4343
- if (willCoercionThrow(value)) {
4344
- error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));
4345
-
4346
- return testStringCoercion(value); // throw (to help callers find troubleshooting comments)
4347
- }
4348
- }
4349
- }
4350
-
4351
- var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
4352
- var RESERVED_PROPS = {
4353
- key: true,
4354
- ref: true,
4355
- __self: true,
4356
- __source: true
4357
- };
4358
- var specialPropKeyWarningShown;
4359
- var specialPropRefWarningShown;
4360
- var didWarnAboutStringRefs;
4361
-
4362
- {
4363
- didWarnAboutStringRefs = {};
4364
- }
4365
-
4366
- function hasValidRef(config) {
4367
- {
4368
- if (hasOwnProperty.call(config, 'ref')) {
4369
- var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
4370
-
4371
- if (getter && getter.isReactWarning) {
4372
- return false;
4373
- }
4374
- }
4375
- }
4376
-
4377
- return config.ref !== undefined;
4378
- }
4379
-
4380
- function hasValidKey(config) {
4381
- {
4382
- if (hasOwnProperty.call(config, 'key')) {
4383
- var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
4384
-
4385
- if (getter && getter.isReactWarning) {
4386
- return false;
4387
- }
4388
- }
4389
- }
4390
-
4391
- return config.key !== undefined;
4392
- }
4393
-
4394
- function warnIfStringRefCannotBeAutoConverted(config, self) {
4395
- {
4396
- if (typeof config.ref === 'string' && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {
4397
- var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
4398
-
4399
- if (!didWarnAboutStringRefs[componentName]) {
4400
- error('Component "%s" contains the string ref "%s". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-string-ref', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);
4401
-
4402
- didWarnAboutStringRefs[componentName] = true;
4403
- }
4404
- }
4405
- }
4406
- }
4407
-
4408
- function defineKeyPropWarningGetter(props, displayName) {
4409
- {
4410
- var warnAboutAccessingKey = function () {
4411
- if (!specialPropKeyWarningShown) {
4412
- specialPropKeyWarningShown = true;
4413
-
4414
- error('%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);
4415
- }
4416
- };
4417
-
4418
- warnAboutAccessingKey.isReactWarning = true;
4419
- Object.defineProperty(props, 'key', {
4420
- get: warnAboutAccessingKey,
4421
- configurable: true
4422
- });
4423
- }
4424
- }
4425
-
4426
- function defineRefPropWarningGetter(props, displayName) {
4427
- {
4428
- var warnAboutAccessingRef = function () {
4429
- if (!specialPropRefWarningShown) {
4430
- specialPropRefWarningShown = true;
4431
-
4432
- error('%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);
4433
- }
4434
- };
4435
-
4436
- warnAboutAccessingRef.isReactWarning = true;
4437
- Object.defineProperty(props, 'ref', {
4438
- get: warnAboutAccessingRef,
4439
- configurable: true
4440
- });
4441
- }
4442
- }
4443
- /**
4444
- * Factory method to create a new React element. This no longer adheres to
4445
- * the class pattern, so do not use new to call it. Also, instanceof check
4446
- * will not work. Instead test $$typeof field against Symbol.for('react.element') to check
4447
- * if something is a React Element.
4448
- *
4449
- * @param {*} type
4450
- * @param {*} props
4451
- * @param {*} key
4452
- * @param {string|object} ref
4453
- * @param {*} owner
4454
- * @param {*} self A *temporary* helper to detect places where `this` is
4455
- * different from the `owner` when React.createElement is called, so that we
4456
- * can warn. We want to get rid of owner and replace string `ref`s with arrow
4457
- * functions, and as long as `this` and owner are the same, there will be no
4458
- * change in behavior.
4459
- * @param {*} source An annotation object (added by a transpiler or otherwise)
4460
- * indicating filename, line number, and/or other information.
4461
- * @internal
4462
- */
4463
-
4464
-
4465
- var ReactElement = function (type, key, ref, self, source, owner, props) {
4466
- var element = {
4467
- // This tag allows us to uniquely identify this as a React Element
4468
- $$typeof: REACT_ELEMENT_TYPE,
4469
- // Built-in properties that belong on the element
4470
- type: type,
4471
- key: key,
4472
- ref: ref,
4473
- props: props,
4474
- // Record the component responsible for creating this element.
4475
- _owner: owner
4476
- };
4477
-
4478
- {
4479
- // The validation flag is currently mutative. We put it on
4480
- // an external backing store so that we can freeze the whole object.
4481
- // This can be replaced with a WeakMap once they are implemented in
4482
- // commonly used development environments.
4483
- element._store = {}; // To make comparing ReactElements easier for testing purposes, we make
4484
- // the validation flag non-enumerable (where possible, which should
4485
- // include every environment we run tests in), so the test framework
4486
- // ignores it.
4487
-
4488
- Object.defineProperty(element._store, 'validated', {
4489
- configurable: false,
4490
- enumerable: false,
4491
- writable: true,
4492
- value: false
4493
- }); // self and source are DEV only properties.
4494
-
4495
- Object.defineProperty(element, '_self', {
4496
- configurable: false,
4497
- enumerable: false,
4498
- writable: false,
4499
- value: self
4500
- }); // Two elements created in two different places should be considered
4501
- // equal for testing purposes and therefore we hide it from enumeration.
4502
-
4503
- Object.defineProperty(element, '_source', {
4504
- configurable: false,
4505
- enumerable: false,
4506
- writable: false,
4507
- value: source
4508
- });
4509
-
4510
- if (Object.freeze) {
4511
- Object.freeze(element.props);
4512
- Object.freeze(element);
4513
- }
4514
- }
4515
-
4516
- return element;
4517
- };
4518
- /**
4519
- * https://github.com/reactjs/rfcs/pull/107
4520
- * @param {*} type
4521
- * @param {object} props
4522
- * @param {string} key
4523
- */
4524
-
4525
- function jsxDEV(type, config, maybeKey, source, self) {
4526
- {
4527
- var propName; // Reserved names are extracted
4528
-
4529
- var props = {};
4530
- var key = null;
4531
- var ref = null; // Currently, key can be spread in as a prop. This causes a potential
4532
- // issue if key is also explicitly declared (ie. <div {...props} key="Hi" />
4533
- // or <div key="Hi" {...props} /> ). We want to deprecate key spread,
4534
- // but as an intermediary step, we will use jsxDEV for everything except
4535
- // <div {...props} key="Hi" />, because we aren't currently able to tell if
4536
- // key is explicitly declared to be undefined or not.
4537
-
4538
- if (maybeKey !== undefined) {
4539
- {
4540
- checkKeyStringCoercion(maybeKey);
4541
- }
4542
-
4543
- key = '' + maybeKey;
4544
- }
4545
-
4546
- if (hasValidKey(config)) {
4547
- {
4548
- checkKeyStringCoercion(config.key);
4549
- }
4550
-
4551
- key = '' + config.key;
4552
- }
4553
-
4554
- if (hasValidRef(config)) {
4555
- ref = config.ref;
4556
- warnIfStringRefCannotBeAutoConverted(config, self);
4557
- } // Remaining properties are added to a new props object
4558
-
4559
-
4560
- for (propName in config) {
4561
- if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
4562
- props[propName] = config[propName];
4563
- }
4564
- } // Resolve default props
4565
-
4566
-
4567
- if (type && type.defaultProps) {
4568
- var defaultProps = type.defaultProps;
4569
-
4570
- for (propName in defaultProps) {
4571
- if (props[propName] === undefined) {
4572
- props[propName] = defaultProps[propName];
4573
- }
4574
- }
4575
- }
4576
-
4577
- if (key || ref) {
4578
- var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
4579
-
4580
- if (key) {
4581
- defineKeyPropWarningGetter(props, displayName);
4582
- }
4583
-
4584
- if (ref) {
4585
- defineRefPropWarningGetter(props, displayName);
4586
- }
4587
- }
4588
-
4589
- return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
4590
- }
4591
- }
4592
-
4593
- var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
4594
- var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
4595
-
4596
- function setCurrentlyValidatingElement$1(element) {
4597
- {
4598
- if (element) {
4599
- var owner = element._owner;
4600
- var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
4601
- ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
4602
- } else {
4603
- ReactDebugCurrentFrame$1.setExtraStackFrame(null);
4604
- }
4605
- }
4606
- }
4607
-
4608
- var propTypesMisspellWarningShown;
4609
-
4610
- {
4611
- propTypesMisspellWarningShown = false;
4612
- }
4613
- /**
4614
- * Verifies the object is a ReactElement.
4615
- * See https://reactjs.org/docs/react-api.html#isvalidelement
4616
- * @param {?object} object
4617
- * @return {boolean} True if `object` is a ReactElement.
4618
- * @final
4619
- */
4620
-
4621
-
4622
- function isValidElement(object) {
4623
- {
4624
- return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
4625
- }
4626
- }
4627
-
4628
- function getDeclarationErrorAddendum() {
4629
- {
4630
- if (ReactCurrentOwner$1.current) {
4631
- var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);
4632
-
4633
- if (name) {
4634
- return '\n\nCheck the render method of `' + name + '`.';
4635
- }
4636
- }
4637
-
4638
- return '';
4639
- }
4640
- }
4641
-
4642
- function getSourceInfoErrorAddendum(source) {
4643
- {
4644
- if (source !== undefined) {
4645
- var fileName = source.fileName.replace(/^.*[\\\/]/, '');
4646
- var lineNumber = source.lineNumber;
4647
- return '\n\nCheck your code at ' + fileName + ':' + lineNumber + '.';
4648
- }
4649
-
4650
- return '';
4651
- }
4652
- }
4653
- /**
4654
- * Warn if there's no key explicitly set on dynamic arrays of children or
4655
- * object keys are not valid. This allows us to keep track of children between
4656
- * updates.
4657
- */
4658
-
4659
-
4660
- var ownerHasKeyUseWarning = {};
4661
-
4662
- function getCurrentComponentErrorInfo(parentType) {
4663
- {
4664
- var info = getDeclarationErrorAddendum();
4665
-
4666
- if (!info) {
4667
- var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
4668
-
4669
- if (parentName) {
4670
- info = "\n\nCheck the top-level render call using <" + parentName + ">.";
4671
- }
4672
- }
4673
-
4674
- return info;
4675
- }
4676
- }
4677
- /**
4678
- * Warn if the element doesn't have an explicit key assigned to it.
4679
- * This element is in an array. The array could grow and shrink or be
4680
- * reordered. All children that haven't already been validated are required to
4681
- * have a "key" property assigned to it. Error statuses are cached so a warning
4682
- * will only be shown once.
4683
- *
4684
- * @internal
4685
- * @param {ReactElement} element Element that requires a key.
4686
- * @param {*} parentType element's parent's type.
4687
- */
4688
-
4689
-
4690
- function validateExplicitKey(element, parentType) {
4691
- {
4692
- if (!element._store || element._store.validated || element.key != null) {
4693
- return;
4694
- }
4695
-
4696
- element._store.validated = true;
4697
- var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
4698
-
4699
- if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
4700
- return;
4701
- }
4702
-
4703
- ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a
4704
- // property, it may be the creator of the child that's responsible for
4705
- // assigning it a key.
4706
-
4707
- var childOwner = '';
4708
-
4709
- if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
4710
- // Give the component that originally created this child.
4711
- childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
4712
- }
4713
-
4714
- setCurrentlyValidatingElement$1(element);
4715
-
4716
- error('Each child in a list should have a unique "key" prop.' + '%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
4717
-
4718
- setCurrentlyValidatingElement$1(null);
4719
- }
4720
- }
4721
- /**
4722
- * Ensure that every element either is passed in a static location, in an
4723
- * array with an explicit keys property defined, or in an object literal
4724
- * with valid key property.
4725
- *
4726
- * @internal
4727
- * @param {ReactNode} node Statically passed child of any type.
4728
- * @param {*} parentType node's parent's type.
4729
- */
4730
-
4731
-
4732
- function validateChildKeys(node, parentType) {
4733
- {
4734
- if (typeof node !== 'object') {
4735
- return;
4736
- }
4737
-
4738
- if (isArray(node)) {
4739
- for (var i = 0; i < node.length; i++) {
4740
- var child = node[i];
4741
-
4742
- if (isValidElement(child)) {
4743
- validateExplicitKey(child, parentType);
4744
- }
4745
- }
4746
- } else if (isValidElement(node)) {
4747
- // This element was passed in a valid location.
4748
- if (node._store) {
4749
- node._store.validated = true;
4750
- }
4751
- } else if (node) {
4752
- var iteratorFn = getIteratorFn(node);
4753
-
4754
- if (typeof iteratorFn === 'function') {
4755
- // Entry iterators used to provide implicit keys,
4756
- // but now we print a separate warning for them later.
4757
- if (iteratorFn !== node.entries) {
4758
- var iterator = iteratorFn.call(node);
4759
- var step;
4760
-
4761
- while (!(step = iterator.next()).done) {
4762
- if (isValidElement(step.value)) {
4763
- validateExplicitKey(step.value, parentType);
4764
- }
4765
- }
4766
- }
4767
- }
4768
- }
4769
- }
4770
- }
4771
- /**
4772
- * Given an element, validate that its props follow the propTypes definition,
4773
- * provided by the type.
4774
- *
4775
- * @param {ReactElement} element
4776
- */
4777
-
4778
-
4779
- function validatePropTypes(element) {
4780
- {
4781
- var type = element.type;
4782
-
4783
- if (type === null || type === undefined || typeof type === 'string') {
4784
- return;
4785
- }
4786
-
4787
- var propTypes;
4788
-
4789
- if (typeof type === 'function') {
4790
- propTypes = type.propTypes;
4791
- } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
4792
- // Inner props are checked in the reconciler.
4793
- type.$$typeof === REACT_MEMO_TYPE)) {
4794
- propTypes = type.propTypes;
4795
- } else {
4796
- return;
4797
- }
4798
-
4799
- if (propTypes) {
4800
- // Intentionally inside to avoid triggering lazy initializers:
4801
- var name = getComponentNameFromType(type);
4802
- checkPropTypes(propTypes, element.props, 'prop', name, element);
4803
- } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
4804
- propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:
4805
-
4806
- var _name = getComponentNameFromType(type);
4807
-
4808
- error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');
4809
- }
4810
-
4811
- if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {
4812
- error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');
4813
- }
4814
- }
4815
- }
4816
- /**
4817
- * Given a fragment, validate that it can only be provided with fragment props
4818
- * @param {ReactElement} fragment
4819
- */
4820
-
4821
-
4822
- function validateFragmentProps(fragment) {
4823
- {
4824
- var keys = Object.keys(fragment.props);
4825
-
4826
- for (var i = 0; i < keys.length; i++) {
4827
- var key = keys[i];
4828
-
4829
- if (key !== 'children' && key !== 'key') {
4830
- setCurrentlyValidatingElement$1(fragment);
4831
-
4832
- error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);
4833
-
4834
- setCurrentlyValidatingElement$1(null);
4835
- break;
4836
- }
4837
- }
4838
-
4839
- if (fragment.ref !== null) {
4840
- setCurrentlyValidatingElement$1(fragment);
4841
-
4842
- error('Invalid attribute `ref` supplied to `React.Fragment`.');
4843
-
4844
- setCurrentlyValidatingElement$1(null);
4845
- }
4846
- }
4847
- }
4848
-
4849
- var didWarnAboutKeySpread = {};
4850
- function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
4851
- {
4852
- var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to
4853
- // succeed and there will likely be errors in render.
4854
-
4855
- if (!validType) {
4856
- var info = '';
4857
-
4858
- if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
4859
- info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and named imports.";
4860
- }
4861
-
4862
- var sourceInfo = getSourceInfoErrorAddendum(source);
4863
-
4864
- if (sourceInfo) {
4865
- info += sourceInfo;
4866
- } else {
4867
- info += getDeclarationErrorAddendum();
3183
+ testStringCoercion(value);
3184
+ var JSCompiler_inline_result = !1;
3185
+ } catch (e) {
3186
+ JSCompiler_inline_result = !0;
3187
+ }
3188
+ if (JSCompiler_inline_result) {
3189
+ JSCompiler_inline_result = console;
3190
+ var JSCompiler_temp_const = JSCompiler_inline_result.error;
3191
+ var JSCompiler_inline_result$jscomp$0 =
3192
+ ("function" === typeof Symbol &&
3193
+ Symbol.toStringTag &&
3194
+ value[Symbol.toStringTag]) ||
3195
+ value.constructor.name ||
3196
+ "Object";
3197
+ JSCompiler_temp_const.call(
3198
+ JSCompiler_inline_result,
3199
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
3200
+ JSCompiler_inline_result$jscomp$0
3201
+ );
3202
+ return testStringCoercion(value);
3203
+ }
3204
+ }
3205
+ function disabledLog() {}
3206
+ function disableLogs() {
3207
+ if (0 === disabledDepth) {
3208
+ prevLog = console.log;
3209
+ prevInfo = console.info;
3210
+ prevWarn = console.warn;
3211
+ prevError = console.error;
3212
+ prevGroup = console.group;
3213
+ prevGroupCollapsed = console.groupCollapsed;
3214
+ prevGroupEnd = console.groupEnd;
3215
+ var props = {
3216
+ configurable: !0,
3217
+ enumerable: !0,
3218
+ value: disabledLog,
3219
+ writable: !0
3220
+ };
3221
+ Object.defineProperties(console, {
3222
+ info: props,
3223
+ log: props,
3224
+ warn: props,
3225
+ error: props,
3226
+ group: props,
3227
+ groupCollapsed: props,
3228
+ groupEnd: props
3229
+ });
4868
3230
  }
4869
-
4870
- var typeString;
4871
-
4872
- if (type === null) {
4873
- typeString = 'null';
4874
- } else if (isArray(type)) {
4875
- typeString = 'array';
4876
- } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
4877
- typeString = "<" + (getComponentNameFromType(type.type) || 'Unknown') + " />";
4878
- info = ' Did you accidentally export a JSX literal instead of a component?';
4879
- } else {
4880
- typeString = typeof type;
3231
+ disabledDepth++;
3232
+ }
3233
+ function reenableLogs() {
3234
+ disabledDepth--;
3235
+ if (0 === disabledDepth) {
3236
+ var props = { configurable: !0, enumerable: !0, writable: !0 };
3237
+ Object.defineProperties(console, {
3238
+ log: assign({}, props, { value: prevLog }),
3239
+ info: assign({}, props, { value: prevInfo }),
3240
+ warn: assign({}, props, { value: prevWarn }),
3241
+ error: assign({}, props, { value: prevError }),
3242
+ group: assign({}, props, { value: prevGroup }),
3243
+ groupCollapsed: assign({}, props, { value: prevGroupCollapsed }),
3244
+ groupEnd: assign({}, props, { value: prevGroupEnd })
3245
+ });
4881
3246
  }
4882
-
4883
- error('React.jsx: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);
3247
+ 0 > disabledDepth &&
3248
+ console.error(
3249
+ "disabledDepth fell below zero. This is a bug in React. Please file an issue."
3250
+ );
4884
3251
  }
4885
-
4886
- var element = jsxDEV(type, props, key, source, self); // The result can be nullish if a mock or a custom function is used.
4887
- // TODO: Drop this when these are no longer allowed as the type argument.
4888
-
4889
- if (element == null) {
4890
- return element;
4891
- } // Skip key warning if the type isn't valid since our key validation logic
4892
- // doesn't expect a non-string/function type and can throw confusing errors.
4893
- // We don't want exception behavior to differ between dev and prod.
4894
- // (Rendering will throw with a helpful message and as soon as the type is
4895
- // fixed, the key warnings will appear.)
4896
-
4897
-
4898
- if (validType) {
4899
- var children = props.children;
4900
-
4901
- if (children !== undefined) {
4902
- if (isStaticChildren) {
4903
- if (isArray(children)) {
4904
- for (var i = 0; i < children.length; i++) {
4905
- validateChildKeys(children[i], type);
4906
- }
4907
-
4908
- if (Object.freeze) {
4909
- Object.freeze(children);
3252
+ function describeBuiltInComponentFrame(name) {
3253
+ if (void 0 === prefix)
3254
+ try {
3255
+ throw Error();
3256
+ } catch (x) {
3257
+ var match = x.stack.trim().match(/\n( *(at )?)/);
3258
+ prefix = (match && match[1]) || "";
3259
+ suffix =
3260
+ -1 < x.stack.indexOf("\n at")
3261
+ ? " (<anonymous>)"
3262
+ : -1 < x.stack.indexOf("@")
3263
+ ? "@unknown:0:0"
3264
+ : "";
3265
+ }
3266
+ return "\n" + prefix + name + suffix;
3267
+ }
3268
+ function describeNativeComponentFrame(fn, construct) {
3269
+ if (!fn || reentry) return "";
3270
+ var frame = componentFrameCache.get(fn);
3271
+ if (void 0 !== frame) return frame;
3272
+ reentry = !0;
3273
+ frame = Error.prepareStackTrace;
3274
+ Error.prepareStackTrace = void 0;
3275
+ var previousDispatcher = null;
3276
+ previousDispatcher = ReactSharedInternals.H;
3277
+ ReactSharedInternals.H = null;
3278
+ disableLogs();
3279
+ try {
3280
+ var RunInRootFrame = {
3281
+ DetermineComponentFrameRoot: function () {
3282
+ try {
3283
+ if (construct) {
3284
+ var Fake = function () {
3285
+ throw Error();
3286
+ };
3287
+ Object.defineProperty(Fake.prototype, "props", {
3288
+ set: function () {
3289
+ throw Error();
3290
+ }
3291
+ });
3292
+ if ("object" === typeof Reflect && Reflect.construct) {
3293
+ try {
3294
+ Reflect.construct(Fake, []);
3295
+ } catch (x) {
3296
+ var control = x;
3297
+ }
3298
+ Reflect.construct(fn, [], Fake);
3299
+ } else {
3300
+ try {
3301
+ Fake.call();
3302
+ } catch (x$0) {
3303
+ control = x$0;
3304
+ }
3305
+ fn.call(Fake.prototype);
3306
+ }
3307
+ } else {
3308
+ try {
3309
+ throw Error();
3310
+ } catch (x$1) {
3311
+ control = x$1;
3312
+ }
3313
+ (Fake = fn()) &&
3314
+ "function" === typeof Fake.catch &&
3315
+ Fake.catch(function () {});
3316
+ }
3317
+ } catch (sample) {
3318
+ if (sample && control && "string" === typeof sample.stack)
3319
+ return [sample.stack, control.stack];
4910
3320
  }
4911
- } else {
4912
- error('React.jsx: Static children should always be an array. ' + 'You are likely explicitly calling React.jsxs or React.jsxDEV. ' + 'Use the Babel transform instead.');
3321
+ return [null, null];
4913
3322
  }
4914
- } else {
4915
- validateChildKeys(children, type);
4916
- }
4917
- }
4918
- }
4919
-
4920
- {
4921
- if (hasOwnProperty.call(props, 'key')) {
4922
- var componentName = getComponentNameFromType(type);
4923
- var keys = Object.keys(props).filter(function (k) {
4924
- return k !== 'key';
4925
- });
4926
- var beforeExample = keys.length > 0 ? '{key: someKey, ' + keys.join(': ..., ') + ': ...}' : '{key: someKey}';
4927
-
4928
- if (!didWarnAboutKeySpread[componentName + beforeExample]) {
4929
- var afterExample = keys.length > 0 ? '{' + keys.join(': ..., ') + ': ...}' : '{}';
3323
+ };
3324
+ RunInRootFrame.DetermineComponentFrameRoot.displayName =
3325
+ "DetermineComponentFrameRoot";
3326
+ var namePropDescriptor = Object.getOwnPropertyDescriptor(
3327
+ RunInRootFrame.DetermineComponentFrameRoot,
3328
+ "name"
3329
+ );
3330
+ namePropDescriptor &&
3331
+ namePropDescriptor.configurable &&
3332
+ Object.defineProperty(
3333
+ RunInRootFrame.DetermineComponentFrameRoot,
3334
+ "name",
3335
+ { value: "DetermineComponentFrameRoot" }
3336
+ );
3337
+ var _RunInRootFrame$Deter =
3338
+ RunInRootFrame.DetermineComponentFrameRoot(),
3339
+ sampleStack = _RunInRootFrame$Deter[0],
3340
+ controlStack = _RunInRootFrame$Deter[1];
3341
+ if (sampleStack && controlStack) {
3342
+ var sampleLines = sampleStack.split("\n"),
3343
+ controlLines = controlStack.split("\n");
3344
+ for (
3345
+ _RunInRootFrame$Deter = namePropDescriptor = 0;
3346
+ namePropDescriptor < sampleLines.length &&
3347
+ !sampleLines[namePropDescriptor].includes(
3348
+ "DetermineComponentFrameRoot"
3349
+ );
4930
3350
 
4931
- error('A props object containing a "key" prop is being spread into JSX:\n' + ' let props = %s;\n' + ' <%s {...props} />\n' + 'React keys must be passed directly to JSX without using spread:\n' + ' let props = %s;\n' + ' <%s key={someKey} {...props} />', beforeExample, componentName, afterExample, componentName);
3351
+ )
3352
+ namePropDescriptor++;
3353
+ for (
3354
+ ;
3355
+ _RunInRootFrame$Deter < controlLines.length &&
3356
+ !controlLines[_RunInRootFrame$Deter].includes(
3357
+ "DetermineComponentFrameRoot"
3358
+ );
4932
3359
 
4933
- didWarnAboutKeySpread[componentName + beforeExample] = true;
3360
+ )
3361
+ _RunInRootFrame$Deter++;
3362
+ if (
3363
+ namePropDescriptor === sampleLines.length ||
3364
+ _RunInRootFrame$Deter === controlLines.length
3365
+ )
3366
+ for (
3367
+ namePropDescriptor = sampleLines.length - 1,
3368
+ _RunInRootFrame$Deter = controlLines.length - 1;
3369
+ 1 <= namePropDescriptor &&
3370
+ 0 <= _RunInRootFrame$Deter &&
3371
+ sampleLines[namePropDescriptor] !==
3372
+ controlLines[_RunInRootFrame$Deter];
3373
+
3374
+ )
3375
+ _RunInRootFrame$Deter--;
3376
+ for (
3377
+ ;
3378
+ 1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter;
3379
+ namePropDescriptor--, _RunInRootFrame$Deter--
3380
+ )
3381
+ if (
3382
+ sampleLines[namePropDescriptor] !==
3383
+ controlLines[_RunInRootFrame$Deter]
3384
+ ) {
3385
+ if (1 !== namePropDescriptor || 1 !== _RunInRootFrame$Deter) {
3386
+ do
3387
+ if (
3388
+ (namePropDescriptor--,
3389
+ _RunInRootFrame$Deter--,
3390
+ 0 > _RunInRootFrame$Deter ||
3391
+ sampleLines[namePropDescriptor] !==
3392
+ controlLines[_RunInRootFrame$Deter])
3393
+ ) {
3394
+ var _frame =
3395
+ "\n" +
3396
+ sampleLines[namePropDescriptor].replace(
3397
+ " at new ",
3398
+ " at "
3399
+ );
3400
+ fn.displayName &&
3401
+ _frame.includes("<anonymous>") &&
3402
+ (_frame = _frame.replace("<anonymous>", fn.displayName));
3403
+ "function" === typeof fn &&
3404
+ componentFrameCache.set(fn, _frame);
3405
+ return _frame;
3406
+ }
3407
+ while (1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter);
3408
+ }
3409
+ break;
3410
+ }
4934
3411
  }
3412
+ } finally {
3413
+ (reentry = !1),
3414
+ (ReactSharedInternals.H = previousDispatcher),
3415
+ reenableLogs(),
3416
+ (Error.prepareStackTrace = frame);
3417
+ }
3418
+ sampleLines = (sampleLines = fn ? fn.displayName || fn.name : "")
3419
+ ? describeBuiltInComponentFrame(sampleLines)
3420
+ : "";
3421
+ "function" === typeof fn && componentFrameCache.set(fn, sampleLines);
3422
+ return sampleLines;
3423
+ }
3424
+ function describeUnknownElementTypeFrameInDEV(type) {
3425
+ if (null == type) return "";
3426
+ if ("function" === typeof type) {
3427
+ var prototype = type.prototype;
3428
+ return describeNativeComponentFrame(
3429
+ type,
3430
+ !(!prototype || !prototype.isReactComponent)
3431
+ );
4935
3432
  }
3433
+ if ("string" === typeof type) return describeBuiltInComponentFrame(type);
3434
+ switch (type) {
3435
+ case REACT_SUSPENSE_TYPE:
3436
+ return describeBuiltInComponentFrame("Suspense");
3437
+ case REACT_SUSPENSE_LIST_TYPE:
3438
+ return describeBuiltInComponentFrame("SuspenseList");
3439
+ }
3440
+ if ("object" === typeof type)
3441
+ switch (type.$$typeof) {
3442
+ case REACT_FORWARD_REF_TYPE:
3443
+ return (type = describeNativeComponentFrame(type.render, !1)), type;
3444
+ case REACT_MEMO_TYPE:
3445
+ return describeUnknownElementTypeFrameInDEV(type.type);
3446
+ case REACT_LAZY_TYPE:
3447
+ prototype = type._payload;
3448
+ type = type._init;
3449
+ try {
3450
+ return describeUnknownElementTypeFrameInDEV(type(prototype));
3451
+ } catch (x) {}
3452
+ }
3453
+ return "";
3454
+ }
3455
+ function getOwner() {
3456
+ var dispatcher = ReactSharedInternals.A;
3457
+ return null === dispatcher ? null : dispatcher.getOwner();
3458
+ }
3459
+ function hasValidKey(config) {
3460
+ if (hasOwnProperty.call(config, "key")) {
3461
+ var getter = Object.getOwnPropertyDescriptor(config, "key").get;
3462
+ if (getter && getter.isReactWarning) return !1;
3463
+ }
3464
+ return void 0 !== config.key;
3465
+ }
3466
+ function defineKeyPropWarningGetter(props, displayName) {
3467
+ function warnAboutAccessingKey() {
3468
+ specialPropKeyWarningShown ||
3469
+ ((specialPropKeyWarningShown = !0),
3470
+ console.error(
3471
+ "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
3472
+ displayName
3473
+ ));
3474
+ }
3475
+ warnAboutAccessingKey.isReactWarning = !0;
3476
+ Object.defineProperty(props, "key", {
3477
+ get: warnAboutAccessingKey,
3478
+ configurable: !0
3479
+ });
4936
3480
  }
4937
-
4938
- if (type === REACT_FRAGMENT_TYPE) {
4939
- validateFragmentProps(element);
4940
- } else {
4941
- validatePropTypes(element);
3481
+ function elementRefGetterWithDeprecationWarning() {
3482
+ var componentName = getComponentNameFromType(this.type);
3483
+ didWarnAboutElementRef[componentName] ||
3484
+ ((didWarnAboutElementRef[componentName] = !0),
3485
+ console.error(
3486
+ "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
3487
+ ));
3488
+ componentName = this.props.ref;
3489
+ return void 0 !== componentName ? componentName : null;
3490
+ }
3491
+ function ReactElement(type, key, self, source, owner, props) {
3492
+ self = props.ref;
3493
+ type = {
3494
+ $$typeof: REACT_ELEMENT_TYPE,
3495
+ type: type,
3496
+ key: key,
3497
+ props: props,
3498
+ _owner: owner
3499
+ };
3500
+ null !== (void 0 !== self ? self : null)
3501
+ ? Object.defineProperty(type, "ref", {
3502
+ enumerable: !1,
3503
+ get: elementRefGetterWithDeprecationWarning
3504
+ })
3505
+ : Object.defineProperty(type, "ref", { enumerable: !1, value: null });
3506
+ type._store = {};
3507
+ Object.defineProperty(type._store, "validated", {
3508
+ configurable: !1,
3509
+ enumerable: !1,
3510
+ writable: !0,
3511
+ value: 0
3512
+ });
3513
+ Object.defineProperty(type, "_debugInfo", {
3514
+ configurable: !1,
3515
+ enumerable: !1,
3516
+ writable: !0,
3517
+ value: null
3518
+ });
3519
+ Object.freeze && (Object.freeze(type.props), Object.freeze(type));
3520
+ return type;
3521
+ }
3522
+ function jsxDEVImpl(
3523
+ type,
3524
+ config,
3525
+ maybeKey,
3526
+ isStaticChildren,
3527
+ source,
3528
+ self
3529
+ ) {
3530
+ if (
3531
+ "string" === typeof type ||
3532
+ "function" === typeof type ||
3533
+ type === REACT_FRAGMENT_TYPE ||
3534
+ type === REACT_PROFILER_TYPE ||
3535
+ type === REACT_STRICT_MODE_TYPE ||
3536
+ type === REACT_SUSPENSE_TYPE ||
3537
+ type === REACT_SUSPENSE_LIST_TYPE ||
3538
+ type === REACT_OFFSCREEN_TYPE ||
3539
+ ("object" === typeof type &&
3540
+ null !== type &&
3541
+ (type.$$typeof === REACT_LAZY_TYPE ||
3542
+ type.$$typeof === REACT_MEMO_TYPE ||
3543
+ type.$$typeof === REACT_CONTEXT_TYPE ||
3544
+ type.$$typeof === REACT_CONSUMER_TYPE ||
3545
+ type.$$typeof === REACT_FORWARD_REF_TYPE ||
3546
+ type.$$typeof === REACT_CLIENT_REFERENCE$1 ||
3547
+ void 0 !== type.getModuleId))
3548
+ ) {
3549
+ var children = config.children;
3550
+ if (void 0 !== children)
3551
+ if (isStaticChildren)
3552
+ if (isArrayImpl(children)) {
3553
+ for (
3554
+ isStaticChildren = 0;
3555
+ isStaticChildren < children.length;
3556
+ isStaticChildren++
3557
+ )
3558
+ validateChildKeys(children[isStaticChildren], type);
3559
+ Object.freeze && Object.freeze(children);
3560
+ } else
3561
+ console.error(
3562
+ "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
3563
+ );
3564
+ else validateChildKeys(children, type);
3565
+ } else {
3566
+ children = "";
3567
+ if (
3568
+ void 0 === type ||
3569
+ ("object" === typeof type &&
3570
+ null !== type &&
3571
+ 0 === Object.keys(type).length)
3572
+ )
3573
+ children +=
3574
+ " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
3575
+ null === type
3576
+ ? (isStaticChildren = "null")
3577
+ : isArrayImpl(type)
3578
+ ? (isStaticChildren = "array")
3579
+ : void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE
3580
+ ? ((isStaticChildren =
3581
+ "<" +
3582
+ (getComponentNameFromType(type.type) || "Unknown") +
3583
+ " />"),
3584
+ (children =
3585
+ " Did you accidentally export a JSX literal instead of a component?"))
3586
+ : (isStaticChildren = typeof type);
3587
+ console.error(
3588
+ "React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
3589
+ isStaticChildren,
3590
+ children
3591
+ );
3592
+ }
3593
+ if (hasOwnProperty.call(config, "key")) {
3594
+ children = getComponentNameFromType(type);
3595
+ var keys = Object.keys(config).filter(function (k) {
3596
+ return "key" !== k;
3597
+ });
3598
+ isStaticChildren =
3599
+ 0 < keys.length
3600
+ ? "{key: someKey, " + keys.join(": ..., ") + ": ...}"
3601
+ : "{key: someKey}";
3602
+ didWarnAboutKeySpread[children + isStaticChildren] ||
3603
+ ((keys =
3604
+ 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}"),
3605
+ console.error(
3606
+ 'A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',
3607
+ isStaticChildren,
3608
+ children,
3609
+ keys,
3610
+ children
3611
+ ),
3612
+ (didWarnAboutKeySpread[children + isStaticChildren] = !0));
3613
+ }
3614
+ children = null;
3615
+ void 0 !== maybeKey &&
3616
+ (checkKeyStringCoercion(maybeKey), (children = "" + maybeKey));
3617
+ hasValidKey(config) &&
3618
+ (checkKeyStringCoercion(config.key), (children = "" + config.key));
3619
+ if ("key" in config) {
3620
+ maybeKey = {};
3621
+ for (var propName in config)
3622
+ "key" !== propName && (maybeKey[propName] = config[propName]);
3623
+ } else maybeKey = config;
3624
+ children &&
3625
+ defineKeyPropWarningGetter(
3626
+ maybeKey,
3627
+ "function" === typeof type
3628
+ ? type.displayName || type.name || "Unknown"
3629
+ : type
3630
+ );
3631
+ return ReactElement(type, children, self, source, getOwner(), maybeKey);
3632
+ }
3633
+ function validateChildKeys(node, parentType) {
3634
+ if (
3635
+ "object" === typeof node &&
3636
+ node &&
3637
+ node.$$typeof !== REACT_CLIENT_REFERENCE
3638
+ )
3639
+ if (isArrayImpl(node))
3640
+ for (var i = 0; i < node.length; i++) {
3641
+ var child = node[i];
3642
+ isValidElement(child) && validateExplicitKey(child, parentType);
3643
+ }
3644
+ else if (isValidElement(node))
3645
+ node._store && (node._store.validated = 1);
3646
+ else if (
3647
+ (null === node || "object" !== typeof node
3648
+ ? (i = null)
3649
+ : ((i =
3650
+ (MAYBE_ITERATOR_SYMBOL && node[MAYBE_ITERATOR_SYMBOL]) ||
3651
+ node["@@iterator"]),
3652
+ (i = "function" === typeof i ? i : null)),
3653
+ "function" === typeof i &&
3654
+ i !== node.entries &&
3655
+ ((i = i.call(node)), i !== node))
3656
+ )
3657
+ for (; !(node = i.next()).done; )
3658
+ isValidElement(node.value) &&
3659
+ validateExplicitKey(node.value, parentType);
3660
+ }
3661
+ function isValidElement(object) {
3662
+ return (
3663
+ "object" === typeof object &&
3664
+ null !== object &&
3665
+ object.$$typeof === REACT_ELEMENT_TYPE
3666
+ );
4942
3667
  }
4943
-
4944
- return element;
4945
- }
4946
- } // These two functions exist to still get child warnings in dev
4947
- // even with the prod transform. This means that jsxDEV is purely
4948
- // opt-in behavior for better messages but that we won't stop
4949
- // giving you warnings if you use production apis.
4950
-
4951
- function jsxWithValidationStatic(type, props, key) {
4952
- {
4953
- return jsxWithValidation(type, props, key, true);
4954
- }
4955
- }
4956
- function jsxWithValidationDynamic(type, props, key) {
4957
- {
4958
- return jsxWithValidation(type, props, key, false);
4959
- }
4960
- }
4961
-
4962
- var jsx = jsxWithValidationDynamic ; // we may want to special case jsxs internally to take advantage of static children.
4963
- // for now we can ship identical prod functions
4964
-
4965
- var jsxs = jsxWithValidationStatic ;
4966
-
4967
- exports.Fragment = REACT_FRAGMENT_TYPE;
4968
- exports.jsx = jsx;
4969
- exports.jsxs = jsxs;
4970
- })();
4971
- }
3668
+ function validateExplicitKey(element, parentType) {
3669
+ if (
3670
+ element._store &&
3671
+ !element._store.validated &&
3672
+ null == element.key &&
3673
+ ((element._store.validated = 1),
3674
+ (parentType = getCurrentComponentErrorInfo(parentType)),
3675
+ !ownerHasKeyUseWarning[parentType])
3676
+ ) {
3677
+ ownerHasKeyUseWarning[parentType] = !0;
3678
+ var childOwner = "";
3679
+ element &&
3680
+ null != element._owner &&
3681
+ element._owner !== getOwner() &&
3682
+ ((childOwner = null),
3683
+ "number" === typeof element._owner.tag
3684
+ ? (childOwner = getComponentNameFromType(element._owner.type))
3685
+ : "string" === typeof element._owner.name &&
3686
+ (childOwner = element._owner.name),
3687
+ (childOwner = " It was passed a child from " + childOwner + "."));
3688
+ var prevGetCurrentStack = ReactSharedInternals.getCurrentStack;
3689
+ ReactSharedInternals.getCurrentStack = function () {
3690
+ var stack = describeUnknownElementTypeFrameInDEV(element.type);
3691
+ prevGetCurrentStack && (stack += prevGetCurrentStack() || "");
3692
+ return stack;
3693
+ };
3694
+ console.error(
3695
+ 'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
3696
+ parentType,
3697
+ childOwner
3698
+ );
3699
+ ReactSharedInternals.getCurrentStack = prevGetCurrentStack;
3700
+ }
3701
+ }
3702
+ function getCurrentComponentErrorInfo(parentType) {
3703
+ var info = "",
3704
+ owner = getOwner();
3705
+ owner &&
3706
+ (owner = getComponentNameFromType(owner.type)) &&
3707
+ (info = "\n\nCheck the render method of `" + owner + "`.");
3708
+ info ||
3709
+ ((parentType = getComponentNameFromType(parentType)) &&
3710
+ (info =
3711
+ "\n\nCheck the top-level render call using <" + parentType + ">."));
3712
+ return info;
3713
+ }
3714
+ var React$1 = React,
3715
+ REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
3716
+ REACT_PORTAL_TYPE = Symbol.for("react.portal"),
3717
+ REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
3718
+ REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
3719
+ REACT_PROFILER_TYPE = Symbol.for("react.profiler");
3720
+ var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
3721
+ REACT_CONTEXT_TYPE = Symbol.for("react.context"),
3722
+ REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
3723
+ REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
3724
+ REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
3725
+ REACT_MEMO_TYPE = Symbol.for("react.memo"),
3726
+ REACT_LAZY_TYPE = Symbol.for("react.lazy"),
3727
+ REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"),
3728
+ MAYBE_ITERATOR_SYMBOL = Symbol.iterator,
3729
+ REACT_CLIENT_REFERENCE$2 = Symbol.for("react.client.reference"),
3730
+ ReactSharedInternals =
3731
+ React$1.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
3732
+ hasOwnProperty = Object.prototype.hasOwnProperty,
3733
+ assign = Object.assign,
3734
+ REACT_CLIENT_REFERENCE$1 = Symbol.for("react.client.reference"),
3735
+ isArrayImpl = Array.isArray,
3736
+ disabledDepth = 0,
3737
+ prevLog,
3738
+ prevInfo,
3739
+ prevWarn,
3740
+ prevError,
3741
+ prevGroup,
3742
+ prevGroupCollapsed,
3743
+ prevGroupEnd;
3744
+ disabledLog.__reactDisabledLog = !0;
3745
+ var prefix,
3746
+ suffix,
3747
+ reentry = !1;
3748
+ var componentFrameCache = new (
3749
+ "function" === typeof WeakMap ? WeakMap : Map
3750
+ )();
3751
+ var REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
3752
+ specialPropKeyWarningShown;
3753
+ var didWarnAboutElementRef = {};
3754
+ var didWarnAboutKeySpread = {},
3755
+ ownerHasKeyUseWarning = {};
3756
+ exports.Fragment = REACT_FRAGMENT_TYPE;
3757
+ exports.jsx = function (type, config, maybeKey, source, self) {
3758
+ return jsxDEVImpl(type, config, maybeKey, !1, source, self);
3759
+ };
3760
+ exports.jsxs = function (type, config, maybeKey, source, self) {
3761
+ return jsxDEVImpl(type, config, maybeKey, !0, source, self);
3762
+ };
3763
+ }))();
4972
3764
  });
4973
3765
  reactJsxRuntime_development.Fragment;
4974
3766
  reactJsxRuntime_development.jsx;
@@ -6603,215 +5395,126 @@
6603
5395
  }
6604
5396
 
6605
5397
  var reactIs_development = createCommonjsModule(function (module, exports) {
6606
-
6607
- {
6608
- (function() {
6609
-
6610
- // ATTENTION
6611
- // When adding new symbols to this file,
6612
- // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
6613
- // The Symbol used to tag the ReactElement-like types.
6614
- var REACT_ELEMENT_TYPE = Symbol.for('react.element');
6615
- var REACT_PORTAL_TYPE = Symbol.for('react.portal');
6616
- var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
6617
- var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');
6618
- var REACT_PROFILER_TYPE = Symbol.for('react.profiler');
6619
- var REACT_PROVIDER_TYPE = Symbol.for('react.provider');
6620
- var REACT_CONTEXT_TYPE = Symbol.for('react.context');
6621
- var REACT_SERVER_CONTEXT_TYPE = Symbol.for('react.server_context');
6622
- var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
6623
- var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');
6624
- var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');
6625
- var REACT_MEMO_TYPE = Symbol.for('react.memo');
6626
- var REACT_LAZY_TYPE = Symbol.for('react.lazy');
6627
- var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');
6628
-
6629
- // -----------------------------------------------------------------------------
6630
-
6631
- var enableScopeAPI = false; // Experimental Create Event Handle API.
6632
- var enableCacheElement = false;
6633
- var enableTransitionTracing = false; // No known bugs, but needs performance testing
6634
-
6635
- var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber
6636
- // stuff. Intended to enable React core members to more easily debug scheduling
6637
- // issues in DEV builds.
6638
-
6639
- var enableDebugTracing = false; // Track which Fiber(s) schedule render work.
6640
-
6641
- var REACT_MODULE_REFERENCE;
6642
-
6643
- {
6644
- REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');
6645
- }
6646
-
6647
- function isValidElementType(type) {
6648
- if (typeof type === 'string' || typeof type === 'function') {
6649
- return true;
6650
- } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
6651
-
6652
-
6653
- if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {
6654
- return true;
6655
- }
6656
-
6657
- if (typeof type === 'object' && type !== null) {
6658
- if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
6659
- // types supported by any Flight configuration anywhere since
6660
- // we don't know which Flight build this will end up being used
6661
- // with.
6662
- type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {
6663
- return true;
6664
- }
6665
- }
6666
-
6667
- return false;
6668
- }
6669
-
6670
- function typeOf(object) {
6671
- if (typeof object === 'object' && object !== null) {
6672
- var $$typeof = object.$$typeof;
6673
-
6674
- switch ($$typeof) {
6675
- case REACT_ELEMENT_TYPE:
6676
- var type = object.type;
6677
-
6678
- switch (type) {
6679
- case REACT_FRAGMENT_TYPE:
6680
- case REACT_PROFILER_TYPE:
6681
- case REACT_STRICT_MODE_TYPE:
6682
- case REACT_SUSPENSE_TYPE:
6683
- case REACT_SUSPENSE_LIST_TYPE:
6684
- return type;
6685
-
6686
- default:
6687
- var $$typeofType = type && type.$$typeof;
6688
-
6689
- switch ($$typeofType) {
6690
- case REACT_SERVER_CONTEXT_TYPE:
6691
- case REACT_CONTEXT_TYPE:
6692
- case REACT_FORWARD_REF_TYPE:
6693
- case REACT_LAZY_TYPE:
6694
- case REACT_MEMO_TYPE:
6695
- case REACT_PROVIDER_TYPE:
6696
- return $$typeofType;
6697
-
5398
+ ((function () {
5399
+ function typeOf(object) {
5400
+ if ("object" === typeof object && null !== object) {
5401
+ var $$typeof = object.$$typeof;
5402
+ switch ($$typeof) {
5403
+ case REACT_ELEMENT_TYPE:
5404
+ switch (((object = object.type), object)) {
5405
+ case REACT_FRAGMENT_TYPE:
5406
+ case REACT_PROFILER_TYPE:
5407
+ case REACT_STRICT_MODE_TYPE:
5408
+ case REACT_SUSPENSE_TYPE:
5409
+ case REACT_SUSPENSE_LIST_TYPE:
5410
+ return object;
6698
5411
  default:
6699
- return $$typeof;
5412
+ switch (((object = object && object.$$typeof), object)) {
5413
+ case REACT_CONTEXT_TYPE:
5414
+ case REACT_FORWARD_REF_TYPE:
5415
+ case REACT_LAZY_TYPE:
5416
+ case REACT_MEMO_TYPE:
5417
+ return object;
5418
+ case REACT_CONSUMER_TYPE:
5419
+ return object;
5420
+ default:
5421
+ return $$typeof;
5422
+ }
6700
5423
  }
6701
-
5424
+ case REACT_PORTAL_TYPE:
5425
+ return $$typeof;
6702
5426
  }
6703
-
6704
- case REACT_PORTAL_TYPE:
6705
- return $$typeof;
6706
- }
6707
- }
6708
-
6709
- return undefined;
6710
- }
6711
- var ContextConsumer = REACT_CONTEXT_TYPE;
6712
- var ContextProvider = REACT_PROVIDER_TYPE;
6713
- var Element = REACT_ELEMENT_TYPE;
6714
- var ForwardRef = REACT_FORWARD_REF_TYPE;
6715
- var Fragment = REACT_FRAGMENT_TYPE;
6716
- var Lazy = REACT_LAZY_TYPE;
6717
- var Memo = REACT_MEMO_TYPE;
6718
- var Portal = REACT_PORTAL_TYPE;
6719
- var Profiler = REACT_PROFILER_TYPE;
6720
- var StrictMode = REACT_STRICT_MODE_TYPE;
6721
- var Suspense = REACT_SUSPENSE_TYPE;
6722
- var SuspenseList = REACT_SUSPENSE_LIST_TYPE;
6723
- var hasWarnedAboutDeprecatedIsAsyncMode = false;
6724
- var hasWarnedAboutDeprecatedIsConcurrentMode = false; // AsyncMode should be deprecated
6725
-
6726
- function isAsyncMode(object) {
6727
- {
6728
- if (!hasWarnedAboutDeprecatedIsAsyncMode) {
6729
- hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
6730
-
6731
- console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 18+.');
6732
- }
6733
- }
6734
-
6735
- return false;
6736
- }
6737
- function isConcurrentMode(object) {
6738
- {
6739
- if (!hasWarnedAboutDeprecatedIsConcurrentMode) {
6740
- hasWarnedAboutDeprecatedIsConcurrentMode = true; // Using console['warn'] to evade Babel and ESLint
6741
-
6742
- console['warn']('The ReactIs.isConcurrentMode() alias has been deprecated, ' + 'and will be removed in React 18+.');
5427
+ }
6743
5428
  }
6744
- }
6745
-
6746
- return false;
6747
- }
6748
- function isContextConsumer(object) {
6749
- return typeOf(object) === REACT_CONTEXT_TYPE;
6750
- }
6751
- function isContextProvider(object) {
6752
- return typeOf(object) === REACT_PROVIDER_TYPE;
6753
- }
6754
- function isElement(object) {
6755
- return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
6756
- }
6757
- function isForwardRef(object) {
6758
- return typeOf(object) === REACT_FORWARD_REF_TYPE;
6759
- }
6760
- function isFragment(object) {
6761
- return typeOf(object) === REACT_FRAGMENT_TYPE;
6762
- }
6763
- function isLazy(object) {
6764
- return typeOf(object) === REACT_LAZY_TYPE;
6765
- }
6766
- function isMemo(object) {
6767
- return typeOf(object) === REACT_MEMO_TYPE;
6768
- }
6769
- function isPortal(object) {
6770
- return typeOf(object) === REACT_PORTAL_TYPE;
6771
- }
6772
- function isProfiler(object) {
6773
- return typeOf(object) === REACT_PROFILER_TYPE;
6774
- }
6775
- function isStrictMode(object) {
6776
- return typeOf(object) === REACT_STRICT_MODE_TYPE;
6777
- }
6778
- function isSuspense(object) {
6779
- return typeOf(object) === REACT_SUSPENSE_TYPE;
6780
- }
6781
- function isSuspenseList(object) {
6782
- return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
6783
- }
6784
-
6785
- exports.ContextConsumer = ContextConsumer;
6786
- exports.ContextProvider = ContextProvider;
6787
- exports.Element = Element;
6788
- exports.ForwardRef = ForwardRef;
6789
- exports.Fragment = Fragment;
6790
- exports.Lazy = Lazy;
6791
- exports.Memo = Memo;
6792
- exports.Portal = Portal;
6793
- exports.Profiler = Profiler;
6794
- exports.StrictMode = StrictMode;
6795
- exports.Suspense = Suspense;
6796
- exports.SuspenseList = SuspenseList;
6797
- exports.isAsyncMode = isAsyncMode;
6798
- exports.isConcurrentMode = isConcurrentMode;
6799
- exports.isContextConsumer = isContextConsumer;
6800
- exports.isContextProvider = isContextProvider;
6801
- exports.isElement = isElement;
6802
- exports.isForwardRef = isForwardRef;
6803
- exports.isFragment = isFragment;
6804
- exports.isLazy = isLazy;
6805
- exports.isMemo = isMemo;
6806
- exports.isPortal = isPortal;
6807
- exports.isProfiler = isProfiler;
6808
- exports.isStrictMode = isStrictMode;
6809
- exports.isSuspense = isSuspense;
6810
- exports.isSuspenseList = isSuspenseList;
6811
- exports.isValidElementType = isValidElementType;
6812
- exports.typeOf = typeOf;
6813
- })();
6814
- }
5429
+ var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
5430
+ REACT_PORTAL_TYPE = Symbol.for("react.portal"),
5431
+ REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
5432
+ REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
5433
+ REACT_PROFILER_TYPE = Symbol.for("react.profiler");
5434
+ var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
5435
+ REACT_CONTEXT_TYPE = Symbol.for("react.context"),
5436
+ REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
5437
+ REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
5438
+ REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
5439
+ REACT_MEMO_TYPE = Symbol.for("react.memo"),
5440
+ REACT_LAZY_TYPE = Symbol.for("react.lazy"),
5441
+ REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"),
5442
+ REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
5443
+ exports.ContextConsumer = REACT_CONSUMER_TYPE;
5444
+ exports.ContextProvider = REACT_CONTEXT_TYPE;
5445
+ exports.Element = REACT_ELEMENT_TYPE;
5446
+ exports.ForwardRef = REACT_FORWARD_REF_TYPE;
5447
+ exports.Fragment = REACT_FRAGMENT_TYPE;
5448
+ exports.Lazy = REACT_LAZY_TYPE;
5449
+ exports.Memo = REACT_MEMO_TYPE;
5450
+ exports.Portal = REACT_PORTAL_TYPE;
5451
+ exports.Profiler = REACT_PROFILER_TYPE;
5452
+ exports.StrictMode = REACT_STRICT_MODE_TYPE;
5453
+ exports.Suspense = REACT_SUSPENSE_TYPE;
5454
+ exports.SuspenseList = REACT_SUSPENSE_LIST_TYPE;
5455
+ exports.isContextConsumer = function (object) {
5456
+ return typeOf(object) === REACT_CONSUMER_TYPE;
5457
+ };
5458
+ exports.isContextProvider = function (object) {
5459
+ return typeOf(object) === REACT_CONTEXT_TYPE;
5460
+ };
5461
+ exports.isElement = function (object) {
5462
+ return (
5463
+ "object" === typeof object &&
5464
+ null !== object &&
5465
+ object.$$typeof === REACT_ELEMENT_TYPE
5466
+ );
5467
+ };
5468
+ exports.isForwardRef = function (object) {
5469
+ return typeOf(object) === REACT_FORWARD_REF_TYPE;
5470
+ };
5471
+ exports.isFragment = function (object) {
5472
+ return typeOf(object) === REACT_FRAGMENT_TYPE;
5473
+ };
5474
+ exports.isLazy = function (object) {
5475
+ return typeOf(object) === REACT_LAZY_TYPE;
5476
+ };
5477
+ exports.isMemo = function (object) {
5478
+ return typeOf(object) === REACT_MEMO_TYPE;
5479
+ };
5480
+ exports.isPortal = function (object) {
5481
+ return typeOf(object) === REACT_PORTAL_TYPE;
5482
+ };
5483
+ exports.isProfiler = function (object) {
5484
+ return typeOf(object) === REACT_PROFILER_TYPE;
5485
+ };
5486
+ exports.isStrictMode = function (object) {
5487
+ return typeOf(object) === REACT_STRICT_MODE_TYPE;
5488
+ };
5489
+ exports.isSuspense = function (object) {
5490
+ return typeOf(object) === REACT_SUSPENSE_TYPE;
5491
+ };
5492
+ exports.isSuspenseList = function (object) {
5493
+ return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
5494
+ };
5495
+ exports.isValidElementType = function (type) {
5496
+ return "string" === typeof type ||
5497
+ "function" === typeof type ||
5498
+ type === REACT_FRAGMENT_TYPE ||
5499
+ type === REACT_PROFILER_TYPE ||
5500
+ type === REACT_STRICT_MODE_TYPE ||
5501
+ type === REACT_SUSPENSE_TYPE ||
5502
+ type === REACT_SUSPENSE_LIST_TYPE ||
5503
+ type === REACT_OFFSCREEN_TYPE ||
5504
+ ("object" === typeof type &&
5505
+ null !== type &&
5506
+ (type.$$typeof === REACT_LAZY_TYPE ||
5507
+ type.$$typeof === REACT_MEMO_TYPE ||
5508
+ type.$$typeof === REACT_CONTEXT_TYPE ||
5509
+ type.$$typeof === REACT_CONSUMER_TYPE ||
5510
+ type.$$typeof === REACT_FORWARD_REF_TYPE ||
5511
+ type.$$typeof === REACT_CLIENT_REFERENCE ||
5512
+ void 0 !== type.getModuleId))
5513
+ ? !0
5514
+ : !1;
5515
+ };
5516
+ exports.typeOf = typeOf;
5517
+ }))();
6815
5518
  });
6816
5519
  reactIs_development.ContextConsumer;
6817
5520
  reactIs_development.ContextProvider;
@@ -6825,8 +5528,6 @@
6825
5528
  reactIs_development.StrictMode;
6826
5529
  reactIs_development.Suspense;
6827
5530
  reactIs_development.SuspenseList;
6828
- reactIs_development.isAsyncMode;
6829
- reactIs_development.isConcurrentMode;
6830
5531
  reactIs_development.isContextConsumer;
6831
5532
  reactIs_development.isContextProvider;
6832
5533
  reactIs_development.isElement;