1import { 2 require_react_dom 3} from "/node_modules/.vite/deps/chunk-VO7WHHPT.js?v=b359fb7d"; 4import { 5 require_react 6} from "/node_modules/.vite/deps/chunk-2PJBGHOA.js?v=b359fb7d"; 7import { 8 __commonJS, 9 __toESM 10} from "/node_modules/.vite/deps/chunk-W7S2ME4R.js?v=b359fb7d"; 11
vendor: 3,733 bytes, lines 12-124
12// node_modules/react-is/cjs/react-is.production.min.js 13var require_react_is_production_min = __commonJS({ 14 "node_modules/react-is/cjs/react-is.production.min.js"(exports) { 15 "use strict"; 16 var b = "function" === typeof Symbol && Symbol.for; 17 var c = b ? Symbol.for("react.element") : 60103; 18 var d = b ? Symbol.for("react.portal") : 60106; 19 var e = b ? Symbol.for("react.fragment") : 60107; 20 var f = b ? Symbol.for("react.strict_mode") : 60108; 21 var g = b ? Symbol.for("react.profiler") : 60114; 22 var h = b ? Symbol.for("react.provider") : 60109; 23 var k = b ? Symbol.for("react.context") : 60110; 24 var l = b ? Symbol.for("react.async_mode") : 60111; 25 var m = b ? Symbol.for("react.concurrent_mode") : 60111; 26 var n = b ? Symbol.for("react.forward_ref") : 60112; 27 var p = b ? Symbol.for("react.suspense") : 60113; 28 var q = b ? Symbol.for("react.suspense_list") : 60120; 29 var r = b ? Symbol.for("react.memo") : 60115; 30 var t = b ? Symbol.for("react.lazy") : 60116; 31 var v = b ? Symbol.for("react.block") : 60121; 32 var w2 = b ? Symbol.for("react.fundamental") : 60117; 33 var x = b ? Symbol.for("react.responder") : 60118; 34 var y = b ? Symbol.for("react.scope") : 60119; 35 function z(a) { 36 if ("object" === typeof a && null !== a) { 37 var u = a.$$typeof; 38 switch (u) { 39 case c: 40 switch (a = a.type, a) { 41 case l: 42 case m: 43 case e: 44 case g: 45 case f: 46 case p: 47 return a; 48 default: 49 switch (a = a && a.$$typeof, a) { 50 case k: 51 case n: 52 case t: 53 case r: 54 case h: 55 return a; 56 default: 57 return u; 58 } 59 } 60 case d: 61 return u; 62 } 63 } 64 } 65 function A(a) { 66 return z(a) === m; 67 } 68 exports.AsyncMode = l; 69 exports.ConcurrentMode = m; 70 exports.ContextConsumer = k; 71 exports.ContextProvider = h; 72 exports.Element = c; 73 exports.ForwardRef = n; 74 exports.Fragment = e; 75 exports.Lazy = t; 76 exports.Memo = r; 77 exports.Portal = d; 78 exports.Profiler = g; 79 exports.StrictMode = f; 80 exports.Suspense = p; 81 exports.isAsyncMode = function(a) { 82 return A(a) || z(a) === l; 83 }; 84 exports.isConcurrentMode = A; 85 exports.isContextConsumer = function(a) { 86 return z(a) === k; 87 }; 88 exports.isContextProvider = function(a) { 89 return z(a) === h; 90 }; 91 exports.isElement = function(a) { 92 return "object" === typeof a && null !== a && a.$$typeof === c; 93 }; 94 exports.isForwardRef = function(a) { 95 return z(a) === n; 96 }; 97 exports.isFragment = function(a) { 98 return z(a) === e; 99 }; 100 exports.isLazy = function(a) { 101 return z(a) === t; 102 }; 103 exports.isMemo = function(a) { 104 return z(a) === r; 105 }; 106 exports.isPortal = function(a) { 107 return z(a) === d; 108 }; 109 exports.isProfiler = function(a) { 110 return z(a) === g; 111 }; 112 exports.isStrictMode = function(a) { 113 return z(a) === f; 114 }; 115 exports.isSuspense = function(a) { 116 return z(a) === p; 117 }; 118 exports.isValidElementType = function(a) { 119 return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a === f || a === p || a === q || "object" === typeof a && null !== a && (a.$$typeof === t || a.$$typeof === r || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w2 || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v); 120 }; 121 exports.typeOf = z; 122 } 123}); 124
vendor: 273 bytes, lines 125-136
125// node_modules/react-is/index.js 126var require_react_is = __commonJS({ 127 "node_modules/react-is/index.js"(exports, module) { 128 "use strict"; 129 if (true) { 130 module.exports = require_react_is_production_min(); 131 } else { 132 module.exports = null; 133 } 134 } 135}); 136
vendor: 3,012 bytes, lines 137-224
137// node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js 138var require_hoist_non_react_statics_cjs = __commonJS({ 139 "node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"(exports, module) { 140 "use strict"; 141 var reactIs = require_react_is(); 142 var REACT_STATICS = { 143 childContextTypes: true, 144 contextType: true, 145 contextTypes: true, 146 defaultProps: true, 147 displayName: true, 148 getDefaultProps: true, 149 getDerivedStateFromError: true, 150 getDerivedStateFromProps: true, 151 mixins: true, 152 propTypes: true, 153 type: true 154 }; 155 var KNOWN_STATICS = { 156 name: true, 157 length: true, 158 prototype: true, 159 caller: true, 160 callee: true, 161 arguments: true, 162 arity: true 163 }; 164 var FORWARD_REF_STATICS = { 165 "$$typeof": true, 166 render: true, 167 defaultProps: true, 168 displayName: true, 169 propTypes: true 170 }; 171 var MEMO_STATICS = { 172 "$$typeof": true, 173 compare: true, 174 defaultProps: true, 175 displayName: true, 176 propTypes: true, 177 type: true 178 }; 179 var TYPE_STATICS = {}; 180 TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS; 181 TYPE_STATICS[reactIs.Memo] = MEMO_STATICS; 182 function getStatics(component) { 183 if (reactIs.isMemo(component)) { 184 return MEMO_STATICS; 185 } 186 return TYPE_STATICS[component["$$typeof"]] || REACT_STATICS; 187 } 188 var defineProperty = Object.defineProperty; 189 var getOwnPropertyNames = Object.getOwnPropertyNames; 190 var getOwnPropertySymbols = Object.getOwnPropertySymbols; 191 var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; 192 var getPrototypeOf = Object.getPrototypeOf; 193 var objectPrototype = Object.prototype; 194 function hoistNonReactStatics2(targetComponent, sourceComponent, blacklist) { 195 if (typeof sourceComponent !== "string") { 196 if (objectPrototype) { 197 var inheritedComponent = getPrototypeOf(sourceComponent); 198 if (inheritedComponent && inheritedComponent !== objectPrototype) { 199 hoistNonReactStatics2(targetComponent, inheritedComponent, blacklist); 200 } 201 } 202 var keys = getOwnPropertyNames(sourceComponent); 203 if (getOwnPropertySymbols) { 204 keys = keys.concat(getOwnPropertySymbols(sourceComponent)); 205 } 206 var targetStatics = getStatics(targetComponent); 207 var sourceStatics = getStatics(sourceComponent); 208 for (var i = 0; i < keys.length; ++i) { 209 var key = keys[i]; 210 if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) { 211 var descriptor = getOwnPropertyDescriptor(sourceComponent, key); 212 try { 213 defineProperty(targetComponent, key, descriptor); 214 } catch (e) { 215 } 216 } 217 } 218 } 219 return targetComponent; 220 } 221 module.exports = hoistNonReactStatics2; 222 } 223}); 224
vendor: 394 bytes, lines 225-234
225// node_modules/@babel/runtime/helpers/esm/typeof.js 226function _typeof(o) { 227 "@babel/helpers - typeof"; 228 return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) { 229 return typeof o2; 230 } : function(o2) { 231 return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2; 232 }, _typeof(o); 233} 234
vendor: 470 bytes, lines 235-248
235// node_modules/@babel/runtime/helpers/esm/toPrimitive.js 236function _toPrimitive(input, hint) { 237 if (_typeof(input) !== "object" || input === null) 238 return input; 239 var prim = input[Symbol.toPrimitive]; 240 if (prim !== void 0) { 241 var res = prim.call(input, hint || "default"); 242 if (_typeof(res) !== "object") 243 return res; 244 throw new TypeError("@@toPrimitive must return a primitive value."); 245 } 246 return (hint === "string" ? String : Number)(input); 247} 248
vendor: 191 bytes, lines 249-254
249// node_modules/@babel/runtime/helpers/esm/toPropertyKey.js 250function _toPropertyKey(arg) { 251 var key = _toPrimitive(arg, "string"); 252 return _typeof(key) === "symbol" ? key : String(key); 253} 254
vendor: 338 bytes, lines 255-270
255// node_modules/@babel/runtime/helpers/esm/defineProperty.js 256function _defineProperty(obj, key, value) { 257 key = _toPropertyKey(key); 258 if (key in obj) { 259 Object.defineProperty(obj, key, { 260 value, 261 enumerable: true, 262 configurable: true, 263 writable: true 264 }); 265 } else { 266 obj[key] = value; 267 } 268 return obj; 269} 270
vendor: 825 bytes, lines 271-293
271// node_modules/@babel/runtime/helpers/esm/objectSpread2.js 272function ownKeys(e, r) { 273 var t = Object.keys(e); 274 if (Object.getOwnPropertySymbols) { 275 var o = Object.getOwnPropertySymbols(e); 276 r && (o = o.filter(function(r2) { 277 return Object.getOwnPropertyDescriptor(e, r2).enumerable; 278 })), t.push.apply(t, o); 279 } 280 return t; 281} 282function _objectSpread2(e) { 283 for (var r = 1; r < arguments.length; r++) { 284 var t = null != arguments[r] ? arguments[r] : {}; 285 r % 2 ? ownKeys(Object(t), true).forEach(function(r2) { 286 _defineProperty(e, r2, t[r2]); 287 }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r2) { 288 Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2)); 289 }); 290 } 291 return e; 292} 293
vendor: 138 bytes, lines 294-299
294// node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js 295function _arrayWithHoles(arr) { 296 if (Array.isArray(arr)) 297 return arr; 298} 299
vendor: 768 bytes, lines 300-327
300// node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js 301function _iterableToArrayLimit(r, l) { 302 var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; 303 if (null != t) { 304 var e, n, i, u, a = [], f = true, o = false; 305 try { 306 if (i = (t = t.call(r)).next, 0 === l) { 307 if (Object(t) !== t) 308 return; 309 f = false; 310 } else 311 for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = true) 312 ; 313 } catch (r2) { 314 o = true, n = r2; 315 } finally { 316 try { 317 if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) 318 return; 319 } finally { 320 if (o) 321 throw n; 322 } 323 } 324 return a; 325 } 326} 327
vendor: 258 bytes, lines 328-336
328// node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js 329function _arrayLikeToArray(arr, len) { 330 if (len == null || len > arr.length) 331 len = arr.length; 332 for (var i = 0, arr2 = new Array(len); i < len; i++) 333 arr2[i] = arr[i]; 334 return arr2; 335} 336
vendor: 523 bytes, lines 337-351
337// node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js 338function _unsupportedIterableToArray(o, minLen) { 339 if (!o) 340 return; 341 if (typeof o === "string") 342 return _arrayLikeToArray(o, minLen); 343 var n = Object.prototype.toString.call(o).slice(8, -1); 344 if (n === "Object" && o.constructor) 345 n = o.constructor.name; 346 if (n === "Map" || n === "Set") 347 return Array.from(o); 348 if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) 349 return _arrayLikeToArray(o, minLen); 350} 351
vendor: 259 bytes, lines 352-356
352// node_modules/@babel/runtime/helpers/esm/nonIterableRest.js 353function _nonIterableRest() { 354 throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); 355} 356
vendor: 222 bytes, lines 357-361
357// node_modules/@babel/runtime/helpers/esm/slicedToArray.js 358function _slicedToArray(arr, i) { 359 return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); 360} 361
vendor: 420 bytes, lines 362-377
362// node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js 363function _objectWithoutPropertiesLoose(source, excluded) { 364 if (source == null) 365 return {}; 366 var target = {}; 367 var sourceKeys = Object.keys(source); 368 var key, i; 369 for (i = 0; i < sourceKeys.length; i++) { 370 key = sourceKeys[i]; 371 if (excluded.indexOf(key) >= 0) 372 continue; 373 target[key] = source[key]; 374 } 375 return target; 376} 377
vendor: 632 bytes, lines 378-397
378// node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js 379function _objectWithoutProperties(source, excluded) { 380 if (source == null) 381 return {}; 382 var target = _objectWithoutPropertiesLoose(source, excluded); 383 var key, i; 384 if (Object.getOwnPropertySymbols) { 385 var sourceSymbolKeys = Object.getOwnPropertySymbols(source); 386 for (i = 0; i < sourceSymbolKeys.length; i++) { 387 key = sourceSymbolKeys[i]; 388 if (excluded.indexOf(key) >= 0) 389 continue; 390 if (!Object.prototype.propertyIsEnumerable.call(source, key)) 391 continue; 392 target[key] = source[key]; 393 } 394 } 395 return target; 396} 397
vendor: 3,015 bytes, lines 398-444
398// node_modules/react-select/dist/useStateManager-7e1e8489.esm.js 399var import_react = __toESM(require_react()); 400var _excluded = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"]; 401function useStateManager(_ref3) { 402 var _ref$defaultInputValu = _ref3.defaultInputValue, defaultInputValue = _ref$defaultInputValu === void 0 ? "" : _ref$defaultInputValu, _ref$defaultMenuIsOpe = _ref3.defaultMenuIsOpen, defaultMenuIsOpen = _ref$defaultMenuIsOpe === void 0 ? false : _ref$defaultMenuIsOpe, _ref$defaultValue = _ref3.defaultValue, defaultValue = _ref$defaultValue === void 0 ? null : _ref$defaultValue, propsInputValue = _ref3.inputValue, propsMenuIsOpen = _ref3.menuIsOpen, propsOnChange = _ref3.onChange, propsOnInputChange = _ref3.onInputChange, propsOnMenuClose = _ref3.onMenuClose, propsOnMenuOpen = _ref3.onMenuOpen, propsValue = _ref3.value, restSelectProps = _objectWithoutProperties(_ref3, _excluded); 403 var _useState = (0, import_react.useState)(propsInputValue !== void 0 ? propsInputValue : defaultInputValue), _useState2 = _slicedToArray(_useState, 2), stateInputValue = _useState2[0], setStateInputValue = _useState2[1]; 404 var _useState3 = (0, import_react.useState)(propsMenuIsOpen !== void 0 ? propsMenuIsOpen : defaultMenuIsOpen), _useState4 = _slicedToArray(_useState3, 2), stateMenuIsOpen = _useState4[0], setStateMenuIsOpen = _useState4[1]; 405 var _useState5 = (0, import_react.useState)(propsValue !== void 0 ? propsValue : defaultValue), _useState6 = _slicedToArray(_useState5, 2), stateValue = _useState6[0], setStateValue = _useState6[1]; 406 var onChange2 = (0, import_react.useCallback)(function(value2, actionMeta) { 407 if (typeof propsOnChange === "function") { 408 propsOnChange(value2, actionMeta); 409 } 410 setStateValue(value2); 411 }, [propsOnChange]); 412 var onInputChange = (0, import_react.useCallback)(function(value2, actionMeta) { 413 var newValue; 414 if (typeof propsOnInputChange === "function") { 415 newValue = propsOnInputChange(value2, actionMeta); 416 } 417 setStateInputValue(newValue !== void 0 ? newValue : value2); 418 }, [propsOnInputChange]); 419 var onMenuOpen = (0, import_react.useCallback)(function() { 420 if (typeof propsOnMenuOpen === "function") { 421 propsOnMenuOpen(); 422 } 423 setStateMenuIsOpen(true); 424 }, [propsOnMenuOpen]); 425 var onMenuClose = (0, import_react.useCallback)(function() { 426 if (typeof propsOnMenuClose === "function") { 427 propsOnMenuClose(); 428 } 429 setStateMenuIsOpen(false); 430 }, [propsOnMenuClose]); 431 var inputValue = propsInputValue !== void 0 ? propsInputValue : stateInputValue; 432 var menuIsOpen = propsMenuIsOpen !== void 0 ? propsMenuIsOpen : stateMenuIsOpen; 433 var value = propsValue !== void 0 ? propsValue : stateValue; 434 return _objectSpread2(_objectSpread2({}, restSelectProps), {}, { 435 inputValue, 436 menuIsOpen, 437 onChange: onChange2, 438 onInputChange, 439 onMenuClose, 440 onMenuOpen, 441 value 442 }); 443} 444
vendor: 456 bytes, lines 445-460
445// node_modules/@babel/runtime/helpers/esm/extends.js 446function _extends() { 447 _extends = Object.assign ? Object.assign.bind() : function(target) { 448 for (var i = 1; i < arguments.length; i++) { 449 var source = arguments[i]; 450 for (var key in source) { 451 if (Object.prototype.hasOwnProperty.call(source, key)) { 452 target[key] = source[key]; 453 } 454 } 455 } 456 return target; 457 }; 458 return _extends.apply(this, arguments); 459} 460
vendor: 140 bytes, lines 461-464
461// node_modules/react-select/dist/react-select.esm.js 462var React5 = __toESM(require_react()); 463var import_react8 = __toESM(require_react()); 464
vendor: 224 bytes, lines 465-471
465// node_modules/@babel/runtime/helpers/esm/classCallCheck.js 466function _classCallCheck(instance, Constructor) { 467 if (!(instance instanceof Constructor)) { 468 throw new TypeError("Cannot call a class as a function"); 469 } 470} 471
vendor: 731 bytes, lines 472-493
472// node_modules/@babel/runtime/helpers/esm/createClass.js 473function _defineProperties(target, props) { 474 for (var i = 0; i < props.length; i++) { 475 var descriptor = props[i]; 476 descriptor.enumerable = descriptor.enumerable || false; 477 descriptor.configurable = true; 478 if ("value" in descriptor) 479 descriptor.writable = true; 480 Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); 481 } 482} 483function _createClass(Constructor, protoProps, staticProps) { 484 if (protoProps) 485 _defineProperties(Constructor.prototype, protoProps); 486 if (staticProps) 487 _defineProperties(Constructor, staticProps); 488 Object.defineProperty(Constructor, "prototype", { 489 writable: false 490 }); 491 return Constructor; 492} 493
vendor: 283 bytes, lines 494-502
494// node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js 495function _setPrototypeOf(o, p) { 496 _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) { 497 o2.__proto__ = p2; 498 return o2; 499 }; 500 return _setPrototypeOf(o, p); 501} 502
vendor: 561 bytes, lines 503-521
503// node_modules/@babel/runtime/helpers/esm/inherits.js 504function _inherits(subClass, superClass) { 505 if (typeof superClass !== "function" && superClass !== null) { 506 throw new TypeError("Super expression must either be null or a function"); 507 } 508 subClass.prototype = Object.create(superClass && superClass.prototype, { 509 constructor: { 510 value: subClass, 511 writable: true, 512 configurable: true 513 } 514 }); 515 Object.defineProperty(subClass, "prototype", { 516 writable: false 517 }); 518 if (superClass) 519 _setPrototypeOf(subClass, superClass); 520} 521
vendor: 289 bytes, lines 522-529
522// node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js 523function _getPrototypeOf(o) { 524 _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf2(o2) { 525 return o2.__proto__ || Object.getPrototypeOf(o2); 526 }; 527 return _getPrototypeOf(o); 528} 529
vendor: 442 bytes, lines 530-546
530// node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js 531function _isNativeReflectConstruct() { 532 if (typeof Reflect === "undefined" || !Reflect.construct) 533 return false; 534 if (Reflect.construct.sham) 535 return false; 536 if (typeof Proxy === "function") 537 return true; 538 try { 539 Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { 540 })); 541 return true; 542 } catch (e) { 543 return false; 544 } 545} 546
vendor: 246 bytes, lines 547-554
547// node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js 548function _assertThisInitialized(self) { 549 if (self === void 0) { 550 throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 551 } 552 return self; 553} 554
vendor: 378 bytes, lines 555-564
555// node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js 556function _possibleConstructorReturn(self, call) { 557 if (call && (_typeof(call) === "object" || typeof call === "function")) { 558 return call; 559 } else if (call !== void 0) { 560 throw new TypeError("Derived constructors may only return object or undefined"); 561 } 562 return _assertThisInitialized(self); 563} 564
vendor: 529 bytes, lines 565-579
565// node_modules/@babel/runtime/helpers/esm/createSuper.js 566function _createSuper(Derived) { 567 var hasNativeReflectConstruct = _isNativeReflectConstruct(); 568 return function _createSuperInternal() { 569 var Super = _getPrototypeOf(Derived), result; 570 if (hasNativeReflectConstruct) { 571 var NewTarget = _getPrototypeOf(this).constructor; 572 result = Reflect.construct(Super, arguments, NewTarget); 573 } else { 574 result = Super.apply(this, arguments); 575 } 576 return _possibleConstructorReturn(this, result); 577 }; 578} 579
vendor: 163 bytes, lines 580-585
580// node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js 581function _arrayWithoutHoles(arr) { 582 if (Array.isArray(arr)) 583 return _arrayLikeToArray(arr); 584} 585
vendor: 228 bytes, lines 586-591
586// node_modules/@babel/runtime/helpers/esm/iterableToArray.js 587function _iterableToArray(iter) { 588 if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) 589 return Array.from(iter); 590} 591
vendor: 258 bytes, lines 592-596
592// node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js 593function _nonIterableSpread() { 594 throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); 595} 596
vendor: 221 bytes, lines 597-601
597// node_modules/@babel/runtime/helpers/esm/toConsumableArray.js 598function _toConsumableArray(arr) { 599 return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); 600} 601
vendor: 143 bytes, lines 602-605
602// node_modules/react-select/dist/Select-aecb2a80.esm.js 603var React4 = __toESM(require_react()); 604var import_react6 = __toESM(require_react()); 605
vendor: 162 bytes, lines 606-609
606// node_modules/@emotion/react/dist/emotion-element-c39617d8.browser.esm.js 607var React2 = __toESM(require_react()); 608var import_react2 = __toESM(require_react()); 609
vendor: 3,092 bytes, lines 610-702
610// node_modules/@emotion/sheet/dist/emotion-sheet.browser.esm.js 611function sheetForTag(tag) { 612 if (tag.sheet) { 613 return tag.sheet; 614 } 615 for (var i = 0; i < document.styleSheets.length; i++) { 616 if (document.styleSheets[i].ownerNode === tag) { 617 return document.styleSheets[i]; 618 } 619 } 620} 621function createStyleElement(options2) { 622 var tag = document.createElement("style"); 623 tag.setAttribute("data-emotion", options2.key); 624 if (options2.nonce !== void 0) { 625 tag.setAttribute("nonce", options2.nonce); 626 } 627 tag.appendChild(document.createTextNode("")); 628 tag.setAttribute("data-s", ""); 629 return tag; 630} 631var StyleSheet = function() { 632 function StyleSheet2(options2) { 633 var _this = this; 634 this._insertTag = function(tag) { 635 var before; 636 if (_this.tags.length === 0) { 637 if (_this.insertionPoint) { 638 before = _this.insertionPoint.nextSibling; 639 } else if (_this.prepend) { 640 before = _this.container.firstChild; 641 } else { 642 before = _this.before; 643 } 644 } else { 645 before = _this.tags[_this.tags.length - 1].nextSibling; 646 } 647 _this.container.insertBefore(tag, before); 648 _this.tags.push(tag); 649 }; 650 this.isSpeedy = options2.speedy === void 0 ? true : options2.speedy; 651 this.tags = []; 652 this.ctr = 0; 653 this.nonce = options2.nonce; 654 this.key = options2.key; 655 this.container = options2.container; 656 this.prepend = options2.prepend; 657 this.insertionPoint = options2.insertionPoint; 658 this.before = null; 659 } 660 var _proto = StyleSheet2.prototype; 661 _proto.hydrate = function hydrate(nodes) { 662 nodes.forEach(this._insertTag); 663 }; 664 _proto.insert = function insert(rule) { 665 if (this.ctr % (this.isSpeedy ? 65e3 : 1) === 0) { 666 this._insertTag(createStyleElement(this)); 667 } 668 var tag = this.tags[this.tags.length - 1]; 669 if (false) { 670 var isImportRule = rule.charCodeAt(0) === 64 && rule.charCodeAt(1) === 105; 671 if (isImportRule && this._alreadyInsertedOrderInsensitiveRule) { 672 console.error("You're attempting to insert the following rule:\n" + rule + "\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."); 673 } 674 this._alreadyInsertedOrderInsensitiveRule = this._alreadyInsertedOrderInsensitiveRule || !isImportRule; 675 } 676 if (this.isSpeedy) { 677 var sheet = sheetForTag(tag); 678 try { 679 sheet.insertRule(rule, sheet.cssRules.length); 680 } catch (e) { 681 if (false) { 682 console.error('There was a problem inserting the following rule: "' + rule + '"', e); 683 } 684 } 685 } else { 686 tag.appendChild(document.createTextNode(rule)); 687 } 688 this.ctr++; 689 }; 690 _proto.flush = function flush() { 691 this.tags.forEach(function(tag) { 692 return tag.parentNode && tag.parentNode.removeChild(tag); 693 }); 694 this.tags = []; 695 this.ctr = 0; 696 if (false) { 697 this._alreadyInsertedOrderInsensitiveRule = false; 698 } 699 }; 700 return StyleSheet2; 701}(); 702
vendor: 243 bytes, lines 703-713
703// node_modules/stylis/src/Enum.js 704var MS = "-ms-"; 705var MOZ = "-moz-"; 706var WEBKIT = "-webkit-"; 707var COMMENT = "comm"; 708var RULESET = "rule"; 709var DECLARATION = "decl"; 710var IMPORT = "@import"; 711var KEYFRAMES = "@keyframes"; 712var LAYER = "@layer"; 713
vendor: 1,000 bytes, lines 714-751
714// node_modules/stylis/src/Utility.js 715var abs = Math.abs; 716var from = String.fromCharCode; 717var assign = Object.assign; 718function hash(value, length2) { 719 return charat(value, 0) ^ 45 ? (((length2 << 2 ^ charat(value, 0)) << 2 ^ charat(value, 1)) << 2 ^ charat(value, 2)) << 2 ^ charat(value, 3) : 0; 720} 721function trim(value) { 722 return value.trim(); 723} 724function match(value, pattern) { 725 return (value = pattern.exec(value)) ? value[0] : value; 726} 727function replace(value, pattern, replacement) { 728 return value.replace(pattern, replacement); 729} 730function indexof(value, search) { 731 return value.indexOf(search); 732} 733function charat(value, index2) { 734 return value.charCodeAt(index2) | 0; 735} 736function substr(value, begin, end) { 737 return value.slice(begin, end); 738} 739function strlen(value) { 740 return value.length; 741} 742function sizeof(value) { 743 return value.length; 744} 745function append(value, array) { 746 return array.push(value), value; 747} 748function combine(array, callback) { 749 return array.map(callback).join(""); 750} 751
vendor: 2,915 bytes, lines 752-877
752// node_modules/stylis/src/Tokenizer.js 753var line = 1; 754var column = 1; 755var length = 0; 756var position = 0; 757var character = 0; 758var characters = ""; 759function node(value, root, parent, type, props, children, length2) { 760 return { value, root, parent, type, props, children, line, column, length: length2, return: "" }; 761} 762function copy(root, props) { 763 return assign(node("", null, null, "", null, null, 0), root, { length: -root.length }, props); 764} 765function char() { 766 return character; 767} 768function prev() { 769 character = position > 0 ? charat(characters, --position) : 0; 770 if (column--, character === 10) 771 column = 1, line--; 772 return character; 773} 774function next() { 775 character = position < length ? charat(characters, position++) : 0; 776 if (column++, character === 10) 777 column = 1, line++; 778 return character; 779} 780function peek() { 781 return charat(characters, position); 782} 783function caret() { 784 return position; 785} 786function slice(begin, end) { 787 return substr(characters, begin, end); 788} 789function token(type) { 790 switch (type) { 791 case 0: 792 case 9: 793 case 10: 794 case 13: 795 case 32: 796 return 5; 797 case 33: 798 case 43: 799 case 44: 800 case 47: 801 case 62: 802 case 64: 803 case 126: 804 case 59: 805 case 123: 806 case 125: 807 return 4; 808 case 58: 809 return 3; 810 case 34: 811 case 39: 812 case 40: 813 case 91: 814 return 2; 815 case 41: 816 case 93: 817 return 1; 818 } 819 return 0; 820} 821function alloc(value) { 822 return line = column = 1, length = strlen(characters = value), position = 0, []; 823} 824function dealloc(value) { 825 return characters = "", value; 826} 827function delimit(type) { 828 return trim(slice(position - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type))); 829} 830function whitespace(type) { 831 while (character = peek()) 832 if (character < 33) 833 next(); 834 else 835 break; 836 return token(type) > 2 || token(character) > 3 ? "" : " "; 837} 838function escaping(index2, count) { 839 while (--count && next()) 840 if (character < 48 || character > 102 || character > 57 && character < 65 || character > 70 && character < 97) 841 break; 842 return slice(index2, caret() + (count < 6 && peek() == 32 && next() == 32)); 843} 844function delimiter(type) { 845 while (next()) 846 switch (character) { 847 case type: 848 return position; 849 case 34: 850 case 39: 851 if (type !== 34 && type !== 39) 852 delimiter(character); 853 break; 854 case 40: 855 if (type === 41) 856 delimiter(type); 857 break; 858 case 92: 859 next(); 860 break; 861 } 862 return position; 863} 864function commenter(type, index2) { 865 while (next()) 866 if (type + character === 47 + 10) 867 break; 868 else if (type + character === 42 + 42 && peek() === 47) 869 break; 870 return "/*" + slice(index2, position - 1) + "*" + from(type === 47 ? type : next()); 871} 872function identifier(index2) { 873 while (!token(peek())) 874 next(); 875 return slice(index2, position); 876} 877
vendor: 5,054 bytes, lines 878-1010
878// node_modules/stylis/src/Parser.js 879function compile(value) { 880 return dealloc(parse("", null, null, null, [""], value = alloc(value), 0, [0], value)); 881} 882function parse(value, root, parent, rule, rules, rulesets, pseudo, points, declarations) { 883 var index2 = 0; 884 var offset2 = 0; 885 var length2 = pseudo; 886 var atrule = 0; 887 var property = 0; 888 var previous = 0; 889 var variable = 1; 890 var scanning = 1; 891 var ampersand = 1; 892 var character2 = 0; 893 var type = ""; 894 var props = rules; 895 var children = rulesets; 896 var reference = rule; 897 var characters2 = type; 898 while (scanning) 899 switch (previous = character2, character2 = next()) { 900 case 40: 901 if (previous != 108 && charat(characters2, length2 - 1) == 58) { 902 if (indexof(characters2 += replace(delimit(character2), "&", "&\f"), "&\f") != -1) 903 ampersand = -1; 904 break; 905 } 906 case 34: 907 case 39: 908 case 91: 909 characters2 += delimit(character2); 910 break; 911 case 9: 912 case 10: 913 case 13: 914 case 32: 915 characters2 += whitespace(previous); 916 break; 917 case 92: 918 characters2 += escaping(caret() - 1, 7); 919 continue; 920 case 47: 921 switch (peek()) { 922 case 42: 923 case 47: 924 append(comment(commenter(next(), caret()), root, parent), declarations); 925 break; 926 default: 927 characters2 += "/"; 928 } 929 break; 930 case 123 * variable: 931 points[index2++] = strlen(characters2) * ampersand; 932 case 125 * variable: 933 case 59: 934 case 0: 935 switch (character2) { 936 case 0: 937 case 125: 938 scanning = 0; 939 case 59 + offset2: 940 if (ampersand == -1) 941 characters2 = replace(characters2, /\f/g, ""); 942 if (property > 0 && strlen(characters2) - length2) 943 append(property > 32 ? declaration(characters2 + ";", rule, parent, length2 - 1) : declaration(replace(characters2, " ", "") + ";", rule, parent, length2 - 2), declarations); 944 break; 945 case 59: 946 characters2 += ";"; 947 default: 948 append(reference = ruleset(characters2, root, parent, index2, offset2, rules, points, type, props = [], children = [], length2), rulesets); 949 if (character2 === 123) 950 if (offset2 === 0) 951 parse(characters2, root, reference, reference, props, rulesets, length2, points, children); 952 else 953 switch (atrule === 99 && charat(characters2, 3) === 110 ? 100 : atrule) { 954 case 100: 955 case 108: 956 case 109: 957 case 115: 958 parse(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length2), children), rules, children, length2, points, rule ? props : children); 959 break; 960 default: 961 parse(characters2, reference, reference, reference, [""], children, 0, points, children); 962 } 963 } 964 index2 = offset2 = property = 0, variable = ampersand = 1, type = characters2 = "", length2 = pseudo; 965 break; 966 case 58: 967 length2 = 1 + strlen(characters2), property = previous; 968 default: 969 if (variable < 1) { 970 if (character2 == 123) 971 --variable; 972 else if (character2 == 125 && variable++ == 0 && prev() == 125) 973 continue; 974 } 975 switch (characters2 += from(character2), character2 * variable) { 976 case 38: 977 ampersand = offset2 > 0 ? 1 : (characters2 += "\f", -1); 978 break; 979 case 44: 980 points[index2++] = (strlen(characters2) - 1) * ampersand, ampersand = 1; 981 break; 982 case 64: 983 if (peek() === 45) 984 characters2 += delimit(next()); 985 atrule = peek(), offset2 = length2 = strlen(type = characters2 += identifier(caret())), character2++; 986 break; 987 case 45: 988 if (previous === 45 && strlen(characters2) == 2) 989 variable = 0; 990 } 991 } 992 return rulesets; 993} 994function ruleset(value, root, parent, index2, offset2, rules, points, type, props, children, length2) { 995 var post = offset2 - 1; 996 var rule = offset2 === 0 ? rules : [""]; 997 var size2 = sizeof(rule); 998 for (var i = 0, j = 0, k = 0; i < index2; ++i) 999 for (var x = 0, y = substr(value, post + 1, post = abs(j = points[i])), z = value; x < size2; ++x) 1000 if (z = trim(j > 0 ? rule[x] + " " + y : replace(y, /&\f/g, rule[x]))) 1001 props[k++] = z; 1002 return node(value, root, parent, offset2 === 0 ? RULESET : type, props, children, length2); 1003} 1004function comment(value, root, parent) { 1005 return node(value, root, parent, COMMENT, from(char()), substr(value, 2, -2), 0); 1006} 1007function declaration(value, root, parent, length2) { 1008 return node(value, root, parent, DECLARATION, substr(value, 0, length2), substr(value, length2 + 1, -1), length2); 1009} 1010
vendor: 860 bytes, lines 1011-1036
1011// node_modules/stylis/src/Serializer.js 1012function serialize(children, callback) { 1013 var output = ""; 1014 var length2 = sizeof(children); 1015 for (var i = 0; i < length2; i++) 1016 output += callback(children[i], i, children, callback) || ""; 1017 return output; 1018} 1019function stringify(element, index2, children, callback) { 1020 switch (element.type) { 1021 case LAYER: 1022 if (element.children.length) 1023 break; 1024 case IMPORT: 1025 case DECLARATION: 1026 return element.return = element.return || element.value; 1027 case COMMENT: 1028 return ""; 1029 case KEYFRAMES: 1030 return element.return = element.value + "{" + serialize(element.children, callback) + "}"; 1031 case RULESET: 1032 element.value = element.props.join(","); 1033 } 1034 return strlen(children = serialize(element.children, callback)) ? element.return = element.value + "{" + children + "}" : ""; 1035} 1036
vendor: 489 bytes, lines 1037-1055
1037// node_modules/stylis/src/Middleware.js 1038function middleware(collection) { 1039 var length2 = sizeof(collection); 1040 return function(element, index2, children, callback) { 1041 var output = ""; 1042 for (var i = 0; i < length2; i++) 1043 output += collection[i](element, index2, children, callback) || ""; 1044 return output; 1045 }; 1046} 1047function rulesheet(callback) { 1048 return function(element) { 1049 if (!element.root) { 1050 if (element = element.return) 1051 callback(element); 1052 } 1053 }; 1054} 1055
vendor: 325 bytes, lines 1056-1068
1056// node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js 1057var weakMemoize = function weakMemoize2(func) { 1058 var cache = /* @__PURE__ */ new WeakMap(); 1059 return function(arg) { 1060 if (cache.has(arg)) { 1061 return cache.get(arg); 1062 } 1063 var ret = func(arg); 1064 cache.set(arg, ret); 1065 return ret; 1066 }; 1067}; 1068
vendor: 250 bytes, lines 1069-1078
1069// node_modules/@emotion/memoize/dist/emotion-memoize.esm.js 1070function memoize(fn) { 1071 var cache = /* @__PURE__ */ Object.create(null); 1072 return function(arg) { 1073 if (cache[arg] === void 0) 1074 cache[arg] = fn(arg); 1075 return cache[arg]; 1076 }; 1077} 1078
vendor: 11,214 bytes, lines 1079-1416
1079// node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js 1080var identifierWithPointTracking = function identifierWithPointTracking2(begin, points, index2) { 1081 var previous = 0; 1082 var character2 = 0; 1083 while (true) { 1084 previous = character2; 1085 character2 = peek(); 1086 if (previous === 38 && character2 === 12) { 1087 points[index2] = 1; 1088 } 1089 if (token(character2)) { 1090 break; 1091 } 1092 next(); 1093 } 1094 return slice(begin, position); 1095}; 1096var toRules = function toRules2(parsed, points) { 1097 var index2 = -1; 1098 var character2 = 44; 1099 do { 1100 switch (token(character2)) { 1101 case 0: 1102 if (character2 === 38 && peek() === 12) { 1103 points[index2] = 1; 1104 } 1105 parsed[index2] += identifierWithPointTracking(position - 1, points, index2); 1106 break; 1107 case 2: 1108 parsed[index2] += delimit(character2); 1109 break; 1110 case 4: 1111 if (character2 === 44) { 1112 parsed[++index2] = peek() === 58 ? "&\f" : ""; 1113 points[index2] = parsed[index2].length; 1114 break; 1115 } 1116 default: 1117 parsed[index2] += from(character2); 1118 } 1119 } while (character2 = next()); 1120 return parsed; 1121}; 1122var getRules = function getRules2(value, points) { 1123 return dealloc(toRules(alloc(value), points)); 1124}; 1125var fixedElements = /* @__PURE__ */ new WeakMap(); 1126var compat = function compat2(element) { 1127 if (element.type !== "rule" || !element.parent || // positive .length indicates that this rule contains pseudo 1128 // negative .length indicates that this rule has been already prefixed 1129 element.length < 1) { 1130 return; 1131 } 1132 var value = element.value, parent = element.parent; 1133 var isImplicitRule = element.column === parent.column && element.line === parent.line; 1134 while (parent.type !== "rule") { 1135 parent = parent.parent; 1136 if (!parent) 1137 return; 1138 } 1139 if (element.props.length === 1 && value.charCodeAt(0) !== 58 && !fixedElements.get(parent)) { 1140 return; 1141 } 1142 if (isImplicitRule) { 1143 return; 1144 } 1145 fixedElements.set(element, true); 1146 var points = []; 1147 var rules = getRules(value, points); 1148 var parentRules = parent.props; 1149 for (var i = 0, k = 0; i < rules.length; i++) { 1150 for (var j = 0; j < parentRules.length; j++, k++) { 1151 element.props[k] = points[i] ? rules[i].replace(/&\f/g, parentRules[j]) : parentRules[j] + " " + rules[i]; 1152 } 1153 } 1154}; 1155var removeLabel = function removeLabel2(element) { 1156 if (element.type === "decl") { 1157 var value = element.value; 1158 if ( 1159 // charcode for l 1160 value.charCodeAt(0) === 108 && // charcode for b 1161 value.charCodeAt(2) === 98 1162 ) { 1163 element["return"] = ""; 1164 element.value = ""; 1165 } 1166 } 1167}; 1168function prefix2(value, length2) { 1169 switch (hash(value, length2)) { 1170 case 5103: 1171 return WEBKIT + "print-" + value + value; 1172 case 5737: 1173 case 4201: 1174 case 3177: 1175 case 3433: 1176 case 1641: 1177 case 4457: 1178 case 2921: 1179 case 5572: 1180 case 6356: 1181 case 5844: 1182 case 3191: 1183 case 6645: 1184 case 3005: 1185 case 6391: 1186 case 5879: 1187 case 5623: 1188 case 6135: 1189 case 4599: 1190 case 4855: 1191 case 4215: 1192 case 6389: 1193 case 5109: 1194 case 5365: 1195 case 5621: 1196 case 3829: 1197 return WEBKIT + value + value; 1198 case 5349: 1199 case 4246: 1200 case 4810: 1201 case 6968: 1202 case 2756: 1203 return WEBKIT + value + MOZ + value + MS + value + value; 1204 case 6828: 1205 case 4268: 1206 return WEBKIT + value + MS + value + value; 1207 case 6165: 1208 return WEBKIT + value + MS + "flex-" + value + value; 1209 case 5187: 1210 return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + "box-$1$2" + MS + "flex-$1$2") + value; 1211 case 5443: 1212 return WEBKIT + value + MS + "flex-item-" + replace(value, /flex-|-self/, "") + value; 1213 case 4675: 1214 return WEBKIT + value + MS + "flex-line-pack" + replace(value, /align-content|flex-|-self/, "") + value; 1215 case 5548: 1216 return WEBKIT + value + MS + replace(value, "shrink", "negative") + value; 1217 case 5292: 1218 return WEBKIT + value + MS + replace(value, "basis", "preferred-size") + value; 1219 case 6060: 1220 return WEBKIT + "box-" + replace(value, "-grow", "") + WEBKIT + value + MS + replace(value, "grow", "positive") + value; 1221 case 4554: 1222 return WEBKIT + replace(value, /([^-])(transform)/g, "$1" + WEBKIT + "$2") + value; 1223 case 6187: 1224 return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + "$1"), /(image-set)/, WEBKIT + "$1"), value, "") + value; 1225 case 5495: 1226 case 3959: 1227 return replace(value, /(image-set\([^]*)/, WEBKIT + "$1$`$1"); 1228 case 4968: 1229 return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + "box-pack:$3" + MS + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + WEBKIT + value + value; 1230 case 4095: 1231 case 3583: 1232 case 4068: 1233 case 2532: 1234 return replace(value, /(.+)-inline(.+)/, WEBKIT + "$1$2") + value; 1235 case 8116: 1236 case 7059: 1237 case 5753: 1238 case 5535: 1239 case 5445: 1240 case 5701: 1241 case 4933: 1242 case 4677: 1243 case 5533: 1244 case 5789: 1245 case 5021: 1246 case 4765: 1247 if (strlen(value) - 1 - length2 > 6) 1248 switch (charat(value, length2 + 1)) { 1249 case 109: 1250 if (charat(value, length2 + 4) !== 45) 1251 break; 1252 case 102: 1253 return replace(value, /(.+:)(.+)-([^]+)/, "$1" + WEBKIT + "$2-$3$1" + MOZ + (charat(value, length2 + 3) == 108 ? "$3" : "$2-$3")) + value; 1254 case 115: 1255 return ~indexof(value, "stretch") ? prefix2(replace(value, "stretch", "fill-available"), length2) + value : value; 1256 } 1257 break; 1258 case 4949: 1259 if (charat(value, length2 + 1) !== 115) 1260 break; 1261 case 6444: 1262 switch (charat(value, strlen(value) - 3 - (~indexof(value, "!important") && 10))) { 1263 case 107: 1264 return replace(value, ":", ":" + WEBKIT) + value; 1265 case 101: 1266 return replace(value, /(.+:)([^;!]+)(;|!.+)?/, "$1" + WEBKIT + (charat(value, 14) === 45 ? "inline-" : "") + "box$3$1" + WEBKIT + "$2$3$1" + MS + "$2box$3") + value; 1267 } 1268 break; 1269 case 5936: 1270 switch (charat(value, length2 + 11)) { 1271 case 114: 1272 return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb") + value; 1273 case 108: 1274 return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb-rl") + value; 1275 case 45: 1276 return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "lr") + value; 1277 } 1278 return WEBKIT + value + MS + value + value; 1279 } 1280 return value; 1281} 1282var prefixer = function prefixer2(element, index2, children, callback) { 1283 if (element.length > -1) { 1284 if (!element["return"]) 1285 switch (element.type) { 1286 case DECLARATION: 1287 element["return"] = prefix2(element.value, element.length); 1288 break; 1289 case KEYFRAMES: 1290 return serialize([copy(element, { 1291 value: replace(element.value, "@", "@" + WEBKIT) 1292 })], callback); 1293 case RULESET: 1294 if (element.length) 1295 return combine(element.props, function(value) { 1296 switch (match(value, /(::plac\w+|:read-\w+)/)) { 1297 case ":read-only": 1298 case ":read-write": 1299 return serialize([copy(element, { 1300 props: [replace(value, /:(read-\w+)/, ":" + MOZ + "$1")] 1301 })], callback); 1302 case "::placeholder": 1303 return serialize([copy(element, { 1304 props: [replace(value, /:(plac\w+)/, ":" + WEBKIT + "input-$1")] 1305 }), copy(element, { 1306 props: [replace(value, /:(plac\w+)/, ":" + MOZ + "$1")] 1307 }), copy(element, { 1308 props: [replace(value, /:(plac\w+)/, MS + "input-$1")] 1309 })], callback); 1310 } 1311 return ""; 1312 }); 1313 } 1314 } 1315}; 1316var defaultStylisPlugins = [prefixer]; 1317var createCache = function createCache2(options2) { 1318 var key = options2.key; 1319 if (false) { 1320 throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\nIf multiple caches share the same key they might \"fight\" for each other's style elements."); 1321 } 1322 if (key === "css") { 1323 var ssrStyles = document.querySelectorAll("style[data-emotion]:not([data-s])"); 1324 Array.prototype.forEach.call(ssrStyles, function(node2) { 1325 var dataEmotionAttribute = node2.getAttribute("data-emotion"); 1326 if (dataEmotionAttribute.indexOf(" ") === -1) { 1327 return; 1328 } 1329 document.head.appendChild(node2); 1330 node2.setAttribute("data-s", ""); 1331 }); 1332 } 1333 var stylisPlugins = options2.stylisPlugins || defaultStylisPlugins; 1334 if (false) { 1335 if (/[^a-z-]/.test(key)) { 1336 throw new Error('Emotion key must only contain lower case alphabetical characters and - but "' + key + '" was passed'); 1337 } 1338 } 1339 var inserted = {}; 1340 var container; 1341 var nodesToHydrate = []; 1342 { 1343 container = options2.container || document.head; 1344 Array.prototype.forEach.call( 1345 // this means we will ignore elements which don't have a space in them which 1346 // means that the style elements we're looking at are only Emotion 11 server-rendered style elements 1347 document.querySelectorAll('style[data-emotion^="' + key + ' "]'), 1348 function(node2) { 1349 var attrib = node2.getAttribute("data-emotion").split(" "); 1350 for (var i = 1; i < attrib.length; i++) { 1351 inserted[attrib[i]] = true; 1352 } 1353 nodesToHydrate.push(node2); 1354 } 1355 ); 1356 } 1357 var _insert; 1358 var omnipresentPlugins = [compat, removeLabel]; 1359 if (false) { 1360 omnipresentPlugins.push(createUnsafeSelectorsAlarm({ 1361 get compat() { 1362 return cache.compat; 1363 } 1364 }), incorrectImportAlarm); 1365 } 1366 { 1367 var currentSheet; 1368 var finalizingPlugins = [stringify, false ? function(element) { 1369 if (!element.root) { 1370 if (element["return"]) { 1371 currentSheet.insert(element["return"]); 1372 } else if (element.value && element.type !== COMMENT) { 1373 currentSheet.insert(element.value + "{}"); 1374 } 1375 } 1376 } : rulesheet(function(rule) { 1377 currentSheet.insert(rule); 1378 })]; 1379 var serializer = middleware(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins)); 1380 var stylis = function stylis2(styles) { 1381 return serialize(compile(styles), serializer); 1382 }; 1383 _insert = function insert(selector, serialized, sheet, shouldCache) { 1384 currentSheet = sheet; 1385 if (false) { 1386 currentSheet = { 1387 insert: function insert2(rule) { 1388 sheet.insert(rule + serialized.map); 1389 } 1390 }; 1391 } 1392 stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles); 1393 if (shouldCache) { 1394 cache.inserted[serialized.name] = true; 1395 } 1396 }; 1397 } 1398 var cache = { 1399 key, 1400 sheet: new StyleSheet({ 1401 key, 1402 container, 1403 nonce: options2.nonce, 1404 speedy: options2.speedy, 1405 prepend: options2.prepend, 1406 insertionPoint: options2.insertionPoint 1407 }), 1408 nonce: options2.nonce, 1409 inserted, 1410 registered: {}, 1411 insert: _insert 1412 }; 1413 cache.sheet.hydrate(nodesToHydrate); 1414 return cache; 1415}; 1416
vendor: 181 bytes, lines 1417-1419
1417// node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js 1418var import_hoist_non_react_statics = __toESM(require_hoist_non_react_statics_cjs()); 1419
vendor: 1,757 bytes, lines 1420-1461
1420// node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js 1421var isBrowser = true; 1422function getRegisteredStyles(registered, registeredStyles, classNames2) { 1423 var rawClassName = ""; 1424 classNames2.split(" ").forEach(function(className) { 1425 if (registered[className] !== void 0) { 1426 registeredStyles.push(registered[className] + ";"); 1427 } else { 1428 rawClassName += className + " "; 1429 } 1430 }); 1431 return rawClassName; 1432} 1433var registerStyles = function registerStyles2(cache, serialized, isStringTag) { 1434 var className = cache.key + "-" + serialized.name; 1435 if ( 1436 // we only need to add the styles to the registered cache if the 1437 // class name could be used further down 1438 // the tree but if it's a string tag, we know it won't 1439 // so we don't have to add it to registered cache. 1440 // this improves memory usage since we can avoid storing the whole style string 1441 (isStringTag === false || // we need to always store it if we're in compat mode and 1442 // in node since emotion-server relies on whether a style is in 1443 // the registered cache to know whether a style is global or not 1444 // also, note that this check will be dead code eliminated in the browser 1445 isBrowser === false) && cache.registered[className] === void 0 1446 ) { 1447 cache.registered[className] = serialized.styles; 1448 } 1449}; 1450var insertStyles = function insertStyles2(cache, serialized, isStringTag) { 1451 registerStyles(cache, serialized, isStringTag); 1452 var className = cache.key + "-" + serialized.name; 1453 if (cache.inserted[serialized.name] === void 0) { 1454 var current = serialized; 1455 do { 1456 cache.insert(serialized === current ? "." + className : "", current, cache.sheet, true); 1457 current = current.next; 1458 } while (current !== void 0); 1459 } 1460}; 1461
vendor: 1,041 bytes, lines 1462-1491
1462// node_modules/@emotion/hash/dist/emotion-hash.esm.js 1463function murmur2(str) { 1464 var h = 0; 1465 var k, i = 0, len = str.length; 1466 for (; len >= 4; ++i, len -= 4) { 1467 k = str.charCodeAt(i) & 255 | (str.charCodeAt(++i) & 255) << 8 | (str.charCodeAt(++i) & 255) << 16 | (str.charCodeAt(++i) & 255) << 24; 1468 k = /* Math.imul(k, m): */ 1469 (k & 65535) * 1540483477 + ((k >>> 16) * 59797 << 16); 1470 k ^= /* k >>> r: */ 1471 k >>> 24; 1472 h = /* Math.imul(k, m): */ 1473 (k & 65535) * 1540483477 + ((k >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */ 1474 (h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16); 1475 } 1476 switch (len) { 1477 case 3: 1478 h ^= (str.charCodeAt(i + 2) & 255) << 16; 1479 case 2: 1480 h ^= (str.charCodeAt(i + 1) & 255) << 8; 1481 case 1: 1482 h ^= str.charCodeAt(i) & 255; 1483 h = /* Math.imul(h, m): */ 1484 (h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16); 1485 } 1486 h ^= h >>> 13; 1487 h = /* Math.imul(h, m): */ 1488 (h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16); 1489 return ((h ^ h >>> 15) >>> 0).toString(36); 1490} 1491
vendor: 951 bytes, lines 1492-1542
1492// node_modules/@emotion/unitless/dist/emotion-unitless.esm.js 1493var unitlessKeys = { 1494 animationIterationCount: 1, 1495 aspectRatio: 1, 1496 borderImageOutset: 1, 1497 borderImageSlice: 1, 1498 borderImageWidth: 1, 1499 boxFlex: 1, 1500 boxFlexGroup: 1, 1501 boxOrdinalGroup: 1, 1502 columnCount: 1, 1503 columns: 1, 1504 flex: 1, 1505 flexGrow: 1, 1506 flexPositive: 1, 1507 flexShrink: 1, 1508 flexNegative: 1, 1509 flexOrder: 1, 1510 gridRow: 1, 1511 gridRowEnd: 1, 1512 gridRowSpan: 1, 1513 gridRowStart: 1, 1514 gridColumn: 1, 1515 gridColumnEnd: 1, 1516 gridColumnSpan: 1, 1517 gridColumnStart: 1, 1518 msGridRow: 1, 1519 msGridRowSpan: 1, 1520 msGridColumn: 1, 1521 msGridColumnSpan: 1, 1522 fontWeight: 1, 1523 lineHeight: 1, 1524 opacity: 1, 1525 order: 1, 1526 orphans: 1, 1527 tabSize: 1, 1528 widows: 1, 1529 zIndex: 1, 1530 zoom: 1, 1531 WebkitLineClamp: 1, 1532 // SVG-related properties 1533 fillOpacity: 1, 1534 floodOpacity: 1, 1535 stopOpacity: 1, 1536 strokeDasharray: 1, 1537 strokeDashoffset: 1, 1538 strokeMiterlimit: 1, 1539 strokeOpacity: 1, 1540 strokeWidth: 1 1541}; 1542
vendor: 8,729 bytes, lines 1543-1788
1543// node_modules/@emotion/serialize/dist/emotion-serialize.browser.esm.js 1544var hyphenateRegex = /[A-Z]|^ms/g; 1545var animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g; 1546var isCustomProperty = function isCustomProperty2(property) { 1547 return property.charCodeAt(1) === 45; 1548}; 1549var isProcessableValue = function isProcessableValue2(value) { 1550 return value != null && typeof value !== "boolean"; 1551}; 1552var processStyleName = memoize(function(styleName) { 1553 return isCustomProperty(styleName) ? styleName : styleName.replace(hyphenateRegex, "-$&").toLowerCase(); 1554}); 1555var processStyleValue = function processStyleValue2(key, value) { 1556 switch (key) { 1557 case "animation": 1558 case "animationName": { 1559 if (typeof value === "string") { 1560 return value.replace(animationRegex, function(match2, p1, p2) { 1561 cursor = { 1562 name: p1, 1563 styles: p2, 1564 next: cursor 1565 }; 1566 return p1; 1567 }); 1568 } 1569 } 1570 } 1571 if (unitlessKeys[key] !== 1 && !isCustomProperty(key) && typeof value === "number" && value !== 0) { 1572 return value + "px"; 1573 } 1574 return value; 1575}; 1576if (false) { 1577 contentValuePattern = /(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/; 1578 contentValues = ["normal", "none", "initial", "inherit", "unset"]; 1579 oldProcessStyleValue = processStyleValue; 1580 msPattern = /^-ms-/; 1581 hyphenPattern = /-(.)/g; 1582 hyphenatedCache = {}; 1583 processStyleValue = function processStyleValue3(key, value) { 1584 if (key === "content") { 1585 if (typeof value !== "string" || contentValues.indexOf(value) === -1 && !contentValuePattern.test(value) && (value.charAt(0) !== value.charAt(value.length - 1) || value.charAt(0) !== '"' && value.charAt(0) !== "'")) { 1586 throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"" + value + "\"'`"); 1587 } 1588 } 1589 var processed = oldProcessStyleValue(key, value); 1590 if (processed !== "" && !isCustomProperty(key) && key.indexOf("-") !== -1 && hyphenatedCache[key] === void 0) { 1591 hyphenatedCache[key] = true; 1592 console.error("Using kebab-case for css properties in objects is not supported. Did you mean " + key.replace(msPattern, "ms-").replace(hyphenPattern, function(str, _char) { 1593 return _char.toUpperCase(); 1594 }) + "?"); 1595 } 1596 return processed; 1597 }; 1598} 1599var contentValuePattern; 1600var contentValues; 1601var oldProcessStyleValue; 1602var msPattern; 1603var hyphenPattern; 1604var hyphenatedCache; 1605function handleInterpolation(mergedProps, registered, interpolation) { 1606 if (interpolation == null) { 1607 return ""; 1608 } 1609 if (interpolation.__emotion_styles !== void 0) { 1610 if (false) { 1611 throw new Error(noComponentSelectorMessage); 1612 } 1613 return interpolation; 1614 } 1615 switch (typeof interpolation) { 1616 case "boolean": { 1617 return ""; 1618 } 1619 case "object": { 1620 if (interpolation.anim === 1) { 1621 cursor = { 1622 name: interpolation.name, 1623 styles: interpolation.styles, 1624 next: cursor 1625 }; 1626 return interpolation.name; 1627 } 1628 if (interpolation.styles !== void 0) { 1629 var next2 = interpolation.next; 1630 if (next2 !== void 0) { 1631 while (next2 !== void 0) { 1632 cursor = { 1633 name: next2.name, 1634 styles: next2.styles, 1635 next: cursor 1636 }; 1637 next2 = next2.next; 1638 } 1639 } 1640 var styles = interpolation.styles + ";"; 1641 if (false) { 1642 styles += interpolation.map; 1643 } 1644 return styles; 1645 } 1646 return createStringFromObject(mergedProps, registered, interpolation); 1647 } 1648 case "function": { 1649 if (mergedProps !== void 0) { 1650 var previousCursor = cursor; 1651 var result = interpolation(mergedProps); 1652 cursor = previousCursor; 1653 return handleInterpolation(mergedProps, registered, result); 1654 } else if (false) { 1655 console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`"); 1656 } 1657 break; 1658 } 1659 case "string": 1660 if (false) { 1661 var matched = []; 1662 var replaced = interpolation.replace(animationRegex, function(match2, p1, p2) { 1663 var fakeVarName = "animation" + matched.length; 1664 matched.push("const " + fakeVarName + " = keyframes`" + p2.replace(/^@keyframes animation-\w+/, "") + "`"); 1665 return "${" + fakeVarName + "}"; 1666 }); 1667 if (matched.length) { 1668 console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n" + [].concat(matched, ["`" + replaced + "`"]).join("\n") + "\n\nYou should wrap it with `css` like this:\n\n" + ("css`" + replaced + "`")); 1669 } 1670 } 1671 break; 1672 } 1673 if (registered == null) { 1674 return interpolation; 1675 } 1676 var cached = registered[interpolation]; 1677 return cached !== void 0 ? cached : interpolation; 1678} 1679function createStringFromObject(mergedProps, registered, obj) { 1680 var string = ""; 1681 if (Array.isArray(obj)) { 1682 for (var i = 0; i < obj.length; i++) { 1683 string += handleInterpolation(mergedProps, registered, obj[i]) + ";"; 1684 } 1685 } else { 1686 for (var _key in obj) { 1687 var value = obj[_key]; 1688 if (typeof value !== "object") { 1689 if (registered != null && registered[value] !== void 0) { 1690 string += _key + "{" + registered[value] + "}"; 1691 } else if (isProcessableValue(value)) { 1692 string += processStyleName(_key) + ":" + processStyleValue(_key, value) + ";"; 1693 } 1694 } else { 1695 if (_key === "NO_COMPONENT_SELECTOR" && false) { 1696 throw new Error(noComponentSelectorMessage); 1697 } 1698 if (Array.isArray(value) && typeof value[0] === "string" && (registered == null || registered[value[0]] === void 0)) { 1699 for (var _i = 0; _i < value.length; _i++) { 1700 if (isProcessableValue(value[_i])) { 1701 string += processStyleName(_key) + ":" + processStyleValue(_key, value[_i]) + ";"; 1702 } 1703 } 1704 } else { 1705 var interpolated = handleInterpolation(mergedProps, registered, value); 1706 switch (_key) { 1707 case "animation": 1708 case "animationName": { 1709 string += processStyleName(_key) + ":" + interpolated + ";"; 1710 break; 1711 } 1712 default: { 1713 if (false) { 1714 console.error(UNDEFINED_AS_OBJECT_KEY_ERROR); 1715 } 1716 string += _key + "{" + interpolated + "}"; 1717 } 1718 } 1719 } 1720 } 1721 } 1722 } 1723 return string; 1724} 1725var labelPattern = /label:\s*([^\s;\n{]+)\s*(;|$)/g; 1726if (false) { 1727 sourceMapPattern = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g; 1728} 1729var cursor; 1730var serializeStyles = function serializeStyles2(args, registered, mergedProps) { 1731 if (args.length === 1 && typeof args[0] === "object" && args[0] !== null && args[0].styles !== void 0) { 1732 return args[0]; 1733 } 1734 var stringMode = true; 1735 var styles = ""; 1736 cursor = void 0; 1737 var strings = args[0]; 1738 if (strings == null || strings.raw === void 0) { 1739 stringMode = false; 1740 styles += handleInterpolation(mergedProps, registered, strings); 1741 } else { 1742 if (false) { 1743 console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR); 1744 } 1745 styles += strings[0]; 1746 } 1747 for (var i = 1; i < args.length; i++) { 1748 styles += handleInterpolation(mergedProps, registered, args[i]); 1749 if (stringMode) { 1750 if (false) { 1751 console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR); 1752 } 1753 styles += strings[i]; 1754 } 1755 } 1756 var sourceMap; 1757 if (false) { 1758 styles = styles.replace(sourceMapPattern, function(match3) { 1759 sourceMap = match3; 1760 return ""; 1761 }); 1762 } 1763 labelPattern.lastIndex = 0; 1764 var identifierName = ""; 1765 var match2; 1766 while ((match2 = labelPattern.exec(styles)) !== null) { 1767 identifierName += "-" + // $FlowFixMe we know it's not null 1768 match2[1]; 1769 } 1770 var name = murmur2(styles) + identifierName; 1771 if (false) { 1772 return { 1773 name, 1774 styles, 1775 map: sourceMap, 1776 next: cursor, 1777 toString: function toString() { 1778 return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; 1779 } 1780 }; 1781 } 1782 return { 1783 name, 1784 styles, 1785 next: cursor 1786 }; 1787}; 1788
vendor: 504 bytes, lines 1789-1797
1789// node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js 1790var React = __toESM(require_react()); 1791var syncFallback = function syncFallback2(create) { 1792 return create(); 1793}; 1794var useInsertionEffect2 = React["useInsertionEffect"] ? React["useInsertionEffect"] : false; 1795var useInsertionEffectAlwaysWithSyncFallback = useInsertionEffect2 || syncFallback; 1796var useInsertionEffectWithLayoutFallback = useInsertionEffect2 || React.useLayoutEffect; 1797
vendor: 4,575 bytes, lines 1798-1927
1798// node_modules/@emotion/react/dist/emotion-element-c39617d8.browser.esm.js 1799var isBrowser2 = true; 1800var hasOwnProperty = {}.hasOwnProperty; 1801var EmotionCacheContext = React2.createContext( 1802 // we're doing this to avoid preconstruct's dead code elimination in this one case 1803 // because this module is primarily intended for the browser and node 1804 // but it's also required in react native and similar environments sometimes 1805 // and we could have a special build just for that 1806 // but this is much easier and the native packages 1807 // might use a different theme context in the future anyway 1808 typeof HTMLElement !== "undefined" ? createCache({ 1809 key: "css" 1810 }) : null 1811); 1812if (false) { 1813 EmotionCacheContext.displayName = "EmotionCacheContext"; 1814} 1815var CacheProvider = EmotionCacheContext.Provider; 1816var withEmotionCache = function withEmotionCache2(func) { 1817 return (0, import_react2.forwardRef)(function(props, ref) { 1818 var cache = (0, import_react2.useContext)(EmotionCacheContext); 1819 return func(props, cache, ref); 1820 }); 1821}; 1822if (!isBrowser2) { 1823 withEmotionCache = function withEmotionCache3(func) { 1824 return function(props) { 1825 var cache = (0, import_react2.useContext)(EmotionCacheContext); 1826 if (cache === null) { 1827 cache = createCache({ 1828 key: "css" 1829 }); 1830 return React2.createElement(EmotionCacheContext.Provider, { 1831 value: cache 1832 }, func(props, cache)); 1833 } else { 1834 return func(props, cache); 1835 } 1836 }; 1837 }; 1838} 1839var ThemeContext = React2.createContext({}); 1840if (false) { 1841 ThemeContext.displayName = "EmotionThemeContext"; 1842} 1843var getTheme = function getTheme2(outerTheme, theme) { 1844 if (typeof theme === "function") { 1845 var mergedTheme = theme(outerTheme); 1846 if (false) { 1847 throw new Error("[ThemeProvider] Please return an object from your theme function, i.e. theme={() => ({})}!"); 1848 } 1849 return mergedTheme; 1850 } 1851 if (false) { 1852 throw new Error("[ThemeProvider] Please make your theme prop a plain object"); 1853 } 1854 return _extends({}, outerTheme, theme); 1855}; 1856var createCacheWithTheme = weakMemoize(function(outerTheme) { 1857 return weakMemoize(function(theme) { 1858 return getTheme(outerTheme, theme); 1859 }); 1860}); 1861var typePropName = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__"; 1862var createEmotionProps = function createEmotionProps2(type, props) { 1863 if (false) { 1864 throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`" + props.css + "`"); 1865 } 1866 var newProps = {}; 1867 for (var key in props) { 1868 if (hasOwnProperty.call(props, key)) { 1869 newProps[key] = props[key]; 1870 } 1871 } 1872 newProps[typePropName] = type; 1873 if (false) { 1874 var label = getLabelFromStackTrace(new Error().stack); 1875 if (label) 1876 newProps[labelPropName] = label; 1877 } 1878 return newProps; 1879}; 1880var Insertion = function Insertion2(_ref3) { 1881 var cache = _ref3.cache, serialized = _ref3.serialized, isStringTag = _ref3.isStringTag; 1882 registerStyles(cache, serialized, isStringTag); 1883 useInsertionEffectAlwaysWithSyncFallback(function() { 1884 return insertStyles(cache, serialized, isStringTag); 1885 }); 1886 return null; 1887}; 1888var Emotion = withEmotionCache(function(props, cache, ref) { 1889 var cssProp = props.css; 1890 if (typeof cssProp === "string" && cache.registered[cssProp] !== void 0) { 1891 cssProp = cache.registered[cssProp]; 1892 } 1893 var WrappedComponent = props[typePropName]; 1894 var registeredStyles = [cssProp]; 1895 var className = ""; 1896 if (typeof props.className === "string") { 1897 className = getRegisteredStyles(cache.registered, registeredStyles, props.className); 1898 } else if (props.className != null) { 1899 className = props.className + " "; 1900 } 1901 var serialized = serializeStyles(registeredStyles, void 0, React2.useContext(ThemeContext)); 1902 if (false) { 1903 var labelFromStack = props[labelPropName]; 1904 if (labelFromStack) { 1905 serialized = serializeStyles([serialized, "label:" + labelFromStack + ";"]); 1906 } 1907 } 1908 className += cache.key + "-" + serialized.name; 1909 var newProps = {}; 1910 for (var key in props) { 1911 if (hasOwnProperty.call(props, key) && key !== "css" && key !== typePropName && true) { 1912 newProps[key] = props[key]; 1913 } 1914 } 1915 newProps.ref = ref; 1916 newProps.className = className; 1917 return React2.createElement(React2.Fragment, null, React2.createElement(Insertion, { 1918 cache, 1919 serialized, 1920 isStringTag: typeof WrappedComponent === "string" 1921 }), React2.createElement(WrappedComponent, newProps)); 1922}); 1923if (false) { 1924 Emotion.displayName = "EmotionCssPropInternal"; 1925} 1926var Emotion$1 = Emotion; 1927
vendor: 7,332 bytes, lines 1928-2151
1928// node_modules/@emotion/react/dist/emotion-react.browser.esm.js 1929var React3 = __toESM(require_react()); 1930var import_hoist_non_react_statics2 = __toESM(require_hoist_non_react_statics_cjs()); 1931var jsx = function jsx2(type, props) { 1932 var args = arguments; 1933 if (props == null || !hasOwnProperty.call(props, "css")) { 1934 return React3.createElement.apply(void 0, args); 1935 } 1936 var argsLength = args.length; 1937 var createElementArgArray = new Array(argsLength); 1938 createElementArgArray[0] = Emotion$1; 1939 createElementArgArray[1] = createEmotionProps(type, props); 1940 for (var i = 2; i < argsLength; i++) { 1941 createElementArgArray[i] = args[i]; 1942 } 1943 return React3.createElement.apply(null, createElementArgArray); 1944}; 1945var Global = withEmotionCache(function(props, cache) { 1946 if (false) { 1947 console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"); 1948 warnedAboutCssPropForGlobal = true; 1949 } 1950 var styles = props.styles; 1951 var serialized = serializeStyles([styles], void 0, React3.useContext(ThemeContext)); 1952 if (!isBrowser2) { 1953 var _ref3; 1954 var serializedNames = serialized.name; 1955 var serializedStyles = serialized.styles; 1956 var next2 = serialized.next; 1957 while (next2 !== void 0) { 1958 serializedNames += " " + next2.name; 1959 serializedStyles += next2.styles; 1960 next2 = next2.next; 1961 } 1962 var shouldCache = cache.compat === true; 1963 var rules = cache.insert("", { 1964 name: serializedNames, 1965 styles: serializedStyles 1966 }, cache.sheet, shouldCache); 1967 if (shouldCache) { 1968 return null; 1969 } 1970 return React3.createElement("style", (_ref3 = {}, _ref3["data-emotion"] = cache.key + "-global " + serializedNames, _ref3.dangerouslySetInnerHTML = { 1971 __html: rules 1972 }, _ref3.nonce = cache.sheet.nonce, _ref3)); 1973 } 1974 var sheetRef = React3.useRef(); 1975 useInsertionEffectWithLayoutFallback(function() { 1976 var key = cache.key + "-global"; 1977 var sheet = new cache.sheet.constructor({ 1978 key, 1979 nonce: cache.sheet.nonce, 1980 container: cache.sheet.container, 1981 speedy: cache.sheet.isSpeedy 1982 }); 1983 var rehydrating = false; 1984 var node2 = document.querySelector('style[data-emotion="' + key + " " + serialized.name + '"]'); 1985 if (cache.sheet.tags.length) { 1986 sheet.before = cache.sheet.tags[0]; 1987 } 1988 if (node2 !== null) { 1989 rehydrating = true; 1990 node2.setAttribute("data-emotion", key); 1991 sheet.hydrate([node2]); 1992 } 1993 sheetRef.current = [sheet, rehydrating]; 1994 return function() { 1995 sheet.flush(); 1996 }; 1997 }, [cache]); 1998 useInsertionEffectWithLayoutFallback(function() { 1999 var sheetRefCurrent = sheetRef.current; 2000 var sheet = sheetRefCurrent[0], rehydrating = sheetRefCurrent[1]; 2001 if (rehydrating) { 2002 sheetRefCurrent[1] = false; 2003 return; 2004 } 2005 if (serialized.next !== void 0) { 2006 insertStyles(cache, serialized.next, true); 2007 } 2008 if (sheet.tags.length) { 2009 var element = sheet.tags[sheet.tags.length - 1].nextElementSibling; 2010 sheet.before = element; 2011 sheet.flush(); 2012 } 2013 cache.insert("", serialized, sheet, false); 2014 }, [cache, serialized.name]); 2015 return null; 2016}); 2017if (false) { 2018 Global.displayName = "EmotionGlobal"; 2019} 2020function css() { 2021 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { 2022 args[_key] = arguments[_key]; 2023 } 2024 return serializeStyles(args); 2025} 2026var keyframes = function keyframes2() { 2027 var insertable = css.apply(void 0, arguments); 2028 var name = "animation-" + insertable.name; 2029 return { 2030 name, 2031 styles: "@keyframes " + name + "{" + insertable.styles + "}", 2032 anim: 1, 2033 toString: function toString() { 2034 return "_EMO_" + this.name + "_" + this.styles + "_EMO_"; 2035 } 2036 }; 2037}; 2038var classnames = function classnames2(args) { 2039 var len = args.length; 2040 var i = 0; 2041 var cls = ""; 2042 for (; i < len; i++) { 2043 var arg = args[i]; 2044 if (arg == null) 2045 continue; 2046 var toAdd = void 0; 2047 switch (typeof arg) { 2048 case "boolean": 2049 break; 2050 case "object": { 2051 if (Array.isArray(arg)) { 2052 toAdd = classnames2(arg); 2053 } else { 2054 if (false) { 2055 console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."); 2056 } 2057 toAdd = ""; 2058 for (var k in arg) { 2059 if (arg[k] && k) { 2060 toAdd && (toAdd += " "); 2061 toAdd += k; 2062 } 2063 } 2064 } 2065 break; 2066 } 2067 default: { 2068 toAdd = arg; 2069 } 2070 } 2071 if (toAdd) { 2072 cls && (cls += " "); 2073 cls += toAdd; 2074 } 2075 } 2076 return cls; 2077}; 2078function merge(registered, css5, className) { 2079 var registeredStyles = []; 2080 var rawClassName = getRegisteredStyles(registered, registeredStyles, className); 2081 if (registeredStyles.length < 2) { 2082 return className; 2083 } 2084 return rawClassName + css5(registeredStyles); 2085} 2086var Insertion3 = function Insertion4(_ref3) { 2087 var cache = _ref3.cache, serializedArr = _ref3.serializedArr; 2088 useInsertionEffectAlwaysWithSyncFallback(function() { 2089 for (var i = 0; i < serializedArr.length; i++) { 2090 insertStyles(cache, serializedArr[i], false); 2091 } 2092 }); 2093 return null; 2094}; 2095var ClassNames = withEmotionCache(function(props, cache) { 2096 var hasRendered = false; 2097 var serializedArr = []; 2098 var css5 = function css6() { 2099 if (hasRendered && false) { 2100 throw new Error("css can only be used during render"); 2101 } 2102 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { 2103 args[_key] = arguments[_key]; 2104 } 2105 var serialized = serializeStyles(args, cache.registered); 2106 serializedArr.push(serialized); 2107 registerStyles(cache, serialized, false); 2108 return cache.key + "-" + serialized.name; 2109 }; 2110 var cx = function cx2() { 2111 if (hasRendered && false) { 2112 throw new Error("cx can only be used during render"); 2113 } 2114 for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { 2115 args[_key2] = arguments[_key2]; 2116 } 2117 return merge(cache.registered, css5, classnames(args)); 2118 }; 2119 var content = { 2120 css: css5, 2121 cx, 2122 theme: React3.useContext(ThemeContext) 2123 }; 2124 var ele = props.children(content); 2125 hasRendered = true; 2126 return React3.createElement(React3.Fragment, null, React3.createElement(Insertion3, { 2127 cache, 2128 serializedArr 2129 }), ele); 2130}); 2131if (false) { 2132 ClassNames.displayName = "EmotionClassNames"; 2133} 2134if (false) { 2135 isBrowser3 = true; 2136 isTestEnv = typeof jest !== "undefined" || typeof vi !== "undefined"; 2137 if (isBrowser3 && !isTestEnv) { 2138 globalContext = // $FlowIgnore 2139 typeof globalThis !== "undefined" ? globalThis : isBrowser3 ? window : global; 2140 globalKey = "__EMOTION_REACT_" + pkg.version.split(".")[0] + "__"; 2141 if (globalContext[globalKey]) { 2142 console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."); 2143 } 2144 globalContext[globalKey] = true; 2145 } 2146} 2147var isBrowser3; 2148var isTestEnv; 2149var globalContext; 2150var globalKey; 2151
vendor: 279 bytes, lines 2152-2163
2152// node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js 2153function _taggedTemplateLiteral(strings, raw) { 2154 if (!raw) { 2155 raw = strings.slice(0); 2156 } 2157 return Object.freeze(Object.defineProperties(strings, { 2158 raw: { 2159 value: Object.freeze(raw) 2160 } 2161 })); 2162} 2163
vendor: 156 bytes, lines 2164-2167
2164// node_modules/react-select/dist/index-baa8dc4f.esm.js 2165var import_react5 = __toESM(require_react()); 2166var import_react_dom = __toESM(require_react_dom()); 2167
vendor: 571 bytes, lines 2168-2189
2168// node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs 2169var sides = ["top", "right", "bottom", "left"]; 2170var alignments = ["start", "end"]; 2171var placements = sides.reduce((acc, side) => acc.concat(side, side + "-" + alignments[0], side + "-" + alignments[1]), []); 2172var min = Math.min; 2173var max = Math.max; 2174var round = Math.round; 2175var floor = Math.floor; 2176var createCoords = (v) => ({ 2177 x: v, 2178 y: v 2179}); 2180function rectToClientRect(rect) { 2181 return { 2182 ...rect, 2183 top: rect.y, 2184 left: rect.x, 2185 right: rect.x + rect.width, 2186 bottom: rect.y + rect.height 2187 }; 2188} 2189
vendor: 3,088 bytes, lines 2190-2276
2190// node_modules/@floating-ui/utils/dom/dist/floating-ui.utils.dom.mjs 2191function getNodeName(node2) { 2192 if (isNode(node2)) { 2193 return (node2.nodeName || "").toLowerCase(); 2194 } 2195 return "#document"; 2196} 2197function getWindow(node2) { 2198 var _node$ownerDocument; 2199 return (node2 == null ? void 0 : (_node$ownerDocument = node2.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window; 2200} 2201function getDocumentElement(node2) { 2202 var _ref3; 2203 return (_ref3 = (isNode(node2) ? node2.ownerDocument : node2.document) || window.document) == null ? void 0 : _ref3.documentElement; 2204} 2205function isNode(value) { 2206 return value instanceof Node || value instanceof getWindow(value).Node; 2207} 2208function isElement(value) { 2209 return value instanceof Element || value instanceof getWindow(value).Element; 2210} 2211function isHTMLElement(value) { 2212 return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement; 2213} 2214function isShadowRoot(value) { 2215 if (typeof ShadowRoot === "undefined") { 2216 return false; 2217 } 2218 return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot; 2219} 2220function isOverflowElement(element) { 2221 const { 2222 overflow, 2223 overflowX, 2224 overflowY, 2225 display 2226 } = getComputedStyle2(element); 2227 return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !["inline", "contents"].includes(display); 2228} 2229function isWebKit() { 2230 if (typeof CSS === "undefined" || !CSS.supports) 2231 return false; 2232 return CSS.supports("-webkit-backdrop-filter", "none"); 2233} 2234function isLastTraversableNode(node2) { 2235 return ["html", "body", "#document"].includes(getNodeName(node2)); 2236} 2237function getComputedStyle2(element) { 2238 return getWindow(element).getComputedStyle(element); 2239} 2240function getParentNode(node2) { 2241 if (getNodeName(node2) === "html") { 2242 return node2; 2243 } 2244 const result = ( 2245 // Step into the shadow DOM of the parent of a slotted node. 2246 node2.assignedSlot || // DOM Element detected. 2247 node2.parentNode || // ShadowRoot detected. 2248 isShadowRoot(node2) && node2.host || // Fallback. 2249 getDocumentElement(node2) 2250 ); 2251 return isShadowRoot(result) ? result.host : result; 2252} 2253function getNearestOverflowAncestor(node2) { 2254 const parentNode = getParentNode(node2); 2255 if (isLastTraversableNode(parentNode)) { 2256 return node2.ownerDocument ? node2.ownerDocument.body : node2.body; 2257 } 2258 if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) { 2259 return parentNode; 2260 } 2261 return getNearestOverflowAncestor(parentNode); 2262} 2263function getOverflowAncestors(node2, list) { 2264 var _node$ownerDocument2; 2265 if (list === void 0) { 2266 list = []; 2267 } 2268 const scrollableAncestor = getNearestOverflowAncestor(node2); 2269 const isBody = scrollableAncestor === ((_node$ownerDocument2 = node2.ownerDocument) == null ? void 0 : _node$ownerDocument2.body); 2270 const win = getWindow(scrollableAncestor); 2271 if (isBody) { 2272 return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : []); 2273 } 2274 return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor)); 2275} 2276
vendor: 7,688 bytes, lines 2277-2528
2277// node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs 2278function getCssDimensions(element) { 2279 const css5 = getComputedStyle2(element); 2280 let width = parseFloat(css5.width) || 0; 2281 let height = parseFloat(css5.height) || 0; 2282 const hasOffset = isHTMLElement(element); 2283 const offsetWidth = hasOffset ? element.offsetWidth : width; 2284 const offsetHeight = hasOffset ? element.offsetHeight : height; 2285 const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight; 2286 if (shouldFallback) { 2287 width = offsetWidth; 2288 height = offsetHeight; 2289 } 2290 return { 2291 width, 2292 height, 2293 $: shouldFallback 2294 }; 2295} 2296function unwrapElement(element) { 2297 return !isElement(element) ? element.contextElement : element; 2298} 2299function getScale(element) { 2300 const domElement = unwrapElement(element); 2301 if (!isHTMLElement(domElement)) { 2302 return createCoords(1); 2303 } 2304 const rect = domElement.getBoundingClientRect(); 2305 const { 2306 width, 2307 height, 2308 $ 2309 } = getCssDimensions(domElement); 2310 let x = ($ ? round(rect.width) : rect.width) / width; 2311 let y = ($ ? round(rect.height) : rect.height) / height; 2312 if (!x || !Number.isFinite(x)) { 2313 x = 1; 2314 } 2315 if (!y || !Number.isFinite(y)) { 2316 y = 1; 2317 } 2318 return { 2319 x, 2320 y 2321 }; 2322} 2323var noOffsets = createCoords(0); 2324function getVisualOffsets(element) { 2325 const win = getWindow(element); 2326 if (!isWebKit() || !win.visualViewport) { 2327 return noOffsets; 2328 } 2329 return { 2330 x: win.visualViewport.offsetLeft, 2331 y: win.visualViewport.offsetTop 2332 }; 2333} 2334function shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) { 2335 if (isFixed === void 0) { 2336 isFixed = false; 2337 } 2338 if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(element)) { 2339 return false; 2340 } 2341 return isFixed; 2342} 2343function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) { 2344 if (includeScale === void 0) { 2345 includeScale = false; 2346 } 2347 if (isFixedStrategy === void 0) { 2348 isFixedStrategy = false; 2349 } 2350 const clientRect = element.getBoundingClientRect(); 2351 const domElement = unwrapElement(element); 2352 let scale = createCoords(1); 2353 if (includeScale) { 2354 if (offsetParent) { 2355 if (isElement(offsetParent)) { 2356 scale = getScale(offsetParent); 2357 } 2358 } else { 2359 scale = getScale(element); 2360 } 2361 } 2362 const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0); 2363 let x = (clientRect.left + visualOffsets.x) / scale.x; 2364 let y = (clientRect.top + visualOffsets.y) / scale.y; 2365 let width = clientRect.width / scale.x; 2366 let height = clientRect.height / scale.y; 2367 if (domElement) { 2368 const win = getWindow(domElement); 2369 const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent; 2370 let currentIFrame = win.frameElement; 2371 while (currentIFrame && offsetParent && offsetWin !== win) { 2372 const iframeScale = getScale(currentIFrame); 2373 const iframeRect = currentIFrame.getBoundingClientRect(); 2374 const css5 = getComputedStyle2(currentIFrame); 2375 const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css5.paddingLeft)) * iframeScale.x; 2376 const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css5.paddingTop)) * iframeScale.y; 2377 x *= iframeScale.x; 2378 y *= iframeScale.y; 2379 width *= iframeScale.x; 2380 height *= iframeScale.y; 2381 x += left; 2382 y += top; 2383 currentIFrame = getWindow(currentIFrame).frameElement; 2384 } 2385 } 2386 return rectToClientRect({ 2387 width, 2388 height, 2389 x, 2390 y 2391 }); 2392} 2393function observeMove(element, onMove) { 2394 let io = null; 2395 let timeoutId; 2396 const root = getDocumentElement(element); 2397 function cleanup() { 2398 clearTimeout(timeoutId); 2399 io && io.disconnect(); 2400 io = null; 2401 } 2402 function refresh(skip, threshold) { 2403 if (skip === void 0) { 2404 skip = false; 2405 } 2406 if (threshold === void 0) { 2407 threshold = 1; 2408 } 2409 cleanup(); 2410 const { 2411 left, 2412 top, 2413 width, 2414 height 2415 } = element.getBoundingClientRect(); 2416 if (!skip) { 2417 onMove(); 2418 } 2419 if (!width || !height) { 2420 return; 2421 } 2422 const insetTop = floor(top); 2423 const insetRight = floor(root.clientWidth - (left + width)); 2424 const insetBottom = floor(root.clientHeight - (top + height)); 2425 const insetLeft = floor(left); 2426 const rootMargin = -insetTop + "px " + -insetRight + "px " + -insetBottom + "px " + -insetLeft + "px"; 2427 const options2 = { 2428 rootMargin, 2429 threshold: max(0, min(1, threshold)) || 1 2430 }; 2431 let isFirstUpdate = true; 2432 function handleObserve(entries) { 2433 const ratio = entries[0].intersectionRatio; 2434 if (ratio !== threshold) { 2435 if (!isFirstUpdate) { 2436 return refresh(); 2437 } 2438 if (!ratio) { 2439 timeoutId = setTimeout(() => { 2440 refresh(false, 1e-7); 2441 }, 100); 2442 } else { 2443 refresh(false, ratio); 2444 } 2445 } 2446 isFirstUpdate = false; 2447 } 2448 try { 2449 io = new IntersectionObserver(handleObserve, { 2450 ...options2, 2451 // Handle <iframe>s 2452 root: root.ownerDocument 2453 }); 2454 } catch (e) { 2455 io = new IntersectionObserver(handleObserve, options2); 2456 } 2457 io.observe(element); 2458 } 2459 refresh(true); 2460 return cleanup; 2461} 2462function autoUpdate(reference, floating, update, options2) { 2463 if (options2 === void 0) { 2464 options2 = {}; 2465 } 2466 const { 2467 ancestorScroll = true, 2468 ancestorResize = true, 2469 elementResize = typeof ResizeObserver === "function", 2470 layoutShift = typeof IntersectionObserver === "function", 2471 animationFrame = false 2472 } = options2; 2473 const referenceEl = unwrapElement(reference); 2474 const ancestors = ancestorScroll || ancestorResize ? [...referenceEl ? getOverflowAncestors(referenceEl) : [], ...getOverflowAncestors(floating)] : []; 2475 ancestors.forEach((ancestor) => { 2476 ancestorScroll && ancestor.addEventListener("scroll", update, { 2477 passive: true 2478 }); 2479 ancestorResize && ancestor.addEventListener("resize", update); 2480 }); 2481 const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update) : null; 2482 let reobserveFrame = -1; 2483 let resizeObserver = null; 2484 if (elementResize) { 2485 resizeObserver = new ResizeObserver((_ref3) => { 2486 let [firstEntry] = _ref3; 2487 if (firstEntry && firstEntry.target === referenceEl && resizeObserver) { 2488 resizeObserver.unobserve(floating); 2489 cancelAnimationFrame(reobserveFrame); 2490 reobserveFrame = requestAnimationFrame(() => { 2491 resizeObserver && resizeObserver.observe(floating); 2492 }); 2493 } 2494 update(); 2495 }); 2496 if (referenceEl && !animationFrame) { 2497 resizeObserver.observe(referenceEl); 2498 } 2499 resizeObserver.observe(floating); 2500 } 2501 let frameId; 2502 let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null; 2503 if (animationFrame) { 2504 frameLoop(); 2505 } 2506 function frameLoop() { 2507 const nextRefRect = getBoundingClientRect(reference); 2508 if (prevRefRect && (nextRefRect.x !== prevRefRect.x || nextRefRect.y !== prevRefRect.y || nextRefRect.width !== prevRefRect.width || nextRefRect.height !== prevRefRect.height)) { 2509 update(); 2510 } 2511 prevRefRect = nextRefRect; 2512 frameId = requestAnimationFrame(frameLoop); 2513 } 2514 update(); 2515 return () => { 2516 ancestors.forEach((ancestor) => { 2517 ancestorScroll && ancestor.removeEventListener("scroll", update); 2518 ancestorResize && ancestor.removeEventListener("resize", update); 2519 }); 2520 cleanupIo && cleanupIo(); 2521 resizeObserver && resizeObserver.disconnect(); 2522 resizeObserver = null; 2523 if (animationFrame) { 2524 cancelAnimationFrame(frameId); 2525 } 2526 }; 2527} 2528
vendor: 246 bytes, lines 2529-2533
2529// node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.js 2530var import_react3 = __toESM(require_react()); 2531var index = import_react3.useLayoutEffect; 2532var use_isomorphic_layout_effect_browser_esm_default = index; 2533
vendor: 61,905 bytes, lines 2534-3558
2534// node_modules/react-select/dist/index-baa8dc4f.esm.js 2535var _excluded$4 = ["className", "clearValue", "cx", "getStyles", "getClassNames", "getValue", "hasValue", "isMulti", "isRtl", "options", "selectOption", "selectProps", "setValue", "theme"]; 2536var noop = function noop2() { 2537}; 2538function applyPrefixToName(prefix3, name) { 2539 if (!name) { 2540 return prefix3; 2541 } else if (name[0] === "-") { 2542 return prefix3 + name; 2543 } else { 2544 return prefix3 + "__" + name; 2545 } 2546} 2547function classNames(prefix3, state) { 2548 for (var _len = arguments.length, classNameList = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { 2549 classNameList[_key - 2] = arguments[_key]; 2550 } 2551 var arr = [].concat(classNameList); 2552 if (state && prefix3) { 2553 for (var key in state) { 2554 if (state.hasOwnProperty(key) && state[key]) { 2555 arr.push("".concat(applyPrefixToName(prefix3, key))); 2556 } 2557 } 2558 } 2559 return arr.filter(function(i) { 2560 return i; 2561 }).map(function(i) { 2562 return String(i).trim(); 2563 }).join(" "); 2564} 2565var cleanValue = function cleanValue2(value) { 2566 if (isArray(value)) 2567 return value.filter(Boolean); 2568 if (_typeof(value) === "object" && value !== null) 2569 return [value]; 2570 return []; 2571}; 2572var cleanCommonProps = function cleanCommonProps2(props) { 2573 props.className; 2574 props.clearValue; 2575 props.cx; 2576 props.getStyles; 2577 props.getClassNames; 2578 props.getValue; 2579 props.hasValue; 2580 props.isMulti; 2581 props.isRtl; 2582 props.options; 2583 props.selectOption; 2584 props.selectProps; 2585 props.setValue; 2586 props.theme; 2587 var innerProps = _objectWithoutProperties(props, _excluded$4); 2588 return _objectSpread2({}, innerProps); 2589}; 2590var getStyleProps = function getStyleProps2(props, name, classNamesState) { 2591 var cx = props.cx, getStyles = props.getStyles, getClassNames = props.getClassNames, className = props.className; 2592 return { 2593 css: getStyles(name, props), 2594 className: cx(classNamesState !== null && classNamesState !== void 0 ? classNamesState : {}, getClassNames(name, props), className) 2595 }; 2596}; 2597function isDocumentElement(el) { 2598 return [document.documentElement, document.body, window].indexOf(el) > -1; 2599} 2600function normalizedHeight(el) { 2601 if (isDocumentElement(el)) { 2602 return window.innerHeight; 2603 } 2604 return el.clientHeight; 2605} 2606function getScrollTop(el) { 2607 if (isDocumentElement(el)) { 2608 return window.pageYOffset; 2609 } 2610 return el.scrollTop; 2611} 2612function scrollTo(el, top) { 2613 if (isDocumentElement(el)) { 2614 window.scrollTo(0, top); 2615 return; 2616 } 2617 el.scrollTop = top; 2618} 2619function getScrollParent(element) { 2620 var style = getComputedStyle(element); 2621 var excludeStaticParent = style.position === "absolute"; 2622 var overflowRx = /(auto|scroll)/; 2623 if (style.position === "fixed") 2624 return document.documentElement; 2625 for (var parent = element; parent = parent.parentElement; ) { 2626 style = getComputedStyle(parent); 2627 if (excludeStaticParent && style.position === "static") { 2628 continue; 2629 } 2630 if (overflowRx.test(style.overflow + style.overflowY + style.overflowX)) { 2631 return parent; 2632 } 2633 } 2634 return document.documentElement; 2635} 2636function easeOutCubic(t, b, c, d) { 2637 return c * ((t = t / d - 1) * t * t + 1) + b; 2638} 2639function animatedScrollTo(element, to) { 2640 var duration = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 200; 2641 var callback = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : noop; 2642 var start = getScrollTop(element); 2643 var change = to - start; 2644 var increment = 10; 2645 var currentTime = 0; 2646 function animateScroll() { 2647 currentTime += increment; 2648 var val = easeOutCubic(currentTime, start, change, duration); 2649 scrollTo(element, val); 2650 if (currentTime < duration) { 2651 window.requestAnimationFrame(animateScroll); 2652 } else { 2653 callback(element); 2654 } 2655 } 2656 animateScroll(); 2657} 2658function scrollIntoView(menuEl, focusedEl) { 2659 var menuRect = menuEl.getBoundingClientRect(); 2660 var focusedRect = focusedEl.getBoundingClientRect(); 2661 var overScroll = focusedEl.offsetHeight / 3; 2662 if (focusedRect.bottom + overScroll > menuRect.bottom) { 2663 scrollTo(menuEl, Math.min(focusedEl.offsetTop + focusedEl.clientHeight - menuEl.offsetHeight + overScroll, menuEl.scrollHeight)); 2664 } else if (focusedRect.top - overScroll < menuRect.top) { 2665 scrollTo(menuEl, Math.max(focusedEl.offsetTop - overScroll, 0)); 2666 } 2667} 2668function getBoundingClientObj(element) { 2669 var rect = element.getBoundingClientRect(); 2670 return { 2671 bottom: rect.bottom, 2672 height: rect.height, 2673 left: rect.left, 2674 right: rect.right, 2675 top: rect.top, 2676 width: rect.width 2677 }; 2678} 2679function isTouchCapable() { 2680 try { 2681 document.createEvent("TouchEvent"); 2682 return true; 2683 } catch (e) { 2684 return false; 2685 } 2686} 2687function isMobileDevice() { 2688 try { 2689 return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent); 2690 } catch (e) { 2691 return false; 2692 } 2693} 2694var passiveOptionAccessed = false; 2695var options = { 2696 get passive() { 2697 return passiveOptionAccessed = true; 2698 } 2699}; 2700var w = typeof window !== "undefined" ? window : {}; 2701if (w.addEventListener && w.removeEventListener) { 2702 w.addEventListener("p", noop, options); 2703 w.removeEventListener("p", noop, false); 2704} 2705var supportsPassiveEvents = passiveOptionAccessed; 2706function notNullish(item) { 2707 return item != null; 2708} 2709function isArray(arg) { 2710 return Array.isArray(arg); 2711} 2712function valueTernary(isMulti, multiValue, singleValue) { 2713 return isMulti ? multiValue : singleValue; 2714} 2715function singleValueAsValue(singleValue) { 2716 return singleValue; 2717} 2718function multiValueAsValue(multiValue) { 2719 return multiValue; 2720} 2721var removeProps = function removeProps2(propsObj) { 2722 for (var _len2 = arguments.length, properties = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { 2723 properties[_key2 - 1] = arguments[_key2]; 2724 } 2725 var propsMap = Object.entries(propsObj).filter(function(_ref3) { 2726 var _ref23 = _slicedToArray(_ref3, 1), key = _ref23[0]; 2727 return !properties.includes(key); 2728 }); 2729 return propsMap.reduce(function(newProps, _ref3) { 2730 var _ref4 = _slicedToArray(_ref3, 2), key = _ref4[0], val = _ref4[1]; 2731 newProps[key] = val; 2732 return newProps; 2733 }, {}); 2734}; 2735var _excluded$3 = ["children", "innerProps"]; 2736var _excluded2$1 = ["children", "innerProps"]; 2737function getMenuPlacement(_ref3) { 2738 var preferredMaxHeight = _ref3.maxHeight, menuEl = _ref3.menuEl, minHeight = _ref3.minHeight, preferredPlacement = _ref3.placement, shouldScroll = _ref3.shouldScroll, isFixedPosition = _ref3.isFixedPosition, controlHeight2 = _ref3.controlHeight; 2739 var scrollParent = getScrollParent(menuEl); 2740 var defaultState = { 2741 placement: "bottom", 2742 maxHeight: preferredMaxHeight 2743 }; 2744 if (!menuEl || !menuEl.offsetParent) 2745 return defaultState; 2746 var _scrollParent$getBoun = scrollParent.getBoundingClientRect(), scrollHeight = _scrollParent$getBoun.height; 2747 var _menuEl$getBoundingCl = menuEl.getBoundingClientRect(), menuBottom = _menuEl$getBoundingCl.bottom, menuHeight = _menuEl$getBoundingCl.height, menuTop = _menuEl$getBoundingCl.top; 2748 var _menuEl$offsetParent$ = menuEl.offsetParent.getBoundingClientRect(), containerTop = _menuEl$offsetParent$.top; 2749 var viewHeight = isFixedPosition ? window.innerHeight : normalizedHeight(scrollParent); 2750 var scrollTop = getScrollTop(scrollParent); 2751 var marginBottom = parseInt(getComputedStyle(menuEl).marginBottom, 10); 2752 var marginTop = parseInt(getComputedStyle(menuEl).marginTop, 10); 2753 var viewSpaceAbove = containerTop - marginTop; 2754 var viewSpaceBelow = viewHeight - menuTop; 2755 var scrollSpaceAbove = viewSpaceAbove + scrollTop; 2756 var scrollSpaceBelow = scrollHeight - scrollTop - menuTop; 2757 var scrollDown = menuBottom - viewHeight + scrollTop + marginBottom; 2758 var scrollUp = scrollTop + menuTop - marginTop; 2759 var scrollDuration = 160; 2760 switch (preferredPlacement) { 2761 case "auto": 2762 case "bottom": 2763 if (viewSpaceBelow >= menuHeight) { 2764 return { 2765 placement: "bottom", 2766 maxHeight: preferredMaxHeight 2767 }; 2768 } 2769 if (scrollSpaceBelow >= menuHeight && !isFixedPosition) { 2770 if (shouldScroll) { 2771 animatedScrollTo(scrollParent, scrollDown, scrollDuration); 2772 } 2773 return { 2774 placement: "bottom", 2775 maxHeight: preferredMaxHeight 2776 }; 2777 } 2778 if (!isFixedPosition && scrollSpaceBelow >= minHeight || isFixedPosition && viewSpaceBelow >= minHeight) { 2779 if (shouldScroll) { 2780 animatedScrollTo(scrollParent, scrollDown, scrollDuration); 2781 } 2782 var constrainedHeight = isFixedPosition ? viewSpaceBelow - marginBottom : scrollSpaceBelow - marginBottom; 2783 return { 2784 placement: "bottom", 2785 maxHeight: constrainedHeight 2786 }; 2787 } 2788 if (preferredPlacement === "auto" || isFixedPosition) { 2789 var _constrainedHeight = preferredMaxHeight; 2790 var spaceAbove = isFixedPosition ? viewSpaceAbove : scrollSpaceAbove; 2791 if (spaceAbove >= minHeight) { 2792 _constrainedHeight = Math.min(spaceAbove - marginBottom - controlHeight2, preferredMaxHeight); 2793 } 2794 return { 2795 placement: "top", 2796 maxHeight: _constrainedHeight 2797 }; 2798 } 2799 if (preferredPlacement === "bottom") { 2800 if (shouldScroll) { 2801 scrollTo(scrollParent, scrollDown); 2802 } 2803 return { 2804 placement: "bottom", 2805 maxHeight: preferredMaxHeight 2806 }; 2807 } 2808 break; 2809 case "top": 2810 if (viewSpaceAbove >= menuHeight) { 2811 return { 2812 placement: "top", 2813 maxHeight: preferredMaxHeight 2814 }; 2815 } 2816 if (scrollSpaceAbove >= menuHeight && !isFixedPosition) { 2817 if (shouldScroll) { 2818 animatedScrollTo(scrollParent, scrollUp, scrollDuration); 2819 } 2820 return { 2821 placement: "top", 2822 maxHeight: preferredMaxHeight 2823 }; 2824 } 2825 if (!isFixedPosition && scrollSpaceAbove >= minHeight || isFixedPosition && viewSpaceAbove >= minHeight) { 2826 var _constrainedHeight2 = preferredMaxHeight; 2827 if (!isFixedPosition && scrollSpaceAbove >= minHeight || isFixedPosition && viewSpaceAbove >= minHeight) { 2828 _constrainedHeight2 = isFixedPosition ? viewSpaceAbove - marginTop : scrollSpaceAbove - marginTop; 2829 } 2830 if (shouldScroll) { 2831 animatedScrollTo(scrollParent, scrollUp, scrollDuration); 2832 } 2833 return { 2834 placement: "top", 2835 maxHeight: _constrainedHeight2 2836 }; 2837 } 2838 return { 2839 placement: "bottom", 2840 maxHeight: preferredMaxHeight 2841 }; 2842 default: 2843 throw new Error('Invalid placement provided "'.concat(preferredPlacement, '".')); 2844 } 2845 return defaultState; 2846} 2847function alignToControl(placement) { 2848 var placementToCSSProp = { 2849 bottom: "top", 2850 top: "bottom" 2851 }; 2852 return placement ? placementToCSSProp[placement] : "bottom"; 2853} 2854var coercePlacement = function coercePlacement2(p) { 2855 return p === "auto" ? "bottom" : p; 2856}; 2857var menuCSS = function menuCSS2(_ref23, unstyled) { 2858 var _objectSpread22; 2859 var placement = _ref23.placement, _ref2$theme = _ref23.theme, borderRadius2 = _ref2$theme.borderRadius, spacing2 = _ref2$theme.spacing, colors2 = _ref2$theme.colors; 2860 return _objectSpread2((_objectSpread22 = { 2861 label: "menu" 2862 }, _defineProperty(_objectSpread22, alignToControl(placement), "100%"), _defineProperty(_objectSpread22, "position", "absolute"), _defineProperty(_objectSpread22, "width", "100%"), _defineProperty(_objectSpread22, "zIndex", 1), _objectSpread22), unstyled ? {} : { 2863 backgroundColor: colors2.neutral0, 2864 borderRadius: borderRadius2, 2865 boxShadow: "0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)", 2866 marginBottom: spacing2.menuGutter, 2867 marginTop: spacing2.menuGutter 2868 }); 2869}; 2870var PortalPlacementContext = (0, import_react5.createContext)(null); 2871var MenuPlacer = function MenuPlacer2(props) { 2872 var children = props.children, minMenuHeight = props.minMenuHeight, maxMenuHeight = props.maxMenuHeight, menuPlacement = props.menuPlacement, menuPosition = props.menuPosition, menuShouldScrollIntoView = props.menuShouldScrollIntoView, theme = props.theme; 2873 var _ref3 = (0, import_react5.useContext)(PortalPlacementContext) || {}, setPortalPlacement = _ref3.setPortalPlacement; 2874 var ref = (0, import_react5.useRef)(null); 2875 var _useState = (0, import_react5.useState)(maxMenuHeight), _useState2 = _slicedToArray(_useState, 2), maxHeight = _useState2[0], setMaxHeight = _useState2[1]; 2876 var _useState3 = (0, import_react5.useState)(null), _useState4 = _slicedToArray(_useState3, 2), placement = _useState4[0], setPlacement = _useState4[1]; 2877 var controlHeight2 = theme.spacing.controlHeight; 2878 use_isomorphic_layout_effect_browser_esm_default(function() { 2879 var menuEl = ref.current; 2880 if (!menuEl) 2881 return; 2882 var isFixedPosition = menuPosition === "fixed"; 2883 var shouldScroll = menuShouldScrollIntoView && !isFixedPosition; 2884 var state = getMenuPlacement({ 2885 maxHeight: maxMenuHeight, 2886 menuEl, 2887 minHeight: minMenuHeight, 2888 placement: menuPlacement, 2889 shouldScroll, 2890 isFixedPosition, 2891 controlHeight: controlHeight2 2892 }); 2893 setMaxHeight(state.maxHeight); 2894 setPlacement(state.placement); 2895 setPortalPlacement === null || setPortalPlacement === void 0 ? void 0 : setPortalPlacement(state.placement); 2896 }, [maxMenuHeight, menuPlacement, menuPosition, menuShouldScrollIntoView, minMenuHeight, setPortalPlacement, controlHeight2]); 2897 return children({ 2898 ref, 2899 placerProps: _objectSpread2(_objectSpread2({}, props), {}, { 2900 placement: placement || coercePlacement(menuPlacement), 2901 maxHeight 2902 }) 2903 }); 2904}; 2905var Menu = function Menu2(props) { 2906 var children = props.children, innerRef = props.innerRef, innerProps = props.innerProps; 2907 return jsx("div", _extends({}, getStyleProps(props, "menu", { 2908 menu: true 2909 }), { 2910 ref: innerRef 2911 }, innerProps), children); 2912}; 2913var Menu$1 = Menu; 2914var menuListCSS = function menuListCSS2(_ref4, unstyled) { 2915 var maxHeight = _ref4.maxHeight, baseUnit2 = _ref4.theme.spacing.baseUnit; 2916 return _objectSpread2({ 2917 maxHeight, 2918 overflowY: "auto", 2919 position: "relative", 2920 // required for offset[Height, Top] > keyboard scroll 2921 WebkitOverflowScrolling: "touch" 2922 }, unstyled ? {} : { 2923 paddingBottom: baseUnit2, 2924 paddingTop: baseUnit2 2925 }); 2926}; 2927var MenuList = function MenuList2(props) { 2928 var children = props.children, innerProps = props.innerProps, innerRef = props.innerRef, isMulti = props.isMulti; 2929 return jsx("div", _extends({}, getStyleProps(props, "menuList", { 2930 "menu-list": true, 2931 "menu-list--is-multi": isMulti 2932 }), { 2933 ref: innerRef 2934 }, innerProps), children); 2935}; 2936var noticeCSS = function noticeCSS2(_ref5, unstyled) { 2937 var _ref5$theme = _ref5.theme, baseUnit2 = _ref5$theme.spacing.baseUnit, colors2 = _ref5$theme.colors; 2938 return _objectSpread2({ 2939 textAlign: "center" 2940 }, unstyled ? {} : { 2941 color: colors2.neutral40, 2942 padding: "".concat(baseUnit2 * 2, "px ").concat(baseUnit2 * 3, "px") 2943 }); 2944}; 2945var noOptionsMessageCSS = noticeCSS; 2946var loadingMessageCSS = noticeCSS; 2947var NoOptionsMessage = function NoOptionsMessage2(_ref6) { 2948 var _ref6$children = _ref6.children, children = _ref6$children === void 0 ? "No options" : _ref6$children, innerProps = _ref6.innerProps, restProps = _objectWithoutProperties(_ref6, _excluded$3); 2949 return jsx("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, { 2950 children, 2951 innerProps 2952 }), "noOptionsMessage", { 2953 "menu-notice": true, 2954 "menu-notice--no-options": true 2955 }), innerProps), children); 2956}; 2957var LoadingMessage = function LoadingMessage2(_ref7) { 2958 var _ref7$children = _ref7.children, children = _ref7$children === void 0 ? "Loading..." : _ref7$children, innerProps = _ref7.innerProps, restProps = _objectWithoutProperties(_ref7, _excluded2$1); 2959 return jsx("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, { 2960 children, 2961 innerProps 2962 }), "loadingMessage", { 2963 "menu-notice": true, 2964 "menu-notice--loading": true 2965 }), innerProps), children); 2966}; 2967var menuPortalCSS = function menuPortalCSS2(_ref8) { 2968 var rect = _ref8.rect, offset2 = _ref8.offset, position2 = _ref8.position; 2969 return { 2970 left: rect.left, 2971 position: position2, 2972 top: offset2, 2973 width: rect.width, 2974 zIndex: 1 2975 }; 2976}; 2977var MenuPortal = function MenuPortal2(props) { 2978 var appendTo = props.appendTo, children = props.children, controlElement = props.controlElement, innerProps = props.innerProps, menuPlacement = props.menuPlacement, menuPosition = props.menuPosition; 2979 var menuPortalRef = (0, import_react5.useRef)(null); 2980 var cleanupRef = (0, import_react5.useRef)(null); 2981 var _useState5 = (0, import_react5.useState)(coercePlacement(menuPlacement)), _useState6 = _slicedToArray(_useState5, 2), placement = _useState6[0], setPortalPlacement = _useState6[1]; 2982 var portalPlacementContext = (0, import_react5.useMemo)(function() { 2983 return { 2984 setPortalPlacement 2985 }; 2986 }, []); 2987 var _useState7 = (0, import_react5.useState)(null), _useState8 = _slicedToArray(_useState7, 2), computedPosition = _useState8[0], setComputedPosition = _useState8[1]; 2988 var updateComputedPosition = (0, import_react5.useCallback)(function() { 2989 if (!controlElement) 2990 return; 2991 var rect = getBoundingClientObj(controlElement); 2992 var scrollDistance = menuPosition === "fixed" ? 0 : window.pageYOffset; 2993 var offset2 = rect[placement] + scrollDistance; 2994 if (offset2 !== (computedPosition === null || computedPosition === void 0 ? void 0 : computedPosition.offset) || rect.left !== (computedPosition === null || computedPosition === void 0 ? void 0 : computedPosition.rect.left) || rect.width !== (computedPosition === null || computedPosition === void 0 ? void 0 : computedPosition.rect.width)) { 2995 setComputedPosition({ 2996 offset: offset2, 2997 rect 2998 }); 2999 } 3000 }, [controlElement, menuPosition, placement, computedPosition === null || computedPosition === void 0 ? void 0 : computedPosition.offset, computedPosition === null || computedPosition === void 0 ? void 0 : computedPosition.rect.left, computedPosition === null || computedPosition === void 0 ? void 0 : computedPosition.rect.width]); 3001 use_isomorphic_layout_effect_browser_esm_default(function() { 3002 updateComputedPosition(); 3003 }, [updateComputedPosition]); 3004 var runAutoUpdate = (0, import_react5.useCallback)(function() { 3005 if (typeof cleanupRef.current === "function") { 3006 cleanupRef.current(); 3007 cleanupRef.current = null; 3008 } 3009 if (controlElement && menuPortalRef.current) { 3010 cleanupRef.current = autoUpdate(controlElement, menuPortalRef.current, updateComputedPosition, { 3011 elementResize: "ResizeObserver" in window 3012 }); 3013 } 3014 }, [controlElement, updateComputedPosition]); 3015 use_isomorphic_layout_effect_browser_esm_default(function() { 3016 runAutoUpdate(); 3017 }, [runAutoUpdate]); 3018 var setMenuPortalElement = (0, import_react5.useCallback)(function(menuPortalElement) { 3019 menuPortalRef.current = menuPortalElement; 3020 runAutoUpdate(); 3021 }, [runAutoUpdate]); 3022 if (!appendTo && menuPosition !== "fixed" || !computedPosition) 3023 return null; 3024 var menuWrapper = jsx("div", _extends({ 3025 ref: setMenuPortalElement 3026 }, getStyleProps(_objectSpread2(_objectSpread2({}, props), {}, { 3027 offset: computedPosition.offset, 3028 position: menuPosition, 3029 rect: computedPosition.rect 3030 }), "menuPortal", { 3031 "menu-portal": true 3032 }), innerProps), children); 3033 return jsx(PortalPlacementContext.Provider, { 3034 value: portalPlacementContext 3035 }, appendTo ? (0, import_react_dom.createPortal)(menuWrapper, appendTo) : menuWrapper); 3036}; 3037var containerCSS = function containerCSS2(_ref3) { 3038 var isDisabled = _ref3.isDisabled, isRtl = _ref3.isRtl; 3039 return { 3040 label: "container", 3041 direction: isRtl ? "rtl" : void 0, 3042 pointerEvents: isDisabled ? "none" : void 0, 3043 // cancel mouse events when disabled 3044 position: "relative" 3045 }; 3046}; 3047var SelectContainer = function SelectContainer2(props) { 3048 var children = props.children, innerProps = props.innerProps, isDisabled = props.isDisabled, isRtl = props.isRtl; 3049 return jsx("div", _extends({}, getStyleProps(props, "container", { 3050 "--is-disabled": isDisabled, 3051 "--is-rtl": isRtl 3052 }), innerProps), children); 3053}; 3054var valueContainerCSS = function valueContainerCSS2(_ref23, unstyled) { 3055 var spacing2 = _ref23.theme.spacing, isMulti = _ref23.isMulti, hasValue = _ref23.hasValue, controlShouldRenderValue = _ref23.selectProps.controlShouldRenderValue; 3056 return _objectSpread2({ 3057 alignItems: "center", 3058 display: isMulti && hasValue && controlShouldRenderValue ? "flex" : "grid", 3059 flex: 1, 3060 flexWrap: "wrap", 3061 WebkitOverflowScrolling: "touch", 3062 position: "relative", 3063 overflow: "hidden" 3064 }, unstyled ? {} : { 3065 padding: "".concat(spacing2.baseUnit / 2, "px ").concat(spacing2.baseUnit * 2, "px") 3066 }); 3067}; 3068var ValueContainer = function ValueContainer2(props) { 3069 var children = props.children, innerProps = props.innerProps, isMulti = props.isMulti, hasValue = props.hasValue; 3070 return jsx("div", _extends({}, getStyleProps(props, "valueContainer", { 3071 "value-container": true, 3072 "value-container--is-multi": isMulti, 3073 "value-container--has-value": hasValue 3074 }), innerProps), children); 3075}; 3076var indicatorsContainerCSS = function indicatorsContainerCSS2() { 3077 return { 3078 alignItems: "center", 3079 alignSelf: "stretch", 3080 display: "flex", 3081 flexShrink: 0 3082 }; 3083}; 3084var IndicatorsContainer = function IndicatorsContainer2(props) { 3085 var children = props.children, innerProps = props.innerProps; 3086 return jsx("div", _extends({}, getStyleProps(props, "indicatorsContainer", { 3087 indicators: true 3088 }), innerProps), children); 3089}; 3090var _templateObject; 3091var _excluded$2 = ["size"]; 3092var _excluded2 = ["innerProps", "isRtl", "size"]; 3093var _ref2 = true ? { 3094 name: "8mmkcg", 3095 styles: "display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0" 3096} : { 3097 name: "tj5bde-Svg", 3098 styles: "display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;", 3099 map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4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b2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgLyoqIFNldCBzaXplIG9mIHRoZSBjb250YWluZXIuICovXG4gIHNpemU6IG51bWJlcjtcbn1cbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KHtcbiAgaW5uZXJQcm9wcyxcbiAgaXNSdGwsXG4gIHNpemUgPSA0LFxuICAuLi5yZXN0UHJvcHNcbn06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPikgPT4ge1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKFxuICAgICAgICB7IC4uLnJlc3RQcm9wcywgaW5uZXJQcm9wcywgaXNSdGwsIHNpemUgfSxcbiAgICAgICAgJ2xvYWRpbmdJbmRpY2F0b3InLFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */", 3100 toString: _EMOTION_STRINGIFIED_CSS_ERROR__ 3101}; 3102var Svg = function Svg2(_ref3) { 3103 var size2 = _ref3.size, props = _objectWithoutProperties(_ref3, _excluded$2); 3104 return jsx("svg", _extends({ 3105 height: size2, 3106 width: size2, 3107 viewBox: "0 0 20 20", 3108 "aria-hidden": "true", 3109 focusable: "false", 3110 css: _ref2 3111 }, props)); 3112}; 3113var CrossIcon = function CrossIcon2(props) { 3114 return jsx(Svg, _extends({ 3115 size: 20 3116 }, props), jsx("path", { 3117 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" 3118 })); 3119}; 3120var DownChevron = function DownChevron2(props) { 3121 return jsx(Svg, _extends({ 3122 size: 20 3123 }, props), jsx("path", { 3124 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" 3125 })); 3126}; 3127var baseCSS = function baseCSS2(_ref3, unstyled) { 3128 var isFocused = _ref3.isFocused, _ref3$theme = _ref3.theme, baseUnit2 = _ref3$theme.spacing.baseUnit, colors2 = _ref3$theme.colors; 3129 return _objectSpread2({ 3130 label: "indicatorContainer", 3131 display: "flex", 3132 transition: "color 150ms" 3133 }, unstyled ? {} : { 3134 color: isFocused ? colors2.neutral60 : colors2.neutral20, 3135 padding: baseUnit2 * 2, 3136 ":hover": { 3137 color: isFocused ? colors2.neutral80 : colors2.neutral40 3138 } 3139 }); 3140}; 3141var dropdownIndicatorCSS = baseCSS; 3142var DropdownIndicator = function DropdownIndicator2(props) { 3143 var children = props.children, innerProps = props.innerProps; 3144 return jsx("div", _extends({}, getStyleProps(props, "dropdownIndicator", { 3145 indicator: true, 3146 "dropdown-indicator": true 3147 }), innerProps), children || jsx(DownChevron, null)); 3148}; 3149var clearIndicatorCSS = baseCSS; 3150var ClearIndicator = function ClearIndicator2(props) { 3151 var children = props.children, innerProps = props.innerProps; 3152 return jsx("div", _extends({}, getStyleProps(props, "clearIndicator", { 3153 indicator: true, 3154 "clear-indicator": true 3155 }), innerProps), children || jsx(CrossIcon, null)); 3156}; 3157var indicatorSeparatorCSS = function indicatorSeparatorCSS2(_ref4, unstyled) { 3158 var isDisabled = _ref4.isDisabled, _ref4$theme = _ref4.theme, baseUnit2 = _ref4$theme.spacing.baseUnit, colors2 = _ref4$theme.colors; 3159 return _objectSpread2({ 3160 label: "indicatorSeparator", 3161 alignSelf: "stretch", 3162 width: 1 3163 }, unstyled ? {} : { 3164 backgroundColor: isDisabled ? colors2.neutral10 : colors2.neutral20, 3165 marginBottom: baseUnit2 * 2, 3166 marginTop: baseUnit2 * 2 3167 }); 3168}; 3169var IndicatorSeparator = function IndicatorSeparator2(props) { 3170 var innerProps = props.innerProps; 3171 return jsx("span", _extends({}, innerProps, getStyleProps(props, "indicatorSeparator", { 3172 "indicator-separator": true 3173 }))); 3174}; 3175var loadingDotAnimations = keyframes(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"]))); 3176var loadingIndicatorCSS = function loadingIndicatorCSS2(_ref5, unstyled) { 3177 var isFocused = _ref5.isFocused, size2 = _ref5.size, _ref5$theme = _ref5.theme, colors2 = _ref5$theme.colors, baseUnit2 = _ref5$theme.spacing.baseUnit; 3178 return _objectSpread2({ 3179 label: "loadingIndicator", 3180 display: "flex", 3181 transition: "color 150ms", 3182 alignSelf: "center", 3183 fontSize: size2, 3184 lineHeight: 1, 3185 marginRight: size2, 3186 textAlign: "center", 3187 verticalAlign: "middle" 3188 }, unstyled ? {} : { 3189 color: isFocused ? colors2.neutral60 : colors2.neutral20, 3190 padding: baseUnit2 * 2 3191 }); 3192}; 3193var LoadingDot = function LoadingDot2(_ref6) { 3194 var delay = _ref6.delay, offset2 = _ref6.offset; 3195 return jsx("span", { 3196 css: css({ 3197 animation: "".concat(loadingDotAnimations, " 1s ease-in-out ").concat(delay, "ms infinite;"), 3198 backgroundColor: "currentColor", 3199 borderRadius: "1em", 3200 display: "inline-block", 3201 marginLeft: offset2 ? "1em" : void 0, 3202 height: "1em", 3203 verticalAlign: "top", 3204 width: "1em" 3205 }, true ? "" : ";label:LoadingDot;", true ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuaW1wb3J0IHsgZ2V0U3R5bGVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHtcbiAgc2l6ZSxcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnR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RlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KHtcbiAgaW5uZXJQcm9wcyxcbiAgaXNSdGwsXG4gIHNpemUgPSA0LFxuICAuLi5yZXN0UHJvcHNcbn06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPikgPT4ge1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKFxuICAgICAgICB7IC4uLnJlc3RQcm9wcywgaW5uZXJQcm9wcywgaXNSdGwsIHNpemUgfSxcbiAgICAgICAgJ2xvYWRpbmdJbmRpY2F0b3InLFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */") 3206 }); 3207}; 3208var LoadingIndicator = function LoadingIndicator2(_ref7) { 3209 var innerProps = _ref7.innerProps, isRtl = _ref7.isRtl, _ref7$size = _ref7.size, size2 = _ref7$size === void 0 ? 4 : _ref7$size, restProps = _objectWithoutProperties(_ref7, _excluded2); 3210 return jsx("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, { 3211 innerProps, 3212 isRtl, 3213 size: size2 3214 }), "loadingIndicator", { 3215 indicator: true, 3216 "loading-indicator": true 3217 }), innerProps), jsx(LoadingDot, { 3218 delay: 0, 3219 offset: isRtl 3220 }), jsx(LoadingDot, { 3221 delay: 160, 3222 offset: true 3223 }), jsx(LoadingDot, { 3224 delay: 320, 3225 offset: !isRtl 3226 })); 3227}; 3228var css$1 = function css2(_ref3, unstyled) { 3229 var isDisabled = _ref3.isDisabled, isFocused = _ref3.isFocused, _ref$theme = _ref3.theme, colors2 = _ref$theme.colors, borderRadius2 = _ref$theme.borderRadius, spacing2 = _ref$theme.spacing; 3230 return _objectSpread2({ 3231 label: "control", 3232 alignItems: "center", 3233 cursor: "default", 3234 display: "flex", 3235 flexWrap: "wrap", 3236 justifyContent: "space-between", 3237 minHeight: spacing2.controlHeight, 3238 outline: "0 !important", 3239 position: "relative", 3240 transition: "all 100ms" 3241 }, unstyled ? {} : { 3242 backgroundColor: isDisabled ? colors2.neutral5 : colors2.neutral0, 3243 borderColor: isDisabled ? colors2.neutral10 : isFocused ? colors2.primary : colors2.neutral20, 3244 borderRadius: borderRadius2, 3245 borderStyle: "solid", 3246 borderWidth: 1, 3247 boxShadow: isFocused ? "0 0 0 1px ".concat(colors2.primary) : void 0, 3248 "&:hover": { 3249 borderColor: isFocused ? colors2.primary : colors2.neutral30 3250 } 3251 }); 3252}; 3253var Control = function Control2(props) { 3254 var children = props.children, isDisabled = props.isDisabled, isFocused = props.isFocused, innerRef = props.innerRef, innerProps = props.innerProps, menuIsOpen = props.menuIsOpen; 3255 return jsx("div", _extends({ 3256 ref: innerRef 3257 }, getStyleProps(props, "control", { 3258 control: true, 3259 "control--is-disabled": isDisabled, 3260 "control--is-focused": isFocused, 3261 "control--menu-is-open": menuIsOpen 3262 }), innerProps), children); 3263}; 3264var Control$1 = Control; 3265var _excluded$1 = ["data"]; 3266var groupCSS = function groupCSS2(_ref3, unstyled) { 3267 var spacing2 = _ref3.theme.spacing; 3268 return unstyled ? {} : { 3269 paddingBottom: spacing2.baseUnit * 2, 3270 paddingTop: spacing2.baseUnit * 2 3271 }; 3272}; 3273var Group = function Group2(props) { 3274 var children = props.children, cx = props.cx, getStyles = props.getStyles, getClassNames = props.getClassNames, Heading = props.Heading, headingProps = props.headingProps, innerProps = props.innerProps, label = props.label, theme = props.theme, selectProps = props.selectProps; 3275 return jsx("div", _extends({}, getStyleProps(props, "group", { 3276 group: true 3277 }), innerProps), jsx(Heading, _extends({}, headingProps, { 3278 selectProps, 3279 theme, 3280 getStyles, 3281 getClassNames, 3282 cx 3283 }), label), jsx("div", null, children)); 3284}; 3285var groupHeadingCSS = function groupHeadingCSS2(_ref23, unstyled) { 3286 var _ref2$theme = _ref23.theme, colors2 = _ref2$theme.colors, spacing2 = _ref2$theme.spacing; 3287 return _objectSpread2({ 3288 label: "group", 3289 cursor: "default", 3290 display: "block" 3291 }, unstyled ? {} : { 3292 color: colors2.neutral40, 3293 fontSize: "75%", 3294 fontWeight: 500, 3295 marginBottom: "0.25em", 3296 paddingLeft: spacing2.baseUnit * 3, 3297 paddingRight: spacing2.baseUnit * 3, 3298 textTransform: "uppercase" 3299 }); 3300}; 3301var GroupHeading = function GroupHeading2(props) { 3302 var _cleanCommonProps = cleanCommonProps(props); 3303 _cleanCommonProps.data; 3304 var innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded$1); 3305 return jsx("div", _extends({}, getStyleProps(props, "groupHeading", { 3306 "group-heading": true 3307 }), innerProps)); 3308}; 3309var Group$1 = Group; 3310var _excluded3 = ["innerRef", "isDisabled", "isHidden", "inputClassName"]; 3311var inputCSS = function inputCSS2(_ref3, unstyled) { 3312 var isDisabled = _ref3.isDisabled, value = _ref3.value, _ref$theme = _ref3.theme, spacing2 = _ref$theme.spacing, colors2 = _ref$theme.colors; 3313 return _objectSpread2(_objectSpread2({ 3314 visibility: isDisabled ? "hidden" : "visible", 3315 // force css to recompute when value change due to @emotion bug. 3316 // We can remove it whenever the bug is fixed. 3317 transform: value ? "translateZ(0)" : "" 3318 }, containerStyle), unstyled ? {} : { 3319 margin: spacing2.baseUnit / 2, 3320 paddingBottom: spacing2.baseUnit / 2, 3321 paddingTop: spacing2.baseUnit / 2, 3322 color: colors2.neutral80 3323 }); 3324}; 3325var spacingStyle = { 3326 gridArea: "1 / 2", 3327 font: "inherit", 3328 minWidth: "2px", 3329 border: 0, 3330 margin: 0, 3331 outline: 0, 3332 padding: 0 3333}; 3334var containerStyle = { 3335 flex: "1 1 auto", 3336 display: "inline-grid", 3337 gridArea: "1 / 1 / 2 / 3", 3338 gridTemplateColumns: "0 min-content", 3339 "&:after": _objectSpread2({ 3340 content: 'attr(data-value) " "', 3341 visibility: "hidden", 3342 whiteSpace: "pre" 3343 }, spacingStyle) 3344}; 3345var inputStyle = function inputStyle2(isHidden) { 3346 return _objectSpread2({ 3347 label: "input", 3348 color: "inherit", 3349 background: 0, 3350 opacity: isHidden ? 0 : 1, 3351 width: "100%" 3352 }, spacingStyle); 3353}; 3354var Input = function Input2(props) { 3355 var cx = props.cx, value = props.value; 3356 var _cleanCommonProps = cleanCommonProps(props), innerRef = _cleanCommonProps.innerRef, isDisabled = _cleanCommonProps.isDisabled, isHidden = _cleanCommonProps.isHidden, inputClassName = _cleanCommonProps.inputClassName, innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded3); 3357 return jsx("div", _extends({}, getStyleProps(props, "input", { 3358 "input-container": true 3359 }), { 3360 "data-value": value || "" 3361 }), jsx("input", _extends({ 3362 className: cx({ 3363 input: true 3364 }, inputClassName), 3365 ref: innerRef, 3366 style: inputStyle(isHidden), 3367 disabled: isDisabled 3368 }, innerProps))); 3369}; 3370var Input$1 = Input; 3371var multiValueCSS = function multiValueCSS2(_ref3, unstyled) { 3372 var _ref$theme = _ref3.theme, spacing2 = _ref$theme.spacing, borderRadius2 = _ref$theme.borderRadius, colors2 = _ref$theme.colors; 3373 return _objectSpread2({ 3374 label: "multiValue", 3375 display: "flex", 3376 minWidth: 0 3377 }, unstyled ? {} : { 3378 backgroundColor: colors2.neutral10, 3379 borderRadius: borderRadius2 / 2, 3380 margin: spacing2.baseUnit / 2 3381 }); 3382}; 3383var multiValueLabelCSS = function multiValueLabelCSS2(_ref23, unstyled) { 3384 var _ref2$theme = _ref23.theme, borderRadius2 = _ref2$theme.borderRadius, colors2 = _ref2$theme.colors, cropWithEllipsis = _ref23.cropWithEllipsis; 3385 return _objectSpread2({ 3386 overflow: "hidden", 3387 textOverflow: cropWithEllipsis || cropWithEllipsis === void 0 ? "ellipsis" : void 0, 3388 whiteSpace: "nowrap" 3389 }, unstyled ? {} : { 3390 borderRadius: borderRadius2 / 2, 3391 color: colors2.neutral80, 3392 fontSize: "85%", 3393 padding: 3, 3394 paddingLeft: 6 3395 }); 3396}; 3397var multiValueRemoveCSS = function multiValueRemoveCSS2(_ref3, unstyled) { 3398 var _ref3$theme = _ref3.theme, spacing2 = _ref3$theme.spacing, borderRadius2 = _ref3$theme.borderRadius, colors2 = _ref3$theme.colors, isFocused = _ref3.isFocused; 3399 return _objectSpread2({ 3400 alignItems: "center", 3401 display: "flex" 3402 }, unstyled ? {} : { 3403 borderRadius: borderRadius2 / 2, 3404 backgroundColor: isFocused ? colors2.dangerLight : void 0, 3405 paddingLeft: spacing2.baseUnit, 3406 paddingRight: spacing2.baseUnit, 3407 ":hover": { 3408 backgroundColor: colors2.dangerLight, 3409 color: colors2.danger 3410 } 3411 }); 3412}; 3413var MultiValueGeneric = function MultiValueGeneric2(_ref4) { 3414 var children = _ref4.children, innerProps = _ref4.innerProps; 3415 return jsx("div", innerProps, children); 3416}; 3417var MultiValueContainer = MultiValueGeneric; 3418var MultiValueLabel = MultiValueGeneric; 3419function MultiValueRemove(_ref5) { 3420 var children = _ref5.children, innerProps = _ref5.innerProps; 3421 return jsx("div", _extends({ 3422 role: "button" 3423 }, innerProps), children || jsx(CrossIcon, { 3424 size: 14 3425 })); 3426} 3427var MultiValue = function MultiValue2(props) { 3428 var children = props.children, components2 = props.components, data = props.data, innerProps = props.innerProps, isDisabled = props.isDisabled, removeProps3 = props.removeProps, selectProps = props.selectProps; 3429 var Container = components2.Container, Label = components2.Label, Remove = components2.Remove; 3430 return jsx(Container, { 3431 data, 3432 innerProps: _objectSpread2(_objectSpread2({}, getStyleProps(props, "multiValue", { 3433 "multi-value": true, 3434 "multi-value--is-disabled": isDisabled 3435 })), innerProps), 3436 selectProps 3437 }, jsx(Label, { 3438 data, 3439 innerProps: _objectSpread2({}, getStyleProps(props, "multiValueLabel", { 3440 "multi-value__label": true 3441 })), 3442 selectProps 3443 }, children), jsx(Remove, { 3444 data, 3445 innerProps: _objectSpread2(_objectSpread2({}, getStyleProps(props, "multiValueRemove", { 3446 "multi-value__remove": true 3447 })), {}, { 3448 "aria-label": "Remove ".concat(children || "option") 3449 }, removeProps3), 3450 selectProps 3451 })); 3452}; 3453var MultiValue$1 = MultiValue; 3454var optionCSS = function optionCSS2(_ref3, unstyled) { 3455 var isDisabled = _ref3.isDisabled, isFocused = _ref3.isFocused, isSelected = _ref3.isSelected, _ref$theme = _ref3.theme, spacing2 = _ref$theme.spacing, colors2 = _ref$theme.colors; 3456 return _objectSpread2({ 3457 label: "option", 3458 cursor: "default", 3459 display: "block", 3460 fontSize: "inherit", 3461 width: "100%", 3462 userSelect: "none", 3463 WebkitTapHighlightColor: "rgba(0, 0, 0, 0)" 3464 }, unstyled ? {} : { 3465 backgroundColor: isSelected ? colors2.primary : isFocused ? colors2.primary25 : "transparent", 3466 color: isDisabled ? colors2.neutral20 : isSelected ? colors2.neutral0 : "inherit", 3467 padding: "".concat(spacing2.baseUnit * 2, "px ").concat(spacing2.baseUnit * 3, "px"), 3468 // provide some affordance on touch devices 3469 ":active": { 3470 backgroundColor: !isDisabled ? isSelected ? colors2.primary : colors2.primary50 : void 0 3471 } 3472 }); 3473}; 3474var Option = function Option2(props) { 3475 var children = props.children, isDisabled = props.isDisabled, isFocused = props.isFocused, isSelected = props.isSelected, innerRef = props.innerRef, innerProps = props.innerProps; 3476 return jsx("div", _extends({}, getStyleProps(props, "option", { 3477 option: true, 3478 "option--is-disabled": isDisabled, 3479 "option--is-focused": isFocused, 3480 "option--is-selected": isSelected 3481 }), { 3482 ref: innerRef, 3483 "aria-disabled": isDisabled 3484 }, innerProps), children); 3485}; 3486var Option$1 = Option; 3487var placeholderCSS = function placeholderCSS2(_ref3, unstyled) { 3488 var _ref$theme = _ref3.theme, spacing2 = _ref$theme.spacing, colors2 = _ref$theme.colors; 3489 return _objectSpread2({ 3490 label: "placeholder", 3491 gridArea: "1 / 1 / 2 / 3" 3492 }, unstyled ? {} : { 3493 color: colors2.neutral50, 3494 marginLeft: spacing2.baseUnit / 2, 3495 marginRight: spacing2.baseUnit / 2 3496 }); 3497}; 3498var Placeholder = function Placeholder2(props) { 3499 var children = props.children, innerProps = props.innerProps; 3500 return jsx("div", _extends({}, getStyleProps(props, "placeholder", { 3501 placeholder: true 3502 }), innerProps), children); 3503}; 3504var Placeholder$1 = Placeholder; 3505var css3 = function css4(_ref3, unstyled) { 3506 var isDisabled = _ref3.isDisabled, _ref$theme = _ref3.theme, spacing2 = _ref$theme.spacing, colors2 = _ref$theme.colors; 3507 return _objectSpread2({ 3508 label: "singleValue", 3509 gridArea: "1 / 1 / 2 / 3", 3510 maxWidth: "100%", 3511 overflow: "hidden", 3512 textOverflow: "ellipsis", 3513 whiteSpace: "nowrap" 3514 }, unstyled ? {} : { 3515 color: isDisabled ? colors2.neutral40 : colors2.neutral80, 3516 marginLeft: spacing2.baseUnit / 2, 3517 marginRight: spacing2.baseUnit / 2 3518 }); 3519}; 3520var SingleValue = function SingleValue2(props) { 3521 var children = props.children, isDisabled = props.isDisabled, innerProps = props.innerProps; 3522 return jsx("div", _extends({}, getStyleProps(props, "singleValue", { 3523 "single-value": true, 3524 "single-value--is-disabled": isDisabled 3525 }), innerProps), children); 3526}; 3527var SingleValue$1 = SingleValue; 3528var components = { 3529 ClearIndicator, 3530 Control: Control$1, 3531 DropdownIndicator, 3532 DownChevron, 3533 CrossIcon, 3534 Group: Group$1, 3535 GroupHeading, 3536 IndicatorsContainer, 3537 IndicatorSeparator, 3538 Input: Input$1, 3539 LoadingIndicator, 3540 Menu: Menu$1, 3541 MenuList, 3542 MenuPortal, 3543 LoadingMessage, 3544 NoOptionsMessage, 3545 MultiValue: MultiValue$1, 3546 MultiValueContainer, 3547 MultiValueLabel, 3548 MultiValueRemove, 3549 Option: Option$1, 3550 Placeholder: Placeholder$1, 3551 SelectContainer, 3552 SingleValue: SingleValue$1, 3553 ValueContainer 3554}; 3555var defaultComponents = function defaultComponents2(props) { 3556 return _objectSpread2(_objectSpread2({}, components), props.components); 3557}; 3558
vendor: 1,228 bytes, lines 3559-3609
3559// node_modules/memoize-one/dist/memoize-one.esm.js 3560var safeIsNaN = Number.isNaN || function ponyfill(value) { 3561 return typeof value === "number" && value !== value; 3562}; 3563function isEqual(first, second) { 3564 if (first === second) { 3565 return true; 3566 } 3567 if (safeIsNaN(first) && safeIsNaN(second)) { 3568 return true; 3569 } 3570 return false; 3571} 3572function areInputsEqual(newInputs, lastInputs) { 3573 if (newInputs.length !== lastInputs.length) { 3574 return false; 3575 } 3576 for (var i = 0; i < newInputs.length; i++) { 3577 if (!isEqual(newInputs[i], lastInputs[i])) { 3578 return false; 3579 } 3580 } 3581 return true; 3582} 3583function memoizeOne(resultFn, isEqual2) { 3584 if (isEqual2 === void 0) { 3585 isEqual2 = areInputsEqual; 3586 } 3587 var cache = null; 3588 function memoized() { 3589 var newArgs = []; 3590 for (var _i = 0; _i < arguments.length; _i++) { 3591 newArgs[_i] = arguments[_i]; 3592 } 3593 if (cache && cache.lastThis === this && isEqual2(newArgs, cache.lastArgs)) { 3594 return cache.lastResult; 3595 } 3596 var lastResult = resultFn.apply(this, newArgs); 3597 cache = { 3598 lastResult, 3599 lastArgs: newArgs, 3600 lastThis: this 3601 }; 3602 return lastResult; 3603 } 3604 memoized.clear = function clear() { 3605 cache = null; 3606 }; 3607 return memoized; 3608} 3609
vendor: 87,306 bytes, lines 3610-5873
3610// node_modules/react-select/dist/Select-aecb2a80.esm.js 3611var _ref = true ? { 3612 name: "7pg0cj-a11yText", 3613 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" 3614} : { 3615 name: "1f43avz-a11yText-A11yText", 3616 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;label:A11yText;", 3617 map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFNSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */", 3618 toString: _EMOTION_STRINGIFIED_CSS_ERROR__$2 3619}; 3620var A11yText = function A11yText2(props) { 3621 return jsx("span", _extends({ 3622 css: _ref 3623 }, props)); 3624}; 3625var A11yText$1 = A11yText; 3626var defaultAriaLiveMessages = { 3627 guidance: function guidance(props) { 3628 var isSearchable = props.isSearchable, isMulti = props.isMulti, isDisabled = props.isDisabled, tabSelectsValue = props.tabSelectsValue, context = props.context; 3629 switch (context) { 3630 case "menu": 3631 return "Use Up and Down to choose options".concat(isDisabled ? "" : ", press Enter to select the currently focused option", ", press Escape to exit the menu").concat(tabSelectsValue ? ", press Tab to select the option and exit the menu" : "", "."); 3632 case "input": 3633 return "".concat(props["aria-label"] || "Select", " is focused ").concat(isSearchable ? ",type to refine list" : "", ", press Down to open the menu, ").concat(isMulti ? " press left to focus selected values" : ""); 3634 case "value": 3635 return "Use left and right to toggle between focused values, press Backspace to remove the currently focused value"; 3636 default: 3637 return ""; 3638 } 3639 }, 3640 onChange: function onChange(props) { 3641 var action = props.action, _props$label = props.label, label = _props$label === void 0 ? "" : _props$label, labels = props.labels, isDisabled = props.isDisabled; 3642 switch (action) { 3643 case "deselect-option": 3644 case "pop-value": 3645 case "remove-value": 3646 return "option ".concat(label, ", deselected."); 3647 case "clear": 3648 return "All selected options have been cleared."; 3649 case "initial-input-focus": 3650 return "option".concat(labels.length > 1 ? "s" : "", " ").concat(labels.join(","), ", selected."); 3651 case "select-option": 3652 return isDisabled ? "option ".concat(label, " is disabled. Select another option.") : "option ".concat(label, ", selected."); 3653 default: 3654 return ""; 3655 } 3656 }, 3657 onFocus: function onFocus(props) { 3658 var context = props.context, focused = props.focused, options2 = props.options, _props$label2 = props.label, label = _props$label2 === void 0 ? "" : _props$label2, selectValue = props.selectValue, isDisabled = props.isDisabled, isSelected = props.isSelected; 3659 var getArrayIndex = function getArrayIndex2(arr, item) { 3660 return arr && arr.length ? "".concat(arr.indexOf(item) + 1, " of ").concat(arr.length) : ""; 3661 }; 3662 if (context === "value" && selectValue) { 3663 return "value ".concat(label, " focused, ").concat(getArrayIndex(selectValue, focused), "."); 3664 } 3665 if (context === "menu") { 3666 var disabled = isDisabled ? " disabled" : ""; 3667 var status = "".concat(isSelected ? "selected" : "focused").concat(disabled); 3668 return "option ".concat(label, " ").concat(status, ", ").concat(getArrayIndex(options2, focused), "."); 3669 } 3670 return ""; 3671 }, 3672 onFilter: function onFilter(props) { 3673 var inputValue = props.inputValue, resultsMessage = props.resultsMessage; 3674 return "".concat(resultsMessage).concat(inputValue ? " for search term " + inputValue : "", "."); 3675 } 3676}; 3677var LiveRegion = function LiveRegion2(props) { 3678 var ariaSelection = props.ariaSelection, focusedOption = props.focusedOption, focusedValue = props.focusedValue, focusableOptions = props.focusableOptions, isFocused = props.isFocused, selectValue = props.selectValue, selectProps = props.selectProps, id = props.id; 3679 var ariaLiveMessages = selectProps.ariaLiveMessages, getOptionLabel4 = selectProps.getOptionLabel, inputValue = selectProps.inputValue, isMulti = selectProps.isMulti, isOptionDisabled3 = selectProps.isOptionDisabled, isSearchable = selectProps.isSearchable, menuIsOpen = selectProps.menuIsOpen, options2 = selectProps.options, screenReaderStatus2 = selectProps.screenReaderStatus, tabSelectsValue = selectProps.tabSelectsValue; 3680 var ariaLabel = selectProps["aria-label"]; 3681 var ariaLive = selectProps["aria-live"]; 3682 var messages = (0, import_react6.useMemo)(function() { 3683 return _objectSpread2(_objectSpread2({}, defaultAriaLiveMessages), ariaLiveMessages || {}); 3684 }, [ariaLiveMessages]); 3685 var ariaSelected = (0, import_react6.useMemo)(function() { 3686 var message = ""; 3687 if (ariaSelection && messages.onChange) { 3688 var option = ariaSelection.option, selectedOptions = ariaSelection.options, removedValue = ariaSelection.removedValue, removedValues = ariaSelection.removedValues, value = ariaSelection.value; 3689 var asOption = function asOption2(val) { 3690 return !Array.isArray(val) ? val : null; 3691 }; 3692 var selected = removedValue || option || asOption(value); 3693 var label = selected ? getOptionLabel4(selected) : ""; 3694 var multiSelected = selectedOptions || removedValues || void 0; 3695 var labels = multiSelected ? multiSelected.map(getOptionLabel4) : []; 3696 var onChangeProps = _objectSpread2({ 3697 // multiSelected items are usually items that have already been selected 3698 // or set by the user as a default value so we assume they are not disabled 3699 isDisabled: selected && isOptionDisabled3(selected, selectValue), 3700 label, 3701 labels 3702 }, ariaSelection); 3703 message = messages.onChange(onChangeProps); 3704 } 3705 return message; 3706 }, [ariaSelection, messages, isOptionDisabled3, selectValue, getOptionLabel4]); 3707 var ariaFocused = (0, import_react6.useMemo)(function() { 3708 var focusMsg = ""; 3709 var focused = focusedOption || focusedValue; 3710 var isSelected = !!(focusedOption && selectValue && selectValue.includes(focusedOption)); 3711 if (focused && messages.onFocus) { 3712 var onFocusProps = { 3713 focused, 3714 label: getOptionLabel4(focused), 3715 isDisabled: isOptionDisabled3(focused, selectValue), 3716 isSelected, 3717 options: focusableOptions, 3718 context: focused === focusedOption ? "menu" : "value", 3719 selectValue 3720 }; 3721 focusMsg = messages.onFocus(onFocusProps); 3722 } 3723 return focusMsg; 3724 }, [focusedOption, focusedValue, getOptionLabel4, isOptionDisabled3, messages, focusableOptions, selectValue]); 3725 var ariaResults = (0, import_react6.useMemo)(function() { 3726 var resultsMsg = ""; 3727 if (menuIsOpen && options2.length && messages.onFilter) { 3728 var resultsMessage = screenReaderStatus2({ 3729 count: focusableOptions.length 3730 }); 3731 resultsMsg = messages.onFilter({ 3732 inputValue, 3733 resultsMessage 3734 }); 3735 } 3736 return resultsMsg; 3737 }, [focusableOptions, inputValue, menuIsOpen, messages, options2, screenReaderStatus2]); 3738 var ariaGuidance = (0, import_react6.useMemo)(function() { 3739 var guidanceMsg = ""; 3740 if (messages.guidance) { 3741 var context = focusedValue ? "value" : menuIsOpen ? "menu" : "input"; 3742 guidanceMsg = messages.guidance({ 3743 "aria-label": ariaLabel, 3744 context, 3745 isDisabled: focusedOption && isOptionDisabled3(focusedOption, selectValue), 3746 isMulti, 3747 isSearchable, 3748 tabSelectsValue 3749 }); 3750 } 3751 return guidanceMsg; 3752 }, [ariaLabel, focusedOption, focusedValue, isMulti, isOptionDisabled3, isSearchable, menuIsOpen, messages, selectValue, tabSelectsValue]); 3753 var ariaContext = "".concat(ariaFocused, " ").concat(ariaResults, " ").concat(ariaGuidance); 3754 var ScreenReaderText = jsx(import_react6.Fragment, null, jsx("span", { 3755 id: "aria-selection" 3756 }, ariaSelected), jsx("span", { 3757 id: "aria-context" 3758 }, ariaContext)); 3759 var isInitialFocus = (ariaSelection === null || ariaSelection === void 0 ? void 0 : ariaSelection.action) === "initial-input-focus"; 3760 return jsx(import_react6.Fragment, null, jsx(A11yText$1, { 3761 id 3762 }, isInitialFocus && ScreenReaderText), jsx(A11yText$1, { 3763 "aria-live": ariaLive, 3764 "aria-atomic": "false", 3765 "aria-relevant": "additions text" 3766 }, isFocused && !isInitialFocus && ScreenReaderText)); 3767}; 3768var LiveRegion$1 = LiveRegion; 3769var diacritics = [{ 3770 base: "A", 3771 letters: "Aâ¶ï¼¡ÃÃÃẦẤẪẨÃÄÄáº°áº®áº´áº²È¦Ç ÃÇẢà ǺÇÈÈẠẬẶá¸ÄȺⱯ" 3772}, { 3773 base: "AA", 3774 letters: "ê²" 3775}, { 3776 base: "AE", 3777 letters: "ÃǼǢ" 3778}, { 3779 base: "AO", 3780 letters: "ê´" 3781}, { 3782 base: "AU", 3783 letters: "ê¶" 3784}, { 3785 base: "AV", 3786 letters: "ê¸êº" 3787}, { 3788 base: "AY", 3789 letters: "ê¼" 3790}, { 3791 base: "B", 3792 letters: "Bâ·ï¼¢á¸á¸á¸ÉÆÆ" 3793}, { 3794 base: "C", 3795 letters: "Câ¸ï¼£ÄÄÄÄÃá¸ÆÈ»ê¾" 3796}, { 3797 base: "D", 3798 letters: "Dâ¹ï¼¤á¸Äá¸á¸á¸á¸ÄÆÆÆê¹" 3799}, { 3800 base: "DZ", 3801 letters: "DZÇ" 3802}, { 3803 base: "Dz", 3804 letters: "Ç²Ç " 3805}, { 3806 base: "E", 3807 letters: "Eâºï¼¥ÃÃÃá»áº¾á»á»áº¼Äá¸á¸ÄÄÃẺÄÈÈẸá»È¨á¸Äá¸á¸ÆÆ" 3808}, { 3809 base: "F", 3810 letters: "Fâ»ï¼¦á¸Æê»" 3811}, { 3812 base: "G", 3813 letters: "Gâ¼ï¼§Ç´ÄḠÄÄ Ç¦Ä¢Ç¤Æê ê½ê¾" 3814}, { 3815 base: "H", 3816 letters: "Hâ½ï¼¨Ä¤á¸¢á¸¦ÈḤḨḪĦⱧⱵê" 3817}, { 3818 base: "I", 3819 letters: "Iâ¾ï¼©ÃÃÃĨĪĬİÃḮá»ÇÈÈá»Ä®á¸¬Æ" 3820}, { 3821 base: "J", 3822 letters: "Jâ¿ï¼ªÄ´É" 3823}, { 3824 base: "K", 3825 letters: "KâKḰǨḲĶḴÆâ±©êêêê¢" 3826}, { 3827 base: "L", 3828 letters: "LâLĿĹĽḶḸĻḼḺÅȽⱢⱠêêê" 3829}, { 3830 base: "LJ", 3831 letters: "Ç" 3832}, { 3833 base: "Lj", 3834 letters: "Ç" 3835}, { 3836 base: "M", 3837 letters: "Mâï¼á¸¾á¹á¹â±®Æ" 3838}, { 3839 base: "N", 3840 letters: "NâNǸÅÃá¹Åá¹Å á¹á¹È Æêê¤" 3841}, { 3842 base: "NJ", 3843 letters: "Ç" 3844}, { 3845 base: "Nj", 3846 letters: "Ç" 3847}, { 3848 base: "O", 3849 letters: "OâOÃÃÃá»á»á»á»Ãá¹È¬á¹Åá¹á¹ÅȮȰÃȪá»ÅÇÈÈÆ á»á»á» á»á»¢á»á»ÇªÇ¬ÃÇ¾ÆÆêê" 3850}, { 3851 base: "OI", 3852 letters: "Æ¢" 3853}, { 3854 base: "OO", 3855 letters: "ê" 3856}, { 3857 base: "OU", 3858 letters: "È¢" 3859}, { 3860 base: "P", 3861 letters: "Pâ ï¼°á¹á¹Æ¤â±£êêê" 3862}, { 3863 base: "Q", 3864 letters: "Qâï¼±êêÉ" 3865}, { 3866 base: "R", 3867 letters: "Râï¼²Åá¹ÅÈÈá¹á¹Åá¹ÉⱤêê¦ê" 3868}, { 3869 base: "S", 3870 letters: "Sâï¼³áºÅṤÅṠŠṦṢṨÈÅâ±¾ê¨ê" 3871}, { 3872 base: "T", 3873 letters: "TâTṪŤṬÈŢṰṮŦƬƮȾê" 3874}, { 3875 base: "TZ", 3876 letters: "ê¨" 3877}, { 3878 base: "U", 3879 letters: "Uâï¼µÃÃÃŨṸŪṺŬÃÇÇÇÇỦŮŰÇÈÈÆ¯á»ªá»¨á»®á»¬á»°á»¤á¹²Å²á¹¶á¹´É" 3880}, { 3881 base: "V", 3882 letters: "VâVṼṾƲêÉ " 3883}, { 3884 base: "VY", 3885 letters: "ê " 3886}, { 3887 base: "W", 3888 letters: "Wâï¼·áºáºÅ´áºáºáºâ±²" 3889}, { 3890 base: "X", 3891 letters: "XâXáºáº" 3892}, { 3893 base: "Y", 3894 letters: "YâYỲÃŶỸȲáºÅ¸á»¶á»´Æ³ÉỾ" 3895}, { 3896 base: "Z", 3897 letters: "ZâZŹáºÅ»Å½áºáºÆµÈ¤â±¿â±«ê¢" 3898}, { 3899 base: "a", 3900 letters: "aâï½áºÃ áâầấẫẩãÄÄằắẵẳȧǡäÇảåǻÇÈÈạáºáº·á¸Ä â±¥É" 3901}, { 3902 base: "aa", 3903 letters: "ê³" 3904}, { 3905 base: "ae", 3906 letters: "æǽǣ" 3907}, { 3908 base: "ao", 3909 letters: "êµ" 3910}, { 3911 base: "au", 3912 letters: "ê·" 3913}, { 3914 base: "av", 3915 letters: "ê¹ê»" 3916}, { 3917 base: "ay", 3918 letters: "ê½" 3919}, { 3920 base: "b", 3921 letters: "bâï½á¸á¸ á¸ÆÆÉ" 3922}, { 3923 base: "c", 3924 letters: "câï½ÄÄÄÄÃ§á¸ÆÈ¼ê¿â" 3925}, { 3926 base: "d", 3927 letters: "dâï½á¸Äá¸á¸á¸á¸ÄÆÉÉêº" 3928}, { 3929 base: "dz", 3930 letters: "dzÇ" 3931}, { 3932 base: "e", 3933 letters: "eâï½ Ã¨Ã©Ãªá»áº¿á» á»áº½Äá¸á¸ÄÄëẻÄÈ Èẹá»È©á¸Äá¸á¸ÉÉÇ" 3934}, { 3935 base: "f", 3936 letters: "fâï½á¸Æê¼" 3937}, { 3938 base: "g", 3939 letters: "gâï½ÇµÄḡÄÄ¡Ç§Ä£Ç¥É ê¡áµ¹ê¿" 3940}, { 3941 base: "h", 3942 letters: "hâï½Ä¥á¸£á¸§ÈḥḩḫáºÄ§â±¨â±¶É¥" 3943}, { 3944 base: "hv", 3945 letters: "Æ" 3946}, { 3947 base: "i", 3948 letters: "iâï½Ã¬ÃîĩīÄïḯá»ÇÈÈá»Ä¯á¸É¨Ä±" 3949}, { 3950 base: "j", 3951 letters: "jâï½ÄµÇ°É" 3952}, { 3953 base: "k", 3954 letters: "kâï½á¸±Ç©á¸³Ä·á¸µÆâ±ªêêê ê£" 3955}, { 3956 base: "l", 3957 letters: "lâï½ÅÄºÄ¾á¸·á¸¹Ä¼á¸½á¸»Å¿ÅÆÉ«â±¡êêê" 3958}, { 3959 base: "lj", 3960 letters: "Ç" 3961}, { 3962 base: "m", 3963 letters: "mâï½á¸¿á¹á¹É±É¯" 3964}, { 3965 base: "n", 3966 letters: "nâï½Ç¹ÅñṠÅá¹Åá¹á¹ÆÉ²Åêê¥" 3967}, { 3968 base: "nj", 3969 letters: "Ç" 3970}, { 3971 base: "o", 3972 letters: "oâï½Ã²Ã³Ã´á»á»á»á»Ãµá¹Èá¹Åá¹á¹Åȯȱöȫá»ÅÇÈÈÆ¡á»á»á»¡á»á»£á»á»Ç«ÇøǿÉêêɵ" 3973}, { 3974 base: "oi", 3975 letters: "Æ£" 3976}, { 3977 base: "ou", 3978 letters: "È£" 3979}, { 3980 base: "oo", 3981 letters: "ê" 3982}, { 3983 base: "p", 3984 letters: "pâï½á¹á¹Æ¥áµ½êêê" 3985}, { 3986 base: "q", 3987 letters: "qâ ï½Éêê" 3988}, { 3989 base: "r", 3990 letters: "râ¡ï½Åá¹ÅÈÈá¹á¹Åá¹Éɽêê§ê" 3991}, { 3992 base: "s", 3993 letters: "sâ¢ï½ÃÅá¹¥ÅṡšṧṣṩÈÅÈ¿ê©ê áº" 3994}, { 3995 base: "t", 3996 letters: "tâ£ï½á¹«áºÅ¥á¹ÈţṱṯŧÆÊⱦê" 3997}, { 3998 base: "tz", 3999 letters: "ê©" 4000}, { 4001 base: "u", 4002 letters: "uâ¤ï½Ã¹ÃºÃ»Å©á¹¹Å«á¹»ÅüÇÇÇÇủůűÇÈÈÆ°á»«á»©á»¯á»á»±á»¥á¹³Å³á¹·á¹µÊ" 4003}, { 4004 base: "v", 4005 letters: "vâ¥ï½á¹½á¹¿ÊêÊ" 4006}, { 4007 base: "vy", 4008 letters: "ê¡" 4009}, { 4010 base: "w", 4011 letters: "wâ¦ï½áºáºÅµáºáº áºáºâ±³" 4012}, { 4013 base: "x", 4014 letters: "xâ§ï½áºáº" 4015}, { 4016 base: "y", 4017 letters: "yâ¨ï½á»³Ã½Å·á»¹È³áºÃ¿á»·áºá»µÆ´Éỿ" 4018}, { 4019 base: "z", 4020 letters: "zâ©ï½ÅºáºÅ¼Å¾áºáºÆ¶È¥Éⱬê£" 4021}]; 4022var anyDiacritic = new RegExp("[" + diacritics.map(function(d) { 4023 return d.letters; 4024}).join("") + "]", "g"); 4025var diacriticToBase = {}; 4026for (i = 0; i < diacritics.length; i++) { 4027 diacritic = diacritics[i]; 4028 for (j = 0; j < diacritic.letters.length; j++) { 4029 diacriticToBase[diacritic.letters[j]] = diacritic.base; 4030 } 4031} 4032var diacritic; 4033var j; 4034var i; 4035var stripDiacritics = function stripDiacritics2(str) { 4036 return str.replace(anyDiacritic, function(match2) { 4037 return diacriticToBase[match2]; 4038 }); 4039}; 4040var memoizedStripDiacriticsForInput = memoizeOne(stripDiacritics); 4041var trimString = function trimString2(str) { 4042 return str.replace(/^\s+|\s+$/g, ""); 4043}; 4044var defaultStringify = function defaultStringify2(option) { 4045 return "".concat(option.label, " ").concat(option.value); 4046}; 4047var createFilter = function createFilter2(config) { 4048 return function(option, rawInput) { 4049 if (option.data.__isNew__) 4050 return true; 4051 var _ignoreCase$ignoreAcc = _objectSpread2({ 4052 ignoreCase: true, 4053 ignoreAccents: true, 4054 stringify: defaultStringify, 4055 trim: true, 4056 matchFrom: "any" 4057 }, config), ignoreCase = _ignoreCase$ignoreAcc.ignoreCase, ignoreAccents = _ignoreCase$ignoreAcc.ignoreAccents, stringify2 = _ignoreCase$ignoreAcc.stringify, trim2 = _ignoreCase$ignoreAcc.trim, matchFrom = _ignoreCase$ignoreAcc.matchFrom; 4058 var input = trim2 ? trimString(rawInput) : rawInput; 4059 var candidate = trim2 ? trimString(stringify2(option)) : stringify2(option); 4060 if (ignoreCase) { 4061 input = input.toLowerCase(); 4062 candidate = candidate.toLowerCase(); 4063 } 4064 if (ignoreAccents) { 4065 input = memoizedStripDiacriticsForInput(input); 4066 candidate = stripDiacritics(candidate); 4067 } 4068 return matchFrom === "start" ? candidate.substr(0, input.length) === input : candidate.indexOf(input) > -1; 4069 }; 4070}; 4071var _excluded4 = ["innerRef"]; 4072function DummyInput(_ref3) { 4073 var innerRef = _ref3.innerRef, props = _objectWithoutProperties(_ref3, _excluded4); 4074 var filteredProps = removeProps(props, "onExited", "in", "enter", "exit", "appear"); 4075 return jsx("input", _extends({ 4076 ref: innerRef 4077 }, filteredProps, { 4078 css: css({ 4079 label: "dummyInput", 4080 // get rid of any default styles 4081 background: 0, 4082 border: 0, 4083 // important! this hides the flashing cursor 4084 caretColor: "transparent", 4085 fontSize: "inherit", 4086 gridArea: "1 / 1 / 2 / 3", 4087 outline: 0, 4088 padding: 0, 4089 // important! without `width` browsers won't allow focus 4090 width: 1, 4091 // remove cursor on desktop 4092 color: "transparent", 4093 // remove cursor on mobile whilst maintaining "scroll into view" behaviour 4094 left: -100, 4095 opacity: 0, 4096 position: "relative", 4097 transform: "scale(.01)" 4098 }, true ? "" : ";label:DummyInput;", true ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIk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BjYXJldENvbG9yOiAndHJhbnNwYXJlbnQnLFxuICAgICAgICBmb250U2l6ZTogJ2luaGVyaXQnLFxuICAgICAgICBncmlkQXJlYTogJzEgLyAxIC8gMiAvIDMnLFxuICAgICAgICBvdXRsaW5lOiAwLFxuICAgICAgICBwYWRkaW5nOiAwLFxuICAgICAgICAvLyBpbXBvcnRhbnQhIHdpdGhvdXQgYHdpZHRoYCBicm93c2VycyB3b24ndCBhbGxvdyBmb2N1c1xuICAgICAgICB3aWR0aDogMSxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIGRlc2t0b3BcbiAgICAgICAgY29sb3I6ICd0cmFuc3BhcmVudCcsXG5cbiAgICAgICAgLy8gcmVtb3ZlIGN1cnNvciBvbiBtb2JpbGUgd2hpbHN0IG1haW50YWluaW5nIFwic2Nyb2xsIGludG8gdmlld1wiIGJlaGF2aW91clxuICAgICAgICBsZWZ0OiAtMTAwLFxuICAgICAgICBvcGFjaXR5OiAwLFxuICAgICAgICBwb3NpdGlvbjogJ3JlbGF0aXZlJyxcbiAgICAgICAgdHJhbnNmb3JtOiAnc2NhbGUoLjAxKScsXG4gICAgICB9fVxuICAgIC8+XG4gICk7XG59XG4iXX0= */") 4099 })); 4100} 4101var cancelScroll = function cancelScroll2(event) { 4102 event.preventDefault(); 4103 event.stopPropagation(); 4104}; 4105function useScrollCapture(_ref3) { 4106 var isEnabled = _ref3.isEnabled, onBottomArrive = _ref3.onBottomArrive, onBottomLeave = _ref3.onBottomLeave, onTopArrive = _ref3.onTopArrive, onTopLeave = _ref3.onTopLeave; 4107 var isBottom = (0, import_react6.useRef)(false); 4108 var isTop = (0, import_react6.useRef)(false); 4109 var touchStart = (0, import_react6.useRef)(0); 4110 var scrollTarget = (0, import_react6.useRef)(null); 4111 var handleEventDelta = (0, import_react6.useCallback)(function(event, delta) { 4112 if (scrollTarget.current === null) 4113 return; 4114 var _scrollTarget$current = scrollTarget.current, scrollTop = _scrollTarget$current.scrollTop, scrollHeight = _scrollTarget$current.scrollHeight, clientHeight = _scrollTarget$current.clientHeight; 4115 var target = scrollTarget.current; 4116 var isDeltaPositive = delta > 0; 4117 var availableScroll = scrollHeight - clientHeight - scrollTop; 4118 var shouldCancelScroll = false; 4119 if (availableScroll > delta && isBottom.current) { 4120 if (onBottomLeave) 4121 onBottomLeave(event); 4122 isBottom.current = false; 4123 } 4124 if (isDeltaPositive && isTop.current) { 4125 if (onTopLeave) 4126 onTopLeave(event); 4127 isTop.current = false; 4128 } 4129 if (isDeltaPositive && delta > availableScroll) { 4130 if (onBottomArrive && !isBottom.current) { 4131 onBottomArrive(event); 4132 } 4133 target.scrollTop = scrollHeight; 4134 shouldCancelScroll = true; 4135 isBottom.current = true; 4136 } else if (!isDeltaPositive && -delta > scrollTop) { 4137 if (onTopArrive && !isTop.current) { 4138 onTopArrive(event); 4139 } 4140 target.scrollTop = 0; 4141 shouldCancelScroll = true; 4142 isTop.current = true; 4143 } 4144 if (shouldCancelScroll) { 4145 cancelScroll(event); 4146 } 4147 }, [onBottomArrive, onBottomLeave, onTopArrive, onTopLeave]); 4148 var onWheel = (0, import_react6.useCallback)(function(event) { 4149 handleEventDelta(event, event.deltaY); 4150 }, [handleEventDelta]); 4151 var onTouchStart = (0, import_react6.useCallback)(function(event) { 4152 touchStart.current = event.changedTouches[0].clientY; 4153 }, []); 4154 var onTouchMove = (0, import_react6.useCallback)(function(event) { 4155 var deltaY = touchStart.current - event.changedTouches[0].clientY; 4156 handleEventDelta(event, deltaY); 4157 }, [handleEventDelta]); 4158 var startListening = (0, import_react6.useCallback)(function(el) { 4159 if (!el) 4160 return; 4161 var notPassive = supportsPassiveEvents ? { 4162 passive: false 4163 } : false; 4164 el.addEventListener("wheel", onWheel, notPassive); 4165 el.addEventListener("touchstart", onTouchStart, notPassive); 4166 el.addEventListener("touchmove", onTouchMove, notPassive); 4167 }, [onTouchMove, onTouchStart, onWheel]); 4168 var stopListening = (0, import_react6.useCallback)(function(el) { 4169 if (!el) 4170 return; 4171 el.removeEventListener("wheel", onWheel, false); 4172 el.removeEventListener("touchstart", onTouchStart, false); 4173 el.removeEventListener("touchmove", onTouchMove, false); 4174 }, [onTouchMove, onTouchStart, onWheel]); 4175 (0, import_react6.useEffect)(function() { 4176 if (!isEnabled) 4177 return; 4178 var element = scrollTarget.current; 4179 startListening(element); 4180 return function() { 4181 stopListening(element); 4182 }; 4183 }, [isEnabled, startListening, stopListening]); 4184 return function(element) { 4185 scrollTarget.current = element; 4186 }; 4187} 4188var STYLE_KEYS = ["boxSizing", "height", "overflow", "paddingRight", "position"]; 4189var LOCK_STYLES = { 4190 boxSizing: "border-box", 4191 // account for possible declaration `width: 100%;` on body 4192 overflow: "hidden", 4193 position: "relative", 4194 height: "100%" 4195}; 4196function preventTouchMove(e) { 4197 e.preventDefault(); 4198} 4199function allowTouchMove(e) { 4200 e.stopPropagation(); 4201} 4202function preventInertiaScroll() { 4203 var top = this.scrollTop; 4204 var totalScroll = this.scrollHeight; 4205 var currentScroll = top + this.offsetHeight; 4206 if (top === 0) { 4207 this.scrollTop = 1; 4208 } else if (currentScroll === totalScroll) { 4209 this.scrollTop = top - 1; 4210 } 4211} 4212function isTouchDevice() { 4213 return "ontouchstart" in window || navigator.maxTouchPoints; 4214} 4215var canUseDOM = !!(typeof window !== "undefined" && window.document && window.document.createElement); 4216var activeScrollLocks = 0; 4217var listenerOptions = { 4218 capture: false, 4219 passive: false 4220}; 4221function useScrollLock(_ref3) { 4222 var isEnabled = _ref3.isEnabled, _ref$accountForScroll = _ref3.accountForScrollbars, accountForScrollbars = _ref$accountForScroll === void 0 ? true : _ref$accountForScroll; 4223 var originalStyles = (0, import_react6.useRef)({}); 4224 var scrollTarget = (0, import_react6.useRef)(null); 4225 var addScrollLock = (0, import_react6.useCallback)(function(touchScrollTarget) { 4226 if (!canUseDOM) 4227 return; 4228 var target = document.body; 4229 var targetStyle = target && target.style; 4230 if (accountForScrollbars) { 4231 STYLE_KEYS.forEach(function(key) { 4232 var val = targetStyle && targetStyle[key]; 4233 originalStyles.current[key] = val; 4234 }); 4235 } 4236 if (accountForScrollbars && activeScrollLocks < 1) { 4237 var currentPadding = parseInt(originalStyles.current.paddingRight, 10) || 0; 4238 var clientWidth = document.body ? document.body.clientWidth : 0; 4239 var adjustedPadding = window.innerWidth - clientWidth + currentPadding || 0; 4240 Object.keys(LOCK_STYLES).forEach(function(key) { 4241 var val = LOCK_STYLES[key]; 4242 if (targetStyle) { 4243 targetStyle[key] = val; 4244 } 4245 }); 4246 if (targetStyle) { 4247 targetStyle.paddingRight = "".concat(adjustedPadding, "px"); 4248 } 4249 } 4250 if (target && isTouchDevice()) { 4251 target.addEventListener("touchmove", preventTouchMove, listenerOptions); 4252 if (touchScrollTarget) { 4253 touchScrollTarget.addEventListener("touchstart", preventInertiaScroll, listenerOptions); 4254 touchScrollTarget.addEventListener("touchmove", allowTouchMove, listenerOptions); 4255 } 4256 } 4257 activeScrollLocks += 1; 4258 }, [accountForScrollbars]); 4259 var removeScrollLock = (0, import_react6.useCallback)(function(touchScrollTarget) { 4260 if (!canUseDOM) 4261 return; 4262 var target = document.body; 4263 var targetStyle = target && target.style; 4264 activeScrollLocks = Math.max(activeScrollLocks - 1, 0); 4265 if (accountForScrollbars && activeScrollLocks < 1) { 4266 STYLE_KEYS.forEach(function(key) { 4267 var val = originalStyles.current[key]; 4268 if (targetStyle) { 4269 targetStyle[key] = val; 4270 } 4271 }); 4272 } 4273 if (target && isTouchDevice()) { 4274 target.removeEventListener("touchmove", preventTouchMove, listenerOptions); 4275 if (touchScrollTarget) { 4276 touchScrollTarget.removeEventListener("touchstart", preventInertiaScroll, listenerOptions); 4277 touchScrollTarget.removeEventListener("touchmove", allowTouchMove, listenerOptions); 4278 } 4279 } 4280 }, [accountForScrollbars]); 4281 (0, import_react6.useEffect)(function() { 4282 if (!isEnabled) 4283 return; 4284 var element = scrollTarget.current; 4285 addScrollLock(element); 4286 return function() { 4287 removeScrollLock(element); 4288 }; 4289 }, [isEnabled, addScrollLock, removeScrollLock]); 4290 return function(element) { 4291 scrollTarget.current = element; 4292 }; 4293} 4294var blurSelectInput = function blurSelectInput2() { 4295 return document.activeElement && document.activeElement.blur(); 4296}; 4297var _ref2$1 = true ? { 4298 name: "1kfdb0e", 4299 styles: "position:fixed;left:0;bottom:0;right:0;top:0" 4300} : { 4301 name: "bp8cua-ScrollManager", 4302 styles: "position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;", 4303 map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQStDVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2sgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21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m9sbENhcHR1cmVUYXJnZXQoZWxlbWVudCk7XG4gICAgc2V0U2Nyb2xsTG9ja1RhcmdldChlbGVtZW50KTtcbiAgfTtcblxuICByZXR1cm4gKFxuICAgIDxGcmFnbWVudD5cbiAgICAgIHtsb2NrRW5hYmxlZCAmJiAoXG4gICAgICAgIDxkaXZcbiAgICAgICAgICBvbkNsaWNrPXtibHVyU2VsZWN0SW5wdXR9XG4gICAgICAgICAgY3NzPXt7IHBvc2l0aW9uOiAnZml4ZWQnLCBsZWZ0OiAwLCBib3R0b206IDAsIHJpZ2h0OiAwLCB0b3A6IDAgfX1cbiAgICAgICAgLz5cbiAgICAgICl9XG4gICAgICB7Y2hpbGRyZW4odGFyZ2V0UmVmKX1cbiAgICA8L0ZyYWdtZW50PlxuICApO1xufVxuIl19 */", 4304 toString: _EMOTION_STRINGIFIED_CSS_ERROR__$1 4305}; 4306function ScrollManager(_ref3) { 4307 var children = _ref3.children, lockEnabled = _ref3.lockEnabled, _ref$captureEnabled = _ref3.captureEnabled, captureEnabled = _ref$captureEnabled === void 0 ? true : _ref$captureEnabled, onBottomArrive = _ref3.onBottomArrive, onBottomLeave = _ref3.onBottomLeave, onTopArrive = _ref3.onTopArrive, onTopLeave = _ref3.onTopLeave; 4308 var setScrollCaptureTarget = useScrollCapture({ 4309 isEnabled: captureEnabled, 4310 onBottomArrive, 4311 onBottomLeave, 4312 onTopArrive, 4313 onTopLeave 4314 }); 4315 var setScrollLockTarget = useScrollLock({ 4316 isEnabled: lockEnabled 4317 }); 4318 var targetRef = function targetRef2(element) { 4319 setScrollCaptureTarget(element); 4320 setScrollLockTarget(element); 4321 }; 4322 return jsx(import_react6.Fragment, null, lockEnabled && jsx("div", { 4323 onClick: blurSelectInput, 4324 css: _ref2$1 4325 }), children(targetRef)); 4326} 4327var _ref22 = true ? { 4328 name: "1a0ro4n-requiredInput", 4329 styles: "label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%" 4330} : { 4331 name: "5kkxb2-requiredInput-RequiredInput", 4332 styles: "label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;", 4333 map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */", 4334 toString: _EMOTION_STRINGIFIED_CSS_ERROR__ 4335}; 4336var RequiredInput = function RequiredInput2(_ref3) { 4337 var name = _ref3.name, onFocus2 = _ref3.onFocus; 4338 return jsx("input", { 4339 required: true, 4340 name, 4341 tabIndex: -1, 4342 "aria-hidden": "true", 4343 onFocus: onFocus2, 4344 css: _ref22, 4345 value: "", 4346 onChange: function onChange2() { 4347 } 4348 }); 4349}; 4350var RequiredInput$1 = RequiredInput; 4351var formatGroupLabel = function formatGroupLabel2(group) { 4352 return group.label; 4353}; 4354var getOptionLabel$1 = function getOptionLabel(option) { 4355 return option.label; 4356}; 4357var getOptionValue$1 = function getOptionValue(option) { 4358 return option.value; 4359}; 4360var isOptionDisabled = function isOptionDisabled2(option) { 4361 return !!option.isDisabled; 4362}; 4363var defaultStyles = { 4364 clearIndicator: clearIndicatorCSS, 4365 container: containerCSS, 4366 control: css$1, 4367 dropdownIndicator: dropdownIndicatorCSS, 4368 group: groupCSS, 4369 groupHeading: groupHeadingCSS, 4370 indicatorsContainer: indicatorsContainerCSS, 4371 indicatorSeparator: indicatorSeparatorCSS, 4372 input: inputCSS, 4373 loadingIndicator: loadingIndicatorCSS, 4374 loadingMessage: loadingMessageCSS, 4375 menu: menuCSS, 4376 menuList: menuListCSS, 4377 menuPortal: menuPortalCSS, 4378 multiValue: multiValueCSS, 4379 multiValueLabel: multiValueLabelCSS, 4380 multiValueRemove: multiValueRemoveCSS, 4381 noOptionsMessage: noOptionsMessageCSS, 4382 option: optionCSS, 4383 placeholder: placeholderCSS, 4384 singleValue: css3, 4385 valueContainer: valueContainerCSS 4386}; 4387function mergeStyles(source) { 4388 var target = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; 4389 var styles = _objectSpread2({}, source); 4390 Object.keys(target).forEach(function(keyAsString) { 4391 var key = keyAsString; 4392 if (source[key]) { 4393 styles[key] = function(rsCss, props) { 4394 return target[key](source[key](rsCss, props), props); 4395 }; 4396 } else { 4397 styles[key] = target[key]; 4398 } 4399 }); 4400 return styles; 4401} 4402var colors = { 4403 primary: "#2684FF", 4404 primary75: "#4C9AFF", 4405 primary50: "#B2D4FF", 4406 primary25: "#DEEBFF", 4407 danger: "#DE350B", 4408 dangerLight: "#FFBDAD", 4409 neutral0: "hsl(0, 0%, 100%)", 4410 neutral5: "hsl(0, 0%, 95%)", 4411 neutral10: "hsl(0, 0%, 90%)", 4412 neutral20: "hsl(0, 0%, 80%)", 4413 neutral30: "hsl(0, 0%, 70%)", 4414 neutral40: "hsl(0, 0%, 60%)", 4415 neutral50: "hsl(0, 0%, 50%)", 4416 neutral60: "hsl(0, 0%, 40%)", 4417 neutral70: "hsl(0, 0%, 30%)", 4418 neutral80: "hsl(0, 0%, 20%)", 4419 neutral90: "hsl(0, 0%, 10%)" 4420}; 4421var borderRadius = 4; 4422var baseUnit = 4; 4423var controlHeight = 38; 4424var menuGutter = baseUnit * 2; 4425var spacing = { 4426 baseUnit, 4427 controlHeight, 4428 menuGutter 4429}; 4430var defaultTheme = { 4431 borderRadius, 4432 colors, 4433 spacing 4434}; 4435var defaultProps = { 4436 "aria-live": "polite", 4437 backspaceRemovesValue: true, 4438 blurInputOnSelect: isTouchCapable(), 4439 captureMenuScroll: !isTouchCapable(), 4440 classNames: {}, 4441 closeMenuOnSelect: true, 4442 closeMenuOnScroll: false, 4443 components: {}, 4444 controlShouldRenderValue: true, 4445 escapeClearsValue: false, 4446 filterOption: createFilter(), 4447 formatGroupLabel, 4448 getOptionLabel: getOptionLabel$1, 4449 getOptionValue: getOptionValue$1, 4450 isDisabled: false, 4451 isLoading: false, 4452 isMulti: false, 4453 isRtl: false, 4454 isSearchable: true, 4455 isOptionDisabled, 4456 loadingMessage: function loadingMessage() { 4457 return "Loading..."; 4458 }, 4459 maxMenuHeight: 300, 4460 minMenuHeight: 140, 4461 menuIsOpen: false, 4462 menuPlacement: "bottom", 4463 menuPosition: "absolute", 4464 menuShouldBlockScroll: false, 4465 menuShouldScrollIntoView: !isMobileDevice(), 4466 noOptionsMessage: function noOptionsMessage() { 4467 return "No options"; 4468 }, 4469 openMenuOnFocus: false, 4470 openMenuOnClick: true, 4471 options: [], 4472 pageSize: 5, 4473 placeholder: "Select...", 4474 screenReaderStatus: function screenReaderStatus(_ref3) { 4475 var count = _ref3.count; 4476 return "".concat(count, " result").concat(count !== 1 ? "s" : "", " available"); 4477 }, 4478 styles: {}, 4479 tabIndex: 0, 4480 tabSelectsValue: true, 4481 unstyled: false 4482}; 4483function toCategorizedOption(props, option, selectValue, index2) { 4484 var isDisabled = _isOptionDisabled(props, option, selectValue); 4485 var isSelected = _isOptionSelected(props, option, selectValue); 4486 var label = getOptionLabel2(props, option); 4487 var value = getOptionValue2(props, option); 4488 return { 4489 type: "option", 4490 data: option, 4491 isDisabled, 4492 isSelected, 4493 label, 4494 value, 4495 index: index2 4496 }; 4497} 4498function buildCategorizedOptions(props, selectValue) { 4499 return props.options.map(function(groupOrOption, groupOrOptionIndex) { 4500 if ("options" in groupOrOption) { 4501 var categorizedOptions = groupOrOption.options.map(function(option, optionIndex) { 4502 return toCategorizedOption(props, option, selectValue, optionIndex); 4503 }).filter(function(categorizedOption2) { 4504 return isFocusable(props, categorizedOption2); 4505 }); 4506 return categorizedOptions.length > 0 ? { 4507 type: "group", 4508 data: groupOrOption, 4509 options: categorizedOptions, 4510 index: groupOrOptionIndex 4511 } : void 0; 4512 } 4513 var categorizedOption = toCategorizedOption(props, groupOrOption, selectValue, groupOrOptionIndex); 4514 return isFocusable(props, categorizedOption) ? categorizedOption : void 0; 4515 }).filter(notNullish); 4516} 4517function buildFocusableOptionsFromCategorizedOptions(categorizedOptions) { 4518 return categorizedOptions.reduce(function(optionsAccumulator, categorizedOption) { 4519 if (categorizedOption.type === "group") { 4520 optionsAccumulator.push.apply(optionsAccumulator, _toConsumableArray(categorizedOption.options.map(function(option) { 4521 return option.data; 4522 }))); 4523 } else { 4524 optionsAccumulator.push(categorizedOption.data); 4525 } 4526 return optionsAccumulator; 4527 }, []); 4528} 4529function buildFocusableOptions(props, selectValue) { 4530 return buildFocusableOptionsFromCategorizedOptions(buildCategorizedOptions(props, selectValue)); 4531} 4532function isFocusable(props, categorizedOption) { 4533 var _props$inputValue = props.inputValue, inputValue = _props$inputValue === void 0 ? "" : _props$inputValue; 4534 var data = categorizedOption.data, isSelected = categorizedOption.isSelected, label = categorizedOption.label, value = categorizedOption.value; 4535 return (!shouldHideSelectedOptions(props) || !isSelected) && _filterOption(props, { 4536 label, 4537 value, 4538 data 4539 }, inputValue); 4540} 4541function getNextFocusedValue(state, nextSelectValue) { 4542 var focusedValue = state.focusedValue, lastSelectValue = state.selectValue; 4543 var lastFocusedIndex = lastSelectValue.indexOf(focusedValue); 4544 if (lastFocusedIndex > -1) { 4545 var nextFocusedIndex = nextSelectValue.indexOf(focusedValue); 4546 if (nextFocusedIndex > -1) { 4547 return focusedValue; 4548 } else if (lastFocusedIndex < nextSelectValue.length) { 4549 return nextSelectValue[lastFocusedIndex]; 4550 } 4551 } 4552 return null; 4553} 4554function getNextFocusedOption(state, options2) { 4555 var lastFocusedOption = state.focusedOption; 4556 return lastFocusedOption && options2.indexOf(lastFocusedOption) > -1 ? lastFocusedOption : options2[0]; 4557} 4558var getOptionLabel2 = function getOptionLabel3(props, data) { 4559 return props.getOptionLabel(data); 4560}; 4561var getOptionValue2 = function getOptionValue3(props, data) { 4562 return props.getOptionValue(data); 4563}; 4564function _isOptionDisabled(props, option, selectValue) { 4565 return typeof props.isOptionDisabled === "function" ? props.isOptionDisabled(option, selectValue) : false; 4566} 4567function _isOptionSelected(props, option, selectValue) { 4568 if (selectValue.indexOf(option) > -1) 4569 return true; 4570 if (typeof props.isOptionSelected === "function") { 4571 return props.isOptionSelected(option, selectValue); 4572 } 4573 var candidate = getOptionValue2(props, option); 4574 return selectValue.some(function(i) { 4575 return getOptionValue2(props, i) === candidate; 4576 }); 4577} 4578function _filterOption(props, option, inputValue) { 4579 return props.filterOption ? props.filterOption(option, inputValue) : true; 4580} 4581var shouldHideSelectedOptions = function shouldHideSelectedOptions2(props) { 4582 var hideSelectedOptions = props.hideSelectedOptions, isMulti = props.isMulti; 4583 if (hideSelectedOptions === void 0) 4584 return isMulti; 4585 return hideSelectedOptions; 4586}; 4587var instanceId = 1; 4588var Select = function(_Component) { 4589 _inherits(Select2, _Component); 4590 var _super = _createSuper(Select2); 4591 function Select2(_props) { 4592 var _this; 4593 _classCallCheck(this, Select2); 4594 _this = _super.call(this, _props); 4595 _this.state = { 4596 ariaSelection: null, 4597 focusedOption: null, 4598 focusedValue: null, 4599 inputIsHidden: false, 4600 isFocused: false, 4601 selectValue: [], 4602 clearFocusValueOnUpdate: false, 4603 prevWasFocused: false, 4604 inputIsHiddenAfterUpdate: void 0, 4605 prevProps: void 0 4606 }; 4607 _this.blockOptionHover = false; 4608 _this.isComposing = false; 4609 _this.commonProps = void 0; 4610 _this.initialTouchX = 0; 4611 _this.initialTouchY = 0; 4612 _this.instancePrefix = ""; 4613 _this.openAfterFocus = false; 4614 _this.scrollToFocusedOptionOnUpdate = false; 4615 _this.userIsDragging = void 0; 4616 _this.controlRef = null; 4617 _this.getControlRef = function(ref) { 4618 _this.controlRef = ref; 4619 }; 4620 _this.focusedOptionRef = null; 4621 _this.getFocusedOptionRef = function(ref) { 4622 _this.focusedOptionRef = ref; 4623 }; 4624 _this.menuListRef = null; 4625 _this.getMenuListRef = function(ref) { 4626 _this.menuListRef = ref; 4627 }; 4628 _this.inputRef = null; 4629 _this.getInputRef = function(ref) { 4630 _this.inputRef = ref; 4631 }; 4632 _this.focus = _this.focusInput; 4633 _this.blur = _this.blurInput; 4634 _this.onChange = function(newValue, actionMeta) { 4635 var _this$props = _this.props, onChange2 = _this$props.onChange, name = _this$props.name; 4636 actionMeta.name = name; 4637 _this.ariaOnChange(newValue, actionMeta); 4638 onChange2(newValue, actionMeta); 4639 }; 4640 _this.setValue = function(newValue, action, option) { 4641 var _this$props2 = _this.props, closeMenuOnSelect = _this$props2.closeMenuOnSelect, isMulti = _this$props2.isMulti, inputValue = _this$props2.inputValue; 4642 _this.onInputChange("", { 4643 action: "set-value", 4644 prevInputValue: inputValue 4645 }); 4646 if (closeMenuOnSelect) { 4647 _this.setState({ 4648 inputIsHiddenAfterUpdate: !isMulti 4649 }); 4650 _this.onMenuClose(); 4651 } 4652 _this.setState({ 4653 clearFocusValueOnUpdate: true 4654 }); 4655 _this.onChange(newValue, { 4656 action, 4657 option 4658 }); 4659 }; 4660 _this.selectOption = function(newValue) { 4661 var _this$props3 = _this.props, blurInputOnSelect = _this$props3.blurInputOnSelect, isMulti = _this$props3.isMulti, name = _this$props3.name; 4662 var selectValue = _this.state.selectValue; 4663 var deselected = isMulti && _this.isOptionSelected(newValue, selectValue); 4664 var isDisabled = _this.isOptionDisabled(newValue, selectValue); 4665 if (deselected) { 4666 var candidate = _this.getOptionValue(newValue); 4667 _this.setValue(multiValueAsValue(selectValue.filter(function(i) { 4668 return _this.getOptionValue(i) !== candidate; 4669 })), "deselect-option", newValue); 4670 } else if (!isDisabled) { 4671 if (isMulti) { 4672 _this.setValue(multiValueAsValue([].concat(_toConsumableArray(selectValue), [newValue])), "select-option", newValue); 4673 } else { 4674 _this.setValue(singleValueAsValue(newValue), "select-option"); 4675 } 4676 } else { 4677 _this.ariaOnChange(singleValueAsValue(newValue), { 4678 action: "select-option", 4679 option: newValue, 4680 name 4681 }); 4682 return; 4683 } 4684 if (blurInputOnSelect) { 4685 _this.blurInput(); 4686 } 4687 }; 4688 _this.removeValue = function(removedValue) { 4689 var isMulti = _this.props.isMulti; 4690 var selectValue = _this.state.selectValue; 4691 var candidate = _this.getOptionValue(removedValue); 4692 var newValueArray = selectValue.filter(function(i) { 4693 return _this.getOptionValue(i) !== candidate; 4694 }); 4695 var newValue = valueTernary(isMulti, newValueArray, newValueArray[0] || null); 4696 _this.onChange(newValue, { 4697 action: "remove-value", 4698 removedValue 4699 }); 4700 _this.focusInput(); 4701 }; 4702 _this.clearValue = function() { 4703 var selectValue = _this.state.selectValue; 4704 _this.onChange(valueTernary(_this.props.isMulti, [], null), { 4705 action: "clear", 4706 removedValues: selectValue 4707 }); 4708 }; 4709 _this.popValue = function() { 4710 var isMulti = _this.props.isMulti; 4711 var selectValue = _this.state.selectValue; 4712 var lastSelectedValue = selectValue[selectValue.length - 1]; 4713 var newValueArray = selectValue.slice(0, selectValue.length - 1); 4714 var newValue = valueTernary(isMulti, newValueArray, newValueArray[0] || null); 4715 _this.onChange(newValue, { 4716 action: "pop-value", 4717 removedValue: lastSelectedValue 4718 }); 4719 }; 4720 _this.getValue = function() { 4721 return _this.state.selectValue; 4722 }; 4723 _this.cx = function() { 4724 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { 4725 args[_key] = arguments[_key]; 4726 } 4727 return classNames.apply(void 0, [_this.props.classNamePrefix].concat(args)); 4728 }; 4729 _this.getOptionLabel = function(data) { 4730 return getOptionLabel2(_this.props, data); 4731 }; 4732 _this.getOptionValue = function(data) { 4733 return getOptionValue2(_this.props, data); 4734 }; 4735 _this.getStyles = function(key, props) { 4736 var unstyled = _this.props.unstyled; 4737 var base = defaultStyles[key](props, unstyled); 4738 base.boxSizing = "border-box"; 4739 var custom = _this.props.styles[key]; 4740 return custom ? custom(base, props) : base; 4741 }; 4742 _this.getClassNames = function(key, props) { 4743 var _this$props$className, _this$props$className2; 4744 return (_this$props$className = (_this$props$className2 = _this.props.classNames)[key]) === null || _this$props$className === void 0 ? void 0 : _this$props$className.call(_this$props$className2, props); 4745 }; 4746 _this.getElementId = function(element) { 4747 return "".concat(_this.instancePrefix, "-").concat(element); 4748 }; 4749 _this.getComponents = function() { 4750 return defaultComponents(_this.props); 4751 }; 4752 _this.buildCategorizedOptions = function() { 4753 return buildCategorizedOptions(_this.props, _this.state.selectValue); 4754 }; 4755 _this.getCategorizedOptions = function() { 4756 return _this.props.menuIsOpen ? _this.buildCategorizedOptions() : []; 4757 }; 4758 _this.buildFocusableOptions = function() { 4759 return buildFocusableOptionsFromCategorizedOptions(_this.buildCategorizedOptions()); 4760 }; 4761 _this.getFocusableOptions = function() { 4762 return _this.props.menuIsOpen ? _this.buildFocusableOptions() : []; 4763 }; 4764 _this.ariaOnChange = function(value, actionMeta) { 4765 _this.setState({ 4766 ariaSelection: _objectSpread2({ 4767 value 4768 }, actionMeta) 4769 }); 4770 }; 4771 _this.onMenuMouseDown = function(event) { 4772 if (event.button !== 0) { 4773 return; 4774 } 4775 event.stopPropagation(); 4776 event.preventDefault(); 4777 _this.focusInput(); 4778 }; 4779 _this.onMenuMouseMove = function(event) { 4780 _this.blockOptionHover = false; 4781 }; 4782 _this.onControlMouseDown = function(event) { 4783 if (event.defaultPrevented) { 4784 return; 4785 } 4786 var openMenuOnClick = _this.props.openMenuOnClick; 4787 if (!_this.state.isFocused) { 4788 if (openMenuOnClick) { 4789 _this.openAfterFocus = true; 4790 } 4791 _this.focusInput(); 4792 } else if (!_this.props.menuIsOpen) { 4793 if (openMenuOnClick) { 4794 _this.openMenu("first"); 4795 } 4796 } else { 4797 if (event.target.tagName !== "INPUT" && event.target.tagName !== "TEXTAREA") { 4798 _this.onMenuClose(); 4799 } 4800 } 4801 if (event.target.tagName !== "INPUT" && event.target.tagName !== "TEXTAREA") { 4802 event.preventDefault(); 4803 } 4804 }; 4805 _this.onDropdownIndicatorMouseDown = function(event) { 4806 if (event && event.type === "mousedown" && event.button !== 0) { 4807 return; 4808 } 4809 if (_this.props.isDisabled) 4810 return; 4811 var _this$props4 = _this.props, isMulti = _this$props4.isMulti, menuIsOpen = _this$props4.menuIsOpen; 4812 _this.focusInput(); 4813 if (menuIsOpen) { 4814 _this.setState({ 4815 inputIsHiddenAfterUpdate: !isMulti 4816 }); 4817 _this.onMenuClose(); 4818 } else { 4819 _this.openMenu("first"); 4820 } 4821 event.preventDefault(); 4822 }; 4823 _this.onClearIndicatorMouseDown = function(event) { 4824 if (event && event.type === "mousedown" && event.button !== 0) { 4825 return; 4826 } 4827 _this.clearValue(); 4828 event.preventDefault(); 4829 _this.openAfterFocus = false; 4830 if (event.type === "touchend") { 4831 _this.focusInput(); 4832 } else { 4833 setTimeout(function() { 4834 return _this.focusInput(); 4835 }); 4836 } 4837 }; 4838 _this.onScroll = function(event) { 4839 if (typeof _this.props.closeMenuOnScroll === "boolean") { 4840 if (event.target instanceof HTMLElement && isDocumentElement(event.target)) { 4841 _this.props.onMenuClose(); 4842 } 4843 } else if (typeof _this.props.closeMenuOnScroll === "function") { 4844 if (_this.props.closeMenuOnScroll(event)) { 4845 _this.props.onMenuClose(); 4846 } 4847 } 4848 }; 4849 _this.onCompositionStart = function() { 4850 _this.isComposing = true; 4851 }; 4852 _this.onCompositionEnd = function() { 4853 _this.isComposing = false; 4854 }; 4855 _this.onTouchStart = function(_ref23) { 4856 var touches = _ref23.touches; 4857 var touch = touches && touches.item(0); 4858 if (!touch) { 4859 return; 4860 } 4861 _this.initialTouchX = touch.clientX; 4862 _this.initialTouchY = touch.clientY; 4863 _this.userIsDragging = false; 4864 }; 4865 _this.onTouchMove = function(_ref3) { 4866 var touches = _ref3.touches; 4867 var touch = touches && touches.item(0); 4868 if (!touch) { 4869 return; 4870 } 4871 var deltaX = Math.abs(touch.clientX - _this.initialTouchX); 4872 var deltaY = Math.abs(touch.clientY - _this.initialTouchY); 4873 var moveThreshold = 5; 4874 _this.userIsDragging = deltaX > moveThreshold || deltaY > moveThreshold; 4875 }; 4876 _this.onTouchEnd = function(event) { 4877 if (_this.userIsDragging) 4878 return; 4879 if (_this.controlRef && !_this.controlRef.contains(event.target) && _this.menuListRef && !_this.menuListRef.contains(event.target)) { 4880 _this.blurInput(); 4881 } 4882 _this.initialTouchX = 0; 4883 _this.initialTouchY = 0; 4884 }; 4885 _this.onControlTouchEnd = function(event) { 4886 if (_this.userIsDragging) 4887 return; 4888 _this.onControlMouseDown(event); 4889 }; 4890 _this.onClearIndicatorTouchEnd = function(event) { 4891 if (_this.userIsDragging) 4892 return; 4893 _this.onClearIndicatorMouseDown(event); 4894 }; 4895 _this.onDropdownIndicatorTouchEnd = function(event) { 4896 if (_this.userIsDragging) 4897 return; 4898 _this.onDropdownIndicatorMouseDown(event); 4899 }; 4900 _this.handleInputChange = function(event) { 4901 var prevInputValue = _this.props.inputValue; 4902 var inputValue = event.currentTarget.value; 4903 _this.setState({ 4904 inputIsHiddenAfterUpdate: false 4905 }); 4906 _this.onInputChange(inputValue, { 4907 action: "input-change", 4908 prevInputValue 4909 }); 4910 if (!_this.props.menuIsOpen) { 4911 _this.onMenuOpen(); 4912 } 4913 }; 4914 _this.onInputFocus = function(event) { 4915 if (_this.props.onFocus) { 4916 _this.props.onFocus(event); 4917 } 4918 _this.setState({ 4919 inputIsHiddenAfterUpdate: false, 4920 isFocused: true 4921 }); 4922 if (_this.openAfterFocus || _this.props.openMenuOnFocus) { 4923 _this.openMenu("first"); 4924 } 4925 _this.openAfterFocus = false; 4926 }; 4927 _this.onInputBlur = function(event) { 4928 var prevInputValue = _this.props.inputValue; 4929 if (_this.menuListRef && _this.menuListRef.contains(document.activeElement)) { 4930 _this.inputRef.focus(); 4931 return; 4932 } 4933 if (_this.props.onBlur) { 4934 _this.props.onBlur(event); 4935 } 4936 _this.onInputChange("", { 4937 action: "input-blur", 4938 prevInputValue 4939 }); 4940 _this.onMenuClose(); 4941 _this.setState({ 4942 focusedValue: null, 4943 isFocused: false 4944 }); 4945 }; 4946 _this.onOptionHover = function(focusedOption) { 4947 if (_this.blockOptionHover || _this.state.focusedOption === focusedOption) { 4948 return; 4949 } 4950 _this.setState({ 4951 focusedOption 4952 }); 4953 }; 4954 _this.shouldHideSelectedOptions = function() { 4955 return shouldHideSelectedOptions(_this.props); 4956 }; 4957 _this.onValueInputFocus = function(e) { 4958 e.preventDefault(); 4959 e.stopPropagation(); 4960 _this.focus(); 4961 }; 4962 _this.onKeyDown = function(event) { 4963 var _this$props5 = _this.props, isMulti = _this$props5.isMulti, backspaceRemovesValue = _this$props5.backspaceRemovesValue, escapeClearsValue = _this$props5.escapeClearsValue, inputValue = _this$props5.inputValue, isClearable = _this$props5.isClearable, isDisabled = _this$props5.isDisabled, menuIsOpen = _this$props5.menuIsOpen, onKeyDown = _this$props5.onKeyDown, tabSelectsValue = _this$props5.tabSelectsValue, openMenuOnFocus = _this$props5.openMenuOnFocus; 4964 var _this$state = _this.state, focusedOption = _this$state.focusedOption, focusedValue = _this$state.focusedValue, selectValue = _this$state.selectValue; 4965 if (isDisabled) 4966 return; 4967 if (typeof onKeyDown === "function") { 4968 onKeyDown(event); 4969 if (event.defaultPrevented) { 4970 return; 4971 } 4972 } 4973 _this.blockOptionHover = true; 4974 switch (event.key) { 4975 case "ArrowLeft": 4976 if (!isMulti || inputValue) 4977 return; 4978 _this.focusValue("previous"); 4979 break; 4980 case "ArrowRight": 4981 if (!isMulti || inputValue) 4982 return; 4983 _this.focusValue("next"); 4984 break; 4985 case "Delete": 4986 case "Backspace": 4987 if (inputValue) 4988 return; 4989 if (focusedValue) { 4990 _this.removeValue(focusedValue); 4991 } else { 4992 if (!backspaceRemovesValue) 4993 return; 4994 if (isMulti) { 4995 _this.popValue(); 4996 } else if (isClearable) { 4997 _this.clearValue(); 4998 } 4999 } 5000 break; 5001 case "Tab": 5002 if (_this.isComposing) 5003 return; 5004 if (event.shiftKey || !menuIsOpen || !tabSelectsValue || !focusedOption || // don't capture the event if the menu opens on focus and the focused 5005 // option is already selected; it breaks the flow of navigation 5006 openMenuOnFocus && _this.isOptionSelected(focusedOption, selectValue)) { 5007 return; 5008 } 5009 _this.selectOption(focusedOption); 5010 break; 5011 case "Enter": 5012 if (event.keyCode === 229) { 5013 break; 5014 } 5015 if (menuIsOpen) { 5016 if (!focusedOption) 5017 return; 5018 if (_this.isComposing) 5019 return; 5020 _this.selectOption(focusedOption); 5021 break; 5022 } 5023 return; 5024 case "Escape": 5025 if (menuIsOpen) { 5026 _this.setState({ 5027 inputIsHiddenAfterUpdate: false 5028 }); 5029 _this.onInputChange("", { 5030 action: "menu-close", 5031 prevInputValue: inputValue 5032 }); 5033 _this.onMenuClose(); 5034 } else if (isClearable && escapeClearsValue) { 5035 _this.clearValue(); 5036 } 5037 break; 5038 case " ": 5039 if (inputValue) { 5040 return; 5041 } 5042 if (!menuIsOpen) { 5043 _this.openMenu("first"); 5044 break; 5045 } 5046 if (!focusedOption) 5047 return; 5048 _this.selectOption(focusedOption); 5049 break; 5050 case "ArrowUp": 5051 if (menuIsOpen) { 5052 _this.focusOption("up"); 5053 } else { 5054 _this.openMenu("last"); 5055 } 5056 break; 5057 case "ArrowDown": 5058 if (menuIsOpen) { 5059 _this.focusOption("down"); 5060 } else { 5061 _this.openMenu("first"); 5062 } 5063 break; 5064 case "PageUp": 5065 if (!menuIsOpen) 5066 return; 5067 _this.focusOption("pageup"); 5068 break; 5069 case "PageDown": 5070 if (!menuIsOpen) 5071 return; 5072 _this.focusOption("pagedown"); 5073 break; 5074 case "Home": 5075 if (!menuIsOpen) 5076 return; 5077 _this.focusOption("first"); 5078 break; 5079 case "End": 5080 if (!menuIsOpen) 5081 return; 5082 _this.focusOption("last"); 5083 break; 5084 default: 5085 return; 5086 } 5087 event.preventDefault(); 5088 }; 5089 _this.instancePrefix = "react-select-" + (_this.props.instanceId || ++instanceId); 5090 _this.state.selectValue = cleanValue(_props.value); 5091 if (_props.menuIsOpen && _this.state.selectValue.length) { 5092 var focusableOptions = _this.buildFocusableOptions(); 5093 var optionIndex = focusableOptions.indexOf(_this.state.selectValue[0]); 5094 _this.state.focusedOption = focusableOptions[optionIndex]; 5095 } 5096 return _this; 5097 } 5098 _createClass(Select2, [{ 5099 key: "componentDidMount", 5100 value: function componentDidMount() { 5101 this.startListeningComposition(); 5102 this.startListeningToTouch(); 5103 if (this.props.closeMenuOnScroll && document && document.addEventListener) { 5104 document.addEventListener("scroll", this.onScroll, true); 5105 } 5106 if (this.props.autoFocus) { 5107 this.focusInput(); 5108 } 5109 if (this.props.menuIsOpen && this.state.focusedOption && this.menuListRef && this.focusedOptionRef) { 5110 scrollIntoView(this.menuListRef, this.focusedOptionRef); 5111 } 5112 } 5113 }, { 5114 key: "componentDidUpdate", 5115 value: function componentDidUpdate(prevProps) { 5116 var _this$props6 = this.props, isDisabled = _this$props6.isDisabled, menuIsOpen = _this$props6.menuIsOpen; 5117 var isFocused = this.state.isFocused; 5118 if ( 5119 // ensure focus is restored correctly when the control becomes enabled 5120 isFocused && !isDisabled && prevProps.isDisabled || // ensure focus is on the Input when the menu opens 5121 isFocused && menuIsOpen && !prevProps.menuIsOpen 5122 ) { 5123 this.focusInput(); 5124 } 5125 if (isFocused && isDisabled && !prevProps.isDisabled) { 5126 this.setState({ 5127 isFocused: false 5128 }, this.onMenuClose); 5129 } else if (!isFocused && !isDisabled && prevProps.isDisabled && this.inputRef === document.activeElement) { 5130 this.setState({ 5131 isFocused: true 5132 }); 5133 } 5134 if (this.menuListRef && this.focusedOptionRef && this.scrollToFocusedOptionOnUpdate) { 5135 scrollIntoView(this.menuListRef, this.focusedOptionRef); 5136 this.scrollToFocusedOptionOnUpdate = false; 5137 } 5138 } 5139 }, { 5140 key: "componentWillUnmount", 5141 value: function componentWillUnmount() { 5142 this.stopListeningComposition(); 5143 this.stopListeningToTouch(); 5144 document.removeEventListener("scroll", this.onScroll, true); 5145 } 5146 // ============================== 5147 // Consumer Handlers 5148 // ============================== 5149 }, { 5150 key: "onMenuOpen", 5151 value: function onMenuOpen() { 5152 this.props.onMenuOpen(); 5153 } 5154 }, { 5155 key: "onMenuClose", 5156 value: function onMenuClose() { 5157 this.onInputChange("", { 5158 action: "menu-close", 5159 prevInputValue: this.props.inputValue 5160 }); 5161 this.props.onMenuClose(); 5162 } 5163 }, { 5164 key: "onInputChange", 5165 value: function onInputChange(newValue, actionMeta) { 5166 this.props.onInputChange(newValue, actionMeta); 5167 } 5168 // ============================== 5169 // Methods 5170 // ============================== 5171 }, { 5172 key: "focusInput", 5173 value: function focusInput() { 5174 if (!this.inputRef) 5175 return; 5176 this.inputRef.focus(); 5177 } 5178 }, { 5179 key: "blurInput", 5180 value: function blurInput() { 5181 if (!this.inputRef) 5182 return; 5183 this.inputRef.blur(); 5184 } 5185 // aliased for consumers 5186 }, { 5187 key: "openMenu", 5188 value: function openMenu(focusOption) { 5189 var _this2 = this; 5190 var _this$state2 = this.state, selectValue = _this$state2.selectValue, isFocused = _this$state2.isFocused; 5191 var focusableOptions = this.buildFocusableOptions(); 5192 var openAtIndex = focusOption === "first" ? 0 : focusableOptions.length - 1; 5193 if (!this.props.isMulti) { 5194 var selectedIndex = focusableOptions.indexOf(selectValue[0]); 5195 if (selectedIndex > -1) { 5196 openAtIndex = selectedIndex; 5197 } 5198 } 5199 this.scrollToFocusedOptionOnUpdate = !(isFocused && this.menuListRef); 5200 this.setState({ 5201 inputIsHiddenAfterUpdate: false, 5202 focusedValue: null, 5203 focusedOption: focusableOptions[openAtIndex] 5204 }, function() { 5205 return _this2.onMenuOpen(); 5206 }); 5207 } 5208 }, { 5209 key: "focusValue", 5210 value: function focusValue(direction) { 5211 var _this$state3 = this.state, selectValue = _this$state3.selectValue, focusedValue = _this$state3.focusedValue; 5212 if (!this.props.isMulti) 5213 return; 5214 this.setState({ 5215 focusedOption: null 5216 }); 5217 var focusedIndex = selectValue.indexOf(focusedValue); 5218 if (!focusedValue) { 5219 focusedIndex = -1; 5220 } 5221 var lastIndex = selectValue.length - 1; 5222 var nextFocus = -1; 5223 if (!selectValue.length) 5224 return; 5225 switch (direction) { 5226 case "previous": 5227 if (focusedIndex === 0) { 5228 nextFocus = 0; 5229 } else if (focusedIndex === -1) { 5230 nextFocus = lastIndex; 5231 } else { 5232 nextFocus = focusedIndex - 1; 5233 } 5234 break; 5235 case "next": 5236 if (focusedIndex > -1 && focusedIndex < lastIndex) { 5237 nextFocus = focusedIndex + 1; 5238 } 5239 break; 5240 } 5241 this.setState({ 5242 inputIsHidden: nextFocus !== -1, 5243 focusedValue: selectValue[nextFocus] 5244 }); 5245 } 5246 }, { 5247 key: "focusOption", 5248 value: function focusOption() { 5249 var direction = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "first"; 5250 var pageSize = this.props.pageSize; 5251 var focusedOption = this.state.focusedOption; 5252 var options2 = this.getFocusableOptions(); 5253 if (!options2.length) 5254 return; 5255 var nextFocus = 0; 5256 var focusedIndex = options2.indexOf(focusedOption); 5257 if (!focusedOption) { 5258 focusedIndex = -1; 5259 } 5260 if (direction === "up") { 5261 nextFocus = focusedIndex > 0 ? focusedIndex - 1 : options2.length - 1; 5262 } else if (direction === "down") { 5263 nextFocus = (focusedIndex + 1) % options2.length; 5264 } else if (direction === "pageup") { 5265 nextFocus = focusedIndex - pageSize; 5266 if (nextFocus < 0) 5267 nextFocus = 0; 5268 } else if (direction === "pagedown") { 5269 nextFocus = focusedIndex + pageSize; 5270 if (nextFocus > options2.length - 1) 5271 nextFocus = options2.length - 1; 5272 } else if (direction === "last") { 5273 nextFocus = options2.length - 1; 5274 } 5275 this.scrollToFocusedOptionOnUpdate = true; 5276 this.setState({ 5277 focusedOption: options2[nextFocus], 5278 focusedValue: null 5279 }); 5280 } 5281 }, { 5282 key: "getTheme", 5283 value: ( 5284 // ============================== 5285 // Getters 5286 // ============================== 5287 function getTheme3() { 5288 if (!this.props.theme) { 5289 return defaultTheme; 5290 } 5291 if (typeof this.props.theme === "function") { 5292 return this.props.theme(defaultTheme); 5293 } 5294 return _objectSpread2(_objectSpread2({}, defaultTheme), this.props.theme); 5295 } 5296 ) 5297 }, { 5298 key: "getCommonProps", 5299 value: function getCommonProps() { 5300 var clearValue = this.clearValue, cx = this.cx, getStyles = this.getStyles, getClassNames = this.getClassNames, getValue = this.getValue, selectOption = this.selectOption, setValue = this.setValue, props = this.props; 5301 var isMulti = props.isMulti, isRtl = props.isRtl, options2 = props.options; 5302 var hasValue = this.hasValue(); 5303 return { 5304 clearValue, 5305 cx, 5306 getStyles, 5307 getClassNames, 5308 getValue, 5309 hasValue, 5310 isMulti, 5311 isRtl, 5312 options: options2, 5313 selectOption, 5314 selectProps: props, 5315 setValue, 5316 theme: this.getTheme() 5317 }; 5318 } 5319 }, { 5320 key: "hasValue", 5321 value: function hasValue() { 5322 var selectValue = this.state.selectValue; 5323 return selectValue.length > 0; 5324 } 5325 }, { 5326 key: "hasOptions", 5327 value: function hasOptions() { 5328 return !!this.getFocusableOptions().length; 5329 } 5330 }, { 5331 key: "isClearable", 5332 value: function isClearable() { 5333 var _this$props7 = this.props, isClearable2 = _this$props7.isClearable, isMulti = _this$props7.isMulti; 5334 if (isClearable2 === void 0) 5335 return isMulti; 5336 return isClearable2; 5337 } 5338 }, { 5339 key: "isOptionDisabled", 5340 value: function isOptionDisabled3(option, selectValue) { 5341 return _isOptionDisabled(this.props, option, selectValue); 5342 } 5343 }, { 5344 key: "isOptionSelected", 5345 value: function isOptionSelected(option, selectValue) { 5346 return _isOptionSelected(this.props, option, selectValue); 5347 } 5348 }, { 5349 key: "filterOption", 5350 value: function filterOption(option, inputValue) { 5351 return _filterOption(this.props, option, inputValue); 5352 } 5353 }, { 5354 key: "formatOptionLabel", 5355 value: function formatOptionLabel(data, context) { 5356 if (typeof this.props.formatOptionLabel === "function") { 5357 var _inputValue = this.props.inputValue; 5358 var _selectValue = this.state.selectValue; 5359 return this.props.formatOptionLabel(data, { 5360 context, 5361 inputValue: _inputValue, 5362 selectValue: _selectValue 5363 }); 5364 } else { 5365 return this.getOptionLabel(data); 5366 } 5367 } 5368 }, { 5369 key: "formatGroupLabel", 5370 value: function formatGroupLabel3(data) { 5371 return this.props.formatGroupLabel(data); 5372 } 5373 // ============================== 5374 // Mouse Handlers 5375 // ============================== 5376 }, { 5377 key: "startListeningComposition", 5378 value: ( 5379 // ============================== 5380 // Composition Handlers 5381 // ============================== 5382 function startListeningComposition() { 5383 if (document && document.addEventListener) { 5384 document.addEventListener("compositionstart", this.onCompositionStart, false); 5385 document.addEventListener("compositionend", this.onCompositionEnd, false); 5386 } 5387 } 5388 ) 5389 }, { 5390 key: "stopListeningComposition", 5391 value: function stopListeningComposition() { 5392 if (document && document.removeEventListener) { 5393 document.removeEventListener("compositionstart", this.onCompositionStart); 5394 document.removeEventListener("compositionend", this.onCompositionEnd); 5395 } 5396 } 5397 }, { 5398 key: "startListeningToTouch", 5399 value: ( 5400 // ============================== 5401 // Touch Handlers 5402 // ============================== 5403 function startListeningToTouch() { 5404 if (document && document.addEventListener) { 5405 document.addEventListener("touchstart", this.onTouchStart, false); 5406 document.addEventListener("touchmove", this.onTouchMove, false); 5407 document.addEventListener("touchend", this.onTouchEnd, false); 5408 } 5409 } 5410 ) 5411 }, { 5412 key: "stopListeningToTouch", 5413 value: function stopListeningToTouch() { 5414 if (document && document.removeEventListener) { 5415 document.removeEventListener("touchstart", this.onTouchStart); 5416 document.removeEventListener("touchmove", this.onTouchMove); 5417 document.removeEventListener("touchend", this.onTouchEnd); 5418 } 5419 } 5420 }, { 5421 key: "renderInput", 5422 value: ( 5423 // ============================== 5424 // Renderers 5425 // ============================== 5426 function renderInput() { 5427 var _this$props8 = this.props, isDisabled = _this$props8.isDisabled, isSearchable = _this$props8.isSearchable, inputId = _this$props8.inputId, inputValue = _this$props8.inputValue, tabIndex = _this$props8.tabIndex, form = _this$props8.form, menuIsOpen = _this$props8.menuIsOpen, required = _this$props8.required; 5428 var _this$getComponents = this.getComponents(), Input3 = _this$getComponents.Input; 5429 var _this$state4 = this.state, inputIsHidden = _this$state4.inputIsHidden, ariaSelection = _this$state4.ariaSelection; 5430 var commonProps = this.commonProps; 5431 var id = inputId || this.getElementId("input"); 5432 var ariaAttributes = _objectSpread2(_objectSpread2(_objectSpread2({ 5433 "aria-autocomplete": "list", 5434 "aria-expanded": menuIsOpen, 5435 "aria-haspopup": true, 5436 "aria-errormessage": this.props["aria-errormessage"], 5437 "aria-invalid": this.props["aria-invalid"], 5438 "aria-label": this.props["aria-label"], 5439 "aria-labelledby": this.props["aria-labelledby"], 5440 "aria-required": required, 5441 role: "combobox" 5442 }, menuIsOpen && { 5443 "aria-controls": this.getElementId("listbox"), 5444 "aria-owns": this.getElementId("listbox") 5445 }), !isSearchable && { 5446 "aria-readonly": true 5447 }), this.hasValue() ? (ariaSelection === null || ariaSelection === void 0 ? void 0 : ariaSelection.action) === "initial-input-focus" && { 5448 "aria-describedby": this.getElementId("live-region") 5449 } : { 5450 "aria-describedby": this.getElementId("placeholder") 5451 }); 5452 if (!isSearchable) { 5453 return React4.createElement(DummyInput, _extends({ 5454 id, 5455 innerRef: this.getInputRef, 5456 onBlur: this.onInputBlur, 5457 onChange: noop, 5458 onFocus: this.onInputFocus, 5459 disabled: isDisabled, 5460 tabIndex, 5461 inputMode: "none", 5462 form, 5463 value: "" 5464 }, ariaAttributes)); 5465 } 5466 return React4.createElement(Input3, _extends({}, commonProps, { 5467 autoCapitalize: "none", 5468 autoComplete: "off", 5469 autoCorrect: "off", 5470 id, 5471 innerRef: this.getInputRef, 5472 isDisabled, 5473 isHidden: inputIsHidden, 5474 onBlur: this.onInputBlur, 5475 onChange: this.handleInputChange, 5476 onFocus: this.onInputFocus, 5477 spellCheck: "false", 5478 tabIndex, 5479 form, 5480 type: "text", 5481 value: inputValue 5482 }, ariaAttributes)); 5483 } 5484 ) 5485 }, { 5486 key: "renderPlaceholderOrValue", 5487 value: function renderPlaceholderOrValue() { 5488 var _this3 = this; 5489 var _this$getComponents2 = this.getComponents(), MultiValue3 = _this$getComponents2.MultiValue, MultiValueContainer2 = _this$getComponents2.MultiValueContainer, MultiValueLabel2 = _this$getComponents2.MultiValueLabel, MultiValueRemove2 = _this$getComponents2.MultiValueRemove, SingleValue3 = _this$getComponents2.SingleValue, Placeholder3 = _this$getComponents2.Placeholder; 5490 var commonProps = this.commonProps; 5491 var _this$props9 = this.props, controlShouldRenderValue = _this$props9.controlShouldRenderValue, isDisabled = _this$props9.isDisabled, isMulti = _this$props9.isMulti, inputValue = _this$props9.inputValue, placeholder = _this$props9.placeholder; 5492 var _this$state5 = this.state, selectValue = _this$state5.selectValue, focusedValue = _this$state5.focusedValue, isFocused = _this$state5.isFocused; 5493 if (!this.hasValue() || !controlShouldRenderValue) { 5494 return inputValue ? null : React4.createElement(Placeholder3, _extends({}, commonProps, { 5495 key: "placeholder", 5496 isDisabled, 5497 isFocused, 5498 innerProps: { 5499 id: this.getElementId("placeholder") 5500 } 5501 }), placeholder); 5502 } 5503 if (isMulti) { 5504 return selectValue.map(function(opt, index2) { 5505 var isOptionFocused = opt === focusedValue; 5506 var key = "".concat(_this3.getOptionLabel(opt), "-").concat(_this3.getOptionValue(opt)); 5507 return React4.createElement(MultiValue3, _extends({}, commonProps, { 5508 components: { 5509 Container: MultiValueContainer2, 5510 Label: MultiValueLabel2, 5511 Remove: MultiValueRemove2 5512 }, 5513 isFocused: isOptionFocused, 5514 isDisabled, 5515 key, 5516 index: index2, 5517 removeProps: { 5518 onClick: function onClick() { 5519 return _this3.removeValue(opt); 5520 }, 5521 onTouchEnd: function onTouchEnd() { 5522 return _this3.removeValue(opt); 5523 }, 5524 onMouseDown: function onMouseDown(e) { 5525 e.preventDefault(); 5526 } 5527 }, 5528 data: opt 5529 }), _this3.formatOptionLabel(opt, "value")); 5530 }); 5531 } 5532 if (inputValue) { 5533 return null; 5534 } 5535 var singleValue = selectValue[0]; 5536 return React4.createElement(SingleValue3, _extends({}, commonProps, { 5537 data: singleValue, 5538 isDisabled 5539 }), this.formatOptionLabel(singleValue, "value")); 5540 } 5541 }, { 5542 key: "renderClearIndicator", 5543 value: function renderClearIndicator() { 5544 var _this$getComponents3 = this.getComponents(), ClearIndicator3 = _this$getComponents3.ClearIndicator; 5545 var commonProps = this.commonProps; 5546 var _this$props10 = this.props, isDisabled = _this$props10.isDisabled, isLoading = _this$props10.isLoading; 5547 var isFocused = this.state.isFocused; 5548 if (!this.isClearable() || !ClearIndicator3 || isDisabled || !this.hasValue() || isLoading) { 5549 return null; 5550 } 5551 var innerProps = { 5552 onMouseDown: this.onClearIndicatorMouseDown, 5553 onTouchEnd: this.onClearIndicatorTouchEnd, 5554 "aria-hidden": "true" 5555 }; 5556 return React4.createElement(ClearIndicator3, _extends({}, commonProps, { 5557 innerProps, 5558 isFocused 5559 })); 5560 } 5561 }, { 5562 key: "renderLoadingIndicator", 5563 value: function renderLoadingIndicator() { 5564 var _this$getComponents4 = this.getComponents(), LoadingIndicator3 = _this$getComponents4.LoadingIndicator; 5565 var commonProps = this.commonProps; 5566 var _this$props11 = this.props, isDisabled = _this$props11.isDisabled, isLoading = _this$props11.isLoading; 5567 var isFocused = this.state.isFocused; 5568 if (!LoadingIndicator3 || !isLoading) 5569 return null; 5570 var innerProps = { 5571 "aria-hidden": "true" 5572 }; 5573 return React4.createElement(LoadingIndicator3, _extends({}, commonProps, { 5574 innerProps, 5575 isDisabled, 5576 isFocused 5577 })); 5578 } 5579 }, { 5580 key: "renderIndicatorSeparator", 5581 value: function renderIndicatorSeparator() { 5582 var _this$getComponents5 = this.getComponents(), DropdownIndicator3 = _this$getComponents5.DropdownIndicator, IndicatorSeparator3 = _this$getComponents5.IndicatorSeparator; 5583 if (!DropdownIndicator3 || !IndicatorSeparator3) 5584 return null; 5585 var commonProps = this.commonProps; 5586 var isDisabled = this.props.isDisabled; 5587 var isFocused = this.state.isFocused; 5588 return React4.createElement(IndicatorSeparator3, _extends({}, commonProps, { 5589 isDisabled, 5590 isFocused 5591 })); 5592 } 5593 }, { 5594 key: "renderDropdownIndicator", 5595 value: function renderDropdownIndicator() { 5596 var _this$getComponents6 = this.getComponents(), DropdownIndicator3 = _this$getComponents6.DropdownIndicator; 5597 if (!DropdownIndicator3) 5598 return null; 5599 var commonProps = this.commonProps; 5600 var isDisabled = this.props.isDisabled; 5601 var isFocused = this.state.isFocused; 5602 var innerProps = { 5603 onMouseDown: this.onDropdownIndicatorMouseDown, 5604 onTouchEnd: this.onDropdownIndicatorTouchEnd, 5605 "aria-hidden": "true" 5606 }; 5607 return React4.createElement(DropdownIndicator3, _extends({}, commonProps, { 5608 innerProps, 5609 isDisabled, 5610 isFocused 5611 })); 5612 } 5613 }, { 5614 key: "renderMenu", 5615 value: function renderMenu() { 5616 var _this4 = this; 5617 var _this$getComponents7 = this.getComponents(), Group3 = _this$getComponents7.Group, GroupHeading3 = _this$getComponents7.GroupHeading, Menu3 = _this$getComponents7.Menu, MenuList3 = _this$getComponents7.MenuList, MenuPortal3 = _this$getComponents7.MenuPortal, LoadingMessage3 = _this$getComponents7.LoadingMessage, NoOptionsMessage3 = _this$getComponents7.NoOptionsMessage, Option3 = _this$getComponents7.Option; 5618 var commonProps = this.commonProps; 5619 var focusedOption = this.state.focusedOption; 5620 var _this$props12 = this.props, captureMenuScroll = _this$props12.captureMenuScroll, inputValue = _this$props12.inputValue, isLoading = _this$props12.isLoading, loadingMessage2 = _this$props12.loadingMessage, minMenuHeight = _this$props12.minMenuHeight, maxMenuHeight = _this$props12.maxMenuHeight, menuIsOpen = _this$props12.menuIsOpen, menuPlacement = _this$props12.menuPlacement, menuPosition = _this$props12.menuPosition, menuPortalTarget = _this$props12.menuPortalTarget, menuShouldBlockScroll = _this$props12.menuShouldBlockScroll, menuShouldScrollIntoView = _this$props12.menuShouldScrollIntoView, noOptionsMessage2 = _this$props12.noOptionsMessage, onMenuScrollToTop = _this$props12.onMenuScrollToTop, onMenuScrollToBottom = _this$props12.onMenuScrollToBottom; 5621 if (!menuIsOpen) 5622 return null; 5623 var render = function render2(props, id) { 5624 var type = props.type, data = props.data, isDisabled = props.isDisabled, isSelected = props.isSelected, label = props.label, value = props.value; 5625 var isFocused = focusedOption === data; 5626 var onHover = isDisabled ? void 0 : function() { 5627 return _this4.onOptionHover(data); 5628 }; 5629 var onSelect = isDisabled ? void 0 : function() { 5630 return _this4.selectOption(data); 5631 }; 5632 var optionId = "".concat(_this4.getElementId("option"), "-").concat(id); 5633 var innerProps = { 5634 id: optionId, 5635 onClick: onSelect, 5636 onMouseMove: onHover, 5637 onMouseOver: onHover, 5638 tabIndex: -1 5639 }; 5640 return React4.createElement(Option3, _extends({}, commonProps, { 5641 innerProps, 5642 data, 5643 isDisabled, 5644 isSelected, 5645 key: optionId, 5646 label, 5647 type, 5648 value, 5649 isFocused, 5650 innerRef: isFocused ? _this4.getFocusedOptionRef : void 0 5651 }), _this4.formatOptionLabel(props.data, "menu")); 5652 }; 5653 var menuUI; 5654 if (this.hasOptions()) { 5655 menuUI = this.getCategorizedOptions().map(function(item) { 5656 if (item.type === "group") { 5657 var _data = item.data, options2 = item.options, groupIndex = item.index; 5658 var groupId = "".concat(_this4.getElementId("group"), "-").concat(groupIndex); 5659 var headingId = "".concat(groupId, "-heading"); 5660 return React4.createElement(Group3, _extends({}, commonProps, { 5661 key: groupId, 5662 data: _data, 5663 options: options2, 5664 Heading: GroupHeading3, 5665 headingProps: { 5666 id: headingId, 5667 data: item.data 5668 }, 5669 label: _this4.formatGroupLabel(item.data) 5670 }), item.options.map(function(option) { 5671 return render(option, "".concat(groupIndex, "-").concat(option.index)); 5672 })); 5673 } else if (item.type === "option") { 5674 return render(item, "".concat(item.index)); 5675 } 5676 }); 5677 } else if (isLoading) { 5678 var message = loadingMessage2({ 5679 inputValue 5680 }); 5681 if (message === null) 5682 return null; 5683 menuUI = React4.createElement(LoadingMessage3, commonProps, message); 5684 } else { 5685 var _message = noOptionsMessage2({ 5686 inputValue 5687 }); 5688 if (_message === null) 5689 return null; 5690 menuUI = React4.createElement(NoOptionsMessage3, commonProps, _message); 5691 } 5692 var menuPlacementProps = { 5693 minMenuHeight, 5694 maxMenuHeight, 5695 menuPlacement, 5696 menuPosition, 5697 menuShouldScrollIntoView 5698 }; 5699 var menuElement = React4.createElement(MenuPlacer, _extends({}, commonProps, menuPlacementProps), function(_ref4) { 5700 var ref = _ref4.ref, _ref4$placerProps = _ref4.placerProps, placement = _ref4$placerProps.placement, maxHeight = _ref4$placerProps.maxHeight; 5701 return React4.createElement(Menu3, _extends({}, commonProps, menuPlacementProps, { 5702 innerRef: ref, 5703 innerProps: { 5704 onMouseDown: _this4.onMenuMouseDown, 5705 onMouseMove: _this4.onMenuMouseMove, 5706 id: _this4.getElementId("listbox") 5707 }, 5708 isLoading, 5709 placement 5710 }), React4.createElement(ScrollManager, { 5711 captureEnabled: captureMenuScroll, 5712 onTopArrive: onMenuScrollToTop, 5713 onBottomArrive: onMenuScrollToBottom, 5714 lockEnabled: menuShouldBlockScroll 5715 }, function(scrollTargetRef) { 5716 return React4.createElement(MenuList3, _extends({}, commonProps, { 5717 innerRef: function innerRef(instance) { 5718 _this4.getMenuListRef(instance); 5719 scrollTargetRef(instance); 5720 }, 5721 isLoading, 5722 maxHeight, 5723 focusedOption 5724 }), menuUI); 5725 })); 5726 }); 5727 return menuPortalTarget || menuPosition === "fixed" ? React4.createElement(MenuPortal3, _extends({}, commonProps, { 5728 appendTo: menuPortalTarget, 5729 controlElement: this.controlRef, 5730 menuPlacement, 5731 menuPosition 5732 }), menuElement) : menuElement; 5733 } 5734 }, { 5735 key: "renderFormField", 5736 value: function renderFormField() { 5737 var _this5 = this; 5738 var _this$props13 = this.props, delimiter2 = _this$props13.delimiter, isDisabled = _this$props13.isDisabled, isMulti = _this$props13.isMulti, name = _this$props13.name, required = _this$props13.required; 5739 var selectValue = this.state.selectValue; 5740 if (required && !this.hasValue() && !isDisabled) { 5741 return React4.createElement(RequiredInput$1, { 5742 name, 5743 onFocus: this.onValueInputFocus 5744 }); 5745 } 5746 if (!name || isDisabled) 5747 return; 5748 if (isMulti) { 5749 if (delimiter2) { 5750 var value = selectValue.map(function(opt) { 5751 return _this5.getOptionValue(opt); 5752 }).join(delimiter2); 5753 return React4.createElement("input", { 5754 name, 5755 type: "hidden", 5756 value 5757 }); 5758 } else { 5759 var input = selectValue.length > 0 ? selectValue.map(function(opt, i) { 5760 return React4.createElement("input", { 5761 key: "i-".concat(i), 5762 name, 5763 type: "hidden", 5764 value: _this5.getOptionValue(opt) 5765 }); 5766 }) : React4.createElement("input", { 5767 name, 5768 type: "hidden", 5769 value: "" 5770 }); 5771 return React4.createElement("div", null, input); 5772 } 5773 } else { 5774 var _value = selectValue[0] ? this.getOptionValue(selectValue[0]) : ""; 5775 return React4.createElement("input", { 5776 name, 5777 type: "hidden", 5778 value: _value 5779 }); 5780 } 5781 } 5782 }, { 5783 key: "renderLiveRegion", 5784 value: function renderLiveRegion() { 5785 var commonProps = this.commonProps; 5786 var _this$state6 = this.state, ariaSelection = _this$state6.ariaSelection, focusedOption = _this$state6.focusedOption, focusedValue = _this$state6.focusedValue, isFocused = _this$state6.isFocused, selectValue = _this$state6.selectValue; 5787 var focusableOptions = this.getFocusableOptions(); 5788 return React4.createElement(LiveRegion$1, _extends({}, commonProps, { 5789 id: this.getElementId("live-region"), 5790 ariaSelection, 5791 focusedOption, 5792 focusedValue, 5793 isFocused, 5794 selectValue, 5795 focusableOptions 5796 })); 5797 } 5798 }, { 5799 key: "render", 5800 value: function render() { 5801 var _this$getComponents8 = this.getComponents(), Control3 = _this$getComponents8.Control, IndicatorsContainer3 = _this$getComponents8.IndicatorsContainer, SelectContainer3 = _this$getComponents8.SelectContainer, ValueContainer3 = _this$getComponents8.ValueContainer; 5802 var _this$props14 = this.props, className = _this$props14.className, id = _this$props14.id, isDisabled = _this$props14.isDisabled, menuIsOpen = _this$props14.menuIsOpen; 5803 var isFocused = this.state.isFocused; 5804 var commonProps = this.commonProps = this.getCommonProps(); 5805 return React4.createElement(SelectContainer3, _extends({}, commonProps, { 5806 className, 5807 innerProps: { 5808 id, 5809 onKeyDown: this.onKeyDown 5810 }, 5811 isDisabled, 5812 isFocused 5813 }), this.renderLiveRegion(), React4.createElement(Control3, _extends({}, commonProps, { 5814 innerRef: this.getControlRef, 5815 innerProps: { 5816 onMouseDown: this.onControlMouseDown, 5817 onTouchEnd: this.onControlTouchEnd 5818 }, 5819 isDisabled, 5820 isFocused, 5821 menuIsOpen 5822 }), React4.createElement(ValueContainer3, _extends({}, commonProps, { 5823 isDisabled 5824 }), this.renderPlaceholderOrValue(), this.renderInput()), React4.createElement(IndicatorsContainer3, _extends({}, commonProps, { 5825 isDisabled 5826 }), this.renderClearIndicator(), this.renderLoadingIndicator(), this.renderIndicatorSeparator(), this.renderDropdownIndicator())), this.renderMenu(), this.renderFormField()); 5827 } 5828 }], [{ 5829 key: "getDerivedStateFromProps", 5830 value: function getDerivedStateFromProps(props, state) { 5831 var prevProps = state.prevProps, clearFocusValueOnUpdate = state.clearFocusValueOnUpdate, inputIsHiddenAfterUpdate = state.inputIsHiddenAfterUpdate, ariaSelection = state.ariaSelection, isFocused = state.isFocused, prevWasFocused = state.prevWasFocused; 5832 var options2 = props.options, value = props.value, menuIsOpen = props.menuIsOpen, inputValue = props.inputValue, isMulti = props.isMulti; 5833 var selectValue = cleanValue(value); 5834 var newMenuOptionsState = {}; 5835 if (prevProps && (value !== prevProps.value || options2 !== prevProps.options || menuIsOpen !== prevProps.menuIsOpen || inputValue !== prevProps.inputValue)) { 5836 var focusableOptions = menuIsOpen ? buildFocusableOptions(props, selectValue) : []; 5837 var focusedValue = clearFocusValueOnUpdate ? getNextFocusedValue(state, selectValue) : null; 5838 var focusedOption = getNextFocusedOption(state, focusableOptions); 5839 newMenuOptionsState = { 5840 selectValue, 5841 focusedOption, 5842 focusedValue, 5843 clearFocusValueOnUpdate: false 5844 }; 5845 } 5846 var newInputIsHiddenState = inputIsHiddenAfterUpdate != null && props !== prevProps ? { 5847 inputIsHidden: inputIsHiddenAfterUpdate, 5848 inputIsHiddenAfterUpdate: void 0 5849 } : {}; 5850 var newAriaSelection = ariaSelection; 5851 var hasKeptFocus = isFocused && prevWasFocused; 5852 if (isFocused && !hasKeptFocus) { 5853 newAriaSelection = { 5854 value: valueTernary(isMulti, selectValue, selectValue[0] || null), 5855 options: selectValue, 5856 action: "initial-input-focus" 5857 }; 5858 hasKeptFocus = !prevWasFocused; 5859 } 5860 if ((ariaSelection === null || ariaSelection === void 0 ? void 0 : ariaSelection.action) === "initial-input-focus") { 5861 newAriaSelection = null; 5862 } 5863 return _objectSpread2(_objectSpread2(_objectSpread2({}, newMenuOptionsState), newInputIsHiddenState), {}, { 5864 prevProps: props, 5865 ariaSelection: newAriaSelection, 5866 prevWasFocused: hasKeptFocus 5867 }); 5868 } 5869 }]); 5870 return Select2; 5871}(import_react6.Component); 5872Select.defaultProps = defaultProps; 5873
vendor: 1,251 bytes, lines 5874-5916
5874// node_modules/react-select/dist/react-select.esm.js 5875var import_react_dom2 = __toESM(require_react_dom()); 5876var StateManagedSelect = (0, import_react8.forwardRef)(function(props, ref) { 5877 var baseSelectProps = useStateManager(props); 5878 return React5.createElement(Select, _extends({ 5879 ref 5880 }, baseSelectProps)); 5881}); 5882var StateManagedSelect$1 = StateManagedSelect; 5883var NonceProvider = function(_ref3) { 5884 var nonce = _ref3.nonce, children = _ref3.children, cacheKey = _ref3.cacheKey; 5885 var emotionCache = (0, import_react8.useMemo)(function() { 5886 return createCache({ 5887 key: cacheKey, 5888 nonce 5889 }); 5890 }, [cacheKey, nonce]); 5891 return React5.createElement(CacheProvider, { 5892 value: emotionCache 5893 }, children); 5894}; 5895export { 5896 NonceProvider, 5897 components, 5898 createFilter, 5899 StateManagedSelect$1 as default, 5900 defaultTheme, 5901 mergeStyles, 5902 useStateManager 5903}; 5904/*! Bundled license information: 5905 5906react-is/cjs/react-is.production.min.js: 5907 (** @license React v16.13.1 5908 * react-is.production.min.js 5909 * 5910 * Copyright (c) Facebook, Inc. and its affiliates. 5911 * 5912 * This source code is licensed under the MIT license found in the 5913 * LICENSE file in the root directory of this source tree. 5914 *) 5915*/ 5916//# sourceMappingURL=react-select.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.