@stlite/desktop 0.22.1 → 0.23.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.
Files changed (137) hide show
  1. package/build/asset-manifest.json +63 -91
  2. package/build/electron/file.js +13 -6
  3. package/build/index.html +1 -1
  4. package/build/static/css/9.f71f4f0d.chunk.css +1 -0
  5. package/build/static/js/0.1470a040.chunk.js +1 -0
  6. package/build/static/js/{1.176aded5.chunk.js → 1.75536554.chunk.js} +1 -1
  7. package/build/static/js/10.e9d08ce6.chunk.js +1 -0
  8. package/build/static/js/11.245d6c33.chunk.js +9 -0
  9. package/build/static/js/12.a31ecc8c.chunk.js +17 -0
  10. package/build/static/js/13.6a2e32ae.chunk.js +1 -0
  11. package/build/static/js/14.1655f4db.chunk.js +1 -0
  12. package/build/static/js/15.b28e3a9f.chunk.js +2 -0
  13. package/build/static/js/{15.91a85aa0.chunk.js.LICENSE.txt → 15.b28e3a9f.chunk.js.LICENSE.txt} +0 -0
  14. package/build/static/js/16.4002de21.chunk.js +1 -0
  15. package/build/static/js/17.f01379ea.chunk.js +1 -0
  16. package/build/static/js/18.b32ef4e7.chunk.js +2 -0
  17. package/build/static/js/18.b32ef4e7.chunk.js.LICENSE.txt +60 -0
  18. package/build/static/js/19.757ce6cd.chunk.js +1 -0
  19. package/build/static/js/2.90589c59.chunk.js +2 -0
  20. package/build/static/js/{2.26deed5e.chunk.js.LICENSE.txt → 2.90589c59.chunk.js.LICENSE.txt} +7 -1
  21. package/build/static/js/{18.e3d4364d.chunk.js → 20.06333e7b.chunk.js} +1 -2
  22. package/build/static/js/21.3fab05ae.chunk.js +5 -0
  23. package/build/static/js/22.a1775ac4.chunk.js +1 -0
  24. package/build/static/js/23.fd21f92a.chunk.js +1 -0
  25. package/build/static/js/24.50f424ba.chunk.js +5 -0
  26. package/build/static/js/25.3855f89c.chunk.js +1 -0
  27. package/build/static/js/26.5f51a172.chunk.js +1 -0
  28. package/build/static/js/{27.d7aacc94.chunk.js → 27.f075da8f.chunk.js} +1 -2
  29. package/build/static/js/28.e76203d9.chunk.js +5 -0
  30. package/build/static/js/29.12291bff.chunk.js +1 -0
  31. package/build/static/js/3.8dacc9e7.chunk.js +1 -0
  32. package/build/static/js/30.9780f1e6.chunk.js +1 -0
  33. package/build/static/js/{31.9c06312e.chunk.js → 31.622e28f6.chunk.js} +1 -2
  34. package/build/static/js/{32.a1f2009d.chunk.js → 32.44bddfd2.chunk.js} +1 -2
  35. package/build/static/js/{33.1d5fce1c.chunk.js → 33.e3480cb9.chunk.js} +1 -2
  36. package/build/static/js/34.4e913e44.chunk.js +1 -0
  37. package/build/static/js/35.d8c3a90e.chunk.js +1 -0
  38. package/build/static/js/36.d7336b9b.chunk.js +1 -0
  39. package/build/static/js/{37.b845d4ba.chunk.js → 37.b06f1532.chunk.js} +1 -2
  40. package/build/static/js/38.2303d913.chunk.js +1 -0
  41. package/build/static/js/39.9cb4bae4.chunk.js +1 -0
  42. package/build/static/js/40.b8f90b9a.chunk.js +1 -0
  43. package/build/static/js/41.bb169dbf.chunk.js +1 -0
  44. package/build/static/js/42.e8639ee2.chunk.js +1 -0
  45. package/build/static/js/43.b5e07f4c.chunk.js +1 -0
  46. package/build/static/js/44.0206e0dc.chunk.js +1 -0
  47. package/build/static/js/45.db4595ee.chunk.js +1 -0
  48. package/build/static/js/46.f534e5a2.chunk.js +1 -0
  49. package/build/static/js/47.89ae0b12.chunk.js +1 -0
  50. package/build/static/js/48.86b245a1.chunk.js +1 -0
  51. package/build/static/js/49.1db19a37.chunk.js +1 -0
  52. package/build/static/js/6.9c8c6dae.chunk.js +2 -0
  53. package/build/static/js/{6.8496e815.chunk.js.LICENSE.txt → 6.9c8c6dae.chunk.js.LICENSE.txt} +6 -6
  54. package/build/static/js/7.e8b702b0.chunk.js +2 -0
  55. package/build/static/js/{7.54bbd037.chunk.js.LICENSE.txt → 7.e8b702b0.chunk.js.LICENSE.txt} +0 -0
  56. package/build/static/js/{8.934b1bbd.chunk.js → 8.348fb43a.chunk.js} +2 -2
  57. package/build/static/js/{8.934b1bbd.chunk.js.LICENSE.txt → 8.348fb43a.chunk.js.LICENSE.txt} +0 -0
  58. package/build/static/js/9.d99eed24.chunk.js +2 -0
  59. package/build/static/js/9.d99eed24.chunk.js.LICENSE.txt +5 -0
  60. package/build/static/js/main.f2516e2f.chunk.js +27 -0
  61. package/build/static/js/runtime-main.e5a1f36a.js +1 -0
  62. package/build/static/media/fireworks.0906f02e.gif +0 -0
  63. package/package.json +4 -4
  64. package/build/static/css/10.fd9811dd.chunk.css +0 -1
  65. package/build/static/js/0.14aa4233.chunk.js +0 -1
  66. package/build/static/js/10.e5ea6d64.chunk.js +0 -1
  67. package/build/static/js/11.5e15526e.chunk.js +0 -10
  68. package/build/static/js/11.5e15526e.chunk.js.LICENSE.txt +0 -16
  69. package/build/static/js/12.8105987b.chunk.js +0 -18
  70. package/build/static/js/12.8105987b.chunk.js.LICENSE.txt +0 -16
  71. package/build/static/js/13.6f270c1f.chunk.js +0 -2
  72. package/build/static/js/13.6f270c1f.chunk.js.LICENSE.txt +0 -16
  73. package/build/static/js/14.3da5e7a9.chunk.js +0 -1
  74. package/build/static/js/15.91a85aa0.chunk.js +0 -2
  75. package/build/static/js/16.650490ee.chunk.js +0 -2
  76. package/build/static/js/16.650490ee.chunk.js.LICENSE.txt +0 -16
  77. package/build/static/js/17.4c6481b3.chunk.js +0 -1
  78. package/build/static/js/18.e3d4364d.chunk.js.LICENSE.txt +0 -16
  79. package/build/static/js/19.9004a138.chunk.js +0 -6
  80. package/build/static/js/19.9004a138.chunk.js.LICENSE.txt +0 -16
  81. package/build/static/js/2.26deed5e.chunk.js +0 -2
  82. package/build/static/js/20.1e287e6d.chunk.js +0 -1
  83. package/build/static/js/21.cc58bd99.chunk.js +0 -1
  84. package/build/static/js/22.fe58abe1.chunk.js +0 -2
  85. package/build/static/js/22.fe58abe1.chunk.js.LICENSE.txt +0 -16
  86. package/build/static/js/23.ee721415.chunk.js +0 -6
  87. package/build/static/js/23.ee721415.chunk.js.LICENSE.txt +0 -16
  88. package/build/static/js/24.36b10d26.chunk.js +0 -2
  89. package/build/static/js/24.36b10d26.chunk.js.LICENSE.txt +0 -16
  90. package/build/static/js/25.edf85627.chunk.js +0 -2
  91. package/build/static/js/25.edf85627.chunk.js.LICENSE.txt +0 -16
  92. package/build/static/js/26.99f3cc19.chunk.js +0 -2
  93. package/build/static/js/26.99f3cc19.chunk.js.LICENSE.txt +0 -58
  94. package/build/static/js/27.d7aacc94.chunk.js.LICENSE.txt +0 -16
  95. package/build/static/js/28.d24eb9cf.chunk.js +0 -6
  96. package/build/static/js/28.d24eb9cf.chunk.js.LICENSE.txt +0 -16
  97. package/build/static/js/29.fbb528d8.chunk.js +0 -2
  98. package/build/static/js/29.fbb528d8.chunk.js.LICENSE.txt +0 -16
  99. package/build/static/js/3.f4fb8871.chunk.js +0 -1
  100. package/build/static/js/30.32ab2cb4.chunk.js +0 -2
  101. package/build/static/js/30.32ab2cb4.chunk.js.LICENSE.txt +0 -16
  102. package/build/static/js/31.9c06312e.chunk.js.LICENSE.txt +0 -16
  103. package/build/static/js/32.a1f2009d.chunk.js.LICENSE.txt +0 -16
  104. package/build/static/js/33.1d5fce1c.chunk.js.LICENSE.txt +0 -16
  105. package/build/static/js/34.edb9c338.chunk.js +0 -2
  106. package/build/static/js/34.edb9c338.chunk.js.LICENSE.txt +0 -16
  107. package/build/static/js/35.6bd7c1ed.chunk.js +0 -2
  108. package/build/static/js/35.6bd7c1ed.chunk.js.LICENSE.txt +0 -16
  109. package/build/static/js/36.be12d12e.chunk.js +0 -2
  110. package/build/static/js/36.be12d12e.chunk.js.LICENSE.txt +0 -16
  111. package/build/static/js/37.b845d4ba.chunk.js.LICENSE.txt +0 -16
  112. package/build/static/js/38.0e8cfb78.chunk.js +0 -2
  113. package/build/static/js/38.0e8cfb78.chunk.js.LICENSE.txt +0 -16
  114. package/build/static/js/39.73c851be.chunk.js +0 -2
  115. package/build/static/js/39.73c851be.chunk.js.LICENSE.txt +0 -16
  116. package/build/static/js/40.1fc38a50.chunk.js +0 -2
  117. package/build/static/js/40.1fc38a50.chunk.js.LICENSE.txt +0 -16
  118. package/build/static/js/41.4ddf36bc.chunk.js +0 -2
  119. package/build/static/js/41.4ddf36bc.chunk.js.LICENSE.txt +0 -16
  120. package/build/static/js/42.e5620440.chunk.js +0 -2
  121. package/build/static/js/42.e5620440.chunk.js.LICENSE.txt +0 -16
  122. package/build/static/js/43.44eb58de.chunk.js +0 -2
  123. package/build/static/js/43.44eb58de.chunk.js.LICENSE.txt +0 -16
  124. package/build/static/js/44.35b43369.chunk.js +0 -2
  125. package/build/static/js/44.35b43369.chunk.js.LICENSE.txt +0 -16
  126. package/build/static/js/45.91664b3c.chunk.js +0 -2
  127. package/build/static/js/45.91664b3c.chunk.js.LICENSE.txt +0 -16
  128. package/build/static/js/46.e9639103.chunk.js +0 -2
  129. package/build/static/js/46.e9639103.chunk.js.LICENSE.txt +0 -16
  130. package/build/static/js/47.77b33a34.chunk.js +0 -2
  131. package/build/static/js/47.77b33a34.chunk.js.LICENSE.txt +0 -16
  132. package/build/static/js/6.8496e815.chunk.js +0 -2
  133. package/build/static/js/7.54bbd037.chunk.js +0 -2
  134. package/build/static/js/9.8ff376a2.chunk.js +0 -1
  135. package/build/static/js/main.118127a6.chunk.js +0 -28
  136. package/build/static/js/main.118127a6.chunk.js.LICENSE.txt +0 -33
  137. package/build/static/js/runtime-main.fe933feb.js +0 -1
@@ -0,0 +1,9 @@
1
+ (this["webpackJsonp@stlite/desktop"]=this["webpackJsonp@stlite/desktop"]||[]).push([[11],{1241:function(t,n,e){var a=e(1276)();t.exports=a},1242:function(t,n,e){var a=e(1279),i=e(103),r=e(249),o=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,s=/^0o[0-7]+$/i,p=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(r(t))return NaN;if(i(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=i(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=a(t);var e=c.test(t);return e||s.test(t)?p(t.slice(2),e?2:8):o.test(t)?NaN:+t}},1276:function(t,n,e){var a=e(1277),i=e(479),r=e(1278);t.exports=function(t){return function(n,e,o){return o&&"number"!=typeof o&&i(n,e,o)&&(e=o=void 0),n=r(n),void 0===e?(e=n,n=0):e=r(e),o=void 0===o?n<e?1:-1:r(o),a(n,e,o,t)}}},1277:function(t,n){var e=Math.ceil,a=Math.max;t.exports=function(t,n,i,r){for(var o=-1,c=a(e((n-t)/(i||1)),0),s=Array(c);c--;)s[r?c:++o]=t,t+=i;return s}},1278:function(t,n,e){var a=e(1242),i=1/0;t.exports=function(t){return t?(t=a(t))===i||t===-1/0?17976931348623157e292*(t<0?-1:1):t===t?t:0:0===t?t:0}},1279:function(t,n,e){var a=e(1280),i=/^\s+/;t.exports=function(t){return t?t.slice(0,a(t)+1).replace(i,""):t}},1280:function(t,n){var e=/\s/;t.exports=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}},1384:function(t,n,e){"use strict";e.d(n,"a",(function(){return u}));var a=e(0),i=e(1241),r=e.n(i),o=e(212),c=e.n(o),s=e(1);const p=({className:t,scriptRunId:n,numParticles:e,numParticleTypes:a,ParticleComponent:i})=>Object(s.jsx)("div",{className:c()(t,"stHidden"),children:r()(e).map((t=>{const e=Math.floor(Math.random()*a);return Object(s.jsx)(i,{particleType:e},n+t)}))});var u=Object(a.memo)(p)},1752:function(t,n,e){"use strict";e.r(n),e.d(n,"default",(function(){return y})),e.d(n,"NUM_BALLOONS",(function(){return b}));var a=e(0),i=e.p+"static/media/balloon-0.0e6e96ec.png",r=e.p+"static/media/balloon-1.a503c271.png",o=e.p+"static/media/balloon-2.872250f3.png",c=e.p+"static/media/balloon-3.e772fafd.png",s=e.p+"static/media/balloon-4.1a741624.png",p=e.p+"static/media/balloon-5.edb75c74.png",u=e(1384),l=e(4),f=e(38);const m=f.c`
2
+ from {
3
+ transform: translateY(calc(100vh + ${300}px));
4
+ }
5
+
6
+ to {
7
+ transform: translateY(0);
8
+ }
9
+ `,d=Object(l.a)("img",{target:"eee6ljb0"})((({theme:t})=>({position:"fixed",top:"-300px",marginLeft:"-60.5px",zIndex:t.zIndices.balloons,left:60*Math.random()+20+"vw",animationDelay:1e3*Math.random()+"ms",height:"300px",width:"121px",pointerEvents:"none",animationDuration:"750ms",animationName:m,animationTimingFunction:"ease-in",animationDirection:"normal",animationIterationCount:1,opacity:1})),"");var v=e(1);const b=30,x=[i,r,o,c,s,p],h=x.length,g=({particleType:t})=>Object(v.jsx)(d,{src:x[t]}),j=({scriptRunId:t})=>Object(v.jsx)(u.a,{className:"balloons",scriptRunId:t,numParticleTypes:h,numParticles:b,ParticleComponent:g});var y=Object(a.memo)(j)}}]);
@@ -0,0 +1,17 @@
1
+ (this["webpackJsonp@stlite/desktop"]=this["webpackJsonp@stlite/desktop"]||[]).push([[12],{1241:function(t,n,e){var r=e(1276)();t.exports=r},1242:function(t,n,e){var r=e(1279),a=e(103),i=e(249),o=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,s=/^0o[0-7]+$/i,u=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return NaN;if(a(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=a(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var e=c.test(t);return e||s.test(t)?u(t.slice(2),e?2:8):o.test(t)?NaN:+t}},1276:function(t,n,e){var r=e(1277),a=e(479),i=e(1278);t.exports=function(t){return function(n,e,o){return o&&"number"!=typeof o&&a(n,e,o)&&(e=o=void 0),n=i(n),void 0===e?(e=n,n=0):e=i(e),o=void 0===o?n<e?1:-1:i(o),r(n,e,o,t)}}},1277:function(t,n){var e=Math.ceil,r=Math.max;t.exports=function(t,n,a,i){for(var o=-1,c=r(e((n-t)/(a||1)),0),s=Array(c);c--;)s[i?c:++o]=t,t+=a;return s}},1278:function(t,n,e){var r=e(1242),a=1/0;t.exports=function(t){return t?(t=r(t))===a||t===-1/0?17976931348623157e292*(t<0?-1:1):t===t?t:0:0===t?t:0}},1279:function(t,n,e){var r=e(1280),a=/^\s+/;t.exports=function(t){return t?t.slice(0,r(t)+1).replace(a,""):t}},1280:function(t,n){var e=/\s/;t.exports=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}},1384:function(t,n,e){"use strict";e.d(n,"a",(function(){return f}));var r=e(0),a=e(1241),i=e.n(a),o=e(212),c=e.n(o),s=e(1);const u=({className:t,scriptRunId:n,numParticles:e,numParticleTypes:r,ParticleComponent:a})=>Object(s.jsx)("div",{className:c()(t,"stHidden"),children:i()(e).map((t=>{const e=Math.floor(Math.random()*r);return Object(s.jsx)(a,{particleType:e},n+t)}))});var f=Object(r.memo)(u)},1760:function(t,n,e){"use strict";e.r(n),e.d(n,"default",(function(){return b})),e.d(n,"NUM_FLAKES",(function(){return l}));var r=e(0),a=e.p+"static/media/flake-0.beded754.png",i=e.p+"static/media/flake-1.8077dc15.png",o=e.p+"static/media/flake-2.e3f07d06.png",c=e(1384),s=e(4),u=e(38);const f=(t,n=0)=>Math.random()*(t-n)+n,p=Object(s.a)("img",{target:"e1hbdfkw0"})((({theme:t})=>({position:"fixed",top:"-150px",marginLeft:"-75px",zIndex:t.zIndices.balloons,left:`${f(90,10)}vw`,animationDelay:`${f(4e3)}ms`,height:"150px",width:"150px",pointerEvents:"none",animationDuration:"3000ms",animationName:u.c`
2
+ from {
3
+ transform:
4
+ translateY(0)
5
+ rotateX(${f(360)}deg)
6
+ rotateY(${f(360)}deg)
7
+ rotateZ(${f(360)}deg);
8
+ }
9
+
10
+ to {
11
+ transform:
12
+ translateY(calc(100vh + ${150}px))
13
+ rotateX(0)
14
+ rotateY(0)
15
+ rotateZ(0);
16
+ }
17
+ `,animationTimingFunction:"ease-in",animationDirection:"normal",animationIterationCount:1,opacity:1})),"");var m=e(1);const l=100,d=[a,i,o],v=d.length,x=({particleType:t})=>Object(m.jsx)(p,{src:d[t]}),h=function({scriptRunId:t}){return Object(m.jsx)(c.a,{className:"snow",scriptRunId:t,numParticleTypes:v,numParticles:l,ParticleComponent:x})};var b=Object(r.memo)(h)}}]);
@@ -0,0 +1 @@
1
+ (this["webpackJsonp@stlite/desktop"]=this["webpackJsonp@stlite/desktop"]||[]).push([[13],{1339:function(e,t,o){var r=o(1340);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},1340:function(e,t,o){var r=o(1341),i=o(1342),n=o(1343);e.exports=function(e,t,o){return t===t?n(e,t,o):r(e,i,o)}},1341:function(e,t){e.exports=function(e,t,o,r){for(var i=e.length,n=o+(r?1:-1);r?n--:++n<i;)if(t(e[n],n,e))return n;return-1}},1342:function(e,t){e.exports=function(e){return e!==e}},1343:function(e,t){e.exports=function(e,t,o){for(var r=o-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}},1344:function(e,t){e.exports=function(e,t,o){for(var r=-1,i=null==e?0:e.length;++r<i;)if(o(t,e[r]))return!0;return!1}},1662:function(e,t,o){var r=o(1663),i=o(486),n=o(485),s=i((function(e,t){return n(e)?r(e,t):[]}));e.exports=s},1663:function(e,t,o){var r=o(480),i=o(1339),n=o(1344),s=o(253),a=o(252),l=o(481);e.exports=function(e,t,o,u){var p=-1,c=i,d=!0,h=e.length,m=[],f=t.length;if(!h)return m;o&&(t=s(t,a(o))),u?(c=n,d=!1):t.length>=200&&(c=l,d=!1,t=new r(t));e:for(;++p<h;){var g=e[p],v=null==o?g:o(g);if(g=u||0!==g?g:0,d&&v===v){for(var b=f;b--;)if(t[b]===v)continue e;m.push(g)}else c(t,v,u)||m.push(g)}return m}},1773:function(e,t,o){"use strict";o.r(t),o.d(t,"default",(function(){return y}));var r=o(0),i=o.n(r),n=o(1662),s=o.n(n),a=o(65),l=o(199),u=o(1130),p=o(69),c=o(117),d=o(4);const h=Object(d.a)("div",{target:"ede6r8z0"})((({theme:e})=>({"span[aria-disabled='true']":{background:e.colors.fadedText05}})),"");var m=o(118),f=o(52),g=o(155),v=o(323),b=o(29),x=o(1);class S extends i.a.PureComponent{constructor(...e){super(...e),this.formClearHelper=new l.b,this.state={value:this.initialValue},this.commitWidgetValue=e=>{this.props.widgetMgr.setIntArrayValue(this.props.element,this.state.value,e)},this.onFormCleared=()=>{this.setState(((e,t)=>({value:t.element.default})),(()=>this.commitWidgetValue({fromUi:!0})))},this.onChange=e=>{this.props.element.maxSelections&&"select"===e.type&&this.state.value.length>=this.props.element.maxSelections||this.setState(this.generateNewState(e),(()=>{this.commitWidgetValue({fromUi:!0})}))},this.filterOptions=(e,t)=>{if(this.overMaxSelections())return[];const o=e.filter((e=>!this.state.value.includes(Number(e.value))));return Object(v.b)(o,t)}}overMaxSelections(){return this.props.element.maxSelections>0&&this.state.value.length>=this.props.element.maxSelections}getNoResultsMsg(){if(0===this.props.element.maxSelections)return"No results";const e=1!==this.props.element.maxSelections?"options":"option";return`You can only select up to ${this.props.element.maxSelections} ${e}. Remove an option first.`}get initialValue(){const e=this.props.widgetMgr.getIntArrayValue(this.props.element);return void 0!==e?e:this.props.element.default}componentDidMount(){this.props.element.setValue?this.updateFromProtobuf():this.commitWidgetValue({fromUi:!1})}componentDidUpdate(){this.maybeUpdateFromProtobuf()}componentWillUnmount(){this.formClearHelper.disconnect()}maybeUpdateFromProtobuf(){const{setValue:e}=this.props.element;e&&this.updateFromProtobuf()}updateFromProtobuf(){const{value:e}=this.props.element;this.props.element.setValue=!1,this.setState({value:e},(()=>{this.commitWidgetValue({fromUi:!1})}))}get valueFromState(){return this.state.value.map((e=>{const t=this.props.element.options[e];return{value:e.toString(),label:t}}))}generateNewState(e){const t=()=>{var t;const o=null===(t=e.option)||void 0===t?void 0:t.value;return parseInt(o,10)};switch(e.type){case"remove":return{value:s()(this.state.value,t())};case"clear":return{value:[]};case"select":return{value:this.state.value.concat([t()])};default:throw new Error(`State transition is unknown: ${e.type}`)}}render(){var e;const{element:t,theme:o,width:r,widgetMgr:i}=this.props,n={width:r},{options:s}=t,a=0===s.length||this.props.disabled,l=0===s.length?"No options to select.":"Choose an option",d=s.map(((e,t)=>({label:e,value:t.toString()})));return this.formClearHelper.manageFormClearListener(i,t.formId,this.onFormCleared),Object(x.jsxs)("div",{className:"row-widget stMultiSelect",style:n,children:[Object(x.jsx)(c.d,{label:t.label,disabled:a,labelVisibility:Object(b.k)(null===(e=t.labelVisibility)||void 0===e?void 0:e.value),children:t.help&&Object(x.jsx)(c.b,{children:Object(x.jsx)(m.a,{content:t.help,placement:f.b.TOP_RIGHT})})}),Object(x.jsx)(h,{children:Object(x.jsx)(u.a,{options:d,labelKey:"label",valueKey:"value","aria-label":t.label,placeholder:l,type:p.b.select,multi:!0,onChange:this.onChange,value:this.valueFromState,disabled:a,size:"compact",noResultsMsg:this.getNoResultsMsg(),filterOptions:this.filterOptions,closeOnSelect:!1,overrides:{IconsContainer:{style:()=>({paddingRight:".5rem"})},ControlContainer:{style:{borderLeftWidth:"1px",borderRightWidth:"1px",borderTopWidth:"1px",borderBottomWidth:"1px"}},ValueContainer:{style:()=>({minHeight:"38.4px",paddingLeft:".5rem",paddingTop:0,paddingBottom:0,paddingRight:0})},ClearIcon:{props:{overrides:{Svg:{style:{color:o.colors.darkGray}}}}},SearchIcon:{style:{color:o.colors.darkGray}},Tag:{props:{overrides:{Root:{style:{borderTopLeftRadius:o.radii.md,borderTopRightRadius:o.radii.md,borderBottomRightRadius:o.radii.md,borderBottomLeftRadius:o.radii.md,fontSize:o.fontSizes.sm,paddingLeft:o.spacing.sm,marginLeft:0,marginRight:o.spacing.sm,height:"28px"}},Action:{style:{paddingLeft:0}},ActionIcon:{props:{overrides:{Svg:{style:{width:"10px",height:"10px"}}}}},Text:{style:{fontSize:o.fontSizes.md}}}}},MultiValue:{props:{overrides:{Root:{style:{fontSize:o.fontSizes.sm}}}}},Dropdown:{component:g.a}}})})]})}}var y=Object(a.d)(S)}}]);
@@ -0,0 +1 @@
1
+ (this["webpackJsonp@stlite/desktop"]=this["webpackJsonp@stlite/desktop"]||[]).push([[14],{1483:function(e,t,r){"use strict";var n,o=r(0),i=r.n(o),a=r(11),c="small",u="medium",l="large",s=r(20),f=r(74);function d(){return(d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){g(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function g(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b(e){var t;return(t={},g(t,c,"2px"),g(t,u,"4px"),g(t,l,"8px"),t)[e]}var m=Object(s.a)("div",(function(e){return{width:"100%"}}));m.displayName="StyledRoot",m.displayName="StyledRoot";var v=Object(s.a)("div",(function(e){var t=e.$theme.sizing;return{display:"flex",marginLeft:t.scale500,marginRight:t.scale500,marginTop:t.scale500,marginBottom:t.scale500}}));v.displayName="StyledBarContainer",v.displayName="StyledBarContainer";var h=Object(s.a)("div",(function(e){var t=e.$theme,r=e.$size,n=e.$steps,o=t.colors,i=t.sizing,a=t.borders.useRoundedCorners?i.scale0:0;return y({borderTopLeftRadius:a,borderTopRightRadius:a,borderBottomRightRadius:a,borderBottomLeftRadius:a,backgroundColor:Object(f.b)(o.progressbarTrackFill,"0.16"),height:b(r),flex:1,overflow:"hidden"},n<2?{}:{marginLeft:i.scale300,":first-child":{marginLeft:"0"}})}));h.displayName="StyledBar",h.displayName="StyledBar";var O=Object(s.a)("div",(function(e){var t=e.$theme,r=e.$value,n=e.$successValue,o=e.$steps,i=e.$index,a=e.$maxValue,c=e.$minValue,u=void 0===c?0:c,l=a||n,s=t.colors,f=t.sizing,d=t.borders,p="".concat(100-100*(r-u)/(l-u),"%"),g="awaits",b="inProgress",m="completed",v="default";if(o>1){var h=(l-u)/o,O=(r-u)/(l-u)*100,w=Math.floor(O/h);v=i<w?m:i===w?b:g}var j=d.useRoundedCorners?f.scale0:0,D={transform:"translateX(-".concat(p,")")},P=v===b?{animationDuration:"2.1s",animationIterationCount:"infinite",animationTimingFunction:t.animation.linearCurve,animationName:{"0%":{transform:"translateX(-102%)",opacity:1},"50%":{transform:"translateX(0%)",opacity:1},"100%":{transform:"translateX(0%)",opacity:0}}}:v===m?{transform:"translateX(0%)"}:{transform:"translateX(-102%)"};return y({borderTopLeftRadius:j,borderTopRightRadius:j,borderBottomRightRadius:j,borderBottomLeftRadius:j,backgroundColor:s.accent,height:"100%",width:"100%",transform:"translateX(-102%)",transition:"transform 0.5s"},o>1?P:D)}));O.displayName="StyledBarProgress",O.displayName="StyledBarProgress";var w=Object(s.a)("div",(function(e){var t=e.$theme,r=e.$isLeft,n=void 0!==r&&r,o=e.$size,i=void 0===o?u:o,a=t.colors,c=t.sizing,l=t.borders.useRoundedCorners?c.scale0:0,s=b(i),f={display:"inline-block",flex:1,marginLeft:"auto",marginRight:"auto",transitionProperty:"background-position",animationDuration:"1.5s",animationIterationCount:"infinite",animationTimingFunction:t.animation.linearCurve,backgroundSize:"300% auto",backgroundRepeat:"no-repeat",backgroundPositionX:n?"-50%":"150%",backgroundImage:"linear-gradient(".concat(n?"90":"270","deg, transparent 0%, ").concat(a.accent," 25%, ").concat(a.accent," 75%, transparent 100%)"),animationName:n?{"0%":{backgroundPositionX:"-50%"},"33%":{backgroundPositionX:"50%"},"66%":{backgroundPositionX:"50%"},"100%":{backgroundPositionX:"150%"}}:{"0%":{backgroundPositionX:"150%"},"33%":{backgroundPositionX:"50%"},"66%":{backgroundPositionX:"50%"},"100%":{backgroundPositionX:"-50%"}}};return y(y({},n?{borderTopLeftRadius:l,borderBottomLeftRadius:l}:{borderTopRightRadius:l,borderBottomRightRadius:l}),{},{height:s},f)}));w.displayName="StyledInfiniteBar",w.displayName="StyledInfiniteBar";var j=Object(s.a)("div",(function(e){return y(y({textAlign:"center"},e.$theme.typography.font150),{},{color:e.$theme.colors.contentTertiary})}));j.displayName="StyledLabel",j.displayName="StyledLabel";var D=(g(n={},l,{d:"M47.5 4H71.5529C82.2933 4 91 12.9543 91 24C91 35.0457 82.2933 44 71.5529 44H23.4471C12.7067 44 4 35.0457 4 24C4 12.9543 12.7067 4 23.4471 4H47.5195",width:95,height:48,strokeWidth:8,typography:"LabelLarge"}),g(n,u,{d:"M39 2H60.5833C69.0977 2 76 9.16344 76 18C76 26.8366 69.0977 34 60.5833 34H17.4167C8.90228 34 2 26.8366 2 18C2 9.16344 8.90228 2 17.4167 2H39.0195",width:78,height:36,strokeWidth:4,typography:"LabelMedium"}),g(n,c,{d:"M32 1H51.6271C57.9082 1 63 6.37258 63 13C63 19.6274 57.9082 25 51.6271 25H12.3729C6.09181 25 1 19.6274 1 13C1 6.37258 6.09181 1 12.3729 1H32.0195",width:64,height:26,strokeWidth:2,typography:"LabelSmall"}),n),P=Object(s.a)("div",(function(e){var t=e.$size,r=e.$inline;return{width:D[t].width+"px",height:D[t].height+"px",position:"relative",display:r?"inline-flex":"flex",alignItems:"center",justifyContent:"center"}}));P.displayName="StyledProgressBarRoundedRoot",P.displayName="StyledProgressBarRoundedRoot";var k=Object(s.a)("svg",(function(e){var t=e.$size;return{width:D[t].width+"px",height:D[t].height+"px",position:"absolute",fill:"none"}}));k.displayName="_StyledProgressBarRoundedSvg",k.displayName="_StyledProgressBarRoundedSvg";Object(s.d)(k,(function(e){return function(t){return i.a.createElement(e,d({viewBox:"0 0 ".concat(D[t.$size].width," ").concat(D[t.$size].height),xmlns:"http://www.w3.org/2000/svg"},t))}}));var S=Object(s.a)("path",(function(e){var t=e.$theme,r=e.$size;return{stroke:t.colors.backgroundTertiary,strokeWidth:D[r].strokeWidth+"px"}}));S.displayName="_StyledProgressBarRoundedTrackBackground",S.displayName="_StyledProgressBarRoundedTrackBackground";Object(s.d)(S,(function(e){return function(t){return i.a.createElement(e,d({d:D[t.$size].d},t))}}));var x=Object(s.a)("path",(function(e){var t=e.$theme,r=e.$size,n=e.$visible,o=e.$pathLength,i=e.$pathProgress;return{visibility:n?"visible":"hidden",stroke:t.colors.borderAccent,strokeWidth:D[r].strokeWidth+"px",strokeDasharray:o,strokeDashoffset:o*(1-i)+""}}));x.displayName="_StyledProgressBarRoundedTrackForeground",x.displayName="_StyledProgressBarRoundedTrackForeground";Object(s.d)(x,(function(e){return function(t){return i.a.createElement(e,d({d:D[t.$size].d},t))}}));var R=Object(s.a)("div",(function(e){var t=e.$theme,r=e.$size;return y({color:t.colors.contentPrimary},t.typography[D[r].typography])}));function C(e){return(C="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)}R.displayName="StyledProgressBarRoundedText",R.displayName="StyledProgressBarRoundedText";var E=["overrides","getProgressLabel","value","size","steps","successValue","minValue","maxValue","showLabel","infinite","errorMessage","forwardedRef"];function A(){return(A=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function z(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,c=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return F(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return F(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function F(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function $(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function B(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function L(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function T(e,t){return(T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function N(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=M(e);if(t){var o=M(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return V(this,r)}}function V(e,t){if(t&&("object"===C(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function M(e){return(M=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var I,H,_,X=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&T(e,t)}(c,e);var t,r,n,i=N(c);function c(){return B(this,c),i.apply(this,arguments)}return t=c,(r=[{key:"componentDidMount",value:function(){}},{key:"render",value:function(){var e=this.props,t=e.overrides,r=void 0===t?{}:t,n=e.getProgressLabel,i=e.value,c=e.size,u=e.steps,l=e.successValue,s=e.minValue,f=e.maxValue,d=e.showLabel,p=e.infinite,y=e.errorMessage,g=e.forwardedRef,b=$(e,E),D=this.props["aria-label"]||this.props.ariaLabel,P=100!==f?f:l,k=z(Object(a.c)(r.Root,m),2),S=k[0],x=k[1],R=z(Object(a.c)(r.BarContainer,v),2),C=R[0],F=R[1],B=z(Object(a.c)(r.Bar,h),2),L=B[0],T=B[1],N=z(Object(a.c)(r.BarProgress,O),2),V=N[0],M=N[1],I=z(Object(a.c)(r.Label,j),2),H=I[0],_=I[1],X=z(Object(a.c)(r.InfiniteBar,w),2),K=X[0],W=X[1],U={$infinite:p,$size:c,$steps:u,$successValue:P,$minValue:s,$maxValue:P,$value:i};return o.createElement(S,A({ref:g,"data-baseweb":"progress-bar",role:"progressbar","aria-label":D||n(i,P,s),"aria-valuenow":p?null:i,"aria-valuemin":p?null:s,"aria-valuemax":p?null:P,"aria-invalid":!!y||null,"aria-errormessage":y},b,U,x),o.createElement(C,A({},U,F),p?o.createElement(o.Fragment,null,o.createElement(K,A({$isLeft:!0,$size:U.$size},W)),o.createElement(K,A({$size:U.$size},W))):function(){for(var e=[],t=0;t<u;t++)e.push(o.createElement(L,A({key:t},U,T),o.createElement(V,A({$index:t},U,M))));return e}()),d&&o.createElement(H,A({},U,_),n(i,P,s)))}}])&&L(t.prototype,r),n&&L(t,n),Object.defineProperty(t,"prototype",{writable:!1}),c}(o.Component);_={getProgressLabel:function(e,t,r){return"".concat(Math.round((e-r)/(t-r)*100),"% Loaded")},infinite:!1,overrides:{},showLabel:!1,size:u,steps:1,successValue:100,minValue:0,maxValue:100,value:0},(H="defaultProps")in(I=X)?Object.defineProperty(I,H,{value:_,enumerable:!0,configurable:!0,writable:!0}):I[H]=_;var K=o.forwardRef((function(e,t){return o.createElement(X,A({forwardedRef:t},e))}));K.displayName="ProgressBar";t.a=K},1665:function(e,t,r){"use strict";t.__esModule=!0,t.default=function(e,t){if(e&&t){var r=Array.isArray(t)?t:t.split(","),n=e.name||"",o=(e.type||"").toLowerCase(),i=o.replace(/\/.*$/,"");return r.some((function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?n.toLowerCase().endsWith(t):t.endsWith("/*")?i===t.replace(/\/.*$/,""):o===t}))}return!0}},1676:function(e,t,r){"use strict";var n=r(0),o=r.n(n),i=r(7),a=r.n(i);function c(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{u(n.next(e))}catch(t){i(t)}}function c(e){try{u(n.throw(e))}catch(t){i(t)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,c)}u((n=n.apply(e,t||[])).next())}))}function u(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(c){i=[6,c],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}}Object.create;function l(e,t){var r="function"===typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(c){o={error:c}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}Object.create;var s=new Map([["avi","video/avi"],["gif","image/gif"],["ico","image/x-icon"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["mkv","video/x-matroska"],["mov","video/quicktime"],["mp4","video/mp4"],["pdf","application/pdf"],["png","image/png"],["zip","application/zip"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"]]);function f(e,t){var r=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var r=t.split(".").pop().toLowerCase(),n=s.get(r);n&&Object.defineProperty(e,"type",{value:n,writable:!1,configurable:!1,enumerable:!0})}return e}(e);if("string"!==typeof r.path){var n=e.webkitRelativePath;Object.defineProperty(r,"path",{value:"string"===typeof t?t:"string"===typeof n&&n.length>0?n:e.name,writable:!1,configurable:!1,enumerable:!0})}return r}var d=[".DS_Store","Thumbs.db"];function p(e){return(null!==e.target&&e.target.files?b(e.target.files):[]).map((function(e){return f(e)}))}function y(e,t){return c(this,void 0,void 0,(function(){var r;return u(this,(function(n){switch(n.label){case 0:return e.items?(r=b(e.items).filter((function(e){return"file"===e.kind})),"drop"!==t?[2,r]:[4,Promise.all(r.map(m))]):[3,2];case 1:return[2,g(v(n.sent()))];case 2:return[2,g(b(e.files).map((function(e){return f(e)})))]}}))}))}function g(e){return e.filter((function(e){return-1===d.indexOf(e.name)}))}function b(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];t.push(n)}return t}function m(e){if("function"!==typeof e.webkitGetAsEntry)return h(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?w(t):h(e)}function v(e){return e.reduce((function(e,t){return function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(l(arguments[t]));return e}(e,Array.isArray(t)?v(t):[t])}),[])}function h(e){var t=e.getAsFile();if(!t)return Promise.reject(e+" is not a File");var r=f(t);return Promise.resolve(r)}function O(e){return c(this,void 0,void 0,(function(){return u(this,(function(t){return[2,e.isDirectory?w(e):j(e)]}))}))}function w(e){var t=e.createReader();return new Promise((function(e,r){var n=[];!function o(){var i=this;t.readEntries((function(t){return c(i,void 0,void 0,(function(){var i,a,c;return u(this,(function(u){switch(u.label){case 0:if(t.length)return[3,5];u.label=1;case 1:return u.trys.push([1,3,,4]),[4,Promise.all(n)];case 2:return i=u.sent(),e(i),[3,4];case 3:return a=u.sent(),r(a),[3,4];case 4:return[3,6];case 5:c=Promise.all(t.map(O)),n.push(c),o(),u.label=6;case 6:return[2]}}))}))}),(function(e){r(e)}))}()}))}function j(e){return c(this,void 0,void 0,(function(){return u(this,(function(t){return[2,new Promise((function(t,r){e.file((function(r){var n=f(r,e.fullPath);t(n)}),(function(e){r(e)}))}))]}))}))}var D=r(1665),P=r.n(D);function k(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(u){o=!0,i=u}finally{try{n||null==c.return||c.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return S(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return S(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var x=function(e){e=Array.isArray(e)&&1===e.length?e[0]:e;var t=Array.isArray(e)?"one of ".concat(e.join(", ")):e;return{code:"file-invalid-type",message:"File type must be ".concat(t)}},R=function(e){return{code:"file-too-large",message:"File is larger than ".concat(e," bytes")}},C=function(e){return{code:"file-too-small",message:"File is smaller than ".concat(e," bytes")}},E={code:"too-many-files",message:"Too many files"};function A(e,t){var r="application/x-moz-file"===e.type||P()(e,t);return[r,r?null:x(t)]}function z(e,t,r){if(F(e.size))if(F(t)&&F(r)){if(e.size>r)return[!1,R(r)];if(e.size<t)return[!1,C(t)]}else{if(F(t)&&e.size<t)return[!1,C(t)];if(F(r)&&e.size>r)return[!1,R(r)]}return[!0,null]}function F(e){return void 0!==e&&null!==e}function $(e){var t=e.files,r=e.accept,n=e.minSize,o=e.maxSize,i=e.multiple,a=e.maxFiles;return!(!i&&t.length>1||i&&a>=1&&t.length>a)&&t.every((function(e){var t=k(A(e,r),1)[0],i=k(z(e,n,o),1)[0];return t&&i}))}function B(e){return"function"===typeof e.isPropagationStopped?e.isPropagationStopped():"undefined"!==typeof e.cancelBubble&&e.cancelBubble}function L(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,(function(e){return"Files"===e||"application/x-moz-file"===e})):!!e.target&&!!e.target.files}function T(e){e.preventDefault()}function N(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}function V(e){return-1!==e.indexOf("Edge/")}function M(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return N(e)||V(e)}function I(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return t.some((function(t){return!B(e)&&t&&t.apply(void 0,[e].concat(n)),B(e)}))}}function H(e){return function(e){if(Array.isArray(e))return K(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||X(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(u){o=!0,i=u}finally{try{n||null==c.return||c.return()}finally{if(o)throw i}}return r}(e,t)||X(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function X(e,t){if(e){if("string"===typeof e)return K(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?K(e,t):void 0}}function K(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function W(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function U(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?W(Object(r),!0).forEach((function(t){G(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):W(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function G(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function q(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var J=Object(n.forwardRef)((function(e,t){var r=e.children,i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=U(U({},Q),e),r=t.accept,o=t.disabled,i=t.getFilesFromEvent,a=t.maxSize,c=t.minSize,u=t.multiple,l=t.maxFiles,s=t.onDragEnter,f=t.onDragLeave,d=t.onDragOver,p=t.onDrop,y=t.onDropAccepted,g=t.onDropRejected,b=t.onFileDialogCancel,m=t.preventDropOnDocument,v=t.noClick,h=t.noKeyboard,O=t.noDrag,w=t.noDragEventsBubbling,j=Object(n.useRef)(null),D=Object(n.useRef)(null),P=_(Object(n.useReducer)(Z,Y),2),k=P[0],S=P[1],x=k.isFocused,R=k.isFileDialogActive,C=k.draggedFiles,F=Object(n.useCallback)((function(){D.current&&(S({type:"openDialog"}),D.current.value=null,D.current.click())}),[S]),N=function(){R&&setTimeout((function(){D.current&&(D.current.files.length||(S({type:"closeDialog"}),"function"===typeof b&&b()))}),300)};Object(n.useEffect)((function(){return window.addEventListener("focus",N,!1),function(){window.removeEventListener("focus",N,!1)}}),[D,R,b]);var V=Object(n.useCallback)((function(e){j.current&&j.current.isEqualNode(e.target)&&(32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),F()))}),[j,D]),X=Object(n.useCallback)((function(){S({type:"focus"})}),[]),K=Object(n.useCallback)((function(){S({type:"blur"})}),[]),W=Object(n.useCallback)((function(){v||(M()?setTimeout(F,0):F())}),[D,v]),J=Object(n.useRef)([]),ee=function(e){j.current&&j.current.contains(e.target)||(e.preventDefault(),J.current=[])};Object(n.useEffect)((function(){return m&&(document.addEventListener("dragover",T,!1),document.addEventListener("drop",ee,!1)),function(){m&&(document.removeEventListener("dragover",T),document.removeEventListener("drop",ee))}}),[j,m]);var te=Object(n.useCallback)((function(e){e.preventDefault(),e.persist(),ue(e),J.current=[].concat(H(J.current),[e.target]),L(e)&&Promise.resolve(i(e)).then((function(t){B(e)&&!w||(S({draggedFiles:t,isDragActive:!0,type:"setDraggedFiles"}),s&&s(e))}))}),[i,s,w]),re=Object(n.useCallback)((function(e){if(e.preventDefault(),e.persist(),ue(e),e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(t){}return L(e)&&d&&d(e),!1}),[d,w]),ne=Object(n.useCallback)((function(e){e.preventDefault(),e.persist(),ue(e);var t=J.current.filter((function(e){return j.current&&j.current.contains(e)})),r=t.indexOf(e.target);-1!==r&&t.splice(r,1),J.current=t,t.length>0||(S({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),L(e)&&f&&f(e))}),[j,f,w]),oe=Object(n.useCallback)((function(e){e.preventDefault(),e.persist(),ue(e),J.current=[],L(e)&&Promise.resolve(i(e)).then((function(t){if(!B(e)||w){var n=[],o=[];t.forEach((function(e){var t=_(A(e,r),2),i=t[0],u=t[1],l=_(z(e,c,a),2),s=l[0],f=l[1];if(i&&s)n.push(e);else{var d=[u,f].filter((function(e){return e}));o.push({file:e,errors:d})}})),(!u&&n.length>1||u&&l>=1&&n.length>l)&&(n.forEach((function(e){o.push({file:e,errors:[E]})})),n.splice(0)),S({acceptedFiles:n,fileRejections:o,type:"setFiles"}),p&&p(n,o,e),o.length>0&&g&&g(o,e),n.length>0&&y&&y(n,e)}})),S({type:"reset"})}),[u,r,c,a,l,i,p,y,g,w]),ie=function(e){return o?null:e},ae=function(e){return h?null:ie(e)},ce=function(e){return O?null:ie(e)},ue=function(e){w&&e.stopPropagation()},le=Object(n.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,r=void 0===t?"ref":t,n=e.onKeyDown,i=e.onFocus,a=e.onBlur,c=e.onClick,u=e.onDragEnter,l=e.onDragOver,s=e.onDragLeave,f=e.onDrop,d=q(e,["refKey","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"]);return U(U(G({onKeyDown:ae(I(n,V)),onFocus:ae(I(i,X)),onBlur:ae(I(a,K)),onClick:ie(I(c,W)),onDragEnter:ce(I(u,te)),onDragOver:ce(I(l,re)),onDragLeave:ce(I(s,ne)),onDrop:ce(I(f,oe))},r,j),o||h?{}:{tabIndex:0}),d)}}),[j,V,X,K,W,te,re,ne,oe,h,O,o]),se=Object(n.useCallback)((function(e){e.stopPropagation()}),[]),fe=Object(n.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,o=e.onChange,i=e.onClick,a=q(e,["refKey","onChange","onClick"]);return U(U({},G({accept:r,multiple:u,type:"file",style:{display:"none"},onChange:ie(I(o,oe)),onClick:ie(I(i,se)),autoComplete:"off",tabIndex:-1},n,D)),a)}}),[D,r,u,oe,o]),de=C.length,pe=de>0&&$({files:C,accept:r,minSize:c,maxSize:a,multiple:u,maxFiles:l}),ye=de>0&&!pe;return U(U({},k),{},{isDragAccept:pe,isDragReject:ye,isFocused:x&&!o,getRootProps:le,getInputProps:fe,rootRef:j,inputRef:D,open:ie(F)})}(q(e,["children"])),a=i.open,c=q(i,["open"]);return Object(n.useImperativeHandle)(t,(function(){return{open:a}}),[a]),o.a.createElement(n.Fragment,null,r(U(U({},c),{},{open:a})))}));J.displayName="Dropzone";var Q={disabled:!1,getFilesFromEvent:function(e){return c(this,void 0,void 0,(function(){return u(this,(function(t){return[2,(r=e,r.dataTransfer&&e.dataTransfer?y(e.dataTransfer,e.type):p(e))];var r}))}))},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1};J.defaultProps=Q,J.propTypes={children:a.a.func,accept:a.a.oneOfType([a.a.string,a.a.arrayOf(a.a.string)]),multiple:a.a.bool,preventDropOnDocument:a.a.bool,noClick:a.a.bool,noKeyboard:a.a.bool,noDrag:a.a.bool,noDragEventsBubbling:a.a.bool,minSize:a.a.number,maxSize:a.a.number,maxFiles:a.a.number,disabled:a.a.bool,getFilesFromEvent:a.a.func,onFileDialogCancel:a.a.func,onDragEnter:a.a.func,onDragLeave:a.a.func,onDragOver:a.a.func,onDrop:a.a.func,onDropAccepted:a.a.func,onDropRejected:a.a.func};t.a=J;var Y={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function Z(e,t){switch(t.type){case"focus":return U(U({},e),{},{isFocused:!0});case"blur":return U(U({},e),{},{isFocused:!1});case"openDialog":return U(U({},e),{},{isFileDialogActive:!0});case"closeDialog":return U(U({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":var r=t.isDragActive,n=t.draggedFiles;return U(U({},e),{},{draggedFiles:n,isDragActive:r});case"setFiles":return U(U({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return U(U({},e),{},{isFileDialogActive:!1,isDragActive:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]});default:return e}}},1742:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(64),o=r.n(n),i=r(0),a=r(39),c=i.forwardRef((function(e,t){return i.createElement(a.a,o()({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),i.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),i.createElement("path",{d:"M19.35 10.04A7.49 7.49 0 0012 4C9.11 4 6.6 5.64 5.35 8.04A5.994 5.994 0 000 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM19 18H6c-2.21 0-4-1.79-4-4 0-2.05 1.53-3.76 3.56-3.97l1.07-.11.5-.95A5.469 5.469 0 0112 6c2.62 0 4.88 1.86 5.39 4.43l.3 1.5 1.53.11A2.98 2.98 0 0122 15c0 1.65-1.35 3-3 3zM8 13h2.55v3h2.9v-3H16l-4-4z"}))}));c.displayName="CloudUpload"},1743:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(64),o=r.n(n),i=r(0),a=r(39),c=i.forwardRef((function(e,t){return i.createElement(a.a,o()({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),i.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),i.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12l4.58-4.59z"}))}));c.displayName="ChevronLeft"},1744:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(64),o=r.n(n),i=r(0),a=r(39),c=i.forwardRef((function(e,t){return i.createElement(a.a,o()({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),i.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"}))}));c.displayName="Error"},1745:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(64),o=r.n(n),i=r(0),a=r(39),c=i.forwardRef((function(e,t){return i.createElement(a.a,o()({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),i.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),i.createElement("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zM6 20V4h7v5h5v11H6z"}))}));c.displayName="InsertDriveFile"},1746:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(64),o=r.n(n),i=r(0),a=r(39),c=i.forwardRef((function(e,t){return i.createElement(a.a,o()({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),i.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),i.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"}))}));c.displayName="Clear"}}]);
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 15.b28e3a9f.chunk.js.LICENSE.txt */
2
+ (this["webpackJsonp@stlite/desktop"]=this["webpackJsonp@stlite/desktop"]||[]).push([[15],{1483:function(e,t,r){"use strict";var n,o=r(0),i=r.n(o),a=r(11),s="small",c="medium",u="large",l=r(20),d=r(74);function f(){return(f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){m(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function m(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v(e){var t;return(t={},m(t,s,"2px"),m(t,c,"4px"),m(t,u,"8px"),t)[e]}var y=Object(l.a)("div",(function(e){return{width:"100%"}}));y.displayName="StyledRoot",y.displayName="StyledRoot";var g=Object(l.a)("div",(function(e){var t=e.$theme.sizing;return{display:"flex",marginLeft:t.scale500,marginRight:t.scale500,marginTop:t.scale500,marginBottom:t.scale500}}));g.displayName="StyledBarContainer",g.displayName="StyledBarContainer";var b=Object(l.a)("div",(function(e){var t=e.$theme,r=e.$size,n=e.$steps,o=t.colors,i=t.sizing,a=t.borders.useRoundedCorners?i.scale0:0;return h({borderTopLeftRadius:a,borderTopRightRadius:a,borderBottomRightRadius:a,borderBottomLeftRadius:a,backgroundColor:Object(d.b)(o.progressbarTrackFill,"0.16"),height:v(r),flex:1,overflow:"hidden"},n<2?{}:{marginLeft:i.scale300,":first-child":{marginLeft:"0"}})}));b.displayName="StyledBar",b.displayName="StyledBar";var O=Object(l.a)("div",(function(e){var t=e.$theme,r=e.$value,n=e.$successValue,o=e.$steps,i=e.$index,a=e.$maxValue,s=e.$minValue,c=void 0===s?0:s,u=a||n,l=t.colors,d=t.sizing,f=t.borders,p="".concat(100-100*(r-c)/(u-c),"%"),m="awaits",v="inProgress",y="completed",g="default";if(o>1){var b=(u-c)/o,O=(r-c)/(u-c)*100,w=Math.floor(O/b);g=i<w?y:i===w?v:m}var S=f.useRoundedCorners?d.scale0:0,j={transform:"translateX(-".concat(p,")")},P=g===v?{animationDuration:"2.1s",animationIterationCount:"infinite",animationTimingFunction:t.animation.linearCurve,animationName:{"0%":{transform:"translateX(-102%)",opacity:1},"50%":{transform:"translateX(0%)",opacity:1},"100%":{transform:"translateX(0%)",opacity:0}}}:g===y?{transform:"translateX(0%)"}:{transform:"translateX(-102%)"};return h({borderTopLeftRadius:S,borderTopRightRadius:S,borderBottomRightRadius:S,borderBottomLeftRadius:S,backgroundColor:l.accent,height:"100%",width:"100%",transform:"translateX(-102%)",transition:"transform 0.5s"},o>1?P:j)}));O.displayName="StyledBarProgress",O.displayName="StyledBarProgress";var w=Object(l.a)("div",(function(e){var t=e.$theme,r=e.$isLeft,n=void 0!==r&&r,o=e.$size,i=void 0===o?c:o,a=t.colors,s=t.sizing,u=t.borders.useRoundedCorners?s.scale0:0,l=v(i),d={display:"inline-block",flex:1,marginLeft:"auto",marginRight:"auto",transitionProperty:"background-position",animationDuration:"1.5s",animationIterationCount:"infinite",animationTimingFunction:t.animation.linearCurve,backgroundSize:"300% auto",backgroundRepeat:"no-repeat",backgroundPositionX:n?"-50%":"150%",backgroundImage:"linear-gradient(".concat(n?"90":"270","deg, transparent 0%, ").concat(a.accent," 25%, ").concat(a.accent," 75%, transparent 100%)"),animationName:n?{"0%":{backgroundPositionX:"-50%"},"33%":{backgroundPositionX:"50%"},"66%":{backgroundPositionX:"50%"},"100%":{backgroundPositionX:"150%"}}:{"0%":{backgroundPositionX:"150%"},"33%":{backgroundPositionX:"50%"},"66%":{backgroundPositionX:"50%"},"100%":{backgroundPositionX:"-50%"}}};return h(h({},n?{borderTopLeftRadius:u,borderBottomLeftRadius:u}:{borderTopRightRadius:u,borderBottomRightRadius:u}),{},{height:l},d)}));w.displayName="StyledInfiniteBar",w.displayName="StyledInfiniteBar";var S=Object(l.a)("div",(function(e){return h(h({textAlign:"center"},e.$theme.typography.font150),{},{color:e.$theme.colors.contentTertiary})}));S.displayName="StyledLabel",S.displayName="StyledLabel";var j=(m(n={},u,{d:"M47.5 4H71.5529C82.2933 4 91 12.9543 91 24C91 35.0457 82.2933 44 71.5529 44H23.4471C12.7067 44 4 35.0457 4 24C4 12.9543 12.7067 4 23.4471 4H47.5195",width:95,height:48,strokeWidth:8,typography:"LabelLarge"}),m(n,c,{d:"M39 2H60.5833C69.0977 2 76 9.16344 76 18C76 26.8366 69.0977 34 60.5833 34H17.4167C8.90228 34 2 26.8366 2 18C2 9.16344 8.90228 2 17.4167 2H39.0195",width:78,height:36,strokeWidth:4,typography:"LabelMedium"}),m(n,s,{d:"M32 1H51.6271C57.9082 1 63 6.37258 63 13C63 19.6274 57.9082 25 51.6271 25H12.3729C6.09181 25 1 19.6274 1 13C1 6.37258 6.09181 1 12.3729 1H32.0195",width:64,height:26,strokeWidth:2,typography:"LabelSmall"}),n),P=Object(l.a)("div",(function(e){var t=e.$size,r=e.$inline;return{width:j[t].width+"px",height:j[t].height+"px",position:"relative",display:r?"inline-flex":"flex",alignItems:"center",justifyContent:"center"}}));P.displayName="StyledProgressBarRoundedRoot",P.displayName="StyledProgressBarRoundedRoot";var x=Object(l.a)("svg",(function(e){var t=e.$size;return{width:j[t].width+"px",height:j[t].height+"px",position:"absolute",fill:"none"}}));x.displayName="_StyledProgressBarRoundedSvg",x.displayName="_StyledProgressBarRoundedSvg";Object(l.d)(x,(function(e){return function(t){return i.a.createElement(e,f({viewBox:"0 0 ".concat(j[t.$size].width," ").concat(j[t.$size].height),xmlns:"http://www.w3.org/2000/svg"},t))}}));var M=Object(l.a)("path",(function(e){var t=e.$theme,r=e.$size;return{stroke:t.colors.backgroundTertiary,strokeWidth:j[r].strokeWidth+"px"}}));M.displayName="_StyledProgressBarRoundedTrackBackground",M.displayName="_StyledProgressBarRoundedTrackBackground";Object(l.d)(M,(function(e){return function(t){return i.a.createElement(e,f({d:j[t.$size].d},t))}}));var R=Object(l.a)("path",(function(e){var t=e.$theme,r=e.$size,n=e.$visible,o=e.$pathLength,i=e.$pathProgress;return{visibility:n?"visible":"hidden",stroke:t.colors.borderAccent,strokeWidth:j[r].strokeWidth+"px",strokeDasharray:o,strokeDashoffset:o*(1-i)+""}}));R.displayName="_StyledProgressBarRoundedTrackForeground",R.displayName="_StyledProgressBarRoundedTrackForeground";Object(l.d)(R,(function(e){return function(t){return i.a.createElement(e,f({d:j[t.$size].d},t))}}));var k=Object(l.a)("div",(function(e){var t=e.$theme,r=e.$size;return h({color:t.colors.contentPrimary},t.typography[j[r].typography])}));function C(e){return(C="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)}k.displayName="StyledProgressBarRoundedText",k.displayName="StyledProgressBarRoundedText";var U=["overrides","getProgressLabel","value","size","steps","successValue","minValue","maxValue","showLabel","infinite","errorMessage","forwardedRef"];function $(){return($=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function E(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(c){s=!0,o=c}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return L(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return L(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function L(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function B(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function z(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function N(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _(e,t){return(_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function T(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=A(e);if(t){var o=A(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return V(this,r)}}function V(e,t){if(t&&("object"===C(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function A(e){return(A=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var H,D,I,X=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_(e,t)}(s,e);var t,r,n,i=T(s);function s(){return z(this,s),i.apply(this,arguments)}return t=s,(r=[{key:"componentDidMount",value:function(){}},{key:"render",value:function(){var e=this.props,t=e.overrides,r=void 0===t?{}:t,n=e.getProgressLabel,i=e.value,s=e.size,c=e.steps,u=e.successValue,l=e.minValue,d=e.maxValue,f=e.showLabel,p=e.infinite,h=e.errorMessage,m=e.forwardedRef,v=B(e,U),j=this.props["aria-label"]||this.props.ariaLabel,P=100!==d?d:u,x=E(Object(a.c)(r.Root,y),2),M=x[0],R=x[1],k=E(Object(a.c)(r.BarContainer,g),2),C=k[0],L=k[1],z=E(Object(a.c)(r.Bar,b),2),N=z[0],_=z[1],T=E(Object(a.c)(r.BarProgress,O),2),V=T[0],A=T[1],H=E(Object(a.c)(r.Label,S),2),D=H[0],I=H[1],X=E(Object(a.c)(r.InfiniteBar,w),2),W=X[0],F=X[1],q={$infinite:p,$size:s,$steps:c,$successValue:P,$minValue:l,$maxValue:P,$value:i};return o.createElement(M,$({ref:m,"data-baseweb":"progress-bar",role:"progressbar","aria-label":j||n(i,P,l),"aria-valuenow":p?null:i,"aria-valuemin":p?null:l,"aria-valuemax":p?null:P,"aria-invalid":!!h||null,"aria-errormessage":h},v,q,R),o.createElement(C,$({},q,L),p?o.createElement(o.Fragment,null,o.createElement(W,$({$isLeft:!0,$size:q.$size},F)),o.createElement(W,$({$size:q.$size},F))):function(){for(var e=[],t=0;t<c;t++)e.push(o.createElement(N,$({key:t},q,_),o.createElement(V,$({$index:t},q,A))));return e}()),f&&o.createElement(D,$({},q,I),n(i,P,l)))}}])&&N(t.prototype,r),n&&N(t,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(o.Component);I={getProgressLabel:function(e,t,r){return"".concat(Math.round((e-r)/(t-r)*100),"% Loaded")},infinite:!1,overrides:{},showLabel:!1,size:c,steps:1,successValue:100,minValue:0,maxValue:100,value:0},(D="defaultProps")in(H=X)?Object.defineProperty(H,D,{value:I,enumerable:!0,configurable:!0,writable:!0}):H[D]=I;var W=o.forwardRef((function(e,t){return o.createElement(X,$({forwardedRef:t},e))}));W.displayName="ProgressBar";t.a=W},1656:function(e,t){function r(){return e.exports=r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,r.apply(this,arguments)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports},1657:function(e,t,r){var n;n=function(e){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s="./src/react-webcam.tsx")}({"./src/react-webcam.tsx":function(e,t,r){"use strict";r.r(t);var n=r("react"),o=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),i=function(){return(i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r};function s(){return!(!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)}"undefined"!==typeof window&&(void 0===navigator.mediaDevices&&(navigator.mediaDevices={}),void 0===navigator.mediaDevices.getUserMedia&&(navigator.mediaDevices.getUserMedia=function(e){var t=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia||navigator.msGetUserMedia;return t?new Promise((function(r,n){t.call(navigator,e,r,n)})):Promise.reject(new Error("getUserMedia is not implemented in this browser"))}));var c=function(e){function t(t){var r=e.call(this,t)||this;return r.canvas=null,r.ctx=null,r.requestUserMediaId=0,r.unmounted=!1,r.state={hasUserMedia:!1},r}return o(t,e),t.prototype.componentDidMount=function(){var e=this.state,t=this.props;this.unmounted=!1,s()?(e.hasUserMedia||this.requestUserMedia(),t.children&&"function"!=typeof t.children&&console.warn("children must be a function")):t.onUserMediaError("getUserMedia not supported")},t.prototype.componentDidUpdate=function(e){var t=this.props;if(s()){var r=JSON.stringify(e.audioConstraints)!==JSON.stringify(t.audioConstraints),n=JSON.stringify(e.videoConstraints)!==JSON.stringify(t.videoConstraints),o=e.minScreenshotWidth!==t.minScreenshotWidth,i=e.minScreenshotHeight!==t.minScreenshotHeight;(n||o||i)&&(this.canvas=null,this.ctx=null),(r||n)&&(this.stopAndCleanup(),this.requestUserMedia())}else t.onUserMediaError("getUserMedia not supported")},t.prototype.componentWillUnmount=function(){this.unmounted=!0,this.stopAndCleanup()},t.stopMediaStream=function(e){e&&(e.getVideoTracks&&e.getAudioTracks?(e.getVideoTracks().map((function(t){e.removeTrack(t),t.stop()})),e.getAudioTracks().map((function(t){e.removeTrack(t),t.stop()}))):e.stop())},t.prototype.stopAndCleanup=function(){var e=this.state;e.hasUserMedia&&(t.stopMediaStream(this.stream),e.src&&window.URL.revokeObjectURL(e.src))},t.prototype.getScreenshot=function(e){var t=this.state,r=this.props;if(!t.hasUserMedia)return null;var n=this.getCanvas(e);return n&&n.toDataURL(r.screenshotFormat,r.screenshotQuality)},t.prototype.getCanvas=function(e){var t=this.state,r=this.props;if(!this.video)return null;if(!t.hasUserMedia||!this.video.videoHeight)return null;if(!this.ctx){var n=this.video.videoWidth,o=this.video.videoHeight;if(!this.props.forceScreenshotSourceSize){var i=n/o;o=(n=r.minScreenshotWidth||this.video.clientWidth)/i,r.minScreenshotHeight&&o<r.minScreenshotHeight&&(n=(o=r.minScreenshotHeight)*i)}this.canvas=document.createElement("canvas"),this.canvas.width=(null===e||void 0===e?void 0:e.width)||n,this.canvas.height=(null===e||void 0===e?void 0:e.height)||o,this.ctx=this.canvas.getContext("2d")}var a=this.ctx,s=this.canvas;return a&&s&&(r.mirrored&&(a.translate(s.width,0),a.scale(-1,1)),a.imageSmoothingEnabled=r.imageSmoothing,a.drawImage(this.video,0,0,(null===e||void 0===e?void 0:e.width)||s.width,(null===e||void 0===e?void 0:e.height)||s.height),r.mirrored&&(a.scale(-1,1),a.translate(-s.width,0))),s},t.prototype.requestUserMedia=function(){var e=this,r=this.props,n=function(n,o){var i={video:"undefined"===typeof o||o};r.audio&&(i.audio="undefined"===typeof n||n),e.requestUserMediaId++;var a=e.requestUserMediaId;navigator.mediaDevices.getUserMedia(i).then((function(r){e.unmounted||a!==e.requestUserMediaId?t.stopMediaStream(r):e.handleUserMedia(null,r)})).catch((function(t){e.handleUserMedia(t)}))};if("mediaDevices"in navigator)n(r.audioConstraints,r.videoConstraints);else{var o=function(e){return{optional:[{sourceId:e}]}},i=function(e){var t=e.deviceId;return"string"===typeof t?t:Array.isArray(t)&&t.length>0?t[0]:"object"===typeof t&&t.ideal?t.ideal:null};MediaStreamTrack.getSources((function(e){var t=null,a=null;e.forEach((function(e){"audio"===e.kind?t=e.id:"video"===e.kind&&(a=e.id)}));var s=i(r.audioConstraints);s&&(t=s);var c=i(r.videoConstraints);c&&(a=c),n(o(t),o(a))}))}},t.prototype.handleUserMedia=function(e,t){var r=this.props;if(e||!t)return this.setState({hasUserMedia:!1}),void r.onUserMediaError(e);this.stream=t;try{this.video&&(this.video.srcObject=t),this.setState({hasUserMedia:!0})}catch(n){this.setState({hasUserMedia:!0,src:window.URL.createObjectURL(t)})}r.onUserMedia(t)},t.prototype.render=function(){var e=this,t=this.state,r=this.props,o=r.audio,s=(r.forceScreenshotSourceSize,r.onUserMedia,r.onUserMediaError,r.screenshotFormat,r.screenshotQuality,r.minScreenshotWidth,r.minScreenshotHeight,r.audioConstraints,r.videoConstraints,r.imageSmoothing,r.mirrored),c=r.style,u=void 0===c?{}:c,l=r.children,d=a(r,["audio","forceScreenshotSourceSize","onUserMedia","onUserMediaError","screenshotFormat","screenshotQuality","minScreenshotWidth","minScreenshotHeight","audioConstraints","videoConstraints","imageSmoothing","mirrored","style","children"]),f=s?i(i({},u),{transform:(u.transform||"")+" scaleX(-1)"}):u,p={getScreenshot:this.getScreenshot.bind(this)};return n.createElement(n.Fragment,null,n.createElement("video",i({autoPlay:!0,src:t.src,muted:!o,playsInline:!0,ref:function(t){e.video=t},style:f},d)),l&&l(p))},t.defaultProps={audio:!1,forceScreenshotSourceSize:!1,imageSmoothing:!0,mirrored:!1,onUserMedia:function(){},onUserMediaError:function(){},screenshotFormat:"image/webp",screenshotQuality:.92},t}(n.Component);t.default=c},react:function(t,r){t.exports=e}}).default},e.exports=n(r(0))},1736:function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var n=r(1656),o=r.n(n),i=r(0),a=r(39),s=i.forwardRef((function(e,t){return i.createElement(a.a,o()({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),i.createElement("rect",{width:24,height:24,fill:"none"}),i.createElement("path",{d:"M20 5h-3.17l-1.24-1.35A1.99 1.99 0 0014.12 3H9.88c-.56 0-1.1.24-1.48.65L7.17 5H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm-1.35 8.35l-2.79 2.79c-.32.32-.86.1-.86-.35v-1.75H9v1.75c0 .45-.54.67-.85.35l-2.79-2.79c-.2-.2-.2-.51 0-.71l2.79-2.79a.5.5 0 01.85.36v1.83h6v-1.83c0-.45.54-.67.85-.35l2.79 2.79c.2.19.2.51.01.7z"}))}));s.displayName="SwitchCamera"},1737:function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var n=r(84),o=r.n(n),i=r(0),a=r(39),s=i.forwardRef((function(e,t){return i.createElement(a.a,o()({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 8 8"},e,{ref:t}),i.createElement("path",{d:"M.5 1c-.28 0-.5.23-.5.5v4c0 .28.23.5.5.5h5c.28 0 .5-.22.5-.5V4l1 1h1V2H7L6 3V1.5c0-.28-.22-.5-.5-.5h-5z"}))}));s.displayName="Video"},1738:function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var n=r(84),o=r.n(n),i=r(0),a=r(39),s=i.forwardRef((function(e,t){return i.createElement(a.a,o()({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 8 8"},e,{ref:t}),i.createElement("path",{d:"M1.41 0L0 1.41l.72.72L2.5 3.94.72 5.72 0 6.41l1.41 1.44.72-.72 1.81-1.81 1.78 1.81.69.72 1.44-1.44-.72-.69-1.81-1.78 1.81-1.81.72-.72L6.41 0l-.69.72L3.94 2.5 2.13.72 1.41 0z"}))}));s.displayName="X"}}]);
@@ -0,0 +1 @@
1
+ (this["webpackJsonp@stlite/desktop"]=this["webpackJsonp@stlite/desktop"]||[]).push([[16],{1575:function(t,e){},1589:function(t,e){},1595:function(t,e){},1598:function(t,e){},1599:function(t,e){},1757:function(t,e,i){"use strict";i.r(e),i.d(e,"default",(function(){return q}));var n=i(0),o=i(1747),a=i(1551),s=i.n(a),r=i(1669),c=i(65),h=i(17),l=i(1224),d=i(1754),p=i(1668),b=i(1670),m=i(1367),g=i(1765),j=i(1748),w=i(1588),u=i(200),x=i(132),S=i(53),k=i(1351),O=i.n(k),f=i(79),v=i(34);class y extends Error{}class T extends Error{}class V{static async get(){const{commandLine:t,userMapboxToken:e}=v.a.current;return V.token&&V.commandLine===t.toLowerCase()||(V.token=""!==e?e:await this.fetchToken("https://data.streamlit.io/tokens.json","mapbox"),V.commandLine=t.toLowerCase()),V.token}static async fetchToken(t,e){try{const i=await O.a.get(t),{[e]:n}=i.data;if(null==n||""===n)throw new Error(`Missing token "${e}"`);return n}catch(i){const e=Object(f.a)(i);throw new T(`${e.message} (${t})`)}}}V.token=void 0,V.commandLine=void 0,V.isRunningLocal=()=>{const{hostname:t}=window.location;return"localhost"===t||"127.0.0.1"===t};var C=i(88),L=i.n(C),M=i(133),E=i(1);var F=({error:t,width:e,deltaType:i})=>t instanceof y?Object(E.jsx)(M.a,{width:e,name:"No Mapbox token provided",message:Object(E.jsxs)(E.Fragment,{children:[Object(E.jsxs)("p",{children:["To use ",Object(E.jsxs)("code",{children:["st.",i]})," or ",Object(E.jsx)("code",{children:"st.map"})," you need to set up a Mapbox access token."]}),Object(E.jsxs)("p",{children:["To get a token, create an account at"," ",Object(E.jsx)("a",{href:"https://mapbox.com",children:"https://mapbox.com"}),". It's free for moderate usage levels!"]}),Object(E.jsxs)("p",{children:["Once you have a token, just set it using the Streamlit config option ",Object(E.jsx)("code",{children:"mapbox.token"})," and don't forget to restart your Streamlit server at this point if it's still running, then reload this tab."]}),Object(E.jsxs)("p",{children:["See"," ",Object(E.jsx)("a",{href:"https://docs.streamlit.io/library/advanced-features/configuration#view-all-configuration-options",children:"our documentation"})," ","for more info on how to set config options."]})]})}):t instanceof T?Object(E.jsx)(M.a,{width:e,name:"Error fetching Streamlit Mapbox token",message:Object(E.jsxs)(E.Fragment,{children:[Object(E.jsx)("p",{children:"This app requires an internet connection."}),Object(E.jsx)("p",{children:"Please check your connection and try again."}),Object(E.jsxs)("p",{children:["If you think this is a bug, please file bug report"," ",Object(E.jsx)("a",{href:"https://github.com/streamlit/streamlit/issues/new/choose",children:"here"}),"."]})]})}):Object(E.jsx)(M.a,{width:e,name:"Error fetching Streamlit Mapbox token",message:t.message});var N=t=>e=>{class i extends n.PureComponent{constructor(t){super(t),this.initMapboxToken=async()=>{try{const t=await V.get();this.setState({mapboxToken:t,isFetching:!1})}catch(t){const e=Object(f.a)(t);this.setState({mapboxTokenError:e,isFetching:!1})}},this.state={isFetching:!0,mapboxToken:void 0,mapboxTokenError:void 0},this.initMapboxToken()}render(){const{mapboxToken:i,mapboxTokenError:n,isFetching:o}=this.state,{width:a}=this.props;return n?Object(E.jsx)(F,{width:a,error:n,deltaType:t}):o?Object(E.jsx)(x.a,{body:"Loading...",kind:S.a.INFO,width:a}):Object(E.jsx)(e,{mapboxToken:i,...this.props})}}return i.displayName=`withMapboxToken(${e.displayName||e.name})`,L()(i,e)},P=i(29),z=i(4);const D=Object(z.a)("div",{target:"e1q4dr931"})((({width:t,height:e,theme:i})=>({marginTop:i.spacing.sm,position:"relative",height:e,width:t})),""),J=Object(z.a)("div",{target:"e1q4dr930"})((({theme:t})=>({position:"absolute",right:"2.625rem",top:t.spacing.md,zIndex:1,"button:not(:disabled)":{background:t.colors.bgColor,"& + button":{borderTopColor:t.colors.secondaryBg},"& span":{filter:Object(h.hasLightBackgroundColor)(t)?"":"invert(100%)"}}})),"");i(1574);const $={classes:{...l,...b,...p,...m}};Object(w.b)([g.a,j.a]);const B=new d.a({configuration:$});class I extends n.PureComponent{constructor(...t){super(...t),this.state={viewState:{bearing:0,pitch:0,zoom:11},initialized:!1,initialViewState:{}},this.componentDidMount=()=>{this.setState({initialized:!0})},this.createTooltip=t=>{const{element:e}=this.props;if(!t||!t.object||!e.tooltip)return!1;const i=JSON.parse(e.tooltip);return i.html?i.html=this.interpolate(t,i.html):i.text=this.interpolate(t,i.text),i},this.interpolate=(t,e)=>{const i=e.match(/{(.*?)}/g);return i&&i.forEach((i=>{const n=i.substring(1,i.length-1);t.object.hasOwnProperty(n)&&(e=e.replace(i,t.object[n]))})),e},this.onViewStateChange=({viewState:t})=>{this.setState({viewState:t})}}static getDerivedStateFromProps(t,e){const i=I.getDeckObject(t);if(!s()(i.initialViewState,e.initialViewState)){const t=Object.keys(i.initialViewState).reduce(((t,n)=>i.initialViewState[n]===e.initialViewState[n]?t:{...t,[n]:i.initialViewState[n]}),{});return{viewState:{...e.viewState,...t},initialViewState:i.initialViewState}}return null}render(){const t=I.getDeckObject(this.props),{viewState:e}=this.state;return Object(E.jsx)(D,{className:"stDeckGlJsonChart",width:t.initialViewState.width,height:t.initialViewState.height,children:Object(E.jsxs)(o.a,{viewState:e,onViewStateChange:this.onViewStateChange,height:t.initialViewState.height,width:t.initialViewState.width,layers:this.state.initialized?t.layers:[],getTooltip:this.createTooltip,ContextProvider:r.a.Provider,controller:!0,children:[Object(E.jsx)(r.c,{height:t.initialViewState.height,width:t.initialViewState.width,mapStyle:t.mapStyle&&("string"===typeof t.mapStyle?t.mapStyle:t.mapStyle[0]),mapboxApiAccessToken:this.props.mapboxToken}),Object(E.jsx)(J,{children:Object(E.jsx)(r.b,{className:"zoomButton",showCompass:!1})})]})})}}I.getDeckObject=t=>{const{element:e,width:i,height:n,theme:o}=t,a=JSON.parse(e.json);if(!Object(P.n)(a.mapStyle)){const t=Object(h.hasLightBackgroundColor)(o)?"light":"dark";a.mapStyle=`mapbox://styles/mapbox/${t}-v9`}return n?(a.initialViewState.height=n,a.initialViewState.width=i):(a.initialViewState.height||(a.initialViewState.height=500),e.useContainerWidth&&(a.initialViewState.width=i)),delete a.views,B.convert(a)};var q=Object(c.d)(N("st.pydeck_chart")(Object(u.a)(I)))}}]);
@@ -0,0 +1 @@
1
+ (this["webpackJsonp@stlite/desktop"]=this["webpackJsonp@stlite/desktop"]||[]).push([[17],{1376:function(e,t,r){var n;!function(){"use strict";var i={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function o(e){return s(u(e),arguments)}function a(e,t){return o.apply(null,[e].concat(t||[]))}function s(e,t){var r,n,a,s,c,u,l,d,p,h=1,f=e.length,g="";for(n=0;n<f;n++)if("string"===typeof e[n])g+=e[n];else if("object"===typeof e[n]){if((s=e[n]).keys)for(r=t[h],a=0;a<s.keys.length;a++){if(void 0==r)throw new Error(o('[sprintf] Cannot access property "%s" of undefined value "%s"',s.keys[a],s.keys[a-1]));r=r[s.keys[a]]}else r=s.param_no?t[s.param_no]:t[h++];if(i.not_type.test(s.type)&&i.not_primitive.test(s.type)&&r instanceof Function&&(r=r()),i.numeric_arg.test(s.type)&&"number"!==typeof r&&isNaN(r))throw new TypeError(o("[sprintf] expecting number but found %T",r));switch(i.number.test(s.type)&&(d=r>=0),s.type){case"b":r=parseInt(r,10).toString(2);break;case"c":r=String.fromCharCode(parseInt(r,10));break;case"d":case"i":r=parseInt(r,10);break;case"j":r=JSON.stringify(r,null,s.width?parseInt(s.width):0);break;case"e":r=s.precision?parseFloat(r).toExponential(s.precision):parseFloat(r).toExponential();break;case"f":r=s.precision?parseFloat(r).toFixed(s.precision):parseFloat(r);break;case"g":r=s.precision?String(Number(r.toPrecision(s.precision))):parseFloat(r);break;case"o":r=(parseInt(r,10)>>>0).toString(8);break;case"s":r=String(r),r=s.precision?r.substring(0,s.precision):r;break;case"t":r=String(!!r),r=s.precision?r.substring(0,s.precision):r;break;case"T":r=Object.prototype.toString.call(r).slice(8,-1).toLowerCase(),r=s.precision?r.substring(0,s.precision):r;break;case"u":r=parseInt(r,10)>>>0;break;case"v":r=r.valueOf(),r=s.precision?r.substring(0,s.precision):r;break;case"x":r=(parseInt(r,10)>>>0).toString(16);break;case"X":r=(parseInt(r,10)>>>0).toString(16).toUpperCase()}i.json.test(s.type)?g+=r:(!i.number.test(s.type)||d&&!s.sign?p="":(p=d?"+":"-",r=r.toString().replace(i.sign,"")),u=s.pad_char?"0"===s.pad_char?"0":s.pad_char.charAt(1):" ",l=s.width-(p+r).length,c=s.width&&l>0?u.repeat(l):"",g+=s.align?p+r+c:"0"===u?p+c+r:c+p+r)}return g}var c=Object.create(null);function u(e){if(c[e])return c[e];for(var t,r=e,n=[],o=0;r;){if(null!==(t=i.text.exec(r)))n.push(t[0]);else if(null!==(t=i.modulo.exec(r)))n.push("%");else{if(null===(t=i.placeholder.exec(r)))throw new SyntaxError("[sprintf] unexpected placeholder");if(t[2]){o|=1;var a=[],s=t[2],u=[];if(null===(u=i.key.exec(s)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(a.push(u[1]);""!==(s=s.substring(u[0].length));)if(null!==(u=i.key_access.exec(s)))a.push(u[1]);else{if(null===(u=i.index_access.exec(s)))throw new SyntaxError("[sprintf] failed to parse named argument key");a.push(u[1])}t[2]=a}else o|=2;if(3===o)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");n.push({placeholder:t[0],param_no:t[1],keys:t[2],sign:t[3],pad_char:t[4],align:t[5],width:t[6],precision:t[7],type:t[8]})}r=r.substring(t[0].length)}return c[e]=n}t.sprintf=o,t.vsprintf=a,"undefined"!==typeof window&&(window.sprintf=o,window.vsprintf=a,void 0===(n=function(){return{sprintf:o,vsprintf:a}}.call(t,r,t,e))||(e.exports=n))}()},1377:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Right="to right",e.Left="to left",e.Down="to bottom",e.Up="to top"}(t.Direction||(t.Direction={}))},1472:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(r(1664));t.Range=i.default;var o=r(1473);t.getTrackBackground=o.getTrackBackground,t.useThumbOverlap=o.useThumbOverlap,t.relativeValue=o.relativeValue;var a=r(1377);t.Direction=a.Direction},1473:function(e,t,r){"use strict";var n=this&&this.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),i=0;for(t=0;t<r;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)n[i]=o[a];return n};Object.defineProperty(t,"__esModule",{value:!0});var i=r(0),o=r(1377);function a(e){return e===o.Direction.Up||e===o.Direction.Down}function s(e,t,r){e.style.transform="translate("+t+"px, "+r+"px)"}t.getStepDecimals=function(e){var t=e.toString().split(".")[1];return t?t.length:0},t.isTouchEvent=function(e){return e.touches&&e.touches.length||e.changedTouches&&e.changedTouches.length},t.isStepDivisible=function(e,t,r){var n=(t-e)/r;return parseInt(n.toString(),10)===n},t.normalizeValue=function(e,r,n,i,o,a,s){var c=1e11;if(e=Math.round(e*c)/c,!a){var u=s[r-1],l=s[r+1];if(u&&u>e)return u;if(l&&l<e)return l}if(e>i)return i;if(e<n)return n;var d=Math.floor(e*c-n*c)%Math.floor(o*c),p=Math.floor(e*c-Math.abs(d)),h=0===d?e:p/c,f=Math.abs(d/c)<o/2?h:h+o,g=t.getStepDecimals(o);return parseFloat(f.toFixed(g))},t.relativeValue=function(e,t,r){return(e-t)/(r-t)},t.isVertical=a,t.checkBoundaries=function(e,t,r){if(t>=r)throw new RangeError("min ("+t+") is equal/bigger than max ("+r+")");if(e<t)throw new RangeError("value ("+e+") is smaller than min ("+t+")");if(e>r)throw new RangeError("value ("+e+") is bigger than max ("+r+")")},t.checkInitialOverlap=function(e){if(!(e.length<2)&&!e.slice(1).every((function(t,r){return e[r]<=t})))throw new RangeError("values={["+e+"]} needs to be sorted when allowOverlap={false}")},t.getMargin=function(e){var t=window.getComputedStyle(e);return{top:parseInt(t["margin-top"],10),bottom:parseInt(t["margin-bottom"],10),left:parseInt(t["margin-left"],10),right:parseInt(t["margin-right"],10)}},t.getPaddingAndBorder=function(e){var t=window.getComputedStyle(e);return{top:parseInt(t["padding-top"],10)+parseInt(t["border-top-width"],10),bottom:parseInt(t["padding-bottom"],10)+parseInt(t["border-bottom-width"],10),left:parseInt(t["padding-left"],10)+parseInt(t["border-left-width"],10),right:parseInt(t["padding-right"],10)+parseInt(t["border-right-width"],10)}},t.translateThumbs=function(e,t,r){var n=r?-1:1;e.forEach((function(e,r){return s(e,n*t[r].x,t[r].y)}))},t.getClosestThumbIndex=function(e,t,r,n){for(var i=0,o=u(e[0],t,r,n),a=1;a<e.length;a++){var s=u(e[a],t,r,n);s<o&&(o=s,i=a)}return i},t.translate=s,t.schd=function(e){var t=[],r=null;return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];t=n,r||(r=requestAnimationFrame((function(){r=null,e.apply(void 0,t)})))}},t.replaceAt=function(e,t,r){var n=e.slice(0);return n[t]=r,n},t.getTrackBackground=function(e){var t=e.values,r=e.colors,n=e.min,i=e.max,a=e.direction,s=void 0===a?o.Direction.Right:a,c=e.rtl,u=void 0!==c&&c;u&&s===o.Direction.Right?s=o.Direction.Left:u&&o.Direction.Left&&(s=o.Direction.Right);var l=t.slice(0).sort((function(e,t){return e-t})).map((function(e){return(e-n)/(i-n)*100})).reduce((function(e,t,n){return e+", "+r[n]+" "+t+"%, "+r[n+1]+" "+t+"%"}),"");return"linear-gradient("+s+", "+r[0]+" 0%"+l+", "+r[r.length-1]+" 100%)"},t.voidFn=function(){},t.assertUnreachable=function(e){throw new Error("Didn't expect to get here")};var c=function(e,t,r,i,o){return void 0===o&&(o=function(e){return e}),Math.ceil(n([e],Array.from(e.children)).reduce((function(e,n){var a=Math.ceil(n.getBoundingClientRect().width);if(n.innerText&&n.innerText.includes(r)&&0===n.childElementCount){var s=n.cloneNode(!0);s.innerHTML=o(t.toFixed(i)),s.style.visibility="hidden",document.body.appendChild(s),a=Math.ceil(s.getBoundingClientRect().width),document.body.removeChild(s)}return a>e?a:e}),e.getBoundingClientRect().width))};function u(e,t,r,n){var i=e.getBoundingClientRect(),o=i.x,s=i.y,c=i.width,u=i.height;return a(n)?Math.abs(r-(s+u/2)):Math.abs(t-(o+c/2))}t.useThumbOverlap=function(e,r,o,a,s,u){void 0===a&&(a=.1),void 0===s&&(s=" - "),void 0===u&&(u=function(e){return e});var l=t.getStepDecimals(a),d=i.useState({}),p=d[0],h=d[1],f=i.useState(u(r[o].toFixed(l))),g=f[0],v=f[1];return i.useEffect((function(){if(e){var t=e.getThumbs();if(t.length<1)return;var i={},a=e.getOffsets(),d=function(e,t,r,i,o,a,s){void 0===s&&(s=function(e){return e});var u=[],l=function(e){var d=c(r[e],i[e],o,a,s),p=t[e].x;t.forEach((function(t,h){var f=t.x,g=c(r[h],i[h],o,a,s);e!==h&&(p>=f&&p<=f+g||p+d>=f&&p+d<=f+g)&&(u.includes(h)||(u.push(e),u.push(h),u=n(u,[e,h]),l(h)))}))};return l(e),Array.from(new Set(u.sort()))}(o,a,t,r,s,l,u),p=u(r[o].toFixed(l));if(d.length){var f=d.reduce((function(e,t,r,i){return e.length?n(e,[a[i[r]].x]):[a[i[r]].x]}),[]);if(Math.min.apply(Math,f)===a[o].x){var g=[];d.forEach((function(e){g.push(r[e].toFixed(l))})),p=Array.from(new Set(g.sort((function(e,t){return parseFloat(e)-parseFloat(t)})))).map(u).join(s);var m=Math.min.apply(Math,f),b=Math.max.apply(Math,f),y=t[d[f.indexOf(b)]].getBoundingClientRect().width;i.left=Math.abs(m-(b+y))/2+"px",i.transform="translate(-50%, 0)"}else i.visibility="hidden"}v(p),h(i)}}),[e,r]),[g,p]}},1664:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),i=this&&this.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),i=0;for(t=0;t<r;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)n[i]=o[a];return n},o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var a=o(r(0)),s=r(1473),c=r(1377),u=["ArrowRight","ArrowUp","k","PageUp"],l=["ArrowLeft","ArrowDown","j","PageDown"],d=function(e){function t(t){var r=e.call(this,t)||this;r.trackRef=a.createRef(),r.thumbRefs=[],r.markRefs=[],r.state={draggedTrackPos:[-1,-1],draggedThumbIndex:-1,thumbZIndexes:new Array(r.props.values.length).fill(0).map((function(e,t){return t})),isChanged:!1,markOffsets:[]},r.getOffsets=function(){var e=r.props,t=e.direction,n=e.values,i=e.min,o=e.max,a=r.trackRef.current,u=a.getBoundingClientRect(),l=s.getPaddingAndBorder(a);return r.getThumbs().map((function(e,r){var a={x:0,y:0},d=e.getBoundingClientRect(),p=s.getMargin(e);switch(t){case c.Direction.Right:return a.x=-1*(p.left+l.left),a.y=-1*((d.height-u.height)/2+l.top),a.x+=u.width*s.relativeValue(n[r],i,o)-d.width/2,a;case c.Direction.Left:return a.x=-1*(p.right+l.right),a.y=-1*((d.height-u.height)/2+l.top),a.x+=u.width-u.width*s.relativeValue(n[r],i,o)-d.width/2,a;case c.Direction.Up:return a.x=-1*((d.width-u.width)/2+p.left+l.left),a.y=-l.left,a.y+=u.height-u.height*s.relativeValue(n[r],i,o)-d.height/2,a;case c.Direction.Down:return a.x=-1*((d.width-u.width)/2+p.left+l.left),a.y=-l.left,a.y+=u.height*s.relativeValue(n[r],i,o)-d.height/2,a;default:return s.assertUnreachable(t)}}))},r.getThumbs=function(){return r.trackRef&&r.trackRef.current?Array.from(r.trackRef.current.children).filter((function(e){return e.hasAttribute("aria-valuenow")})):(console.warn("No thumbs found in the track container. Did you forget to pass & spread the `props` param in renderTrack?"),[])},r.getTargetIndex=function(e){return r.getThumbs().findIndex((function(t){return t===e.target||t.contains(e.target)}))},r.addTouchEvents=function(e){document.addEventListener("touchmove",r.schdOnTouchMove,{passive:!1}),document.addEventListener("touchend",r.schdOnEnd,{passive:!1}),document.addEventListener("touchcancel",r.schdOnEnd,{passive:!1})},r.addMouseEvents=function(e){document.addEventListener("mousemove",r.schdOnMouseMove),document.addEventListener("mouseup",r.schdOnEnd)},r.onMouseDownTrack=function(e){var t;if(0===e.button)if(e.persist(),e.preventDefault(),r.addMouseEvents(e.nativeEvent),r.props.values.length>1&&r.props.draggableTrack){if(r.thumbRefs.some((function(t){var r;return null===(r=t.current)||void 0===r?void 0:r.contains(e.target)})))return;r.setState({draggedTrackPos:[e.clientX,e.clientY]},(function(){return r.onMove(e.clientX,e.clientY)}))}else{var n=s.getClosestThumbIndex(r.thumbRefs.map((function(e){return e.current})),e.clientX,e.clientY,r.props.direction);null===(t=r.thumbRefs[n].current)||void 0===t||t.focus(),r.setState({draggedThumbIndex:n},(function(){return r.onMove(e.clientX,e.clientY)}))}},r.onResize=function(){s.translateThumbs(r.getThumbs(),r.getOffsets(),r.props.rtl),r.calculateMarkOffsets()},r.onTouchStartTrack=function(e){var t;if(e.persist(),r.addTouchEvents(e.nativeEvent),r.props.values.length>1&&r.props.draggableTrack){if(r.thumbRefs.some((function(t){var r;return null===(r=t.current)||void 0===r?void 0:r.contains(e.target)})))return;r.setState({draggedTrackPos:[e.touches[0].clientX,e.touches[0].clientY]},(function(){return r.onMove(e.touches[0].clientX,e.touches[0].clientY)}))}else{var n=s.getClosestThumbIndex(r.thumbRefs.map((function(e){return e.current})),e.touches[0].clientX,e.touches[0].clientY,r.props.direction);null===(t=r.thumbRefs[n].current)||void 0===t||t.focus(),r.setState({draggedThumbIndex:n},(function(){return r.onMove(e.touches[0].clientX,e.touches[0].clientY)}))}},r.onMouseOrTouchStart=function(e){if(!r.props.disabled){var t=s.isTouchEvent(e);if(t||0===e.button){var n=r.getTargetIndex(e);-1!==n&&(t?r.addTouchEvents(e):r.addMouseEvents(e),r.setState({draggedThumbIndex:n,thumbZIndexes:r.state.thumbZIndexes.map((function(e,t){return t===n?Math.max.apply(Math,r.state.thumbZIndexes):e<=r.state.thumbZIndexes[n]?e:e-1}))}))}}},r.onMouseMove=function(e){e.preventDefault(),r.onMove(e.clientX,e.clientY)},r.onTouchMove=function(e){e.preventDefault(),r.onMove(e.touches[0].clientX,e.touches[0].clientY)},r.onKeyDown=function(e){var t=r.props,n=t.values,i=t.onChange,o=t.step,a=t.rtl,c=r.state.isChanged,d=r.getTargetIndex(e.nativeEvent),p=a?-1:1;-1!==d&&(u.includes(e.key)?(e.preventDefault(),r.setState({draggedThumbIndex:d,isChanged:!0}),i(s.replaceAt(n,d,r.normalizeValue(n[d]+p*("PageUp"===e.key?10*o:o),d)))):l.includes(e.key)?(e.preventDefault(),r.setState({draggedThumbIndex:d,isChanged:!0}),i(s.replaceAt(n,d,r.normalizeValue(n[d]-p*("PageDown"===e.key?10*o:o),d)))):"Tab"===e.key?r.setState({draggedThumbIndex:-1},(function(){c&&r.fireOnFinalChange()})):c&&r.fireOnFinalChange())},r.onKeyUp=function(e){var t=r.state.isChanged;r.setState({draggedThumbIndex:-1},(function(){t&&r.fireOnFinalChange()}))},r.onMove=function(e,t){var n=r.state,i=n.draggedThumbIndex,o=n.draggedTrackPos,a=r.props,u=a.direction,l=a.min,d=a.max,p=a.onChange,h=a.values,f=a.step,g=a.rtl;if(-1===i&&-1===o[0]&&-1===o[1])return null;var v=r.trackRef.current;if(!v)return null;var m=v.getBoundingClientRect(),b=s.isVertical(u)?m.height:m.width;if(-1!==o[0]&&-1!==o[1]){var y=e-o[0],w=t-o[1],k=0;switch(u){case c.Direction.Right:case c.Direction.Left:k=y/b*(d-l)+l;break;case c.Direction.Down:case c.Direction.Up:k=w/b*(d-l)+l;break;default:s.assertUnreachable(u)}if(g&&(k*=-1),Math.abs(k)>=f/2){for(var x=0;x<r.thumbRefs.length;x++){if(h[x]===d&&1===Math.sign(k)||h[x]===l&&-1===Math.sign(k))return;var O=h[x]+k;O>d?k=d-h[x]:O<l&&(k=l-h[x])}var T=h.slice(0);for(x=0;x<r.thumbRefs.length;x++)T=s.replaceAt(T,x,r.normalizeValue(h[x]+k,x));r.setState({draggedTrackPos:[e,t]}),p(T)}}else{var M=0;switch(u){case c.Direction.Right:M=(e-m.left)/b*(d-l)+l;break;case c.Direction.Left:M=(b-(e-m.left))/b*(d-l)+l;break;case c.Direction.Down:M=(t-m.top)/b*(d-l)+l;break;case c.Direction.Up:M=(b-(t-m.top))/b*(d-l)+l;break;default:s.assertUnreachable(u)}g&&(M=d+l-M),Math.abs(h[i]-M)>=f/2&&p(s.replaceAt(h,i,r.normalizeValue(M,i)))}},r.normalizeValue=function(e,t){var n=r.props,i=n.min,o=n.max,a=n.step,c=n.allowOverlap,u=n.values;return s.normalizeValue(e,t,i,o,a,c,u)},r.onEnd=function(e){if(e.preventDefault(),document.removeEventListener("mousemove",r.schdOnMouseMove),document.removeEventListener("touchmove",r.schdOnTouchMove),document.removeEventListener("mouseup",r.schdOnEnd),document.removeEventListener("touchend",r.schdOnEnd),document.removeEventListener("touchcancel",r.schdOnEnd),-1===r.state.draggedThumbIndex&&-1===r.state.draggedTrackPos[0]&&-1===r.state.draggedTrackPos[1])return null;r.setState({draggedThumbIndex:-1,draggedTrackPos:[-1,-1]},(function(){r.fireOnFinalChange()}))},r.fireOnFinalChange=function(){r.setState({isChanged:!1});var e=r.props,t=e.onFinalChange,n=e.values;t&&t(n)},r.calculateMarkOffsets=function(){if(r.props.renderMark&&r.trackRef&&null!==r.trackRef.current){for(var e=window.getComputedStyle(r.trackRef.current),t=parseInt(e.width,10),n=parseInt(e.height,10),i=parseInt(e.paddingLeft,10),o=parseInt(e.paddingTop,10),a=[],s=0;s<r.numOfMarks+1;s++){var u=9999,l=9999;if(r.markRefs[s].current){var d=r.markRefs[s].current.getBoundingClientRect();u=d.height,l=d.width}r.props.direction===c.Direction.Left||r.props.direction===c.Direction.Right?a.push([Math.round(t/r.numOfMarks*s+i-l/2),-Math.round((u-n)/2)]):a.push([Math.round(n/r.numOfMarks*s+o-u/2),-Math.round((l-t)/2)])}r.setState({markOffsets:a})}},r.numOfMarks=(t.max-t.min)/r.props.step,r.schdOnMouseMove=s.schd(r.onMouseMove),r.schdOnTouchMove=s.schd(r.onTouchMove),r.schdOnEnd=s.schd(r.onEnd),r.thumbRefs=t.values.map((function(){return a.createRef()}));for(var n=0;n<r.numOfMarks+1;n++)r.markRefs[n]=a.createRef();if(s.isStepDivisible(t.min,t.max,t.step)||console.warn("The difference of `max` and `min` must be divisible by `step`"),0===t.step)throw new Error('"step" property should be a positive number');return r}return n(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props,r=t.values,n=t.min,i=t.step;this.resizeObserver=window.ResizeObserver?new window.ResizeObserver(this.onResize):{observe:function(){return window.addEventListener("resize",e.onResize)},unobserve:function(){return window.removeEventListener("resize",e.onResize)}},document.addEventListener("touchstart",this.onMouseOrTouchStart,{passive:!1}),document.addEventListener("mousedown",this.onMouseOrTouchStart,{passive:!1}),!this.props.allowOverlap&&s.checkInitialOverlap(this.props.values),this.props.values.forEach((function(t){return s.checkBoundaries(t,e.props.min,e.props.max)})),this.resizeObserver.observe(this.trackRef.current),s.translateThumbs(this.getThumbs(),this.getOffsets(),this.props.rtl),this.calculateMarkOffsets(),r.forEach((function(e){s.isStepDivisible(n,e,i)||console.warn("The `values` property is in conflict with the current `step`, `min`, and `max` properties. Please provide values that are accessible using the min, max, and step values.")}))},t.prototype.componentDidUpdate=function(e){s.translateThumbs(this.getThumbs(),this.getOffsets(),this.props.rtl)},t.prototype.componentWillUnmount=function(){document.removeEventListener("mousedown",this.onMouseOrTouchStart,{passive:!1}),document.removeEventListener("mousemove",this.schdOnMouseMove),document.removeEventListener("touchmove",this.schdOnTouchMove),document.removeEventListener("touchstart",this.onMouseOrTouchStart),document.removeEventListener("mouseup",this.schdOnEnd),document.removeEventListener("touchend",this.schdOnEnd),this.resizeObserver.unobserve(this.trackRef.current)},t.prototype.render=function(){var e=this,t=this.props,r=t.renderTrack,n=t.renderThumb,o=t.renderMark,a=void 0===o?function(){return null}:o,u=t.values,l=t.min,d=t.max,p=t.allowOverlap,h=t.disabled,f=this.state,g=f.draggedThumbIndex,v=f.thumbZIndexes,m=f.markOffsets;return r({props:{style:{transform:"scale(1)",cursor:g>-1?"grabbing":this.props.draggableTrack?s.isVertical(this.props.direction)?"ns-resize":"ew-resize":1!==u.length||h?"inherit":"pointer"},onMouseDown:h?s.voidFn:this.onMouseDownTrack,onTouchStart:h?s.voidFn:this.onTouchStartTrack,ref:this.trackRef},isDragged:this.state.draggedThumbIndex>-1,disabled:h,children:i(m.map((function(t,r){return a({props:{style:e.props.direction===c.Direction.Left||e.props.direction===c.Direction.Right?{position:"absolute",left:t[0]+"px",marginTop:t[1]+"px"}:{position:"absolute",top:t[0]+"px",marginLeft:t[1]+"px"},key:"mark"+r,ref:e.markRefs[r]},index:r})})),u.map((function(t,r){var i=e.state.draggedThumbIndex===r;return n({index:r,value:t,isDragged:i,props:{style:{position:"absolute",zIndex:v[r],cursor:h?"inherit":i?"grabbing":"grab",userSelect:"none",touchAction:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none"},key:r,tabIndex:h?void 0:0,"aria-valuemax":p?d:u[r+1]||d,"aria-valuemin":p?l:u[r-1]||l,"aria-valuenow":t,draggable:!1,ref:e.thumbRefs[r],role:"slider",onKeyDown:h?s.voidFn:e.onKeyDown,onKeyUp:h?s.voidFn:e.onKeyUp}})})))})},t.defaultProps={step:1,direction:c.Direction.Right,rtl:!1,disabled:!1,allowOverlap:!1,draggableTrack:!1,min:0,max:100},t}(a.Component);t.default=d},1788:function(e,t,r){"use strict";var n=r(0),i=r(1472),o=r(36),a=r(20);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){u(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var l=Object(a.a)("div",{position:"relative",width:"100%"});l.displayName="Root",l.displayName="Root",l.displayName="StyledRoot";var d=Object(a.a)("div",(function(e){var t=e.$theme,r=e.$value,n=void 0===r?[]:r,i=e.$disabled,o=e.$isDragged,a=t.sizing,s="inherit";return i?s="not-allowed":o?s="grabbing":1===n.length&&(s="pointer"),{paddingTop:a.scale600,paddingBottom:a.scale600,paddingRight:a.scale600,paddingLeft:a.scale600,display:"flex",cursor:s,backgroundColor:t.colors.sliderTrackFill}}));d.displayName="Track",d.displayName="Track",d.displayName="StyledTrack";var p=Object(a.a)("div",(function(e){var t=e.$theme,r=e.$value,n=void 0===r?[]:r,o=e.$min,a=e.$max,s=e.$disabled,c=t.colors,u=t.borders,l=t.direction,d=t.borders.useRoundedCorners?u.radius100:0;return{borderTopLeftRadius:d,borderTopRightRadius:d,borderBottomRightRadius:d,borderBottomLeftRadius:d,background:Object(i.getTrackBackground)({values:n,colors:1===n.length?[s?c.borderOpaque:c.primary,s?c.backgroundSecondary:c.borderOpaque]:[s?c.backgroundSecondary:c.borderOpaque,s?c.borderOpaque:c.primary,s?c.backgroundSecondary:c.borderOpaque],min:o||0,max:a||0,rtl:"rtl"===l}),height:"2px",width:"100%",alignSelf:"center",cursor:s?"not-allowed":"inherit"}}));p.displayName="InnerTrack",p.displayName="InnerTrack",p.displayName="StyledInnerTrack";var h=Object(a.a)("div",(function(e){return{width:"4px",height:"2px",backgroundColor:e.$theme.colors.backgroundPrimary,marginLeft:"16px"}}));h.displayName="Mark",h.displayName="Mark",h.displayName="StyledMark";var f=Object(a.a)("div",(function(e){return c(c({},e.$theme.typography.font200),{},{color:e.$theme.colors.contentPrimary})}));f.displayName="Tick",f.displayName="Tick",f.displayName="StyledTick";var g=Object(a.a)("div",(function(e){var t=e.$theme.sizing;return{display:"flex",justifyContent:"space-between",alignItems:"center",paddingRight:t.scale600,paddingLeft:t.scale600,paddingBottom:t.scale400}}));g.displayName="TickBar",g.displayName="TickBar",g.displayName="StyledTickBar";var v=Object(a.a)("div",(function(e){var t=e.$theme,r=e.$value,n=void 0===r?[]:r,i=e.$thumbIndex,o=e.$disabled,a=2===n.length&&0===i,s=2===n.length&&1===i;return"rtl"===t.direction&&(s||a)&&(a=!a,s=!s),{height:"24px",width:"24px",borderTopLeftRadius:"24px",borderTopRightRadius:"24px",borderBottomLeftRadius:"24px",borderBottomRightRadius:"24px",display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:o?t.colors.sliderHandleFillDisabled:t.colors.sliderHandleFill,outline:"none",boxShadow:e.$isFocusVisible?"0 0 0 3px ".concat(t.colors.accent):"0 1px 4px rgba(0, 0, 0, 0.12)",cursor:o?"not-allowed":"inherit"}}));v.displayName="Thumb",v.displayName="Thumb",v.displayName="StyledThumb";var m=Object(a.a)("div",(function(e){var t=e.$disabled,r=e.$theme;return{position:"absolute",top:"-16px",width:"4px",height:"20px",backgroundColor:t?r.colors.sliderHandleFillDisabled:r.colors.sliderHandleInnerFill}}));m.displayName="InnerThumb",m.displayName="InnerThumb",m.displayName="StyledInnerThumb";var b=Object(a.a)("div",(function(e){var t=e.$disabled,r=e.$theme;return c(c({position:"absolute",top:"-".concat(r.sizing.scale1400)},r.typography.font200),{},{backgroundColor:t?r.colors.sliderHandleFillDisabled:r.colors.sliderHandleInnerFill,color:r.colors.contentInversePrimary,paddingLeft:r.sizing.scale600,paddingRight:r.sizing.scale600,paddingTop:r.sizing.scale500,paddingBottom:r.sizing.scale500,borderBottomLeftRadius:"48px",borderBottomRightRadius:"48px",borderTopLeftRadius:"48px",borderTopRightRadius:"48px",whiteSpace:"nowrap"})}));b.displayName="ThumbValue",b.displayName="ThumbValue",b.displayName="StyledThumbValue";var y=r(11),w=r(189);function k(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function x(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?k(Object(r),!0).forEach((function(t){O(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):k(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function O(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function T(){return(T=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function M(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(c){s=!0,i=c}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return R(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return R(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}t.a=function(e){var t=e.overrides,r=void 0===t?{}:t,a=e.disabled,s=void 0!==a&&a,c=e.marks,u=void 0!==c&&c,k=e.onChange,O=void 0===k?function(){}:k,R=e.onFinalChange,S=void 0===R?function(){}:R,D=e.min,E=void 0===D?0:D,I=e.max,j=void 0===I?100:I,C=e.step,_=void 0===C?1:C,P=e.persistentThumb,L=void 0!==P&&P,$=e.valueToLabel,F=void 0===$?function(e){return e}:$,N=e.value,z=n.useContext(w.a),A=M(n.useState(!1),2),B=A[0],V=A[1],U=M(n.useState(!1),2),X=U[0],Y=U[1],q=M(n.useState(!1),2),H=q[0],K=q[1],Z=M(n.useState(-1),2),J=Z[0],W=Z[1],G=n.useCallback((function(e){Object(o.d)(e)&&K(!0);var t=e.target.parentNode.firstChild===e.target?0:1;W(t)}),[]),Q=n.useCallback((function(e){!1!==H&&K(!1),W(-1)}),[]),ee=function(e){if(e.length>2||0===e.length)throw new Error("the value prop represents positions of thumbs, so its length can be only one or two");return e}(N),te={$disabled:s,$step:_,$min:E,$max:j,$marks:u,$value:ee,$isFocusVisible:H},re=M(Object(y.c)(r.Root,l),2),ne=re[0],ie=re[1],oe=M(Object(y.c)(r.Track,d),2),ae=oe[0],se=oe[1],ce=M(Object(y.c)(r.InnerTrack,p),2),ue=ce[0],le=ce[1],de=M(Object(y.c)(r.Thumb,v),2),pe=de[0],he=de[1],fe=M(Object(y.c)(r.InnerThumb,m),2),ge=fe[0],ve=fe[1],me=M(Object(y.c)(r.ThumbValue,b),2),be=me[0],ye=me[1],we=M(Object(y.c)(r.Tick,f),2),ke=we[0],xe=we[1],Oe=M(Object(y.c)(r.TickBar,g),2),Te=Oe[0],Me=Oe[1],Re=M(Object(y.c)(r.Mark,h),2),Se=Re[0],De=Re[1];return n.createElement(ne,T({"data-baseweb":"slider"},te,ie,{onFocus:Object(o.b)(ie,G),onBlur:Object(o.a)(ie,Q)}),n.createElement(i.Range,T({step:_,min:E,max:j,values:ee,disabled:s,onChange:function(e){return O({value:e})},onFinalChange:function(e){return S({value:e})},rtl:"rtl"===z.direction,renderTrack:function(e){var t=e.props,r=e.children,i=e.isDragged;return n.createElement(ae,T({onMouseDown:t.onMouseDown,onTouchStart:t.onTouchStart,$isDragged:i},te,se),n.createElement(ue,T({$isDragged:i,ref:t.ref},te,le),r))},renderThumb:function(e){var t=e.props,r=e.index,i=e.isDragged,o=L||(!!r&&X||!r&&B||i)&&!s;return n.createElement(pe,T({},t,{onMouseEnter:function(){0===r?V(!0):Y(!0)},onMouseLeave:function(){0===r?V(!1):Y(!1)},$thumbIndex:r,$isDragged:i,style:x({},t.style)},te,he,{$isFocusVisible:H&&J===r}),o&&n.createElement(be,T({$thumbIndex:r,$isDragged:i},te,ye),F(ee[r])),o&&n.createElement(ge,T({$thumbIndex:r,$isDragged:i},te,ve)))}},u?{renderMark:function(e){var t=e.props,r=e.index;return n.createElement(Se,T({$markIndex:r},t,te,De))}}:{})),n.createElement(Te,T({},te,Me),n.createElement(ke,T({},te,xe),F(E)),n.createElement(ke,T({},te,xe),F(j))))}}}]);