harperdb 4.6.2 → 4.6.4

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 (102) hide show
  1. package/README.md +1 -1
  2. package/bin/harperdb.js +75 -75
  3. package/bin/lite.js +74 -74
  4. package/launchServiceScripts/launchNatsIngestService.js +73 -73
  5. package/launchServiceScripts/launchNatsReplyService.js +73 -73
  6. package/launchServiceScripts/launchUpdateNodes4-0-0.js +74 -74
  7. package/npm-shrinkwrap.json +77 -77
  8. package/package.json +2 -2
  9. package/resources/ResourceInterface.d.ts +1 -0
  10. package/resources/Table.d.ts +40 -41
  11. package/resources/analytics/hostnames.d.ts +39 -39
  12. package/resources/blob.d.ts +4 -4
  13. package/resources/databases.d.ts +39 -39
  14. package/server/Server.d.ts +5 -1
  15. package/server/jobs/jobProcess.js +73 -73
  16. package/server/threads/threadServer.js +73 -73
  17. package/studio/build-local/asset-manifest.json +41 -41
  18. package/studio/build-local/index.html +1 -1
  19. package/studio/build-local/static/css/main.a46e2bd8.css +13 -0
  20. package/studio/build-local/static/js/11.17b2806b.chunk.js +2 -0
  21. package/studio/build-local/static/js/164.794c66a1.chunk.js +1 -0
  22. package/studio/build-local/static/js/23.55c690ce.chunk.js +1 -0
  23. package/studio/build-local/static/js/239.5d22fd48.chunk.js +2 -0
  24. package/studio/build-local/static/js/240.2c705279.chunk.js +2 -0
  25. package/studio/build-local/static/js/240.2c705279.chunk.js.LICENSE.txt +16 -0
  26. package/studio/build-local/static/js/279.bbdf2928.chunk.js +1 -0
  27. package/studio/build-local/static/js/724.daf66453.chunk.js +1 -0
  28. package/studio/build-local/static/js/833.8c4a4a90.chunk.js +1 -0
  29. package/studio/build-local/static/js/browse-csvupload.088afad6.chunk.js +1 -0
  30. package/studio/build-local/static/js/browse-datatable.9e5f57a4.chunk.js +1 -0
  31. package/studio/build-local/static/js/browse-entitymanager.b1467efe.chunk.js +1 -0
  32. package/studio/build-local/static/js/browse-jsonviewer.c5715070.chunk.js +1 -0
  33. package/studio/build-local/static/js/custom-functions.a20f8853.chunk.js +1 -0
  34. package/studio/build-local/static/js/instance-cluster.d9f5d94b.chunk.js +1 -0
  35. package/studio/build-local/static/js/instance-config.cc1f0e92.chunk.js +1 -0
  36. package/studio/build-local/static/js/instance-logs.9d60d6ad.chunk.js +1 -0
  37. package/studio/build-local/static/js/instance-roles.cf38a24f.chunk.js +1 -0
  38. package/studio/build-local/static/js/instance-status.3c776235.chunk.js +1 -0
  39. package/studio/build-local/static/js/instance-users-datatable.2fa06057.chunk.js +1 -0
  40. package/studio/build-local/static/js/instance-users-edit.d26ea514.chunk.js +1 -0
  41. package/studio/build-local/static/js/instance-users.f11ec173.chunk.js +1 -0
  42. package/studio/build-local/static/js/instance.99cd7bf2.chunk.js +1 -0
  43. package/studio/build-local/static/js/instances.289c385e.chunk.js +1 -0
  44. package/studio/build-local/static/js/{main.447848b8.js → main.ba5ab027.js} +2 -2
  45. package/studio/build-local/static/js/offline-app.54fd7408.chunk.js +1 -0
  46. package/studio/build-local/static/js/online-app.060fd872.chunk.js +1 -0
  47. package/studio/build-local/static/js/organization-billing.e0e08f86.chunk.js +1 -0
  48. package/studio/build-local/static/js/organization-users.5755c9f0.chunk.js +1 -0
  49. package/studio/build-local/static/js/organization.6db4c138.chunk.js +1 -0
  50. package/studio/build-local/static/js/organizations.cf417207.chunk.js +1 -0
  51. package/studio/build-local/static/js/profile.3502eb02.chunk.js +1 -0
  52. package/studio/build-local/static/js/resetPassword.bdccbba4.chunk.js +1 -0
  53. package/studio/build-local/static/js/roles-jsonviewer.2488b213.chunk.js +1 -0
  54. package/studio/build-local/static/js/signIn.44a8eea8.chunk.js +1 -0
  55. package/studio/build-local/static/js/signUp.84b57b20.chunk.js +1 -0
  56. package/studio/build-local/static/js/structure-reloader.99217942.chunk.js +1 -0
  57. package/studio/build-local/static/js/topnav.dc554a18.chunk.js +1 -0
  58. package/studio/build-local/static/js/updatePassword.56bfd9f7.chunk.js +1 -0
  59. package/utility/hdbTerms.d.ts +1 -1
  60. package/utility/scripts/restartHdb.js +73 -73
  61. package/studio/build-local/static/css/main.34b26890.css +0 -13
  62. package/studio/build-local/static/js/164.a89f3fc2.chunk.js +0 -1
  63. package/studio/build-local/static/js/23.3b9f7144.chunk.js +0 -1
  64. package/studio/build-local/static/js/239.183c6cbc.chunk.js +0 -2
  65. package/studio/build-local/static/js/279.7dfac9c5.chunk.js +0 -1
  66. package/studio/build-local/static/js/545.046f5738.chunk.js +0 -1
  67. package/studio/build-local/static/js/759.7c5150cd.chunk.js +0 -2
  68. package/studio/build-local/static/js/833.fbb1857f.chunk.js +0 -1
  69. package/studio/build-local/static/js/845.79392583.chunk.js +0 -2
  70. package/studio/build-local/static/js/845.79392583.chunk.js.LICENSE.txt +0 -5
  71. package/studio/build-local/static/js/browse-csvupload.2a02693a.chunk.js +0 -1
  72. package/studio/build-local/static/js/browse-datatable.6944e1d5.chunk.js +0 -1
  73. package/studio/build-local/static/js/browse-entitymanager.78d9f3cf.chunk.js +0 -1
  74. package/studio/build-local/static/js/browse-jsonviewer.b9b13d1d.chunk.js +0 -1
  75. package/studio/build-local/static/js/custom-functions.5e20728d.chunk.js +0 -1
  76. package/studio/build-local/static/js/instance-cluster.7fa04087.chunk.js +0 -1
  77. package/studio/build-local/static/js/instance-config.cab20f8e.chunk.js +0 -1
  78. package/studio/build-local/static/js/instance-logs.c590cea3.chunk.js +0 -1
  79. package/studio/build-local/static/js/instance-roles.02c01413.chunk.js +0 -1
  80. package/studio/build-local/static/js/instance-status.872064e6.chunk.js +0 -1
  81. package/studio/build-local/static/js/instance-users-datatable.eaa7f9f0.chunk.js +0 -1
  82. package/studio/build-local/static/js/instance-users-edit.b3009a22.chunk.js +0 -1
  83. package/studio/build-local/static/js/instance-users.d4c9a21b.chunk.js +0 -1
  84. package/studio/build-local/static/js/instance.ac2d8e63.chunk.js +0 -1
  85. package/studio/build-local/static/js/instances.e177eb54.chunk.js +0 -1
  86. package/studio/build-local/static/js/offline-app.e75335f8.chunk.js +0 -1
  87. package/studio/build-local/static/js/online-app.161383cc.chunk.js +0 -1
  88. package/studio/build-local/static/js/organization-billing.8a6543c9.chunk.js +0 -1
  89. package/studio/build-local/static/js/organization-users.28a7fddd.chunk.js +0 -1
  90. package/studio/build-local/static/js/organization.7e6de94f.chunk.js +0 -1
  91. package/studio/build-local/static/js/organizations.a35fef39.chunk.js +0 -1
  92. package/studio/build-local/static/js/profile.ec638faf.chunk.js +0 -1
  93. package/studio/build-local/static/js/resetPassword.c64684e3.chunk.js +0 -1
  94. package/studio/build-local/static/js/roles-jsonviewer.28347efe.chunk.js +0 -1
  95. package/studio/build-local/static/js/signIn.95abea6a.chunk.js +0 -1
  96. package/studio/build-local/static/js/signUp.a095114b.chunk.js +0 -1
  97. package/studio/build-local/static/js/structure-reloader.89712250.chunk.js +0 -1
  98. package/studio/build-local/static/js/topnav.6ac108a6.chunk.js +0 -1
  99. package/studio/build-local/static/js/updatePassword.839328e6.chunk.js +0 -1
  100. /package/studio/build-local/static/js/{759.7c5150cd.chunk.js.LICENSE.txt → 11.17b2806b.chunk.js.LICENSE.txt} +0 -0
  101. /package/studio/build-local/static/js/{239.183c6cbc.chunk.js.LICENSE.txt → 239.5d22fd48.chunk.js.LICENSE.txt} +0 -0
  102. /package/studio/build-local/static/js/{main.447848b8.js.LICENSE.txt → main.ba5ab027.js.LICENSE.txt} +0 -0
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 11.17b2806b.chunk.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunkharperdb_studio=self.webpackChunkharperdb_studio||[]).push([[11],{3876:(e,t,n)=>{var r=n(6429),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var l=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(h){var o=f(n);o&&o!==h&&e(t,o,r)}var a=c(n);d&&(a=a.concat(d(n)));for(var s=u(t),v=u(n),m=0;m<a.length;++m){var g=a[m];if(!i[g]&&(!r||!r[g])&&(!v||!v[g])&&(!s||!s[g])){var b=p(n,g);try{l(t,g,b)}catch(y){}}}}return t}},8577:(e,t)=>{var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,v=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,g=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,O=n?Symbol.for("react.scope"):60119;function w(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case i:case s:case a:case f:return e;default:switch(e=e&&e.$$typeof){case l:case p:case m:case v:case u:return e;default:return t}}case o:return t}}}function x(e){return w(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=l,t.ContextProvider=u,t.Element=r,t.ForwardRef=p,t.Fragment=i,t.Lazy=m,t.Memo=v,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=f,t.isAsyncMode=function(e){return x(e)||w(e)===c},t.isConcurrentMode=x,t.isContextConsumer=function(e){return w(e)===l},t.isContextProvider=function(e){return w(e)===u},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===p},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===m},t.isMemo=function(e){return w(e)===v},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===f},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===i||e===d||e===s||e===a||e===f||e===h||"object"===typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===v||e.$$typeof===u||e.$$typeof===l||e.$$typeof===p||e.$$typeof===b||e.$$typeof===y||e.$$typeof===O||e.$$typeof===g)},t.typeOf=w},6429:(e,t,n)=>{e.exports=n(8577)},8547:(e,t,n)=>{n.d(t,{Ay:()=>Ir});var r=n(9379);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function i(e,t){if(e){if("string"==typeof e)return o(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||i(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.")}()}var s=n(45),u=n(9950),l=n.t(u,2),c=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];var d=n(8168);var p=n(816);function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(0,p.A)(r.key),r)}}var h=n(3662);function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function m(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(m=function(){return!!e})()}var g=n(2284),b=n(9417);function y(e){var t=m();return function(){var n,r=v(e);if(t){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==(0,g.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,b.A)(e)}(this,n)}}function O(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||i(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.")}()}var w=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(on){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),x=Math.abs,A=String.fromCharCode,C=Object.assign;function S(e){return e.trim()}function I(e,t,n){return e.replace(t,n)}function M(e,t){return e.indexOf(t)}function E(e,t){return 0|e.charCodeAt(t)}function k(e,t,n){return e.slice(t,n)}function V(e){return e.length}function P(e){return e.length}function R(e,t){return t.push(e),e}var D=1,F=1,L=0,T=0,H=0,j="";function N(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:D,column:F,length:a,return:""}}function $(e,t){return C(N("",null,null,"",null,null,0),e,{length:-e.length},t)}function z(){return H=T>0?E(j,--T):0,F--,10===H&&(F=1,D--),H}function U(){return H=T<L?E(j,T++):0,F++,10===H&&(F=1,D++),H}function B(){return E(j,T)}function _(){return T}function W(e,t){return k(j,e,t)}function G(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Y(e){return D=F=1,L=V(j=e),T=0,[]}function q(e){return j="",e}function X(e){return S(W(T-1,Z(91===e?e+2:40===e?e+1:e)))}function K(e){for(;(H=B())&&H<33;)U();return G(e)>2||G(H)>3?"":" "}function J(e,t){for(;--t&&U()&&!(H<48||H>102||H>57&&H<65||H>70&&H<97););return W(e,_()+(t<6&&32==B()&&32==U()))}function Z(e){for(;U();)switch(H){case e:return T;case 34:case 39:34!==e&&39!==e&&Z(H);break;case 40:41===e&&Z(e);break;case 92:U()}return T}function Q(e,t){for(;U()&&e+H!==57&&(e+H!==84||47!==B()););return"/*"+W(t,T-1)+"*"+A(47===e?e:U())}function ee(e){for(;!G(B());)U();return W(e,T)}var te="-ms-",ne="-moz-",re="-webkit-",oe="comm",ie="rule",ae="decl",se="@keyframes";function ue(e,t){for(var n="",r=P(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function le(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case ae:return e.return=e.return||e.value;case oe:return"";case se:return e.return=e.value+"{"+ue(e.children,r)+"}";case ie:e.value=e.props.join(",")}return V(n=ue(e.children,r))?e.return=e.value+"{"+n+"}":""}function ce(e){return q(de("",null,null,null,[""],e=Y(e),0,[0],e))}function de(e,t,n,r,o,i,a,s,u){for(var l=0,c=0,d=a,p=0,f=0,h=0,v=1,m=1,g=1,b=0,y="",O=o,w=i,x=r,C=y;m;)switch(h=b,b=U()){case 40:if(108!=h&&58==E(C,d-1)){-1!=M(C+=I(X(b),"&","&\f"),"&\f")&&(g=-1);break}case 34:case 39:case 91:C+=X(b);break;case 9:case 10:case 13:case 32:C+=K(h);break;case 92:C+=J(_()-1,7);continue;case 47:switch(B()){case 42:case 47:R(fe(Q(U(),_()),t,n),u);break;default:C+="/"}break;case 123*v:s[l++]=V(C)*g;case 125*v:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+c:-1==g&&(C=I(C,/\f/g,"")),f>0&&V(C)-d&&R(f>32?he(C+";",r,n,d-1):he(I(C," ","")+";",r,n,d-2),u);break;case 59:C+=";";default:if(R(x=pe(C,t,n,l,c,o,s,y,O=[],w=[],d),i),123===b)if(0===c)de(C,t,x,x,O,i,d,s,w);else switch(99===p&&110===E(C,3)?100:p){case 100:case 108:case 109:case 115:de(e,x,x,r&&R(pe(e,x,x,0,0,o,s,y,o,O=[],d),w),o,w,d,s,r?O:w);break;default:de(C,x,x,x,[""],w,0,s,w)}}l=c=f=0,v=g=1,y=C="",d=a;break;case 58:d=1+V(C),f=h;default:if(v<1)if(123==b)--v;else if(125==b&&0==v++&&125==z())continue;switch(C+=A(b),b*v){case 38:g=c>0?1:(C+="\f",-1);break;case 44:s[l++]=(V(C)-1)*g,g=1;break;case 64:45===B()&&(C+=X(U())),p=B(),c=d=V(y=C+=ee(_())),b++;break;case 45:45===h&&2==V(C)&&(v=0)}}return i}function pe(e,t,n,r,o,i,a,s,u,l,c){for(var d=o-1,p=0===o?i:[""],f=P(p),h=0,v=0,m=0;h<r;++h)for(var g=0,b=k(e,d+1,d=x(v=a[h])),y=e;g<f;++g)(y=S(v>0?p[g]+" "+b:I(b,/&\f/g,p[g])))&&(u[m++]=y);return N(e,t,n,0===o?ie:s,u,l,c)}function fe(e,t,n){return N(e,t,n,oe,A(H),k(e,2,-2),0)}function he(e,t,n,r){return N(e,t,n,ae,k(e,0,r),k(e,r+1,-1),r)}var ve=function(e,t,n){for(var r=0,o=0;r=o,o=B(),38===r&&12===o&&(t[n]=1),!G(o);)U();return W(e,T)},me=function(e,t){return q(function(e,t){var n=-1,r=44;do{switch(G(r)){case 0:38===r&&12===B()&&(t[n]=1),e[n]+=ve(T-1,t,n);break;case 2:e[n]+=X(r);break;case 4:if(44===r){e[++n]=58===B()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=A(r)}}while(r=U());return e}(Y(e),t))},ge=new WeakMap,be=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||ge.get(n))&&!r){ge.set(e,!0);for(var o=[],i=me(t,o),a=n.props,s=0,u=0;s<i.length;s++)for(var l=0;l<a.length;l++,u++)e.props[u]=o[s]?i[s].replace(/&\f/g,a[l]):a[l]+" "+i[s]}}},ye=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Oe(e,t){switch(function(e,t){return 45^E(e,0)?(((t<<2^E(e,0))<<2^E(e,1))<<2^E(e,2))<<2^E(e,3):0}(e,t)){case 5103:return re+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return re+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return re+e+ne+e+te+e+e;case 6828:case 4268:return re+e+te+e+e;case 6165:return re+e+te+"flex-"+e+e;case 5187:return re+e+I(e,/(\w+).+(:[^]+)/,re+"box-$1$2"+te+"flex-$1$2")+e;case 5443:return re+e+te+"flex-item-"+I(e,/flex-|-self/,"")+e;case 4675:return re+e+te+"flex-line-pack"+I(e,/align-content|flex-|-self/,"")+e;case 5548:return re+e+te+I(e,"shrink","negative")+e;case 5292:return re+e+te+I(e,"basis","preferred-size")+e;case 6060:return re+"box-"+I(e,"-grow","")+re+e+te+I(e,"grow","positive")+e;case 4554:return re+I(e,/([^-])(transform)/g,"$1"+re+"$2")+e;case 6187:return I(I(I(e,/(zoom-|grab)/,re+"$1"),/(image-set)/,re+"$1"),e,"")+e;case 5495:case 3959:return I(e,/(image-set\([^]*)/,re+"$1$`$1");case 4968:return I(I(e,/(.+:)(flex-)?(.*)/,re+"box-pack:$3"+te+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+re+e+e;case 4095:case 3583:case 4068:case 2532:return I(e,/(.+)-inline(.+)/,re+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(V(e)-1-t>6)switch(E(e,t+1)){case 109:if(45!==E(e,t+4))break;case 102:return I(e,/(.+:)(.+)-([^]+)/,"$1"+re+"$2-$3$1"+ne+(108==E(e,t+3)?"$3":"$2-$3"))+e;case 115:return~M(e,"stretch")?Oe(I(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==E(e,t+1))break;case 6444:switch(E(e,V(e)-3-(~M(e,"!important")&&10))){case 107:return I(e,":",":"+re)+e;case 101:return I(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+re+(45===E(e,14)?"inline-":"")+"box$3$1"+re+"$2$3$1"+te+"$2box$3")+e}break;case 5936:switch(E(e,t+11)){case 114:return re+e+te+I(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return re+e+te+I(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return re+e+te+I(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return re+e+te+e+e}return e}var we=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case ae:e.return=Oe(e.value,e.length);break;case se:return ue([$(e,{value:I(e.value,"@","@"+re)})],r);case ie:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ue([$(e,{props:[I(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return ue([$(e,{props:[I(t,/:(plac\w+)/,":"+re+"input-$1")]}),$(e,{props:[I(t,/:(plac\w+)/,":-moz-$1")]}),$(e,{props:[I(t,/:(plac\w+)/,te+"input-$1")]})],r)}return""}))}}],xe=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,i=e.stylisPlugins||we,a={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)}));var u,l,c=[le,(l=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&l(e)})],d=function(e){var t=P(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}([be,ye].concat(i,c));o=function(e,t,n,r){u=n,ue(ce(e?e+"{"+t.styles+"}":t.styles),d),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new w({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return p.sheet.hydrate(s),p};var Ae=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)};var Ce={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Se(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Ie=/[A-Z]|^ms/g,Me=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ee=function(e){return 45===e.charCodeAt(1)},ke=function(e){return null!=e&&"boolean"!==typeof e},Ve=Se((function(e){return Ee(e)?e:e.replace(Ie,"-$&").toLowerCase()})),Pe=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(Me,(function(e,t,n){return De={name:t,styles:n,next:De},t}))}return 1===Ce[e]||Ee(e)||"number"!==typeof t||0===t?t:t+"px"};function Re(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return De={name:o.name,styles:o.styles,next:De},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)De={name:a.name,styles:a.styles,next:De},a=a.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Re(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!==typeof a){var s=a;null!=t&&void 0!==t[s]?r+=i+"{"+t[s]+"}":ke(s)&&(r+=Ve(i)+":"+Pe(i,s)+";")}else if(!Array.isArray(a)||"string"!==typeof a[0]||null!=t&&void 0!==t[a[0]]){var u=Re(e,t,a);switch(i){case"animation":case"animationName":r+=Ve(i)+":"+u+";";break;default:r+=i+"{"+u+"}"}}else for(var l=0;l<a.length;l++)ke(a[l])&&(r+=Ve(i)+":"+Pe(i,a[l])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=De,u=n(e);return De=s,Re(e,t,u)}}var l=n;if(null==t)return l;var c=t[l];return void 0!==c?c:l}var De,Fe=/label:\s*([^\s;{]+)\s*(;|$)/g;function Le(e,t,n){if(1===e.length&&"object"===typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";De=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=Re(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++){if(o+=Re(n,t,e[a]),r)o+=i[a]}Fe.lastIndex=0;for(var s,u="";null!==(s=Fe.exec(o));)u+="-"+s[1];var l=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+u;return{name:l,styles:o,next:De}}var Te=!!l.useInsertionEffect&&l.useInsertionEffect,He=Te||function(e){return e()},je=(Te||u.useLayoutEffect,u.createContext("undefined"!==typeof HTMLElement?xe({key:"css"}):null)),Ne=(je.Provider,function(e){return(0,u.forwardRef)((function(t,n){var r=(0,u.useContext)(je);return e(t,r,n)}))}),$e=u.createContext({});var ze={}.hasOwnProperty,Ue="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Be=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Ae(t,n,r),He((function(){return function(e,t,n){Ae(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}(t,n,r)})),null},_e=Ne((function(e,t,n){var r=e.css;"string"===typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[Ue],i=[r],a="";"string"===typeof e.className?a=function(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var s=Le(i,void 0,u.useContext($e));a+=t.key+"-"+s.name;var l={};for(var c in e)ze.call(e,c)&&"css"!==c&&c!==Ue&&(l[c]=e[c]);return l.className=a,n&&(l.ref=n),u.createElement(u.Fragment,null,u.createElement(Be,{cache:t,serialized:s,isStringTag:"string"===typeof o}),u.createElement(o,l))})),We=_e,Ge=(n(3876),function(e,t){var n=arguments;if(null==t||!ze.call(t,"css"))return u.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=We,o[1]=function(e,t){var n={};for(var r in t)ze.call(t,r)&&(n[r]=t[r]);return n[Ue]=e,n}(e,t);for(var i=2;i<r;i++)o[i]=n[i];return u.createElement.apply(null,o)});!function(e){var t;t||(t=e.JSX||(e.JSX={}))}(Ge||(Ge={}));function Ye(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Le(t)}var qe=n(4467),Xe=n(7119);const Ke=Math.min,Je=Math.max,Ze=Math.round,Qe=Math.floor,et=e=>({x:e,y:e});function tt(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function nt(){return"undefined"!==typeof window}function rt(e){return at(e)?(e.nodeName||"").toLowerCase():"#document"}function ot(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function it(e){var t;return null==(t=(at(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function at(e){return!!nt()&&(e instanceof Node||e instanceof ot(e).Node)}function st(e){return!!nt()&&(e instanceof Element||e instanceof ot(e).Element)}function ut(e){return!!nt()&&(e instanceof HTMLElement||e instanceof ot(e).HTMLElement)}function lt(e){return!(!nt()||"undefined"===typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof ot(e).ShadowRoot)}function ct(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=ft(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function dt(){return!("undefined"===typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function pt(e){return["html","body","#document"].includes(rt(e))}function ft(e){return ot(e).getComputedStyle(e)}function ht(e){if("html"===rt(e))return e;const t=e.assignedSlot||e.parentNode||lt(e)&&e.host||it(e);return lt(t)?t.host:t}function vt(e){const t=ht(e);return pt(t)?e.ownerDocument?e.ownerDocument.body:e.body:ut(t)&&ct(t)?t:vt(t)}function mt(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=vt(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=ot(o);if(i){const e=gt(a);return t.concat(a,a.visualViewport||[],ct(o)?o:[],e&&n?mt(e):[])}return t.concat(o,mt(o,[],n))}function gt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function bt(e){const t=ft(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ut(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=Ze(n)!==i||Ze(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function yt(e){return st(e)?e:e.contextElement}function Ot(e){const t=yt(e);if(!ut(t))return et(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=bt(t);let a=(i?Ze(n.width):n.width)/r,s=(i?Ze(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const wt=et(0);function xt(e){const t=ot(e);return dt()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:wt}function At(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=yt(e);let a=et(1);t&&(r?st(r)&&(a=Ot(r)):a=Ot(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==ot(e))&&t}(i,n,r)?xt(i):et(0);let u=(o.left+s.x)/a.x,l=(o.top+s.y)/a.y,c=o.width/a.x,d=o.height/a.y;if(i){const e=ot(i),t=r&&st(r)?ot(r):r;let n=e,o=gt(n);for(;o&&r&&t!==n;){const e=Ot(o),t=o.getBoundingClientRect(),r=ft(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,l*=e.y,c*=e.x,d*=e.y,u+=i,l+=a,n=ot(o),o=gt(n)}}return tt({width:c,height:d,x:u,y:l})}function Ct(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:s="function"===typeof ResizeObserver,layoutShift:u="function"===typeof IntersectionObserver,animationFrame:l=!1}=o,c=yt(e),d=i||a?[...c?mt(c):[],...mt(t)]:[];d.forEach((e=>{i&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)}));const p=c&&u?function(e,t){let n,o=null;const i=it(e);function a(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return function s(u,l){void 0===u&&(u=!1),void 0===l&&(l=1),a();const{left:c,top:d,width:p,height:f}=e.getBoundingClientRect();if(u||t(),!p||!f)return;const h={rootMargin:-Qe(d)+"px "+-Qe(i.clientWidth-(c+p))+"px "+-Qe(i.clientHeight-(d+f))+"px "+-Qe(c)+"px",threshold:Je(0,Ke(1,l))||1};let v=!0;function m(e){const t=e[0].intersectionRatio;if(t!==l){if(!v)return s();t?s(!1,t):n=setTimeout((()=>{s(!1,1e-7)}),1e3)}v=!1}try{o=new IntersectionObserver(m,(0,r.A)((0,r.A)({},h),{},{root:i.ownerDocument}))}catch(on){o=new IntersectionObserver(m,h)}o.observe(e)}(!0),a}(c,n):null;let f,h=-1,v=null;s&&(v=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&v&&(v.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame((()=>{var e;null==(e=v)||e.observe(t)}))),n()})),c&&!l&&v.observe(c),v.observe(t));let m=l?At(e):null;return l&&function t(){const r=At(e);!m||r.x===m.x&&r.y===m.y&&r.width===m.width&&r.height===m.height||n();m=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach((e=>{i&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)})),null==p||p(),null==(e=v)||e.disconnect(),v=null,l&&cancelAnimationFrame(f)}}var St=u.useLayoutEffect,It=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Mt=function(){};function Et(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function kt(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=[].concat(r);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&i.push("".concat(Et(e,a)));return i.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var Vt=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===(0,g.A)(e)&&null!==e?[e]:[];var t},Pt=function(e){e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme;var t=(0,s.A)(e,It);return(0,r.A)({},t)},Rt=function(e,t,n){var r=e.cx,o=e.getStyles,i=e.getClassNames,a=e.className;return{css:o(t,e),className:r(null!==n&&void 0!==n?n:{},i(t,e),a)}};function Dt(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Ft(e){return Dt(e)?window.pageYOffset:e.scrollTop}function Lt(e,t){Dt(e)?window.scrollTo(0,t):e.scrollTop=t}function Tt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Mt,o=Ft(e),i=t-o,a=0;!function t(){var s,u=i*((s=(s=a+=10)/n-1)*s*s+1)+o;Lt(e,u),a<n?window.requestAnimationFrame(t):r(e)}()}function Ht(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?Lt(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&Lt(e,Math.max(t.offsetTop-o,0))}function jt(){try{return document.createEvent("TouchEvent"),!0}catch(on){return!1}}var Nt=!1,$t={get passive(){return Nt=!0}},zt="undefined"!==typeof window?window:{};zt.addEventListener&&zt.removeEventListener&&(zt.addEventListener("p",Mt,$t),zt.removeEventListener("p",Mt,!1));var Ut=Nt;function Bt(e){return null!=e}function _t(e,t,n){return e?t:n}var Wt=["children","innerProps"],Gt=["children","innerProps"];function Yt(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,u=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}(n),l={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return l;var c,d=u.getBoundingClientRect().height,p=n.getBoundingClientRect(),f=p.bottom,h=p.height,v=p.top,m=n.offsetParent.getBoundingClientRect().top,g=a?window.innerHeight:Dt(c=u)?window.innerHeight:c.clientHeight,b=Ft(u),y=parseInt(getComputedStyle(n).marginBottom,10),O=parseInt(getComputedStyle(n).marginTop,10),w=m-O,x=g-v,A=w+b,C=d-b-v,S=f-g+b+y,I=b+v-O,M=160;switch(o){case"auto":case"bottom":if(x>=h)return{placement:"bottom",maxHeight:t};if(C>=h&&!a)return i&&Tt(u,S,M),{placement:"bottom",maxHeight:t};if(!a&&C>=r||a&&x>=r)return i&&Tt(u,S,M),{placement:"bottom",maxHeight:a?x-y:C-y};if("auto"===o||a){var E=t,k=a?w:A;return k>=r&&(E=Math.min(k-y-s,t)),{placement:"top",maxHeight:E}}if("bottom"===o)return i&&Lt(u,S),{placement:"bottom",maxHeight:t};break;case"top":if(w>=h)return{placement:"top",maxHeight:t};if(A>=h&&!a)return i&&Tt(u,I,M),{placement:"top",maxHeight:t};if(!a&&A>=r||a&&w>=r){var V=t;return(!a&&A>=r||a&&w>=r)&&(V=a?w-O:A-O),i&&Tt(u,I,M),{placement:"top",maxHeight:V}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return l}var qt,Xt=function(e){return"auto"===e?"bottom":e},Kt=(0,u.createContext)(null),Jt=function(e){var t=e.children,n=e.minMenuHeight,o=e.maxMenuHeight,i=e.menuPlacement,s=e.menuPosition,l=e.menuShouldScrollIntoView,c=e.theme,d=((0,u.useContext)(Kt)||{}).setPortalPlacement,p=(0,u.useRef)(null),f=a((0,u.useState)(o),2),h=f[0],v=f[1],m=a((0,u.useState)(null),2),g=m[0],b=m[1],y=c.spacing.controlHeight;return St((function(){var e=p.current;if(e){var t="fixed"===s,r=Yt({maxHeight:o,menuEl:e,minHeight:n,placement:i,shouldScroll:l&&!t,isFixedPosition:t,controlHeight:y});v(r.maxHeight),b(r.placement),null===d||void 0===d||d(r.placement)}}),[o,i,s,l,n,d,y]),t({ref:p,placerProps:(0,r.A)((0,r.A)({},e),{},{placement:g||Xt(i),maxHeight:h})})},Zt=function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return Ge("div",(0,d.A)({},Rt(e,"menu",{menu:!0}),{ref:n},r),t)},Qt=function(e,t){var n=e.theme,o=n.spacing.baseUnit,i=n.colors;return(0,r.A)({textAlign:"center"},t?{}:{color:i.neutral40,padding:"".concat(2*o,"px ").concat(3*o,"px")})},en=Qt,tn=Qt,nn=["size"],rn=["innerProps","isRtl","size"];var on,an,sn={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},un=function(e){var t=e.size,n=(0,s.A)(e,nn);return Ge("svg",(0,d.A)({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:sn},n))},ln=function(e){return Ge(un,(0,d.A)({size:20},e),Ge("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},cn=function(e){return Ge(un,(0,d.A)({size:20},e),Ge("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},dn=function(e,t){var n=e.isFocused,o=e.theme,i=o.spacing.baseUnit,a=o.colors;return(0,r.A)({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*i,":hover":{color:n?a.neutral80:a.neutral40}})},pn=dn,fn=dn,hn=function(){var e=Ye.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(qt||(on=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],an||(an=on.slice(0)),qt=Object.freeze(Object.defineProperties(on,{raw:{value:Object.freeze(an)}})))),vn=function(e){var t=e.delay,n=e.offset;return Ge("span",{css:Ye({animation:"".concat(hn," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},mn=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,i=e.innerProps,a=e.menuIsOpen;return Ge("div",(0,d.A)({ref:o},Rt(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":a}),i,{"aria-disabled":n||void 0}),t)},gn=["data"],bn=function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.getClassNames,i=e.Heading,a=e.headingProps,s=e.innerProps,u=e.label,l=e.theme,c=e.selectProps;return Ge("div",(0,d.A)({},Rt(e,"group",{group:!0}),s),Ge(i,(0,d.A)({},a,{selectProps:c,theme:l,getStyles:r,getClassNames:o,cx:n}),u),Ge("div",null,t))},yn=["innerRef","isDisabled","isHidden","inputClassName"],On={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},wn={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":(0,r.A)({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},On)},xn=function(e){return(0,r.A)({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},On)},An=function(e){var t=e.children,n=e.innerProps;return Ge("div",n,t)};var Cn=function(e){var t=e.children,n=e.components,o=e.data,i=e.innerProps,a=e.isDisabled,s=e.removeProps,u=e.selectProps,l=n.Container,c=n.Label,d=n.Remove;return Ge(l,{data:o,innerProps:(0,r.A)((0,r.A)({},Rt(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),i),selectProps:u},Ge(c,{data:o,innerProps:(0,r.A)({},Rt(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:u},t),Ge(d,{data:o,innerProps:(0,r.A)((0,r.A)({},Rt(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},s),selectProps:u}))},Sn={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return Ge("div",(0,d.A)({},Rt(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||Ge(ln,null))},Control:mn,DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return Ge("div",(0,d.A)({},Rt(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||Ge(cn,null))},DownChevron:cn,CrossIcon:ln,Group:bn,GroupHeading:function(e){var t=Pt(e);t.data;var n=(0,s.A)(t,gn);return Ge("div",(0,d.A)({},Rt(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return Ge("div",(0,d.A)({},Rt(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return Ge("span",(0,d.A)({},t,Rt(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=Pt(e),o=r.innerRef,i=r.isDisabled,a=r.isHidden,u=r.inputClassName,l=(0,s.A)(r,yn);return Ge("div",(0,d.A)({},Rt(e,"input",{"input-container":!0}),{"data-value":n||""}),Ge("input",(0,d.A)({className:t({input:!0},u),ref:o,style:xn(a),disabled:i},l)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,o=e.size,i=void 0===o?4:o,a=(0,s.A)(e,rn);return Ge("div",(0,d.A)({},Rt((0,r.A)((0,r.A)({},a),{},{innerProps:t,isRtl:n,size:i}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),Ge(vn,{delay:0,offset:n}),Ge(vn,{delay:160,offset:!0}),Ge(vn,{delay:320,offset:!n}))},Menu:Zt,MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,o=e.isMulti;return Ge("div",(0,d.A)({},Rt(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,o=e.controlElement,i=e.innerProps,s=e.menuPlacement,l=e.menuPosition,c=(0,u.useRef)(null),p=(0,u.useRef)(null),f=a((0,u.useState)(Xt(s)),2),h=f[0],v=f[1],m=(0,u.useMemo)((function(){return{setPortalPlacement:v}}),[]),g=a((0,u.useState)(null),2),b=g[0],y=g[1],O=(0,u.useCallback)((function(){if(o){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(o),t="fixed"===l?0:window.pageYOffset,n=e[h]+t;n===(null===b||void 0===b?void 0:b.offset)&&e.left===(null===b||void 0===b?void 0:b.rect.left)&&e.width===(null===b||void 0===b?void 0:b.rect.width)||y({offset:n,rect:e})}}),[o,l,h,null===b||void 0===b?void 0:b.offset,null===b||void 0===b?void 0:b.rect.left,null===b||void 0===b?void 0:b.rect.width]);St((function(){O()}),[O]);var w=(0,u.useCallback)((function(){"function"===typeof p.current&&(p.current(),p.current=null),o&&c.current&&(p.current=Ct(o,c.current,O,{elementResize:"ResizeObserver"in window}))}),[o,O]);St((function(){w()}),[w]);var x=(0,u.useCallback)((function(e){c.current=e,w()}),[w]);if(!t&&"fixed"!==l||!b)return null;var A=Ge("div",(0,d.A)({ref:x},Rt((0,r.A)((0,r.A)({},e),{},{offset:b.offset,position:l,rect:b.rect}),"menuPortal",{"menu-portal":!0}),i),n);return Ge(Kt.Provider,{value:m},t?(0,Xe.createPortal)(A,t):A)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,o=e.innerProps,i=(0,s.A)(e,Gt);return Ge("div",(0,d.A)({},Rt((0,r.A)((0,r.A)({},i),{},{children:n,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,o=e.innerProps,i=(0,s.A)(e,Wt);return Ge("div",(0,d.A)({},Rt((0,r.A)((0,r.A)({},i),{},{children:n,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),n)},MultiValue:Cn,MultiValueContainer:An,MultiValueLabel:An,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return Ge("div",(0,d.A)({role:"button"},n),t||Ge(ln,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.innerRef,a=e.innerProps;return Ge("div",(0,d.A)({},Rt(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":o}),{ref:i,"aria-disabled":n},a),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return Ge("div",(0,d.A)({},Rt(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return Ge("div",(0,d.A)({},Rt(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return Ge("div",(0,d.A)({},Rt(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,o=e.hasValue;return Ge("div",(0,d.A)({},Rt(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)}},In=Number.isNaN||function(e){return"number"===typeof e&&e!==e};function Mn(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||In(r)&&In(o)))return!1;var r,o;return!0}for(var En={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},kn=function(e){return Ge("span",(0,d.A)({css:En},e))},Vn={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,o=e.context,i=e.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,i=void 0===o?"":o,a=e.selectValue,s=e.isDisabled,u=e.isSelected,l=e.isAppleDevice,c=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(i," focused, ").concat(c(a,n),".");if("menu"===t&&l){var d=s?" disabled":"",p="".concat(u?" selected":"").concat(d);return"".concat(i).concat(p,", ").concat(c(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},Pn=function(e){var t=e.ariaSelection,n=e.focusedOption,o=e.focusedValue,i=e.focusableOptions,a=e.isFocused,s=e.selectValue,l=e.selectProps,c=e.id,d=e.isAppleDevice,p=l.ariaLiveMessages,f=l.getOptionLabel,h=l.inputValue,v=l.isMulti,m=l.isOptionDisabled,g=l.isSearchable,b=l.menuIsOpen,y=l.options,O=l.screenReaderStatus,w=l.tabSelectsValue,x=l.isLoading,A=l["aria-label"],C=l["aria-live"],S=(0,u.useMemo)((function(){return(0,r.A)((0,r.A)({},Vn),p||{})}),[p]),I=(0,u.useMemo)((function(){var e,n="";if(t&&S.onChange){var o=t.option,i=t.options,a=t.removedValue,u=t.removedValues,l=t.value,c=a||o||(e=l,Array.isArray(e)?null:e),d=c?f(c):"",p=i||u||void 0,h=p?p.map(f):[],v=(0,r.A)({isDisabled:c&&m(c,s),label:d,labels:h},t);n=S.onChange(v)}return n}),[t,S,m,s,f]),M=(0,u.useMemo)((function(){var e="",t=n||o,r=!!(n&&s&&s.includes(n));if(t&&S.onFocus){var a={focused:t,label:f(t),isDisabled:m(t,s),isSelected:r,options:i,context:t===n?"menu":"value",selectValue:s,isAppleDevice:d};e=S.onFocus(a)}return e}),[n,o,f,m,S,i,s,d]),E=(0,u.useMemo)((function(){var e="";if(b&&y.length&&!x&&S.onFilter){var t=O({count:i.length});e=S.onFilter({inputValue:h,resultsMessage:t})}return e}),[i,h,b,S,y,O,x]),k="initial-input-focus"===(null===t||void 0===t?void 0:t.action),V=(0,u.useMemo)((function(){var e="";if(S.guidance){var t=o?"value":b?"menu":"input";e=S.guidance({"aria-label":A,context:t,isDisabled:n&&m(n,s),isMulti:v,isSearchable:g,tabSelectsValue:w,isInitialFocus:k})}return e}),[A,n,o,v,m,g,b,S,s,w,k]),P=Ge(u.Fragment,null,Ge("span",{id:"aria-selection"},I),Ge("span",{id:"aria-focused"},M),Ge("span",{id:"aria-results"},E),Ge("span",{id:"aria-guidance"},V));return Ge(u.Fragment,null,Ge(kn,{id:c},k&&P),Ge(kn,{"aria-live":C,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!k&&P))},Rn=[{base:"A",letters:"A\u24b6\uff21\xc0\xc1\xc2\u1ea6\u1ea4\u1eaa\u1ea8\xc3\u0100\u0102\u1eb0\u1eae\u1eb4\u1eb2\u0226\u01e0\xc4\u01de\u1ea2\xc5\u01fa\u01cd\u0200\u0202\u1ea0\u1eac\u1eb6\u1e00\u0104\u023a\u2c6f"},{base:"AA",letters:"\ua732"},{base:"AE",letters:"\xc6\u01fc\u01e2"},{base:"AO",letters:"\ua734"},{base:"AU",letters:"\ua736"},{base:"AV",letters:"\ua738\ua73a"},{base:"AY",letters:"\ua73c"},{base:"B",letters:"B\u24b7\uff22\u1e02\u1e04\u1e06\u0243\u0182\u0181"},{base:"C",letters:"C\u24b8\uff23\u0106\u0108\u010a\u010c\xc7\u1e08\u0187\u023b\ua73e"},{base:"D",letters:"D\u24b9\uff24\u1e0a\u010e\u1e0c\u1e10\u1e12\u1e0e\u0110\u018b\u018a\u0189\ua779"},{base:"DZ",letters:"\u01f1\u01c4"},{base:"Dz",letters:"\u01f2\u01c5"},{base:"E",letters:"E\u24ba\uff25\xc8\xc9\xca\u1ec0\u1ebe\u1ec4\u1ec2\u1ebc\u0112\u1e14\u1e16\u0114\u0116\xcb\u1eba\u011a\u0204\u0206\u1eb8\u1ec6\u0228\u1e1c\u0118\u1e18\u1e1a\u0190\u018e"},{base:"F",letters:"F\u24bb\uff26\u1e1e\u0191\ua77b"},{base:"G",letters:"G\u24bc\uff27\u01f4\u011c\u1e20\u011e\u0120\u01e6\u0122\u01e4\u0193\ua7a0\ua77d\ua77e"},{base:"H",letters:"H\u24bd\uff28\u0124\u1e22\u1e26\u021e\u1e24\u1e28\u1e2a\u0126\u2c67\u2c75\ua78d"},{base:"I",letters:"I\u24be\uff29\xcc\xcd\xce\u0128\u012a\u012c\u0130\xcf\u1e2e\u1ec8\u01cf\u0208\u020a\u1eca\u012e\u1e2c\u0197"},{base:"J",letters:"J\u24bf\uff2a\u0134\u0248"},{base:"K",letters:"K\u24c0\uff2b\u1e30\u01e8\u1e32\u0136\u1e34\u0198\u2c69\ua740\ua742\ua744\ua7a2"},{base:"L",letters:"L\u24c1\uff2c\u013f\u0139\u013d\u1e36\u1e38\u013b\u1e3c\u1e3a\u0141\u023d\u2c62\u2c60\ua748\ua746\ua780"},{base:"LJ",letters:"\u01c7"},{base:"Lj",letters:"\u01c8"},{base:"M",letters:"M\u24c2\uff2d\u1e3e\u1e40\u1e42\u2c6e\u019c"},{base:"N",letters:"N\u24c3\uff2e\u01f8\u0143\xd1\u1e44\u0147\u1e46\u0145\u1e4a\u1e48\u0220\u019d\ua790\ua7a4"},{base:"NJ",letters:"\u01ca"},{base:"Nj",letters:"\u01cb"},{base:"O",letters:"O\u24c4\uff2f\xd2\xd3\xd4\u1ed2\u1ed0\u1ed6\u1ed4\xd5\u1e4c\u022c\u1e4e\u014c\u1e50\u1e52\u014e\u022e\u0230\xd6\u022a\u1ece\u0150\u01d1\u020c\u020e\u01a0\u1edc\u1eda\u1ee0\u1ede\u1ee2\u1ecc\u1ed8\u01ea\u01ec\xd8\u01fe\u0186\u019f\ua74a\ua74c"},{base:"OI",letters:"\u01a2"},{base:"OO",letters:"\ua74e"},{base:"OU",letters:"\u0222"},{base:"P",letters:"P\u24c5\uff30\u1e54\u1e56\u01a4\u2c63\ua750\ua752\ua754"},{base:"Q",letters:"Q\u24c6\uff31\ua756\ua758\u024a"},{base:"R",letters:"R\u24c7\uff32\u0154\u1e58\u0158\u0210\u0212\u1e5a\u1e5c\u0156\u1e5e\u024c\u2c64\ua75a\ua7a6\ua782"},{base:"S",letters:"S\u24c8\uff33\u1e9e\u015a\u1e64\u015c\u1e60\u0160\u1e66\u1e62\u1e68\u0218\u015e\u2c7e\ua7a8\ua784"},{base:"T",letters:"T\u24c9\uff34\u1e6a\u0164\u1e6c\u021a\u0162\u1e70\u1e6e\u0166\u01ac\u01ae\u023e\ua786"},{base:"TZ",letters:"\ua728"},{base:"U",letters:"U\u24ca\uff35\xd9\xda\xdb\u0168\u1e78\u016a\u1e7a\u016c\xdc\u01db\u01d7\u01d5\u01d9\u1ee6\u016e\u0170\u01d3\u0214\u0216\u01af\u1eea\u1ee8\u1eee\u1eec\u1ef0\u1ee4\u1e72\u0172\u1e76\u1e74\u0244"},{base:"V",letters:"V\u24cb\uff36\u1e7c\u1e7e\u01b2\ua75e\u0245"},{base:"VY",letters:"\ua760"},{base:"W",letters:"W\u24cc\uff37\u1e80\u1e82\u0174\u1e86\u1e84\u1e88\u2c72"},{base:"X",letters:"X\u24cd\uff38\u1e8a\u1e8c"},{base:"Y",letters:"Y\u24ce\uff39\u1ef2\xdd\u0176\u1ef8\u0232\u1e8e\u0178\u1ef6\u1ef4\u01b3\u024e\u1efe"},{base:"Z",letters:"Z\u24cf\uff3a\u0179\u1e90\u017b\u017d\u1e92\u1e94\u01b5\u0224\u2c7f\u2c6b\ua762"},{base:"a",letters:"a\u24d0\uff41\u1e9a\xe0\xe1\xe2\u1ea7\u1ea5\u1eab\u1ea9\xe3\u0101\u0103\u1eb1\u1eaf\u1eb5\u1eb3\u0227\u01e1\xe4\u01df\u1ea3\xe5\u01fb\u01ce\u0201\u0203\u1ea1\u1ead\u1eb7\u1e01\u0105\u2c65\u0250"},{base:"aa",letters:"\ua733"},{base:"ae",letters:"\xe6\u01fd\u01e3"},{base:"ao",letters:"\ua735"},{base:"au",letters:"\ua737"},{base:"av",letters:"\ua739\ua73b"},{base:"ay",letters:"\ua73d"},{base:"b",letters:"b\u24d1\uff42\u1e03\u1e05\u1e07\u0180\u0183\u0253"},{base:"c",letters:"c\u24d2\uff43\u0107\u0109\u010b\u010d\xe7\u1e09\u0188\u023c\ua73f\u2184"},{base:"d",letters:"d\u24d3\uff44\u1e0b\u010f\u1e0d\u1e11\u1e13\u1e0f\u0111\u018c\u0256\u0257\ua77a"},{base:"dz",letters:"\u01f3\u01c6"},{base:"e",letters:"e\u24d4\uff45\xe8\xe9\xea\u1ec1\u1ebf\u1ec5\u1ec3\u1ebd\u0113\u1e15\u1e17\u0115\u0117\xeb\u1ebb\u011b\u0205\u0207\u1eb9\u1ec7\u0229\u1e1d\u0119\u1e19\u1e1b\u0247\u025b\u01dd"},{base:"f",letters:"f\u24d5\uff46\u1e1f\u0192\ua77c"},{base:"g",letters:"g\u24d6\uff47\u01f5\u011d\u1e21\u011f\u0121\u01e7\u0123\u01e5\u0260\ua7a1\u1d79\ua77f"},{base:"h",letters:"h\u24d7\uff48\u0125\u1e23\u1e27\u021f\u1e25\u1e29\u1e2b\u1e96\u0127\u2c68\u2c76\u0265"},{base:"hv",letters:"\u0195"},{base:"i",letters:"i\u24d8\uff49\xec\xed\xee\u0129\u012b\u012d\xef\u1e2f\u1ec9\u01d0\u0209\u020b\u1ecb\u012f\u1e2d\u0268\u0131"},{base:"j",letters:"j\u24d9\uff4a\u0135\u01f0\u0249"},{base:"k",letters:"k\u24da\uff4b\u1e31\u01e9\u1e33\u0137\u1e35\u0199\u2c6a\ua741\ua743\ua745\ua7a3"},{base:"l",letters:"l\u24db\uff4c\u0140\u013a\u013e\u1e37\u1e39\u013c\u1e3d\u1e3b\u017f\u0142\u019a\u026b\u2c61\ua749\ua781\ua747"},{base:"lj",letters:"\u01c9"},{base:"m",letters:"m\u24dc\uff4d\u1e3f\u1e41\u1e43\u0271\u026f"},{base:"n",letters:"n\u24dd\uff4e\u01f9\u0144\xf1\u1e45\u0148\u1e47\u0146\u1e4b\u1e49\u019e\u0272\u0149\ua791\ua7a5"},{base:"nj",letters:"\u01cc"},{base:"o",letters:"o\u24de\uff4f\xf2\xf3\xf4\u1ed3\u1ed1\u1ed7\u1ed5\xf5\u1e4d\u022d\u1e4f\u014d\u1e51\u1e53\u014f\u022f\u0231\xf6\u022b\u1ecf\u0151\u01d2\u020d\u020f\u01a1\u1edd\u1edb\u1ee1\u1edf\u1ee3\u1ecd\u1ed9\u01eb\u01ed\xf8\u01ff\u0254\ua74b\ua74d\u0275"},{base:"oi",letters:"\u01a3"},{base:"ou",letters:"\u0223"},{base:"oo",letters:"\ua74f"},{base:"p",letters:"p\u24df\uff50\u1e55\u1e57\u01a5\u1d7d\ua751\ua753\ua755"},{base:"q",letters:"q\u24e0\uff51\u024b\ua757\ua759"},{base:"r",letters:"r\u24e1\uff52\u0155\u1e59\u0159\u0211\u0213\u1e5b\u1e5d\u0157\u1e5f\u024d\u027d\ua75b\ua7a7\ua783"},{base:"s",letters:"s\u24e2\uff53\xdf\u015b\u1e65\u015d\u1e61\u0161\u1e67\u1e63\u1e69\u0219\u015f\u023f\ua7a9\ua785\u1e9b"},{base:"t",letters:"t\u24e3\uff54\u1e6b\u1e97\u0165\u1e6d\u021b\u0163\u1e71\u1e6f\u0167\u01ad\u0288\u2c66\ua787"},{base:"tz",letters:"\ua729"},{base:"u",letters:"u\u24e4\uff55\xf9\xfa\xfb\u0169\u1e79\u016b\u1e7b\u016d\xfc\u01dc\u01d8\u01d6\u01da\u1ee7\u016f\u0171\u01d4\u0215\u0217\u01b0\u1eeb\u1ee9\u1eef\u1eed\u1ef1\u1ee5\u1e73\u0173\u1e77\u1e75\u0289"},{base:"v",letters:"v\u24e5\uff56\u1e7d\u1e7f\u028b\ua75f\u028c"},{base:"vy",letters:"\ua761"},{base:"w",letters:"w\u24e6\uff57\u1e81\u1e83\u0175\u1e87\u1e85\u1e98\u1e89\u2c73"},{base:"x",letters:"x\u24e7\uff58\u1e8b\u1e8d"},{base:"y",letters:"y\u24e8\uff59\u1ef3\xfd\u0177\u1ef9\u0233\u1e8f\xff\u1ef7\u1e99\u1ef5\u01b4\u024f\u1eff"},{base:"z",letters:"z\u24e9\uff5a\u017a\u1e91\u017c\u017e\u1e93\u1e95\u01b6\u0225\u0240\u2c6c\ua763"}],Dn=new RegExp("["+Rn.map((function(e){return e.letters})).join("")+"]","g"),Fn={},Ln=0;Ln<Rn.length;Ln++)for(var Tn=Rn[Ln],Hn=0;Hn<Tn.letters.length;Hn++)Fn[Tn.letters[Hn]]=Tn.base;var jn=function(e){return e.replace(Dn,(function(e){return Fn[e]}))},Nn=function(e,t){void 0===t&&(t=Mn);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}(jn),$n=function(e){return e.replace(/^\s+|\s+$/g,"")},zn=function(e){return"".concat(e.label," ").concat(e.value)},Un=["innerRef"];function Bn(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=Object.entries(e).filter((function(e){var t=a(e,1)[0];return!n.includes(t)}));return o.reduce((function(e,t){var n=a(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})}((0,s.A)(e,Un),"onExited","in","enter","exit","appear");return Ge("input",(0,d.A)({ref:t},n,{css:Ye({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var _n=["boxSizing","height","overflow","paddingRight","position"],Wn={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Gn(e){e.cancelable&&e.preventDefault()}function Yn(e){e.stopPropagation()}function qn(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Xn(){return"ontouchstart"in window||navigator.maxTouchPoints}var Kn=!("undefined"===typeof window||!window.document||!window.document.createElement),Jn=0,Zn={capture:!1,passive:!1};var Qn=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},er={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function tr(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,i=e.onTopLeave,a=(0,u.useRef)(!1),s=(0,u.useRef)(!1),l=(0,u.useRef)(0),c=(0,u.useRef)(null),d=(0,u.useCallback)((function(e,t){if(null!==c.current){var u=c.current,l=u.scrollTop,d=u.scrollHeight,p=u.clientHeight,f=c.current,h=t>0,v=d-p-l,m=!1;v>t&&a.current&&(r&&r(e),a.current=!1),h&&s.current&&(i&&i(e),s.current=!1),h&&t>v?(n&&!a.current&&n(e),f.scrollTop=d,m=!0,a.current=!0):!h&&-t>l&&(o&&!s.current&&o(e),f.scrollTop=0,m=!0,s.current=!0),m&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}}),[n,r,o,i]),p=(0,u.useCallback)((function(e){d(e,e.deltaY)}),[d]),f=(0,u.useCallback)((function(e){l.current=e.changedTouches[0].clientY}),[]),h=(0,u.useCallback)((function(e){var t=l.current-e.changedTouches[0].clientY;d(e,t)}),[d]),v=(0,u.useCallback)((function(e){if(e){var t=!!Ut&&{passive:!1};e.addEventListener("wheel",p,t),e.addEventListener("touchstart",f,t),e.addEventListener("touchmove",h,t)}}),[h,f,p]),m=(0,u.useCallback)((function(e){e&&(e.removeEventListener("wheel",p,!1),e.removeEventListener("touchstart",f,!1),e.removeEventListener("touchmove",h,!1))}),[h,f,p]);return(0,u.useEffect)((function(){if(t){var e=c.current;return v(e),function(){m(e)}}}),[t,v,m]),function(e){c.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),i=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,o=(0,u.useRef)({}),i=(0,u.useRef)(null),a=(0,u.useCallback)((function(e){if(Kn){var t=document.body,n=t&&t.style;if(r&&_n.forEach((function(e){var t=n&&n[e];o.current[e]=t})),r&&Jn<1){var i=parseInt(o.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+i||0;Object.keys(Wn).forEach((function(e){var t=Wn[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&Xn()&&(t.addEventListener("touchmove",Gn,Zn),e&&(e.addEventListener("touchstart",qn,Zn),e.addEventListener("touchmove",Yn,Zn))),Jn+=1}}),[r]),s=(0,u.useCallback)((function(e){if(Kn){var t=document.body,n=t&&t.style;Jn=Math.max(Jn-1,0),r&&Jn<1&&_n.forEach((function(e){var t=o.current[e];n&&(n[e]=t)})),t&&Xn()&&(t.removeEventListener("touchmove",Gn,Zn),e&&(e.removeEventListener("touchstart",qn,Zn),e.removeEventListener("touchmove",Yn,Zn)))}}),[r]);return(0,u.useEffect)((function(){if(t){var e=i.current;return a(e),function(){s(e)}}}),[t,a,s]),function(e){i.current=e}}({isEnabled:n});return Ge(u.Fragment,null,n&&Ge("div",{onClick:Qn,css:er}),t((function(e){o(e),i(e)})))}var nr={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},rr=function(e){var t=e.name,n=e.onFocus;return Ge("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:nr,value:"",onChange:function(){}})};function or(e){var t;return"undefined"!==typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function ir(){return or(/^Mac/i)}function ar(){return or(/^iPhone/i)||or(/^iPad/i)||ir()&&navigator.maxTouchPoints>1}var sr={clearIndicator:fn,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,o=e.isFocused,i=e.theme,a=i.colors,s=i.borderRadius,u=i.spacing;return(0,r.A)({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:u.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?a.neutral5:a.neutral0,borderColor:n?a.neutral10:o?a.primary:a.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:o?a.primary:a.neutral30}})},dropdownIndicator:pn,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,o=n.colors,i=n.spacing;return(0,r.A)({label:"group",cursor:"default",display:"block"},t?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*i.baseUnit,paddingRight:3*i.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,o=e.theme,i=o.spacing.baseUnit,a=o.colors;return(0,r.A)({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?a.neutral10:a.neutral20,marginBottom:2*i,marginTop:2*i})},input:function(e,t){var n=e.isDisabled,o=e.value,i=e.theme,a=i.spacing,s=i.colors;return(0,r.A)((0,r.A)({visibility:n?"hidden":"visible",transform:o?"translateZ(0)":""},wn),t?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:s.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,o=e.size,i=e.theme,a=i.colors,s=i.spacing.baseUnit;return(0,r.A)({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*s})},loadingMessage:tn,menu:function(e,t){var n,o=e.placement,i=e.theme,a=i.borderRadius,s=i.spacing,u=i.colors;return(0,r.A)((n={label:"menu"},(0,qe.A)(n,function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(o),"100%"),(0,qe.A)(n,"position","absolute"),(0,qe.A)(n,"width","100%"),(0,qe.A)(n,"zIndex",1),n),t?{}:{backgroundColor:u.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:s.menuGutter,marginTop:s.menuGutter})},menuList:function(e,t){var n=e.maxHeight,o=e.theme.spacing.baseUnit;return(0,r.A)({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:o,paddingTop:o})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,o=n.spacing,i=n.borderRadius,a=n.colors;return(0,r.A)({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:a.neutral10,borderRadius:i/2,margin:o.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,o=n.borderRadius,i=n.colors,a=e.cropWithEllipsis;return(0,r.A)({overflow:"hidden",textOverflow:a||void 0===a?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:o/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,o=n.spacing,i=n.borderRadius,a=n.colors,s=e.isFocused;return(0,r.A)({alignItems:"center",display:"flex"},t?{}:{borderRadius:i/2,backgroundColor:s?a.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},noOptionsMessage:en,option:function(e,t){var n=e.isDisabled,o=e.isFocused,i=e.isSelected,a=e.theme,s=a.spacing,u=a.colors;return(0,r.A)({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:i?u.primary:o?u.primary25:"transparent",color:n?u.neutral20:i?u.neutral0:"inherit",padding:"".concat(2*s.baseUnit,"px ").concat(3*s.baseUnit,"px"),":active":{backgroundColor:n?void 0:i?u.primary:u.primary50}})},placeholder:function(e,t){var n=e.theme,o=n.spacing,i=n.colors;return(0,r.A)({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:i.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,o=e.theme,i=o.spacing,a=o.colors;return(0,r.A)({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?a.neutral40:a.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,o=e.isMulti,i=e.hasValue,a=e.selectProps.controlShouldRenderValue;return(0,r.A)({alignItems:"center",display:o&&i&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}};var ur,lr={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},cr={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:jt(),captureMenuScroll:!jt(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=(0,r.A)({ignoreCase:!0,ignoreAccents:!0,stringify:zn,trim:!0,matchFrom:"any"},ur),o=n.ignoreCase,i=n.ignoreAccents,a=n.stringify,s=n.trim,u=n.matchFrom,l=s?$n(t):t,c=s?$n(a(e)):a(e);return o&&(l=l.toLowerCase(),c=c.toLowerCase()),i&&(l=Nn(l),c=jn(c)),"start"===u?c.substr(0,l.length)===l:c.indexOf(l)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(on){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function dr(e,t,n,r){return{type:"option",data:t,isDisabled:yr(e,t,n),isSelected:Or(e,t,n),label:gr(e,t),value:br(e,t),index:r}}function pr(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return dr(e,n,t,r)})).filter((function(t){return vr(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=dr(e,n,t,r);return vr(e,i)?i:void 0})).filter(Bt)}function fr(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,O(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function hr(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,O(n.options.map((function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}})))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e}),[])}function vr(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,a=t.label,s=t.value;return(!xr(e)||!i)&&wr(e,{label:a,value:s,data:o},r)}var mr=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},gr=function(e,t){return e.getOptionLabel(t)},br=function(e,t){return e.getOptionValue(t)};function yr(e,t,n){return"function"===typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function Or(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"===typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=br(e,t);return n.some((function(t){return br(e,t)===r}))}function wr(e,t,n){return!e.filterOption||e.filterOption(t,n)}var xr=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},Ar=1,Cr=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&&(0,h.A)(e,t)}(n,e);var t=y(n);function n(e){var o;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(o=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},o.blockOptionHover=!1,o.isComposing=!1,o.commonProps=void 0,o.initialTouchX=0,o.initialTouchY=0,o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.isAppleDevice=ir()||ar(),o.controlRef=null,o.getControlRef=function(e){o.controlRef=e},o.focusedOptionRef=null,o.getFocusedOptionRef=function(e){o.focusedOptionRef=e},o.menuListRef=null,o.getMenuListRef=function(e){o.menuListRef=e},o.inputRef=null,o.getInputRef=function(e){o.inputRef=e},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(e,t){var n=o.props,r=n.onChange,i=n.name;t.name=i,o.ariaOnChange(e,t),r(e,t)},o.setValue=function(e,t,n){var r=o.props,i=r.closeMenuOnSelect,a=r.isMulti,s=r.inputValue;o.onInputChange("",{action:"set-value",prevInputValue:s}),i&&(o.setState({inputIsHiddenAfterUpdate:!a}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(e,{action:t,option:n})},o.selectOption=function(e){var t=o.props,n=t.blurInputOnSelect,r=t.isMulti,i=t.name,a=o.state.selectValue,s=r&&o.isOptionSelected(e,a),u=o.isOptionDisabled(e,a);if(s){var l=o.getOptionValue(e);o.setValue(a.filter((function(e){return o.getOptionValue(e)!==l})),"deselect-option",e)}else{if(u)return void o.ariaOnChange(e,{action:"select-option",option:e,name:i});r?o.setValue([].concat(O(a),[e]),"select-option",e):o.setValue(e,"select-option")}n&&o.blurInput()},o.removeValue=function(e){var t=o.props.isMulti,n=o.state.selectValue,r=o.getOptionValue(e),i=n.filter((function(e){return o.getOptionValue(e)!==r})),a=_t(t,i,i[0]||null);o.onChange(a,{action:"remove-value",removedValue:e}),o.focusInput()},o.clearValue=function(){var e=o.state.selectValue;o.onChange(_t(o.props.isMulti,[],null),{action:"clear",removedValues:e})},o.popValue=function(){var e=o.props.isMulti,t=o.state.selectValue,n=t[t.length-1],r=t.slice(0,t.length-1),i=_t(e,r,r[0]||null);n&&o.onChange(i,{action:"pop-value",removedValue:n})},o.getFocusedOptionId=function(e){return mr(o.state.focusableOptionsWithIds,e)},o.getFocusableOptionsWithIds=function(){return hr(pr(o.props,o.state.selectValue),o.getElementId("option"))},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return kt.apply(void 0,[o.props.classNamePrefix].concat(t))},o.getOptionLabel=function(e){return gr(o.props,e)},o.getOptionValue=function(e){return br(o.props,e)},o.getStyles=function(e,t){var n=o.props.unstyled,r=sr[e](t,n);r.boxSizing="border-box";var i=o.props.styles[e];return i?i(r,t):r},o.getClassNames=function(e,t){var n,r;return null===(n=(r=o.props.classNames)[e])||void 0===n?void 0:n.call(r,t)},o.getElementId=function(e){return"".concat(o.state.instancePrefix,"-").concat(e)},o.getComponents=function(){return e=o.props,(0,r.A)((0,r.A)({},Sn),e.components);var e},o.buildCategorizedOptions=function(){return pr(o.props,o.state.selectValue)},o.getCategorizedOptions=function(){return o.props.menuIsOpen?o.buildCategorizedOptions():[]},o.buildFocusableOptions=function(){return fr(o.buildCategorizedOptions())},o.getFocusableOptions=function(){return o.props.menuIsOpen?o.buildFocusableOptions():[]},o.ariaOnChange=function(e,t){o.setState({ariaSelection:(0,r.A)({value:e},t)})},o.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),o.focusInput())},o.onMenuMouseMove=function(e){o.blockOptionHover=!1},o.onControlMouseDown=function(e){if(!e.defaultPrevented){var t=o.props.openMenuOnClick;o.state.isFocused?o.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&o.onMenuClose():t&&o.openMenu("first"):(t&&(o.openAfterFocus=!0),o.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},o.onDropdownIndicatorMouseDown=function(e){if((!e||"mousedown"!==e.type||0===e.button)&&!o.props.isDisabled){var t=o.props,n=t.isMulti,r=t.menuIsOpen;o.focusInput(),r?(o.setState({inputIsHiddenAfterUpdate:!n}),o.onMenuClose()):o.openMenu("first"),e.preventDefault()}},o.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(o.clearValue(),e.preventDefault(),o.openAfterFocus=!1,"touchend"===e.type?o.focusInput():setTimeout((function(){return o.focusInput()})))},o.onScroll=function(e){"boolean"===typeof o.props.closeMenuOnScroll?e.target instanceof HTMLElement&&Dt(e.target)&&o.props.onMenuClose():"function"===typeof o.props.closeMenuOnScroll&&o.props.closeMenuOnScroll(e)&&o.props.onMenuClose()},o.onCompositionStart=function(){o.isComposing=!0},o.onCompositionEnd=function(){o.isComposing=!1},o.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(o.initialTouchX=n.clientX,o.initialTouchY=n.clientY,o.userIsDragging=!1)},o.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var r=Math.abs(n.clientX-o.initialTouchX),i=Math.abs(n.clientY-o.initialTouchY);o.userIsDragging=r>5||i>5}},o.onTouchEnd=function(e){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(e.target)&&o.menuListRef&&!o.menuListRef.contains(e.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0)},o.onControlTouchEnd=function(e){o.userIsDragging||o.onControlMouseDown(e)},o.onClearIndicatorTouchEnd=function(e){o.userIsDragging||o.onClearIndicatorMouseDown(e)},o.onDropdownIndicatorTouchEnd=function(e){o.userIsDragging||o.onDropdownIndicatorMouseDown(e)},o.handleInputChange=function(e){var t=o.props.inputValue,n=e.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(n,{action:"input-change",prevInputValue:t}),o.props.menuIsOpen||o.onMenuOpen()},o.onInputFocus=function(e){o.props.onFocus&&o.props.onFocus(e),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1},o.onInputBlur=function(e){var t=o.props.inputValue;o.menuListRef&&o.menuListRef.contains(document.activeElement)?o.inputRef.focus():(o.props.onBlur&&o.props.onBlur(e),o.onInputChange("",{action:"input-blur",prevInputValue:t}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1}))},o.onOptionHover=function(e){if(!o.blockOptionHover&&o.state.focusedOption!==e){var t=o.getFocusableOptions().indexOf(e);o.setState({focusedOption:e,focusedOptionId:t>-1?o.getFocusedOptionId(e):null})}},o.shouldHideSelectedOptions=function(){return xr(o.props)},o.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),o.focus()},o.onKeyDown=function(e){var t=o.props,n=t.isMulti,r=t.backspaceRemovesValue,i=t.escapeClearsValue,a=t.inputValue,s=t.isClearable,u=t.isDisabled,l=t.menuIsOpen,c=t.onKeyDown,d=t.tabSelectsValue,p=t.openMenuOnFocus,f=o.state,h=f.focusedOption,v=f.focusedValue,m=f.selectValue;if(!u&&("function"!==typeof c||(c(e),!e.defaultPrevented))){switch(o.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||a)return;o.focusValue("previous");break;case"ArrowRight":if(!n||a)return;o.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(v)o.removeValue(v);else{if(!r)return;n?o.popValue():s&&o.clearValue()}break;case"Tab":if(o.isComposing)return;if(e.shiftKey||!l||!d||!h||p&&o.isOptionSelected(h,m))return;o.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(l){if(!h)return;if(o.isComposing)return;o.selectOption(h);break}return;case"Escape":l?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close",prevInputValue:a}),o.onMenuClose()):s&&i&&o.clearValue();break;case" ":if(a)return;if(!l){o.openMenu("first");break}if(!h)return;o.selectOption(h);break;case"ArrowUp":l?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":l?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!l)return;o.focusOption("pageup");break;case"PageDown":if(!l)return;o.focusOption("pagedown");break;case"Home":if(!l)return;o.focusOption("first");break;case"End":if(!l)return;o.focusOption("last");break;default:return}e.preventDefault()}},o.state.instancePrefix="react-select-"+(o.props.instanceId||++Ar),o.state.selectValue=Vt(e.value),e.menuIsOpen&&o.state.selectValue.length){var i=o.getFocusableOptionsWithIds(),a=o.buildFocusableOptions(),s=a.indexOf(o.state.selectValue[0]);o.state.focusableOptionsWithIds=i,o.state.focusedOption=a[s],o.state.focusedOptionId=mr(i,a[s])}return o}return function(e,t,n){t&&f(e.prototype,t),n&&f(e,n),Object.defineProperty(e,"prototype",{writable:!1})}(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Ht(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&r&&!e.menuIsOpen)&&this.focusInput(),o&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):o||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Ht(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,i=this.buildFocusableOptions(),a="first"===e?0:i.length-1;if(!this.props.isMulti){var s=i.indexOf(r[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a],focusedOptionId:this.getFocusedOptionId(i[a])},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===o?0:-1===o?i:o-1;break;case"next":o>-1&&o<i&&(a=o+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,i=r.indexOf(n);n||(i=-1),"up"===e?o=i>0?i-1:r.length-1:"down"===e?o=(i+1)%r.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[o])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"===typeof this.props.theme?this.props.theme(lr):(0,r.A)((0,r.A)({},lr),this.props.theme):lr}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,i=this.selectOption,a=this.setValue,s=this.props,u=s.isMulti,l=s.isRtl,c=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:u,isRtl:l,options:c,selectOption:i,selectProps:s,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return yr(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Or(this.props,e,t)}},{key:"filterOption",value:function(e,t){return wr(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"===typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,o=e.inputId,i=e.inputValue,a=e.tabIndex,s=e.form,l=e.menuIsOpen,c=e.required,p=this.getComponents().Input,f=this.state,h=f.inputIsHidden,v=f.ariaSelection,m=this.commonProps,g=o||this.getElementId("input"),b=(0,r.A)((0,r.A)((0,r.A)({"aria-autocomplete":"list","aria-expanded":l,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":c,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},l&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null===v||void 0===v?void 0:v.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?u.createElement(p,(0,d.A)({},m,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:g,innerRef:this.getInputRef,isDisabled:t,isHidden:h,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:a,form:s,type:"text",value:i},b)):u.createElement(Bn,(0,d.A)({id:g,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Mt,onFocus:this.onInputFocus,disabled:t,tabIndex:a,inputMode:"none",form:s,value:""},b))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,i=t.MultiValueRemove,a=t.SingleValue,s=t.Placeholder,l=this.commonProps,c=this.props,p=c.controlShouldRenderValue,f=c.isDisabled,h=c.isMulti,v=c.inputValue,m=c.placeholder,g=this.state,b=g.selectValue,y=g.focusedValue,O=g.isFocused;if(!this.hasValue()||!p)return v?null:u.createElement(s,(0,d.A)({},l,{key:"placeholder",isDisabled:f,isFocused:O,innerProps:{id:this.getElementId("placeholder")}}),m);if(h)return b.map((function(t,a){var s=t===y,c="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return u.createElement(n,(0,d.A)({},l,{components:{Container:r,Label:o,Remove:i},isFocused:s,isDisabled:f,key:c,index:a,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(v)return null;var w=b[0];return u.createElement(a,(0,d.A)({},l,{data:w,isDisabled:f}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var a={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return u.createElement(e,(0,d.A)({},t,{innerProps:a,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;if(!e||!o)return null;return u.createElement(e,(0,d.A)({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:i}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,o=this.props.isDisabled,i=this.state.isFocused;return u.createElement(n,(0,d.A)({},r,{isDisabled:o,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return u.createElement(e,(0,d.A)({},t,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,o=t.Menu,i=t.MenuList,a=t.MenuPortal,s=t.LoadingMessage,l=t.NoOptionsMessage,c=t.Option,p=this.commonProps,f=this.state.focusedOption,h=this.props,v=h.captureMenuScroll,m=h.inputValue,g=h.isLoading,b=h.loadingMessage,y=h.minMenuHeight,O=h.maxMenuHeight,w=h.menuIsOpen,x=h.menuPlacement,A=h.menuPosition,C=h.menuPortalTarget,S=h.menuShouldBlockScroll,I=h.menuShouldScrollIntoView,M=h.noOptionsMessage,E=h.onMenuScrollToTop,k=h.onMenuScrollToBottom;if(!w)return null;var V,P=function(t,n){var r=t.type,o=t.data,i=t.isDisabled,a=t.isSelected,s=t.label,l=t.value,h=f===o,v=i?void 0:function(){return e.onOptionHover(o)},m=i?void 0:function(){return e.selectOption(o)},g="".concat(e.getElementId("option"),"-").concat(n),b={id:g,onClick:m,onMouseMove:v,onMouseOver:v,tabIndex:-1,role:"option","aria-selected":e.isAppleDevice?void 0:a};return u.createElement(c,(0,d.A)({},p,{innerProps:b,data:o,isDisabled:i,isSelected:a,key:g,label:s,type:r,value:l,isFocused:h,innerRef:h?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())V=this.getCategorizedOptions().map((function(t){if("group"===t.type){var o=t.data,i=t.options,a=t.index,s="".concat(e.getElementId("group"),"-").concat(a),l="".concat(s,"-heading");return u.createElement(n,(0,d.A)({},p,{key:s,data:o,options:i,Heading:r,headingProps:{id:l,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return P(e,"".concat(a,"-").concat(e.index))})))}if("option"===t.type)return P(t,"".concat(t.index))}));else if(g){var R=b({inputValue:m});if(null===R)return null;V=u.createElement(s,p,R)}else{var D=M({inputValue:m});if(null===D)return null;V=u.createElement(l,p,D)}var F={minMenuHeight:y,maxMenuHeight:O,menuPlacement:x,menuPosition:A,menuShouldScrollIntoView:I},L=u.createElement(Jt,(0,d.A)({},p,F),(function(t){var n=t.ref,r=t.placerProps,a=r.placement,s=r.maxHeight;return u.createElement(o,(0,d.A)({},p,F,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:g,placement:a}),u.createElement(tr,{captureEnabled:v,onTopArrive:E,onBottomArrive:k,lockEnabled:S},(function(t){return u.createElement(i,(0,d.A)({},p,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":p.isMulti,id:e.getElementId("listbox")},isLoading:g,maxHeight:s,focusedOption:f}),V)})))}));return C||"fixed"===A?u.createElement(a,(0,d.A)({},p,{appendTo:C,controlElement:this.controlRef,menuPlacement:x,menuPosition:A}),L):L}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,i=t.name,a=t.required,s=this.state.selectValue;if(a&&!this.hasValue()&&!r)return u.createElement(rr,{name:i,onFocus:this.onValueInputFocus});if(i&&!r){if(o){if(n){var l=s.map((function(t){return e.getOptionValue(t)})).join(n);return u.createElement("input",{name:i,type:"hidden",value:l})}var c=s.length>0?s.map((function(t,n){return u.createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:e.getOptionValue(t)})})):u.createElement("input",{name:i,type:"hidden",value:""});return u.createElement("div",null,c)}var d=s[0]?this.getOptionValue(s[0]):"";return u.createElement("input",{name:i,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,i=t.isFocused,a=t.selectValue,s=this.getFocusableOptions();return u.createElement(Pn,(0,d.A)({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:o,isFocused:i,selectValue:a,focusableOptions:s,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,i=this.props,a=i.className,s=i.id,l=i.isDisabled,c=i.menuIsOpen,p=this.state.isFocused,f=this.commonProps=this.getCommonProps();return u.createElement(r,(0,d.A)({},f,{className:a,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:l,isFocused:p}),this.renderLiveRegion(),u.createElement(t,(0,d.A)({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:l,isFocused:p,menuIsOpen:c}),u.createElement(o,(0,d.A)({},f,{isDisabled:l}),this.renderPlaceholderOrValue(),this.renderInput()),u.createElement(n,(0,d.A)({},f,{isDisabled:l}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,o=t.clearFocusValueOnUpdate,i=t.inputIsHiddenAfterUpdate,a=t.ariaSelection,s=t.isFocused,u=t.prevWasFocused,l=t.instancePrefix,c=e.options,d=e.value,p=e.menuIsOpen,f=e.inputValue,h=e.isMulti,v=Vt(d),m={};if(n&&(d!==n.value||c!==n.options||p!==n.menuIsOpen||f!==n.inputValue)){var g=p?function(e,t){return fr(pr(e,t))}(e,v):[],b=p?hr(pr(e,v),"".concat(l,"-option")):[],y=o?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,v):null,O=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,g);m={selectValue:v,focusedOption:O,focusedOptionId:mr(b,O),focusableOptionsWithIds:b,focusedValue:y,clearFocusValueOnUpdate:!1}}var w=null!=i&&e!==n?{inputIsHidden:i,inputIsHiddenAfterUpdate:void 0}:{},x=a,A=s&&u;return s&&!A&&(x={value:_t(h,v,v[0]||null),options:v,action:"initial-input-focus"},A=!u),"initial-input-focus"===(null===a||void 0===a?void 0:a.action)&&(x=null),(0,r.A)((0,r.A)((0,r.A)({},m),w),{},{prevProps:e,ariaSelection:x,prevWasFocused:A})}}]),n}(u.Component);Cr.defaultProps=cr;var Sr=(0,u.forwardRef)((function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,o=e.defaultMenuIsOpen,i=void 0!==o&&o,l=e.defaultValue,d=void 0===l?null:l,p=e.inputValue,f=e.menuIsOpen,h=e.onChange,v=e.onInputChange,m=e.onMenuClose,g=e.onMenuOpen,b=e.value,y=(0,s.A)(e,c),O=a((0,u.useState)(void 0!==p?p:n),2),w=O[0],x=O[1],A=a((0,u.useState)(void 0!==f?f:i),2),C=A[0],S=A[1],I=a((0,u.useState)(void 0!==b?b:d),2),M=I[0],E=I[1],k=(0,u.useCallback)((function(e,t){"function"===typeof h&&h(e,t),E(e)}),[h]),V=(0,u.useCallback)((function(e,t){var n;"function"===typeof v&&(n=v(e,t)),x(void 0!==n?n:e)}),[v]),P=(0,u.useCallback)((function(){"function"===typeof g&&g(),S(!0)}),[g]),R=(0,u.useCallback)((function(){"function"===typeof m&&m(),S(!1)}),[m]),D=void 0!==p?p:w,F=void 0!==f?f:C,L=void 0!==b?b:M;return(0,r.A)((0,r.A)({},y),{},{inputValue:D,menuIsOpen:F,onChange:k,onInputChange:V,onMenuClose:R,onMenuOpen:P,value:L})}(e);return u.createElement(Cr,(0,d.A)({ref:t},n))})),Ir=Sr},8125:(e,t,n)=>{n.d(t,{A:()=>h});var r=n(9950),o=n(1942),i=n.n(o),a=n(8738),s=n.n(a),u=n(1497),l=["className","cssModule","tabs","pills","vertical","horizontal","justified","fill","navbar","card","tag"];function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,arguments)}function d(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var p={card:i().bool,className:i().string,cssModule:i().object,fill:i().bool,horizontal:i().oneOf(["center","end"]),justified:i().bool,navbar:i().bool,pills:i().bool,tabs:i().bool,tag:u.Wx,vertical:i().oneOfType([i().bool,i().string])};function f(e){var t=e.className,n=e.cssModule,o=e.tabs,i=e.pills,a=e.vertical,p=void 0!==a&&a,f=e.horizontal,h=e.justified,v=e.fill,m=e.navbar,g=e.card,b=e.tag,y=void 0===b?"ul":b,O=d(e,l),w=(0,u.qO)(s()(t,m?"navbar-nav":"nav",!!f&&"justify-content-".concat(f),function(e){return!1!==e&&(!0===e||"xs"===e?"flex-column":"flex-".concat(e,"-column"))}(p),{"nav-tabs":o,"card-header-tabs":g&&o,"nav-pills":i,"card-header-pills":g&&i,"nav-justified":h,"nav-fill":v}),n);return r.createElement(y,c({},O,{className:w}))}f.propTypes=p;const h=f},5746:(e,t,n)=>{n.d(t,{A:()=>h});var r=n(9950),o=n(1942),i=n.n(o),a=n(8738),s=n.n(a),u=n(1497),l=["className","cssModule","active","tag"];function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,arguments)}function d(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var p={active:i().bool,className:i().string,cssModule:i().object,tag:u.Wx};function f(e){var t=e.className,n=e.cssModule,o=e.active,i=e.tag,a=void 0===i?"li":i,p=d(e,l),f=(0,u.qO)(s()(t,"nav-item",!!o&&"active"),n);return r.createElement(a,c({},p,{className:f}))}f.propTypes=p;const h=f},2072:(e,t,n)=>{n.d(t,{A:()=>v});var r=n(9950),o=n(1942),i=n.n(o),a=n(8738),s=n.n(a),u=n(1497),l=["expand","className","cssModule","light","dark","fixed","sticky","color","container","tag","children"];function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,arguments)}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var f={children:i().node,className:i().string,color:i().string,container:i().oneOfType([i().bool,i().string]),cssModule:i().object,dark:i().bool,expand:i().oneOfType([i().bool,i().string]),fixed:i().string,light:i().bool,role:i().string,sticky:i().string,tag:u.Wx};function h(e){var t,n=e.expand,o=void 0!==n&&n,i=e.className,a=e.cssModule,f=e.light,h=e.dark,v=e.fixed,m=e.sticky,g=e.color,b=e.container,y=void 0===b?"fluid":b,O=e.tag,w=void 0===O?"nav":O,x=e.children,A=p(e,l),C=(0,u.qO)(s()(i,"navbar",function(e){return!1!==e&&(!0===e||"xs"===e?"navbar-expand":"navbar-expand-".concat(e))}(o),(d(t={"navbar-light":f,"navbar-dark":h},"bg-".concat(g),g),d(t,"fixed-".concat(v),v),d(t,"sticky-".concat(m),m),t)),a),S=y&&!0===y?"container":"container-".concat(y);return r.createElement(w,c({},A,{className:C}),y?r.createElement("div",{className:S},x):x)}h.propTypes=f;const v=h}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunkharperdb_studio=self.webpackChunkharperdb_studio||[]).push([[164],{5604:function(e,t,n){!function(e,t){"use strict";function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function r(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e){return o="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},o(e)}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function c(e,t){if(null==e)return{};var n,r,o=i(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function u(e,t){return s(e)||l(e,t)||p(e,t)||d()}function s(e){if(Array.isArray(e))return e}function l(e,t){var n=e&&("undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=n){var r,o,a=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(u){c=!0,o=u}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}}function p(e,t){if(e){if("string"===typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function d(){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 m(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var g,y,h,v,b={exports:{}};function w(){return y?g:(y=1,g="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}function C(){if(v)return h;v=1;var e=w();function t(){}function n(){}return n.resetWarningCache=t,h=function(){function r(t,n,r,o,a,i){if(i!==e){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function o(){return r}r.isRequired=r;var a={array:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a}}b.exports=C()();var k=m(b.exports),S=function(e,n,r){var o=!!r,a=t.useRef(r);t.useEffect((function(){a.current=r}),[r]),t.useEffect((function(){if(!o||!e)return function(){};var t=function(){a.current&&a.current.apply(a,arguments)};return e.on(n,t),function(){e.off(n,t)}}),[o,n,e,a])},E=function(e){var n=t.useRef(e);return t.useEffect((function(){n.current=e}),[e]),n.current},O=function(e){return null!==e&&"object"===o(e)},j=function(e){return O(e)&&"function"===typeof e.then},_=function(e){return O(e)&&"function"===typeof e.elements&&"function"===typeof e.createToken&&"function"===typeof e.createPaymentMethod&&"function"===typeof e.confirmCardPayment},P="[object Object]",A=function e(t,n){if(!O(t)||!O(n))return t===n;var r=Array.isArray(t);if(r!==Array.isArray(n))return!1;var o=Object.prototype.toString.call(t)===P;if(o!==(Object.prototype.toString.call(n)===P))return!1;if(!o&&!r)return t===n;var a=Object.keys(t),i=Object.keys(n);if(a.length!==i.length)return!1;for(var c={},u=0;u<a.length;u+=1)c[a[u]]=!0;for(var s=0;s<i.length;s+=1)c[i[s]]=!0;var l=Object.keys(c);if(l.length!==a.length)return!1;var p=t,f=n,d=function(t){return e(p[t],f[t])};return l.every(d)},x=function(e,t,n){return O(e)?Object.keys(e).reduce((function(o,i){var c=!O(t)||!A(e[i],t[i]);return n.includes(i)?(c&&console.warn("Unsupported prop change: options.".concat(i," is not a mutable property.")),o):c?r(r({},o||{}),{},a({},i,e[i])):o}),null):null},I="Invalid prop `stripe` supplied to `Elements`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.",N=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:I;if(null===e||_(e))return e;throw new Error(t)},R=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:I;if(j(e))return{tag:"async",stripePromise:Promise.resolve(e).then((function(e){return N(e,t)}))};var n=N(e,t);return null===n?{tag:"empty"}:{tag:"sync",stripe:n}},F=function(e){e&&e._registerWrapper&&e.registerAppInfo&&(e._registerWrapper({name:"react-stripe-js",version:"3.0.0"}),e.registerAppInfo({name:"react-stripe-js",version:"3.0.0",url:"https://stripe.com/docs/stripe-js/react"}))},M=t.createContext(null);M.displayName="ElementsContext";var T=function(e,t){if(!e)throw new Error("Could not find Elements context; You need to wrap the part of your app that ".concat(t," in an <Elements> provider."));return e},L=function(e){var n=e.stripe,r=e.options,o=e.children,a=t.useMemo((function(){return R(n)}),[n]),i=u(t.useState((function(){return{stripe:"sync"===a.tag?a.stripe:null,elements:"sync"===a.tag?a.stripe.elements(r):null}})),2),c=i[0],s=i[1];t.useEffect((function(){var e=!0,t=function(e){s((function(t){return t.stripe?t:{stripe:e,elements:e.elements(r)}}))};return"async"!==a.tag||c.stripe?"sync"!==a.tag||c.stripe||t(a.stripe):a.stripePromise.then((function(n){n&&e&&t(n)})),function(){e=!1}}),[a,c,r]);var l=E(n);t.useEffect((function(){null!==l&&l!==n&&console.warn("Unsupported prop change on Elements: You cannot change the `stripe` prop after setting it.")}),[l,n]);var p=E(r);return t.useEffect((function(){if(c.elements){var e=x(r,p,["clientSecret","fonts"]);e&&c.elements.update(e)}}),[r,p,c.elements]),t.useEffect((function(){F(c.stripe)}),[c.stripe]),t.createElement(M.Provider,{value:c},o)};L.propTypes={stripe:k.any,options:k.object};var U=function(e){var n=t.useContext(M);return T(n,e)},D=function(){return U("calls useElements()").elements},G=function(e){return(0,e.children)(U("mounts <ElementsConsumer>"))};G.propTypes={children:k.func.isRequired};var q=["on","session"],B=t.createContext(null);B.displayName="CheckoutSdkContext";var Y=function(e,t){if(!e)throw new Error("Could not find CheckoutProvider context; You need to wrap the part of your app that ".concat(t," in an <CheckoutProvider> provider."));return e},W=t.createContext(null);W.displayName="CheckoutContext";var $=function(e,t){if(!e)return null;e.on,e.session;var n=c(e,q);return r(r({},n),t||e.session())},z="Invalid prop `stripe` supplied to `CheckoutProvider`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.",Q=function(e){var n=e.stripe,r=e.options,o=e.children,a=t.useMemo((function(){return R(n,z)}),[n]),i=u(t.useState(null),2),c=i[0],s=i[1],l=u(t.useState((function(){return{stripe:"sync"===a.tag?a.stripe:null,checkoutSdk:null}})),2),p=l[0],f=l[1],d=function(e,t){f((function(n){return n.stripe&&n.checkoutSdk?n:{stripe:e,checkoutSdk:t}}))},m=t.useRef(!1);t.useEffect((function(){var e=!0;return"async"!==a.tag||p.stripe?"sync"===a.tag&&a.stripe&&!m.current&&(m.current=!0,a.stripe.initCheckout(r).then((function(e){e&&(d(a.stripe,e),e.on("change",s))}))):a.stripePromise.then((function(t){t&&e&&!m.current&&(m.current=!0,t.initCheckout(r).then((function(e){e&&(d(t,e),e.on("change",s))})))})),function(){e=!1}}),[a,p,r,s]);var g=E(n);t.useEffect((function(){null!==g&&g!==n&&console.warn("Unsupported prop change on CheckoutProvider: You cannot change the `stripe` prop after setting it.")}),[g,n]);var y=E(r);t.useEffect((function(){var e,t;if(p.checkoutSdk){!r.clientSecret||O(y)||A(r.clientSecret,y.clientSecret)||console.warn("Unsupported prop change: options.clientSecret is not a mutable property.");var n=null===y||void 0===y||null===(e=y.elementsOptions)||void 0===e?void 0:e.appearance,o=null===r||void 0===r||null===(t=r.elementsOptions)||void 0===t?void 0:t.appearance;o&&!A(o,n)&&p.checkoutSdk.changeAppearance(o)}}),[r,y,p.checkoutSdk]),t.useEffect((function(){F(p.stripe)}),[p.stripe]);var h=t.useMemo((function(){return $(p.checkoutSdk,c)}),[p.checkoutSdk,c]);return p.checkoutSdk?t.createElement(B.Provider,{value:p},t.createElement(W.Provider,{value:h},o)):null};Q.propTypes={stripe:k.any,options:k.shape({clientSecret:k.string.isRequired,elementsOptions:k.object}).isRequired};var V=function(e){var n=t.useContext(B);return Y(n,e)},Z=function(e){var n=t.useContext(B),r=t.useContext(M);if(n&&r)throw new Error("You cannot wrap the part of your app that ".concat(e," in both <CheckoutProvider> and <Elements> providers."));return n?Y(n,e):T(r,e)},H=function(){V("calls useCheckout()");var e=t.useContext(W);if(!e)throw new Error("Could not find Checkout Context; You need to wrap the part of your app that calls useCheckout() in an <CheckoutProvider> provider.");return e},K=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},J=function(e,n){var r="".concat(K(e),"Element"),o=n?function(e){Z("mounts <".concat(r,">"));var n=e.id,o=e.className;return t.createElement("div",{id:n,className:o})}:function(n){var o,a=n.id,i=n.className,c=n.options,s=void 0===c?{}:c,l=n.onBlur,p=n.onFocus,f=n.onReady,d=n.onChange,m=n.onEscape,g=n.onClick,y=n.onLoadError,h=n.onLoaderStart,v=n.onNetworksChange,b=n.onConfirm,w=n.onCancel,C=n.onShippingAddressChange,k=n.onShippingRateChange,O=Z("mounts <".concat(r,">")),j="elements"in O?O.elements:null,_="checkoutSdk"in O?O.checkoutSdk:null,P=u(t.useState(null),2),A=P[0],I=P[1],N=t.useRef(null),R=t.useRef(null);S(A,"blur",l),S(A,"focus",p),S(A,"escape",m),S(A,"click",g),S(A,"loaderror",y),S(A,"loaderstart",h),S(A,"networkschange",v),S(A,"confirm",b),S(A,"cancel",w),S(A,"shippingaddresschange",C),S(A,"shippingratechange",k),S(A,"change",d),f&&(o="expressCheckout"===e?f:function(){f(A)}),S(A,"ready",o),t.useLayoutEffect((function(){if(null===N.current&&null!==R.current&&(j||_)){var t=null;_?t=_.createElement(e,s):j&&(t=j.create(e,s)),N.current=t,I(t),t&&t.mount(R.current)}}),[j,_,s]);var F=E(s);return t.useEffect((function(){if(N.current){var e=x(s,F,["paymentRequest"]);e&&"update"in N.current&&N.current.update(e)}}),[s,F]),t.useLayoutEffect((function(){return function(){if(N.current&&"function"===typeof N.current.destroy)try{N.current.destroy(),N.current=null}catch(e){}}}),[]),t.createElement("div",{id:a,className:i,ref:R})};return o.propTypes={id:k.string,className:k.string,onChange:k.func,onBlur:k.func,onFocus:k.func,onReady:k.func,onEscape:k.func,onClick:k.func,onLoadError:k.func,onLoaderStart:k.func,onNetworksChange:k.func,onConfirm:k.func,onCancel:k.func,onShippingAddressChange:k.func,onShippingRateChange:k.func,options:k.object},o.displayName=r,o.__elementType=e,o},X="undefined"===typeof window,ee=t.createContext(null);ee.displayName="EmbeddedCheckoutProviderContext";var te=function(){var e=t.useContext(ee);if(!e)throw new Error("<EmbeddedCheckout> must be used within <EmbeddedCheckoutProvider>");return e},ne="Invalid prop `stripe` supplied to `EmbeddedCheckoutProvider`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.",re=function(e){var n=e.stripe,r=e.options,o=e.children,a=t.useMemo((function(){return R(n,ne)}),[n]),i=t.useRef(null),c=t.useRef(null),s=u(t.useState({embeddedCheckout:null}),2),l=s[0],p=s[1];t.useEffect((function(){if(!c.current&&!i.current){var e=function(e){c.current||i.current||(c.current=e,i.current=c.current.initEmbeddedCheckout(r).then((function(e){p({embeddedCheckout:e})})))};"async"!==a.tag||c.current||!r.clientSecret&&!r.fetchClientSecret?"sync"!==a.tag||c.current||!r.clientSecret&&!r.fetchClientSecret||e(a.stripe):a.stripePromise.then((function(t){t&&e(t)}))}}),[a,r,l,c]),t.useEffect((function(){return function(){l.embeddedCheckout?(i.current=null,l.embeddedCheckout.destroy()):i.current&&i.current.then((function(){i.current=null,l.embeddedCheckout&&l.embeddedCheckout.destroy()}))}}),[l.embeddedCheckout]),t.useEffect((function(){F(c)}),[c]);var f=E(n);t.useEffect((function(){null!==f&&f!==n&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the `stripe` prop after setting it.")}),[f,n]);var d=E(r);return t.useEffect((function(){null!=d&&(null!=r?(void 0===r.clientSecret&&void 0===r.fetchClientSecret&&console.warn("Invalid props passed to EmbeddedCheckoutProvider: You must provide one of either `options.fetchClientSecret` or `options.clientSecret`."),null!=d.clientSecret&&r.clientSecret!==d.clientSecret&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the client secret after setting it. Unmount and create a new instance of EmbeddedCheckoutProvider instead."),null!=d.fetchClientSecret&&r.fetchClientSecret!==d.fetchClientSecret&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change fetchClientSecret after setting it. Unmount and create a new instance of EmbeddedCheckoutProvider instead."),null!=d.onComplete&&r.onComplete!==d.onComplete&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the onComplete option after setting it."),null!=d.onShippingDetailsChange&&r.onShippingDetailsChange!==d.onShippingDetailsChange&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the onShippingDetailsChange option after setting it."),null!=d.onLineItemsChange&&r.onLineItemsChange!==d.onLineItemsChange&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the onLineItemsChange option after setting it.")):console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot unset options after setting them."))}),[d,r]),t.createElement(ee.Provider,{value:l},o)},oe=function(e){var n=e.id,r=e.className,o=te().embeddedCheckout,a=t.useRef(!1),i=t.useRef(null);return t.useLayoutEffect((function(){return!a.current&&o&&null!==i.current&&(o.mount(i.current),a.current=!0),function(){if(a.current&&o)try{o.unmount(),a.current=!1}catch(e){}}}),[o]),t.createElement("div",{ref:i,id:n,className:r})},ae=function(e){var n=e.id,r=e.className;return te(),t.createElement("div",{id:n,className:r})},ie=X?ae:oe,ce=function(){return Z("calls useStripe()").stripe},ue=J("auBankAccount",X),se=J("card",X),le=J("cardNumber",X),pe=J("cardExpiry",X),fe=J("cardCvc",X),de=J("fpxBank",X),me=J("iban",X),ge=J("idealBank",X),ye=J("p24Bank",X),he=J("epsBank",X),ve=J("payment",X),be=J("expressCheckout",X),we=J("currencySelector",X),Ce=J("paymentRequestButton",X),ke=J("linkAuthentication",X),Se=J("address",X),Ee=J("shippingAddress",X),Oe=J("paymentMethodMessaging",X),je=J("affirmMessage",X),_e=J("afterpayClearpayMessage",X);e.AddressElement=Se,e.AffirmMessageElement=je,e.AfterpayClearpayMessageElement=_e,e.AuBankAccountElement=ue,e.CardCvcElement=fe,e.CardElement=se,e.CardExpiryElement=pe,e.CardNumberElement=le,e.CheckoutProvider=Q,e.CurrencySelectorElement=we,e.Elements=L,e.ElementsConsumer=G,e.EmbeddedCheckout=ie,e.EmbeddedCheckoutProvider=re,e.EpsBankElement=he,e.ExpressCheckoutElement=be,e.FpxBankElement=de,e.IbanElement=me,e.IdealBankElement=ge,e.LinkAuthenticationElement=ke,e.P24BankElement=ye,e.PaymentElement=ve,e.PaymentMethodMessagingElement=Oe,e.PaymentRequestButtonElement=Ce,e.ShippingAddressElement=Ee,e.useCheckout=H,e.useElements=D,e.useStripe=ce}(t,n(9950))},9817:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=e||"";t&&(a=e.toString().trim().replace(/[A-Za-z0-9\u00C0-\u00FF]+[^\s-]*/g,(function(e,t,r){return t>0&&t+e.length!==r.length&&e.search(n)>-1&&":"!==r.charAt(t-2)&&("-"!==r.charAt(t+e.length)||"-"===r.charAt(t-1))&&r.charAt(t-1).search(/[^\s-]/)<0?e.toLowerCase():e.substr(1).search(/[A-Z]|\../)>-1?e:e.charAt(0).toUpperCase()+e.substr(1)})));o&&(a=function(e){if(function(e){return"string"===typeof e&&-1!==e.indexOf("@")}(e))return console.warn("This arg looks like an email address, redacting."),r;return e}(a));return a};var n=/^(a|an|and|as|at|but|by|en|for|if|in|nor|of|on|or|per|the|to|vs?\.?|via)$/i;var r="REDACTED (Potential Email Address)"},8860:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.GA4=void 0;var r=u(n(1461)),o=u(n(9817)),a=["eventCategory","eventAction","eventLabel","eventValue","hitType"],i=["title","location"],c=["page","hitType"];function u(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function l(e){return l="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},l(e)}function p(e){return function(e){if(Array.isArray(e))return y(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||g(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 f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,c=[],u=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=a.call(n)).done)&&(c.push(r.value),c.length!==t);u=!0);}catch(l){s=!0,o=l}finally{try{if(!u&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw o}}return c}}(e,t)||g(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 g(e,t){if(e){if("string"===typeof e)return y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,b(r.key),r)}}function v(e,t,n){return(t=b(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e){var t=function(e,t){if("object"!==l(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===l(t)?t:String(t)}var w=function(){function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),v(this,"reset",(function(){t.isInitialized=!1,t._testMode=!1,t._currentMeasurementId,t._hasLoadedGA=!1,t._isQueuing=!1,t._queueGtag=[]})),v(this,"_gtag",(function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];t._testMode||t._isQueuing?t._queueGtag.push(n):r.default.apply(void 0,n)})),v(this,"_loadGA",(function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"https://www.googletagmanager.com/gtag/js";if("undefined"!==typeof window&&"undefined"!==typeof document&&!t._hasLoadedGA){var o=document.createElement("script");o.async=!0,o.src="".concat(r,"?id=").concat(e),n&&o.setAttribute("nonce",n),document.body.appendChild(o),window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},t._hasLoadedGA=!0}})),v(this,"_toGtagOptions",(function(e){if(e){var t={cookieUpdate:"cookie_update",cookieExpires:"cookie_expires",cookieDomain:"cookie_domain",cookieFlags:"cookie_flags",userId:"user_id",clientId:"client_id",anonymizeIp:"anonymize_ip",contentGroup1:"content_group1",contentGroup2:"content_group2",contentGroup3:"content_group3",contentGroup4:"content_group4",contentGroup5:"content_group5",allowAdFeatures:"allow_google_signals",allowAdPersonalizationSignals:"allow_ad_personalization_signals",nonInteraction:"non_interaction",page:"page_path",hitCallback:"event_callback"};return Object.entries(e).reduce((function(e,n){var r=m(n,2),o=r[0],a=r[1];return t[o]?e[t[o]]=a:e[o]=a,e}),{})}})),v(this,"initialize",(function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("Require GA_MEASUREMENT_ID");var r="string"===typeof e?[{trackingId:e}]:e;t._currentMeasurementId=r[0].trackingId;var o=n.gaOptions,a=n.gtagOptions,i=n.nonce,c=n.testMode,u=void 0!==c&&c,s=n.gtagUrl;if(t._testMode=u,u||t._loadGA(t._currentMeasurementId,i,s),t.isInitialized||(t._gtag("js",new Date),r.forEach((function(e){var n=d(d(d({},t._toGtagOptions(d(d({},o),e.gaOptions))),a),e.gtagOptions);Object.keys(n).length?t._gtag("config",e.trackingId,n):t._gtag("config",e.trackingId)}))),t.isInitialized=!0,!u){var l=p(t._queueGtag);for(t._queueGtag=[],t._isQueuing=!1;l.length;){var f=l.shift();t._gtag.apply(t,p(f)),"get"===f[0]&&(t._isQueuing=!0)}}})),v(this,"set",(function(e){e?"object"===l(e)?(0===Object.keys(e).length&&console.warn("empty `fieldsObject` given to .set()"),t._gaCommand("set",e)):console.warn("Expected `fieldsObject` arg to be an Object"):console.warn("`fieldsObject` is required in .set()")})),v(this,"_gaCommandSendEvent",(function(e,n,r,o,a){t._gtag("event",n,d(d({event_category:e,event_label:r,value:o},a&&{non_interaction:a.nonInteraction}),t._toGtagOptions(a)))})),v(this,"_gaCommandSendEventParameters",(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];if("string"===typeof n[0])t._gaCommandSendEvent.apply(t,p(n.slice(1)));else{var o=n[0],i=o.eventCategory,c=o.eventAction,u=o.eventLabel,l=o.eventValue,f=(o.hitType,s(o,a));t._gaCommandSendEvent(i,c,u,l,f)}})),v(this,"_gaCommandSendTiming",(function(e,n,r,o){t._gtag("event","timing_complete",{name:n,value:r,event_category:e,event_label:o})})),v(this,"_gaCommandSendPageview",(function(e,n){if(n&&Object.keys(n).length){var r=t._toGtagOptions(n),o=r.title,a=r.location,c=s(r,i);t._gtag("event","page_view",d(d(d(d({},e&&{page_path:e}),o&&{page_title:o}),a&&{page_location:a}),c))}else e?t._gtag("event","page_view",{page_path:e}):t._gtag("event","page_view")})),v(this,"_gaCommandSendPageviewParameters",(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];if("string"===typeof n[0])t._gaCommandSendPageview.apply(t,p(n.slice(1)));else{var o=n[0],a=o.page,i=(o.hitType,s(o,c));t._gaCommandSendPageview(a,i)}})),v(this,"_gaCommandSend",(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o="string"===typeof n[0]?n[0]:n[0].hitType;switch(o){case"event":t._gaCommandSendEventParameters.apply(t,n);break;case"pageview":t._gaCommandSendPageviewParameters.apply(t,n);break;case"timing":t._gaCommandSendTiming.apply(t,p(n.slice(1)));break;case"screenview":case"transaction":case"item":case"social":case"exception":console.warn("Unsupported send command: ".concat(o));break;default:console.warn("Send command doesn't exist: ".concat(o))}})),v(this,"_gaCommandSet",(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];"string"===typeof n[0]&&(n[0]=v({},n[0],n[1])),t._gtag("set",t._toGtagOptions(n[0]))})),v(this,"_gaCommand",(function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];switch(e){case"send":t._gaCommandSend.apply(t,r);break;case"set":t._gaCommandSet.apply(t,r);break;default:console.warn("Command doesn't exist: ".concat(e))}})),v(this,"ga",(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];if("string"===typeof n[0])t._gaCommand.apply(t,n);else{var o=n[0];t._gtag("get",t._currentMeasurementId,"client_id",(function(e){t._isQueuing=!1;var n=t._queueGtag;for(o({get:function(n){return"clientId"===n?e:"trackingId"===n?t._currentMeasurementId:"apiVersion"===n?"1":void 0}});n.length;){var r=n.shift();t._gtag.apply(t,p(r))}})),t._isQueuing=!0}return t.ga})),v(this,"event",(function(e,n){if("string"===typeof e)t._gtag("event",e,t._toGtagOptions(n));else{var r=e.action,a=e.category,i=e.label,c=e.value,u=e.nonInteraction,s=e.transport;if(!a||!r)return void console.warn("args.category AND args.action are required in event()");var l={hitType:"event",eventCategory:(0,o.default)(a),eventAction:(0,o.default)(r)};i&&(l.eventLabel=(0,o.default)(i)),"undefined"!==typeof c&&("number"!==typeof c?console.warn("Expected `args.value` arg to be a Number."):l.eventValue=c),"undefined"!==typeof u&&("boolean"!==typeof u?console.warn("`args.nonInteraction` must be a boolean."):l.nonInteraction=u),"undefined"!==typeof s&&("string"!==typeof s?console.warn("`args.transport` must be a string."):(-1===["beacon","xhr","image"].indexOf(s)&&console.warn("`args.transport` must be either one of these values: `beacon`, `xhr` or `image`"),l.transport=s)),t._gaCommand("send",l)}})),v(this,"send",(function(e){t._gaCommand("send",e)})),this.reset()}var t,n,u;return t=e,n=[{key:"gtag",value:function(){this._gtag.apply(this,arguments)}}],n&&h(t.prototype,n),u&&h(t,u),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.GA4=w;var C=new w;t.default=C},1461:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r;"undefined"!==typeof window&&("undefined"===typeof window.gtag&&(window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)}),(r=window).gtag.apply(r,t))};t.default=n},7732:(e,t,n)=>{"use strict";function r(e){return r="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},r(e)}t.Ay=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in e)if("default"!==c&&Object.prototype.hasOwnProperty.call(e,c)){var u=i?Object.getOwnPropertyDescriptor(e,c):null;u&&(u.get||u.set)?Object.defineProperty(o,c,u):o[c]=e[c]}o.default=e,n&&n.set(e,o);return o}(n(8860));function a(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}o.GA4;var i=o.default;t.Ay=i},9335:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var r=n(9950),o=n(1942),a=n.n(o),i=n(8738),c=n.n(i),u=n(1497),s=["className","cssModule","fluid","tag"];function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(this,arguments)}function p(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var f={tag:u.Wx,fluid:a().oneOfType([a().bool,a().string]),className:a().string,cssModule:a().object};function d(e){var t=e.className,n=e.cssModule,o=e.fluid,a=e.tag,i=void 0===a?"div":a,f=p(e,s),d="container";!0===o?d="container-fluid":o&&(d="container-".concat(o));var m=(0,u.qO)(c()(t,d),n);return r.createElement(i,l({},f,{className:m}))}d.propTypes=f;const m=d},135:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(9950),o=function(){};function a(e,t,n){var a=(0,r.useRef)(o);(0,r.useEffect)((function(){a.current=e})),(0,r.useEffect)((function(){n&&null!==t&&!1!==t&&a.current()}),[n]),(0,r.useEffect)((function(){if(null!==t&&!1!==t){var e=setInterval((function(){return a.current()}),t);return function(){return clearInterval(e)}}}),[t])}},7202:(e,t,n)=>{"use strict";n.d(t,{c:()=>m});var r,o="https://js.stripe.com/v3",a=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,i="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used",c=function(e){var t=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",n=document.createElement("script");n.src="".concat(o).concat(t);var r=document.head||document.body;if(!r)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return r.appendChild(n),n},u=null,s=null,l=null,p=function(e){return null!==u?u:(u=new Promise((function(t,n){if("undefined"!==typeof window&&"undefined"!==typeof document)if(window.Stripe&&e&&console.warn(i),window.Stripe)t(window.Stripe);else try{var r=function(){for(var e=document.querySelectorAll('script[src^="'.concat(o,'"]')),t=0;t<e.length;t++){var n=e[t];if(a.test(n.src))return n}return null}();if(r&&e)console.warn(i);else if(r){if(r&&null!==l&&null!==s){var u;r.removeEventListener("load",l),r.removeEventListener("error",s),null===(u=r.parentNode)||void 0===u||u.removeChild(r),r=c(e)}}else r=c(e);l=function(e,t){return function(){window.Stripe?e(window.Stripe):t(new Error("Stripe.js not available"))}}(t,n),s=function(e){return function(){e(new Error("Failed to load Stripe.js"))}}(n),r.addEventListener("load",l),r.addEventListener("error",s)}catch(p){return void n(p)}else t(null)}))).catch((function(e){return u=null,Promise.reject(e)}))},f=!1,d=function(){return r||(r=p(null).catch((function(e){return r=null,Promise.reject(e)})))};Promise.resolve().then((function(){return d()})).catch((function(e){f||console.warn(e)}));var m=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];f=!0;var r=Date.now();return d().then((function(e){return function(e,t,n){if(null===e)return null;var r=e.apply(void 0,t);return function(e,t){e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",version:"5.2.0",startTime:t})}(r,n),r}(e,t,r)}))}},4283:(e,t,n)=>{"use strict";n.d(t,{A:()=>A});var r={};n.r(r),n.d(r,{exclude:()=>P,extract:()=>k,parse:()=>S,parseUrl:()=>O,pick:()=>_,stringify:()=>E,stringifyUrl:()=>j});var o=n(9379);const a="%[a-f0-9]{2}",i=new RegExp("("+a+")|([^%]+?)","gi"),c=new RegExp("("+a+")+","gi");function u(e,t){try{return[decodeURIComponent(e.join(""))]}catch(o){}if(1===e.length)return e;t=t||1;const n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],u(n),u(r))}function s(e){try{return decodeURIComponent(e)}catch(t){let n=e.match(i)||[];for(let r=1;r<n.length;r++)n=(e=u(n,r).join("")).match(i)||[];return e}}function l(e){if("string"!==typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return decodeURIComponent(e)}catch(t){return function(e){const t={"%FE%FF":"\ufffd\ufffd","%FF%FE":"\ufffd\ufffd"};let n=c.exec(e);for(;n;){try{t[n[0]]=decodeURIComponent(n[0])}catch(o){const e=s(n[0]);e!==n[0]&&(t[n[0]]=e)}n=c.exec(e)}t["%C2"]="\ufffd";const r=Object.keys(t);for(const a of r)e=e.replace(new RegExp(a,"g"),t[a]);return e}(e)}}function p(e,t){const n={};if(Array.isArray(t))for(const r of t){const t=Object.getOwnPropertyDescriptor(e,r);null!==t&&void 0!==t&&t.enumerable&&Object.defineProperty(n,r,t)}else for(const r of Reflect.ownKeys(e)){const o=Object.getOwnPropertyDescriptor(e,r);if(o.enumerable){t(r,e[r],e)&&Object.defineProperty(n,r,o)}}return n}function f(e,t){if("string"!==typeof e||"string"!==typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===e||""===t)return[];const n=e.indexOf(t);return-1===n?[]:[e.slice(0,n),e.slice(n+t.length)]}const d=e=>null===e||void 0===e,m=e=>encodeURIComponent(e).replaceAll(/[!'()*]/g,(e=>"%".concat(e.charCodeAt(0).toString(16).toUpperCase()))),g=Symbol("encodeFragmentIdentifier");function y(e){if("string"!==typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function h(e,t){return t.encode?t.strict?m(e):encodeURIComponent(e):e}function v(e,t){return t.decode?l(e):e}function b(e){return Array.isArray(e)?e.sort():"object"===typeof e?b(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function w(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function C(e,t,n){return"string"===n&&"string"===typeof e?e:"function"===typeof n&&"string"===typeof e?n(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()?"number"!==n||Number.isNaN(Number(e))||"string"!==typeof e||""===e.trim()?t.parseNumbers&&!Number.isNaN(Number(e))&&"string"===typeof e&&""!==e.trim()?Number(e):e:Number(e):"true"===e.toLowerCase()}function k(e){const t=(e=w(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function S(e,t){y((t=(0,o.A)({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,types:Object.create(null)},t)).arrayFormatSeparator);const n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{t=/\[(\d*)]$/.exec(e),e=e.replace(/\[\d*]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return(e,n,r)=>{t=/(\[])$/.exec(e),e=e.replace(/\[]$/,""),t?void 0!==r[e]?r[e]=[...r[e],n]:r[e]=[n]:r[e]=n};case"colon-list-separator":return(e,n,r)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==r[e]?r[e]=[...r[e],n]:r[e]=[n]:r[e]=n};case"comma":case"separator":return(t,n,r)=>{const o="string"===typeof n&&n.includes(e.arrayFormatSeparator),a="string"===typeof n&&!o&&v(n,e).includes(e.arrayFormatSeparator);n=a?v(n,e):n;const i=o||a?n.split(e.arrayFormatSeparator).map((t=>v(t,e))):null===n?n:v(n,e);r[t]=i};case"bracket-separator":return(t,n,r)=>{const o=/(\[])$/.test(t);if(t=t.replace(/\[]$/,""),!o)return void(r[t]=n?v(n,e):n);const a=null===n?[]:v(n,e).split(e.arrayFormatSeparator);void 0!==r[t]?r[t]=[...r[t],...a]:r[t]=a};default:return(e,t,n)=>{void 0!==n[e]?n[e]=[...[n[e]].flat(),t]:n[e]=t}}}(t),r=Object.create(null);if("string"!==typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const o of e.split("&")){if(""===o)continue;const e=t.decode?o.replaceAll("+"," "):o;let[a,i]=f(e,"=");void 0===a&&(a=e),i=void 0===i?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?i:v(i,t),n(v(a,t),i,r)}for(const[o,a]of Object.entries(r))if("object"===typeof a&&null!==a&&"string"!==t.types[o])for(const[e,n]of Object.entries(a)){const r=t.types[o]?t.types[o].replace("[]",""):void 0;a[e]=C(n,t,r)}else"object"===typeof a&&null!==a&&"string"===t.types[o]?r[o]=Object.values(a).join(t.arrayFormatSeparator):r[o]=C(a,t,t.types[o]);return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce(((e,t)=>{const n=r[t];return e[t]=Boolean(n)&&"object"===typeof n&&!Array.isArray(n)?b(n):n,e}),Object.create(null))}function E(e,t){if(!e)return"";y((t=(0,o.A)({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const n=n=>t.skipNull&&d(e[n])||t.skipEmptyString&&""===e[n],r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const o=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[h(t,e),"[",o,"]"].join("")]:[...n,[h(t,e),"[",h(o,e),"]=",h(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[h(t,e),"[]"].join("")]:[...n,[h(t,e),"[]=",h(r,e)].join("")];case"colon-list-separator":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[h(t,e),":list="].join("")]:[...n,[h(t,e),":list=",h(r,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return n=>(r,o)=>void 0===o||e.skipNull&&null===o||e.skipEmptyString&&""===o?r:(o=null===o?"":o,0===r.length?[[h(n,e),t,h(o,e)].join("")]:[[r,h(o,e)].join(e.arrayFormatSeparator)])}default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,h(t,e)]:[...n,[h(t,e),"=",h(r,e)].join("")]}}(t),a={};for(const[o,c]of Object.entries(e))n(o)||(a[o]=c);const i=Object.keys(a);return!1!==t.sort&&i.sort(t.sort),i.map((n=>{const o=e[n];return void 0===o?"":null===o?h(n,t):Array.isArray(o)?0===o.length&&"bracket-separator"===t.arrayFormat?h(n,t)+"[]":o.reduce(r(n),[]).join("&"):h(n,t)+"="+h(o,t)})).filter((e=>e.length>0)).join("&")}function O(e,t){var n,r;t=(0,o.A)({decode:!0},t);let[a,i]=f(e,"#");return void 0===a&&(a=e),(0,o.A)({url:null!==(n=null===(r=a)||void 0===r||null===(r=r.split("?"))||void 0===r?void 0:r[0])&&void 0!==n?n:"",query:S(k(e),t)},t&&t.parseFragmentIdentifier&&i?{fragmentIdentifier:v(i,t)}:{})}function j(e,t){t=(0,o.A)({encode:!0,strict:!0,[g]:!0},t);const n=w(e.url).split("?")[0]||"",r=k(e.url);let a=E((0,o.A)((0,o.A)({},S(r,{sort:!1})),e.query),t);a&&(a="?".concat(a));let i=function(e){let t="";const n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);if("string"===typeof e.fragmentIdentifier){const r=new URL(n);r.hash=e.fragmentIdentifier,i=t[g]?r.hash:"#".concat(e.fragmentIdentifier)}return"".concat(n).concat(a).concat(i)}function _(e,t,n){n=(0,o.A)({parseFragmentIdentifier:!0,[g]:!1},n);const{url:r,query:a,fragmentIdentifier:i}=O(e,n);return j({url:r,query:p(a,t),fragmentIdentifier:i},n)}function P(e,t,n){return _(e,Array.isArray(t)?e=>!t.includes(e):(e,n)=>!t(e,n),n)}const A=r}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkharperdb_studio=self.webpackChunkharperdb_studio||[]).push([[23],{5023:(e,t,r)=>{r.d(t,{Ay:()=>ie,wG:()=>B});var n=r(9379);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 i(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?i(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function c(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 a(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 l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}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 d(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){l(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 f(e){return function t(){for(var r=this,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return o.length>=e.length?e.apply(this,o):function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return t.apply(r,[].concat(o,n))}}}function g(e){return{}.toString.call(e).includes("Object")}function p(e){return"function"===typeof e}var v=f((function(e,t){throw new Error(e[t]||e.default)}))({initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"}),h={changes:function(e,t){return g(t)||v("changeType"),Object.keys(t).some((function(t){return r=e,n=t,!Object.prototype.hasOwnProperty.call(r,n);var r,n}))&&v("changeField"),t},selector:function(e){p(e)||v("selectorType")},handler:function(e){p(e)||g(e)||v("handlerType"),g(e)&&Object.values(e).some((function(e){return!p(e)}))&&v("handlersType")},initial:function(e){var t;e||v("initialIsRequired"),g(e)||v("initialType"),t=e,Object.keys(t).length||v("initialContent")}};function y(e,t){return p(t)?t(e.current):t}function m(e,t){return e.current=d(d({},e.current),t),t}function b(e,t,r){return p(t)?t(e.current):Object.keys(r).forEach((function(r){var n;return null===(n=t[r])||void 0===n?void 0:n.call(t,e.current[r])})),r}const w={create:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};h.initial(e),h.handler(t);var r={current:e},n=f(b)(r,t),o=f(m)(r),i=f(h.changes)(e),u=f(y)(r);return[function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e};return h.selector(e),e(r.current)},function(e){!function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return t.reduceRight((function(e,t){return t(e)}),e)}}(n,o,i,u)(e)}]}};const O={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.43.0/min/vs"}};const j=function(e){return{}.toString.call(e).includes("Object")};var M={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:"Deprecation warning!\n You are using deprecated way of configuration.\n\n Instead of using\n monaco.config({ urls: { monacoBase: '...' } })\n use\n monaco.config({ paths: { vs: '...' } })\n\n For more please check the link https://github.com/suren-atoyan/monaco-loader#config\n "},E=function(e){return function t(){for(var r=this,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return o.length>=e.length?e.apply(this,o):function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return t.apply(r,[].concat(o,n))}}}((function(e,t){throw new Error(e[t]||e.default)}))(M),P={config:function(e){return e||E("configIsRequired"),j(e)||E("configType"),e.urls?(console.warn(M.deprecation),{paths:{vs:e.urls.monacoBase}}):e}};const R=P;const k=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return t.reduceRight((function(e,t){return t(e)}),e)}};const S=function e(t,r){return Object.keys(r).forEach((function(n){r[n]instanceof Object&&t[n]&&Object.assign(r[n],e(t[n],r[n]))})),u(u({},t),r)};var A={type:"cancelation",msg:"operation is manually canceled"};const C=function(e){var t=!1,r=new Promise((function(r,n){e.then((function(e){return t?n(A):r(e)})),e.catch(n)}));return r.cancel=function(){return t=!0},r};var T,x,I=w.create({config:O,isInitialized:!1,resolve:null,reject:null,monaco:null}),V=(x=2,function(e){if(Array.isArray(e))return e}(T=I)||function(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var u,c=e[Symbol.iterator]();!(n=(u=c.next()).done)&&(r.push(u.value),!t||r.length!==t);n=!0);}catch(a){o=!0,i=a}finally{try{n||null==c.return||c.return()}finally{if(o)throw i}}return r}}(T,x)||function(e,t){if(e){if("string"===typeof e)return a(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)?a(e,t):void 0}}(T,x)||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.")}()),D=V[0],L=V[1];function q(e){return document.body.appendChild(e)}function z(e){var t=D((function(e){return{config:e.config,reject:e.reject}})),r=function(e){var t=document.createElement("script");return e&&(t.src=e),t}("".concat(t.config.paths.vs,"/loader.js"));return r.onload=function(){return e()},r.onerror=t.reject,r}function _(){var e=D((function(e){return{config:e.config,resolve:e.resolve,reject:e.reject}})),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],(function(t){N(t),e.resolve(t)}),(function(t){e.reject(t)}))}function N(e){D().monaco||L({monaco:e})}var F=new Promise((function(e,t){return L({resolve:e,reject:t})})),U={config:function(e){var t=R.config(e),r=t.monaco,n=c(t,["monaco"]);L((function(e){return{config:S(e.config,n),monaco:r}}))},init:function(){var e=D((function(e){return{monaco:e.monaco,isInitialized:e.isInitialized,resolve:e.resolve}}));if(!e.isInitialized){if(L({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),C(F);if(window.monaco&&window.monaco.editor)return N(window.monaco),e.resolve(window.monaco),C(F);k(q,z)(_)}return C(F)},__getMonacoInstance:function(){return D((function(e){return e.monaco}))}};const B=U;var W=r(9950),G={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},Y={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}};var $=function(e){let{children:t}=e;return W.createElement("div",{style:Y.container},t)};var H=function(e){let{width:t,height:r,isEditorReady:o,loading:i,_ref:u,className:c,wrapperProps:a}=e;return W.createElement("section",(0,n.A)({style:(0,n.A)((0,n.A)({},G.wrapper),{},{width:t,height:r})},a),!o&&W.createElement($,null,i),W.createElement("div",{ref:u,style:(0,n.A)((0,n.A)({},G.fullWidth),!o&&G.hide),className:c}))},J=(0,W.memo)(H);var K=function(e){(0,W.useEffect)(e,[])};var Q=function(e,t){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=(0,W.useRef)(!0);(0,W.useEffect)(n.current||!r?()=>{n.current=!1}:e,t)};function X(){}function Z(e,t,r,n){return function(e,t){return e.editor.getModel(ee(e,t))}(e,n)||function(e,t,r,n){return e.editor.createModel(t,r,n?ee(e,n):void 0)}(e,t,r,n)}function ee(e,t){return e.Uri.parse(t)}var te=function(e){let{original:t,modified:r,language:o,originalLanguage:i,modifiedLanguage:u,originalModelPath:c,modifiedModelPath:a,keepCurrentOriginalModel:l=!1,keepCurrentModifiedModel:s=!1,theme:d="light",loading:f="Loading...",options:g={},height:p="100%",width:v="100%",className:h,wrapperProps:y={},beforeMount:m=X,onMount:b=X}=e,[w,O]=(0,W.useState)(!1),[j,M]=(0,W.useState)(!0),E=(0,W.useRef)(null),P=(0,W.useRef)(null),R=(0,W.useRef)(null),k=(0,W.useRef)(b),S=(0,W.useRef)(m),A=(0,W.useRef)(!1);K((()=>{let e=B.init();return e.then((e=>(P.current=e)&&M(!1))).catch((e=>"cancelation"!==(null===e||void 0===e?void 0:e.type)&&console.error("Monaco initialization: error:",e))),()=>E.current?function(){var e,t,r,n;let o=null===(e=E.current)||void 0===e?void 0:e.getModel();l||null!==o&&void 0!==o&&null!==(t=o.original)&&void 0!==t&&t.dispose(),s||null!==o&&void 0!==o&&null!==(r=o.modified)&&void 0!==r&&r.dispose(),null===(n=E.current)||void 0===n||n.dispose()}():e.cancel()})),Q((()=>{if(E.current&&P.current){let e=E.current.getOriginalEditor(),r=Z(P.current,t||"",i||o||"text",c||"");r!==e.getModel()&&e.setModel(r)}}),[c],w),Q((()=>{if(E.current&&P.current){let e=E.current.getModifiedEditor(),t=Z(P.current,r||"",u||o||"text",a||"");t!==e.getModel()&&e.setModel(t)}}),[a],w),Q((()=>{let e=E.current.getModifiedEditor();e.getOption(P.current.editor.EditorOption.readOnly)?e.setValue(r||""):r!==e.getValue()&&(e.executeEdits("",[{range:e.getModel().getFullModelRange(),text:r||"",forceMoveMarkers:!0}]),e.pushUndoStop())}),[r],w),Q((()=>{var e;null===(e=E.current)||void 0===e||null===(e=e.getModel())||void 0===e||e.original.setValue(t||"")}),[t],w),Q((()=>{let{original:e,modified:t}=E.current.getModel();P.current.editor.setModelLanguage(e,i||o||"text"),P.current.editor.setModelLanguage(t,u||o||"text")}),[o,i,u],w),Q((()=>{var e;null===(e=P.current)||void 0===e||e.editor.setTheme(d)}),[d],w),Q((()=>{var e;null===(e=E.current)||void 0===e||e.updateOptions(g)}),[g],w);let C=(0,W.useCallback)((()=>{var e;if(!P.current)return;S.current(P.current);let n=Z(P.current,t||"",i||o||"text",c||""),l=Z(P.current,r||"",u||o||"text",a||"");null===(e=E.current)||void 0===e||e.setModel({original:n,modified:l})}),[o,r,u,t,i,c,a]),T=(0,W.useCallback)((()=>{var e;!A.current&&R.current&&(E.current=P.current.editor.createDiffEditor(R.current,(0,n.A)({automaticLayout:!0},g)),C(),null!==(e=P.current)&&void 0!==e&&e.editor.setTheme(d),O(!0),A.current=!0)}),[g,d,C]);return(0,W.useEffect)((()=>{w&&k.current(E.current,P.current)}),[w]),(0,W.useEffect)((()=>{!j&&!w&&T()}),[j,w,T]),W.createElement(J,{width:v,height:p,isEditorReady:w,loading:f,_ref:R,className:h,wrapperProps:y})};(0,W.memo)(te);var re=function(e){let t=(0,W.useRef)();return(0,W.useEffect)((()=>{t.current=e}),[e]),t.current},ne=new Map;var oe=function(e){let{defaultValue:t,defaultLanguage:r,defaultPath:o,value:i,language:u,path:c,theme:a="light",line:l,loading:s="Loading...",options:d={},overrideServices:f={},saveViewState:g=!0,keepCurrentModel:p=!1,width:v="100%",height:h="100%",className:y,wrapperProps:m={},beforeMount:b=X,onMount:w=X,onChange:O,onValidate:j=X}=e,[M,E]=(0,W.useState)(!1),[P,R]=(0,W.useState)(!0),k=(0,W.useRef)(null),S=(0,W.useRef)(null),A=(0,W.useRef)(null),C=(0,W.useRef)(w),T=(0,W.useRef)(b),x=(0,W.useRef)(),I=(0,W.useRef)(i),V=re(c),D=(0,W.useRef)(!1),L=(0,W.useRef)(!1);K((()=>{let e=B.init();return e.then((e=>(k.current=e)&&R(!1))).catch((e=>"cancelation"!==(null===e||void 0===e?void 0:e.type)&&console.error("Monaco initialization: error:",e))),()=>S.current?function(){var e,t;null!==(e=x.current)&&void 0!==e&&e.dispose(),p?g&&ne.set(c,S.current.saveViewState()):null===(t=S.current.getModel())||void 0===t||t.dispose(),S.current.dispose()}():e.cancel()})),Q((()=>{var e,n,a,l;let s=Z(k.current,t||i||"",r||u||"",c||o||"");s!==(null===(e=S.current)||void 0===e?void 0:e.getModel())&&(g&&ne.set(V,null===(n=S.current)||void 0===n?void 0:n.saveViewState()),null!==(a=S.current)&&void 0!==a&&a.setModel(s),g&&(null===(l=S.current)||void 0===l||l.restoreViewState(ne.get(c))))}),[c],M),Q((()=>{var e;null===(e=S.current)||void 0===e||e.updateOptions(d)}),[d],M),Q((()=>{!S.current||void 0===i||(S.current.getOption(k.current.editor.EditorOption.readOnly)?S.current.setValue(i):i!==S.current.getValue()&&(L.current=!0,S.current.executeEdits("",[{range:S.current.getModel().getFullModelRange(),text:i,forceMoveMarkers:!0}]),S.current.pushUndoStop(),L.current=!1))}),[i],M),Q((()=>{var e,t;let r=null===(e=S.current)||void 0===e?void 0:e.getModel();r&&u&&(null===(t=k.current)||void 0===t||t.editor.setModelLanguage(r,u))}),[u],M),Q((()=>{var e;void 0!==l&&(null===(e=S.current)||void 0===e||e.revealLine(l))}),[l],M),Q((()=>{var e;null===(e=k.current)||void 0===e||e.editor.setTheme(a)}),[a],M);let q=(0,W.useCallback)((()=>{if(A.current&&k.current&&!D.current){var e;T.current(k.current);let s=c||o,p=Z(k.current,i||t||"",r||u||"",s||"");S.current=null===(e=k.current)||void 0===e?void 0:e.editor.create(A.current,(0,n.A)({model:p,automaticLayout:!0},d),f),g&&S.current.restoreViewState(ne.get(s)),k.current.editor.setTheme(a),void 0!==l&&S.current.revealLine(l),E(!0),D.current=!0}}),[t,r,o,i,u,c,d,f,g,a,l]);return(0,W.useEffect)((()=>{M&&C.current(S.current,k.current)}),[M]),(0,W.useEffect)((()=>{!P&&!M&&q()}),[P,M,q]),I.current=i,(0,W.useEffect)((()=>{var e,t;M&&O&&(null!==(e=x.current)&&void 0!==e&&e.dispose(),x.current=null===(t=S.current)||void 0===t?void 0:t.onDidChangeModelContent((e=>{L.current||O(S.current.getValue(),e)})))}),[M,O]),(0,W.useEffect)((()=>{if(M){let e=k.current.editor.onDidChangeMarkers((e=>{var t;let r=null===(t=S.current.getModel())||void 0===t?void 0:t.uri;if(r&&e.find((e=>e.path===r.path))){let e=k.current.editor.getModelMarkers({resource:r});null===j||void 0===j||j(e)}}));return()=>{null===e||void 0===e||e.dispose()}}return()=>{}}),[M,j]),W.createElement(J,{width:v,height:h,isEditorReady:M,loading:s,_ref:A,className:y,wrapperProps:m})},ie=(0,W.memo)(oe)}}]);
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 239.5d22fd48.chunk.js.LICENSE.txt */
2
+ (self.webpackChunkharperdb_studio=self.webpackChunkharperdb_studio||[]).push([[239],{2594:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(4467);function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&i.push.apply(i,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),i.forEach((function(t){(0,r.A)(e,t,n[t])}))}return e}var o=n(9950);const s={dark_vscode_tribute:{default:"#D4D4D4",background:"#1E1E1E",background_warning:"#1E1E1E",string:"#CE8453",number:"#B5CE9F",colon:"#49B8F7",keys:"#9CDCFE",keys_whiteSpace:"#AF74A5",primitive:"#6392C6"},light_mitsuketa_tribute:{default:"#D4D4D4",background:"#FCFDFD",background_warning:"#FEECEB",string:"#FA7921",number:"#70CE35",colon:"#49B8F7",keys:"#59A5D8",keys_whiteSpace:"#835FB6",primitive:"#386FA4"}};var a=n(3727);const l={getCaller:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;var t=(new Error).stack.replace(/^Error\s+/,"");return t=(t=t.split("\n")[e]).replace(/^\s+at Object./,"").replace(/^\s+at /,"").replace(/ \(.+\)$/,"")},throwError:function(){throw["@",arguments.length>0&&void 0!==arguments[0]?arguments[0]:"unknown function","(): Expected parameter '",arguments.length>1&&void 0!==arguments[1]?arguments[1]:"unknown parameter","' ",arguments.length>2&&void 0!==arguments[2]?arguments[2]:"to be defined"].join("")},isUndefined:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"<unknown parameter>";[null,void 0].indexOf(arguments.length>1?arguments[1]:void 0)>-1&&l.throwError(l.getCaller(2),e)},isFalsy:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"<unknown parameter>";(arguments.length>1?arguments[1]:void 0)||l.throwError(l.getCaller(2),e)},isNoneOf:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"<unknown parameter>",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];-1===n.indexOf(t)&&l.throwError(l.getCaller(2),e,"to be any of"+JSON.stringify(n))},isAnyOf:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"<unknown parameter>",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];n.indexOf(t)>-1&&l.throwError(l.getCaller(2),e,"not to be any of"+JSON.stringify(n))},isNotType:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"<unknown parameter>",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";(0,a.getType)(t)!==n.toLowerCase()&&l.throwError(l.getCaller(2),e,"to be type "+n.toLowerCase())},isAnyTypeOf:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"<unknown parameter>",t=arguments.length>1?arguments[1]:void 0;(arguments.length>2&&void 0!==arguments[2]?arguments[2]:[]).forEach((n=>{(0,a.getType)(t)===n&&l.throwError(l.getCaller(2),e,"not to be type of "+n.toLowerCase())}))},missingKey:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"<unknown parameter>",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";l.isUndefined(e,t),-1===Object.keys(t).indexOf(n)&&l.throwError(l.getCaller(2),e,"to contain '"+n+"' key")},missingAnyKeys:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"<unknown parameter>",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[""];l.isUndefined(e,t);const r=Object.keys(t);n.forEach((t=>{-1===r.indexOf(t)&&l.throwError(l.getCaller(2),e,"to contain '"+t+"' key")}))},containsUndefined:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"<unknown parameter>",t=arguments.length>1?arguments[1]:void 0;[void 0,null].forEach((n=>{const r=(0,a.locate)(t,n);r&&l.throwError(l.getCaller(2),e,"not to contain '"+JSON.stringify(n)+"' at "+r)}))},isInvalidPath:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"<unknown parameter>",t=arguments.length>1?arguments[1]:void 0;l.isUndefined(e,t),l.isNotType(e,t,"string"),l.isAnyOf(e,t,["","/"]),".$[]#".split().forEach((n=>{t.indexOf(n)>-1&&l.throwError(l.getCaller(2),e,"not to contain invalid character '"+n+"'")})),t.match(/\/{2,}/g)&&l.throwError(l.getCaller(2),e,"not to contain consecutive forward slash characters")},isInvalidWriteData:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"<unknown parameter>",t=arguments.length>1?arguments[1]:void 0;l.isUndefined(e,t),l.containsUndefined(e,t)}},c=l,u=(e,t)=>t?Object.keys(t).reduce(((e,n)=>e.replace(new RegExp("\\{".concat(n,"\\}"),"gi"),(e=>Array.isArray(e)?e.join(", "):"string"===typeof e?e:""+e)(t[n]))),e):e,p={format:"{reason} at line {line}",symbols:{colon:"colon",comma:"comma",semicolon:"semicolon",slash:"slash",backslash:"backslash",brackets:{round:"round brackets",square:"square brackets",curly:"curly brackets",angle:"angle brackets"},period:"period",quotes:{single:"single quote",double:"double quote",grave:"grave accent"},space:"space",ampersand:"ampersand",asterisk:"asterisk",at:"at sign",equals:"equals sign",hash:"hash",percent:"percent",plus:"plus",minus:"minus",dash:"dash",hyphen:"hyphen",tilde:"tilde",underscore:"underscore",bar:"vertical bar"},types:{key:"key",value:"value",number:"number",string:"string",primitive:"primitive",boolean:"boolean",character:"character",integer:"integer",array:"array",float:"float"},invalidToken:{tokenSequence:{prohibited:"'{firstToken}' token cannot be followed by '{secondToken}' token(s)",permitted:"'{firstToken}' token can only be followed by '{secondToken}' token(s)"},termSequence:{prohibited:"A {firstTerm} cannot be followed by a {secondTerm}",permitted:"A {firstTerm} can only be followed by a {secondTerm}"},double:"'{token}' token cannot be followed by another '{token}' token",useInstead:"'{badToken}' token is not accepted. Use '{goodToken}' instead",unexpected:"Unexpected '{token}' token found"},brace:{curly:{missingOpen:"Missing '{' open curly brace",missingClose:"Open '{' curly brace is missing closing '}' curly brace",cannotWrap:"'{token}' token cannot be wrapped in '{}' curly braces"},square:{missingOpen:"Missing '[' open square brace",missingClose:"Open '[' square brace is missing closing ']' square brace",cannotWrap:"'{token}' token cannot be wrapped in '[]' square braces"}},string:{missingOpen:"Missing/invalid opening string '{quote}' token",missingClose:"Missing/invalid closing string '{quote}' token",mustBeWrappedByQuotes:"Strings must be wrapped by quotes",nonAlphanumeric:"Non-alphanumeric token '{token}' is not allowed outside string notation",unexpectedKey:"Unexpected key found at string position"},key:{numberAndLetterMissingQuotes:"Key beginning with number and containing letters must be wrapped by quotes",spaceMissingQuotes:"Key containing space must be wrapped by quotes",unexpectedString:"Unexpected string found at key position"},noTrailingOrLeadingComma:"Trailing or leading commas in arrays and objects are not permitted"};class h extends o.Component{constructor(e){super(e),this.updateInternalProps=this.updateInternalProps.bind(this),this.createMarkup=this.createMarkup.bind(this),this.onClick=this.onClick.bind(this),this.onBlur=this.onBlur.bind(this),this.update=this.update.bind(this),this.getCursorPosition=this.getCursorPosition.bind(this),this.setCursorPosition=this.setCursorPosition.bind(this),this.scheduledUpdate=this.scheduledUpdate.bind(this),this.setUpdateTime=this.setUpdateTime.bind(this),this.renderLabels=this.renderLabels.bind(this),this.newSpan=this.newSpan.bind(this),this.renderErrorMessage=this.renderErrorMessage.bind(this),this.onScroll=this.onScroll.bind(this),this.showPlaceholder=this.showPlaceholder.bind(this),this.tokenize=this.tokenize.bind(this),this.onKeyPress=this.onKeyPress.bind(this),this.onKeyDown=this.onKeyDown.bind(this),this.onPaste=this.onPaste.bind(this),this.stopEvent=this.stopEvent.bind(this),this.refContent=null,this.refLabels=null,this.updateInternalProps(),this.renderCount=1,this.state={prevPlaceholder:"",markupText:"",plainText:"",json:"",jsObject:void 0,lines:!1,error:!1},this.props.locale||console.warn("[react-json-editor-ajrm - Deprecation Warning] You did not provide a 'locale' prop for your JSON input - This will be required in a future version. English has been set as a default.")}updateInternalProps(){let e={},t={},n=s.dark_vscode_tribute;"theme"in this.props&&"string"===typeof this.props.theme&&this.props.theme in s&&(n=s[this.props.theme]),e=n,"colors"in this.props&&(e={default:"default"in this.props.colors?this.props.colors.default:e.default,string:"string"in this.props.colors?this.props.colors.string:e.string,number:"number"in this.props.colors?this.props.colors.number:e.number,colon:"colon"in this.props.colors?this.props.colors.colon:e.colon,keys:"keys"in this.props.colors?this.props.colors.keys:e.keys,keys_whiteSpace:"keys_whiteSpace"in this.props.colors?this.props.colors.keys_whiteSpace:e.keys_whiteSpace,primitive:"primitive"in this.props.colors?this.props.colors.primitive:e.primitive,error:"error"in this.props.colors?this.props.colors.error:e.error,background:"background"in this.props.colors?this.props.colors.background:e.background,background_warning:"background_warning"in this.props.colors?this.props.colors.background_warning:e.background_warning}),this.colors=e,t="style"in this.props?{outerBox:"outerBox"in this.props.style?this.props.style.outerBox:{},container:"container"in this.props.style?this.props.style.container:{},warningBox:"warningBox"in this.props.style?this.props.style.warningBox:{},errorMessage:"errorMessage"in this.props.style?this.props.style.errorMessage:{},body:"body"in this.props.style?this.props.style.body:{},labelColumn:"labelColumn"in this.props.style?this.props.style.labelColumn:{},labels:"labels"in this.props.style?this.props.style.labels:{},contentBox:"contentBox"in this.props.style?this.props.style.contentBox:{}}:{outerBox:{},container:{},warningBox:{},errorMessage:{},body:{},labelColumn:{},labels:{},contentBox:{}},this.style=t,this.confirmGood=!("confirmGood"in this.props)||this.props.confirmGood;const r=this.props.height||"610px",i=this.props.width||"479px";this.totalHeight=r,this.totalWidth=i,!("onKeyPressUpdate"in this.props)||this.props.onKeyPressUpdate?this.timer||(this.timer=setInterval(this.scheduledUpdate,100)):this.timer&&(clearInterval(this.timer),this.timer=!1),this.updateTime=!1,this.waitAfterKeyPress="waitAfterKeyPress"in this.props?this.props.waitAfterKeyPress:1e3,this.resetConfiguration="reset"in this.props&&this.props.reset}render(){const e=this.props.id,t=this.state.markupText,n=this.props.error||this.state.error,r=this.colors,s=this.style,a=this.confirmGood,l=this.totalHeight,c=this.totalWidth,u=!!this.props.error||!!n&&"token"in n;return this.renderCount++,o.createElement("div",{name:"outer-box",id:e&&e+"-outer-box",style:i({display:"block",overflow:"none",height:l,width:c,margin:0,boxSizing:"border-box",position:"relative"},s.outerBox)},a?o.createElement("div",{style:{opacity:u?0:1,height:"30px",width:"30px",position:"absolute",top:0,right:0,transform:"translate(-25%,25%)",pointerEvents:"none",transitionDuration:"0.2s",transitionTimingFunction:"cubic-bezier(0, 1, 0.5, 1)"}},o.createElement("svg",{height:"30px",width:"30px",viewBox:"0 0 100 100"},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",fill:"green",opacity:"0.85",d:"M39.363,79L16,55.49l11.347-11.419L39.694,56.49L72.983,23L84,34.085L39.363,79z"}))):void 0,o.createElement("div",{name:"container",id:e&&e+"-container",style:i({display:"block",height:l,width:c,margin:0,boxSizing:"border-box",overflow:"hidden",fontFamily:"Roboto, sans-serif"},s.container),onClick:this.onClick},o.createElement("div",{name:"warning-box",id:e&&e+"-warning-box",style:i({display:"block",overflow:"hidden",height:u?"60px":"0px",width:"100%",margin:0,backgroundColor:r.background_warning,transitionDuration:"0.2s",transitionTimingFunction:"cubic-bezier(0, 1, 0.5, 1)"},s.warningBox),onClick:this.onClick},o.createElement("span",{style:{display:"inline-block",height:"60px",width:"60px",margin:0,boxSizing:"border-box",overflow:"hidden",verticalAlign:"top",pointerEvents:"none"},onClick:this.onClick},o.createElement("div",{style:{position:"relative",top:0,left:0,height:"60px",width:"60px",margin:0,pointerEvents:"none"},onClick:this.onClick},o.createElement("div",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",pointerEvents:"none"},onClick:this.onClick},o.createElement("svg",{height:"25px",width:"25px",viewBox:"0 0 100 100"},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",fill:"red",d:"M73.9,5.75c0.467-0.467,1.067-0.7,1.8-0.7c0.7,0,1.283,0.233,1.75,0.7l16.8,16.8 c0.467,0.5,0.7,1.084,0.7,1.75c0,0.733-0.233,1.334-0.7,1.801L70.35,50l23.9,23.95c0.5,0.467,0.75,1.066,0.75,1.8 c0,0.667-0.25,1.25-0.75,1.75l-16.8,16.75c-0.534,0.467-1.117,0.7-1.75,0.7s-1.233-0.233-1.8-0.7L50,70.351L26.1,94.25 c-0.567,0.467-1.167,0.7-1.8,0.7c-0.667,0-1.283-0.233-1.85-0.7L5.75,77.5C5.25,77,5,76.417,5,75.75c0-0.733,0.25-1.333,0.75-1.8 L29.65,50L5.75,26.101C5.25,25.667,5,25.066,5,24.3c0-0.666,0.25-1.25,0.75-1.75l16.8-16.8c0.467-0.467,1.05-0.7,1.75-0.7 c0.733,0,1.333,0.233,1.8,0.7L50,29.65L73.9,5.75z"}))))),o.createElement("span",{style:{display:"inline-block",height:"60px",width:"calc(100% - 60px)",margin:0,overflow:"hidden",verticalAlign:"top",position:"absolute",pointerEvents:"none"},onClick:this.onClick},this.renderErrorMessage())),o.createElement("div",{name:"body",id:e&&e+"-body",style:i({display:"flex",overflow:"none",height:u?"calc(100% - 60px)":"100%",width:"",margin:0,resize:"none",fontFamily:"Roboto Mono, Monaco, monospace",fontSize:"11px",backgroundColor:r.background,transitionDuration:"0.2s",transitionTimingFunction:"cubic-bezier(0, 1, 0.5, 1)"},s.body),onClick:this.onClick},o.createElement("span",{name:"labels",id:e&&e+"-labels",ref:e=>this.refLabels=e,style:i({display:"inline-block",boxSizing:"border-box",verticalAlign:"top",height:"100%",width:"44px",margin:0,padding:"5px 0px 5px 10px",overflow:"hidden",color:"#D4D4D4"},s.labelColumn),onClick:this.onClick},this.renderLabels()),o.createElement("span",{id:e,ref:e=>this.refContent=e,contentEditable:!0,style:i({display:"inline-block",boxSizing:"border-box",verticalAlign:"top",height:"100%",width:"",flex:1,margin:0,padding:"5px",overflowX:"hidden",overflowY:"auto",wordWrap:"break-word",whiteSpace:"pre-line",color:"#D4D4D4",outline:"none"},s.contentBox),dangerouslySetInnerHTML:this.createMarkup(t),onKeyPress:this.onKeyPress,onKeyDown:this.onKeyDown,onClick:this.onClick,onBlur:this.onBlur,onScroll:this.onScroll,onPaste:this.onPaste,autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:!1}))))}renderErrorMessage(){const e=this.props.locale||p,t=this.props.error||this.state.error,n=this.style;if(t)return o.createElement("p",{style:i({color:"red",fontSize:"12px",position:"absolute",width:"calc(100% - 60px)",height:"60px",boxSizing:"border-box",margin:0,padding:0,paddingRight:"10px",overflowWrap:"break-word",display:"flex",flexDirection:"column",justifyContent:"center"},n.errorMessage)},u(e.format,t))}renderLabels(){const e=this.colors,t=this.style,n=this.props.error||this.state.error,r=n?n.line:-1,s=this.state.lines?this.state.lines:1;let a=new Array(s);for(var l=0;l<s-1;l++)a[l]=l+1;return a.map((n=>{const s=n!==r?e.default:"red";return o.createElement("div",{key:n,style:i({},t.labels,{color:s})},n)}))}createMarkup(e){return void 0===e?{__html:""}:{__html:""+e}}newSpan(e,t,n){let r=this.colors,i=t.type,o=t.string,s="";switch(i){case"string":case"number":case"primitive":case"error":s=r[t.type];break;case"key":s=" "===o?r.keys_whiteSpace:r.keys;break;case"symbol":s=":"===o?r.colon:r.default;break;default:s=r.default}return o.length!==o.replace(/</g,"").replace(/>/g,"").length&&(o="<xmp style=display:inline;>"+o+"</xmp>"),'<span type="'+i+'" value="'+o+'" depth="'+n+'" style="color:'+s+'">'+o+"</span>"}getCursorPosition(e){let t,n=window.getSelection(),r=-1,i=0;if(n.focusNode&&(e=>{for(;null!==e;){if(e===this.refContent)return!0;e=e.parentNode}return!1})(n.focusNode))for(t=n.focusNode,r=n.focusOffset;t&&t!==this.refContent;)if(t.previousSibling)t=t.previousSibling,e&&"BR"===t.nodeName&&i++,r+=t.textContent.length;else if(t=t.parentNode,null===t)break;return r+i}setCursorPosition(e){if([!1,null,void 0].indexOf(e)>-1)return;const t=(e,n,r)=>{if(r||((r=document.createRange()).selectNode(e),r.setStart(e,0)),0===n.count)r.setEnd(e,n.count);else if(e&&n.count>0)if(e.nodeType===Node.TEXT_NODE)e.textContent.length<n.count?n.count-=e.textContent.length:(r.setEnd(e,n.count),n.count=0);else for(var i=0;i<e.childNodes.length&&(r=t(e.childNodes[i],n,r),0!==n.count);i++);return r};e>0?(e=>{if(e<0)return;let n=window.getSelection(),r=t(this.refContent,{count:e});r&&(r.collapse(!1),n.removeAllRanges(),n.addRange(r))})(e):this.refContent.focus()}update(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=this.refContent,r=this.tokenize(n);"onChange"in this.props&&this.props.onChange({plainText:r.indented,markupText:r.markup,json:r.json,jsObject:r.jsObject,lines:r.lines,error:r.error});let i=this.getCursorPosition(r.error)+e;this.setState({plainText:r.indented,markupText:r.markup,json:r.json,jsObject:r.jsObject,lines:r.lines,error:r.error}),this.updateTime=!1,t&&this.setCursorPosition(i)}scheduledUpdate(){if("onKeyPressUpdate"in this.props&&!1===this.props.onKeyPressUpdate)return;const{updateTime:e}=this;!1!==e&&(e>(new Date).getTime()||this.update())}setUpdateTime(){"onKeyPressUpdate"in this.props&&!1===this.props.onKeyPressUpdate||(this.updateTime=(new Date).getTime()+this.waitAfterKeyPress)}stopEvent(e){e&&(e.preventDefault(),e.stopPropagation())}onKeyPress(e){const t=e.ctrlKey||e.metaKey;this.props.viewOnly&&!t&&this.stopEvent(e),t||this.setUpdateTime()}onKeyDown(e){const t=!!this.props.viewOnly,n=e.ctrlKey||e.metaKey;switch(e.key){case"Tab":if(this.stopEvent(e),t)break;document.execCommand("insertText",!1," "),this.setUpdateTime();break;case"Backspace":case"Delete":t&&this.stopEvent(e),this.setUpdateTime();break;case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"ArrowDown":this.setUpdateTime();break;case"a":case"c":t&&!n&&this.stopEvent(e);break;default:t&&this.stopEvent(e)}}onPaste(e){if(this.props.viewOnly)this.stopEvent(e);else{e.preventDefault();var t=e.clipboardData.getData("text/plain");document.execCommand("insertText",!1,t)}this.update()}onClick(){!("viewOnly"in this.props)||this.props.viewOnly}onBlur(){if("viewOnly"in this.props&&this.props.viewOnly)return;const e=this.refContent,t=this.tokenize(e);"onBlur"in this.props&&this.props.onBlur({plainText:t.indented,markupText:t.markup,json:t.json,jsObject:t.jsObject,lines:t.lines,error:t.error})}onScroll(e){this.refLabels.scrollTop=e.target.scrollTop}componentDidUpdate(){this.updateInternalProps(),this.showPlaceholder()}componentDidMount(){this.showPlaceholder()}componentWillUnmount(){this.timer&&clearInterval(this.timer)}showPlaceholder(){if(!("placeholder"in this.props))return;const{placeholder:e}=this.props;if([void 0,null].indexOf(e)>-1)return;const{prevPlaceholder:t,jsObject:n}=this.state,{resetConfiguration:r}=this,i=(0,a.getType)(e);-1===["object","array"].indexOf(i)&&c.throwError("showPlaceholder","placeholder","either an object or an array");let o=!(0,a.identical)(e,t);if(o||r&&void 0!==n&&(o=!(0,a.identical)(e,n)),!o)return;const s=this.tokenize(e);this.setState({prevPlaceholder:e,plainText:s.indentation,markupText:s.markup,lines:s.lines,error:s.error})}tokenize(e){if("object"!==typeof e)return console.error("tokenize() expects object type properties only. Got '"+typeof e+"' type instead.");const t=this.props.locale||p,n=this.newSpan;if("nodeType"in e){const d=e.cloneNode(!0);if(!d.hasChildNodes())return"";const f=d.childNodes;let g={tokens_unknown:[],tokens_proto:[],tokens_split:[],tokens_fallback:[],tokens_normalize:[],tokens_merge:[],tokens_plainText:"",indented:"",json:"",jsObject:void 0,markup:""};for(var r=0;r<f.length;r++){let D=f[r],K={};switch(D.nodeName){case"SPAN":K={string:D.textContent,type:D.attributes.type.textContent},g.tokens_unknown.push(K);break;case"DIV":case"FONT":g.tokens_unknown.push({string:D.textContent,type:"unknown"});break;case"BR":""===D.textContent&&g.tokens_unknown.push({string:"\n",type:"unknown"});break;case"#text":g.tokens_unknown.push({string:D.wholeText,type:"unknown"});break;default:console.error("Unrecognized node:",{child:D})}}function k(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n={active:!1,string:"",number:"",symbol:"",space:"",delimiter:"",quarks:[]};function r(e,r){switch(r){case"symbol":case"delimiter":n.active&&n.quarks.push({string:n[n.active],type:t+"-"+n.active}),n[n.active]="",n.active=r,n[n.active]=e;break;default:r!==n.active||[n.string,e].indexOf("\n")>-1?(n.active&&n.quarks.push({string:n[n.active],type:t+"-"+n.active}),n[n.active]="",n.active=r,n[n.active]=e):n[r]+=e}}for(var i=0;i<e.length;i++){const t=e.charAt(i);switch(t){case'"':case"'":r(t,"delimiter");break;case" ":case"\xa0":r(t,"space");break;case"{":case"}":case"[":case"]":case":":case",":r(t,"symbol");break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":"string"===n.active?r(t,"string"):r(t,"number");break;case"-":if(i<e.length-1&&"0123456789".indexOf(e.charAt(i+1))>-1){r(t,"number");break}case".":if(i<e.length-1&&i>0&&"0123456789".indexOf(e.charAt(i+1))>-1&&"0123456789".indexOf(e.charAt(i-1))>-1){r(t,"number");break}default:r(t,"string")}}return n.active&&(n.quarks.push({string:n[n.active],type:t+"-"+n.active}),n[n.active]="",n.active=!1),n.quarks}for(r=0;r<g.tokens_unknown.length;r++){let B=g.tokens_unknown[r];g.tokens_proto=g.tokens_proto.concat(k(B.string,"proto"))}function b(e,t){const n="'\"";let r="",i="",o=!1;switch(t){case"primitive":if(-1===["true","false","null","undefined"].indexOf(e))return!1;break;case"string":if(e.length<2)return!1;if(r=e.charAt(0),i=e.charAt(e.length-1),o=n.indexOf(r),-1===o)return!1;if(r!==i)return!1;for(var s=0;s<e.length;s++)if(s>0&&s<e.length-1&&e.charAt(s)===n[o]&&"\\"!==e.charAt(s-1))return!1;break;case"key":if(0===e.length)return!1;if(r=e.charAt(0),i=e.charAt(e.length-1),o=n.indexOf(r),o>-1){if(1===e.length)return!1;if(r!==i)return!1;for(s=0;s<e.length;s++)if(s>0&&s<e.length-1&&e.charAt(s)===n[o]&&"\\"!==e.charAt(s-1))return!1}else{const t="'\"`.,:;{}[]&<>=~*%\\|/-+!?@^ \xa0";for(s=0;s<t.length;s++){const n=t.charAt(s);if(e.indexOf(n)>-1)return!1}}break;case"number":for(s=0;s<e.length;s++)if(-1==="0123456789".indexOf(e.charAt(s)))if(0===s){if("-"!==e.charAt(0))return!1}else if("."!==e.charAt(s))return!1;break;case"symbol":if(e.length>1)return!1;if(-1==="{[:]},".indexOf(e))return!1;break;case"colon":if(e.length>1)return!1;if(":"!==e)return!1;break;default:return!0}return!0}for(r=0;r<g.tokens_proto.length;r++){let N=g.tokens_proto[r];-1===N.type.indexOf("proto")?b(N.string,N.type)?g.tokens_split.push(N):g.tokens_split=g.tokens_split.concat(k(N.string,"split")):g.tokens_split.push(N)}for(r=0;r<g.tokens_split.length;r++){let M=g.tokens_split[r],U=M.type,z=M.string,L=z.length,V=[];U.indexOf("-")>-1&&(U=U.slice(U.indexOf("-")+1),"string"!==U&&V.push("string"),V.push("key"),V.push("error"));let F={string:z,length:L,type:U,fallback:V};g.tokens_fallback.push(F)}function y(){const e=g.tokens_normalize.length-1;if(e<1)return!1;for(var t=e;t>=0;t--){const e=g.tokens_normalize[t];switch(e.type){case"space":case"linebreak":break;default:return e}}return!1}let m={brackets:[],stringOpen:!1,isValue:!1};for(r=0;r<g.tokens_fallback.length;r++){let I=g.tokens_fallback[r];const W=I.type,R=I.string;let Q={type:W,string:R};switch(W){case"symbol":case"colon":if(m.stringOpen){m.isValue?Q.type="string":Q.type="key";break}switch(R){case"[":case"{":m.brackets.push(R),m.isValue="["===m.brackets[m.brackets.length-1];break;case"]":case"}":m.brackets.pop(),m.isValue="["===m.brackets[m.brackets.length-1];break;case",":if("colon"===y().type)break;m.isValue="["===m.brackets[m.brackets.length-1];break;case":":Q.type="colon",m.isValue=!0}break;case"delimiter":if(m.isValue?Q.type="string":Q.type="key",!m.stringOpen){m.stringOpen=R;break}if(r>0){const G=g.tokens_fallback[r-1],J=G.string,H=G.type,X=J.charAt(J.length-1);if("string"===H&&"\\"===X)break}if(m.stringOpen===R){m.stringOpen=!1;break}break;case"primitive":case"string":if(["false","true","null","undefined"].indexOf(R)>-1){const Y=g.tokens_normalize.length-1;if(Y>=0){if("string"!==g.tokens_normalize[Y].type){Q.type="primitive";break}Q.type="string";break}Q.type="primitive";break}if("\n"===R&&!m.stringOpen){Q.type="linebreak";break}m.isValue?Q.type="string":Q.type="key";break;case"space":case"number":m.stringOpen&&(m.isValue?Q.type="string":Q.type="key")}g.tokens_normalize.push(Q)}for(r=0;r<g.tokens_normalize.length;r++){const $=g.tokens_normalize[r];let Z={string:$.string,type:$.type,tokens:[r]};if(-1===["symbol","colon"].indexOf($.type)&&r+1<g.tokens_normalize.length){let ee=0;for(var i=r+1;i<g.tokens_normalize.length;i++){const te=g.tokens_normalize[i];if($.type!==te.type)break;Z.string+=te.string,Z.tokens.push(i),ee++}r+=ee}g.tokens_merge.push(Z)}const v="'\"",x="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_$";var o=!1,s=g.tokens_merge.length>0?1:0;function w(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;o={token:e,line:s,reason:t},g.tokens_merge[e+n].type="error"}function O(e,t){if(void 0===e&&console.error("tokenID argument must be an integer."),void 0===t&&console.error("options argument must be an array."),e===g.tokens_merge.length-1)return!1;for(var n=e+1;n<g.tokens_merge.length;n++){const e=g.tokens_merge[n];switch(e.type){case"space":case"linebreak":break;case"symbol":case"colon":return t.indexOf(e.string)>-1&&n;default:return!1}}return!1}function T(e,t){if(void 0===e&&console.error("tokenID argument must be an integer."),void 0===t&&console.error("options argument must be an array."),0===e)return!1;for(var n=e-1;n>=0;n--){const e=g.tokens_merge[n];switch(e.type){case"space":case"linebreak":break;case"symbol":case"colon":return t.indexOf(e.string)>-1;default:return!1}}return!1}function j(e){if(void 0===e&&console.error("tokenID argument must be an integer."),0===e)return!1;for(var t=e-1;t>=0;t--){const e=g.tokens_merge[t];switch(e.type){case"space":case"linebreak":break;default:return e.type}}return!1}m={brackets:[],stringOpen:!1,isValue:!1};let C=[];for(r=0;r<g.tokens_merge.length&&!o;r++){let ne=g.tokens_merge[r],re=ne.string,ie=ne.type,oe=!1;switch(ie){case"space":break;case"linebreak":s++;break;case"symbol":switch(re){case"{":case"[":if(oe=T(r,["}","]"]),oe){w(r,u(t.invalidToken.tokenSequence.prohibited,{firstToken:g.tokens_merge[oe].string,secondToken:re}));break}if("["===re&&r>0&&!T(r,[":","[",","])){w(r,u(t.invalidToken.tokenSequence.permitted,{firstToken:"[",secondToken:[":","[",","]}));break}if("{"===re&&T(r,["{"])){w(r,u(t.invalidToken.double,{token:"{"}));break}m.brackets.push(re),m.isValue="["===m.brackets[m.brackets.length-1],C.push({i:r,line:s,string:re});break;case"}":case"]":if("}"===re&&"{"!==m.brackets[m.brackets.length-1]){w(r,u(t.brace.curly.missingOpen));break}if("}"===re&&T(r,[","])){w(r,u(t.invalidToken.tokenSequence.prohibited,{firstToken:",",secondToken:"}"}));break}if("]"===re&&"["!==m.brackets[m.brackets.length-1]){w(r,u(t.brace.square.missingOpen));break}if("]"===re&&T(r,[":"])){w(r,u(t.invalidToken.tokenSequence.prohibited,{firstToken:":",secondToken:"]"}));break}m.brackets.pop(),m.isValue="["===m.brackets[m.brackets.length-1],C.push({i:r,line:s,string:re});break;case",":if(oe=T(r,["{"]),oe){if(O(r,["}"])){w(r,u(t.brace.curly.cannotWrap,{token:","}));break}w(r,u(t.invalidToken.tokenSequence.prohibited,{firstToken:"{",secondToken:","}));break}if(O(r,["}",",","]"])){w(r,u(t.noTrailingOrLeadingComma));break}switch(oe=j(r),oe){case"key":case"colon":w(r,u(t.invalidToken.termSequence.prohibited,{firstTerm:"key"===oe?t.types.key:t.symbols.colon,secondTerm:t.symbols.comma}));break;case"symbol":if(T(r,["{"])){w(r,u(t.invalidToken.tokenSequence.prohibited,{firstToken:"{",secondToken:","}));break}}m.isValue="["===m.brackets[m.brackets.length-1]}g.json+=re;break;case"colon":if(oe=T(r,["["]),oe&&O(r,["]"])){w(r,u(t.brace.square.cannotWrap,{token:":"}));break}if(oe){w(r,u(t.invalidToken.tokenSequence.prohibited,{firstToken:"[",secondToken:":"}));break}if("key"!==j(r)){w(r,u(t.invalidToken.termSequence.permitted,{firstTerm:t.symbols.colon,secondTerm:t.types.key}));break}if(O(r,["}","]"])){w(r,u(t.invalidToken.termSequence.permitted,{firstTerm:t.symbols.colon,secondTerm:t.types.value}));break}m.isValue=!0,g.json+=re;break;case"key":case"string":let se=re.charAt(0),ae=re.charAt(re.length-1);v.indexOf(se);if(-1===v.indexOf(se)&&-1!==v.indexOf(ae)){w(r,u(t.string.missingOpen,{quote:se}));break}if(-1===v.indexOf(ae)&&-1!==v.indexOf(se)){w(r,u(t.string.missingClose,{quote:se}));break}if(v.indexOf(se)>-1&&se!==ae){w(r,u(t.string.missingClose,{quote:se}));break}if("string"===ie&&-1===v.indexOf(se)&&-1===v.indexOf(ae)){w(r,u(t.string.mustBeWrappedByQuotes));break}if("key"===ie&&O(r,["}","]"])&&w(r,u(t.invalidToken.termSequence.permitted,{firstTerm:t.types.key,secondTerm:t.symbols.colon})),-1===v.indexOf(se)&&-1===v.indexOf(ae))for(var a=0;a<re.length&&!o;a++){const le=re.charAt(a);if(-1===x.indexOf(le)){w(r,u(t.string.nonAlphanumeric,{token:le}));break}}if("'"===se?re='"'+re.slice(1,-1)+'"':'"'!==se&&(re='"'+re+'"'),"key"===ie&&"key"===j(r)){if(r>0&&!isNaN(g.tokens_merge[r-1])){g.tokens_merge[r-1]+=g.tokens_merge[r],w(r,u(t.key.numberAndLetterMissingQuotes));break}w(r,u(t.key.spaceMissingQuotes));break}if("key"===ie&&!T(r,["{",","])){w(r,u(t.invalidToken.tokenSequence.permitted,{firstToken:ie,secondToken:["{",","]}));break}if("string"===ie&&!T(r,["[",":",","])){w(r,u(t.invalidToken.tokenSequence.permitted,{firstToken:ie,secondToken:["[",":",","]}));break}if("key"===ie&&m.isValue){w(r,u(t.string.unexpectedKey));break}if("string"===ie&&!m.isValue){w(r,u(t.key.unexpectedString));break}g.json+=re;break;case"number":case"primitive":if(T(r,["{"]))g.tokens_merge[r].type="key",ie=g.tokens_merge[r].type,re='"'+re+'"';else if("key"===j(r))g.tokens_merge[r].type="key",ie=g.tokens_merge[r].type;else if(!T(r,["[",":",","])){w(r,u(t.invalidToken.tokenSequence.permitted,{firstToken:ie,secondToken:["[",":",","]}));break}"key"!==ie&&(m.isValue||(g.tokens_merge[r].type="key",ie=g.tokens_merge[r].type,re='"'+re+'"')),"primitive"===ie&&"undefined"===re&&w(r,u(t.invalidToken.useInstead,{badToken:"undefined",goodToken:"null"})),g.json+=re}}let _="";for(r=0;r<g.json.length;r++){let ce=g.json.charAt(r),ue="";r+1<g.json.length&&(ue=g.json.charAt(r+1),"\\"===ce&&"'"===ue)?(_+=ue,r++):_+=ce}if(g.json=_,!o){const pe=Math.ceil(C.length/2);let he=0,de=!1;function fe(e){C.splice(e+1,1),C.splice(e,1),de||(de=!0)}for(;C.length>0;){de=!1;for(var c=0;c<C.length-1;c++){const ge=C[c].string+C[c+1].string;["[]","{}"].indexOf(ge)>-1&&fe(c)}if(he++,!de)break;if(he>=pe)break}if(C.length>0){const ke=C[0].string,be=C[0].i,ye="["===ke?"]":"}";s=C[0].line,w(be,u(t.brace["]"===ye?"square":"curly"].missingClose))}}if(!o&&-1===[void 0,""].indexOf(g.json))try{g.jsObject=JSON.parse(g.json)}catch(l){const ve=l.message,xe=ve.indexOf("position");if(-1===xe)throw new Error("Error parsing failed");const we=ve.substring(xe+9,ve.length),Oe=parseInt(we);let Te=0,je=0,Ce=!1,_e=1,Ee=!1;for(;Te<Oe&&!Ee&&(Ce=g.tokens_merge[je],"linebreak"===Ce.type&&_e++,-1===["space","linebreak"].indexOf(Ce.type)&&(Te+=Ce.string.length),!(Te>=Oe));)je++,g.tokens_merge[je+1]||(Ee=!0);s=_e;let Ae=0;for(let Se=0;Se<Ce.string.length;Se++){const qe=Ce.string.charAt(Se);"\\"===qe?Ae=Ae>0?Ae+1:1:(Ae%2===0&&0!==Ae||-1==="'\"bfnrt".indexOf(qe)&&w(je,u(t.invalidToken.unexpected,{token:"\\"})),Ae=0)}o||w(je,u(t.invalidToken.unexpected,{token:Ce.string}))}let E=1,A=0;function S(){for(var e=[],t=0;t<2*A;t++)e.push("&nbsp;");return e.join("")}function q(){return E++,A>0||arguments.length>0&&void 0!==arguments[0]&&arguments[0]?"<br>":""}function P(){return q(arguments.length>0&&void 0!==arguments[0]&&arguments[0])+S()}if(!o)for(r=0;r<g.tokens_merge.length;r++){const Pe=g.tokens_merge[r],De=Pe.string;switch(Pe.type){case"space":case"linebreak":break;case"string":case"number":case"primitive":case"error":g.markup+=(T(r,[",","["])?P():"")+n(r,Pe,A);break;case"key":g.markup+=P()+n(r,Pe,A);break;case"colon":g.markup+=n(r,Pe,A)+"&nbsp;";break;case"symbol":switch(De){case"[":case"{":g.markup+=(T(r,[":"])?"":P())+n(r,Pe,A),A++;break;case"]":case"}":A--;const Ke=r===g.tokens_merge.length-1,Be=r>0?["[","{"].indexOf(g.tokens_merge[r-1].string)>-1?"":P(Ke):"";g.markup+=Be+n(r,Pe,A);break;case",":g.markup+=n(r,Pe,A)}}}if(o){let Ne=1;function Me(e){let t=0;for(var n=0;n<e.length;n++)["\n","\r"].indexOf(e[n])>-1&&t++;return t}E=1;for(r=0;r<g.tokens_merge.length;r++){const Ue=g.tokens_merge[r],ze=Ue.type,Le=Ue.string;"linebreak"===ze&&E++,g.markup+=n(r,Ue,A),Ne+=Me(Le)}E++,Ne++,E<Ne&&(E=Ne)}for(r=0;r<g.tokens_merge.length;r++){let Ve=g.tokens_merge[r];g.indented+=Ve.string,-1===["space","linebreak"].indexOf(Ve.type)&&(g.tokens_plainText+=Ve.string)}if(o){"modifyErrorText"in this.props&&((h=this.props.modifyErrorText)&&"[object Function]"==={}.toString.call(h)&&(o.reason=this.props.modifyErrorText(o.reason)))}return{tokens:g.tokens_merge,noSpaces:g.tokens_plainText,indented:g.indented,json:g.json,jsObject:g.jsObject,markup:g.markup,lines:E,error:o}}var h;if(!("nodeType"in e)){let Fe={inputText:JSON.stringify(e),position:0,currentChar:"",tokenPrimary:"",tokenSecondary:"",brackets:[],isValue:!1,stringOpen:!1,stringStart:0,tokens:[]};function Ie(){return"\\"===Fe.currentChar}function We(){if(-1==="'\"".indexOf(Fe.currentChar))return!1;if(!Fe.stringOpen)return Qe(),Fe.stringStart=Fe.position,Fe.stringOpen=Fe.currentChar,!0;if(Fe.stringOpen===Fe.currentChar){Qe();return Ge(Fe.inputText.substring(Fe.stringStart,Fe.position+1)),Fe.stringOpen=!1,!0}return!1}function Re(){if(-1===":,{}[]".indexOf(Fe.currentChar))return!1;if(Fe.stringOpen)return!1;switch(Qe(),Ge(Fe.currentChar),Fe.currentChar){case":":return Fe.isValue=!0,!0;case"{":case"[":Fe.brackets.push(Fe.currentChar);break;case"}":case"]":Fe.brackets.pop()}return":"!==Fe.currentChar&&(Fe.isValue="["===Fe.brackets[Fe.brackets.length-1]),!0}function Qe(){return 0!==Fe.tokenSecondary.length&&(Fe.tokens.push(Fe.tokenSecondary),Fe.tokenSecondary="",!0)}function Ge(e){return 0!==e.length&&(Fe.tokens.push(e),!0)}for(r=0;r<Fe.inputText.length;r++){Fe.position=r,Fe.currentChar=Fe.inputText.charAt(Fe.position);const nt=Re(),rt=We(),it=Ie();nt||rt||it||Fe.stringOpen||(Fe.tokenSecondary+=Fe.currentChar)}let Je={brackets:[],isValue:!1,tokens:[]};Je.tokens=Fe.tokens.map((e=>{let t="",n="",r="";switch(e){case",":t="symbol",n=e,r=e,Je.isValue="["===Je.brackets[Je.brackets.length-1];break;case":":t="symbol",n=e,r=e,Je.isValue=!0;break;case"{":case"[":t="symbol",n=e,r=e,Je.brackets.push(e),Je.isValue="["===Je.brackets[Je.brackets.length-1];break;case"}":case"]":t="symbol",n=e,r=e,Je.brackets.pop(),Je.isValue="["===Je.brackets[Je.brackets.length-1];break;case"undefined":t="primitive",n=e,r=void 0;break;case"null":t="primitive",n=e,r=null;break;case"false":t="primitive",n=e,r=!1;break;case"true":t="primitive",n=e,r=!0;break;default:const o=e.charAt(0);function s(e){if(0===e.length)return e;if(['""',"''"].indexOf(e)>-1)return"''";let t=!1;for(var n=0;n<2;n++)if([e.charAt(0),e.charAt(e.length-1)].indexOf(['"',"'"][n])>-1){t=!0;break}t&&e.length>=2&&(e=e.slice(1,-1));const r=e.replace(/\w/g,""),i=(e.replace(/\W+/g,""),((e,t)=>{let n=!1;for(var r=0;r<t.length&&(0!==r||!isNaN(t.charAt(r)));r++)if(isNaN(t.charAt(r))){n=!0;break}return!(e.length>0||n)})(r,e)),o=(e=>{for(var t=0;t<e.length;t++)if(["'",'"'].indexOf(e.charAt(t))>-1)return!0;return!1})(r);if(o){let t="";const n=e.split("");for(var s=0;s<n.length;s++){let e=n[s];["'",'"'].indexOf(e)>-1&&(e="\\"+e),t+=e}e=t}return i?e:"'"+e+"'"}if("'\"".indexOf(o)>-1){if(t=Je.isValue?"string":"key","key"===t&&(n=s(e)),"string"===t){n="";const a=e.slice(1,-1).split("");for(var i=0;i<a.length;i++){let l=a[i];"'\"".indexOf(l)>-1&&(l="\\"+l),n+=l}n="'"+n+"'"}r=n;break}if(!isNaN(e)){t="number",n=e,r=Number(e);break}if(e.length>0&&!Je.isValue){t="key",n=e,n.indexOf(" ")>-1&&(n="'"+n+"'"),r=n;break}}return{type:t,string:n,value:r,depth:Je.brackets.length}}));let He="";for(r=0;r<Je.tokens.length;r++){He+=Je.tokens[r].string}function Xe(e){for(var t=[],n=0;n<2*e;n++)t.push(" ");return(e>0?"\n":"")+t.join("")}let Ye="";for(r=0;r<Je.tokens.length;r++){let ot=Je.tokens[r];switch(ot.string){case"[":case"{":const st=r<Je.tokens.length-1-1?Je.tokens[r+1]:"";-1==="}]".indexOf(st.string)?Ye+=ot.string+Xe(ot.depth):Ye+=ot.string;break;case"]":case"}":const at=r>0?Je.tokens[r-1]:"";-1==="[{".indexOf(at.string)?Ye+=Xe(ot.depth)+ot.string:Ye+=ot.string;break;case":":Ye+=ot.string+" ";break;case",":Ye+=ot.string+Xe(ot.depth);break;default:Ye+=ot.string}}let $e=1;function Ze(e){var t=[];e>0&&$e++;for(var n=0;n<2*e;n++)t.push("&nbsp;");return(e>0?"<br>":"")+t.join("")}let et="";const tt=Je.tokens.length-1;for(r=0;r<Je.tokens.length;r++){let lt=Je.tokens[r],ct=n(r,lt,lt.depth);switch(lt.string){case"{":case"[":const ut=r<Je.tokens.length-1-1?Je.tokens[r+1]:"";-1==="}]".indexOf(ut.string)?et+=ct+Ze(lt.depth):et+=ct;break;case"}":case"]":const pt=r>0?Je.tokens[r-1]:"";-1==="[{".indexOf(pt.string)?et+=Ze(lt.depth)+(tt===r?"<br>":"")+ct:et+=ct;break;case":":et+=ct+" ";break;case",":et+=ct+Ze(lt.depth);break;default:et+=ct}}return $e+=2,{tokens:Je.tokens,noSpaces:He,indented:Ye,json:JSON.stringify(e),jsObject:e,markup:et,lines:$e}}}}const d=h},3727:(e,t)=>{function n(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;var r=[];function i(e,t,n){let o,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(null!==n&&s<n)b(e)&&(o=Object.keys(e),o.forEach((r=>{i(e[r],t,n,s+1)})));else{if(null!==n&&s==n)return 0==n?void(r=i(e,t,null,s)):void(b(e)&&r.push(i(e,t,n,s+1)));switch(x(e)){case"array":var a=[];if(o=Object.keys(e),null===t||s<t)for(var l=0,c=o.length;l<c;l++){const r=o[l],c=e[r];a[r]=i(c,t,n,s+1)}return a;case"object":var u={};if(o=Object.keys(e),null===t||s<t)for(l=0,c=o.length;l<c;l++){const r=o[l],a=e[r];u[r]=i(a,t,n,s+1)}return u;case"string":return""+e;case"number":return 0+e;case"boolean":return!!e;case"null":return null;case"undefined":return}}}return null===n?i(e,t,n,0):(i(e,t,n,0),r)}function r(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if("string"===x(t)&&""!==t){var r=[];return function e(t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if((arguments.length>2&&void 0!==arguments[2]?arguments[2]:"")===n&&(r[r.length]=i),null!==o&&s>=o)return!1;if(b(t))for(var a=0,l=Object.keys(t),c=l.length;a<c;a++){const r=l[a];e(t[r],n,r,(""===i?i:i+".")+r,o,s+1)}}(e,t,"","",n),0!==(r=r.map((e=>"boolean"===x(e)||""===e?e:((e=e.split(".")).pop(),e=e.join("."))))).length&&r}}function i(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if("string"===x(t)&&""!==t){var r=function e(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(r===n)return r;var s=!1;if(null!==i&&o>=i)return s;if(b(t))for(var a=0,l=Object.keys(t),c=l.length;a<c;a++){const c=l[a],u=e(t[c],n,c,i,o+1);if(u){r=""===r?r:r+".",s=r+u;break}}return s}(e,t,"",n,0);return"boolean"===x(r)||""===r?r:((r=r.split(".")).pop(),r=r.join("."))}}function o(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!c(t=a(t)))return function e(t,n,r){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(k(t,[n]))return c(t[n]);if(null!==r&&i>=r)return!1;if(b(t))for(var o=0,s=Object.keys(t),a=s.length;o<a;o++){if(e(t[s[o]],n,r,i+1))return!0}return!1}(e,t,n)}function s(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!c(t=a(t)))return function e(t,n,r){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(k(t,[n]))return l(t[n]);if(null!==r&&i>=r)return!1;if(b(t))for(var o=0,s=Object.keys(t),a=s.length;o<a;o++){if(e(t[s[o]],n,r,i+1))return!0}return!1}(e,t,n,0)}function a(e){const t=u(e);return!(t>1)&&(1===t?Object.keys(e)[0]:0===t&&["string","number"].indexOf(x(e))>-1&&e)}function l(e){return!c(e)}function c(e){return!1===function(e){return b(e)?e:!(["null","undefined"].indexOf(x(e))>-1)&&(!(["",0,!1].indexOf(e)>-1)&&e)}(e)}function u(e){return-1===["array","object"].indexOf(x(e))?0:Object.keys(e).length}function p(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(y(e,t))return!0;if(b(t)&&v(e,t)&&k(e,Object.keys(t))){if(y(g(e,Object.keys(t)),t))return!0}if((null===n||r<n)&&b(e))for(var i=0,o=Object.keys(e),s=o.length;i<s;i++){if(p(e[o[i]],t,n,r+1))return!0}return!1}function h(e,t){var n=d(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null);if(!1===n)return;return n.map((n=>{if(""===n)return e;n=n.split("."),-1===["array","object"].indexOf(x(t))&&n.splice(-1,1);var r=e;return Array.isArray(n)?(n.forEach((e=>{r=r[e]})),r):r[n]}))}function d(e,t){var n=[];return function e(t,r){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0;if(b(r)&&v(t,r)&&k(t,Object.keys(r))){y(g(t,Object.keys(r)),r)&&(n[n.length]=i)}if(y(t,r)&&(n[n.length]=i),null!==o&&s>=o)return!1;if(b(t))for(var a=0,l=Object.keys(t),c=l.length;a<c;a++){const n=l[a];e(t[n],r,(""===i?i:i+".")+n,o,s+1)}}(e,t,"",arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,0),0!==n.length&&n}function f(e,t){return function e(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;if(b(n)&&v(t,n)&&k(t,Object.keys(n))){if(y(g(t,Object.keys(n)),n))return r}if(y(t,n))return r;var s=!1;if(null!==i&&o>=i)return s;if(b(t))for(var a=0,l=Object.keys(t),c=l.length;a<c;a++){const c=l[a],u=e(t[c],n,c,i,o+1);if(u){r=""===r?r:r+".",s=r+u;break}}return s}(e,t,"",arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,0)}function g(e,t){const n=x(e);if(-1===["array","object"].indexOf(n))return;if(0!==t.length){var r;switch(n){case"object":r={},t.forEach((t=>{t in e&&(r[t]=e[t])}));break;case"array":r=[],t.forEach((t=>{t in e&&r.push(e[t])}))}return r}}function k(e,t){const n=t.length;if(0===n||!b(e))return!1;const r=Object.keys(e);for(var i=!0,o=0;o<n;o++){const e=""+t[o];if(-1===r.indexOf(e)){i=!1;break}}return i}function b(e){return-1!==["array","object"].indexOf(x(e))&&0!==Object.keys(e).length}function y(e,t){const n=m(e,t);if(!1===n)return n;if(-1===["array","object"].indexOf(n))return e===t;const r=Object.keys(e),i=r.length;for(var o=!0,s=0;s<i;s++){const n=r[s],i=y(e[n],t[n]);if(!1===i){o=i;break}}return o}function m(e,t){const n=v(e,t);if(!1===n)return!1;if(["array","object"].indexOf(n)>-1){const n=Object.keys(e),i=Object.keys(t),o=n.length;if(o!==i.length)return!1;if(0===o)return!0;for(var r=0;r<o;r++)if(n[r]!==i[r])return!1}return n}function v(e,t){const n=x(e);return n===x(t)&&n}function x(e){if(null===e)return"null";const t=typeof e;return"object"===t&&Array.isArray(e)?"array":t}var w={getType:function(e){return x(e)},sameType:function(e,t){return v(e,t)},sameStructure:function(e,t){return m(e,t)},identical:function(e,t){return y(e,t)},isIterable:function(e){return b(e)},containsKeys:function(e,t){return k(e,t)},trim:function(e,t){return g(e,t)},locate:function(e,t,n){return f(e,t,n)},deepGet:function(e,t,n){return function(e,t){var n=f(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null);if(!1!==n){if(""===n)return e;n=n.split("."),-1===["array","object"].indexOf(x(t))&&n.splice(-1,1);var r=e;return Array.isArray(n)?(n.forEach((e=>{r=r[e]})),r):r[n]}}(e,t,n)},locateAll:function(e,t,n){return d(e,t,n)},deepFilter:function(e,t,n){return h(e,t,n)},exists:function(e,t,n){return p(e,t,n)},onlyExisting:function(e,t,n){return function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if("array"===x(t)){let r=[];return t.forEach((t=>{p(e,t,n)&&r.push(t)})),r}if("object"===x(t)){let r={};return Object.keys(t).forEach((i=>{let o=t[i];p(e,o,n)&&(r[i]=o)})),r}if(p(e,t,n))return t}(e,t,n)},onlyMissing:function(e,t,n){return function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if("array"===x(t)){let r=[];return t.forEach((t=>{p(e,t,n)||r.push(t)})),r}if("object"===x(t)){let r={};return Object.keys(t).forEach((i=>{let o=t[i];p(e,o,n)||(r[i]=o)})),r}if(!p(e,t,n))return t}(e,t,n)},length:function(e){return u(e)},isFalsy:function(e){return c(e)},isTruthy:function(e){return l(e)},foundTruthy:function(e,t,n){return s(e,t,n)},onlyTruthy:function(e,t,n,r){return function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if("array"===x(t)){let i=[];return t.forEach((t=>{const o=h(e,t);l(o)&&s(o,n,r)&&i.push(t)})),i}if("object"===x(t)){let i={};return Object.keys(t).forEach((o=>{const a=t[o],c=h(e,a);l(c)&&s(c,n,r)&&(i[o]=a)})),i}if(s(e,n,r))return t}(e,t,n,r)},foundFalsy:function(e,t,n){return o(e,t,n)},onlyFalsy:function(e,t,n,r){return function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if("array"===x(t)){let i=[];return t.forEach((t=>{const s=h(e,t);l(s)&&o(s,n,r)&&i.push(t)})),i}if("object"===x(t)){let i={};return Object.keys(t).forEach((s=>{const a=t[s],c=h(e,a);l(c)&&o(c,n,r)&&(i[s]=a)})),i}if(o(e,n,r))return t}(e,t,n,r)},countMatches:function(e,t,n,r){return function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;var i=null===n,o=null===r,s=d(e,t,i&&o?null:i||o?n||r:n<r?n:r);if(!1===s)return 0;if(null===n)return s.length;if("number"===x(n)){let e=0;return s.forEach((t=>{(t=t.split(".")).length===n&&e++})),e}}(e,t,n,r)},matchDepth:function(e,t,n){return function(e,t){var n=f(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null);return!1!==n&&(""===n?0:(n=n.split(".")).length)}(e,t,n)},maxDepth:function(e,t){return function(e){let t=0;return function e(n,r){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;t<i&&(t=i),null!==r&&i>=r||b(n)&&Object.keys(n).forEach((t=>{e(n[t],r,i+1)}))}(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null),t}(e,t)},locate_Key:function(e,t,n){return i(e,t,n)},deepGet_Key:function(e,t,n){return function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if("string"===x(t)&&""!==t){var r=i(e,t,n);if(!1!==r){""===r?r=t:r+="."+t,r=r.split(".");var o=e;return Array.isArray(r)?(r.forEach((e=>{o=o[e]})),o):o[r]}}}(e,t,n)},locateAll_Key:function(e,t,n){return r(e,t,n)},deepFilter_Key:function(e,t,n){return function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if("string"!==x(t))return;if(""===t)return;var i=r(e,t,n);if(!1===i)return;return i.map((n=>{if(!1!==n){""===n?n=t:n+="."+t,n=n.split(".");var r=e;return Array.isArray(n)?(n.forEach((e=>{r=r[e]})),r):r[n]}}))}(e,t,n)},deepClone:function(e,t,r){return n(e,t,r)},renameKey:function(e,t,n,r){return function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if("string"===x(t)&&"string"===x(n)&&""!==t&&""!==n){var i=!1;return function e(t,n,r,o){let s,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;switch(x(t)){case"array":var l=[];s=Object.keys(t);for(var c=0,u=s.length;c<u;c++){let i=s[c],u=t[i];l[i]=e(u,n,r,o,a+1)}return l;case"object":var p={};for(s=Object.keys(t),c=0,u=s.length;c<u;c++){let l=s[c],u=t[l];(null===o||a<o)&&(i||l===n&&(l=r,i=!0)),p[l]=e(u,n,r,o,a+1)}return p;case"string":return""+t;case"number":return 0+t;case"boolean":return!!t;case"null":return null;case"undefined":return}}(e,t,n,r,0)}}(e,t,n,r)},renameKeys:function(e,t,n,r){return function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if("string"===x(t)&&"string"===x(n)&&""!==t&&""!==n)return function e(t,n,r,i){let o,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;switch(x(t)){case"array":var a=[];o=Object.keys(t);for(var l=0,c=o.length;l<c;l++){let c=o[l],u=t[c];a[c]=e(u,n,r,i,s+1)}return a;case"object":var u={};for(o=Object.keys(t),l=0,c=o.length;l<c;l++){let a=o[l],c=t[a];(null===i||s<i)&&a===n&&(a=r),u[a]=e(c,n,r,i,s+1)}return u;case"string":return""+t;case"number":return 0+t;case"boolean":return!!t;case"null":return null;case"undefined":return}}(e,t,n,r,0)}(e,t,n,r)},deepRemove_Key:function(e,t,r){return function(e,t,r){if("string"!==x(t))return;if(""===t)return;let o=n(e);var s=i(o,t,r);if(!1===s)return o;""===s?s=t:s+="."+t,s=s.split(".");var a=o;return Array.isArray(s)||delete a[s],s.forEach(((e,t)=>{t<s.length-1?a=a[e]:delete a[e]})),o}(e,t,r)},deepRemoveAll_Key:function(e,t,i){return function(e,t,i){if("string"!==x(t))return;if(""===t)return;let o=n(e);var s=r(o,t,i);return s===[]||!1===s||s.forEach((e=>{""===e?e=t:e+="."+t,e=e.split(".");var n=o;Array.isArray(e)||delete n[e];for(var r=0;r<e.length;r++){var i=e[r];if(!(i in n))break;r<e.length-1?n=n[i]:delete n[i]}})),o}(e,t,i)}};e.exports=w},5012:(e,t)=>{"use strict";t.A=void 0;t.A={format:"{reason} at line {line}",symbols:{colon:"colon",comma:"comma",semicolon:"semicolon",slash:"slash",backslash:"backslash",brackets:{round:"round brackets",square:"square brackets",curly:"curly brackets",angle:"angle brackets"},period:"period",quotes:{single:"single quote",double:"double quote",grave:"grave accent"},space:"space",ampersand:"ampersand",asterisk:"asterisk",at:"at sign",equals:"equals sign",hash:"hash",percent:"percent",plus:"plus",minus:"minus",dash:"dash",hyphen:"hyphen",tilde:"tilde",underscore:"underscore",bar:"vertical bar"},types:{key:"key",value:"value",number:"number",string:"string",primitive:"primitive",boolean:"boolean",character:"character",integer:"integer",array:"array",float:"float"},invalidToken:{tokenSequence:{prohibited:"'{firstToken}' token cannot be followed by '{secondToken}' token(s)",permitted:"'{firstToken}' token can only be followed by '{secondToken}' token(s)"},termSequence:{prohibited:"A {firstTerm} cannot be followed by a {secondTerm}",permitted:"A {firstTerm} can only be followed by a {secondTerm}"},double:"'{token}' token cannot be followed by another '{token}' token",useInstead:"'{badToken}' token is not accepted. Use '{goodToken}' instead",unexpected:"Unexpected '{token}' token found"},brace:{curly:{missingOpen:"Missing '{' open curly brace",missingClose:"Open '{' curly brace is missing closing '}' curly brace",cannotWrap:"'{token}' token cannot be wrapped in '{}' curly braces"},square:{missingOpen:"Missing '[' open square brace",missingClose:"Open '[' square brace is missing closing ']' square brace",cannotWrap:"'{token}' token cannot be wrapped in '[]' square braces"}},string:{missingOpen:"Missing/invalid opening string '{quote}' token",missingClose:"Missing/invalid closing string '{quote}' token",mustBeWrappedByQuotes:"Strings must be wrapped by quotes",nonAlphanumeric:"Non-alphanumeric token '{token}' is not allowed outside string notation",unexpectedKey:"Unexpected key found at string position"},key:{numberAndLetterMissingQuotes:"Key beginning with number and containing letters must be wrapped by quotes",spaceMissingQuotes:"Key containing space must be wrapped by quotes",unexpectedString:"Unexpected string found at key position"},noTrailingOrLeadingComma:"Trailing or leading commas in arrays and objects are not permitted"}}}]);