@vincentgraul/react-components 1.0.5 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/_virtual/index.js +2 -2
- package/build/cjs/_virtual/index10.js +2 -2
- package/build/cjs/_virtual/index11.js +2 -2
- package/build/cjs/_virtual/index3.js +2 -2
- package/build/cjs/_virtual/index4.js +2 -2
- package/build/cjs/_virtual/index5.js +2 -2
- package/build/cjs/_virtual/index6.js +2 -2
- package/build/cjs/_virtual/index7.js +2 -2
- package/build/cjs/_virtual/index8.js +2 -2
- package/build/cjs/_virtual/index9.js +2 -2
- package/build/cjs/node_modules/@testing-library/react/dist/@testing-library/react.esm.js +30 -8
- package/build/cjs/node_modules/aria-query/lib/index.js +1 -1
- package/build/cjs/node_modules/call-bind/callBound.js +1 -1
- package/build/cjs/node_modules/call-bind/index.js +1 -1
- package/build/cjs/node_modules/deep-equal/index.js +1 -1
- package/build/cjs/node_modules/es-get-iterator/index.js +1 -1
- package/build/cjs/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +1 -1
- package/build/cjs/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +1 -1
- package/build/cjs/node_modules/is-bigint/index.js +1 -1
- package/build/cjs/node_modules/is-symbol/index.js +1 -1
- package/build/cjs/node_modules/is-weakset/index.js +1 -1
- package/build/cjs/node_modules/object-is/index.js +1 -1
- package/build/cjs/node_modules/object.assign/index.js +1 -1
- package/build/cjs/node_modules/pretty-format/build/index.js +2 -2
- package/build/cjs/node_modules/pretty-format/build/plugins/ConvertAnsi.js +1 -1
- package/build/cjs/node_modules/pretty-format/build/plugins/ReactElement.js +1 -1
- package/build/cjs/node_modules/pretty-format/node_modules/ansi-styles/index.js +1 -1
- package/build/cjs/node_modules/pretty-format/node_modules/react-is/index.js +1 -1
- package/build/cjs/node_modules/react/cjs/react-jsx-runtime.development.js +6 -3
- package/build/cjs/node_modules/react/cjs/react-jsx-runtime.production.min.js +6 -3
- package/build/cjs/node_modules/react-dom/cjs/react-dom-test-utils.development.js +9 -6
- package/build/cjs/node_modules/react-dom/cjs/react-dom-test-utils.production.min.js +8 -5
- package/build/cjs/node_modules/react-dom/client.js +6 -3
- package/build/cjs/node_modules/react-is/index.js +1 -1
- package/build/cjs/node_modules/regexp.prototype.flags/index.js +1 -1
- package/build/cjs/node_modules/styled-components/dist/styled-components.esm.js +7 -4
- package/build/cjs/node_modules/which-boxed-primitive/index.js +2 -2
- package/build/cjs/node_modules/which-collection/index.js +1 -1
- package/build/cjs/src/match-device/useMatchDevice.js +3 -4
- package/build/cjs/src/match-resolution/useMatchResolution.js +4 -5
- package/build/cjs/src/pagination/usePagination.js +6 -7
- package/build/cjs/src/visible/useVisible.js +3 -4
- package/build/esm/_virtual/index.js +2 -2
- package/build/esm/_virtual/index10.js +2 -2
- package/build/esm/_virtual/index11.js +2 -2
- package/build/esm/_virtual/index3.js +2 -2
- package/build/esm/_virtual/index4.js +2 -2
- package/build/esm/_virtual/index5.js +2 -2
- package/build/esm/_virtual/index6.js +2 -2
- package/build/esm/_virtual/index7.js +2 -2
- package/build/esm/_virtual/index8.js +2 -2
- package/build/esm/_virtual/index9.js +2 -2
- package/build/esm/node_modules/@testing-library/react/dist/@testing-library/react.esm.js +4 -5
- package/build/esm/node_modules/aria-query/lib/index.js +2 -2
- package/build/esm/node_modules/call-bind/callBound.js +1 -1
- package/build/esm/node_modules/call-bind/index.js +1 -1
- package/build/esm/node_modules/deep-equal/index.js +1 -1
- package/build/esm/node_modules/es-get-iterator/index.js +1 -1
- package/build/esm/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +1 -1
- package/build/esm/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +1 -1
- package/build/esm/node_modules/is-bigint/index.js +1 -1
- package/build/esm/node_modules/is-symbol/index.js +1 -1
- package/build/esm/node_modules/is-weakset/index.js +1 -1
- package/build/esm/node_modules/object-is/index.js +1 -1
- package/build/esm/node_modules/object.assign/index.js +1 -1
- package/build/esm/node_modules/pretty-format/build/index.js +2 -2
- package/build/esm/node_modules/pretty-format/build/plugins/ConvertAnsi.js +1 -1
- package/build/esm/node_modules/pretty-format/build/plugins/ReactElement.js +1 -1
- package/build/esm/node_modules/pretty-format/node_modules/ansi-styles/index.js +1 -1
- package/build/esm/node_modules/pretty-format/node_modules/react-is/index.js +1 -1
- package/build/esm/node_modules/react/cjs/react-jsx-runtime.development.js +2 -3
- package/build/esm/node_modules/react/cjs/react-jsx-runtime.production.min.js +2 -3
- package/build/esm/node_modules/react-dom/cjs/react-dom-test-utils.development.js +7 -9
- package/build/esm/node_modules/react-dom/cjs/react-dom-test-utils.production.min.js +3 -5
- package/build/esm/node_modules/react-dom/client.js +2 -3
- package/build/esm/node_modules/react-is/index.js +1 -1
- package/build/esm/node_modules/regexp.prototype.flags/index.js +1 -1
- package/build/esm/node_modules/styled-components/dist/styled-components.esm.js +3 -4
- package/build/esm/node_modules/which-boxed-primitive/index.js +2 -2
- package/build/esm/node_modules/which-collection/index.js +1 -1
- package/build/esm/src/match-device/useMatchDevice.js +3 -4
- package/build/esm/src/match-resolution/useMatchResolution.js +4 -5
- package/build/esm/src/pagination/usePagination.js +6 -7
- package/build/esm/src/visible/useVisible.js +3 -4
- package/package.json +1 -1
- package/build/cjs/_virtual/index12.js +0 -7
- package/build/cjs/_virtual/index13.js +0 -7
- package/build/cjs/_virtual/index14.js +0 -7
- package/build/cjs/_virtual/react-dom.development.js +0 -7
- package/build/cjs/_virtual/react-dom.production.min.js +0 -7
- package/build/cjs/_virtual/react.development.js +0 -7
- package/build/cjs/_virtual/react.production.min.js +0 -7
- package/build/cjs/_virtual/scheduler.development.js +0 -7
- package/build/cjs/_virtual/scheduler.production.min.js +0 -7
- package/build/cjs/node_modules/react/cjs/react.development.js +0 -2753
- package/build/cjs/node_modules/react/cjs/react.production.min.js +0 -42
- package/build/cjs/node_modules/react/index.js +0 -19
- package/build/cjs/node_modules/react-dom/cjs/react-dom.development.js +0 -29859
- package/build/cjs/node_modules/react-dom/cjs/react-dom.production.min.js +0 -338
- package/build/cjs/node_modules/react-dom/index.js +0 -50
- package/build/cjs/node_modules/scheduler/cjs/scheduler.development.js +0 -636
- package/build/cjs/node_modules/scheduler/cjs/scheduler.production.min.js +0 -37
- package/build/cjs/node_modules/scheduler/index.js +0 -25
- package/build/esm/_virtual/index12.js +0 -3
- package/build/esm/_virtual/index13.js +0 -3
- package/build/esm/_virtual/index14.js +0 -3
- package/build/esm/_virtual/react-dom.development.js +0 -3
- package/build/esm/_virtual/react-dom.production.min.js +0 -3
- package/build/esm/_virtual/react.development.js +0 -3
- package/build/esm/_virtual/react.production.min.js +0 -3
- package/build/esm/_virtual/scheduler.development.js +0 -3
- package/build/esm/_virtual/scheduler.production.min.js +0 -3
- package/build/esm/node_modules/react/cjs/react.development.js +0 -2749
- package/build/esm/node_modules/react/cjs/react.production.min.js +0 -38
- package/build/esm/node_modules/react/index.js +0 -17
- package/build/esm/node_modules/react-dom/cjs/react-dom.development.js +0 -29855
- package/build/esm/node_modules/react-dom/cjs/react-dom.production.min.js +0 -334
- package/build/esm/node_modules/react-dom/index.js +0 -48
- package/build/esm/node_modules/scheduler/cjs/scheduler.development.js +0 -632
- package/build/esm/node_modules/scheduler/cjs/scheduler.production.min.js +0 -33
- package/build/esm/node_modules/scheduler/index.js +0 -21
|
@@ -3,15 +3,18 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
require('../../react-is/index.js');
|
|
6
|
-
var
|
|
6
|
+
var r = require('react');
|
|
7
7
|
var stylis_esm = require('../../@emotion/stylis/dist/stylis.esm.js');
|
|
8
8
|
var unitless_cjs = require('../../@emotion/unitless/dist/unitless.cjs.js');
|
|
9
9
|
var emotionIsPropValid_esm = require('../../@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js');
|
|
10
10
|
var hoistNonReactStatics_cjs = require('../../hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js');
|
|
11
|
-
var index
|
|
12
|
-
var index$2 = require('../../../_virtual/index.js');
|
|
11
|
+
var index = require('../../../_virtual/index.js');
|
|
13
12
|
|
|
14
|
-
function y(){return (y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e}).apply(this,arguments)}var v=function(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n},g=function(t){return null!==t&&"object"==typeof t&&"[object Object]"===(t.toString?t.toString():Object.prototype.toString.call(t))&&!index$1.reactIs.exports.typeOf(t)},S=Object.freeze([]),w=Object.freeze({});function E(e){return "function"==typeof e}function b(e){return "production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function _(e){return e&&"string"==typeof e.styledComponentId}var N="undefined"!=typeof process&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",C="undefined"!=typeof window&&"HTMLElement"in window,I=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),O="production"!==process.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\n\n",2:"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\n\n",10:"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",11:"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:"%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",14:'ThemeProvider: "theme" prop is required.\n\n',15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:"Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n"}:{};function R(){for(var e=arguments.length<=0?void 0:arguments[0],t=[],n=1,r=arguments.length;n<r;n+=1)t.push(n<0||arguments.length<=n?void 0:arguments[n]);return t.forEach((function(t){e=e.replace(/%[a-z]/,t);})),e}function D(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw "production"===process.env.NODE_ENV?new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):"")):new Error(R.apply(void 0,[O[e]].concat(n)).trim())}var j=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e;}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)(o<<=1)<0&&D(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var s=r;s<o;s++)this.groupSizes[s]=0;}for(var i=this.indexOfGroup(e+1),a=0,c=t.length;a<c;a++)this.tag.insertRule(i,t[a])&&(this.groupSizes[e]++,i++);},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n);}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,s=r;s<o;s++)t+=this.tag.getRule(s)+"/*!sc*/\n";return t},e}(),T=new Map,x=new Map,k=1,V=function(e){if(T.has(e))return T.get(e);for(;x.has(k);)k++;var t=k++;return "production"!==process.env.NODE_ENV&&((0|t)<0||t>1<<30)&&D(16,""+t),T.set(e,t),x.set(t,e),t},z=function(e){return x.get(e)},B=function(e,t){t>=k&&(k=t+1),T.set(e,t),x.set(t,e);},M="style["+N+'][data-styled-version="5.3.6"]',G=new RegExp("^"+N+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),L=function(e,t,n){for(var r,o=n.split(","),s=0,i=o.length;s<i;s++)(r=o[s])&&e.registerName(t,r);},F=function(e,t){for(var n=(t.textContent||"").split("/*!sc*/\n"),r=[],o=0,s=n.length;o<s;o++){var i=n[o].trim();if(i){var a=i.match(G);if(a){var c=0|parseInt(a[1],10),u=a[2];0!==c&&(B(u,c),L(e,u,a[3]),e.getTag().insertRules(c,r)),r.length=0;}else r.push(i);}}},Y=function(){return "undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null},q=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(N))return r}}(n),s=void 0!==o?o.nextSibling:null;r.setAttribute(N,"active"),r.setAttribute("data-styled-version","5.3.6");var i=Y();return i&&r.setAttribute("nonce",i),n.insertBefore(r,s),r},H=function(){function e(e){var t=this.element=q(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}D(17);}(t),this.length=0;}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return !1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--;},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),$=function(){function e(e){var t=this.element=q(e);this.nodes=t.childNodes,this.length=0;}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return !1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--;},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),W=function(){function e(e){this.rules=[],this.length=0;}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--;},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),U=C,J={isServer:!C,useCSSOMInjection:!I},X=function(){function e(e,t,n){void 0===e&&(e=w),void 0===t&&(t={}),this.options=y({},J,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&C&&U&&(U=!1,function(e){for(var t=document.querySelectorAll(M),n=0,r=t.length;n<r;n++){var o=t[n];o&&"active"!==o.getAttribute(N)&&(F(e,o),o.parentNode&&o.parentNode.removeChild(o));}}(this));}e.registerId=function(e){return V(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(y({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,o=t.target,e=n?new W(o):r?new H(o):new $(o),new j(e)));var e,t,n,r,o;},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(V(e),this.names.has(e))this.names.get(e).add(t);else {var n=new Set;n.add(t),this.names.set(e,n);}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(V(e),n);},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear();},t.clearRules=function(e){this.getTag().clearGroup(V(e)),this.clearNames(e);},t.clearTag=function(){this.tag=void 0;},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=0;o<n;o++){var s=z(o);if(void 0!==s){var i=e.names.get(s),a=t.getGroup(o);if(i&&a&&i.size){var c=N+".g"+o+'[id="'+s+'"]',u="";void 0!==i&&i.forEach((function(e){e.length>0&&(u+=e+",");})),r+=""+a+c+'{content:"'+u+'"}/*!sc*/\n';}}}return r}(this)},e}(),Z=/(a)(d)/gi,K=function(e){return String.fromCharCode(e+(e>25?39:97))};function Q(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=K(t%52)+n;return (K(t%52)+n).replace(Z,"$1-$2")}var ee=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},te=function(e){return ee(5381,e)};function ne(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(E(n)&&!_(n))return !1}return !0}var re=te("5.3.6"),oe=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&ne(e),this.componentId=t,this.baseHash=ee(re,t),this.baseStyle=n,X.registerId(t);}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))o.push(this.staticRulesId);else {var s=_e(this.rules,e,t,n).join(""),i=Q(ee(this.baseHash,s)>>>0);if(!t.hasNameForId(r,i)){var a=n(s,"."+i,void 0,r);t.insertRules(r,i,a);}o.push(i),this.staticRulesId=i;}else {for(var c=this.rules.length,u=ee(this.baseHash,n.hash),l="",d=0;d<c;d++){var h=this.rules[d];if("string"==typeof h)l+=h,"production"!==process.env.NODE_ENV&&(u=ee(u,h+d));else if(h){var p=_e(h,e,t,n),f=Array.isArray(p)?p.join(""):p;u=ee(u,f+d),l+=f;}}if(l){var m=Q(u>>>0);if(!t.hasNameForId(r,m)){var y=n(l,"."+m,void 0,r);t.insertRules(r,m,y);}o.push(m);}}return o.join(" ")},e}(),se=/^\s*\/\/.*$/gm,ie=[":","[",".","#"];function ae(e){var t,n,r,o,s=void 0===e?w:e,i=s.options,a=void 0===i?w:i,c=s.plugins,u=void 0===c?S:c,l=new stylis_esm(a),d=[],p=function(e){function t(t){if(t)try{e(t+"}");}catch(e){}}return function(n,r,o,s,i,a,c,u,l,d){switch(n){case 1:if(0===l&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===u)return r+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(o[0]+r),"";default:return r+(0===d?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t);}}}((function(e){d.push(e);})),f=function(e,r,s){return 0===r&&-1!==ie.indexOf(s[n.length])||s.match(o)?e:"."+t};function m(e,s,i,a){void 0===a&&(a="&");var c=e.replace(se,""),u=s&&i?i+" "+s+" { "+c+" }":c;return t=a,n=s,r=new RegExp("\\"+n+"\\b","g"),o=new RegExp("(\\"+n+"\\b){2,}"),l(i||!s?"":s,u)}return l.use([].concat(u,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(n)>0&&(o[0]=o[0].replace(r,f));},p,function(e){if(-2===e){var t=d;return d=[],t}}])),m.hash=u.length?u.reduce((function(e,t){return t.name||D(15),ee(e,t.name)}),5381).toString():"",m}var ce=index.createContext();ce.Consumer;var le=index.createContext(),de=(le.Consumer,new X),he=ae();function pe(){return index$2.react.exports.useContext(ce)||de}function fe(){return index$2.react.exports.useContext(le)||he}var ye=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=he);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"));},this.toString=function(){return D(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t;}return e.prototype.getName=function(e){return void 0===e&&(e=he),this.name+e.hash},e}(),ve=/([A-Z])/,ge=/([A-Z])/g,Se=/^ms-/,we=function(e){return "-"+e.toLowerCase()};function Ee(e){return ve.test(e)?e.replace(ge,we).replace(Se,"-ms-"):e}var be=function(e){return null==e||!1===e||""===e};function _e(e,n,r,o){if(Array.isArray(e)){for(var s,i=[],a=0,c=e.length;a<c;a+=1)""!==(s=_e(e[a],n,r,o))&&(Array.isArray(s)?i.push.apply(i,s):i.push(s));return i}if(be(e))return "";if(_(e))return "."+e.styledComponentId;if(E(e)){if("function"!=typeof(l=e)||l.prototype&&l.prototype.isReactComponent||!n)return e;var u=e(n);return "production"!==process.env.NODE_ENV&&index$1.reactIs.exports.isElement(u)&&console.warn(b(e)+" is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details."),_e(u,n,r,o)}var l;return e instanceof ye?r?(e.inject(r,o),e.getName(o)):e:g(e)?function e(t,n){var r,o,s=[];for(var i in t)t.hasOwnProperty(i)&&!be(t[i])&&(Array.isArray(t[i])&&t[i].isCss||E(t[i])?s.push(Ee(i)+":",t[i],";"):g(t[i])?s.push.apply(s,e(t[i],i)):s.push(Ee(i)+": "+(r=i,null==(o=t[i])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||r in unitless_cjs?String(o).trim():o+"px")+";"));return n?[n+" {"].concat(s,["}"]):s}(e):e.toString()}var Ne=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function Ae(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return E(e)||g(e)?Ne(_e(v(S,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:Ne(_e(v(e,n)))}var Ce=/invalid hook call/i,Ie=new Set,Pe=function(e,t){if("production"!==process.env.NODE_ENV){var n="The component "+e+(t?' with the id of "'+t+'"':"")+" has been created dynamically.\nYou may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",r=console.error;try{var o=!0;console.error=function(e){if(Ce.test(e))o=!1,Ie.delete(n);else {for(var t=arguments.length,s=new Array(t>1?t-1:0),i=1;i<t;i++)s[i-1]=arguments[i];r.apply(void 0,[e].concat(s));}},index$2.react.exports.useRef(),o&&!Ie.has(n)&&(console.warn(n),Ie.add(n));}catch(e){Ce.test(e.message)&&Ie.delete(n);}finally{console.error=r;}}},Oe=function(e,t,n){return void 0===n&&(n=w),e.theme!==n.theme&&e.theme||t||n.theme},Re=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,De=/(^-|-$)/g;function je(e){return e.replace(Re,"-").replace(De,"")}var Te=function(e){return Q(te(e)>>>0)};function xe(e){return "string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var ke=function(e){return "function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Ve=function(e){return "__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function ze(e,t,n){var r=e[n];ke(t)&&ke(r)?Be(r,t):e[n]=t;}function Be(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var o=0,s=n;o<s.length;o++){var i=s[o];if(ke(i))for(var a in i)Ve(a)&&ze(e,i[a],a);}return e}var Me=index.createContext();Me.Consumer;var Fe={};function Ye(e,t,n){var o=_(e),i=!xe(e),a=t.attrs,c=void 0===a?S:a,d=t.componentId,h=void 0===d?function(e,t){var n="string"!=typeof e?"sc":je(e);Fe[n]=(Fe[n]||0)+1;var r=n+"-"+Te("5.3.6"+n+Fe[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):d,p=t.displayName,v=void 0===p?function(e){return xe(e)?"styled."+e:"Styled("+b(e)+")"}(e):p,g=t.displayName&&t.componentId?je(t.displayName)+"-"+t.componentId:t.componentId||h,N=o&&e.attrs?Array.prototype.concat(e.attrs,c).filter(Boolean):c,A=t.shouldForwardProp;o&&e.shouldForwardProp&&(A=t.shouldForwardProp?function(n,r,o){return e.shouldForwardProp(n,r,o)&&t.shouldForwardProp(n,r,o)}:e.shouldForwardProp);var C,I=new oe(n,g,o?e.componentStyle:void 0),P=I.isStatic&&0===c.length,O=function(e,t){return function(e,t,n,r){var o=e.attrs,i=e.componentStyle,a=e.defaultProps,c=e.foldedComponentIds,d=e.shouldForwardProp,h=e.styledComponentId,p=e.target;"production"!==process.env.NODE_ENV&&index$2.react.exports.useDebugValue(h);var m=function(e,t,n){void 0===e&&(e=w);var r=y({},t,{theme:e}),o={};return n.forEach((function(e){var t,n,s,i=e;for(t in E(i)&&(i=i(r)),i)r[t]=o[t]="className"===t?(n=o[t],s=i[t],n&&s?n+" "+s:n||s):i[t];})),[r,o]}(Oe(t,index$2.react.exports.useContext(Me),a)||w,t,o),v=m[0],g=m[1],S=function(e,t,n,r){var o=pe(),s=fe(),i=t?e.generateAndInjectStyles(w,o,s):e.generateAndInjectStyles(n,o,s);return "production"!==process.env.NODE_ENV&&index$2.react.exports.useDebugValue(i),"production"!==process.env.NODE_ENV&&!t&&r&&r(i),i}(i,r,v,"production"!==process.env.NODE_ENV?e.warnTooManyClasses:void 0),b=n,_=g.$as||t.$as||g.as||t.as||p,N=xe(_),A=g!==t?y({},t,{},g):t,C={};for(var I in A)"$"!==I[0]&&"as"!==I&&("forwardedAs"===I?C.as=A[I]:(d?d(I,emotionIsPropValid_esm,_):!N||emotionIsPropValid_esm(I))&&(C[I]=A[I]));return t.style&&g.style!==t.style&&(C.style=y({},t.style,{},g.style)),C.className=Array.prototype.concat(c,h,S!==h?S:null,t.className,g.className).filter(Boolean).join(" "),C.ref=b,index$2.react.exports.createElement(_,C)}(C,e,t,P)};return O.displayName=v,(C=index.forwardRef(O)).attrs=N,C.componentStyle=I,C.displayName=v,C.shouldForwardProp=A,C.foldedComponentIds=o?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):S,C.styledComponentId=g,C.target=o?e.target:e,C.withComponent=function(e){var r=t.componentId,o=function(e,t){if(null==e)return {};var n,r,o={},s=Object.keys(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,["componentId"]),s=r&&r+"-"+(xe(e)?e:je(b(e)));return Ye(e,y({},o,{attrs:N,componentId:s}),n)},Object.defineProperty(C,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=o?Be({},e.defaultProps,t):t;}}),"production"!==process.env.NODE_ENV&&(Pe(v,g),C.warnTooManyClasses=function(e,t){var n={},r=!1;return function(o){if(!r&&(n[o]=!0,Object.keys(n).length>=200)){var s=t?' with the id of "'+t+'"':"";console.warn("Over 200 classes were generated for component "+e+s+".\nConsider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),r=!0,n={};}}}(v,g)),C.toString=function(){return "."+C.styledComponentId},i&&hoistNonReactStatics_cjs(C,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),C}var qe=function(e){return function e(t,r,o){if(void 0===o&&(o=w),!index$1.reactIs.exports.isValidElementType(r))return D(1,String(r));var s=function(){return t(r,o,Ae.apply(void 0,arguments))};return s.withConfig=function(n){return e(t,r,y({},o,{},n))},s.attrs=function(n){return e(t,r,y({},o,{attrs:Array.prototype.concat(o.attrs,n).filter(Boolean)}))},s}(Ye,e)};["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","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){qe[e]=qe(e);}));"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native"),"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window["__styled-components-init__"]=window["__styled-components-init__"]||0,1===window["__styled-components-init__"]&&console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."),window["__styled-components-init__"]+=1);
|
|
13
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
14
|
+
|
|
15
|
+
var r__default = /*#__PURE__*/_interopDefaultLegacy(r);
|
|
16
|
+
|
|
17
|
+
function y(){return (y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e}).apply(this,arguments)}var v=function(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n},g=function(t){return null!==t&&"object"==typeof t&&"[object Object]"===(t.toString?t.toString():Object.prototype.toString.call(t))&&!index.reactIs.exports.typeOf(t)},S=Object.freeze([]),w=Object.freeze({});function E(e){return "function"==typeof e}function b(e){return "production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function _(e){return e&&"string"==typeof e.styledComponentId}var N="undefined"!=typeof process&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",C="undefined"!=typeof window&&"HTMLElement"in window,I=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),O="production"!==process.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\n\n",2:"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\n\n",10:"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",11:"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:"%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",14:'ThemeProvider: "theme" prop is required.\n\n',15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:"Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n"}:{};function R(){for(var e=arguments.length<=0?void 0:arguments[0],t=[],n=1,r=arguments.length;n<r;n+=1)t.push(n<0||arguments.length<=n?void 0:arguments[n]);return t.forEach((function(t){e=e.replace(/%[a-z]/,t);})),e}function D(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw "production"===process.env.NODE_ENV?new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):"")):new Error(R.apply(void 0,[O[e]].concat(n)).trim())}var j=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e;}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)(o<<=1)<0&&D(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var s=r;s<o;s++)this.groupSizes[s]=0;}for(var i=this.indexOfGroup(e+1),a=0,c=t.length;a<c;a++)this.tag.insertRule(i,t[a])&&(this.groupSizes[e]++,i++);},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n);}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,s=r;s<o;s++)t+=this.tag.getRule(s)+"/*!sc*/\n";return t},e}(),T=new Map,x=new Map,k=1,V=function(e){if(T.has(e))return T.get(e);for(;x.has(k);)k++;var t=k++;return "production"!==process.env.NODE_ENV&&((0|t)<0||t>1<<30)&&D(16,""+t),T.set(e,t),x.set(t,e),t},z=function(e){return x.get(e)},B=function(e,t){t>=k&&(k=t+1),T.set(e,t),x.set(t,e);},M="style["+N+'][data-styled-version="5.3.6"]',G=new RegExp("^"+N+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),L=function(e,t,n){for(var r,o=n.split(","),s=0,i=o.length;s<i;s++)(r=o[s])&&e.registerName(t,r);},F=function(e,t){for(var n=(t.textContent||"").split("/*!sc*/\n"),r=[],o=0,s=n.length;o<s;o++){var i=n[o].trim();if(i){var a=i.match(G);if(a){var c=0|parseInt(a[1],10),u=a[2];0!==c&&(B(u,c),L(e,u,a[3]),e.getTag().insertRules(c,r)),r.length=0;}else r.push(i);}}},Y=function(){return "undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null},q=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(N))return r}}(n),s=void 0!==o?o.nextSibling:null;r.setAttribute(N,"active"),r.setAttribute("data-styled-version","5.3.6");var i=Y();return i&&r.setAttribute("nonce",i),n.insertBefore(r,s),r},H=function(){function e(e){var t=this.element=q(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}D(17);}(t),this.length=0;}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return !1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--;},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),$=function(){function e(e){var t=this.element=q(e);this.nodes=t.childNodes,this.length=0;}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return !1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--;},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),W=function(){function e(e){this.rules=[],this.length=0;}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--;},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),U=C,J={isServer:!C,useCSSOMInjection:!I},X=function(){function e(e,t,n){void 0===e&&(e=w),void 0===t&&(t={}),this.options=y({},J,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&C&&U&&(U=!1,function(e){for(var t=document.querySelectorAll(M),n=0,r=t.length;n<r;n++){var o=t[n];o&&"active"!==o.getAttribute(N)&&(F(e,o),o.parentNode&&o.parentNode.removeChild(o));}}(this));}e.registerId=function(e){return V(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(y({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,o=t.target,e=n?new W(o):r?new H(o):new $(o),new j(e)));var e,t,n,r,o;},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(V(e),this.names.has(e))this.names.get(e).add(t);else {var n=new Set;n.add(t),this.names.set(e,n);}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(V(e),n);},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear();},t.clearRules=function(e){this.getTag().clearGroup(V(e)),this.clearNames(e);},t.clearTag=function(){this.tag=void 0;},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=0;o<n;o++){var s=z(o);if(void 0!==s){var i=e.names.get(s),a=t.getGroup(o);if(i&&a&&i.size){var c=N+".g"+o+'[id="'+s+'"]',u="";void 0!==i&&i.forEach((function(e){e.length>0&&(u+=e+",");})),r+=""+a+c+'{content:"'+u+'"}/*!sc*/\n';}}}return r}(this)},e}(),Z=/(a)(d)/gi,K=function(e){return String.fromCharCode(e+(e>25?39:97))};function Q(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=K(t%52)+n;return (K(t%52)+n).replace(Z,"$1-$2")}var ee=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},te=function(e){return ee(5381,e)};function ne(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(E(n)&&!_(n))return !1}return !0}var re=te("5.3.6"),oe=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&ne(e),this.componentId=t,this.baseHash=ee(re,t),this.baseStyle=n,X.registerId(t);}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))o.push(this.staticRulesId);else {var s=_e(this.rules,e,t,n).join(""),i=Q(ee(this.baseHash,s)>>>0);if(!t.hasNameForId(r,i)){var a=n(s,"."+i,void 0,r);t.insertRules(r,i,a);}o.push(i),this.staticRulesId=i;}else {for(var c=this.rules.length,u=ee(this.baseHash,n.hash),l="",d=0;d<c;d++){var h=this.rules[d];if("string"==typeof h)l+=h,"production"!==process.env.NODE_ENV&&(u=ee(u,h+d));else if(h){var p=_e(h,e,t,n),f=Array.isArray(p)?p.join(""):p;u=ee(u,f+d),l+=f;}}if(l){var m=Q(u>>>0);if(!t.hasNameForId(r,m)){var y=n(l,"."+m,void 0,r);t.insertRules(r,m,y);}o.push(m);}}return o.join(" ")},e}(),se=/^\s*\/\/.*$/gm,ie=[":","[",".","#"];function ae(e){var t,n,r,o,s=void 0===e?w:e,i=s.options,a=void 0===i?w:i,c=s.plugins,u=void 0===c?S:c,l=new stylis_esm(a),d=[],p=function(e){function t(t){if(t)try{e(t+"}");}catch(e){}}return function(n,r,o,s,i,a,c,u,l,d){switch(n){case 1:if(0===l&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===u)return r+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(o[0]+r),"";default:return r+(0===d?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t);}}}((function(e){d.push(e);})),f=function(e,r,s){return 0===r&&-1!==ie.indexOf(s[n.length])||s.match(o)?e:"."+t};function m(e,s,i,a){void 0===a&&(a="&");var c=e.replace(se,""),u=s&&i?i+" "+s+" { "+c+" }":c;return t=a,n=s,r=new RegExp("\\"+n+"\\b","g"),o=new RegExp("(\\"+n+"\\b){2,}"),l(i||!s?"":s,u)}return l.use([].concat(u,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(n)>0&&(o[0]=o[0].replace(r,f));},p,function(e){if(-2===e){var t=d;return d=[],t}}])),m.hash=u.length?u.reduce((function(e,t){return t.name||D(15),ee(e,t.name)}),5381).toString():"",m}var ce=r__default["default"].createContext();ce.Consumer;var le=r__default["default"].createContext(),de=(le.Consumer,new X),he=ae();function pe(){return r.useContext(ce)||de}function fe(){return r.useContext(le)||he}var ye=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=he);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"));},this.toString=function(){return D(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t;}return e.prototype.getName=function(e){return void 0===e&&(e=he),this.name+e.hash},e}(),ve=/([A-Z])/,ge=/([A-Z])/g,Se=/^ms-/,we=function(e){return "-"+e.toLowerCase()};function Ee(e){return ve.test(e)?e.replace(ge,we).replace(Se,"-ms-"):e}var be=function(e){return null==e||!1===e||""===e};function _e(e,n,r,o){if(Array.isArray(e)){for(var s,i=[],a=0,c=e.length;a<c;a+=1)""!==(s=_e(e[a],n,r,o))&&(Array.isArray(s)?i.push.apply(i,s):i.push(s));return i}if(be(e))return "";if(_(e))return "."+e.styledComponentId;if(E(e)){if("function"!=typeof(l=e)||l.prototype&&l.prototype.isReactComponent||!n)return e;var u=e(n);return "production"!==process.env.NODE_ENV&&index.reactIs.exports.isElement(u)&&console.warn(b(e)+" is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details."),_e(u,n,r,o)}var l;return e instanceof ye?r?(e.inject(r,o),e.getName(o)):e:g(e)?function e(t,n){var r,o,s=[];for(var i in t)t.hasOwnProperty(i)&&!be(t[i])&&(Array.isArray(t[i])&&t[i].isCss||E(t[i])?s.push(Ee(i)+":",t[i],";"):g(t[i])?s.push.apply(s,e(t[i],i)):s.push(Ee(i)+": "+(r=i,null==(o=t[i])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||r in unitless_cjs?String(o).trim():o+"px")+";"));return n?[n+" {"].concat(s,["}"]):s}(e):e.toString()}var Ne=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function Ae(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return E(e)||g(e)?Ne(_e(v(S,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:Ne(_e(v(e,n)))}var Ce=/invalid hook call/i,Ie=new Set,Pe=function(e,t){if("production"!==process.env.NODE_ENV){var n="The component "+e+(t?' with the id of "'+t+'"':"")+" has been created dynamically.\nYou may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",r$1=console.error;try{var o=!0;console.error=function(e){if(Ce.test(e))o=!1,Ie.delete(n);else {for(var t=arguments.length,s=new Array(t>1?t-1:0),i=1;i<t;i++)s[i-1]=arguments[i];r$1.apply(void 0,[e].concat(s));}},r.useRef(),o&&!Ie.has(n)&&(console.warn(n),Ie.add(n));}catch(e){Ce.test(e.message)&&Ie.delete(n);}finally{console.error=r$1;}}},Oe=function(e,t,n){return void 0===n&&(n=w),e.theme!==n.theme&&e.theme||t||n.theme},Re=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,De=/(^-|-$)/g;function je(e){return e.replace(Re,"-").replace(De,"")}var Te=function(e){return Q(te(e)>>>0)};function xe(e){return "string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var ke=function(e){return "function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Ve=function(e){return "__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function ze(e,t,n){var r=e[n];ke(t)&&ke(r)?Be(r,t):e[n]=t;}function Be(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var o=0,s=n;o<s.length;o++){var i=s[o];if(ke(i))for(var a in i)Ve(a)&&ze(e,i[a],a);}return e}var Me=r__default["default"].createContext();Me.Consumer;var Fe={};function Ye(e,t,n){var o=_(e),i=!xe(e),a=t.attrs,c=void 0===a?S:a,d=t.componentId,h=void 0===d?function(e,t){var n="string"!=typeof e?"sc":je(e);Fe[n]=(Fe[n]||0)+1;var r=n+"-"+Te("5.3.6"+n+Fe[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):d,p=t.displayName,v=void 0===p?function(e){return xe(e)?"styled."+e:"Styled("+b(e)+")"}(e):p,g=t.displayName&&t.componentId?je(t.displayName)+"-"+t.componentId:t.componentId||h,N=o&&e.attrs?Array.prototype.concat(e.attrs,c).filter(Boolean):c,A=t.shouldForwardProp;o&&e.shouldForwardProp&&(A=t.shouldForwardProp?function(n,r,o){return e.shouldForwardProp(n,r,o)&&t.shouldForwardProp(n,r,o)}:e.shouldForwardProp);var C,I=new oe(n,g,o?e.componentStyle:void 0),P=I.isStatic&&0===c.length,O=function(e,t){return function(e,t,n,r$1){var o=e.attrs,i=e.componentStyle,a=e.defaultProps,c=e.foldedComponentIds,d=e.shouldForwardProp,h=e.styledComponentId,p=e.target;"production"!==process.env.NODE_ENV&&r.useDebugValue(h);var m=function(e,t,n){void 0===e&&(e=w);var r=y({},t,{theme:e}),o={};return n.forEach((function(e){var t,n,s,i=e;for(t in E(i)&&(i=i(r)),i)r[t]=o[t]="className"===t?(n=o[t],s=i[t],n&&s?n+" "+s:n||s):i[t];})),[r,o]}(Oe(t,r.useContext(Me),a)||w,t,o),v=m[0],g=m[1],S=function(e,t,n,r$1){var o=pe(),s=fe(),i=t?e.generateAndInjectStyles(w,o,s):e.generateAndInjectStyles(n,o,s);return "production"!==process.env.NODE_ENV&&r.useDebugValue(i),"production"!==process.env.NODE_ENV&&!t&&r$1&&r$1(i),i}(i,r$1,v,"production"!==process.env.NODE_ENV?e.warnTooManyClasses:void 0),b=n,_=g.$as||t.$as||g.as||t.as||p,N=xe(_),A=g!==t?y({},t,{},g):t,C={};for(var I in A)"$"!==I[0]&&"as"!==I&&("forwardedAs"===I?C.as=A[I]:(d?d(I,emotionIsPropValid_esm,_):!N||emotionIsPropValid_esm(I))&&(C[I]=A[I]));return t.style&&g.style!==t.style&&(C.style=y({},t.style,{},g.style)),C.className=Array.prototype.concat(c,h,S!==h?S:null,t.className,g.className).filter(Boolean).join(" "),C.ref=b,r.createElement(_,C)}(C,e,t,P)};return O.displayName=v,(C=r__default["default"].forwardRef(O)).attrs=N,C.componentStyle=I,C.displayName=v,C.shouldForwardProp=A,C.foldedComponentIds=o?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):S,C.styledComponentId=g,C.target=o?e.target:e,C.withComponent=function(e){var r=t.componentId,o=function(e,t){if(null==e)return {};var n,r,o={},s=Object.keys(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,["componentId"]),s=r&&r+"-"+(xe(e)?e:je(b(e)));return Ye(e,y({},o,{attrs:N,componentId:s}),n)},Object.defineProperty(C,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=o?Be({},e.defaultProps,t):t;}}),"production"!==process.env.NODE_ENV&&(Pe(v,g),C.warnTooManyClasses=function(e,t){var n={},r=!1;return function(o){if(!r&&(n[o]=!0,Object.keys(n).length>=200)){var s=t?' with the id of "'+t+'"':"";console.warn("Over 200 classes were generated for component "+e+s+".\nConsider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),r=!0,n={};}}}(v,g)),C.toString=function(){return "."+C.styledComponentId},i&&hoistNonReactStatics_cjs(C,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),C}var qe=function(e){return function e(t,r,o){if(void 0===o&&(o=w),!index.reactIs.exports.isValidElementType(r))return D(1,String(r));var s=function(){return t(r,o,Ae.apply(void 0,arguments))};return s.withConfig=function(n){return e(t,r,y({},o,{},n))},s.attrs=function(n){return e(t,r,y({},o,{attrs:Array.prototype.concat(o.attrs,n).filter(Boolean)}))},s}(Ye,e)};["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","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){qe[e]=qe(e);}));"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native"),"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window["__styled-components-init__"]=window["__styled-components-init__"]||0,1===window["__styled-components-init__"]&&console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."),window["__styled-components-init__"]+=1);
|
|
15
18
|
|
|
16
19
|
exports.StyleSheetContext = ce;
|
|
17
20
|
exports.ThemeContext = Me;
|
|
@@ -5,8 +5,8 @@ var index$1 = require('../is-number-object/index.js');
|
|
|
5
5
|
var index$2 = require('../is-boolean-object/index.js');
|
|
6
6
|
require('../is-symbol/index.js');
|
|
7
7
|
require('../is-bigint/index.js');
|
|
8
|
-
var index$3 = require('../../_virtual/
|
|
9
|
-
var index$4 = require('../../_virtual/
|
|
8
|
+
var index$3 = require('../../_virtual/index6.js');
|
|
9
|
+
var index$4 = require('../../_virtual/index7.js');
|
|
10
10
|
|
|
11
11
|
var isString = index;
|
|
12
12
|
var isNumber = index$1;
|
|
@@ -4,7 +4,7 @@ var index = require('../is-map/index.js');
|
|
|
4
4
|
var index$1 = require('../is-set/index.js');
|
|
5
5
|
var index$2 = require('../is-weakmap/index.js');
|
|
6
6
|
require('../is-weakset/index.js');
|
|
7
|
-
var index$3 = require('../../_virtual/
|
|
7
|
+
var index$3 = require('../../_virtual/index8.js');
|
|
8
8
|
|
|
9
9
|
var isMap = index;
|
|
10
10
|
var isSet = index$1;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
require('
|
|
3
|
+
var r = require('react');
|
|
4
4
|
var uaParser = require('../../node_modules/ua-parser-js/src/ua-parser.js');
|
|
5
|
-
var index = require('../../_virtual/index.js');
|
|
6
5
|
|
|
7
6
|
function useMatchDevice(UA) {
|
|
8
7
|
const isClientSide = typeof window !== "undefined";
|
|
@@ -21,8 +20,8 @@ function useMatchDevice(UA) {
|
|
|
21
20
|
if (!isClientSide) {
|
|
22
21
|
return compute();
|
|
23
22
|
}
|
|
24
|
-
const [device, setDevice] =
|
|
25
|
-
|
|
23
|
+
const [device, setDevice] = r.useState(compute());
|
|
24
|
+
r.useEffect(() => {
|
|
26
25
|
setDevice(compute());
|
|
27
26
|
}, [UA]);
|
|
28
27
|
return device;
|
|
@@ -2,9 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
require('
|
|
5
|
+
var r = require('react');
|
|
6
6
|
var useMatchDevice = require('../match-device/useMatchDevice.js');
|
|
7
|
-
var index = require('../../_virtual/index.js');
|
|
8
7
|
|
|
9
8
|
const defaultBreakpoints = {
|
|
10
9
|
desktop: "(min-width: 1281px)",
|
|
@@ -40,15 +39,15 @@ function useMatchResolution(breakpoints = defaultBreakpoints, UA = "") {
|
|
|
40
39
|
isPortrait: isClientSide ? match(breakpoints.portrait) : false,
|
|
41
40
|
isLandscape: isClientSide ? match(breakpoints.landscape) : false,
|
|
42
41
|
});
|
|
43
|
-
const [resolution, setResolution] =
|
|
44
|
-
|
|
42
|
+
const [resolution, setResolution] = r.useState(compute());
|
|
43
|
+
r.useEffect(() => {
|
|
45
44
|
const onResize = () => setResolution(compute());
|
|
46
45
|
window.addEventListener("resize", onResize);
|
|
47
46
|
return () => {
|
|
48
47
|
window.removeEventListener("resize", onResize);
|
|
49
48
|
};
|
|
50
49
|
}, []);
|
|
51
|
-
|
|
50
|
+
r.useEffect(() => {
|
|
52
51
|
setResolution(compute());
|
|
53
52
|
}, [breakpoints]);
|
|
54
53
|
return { resolution, breakpoints, match };
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
require('
|
|
4
|
-
var index = require('../../_virtual/index.js');
|
|
3
|
+
var r = require('react');
|
|
5
4
|
|
|
6
5
|
function usePagination(props) {
|
|
7
6
|
const { totalRecords, itemNeighbours = 2, minItems = 5, maxRecordsPerPage = 10 } = props;
|
|
8
|
-
const [page, setPage] =
|
|
9
|
-
const [total, setTotal] =
|
|
10
|
-
const [items, setItems] =
|
|
7
|
+
const [page, setPage] = r.useState(props.page);
|
|
8
|
+
const [total, setTotal] = r.useState(0);
|
|
9
|
+
const [items, setItems] = r.useState([]);
|
|
11
10
|
const generateItems = () => {
|
|
12
11
|
const items = [];
|
|
13
12
|
const from = Math.max(1, Math.min(page - itemNeighbours, total + 1 - minItems));
|
|
@@ -17,10 +16,10 @@ function usePagination(props) {
|
|
|
17
16
|
}
|
|
18
17
|
return items;
|
|
19
18
|
};
|
|
20
|
-
|
|
19
|
+
r.useEffect(() => {
|
|
21
20
|
setTotal(Math.ceil(totalRecords / maxRecordsPerPage));
|
|
22
21
|
}, [totalRecords, maxRecordsPerPage]);
|
|
23
|
-
|
|
22
|
+
r.useEffect(() => {
|
|
24
23
|
setItems(generateItems());
|
|
25
24
|
}, [page, total, itemNeighbours, minItems]);
|
|
26
25
|
const goToPage = (page) => {
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
require('
|
|
4
|
-
var index = require('../../_virtual/index.js');
|
|
3
|
+
var r = require('react');
|
|
5
4
|
|
|
6
5
|
function useVisible(target) {
|
|
7
|
-
const [isVisible, setVisibility] =
|
|
6
|
+
const [isVisible, setVisibility] = r.useState(false);
|
|
8
7
|
const handleObserver = (entry) => {
|
|
9
8
|
setVisibility(entry.isIntersecting);
|
|
10
9
|
};
|
|
11
|
-
|
|
10
|
+
r.useEffect(() => {
|
|
12
11
|
const observer = new IntersectionObserver(([entry]) => handleObserver(entry));
|
|
13
12
|
if (target && target.current) {
|
|
14
13
|
observer.observe(target.current);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var
|
|
1
|
+
var reactIs = {exports: {}};
|
|
2
2
|
|
|
3
|
-
export {
|
|
3
|
+
export { reactIs as r };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var
|
|
1
|
+
var ansiStyles = {exports: {}};
|
|
2
2
|
|
|
3
|
-
export {
|
|
3
|
+
export { ansiStyles as a };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var
|
|
1
|
+
var reactIs = {exports: {}};
|
|
2
2
|
|
|
3
|
-
export {
|
|
3
|
+
export { reactIs as r };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var
|
|
1
|
+
var lib = {};
|
|
2
2
|
|
|
3
|
-
export {
|
|
3
|
+
export { lib as __exports };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var
|
|
1
|
+
var esGetIterator = {exports: {}};
|
|
2
2
|
|
|
3
|
-
export {
|
|
3
|
+
export { esGetIterator as e };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var
|
|
1
|
+
var callBind = {exports: {}};
|
|
2
2
|
|
|
3
|
-
export {
|
|
3
|
+
export { callBind as c };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var
|
|
1
|
+
var isSymbol = {exports: {}};
|
|
2
2
|
|
|
3
|
-
export {
|
|
3
|
+
export { isSymbol as i };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var
|
|
1
|
+
var isBigint = {exports: {}};
|
|
2
2
|
|
|
3
|
-
export {
|
|
3
|
+
export { isBigint as i };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var
|
|
1
|
+
var isWeakset = {exports: {}};
|
|
2
2
|
|
|
3
|
-
export {
|
|
3
|
+
export { isWeakset as i };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var
|
|
1
|
+
var build = {};
|
|
2
2
|
|
|
3
|
-
export {
|
|
3
|
+
export { build as __exports };
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import '../../../../react-dom/test-utils.js';
|
|
2
|
-
import '
|
|
3
|
-
import ReactDOM from '
|
|
2
|
+
import * as r from 'react';
|
|
3
|
+
import ReactDOM from 'react-dom';
|
|
4
4
|
import { hydrateRoot, createRoot } from '../../../../react-dom/client.js';
|
|
5
5
|
import { fireEvent, configure, prettyDOM, getQueriesForElement } from '../../../dom/dist/@testing-library/dom.esm.js';
|
|
6
6
|
export { buildQueries, configure, createEvent, findAllByAltText, findAllByDisplayValue, findAllByLabelText, findAllByPlaceholderText, findAllByRole, findAllByTestId, findAllByText, findAllByTitle, findByAltText, findByDisplayValue, findByLabelText, findByPlaceholderText, findByRole, findByTestId, findByText, findByTitle, getAllByAltText, getAllByDisplayValue, getAllByLabelText, getAllByPlaceholderText, getAllByRole, getAllByTestId, getAllByText, getAllByTitle, getByAltText, getByDisplayValue, getByLabelText, getByPlaceholderText, getByRole, getByTestId, getByText, getByTitle, getConfig, getDefaultNormalizer, getElementError, getMultipleElementsFoundError, getNodeText, getQueriesForElement, getRoles, getSuggestedQuery, isInaccessible, logDOM, makeFindQuery, makeGetAllQuery, makeSingleQuery, prettyDOM, queries, queryAllByAltText, queryAllByAttribute, queryAllByDisplayValue, queryAllByLabelText, queryAllByPlaceholderText, queryAllByRole, queryAllByTestId, queryAllByText, queryAllByTitle, queryByAltText, queryByDisplayValue, queryByLabelText, queryByPlaceholderText, queryByRole, queryByTestId, queryByText, queryByTitle, waitFor, getQueriesForElement as within, wrapAllByQueryWithSuggestion, wrapSingleQueryWithSuggestion } from '../../../dom/dist/@testing-library/dom.esm.js';
|
|
7
|
-
import { r as react } from '../../../../../_virtual/index.js';
|
|
8
7
|
import { t as testUtils } from '../../../../../_virtual/test-utils.js';
|
|
9
8
|
|
|
10
9
|
const domAct = testUtils.exports.act;
|
|
@@ -143,7 +142,7 @@ function createConcurrentRoot(container, _ref) {
|
|
|
143
142
|
|
|
144
143
|
if (hydrate) {
|
|
145
144
|
act(() => {
|
|
146
|
-
root = hydrateRoot(container, WrapperComponent ? /*#__PURE__*/
|
|
145
|
+
root = hydrateRoot(container, WrapperComponent ? /*#__PURE__*/r.createElement(WrapperComponent, null, ui) : ui);
|
|
147
146
|
});
|
|
148
147
|
} else {
|
|
149
148
|
root = createRoot(container);
|
|
@@ -196,7 +195,7 @@ function renderRoot(ui, _ref2) {
|
|
|
196
195
|
wrapper: WrapperComponent
|
|
197
196
|
} = _ref2;
|
|
198
197
|
|
|
199
|
-
const wrapUiIfNeeded = innerElement => WrapperComponent ? /*#__PURE__*/
|
|
198
|
+
const wrapUiIfNeeded = innerElement => WrapperComponent ? /*#__PURE__*/r.createElement(WrapperComponent, null, innerElement) : innerElement;
|
|
200
199
|
|
|
201
200
|
act(() => {
|
|
202
201
|
if (hydrate) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { __exports as lib } from '../../../_virtual/
|
|
2
|
-
export { __exports as default } from '../../../_virtual/
|
|
1
|
+
import { __exports as lib } from '../../../_virtual/index3.js';
|
|
2
|
+
export { __exports as default } from '../../../_virtual/index3.js';
|
|
3
3
|
import './ariaPropsMap.js';
|
|
4
4
|
import './domMap.js';
|
|
5
5
|
import './rolesMap.js';
|
|
@@ -13,7 +13,7 @@ import '../es-get-iterator/index.js';
|
|
|
13
13
|
import sideChannel from '../side-channel/index.js';
|
|
14
14
|
import whichTypedArray$1 from '../which-typed-array/index.js';
|
|
15
15
|
import object_assign from '../object.assign/index.js';
|
|
16
|
-
import { e as esGetIterator } from '../../_virtual/
|
|
16
|
+
import { e as esGetIterator } from '../../_virtual/index4.js';
|
|
17
17
|
|
|
18
18
|
var objectKeys = objectKeys$1;
|
|
19
19
|
var isArguments = isArguments$1;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as esGetIterator } from '../../_virtual/
|
|
1
|
+
import { e as esGetIterator } from '../../_virtual/index4.js';
|
|
2
2
|
import isArguments$1 from '../is-arguments/index.js';
|
|
3
3
|
import hasSymbols from '../has-symbols/index.js';
|
|
4
4
|
import shams from '../has-symbols/shams.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as reactIs } from '../../../../_virtual/
|
|
1
|
+
import { r as reactIs } from '../../../../_virtual/index2.js';
|
|
2
2
|
import { __require as requireReactIs_production_min } from './cjs/react-is.production.min.js';
|
|
3
3
|
import { __require as requireReactIs_development } from './cjs/react-is.development.js';
|
|
4
4
|
|
|
@@ -3,7 +3,7 @@ import '../call-bind/index.js';
|
|
|
3
3
|
import implementation$1 from './implementation.js';
|
|
4
4
|
import polyfill$1 from './polyfill.js';
|
|
5
5
|
import shim$1 from './shim.js';
|
|
6
|
-
import { c as callBind$1 } from '../../_virtual/
|
|
6
|
+
import { c as callBind$1 } from '../../_virtual/index5.js';
|
|
7
7
|
|
|
8
8
|
var define = defineProperties_1;
|
|
9
9
|
var callBind = callBind$1.exports;
|
|
@@ -3,7 +3,7 @@ import '../call-bind/index.js';
|
|
|
3
3
|
import implementation$1 from './implementation.js';
|
|
4
4
|
import polyfill$1 from './polyfill.js';
|
|
5
5
|
import shim$1 from './shim.js';
|
|
6
|
-
import { c as callBind$1 } from '../../_virtual/
|
|
6
|
+
import { c as callBind$1 } from '../../_virtual/index5.js';
|
|
7
7
|
|
|
8
8
|
var defineProperties = defineProperties_1;
|
|
9
9
|
var callBind = callBind$1.exports;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __exports as build } from '../../../_virtual/
|
|
1
|
+
import { __exports as build } from '../../../_virtual/index9.js';
|
|
2
2
|
import '../node_modules/ansi-styles/index.js';
|
|
3
3
|
import './collections.js';
|
|
4
4
|
import './plugins/AsymmetricMatcher.js';
|
|
@@ -16,7 +16,7 @@ import { __exports as Immutable } from '../../../_virtual/Immutable.js';
|
|
|
16
16
|
import { __exports as ReactElement } from '../../../_virtual/ReactElement.js';
|
|
17
17
|
import { __exports as ReactTestComponent } from '../../../_virtual/ReactTestComponent.js';
|
|
18
18
|
import { __exports as collections } from '../../../_virtual/collections.js';
|
|
19
|
-
import { a as ansiStyles } from '../../../_virtual/
|
|
19
|
+
import { a as ansiStyles } from '../../../_virtual/index10.js';
|
|
20
20
|
|
|
21
21
|
Object.defineProperty(build, '__esModule', {
|
|
22
22
|
value: true
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __exports as ConvertAnsi } from '../../../../_virtual/ConvertAnsi.js';
|
|
2
2
|
import ansiRegex from '../../../ansi-regex/index.js';
|
|
3
3
|
import '../../node_modules/ansi-styles/index.js';
|
|
4
|
-
import { a as ansiStyles } from '../../../../_virtual/
|
|
4
|
+
import { a as ansiStyles } from '../../../../_virtual/index10.js';
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(ConvertAnsi, '__esModule', {
|
|
7
7
|
value: true
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __exports as ReactElement } from '../../../../_virtual/ReactElement.js';
|
|
2
2
|
import '../../node_modules/react-is/index.js';
|
|
3
3
|
import './lib/markup.js';
|
|
4
|
-
import { r as reactIs } from '../../../../_virtual/
|
|
4
|
+
import { r as reactIs } from '../../../../_virtual/index11.js';
|
|
5
5
|
import { __exports as markup } from '../../../../_virtual/markup.js';
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(ReactElement, '__esModule', {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as reactIs } from '../../../../_virtual/
|
|
1
|
+
import { r as reactIs } from '../../../../_virtual/index11.js';
|
|
2
2
|
import { __require as requireReactIs_production_min } from './cjs/react-is.production.min.js';
|
|
3
3
|
import { __require as requireReactIs_development } from './cjs/react-is.development.js';
|
|
4
4
|
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { __exports as reactJsxRuntime_development } from '../../../_virtual/react-jsx-runtime.development.js';
|
|
2
|
-
import '
|
|
3
|
-
import { r as react } from '../../../_virtual/index.js';
|
|
2
|
+
import r__default from 'react';
|
|
4
3
|
|
|
5
4
|
/**
|
|
6
5
|
* @license React
|
|
@@ -21,7 +20,7 @@ function requireReactJsxRuntime_development () {
|
|
|
21
20
|
if (process.env.NODE_ENV !== "production") {
|
|
22
21
|
(function() {
|
|
23
22
|
|
|
24
|
-
var React =
|
|
23
|
+
var React = r__default;
|
|
25
24
|
|
|
26
25
|
// ATTENTION
|
|
27
26
|
// When adding new symbols to this file,
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { __exports as reactJsxRuntime_production_min } from '../../../_virtual/react-jsx-runtime.production.min.js';
|
|
2
|
-
import '
|
|
3
|
-
import { r as react } from '../../../_virtual/index.js';
|
|
2
|
+
import r__default from 'react';
|
|
4
3
|
|
|
5
4
|
/**
|
|
6
5
|
* @license React
|
|
@@ -17,7 +16,7 @@ var hasRequiredReactJsxRuntime_production_min;
|
|
|
17
16
|
function requireReactJsxRuntime_production_min () {
|
|
18
17
|
if (hasRequiredReactJsxRuntime_production_min) return reactJsxRuntime_production_min;
|
|
19
18
|
hasRequiredReactJsxRuntime_production_min = 1;
|
|
20
|
-
var f=
|
|
19
|
+
var f=r__default,k=Symbol.for("react.element"),l=Symbol.for("react.fragment"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};
|
|
21
20
|
function q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=""+g);void 0!==a.key&&(e=""+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return {$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}reactJsxRuntime_production_min.Fragment=l;reactJsxRuntime_production_min.jsx=q;reactJsxRuntime_production_min.jsxs=q;
|
|
22
21
|
return reactJsxRuntime_production_min;
|
|
23
22
|
}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { __exports as reactDomTestUtils_development } from '../../../_virtual/react-dom-test-utils.development.js';
|
|
2
|
-
import '
|
|
3
|
-
import '
|
|
4
|
-
import { r as react } from '../../../_virtual/index.js';
|
|
5
|
-
import { r as reactDom } from '../../../_virtual/index4.js';
|
|
2
|
+
import r__default from 'react';
|
|
3
|
+
import ReactDOM from 'react-dom';
|
|
6
4
|
|
|
7
5
|
/**
|
|
8
6
|
* @license React
|
|
@@ -23,8 +21,8 @@ function requireReactDomTestUtils_development () {
|
|
|
23
21
|
if (process.env.NODE_ENV !== "production") {
|
|
24
22
|
(function() {
|
|
25
23
|
|
|
26
|
-
var React =
|
|
27
|
-
var ReactDOM =
|
|
24
|
+
var React = r__default;
|
|
25
|
+
var ReactDOM$1 = ReactDOM;
|
|
28
26
|
|
|
29
27
|
var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
30
28
|
|
|
@@ -1131,7 +1129,7 @@ function requireReactDomTestUtils_development () {
|
|
|
1131
1129
|
return isArrayImpl(a);
|
|
1132
1130
|
}
|
|
1133
1131
|
|
|
1134
|
-
var SecretInternals = ReactDOM.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
1132
|
+
var SecretInternals = ReactDOM$1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
1135
1133
|
var EventInternals = SecretInternals.Events;
|
|
1136
1134
|
var getInstanceFromNode = EventInternals[0];
|
|
1137
1135
|
var getNodeFromInstance = EventInternals[1];
|
|
@@ -1237,7 +1235,7 @@ function requireReactDomTestUtils_development () {
|
|
|
1237
1235
|
// (and probably rename it eventually) if no problems arise.
|
|
1238
1236
|
// document.documentElement.appendChild(div);
|
|
1239
1237
|
|
|
1240
|
-
return ReactDOM.render(element, div);
|
|
1238
|
+
return ReactDOM$1.render(element, div);
|
|
1241
1239
|
}
|
|
1242
1240
|
|
|
1243
1241
|
function isElement(element) {
|
|
@@ -1705,7 +1703,7 @@ function requireReactDomTestUtils_development () {
|
|
|
1705
1703
|
accumulateTwoPhaseDispatchesSingle(event);
|
|
1706
1704
|
}
|
|
1707
1705
|
|
|
1708
|
-
ReactDOM.unstable_batchedUpdates(function () {
|
|
1706
|
+
ReactDOM$1.unstable_batchedUpdates(function () {
|
|
1709
1707
|
// Normally extractEvent enqueues a state restore, but we'll just always
|
|
1710
1708
|
// do that since we're by-passing it here.
|
|
1711
1709
|
enqueueStateRestore(domNode);
|