datocms-plugin-commercelayer 0.0.9 → 2.0.0

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.
Binary file
package/docs/cover.png CHANGED
Binary file
Binary file
package/docs/demo.mp4 ADDED
Binary file
package/docs/settings.png CHANGED
Binary file
package/package.json CHANGED
@@ -1,22 +1,38 @@
1
1
  {
2
2
  "name": "datocms-plugin-commercelayer",
3
- "homepage": "https://github.com/datocms/plugins/tree/master/commercelayer#readme",
4
- "version": "0.0.9",
3
+ "homepage": "https://github.com/commercelayer/dato-plugin#readme",
5
4
  "description": "A plugin that allows users to search and select Commerce Layer SKUs",
6
5
  "main": "index.js",
6
+ "author": "DatoCMS <support@datocms.com>",
7
+ "license": "ISC",
8
+ "version": "2.0.0",
9
+ "dependencies": {
10
+ "@fortawesome/fontawesome-svg-core": "^1.3.0",
11
+ "@fortawesome/free-solid-svg-icons": "^6.0.0",
12
+ "@fortawesome/react-fontawesome": "^0.1.17",
13
+ "@types/node": "^17.0.21",
14
+ "@types/react": "^17.0.40",
15
+ "@types/react-dom": "^17.0.13",
16
+ "classname": "0.0.0",
17
+ "datocms-plugin-sdk": "^0.5.2",
18
+ "datocms-react-ui": "^0.5.2",
19
+ "final-form": "^4.20.6",
20
+ "lodash-es": "^4.17.21",
21
+ "qs": "^6.10.3",
22
+ "react": "^17.0.2",
23
+ "react-dom": "^17.0.2",
24
+ "react-final-form": "^6.5.8",
25
+ "react-scripts": "5.0.0",
26
+ "typescript": "^4.6.2",
27
+ "zustand": "^3.7.1"
28
+ },
7
29
  "scripts": {
8
- "start": "NODE_ENV=development webpack-dev-server --port 5000",
9
- "dist": "NODE_ENV=production webpack --progress",
10
- "addToProject": "yo datocms-plugin:add-to-project",
11
- "prepublishOnly": "rimraf dist && mkdir dist && yarn dist",
12
- "lint": "eslint \"./src/*.{js,jsx}\"",
13
- "test": "echo 1"
30
+ "start": "cross-env BROWSER='none' PUBLIC_URL='/' react-scripts start",
31
+ "build": "cross-env PUBLIC_URL='.' react-scripts build",
32
+ "test": "react-scripts test",
33
+ "eject": "react-scripts eject",
34
+ "prepublishOnly": "npm run build"
14
35
  },
15
- "files": [
16
- "docs",
17
- "dist",
18
- "docs"
19
- ],
20
36
  "keywords": [
21
37
  "datocms",
22
38
  "datocms-plugin",
@@ -24,80 +40,71 @@
24
40
  "string-field",
25
41
  "commercelayer"
26
42
  ],
27
- "author": "DatoCMS <support@datocms.com>",
28
- "license": "ISC",
43
+ "eslintConfig": {
44
+ "extends": [
45
+ "react-app"
46
+ ]
47
+ },
48
+ "browserslist": {
49
+ "production": [
50
+ ">0.2%",
51
+ "not dead",
52
+ "not op_mini all"
53
+ ],
54
+ "development": [
55
+ "last 1 chrome version",
56
+ "last 1 firefox version",
57
+ "last 1 safari version"
58
+ ]
59
+ },
60
+ "devDependencies": {
61
+ "@semantic-release/changelog": "^6.0.1",
62
+ "@semantic-release/commit-analyzer": "^9.0.2",
63
+ "@semantic-release/git": "^10.0.1",
64
+ "@semantic-release/github": "^8.0.2",
65
+ "@semantic-release/npm": "^9.0.1",
66
+ "@semantic-release/release-notes-generator": "^10.0.3",
67
+ "@types/lodash-es": "^4.17.6",
68
+ "@types/qs": "^6.9.7",
69
+ "cross-env": "^7.0.3"
70
+ },
71
+ "files": [
72
+ "docs",
73
+ "build"
74
+ ],
29
75
  "datoCmsPlugin": {
30
76
  "title": "Commerce Layer",
31
77
  "previewImage": "docs/demo.gif",
32
78
  "coverImage": "docs/cover.png",
33
- "entryPoint": "dist/index.html",
34
- "fieldTypes": [
35
- "string"
79
+ "entryPoint": "build/index.html"
80
+ },
81
+ "release": {
82
+ "branches": [
83
+ "+([0-9])?(.{+([0-9]),x}).x",
84
+ "main",
85
+ "next",
86
+ "next-major",
87
+ {
88
+ "name": "beta",
89
+ "prerelease": true
90
+ },
91
+ {
92
+ "name": "alpha",
93
+ "prerelease": true
94
+ }
36
95
  ],
37
- "pluginType": "field_editor",
38
- "parameters": {
39
- "global": [
96
+ "plugins": [
97
+ "@semantic-release/commit-analyzer",
98
+ "@semantic-release/release-notes-generator",
99
+ "@semantic-release/changelog",
100
+ "@semantic-release/npm",
101
+ "@semantic-release/git",
102
+ [
103
+ "@semantic-release/github",
40
104
  {
41
- "id": "baseEndpoint",
42
- "label": "Commerce Layer Base endpoint",
43
- "type": "string",
44
- "required": true,
45
- "default": "https://dato-commerce.commercelayer.io"
46
- },
47
- {
48
- "id": "clientId",
49
- "label": "OAuth Application Client ID",
50
- "type": "string",
51
- "required": true,
52
- "default": "46add017fee4f313c7fb9e36a1101ecc23626e0c29d2407b576d0923300082ec",
53
- "hint": "Go to https://<code>&lt;your-instance&gt;</code>.commercelayer.io/admin/settings/applications to find your OAuth applications"
105
+ "addReleases": "top"
54
106
  }
55
- ],
56
- "instance": []
57
- }
58
- },
59
- "devDependencies": {
60
- "@babel/cli": "^7.0.0-beta.54",
61
- "@babel/core": "^7.0.0-beta.54",
62
- "@babel/plugin-proposal-class-properties": "^7.1.0",
63
- "@babel/plugin-proposal-decorators": "^7.1.2",
64
- "@babel/preset-env": "^7.0.0-beta.54",
65
- "@babel/preset-react": "^7.0.0",
66
- "@babel/register": "^7.0.0-beta.54",
67
- "babel-eslint": "^8.2.6",
68
- "babel-loader": "^8.0.0-beta",
69
- "css-loader": "^1.0.0",
70
- "eslint": "^5.3.0",
71
- "eslint-config-airbnb": "17.1.0",
72
- "eslint-config-airbnb-base": "^13.0.0",
73
- "eslint-import-resolver-webpack": "^0.10.1",
74
- "eslint-loader": "^2.1.0",
75
- "eslint-plugin-import": "^2.14.0",
76
- "eslint-plugin-jsx-a11y": "^6.1.1",
77
- "eslint-plugin-react": "^7.11.0",
78
- "html-webpack-inline-source-plugin": "^0.0.10",
79
- "html-webpack-plugin": "^3.2.0",
80
- "html-webpack-tags-plugin": "^2.0.17",
81
- "mini-css-extract-plugin": "^0.4.3",
82
- "node-sass": "^4.9.3",
83
- "sass-loader": "^7.1.0",
84
- "svg-url-loader": "^2.3.2",
85
- "webpack": "^4.16.1",
86
- "webpack-cli": "^3.1.0",
87
- "webpack-dev-server": "^3.1.10",
88
- "yo": "^3.1.1"
89
- },
90
- "dependencies": {
91
- "classname": "^0.0.0",
92
- "generator-datocms-plugin": "^1.0.22",
93
- "immer": "^1.7.3",
94
- "preact": "^8.3.1",
95
- "preact-compat": "^3.18.4",
96
- "prop-types": "^15.6.2",
97
- "qs": "^6.6.0",
98
- "react-redux": "^5.0.7",
99
- "redux": "^4.0.1",
100
- "repatch": "^1.3.12",
101
- "style-loader": "^0.23.1"
107
+ ]
108
+ ]
102
109
  }
103
110
  }
package/dist/bundle.js DELETED
@@ -1,10 +0,0 @@
1
- !function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=31)}([function(e,t,n){e.exports=n(14)()},function(e,t,n){"use strict";n.r(t),n.d(t,"h",(function(){return c})),n.d(t,"createElement",(function(){return c})),n.d(t,"cloneElement",(function(){return p})),n.d(t,"createRef",(function(){return q})),n.d(t,"Component",(function(){return z})),n.d(t,"render",(function(){return L})),n.d(t,"rerender",(function(){return y})),n.d(t,"options",(function(){return o}));var r=function(){},o={},i=[],a=[];function c(e,t){var n,c,s,u,l=a;for(u=arguments.length;u-- >2;)i.push(arguments[u]);for(t&&null!=t.children&&(i.length||i.push(t.children),delete t.children);i.length;)if((c=i.pop())&&void 0!==c.pop)for(u=c.length;u--;)i.push(c[u]);else"boolean"==typeof c&&(c=null),(s="function"!=typeof e)&&(null==c?c="":"number"==typeof c?c=String(c):"string"!=typeof c&&(s=!1)),s&&n?l[l.length-1]+=c:l===a?l=[c]:l.push(c),n=s;var p=new r;return p.nodeName=e,p.children=l,p.attributes=null==t?void 0:t,p.key=null==t?void 0:t.key,void 0!==o.vnode&&o.vnode(p),p}function s(e,t){for(var n in t)e[n]=t[n];return e}function u(e,t){e&&("function"==typeof e?e(t):e.current=t)}var l="function"==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):setTimeout;function p(e,t){return c(e.nodeName,s(s({},e.attributes),t),arguments.length>2?[].slice.call(arguments,2):e.children)}var f=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,d=[];function h(e){!e._dirty&&(e._dirty=!0)&&1==d.push(e)&&(o.debounceRendering||l)(y)}function y(){for(var e;e=d.pop();)e._dirty&&M(e)}function v(e,t,n){return"string"==typeof t||"number"==typeof t?void 0!==e.splitText:"string"==typeof t.nodeName?!e._componentConstructor&&m(e,t.nodeName):n||e._componentConstructor===t.nodeName}function m(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function b(e){var t=s({},e.attributes);t.children=e.children;var n=e.nodeName.defaultProps;if(void 0!==n)for(var r in n)void 0===t[r]&&(t[r]=n[r]);return t}function g(e){var t=e.parentNode;t&&t.removeChild(e)}function w(e,t,n,r,o){if("className"===t&&(t="class"),"key"===t);else if("ref"===t)u(n,null),u(r,e);else if("class"!==t||o)if("style"===t){if(r&&"string"!=typeof r&&"string"!=typeof n||(e.style.cssText=r||""),r&&"object"==typeof r){if("string"!=typeof n)for(var i in n)i in r||(e.style[i]="");for(var i in r)e.style[i]="number"==typeof r[i]&&!1===f.test(i)?r[i]+"px":r[i]}}else if("dangerouslySetInnerHTML"===t)r&&(e.innerHTML=r.__html||"");else if("o"==t[0]&&"n"==t[1]){var a=t!==(t=t.replace(/Capture$/,""));t=t.toLowerCase().substring(2),r?n||e.addEventListener(t,_,a):e.removeEventListener(t,_,a),(e._listeners||(e._listeners={}))[t]=r}else if("list"!==t&&"type"!==t&&!o&&t in e){try{e[t]=null==r?"":r}catch(e){}null!=r&&!1!==r||"spellcheck"==t||e.removeAttribute(t)}else{var c=o&&t!==(t=t.replace(/^xlink:?/,""));null==r||!1===r?c?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.removeAttribute(t):"function"!=typeof r&&(c?e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),r):e.setAttribute(t,r))}else e.className=r||""}function _(e){return this._listeners[e.type](o.event&&o.event(e)||e)}var x=[],O=0,S=!1,P=!1;function C(){for(var e;e=x.shift();)o.afterMount&&o.afterMount(e),e.componentDidMount&&e.componentDidMount()}function j(e,t,n,r,o,i){O++||(S=null!=o&&void 0!==o.ownerSVGElement,P=null!=e&&!("__preactattr_"in e));var a=E(e,t,n,r,i);return o&&a.parentNode!==o&&o.appendChild(a),--O||(P=!1,i||C()),a}function E(e,t,n,r,o){var i=e,a=S;if(null!=t&&"boolean"!=typeof t||(t=""),"string"==typeof t||"number"==typeof t)return e&&void 0!==e.splitText&&e.parentNode&&(!e._component||o)?e.nodeValue!=t&&(e.nodeValue=t):(i=document.createTextNode(t),e&&(e.parentNode&&e.parentNode.replaceChild(i,e),k(e,!0))),i.__preactattr_=!0,i;var c,s,u=t.nodeName;if("function"==typeof u)return function(e,t,n,r){var o=e&&e._component,i=o,a=e,c=o&&e._componentConstructor===t.nodeName,s=c,u=b(t);for(;o&&!s&&(o=o._parentComponent);)s=o.constructor===t.nodeName;o&&s&&(!r||o._component)?(A(o,u,3,n,r),e=o.base):(i&&!c&&(U(i),e=a=null),o=R(t.nodeName,u,n),e&&!o.nextBase&&(o.nextBase=e,a=null),A(o,u,1,n,r),e=o.base,a&&e!==a&&(a._component=null,k(a,!1)));return e}(e,t,n,r);if(S="svg"===u||"foreignObject"!==u&&S,u=String(u),(!e||!m(e,u))&&(c=u,(s=S?document.createElementNS("http://www.w3.org/2000/svg",c):document.createElement(c)).normalizedNodeName=c,i=s,e)){for(;e.firstChild;)i.appendChild(e.firstChild);e.parentNode&&e.parentNode.replaceChild(i,e),k(e,!0)}var l=i.firstChild,p=i.__preactattr_,f=t.children;if(null==p){p=i.__preactattr_={};for(var d=i.attributes,h=d.length;h--;)p[d[h].name]=d[h].value}return!P&&f&&1===f.length&&"string"==typeof f[0]&&null!=l&&void 0!==l.splitText&&null==l.nextSibling?l.nodeValue!=f[0]&&(l.nodeValue=f[0]):(f&&f.length||null!=l)&&function(e,t,n,r,o){var i,a,c,s,u,l=e.childNodes,p=[],f={},d=0,h=0,y=l.length,m=0,b=t?t.length:0;if(0!==y)for(var w=0;w<y;w++){var _=l[w],x=_.__preactattr_;null!=(O=b&&x?_._component?_._component.__key:x.key:null)?(d++,f[O]=_):(x||(void 0!==_.splitText?!o||_.nodeValue.trim():o))&&(p[m++]=_)}if(0!==b)for(w=0;w<b;w++){var O;if(s=t[w],u=null,null!=(O=s.key))d&&void 0!==f[O]&&(u=f[O],f[O]=void 0,d--);else if(h<m)for(i=h;i<m;i++)if(void 0!==p[i]&&v(a=p[i],s,o)){u=a,p[i]=void 0,i===m-1&&m--,i===h&&h++;break}u=E(u,s,n,r),c=l[w],u&&u!==e&&u!==c&&(null==c?e.appendChild(u):u===c.nextSibling?g(c):e.insertBefore(u,c))}if(d)for(var w in f)void 0!==f[w]&&k(f[w],!1);for(;h<=m;)void 0!==(u=p[m--])&&k(u,!1)}(i,f,n,r,P||null!=p.dangerouslySetInnerHTML),function(e,t,n){var r;for(r in n)t&&null!=t[r]||null==n[r]||w(e,r,n[r],n[r]=void 0,S);for(r in t)"children"===r||"innerHTML"===r||r in n&&t[r]===("value"===r||"checked"===r?e[r]:n[r])||w(e,r,n[r],n[r]=t[r],S)}(i,t.attributes,p),S=a,i}function k(e,t){var n=e._component;n?U(n):(null!=e.__preactattr_&&u(e.__preactattr_.ref,null),!1!==t&&null!=e.__preactattr_||g(e),N(e))}function N(e){for(e=e.lastChild;e;){var t=e.previousSibling;k(e,!0),e=t}}var T=[];function R(e,t,n){var r,o=T.length;for(e.prototype&&e.prototype.render?(r=new e(t,n),z.call(r,t,n)):((r=new z(t,n)).constructor=e,r.render=D);o--;)if(T[o].constructor===e)return r.nextBase=T[o].nextBase,T.splice(o,1),r;return r}function D(e,t,n){return this.constructor(e,n)}function A(e,t,n,r,i){e._disable||(e._disable=!0,e.__ref=t.ref,e.__key=t.key,delete t.ref,delete t.key,void 0===e.constructor.getDerivedStateFromProps&&(!e.base||i?e.componentWillMount&&e.componentWillMount():e.componentWillReceiveProps&&e.componentWillReceiveProps(t,r)),r&&r!==e.context&&(e.prevContext||(e.prevContext=e.context),e.context=r),e.prevProps||(e.prevProps=e.props),e.props=t,e._disable=!1,0!==n&&(1!==n&&!1===o.syncComponentUpdates&&e.base?h(e):M(e,1,i)),u(e.__ref,e))}function M(e,t,n,r){if(!e._disable){var i,a,c,u=e.props,l=e.state,p=e.context,f=e.prevProps||u,d=e.prevState||l,h=e.prevContext||p,y=e.base,v=e.nextBase,m=y||v,g=e._component,w=!1,_=h;if(e.constructor.getDerivedStateFromProps&&(l=s(s({},l),e.constructor.getDerivedStateFromProps(u,l)),e.state=l),y&&(e.props=f,e.state=d,e.context=h,2!==t&&e.shouldComponentUpdate&&!1===e.shouldComponentUpdate(u,l,p)?w=!0:e.componentWillUpdate&&e.componentWillUpdate(u,l,p),e.props=u,e.state=l,e.context=p),e.prevProps=e.prevState=e.prevContext=e.nextBase=null,e._dirty=!1,!w){i=e.render(u,l,p),e.getChildContext&&(p=s(s({},p),e.getChildContext())),y&&e.getSnapshotBeforeUpdate&&(_=e.getSnapshotBeforeUpdate(f,d));var S,P,E=i&&i.nodeName;if("function"==typeof E){var N=b(i);(a=g)&&a.constructor===E&&N.key==a.__key?A(a,N,1,p,!1):(S=a,e._component=a=R(E,N,p),a.nextBase=a.nextBase||v,a._parentComponent=e,A(a,N,0,p,!1),M(a,1,n,!0)),P=a.base}else c=m,(S=g)&&(c=e._component=null),(m||1===t)&&(c&&(c._component=null),P=j(c,i,p,n||!y,m&&m.parentNode,!0));if(m&&P!==m&&a!==g){var T=m.parentNode;T&&P!==T&&(T.replaceChild(P,m),S||(m._component=null,k(m,!1)))}if(S&&U(S),e.base=P,P&&!r){for(var D=e,z=e;z=z._parentComponent;)(D=z).base=P;P._component=D,P._componentConstructor=D.constructor}}for(!y||n?x.push(e):w||(e.componentDidUpdate&&e.componentDidUpdate(f,d,_),o.afterUpdate&&o.afterUpdate(e));e._renderCallbacks.length;)e._renderCallbacks.pop().call(e);O||r||C()}}function U(e){o.beforeUnmount&&o.beforeUnmount(e);var t=e.base;e._disable=!0,e.componentWillUnmount&&e.componentWillUnmount(),e.base=null;var n=e._component;n?U(n):t&&(null!=t.__preactattr_&&u(t.__preactattr_.ref,null),e.nextBase=t,g(t),T.push(e),N(t)),u(e.__ref,null)}function z(e,t){this._dirty=!0,this.context=t,this.props=e,this.state=this.state||{},this._renderCallbacks=[]}function L(e,t,n){return j(n,e,{},!1,t,!1)}function q(){return{}}s(z.prototype,{setState:function(e,t){this.prevState||(this.prevState=this.state),this.state=s(s({},this.state),"function"==typeof e?e(this.state,this.props):e),t&&this._renderCallbacks.push(t),h(this)},forceUpdate:function(e){e&&this._renderCallbacks.push(e),M(this,2)},render:function(){}});var I={h:c,createElement:c,cloneElement:p,createRef:q,Component:z,render:L,rerender:y,options:o};t.default=I},function(e,t,n){function r(){var e={},t={},n="";function o(t){r.each(t.split(" "),(function(t){e[t]=!!t}))}return r.each([].slice.call(arguments),(function(e){switch(r.getType(e)){case"string":case"number":o(e);break;case"array":o(r.apply(null,e));break;case"element":o(r(e.className||""));break;case"nodelist":o(r.apply(null,[].slice.call(e)));break;case"jquery":o(r.apply(null,e.get()));break;case"object":t=r.extend(t,e)}})),e=r.extend(e,t),r.each(e,(function(e,t){e&&(n+=" "+t)})),n.substr(1)}r.setTo=function(e){var t=r.getType(e);return"element"===t&&(e=[e]),"jquery"===t&&(e=e.get()),"nodelist"===t&&(e=[].slice.call(e)),function(){var t=r.apply(null,arguments);r.each(e,(function(e){e.className=t}))}},r.each=function(e,t){var n=r.getType(e);if("array"===n)for(var o=0;o<e.length;o++)t(e[o],o);if("object"===n)for(var i in e)t(e[i],i)},r.getType=function(e){var t=Object.prototype.toString.call(e).slice(8,-1).toLowerCase();return"object"===t&&e.jquery?"jquery":t.indexOf("element")>1?"element":t},r.extend=function(e,t){var n={},o=[e,t];return r.each(o,(function(e){r.each(e,(function(t,r){e.hasOwnProperty(r)&&(n[r]=t)}))})),n},e.exports&&(e.exports=r)},function(e,t,n){!function(e,t){"use strict";var n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function r(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o={register:function(e){console.warn("Consumer used without a Provider")},unregister:function(e){},val:function(e){}};function i(e){var t=e.children;return{child:1===t.length?t[0]:null,children:t}}function a(e){return i(e).child||"render"in e&&e.render}var c=1073741823,s=function(){return c},u=0;function l(e,n){var l="_preactContextProvider-"+u++;return{Provider:function(e){function o(t){var r=e.call(this,t)||this;return r.t=function(e,t){var n=[],r=e,o=function(e){return 0|t(r,e)};return{register:function(e){n.push(e),e(r,o(r))},unregister:function(e){n=n.filter((function(t){return t!==e}))},val:function(e){if(void 0===e||e==r)return r;var t=o(e);return r=e,n.forEach((function(n){return n(e,t)})),r}}}(t.value,n||s),r}return r(o,e),o.prototype.getChildContext=function(){var e;return(e={})[l]=this.t,e},o.prototype.componentDidUpdate=function(){this.t.val(this.props.value)},o.prototype.render=function(){var e=i(this.props),n=e.child,r=e.children;return n||t.h("span",null,r)},o}(t.Component),Consumer:function(t){function n(n,r){var o=t.call(this,n,r)||this;return o.i=function(e,t){var n=o.props.unstable_observedBits,r=null==n?c:n;0!=((r|=0)&t)&&o.setState({value:e})},o.state={value:o.u().val()||e},o}return r(n,t),n.prototype.componentDidMount=function(){this.u().register(this.i)},n.prototype.shouldComponentUpdate=function(e,t){return this.state.value!==t.value||a(this.props)!==a(e)},n.prototype.componentWillUnmount=function(){this.u().unregister(this.i)},n.prototype.componentDidUpdate=function(e,t,n){var r=n[l];r!==this.context[l]&&((r||o).unregister(this.i),this.componentDidMount())},n.prototype.render=function(){var e="render"in this.props&&this.props.render,t=a(this.props);if(e&&e!==t&&console.warn("Both children and a render function are defined. Children will be used"),"function"==typeof t)return t(this.state.value);console.warn("Consumer is expecting a function as one and only child but didn't find any")},n.prototype.u=function(){return this.context[l]||o},n}(t.Component)}}var p=l;e.default=l,e.createContext=p,Object.defineProperty(e,"__esModule",{value:!0})}(t,n(1))},function(e,t,n){"use strict";e.exports=function(e,t,n,r,o,i,a,c){if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,i,a,c],l=0;(s=new Error(t.replace(/%s/g,(function(){return u[l++]})))).name="Invariant Violation"}throw s.framesToPop=1,s}}},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,o=Array.isArray,i=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),a=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n};e.exports={arrayToObject:a,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var i=t[r],a=i.obj[i.prop],c=Object.keys(a),s=0;s<c.length;++s){var u=c[s],l=a[u];"object"==typeof l&&null!==l&&-1===n.indexOf(l)&&(t.push({obj:a,prop:u}),n.push(l))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var r=[],i=0;i<n.length;++i)void 0!==n[i]&&r.push(n[i]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(e){return r}},encode:function(e,t,n){if(0===e.length)return e;var r=e;if("symbol"==typeof e?r=Symbol.prototype.toString.call(e):"string"!=typeof e&&(r=String(e)),"iso-8859-1"===n)return escape(r).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var o="",a=0;a<r.length;++a){var c=r.charCodeAt(a);45===c||46===c||95===c||126===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122?o+=r.charAt(a):c<128?o+=i[c]:c<2048?o+=i[192|c>>6]+i[128|63&c]:c<55296||c>=57344?o+=i[224|c>>12]+i[128|c>>6&63]+i[128|63&c]:(a+=1,c=65536+((1023&c)<<10|1023&r.charCodeAt(a)),o+=i[240|c>>18]+i[128|c>>12&63]+i[128|c>>6&63]+i[128|63&c])}return o},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},merge:function e(t,n,i){if(!n)return t;if("object"!=typeof n){if(o(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(i&&(i.plainObjects||i.allowPrototypes)||!r.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var c=t;return o(t)&&!o(n)&&(c=a(t,i)),o(t)&&o(n)?(n.forEach((function(n,o){if(r.call(t,o)){var a=t[o];a&&"object"==typeof a&&n&&"object"==typeof n?t[o]=e(a,n,i):t.push(n)}else t[o]=n})),t):Object.keys(n).reduce((function(t,o){var a=n[o];return r.call(t,o)?t[o]=e(t[o],a,i):t[o]=a,t}),c)}}},function(e,t,n){"use strict";e.exports=n(16)},function(e,t,n){"use strict";(function(e,r){var o,i=n(11);o="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:r;var a=Object(i.a)(o);t.a=a}).call(this,n(17),n(18)(e))},function(e,t,n){!function(e){"use strict";var t=function(e){var n=function(t){return function(n){return function(r){if("function"!=typeof r)throw new Error("Thunk reducer must return a function");var o=r(t.getState());return"function"==typeof o?o(t.dispatch,t.getState,e):n((function(e){return o}))}}};return n.withExtraArgument=t,n},n=t(),r=function(e){var t=this;this.listeners=[],this.isDispatching=!1,this.getState=function(){return t.state},this.dispatch=function(e){if("function"!=typeof e)throw new Error("Reducer is not a function: dispatch takes only reducers as functions.");if(t.isDispatching)throw new Error("Reducers may not dispatch actions.");t.isDispatching=!0;try{t.state=e(t.state)}finally{t.isDispatching=!1}for(var n=0;n<t.listeners.length;++n)t.listeners[n]();return t.state},this.subscribe=function(e){if("function"!=typeof e)throw new Error("Listener is not a function: subscribe takes only listeners as functions.");return t.listeners=t.listeners.concat([e]),function(){return t.listeners=t.listeners.filter((function(t){return t!==e}))}},this.addMiddleware=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(e.some((function(e){return"function"!=typeof e})))throw new Error("Middleware is not a function: addMiddleware takes only middlewares as functions.");return e.forEach((function(e){return t.dispatch=e(t)(t.dispatch)})),t},this.state=e};e.Store=r,e.default=r,e.thunk=n,Object.defineProperty(e,"__esModule",{value:!0})}(t)},function(e,t,n){"use strict";var r=String.prototype.replace,o=/%20/g,i=n(5),a={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports=i.assign({default:a.RFC3986,formatters:{RFC1738:function(e){return r.call(e,o,"+")},RFC3986:function(e){return String(e)}}},a)},function(e,t,n){"use strict";var r=n(6),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};function s(e){return r.isMemo(e)?a:c[e.$$typeof]||o}c[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},c[r.Memo]=a;var u=Object.defineProperty,l=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=d(n);o&&o!==h&&e(t,o,r)}var a=l(n);p&&(a=a.concat(p(n)));for(var c=s(t),y=s(n),v=0;v<a.length;++v){var m=a[v];if(!(i[m]||r&&r[m]||y&&y[m]||c&&c[m])){var b=f(n,m);try{u(t,m,b)}catch(e){}}}}return t}},function(e,t,n){"use strict";function r(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(19),o=n(20),i=n(9);e.exports={formats:i,parse:o,stringify:r}},function(e,t,n){"use strict";(function(e){var n,r,o,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c="undefined"!=typeof Symbol?Symbol("immer-nothing"):(o=!0,(r="immer-nothing")in(n={})?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n),s="undefined"!=typeof Symbol?Symbol("immer-draftable"):"__$immer_draftable",u="undefined"!=typeof Symbol?Symbol("immer-state"):"__$immer_state";function l(e){return!!e&&!!e[u]}function p(e){if(!e||"object"!==(void 0===e?"undefined":i(e)))return!1;if(Array.isArray(e))return!0;var t=Object.getPrototypeOf(e);return!t||t===Object.prototype||(!!e[s]||!!e.constructor[s])}var f=Object.assign||function(e,t){for(var n in t)m(t,n)&&(e[n]=t[n]);return e},d="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function h(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Array.isArray(e))return e.slice();var n=Object.create(Object.getPrototypeOf(e));return d(e).forEach((function(r){if(r!==u){var o=Object.getOwnPropertyDescriptor(e,r);if(o.get){if(!t)throw new Error("Immer drafts cannot have computed properties");o.value=o.get.call(e)}o.enumerable?n[r]=o.value:Object.defineProperty(n,r,{value:o.value,writable:!0,configurable:!0})}})),n}function y(e,t){if(Array.isArray(e))for(var n=0;n<e.length;n++)t(n,e[n],e);else d(e).forEach((function(n){return t(n,e[n],e)}))}function v(e,t){return Object.getOwnPropertyDescriptor(e,t).enumerable}function m(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function b(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}var g={},w=[],_=function(){return w[w.length-1]};function x(e,t){var n=Array.isArray(e),r=j(e);y(r,(function(t){!function(e,t,n){var r=g[t];r?r.enumerable=n:g[t]=r={configurable:!0,enumerable:n,get:function(){return function(e,t){E(e);var n=S(e)[t];if(!e.finalizing&&n===e.base[t]&&p(n))return C(e),e.copy[t]=x(n,e);return n}(this[u],t)},set:function(e){!function(e,t,n){if(E(e),e.assigned[t]=!0,!e.modified){if(b(S(e)[t],n))return;P(e),C(e)}e.copy[t]=n}(this[u],t,e)}};Object.defineProperty(e,t,r)}(r,t,n||v(e,t))}));var o={scope:t?t.scope:_(),modified:!1,finalizing:!1,finalized:!1,assigned:{},parent:t,base:e,draft:r,copy:null,revoke:O,revoked:!1};return function(e,t,n){Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0})}(r,u,o),o.scope.push(o),r}function O(){this.revoked=!0}function S(e){return e.copy||e.base}function P(e){e.modified||(e.modified=!0,e.parent&&P(e.parent))}function C(e){e.copy||(e.copy=j(e.base))}function j(e){var t=e&&e[u];if(t){t.finalizing=!0;var n=h(t.draft,!0);return t.finalizing=!1,n}return h(e)}function E(e){if(!0===e.revoked)throw new Error("Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+JSON.stringify(S(e)))}function k(e){for(var t=e.base,n=e.draft,r=Object.keys(n),o=r.length-1;o>=0;o--)if(void 0===t[r[o]]&&!m(t,r[o]))return!0;return r.length!==Object.keys(t).length}function N(e){var t=e.draft;if(t.length!==e.base.length)return!0;var n=Object.getOwnPropertyDescriptor(t,t.length-1);return!(!n||n.get)}var T=Object.freeze({scopes:w,currentScope:_,willFinalize:function(e,t,n){var r=_();r.forEach((function(e){return e.finalizing=!0})),void 0!==e&&e!==t||(n&&function e(t){if(!t||"object"!==(void 0===t?"undefined":i(t)))return;var n=t[u];if(!n)return;var r=n.base,o=n.draft,a=n.assigned;if(Array.isArray(t)){if(N(n)){if(P(n),a.length=!0,o.length<r.length)for(var c=o.length;c<r.length;c++)a[c]=!1;else for(var s=r.length;s<o.length;s++)a[s]=!0;for(var l=0;l<o.length;l++)void 0===a[l]&&e(o[l])}}else Object.keys(o).forEach((function(t){void 0!==r[t]||m(r,t)?a[t]||e(o[t]):(a[t]=!0,P(n))})),Object.keys(r).forEach((function(e){void 0!==o[e]||m(o,e)||(a[e]=!1,P(n))}))}(t),function(e){for(var t=e.length-1;t>=0;t--){var n=e[t];!1===n.modified&&(Array.isArray(n.base)?N(n)&&P(n):k(n)&&P(n))}}(r))},createDraft:x}),R=[],D=function(){return R[R.length-1]};function A(e,t){var n={scope:t?t.scope:D(),modified:!1,finalized:!1,assigned:{},parent:t,base:e,draft:null,drafts:{},copy:null,revoke:null},r=Array.isArray(e)?Proxy.revocable([n],U):Proxy.revocable(n,M),o=r.revoke,i=r.proxy;return n.draft=i,n.revoke=o,n.scope.push(n),i}var M={get:function(e,t){if(t===u)return e;var n=e.drafts;if(!e.modified&&m(n,t))return n[t];var r=z(e)[t];if(e.finalized||!p(r))return r;if(e.modified){if(r!==e.base[t])return r;n=e.copy}return n[t]=A(r,e)},has:function(e,t){return t in z(e)},ownKeys:function(e){return Reflect.ownKeys(z(e))},set:function(e,t,n){if(!e.modified){if(n?b(e.base[t],n)||n===e.drafts[t]:b(e.base[t],n)&&t in e.base)return!0;L(e)}return e.assigned[t]=!0,e.copy[t]=n,!0},deleteProperty:function(e,t){(void 0!==e.base[t]||t in e.base)&&(e.assigned[t]=!1,L(e));e.copy&&delete e.copy[t];return!0},getOwnPropertyDescriptor:function(e,t){var n=z(e),r=Reflect.getOwnPropertyDescriptor(n,t);r&&(r.writable=!0,r.configurable=!Array.isArray(n)||"length"!==t);return r},defineProperty:function(){throw new Error("Object.defineProperty() cannot be used on an Immer draft")},getPrototypeOf:function(e){return Object.getPrototypeOf(e.base)},setPrototypeOf:function(){throw new Error("Object.setPrototypeOf() cannot be used on an Immer draft")}},U={};function z(e){return e.copy||e.base}function L(e){e.modified||(e.modified=!0,e.copy=f(h(e.base),e.drafts),e.drafts=null,e.parent&&L(e.parent))}y(M,(function(e,t){U[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),U.deleteProperty=function(e,t){if(isNaN(parseInt(t)))throw new Error("Immer only supports deleting array indices");return M.deleteProperty.call(this,e[0],t)},U.set=function(e,t,n){if("length"!==t&&isNaN(parseInt(t)))throw new Error("Immer only supports setting array indices and the 'length' property");return M.set.call(this,e[0],t,n)};var q=Object.freeze({scopes:R,currentScope:D,willFinalize:function(){},createDraft:A});function I(e,t,n,r){Array.isArray(e.base)?function(e,t,n,r){for(var o=e.base,i=e.copy,a=e.assigned,c=Math.min(o.length,i.length),s=0;s<c;s++)if(a[s]&&o[s]!==i[s]){var u=t.concat(s);n.push({op:"replace",path:u,value:i[s]}),r.push({op:"replace",path:u,value:o[s]})}if(c<i.length){for(var l=c;l<i.length;l++)n.push({op:"add",path:t.concat(l),value:i[l]});r.push({op:"replace",path:t.concat("length"),value:o.length})}else if(c<o.length){n.push({op:"replace",path:t.concat("length"),value:i.length});for(var p=c;p<o.length;p++)r.push({op:"add",path:t.concat(p),value:o[p]})}}(e,t,n,r):function(e,t,n,r){var o=e.base,i=e.copy;y(e.assigned,(function(e,a){var c=o[e],s=i[e],u=a?e in o?"replace":"add":"remove";if(c!==s||"replace"!==u){var l=t.concat(e);n.push("remove"===u?{op:u,path:l}:{op:u,path:l,value:s}),r.push("add"===u?{op:"remove",path:l}:"remove"===u?{op:"add",path:l,value:c}:{op:"replace",path:l,value:c})}}))}(e,t,n,r)}function F(e,t){for(var n=0;n<t.length;n++){var r=t[n],o=r.path;if(0===o.length&&"replace"===r.op)e=r.value;else{for(var a=e,c=0;c<o.length-1;c++)if(!(a=a[o[c]])||"object"!==(void 0===a?"undefined":i(a)))throw new Error("Cannot apply patch, path doesn't resolve: "+o.join("/"));var s=o[o.length-1];switch(r.op){case"replace":case"add":a[s]=r.value;break;case"remove":if(Array.isArray(a)){if(s!==a.length-1)throw new Error("Only the last index of an array can be removed, index: "+s+", length: "+a.length);a.length-=1}else delete a[s];break;default:throw new Error("Unsupported patch operation: "+r.op)}}}return e}var $={useProxies:"undefined"!=typeof Proxy&&"undefined"!=typeof Reflect,autoFreeze:void 0===e&&"verifyMinified"===function(){}.name,onAssign:null,onDelete:null,onCopy:null},B=new(function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),f(this,$,t),this.setUseProxies(this.useProxies),this.produce=this.produce.bind(this)}return a(e,[{key:"produce",value:function(e,t,n){var r=this;if("function"==typeof e&&"function"!=typeof t){var o=t;return t=e,function(){for(var e=arguments.length,n=Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o;return r.produce(a,(function(e){var r;return(r=t).call.apply(r,[e,e].concat(n))}))}}if("function"!=typeof t)throw new Error("if first argument is not a function, the second argument to produce should be a function");if(void 0!==n&&"function"!=typeof n)throw new Error("the third argument of a producer should not be set or a function");var i=void 0;if(p(e)){this.scopes.push([]);var a=this.createDraft(e);try{i=t.call(a,a),this.willFinalize(i,a,!!n);var s=n&&[],l=n&&[];if(void 0===i||i===a)i=this.finalize(a,[],s,l);else{if(a[u].modified)throw new Error("An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.");p(i)&&(i=this.finalize(i)),n&&(s.push({op:"replace",path:[],value:i}),l.push({op:"replace",path:[],value:e}))}}finally{this.currentScope().forEach((function(e){return e.revoke()})),this.scopes.pop()}n&&n(s,l)}else if(void 0===(i=t(e)))return e;return i===c?void 0:i}},{key:"setAutoFreeze",value:function(e){this.autoFreeze=e}},{key:"setUseProxies",value:function(e){this.useProxies=e,f(this,e?q:T)}},{key:"applyPatches",value:function(e,t){return l(e)?F(e,t):this.produce(e,(function(e){return F(e,t)}))}},{key:"finalize",value:function(e,t,n,r){var o=this,i=e[u];if(!i)return Object.isFrozen(e)?e:this.finalizeTree(e);if(i.scope!==this.currentScope())return e;if(!i.modified)return i.base;if(!i.finalized){if(i.finalized=!0,this.finalizeTree(i.draft,t,n,r),this.onDelete)if(this.useProxies){var a=i.assigned;for(var c in a)a[c]||this.onDelete(i,c)}else{var s=i.base,l=i.copy;y(s,(function(e){m(l,e)||o.onDelete(i,e)}))}this.onCopy&&this.onCopy(i),this.autoFreeze&&1===this.scopes.length&&Object.freeze(i.copy),n&&I(i,t,n,r)}return i.copy}},{key:"finalizeTree",value:function(e,t,n,r){var o=this,i=e[u];i&&(this.useProxies||(i.finalizing=!0,i.copy=h(i.draft,!0),i.finalizing=!1),e=i.copy);var a=this.onAssign;return y(e,(function c(s,u,f){if(u===f)throw Error("Immer forbids circular references");var d=!!i&&f===e;if(l(u)){if(u=n&&d&&!i.assigned[s]?o.finalize(u,t.concat(s),n,r):o.finalize(u),Array.isArray(f)||v(f,s)?f[s]=u:Object.defineProperty(f,s,{value:u}),d&&u===i.base[s])return}else{if(d&&b(u,i.base[s]))return;p(u)&&!Object.isFrozen(u)&&y(u,c)}d&&a&&a(i,s,u)})),e}}]),e}()),W=B.produce;B.setAutoFreeze.bind(B),B.setUseProxies.bind(B),B.applyPatches.bind(B);t.a=W}).call(this,n(21))},function(e,t,n){"use strict";var r=n(15);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";
2
- /** @license React v16.13.1
3
- * react-is.production.min.js
4
- *
5
- * Copyright (c) Facebook, Inc. and its affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,c=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,u=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,p=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,y=r?Symbol.for("react.suspense_list"):60120,v=r?Symbol.for("react.memo"):60115,m=r?Symbol.for("react.lazy"):60116,b=r?Symbol.for("react.block"):60121,g=r?Symbol.for("react.fundamental"):60117,w=r?Symbol.for("react.responder"):60118,_=r?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case p:case f:case a:case s:case c:case h:return e;default:switch(e=e&&e.$$typeof){case l:case d:case m:case v:case u:return e;default:return t}}case i:return t}}}function O(e){return x(e)===f}t.AsyncMode=p,t.ConcurrentMode=f,t.ContextConsumer=l,t.ContextProvider=u,t.Element=o,t.ForwardRef=d,t.Fragment=a,t.Lazy=m,t.Memo=v,t.Portal=i,t.Profiler=s,t.StrictMode=c,t.Suspense=h,t.isAsyncMode=function(e){return O(e)||x(e)===p},t.isConcurrentMode=O,t.isContextConsumer=function(e){return x(e)===l},t.isContextProvider=function(e){return x(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return x(e)===d},t.isFragment=function(e){return x(e)===a},t.isLazy=function(e){return x(e)===m},t.isMemo=function(e){return x(e)===v},t.isPortal=function(e){return x(e)===i},t.isProfiler=function(e){return x(e)===s},t.isStrictMode=function(e){return x(e)===c},t.isSuspense=function(e){return x(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===f||e===s||e===c||e===h||e===y||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===v||e.$$typeof===u||e.$$typeof===l||e.$$typeof===d||e.$$typeof===g||e.$$typeof===w||e.$$typeof===_||e.$$typeof===b)},t.typeOf=x},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){"use strict";var r=n(5),o=n(9),i=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},c=Array.isArray,s=Array.prototype.push,u=function(e,t){s.apply(e,c(t)?t:[t])},l=Date.prototype.toISOString,p=o.default,f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:p,formatter:o.formatters[p],indices:!1,serializeDate:function(e){return l.call(e)},skipNulls:!1,strictNullHandling:!1},d=function e(t,n,o,i,a,s,l,p,d,h,y,v,m){var b,g=t;if("function"==typeof l?g=l(n,g):g instanceof Date?g=h(g):"comma"===o&&c(g)&&(g=g.join(",")),null===g){if(i)return s&&!v?s(n,f.encoder,m,"key"):n;g=""}if("string"==typeof(b=g)||"number"==typeof b||"boolean"==typeof b||"symbol"==typeof b||"bigint"==typeof b||r.isBuffer(g))return s?[y(v?n:s(n,f.encoder,m,"key"))+"="+y(s(g,f.encoder,m,"value"))]:[y(n)+"="+y(String(g))];var w,_=[];if(void 0===g)return _;if(c(l))w=l;else{var x=Object.keys(g);w=p?x.sort(p):x}for(var O=0;O<w.length;++O){var S=w[O];a&&null===g[S]||(c(g)?u(_,e(g[S],"function"==typeof o?o(n,S):n,o,i,a,s,l,p,d,h,y,v,m)):u(_,e(g[S],n+(d?"."+S:"["+S+"]"),o,i,a,s,l,p,d,h,y,v,m)))}return _};e.exports=function(e,t){var n,r=e,s=function(e){if(!e)return f;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||f.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=o.default;if(void 0!==e.format){if(!i.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=o.formatters[n],a=f.filter;return("function"==typeof e.filter||c(e.filter))&&(a=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:f.addQueryPrefix,allowDots:void 0===e.allowDots?f.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:f.charsetSentinel,delimiter:void 0===e.delimiter?f.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:f.encode,encoder:"function"==typeof e.encoder?e.encoder:f.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:f.encodeValuesOnly,filter:a,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:f.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:f.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:f.strictNullHandling}}(t);"function"==typeof s.filter?r=(0,s.filter)("",r):c(s.filter)&&(n=s.filter);var l,p=[];if("object"!=typeof r||null===r)return"";l=t&&t.arrayFormat in a?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var h=a[l];n||(n=Object.keys(r)),s.sort&&n.sort(s.sort);for(var y=0;y<n.length;++y){var v=n[y];s.skipNulls&&null===r[v]||u(p,d(r[v],v,h,s.strictNullHandling,s.skipNulls,s.encode?s.encoder:null,s.filter,s.sort,s.allowDots,s.serializeDate,s.formatter,s.encodeValuesOnly,s.charset))}var m=p.join(s.delimiter),b=!0===s.addQueryPrefix?"?":"";return s.charsetSentinel&&("iso-8859-1"===s.charset?b+="utf8=%26%2310003%3B&":b+="utf8=%E2%9C%93&"),m.length>0?b+m:""}},function(e,t,n){"use strict";var r=n(5),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},c=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},s=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},u=function(e,t){if(i(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},l=function(e,t,n,r){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,c=n.depth>0&&/(\[[^[\]]*])/.exec(i),u=c?i.slice(0,c.index):i,l=[];if(u){if(!n.plainObjects&&o.call(Object.prototype,u)&&!n.allowPrototypes)return;l.push(u)}for(var p=0;n.depth>0&&null!==(c=a.exec(i))&&p<n.depth;){if(p+=1,!n.plainObjects&&o.call(Object.prototype,c[1].slice(1,-1))&&!n.allowPrototypes)return;l.push(c[1])}return c&&l.push("["+i.slice(c.index)+"]"),function(e,t,n,r){for(var o=r?t:s(t,n),i=e.length-1;i>=0;--i){var a,c=e[i];if("[]"===c&&n.parseArrays)a=[].concat(o);else{a=n.plainObjects?Object.create(null):{};var u="["===c.charAt(0)&&"]"===c.charAt(c.length-1)?c.slice(1,-1):c,l=parseInt(u,10);n.parseArrays||""!==u?!isNaN(l)&&c!==u&&String(l)===u&&l>=0&&n.parseArrays&&l<=n.arrayLimit?(a=[])[l]=o:a[u]=o:a={0:o}}o=a}return o}(l,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var p="string"==typeof e?function(e,t){var n,l={},p=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,f=t.parameterLimit===1/0?void 0:t.parameterLimit,d=p.split(t.delimiter,f),h=-1,y=t.charset;if(t.charsetSentinel)for(n=0;n<d.length;++n)0===d[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===d[n]?y="utf-8":"utf8=%26%2310003%3B"===d[n]&&(y="iso-8859-1"),h=n,n=d.length);for(n=0;n<d.length;++n)if(n!==h){var v,m,b=d[n],g=b.indexOf("]="),w=-1===g?b.indexOf("="):g+1;-1===w?(v=t.decoder(b,a.decoder,y,"key"),m=t.strictNullHandling?null:""):(v=t.decoder(b.slice(0,w),a.decoder,y,"key"),m=u(s(b.slice(w+1),t),(function(e){return t.decoder(e,a.decoder,y,"value")}))),m&&t.interpretNumericEntities&&"iso-8859-1"===y&&(m=c(m)),b.indexOf("[]=")>-1&&(m=i(m)?[m]:m),o.call(l,v)?l[v]=r.combine(l[v],m):l[v]=m}return l}(e,n):e,f=n.plainObjects?Object.create(null):{},d=Object.keys(p),h=0;h<d.length;++h){var y=d[h],v=l(y,p[y],n,"string"==typeof e);f=r.merge(f,v,n)}return r.compact(f)}},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function c(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var s,u=[],l=!1,p=-1;function f(){l&&s&&(l=!1,s.length?u=s.concat(u):p=-1,u.length&&d())}function d(){if(!l){var e=c(f);l=!0;for(var t=u.length;t;){for(s=u,u=[];++p<t;)s&&s[p].run();p=-1,t=u.length}s=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function y(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new h(e,t)),1!==u.length||l||c(d)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=y,o.addListener=y,o.once=y,o.off=y,o.removeListener=y,o.removeAllListeners=y,o.emit=y,o.prependListener=y,o.prependOnceListener=y,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){var r=n(23);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(29)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(24);(e.exports=n(25)(!1)).push([e.i,'.empty{border:1px solid #f0f0f0;text-align:center;padding:20px}.empty__label{margin-bottom:20px;font-size:17px}.empty__search{display:flex;align-items:stretch}.empty__search__input{flex:1;margin-right:15px;position:relative}.empty__search__input:before{content:"";width:20px;height:20px;font-size:20px;position:absolute;top:50%;left:12px;transform:translateY(-50%);background:url('+r(n(26))+') center center;background-size:contain}.empty__search__input input[type="text"]{padding-left:38px}.empty__products{margin-top:20px;opacity:1;transition:opacity 0.2s ease-in-out}.empty__products.loading{opacity:0.6}.empty__product{padding:8px;border-radius:3px;border:1px solid #f0f0f0;margin-bottom:3px;overflow:hidden;cursor:pointer;background-color:transparent;appearance:none;color:#34363a;font:inherit;display:flex;align-items:center;width:100%;box-sizing:border-box}.empty__product:hover{border-color:var(--accent-color)}.empty__product__image{display:block;width:60px;height:60px;margin-right:10px;background-size:cover;background-position:center center;border-radius:3px 3px 0 0}.empty__product__content{line-height:1.2;text-align:left;flex:1}.empty__product__code{font-size:13px;margin-top:2px;color:#999}.DatoCMS-button--primary{position:relative}.DatoCMS-button--primary.loading{padding-right:33px}.DatoCMS-button--primary.loading .spinner{opacity:1}.DatoCMS-button--primary .spinner{border:3px solid #FFF;border-top-color:rgba(0,0,0,0);border-left-color:rgba(0,0,0,0);width:8px;height:8px;opacity:0.8;border-radius:50%;animation:loadingSpinner 0.7s infinite linear;margin-left:15px;vertical-align:middle;position:absolute;right:10px;top:50%;margin-top:-7px;opacity:0;transition:opacity 0.2s ease-in-out}@keyframes loadingSpinner{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.value{border:1px solid #f0f0f0;text-align:center;padding:20px;opacity:1;transition:opacity 0.2s ease-in-out;position:relative}.value.loading{opacity:0.6}.value__product{display:flex;align-items:center}.value__product__image{width:150px;margin-right:20px;background-size:cover;border-radius:4px;background-position:center center;border-radius:1px solid #f0f0f0;padding:2px}.value__product__image:before{content:"";display:block;padding-top:100%}.value__product__info{flex:1;text-align:left}.value__product__title{margin-bottom:3px}.value__product__title a{font-size:17px;text-decoration:none}.value__product__title a:hover{text-decoration:underline}.value__product__title a:after{content:"";width:14px;height:14px;display:inline-block;background:url('+r(n(27))+") center center;background-size:contain;margin-left:8px;vertical-align:middle}.value__product__description{color:#848484;font-size:0.9em;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.value__product__code{font-size:0.9em;color:#848484;margin-bottom:10px}.value__reset{position:absolute;top:20px;right:20px;width:20px;height:20px;background:url("+r(n(28))+") center center;background-size:contain;border:0;background-color:transparent;opacity:0.6;transition:opacity 0.2s ease-in-out;cursor:pointer}.value__reset:hover{opacity:0.8}\n",""])},function(e,t){e.exports=function(e){return"string"!=typeof e?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),/["'() \t\n]/.test(e)?'"'+e.replace(/"/g,'\\"').replace(/\n/g,"\\n")+'"':e)}},function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var o=(a=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),i=r.sources.map((function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"}));return[n].concat(i).concat([o]).join("\n")}var a;return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n})).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(r[i]=!0)}for(o=0;o<e.length;o++){var a=e[o];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},function(e,t){e.exports="\"data:image/svg+xml,%3C?xml version='1.0' encoding='utf-8'?%3E %3C!-- Generated by IcoMoon.io --%3E %3C!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3E %3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='512' height='512' viewBox='0 0 512 512'%3E %3Cpath fill='%23888' d='M203 299c53 0 96-43 96-96s-43-96-96-96-96 43-96 96 43 96 96 96zM331 299l106 106-32 32-106-106v-17l-6-6c-24 21-56 33-90 33-77 0-139-61-139-138s62-139 139-139 138 62 138 139c0 34-12 66-33 90l6 6h17z'%3E%3C/path%3E %3C/svg%3E\""},function(e,t){e.exports="\"data:image/svg+xml,%3C!-- Generated by IcoMoon.io --%3E %3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' width='512' height='512' viewBox='0 0 512 512'%3E %3Ctitle%3Eexternal-link%3C/title%3E %3Cpath d='M402.286 265.143v91.428c0 45.428-36.857 82.286-82.286 82.286h-237.714c-45.428 0-82.285-36.857-82.285-82.286v-237.714c0-45.428 36.857-82.285 82.285-82.285h201.143c5.143 0 9.143 4 9.143 9.143v18.285c0 5.143-4 9.143-9.143 9.143h-201.143c-25.143 0-45.715 20.572-45.715 45.715v237.714c0 25.143 20.572 45.714 45.715 45.714h237.715c25.143 0 45.714-20.572 45.714-45.714v-91.428c0-5.143 4-9.143 9.143-9.143h18.286c5.143 0 9.143 4 9.143 9.143zM512 18.285v146.286c0 10-8.286 18.286-18.286 18.286-4.857 0-9.428-2-12.857-5.428l-50.286-50.285-186.286 186.286c-1.714 1.714-4.286 2.857-6.572 2.857s-4.857-1.143-6.572-2.857l-32.572-32.572c-1.714-1.714-2.857-4.286-2.857-6.572s1.143-4.857 2.857-6.572l186.286-186.286-50.286-50.285c-3.428-3.428-5.428-8-5.428-12.857 0-10 8.286-18.285 18.286-18.285h146.286c10 0 18.286 8.286 18.286 18.285z'%3E%3C/path%3E %3C/svg%3E\""},function(e,t){e.exports="\"data:image/svg+xml,%3C!-- Generated by IcoMoon.io --%3E %3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' width='512' height='512' viewBox='0 0 512 512'%3E %3Ctitle%3Eclose%3C/title%3E %3Cpath d='M75.008 436.992c-48.218-46.617-78.154-111.881-78.154-184.138 0-141.385 114.615-256 256-256 72.257 0 137.522 29.936 184.069 78.082l0.069 0.072c44.462 45.989 71.862 108.718 71.862 177.846 0 141.385-114.615 256-256 256-69.128 0-131.857-27.399-177.918-71.932l0.072 0.069zM291.84 256l72.448-72.448-36.096-36.096-72.192 72.448-72.448-72.448-36.096 36.096 72.448 72.448-72.448 72.448 36.096 36.096 72.448-72.448 72.448 72.448 36.096-36.096-72.448-72.448z'%3E%3C/path%3E %3C/svg%3E\""},function(e,t,n){var r,o,i={},a=(r=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===o&&(o=r.apply(this,arguments)),o}),c=function(e,t){return t?t.querySelector(e):document.querySelector(e)},s=function(e){var t={};return function(e,n){if("function"==typeof e)return e();if(void 0===t[e]){var r=c.call(this,e,n);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}}(),u=null,l=0,p=[],f=n(30);function d(e,t){for(var n=0;n<e.length;n++){var r=e[n],o=i[r.id];if(o){o.refs++;for(var a=0;a<o.parts.length;a++)o.parts[a](r.parts[a]);for(;a<r.parts.length;a++)o.parts.push(g(r.parts[a],t))}else{var c=[];for(a=0;a<r.parts.length;a++)c.push(g(r.parts[a],t));i[r.id]={id:r.id,refs:1,parts:c}}}}function h(e,t){for(var n=[],r={},o=0;o<e.length;o++){var i=e[o],a=t.base?i[0]+t.base:i[0],c={css:i[1],media:i[2],sourceMap:i[3]};r[a]?r[a].parts.push(c):n.push(r[a]={id:a,parts:[c]})}return n}function y(e,t){var n=s(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=p[p.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),p.push(t);else if("bottom"===e.insertAt)n.appendChild(t);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var o=s(e.insertAt.before,n);n.insertBefore(t,o)}}function v(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=p.indexOf(e);t>=0&&p.splice(t,1)}function m(e){var t=document.createElement("style");if(void 0===e.attrs.type&&(e.attrs.type="text/css"),void 0===e.attrs.nonce){var r=function(){0;return n.nc}();r&&(e.attrs.nonce=r)}return b(t,e.attrs),y(e,t),t}function b(e,t){Object.keys(t).forEach((function(n){e.setAttribute(n,t[n])}))}function g(e,t){var n,r,o,i;if(t.transform&&e.css){if(!(i="function"==typeof t.transform?t.transform(e.css):t.transform.default(e.css)))return function(){};e.css=i}if(t.singleton){var a=l++;n=u||(u=m(t)),r=x.bind(null,n,a,!1),o=x.bind(null,n,a,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",b(t,e.attrs),y(e,t),t}(t),r=S.bind(null,n,t),o=function(){v(n),n.href&&URL.revokeObjectURL(n.href)}):(n=m(t),r=O.bind(null,n),o=function(){v(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=a()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=h(e,t);return d(n,t),function(e){for(var r=[],o=0;o<n.length;o++){var a=n[o];(c=i[a.id]).refs--,r.push(c)}e&&d(h(e,t),t);for(o=0;o<r.length;o++){var c;if(0===(c=r[o]).refs){for(var s=0;s<c.parts.length;s++)c.parts[s]();delete i[c.id]}}}};var w,_=(w=[],function(e,t){return w[e]=t,w.filter(Boolean).join("\n")});function x(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=_(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function O(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function S(e,t,n){var r=n.css,o=n.sourceMap,i=void 0===t.convertToAbsoluteUrls&&o;(t.convertToAbsoluteUrls||i)&&(r=f(r)),o&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var a=new Blob([r],{type:"text/css"}),c=e.href;e.href=URL.createObjectURL(a),c&&URL.revokeObjectURL(c)}},function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,r=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(e,t){var o,i=t.trim().replace(/^"(.*)"$/,(function(e,t){return t})).replace(/^'(.*)'$/,(function(e,t){return t}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(i)?e:(o=0===i.indexOf("//")?i:0===i.indexOf("/")?n+i:r+i.replace(/^\.\//,""),"url("+JSON.stringify(o)+")")}))}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),i=n(1),a=n(3),c="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 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 g image line linearGradient mask path pattern polygon polyline radialGradient rect stop svg text tspan".split(" "),s="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,u="undefined"!=typeof Symbol&&Symbol.for?Symbol.for("__preactCompatWrapper"):"__preactCompatWrapper",l={constructor:1,render:1,shouldComponentUpdate:1,componentWillReceiveProps:1,componentWillUpdate:1,componentDidUpdate:1,componentWillMount:1,componentDidMount:1,componentWillUnmount:1,componentDidUnmount:1},p=/^(?:accent|alignment|arabic|baseline|cap|clip|color|fill|flood|font|glyph|horiz|marker|overline|paint|stop|strikethrough|stroke|text|underline|unicode|units|v|vector|vert|word|writing|x)[A-Z]/,f={},d=!1;try{d=!1}catch(e){}function h(){return null}var y=Object(i.h)("a",null).constructor;y.prototype.$$typeof=s,y.prototype.preactCompatUpgraded=!1,y.prototype.preactCompatNormalized=!1,Object.defineProperty(y.prototype,"type",{get:function(){return this.nodeName},set:function(e){this.nodeName=e},configurable:!0}),Object.defineProperty(y.prototype,"props",{get:function(){return this.attributes},set:function(e){this.attributes=e},configurable:!0});var v=i.options.event;i.options.event=function(e){return v&&(e=v(e)),e.persist=Object,e.nativeEvent=e,e};var m=i.options.vnode;function b(e,t,n){var r=t&&t._preactCompatRendered&&t._preactCompatRendered.base;r&&r.parentNode!==t&&(r=null),!r&&t&&(r=t.firstElementChild);for(var o=t.childNodes.length;o--;)t.childNodes[o]!==r&&t.removeChild(t.childNodes[o]);var a=Object(i.render)(e,t,r);return t&&(t._preactCompatRendered=a&&(a._component||{base:a})),"function"==typeof n&&n(),a&&a._component||a}i.options.vnode=function(e){if(!e.preactCompatUpgraded){e.preactCompatUpgraded=!0;var t=e.nodeName,n=e.attributes=null==e.attributes?{}:A({},e.attributes);"function"==typeof t?(!0===t[u]||t.prototype&&"isReactComponent"in t.prototype)&&(e.children&&""===String(e.children)&&(e.children=void 0),e.children&&(n.children=e.children),e.preactCompatNormalized||T(e),function(e){var t=e.nodeName,n=e.attributes;e.attributes={},t.defaultProps&&A(e.attributes,t.defaultProps);n&&A(e.attributes,n)}(e)):(e.children&&""===String(e.children)&&(e.children=void 0),e.children&&(n.children=e.children),n.defaultValue&&(n.value||0===n.value||(n.value=n.defaultValue),delete n.defaultValue),function(e,t){var n,r,o;if(t){for(o in t)if(n=p.test(o))break;if(n)for(o in r=e.attributes={},t)t.hasOwnProperty(o)&&(r[p.test(o)?o.replace(/([A-Z0-9])/,"-$1").toLowerCase():o]=t[o])}}(e,n))}m&&m(e)};var g=function(){};function w(e,t,n,r){var o=b(Object(i.h)(g,{context:e.context},t),n),a=o._component||o.base;return r&&r.call(a,o),a}function _(e){w(this,e.vnode,e.container)}g.prototype.getChildContext=function(){return this.props.context},g.prototype.render=function(e){return e.children[0]};var x,O=[],S={map:function(e,t,n){return null==e?null:(e=S.toArray(e),n&&n!==e&&(t=t.bind(n)),e.map(t))},forEach:function(e,t,n){if(null==e)return null;e=S.toArray(e),n&&n!==e&&(t=t.bind(n)),e.forEach(t)},count:function(e){return e&&e.length||0},only:function(e){if(1!==(e=S.toArray(e)).length)throw new Error("Children.only() expects only one child.");return e[0]},toArray:function(e){return null==e?[]:O.concat(e)}};function P(e){return N.bind(null,e)}for(var C={},j=c.length;j--;)C[c[j]]=P(c[j]);function E(e,t){for(var n=t||0;n<e.length;n++){var r=e[n];Array.isArray(r)?E(r):r&&"object"==typeof r&&!R(r)&&(r.props&&r.type||r.attributes&&r.nodeName||r.children)&&(e[n]=N(r.type||r.nodeName,r.props||r.attributes,r.children))}}function k(e){var t,n=e[u];return n?!0===n?e:n:(n=z({displayName:(t=e).displayName||t.name,render:function(){return t(this.props,this.context)}}),Object.defineProperty(n,u,{configurable:!0,value:!0}),n.displayName=e.displayName,n.propTypes=e.propTypes,n.defaultProps=e.defaultProps,Object.defineProperty(e,u,{configurable:!0,value:n}),n)}function N(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return E(e,2),T(i.h.apply(void 0,e))}function T(e){var t;e.preactCompatNormalized=!0,function(e){var t=e.attributes||(e.attributes={});D.enumerable="className"in t,t.className&&(t.class=t.className);Object.defineProperty(t,"className",D)}(e),"function"!=typeof(t=e.nodeName)||t.prototype&&t.prototype.render||(e.nodeName=k(e.nodeName));var n,r,o=e.attributes.ref,i=o&&typeof o;return!x||"string"!==i&&"number"!==i||(e.attributes.ref=(n=o,(r=x)._refProxies[n]||(r._refProxies[n]=function(e){r&&r.refs&&(r.refs[n]=e,null===e&&(delete r._refProxies[n],r=null))}))),function(e){var t=e.nodeName,n=e.attributes;if(!n||"string"!=typeof t)return;var r={};for(var o in n)r[o.toLowerCase()]=o;r.ondoubleclick&&(n.ondblclick=n[r.ondoubleclick],delete n[r.ondoubleclick]);if(r.onchange&&("textarea"===t||"input"===t.toLowerCase()&&!/^fil|che|rad/i.test(n.type))){var i=r.oninput||"oninput";n[i]||(n[i]=q([n[i],n[r.onchange]]),delete n[r.onchange])}}(e),e}function R(e){return e&&(e instanceof y||e.$$typeof===s)}var D={configurable:!0,get:function(){return this.class},set:function(e){this.class=e}};function A(e,t){for(var n=arguments,r=1,o=void 0;r<arguments.length;r++)if(o=n[r])for(var i in o)o.hasOwnProperty(i)&&(e[i]=o[i]);return e}function M(e,t){for(var n in e)if(!(n in t))return!0;for(var r in t)if(e[r]!==t[r])return!0;return!1}function U(){}function z(e){function t(e,t){!function(e){for(var t in e){var n=e[t];"function"!=typeof n||n.__bound||l.hasOwnProperty(t)||((e[t]=n.bind(e)).__bound=!0)}}(this),W.call(this,e,t,f),I.call(this,e,t)}return(e=A({constructor:t},e)).mixins&&function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=q(t[n].concat(e[n]||O),"getDefaultProps"===n||"getInitialState"===n||"getChildContext"===n))}(e,function(e){for(var t={},n=0;n<e.length;n++){var r=e[n];for(var o in r)r.hasOwnProperty(o)&&"function"==typeof r[o]&&(t[o]||(t[o]=[])).push(r[o])}return t}(e.mixins)),e.statics&&A(t,e.statics),e.propTypes&&(t.propTypes=e.propTypes),e.defaultProps&&(t.defaultProps=e.defaultProps),e.getDefaultProps&&(t.defaultProps=e.getDefaultProps.call(t)),U.prototype=W.prototype,t.prototype=A(new U,e),t.displayName=e.displayName||"Component",t}function L(e,t,n){if("string"==typeof t&&(t=e.constructor.prototype[t]),"function"==typeof t)return t.apply(e,n)}function q(e,t){return function(){for(var n,r=arguments,o=this,i=0;i<e.length;i++){var a=L(o,e[i],r);if(t&&null!=a)for(var c in n||(n={}),a)a.hasOwnProperty(c)&&(n[c]=a[c]);else void 0!==a&&(n=a)}return n}}function I(e,t){F.call(this,e,t),this.componentWillReceiveProps=q([F,this.componentWillReceiveProps||"componentWillReceiveProps"]),this.render=q([F,$,this.render||"render",B])}function F(e,t){if(e){var n=e.children;if(n&&Array.isArray(n)&&1===n.length&&("string"==typeof n[0]||"function"==typeof n[0]||n[0]instanceof y)&&(e.children=n[0],e.children&&"object"==typeof e.children&&(e.children.length=1,e.children[0]=e.children)),d){var r="function"==typeof this?this:this.constructor,i=this.propTypes||r.propTypes,a=this.displayName||r.name;i&&o.a.checkPropTypes(i,e,"prop",a)}}}function $(e){x=this}function B(){x===this&&(x=null)}function W(e,t,n){i.Component.call(this,e,t),this.state=this.getInitialState?this.getInitialState():{},this.refs={},this._refProxies={},n!==f&&I.call(this,e,t)}function V(e,t){W.call(this,e,t)}A(W.prototype=new i.Component,{constructor:W,isReactComponent:{},replaceState:function(e,t){for(var n in this.setState(e,t),this.state)n in e||delete this.state[n]},getDOMNode:function(){return this.base},isMounted:function(){return!!this.base}}),U.prototype=W.prototype,V.prototype=new U,V.prototype.isPureReactComponent=!0,V.prototype.shouldComponentUpdate=function(e,t){return M(this.props,e)||M(this.state,t)};var H={version:"15.1.0",DOM:C,PropTypes:o.a,Children:S,render:b,hydrate:b,createClass:z,createContext:a.createContext,createPortal:function(e,t){return Object(i.h)(_,{vnode:e,container:t})},createFactory:P,createElement:N,cloneElement:function(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];if(!R(e))return e;var o=e.attributes||e.props,a=Object(i.h)(e.nodeName||e.type,A({},o),e.children||o&&o.children),c=[a,t];return n&&n.length?c.push(n):t&&t.children&&c.push(t.children),T(i.cloneElement.apply(void 0,c))},createRef:i.createRef,isValidElement:R,findDOMNode:function(e){return e&&(e.base||1===e.nodeType&&e)||null},unmountComponentAtNode:function(e){var t=e._preactCompatRendered&&e._preactCompatRendered.base;return!(!t||t.parentNode!==e)&&(Object(i.render)(Object(i.h)(h),e,t),!0)},Component:W,PureComponent:V,unstable_renderSubtreeIntoContainer:w,unstable_batchedUpdates:function(e){e()},__spread:A};function G(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Q=o.a.shape({trySubscribe:o.a.func.isRequired,tryUnsubscribe:o.a.func.isRequired,notifyNestedSubs:o.a.func.isRequired,isSubscribed:o.a.func.isRequired}),K=o.a.shape({subscribe:o.a.func.isRequired,dispatch:o.a.func.isRequired,getState:o.a.func.isRequired});var J=function(e){var t;void 0===e&&(e="store");var n=e+"Subscription",r=function(t){G(o,t);var r=o.prototype;function o(n,r){var o;return(o=t.call(this,n,r)||this)[e]=n.store,o}return r.getChildContext=function(){var t;return(t={})[e]=this[e],t[n]=null,t},r.render=function(){return S.only(this.props.children)},o}(W);return r.propTypes={store:K.isRequired,children:o.a.element.isRequired},r.childContextTypes=((t={})[e]=K.isRequired,t[n]=Q,t),r}();function Y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Z(){return(Z=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)}function X(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var ee=n(10),te=n.n(ee),ne=n(4),re=n.n(ne),oe=n(6),ie={notify:function(){}};var ae=function(){function e(e,t,n){this.store=e,this.parentSub=t,this.onStateChange=n,this.unsubscribe=null,this.listeners=ie}var t=e.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.isSubscribed=function(){return Boolean(this.unsubscribe)},t.trySubscribe=function(){var e,t;this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.onStateChange):this.store.subscribe(this.onStateChange),this.listeners=(e=[],t=[],{clear:function(){t=null,e=null},notify:function(){for(var n=e=t,r=0;r<n.length;r++)n[r]()},get:function(){return t},subscribe:function(n){var r=!0;return t===e&&(t=e.slice()),t.push(n),function(){r&&null!==e&&(r=!1,t===e&&(t=e.slice()),t.splice(t.indexOf(n),1))}}}))},t.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=ie)},e}(),ce=void 0!==H.forwardRef,se=0,ue={};function le(){}function pe(e,t){var n,r;void 0===t&&(t={});var o=t,i=o.getDisplayName,a=void 0===i?function(e){return"ConnectAdvanced("+e+")"}:i,c=o.methodName,s=void 0===c?"connectAdvanced":c,u=o.renderCountProp,l=void 0===u?void 0:u,p=o.shouldHandleStateChanges,f=void 0===p||p,d=o.storeKey,h=void 0===d?"store":d,y=o.withRef,v=void 0!==y&&y,m=X(o,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]),b=h+"Subscription",g=se++,w=((n={})[h]=K,n[b]=Q,n),_=((r={})[b]=Q,r);return function(t){re()(Object(oe.isValidElementType)(t),"You must pass a component to the function returned by "+s+". Instead received "+JSON.stringify(t));var n=t.displayName||t.name||"Component",r=a(n),o=Z({},m,{getDisplayName:a,methodName:s,renderCountProp:l,shouldHandleStateChanges:f,storeKey:h,withRef:v,displayName:r,wrappedComponentName:n,WrappedComponent:t}),i=function(n){function i(e,t){var o;return(o=n.call(this,e,t)||this).version=g,o.state={},o.renderCount=0,o.store=e[h]||t[h],o.propsMode=Boolean(e[h]),o.setWrappedInstance=o.setWrappedInstance.bind(Y(Y(o))),re()(o.store,'Could not find "'+h+'" in either the context or props of "'+r+'". Either wrap the root component in a <Provider>, or explicitly pass "'+h+'" as a prop to "'+r+'".'),o.initSelector(),o.initSubscription(),o}G(i,n);var a=i.prototype;return a.getChildContext=function(){var e,t=this.propsMode?null:this.subscription;return(e={})[b]=t||this.context[b],e},a.componentDidMount=function(){f&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},a.componentWillReceiveProps=function(e){this.selector.run(e)},a.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},a.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.notifyNestedSubs=le,this.store=null,this.selector.run=le,this.selector.shouldComponentUpdate=!1},a.getWrappedInstance=function(){return re()(v,"To access the wrapped instance, you need to specify { withRef: true } in the options argument of the "+s+"() call."),this.wrappedInstance},a.setWrappedInstance=function(e){this.wrappedInstance=e},a.initSelector=function(){var t=e(this.store.dispatch,o);this.selector=function(e,t){var n={run:function(r){try{var o=e(t.getState(),r);(o!==n.props||n.error)&&(n.shouldComponentUpdate=!0,n.props=o,n.error=null)}catch(e){n.shouldComponentUpdate=!0,n.error=e}}};return n}(t,this.store),this.selector.run(this.props)},a.initSubscription=function(){if(f){var e=(this.propsMode?this.props:this.context)[b];this.subscription=new ae(this.store,e,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},a.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(ue)):this.notifyNestedSubs()},a.notifyNestedSubsOnComponentDidUpdate=function(){this.componentDidUpdate=void 0,this.notifyNestedSubs()},a.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},a.addExtraProps=function(e){if(!(v||l||this.propsMode&&this.subscription))return e;var t=Z({},e);return v&&(t.ref=this.setWrappedInstance),l&&(t[l]=this.renderCount++),this.propsMode&&this.subscription&&(t[b]=this.subscription),t},a.render=function(){var e=this.selector;if(e.shouldComponentUpdate=!1,e.error)throw e.error;return N(t,this.addExtraProps(e.props))},i}(W);return ce&&(i.prototype.UNSAFE_componentWillReceiveProps=i.prototype.componentWillReceiveProps,delete i.prototype.componentWillReceiveProps),i.WrappedComponent=t,i.displayName=r,i.childContextTypes=_,i.contextTypes=w,i.propTypes=w,te()(i,t)}}var fe=Object.prototype.hasOwnProperty;function de(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function he(e,t){if(de(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++)if(!fe.call(t,n[o])||!de(e[n[o]],t[n[o]]))return!1;return!0}n(7);var ye=function(){return Math.random().toString(36).substring(7).split("").join(".")};ye(),ye();function ve(e,t){return function(){return t(e.apply(this,arguments))}}function me(e){return function(t,n){var r=e(t,n);function o(){return r}return o.dependsOnOwnProps=!1,o}}function be(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function ge(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=be(e);var o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=be(o),o=r(t,n)),o},r}}var we=[function(e){return"function"==typeof e?ge(e):void 0},function(e){return e?void 0:me((function(e){return{dispatch:e}}))},function(e){return e&&"object"==typeof e?me((function(t){return function(e,t){if("function"==typeof e)return ve(e,t);if("object"!=typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');var n={};for(var r in e){var o=e[r];"function"==typeof o&&(n[r]=ve(o,t))}return n}(e,t)})):void 0}];var _e=[function(e){return"function"==typeof e?ge(e):void 0},function(e){return e?void 0:me((function(){return{}}))}];function xe(e,t,n){return Z({},n,e,t)}var Oe=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var r,o=n.pure,i=n.areMergedPropsEqual,a=!1;return function(t,n,c){var s=e(t,n,c);return a?o&&i(s,r)||(r=s):(a=!0,r=s),r}}}(e):void 0},function(e){return e?void 0:function(){return xe}}];function Se(e,t,n,r){return function(o,i){return n(e(o,i),t(r,i),i)}}function Pe(e,t,n,r,o){var i,a,c,s,u,l=o.areStatesEqual,p=o.areOwnPropsEqual,f=o.areStatePropsEqual,d=!1;function h(o,d){var h,y,v=!p(d,a),m=!l(o,i);return i=o,a=d,v&&m?(c=e(i,a),t.dependsOnOwnProps&&(s=t(r,a)),u=n(c,s,a)):v?(e.dependsOnOwnProps&&(c=e(i,a)),t.dependsOnOwnProps&&(s=t(r,a)),u=n(c,s,a)):m?(h=e(i,a),y=!f(h,c),c=h,y&&(u=n(c,s,a)),u):u}return function(o,l){return d?h(o,l):(c=e(i=o,a=l),s=t(r,a),u=n(c,s,a),d=!0,u)}}function Ce(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,o=t.initMergeProps,i=X(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),a=n(e,i),c=r(e,i),s=o(e,i);return(i.pure?Pe:Se)(a,c,s,e,i)}function je(e,t,n){for(var r=t.length-1;r>=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function Ee(e,t){return e===t}var ke,Ne,Te,Re,De,Ae,Me,Ue,ze,Le,qe,Ie,Fe=(Te=(Ne=void 0===ke?{}:ke).connectHOC,Re=void 0===Te?pe:Te,De=Ne.mapStateToPropsFactories,Ae=void 0===De?_e:De,Me=Ne.mapDispatchToPropsFactories,Ue=void 0===Me?we:Me,ze=Ne.mergePropsFactories,Le=void 0===ze?Oe:ze,qe=Ne.selectorFactory,Ie=void 0===qe?Ce:qe,function(e,t,n,r){void 0===r&&(r={});var o=r,i=o.pure,a=void 0===i||i,c=o.areStatesEqual,s=void 0===c?Ee:c,u=o.areOwnPropsEqual,l=void 0===u?he:u,p=o.areStatePropsEqual,f=void 0===p?he:p,d=o.areMergedPropsEqual,h=void 0===d?he:d,y=X(o,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),v=je(e,Ae,"mapStateToProps"),m=je(t,Ue,"mapDispatchToProps"),b=je(n,Le,"mergeProps");return Re(Ie,Z({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:v,initMapDispatchToProps:m,initMergeProps:b,pure:a,areStatesEqual:s,areOwnPropsEqual:l,areStatePropsEqual:f,areMergedPropsEqual:h},y))}),$e=n(2),Be=n.n($e),We=n(12),Ve=n.n(We);function He(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Ge,Qe=function(){function e(t){var n=t.baseEndpoint,r=t.clientId;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.baseEndpoint=n,this.clientId=r}var t,n,r;return t=e,(n=[{key:"productsMatching",value:function(e){return this.get("/api/skus",{"filter[q][code_or_name_or_description_cont]":e,"page[size]":e?8:4}).then((function(e){return e.data}))}},{key:"productByCode",value:function(e){return this.get("/api/skus",{"filter[q][code_cont]":e}).then((function(e){return e.data[0]}))}},{key:"getToken",value:function(){var e=this;return this.token?Promise.resolve(this.token):fetch("".concat(this.baseEndpoint,"/oauth/token"),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({grant_type:"client_credentials",client_id:this.clientId})}).then((function(e){return e.json()})).then((function(t){return e.token=t.access_token,e.token}))}},{key:"get",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.getToken().then((function(r){return fetch("".concat(t.baseEndpoint).concat(e).concat(Ve.a.stringify(n,{addQueryPrefix:!0})),{headers:{accept:"application/vnd.api+json",authorization:"Bearer ".concat(r)}})})).then((function(e){return e.json()}))}}])&&He(t.prototype,n),r&&He(t,r),e}(),Ke=n(8),Je=n.n(Ke),Ye=n(13),Ze=new Je.a({query:null,products:{},searches:{}}).addMiddleware(Ke.thunk),Xe=function(e){return function(t){return Object(Ye.a)(t,e)}},et=Ze;function tt(e){return(tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ot(e,t){return!t||"object"!==tt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function it(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function at(e){return(at=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ct(e,t){return(ct=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var st,ut=Fe((function(e){var t=e.searches[e.query]||{status:"loading",result:[]};return{query:e.query,status:t.status,products:t.result.map((function(t){return e.products[t].result}))}}))(Ge=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ct(e,t)}(c,e);var t,n,r,i,a=(t=c,function(){var e,n=at(t);if(it()){var r=at(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return ot(this,e)});function c(){var e;nt(this,c);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=a.call.apply(a,[this].concat(n))).propTypes={client:o.a.instanceOf(Qe).isRequired,onSelect:o.a.func.isRequired,dispatch:o.a.func.isRequired,query:o.a.string,status:o.a.string.isRequired,products:o.a.array},e}return n=c,(r=[{key:"componentDidMount",value:function(){var e=this.props.query;this.performSearch(e)}},{key:"performSearch",value:function(e){var t=this.props,n=t.client;(0,t.dispatch)(function(e,t){return function(){return function(n){return n(Xe((function(t){t.searches[e]=t.searches[e]||{result:[]},t.searches[e].status="loading",t.query=e}))),t.productsMatching(e).then((function(t){n(Xe((function(n){n.searches[e].status="success",n.searches[e].result=t.map((function(e){return e.attributes.code})),t.forEach((function(e){n.products[e.attributes.code]=n.products[e.attributes.code]||{},n.products[e.attributes.code].result=e}))})))}))}}}(e,n))}},{key:"handleSubmit",value:function(e){e.preventDefault(),this.performSearch(this.el.value)}},{key:"handleSelect",value:function(e,t){var n=this.props.onSelect;t.preventDefault(),n(e)}},{key:"renderResult",value:function(e){return H.createElement("button",{className:"empty__product",type:"button",key:e.id,onClick:this.handleSelect.bind(this,e)},H.createElement("div",{className:"empty__product__image",style:{backgroundImage:"url(".concat(e.attributes.image_url,")")}}),H.createElement("div",{className:"empty__product__content"},H.createElement("div",{className:"empty__product__title"},e.attributes.name),H.createElement("div",{className:"empty__product__code"},e.attributes.code)))}},{key:"render",value:function(){var e=this,t=this.props,n=t.products,r=t.status;return H.createElement("div",{className:"empty"},H.createElement("div",{className:"empty__label"},"No SKU selected"),H.createElement("form",{className:"empty__search",onSubmit:this.handleSubmit.bind(this)},H.createElement("div",{className:"empty__search__input"},H.createElement("input",{placeholder:"Search for SKU or titles... (ie. baseball cap)",type:"text",ref:function(t){e.el=t}})),H.createElement("button",{className:Be()("DatoCMS-button--primary",{loading:"loading"===r}),type:"submit"},"Search",H.createElement("span",{className:"spinner"}))),n&&H.createElement("div",{className:Be()("empty__products",{loading:"loading"===r})},n.map(this.renderResult,this)))}}])&&rt(n.prototype,r),i&&rt(n,i),c}(W))||Ge;function lt(e){return(lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function pt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ft(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function dt(e,t){return!t||"object"!==lt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ht(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function yt(e){return(yt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function vt(e,t){return(vt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var mt=Fe((function(e,t){var n=e.products[t.value];return{status:n&&n.status?n.status:"loading",product:n&&n.result}}))(st=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&vt(e,t)}(c,e);var t,n,r,i,a=(t=c,function(){var e,n=yt(t);if(ht()){var r=yt(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return dt(this,e)});function c(){var e;pt(this,c);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=a.call.apply(a,[this].concat(n))).propTypes={value:o.a.string.isRequired,status:o.a.string.isRequired,product:o.a.object,client:o.a.instanceOf(Qe).isRequired,onReset:o.a.func.isRequired,dispatch:o.a.func.isRequired},e}return n=c,(r=[{key:"componentDidMount",value:function(){var e=this.props.value;this.findProduct(e)}},{key:"componentWillReceiveProps",value:function(e){var t=this.props.value;e.value!==t&&e.value&&this.findProduct(e.value)}},{key:"findProduct",value:function(e){var t=this.props,n=t.client;(0,t.dispatch)(function(e,t){return function(){return function(n){return n(Xe((function(t){t.products[e]=t.products[e]||{result:null},t.products[e].status="loading"}))),t.productByCode(e).then((function(t){n(Xe((function(n){n.products[e].result=t,n.products[e].status="success"})))}))}}}(e,n))}},{key:"render",value:function(){var e=this.props,t=e.onReset,n=e.product,r=e.status,o=e.client;return H.createElement("div",{className:Be()("value",{loading:"loading"===r})},n&&H.createElement("div",{className:"value__product"},H.createElement("div",{className:"value__product__image",style:{backgroundImage:"url(".concat(n.attributes.image_url,")")}}),H.createElement("div",{className:"value__product__info"},H.createElement("div",{className:"value__product__title"},H.createElement("a",{href:"".concat(o.baseEndpoint,"/admin/skus/").concat(n.id),target:"_blank",rel:"noopener noreferrer"},n.attributes.name)),H.createElement("div",{className:"value__product__code"},"SKU  ",n.attributes.code),H.createElement("div",{className:"value__product__description"},n.attributes.description))),H.createElement("button",{type:"button",className:"value__reset",onClick:t}))}}])&&ft(n.prototype,r),i&&ft(n,i),c}(W))||st;n(22);function bt(e){return(bt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function gt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function wt(e,t){return!t||"object"!==bt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function _t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function xt(e){return(xt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ot(e,t){return(Ot=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var St=function(e){return{baseEndpoint:e.parameters.global.baseEndpoint,clientId:e.parameters.global.clientId,value:e.getFieldValue(e.fieldPath)}};window.DatoCmsPlugin.init().then((function(e){e.startAutoResizer(),b(H.createElement(J,{store:et},H.createElement(function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ot(e,t)}(c,t);var n,r,o,i,a=(n=c,function(){var e,t=xt(n);if(_t()){var r=xt(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return wt(this,e)});function c(t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(n=a.call(this,t)).handleSelect=function(t){e.setFieldValue(e.fieldPath,t.attributes.code)},n.handleReset=function(){e.setFieldValue(e.fieldPath,null)},n.state=St(e),n.client=new Qe(n.state),n}return r=c,(o=[{key:"componentDidMount",value:function(){var t=this;this.unsubscribe=e.addFieldChangeListener(e.fieldPath,(function(){var n=St(e);t.setState(n),t.client=new Qe(n)}))}},{key:"componentWillUnmount",value:function(){this.unsubscribe()}},{key:"render",value:function(){var e=this.state.value;return e?H.createElement(mt,{client:this.client,value:e,onReset:this.handleReset}):H.createElement(ut,{client:this.client,onSelect:this.handleSelect})}}])&&gt(r.prototype,o),i&&gt(r,i),c}(W),null)),document.body)}))}]);
10
- //# sourceMappingURL=bundle.js.map