@d19n/webchat 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/dist/_virtual/_commonjsHelpers.js +1 -1
- package/dist/_virtual/index12.js +1 -1
- package/dist/_virtual/index13.js +1 -1
- package/dist/_virtual/index14.js +1 -1
- package/dist/_virtual/index15.js +1 -1
- package/dist/_virtual/index2.js +1 -1
- package/dist/_virtual/index3.js +1 -1
- package/dist/_virtual/index4.js +1 -1
- package/dist/_virtual/index5.js +1 -1
- package/dist/_virtual/index6.js +1 -1
- package/dist/_virtual/index7.js +1 -1
- package/dist/_virtual/index8.js +1 -1
- package/dist/index.js +9 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -9
- package/dist/index.mjs.map +1 -1
- package/dist/node_modules/@d19n/odin-sdk-generator/dist/utilities/helpers.js +1 -1
- package/dist/node_modules/attr-accept/dist/es/index.js +1 -1
- package/dist/node_modules/classnames/index.js +1 -1
- package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/mdast-util-gfm-autolink-literal/to-markdown.js +1 -1
- package/dist/node_modules/mdast-util-gfm-autolink-literal/to-markdown.js.map +1 -1
- package/dist/node_modules/mdast-util-gfm-strikethrough/from-markdown.js +1 -1
- package/dist/node_modules/mdast-util-gfm-strikethrough/to-markdown.js +1 -1
- package/dist/node_modules/mdast-util-gfm-strikethrough/to-markdown.js.map +1 -1
- package/dist/node_modules/mdast-util-gfm-table/from-markdown.js +1 -1
- package/dist/node_modules/mdast-util-gfm-task-list-item/from-markdown.js +1 -1
- package/dist/node_modules/micromark-extension-gfm-autolink-literal/syntax.js +1 -1
- package/dist/node_modules/micromark-extension-gfm-task-list-item/syntax.js +1 -1
- package/dist/node_modules/prop-types/index.js +1 -1
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/Col.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/Row.js +1 -1
- package/dist/node_modules/react-dropzone/dist/es/index.js +1 -1
- package/dist/node_modules/react-dropzone/dist/es/utils/index.js +1 -1
- package/dist/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/react-is/index.js.map +1 -1
- package/dist/node_modules/react-markdown/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/react-timer-hook/dist/index.js +1 -1
- package/dist/node_modules/styled-components/dist/styled-components.browser.esm.js +1 -1
- package/dist/node_modules/use-debounce/dist/index.module.js +2 -0
- package/dist/node_modules/use-debounce/dist/index.module.js.map +1 -0
- package/dist/package.json/package.json +9 -6
- package/dist/src/NotificationBar/index.js +1 -1
- package/dist/src/TwilioChat/Chat.js +1 -1
- package/dist/src/TwilioChat/Chat.js.map +1 -1
- package/package.json +9 -6
- package/dist/_virtual/Component.js +0 -2
- package/dist/_virtual/Component.js.map +0 -1
- package/dist/_virtual/index16.js +0 -2
- package/dist/_virtual/index16.js.map +0 -1
- package/dist/node_modules/lodash.debounce/index.js +0 -2
- package/dist/node_modules/lodash.debounce/index.js.map +0 -1
- package/dist/node_modules/react-debounce-input/lib/Component.js +0 -2
- package/dist/node_modules/react-debounce-input/lib/Component.js.map +0 -1
- package/dist/node_modules/react-debounce-input/lib/index.js +0 -2
- package/dist/node_modules/react-debounce-input/lib/index.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__exports as e}from"../../../../../_virtual/helpers.js";import n from"../../../../../_virtual/
|
|
1
|
+
import{__exports as e}from"../../../../../_virtual/helpers.js";import n from"../../../../../_virtual/index14.js";import{__require as r}from"../../../odin-types/dist/types/schema.types.js";var a;function s(){if(a)return e;a=1,Object.defineProperty(e,"__esModule",{value:!0}),e.applyCaseToString=e.chunkArray=void 0;const s=n,t=r();return e.chunkArray=(e,n)=>Array.from({length:Math.ceil(e.length/n)},(r,a)=>e.slice(a*n,a*n+n)),e.applyCaseToString=function(e,n){if(!e)return e;function r(e){return(0,s.camelCase)(e)}switch(n){case t.ChangeCaseEnums.LOWER_CASE:return e.toLowerCase();case t.ChangeCaseEnums.UPPER_CASE:return e.toUpperCase();case t.ChangeCaseEnums.CAMEL_CASE:return r(e);case t.ChangeCaseEnums.CAPITAL_CASE:return a=e,(0,s.capitalCase)(a);case t.ChangeCaseEnums.CONSTANT_CASE:return function(e){return(0,s.constantCase)(e)}(e);case t.ChangeCaseEnums.DOT_CASE:return function(e){return(0,s.dotCase)(e)}(e);case t.ChangeCaseEnums.PASCAL_CASE:return function(e){return(0,s.pascalCase)(e)}(e);case t.ChangeCaseEnums.PATH_CASE:return function(e){return(0,s.pathCase)(e)}(e);case t.ChangeCaseEnums.SENTENCE_CASE:return function(e){return(0,s.sentenceCase)(e)}(e);case t.ChangeCaseEnums.SNAKE_CASE:return function(e){return(0,s.snakeCase)(e)}(e);case t.ChangeCaseEnums.CAMEL_UPPER_CASE:case t.ChangeCaseEnums.CAMEL_LOWER_CASE:return r(e);case t.ChangeCaseEnums.UPPERCASE_NOCASE_NOSPACE:return function(e){return e.replace(/\s+/g,"").toUpperCase()}(e);default:return e}var a},e}export{s as __require};
|
|
2
2
|
//# sourceMappingURL=helpers.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__exports as r}from"../../../../_virtual/
|
|
1
|
+
import{__exports as r}from"../../../../_virtual/index12.js";var e;function t(){return e||(e=1,r.__esModule=!0,r.default=function(r,e){if(r&&e){var t=Array.isArray(e)?e:e.split(",");if(0===t.length)return!0;var a=r.name||"",n=(r.type||"").toLowerCase(),o=n.replace(/\/.*$/,"");return t.some(function(r){var e=r.trim().toLowerCase();return"."===e.charAt(0)?a.toLowerCase().endsWith(e):e.endsWith("/*")?o===e.replace(/\/.*$/,""):n===e})}return!0}),r}export{t as __require};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__module as r}from"../../../../_virtual/
|
|
1
|
+
import{__module as r}from"../../../../_virtual/index15.js";import{__require as e}from"./cjs/react-is.production.min.js";import{__require as o}from"./cjs/react-is.development.js";var s;function t(){return s||(s=1,"production"===process.env.NODE_ENV?r.exports=e():r.exports=o()),r.exports}export{t as __require};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__exports as r}from"../../_virtual/to-
|
|
1
|
+
import{__exports as r}from"../../_virtual/to-markdown.js";var t;function n(){if(t)return r;t=1;var n="phrasing",e=["autolink","link","image","label"];return r.unsafe=[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:n,notInConstruct:e},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:n,notInConstruct:e},{character:":",before:"[ps]",after:"\\/",inConstruct:n,notInConstruct:e}],r}export{n as __require};
|
|
2
2
|
//# sourceMappingURL=to-markdown.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"to-markdown.js","sources":["../../../node_modules/mdast-util-gfm-autolink-literal/to-markdown.js"],"sourcesContent":["var inConstruct = 'phrasing'\nvar notInConstruct = ['autolink', 'link', 'image', 'label']\n\nexports.unsafe = [\n {\n character: '@',\n before: '[+\\\\-.\\\\w]',\n after: '[\\\\-.\\\\w]',\n inConstruct: inConstruct,\n notInConstruct: notInConstruct\n },\n {\n character: '.',\n before: '[Ww]',\n after: '[\\\\-.\\\\w]',\n inConstruct: inConstruct,\n notInConstruct: notInConstruct\n },\n {\n character: ':',\n before: '[ps]',\n after: '\\\\/',\n inConstruct: inConstruct,\n notInConstruct: notInConstruct\n }\n]\n"],"names":["inConstruct","notInConstruct","toMarkdown","unsafe","character","before","after"],"mappings":"
|
|
1
|
+
{"version":3,"file":"to-markdown.js","sources":["../../../node_modules/mdast-util-gfm-autolink-literal/to-markdown.js"],"sourcesContent":["var inConstruct = 'phrasing'\nvar notInConstruct = ['autolink', 'link', 'image', 'label']\n\nexports.unsafe = [\n {\n character: '@',\n before: '[+\\\\-.\\\\w]',\n after: '[\\\\-.\\\\w]',\n inConstruct: inConstruct,\n notInConstruct: notInConstruct\n },\n {\n character: '.',\n before: '[Ww]',\n after: '[\\\\-.\\\\w]',\n inConstruct: inConstruct,\n notInConstruct: notInConstruct\n },\n {\n character: ':',\n before: '[ps]',\n after: '\\\\/',\n inConstruct: inConstruct,\n notInConstruct: notInConstruct\n }\n]\n"],"names":["inConstruct","notInConstruct","toMarkdown","unsafe","character","before","after"],"mappings":"+FAAA,IAAIA,EAAc,WACdC,EAAiB,CAAC,WAAY,OAAQ,QAAS,gBAEnDC,EAAAC,OAAiB,CACf,CACEC,UAAW,IACXC,OAAQ,aACRC,MAAO,YACPN,YAAaA,EACbC,eAAgBA,GAElB,CACEG,UAAW,IACXC,OAAQ,OACRC,MAAO,YACPN,YAAaA,EACbC,eAAgBA,GAElB,CACEG,UAAW,IACXC,OAAQ,OACRC,MAAO,MACPN,YAAaA,EACbC,eAAgBA","x_google_ignoreList":[0]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__exports as t}from"../../_virtual/from-
|
|
1
|
+
import{__exports as t}from"../../_virtual/from-markdown4.js";var e;function r(){if(e)return t;return e=1,t.canContainEols=["delete"],t.enter={strikethrough:function(t){this.enter({type:"delete",children:[]},t)}},t.exit={strikethrough:function(t){this.exit(t)}},t}export{r as __require};
|
|
2
2
|
//# sourceMappingURL=from-markdown.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__exports as r}from"../../_virtual/to-
|
|
1
|
+
import{__exports as r}from"../../_virtual/to-markdown2.js";import{__require as e}from"../mdast-util-to-markdown/lib/util/container-phrasing.js";var t;function n(){if(t)return r;t=1;var n=e();function a(r,e,t){var a=t.enter("emphasis"),i=n(r,t,{before:"~",after:"~"});return a(),"~~"+i+"~~"}return r.unsafe=[{character:"~",inConstruct:"phrasing"}],r.handlers={delete:a},a.peek=function(){return"~"},r}export{n as __require};
|
|
2
2
|
//# sourceMappingURL=to-markdown.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"to-markdown.js","sources":["../../../node_modules/mdast-util-gfm-strikethrough/to-markdown.js"],"sourcesContent":["var phrasing = require('mdast-util-to-markdown/lib/util/container-phrasing')\n\nexports.unsafe = [{character: '~', inConstruct: 'phrasing'}]\nexports.handlers = {delete: handleDelete}\n\nhandleDelete.peek = peekDelete\n\nfunction handleDelete(node, _, context) {\n var exit = context.enter('emphasis')\n var value = phrasing(node, context, {before: '~', after: '~'})\n exit()\n return '~~' + value + '~~'\n}\n\nfunction peekDelete() {\n return '~'\n}\n"],"names":["phrasing","require$$0","handleDelete","node","_","context","exit","enter","value","before","after","toMarkdown","unsafe","character","inConstruct","handlers","delete","peek"],"mappings":"
|
|
1
|
+
{"version":3,"file":"to-markdown.js","sources":["../../../node_modules/mdast-util-gfm-strikethrough/to-markdown.js"],"sourcesContent":["var phrasing = require('mdast-util-to-markdown/lib/util/container-phrasing')\n\nexports.unsafe = [{character: '~', inConstruct: 'phrasing'}]\nexports.handlers = {delete: handleDelete}\n\nhandleDelete.peek = peekDelete\n\nfunction handleDelete(node, _, context) {\n var exit = context.enter('emphasis')\n var value = phrasing(node, context, {before: '~', after: '~'})\n exit()\n return '~~' + value + '~~'\n}\n\nfunction peekDelete() {\n return '~'\n}\n"],"names":["phrasing","require$$0","handleDelete","node","_","context","exit","enter","value","before","after","toMarkdown","unsafe","character","inConstruct","handlers","delete","peek"],"mappings":"qLAAA,IAAIA,EAAWC,IAOf,SAASC,EAAaC,EAAMC,EAAGC,GAC7B,IAAIC,EAAOD,EAAQE,MAAM,YACrBC,EAAQR,EAASG,EAAME,EAAS,CAACI,OAAQ,IAAKC,MAAO,MAEzD,OADAJ,IACO,KAAOE,EAAQ,IACxB,QAVAG,EAAAC,OAAiB,CAAC,CAACC,UAAW,IAAKC,YAAa,aAChDH,EAAAI,SAAmB,CAACC,OAAQd,GAE5BA,EAAae,KASb,WACE,MAAO,GACT","x_google_ignoreList":[0]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__exports as t}from"../../_virtual/from-
|
|
1
|
+
import{__exports as t}from"../../_virtual/from-markdown2.js";var e;function a(){if(e)return t;function a(t){this.exit(t)}function i(t){this.enter({type:"tableCell",children:[]},t)}function n(t,e){return"|"===e?e:t}return e=1,t.enter={table:function(t){this.enter({type:"table",align:t._align,children:[]},t),this.setData("inTable",!0)},tableData:i,tableHeader:i,tableRow:function(t){this.enter({type:"tableRow",children:[]},t)}},t.exit={codeText:function(t){var e=this.resume();this.getData("inTable")&&(e=e.replace(/\\([\\|])/g,n));this.stack[this.stack.length-1].value=e,this.exit(t)},table:function(t){this.exit(t),this.setData("inTable")},tableData:a,tableHeader:a,tableRow:a},t}export{a as __require};
|
|
2
2
|
//# sourceMappingURL=from-markdown.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__exports as t}from"../../_virtual/from-
|
|
1
|
+
import{__exports as t}from"../../_virtual/from-markdown3.js";var e;function s(){if(e)return t;function s(t){this.stack[this.stack.length-2].checked="taskListCheckValueChecked"===t.type}return e=1,t.exit={taskListCheckValueChecked:s,taskListCheckValueUnchecked:s,paragraph:function(t){var e,s=this.stack[this.stack.length-2],i=this.stack[this.stack.length-1],a=s.children,r=i.children[0],c=-1;if(s&&"listItem"===s.type&&"boolean"==typeof s.checked&&r&&"text"===r.type){for(;++c<a.length;)if("paragraph"===a[c].type){e=a[c];break}e===i&&(r.value=r.value.slice(1),0===r.value.length?i.children.shift():(r.position.start.column++,r.position.start.offset++,i.position.start=Object.assign({},r.position.start)))}this.exit(t)}},t}export{s as __require};
|
|
2
2
|
//# sourceMappingURL=from-markdown.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__exports as n}from"../../_virtual/
|
|
1
|
+
import{__exports as n}from"../../_virtual/syntax2.js";import{__require as t}from"../micromark/dist/character/ascii-alpha.js";import{__require as r}from"../micromark/dist/character/ascii-alphanumeric.js";import{__require as e}from"../micromark/dist/character/ascii-control.js";import{__require as u}from"../micromark/dist/character/markdown-line-ending.js";import{__require as i}from"../micromark/dist/character/unicode-punctuation.js";import{__require as o}from"../micromark/dist/character/unicode-whitespace.js";var c;function a(){if(c)return n;c=1;var a=t(),s=r(),f=e(),l=u(),m=i(),k=o(),p={tokenize:function(n,t,r){return function(t){return n.consume(t),e};function e(t){return 87===t||t-32==87?(n.consume(t),u):r(t)}function u(t){return 87===t||t-32==87?(n.consume(t),i):r(t)}function i(t){return 46===t?(n.consume(t),o):r(t)}function o(n){return null===n||l(n)?r(n):t(n)}},partial:!0},h={tokenize:function(n,t,r){var e,u;return i;function i(t){return 38===t?n.check(d,c,o)(t):46===t||95===t?n.check(_,c,o)(t):f(t)||k(t)||45!==t&&m(t)?c(t):(n.consume(t),i)}function o(t){return 46===t?(u=e,e=void 0,n.consume(t),i):(95===t&&(e=!0),n.consume(t),i)}function c(n){return u||e?r(n):t(n)}},partial:!0},v={tokenize:function(n,t){var r=0;return e;function e(o){return 38===o?n.check(d,t,u)(o):(40===o&&r++,41===o?n.check(_,i,u)(o):b(o)?t(o):w(o)?n.check(_,t,u)(o):(n.consume(o),e))}function u(t){return n.consume(t),e}function i(n){return--r<0?t(n):u(n)}},partial:!0},_={tokenize:function(n,t,r){return function(t){return n.consume(t),e};function e(u){return w(u)?(n.consume(u),e):b(u)?t(u):r(u)}},partial:!0},d={tokenize:function(n,t,r){return function(t){return n.consume(t),e};function e(t){return a(t)?(n.consume(t),e):59===t?(n.consume(t),u):r(t)}function u(n){return b(n)?t(n):r(n)}},partial:!0},A={tokenize:function(n,t,r){var e=this;return function(t){if(87!==t&&t-32!=87||!y(e.previous)||W(e.events))return r(t);return n.enter("literalAutolink"),n.enter("literalAutolinkWww"),n.check(p,n.attempt(h,n.attempt(v,u),r),r)(t)};function u(r){return n.exit("literalAutolinkWww"),n.exit("literalAutolink"),t(r)}},previous:y},x={tokenize:function(n,t,r){var e=this;return function(t){if(72!==t&&t-32!=72||!E(e.previous)||W(e.events))return r(t);return n.enter("literalAutolink"),n.enter("literalAutolinkHttp"),n.consume(t),u};function u(t){return 84===t||t-32==84?(n.consume(t),i):r(t)}function i(t){return 84===t||t-32==84?(n.consume(t),o):r(t)}function o(t){return 80===t||t-32==80?(n.consume(t),c):r(t)}function c(t){return 83===t||t-32==83?(n.consume(t),a):a(t)}function a(t){return 58===t?(n.consume(t),s):r(t)}function s(t){return 47===t?(n.consume(t),l):r(t)}function l(t){return 47===t?(n.consume(t),p):r(t)}function p(t){return f(t)||k(t)||m(t)?r(t):n.attempt(h,n.attempt(v,_),r)(t)}function _(r){return n.exit("literalAutolinkHttp"),n.exit("literalAutolink"),t(r)}},previous:E},z={tokenize:function(n,t,r){var e,u=this;return function(t){if(!g(t)||!H(u.previous)||W(u.events))return r(t);return n.enter("literalAutolink"),n.enter("literalAutolinkEmail"),i(t)};function i(t){return g(t)?(n.consume(t),i):64===t?(n.consume(t),o):r(t)}function o(t){return 46===t?n.check(_,l,c)(t):45===t||95===t?n.check(_,r,a)(t):s(t)?(n.consume(t),o):l(t)}function c(t){return n.consume(t),e=!0,o}function a(t){return n.consume(t),f}function f(t){return 46===t?n.check(_,r,c)(t):o(t)}function l(u){return e?(n.exit("literalAutolinkEmail"),n.exit("literalAutolink"),t(u)):r(u)}},previous:H},j={};n.text=j;for(var q=48;q<123;)j[q]=z,58===++q?q=65:91===q&&(q=97);function w(n){return 33===n||34===n||39===n||41===n||42===n||44===n||46===n||58===n||59===n||60===n||63===n||95===n||126===n}function b(n){return null===n||n<0||32===n||60===n}function g(n){return 43===n||45===n||46===n||95===n||s(n)}function y(n){return null===n||n<0||32===n||40===n||42===n||95===n||126===n}function E(n){return null===n||!a(n)}function H(n){return 47!==n&&E(n)}function W(n){for(var t=n.length;t--;)if(("labelLink"===n[t][1].type||"labelImage"===n[t][1].type)&&!n[t][1]._balanced)return!0}return j[43]=z,j[45]=z,j[46]=z,j[95]=z,j[72]=[z,x],j[104]=[z,x],j[87]=[z,A],j[119]=[z,A],n}export{a as __require};
|
|
2
2
|
//# sourceMappingURL=syntax.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__exports as e}from"../../_virtual/
|
|
1
|
+
import{__exports as e}from"../../_virtual/syntax3.js";import{__require as t}from"../micromark/dist/character/markdown-line-ending-or-space.js";import{__require as r}from"../micromark/dist/tokenize/factory-space.js";import{__require as i}from"../micromark/dist/util/prefix-size.js";var s;function n(){if(s)return e;s=1;var n=t(),a=r(),c=i(),k={tokenize:function(e,t,r){var i=this;return function(t){if(91!==t||null!==i.previous||!i._gfmTasklistFirstContentOfListItem)return r(t);return e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),s};function s(t){return-2===t||32===t?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),n):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),n):r(t)}function n(i){return 93===i?(e.enter("taskListCheckMarker"),e.consume(i),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),e.check({tokenize:u},t,r)):r(i)}}};function u(e,t,r){var i=this;return a(e,function(e){return c(i.events,"whitespace")&&null!==e&&!n(e)?t(e):r(e)},"whitespace")}return e.text={91:k},e}export{n as __require};
|
|
2
2
|
//# sourceMappingURL=syntax.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__module as r}from"../../_virtual/
|
|
1
|
+
import{__module as r}from"../../_virtual/index8.js";import{__require as e}from"./node_modules/react-is/index.js";import{__require as o}from"./factoryWithTypeCheckers.js";import{__require as i}from"./factoryWithThrowingShims.js";var s;function t(){if(s)return r.exports;if(s=1,"production"!==process.env.NODE_ENV){var t=e();r.exports=o()(t.isElement,true)}else r.exports=i()();return r.exports}export{t as __require};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__module as r}from"../../../../_virtual/
|
|
1
|
+
import{__module as r}from"../../../../_virtual/index13.js";import{__require as e}from"./cjs/react-is.production.min.js";import{__require as o}from"./cjs/react-is.development.js";var s;function t(){return s||(s=1,"production"===process.env.NODE_ENV?r.exports=e():r.exports=o()),r.exports}export{t as __require};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import s from"../../../_virtual/
|
|
1
|
+
import s from"../../../_virtual/index7.js";import*as e from"react";import{useBootstrapPrefix as r,useBootstrapBreakpoints as o,useBootstrapMinBreakpoint as t}from"./ThemeProvider.js";import{jsx as a}from"react/jsx-runtime";function f({as:e,bsPrefix:a,className:f,...l}){a=r(a,"col");const n=o(),c=t(),m=[],i=[];return n.forEach(s=>{const e=l[s];let r,o,t;delete l[s],"object"==typeof e&&null!=e?({span:r,offset:o,order:t}=e):r=e;const f=s!==c?`-${s}`:"";r&&m.push(!0===r?`${a}${f}`:`${a}${f}-${r}`),null!=t&&i.push(`order${f}-${t}`),null!=o&&i.push(`offset${f}-${o}`)}),[{...l,className:s(f,...m,...i)},{as:e,bsPrefix:a,spans:m}]}const l=e.forwardRef((e,r)=>{const[{className:o,...t},{as:l="div",bsPrefix:n,spans:c}]=f(e);return a(l,{...t,ref:r,className:s(o,!c.length&&n)})});l.displayName="Col";export{l as default,f as useCol};
|
|
2
2
|
//# sourceMappingURL=Col.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import r from"../../../_virtual/
|
|
1
|
+
import r from"../../../_virtual/index7.js";import*as e from"react";import{useBootstrapPrefix as o,useBootstrapBreakpoints as s,useBootstrapMinBreakpoint as t}from"./ThemeProvider.js";import{jsx as a}from"react/jsx-runtime";const l=e.forwardRef(({bsPrefix:e,className:l,as:m="div",...c},f)=>{const i=o(e,"row"),n=s(),p=t(),d=`${i}-cols`,u=[];return n.forEach(r=>{const e=c[r];let o;delete c[r],null!=e&&"object"==typeof e?({cols:o}=e):o=e;const s=r!==p?`-${r}`:"";null!=o&&u.push(`${d}${s}-${o}`)}),a(m,{ref:f,...c,className:r(l,i,...u)})});l.displayName="Row";export{l as default};
|
|
2
2
|
//# sourceMappingURL=Row.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e,{useMemo as n,useRef as r,useReducer as t,useEffect as o,useCallback as i,forwardRef as c,useImperativeHandle as u,Fragment as a}from"react";import l from"../../../../_virtual/index4.js";import{fromEvent as s}from"../../../file-selector/dist/es2015/file-selector.js";import{acceptPropAsAcceptAttr as f,pickerOptionsFromAccept as p,canUseFileSystemAccessAPI as g,onDocumentDragOver as d,isEvtWithFiles as v,isPropagationStopped as D,allFilesAccepted as y,fileAccepted as m,fileMatchSize as b,TOO_MANY_FILES_REJECTION as h,isAbort as F,isSecurityError as O,isIeOrEdge as j,composeEventHandlers as w}from"./utils/index.js";var A=["children"],E=["open"],S=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],x=["refKey","onChange","onClick"];function P(e){return function(e){if(Array.isArray(e))return R(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||C(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var t,o,i=[],c=!0,u=!1;try{for(r=r.call(e);!(c=(t=r.next()).done)&&(i.push(t.value),!n||i.length!==n);c=!0);}catch(e){u=!0,o=e}finally{try{c||null==r.return||r.return()}finally{if(u)throw o}}return i}(e,n)||C(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(e,n){if(e){if("string"==typeof e)return R(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?R(e,n):void 0}}function R(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=new Array(n);r<n;r++)t[r]=e[r];return t}function I(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,t)}return r}function L(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?I(Object(r),!0).forEach(function(n){z(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):I(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function z(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function K(e,n){if(null==e)return{};var r,t,o=function(e,n){if(null==e)return{};var r,t,o={},i=Object.keys(e);for(t=0;t<i.length;t++)r=i[t],n.indexOf(r)>=0||(o[r]=e[r]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t<i.length;t++)r=i[t],n.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var T=c(function(n,r){var t=n.children,o=N(K(n,A)),i=o.open,c=K(o,E);return u(r,function(){return{open:i}},[i]),e.createElement(a,null,t(L(L({},c),{},{open:i})))});T.displayName="Dropzone";var B={disabled:!1,getFilesFromEvent:s,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};T.defaultProps=B,T.propTypes={children:l.func,accept:l.objectOf(l.arrayOf(l.string)),multiple:l.bool,preventDropOnDocument:l.bool,noClick:l.bool,noKeyboard:l.bool,noDrag:l.bool,noDragEventsBubbling:l.bool,minSize:l.number,maxSize:l.number,maxFiles:l.number,disabled:l.bool,getFilesFromEvent:l.func,onFileDialogCancel:l.func,onFileDialogOpen:l.func,useFsAccessApi:l.bool,autoFocus:l.bool,onDragEnter:l.func,onDragLeave:l.func,onDragOver:l.func,onDrop:l.func,onDropAccepted:l.func,onDropRejected:l.func,onError:l.func,validator:l.func};var _={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function N(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},c=L(L({},B),e),u=c.accept,a=c.disabled,l=c.getFilesFromEvent,s=c.maxSize,A=c.minSize,E=c.multiple,C=c.maxFiles,R=c.onDragEnter,I=c.onDragLeave,T=c.onDragOver,N=c.onDrop,M=c.onDropAccepted,W=c.onDropRejected,$=c.onFileDialogCancel,G=c.onFileDialogOpen,H=c.useFsAccessApi,J=c.autoFocus,Q=c.preventDropOnDocument,V=c.noClick,X=c.noKeyboard,Y=c.noDrag,Z=c.noDragEventsBubbling,ee=c.onError,ne=c.validator,re=n(function(){return f(u)},[u]),te=n(function(){return p(u)},[u]),oe=n(function(){return"function"==typeof G?G:q},[G]),ie=n(function(){return"function"==typeof $?$:q},[$]),ce=r(null),ue=r(null),ae=k(t(U,_),2),le=ae[0],se=ae[1],fe=le.isFocused,pe=le.isFileDialogActive,ge=r("undefined"!=typeof window&&window.isSecureContext&&H&&g()),de=function(){!ge.current&&pe&&setTimeout(function(){ue.current&&(ue.current.files.length||(se({type:"closeDialog"}),ie()))},300)};o(function(){return window.addEventListener("focus",de,!1),function(){window.removeEventListener("focus",de,!1)}},[ue,pe,ie,ge]);var ve=r([]),De=function(e){ce.current&&ce.current.contains(e.target)||(e.preventDefault(),ve.current=[])};o(function(){return Q&&(document.addEventListener("dragover",d,!1),document.addEventListener("drop",De,!1)),function(){Q&&(document.removeEventListener("dragover",d),document.removeEventListener("drop",De))}},[ce,Q]),o(function(){return!a&&J&&ce.current&&ce.current.focus(),function(){}},[ce,J,a]);var ye=i(function(e){ee?ee(e):console.error(e)},[ee]),me=i(function(e){e.preventDefault(),e.persist(),Ce(e),ve.current=[].concat(P(ve.current),[e.target]),v(e)&&Promise.resolve(l(e)).then(function(n){if(!D(e)||Z){var r=n.length,t=r>0&&y({files:n,accept:re,minSize:A,maxSize:s,multiple:E,maxFiles:C,validator:ne});se({isDragAccept:t,isDragReject:r>0&&!t,isDragActive:!0,type:"setDraggedFiles"}),R&&R(e)}}).catch(function(e){return ye(e)})},[l,R,ye,Z,re,A,s,E,C,ne]),be=i(function(e){e.preventDefault(),e.persist(),Ce(e);var n=v(e);if(n&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return n&&T&&T(e),!1},[T,Z]),he=i(function(e){e.preventDefault(),e.persist(),Ce(e);var n=ve.current.filter(function(e){return ce.current&&ce.current.contains(e)}),r=n.indexOf(e.target);-1!==r&&n.splice(r,1),ve.current=n,n.length>0||(se({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),v(e)&&I&&I(e))},[ce,I,Z]),Fe=i(function(e,n){var r=[],t=[];e.forEach(function(e){var n=k(m(e,re),2),o=n[0],i=n[1],c=k(b(e,A,s),2),u=c[0],a=c[1],l=ne?ne(e):null;if(o&&u&&!l)r.push(e);else{var f=[i,a];l&&(f=f.concat(l)),t.push({file:e,errors:f.filter(function(e){return e})})}}),(!E&&r.length>1||E&&C>=1&&r.length>C)&&(r.forEach(function(e){t.push({file:e,errors:[h]})}),r.splice(0)),se({acceptedFiles:r,fileRejections:t,isDragReject:t.length>0,type:"setFiles"}),N&&N(r,t,n),t.length>0&&W&&W(t,n),r.length>0&&M&&M(r,n)},[se,E,re,A,s,C,N,M,W,ne]),Oe=i(function(e){e.preventDefault(),e.persist(),Ce(e),ve.current=[],v(e)&&Promise.resolve(l(e)).then(function(n){D(e)&&!Z||Fe(n,e)}).catch(function(e){return ye(e)}),se({type:"reset"})},[l,Fe,ye,Z]),je=i(function(){if(ge.current){se({type:"openDialog"}),oe();var e={multiple:E,types:te};window.showOpenFilePicker(e).then(function(e){return l(e)}).then(function(e){Fe(e,null),se({type:"closeDialog"})}).catch(function(e){F(e)?(ie(e),se({type:"closeDialog"})):O(e)?(ge.current=!1,ue.current?(ue.current.value=null,ue.current.click()):ye(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):ye(e)})}else ue.current&&(se({type:"openDialog"}),oe(),ue.current.value=null,ue.current.click())},[se,oe,ie,H,Fe,ye,te,E]),we=i(function(e){ce.current&&ce.current.isEqualNode(e.target)&&(" "!==e.key&&"Enter"!==e.key&&32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),je()))},[ce,je]),Ae=i(function(){se({type:"focus"})},[]),Ee=i(function(){se({type:"blur"})},[]),Se=i(function(){V||(j()?setTimeout(je,0):je())},[V,je]),xe=function(e){return a?null:e},Pe=function(e){return X?null:xe(e)},ke=function(e){return Y?null:xe(e)},Ce=function(e){Z&&e.stopPropagation()},Re=n(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.refKey,r=void 0===n?"ref":n,t=e.role,o=e.onKeyDown,i=e.onFocus,c=e.onBlur,u=e.onClick,l=e.onDragEnter,s=e.onDragOver,f=e.onDragLeave,p=e.onDrop,g=K(e,S);return L(L(z({onKeyDown:Pe(w(o,we)),onFocus:Pe(w(i,Ae)),onBlur:Pe(w(c,Ee)),onClick:xe(w(u,Se)),onDragEnter:ke(w(l,me)),onDragOver:ke(w(s,be)),onDragLeave:ke(w(f,he)),onDrop:ke(w(p,Oe)),role:"string"==typeof t&&""!==t?t:"presentation"},r,ce),a||X?{}:{tabIndex:0}),g)}},[ce,we,Ae,Ee,Se,me,be,he,Oe,X,Y,a]),Ie=i(function(e){e.stopPropagation()},[]),Le=n(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.refKey,r=void 0===n?"ref":n,t=e.onChange,o=e.onClick,i=K(e,x);return L(L({},z({accept:re,multiple:E,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:xe(w(t,Oe)),onClick:xe(w(o,Ie)),tabIndex:-1},r,ue)),i)}},[ue,u,E,Oe,a]);return L(L({},le),{},{isFocused:fe&&!a,getRootProps:Re,getInputProps:Le,rootRef:ce,inputRef:ue,open:xe(je)})}function U(e,n){switch(n.type){case"focus":return L(L({},e),{},{isFocused:!0});case"blur":return L(L({},e),{},{isFocused:!1});case"openDialog":return L(L({},_),{},{isFileDialogActive:!0});case"closeDialog":return L(L({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return L(L({},e),{},{isDragActive:n.isDragActive,isDragAccept:n.isDragAccept,isDragReject:n.isDragReject});case"setFiles":return L(L({},e),{},{acceptedFiles:n.acceptedFiles,fileRejections:n.fileRejections,isDragReject:n.isDragReject});case"reset":return L({},_);default:return e}}function q(){}export{T as default,N as useDropzone};
|
|
1
|
+
import e,{useMemo as n,useRef as r,useReducer as t,useEffect as o,useCallback as i,forwardRef as c,useImperativeHandle as u,Fragment as a}from"react";import l from"../../../../_virtual/index3.js";import{fromEvent as s}from"../../../file-selector/dist/es2015/file-selector.js";import{acceptPropAsAcceptAttr as f,pickerOptionsFromAccept as p,canUseFileSystemAccessAPI as g,onDocumentDragOver as d,isEvtWithFiles as v,isPropagationStopped as D,allFilesAccepted as y,fileAccepted as m,fileMatchSize as b,TOO_MANY_FILES_REJECTION as h,isAbort as F,isSecurityError as O,isIeOrEdge as j,composeEventHandlers as w}from"./utils/index.js";var A=["children"],E=["open"],S=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],x=["refKey","onChange","onClick"];function P(e){return function(e){if(Array.isArray(e))return R(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||C(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var t,o,i=[],c=!0,u=!1;try{for(r=r.call(e);!(c=(t=r.next()).done)&&(i.push(t.value),!n||i.length!==n);c=!0);}catch(e){u=!0,o=e}finally{try{c||null==r.return||r.return()}finally{if(u)throw o}}return i}(e,n)||C(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(e,n){if(e){if("string"==typeof e)return R(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?R(e,n):void 0}}function R(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=new Array(n);r<n;r++)t[r]=e[r];return t}function I(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,t)}return r}function L(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?I(Object(r),!0).forEach(function(n){z(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):I(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function z(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function K(e,n){if(null==e)return{};var r,t,o=function(e,n){if(null==e)return{};var r,t,o={},i=Object.keys(e);for(t=0;t<i.length;t++)r=i[t],n.indexOf(r)>=0||(o[r]=e[r]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t<i.length;t++)r=i[t],n.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var T=c(function(n,r){var t=n.children,o=N(K(n,A)),i=o.open,c=K(o,E);return u(r,function(){return{open:i}},[i]),e.createElement(a,null,t(L(L({},c),{},{open:i})))});T.displayName="Dropzone";var B={disabled:!1,getFilesFromEvent:s,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};T.defaultProps=B,T.propTypes={children:l.func,accept:l.objectOf(l.arrayOf(l.string)),multiple:l.bool,preventDropOnDocument:l.bool,noClick:l.bool,noKeyboard:l.bool,noDrag:l.bool,noDragEventsBubbling:l.bool,minSize:l.number,maxSize:l.number,maxFiles:l.number,disabled:l.bool,getFilesFromEvent:l.func,onFileDialogCancel:l.func,onFileDialogOpen:l.func,useFsAccessApi:l.bool,autoFocus:l.bool,onDragEnter:l.func,onDragLeave:l.func,onDragOver:l.func,onDrop:l.func,onDropAccepted:l.func,onDropRejected:l.func,onError:l.func,validator:l.func};var _={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function N(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},c=L(L({},B),e),u=c.accept,a=c.disabled,l=c.getFilesFromEvent,s=c.maxSize,A=c.minSize,E=c.multiple,C=c.maxFiles,R=c.onDragEnter,I=c.onDragLeave,T=c.onDragOver,N=c.onDrop,M=c.onDropAccepted,W=c.onDropRejected,$=c.onFileDialogCancel,G=c.onFileDialogOpen,H=c.useFsAccessApi,J=c.autoFocus,Q=c.preventDropOnDocument,V=c.noClick,X=c.noKeyboard,Y=c.noDrag,Z=c.noDragEventsBubbling,ee=c.onError,ne=c.validator,re=n(function(){return f(u)},[u]),te=n(function(){return p(u)},[u]),oe=n(function(){return"function"==typeof G?G:q},[G]),ie=n(function(){return"function"==typeof $?$:q},[$]),ce=r(null),ue=r(null),ae=k(t(U,_),2),le=ae[0],se=ae[1],fe=le.isFocused,pe=le.isFileDialogActive,ge=r("undefined"!=typeof window&&window.isSecureContext&&H&&g()),de=function(){!ge.current&&pe&&setTimeout(function(){ue.current&&(ue.current.files.length||(se({type:"closeDialog"}),ie()))},300)};o(function(){return window.addEventListener("focus",de,!1),function(){window.removeEventListener("focus",de,!1)}},[ue,pe,ie,ge]);var ve=r([]),De=function(e){ce.current&&ce.current.contains(e.target)||(e.preventDefault(),ve.current=[])};o(function(){return Q&&(document.addEventListener("dragover",d,!1),document.addEventListener("drop",De,!1)),function(){Q&&(document.removeEventListener("dragover",d),document.removeEventListener("drop",De))}},[ce,Q]),o(function(){return!a&&J&&ce.current&&ce.current.focus(),function(){}},[ce,J,a]);var ye=i(function(e){ee?ee(e):console.error(e)},[ee]),me=i(function(e){e.preventDefault(),e.persist(),Ce(e),ve.current=[].concat(P(ve.current),[e.target]),v(e)&&Promise.resolve(l(e)).then(function(n){if(!D(e)||Z){var r=n.length,t=r>0&&y({files:n,accept:re,minSize:A,maxSize:s,multiple:E,maxFiles:C,validator:ne});se({isDragAccept:t,isDragReject:r>0&&!t,isDragActive:!0,type:"setDraggedFiles"}),R&&R(e)}}).catch(function(e){return ye(e)})},[l,R,ye,Z,re,A,s,E,C,ne]),be=i(function(e){e.preventDefault(),e.persist(),Ce(e);var n=v(e);if(n&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return n&&T&&T(e),!1},[T,Z]),he=i(function(e){e.preventDefault(),e.persist(),Ce(e);var n=ve.current.filter(function(e){return ce.current&&ce.current.contains(e)}),r=n.indexOf(e.target);-1!==r&&n.splice(r,1),ve.current=n,n.length>0||(se({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),v(e)&&I&&I(e))},[ce,I,Z]),Fe=i(function(e,n){var r=[],t=[];e.forEach(function(e){var n=k(m(e,re),2),o=n[0],i=n[1],c=k(b(e,A,s),2),u=c[0],a=c[1],l=ne?ne(e):null;if(o&&u&&!l)r.push(e);else{var f=[i,a];l&&(f=f.concat(l)),t.push({file:e,errors:f.filter(function(e){return e})})}}),(!E&&r.length>1||E&&C>=1&&r.length>C)&&(r.forEach(function(e){t.push({file:e,errors:[h]})}),r.splice(0)),se({acceptedFiles:r,fileRejections:t,isDragReject:t.length>0,type:"setFiles"}),N&&N(r,t,n),t.length>0&&W&&W(t,n),r.length>0&&M&&M(r,n)},[se,E,re,A,s,C,N,M,W,ne]),Oe=i(function(e){e.preventDefault(),e.persist(),Ce(e),ve.current=[],v(e)&&Promise.resolve(l(e)).then(function(n){D(e)&&!Z||Fe(n,e)}).catch(function(e){return ye(e)}),se({type:"reset"})},[l,Fe,ye,Z]),je=i(function(){if(ge.current){se({type:"openDialog"}),oe();var e={multiple:E,types:te};window.showOpenFilePicker(e).then(function(e){return l(e)}).then(function(e){Fe(e,null),se({type:"closeDialog"})}).catch(function(e){F(e)?(ie(e),se({type:"closeDialog"})):O(e)?(ge.current=!1,ue.current?(ue.current.value=null,ue.current.click()):ye(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):ye(e)})}else ue.current&&(se({type:"openDialog"}),oe(),ue.current.value=null,ue.current.click())},[se,oe,ie,H,Fe,ye,te,E]),we=i(function(e){ce.current&&ce.current.isEqualNode(e.target)&&(" "!==e.key&&"Enter"!==e.key&&32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),je()))},[ce,je]),Ae=i(function(){se({type:"focus"})},[]),Ee=i(function(){se({type:"blur"})},[]),Se=i(function(){V||(j()?setTimeout(je,0):je())},[V,je]),xe=function(e){return a?null:e},Pe=function(e){return X?null:xe(e)},ke=function(e){return Y?null:xe(e)},Ce=function(e){Z&&e.stopPropagation()},Re=n(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.refKey,r=void 0===n?"ref":n,t=e.role,o=e.onKeyDown,i=e.onFocus,c=e.onBlur,u=e.onClick,l=e.onDragEnter,s=e.onDragOver,f=e.onDragLeave,p=e.onDrop,g=K(e,S);return L(L(z({onKeyDown:Pe(w(o,we)),onFocus:Pe(w(i,Ae)),onBlur:Pe(w(c,Ee)),onClick:xe(w(u,Se)),onDragEnter:ke(w(l,me)),onDragOver:ke(w(s,be)),onDragLeave:ke(w(f,he)),onDrop:ke(w(p,Oe)),role:"string"==typeof t&&""!==t?t:"presentation"},r,ce),a||X?{}:{tabIndex:0}),g)}},[ce,we,Ae,Ee,Se,me,be,he,Oe,X,Y,a]),Ie=i(function(e){e.stopPropagation()},[]),Le=n(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.refKey,r=void 0===n?"ref":n,t=e.onChange,o=e.onClick,i=K(e,x);return L(L({},z({accept:re,multiple:E,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:xe(w(t,Oe)),onClick:xe(w(o,Ie)),tabIndex:-1},r,ue)),i)}},[ue,u,E,Oe,a]);return L(L({},le),{},{isFocused:fe&&!a,getRootProps:Re,getInputProps:Le,rootRef:ce,inputRef:ue,open:xe(je)})}function U(e,n){switch(n.type){case"focus":return L(L({},e),{},{isFocused:!0});case"blur":return L(L({},e),{},{isFocused:!1});case"openDialog":return L(L({},_),{},{isFileDialogActive:!0});case"closeDialog":return L(L({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return L(L({},e),{},{isDragActive:n.isDragActive,isDragAccept:n.isDragAccept,isDragReject:n.isDragReject});case"setFiles":return L(L({},e),{},{acceptedFiles:n.acceptedFiles,fileRejections:n.fileRejections,isDragReject:n.isDragReject});case"reset":return L({},_);default:return e}}function q(){}export{T as default,N as useDropzone};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from"../../../../../_virtual/
|
|
1
|
+
import e from"../../../../../_virtual/index6.js";function t(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||a(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function r(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach(function(t){o(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}(e,t)||a(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var u="function"==typeof e?e:e.default,l="file-invalid-type",f="file-too-large",s="file-too-small",p="too-many-files",y=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split(","),t=e.length>1?"one of ".concat(e.join(", ")):e[0];return{code:l,message:"File type must be ".concat(t)}},d=function(e){return{code:f,message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},b=function(e){return{code:s,message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},m={code:p,message:"Too many files"};function v(e,t){var n="application/x-moz-file"===e.type||u(e,t);return[n,n?null:y(t)]}function g(e,t,n){if(O(e.size))if(O(t)&&O(n)){if(e.size>n)return[!1,d(n)];if(e.size<t)return[!1,b(t)]}else{if(O(t)&&e.size<t)return[!1,b(t)];if(O(n)&&e.size>n)return[!1,d(n)]}return[!0,null]}function O(e){return null!=e}function h(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,a=e.multiple,c=e.maxFiles,u=e.validator;return!(!a&&t.length>1||a&&c>=1&&t.length>c)&&t.every(function(e){var t=i(v(e,n),1)[0],a=i(g(e,r,o),1)[0],c=u?u(e):null;return t&&a&&!c})}function w(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function j(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(e){return"Files"===e||"application/x-moz-file"===e}):!!e.target&&!!e.target.files}function S(e){e.preventDefault()}function A(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return function(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}(e)||function(e){return-1!==e.indexOf("Edge/")}(e)}function E(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.some(function(t){return!w(e)&&t&&t.apply(void 0,[e].concat(r)),w(e)})}}function x(){return"showOpenFilePicker"in window}function P(e){return O(e)?[{description:"Files",accept:Object.entries(e).filter(function(e){var t=i(e,2),n=t[0],r=t[1],o=!0;return M(n)||(console.warn('Skipped "'.concat(n,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),o=!1),Array.isArray(r)&&r.every(D)||(console.warn('Skipped "'.concat(n,'" because an invalid file extension was provided.')),o=!1),o}).reduce(function(e,t){var n=i(t,2),a=n[0],c=n[1];return r(r({},e),{},o({},a,c))},{})}]:e}function T(e){if(O(e))return Object.entries(e).reduce(function(e,n){var r=i(n,2),o=r[0],a=r[1];return[].concat(t(e),[o],t(a))},[]).filter(function(e){return M(e)||D(e)}).join(",")}function z(e){return e instanceof DOMException&&("AbortError"===e.name||e.code===e.ABORT_ERR)}function I(e){return e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)}function M(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||"application/*"===e||/\w+\/[-+.\w]+/g.test(e)}function D(e){return/^.*\.[\w]+$/.test(e)}export{l as FILE_INVALID_TYPE,f as FILE_TOO_LARGE,s as FILE_TOO_SMALL,p as TOO_MANY_FILES,m as TOO_MANY_FILES_REJECTION,T as acceptPropAsAcceptAttr,h as allFilesAccepted,x as canUseFileSystemAccessAPI,E as composeEventHandlers,v as fileAccepted,g as fileMatchSize,y as getInvalidTypeRejectionErr,d as getTooLargeRejectionErr,b as getTooSmallRejectionErr,z as isAbort,j as isEvtWithFiles,D as isExt,A as isIeOrEdge,M as isMIMEType,w as isPropagationStopped,I as isSecurityError,S as onDocumentDragOver,P as pickerOptionsFromAccept};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__module as r}from"../../_virtual/
|
|
1
|
+
import{__module as r}from"../../_virtual/index9.js";import{__require as e}from"./cjs/react-is.production.js";import{__require as o}from"./cjs/react-is.development.js";var s;function t(){return s||(s=1,"production"===process.env.NODE_ENV?r.exports=e():r.exports=o()),r.exports}export{t as __require};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../node_modules/react-is/index.js"],"sourcesContent":["'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n"],"names":["process","env","NODE_ENV","reactIsModule","exports","require$$0","require$$1"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../node_modules/react-is/index.js"],"sourcesContent":["'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n"],"names":["process","env","NODE_ENV","reactIsModule","exports","require$$0","require$$1"],"mappings":"yMAE6B,eAAzBA,QAAQC,IAAIC,SACdC,EAAAC,QAAiBC,IAEjBF,EAAAC,QAAiBE","x_google_ignoreList":[0]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__module as r}from"../../../../_virtual/
|
|
1
|
+
import{__module as r}from"../../../../_virtual/index11.js";import{__require as e}from"./cjs/react-is.production.min.js";import{__require as o}from"./cjs/react-is.development.js";var s;function t(){return s||(s=1,"production"===process.env.NODE_ENV?r.exports=e():r.exports=o()),r.exports}export{t as __require};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__module as e}from"../../../_virtual/
|
|
1
|
+
import{__module as e}from"../../../_virtual/index5.js";import t from"react";var s;e.exports;function i(){return s||(s=1,"undefined"!=typeof self&&self,e.exports=(i=t,(()=>{var e={155:e=>{e.exports=i}},t={};function s(i){var o=t[i];if(void 0!==o)return o.exports;var r=t[i]={exports:{}};return e[i](r,r.exports,s),r.exports}s.d=(e,t)=>{for(var i in t)s.o(t,i)&&!s.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};s.r(o),s.d(o,{useStopwatch:()=>u,useTime:()=>d,useTimer:()=>m});var r=s(155);class n{static getTimeFromMilliseconds(e,t=!0){const s=t?Math.ceil(e/1e3):Math.floor(e/1e3),i=Math.floor(s/86400),o=Math.floor(s%86400/3600),r=Math.floor(s%3600/60),n=Math.floor(s%60);return{totalMilliseconds:e,totalSeconds:s,milliseconds:Math.floor(e%1e3),seconds:n,minutes:r,hours:o,days:i}}static getMillisecondsFromExpiry(e){const t=(new Date).getTime(),s=(null==e?void 0:e.getTime())-t;return s>0?s:0}static getMillisecondsFromPrevTime(e){const t=(new Date).getTime()-e;return t>0?t:0}static getMillisecondsFromTimeNow(){const e=new Date;return e.getTime()-60*e.getTimezoneOffset()*1e3}static getFormattedTimeFromMilliseconds(e,t){const{milliseconds:s,seconds:i,minutes:o,hours:r}=n.getTimeFromMilliseconds(e);let l="",a=r;return"12-hour"===t&&(l=r>=12?"pm":"am",a=r%12),{milliseconds:s,seconds:i,minutes:o,hours:a,ampm:l}}}class l{static expiryTimestamp(e){const t=new Date(e).getTime()>0;return t||console.warn("react-timer-hook: { useTimer } Invalid expiryTimestamp settings",e),t}static onExpire(e){const t=e&&"function"==typeof e;return e&&!t&&console.warn("react-timer-hook: { useTimer } Invalid onExpire settings function",e),t}}function a(e,t){const s=(0,r.useRef)(e);(0,r.useEffect)(()=>{s.current=e}),(0,r.useEffect)(()=>{if(!t)return()=>{};const e=setInterval(()=>{var e;null===(e=null==s?void 0:s.current)||void 0===e||e.call(s)},t);return()=>clearInterval(e)},[t])}const c=1e3;function m({expiryTimestamp:e,onExpire:t=()=>{},autoStart:s=!0,interval:i=c}){const[o,m]=(0,r.useState)(e),[u,d]=(0,r.useState)(n.getMillisecondsFromExpiry(o)),[g,p]=(0,r.useState)(s),[f,T]=(0,r.useState)(s),[M,v]=(0,r.useState)(i),x=(0,r.useCallback)(()=>{l.onExpire(t)&&t(),p(!1),v(null)},[t]),y=(0,r.useCallback)(()=>{p(!1)},[]),F=(0,r.useCallback)((e,t=!0)=>{v(i),T(t),p(t),m(e),d(n.getMillisecondsFromExpiry(e))},[i]),b=(0,r.useCallback)(()=>{const e=new Date;e.setMilliseconds(e.getMilliseconds()+u),F(e)},[u,F]),S=(0,r.useCallback)(()=>{f?(d(n.getMillisecondsFromExpiry(o)),p(!0)):b()},[o,f,b]);return a(()=>{const e=n.getMillisecondsFromExpiry(o);d(e),e<=0?x():M&&e<M&&v(e)},g?M:null),(0,r.useEffect)(()=>{l.expiryTimestamp(o)},[o]),Object.assign(Object.assign({},n.getTimeFromMilliseconds(u)),{start:S,pause:y,resume:b,restart:F,isRunning:g})}function u({autoStart:e=!0,offsetTimestamp:t,interval:s=c}={}){const i=t?n.getMillisecondsFromExpiry(t):0,[o,l]=(0,r.useState)((new Date).getTime()-new Date(i).getTime()),[m,u]=(0,r.useState)(n.getMillisecondsFromPrevTime(o||0)),[d,g]=(0,r.useState)(e),p=c-m%c,[f,T]=(0,r.useState)(s<p?s:p);a(()=>{f!==s&&T(s),u(n.getMillisecondsFromPrevTime(o))},d?f:null);const M=(0,r.useCallback)(()=>{l((new Date).getTime()-new Date(m).getTime()),g(!0)},[m]),v=(0,r.useCallback)(()=>{d&&(u(n.getMillisecondsFromPrevTime(o)),g(!1))},[o,d]),x=(0,r.useCallback)((e,t=!0)=>{const i=e?n.getMillisecondsFromExpiry(e):0,o=(new Date).getTime()-new Date(i).getTime(),r=n.getMillisecondsFromPrevTime(o),a=c-r%c;l(o),u(r),T(s<a?s:a),g(t)},[s]);return Object.assign(Object.assign({},n.getTimeFromMilliseconds(m,!1)),{start:M,pause:v,reset:x,isRunning:d})}function d({format:e,interval:t=c}={}){const[s,i]=(0,r.useState)(n.getMillisecondsFromTimeNow());return a(()=>{i(n.getMillisecondsFromTimeNow())},t),Object.assign({},n.getFormattedTimeFromMilliseconds(s,e))}return o})())),e.exports;var i}export{i as __require};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as e}from"../../../_virtual/index5.js";import t,{useContext as n,createElement as r,useRef as o}from"react";import s from"../../@emotion/stylis/dist/stylis.browser.esm.js";import i from"../../@emotion/unitless/dist/unitless.browser.esm.js";import a from"../../@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js";import c from"../../../_virtual/hoist-non-react-statics.cjs.js";function u(){return(u=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 l=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},d=function(t){return null!==t&&"object"==typeof t&&"[object Object]"===(t.toString?t.toString():Object.prototype.toString.call(t))&&!e.typeOf(t)},h=Object.freeze([]),p=Object.freeze({});function f(e){return"function"==typeof e}function m(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function y(e){return e&&"string"==typeof e.styledComponentId}var v="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",g="undefined"!=typeof window&&"HTMLElement"in window,S=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&(void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY: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)),w="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 b(){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 E(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(b.apply(void 0,[w[e]].concat(n)).trim())}var _=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&&E(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}(),A=new Map,C=new Map,N=1,I=function(e){if(A.has(e))return A.get(e);for(;C.has(N);)N++;var t=N++;return"production"!==process.env.NODE_ENV&&((0|t)<0||t>1<<30)&&E(16,""+t),A.set(e,t),C.set(t,e),t},P=function(e){return C.get(e)},R=function(e,t){t>=N&&(N=t+1),A.set(e,t),C.set(t,e)},j="style["+v+'][data-styled-version="5.3.11"]',O=new RegExp("^"+v+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),D=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)},T=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(O);if(a){var c=0|parseInt(a[1],10),u=a[2];0!==c&&(R(u,c),D(e,u,a[3]),e.getTag().insertRules(c,r)),r.length=0}else r.push(i)}}},k=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(v))return r}}(n),s=void 0!==o?o.nextSibling:null;r.setAttribute(v,"active"),r.setAttribute("data-styled-version","5.3.11");var i="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return i&&r.setAttribute("nonce",i),n.insertBefore(r,s),r},x=function(){function e(e){var t=this.element=k(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}E(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}(),z=function(){function e(e){var t=this.element=k(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}(),B=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}(),V=g,F={isServer:!g,useCSSOMInjection:!S},L=function(){function e(e,t,n){void 0===e&&(e=p),void 0===t&&(t={}),this.options=u({},F,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&g&&V&&(V=!1,function(e){for(var t=document.querySelectorAll(j),n=0,r=t.length;n<r;n++){var o=t[n];o&&"active"!==o.getAttribute(v)&&(T(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return I(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(u({},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 B(o):r?new x(o):new z(o),new _(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(I(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(I(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(I(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=P(o);if(void 0!==s){var i=e.names.get(s),a=t.getGroup(o);if(i&&a&&i.size){var c=v+".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}(),M=/(a)(d)/gi,G=function(e){return String.fromCharCode(e+(e>25?39:97))};function Y(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=G(t%52)+n;return(G(t%52)+n).replace(M,"$1-$2")}var q=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},$=function(e){return q(5381,e)};var H=$("5.3.11"),U=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&function(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(f(n)&&!y(n))return!1}return!0}(e),this.componentId=t,this.baseHash=q(H,t),this.baseStyle=n,L.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=ae(this.rules,e,t,n).join(""),i=Y(q(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=q(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=q(u,h+d));else if(h){var p=ae(h,e,t,n),f=Array.isArray(p)?p.join(""):p;u=q(u,f+d),l+=f}}if(l){var m=Y(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}(),W=/^\s*\/\/.*$/gm,Z=[":","[",".","#"];var J=t.createContext();J.Consumer;var X=t.createContext(),K=(X.Consumer,new L),Q=function(){var e,t,n,r,o=p,i=o.options,a=void 0===i?p:i,c=o.plugins,u=void 0===c?h:c,l=new s(a),d=[],f=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)}),m=function(n,o,s){return 0===o&&-1!==Z.indexOf(s[t.length])||s.match(r)?n:"."+e};function y(o,s,i,a){void 0===a&&(a="&");var c=o.replace(W,""),u=s&&i?i+" "+s+" { "+c+" }":c;return e=a,t=s,n=new RegExp("\\"+t+"\\b","g"),r=new RegExp("(\\"+t+"\\b){2,}"),l(i||!s?"":s,u)}return l.use([].concat(u,[function(e,r,o){2===e&&o.length&&o[0].lastIndexOf(t)>0&&(o[0]=o[0].replace(n,m))},f,function(e){if(-2===e){var t=d;return d=[],t}}])),y.hash=u.length?u.reduce(function(e,t){return t.name||E(15),q(e,t.name)},5381).toString():"",y}();var ee=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Q);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 E(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=Q),this.name+e.hash},e}(),te=/([A-Z])/,ne=/([A-Z])/g,re=/^ms-/,oe=function(e){return"-"+e.toLowerCase()};function se(e){return te.test(e)?e.replace(ne,oe).replace(re,"-ms-"):e}var ie=function(e){return null==e||!1===e||""===e};function ae(t,n,r,o){if(Array.isArray(t)){for(var s,a=[],c=0,u=t.length;c<u;c+=1)""!==(s=ae(t[c],n,r,o))&&(Array.isArray(s)?a.push.apply(a,s):a.push(s));return a}if(ie(t))return"";if(y(t))return"."+t.styledComponentId;if(f(t)){if("function"!=typeof(h=t)||h.prototype&&h.prototype.isReactComponent||!n)return t;var l=t(n);return"production"!==process.env.NODE_ENV&&e.isElement(l)&&console.warn(m(t)+" 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."),ae(l,n,r,o)}var h;return t instanceof ee?r?(t.inject(r,o),t.getName(o)):t:d(t)?function e(t,n){var r,o,s=[];for(var a in t)t.hasOwnProperty(a)&&!ie(t[a])&&(Array.isArray(t[a])&&t[a].isCss||f(t[a])?s.push(se(a)+":",t[a],";"):d(t[a])?s.push.apply(s,e(t[a],a)):s.push(se(a)+": "+(r=a,(null==(o=t[a])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||r in i||r.startsWith("--")?String(o).trim():o+"px")+";")));return n?[n+" {"].concat(s,["}"]):s}(t):t.toString()}var ce=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function ue(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 f(e)||d(e)?ce(ae(l(h,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:ce(ae(l(e,n)))}var le=/invalid hook call/i,de=new Set,he=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,pe=/(^-|-$)/g;function fe(e){return e.replace(he,"-").replace(pe,"")}function me(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var ye=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 ge(e,t,n){var r=e[n];ye(t)&&ye(r)?Se(r,t):e[n]=t}function Se(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(ye(i))for(var a in i)ve(a)&&ge(e,i[a],a)}return e}var we=t.createContext();we.Consumer;var be={};function Ee(e,s,i){var l=y(e),d=!me(e),v=s.attrs,g=void 0===v?h:v,S=s.componentId,w=void 0===S?function(e,t){var n="string"!=typeof e?"sc":fe(e);be[n]=(be[n]||0)+1;var r=n+"-"+function(e){return Y($(e)>>>0)}("5.3.11"+n+be[n]);return t?t+"-"+r:r}(s.displayName,s.parentComponentId):S,b=s.displayName,E=void 0===b?function(e){return me(e)?"styled."+e:"Styled("+m(e)+")"}(e):b,_=s.displayName&&s.componentId?fe(s.displayName)+"-"+s.componentId:s.componentId||w,A=l&&e.attrs?Array.prototype.concat(e.attrs,g).filter(Boolean):g,C=s.shouldForwardProp;l&&e.shouldForwardProp&&(C=s.shouldForwardProp?function(t,n,r){return e.shouldForwardProp(t,n,r)&&s.shouldForwardProp(t,n,r)}:e.shouldForwardProp);var N,I=new U(i,_,l?e.componentStyle:void 0),P=I.isStatic&&0===g.length,R=function(e,t){return function(e,t,o,s){var i=e.attrs,c=e.componentStyle,l=e.defaultProps,d=e.foldedComponentIds,h=e.shouldForwardProp,m=e.styledComponentId,y=e.target,v=function(e,t,n){void 0===e&&(e=p);var r=u({},t,{theme:e}),o={};return n.forEach(function(e){var t,n,s,i=e;for(t in f(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]}(function(e,t,n){return void 0===n&&(n=p),e.theme!==n.theme&&e.theme||t||n.theme}(t,n(we),l)||p,t,i),g=v[0],S=v[1],w=function(e,t,r,o){var s=n(J)||K,i=n(X)||Q,a=t?e.generateAndInjectStyles(p,s,i):e.generateAndInjectStyles(r,s,i);return"production"!==process.env.NODE_ENV&&!t&&o&&o(a),a}(c,s,g,"production"!==process.env.NODE_ENV?e.warnTooManyClasses:void 0),b=o,E=S.$as||t.$as||S.as||t.as||y,_=me(E),A=S!==t?u({},t,{},S):t,C={};for(var N in A)"$"!==N[0]&&"as"!==N&&("forwardedAs"===N?C.as=A[N]:(h?h(N,a,E):!_||a(N))&&(C[N]=A[N]));return t.style&&S.style!==t.style&&(C.style=u({},t.style,{},S.style)),C.className=Array.prototype.concat(d,m,w!==m?w:null,t.className,S.className).filter(Boolean).join(" "),C.ref=b,r(E,C)}(N,e,t,P)};return R.displayName=E,(N=t.forwardRef(R)).attrs=A,N.componentStyle=I,N.displayName=E,N.shouldForwardProp=C,N.foldedComponentIds=l?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):h,N.styledComponentId=_,N.target=l?e.target:e,N.withComponent=function(e){var t=s.componentId,n=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}(s,["componentId"]),r=t&&t+"-"+(me(e)?e:fe(m(e)));return Ee(e,u({},n,{attrs:A,componentId:r}),i)},Object.defineProperty(N,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=l?Se({},e.defaultProps,t):t}}),"production"!==process.env.NODE_ENV&&(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 s=!0;console.error=function(e){if(le.test(e))s=!1,de.delete(n);else{for(var t=arguments.length,o=new Array(t>1?t-1:0),i=1;i<t;i++)o[i-1]=arguments[i];r.apply(void 0,[e].concat(o))}},o(),s&&!de.has(n)&&(console.warn(n),de.add(n))}catch(e){le.test(e.message)&&de.delete(n)}finally{console.error=r}}}(E,_),N.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={}}}}(E,_)),Object.defineProperty(N,"toString",{value:function(){return"."+N.styledComponentId}}),d&&c(N,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),N}var _e=function(t){return function t(n,r,o){if(void 0===o&&(o=p),!e.isValidElementType(r))return E(1,String(r));var s=function(){return n(r,o,ue.apply(void 0,arguments))};return s.withConfig=function(e){return t(n,r,u({},o,{},e))},s.attrs=function(e){return t(n,r,u({},o,{attrs:Array.prototype.concat(o.attrs,e).filter(Boolean)}))},s}(Ee,t)};["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){_e[e]=_e(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);export{J as StyleSheetContext,we as ThemeContext,ue as css,_e as default,y as isStyledComponent};
|
|
1
|
+
import{r as e}from"../../../_virtual/index4.js";import t,{useContext as n,createElement as r,useRef as o}from"react";import s from"../../@emotion/stylis/dist/stylis.browser.esm.js";import i from"../../@emotion/unitless/dist/unitless.browser.esm.js";import a from"../../@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js";import c from"../../../_virtual/hoist-non-react-statics.cjs.js";function u(){return(u=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 l=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},d=function(t){return null!==t&&"object"==typeof t&&"[object Object]"===(t.toString?t.toString():Object.prototype.toString.call(t))&&!e.typeOf(t)},h=Object.freeze([]),p=Object.freeze({});function f(e){return"function"==typeof e}function m(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function y(e){return e&&"string"==typeof e.styledComponentId}var v="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",g="undefined"!=typeof window&&"HTMLElement"in window,S=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&(void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY: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)),w="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 b(){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 E(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(b.apply(void 0,[w[e]].concat(n)).trim())}var _=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&&E(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}(),A=new Map,C=new Map,N=1,I=function(e){if(A.has(e))return A.get(e);for(;C.has(N);)N++;var t=N++;return"production"!==process.env.NODE_ENV&&((0|t)<0||t>1<<30)&&E(16,""+t),A.set(e,t),C.set(t,e),t},P=function(e){return C.get(e)},R=function(e,t){t>=N&&(N=t+1),A.set(e,t),C.set(t,e)},j="style["+v+'][data-styled-version="5.3.11"]',O=new RegExp("^"+v+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),D=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)},T=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(O);if(a){var c=0|parseInt(a[1],10),u=a[2];0!==c&&(R(u,c),D(e,u,a[3]),e.getTag().insertRules(c,r)),r.length=0}else r.push(i)}}},k=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(v))return r}}(n),s=void 0!==o?o.nextSibling:null;r.setAttribute(v,"active"),r.setAttribute("data-styled-version","5.3.11");var i="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return i&&r.setAttribute("nonce",i),n.insertBefore(r,s),r},x=function(){function e(e){var t=this.element=k(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}E(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}(),z=function(){function e(e){var t=this.element=k(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}(),B=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}(),V=g,F={isServer:!g,useCSSOMInjection:!S},L=function(){function e(e,t,n){void 0===e&&(e=p),void 0===t&&(t={}),this.options=u({},F,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&g&&V&&(V=!1,function(e){for(var t=document.querySelectorAll(j),n=0,r=t.length;n<r;n++){var o=t[n];o&&"active"!==o.getAttribute(v)&&(T(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return I(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(u({},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 B(o):r?new x(o):new z(o),new _(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(I(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(I(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(I(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=P(o);if(void 0!==s){var i=e.names.get(s),a=t.getGroup(o);if(i&&a&&i.size){var c=v+".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}(),M=/(a)(d)/gi,G=function(e){return String.fromCharCode(e+(e>25?39:97))};function Y(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=G(t%52)+n;return(G(t%52)+n).replace(M,"$1-$2")}var q=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},$=function(e){return q(5381,e)};var H=$("5.3.11"),U=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&function(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(f(n)&&!y(n))return!1}return!0}(e),this.componentId=t,this.baseHash=q(H,t),this.baseStyle=n,L.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=ae(this.rules,e,t,n).join(""),i=Y(q(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=q(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=q(u,h+d));else if(h){var p=ae(h,e,t,n),f=Array.isArray(p)?p.join(""):p;u=q(u,f+d),l+=f}}if(l){var m=Y(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}(),W=/^\s*\/\/.*$/gm,Z=[":","[",".","#"];var J=t.createContext();J.Consumer;var X=t.createContext(),K=(X.Consumer,new L),Q=function(){var e,t,n,r,o=p,i=o.options,a=void 0===i?p:i,c=o.plugins,u=void 0===c?h:c,l=new s(a),d=[],f=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)}),m=function(n,o,s){return 0===o&&-1!==Z.indexOf(s[t.length])||s.match(r)?n:"."+e};function y(o,s,i,a){void 0===a&&(a="&");var c=o.replace(W,""),u=s&&i?i+" "+s+" { "+c+" }":c;return e=a,t=s,n=new RegExp("\\"+t+"\\b","g"),r=new RegExp("(\\"+t+"\\b){2,}"),l(i||!s?"":s,u)}return l.use([].concat(u,[function(e,r,o){2===e&&o.length&&o[0].lastIndexOf(t)>0&&(o[0]=o[0].replace(n,m))},f,function(e){if(-2===e){var t=d;return d=[],t}}])),y.hash=u.length?u.reduce(function(e,t){return t.name||E(15),q(e,t.name)},5381).toString():"",y}();var ee=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Q);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 E(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=Q),this.name+e.hash},e}(),te=/([A-Z])/,ne=/([A-Z])/g,re=/^ms-/,oe=function(e){return"-"+e.toLowerCase()};function se(e){return te.test(e)?e.replace(ne,oe).replace(re,"-ms-"):e}var ie=function(e){return null==e||!1===e||""===e};function ae(t,n,r,o){if(Array.isArray(t)){for(var s,a=[],c=0,u=t.length;c<u;c+=1)""!==(s=ae(t[c],n,r,o))&&(Array.isArray(s)?a.push.apply(a,s):a.push(s));return a}if(ie(t))return"";if(y(t))return"."+t.styledComponentId;if(f(t)){if("function"!=typeof(h=t)||h.prototype&&h.prototype.isReactComponent||!n)return t;var l=t(n);return"production"!==process.env.NODE_ENV&&e.isElement(l)&&console.warn(m(t)+" 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."),ae(l,n,r,o)}var h;return t instanceof ee?r?(t.inject(r,o),t.getName(o)):t:d(t)?function e(t,n){var r,o,s=[];for(var a in t)t.hasOwnProperty(a)&&!ie(t[a])&&(Array.isArray(t[a])&&t[a].isCss||f(t[a])?s.push(se(a)+":",t[a],";"):d(t[a])?s.push.apply(s,e(t[a],a)):s.push(se(a)+": "+(r=a,(null==(o=t[a])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||r in i||r.startsWith("--")?String(o).trim():o+"px")+";")));return n?[n+" {"].concat(s,["}"]):s}(t):t.toString()}var ce=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function ue(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 f(e)||d(e)?ce(ae(l(h,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:ce(ae(l(e,n)))}var le=/invalid hook call/i,de=new Set,he=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,pe=/(^-|-$)/g;function fe(e){return e.replace(he,"-").replace(pe,"")}function me(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var ye=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 ge(e,t,n){var r=e[n];ye(t)&&ye(r)?Se(r,t):e[n]=t}function Se(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(ye(i))for(var a in i)ve(a)&&ge(e,i[a],a)}return e}var we=t.createContext();we.Consumer;var be={};function Ee(e,s,i){var l=y(e),d=!me(e),v=s.attrs,g=void 0===v?h:v,S=s.componentId,w=void 0===S?function(e,t){var n="string"!=typeof e?"sc":fe(e);be[n]=(be[n]||0)+1;var r=n+"-"+function(e){return Y($(e)>>>0)}("5.3.11"+n+be[n]);return t?t+"-"+r:r}(s.displayName,s.parentComponentId):S,b=s.displayName,E=void 0===b?function(e){return me(e)?"styled."+e:"Styled("+m(e)+")"}(e):b,_=s.displayName&&s.componentId?fe(s.displayName)+"-"+s.componentId:s.componentId||w,A=l&&e.attrs?Array.prototype.concat(e.attrs,g).filter(Boolean):g,C=s.shouldForwardProp;l&&e.shouldForwardProp&&(C=s.shouldForwardProp?function(t,n,r){return e.shouldForwardProp(t,n,r)&&s.shouldForwardProp(t,n,r)}:e.shouldForwardProp);var N,I=new U(i,_,l?e.componentStyle:void 0),P=I.isStatic&&0===g.length,R=function(e,t){return function(e,t,o,s){var i=e.attrs,c=e.componentStyle,l=e.defaultProps,d=e.foldedComponentIds,h=e.shouldForwardProp,m=e.styledComponentId,y=e.target,v=function(e,t,n){void 0===e&&(e=p);var r=u({},t,{theme:e}),o={};return n.forEach(function(e){var t,n,s,i=e;for(t in f(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]}(function(e,t,n){return void 0===n&&(n=p),e.theme!==n.theme&&e.theme||t||n.theme}(t,n(we),l)||p,t,i),g=v[0],S=v[1],w=function(e,t,r,o){var s=n(J)||K,i=n(X)||Q,a=t?e.generateAndInjectStyles(p,s,i):e.generateAndInjectStyles(r,s,i);return"production"!==process.env.NODE_ENV&&!t&&o&&o(a),a}(c,s,g,"production"!==process.env.NODE_ENV?e.warnTooManyClasses:void 0),b=o,E=S.$as||t.$as||S.as||t.as||y,_=me(E),A=S!==t?u({},t,{},S):t,C={};for(var N in A)"$"!==N[0]&&"as"!==N&&("forwardedAs"===N?C.as=A[N]:(h?h(N,a,E):!_||a(N))&&(C[N]=A[N]));return t.style&&S.style!==t.style&&(C.style=u({},t.style,{},S.style)),C.className=Array.prototype.concat(d,m,w!==m?w:null,t.className,S.className).filter(Boolean).join(" "),C.ref=b,r(E,C)}(N,e,t,P)};return R.displayName=E,(N=t.forwardRef(R)).attrs=A,N.componentStyle=I,N.displayName=E,N.shouldForwardProp=C,N.foldedComponentIds=l?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):h,N.styledComponentId=_,N.target=l?e.target:e,N.withComponent=function(e){var t=s.componentId,n=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}(s,["componentId"]),r=t&&t+"-"+(me(e)?e:fe(m(e)));return Ee(e,u({},n,{attrs:A,componentId:r}),i)},Object.defineProperty(N,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=l?Se({},e.defaultProps,t):t}}),"production"!==process.env.NODE_ENV&&(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 s=!0;console.error=function(e){if(le.test(e))s=!1,de.delete(n);else{for(var t=arguments.length,o=new Array(t>1?t-1:0),i=1;i<t;i++)o[i-1]=arguments[i];r.apply(void 0,[e].concat(o))}},o(),s&&!de.has(n)&&(console.warn(n),de.add(n))}catch(e){le.test(e.message)&&de.delete(n)}finally{console.error=r}}}(E,_),N.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={}}}}(E,_)),Object.defineProperty(N,"toString",{value:function(){return"."+N.styledComponentId}}),d&&c(N,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),N}var _e=function(t){return function t(n,r,o){if(void 0===o&&(o=p),!e.isValidElementType(r))return E(1,String(r));var s=function(){return n(r,o,ue.apply(void 0,arguments))};return s.withConfig=function(e){return t(n,r,u({},o,{},e))},s.attrs=function(e){return t(n,r,u({},o,{attrs:Array.prototype.concat(o.attrs,e).filter(Boolean)}))},s}(Ee,t)};["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){_e[e]=_e(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);export{J as StyleSheetContext,we as ThemeContext,ue as css,_e as default,y as isStyledComponent};
|
|
2
2
|
//# sourceMappingURL=styled-components.browser.esm.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{useRef as r,useState as n,useCallback as t,useEffect as e,useMemo as u}from"react";function c(n,t,c,i){var a=this,o=r(null),f=r(0),l=r(0),m=r(null),v=r([]),s=r(),d=r(),p=r(n),w=r(!0);p.current=n;var b="undefined"!=typeof window,h=!t&&0!==t&&b;if("function"!=typeof n)throw new TypeError("Expected a function");t=+t||0;var x=!!(c=c||{}).leading,D=!("trailing"in c)||!!c.trailing,g="maxWait"in c,y="debounceOnServer"in c&&!!c.debounceOnServer,A=g?Math.max(+c.maxWait||0,t):null;e(function(){return w.current=!0,function(){w.current=!1}},[]);var F=u(function(){var r=function(r){var n=v.current,t=s.current;return v.current=s.current=null,f.current=r,l.current=l.current||r,d.current=p.current.apply(t,n)},n=function(r,n){h&&cancelAnimationFrame(m.current),m.current=h?requestAnimationFrame(r):setTimeout(r,n)},e=function(r){if(!w.current)return!1;var n=r-o.current;return!o.current||n>=t||n<0||g&&r-f.current>=A},u=function(n){return m.current=null,D&&v.current?r(n):(v.current=s.current=null,d.current)},c=function r(){var c=Date.now();if(x&&l.current===f.current&&F(),e(c))return u(c);if(w.current){var i=t-(c-o.current),a=g?Math.min(i,A-(c-f.current)):i;n(r,a)}},F=function(){i&&i({})},T=function(){if(b||y){var u=Date.now(),i=e(u);if(v.current=[].slice.call(arguments),s.current=a,o.current=u,i){if(!m.current&&w.current)return f.current=o.current,n(c,t),x?r(o.current):d.current;if(g)return n(c,t),r(o.current)}return m.current||n(c,t),d.current}};return T.cancel=function(){m.current&&(h?cancelAnimationFrame(m.current):clearTimeout(m.current)),f.current=0,v.current=o.current=s.current=m.current=null},T.isPending=function(){return!!m.current},T.flush=function(){return m.current?u(Date.now()):d.current},T},[x,g,t,A,D,h,b,y,i]);return F}function i(r,n){return r===n}function a(e,u,a){var o=i,f=r(e),l=n({})[1],m=c(t(function(r){f.current=r,l({})},[l]),u,a,l),v=r(e);return o(v.current,e)||(m(e),v.current=e),[f.current,m]}export{a as useDebounce,c as useDebouncedCallback};
|
|
2
|
+
//# sourceMappingURL=index.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.module.js","sources":["../../../../node_modules/use-debounce/dist/index.module.js"],"sourcesContent":["import{useRef as r,useEffect as n,useMemo as t,useState as e,useCallback as u}from\"react\";function c(e,u,c,i){var a=this,o=r(null),f=r(0),l=r(0),v=r(null),m=r([]),d=r(),g=r(),p=r(e),w=r(!0);p.current=e;var s=\"undefined\"!=typeof window,x=!u&&0!==u&&s;if(\"function\"!=typeof e)throw new TypeError(\"Expected a function\");u=+u||0;var h=!!(c=c||{}).leading,y=!(\"trailing\"in c)||!!c.trailing,F=\"maxWait\"in c,A=\"debounceOnServer\"in c&&!!c.debounceOnServer,D=F?Math.max(+c.maxWait||0,u):null;n(function(){return w.current=!0,function(){w.current=!1}},[]);var T=t(function(){var r=function(r){var n=m.current,t=d.current;return m.current=d.current=null,f.current=r,l.current=l.current||r,g.current=p.current.apply(t,n)},n=function(r,n){x&&cancelAnimationFrame(v.current),v.current=x?requestAnimationFrame(r):setTimeout(r,n)},t=function(r){if(!w.current)return!1;var n=r-o.current;return!o.current||n>=u||n<0||F&&r-f.current>=D},e=function(n){return v.current=null,y&&m.current?r(n):(m.current=d.current=null,g.current)},c=function r(){var c=Date.now();if(h&&l.current===f.current&&T(),t(c))return e(c);if(w.current){var i=u-(c-o.current),a=F?Math.min(i,D-(c-f.current)):i;n(r,a)}},T=function(){i&&i({})},W=function(){if(s||A){var e=Date.now(),i=t(e);if(m.current=[].slice.call(arguments),d.current=a,o.current=e,i){if(!v.current&&w.current)return f.current=o.current,n(c,u),h?r(o.current):g.current;if(F)return n(c,u),r(o.current)}return v.current||n(c,u),g.current}};return W.cancel=function(){v.current&&(x?cancelAnimationFrame(v.current):clearTimeout(v.current)),f.current=0,m.current=o.current=d.current=v.current=null},W.isPending=function(){return!!v.current},W.flush=function(){return v.current?e(Date.now()):g.current},W},[h,F,u,D,y,x,s,A,i]);return T}function i(r,n){return r===n}function a(n,t,a){var o=a&&a.equalityFn||i,f=r(n),l=e({})[1],v=c(u(function(r){f.current=r,l({})},[l]),t,a,l),m=r(n);return o(m.current,n)||(v(n),m.current=n),[f.current,v]}function o(r,n,t){var e=void 0===t?{}:t,u=e.leading,i=e.trailing;return c(r,n,{maxWait:n,leading:void 0===u||u,trailing:void 0===i||i})}export{a as useDebounce,c as useDebouncedCallback,o as useThrottledCallback};\n//# sourceMappingURL=index.module.js.map\n"],"names":["c","e","u","i","a","this","o","r","f","l","v","m","d","g","p","w","current","s","window","x","TypeError","h","leading","y","trailing","F","A","debounceOnServer","D","Math","max","maxWait","n","T","t","apply","cancelAnimationFrame","requestAnimationFrame","setTimeout","Date","now","min","W","slice","call","arguments","cancel","clearTimeout","isPending","flush"],"mappings":"0FAA0F,SAASA,EAAEC,EAAEC,EAAEF,EAAEG,GAAG,IAAIC,EAAEC,KAAKC,EAAEC,EAAE,MAAMC,EAAED,EAAE,GAAGE,EAAEF,EAAE,GAAGG,EAAEH,EAAE,MAAMI,EAAEJ,EAAE,IAAIK,EAAEL,IAAIM,EAAEN,IAAIO,EAAEP,EAAEN,GAAGc,EAAER,GAAE,GAAIO,EAAEE,QAAQf,EAAE,IAAIgB,EAAE,oBAAoBC,OAAOC,GAAGjB,GAAG,IAAIA,GAAGe,EAAE,GAAG,mBAAmBhB,EAAE,MAAM,IAAImB,UAAU,uBAAuBlB,GAAGA,GAAG,EAAE,IAAImB,KAAKrB,EAAEA,GAAG,CAAA,GAAIsB,QAAQC,IAAI,aAAavB,MAAMA,EAAEwB,SAASC,EAAE,YAAYzB,EAAE0B,EAAE,qBAAqB1B,KAAKA,EAAE2B,iBAAiBC,EAAEH,EAAEI,KAAKC,KAAK9B,EAAE+B,SAAS,EAAE7B,GAAG,KAAK8B,EAAE,WAAW,OAAOjB,EAAEC,SAAQ,EAAG,WAAWD,EAAEC,SAAQ,CAAE,CAAC,EAAE,IAAI,IAAIiB,EAAEC,EAAE,WAAW,IAAI3B,EAAE,SAASA,GAAG,IAAIyB,EAAErB,EAAEK,QAAQkB,EAAEtB,EAAEI,QAAQ,OAAOL,EAAEK,QAAQJ,EAAEI,QAAQ,KAAKR,EAAEQ,QAAQT,EAAEE,EAAEO,QAAQP,EAAEO,SAAST,EAAEM,EAAEG,QAAQF,EAAEE,QAAQmB,MAAMD,EAAEF,EAAE,EAAEA,EAAE,SAASzB,EAAEyB,GAAGb,GAAGiB,qBAAqB1B,EAAEM,SAASN,EAAEM,QAAQG,EAAEkB,sBAAsB9B,GAAG+B,WAAW/B,EAAEyB,EAAE,EAAEE,EAAE,SAAS3B,GAAG,IAAIQ,EAAEC,QAAQ,OAAM,EAAG,IAAIgB,EAAEzB,EAAED,EAAEU,QAAQ,OAAOV,EAAEU,SAASgB,GAAG9B,GAAG8B,EAAE,GAAGP,GAAGlB,EAAEC,EAAEQ,SAASY,CAAC,EAAE3B,EAAE,SAAS+B,GAAG,OAAOtB,EAAEM,QAAQ,KAAKO,GAAGZ,EAAEK,QAAQT,EAAEyB,IAAIrB,EAAEK,QAAQJ,EAAEI,QAAQ,KAAKH,EAAEG,QAAQ,EAAEhB,EAAE,SAASO,IAAI,IAAIP,EAAEuC,KAAKC,MAAM,GAAGnB,GAAGZ,EAAEO,UAAUR,EAAEQ,SAASiB,IAAIC,EAAElC,GAAG,OAAOC,EAAED,GAAG,GAAGe,EAAEC,QAAQ,CAAC,IAAIb,EAAED,GAAGF,EAAEM,EAAEU,SAASZ,EAAEqB,EAAEI,KAAKY,IAAItC,EAAEyB,GAAG5B,EAAEQ,EAAEQ,UAAUb,EAAE6B,EAAEzB,EAAEH,EAAE,CAAC,EAAE6B,EAAE,WAAW9B,GAAGA,EAAE,CAAA,EAAG,EAAEuC,EAAE,WAAW,GAAGzB,GAAGS,EAAE,CAAC,IAAIzB,EAAEsC,KAAKC,MAAMrC,EAAE+B,EAAEjC,GAAG,GAAGU,EAAEK,QAAQ,GAAG2B,MAAMC,KAAKC,WAAWjC,EAAEI,QAAQZ,EAAEE,EAAEU,QAAQf,EAAEE,EAAE,CAAC,IAAIO,EAAEM,SAASD,EAAEC,QAAQ,OAAOR,EAAEQ,QAAQV,EAAEU,QAAQgB,EAAEhC,EAAEE,GAAGmB,EAAEd,EAAED,EAAEU,SAASH,EAAEG,QAAQ,GAAGS,EAAE,OAAOO,EAAEhC,EAAEE,GAAGK,EAAED,EAAEU,QAAQ,CAAC,OAAON,EAAEM,SAASgB,EAAEhC,EAAEE,GAAGW,EAAEG,OAAO,CAAC,EAAE,OAAO0B,EAAEI,OAAO,WAAWpC,EAAEM,UAAUG,EAAEiB,qBAAqB1B,EAAEM,SAAS+B,aAAarC,EAAEM,UAAUR,EAAEQ,QAAQ,EAAEL,EAAEK,QAAQV,EAAEU,QAAQJ,EAAEI,QAAQN,EAAEM,QAAQ,IAAI,EAAE0B,EAAEM,UAAU,WAAW,QAAQtC,EAAEM,OAAO,EAAE0B,EAAEO,MAAM,WAAW,OAAOvC,EAAEM,QAAQf,EAAEsC,KAAKC,OAAO3B,EAAEG,OAAO,EAAE0B,CAAC,EAAE,CAACrB,EAAEI,EAAEvB,EAAE0B,EAAEL,EAAEJ,EAAEF,EAAES,EAAEvB,IAAI,OAAO8B,CAAC,CAAC,SAAS9B,EAAEI,EAAEyB,GAAG,OAAOzB,IAAIyB,CAAC,CAAC,SAAS5B,EAAE4B,EAAEE,EAAE9B,GAAG,IAAIE,EAAmBH,EAAEK,EAAED,EAAEyB,GAAGvB,EAAER,EAAE,CAAA,GAAI,GAAGS,EAAEV,EAAEE,EAAE,SAASK,GAAGC,EAAEQ,QAAQT,EAAEE,EAAE,CAAA,EAAG,EAAE,CAACA,IAAIyB,EAAE9B,EAAEK,GAAGE,EAAEJ,EAAEyB,GAAG,OAAO1B,EAAEK,EAAEK,QAAQgB,KAAKtB,EAAEsB,GAAGrB,EAAEK,QAAQgB,GAAG,CAACxB,EAAEQ,QAAQN,EAAE","x_google_ignoreList":[0]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@d19n/webchat",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "D19N WebChat package",
|
|
5
5
|
"author": "@d19n",
|
|
6
6
|
"license": "ISC",
|
|
@@ -43,7 +43,6 @@
|
|
|
43
43
|
"package": "^1.0.1",
|
|
44
44
|
"process": "^0.11.10",
|
|
45
45
|
"react-bootstrap": "^2.10.10",
|
|
46
|
-
"react-debounce-input": "^3.3.0",
|
|
47
46
|
"react-dropzone": "^14.3.8",
|
|
48
47
|
"react-icons": "^4.2.0",
|
|
49
48
|
"react-markdown": "^5.0.3",
|
|
@@ -56,21 +55,25 @@
|
|
|
56
55
|
"rollup-plugin-dts": "^6.2.1",
|
|
57
56
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
58
57
|
"rollup-plugin-postcss": "^4.0.2",
|
|
58
|
+
"sass": "^1.87.0",
|
|
59
59
|
"socket.io-client": "^4.7.5",
|
|
60
60
|
"styled-components": "^5.2.1",
|
|
61
61
|
"ts-node": "^10.9.2",
|
|
62
62
|
"tslib": "^2.8.1",
|
|
63
63
|
"typescript": "^5.8.3",
|
|
64
|
-
"
|
|
64
|
+
"use-debounce": "^10.0.5",
|
|
65
65
|
"uuid": "^11.1.0"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
68
|
"axios": "^1.11.0",
|
|
69
|
-
"react": "
|
|
70
|
-
"react-dom": "
|
|
69
|
+
"react": ">=18.1.1 <21",
|
|
70
|
+
"react-dom": ">=18.1.1 <21"
|
|
71
71
|
},
|
|
72
72
|
"keywords": [
|
|
73
73
|
"webchat",
|
|
74
74
|
"chat"
|
|
75
|
-
]
|
|
75
|
+
],
|
|
76
|
+
"engines": {
|
|
77
|
+
"node": ">=18"
|
|
78
|
+
}
|
|
76
79
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__makeTemplateObject as e}from"../../node_modules/tslib/tslib.es6.js";import n,{useState as o,useEffect as t}from"react";import a from"../../node_modules/styled-components/dist/styled-components.browser.esm.js";import{useGlobalContext as r}from"../context/GlobalContext.js";import l from"../../_virtual/react-markdown.js";import p from"../../_virtual/
|
|
1
|
+
import{__makeTemplateObject as e}from"../../node_modules/tslib/tslib.es6.js";import n,{useState as o,useEffect as t}from"react";import a from"../../node_modules/styled-components/dist/styled-components.browser.esm.js";import{useGlobalContext as r}from"../context/GlobalContext.js";import l from"../../_virtual/react-markdown.js";import p from"../../_virtual/index2.js";var s,i=a.div(s||(s=e(["\n background-color: #F9423A;\n color: #000;\n width: 100%;\n -webkit-box-shadow: 2px 1px 12px 0px rgba(0, 0, 0, 0.35);\n -moz-box-shadow: 2px 1px 12px 0px rgba(0, 0, 0, 0.35);\n box-shadow: 2px 1px 12px 0px rgba(0, 0, 0, 0.35);\n a, p {\n color: #000 !important;\n line-height: 1.25rem !important;\n }\n"],["\n background-color: #F9423A;\n color: #000;\n width: 100%;\n -webkit-box-shadow: 2px 1px 12px 0px rgba(0, 0, 0, 0.35);\n -moz-box-shadow: 2px 1px 12px 0px rgba(0, 0, 0, 0.35);\n box-shadow: 2px 1px 12px 0px rgba(0, 0, 0, 0.35);\n a, p {\n color: #000 !important;\n line-height: 1.25rem !important;\n }\n"]))),x=function(e){var a=e.type,s=r(),x=o(null),d=x[0],m=x[1];t(function(){},[]),t(function(){c(a)},[s.appMessages]);var c=function(e){var n,o,t,a;switch(void 0===e&&(e=null),e){case"header":m((null===(n=null==s?void 0:s.appMessages)||void 0===n?void 0:n.website_banner_toggle)?null===(o=null==s?void 0:s.appMessages)||void 0===o?void 0:o.website_banner_text:"");break;case"chat":m((null===(t=null==s?void 0:s.appMessages)||void 0===t?void 0:t.chat_banner_toggle)?null===(a=null==s?void 0:s.appMessages)||void 0===a?void 0:a.chat_banner_text:"");break;default:m(null)}};return n.createElement(n.Fragment,null,d&&n.createElement(i,{className:"text-white p-1 text-center"},n.createElement("small",null,n.createElement(l,{plugins:[p],className:"supportArticleContent",children:d,linkTarget:"_blank"}))))};export{x as default};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|