@usecsv/react 0.13.0 → 0.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/build/index.cjs +9 -4
- package/build/index.cjs.map +1 -1
- package/build/index.esm.js +9 -4
- package/build/index.esm.js.map +1 -1
- package/build/index.js +9 -4
- package/build/index.js.map +1 -1
- package/build/index.mjs +9 -4
- package/build/index.mjs.map +1 -1
- package/build/index.umd.js +9 -4
- package/build/index.umd.js.map +1 -1
- package/build/index.umd.min.js +4 -4
- package/build/index.umd.min.js.map +1 -1
- package/build/types/lib/useCsvReactPlugin.d.ts +1 -0
- package/build/types/lib/useCsvReactPlugin.d.ts.map +1 -1
- package/package.json +6 -6
package/build/index.umd.min.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @usecsv/react v0.
|
|
2
|
+
* @usecsv/react v0.14.1
|
|
3
3
|
* (c) layercode
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self)["@usecsv/react"]=t()}(this,(function(){"use strict";
|
|
7
7
|
/*!
|
|
8
|
-
* @usecsv/js v0.
|
|
8
|
+
* @usecsv/js v0.27.0
|
|
9
9
|
* (c) layercode
|
|
10
10
|
* Released under the MIT License.
|
|
11
11
|
*/
|
|
12
|
-
var e=function(){return e=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},e.apply(this,arguments)},t=[],r=[];function n(e,n){if(n=n||{},void 0===e)throw new Error("insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).");var o,a=!0===n.prepend?"prepend":"append",i=void 0!==n.container?n.container:document.querySelector("head"),u=t.indexOf(i);return-1===u&&(u=t.push(i)-1,r[u]={}),void 0!==r[u]&&void 0!==r[u][a]?o=r[u][a]:(o=r[u][a]=function(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}(),"prepend"===a?i.insertBefore(o,i.childNodes[0]):i.appendChild(o)),65279===e.charCodeAt(0)&&(e=e.substr(1,e.length)),o.styleSheet?o.styleSheet.cssText+=e:o.textContent+=e,o}var o,a,i,u,c,s=n;n.insertCss=s,function(e){e.Call="call",e.Reply="reply",e.Syn="syn",e.SynAck="synAck",e.Ack="ack"}(o||(o={})),function(e){e.Fulfilled="fulfilled",e.Rejected="rejected"}(a||(a={})),function(e){e.ConnectionDestroyed="ConnectionDestroyed",e.ConnectionTimeout="ConnectionTimeout",e.NoIframeSrc="NoIframeSrc"}(i||(i={})),function(e){e.DataCloneError="DataCloneError"}(u||(u={})),function(e){e.Message="message"}(c||(c={}));const l={"http:":"80","https:":"443"},f=/^(https?:)?\/\/([^/:]+)?(:(\d+))?/,p=["file:","data:"];const d=({name:e,message:t,stack:r})=>({name:e,message:t,stack:r});let y=0;var m=()=>++y;const v=e=>e?e.split("."):[],h=(e,t,r)=>{const n=v(t);return n.reduce(((e,t,o)=>(void 0===e[t]&&(e[t]={}),o===n.length-1&&(e[t]=r),e[t])),e),e},g=(e,t)=>{const r={};return Object.keys(e).forEach((n=>{const o=e[n],a=((e,t)=>{const r=v(t||"");return r.push(e),(e=>e.join("."))(r)})(n,t);"object"==typeof o&&Object.assign(r,g(o,a)),"function"==typeof o&&(r[a]=o)})),r};var b=(e,t,r,n,u)=>{const{localName:s,local:l,remote:f,originForSending:p,originForReceiving:d}=t;let y=!1;u(`${s}: Connecting call sender`);const v=e=>(...t)=>{let r;u(`${s}: Sending ${e}() call`);try{f.closed&&(r=!0)}catch(e){r=!0}if(r&&n(),y){const t=new Error(`Unable to send ${e}() call due to destroyed connection`);throw t.code=i.ConnectionDestroyed,t}return new Promise(((r,n)=>{const i=m(),y=t=>{if(t.source!==f||t.data.penpal!==o.Reply||t.data.id!==i)return;if("*"!==d&&t.origin!==d)return void u(`${s} received message from origin ${t.origin} which did not match expected origin ${d}`);const p=t.data;u(`${s}: Received ${e}() reply`),l.removeEventListener(c.Message,y);let m=p.returnValue;p.returnValueIsError&&(m=(e=>{const t=new Error;return Object.keys(e).forEach((r=>t[r]=e[r])),t})(m)),(p.resolution===a.Fulfilled?r:n)(m)};l.addEventListener(c.Message,y);const v={penpal:o.Call,id:i,methodName:e,args:t};f.postMessage(v,p)}))},g=r.reduce(((e,t)=>(e[t]=v(t),e)),{});return Object.assign(e,(e=>{const t={};for(const r in e)h(t,r,e[r]);return t})(g)),()=>{y=!0}},_=(e,t,r,n,i)=>{const{destroy:s,onDestroy:l}=n;let f,p;const y={};return n=>{if("*"!==t&&n.origin!==t)return void i(`Parent: Handshake - Received ACK message from origin ${n.origin} which did not match expected origin ${t}`);i("Parent: Handshake - Received ACK");const m={localName:"Parent",local:window,remote:n.source,originForSending:r,originForReceiving:t};f&&f(),f=((e,t,r)=>{const{localName:n,local:i,remote:s,originForSending:l,originForReceiving:f}=e;let p=!1;const y=e=>{if(e.source!==s||e.data.penpal!==o.Call)return;if("*"!==f&&e.origin!==f)return void r(`${n} received message from origin ${e.origin} which did not match expected origin ${f}`);const i=e.data,{methodName:c,args:y,id:m}=i;r(`${n}: Received ${c}() call`);const v=e=>t=>{if(r(`${n}: Sending ${c}() reply`),p)return void r(`${n}: Unable to send ${c}() reply due to destroyed connection`);const i={penpal:o.Reply,id:m,resolution:e,returnValue:t};e===a.Rejected&&t instanceof Error&&(i.returnValue=d(t),i.returnValueIsError=!0);try{s.postMessage(i,l)}catch(e){if(e.name===u.DataCloneError){const t={penpal:o.Reply,id:m,resolution:a.Rejected,returnValue:d(e),returnValueIsError:!0};s.postMessage(t,l)}throw e}};new Promise((e=>e(t[c].apply(t,y)))).then(v(a.Fulfilled),v(a.Rejected))};return i.addEventListener(c.Message,y),()=>{p=!0,i.removeEventListener(c.Message,y)}})(m,e,i),l(f),p&&p.forEach((e=>{delete y[e]})),p=n.data.methodNames;const v=b(y,m,p,s,i);return l(v),y}};var w=e=>{let{iframe:t,methods:r={},childOrigin:n,timeout:a,debug:u=!1}=e;const s=(e=>(...t)=>{e&&console.log("[Penpal]",...t)})(u),d=((e,t)=>{const r=[];let n=!1;return{destroy(o){n||(n=!0,t(`${e}: Destroying connection`),r.forEach((e=>{e(o)})))},onDestroy(e){n?e():r.push(e)}}})("Parent",s),{onDestroy:y,destroy:m}=d;n||((e=>{if(!e.src&&!e.srcdoc){const e=new Error("Iframe must have src or srcdoc property defined.");throw e.code=i.NoIframeSrc,e}})(t),n=(e=>{if(e&&p.find((t=>e.startsWith(t))))return"null";const t=document.location,r=f.exec(e);let n,o,a;return r?(n=r[1]?r[1]:t.protocol,o=r[2],a=r[4]):(n=t.protocol,o=t.hostname,a=t.port),`${n}//${o}${a&&a!==l[n]?`:${a}`:""}`})(t.src));const v="null"===n?"*":n,h=g(r),b=((e,t,r,n)=>a=>{if(!a.source)return;if("*"!==r&&a.origin!==r)return void e(`Parent: Handshake - Received SYN message from origin ${a.origin} which did not match expected origin ${r}`);e("Parent: Handshake - Received SYN, responding with SYN-ACK");const i={penpal:o.SynAck,methodNames:Object.keys(t)};a.source.postMessage(i,n)})(s,h,n,v),w=_(h,n,v,d,s),C=new Promise(((e,r)=>{const n=((e,t)=>{let r;return void 0!==e&&(r=window.setTimeout((()=>{const r=new Error(`Connection timed out after ${e}ms`);r.code=i.ConnectionTimeout,t(r)}),e)),()=>{clearTimeout(r)}})(a,m),u=r=>{if(r.source===t.contentWindow&&r.data)if(r.data.penpal!==o.Syn)if(r.data.penpal!==o.Ack);else{const t=w(r);t&&(n(),e(t))}else b(r)};window.addEventListener(c.Message,u),s("Parent: Awaiting handshake"),((e,t)=>{const{destroy:r,onDestroy:n}=t,o=setInterval((()=>{e.isConnected||(clearInterval(o),r())}),6e4);n((()=>{clearInterval(o)}))})(t,d),y((e=>{window.removeEventListener(c.Message,u),e&&r(e)}))}));return{promise:C,destroy(){m()}}},C=["interactive","complete"],E=function(e,t){return new Promise((function(r){e&&"function"!=typeof e&&(t=e,e=null),t=t||window.document;var n=function(){return r(void(e&&setTimeout(e)))};-1!==C.indexOf(t.readyState)?n():t.addEventListener("DOMContentLoaded",n)}))};E.resume=function(e){return function(t){return E(e).then((function(){return t}))}};var R=function(t){var r=t.importerKey,n=t.user,o=t.metadata,a=t.onData,i=t.onRecordsInitial,u=t.onRecordEdit,c=t.importerDisplay,l=void 0===c?"modal":c,f=t.onClose,p=t.theme,d=t.batchSize,y=t.sampleFileURL,m=t.downloadExampleButton,v=void 0===m||m,h=t.dynamicColumns,g=t.defaultLanguage,b=t.onError,_=t.customText,C=t.acceptedFileFormats,R=t.onFileUpload,S=t.columnWidth,k=t.onMatchColumns,
|
|
12
|
+
var e=function(){return e=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},e.apply(this,arguments)},t=[],r=[];function n(e,n){if(n=n||{},void 0===e)throw new Error("insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).");var o,a=!0===n.prepend?"prepend":"append",i=void 0!==n.container?n.container:document.querySelector("head"),u=t.indexOf(i);return-1===u&&(u=t.push(i)-1,r[u]={}),void 0!==r[u]&&void 0!==r[u][a]?o=r[u][a]:(o=r[u][a]=function(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}(),"prepend"===a?i.insertBefore(o,i.childNodes[0]):i.appendChild(o)),65279===e.charCodeAt(0)&&(e=e.substr(1,e.length)),o.styleSheet?o.styleSheet.cssText+=e:o.textContent+=e,o}var o,a,i,u,c,s=n;n.insertCss=s,function(e){e.Call="call",e.Reply="reply",e.Syn="syn",e.SynAck="synAck",e.Ack="ack"}(o||(o={})),function(e){e.Fulfilled="fulfilled",e.Rejected="rejected"}(a||(a={})),function(e){e.ConnectionDestroyed="ConnectionDestroyed",e.ConnectionTimeout="ConnectionTimeout",e.NoIframeSrc="NoIframeSrc"}(i||(i={})),function(e){e.DataCloneError="DataCloneError"}(u||(u={})),function(e){e.Message="message"}(c||(c={}));const l={"http:":"80","https:":"443"},f=/^(https?:)?\/\/([^/:]+)?(:(\d+))?/,p=["file:","data:"];const d=({name:e,message:t,stack:r})=>({name:e,message:t,stack:r});let y=0;var m=()=>++y;const v=e=>e?e.split("."):[],h=(e,t,r)=>{const n=v(t);return n.reduce(((e,t,o)=>(void 0===e[t]&&(e[t]={}),o===n.length-1&&(e[t]=r),e[t])),e),e},g=(e,t)=>{const r={};return Object.keys(e).forEach((n=>{const o=e[n],a=((e,t)=>{const r=v(t||"");return r.push(e),(e=>e.join("."))(r)})(n,t);"object"==typeof o&&Object.assign(r,g(o,a)),"function"==typeof o&&(r[a]=o)})),r};var b=(e,t,r,n,u)=>{const{localName:s,local:l,remote:f,originForSending:p,originForReceiving:d}=t;let y=!1;u(`${s}: Connecting call sender`);const v=e=>(...t)=>{let r;u(`${s}: Sending ${e}() call`);try{f.closed&&(r=!0)}catch(e){r=!0}if(r&&n(),y){const t=new Error(`Unable to send ${e}() call due to destroyed connection`);throw t.code=i.ConnectionDestroyed,t}return new Promise(((r,n)=>{const i=m(),y=t=>{if(t.source!==f||t.data.penpal!==o.Reply||t.data.id!==i)return;if("*"!==d&&t.origin!==d)return void u(`${s} received message from origin ${t.origin} which did not match expected origin ${d}`);const p=t.data;u(`${s}: Received ${e}() reply`),l.removeEventListener(c.Message,y);let m=p.returnValue;p.returnValueIsError&&(m=(e=>{const t=new Error;return Object.keys(e).forEach((r=>t[r]=e[r])),t})(m)),(p.resolution===a.Fulfilled?r:n)(m)};l.addEventListener(c.Message,y);const v={penpal:o.Call,id:i,methodName:e,args:t};f.postMessage(v,p)}))},g=r.reduce(((e,t)=>(e[t]=v(t),e)),{});return Object.assign(e,(e=>{const t={};for(const r in e)h(t,r,e[r]);return t})(g)),()=>{y=!0}},_=(e,t,r,n,i)=>{const{destroy:s,onDestroy:l}=n;let f,p;const y={};return n=>{if("*"!==t&&n.origin!==t)return void i(`Parent: Handshake - Received ACK message from origin ${n.origin} which did not match expected origin ${t}`);i("Parent: Handshake - Received ACK");const m={localName:"Parent",local:window,remote:n.source,originForSending:r,originForReceiving:t};f&&f(),f=((e,t,r)=>{const{localName:n,local:i,remote:s,originForSending:l,originForReceiving:f}=e;let p=!1;const y=e=>{if(e.source!==s||e.data.penpal!==o.Call)return;if("*"!==f&&e.origin!==f)return void r(`${n} received message from origin ${e.origin} which did not match expected origin ${f}`);const i=e.data,{methodName:c,args:y,id:m}=i;r(`${n}: Received ${c}() call`);const v=e=>t=>{if(r(`${n}: Sending ${c}() reply`),p)return void r(`${n}: Unable to send ${c}() reply due to destroyed connection`);const i={penpal:o.Reply,id:m,resolution:e,returnValue:t};e===a.Rejected&&t instanceof Error&&(i.returnValue=d(t),i.returnValueIsError=!0);try{s.postMessage(i,l)}catch(e){if(e.name===u.DataCloneError){const t={penpal:o.Reply,id:m,resolution:a.Rejected,returnValue:d(e),returnValueIsError:!0};s.postMessage(t,l)}throw e}};new Promise((e=>e(t[c].apply(t,y)))).then(v(a.Fulfilled),v(a.Rejected))};return i.addEventListener(c.Message,y),()=>{p=!0,i.removeEventListener(c.Message,y)}})(m,e,i),l(f),p&&p.forEach((e=>{delete y[e]})),p=n.data.methodNames;const v=b(y,m,p,s,i);return l(v),y}};var w=e=>{let{iframe:t,methods:r={},childOrigin:n,timeout:a,debug:u=!1}=e;const s=(e=>(...t)=>{e&&console.log("[Penpal]",...t)})(u),d=((e,t)=>{const r=[];let n=!1;return{destroy(o){n||(n=!0,t(`${e}: Destroying connection`),r.forEach((e=>{e(o)})))},onDestroy(e){n?e():r.push(e)}}})("Parent",s),{onDestroy:y,destroy:m}=d;n||((e=>{if(!e.src&&!e.srcdoc){const e=new Error("Iframe must have src or srcdoc property defined.");throw e.code=i.NoIframeSrc,e}})(t),n=(e=>{if(e&&p.find((t=>e.startsWith(t))))return"null";const t=document.location,r=f.exec(e);let n,o,a;return r?(n=r[1]?r[1]:t.protocol,o=r[2],a=r[4]):(n=t.protocol,o=t.hostname,a=t.port),`${n}//${o}${a&&a!==l[n]?`:${a}`:""}`})(t.src));const v="null"===n?"*":n,h=g(r),b=((e,t,r,n)=>a=>{if(!a.source)return;if("*"!==r&&a.origin!==r)return void e(`Parent: Handshake - Received SYN message from origin ${a.origin} which did not match expected origin ${r}`);e("Parent: Handshake - Received SYN, responding with SYN-ACK");const i={penpal:o.SynAck,methodNames:Object.keys(t)};a.source.postMessage(i,n)})(s,h,n,v),w=_(h,n,v,d,s),C=new Promise(((e,r)=>{const n=((e,t)=>{let r;return void 0!==e&&(r=window.setTimeout((()=>{const r=new Error(`Connection timed out after ${e}ms`);r.code=i.ConnectionTimeout,t(r)}),e)),()=>{clearTimeout(r)}})(a,m),u=r=>{if(r.source===t.contentWindow&&r.data)if(r.data.penpal!==o.Syn)if(r.data.penpal!==o.Ack);else{const t=w(r);t&&(n(),e(t))}else b(r)};window.addEventListener(c.Message,u),s("Parent: Awaiting handshake"),((e,t)=>{const{destroy:r,onDestroy:n}=t,o=setInterval((()=>{e.isConnected||(clearInterval(o),r())}),6e4);n((()=>{clearInterval(o)}))})(t,d),y((e=>{window.removeEventListener(c.Message,u),e&&r(e)}))}));return{promise:C,destroy(){m()}}},C=["interactive","complete"],E=function(e,t){return new Promise((function(r){e&&"function"!=typeof e&&(t=e,e=null),t=t||window.document;var n=function(){return r(void(e&&setTimeout(e)))};-1!==C.indexOf(t.readyState)?n():t.addEventListener("DOMContentLoaded",n)}))};E.resume=function(e){return function(t){return E(e).then((function(){return t}))}};var R=function(t){var r=t.importerKey,n=t.user,o=t.metadata,a=t.onData,i=t.onRecordsInitial,u=t.onRecordEdit,c=t.importerDisplay,l=void 0===c?"modal":c,f=t.onClose,p=t.theme,d=t.batchSize,y=t.sampleFileURL,m=t.downloadExampleButton,v=void 0===m||m,h=t.dynamicColumns,g=t.defaultLanguage,b=t.onError,_=t.customText,C=t.acceptedFileFormats,R=t.onFileUpload,S=t.columnWidth,k=t.onMatchColumns,O="usecsv-".concat(Math.round(1e8*Math.random()));return E().then((function(){var t=function(e,t){var r=document.getElementById("usecsv-importer-inline-wrapper");s("\n ".concat("modal"!==t&&r?"":".usecsv_container { position: fixed; top: 0px; bottom: 0; right: 0; left: 0; z-index: 100000; }","\n .usecsv_container iframe {\n width: 100%;\n height: 100%;\n position: absolute;\n border-width: 0;\n }\n .usecsv_container {\n overflow: hidden;\n overscroll-behavior-x: none;\n }\n")),document.body.insertAdjacentHTML("beforeend","<div id=".concat(e,' class="usecsv_container loading"></div>'));var n=document.createElement("iframe");n.setAttribute("src","https://app.usecsv.com/importer");var o=document.getElementById(e);return null==o||o.appendChild(n),"inline"===t&&r&&(null==r||r.appendChild(o)),n}(O,l),c=function(){var e;null===(e=document.getElementById(O))||void 0===e||e.remove()},m=function(){return f&&f(),c()},E=w({iframe:t,methods:e(e(e(e(e(e(e({closeIframe:c},a?{onData:function(e){return a(e,m)}}:{}),i?{onRecordsInitial:i}:{}),u?{onRecordEdit:u}:{}),f?{onClose:f}:{}),b?{onError:b}:{}),R?{onFileUpload:R}:{}),k?{onMatchColumns:k}:{})});return E.promise.then((function(e){var t;null===(t=document.getElementById(O))||void 0===t||t.classList.remove("loading"),e.setParams&&e.setParams({importerKey:r,user:n,metadata:o,importerDisplay:l,theme:p,batchSize:d,sampleFileURL:y,downloadExampleButton:v,dynamicColumns:h,defaultLanguage:g,customText:_,acceptedFileFormats:C,columnWidth:S})})),E}))};function S(e,t){return e(t={exports:{}},t.exports),t.exports
|
|
13
13
|
/*
|
|
14
14
|
object-assign
|
|
15
15
|
(c) Sindre Sorhus
|
|
16
16
|
@license MIT
|
|
17
|
-
*/}var k=Object.getOwnPropertySymbols,j=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable;var P=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var r,n,o=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),a=1;a<arguments.length;a++){for(var i in r=Object(arguments[a]))j.call(r,i)&&(o[i]=r[i]);if(k){n=k(r);for(var u=0;u<n.length;u++)O.call(r,n[u])&&(o[n[u]]=r[n[u]])}}return o},$=S((function(e,t){var r=60103,n=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var o=60109,a=60110,i=60112;t.Suspense=60113;var u=60115,c=60116;if("function"==typeof Symbol&&Symbol.for){var s=Symbol.for;r=s("react.element"),n=s("react.portal"),t.Fragment=s("react.fragment"),t.StrictMode=s("react.strict_mode"),t.Profiler=s("react.profiler"),o=s("react.provider"),a=s("react.context"),i=s("react.forward_ref"),t.Suspense=s("react.suspense"),u=s("react.memo"),c=s("react.lazy")}var l="function"==typeof Symbol&&Symbol.iterator;function f(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},d={};function y(e,t,r){this.props=e,this.context=t,this.refs=d,this.updater=r||p}function m(){}function v(e,t,r){this.props=e,this.context=t,this.refs=d,this.updater=r||p}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(f(85));this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},m.prototype=y.prototype;var h=v.prototype=new m;h.constructor=v,P(h,y.prototype),h.isPureReactComponent=!0;var g={current:null},b=Object.prototype.hasOwnProperty,_={key:!0,ref:!0,__self:!0,__source:!0};function w(e,t,n){var o,a={},i=null,u=null;if(null!=t)for(o in void 0!==t.ref&&(u=t.ref),void 0!==t.key&&(i=""+t.key),t)b.call(t,o)&&!_.hasOwnProperty(o)&&(a[o]=t[o]);var c=arguments.length-2;if(1===c)a.children=n;else if(1<c){for(var s=Array(c),l=0;l<c;l++)s[l]=arguments[l+2];a.children=s}if(e&&e.defaultProps)for(o in c=e.defaultProps)void 0===a[o]&&(a[o]=c[o]);return{$$typeof:r,type:e,key:i,ref:u,props:a,_owner:g.current}}function C(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}var E=/\/+/g;function R(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function S(e,t,o,a,i){var u=typeof e;"undefined"!==u&&"boolean"!==u||(e=null);var c=!1;if(null===e)c=!0;else switch(u){case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case r:case n:c=!0}}if(c)return i=i(c=e),e=""===a?"."+R(c,0):a,Array.isArray(i)?(o="",null!=e&&(o=e.replace(E,"$&/")+"/"),S(i,t,o,"",(function(e){return e}))):null!=i&&(C(i)&&(i=function(e,t){return{$$typeof:r,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(i,o+(!i.key||c&&c.key===i.key?"":(""+i.key).replace(E,"$&/")+"/")+e)),t.push(i)),1;if(c=0,a=""===a?".":a+":",Array.isArray(e))for(var s=0;s<e.length;s++){var p=a+R(u=e[s],s);c+=S(u,t,o,p,i)}else if(p=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=l&&e[l]||e["@@iterator"])?e:null}(e),"function"==typeof p)for(e=p.call(e),s=0;!(u=e.next()).done;)c+=S(u=u.value,t,o,p=a+R(u,s++),i);else if("object"===u)throw t=""+e,Error(f(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return c}function k(e,t,r){if(null==e)return e;var n=[],o=0;return S(e,n,"","",(function(e){return t.call(r,e,o++)})),n}function j(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var O={current:null};function $(){var e=O.current;if(null===e)throw Error(f(321));return e}var x={ReactCurrentDispatcher:O,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:g,IsSomeRendererActing:{current:!1},assign:P};t.Children={map:k,forEach:function(e,t,r){k(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return k(e,(function(){t++})),t},toArray:function(e){return k(e,(function(e){return e}))||[]},only:function(e){if(!C(e))throw Error(f(143));return e}},t.Component=y,t.PureComponent=v,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=x,t.cloneElement=function(e,t,n){if(null==e)throw Error(f(267,e));var o=P({},e.props),a=e.key,i=e.ref,u=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,u=g.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(s in t)b.call(t,s)&&!_.hasOwnProperty(s)&&(o[s]=void 0===t[s]&&void 0!==c?c[s]:t[s])}var s=arguments.length-2;if(1===s)o.children=n;else if(1<s){c=Array(s);for(var l=0;l<s;l++)c[l]=arguments[l+2];o.children=c}return{$$typeof:r,type:e.type,key:a,ref:i,props:o,_owner:u}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:a,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:o,_context:e},e.Consumer=e},t.createElement=w,t.createFactory=function(e){var t=w.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:i,render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:j}},t.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return $().useCallback(e,t)},t.useContext=function(e,t){return $().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return $().useEffect(e,t)},t.useImperativeHandle=function(e,t,r){return $().useImperativeHandle(e,t,r)},t.useLayoutEffect=function(e,t){return $().useLayoutEffect(e,t)},t.useMemo=function(e,t){return $().useMemo(e,t)},t.useReducer=function(e,t,r){return $().useReducer(e,t,r)},t.useRef=function(e){return $().useRef(e)},t.useState=function(e){return $().useState(e)},t.version="17.0.2"}));$.Fragment,$.StrictMode,$.Profiler,$.Suspense,$.Children,$.Component,$.PureComponent,$.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,$.cloneElement,$.createContext,$.createElement,$.createFactory,$.createRef,$.forwardRef,$.isValidElement,$.lazy,$.memo,$.useCallback,$.useContext,$.useDebugValue,$.useEffect,$.useImperativeHandle,$.useLayoutEffect,$.useMemo,$.useReducer,$.useRef,$.useState,$.version;var x=S((function(e,t){"production"!==process.env.NODE_ENV&&function(){var e=P,r=60103,n=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var o=60109,a=60110,i=60112;t.Suspense=60113;var u=60120,c=60115,s=60116,l=60121,f=60122,p=60117,d=60129,y=60131;if("function"==typeof Symbol&&Symbol.for){var m=Symbol.for;r=m("react.element"),n=m("react.portal"),t.Fragment=m("react.fragment"),t.StrictMode=m("react.strict_mode"),t.Profiler=m("react.profiler"),o=m("react.provider"),a=m("react.context"),i=m("react.forward_ref"),t.Suspense=m("react.suspense"),u=m("react.suspense_list"),c=m("react.memo"),s=m("react.lazy"),l=m("react.block"),f=m("react.server.block"),p=m("react.fundamental"),m("react.scope"),m("react.opaque.id"),d=m("react.debug_trace_mode"),m("react.offscreen"),y=m("react.legacy_hidden")}var v="function"==typeof Symbol&&Symbol.iterator,h="@@iterator";function g(e){if(null===e||"object"!=typeof e)return null;var t=v&&e[v]||e[h];return"function"==typeof t?t:null}var b={current:null},_={current:null},w={},C=null;function E(e){C=e}w.setExtraStackFrame=function(e){C=e},w.getCurrentStack=null,w.getStackAddendum=function(){var e="";C&&(e+=C);var t=w.getCurrentStack;return t&&(e+=t()||""),e};var R={ReactCurrentDispatcher:b,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:_,IsSomeRendererActing:{current:!1},assign:e};function S(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];j("warn",e,r)}function k(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];j("error",e,r)}function j(e,t,r){var n=R.ReactDebugCurrentFrame.getStackAddendum();""!==n&&(t+="%s",r=r.concat([n]));var o=r.map((function(e){return""+e}));o.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,o)}R.ReactDebugCurrentFrame=w;var O={};function $(e,t){var r=e.constructor,n=r&&(r.displayName||r.name)||"ReactClass",o=n+"."+t;O[o]||(k("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,n),O[o]=!0)}var x={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,r){$(e,"forceUpdate")},enqueueReplaceState:function(e,t,r,n){$(e,"replaceState")},enqueueSetState:function(e,t,r,n){$(e,"setState")}},F={};function I(e,t,r){this.props=e,this.context=t,this.refs=F,this.updater=r||x}Object.freeze(F),I.prototype.isReactComponent={},I.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},I.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var D={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},N=function(e,t){Object.defineProperty(I.prototype,e,{get:function(){S("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})};for(var T in D)D.hasOwnProperty(T)&&N(T,D[T]);function A(){}function M(e,t,r){this.props=e,this.context=t,this.refs=F,this.updater=r||x}A.prototype=I.prototype;var L=M.prototype=new A;function U(e){return e.displayName||"Context"}function V(e){if(null==e)return null;if("number"==typeof e.tag&&k("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case t.Fragment:return"Fragment";case n:return"Portal";case t.Profiler:return"Profiler";case t.StrictMode:return"StrictMode";case t.Suspense:return"Suspense";case u:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case a:return U(e)+".Consumer";case o:return U(e._context)+".Provider";case i:return d=e,y=e.render,m="ForwardRef",v=y.displayName||y.name||"",d.displayName||(""!==v?m+"("+v+")":m);case c:return V(e.type);case l:return V(e._render);case s:var r=e,f=r._payload,p=r._init;try{return V(p(f))}catch(e){return null}}var d,y,m,v;return null}L.constructor=M,e(L,I.prototype),L.isPureReactComponent=!0;var z,q,B,W=Object.prototype.hasOwnProperty,Y={key:!0,ref:!0,__self:!0,__source:!0};function H(e){if(W.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}function K(e){if(W.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}B={};var J=function(e,t,n,o,a,i,u){var c={$$typeof:r,type:e,key:t,ref:n,props:u,_owner:i,_store:{}};return Object.defineProperty(c._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(c,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(c,"_source",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.freeze&&(Object.freeze(c.props),Object.freeze(c)),c};function X(e,t,r){var n,o={},a=null,i=null,u=null,c=null;if(null!=t)for(n in H(t)&&(i=t.ref,function(e){if("string"==typeof e.ref&&_.current&&e.__self&&_.current.stateNode!==e.__self){var t=V(_.current.type);B[t]||(k('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',t,e.ref),B[t]=!0)}}(t)),K(t)&&(a=""+t.key),u=void 0===t.__self?null:t.__self,c=void 0===t.__source?null:t.__source,t)W.call(t,n)&&!Y.hasOwnProperty(n)&&(o[n]=t[n]);var s=arguments.length-2;if(1===s)o.children=r;else if(s>1){for(var l=Array(s),f=0;f<s;f++)l[f]=arguments[f+2];Object.freeze&&Object.freeze(l),o.children=l}if(e&&e.defaultProps){var p=e.defaultProps;for(n in p)void 0===o[n]&&(o[n]=p[n])}if(a||i){var d="function"==typeof e?e.displayName||e.name||"Unknown":e;a&&function(e,t){var r=function(){z||(z=!0,k("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}(o,d),i&&function(e,t){var r=function(){q||(q=!0,k("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};r.isReactWarning=!0,Object.defineProperty(e,"ref",{get:r,configurable:!0})}(o,d)}return J(e,a,i,u,c,_.current,o)}function G(t,r,n){if(null==t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var o,a,i=e({},t.props),u=t.key,c=t.ref,s=t._self,l=t._source,f=t._owner;if(null!=r)for(o in H(r)&&(c=r.ref,f=_.current),K(r)&&(u=""+r.key),t.type&&t.type.defaultProps&&(a=t.type.defaultProps),r)W.call(r,o)&&!Y.hasOwnProperty(o)&&(void 0===r[o]&&void 0!==a?i[o]=a[o]:i[o]=r[o]);var p=arguments.length-2;if(1===p)i.children=n;else if(p>1){for(var d=Array(p),y=0;y<p;y++)d[y]=arguments[y+2];i.children=d}return J(t.type,u,c,s,l,f,i)}function Q(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}var Z=".",ee=":";var te=!1,re=/\/+/g;function ne(e){return e.replace(re,"$&/")}function oe(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(r=""+e.key,n={"=":"=0",":":"=2"},"$"+r.replace(/[=:]/g,(function(e){return n[e]}))):t.toString(36);var r,n}function ae(e,t,o,a,i){var u=typeof e;"undefined"!==u&&"boolean"!==u||(e=null);var c,s,l,f=!1;if(null===e)f=!0;else switch(u){case"string":case"number":f=!0;break;case"object":switch(e.$$typeof){case r:case n:f=!0}}if(f){var p=e,d=i(p),y=""===a?Z+oe(p,0):a;if(Array.isArray(d)){var m="";null!=y&&(m=ne(y)+"/"),ae(d,t,m,"",(function(e){return e}))}else null!=d&&(Q(d)&&(c=d,s=o+(!d.key||p&&p.key===d.key?"":ne(""+d.key)+"/")+y,d=J(c.type,s,c.ref,c._self,c._source,c._owner,c.props)),t.push(d));return 1}var v=0,h=""===a?Z:a+ee;if(Array.isArray(e))for(var b=0;b<e.length;b++)v+=ae(l=e[b],t,o,h+oe(l,b),i);else{var _=g(e);if("function"==typeof _){var w=e;_===w.entries&&(te||S("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),te=!0);for(var C,E=_.call(w),R=0;!(C=E.next()).done;)v+=ae(l=C.value,t,o,h+oe(l,R++),i)}else if("object"===u){var k=""+e;throw Error("Objects are not valid as a React child (found: "+("[object Object]"===k?"object with keys {"+Object.keys(e).join(", ")+"}":k)+"). If you meant to render a collection of children, use an array instead.")}}return v}function ie(e,t,r){if(null==e)return e;var n=[],o=0;return ae(e,n,"","",(function(e){return t.call(r,e,o++)})),n}var ue=-1,ce=0,se=1,le=2;function fe(e){if(e._status===ue){var t=(0,e._result)(),r=e;r._status=ce,r._result=t,t.then((function(t){if(e._status===ce){var r=t.default;void 0===r&&k("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",t);var n=e;n._status=se,n._result=r}}),(function(t){if(e._status===ce){var r=e;r._status=le,r._result=t}}))}if(e._status===se)return e._result;throw e._result}var pe=!1;function de(e){return"string"==typeof e||"function"==typeof e||(!(e!==t.Fragment&&e!==t.Profiler&&e!==d&&e!==t.StrictMode&&e!==t.Suspense&&e!==u&&e!==y&&!pe)||"object"==typeof e&&null!==e&&(e.$$typeof===s||e.$$typeof===c||e.$$typeof===o||e.$$typeof===a||e.$$typeof===i||e.$$typeof===p||e.$$typeof===l||e[0]===f))}function ye(){var e=b.current;if(null===e)throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.");return e}var me,ve,he,ge,be,_e,we,Ce=0;function Ee(){}Ee.__reactDisabledLog=!0;var Re,Se=R.ReactCurrentDispatcher;function ke(e,t,r){if(void 0===Re)try{throw Error()}catch(e){var n=e.stack.trim().match(/\n( *(at )?)/);Re=n&&n[1]||""}return"\n"+Re+e}var je,Oe=!1,Pe="function"==typeof WeakMap?WeakMap:Map;function $e(t,r){if(!t||Oe)return"";var n,o=je.get(t);if(void 0!==o)return o;Oe=!0;var a,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,a=Se.current,Se.current=null,function(){if(0===Ce){me=console.log,ve=console.info,he=console.warn,ge=console.error,be=console.group,_e=console.groupCollapsed,we=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Ee,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Ce++}();try{if(r){var u=function(){throw Error()};if(Object.defineProperty(u.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(u,[])}catch(e){n=e}Reflect.construct(t,[],u)}else{try{u.call()}catch(e){n=e}t.call(u.prototype)}}else{try{throw Error()}catch(e){n=e}t()}}catch(e){if(e&&n&&"string"==typeof e.stack){for(var c=e.stack.split("\n"),s=n.stack.split("\n"),l=c.length-1,f=s.length-1;l>=1&&f>=0&&c[l]!==s[f];)f--;for(;l>=1&&f>=0;l--,f--)if(c[l]!==s[f]){if(1!==l||1!==f)do{if(l--,--f<0||c[l]!==s[f]){var p="\n"+c[l].replace(" at new "," at ");return"function"==typeof t&&je.set(t,p),p}}while(l>=1&&f>=0);break}}}finally{Oe=!1,Se.current=a,function(){if(0==--Ce){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:e({},t,{value:me}),info:e({},t,{value:ve}),warn:e({},t,{value:he}),error:e({},t,{value:ge}),group:e({},t,{value:be}),groupCollapsed:e({},t,{value:_e}),groupEnd:e({},t,{value:we})})}Ce<0&&k("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var d=t?t.displayName||t.name:"",y=d?ke(d):"";return"function"==typeof t&&je.set(t,y),y}function xe(e,t,r){return $e(e,!1)}function Fe(e,r,n){if(null==e)return"";if("function"==typeof e)return $e(e,function(e){var t=e.prototype;return!(!t||!t.isReactComponent)}(e));if("string"==typeof e)return ke(e);switch(e){case t.Suspense:return ke("Suspense");case u:return ke("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case i:return xe(e.render);case c:return Fe(e.type,r,n);case l:return xe(e._render);case s:var o=e,a=o._payload,f=o._init;try{return Fe(f(a),r,n)}catch(e){}}return""}je=new Pe;var Ie,De={},Ne=R.ReactDebugCurrentFrame;function Te(e){if(e){var t=e._owner,r=Fe(e.type,e._source,t?t.type:null);Ne.setExtraStackFrame(r)}else Ne.setExtraStackFrame(null)}function Ae(e){if(e){var t=e._owner;E(Fe(e.type,e._source,t?t.type:null))}else E(null)}function Me(){if(_.current){var e=V(_.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}Ie=!1;var Le={};function Ue(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var r=function(e){var t=Me();if(!t){var r="string"==typeof e?e:e.displayName||e.name;r&&(t="\n\nCheck the top-level render call using <"+r+">.")}return t}(t);if(!Le[r]){Le[r]=!0;var n="";e&&e._owner&&e._owner!==_.current&&(n=" It was passed a child from "+V(e._owner.type)+"."),Ae(e),k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',r,n),Ae(null)}}}function Ve(e,t){if("object"==typeof e)if(Array.isArray(e))for(var r=0;r<e.length;r++){var n=e[r];Q(n)&&Ue(n,t)}else if(Q(e))e._store&&(e._store.validated=!0);else if(e){var o=g(e);if("function"==typeof o&&o!==e.entries)for(var a,i=o.call(e);!(a=i.next()).done;)Q(a.value)&&Ue(a.value,t)}}function ze(e){var t,r=e.type;if(null!=r&&"string"!=typeof r){if("function"==typeof r)t=r.propTypes;else{if("object"!=typeof r||r.$$typeof!==i&&r.$$typeof!==c)return;t=r.propTypes}if(t){var n=V(r);!function(e,t,r,n,o){var a=Function.call.bind(Object.prototype.hasOwnProperty);for(var i in e)if(a(e,i)){var u=void 0;try{if("function"!=typeof e[i]){var c=Error((n||"React class")+": "+r+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw c.name="Invariant Violation",c}u=e[i](t,i,n,r,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){u=e}!u||u instanceof Error||(Te(o),k("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",r,i,typeof u),Te(null)),u instanceof Error&&!(u.message in De)&&(De[u.message]=!0,Te(o),k("Failed %s type: %s",r,u.message),Te(null))}}(t,e.props,"prop",n,e)}else if(void 0!==r.PropTypes&&!Ie){Ie=!0,k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",V(r)||"Unknown")}"function"!=typeof r.getDefaultProps||r.getDefaultProps.isReactClassApproved||k("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function qe(e,n,o){var a,i,u=de(e);if(!u){var c="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(c+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var s,l=null!=(a=n)&&void 0!==(i=a.__source)?"\n\nCheck your code at "+i.fileName.replace(/^.*[\\\/]/,"")+":"+i.lineNumber+".":"";c+=l||Me(),null===e?s="null":Array.isArray(e)?s="array":void 0!==e&&e.$$typeof===r?(s="<"+(V(e.type)||"Unknown")+" />",c=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,k("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,c)}var f=X.apply(this,arguments);if(null==f)return f;if(u)for(var p=2;p<arguments.length;p++)Ve(arguments[p],e);return e===t.Fragment?function(e){for(var t=Object.keys(e.props),r=0;r<t.length;r++){var n=t[r];if("children"!==n&&"key"!==n){Ae(e),k("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),Ae(null);break}}null!==e.ref&&(Ae(e),k("Invalid attribute `ref` supplied to `React.Fragment`."),Ae(null))}(f):ze(f),f}var Be=!1;try{var We=Object.freeze({});new Map([[We,null]]),new Set([We])}catch(e){}var Ye=qe,He=function(e,t,r){for(var n=G.apply(this,arguments),o=2;o<arguments.length;o++)Ve(arguments[o],n.type);return ze(n),n},Ke=function(e){var t=qe.bind(null,e);return t.type=e,Be||(Be=!0,S("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(t,"type",{enumerable:!1,get:function(){return S("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t},Je={map:ie,forEach:function(e,t,r){ie(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return ie(e,(function(){t++})),t},toArray:function(e){return ie(e,(function(e){return e}))||[]},only:function(e){if(!Q(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};t.Children=Je,t.Component=I,t.PureComponent=M,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=R,t.cloneElement=He,t.createContext=function(e,t){void 0===t?t=null:null!==t&&"function"!=typeof t&&k("createContext: Expected the optional second argument to be a function. Instead received: %s",t);var r={$$typeof:a,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null};r.Provider={$$typeof:o,_context:r};var n=!1,i=!1,u=!1,c={$$typeof:a,_context:r,_calculateChangedBits:r._calculateChangedBits};return Object.defineProperties(c,{Provider:{get:function(){return i||(i=!0,k("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),r.Provider},set:function(e){r.Provider=e}},_currentValue:{get:function(){return r._currentValue},set:function(e){r._currentValue=e}},_currentValue2:{get:function(){return r._currentValue2},set:function(e){r._currentValue2=e}},_threadCount:{get:function(){return r._threadCount},set:function(e){r._threadCount=e}},Consumer:{get:function(){return n||(n=!0,k("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),r.Consumer}},displayName:{get:function(){return r.displayName},set:function(e){u||(S("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",e),u=!0)}}}),r.Consumer=c,r._currentRenderer=null,r._currentRenderer2=null,r},t.createElement=Ye,t.createFactory=Ke,t.createRef=function(){var e={current:null};return Object.seal(e),e},t.forwardRef=function(e){null!=e&&e.$$typeof===c?k("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?k("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&k("forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=e&&(null==e.defaultProps&&null==e.propTypes||k("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"));var t,r={$$typeof:i,render:e};return Object.defineProperty(r,"displayName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(r){t=r,null==e.displayName&&(e.displayName=r)}}),r},t.isValidElement=Q,t.lazy=function(e){var t,r,n={$$typeof:s,_payload:{_status:-1,_result:e},_init:fe};return Object.defineProperties(n,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){k("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),t=e,Object.defineProperty(n,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return r},set:function(e){k("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),r=e,Object.defineProperty(n,"propTypes",{enumerable:!0})}}}),n},t.memo=function(e,t){de(e)||k("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e);var r,n={$$typeof:c,type:e,compare:void 0===t?null:t};return Object.defineProperty(n,"displayName",{enumerable:!1,configurable:!0,get:function(){return r},set:function(t){r=t,null==e.displayName&&(e.displayName=t)}}),n},t.useCallback=function(e,t){return ye().useCallback(e,t)},t.useContext=function(e,t){var r=ye();if(void 0!==t&&k("useContext() second argument is reserved for future use in React. Passing it is not supported. You passed: %s.%s",t,"number"==typeof t&&Array.isArray(arguments[2])?"\n\nDid you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://reactjs.org/link/rules-of-hooks":""),void 0!==e._context){var n=e._context;n.Consumer===e?k("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):n.Provider===e&&k("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return r.useContext(e,t)},t.useDebugValue=function(e,t){return ye().useDebugValue(e,t)},t.useEffect=function(e,t){return ye().useEffect(e,t)},t.useImperativeHandle=function(e,t,r){return ye().useImperativeHandle(e,t,r)},t.useLayoutEffect=function(e,t){return ye().useLayoutEffect(e,t)},t.useMemo=function(e,t){return ye().useMemo(e,t)},t.useReducer=function(e,t,r){return ye().useReducer(e,t,r)},t.useRef=function(e){return ye().useRef(e)},t.useState=function(e){return ye().useState(e)},t.version="17.0.2"}()}));x.Fragment,x.StrictMode,x.Profiler,x.Suspense,x.Children,x.Component,x.PureComponent,x.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,x.cloneElement,x.createContext,x.createElement,x.createFactory,x.createRef,x.forwardRef,x.isValidElement,x.lazy,x.memo,x.useCallback,x.useContext,x.useDebugValue,x.useEffect,x.useImperativeHandle,x.useLayoutEffect,x.useMemo,x.useReducer,x.useRef,x.useState,x.version;var F=S((function(e){"production"===process.env.NODE_ENV?e.exports=$:e.exports=x}));return function(e){var t=e.children,r=e.render,n=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["children","render"]);return F.createElement(F.Fragment,null,r?F.createElement(F.Fragment,null,r((function(){return R(n)}))):F.createElement("button",{type:"button",id:"usecsv-button",style:{backgroundColor:"#FFF",color:"#000",border:"2px solid #000",borderRadius:"6px",padding:"10px 15px",textAlign:"center",fontSize:"16px",cursor:"pointer"},onClick:function(){return R(n)}},t))}}));
|
|
17
|
+
*/}var k=Object.getOwnPropertySymbols,O=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable;var P=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var r,n,o=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),a=1;a<arguments.length;a++){for(var i in r=Object(arguments[a]))O.call(r,i)&&(o[i]=r[i]);if(k){n=k(r);for(var u=0;u<n.length;u++)j.call(r,n[u])&&(o[n[u]]=r[n[u]])}}return o},$=S((function(e,t){var r=60103,n=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var o=60109,a=60110,i=60112;t.Suspense=60113;var u=60115,c=60116;if("function"==typeof Symbol&&Symbol.for){var s=Symbol.for;r=s("react.element"),n=s("react.portal"),t.Fragment=s("react.fragment"),t.StrictMode=s("react.strict_mode"),t.Profiler=s("react.profiler"),o=s("react.provider"),a=s("react.context"),i=s("react.forward_ref"),t.Suspense=s("react.suspense"),u=s("react.memo"),c=s("react.lazy")}var l="function"==typeof Symbol&&Symbol.iterator;function f(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},d={};function y(e,t,r){this.props=e,this.context=t,this.refs=d,this.updater=r||p}function m(){}function v(e,t,r){this.props=e,this.context=t,this.refs=d,this.updater=r||p}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(f(85));this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},m.prototype=y.prototype;var h=v.prototype=new m;h.constructor=v,P(h,y.prototype),h.isPureReactComponent=!0;var g={current:null},b=Object.prototype.hasOwnProperty,_={key:!0,ref:!0,__self:!0,__source:!0};function w(e,t,n){var o,a={},i=null,u=null;if(null!=t)for(o in void 0!==t.ref&&(u=t.ref),void 0!==t.key&&(i=""+t.key),t)b.call(t,o)&&!_.hasOwnProperty(o)&&(a[o]=t[o]);var c=arguments.length-2;if(1===c)a.children=n;else if(1<c){for(var s=Array(c),l=0;l<c;l++)s[l]=arguments[l+2];a.children=s}if(e&&e.defaultProps)for(o in c=e.defaultProps)void 0===a[o]&&(a[o]=c[o]);return{$$typeof:r,type:e,key:i,ref:u,props:a,_owner:g.current}}function C(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}var E=/\/+/g;function R(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function S(e,t,o,a,i){var u=typeof e;"undefined"!==u&&"boolean"!==u||(e=null);var c=!1;if(null===e)c=!0;else switch(u){case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case r:case n:c=!0}}if(c)return i=i(c=e),e=""===a?"."+R(c,0):a,Array.isArray(i)?(o="",null!=e&&(o=e.replace(E,"$&/")+"/"),S(i,t,o,"",(function(e){return e}))):null!=i&&(C(i)&&(i=function(e,t){return{$$typeof:r,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(i,o+(!i.key||c&&c.key===i.key?"":(""+i.key).replace(E,"$&/")+"/")+e)),t.push(i)),1;if(c=0,a=""===a?".":a+":",Array.isArray(e))for(var s=0;s<e.length;s++){var p=a+R(u=e[s],s);c+=S(u,t,o,p,i)}else if(p=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=l&&e[l]||e["@@iterator"])?e:null}(e),"function"==typeof p)for(e=p.call(e),s=0;!(u=e.next()).done;)c+=S(u=u.value,t,o,p=a+R(u,s++),i);else if("object"===u)throw t=""+e,Error(f(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return c}function k(e,t,r){if(null==e)return e;var n=[],o=0;return S(e,n,"","",(function(e){return t.call(r,e,o++)})),n}function O(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var j={current:null};function $(){var e=j.current;if(null===e)throw Error(f(321));return e}var x={ReactCurrentDispatcher:j,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:g,IsSomeRendererActing:{current:!1},assign:P};t.Children={map:k,forEach:function(e,t,r){k(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return k(e,(function(){t++})),t},toArray:function(e){return k(e,(function(e){return e}))||[]},only:function(e){if(!C(e))throw Error(f(143));return e}},t.Component=y,t.PureComponent=v,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=x,t.cloneElement=function(e,t,n){if(null==e)throw Error(f(267,e));var o=P({},e.props),a=e.key,i=e.ref,u=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,u=g.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(s in t)b.call(t,s)&&!_.hasOwnProperty(s)&&(o[s]=void 0===t[s]&&void 0!==c?c[s]:t[s])}var s=arguments.length-2;if(1===s)o.children=n;else if(1<s){c=Array(s);for(var l=0;l<s;l++)c[l]=arguments[l+2];o.children=c}return{$$typeof:r,type:e.type,key:a,ref:i,props:o,_owner:u}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:a,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:o,_context:e},e.Consumer=e},t.createElement=w,t.createFactory=function(e){var t=w.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:i,render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:O}},t.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return $().useCallback(e,t)},t.useContext=function(e,t){return $().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return $().useEffect(e,t)},t.useImperativeHandle=function(e,t,r){return $().useImperativeHandle(e,t,r)},t.useLayoutEffect=function(e,t){return $().useLayoutEffect(e,t)},t.useMemo=function(e,t){return $().useMemo(e,t)},t.useReducer=function(e,t,r){return $().useReducer(e,t,r)},t.useRef=function(e){return $().useRef(e)},t.useState=function(e){return $().useState(e)},t.version="17.0.2"}));$.Fragment,$.StrictMode,$.Profiler,$.Suspense,$.Children,$.Component,$.PureComponent,$.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,$.cloneElement,$.createContext,$.createElement,$.createFactory,$.createRef,$.forwardRef,$.isValidElement,$.lazy,$.memo,$.useCallback,$.useContext,$.useDebugValue,$.useEffect,$.useImperativeHandle,$.useLayoutEffect,$.useMemo,$.useReducer,$.useRef,$.useState,$.version;var x=S((function(e,t){"production"!==process.env.NODE_ENV&&function(){var e=P,r=60103,n=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var o=60109,a=60110,i=60112;t.Suspense=60113;var u=60120,c=60115,s=60116,l=60121,f=60122,p=60117,d=60129,y=60131;if("function"==typeof Symbol&&Symbol.for){var m=Symbol.for;r=m("react.element"),n=m("react.portal"),t.Fragment=m("react.fragment"),t.StrictMode=m("react.strict_mode"),t.Profiler=m("react.profiler"),o=m("react.provider"),a=m("react.context"),i=m("react.forward_ref"),t.Suspense=m("react.suspense"),u=m("react.suspense_list"),c=m("react.memo"),s=m("react.lazy"),l=m("react.block"),f=m("react.server.block"),p=m("react.fundamental"),m("react.scope"),m("react.opaque.id"),d=m("react.debug_trace_mode"),m("react.offscreen"),y=m("react.legacy_hidden")}var v="function"==typeof Symbol&&Symbol.iterator,h="@@iterator";function g(e){if(null===e||"object"!=typeof e)return null;var t=v&&e[v]||e[h];return"function"==typeof t?t:null}var b={current:null},_={current:null},w={},C=null;function E(e){C=e}w.setExtraStackFrame=function(e){C=e},w.getCurrentStack=null,w.getStackAddendum=function(){var e="";C&&(e+=C);var t=w.getCurrentStack;return t&&(e+=t()||""),e};var R={ReactCurrentDispatcher:b,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:_,IsSomeRendererActing:{current:!1},assign:e};function S(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];O("warn",e,r)}function k(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];O("error",e,r)}function O(e,t,r){var n=R.ReactDebugCurrentFrame.getStackAddendum();""!==n&&(t+="%s",r=r.concat([n]));var o=r.map((function(e){return""+e}));o.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,o)}R.ReactDebugCurrentFrame=w;var j={};function $(e,t){var r=e.constructor,n=r&&(r.displayName||r.name)||"ReactClass",o=n+"."+t;j[o]||(k("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,n),j[o]=!0)}var x={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,r){$(e,"forceUpdate")},enqueueReplaceState:function(e,t,r,n){$(e,"replaceState")},enqueueSetState:function(e,t,r,n){$(e,"setState")}},F={};function I(e,t,r){this.props=e,this.context=t,this.refs=F,this.updater=r||x}Object.freeze(F),I.prototype.isReactComponent={},I.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},I.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var D={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},N=function(e,t){Object.defineProperty(I.prototype,e,{get:function(){S("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})};for(var T in D)D.hasOwnProperty(T)&&N(T,D[T]);function A(){}function M(e,t,r){this.props=e,this.context=t,this.refs=F,this.updater=r||x}A.prototype=I.prototype;var L=M.prototype=new A;function U(e){return e.displayName||"Context"}function V(e){if(null==e)return null;if("number"==typeof e.tag&&k("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case t.Fragment:return"Fragment";case n:return"Portal";case t.Profiler:return"Profiler";case t.StrictMode:return"StrictMode";case t.Suspense:return"Suspense";case u:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case a:return U(e)+".Consumer";case o:return U(e._context)+".Provider";case i:return d=e,y=e.render,m="ForwardRef",v=y.displayName||y.name||"",d.displayName||(""!==v?m+"("+v+")":m);case c:return V(e.type);case l:return V(e._render);case s:var r=e,f=r._payload,p=r._init;try{return V(p(f))}catch(e){return null}}var d,y,m,v;return null}L.constructor=M,e(L,I.prototype),L.isPureReactComponent=!0;var z,q,B,W=Object.prototype.hasOwnProperty,Y={key:!0,ref:!0,__self:!0,__source:!0};function H(e){if(W.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}function K(e){if(W.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}B={};var J=function(e,t,n,o,a,i,u){var c={$$typeof:r,type:e,key:t,ref:n,props:u,_owner:i,_store:{}};return Object.defineProperty(c._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(c,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(c,"_source",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.freeze&&(Object.freeze(c.props),Object.freeze(c)),c};function X(e,t,r){var n,o={},a=null,i=null,u=null,c=null;if(null!=t)for(n in H(t)&&(i=t.ref,function(e){if("string"==typeof e.ref&&_.current&&e.__self&&_.current.stateNode!==e.__self){var t=V(_.current.type);B[t]||(k('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',t,e.ref),B[t]=!0)}}(t)),K(t)&&(a=""+t.key),u=void 0===t.__self?null:t.__self,c=void 0===t.__source?null:t.__source,t)W.call(t,n)&&!Y.hasOwnProperty(n)&&(o[n]=t[n]);var s=arguments.length-2;if(1===s)o.children=r;else if(s>1){for(var l=Array(s),f=0;f<s;f++)l[f]=arguments[f+2];Object.freeze&&Object.freeze(l),o.children=l}if(e&&e.defaultProps){var p=e.defaultProps;for(n in p)void 0===o[n]&&(o[n]=p[n])}if(a||i){var d="function"==typeof e?e.displayName||e.name||"Unknown":e;a&&function(e,t){var r=function(){z||(z=!0,k("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}(o,d),i&&function(e,t){var r=function(){q||(q=!0,k("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};r.isReactWarning=!0,Object.defineProperty(e,"ref",{get:r,configurable:!0})}(o,d)}return J(e,a,i,u,c,_.current,o)}function G(t,r,n){if(null==t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var o,a,i=e({},t.props),u=t.key,c=t.ref,s=t._self,l=t._source,f=t._owner;if(null!=r)for(o in H(r)&&(c=r.ref,f=_.current),K(r)&&(u=""+r.key),t.type&&t.type.defaultProps&&(a=t.type.defaultProps),r)W.call(r,o)&&!Y.hasOwnProperty(o)&&(void 0===r[o]&&void 0!==a?i[o]=a[o]:i[o]=r[o]);var p=arguments.length-2;if(1===p)i.children=n;else if(p>1){for(var d=Array(p),y=0;y<p;y++)d[y]=arguments[y+2];i.children=d}return J(t.type,u,c,s,l,f,i)}function Q(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}var Z=".",ee=":";var te=!1,re=/\/+/g;function ne(e){return e.replace(re,"$&/")}function oe(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(r=""+e.key,n={"=":"=0",":":"=2"},"$"+r.replace(/[=:]/g,(function(e){return n[e]}))):t.toString(36);var r,n}function ae(e,t,o,a,i){var u=typeof e;"undefined"!==u&&"boolean"!==u||(e=null);var c,s,l,f=!1;if(null===e)f=!0;else switch(u){case"string":case"number":f=!0;break;case"object":switch(e.$$typeof){case r:case n:f=!0}}if(f){var p=e,d=i(p),y=""===a?Z+oe(p,0):a;if(Array.isArray(d)){var m="";null!=y&&(m=ne(y)+"/"),ae(d,t,m,"",(function(e){return e}))}else null!=d&&(Q(d)&&(c=d,s=o+(!d.key||p&&p.key===d.key?"":ne(""+d.key)+"/")+y,d=J(c.type,s,c.ref,c._self,c._source,c._owner,c.props)),t.push(d));return 1}var v=0,h=""===a?Z:a+ee;if(Array.isArray(e))for(var b=0;b<e.length;b++)v+=ae(l=e[b],t,o,h+oe(l,b),i);else{var _=g(e);if("function"==typeof _){var w=e;_===w.entries&&(te||S("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),te=!0);for(var C,E=_.call(w),R=0;!(C=E.next()).done;)v+=ae(l=C.value,t,o,h+oe(l,R++),i)}else if("object"===u){var k=""+e;throw Error("Objects are not valid as a React child (found: "+("[object Object]"===k?"object with keys {"+Object.keys(e).join(", ")+"}":k)+"). If you meant to render a collection of children, use an array instead.")}}return v}function ie(e,t,r){if(null==e)return e;var n=[],o=0;return ae(e,n,"","",(function(e){return t.call(r,e,o++)})),n}var ue=-1,ce=0,se=1,le=2;function fe(e){if(e._status===ue){var t=(0,e._result)(),r=e;r._status=ce,r._result=t,t.then((function(t){if(e._status===ce){var r=t.default;void 0===r&&k("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",t);var n=e;n._status=se,n._result=r}}),(function(t){if(e._status===ce){var r=e;r._status=le,r._result=t}}))}if(e._status===se)return e._result;throw e._result}var pe=!1;function de(e){return"string"==typeof e||"function"==typeof e||(!(e!==t.Fragment&&e!==t.Profiler&&e!==d&&e!==t.StrictMode&&e!==t.Suspense&&e!==u&&e!==y&&!pe)||"object"==typeof e&&null!==e&&(e.$$typeof===s||e.$$typeof===c||e.$$typeof===o||e.$$typeof===a||e.$$typeof===i||e.$$typeof===p||e.$$typeof===l||e[0]===f))}function ye(){var e=b.current;if(null===e)throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.");return e}var me,ve,he,ge,be,_e,we,Ce=0;function Ee(){}Ee.__reactDisabledLog=!0;var Re,Se=R.ReactCurrentDispatcher;function ke(e,t,r){if(void 0===Re)try{throw Error()}catch(e){var n=e.stack.trim().match(/\n( *(at )?)/);Re=n&&n[1]||""}return"\n"+Re+e}var Oe,je=!1,Pe="function"==typeof WeakMap?WeakMap:Map;function $e(t,r){if(!t||je)return"";var n,o=Oe.get(t);if(void 0!==o)return o;je=!0;var a,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,a=Se.current,Se.current=null,function(){if(0===Ce){me=console.log,ve=console.info,he=console.warn,ge=console.error,be=console.group,_e=console.groupCollapsed,we=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Ee,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Ce++}();try{if(r){var u=function(){throw Error()};if(Object.defineProperty(u.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(u,[])}catch(e){n=e}Reflect.construct(t,[],u)}else{try{u.call()}catch(e){n=e}t.call(u.prototype)}}else{try{throw Error()}catch(e){n=e}t()}}catch(e){if(e&&n&&"string"==typeof e.stack){for(var c=e.stack.split("\n"),s=n.stack.split("\n"),l=c.length-1,f=s.length-1;l>=1&&f>=0&&c[l]!==s[f];)f--;for(;l>=1&&f>=0;l--,f--)if(c[l]!==s[f]){if(1!==l||1!==f)do{if(l--,--f<0||c[l]!==s[f]){var p="\n"+c[l].replace(" at new "," at ");return"function"==typeof t&&Oe.set(t,p),p}}while(l>=1&&f>=0);break}}}finally{je=!1,Se.current=a,function(){if(0==--Ce){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:e({},t,{value:me}),info:e({},t,{value:ve}),warn:e({},t,{value:he}),error:e({},t,{value:ge}),group:e({},t,{value:be}),groupCollapsed:e({},t,{value:_e}),groupEnd:e({},t,{value:we})})}Ce<0&&k("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var d=t?t.displayName||t.name:"",y=d?ke(d):"";return"function"==typeof t&&Oe.set(t,y),y}function xe(e,t,r){return $e(e,!1)}function Fe(e,r,n){if(null==e)return"";if("function"==typeof e)return $e(e,function(e){var t=e.prototype;return!(!t||!t.isReactComponent)}(e));if("string"==typeof e)return ke(e);switch(e){case t.Suspense:return ke("Suspense");case u:return ke("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case i:return xe(e.render);case c:return Fe(e.type,r,n);case l:return xe(e._render);case s:var o=e,a=o._payload,f=o._init;try{return Fe(f(a),r,n)}catch(e){}}return""}Oe=new Pe;var Ie,De={},Ne=R.ReactDebugCurrentFrame;function Te(e){if(e){var t=e._owner,r=Fe(e.type,e._source,t?t.type:null);Ne.setExtraStackFrame(r)}else Ne.setExtraStackFrame(null)}function Ae(e){if(e){var t=e._owner;E(Fe(e.type,e._source,t?t.type:null))}else E(null)}function Me(){if(_.current){var e=V(_.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}Ie=!1;var Le={};function Ue(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var r=function(e){var t=Me();if(!t){var r="string"==typeof e?e:e.displayName||e.name;r&&(t="\n\nCheck the top-level render call using <"+r+">.")}return t}(t);if(!Le[r]){Le[r]=!0;var n="";e&&e._owner&&e._owner!==_.current&&(n=" It was passed a child from "+V(e._owner.type)+"."),Ae(e),k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',r,n),Ae(null)}}}function Ve(e,t){if("object"==typeof e)if(Array.isArray(e))for(var r=0;r<e.length;r++){var n=e[r];Q(n)&&Ue(n,t)}else if(Q(e))e._store&&(e._store.validated=!0);else if(e){var o=g(e);if("function"==typeof o&&o!==e.entries)for(var a,i=o.call(e);!(a=i.next()).done;)Q(a.value)&&Ue(a.value,t)}}function ze(e){var t,r=e.type;if(null!=r&&"string"!=typeof r){if("function"==typeof r)t=r.propTypes;else{if("object"!=typeof r||r.$$typeof!==i&&r.$$typeof!==c)return;t=r.propTypes}if(t){var n=V(r);!function(e,t,r,n,o){var a=Function.call.bind(Object.prototype.hasOwnProperty);for(var i in e)if(a(e,i)){var u=void 0;try{if("function"!=typeof e[i]){var c=Error((n||"React class")+": "+r+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw c.name="Invariant Violation",c}u=e[i](t,i,n,r,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){u=e}!u||u instanceof Error||(Te(o),k("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",r,i,typeof u),Te(null)),u instanceof Error&&!(u.message in De)&&(De[u.message]=!0,Te(o),k("Failed %s type: %s",r,u.message),Te(null))}}(t,e.props,"prop",n,e)}else if(void 0!==r.PropTypes&&!Ie){Ie=!0,k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",V(r)||"Unknown")}"function"!=typeof r.getDefaultProps||r.getDefaultProps.isReactClassApproved||k("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function qe(e,n,o){var a,i,u=de(e);if(!u){var c="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(c+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var s,l=null!=(a=n)&&void 0!==(i=a.__source)?"\n\nCheck your code at "+i.fileName.replace(/^.*[\\\/]/,"")+":"+i.lineNumber+".":"";c+=l||Me(),null===e?s="null":Array.isArray(e)?s="array":void 0!==e&&e.$$typeof===r?(s="<"+(V(e.type)||"Unknown")+" />",c=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,k("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,c)}var f=X.apply(this,arguments);if(null==f)return f;if(u)for(var p=2;p<arguments.length;p++)Ve(arguments[p],e);return e===t.Fragment?function(e){for(var t=Object.keys(e.props),r=0;r<t.length;r++){var n=t[r];if("children"!==n&&"key"!==n){Ae(e),k("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),Ae(null);break}}null!==e.ref&&(Ae(e),k("Invalid attribute `ref` supplied to `React.Fragment`."),Ae(null))}(f):ze(f),f}var Be=!1;try{var We=Object.freeze({});new Map([[We,null]]),new Set([We])}catch(e){}var Ye=qe,He=function(e,t,r){for(var n=G.apply(this,arguments),o=2;o<arguments.length;o++)Ve(arguments[o],n.type);return ze(n),n},Ke=function(e){var t=qe.bind(null,e);return t.type=e,Be||(Be=!0,S("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(t,"type",{enumerable:!1,get:function(){return S("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t},Je={map:ie,forEach:function(e,t,r){ie(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return ie(e,(function(){t++})),t},toArray:function(e){return ie(e,(function(e){return e}))||[]},only:function(e){if(!Q(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};t.Children=Je,t.Component=I,t.PureComponent=M,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=R,t.cloneElement=He,t.createContext=function(e,t){void 0===t?t=null:null!==t&&"function"!=typeof t&&k("createContext: Expected the optional second argument to be a function. Instead received: %s",t);var r={$$typeof:a,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null};r.Provider={$$typeof:o,_context:r};var n=!1,i=!1,u=!1,c={$$typeof:a,_context:r,_calculateChangedBits:r._calculateChangedBits};return Object.defineProperties(c,{Provider:{get:function(){return i||(i=!0,k("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),r.Provider},set:function(e){r.Provider=e}},_currentValue:{get:function(){return r._currentValue},set:function(e){r._currentValue=e}},_currentValue2:{get:function(){return r._currentValue2},set:function(e){r._currentValue2=e}},_threadCount:{get:function(){return r._threadCount},set:function(e){r._threadCount=e}},Consumer:{get:function(){return n||(n=!0,k("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),r.Consumer}},displayName:{get:function(){return r.displayName},set:function(e){u||(S("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",e),u=!0)}}}),r.Consumer=c,r._currentRenderer=null,r._currentRenderer2=null,r},t.createElement=Ye,t.createFactory=Ke,t.createRef=function(){var e={current:null};return Object.seal(e),e},t.forwardRef=function(e){null!=e&&e.$$typeof===c?k("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?k("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&k("forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=e&&(null==e.defaultProps&&null==e.propTypes||k("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"));var t,r={$$typeof:i,render:e};return Object.defineProperty(r,"displayName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(r){t=r,null==e.displayName&&(e.displayName=r)}}),r},t.isValidElement=Q,t.lazy=function(e){var t,r,n={$$typeof:s,_payload:{_status:-1,_result:e},_init:fe};return Object.defineProperties(n,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){k("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),t=e,Object.defineProperty(n,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return r},set:function(e){k("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),r=e,Object.defineProperty(n,"propTypes",{enumerable:!0})}}}),n},t.memo=function(e,t){de(e)||k("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e);var r,n={$$typeof:c,type:e,compare:void 0===t?null:t};return Object.defineProperty(n,"displayName",{enumerable:!1,configurable:!0,get:function(){return r},set:function(t){r=t,null==e.displayName&&(e.displayName=t)}}),n},t.useCallback=function(e,t){return ye().useCallback(e,t)},t.useContext=function(e,t){var r=ye();if(void 0!==t&&k("useContext() second argument is reserved for future use in React. Passing it is not supported. You passed: %s.%s",t,"number"==typeof t&&Array.isArray(arguments[2])?"\n\nDid you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://reactjs.org/link/rules-of-hooks":""),void 0!==e._context){var n=e._context;n.Consumer===e?k("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):n.Provider===e&&k("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return r.useContext(e,t)},t.useDebugValue=function(e,t){return ye().useDebugValue(e,t)},t.useEffect=function(e,t){return ye().useEffect(e,t)},t.useImperativeHandle=function(e,t,r){return ye().useImperativeHandle(e,t,r)},t.useLayoutEffect=function(e,t){return ye().useLayoutEffect(e,t)},t.useMemo=function(e,t){return ye().useMemo(e,t)},t.useReducer=function(e,t,r){return ye().useReducer(e,t,r)},t.useRef=function(e){return ye().useRef(e)},t.useState=function(e){return ye().useState(e)},t.version="17.0.2"}()}));x.Fragment,x.StrictMode,x.Profiler,x.Suspense,x.Children,x.Component,x.PureComponent,x.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,x.cloneElement,x.createContext,x.createElement,x.createFactory,x.createRef,x.forwardRef,x.isValidElement,x.lazy,x.memo,x.useCallback,x.useContext,x.useDebugValue,x.useEffect,x.useImperativeHandle,x.useLayoutEffect,x.useMemo,x.useReducer,x.useRef,x.useState,x.version;var F=S((function(e){"production"===process.env.NODE_ENV?e.exports=$:e.exports=x}));return function(e){var t=e.children,r=e.render,n=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["children","render"]);return F.createElement(F.Fragment,null,r?F.createElement(F.Fragment,null,r((function(){return R(n)}))):F.createElement("button",{type:"button",id:"usecsv-button",style:{backgroundColor:"#FFF",color:"#000",border:"2px solid #000",borderRadius:"6px",padding:"10px 15px",textAlign:"center",fontSize:"16px",cursor:"pointer"},onClick:function(){return R(n)}},t||"Open UseCSV"))}}));
|
|
18
18
|
//# sourceMappingURL=index.umd.min.js.map
|