@harpercollins/harpercollins-design-system 1.8.77 → 1.8.80

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.
package/dist/esm/index.js CHANGED
@@ -145,32 +145,18 @@ function rc(e,t){const n=tc(e,t);return"production"!==process.env.NODE_ENV?(...t
145
145
  font-size: var(--font-size--xsmall);
146
146
  font-weight: var(--font-weight--bold);
147
147
  margin: 0;
148
- `,hy=on(dy)`
149
- a,
150
- button {
151
- color: initial;
152
- text-decoration: none;
153
- display: block;
154
- transition: background-color 0.2s;
155
- background: none;
156
- border: none;
157
- padding: 0;
158
- width: 100%;
159
- cursor: pointer;
160
- text-align: left;
161
- }
162
- `;function vy(t){return e(Zb,{...t})}function by({size:n=80,strokeWidth:r=8,color:o="#4c3fdd"}){return t("svg",{width:n,height:n,viewBox:"0 0 200 200",color:o,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t("defs",{children:[t("linearGradient",{id:"spinner-secondHalf",children:[e("stop",{offset:"0%",stopOpacity:"0",stopColor:"currentColor"}),e("stop",{offset:"100%",stopOpacity:"0.5",stopColor:"currentColor"})]}),t("linearGradient",{id:"spinner-firstHalf",children:[e("stop",{offset:"0%",stopOpacity:"1",stopColor:"currentColor"}),e("stop",{offset:"100%",stopOpacity:"0.5",stopColor:"currentColor"})]})]}),t("g",{strokeWidth:r,children:[e("path",{stroke:"url(#spinner-secondHalf)",d:`M ${r/2} 100 A ${100-r/2} ${100-r/2} 0 0 1 ${200-r/2} 100`}),e("path",{stroke:"url(#spinner-firstHalf)",d:`M ${200-r/2} 100 A ${100-r/2} ${100-r/2} 0 0 1 ${r/2} 100`}),e("path",{stroke:"currentColor",strokeLinecap:"round",d:`M ${r/2} 100 A ${100-r/2} ${100-r/2} 0 0 1 ${r/2} ${100-r/4}`})]}),e("animateTransform",{from:"0 0 0",to:"360 0 0",attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1300ms"})]})}const yy=on.div`
148
+ `;function hy(t){return e(Zb,{...t})}function vy({size:n=80,strokeWidth:r=8,color:o="#4c3fdd"}){return t("svg",{width:n,height:n,viewBox:"0 0 200 200",color:o,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t("defs",{children:[t("linearGradient",{id:"spinner-secondHalf",children:[e("stop",{offset:"0%",stopOpacity:"0",stopColor:"currentColor"}),e("stop",{offset:"100%",stopOpacity:"0.5",stopColor:"currentColor"})]}),t("linearGradient",{id:"spinner-firstHalf",children:[e("stop",{offset:"0%",stopOpacity:"1",stopColor:"currentColor"}),e("stop",{offset:"100%",stopOpacity:"0.5",stopColor:"currentColor"})]})]}),t("g",{strokeWidth:r,children:[e("path",{stroke:"url(#spinner-secondHalf)",d:`M ${r/2} 100 A ${100-r/2} ${100-r/2} 0 0 1 ${200-r/2} 100`}),e("path",{stroke:"url(#spinner-firstHalf)",d:`M ${200-r/2} 100 A ${100-r/2} ${100-r/2} 0 0 1 ${r/2} 100`}),e("path",{stroke:"currentColor",strokeLinecap:"round",d:`M ${r/2} 100 A ${100-r/2} ${100-r/2} 0 0 1 ${r/2} ${100-r/4}`})]}),e("animateTransform",{from:"0 0 0",to:"360 0 0",attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1300ms"})]})}const by=on.div`
163
149
  position: absolute;
164
150
  left: calc(50% - 40px);
165
151
  top: calc(50% - 40px);
166
- `,wy=on.div`
152
+ `,yy=on.div`
167
153
  position: absolute;
168
154
  top: 28px;
169
155
  font-size: var(---font-size--small);
170
156
  color: black;
171
157
  width: 80px;
172
158
  text-align: center;
173
- `;function xy(n){return t(yy,{children:[e(by,{...n}),e(wy,{children:"Loading"})]})}const Sy=tn`
159
+ `;function wy(n){return t(by,{children:[e(vy,{...n}),e(yy,{children:"Loading"})]})}const xy=tn`
174
160
  position: relative;
175
161
  transition:
176
162
  background-color 0.1s ease,
@@ -199,15 +185,15 @@ function rc(e,t){const n=tc(e,t);return"production"!==process.env.NODE_ENV?(...t
199
185
  width: 90%;
200
186
  max-height: 90%;
201
187
  }
202
- `,Cy=tn`
188
+ `,Sy=tn`
203
189
  padding: var(--spacing--small) var(--spacing--medium);
204
190
  font-size: 0.9rem;
205
191
  font-weight: 600;
206
- `,ky=tn`
192
+ `,Cy=tn`
207
193
  padding: var(--spacing--xsmall) var(--spacing--small);
208
194
  font-size: 0.8rem;
209
195
  font-weight: 500;
210
- `,Oy=tn`
196
+ `,ky=tn`
211
197
  background-color: var(--color--primary);
212
198
  color: var(--color--white);
213
199
  border: none;
@@ -219,7 +205,7 @@ function rc(e,t){const n=tc(e,t);return"production"!==process.env.NODE_ENV?(...t
219
205
  &:disabled {
220
206
  background-color: #767676;
221
207
  }
222
- `,Iy=tn`
208
+ `,Oy=tn`
223
209
  background-color: var(--color--white);
224
210
  color: var(--color--primary);
225
211
  border: 1px solid var(--color--primary);
@@ -234,7 +220,7 @@ function rc(e,t){const n=tc(e,t);return"production"!==process.env.NODE_ENV?(...t
234
220
  color: #767676;
235
221
  border-color: #767676;
236
222
  }
237
- `,Ey=tn`
223
+ `,Iy=tn`
238
224
  background-color: var(--color--red);
239
225
  color: white;
240
226
  border: none;
@@ -246,7 +232,7 @@ function rc(e,t){const n=tc(e,t);return"production"!==process.env.NODE_ENV?(...t
246
232
  &:disabled {
247
233
  background-color: #767676;
248
234
  }
249
- `,Py=tn`
235
+ `,Ey=tn`
250
236
  background-color: transparent;
251
237
  color: var(--color--primary-light);
252
238
  border: none;
@@ -261,7 +247,7 @@ function rc(e,t){const n=tc(e,t);return"production"!==process.env.NODE_ENV?(...t
261
247
  color: #767676;
262
248
  border-color: #767676;
263
249
  }
264
- `,$y=tn`
250
+ `,Py=tn`
265
251
  background-color: var(--color--debug);
266
252
  color: var(--color--white);
267
253
  border: none;
@@ -273,24 +259,24 @@ function rc(e,t){const n=tc(e,t);return"production"!==process.env.NODE_ENV?(...t
273
259
  &:disabled {
274
260
  background-color: var(--color--debug-very-light);
275
261
  }
276
- `,Ny=on.a`
277
- ${Sy}
262
+ `,$y=on.a`
263
+ ${xy}
278
264
 
279
- ${({size:e})=>"small"===e?ky:Cy}
265
+ ${({size:e})=>"small"===e?Cy:Sy}
280
266
 
281
- ${({kind:e})=>"secondary"===e?Iy:"danger"===e?Ey:"basic"===e?Py:"debug"===e?$y:Oy}
282
- `,Ry=on.button`
283
- ${Sy}
267
+ ${({kind:e})=>"secondary"===e?Oy:"danger"===e?Iy:"basic"===e?Ey:"debug"===e?Py:ky}
268
+ `,Ny=on.button`
269
+ ${xy}
284
270
 
285
- ${({size:e})=>"small"===e?ky:Cy}
271
+ ${({size:e})=>"small"===e?Cy:Sy}
286
272
 
287
- ${({kind:e})=>"secondary"===e?Iy:"danger"===e?Ey:"basic"===e?Py:"debug"===e?$y:Oy}
273
+ ${({kind:e})=>"secondary"===e?Oy:"danger"===e?Iy:"basic"===e?Ey:"debug"===e?Py:ky}
288
274
 
289
275
  ${({$isSubmitting:e})=>e?tn`
290
276
  padding-left: 33px;
291
277
  pointer-events: none;
292
278
  `:tn``}
293
- `,Dy=on.span`
279
+ `,Ry=on.span`
294
280
  position: absolute;
295
281
  left: 10px;
296
282
  top: calc(50% - 8px);
@@ -300,7 +286,7 @@ function rc(e,t){const n=tc(e,t);return"production"!==process.env.NODE_ENV?(...t
300
286
  width: 16px;
301
287
  height: 16px;
302
288
  }
303
- `;function Ty({children:n,...r}){const{type:o,kind:a}=r;if("link"===o)return e(Ny,{...r,children:n});if("submit"===o){const{hideSpinner:o=!1,isSubmitting:i}=r;return t(Ry,{$isSubmitting:i,...r,children:[i&&!o&&e(Dy,{children:e(by,{strokeWidth:32,color:"primary"===a?"var(--color--white)":"inherit"})}),n]})}return e(Ry,{...r,children:n})}function zy(){return t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"209",height:"20","aria-labelledby":"HarperCollinsLogo",role:"img",children:[e("title",{id:"HarperCollinsLogo",children:"HarperCollins Publishers Logo"}),e("use",{fill:"#FFF",xlinkHref:"#path0_fill"}),e("defs",{children:e("path",{id:"path0_fill",fillRule:"evenodd",d:"M7.432 1.26C7.617.744 7.4.184 7.141.011V0c.873.182 1.656 1.272 1.657 2.512.001.81-.466 1.546-.919 2.257-.437.687-.86 1.352-.83 2.039h.012c.181-.814.857-1.488 1.523-2.153.903-.9 1.789-1.783 1.408-2.976l.007-.002c.897.557 1.332 2.066 1.454 3.23h.008c.207-.633.795-1.14 1.347-1.615.215-.186.425-.367.604-.548.227-.23.404-.46.48-.703h.008v6.01H0v-3.08c.01-.916.857-1.365 1.67-1.797.822-.435 1.609-.853 1.472-1.714l.006-.012c.61.922.278 1.768-.012 2.507l-.003.007-.009.024a9.85 9.85 0 0 0-.137.364l-.035.105-.028.093-.016.06c-.008.03-.014.06-.02.091-.042.2-.048.387.01.564h.01c.455-1.64 1.612-2.113 2.658-2.54.82-.336 1.572-.643 1.866-1.463zM2.405 8.421c-.813.741-1.647 1.084-2.405.8v5.51h13.899V8.92c-1.177 1.305-2.604.743-2.461-.348l-.008-.002c-2.165 2.348-3.396 1.03-3.055.07l-.005-.007c-1.967 2.21-3.206.915-2.622-.188L5.74 8.44c-2.489 2.766-4.06 1.75-3.327-.016l-.008-.003zm16.114-5.714c1.728.017 1.866.637 1.866 1.495v9.171c0 .931-.864 1.004-1.787 1.004l-.138.09v.402c.098.11.274.11.413.11.089 0 .178-.002.268-.004l.158-.005.19-.008.285-.015.228-.014.208-.012c.309-.018.617-.033.92-.033.342 0 .683.016 1.024.035l.188.01.3.017.28.013c.208.01.416.016.623.016.434 0 .63-.019.63-.128v-.273c0-.164-.06-.201-.276-.201-1.452 0-1.747-.255-1.747-1.296V8.47h8.423v4.267c0 1.276-.039 1.64-1.924 1.64l-.1.091v.401c0 .074.1.11.61.11.237 0 1.453-.09 2.179-.09.34 0 .679.017 1.017.036.448.025.894.054 1.34.054.53 0 .61-.055.61-.127v-.123a1.107 1.107 0 0 0-.033-.301c-.01-.031-.026-.05-.046-.05-1.12 0-1.885-.11-1.885-1.422V3.928c0-1.057.51-1.221 1.53-1.221.17 0 .302 0 .382-.029.058-.02.09-.057.09-.118v-.347l-.078-.108c-.57.054-1.08.09-2.337.09a60.75 60.75 0 0 1-3.102-.09l-.098.09v.22c0 .111.01.18.048.223.037.042.1.06.206.069 1.591.108 1.591.381 1.591 1.64v3.41h-8.423V3.655c0-.894.805-.948 1.608-.948l.152-.002.085-.003.068-.005.036-.004a.884.884 0 0 0 .091-.014c.076-.017.12-.043.12-.082v-.292c0-.2-.099-.2-.51-.2-.23 0-.454.007-.674.016-.204.009-.404.02-.603.031-.392.022-.774.044-1.158.044-.473 0-1.035-.027-1.543-.052l-.317-.015a17.76 17.76 0 0 0-.752-.024c-.157 0-.334.017-.334.144v.31l.098.148zm21.3 10.407l-.177.164-.099.088c-.48.43-1.104.988-1.747.988-.648 0-.904-.93-.904-1.42 0-.477.707-.821.983-.932l1.944-.822v1.934zM37.266 11.6l2.572-.929v-.876c0-1.003-.137-1.768-1.57-1.768-.532 0-1.513.145-1.513.674 0 .128.04.311.099.42l-1.237.656a1.407 1.407 0 0 1-.119-.547c0-.582.629-1.039 1.041-1.259l1.768-.947c.235-.128.335-.182.411-.182 1.63 0 2.475.73 2.475 2.224v3.867c0 .382 0 1.148.63 1.148.371 0 .45-.146.705-.529l.373.128c-.236.876-.727 1.585-1.57 1.585-1.334 0-1.474-1.147-1.454-1.603-.746.71-1.729 1.603-2.887 1.603-1.138 0-1.727-1.366-1.727-2.188 0-.309.373-.892 2.003-1.477zm10.855 2.9c-1.492 0-1.492-.692-1.492-1.422V9.632l.295-.345c.393-.457 1.001-1.077 1.474-1.077.302 0 .5.087.694.17.075.033.15.066.228.093.115.038.24.065.391.065.413 0 .807-.328.807-.711 0-.675-.413-.985-1.12-.985-1.046 0-1.869 1.017-2.479 1.772a15.78 15.78 0 0 1-.25.306l-.04-.036.04-1.878c0-.055-.04-.164-.156-.164a.906.906 0 0 0-.194.064c-.108.042-.252.102-.42.173l-.032.014-.022.01-.009.003-.149.063-1.453.623c-.216.09-.275.144-.275.253 0 .257.51.383.59.401.413.11.59.329.59.675v4.05c0 .983-.158 1.256-1.024 1.313-.392.017-.43.035-.43.217v.225a.127.127 0 0 0 .01.054c.01.022.028.031.066.031.374 0 .758-.022 1.14-.045l.522-.029a15.439 15.439 0 0 1 .617-.016c.188 0 .375.007.563.016l.468.03c.344.022.687.044 1.03.044a.19.19 0 0 0 .099-.02.09.09 0 0 0 .031-.031.236.236 0 0 0 .027-.116v-.087c0-.164-.018-.256-.137-.256zm5.548-5.779c.667-.438 1.296-.583 2.081-.583 1.884 0 2.906 1.659 2.906 3.262 0 1.861-1.041 3.157-3.043 3.157-.944 0-1.944-.31-1.944-1.259V8.721zm-3.083 10.705c1.492-.13 1.59-.146 1.59-1.624V9.688c0-.803-.039-.967-.451-1.132l-.707-.291c-.017 0-.027-.007-.033-.023-.006-.02-.006-.053-.006-.104 0-.137.016-.146.132-.207l.025-.013 2.395-1.076c.063.02.093.067.106.12a.569.569 0 0 1 .01.135c0 .347-.038.712.022 1.058.647-.31 2.277-1.203 2.945-1.203 2.14 0 3.671 1.987 3.671 3.83 0 3.5-3.827 4.594-5.34 4.594-.193 0-.383-.025-.572-.057l-.188-.033a5.572 5.572 0 0 0-.516-.074v2.825c0 1.242.333 1.316 1.747 1.389.052 0 .094.023.118.054.012.016.02.035.02.055v.182a.433.433 0 0 1-.02.132c-.018.052-.045.088-.08.088-.414 0-.825-.023-1.243-.046a23.9 23.9 0 0 0-1.328-.047c-.864 0-1.65.093-2.161.093-.176 0-.196-.073-.196-.257v-.11c0-.054.02-.144.06-.144zM64.862 7.444c-1.177 0-1.984 1.258-2.18 2.278L66 9.631c.254 0 .55-.344.55-.655 0-.894-.727-1.532-1.689-1.532zm3.32 2.699v-.565c0-1.515-1.239-2.736-2.987-2.736-2.572 0-4.142 2.462-4.142 4.614 0 2.024 1.628 3.81 3.633 3.81 1.57 0 2.75-.839 3.535-2.023l-.355-.238c-.982.821-1.493 1.077-2.219 1.077-1.786 0-3.102-1.587-3.102-3.174 0-.255 0-.51.04-.765h5.596zm3.713 2.935c0 .73 0 1.423 1.491 1.423.118 0 .138.092.138.256v.058l-.002.036a.273.273 0 0 1-.019.096c-.02.042-.06.064-.137.064l-.233-.003-.181-.006a26.08 26.08 0 0 1-.616-.036l-.296-.019-.197-.01c-.18-.01-.36-.016-.539-.016-.372 0-.755.023-1.138.045a19.608 19.608 0 0 1-1.168.043.075.075 0 0 1-.019-.006c-.015-.007-.023-.02-.027-.039l-.003-.026c-.002-.02-.002-.043-.002-.072V14.7c0-.182.04-.2.434-.217.864-.057 1.02-.33 1.02-1.313V9.12c0-.346-.176-.565-.59-.675-.077-.018-.587-.144-.587-.4 0-.11.059-.164.274-.254l1.453-.623.422-.178c.216-.09.366-.149.403-.149.118 0 .157.109.157.164l-.039 1.878.04.036c.079-.094.163-.198.25-.307.61-.755 1.433-1.77 2.48-1.77.705 0 1.118.31 1.118.984 0 .383-.393.711-.805.711-.258 0-.437-.077-.62-.157l-.094-.04-.073-.03-.064-.023a1.38 1.38 0 0 0-.465-.078c-.47 0-1.079.62-1.474 1.077l-.293.345v3.446zm13.057 1.884c1.786 0 3.377-.382 4.693-.985l.451-2.406c.058-.257-.235-.274-.393-.274h-.074l-.036.002c-.061.003-.113.012-.126.036-.235.674-.49 1.494-1.1 1.95-.785.582-2.277.968-3.436.968-3.3 0-5.891-2.829-5.891-5.818 0-3.282 2.141-6.147 5.891-6.147 1.729 0 3.456.876 4.025 2.134.142.31.258.537.347.685.085.14.146.21.184.21.08 0 .393 0 .393-.128l-.001-.034-.002-.028a2.015 2.015 0 0 0-.017-.123l-.015-.094-.012-.077-.012-.083-.255-2.114c-1.14-.638-3.397-1.057-4.713-1.057-4.024 0-8.01 2.662-8.01 6.655 0 4.195 4.26 6.728 8.11 6.728zm13.503-3.452c0 1.568-.766 3.154-2.69 3.154-2.021 0-2.945-2.133-2.945-3.737 0-1.75.588-3.483 2.572-3.483 2.395 0 3.063 2.243 3.063 4.066zm-3.14 3.755c-2.377 0-4.262-1.858-4.262-4.083 0-2.443 2.178-4.34 4.79-4.34 2.338 0 4.38 1.897 4.38 4.085 0 2.626-2.336 4.338-4.909 4.338zm9.57-.99c-1.354 0-1.354-.472-1.354-.874V3.463c0-.438.01-.88.019-1.323l.009-.406c.005-.307.01-.612.01-.915l-.001-.053-.001-.036a.539.539 0 0 0-.011-.08c-.015-.069-.05-.124-.125-.124a.296.296 0 0 0-.064.012 1.957 1.957 0 0 0-.207.07l-.023.01-1.434.493-.228.082c-.615.222-.773.279-.773.41 0 .137.244.227.519.327l.051.019c.766.292.766.365.766 1.514v9.846c0 .857-.315.967-1.178.967h-.125c-.074.003-.124.01-.156.034-.04.029-.053.083-.053.184v.165c0 .072.039.127.176.127.196 0 .392-.007.589-.017l.272-.015.199-.013c.354-.022.707-.045 1.061-.045.174 0 .429.016.724.035l.414.025c.295.017.607.03.904.03.039 0 .059-.09.059-.253l-.001-.072-.001-.054a.635.635 0 0 0-.007-.088c-.006-.027-.015-.043-.03-.043zm3.384-.874c0 .402 0 .875 1.355.875.039 0 .039.11.039.257l-.001.068-.004.058c-.009.083-.028.127-.055.127-.441 0-.915-.03-1.316-.055h-.004a13.313 13.313 0 0 0-.722-.035c-.353 0-.706.023-1.059.045-.138.01-.275.018-.413.025a14.44 14.44 0 0 1-.426.018h-.06l-.163.002c-.137 0-.177-.055-.177-.126v-.166c0-.056.004-.098.015-.129a.107.107 0 0 1 .034-.051c.046-.038.132-.038.286-.038.864 0 1.178-.11 1.178-.967V3.463c0-1.149 0-1.222-.766-1.514l-.054-.02c-.273-.1-.516-.19-.516-.326 0-.146.197-.2 1.003-.492l1.432-.493a1.627 1.627 0 0 1 .295-.092c.138 0 .138.183.138.293 0 .875-.039 1.768-.039 2.644v9.938zm6.616 1.251c-1.356 0-1.356-.473-1.356-.875V9.93c0-.439.01-.881.02-1.324.011-.442.021-.884.021-1.32 0-.11 0-.292-.138-.292-.058 0-.256.073-.294.092l-1.434.49-.216.079c-.626.225-.786.283-.786.415 0 .134.236.222.504.322l.065.025c.766.291.766.364.766 1.513v3.755c0 .857-.314.967-1.177.967-.276 0-.334 0-.334.219v.165c0 .071.039.127.176.127.173 0 .346-.006.52-.014l.201-.01.34-.021c.354-.023.707-.045 1.06-.045.174 0 .429.016.724.034.402.026.876.056 1.318.056.027 0 .045-.044.053-.125.004-.036.006-.08.006-.129 0-.076 0-.142-.005-.188-.005-.043-.015-.069-.034-.069zM112.726 1.58c.607 0 1.098.456 1.098 1.02 0 .565-.491 1.02-1.098 1.02-.609 0-1.101-.455-1.101-1.02 0-.564.492-1.02 1.101-1.02zm4.728 6.722c.197.036.374.254.374.6v4.632c0 .857-.314.967-1.178.967-.275 0-.334 0-.334.218v.166c0 .071.04.127.176.127.288 0 .577-.015.865-.033l.197-.012a16.59 16.59 0 0 1 1.059-.045c.175 0 .431.016.727.035.401.025.875.055 1.317.055.037 0 .057-.09.057-.255 0-.052 0-.1-.002-.139-.002-.049-.006-.086-.018-.104-.005-.009-.011-.013-.019-.013-1.355 0-1.355-.473-1.355-.874V8.883c.57-.529 1.59-.982 2.415-.982 1.374 0 1.748.637 1.748 1.766v4.287c0 .546-.903.546-1.217.546-.117 0-.196.056-.196.11 0 .017 0 .048.002.086.001.02.002.044.005.068.011.115.043.247.13.247.353 0 .701-.022 1.049-.045s.697-.045 1.051-.045c.648 0 1.159.09 1.944.09.06 0 .099-.018.099-.056v-.328c0-.09-.039-.127-.08-.127-.646 0-1.296 0-1.296-.784v-4.45c0-1.532-.725-2.424-2.433-2.424-1.206 0-2.212.737-3.106 1.393l-.115.083V7.06c0-.022 0-.052-.002-.082-.006-.067-.022-.135-.076-.135a.909.909 0 0 0-.191.067l-.165.07-.133.057c-.228.098-.515.222-.821.343-.128.051-.26.101-.392.149-.25.09-.501.17-.733.226-.099.018-.119.147-.119.2 0 .076.021.126.051.158.02.022.044.035.068.042l.647.147zm14.886.802h-.492c-.235-.802-.686-1.66-1.727-1.66-.903 0-1.61.401-1.61 1.258 0 .633.822 1.05 1.721 1.504l.031.016.31.158c1.04.547 2.062 1.186 2.062 2.316 0 1.585-1.572 2.57-3.162 2.57-1.277 0-2.513-.528-2.533-.819l-.098-1.66.569-.053c.08.09.099.218.138.344.217.748 1.098 1.587 1.963 1.587 1.002 0 1.631-.565 1.631-1.513 0-.601-.903-1.24-1.394-1.477l-.174-.083c-1.107-.528-2.42-1.154-2.42-2.47 0-1.514 1.492-2.279 2.985-2.279.785 0 1.572.2 2.318.564l-.118 1.697zm5.53-5.668c0 .13-.197.893-.432 1.733l-2.356 8.206c-.234.857-.531 1.003-1.748 1.003a.098.098 0 0 0-.071.034.2.2 0 0 0-.03.043c-.05.09-.075.248-.075.415 0 .073.018.109.098.109.119.008.357-.008.663-.029.399-.026.915-.061 1.437-.061.615 0 1.26.035 1.744.062.177.01.333.018.457.023l.109.004h.086c.139 0 .335 0 .373-.072l.037-.075.029-.06.017-.036.018-.042a.422.422 0 0 0 .036-.151c0-.127-.057-.164-.175-.164h-.276c-.589 0-1.216-.02-1.216-.474 0-.128.137-.565.176-.693l2.866-9.956c.118-.383.352-.438.942-.438 1.65 0 2.75.875 2.75 2.387 0 1.46-1.218 3.611-2.787 3.611-.61 0-1.082-.146-1.336-.328l-.314.42c.372.348 1.177.51 2.021.51 2.416 0 4.243-2.042 4.243-4.193 0-2.262-2.101-3.118-4.301-3.118-1.571 0-2.475.053-4.241.182-.315.019-.373.092-.373.382 0 .165.019.22.078.22l.022-.002.043-.008.052-.01a2.93 2.93 0 0 1 .57-.072c.471 0 .864.147.864.638zm6.365 5.358c.152-.132.324-.304.512-.492.64-.64 1.459-1.459 2.218-1.459.393 0 .687.145.687.565 0 .193-.167.593-.283.872l-.046.11-.024.058-.021.056-1.275 2.989-.237.55c-.225.514-.391.894-.391 1.019 0 .182.118.327.351.327.595 0 2.704-2.422 3.878-3.772l.017-.018c.295-.338.528-.608.663-.75.285-.298.531-.675.776-1.05.125-.192.25-.383.379-.562l.068-.092.049-.065.043-.054c.118-.147.295-.183.471-.183.085 0 .168.03.242.08a.623.623 0 0 1 .229.295c.013.04.021.08.021.117 0 .119-.333.921-.742 1.91l-.004.013c-.658 1.59-1.513 3.656-1.513 4.15 0 .2.177.31.294.31.662 0 1.611-1.266 2.028-1.823l.014-.019c.119 0 .355.182.355.274-.59.984-2.476 3.116-3.711 3.116-.335 0-.611-.327-.611-.691 0-.359.745-2.162 1.277-3.452l.015-.035.186-.453.177-.434c.048-.122.088-.223.113-.295h-.038c-.806.895-5.146 5.36-6.069 5.36-.333 0-.649-.327-.649-.637 0-.78.82-2.57 1.472-3.995.431-.942.789-1.724.789-1.949 0-.181-.179-.291-.276-.291-.256 0-.924.564-1.119.765l-.315-.365zm12.001 5.429c1.768 0 5.125-4.085 5.125-5.69 0-.694-.334-1.003-.923-1.003-1.413 0-5.28 4.175-5.28 5.962 0 .513.608.73 1.078.73zM159.1.53c-.038-.004-.077-.004-.114-.004-.194 0-.823.099-1.489.203l-.737.114-.341.05c-.155.021-.297.04-.419.053l-.038.42c.747.053 1.217.163 1.217.691 0 .749-1.726 6.237-1.826 6.585-.054.194-.183.585-.347 1.07l-.26.766-.016.047-.01.03-.009.025c-.474 1.392-1.027 3.018-1.027 3.276 0 .874 1.021 1.184 1.788 1.184 2.828 0 7.462-3.791 7.462-6.545 0-1.04-.648-1.878-1.788-1.878-1.896 0-3.864 2.363-5.024 3.756l-.122.145-.038-.036 3.28-9.883-.005-.007-.004-.007-.01-.01c-.005-.006-.012-.01-.018-.015a.25.25 0 0 0-.105-.03zm6.781 2.9c.05-.188.098-.391.139-.574a5.11 5.11 0 0 0 .106-.58c0-.583-.647-.747-1.14-.82l.14-.42c.575-.063 1.405-.227 2.039-.352h.004l.013-.003c.281-.056.522-.103.682-.13a1.47 1.47 0 0 1 .188-.025.17.17 0 0 1 .041.005.1.1 0 0 1 .049.025.112.112 0 0 1 .026.08c0 .072-.098.4-.314 1.057l-3.022 9.573-.109.338-.005.013c-.218.674-.418 1.295-.418 1.638 0 .235.197.42.452.42.447 0 1.011-.552 1.466-.996l.007-.007.019-.02c.155-.15.295-.286.413-.382h.077l.295.274v.054c-.667.876-2.335 2.443-3.553 2.443-.453 0-.845-.345-.845-.802 0-.091.118-.51.276-1.076l2.885-9.427a6.77 6.77 0 0 0 .089-.307zm4.96 3.108c-.766.018-2.298 1.186-2.63 1.769l.411.272c.294-.308.865-.764 1.197-.764a.37.37 0 0 1 .205.053c.084.055.128.15.128.274 0 .4-.585 1.757-1.159 3.09-.554 1.287-1.098 2.552-1.098 2.91 0 .583.413.82 1.002.82 1.334 0 2.868-1.694 3.535-2.663 0-.072-.275-.272-.354-.272-.118.105-.27.269-.441.453-.482.52-1.117 1.206-1.581 1.206-.296 0-.491-.164-.491-.364 0-.267.536-1.537 1.085-2.839l.003-.008c.578-1.369 1.17-2.772 1.17-3.08 0-.583-.334-.857-.982-.857zM172 1.578c.51 0 .922.364.922.839 0 .473-.412.857-.922.857-.511 0-.904-.384-.904-.857 0-.475.393-.838.904-.838zm6.463 6.156c0-.71-.981-.892-1.57-.892-1.649 0-2.985 1.35-2.985 2.862 0 .41.565 1.005 1.141 1.612.602.632 1.216 1.279 1.216 1.744 0 .638-.61 1.149-1.277 1.149-.586 0-.849-.237-1.078-.444-.179-.161-.337-.304-.611-.304-.334 0-.668.291-.668.657 0 1.02.845 1.148 1.768 1.148 1.471 0 3.239-1.55 3.239-2.9 0-.574-.739-1.34-1.428-2.055-.601-.624-1.165-1.209-1.165-1.592 0-.527.591-1.166 1.22-1.166.531 0 .763.28.97.529.168.201.319.383.599.383.335 0 .629-.347.629-.73zm2.354 3.187l.039.035.134-.18c1.064-1.43 3.094-4.159 5.089-4.159 1.296 0 1.611.966 1.611 1.987 0 1.879-2.219 6.437-4.616 6.437-.353 0-.843-.218-.843-.602 0-.436.255-.856.726-.856a.708.708 0 0 1 .278.055c.052.02.103.045.155.072a2.963 2.963 0 0 0 .201.098.624.624 0 0 0 .23.048c1.256 0 2.297-4.14 2.297-5.088 0-.527-.138-1.056-.826-1.056-1.432 0-3.24 2.57-4.495 4.484a10.28 10.28 0 0 0-1.05 2.056c-.093.233-.171.432-.266.607-.079.146-.255.182-.413.182-.175 0-.647-.164-.647-.474 0-.247.773-2.528 1.471-4.588.485-1.43.934-2.753 1.063-3.217l.065-.226c.274-.945 1.112-3.83 1.112-4.278 0-.6-.354-.691-1.217-.783l.119-.42c.169-.031.339-.058.51-.084l.176-.026c.463-.07.927-.139 1.374-.272.255-.074.511-.147.766-.147.099 0 .295.019.295.128 0 .201-1.335 4.377-1.63 5.233l-1.708 5.034zm9.471-.195c1.374-.11 3.965-.674 3.965-2.389 0-.546-.295-.983-.943-.983-1.59 0-2.63 2.15-3.022 3.372zm-1.867 1.788c0 1.53.746 2.752 2.571 2.752 1.416 0 2.592-.673 3.379-1.785-.039-.166-.275-.293-.374-.31-.706.672-1.335 1.037-2.335 1.037-1.122 0-1.671-.874-1.671-1.822 0-.3.05-.59.101-.884.02-.118.041-.236.058-.356 1.726-.074 5.476-.674 5.476-2.79 0-1.205-1.119-1.514-2.238-1.514-2.925 0-4.967 3.264-4.967 5.672zm11.596-4.24c0 .474-.156 1.24-.393 2.096h.041l.123-.195c.729-1.15 2.118-3.342 3.154-3.342.512 0 1.082.291 1.082.821 0 .547-.394.875-1.003.875a.75.75 0 0 1-.471-.183 2.554 2.554 0 0 1-.11-.097 1.562 1.562 0 0 0-.07-.062c-.055-.046-.104-.078-.153-.078-.649 0-2.239 3.046-2.672 3.974-.073.157-.177.435-.3.764-.366.98-.898 2.409-1.31 2.409-.255 0-.805-.108-.805-.364 0-.06.087-.313.226-.696l.157-.427c.176-.48.395-1.076.618-1.721.375-1.076.747-2.152.747-2.753 0-.42-.078-1.003-.786-1.003-.393 0-.883.692-1.138 1.076a1.692 1.692 0 0 1-.412-.255c.373-.75 1.355-2.28 2.297-2.28.844 0 1.178.857 1.178 1.44zm8.922-.549c0-.71-.982-.892-1.571-.892-1.648 0-2.984 1.35-2.984 2.862 0 .41.565 1.005 1.141 1.612.601.633 1.216 1.279 1.216 1.744 0 .639-.61 1.149-1.277 1.149-.586 0-.848-.237-1.078-.444-.178-.161-.337-.304-.611-.304-.334 0-.668.291-.668.657 0 1.02.845 1.148 1.768 1.148 1.47 0 3.24-1.55 3.24-2.9 0-.574-.739-1.34-1.428-2.055-.602-.624-1.165-1.209-1.165-1.591 0-.528.59-1.167 1.219-1.167.531 0 .762.279.97.528.167.202.319.384.6.384.335 0 .628-.347.628-.73z"})})]})}function My(){return e(zy,{})}const Ay=on.header`
289
+ `;function Dy({children:n,...r}){const{type:o,kind:a}=r;if("link"===o)return e($y,{...r,children:n});if("submit"===o){const{hideSpinner:o=!1,isSubmitting:i}=r;return t(Ny,{$isSubmitting:i,...r,children:[i&&!o&&e(Ry,{children:e(vy,{strokeWidth:32,color:"primary"===a?"var(--color--white)":"inherit"})}),n]})}return e(Ny,{...r,children:n})}function Ty(){return t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"209",height:"20","aria-labelledby":"HarperCollinsLogo",role:"img",children:[e("title",{id:"HarperCollinsLogo",children:"HarperCollins Publishers Logo"}),e("use",{fill:"#FFF",xlinkHref:"#path0_fill"}),e("defs",{children:e("path",{id:"path0_fill",fillRule:"evenodd",d:"M7.432 1.26C7.617.744 7.4.184 7.141.011V0c.873.182 1.656 1.272 1.657 2.512.001.81-.466 1.546-.919 2.257-.437.687-.86 1.352-.83 2.039h.012c.181-.814.857-1.488 1.523-2.153.903-.9 1.789-1.783 1.408-2.976l.007-.002c.897.557 1.332 2.066 1.454 3.23h.008c.207-.633.795-1.14 1.347-1.615.215-.186.425-.367.604-.548.227-.23.404-.46.48-.703h.008v6.01H0v-3.08c.01-.916.857-1.365 1.67-1.797.822-.435 1.609-.853 1.472-1.714l.006-.012c.61.922.278 1.768-.012 2.507l-.003.007-.009.024a9.85 9.85 0 0 0-.137.364l-.035.105-.028.093-.016.06c-.008.03-.014.06-.02.091-.042.2-.048.387.01.564h.01c.455-1.64 1.612-2.113 2.658-2.54.82-.336 1.572-.643 1.866-1.463zM2.405 8.421c-.813.741-1.647 1.084-2.405.8v5.51h13.899V8.92c-1.177 1.305-2.604.743-2.461-.348l-.008-.002c-2.165 2.348-3.396 1.03-3.055.07l-.005-.007c-1.967 2.21-3.206.915-2.622-.188L5.74 8.44c-2.489 2.766-4.06 1.75-3.327-.016l-.008-.003zm16.114-5.714c1.728.017 1.866.637 1.866 1.495v9.171c0 .931-.864 1.004-1.787 1.004l-.138.09v.402c.098.11.274.11.413.11.089 0 .178-.002.268-.004l.158-.005.19-.008.285-.015.228-.014.208-.012c.309-.018.617-.033.92-.033.342 0 .683.016 1.024.035l.188.01.3.017.28.013c.208.01.416.016.623.016.434 0 .63-.019.63-.128v-.273c0-.164-.06-.201-.276-.201-1.452 0-1.747-.255-1.747-1.296V8.47h8.423v4.267c0 1.276-.039 1.64-1.924 1.64l-.1.091v.401c0 .074.1.11.61.11.237 0 1.453-.09 2.179-.09.34 0 .679.017 1.017.036.448.025.894.054 1.34.054.53 0 .61-.055.61-.127v-.123a1.107 1.107 0 0 0-.033-.301c-.01-.031-.026-.05-.046-.05-1.12 0-1.885-.11-1.885-1.422V3.928c0-1.057.51-1.221 1.53-1.221.17 0 .302 0 .382-.029.058-.02.09-.057.09-.118v-.347l-.078-.108c-.57.054-1.08.09-2.337.09a60.75 60.75 0 0 1-3.102-.09l-.098.09v.22c0 .111.01.18.048.223.037.042.1.06.206.069 1.591.108 1.591.381 1.591 1.64v3.41h-8.423V3.655c0-.894.805-.948 1.608-.948l.152-.002.085-.003.068-.005.036-.004a.884.884 0 0 0 .091-.014c.076-.017.12-.043.12-.082v-.292c0-.2-.099-.2-.51-.2-.23 0-.454.007-.674.016-.204.009-.404.02-.603.031-.392.022-.774.044-1.158.044-.473 0-1.035-.027-1.543-.052l-.317-.015a17.76 17.76 0 0 0-.752-.024c-.157 0-.334.017-.334.144v.31l.098.148zm21.3 10.407l-.177.164-.099.088c-.48.43-1.104.988-1.747.988-.648 0-.904-.93-.904-1.42 0-.477.707-.821.983-.932l1.944-.822v1.934zM37.266 11.6l2.572-.929v-.876c0-1.003-.137-1.768-1.57-1.768-.532 0-1.513.145-1.513.674 0 .128.04.311.099.42l-1.237.656a1.407 1.407 0 0 1-.119-.547c0-.582.629-1.039 1.041-1.259l1.768-.947c.235-.128.335-.182.411-.182 1.63 0 2.475.73 2.475 2.224v3.867c0 .382 0 1.148.63 1.148.371 0 .45-.146.705-.529l.373.128c-.236.876-.727 1.585-1.57 1.585-1.334 0-1.474-1.147-1.454-1.603-.746.71-1.729 1.603-2.887 1.603-1.138 0-1.727-1.366-1.727-2.188 0-.309.373-.892 2.003-1.477zm10.855 2.9c-1.492 0-1.492-.692-1.492-1.422V9.632l.295-.345c.393-.457 1.001-1.077 1.474-1.077.302 0 .5.087.694.17.075.033.15.066.228.093.115.038.24.065.391.065.413 0 .807-.328.807-.711 0-.675-.413-.985-1.12-.985-1.046 0-1.869 1.017-2.479 1.772a15.78 15.78 0 0 1-.25.306l-.04-.036.04-1.878c0-.055-.04-.164-.156-.164a.906.906 0 0 0-.194.064c-.108.042-.252.102-.42.173l-.032.014-.022.01-.009.003-.149.063-1.453.623c-.216.09-.275.144-.275.253 0 .257.51.383.59.401.413.11.59.329.59.675v4.05c0 .983-.158 1.256-1.024 1.313-.392.017-.43.035-.43.217v.225a.127.127 0 0 0 .01.054c.01.022.028.031.066.031.374 0 .758-.022 1.14-.045l.522-.029a15.439 15.439 0 0 1 .617-.016c.188 0 .375.007.563.016l.468.03c.344.022.687.044 1.03.044a.19.19 0 0 0 .099-.02.09.09 0 0 0 .031-.031.236.236 0 0 0 .027-.116v-.087c0-.164-.018-.256-.137-.256zm5.548-5.779c.667-.438 1.296-.583 2.081-.583 1.884 0 2.906 1.659 2.906 3.262 0 1.861-1.041 3.157-3.043 3.157-.944 0-1.944-.31-1.944-1.259V8.721zm-3.083 10.705c1.492-.13 1.59-.146 1.59-1.624V9.688c0-.803-.039-.967-.451-1.132l-.707-.291c-.017 0-.027-.007-.033-.023-.006-.02-.006-.053-.006-.104 0-.137.016-.146.132-.207l.025-.013 2.395-1.076c.063.02.093.067.106.12a.569.569 0 0 1 .01.135c0 .347-.038.712.022 1.058.647-.31 2.277-1.203 2.945-1.203 2.14 0 3.671 1.987 3.671 3.83 0 3.5-3.827 4.594-5.34 4.594-.193 0-.383-.025-.572-.057l-.188-.033a5.572 5.572 0 0 0-.516-.074v2.825c0 1.242.333 1.316 1.747 1.389.052 0 .094.023.118.054.012.016.02.035.02.055v.182a.433.433 0 0 1-.02.132c-.018.052-.045.088-.08.088-.414 0-.825-.023-1.243-.046a23.9 23.9 0 0 0-1.328-.047c-.864 0-1.65.093-2.161.093-.176 0-.196-.073-.196-.257v-.11c0-.054.02-.144.06-.144zM64.862 7.444c-1.177 0-1.984 1.258-2.18 2.278L66 9.631c.254 0 .55-.344.55-.655 0-.894-.727-1.532-1.689-1.532zm3.32 2.699v-.565c0-1.515-1.239-2.736-2.987-2.736-2.572 0-4.142 2.462-4.142 4.614 0 2.024 1.628 3.81 3.633 3.81 1.57 0 2.75-.839 3.535-2.023l-.355-.238c-.982.821-1.493 1.077-2.219 1.077-1.786 0-3.102-1.587-3.102-3.174 0-.255 0-.51.04-.765h5.596zm3.713 2.935c0 .73 0 1.423 1.491 1.423.118 0 .138.092.138.256v.058l-.002.036a.273.273 0 0 1-.019.096c-.02.042-.06.064-.137.064l-.233-.003-.181-.006a26.08 26.08 0 0 1-.616-.036l-.296-.019-.197-.01c-.18-.01-.36-.016-.539-.016-.372 0-.755.023-1.138.045a19.608 19.608 0 0 1-1.168.043.075.075 0 0 1-.019-.006c-.015-.007-.023-.02-.027-.039l-.003-.026c-.002-.02-.002-.043-.002-.072V14.7c0-.182.04-.2.434-.217.864-.057 1.02-.33 1.02-1.313V9.12c0-.346-.176-.565-.59-.675-.077-.018-.587-.144-.587-.4 0-.11.059-.164.274-.254l1.453-.623.422-.178c.216-.09.366-.149.403-.149.118 0 .157.109.157.164l-.039 1.878.04.036c.079-.094.163-.198.25-.307.61-.755 1.433-1.77 2.48-1.77.705 0 1.118.31 1.118.984 0 .383-.393.711-.805.711-.258 0-.437-.077-.62-.157l-.094-.04-.073-.03-.064-.023a1.38 1.38 0 0 0-.465-.078c-.47 0-1.079.62-1.474 1.077l-.293.345v3.446zm13.057 1.884c1.786 0 3.377-.382 4.693-.985l.451-2.406c.058-.257-.235-.274-.393-.274h-.074l-.036.002c-.061.003-.113.012-.126.036-.235.674-.49 1.494-1.1 1.95-.785.582-2.277.968-3.436.968-3.3 0-5.891-2.829-5.891-5.818 0-3.282 2.141-6.147 5.891-6.147 1.729 0 3.456.876 4.025 2.134.142.31.258.537.347.685.085.14.146.21.184.21.08 0 .393 0 .393-.128l-.001-.034-.002-.028a2.015 2.015 0 0 0-.017-.123l-.015-.094-.012-.077-.012-.083-.255-2.114c-1.14-.638-3.397-1.057-4.713-1.057-4.024 0-8.01 2.662-8.01 6.655 0 4.195 4.26 6.728 8.11 6.728zm13.503-3.452c0 1.568-.766 3.154-2.69 3.154-2.021 0-2.945-2.133-2.945-3.737 0-1.75.588-3.483 2.572-3.483 2.395 0 3.063 2.243 3.063 4.066zm-3.14 3.755c-2.377 0-4.262-1.858-4.262-4.083 0-2.443 2.178-4.34 4.79-4.34 2.338 0 4.38 1.897 4.38 4.085 0 2.626-2.336 4.338-4.909 4.338zm9.57-.99c-1.354 0-1.354-.472-1.354-.874V3.463c0-.438.01-.88.019-1.323l.009-.406c.005-.307.01-.612.01-.915l-.001-.053-.001-.036a.539.539 0 0 0-.011-.08c-.015-.069-.05-.124-.125-.124a.296.296 0 0 0-.064.012 1.957 1.957 0 0 0-.207.07l-.023.01-1.434.493-.228.082c-.615.222-.773.279-.773.41 0 .137.244.227.519.327l.051.019c.766.292.766.365.766 1.514v9.846c0 .857-.315.967-1.178.967h-.125c-.074.003-.124.01-.156.034-.04.029-.053.083-.053.184v.165c0 .072.039.127.176.127.196 0 .392-.007.589-.017l.272-.015.199-.013c.354-.022.707-.045 1.061-.045.174 0 .429.016.724.035l.414.025c.295.017.607.03.904.03.039 0 .059-.09.059-.253l-.001-.072-.001-.054a.635.635 0 0 0-.007-.088c-.006-.027-.015-.043-.03-.043zm3.384-.874c0 .402 0 .875 1.355.875.039 0 .039.11.039.257l-.001.068-.004.058c-.009.083-.028.127-.055.127-.441 0-.915-.03-1.316-.055h-.004a13.313 13.313 0 0 0-.722-.035c-.353 0-.706.023-1.059.045-.138.01-.275.018-.413.025a14.44 14.44 0 0 1-.426.018h-.06l-.163.002c-.137 0-.177-.055-.177-.126v-.166c0-.056.004-.098.015-.129a.107.107 0 0 1 .034-.051c.046-.038.132-.038.286-.038.864 0 1.178-.11 1.178-.967V3.463c0-1.149 0-1.222-.766-1.514l-.054-.02c-.273-.1-.516-.19-.516-.326 0-.146.197-.2 1.003-.492l1.432-.493a1.627 1.627 0 0 1 .295-.092c.138 0 .138.183.138.293 0 .875-.039 1.768-.039 2.644v9.938zm6.616 1.251c-1.356 0-1.356-.473-1.356-.875V9.93c0-.439.01-.881.02-1.324.011-.442.021-.884.021-1.32 0-.11 0-.292-.138-.292-.058 0-.256.073-.294.092l-1.434.49-.216.079c-.626.225-.786.283-.786.415 0 .134.236.222.504.322l.065.025c.766.291.766.364.766 1.513v3.755c0 .857-.314.967-1.177.967-.276 0-.334 0-.334.219v.165c0 .071.039.127.176.127.173 0 .346-.006.52-.014l.201-.01.34-.021c.354-.023.707-.045 1.06-.045.174 0 .429.016.724.034.402.026.876.056 1.318.056.027 0 .045-.044.053-.125.004-.036.006-.08.006-.129 0-.076 0-.142-.005-.188-.005-.043-.015-.069-.034-.069zM112.726 1.58c.607 0 1.098.456 1.098 1.02 0 .565-.491 1.02-1.098 1.02-.609 0-1.101-.455-1.101-1.02 0-.564.492-1.02 1.101-1.02zm4.728 6.722c.197.036.374.254.374.6v4.632c0 .857-.314.967-1.178.967-.275 0-.334 0-.334.218v.166c0 .071.04.127.176.127.288 0 .577-.015.865-.033l.197-.012a16.59 16.59 0 0 1 1.059-.045c.175 0 .431.016.727.035.401.025.875.055 1.317.055.037 0 .057-.09.057-.255 0-.052 0-.1-.002-.139-.002-.049-.006-.086-.018-.104-.005-.009-.011-.013-.019-.013-1.355 0-1.355-.473-1.355-.874V8.883c.57-.529 1.59-.982 2.415-.982 1.374 0 1.748.637 1.748 1.766v4.287c0 .546-.903.546-1.217.546-.117 0-.196.056-.196.11 0 .017 0 .048.002.086.001.02.002.044.005.068.011.115.043.247.13.247.353 0 .701-.022 1.049-.045s.697-.045 1.051-.045c.648 0 1.159.09 1.944.09.06 0 .099-.018.099-.056v-.328c0-.09-.039-.127-.08-.127-.646 0-1.296 0-1.296-.784v-4.45c0-1.532-.725-2.424-2.433-2.424-1.206 0-2.212.737-3.106 1.393l-.115.083V7.06c0-.022 0-.052-.002-.082-.006-.067-.022-.135-.076-.135a.909.909 0 0 0-.191.067l-.165.07-.133.057c-.228.098-.515.222-.821.343-.128.051-.26.101-.392.149-.25.09-.501.17-.733.226-.099.018-.119.147-.119.2 0 .076.021.126.051.158.02.022.044.035.068.042l.647.147zm14.886.802h-.492c-.235-.802-.686-1.66-1.727-1.66-.903 0-1.61.401-1.61 1.258 0 .633.822 1.05 1.721 1.504l.031.016.31.158c1.04.547 2.062 1.186 2.062 2.316 0 1.585-1.572 2.57-3.162 2.57-1.277 0-2.513-.528-2.533-.819l-.098-1.66.569-.053c.08.09.099.218.138.344.217.748 1.098 1.587 1.963 1.587 1.002 0 1.631-.565 1.631-1.513 0-.601-.903-1.24-1.394-1.477l-.174-.083c-1.107-.528-2.42-1.154-2.42-2.47 0-1.514 1.492-2.279 2.985-2.279.785 0 1.572.2 2.318.564l-.118 1.697zm5.53-5.668c0 .13-.197.893-.432 1.733l-2.356 8.206c-.234.857-.531 1.003-1.748 1.003a.098.098 0 0 0-.071.034.2.2 0 0 0-.03.043c-.05.09-.075.248-.075.415 0 .073.018.109.098.109.119.008.357-.008.663-.029.399-.026.915-.061 1.437-.061.615 0 1.26.035 1.744.062.177.01.333.018.457.023l.109.004h.086c.139 0 .335 0 .373-.072l.037-.075.029-.06.017-.036.018-.042a.422.422 0 0 0 .036-.151c0-.127-.057-.164-.175-.164h-.276c-.589 0-1.216-.02-1.216-.474 0-.128.137-.565.176-.693l2.866-9.956c.118-.383.352-.438.942-.438 1.65 0 2.75.875 2.75 2.387 0 1.46-1.218 3.611-2.787 3.611-.61 0-1.082-.146-1.336-.328l-.314.42c.372.348 1.177.51 2.021.51 2.416 0 4.243-2.042 4.243-4.193 0-2.262-2.101-3.118-4.301-3.118-1.571 0-2.475.053-4.241.182-.315.019-.373.092-.373.382 0 .165.019.22.078.22l.022-.002.043-.008.052-.01a2.93 2.93 0 0 1 .57-.072c.471 0 .864.147.864.638zm6.365 5.358c.152-.132.324-.304.512-.492.64-.64 1.459-1.459 2.218-1.459.393 0 .687.145.687.565 0 .193-.167.593-.283.872l-.046.11-.024.058-.021.056-1.275 2.989-.237.55c-.225.514-.391.894-.391 1.019 0 .182.118.327.351.327.595 0 2.704-2.422 3.878-3.772l.017-.018c.295-.338.528-.608.663-.75.285-.298.531-.675.776-1.05.125-.192.25-.383.379-.562l.068-.092.049-.065.043-.054c.118-.147.295-.183.471-.183.085 0 .168.03.242.08a.623.623 0 0 1 .229.295c.013.04.021.08.021.117 0 .119-.333.921-.742 1.91l-.004.013c-.658 1.59-1.513 3.656-1.513 4.15 0 .2.177.31.294.31.662 0 1.611-1.266 2.028-1.823l.014-.019c.119 0 .355.182.355.274-.59.984-2.476 3.116-3.711 3.116-.335 0-.611-.327-.611-.691 0-.359.745-2.162 1.277-3.452l.015-.035.186-.453.177-.434c.048-.122.088-.223.113-.295h-.038c-.806.895-5.146 5.36-6.069 5.36-.333 0-.649-.327-.649-.637 0-.78.82-2.57 1.472-3.995.431-.942.789-1.724.789-1.949 0-.181-.179-.291-.276-.291-.256 0-.924.564-1.119.765l-.315-.365zm12.001 5.429c1.768 0 5.125-4.085 5.125-5.69 0-.694-.334-1.003-.923-1.003-1.413 0-5.28 4.175-5.28 5.962 0 .513.608.73 1.078.73zM159.1.53c-.038-.004-.077-.004-.114-.004-.194 0-.823.099-1.489.203l-.737.114-.341.05c-.155.021-.297.04-.419.053l-.038.42c.747.053 1.217.163 1.217.691 0 .749-1.726 6.237-1.826 6.585-.054.194-.183.585-.347 1.07l-.26.766-.016.047-.01.03-.009.025c-.474 1.392-1.027 3.018-1.027 3.276 0 .874 1.021 1.184 1.788 1.184 2.828 0 7.462-3.791 7.462-6.545 0-1.04-.648-1.878-1.788-1.878-1.896 0-3.864 2.363-5.024 3.756l-.122.145-.038-.036 3.28-9.883-.005-.007-.004-.007-.01-.01c-.005-.006-.012-.01-.018-.015a.25.25 0 0 0-.105-.03zm6.781 2.9c.05-.188.098-.391.139-.574a5.11 5.11 0 0 0 .106-.58c0-.583-.647-.747-1.14-.82l.14-.42c.575-.063 1.405-.227 2.039-.352h.004l.013-.003c.281-.056.522-.103.682-.13a1.47 1.47 0 0 1 .188-.025.17.17 0 0 1 .041.005.1.1 0 0 1 .049.025.112.112 0 0 1 .026.08c0 .072-.098.4-.314 1.057l-3.022 9.573-.109.338-.005.013c-.218.674-.418 1.295-.418 1.638 0 .235.197.42.452.42.447 0 1.011-.552 1.466-.996l.007-.007.019-.02c.155-.15.295-.286.413-.382h.077l.295.274v.054c-.667.876-2.335 2.443-3.553 2.443-.453 0-.845-.345-.845-.802 0-.091.118-.51.276-1.076l2.885-9.427a6.77 6.77 0 0 0 .089-.307zm4.96 3.108c-.766.018-2.298 1.186-2.63 1.769l.411.272c.294-.308.865-.764 1.197-.764a.37.37 0 0 1 .205.053c.084.055.128.15.128.274 0 .4-.585 1.757-1.159 3.09-.554 1.287-1.098 2.552-1.098 2.91 0 .583.413.82 1.002.82 1.334 0 2.868-1.694 3.535-2.663 0-.072-.275-.272-.354-.272-.118.105-.27.269-.441.453-.482.52-1.117 1.206-1.581 1.206-.296 0-.491-.164-.491-.364 0-.267.536-1.537 1.085-2.839l.003-.008c.578-1.369 1.17-2.772 1.17-3.08 0-.583-.334-.857-.982-.857zM172 1.578c.51 0 .922.364.922.839 0 .473-.412.857-.922.857-.511 0-.904-.384-.904-.857 0-.475.393-.838.904-.838zm6.463 6.156c0-.71-.981-.892-1.57-.892-1.649 0-2.985 1.35-2.985 2.862 0 .41.565 1.005 1.141 1.612.602.632 1.216 1.279 1.216 1.744 0 .638-.61 1.149-1.277 1.149-.586 0-.849-.237-1.078-.444-.179-.161-.337-.304-.611-.304-.334 0-.668.291-.668.657 0 1.02.845 1.148 1.768 1.148 1.471 0 3.239-1.55 3.239-2.9 0-.574-.739-1.34-1.428-2.055-.601-.624-1.165-1.209-1.165-1.592 0-.527.591-1.166 1.22-1.166.531 0 .763.28.97.529.168.201.319.383.599.383.335 0 .629-.347.629-.73zm2.354 3.187l.039.035.134-.18c1.064-1.43 3.094-4.159 5.089-4.159 1.296 0 1.611.966 1.611 1.987 0 1.879-2.219 6.437-4.616 6.437-.353 0-.843-.218-.843-.602 0-.436.255-.856.726-.856a.708.708 0 0 1 .278.055c.052.02.103.045.155.072a2.963 2.963 0 0 0 .201.098.624.624 0 0 0 .23.048c1.256 0 2.297-4.14 2.297-5.088 0-.527-.138-1.056-.826-1.056-1.432 0-3.24 2.57-4.495 4.484a10.28 10.28 0 0 0-1.05 2.056c-.093.233-.171.432-.266.607-.079.146-.255.182-.413.182-.175 0-.647-.164-.647-.474 0-.247.773-2.528 1.471-4.588.485-1.43.934-2.753 1.063-3.217l.065-.226c.274-.945 1.112-3.83 1.112-4.278 0-.6-.354-.691-1.217-.783l.119-.42c.169-.031.339-.058.51-.084l.176-.026c.463-.07.927-.139 1.374-.272.255-.074.511-.147.766-.147.099 0 .295.019.295.128 0 .201-1.335 4.377-1.63 5.233l-1.708 5.034zm9.471-.195c1.374-.11 3.965-.674 3.965-2.389 0-.546-.295-.983-.943-.983-1.59 0-2.63 2.15-3.022 3.372zm-1.867 1.788c0 1.53.746 2.752 2.571 2.752 1.416 0 2.592-.673 3.379-1.785-.039-.166-.275-.293-.374-.31-.706.672-1.335 1.037-2.335 1.037-1.122 0-1.671-.874-1.671-1.822 0-.3.05-.59.101-.884.02-.118.041-.236.058-.356 1.726-.074 5.476-.674 5.476-2.79 0-1.205-1.119-1.514-2.238-1.514-2.925 0-4.967 3.264-4.967 5.672zm11.596-4.24c0 .474-.156 1.24-.393 2.096h.041l.123-.195c.729-1.15 2.118-3.342 3.154-3.342.512 0 1.082.291 1.082.821 0 .547-.394.875-1.003.875a.75.75 0 0 1-.471-.183 2.554 2.554 0 0 1-.11-.097 1.562 1.562 0 0 0-.07-.062c-.055-.046-.104-.078-.153-.078-.649 0-2.239 3.046-2.672 3.974-.073.157-.177.435-.3.764-.366.98-.898 2.409-1.31 2.409-.255 0-.805-.108-.805-.364 0-.06.087-.313.226-.696l.157-.427c.176-.48.395-1.076.618-1.721.375-1.076.747-2.152.747-2.753 0-.42-.078-1.003-.786-1.003-.393 0-.883.692-1.138 1.076a1.692 1.692 0 0 1-.412-.255c.373-.75 1.355-2.28 2.297-2.28.844 0 1.178.857 1.178 1.44zm8.922-.549c0-.71-.982-.892-1.571-.892-1.648 0-2.984 1.35-2.984 2.862 0 .41.565 1.005 1.141 1.612.601.633 1.216 1.279 1.216 1.744 0 .639-.61 1.149-1.277 1.149-.586 0-.848-.237-1.078-.444-.178-.161-.337-.304-.611-.304-.334 0-.668.291-.668.657 0 1.02.845 1.148 1.768 1.148 1.47 0 3.24-1.55 3.24-2.9 0-.574-.739-1.34-1.428-2.055-.602-.624-1.165-1.209-1.165-1.591 0-.528.59-1.167 1.219-1.167.531 0 .762.279.97.528.167.202.319.384.6.384.335 0 .628-.347.628-.73z"})})]})}function zy(){return e(Ty,{})}const My=on.header`
304
290
  display: flex;
305
291
  flex-flow: row;
306
292
  align-items: center;
@@ -313,17 +299,17 @@ function rc(e,t){const n=tc(e,t);return"production"!==process.env.NODE_ENV?(...t
313
299
  @media print {
314
300
  display: none;
315
301
  }
316
- `,_y=on.a`
302
+ `,Ay=on.a`
317
303
  flex-shrink: 0;
318
304
  display: inline-flex;
319
- `,Ly=on.div`
305
+ `,_y=on.div`
320
306
  margin-left: auto;
321
307
  display: flex;
322
308
  flex-flow: row;
323
309
  align-items: center;
324
310
  height: 100%;
325
311
  gap: var(--spacing--small);
326
- `,Vy=tn`
312
+ `,Ly=tn`
327
313
  && {
328
314
  color: white;
329
315
  opacity: 0.9;
@@ -345,19 +331,19 @@ function rc(e,t){const n=tc(e,t);return"production"!==process.env.NODE_ENV?(...t
345
331
  text-decoration: none;
346
332
  }
347
333
  }
348
- `,Fy=on(Ty)`
349
- ${Vy}
334
+ `,Vy=on(Dy)`
335
+ ${Ly}
350
336
  gap: var(--spacing--small);
351
- `,jy=on(iy)`
352
- ${Vy}
337
+ `,Fy=on(iy)`
338
+ ${Ly}
353
339
 
354
340
  svg {
355
341
  width: 1rem;
356
342
  }
357
- `,By=on.div``,Hy=on.div`
343
+ `,jy=on.div``,By=on.div`
358
344
  display: flex;
359
345
  align-items: center;
360
- `;function Wy({currentApp:n,apps:r}){const o=e("svg",{viewBox:"0 0 32 32",children:t("g",{children:[e("path",{d:"M10.246,4.228c0-0.547-0.443-0.991-0.99-0.991H3.914c-0.548,0-0.991,0.443-0.991,0.991V9.57 c0,0.546,0.443,0.99,0.991,0.99h5.342c0.547,0,0.99-0.444,0.99-0.99V4.228z",fill:"currentColor"}),e("path",{d:"M19.453,4.228c0-0.547-0.443-0.991-0.991-0.991h-5.343c-0.546,0-0.99,0.443-0.99,0.991V9.57 c0,0.546,0.444,0.99,0.99,0.99h5.343c0.548,0,0.991-0.444,0.991-0.99V4.228z",fill:"currentColor"}),e("path",{d:"M28.868,4.228c0-0.547-0.443-0.991-0.99-0.991h-5.342c-0.548,0-0.991,0.443-0.991,0.991V9.57 c0,0.546,0.443,0.99,0.991,0.99h5.342c0.547,0,0.99-0.444,0.99-0.99V4.228z",fill:"currentColor"}),e("path",{d:"M10.246,13.224c0-0.547-0.443-0.99-0.99-0.99H3.914c-0.548,0-0.991,0.443-0.991,0.99v5.342 c0,0.549,0.443,0.99,0.991,0.99h5.342c0.547,0,0.99-0.441,0.99-0.99V13.224z",fill:"currentColor"}),e("path",{d:"M19.453,13.224c0-0.547-0.443-0.99-0.991-0.99h-5.343c-0.546,0-0.99,0.443-0.99,0.99v5.342 c0,0.549,0.444,0.99,0.99,0.99h5.343c0.548,0,0.991-0.441,0.991-0.99V13.224z",fill:"currentColor"}),e("path",{d:"M28.868,13.224c0-0.547-0.443-0.99-0.99-0.99h-5.342c-0.548,0-0.991,0.443-0.991,0.99v5.342 c0,0.549,0.443,0.99,0.991,0.99h5.342c0.547,0,0.99-0.441,0.99-0.99V13.224z",fill:"currentColor"}),e("path",{d:"M10.246,22.43c0-0.545-0.443-0.99-0.99-0.99H3.914c-0.548,0-0.991,0.445-0.991,0.99v5.344 c0,0.547,0.443,0.99,0.991,0.99h5.342c0.547,0,0.99-0.443,0.99-0.99V22.43z",fill:"currentColor"}),e("path",{d:"M19.453,22.43c0-0.545-0.443-0.99-0.991-0.99h-5.343c-0.546,0-0.99,0.445-0.99,0.99v5.344 c0,0.547,0.444,0.99,0.99,0.99h5.343c0.548,0,0.991-0.443,0.991-0.99V22.43z",fill:"currentColor"}),e("path",{d:"M28.868,22.43c0-0.545-0.443-0.99-0.99-0.99h-5.342c-0.548,0-0.991,0.445-0.991,0.99v5.344 c0,0.547,0.443,0.99,0.991,0.99h5.342c0.547,0,0.99-0.443,0.99-0.99V22.43z",fill:"currentColor"})]})});return t(vf,{children:[e(jy,{size:"sm",startDecorator:o,children:n&&e(Hy,{children:n})}),r]})}function Gy({apps:n,currentApp:r,leftSide:o,rightSide:a,myAccountMenu:i,workspaces:l,currentWorkspace:s,helpButton:c}){return t(Ay,{children:[e(_y,{href:"/",children:e(My,{})}),e(Wy,{apps:n,currentApp:r}),e(By,{children:o}),t(Ly,{children:[a,Array.isArray(l)&&l.length>0?e("div",{style:l.length<=1?{pointerEvents:"none"}:void 0,children:t(vf,{children:[e(jy,{size:"sm",children:s}),t(vy,{placement:"bottom-start",children:[e(gy,{sticky:!0,children:"Workspaces"}),l.map((t=>e(hy,{children:e("a",{href:t.home_url,children:t.name})},t.name)))]})]})}):null,c?t(Fy,{type:"link",as:c.as,href:c.href,children:[e(Ri,{icon:my,size:"small"})," ",c.text||"Help"]}):null,i?t(vf,{children:[e(jy,{size:"sm",startDecorator:e(Ri,{icon:fy,size:"small"}),children:"My Account"}),i]}):null]})]})}const qy=on.div`
346
+ `;function Hy({currentApp:n,apps:r}){const o=e("svg",{viewBox:"0 0 32 32",children:t("g",{children:[e("path",{d:"M10.246,4.228c0-0.547-0.443-0.991-0.99-0.991H3.914c-0.548,0-0.991,0.443-0.991,0.991V9.57 c0,0.546,0.443,0.99,0.991,0.99h5.342c0.547,0,0.99-0.444,0.99-0.99V4.228z",fill:"currentColor"}),e("path",{d:"M19.453,4.228c0-0.547-0.443-0.991-0.991-0.991h-5.343c-0.546,0-0.99,0.443-0.99,0.991V9.57 c0,0.546,0.444,0.99,0.99,0.99h5.343c0.548,0,0.991-0.444,0.991-0.99V4.228z",fill:"currentColor"}),e("path",{d:"M28.868,4.228c0-0.547-0.443-0.991-0.99-0.991h-5.342c-0.548,0-0.991,0.443-0.991,0.991V9.57 c0,0.546,0.443,0.99,0.991,0.99h5.342c0.547,0,0.99-0.444,0.99-0.99V4.228z",fill:"currentColor"}),e("path",{d:"M10.246,13.224c0-0.547-0.443-0.99-0.99-0.99H3.914c-0.548,0-0.991,0.443-0.991,0.99v5.342 c0,0.549,0.443,0.99,0.991,0.99h5.342c0.547,0,0.99-0.441,0.99-0.99V13.224z",fill:"currentColor"}),e("path",{d:"M19.453,13.224c0-0.547-0.443-0.99-0.991-0.99h-5.343c-0.546,0-0.99,0.443-0.99,0.99v5.342 c0,0.549,0.444,0.99,0.99,0.99h5.343c0.548,0,0.991-0.441,0.991-0.99V13.224z",fill:"currentColor"}),e("path",{d:"M28.868,13.224c0-0.547-0.443-0.99-0.99-0.99h-5.342c-0.548,0-0.991,0.443-0.991,0.99v5.342 c0,0.549,0.443,0.99,0.991,0.99h5.342c0.547,0,0.99-0.441,0.99-0.99V13.224z",fill:"currentColor"}),e("path",{d:"M10.246,22.43c0-0.545-0.443-0.99-0.99-0.99H3.914c-0.548,0-0.991,0.445-0.991,0.99v5.344 c0,0.547,0.443,0.99,0.991,0.99h5.342c0.547,0,0.99-0.443,0.99-0.99V22.43z",fill:"currentColor"}),e("path",{d:"M19.453,22.43c0-0.545-0.443-0.99-0.991-0.99h-5.343c-0.546,0-0.99,0.445-0.99,0.99v5.344 c0,0.547,0.444,0.99,0.99,0.99h5.343c0.548,0,0.991-0.443,0.991-0.99V22.43z",fill:"currentColor"}),e("path",{d:"M28.868,22.43c0-0.545-0.443-0.99-0.99-0.99h-5.342c-0.548,0-0.991,0.445-0.991,0.99v5.344 c0,0.547,0.443,0.99,0.991,0.99h5.342c0.547,0,0.99-0.443,0.99-0.99V22.43z",fill:"currentColor"})]})});return t(vf,{children:[e(Fy,{size:"sm",startDecorator:o,children:n&&e(By,{children:n})}),r]})}function Wy({apps:n,currentApp:r,leftSide:o,rightSide:a,myAccountMenu:i,workspaces:l,workspacesMenu:s,currentWorkspace:c,helpButton:u}){return t(My,{children:[e(Ay,{href:"/",children:e(zy,{})}),e(Hy,{apps:n,currentApp:r}),e(jy,{children:o}),t(_y,{children:[a,Array.isArray(l)&&l.length>0?e("div",{style:l.length<=1?{pointerEvents:"none"}:void 0,children:t(vf,{children:[e(Fy,{size:"sm",children:c}),t(hy,{placement:"bottom-start",children:[e(gy,{sticky:!0,children:"Workspaces"}),s]})]})}):null,u?t(Vy,{type:"link",as:u.as,href:u.href,children:[e(Ri,{icon:my,size:"small"})," ",u.text||"Help"]}):null,i?t(vf,{children:[e(Fy,{size:"sm",startDecorator:e(Ri,{icon:fy,size:"small"}),children:"My Account"}),i]}):null]})]})}const Gy=on.div`
361
347
  .MuiAutocomplete-root {
362
348
  background-color: #f5f5f5;
363
349
  border-radius: 8px;
@@ -369,7 +355,7 @@ function rc(e,t){const n=tc(e,t);return"production"!==process.env.NODE_ENV?(...t
369
355
  .field-has-error & {
370
356
  border: 1px solid var(--color--red);
371
357
  }
372
- `;function Uy({id:n,options:r,onChange:a,name:i,...l}){const[s,c]=o.useState(l.defaultValue),[u,d]=o.useState(l.defaultValue?.value);return t(qy,{children:[e(hb,{...l,id:n,options:r,onChange:(e,t,n)=>{c(t),d(t?t?.value:""),a&&a(e,t,n)},getOptionLabel:e=>e.label,isOptionEqualToValue:(e,t)=>e.value===t.value,value:s,renderOption:l.renderOption,name:""}),e(Rv,{name:i,value:u,type:"hidden",sx:{display:"none"}})]})}function Yy(t){return e(ch,{...t})}const Ky=on.div`
358
+ `;function qy({id:n,options:r,onChange:a,name:i,...l}){const[s,c]=o.useState(l.defaultValue),[u,d]=o.useState(l.defaultValue?.value);return t(Gy,{children:[e(hb,{...l,id:n,options:r,onChange:(e,t,n)=>{c(t),d(t?t?.value:""),a&&a(e,t,n)},getOptionLabel:e=>e.label,isOptionEqualToValue:(e,t)=>e.value===t.value,value:s,renderOption:l.renderOption,name:""}),e(Rv,{name:i,value:u,type:"hidden",sx:{display:"none"}})]})}function Uy(t){return e(ch,{...t})}const Yy=on.div`
373
359
  .MuiAutocomplete-root {
374
360
  background-color: #f5f5f5;
375
361
  border-radius: 8px;
@@ -381,7 +367,7 @@ function rc(e,t){const n=tc(e,t);return"production"!==process.env.NODE_ENV?(...t
381
367
  .field-has-error & .MuiAutocomplete-root {
382
368
  border: 1px solid var(--color--red);
383
369
  }
384
- `,Jy=on.button`
370
+ `,Ky=on.button`
385
371
  float: right;
386
372
  border: none;
387
373
  background: none;
@@ -392,7 +378,7 @@ function rc(e,t){const n=tc(e,t);return"production"!==process.env.NODE_ENV?(...t
392
378
  &:hover {
393
379
  color: var(--color--grey);
394
380
  }
395
- `;function Xy({defaultValue:n,id:r,name:a,inline:i,onChange:s,SelectedOption:c,...u}){const[d,p]=o.useState((()=>(n||[]).map((e=>{const t=u.options.find((t=>String(t.value)===String(e)));return t?{label:t.label,value:t.value}:null})).filter((e=>null!==e))));return t(Ky,{children:[e(hb,{...u,multiple:!0,value:d,onChange:(e,t,n)=>{p(t),s&&s(e,t,n)},renderTags:(t,n)=>i?t.map(((t,r)=>l(uv,{component:"div",...n({index:r}),key:t.label,endDecorator:e(Ri,{size:"small",icon:hn})},t.label))):null,isOptionEqualToValue:(e,t)=>e.value===t.value,name:""}),Array.isArray(d)&&d.map((t=>e(Rv,{name:a,value:t.value,type:"hidden",sx:{display:"none"}},t.value))),!i&&e(Yy,{children:Array.isArray(d)&&d.length>0?d.map((n=>t(Zg,{children:[c?e(c,{option:n}):n.label,e(Jy,{type:"button",onClick:()=>{p(d.filter((e=>e.value!==n.value)))},children:e(Ri,{icon:gn})})]},n.value))):null})]})}const Qy=tn`
381
+ `;function Jy({defaultValue:n,id:r,name:a,inline:i,onChange:s,SelectedOption:c,...u}){const[d,p]=o.useState((()=>(n||[]).map((e=>{const t=u.options.find((t=>String(t.value)===String(e)));return t?{label:t.label,value:t.value}:null})).filter((e=>null!==e))));return t(Yy,{children:[e(hb,{...u,multiple:!0,value:d,onChange:(e,t,n)=>{p(t),s&&s(e,t,n)},renderTags:(t,n)=>i?t.map(((t,r)=>l(uv,{component:"div",...n({index:r}),key:t.label,endDecorator:e(Ri,{size:"small",icon:hn})},t.label))):null,isOptionEqualToValue:(e,t)=>e.value===t.value,name:""}),Array.isArray(d)&&d.map((t=>e(Rv,{name:a,value:t.value,type:"hidden",sx:{display:"none"}},t.value))),!i&&e(Uy,{children:Array.isArray(d)&&d.length>0?d.map((n=>t(Zg,{children:[c?e(c,{option:n}):n.label,e(Ky,{type:"button",onClick:()=>{p(d.filter((e=>e.value!==n.value)))},children:e(Ri,{icon:gn})})]},n.value))):null})]})}const Xy=tn`
396
382
  position: relative;
397
383
  display: inline-flex;
398
384
  flex-flow: row nowrap;
@@ -402,7 +388,7 @@ function rc(e,t){const n=tc(e,t);return"production"!==process.env.NODE_ENV?(...t
402
388
  border-radius: var(--border-radius--medium);
403
389
  text-decoration: none;
404
390
  white-space: nowrap;
405
- `,Zy={medium:tn`
391
+ `,Qy={medium:tn`
406
392
  padding: var(--spacing--small) var(--spacing--medium);
407
393
  font-size: var(--font-size--medium);
408
394
  font-weight: 600;
@@ -418,7 +404,7 @@ function rc(e,t){const n=tc(e,t);return"production"!==process.env.NODE_ENV?(...t
418
404
  padding: var(--spacing--xxxsmall) var(--spacing--xxsmall);
419
405
  font-size: var(--font-size--xxsmall);
420
406
  font-weight: 500;
421
- `},ew={default:tn`
407
+ `},Zy={default:tn`
422
408
  background-color: transaprent;
423
409
  color: var(--color--body);
424
410
  border: 1px solid var(--color--grey-line);
@@ -434,12 +420,12 @@ function rc(e,t){const n=tc(e,t);return"production"!==process.env.NODE_ENV?(...t
434
420
  background-color: var(--color--grey-line);
435
421
  color: var(--color--grey-dark);
436
422
  border: 1px solid var(--color--grey-line);
437
- `},tw=on.div`
438
- ${Qy}
423
+ `},ew=on.div`
424
+ ${Xy}
439
425
 
440
- ${({size:e})=>Zy[e||"medium"]}
441
- ${({kind:e})=>ew[e||"default"]}
442
- `;function nw({children:t,...n}){return e(tw,{...n,children:t})}const rw=on.div`
426
+ ${({size:e})=>Qy[e||"medium"]}
427
+ ${({kind:e})=>Zy[e||"default"]}
428
+ `;function tw({children:t,...n}){return e(ew,{...n,children:t})}const nw=on.div`
443
429
  display: flex;
444
430
  flex-flow: wrap;
445
431
  justify-content: space-between;
@@ -448,14 +434,14 @@ function rc(e,t){const n=tc(e,t);return"production"!==process.env.NODE_ENV?(...t
448
434
  @media print {
449
435
  display: none;
450
436
  }
451
- `,ow=on.ul`
437
+ `,rw=on.ul`
452
438
  display: flex;
453
439
  flex-flow: row;
454
440
  width: 100%;
455
441
  flex-wrap: wrap;
456
442
  padding: 0;
457
443
  margin: 0;
458
- `,aw=on.li`
444
+ `,ow=on.li`
459
445
  display: inline-block;
460
446
  color: var(--color--grey);
461
447
  overflow: hidden;
@@ -474,14 +460,14 @@ function rc(e,t){const n=tc(e,t);return"production"!==process.env.NODE_ENV?(...t
474
460
  font-weight: 600;
475
461
  }
476
462
  }
477
- `;function iw({children:t}){return e(rw,{children:e(ow,{children:t})})}function lw(t){return e(uv,{...t})}iw.Item=aw;const sw=on.hr`
463
+ `;function aw({children:t}){return e(nw,{children:e(rw,{children:t})})}function iw(t){return e(uv,{...t})}aw.Item=ow;const lw=on.hr`
478
464
  border: 0;
479
465
  border-bottom: 1px solid var(--color--grey-line);
480
- `,cw=on(Wb)`
466
+ `,sw=on(Wb)`
481
467
  &.MuiDrawer-root {
482
468
  --Drawer-horizontalSize: clamp(305px, 38%, 100%);
483
469
  }
484
- `,uw=on.div`
470
+ `,cw=on.div`
485
471
  min-height: 100%;
486
472
  padding-left: 60px;
487
473
  padding-right: 60px;
@@ -497,7 +483,7 @@ function rc(e,t){const n=tc(e,t);return"production"!==process.env.NODE_ENV?(...t
497
483
  font-weight: 600;
498
484
  color: var(--color--grey-dark);
499
485
  }
500
- `,dw=an`
486
+ `,uw=an`
501
487
  from {
502
488
  transform: translate(-100%, 0);
503
489
  }
@@ -505,7 +491,7 @@ function rc(e,t){const n=tc(e,t);return"production"!==process.env.NODE_ENV?(...t
505
491
  to {
506
492
  transform: none;
507
493
  }
508
- `,pw=an`
494
+ `,dw=an`
509
495
  from {
510
496
  transform: none;
511
497
  }
@@ -513,7 +499,7 @@ function rc(e,t){const n=tc(e,t);return"production"!==process.env.NODE_ENV?(...t
513
499
  to {
514
500
  transform: translate(-100%, 0);
515
501
  }
516
- `,fw=an`
502
+ `,pw=an`
517
503
  from {
518
504
  transform: translate(100%, 0);
519
505
  }
@@ -521,7 +507,7 @@ function rc(e,t){const n=tc(e,t);return"production"!==process.env.NODE_ENV?(...t
521
507
  to {
522
508
  transform: none;
523
509
  }
524
- `,mw=an`
510
+ `,fw=an`
525
511
  from {
526
512
  transform: none;
527
513
  }
@@ -529,7 +515,7 @@ function rc(e,t){const n=tc(e,t);return"production"!==process.env.NODE_ENV?(...t
529
515
  to {
530
516
  transform: translate(100%, 0);
531
517
  }
532
- `,gw=an`
518
+ `,mw=an`
533
519
  from {
534
520
  transform: translate(0, 100%);
535
521
  }
@@ -537,7 +523,7 @@ function rc(e,t){const n=tc(e,t);return"production"!==process.env.NODE_ENV?(...t
537
523
  to {
538
524
  transform: none;
539
525
  }
540
- `,hw=an`
526
+ `,gw=an`
541
527
  from {
542
528
  transform: none;
543
529
  }
@@ -545,7 +531,7 @@ function rc(e,t){const n=tc(e,t);return"production"!==process.env.NODE_ENV?(...t
545
531
  to {
546
532
  transform: translate(0, 100%);
547
533
  }
548
- `,vw=on.div`
534
+ `,hw=on.div`
549
535
  position: fixed;
550
536
  top: 0;
551
537
  right: 0;
@@ -555,32 +541,32 @@ function rc(e,t){const n=tc(e,t);return"production"!==process.env.NODE_ENV?(...t
555
541
  overflow: hidden;
556
542
 
557
543
  &.left {
558
- animation: ${dw} 0.2s ease;
544
+ animation: ${uw} 0.2s ease;
559
545
  }
560
546
 
561
547
  &.left.closing {
562
- animation: ${pw} 0.2s ease;
548
+ animation: ${dw} 0.2s ease;
563
549
  transform: translate(-100%, 0);
564
550
  }
565
551
 
566
552
  &.right {
567
- animation: ${fw} 0.2s ease;
553
+ animation: ${pw} 0.2s ease;
568
554
  }
569
555
 
570
556
  &.right.closing {
571
- animation: ${mw} 0.2s ease;
557
+ animation: ${fw} 0.2s ease;
572
558
  transform: translate(100%, 0);
573
559
  }
574
560
 
575
561
  &.center {
576
- animation: ${gw} 0.2s ease;
562
+ animation: ${mw} 0.2s ease;
577
563
  }
578
564
 
579
565
  &.center.closing {
580
- animation: ${hw} 0.2s ease;
566
+ animation: ${gw} 0.2s ease;
581
567
  transform: translate(0, 100%);
582
568
  }
583
- `,bw=on.div`
569
+ `,vw=on.div`
584
570
  z-index: 1010;
585
571
  height: 100vh;
586
572
  background-color: #fff;
@@ -589,33 +575,33 @@ function rc(e,t){const n=tc(e,t);return"production"!==process.env.NODE_ENV?(...t
589
575
  overflow: auto;
590
576
  width: 100%;
591
577
 
592
- ${vw}.left & {
578
+ ${hw}.left & {
593
579
  margin-right: auto;
594
580
  }
595
581
 
596
- ${vw}.right & {
582
+ ${hw}.right & {
597
583
  margin-left: auto;
598
584
  }
599
585
 
600
- ${vw}.center & {
586
+ ${hw}.center & {
601
587
  margin: auto;
602
588
  height: 95vh;
603
589
  }
604
- `,yw=on.div`
590
+ `,bw=on.div`
605
591
  display: flex;
606
592
 
607
- ${vw}.left & {
593
+ ${hw}.left & {
608
594
  flex-flow: row-reverse nowrap;
609
595
  }
610
596
 
611
- ${vw}.right & {
597
+ ${hw}.right & {
612
598
  flex-flow: row nowrap;
613
599
  }
614
600
 
615
- ${vw}.center & {
601
+ ${hw}.center & {
616
602
  flex-flow: row nowrap;
617
603
  }
618
- `,ww=on.div`
604
+ `,yw=on.div`
619
605
  display: flex;
620
606
  flex-flow: row nowrap;
621
607
  align-items: center;
@@ -638,7 +624,7 @@ function rc(e,t){const n=tc(e,t);return"production"!==process.env.NODE_ENV?(...t
638
624
  strong {
639
625
  font-weight: 700;
640
626
  }
641
- `,xw=an`
627
+ `,ww=an`
642
628
  from {
643
629
  margin-top: -50px;
644
630
  }
@@ -646,16 +632,16 @@ function rc(e,t){const n=tc(e,t);return"production"!==process.env.NODE_ENV?(...t
646
632
  to {
647
633
  margin-top: 0
648
634
  }
649
- `,Sw=on(ww)`
635
+ `,xw=on(yw)`
650
636
  background-color: #ffdadd;
651
- animation: ${xw} 0.5s ease;
637
+ animation: ${ww} 0.5s ease;
652
638
 
653
639
  svg {
654
640
  color: var(--color--red);
655
641
  }
656
- `,Cw=on.div`
642
+ `,Sw=on.div`
657
643
  position: relative;
658
- `;let kw=1;const Ow=d((({children:n,side:r,size:i="md",open:l=!1,closeBlocked:s,onClose:c=(()=>{}),onCloseCompleted:d=(()=>{}),closeRequested:p=!1,...f},m)=>{const g=a(null);g.current||(g.current=`overlay-${kw}`,kw+=1);const h=a(null),[v,b]=o.useState(!1);o.useEffect((()=>{if(v){const e=setTimeout(d,200);return()=>{clearTimeout(e)}}return()=>{}})),u((()=>{p&&b(!0)}),[p]),g.current||(g.current=`modal-${kw}`,kw+=1),u((()=>{document.body.style.overflow=l?"hidden":"auto"}),[l]),u((()=>{const e=e=>{"Escape"===e.key&&(e.preventDefault(),c())};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[c]);return e(cw,{open:l&&!v,anchor:r,className:`${r} ${l?"open":"closing"}`,size:i,...f,children:e(yw,{children:t(bw,{ref:h,children:[s&&t(Sw,{role:"alert","aria-live":"assertive",children:[e(Ri,{icon:yn}),t("p",{children:[e("strong",{children:"You have unsaved changes."})," Please save or cancel before closing."]})]}),e(Cw,{ref:m,children:e(uw,{children:n})})]})})})}));function Iw(t){return e(vf,{...t})}function Ew(t){return e(Gb,{...t})}const Pw=on(Rv)`
644
+ `;let Cw=1;const kw=d((({children:n,side:r,size:i="md",open:l=!1,closeBlocked:s,onClose:c=(()=>{}),onCloseCompleted:d=(()=>{}),closeRequested:p=!1,...f},m)=>{const g=a(null);g.current||(g.current=`overlay-${Cw}`,Cw+=1);const h=a(null),[v,b]=o.useState(!1);o.useEffect((()=>{if(v){const e=setTimeout(d,200);return()=>{clearTimeout(e)}}return()=>{}})),u((()=>{p&&b(!0)}),[p]),g.current||(g.current=`modal-${Cw}`,Cw+=1),u((()=>{document.body.style.overflow=l?"hidden":"auto"}),[l]),u((()=>{const e=e=>{"Escape"===e.key&&(e.preventDefault(),c())};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[c]);return e(sw,{open:l&&!v,anchor:r,className:`${r} ${l?"open":"closing"}`,size:i,...f,children:e(bw,{children:t(vw,{ref:h,children:[s&&t(xw,{role:"alert","aria-live":"assertive",children:[e(Ri,{icon:yn}),t("p",{children:[e("strong",{children:"You have unsaved changes."})," Please save or cancel before closing."]})]}),e(Sw,{ref:m,children:e(cw,{children:n})})]})})})}));function Ow(t){return e(vf,{...t})}function Iw(t){return e(Gb,{...t})}const Ew=on(Rv)`
659
645
  && .MuiInput-input {
660
646
  background-color: var(--color--grey-hover);
661
647
  padding: var(--spacing--small) var(--spacing--small);
@@ -693,17 +679,57 @@ function rc(e,t){const n=tc(e,t);return"production"!==process.env.NODE_ENV?(...t
693
679
  color: var(--color--grey);
694
680
  }
695
681
  }
696
- `;function $w(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}$w('/* http://meyerweb.com/eric/tools/css/reset/\n v2.0 | 20110126\n License: none (public domain)\n*/\n\nhtml,\nbody,\ndiv,\nspan,\napplet,\nobject,\niframe,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\np,\nblockquote,\npre,\na,\nabbr,\nacronym,\naddress,\nbig,\ncite,\ncode,\ndel,\ndfn,\nem,\nimg,\nins,\nkbd,\nq,\ns,\nsamp,\nsmall,\nstrike,\nstrong,\nsub,\nsup,\ntt,\nvar,\nb,\nu,\ni,\ncenter,\ndl,\ndt,\ndd,\nol,\nul,\nli,\nfieldset,\nform,\nlabel,\nlegend,\ntable,\ncaption,\ntbody,\ntfoot,\nthead,\ntr,\nth,\ntd,\narticle,\naside,\ncanvas,\ndetails,\nembed,\nfigure,\nfigcaption,\nfooter,\nheader,\nhgroup,\nmenu,\nnav,\noutput,\nruby,\nsection,\nsummary,\ntime,\nmark,\naudio,\nvideo {\n margin: 0;\n padding: 0;\n border: 0;\n font-size: 100%;\n font: inherit;\n vertical-align: baseline;\n}\n/* HTML5 display-role reset for older browsers */\narticle,\naside,\ndetails,\nfigcaption,\nfigure,\nfooter,\nheader,\nhgroup,\nmenu,\nnav,\nsection {\n display: block;\n}\nbody {\n line-height: 1;\n}\nol,\nul {\n list-style: none;\n}\nblockquote,\nq {\n quotes: none;\n}\nblockquote:before,\nblockquote:after,\nq:before,\nq:after {\n content: "";\n content: none;\n}\ntable {\n border-collapse: collapse;\n border-spacing: 0;\n}\n');const Nw=_p({colorSchemes:{light:{palette:{primary:{50:"#dbd9f8",100:"#b7b2f1",200:"#a69fee",300:"#8279e7",400:"#7065e4",500:"#4c3fdd",600:"#3d32b1",700:"#2e2685",800:"#1e1958",900:"#0f0d2c"},neutral:{50:"#fafbfd",100:"#f4f7fb",200:"#dbdde1",300:"#aaacaf",400:"#929496",500:"#7a7b7d",600:"#616264",700:"#494a4b",800:"#313132",900:"#181919"}}}},components:{}});$w(':root {\n --color--black: #000000;\n --color--grey-dark: #262626;\n --color--grey: #5c5c5c;\n --color--grey-light: #a8aab7;\n --color--grey-lighter: #f5f5f5;\n --color--grey-lightest: #f3f6fa;\n --color--grey-borders: #d7d7d7;\n --color--grey-line: #e0e0e0;\n --color--grey-hover: #f9f9f9;\n --color--white: #fff;\n\n --color--teal: #007d7e;\n --color--teal-light: #00b0b1;\n --color--teal-tint: #f2fcfc;\n\n --color--red: #d9303e;\n --color--red-dark: #c02330;\n --color--red-light: #f7dbdd;\n --color--red-tint: #ffdddf;\n\n --color--amber: #e9b04d;\n --color--amber-tint: #faecd5;\n --color--orange: #f5a623;\n --color--orange-dark: #eb6f00;\n --color--orange-light: #f2c06f;\n\n --color--green: #29c889;\n --color--green-dark: #1c874c;\n --color--green-light: #afe7d0;\n --color--indigo: #2e1f5e;\n --color--lemon: #ffe60b;\n --color--focus-outline: #fcc726;\n\n --color--dark-blue: #192a3c;\n\n --color--primary: #4c3fdd;\n --color--primary-light: #4c3fdddb;\n --color--primary-verylight: #a8a0f7;\n --color--body: var(--color--dark-blue);\n\n --color--danger: var(--color--red);\n --color--danger-light: var(--color--red-light);\n --color--warning: var(--color--orange);\n --color--warning-light: var(--color--orange-light);\n --color--success: var(--color--green);\n\n --color--dark-blue: #192a3c;\n\n --color--debug: #663399;\n --color--debug-light: #663399db;\n --color--debug-very-light: #6633991a;\n\n /* Fonts */\n --font-family--sans-serif: system-ui, -apple-system, BlinkMacSystemFont,\n "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Oxygen, Cantarell, sans-serif;\n\n --font-family--monospace: source-code-pro, Menlo, Monaco, Consolas,\n "Courier New", monospace;\n\n /* Spacing */\n --spacing--xxxsmall: 0.1rem;\n --spacing--xxsmall: 0.2rem;\n --spacing--xsmall: 0.3rem;\n --spacing--small: 0.5rem;\n --spacing--medium: 1rem;\n --spacing--large: 2rem;\n --spacing--xlarge: 4rem;\n\n /* Font sizes */\n --font-size--xxsmall: 0.6rem;\n --font-size--xsmall: 0.75rem;\n --font-size--small: 0.875rem;\n --font-size--medium: 1rem;\n --font-size--large: 1.25rem;\n --font-size--xlarge: 1.5rem;\n --font-size--xxlarge: 2rem;\n --font-size--xxxlarge: 3rem;\n\n /* Line heights */\n --line-height--small: 1.2rem;\n --line-height--medium: 1.4rem;\n --line-height--large: 1.4rem;\n\n /* Font weights */\n --font-weight--thin: 200;\n --font-weight--light: 300;\n --font-weight--regular: 400;\n --font-weight--medium: 500;\n --font-weight--bold: 700;\n\n /* Border radius */\n --border-radius--small: 0.25rem;\n --border-radius--medium: 0.5rem;\n --border-radius--large: 1rem;\n --border-radius--xlarge: 2rem;\n\n /* Box shadows */\n --box-shadow--medium: 0px 2px 6px 0px rgba(0, 0, 0, 0.1);\n\n /* Breakpoints */\n --breakpoint--small: 480px;\n --breakpoint--medium: 768px;\n --breakpoint--large: 1024px;\n --breakpoint--xlarge: 1200px;\n --breakpoint--xxlarge: 1440px;\n --breakpoint--xxxlarge: 1920px;\n}\n\n*,\n*::before,\n*::after {\n box-sizing: border-box;\n}\n\n* {\n margin: 0;\n}\n\na {\n color: var(--color--primary);\n text-decoration: none;\n\n &:hover,\n &:focus {\n text-decoration: underline;\n }\n}\n\nbody,\nbutton {\n font-family: var(--font-family--sans-serif);\n font-weight: var(--font-weight--regular);\n font-style: normal;\n}\n\nbody {\n background-color: var(--color--grey-lightest);\n line-height: 1.5;\n -webkit-font-smoothing: antialiased;\n color: var(--color--grey-dark);\n -webkit-print-color-adjust: exact !important;\n print-color-adjust: exact !important;\n}\n\nb {\n font-weight: var(--font-weight--bold);\n}\n\n*:focus-visible {\n outline: 3px solid var(--color--focus-outline);\n}\n\ninput,\nbutton,\ntextarea,\nselect {\n font: inherit;\n}\n\ntextarea {\n border: 1px solid var(--color--grey-borders);\n border-radius: var(--border-radius--small);\n background-color: var(--color--grey-lighter);\n padding: var(--spacing--medium);\n}\n\np,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n overflow-wrap: break-word;\n}\n\np {\n font-size: var(--font-size--medium);\n margin-bottom: var(--spacing--medium);\n}\n\nol,\nul {\n margin-bottom: 1rem;\n margin-left: 2rem;\n}\n\nul {\n list-style-type: disc;\n}\n\nol {\n list-style-type: decimal;\n}\n\n#root,\n#__next {\n isolation: isolate;\n}\n\nsmall {\n font-size: 80%;\n color: var(--color--grey);\n}\n');const Rw=on.div`
682
+ `;function Pw(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}Pw('/* http://meyerweb.com/eric/tools/css/reset/\n v2.0 | 20110126\n License: none (public domain)\n*/\n\nhtml,\nbody,\ndiv,\nspan,\napplet,\nobject,\niframe,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\np,\nblockquote,\npre,\na,\nabbr,\nacronym,\naddress,\nbig,\ncite,\ncode,\ndel,\ndfn,\nem,\nimg,\nins,\nkbd,\nq,\ns,\nsamp,\nsmall,\nstrike,\nstrong,\nsub,\nsup,\ntt,\nvar,\nb,\nu,\ni,\ncenter,\ndl,\ndt,\ndd,\nol,\nul,\nli,\nfieldset,\nform,\nlabel,\nlegend,\ntable,\ncaption,\ntbody,\ntfoot,\nthead,\ntr,\nth,\ntd,\narticle,\naside,\ncanvas,\ndetails,\nembed,\nfigure,\nfigcaption,\nfooter,\nheader,\nhgroup,\nmenu,\nnav,\noutput,\nruby,\nsection,\nsummary,\ntime,\nmark,\naudio,\nvideo {\n margin: 0;\n padding: 0;\n border: 0;\n font-size: 100%;\n font: inherit;\n vertical-align: baseline;\n}\n/* HTML5 display-role reset for older browsers */\narticle,\naside,\ndetails,\nfigcaption,\nfigure,\nfooter,\nheader,\nhgroup,\nmenu,\nnav,\nsection {\n display: block;\n}\nbody {\n line-height: 1;\n}\nol,\nul {\n list-style: none;\n}\nblockquote,\nq {\n quotes: none;\n}\nblockquote:before,\nblockquote:after,\nq:before,\nq:after {\n content: "";\n content: none;\n}\ntable {\n border-collapse: collapse;\n border-spacing: 0;\n}\n');const $w=_p({colorSchemes:{light:{palette:{primary:{50:"#dbd9f8",100:"#b7b2f1",200:"#a69fee",300:"#8279e7",400:"#7065e4",500:"#4c3fdd",600:"#3d32b1",700:"#2e2685",800:"#1e1958",900:"#0f0d2c"},neutral:{50:"#fafbfd",100:"#f4f7fb",200:"#dbdde1",300:"#aaacaf",400:"#929496",500:"#7a7b7d",600:"#616264",700:"#494a4b",800:"#313132",900:"#181919"}}}},components:{}});Pw(':root {\n --color--black: #000000;\n --color--grey-dark: #262626;\n --color--grey: #5c5c5c;\n --color--grey-light: #a8aab7;\n --color--grey-lighter: #f5f5f5;\n --color--grey-lightest: #f3f6fa;\n --color--grey-borders: #d7d7d7;\n --color--grey-line: #e0e0e0;\n --color--grey-hover: #f9f9f9;\n --color--white: #fff;\n\n --color--teal: #007d7e;\n --color--teal-light: #00b0b1;\n --color--teal-tint: #f2fcfc;\n\n --color--red: #d9303e;\n --color--red-dark: #c02330;\n --color--red-light: #f7dbdd;\n --color--red-tint: #ffdddf;\n\n --color--amber: #e9b04d;\n --color--amber-tint: #faecd5;\n --color--orange: #f5a623;\n --color--orange-dark: #eb6f00;\n --color--orange-light: #f2c06f;\n\n --color--green: #29c889;\n --color--green-dark: #1c874c;\n --color--green-light: #afe7d0;\n --color--indigo: #2e1f5e;\n --color--lemon: #ffe60b;\n --color--focus-outline: #fcc726;\n\n --color--dark-blue: #192a3c;\n\n --color--primary: #4c3fdd;\n --color--primary-light: #4c3fdddb;\n --color--primary-verylight: #a8a0f7;\n --color--body: var(--color--dark-blue);\n\n --color--danger: var(--color--red);\n --color--danger-light: var(--color--red-light);\n --color--warning: var(--color--orange);\n --color--warning-light: var(--color--orange-light);\n --color--success: var(--color--green);\n\n --color--dark-blue: #192a3c;\n\n --color--debug: #663399;\n --color--debug-light: #663399db;\n --color--debug-very-light: #6633991a;\n\n /* Fonts */\n --font-family--sans-serif: system-ui, -apple-system, BlinkMacSystemFont,\n "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Oxygen, Cantarell, sans-serif;\n\n --font-family--monospace: source-code-pro, Menlo, Monaco, Consolas,\n "Courier New", monospace;\n\n /* Spacing */\n --spacing--xxxsmall: 0.1rem;\n --spacing--xxsmall: 0.2rem;\n --spacing--xsmall: 0.3rem;\n --spacing--small: 0.5rem;\n --spacing--medium: 1rem;\n --spacing--large: 2rem;\n --spacing--xlarge: 4rem;\n\n /* Font sizes */\n --font-size--xxsmall: 0.6rem;\n --font-size--xsmall: 0.75rem;\n --font-size--small: 0.875rem;\n --font-size--medium: 1rem;\n --font-size--large: 1.25rem;\n --font-size--xlarge: 1.5rem;\n --font-size--xxlarge: 2rem;\n --font-size--xxxlarge: 3rem;\n\n /* Line heights */\n --line-height--small: 1.2rem;\n --line-height--medium: 1.4rem;\n --line-height--large: 1.4rem;\n\n /* Font weights */\n --font-weight--thin: 200;\n --font-weight--light: 300;\n --font-weight--regular: 400;\n --font-weight--medium: 500;\n --font-weight--bold: 700;\n\n /* Border radius */\n --border-radius--small: 0.25rem;\n --border-radius--medium: 0.5rem;\n --border-radius--large: 1rem;\n --border-radius--xlarge: 2rem;\n\n /* Box shadows */\n --box-shadow--medium: 0px 2px 6px 0px rgba(0, 0, 0, 0.1);\n\n /* Breakpoints */\n --breakpoint--small: 480px;\n --breakpoint--medium: 768px;\n --breakpoint--large: 1024px;\n --breakpoint--xlarge: 1200px;\n --breakpoint--xxlarge: 1440px;\n --breakpoint--xxxlarge: 1920px;\n}\n\n*,\n*::before,\n*::after {\n box-sizing: border-box;\n}\n\n* {\n margin: 0;\n}\n\na {\n color: var(--color--primary);\n text-decoration: none;\n\n &:hover,\n &:focus {\n text-decoration: underline;\n }\n}\n\nbody,\nbutton {\n font-family: var(--font-family--sans-serif);\n font-weight: var(--font-weight--regular);\n font-style: normal;\n}\n\nbody {\n background-color: var(--color--grey-lightest);\n line-height: 1.5;\n -webkit-font-smoothing: antialiased;\n color: var(--color--grey-dark);\n -webkit-print-color-adjust: exact !important;\n print-color-adjust: exact !important;\n}\n\nb {\n font-weight: var(--font-weight--bold);\n}\n\n*:focus-visible {\n outline: 3px solid var(--color--focus-outline);\n}\n\ninput,\nbutton,\ntextarea,\nselect {\n font: inherit;\n}\n\ntextarea {\n border: 1px solid var(--color--grey-borders);\n border-radius: var(--border-radius--small);\n background-color: var(--color--grey-lighter);\n padding: var(--spacing--medium);\n}\n\np,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n overflow-wrap: break-word;\n}\n\np {\n font-size: var(--font-size--medium);\n margin-bottom: var(--spacing--medium);\n}\n\nol,\nul {\n margin-bottom: 1rem;\n margin-left: 2rem;\n}\n\nul {\n list-style-type: disc;\n}\n\nol {\n list-style-type: decimal;\n}\n\n#root,\n#__next {\n isolation: isolate;\n}\n\nsmall {\n font-size: 80%;\n color: var(--color--grey);\n}\n');const Nw=on.div`
697
683
  height: 100%;
698
684
  position: absolute;
699
685
  width: 100%;
700
686
  top: 0;
701
687
  left: 0;
702
- `,Dw=on.main`
688
+ `,Rw=on.main`
703
689
  width: 100%;
704
690
  height: calc(100% - 136px); // TODO: calculate the height of the header
705
691
  position: relative;
706
- `;function Tw({children:n,header:r,footer:o}){return e(Wp,{theme:Nw,children:t(Rw,{children:[r,e(Dw,{children:n}),o]})})}const zw=an`
692
+ `;function Dw({children:n,header:r,footer:o}){return e(Wp,{theme:$w,children:t(Nw,{children:[r,e(Rw,{children:n}),o]})})}const Tw=on(dy)`
693
+ a,
694
+ button {
695
+ color: initial;
696
+ text-decoration: none;
697
+ display: block;
698
+ transition: background-color 0.2s;
699
+ background: none;
700
+ border: none;
701
+ padding: 0;
702
+ width: 100%;
703
+ cursor: pointer;
704
+ text-align: left;
705
+ font-size: var(--font-size--small);
706
+ }
707
+
708
+ .settings {
709
+ padding: var(--spacing--small);
710
+ display: flex;
711
+ align-items: center;
712
+ justify-content: center;
713
+ text-align: center;
714
+ flex: 0 0 auto;
715
+ padding: 0;
716
+ margin-left: auto;
717
+
718
+ a {
719
+ display: flex;
720
+ align-items: center;
721
+ justify-content: center;
722
+ text-align: center;
723
+ flex: 0 0 auto;
724
+ border-radius: var(--border-radius--small);
725
+ padding: var(--spacing--small);
726
+
727
+ &:hover {
728
+ background-color: #c5ced6;
729
+ }
730
+ }
731
+ }
732
+ `,zw=an`
707
733
  0% {
708
734
  background-position: 0% 50%;
709
735
  }
@@ -745,7 +771,7 @@ function rc(e,t){const n=tc(e,t);return"production"!==process.env.NODE_ENV?(...t
745
771
  @media print {
746
772
  -webkit-line-clamp: unset;
747
773
  }
748
- `,jw=on(Ty)`
774
+ `,jw=on(Dy)`
749
775
  margin: auto;
750
776
 
751
777
  @media print {
@@ -863,7 +889,7 @@ function rc(e,t){const n=tc(e,t);return"production"!==process.env.NODE_ENV?(...t
863
889
  function cS(e,t){return e?function(e){return"function"==typeof e&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}(n=e)||"function"==typeof n||function(e){return"object"==typeof e&&"symbol"==typeof e.$$typeof&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}(n)?r.createElement(e,t):e:null;var n}function uS(e,t){const[n,r]=c((()=>{if("undefined"==typeof window)return t;try{const n=window.localStorage.getItem(e);return n?JSON.parse(n):t}catch(e){return console.log(e),t}}));return[n,t=>{try{const o=t instanceof Function?t(n):t;r(o),"undefined"!=typeof window&&window.localStorage.setItem(e,JSON.stringify(o))}catch(e){console.log(e)}}]}const dS=on.div`
864
890
  overflow-x: auto;
865
891
  width: 100%;
866
- max-height: ${({$maxHeight:e})=>e?"90vh":"100%"};
892
+ max-height: ${({$maxHeight:e})=>e?"90vh":"initial"};
867
893
  `,pS=on.table`
868
894
  border-collapse: collapse;
869
895
  position: relative;
@@ -1054,7 +1080,7 @@ function cS(e,t){return e?function(e){return"function"==typeof e&&(()=>{const t=
1054
1080
  gap: var(--spacing--small);
1055
1081
  align-items: center;
1056
1082
  font-size: var(--font-size--small);
1057
- `;function hS({id:a,data:i,columns:l,pageCount:s,totalCount:c,next:u,previous:d,page:p,pageable:f,pageSize:m,$maxHeight:g=!0}){const[h,v]=o.useState((()=>[...i])),[b,y]=o.useState([]),[w,x]=o.useState({pageIndex:0,pageSize:m||10}),[S,C]=uS(`table.${a}.columnSizing`,{}),k=function(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=r.useState((()=>({current:sS(t)}))),[o,a]=r.useState((()=>n.current.initialState));return n.current.setOptions((t=>({...t,...e,state:{...o,...e.state},onStateChange:t=>{a(t),null==e.onStateChange||e.onStateChange(t)}}))),n.current}({columns:l,data:h,getCoreRowModel:e=>gx((()=>[e.options.data]),(t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(t,o,a){void 0===o&&(o=0);const i=[];for(let s=0;s<t.length;s++){const c=xx(e,e._getRowId(t[s],s,a),t[s],s,o,void 0,null==a?void 0:a.id);var l;n.flatRows.push(c),n.rowsById[c.id]=c,i.push(c),e.options.getSubRows&&(c.originalSubRows=e.options.getSubRows(t[s],s),null!=(l=c.originalSubRows)&&l.length&&(c.subRows=r(c.originalSubRows,o+1,c)))}return i};return n.rows=r(t),n}),hx(e.options,"debugTable","getRowModel",(()=>e._autoResetPageIndex()))),getSortedRowModel:e=>gx((()=>[e.getState().sorting,e.getPreSortedRowModel()]),((t,n)=>{if(!n.rows.length||null==t||!t.length)return n;const r=e.getState().sorting,o=[],a=r.filter((t=>{var n;return null==(n=e.getColumn(t.id))?void 0:n.getCanSort()})),i={};a.forEach((t=>{const n=e.getColumn(t.id);n&&(i[t.id]={sortUndefined:n.columnDef.sortUndefined,invertSorting:n.columnDef.invertSorting,sortingFn:n.getSortingFn()})}));const l=e=>{const t=e.map((e=>({...e})));return t.sort(((e,t)=>{for(let r=0;r<a.length;r+=1){var n;const o=a[r],l=i[o.id],s=l.sortUndefined,c=null!=(n=null==o?void 0:o.desc)&&n;let u=0;if(s){const n=void 0===e.getValue(o.id),r=void 0===t.getValue(o.id);if(n||r){if("first"===s)return n?-1:1;if("last"===s)return n?1:-1;u=n&&r?0:n?s:-s}}if(0===u&&(u=l.sortingFn(e,t,o.id)),0!==u)return c&&(u*=-1),l.invertSorting&&(u*=-1),u}return e.index-t.index})),t.forEach((e=>{var t;o.push(e),null!=(t=e.subRows)&&t.length&&(e.subRows=l(e.subRows))})),t};return{rows:l(n.rows),flatRows:o,rowsById:n.rowsById}}),hx(e.options,"debugTable","getSortedRowModel",(()=>e._autoResetPageIndex()))),onSortingChange:y,pageCount:s,state:{pagination:o.useMemo((()=>({pageIndex:w.pageIndex,pageSize:w.pageSize})),[w.pageIndex,w.pageSize]),sorting:b,columnSizing:S},onPaginationChange:x,manualPagination:!0,enableColumnResizing:!0,columnResizeMode:"onChange",defaultColumn:{size:200,minSize:50,maxSize:500},onColumnSizingChange:C});return o.useEffect((()=>{void 0!==p&&k.setPageIndex(Number(p-1))}),[p,k]),o.useEffect((()=>{v(i)}),[i]),t(n,{children:[e(dS,{$maxHeight:g,children:t(pS,{children:[k.getHeaderGroups().map((n=>e("thead",{children:e("tr",{children:n.headers.map((n=>t("th",{colSpan:n.colSpan,style:{width:n.getSize()},children:[n.isPlaceholder?null:t("button",{type:"button",className:n.column.getCanSort()?"cursor-pointer select-none":"",onClick:n.column.getToggleSortingHandler(),onKeyDown:n.column.getToggleSortingHandler(),title:n.column.getCanSort()?"asc"===n.column.getNextSortingOrder()?"Sort ascending":"desc"===n.column.getNextSortingOrder()?"Sort descending":"Clear sort":void 0,children:[{asc:e(Ri,{icon:mn,size:"small"}),desc:e(Ri,{icon:fn,size:"small"})}[n.column.getIsSorted()]??(n.column.getCanSort()&&e(Ri,{icon:mn,size:"small",className:"fade"})),cS(n.column.columnDef.header,n.getContext())]}),n.column.getCanResize()&&e("button",{type:"button","aria-label":"Resize column",onMouseDown:n.getResizeHandler(),onTouchStart:n.getResizeHandler(),className:"resizer "+(n.column.getIsResizing()?"isResizing":"")})]},n.id)))})},n.id))),e("tbody",{children:k.getRowModel().rows.length>0?k.getRowModel().rows.map((t=>e("tr",{children:t.getVisibleCells().map((t=>e("td",{style:{width:t.column.getSize()},children:cS(t.column.columnDef.cell,t.getContext())},t.id)))},t.id))):e("tr",{children:e("td",{colSpan:l.length,style:{textAlign:"center"},children:"No data"})})})]})}),t(fS,{children:[void 0!==c?t("div",{children:["Total: ",c]}):null,f?t(mS,{children:[e(Ty,{type:"link",href:k.getCanPreviousPage()?window.location.href:"",disabled:!k.getCanPreviousPage(),children:"<<"}),e(Ty,{type:"link",href:k.getCanPreviousPage()&&d?d:"",disabled:!k.getCanPreviousPage(),children:"<"}),e(Ty,{type:"link",href:k.getCanNextPage()&&u?u:"",disabled:!k.getCanNextPage(),children:">"}),e(Ty,{href:k.getCanNextPage()?`${window.location.href}?page=${String(s)}`:"",type:"link",disabled:!k.getCanNextPage(),children:">>"}),t(gS,{children:[e("span",{children:"Page"}),t("strong",{children:[k.getState().pagination.pageIndex+1," of"," ",k.getPageCount()]})]})]}):null]})]})}const vS=on.div`
1083
+ `;function hS({id:a,data:i,columns:l,pageCount:s,totalCount:c,next:u,previous:d,page:p,pageable:f,pageSize:m,maxHeight:g=!0}){const[h,v]=o.useState((()=>[...i])),[b,y]=o.useState([]),[w,x]=o.useState({pageIndex:0,pageSize:m||10}),[S,C]=uS(`table.${a}.columnSizing`,{}),k=function(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=r.useState((()=>({current:sS(t)}))),[o,a]=r.useState((()=>n.current.initialState));return n.current.setOptions((t=>({...t,...e,state:{...o,...e.state},onStateChange:t=>{a(t),null==e.onStateChange||e.onStateChange(t)}}))),n.current}({columns:l,data:h,getCoreRowModel:e=>gx((()=>[e.options.data]),(t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(t,o,a){void 0===o&&(o=0);const i=[];for(let s=0;s<t.length;s++){const c=xx(e,e._getRowId(t[s],s,a),t[s],s,o,void 0,null==a?void 0:a.id);var l;n.flatRows.push(c),n.rowsById[c.id]=c,i.push(c),e.options.getSubRows&&(c.originalSubRows=e.options.getSubRows(t[s],s),null!=(l=c.originalSubRows)&&l.length&&(c.subRows=r(c.originalSubRows,o+1,c)))}return i};return n.rows=r(t),n}),hx(e.options,"debugTable","getRowModel",(()=>e._autoResetPageIndex()))),getSortedRowModel:e=>gx((()=>[e.getState().sorting,e.getPreSortedRowModel()]),((t,n)=>{if(!n.rows.length||null==t||!t.length)return n;const r=e.getState().sorting,o=[],a=r.filter((t=>{var n;return null==(n=e.getColumn(t.id))?void 0:n.getCanSort()})),i={};a.forEach((t=>{const n=e.getColumn(t.id);n&&(i[t.id]={sortUndefined:n.columnDef.sortUndefined,invertSorting:n.columnDef.invertSorting,sortingFn:n.getSortingFn()})}));const l=e=>{const t=e.map((e=>({...e})));return t.sort(((e,t)=>{for(let r=0;r<a.length;r+=1){var n;const o=a[r],l=i[o.id],s=l.sortUndefined,c=null!=(n=null==o?void 0:o.desc)&&n;let u=0;if(s){const n=void 0===e.getValue(o.id),r=void 0===t.getValue(o.id);if(n||r){if("first"===s)return n?-1:1;if("last"===s)return n?1:-1;u=n&&r?0:n?s:-s}}if(0===u&&(u=l.sortingFn(e,t,o.id)),0!==u)return c&&(u*=-1),l.invertSorting&&(u*=-1),u}return e.index-t.index})),t.forEach((e=>{var t;o.push(e),null!=(t=e.subRows)&&t.length&&(e.subRows=l(e.subRows))})),t};return{rows:l(n.rows),flatRows:o,rowsById:n.rowsById}}),hx(e.options,"debugTable","getSortedRowModel",(()=>e._autoResetPageIndex()))),onSortingChange:y,pageCount:s,state:{pagination:o.useMemo((()=>({pageIndex:w.pageIndex,pageSize:w.pageSize})),[w.pageIndex,w.pageSize]),sorting:b,columnSizing:S},onPaginationChange:x,manualPagination:!0,enableColumnResizing:!0,columnResizeMode:"onChange",defaultColumn:{size:200,minSize:50,maxSize:500},onColumnSizingChange:C});return o.useEffect((()=>{void 0!==p&&k.setPageIndex(Number(p-1))}),[p,k]),o.useEffect((()=>{v(i)}),[i]),t(n,{children:[e(dS,{$maxHeight:g,children:t(pS,{children:[k.getHeaderGroups().map((n=>e("thead",{children:e("tr",{children:n.headers.map((n=>t("th",{colSpan:n.colSpan,style:{width:n.getSize()},children:[n.isPlaceholder?null:t("button",{type:"button",className:n.column.getCanSort()?"cursor-pointer select-none":"",onClick:n.column.getToggleSortingHandler(),onKeyDown:n.column.getToggleSortingHandler(),title:n.column.getCanSort()?"asc"===n.column.getNextSortingOrder()?"Sort ascending":"desc"===n.column.getNextSortingOrder()?"Sort descending":"Clear sort":void 0,children:[{asc:e(Ri,{icon:mn,size:"small"}),desc:e(Ri,{icon:fn,size:"small"})}[n.column.getIsSorted()]??(n.column.getCanSort()&&e(Ri,{icon:mn,size:"small",className:"fade"})),cS(n.column.columnDef.header,n.getContext())]}),n.column.getCanResize()&&e("button",{type:"button","aria-label":"Resize column",onMouseDown:n.getResizeHandler(),onTouchStart:n.getResizeHandler(),className:"resizer "+(n.column.getIsResizing()?"isResizing":"")})]},n.id)))})},n.id))),e("tbody",{children:k.getRowModel().rows.length>0?k.getRowModel().rows.map((t=>e("tr",{children:t.getVisibleCells().map((t=>e("td",{style:{width:t.column.getSize()},children:cS(t.column.columnDef.cell,t.getContext())},t.id)))},t.id))):e("tr",{children:e("td",{colSpan:l.length,style:{textAlign:"center"},children:"No data"})})})]})}),t(fS,{children:[void 0!==c?t("div",{children:["Total: ",c]}):null,f?t(mS,{children:[e(Dy,{type:"link",href:k.getCanPreviousPage()?window.location.href:"",disabled:!k.getCanPreviousPage(),children:"<<"}),e(Dy,{type:"link",href:k.getCanPreviousPage()&&d?d:"",disabled:!k.getCanPreviousPage(),children:"<"}),e(Dy,{type:"link",href:k.getCanNextPage()&&u?u:"",disabled:!k.getCanNextPage(),children:">"}),e(Dy,{href:k.getCanNextPage()?`${window.location.href}?page=${String(s)}`:"",type:"link",disabled:!k.getCanNextPage(),children:">>"}),t(gS,{children:[e("span",{children:"Page"}),t("strong",{children:[k.getState().pagination.pageIndex+1," of"," ",k.getPageCount()]})]})]}):null]})]})}const vS=on.div`
1058
1084
  background-color: transparent;
1059
1085
  border-bottom: 2px solid transparent;
1060
1086
  color: var(--color--grey-dark);
@@ -1252,5 +1278,5 @@ function cS(e,t){return e?function(e){return"function"==typeof e&&(()=>{const t=
1252
1278
  }
1253
1279
  }
1254
1280
  `}
1255
- `;function TS({message:n}){const r="success"===n.level?e(Ri,{icon:dn}):e(Ri,{icon:yn});return t(DS,"html"in n?{level:n.level,noFade:n.noFade,role:"alert","aria-live":"error"===n.level?"assertive":"polite",children:[r,e("span",{dangerouslySetInnerHTML:{__html:n.html}})]}:{level:n.level,noFade:n.noFade,role:"alert","aria-live":"error"===n.level?"assertive":"polite",children:[r,n.text]})}function zS({messages:t}){return e(NS,{children:e(RS,{style:{top:`-${55*t.length}px`},children:t.map((t=>e(TS,{message:t},String(t))))})})}function MS(e){const[t,n]=c(e);return{value:t,toggle:f((()=>n((e=>!e))),[]),setTrue:f((()=>n(!0)),[]),setFalse:f((()=>n(!1)),[])}}const AS=(e,t,n)=>{const[r,o]=c(null),[i,l]=c(!1),[s,d]=c(null),p=a(null);return u((()=>{if(!e)return()=>{};let r=!0;l(!0);return p.current&&clearTimeout(p.current),p.current=setTimeout((()=>{(async()=>{try{const n=await fetch(e,t);if(!n.ok)throw new Error(`Error: ${n.statusText}`);const a=await n.json();r&&(o(a),l(!1))}catch(e){r&&(d(e),l(!1))}})()}),n||0),()=>{r=!1,p.current&&clearTimeout(p.current)}}),[e,t,n]),{data:r,loading:i,error:s}};function _S(e){const t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new e.constructor(+e):"number"==typeof e||"[object Number]"===t||"string"==typeof e||"[object String]"===t?new Date(e):new Date(NaN)}function LS(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}const VS=6048e5,FS=864e5,jS=6e4,BS=36e5;let HS={};function WS(){return HS}function GS(e,t){const n=WS(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=_S(e),a=o.getDay(),i=(a<r?7:0)+a-r;return o.setDate(o.getDate()-i),o.setHours(0,0,0,0),o}function qS(e){return GS(e,{weekStartsOn:1})}function US(e){const t=_S(e),n=t.getFullYear(),r=LS(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const o=qS(r),a=LS(e,0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);const i=qS(a);return t.getTime()>=o.getTime()?n+1:t.getTime()>=i.getTime()?n:n-1}function YS(e){const t=_S(e);return t.setHours(0,0,0,0),t}function KS(e){const t=_S(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function JS(e){if(!(t=e,t instanceof Date||"object"==typeof t&&"[object Date]"===Object.prototype.toString.call(t)||"number"==typeof e))return!1;var t;const n=_S(e);return!isNaN(Number(n))}const XS={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function QS(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const ZS={date:QS({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:QS({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:QS({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},eC={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function tC(e){return(t,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,o=n?.width?String(n.width):t;r=e.formattingValues[o]||e.formattingValues[t]}else{const t=e.defaultWidth,o=n?.width?String(n.width):e.defaultWidth;r=e.values[o]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function nC(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;const i=a[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(l)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n;return}(l,(e=>e.test(i))):function(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n;return}(l,(e=>e.test(i)));let c;c=e.valueCallback?e.valueCallback(s):s,c=n.valueCallback?n.valueCallback(c):c;return{value:c,rest:t.slice(i.length)}}}var rC;const oC={code:"en-US",formatDistance:(e,t,n)=>{let r;const o=XS[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:ZS,formatRelative:(e,t,n,r)=>eC[e],localize:{ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:tC({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:tC({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:tC({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:tC({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:tC({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(rC={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{const n=e.match(rC.matchPattern);if(!n)return null;const r=n[0],o=e.match(rC.parsePattern);if(!o)return null;let a=rC.valueCallback?rC.valueCallback(o[0]):o[0];return a=t.valueCallback?t.valueCallback(a):a,{value:a,rest:e.slice(r.length)}}),era:nC({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:nC({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:nC({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:nC({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:nC({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function aC(e){const t=_S(e),n=function(e,t){const n=YS(e),r=YS(t),o=+n-KS(n),a=+r-KS(r);return Math.round((o-a)/FS)}(t,function(e){const t=_S(e),n=LS(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}(t));return n+1}function iC(e){const t=_S(e),n=+qS(t)-+function(e){const t=US(e),n=LS(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),qS(n)}(t);return Math.round(n/VS)+1}function lC(e,t){const n=_S(e),r=n.getFullYear(),o=WS(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,i=LS(e,0);i.setFullYear(r+1,0,a),i.setHours(0,0,0,0);const l=GS(i,t),s=LS(e,0);s.setFullYear(r,0,a),s.setHours(0,0,0,0);const c=GS(s,t);return n.getTime()>=l.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function sC(e,t){const n=_S(e),r=+GS(n,t)-+function(e,t){const n=WS(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=lC(e,t),a=LS(e,0);return a.setFullYear(o,0,r),a.setHours(0,0,0,0),GS(a,t)}(n,t);return Math.round(r/VS)+1}function cC(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const uC={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return cC("yy"===t?r%100:r,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):cC(n+1,2)},d:(e,t)=>cC(e.getDate(),t.length),a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>cC(e.getHours()%12||12,t.length),H:(e,t)=>cC(e.getHours(),t.length),m:(e,t)=>cC(e.getMinutes(),t.length),s:(e,t)=>cC(e.getSeconds(),t.length),S(e,t){const n=t.length,r=e.getMilliseconds();return cC(Math.trunc(r*Math.pow(10,n-3)),t.length)}},dC="midnight",pC="noon",fC="morning",mC="afternoon",gC="evening",hC="night",vC={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){const t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:"year"})}return uC.y(e,t)},Y:function(e,t,n,r){const o=lC(e,r),a=o>0?o:1-o;if("YY"===t){return cC(a%100,2)}return"Yo"===t?n.ordinalNumber(a,{unit:"year"}):cC(a,t.length)},R:function(e,t){return cC(US(e),t.length)},u:function(e,t){return cC(e.getFullYear(),t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return cC(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return cC(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return uC.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return cC(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=sC(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):cC(o,t.length)},I:function(e,t,n){const r=iC(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):cC(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):uC.d(e,t)},D:function(e,t,n){const r=aC(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):cC(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return cC(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return cC(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return cC(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(o=12===r?pC:0===r?dC:r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(o=r>=17?gC:r>=12?mC:r>=4?fC:hC,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return uC.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):uC.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):cC(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):cC(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):uC.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):uC.s(e,t)},S:function(e,t){return uC.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return yC(r);case"XXXX":case"XX":return wC(r);default:return wC(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return yC(r);case"xxxx":case"xx":return wC(r);default:return wC(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+bC(r,":");default:return"GMT"+wC(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+bC(r,":");default:return"GMT"+wC(r,":")}},t:function(e,t,n){return cC(Math.trunc(e.getTime()/1e3),t.length)},T:function(e,t,n){return cC(e.getTime(),t.length)}};function bC(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),a=r%60;return 0===a?n+String(o):n+String(o)+t+cC(a,2)}function yC(e,t){if(e%60==0){return(e>0?"-":"+")+cC(Math.abs(e)/60,2)}return wC(e,t)}function wC(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+cC(Math.trunc(r/60),2)+t+cC(r%60,2)}const xC=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},SC=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},CC={p:SC,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return xC(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;default:a=t.dateTime({width:"full"})}return a.replace("{{date}}",xC(r,t)).replace("{{time}}",SC(o,t))}},kC=/^D+$/,OC=/^Y+$/,IC=["D","DD","YY","YYYY"];const EC=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,PC=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,$C=/^'([^]*?)'?$/,NC=/''/g,RC=/[a-zA-Z]/;function DC(e,t,n){const r=WS(),o=r.locale??oC,a=r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,i=r.weekStartsOn??r.locale?.options?.weekStartsOn??0,l=_S(e);if(!JS(l))throw new RangeError("Invalid time value");let s=t.match(PC).map((e=>{const t=e[0];if("p"===t||"P"===t){return(0,CC[t])(e,o.formatLong)}return e})).join("").match(EC).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:TC(e)};if(vC[t])return{isToken:!0,value:e};if(t.match(RC))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));o.localize.preprocessor&&(s=o.localize.preprocessor(l,s));const c={firstWeekContainsDate:a,weekStartsOn:i,locale:o};return s.map((n=>{if(!n.isToken)return n.value;const r=n.value;(function(e){return OC.test(e)}(r)||function(e){return kC.test(e)}(r))&&function(e,t,n){const r=function(e,t,n){const r="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,n);if(console.warn(r),IC.includes(e))throw new RangeError(r)}(r,t,String(e));return(0,vC[r[0]])(l,r,o.localize,c)})).join("")}function TC(e){const t=e.match($C);return t?t[1].replace(NC,"'"):e}function zC(e,t){const n=function(e){const t={},n=e.split(MC.dateTimeDelimiter);let r;if(n.length>2)return t;/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],MC.timeZoneDelimiter.test(t.date)&&(t.date=e.split(MC.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length)));if(r){const e=MC.timezone.exec(r);e?(t.time=r.replace(e[1],""),t.timezone=e[1]):t.time=r}return t}(e);let r;if(n.date){const e=function(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const o=r[1]?parseInt(r[1]):null,a=r[2]?parseInt(r[2]):null;return{year:null===a?o:100*a,restDateString:e.slice((r[1]||r[2]).length)}}(n.date,2);r=function(e,t){if(null===t)return new Date(NaN);const n=e.match(AC);if(!n)return new Date(NaN);const r=!!n[4],o=VC(n[1]),a=VC(n[2])-1,i=VC(n[3]),l=VC(n[4]),s=VC(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,l,s)?function(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const o=r.getUTCDay()||7,a=7*(t-1)+n+1-o;return r.setUTCDate(r.getUTCDate()+a),r}(t,l,s):new Date(NaN);{const e=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(jC[t]||(BC(e)?29:28))}(t,a,i)&&function(e,t){return t>=1&&t<=(BC(e)?366:365)}(t,o)?(e.setUTCFullYear(t,a,Math.max(o,i)),e):new Date(NaN)}}(e.restDateString,e.year)}if(!r||isNaN(r.getTime()))return new Date(NaN);const o=r.getTime();let a,i=0;if(n.time&&(i=function(e){const t=e.match(_C);if(!t)return NaN;const n=FC(t[1]),r=FC(t[2]),o=FC(t[3]);if(!function(e,t,n){if(24===e)return 0===t&&0===n;return n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,r,o))return NaN;return n*BS+r*jS+1e3*o}(n.time),isNaN(i)))return new Date(NaN);if(!n.timezone){const e=new Date(o+i),t=new Date(0);return t.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),t.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),t}return a=function(e){if("Z"===e)return 0;const t=e.match(LC);if(!t)return 0;const n="+"===t[1]?-1:1,r=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;if(!function(e,t){return t>=0&&t<=59}(0,o))return NaN;return n*(r*BS+o*jS)}(n.timezone),isNaN(a)?new Date(NaN):new Date(o+i+a)}const MC={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},AC=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,_C=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,LC=/^([+-])(\d{2})(?::?(\d{2}))?$/;function VC(e){return e?parseInt(e):1}function FC(e){return e&&parseFloat(e.replace(",","."))||0}const jC=[31,null,31,30,31,30,31,31,30,31,30,31];function BC(e){return e%400==0||e%4==0&&e%100!=0}const HC="-",WC=(e,t="dd MMM yyyy")=>{if(""===e||null==e)return HC;const n=zC(e);return JS(n)?DC(n,t):HC},GC=e=>""===e||null==e?HC:e.toLocaleString(),qC=e=>""===e||null==e?HC:e,UC={style:"currency",currency:"GBP",minimumFractionDigits:0,maximumFractionDigits:0},YC=(e,t="en-GB",n=UC)=>{let r=e;if(""===r||null==r)return HC;"string"==typeof e&&(r=Number(e));return new Intl.NumberFormat(t,{...UC,...n}).format(r)};export{Ai as Accordion,Gy as AppBar,Uy as Autocomplete,Xy as AutocompleteSelectMultiple,nw as Badge,bb as Box,iw as Breadcrumb,Ty as Button,lw as Chip,sw as Divider,Ow as Drawer,Iw as Dropdown,Ew as Grid,xn as Heading,Ri as Icon,ev as IconButton,Pw as Input,Tw as Layout,Yy as List,Zg as ListItem,hh as ListItemButton,Kb as ListItemDecorator,xy as LoadingSpinner,My as Logo,vy as Menu,iy as MenuButton,gy as MenuHeading,hy as MenuItem,_w as ProgressBar,Lw as ProgressCircle,Bw as ReadMore,Ww as RelativeTime,dx as StatusIcon,hS as Table,kS as Tabs,$S as TextBlock,py as TextField,zS as ToastMessages,rx as Tooltip,YC as formatCurrency,WC as formatDate,GC as formatNumber,qC as formatText,AS as useFetch,uS as useLocalStorage,MS as useToggle};
1281
+ `;function TS({message:n}){const r="success"===n.level?e(Ri,{icon:dn}):e(Ri,{icon:yn});return t(DS,"html"in n?{level:n.level,noFade:n.noFade,role:"alert","aria-live":"error"===n.level?"assertive":"polite",children:[r,e("span",{dangerouslySetInnerHTML:{__html:n.html}})]}:{level:n.level,noFade:n.noFade,role:"alert","aria-live":"error"===n.level?"assertive":"polite",children:[r,n.text]})}function zS({messages:t}){return e(NS,{children:e(RS,{style:{top:`-${55*t.length}px`},children:t.map((t=>e(TS,{message:t},String(t))))})})}function MS(e){const[t,n]=c(e);return{value:t,toggle:f((()=>n((e=>!e))),[]),setTrue:f((()=>n(!0)),[]),setFalse:f((()=>n(!1)),[])}}const AS=(e,t,n)=>{const[r,o]=c(null),[i,l]=c(!1),[s,d]=c(null),p=a(null);return u((()=>{if(!e)return()=>{};let r=!0;l(!0);return p.current&&clearTimeout(p.current),p.current=setTimeout((()=>{(async()=>{try{const n=await fetch(e,t);if(!n.ok)throw new Error(`Error: ${n.statusText}`);const a=await n.json();r&&(o(a),l(!1))}catch(e){r&&(d(e),l(!1))}})()}),n||0),()=>{r=!1,p.current&&clearTimeout(p.current)}}),[e,t,n]),{data:r,loading:i,error:s}};function _S(e){const t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new e.constructor(+e):"number"==typeof e||"[object Number]"===t||"string"==typeof e||"[object String]"===t?new Date(e):new Date(NaN)}function LS(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}const VS=6048e5,FS=864e5,jS=6e4,BS=36e5;let HS={};function WS(){return HS}function GS(e,t){const n=WS(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=_S(e),a=o.getDay(),i=(a<r?7:0)+a-r;return o.setDate(o.getDate()-i),o.setHours(0,0,0,0),o}function qS(e){return GS(e,{weekStartsOn:1})}function US(e){const t=_S(e),n=t.getFullYear(),r=LS(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const o=qS(r),a=LS(e,0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);const i=qS(a);return t.getTime()>=o.getTime()?n+1:t.getTime()>=i.getTime()?n:n-1}function YS(e){const t=_S(e);return t.setHours(0,0,0,0),t}function KS(e){const t=_S(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function JS(e){if(!(t=e,t instanceof Date||"object"==typeof t&&"[object Date]"===Object.prototype.toString.call(t)||"number"==typeof e))return!1;var t;const n=_S(e);return!isNaN(Number(n))}const XS={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function QS(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const ZS={date:QS({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:QS({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:QS({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},eC={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function tC(e){return(t,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,o=n?.width?String(n.width):t;r=e.formattingValues[o]||e.formattingValues[t]}else{const t=e.defaultWidth,o=n?.width?String(n.width):e.defaultWidth;r=e.values[o]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function nC(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;const i=a[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(l)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n;return}(l,(e=>e.test(i))):function(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n;return}(l,(e=>e.test(i)));let c;c=e.valueCallback?e.valueCallback(s):s,c=n.valueCallback?n.valueCallback(c):c;return{value:c,rest:t.slice(i.length)}}}var rC;const oC={code:"en-US",formatDistance:(e,t,n)=>{let r;const o=XS[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:ZS,formatRelative:(e,t,n,r)=>eC[e],localize:{ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:tC({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:tC({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:tC({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:tC({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:tC({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(rC={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{const n=e.match(rC.matchPattern);if(!n)return null;const r=n[0],o=e.match(rC.parsePattern);if(!o)return null;let a=rC.valueCallback?rC.valueCallback(o[0]):o[0];return a=t.valueCallback?t.valueCallback(a):a,{value:a,rest:e.slice(r.length)}}),era:nC({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:nC({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:nC({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:nC({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:nC({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function aC(e){const t=_S(e),n=function(e,t){const n=YS(e),r=YS(t),o=+n-KS(n),a=+r-KS(r);return Math.round((o-a)/FS)}(t,function(e){const t=_S(e),n=LS(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}(t));return n+1}function iC(e){const t=_S(e),n=+qS(t)-+function(e){const t=US(e),n=LS(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),qS(n)}(t);return Math.round(n/VS)+1}function lC(e,t){const n=_S(e),r=n.getFullYear(),o=WS(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,i=LS(e,0);i.setFullYear(r+1,0,a),i.setHours(0,0,0,0);const l=GS(i,t),s=LS(e,0);s.setFullYear(r,0,a),s.setHours(0,0,0,0);const c=GS(s,t);return n.getTime()>=l.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function sC(e,t){const n=_S(e),r=+GS(n,t)-+function(e,t){const n=WS(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=lC(e,t),a=LS(e,0);return a.setFullYear(o,0,r),a.setHours(0,0,0,0),GS(a,t)}(n,t);return Math.round(r/VS)+1}function cC(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const uC={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return cC("yy"===t?r%100:r,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):cC(n+1,2)},d:(e,t)=>cC(e.getDate(),t.length),a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>cC(e.getHours()%12||12,t.length),H:(e,t)=>cC(e.getHours(),t.length),m:(e,t)=>cC(e.getMinutes(),t.length),s:(e,t)=>cC(e.getSeconds(),t.length),S(e,t){const n=t.length,r=e.getMilliseconds();return cC(Math.trunc(r*Math.pow(10,n-3)),t.length)}},dC="midnight",pC="noon",fC="morning",mC="afternoon",gC="evening",hC="night",vC={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){const t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:"year"})}return uC.y(e,t)},Y:function(e,t,n,r){const o=lC(e,r),a=o>0?o:1-o;if("YY"===t){return cC(a%100,2)}return"Yo"===t?n.ordinalNumber(a,{unit:"year"}):cC(a,t.length)},R:function(e,t){return cC(US(e),t.length)},u:function(e,t){return cC(e.getFullYear(),t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return cC(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return cC(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return uC.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return cC(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=sC(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):cC(o,t.length)},I:function(e,t,n){const r=iC(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):cC(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):uC.d(e,t)},D:function(e,t,n){const r=aC(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):cC(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return cC(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return cC(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return cC(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(o=12===r?pC:0===r?dC:r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(o=r>=17?gC:r>=12?mC:r>=4?fC:hC,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return uC.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):uC.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):cC(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):cC(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):uC.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):uC.s(e,t)},S:function(e,t){return uC.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return yC(r);case"XXXX":case"XX":return wC(r);default:return wC(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return yC(r);case"xxxx":case"xx":return wC(r);default:return wC(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+bC(r,":");default:return"GMT"+wC(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+bC(r,":");default:return"GMT"+wC(r,":")}},t:function(e,t,n){return cC(Math.trunc(e.getTime()/1e3),t.length)},T:function(e,t,n){return cC(e.getTime(),t.length)}};function bC(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),a=r%60;return 0===a?n+String(o):n+String(o)+t+cC(a,2)}function yC(e,t){if(e%60==0){return(e>0?"-":"+")+cC(Math.abs(e)/60,2)}return wC(e,t)}function wC(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+cC(Math.trunc(r/60),2)+t+cC(r%60,2)}const xC=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},SC=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},CC={p:SC,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return xC(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;default:a=t.dateTime({width:"full"})}return a.replace("{{date}}",xC(r,t)).replace("{{time}}",SC(o,t))}},kC=/^D+$/,OC=/^Y+$/,IC=["D","DD","YY","YYYY"];const EC=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,PC=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,$C=/^'([^]*?)'?$/,NC=/''/g,RC=/[a-zA-Z]/;function DC(e,t,n){const r=WS(),o=r.locale??oC,a=r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,i=r.weekStartsOn??r.locale?.options?.weekStartsOn??0,l=_S(e);if(!JS(l))throw new RangeError("Invalid time value");let s=t.match(PC).map((e=>{const t=e[0];if("p"===t||"P"===t){return(0,CC[t])(e,o.formatLong)}return e})).join("").match(EC).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:TC(e)};if(vC[t])return{isToken:!0,value:e};if(t.match(RC))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));o.localize.preprocessor&&(s=o.localize.preprocessor(l,s));const c={firstWeekContainsDate:a,weekStartsOn:i,locale:o};return s.map((n=>{if(!n.isToken)return n.value;const r=n.value;(function(e){return OC.test(e)}(r)||function(e){return kC.test(e)}(r))&&function(e,t,n){const r=function(e,t,n){const r="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,n);if(console.warn(r),IC.includes(e))throw new RangeError(r)}(r,t,String(e));return(0,vC[r[0]])(l,r,o.localize,c)})).join("")}function TC(e){const t=e.match($C);return t?t[1].replace(NC,"'"):e}function zC(e,t){const n=function(e){const t={},n=e.split(MC.dateTimeDelimiter);let r;if(n.length>2)return t;/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],MC.timeZoneDelimiter.test(t.date)&&(t.date=e.split(MC.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length)));if(r){const e=MC.timezone.exec(r);e?(t.time=r.replace(e[1],""),t.timezone=e[1]):t.time=r}return t}(e);let r;if(n.date){const e=function(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const o=r[1]?parseInt(r[1]):null,a=r[2]?parseInt(r[2]):null;return{year:null===a?o:100*a,restDateString:e.slice((r[1]||r[2]).length)}}(n.date,2);r=function(e,t){if(null===t)return new Date(NaN);const n=e.match(AC);if(!n)return new Date(NaN);const r=!!n[4],o=VC(n[1]),a=VC(n[2])-1,i=VC(n[3]),l=VC(n[4]),s=VC(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,l,s)?function(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const o=r.getUTCDay()||7,a=7*(t-1)+n+1-o;return r.setUTCDate(r.getUTCDate()+a),r}(t,l,s):new Date(NaN);{const e=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(jC[t]||(BC(e)?29:28))}(t,a,i)&&function(e,t){return t>=1&&t<=(BC(e)?366:365)}(t,o)?(e.setUTCFullYear(t,a,Math.max(o,i)),e):new Date(NaN)}}(e.restDateString,e.year)}if(!r||isNaN(r.getTime()))return new Date(NaN);const o=r.getTime();let a,i=0;if(n.time&&(i=function(e){const t=e.match(_C);if(!t)return NaN;const n=FC(t[1]),r=FC(t[2]),o=FC(t[3]);if(!function(e,t,n){if(24===e)return 0===t&&0===n;return n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,r,o))return NaN;return n*BS+r*jS+1e3*o}(n.time),isNaN(i)))return new Date(NaN);if(!n.timezone){const e=new Date(o+i),t=new Date(0);return t.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),t.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),t}return a=function(e){if("Z"===e)return 0;const t=e.match(LC);if(!t)return 0;const n="+"===t[1]?-1:1,r=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;if(!function(e,t){return t>=0&&t<=59}(0,o))return NaN;return n*(r*BS+o*jS)}(n.timezone),isNaN(a)?new Date(NaN):new Date(o+i+a)}const MC={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},AC=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,_C=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,LC=/^([+-])(\d{2})(?::?(\d{2}))?$/;function VC(e){return e?parseInt(e):1}function FC(e){return e&&parseFloat(e.replace(",","."))||0}const jC=[31,null,31,30,31,30,31,31,30,31,30,31];function BC(e){return e%400==0||e%4==0&&e%100!=0}const HC="-",WC=(e,t="dd MMM yyyy")=>{if(""===e||null==e)return HC;const n=zC(e);return JS(n)?DC(n,t):HC},GC=e=>""===e||null==e?HC:e.toLocaleString(),qC=e=>""===e||null==e?HC:e,UC={style:"currency",currency:"GBP",minimumFractionDigits:0,maximumFractionDigits:0},YC=(e,t="en-GB",n=UC)=>{let r=e;if(""===r||null==r)return HC;"string"==typeof e&&(r=Number(e));return new Intl.NumberFormat(t,{...UC,...n}).format(r)};export{Ai as Accordion,Wy as AppBar,qy as Autocomplete,Jy as AutocompleteSelectMultiple,tw as Badge,bb as Box,aw as Breadcrumb,Dy as Button,iw as Chip,lw as Divider,kw as Drawer,Ow as Dropdown,Iw as Grid,xn as Heading,Ri as Icon,ev as IconButton,Ew as Input,Dw as Layout,Uy as List,Zg as ListItem,hh as ListItemButton,Kb as ListItemDecorator,wy as LoadingSpinner,zy as Logo,hy as Menu,iy as MenuButton,gy as MenuHeading,Tw as MenuItem,_w as ProgressBar,Lw as ProgressCircle,Bw as ReadMore,Ww as RelativeTime,dx as StatusIcon,hS as Table,kS as Tabs,$S as TextBlock,py as TextField,zS as ToastMessages,rx as Tooltip,YC as formatCurrency,WC as formatDate,GC as formatNumber,qC as formatText,AS as useFetch,uS as useLocalStorage,MS as useToggle};
1256
1282
  //# sourceMappingURL=index.js.map