@ppg_pl/pallete 2.0.23 → 2.0.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/README.md +12 -5
  2. package/dist/cjs/{index-53e78fc8.js → index-d74cbc0d.js} +33 -2
  3. package/dist/cjs/index-d74cbc0d.js.map +1 -0
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/cjs/loader.cjs.js.map +1 -1
  6. package/dist/cjs/my-backdrop_8.cjs.entry.js +1651 -1286
  7. package/dist/cjs/my-backdrop_8.cjs.entry.js.map +1 -1
  8. package/dist/cjs/pallete.cjs.js +2 -2
  9. package/dist/cjs/pallete.cjs.js.map +1 -1
  10. package/dist/collection/components/my-backdrop/my-backdrop.css +7 -0
  11. package/dist/collection/components/my-colorbox/my-colorbox.css +7 -0
  12. package/dist/collection/components/my-colorinfo/assets/Shape.svg +4 -0
  13. package/dist/collection/components/my-colorinfo/assets/close.png +0 -0
  14. package/dist/collection/components/my-colorinfo/assets/shape.png +0 -0
  15. package/dist/collection/components/my-colorinfo/my-colorinfo.css +350 -0
  16. package/dist/collection/components/my-colorinfo/my-colorinfo.js +135 -1
  17. package/dist/collection/components/my-colorinfo/my-colorinfo.js.map +1 -1
  18. package/dist/collection/components/my-component/my-component.js +68 -1
  19. package/dist/collection/components/my-component/my-component.js.map +1 -1
  20. package/dist/collection/components/my-modal/my-modal.css +8 -239
  21. package/dist/collection/components/my-modal/my-modal.js +42 -2
  22. package/dist/collection/components/my-modal/my-modal.js.map +1 -1
  23. package/dist/collection/components/my-search/my-search.css +7 -0
  24. package/dist/collection/components/my-slider/index.js +9 -6
  25. package/dist/collection/components/my-slider/index.js.map +1 -1
  26. package/dist/collection/components/my-slider/my-slider.css +12 -3
  27. package/dist/collection/types.js.map +1 -1
  28. package/dist/components/index3.js +10 -7
  29. package/dist/components/index3.js.map +1 -1
  30. package/dist/components/my-backdrop2.js +1 -1
  31. package/dist/components/my-backdrop2.js.map +1 -1
  32. package/dist/components/my-colorbox2.js +1 -1
  33. package/dist/components/my-colorbox2.js.map +1 -1
  34. package/dist/components/my-colorinfo2.js +46 -3
  35. package/dist/components/my-colorinfo2.js.map +1 -1
  36. package/dist/components/my-component.js +15 -3
  37. package/dist/components/my-component.js.map +1 -1
  38. package/dist/components/my-modal2.js +1589 -1274
  39. package/dist/components/my-modal2.js.map +1 -1
  40. package/dist/components/my-search2.js +1 -1
  41. package/dist/components/my-search2.js.map +1 -1
  42. package/dist/esm/{index-b0145abf.js → index-45a30349.js} +33 -2
  43. package/dist/esm/index-45a30349.js.map +1 -0
  44. package/dist/esm/loader.js +3 -3
  45. package/dist/esm/loader.js.map +1 -1
  46. package/dist/esm/my-backdrop_8.entry.js +1651 -1286
  47. package/dist/esm/my-backdrop_8.entry.js.map +1 -1
  48. package/dist/esm/pallete.js +3 -3
  49. package/dist/esm/pallete.js.map +1 -1
  50. package/dist/pallete/assets/Shape.svg +4 -0
  51. package/dist/pallete/assets/shape.png +0 -0
  52. package/dist/pallete/p-2394bcec.entry.js +2 -0
  53. package/dist/pallete/p-2394bcec.entry.js.map +1 -0
  54. package/dist/pallete/p-a3449132.js +3 -0
  55. package/dist/pallete/p-a3449132.js.map +1 -0
  56. package/dist/pallete/pallete.css +1 -1
  57. package/dist/pallete/pallete.esm.js +1 -1
  58. package/dist/pallete/pallete.esm.js.map +1 -1
  59. package/dist/types/components/my-colorinfo/my-colorinfo.d.ts +11 -1
  60. package/dist/types/components/my-component/my-component.d.ts +9 -0
  61. package/dist/types/components/my-modal/my-modal.d.ts +3 -1
  62. package/dist/types/components.d.ts +24 -2
  63. package/dist/types/types.d.ts +4 -0
  64. package/package.json +5 -4
  65. package/www/build/assets/Shape.svg +4 -0
  66. package/www/build/assets/shape.png +0 -0
  67. package/www/build/p-2394bcec.entry.js +2 -0
  68. package/www/build/p-2394bcec.entry.js.map +1 -0
  69. package/www/build/p-a3449132.js +3 -0
  70. package/www/build/p-a3449132.js.map +1 -0
  71. package/www/build/p-c5910eb7.js +2 -0
  72. package/www/build/p-f8a0208d.css +1 -0
  73. package/www/build/pallete.css +1 -1
  74. package/www/build/pallete.esm.js +1 -1
  75. package/www/build/pallete.esm.js.map +1 -1
  76. package/www/index.html +62 -10
  77. package/dist/cjs/index-53e78fc8.js.map +0 -1
  78. package/dist/esm/index-b0145abf.js.map +0 -1
  79. package/dist/pallete/p-bdb05818.entry.js +0 -2
  80. package/dist/pallete/p-bdb05818.entry.js.map +0 -1
  81. package/dist/pallete/p-c6a049a2.js +0 -3
  82. package/dist/pallete/p-c6a049a2.js.map +0 -1
  83. package/www/build/p-bdb05818.entry.js +0 -2
  84. package/www/build/p-bdb05818.entry.js.map +0 -1
  85. package/www/build/p-c6a049a2.js +0 -3
  86. package/www/build/p-c6a049a2.js.map +0 -1
  87. /package/www/{build/assets → assets}/fonts/Galatea-Regular.eot +0 -0
  88. /package/www/{build/assets → assets}/fonts/Galatea-Regular.ttf +0 -0
  89. /package/www/{build/assets → assets}/fonts/Galatea-Regular.woff +0 -0
  90. /package/www/{build/assets → assets}/fonts/Galatea-Regular.woff2 +0 -0
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index$1 = require('./index-53e78fc8.js');
5
+ const index$1 = require('./index-d74cbc0d.js');
6
6
 
7
- const myBackdropCss = ".pallete-wrapper *{font-family:\"Galatea\", sans-serif}my-backdrop{width:100%;height:100%;background-color:rgba(0, 0, 0, 0.7);position:fixed;z-index:100;left:0;top:0}";
7
+ const myBackdropCss = "@font-face{font-family:\"Galatea\";src:url(\"/assets/fonts/Galatea-Regular.woff2\") format(\"woff2\"), url(\"/assets/fonts/Galatea-Regular.woff\") format(\"woff\"), url(\"/assets/fonts/Galatea-Regular.ttf\") format(\"truetype\");font-weight:normal;font-style:normal;font-display:swap}.pallete-wrapper *{font-family:\"Galatea\", sans-serif}my-backdrop{width:100%;height:100%;background-color:rgba(0, 0, 0, 0.7);position:fixed;z-index:100;left:0;top:0}";
8
8
 
9
9
  const MyBackdrop = class {
10
10
  constructor(hostRef) {
@@ -47,7 +47,7 @@ class API {
47
47
  }
48
48
  const ApiService = new API();
49
49
 
50
- const myColorboxCss = ".pallete-wrapper *{font-family:\"Galatea\", sans-serif}.my-color-box{width:125px;height:125px;display:block;margin-bottom:5px;cursor:pointer;display:flex;flex-direction:column;justify-content:flex-end;position:relative}@media (max-width: 1024px){.my-color-box{width:65px;height:65px}}.my-color-box .color-name{width:100%;background-color:#fff;padding:15px 0px 10px;border-top-left-radius:15px;border-top-right-radius:15px;opacity:0;transition:0.3s opacity ease-in-out;font-size:10px;color:#232323;text-transform:lowercase}.my-color-box.active .color-name{opacity:1}.my-color-box.categoryactive{width:120px;height:115px}.my-color-box.categoryactive .color-name{opacity:1}@media (max-width: 1024px){.my-color-box.categoryactive{width:72px;height:72px}}.my-color-box:hover .color-name{opacity:1}";
50
+ const myColorboxCss = "@font-face{font-family:\"Galatea\";src:url(\"/assets/fonts/Galatea-Regular.woff2\") format(\"woff2\"), url(\"/assets/fonts/Galatea-Regular.woff\") format(\"woff\"), url(\"/assets/fonts/Galatea-Regular.ttf\") format(\"truetype\");font-weight:normal;font-style:normal;font-display:swap}.pallete-wrapper *{font-family:\"Galatea\", sans-serif}.my-color-box{width:125px;height:125px;display:block;margin-bottom:5px;cursor:pointer;display:flex;flex-direction:column;justify-content:flex-end;position:relative}@media (max-width: 1024px){.my-color-box{width:65px;height:65px}}.my-color-box .color-name{width:100%;background-color:#fff;padding:15px 0px 10px;border-top-left-radius:15px;border-top-right-radius:15px;opacity:0;transition:0.3s opacity ease-in-out;font-size:10px;color:#232323;text-transform:lowercase}.my-color-box.active .color-name{opacity:1}.my-color-box.categoryactive{width:120px;height:115px}.my-color-box.categoryactive .color-name{opacity:1}@media (max-width: 1024px){.my-color-box.categoryactive{width:72px;height:72px}}.my-color-box:hover .color-name{opacity:1}";
51
51
 
52
52
  const MyColorBox = class {
53
53
  constructor(hostRef) {
@@ -93,10 +93,13 @@ const MyColorBox = class {
93
93
  };
94
94
  MyColorBox.style = myColorboxCss;
95
95
 
96
+ const myColorinfoCss = "@font-face{font-family:\"Galatea\";src:url(\"/assets/fonts/Galatea-Regular.woff2\") format(\"woff2\"), url(\"/assets/fonts/Galatea-Regular.woff\") format(\"woff\"), url(\"/assets/fonts/Galatea-Regular.ttf\") format(\"truetype\");font-weight:normal;font-style:normal;font-display:swap}.pallete-wrapper.sc-my-colorinfo *.sc-my-colorinfo{font-family:\"Galatea\", sans-serif}.boxes__box-content.sc-my-colorinfo{width:100%;margin-bottom:5px;height:500px;text-align:left;display:flex;flex-direction:row;justify-content:space-between;position:relative}.boxes__box-content.sc-my-colorinfo .closebtn.sc-my-colorinfo{position:absolute;right:10px;top:10px;width:53px;height:53px;cursor:pointer;object-fit:cover;z-index:9999}@media (max-width: 1024px){.boxes__box-content.sc-my-colorinfo{flex-direction:column-reverse;height:auto}}@media (max-width: 768px){.boxes__box-content.sc-my-colorinfo{margin:0 auto}}.boxes__box-content__info.sc-my-colorinfo{width:40%;padding:50px 40px;position:relative;display:flex;flex-direction:column;justify-content:space-between}@media (max-width: 1024px){.boxes__box-content__info.sc-my-colorinfo{width:100%;padding:15px;min-height:100px}}@media (max-width: 768px){.boxes__box-content__info.sc-my-colorinfo{min-height:auto}}.boxes__box-content__info__header.sc-my-colorinfo{display:flex;flex-direction:column;align-items:flex-start}.boxes__box-content__info.sc-my-colorinfo h2.sc-my-colorinfo{font-size:35px;font-weight:normal;margin-bottom:30px;color:#232323}@media (max-width: 768px){.boxes__box-content__info.sc-my-colorinfo h2.sc-my-colorinfo{font-size:16px;text-align:center;margin-bottom:15px;margin-top:5px}}.boxes__box-content__info.sc-my-colorinfo h4.sc-my-colorinfo{margin-top:0px;margin-bottom:15px;font-size:16px;color:#4c4c4c}.boxes__box-content__info__value.sc-my-colorinfo{display:flex;flex-direction:column;align-items:flex-start;gap:20px}@media (max-width: 1024px){.boxes__box-content__info__value.sc-my-colorinfo{justify-content:flex-start;margin-top:30px}}@media (max-width: 768px){.boxes__box-content__info__value.sc-my-colorinfo{flex-direction:column}}@media (max-width: 768px){.boxes__box-content__info__value-image.sc-my-colorinfo{margin:0 auto;margin-bottom:10px}}.boxes__box-content__info__value-image.sc-my-colorinfo img.sc-my-colorinfo{width:114px;object-fit:cover}@media (max-width: 1024px){.boxes__box-content__info__value-image.sc-my-colorinfo img.sc-my-colorinfo{width:75px}}.boxes__box-content__info__value-product.sc-my-colorinfo{color:#232323;margin-left:10px}@media (max-width: 1024px){.boxes__box-content__info__value-product.sc-my-colorinfo h2.sc-my-colorinfo{font-size:26px;margin:0;margin-right:10px}}@media (max-width: 768px){.boxes__box-content__info__value-product.sc-my-colorinfo h2.sc-my-colorinfo{font-size:16px}}.boxes__box-content__info__value-product.sc-my-colorinfo p.sc-my-colorinfo{font-size:20px;margin-top:0px;margin-bottom:0px}.boxes__box-content__info__value-product.sc-my-colorinfo p.sc-my-colorinfo:last-of-type{margin-bottom:20px}@media (max-width: 1024px){.boxes__box-content__info__value-product.sc-my-colorinfo p.sc-my-colorinfo:last-of-type{margin-bottom:0}}@media (max-width: 768px){.boxes__box-content__info__value-product.sc-my-colorinfo p.sc-my-colorinfo{font-size:10px}}@media (max-width: 1024px){.boxes__box-content__info__value-product.sc-my-colorinfo>div.sc-my-colorinfo{display:flex;justify-content:flex-start;align-items:center}}@media (max-width: 768px){.boxes__box-content__info__value-product.sc-my-colorinfo>div.sc-my-colorinfo{flex-direction:column}}.boxes__box-content__info__tester.sc-my-colorinfo{display:flex;flex-direction:column;gap:15px;width:100%}@media (max-width: 1024px){.boxes__box-content__info__tester.sc-my-colorinfo{text-align:center}}.boxes__box-content__info__tester.sc-my-colorinfo .tester-text.sc-my-colorinfo h2.sc-my-colorinfo{margin:0 0 10px;font-size:18px;font-weight:700}.boxes__box-content__info__tester.sc-my-colorinfo .tester-text.sc-my-colorinfo p.sc-my-colorinfo{margin:0;font-size:14px}.boxes__box-content__info__tester.sc-my-colorinfo .tester-buy.sc-my-colorinfo{display:flex;align-items:center;gap:15px}@media (max-width: 1024px){.boxes__box-content__info__tester.sc-my-colorinfo .tester-buy.sc-my-colorinfo{flex-direction:column}.boxes__box-content__info__tester.sc-my-colorinfo .tester-buy.sc-my-colorinfo button.sc-my-colorinfo{margin:0;max-width:100%}}.boxes__box-content__info__tester.sc-my-colorinfo .price.sc-my-colorinfo{font-size:20px;font-weight:600}.boxes__box-content__slider.sc-my-colorinfo{width:60%;min-width:60%;max-width:60%;position:relative}@media (max-width: 1024px){.boxes__box-content__slider.sc-my-colorinfo{width:100%;display:block;min-width:100%;max-width:100%}}.boxes__box-content__slider.sc-my-colorinfo .color-big-image.sc-my-colorinfo{width:100%;height:100%;object-fit:cover}@media (max-width: 1024px){.boxes__box-content__slider.sc-my-colorinfo .color-big-image.sc-my-colorinfo{height:300px}}.boxes__box-content__white.sc-my-colorinfo .tester-text.sc-my-colorinfo,.boxes__box-content__white.sc-my-colorinfo .tester-buy.sc-my-colorinfo{color:#fff}.boxes__box-content__white.sc-my-colorinfo h2.sc-my-colorinfo{color:#fff}.button.sc-my-colorinfo,a.button.sc-my-colorinfo{background-color:#fff;font-size:16px;box-shadow:0px 10px 20px rgba(0, 0, 0, 0.1);border-radius:22px;padding:10px 35px;color:#232323;text-decoration:none;text-align:center;transition:all 0.7s ease-in-out;border:none;cursor:pointer;display:flex;align-items:center;gap:5px}.button.sc-my-colorinfo .shape-icon.sc-my-colorinfo,a.button.sc-my-colorinfo .shape-icon.sc-my-colorinfo{display:inline-flex}.button.sc-my-colorinfo .shape-icon.sc-my-colorinfo svg.sc-my-colorinfo,a.button.sc-my-colorinfo .shape-icon.sc-my-colorinfo svg.sc-my-colorinfo{display:block}.button.sc-my-colorinfo .shape-icon.sc-my-colorinfo path.sc-my-colorinfo,.button.sc-my-colorinfo .shape-icon.sc-my-colorinfo .shape-icon__path.sc-my-colorinfo,a.button.sc-my-colorinfo .shape-icon.sc-my-colorinfo path.sc-my-colorinfo,a.button.sc-my-colorinfo .shape-icon.sc-my-colorinfo .shape-icon__path.sc-my-colorinfo{fill:currentColor;transition:fill 0.7s ease-in-out}.button.fit.sc-my-colorinfo,a.button.fit.sc-my-colorinfo{padding:10px 15px}.button.sc-my-colorinfo:hover,a.button.sc-my-colorinfo:hover{color:#fff;background-color:#232323}.button.brown.sc-my-colorinfo,a.button.brown.sc-my-colorinfo{background-color:#3c2114;color:#fff}.button.brown.sc-my-colorinfo:hover,a.button.brown.sc-my-colorinfo:hover{color:#fff;background-color:#232323}.button.inverse.sc-my-colorinfo,a.button.inverse.sc-my-colorinfo{background-color:#232323;color:#fff}.button.inverse.sc-my-colorinfo:hover,a.button.inverse.sc-my-colorinfo:hover{color:#232323;background-color:#fff}.button.inverse.sc-my-colorinfo svg.sc-my-colorinfo path.sc-my-colorinfo,a.button.inverse.sc-my-colorinfo svg.sc-my-colorinfo path.sc-my-colorinfo{fill:#fff}.button.sc-my-colorinfo:disabled,a.button.sc-my-colorinfo:disabled{cursor:not-allowed;background-color:white;opacity:0.5}.button.sc-my-colorinfo:disabled.brown,a.button.sc-my-colorinfo:disabled.brown{background-color:black;color:white;opacity:0.5}.button.sc-my-colorinfo:disabled.inverse,a.button.sc-my-colorinfo:disabled.inverse{background-color:black;color:white;opacity:0.5}.button.sc-my-colorinfo:disabled:hover,a.button.sc-my-colorinfo:disabled:hover{background-color:inherit;color:inherit;opacity:0.5}@media (max-width: 1024px){.button.sc-my-colorinfo,a.button.sc-my-colorinfo{max-width:150px;font-size:13px;padding:12px 25px}}@media (max-width: 768px){.button.sc-my-colorinfo,a.button.sc-my-colorinfo{margin:0 auto}}.divider.sc-my-colorinfo{border:1px solid #4c4c4c;opacity:0.2;margin-bottom:20px}@media (max-width: 768px){.divider.sc-my-colorinfo{margin:10px 0px;display:none}}";
97
+
96
98
  const MyColorInfo = class {
97
99
  constructor(hostRef) {
98
100
  index$1.registerInstance(this, hostRef);
99
101
  this.closeInfoBox = index$1.createEvent(this, "closeInfoBox", 7);
102
+ this.addToBasket = index$1.createEvent(this, "addToBasket", 7);
100
103
  this.goToProduct = () => {
101
104
  var _a;
102
105
  this.currentColor &&
@@ -132,14 +135,48 @@ const MyColorInfo = class {
132
135
  this.capitalizeFirstLetter = (string) => {
133
136
  return string.charAt(0).toUpperCase() + string.slice(1).toLocaleLowerCase();
134
137
  };
138
+ this.isVeryLightBackground = () => {
139
+ var _a, _b;
140
+ if (this.currentColor.imageInsteadHex)
141
+ return true;
142
+ const hex = (_b = (_a = this.currentColor.hex) === null || _a === void 0 ? void 0 : _a.replace('#', '')) !== null && _b !== void 0 ? _b : '';
143
+ if (hex.length !== 6 && hex.length !== 3)
144
+ return false;
145
+ const r = parseInt(hex.length === 3 ? hex[0] + hex[0] : hex.slice(0, 2), 16) / 255;
146
+ const g = parseInt(hex.length === 3 ? hex[1] + hex[1] : hex.slice(2, 4), 16) / 255;
147
+ const b = parseInt(hex.length === 3 ? hex[2] + hex[2] : hex.slice(4, 6), 16) / 255;
148
+ const luminance = 0.299 * r + 0.587 * g + 0.114 * b;
149
+ return luminance > 0.96; // only near-white: dark button; rest: white button
150
+ };
151
+ this.getButtonClass = () => {
152
+ if (this.currentColor.imageInsteadHex)
153
+ return 'brown';
154
+ return this.isVeryLightBackground() ? 'inverse' : '';
155
+ };
156
+ this.handleAddToBasket = () => {
157
+ var _a;
158
+ if (!((_a = this.availableTesters) === null || _a === void 0 ? void 0 : _a.id_product_attribute))
159
+ return;
160
+ this.buttonBlocked = true;
161
+ this.addToBasket.emit({
162
+ id: this.availableTesters.id_product_attribute,
163
+ });
164
+ setTimeout(() => {
165
+ this.buttonBlocked = false;
166
+ }, 10000);
167
+ };
135
168
  this.currentColor = undefined;
136
169
  this.shop = undefined;
137
170
  this.product = undefined;
138
171
  this.baselink = undefined;
172
+ this.availableTesters = undefined;
173
+ this.price = undefined;
139
174
  this.data = null;
140
175
  this.isMobile = false;
141
176
  this.infoBoxWidth = undefined;
142
177
  this.closeImage = 'close.png';
178
+ this.shapeImage = 'Shape.svg';
179
+ this.buttonBlocked = false;
143
180
  }
144
181
  render() {
145
182
  var _a;
@@ -148,9 +185,11 @@ const MyColorInfo = class {
148
185
  maxWidth: `${this.infoBoxWidth && this.infoBoxWidth - 4}px`,
149
186
  } }, this.isMobile && index$1.h("img", { class: 'closebtn', onClick: this.onCloseButtonClick, src: index$1.getAssetPath(`./assets/${this.closeImage}`), alt: "closebtn" }), index$1.h("div", { class: "boxes__box-content__info", style: {
150
187
  maxWidth: this.isMobile ? `${this.infoBoxWidth && this.infoBoxWidth - 35}px` : ``,
151
- } }, !this.isMobile && index$1.h("img", { class: 'closebtn', onClick: this.onCloseButtonClick, src: index$1.getAssetPath(`./assets/${this.closeImage}`), alt: "closebtn" }), index$1.h("h2", null, this.capitalizeFirstLetter(this.currentColor.name)), !this.isMobile && index$1.h("h4", null, this.currentColor.number), index$1.h("div", { class: "boxes__box-content__info__value" }, index$1.h("div", { class: "boxes__box-content__info__value-product" }, this.isMobile && index$1.h("div", { class: 'divider' }), this.currentColor && ((_a = this.currentColor.links) === null || _a === void 0 ? void 0 : _a.find((link) => (link === null || link === void 0 ? void 0 : link.shop) === this.shop)) && (index$1.h("a", { onClick: this.goToProduct, href: this.getHref(), class: `button ${this.currentColor.imageInsteadHex ? 'brown' : this.currentColor.buttonInverse ? 'inverse' : ''}` }, "wybierz kolor"))))), index$1.h("div", { class: "boxes__box-content__slider" }, this.renderSliderOrImage())));
188
+ } }, index$1.h("div", { class: "boxes__box-content__info__header" }, !this.isMobile && index$1.h("img", { class: 'closebtn', onClick: this.onCloseButtonClick, src: index$1.getAssetPath(`./assets/${this.closeImage}`), alt: "closebtn" }), index$1.h("h2", null, this.capitalizeFirstLetter(this.currentColor.name)), !this.isMobile && index$1.h("h4", null, this.currentColor.number), this.currentColor && ((_a = this.currentColor.links) === null || _a === void 0 ? void 0 : _a.find((link) => (link === null || link === void 0 ? void 0 : link.shop) === this.shop)) && (index$1.h("a", { onClick: this.goToProduct, href: this.getHref(), class: `button ${this.getButtonClass()}` }, "wybierz kolor"))), index$1.h("div", { class: "boxes__box-content__info__value" }, index$1.h("div", { class: "divider" }), index$1.h("div", { class: "boxes__box-content__info__tester" }, ' ', index$1.h("div", { class: "divider" }), index$1.h("div", { class: "tester-text" }, index$1.h("h2", null, "Zam\u00F3w tester"), index$1.h("p", null, "Sprawd\u017A go na swojej \u015Bcianie.")), index$1.h("div", { class: "tester-buy" }, index$1.h("div", { class: "price" }, this.price ? `${this.price} zł` : ''), index$1.h("button", { class: `button fit ${this.getButtonClass()} ${!this.availableTesters ? 'disabled' : ''}`, onClick: this.handleAddToBasket, disabled: !this.availableTesters || this.buttonBlocked }, index$1.h("span", { class: "shape-icon", "aria-hidden": "true" }, index$1.h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "15", height: "16", viewBox: "0 0 15 16" }, index$1.h("path", { class: "shape-icon__path", transform: "translate(0.0867462 0)", d: "M13.246571 12.763281L11.931726 4.961875C11.801879 4.1936703 11.13567 3.6319427 10.35657 3.63375L9.7429771 3.63375L9.7429771 3.1025C9.7429771 1.3890365 8.35394 0 6.6404767 0C4.9270134 0 3.537977 1.3890365 3.537977 3.1025L3.537977 3.63375L2.9217269 3.63375C2.1426277 3.6319427 1.4764187 4.1936703 1.3465706 4.961875L0.034383144 12.763281C-0.086738147 13.483807 0.11555123 14.221112 0.58740741 14.778946C1.0592636 15.336781 1.7528107 15.658594 2.4834456 15.658594L10.797508 15.658594C11.528143 15.658594 12.22169 15.336781 12.693546 14.778946C13.165402 14.221112 13.367692 13.483807 13.246571 12.763281L13.246571 12.763281ZM4.3348517 3.0892186C4.3348517 1.8158572 5.3671155 0.78359371 6.6404767 0.78359371C7.9138384 0.78359371 8.9461021 1.8158572 8.9461021 3.0892186L8.9461021 3.6204686L4.3348517 3.6204686L4.3348517 3.0892186ZM12.08579 14.264063C11.765244 14.643165 11.293964 14.86172 10.797508 14.86172L2.4834456 14.86172C1.9871488 14.862442 1.5158025 14.644215 1.195269 14.265309C0.87473541 13.886404 0.73765546 13.385406 0.82063317 12.896093L2.1248519 5.092031C2.1891608 4.703371 2.5278175 4.4200282 2.9217269 4.4252396L3.5353208 4.4252396L3.5353208 5.5834374C3.5353208 5.8034883 3.7137072 5.9818749 3.9337583 5.9818749C4.1538091 5.9818749 4.3321958 5.8034883 4.3321958 5.5834374L4.3321958 4.4252396L8.9461021 4.4252396L8.9461021 5.5834374C8.9461021 5.8034883 9.1244888 5.9818749 9.3445396 5.9818749C9.5645905 5.9818749 9.7429771 5.8034883 9.7429771 5.5834374L9.7429771 4.4252396L10.359227 4.4252396C10.753137 4.4200282 11.091793 4.703371 11.156102 5.092031L12.46032 12.896093C12.542204 13.384947 12.40527 13.885097 12.08579 14.264063L12.08579 14.264063Z" }))), this.buttonBlocked ? 'Dodano do koszyka…' : !this.availableTesters ? 'Tester obecnie niedostępny' : 'Dodaj do koszyka'))))), index$1.h("div", { class: "boxes__box-content__slider" }, this.renderSliderOrImage())));
152
189
  }
190
+ static get assetsDirs() { return ["assets"]; }
153
191
  };
192
+ MyColorInfo.style = myColorinfoCss;
154
193
 
155
194
  const isObject$2 = (val) => !Array.isArray(val) && val !== null && typeof val === 'object';
156
195
  const hasAttributes = ({ vattrs }, requiredAttrs = []) => isObject$2(vattrs) && requiredAttrs.every(vattrs.hasOwnProperty.bind(vattrs));
@@ -273,10 +312,13 @@ const myComponentCss = ".pallete-wrapper.sc-my-component{display:flex;flex-direc
273
312
  const MyModalBundle = class {
274
313
  constructor(hostRef) {
275
314
  index$1.registerInstance(this, hostRef);
315
+ this.addToBasket = index$1.createEvent(this, "addToBasket", 7);
276
316
  this.shop = undefined;
277
317
  this.product = undefined;
278
318
  this.baselink = undefined;
279
319
  this.colorname = undefined;
320
+ this.available_testers = undefined;
321
+ this.price = undefined;
280
322
  this.show = false;
281
323
  this.readyToClose = false;
282
324
  }
@@ -293,10 +335,17 @@ const MyModalBundle = class {
293
335
  this.show = false;
294
336
  this.readyToClose = false;
295
337
  }
338
+ addToBasketHandler(event) {
339
+ const { id } = event.detail;
340
+ return id;
341
+ }
296
342
  render() {
297
343
  let content = null;
298
344
  if (this.show) {
299
- content = [index$1.h("my-backdrop", null), index$1.h("my-modal", { shop: this.shop, product: this.product, baselink: this.baselink, selectedcolor: this.colorname })];
345
+ content = [
346
+ index$1.h("my-backdrop", null),
347
+ index$1.h("my-modal", { shop: this.shop, product: this.product, baselink: this.baselink, selectedcolor: this.colorname, available_testers: this.available_testers ? JSON.parse(this.available_testers) : null, price: this.price }),
348
+ ];
300
349
  }
301
350
  return (index$1.h("div", { onClick: () => {
302
351
  if (this.readyToClose) {
@@ -329,1389 +378,1534 @@ const MyLoader = class {
329
378
  };
330
379
  MyLoader.style = myLoaderCss;
331
380
 
332
- /** @type {import('.')} */
333
- var esErrors = Error;
334
-
335
- /** @type {import('./eval')} */
336
- var _eval = EvalError;
337
-
338
- /** @type {import('./range')} */
339
- var range = RangeError;
340
-
341
- /** @type {import('./ref')} */
342
- var ref = ReferenceError;
343
-
344
- /** @type {import('./syntax')} */
345
- var syntax = SyntaxError;
346
-
347
381
  /** @type {import('./type')} */
348
382
  var type = TypeError;
349
383
 
350
- /** @type {import('./uri')} */
351
- var uri = URIError;
352
-
353
- /* eslint complexity: [2, 18], max-statements: [2, 33] */
354
- var shams = function hasSymbols() {
355
- if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
356
- if (typeof Symbol.iterator === 'symbol') { return true; }
357
-
358
- var obj = {};
359
- var sym = Symbol('test');
360
- var symObj = Object(sym);
361
- if (typeof sym === 'string') { return false; }
362
-
363
- if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
364
- if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
365
-
366
- // temp disabled per https://github.com/ljharb/object.assign/issues/17
367
- // if (sym instanceof Symbol) { return false; }
368
- // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
369
- // if (!(symObj instanceof Symbol)) { return false; }
370
-
371
- // if (typeof Symbol.prototype.toString !== 'function') { return false; }
372
- // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
373
-
374
- var symVal = 42;
375
- obj[sym] = symVal;
376
- for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
377
- if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
384
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
378
385
 
379
- if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
386
+ function getAugmentedNamespace(n) {
387
+ if (n.__esModule) return n;
388
+ var a = Object.defineProperty({}, '__esModule', {value: true});
389
+ Object.keys(n).forEach(function (k) {
390
+ var d = Object.getOwnPropertyDescriptor(n, k);
391
+ Object.defineProperty(a, k, d.get ? d : {
392
+ enumerable: true,
393
+ get: function () {
394
+ return n[k];
395
+ }
396
+ });
397
+ });
398
+ return a;
399
+ }
380
400
 
381
- var syms = Object.getOwnPropertySymbols(obj);
382
- if (syms.length !== 1 || syms[0] !== sym) { return false; }
401
+ const _nodeResolve_empty = {};
383
402
 
384
- if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
403
+ const _nodeResolve_empty$1 = /*#__PURE__*/Object.freeze({
404
+ __proto__: null,
405
+ 'default': _nodeResolve_empty
406
+ });
385
407
 
386
- if (typeof Object.getOwnPropertyDescriptor === 'function') {
387
- var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
388
- if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
389
- }
408
+ const utilInspect = /*@__PURE__*/getAugmentedNamespace(_nodeResolve_empty$1);
390
409
 
391
- return true;
392
- };
410
+ var hasMap = typeof Map === 'function' && Map.prototype;
411
+ var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;
412
+ var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;
413
+ var mapForEach = hasMap && Map.prototype.forEach;
414
+ var hasSet = typeof Set === 'function' && Set.prototype;
415
+ var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;
416
+ var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;
417
+ var setForEach = hasSet && Set.prototype.forEach;
418
+ var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;
419
+ var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
420
+ var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;
421
+ var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
422
+ var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;
423
+ var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
424
+ var booleanValueOf = Boolean.prototype.valueOf;
425
+ var objectToString = Object.prototype.toString;
426
+ var functionToString = Function.prototype.toString;
427
+ var $match = String.prototype.match;
428
+ var $slice = String.prototype.slice;
429
+ var $replace$1 = String.prototype.replace;
430
+ var $toUpperCase = String.prototype.toUpperCase;
431
+ var $toLowerCase = String.prototype.toLowerCase;
432
+ var $test = RegExp.prototype.test;
433
+ var $concat$1 = Array.prototype.concat;
434
+ var $join = Array.prototype.join;
435
+ var $arrSlice = Array.prototype.slice;
436
+ var $floor = Math.floor;
437
+ var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;
438
+ var gOPS = Object.getOwnPropertySymbols;
439
+ var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;
440
+ var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';
441
+ // ie, `has-tostringtag/shams
442
+ var toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol')
443
+ ? Symbol.toStringTag
444
+ : null;
445
+ var isEnumerable = Object.prototype.propertyIsEnumerable;
393
446
 
394
- var origSymbol = typeof Symbol !== 'undefined' && Symbol;
447
+ var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (
448
+ [].__proto__ === Array.prototype // eslint-disable-line no-proto
449
+ ? function (O) {
450
+ return O.__proto__; // eslint-disable-line no-proto
451
+ }
452
+ : null
453
+ );
395
454
 
455
+ function addNumericSeparator(num, str) {
456
+ if (
457
+ num === Infinity
458
+ || num === -Infinity
459
+ || num !== num
460
+ || (num && num > -1000 && num < 1000)
461
+ || $test.call(/e/, str)
462
+ ) {
463
+ return str;
464
+ }
465
+ var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
466
+ if (typeof num === 'number') {
467
+ var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num)
468
+ if (int !== num) {
469
+ var intStr = String(int);
470
+ var dec = $slice.call(str, intStr.length + 1);
471
+ return $replace$1.call(intStr, sepRegex, '$&_') + '.' + $replace$1.call($replace$1.call(dec, /([0-9]{3})/g, '$&_'), /_$/, '');
472
+ }
473
+ }
474
+ return $replace$1.call(str, sepRegex, '$&_');
475
+ }
396
476
 
397
- var hasSymbols$1 = function hasNativeSymbols() {
398
- if (typeof origSymbol !== 'function') { return false; }
399
- if (typeof Symbol !== 'function') { return false; }
400
- if (typeof origSymbol('foo') !== 'symbol') { return false; }
401
- if (typeof Symbol('bar') !== 'symbol') { return false; }
402
477
 
403
- return shams();
404
- };
478
+ var inspectCustom = utilInspect.custom;
479
+ var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;
405
480
 
406
- var test = {
407
- __proto__: null,
408
- foo: {}
481
+ var quotes = {
482
+ __proto__: null,
483
+ 'double': '"',
484
+ single: "'"
409
485
  };
410
-
411
- var $Object = Object;
412
-
413
- /** @type {import('.')} */
414
- var hasProto$1 = function hasProto() {
415
- // @ts-expect-error: TS errors on an inherited property for some reason
416
- return { __proto__: test }.foo === test.foo
417
- && !(test instanceof $Object);
486
+ var quoteREs = {
487
+ __proto__: null,
488
+ 'double': /(["\\])/g,
489
+ single: /(['\\])/g
418
490
  };
419
491
 
420
- /* eslint no-invalid-this: 1 */
421
-
422
- var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
423
- var toStr$1 = Object.prototype.toString;
424
- var max = Math.max;
425
- var funcType = '[object Function]';
426
-
427
- var concatty = function concatty(a, b) {
428
- var arr = [];
492
+ var objectInspect = function inspect_(obj, options, depth, seen) {
493
+ var opts = options || {};
429
494
 
430
- for (var i = 0; i < a.length; i += 1) {
431
- arr[i] = a[i];
495
+ if (has$3(opts, 'quoteStyle') && !has$3(quotes, opts.quoteStyle)) {
496
+ throw new TypeError('option "quoteStyle" must be "single" or "double"');
432
497
  }
433
- for (var j = 0; j < b.length; j += 1) {
434
- arr[j + a.length] = b[j];
498
+ if (
499
+ has$3(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'
500
+ ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity
501
+ : opts.maxStringLength !== null
502
+ )
503
+ ) {
504
+ throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
505
+ }
506
+ var customInspect = has$3(opts, 'customInspect') ? opts.customInspect : true;
507
+ if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {
508
+ throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`');
435
509
  }
436
510
 
437
- return arr;
438
- };
511
+ if (
512
+ has$3(opts, 'indent')
513
+ && opts.indent !== null
514
+ && opts.indent !== '\t'
515
+ && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)
516
+ ) {
517
+ throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
518
+ }
519
+ if (has$3(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') {
520
+ throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
521
+ }
522
+ var numericSeparator = opts.numericSeparator;
439
523
 
440
- var slicy = function slicy(arrLike, offset) {
441
- var arr = [];
442
- for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {
443
- arr[j] = arrLike[i];
524
+ if (typeof obj === 'undefined') {
525
+ return 'undefined';
526
+ }
527
+ if (obj === null) {
528
+ return 'null';
529
+ }
530
+ if (typeof obj === 'boolean') {
531
+ return obj ? 'true' : 'false';
444
532
  }
445
- return arr;
446
- };
447
533
 
448
- var joiny = function (arr, joiner) {
449
- var str = '';
450
- for (var i = 0; i < arr.length; i += 1) {
451
- str += arr[i];
452
- if (i + 1 < arr.length) {
453
- str += joiner;
534
+ if (typeof obj === 'string') {
535
+ return inspectString(obj, opts);
536
+ }
537
+ if (typeof obj === 'number') {
538
+ if (obj === 0) {
539
+ return Infinity / obj > 0 ? '0' : '-0';
454
540
  }
541
+ var str = String(obj);
542
+ return numericSeparator ? addNumericSeparator(obj, str) : str;
543
+ }
544
+ if (typeof obj === 'bigint') {
545
+ var bigIntStr = String(obj) + 'n';
546
+ return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;
455
547
  }
456
- return str;
457
- };
458
548
 
459
- var implementation = function bind(that) {
460
- var target = this;
461
- if (typeof target !== 'function' || toStr$1.apply(target) !== funcType) {
462
- throw new TypeError(ERROR_MESSAGE + target);
549
+ var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;
550
+ if (typeof depth === 'undefined') { depth = 0; }
551
+ if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {
552
+ return isArray$3(obj) ? '[Array]' : '[Object]';
463
553
  }
464
- var args = slicy(arguments, 1);
465
554
 
466
- var bound;
467
- var binder = function () {
468
- if (this instanceof bound) {
469
- var result = target.apply(
470
- this,
471
- concatty(args, arguments)
472
- );
473
- if (Object(result) === result) {
474
- return result;
475
- }
476
- return this;
477
- }
478
- return target.apply(
479
- that,
480
- concatty(args, arguments)
481
- );
482
-
483
- };
555
+ var indent = getIndent(opts, depth);
484
556
 
485
- var boundLength = max(0, target.length - args.length);
486
- var boundArgs = [];
487
- for (var i = 0; i < boundLength; i++) {
488
- boundArgs[i] = '$' + i;
557
+ if (typeof seen === 'undefined') {
558
+ seen = [];
559
+ } else if (indexOf(seen, obj) >= 0) {
560
+ return '[Circular]';
489
561
  }
490
562
 
491
- bound = Function('binder', 'return function (' + joiny(boundArgs, ',') + '){ return binder.apply(this,arguments); }')(binder);
492
-
493
- if (target.prototype) {
494
- var Empty = function Empty() {};
495
- Empty.prototype = target.prototype;
496
- bound.prototype = new Empty();
497
- Empty.prototype = null;
563
+ function inspect(value, from, noIndent) {
564
+ if (from) {
565
+ seen = $arrSlice.call(seen);
566
+ seen.push(from);
567
+ }
568
+ if (noIndent) {
569
+ var newOpts = {
570
+ depth: opts.depth
571
+ };
572
+ if (has$3(opts, 'quoteStyle')) {
573
+ newOpts.quoteStyle = opts.quoteStyle;
574
+ }
575
+ return inspect_(value, newOpts, depth + 1, seen);
576
+ }
577
+ return inspect_(value, opts, depth + 1, seen);
498
578
  }
499
579
 
500
- return bound;
580
+ if (typeof obj === 'function' && !isRegExp$1(obj)) { // in older engines, regexes are callable
581
+ var name = nameOf(obj);
582
+ var keys = arrObjKeys(obj, inspect);
583
+ return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : '');
584
+ }
585
+ if (isSymbol(obj)) {
586
+ var symString = hasShammedSymbols ? $replace$1.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj);
587
+ return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;
588
+ }
589
+ if (isElement(obj)) {
590
+ var s = '<' + $toLowerCase.call(String(obj.nodeName));
591
+ var attrs = obj.attributes || [];
592
+ for (var i = 0; i < attrs.length; i++) {
593
+ s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);
594
+ }
595
+ s += '>';
596
+ if (obj.childNodes && obj.childNodes.length) { s += '...'; }
597
+ s += '</' + $toLowerCase.call(String(obj.nodeName)) + '>';
598
+ return s;
599
+ }
600
+ if (isArray$3(obj)) {
601
+ if (obj.length === 0) { return '[]'; }
602
+ var xs = arrObjKeys(obj, inspect);
603
+ if (indent && !singleLineValues(xs)) {
604
+ return '[' + indentedJoin(xs, indent) + ']';
605
+ }
606
+ return '[ ' + $join.call(xs, ', ') + ' ]';
607
+ }
608
+ if (isError(obj)) {
609
+ var parts = arrObjKeys(obj, inspect);
610
+ if (!('cause' in Error.prototype) && 'cause' in obj && !isEnumerable.call(obj, 'cause')) {
611
+ return '{ [' + String(obj) + '] ' + $join.call($concat$1.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }';
612
+ }
613
+ if (parts.length === 0) { return '[' + String(obj) + ']'; }
614
+ return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }';
615
+ }
616
+ if (typeof obj === 'object' && customInspect) {
617
+ if (inspectSymbol && typeof obj[inspectSymbol] === 'function' && utilInspect) {
618
+ return utilInspect(obj, { depth: maxDepth - depth });
619
+ } else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {
620
+ return obj.inspect();
621
+ }
622
+ }
623
+ if (isMap(obj)) {
624
+ var mapParts = [];
625
+ if (mapForEach) {
626
+ mapForEach.call(obj, function (value, key) {
627
+ mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));
628
+ });
629
+ }
630
+ return collectionOf('Map', mapSize.call(obj), mapParts, indent);
631
+ }
632
+ if (isSet(obj)) {
633
+ var setParts = [];
634
+ if (setForEach) {
635
+ setForEach.call(obj, function (value) {
636
+ setParts.push(inspect(value, obj));
637
+ });
638
+ }
639
+ return collectionOf('Set', setSize.call(obj), setParts, indent);
640
+ }
641
+ if (isWeakMap(obj)) {
642
+ return weakCollectionOf('WeakMap');
643
+ }
644
+ if (isWeakSet(obj)) {
645
+ return weakCollectionOf('WeakSet');
646
+ }
647
+ if (isWeakRef(obj)) {
648
+ return weakCollectionOf('WeakRef');
649
+ }
650
+ if (isNumber(obj)) {
651
+ return markBoxed(inspect(Number(obj)));
652
+ }
653
+ if (isBigInt(obj)) {
654
+ return markBoxed(inspect(bigIntValueOf.call(obj)));
655
+ }
656
+ if (isBoolean(obj)) {
657
+ return markBoxed(booleanValueOf.call(obj));
658
+ }
659
+ if (isString(obj)) {
660
+ return markBoxed(inspect(String(obj)));
661
+ }
662
+ // note: in IE 8, sometimes `global !== window` but both are the prototypes of each other
663
+ /* eslint-env browser */
664
+ if (typeof window !== 'undefined' && obj === window) {
665
+ return '{ [object Window] }';
666
+ }
667
+ if (
668
+ (typeof globalThis !== 'undefined' && obj === globalThis)
669
+ || (typeof commonjsGlobal !== 'undefined' && obj === commonjsGlobal)
670
+ ) {
671
+ return '{ [object globalThis] }';
672
+ }
673
+ if (!isDate(obj) && !isRegExp$1(obj)) {
674
+ var ys = arrObjKeys(obj, inspect);
675
+ var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
676
+ var protoTag = obj instanceof Object ? '' : 'null prototype';
677
+ var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr$1(obj), 8, -1) : protoTag ? 'Object' : '';
678
+ var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';
679
+ var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat$1.call([], stringTag || [], protoTag || []), ': ') + '] ' : '');
680
+ if (ys.length === 0) { return tag + '{}'; }
681
+ if (indent) {
682
+ return tag + '{' + indentedJoin(ys, indent) + '}';
683
+ }
684
+ return tag + '{ ' + $join.call(ys, ', ') + ' }';
685
+ }
686
+ return String(obj);
501
687
  };
502
688
 
503
- var functionBind = Function.prototype.bind || implementation;
504
-
505
- var call = Function.prototype.call;
506
- var $hasOwn = Object.prototype.hasOwnProperty;
689
+ function wrapQuotes(s, defaultStyle, opts) {
690
+ var style = opts.quoteStyle || defaultStyle;
691
+ var quoteChar = quotes[style];
692
+ return quoteChar + s + quoteChar;
693
+ }
507
694
 
695
+ function quote(s) {
696
+ return $replace$1.call(String(s), /"/g, '&quot;');
697
+ }
508
698
 
509
- /** @type {import('.')} */
510
- var hasown = functionBind.call(call, $hasOwn);
699
+ function canTrustToString(obj) {
700
+ return !toStringTag || !(typeof obj === 'object' && (toStringTag in obj || typeof obj[toStringTag] !== 'undefined'));
701
+ }
702
+ function isArray$3(obj) { return toStr$1(obj) === '[object Array]' && canTrustToString(obj); }
703
+ function isDate(obj) { return toStr$1(obj) === '[object Date]' && canTrustToString(obj); }
704
+ function isRegExp$1(obj) { return toStr$1(obj) === '[object RegExp]' && canTrustToString(obj); }
705
+ function isError(obj) { return toStr$1(obj) === '[object Error]' && canTrustToString(obj); }
706
+ function isString(obj) { return toStr$1(obj) === '[object String]' && canTrustToString(obj); }
707
+ function isNumber(obj) { return toStr$1(obj) === '[object Number]' && canTrustToString(obj); }
708
+ function isBoolean(obj) { return toStr$1(obj) === '[object Boolean]' && canTrustToString(obj); }
511
709
 
512
- var undefined$1;
710
+ // Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives
711
+ function isSymbol(obj) {
712
+ if (hasShammedSymbols) {
713
+ return obj && typeof obj === 'object' && obj instanceof Symbol;
714
+ }
715
+ if (typeof obj === 'symbol') {
716
+ return true;
717
+ }
718
+ if (!obj || typeof obj !== 'object' || !symToString) {
719
+ return false;
720
+ }
721
+ try {
722
+ symToString.call(obj);
723
+ return true;
724
+ } catch (e) {}
725
+ return false;
726
+ }
513
727
 
728
+ function isBigInt(obj) {
729
+ if (!obj || typeof obj !== 'object' || !bigIntValueOf) {
730
+ return false;
731
+ }
732
+ try {
733
+ bigIntValueOf.call(obj);
734
+ return true;
735
+ } catch (e) {}
736
+ return false;
737
+ }
514
738
 
739
+ var hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; };
740
+ function has$3(obj, key) {
741
+ return hasOwn.call(obj, key);
742
+ }
515
743
 
744
+ function toStr$1(obj) {
745
+ return objectToString.call(obj);
746
+ }
516
747
 
748
+ function nameOf(f) {
749
+ if (f.name) { return f.name; }
750
+ var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/);
751
+ if (m) { return m[1]; }
752
+ return null;
753
+ }
517
754
 
755
+ function indexOf(xs, x) {
756
+ if (xs.indexOf) { return xs.indexOf(x); }
757
+ for (var i = 0, l = xs.length; i < l; i++) {
758
+ if (xs[i] === x) { return i; }
759
+ }
760
+ return -1;
761
+ }
518
762
 
763
+ function isMap(x) {
764
+ if (!mapSize || !x || typeof x !== 'object') {
765
+ return false;
766
+ }
767
+ try {
768
+ mapSize.call(x);
769
+ try {
770
+ setSize.call(x);
771
+ } catch (s) {
772
+ return true;
773
+ }
774
+ return x instanceof Map; // core-js workaround, pre-v2.5.0
775
+ } catch (e) {}
776
+ return false;
777
+ }
519
778
 
779
+ function isWeakMap(x) {
780
+ if (!weakMapHas || !x || typeof x !== 'object') {
781
+ return false;
782
+ }
783
+ try {
784
+ weakMapHas.call(x, weakMapHas);
785
+ try {
786
+ weakSetHas.call(x, weakSetHas);
787
+ } catch (s) {
788
+ return true;
789
+ }
790
+ return x instanceof WeakMap; // core-js workaround, pre-v2.5.0
791
+ } catch (e) {}
792
+ return false;
793
+ }
520
794
 
795
+ function isWeakRef(x) {
796
+ if (!weakRefDeref || !x || typeof x !== 'object') {
797
+ return false;
798
+ }
799
+ try {
800
+ weakRefDeref.call(x);
801
+ return true;
802
+ } catch (e) {}
803
+ return false;
804
+ }
521
805
 
522
- var $Function = Function;
806
+ function isSet(x) {
807
+ if (!setSize || !x || typeof x !== 'object') {
808
+ return false;
809
+ }
810
+ try {
811
+ setSize.call(x);
812
+ try {
813
+ mapSize.call(x);
814
+ } catch (m) {
815
+ return true;
816
+ }
817
+ return x instanceof Set; // core-js workaround, pre-v2.5.0
818
+ } catch (e) {}
819
+ return false;
820
+ }
523
821
 
524
- // eslint-disable-next-line consistent-return
525
- var getEvalledConstructor = function (expressionSyntax) {
526
- try {
527
- return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
528
- } catch (e) {}
529
- };
530
-
531
- var $gOPD$1 = Object.getOwnPropertyDescriptor;
532
-
533
- var throwTypeError = function () {
534
- throw new type();
535
- };
536
- var ThrowTypeError = $gOPD$1
537
- ? (function () {
538
- try {
539
- return throwTypeError;
540
- } catch (calleeThrows) {
541
- try {
542
- // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
543
- return $gOPD$1(arguments, 'callee').get;
544
- } catch (gOPDthrows) {
545
- return throwTypeError;
546
- }
547
- }
548
- }())
549
- : throwTypeError;
550
-
551
- var hasSymbols = hasSymbols$1();
552
- var hasProto = hasProto$1();
553
-
554
- var getProto = Object.getPrototypeOf || (
555
- hasProto
556
- ? function (x) { return x.__proto__; } // eslint-disable-line no-proto
557
- : null
558
- );
559
-
560
- var needsEval = {};
561
-
562
- var TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined$1 : getProto(Uint8Array);
563
-
564
- var INTRINSICS = {
565
- __proto__: null,
566
- '%AggregateError%': typeof AggregateError === 'undefined' ? undefined$1 : AggregateError,
567
- '%Array%': Array,
568
- '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer,
569
- '%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined$1,
570
- '%AsyncFromSyncIteratorPrototype%': undefined$1,
571
- '%AsyncFunction%': needsEval,
572
- '%AsyncGenerator%': needsEval,
573
- '%AsyncGeneratorFunction%': needsEval,
574
- '%AsyncIteratorPrototype%': needsEval,
575
- '%Atomics%': typeof Atomics === 'undefined' ? undefined$1 : Atomics,
576
- '%BigInt%': typeof BigInt === 'undefined' ? undefined$1 : BigInt,
577
- '%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined$1 : BigInt64Array,
578
- '%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined$1 : BigUint64Array,
579
- '%Boolean%': Boolean,
580
- '%DataView%': typeof DataView === 'undefined' ? undefined$1 : DataView,
581
- '%Date%': Date,
582
- '%decodeURI%': decodeURI,
583
- '%decodeURIComponent%': decodeURIComponent,
584
- '%encodeURI%': encodeURI,
585
- '%encodeURIComponent%': encodeURIComponent,
586
- '%Error%': esErrors,
587
- '%eval%': eval, // eslint-disable-line no-eval
588
- '%EvalError%': _eval,
589
- '%Float32Array%': typeof Float32Array === 'undefined' ? undefined$1 : Float32Array,
590
- '%Float64Array%': typeof Float64Array === 'undefined' ? undefined$1 : Float64Array,
591
- '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined$1 : FinalizationRegistry,
592
- '%Function%': $Function,
593
- '%GeneratorFunction%': needsEval,
594
- '%Int8Array%': typeof Int8Array === 'undefined' ? undefined$1 : Int8Array,
595
- '%Int16Array%': typeof Int16Array === 'undefined' ? undefined$1 : Int16Array,
596
- '%Int32Array%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array,
597
- '%isFinite%': isFinite,
598
- '%isNaN%': isNaN,
599
- '%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined$1,
600
- '%JSON%': typeof JSON === 'object' ? JSON : undefined$1,
601
- '%Map%': typeof Map === 'undefined' ? undefined$1 : Map,
602
- '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined$1 : getProto(new Map()[Symbol.iterator]()),
603
- '%Math%': Math,
604
- '%Number%': Number,
605
- '%Object%': Object,
606
- '%parseFloat%': parseFloat,
607
- '%parseInt%': parseInt,
608
- '%Promise%': typeof Promise === 'undefined' ? undefined$1 : Promise,
609
- '%Proxy%': typeof Proxy === 'undefined' ? undefined$1 : Proxy,
610
- '%RangeError%': range,
611
- '%ReferenceError%': ref,
612
- '%Reflect%': typeof Reflect === 'undefined' ? undefined$1 : Reflect,
613
- '%RegExp%': RegExp,
614
- '%Set%': typeof Set === 'undefined' ? undefined$1 : Set,
615
- '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined$1 : getProto(new Set()[Symbol.iterator]()),
616
- '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer,
617
- '%String%': String,
618
- '%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined$1,
619
- '%Symbol%': hasSymbols ? Symbol : undefined$1,
620
- '%SyntaxError%': syntax,
621
- '%ThrowTypeError%': ThrowTypeError,
622
- '%TypedArray%': TypedArray,
623
- '%TypeError%': type,
624
- '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array,
625
- '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray,
626
- '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array,
627
- '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$1 : Uint32Array,
628
- '%URIError%': uri,
629
- '%WeakMap%': typeof WeakMap === 'undefined' ? undefined$1 : WeakMap,
630
- '%WeakRef%': typeof WeakRef === 'undefined' ? undefined$1 : WeakRef,
631
- '%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet
632
- };
633
-
634
- var doEval = function doEval(name) {
635
- var value;
636
- if (name === '%AsyncFunction%') {
637
- value = getEvalledConstructor('async function () {}');
638
- } else if (name === '%GeneratorFunction%') {
639
- value = getEvalledConstructor('function* () {}');
640
- } else if (name === '%AsyncGeneratorFunction%') {
641
- value = getEvalledConstructor('async function* () {}');
642
- } else if (name === '%AsyncGenerator%') {
643
- var fn = doEval('%AsyncGeneratorFunction%');
644
- if (fn) {
645
- value = fn.prototype;
646
- }
647
- } else if (name === '%AsyncIteratorPrototype%') {
648
- var gen = doEval('%AsyncGenerator%');
649
- if (gen && getProto) {
650
- value = getProto(gen.prototype);
651
- }
652
- }
653
-
654
- INTRINSICS[name] = value;
655
-
656
- return value;
657
- };
658
-
659
- var LEGACY_ALIASES = {
660
- __proto__: null,
661
- '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
662
- '%ArrayPrototype%': ['Array', 'prototype'],
663
- '%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
664
- '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
665
- '%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
666
- '%ArrayProto_values%': ['Array', 'prototype', 'values'],
667
- '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
668
- '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
669
- '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
670
- '%BooleanPrototype%': ['Boolean', 'prototype'],
671
- '%DataViewPrototype%': ['DataView', 'prototype'],
672
- '%DatePrototype%': ['Date', 'prototype'],
673
- '%ErrorPrototype%': ['Error', 'prototype'],
674
- '%EvalErrorPrototype%': ['EvalError', 'prototype'],
675
- '%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
676
- '%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
677
- '%FunctionPrototype%': ['Function', 'prototype'],
678
- '%Generator%': ['GeneratorFunction', 'prototype'],
679
- '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
680
- '%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
681
- '%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
682
- '%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
683
- '%JSONParse%': ['JSON', 'parse'],
684
- '%JSONStringify%': ['JSON', 'stringify'],
685
- '%MapPrototype%': ['Map', 'prototype'],
686
- '%NumberPrototype%': ['Number', 'prototype'],
687
- '%ObjectPrototype%': ['Object', 'prototype'],
688
- '%ObjProto_toString%': ['Object', 'prototype', 'toString'],
689
- '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
690
- '%PromisePrototype%': ['Promise', 'prototype'],
691
- '%PromiseProto_then%': ['Promise', 'prototype', 'then'],
692
- '%Promise_all%': ['Promise', 'all'],
693
- '%Promise_reject%': ['Promise', 'reject'],
694
- '%Promise_resolve%': ['Promise', 'resolve'],
695
- '%RangeErrorPrototype%': ['RangeError', 'prototype'],
696
- '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
697
- '%RegExpPrototype%': ['RegExp', 'prototype'],
698
- '%SetPrototype%': ['Set', 'prototype'],
699
- '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
700
- '%StringPrototype%': ['String', 'prototype'],
701
- '%SymbolPrototype%': ['Symbol', 'prototype'],
702
- '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
703
- '%TypedArrayPrototype%': ['TypedArray', 'prototype'],
704
- '%TypeErrorPrototype%': ['TypeError', 'prototype'],
705
- '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
706
- '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
707
- '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
708
- '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
709
- '%URIErrorPrototype%': ['URIError', 'prototype'],
710
- '%WeakMapPrototype%': ['WeakMap', 'prototype'],
711
- '%WeakSetPrototype%': ['WeakSet', 'prototype']
712
- };
713
-
714
-
715
-
716
- var $concat$1 = functionBind.call(Function.call, Array.prototype.concat);
717
- var $spliceApply = functionBind.call(Function.apply, Array.prototype.splice);
718
- var $replace$1 = functionBind.call(Function.call, String.prototype.replace);
719
- var $strSlice = functionBind.call(Function.call, String.prototype.slice);
720
- var $exec = functionBind.call(Function.call, RegExp.prototype.exec);
721
-
722
- /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
723
- var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
724
- var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
725
- var stringToPath = function stringToPath(string) {
726
- var first = $strSlice(string, 0, 1);
727
- var last = $strSlice(string, -1);
728
- if (first === '%' && last !== '%') {
729
- throw new syntax('invalid intrinsic syntax, expected closing `%`');
730
- } else if (last === '%' && first !== '%') {
731
- throw new syntax('invalid intrinsic syntax, expected opening `%`');
732
- }
733
- var result = [];
734
- $replace$1(string, rePropName, function (match, number, quote, subString) {
735
- result[result.length] = quote ? $replace$1(subString, reEscapeChar, '$1') : number || match;
736
- });
737
- return result;
738
- };
739
- /* end adaptation */
740
-
741
- var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
742
- var intrinsicName = name;
743
- var alias;
744
- if (hasown(LEGACY_ALIASES, intrinsicName)) {
745
- alias = LEGACY_ALIASES[intrinsicName];
746
- intrinsicName = '%' + alias[0] + '%';
747
- }
748
-
749
- if (hasown(INTRINSICS, intrinsicName)) {
750
- var value = INTRINSICS[intrinsicName];
751
- if (value === needsEval) {
752
- value = doEval(intrinsicName);
753
- }
754
- if (typeof value === 'undefined' && !allowMissing) {
755
- throw new type('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
756
- }
757
-
758
- return {
759
- alias: alias,
760
- name: intrinsicName,
761
- value: value
762
- };
763
- }
764
-
765
- throw new syntax('intrinsic ' + name + ' does not exist!');
766
- };
767
-
768
- var getIntrinsic = function GetIntrinsic(name, allowMissing) {
769
- if (typeof name !== 'string' || name.length === 0) {
770
- throw new type('intrinsic name must be a non-empty string');
771
- }
772
- if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
773
- throw new type('"allowMissing" argument must be a boolean');
774
- }
775
-
776
- if ($exec(/^%?[^%]*%?$/, name) === null) {
777
- throw new syntax('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
778
- }
779
- var parts = stringToPath(name);
780
- var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
781
-
782
- var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
783
- var intrinsicRealName = intrinsic.name;
784
- var value = intrinsic.value;
785
- var skipFurtherCaching = false;
786
-
787
- var alias = intrinsic.alias;
788
- if (alias) {
789
- intrinsicBaseName = alias[0];
790
- $spliceApply(parts, $concat$1([0, 1], alias));
791
- }
792
-
793
- for (var i = 1, isOwn = true; i < parts.length; i += 1) {
794
- var part = parts[i];
795
- var first = $strSlice(part, 0, 1);
796
- var last = $strSlice(part, -1);
797
- if (
798
- (
799
- (first === '"' || first === "'" || first === '`')
800
- || (last === '"' || last === "'" || last === '`')
801
- )
802
- && first !== last
803
- ) {
804
- throw new syntax('property names with quotes must have matching quotes');
805
- }
806
- if (part === 'constructor' || !isOwn) {
807
- skipFurtherCaching = true;
808
- }
809
-
810
- intrinsicBaseName += '.' + part;
811
- intrinsicRealName = '%' + intrinsicBaseName + '%';
822
+ function isWeakSet(x) {
823
+ if (!weakSetHas || !x || typeof x !== 'object') {
824
+ return false;
825
+ }
826
+ try {
827
+ weakSetHas.call(x, weakSetHas);
828
+ try {
829
+ weakMapHas.call(x, weakMapHas);
830
+ } catch (s) {
831
+ return true;
832
+ }
833
+ return x instanceof WeakSet; // core-js workaround, pre-v2.5.0
834
+ } catch (e) {}
835
+ return false;
836
+ }
812
837
 
813
- if (hasown(INTRINSICS, intrinsicRealName)) {
814
- value = INTRINSICS[intrinsicRealName];
815
- } else if (value != null) {
816
- if (!(part in value)) {
817
- if (!allowMissing) {
818
- throw new type('base intrinsic for ' + name + ' exists, but the property is not available.');
819
- }
820
- return void undefined$1;
821
- }
822
- if ($gOPD$1 && (i + 1) >= parts.length) {
823
- var desc = $gOPD$1(value, part);
824
- isOwn = !!desc;
838
+ function isElement(x) {
839
+ if (!x || typeof x !== 'object') { return false; }
840
+ if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) {
841
+ return true;
842
+ }
843
+ return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';
844
+ }
825
845
 
826
- // By convention, when a data property is converted to an accessor
827
- // property to emulate a data property that does not suffer from
828
- // the override mistake, that accessor's getter is marked with
829
- // an `originalValue` property. Here, when we detect this, we
830
- // uphold the illusion by pretending to see that original data
831
- // property, i.e., returning the value rather than the getter
832
- // itself.
833
- if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
834
- value = desc.get;
835
- } else {
836
- value = value[part];
837
- }
838
- } else {
839
- isOwn = hasown(value, part);
840
- value = value[part];
841
- }
846
+ function inspectString(str, opts) {
847
+ if (str.length > opts.maxStringLength) {
848
+ var remaining = str.length - opts.maxStringLength;
849
+ var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');
850
+ return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;
851
+ }
852
+ var quoteRE = quoteREs[opts.quoteStyle || 'single'];
853
+ quoteRE.lastIndex = 0;
854
+ // eslint-disable-next-line no-control-regex
855
+ var s = $replace$1.call($replace$1.call(str, quoteRE, '\\$1'), /[\x00-\x1f]/g, lowbyte);
856
+ return wrapQuotes(s, 'single', opts);
857
+ }
842
858
 
843
- if (isOwn && !skipFurtherCaching) {
844
- INTRINSICS[intrinsicRealName] = value;
845
- }
846
- }
847
- }
848
- return value;
849
- };
859
+ function lowbyte(c) {
860
+ var n = c.charCodeAt(0);
861
+ var x = {
862
+ 8: 'b',
863
+ 9: 't',
864
+ 10: 'n',
865
+ 12: 'f',
866
+ 13: 'r'
867
+ }[n];
868
+ if (x) { return '\\' + x; }
869
+ return '\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16));
870
+ }
850
871
 
851
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
872
+ function markBoxed(str) {
873
+ return 'Object(' + str + ')';
874
+ }
852
875
 
853
- function createCommonjsModule(fn, basedir, module) {
854
- return module = {
855
- path: basedir,
856
- exports: {},
857
- require: function (path, base) {
858
- return commonjsRequire();
859
- }
860
- }, fn(module, module.exports), module.exports;
876
+ function weakCollectionOf(type) {
877
+ return type + ' { ? }';
861
878
  }
862
879
 
863
- function getAugmentedNamespace(n) {
864
- if (n.__esModule) return n;
865
- var a = Object.defineProperty({}, '__esModule', {value: true});
866
- Object.keys(n).forEach(function (k) {
867
- var d = Object.getOwnPropertyDescriptor(n, k);
868
- Object.defineProperty(a, k, d.get ? d : {
869
- enumerable: true,
870
- get: function () {
871
- return n[k];
872
- }
873
- });
874
- });
875
- return a;
880
+ function collectionOf(type, size, entries, indent) {
881
+ var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', ');
882
+ return type + ' (' + size + ') {' + joinedEntries + '}';
876
883
  }
877
884
 
878
- function commonjsRequire () {
879
- throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
885
+ function singleLineValues(xs) {
886
+ for (var i = 0; i < xs.length; i++) {
887
+ if (indexOf(xs[i], '\n') >= 0) {
888
+ return false;
889
+ }
890
+ }
891
+ return true;
880
892
  }
881
893
 
882
- /** @type {import('.')} */
883
- var $defineProperty = getIntrinsic('%Object.defineProperty%', true) || false;
884
- if ($defineProperty) {
885
- try {
886
- $defineProperty({}, 'a', { value: 1 });
887
- } catch (e) {
888
- // IE 8 has a broken defineProperty
889
- $defineProperty = false;
890
- }
894
+ function getIndent(opts, depth) {
895
+ var baseIndent;
896
+ if (opts.indent === '\t') {
897
+ baseIndent = '\t';
898
+ } else if (typeof opts.indent === 'number' && opts.indent > 0) {
899
+ baseIndent = $join.call(Array(opts.indent + 1), ' ');
900
+ } else {
901
+ return null;
902
+ }
903
+ return {
904
+ base: baseIndent,
905
+ prev: $join.call(Array(depth + 1), baseIndent)
906
+ };
891
907
  }
892
908
 
893
- var esDefineProperty = $defineProperty;
909
+ function indentedJoin(xs, indent) {
910
+ if (xs.length === 0) { return ''; }
911
+ var lineJoiner = '\n' + indent.prev + indent.base;
912
+ return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\n' + indent.prev;
913
+ }
894
914
 
895
- var $gOPD = getIntrinsic('%Object.getOwnPropertyDescriptor%', true);
915
+ function arrObjKeys(obj, inspect) {
916
+ var isArr = isArray$3(obj);
917
+ var xs = [];
918
+ if (isArr) {
919
+ xs.length = obj.length;
920
+ for (var i = 0; i < obj.length; i++) {
921
+ xs[i] = has$3(obj, i) ? inspect(obj[i], obj) : '';
922
+ }
923
+ }
924
+ var syms = typeof gOPS === 'function' ? gOPS(obj) : [];
925
+ var symMap;
926
+ if (hasShammedSymbols) {
927
+ symMap = {};
928
+ for (var k = 0; k < syms.length; k++) {
929
+ symMap['$' + syms[k]] = syms[k];
930
+ }
931
+ }
896
932
 
897
- if ($gOPD) {
898
- try {
899
- $gOPD([], 'length');
900
- } catch (e) {
901
- // IE 8 has a broken gOPD
902
- $gOPD = null;
903
- }
933
+ for (var key in obj) { // eslint-disable-line no-restricted-syntax
934
+ if (!has$3(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
935
+ if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
936
+ if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {
937
+ // this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section
938
+ continue; // eslint-disable-line no-restricted-syntax, no-continue
939
+ } else if ($test.call(/[^\w$]/, key)) {
940
+ xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));
941
+ } else {
942
+ xs.push(key + ': ' + inspect(obj[key], obj));
943
+ }
944
+ }
945
+ if (typeof gOPS === 'function') {
946
+ for (var j = 0; j < syms.length; j++) {
947
+ if (isEnumerable.call(obj, syms[j])) {
948
+ xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj));
949
+ }
950
+ }
951
+ }
952
+ return xs;
904
953
  }
905
954
 
906
- var gopd = $gOPD;
907
-
908
- /** @type {import('.')} */
909
- var defineDataProperty = function defineDataProperty(
910
- obj,
911
- property,
912
- value
913
- ) {
914
- if (!obj || (typeof obj !== 'object' && typeof obj !== 'function')) {
915
- throw new type('`obj` must be an object or a function`');
916
- }
917
- if (typeof property !== 'string' && typeof property !== 'symbol') {
918
- throw new type('`property` must be a string or a symbol`');
919
- }
920
- if (arguments.length > 3 && typeof arguments[3] !== 'boolean' && arguments[3] !== null) {
921
- throw new type('`nonEnumerable`, if provided, must be a boolean or null');
922
- }
923
- if (arguments.length > 4 && typeof arguments[4] !== 'boolean' && arguments[4] !== null) {
924
- throw new type('`nonWritable`, if provided, must be a boolean or null');
925
- }
926
- if (arguments.length > 5 && typeof arguments[5] !== 'boolean' && arguments[5] !== null) {
927
- throw new type('`nonConfigurable`, if provided, must be a boolean or null');
928
- }
929
- if (arguments.length > 6 && typeof arguments[6] !== 'boolean') {
930
- throw new type('`loose`, if provided, must be a boolean');
955
+ /*
956
+ * This function traverses the list returning the node corresponding to the given key.
957
+ *
958
+ * That node is also moved to the head of the list, so that if it's accessed again we don't need to traverse the whole list.
959
+ * By doing so, all the recently used nodes can be accessed relatively quickly.
960
+ */
961
+ /** @type {import('./list.d.ts').listGetNode} */
962
+ // eslint-disable-next-line consistent-return
963
+ var listGetNode = function (list, key, isDelete) {
964
+ /** @type {typeof list | NonNullable<(typeof list)['next']>} */
965
+ var prev = list;
966
+ /** @type {(typeof list)['next']} */
967
+ var curr;
968
+ // eslint-disable-next-line eqeqeq
969
+ for (; (curr = prev.next) != null; prev = curr) {
970
+ if (curr.key === key) {
971
+ prev.next = curr.next;
972
+ if (!isDelete) {
973
+ // eslint-disable-next-line no-extra-parens
974
+ curr.next = /** @type {NonNullable<typeof list.next>} */ (list.next);
975
+ list.next = curr; // eslint-disable-line no-param-reassign
976
+ }
977
+ return curr;
978
+ }
931
979
  }
980
+ };
932
981
 
933
- var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
934
- var nonWritable = arguments.length > 4 ? arguments[4] : null;
935
- var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
936
- var loose = arguments.length > 6 ? arguments[6] : false;
937
-
938
- /* @type {false | TypedPropertyDescriptor<unknown>} */
939
- var desc = !!gopd && gopd(obj, property);
940
-
941
- if (esDefineProperty) {
942
- esDefineProperty(obj, property, {
943
- configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
944
- enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
945
- value: value,
946
- writable: nonWritable === null && desc ? desc.writable : !nonWritable
947
- });
948
- } else if (loose || (!nonEnumerable && !nonWritable && !nonConfigurable)) {
949
- // must fall back to [[Set]], and was not explicitly asked to make non-enumerable, non-writable, or non-configurable
950
- obj[property] = value; // eslint-disable-line no-param-reassign
951
- } else {
952
- throw new syntax('This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.');
982
+ /** @type {import('./list.d.ts').listGet} */
983
+ var listGet = function (objects, key) {
984
+ if (!objects) {
985
+ return void undefined;
953
986
  }
987
+ var node = listGetNode(objects, key);
988
+ return node && node.value;
954
989
  };
955
-
956
- var hasPropertyDescriptors = function hasPropertyDescriptors() {
957
- return !!esDefineProperty;
990
+ /** @type {import('./list.d.ts').listSet} */
991
+ var listSet = function (objects, key, value) {
992
+ var node = listGetNode(objects, key);
993
+ if (node) {
994
+ node.value = value;
995
+ } else {
996
+ // Prepend the new node to the beginning of the list
997
+ objects.next = /** @type {import('./list.d.ts').ListNode<typeof value, typeof key>} */ ({ // eslint-disable-line no-param-reassign, no-extra-parens
998
+ key: key,
999
+ next: objects.next,
1000
+ value: value
1001
+ });
1002
+ }
958
1003
  };
959
-
960
- hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
961
- // node v0.6 has a bug where array lengths can be Set but not Defined
962
- if (!esDefineProperty) {
963
- return null;
1004
+ /** @type {import('./list.d.ts').listHas} */
1005
+ var listHas = function (objects, key) {
1006
+ if (!objects) {
1007
+ return false;
964
1008
  }
965
- try {
966
- return esDefineProperty([], 'length', { value: 1 }).length !== 1;
967
- } catch (e) {
968
- // In Firefox 4-22, defining length on an array throws an exception.
969
- return true;
1009
+ return !!listGetNode(objects, key);
1010
+ };
1011
+ /** @type {import('./list.d.ts').listDelete} */
1012
+ // eslint-disable-next-line consistent-return
1013
+ var listDelete = function (objects, key) {
1014
+ if (objects) {
1015
+ return listGetNode(objects, key, true);
970
1016
  }
971
1017
  };
972
1018
 
973
- var hasPropertyDescriptors_1 = hasPropertyDescriptors;
974
-
975
- var hasDescriptors = hasPropertyDescriptors_1();
1019
+ /** @type {import('.')} */
1020
+ var sideChannelList = function getSideChannelList() {
1021
+ /** @typedef {ReturnType<typeof getSideChannelList>} Channel */
1022
+ /** @typedef {Parameters<Channel['get']>[0]} K */
1023
+ /** @typedef {Parameters<Channel['set']>[1]} V */
976
1024
 
1025
+ /** @type {import('./list.d.ts').RootNode<V, K> | undefined} */ var $o;
977
1026
 
1027
+ /** @type {Channel} */
1028
+ var channel = {
1029
+ assert: function (key) {
1030
+ if (!channel.has(key)) {
1031
+ throw new type('Side channel does not contain ' + objectInspect(key));
1032
+ }
1033
+ },
1034
+ 'delete': function (key) {
1035
+ var root = $o && $o.next;
1036
+ var deletedNode = listDelete($o, key);
1037
+ if (deletedNode && root && root === deletedNode) {
1038
+ $o = void undefined;
1039
+ }
1040
+ return !!deletedNode;
1041
+ },
1042
+ get: function (key) {
1043
+ return listGet($o, key);
1044
+ },
1045
+ has: function (key) {
1046
+ return listHas($o, key);
1047
+ },
1048
+ set: function (key, value) {
1049
+ if (!$o) {
1050
+ // Initialize the linked list as an empty node, so that we don't have to special-case handling of the first node: we can always refer to it as (previous node).next, instead of something like (list).head
1051
+ $o = {
1052
+ next: void undefined
1053
+ };
1054
+ }
1055
+ // eslint-disable-next-line no-extra-parens
1056
+ listSet(/** @type {NonNullable<typeof $o>} */ ($o), key, value);
1057
+ }
1058
+ };
1059
+ // @ts-expect-error TODO: figure out why this is erroring
1060
+ return channel;
1061
+ };
978
1062
 
979
- var $floor$1 = getIntrinsic('%Math.floor%');
1063
+ /** @type {import('.')} */
1064
+ var esObjectAtoms = Object;
980
1065
 
981
1066
  /** @type {import('.')} */
982
- var setFunctionLength = function setFunctionLength(fn, length) {
983
- if (typeof fn !== 'function') {
984
- throw new type('`fn` is not a function');
985
- }
986
- if (typeof length !== 'number' || length < 0 || length > 0xFFFFFFFF || $floor$1(length) !== length) {
987
- throw new type('`length` must be a positive 32-bit integer');
988
- }
1067
+ var esErrors = Error;
989
1068
 
990
- var loose = arguments.length > 2 && !!arguments[2];
1069
+ /** @type {import('./eval')} */
1070
+ var _eval = EvalError;
991
1071
 
992
- var functionLengthIsConfigurable = true;
993
- var functionLengthIsWritable = true;
994
- if ('length' in fn && gopd) {
995
- var desc = gopd(fn, 'length');
996
- if (desc && !desc.configurable) {
997
- functionLengthIsConfigurable = false;
998
- }
999
- if (desc && !desc.writable) {
1000
- functionLengthIsWritable = false;
1001
- }
1002
- }
1072
+ /** @type {import('./range')} */
1073
+ var range = RangeError;
1003
1074
 
1004
- if (functionLengthIsConfigurable || functionLengthIsWritable || !loose) {
1005
- if (hasDescriptors) {
1006
- defineDataProperty(/** @type {Parameters<define>[0]} */ (fn), 'length', length, true, true);
1007
- } else {
1008
- defineDataProperty(/** @type {Parameters<define>[0]} */ (fn), 'length', length);
1009
- }
1010
- }
1011
- return fn;
1012
- };
1075
+ /** @type {import('./ref')} */
1076
+ var ref = ReferenceError;
1013
1077
 
1014
- var callBind = createCommonjsModule(function (module) {
1078
+ /** @type {import('./syntax')} */
1079
+ var syntax = SyntaxError;
1015
1080
 
1081
+ /** @type {import('./uri')} */
1082
+ var uri = URIError;
1016
1083
 
1084
+ /** @type {import('./abs')} */
1085
+ var abs = Math.abs;
1017
1086
 
1087
+ /** @type {import('./floor')} */
1088
+ var floor = Math.floor;
1018
1089
 
1090
+ /** @type {import('./max')} */
1091
+ var max$1 = Math.max;
1019
1092
 
1093
+ /** @type {import('./min')} */
1094
+ var min = Math.min;
1020
1095
 
1021
- var $apply = getIntrinsic('%Function.prototype.apply%');
1022
- var $call = getIntrinsic('%Function.prototype.call%');
1023
- var $reflectApply = getIntrinsic('%Reflect.apply%', true) || functionBind.call($call, $apply);
1096
+ /** @type {import('./pow')} */
1097
+ var pow = Math.pow;
1024
1098
 
1099
+ /** @type {import('./round')} */
1100
+ var round = Math.round;
1025
1101
 
1026
- var $max = getIntrinsic('%Math.max%');
1102
+ /** @type {import('./isNaN')} */
1103
+ var _isNaN = Number.isNaN || function isNaN(a) {
1104
+ return a !== a;
1105
+ };
1027
1106
 
1028
- module.exports = function callBind(originalFunction) {
1029
- if (typeof originalFunction !== 'function') {
1030
- throw new type('a function is required');
1107
+ /** @type {import('./sign')} */
1108
+ var sign = function sign(number) {
1109
+ if (_isNaN(number) || number === 0) {
1110
+ return number;
1031
1111
  }
1032
- var func = $reflectApply(functionBind, $call, arguments);
1033
- return setFunctionLength(
1034
- func,
1035
- 1 + $max(0, originalFunction.length - (arguments.length - 1)),
1036
- true
1037
- );
1112
+ return number < 0 ? -1 : +1;
1038
1113
  };
1039
1114
 
1040
- var applyBind = function applyBind() {
1041
- return $reflectApply(functionBind, $apply, arguments);
1042
- };
1115
+ /** @type {import('./gOPD')} */
1116
+ var gOPD = Object.getOwnPropertyDescriptor;
1043
1117
 
1044
- if (esDefineProperty) {
1045
- esDefineProperty(module.exports, 'apply', { value: applyBind });
1046
- } else {
1047
- module.exports.apply = applyBind;
1048
- }
1049
- });
1118
+ /** @type {import('.')} */
1119
+ var $gOPD = gOPD;
1050
1120
 
1051
- var $indexOf = callBind(getIntrinsic('String.prototype.indexOf'));
1121
+ var gopd = $gOPD;
1052
1122
 
1053
- var callBound = function callBoundIntrinsic(name, allowMissing) {
1054
- var intrinsic = getIntrinsic(name, !!allowMissing);
1055
- if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
1056
- return callBind(intrinsic);
1123
+ /** @type {import('.')} */
1124
+ var $defineProperty = Object.defineProperty || false;
1125
+ if ($defineProperty) {
1126
+ try {
1127
+ $defineProperty({}, 'a', { value: 1 });
1128
+ } catch (e) {
1129
+ // IE 8 has a broken defineProperty
1130
+ $defineProperty = false;
1057
1131
  }
1058
- return intrinsic;
1059
- };
1132
+ }
1060
1133
 
1061
- const _nodeResolve_empty = {};
1134
+ var esDefineProperty = $defineProperty;
1062
1135
 
1063
- const _nodeResolve_empty$1 = /*#__PURE__*/Object.freeze({
1064
- __proto__: null,
1065
- 'default': _nodeResolve_empty
1066
- });
1136
+ /** @type {import('./shams')} */
1137
+ /* eslint complexity: [2, 18], max-statements: [2, 33] */
1138
+ var shams = function hasSymbols() {
1139
+ if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
1140
+ if (typeof Symbol.iterator === 'symbol') { return true; }
1067
1141
 
1068
- const utilInspect = /*@__PURE__*/getAugmentedNamespace(_nodeResolve_empty$1);
1142
+ /** @type {{ [k in symbol]?: unknown }} */
1143
+ var obj = {};
1144
+ var sym = Symbol('test');
1145
+ var symObj = Object(sym);
1146
+ if (typeof sym === 'string') { return false; }
1069
1147
 
1070
- var hasMap = typeof Map === 'function' && Map.prototype;
1071
- var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;
1072
- var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;
1073
- var mapForEach = hasMap && Map.prototype.forEach;
1074
- var hasSet = typeof Set === 'function' && Set.prototype;
1075
- var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;
1076
- var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;
1077
- var setForEach = hasSet && Set.prototype.forEach;
1078
- var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;
1079
- var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
1080
- var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;
1081
- var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
1082
- var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;
1083
- var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
1084
- var booleanValueOf = Boolean.prototype.valueOf;
1085
- var objectToString = Object.prototype.toString;
1086
- var functionToString = Function.prototype.toString;
1087
- var $match = String.prototype.match;
1088
- var $slice = String.prototype.slice;
1089
- var $replace = String.prototype.replace;
1090
- var $toUpperCase = String.prototype.toUpperCase;
1091
- var $toLowerCase = String.prototype.toLowerCase;
1092
- var $test = RegExp.prototype.test;
1093
- var $concat = Array.prototype.concat;
1094
- var $join = Array.prototype.join;
1095
- var $arrSlice = Array.prototype.slice;
1096
- var $floor = Math.floor;
1097
- var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;
1098
- var gOPS = Object.getOwnPropertySymbols;
1099
- var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;
1100
- var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';
1101
- // ie, `has-tostringtag/shams
1102
- var toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol')
1103
- ? Symbol.toStringTag
1104
- : null;
1105
- var isEnumerable = Object.prototype.propertyIsEnumerable;
1148
+ if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
1149
+ if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
1106
1150
 
1107
- var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (
1108
- [].__proto__ === Array.prototype // eslint-disable-line no-proto
1109
- ? function (O) {
1110
- return O.__proto__; // eslint-disable-line no-proto
1111
- }
1112
- : null
1113
- );
1151
+ // temp disabled per https://github.com/ljharb/object.assign/issues/17
1152
+ // if (sym instanceof Symbol) { return false; }
1153
+ // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
1154
+ // if (!(symObj instanceof Symbol)) { return false; }
1155
+
1156
+ // if (typeof Symbol.prototype.toString !== 'function') { return false; }
1157
+ // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
1158
+
1159
+ var symVal = 42;
1160
+ obj[sym] = symVal;
1161
+ for (var _ in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
1162
+ if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
1163
+
1164
+ if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
1114
1165
 
1115
- function addNumericSeparator(num, str) {
1116
- if (
1117
- num === Infinity
1118
- || num === -Infinity
1119
- || num !== num
1120
- || (num && num > -1000 && num < 1000)
1121
- || $test.call(/e/, str)
1122
- ) {
1123
- return str;
1124
- }
1125
- var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
1126
- if (typeof num === 'number') {
1127
- var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num)
1128
- if (int !== num) {
1129
- var intStr = String(int);
1130
- var dec = $slice.call(str, intStr.length + 1);
1131
- return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, '');
1132
- }
1133
- }
1134
- return $replace.call(str, sepRegex, '$&_');
1135
- }
1166
+ var syms = Object.getOwnPropertySymbols(obj);
1167
+ if (syms.length !== 1 || syms[0] !== sym) { return false; }
1136
1168
 
1169
+ if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
1137
1170
 
1138
- var inspectCustom = utilInspect.custom;
1139
- var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;
1171
+ if (typeof Object.getOwnPropertyDescriptor === 'function') {
1172
+ // eslint-disable-next-line no-extra-parens
1173
+ var descriptor = /** @type {PropertyDescriptor} */ (Object.getOwnPropertyDescriptor(obj, sym));
1174
+ if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
1175
+ }
1140
1176
 
1141
- var objectInspect = function inspect_(obj, options, depth, seen) {
1142
- var opts = options || {};
1177
+ return true;
1178
+ };
1143
1179
 
1144
- if (has$3(opts, 'quoteStyle') && (opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double')) {
1145
- throw new TypeError('option "quoteStyle" must be "single" or "double"');
1146
- }
1147
- if (
1148
- has$3(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'
1149
- ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity
1150
- : opts.maxStringLength !== null
1151
- )
1152
- ) {
1153
- throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
1154
- }
1155
- var customInspect = has$3(opts, 'customInspect') ? opts.customInspect : true;
1156
- if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {
1157
- throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`');
1158
- }
1180
+ var origSymbol = typeof Symbol !== 'undefined' && Symbol;
1159
1181
 
1160
- if (
1161
- has$3(opts, 'indent')
1162
- && opts.indent !== null
1163
- && opts.indent !== '\t'
1164
- && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)
1165
- ) {
1166
- throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
1167
- }
1168
- if (has$3(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') {
1169
- throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
1170
- }
1171
- var numericSeparator = opts.numericSeparator;
1172
1182
 
1173
- if (typeof obj === 'undefined') {
1174
- return 'undefined';
1175
- }
1176
- if (obj === null) {
1177
- return 'null';
1178
- }
1179
- if (typeof obj === 'boolean') {
1180
- return obj ? 'true' : 'false';
1181
- }
1183
+ /** @type {import('.')} */
1184
+ var hasSymbols$1 = function hasNativeSymbols() {
1185
+ if (typeof origSymbol !== 'function') { return false; }
1186
+ if (typeof Symbol !== 'function') { return false; }
1187
+ if (typeof origSymbol('foo') !== 'symbol') { return false; }
1188
+ if (typeof Symbol('bar') !== 'symbol') { return false; }
1182
1189
 
1183
- if (typeof obj === 'string') {
1184
- return inspectString(obj, opts);
1185
- }
1186
- if (typeof obj === 'number') {
1187
- if (obj === 0) {
1188
- return Infinity / obj > 0 ? '0' : '-0';
1189
- }
1190
- var str = String(obj);
1191
- return numericSeparator ? addNumericSeparator(obj, str) : str;
1192
- }
1193
- if (typeof obj === 'bigint') {
1194
- var bigIntStr = String(obj) + 'n';
1195
- return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;
1196
- }
1190
+ return shams();
1191
+ };
1197
1192
 
1198
- var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;
1199
- if (typeof depth === 'undefined') { depth = 0; }
1200
- if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {
1201
- return isArray$3(obj) ? '[Array]' : '[Object]';
1202
- }
1193
+ /** @type {import('./Reflect.getPrototypeOf')} */
1194
+ var Reflect_getPrototypeOf = (typeof Reflect !== 'undefined' && Reflect.getPrototypeOf) || null;
1203
1195
 
1204
- var indent = getIndent(opts, depth);
1196
+ /** @type {import('./Object.getPrototypeOf')} */
1197
+ var Object_getPrototypeOf = esObjectAtoms.getPrototypeOf || null;
1205
1198
 
1206
- if (typeof seen === 'undefined') {
1207
- seen = [];
1208
- } else if (indexOf(seen, obj) >= 0) {
1209
- return '[Circular]';
1210
- }
1199
+ /* eslint no-invalid-this: 1 */
1211
1200
 
1212
- function inspect(value, from, noIndent) {
1213
- if (from) {
1214
- seen = $arrSlice.call(seen);
1215
- seen.push(from);
1216
- }
1217
- if (noIndent) {
1218
- var newOpts = {
1219
- depth: opts.depth
1220
- };
1221
- if (has$3(opts, 'quoteStyle')) {
1222
- newOpts.quoteStyle = opts.quoteStyle;
1223
- }
1224
- return inspect_(value, newOpts, depth + 1, seen);
1225
- }
1226
- return inspect_(value, opts, depth + 1, seen);
1227
- }
1201
+ var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
1202
+ var toStr = Object.prototype.toString;
1203
+ var max = Math.max;
1204
+ var funcType = '[object Function]';
1228
1205
 
1229
- if (typeof obj === 'function' && !isRegExp$1(obj)) { // in older engines, regexes are callable
1230
- var name = nameOf(obj);
1231
- var keys = arrObjKeys(obj, inspect);
1232
- return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : '');
1233
- }
1234
- if (isSymbol(obj)) {
1235
- var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj);
1236
- return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;
1237
- }
1238
- if (isElement(obj)) {
1239
- var s = '<' + $toLowerCase.call(String(obj.nodeName));
1240
- var attrs = obj.attributes || [];
1241
- for (var i = 0; i < attrs.length; i++) {
1242
- s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);
1243
- }
1244
- s += '>';
1245
- if (obj.childNodes && obj.childNodes.length) { s += '...'; }
1246
- s += '</' + $toLowerCase.call(String(obj.nodeName)) + '>';
1247
- return s;
1248
- }
1249
- if (isArray$3(obj)) {
1250
- if (obj.length === 0) { return '[]'; }
1251
- var xs = arrObjKeys(obj, inspect);
1252
- if (indent && !singleLineValues(xs)) {
1253
- return '[' + indentedJoin(xs, indent) + ']';
1254
- }
1255
- return '[ ' + $join.call(xs, ', ') + ' ]';
1256
- }
1257
- if (isError(obj)) {
1258
- var parts = arrObjKeys(obj, inspect);
1259
- if (!('cause' in Error.prototype) && 'cause' in obj && !isEnumerable.call(obj, 'cause')) {
1260
- return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }';
1261
- }
1262
- if (parts.length === 0) { return '[' + String(obj) + ']'; }
1263
- return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }';
1206
+ var concatty = function concatty(a, b) {
1207
+ var arr = [];
1208
+
1209
+ for (var i = 0; i < a.length; i += 1) {
1210
+ arr[i] = a[i];
1264
1211
  }
1265
- if (typeof obj === 'object' && customInspect) {
1266
- if (inspectSymbol && typeof obj[inspectSymbol] === 'function' && utilInspect) {
1267
- return utilInspect(obj, { depth: maxDepth - depth });
1268
- } else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {
1269
- return obj.inspect();
1270
- }
1212
+ for (var j = 0; j < b.length; j += 1) {
1213
+ arr[j + a.length] = b[j];
1271
1214
  }
1272
- if (isMap(obj)) {
1273
- var mapParts = [];
1274
- if (mapForEach) {
1275
- mapForEach.call(obj, function (value, key) {
1276
- mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));
1277
- });
1278
- }
1279
- return collectionOf('Map', mapSize.call(obj), mapParts, indent);
1215
+
1216
+ return arr;
1217
+ };
1218
+
1219
+ var slicy = function slicy(arrLike, offset) {
1220
+ var arr = [];
1221
+ for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {
1222
+ arr[j] = arrLike[i];
1280
1223
  }
1281
- if (isSet(obj)) {
1282
- var setParts = [];
1283
- if (setForEach) {
1284
- setForEach.call(obj, function (value) {
1285
- setParts.push(inspect(value, obj));
1286
- });
1224
+ return arr;
1225
+ };
1226
+
1227
+ var joiny = function (arr, joiner) {
1228
+ var str = '';
1229
+ for (var i = 0; i < arr.length; i += 1) {
1230
+ str += arr[i];
1231
+ if (i + 1 < arr.length) {
1232
+ str += joiner;
1287
1233
  }
1288
- return collectionOf('Set', setSize.call(obj), setParts, indent);
1289
- }
1290
- if (isWeakMap(obj)) {
1291
- return weakCollectionOf('WeakMap');
1292
- }
1293
- if (isWeakSet(obj)) {
1294
- return weakCollectionOf('WeakSet');
1295
- }
1296
- if (isWeakRef(obj)) {
1297
- return weakCollectionOf('WeakRef');
1298
- }
1299
- if (isNumber(obj)) {
1300
- return markBoxed(inspect(Number(obj)));
1301
- }
1302
- if (isBigInt(obj)) {
1303
- return markBoxed(inspect(bigIntValueOf.call(obj)));
1304
- }
1305
- if (isBoolean(obj)) {
1306
- return markBoxed(booleanValueOf.call(obj));
1307
- }
1308
- if (isString(obj)) {
1309
- return markBoxed(inspect(String(obj)));
1310
- }
1311
- // note: in IE 8, sometimes `global !== window` but both are the prototypes of each other
1312
- /* eslint-env browser */
1313
- if (typeof window !== 'undefined' && obj === window) {
1314
- return '{ [object Window] }';
1315
1234
  }
1316
- if (obj === commonjsGlobal) {
1317
- return '{ [object globalThis] }';
1235
+ return str;
1236
+ };
1237
+
1238
+ var implementation = function bind(that) {
1239
+ var target = this;
1240
+ if (typeof target !== 'function' || toStr.apply(target) !== funcType) {
1241
+ throw new TypeError(ERROR_MESSAGE + target);
1318
1242
  }
1319
- if (!isDate(obj) && !isRegExp$1(obj)) {
1320
- var ys = arrObjKeys(obj, inspect);
1321
- var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
1322
- var protoTag = obj instanceof Object ? '' : 'null prototype';
1323
- var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : '';
1324
- var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';
1325
- var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : '');
1326
- if (ys.length === 0) { return tag + '{}'; }
1327
- if (indent) {
1328
- return tag + '{' + indentedJoin(ys, indent) + '}';
1243
+ var args = slicy(arguments, 1);
1244
+
1245
+ var bound;
1246
+ var binder = function () {
1247
+ if (this instanceof bound) {
1248
+ var result = target.apply(
1249
+ this,
1250
+ concatty(args, arguments)
1251
+ );
1252
+ if (Object(result) === result) {
1253
+ return result;
1254
+ }
1255
+ return this;
1329
1256
  }
1330
- return tag + '{ ' + $join.call(ys, ', ') + ' }';
1257
+ return target.apply(
1258
+ that,
1259
+ concatty(args, arguments)
1260
+ );
1261
+
1262
+ };
1263
+
1264
+ var boundLength = max(0, target.length - args.length);
1265
+ var boundArgs = [];
1266
+ for (var i = 0; i < boundLength; i++) {
1267
+ boundArgs[i] = '$' + i;
1331
1268
  }
1332
- return String(obj);
1269
+
1270
+ bound = Function('binder', 'return function (' + joiny(boundArgs, ',') + '){ return binder.apply(this,arguments); }')(binder);
1271
+
1272
+ if (target.prototype) {
1273
+ var Empty = function Empty() {};
1274
+ Empty.prototype = target.prototype;
1275
+ bound.prototype = new Empty();
1276
+ Empty.prototype = null;
1277
+ }
1278
+
1279
+ return bound;
1333
1280
  };
1334
1281
 
1335
- function wrapQuotes(s, defaultStyle, opts) {
1336
- var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '"' : "'";
1337
- return quoteChar + s + quoteChar;
1338
- }
1282
+ var functionBind = Function.prototype.bind || implementation;
1339
1283
 
1340
- function quote(s) {
1341
- return $replace.call(String(s), /"/g, '&quot;');
1342
- }
1284
+ /** @type {import('./functionCall')} */
1285
+ var functionCall = Function.prototype.call;
1343
1286
 
1344
- function isArray$3(obj) { return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
1345
- function isDate(obj) { return toStr(obj) === '[object Date]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
1346
- function isRegExp$1(obj) { return toStr(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
1347
- function isError(obj) { return toStr(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
1348
- function isString(obj) { return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
1349
- function isNumber(obj) { return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
1350
- function isBoolean(obj) { return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
1287
+ /** @type {import('./functionApply')} */
1288
+ var functionApply = Function.prototype.apply;
1351
1289
 
1352
- // Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives
1353
- function isSymbol(obj) {
1354
- if (hasShammedSymbols) {
1355
- return obj && typeof obj === 'object' && obj instanceof Symbol;
1356
- }
1357
- if (typeof obj === 'symbol') {
1358
- return true;
1359
- }
1360
- if (!obj || typeof obj !== 'object' || !symToString) {
1361
- return false;
1362
- }
1363
- try {
1364
- symToString.call(obj);
1365
- return true;
1366
- } catch (e) {}
1367
- return false;
1368
- }
1290
+ /** @type {import('./reflectApply')} */
1291
+ var reflectApply = typeof Reflect !== 'undefined' && Reflect && Reflect.apply;
1369
1292
 
1370
- function isBigInt(obj) {
1371
- if (!obj || typeof obj !== 'object' || !bigIntValueOf) {
1372
- return false;
1373
- }
1374
- try {
1375
- bigIntValueOf.call(obj);
1376
- return true;
1377
- } catch (e) {}
1378
- return false;
1379
- }
1293
+ /** @type {import('./actualApply')} */
1294
+ var actualApply = reflectApply || functionBind.call(functionCall, functionApply);
1380
1295
 
1381
- var hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; };
1382
- function has$3(obj, key) {
1383
- return hasOwn.call(obj, key);
1384
- }
1296
+ /** @type {(args: [Function, thisArg?: unknown, ...args: unknown[]]) => Function} TODO FIXME, find a way to use import('.') */
1297
+ var callBindApplyHelpers = function callBindBasic(args) {
1298
+ if (args.length < 1 || typeof args[0] !== 'function') {
1299
+ throw new type('a function is required');
1300
+ }
1301
+ return actualApply(functionBind, functionCall, args);
1302
+ };
1385
1303
 
1386
- function toStr(obj) {
1387
- return objectToString.call(obj);
1304
+ var hasProtoAccessor;
1305
+ try {
1306
+ // eslint-disable-next-line no-extra-parens, no-proto
1307
+ hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */ ([]).__proto__ === Array.prototype;
1308
+ } catch (e) {
1309
+ if (!e || typeof e !== 'object' || !('code' in e) || e.code !== 'ERR_PROTO_ACCESS') {
1310
+ throw e;
1311
+ }
1388
1312
  }
1389
1313
 
1390
- function nameOf(f) {
1391
- if (f.name) { return f.name; }
1392
- var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/);
1393
- if (m) { return m[1]; }
1394
- return null;
1395
- }
1314
+ // eslint-disable-next-line no-extra-parens
1315
+ var desc = !!hasProtoAccessor && gopd && gopd(Object.prototype, /** @type {keyof typeof Object.prototype} */ ('__proto__'));
1396
1316
 
1397
- function indexOf(xs, x) {
1398
- if (xs.indexOf) { return xs.indexOf(x); }
1399
- for (var i = 0, l = xs.length; i < l; i++) {
1400
- if (xs[i] === x) { return i; }
1401
- }
1402
- return -1;
1403
- }
1317
+ var $Object = Object;
1318
+ var $getPrototypeOf = $Object.getPrototypeOf;
1319
+
1320
+ /** @type {import('./get')} */
1321
+ var get = desc && typeof desc.get === 'function'
1322
+ ? callBindApplyHelpers([desc.get])
1323
+ : typeof $getPrototypeOf === 'function'
1324
+ ? /** @type {import('./get')} */ function getDunder(value) {
1325
+ // eslint-disable-next-line eqeqeq
1326
+ return $getPrototypeOf(value == null ? value : $Object(value));
1327
+ }
1328
+ : false;
1404
1329
 
1405
- function isMap(x) {
1406
- if (!mapSize || !x || typeof x !== 'object') {
1407
- return false;
1408
- }
1409
- try {
1410
- mapSize.call(x);
1411
- try {
1412
- setSize.call(x);
1413
- } catch (s) {
1414
- return true;
1415
- }
1416
- return x instanceof Map; // core-js workaround, pre-v2.5.0
1417
- } catch (e) {}
1418
- return false;
1419
- }
1330
+ /** @type {import('.')} */
1331
+ var getProto = Reflect_getPrototypeOf
1332
+ ? function getProto(O) {
1333
+ // @ts-expect-error TS can't narrow inside a closure, for some reason
1334
+ return Reflect_getPrototypeOf(O);
1335
+ }
1336
+ : Object_getPrototypeOf
1337
+ ? function getProto(O) {
1338
+ if (!O || (typeof O !== 'object' && typeof O !== 'function')) {
1339
+ throw new TypeError('getProto: not an object');
1340
+ }
1341
+ // @ts-expect-error TS can't narrow inside a closure, for some reason
1342
+ return Object_getPrototypeOf(O);
1343
+ }
1344
+ : get
1345
+ ? function getProto(O) {
1346
+ // @ts-expect-error TS can't narrow inside a closure, for some reason
1347
+ return get(O);
1348
+ }
1349
+ : null;
1350
+
1351
+ var call = Function.prototype.call;
1352
+ var $hasOwn = Object.prototype.hasOwnProperty;
1353
+
1354
+
1355
+ /** @type {import('.')} */
1356
+ var hasown = functionBind.call(call, $hasOwn);
1357
+
1358
+ var undefined$1;
1359
+
1360
+
1361
+
1362
+
1363
+
1364
+
1365
+
1366
+
1367
+
1368
+
1369
+
1370
+
1371
+
1372
+
1373
+
1374
+
1375
+
1376
+
1377
+
1378
+ var $Function = Function;
1379
+
1380
+ // eslint-disable-next-line consistent-return
1381
+ var getEvalledConstructor = function (expressionSyntax) {
1382
+ try {
1383
+ return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
1384
+ } catch (e) {}
1385
+ };
1386
+
1387
+
1388
+
1389
+
1390
+ var throwTypeError = function () {
1391
+ throw new type();
1392
+ };
1393
+ var ThrowTypeError = gopd
1394
+ ? (function () {
1395
+ try {
1396
+ return throwTypeError;
1397
+ } catch (calleeThrows) {
1398
+ try {
1399
+ // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
1400
+ return gopd(arguments, 'callee').get;
1401
+ } catch (gOPDthrows) {
1402
+ return throwTypeError;
1403
+ }
1404
+ }
1405
+ }())
1406
+ : throwTypeError;
1407
+
1408
+ var hasSymbols = hasSymbols$1();
1409
+
1410
+
1411
+
1412
+
1413
+
1414
+
1415
+
1416
+
1417
+ var needsEval = {};
1418
+
1419
+ var TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined$1 : getProto(Uint8Array);
1420
+
1421
+ var INTRINSICS = {
1422
+ __proto__: null,
1423
+ '%AggregateError%': typeof AggregateError === 'undefined' ? undefined$1 : AggregateError,
1424
+ '%Array%': Array,
1425
+ '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer,
1426
+ '%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined$1,
1427
+ '%AsyncFromSyncIteratorPrototype%': undefined$1,
1428
+ '%AsyncFunction%': needsEval,
1429
+ '%AsyncGenerator%': needsEval,
1430
+ '%AsyncGeneratorFunction%': needsEval,
1431
+ '%AsyncIteratorPrototype%': needsEval,
1432
+ '%Atomics%': typeof Atomics === 'undefined' ? undefined$1 : Atomics,
1433
+ '%BigInt%': typeof BigInt === 'undefined' ? undefined$1 : BigInt,
1434
+ '%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined$1 : BigInt64Array,
1435
+ '%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined$1 : BigUint64Array,
1436
+ '%Boolean%': Boolean,
1437
+ '%DataView%': typeof DataView === 'undefined' ? undefined$1 : DataView,
1438
+ '%Date%': Date,
1439
+ '%decodeURI%': decodeURI,
1440
+ '%decodeURIComponent%': decodeURIComponent,
1441
+ '%encodeURI%': encodeURI,
1442
+ '%encodeURIComponent%': encodeURIComponent,
1443
+ '%Error%': esErrors,
1444
+ '%eval%': eval, // eslint-disable-line no-eval
1445
+ '%EvalError%': _eval,
1446
+ '%Float16Array%': typeof Float16Array === 'undefined' ? undefined$1 : Float16Array,
1447
+ '%Float32Array%': typeof Float32Array === 'undefined' ? undefined$1 : Float32Array,
1448
+ '%Float64Array%': typeof Float64Array === 'undefined' ? undefined$1 : Float64Array,
1449
+ '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined$1 : FinalizationRegistry,
1450
+ '%Function%': $Function,
1451
+ '%GeneratorFunction%': needsEval,
1452
+ '%Int8Array%': typeof Int8Array === 'undefined' ? undefined$1 : Int8Array,
1453
+ '%Int16Array%': typeof Int16Array === 'undefined' ? undefined$1 : Int16Array,
1454
+ '%Int32Array%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array,
1455
+ '%isFinite%': isFinite,
1456
+ '%isNaN%': isNaN,
1457
+ '%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined$1,
1458
+ '%JSON%': typeof JSON === 'object' ? JSON : undefined$1,
1459
+ '%Map%': typeof Map === 'undefined' ? undefined$1 : Map,
1460
+ '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined$1 : getProto(new Map()[Symbol.iterator]()),
1461
+ '%Math%': Math,
1462
+ '%Number%': Number,
1463
+ '%Object%': esObjectAtoms,
1464
+ '%Object.getOwnPropertyDescriptor%': gopd,
1465
+ '%parseFloat%': parseFloat,
1466
+ '%parseInt%': parseInt,
1467
+ '%Promise%': typeof Promise === 'undefined' ? undefined$1 : Promise,
1468
+ '%Proxy%': typeof Proxy === 'undefined' ? undefined$1 : Proxy,
1469
+ '%RangeError%': range,
1470
+ '%ReferenceError%': ref,
1471
+ '%Reflect%': typeof Reflect === 'undefined' ? undefined$1 : Reflect,
1472
+ '%RegExp%': RegExp,
1473
+ '%Set%': typeof Set === 'undefined' ? undefined$1 : Set,
1474
+ '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined$1 : getProto(new Set()[Symbol.iterator]()),
1475
+ '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer,
1476
+ '%String%': String,
1477
+ '%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined$1,
1478
+ '%Symbol%': hasSymbols ? Symbol : undefined$1,
1479
+ '%SyntaxError%': syntax,
1480
+ '%ThrowTypeError%': ThrowTypeError,
1481
+ '%TypedArray%': TypedArray,
1482
+ '%TypeError%': type,
1483
+ '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array,
1484
+ '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray,
1485
+ '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array,
1486
+ '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$1 : Uint32Array,
1487
+ '%URIError%': uri,
1488
+ '%WeakMap%': typeof WeakMap === 'undefined' ? undefined$1 : WeakMap,
1489
+ '%WeakRef%': typeof WeakRef === 'undefined' ? undefined$1 : WeakRef,
1490
+ '%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet,
1491
+
1492
+ '%Function.prototype.call%': functionCall,
1493
+ '%Function.prototype.apply%': functionApply,
1494
+ '%Object.defineProperty%': esDefineProperty,
1495
+ '%Object.getPrototypeOf%': Object_getPrototypeOf,
1496
+ '%Math.abs%': abs,
1497
+ '%Math.floor%': floor,
1498
+ '%Math.max%': max$1,
1499
+ '%Math.min%': min,
1500
+ '%Math.pow%': pow,
1501
+ '%Math.round%': round,
1502
+ '%Math.sign%': sign,
1503
+ '%Reflect.getPrototypeOf%': Reflect_getPrototypeOf
1504
+ };
1505
+
1506
+ var doEval = function doEval(name) {
1507
+ var value;
1508
+ if (name === '%AsyncFunction%') {
1509
+ value = getEvalledConstructor('async function () {}');
1510
+ } else if (name === '%GeneratorFunction%') {
1511
+ value = getEvalledConstructor('function* () {}');
1512
+ } else if (name === '%AsyncGeneratorFunction%') {
1513
+ value = getEvalledConstructor('async function* () {}');
1514
+ } else if (name === '%AsyncGenerator%') {
1515
+ var fn = doEval('%AsyncGeneratorFunction%');
1516
+ if (fn) {
1517
+ value = fn.prototype;
1518
+ }
1519
+ } else if (name === '%AsyncIteratorPrototype%') {
1520
+ var gen = doEval('%AsyncGenerator%');
1521
+ if (gen && getProto) {
1522
+ value = getProto(gen.prototype);
1523
+ }
1524
+ }
1525
+
1526
+ INTRINSICS[name] = value;
1527
+
1528
+ return value;
1529
+ };
1420
1530
 
1421
- function isWeakMap(x) {
1422
- if (!weakMapHas || !x || typeof x !== 'object') {
1423
- return false;
1424
- }
1425
- try {
1426
- weakMapHas.call(x, weakMapHas);
1427
- try {
1428
- weakSetHas.call(x, weakSetHas);
1429
- } catch (s) {
1430
- return true;
1431
- }
1432
- return x instanceof WeakMap; // core-js workaround, pre-v2.5.0
1433
- } catch (e) {}
1434
- return false;
1435
- }
1531
+ var LEGACY_ALIASES = {
1532
+ __proto__: null,
1533
+ '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
1534
+ '%ArrayPrototype%': ['Array', 'prototype'],
1535
+ '%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
1536
+ '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
1537
+ '%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
1538
+ '%ArrayProto_values%': ['Array', 'prototype', 'values'],
1539
+ '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
1540
+ '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
1541
+ '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
1542
+ '%BooleanPrototype%': ['Boolean', 'prototype'],
1543
+ '%DataViewPrototype%': ['DataView', 'prototype'],
1544
+ '%DatePrototype%': ['Date', 'prototype'],
1545
+ '%ErrorPrototype%': ['Error', 'prototype'],
1546
+ '%EvalErrorPrototype%': ['EvalError', 'prototype'],
1547
+ '%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
1548
+ '%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
1549
+ '%FunctionPrototype%': ['Function', 'prototype'],
1550
+ '%Generator%': ['GeneratorFunction', 'prototype'],
1551
+ '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
1552
+ '%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
1553
+ '%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
1554
+ '%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
1555
+ '%JSONParse%': ['JSON', 'parse'],
1556
+ '%JSONStringify%': ['JSON', 'stringify'],
1557
+ '%MapPrototype%': ['Map', 'prototype'],
1558
+ '%NumberPrototype%': ['Number', 'prototype'],
1559
+ '%ObjectPrototype%': ['Object', 'prototype'],
1560
+ '%ObjProto_toString%': ['Object', 'prototype', 'toString'],
1561
+ '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
1562
+ '%PromisePrototype%': ['Promise', 'prototype'],
1563
+ '%PromiseProto_then%': ['Promise', 'prototype', 'then'],
1564
+ '%Promise_all%': ['Promise', 'all'],
1565
+ '%Promise_reject%': ['Promise', 'reject'],
1566
+ '%Promise_resolve%': ['Promise', 'resolve'],
1567
+ '%RangeErrorPrototype%': ['RangeError', 'prototype'],
1568
+ '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
1569
+ '%RegExpPrototype%': ['RegExp', 'prototype'],
1570
+ '%SetPrototype%': ['Set', 'prototype'],
1571
+ '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
1572
+ '%StringPrototype%': ['String', 'prototype'],
1573
+ '%SymbolPrototype%': ['Symbol', 'prototype'],
1574
+ '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
1575
+ '%TypedArrayPrototype%': ['TypedArray', 'prototype'],
1576
+ '%TypeErrorPrototype%': ['TypeError', 'prototype'],
1577
+ '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
1578
+ '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
1579
+ '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
1580
+ '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
1581
+ '%URIErrorPrototype%': ['URIError', 'prototype'],
1582
+ '%WeakMapPrototype%': ['WeakMap', 'prototype'],
1583
+ '%WeakSetPrototype%': ['WeakSet', 'prototype']
1584
+ };
1436
1585
 
1437
- function isWeakRef(x) {
1438
- if (!weakRefDeref || !x || typeof x !== 'object') {
1439
- return false;
1440
- }
1441
- try {
1442
- weakRefDeref.call(x);
1443
- return true;
1444
- } catch (e) {}
1445
- return false;
1446
- }
1447
1586
 
1448
- function isSet(x) {
1449
- if (!setSize || !x || typeof x !== 'object') {
1450
- return false;
1451
- }
1452
- try {
1453
- setSize.call(x);
1454
- try {
1455
- mapSize.call(x);
1456
- } catch (m) {
1457
- return true;
1458
- }
1459
- return x instanceof Set; // core-js workaround, pre-v2.5.0
1460
- } catch (e) {}
1461
- return false;
1462
- }
1463
1587
 
1464
- function isWeakSet(x) {
1465
- if (!weakSetHas || !x || typeof x !== 'object') {
1466
- return false;
1467
- }
1468
- try {
1469
- weakSetHas.call(x, weakSetHas);
1470
- try {
1471
- weakMapHas.call(x, weakMapHas);
1472
- } catch (s) {
1473
- return true;
1474
- }
1475
- return x instanceof WeakSet; // core-js workaround, pre-v2.5.0
1476
- } catch (e) {}
1477
- return false;
1478
- }
1588
+ var $concat = functionBind.call(functionCall, Array.prototype.concat);
1589
+ var $spliceApply = functionBind.call(functionApply, Array.prototype.splice);
1590
+ var $replace = functionBind.call(functionCall, String.prototype.replace);
1591
+ var $strSlice = functionBind.call(functionCall, String.prototype.slice);
1592
+ var $exec = functionBind.call(functionCall, RegExp.prototype.exec);
1479
1593
 
1480
- function isElement(x) {
1481
- if (!x || typeof x !== 'object') { return false; }
1482
- if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) {
1483
- return true;
1484
- }
1485
- return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';
1486
- }
1594
+ /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
1595
+ var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
1596
+ var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
1597
+ var stringToPath = function stringToPath(string) {
1598
+ var first = $strSlice(string, 0, 1);
1599
+ var last = $strSlice(string, -1);
1600
+ if (first === '%' && last !== '%') {
1601
+ throw new syntax('invalid intrinsic syntax, expected closing `%`');
1602
+ } else if (last === '%' && first !== '%') {
1603
+ throw new syntax('invalid intrinsic syntax, expected opening `%`');
1604
+ }
1605
+ var result = [];
1606
+ $replace(string, rePropName, function (match, number, quote, subString) {
1607
+ result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
1608
+ });
1609
+ return result;
1610
+ };
1611
+ /* end adaptation */
1487
1612
 
1488
- function inspectString(str, opts) {
1489
- if (str.length > opts.maxStringLength) {
1490
- var remaining = str.length - opts.maxStringLength;
1491
- var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');
1492
- return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;
1493
- }
1494
- // eslint-disable-next-line no-control-regex
1495
- var s = $replace.call($replace.call(str, /(['\\])/g, '\\$1'), /[\x00-\x1f]/g, lowbyte);
1496
- return wrapQuotes(s, 'single', opts);
1497
- }
1613
+ var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
1614
+ var intrinsicName = name;
1615
+ var alias;
1616
+ if (hasown(LEGACY_ALIASES, intrinsicName)) {
1617
+ alias = LEGACY_ALIASES[intrinsicName];
1618
+ intrinsicName = '%' + alias[0] + '%';
1619
+ }
1498
1620
 
1499
- function lowbyte(c) {
1500
- var n = c.charCodeAt(0);
1501
- var x = {
1502
- 8: 'b',
1503
- 9: 't',
1504
- 10: 'n',
1505
- 12: 'f',
1506
- 13: 'r'
1507
- }[n];
1508
- if (x) { return '\\' + x; }
1509
- return '\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16));
1510
- }
1621
+ if (hasown(INTRINSICS, intrinsicName)) {
1622
+ var value = INTRINSICS[intrinsicName];
1623
+ if (value === needsEval) {
1624
+ value = doEval(intrinsicName);
1625
+ }
1626
+ if (typeof value === 'undefined' && !allowMissing) {
1627
+ throw new type('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
1628
+ }
1511
1629
 
1512
- function markBoxed(str) {
1513
- return 'Object(' + str + ')';
1514
- }
1630
+ return {
1631
+ alias: alias,
1632
+ name: intrinsicName,
1633
+ value: value
1634
+ };
1635
+ }
1515
1636
 
1516
- function weakCollectionOf(type) {
1517
- return type + ' { ? }';
1518
- }
1637
+ throw new syntax('intrinsic ' + name + ' does not exist!');
1638
+ };
1519
1639
 
1520
- function collectionOf(type, size, entries, indent) {
1521
- var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', ');
1522
- return type + ' (' + size + ') {' + joinedEntries + '}';
1523
- }
1640
+ var getIntrinsic = function GetIntrinsic(name, allowMissing) {
1641
+ if (typeof name !== 'string' || name.length === 0) {
1642
+ throw new type('intrinsic name must be a non-empty string');
1643
+ }
1644
+ if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
1645
+ throw new type('"allowMissing" argument must be a boolean');
1646
+ }
1524
1647
 
1525
- function singleLineValues(xs) {
1526
- for (var i = 0; i < xs.length; i++) {
1527
- if (indexOf(xs[i], '\n') >= 0) {
1528
- return false;
1529
- }
1530
- }
1531
- return true;
1532
- }
1648
+ if ($exec(/^%?[^%]*%?$/, name) === null) {
1649
+ throw new syntax('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
1650
+ }
1651
+ var parts = stringToPath(name);
1652
+ var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
1533
1653
 
1534
- function getIndent(opts, depth) {
1535
- var baseIndent;
1536
- if (opts.indent === '\t') {
1537
- baseIndent = '\t';
1538
- } else if (typeof opts.indent === 'number' && opts.indent > 0) {
1539
- baseIndent = $join.call(Array(opts.indent + 1), ' ');
1540
- } else {
1541
- return null;
1542
- }
1543
- return {
1544
- base: baseIndent,
1545
- prev: $join.call(Array(depth + 1), baseIndent)
1546
- };
1547
- }
1654
+ var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
1655
+ var intrinsicRealName = intrinsic.name;
1656
+ var value = intrinsic.value;
1657
+ var skipFurtherCaching = false;
1548
1658
 
1549
- function indentedJoin(xs, indent) {
1550
- if (xs.length === 0) { return ''; }
1551
- var lineJoiner = '\n' + indent.prev + indent.base;
1552
- return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\n' + indent.prev;
1553
- }
1659
+ var alias = intrinsic.alias;
1660
+ if (alias) {
1661
+ intrinsicBaseName = alias[0];
1662
+ $spliceApply(parts, $concat([0, 1], alias));
1663
+ }
1554
1664
 
1555
- function arrObjKeys(obj, inspect) {
1556
- var isArr = isArray$3(obj);
1557
- var xs = [];
1558
- if (isArr) {
1559
- xs.length = obj.length;
1560
- for (var i = 0; i < obj.length; i++) {
1561
- xs[i] = has$3(obj, i) ? inspect(obj[i], obj) : '';
1562
- }
1563
- }
1564
- var syms = typeof gOPS === 'function' ? gOPS(obj) : [];
1565
- var symMap;
1566
- if (hasShammedSymbols) {
1567
- symMap = {};
1568
- for (var k = 0; k < syms.length; k++) {
1569
- symMap['$' + syms[k]] = syms[k];
1570
- }
1571
- }
1665
+ for (var i = 1, isOwn = true; i < parts.length; i += 1) {
1666
+ var part = parts[i];
1667
+ var first = $strSlice(part, 0, 1);
1668
+ var last = $strSlice(part, -1);
1669
+ if (
1670
+ (
1671
+ (first === '"' || first === "'" || first === '`')
1672
+ || (last === '"' || last === "'" || last === '`')
1673
+ )
1674
+ && first !== last
1675
+ ) {
1676
+ throw new syntax('property names with quotes must have matching quotes');
1677
+ }
1678
+ if (part === 'constructor' || !isOwn) {
1679
+ skipFurtherCaching = true;
1680
+ }
1572
1681
 
1573
- for (var key in obj) { // eslint-disable-line no-restricted-syntax
1574
- if (!has$3(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
1575
- if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
1576
- if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {
1577
- // this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section
1578
- continue; // eslint-disable-line no-restricted-syntax, no-continue
1579
- } else if ($test.call(/[^\w$]/, key)) {
1580
- xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));
1581
- } else {
1582
- xs.push(key + ': ' + inspect(obj[key], obj));
1583
- }
1584
- }
1585
- if (typeof gOPS === 'function') {
1586
- for (var j = 0; j < syms.length; j++) {
1587
- if (isEnumerable.call(obj, syms[j])) {
1588
- xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj));
1589
- }
1590
- }
1591
- }
1592
- return xs;
1593
- }
1682
+ intrinsicBaseName += '.' + part;
1683
+ intrinsicRealName = '%' + intrinsicBaseName + '%';
1594
1684
 
1595
- var $WeakMap = getIntrinsic('%WeakMap%', true);
1596
- var $Map = getIntrinsic('%Map%', true);
1685
+ if (hasown(INTRINSICS, intrinsicRealName)) {
1686
+ value = INTRINSICS[intrinsicRealName];
1687
+ } else if (value != null) {
1688
+ if (!(part in value)) {
1689
+ if (!allowMissing) {
1690
+ throw new type('base intrinsic for ' + name + ' exists, but the property is not available.');
1691
+ }
1692
+ return void undefined$1;
1693
+ }
1694
+ if (gopd && (i + 1) >= parts.length) {
1695
+ var desc = gopd(value, part);
1696
+ isOwn = !!desc;
1597
1697
 
1598
- var $weakMapGet = callBound('WeakMap.prototype.get', true);
1599
- var $weakMapSet = callBound('WeakMap.prototype.set', true);
1600
- var $weakMapHas = callBound('WeakMap.prototype.has', true);
1601
- var $mapGet = callBound('Map.prototype.get', true);
1602
- var $mapSet = callBound('Map.prototype.set', true);
1603
- var $mapHas = callBound('Map.prototype.has', true);
1698
+ // By convention, when a data property is converted to an accessor
1699
+ // property to emulate a data property that does not suffer from
1700
+ // the override mistake, that accessor's getter is marked with
1701
+ // an `originalValue` property. Here, when we detect this, we
1702
+ // uphold the illusion by pretending to see that original data
1703
+ // property, i.e., returning the value rather than the getter
1704
+ // itself.
1705
+ if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
1706
+ value = desc.get;
1707
+ } else {
1708
+ value = value[part];
1709
+ }
1710
+ } else {
1711
+ isOwn = hasown(value, part);
1712
+ value = value[part];
1713
+ }
1604
1714
 
1605
- /*
1606
- * This function traverses the list returning the node corresponding to the given key.
1607
- *
1608
- * That node is also moved to the head of the list, so that if it's accessed again we don't need to traverse the whole list. By doing so, all the recently used nodes can be accessed relatively quickly.
1609
- */
1610
- /** @type {import('.').listGetNode} */
1611
- var listGetNode = function (list, key) { // eslint-disable-line consistent-return
1612
- /** @type {typeof list | NonNullable<(typeof list)['next']>} */
1613
- var prev = list;
1614
- /** @type {(typeof list)['next']} */
1615
- var curr;
1616
- for (; (curr = prev.next) !== null; prev = curr) {
1617
- if (curr.key === key) {
1618
- prev.next = curr.next;
1619
- // eslint-disable-next-line no-extra-parens
1620
- curr.next = /** @type {NonNullable<typeof list.next>} */ (list.next);
1621
- list.next = curr; // eslint-disable-line no-param-reassign
1622
- return curr;
1715
+ if (isOwn && !skipFurtherCaching) {
1716
+ INTRINSICS[intrinsicRealName] = value;
1717
+ }
1623
1718
  }
1624
1719
  }
1720
+ return value;
1625
1721
  };
1626
1722
 
1627
- /** @type {import('.').listGet} */
1628
- var listGet = function (objects, key) {
1629
- var node = listGetNode(objects, key);
1630
- return node && node.value;
1631
- };
1632
- /** @type {import('.').listSet} */
1633
- var listSet = function (objects, key, value) {
1634
- var node = listGetNode(objects, key);
1635
- if (node) {
1636
- node.value = value;
1637
- } else {
1638
- // Prepend the new node to the beginning of the list
1639
- objects.next = /** @type {import('.').ListNode<typeof value>} */ ({ // eslint-disable-line no-param-reassign, no-extra-parens
1640
- key: key,
1641
- next: objects.next,
1642
- value: value
1643
- });
1723
+ /** @type {(thisArg: string, searchString: string, position?: number) => number} */
1724
+ var $indexOf = callBindApplyHelpers([getIntrinsic('%String.prototype.indexOf%')]);
1725
+
1726
+ /** @type {import('.')} */
1727
+ var callBound = function callBoundIntrinsic(name, allowMissing) {
1728
+ /* eslint no-extra-parens: 0 */
1729
+
1730
+ var intrinsic = /** @type {(this: unknown, ...args: unknown[]) => unknown} */ (getIntrinsic(name, !!allowMissing));
1731
+ if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
1732
+ return callBindApplyHelpers(/** @type {const} */ ([intrinsic]));
1644
1733
  }
1734
+ return intrinsic;
1645
1735
  };
1646
- /** @type {import('.').listHas} */
1647
- var listHas = function (objects, key) {
1648
- return !!listGetNode(objects, key);
1649
- };
1736
+
1737
+ var $Map = getIntrinsic('%Map%', true);
1738
+
1739
+ /** @type {<K, V>(thisArg: Map<K, V>, key: K) => V} */
1740
+ var $mapGet = callBound('Map.prototype.get', true);
1741
+ /** @type {<K, V>(thisArg: Map<K, V>, key: K, value: V) => void} */
1742
+ var $mapSet = callBound('Map.prototype.set', true);
1743
+ /** @type {<K, V>(thisArg: Map<K, V>, key: K) => boolean} */
1744
+ var $mapHas = callBound('Map.prototype.has', true);
1745
+ /** @type {<K, V>(thisArg: Map<K, V>, key: K) => boolean} */
1746
+ var $mapDelete = callBound('Map.prototype.delete', true);
1747
+ /** @type {<K, V>(thisArg: Map<K, V>) => number} */
1748
+ var $mapSize = callBound('Map.prototype.size', true);
1650
1749
 
1651
1750
  /** @type {import('.')} */
1652
- var sideChannel = function getSideChannel() {
1653
- /** @type {WeakMap<object, unknown>} */ var $wm;
1654
- /** @type {Map<object, unknown>} */ var $m;
1655
- /** @type {import('.').RootNode<unknown>} */ var $o;
1751
+ var sideChannelMap = !!$Map && /** @type {Exclude<import('.'), false>} */ function getSideChannelMap() {
1752
+ /** @typedef {ReturnType<typeof getSideChannelMap>} Channel */
1753
+ /** @typedef {Parameters<Channel['get']>[0]} K */
1754
+ /** @typedef {Parameters<Channel['set']>[1]} V */
1755
+
1756
+ /** @type {Map<K, V> | undefined} */ var $m;
1656
1757
 
1657
- /** @type {import('.').Channel} */
1758
+ /** @type {Channel} */
1658
1759
  var channel = {
1659
1760
  assert: function (key) {
1660
1761
  if (!channel.has(key)) {
1661
1762
  throw new type('Side channel does not contain ' + objectInspect(key));
1662
1763
  }
1663
1764
  },
1664
- get: function (key) { // eslint-disable-line consistent-return
1665
- if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
1666
- if ($wm) {
1667
- return $weakMapGet($wm, key);
1668
- }
1669
- } else if ($Map) {
1670
- if ($m) {
1671
- return $mapGet($m, key);
1672
- }
1673
- } else {
1674
- if ($o) { // eslint-disable-line no-lonely-if
1675
- return listGet($o, key);
1765
+ 'delete': function (key) {
1766
+ if ($m) {
1767
+ var result = $mapDelete($m, key);
1768
+ if ($mapSize($m) === 0) {
1769
+ $m = void undefined;
1676
1770
  }
1771
+ return result;
1772
+ }
1773
+ return false;
1774
+ },
1775
+ get: function (key) { // eslint-disable-line consistent-return
1776
+ if ($m) {
1777
+ return $mapGet($m, key);
1677
1778
  }
1678
1779
  },
1679
1780
  has: function (key) {
1680
- if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
1681
- if ($wm) {
1682
- return $weakMapHas($wm, key);
1683
- }
1684
- } else if ($Map) {
1685
- if ($m) {
1686
- return $mapHas($m, key);
1687
- }
1688
- } else {
1689
- if ($o) { // eslint-disable-line no-lonely-if
1690
- return listHas($o, key);
1691
- }
1781
+ if ($m) {
1782
+ return $mapHas($m, key);
1692
1783
  }
1693
1784
  return false;
1694
1785
  },
1695
1786
  set: function (key, value) {
1696
- if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
1697
- if (!$wm) {
1698
- $wm = new $WeakMap();
1787
+ if (!$m) {
1788
+ // @ts-expect-error TS can't handle narrowing a variable inside a closure
1789
+ $m = new $Map();
1790
+ }
1791
+ $mapSet($m, key, value);
1792
+ }
1793
+ };
1794
+
1795
+ // @ts-expect-error TODO: figure out why TS is erroring here
1796
+ return channel;
1797
+ };
1798
+
1799
+ var $WeakMap = getIntrinsic('%WeakMap%', true);
1800
+
1801
+ /** @type {<K extends object, V>(thisArg: WeakMap<K, V>, key: K) => V} */
1802
+ var $weakMapGet = callBound('WeakMap.prototype.get', true);
1803
+ /** @type {<K extends object, V>(thisArg: WeakMap<K, V>, key: K, value: V) => void} */
1804
+ var $weakMapSet = callBound('WeakMap.prototype.set', true);
1805
+ /** @type {<K extends object, V>(thisArg: WeakMap<K, V>, key: K) => boolean} */
1806
+ var $weakMapHas = callBound('WeakMap.prototype.has', true);
1807
+ /** @type {<K extends object, V>(thisArg: WeakMap<K, V>, key: K) => boolean} */
1808
+ var $weakMapDelete = callBound('WeakMap.prototype.delete', true);
1809
+
1810
+ /** @type {import('.')} */
1811
+ var sideChannelWeakmap = $WeakMap
1812
+ ? /** @type {Exclude<import('.'), false>} */ function getSideChannelWeakMap() {
1813
+ /** @typedef {ReturnType<typeof getSideChannelWeakMap>} Channel */
1814
+ /** @typedef {Parameters<Channel['get']>[0]} K */
1815
+ /** @typedef {Parameters<Channel['set']>[1]} V */
1816
+
1817
+ /** @type {WeakMap<K & object, V> | undefined} */ var $wm;
1818
+ /** @type {Channel | undefined} */ var $m;
1819
+
1820
+ /** @type {Channel} */
1821
+ var channel = {
1822
+ assert: function (key) {
1823
+ if (!channel.has(key)) {
1824
+ throw new type('Side channel does not contain ' + objectInspect(key));
1699
1825
  }
1700
- $weakMapSet($wm, key, value);
1701
- } else if ($Map) {
1702
- if (!$m) {
1703
- $m = new $Map();
1826
+ },
1827
+ 'delete': function (key) {
1828
+ if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
1829
+ if ($wm) {
1830
+ return $weakMapDelete($wm, key);
1831
+ }
1832
+ } else if (sideChannelMap) {
1833
+ if ($m) {
1834
+ return $m['delete'](key);
1835
+ }
1704
1836
  }
1705
- $mapSet($m, key, value);
1706
- } else {
1707
- if (!$o) {
1708
- // Initialize the linked list as an empty node, so that we don't have to special-case handling of the first node: we can always refer to it as (previous node).next, instead of something like (list).head
1709
- $o = { key: {}, next: null };
1837
+ return false;
1838
+ },
1839
+ get: function (key) {
1840
+ if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
1841
+ if ($wm) {
1842
+ return $weakMapGet($wm, key);
1843
+ }
1844
+ }
1845
+ return $m && $m.get(key);
1846
+ },
1847
+ has: function (key) {
1848
+ if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
1849
+ if ($wm) {
1850
+ return $weakMapHas($wm, key);
1851
+ }
1710
1852
  }
1711
- listSet($o, key, value);
1853
+ return !!$m && $m.has(key);
1854
+ },
1855
+ set: function (key, value) {
1856
+ if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
1857
+ if (!$wm) {
1858
+ $wm = new $WeakMap();
1859
+ }
1860
+ $weakMapSet($wm, key, value);
1861
+ } else if (sideChannelMap) {
1862
+ if (!$m) {
1863
+ $m = sideChannelMap();
1864
+ }
1865
+ // eslint-disable-next-line no-extra-parens
1866
+ /** @type {NonNullable<typeof $m>} */ ($m).set(key, value);
1867
+ }
1868
+ }
1869
+ };
1870
+
1871
+ // @ts-expect-error TODO: figure out why this is erroring
1872
+ return channel;
1873
+ }
1874
+ : sideChannelMap;
1875
+
1876
+ var makeChannel = sideChannelWeakmap || sideChannelMap || sideChannelList;
1877
+
1878
+ /** @type {import('.')} */
1879
+ var sideChannel = function getSideChannel() {
1880
+ /** @typedef {ReturnType<typeof getSideChannel>} Channel */
1881
+
1882
+ /** @type {Channel | undefined} */ var $channelData;
1883
+
1884
+ /** @type {Channel} */
1885
+ var channel = {
1886
+ assert: function (key) {
1887
+ if (!channel.has(key)) {
1888
+ throw new type('Side channel does not contain ' + objectInspect(key));
1889
+ }
1890
+ },
1891
+ 'delete': function (key) {
1892
+ return !!$channelData && $channelData['delete'](key);
1893
+ },
1894
+ get: function (key) {
1895
+ return $channelData && $channelData.get(key);
1896
+ },
1897
+ has: function (key) {
1898
+ return !!$channelData && $channelData.has(key);
1899
+ },
1900
+ set: function (key, value) {
1901
+ if (!$channelData) {
1902
+ $channelData = makeChannel();
1712
1903
  }
1904
+
1905
+ $channelData.set(key, value);
1713
1906
  }
1714
1907
  };
1908
+ // @ts-expect-error TODO: figure out why this is erroring
1715
1909
  return channel;
1716
1910
  };
1717
1911
 
@@ -1740,10 +1934,31 @@ var formats = {
1740
1934
  var has$2 = Object.prototype.hasOwnProperty;
1741
1935
  var isArray$2 = Array.isArray;
1742
1936
 
1937
+ // Track objects created from arrayLimit overflow using side-channel
1938
+ // Stores the current max numeric index for O(1) lookup
1939
+ var overflowChannel = sideChannel();
1940
+
1941
+ var markOverflow = function markOverflow(obj, maxIndex) {
1942
+ overflowChannel.set(obj, maxIndex);
1943
+ return obj;
1944
+ };
1945
+
1946
+ var isOverflow = function isOverflow(obj) {
1947
+ return overflowChannel.has(obj);
1948
+ };
1949
+
1950
+ var getMaxIndex = function getMaxIndex(obj) {
1951
+ return overflowChannel.get(obj);
1952
+ };
1953
+
1954
+ var setMaxIndex = function setMaxIndex(obj, maxIndex) {
1955
+ overflowChannel.set(obj, maxIndex);
1956
+ };
1957
+
1743
1958
  var hexTable = (function () {
1744
1959
  var array = [];
1745
1960
  for (var i = 0; i < 256; ++i) {
1746
- array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
1961
+ array[array.length] = '%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase();
1747
1962
  }
1748
1963
 
1749
1964
  return array;
@@ -1759,7 +1974,7 @@ var compactQueue = function compactQueue(queue) {
1759
1974
 
1760
1975
  for (var j = 0; j < obj.length; ++j) {
1761
1976
  if (typeof obj[j] !== 'undefined') {
1762
- compacted.push(obj[j]);
1977
+ compacted[compacted.length] = obj[j];
1763
1978
  }
1764
1979
  }
1765
1980
 
@@ -1769,7 +1984,7 @@ var compactQueue = function compactQueue(queue) {
1769
1984
  };
1770
1985
 
1771
1986
  var arrayToObject = function arrayToObject(source, options) {
1772
- var obj = options && options.plainObjects ? Object.create(null) : {};
1987
+ var obj = options && options.plainObjects ? { __proto__: null } : {};
1773
1988
  for (var i = 0; i < source.length; ++i) {
1774
1989
  if (typeof source[i] !== 'undefined') {
1775
1990
  obj[i] = source[i];
@@ -1785,11 +2000,25 @@ var merge = function merge(target, source, options) {
1785
2000
  return target;
1786
2001
  }
1787
2002
 
1788
- if (typeof source !== 'object') {
2003
+ if (typeof source !== 'object' && typeof source !== 'function') {
1789
2004
  if (isArray$2(target)) {
1790
- target.push(source);
2005
+ var nextIndex = target.length;
2006
+ if (options && typeof options.arrayLimit === 'number' && nextIndex > options.arrayLimit) {
2007
+ return markOverflow(arrayToObject(target.concat(source), options), nextIndex);
2008
+ }
2009
+ target[nextIndex] = source;
1791
2010
  } else if (target && typeof target === 'object') {
1792
- if ((options && (options.plainObjects || options.allowPrototypes)) || !has$2.call(Object.prototype, source)) {
2011
+ if (isOverflow(target)) {
2012
+ // Add at next numeric index for overflow objects
2013
+ var newIndex = getMaxIndex(target) + 1;
2014
+ target[newIndex] = source;
2015
+ setMaxIndex(target, newIndex);
2016
+ } else if (options && options.strictMerge) {
2017
+ return [target, source];
2018
+ } else if (
2019
+ (options && (options.plainObjects || options.allowPrototypes))
2020
+ || !has$2.call(Object.prototype, source)
2021
+ ) {
1793
2022
  target[source] = true;
1794
2023
  }
1795
2024
  } else {
@@ -1800,7 +2029,23 @@ var merge = function merge(target, source, options) {
1800
2029
  }
1801
2030
 
1802
2031
  if (!target || typeof target !== 'object') {
1803
- return [target].concat(source);
2032
+ if (isOverflow(source)) {
2033
+ // Create new object with target at 0, source values shifted by 1
2034
+ var sourceKeys = Object.keys(source);
2035
+ var result = options && options.plainObjects
2036
+ ? { __proto__: null, 0: target }
2037
+ : { 0: target };
2038
+ for (var m = 0; m < sourceKeys.length; m++) {
2039
+ var oldKey = parseInt(sourceKeys[m], 10);
2040
+ result[oldKey + 1] = source[sourceKeys[m]];
2041
+ }
2042
+ return markOverflow(result, getMaxIndex(source) + 1);
2043
+ }
2044
+ var combined = [target].concat(source);
2045
+ if (options && typeof options.arrayLimit === 'number' && combined.length > options.arrayLimit) {
2046
+ return markOverflow(arrayToObject(combined, options), combined.length - 1);
2047
+ }
2048
+ return combined;
1804
2049
  }
1805
2050
 
1806
2051
  var mergeTarget = target;
@@ -1815,7 +2060,7 @@ var merge = function merge(target, source, options) {
1815
2060
  if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {
1816
2061
  target[i] = merge(targetItem, item, options);
1817
2062
  } else {
1818
- target.push(item);
2063
+ target[target.length] = item;
1819
2064
  }
1820
2065
  } else {
1821
2066
  target[i] = item;
@@ -1832,6 +2077,17 @@ var merge = function merge(target, source, options) {
1832
2077
  } else {
1833
2078
  acc[key] = value;
1834
2079
  }
2080
+
2081
+ if (isOverflow(source) && !isOverflow(acc)) {
2082
+ markOverflow(acc, getMaxIndex(source));
2083
+ }
2084
+ if (isOverflow(acc)) {
2085
+ var keyNum = parseInt(key, 10);
2086
+ if (String(keyNum) === key && keyNum >= 0 && keyNum > getMaxIndex(acc)) {
2087
+ setMaxIndex(acc, keyNum);
2088
+ }
2089
+ }
2090
+
1835
2091
  return acc;
1836
2092
  }, mergeTarget);
1837
2093
  };
@@ -1843,7 +2099,7 @@ var assign = function assignSingleSource(target, source) {
1843
2099
  }, target);
1844
2100
  };
1845
2101
 
1846
- var decode = function (str, decoder, charset) {
2102
+ var decode = function (str, defaultDecoder, charset) {
1847
2103
  var strWithoutPlus = str.replace(/\+/g, ' ');
1848
2104
  if (charset === 'iso-8859-1') {
1849
2105
  // unescape never throws, no try...catch needed:
@@ -1948,8 +2204,8 @@ var compact = function compact(value) {
1948
2204
  var key = keys[j];
1949
2205
  var val = obj[key];
1950
2206
  if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {
1951
- queue.push({ obj: obj, prop: key });
1952
- refs.push(val);
2207
+ queue[queue.length] = { obj: obj, prop: key };
2208
+ refs[refs.length] = val;
1953
2209
  }
1954
2210
  }
1955
2211
  }
@@ -1971,15 +2227,27 @@ var isBuffer = function isBuffer(obj) {
1971
2227
  return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
1972
2228
  };
1973
2229
 
1974
- var combine = function combine(a, b) {
1975
- return [].concat(a, b);
2230
+ var combine = function combine(a, b, arrayLimit, plainObjects) {
2231
+ // If 'a' is already an overflow object, add to it
2232
+ if (isOverflow(a)) {
2233
+ var newIndex = getMaxIndex(a) + 1;
2234
+ a[newIndex] = b;
2235
+ setMaxIndex(a, newIndex);
2236
+ return a;
2237
+ }
2238
+
2239
+ var result = [].concat(a, b);
2240
+ if (result.length > arrayLimit) {
2241
+ return markOverflow(arrayToObject(result, { plainObjects: plainObjects }), result.length - 1);
2242
+ }
2243
+ return result;
1976
2244
  };
1977
2245
 
1978
2246
  var maybeMap = function maybeMap(val, fn) {
1979
2247
  if (isArray$2(val)) {
1980
2248
  var mapped = [];
1981
2249
  for (var i = 0; i < val.length; i += 1) {
1982
- mapped.push(fn(val[i]));
2250
+ mapped[mapped.length] = fn(val[i]);
1983
2251
  }
1984
2252
  return mapped;
1985
2253
  }
@@ -1994,7 +2262,9 @@ var utils = {
1994
2262
  decode: decode,
1995
2263
  encode: encode,
1996
2264
  isBuffer: isBuffer,
2265
+ isOverflow: isOverflow,
1997
2266
  isRegExp: isRegExp,
2267
+ markOverflow: markOverflow,
1998
2268
  maybeMap: maybeMap,
1999
2269
  merge: merge
2000
2270
  };
@@ -2030,11 +2300,13 @@ var defaults$2 = {
2030
2300
  arrayFormat: 'indices',
2031
2301
  charset: 'utf-8',
2032
2302
  charsetSentinel: false,
2303
+ commaRoundTrip: false,
2033
2304
  delimiter: '&',
2034
2305
  encode: true,
2035
2306
  encodeDotInKeys: false,
2036
2307
  encoder: utils.encode,
2037
2308
  encodeValuesOnly: false,
2309
+ filter: void undefined,
2038
2310
  format: defaultFormat,
2039
2311
  formatter: formats.formatters[defaultFormat],
2040
2312
  // deprecated
@@ -2146,7 +2418,7 @@ var stringify = function stringify(
2146
2418
  objKeys = sort ? keys.sort(sort) : keys;
2147
2419
  }
2148
2420
 
2149
- var encodedPrefix = encodeDotInKeys ? prefix.replace(/\./g, '%2E') : prefix;
2421
+ var encodedPrefix = encodeDotInKeys ? String(prefix).replace(/\./g, '%2E') : String(prefix);
2150
2422
 
2151
2423
  var adjustedPrefix = commaRoundTrip && isArray$1(obj) && obj.length === 1 ? encodedPrefix + '[]' : encodedPrefix;
2152
2424
 
@@ -2156,13 +2428,15 @@ var stringify = function stringify(
2156
2428
 
2157
2429
  for (var j = 0; j < objKeys.length; ++j) {
2158
2430
  var key = objKeys[j];
2159
- var value = typeof key === 'object' && typeof key.value !== 'undefined' ? key.value : obj[key];
2431
+ var value = typeof key === 'object' && key && typeof key.value !== 'undefined'
2432
+ ? key.value
2433
+ : obj[key];
2160
2434
 
2161
2435
  if (skipNulls && value === null) {
2162
2436
  continue;
2163
2437
  }
2164
2438
 
2165
- var encodedKey = allowDots && encodeDotInKeys ? key.replace(/\./g, '%2E') : key;
2439
+ var encodedKey = allowDots && encodeDotInKeys ? String(key).replace(/\./g, '%2E') : String(key);
2166
2440
  var keyPrefix = isArray$1(obj)
2167
2441
  ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, encodedKey) : adjustedPrefix
2168
2442
  : adjustedPrefix + (allowDots ? '.' + encodedKey : '[' + encodedKey + ']');
@@ -2253,7 +2527,7 @@ var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
2253
2527
  arrayFormat: arrayFormat,
2254
2528
  charset: charset,
2255
2529
  charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults$2.charsetSentinel,
2256
- commaRoundTrip: opts.commaRoundTrip,
2530
+ commaRoundTrip: !!opts.commaRoundTrip,
2257
2531
  delimiter: typeof opts.delimiter === 'undefined' ? defaults$2.delimiter : opts.delimiter,
2258
2532
  encode: typeof opts.encode === 'boolean' ? opts.encode : defaults$2.encode,
2259
2533
  encodeDotInKeys: typeof opts.encodeDotInKeys === 'boolean' ? opts.encodeDotInKeys : defaults$2.encodeDotInKeys,
@@ -2304,12 +2578,13 @@ var stringify_1 = function (object, opts) {
2304
2578
  var sideChannel$1 = sideChannel();
2305
2579
  for (var i = 0; i < objKeys.length; ++i) {
2306
2580
  var key = objKeys[i];
2581
+ var value = obj[key];
2307
2582
 
2308
- if (options.skipNulls && obj[key] === null) {
2583
+ if (options.skipNulls && value === null) {
2309
2584
  continue;
2310
2585
  }
2311
2586
  pushToArray(keys, stringify(
2312
- obj[key],
2587
+ value,
2313
2588
  key,
2314
2589
  generateArrayPrefix,
2315
2590
  commaRoundTrip,
@@ -2368,7 +2643,10 @@ var defaults$1 = {
2368
2643
  parameterLimit: 1000,
2369
2644
  parseArrays: true,
2370
2645
  plainObjects: false,
2371
- strictNullHandling: false
2646
+ strictDepth: false,
2647
+ strictMerge: true,
2648
+ strictNullHandling: false,
2649
+ throwOnLimitExceeded: false
2372
2650
  };
2373
2651
 
2374
2652
  var interpretNumericEntities = function (str) {
@@ -2377,11 +2655,15 @@ var interpretNumericEntities = function (str) {
2377
2655
  });
2378
2656
  };
2379
2657
 
2380
- var parseArrayValue = function (val, options) {
2658
+ var parseArrayValue = function (val, options, currentArrayLength) {
2381
2659
  if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) {
2382
2660
  return val.split(',');
2383
2661
  }
2384
2662
 
2663
+ if (options.throwOnLimitExceeded && currentArrayLength >= options.arrayLimit) {
2664
+ throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (options.arrayLimit === 1 ? '' : 's') + ' allowed in an array.');
2665
+ }
2666
+
2385
2667
  return val;
2386
2668
  };
2387
2669
 
@@ -2399,8 +2681,18 @@ var parseValues = function parseQueryStringValues(str, options) {
2399
2681
  var obj = { __proto__: null };
2400
2682
 
2401
2683
  var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
2402
- var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
2403
- var parts = cleanStr.split(options.delimiter, limit);
2684
+ cleanStr = cleanStr.replace(/%5B/gi, '[').replace(/%5D/gi, ']');
2685
+
2686
+ var limit = options.parameterLimit === Infinity ? void undefined : options.parameterLimit;
2687
+ var parts = cleanStr.split(
2688
+ options.delimiter,
2689
+ options.throwOnLimitExceeded ? limit + 1 : limit
2690
+ );
2691
+
2692
+ if (options.throwOnLimitExceeded && parts.length > limit) {
2693
+ throw new RangeError('Parameter limit exceeded. Only ' + limit + ' parameter' + (limit === 1 ? '' : 's') + ' allowed.');
2694
+ }
2695
+
2404
2696
  var skipIndex = -1; // Keep track of where the utf8 sentinel was found
2405
2697
  var i;
2406
2698
 
@@ -2428,33 +2720,55 @@ var parseValues = function parseQueryStringValues(str, options) {
2428
2720
  var bracketEqualsPos = part.indexOf(']=');
2429
2721
  var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;
2430
2722
 
2431
- var key, val;
2723
+ var key;
2724
+ var val;
2432
2725
  if (pos === -1) {
2433
2726
  key = options.decoder(part, defaults$1.decoder, charset, 'key');
2434
2727
  val = options.strictNullHandling ? null : '';
2435
2728
  } else {
2436
2729
  key = options.decoder(part.slice(0, pos), defaults$1.decoder, charset, 'key');
2437
- val = utils.maybeMap(
2438
- parseArrayValue(part.slice(pos + 1), options),
2439
- function (encodedVal) {
2440
- return options.decoder(encodedVal, defaults$1.decoder, charset, 'value');
2441
- }
2442
- );
2730
+
2731
+ if (key !== null) {
2732
+ val = utils.maybeMap(
2733
+ parseArrayValue(
2734
+ part.slice(pos + 1),
2735
+ options,
2736
+ isArray(obj[key]) ? obj[key].length : 0
2737
+ ),
2738
+ function (encodedVal) {
2739
+ return options.decoder(encodedVal, defaults$1.decoder, charset, 'value');
2740
+ }
2741
+ );
2742
+ }
2443
2743
  }
2444
2744
 
2445
2745
  if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {
2446
- val = interpretNumericEntities(val);
2746
+ val = interpretNumericEntities(String(val));
2447
2747
  }
2448
2748
 
2449
2749
  if (part.indexOf('[]=') > -1) {
2450
2750
  val = isArray(val) ? [val] : val;
2451
2751
  }
2452
2752
 
2453
- var existing = has.call(obj, key);
2454
- if (existing && options.duplicates === 'combine') {
2455
- obj[key] = utils.combine(obj[key], val);
2456
- } else if (!existing || options.duplicates === 'last') {
2457
- obj[key] = val;
2753
+ if (options.comma && isArray(val) && val.length > options.arrayLimit) {
2754
+ if (options.throwOnLimitExceeded) {
2755
+ throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (options.arrayLimit === 1 ? '' : 's') + ' allowed in an array.');
2756
+ }
2757
+ val = utils.combine([], val, options.arrayLimit, options.plainObjects);
2758
+ }
2759
+
2760
+ if (key !== null) {
2761
+ var existing = has.call(obj, key);
2762
+ if (existing && (options.duplicates === 'combine' || part.indexOf('[]=') > -1)) {
2763
+ obj[key] = utils.combine(
2764
+ obj[key],
2765
+ val,
2766
+ options.arrayLimit,
2767
+ options.plainObjects
2768
+ );
2769
+ } else if (!existing || options.duplicates === 'last') {
2770
+ obj[key] = val;
2771
+ }
2458
2772
  }
2459
2773
  }
2460
2774
 
@@ -2462,30 +2776,52 @@ var parseValues = function parseQueryStringValues(str, options) {
2462
2776
  };
2463
2777
 
2464
2778
  var parseObject = function (chain, val, options, valuesParsed) {
2465
- var leaf = valuesParsed ? val : parseArrayValue(val, options);
2779
+ var currentArrayLength = 0;
2780
+ if (chain.length > 0 && chain[chain.length - 1] === '[]') {
2781
+ var parentKey = chain.slice(0, -1).join('');
2782
+ currentArrayLength = Array.isArray(val) && val[parentKey] ? val[parentKey].length : 0;
2783
+ }
2784
+
2785
+ var leaf = valuesParsed ? val : parseArrayValue(val, options, currentArrayLength);
2466
2786
 
2467
2787
  for (var i = chain.length - 1; i >= 0; --i) {
2468
2788
  var obj;
2469
2789
  var root = chain[i];
2470
2790
 
2471
2791
  if (root === '[]' && options.parseArrays) {
2472
- obj = options.allowEmptyArrays && leaf === '' ? [] : [].concat(leaf);
2792
+ if (utils.isOverflow(leaf)) {
2793
+ // leaf is already an overflow object, preserve it
2794
+ obj = leaf;
2795
+ } else {
2796
+ obj = options.allowEmptyArrays && (leaf === '' || (options.strictNullHandling && leaf === null))
2797
+ ? []
2798
+ : utils.combine(
2799
+ [],
2800
+ leaf,
2801
+ options.arrayLimit,
2802
+ options.plainObjects
2803
+ );
2804
+ }
2473
2805
  } else {
2474
- obj = options.plainObjects ? Object.create(null) : {};
2806
+ obj = options.plainObjects ? { __proto__: null } : {};
2475
2807
  var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
2476
2808
  var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, '.') : cleanRoot;
2477
2809
  var index = parseInt(decodedRoot, 10);
2478
- if (!options.parseArrays && decodedRoot === '') {
2479
- obj = { 0: leaf };
2480
- } else if (
2481
- !isNaN(index)
2810
+ var isValidArrayIndex = !isNaN(index)
2482
2811
  && root !== decodedRoot
2483
2812
  && String(index) === decodedRoot
2484
2813
  && index >= 0
2485
- && (options.parseArrays && index <= options.arrayLimit)
2486
- ) {
2814
+ && options.parseArrays;
2815
+ if (!options.parseArrays && decodedRoot === '') {
2816
+ obj = { 0: leaf };
2817
+ } else if (isValidArrayIndex && index < options.arrayLimit) {
2487
2818
  obj = [];
2488
2819
  obj[index] = leaf;
2820
+ } else if (isValidArrayIndex && options.throwOnLimitExceeded) {
2821
+ throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (options.arrayLimit === 1 ? '' : 's') + ' allowed in an array.');
2822
+ } else if (isValidArrayIndex) {
2823
+ obj[index] = leaf;
2824
+ utils.markOverflow(obj, index);
2489
2825
  } else if (decodedRoot !== '__proto__') {
2490
2826
  obj[decodedRoot] = leaf;
2491
2827
  }
@@ -2497,55 +2833,71 @@ var parseObject = function (chain, val, options, valuesParsed) {
2497
2833
  return leaf;
2498
2834
  };
2499
2835
 
2500
- var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
2501
- if (!givenKey) {
2502
- return;
2503
- }
2504
-
2505
- // Transform dot notation to bracket notation
2836
+ var splitKeyIntoSegments = function splitKeyIntoSegments(givenKey, options) {
2506
2837
  var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey;
2507
2838
 
2508
- // The regex chunks
2839
+ if (options.depth <= 0) {
2840
+ if (!options.plainObjects && has.call(Object.prototype, key)) {
2841
+ if (!options.allowPrototypes) {
2842
+ return;
2843
+ }
2844
+ }
2845
+
2846
+ return [key];
2847
+ }
2509
2848
 
2510
2849
  var brackets = /(\[[^[\]]*])/;
2511
2850
  var child = /(\[[^[\]]*])/g;
2512
2851
 
2513
- // Get the parent
2514
-
2515
- var segment = options.depth > 0 && brackets.exec(key);
2852
+ var segment = brackets.exec(key);
2516
2853
  var parent = segment ? key.slice(0, segment.index) : key;
2517
2854
 
2518
- // Stash the parent if it exists
2519
-
2520
2855
  var keys = [];
2856
+
2521
2857
  if (parent) {
2522
- // If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties
2523
2858
  if (!options.plainObjects && has.call(Object.prototype, parent)) {
2524
2859
  if (!options.allowPrototypes) {
2525
2860
  return;
2526
2861
  }
2527
2862
  }
2528
2863
 
2529
- keys.push(parent);
2864
+ keys[keys.length] = parent;
2530
2865
  }
2531
2866
 
2532
- // Loop through children appending to the array until we hit depth
2533
-
2534
2867
  var i = 0;
2535
- while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) {
2868
+ while ((segment = child.exec(key)) !== null && i < options.depth) {
2536
2869
  i += 1;
2537
- if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {
2870
+
2871
+ var segmentContent = segment[1].slice(1, -1);
2872
+ if (!options.plainObjects && has.call(Object.prototype, segmentContent)) {
2538
2873
  if (!options.allowPrototypes) {
2539
2874
  return;
2540
2875
  }
2541
2876
  }
2542
- keys.push(segment[1]);
2543
- }
2544
2877
 
2545
- // If there's a remainder, just add whatever is left
2878
+ keys[keys.length] = segment[1];
2879
+ }
2546
2880
 
2547
2881
  if (segment) {
2548
- keys.push('[' + key.slice(segment.index) + ']');
2882
+ if (options.strictDepth === true) {
2883
+ throw new RangeError('Input depth exceeded depth option of ' + options.depth + ' and strictDepth is true');
2884
+ }
2885
+
2886
+ keys[keys.length] = '[' + key.slice(segment.index) + ']';
2887
+ }
2888
+
2889
+ return keys;
2890
+ };
2891
+
2892
+ var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
2893
+ if (!givenKey) {
2894
+ return;
2895
+ }
2896
+
2897
+ var keys = splitKeyIntoSegments(givenKey, options);
2898
+
2899
+ if (!keys) {
2900
+ return;
2549
2901
  }
2550
2902
 
2551
2903
  return parseObject(keys, val, options, valuesParsed);
@@ -2571,6 +2923,11 @@ var normalizeParseOptions = function normalizeParseOptions(opts) {
2571
2923
  if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
2572
2924
  throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
2573
2925
  }
2926
+
2927
+ if (typeof opts.throwOnLimitExceeded !== 'undefined' && typeof opts.throwOnLimitExceeded !== 'boolean') {
2928
+ throw new TypeError('`throwOnLimitExceeded` option must be a boolean');
2929
+ }
2930
+
2574
2931
  var charset = typeof opts.charset === 'undefined' ? defaults$1.charset : opts.charset;
2575
2932
 
2576
2933
  var duplicates = typeof opts.duplicates === 'undefined' ? defaults$1.duplicates : opts.duplicates;
@@ -2601,7 +2958,10 @@ var normalizeParseOptions = function normalizeParseOptions(opts) {
2601
2958
  parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults$1.parameterLimit,
2602
2959
  parseArrays: opts.parseArrays !== false,
2603
2960
  plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults$1.plainObjects,
2604
- strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults$1.strictNullHandling
2961
+ strictDepth: typeof opts.strictDepth === 'boolean' ? !!opts.strictDepth : defaults$1.strictDepth,
2962
+ strictMerge: typeof opts.strictMerge === 'boolean' ? !!opts.strictMerge : defaults$1.strictMerge,
2963
+ strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults$1.strictNullHandling,
2964
+ throwOnLimitExceeded: typeof opts.throwOnLimitExceeded === 'boolean' ? opts.throwOnLimitExceeded : false
2605
2965
  };
2606
2966
  };
2607
2967
 
@@ -2609,11 +2969,11 @@ var parse = function (str, opts) {
2609
2969
  var options = normalizeParseOptions(opts);
2610
2970
 
2611
2971
  if (str === '' || str === null || typeof str === 'undefined') {
2612
- return options.plainObjects ? Object.create(null) : {};
2972
+ return options.plainObjects ? { __proto__: null } : {};
2613
2973
  }
2614
2974
 
2615
2975
  var tempObj = typeof str === 'string' ? parseValues(str, options) : str;
2616
- var obj = options.plainObjects ? Object.create(null) : {};
2976
+ var obj = options.plainObjects ? { __proto__: null } : {};
2617
2977
 
2618
2978
  // Iterate over the keys and setup the new object
2619
2979
 
@@ -2698,7 +3058,7 @@ function debounce$1(func, wait) {
2698
3058
  };
2699
3059
  }
2700
3060
 
2701
- const myModalCss = ".pallete-wrapper *{font-family:\"Galatea\", sans-serif}.my-modal{box-shadow:1px 1px 1px #ccc;background-color:#fff;position:fixed;top:20px;left:50%;transform:translateX(-50%);max-width:1555px;width:90%;z-index:1000;text-align:center;padding:35px 40px;max-height:calc(100vh - 100px);overflow-y:auto;min-height:50vh}@media (max-width: 1024px){.my-modal{padding:40px 20px 20px}}.my-modal::-webkit-scrollbar{display:none}.my-modal .loader{display:flex;flex-direction:column;align-items:center;justify-content:center;height:300px}.my-modal__header{display:flex;align-items:center;justify-content:space-between;align-items:flex-end;margin-bottom:16px}@media (max-width: 1024px){.my-modal__header{flex-direction:column;margin-bottom:12px;align-items:center;display:block}}@media (max-width: 768px){.my-modal__header .image-wrapper{margin-bottom:12px}}.my-modal__header .image-wrapper>img{max-width:300px;object-fit:cover}@media (max-width: 768px){.my-modal__header .image-wrapper>img{max-width:200px}}.my-modal__header .search-wrapper{display:flex;gap:55px;align-items:flex-start}@media (max-width: 1024px){.my-modal__header .search-wrapper{justify-content:center;width:92%}}@media (max-width: 1024px){.my-modal__header .search-wrapper .sc-my-search-h{width:100%;margin:0 auto}}.my-modal__header .search-wrapper .my-modal__close{background:transparent;border:none;margin-top:-20px}.my-modal__header .search-wrapper .my-modal__close>img{width:45px;height:45px;object-fit:cover;cursor:pointer}@media (max-width: 1024px){.my-modal__header .search-wrapper .my-modal__close{margin-top:0px;position:absolute;right:10px;top:10px}}.my-modal__see-more{font-size:16px;display:flex;justify-content:center;align-items:center;font-weight:300;color:#575757;margin-top:12px;margin-bottom:0px}@media (max-width: 1024px){.my-modal__see-more{font-size:18px}}.my-modal__see-more img{width:45px;height:45px}@media (max-width: 1024px){.my-modal__see-more img{display:none}}.my-modal__wrapper{display:flex;flex-direction:column;position:relative}.my-modal__wrapper .boxes{display:flex;flex-direction:column;flex-wrap:wrap}.my-modal__wrapper .boxes__list{display:flex;flex-wrap:wrap;gap:5px 5px}@media (max-width: 1024px){.my-modal__wrapper .boxes__list{justify-content:center}}.my-modal__wrapper .boxes__box-content{width:100%;margin-bottom:5px;height:500px;text-align:left;display:flex;flex-direction:row;justify-content:space-between;position:relative}.my-modal__wrapper .boxes__box-content .closebtn{position:absolute;right:10px;top:10px;width:53px;height:53px;cursor:pointer;object-fit:cover;z-index:9999}@media (max-width: 1024px){.my-modal__wrapper .boxes__box-content{flex-direction:column-reverse;height:auto}}@media (max-width: 768px){.my-modal__wrapper .boxes__box-content{margin:0 auto}}.my-modal__wrapper .boxes__box-content__info{width:40%;padding:50px 40px;position:relative}@media (max-width: 1024px){.my-modal__wrapper .boxes__box-content__info{width:100%;padding:15px;min-height:100px}}@media (max-width: 768px){.my-modal__wrapper .boxes__box-content__info{min-height:auto}}.my-modal__wrapper .boxes__box-content__info h2{font-size:35px;font-weight:normal;margin-bottom:30px;color:#232323}@media (max-width: 768px){.my-modal__wrapper .boxes__box-content__info h2{font-size:16px;text-align:center;margin-bottom:15px;margin-top:5px}}.my-modal__wrapper .boxes__box-content__info h4{margin-top:0px;margin-bottom:15px;font-size:16px;color:#4c4c4c}.my-modal__wrapper .boxes__box-content__info .divider{border:1px solid #4c4c4c;opacity:0.2;margin-bottom:20px}@media (max-width: 768px){.my-modal__wrapper .boxes__box-content__info .divider{margin:10px 0px;display:none}}.my-modal__wrapper .boxes__box-content__info__value{display:flex;flex-direction:row;justify-content:flex-start}@media (max-width: 1024px){.my-modal__wrapper .boxes__box-content__info__value{justify-content:flex-start}}@media (max-width: 768px){.my-modal__wrapper .boxes__box-content__info__value{flex-direction:column}}@media (max-width: 768px){.my-modal__wrapper .boxes__box-content__info__value-image{margin:0 auto;margin-bottom:10px}}.my-modal__wrapper .boxes__box-content__info__value-image img{width:114px;object-fit:cover}@media (max-width: 1024px){.my-modal__wrapper .boxes__box-content__info__value-image img{width:75px}}.my-modal__wrapper .boxes__box-content__info__value-product{color:#232323;margin-left:10px}@media (max-width: 1024px){.my-modal__wrapper .boxes__box-content__info__value-product h2{font-size:26px;margin:0;margin-right:10px}}@media (max-width: 768px){.my-modal__wrapper .boxes__box-content__info__value-product h2{font-size:16px}}.my-modal__wrapper .boxes__box-content__info__value-product p{font-size:20px;margin-top:0px;margin-bottom:0px}.my-modal__wrapper .boxes__box-content__info__value-product p:last-of-type{margin-bottom:20px}@media (max-width: 1024px){.my-modal__wrapper .boxes__box-content__info__value-product p:last-of-type{margin-bottom:0}}@media (max-width: 768px){.my-modal__wrapper .boxes__box-content__info__value-product p{font-size:10px}}@media (max-width: 1024px){.my-modal__wrapper .boxes__box-content__info__value-product>div{display:flex;justify-content:flex-start;align-items:center}}@media (max-width: 768px){.my-modal__wrapper .boxes__box-content__info__value-product>div{flex-direction:column}}.my-modal__wrapper .boxes__box-content__slider{width:60%;min-width:60%;max-width:60%;position:relative}@media (max-width: 1024px){.my-modal__wrapper .boxes__box-content__slider{width:100%;display:block;min-width:100%;max-width:100%}}.my-modal__wrapper .boxes__box-content__slider .color-big-image{width:100%;height:100%;object-fit:cover}@media (max-width: 1024px){.my-modal__wrapper .boxes__box-content__slider .color-big-image{height:300px}}.my-modal__wrapper .boxes__box-content__white *{color:#fff}.my-modal__wrapper .boxes__box-content__white h2{color:#fff}.my-modal__wrapper .pagination{margin:10px 0px;font-size:16px;display:flex;flex-direction:row;align-items:center;justify-content:center}.my-modal__wrapper .pagination>span{margin:0 3px;cursor:pointer;min-width:20px;padding:5px;box-shadow:1px 1px 1px #ccc}.my-modal__wrapper .pagination .current{background-color:wheat}.my-modal .categories{padding-bottom:20px;margin-bottom:20px;border-bottom:1px solid #dfdfdf;display:flex;flex-direction:column;align-items:flex-start}.my-modal .categories__container{display:flex;flex-wrap:nowrap;gap:5px 5px;overflow-x:auto;width:100%}@media (max-width: 1024px){.my-modal .categories__container{padding-bottom:5px}}.my-modal .categories__slide-information{display:flex;flex-direction:row;align-items:center;justify-content:space-between}.my-modal .categories__slide-information span{color:#4c4c4c;font-size:16px;font-weight:normal}.my-modal .categories__slide-information span:first-of-type{margin-left:7px}.my-modal .categories__slide-information span:last-of-type{margin-right:7px}.my-modal .button,.my-modal a{background-color:#fff;font-size:16px;box-shadow:0px 10px 20px rgba(0, 0, 0, 0.1);border-radius:22px;padding:10px 35px;color:#232323;text-decoration:none;display:block;text-align:center;transition:all 0.7s ease-in-out;border:none;cursor:pointer}.my-modal .button:hover,.my-modal a:hover{color:#fff;background-color:#232323}.my-modal .button.brown,.my-modal a.brown{background-color:#3c2114;color:#fff}.my-modal .button.brown:hover,.my-modal a.brown:hover{color:#fff;background-color:#232323}.my-modal .button.inverse,.my-modal a.inverse{background-color:#232323;color:#fff}.my-modal .button.inverse:hover,.my-modal a.inverse:hover{color:#232323;background-color:#fff}@media (max-width: 1024px){.my-modal .button,.my-modal a{max-width:150px;font-size:13px;padding:12px 25px}}@media (max-width: 768px){.my-modal .button,.my-modal a{margin:0 auto}}.my-modal>.button{margin:10px auto}";
3061
+ const myModalCss = "@font-face{font-family:\"Galatea\";src:url(\"/assets/fonts/Galatea-Regular.woff2\") format(\"woff2\"), url(\"/assets/fonts/Galatea-Regular.woff\") format(\"woff\"), url(\"/assets/fonts/Galatea-Regular.ttf\") format(\"truetype\");font-weight:normal;font-style:normal;font-display:swap}.pallete-wrapper.sc-my-modal *.sc-my-modal{font-family:\"Galatea\", sans-serif}.my-modal.sc-my-modal{box-shadow:1px 1px 1px #ccc;background-color:#fff;position:fixed;top:20px;left:50%;transform:translateX(-50%);max-width:1555px;width:90%;z-index:1000;text-align:center;padding:35px 40px;max-height:calc(100vh - 100px);overflow-y:auto;min-height:50vh}@media (max-width: 1024px){.my-modal.sc-my-modal{padding:40px 20px 20px}}.my-modal.sc-my-modal::-webkit-scrollbar{display:none}.my-modal.sc-my-modal .loader.sc-my-modal{display:flex;flex-direction:column;align-items:center;justify-content:center;height:300px}.my-modal__header.sc-my-modal{display:flex;align-items:center;justify-content:space-between;align-items:flex-end;margin-bottom:16px}@media (max-width: 1024px){.my-modal__header.sc-my-modal{flex-direction:column;margin-bottom:12px;align-items:center;display:block}}@media (max-width: 768px){.my-modal__header.sc-my-modal .image-wrapper.sc-my-modal{margin-bottom:12px}}.my-modal__header.sc-my-modal .image-wrapper.sc-my-modal>img.sc-my-modal{max-width:300px;object-fit:cover}@media (max-width: 768px){.my-modal__header.sc-my-modal .image-wrapper.sc-my-modal>img.sc-my-modal{max-width:200px}}.my-modal__header.sc-my-modal .search-wrapper.sc-my-modal{display:flex;gap:55px;align-items:flex-start}@media (max-width: 1024px){.my-modal__header.sc-my-modal .search-wrapper.sc-my-modal{justify-content:center;width:92%}}@media (max-width: 1024px){.my-modal__header.sc-my-modal .search-wrapper.sc-my-modal .sc-my-search-h.sc-my-modal{width:100%;margin:0 auto}}.my-modal__header.sc-my-modal .search-wrapper.sc-my-modal .my-modal__close.sc-my-modal{background:transparent;border:none;margin-top:-20px}.my-modal__header.sc-my-modal .search-wrapper.sc-my-modal .my-modal__close.sc-my-modal>img.sc-my-modal{width:45px;height:45px;object-fit:cover;cursor:pointer}@media (max-width: 1024px){.my-modal__header.sc-my-modal .search-wrapper.sc-my-modal .my-modal__close.sc-my-modal{margin-top:0px;position:absolute;right:10px;top:10px}}.my-modal__see-more.sc-my-modal{font-size:16px;display:flex;justify-content:center;align-items:center;font-weight:300;color:#575757;margin-top:12px;margin-bottom:0px}@media (max-width: 1024px){.my-modal__see-more.sc-my-modal{font-size:18px}}.my-modal__see-more.sc-my-modal img.sc-my-modal{width:45px;height:45px}@media (max-width: 1024px){.my-modal__see-more.sc-my-modal img.sc-my-modal{display:none}}.my-modal__wrapper.sc-my-modal{display:flex;flex-direction:column;position:relative}.my-modal__wrapper.sc-my-modal .boxes.sc-my-modal{display:flex;flex-direction:column;flex-wrap:wrap}.my-modal__wrapper.sc-my-modal .boxes__list.sc-my-modal{display:flex;flex-wrap:wrap;gap:5px 5px}@media (max-width: 1024px){.my-modal__wrapper.sc-my-modal .boxes__list.sc-my-modal{justify-content:center}}.my-modal__wrapper.sc-my-modal .pagination.sc-my-modal{margin:10px 0px;font-size:16px;display:flex;flex-direction:row;align-items:center;justify-content:center}.my-modal__wrapper.sc-my-modal .pagination.sc-my-modal>span.sc-my-modal{margin:0 3px;cursor:pointer;min-width:20px;padding:5px;box-shadow:1px 1px 1px #ccc}.my-modal__wrapper.sc-my-modal .pagination.sc-my-modal .current.sc-my-modal{background-color:wheat}.my-modal.sc-my-modal .categories.sc-my-modal{padding-bottom:20px;margin-bottom:20px;border-bottom:1px solid #dfdfdf;display:flex;flex-direction:column;align-items:flex-start}.my-modal.sc-my-modal .categories__container.sc-my-modal{display:flex;flex-wrap:nowrap;gap:5px 5px;overflow-x:auto;width:100%}@media (max-width: 1024px){.my-modal.sc-my-modal .categories__container.sc-my-modal{padding-bottom:5px}}.my-modal.sc-my-modal .categories__slide-information.sc-my-modal{display:flex;flex-direction:row;align-items:center;justify-content:space-between}.my-modal.sc-my-modal .categories__slide-information.sc-my-modal span.sc-my-modal{color:#4c4c4c;font-size:16px;font-weight:normal}.my-modal.sc-my-modal .categories__slide-information.sc-my-modal span.sc-my-modal:first-of-type{margin-left:7px}.my-modal.sc-my-modal .categories__slide-information.sc-my-modal span.sc-my-modal:last-of-type{margin-right:7px}.my-modal.sc-my-modal>.button.sc-my-modal{margin:10px auto}";
2702
3062
 
2703
3063
  const MyModal = class {
2704
3064
  constructor(hostRef) {
@@ -2879,6 +3239,8 @@ const MyModal = class {
2879
3239
  this.shop = undefined;
2880
3240
  this.product = undefined;
2881
3241
  this.baselink = undefined;
3242
+ this.available_testers = undefined;
3243
+ this.price = undefined;
2882
3244
  this.selectedcolor = undefined;
2883
3245
  this.closeImage = 'close.png';
2884
3246
  this.arrowDown = 'arrow_down.png';
@@ -2996,7 +3358,7 @@ const MyModal = class {
2996
3358
  render() {
2997
3359
  var _a, _b;
2998
3360
  return (index$1.h("div", { class: `my-modal`, onMouseEnter: () => this.handleReadyToClose(false), onMouseLeave: () => this.handleReadyToClose(true) }, this.preloader && (index$1.h("div", { class: 'loader' }, index$1.h("my-loader", null))), !this.preloader && this.data && (index$1.h("div", { class: `my-modal__header` }, index$1.h("div", { class: "image-wrapper" }, index$1.h("img", { src: `${APIURL}/assets/${(_a = this.data) === null || _a === void 0 ? void 0 : _a.modalLogo}?access_token=${accessToken}`, alt: "modal-logo" }), !this.preloader && this.data && (index$1.h("p", { class: "my-modal__see-more" }, (_b = this.data) === null || _b === void 0 ? void 0 : _b.modalDescription))), index$1.h("div", { class: "search-wrapper" }, !this.preloader && index$1.h("my-search", { shopname: this.shop, productname: this.data.name, isMobile: this.isMobile }), !this.preloader && (index$1.h("button", { class: "my-modal__close", onClick: () => this.closeModalHandler() }, index$1.h("img", { src: index$1.getAssetPath(`./assets/${this.closeImage}`), alt: "closebtn" })))))), index$1.h("div", { class: 'my-modal__wrapper' }, this.loading && index$1.h("my-loader", null), !this.loading && this.colors && (index$1.h("div", { class: 'container_boxes' }, this.colors.list.length > 0 ? (this.chunks(this.colors.list).map((color, index) => {
2999
- var _a;
3361
+ var _a, _b;
3000
3362
  return (index$1.h("div", { key: index, class: "boxes" }, index$1.h("div", { class: "boxes__list" }, color.map((c) => {
3001
3363
  var _a;
3002
3364
  return (index$1.h("my-colorbox", { key: c.id, onClick: () => {
@@ -3016,7 +3378,7 @@ const MyModal = class {
3016
3378
  isImageInsteadHex: c.imageInsteadHex,
3017
3379
  bigImage: c.bigImage,
3018
3380
  } }));
3019
- })), ((_a = this.currentColor) === null || _a === void 0 ? void 0 : _a.id) && index === this.currentIndex && (index$1.h("my-colorinfo", { currentColor: this.currentColor, shop: this.shop, product: this.product, data: this.data, isMobile: this.isMobile, infoBoxWidth: this.infoBoxWidth, baselink: this.baselink }))));
3381
+ })), ((_a = this.currentColor) === null || _a === void 0 ? void 0 : _a.id) && index === this.currentIndex && (index$1.h("my-colorinfo", { currentColor: this.currentColor, shop: this.shop, product: this.product, data: this.data, isMobile: this.isMobile, infoBoxWidth: this.infoBoxWidth, baselink: this.baselink, availableTesters: (_b = this.available_testers) === null || _b === void 0 ? void 0 : _b.find((t) => { var _a, _b, _c; return ((_a = t.color_name) === null || _a === void 0 ? void 0 : _a.trim().toLowerCase()) === ((_c = (_b = this.currentColor) === null || _b === void 0 ? void 0 : _b.name) === null || _c === void 0 ? void 0 : _c.trim().toLowerCase()); }), price: this.price }))));
3020
3382
  })) : (index$1.h("p", null, "Brak wynik\u00F3w")), this.colors.pagination.filter_count > limit && (index$1.h("div", { class: 'pagination' }, Array.from({ length: Math.ceil(this.colors.pagination.filter_count / limit) }).map((_, i) => (index$1.h("span", { class: i + 1 === this.page ? 'current' : '', onClick: e => {
3021
3383
  e.preventDefault();
3022
3384
  this.onPage(i + 1);
@@ -3031,7 +3393,7 @@ const MyModal = class {
3031
3393
  };
3032
3394
  MyModal.style = myModalCss;
3033
3395
 
3034
- const mySearchCss = ".pallete-wrapper.sc-my-search *.sc-my-search{font-family:\"Galatea\", sans-serif}.search.sc-my-search{position:relative;width:400px}@media (max-width: 768px){.search.sc-my-search{width:100%}}.search.sc-my-search input.sc-my-search{font-size:16px;padding:19px;border-radius:27.35px;border:1px solid #dfdfdf;width:100%;color:#4c4c4c}.search.sc-my-search button.sc-my-search{position:absolute;border:none;background-color:transparent;right:10px;top:0;width:50px;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer}";
3396
+ const mySearchCss = "@font-face{font-family:\"Galatea\";src:url(\"/assets/fonts/Galatea-Regular.woff2\") format(\"woff2\"), url(\"/assets/fonts/Galatea-Regular.woff\") format(\"woff\"), url(\"/assets/fonts/Galatea-Regular.ttf\") format(\"truetype\");font-weight:normal;font-style:normal;font-display:swap}.pallete-wrapper.sc-my-search *.sc-my-search{font-family:\"Galatea\", sans-serif}.search.sc-my-search{position:relative;width:400px}@media (max-width: 768px){.search.sc-my-search{width:100%}}.search.sc-my-search input.sc-my-search{font-size:16px;padding:19px;border-radius:27.35px;border:1px solid #dfdfdf;width:100%;color:#4c4c4c}.search.sc-my-search button.sc-my-search{position:absolute;border:none;background-color:transparent;right:10px;top:0;width:50px;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer}";
3035
3397
 
3036
3398
  function debounce(func, wait) {
3037
3399
  let timeout;
@@ -8313,7 +8675,7 @@ function Controller({
8313
8675
  });
8314
8676
  }
8315
8677
 
8316
- const mySliderCss = "@font-face{font-family:swiper-icons;src:url('data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA');font-weight:400;font-style:normal}:root{--swiper-theme-color:#007aff}.swiper{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;box-sizing:content-box}.swiper-android .swiper-slide,.swiper-wrapper{transform:translate3d(0px,0,0)}.swiper-pointer-events{touch-action:pan-y}.swiper-pointer-events.swiper-vertical{touch-action:pan-x}.swiper-slide{flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden .swiper-slide{transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d,.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-cube-shadow,.swiper-3d .swiper-slide,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0,0,0,.15)}.swiper-3d .swiper-slide-shadow-left{background-image:linear-gradient(to left,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-right{background-image:linear-gradient(to right,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-top{background-image:linear-gradient(to top,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(to bottom,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-horizontal.swiper-css-mode>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-vertical.swiper-css-mode>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-centered>.swiper-wrapper::before{content:'';flex-shrink:0;order:9999}.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-virtual .swiper-slide{-webkit-backface-visibility:hidden;transform:translateZ(0)}.swiper-virtual.swiper-css-mode .swiper-wrapper::after{content:'';position:absolute;left:0;top:0;pointer-events:none}.swiper-virtual.swiper-css-mode.swiper-horizontal .swiper-wrapper::after{height:1px;width:var(--swiper-virtual-size)}.swiper-virtual.swiper-css-mode.swiper-vertical .swiper-wrapper::after{width:1px;height:var(--swiper-virtual-size)}:root{--swiper-navigation-size:44px}.swiper-button-next,.swiper-button-prev{position:absolute;top:50%;width:calc(var(--swiper-navigation-size)/ 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - (var(--swiper-navigation-size)/ 2));z-index:10;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--swiper-navigation-color,var(--swiper-theme-color))}.swiper-button-next.swiper-button-disabled,.swiper-button-prev.swiper-button-disabled{opacity:.35;cursor:auto;pointer-events:none}.swiper-button-next.swiper-button-hidden,.swiper-button-prev.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-next,.swiper-navigation-disabled .swiper-button-prev{display:none!important}.swiper-button-next:after,.swiper-button-prev:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none!important;letter-spacing:0;font-variant:initial;line-height:1}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:10px;right:auto}.swiper-button-prev:after,.swiper-rtl .swiper-button-next:after{content:'prev'}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:10px;left:auto}.swiper-button-next:after,.swiper-rtl .swiper-button-prev:after{content:'next'}.swiper-button-lock{display:none}.swiper-pagination{position:absolute;text-align:center;transition:.3s opacity;transform:translate3d(0,0,0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none!important}.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal,.swiper-pagination-custom,.swiper-pagination-fraction{bottom:10px;left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transform:scale(.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width,var(--swiper-pagination-bullet-size,8px));height:var(--swiper-pagination-bullet-height,var(--swiper-pagination-bullet-size,8px));display:inline-block;border-radius:50%;background:var(--swiper-pagination-bullet-inactive-color,#000);opacity:var(--swiper-pagination-bullet-inactive-opacity, .2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;box-shadow:none;-webkit-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color,var(--swiper-theme-color))}.swiper-pagination-vertical.swiper-pagination-bullets,.swiper-vertical>.swiper-pagination-bullets{right:10px;top:50%;transform:translate3d(0px,-50%,0)}.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap,6px) 0;display:block}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;transform:translateY(-50%);width:8px}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;transition:.2s transform,.2s top}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap,4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s left}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s right}.swiper-pagination-progressbar{background:rgba(0,0,0,.25);position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color,var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;transform:scale(0);transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite{width:100%;height:4px;left:0;top:0}.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-vertical>.swiper-pagination-progressbar{width:4px;height:100%;left:0;top:0}.swiper-pagination-lock{display:none}.swiper-scrollbar{border-radius:10px;position:relative;-ms-touch-action:none;background:rgba(0,0,0,.1)}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none!important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{position:absolute;left:1%;bottom:3px;z-index:50;height:5px;width:98%}.swiper-scrollbar.swiper-scrollbar-vertical,.swiper-vertical>.swiper-scrollbar{position:absolute;right:3px;top:1%;z-index:50;width:5px;height:98%}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:rgba(0,0,0,.5);border-radius:10px;left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}.swiper-zoom-container{width:100%;height:100%;display:flex;justify-content:center;align-items:center;text-align:center}.swiper-zoom-container>canvas,.swiper-zoom-container>img,.swiper-zoom-container>svg{max-width:100%;max-height:100%;object-fit:contain}.swiper-slide-zoomed{cursor:move}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;transform-origin:50%;box-sizing:border-box;border:4px solid var(--swiper-preloader-color,var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader,.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader{animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@keyframes swiper-preloader-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.swiper .swiper-notification{position:absolute;left:0;top:0;pointer-events:none;opacity:0;z-index:-1000}.swiper-free-mode>.swiper-wrapper{transition-timing-function:ease-out;margin:0 auto}.swiper-grid>.swiper-wrapper{flex-wrap:wrap}.swiper-grid-column>.swiper-wrapper{flex-wrap:wrap;flex-direction:column}.swiper-fade.swiper-free-mode .swiper-slide{transition-timing-function:ease-out}.swiper-fade .swiper-slide{pointer-events:none;transition-property:opacity}.swiper-fade .swiper-slide .swiper-slide{pointer-events:none}.swiper-fade .swiper-slide-active,.swiper-fade .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-cube{overflow:visible}.swiper-cube .swiper-slide{pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1;visibility:hidden;transform-origin:0 0;width:100%;height:100%}.swiper-cube .swiper-slide .swiper-slide{pointer-events:none}.swiper-cube.swiper-rtl .swiper-slide{transform-origin:100% 0}.swiper-cube .swiper-slide-active,.swiper-cube .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-cube .swiper-slide-active,.swiper-cube .swiper-slide-next,.swiper-cube .swiper-slide-next+.swiper-slide,.swiper-cube .swiper-slide-prev{pointer-events:auto;visibility:visible}.swiper-cube .swiper-slide-shadow-bottom,.swiper-cube .swiper-slide-shadow-left,.swiper-cube .swiper-slide-shadow-right,.swiper-cube .swiper-slide-shadow-top{z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-cube .swiper-cube-shadow{position:absolute;left:0;bottom:0px;width:100%;height:100%;opacity:.6;z-index:0}.swiper-cube .swiper-cube-shadow:before{content:'';background:#000;position:absolute;left:0;top:0;bottom:0;right:0;filter:blur(50px)}.swiper-flip{overflow:visible}.swiper-flip .swiper-slide{pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1}.swiper-flip .swiper-slide .swiper-slide{pointer-events:none}.swiper-flip .swiper-slide-active,.swiper-flip .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-flip .swiper-slide-shadow-bottom,.swiper-flip .swiper-slide-shadow-left,.swiper-flip .swiper-slide-shadow-right,.swiper-flip .swiper-slide-shadow-top{z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-creative .swiper-slide{-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden;transition-property:transform,opacity,height}.swiper-cards{overflow:visible}.swiper-cards .swiper-slide{transform-origin:center bottom;-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden}.pallete-wrapper *{font-family:\"Galatea\", sans-serif}.slider-wrapper{width:100%;position:relative;height:100%;display:flex;max-width:1100px;flex-direction:row;align-items:center;justify-content:space-between}@media (max-width: 1024px){.slider-wrapper{height:220px}}.slider-wrapper .swiper{margin:0}.slider-wrapper .swiper-slide img{display:block;width:100%;height:100%;object-fit:cover}.slider-wrapper .mySwiper2{height:100%;width:80%;position:relative}@media (max-width: 1024px){.slider-wrapper .mySwiper2{width:100%}}.slider-wrapper .mySwiper2 .swiper-button-prev,.slider-wrapper .mySwiper2 .swiper-button-next{z-index:20;position:absolute;bottom:15px;width:23px;top:inherit;height:23px;background-color:#fff}.slider-wrapper .mySwiper2 .swiper-button-prev::after,.slider-wrapper .mySwiper2 .swiper-button-next::after{font-size:11px;color:#232323;font-weight:bold}.slider-wrapper .mySwiper2 .swiper-button-prev{right:40px;left:initial}.slider-wrapper .mySwiper{width:20%;height:100%;box-sizing:border-box}@media (max-width: 1024px){.slider-wrapper .mySwiper{display:none}}.slider-wrapper .mySwiper .swiper-slide{height:100%;cursor:pointer}.slider-wrapper .mySwiper .swiper-slide-thumb-active{opacity:1}";
8678
+ const mySliderCss = "@font-face{font-family:swiper-icons;src:url('data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA');font-weight:400;font-style:normal}:root{--swiper-theme-color:#007aff}.swiper{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;box-sizing:content-box}.swiper-android .swiper-slide,.swiper-wrapper{transform:translate3d(0px,0,0)}.swiper-pointer-events{touch-action:pan-y}.swiper-pointer-events.swiper-vertical{touch-action:pan-x}.swiper-slide{flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden .swiper-slide{transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d,.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-cube-shadow,.swiper-3d .swiper-slide,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0,0,0,.15)}.swiper-3d .swiper-slide-shadow-left{background-image:linear-gradient(to left,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-right{background-image:linear-gradient(to right,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-top{background-image:linear-gradient(to top,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(to bottom,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-horizontal.swiper-css-mode>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-vertical.swiper-css-mode>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-centered>.swiper-wrapper::before{content:'';flex-shrink:0;order:9999}.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-virtual .swiper-slide{-webkit-backface-visibility:hidden;transform:translateZ(0)}.swiper-virtual.swiper-css-mode .swiper-wrapper::after{content:'';position:absolute;left:0;top:0;pointer-events:none}.swiper-virtual.swiper-css-mode.swiper-horizontal .swiper-wrapper::after{height:1px;width:var(--swiper-virtual-size)}.swiper-virtual.swiper-css-mode.swiper-vertical .swiper-wrapper::after{width:1px;height:var(--swiper-virtual-size)}:root{--swiper-navigation-size:44px}.swiper-button-next,.swiper-button-prev{position:absolute;top:50%;width:calc(var(--swiper-navigation-size)/ 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - (var(--swiper-navigation-size)/ 2));z-index:10;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--swiper-navigation-color,var(--swiper-theme-color))}.swiper-button-next.swiper-button-disabled,.swiper-button-prev.swiper-button-disabled{opacity:.35;cursor:auto;pointer-events:none}.swiper-button-next.swiper-button-hidden,.swiper-button-prev.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-next,.swiper-navigation-disabled .swiper-button-prev{display:none!important}.swiper-button-next:after,.swiper-button-prev:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none!important;letter-spacing:0;font-variant:initial;line-height:1}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:10px;right:auto}.swiper-button-prev:after,.swiper-rtl .swiper-button-next:after{content:'prev'}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:10px;left:auto}.swiper-button-next:after,.swiper-rtl .swiper-button-prev:after{content:'next'}.swiper-button-lock{display:none}.swiper-pagination{position:absolute;text-align:center;transition:.3s opacity;transform:translate3d(0,0,0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none!important}.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal,.swiper-pagination-custom,.swiper-pagination-fraction{bottom:10px;left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transform:scale(.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width,var(--swiper-pagination-bullet-size,8px));height:var(--swiper-pagination-bullet-height,var(--swiper-pagination-bullet-size,8px));display:inline-block;border-radius:50%;background:var(--swiper-pagination-bullet-inactive-color,#000);opacity:var(--swiper-pagination-bullet-inactive-opacity, .2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;box-shadow:none;-webkit-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color,var(--swiper-theme-color))}.swiper-pagination-vertical.swiper-pagination-bullets,.swiper-vertical>.swiper-pagination-bullets{right:10px;top:50%;transform:translate3d(0px,-50%,0)}.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap,6px) 0;display:block}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;transform:translateY(-50%);width:8px}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;transition:.2s transform,.2s top}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap,4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s left}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s right}.swiper-pagination-progressbar{background:rgba(0,0,0,.25);position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color,var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;transform:scale(0);transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite{width:100%;height:4px;left:0;top:0}.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-vertical>.swiper-pagination-progressbar{width:4px;height:100%;left:0;top:0}.swiper-pagination-lock{display:none}.swiper-scrollbar{border-radius:10px;position:relative;-ms-touch-action:none;background:rgba(0,0,0,.1)}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none!important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{position:absolute;left:1%;bottom:3px;z-index:50;height:5px;width:98%}.swiper-scrollbar.swiper-scrollbar-vertical,.swiper-vertical>.swiper-scrollbar{position:absolute;right:3px;top:1%;z-index:50;width:5px;height:98%}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:rgba(0,0,0,.5);border-radius:10px;left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}.swiper-zoom-container{width:100%;height:100%;display:flex;justify-content:center;align-items:center;text-align:center}.swiper-zoom-container>canvas,.swiper-zoom-container>img,.swiper-zoom-container>svg{max-width:100%;max-height:100%;object-fit:contain}.swiper-slide-zoomed{cursor:move}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;transform-origin:50%;box-sizing:border-box;border:4px solid var(--swiper-preloader-color,var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader,.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader{animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@keyframes swiper-preloader-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.swiper .swiper-notification{position:absolute;left:0;top:0;pointer-events:none;opacity:0;z-index:-1000}.swiper-free-mode>.swiper-wrapper{transition-timing-function:ease-out;margin:0 auto}.swiper-grid>.swiper-wrapper{flex-wrap:wrap}.swiper-grid-column>.swiper-wrapper{flex-wrap:wrap;flex-direction:column}.swiper-fade.swiper-free-mode .swiper-slide{transition-timing-function:ease-out}.swiper-fade .swiper-slide{pointer-events:none;transition-property:opacity}.swiper-fade .swiper-slide .swiper-slide{pointer-events:none}.swiper-fade .swiper-slide-active,.swiper-fade .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-cube{overflow:visible}.swiper-cube .swiper-slide{pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1;visibility:hidden;transform-origin:0 0;width:100%;height:100%}.swiper-cube .swiper-slide .swiper-slide{pointer-events:none}.swiper-cube.swiper-rtl .swiper-slide{transform-origin:100% 0}.swiper-cube .swiper-slide-active,.swiper-cube .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-cube .swiper-slide-active,.swiper-cube .swiper-slide-next,.swiper-cube .swiper-slide-next+.swiper-slide,.swiper-cube .swiper-slide-prev{pointer-events:auto;visibility:visible}.swiper-cube .swiper-slide-shadow-bottom,.swiper-cube .swiper-slide-shadow-left,.swiper-cube .swiper-slide-shadow-right,.swiper-cube .swiper-slide-shadow-top{z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-cube .swiper-cube-shadow{position:absolute;left:0;bottom:0px;width:100%;height:100%;opacity:.6;z-index:0}.swiper-cube .swiper-cube-shadow:before{content:'';background:#000;position:absolute;left:0;top:0;bottom:0;right:0;filter:blur(50px)}.swiper-flip{overflow:visible}.swiper-flip .swiper-slide{pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1}.swiper-flip .swiper-slide .swiper-slide{pointer-events:none}.swiper-flip .swiper-slide-active,.swiper-flip .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-flip .swiper-slide-shadow-bottom,.swiper-flip .swiper-slide-shadow-left,.swiper-flip .swiper-slide-shadow-right,.swiper-flip .swiper-slide-shadow-top{z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-creative .swiper-slide{-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden;transition-property:transform,opacity,height}.swiper-cards{overflow:visible}.swiper-cards .swiper-slide{transform-origin:center bottom;-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden}@font-face{font-family:\"Galatea\";src:url(\"/assets/fonts/Galatea-Regular.woff2\") format(\"woff2\"), url(\"/assets/fonts/Galatea-Regular.woff\") format(\"woff\"), url(\"/assets/fonts/Galatea-Regular.ttf\") format(\"truetype\");font-weight:normal;font-style:normal;font-display:swap}.pallete-wrapper *{font-family:\"Galatea\", sans-serif}.slider-wrapper{width:100%;position:relative;height:100%;display:flex;max-width:1100px;flex-direction:row;align-items:center;justify-content:space-between}@media (max-width: 1024px){.slider-wrapper{height:220px}}.slider-wrapper .swiper{margin:0}.slider-wrapper .swiper-slide img{display:block;width:100%;height:100%;object-fit:cover}.slider-wrapper .mySwiper2{height:100%;width:100%;position:relative}@media (max-width: 1024px){.slider-wrapper .mySwiper2{width:100%}}.slider-wrapper .mySwiper2 .swiper-button-prev,.slider-wrapper .mySwiper2 .swiper-button-next{z-index:20;position:absolute;bottom:15px;width:23px;top:inherit;height:23px;background-color:#fff}.slider-wrapper .mySwiper2 .swiper-button-prev::after,.slider-wrapper .mySwiper2 .swiper-button-next::after{font-size:11px;color:#232323;font-weight:bold}.slider-wrapper .mySwiper2 .swiper-button-next{right:45%}.slider-wrapper .mySwiper2 .swiper-button-prev{left:45%}.slider-wrapper .mySwiper{width:20%;height:100%;box-sizing:border-box}@media (max-width: 1024px){.slider-wrapper .mySwiper{display:none}}.slider-wrapper .mySwiper .swiper-slide{height:100%;cursor:pointer}.slider-wrapper .mySwiper .swiper-slide-thumb-active{opacity:1}";
8317
8679
 
8318
8680
  const JcSwiper = class {
8319
8681
  constructor(hostRef) {
@@ -8348,11 +8710,16 @@ const JcSwiper = class {
8348
8710
  nextEl: '.swiper-button-next',
8349
8711
  prevEl: '.swiper-button-prev',
8350
8712
  },
8713
+ // loop: true,
8714
+ // loopedSlides: 3,
8715
+ slideToClickedSlide: true,
8351
8716
  loop: true,
8352
- loopedSlides: 3,
8717
+ freeMode: true,
8718
+ slidesPerView: 1,
8353
8719
  });
8354
- this.swiper2.controller.control = this.thumbs;
8355
- this.thumbs.controller.control = this.swiper2;
8720
+ // this.swiper2.controller.control = this.thumbs;
8721
+ this.swiper2.controller.control = this.swiper2;
8722
+ // this.thumbs.controller.control = this.swiper2;
8356
8723
  }
8357
8724
  componentDidLoad() {
8358
8725
  this.initSwiper();
@@ -8364,9 +8731,7 @@ const JcSwiper = class {
8364
8731
  render() {
8365
8732
  return (index$1.h("div", { class: "slider-wrapper" }, index$1.h("div", { class: "swiper mySwiper2" }, index$1.h("div", { class: "swiper-wrapper" }, this.slides &&
8366
8733
  this.slides.length > 0 &&
8367
- this.slides.map((slide) => (index$1.h("div", { key: slide.id, class: "swiper-slide" }, index$1.h("img", { src: `${APIURL}/assets/${slide.directus_files_id}?access_token=${accessToken}`, alt: "room_image" }))))), this.slides && this.slides.length >= 2 && (index$1.h("div", null, index$1.h("div", { onClick: this.colorInteraction, class: "swiper-button-next" }), index$1.h("div", { onClick: this.colorInteraction, class: "swiper-button-prev" })))), index$1.h("div", { class: "swiper mySwiper" }, index$1.h("div", { class: "swiper-wrapper" }, this.slides &&
8368
- this.slides.length > 0 &&
8369
- this.slides.map((slide) => (index$1.h("div", { key: slide.id, class: "swiper-slide" }, index$1.h("img", { src: `${APIURL}/assets/${slide.directus_files_id}?access_token=${accessToken}`, alt: "room_image" }))))))));
8734
+ this.slides.map((slide) => (index$1.h("div", { key: slide.id, class: "swiper-slide" }, index$1.h("img", { src: `${APIURL}/assets/${slide.directus_files_id}?access_token=${accessToken}`, alt: "room_image" }))))), this.slides && this.slides.length >= 2 && (index$1.h("div", null, index$1.h("div", { onClick: this.colorInteraction, class: "swiper-button-next" }), index$1.h("div", { onClick: this.colorInteraction, class: "swiper-button-prev" }))))));
8370
8735
  }
8371
8736
  get modalEl() { return index$1.getElement(this); }
8372
8737
  };